From 54751db70e449f7ec337efd4e2e2e87a8ec82540 Mon Sep 17 00:00:00 2001 From: Aloento Date: Thu, 25 Jan 2024 22:14:07 +0000 Subject: [PATCH] deploy: d59d483c63cdf0168515c6011184e0322d7f8353 --- ...olumns-udWp41vx.js => Columns-QCD_DZcc.js} | 2 +- ...nent-yD7WLU4o.js => Component-H1hIVv9X.js} | 2 +- ...nent-7VbI7F8z.js => Component-dbiRH4vW.js} | 2 +- assets/{Lazy-epdmnhOX.js => Lazy-JjY9mDNW.js} | 4 +- ...F.js => LexicalNestedComposer-UM2hmsAs.js} | 2 +- assets/index-9BToduwY.js | 1 + .../{index-UDCnD8Lh.js => index-HHE451jH.js} | 8 +- assets/index-Q8F0QMId.js | 1 - assets/index-R38jE5Oz.js | 1 + .../{index-9edqmHqr.js => index-ZS4E269H.js} | 2 +- assets/index-aawXm4sE.js | 1 - .../{index-th8hOfI3.js => index-g5wBm8kU.js} | 6 +- .../{index-Jg_O0wkW.js => index-tE97uugj.js} | 2 +- assets/vendor-EPO6t9z0.js | 143 ------------------ assets/vendor-nd_CUwkm.js | 143 ++++++++++++++++++ index.html | 4 +- 16 files changed, 162 insertions(+), 162 deletions(-) rename assets/{Columns-udWp41vx.js => Columns-QCD_DZcc.js} (97%) rename assets/{Component-yD7WLU4o.js => Component-H1hIVv9X.js} (73%) rename assets/{Component-7VbI7F8z.js => Component-dbiRH4vW.js} (96%) rename assets/{Lazy-epdmnhOX.js => Lazy-JjY9mDNW.js} (53%) rename assets/{LexicalNestedComposer-adJhyL2F.js => LexicalNestedComposer-UM2hmsAs.js} (93%) create mode 100644 assets/index-9BToduwY.js rename assets/{index-UDCnD8Lh.js => index-HHE451jH.js} (99%) delete mode 100644 assets/index-Q8F0QMId.js create mode 100644 assets/index-R38jE5Oz.js rename assets/{index-9edqmHqr.js => index-ZS4E269H.js} (98%) delete mode 100644 assets/index-aawXm4sE.js rename assets/{index-th8hOfI3.js => index-g5wBm8kU.js} (98%) rename assets/{index-Jg_O0wkW.js => index-tE97uugj.js} (99%) delete mode 100644 assets/vendor-EPO6t9z0.js create mode 100644 assets/vendor-nd_CUwkm.js diff --git a/assets/Columns-udWp41vx.js b/assets/Columns-QCD_DZcc.js similarity index 97% rename from assets/Columns-udWp41vx.js rename to assets/Columns-QCD_DZcc.js index 537b53e..0d7615f 100644 --- a/assets/Columns-udWp41vx.js +++ b/assets/Columns-QCD_DZcc.js @@ -1 +1 @@ -import{m as D,t as E,x as R,j as e,F as c,L as u,y as w,T as v,b as S,B as N,r as I,ah as L,aN as z,aO as B,o as M,aG as $,ac as q,ad as Q,ae as U,af as W,ag as V,a5 as i,a6 as d,a7 as h,J,a8 as _,a9 as K}from"./vendor-EPO6t9z0.js";import{L as X,F as P,a as H,A as Y,H as f,c as F,e as A,f as Z,M as ee}from"./index-th8hOfI3.js";const re=D({flex:P,box:{...H,flexBasis:"50%",rowGap:E.spacingVerticalM}}),k=new X("Order","Info");function se({OrderId:r,Order:s,Admin:n}){const a=re(),{data:j}=R(()=>Y.User.Get.OrderUser(r),{manual:!n,onError:k.error}),m=f.User.Get.useMe(k),l=n?j:m;return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:a.flex,children:[e.jsx("div",{className:a.box,children:e.jsx(c,{label:"Name",size:"large",children:e.jsx(u,{children:l?.Name})})}),e.jsx("div",{className:a.box,children:e.jsx(c,{label:"Phone",size:"large",children:e.jsx(u,{children:l?.Phone})})})]}),e.jsxs("div",{className:a.flex,children:[e.jsx("div",{className:a.box,children:e.jsx(c,{label:"Order Date",size:"large",children:e.jsx(u,{children:s?.CreateAt.toLocaleDateString()})})}),e.jsx("div",{className:a.box,children:e.jsx(c,{label:"Status",size:"large",children:e.jsx(u,{children:s?.Status})})})]}),e.jsxs("div",{className:a.flex,children:[e.jsx("div",{className:a.box,children:e.jsx(c,{label:"E-Mail",size:"large",children:e.jsx(u,{children:l?.EMail})})}),!n&&e.jsx("div",{className:a.box,children:e.jsx(c,{label:"Tracking Number",size:"large",children:e.jsx(u,{children:s?.TrackingNumber})})})]}),e.jsx(c,{label:"Address",size:"large",children:e.jsx(u,{children:l?.Address})})]})}const ne=D({body:{...H,alignItems:"flex-start"}});function ae({OrderId:r,Status:s,Refresh:n,ParentLog:a}){const j=w(()=>a.With("Action")),m=ne(),{Reload:l}=F(),{dispatch:o,dispatchToast:p}=A(j),{run:C}=f.Order.Post.useReceived({manual:!0,onError(g,t){o({Message:"Failed Mark Receive",Request:t,Error:g})},onSuccess(){p(e.jsx(v,{children:e.jsx(S,{children:"Order Received"})}),{intent:"success"}),n()}}),{run:y}=f.Order.Delete.useDelete({manual:!0,onError(g,t){o({Message:"Failed Delete Order",Request:t,Error:g})},onSuccess(){p(e.jsx(v,{children:e.jsx(S,{children:"Order Deleted"})}),{intent:"success"}),l("History")}});switch(s){case"Pending":case"Processing":case"Finished":case"Returning":return null}return e.jsx(c,{label:"Action",size:"large",children:e.jsxs("div",{className:m.body,children:[s==="Cancelled"&&e.jsx(N,{appearance:"subtle",onClick:()=>y(r),children:"Delete Order"}),s==="Shipping"&&e.jsx(N,{appearance:"subtle",onClick:()=>C(r),children:"I Received Order"})]})})}const le=D({body:{...P,justifyContent:"space-between"}});function te({OrderId:r,Status:s,Refresh:n,ParentLog:a}){const j=w(()=>a.With("Append")),m=le(),[l,o]=I.useState(),{dispatch:p,dispatchToast:C}=A(j),{run:y}=f.Order.Post.useAppend({manual:!0,onError(t,b){p({Message:"Failed Append Comment",Request:b,Error:t})},onSuccess(){C(e.jsx(v,{children:e.jsx(S,{children:"Comment Appended"})}),{intent:"success"}),n()}}),{run:g}=f.Order.Post.useCancel({manual:!0,onError(t,b){p({Message:"Failed Cancel Order",Request:b,Error:t})},onSuccess(){C(e.jsx(v,{children:e.jsx(S,{children:"Order Canceled"})}),{intent:"success"}),n()}});switch(s){case"Cancelled":case"Finished":return null}return e.jsxs(e.Fragment,{children:[e.jsx(c,{label:"Append",size:"large",children:e.jsx(L,{value:l,onChange:(t,b)=>o(b.value),maxLength:1e3})}),e.jsxs("div",{className:m.body,children:[!(s==="Finished"||s==="Returning")&&e.jsxs(N,{onClick:()=>g(r,l),children:[s==="Shipping"?"Ask Return":"Cancel Order"," with Reason"]}),e.jsx(N,{appearance:"primary",onClick:()=>y(r,l),children:"Add Comment"})]})]})}function ce({Comments:r}){return e.jsx(c,{label:"Comment",size:"large",children:r?.length===0?e.jsx(u,{children:"No Comment"}):r?.map((s,n)=>e.jsxs("div",{children:[e.jsxs(z,{children:[s.User," ",s.Time.toLocaleString()]}),e.jsx("br",{}),e.jsx(B,{children:s.Content})]},n))})}const O=D({body:{...H,rowGap:E.spacingVerticalL},prod:{...H,alignItems:"flex-start",justifyContent:"center"},qua:{flexBasis:"10%",flexGrow:0,justifyContent:"center"}}),de=[i({columnId:"Product",renderHeaderCell(){return e.jsx(d,{children:"Product Name & Types"})},renderCell(r){return e.jsxs(h,{className:O().prod,children:[e.jsx(J,{href:`/Product/${r.ProdId}`,appearance:"subtle",children:e.jsx(_,{children:r.Name})}),e.jsx(K,{children:Object.values(r.Type).reduce((s,n)=>`${s} ${n},`,"")})]})}}),i({columnId:"Quantity",renderHeaderCell(){return e.jsx(d,{className:O().qua,children:"Quantity"})},renderCell(r){return e.jsx(h,{className:O().qua,children:r.Quantity})}})];function ie({OrderId:r,ParentLog:s}){const n=w(()=>s.With("Detail")),a=O(),[j,{setTrue:m,setFalse:l}]=M(),{Nav:o,Paths:p}=F(),C=parseInt(p.at(1)),{data:y,run:g}=R(()=>f.Order.Get.Detail(r,n),{manual:!0,onError:n.error}),{data:t,run:b}=R(()=>f.Order.Get.Order(r),{onError(G){o("History"),n.error(G)},manual:!0});function T(){b(),g()}return I.useEffect(()=>{C===r?(T(),m()):l()},[C]),e.jsxs(e.Fragment,{children:[e.jsx(N,{appearance:"subtle",icon:e.jsx($,{}),onClick:()=>o("History",r)}),e.jsxs(q,{open:j,position:"end",size:"medium",modalType:"alert",children:[e.jsx(Q,{children:e.jsx(U,{action:e.jsx(N,{appearance:"subtle",icon:e.jsx(W,{}),onClick:()=>o("History")}),children:"Order Detail"})}),e.jsx(V,{children:e.jsxs("div",{className:a.body,children:[e.jsx(se,{OrderId:r,Order:t}),e.jsx(Z,{Items:y?.ShopCart,Columns:[ee(44,n),...de]}),e.jsx(ce,{Comments:y?.Comments}),e.jsx(te,{OrderId:r,Status:t?.Status,Refresh:T,ParentLog:n}),e.jsx(ae,{OrderId:r,Status:t?.Status,Refresh:T,ParentLog:n})]})})]})]})}const x=D({five:{flexBasis:"5%",flexGrow:0},ten:{flexBasis:"10%",flexGrow:0},two:{flexBasis:"2.5%",flexGrow:0}}),oe=[i({columnId:"OrderId",renderHeaderCell:()=>e.jsx(d,{className:x().five,children:"Order Id"}),renderCell(r){return e.jsx(h,{className:x().five,children:r.Id})}}),i({columnId:"Products",renderHeaderCell:()=>e.jsx(d,{children:"Products"}),renderCell(r){return e.jsxs(h,{children:[r.Items[0]," ",r.Items.length>1&&`& +${r.Items.length-1}`]})}}),i({columnId:"OrderDate",renderHeaderCell:()=>e.jsx(d,{children:"Order Date"}),renderCell(r){return e.jsx(d,{children:r.OrderDate.toLocaleDateString()})}}),i({columnId:"TrackNumber",renderHeaderCell:()=>e.jsx(d,{children:"Track Number"}),renderCell(r){return e.jsx(h,{children:r.TrackNumber})}}),i({columnId:"Quantity",renderHeaderCell:()=>e.jsx(d,{className:x().ten,children:"Quantity"}),renderCell(r){return e.jsx(h,{className:x().ten,children:r.Quantity})}}),i({columnId:"Status",renderHeaderCell:()=>e.jsx(d,{className:x().ten,children:"Order State"}),renderCell(r){return e.jsx(h,{className:x().ten,children:r.Status})}})];function he(r){return[...oe,i({columnId:"Detail",renderHeaderCell:()=>e.jsx(d,{className:x().two,children:"Detail"}),renderCell(s){return e.jsx(h,{className:x().two,children:e.jsx(ie,{OrderId:s.Id,ParentLog:r})})}})]}export{he as H,se as O,ce as a}; +import{m as D,t as E,x as R,j as e,F as c,L as u,y as w,T as v,b as S,B as N,r as I,ah as L,aN as z,aO as B,o as M,aG as $,ac as q,ad as Q,ae as U,af as W,ag as V,a5 as i,a6 as d,a7 as h,J,a8 as _,a9 as K}from"./vendor-nd_CUwkm.js";import{L as X,F as P,a as H,A as Y,H as f,c as F,e as A,f as Z,M as ee}from"./index-g5wBm8kU.js";const re=D({flex:P,box:{...H,flexBasis:"50%",rowGap:E.spacingVerticalM}}),k=new X("Order","Info");function se({OrderId:r,Order:s,Admin:n}){const a=re(),{data:j}=R(()=>Y.User.Get.OrderUser(r),{manual:!n,onError:k.error}),m=f.User.Get.useMe(k),l=n?j:m;return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:a.flex,children:[e.jsx("div",{className:a.box,children:e.jsx(c,{label:"Name",size:"large",children:e.jsx(u,{children:l?.Name})})}),e.jsx("div",{className:a.box,children:e.jsx(c,{label:"Phone",size:"large",children:e.jsx(u,{children:l?.Phone})})})]}),e.jsxs("div",{className:a.flex,children:[e.jsx("div",{className:a.box,children:e.jsx(c,{label:"Order Date",size:"large",children:e.jsx(u,{children:s?.CreateAt.toLocaleDateString()})})}),e.jsx("div",{className:a.box,children:e.jsx(c,{label:"Status",size:"large",children:e.jsx(u,{children:s?.Status})})})]}),e.jsxs("div",{className:a.flex,children:[e.jsx("div",{className:a.box,children:e.jsx(c,{label:"E-Mail",size:"large",children:e.jsx(u,{children:l?.EMail})})}),!n&&e.jsx("div",{className:a.box,children:e.jsx(c,{label:"Tracking Number",size:"large",children:e.jsx(u,{children:s?.TrackingNumber})})})]}),e.jsx(c,{label:"Address",size:"large",children:e.jsx(u,{children:l?.Address})})]})}const ne=D({body:{...H,alignItems:"flex-start"}});function ae({OrderId:r,Status:s,Refresh:n,ParentLog:a}){const j=w(()=>a.With("Action")),m=ne(),{Reload:l}=F(),{dispatch:o,dispatchToast:p}=A(j),{run:C}=f.Order.Post.useReceived({manual:!0,onError(g,t){o({Message:"Failed Mark Receive",Request:t,Error:g})},onSuccess(){p(e.jsx(v,{children:e.jsx(S,{children:"Order Received"})}),{intent:"success"}),n()}}),{run:y}=f.Order.Delete.useDelete({manual:!0,onError(g,t){o({Message:"Failed Delete Order",Request:t,Error:g})},onSuccess(){p(e.jsx(v,{children:e.jsx(S,{children:"Order Deleted"})}),{intent:"success"}),l("History")}});switch(s){case"Pending":case"Processing":case"Finished":case"Returning":return null}return e.jsx(c,{label:"Action",size:"large",children:e.jsxs("div",{className:m.body,children:[s==="Cancelled"&&e.jsx(N,{appearance:"subtle",onClick:()=>y(r),children:"Delete Order"}),s==="Shipping"&&e.jsx(N,{appearance:"subtle",onClick:()=>C(r),children:"I Received Order"})]})})}const le=D({body:{...P,justifyContent:"space-between"}});function te({OrderId:r,Status:s,Refresh:n,ParentLog:a}){const j=w(()=>a.With("Append")),m=le(),[l,o]=I.useState(),{dispatch:p,dispatchToast:C}=A(j),{run:y}=f.Order.Post.useAppend({manual:!0,onError(t,b){p({Message:"Failed Append Comment",Request:b,Error:t})},onSuccess(){C(e.jsx(v,{children:e.jsx(S,{children:"Comment Appended"})}),{intent:"success"}),n()}}),{run:g}=f.Order.Post.useCancel({manual:!0,onError(t,b){p({Message:"Failed Cancel Order",Request:b,Error:t})},onSuccess(){C(e.jsx(v,{children:e.jsx(S,{children:"Order Canceled"})}),{intent:"success"}),n()}});switch(s){case"Cancelled":case"Finished":return null}return e.jsxs(e.Fragment,{children:[e.jsx(c,{label:"Append",size:"large",children:e.jsx(L,{value:l,onChange:(t,b)=>o(b.value),maxLength:1e3})}),e.jsxs("div",{className:m.body,children:[!(s==="Finished"||s==="Returning")&&e.jsxs(N,{onClick:()=>g(r,l),children:[s==="Shipping"?"Ask Return":"Cancel Order"," with Reason"]}),e.jsx(N,{appearance:"primary",onClick:()=>y(r,l),children:"Add Comment"})]})]})}function ce({Comments:r}){return e.jsx(c,{label:"Comment",size:"large",children:r?.length===0?e.jsx(u,{children:"No Comment"}):r?.map((s,n)=>e.jsxs("div",{children:[e.jsxs(z,{children:[s.User," ",s.Time.toLocaleString()]}),e.jsx("br",{}),e.jsx(B,{children:s.Content})]},n))})}const O=D({body:{...H,rowGap:E.spacingVerticalL},prod:{...H,alignItems:"flex-start",justifyContent:"center"},qua:{flexBasis:"10%",flexGrow:0,justifyContent:"center"}}),de=[i({columnId:"Product",renderHeaderCell(){return e.jsx(d,{children:"Product Name & Types"})},renderCell(r){return e.jsxs(h,{className:O().prod,children:[e.jsx(J,{href:`/Product/${r.ProdId}`,appearance:"subtle",children:e.jsx(_,{children:r.Name})}),e.jsx(K,{children:Object.values(r.Type).reduce((s,n)=>`${s} ${n},`,"")})]})}}),i({columnId:"Quantity",renderHeaderCell(){return e.jsx(d,{className:O().qua,children:"Quantity"})},renderCell(r){return e.jsx(h,{className:O().qua,children:r.Quantity})}})];function ie({OrderId:r,ParentLog:s}){const n=w(()=>s.With("Detail")),a=O(),[j,{setTrue:m,setFalse:l}]=M(),{Nav:o,Paths:p}=F(),C=parseInt(p.at(1)),{data:y,run:g}=R(()=>f.Order.Get.Detail(r,n),{manual:!0,onError:n.error}),{data:t,run:b}=R(()=>f.Order.Get.Order(r),{onError(G){o("History"),n.error(G)},manual:!0});function T(){b(),g()}return I.useEffect(()=>{C===r?(T(),m()):l()},[C]),e.jsxs(e.Fragment,{children:[e.jsx(N,{appearance:"subtle",icon:e.jsx($,{}),onClick:()=>o("History",r)}),e.jsxs(q,{open:j,position:"end",size:"medium",modalType:"alert",children:[e.jsx(Q,{children:e.jsx(U,{action:e.jsx(N,{appearance:"subtle",icon:e.jsx(W,{}),onClick:()=>o("History")}),children:"Order Detail"})}),e.jsx(V,{children:e.jsxs("div",{className:a.body,children:[e.jsx(se,{OrderId:r,Order:t}),e.jsx(Z,{Items:y?.ShopCart,Columns:[ee(44,n),...de]}),e.jsx(ce,{Comments:y?.Comments}),e.jsx(te,{OrderId:r,Status:t?.Status,Refresh:T,ParentLog:n}),e.jsx(ae,{OrderId:r,Status:t?.Status,Refresh:T,ParentLog:n})]})})]})]})}const x=D({five:{flexBasis:"5%",flexGrow:0},ten:{flexBasis:"10%",flexGrow:0},two:{flexBasis:"2.5%",flexGrow:0}}),oe=[i({columnId:"OrderId",renderHeaderCell:()=>e.jsx(d,{className:x().five,children:"Order Id"}),renderCell(r){return e.jsx(h,{className:x().five,children:r.Id})}}),i({columnId:"Products",renderHeaderCell:()=>e.jsx(d,{children:"Products"}),renderCell(r){return e.jsxs(h,{children:[r.Items[0]," ",r.Items.length>1&&`& +${r.Items.length-1}`]})}}),i({columnId:"OrderDate",renderHeaderCell:()=>e.jsx(d,{children:"Order Date"}),renderCell(r){return e.jsx(d,{children:r.OrderDate.toLocaleDateString()})}}),i({columnId:"TrackNumber",renderHeaderCell:()=>e.jsx(d,{children:"Track Number"}),renderCell(r){return e.jsx(h,{children:r.TrackNumber})}}),i({columnId:"Quantity",renderHeaderCell:()=>e.jsx(d,{className:x().ten,children:"Quantity"}),renderCell(r){return e.jsx(h,{className:x().ten,children:r.Quantity})}}),i({columnId:"Status",renderHeaderCell:()=>e.jsx(d,{className:x().ten,children:"Order State"}),renderCell(r){return e.jsx(h,{className:x().ten,children:r.Status})}})];function he(r){return[...oe,i({columnId:"Detail",renderHeaderCell:()=>e.jsx(d,{className:x().two,children:"Detail"}),renderCell(s){return e.jsx(h,{className:x().two,children:e.jsx(ie,{OrderId:s.Id,ParentLog:r})})}})]}export{he as H,se as O,ce as a}; diff --git a/assets/Component-yD7WLU4o.js b/assets/Component-H1hIVv9X.js similarity index 73% rename from assets/Component-yD7WLU4o.js rename to assets/Component-H1hIVv9X.js index d6cf052..45585b6 100644 --- a/assets/Component-yD7WLU4o.js +++ b/assets/Component-H1hIVv9X.js @@ -1 +1 @@ -import{j as g,W as Te,_ as W,bE as ne,m as pe,s as Ie,r as N,b1 as ae,Q as we,R as Ae,B as je,bH as Le,V as $e}from"./vendor-EPO6t9z0.js";import{a as e,h as ue,i as he,j as de,C as xe,u as Pe,L as ke,b as Ye,T as Ke,I as fe,k as se,l as We,m as Se,n as ze,o as ve,p as He}from"./index-UDCnD8Lh.js";import{L as Be}from"./LexicalNestedComposer-adJhyL2F.js";import"./index-th8hOfI3.js";function Je({cell:t,rows:s,cellCoordMap:c,updateCellsByID:a,onClose:C,updateTableNode:y,setSortingOptions:x,sortingOptions:n}){const j=c.get(t.id);if(!j)return null;const[_,w]=j,S=[];return t.type==="header"&&w===0&&(n&&n.x===_&&S.push(g.jsx(W,{onClick:()=>{x(null),C()},children:"Remove Sorting"})),(!n||n.x!==_||n.type==="descending")&&S.push(g.jsx(W,{onClick:()=>{x({type:"ascending",x:_}),C()},children:"Sort Ascending"})),(!n||n.x!==_||n.type==="ascending")&&S.push(g.jsx(W,{onClick:()=>{x({type:"descending",x:_}),C()},children:"Sort Descending"})),S.push(g.jsx(ne,{}))),g.jsxs(Te,{children:[g.jsx(W,{onClick:()=>{y(E=>{E.updateCellType(_,w,t.type==="normal"?"header":"normal")}),C()},children:t.type==="normal"?"Make header":"Remove header"}),g.jsx(W,{onClick:()=>{a([t.id],()=>{const E=e.$getRoot();E.clear(),E.append(e.$createParagraphNode())}),C()},children:"Clear Cell"}),g.jsx(ne,{}),S,g.jsx(W,{onClick:()=>{y(E=>{E.insertRowAt(w)}),C()},children:"Insert row above"}),g.jsx(W,{onClick:()=>{y(E=>{E.insertRowAt(w+1)}),C()},children:"Insert row below"}),g.jsx(ne,{}),g.jsx(W,{onClick:()=>{y(E=>{E.insertColumnAt(_)}),C()},children:"Insert column left"}),g.jsx(W,{onClick:()=>{y(E=>{E.insertColumnAt(_+1)}),C()},children:"Insert column right"}),g.jsx(ne,{}),s[0].cells.length!==1&&g.jsx(W,{onClick:()=>{y(E=>{E.deleteColumnAt(_)}),C()},children:"Delete column"}),s.length!==1&&g.jsx(W,{onClick:()=>{y(E=>{E.deleteRowAt(w)}),C()},children:"Delete row"}),g.jsx(W,{onClick:()=>{y(E=>{E.selectNext(),E.remove()}),C()},children:"Delete table"})]})}function Xe(t){return`


`}function Fe(t,s){const c=s.parseEditorState(t);let a=ue.get(t);if(!a){a=c.read(()=>he.$generateHtmlFromNodes(s,null));const C=c.read(()=>e.$getRoot().getTextContent());ue.set(t,a),de.set(t,C)}return a}function Ue({cellEditor:t}){const{cellEditorConfig:s,cellEditorPlugins:c}=N.useContext(xe);return!c||!s?null:g.jsx(Be.LexicalNestedComposer,{initialEditor:t,initialTheme:s.theme,initialNodes:s.nodes,skipCollabChecks:!0,children:c})}function qe({cell:t,cellCoordMap:s,cellEditor:c,isEditing:a,isSelected:C,isPrimarySelected:y,theme:x,updateCellsByID:n,updateTableNode:j,rows:_,setSortingOptions:w,sortingOptions:S}){const[E,Y]=N.useState(!1),u=t.type!=="normal",v=t.json,J=u?"th":"td",oe=t.width,P=s.get(t.id),z=S&&P&&P[0]===S.x&&P[1]===0;N.useEffect(()=>{(a||!y)&&Y(!1)},[a,y]);const H=Ge();return g.jsxs(J,{className:ae(x.tableCell,u&&x.tableCellHeader,C&&x.tableCellSelected),"data-id":t.id,tabIndex:-1,style:{width:oe},children:[y&&g.jsx("div",{className:ae(x.tableCellPrimarySelected,a&&x.tableCellEditing)}),y&&a?g.jsx(Ue,{cellEditor:c}):g.jsxs(g.Fragment,{children:[g.jsx("div",{className:H.prim,dangerouslySetInnerHTML:{__html:v?Fe(v,c):Xe(x)}}),g.jsx("div",{className:x.tableCellResizer,"data-table-resize":"true"})]}),y&&!a&&g.jsx("div",{className:x.tableCellActionButtonContainer,children:g.jsxs(we,{open:E,children:[g.jsx(Ae,{disableButtonEnhancement:!0,children:g.jsx(je,{size:"small",shape:"circular",className:H.btn,children:g.jsx(Le,{}),onClick:Q=>{Y(!E),Q.stopPropagation()}})}),g.jsx($e,{children:g.jsx(Je,{cell:t,updateCellsByID:n,onClose:()=>Y(!1),updateTableNode:j,cellCoordMap:s,rows:_,setSortingOptions:w,sortingOptions:S})})]})}),z&&g.jsx("div",{className:x.tableCellSortedIndicator})]})}const Ge=pe({prim:{position:"relative",zIndex:3},btn:{maxWidth:"unset",minWidth:"unset",...Ie.padding("4px")}}),X=[];function Qe(){const t=e.$createRangeSelection();return t.focus.set("root",e.$getRoot().getChildrenSize(),"element"),t}function ie(t,s){const c=t.querySelector(`[data-id=${s}]`);c&&c.focus()}function Ve(t){return t.nodeType===1&&t.hasAttribute("data-table-resize")}function ge(t){const s=t.getRootElement();return s?s.ownerDocument:document}function Ze(t,s,c,a){return s?!1:t===67?fe?c:a:!1}function et(t,s,c,a){return s?!1:t===88?fe?c:a:!1}function tt(t,s,c,a){return s?!1:t===86?fe?c:a:!1}function ce(t){let s=t;for(;s;){const c=s.getAttribute("data-id");if(c)return c;s=s.parentElement}return null}function nt(t){let s=t;for(;s;){if(s.nodeName==="TH"||s.nodeName==="TD")return s.getBoundingClientRect().width;s=s.parentElement}return 0}function G(t,s,c,a,C,y){for(const x of s){const n=re(t,x,c);if(n&&a){const j=a.parseEditorState(n.json);a._headless=!0,a.setEditorState(j),a.update(y,{discrete:!0}),a._headless=!1;const _=JSON.stringify(a.getEditorState());C(w=>{const[S,E]=c.get(x);w.updateCellJSON(S,E,_)})}}}function st(t){let s=t;for(;s;){const c=s.nodeName;if(c==="BUTTON"||c==="INPUT"||c==="TEXTAREA")return!0;s=s.parentElement}return!1}function Re(t,s,c){const a=c.get(t),C=c.get(s);if(!a||!C)return null;const y=Math.min(a[0],C[0]),x=Math.max(a[0],C[0]),n=Math.min(a[1],C[1]),j=Math.max(a[1],C[1]);return{endX:x,endY:j,startX:y,startY:n}}function Ce(t,s,c,a){const C=Re(s,c,a);if(!C)return[];const{startX:y,endY:x,endX:n,startY:j}=C,_=[];for(let w=y;w<=n;w++)for(let S=j;S<=x;S++)_.push(t[S].cells[w].id);return _}function rt(t,s){const{startX:c,endY:a,endX:C,startY:y}=s,x=[];for(let n=y;n<=a;n++){const j=t[n],_=Se();for(let w=c;w<=C;w++){const S={...j.cells[w]};S.id=ze(),_.cells.push(S)}x.push(_)}return x}function re(t,s,c){const a=c.get(s);if(!a)return null;const[C,y]=a;return t[y].cells[C]}function ot(t){const s=t.querySelectorAll("tr"),c=[];for(let a=0;a{const i=new Map;for(let R=0;R{if(!J)return s;const i=s.slice(1);return i.sort((R,L)=>{const A=R.cells,m=L.cells,b=J.x,k=de.get(A[b].json),T=de.get(m[b].json);return!k||!T?1:J.type==="ascending"?k.localeCompare(T):T.localeCompare(k)}),i.unshift(s[0]),i},[s,J]),M=N.useMemo(()=>{if(!x)return null;const i=e.createEditor({namespace:x.namespace,nodes:x.nodes,onError:R=>x.onError(R,i),theme:x.theme});return i},[x]),me=N.useMemo(()=>new Set(P),[P]),$=N.useCallback(i=>{n.update(()=>{const R=e.$getNodeByKey(t);lt(R)&&i(R)})},[n,t]),F=N.useCallback((i,R,L)=>{const A=O[R].cells[i].id;if(S.current=A,L){const m=Ce(O,u,A,D);z(m)}else v(A),z(X),ie(E.current,A)},[D,u,O]),q=N.useCallback(()=>{if(M&&u){const i=JSON.stringify(M.getEditorState());$(R=>{const L=D.get(u);if(L===void 0)return;const[A,m]=L;R.updateCellJSON(A,m,i)})}},[D,M,u,$]),V=N.useCallback(()=>{setTimeout(()=>{const i=n.getRootElement();i&&(i.focus({preventScroll:!0}),window.getSelection()?.removeAllRanges())},20)},[n]),le=N.useCallback((i,R)=>{G(O,i,D,M,$,R)},[D,M,O,$]),Z=N.useCallback(()=>u&&!I?(le([u,...P],()=>{const i=e.$getRoot();i.clear(),i.append(e.$createParagraphNode())}),!0):(a&&$(i=>{i.selectNext(),i.remove()}),!1),[I,a,u,P,le,$]);N.useEffect(()=>{const i=E.current;a&&document.activeElement===document.body&&i&&i.focus()},[a]),N.useEffect(()=>{const i=E.current;if(!i)return;const R=ge(n);function L(T){const r=T.clientX-m.x,o=T.clientY-m.y;return r<5||o<5}function A(T){const r=ce(T.target);if(r&&n.isEditable()&&i.contains(T.target)){if(L(T)){C(!0),v(null),V();return}if(C(!1),Ve(T.target)){Q(r),i.style.userSelect="none",j.current={point:T.clientX,size:nt(T.target)};return}Y.current=!0,u!==r?(I&&q(),v(r),U(!1),S.current=r):S.current=null,z(X)}else u&&!st(T.target)&&(C(!1),Y.current=!1,I&&q(),v(null),z(X),U(!1),S.current=null)}const m=i.getBoundingClientRect();function b(T){if(H){const o=_.current;if(o){const{size:l,point:d}=j.current,p=T.clientX-d,h=l+p;let f=T.clientX-m.x;f<10?f=10:f>m.width-10?f=m.width-10:h<20&&(f=d-l+20-m.x),o.style.left=`${f}px`}return}if(!I){const{clientX:o,clientY:l}=T,{width:d,x:p,y:h,height:f}=m,B=o>p+d*.9&&oh+f*.85&&l{const[h]=D.get(H);p.updateColumnWidth(h,d)}),Q(null)}i&&P.length>1&&Y.current&&(i.style.userSelect="text",window.getSelection()?.removeAllRanges()),Y.current=!1}return R.addEventListener("pointerdown",A),R.addEventListener("pointermove",b),R.addEventListener("pointerup",k),()=>{R.removeEventListener("pointerdown",A),R.removeEventListener("pointermove",b),R.removeEventListener("pointerup",k)}},[M,n,I,O,q,u,me,P,D,H,$,C,V]),N.useEffect(()=>{if(!I&&u){let i=function(m){if(m&&M){const b=m.json,k=M.parseEditorState(b);M.setEditorState(k)}},R=function(m){const b=ce(m.target);if(b===u&&n.isEditable()){const k=re(O,b,D);i(k),U(!0),z(X)}},L=function(m){const b=m.keyCode;if(b===16||b===27||b===9||b===37||b===38||b===39||b===40||b===8||b===46||!n.isEditable())return;if(b===13&&m.preventDefault(),!I&&u&&n.getEditorState().read(()=>!e.$getSelection())&&m.target.contentEditable!=="true"){if(Ze(b,m.shiftKey,m.metaKey,m.ctrlKey)){n.dispatchCommand(e.COPY_COMMAND,m);return}if(et(b,m.shiftKey,m.metaKey,m.ctrlKey)){n.dispatchCommand(e.CUT_COMMAND,m);return}if(tt(b,m.shiftKey,m.metaKey,m.ctrlKey)){n.dispatchCommand(e.PASTE_COMMAND,m);return}}if(m.metaKey||m.ctrlKey||m.altKey)return;const k=re(O,u,D);i(k),U(!0),z(X)};const A=ge(n);return A.addEventListener("dblclick",R),A.addEventListener("keydown",L),()=>{A.removeEventListener("dblclick",R),A.removeEventListener("keydown",L)}}},[M,n,I,O,u,D]),N.useEffect(()=>{const i=E.current;if(!i)return;function R(r,o,l,d){const p=r instanceof KeyboardEvent?null:r.clipboardData;if(r.preventDefault(),p)p.setData("text/html",o),p.setData("text/plain",d),p.setData("application/x-lexical-editor",l);else{const h=navigator.clipboard;if(h){const f=[new ClipboardItem({"text/html":new Blob([o],{type:"text/html"})})];h.write(f)}}}async function L(r,o){try{return r instanceof DataTransfer?r.getData(o):r instanceof ClipboardItem?await(await r.getType(o)).text():""}catch{return""}}async function A(r){let o=(r instanceof InputEvent?null:r.clipboardData)||null;if(u&&M){if(r.preventDefault(),!o)try{o=(await navigator.clipboard.read())[0]}catch{}const l=o?await L(o,"application/x-lexical-editor"):"";if(l)try{const h=JSON.parse(l);if(h.namespace===n._config.namespace&&Array.isArray(h.nodes)){G(O,[u],D,M,$,()=>{const f=e.$getRoot();f.clear(),f.append(e.$createParagraphNode()),f.selectEnd();const B=se.$generateNodesFromSerializedNodes(h.nodes),K=e.$getSelection();e.$isRangeSelection(K)&&se.$insertGeneratedNodes(M,B,K)});return}}catch{}const d=o?await L(o,"text/html"):"";if(d)try{const f=new DOMParser().parseFromString(d,"text/html"),B=f.querySelector("table");if(B){const K=ot(B);$(ee=>{const[te,_e]=D.get(u);ee.mergeRows(te,_e,K)});return}G(O,[u],D,M,$,()=>{const K=e.$getRoot();K.clear(),K.append(e.$createParagraphNode()),K.selectEnd();const ee=he.$generateNodesFromDOM(n,f),te=e.$getSelection();e.$isRangeSelection(te)&&se.$insertGeneratedNodes(M,ee,te)});return}catch{}const p=o?await L(o,"text/plain"):"";p&&G(O,[u],D,M,$,()=>{const h=e.$getRoot();h.clear(),h.selectEnd();const f=e.$getSelection();f&&f.insertRawText(p)})}}function m(r){if(u&&M){const l=re(O,u,D).json,d=ue.get(l)||null;if(!d)return;const p=M.parseEditorState(l),h=p.read(()=>e.$getRoot().getTextContent()),f=p.read(()=>JSON.stringify(se.$generateJSONFromSelectedNodes(M,null)));R(r,d,f,h)}}function b(r){const o=S.current;if(u&&M&&o){const l=Re(u,o,D);if(!l)return;const d=We(O,l),p=d.outerHTML,h=d.outerText,f=n.getEditorState().read(()=>e.$getNodeByKey(t).exportJSON());f.rows=rt(O,l);const B={namespace:M._config.namespace,nodes:[f]},K=JSON.stringify(B);R(r,p,K,h)}}function k(r,o){const l=e.$getSelection();return u&&!I&&!l&&o===n?(A(r),Y.current=!1,z(X),!0):!1}function T(r,o){const l=e.$getSelection();return u&&!I&&!l&&o===n?(P.length===0?m(r):b(r),!0):!1}return Ye.mergeRegister(n.registerCommand(e.CLICK_COMMAND,r=>{const o=e.$getSelection();return!!e.$isNodeSelection(o)},e.COMMAND_PRIORITY_LOW),n.registerCommand(e.PASTE_COMMAND,k,e.COMMAND_PRIORITY_LOW),n.registerCommand(e.COPY_COMMAND,T,e.COMMAND_PRIORITY_LOW),n.registerCommand(e.CUT_COMMAND,(r,o)=>T(r,o)?(Z(),!0):!1,e.COMMAND_PRIORITY_LOW),n.registerCommand(e.KEY_BACKSPACE_COMMAND,Z,e.COMMAND_PRIORITY_LOW),n.registerCommand(e.KEY_DELETE_COMMAND,Z,e.COMMAND_PRIORITY_LOW),n.registerCommand(e.FORMAT_TEXT_COMMAND,r=>u&&!I?(G(O,[u,...P],D,M,$,()=>{Qe().formatText(r)}),!0):!1,e.COMMAND_PRIORITY_LOW),n.registerCommand(e.KEY_ENTER_COMMAND,(r,o)=>{const l=e.$getSelection();if(!u&&!I&&e.$isNodeSelection(l)&&l.has(t)&&l.getNodes().length===1&&o===n){const d=O[0].cells[0].id;return v(d),ie(i,d),r.preventDefault(),r.stopPropagation(),y(),!0}return!1},e.COMMAND_PRIORITY_LOW),n.registerCommand(e.KEY_TAB_COMMAND,r=>{const o=e.$getSelection();if(!I&&!o&&u){const l=r.shiftKey,[d,p]=D.get(u);r.preventDefault();let h=null,f=null;if(d===0&&l?p!==0&&(f=p-1,h=O[f].cells.length-1):d===O[p].cells.length-1&&!l?p!==O.length-1&&(f=p+1,h=0):l?(h=d-1,f=p):(h=d+1,f=p),h&&f)return F(h,f,!1),!0}return!1},e.COMMAND_PRIORITY_LOW),n.registerCommand(e.KEY_ARROW_UP_COMMAND,(r,o)=>{const l=e.$getSelection();if(!I&&!l){const d=r.shiftKey,p=d&&S.current||u;if(p){const[h,f]=D.get(p);if(f!==0)return F(h,f-1,d),!0}}return!e.$isRangeSelection(l)||o!==M?!1:l.isCollapsed()&&!l.anchor.getNode().getTopLevelElementOrThrow().getPreviousSibling()?(r.preventDefault(),!0):!1},e.COMMAND_PRIORITY_LOW),n.registerCommand(e.KEY_ARROW_DOWN_COMMAND,(r,o)=>{const l=e.$getSelection();if(!I&&!l){const d=r.shiftKey,p=d&&S.current||u;if(p){const[h,f]=D.get(p);if(f!==O.length-1)return F(h,f+1,d),!0}}return!e.$isRangeSelection(l)||o!==M?!1:l.isCollapsed()&&!l.anchor.getNode().getTopLevelElementOrThrow().getNextSibling()?(r.preventDefault(),!0):!1},e.COMMAND_PRIORITY_LOW),n.registerCommand(e.KEY_ARROW_LEFT_COMMAND,(r,o)=>{const l=e.$getSelection();if(!I&&!l){const d=r.shiftKey,p=d&&S.current||u;if(p){const[h,f]=D.get(p);if(h!==0)return F(h-1,f,d),!0}}return!e.$isRangeSelection(l)||o!==M?!1:l.isCollapsed()&&l.anchor.offset===0?(r.preventDefault(),!0):!1},e.COMMAND_PRIORITY_LOW),n.registerCommand(e.KEY_ARROW_RIGHT_COMMAND,(r,o)=>{const l=e.$getSelection();if(!I&&!l){const d=r.shiftKey,p=d&&S.current||u;if(p){const[h,f]=D.get(p);if(h!==O[f].cells.length-1)return F(h+1,f,d),!0}}if(!e.$isRangeSelection(l)||o!==M)return!1;if(l.isCollapsed()){const d=l.anchor;if(d.type==="text"&&d.offset===d.getNode().getTextContentSize()||d.type==="element"&&d.offset===d.getNode().getChildrenSize())return r.preventDefault(),!0}return!1},e.COMMAND_PRIORITY_LOW),n.registerCommand(e.KEY_ESCAPE_COMMAND,(r,o)=>{const l=e.$getSelection();return!I&&!l&&o===n?(C(!0),v(null),V(),!0):e.$isRangeSelection(l)&&I?(q(),U(!1),u&&setTimeout(()=>{ie(i,u)},20),!0):!1},e.COMMAND_PRIORITY_LOW))},[D,M,Z,y,n,I,F,t,u,O,q,V,P,C,$]);function be(){$(i=>{i.addColumns(1)})}function De(){$(i=>{i.addRows(1)})}if(!M)return null;const Oe=it();return g.jsxs("div",{className:Oe.box,children:[g.jsx("table",{className:ae(c.table,a&&c.tableSelected),ref:E,tabIndex:-1,children:g.jsx("tbody",{children:O.map(i=>g.jsx("tr",{className:c.tableRow,children:i.cells.map(R=>{const{id:L}=R;return g.jsx(qe,{cell:R,theme:c,isSelected:me.has(L),isPrimarySelected:u===L,isEditing:I,sortingOptions:J,cellEditor:M,updateCellsByID:le,updateTableNode:$,cellCoordMap:D,rows:O,setSortingOptions:oe},L)})},i.id))})}),ye&&g.jsx("button",{className:c.tableAddColumns,onClick:be}),Ee&&g.jsx("button",{className:c.tableAddRows,onClick:De,ref:w}),H&&g.jsx("div",{className:c.tableResizeRuler,ref:_})]})}const it=pe({box:{position:"relative"}});export{ft as default}; +import{j as g,W as Te,_ as W,bF as ne,m as pe,s as Ie,r as N,b2 as ae,Q as we,R as Ae,B as je,bI as Le,V as $e}from"./vendor-nd_CUwkm.js";import{a as e,h as ue,i as he,j as de,C as xe,u as Pe,L as ke,b as Ye,T as Ke,I as fe,k as se,l as We,m as Se,n as ze,o as ve,p as Be}from"./index-HHE451jH.js";import{L as He}from"./LexicalNestedComposer-UM2hmsAs.js";import"./index-g5wBm8kU.js";function Je({cell:t,rows:s,cellCoordMap:c,updateCellsByID:a,onClose:C,updateTableNode:y,setSortingOptions:x,sortingOptions:n}){const j=c.get(t.id);if(!j)return null;const[_,w]=j,S=[];return t.type==="header"&&w===0&&(n&&n.x===_&&S.push(g.jsx(W,{onClick:()=>{x(null),C()},children:"Remove Sorting"})),(!n||n.x!==_||n.type==="descending")&&S.push(g.jsx(W,{onClick:()=>{x({type:"ascending",x:_}),C()},children:"Sort Ascending"})),(!n||n.x!==_||n.type==="ascending")&&S.push(g.jsx(W,{onClick:()=>{x({type:"descending",x:_}),C()},children:"Sort Descending"})),S.push(g.jsx(ne,{}))),g.jsxs(Te,{children:[g.jsx(W,{onClick:()=>{y(M=>{M.updateCellType(_,w,t.type==="normal"?"header":"normal")}),C()},children:t.type==="normal"?"Make header":"Remove header"}),g.jsx(W,{onClick:()=>{a([t.id],()=>{const M=e.$getRoot();M.clear(),M.append(e.$createParagraphNode())}),C()},children:"Clear Cell"}),g.jsx(ne,{}),S,g.jsx(W,{onClick:()=>{y(M=>{M.insertRowAt(w)}),C()},children:"Insert row above"}),g.jsx(W,{onClick:()=>{y(M=>{M.insertRowAt(w+1)}),C()},children:"Insert row below"}),g.jsx(ne,{}),g.jsx(W,{onClick:()=>{y(M=>{M.insertColumnAt(_)}),C()},children:"Insert column left"}),g.jsx(W,{onClick:()=>{y(M=>{M.insertColumnAt(_+1)}),C()},children:"Insert column right"}),g.jsx(ne,{}),s[0].cells.length!==1&&g.jsx(W,{onClick:()=>{y(M=>{M.deleteColumnAt(_)}),C()},children:"Delete column"}),s.length!==1&&g.jsx(W,{onClick:()=>{y(M=>{M.deleteRowAt(w)}),C()},children:"Delete row"}),g.jsx(W,{onClick:()=>{y(M=>{M.selectNext(),M.remove()}),C()},children:"Delete table"})]})}function Xe(t){return`


`}function Fe(t,s){const c=s.parseEditorState(t);let a=ue.get(t);if(!a){a=c.read(()=>he.$generateHtmlFromNodes(s,null));const C=c.read(()=>e.$getRoot().getTextContent());ue.set(t,a),de.set(t,C)}return a}function Ue({cellEditor:t}){const{cellEditorConfig:s,cellEditorPlugins:c}=N.useContext(xe);return!c||!s?null:g.jsx(He.LexicalNestedComposer,{initialEditor:t,initialTheme:s.theme,initialNodes:s.nodes,skipCollabChecks:!0,children:c})}function qe({cell:t,cellCoordMap:s,cellEditor:c,isEditing:a,isSelected:C,isPrimarySelected:y,theme:x,updateCellsByID:n,updateTableNode:j,rows:_,setSortingOptions:w,sortingOptions:S}){const[M,Y]=N.useState(!1),u=t.type!=="normal",v=t.json,J=u?"th":"td",oe=t.width,P=s.get(t.id),z=S&&P&&P[0]===S.x&&P[1]===0;N.useEffect(()=>{(a||!y)&&Y(!1)},[a,y]);const B=Ge();return g.jsxs(J,{className:ae(x.tableCell,u&&x.tableCellHeader,C&&x.tableCellSelected),"data-id":t.id,tabIndex:-1,style:{width:oe},children:[y&&g.jsx("div",{className:ae(x.tableCellPrimarySelected,a&&x.tableCellEditing)}),y&&a?g.jsx(Ue,{cellEditor:c}):g.jsxs(g.Fragment,{children:[g.jsx("div",{className:B.prim,dangerouslySetInnerHTML:{__html:v?Fe(v,c):Xe(x)}}),g.jsx("div",{className:x.tableCellResizer,"data-table-resize":"true"})]}),y&&!a&&g.jsx("div",{className:x.tableCellActionButtonContainer,children:g.jsxs(we,{open:M,children:[g.jsx(Ae,{disableButtonEnhancement:!0,children:g.jsx(je,{size:"small",shape:"circular",className:B.btn,children:g.jsx(Le,{}),onClick:Q=>{Y(!M),Q.stopPropagation()}})}),g.jsx($e,{children:g.jsx(Je,{cell:t,updateCellsByID:n,onClose:()=>Y(!1),updateTableNode:j,cellCoordMap:s,rows:_,setSortingOptions:w,sortingOptions:S})})]})}),z&&g.jsx("div",{className:x.tableCellSortedIndicator})]})}const Ge=pe({prim:{position:"relative",zIndex:3},btn:{maxWidth:"unset",minWidth:"unset",...Ie.padding("4px")}}),X=[];function Qe(){const t=e.$createRangeSelection();return t.focus.set("root",e.$getRoot().getChildrenSize(),"element"),t}function ie(t,s){const c=t.querySelector(`[data-id=${s}]`);c&&c.focus()}function Ve(t){return t.nodeType===1&&t.hasAttribute("data-table-resize")}function ge(t){const s=t.getRootElement();return s?s.ownerDocument:document}function Ze(t,s,c,a){return s?!1:t===67?fe?c:a:!1}function et(t,s,c,a){return s?!1:t===88?fe?c:a:!1}function tt(t,s,c,a){return s?!1:t===86?fe?c:a:!1}function ce(t){let s=t;for(;s;){const c=s.getAttribute("data-id");if(c)return c;s=s.parentElement}return null}function nt(t){let s=t;for(;s;){if(s.nodeName==="TH"||s.nodeName==="TD")return s.getBoundingClientRect().width;s=s.parentElement}return 0}function G(t,s,c,a,C,y){for(const x of s){const n=re(t,x,c);if(n&&a){const j=a.parseEditorState(n.json);a._headless=!0,a.setEditorState(j),a.update(y,{discrete:!0}),a._headless=!1;const _=JSON.stringify(a.getEditorState());C(w=>{const[S,M]=c.get(x);w.updateCellJSON(S,M,_)})}}}function st(t){let s=t;for(;s;){const c=s.nodeName;if(c==="BUTTON"||c==="INPUT"||c==="TEXTAREA")return!0;s=s.parentElement}return!1}function Re(t,s,c){const a=c.get(t),C=c.get(s);if(!a||!C)return null;const y=Math.min(a[0],C[0]),x=Math.max(a[0],C[0]),n=Math.min(a[1],C[1]),j=Math.max(a[1],C[1]);return{endX:x,endY:j,startX:y,startY:n}}function Ce(t,s,c,a){const C=Re(s,c,a);if(!C)return[];const{startX:y,endY:x,endX:n,startY:j}=C,_=[];for(let w=y;w<=n;w++)for(let S=j;S<=x;S++)_.push(t[S].cells[w].id);return _}function rt(t,s){const{startX:c,endY:a,endX:C,startY:y}=s,x=[];for(let n=y;n<=a;n++){const j=t[n],_=Se();for(let w=c;w<=C;w++){const S={...j.cells[w]};S.id=ze(),_.cells.push(S)}x.push(_)}return x}function re(t,s,c){const a=c.get(s);if(!a)return null;const[C,y]=a;return t[y].cells[C]}function ot(t){const s=t.querySelectorAll("tr"),c=[];for(let a=0;a{const i=new Map;for(let R=0;R{if(!J)return s;const i=s.slice(1);return i.sort((R,L)=>{const A=R.cells,m=L.cells,b=J.x,k=de.get(A[b].json),T=de.get(m[b].json);return!k||!T?1:J.type==="ascending"?k.localeCompare(T):T.localeCompare(k)}),i.unshift(s[0]),i},[s,J]),E=N.useMemo(()=>{if(!x)return null;const i=e.createEditor({namespace:x.namespace,nodes:x.nodes,onError:R=>x.onError(R,i),theme:x.theme});return i},[x]),me=N.useMemo(()=>new Set(P),[P]),$=N.useCallback(i=>{n.update(()=>{const R=e.$getNodeByKey(t);lt(R)&&i(R)})},[n,t]),F=N.useCallback((i,R,L)=>{const A=O[R].cells[i].id;if(S.current=A,L){const m=Ce(O,u,A,D);z(m)}else v(A),z(X),ie(M.current,A)},[D,u,O]),q=N.useCallback(()=>{if(E&&u){const i=JSON.stringify(E.getEditorState());$(R=>{const L=D.get(u);if(L===void 0)return;const[A,m]=L;R.updateCellJSON(A,m,i)})}},[D,E,u,$]),V=N.useCallback(()=>{setTimeout(()=>{const i=n.getRootElement();i&&(i.focus({preventScroll:!0}),window.getSelection()?.removeAllRanges())},20)},[n]),le=N.useCallback((i,R)=>{G(O,i,D,E,$,R)},[D,E,O,$]),Z=N.useCallback(()=>u&&!I?(le([u,...P],()=>{const i=e.$getRoot();i.clear(),i.append(e.$createParagraphNode())}),!0):(a&&$(i=>{i.selectNext(),i.remove()}),!1),[I,a,u,P,le,$]);N.useEffect(()=>{const i=M.current;a&&document.activeElement===document.body&&i&&i.focus()},[a]),N.useEffect(()=>{const i=M.current;if(!i)return;const R=ge(n);function L(T){const r=T.clientX-m.x,o=T.clientY-m.y;return r<5||o<5}function A(T){const r=ce(T.target);if(r&&n.isEditable()&&i.contains(T.target)){if(L(T)){C(!0),v(null),V();return}if(C(!1),Ve(T.target)){Q(r),i.style.userSelect="none",j.current={point:T.clientX,size:nt(T.target)};return}Y.current=!0,u!==r?(I&&q(),v(r),U(!1),S.current=r):S.current=null,z(X)}else u&&!st(T.target)&&(C(!1),Y.current=!1,I&&q(),v(null),z(X),U(!1),S.current=null)}const m=i.getBoundingClientRect();function b(T){if(B){const o=_.current;if(o){const{size:l,point:d}=j.current,p=T.clientX-d,h=l+p;let f=T.clientX-m.x;f<10?f=10:f>m.width-10?f=m.width-10:h<20&&(f=d-l+20-m.x),o.style.left=`${f}px`}return}if(!I){const{clientX:o,clientY:l}=T,{width:d,x:p,y:h,height:f}=m,H=o>p+d*.9&&oh+f*.85&&l{const[h]=D.get(B);p.updateColumnWidth(h,d)}),Q(null)}i&&P.length>1&&Y.current&&(i.style.userSelect="text",window.getSelection()?.removeAllRanges()),Y.current=!1}return R.addEventListener("pointerdown",A),R.addEventListener("pointermove",b),R.addEventListener("pointerup",k),()=>{R.removeEventListener("pointerdown",A),R.removeEventListener("pointermove",b),R.removeEventListener("pointerup",k)}},[E,n,I,O,q,u,me,P,D,B,$,C,V]),N.useEffect(()=>{if(!I&&u){let i=function(m){if(m&&E){const b=m.json,k=E.parseEditorState(b);E.setEditorState(k)}},R=function(m){const b=ce(m.target);if(b===u&&n.isEditable()){const k=re(O,b,D);i(k),U(!0),z(X)}},L=function(m){const b=m.keyCode;if(b===16||b===27||b===9||b===37||b===38||b===39||b===40||b===8||b===46||!n.isEditable())return;if(b===13&&m.preventDefault(),!I&&u&&n.getEditorState().read(()=>!e.$getSelection())&&m.target.contentEditable!=="true"){if(Ze(b,m.shiftKey,m.metaKey,m.ctrlKey)){n.dispatchCommand(e.COPY_COMMAND,m);return}if(et(b,m.shiftKey,m.metaKey,m.ctrlKey)){n.dispatchCommand(e.CUT_COMMAND,m);return}if(tt(b,m.shiftKey,m.metaKey,m.ctrlKey)){n.dispatchCommand(e.PASTE_COMMAND,m);return}}if(m.metaKey||m.ctrlKey||m.altKey)return;const k=re(O,u,D);i(k),U(!0),z(X)};const A=ge(n);return A.addEventListener("dblclick",R),A.addEventListener("keydown",L),()=>{A.removeEventListener("dblclick",R),A.removeEventListener("keydown",L)}}},[E,n,I,O,u,D]),N.useEffect(()=>{const i=M.current;if(!i)return;function R(r,o,l,d){const p=r instanceof KeyboardEvent?null:r.clipboardData;if(r.preventDefault(),p)p.setData("text/html",o),p.setData("text/plain",d),p.setData("application/x-lexical-editor",l);else{const h=navigator.clipboard;if(h){const f=[new ClipboardItem({"text/html":new Blob([o],{type:"text/html"})})];h.write(f)}}}async function L(r,o){try{return r instanceof DataTransfer?r.getData(o):r instanceof ClipboardItem?await(await r.getType(o)).text():""}catch{return""}}async function A(r){let o=(r instanceof InputEvent?null:r.clipboardData)||null;if(u&&E){if(r.preventDefault(),!o)try{o=(await navigator.clipboard.read())[0]}catch{}const l=o?await L(o,"application/x-lexical-editor"):"";if(l)try{const h=JSON.parse(l);if(h.namespace===n._config.namespace&&Array.isArray(h.nodes)){G(O,[u],D,E,$,()=>{const f=e.$getRoot();f.clear(),f.append(e.$createParagraphNode()),f.selectEnd();const H=se.$generateNodesFromSerializedNodes(h.nodes),K=e.$getSelection();e.$isRangeSelection(K)&&se.$insertGeneratedNodes(E,H,K)});return}}catch{}const d=o?await L(o,"text/html"):"";if(d)try{const f=new DOMParser().parseFromString(d,"text/html"),H=f.querySelector("table");if(H){const K=ot(H);$(ee=>{const[te,_e]=D.get(u);ee.mergeRows(te,_e,K)});return}G(O,[u],D,E,$,()=>{const K=e.$getRoot();K.clear(),K.append(e.$createParagraphNode()),K.selectEnd();const ee=he.$generateNodesFromDOM(n,f),te=e.$getSelection();e.$isRangeSelection(te)&&se.$insertGeneratedNodes(E,ee,te)});return}catch{}const p=o?await L(o,"text/plain"):"";p&&G(O,[u],D,E,$,()=>{const h=e.$getRoot();h.clear(),h.selectEnd();const f=e.$getSelection();f&&f.insertRawText(p)})}}function m(r){if(u&&E){const l=re(O,u,D).json,d=ue.get(l)||null;if(!d)return;const p=E.parseEditorState(l),h=p.read(()=>e.$getRoot().getTextContent()),f=p.read(()=>JSON.stringify(se.$generateJSONFromSelectedNodes(E,null)));R(r,d,f,h)}}function b(r){const o=S.current;if(u&&E&&o){const l=Re(u,o,D);if(!l)return;const d=We(O,l),p=d.outerHTML,h=d.outerText,f=n.getEditorState().read(()=>e.$getNodeByKey(t).exportJSON());f.rows=rt(O,l);const H={namespace:E._config.namespace,nodes:[f]},K=JSON.stringify(H);R(r,p,K,h)}}function k(r,o){const l=e.$getSelection();return u&&!I&&!l&&o===n?(A(r),Y.current=!1,z(X),!0):!1}function T(r,o){const l=e.$getSelection();return u&&!I&&!l&&o===n?(P.length===0?m(r):b(r),!0):!1}return Ye.mergeRegister(n.registerCommand(e.CLICK_COMMAND,r=>{const o=e.$getSelection();return!!e.$isNodeSelection(o)},e.COMMAND_PRIORITY_LOW),n.registerCommand(e.PASTE_COMMAND,k,e.COMMAND_PRIORITY_LOW),n.registerCommand(e.COPY_COMMAND,T,e.COMMAND_PRIORITY_LOW),n.registerCommand(e.CUT_COMMAND,(r,o)=>T(r,o)?(Z(),!0):!1,e.COMMAND_PRIORITY_LOW),n.registerCommand(e.KEY_BACKSPACE_COMMAND,Z,e.COMMAND_PRIORITY_LOW),n.registerCommand(e.KEY_DELETE_COMMAND,Z,e.COMMAND_PRIORITY_LOW),n.registerCommand(e.FORMAT_TEXT_COMMAND,r=>u&&!I?(G(O,[u,...P],D,E,$,()=>{Qe().formatText(r)}),!0):!1,e.COMMAND_PRIORITY_LOW),n.registerCommand(e.KEY_ENTER_COMMAND,(r,o)=>{const l=e.$getSelection();if(!u&&!I&&e.$isNodeSelection(l)&&l.has(t)&&l.getNodes().length===1&&o===n){const d=O[0].cells[0].id;return v(d),ie(i,d),r.preventDefault(),r.stopPropagation(),y(),!0}return!1},e.COMMAND_PRIORITY_LOW),n.registerCommand(e.KEY_TAB_COMMAND,r=>{const o=e.$getSelection();if(!I&&!o&&u){const l=r.shiftKey,[d,p]=D.get(u);r.preventDefault();let h=null,f=null;if(d===0&&l?p!==0&&(f=p-1,h=O[f].cells.length-1):d===O[p].cells.length-1&&!l?p!==O.length-1&&(f=p+1,h=0):l?(h=d-1,f=p):(h=d+1,f=p),h&&f)return F(h,f,!1),!0}return!1},e.COMMAND_PRIORITY_LOW),n.registerCommand(e.KEY_ARROW_UP_COMMAND,(r,o)=>{const l=e.$getSelection();if(!I&&!l){const d=r.shiftKey,p=d&&S.current||u;if(p){const[h,f]=D.get(p);if(f!==0)return F(h,f-1,d),!0}}return!e.$isRangeSelection(l)||o!==E?!1:l.isCollapsed()&&!l.anchor.getNode().getTopLevelElementOrThrow().getPreviousSibling()?(r.preventDefault(),!0):!1},e.COMMAND_PRIORITY_LOW),n.registerCommand(e.KEY_ARROW_DOWN_COMMAND,(r,o)=>{const l=e.$getSelection();if(!I&&!l){const d=r.shiftKey,p=d&&S.current||u;if(p){const[h,f]=D.get(p);if(f!==O.length-1)return F(h,f+1,d),!0}}return!e.$isRangeSelection(l)||o!==E?!1:l.isCollapsed()&&!l.anchor.getNode().getTopLevelElementOrThrow().getNextSibling()?(r.preventDefault(),!0):!1},e.COMMAND_PRIORITY_LOW),n.registerCommand(e.KEY_ARROW_LEFT_COMMAND,(r,o)=>{const l=e.$getSelection();if(!I&&!l){const d=r.shiftKey,p=d&&S.current||u;if(p){const[h,f]=D.get(p);if(h!==0)return F(h-1,f,d),!0}}return!e.$isRangeSelection(l)||o!==E?!1:l.isCollapsed()&&l.anchor.offset===0?(r.preventDefault(),!0):!1},e.COMMAND_PRIORITY_LOW),n.registerCommand(e.KEY_ARROW_RIGHT_COMMAND,(r,o)=>{const l=e.$getSelection();if(!I&&!l){const d=r.shiftKey,p=d&&S.current||u;if(p){const[h,f]=D.get(p);if(h!==O[f].cells.length-1)return F(h+1,f,d),!0}}if(!e.$isRangeSelection(l)||o!==E)return!1;if(l.isCollapsed()){const d=l.anchor;if(d.type==="text"&&d.offset===d.getNode().getTextContentSize()||d.type==="element"&&d.offset===d.getNode().getChildrenSize())return r.preventDefault(),!0}return!1},e.COMMAND_PRIORITY_LOW),n.registerCommand(e.KEY_ESCAPE_COMMAND,(r,o)=>{const l=e.$getSelection();return!I&&!l&&o===n?(C(!0),v(null),V(),!0):e.$isRangeSelection(l)&&I?(q(),U(!1),u&&setTimeout(()=>{ie(i,u)},20),!0):!1},e.COMMAND_PRIORITY_LOW))},[D,E,Z,y,n,I,F,t,u,O,q,V,P,C,$]);function be(){$(i=>{i.addColumns(1)})}function De(){$(i=>{i.addRows(1)})}if(!E)return null;const Oe=it();return g.jsxs("div",{className:Oe.box,children:[g.jsx("table",{className:ae(c.table,a&&c.tableSelected),ref:M,tabIndex:-1,children:g.jsx("tbody",{children:O.map(i=>g.jsx("tr",{className:c.tableRow,children:i.cells.map(R=>{const{id:L}=R;return g.jsx(qe,{cell:R,theme:c,isSelected:me.has(L),isPrimarySelected:u===L,isEditing:I,sortingOptions:J,cellEditor:E,updateCellsByID:le,updateTableNode:$,cellCoordMap:D,rows:O,setSortingOptions:oe},L)})},i.id))})}),ye&&g.jsx("button",{className:c.tableAddColumns,onClick:be}),Me&&g.jsx("button",{className:c.tableAddRows,onClick:De,ref:w}),B&&g.jsx("div",{className:c.tableResizeRuler,ref:_})]})}const it=pe({box:{position:"relative"}});export{ft as default}; diff --git a/assets/Component-7VbI7F8z.js b/assets/Component-dbiRH4vW.js similarity index 96% rename from assets/Component-7VbI7F8z.js rename to assets/Component-dbiRH4vW.js index 4546902..c9d7d05 100644 --- a/assets/Component-7VbI7F8z.js +++ b/assets/Component-dbiRH4vW.js @@ -1 +1 @@ -import{m as H,s as b,r as f,j as a,B as T,b1 as N}from"./vendor-EPO6t9z0.js";import{u as B,L as X,a as r,$,b as K,c as F,d as U,e as G,f as V,P as q,g as J}from"./index-UDCnD8Lh.js";import{L as Q}from"./LexicalNestedComposer-adJhyL2F.js";import"./index-th8hOfI3.js";function k(h,C,p){return Math.min(Math.max(h,C),p)}const o={east:1,north:8,south:2,west:4};function Z({onResizeStart:h,onResizeEnd:C,buttonRef:p,imageRef:E,maxWidth:v,editor:S,showCaption:_,setShowCaption:M,captionsEnabled:z}){const O=f.useRef(null),y=f.useRef({priority:"",value:"default"}),P=f.useRef({currentHeight:0,currentWidth:0,direction:0,isResizing:!1,ratio:0,startHeight:0,startWidth:0,startX:0,startY:0}),l=S.getRootElement(),m=v||(l?l.getBoundingClientRect().width-20:100),j=l?l.getBoundingClientRect().height-20:100,L=100,A=100;function u(t){const n=t===o.east||t===o.west,s=t===o.north||t===o.south,w=t&o.north&&t&o.west||t&o.south&&t&o.east,g=n?"ew":s?"ns":w?"nwse":"nesw";l&&l.style.setProperty("cursor",`${g}-resize`,"important"),document.body&&(document.body.style.setProperty("cursor",`${g}-resize`,"important"),y.current.value=document.body.style.getPropertyValue("-webkit-user-select"),y.current.priority=document.body.style.getPropertyPriority("-webkit-user-select"),document.body.style.setProperty("-webkit-user-select","none","important"))}function I(){l&&l.style.setProperty("cursor","default"),document.body&&(document.body.style.setProperty("cursor","default"),document.body.style.setProperty("-webkit-user-select",y.current.value,y.current.priority))}function x(t,n){if(!S.isEditable())return;const s=E.current,w=O.current;if(s&&w){const{width:g,height:i}=s.getBoundingClientRect(),e=P.current;e.startWidth=g,e.startHeight=i,e.ratio=g/i,e.currentWidth=g,e.currentHeight=i,e.startX=t.clientX,e.startY=t.clientY,e.isResizing=!0,e.direction=n,u(n),h(),w.classList.add("image-control-wrapper--resizing"),s.style.height=`${i}px`,s.style.width=`${g}px`,document.addEventListener("pointermove",W),document.addEventListener("pointerup",D)}}function W(t){const n=E.current,s=P.current,w=s.direction&(o.east|o.west),g=s.direction&(o.south|o.north);if(n&&s.isResizing)if(w&&g){let i=Math.floor(s.startX-t.clientX);i=s.direction&o.east?-i:i;const e=k(s.startWidth+i,L,m),d=e/s.ratio;n.style.width=`${e}px`,n.style.height=`${d}px`,s.currentHeight=d,s.currentWidth=e}else if(g){let i=Math.floor(s.startY-t.clientY);i=s.direction&o.south?-i:i;const e=k(s.startHeight+i,A,j);n.style.height=`${e}px`,s.currentHeight=e}else{let i=Math.floor(s.startX-t.clientX);i=s.direction&o.east?-i:i;const e=k(s.startWidth+i,L,m);n.style.width=`${e}px`,s.currentWidth=e}}function D(){const t=E.current,n=P.current,s=O.current;if(t&&s&&n.isResizing){const w=n.currentWidth,g=n.currentHeight;n.startWidth=0,n.startHeight=0,n.ratio=0,n.startX=0,n.startY=0,n.currentWidth=0,n.currentHeight=0,n.isResizing=!1,s.classList.remove("image-control-wrapper--resizing"),I(),C(w,g),document.removeEventListener("pointermove",W),document.removeEventListener("pointerup",D)}}const c=ee();return a.jsxs("div",{ref:O,children:[!_&&z&&a.jsx(T,{className:c.button,ref:p,onClick:()=>M(!_),children:"Add Caption"}),a.jsx("div",{className:N(c.resizer,c.n),onPointerDown:t=>x(t,o.north)}),a.jsx("div",{className:N(c.resizer,c.ne),onPointerDown:t=>x(t,o.north|o.east)}),a.jsx("div",{className:N(c.resizer,c.e),onPointerDown:t=>x(t,o.east)}),a.jsx("div",{className:N(c.resizer,c.se),onPointerDown:t=>x(t,o.south|o.east)}),a.jsx("div",{className:N(c.resizer,c.s),onPointerDown:t=>x(t,o.south)}),a.jsx("div",{className:N(c.resizer,c.sw),onPointerDown:t=>x(t,o.south|o.west)}),a.jsx("div",{className:N(c.resizer,c.w),onPointerDown:t=>x(t,o.west)}),a.jsx("div",{className:N(c.resizer,c.nw),onPointerDown:t=>x(t,o.north|o.west)})]})}const ee=H({button:{minWidth:"unset",fontWeight:"unset",width:"fit-content",position:"absolute",bottom:"20px",marginLeft:"auto",left:0,right:0,...b.margin(0,"auto")},resizer:{display:"block",width:"7px",height:"7px",position:"absolute",backgroundColor:"rgb(60, 132, 244)",...b.border("1px","solid","#fff")},n:{top:"-6px",left:"48%",cursor:"n-resize"},ne:{top:"-6px",right:"-6px",cursor:"ne-resize"},e:{bottom:"48%",right:"-6px",cursor:"e-resize"},se:{bottom:"-2px",right:"-6px",cursor:"nwse-resize"},s:{bottom:"-2px",left:"48%",cursor:"s-resize"},sw:{bottom:"-2px",left:"-6px",cursor:"sw-resize"},w:{bottom:"48%",left:"-6px",cursor:"w-resize"},nw:{top:"-6px",left:"-6px",cursor:"nw-resize"}}),te=H({caption:{display:"block",position:"absolute",bottom:"4px",left:0,right:0,...b.padding(0),...b.margin(0),...b.borderTop("1px","solid","#fff"),backgroundColor:"rgba(255, 255, 255, 0.9)",minWidth:"100px",color:"#000",...b.overflow("hidden")},content:{minHeight:"20px",...b.border(0),resize:"none",cursor:"text",caretColor:"rgb(5, 5, 5)",display:"block",position:"relative",tabSize:1,...b.outline(0),...b.padding("10px"),userSelect:"text",fontSize:"12px",width:"calc(100% - 20px)",whiteSpace:"pre-wrap",wordBreak:"break-word"},placeholder:{fontSize:"12px",color:"#888",...b.overflow("hidden"),position:"absolute",textOverflow:"ellipsis",top:"10px",left:"10px",userSelect:"none",whiteSpace:"nowrap",display:"inline-block",pointerEvents:"none"}}),Y=new Set;function se(h){if(!Y.has(h))throw new Promise(C=>{const p=new Image;p.src=h,p.onload=()=>{Y.add(h),C(null)}})}function re({altText:h,className:C,imageRef:p,src:E,width:v,height:S,maxWidth:_}){return se(E),a.jsx("img",{className:C||void 0,src:E,alt:h,ref:p,style:{height:S,maxWidth:_,width:v},draggable:"false"})}function ce({src:h,altText:C,nodeKey:p,width:E,height:v,maxWidth:S,resizable:_,showCaption:M,caption:z,captionsEnabled:O}){const y=f.useRef(null),P=f.useRef(null),[l,m,j]=B.useLexicalNodeSelection(p),[L,A]=f.useState(!1),[u]=X.useLexicalComposerContext(),[I,x]=f.useState(null),W=f.useRef(null),D=f.useCallback(e=>{if(l&&r.$isNodeSelection(r.$getSelection())){e.preventDefault();const R=r.$getNodeByKey(p);$(R)&&R.remove(),m(!1)}return!1},[l,p,m]),c=f.useCallback(e=>{const d=r.$getSelection(),R=P.current;if(l&&r.$isNodeSelection(d)&&d.getNodes().length===1){if(M)return r.$setSelection(null),e.preventDefault(),z.focus(),!0;if(R!==null&&R!==document.activeElement)return e.preventDefault(),R.focus(),!0}return!1},[z,l,M]),t=f.useCallback(e=>W.current===z||P.current===e.target?(r.$setSelection(null),u.update(()=>{m(!0);const d=u.getRootElement();d!==null&&d.focus()}),!0):!1,[z,u,m]);f.useEffect(()=>K.mergeRegister(u.registerUpdateListener(({editorState:e})=>{x(e.read(()=>r.$getSelection()))}),u.registerCommand(r.SELECTION_CHANGE_COMMAND,(e,d)=>(W.current=d,!1),r.COMMAND_PRIORITY_LOW),u.registerCommand(r.CLICK_COMMAND,e=>{const d=e;return L?!0:d.target===y.current?(d.shiftKey?m(!l):(j(),m(!0)),!0):!1},r.COMMAND_PRIORITY_LOW),u.registerCommand(r.DRAGSTART_COMMAND,e=>e.target===y.current?(e.preventDefault(),!0):!1,r.COMMAND_PRIORITY_LOW),u.registerCommand(r.KEY_DELETE_COMMAND,D,r.COMMAND_PRIORITY_LOW),u.registerCommand(r.KEY_BACKSPACE_COMMAND,D,r.COMMAND_PRIORITY_LOW),u.registerCommand(r.KEY_ENTER_COMMAND,c,r.COMMAND_PRIORITY_LOW),u.registerCommand(r.KEY_ESCAPE_COMMAND,t,r.COMMAND_PRIORITY_LOW)),[j,u,L,l,p,D,c,t,m]);function n(){u.update(()=>{const e=r.$getNodeByKey(p);$(e)&&e.setShowCaption(!0)})}function s(e,d){setTimeout(()=>{A(!1)},200),u.update(()=>{const R=r.$getNodeByKey(p);$(R)&&R.setWidthAndHeight(e,d)})}const w=l&&r.$isNodeSelection(I)&&!L,g=l||L,i=te();return a.jsxs(f.Suspense,{children:[a.jsx("div",{draggable:w,children:a.jsx(re,{className:g?`focused ${r.$isNodeSelection(I)?"draggable":""}`:null,src:h,altText:C,imageRef:y,width:E,height:v,maxWidth:S})}),M&&a.jsx("div",{className:N("LexEditor_ImageCaption",i.caption),children:a.jsxs(Q.LexicalNestedComposer,{initialEditor:z,children:[a.jsx(F.AutoFocusPlugin,{}),a.jsx(U,{}),a.jsx(G.RichTextPlugin,{contentEditable:a.jsx(V,{className:i.content}),placeholder:a.jsx(q,{className:i.placeholder,children:"Enter a caption..."}),ErrorBoundary:J})]})}),_&&r.$isNodeSelection(I)&&g&&a.jsx(Z,{showCaption:M,setShowCaption:n,editor:u,buttonRef:P,imageRef:y,maxWidth:S,onResizeStart:()=>A(!0),onResizeEnd:s,captionsEnabled:O})]})}export{ce as default}; +import{m as H,s as b,r as f,j as a,B as T,b2 as N}from"./vendor-nd_CUwkm.js";import{u as B,L as X,a as r,$,b as K,c as F,d as U,e as G,f as V,P as q,g as J}from"./index-HHE451jH.js";import{L as Q}from"./LexicalNestedComposer-UM2hmsAs.js";import"./index-g5wBm8kU.js";function k(h,C,p){return Math.min(Math.max(h,C),p)}const o={east:1,north:8,south:2,west:4};function Z({onResizeStart:h,onResizeEnd:C,buttonRef:p,imageRef:E,maxWidth:v,editor:S,showCaption:_,setShowCaption:M,captionsEnabled:z}){const O=f.useRef(null),y=f.useRef({priority:"",value:"default"}),P=f.useRef({currentHeight:0,currentWidth:0,direction:0,isResizing:!1,ratio:0,startHeight:0,startWidth:0,startX:0,startY:0}),l=S.getRootElement(),m=v||(l?l.getBoundingClientRect().width-20:100),j=l?l.getBoundingClientRect().height-20:100,L=100,A=100;function u(t){const n=t===o.east||t===o.west,s=t===o.north||t===o.south,w=t&o.north&&t&o.west||t&o.south&&t&o.east,g=n?"ew":s?"ns":w?"nwse":"nesw";l&&l.style.setProperty("cursor",`${g}-resize`,"important"),document.body&&(document.body.style.setProperty("cursor",`${g}-resize`,"important"),y.current.value=document.body.style.getPropertyValue("-webkit-user-select"),y.current.priority=document.body.style.getPropertyPriority("-webkit-user-select"),document.body.style.setProperty("-webkit-user-select","none","important"))}function I(){l&&l.style.setProperty("cursor","default"),document.body&&(document.body.style.setProperty("cursor","default"),document.body.style.setProperty("-webkit-user-select",y.current.value,y.current.priority))}function x(t,n){if(!S.isEditable())return;const s=E.current,w=O.current;if(s&&w){const{width:g,height:i}=s.getBoundingClientRect(),e=P.current;e.startWidth=g,e.startHeight=i,e.ratio=g/i,e.currentWidth=g,e.currentHeight=i,e.startX=t.clientX,e.startY=t.clientY,e.isResizing=!0,e.direction=n,u(n),h(),w.classList.add("image-control-wrapper--resizing"),s.style.height=`${i}px`,s.style.width=`${g}px`,document.addEventListener("pointermove",W),document.addEventListener("pointerup",D)}}function W(t){const n=E.current,s=P.current,w=s.direction&(o.east|o.west),g=s.direction&(o.south|o.north);if(n&&s.isResizing)if(w&&g){let i=Math.floor(s.startX-t.clientX);i=s.direction&o.east?-i:i;const e=k(s.startWidth+i,L,m),d=e/s.ratio;n.style.width=`${e}px`,n.style.height=`${d}px`,s.currentHeight=d,s.currentWidth=e}else if(g){let i=Math.floor(s.startY-t.clientY);i=s.direction&o.south?-i:i;const e=k(s.startHeight+i,A,j);n.style.height=`${e}px`,s.currentHeight=e}else{let i=Math.floor(s.startX-t.clientX);i=s.direction&o.east?-i:i;const e=k(s.startWidth+i,L,m);n.style.width=`${e}px`,s.currentWidth=e}}function D(){const t=E.current,n=P.current,s=O.current;if(t&&s&&n.isResizing){const w=n.currentWidth,g=n.currentHeight;n.startWidth=0,n.startHeight=0,n.ratio=0,n.startX=0,n.startY=0,n.currentWidth=0,n.currentHeight=0,n.isResizing=!1,s.classList.remove("image-control-wrapper--resizing"),I(),C(w,g),document.removeEventListener("pointermove",W),document.removeEventListener("pointerup",D)}}const c=ee();return a.jsxs("div",{ref:O,children:[!_&&z&&a.jsx(T,{className:c.button,ref:p,onClick:()=>M(!_),children:"Add Caption"}),a.jsx("div",{className:N(c.resizer,c.n),onPointerDown:t=>x(t,o.north)}),a.jsx("div",{className:N(c.resizer,c.ne),onPointerDown:t=>x(t,o.north|o.east)}),a.jsx("div",{className:N(c.resizer,c.e),onPointerDown:t=>x(t,o.east)}),a.jsx("div",{className:N(c.resizer,c.se),onPointerDown:t=>x(t,o.south|o.east)}),a.jsx("div",{className:N(c.resizer,c.s),onPointerDown:t=>x(t,o.south)}),a.jsx("div",{className:N(c.resizer,c.sw),onPointerDown:t=>x(t,o.south|o.west)}),a.jsx("div",{className:N(c.resizer,c.w),onPointerDown:t=>x(t,o.west)}),a.jsx("div",{className:N(c.resizer,c.nw),onPointerDown:t=>x(t,o.north|o.west)})]})}const ee=H({button:{minWidth:"unset",fontWeight:"unset",width:"fit-content",position:"absolute",bottom:"20px",marginLeft:"auto",left:0,right:0,...b.margin(0,"auto")},resizer:{display:"block",width:"7px",height:"7px",position:"absolute",backgroundColor:"rgb(60, 132, 244)",...b.border("1px","solid","#fff")},n:{top:"-6px",left:"48%",cursor:"n-resize"},ne:{top:"-6px",right:"-6px",cursor:"ne-resize"},e:{bottom:"48%",right:"-6px",cursor:"e-resize"},se:{bottom:"-2px",right:"-6px",cursor:"nwse-resize"},s:{bottom:"-2px",left:"48%",cursor:"s-resize"},sw:{bottom:"-2px",left:"-6px",cursor:"sw-resize"},w:{bottom:"48%",left:"-6px",cursor:"w-resize"},nw:{top:"-6px",left:"-6px",cursor:"nw-resize"}}),te=H({caption:{display:"block",position:"absolute",bottom:"4px",left:0,right:0,...b.padding(0),...b.margin(0),...b.borderTop("1px","solid","#fff"),backgroundColor:"rgba(255, 255, 255, 0.9)",minWidth:"100px",color:"#000",...b.overflow("hidden")},content:{minHeight:"20px",...b.border(0),resize:"none",cursor:"text",caretColor:"rgb(5, 5, 5)",display:"block",position:"relative",tabSize:1,...b.outline(0),...b.padding("10px"),userSelect:"text",fontSize:"12px",width:"calc(100% - 20px)",whiteSpace:"pre-wrap",wordBreak:"break-word"},placeholder:{fontSize:"12px",color:"#888",...b.overflow("hidden"),position:"absolute",textOverflow:"ellipsis",top:"10px",left:"10px",userSelect:"none",whiteSpace:"nowrap",display:"inline-block",pointerEvents:"none"}}),Y=new Set;function se(h){if(!Y.has(h))throw new Promise(C=>{const p=new Image;p.src=h,p.onload=()=>{Y.add(h),C(null)}})}function re({altText:h,className:C,imageRef:p,src:E,width:v,height:S,maxWidth:_}){return se(E),a.jsx("img",{className:C||void 0,src:E,alt:h,ref:p,style:{height:S,maxWidth:_,width:v},draggable:"false"})}function ce({src:h,altText:C,nodeKey:p,width:E,height:v,maxWidth:S,resizable:_,showCaption:M,caption:z,captionsEnabled:O}){const y=f.useRef(null),P=f.useRef(null),[l,m,j]=B.useLexicalNodeSelection(p),[L,A]=f.useState(!1),[u]=X.useLexicalComposerContext(),[I,x]=f.useState(null),W=f.useRef(null),D=f.useCallback(e=>{if(l&&r.$isNodeSelection(r.$getSelection())){e.preventDefault();const R=r.$getNodeByKey(p);$(R)&&R.remove(),m(!1)}return!1},[l,p,m]),c=f.useCallback(e=>{const d=r.$getSelection(),R=P.current;if(l&&r.$isNodeSelection(d)&&d.getNodes().length===1){if(M)return r.$setSelection(null),e.preventDefault(),z.focus(),!0;if(R!==null&&R!==document.activeElement)return e.preventDefault(),R.focus(),!0}return!1},[z,l,M]),t=f.useCallback(e=>W.current===z||P.current===e.target?(r.$setSelection(null),u.update(()=>{m(!0);const d=u.getRootElement();d!==null&&d.focus()}),!0):!1,[z,u,m]);f.useEffect(()=>K.mergeRegister(u.registerUpdateListener(({editorState:e})=>{x(e.read(()=>r.$getSelection()))}),u.registerCommand(r.SELECTION_CHANGE_COMMAND,(e,d)=>(W.current=d,!1),r.COMMAND_PRIORITY_LOW),u.registerCommand(r.CLICK_COMMAND,e=>{const d=e;return L?!0:d.target===y.current?(d.shiftKey?m(!l):(j(),m(!0)),!0):!1},r.COMMAND_PRIORITY_LOW),u.registerCommand(r.DRAGSTART_COMMAND,e=>e.target===y.current?(e.preventDefault(),!0):!1,r.COMMAND_PRIORITY_LOW),u.registerCommand(r.KEY_DELETE_COMMAND,D,r.COMMAND_PRIORITY_LOW),u.registerCommand(r.KEY_BACKSPACE_COMMAND,D,r.COMMAND_PRIORITY_LOW),u.registerCommand(r.KEY_ENTER_COMMAND,c,r.COMMAND_PRIORITY_LOW),u.registerCommand(r.KEY_ESCAPE_COMMAND,t,r.COMMAND_PRIORITY_LOW)),[j,u,L,l,p,D,c,t,m]);function n(){u.update(()=>{const e=r.$getNodeByKey(p);$(e)&&e.setShowCaption(!0)})}function s(e,d){setTimeout(()=>{A(!1)},200),u.update(()=>{const R=r.$getNodeByKey(p);$(R)&&R.setWidthAndHeight(e,d)})}const w=l&&r.$isNodeSelection(I)&&!L,g=l||L,i=te();return a.jsxs(f.Suspense,{children:[a.jsx("div",{draggable:w,children:a.jsx(re,{className:g?`focused ${r.$isNodeSelection(I)?"draggable":""}`:null,src:h,altText:C,imageRef:y,width:E,height:v,maxWidth:S})}),M&&a.jsx("div",{className:N("LexEditor_ImageCaption",i.caption),children:a.jsxs(Q.LexicalNestedComposer,{initialEditor:z,children:[a.jsx(F.AutoFocusPlugin,{}),a.jsx(U,{}),a.jsx(G.RichTextPlugin,{contentEditable:a.jsx(V,{className:i.content}),placeholder:a.jsx(q,{className:i.placeholder,children:"Enter a caption..."}),ErrorBoundary:J})]})}),_&&r.$isNodeSelection(I)&&g&&a.jsx(Z,{showCaption:M,setShowCaption:n,editor:u,buttonRef:P,imageRef:y,maxWidth:S,onResizeStart:()=>A(!0),onResizeEnd:s,captionsEnabled:O})]})}export{ce as default}; diff --git a/assets/Lazy-epdmnhOX.js b/assets/Lazy-JjY9mDNW.js similarity index 53% rename from assets/Lazy-epdmnhOX.js rename to assets/Lazy-JjY9mDNW.js index f4cffea..af0be98 100644 --- a/assets/Lazy-epdmnhOX.js +++ b/assets/Lazy-JjY9mDNW.js @@ -1,7 +1,7 @@ -import{r as a,as as e,j as s,ar as t}from"./vendor-EPO6t9z0.js";function i(r){return s.jsx(a.Suspense,{fallback:s.jsx(t,{}),children:s.jsx(n,{...r})})}const n=a.lazy(()=>e(()=>import("./index-UDCnD8Lh.js").then(r=>r.q),__vite__mapDeps([0,1,2,3])));export{i as L}; +import{r as a,as as e,j as s,ar as t}from"./vendor-nd_CUwkm.js";function i(r){return s.jsx(a.Suspense,{fallback:s.jsx(t,{}),children:s.jsx(n,{...r})})}const n=a.lazy(()=>e(()=>import("./index-HHE451jH.js").then(r=>r.q),__vite__mapDeps([0,1,2,3])));export{i as L}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/index-UDCnD8Lh.js","assets/vendor-EPO6t9z0.js","assets/index-th8hOfI3.js","assets/index-mRiAC1cH.css"] + __vite__mapDeps.viteFileDeps = ["assets/index-HHE451jH.js","assets/vendor-nd_CUwkm.js","assets/index-g5wBm8kU.js","assets/index-mRiAC1cH.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } diff --git a/assets/LexicalNestedComposer-adJhyL2F.js b/assets/LexicalNestedComposer-UM2hmsAs.js similarity index 93% rename from assets/LexicalNestedComposer-adJhyL2F.js rename to assets/LexicalNestedComposer-UM2hmsAs.js index 716def8..56e3962 100644 --- a/assets/LexicalNestedComposer-adJhyL2F.js +++ b/assets/LexicalNestedComposer-UM2hmsAs.js @@ -1 +1 @@ -import{r as u}from"./vendor-EPO6t9z0.js";import{L as y}from"./index-UDCnD8Lh.js";var x={},b={},f=u;let p=[["Cat","rgb(125, 50, 0)"],["Dog","rgb(100, 0, 0)"],["Rabbit","rgb(150, 0, 0)"],["Frog","rgb(200, 0, 0)"],["Fox","rgb(200, 75, 0)"],["Hedgehog","rgb(0, 75, 0)"],["Pigeon","rgb(0, 125, 0)"],["Squirrel","rgb(75, 100, 0)"],["Bear","rgb(125, 100, 0)"],["Tiger","rgb(0, 0, 150)"],["Leopard","rgb(0, 0, 200)"],["Zebra","rgb(0, 0, 250)"],["Wolf","rgb(0, 100, 150)"],["Owl","rgb(0, 100, 100)"],["Gull","rgb(100, 0, 100)"],["Squid","rgb(150, 0, 150)"]],C=p[Math.floor(Math.random()*p.length)],m=f.createContext({clientID:0,color:C[1],isCollabActive:!1,name:C[0],yjsDocMap:new Map});b.CollaborationContext=m;b.useCollaborationContext=function(e,a){let r=f.useContext(m);return e!=null&&(r.name=e),a!=null&&(r.color=a),r};const N=b;var D=N,K=D,d=y,l=u;x.LexicalNestedComposer=function({initialEditor:e,children:a,initialNodes:r,initialTheme:h,skipCollabChecks:v}){let g=l.useRef(!1),i=l.useContext(d.LexicalComposerContext);if(i==null)throw Error("Minified Lexical error #9; visit https://lexical.dev/docs/error?code=9 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");let[t,{getTheme:L}]=i,_=l.useMemo(()=>{var o=h||L()||void 0;const M=d.createLexicalComposerContext(i,o);if(o!==void 0&&(e._config.theme=o),e._parentEditor=t,r)for(var n of r)o=n.getType(),e._nodes.set(o,{klass:n,replace:null,replaceWithKlass:null,transforms:new Set});else{n=e._nodes=new Map(t._nodes);for(const[k,c]of n)e._nodes.set(k,{klass:c.klass,replace:c.replace,replaceWithKlass:c.replaceWithKlass,transforms:new Set})}return e._config.namespace=t._config.namespace,e._editable=t._editable,[e,M]},[]),{isCollabActive:E,yjsDocMap:w}=K.useCollaborationContext(),s=v||g.current||w.has(e.getKey());return l.useEffect(()=>{s&&(g.current=!0)},[s]),l.useEffect(()=>t.registerEditableListener(o=>{e.setEditable(o)}),[e,t]),l.createElement(d.LexicalComposerContext.Provider,{value:_},!E||s?a:null)};const S=x;var j=S;export{j as L}; +import{r as u}from"./vendor-nd_CUwkm.js";import{L as y}from"./index-HHE451jH.js";var x={},b={},f=u;let p=[["Cat","rgb(125, 50, 0)"],["Dog","rgb(100, 0, 0)"],["Rabbit","rgb(150, 0, 0)"],["Frog","rgb(200, 0, 0)"],["Fox","rgb(200, 75, 0)"],["Hedgehog","rgb(0, 75, 0)"],["Pigeon","rgb(0, 125, 0)"],["Squirrel","rgb(75, 100, 0)"],["Bear","rgb(125, 100, 0)"],["Tiger","rgb(0, 0, 150)"],["Leopard","rgb(0, 0, 200)"],["Zebra","rgb(0, 0, 250)"],["Wolf","rgb(0, 100, 150)"],["Owl","rgb(0, 100, 100)"],["Gull","rgb(100, 0, 100)"],["Squid","rgb(150, 0, 150)"]],C=p[Math.floor(Math.random()*p.length)],m=f.createContext({clientID:0,color:C[1],isCollabActive:!1,name:C[0],yjsDocMap:new Map});b.CollaborationContext=m;b.useCollaborationContext=function(e,a){let r=f.useContext(m);return e!=null&&(r.name=e),a!=null&&(r.color=a),r};const N=b;var D=N,K=D,d=y,l=u;x.LexicalNestedComposer=function({initialEditor:e,children:a,initialNodes:r,initialTheme:h,skipCollabChecks:v}){let g=l.useRef(!1),i=l.useContext(d.LexicalComposerContext);if(i==null)throw Error("Minified Lexical error #9; visit https://lexical.dev/docs/error?code=9 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");let[t,{getTheme:L}]=i,_=l.useMemo(()=>{var o=h||L()||void 0;const M=d.createLexicalComposerContext(i,o);if(o!==void 0&&(e._config.theme=o),e._parentEditor=t,r)for(var n of r)o=n.getType(),e._nodes.set(o,{klass:n,replace:null,replaceWithKlass:null,transforms:new Set});else{n=e._nodes=new Map(t._nodes);for(const[k,c]of n)e._nodes.set(k,{klass:c.klass,replace:c.replace,replaceWithKlass:c.replaceWithKlass,transforms:new Set})}return e._config.namespace=t._config.namespace,e._editable=t._editable,[e,M]},[]),{isCollabActive:E,yjsDocMap:w}=K.useCollaborationContext(),s=v||g.current||w.has(e.getKey());return l.useEffect(()=>{s&&(g.current=!0)},[s]),l.useEffect(()=>t.registerEditableListener(o=>{e.setEditable(o)}),[e,t]),l.createElement(d.LexicalComposerContext.Provider,{value:_},!E||s?a:null)};const S=x;var j=S;export{j as L}; diff --git a/assets/index-9BToduwY.js b/assets/index-9BToduwY.js new file mode 100644 index 0000000..6f9406d --- /dev/null +++ b/assets/index-9BToduwY.js @@ -0,0 +1 @@ +import{m as l,j as s,aP as y,aQ as h,a4 as v,aR as p,e as G,aD as b,t as n,x as m,aS as C,O as N,J as R,aA as L,a3 as c,aT as F,aq as q}from"./vendor-nd_CUwkm.js";import{C as j,L as d,H as x,G as S,F as I,D as M,a as z}from"./index-g5wBm8kU.js";import{c as $,b as k,e as B}from"./isArrayLike--sVJAW2Y.js";import{i as D}from"./isObject-tyZXtoJz.js";import{t as f}from"./toFinite-GMFxiq4g.js";function E(e,a,i){if(!D(i))return!1;var t=typeof a;return(t=="number"?$(i)&&k(a,i.length):t=="string"&&a in i)?B(i[a],e):!1}var P=Math.floor,V=Math.random;function H(e,a){return e+P(V()*(a-e+1))}var T=parseFloat,A=Math.min,X=Math.random;function O(e,a,i){if(i&&typeof i!="boolean"&&E(e,a,i)&&(a=i=void 0),i===void 0&&(typeof a=="boolean"?(i=a,a=void 0):typeof e=="boolean"&&(i=e,e=void 0)),e===void 0&&a===void 0?(e=0,a=1):(e=f(e),a===void 0?(a=e,e=0):a=f(a)),e>a){var t=e;e=a,a=t}if(i||e%1||a%1){var r=X();return A(e+r*(a-e+T("1e-"+((r+"").length-1))),a)}return H(e,a)}const Q=l({main:{alignItems:"flex-start",columnGap:n.spacingHorizontalXXL},img:{...j,aspectRatio:"16/9"},txt:{flexBasis:0}});function g(){const e=Q();return s.jsxs(s.Fragment,{children:[s.jsxs(y,{orientation:"horizontal",size:"large",className:e.main,children:[s.jsx(h,{style:{flexBasis:"46%"},children:s.jsx(v,{className:e.img,src:"/banner.jpg"})}),s.jsx(p,{className:e.txt,header:s.jsxs(G,{size:500,children:["Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam non magna nisi. Nunc ut est vel est sodales consequat. Vivamus imperdiet eros luctus, mollis lorem quis, elementum arcu. Ut maximus pharetra volutpat. Etiam lorem risus, pellentesque vitae malesuada vitae, sollicitudin in massa. In nunc nulla, pretium vitae risus in, pulvinar bibendum magna. Duis ornare ullamcorper neque, sed venenatis augue. Vestibulum rutrum sapien et purus condimentum, id ultricies lectus hendrerit.",s.jsx("br",{}),"Aenean porttitor, metus ac semper malesuada, nulla leo dapibus dolor, et gravida augue leo ut sem. Morbi vitae ipsum viverra, suscipit turpis a, elementum mi. Cras pharetra ipsum leo, nec rhoncus elit cursus ut. Fusce consectetur lacus quis odio molestie, nec sollicitudin est pretium. Donec cursus sollicitudin porta. Integer tellus mi, iaculis ut massa et, tempor placerat odio. Quisque ac interdum mauris, ac scelerisque odio. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae;"]})})]}),s.jsx(b,{})]})}const J=l({card:{flexBasis:"23%",flexGrow:0},img:{aspectRatio:"1",...j,borderTopLeftRadius:n.borderRadiusMedium,borderTopRightRadius:n.borderRadiusMedium}}),u=new d("Gallery","Category","Card");function U({Id:e}){const a=J(),{data:i}=m(()=>x.Product.Get.Basic(e,u),{onError:u.error});return s.jsxs(y,{className:a.card,children:[s.jsx(h,{children:s.jsx(S,{className:a.img,Guid:i?.Cover,Log:u})}),s.jsx(C,{children:s.jsx(N,{children:s.jsx(R,{href:`/Product/${e}`,children:i?.Name||"Loading..."})})})]})}const W=l({card:{flexBasis:"23%",flexGrow:0},cate:{...I,flexWrap:"wrap",justifyContent:"space-evenly",columnGap:n.spacingVerticalL,rowGap:n.spacingVerticalXL}}),_=new d("Gallery","Category");function K({Category:e}){const a=W(),{data:i,loading:t}=m(()=>x.Gallery.Get.Products(e),{onError:_.error});return s.jsxs(s.Fragment,{children:[s.jsx(L,{children:e}),s.jsx("div",{className:a.cate,children:t?s.jsx(c,{size:128}):i[0].map((r,o)=>s.jsx(U,{Id:r},o)).concat(Array(i[1]).fill(null).map((r,o)=>s.jsx("div",{className:a.card},o+O(10,100))))})]})}const Y=l({main:{...z,rowGap:n.spacingVerticalXL}}),Z=new d("Gallery");function te(){const e=Y(),{data:a,loading:i}=m(()=>x.Gallery.Get.Categories(),{onError:Z.error});return i?s.jsxs(F,{className:e.main,children:[s.jsx(g,{}),s.jsx(c,{appearance:"translucent",size:32}),s.jsx(c,{size:128})]}):s.jsxs("div",{className:e.main,children:[s.jsx(q,{children:s.jsxs("title",{children:["Gallery - ",M.Name]})}),s.jsx(g,{}),a?.map((t,r)=>s.jsx(K,{Category:t},r))]})}export{te as default}; diff --git a/assets/index-UDCnD8Lh.js b/assets/index-HHE451jH.js similarity index 99% rename from assets/index-UDCnD8Lh.js rename to assets/index-HHE451jH.js index f16917f..dc1d551 100644 --- a/assets/index-UDCnD8Lh.js +++ b/assets/index-HHE451jH.js @@ -1,4 +1,4 @@ -import{r as $,j as p,aT as yg,aU as vg,az as ns,as as Ja,am as Va,aV as Sg,aW as $g,aX as Rg,B as Un,aY as Ag,aZ as Og,m as it,s as P,ap as Wr,t as an,a_ as Xa,a$ as wg,b0 as Dg,b1 as gt,I as Gn,J as Lg,b2 as Mg,b3 as Za,b4 as Le,b5 as qa,b6 as Qa,b7 as eu,b8 as tu,b9 as nu,ba as ru,bb as Ti,bc as iu,h as ou,i as lu,k as su,F as Or,l as au,n as yi,Q as pr,R as mr,bd as yt,be as bg,bf as rs,bg as is,bh as os,bi as ls,bj as ss,bk as as,bl as us,bm as cs,V as _r,W as Cr,_ as ue,aj as kg,ak as Ig,ao as Pg,bn as Fg,bo as Bg,bp as jg,bq as zg,br as sr,bs as Kg,bt as Hg,bu as Wg,bv as Ug,N as Gg,bw as Yg,D as ds,bx as Jg,g as gs,by as Vg,bz as Xg,bA as fs,bB as Zg,bC as qg,bD as Qg,bE as ef,bF as tf,bG as nf}from"./vendor-EPO6t9z0.js";import{F as uu,B as cu,d as rf,D as du,S as of}from"./index-th8hOfI3.js";var gu={},Ui={},fu=$;let hu=fu.createContext(null);Ui.LexicalComposerContext=hu;Ui.createLexicalComposerContext=function(t,e){let n=null;return t!=null&&(n=t[1]),{getTheme:function(){return e??(n!=null?n.getTheme():null)}}};Ui.useLexicalComposerContext=function(){let t=fu.useContext(hu);if(t==null)throw Error("Minified Lexical error #8; visit https://lexical.dev/docs/error?code=8 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");return t};const lf=Ui;var X=lf,R={};let ul={},pu={},wr={},xr={},Do={},Fn={},cl={},Lo={},Dr={},Lr={},Pt={},dl={},gl={},mu={},_u={},Cu={},xu={},Nu={},Eu={},Tu={},vi={},yu={},vu={},Su={},$u={},Ru={},Au={},Ou={},wu={},Du={},fl={},hl={},Lu={},Mu={},bu={};function D(t){throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?code=${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}let At=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",sf=At&&"documentMode"in document?document.documentMode:null,Ie=At&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),un=At&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Si=At&&"InputEvent"in window&&!sf?"getTargetRanges"in new window.InputEvent("input"):!1,pl=At&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),ml=At&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,af=At&&/^(?=.*Chrome).*/i.test(navigator.userAgent),_l=At&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!af,Gi=pl||ml||_l?" ":"​",uf=un?" ":Gi,cf=/^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]/,df=/^[^\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]/,nn={bold:1,code:16,highlight:128,italic:2,strikethrough:4,subscript:32,superscript:64,underline:8},gf={directionless:1,unmergeable:2},hs={center:2,end:6,justify:4,left:1,right:3,start:5},ff={2:"center",6:"end",4:"justify",1:"left",3:"right",5:"start"},hf={normal:0,segmented:2,token:1},pf={0:"normal",2:"segmented",1:"token"},Mo=!1,Cl=0;function mf(t){Cl=t.timeStamp}function uo(t,e,n){return e.__lexicalLineBreak===t||t[`__lexicalKey_${n._key}`]!==void 0}function _f(t){return t.getEditorState().read(()=>{let e=Q();return e!==null?e.clone():null})}function ku(t,e,n){Mo=!0;let r=100{let i=Q()||_f(t);var o=new Map,l=t.getRootElement(),s=t._editorState,a=t._blockCursorElement;let c=!1,g="";for(var d=0;d{ku(t,e,n)})}let Cf=1,xf=typeof queueMicrotask=="function"?queueMicrotask:t=>{Promise.resolve().then(t)};function xl(t){let e=document.activeElement;if(e===null)return!1;let n=e.nodeName;return q(Gr(t))&&(n==="INPUT"||n==="TEXTAREA"||e.contentEditable==="true"&&e.__lexicalEditor==null)}function Ur(t,e,n){let r=t.getRootElement();try{return r!==null&&r.contains(e)&&r.contains(n)&&e!==null&&!xl(e)&&Nl(e)===t}catch{return!1}}function Nl(t){for(;t!=null;){let e=t.__lexicalEditor;if(e!=null)return e;t=Yi(t)}return null}function bo(t){return t.isToken()||t.isSegmented()}function $i(t){for(;t!=null;){if(t.nodeType===3)return t;t=t.firstChild}return null}function Fu(t,e,n){return e=nn[e],t&e&&(n===null||!(n&e))?t^e:n===null||n&e?t|e:t}function Bu(t){return M(t)||Pr(t)||q(t)}function ju(t,e){if(e!=null)t.__key=e;else{je(),99pt().getTextContent())}function Nf(t,e){Ye(t,()=>{var n=_t();if(!n.isEmpty())if(e==="root")pt().markDirty();else{n=n._nodeMap;for(let[,r]of n)r.markDirty()}},t._pendingEditorState===null?{tag:"history-merge"}:void 0)}function pt(){return _t()._nodeMap.get("root")}function zt(t){je();let e=_t();t!==null&&(t.dirty=!0,t._cachedNodes=null),e._selection=t}function bn(t){var e=se(),n;e:{for(n=t;n!=null;){let r=n[`__lexicalKey_${e._key}`];if(r!==void 0){n=r;break e}n=Yi(n)}n=null}return n===null?(e=e.getRootElement(),t===e?Ce("root"):null):Ce(n)}function Hu(t){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(t)}function El(t){let e=[];for(;t!==null;)e.push(t),t=t._parentEditor;return e}function Wu(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function Tl(t,e,n){if(e=mt(e._window),e!==null){var r=e.anchorNode,{anchorOffset:i,focusOffset:o}=e;if(r!==null&&(e=r.nodeType===3?r.nodeValue:null,r=Gr(r),e!==null&&M(r))){if(r.canContainTabs()){var l=e.includes(" ");if(n&&0{c.update(()=>{o.isAttached()&&o.remove()})},20)}else{i=o.getParent(),e=Vr();var s=Ft(),a=o.getKey();o.isToken()||s!==null&&a===s&&!l||i!==null&&z(e)&&!i.canInsertTextBefore()&&e.anchor.offset===0?o.markDirty():(l=Q(),z(l)&&n!==null&&r!==null&&(l.setTextNodeRange(o,n,o,r),o.isSegmented()&&(n=o.getTextContent(),n=ve(n),o.replace(n),o=n)),o.setTextContent(t))}}}function Ef(t,e){if(e.isSegmented())return!0;if(!t.isCollapsed())return!1;t=t.anchor.offset;let n=e.getParentOrThrow(),r=e.isToken();return t===0?((t=!e.canInsertTextBefore()||!n.canInsertTextBefore()||r)||(e=e.getPreviousSibling(),t=(M(e)||O(e)&&e.isInline())&&!e.canInsertTextAfter()),t):t===e.getTextContentSize()?!e.canInsertTextAfter()||!n.canInsertTextAfter()||r:!1}function Nr(t,e){var n=t[e];return typeof n=="string"?(n=n.split(" "),t[e]=n):n}function vl(t,e,n,r,i){n.size!==0&&(n=r.__key,e=e.get(r.__type),e===void 0&&D(33),r=e.klass,e=t.get(r),e===void 0&&(e=new Map,t.set(r,e)),t=e.get(n),r=t==="destroyed"&&i==="created",(t===void 0||r)&&e.set(n,r?"updated":i))}function ms(t,e,n){let r=t.getParent(),i=n;return r!==null&&(e&&n===0?(i=t.getIndexWithinParent(),t=r):e||n!==t.getChildrenSize()||(i=t.getIndexWithinParent()+1,t=r)),t.getChildAtIndex(e?i-1:i)}function ko(t,e){var n=t.offset;return t.type==="element"?(t=t.getNode(),ms(t,e,n)):(t=t.getNode(),e&&n===0||!e&&n===t.getTextContentSize()?(n=e?t.getPreviousSibling():t.getNextSibling(),n===null?ms(t.getParentOrThrow(),e,t.getIndexWithinParent()+(e?0:1)):n):null)}function Uu(t){return t=(t=Ji(t).event)&&t.inputType,t==="insertFromPaste"||t==="insertFromPasteAsQuotation"}function Ai(t){return!We(t)&&!t.isLastChild()&&!t.isInline()}function Oi(t,e){return t=t._keyToDOMMap.get(e),t===void 0&&D(75),t}function Yi(t){return t=t.assignedSlot||t.parentElement,t!==null&&t.nodeType===11?t.host:t}function Tf(t,e=0){if(e!==0&&D(1),e=Q(),!z(e)||!O(t))return e;let{anchor:n,focus:r}=e,i=n.getNode(),o=r.getNode();return wi(i,t)&&n.set(t.__key,0,"element"),wi(o,t)&&r.set(t.__key,0,"element"),e}function wi(t,e){for(t=t.getParent();t!==null;){if(t.is(e))return!0;t=t.getParent()}return!1}function Ji(t){return t=t._window,t===null&&D(78),t}function Gu(t){for(t=t.getParentOrThrow();t!==null&&!nt(t);)t=t.getParentOrThrow();return t}function nt(t){return We(t)||O(t)&&t.isShadowRoot()}function Yu(t){return t=t.constructor.clone(t),ju(t,null),t}function Vi(t){var e=se();let n=t.constructor.getType();return e=e._nodes.get(n),e===void 0&&D(97),e=e.replace,e!==null?(e=e(t),e instanceof t.constructor||D(98),e):t}function co(t,e){t=t.getParent(),!We(t)||O(e)||q(e)||D(99)}function go(t){return(q(t)||O(t)&&!t.canBeEmpty())&&!t.isInline()}function Io(t,e,n){n.style.removeProperty("caret-color"),e._blockCursorElement=null,e=t.parentElement,e!==null&&e.removeChild(t)}function mt(t){return At?(t||window).getSelection():null}function Ju(t,e){let n=t.getChildAtIndex(e);n==null&&(n=t),nt(t)&&D(102);let r=l=>{const s=l.getParentOrThrow(),a=nt(s),c=l!==n||a?Yu(l):l;if(a)return l.insertAfter(c),[l,c,c];const[g,d,u]=r(s);return l=l.getNextSiblings(),u.append(c,...l),[g,d,c]},[i,o]=r(n);return[i,o]}function Di(t,e){for(;t!==pt()&&t!=null;){if(e(t))return t;t=t.getParent()}return null}function yf(t){let e=[],n=[t];for(;0e&&r&&t.classList.remove(n)}n=getComputedStyle(t).getPropertyValue("--lexical-indent-base-value")||"40px",t.style.setProperty("padding-inline-start",e===0?"":`calc(${e} * ${n})`)}function ec(t,e){t=t.style,e===0?Vt(t,""):e===1?Vt(t,"left"):e===2?Vt(t,"center"):e===3?Vt(t,"right"):e===4?Vt(t,"justify"):e===5?Vt(t,"start"):e===6&&Vt(t,"end")}function hi(t,e,n){let r=Ht.get(t);r===void 0&&D(60);let i=r.createDOM(Kt,Me);var o=Me._keyToDOMMap;if(i["__lexicalKey_"+Me._key]=t,o.set(t,i),M(r)?i.setAttribute("data-lexical-text","true"):q(r)&&i.setAttribute("data-lexical-decorator","true"),O(r)){if(t=r.__indent,o=r.__size,t!==0&&Qu(i,t),o!==0){--o,t=Li(r,Ht);var l=Be;Be="",zo(t,r,0,o,i,null),nc(r,i),Be=l}t=r.__format,t!==0&&ec(i,t),r.isInline()||tc(null,r,i),Ai(r)&&(me+=` +import{r as $,j as p,aU as yg,aV as vg,az as ns,as as Ja,am as Va,aW as Sg,aX as $g,aY as Rg,B as Un,aZ as Ag,a_ as Og,m as it,s as P,ap as Wr,t as an,a$ as Xa,b0 as wg,b1 as Dg,b2 as gt,I as Gn,J as Lg,b3 as Mg,b4 as Za,b5 as Le,b6 as qa,b7 as Qa,b8 as eu,b9 as tu,ba as nu,bb as ru,bc as Ti,bd as iu,h as ou,i as lu,k as su,F as Or,l as au,n as yi,Q as pr,R as mr,be as yt,bf as bg,bg as rs,bh as is,bi as os,bj as ls,bk as ss,bl as as,bm as us,bn as cs,V as _r,W as Cr,_ as ue,aj as kg,ak as Ig,ao as Pg,bo as Fg,bp as Bg,bq as jg,br as zg,bs as sr,bt as Kg,bu as Hg,bv as Wg,bw as Ug,N as Gg,bx as Yg,D as ds,by as Jg,g as gs,bz as Vg,bA as Xg,bB as fs,bC as Zg,bD as qg,bE as Qg,bF as ef,bG as tf,bH as nf}from"./vendor-nd_CUwkm.js";import{F as uu,B as cu,d as rf,D as du,S as of}from"./index-g5wBm8kU.js";var gu={},Ui={},fu=$;let hu=fu.createContext(null);Ui.LexicalComposerContext=hu;Ui.createLexicalComposerContext=function(t,e){let n=null;return t!=null&&(n=t[1]),{getTheme:function(){return e??(n!=null?n.getTheme():null)}}};Ui.useLexicalComposerContext=function(){let t=fu.useContext(hu);if(t==null)throw Error("Minified Lexical error #8; visit https://lexical.dev/docs/error?code=8 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");return t};const lf=Ui;var X=lf,R={};let ul={},pu={},wr={},xr={},Do={},Fn={},cl={},Lo={},Dr={},Lr={},Pt={},dl={},gl={},mu={},_u={},Cu={},xu={},Nu={},Eu={},Tu={},vi={},yu={},vu={},Su={},$u={},Ru={},Au={},Ou={},wu={},Du={},fl={},hl={},Lu={},Mu={},bu={};function D(t){throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?code=${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}let At=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",sf=At&&"documentMode"in document?document.documentMode:null,Ie=At&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),un=At&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Si=At&&"InputEvent"in window&&!sf?"getTargetRanges"in new window.InputEvent("input"):!1,pl=At&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),ml=At&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,af=At&&/^(?=.*Chrome).*/i.test(navigator.userAgent),_l=At&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!af,Gi=pl||ml||_l?" ":"​",uf=un?" ":Gi,cf=/^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]/,df=/^[^\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]/,nn={bold:1,code:16,highlight:128,italic:2,strikethrough:4,subscript:32,superscript:64,underline:8},gf={directionless:1,unmergeable:2},hs={center:2,end:6,justify:4,left:1,right:3,start:5},ff={2:"center",6:"end",4:"justify",1:"left",3:"right",5:"start"},hf={normal:0,segmented:2,token:1},pf={0:"normal",2:"segmented",1:"token"},Mo=!1,Cl=0;function mf(t){Cl=t.timeStamp}function uo(t,e,n){return e.__lexicalLineBreak===t||t[`__lexicalKey_${n._key}`]!==void 0}function _f(t){return t.getEditorState().read(()=>{let e=Q();return e!==null?e.clone():null})}function ku(t,e,n){Mo=!0;let r=100{let i=Q()||_f(t);var o=new Map,l=t.getRootElement(),s=t._editorState,a=t._blockCursorElement;let c=!1,g="";for(var d=0;d{ku(t,e,n)})}let Cf=1,xf=typeof queueMicrotask=="function"?queueMicrotask:t=>{Promise.resolve().then(t)};function xl(t){let e=document.activeElement;if(e===null)return!1;let n=e.nodeName;return q(Gr(t))&&(n==="INPUT"||n==="TEXTAREA"||e.contentEditable==="true"&&e.__lexicalEditor==null)}function Ur(t,e,n){let r=t.getRootElement();try{return r!==null&&r.contains(e)&&r.contains(n)&&e!==null&&!xl(e)&&Nl(e)===t}catch{return!1}}function Nl(t){for(;t!=null;){let e=t.__lexicalEditor;if(e!=null)return e;t=Yi(t)}return null}function bo(t){return t.isToken()||t.isSegmented()}function $i(t){for(;t!=null;){if(t.nodeType===3)return t;t=t.firstChild}return null}function Fu(t,e,n){return e=nn[e],t&e&&(n===null||!(n&e))?t^e:n===null||n&e?t|e:t}function Bu(t){return M(t)||Pr(t)||q(t)}function ju(t,e){if(e!=null)t.__key=e;else{je(),99pt().getTextContent())}function Nf(t,e){Ye(t,()=>{var n=_t();if(!n.isEmpty())if(e==="root")pt().markDirty();else{n=n._nodeMap;for(let[,r]of n)r.markDirty()}},t._pendingEditorState===null?{tag:"history-merge"}:void 0)}function pt(){return _t()._nodeMap.get("root")}function zt(t){je();let e=_t();t!==null&&(t.dirty=!0,t._cachedNodes=null),e._selection=t}function bn(t){var e=se(),n;e:{for(n=t;n!=null;){let r=n[`__lexicalKey_${e._key}`];if(r!==void 0){n=r;break e}n=Yi(n)}n=null}return n===null?(e=e.getRootElement(),t===e?Ce("root"):null):Ce(n)}function Hu(t){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(t)}function El(t){let e=[];for(;t!==null;)e.push(t),t=t._parentEditor;return e}function Wu(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function Tl(t,e,n){if(e=mt(e._window),e!==null){var r=e.anchorNode,{anchorOffset:i,focusOffset:o}=e;if(r!==null&&(e=r.nodeType===3?r.nodeValue:null,r=Gr(r),e!==null&&M(r))){if(r.canContainTabs()){var l=e.includes(" ");if(n&&0{c.update(()=>{o.isAttached()&&o.remove()})},20)}else{i=o.getParent(),e=Vr();var s=Ft(),a=o.getKey();o.isToken()||s!==null&&a===s&&!l||i!==null&&z(e)&&!i.canInsertTextBefore()&&e.anchor.offset===0?o.markDirty():(l=Q(),z(l)&&n!==null&&r!==null&&(l.setTextNodeRange(o,n,o,r),o.isSegmented()&&(n=o.getTextContent(),n=ve(n),o.replace(n),o=n)),o.setTextContent(t))}}}function Ef(t,e){if(e.isSegmented())return!0;if(!t.isCollapsed())return!1;t=t.anchor.offset;let n=e.getParentOrThrow(),r=e.isToken();return t===0?((t=!e.canInsertTextBefore()||!n.canInsertTextBefore()||r)||(e=e.getPreviousSibling(),t=(M(e)||O(e)&&e.isInline())&&!e.canInsertTextAfter()),t):t===e.getTextContentSize()?!e.canInsertTextAfter()||!n.canInsertTextAfter()||r:!1}function Nr(t,e){var n=t[e];return typeof n=="string"?(n=n.split(" "),t[e]=n):n}function vl(t,e,n,r,i){n.size!==0&&(n=r.__key,e=e.get(r.__type),e===void 0&&D(33),r=e.klass,e=t.get(r),e===void 0&&(e=new Map,t.set(r,e)),t=e.get(n),r=t==="destroyed"&&i==="created",(t===void 0||r)&&e.set(n,r?"updated":i))}function ms(t,e,n){let r=t.getParent(),i=n;return r!==null&&(e&&n===0?(i=t.getIndexWithinParent(),t=r):e||n!==t.getChildrenSize()||(i=t.getIndexWithinParent()+1,t=r)),t.getChildAtIndex(e?i-1:i)}function ko(t,e){var n=t.offset;return t.type==="element"?(t=t.getNode(),ms(t,e,n)):(t=t.getNode(),e&&n===0||!e&&n===t.getTextContentSize()?(n=e?t.getPreviousSibling():t.getNextSibling(),n===null?ms(t.getParentOrThrow(),e,t.getIndexWithinParent()+(e?0:1)):n):null)}function Uu(t){return t=(t=Ji(t).event)&&t.inputType,t==="insertFromPaste"||t==="insertFromPasteAsQuotation"}function Ai(t){return!We(t)&&!t.isLastChild()&&!t.isInline()}function Oi(t,e){return t=t._keyToDOMMap.get(e),t===void 0&&D(75),t}function Yi(t){return t=t.assignedSlot||t.parentElement,t!==null&&t.nodeType===11?t.host:t}function Tf(t,e=0){if(e!==0&&D(1),e=Q(),!z(e)||!O(t))return e;let{anchor:n,focus:r}=e,i=n.getNode(),o=r.getNode();return wi(i,t)&&n.set(t.__key,0,"element"),wi(o,t)&&r.set(t.__key,0,"element"),e}function wi(t,e){for(t=t.getParent();t!==null;){if(t.is(e))return!0;t=t.getParent()}return!1}function Ji(t){return t=t._window,t===null&&D(78),t}function Gu(t){for(t=t.getParentOrThrow();t!==null&&!nt(t);)t=t.getParentOrThrow();return t}function nt(t){return We(t)||O(t)&&t.isShadowRoot()}function Yu(t){return t=t.constructor.clone(t),ju(t,null),t}function Vi(t){var e=se();let n=t.constructor.getType();return e=e._nodes.get(n),e===void 0&&D(97),e=e.replace,e!==null?(e=e(t),e instanceof t.constructor||D(98),e):t}function co(t,e){t=t.getParent(),!We(t)||O(e)||q(e)||D(99)}function go(t){return(q(t)||O(t)&&!t.canBeEmpty())&&!t.isInline()}function Io(t,e,n){n.style.removeProperty("caret-color"),e._blockCursorElement=null,e=t.parentElement,e!==null&&e.removeChild(t)}function mt(t){return At?(t||window).getSelection():null}function Ju(t,e){let n=t.getChildAtIndex(e);n==null&&(n=t),nt(t)&&D(102);let r=l=>{const s=l.getParentOrThrow(),a=nt(s),c=l!==n||a?Yu(l):l;if(a)return l.insertAfter(c),[l,c,c];const[g,d,u]=r(s);return l=l.getNextSiblings(),u.append(c,...l),[g,d,c]},[i,o]=r(n);return[i,o]}function Di(t,e){for(;t!==pt()&&t!=null;){if(e(t))return t;t=t.getParent()}return null}function yf(t){let e=[],n=[t];for(;0e&&r&&t.classList.remove(n)}n=getComputedStyle(t).getPropertyValue("--lexical-indent-base-value")||"40px",t.style.setProperty("padding-inline-start",e===0?"":`calc(${e} * ${n})`)}function ec(t,e){t=t.style,e===0?Vt(t,""):e===1?Vt(t,"left"):e===2?Vt(t,"center"):e===3?Vt(t,"right"):e===4?Vt(t,"justify"):e===5?Vt(t,"start"):e===6&&Vt(t,"end")}function hi(t,e,n){let r=Ht.get(t);r===void 0&&D(60);let i=r.createDOM(Kt,Me);var o=Me._keyToDOMMap;if(i["__lexicalKey_"+Me._key]=t,o.set(t,i),M(r)?i.setAttribute("data-lexical-text","true"):q(r)&&i.setAttribute("data-lexical-decorator","true"),O(r)){if(t=r.__indent,o=r.__size,t!==0&&Qu(i,t),o!==0){--o,t=Li(r,Ht);var l=Be;Be="",zo(t,r,0,o,i,null),nc(r,i),Be=l}t=r.__format,t!==0&&ec(i,t),r.isInline()||tc(null,r,i),Ai(r)&&(me+=` `,vt+=` @@ -32,7 +32,7 @@ import{r as $,j as p,aT as yg,aU as vg,az as ns,as as Ja,am as Va,aV as Sg,aW as `&&r[i-2].getTextContent()===` `&&e.isCollapsed()&&e.anchor.key===this.__key&&e.anchor.offset===i)return r[i-1].remove(),r[i-2].remove(),e=b.$createParagraphNode(),this.insertAfter(e,n),e;if(n=e.anchor.getNode(),i=jr(n),i!=null){for(r=0,i=i.getTextContent();re.append(n)),this.replace(e),!0}setLanguage(e){this.getWritable().__language=sa(e)}getLanguage(){return this.getLatest().__language}};function tr(t){return b.$applyNodeReplacement(new Hn(t))}function to(t){return t instanceof Hn}function aa(){return{node:tr(),preformatted:!0}}function yp(t){let e=t.style.fontFamily.match("monospace")!==null;return e||$p(t)?{after:n=>{let r=t.parentNode;return r!=null&&t!==r.lastChild&&n.push(b.$createLineBreakNode()),n},node:e?tr():null,preformatted:e}:{node:null}}function vp(){return{node:tr(),preformatted:!0}}function ua(){return{node:null}}function Sp(t){return{after:e=>(t.parentNode&&t.parentNode.nextSibling&&e.push(b.$createLineBreakNode()),e),node:null}}function $p(t){for(t=t.parentElement;t!==null;){if(t.style.fontFamily.match("monospace")!==null)return!0;t=t.parentElement}return!1}function Eo(t){return t.classList.contains("js-file-line-container")}let ad={c:"C",clike:"C-like",cpp:"C++",css:"CSS",html:"HTML",java:"Java",js:"JavaScript",markdown:"Markdown",objc:"Objective-C",plain:"Plain Text",py:"Python",rust:"Rust",sql:"SQL",swift:"Swift",typescript:"TypeScript",xml:"XML"},ud={cpp:"cpp",java:"java",javascript:"js",md:"markdown",plaintext:"plain",python:"py",text:"plain",ts:"typescript"};function cd(t){return ud[t]||t}let Br=class dd extends b.TextNode{constructor(e,n,r){super(e,r),this.__highlightType=n}static getType(){return"code-highlight"}static clone(e){return new dd(e.__text,e.__highlightType||void 0,e.__key)}getHighlightType(){return this.getLatest().__highlightType}createDOM(e){let n=super.createDOM(e);return e=To(e.theme,this.__highlightType),Kn.addClassNamesToElement(n,e),n}updateDOM(e,n,r){let i=super.updateDOM(e,n,r);return e=To(r.theme,e.__highlightType),r=To(r.theme,this.__highlightType),e!==r&&(e&&Kn.removeClassNamesFromElement(n,e),r&&Kn.addClassNamesToElement(n,r)),i}static importJSON(e){let n=ln(e.text,e.highlightType);return n.setFormat(e.format),n.setDetail(e.detail),n.setMode(e.mode),n.setStyle(e.style),n}exportJSON(){return{...super.exportJSON(),highlightType:this.getHighlightType(),type:"code-highlight",version:1}}setFormat(){return this}isParentRequired(){return!0}createParentElementNode(){return tr()}};function To(t,e){return e&&t&&t.codeHighlight&&t.codeHighlight[e]}function ln(t,e){return b.$applyNodeReplacement(new Br(t,e))}function Re(t){return t instanceof Br}function jr(t){let e=null,n=t.getPreviousSiblings();for(n.push(t);0{Rp(r,()=>{var i=b.$getNodeByKey(r);if(!to(i)||!i.isAttached())return!1;var o=i.getTextContent();o=n.tokenize(o,i.getLanguage()||n.defaultLanguage),o=md(o);var l=i.getChildren();for(i=0;i{yo.delete(r)},skipTransforms:!0}))}function md(t){let e=[];return t.forEach(n=>{if(typeof n=="string"){n=n.split(` `);for(var r=0;rs+a.getTextContentSize(),0)}e()&&(i?n.getNode().select(r,r):t.getChildren().some(l=>{let s=b.$isTextNode(l);if(s||b.$isLineBreakNode(l)){let a=l.getTextContentSize();if(s&&a>=o)return l.select(o,o),!0;o-=a}return!1}))}else e()}}function da(t,e){return Re(t)&&Re(e)?t.__text===e.__text&&t.__highlightType===e.__highlightType:!!(b.$isLineBreakNode(t)&&b.$isLineBreakNode(e))}function ga(t){var e=b.$getSelection();if(!b.$isRangeSelection(e)||e.isCollapsed())return!1;e=e.getNodes();for(var n=0;nh.remove()),t===b.KEY_ARROW_UP_COMMAND?(u.forEach(h=>f.insertBefore(h)),f.insertBefore(e)):(f.insertAfter(e),f=e,u.forEach(h=>{f.insertAfter(h),f=h})),n.setTextNodeRange(s,o,a,l),!0}function pa(t,e){let n=b.$getSelection();if(!b.$isRangeSelection(n))return!1;let{anchor:r,focus:i}=n,o=r.getNode(),l=i.getNode();if(t=t===b.MOVE_TO_START,!Re(o)||!Re(l))return!1;let s,a;return t?{node:s,offset:a}=fd(l):{node:s,offset:a}=hd(l),s!==null&&a!==-1&&n.setTextNodeRange(s,a,s,a),e.preventDefault(),e.stopPropagation(),!0}pe.$createCodeHighlightNode=ln;pe.$createCodeNode=tr;pe.$isCodeHighlightNode=Re;pe.$isCodeNode=to;pe.CODE_LANGUAGE_FRIENDLY_NAME_MAP=ad;pe.CODE_LANGUAGE_MAP=ud;pe.CodeHighlightNode=Br;pe.CodeNode=Hn;pe.DEFAULT_CODE_LANGUAGE="javascript";pe.PrismTokenizer=gd;pe.getCodeLanguages=()=>Object.keys(zn.languages).filter(t=>typeof zn.languages[t]!="function").sort();pe.getDefaultCodeLanguage=()=>"javascript";pe.getEndOfCodeInLine=hd;pe.getFirstCodeHighlightNodeOfLine=jr;pe.getLanguageFriendlyName=function(t){return t=cd(t),ad[t]||t};pe.getLastCodeHighlightNodeOfLine=nl;pe.getStartOfCodeInLine=fd;pe.normalizeCodeLang=cd;pe.registerCodeHighlighting=function(t,e){if(!t.hasNodes([Hn,Br]))throw Error("CodeHighlightPlugin: CodeNode or CodeHighlightNode not registered on editor");return e==null&&(e=gd),Kn.mergeRegister(t.registerMutationListener(Hn,n=>{t.update(()=>{for(let[o,l]of n)if(l!=="destroyed"){var r=b.$getNodeByKey(o);if(r!==null)e:{var i=r;if(r=t.getElementByKey(i.getKey()),r===null)break e;i=i.getChildren();let s=i.length;if(s===r.__cachedChildrenLength)break e;r.__cachedChildrenLength=s;let a="1",c=1;for(let g=0;gpd(n,t,e)),t.registerNodeTransform(b.TextNode,n=>ca(n,t,e)),t.registerNodeTransform(Br,n=>ca(n,t,e)),t.registerCommand(b.INDENT_CONTENT_COMMAND,()=>ga(b.INDENT_CONTENT_COMMAND),b.COMMAND_PRIORITY_LOW),t.registerCommand(b.OUTDENT_CONTENT_COMMAND,()=>ga(b.OUTDENT_CONTENT_COMMAND),b.COMMAND_PRIORITY_LOW),t.registerCommand(b.KEY_ARROW_UP_COMMAND,n=>ha(b.KEY_ARROW_UP_COMMAND,n),b.COMMAND_PRIORITY_LOW),t.registerCommand(b.KEY_ARROW_DOWN_COMMAND,n=>ha(b.KEY_ARROW_DOWN_COMMAND,n),b.COMMAND_PRIORITY_LOW),t.registerCommand(b.MOVE_TO_END,n=>pa(b.MOVE_TO_END,n),b.COMMAND_PRIORITY_LOW),t.registerCommand(b.MOVE_TO_START,n=>pa(b.MOVE_TO_START,n),b.COMMAND_PRIORITY_LOW))};const Ap=pe;var he=Ap,wt={},_d=V,ft=C;let Op=new Set(["http:","https:","mailto:","sms:","tel:"]),no=class Cd extends ft.ElementNode{static getType(){return"link"}static clone(e){return new Cd(e.__url,{rel:e.__rel,target:e.__target,title:e.__title},e.__key)}constructor(e,n={},r){super(r);let{target:i=null,rel:o=null,title:l=null}=n;this.__url=e,this.__target=i,this.__rel=o,this.__title=l}createDOM(e){let n=document.createElement("a");return n.href=this.sanitizeUrl(this.__url),this.__target!==null&&(n.target=this.__target),this.__rel!==null&&(n.rel=this.__rel),this.__title!==null&&(n.title=this.__title),_d.addClassNamesToElement(n,e.theme.link),n}updateDOM(e,n){let r=this.__url,i=this.__target,o=this.__rel,l=this.__title;return r!==e.__url&&(n.href=r),i!==e.__target&&(i?n.target=i:n.removeAttribute("target")),o!==e.__rel&&(o?n.rel=o:n.removeAttribute("rel")),l!==e.__title&&(l?n.title=l:n.removeAttribute("title")),!1}static importDOM(){return{a:()=>({conversion:wp,priority:1})}}static importJSON(e){let n=zr(e.url,{rel:e.rel,target:e.target,title:e.title});return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}sanitizeUrl(e){try{let n=new URL(e);if(!Op.has(n.protocol))return"about:blank"}catch{return"https://"}return e}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),type:"link",url:this.getURL(),version:1}}getURL(){return this.getLatest().__url}setURL(e){this.getWritable().__url=e}getTarget(){return this.getLatest().__target}setTarget(e){this.getWritable().__target=e}getRel(){return this.getLatest().__rel}setRel(e){this.getWritable().__rel=e}getTitle(){return this.getLatest().__title}setTitle(e){this.getWritable().__title=e}insertNewAfter(e,n=!0){return e=this.getParentOrThrow().insertNewAfter(e,n),ft.$isElementNode(e)?(n=zr(this.__url,{rel:this.__rel,target:this.__target,title:this.__title}),e.append(n),n):null}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,n){if(!ft.$isRangeSelection(n))return!1;e=n.anchor.getNode();let r=n.focus.getNode();return this.isParentOf(e)&&this.isParentOf(r)&&0{if(l=l.getParent(),Zt(l)){let s=l.getChildren();for(let a=0;a{var c=a.getParent();if(c!==s&&c!==null&&(!ft.$isElementNode(a)||a.isInline()))if(Zt(c))s=c,c.setURL(t),n!==void 0&&c.setTarget(n),i!==null&&s.setRel(i),r!==void 0&&s.setTitle(r);else if(c.is(l)||(l=c,s=zr(t,{rel:i,target:n}),Zt(c)?a.getPreviousSibling()===null?c.insertBefore(s):c.insertAfter(s):a.insertBefore(s)),Zt(a)){if(!a.is(s)){if(s!==null){c=a.getChildren();for(let g=0;g({conversion:bp,priority:0})}}exportJSON(){return{altText:this.getAltText(),caption:this.caption.toJSON(),height:this.height==="inherit"?0:this.height,maxWidth:this.maxWidth,showCaption:this.showCaption,src:this.getSrc(),type:"image",version:1,width:this.width==="inherit"?0:this.width}}setWidthAndHeight(e,n){const r=this.getWritable();r.width=e,r.height=n}setShowCaption(e){const n=this.getWritable();n.showCaption=e}createDOM(e){const n=document.createElement("span"),i=e.theme.image;return i&&(n.className=i),n}updateDOM(){return!1}getSrc(){return this.src}getAltText(){return this.altText}decorate(){return p.jsx($.Suspense,{fallback:null,children:p.jsx(kp,{src:this.src,altText:this.altText,width:this.width,height:this.height,maxWidth:this.maxWidth,nodeKey:this.getKey(),showCaption:this.showCaption,caption:this.caption,captionsEnabled:this.captionsEnabled,resizable:!0})})}}const kp=$.lazy(()=>Ja(()=>import("./Component-7VbI7F8z.js"),__vite__mapDeps([0,1,2,3,4])));function ro({altText:t,height:e,maxWidth:n=500,captionsEnabled:r,src:i,width:o,showCaption:l,caption:s,key:a}){return C.$applyNodeReplacement(new Ut(i,t,n,o,e,l,s,r,a))}function Nd(t){return t instanceof Ut}const Ip=[rt.HeadingNode,fe.ListNode,fe.ListItemNode,rt.QuoteNode,he.CodeNode,he.CodeHighlightNode,ce.AutoLinkNode,ce.LinkNode,Ut];function Pp(){const[t]=X.useLexicalComposerContext(),e=t.isEditable();return p.jsx(Va,{appearance:"outline",icon:e?p.jsx(Sg,{}):p.jsx($g,{}),checked:!e,onClick:()=>t.setEditable(!e)})}var te={},U=C,Rr=he,Ae=fe,Bt=rt,Fp=V,vo=ce;function il(t,e){let n={};for(let r of t)t=e(r),n[t]?n[t].push(r):n[t]=[r];return n}function Bl(t){return t=il(t,e=>e.type),{element:t.element||[],textFormat:t["text-format"]||[],textMatch:t["text-match"]||[]}}let zi=/[!-/:-@[-`{-~\s]/;function Bp(t){let e=Bl(t),n=e.textFormat.filter(r=>r.format.length===1);return r=>{let i=[];r=(r||U.$getRoot()).getChildren();for(let o of r)r=jp(o,e.element,n,e.textMatch),r!=null&&i.push(r);return i.join(` +`+ ++c);r.setAttribute("data-gutter",a)}}})}),t.registerNodeTransform(Hn,n=>pd(n,t,e)),t.registerNodeTransform(b.TextNode,n=>ca(n,t,e)),t.registerNodeTransform(Br,n=>ca(n,t,e)),t.registerCommand(b.INDENT_CONTENT_COMMAND,()=>ga(b.INDENT_CONTENT_COMMAND),b.COMMAND_PRIORITY_LOW),t.registerCommand(b.OUTDENT_CONTENT_COMMAND,()=>ga(b.OUTDENT_CONTENT_COMMAND),b.COMMAND_PRIORITY_LOW),t.registerCommand(b.KEY_ARROW_UP_COMMAND,n=>ha(b.KEY_ARROW_UP_COMMAND,n),b.COMMAND_PRIORITY_LOW),t.registerCommand(b.KEY_ARROW_DOWN_COMMAND,n=>ha(b.KEY_ARROW_DOWN_COMMAND,n),b.COMMAND_PRIORITY_LOW),t.registerCommand(b.MOVE_TO_END,n=>pa(b.MOVE_TO_END,n),b.COMMAND_PRIORITY_LOW),t.registerCommand(b.MOVE_TO_START,n=>pa(b.MOVE_TO_START,n),b.COMMAND_PRIORITY_LOW))};const Ap=pe;var he=Ap,wt={},_d=V,ft=C;let Op=new Set(["http:","https:","mailto:","sms:","tel:"]),no=class Cd extends ft.ElementNode{static getType(){return"link"}static clone(e){return new Cd(e.__url,{rel:e.__rel,target:e.__target,title:e.__title},e.__key)}constructor(e,n={},r){super(r);let{target:i=null,rel:o=null,title:l=null}=n;this.__url=e,this.__target=i,this.__rel=o,this.__title=l}createDOM(e){let n=document.createElement("a");return n.href=this.sanitizeUrl(this.__url),this.__target!==null&&(n.target=this.__target),this.__rel!==null&&(n.rel=this.__rel),this.__title!==null&&(n.title=this.__title),_d.addClassNamesToElement(n,e.theme.link),n}updateDOM(e,n){let r=this.__url,i=this.__target,o=this.__rel,l=this.__title;return r!==e.__url&&(n.href=r),i!==e.__target&&(i?n.target=i:n.removeAttribute("target")),o!==e.__rel&&(o?n.rel=o:n.removeAttribute("rel")),l!==e.__title&&(l?n.title=l:n.removeAttribute("title")),!1}static importDOM(){return{a:()=>({conversion:wp,priority:1})}}static importJSON(e){let n=zr(e.url,{rel:e.rel,target:e.target,title:e.title});return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}sanitizeUrl(e){try{let n=new URL(e);if(!Op.has(n.protocol))return"about:blank"}catch{return"https://"}return e}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),type:"link",url:this.getURL(),version:1}}getURL(){return this.getLatest().__url}setURL(e){this.getWritable().__url=e}getTarget(){return this.getLatest().__target}setTarget(e){this.getWritable().__target=e}getRel(){return this.getLatest().__rel}setRel(e){this.getWritable().__rel=e}getTitle(){return this.getLatest().__title}setTitle(e){this.getWritable().__title=e}insertNewAfter(e,n=!0){return e=this.getParentOrThrow().insertNewAfter(e,n),ft.$isElementNode(e)?(n=zr(this.__url,{rel:this.__rel,target:this.__target,title:this.__title}),e.append(n),n):null}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,n){if(!ft.$isRangeSelection(n))return!1;e=n.anchor.getNode();let r=n.focus.getNode();return this.isParentOf(e)&&this.isParentOf(r)&&0{if(l=l.getParent(),Zt(l)){let s=l.getChildren();for(let a=0;a{var c=a.getParent();if(c!==s&&c!==null&&(!ft.$isElementNode(a)||a.isInline()))if(Zt(c))s=c,c.setURL(t),n!==void 0&&c.setTarget(n),i!==null&&s.setRel(i),r!==void 0&&s.setTitle(r);else if(c.is(l)||(l=c,s=zr(t,{rel:i,target:n}),Zt(c)?a.getPreviousSibling()===null?c.insertBefore(s):c.insertAfter(s):a.insertBefore(s)),Zt(a)){if(!a.is(s)){if(s!==null){c=a.getChildren();for(let g=0;g({conversion:bp,priority:0})}}exportJSON(){return{altText:this.getAltText(),caption:this.caption.toJSON(),height:this.height==="inherit"?0:this.height,maxWidth:this.maxWidth,showCaption:this.showCaption,src:this.getSrc(),type:"image",version:1,width:this.width==="inherit"?0:this.width}}setWidthAndHeight(e,n){const r=this.getWritable();r.width=e,r.height=n}setShowCaption(e){const n=this.getWritable();n.showCaption=e}createDOM(e){const n=document.createElement("span"),i=e.theme.image;return i&&(n.className=i),n}updateDOM(){return!1}getSrc(){return this.src}getAltText(){return this.altText}decorate(){return p.jsx($.Suspense,{fallback:null,children:p.jsx(kp,{src:this.src,altText:this.altText,width:this.width,height:this.height,maxWidth:this.maxWidth,nodeKey:this.getKey(),showCaption:this.showCaption,caption:this.caption,captionsEnabled:this.captionsEnabled,resizable:!0})})}}const kp=$.lazy(()=>Ja(()=>import("./Component-dbiRH4vW.js"),__vite__mapDeps([0,1,2,3,4])));function ro({altText:t,height:e,maxWidth:n=500,captionsEnabled:r,src:i,width:o,showCaption:l,caption:s,key:a}){return C.$applyNodeReplacement(new Ut(i,t,n,o,e,l,s,r,a))}function Nd(t){return t instanceof Ut}const Ip=[rt.HeadingNode,fe.ListNode,fe.ListItemNode,rt.QuoteNode,he.CodeNode,he.CodeHighlightNode,ce.AutoLinkNode,ce.LinkNode,Ut];function Pp(){const[t]=X.useLexicalComposerContext(),e=t.isEditable();return p.jsx(Va,{appearance:"outline",icon:e?p.jsx(Sg,{}):p.jsx($g,{}),checked:!e,onClick:()=>t.setEditable(!e)})}var te={},U=C,Rr=he,Ae=fe,Bt=rt,Fp=V,vo=ce;function il(t,e){let n={};for(let r of t)t=e(r),n[t]?n[t].push(r):n[t]=[r];return n}function Bl(t){return t=il(t,e=>e.type),{element:t.element||[],textFormat:t["text-format"]||[],textMatch:t["text-match"]||[]}}let zi=/[!-/:-@[-`{-~\s]/;function Bp(t){let e=Bl(t),n=e.textFormat.filter(r=>r.format.length===1);return r=>{let i=[];r=(r||U.$getRoot()).getChildren();for(let o of r)r=jp(o,e.element,n,e.textMatch),r!=null&&i.push(r);return i.join(` `)}}function jp(t,e,n,r){for(let i of e)if(e=i.export(t,o=>Ki(o,n,r)),e!=null)return e;return U.$isElementNode(t)?Ki(t,n,r):U.$isDecoratorNode(t)?t.getTextContent():null}function Ki(t,e,n){let r=[];t=t.getChildren();e:for(let i of t){for(let o of n)if(t=o.export(i,l=>Ki(l,e,n),(l,s)=>ma(l,s,e)),t!=null){r.push(t);continue e}U.$isLineBreakNode(i)?r.push(` `):U.$isTextNode(i)?r.push(ma(i,i.getTextContent(),e)):U.$isElementNode(i)?r.push(Ki(i,e,n)):U.$isDecoratorNode(i)&&r.push(i.getTextContent())}return r.join("")}function ma(t,e,n){let r=e.trim(),i=r,o=new Set;for(let s of n){n=s.format[0];let a=s.tag;if(So(t,n)&&!o.has(n)){o.add(n);var l=_a(t,!0);So(l,n)||(i=a+i),l=_a(t,!1),So(l,n)||(i+=a)}}return e.replace(r,i)}function _a(t,e){let n=e?t.getPreviousSibling():t.getNextSibling();for(n||(t=t.getParentOrThrow(),t.isInline()&&(n=e?t.getPreviousSibling():t.getNextSibling()));n;){if(U.$isElementNode(n)){if(!n.isInline())break;if(t=e?n.getLastDescendant():n.getFirstDescendant(),U.$isTextNode(t))return t;n=e?n.getPreviousSibling():n.getNextSibling()}if(U.$isTextNode(n))return n;if(!U.$isElementNode(n))break}return null}function So(t,e){return U.$isTextNode(t)&&t.hasFormat(e)}let nr=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",zp=nr&&"documentMode"in document?document.documentMode:null;nr&&"InputEvent"in window&&!zp&&"getTargetRanges"in new window.InputEvent("input");let Ca=nr&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),xa=nr&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Kp=nr&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Na=nr&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!Kp,Hp=/^\s{0,3}$/,Ea=/^```(\w{1,10})?\s?$/;function Wp(t){let e=Bl(t),n=Gp(e.textFormat);return(r,i)=>{r=r.split(` @@ -44,10 +44,10 @@ import{r as $,j as p,aT as yg,aU as vg,az as ns,as as Ja,am as Va,aV as Sg,aW as `+e:"")+"\n```"},regExp:/^```(\w{1,10})?\s/,replace:yd(t=>Rr.$createCodeNode(t?t[1]:void 0)),type:"element"},Rd={dependencies:[Ae.ListNode,Ae.ListItemNode],export:(t,e)=>Ae.$isListNode(t)?io(t,e,0):null,regExp:/^(\s*)[-*+]\s/,replace:jl("bullet"),type:"element"},Yp={dependencies:[Ae.ListNode,Ae.ListItemNode],export:(t,e)=>Ae.$isListNode(t)?io(t,e,0):null,regExp:/^(\s*)(?:-\s)?\s?(\[(\s|x)?\])\s/i,replace:jl("check"),type:"element"},Ad={dependencies:[Ae.ListNode,Ae.ListItemNode],export:(t,e)=>Ae.$isListNode(t)?io(t,e,0):null,regExp:/^(\s*)(\d{1,})\.\s/,replace:jl("number"),type:"element"},Od={format:["code"],tag:"`",type:"text-format"},wd={format:["highlight"],tag:"==",type:"text-format"},Dd={format:["bold","italic"],tag:"***",type:"text-format"},Ld={format:["bold","italic"],intraword:!1,tag:"___",type:"text-format"},Md={format:["bold"],tag:"**",type:"text-format"},bd={format:["bold"],intraword:!1,tag:"__",type:"text-format"},kd={format:["strikethrough"],tag:"~~",type:"text-format"},Id={format:["italic"],tag:"*",type:"text-format"},Pd={format:["italic"],intraword:!1,tag:"_",type:"text-format"},Fd={dependencies:[vo.LinkNode],export:(t,e,n)=>{if(!vo.$isLinkNode(t))return null;e=(e=t.getTitle())?`[${t.getTextContent()}](${t.getURL()} "${e}")`:`[${t.getTextContent()}](${t.getURL()})`;const r=t.getFirstChild();return t.getChildrenSize()===1&&U.$isTextNode(r)?n(r,e):e},importRegExp:/(?:\[([^[]+)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))/,regExp:/(?:\[([^[]+)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))$/,replace:(t,e)=>{const[,n,r,i]=e;e=vo.$createLinkNode(r,{title:i});const o=U.$createTextNode(n);o.setFormat(t.getFormat()),e.append(o),t.replace(e)},trigger:")",type:"text-match"},Bd=[vd,Sd,$d,Rd,Ad],jd=[Od,Dd,Ld,Md,bd,wd,Id,Pd,kd],zd=[Fd],oo=[...Bd,...jd,...zd];te.$convertFromMarkdownString=function(t,e=oo,n){return Wp(e)(t,n)};te.$convertToMarkdownString=function(t=oo,e){return Bp(t)(e)};te.BOLD_ITALIC_STAR=Dd;te.BOLD_ITALIC_UNDERSCORE=Ld;te.BOLD_STAR=Md;te.BOLD_UNDERSCORE=bd;te.CHECK_LIST=Yp;te.CODE=$d;te.ELEMENT_TRANSFORMERS=Bd;te.HEADING=vd;te.HIGHLIGHT=wd;te.INLINE_CODE=Od;te.ITALIC_STAR=Id;te.ITALIC_UNDERSCORE=Pd;te.LINK=Fd;te.ORDERED_LIST=Ad;te.QUOTE=Sd;te.STRIKETHROUGH=kd;te.TEXT_FORMAT_TRANSFORMERS=jd;te.TEXT_MATCH_TRANSFORMERS=zd;te.TRANSFORMERS=oo;te.UNORDERED_LIST=Rd;te.registerMarkdownShortcuts=function(t,e=oo){let n=Bl(e),r=il(n.textFormat,({tag:o})=>o[o.length-1]),i=il(n.textMatch,({trigger:o})=>o);for(let o of e)if(e=o.type,(e==="element"||e==="text-match")&&!t.hasNodes(o.dependencies))throw Error("Minified Lexical error #79; visit https://lexical.dev/docs/error?code=79 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");return t.registerUpdateListener(({tags:o,dirtyLeaves:l,editorState:s,prevEditorState:a})=>{if(!o.has("historic")){var c=s.read(U.$getSelection);if(o=a.read(U.$getSelection),U.$isRangeSelection(o)&&U.$isRangeSelection(c)&&c.isCollapsed()){a=c.anchor.key;var g=c.anchor.offset,d=s._nodeMap.get(a);U.$isTextNode(d)&&l.has(a)&&(g===1||g===o.anchor.offset+1)&&t.update(()=>{if(!d.hasFormat("code")){var u=d.getParent();if(u!==null&&!Rr.$isCodeNode(u)){var f=c.anchor.offset;e:{var h=n.element,m=u.getParent();if(U.$isRootOrShadowRoot(m)&&u.getFirstChild()===d&&(m=d.getTextContent(),m[f-1]===" ")){for(let{regExp:S,replace:A}of h)if((h=m.match(S))&&h[0].length===f){m=d.getNextSiblings();let[w,B]=d.splitText(f);w.remove(),m=B?[B,...m]:m,A(u,m,h,!1),u=!0;break e}}u=!1}if(!u){e:{if(h=d.getTextContent(),u=i[h[f-1]],u!=null){fh&&(v=v.getPreviousSibling())&&!U.$isLineBreakNode(v);)U.$isTextNode(v)&&(h=v.getTextContent(),u=v,h=Ta(h,h.length,x));if(!(0>h||u===N&&h+y===A||(x=u.getTextContent(),0{let n=qt.$getNodeByKey(e);return n===null?!1:n.isSelected()})}Kd.useLexicalNodeSelection=function(t){let[e]=Vp.useLexicalComposerContext(),[n,r]=ai.useState(()=>ya(e,t));ai.useEffect(()=>{let l=!0,s=e.registerUpdateListener(()=>{l&&r(ya(e,t))});return()=>{l=!1,s()}},[e,t]);let i=ai.useCallback(l=>{e.update(()=>{let s=qt.$getSelection();qt.$isNodeSelection(s)||(s=qt.$createNodeSelection(),qt.$setSelection(s)),l?s.add(t):s.delete(t)})},[e,t]),o=ai.useCallback(()=>{e.update(()=>{const l=qt.$getSelection();qt.$isNodeSelection(l)&&l.clear()})},[e]);return[n,i,o]};const Xp=Kd;var Zp=Xp,qp=X,Qp=Zp,em=V,qe=C,_i=$;let tm=qe.createCommand("INSERT_HORIZONTAL_RULE_COMMAND");function nm({nodeKey:t}){let[e]=qp.useLexicalComposerContext(),[n,r,i]=Qp.useLexicalNodeSelection(t),o=_i.useCallback(l=>(n&&qe.$isNodeSelection(qe.$getSelection())&&(l.preventDefault(),l=qe.$getNodeByKey(t),Hd(l)&&l.remove(),r(!1)),!1),[n,t,r]);return _i.useEffect(()=>em.mergeRegister(e.registerCommand(qe.CLICK_COMMAND,l=>{let s=e.getElementByKey(t);return l.target===s?(l.shiftKey||i(),r(!n),!0):!1},qe.COMMAND_PRIORITY_LOW),e.registerCommand(qe.KEY_DELETE_COMMAND,o,qe.COMMAND_PRIORITY_LOW),e.registerCommand(qe.KEY_BACKSPACE_COMMAND,o,qe.COMMAND_PRIORITY_LOW)),[i,e,n,t,o,r]),_i.useEffect(()=>{let l=e.getElementByKey(t);l!==null&&(l.className=n?"selected":"")},[e,n,t]),null}class Zr extends qe.DecoratorNode{static getType(){return"horizontalrule"}static clone(e){return new Zr(e.__key)}static importJSON(){return zl()}static importDOM(){return{hr:()=>({conversion:rm,priority:0})}}exportJSON(){return{type:"horizontalrule",version:1}}exportDOM(){return{element:document.createElement("hr")}}createDOM(){return document.createElement("hr")}getTextContent(){return` `}isInline(){return!1}updateDOM(){return!1}decorate(){return _i.createElement(nm,{nodeKey:this.__key})}}function rm(){return{node:zl()}}function zl(){return qe.$applyNodeReplacement(new Zr)}function Hd(t){return t instanceof Zr}Xr.$createHorizontalRuleNode=zl;Xr.$isHorizontalRuleNode=Hd;Xr.HorizontalRuleNode=Zr;Xr.INSERT_HORIZONTAL_RULE_COMMAND=tm;const im=Xr;var jt=im,Y={},E=C,le=V;let ee={BOTH:3,COLUMN:2,NO_STATUS:0,ROW:1};class qr extends E.DEPRECATED_GridCellNode{static getType(){return"tablecell"}static clone(e){let n=new qr(e.__headerState,e.__colSpan,e.__width,e.__key);return n.__rowSpan=e.__rowSpan,n.__backgroundColor=e.__backgroundColor,n}static importDOM(){return{td:()=>({conversion:va,priority:0}),th:()=>({conversion:va,priority:0})}}static importJSON(e){let n=et(e.headerState,e.colSpan,e.width||void 0);return n.__rowSpan=e.rowSpan,n.__backgroundColor=e.backgroundColor||null,n}constructor(e=ee.NO_STATUS,n=1,r,i){super(n,i),this.__headerState=e,this.__width=r,this.__backgroundColor=null}createDOM(e){let n=document.createElement(this.getTag());return this.__width&&(n.style.width=`${this.__width}px`),1H(r)&&!E.$isElementNode(n)?(r=E.$createParagraphNode(),E.$isLineBreakNode(n)&&n.getTextContent()===` `?null:(r.append(n),r)):n,node:e}}function et(t,e=1,n){return E.$applyNodeReplacement(new qr(t,e,n))}function H(t){return t instanceof qr}let Kl=class Wd extends E.DEPRECATED_GridRowNode{static getType(){return"tablerow"}static clone(e){return new Wd(e.__height,e.__key)}static importDOM(){return{tr:()=>({conversion:om,priority:0})}}static importJSON(e){return hn(e.height)}constructor(e,n){super(n),this.__height=e}exportJSON(){return{...super.exportJSON(),type:"tablerow",version:1}}createDOM(e){let n=document.createElement("tr");return this.__height&&(n.style.height=`${this.__height}px`),le.addClassNamesToElement(n,e.theme.tableRow),n}isShadowRoot(){return!0}setHeight(e){return this.getWritable().__height=e,this.__height}getHeight(){return this.getLatest().__height}updateDOM(e){return e.__height!==this.__height}canBeEmpty(){return!1}canIndent(){return!1}};function om(){return{node:hn()}}function hn(t){return E.$applyNodeReplacement(new Kl(t))}function pn(t){return t instanceof Kl}function Oe(t){throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?code=${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}let lm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ud=class{constructor(e,n){this.isHighlightingCells=!1,this.focusY=this.focusX=this.anchorY=this.anchorX=-1,this.listenersToRemove=new Set,this.tableNodeKey=n,this.editor=e,this.grid={cells:[],columns:0,rows:0},this.focusCell=this.anchorCell=this.focusCellNodeKey=this.anchorCellNodeKey=this.gridSelection=null,this.hasHijackedSelectionStyles=!1,this.trackTableGrid()}getGrid(){return this.grid}removeListeners(){Array.from(this.listenersToRemove).forEach(e=>e())}trackTableGrid(){let e=new MutationObserver(n=>{this.editor.update(()=>{var r=!1;for(let i=0;i{let n=this.editor.getElementByKey(this.tableNodeKey);if(!n)throw Error("Expected to find TableElement in DOM");this.grid=xi(n),e.observe(n,{childList:!0,subtree:!0})})}clearHighlight(){let e=this.editor;this.isHighlightingCells=!1,this.focusY=this.focusX=this.anchorY=this.anchorX=-1,this.focusCell=this.anchorCell=this.focusCellNodeKey=this.anchorCellNodeKey=this.gridSelection=null,this.hasHijackedSelectionStyles=!1,this.enableHighlightStyle(),e.update(()=>{var n=E.$getNodeByKey(this.tableNodeKey);if(!Wn(n))throw Error("Expected TableNode.");if(n=e.getElementByKey(this.tableNodeKey),!n)throw Error("Expected to find TableElement in DOM");n=xi(n),ui(e,n,null),E.$setSelection(null),e.dispatchCommand(E.SELECTION_CHANGE_COMMAND,void 0)})}enableHighlightStyle(){let e=this.editor;e.update(()=>{let n=e.getElementByKey(this.tableNodeKey);if(!n)throw Error("Expected to find TableElement in DOM");n.classList.remove("disable-selection"),this.hasHijackedSelectionStyles=!1})}disableHighlightStyle(){let e=this.editor;e.update(()=>{let n=e.getElementByKey(this.tableNodeKey);if(!n)throw Error("Expected to find TableElement in DOM");n.classList.add("disable-selection"),this.hasHijackedSelectionStyles=!0})}updateTableGridSelection(e){if(e!=null&&e.gridKey===this.tableNodeKey){let n=this.editor;this.gridSelection=e,this.isHighlightingCells=!0,this.disableHighlightStyle(),ui(n,this.grid,this.gridSelection)}else e==null&&this.clearHighlight()}setFocusCellForSelection(e,n=!1){let r=this.editor;r.update(()=>{var i=E.$getNodeByKey(this.tableNodeKey);if(!Wn(i))throw Error("Expected TableNode.");if(!r.getElementByKey(this.tableNodeKey))throw Error("Expected to find TableElement in DOM");i=e.x;let o=e.y;if(this.focusCell=e,this.anchorCell!==null){let l=lm?(r._window||window).getSelection():null;l&&l.setBaseAndExtent(this.anchorCell.elem,0,this.focusCell.elem,0)}if(!this.isHighlightingCells&&(this.anchorX!==i||this.anchorY!==o||n))this.isHighlightingCells=!0,this.disableHighlightStyle();else if(i===this.focusX&&o===this.focusY)return;this.focusX=i,this.focusY=o,this.isHighlightingCells&&(i=E.$getNearestNodeFromDOMNode(e.elem),this.gridSelection!=null&&this.anchorCellNodeKey!=null&&H(i)&&(i=i.getKey(),this.gridSelection=this.gridSelection.clone()||E.DEPRECATED_$createGridSelection(),this.focusCellNodeKey=i,this.gridSelection.set(this.tableNodeKey,this.anchorCellNodeKey,this.focusCellNodeKey),E.$setSelection(this.gridSelection),r.dispatchCommand(E.SELECTION_CHANGE_COMMAND,void 0),ui(r,this.grid,this.gridSelection)))})}setAnchorCellForSelection(e){this.isHighlightingCells=!1,this.anchorCell=e,this.anchorX=e.x,this.anchorY=e.y,this.editor.update(()=>{var n=E.$getNearestNodeFromDOMNode(e.elem);H(n)&&(n=n.getKey(),this.gridSelection=E.DEPRECATED_$createGridSelection(),this.anchorCellNodeKey=n)})}formatCells(e){this.editor.update(()=>{let n=E.$getSelection();E.DEPRECATED_$isGridSelection(n)||Oe(11);let r=E.$createRangeSelection(),i=r.anchor,o=r.focus;n.getNodes().forEach(l=>{H(l)&&l.getTextContentSize()!==0&&(i.set(l.getKey(),0,"element"),o.set(l.getKey(),l.getChildrenSize(),"element"),r.formatText(e))}),E.$setSelection(n),this.editor.dispatchCommand(E.SELECTION_CHANGE_COMMAND,void 0)})}clearText(){let e=this.editor;e.update(()=>{let n=E.$getNodeByKey(this.tableNodeKey);if(!Wn(n))throw Error("Expected TableNode.");var r=E.$getSelection();E.DEPRECATED_$isGridSelection(r)||Oe(11),r=r.getNodes().filter(H),r.length===this.grid.columns*this.grid.rows?(n.selectPrevious(),n.remove(),E.$getRoot().selectStart()):(r.forEach(i=>{if(E.$isElementNode(i)){let o=E.$createParagraphNode(),l=E.$createTextNode();o.append(l),i.append(o),i.getChildren().forEach(s=>{s!==o&&s.remove()})}}),ui(e,this.grid,null),E.$setSelection(null),e.dispatchCommand(E.SELECTION_CHANGE_COMMAND,void 0))})}};function Ci(t){for(;t!=null;){let e=t.nodeName;if(e==="TD"||e==="TH"){if(t=t._cell,t===void 0)break;return t}t=t.parentNode}return null}function xi(t){let e=[],n={cells:e,columns:0,rows:0};var r=t.firstChild;let i=t=0;for(e.length=0;r!=null;){var o=r.nodeName;if(o==="TD"||o==="TH")o=r,o={elem:o,hasBackgroundColor:o.style.backgroundColor!=="",highlighted:!1,x:t,y:i},r._cell=o,e[i]===void 0&&(e[i]=[]),e[i][t]=o;else if(o=r.firstChild,o!=null){r=o;continue}if(o=r.nextSibling,o!=null)t++,r=o;else if(o=r.parentNode,o!=null){if(r=o.nextSibling,r==null)break;i++,t=0}}return n.columns=t+1,n.rows=i+1,n}function ui(t,e,n){let r=[],i=new Set(n?n.getNodes():[]);return Hl(e,(o,l)=>{let s=o.elem;i.has(l)?(o.highlighted=!0,Gd(t,o),r.push(o)):(o.highlighted=!1,Yd(t,o),s.getAttribute("style")||s.removeAttribute("style"))}),r}function Hl(t,e){({cells:t}=t);for(let n=0;n{n.highlighted=!0,Gd(t,n)})}function sm(t,e){e.enableHighlightStyle(),Hl(e.grid,n=>{let r=n.elem;n.highlighted=!1,Yd(t,n),r.getAttribute("style")||r.removeAttribute("style")})}let ur=(t,e,n,r,i)=>{const o=i==="forward";switch(i){case"backward":case"forward":return n!==(o?t.grid.columns-1:0)?ci(e.getCellNodeFromCordsOrThrow(n+(o?1:-1),r,t.grid)):r!==(o?t.grid.rows-1:0)?ci(e.getCellNodeFromCordsOrThrow(o?0:t.grid.columns-1,r+(o?1:-1),t.grid)):o?e.selectNext():e.selectPrevious(),!0;case"up":return r!==0?ci(e.getCellNodeFromCordsOrThrow(n,r-1,t.grid)):e.selectPrevious(),!0;case"down":return r!==t.grid.rows-1?ci(e.getCellNodeFromCordsOrThrow(n,r+1,t.grid)):e.selectNext(),!0;default:return!1}},bt=(t,e,n,r,i)=>{const o=i==="forward";switch(i){case"backward":case"forward":return n!==(o?t.grid.columns-1:0)&&t.setFocusCellForSelection(e.getCellFromCordsOrThrow(n+(o?1:-1),r,t.grid)),!0;case"up":return r!==0?(t.setFocusCellForSelection(e.getCellFromCordsOrThrow(n,r-1,t.grid)),!0):!1;case"down":return r!==t.grid.rows-1?(t.setFocusCellForSelection(e.getCellFromCordsOrThrow(n,r+1,t.grid)),!0):!1;default:return!1}};function Et(t,e){if(E.$isRangeSelection(t)||E.DEPRECATED_$isGridSelection(t)){let n=e.isParentOf(t.anchor.getNode());return t=e.isParentOf(t.focus.getNode()),n&&t}return!1}function ci(t){let e=t.getChildren().find(n=>E.$isParagraphNode(n));E.$isParagraphNode(e)?e.selectEnd():t.selectEnd()}function Gd(t,e){if(t=e.elem,e=E.$getNearestNodeFromDOMNode(t),!H(e))throw Error("Expected to find LexicalNode from Table Cell DOMNode");e.getBackgroundColor()===null?t.style.setProperty("background-color","rgb(172,206,247)"):t.style.setProperty("background-image","linear-gradient(to right, rgba(172,206,247,0.85), rgba(172,206,247,0.85))"),t.style.setProperty("caret-color","transparent")}function Yd(t,e){if(t=e.elem,e=E.$getNearestNodeFromDOMNode(t),!H(e))throw Error("Expected to find LexicalNode from Table Cell DOMNode");e.getBackgroundColor()===null&&t.style.removeProperty("background-color"),t.style.removeProperty("background-image"),t.style.removeProperty("caret-color")}class Qr extends E.DEPRECATED_GridNode{static getType(){return"table"}static clone(e){return new Qr(e.__key)}static importDOM(){return{table:()=>({conversion:am,priority:1})}}static importJSON(){return lo()}constructor(e){super(e)}exportJSON(){return{...super.exportJSON(),type:"table",version:1}}createDOM(e){let n=document.createElement("table");return le.addClassNamesToElement(n,e.theme.table),n}updateDOM(){return!1}exportDOM(e){return{...super.exportDOM(e),after:n=>{if(n){let r=n.cloneNode(),i=document.createElement("colgroup"),o=document.createElement("tbody");if(o.append(...n.children),n=this.getFirstChildOrThrow(),!pn(n))throw Error("Expected to find row node.");n=n.getChildrenSize();for(let l=0;lE.$getNearestNodeFromDOMNode(l)===e),o!==-1)return{x:o,y:n}}throw Error("Cell not found in table.")}getCellFromCords(e,n,r){return{cells:r}=r,n=r[n],n==null?null:(e=n[e],e??null)}getCellFromCordsOrThrow(e,n,r){if(e=this.getCellFromCords(e,n,r),!e)throw Error("Cell not found at cords.");return e}getCellNodeFromCords(e,n,r){return e=this.getCellFromCords(e,n,r),e==null?null:(e=E.$getNearestNodeFromDOMNode(e.elem),H(e)?e:null)}getCellNodeFromCordsOrThrow(e,n,r){if(e=this.getCellNodeFromCords(e,n,r),!e)throw Error("Node at cords not TableCellNode.");return e}canSelectBefore(){return!0}canIndent(){return!1}}function am(){return{node:lo()}}function lo(){return E.$applyNodeReplacement(new Qr)}function Wn(t){return t instanceof Qr}function Wl(t){if(t=le.$findMatchingParent(t,e=>pn(e)),pn(t))return t;throw Error("Expected table cell to be inside of table row.")}function Ul(t){if(t=le.$findMatchingParent(t,e=>Wn(e)),Wn(t))return t;throw Error("Expected table cell to be inside of table.")}function Jd(t,e){let n=Ul(t),{x:r,y:i}=n.getCordsFromCellNode(t,e);return{above:n.getCellNodeFromCords(r,i-1,e),below:n.getCellNodeFromCords(r,i+1,e),left:n.getCellNodeFromCords(r-1,i,e),right:n.getCellNodeFromCords(r+1,i,e)}}function Hr(t){t=t.getFirstDescendant(),t===null&&Oe(124),t.getParentOrThrow().selectStart()}function Gl(t,e){let n=t.getFirstChild();n!==null?n.insertBefore(e):t.append(e)}let um=E.createCommand("INSERT_TABLE_COMMAND");Y.$createTableCellNode=et;Y.$createTableNode=lo;Y.$createTableNodeWithDimensions=function(t,e,n=!0){let r=lo();for(let o=0;o=r.length||0>e)throw Error("Table column target index out of range");r[e].remove()}}return t};Y.$deleteTableColumn__EXPERIMENTAL=function(){var t=E.$getSelection();E.$isRangeSelection(t)||E.DEPRECATED_$isGridSelection(t)||Oe(118);var e=t.anchor.getNode();t=t.focus.getNode();let[n,,r]=E.DEPRECATED_$getNodeTriplet(e);[e]=E.DEPRECATED_$getNodeTriplet(t);let[i,o,l]=E.DEPRECATED_$computeGridMap(r,n,e);var{startColumn:s}=o;let{startRow:a,startColumn:c}=l;t=Math.min(s,c),s=Math.max(s+n.__colSpan-1,c+e.__colSpan-1);let g=s-t+1;if(i[0].length===s-t+1)r.selectPrevious(),r.remove();else{var d=i.length;for(let u=0;us?f===s&&h.setColSpan(h.__colSpan-(s-m+1)):h.remove()}t=i[a],e=t[c+e.__colSpan],e!==void 0?({cell:e}=e,Hr(e)):({cell:e}=t[c-1],Hr(e))}};Y.$deleteTableRow__EXPERIMENTAL=function(){var t=E.$getSelection();E.$isRangeSelection(t)||E.DEPRECATED_$isGridSelection(t)||Oe(118);var e=t.anchor.getNode();t=t.focus.getNode();let[n,,r]=E.DEPRECATED_$getNodeTriplet(e);[t]=E.DEPRECATED_$getNodeTriplet(t);let[i,o,l]=E.DEPRECATED_$computeGridMap(r,n,t);({startRow:e}=o);var{startRow:s}=l;if(t=s+t.__rowSpan-1,i.length===t-e+1)r.remove();else{s=i[0].length;var a=i[t+1],c=r.getChildAtIndex(t+1);for(let d=t;d>=e;d--){for(var g=s-1;0<=g;g--){let{cell:u,startRow:f,startColumn:h}=i[d][g];if(h===g&&(d===e&&f=e&&f+u.__rowSpan-1>t))if(u.setRowSpan(u.__rowSpan-(t-f+1)),c===null&&Oe(122),g===0)Gl(c,u);else{let{cell:m}=a[g-1];m.insertAfter(u)}}g=r.getChildAtIndex(d),E.DEPRECATED_$isGridRowNode(g)||Oe(123),g.remove()}a!==void 0?({cell:e}=a[0],Hr(e)):({cell:e}=i[e-1][0],Hr(e))}};Y.$getElementGridForTableNode=function(t,e){if(t=t.getElementByKey(e.getKey()),t==null)throw Error("Table Element Not Found");return xi(t)};Y.$getTableCellNodeFromLexicalNode=function(t){return t=le.$findMatchingParent(t,e=>H(e)),H(t)?t:null};Y.$getTableColumnIndexFromTableCellNode=function(t){return Wl(t).getChildren().findIndex(e=>e.is(t))};Y.$getTableNodeFromLexicalNodeOrThrow=Ul;Y.$getTableRowIndexFromTableCellNode=function(t){let e=Wl(t);return Ul(e).getChildren().findIndex(n=>n.is(e))};Y.$getTableRowNodeFromTableCellNodeOrThrow=Wl;Y.$insertTableColumn=function(t,e,n=!0,r,i){let o=t.getChildren();for(let a=0;a=l.length||0>e)throw Error("Table column target index out of range");l=l[e],H(l)||Oe(12);let{left:d,right:u}=Jd(l,i);var s=ee.NO_STATUS;(d&&d.hasHeaderState(ee.ROW)||u&&u.hasHeaderState(ee.ROW))&&(s|=ee.ROW),s=et(s),s.append(E.$createParagraphNode()),n?l.insertAfter(s):l.insertBefore(s)}}return t};Y.$insertTableColumn__EXPERIMENTAL=function(t=!0){function e(){let g=et(ee.NO_STATUS).append(E.$createParagraphNode());return a===null&&(a=g),g}var n=E.$getSelection();E.$isRangeSelection(n)||E.DEPRECATED_$isGridSelection(n)||Oe(118),n=n.focus.getNode();let[r,,i]=E.DEPRECATED_$getNodeTriplet(n),[o,l]=E.DEPRECATED_$computeGridMap(i,r,r);n=o.length;var{startColumn:s}=l;t=t?s+r.__colSpan-1:s-1,s=i.getFirstChild(),E.DEPRECATED_$isGridRowNode(s)||Oe(120);let a=null;var c=s;e:for(s=0;st){Gl(c,e());continue}let{cell:d,startColumn:u,startRow:f}=g[t];if(u+d.__colSpan-1<=t){let h=d,m=f,N=t;for(;m!==s&&1=o.length||0>e)throw Error("Table row target index out of range");if(e=o[e],pn(e))for(o=0;o=n.length||0>e)throw Error("Expected table cell to be inside of table row.");return n[e].remove(),t};Y.$unmergeCell=function(){var t=E.$getSelection();E.$isRangeSelection(t)||E.DEPRECATED_$isGridSelection(t)||Oe(118),t=t.anchor.getNode();let[e,n,r]=E.DEPRECATED_$getNodeTriplet(t);t=e.__colSpan;let i=e.__rowSpan;if(1{let u=Ci(d.target);u!==null&&(d.preventDefault(),d.stopImmediatePropagation(),d.stopPropagation(),i.setAnchorCellForSelection(u),i.setFocusCellForSelection(u,!0),o=!1)}),e.addEventListener("mousedown",d=>{setTimeout(()=>{if(d.button===0){var u=Ci(d.target);u!==null&&(d.preventDefault(),d.stopPropagation(),d.stopImmediatePropagation(),i.setAnchorCellForSelection(u))}},0)}),e.addEventListener("mousemove",d=>{if(l&&(d.preventDefault(),d.stopPropagation(),d.stopImmediatePropagation()),o){let u=Ci(d.target);if(u!==null){let f=u.x,h=u.y;o&&(i.anchorX!==f||i.anchorY!==h||i.isHighlightingCells)&&(d.preventDefault(),i.setFocusCellForSelection(u))}}}),e.addEventListener("mouseleave",()=>{});let s=d=>{d.button===0&&n.update(()=>{var u=E.$getSelection();const f=d.target;if(f instanceof Node){if(E.DEPRECATED_$isGridSelection(u)&&u.gridKey===i.tableNodeKey&&r.contains(f))return i.clearHighlight();u=E.$getNearestNodeFromDOMNode(f),u!==null&&le.$findMatchingParent(u,E.DEPRECATED_$isGridNode)&&(o=!0)}})};window.addEventListener("mousedown",s),i.listenersToRemove.add(()=>window.removeEventListener("mousedown",s));let a=d=>{var u;(u=o)&&(u=d.target,u=u!==null&&u.nodeName==="SPAN",u=!u),u&&(d.preventDefault(),d.stopPropagation()),o=!1};window.addEventListener("mouseup",a),i.listenersToRemove.add(()=>window.removeEventListener("mouseup",a)),e.addEventListener("mouseup",a),i.listenersToRemove.add(()=>e.removeEventListener("mouseup",a)),i.listenersToRemove.add(n.registerCommand(E.KEY_ARROW_DOWN_COMMAND,d=>{var u=E.$getSelection();if(!Et(u,t))return!1;if(E.$isRangeSelection(u)){if(u.isCollapsed()){var f=le.$findMatchingParent(u.anchor.getNode(),m=>H(m));if(!H(f))return!1;var h=t.getCordsFromCellNode(f,i.grid);if(u=le.$findMatchingParent(u.anchor.getNode(),m=>E.$isElementNode(m)),u==null)throw Error("Expected BlockNode Parent");if((f=f.getLastChild())&&u.isParentOf(f)||u===f||d.shiftKey)return d.preventDefault(),d.stopImmediatePropagation(),d.stopPropagation(),d.shiftKey?(i.setAnchorCellForSelection(t.getCellFromCordsOrThrow(h.x,h.y,i.grid)),bt(i,t,h.x,h.y,"down")):ur(i,t,h.x,h.y,"down")}}else if(E.DEPRECATED_$isGridSelection(u)&&d.shiftKey)return h=u.focus.getNode(),H(h)?(h=t.getCordsFromCellNode(h,i.grid),d.preventDefault(),d.stopImmediatePropagation(),d.stopPropagation(),bt(i,t,h.x,h.y,"down")):!1;return!1},E.COMMAND_PRIORITY_HIGH)),i.listenersToRemove.add(n.registerCommand(E.KEY_ARROW_UP_COMMAND,d=>{var u=E.$getSelection();if(!Et(u,t))return!1;if(E.$isRangeSelection(u)){if(u.isCollapsed()){var f=le.$findMatchingParent(u.anchor.getNode(),m=>H(m));if(!H(f))return!1;var h=t.getCordsFromCellNode(f,i.grid);if(u=le.$findMatchingParent(u.anchor.getNode(),m=>E.$isElementNode(m)),u==null)throw Error("Expected BlockNode Parent");if((f=f.getLastChild())&&u.isParentOf(f)||u===f||d.shiftKey)return d.preventDefault(),d.stopImmediatePropagation(),d.stopPropagation(),d.shiftKey?(i.setAnchorCellForSelection(t.getCellFromCordsOrThrow(h.x,h.y,i.grid)),bt(i,t,h.x,h.y,"up")):ur(i,t,h.x,h.y,"up")}}else if(E.DEPRECATED_$isGridSelection(u)&&d.shiftKey)return h=u.focus.getNode(),H(h)?(h=t.getCordsFromCellNode(h,i.grid),d.preventDefault(),d.stopImmediatePropagation(),d.stopPropagation(),bt(i,t,h.x,h.y,"up")):!1;return!1},E.COMMAND_PRIORITY_HIGH)),i.listenersToRemove.add(n.registerCommand(E.KEY_ARROW_LEFT_COMMAND,d=>{var u=E.$getSelection();if(!Et(u,t))return!1;if(E.$isRangeSelection(u)){if(u.isCollapsed()){var f=le.$findMatchingParent(u.anchor.getNode(),h=>H(h));if(!H(f))return!1;if(f=t.getCordsFromCellNode(f,i.grid),le.$findMatchingParent(u.anchor.getNode(),h=>E.$isElementNode(h))==null)throw Error("Expected BlockNode Parent");if(u.anchor.offset===0||d.shiftKey)return d.preventDefault(),d.stopImmediatePropagation(),d.stopPropagation(),d.shiftKey?(i.setAnchorCellForSelection(t.getCellFromCordsOrThrow(f.x,f.y,i.grid)),bt(i,t,f.x,f.y,"backward")):ur(i,t,f.x,f.y,"backward")}}else if(E.DEPRECATED_$isGridSelection(u)&&d.shiftKey)return u=u.focus.getNode(),H(u)?(u=t.getCordsFromCellNode(u,i.grid),d.preventDefault(),d.stopImmediatePropagation(),d.stopPropagation(),bt(i,t,u.x,u.y,"backward")):!1;return!1},E.COMMAND_PRIORITY_HIGH)),i.listenersToRemove.add(n.registerCommand(E.KEY_ARROW_RIGHT_COMMAND,d=>{var u=E.$getSelection();if(!Et(u,t))return!1;if(E.$isRangeSelection(u)){if(u.isCollapsed()){var f=le.$findMatchingParent(u.anchor.getNode(),h=>H(h));if(!H(f))return!1;if(f=t.getCordsFromCellNode(f,i.grid),le.$findMatchingParent(u.anchor.getNode(),h=>E.$isElementNode(h))==null)throw Error("Expected BlockNode Parent");if(u.anchor.offset===u.anchor.getNode().getTextContentSize()||d.shiftKey)return d.preventDefault(),d.stopImmediatePropagation(),d.stopPropagation(),d.shiftKey?(i.setAnchorCellForSelection(t.getCellFromCordsOrThrow(f.x,f.y,i.grid)),bt(i,t,f.x,f.y,"forward")):ur(i,t,f.x,f.y,"forward")}}else if(E.DEPRECATED_$isGridSelection(u)&&d.shiftKey)return u=u.focus.getNode(),H(u)?(u=t.getCordsFromCellNode(u,i.grid),d.preventDefault(),d.stopImmediatePropagation(),d.stopPropagation(),bt(i,t,u.x,u.y,"forward")):!1;return!1},E.COMMAND_PRIORITY_HIGH));let c=d=>()=>{var u=E.$getSelection();if(!Et(u,t))return!1;if(E.DEPRECATED_$isGridSelection(u))return i.clearText(),!0;if(E.$isRangeSelection(u)){const m=le.$findMatchingParent(u.anchor.getNode(),N=>H(N));if(!H(m))return!1;var f=u.anchor.getNode(),h=u.focus.getNode();if(f=t.isParentOf(f),h=t.isParentOf(h),f&&!h||h&&!f)return i.clearText(),!0;if(f=(h=le.$findMatchingParent(u.anchor.getNode(),N=>E.$isElementNode(N)))&&le.$findMatchingParent(h,N=>E.$isElementNode(N)&&H(N.getParent())),!E.$isElementNode(f)||!E.$isElementNode(h))return!1;if(d===E.DELETE_LINE_COMMAND&&f.getPreviousSibling()===null)return!0;if((d===E.DELETE_CHARACTER_COMMAND||d===E.DELETE_WORD_COMMAND)&&u.isCollapsed()&&u.anchor.offset===0&&h!==f){u=h.getChildren();const N=E.$createParagraphNode();return u.forEach(y=>N.append(y)),h.replace(N),h.getWritable().__parent=m.getKey(),!0}}return!1};[E.DELETE_WORD_COMMAND,E.DELETE_LINE_COMMAND,E.DELETE_CHARACTER_COMMAND].forEach(d=>{i.listenersToRemove.add(n.registerCommand(d,c(d),E.COMMAND_PRIORITY_CRITICAL))});let g=d=>{const u=E.$getSelection();return Et(u,t)?E.DEPRECATED_$isGridSelection(u)?(d.preventDefault(),d.stopPropagation(),i.clearText(),!0):(E.$isRangeSelection(u)&&(d=le.$findMatchingParent(u.anchor.getNode(),f=>H(f)),H(d)),!1):!1};return i.listenersToRemove.add(n.registerCommand(E.KEY_BACKSPACE_COMMAND,g,E.COMMAND_PRIORITY_CRITICAL)),i.listenersToRemove.add(n.registerCommand(E.KEY_DELETE_COMMAND,g,E.COMMAND_PRIORITY_CRITICAL)),i.listenersToRemove.add(n.registerCommand(E.FORMAT_TEXT_COMMAND,d=>{let u=E.$getSelection();return Et(u,t)?E.DEPRECATED_$isGridSelection(u)?(i.formatCells(d),!0):(E.$isRangeSelection(u)&&(d=le.$findMatchingParent(u.anchor.getNode(),f=>H(f)),H(d)),!1):!1},E.COMMAND_PRIORITY_CRITICAL)),i.listenersToRemove.add(n.registerCommand(E.CONTROLLED_TEXT_INSERTION_COMMAND,()=>{var d=E.$getSelection();return Et(d,t)&&(E.DEPRECATED_$isGridSelection(d)?i.clearHighlight():E.$isRangeSelection(d)&&(d=le.$findMatchingParent(d.anchor.getNode(),u=>H(u)),H(d))),!1},E.COMMAND_PRIORITY_CRITICAL)),i.listenersToRemove.add(n.registerCommand(E.KEY_TAB_COMMAND,d=>{var u=E.$getSelection();if(!Et(u,t))return!1;if(E.$isRangeSelection(u)){let f=le.$findMatchingParent(u.anchor.getNode(),h=>H(h));if(!H(f))return!1;if(u.isCollapsed())return u=t.getCordsFromCellNode(f,i.grid),d.preventDefault(),ur(i,t,u.x,u.y,d.shiftKey?"backward":"forward"),!0}return!1},E.COMMAND_PRIORITY_HIGH)),i.listenersToRemove.add(n.registerCommand(E.FOCUS_COMMAND,()=>t.isSelected(),E.COMMAND_PRIORITY_HIGH)),i.listenersToRemove.add(n.registerCommand(E.SELECTION_CHANGE_COMMAND,()=>{let d=E.$getSelection();var u=E.$getPreviousSelection();if(d&&E.$isRangeSelection(d)&&!d.isCollapsed()){var f=d.anchor.getNode(),h=d.focus.getNode();f=t.isParentOf(f);var m=t.isParentOf(h);if(h=f&&!m||m&&!f,f=f&&m&&!t.isSelected(),h)return u=d.isBackward(),f=E.$createRangeSelection(),h=t.getKey(),f.anchor.set(d.anchor.key,d.anchor.offset,d.anchor.type),f.focus.set(h,u?0:t.getChildrenSize(),"element"),l=!0,E.$setSelection(f),Sa(n,i),!0;if(f&&({grid:f}=i,d.getNodes().filter(H).length===f.rows*f.columns)){f=E.DEPRECATED_$createGridSelection(),h=t.getKey(),m=t.getFirstChildOrThrow().getFirstChild();let N=t.getLastChildOrThrow().getLastChild();if(m!=null&&N!=null)return f.set(h,m.getKey(),N.getKey()),E.$setSelection(f),i.updateTableGridSelection(f),!0}}return d&&!d.is(u)&&(E.DEPRECATED_$isGridSelection(d)||E.DEPRECATED_$isGridSelection(u))&&i.gridSelection&&!i.gridSelection.is(u)?(E.DEPRECATED_$isGridSelection(d)&&d.gridKey===i.tableNodeKey?i.updateTableGridSelection(d):!E.DEPRECATED_$isGridSelection(d)&&E.DEPRECATED_$isGridSelection(u)&&u.gridKey===i.tableNodeKey&&i.updateTableGridSelection(null),!1):(i.hasHijackedSelectionStyles&&!t.isSelected()?(sm(n,i),l=!1):!i.hasHijackedSelectionStyles&&t.isSelected()&&Sa(n,i),!1)},E.COMMAND_PRIORITY_CRITICAL)),i};Y.getCellFromTarget=Ci;Y.getTableSelectionFromTableElement=function(t){return t.__lexicalTableSelection};const cm=Y;var He=cm;const dm={dependencies:[jt.HorizontalRuleNode],export:t=>jt.$isHorizontalRuleNode(t)?"***":null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(t,e,n,r)=>{const i=jt.$createHorizontalRuleNode();r||t.getNextSibling()?t.replace(i):t.insertBefore(i),i.selectNext()},type:"element"},gm={dependencies:[Ut],export:(t,e,n)=>Nd(t)?`![${t.getAltText()}](${t.getSrc()})`:null,importRegExp:/!(?:\[([^[]*)\])(?:\(([^(]+)\))/,regExp:/!(?:\[([^[]*)\])(?:\(([^(]+)\))$/,replace:(t,e)=>{const[,n,r]=e,i=ro({altText:n,maxWidth:800,src:r});t.replace(i)},trigger:")",type:"text-match"},Vd=/^(?:\|)(.+)(?:\|)\s?$/,fm={dependencies:[He.TableNode,He.TableRowNode,He.TableCellNode],export:(t,e)=>{if(!He.$isTableNode(t))return null;const n=[];for(const r of t.getChildren()){const i=[];if(He.$isTableRowNode(r))for(const o of r.getChildren())C.$isElementNode(o)&&i.push(e(o));n.push(`| ${i.join(" | ")} |`)}return n.join(` -`)},regExp:Vd,replace:(t,e,n)=>{const r=$a(n[0]);if(!r)return;const i=[r];let o=t.getPreviousSibling(),l=r.length;for(;o&&!(!C.$isParagraphNode(o)||o.getChildrenSize()!==1);){const c=o.getFirstChild();if(!C.$isTextNode(c))break;const g=$a(c.getTextContent());if(!g)break;l=Math.max(l,g.length),i.unshift(g);const d=o.getPreviousSibling();o.remove(),o=d}const s=He.$createTableNode();for(const c of i){const g=He.$createTableRowNode();s.append(g);for(let d=0;d{const e=He.$createTableCellNode(He.TableCellHeaderStates.NO_STATUS),n=C.$createParagraphNode();return t!=null&&n.append(C.$createTextNode(t.trim())),e.append(n),e},$a=t=>{const e=t.match(Vd);return!e||!e[1]?null:e[1].split("|").map(n=>Xd(n))},ol=[fm,dm,gm,Kr.CHECK_LIST,...Kr.TRANSFORMERS];function pm(){const[t]=X.useLexicalComposerContext(),e=$.useCallback(()=>t.update(()=>{const n=C.$getRoot(),r=n.getFirstChild();if(he.$isCodeNode(r)&&r.getLanguage()==="markdown")Kr.$convertFromMarkdownString(r.getTextContent(),ol);else{const i=Kr.$convertToMarkdownString(ol);n.clear().append(he.$createCodeNode("markdown").append(C.$createTextNode(i)))}n.selectEnd()}),[t]);return p.jsx(Va,{appearance:"outline",icon:p.jsx(Rg,{}),onClick:e})}var Yl={},mm=C;function _m(t){let e=document.createElement("input");e.type="file",e.accept=".lexical",e.addEventListener("change",n=>{if(n=n.target,n.files){n=n.files[0];let r=new FileReader;r.readAsText(n,"UTF-8"),r.onload=i=>{i.target&&t(i.target.result)}}}),e.click()}Yl.exportFile=function(t,e=Object.freeze({})){var n=new Date;t={editorState:t.getEditorState(),lastSaved:n.getTime(),source:e.source||"Lexical",version:"0.10.0"};{e=`${e.fileName||n.toISOString()}.lexical`,n=document.createElement("a");let r=document.body;r!==null&&(r.appendChild(n),n.style.display="none",t=JSON.stringify(t),t=new Blob([t],{type:"octet/stream"}),t=window.URL.createObjectURL(t),n.href=t,n.download=e,n.click(),window.URL.revokeObjectURL(t),n.remove())}};Yl.importFile=function(t){_m(e=>{e=JSON.parse(e),e=t.parseEditorState(JSON.stringify(e.editorState)),t.setEditorState(e),t.dispatchCommand(mm.CLEAR_HISTORY_COMMAND,void 0)})};const Cm=Yl;var Ra=Cm;function xm(){const[t]=X.useLexicalComposerContext();return p.jsxs(p.Fragment,{children:[p.jsx(Un,{appearance:"outline",icon:p.jsx(Ag,{}),onClick:()=>Ra.importFile(t)}),p.jsx(Un,{appearance:"outline",icon:p.jsx(Og,{}),onClick:()=>Ra.exportFile(t,{fileName:`Bunlog ${new Date().toISOString()}`,source:"Bunlog"})})]})}const Nm=it({box:{...uu,columnGap:"3px",position:"absolute",...P.padding("10px"),bottom:0,left:0}});function Em({anchor:t}){const e=Nm(),[n]=X.useLexicalComposerContext(),[r,i]=$.useState(()=>n.isEditable()),[o,l]=$.useState(!0);return $.useEffect(()=>V.mergeRegister(n.registerEditableListener(s=>i(s))),[n]),$.useEffect(()=>n.registerUpdateListener(({dirtyElements:s,prevEditorState:a,tags:c})=>{!r&&s.size>0&&!c.has("historic")&&!c.has("collaboration")&&console.debug(n.getEditorState()),n.getEditorState().read(()=>{const g=C.$getRoot().getChildren();g.length>1?l(!1):C.$isParagraphNode(g[0])?l(g[0].getChildren().length===0):l(!1)})}),[n,r]),p.jsx(Wr,{mountNode:t,children:p.jsxs("div",{className:e.box,children:[p.jsx(xm,{}),p.jsx(Pp,{}),p.jsx(pm,{})]})})}var Jl={},Xt=ce,Tm=X,ym=V,Rt=C,vm=$;function Zd(t,e){for(let n=0;nr.getLatest())}function Sm(t,e,n){vm.useEffect(()=>{if(!t.hasNodes([Xt.AutoLinkNode]))throw Error("Minified Lexical error #77; visit https://lexical.dev/docs/error?code=77 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");let r=(i,o)=>{n&&n(i,o)};return ym.mergeRegister(t.registerNodeTransform(Rt.TextNode,i=>{var o=i.getParentOrThrow(),l=i.getPreviousSibling();if(Xt.$isAutoLinkNode(o))$o(o,e,r);else if(!Xt.$isLinkNode(o)){if(i.isSimpleText()&&(en.test(i.getTextContent()[0])||!Xt.$isAutoLinkNode(l))){l=o=i.getTextContent();let f=0,h=i;for(var s;(s=Zd(l,e))&&s!==null;){let m=s.index,N=s.length,y=m+N;var a=f+m,c=f+y,g=o,d=i;if((0n){return n=>{let r=t.exec(n);return r===null?null:{index:r.index,length:r[0].length,text:r[0],url:e(n)}}};const $m=Jl;var Rm=$m;const Am=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,Om=/(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/,wm=[t=>{const e=Am.exec(t);if(!e)return null;const n=e[0];return{index:e.index,length:n.length,text:n,url:n.startsWith("http")?n:`https://${n}`}},t=>{const e=Om.exec(t);return e&&{index:e.index,length:e[0].length,text:e[0],url:`mailto:${e[0]}`}}];function Dm(){return p.jsx(Rm.AutoLinkPlugin,{matchers:wm})}function Aa({filter:t,newTab:e=!0}){const[n]=X.useLexicalComposerContext();return $.useEffect(()=>{function r(i){const o=i,l=Lm(o,n);if(!l)return;const s=l.getAttribute("href");if(l.getAttribute("contenteditable")==="false"||!s)return;const a=n.getEditorState().read(C.$getSelection);if(C.$isRangeSelection(a)&&!a.isCollapsed())return;let c;if(n.update(()=>{const g=C.$getNearestNodeFromDOMNode(l);ce.$isLinkNode(g)&&(c=g)}),!(!c||t&&!t(o,c)))try{if(s){const g=o.type==="auxclick"&&o.button===1;window.open(s,e||o.metaKey||o.ctrlKey||g?"_blank":"_self"),o.preventDefault()}}catch{}}return n.registerRootListener((i,o)=>{o&&(o.removeEventListener("click",r),o.removeEventListener("auxclick",r)),i&&(i.addEventListener("click",r),i.addEventListener("auxclick",r))})},[n,t,e]),null}function Oa(t){return t.nodeName.toLowerCase()==="a"}function Lm(t,e){return e.getEditorState().read(()=>{const n=t.target;return Oa(n)?n:n.parentNode&&Oa(n.parentNode)?n.parentNode:null})}const Mm=it({green:{color:an.colorPaletteLightGreenForeground3}});function bm({editor:t,getCodeDOMNode:e}){const[n,r]=$.useState(!1),{run:i}=Xa(()=>{r(!1)},{wait:1e3});async function o(){const s=e();if(!s)return;let a="";t.update(()=>{const c=C.$getNearestNodeFromDOMNode(s);he.$isCodeNode(c)&&(a=c.getTextContent());const g=C.$getSelection();C.$setSelection(g)});try{await navigator.clipboard.writeText(a),r(!0),i()}catch(c){console.error("Failed to copy: ",c)}}const l=Mm();return p.jsx(Un,{size:"small",appearance:"subtle",onClick:o,icon:n?p.jsx(wg,{className:l.green}):p.jsx(Dg,{})})}const km=8,Im=it({container:{height:"35.8px",fontSize:"10px",color:"rgba(0, 0, 0, 0.5)",position:"absolute",display:"flex",alignItems:"center",flexDirection:"row",userSelect:"none"},lang:{marginRight:"4px"}});function Pm(t){const e=t.target;if(e&&e instanceof HTMLElement){const n=e.closest("code.LexEditor_code"),r=!(n||e.closest("div.LexEditor_CodeMenu"));return{codeDOMNode:n,isOutside:r}}else return{codeDOMNode:null,isOutside:!0}}function Fm({anchor:t=document.body}){const[e]=X.useLexicalComposerContext(),[n,r]=$.useState(!1),[i,o]=$.useState(!1),[l,s]=$.useState(""),[a,c]=$.useState({right:"0",top:"0"}),g=$.useRef(new Set),d=$.useRef(null),{run:u,cancel:f}=Xa(N=>{const{codeDOMNode:y,isOutside:_}=Pm(N);if(_){r(!1);return}if(!y)return;d.current=y;let x=null,v="";if(e.update(()=>{const S=C.$getNearestNodeFromDOMNode(y);he.$isCodeNode(S)&&(x=S,v=x.getLanguage()||"")}),x){const{y:S,right:A}=t.getBoundingClientRect(),{y:w,right:B}=y.getBoundingClientRect();s(v),r(!0),c({right:`${A-B+km}px`,top:`${w-S}px`})}},{wait:100,maxWait:1e3});$.useEffect(()=>{if(i)return document.addEventListener("mousemove",u),()=>{r(!1),f(),document.removeEventListener("mousemove",u)}},[i,u]),e.registerMutationListener(he.CodeNode,N=>{e.getEditorState().read(()=>{for(const[y,_]of N)switch(_){case"created":g.current.add(y),o(g.current.size>0);break;case"destroyed":g.current.delete(y),o(g.current.size>0);break}})});const h=he.getLanguageFriendlyName(l),m=Im();return p.jsx(Wr,{mountNode:t,children:n&&p.jsxs("div",{className:gt(m.container,"LexEditor_CodeMenu"),style:a,children:[p.jsx("div",{className:m.lang,children:h}),p.jsx(bm,{editor:e,getCodeDOMNode:()=>d.current})]})})}function Bm(){const[t]=X.useLexicalComposerContext();return $.useEffect(()=>he.registerCodeHighlighting(t),[t]),null}class mn extends C.ElementNode{constructor(e,n){super(n),this.open=e,this.open=e}static getType(){return"collapsible-container"}static clone(e){return new mn(e.open,e.__key)}createDOM(e){const n=document.createElement("details");return n.classList.add("LexEditor_Collapsible"),n.open=this.open,n}updateDOM(e,n){return e.open!==this.open&&(n.open=this.open),!1}static importDOM(){return{}}static importJSON(e){return eg()}exportJSON(){return{...super.exportJSON(),type:"collapsible-container",version:1}}setOpen(e){const n=this.getWritable();n.open=e}getOpen(){return this.open}toggleOpen(){this.setOpen(!this.getOpen())}}function eg(){return new mn(!0)}function Qt(t){return t instanceof mn}class _n extends C.ElementNode{static getType(){return"collapsible-content"}static clone(e){return new _n(e.__key)}createDOM(e){const n=document.createElement("div");return n.classList.add("LexEditor_CollapsibleContent"),n}updateDOM(e,n){return!1}static importDOM(){return{}}static importJSON(e){return tg()}isShadowRoot(){return!0}exportJSON(){return{...super.exportJSON(),type:"collapsible-content",version:1}}}function tg(){return new _n}function ng(t){return t instanceof _n}class Cn extends C.ElementNode{static getType(){return"collapsible-title"}static clone(e){return new Cn(e.__key)}createDOM(e,n){const r=document.createElement("summary");return r.classList.add("LexEditor_CollapsibleTitle"),r}updateDOM(e,n){return!1}static importDOM(){return{}}static importJSON(e){return rg()}exportJSON(){return{...super.exportJSON(),type:"collapsible-title",version:1}}collapseAtStart(e){return this.getParentOrThrow().insertBefore(this),!0}insertNewAfter(e,n=!0){const r=this.getParentOrThrow();if(!Qt(r))throw new Error("CollapsibleTitleNode expects to be child of CollapsibleContainerNode");if(r.getOpen()){const i=this.getNextSibling();if(!ng(i))throw new Error("CollapsibleTitleNode expects to have CollapsibleContentNode sibling");const o=i.getFirstChild();if(C.$isElementNode(o))return o;{const l=C.$createParagraphNode();return i.append(l),l}}else{const i=C.$createParagraphNode();return r.insertAfter(i,n),i}}}function rg(){return new Cn}function wa(t){return t instanceof Cn}const ig=C.createCommand(),jm=C.createCommand();function zm(){const[t]=X.useLexicalComposerContext();return $.useEffect(()=>{if(!t.hasNodes([mn,Cn,_n]))throw new Error("CollapsiblePlugin: CollapsibleContainerNode, CollapsibleTitleNode, or CollapsibleContentNode not registered on editor");return V.mergeRegister(t.registerNodeTransform(_n,e=>{const n=e.getParent();if(!Qt(n)){const r=e.getChildren();for(const i of r)e.insertBefore(i);e.remove()}}),t.registerNodeTransform(Cn,e=>{const n=e.getParent();Qt(n)||e.replace(C.$createParagraphNode().append(...e.getChildren()))}),t.registerNodeTransform(mn,e=>{const n=e.getChildren();if(n.length!==2||!wa(n[0])||!ng(n[1])){for(const r of n)e.insertBefore(r);e.remove()}}),t.registerCommand(C.DELETE_CHARACTER_COMMAND,()=>{const e=C.$getSelection();if(!C.$isRangeSelection(e)||!e.isCollapsed()||e.anchor.offset!==0)return!1;const r=e.anchor.getNode().getTopLevelElement();if(!r)return!1;const i=r.getPreviousSibling();return!Qt(i)||i.getOpen()?!1:(i.setOpen(!0),!0)},C.COMMAND_PRIORITY_LOW),t.registerCommand(C.KEY_ARROW_DOWN_COMMAND,()=>{const e=C.$getSelection();if(!C.$isRangeSelection(e)||!e.isCollapsed())return!1;const n=V.$findMatchingParent(e.anchor.getNode(),Qt);if(!n)return!1;const r=n.getParent();return r&&r.getLastChild()===n&&r.append(C.$createParagraphNode()),!1},C.COMMAND_PRIORITY_LOW),t.registerCommand(C.INSERT_PARAGRAPH_COMMAND,()=>{const e=t._window?.event;if(e&&(e.ctrlKey||e.metaKey)&&e.key==="Enter"){const n=C.$getPreviousSelection();if(C.$isRangeSelection(n)&&n.isCollapsed()){const r=V.$findMatchingParent(n.anchor.getNode(),i=>C.$isElementNode(i)&&!i.isInline());if(wa(r)){const i=r.getParent();if(Qt(i))return i.toggleOpen(),C.$setSelection(n.clone()),!0}}}return!1},C.COMMAND_PRIORITY_LOW),t.registerCommand(ig,()=>(t.update(()=>{const e=C.$getSelection();if(!C.$isRangeSelection(e))return;const n=rg(),r=tg().append(C.$createParagraphNode()),i=eg().append(n,r);e.insertNodes([i]),n.selectStart()}),!0),C.COMMAND_PRIORITY_EDITOR),t.registerCommand(jm,e=>(t.update(()=>{const n=C.$getNodeByKey(e);Qt(n)&&n.toggleOpen()}),!0),C.COMMAND_PRIORITY_EDITOR))},[t]),null}function Ro(t){return t instanceof HTMLElement}class og{constructor(e,n){this.x=e,this.y=n}equals({x:e,y:n}){return this.x===e&&this.y===n}calcDeltaXTo({x:e}){return this.x-e}calcDeltaYTo({y:e}){return this.y-e}calcHorizontalDistanceTo(e){return Math.abs(this.calcDeltaXTo(e))}calcVerticalDistance(e){return Math.abs(this.calcDeltaYTo(e))}calcDistanceTo(e){return Math.sqrt(Math.pow(this.calcDeltaXTo(e),2)+Math.pow(this.calcDeltaYTo(e),2))}}function Km(t){return t instanceof og}class tn{_left;_top;_right;_bottom;constructor(e,n,r,i){const[o,l]=n<=i?[n,i]:[i,n],[s,a]=e<=r?[e,r]:[r,e];this._top=o,this._right=a,this._left=s,this._bottom=l}get top(){return this._top}get right(){return this._right}get bottom(){return this._bottom}get left(){return this._left}get width(){return Math.abs(this._left-this._right)}get height(){return Math.abs(this._bottom-this._top)}equals({top:e,left:n,bottom:r,right:i}){return e===this._top&&r===this._bottom&&n===this._left&&i===this._right}contains(e){if(Km(e)){const{x:n,y:r}=e,i=rthis._bottom,l=nthis._right;return{reason:{isOnBottomSide:o,isOnLeftSide:l,isOnRightSide:s,isOnTopSide:i},result:!i&&!o&&!l&&!s}}else{const{top:n,left:r,bottom:i,right:o}=e;return n>=this._top&&n<=this._bottom&&i>=this._top&&i<=this._bottom&&r>=this._left&&r<=this._right&&o>=this._left&&o<=this._right}}intersectsWith(e){const{left:n,top:r,width:i,height:o}=e,{left:l,top:s,width:a,height:c}=this,g=n+i>=l+a?n+i:l+a,d=r+o>=s+c?r+o:s+c,u=n<=l?n:l,f=r<=s?r:s;return g-u<=i+a&&d-f<=o+c}generateNewRect({left:e=this.left,top:n=this.top,right:r=this.right,bottom:i=this.bottom}){return new tn(e,n,r,i)}static fromLTRB(e,n,r,i){return new tn(e,n,r,i)}static fromLWTH(e,n,r,i){return new tn(e,r,e+n,r+i)}static fromPoints(e,n){const{y:r,x:i}=e,{y:o,x:l}=n;return tn.fromLTRB(i,r,l,o)}static fromDOM(e){const{top:n,width:r,left:i,height:o}=e.getBoundingClientRect();return tn.fromLWTH(i,r,n,o)}}let Ei=1/0;function Hm(t){return t===0?1/0:Ei>=0&&EiC.$getRoot().getChildrenKeys())}const Da=0;function Ao(t,e,n){const r=t.getBoundingClientRect(),i=Wm(e);let o=null;return e.getEditorState().read(()=>{let l=Hm(i.length),s=Da;for(;l>=0&&le.style.transform=n)}const La=28;function Jm(t,e,n,r){const i=window.getComputedStyle(e),{top:o,height:l}=e.getBoundingClientRect(),{top:s,width:a}=r.getBoundingClientRect();let c=o;n-o>l/2?c+=l+parseFloat(i.marginBottom):c-=parseFloat(i.marginTop);const g=c-s-2,d=La-ll;t.style.transform=`translate(${d}px, ${g}px)`,t.style.width=`${a-(La-ll)*2}px`,t.style.opacity=".4"}function Vm(t){t&&(t.style.opacity="0",t.style.transform="translate(-10000px, -10000px)")}const Ma="application/x-lexical-drag-block";function Xm({editor:t,anchor:e}){const n=e.parentElement,r=$.useRef(null),i=$.useRef(null),[o,l]=$.useState(null);$.useEffect(()=>{function g(u){const f=u.target;if(!Ro(f)){l(null);return}if(Um(f))return;const h=Ao(e,t,u);l(h)}function d(){l(null)}return n?.addEventListener("mousemove",g),n?.addEventListener("mouseleave",d),()=>{n?.removeEventListener("mousemove",g),n?.removeEventListener("mouseleave",d)}},[n,e,t]),$.useEffect(()=>{r.current&&Gm(o,r.current,e)},[e,o]),$.useEffect(()=>{function g(u){const[f]=rt.eventFiles(u);if(f)return!1;const{pageY:h,target:m}=u;if(!Ro(m))return!1;const N=Ao(e,t,u),y=i.current;return!N||!y?!1:(Jm(y,N,h,e),u.preventDefault(),!0)}function d(u){const[f]=rt.eventFiles(u);if(f)return!1;const{target:h,dataTransfer:m,pageY:N}=u,y=m?.getData(Ma)||"",_=C.$getNodeByKey(y);if(!_||!Ro(h))return!1;const x=Ao(e,t,u);if(!x)return!1;const v=C.$getNearestNodeFromDOMNode(x);if(!v)return!1;if(v===_)return!0;const{top:S,height:A}=x.getBoundingClientRect();return N-S>A/2?v.insertAfter(_):v.insertBefore(_),l(null),!0}return V.mergeRegister(t.registerCommand(C.DRAGOVER_COMMAND,u=>g(u),C.COMMAND_PRIORITY_LOW),t.registerCommand(C.DROP_COMMAND,u=>d(u),C.COMMAND_PRIORITY_HIGH))},[e,t]);function s(g){const d=g.dataTransfer;if(!d||!o)return;Ym(d,o);let u="";t.update(()=>{const f=C.$getNearestNodeFromDOMNode(o);f&&(u=f.getKey())}),d.setData(Ma,u)}function a(){Vm(i.current)}const c=Zm();return p.jsxs(Wr,{mountNode:e,children:[p.jsx("div",{className:gt("LexEditor_Draggable",c.meun),ref:r,draggable:!0,onDragStart:s,onDragEnd:a,children:p.jsx("div",{className:t._editable?gt(c.icon,"LexEditor_DraggableIcon"):""})}),p.jsx("div",{className:c.line,ref:i})]})}const Zm=it({meun:{...P.borderRadius("4px"),...P.padding("2px","1px"),cursor:"grab",opacity:0,position:"absolute",left:0,top:0,willChange:"transform",":active":{cursor:"grabbing"},":hover":{backgroundColor:"#efefef"}},icon:{width:"16px",height:"16px",opacity:.3},line:{pointerEvents:"none",backgroundColor:"deepskyblue",height:"4px",position:"absolute",left:0,top:0,opacity:0,willChange:"transform"}});function qm({anchor:t=document.body}){const[e]=X.useLexicalComposerContext();return p.jsx(Xm,{anchor:t,editor:e})}function so(t){const e=t.anchor,n=t.focus,r=t.anchor.getNode(),i=t.focus.getNode();return r===i?r:t.isBackward()?Se.$isAtNodeEnd(n)?r:i:Se.$isAtNodeEnd(e)?r:i}const Qm=10,e_=5;function sl(t,e,n,r=Qm,i=e_){const o=n.parentElement;if(!t||!o){e.style.opacity="0",e.style.transform="translate(-10000px, -10000px)";return}const l=e.getBoundingClientRect(),s=n.getBoundingClientRect(),a=o.getBoundingClientRect();let c=t.top-l.height-r,g=t.left-i;ca.right&&(g=a.right-l.width-i),c-=s.top,g-=s.left,e.style.opacity="1",e.style.transform=`translate(${g}px, ${c}px)`}function lg(t){const e=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,n=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;return t=String(t).trim(),t.match(e)||t.match(n)?t:"https://"}const t_=new RegExp(/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[\w]*))?)/);function n_(t){return t==="https://"||t_.test(t)}function r_({editor:t,isLink:e,setIsLink:n,anchor:r}){const i=$.useRef(null),o=$.useRef(null),[l,s]=$.useState(""),[a,c]=$.useState(!1),[g,d]=$.useState(),u=$.useCallback(()=>{const h=C.$getSelection();if(C.$isRangeSelection(h)){const x=so(h),v=x.getParent();ce.$isLinkNode(v)?s(v.getURL()):ce.$isLinkNode(x)?s(x.getURL()):s("")}const m=i.current,N=window.getSelection(),y=document.activeElement;if(!m)return;const _=t.getRootElement();if(h&&N&&_&&_.contains(N.anchorNode)&&t.isEditable()){const x=N.getRangeAt(0);let v;if(N.anchorNode===_){let S=_;for(;S.firstElementChild;)S=S.firstElementChild;v=S.getBoundingClientRect()}else v=x.getBoundingClientRect();sl(v,m,r),d(h)}else(!y||y.className!=="link-input")&&(_&&sl(null,m,r),d(void 0),c(!1),s(""));return!0},[r,t]);$.useEffect(()=>{const h=r.parentElement;function m(){t.getEditorState().read(()=>u())}return window.addEventListener("resize",m),h&&h.addEventListener("scroll",m),()=>{window.removeEventListener("resize",m),h&&h.removeEventListener("scroll",m)}},[r.parentElement,t,u]),$.useEffect(()=>V.mergeRegister(t.registerUpdateListener(({editorState:h})=>h.read(()=>u())),t.registerCommand(C.SELECTION_CHANGE_COMMAND,()=>(u(),!0),C.COMMAND_PRIORITY_LOW),t.registerCommand(C.KEY_ESCAPE_COMMAND,()=>e?(n(!1),!0):!1,C.COMMAND_PRIORITY_HIGH)),[t,u,n,e]),$.useEffect(()=>{t.getEditorState().read(()=>u())},[t,u]),$.useEffect(()=>{a&&o.current&&o.current.focus()},[a]);const f=i_();return p.jsx("div",{ref:i,style:{transition:"opacity 0.5s"},className:f.editor,children:a?p.jsx(Gn,{ref:o,className:f.input,value:l,onChange:(h,m)=>s(m.value),onKeyDown:h=>{h.key==="Enter"?(h.preventDefault(),g&&(l&&t.dispatchCommand(ce.TOGGLE_LINK_COMMAND,lg(l)),c(!1))):h.key==="Escape"&&(h.preventDefault(),c(!1))}}):p.jsxs("div",{className:f.link,children:[p.jsx(Lg,{href:l,target:"_blank",rel:"noopener noreferrer",className:f.a,children:l}),p.jsx(Un,{appearance:"subtle",icon:p.jsx(Mg,{}),onClick:()=>c(!0)})]})})}const ba={...P.margin("8px","10px"),...P.padding("4px","12px")},i_=it({editor:{...cu,...rf,position:"absolute",top:0,left:0,maxWidth:"400px",width:"100%",opacity:0,willChange:"transform"},a:{whiteSpace:"nowrap",...P.overflow("hidden"),textOverflow:"ellipsis"},link:{...uu,justifyContent:"space-between",alignItems:"center",width:"calc(100% - 20px)",boxSizing:"border-box",...P.borderRadius(an.borderRadiusMedium),backgroundColor:"#eee",position:"relative",...ba},input:ba});function o_({editor:t,anchor:e}){const[n,r]=$.useState(t),[i,o]=$.useState(!1);return $.useEffect(()=>t.registerCommand(C.SELECTION_CHANGE_COMMAND,(l,s)=>{const a=C.$getSelection();if(C.$isRangeSelection(a)){const c=so(a),g=V.$findMatchingParent(c,ce.$isLinkNode),d=V.$findMatchingParent(c,ce.$isAutoLinkNode);o(!!(g&&!d))}return r(s),!1},C.COMMAND_PRIORITY_CRITICAL),[t]),i&&p.jsx(Wr,{mountNode:e,children:p.jsx(r_,{editor:n,isLink:i,anchor:e,setIsLink:o})})}function l_({anchor:t=document.body}){const[e]=X.useLexicalComposerContext();return p.jsx(o_,{editor:e,anchor:t})}function s_(t,e){const n=t.getRangeAt(0);let r;if(t.anchorNode===e){let i=e;for(;i.firstElementChild;)i=i.firstElementChild;r=i.getBoundingClientRect()}else r=n.getBoundingClientRect();return r}function a_({editor:t,anchor:e,isLink:n,isBold:r,isItalic:i,isUnderline:o,isCode:l,isStrikethrough:s,isSubscript:a,isSuperscript:c}){const g=$.useRef(null),d=$.useCallback(()=>{n?t.dispatchCommand(ce.TOGGLE_LINK_COMMAND,null):t.dispatchCommand(ce.TOGGLE_LINK_COMMAND,"https://")},[t,n]),u=$.useCallback(()=>{const m=C.$getSelection(),N=g.current,y=window.getSelection();if(!N)return;const _=t.getRootElement();if(m&&y&&!y.isCollapsed&&_&&_.contains(y.anchorNode)){const x=s_(y,_);sl(x,N,e)}},[t,e]);$.useEffect(()=>{const m=e.parentElement;function N(){t.getEditorState().read(()=>u())}return window.addEventListener("resize",N),m&&m.addEventListener("scroll",N),()=>{window.removeEventListener("resize",N),m&&m.removeEventListener("scroll",N)}},[t,u,e]),$.useEffect(()=>(t.getEditorState().read(()=>u()),V.mergeRegister(t.registerUpdateListener(({editorState:m})=>m.read(()=>u())),t.registerCommand(C.SELECTION_CHANGE_COMMAND,()=>(u(),!1),C.COMMAND_PRIORITY_LOW))),[t,u]);const f=[r&&"bold",i&&"italic",o&&"underline",l&&"code",s&&"strikethrough",a&&"subscript",c&&"superscript",n&&"link"],h=u_();return p.jsxs(Za,{ref:g,className:h.toolbar,style:{transition:"opacity 0.5s"},checkedValues:{opts:f},children:[p.jsx(Le,{name:"opts",value:"bold",appearance:"subtle","aria-label":"Format text as bold",icon:p.jsx(qa,{}),onClick:()=>t.dispatchCommand(C.FORMAT_TEXT_COMMAND,"bold")}),p.jsx(Le,{name:"opts",value:"italic",appearance:"subtle","aria-label":"Format text as italics",icon:p.jsx(Qa,{}),onClick:()=>t.dispatchCommand(C.FORMAT_TEXT_COMMAND,"italic")}),p.jsx(Le,{name:"opts",value:"underline",appearance:"subtle","aria-label":"Format text to underlined",icon:p.jsx(eu,{}),onClick:()=>t.dispatchCommand(C.FORMAT_TEXT_COMMAND,"underline")}),p.jsx(Le,{name:"opts",value:"strikethrough",appearance:"subtle","aria-label":"Format text with a strikethrough",icon:p.jsx(tu,{}),onClick:()=>t.dispatchCommand(C.FORMAT_TEXT_COMMAND,"strikethrough")}),p.jsx(Le,{name:"opts",value:"subscript",appearance:"subtle","aria-label":"Format Subscript",icon:p.jsx(nu,{}),onClick:()=>t.dispatchCommand(C.FORMAT_TEXT_COMMAND,"subscript")}),p.jsx(Le,{name:"opts",value:"superscript",appearance:"subtle","aria-label":"Format Superscript",icon:p.jsx(ru,{}),onClick:()=>t.dispatchCommand(C.FORMAT_TEXT_COMMAND,"superscript")}),p.jsx(Le,{name:"opts",value:"code",appearance:"subtle","aria-label":"Insert code block",icon:p.jsx(Ti,{}),onClick:()=>t.dispatchCommand(C.FORMAT_TEXT_COMMAND,"code")}),p.jsx(Le,{name:"opts",value:"link",appearance:"subtle","aria-label":"Insert link",icon:p.jsx(iu,{}),onClick:d})]})}const u_=it({toolbar:{...cu,...P.padding("4px"),verticalAlign:"middle",position:"absolute",top:0,left:0,opacity:0,height:"35px",willChange:"transform"}});function c_({editor:t,anchor:e}){const[n,r]=$.useState(!1),[i,o]=$.useState(!1),[l,s]=$.useState(!1),[a,c]=$.useState(!1),[g,d]=$.useState(!1),[u,f]=$.useState(!1),[h,m]=$.useState(!1),[N,y]=$.useState(!1),[_,x]=$.useState(!1),v=$.useCallback(()=>{t.getEditorState().read(()=>{if(t.isComposing())return;const S=C.$getSelection(),A=window.getSelection(),w=t.getRootElement();if(A&&(!C.$isRangeSelection(S)||!w||!w.contains(A.anchorNode))){r(!1);return}if(!C.$isRangeSelection(S))return;const B=so(S);s(S.hasFormat("bold")),c(S.hasFormat("italic")),d(S.hasFormat("underline")),f(S.hasFormat("strikethrough")),m(S.hasFormat("subscript")),y(S.hasFormat("superscript")),x(S.hasFormat("code"));const k=B.getParent();ce.$isLinkNode(k)||ce.$isLinkNode(B)?o(!0):o(!1),!he.$isCodeHighlightNode(S.anchor.getNode())&&S.getTextContent()?r(C.$isTextNode(B)):r(!1)})},[t]);return $.useEffect(()=>(document.addEventListener("selectionchange",v),()=>document.removeEventListener("selectionchange",v)),[v]),$.useEffect(()=>V.mergeRegister(t.registerUpdateListener(()=>v()),t.registerRootListener(()=>{t.getRootElement()||r(!1)})),[t,v]),!n||i?null:p.jsx(Wr,{mountNode:e,children:p.jsx(a_,{editor:t,anchor:e,isLink:i,isBold:l,isItalic:a,isStrikethrough:u,isSubscript:h,isSuperscript:N,isUnderline:g,isCode:_})})}function ka({anchor:t=document.body}){const[e]=X.useLexicalComposerContext();return p.jsx(c_,{editor:e,anchor:t})}function d_(){const[t]=X.useLexicalComposerContext();return $.useEffect(()=>t.registerCommand(jt.INSERT_HORIZONTAL_RULE_COMMAND,e=>{const n=C.$getSelection();if(!C.$isRangeSelection(n))return!1;if(n.focus.getNode()){const i=jt.$createHorizontalRuleNode();V.$insertNodeToNearestRoot(i)}return!0},C.COMMAND_PRIORITY_EDITOR),[t]),null}const Vl=C.createCommand("INSERT_IMAGE_COMMAND");function g_({editor:t}){const[e,n]=$.useState("https://source.unsplash.com/random"),[r,i]=$.useState(du.Name);return p.jsxs(ou,{children:[p.jsx(lu,{children:"Insert Image"}),p.jsxs(su,{children:[p.jsx(Or,{label:"Source",required:!0,children:p.jsx(Gn,{placeholder:e,onChange:(o,l)=>n(l.value||"")})}),p.jsx(Or,{label:"Alt Text",required:!0,children:p.jsx(Gn,{placeholder:r,onChange:(o,l)=>i(l.value||"")})})]}),p.jsx(au,{children:p.jsx(yi,{disableButtonEnhancement:!0,children:p.jsx(Un,{onClick:()=>{t.dispatchCommand(Vl,{altText:r,src:e})},children:"Confirm"})})})]})}function Ia({captionsEnabled:t}){const[e]=X.useLexicalComposerContext();return $.useEffect(()=>{if(!e.hasNodes([Ut]))throw new Error("ImagesPlugin: ImageNode not registered on editor");return V.mergeRegister(e.registerCommand(Vl,n=>{const r=ro(n);return C.$insertNodes([r]),C.$isRootOrShadowRoot(r.getParentOrThrow())&&V.$wrapNodeInElement(r,C.$createParagraphNode).selectEnd(),!0},C.COMMAND_PRIORITY_EDITOR),e.registerCommand(C.DRAGSTART_COMMAND,n=>h_(n),C.COMMAND_PRIORITY_HIGH),e.registerCommand(C.DRAGOVER_COMMAND,n=>p_(n),C.COMMAND_PRIORITY_LOW),e.registerCommand(C.DROP_COMMAND,n=>m_(n,e),C.COMMAND_PRIORITY_HIGH))},[t,e]),null}const f_="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",sg=document.createElement("img");sg.src=f_;function h_(t){const e=Xl();if(!e)return!1;const n=t.dataTransfer;return n?(n.setData("text/plain","_"),n.setDragImage(sg,0,0),n.setData("application/x-lexical-drag",JSON.stringify({data:{altText:e.altText,caption:e.caption,height:e.height,key:e.getKey(),maxWidth:e.maxWidth,showCaption:e.showCaption,src:e.src,width:e.width},type:"image"})),!0):!1}function p_(t){return Xl()?(ag(t)||t.preventDefault(),!0):!1}function m_(t,e){const n=Xl();if(!n)return!1;const r=__(t);if(!r)return!1;if(t.preventDefault(),ag(t)){const i=C_(t);n.remove();const o=C.$createRangeSelection();i&&o.applyDOMRange(i),C.$setSelection(o),e.dispatchCommand(Vl,r)}return!0}function Xl(){const t=C.$getSelection();if(!C.$isNodeSelection(t))return null;const n=t.getNodes()[0];return Nd(n)?n:null}function __(t){const e=t.dataTransfer?.getData("application/x-lexical-drag");if(!e)return null;const{type:n,data:r}=JSON.parse(e);return n!=="image"?null:r}function ag(t){const e=t.target;return!!(e&&e instanceof HTMLElement&&!e.closest("code, span.LexEditor_Image")&&e.parentElement&&e.parentElement.closest("div.LexEditor_Content"))}function C_(t){let e;const n=window.getSelection();if(document.caretRangeFromPoint)e=document.caretRangeFromPoint(t.clientX,t.clientY);else if(t.rangeParent&&n)n.collapse(t.rangeParent,t.rangeOffset||0),e=n.getRangeAt(0);else throw Error("Cannot get the selection when dragging");return e}var ug={},wn=ce,x_=X,N_=V,Dn=C,E_=$;ug.LinkPlugin=function({validateUrl:t}){let[e]=x_.useLexicalComposerContext();return E_.useEffect(()=>{if(!e.hasNodes([wn.LinkNode]))throw Error("LinkPlugin: LinkNode not registered on editor");return N_.mergeRegister(e.registerCommand(wn.TOGGLE_LINK_COMMAND,n=>{if(n===null)return wn.toggleLink(n),!0;if(typeof n=="string")return t===void 0||t(n)?(wn.toggleLink(n),!0):!1;let{url:r,target:i,rel:o,title:l}=n;return wn.toggleLink(r,{rel:o,target:i,title:l}),!0},Dn.COMMAND_PRIORITY_LOW),t!==void 0?e.registerCommand(Dn.PASTE_COMMAND,n=>{let r=Dn.$getSelection();if(!Dn.$isRangeSelection(r)||r.isCollapsed()||!(n instanceof ClipboardEvent)||n.clipboardData==null)return!1;let i=n.clipboardData.getData("text");return t(i)?r.getNodes().some(o=>Dn.$isElementNode(o))?!1:(e.dispatchCommand(wn.TOGGLE_LINK_COMMAND,i),n.preventDefault(),!0):!1},Dn.COMMAND_PRIORITY_LOW):()=>{})},[e,t]),null};const T_=ug;var y_=T_;function Pa(){return p.jsx(y_.LinkPlugin,{validateUrl:n_})}function v_(t){const e=t.getNodes();return e.length===0?new Set([t.anchor.getNode().getParentOrThrow(),t.focus.getNode().getParentOrThrow()]):new Set(e.map(n=>C.$isElementNode(n)?n:n.getParentOrThrow()))}function S_(t){const e=C.$getSelection();if(!C.$isRangeSelection(e))return!1;const n=v_(e);let r=0;for(const i of n)if(fe.$isListNode(i))r=Math.max(fe.$getListDepth(i)+1,r);else if(fe.$isListItemNode(i)){const o=i.getParent();if(!fe.$isListNode(o))throw new Error("ListMaxIndentLevelPlugin: A ListItemNode must have a ListNode for a parent.");r=Math.max(fe.$getListDepth(o)+1,r)}return r<=t}function $_({maxDepth:t}){const[e]=X.useLexicalComposerContext();return $.useEffect(()=>e.registerCommand(C.INDENT_CONTENT_COMMAND,()=>!S_(t??7),C.COMMAND_PRIORITY_CRITICAL),[e,t]),null}var Zl={},cg=Kr,R_=X,Oo=jt,A_=$;let dg=[{dependencies:[Oo.HorizontalRuleNode],export:t=>Oo.$isHorizontalRuleNode(t)?"***":null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(t,e,n,r)=>{e=Oo.$createHorizontalRuleNode(),r||t.getNextSibling()!=null?t.replace(e):t.insertBefore(e),e.selectNext()},type:"element"},...cg.TRANSFORMERS];Zl.DEFAULT_TRANSFORMERS=dg;Zl.MarkdownShortcutPlugin=function({transformers:t=dg}){let[e]=R_.useLexicalComposerContext();return A_.useEffect(()=>cg.registerMarkdownShortcuts(e,t),[e,t]),null};const O_=Zl;var w_=O_;function D_(){return p.jsx(w_.MarkdownShortcutPlugin,{transformers:ol})}const L_=100;let gg=0,Fa=!1;function M_(){window.addEventListener("keydown",t=>{t.keyCode===9&&(gg=t.timeStamp)},!0)}function b_(){const[t]=X.useLexicalComposerContext();return $.useEffect(()=>(Fa||(M_(),Fa=!0),t.registerCommand(C.FOCUS_COMMAND,e=>{const n=C.$getSelection();return C.$isRangeSelection(n)&&gg+L_>e.timeStamp&&C.$setSelection(n.clone()),!1},C.COMMAND_PRIORITY_LOW)),[t]),null}function fg(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}const k_=new Map,yC=new Map,hg='{"root":{"children":[{"children":[],"direction":null,"format":"","indent":0,"type":"paragraph","version":1}],"direction":null,"format":"","indent":0,"type":"root","version":1}}';function I_(t){return t?`{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":${t},"type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}`:hg}function Pn(t){return{colSpan:1,id:fg(),json:hg,type:t,width:null}}function Hi(){return{cells:[],height:null,id:fg()}}function P_(t){const e=t.querySelectorAll("tr");if(!e||e.length===0)return null;const n=[];for(let r=0;r({conversion:P_,priority:0})}}exportDOM(){return{element:F_(this.rows)}}createDOM(){const e=document.createElement("div");return e.style.display="contents",e}updateDOM(){return!1}mergeRows(e,n,r){const o=this.getWritable().rows,l=Math.min(o.length,n+r.length);for(let s=n;sJa(()=>import("./Component-yD7WLU4o.js"),__vite__mapDeps([5,1,2,3,4])));function j_(t,e,...n){if(!t)throw new Error("Internal Lexical error: invariant() is meant to be replaced at compile time. There is no runtime version. Error: "+e)}const mg=C.createCommand("INSERT_NEW_TABLE_COMMAND"),_g=$.createContext({cellEditorConfig:null,cellEditorPlugins:null,set:()=>{}});function z_({children:t}){const[e,n]=$.useState({cellEditorConfig:null,cellEditorPlugins:null});return p.jsx(_g.Provider,{value:$.useMemo(()=>({cellEditorConfig:e.cellEditorConfig,cellEditorPlugins:e.cellEditorPlugins,set:(r,i)=>n({cellEditorConfig:r,cellEditorPlugins:i})}),[e.cellEditorConfig,e.cellEditorPlugins]),children:t})}function K_({editor:t}){const[e,n]=$.useState("5"),[r,i]=$.useState("5");return p.jsxs(ou,{children:[p.jsx(lu,{children:"Insert Table"}),p.jsxs(su,{children:[p.jsx(Or,{label:"Rows",required:!0,children:p.jsx(Gn,{placeholder:e,onChange:(o,l)=>l&&n(l.value)})}),p.jsx(Or,{label:"Cols",required:!0,children:p.jsx(Gn,{placeholder:r,onChange:(o,l)=>l&&i(l.value)})})]}),p.jsx(au,{children:p.jsx(yi,{disableButtonEnhancement:!0,children:p.jsx(Un,{onClick:()=>{t.dispatchCommand(mg,{columns:r,rows:e})},children:"Confirm"})})})]})}function H_(t,e,n=!0){const r=[];for(let i=0;i(n.hasNodes([rr])||j_(!1,"TablePlugin: TableNode is not registered on editor"),r.set(t,e),n.registerCommand(mg,({columns:i,rows:o,includeHeaders:l})=>{const s=C.$getSelection();if(!C.$isRangeSelection(s))return!0;const a=s.focus,c=a.getNode();if(c){const g=H_(Number(o),Number(i),l);if(C.$isRootOrShadowRoot(c)){const u=c.getChildAtIndex(a.offset);u?u.insertBefore(g):c.append(g),g.insertBefore(C.$createParagraphNode())}else c.getTopLevelElementOrThrow().insertAfter(g);g.insertAfter(C.$createParagraphNode());const d=C.$createNodeSelection();d.add(g.getKey()),C.$setSelection(d)}return!0},C.COMMAND_PRIORITY_EDITOR)),[r,t,e,n]),null}var ql={},U_=C;class Cg extends U_.DecoratorNode{constructor(e,n){super(n),this.__format=e||""}exportJSON(){return{format:this.__format||"",type:"decorator-block",version:1}}createDOM(){return document.createElement("div")}updateDOM(){return!1}setFormat(e){this.getWritable().__format=e}}ql.$isDecoratorBlockNode=function(t){return t instanceof Cg};ql.DecoratorBlockNode=Cg;const G_=ql;var Y_=G_;const J_="documentMode"in document?document.documentMode:null,kt=/Mac|iPod|iPhone|iPad/.test(navigator.platform);"InputEvent"in window&&!J_&&"getTargetRanges"in new window.InputEvent("input");const al={bullet:"Bulleted List",check:"Check List",code:"Code Block",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",h5:"Heading 5",h6:"Heading 6",number:"Numbered List",paragraph:"Normal",quote:"Quote"};function V_({editor:t,blockType:e,disabled:n=!1}){function r(){e!=="paragraph"&&t.update(()=>{const g=C.$getSelection();(C.$isRangeSelection(g)||C.DEPRECATED_$isGridSelection(g))&&Se.$setBlocksType(g,()=>C.$createParagraphNode())})}function i(g){e!==g&&t.update(()=>{const d=C.$getSelection();(C.$isRangeSelection(d)||C.DEPRECATED_$isGridSelection(d))&&Se.$setBlocksType(d,()=>rt.$createHeadingNode(g))})}function o(){e!=="bullet"?t.dispatchCommand(fe.INSERT_UNORDERED_LIST_COMMAND,void 0):t.dispatchCommand(fe.REMOVE_LIST_COMMAND,void 0)}function l(){e!=="check"?t.dispatchCommand(fe.INSERT_CHECK_LIST_COMMAND,void 0):t.dispatchCommand(fe.REMOVE_LIST_COMMAND,void 0)}function s(){e!=="number"?t.dispatchCommand(fe.INSERT_ORDERED_LIST_COMMAND,void 0):t.dispatchCommand(fe.REMOVE_LIST_COMMAND,void 0)}function a(){e!=="quote"&&t.update(()=>{const g=C.$getSelection();(C.$isRangeSelection(g)||C.DEPRECATED_$isGridSelection(g))&&Se.$setBlocksType(g,()=>rt.$createQuoteNode())})}function c(){e!=="code"&&t.update(()=>{const g=C.$getSelection();if(C.$isRangeSelection(g)||C.DEPRECATED_$isGridSelection(g))if(g.isCollapsed())Se.$setBlocksType(g,()=>he.$createCodeNode());else{const d=g.getTextContent(),u=he.$createCodeNode();g.insertNodes([u]),g.insertRawText(d)}})}return p.jsxs(pr,{children:[p.jsx(mr,{children:p.jsx(yt,{disabled:n,"aria-label":"Formatting options for text style",children:al[e],icon:(()=>{switch(e){case"paragraph":return p.jsx(cs,{});case"h1":return p.jsx(us,{});case"h2":return p.jsx(as,{});case"h3":return p.jsx(ss,{});case"bullet":return p.jsx(ls,{});case"check":return p.jsx(os,{});case"number":return p.jsx(is,{});case"quote":return p.jsx(rs,{});case"code":return p.jsx(Ti,{});default:return p.jsx(bg,{})}})()})}),p.jsx(_r,{children:p.jsxs(Cr,{children:[p.jsx(ue,{icon:p.jsx(cs,{}),onClick:r,children:"Normal"}),p.jsx(ue,{icon:p.jsx(us,{}),onClick:()=>i("h1"),children:"Heading 1"}),p.jsx(ue,{icon:p.jsx(as,{}),onClick:()=>i("h2"),children:"Heading 2"}),p.jsx(ue,{icon:p.jsx(ss,{}),onClick:()=>i("h3"),children:"Heading 3"}),p.jsx(ue,{icon:p.jsx(ls,{}),onClick:o,children:"Bullet List"}),p.jsx(ue,{icon:p.jsx(is,{}),onClick:s,children:"Numbered List"}),p.jsx(ue,{icon:p.jsx(os,{}),onClick:l,children:"Check List"}),p.jsx(ue,{icon:p.jsx(rs,{}),onClick:a,children:"Quote"}),p.jsx(ue,{icon:p.jsx(Ti,{}),onClick:c,children:"Code Block"})]})})]})}const X_=["#d0021b","#f5a623","#f8e71c","#8b572a","#7ed321","#417505","#bd10e0","#9013fe","#4a90e2","#50e3c2","#b8e986","#000000","#4a4a4a","#9b9b9b","#ffffff"],cr=214,Ba=150;function Z_({color:t,onChange:e}){const[n,r]=$.useState(Ln("hex",t)),[i,o]=$.useState(t),l=$.useRef(null),s=$.useMemo(()=>({x:n.hsv.s/100*cr,y:(100-n.hsv.v)/100*Ba}),[n.hsv.s,n.hsv.v]),a=$.useMemo(()=>({x:n.hsv.h/360*cr}),[n.hsv]);function c(u){if(o(u),/^#[0-9A-Fa-f]{6}$/i.test(u)){const f=Ln("hex",u);r(f)}}function g({x:u,y:f}){const h={...n.hsv,s:u/cr*100,v:100-f/Ba*100},m=Ln("hsv",h);r(m),o(m.hex)}function d({x:u}){const f={...n.hsv,h:u/cr*360},h=Ln("hsv",f);r(h),o(h.hex)}return $.useEffect(()=>{l.current!==null&&e&&(e(n.hex),o(n.hex))},[n,e]),$.useEffect(()=>{if(t===void 0)return;const u=Ln("hex",t);r(u),o(u.hex)},[t]),p.jsxs("div",{style:{width:cr},ref:l,children:[p.jsx(Or,{label:"Hex",style:{paddingBottom:an.spacingVerticalS},children:p.jsx(Gn,{onChange:(u,f)=>c(f.value),value:i})}),p.jsx("div",{className:"color-picker-basic-color",children:X_.map(u=>p.jsx("button",{className:u===n.hex?" active":"",style:{backgroundColor:u},onClick:()=>{o(u),r(Ln("hex",u))}},u))}),p.jsx(ja,{className:"color-picker-saturation",style:{backgroundColor:`hsl(${n.hsv.h}, 100%, 50%)`},onChange:g,children:p.jsx("div",{className:"color-picker-saturation_cursor",style:{backgroundColor:n.hex,left:s.x,top:s.y}})}),p.jsx(ja,{className:"color-picker-hue",onChange:d,children:p.jsx("div",{className:"color-picker-hue_cursor",style:{backgroundColor:`hsl(${n.hsv.h}, 100%, 50%)`,left:a.x}})}),p.jsx("div",{className:"color-picker-color",style:{backgroundColor:n.hex}})]})}function ja({className:t,style:e,onChange:n,children:r}){const i=$.useRef(null),o=s=>{if(i.current){const{current:a}=i,{width:c,height:g,left:d,top:u}=a.getBoundingClientRect(),f=za(s.clientX-d,c,0),h=za(s.clientY-u,g,0);n({x:f,y:h})}};function l(s){if(s.button!==0)return;o(s);function a(g){o(g)}function c(g){document.removeEventListener("mousemove",a,!1),document.removeEventListener("mouseup",c,!1),o(g)}document.addEventListener("mousemove",a,!1),document.addEventListener("mouseup",c,!1)}return p.jsx("div",{ref:i,className:t,style:e,onMouseDown:l,children:r})}function za(t,e,n){return t>e?e:tn?e+e:"#").join(""),t;if(t.length===7||t.length===9)return t}else{const e=document.createElement("canvas").getContext("2d");if(!e)throw new Error("2d context not supported or canvas already initialized");return e.fillStyle=t,e.fillStyle}return"#000000"}function Ha(t){const e=(t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(n,r,i,o)=>"#"+r+r+i+i+o+o).substring(1).match(/.{2}/g)||[]).map(n=>parseInt(n,16));return{b:e[2],g:e[1],r:e[0]}}function wo({r:t,g:e,b:n}){t/=255,e/=255,n/=255;const r=Math.max(t,e,n),i=r-Math.min(t,e,n),o=i?(r===t?(e-n)/i+(er.toString(16).padStart(2,"0")).join("")}function Ln(t,e){let n=Ka("#121212"),r=Ha(n),i=wo(r);return t==="hex"?(n=Ka(e),r=Ha(n),i=wo(r)):t==="rgb"?(r=e,n=Wa(r),i=wo(r)):t==="hsv"&&(i=e,r=q_(i),n=Wa(r)),{hex:n,hsv:i,rgb:r}}function Ua({disabled:t,ariaLabel:e,color:n,onChange:r,icon:i}){return p.jsxs(kg,{trapFocus:!0,withArrow:!0,children:[p.jsx(Ig,{children:p.jsx(yt,{disabled:t,icon:i,title:e,"aria-label":e})}),p.jsx(Pg,{children:p.jsx(Z_,{color:n,onChange:r})})]})}const Q_=[["Arial","Arial"],["Courier New","Courier New"],["Georgia","Georgia"],["Times New Roman","Times New Roman"],["Trebuchet MS","Trebuchet MS"],["Verdana","Verdana"]],eC=[["10px","10px"],["11px","11px"],["12px","12px"],["13px","13px"],["14px","14px"],["15px","15px"],["16px","16px"],["17px","17px"],["18px","18px"],["19px","19px"],["20px","20px"]];function Ga({editor:t,value:e,style:n,disabled:r=!1}){const i=$.useCallback(l=>{t.update(()=>{const s=C.$getSelection();C.$isRangeSelection(s)&&Se.$patchStyleText(s,{[n]:l})})},[t,n]),o=n==="font-family"?"Formatting options for font family":"Formatting options for font size";return p.jsxs(pr,{children:[p.jsx(mr,{children:p.jsx(yt,{disabled:r,"aria-label":o,icon:n==="font-family"?p.jsx(Fg,{}):p.jsx(Bg,{}),children:e})}),p.jsx(_r,{children:p.jsx(Cr,{children:(n==="font-family"?Q_:eC).map(([l,s],a)=>p.jsx(ue,{children:s,onClick:()=>i(l)},a))})})]})}const tC=it({box:{columnGap:"1px",backgroundColor:"#fff",borderTopLeftRadius:an.borderRadiusLarge,borderTopRightRadius:an.borderRadiusLarge}}),nC=(()=>{const t=[];for(const[e,n]of Object.entries(he.CODE_LANGUAGE_FRIENDLY_NAME_MAP))t.push([e,n]);return t})();function rC(){const[t]=X.useLexicalComposerContext(),[e,n]=$.useState(t),[r,i]=$.useState("paragraph"),[o,l]=$.useState(null),[s,a]=$.useState("15px"),[c,g]=$.useState("#000"),[d,u]=$.useState("#fff"),[f,h]=$.useState("Arial"),[m,N]=$.useState(!1),[y,_]=$.useState(!1),[x,v]=$.useState(!1),[S,A]=$.useState(""),[w,B]=$.useState(()=>t.isEditable()),[k,K]=$.useState([]),Z=$.useCallback(()=>{const I=C.$getSelection();if(C.$isRangeSelection(I)){const G=I.anchor.getNode();let de=G.getKey()==="root"?G:V.$findMatchingParent(G,De=>{const Te=De.getParent();return!!Te&&C.$isRootOrShadowRoot(Te)});de||(de=G.getTopLevelElementOrThrow());const ge=de.getKey(),Dt=e.getElementByKey(ge),oe=[];I.hasFormat("bold")&&oe.push("bold"),I.hasFormat("italic")&&oe.push("italic"),I.hasFormat("underline")&&oe.push("underline"),I.hasFormat("strikethrough")&&oe.push("strikethrough"),I.hasFormat("subscript")&&oe.push("subscript"),I.hasFormat("superscript")&&oe.push("superscript"),I.hasFormat("code")&&oe.push("code");const lt=so(I),st=lt.getParent();if(ce.$isLinkNode(st)||ce.$isLinkNode(lt)?(oe.push("link"),N(!0)):N(!1),K(oe),Dt)if(l(ge),fe.$isListNode(de)){const De=V.$getNearestNodeOfType(G,fe.ListNode),Te=De?De.getListType():de.getListType();i(Te)}else{const De=rt.$isHeadingNode(de)?de.getTag():de.getType();if(De in al&&i(De),he.$isCodeNode(de)){const Te=de.getLanguage();A(Te?he.CODE_LANGUAGE_MAP[Te]||Te:"");return}}a(Se.$getSelectionStyleValueForProperty(I,"font-size","15px")),g(Se.$getSelectionStyleValueForProperty(I,"color","#000")),u(Se.$getSelectionStyleValueForProperty(I,"background-color","#fff")),h(Se.$getSelectionStyleValueForProperty(I,"font-family","Arial"))}},[e]);$.useEffect(()=>t.registerCommand(C.SELECTION_CHANGE_COMMAND,(I,G)=>(Z(),n(G),!1),C.COMMAND_PRIORITY_CRITICAL),[t,Z]),$.useEffect(()=>V.mergeRegister(t.registerEditableListener(I=>B(I)),e.registerUpdateListener(({editorState:I})=>I.read(()=>Z())),e.registerCommand(C.CAN_UNDO_COMMAND,I=>(_(I),!1),C.COMMAND_PRIORITY_CRITICAL),e.registerCommand(C.CAN_REDO_COMMAND,I=>(v(I),!1),C.COMMAND_PRIORITY_CRITICAL)),[e,t,Z]);const ie=$.useCallback(I=>{e.update(()=>{const G=C.$getSelection();C.$isRangeSelection(G)&&Se.$patchStyleText(G,I)})},[e]),ot=$.useCallback(()=>{e.update(()=>{const I=C.$getSelection();C.$isRangeSelection(I)&&(Se.$selectAll(I),I.getNodes().forEach(G=>{C.$isTextNode(G)&&(G.setFormat(0),G.setStyle(""),V.$getNearestBlockElementAncestorOrThrow(G).setFormat("")),Y_.$isDecoratorBlockNode(G)&&G.setFormat("")}))})},[e]),Tn=$.useCallback(I=>ie({color:I}),[ie]),yn=$.useCallback(I=>ie({"background-color":I}),[ie]),vn=$.useCallback(()=>{m?t.dispatchCommand(ce.TOGGLE_LINK_COMMAND,null):t.dispatchCommand(ce.TOGGLE_LINK_COMMAND,lg("https://"))},[t,m]),xt=$.useCallback(I=>{e.update(()=>{if(o!==null){const G=C.$getNodeByKey(o);he.$isCodeNode(G)&&G.setLanguage(I)}})},[e,o]),ae=tC();return p.jsxs(Za,{checkedValues:{opts:k},className:gt("LexEditor_Toolbar",ae.box),children:[p.jsx(yt,{disabled:!y||!w,title:kt?"Undo (⌘Z)":"Undo (Ctrl+Z)","aria-label":"Undo",icon:p.jsx(jg,{}),onClick:()=>e.dispatchCommand(C.UNDO_COMMAND,void 0)}),p.jsx(yt,{disabled:!x||!w,title:kt?"Redo (⌘Y)":"Redo (Ctrl+Y)","aria-label":"Redo",icon:p.jsx(zg,{}),onClick:()=>e.dispatchCommand(C.REDO_COMMAND,void 0)}),p.jsx(sr,{}),r in al&&e===t&&p.jsxs(p.Fragment,{children:[p.jsx(V_,{disabled:!w,blockType:r,editor:t}),p.jsx(sr,{})]}),r==="code"?p.jsxs(pr,{children:[p.jsx(mr,{children:p.jsx(yt,{disabled:!w,title:"Select language","aria-label":"Select language",icon:p.jsx(Kg,{}),children:he.getLanguageFriendlyName(S)})}),p.jsx(_r,{children:p.jsx(Cr,{children:nC.map(([I,G],de)=>p.jsx(ue,{onClick:()=>xt(I),children:G},de))})})]}):p.jsxs(p.Fragment,{children:[p.jsx(Ga,{disabled:!w,style:"font-family",value:f,editor:t}),p.jsx(Ga,{disabled:!w,style:"font-size",value:s,editor:t}),p.jsx(sr,{}),p.jsx(Le,{name:"opts",value:"bold",appearance:"subtle",disabled:!w,title:kt?"Bold (⌘B)":"Bold (Ctrl+B)","aria-label":`Format text as bold. Shortcut: ${kt?"⌘B":"Ctrl+B"}`,icon:p.jsx(qa,{}),onClick:()=>e.dispatchCommand(C.FORMAT_TEXT_COMMAND,"bold")}),p.jsx(Le,{name:"opts",value:"italic",appearance:"subtle",disabled:!w,title:kt?"Italic (⌘I)":"Italic (Ctrl+I)","aria-label":`Format text as italics. Shortcut: ${kt?"⌘I":"Ctrl+I"}`,icon:p.jsx(Qa,{}),onClick:()=>e.dispatchCommand(C.FORMAT_TEXT_COMMAND,"italic")}),p.jsx(Le,{name:"opts",value:"underline",appearance:"subtle",disabled:!w,title:kt?"Underline (⌘U)":"Underline (Ctrl+U)","aria-label":`Format text to underlined. Shortcut: ${kt?"⌘U":"Ctrl+U"}`,icon:p.jsx(eu,{}),onClick:()=>e.dispatchCommand(C.FORMAT_TEXT_COMMAND,"underline")}),p.jsx(Le,{name:"opts",value:"strikethrough",appearance:"subtle",disabled:!w,title:"Strikethrough","aria-label":"Format text with a strikethrough",icon:p.jsx(tu,{}),onClick:()=>e.dispatchCommand(C.FORMAT_TEXT_COMMAND,"strikethrough")}),p.jsx(Le,{name:"opts",value:"subscript",appearance:"subtle",disabled:!w,title:"Subscript","aria-label":"Format text with a subscript",icon:p.jsx(nu,{}),onClick:()=>e.dispatchCommand(C.FORMAT_TEXT_COMMAND,"subscript")}),p.jsx(Le,{name:"opts",value:"superscript",appearance:"subtle",disabled:!w,title:"Superscript","aria-label":"Format text with a superscript",icon:p.jsx(ru,{}),onClick:()=>e.dispatchCommand(C.FORMAT_TEXT_COMMAND,"superscript")}),p.jsx(Le,{name:"opts",value:"code",appearance:"subtle",disabled:!w,title:"Insert code block","aria-label":"Insert code block",icon:p.jsx(Ti,{}),onClick:()=>e.dispatchCommand(C.FORMAT_TEXT_COMMAND,"code")}),p.jsx(Le,{name:"opts",value:"link",appearance:"subtle",disabled:!w,title:"Insert link","aria-label":"Insert link",icon:p.jsx(iu,{}),onClick:vn}),p.jsx(Ua,{disabled:!w,ariaLabel:"Formatting text color",color:c,icon:p.jsx(Hg,{}),onChange:Tn}),p.jsx(Ua,{disabled:!w,ariaLabel:"Formatting background color",color:d,icon:p.jsx(Wg,{}),onChange:yn}),p.jsx(yt,{disabled:!w,title:"Clear text formatting","aria-label":"Clear all text formatting",icon:p.jsx(Ug,{}),onClick:ot}),p.jsx(sr,{}),p.jsxs(pr,{children:[p.jsx(mr,{children:p.jsx(yt,{disabled:!w,title:"Insert","aria-label":"Insert specialized editor node",icon:p.jsx(Gg,{}),children:"Insert"})}),p.jsx(_r,{children:p.jsxs(Cr,{children:[p.jsx(ue,{icon:p.jsx(Yg,{}),onClick:()=>e.dispatchCommand(jt.INSERT_HORIZONTAL_RULE_COMMAND,void 0),children:"Horizontal Rule"}),p.jsxs(ds,{children:[p.jsx(yi,{disableButtonEnhancement:!0,children:p.jsx(ue,{icon:p.jsx(Jg,{}),children:"Image"})}),p.jsx(gs,{children:p.jsx(g_,{editor:e})})]}),p.jsxs(ds,{children:[p.jsx(yi,{disableButtonEnhancement:!0,children:p.jsx(ue,{icon:p.jsx(Vg,{}),children:"Table"})}),p.jsx(gs,{children:p.jsx(K_,{editor:e})})]}),p.jsx(ue,{icon:p.jsx(Xg,{}),onClick:()=>t.dispatchCommand(ig,void 0),children:"Collapsible"})]})})]})]}),p.jsx(sr,{}),p.jsxs(pr,{children:[p.jsx(mr,{children:p.jsx(yt,{disabled:!w,title:"Align","aria-label":"Formatting options for text alignment",icon:p.jsx(fs,{}),children:"Align"})}),p.jsx(_r,{children:p.jsxs(Cr,{children:[p.jsx(ue,{icon:p.jsx(fs,{}),onClick:()=>e.dispatchCommand(C.FORMAT_ELEMENT_COMMAND,"left"),children:"Left Align"}),p.jsx(ue,{icon:p.jsx(Zg,{}),onClick:()=>e.dispatchCommand(C.FORMAT_ELEMENT_COMMAND,"center"),children:"Center Align"}),p.jsx(ue,{icon:p.jsx(qg,{}),onClick:()=>e.dispatchCommand(C.FORMAT_ELEMENT_COMMAND,"right"),children:"Right Align"}),p.jsx(ue,{icon:p.jsx(Qg,{}),onClick:()=>e.dispatchCommand(C.FORMAT_ELEMENT_COMMAND,"justify"),children:"Justify Align"}),p.jsx(ef,{}),p.jsx(ue,{icon:p.jsx(tf,{}),onClick:()=>e.dispatchCommand(C.OUTDENT_CONTENT_COMMAND,void 0),children:"Outdent"}),p.jsx(ue,{icon:p.jsx(nf,{}),onClick:()=>e.dispatchCommand(C.INDENT_CONTENT_COMMAND,void 0),children:"Indent"})]})})]})]})}const iC=it({ltr:{textAlign:"left"},rtl:{textAlign:"right"},paragraph:{...P.margin(0),position:"relative"},quote:{...P.margin(0),marginLeft:"20px",marginBottom:"10px",fontSize:"15px",color:"rgb(101, 103, 107)",borderLeftColor:"rgb(206, 208, 212)",borderLeftWidth:"4px",borderLeftStyle:"solid",paddingLeft:"16px"},h1:{fontSize:"24px",color:"rgb(5, 5, 5)",fontWeight:400,...P.margin(0)},h2:{fontSize:"15px",color:"rgb(101, 103, 107)",fontWeight:700,...P.margin(0),textTransform:"uppercase"},h3:{fontSize:"12px",...P.margin(0),textTransform:"uppercase"},textBold:{fontWeight:"bold"},textItalic:{fontStyle:"italic"},textSubscript:{fontSize:"0.8em",verticalAlign:"sub !important"},textSuperscript:{fontSize:"0.8em",verticalAlign:"super"},textCode:{backgroundColor:"rgb(240, 242, 245)",...P.padding("1px","0.25rem"),fontFamily:"Menlo, Consolas, Monaco, monospace",fontSize:"94%"},code:{backgroundColor:"rgb(240, 242, 245)",fontFamily:"Menlo, Consolas, Monaco, monospace",display:"block",...P.padding("8px","8px","8px","52px"),lineHeight:1.53,fontSize:"13px",...P.margin(0),marginTop:"8px",marginBottom:"8px",tabSize:2,overflowX:"auto",position:"relative",":before":{content:"attr(data-gutter)",position:"absolute",backgroundColor:"#eee",left:0,top:0,...P.borderRight("1px","solid","#ccc"),...P.padding("8px"),color:"#777",whiteSpace:"pre-wrap",textAlign:"right",minWidth:"25px"}},table:{borderCollapse:"collapse",borderSpacing:0,maxWidth:"100%",overflowY:"scroll",tableLayout:"fixed",width:"calc(100% - 25px)",...P.margin("30px",0)},tableSelected:{...P.outline("2px","solid","rgb(60, 132, 244)")},tableCell:{...P.border("1px","solid","#bbb"),minWidth:"75px",verticalAlign:"top",textAlign:"start",...P.padding("6px","8px"),position:"relative",cursor:"default",...P.outline("none")},tableCellSortedIndicator:{display:"block",opacity:.5,position:"absolute",bottom:0,left:0,width:"100%",height:"4px",backgroundColor:"#999"},tableCellResizer:{position:"absolute",right:"-4px",height:"100%",width:"8px",cursor:"ew-resize",zIndex:10,top:0},tableCellHeader:{backgroundColor:"#f2f3f5",textAlign:"start"},tableCellSelected:{backgroundColor:"#c9dbf0"},tableCellPrimarySelected:{...P.border("2px","solid","rgb(60, 132, 244)"),display:"block",height:"calc(100% - 2px)",position:"absolute",width:"calc(100% - 2px)",left:"-1px",top:"-1px",zIndex:2},tableCellEditing:{boxShadow:"0 0 5px rgba(0, 0, 0, 0.4)",...P.borderRadius("3px")},tableAddColumns:{position:"absolute",top:0,width:"20px",backgroundColor:"#eee",height:"100%",right:0,...P.border(0),cursor:"pointer",":after":{backgroundSize:"contain",backgroundRepeat:"no-repeat",display:"block",content:'" "',position:"absolute",top:0,left:0,width:"100%",height:"100%",opacity:.4},":hover":{backgroundColor:"#c9dbf0"}},tableAddRows:{position:"absolute",bottom:"-25px",width:"calc(100% - 25px)",backgroundColor:"#eee",height:"20px",left:0,...P.border(0),cursor:"pointer",":after":{backgroundSize:"contain",backgroundRepeat:"no-repeat",display:"block",content:'" "',position:"absolute",top:0,left:0,width:"100%",height:"100%",opacity:.4},":hover":{backgroundColor:"#c9dbf0"}},tableCellResizeRuler:{display:"block",position:"absolute",width:"1px",backgroundColor:"rgb(60, 132, 244)",height:"100%",top:0},tableCellActionButtonContainer:{display:"block",right:"5px",top:"2px",position:"absolute",zIndex:4},tableCellActionButton:{backgroundColor:"#eee",display:"block",...P.border(0),...P.borderRadius("20px"),width:"20px",height:"20px",color:"#222",cursor:"pointer",":hover":{backgroundColor:"#ddd"}},ol1:{...P.padding(0),...P.margin(0),marginLeft:"16px",listStylePosition:"inside"},ol2:{...P.padding(0),...P.margin(0),marginLeft:"16px",listStyleType:"upper-alpha",listStylePosition:"inside"},ol3:{...P.padding(0),...P.margin(0),marginLeft:"16px",listStyleType:"lower-alpha",listStylePosition:"inside"},ol4:{...P.padding(0),...P.margin(0),marginLeft:"16px",listStyleType:"upper-roman",listStylePosition:"inside"},ol5:{...P.padding(0),...P.margin(0),marginLeft:"16px",listStyleType:"lower-roman",listStylePosition:"inside"},ul:{...P.padding(0),...P.margin(0),marginLeft:"16px",listStylePosition:"inside"},listItem:{...P.margin(0,"8px")},tokenComment:{color:"slategray"},tokenPunctuation:{color:"#999"},tokenProperty:{color:"#905"},tokenSelector:{color:"#690"},tokenOperator:{color:"#9a6e3a"},tokenAttr:{color:"#07a"},tokenVariable:{color:"#e90"},tokenFunction:{color:"#dd4a68"},embedBlock:{userSelect:"none"},embedBlockFocus:{...P.outline("2px solid rgb(60, 132, 244)")}});function xg(){const t=iC();return{blockCursor:"LexEditor_blockCursor",code:gt(t.code,"LexEditor_code"),codeHighlight:{atrule:t.tokenAttr,attr:t.tokenAttr,boolean:t.tokenProperty,builtin:t.tokenSelector,cdata:t.tokenComment,char:t.tokenSelector,class:t.tokenFunction,"class-name":t.tokenFunction,comment:t.tokenComment,constant:t.tokenProperty,deleted:t.tokenProperty,doctype:t.tokenComment,entity:t.tokenOperator,function:t.tokenFunction,important:t.tokenVariable,inserted:t.tokenSelector,namespace:t.tokenVariable,number:t.tokenProperty,operator:t.tokenOperator,prolog:t.tokenComment,property:t.tokenProperty,punctuation:t.tokenPunctuation,regex:t.tokenVariable,selector:t.tokenSelector,string:t.tokenSelector,symbol:t.tokenProperty,tag:t.tokenProperty,url:t.tokenOperator,variable:t.tokenVariable},embedBlock:{base:t.embedBlock,focus:t.embedBlockFocus},heading:{h1:t.h1,h2:t.h2,h3:t.h3},image:"LexEditor_Image",link:"LexEditor_link",list:{listitem:t.listItem,listitemChecked:"LexEditor_listItemChecked",listitemUnchecked:"LexEditor_listItemUnchecked",nested:{listitem:"LexEditor_nestedListItem"},olDepth:[t.ol1,t.ol2,t.ol3,t.ol4,t.ol5],ul:t.ul},ltr:t.ltr,mark:"LexEditor_mark",markOverlap:"LexEditor_markOverlap",paragraph:t.paragraph,quote:t.quote,rtl:t.rtl,table:t.table,tableAddColumns:gt(t.tableAddColumns,"LexEditor_tableAddColumns"),tableAddRows:gt(t.tableAddRows,"LexEditor_tableAddRows"),tableCell:t.tableCell,tableCellActionButton:t.tableCellActionButton,tableCellActionButtonContainer:t.tableCellActionButtonContainer,tableCellEditing:t.tableCellEditing,tableCellHeader:t.tableCellHeader,tableCellPrimarySelected:t.tableCellPrimarySelected,tableCellResizer:t.tableCellResizer,tableCellSelected:t.tableCellSelected,tableCellSortedIndicator:t.tableCellSortedIndicator,tableResizeRuler:t.tableCellResizeRuler,tableSelected:t.tableSelected,text:{bold:t.textBold,code:t.textCode,italic:t.textItalic,strikethrough:"LexEditor_textStrikethrough",subscript:t.textSubscript,superscript:t.textSuperscript,underline:"LexEditor_textUnderline",underlineStrikethrough:"LexEditor_textUnderlineStrikethrough"}}}var Ng={},oC=X,Ar=$,lC=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?Ar.useLayoutEffect:Ar.useEffect;Ng.ContentEditable=function({ariaActiveDescendant:t,ariaAutoComplete:e,ariaControls:n,ariaDescribedBy:r,ariaExpanded:i,ariaLabel:o,ariaLabelledBy:l,ariaMultiline:s,ariaOwns:a,ariaRequired:c,autoCapitalize:g,className:d,id:u,role:f="textbox",spellCheck:h=!0,style:m,tabIndex:N,"data-testid":y}){let[_]=oC.useLexicalComposerContext(),[x,v]=Ar.useState(!1),S=Ar.useCallback(A=>{_.setRootElement(A)},[_]);return lC(()=>(v(_.isEditable()),_.registerEditableListener(A=>{v(A)})),[_]),Ar.createElement("div",{"aria-activedescendant":x?t:void 0,"aria-autocomplete":x?e:"none","aria-controls":x?n:void 0,"aria-describedby":r,"aria-expanded":x&&f==="combobox"?!!i:void 0,"aria-label":o,"aria-labelledby":l,"aria-multiline":s,"aria-owns":x?a:void 0,"aria-required":c,autoCapitalize:g,className:d,contentEditable:x,"data-testid":y,id:u,ref:S,role:x?f:void 0,spellCheck:h,style:m,tabIndex:N})};const sC=Ng;var aC=sC;const uC=it({root:{...P.border(0),fontSize:"15px",display:"block",position:"relative",tabSize:1,...P.outline(0),...P.padding("8px","28px"),minHeight:"calc(100% - 16px)"},table:{minHeight:"20px",...P.border(0),resize:"none",cursor:"text",display:"block",position:"relative",tabSize:1,...P.outline(0),...P.padding(0),userSelect:"text",fontSize:"15px",whiteSpace:"pre-wrap",wordBreak:"break-word",zIndex:3},display:{...P.padding(0)}});function Ya({className:t,table:e}){const n=uC(),{Display:r}=vc();return p.jsx(aC.ContentEditable,{className:gt("LexEditor_Content",t||e?n.table:n.root,!e&&r&&n.display)})}const cC=it({box:{fontSize:"15px",color:"#999",...P.overflow("hidden"),position:"absolute",textOverflow:"ellipsis",top:"8px",left:"28px",right:"28px",userSelect:"none",whiteSpace:"nowrap",display:"inline-block",pointerEvents:"none"}});function dC({children:t,className:e}){const n=cC();return p.jsx("div",{className:e||n.box,children:t})}const gC=it({shell:{lineHeight:"1.7"},container:{position:"relative"},noTreeView:{borderBottomLeftRadius:an.borderRadiusLarge,borderBottomRightRadius:an.borderRadiusLarge},scroller:{minHeight:"150px",...P.overflow("auto"),resize:"vertical"}});function fC(){of(X.useLexicalComposerContext()[0]);const{Namespace:t,OnError:e,Placeholder:n,Display:r,Plugin:{Actions:i,AutoFocus:o,AutoLink:l,CheckList:s,ClickableLink:a,CodeActionMenu:c,CodeHighlight:g,Collapsible:d,DraggableBlock:u,FloatingLinkEditor:f,FloatingTextFormatToolbar:h,HorizontalRule:m,Images:N,Link:y,ListMaxIndentLevel:_,List:x,MarkdownShortcut:v,TabFocus:S,TabIndentation:A,Table:w,Toolbar:B}}=vc(),k=p.jsx(dC,{children:n||"Let's say something awesome...."}),[K,Z]=$.useState(),ie=gC();return p.jsxs("div",{className:gt("LexEditor_Shell",ie.shell),children:[B&&p.jsx(rC,{}),p.jsxs("div",{className:gt(...r?[]:[ie.container,ie.noTreeView,ie.scroller]),ref:ot=>ot&&Z(ot),children:[o&&p.jsx(Fs.AutoFocusPlugin,{}),l&&p.jsx(Dm,{}),s&&p.jsx(vh.CheckListPlugin,{}),a&&p.jsx(Aa,{}),g&&p.jsx(Bm,{}),d&&p.jsx(zm,{}),m&&p.jsx(d_,{}),N&&p.jsx(Ia,{}),y&&p.jsx(Pa,{}),_&&p.jsx($_,{maxDepth:_}),x&&p.jsx(kh.ListPlugin,{}),v&&p.jsx(D_,{}),p.jsx(la.RichTextPlugin,{contentEditable:p.jsx(Ya,{}),placeholder:!r&&k,ErrorBoundary:qs}),S&&p.jsx(b_,{}),A&&p.jsx(Ep.TabIndentationPlugin,{}),w&&p.jsxs(W_,{cellEditorConfig:{namespace:t,nodes:[...Ip],onError:e,theme:xg()},children:[p.jsx(Fs.AutoFocusPlugin,{}),p.jsx(Aa,{}),p.jsx(ka,{}),p.jsx(Ia,{captionsEnabled:!1}),p.jsx(Pa,{}),p.jsx(la.RichTextPlugin,{contentEditable:p.jsx(Ya,{table:!0}),placeholder:null,ErrorBoundary:qs})]}),K&&p.jsxs(p.Fragment,{children:[i&&p.jsx(Em,{anchor:K}),c&&p.jsx(Fm,{anchor:K}),u&&p.jsx(qm,{anchor:K}),f&&p.jsx(l_,{anchor:K}),h&&p.jsx(ka,{anchor:K})]})]})]})}var En={},$t=C,di=V;class ei extends $t.ElementNode{static getType(){return"mark"}static clone(e){return new ei(Array.from(e.__ids),e.__key)}static importDOM(){return null}static importJSON(e){let n=Wi(e.ids);return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),ids:this.getIDs(),type:"mark",version:1}}constructor(e,n){super(n),this.__ids=e||[]}createDOM(e){let n=document.createElement("mark");return di.addClassNamesToElement(n,e.theme.mark),1{throw s},State:i,Placeholder:o,Display:l}){return n=l?!1:n,p.jsx(qf.LexicalComposer,{initialConfig:{editorState:i,namespace:t,nodes:[...CC],onError:r,theme:xg(),editable:n},children:p.jsx(th,{Namespace:t,Plugin:l?Qf:e,Editable:n,OnError:r,State:i,Placeholder:o,Display:l,children:p.jsx(z_,{children:p.jsx(fC,{})})})})}const vC=Object.freeze(Object.defineProperty({__proto__:null,default:xC},Symbol.toStringTag,{value:"Module"}));export{Nd as $,_g as C,kt as I,X as L,dC as P,rr as T,C as a,V as b,Fs as c,Pa as d,la as e,Ya as f,qs as g,k_ as h,Jh as i,yC as j,qh as k,F_ as l,Hi as m,fg as n,Pn as o,I_ as p,vC as q,Zp as u}; +`)},regExp:Vd,replace:(t,e,n)=>{const r=$a(n[0]);if(!r)return;const i=[r];let o=t.getPreviousSibling(),l=r.length;for(;o&&!(!C.$isParagraphNode(o)||o.getChildrenSize()!==1);){const c=o.getFirstChild();if(!C.$isTextNode(c))break;const g=$a(c.getTextContent());if(!g)break;l=Math.max(l,g.length),i.unshift(g);const d=o.getPreviousSibling();o.remove(),o=d}const s=He.$createTableNode();for(const c of i){const g=He.$createTableRowNode();s.append(g);for(let d=0;d{const e=He.$createTableCellNode(He.TableCellHeaderStates.NO_STATUS),n=C.$createParagraphNode();return t!=null&&n.append(C.$createTextNode(t.trim())),e.append(n),e},$a=t=>{const e=t.match(Vd);return!e||!e[1]?null:e[1].split("|").map(n=>Xd(n))},ol=[fm,dm,gm,Kr.CHECK_LIST,...Kr.TRANSFORMERS];function pm(){const[t]=X.useLexicalComposerContext(),e=$.useCallback(()=>t.update(()=>{const n=C.$getRoot(),r=n.getFirstChild();if(he.$isCodeNode(r)&&r.getLanguage()==="markdown")Kr.$convertFromMarkdownString(r.getTextContent(),ol);else{const i=Kr.$convertToMarkdownString(ol);n.clear().append(he.$createCodeNode("markdown").append(C.$createTextNode(i)))}n.selectEnd()}),[t]);return p.jsx(Va,{appearance:"outline",icon:p.jsx(Rg,{}),onClick:e})}var Yl={},mm=C;function _m(t){let e=document.createElement("input");e.type="file",e.accept=".lexical",e.addEventListener("change",n=>{if(n=n.target,n.files){n=n.files[0];let r=new FileReader;r.readAsText(n,"UTF-8"),r.onload=i=>{i.target&&t(i.target.result)}}}),e.click()}Yl.exportFile=function(t,e=Object.freeze({})){var n=new Date;t={editorState:t.getEditorState(),lastSaved:n.getTime(),source:e.source||"Lexical",version:"0.10.0"};{e=`${e.fileName||n.toISOString()}.lexical`,n=document.createElement("a");let r=document.body;r!==null&&(r.appendChild(n),n.style.display="none",t=JSON.stringify(t),t=new Blob([t],{type:"octet/stream"}),t=window.URL.createObjectURL(t),n.href=t,n.download=e,n.click(),window.URL.revokeObjectURL(t),n.remove())}};Yl.importFile=function(t){_m(e=>{e=JSON.parse(e),e=t.parseEditorState(JSON.stringify(e.editorState)),t.setEditorState(e),t.dispatchCommand(mm.CLEAR_HISTORY_COMMAND,void 0)})};const Cm=Yl;var Ra=Cm;function xm(){const[t]=X.useLexicalComposerContext();return p.jsxs(p.Fragment,{children:[p.jsx(Un,{appearance:"outline",icon:p.jsx(Ag,{}),onClick:()=>Ra.importFile(t)}),p.jsx(Un,{appearance:"outline",icon:p.jsx(Og,{}),onClick:()=>Ra.exportFile(t,{fileName:`Bunlog ${new Date().toISOString()}`,source:"Bunlog"})})]})}const Nm=it({box:{...uu,columnGap:"3px",position:"absolute",...P.padding("10px"),bottom:0,left:0}});function Em({anchor:t}){const e=Nm(),[n]=X.useLexicalComposerContext(),[r,i]=$.useState(()=>n.isEditable()),[o,l]=$.useState(!0);return $.useEffect(()=>V.mergeRegister(n.registerEditableListener(s=>i(s))),[n]),$.useEffect(()=>n.registerUpdateListener(({dirtyElements:s,prevEditorState:a,tags:c})=>{!r&&s.size>0&&!c.has("historic")&&!c.has("collaboration")&&console.debug(n.getEditorState()),n.getEditorState().read(()=>{const g=C.$getRoot().getChildren();g.length>1?l(!1):C.$isParagraphNode(g[0])?l(g[0].getChildren().length===0):l(!1)})}),[n,r]),p.jsx(Wr,{mountNode:t,children:p.jsxs("div",{className:e.box,children:[p.jsx(xm,{}),p.jsx(Pp,{}),p.jsx(pm,{})]})})}var Jl={},Xt=ce,Tm=X,ym=V,Rt=C,vm=$;function Zd(t,e){for(let n=0;nr.getLatest())}function Sm(t,e,n){vm.useEffect(()=>{if(!t.hasNodes([Xt.AutoLinkNode]))throw Error("Minified Lexical error #77; visit https://lexical.dev/docs/error?code=77 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");let r=(i,o)=>{n&&n(i,o)};return ym.mergeRegister(t.registerNodeTransform(Rt.TextNode,i=>{var o=i.getParentOrThrow(),l=i.getPreviousSibling();if(Xt.$isAutoLinkNode(o))$o(o,e,r);else if(!Xt.$isLinkNode(o)){if(i.isSimpleText()&&(en.test(i.getTextContent()[0])||!Xt.$isAutoLinkNode(l))){l=o=i.getTextContent();let f=0,h=i;for(var s;(s=Zd(l,e))&&s!==null;){let m=s.index,N=s.length,y=m+N;var a=f+m,c=f+y,g=o,d=i;if((0n){return n=>{let r=t.exec(n);return r===null?null:{index:r.index,length:r[0].length,text:r[0],url:e(n)}}};const $m=Jl;var Rm=$m;const Am=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,Om=/(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/,wm=[t=>{const e=Am.exec(t);if(!e)return null;const n=e[0];return{index:e.index,length:n.length,text:n,url:n.startsWith("http")?n:`https://${n}`}},t=>{const e=Om.exec(t);return e&&{index:e.index,length:e[0].length,text:e[0],url:`mailto:${e[0]}`}}];function Dm(){return p.jsx(Rm.AutoLinkPlugin,{matchers:wm})}function Aa({filter:t,newTab:e=!0}){const[n]=X.useLexicalComposerContext();return $.useEffect(()=>{function r(i){const o=i,l=Lm(o,n);if(!l)return;const s=l.getAttribute("href");if(l.getAttribute("contenteditable")==="false"||!s)return;const a=n.getEditorState().read(C.$getSelection);if(C.$isRangeSelection(a)&&!a.isCollapsed())return;let c;if(n.update(()=>{const g=C.$getNearestNodeFromDOMNode(l);ce.$isLinkNode(g)&&(c=g)}),!(!c||t&&!t(o,c)))try{if(s){const g=o.type==="auxclick"&&o.button===1;window.open(s,e||o.metaKey||o.ctrlKey||g?"_blank":"_self"),o.preventDefault()}}catch{}}return n.registerRootListener((i,o)=>{o&&(o.removeEventListener("click",r),o.removeEventListener("auxclick",r)),i&&(i.addEventListener("click",r),i.addEventListener("auxclick",r))})},[n,t,e]),null}function Oa(t){return t.nodeName.toLowerCase()==="a"}function Lm(t,e){return e.getEditorState().read(()=>{const n=t.target;return Oa(n)?n:n.parentNode&&Oa(n.parentNode)?n.parentNode:null})}const Mm=it({green:{color:an.colorPaletteLightGreenForeground3}});function bm({editor:t,getCodeDOMNode:e}){const[n,r]=$.useState(!1),{run:i}=Xa(()=>{r(!1)},{wait:1e3});async function o(){const s=e();if(!s)return;let a="";t.update(()=>{const c=C.$getNearestNodeFromDOMNode(s);he.$isCodeNode(c)&&(a=c.getTextContent());const g=C.$getSelection();C.$setSelection(g)});try{await navigator.clipboard.writeText(a),r(!0),i()}catch(c){console.error("Failed to copy: ",c)}}const l=Mm();return p.jsx(Un,{size:"small",appearance:"subtle",onClick:o,icon:n?p.jsx(wg,{className:l.green}):p.jsx(Dg,{})})}const km=8,Im=it({container:{height:"35.8px",fontSize:"10px",color:"rgba(0, 0, 0, 0.5)",position:"absolute",display:"flex",alignItems:"center",flexDirection:"row",userSelect:"none"},lang:{marginRight:"4px"}});function Pm(t){const e=t.target;if(e&&e instanceof HTMLElement){const n=e.closest("code.LexEditor_code"),r=!(n||e.closest("div.LexEditor_CodeMenu"));return{codeDOMNode:n,isOutside:r}}else return{codeDOMNode:null,isOutside:!0}}function Fm({anchor:t=document.body}){const[e]=X.useLexicalComposerContext(),[n,r]=$.useState(!1),[i,o]=$.useState(!1),[l,s]=$.useState(""),[a,c]=$.useState({right:"0",top:"0"}),g=$.useRef(new Set),d=$.useRef(null),{run:u,cancel:f}=Xa(N=>{const{codeDOMNode:y,isOutside:_}=Pm(N);if(_){r(!1);return}if(!y)return;d.current=y;let x=null,v="";if(e.update(()=>{const S=C.$getNearestNodeFromDOMNode(y);he.$isCodeNode(S)&&(x=S,v=x.getLanguage()||"")}),x){const{y:S,right:A}=t.getBoundingClientRect(),{y:w,right:B}=y.getBoundingClientRect();s(v),r(!0),c({right:`${A-B+km}px`,top:`${w-S}px`})}},{wait:100,maxWait:1e3});$.useEffect(()=>{if(i)return document.addEventListener("mousemove",u),()=>{r(!1),f(),document.removeEventListener("mousemove",u)}},[i,u]),e.registerMutationListener(he.CodeNode,N=>{e.getEditorState().read(()=>{for(const[y,_]of N)switch(_){case"created":g.current.add(y),o(g.current.size>0);break;case"destroyed":g.current.delete(y),o(g.current.size>0);break}})});const h=he.getLanguageFriendlyName(l),m=Im();return p.jsx(Wr,{mountNode:t,children:n&&p.jsxs("div",{className:gt(m.container,"LexEditor_CodeMenu"),style:a,children:[p.jsx("div",{className:m.lang,children:h}),p.jsx(bm,{editor:e,getCodeDOMNode:()=>d.current})]})})}function Bm(){const[t]=X.useLexicalComposerContext();return $.useEffect(()=>he.registerCodeHighlighting(t),[t]),null}class mn extends C.ElementNode{constructor(e,n){super(n),this.open=e,this.open=e}static getType(){return"collapsible-container"}static clone(e){return new mn(e.open,e.__key)}createDOM(e){const n=document.createElement("details");return n.classList.add("LexEditor_Collapsible"),n.open=this.open,n}updateDOM(e,n){return e.open!==this.open&&(n.open=this.open),!1}static importDOM(){return{}}static importJSON(e){return eg()}exportJSON(){return{...super.exportJSON(),type:"collapsible-container",version:1}}setOpen(e){const n=this.getWritable();n.open=e}getOpen(){return this.open}toggleOpen(){this.setOpen(!this.getOpen())}}function eg(){return new mn(!0)}function Qt(t){return t instanceof mn}class _n extends C.ElementNode{static getType(){return"collapsible-content"}static clone(e){return new _n(e.__key)}createDOM(e){const n=document.createElement("div");return n.classList.add("LexEditor_CollapsibleContent"),n}updateDOM(e,n){return!1}static importDOM(){return{}}static importJSON(e){return tg()}isShadowRoot(){return!0}exportJSON(){return{...super.exportJSON(),type:"collapsible-content",version:1}}}function tg(){return new _n}function ng(t){return t instanceof _n}class Cn extends C.ElementNode{static getType(){return"collapsible-title"}static clone(e){return new Cn(e.__key)}createDOM(e,n){const r=document.createElement("summary");return r.classList.add("LexEditor_CollapsibleTitle"),r}updateDOM(e,n){return!1}static importDOM(){return{}}static importJSON(e){return rg()}exportJSON(){return{...super.exportJSON(),type:"collapsible-title",version:1}}collapseAtStart(e){return this.getParentOrThrow().insertBefore(this),!0}insertNewAfter(e,n=!0){const r=this.getParentOrThrow();if(!Qt(r))throw new Error("CollapsibleTitleNode expects to be child of CollapsibleContainerNode");if(r.getOpen()){const i=this.getNextSibling();if(!ng(i))throw new Error("CollapsibleTitleNode expects to have CollapsibleContentNode sibling");const o=i.getFirstChild();if(C.$isElementNode(o))return o;{const l=C.$createParagraphNode();return i.append(l),l}}else{const i=C.$createParagraphNode();return r.insertAfter(i,n),i}}}function rg(){return new Cn}function wa(t){return t instanceof Cn}const ig=C.createCommand(),jm=C.createCommand();function zm(){const[t]=X.useLexicalComposerContext();return $.useEffect(()=>{if(!t.hasNodes([mn,Cn,_n]))throw new Error("CollapsiblePlugin: CollapsibleContainerNode, CollapsibleTitleNode, or CollapsibleContentNode not registered on editor");return V.mergeRegister(t.registerNodeTransform(_n,e=>{const n=e.getParent();if(!Qt(n)){const r=e.getChildren();for(const i of r)e.insertBefore(i);e.remove()}}),t.registerNodeTransform(Cn,e=>{const n=e.getParent();Qt(n)||e.replace(C.$createParagraphNode().append(...e.getChildren()))}),t.registerNodeTransform(mn,e=>{const n=e.getChildren();if(n.length!==2||!wa(n[0])||!ng(n[1])){for(const r of n)e.insertBefore(r);e.remove()}}),t.registerCommand(C.DELETE_CHARACTER_COMMAND,()=>{const e=C.$getSelection();if(!C.$isRangeSelection(e)||!e.isCollapsed()||e.anchor.offset!==0)return!1;const r=e.anchor.getNode().getTopLevelElement();if(!r)return!1;const i=r.getPreviousSibling();return!Qt(i)||i.getOpen()?!1:(i.setOpen(!0),!0)},C.COMMAND_PRIORITY_LOW),t.registerCommand(C.KEY_ARROW_DOWN_COMMAND,()=>{const e=C.$getSelection();if(!C.$isRangeSelection(e)||!e.isCollapsed())return!1;const n=V.$findMatchingParent(e.anchor.getNode(),Qt);if(!n)return!1;const r=n.getParent();return r&&r.getLastChild()===n&&r.append(C.$createParagraphNode()),!1},C.COMMAND_PRIORITY_LOW),t.registerCommand(C.INSERT_PARAGRAPH_COMMAND,()=>{const e=t._window?.event;if(e&&(e.ctrlKey||e.metaKey)&&e.key==="Enter"){const n=C.$getPreviousSelection();if(C.$isRangeSelection(n)&&n.isCollapsed()){const r=V.$findMatchingParent(n.anchor.getNode(),i=>C.$isElementNode(i)&&!i.isInline());if(wa(r)){const i=r.getParent();if(Qt(i))return i.toggleOpen(),C.$setSelection(n.clone()),!0}}}return!1},C.COMMAND_PRIORITY_LOW),t.registerCommand(ig,()=>(t.update(()=>{const e=C.$getSelection();if(!C.$isRangeSelection(e))return;const n=rg(),r=tg().append(C.$createParagraphNode()),i=eg().append(n,r);e.insertNodes([i]),n.selectStart()}),!0),C.COMMAND_PRIORITY_EDITOR),t.registerCommand(jm,e=>(t.update(()=>{const n=C.$getNodeByKey(e);Qt(n)&&n.toggleOpen()}),!0),C.COMMAND_PRIORITY_EDITOR))},[t]),null}function Ro(t){return t instanceof HTMLElement}class og{constructor(e,n){this.x=e,this.y=n}equals({x:e,y:n}){return this.x===e&&this.y===n}calcDeltaXTo({x:e}){return this.x-e}calcDeltaYTo({y:e}){return this.y-e}calcHorizontalDistanceTo(e){return Math.abs(this.calcDeltaXTo(e))}calcVerticalDistance(e){return Math.abs(this.calcDeltaYTo(e))}calcDistanceTo(e){return Math.sqrt(Math.pow(this.calcDeltaXTo(e),2)+Math.pow(this.calcDeltaYTo(e),2))}}function Km(t){return t instanceof og}class tn{_left;_top;_right;_bottom;constructor(e,n,r,i){const[o,l]=n<=i?[n,i]:[i,n],[s,a]=e<=r?[e,r]:[r,e];this._top=o,this._right=a,this._left=s,this._bottom=l}get top(){return this._top}get right(){return this._right}get bottom(){return this._bottom}get left(){return this._left}get width(){return Math.abs(this._left-this._right)}get height(){return Math.abs(this._bottom-this._top)}equals({top:e,left:n,bottom:r,right:i}){return e===this._top&&r===this._bottom&&n===this._left&&i===this._right}contains(e){if(Km(e)){const{x:n,y:r}=e,i=rthis._bottom,l=nthis._right;return{reason:{isOnBottomSide:o,isOnLeftSide:l,isOnRightSide:s,isOnTopSide:i},result:!i&&!o&&!l&&!s}}else{const{top:n,left:r,bottom:i,right:o}=e;return n>=this._top&&n<=this._bottom&&i>=this._top&&i<=this._bottom&&r>=this._left&&r<=this._right&&o>=this._left&&o<=this._right}}intersectsWith(e){const{left:n,top:r,width:i,height:o}=e,{left:l,top:s,width:a,height:c}=this,g=n+i>=l+a?n+i:l+a,d=r+o>=s+c?r+o:s+c,u=n<=l?n:l,f=r<=s?r:s;return g-u<=i+a&&d-f<=o+c}generateNewRect({left:e=this.left,top:n=this.top,right:r=this.right,bottom:i=this.bottom}){return new tn(e,n,r,i)}static fromLTRB(e,n,r,i){return new tn(e,n,r,i)}static fromLWTH(e,n,r,i){return new tn(e,r,e+n,r+i)}static fromPoints(e,n){const{y:r,x:i}=e,{y:o,x:l}=n;return tn.fromLTRB(i,r,l,o)}static fromDOM(e){const{top:n,width:r,left:i,height:o}=e.getBoundingClientRect();return tn.fromLWTH(i,r,n,o)}}let Ei=1/0;function Hm(t){return t===0?1/0:Ei>=0&&EiC.$getRoot().getChildrenKeys())}const Da=0;function Ao(t,e,n){const r=t.getBoundingClientRect(),i=Wm(e);let o=null;return e.getEditorState().read(()=>{let l=Hm(i.length),s=Da;for(;l>=0&&le.style.transform=n)}const La=28;function Jm(t,e,n,r){const i=window.getComputedStyle(e),{top:o,height:l}=e.getBoundingClientRect(),{top:s,width:a}=r.getBoundingClientRect();let c=o;n-o>l/2?c+=l+parseFloat(i.marginBottom):c-=parseFloat(i.marginTop);const g=c-s-2,d=La-ll;t.style.transform=`translate(${d}px, ${g}px)`,t.style.width=`${a-(La-ll)*2}px`,t.style.opacity=".4"}function Vm(t){t&&(t.style.opacity="0",t.style.transform="translate(-10000px, -10000px)")}const Ma="application/x-lexical-drag-block";function Xm({editor:t,anchor:e}){const n=e.parentElement,r=$.useRef(null),i=$.useRef(null),[o,l]=$.useState(null);$.useEffect(()=>{function g(u){const f=u.target;if(!Ro(f)){l(null);return}if(Um(f))return;const h=Ao(e,t,u);l(h)}function d(){l(null)}return n?.addEventListener("mousemove",g),n?.addEventListener("mouseleave",d),()=>{n?.removeEventListener("mousemove",g),n?.removeEventListener("mouseleave",d)}},[n,e,t]),$.useEffect(()=>{r.current&&Gm(o,r.current,e)},[e,o]),$.useEffect(()=>{function g(u){const[f]=rt.eventFiles(u);if(f)return!1;const{pageY:h,target:m}=u;if(!Ro(m))return!1;const N=Ao(e,t,u),y=i.current;return!N||!y?!1:(Jm(y,N,h,e),u.preventDefault(),!0)}function d(u){const[f]=rt.eventFiles(u);if(f)return!1;const{target:h,dataTransfer:m,pageY:N}=u,y=m?.getData(Ma)||"",_=C.$getNodeByKey(y);if(!_||!Ro(h))return!1;const x=Ao(e,t,u);if(!x)return!1;const v=C.$getNearestNodeFromDOMNode(x);if(!v)return!1;if(v===_)return!0;const{top:S,height:A}=x.getBoundingClientRect();return N-S>A/2?v.insertAfter(_):v.insertBefore(_),l(null),!0}return V.mergeRegister(t.registerCommand(C.DRAGOVER_COMMAND,u=>g(u),C.COMMAND_PRIORITY_LOW),t.registerCommand(C.DROP_COMMAND,u=>d(u),C.COMMAND_PRIORITY_HIGH))},[e,t]);function s(g){const d=g.dataTransfer;if(!d||!o)return;Ym(d,o);let u="";t.update(()=>{const f=C.$getNearestNodeFromDOMNode(o);f&&(u=f.getKey())}),d.setData(Ma,u)}function a(){Vm(i.current)}const c=Zm();return p.jsxs(Wr,{mountNode:e,children:[p.jsx("div",{className:gt("LexEditor_Draggable",c.meun),ref:r,draggable:!0,onDragStart:s,onDragEnd:a,children:p.jsx("div",{className:t._editable?gt(c.icon,"LexEditor_DraggableIcon"):""})}),p.jsx("div",{className:c.line,ref:i})]})}const Zm=it({meun:{...P.borderRadius("4px"),...P.padding("2px","1px"),cursor:"grab",opacity:0,position:"absolute",left:0,top:0,willChange:"transform",":active":{cursor:"grabbing"},":hover":{backgroundColor:"#efefef"}},icon:{width:"16px",height:"16px",opacity:.3},line:{pointerEvents:"none",backgroundColor:"deepskyblue",height:"4px",position:"absolute",left:0,top:0,opacity:0,willChange:"transform"}});function qm({anchor:t=document.body}){const[e]=X.useLexicalComposerContext();return p.jsx(Xm,{anchor:t,editor:e})}function so(t){const e=t.anchor,n=t.focus,r=t.anchor.getNode(),i=t.focus.getNode();return r===i?r:t.isBackward()?Se.$isAtNodeEnd(n)?r:i:Se.$isAtNodeEnd(e)?r:i}const Qm=10,e_=5;function sl(t,e,n,r=Qm,i=e_){const o=n.parentElement;if(!t||!o){e.style.opacity="0",e.style.transform="translate(-10000px, -10000px)";return}const l=e.getBoundingClientRect(),s=n.getBoundingClientRect(),a=o.getBoundingClientRect();let c=t.top-l.height-r,g=t.left-i;ca.right&&(g=a.right-l.width-i),c-=s.top,g-=s.left,e.style.opacity="1",e.style.transform=`translate(${g}px, ${c}px)`}function lg(t){const e=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,n=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;return t=String(t).trim(),t.match(e)||t.match(n)?t:"https://"}const t_=new RegExp(/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[\w]*))?)/);function n_(t){return t==="https://"||t_.test(t)}function r_({editor:t,isLink:e,setIsLink:n,anchor:r}){const i=$.useRef(null),o=$.useRef(null),[l,s]=$.useState(""),[a,c]=$.useState(!1),[g,d]=$.useState(),u=$.useCallback(()=>{const h=C.$getSelection();if(C.$isRangeSelection(h)){const x=so(h),v=x.getParent();ce.$isLinkNode(v)?s(v.getURL()):ce.$isLinkNode(x)?s(x.getURL()):s("")}const m=i.current,N=window.getSelection(),y=document.activeElement;if(!m)return;const _=t.getRootElement();if(h&&N&&_&&_.contains(N.anchorNode)&&t.isEditable()){const x=N.getRangeAt(0);let v;if(N.anchorNode===_){let S=_;for(;S.firstElementChild;)S=S.firstElementChild;v=S.getBoundingClientRect()}else v=x.getBoundingClientRect();sl(v,m,r),d(h)}else(!y||y.className!=="link-input")&&(_&&sl(null,m,r),d(void 0),c(!1),s(""));return!0},[r,t]);$.useEffect(()=>{const h=r.parentElement;function m(){t.getEditorState().read(()=>u())}return window.addEventListener("resize",m),h&&h.addEventListener("scroll",m),()=>{window.removeEventListener("resize",m),h&&h.removeEventListener("scroll",m)}},[r.parentElement,t,u]),$.useEffect(()=>V.mergeRegister(t.registerUpdateListener(({editorState:h})=>h.read(()=>u())),t.registerCommand(C.SELECTION_CHANGE_COMMAND,()=>(u(),!0),C.COMMAND_PRIORITY_LOW),t.registerCommand(C.KEY_ESCAPE_COMMAND,()=>e?(n(!1),!0):!1,C.COMMAND_PRIORITY_HIGH)),[t,u,n,e]),$.useEffect(()=>{t.getEditorState().read(()=>u())},[t,u]),$.useEffect(()=>{a&&o.current&&o.current.focus()},[a]);const f=i_();return p.jsx("div",{ref:i,style:{transition:"opacity 0.5s"},className:f.editor,children:a?p.jsx(Gn,{ref:o,className:f.input,value:l,onChange:(h,m)=>s(m.value),onKeyDown:h=>{h.key==="Enter"?(h.preventDefault(),g&&(l&&t.dispatchCommand(ce.TOGGLE_LINK_COMMAND,lg(l)),c(!1))):h.key==="Escape"&&(h.preventDefault(),c(!1))}}):p.jsxs("div",{className:f.link,children:[p.jsx(Lg,{href:l,target:"_blank",rel:"noopener noreferrer",className:f.a,children:l}),p.jsx(Un,{appearance:"subtle",icon:p.jsx(Mg,{}),onClick:()=>c(!0)})]})})}const ba={...P.margin("8px","10px"),...P.padding("4px","12px")},i_=it({editor:{...cu,...rf,position:"absolute",top:0,left:0,maxWidth:"400px",width:"100%",opacity:0,willChange:"transform"},a:{whiteSpace:"nowrap",...P.overflow("hidden"),textOverflow:"ellipsis"},link:{...uu,justifyContent:"space-between",alignItems:"center",width:"calc(100% - 20px)",boxSizing:"border-box",...P.borderRadius(an.borderRadiusMedium),backgroundColor:"#eee",position:"relative",...ba},input:ba});function o_({editor:t,anchor:e}){const[n,r]=$.useState(t),[i,o]=$.useState(!1);return $.useEffect(()=>t.registerCommand(C.SELECTION_CHANGE_COMMAND,(l,s)=>{const a=C.$getSelection();if(C.$isRangeSelection(a)){const c=so(a),g=V.$findMatchingParent(c,ce.$isLinkNode),d=V.$findMatchingParent(c,ce.$isAutoLinkNode);o(!!(g&&!d))}return r(s),!1},C.COMMAND_PRIORITY_CRITICAL),[t]),i&&p.jsx(Wr,{mountNode:e,children:p.jsx(r_,{editor:n,isLink:i,anchor:e,setIsLink:o})})}function l_({anchor:t=document.body}){const[e]=X.useLexicalComposerContext();return p.jsx(o_,{editor:e,anchor:t})}function s_(t,e){const n=t.getRangeAt(0);let r;if(t.anchorNode===e){let i=e;for(;i.firstElementChild;)i=i.firstElementChild;r=i.getBoundingClientRect()}else r=n.getBoundingClientRect();return r}function a_({editor:t,anchor:e,isLink:n,isBold:r,isItalic:i,isUnderline:o,isCode:l,isStrikethrough:s,isSubscript:a,isSuperscript:c}){const g=$.useRef(null),d=$.useCallback(()=>{n?t.dispatchCommand(ce.TOGGLE_LINK_COMMAND,null):t.dispatchCommand(ce.TOGGLE_LINK_COMMAND,"https://")},[t,n]),u=$.useCallback(()=>{const m=C.$getSelection(),N=g.current,y=window.getSelection();if(!N)return;const _=t.getRootElement();if(m&&y&&!y.isCollapsed&&_&&_.contains(y.anchorNode)){const x=s_(y,_);sl(x,N,e)}},[t,e]);$.useEffect(()=>{const m=e.parentElement;function N(){t.getEditorState().read(()=>u())}return window.addEventListener("resize",N),m&&m.addEventListener("scroll",N),()=>{window.removeEventListener("resize",N),m&&m.removeEventListener("scroll",N)}},[t,u,e]),$.useEffect(()=>(t.getEditorState().read(()=>u()),V.mergeRegister(t.registerUpdateListener(({editorState:m})=>m.read(()=>u())),t.registerCommand(C.SELECTION_CHANGE_COMMAND,()=>(u(),!1),C.COMMAND_PRIORITY_LOW))),[t,u]);const f=[r&&"bold",i&&"italic",o&&"underline",l&&"code",s&&"strikethrough",a&&"subscript",c&&"superscript",n&&"link"],h=u_();return p.jsxs(Za,{ref:g,className:h.toolbar,style:{transition:"opacity 0.5s"},checkedValues:{opts:f},children:[p.jsx(Le,{name:"opts",value:"bold",appearance:"subtle","aria-label":"Format text as bold",icon:p.jsx(qa,{}),onClick:()=>t.dispatchCommand(C.FORMAT_TEXT_COMMAND,"bold")}),p.jsx(Le,{name:"opts",value:"italic",appearance:"subtle","aria-label":"Format text as italics",icon:p.jsx(Qa,{}),onClick:()=>t.dispatchCommand(C.FORMAT_TEXT_COMMAND,"italic")}),p.jsx(Le,{name:"opts",value:"underline",appearance:"subtle","aria-label":"Format text to underlined",icon:p.jsx(eu,{}),onClick:()=>t.dispatchCommand(C.FORMAT_TEXT_COMMAND,"underline")}),p.jsx(Le,{name:"opts",value:"strikethrough",appearance:"subtle","aria-label":"Format text with a strikethrough",icon:p.jsx(tu,{}),onClick:()=>t.dispatchCommand(C.FORMAT_TEXT_COMMAND,"strikethrough")}),p.jsx(Le,{name:"opts",value:"subscript",appearance:"subtle","aria-label":"Format Subscript",icon:p.jsx(nu,{}),onClick:()=>t.dispatchCommand(C.FORMAT_TEXT_COMMAND,"subscript")}),p.jsx(Le,{name:"opts",value:"superscript",appearance:"subtle","aria-label":"Format Superscript",icon:p.jsx(ru,{}),onClick:()=>t.dispatchCommand(C.FORMAT_TEXT_COMMAND,"superscript")}),p.jsx(Le,{name:"opts",value:"code",appearance:"subtle","aria-label":"Insert code block",icon:p.jsx(Ti,{}),onClick:()=>t.dispatchCommand(C.FORMAT_TEXT_COMMAND,"code")}),p.jsx(Le,{name:"opts",value:"link",appearance:"subtle","aria-label":"Insert link",icon:p.jsx(iu,{}),onClick:d})]})}const u_=it({toolbar:{...cu,...P.padding("4px"),verticalAlign:"middle",position:"absolute",top:0,left:0,opacity:0,height:"35px",willChange:"transform"}});function c_({editor:t,anchor:e}){const[n,r]=$.useState(!1),[i,o]=$.useState(!1),[l,s]=$.useState(!1),[a,c]=$.useState(!1),[g,d]=$.useState(!1),[u,f]=$.useState(!1),[h,m]=$.useState(!1),[N,y]=$.useState(!1),[_,x]=$.useState(!1),v=$.useCallback(()=>{t.getEditorState().read(()=>{if(t.isComposing())return;const S=C.$getSelection(),A=window.getSelection(),w=t.getRootElement();if(A&&(!C.$isRangeSelection(S)||!w||!w.contains(A.anchorNode))){r(!1);return}if(!C.$isRangeSelection(S))return;const B=so(S);s(S.hasFormat("bold")),c(S.hasFormat("italic")),d(S.hasFormat("underline")),f(S.hasFormat("strikethrough")),m(S.hasFormat("subscript")),y(S.hasFormat("superscript")),x(S.hasFormat("code"));const k=B.getParent();ce.$isLinkNode(k)||ce.$isLinkNode(B)?o(!0):o(!1),!he.$isCodeHighlightNode(S.anchor.getNode())&&S.getTextContent()?r(C.$isTextNode(B)):r(!1)})},[t]);return $.useEffect(()=>(document.addEventListener("selectionchange",v),()=>document.removeEventListener("selectionchange",v)),[v]),$.useEffect(()=>V.mergeRegister(t.registerUpdateListener(()=>v()),t.registerRootListener(()=>{t.getRootElement()||r(!1)})),[t,v]),!n||i?null:p.jsx(Wr,{mountNode:e,children:p.jsx(a_,{editor:t,anchor:e,isLink:i,isBold:l,isItalic:a,isStrikethrough:u,isSubscript:h,isSuperscript:N,isUnderline:g,isCode:_})})}function ka({anchor:t=document.body}){const[e]=X.useLexicalComposerContext();return p.jsx(c_,{editor:e,anchor:t})}function d_(){const[t]=X.useLexicalComposerContext();return $.useEffect(()=>t.registerCommand(jt.INSERT_HORIZONTAL_RULE_COMMAND,e=>{const n=C.$getSelection();if(!C.$isRangeSelection(n))return!1;if(n.focus.getNode()){const i=jt.$createHorizontalRuleNode();V.$insertNodeToNearestRoot(i)}return!0},C.COMMAND_PRIORITY_EDITOR),[t]),null}const Vl=C.createCommand("INSERT_IMAGE_COMMAND");function g_({editor:t}){const[e,n]=$.useState("https://source.unsplash.com/random"),[r,i]=$.useState(du.Name);return p.jsxs(ou,{children:[p.jsx(lu,{children:"Insert Image"}),p.jsxs(su,{children:[p.jsx(Or,{label:"Source",required:!0,children:p.jsx(Gn,{placeholder:e,onChange:(o,l)=>n(l.value||"")})}),p.jsx(Or,{label:"Alt Text",required:!0,children:p.jsx(Gn,{placeholder:r,onChange:(o,l)=>i(l.value||"")})})]}),p.jsx(au,{children:p.jsx(yi,{disableButtonEnhancement:!0,children:p.jsx(Un,{onClick:()=>{t.dispatchCommand(Vl,{altText:r,src:e})},children:"Confirm"})})})]})}function Ia({captionsEnabled:t}){const[e]=X.useLexicalComposerContext();return $.useEffect(()=>{if(!e.hasNodes([Ut]))throw new Error("ImagesPlugin: ImageNode not registered on editor");return V.mergeRegister(e.registerCommand(Vl,n=>{const r=ro(n);return C.$insertNodes([r]),C.$isRootOrShadowRoot(r.getParentOrThrow())&&V.$wrapNodeInElement(r,C.$createParagraphNode).selectEnd(),!0},C.COMMAND_PRIORITY_EDITOR),e.registerCommand(C.DRAGSTART_COMMAND,n=>h_(n),C.COMMAND_PRIORITY_HIGH),e.registerCommand(C.DRAGOVER_COMMAND,n=>p_(n),C.COMMAND_PRIORITY_LOW),e.registerCommand(C.DROP_COMMAND,n=>m_(n,e),C.COMMAND_PRIORITY_HIGH))},[t,e]),null}const f_="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",sg=document.createElement("img");sg.src=f_;function h_(t){const e=Xl();if(!e)return!1;const n=t.dataTransfer;return n?(n.setData("text/plain","_"),n.setDragImage(sg,0,0),n.setData("application/x-lexical-drag",JSON.stringify({data:{altText:e.altText,caption:e.caption,height:e.height,key:e.getKey(),maxWidth:e.maxWidth,showCaption:e.showCaption,src:e.src,width:e.width},type:"image"})),!0):!1}function p_(t){return Xl()?(ag(t)||t.preventDefault(),!0):!1}function m_(t,e){const n=Xl();if(!n)return!1;const r=__(t);if(!r)return!1;if(t.preventDefault(),ag(t)){const i=C_(t);n.remove();const o=C.$createRangeSelection();i&&o.applyDOMRange(i),C.$setSelection(o),e.dispatchCommand(Vl,r)}return!0}function Xl(){const t=C.$getSelection();if(!C.$isNodeSelection(t))return null;const n=t.getNodes()[0];return Nd(n)?n:null}function __(t){const e=t.dataTransfer?.getData("application/x-lexical-drag");if(!e)return null;const{type:n,data:r}=JSON.parse(e);return n!=="image"?null:r}function ag(t){const e=t.target;return!!(e&&e instanceof HTMLElement&&!e.closest("code, span.LexEditor_Image")&&e.parentElement&&e.parentElement.closest("div.LexEditor_Content"))}function C_(t){let e;const n=window.getSelection();if(document.caretRangeFromPoint)e=document.caretRangeFromPoint(t.clientX,t.clientY);else if(t.rangeParent&&n)n.collapse(t.rangeParent,t.rangeOffset||0),e=n.getRangeAt(0);else throw Error("Cannot get the selection when dragging");return e}var ug={},wn=ce,x_=X,N_=V,Dn=C,E_=$;ug.LinkPlugin=function({validateUrl:t}){let[e]=x_.useLexicalComposerContext();return E_.useEffect(()=>{if(!e.hasNodes([wn.LinkNode]))throw Error("LinkPlugin: LinkNode not registered on editor");return N_.mergeRegister(e.registerCommand(wn.TOGGLE_LINK_COMMAND,n=>{if(n===null)return wn.toggleLink(n),!0;if(typeof n=="string")return t===void 0||t(n)?(wn.toggleLink(n),!0):!1;let{url:r,target:i,rel:o,title:l}=n;return wn.toggleLink(r,{rel:o,target:i,title:l}),!0},Dn.COMMAND_PRIORITY_LOW),t!==void 0?e.registerCommand(Dn.PASTE_COMMAND,n=>{let r=Dn.$getSelection();if(!Dn.$isRangeSelection(r)||r.isCollapsed()||!(n instanceof ClipboardEvent)||n.clipboardData==null)return!1;let i=n.clipboardData.getData("text");return t(i)?r.getNodes().some(o=>Dn.$isElementNode(o))?!1:(e.dispatchCommand(wn.TOGGLE_LINK_COMMAND,i),n.preventDefault(),!0):!1},Dn.COMMAND_PRIORITY_LOW):()=>{})},[e,t]),null};const T_=ug;var y_=T_;function Pa(){return p.jsx(y_.LinkPlugin,{validateUrl:n_})}function v_(t){const e=t.getNodes();return e.length===0?new Set([t.anchor.getNode().getParentOrThrow(),t.focus.getNode().getParentOrThrow()]):new Set(e.map(n=>C.$isElementNode(n)?n:n.getParentOrThrow()))}function S_(t){const e=C.$getSelection();if(!C.$isRangeSelection(e))return!1;const n=v_(e);let r=0;for(const i of n)if(fe.$isListNode(i))r=Math.max(fe.$getListDepth(i)+1,r);else if(fe.$isListItemNode(i)){const o=i.getParent();if(!fe.$isListNode(o))throw new Error("ListMaxIndentLevelPlugin: A ListItemNode must have a ListNode for a parent.");r=Math.max(fe.$getListDepth(o)+1,r)}return r<=t}function $_({maxDepth:t}){const[e]=X.useLexicalComposerContext();return $.useEffect(()=>e.registerCommand(C.INDENT_CONTENT_COMMAND,()=>!S_(t??7),C.COMMAND_PRIORITY_CRITICAL),[e,t]),null}var Zl={},cg=Kr,R_=X,Oo=jt,A_=$;let dg=[{dependencies:[Oo.HorizontalRuleNode],export:t=>Oo.$isHorizontalRuleNode(t)?"***":null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(t,e,n,r)=>{e=Oo.$createHorizontalRuleNode(),r||t.getNextSibling()!=null?t.replace(e):t.insertBefore(e),e.selectNext()},type:"element"},...cg.TRANSFORMERS];Zl.DEFAULT_TRANSFORMERS=dg;Zl.MarkdownShortcutPlugin=function({transformers:t=dg}){let[e]=R_.useLexicalComposerContext();return A_.useEffect(()=>cg.registerMarkdownShortcuts(e,t),[e,t]),null};const O_=Zl;var w_=O_;function D_(){return p.jsx(w_.MarkdownShortcutPlugin,{transformers:ol})}const L_=100;let gg=0,Fa=!1;function M_(){window.addEventListener("keydown",t=>{t.keyCode===9&&(gg=t.timeStamp)},!0)}function b_(){const[t]=X.useLexicalComposerContext();return $.useEffect(()=>(Fa||(M_(),Fa=!0),t.registerCommand(C.FOCUS_COMMAND,e=>{const n=C.$getSelection();return C.$isRangeSelection(n)&&gg+L_>e.timeStamp&&C.$setSelection(n.clone()),!1},C.COMMAND_PRIORITY_LOW)),[t]),null}function fg(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}const k_=new Map,yC=new Map,hg='{"root":{"children":[{"children":[],"direction":null,"format":"","indent":0,"type":"paragraph","version":1}],"direction":null,"format":"","indent":0,"type":"root","version":1}}';function I_(t){return t?`{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":${t},"type":"text","version":1}],"direction":"ltr","format":"","indent":0,"type":"paragraph","version":1}],"direction":"ltr","format":"","indent":0,"type":"root","version":1}}`:hg}function Pn(t){return{colSpan:1,id:fg(),json:hg,type:t,width:null}}function Hi(){return{cells:[],height:null,id:fg()}}function P_(t){const e=t.querySelectorAll("tr");if(!e||e.length===0)return null;const n=[];for(let r=0;r({conversion:P_,priority:0})}}exportDOM(){return{element:F_(this.rows)}}createDOM(){const e=document.createElement("div");return e.style.display="contents",e}updateDOM(){return!1}mergeRows(e,n,r){const o=this.getWritable().rows,l=Math.min(o.length,n+r.length);for(let s=n;sJa(()=>import("./Component-H1hIVv9X.js"),__vite__mapDeps([5,1,2,3,4])));function j_(t,e,...n){if(!t)throw new Error("Internal Lexical error: invariant() is meant to be replaced at compile time. There is no runtime version. Error: "+e)}const mg=C.createCommand("INSERT_NEW_TABLE_COMMAND"),_g=$.createContext({cellEditorConfig:null,cellEditorPlugins:null,set:()=>{}});function z_({children:t}){const[e,n]=$.useState({cellEditorConfig:null,cellEditorPlugins:null});return p.jsx(_g.Provider,{value:$.useMemo(()=>({cellEditorConfig:e.cellEditorConfig,cellEditorPlugins:e.cellEditorPlugins,set:(r,i)=>n({cellEditorConfig:r,cellEditorPlugins:i})}),[e.cellEditorConfig,e.cellEditorPlugins]),children:t})}function K_({editor:t}){const[e,n]=$.useState("5"),[r,i]=$.useState("5");return p.jsxs(ou,{children:[p.jsx(lu,{children:"Insert Table"}),p.jsxs(su,{children:[p.jsx(Or,{label:"Rows",required:!0,children:p.jsx(Gn,{placeholder:e,onChange:(o,l)=>l&&n(l.value)})}),p.jsx(Or,{label:"Cols",required:!0,children:p.jsx(Gn,{placeholder:r,onChange:(o,l)=>l&&i(l.value)})})]}),p.jsx(au,{children:p.jsx(yi,{disableButtonEnhancement:!0,children:p.jsx(Un,{onClick:()=>{t.dispatchCommand(mg,{columns:r,rows:e})},children:"Confirm"})})})]})}function H_(t,e,n=!0){const r=[];for(let i=0;i(n.hasNodes([rr])||j_(!1,"TablePlugin: TableNode is not registered on editor"),r.set(t,e),n.registerCommand(mg,({columns:i,rows:o,includeHeaders:l})=>{const s=C.$getSelection();if(!C.$isRangeSelection(s))return!0;const a=s.focus,c=a.getNode();if(c){const g=H_(Number(o),Number(i),l);if(C.$isRootOrShadowRoot(c)){const u=c.getChildAtIndex(a.offset);u?u.insertBefore(g):c.append(g),g.insertBefore(C.$createParagraphNode())}else c.getTopLevelElementOrThrow().insertAfter(g);g.insertAfter(C.$createParagraphNode());const d=C.$createNodeSelection();d.add(g.getKey()),C.$setSelection(d)}return!0},C.COMMAND_PRIORITY_EDITOR)),[r,t,e,n]),null}var ql={},U_=C;class Cg extends U_.DecoratorNode{constructor(e,n){super(n),this.__format=e||""}exportJSON(){return{format:this.__format||"",type:"decorator-block",version:1}}createDOM(){return document.createElement("div")}updateDOM(){return!1}setFormat(e){this.getWritable().__format=e}}ql.$isDecoratorBlockNode=function(t){return t instanceof Cg};ql.DecoratorBlockNode=Cg;const G_=ql;var Y_=G_;const J_="documentMode"in document?document.documentMode:null,kt=/Mac|iPod|iPhone|iPad/.test(navigator.platform);"InputEvent"in window&&!J_&&"getTargetRanges"in new window.InputEvent("input");const al={bullet:"Bulleted List",check:"Check List",code:"Code Block",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",h5:"Heading 5",h6:"Heading 6",number:"Numbered List",paragraph:"Normal",quote:"Quote"};function V_({editor:t,blockType:e,disabled:n=!1}){function r(){e!=="paragraph"&&t.update(()=>{const g=C.$getSelection();(C.$isRangeSelection(g)||C.DEPRECATED_$isGridSelection(g))&&Se.$setBlocksType(g,()=>C.$createParagraphNode())})}function i(g){e!==g&&t.update(()=>{const d=C.$getSelection();(C.$isRangeSelection(d)||C.DEPRECATED_$isGridSelection(d))&&Se.$setBlocksType(d,()=>rt.$createHeadingNode(g))})}function o(){e!=="bullet"?t.dispatchCommand(fe.INSERT_UNORDERED_LIST_COMMAND,void 0):t.dispatchCommand(fe.REMOVE_LIST_COMMAND,void 0)}function l(){e!=="check"?t.dispatchCommand(fe.INSERT_CHECK_LIST_COMMAND,void 0):t.dispatchCommand(fe.REMOVE_LIST_COMMAND,void 0)}function s(){e!=="number"?t.dispatchCommand(fe.INSERT_ORDERED_LIST_COMMAND,void 0):t.dispatchCommand(fe.REMOVE_LIST_COMMAND,void 0)}function a(){e!=="quote"&&t.update(()=>{const g=C.$getSelection();(C.$isRangeSelection(g)||C.DEPRECATED_$isGridSelection(g))&&Se.$setBlocksType(g,()=>rt.$createQuoteNode())})}function c(){e!=="code"&&t.update(()=>{const g=C.$getSelection();if(C.$isRangeSelection(g)||C.DEPRECATED_$isGridSelection(g))if(g.isCollapsed())Se.$setBlocksType(g,()=>he.$createCodeNode());else{const d=g.getTextContent(),u=he.$createCodeNode();g.insertNodes([u]),g.insertRawText(d)}})}return p.jsxs(pr,{children:[p.jsx(mr,{children:p.jsx(yt,{disabled:n,"aria-label":"Formatting options for text style",children:al[e],icon:(()=>{switch(e){case"paragraph":return p.jsx(cs,{});case"h1":return p.jsx(us,{});case"h2":return p.jsx(as,{});case"h3":return p.jsx(ss,{});case"bullet":return p.jsx(ls,{});case"check":return p.jsx(os,{});case"number":return p.jsx(is,{});case"quote":return p.jsx(rs,{});case"code":return p.jsx(Ti,{});default:return p.jsx(bg,{})}})()})}),p.jsx(_r,{children:p.jsxs(Cr,{children:[p.jsx(ue,{icon:p.jsx(cs,{}),onClick:r,children:"Normal"}),p.jsx(ue,{icon:p.jsx(us,{}),onClick:()=>i("h1"),children:"Heading 1"}),p.jsx(ue,{icon:p.jsx(as,{}),onClick:()=>i("h2"),children:"Heading 2"}),p.jsx(ue,{icon:p.jsx(ss,{}),onClick:()=>i("h3"),children:"Heading 3"}),p.jsx(ue,{icon:p.jsx(ls,{}),onClick:o,children:"Bullet List"}),p.jsx(ue,{icon:p.jsx(is,{}),onClick:s,children:"Numbered List"}),p.jsx(ue,{icon:p.jsx(os,{}),onClick:l,children:"Check List"}),p.jsx(ue,{icon:p.jsx(rs,{}),onClick:a,children:"Quote"}),p.jsx(ue,{icon:p.jsx(Ti,{}),onClick:c,children:"Code Block"})]})})]})}const X_=["#d0021b","#f5a623","#f8e71c","#8b572a","#7ed321","#417505","#bd10e0","#9013fe","#4a90e2","#50e3c2","#b8e986","#000000","#4a4a4a","#9b9b9b","#ffffff"],cr=214,Ba=150;function Z_({color:t,onChange:e}){const[n,r]=$.useState(Ln("hex",t)),[i,o]=$.useState(t),l=$.useRef(null),s=$.useMemo(()=>({x:n.hsv.s/100*cr,y:(100-n.hsv.v)/100*Ba}),[n.hsv.s,n.hsv.v]),a=$.useMemo(()=>({x:n.hsv.h/360*cr}),[n.hsv]);function c(u){if(o(u),/^#[0-9A-Fa-f]{6}$/i.test(u)){const f=Ln("hex",u);r(f)}}function g({x:u,y:f}){const h={...n.hsv,s:u/cr*100,v:100-f/Ba*100},m=Ln("hsv",h);r(m),o(m.hex)}function d({x:u}){const f={...n.hsv,h:u/cr*360},h=Ln("hsv",f);r(h),o(h.hex)}return $.useEffect(()=>{l.current!==null&&e&&(e(n.hex),o(n.hex))},[n,e]),$.useEffect(()=>{if(t===void 0)return;const u=Ln("hex",t);r(u),o(u.hex)},[t]),p.jsxs("div",{style:{width:cr},ref:l,children:[p.jsx(Or,{label:"Hex",style:{paddingBottom:an.spacingVerticalS},children:p.jsx(Gn,{onChange:(u,f)=>c(f.value),value:i})}),p.jsx("div",{className:"color-picker-basic-color",children:X_.map(u=>p.jsx("button",{className:u===n.hex?" active":"",style:{backgroundColor:u},onClick:()=>{o(u),r(Ln("hex",u))}},u))}),p.jsx(ja,{className:"color-picker-saturation",style:{backgroundColor:`hsl(${n.hsv.h}, 100%, 50%)`},onChange:g,children:p.jsx("div",{className:"color-picker-saturation_cursor",style:{backgroundColor:n.hex,left:s.x,top:s.y}})}),p.jsx(ja,{className:"color-picker-hue",onChange:d,children:p.jsx("div",{className:"color-picker-hue_cursor",style:{backgroundColor:`hsl(${n.hsv.h}, 100%, 50%)`,left:a.x}})}),p.jsx("div",{className:"color-picker-color",style:{backgroundColor:n.hex}})]})}function ja({className:t,style:e,onChange:n,children:r}){const i=$.useRef(null),o=s=>{if(i.current){const{current:a}=i,{width:c,height:g,left:d,top:u}=a.getBoundingClientRect(),f=za(s.clientX-d,c,0),h=za(s.clientY-u,g,0);n({x:f,y:h})}};function l(s){if(s.button!==0)return;o(s);function a(g){o(g)}function c(g){document.removeEventListener("mousemove",a,!1),document.removeEventListener("mouseup",c,!1),o(g)}document.addEventListener("mousemove",a,!1),document.addEventListener("mouseup",c,!1)}return p.jsx("div",{ref:i,className:t,style:e,onMouseDown:l,children:r})}function za(t,e,n){return t>e?e:tn?e+e:"#").join(""),t;if(t.length===7||t.length===9)return t}else{const e=document.createElement("canvas").getContext("2d");if(!e)throw new Error("2d context not supported or canvas already initialized");return e.fillStyle=t,e.fillStyle}return"#000000"}function Ha(t){const e=(t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(n,r,i,o)=>"#"+r+r+i+i+o+o).substring(1).match(/.{2}/g)||[]).map(n=>parseInt(n,16));return{b:e[2],g:e[1],r:e[0]}}function wo({r:t,g:e,b:n}){t/=255,e/=255,n/=255;const r=Math.max(t,e,n),i=r-Math.min(t,e,n),o=i?(r===t?(e-n)/i+(er.toString(16).padStart(2,"0")).join("")}function Ln(t,e){let n=Ka("#121212"),r=Ha(n),i=wo(r);return t==="hex"?(n=Ka(e),r=Ha(n),i=wo(r)):t==="rgb"?(r=e,n=Wa(r),i=wo(r)):t==="hsv"&&(i=e,r=q_(i),n=Wa(r)),{hex:n,hsv:i,rgb:r}}function Ua({disabled:t,ariaLabel:e,color:n,onChange:r,icon:i}){return p.jsxs(kg,{trapFocus:!0,withArrow:!0,children:[p.jsx(Ig,{children:p.jsx(yt,{disabled:t,icon:i,title:e,"aria-label":e})}),p.jsx(Pg,{children:p.jsx(Z_,{color:n,onChange:r})})]})}const Q_=[["Arial","Arial"],["Courier New","Courier New"],["Georgia","Georgia"],["Times New Roman","Times New Roman"],["Trebuchet MS","Trebuchet MS"],["Verdana","Verdana"]],eC=[["10px","10px"],["11px","11px"],["12px","12px"],["13px","13px"],["14px","14px"],["15px","15px"],["16px","16px"],["17px","17px"],["18px","18px"],["19px","19px"],["20px","20px"]];function Ga({editor:t,value:e,style:n,disabled:r=!1}){const i=$.useCallback(l=>{t.update(()=>{const s=C.$getSelection();C.$isRangeSelection(s)&&Se.$patchStyleText(s,{[n]:l})})},[t,n]),o=n==="font-family"?"Formatting options for font family":"Formatting options for font size";return p.jsxs(pr,{children:[p.jsx(mr,{children:p.jsx(yt,{disabled:r,"aria-label":o,icon:n==="font-family"?p.jsx(Fg,{}):p.jsx(Bg,{}),children:e})}),p.jsx(_r,{children:p.jsx(Cr,{children:(n==="font-family"?Q_:eC).map(([l,s],a)=>p.jsx(ue,{children:s,onClick:()=>i(l)},a))})})]})}const tC=it({box:{columnGap:"1px",backgroundColor:"#fff",borderTopLeftRadius:an.borderRadiusLarge,borderTopRightRadius:an.borderRadiusLarge}}),nC=(()=>{const t=[];for(const[e,n]of Object.entries(he.CODE_LANGUAGE_FRIENDLY_NAME_MAP))t.push([e,n]);return t})();function rC(){const[t]=X.useLexicalComposerContext(),[e,n]=$.useState(t),[r,i]=$.useState("paragraph"),[o,l]=$.useState(null),[s,a]=$.useState("15px"),[c,g]=$.useState("#000"),[d,u]=$.useState("#fff"),[f,h]=$.useState("Arial"),[m,N]=$.useState(!1),[y,_]=$.useState(!1),[x,v]=$.useState(!1),[S,A]=$.useState(""),[w,B]=$.useState(()=>t.isEditable()),[k,K]=$.useState([]),Z=$.useCallback(()=>{const I=C.$getSelection();if(C.$isRangeSelection(I)){const G=I.anchor.getNode();let de=G.getKey()==="root"?G:V.$findMatchingParent(G,De=>{const Te=De.getParent();return!!Te&&C.$isRootOrShadowRoot(Te)});de||(de=G.getTopLevelElementOrThrow());const ge=de.getKey(),Dt=e.getElementByKey(ge),oe=[];I.hasFormat("bold")&&oe.push("bold"),I.hasFormat("italic")&&oe.push("italic"),I.hasFormat("underline")&&oe.push("underline"),I.hasFormat("strikethrough")&&oe.push("strikethrough"),I.hasFormat("subscript")&&oe.push("subscript"),I.hasFormat("superscript")&&oe.push("superscript"),I.hasFormat("code")&&oe.push("code");const lt=so(I),st=lt.getParent();if(ce.$isLinkNode(st)||ce.$isLinkNode(lt)?(oe.push("link"),N(!0)):N(!1),K(oe),Dt)if(l(ge),fe.$isListNode(de)){const De=V.$getNearestNodeOfType(G,fe.ListNode),Te=De?De.getListType():de.getListType();i(Te)}else{const De=rt.$isHeadingNode(de)?de.getTag():de.getType();if(De in al&&i(De),he.$isCodeNode(de)){const Te=de.getLanguage();A(Te?he.CODE_LANGUAGE_MAP[Te]||Te:"");return}}a(Se.$getSelectionStyleValueForProperty(I,"font-size","15px")),g(Se.$getSelectionStyleValueForProperty(I,"color","#000")),u(Se.$getSelectionStyleValueForProperty(I,"background-color","#fff")),h(Se.$getSelectionStyleValueForProperty(I,"font-family","Arial"))}},[e]);$.useEffect(()=>t.registerCommand(C.SELECTION_CHANGE_COMMAND,(I,G)=>(Z(),n(G),!1),C.COMMAND_PRIORITY_CRITICAL),[t,Z]),$.useEffect(()=>V.mergeRegister(t.registerEditableListener(I=>B(I)),e.registerUpdateListener(({editorState:I})=>I.read(()=>Z())),e.registerCommand(C.CAN_UNDO_COMMAND,I=>(_(I),!1),C.COMMAND_PRIORITY_CRITICAL),e.registerCommand(C.CAN_REDO_COMMAND,I=>(v(I),!1),C.COMMAND_PRIORITY_CRITICAL)),[e,t,Z]);const ie=$.useCallback(I=>{e.update(()=>{const G=C.$getSelection();C.$isRangeSelection(G)&&Se.$patchStyleText(G,I)})},[e]),ot=$.useCallback(()=>{e.update(()=>{const I=C.$getSelection();C.$isRangeSelection(I)&&(Se.$selectAll(I),I.getNodes().forEach(G=>{C.$isTextNode(G)&&(G.setFormat(0),G.setStyle(""),V.$getNearestBlockElementAncestorOrThrow(G).setFormat("")),Y_.$isDecoratorBlockNode(G)&&G.setFormat("")}))})},[e]),Tn=$.useCallback(I=>ie({color:I}),[ie]),yn=$.useCallback(I=>ie({"background-color":I}),[ie]),vn=$.useCallback(()=>{m?t.dispatchCommand(ce.TOGGLE_LINK_COMMAND,null):t.dispatchCommand(ce.TOGGLE_LINK_COMMAND,lg("https://"))},[t,m]),xt=$.useCallback(I=>{e.update(()=>{if(o!==null){const G=C.$getNodeByKey(o);he.$isCodeNode(G)&&G.setLanguage(I)}})},[e,o]),ae=tC();return p.jsxs(Za,{checkedValues:{opts:k},className:gt("LexEditor_Toolbar",ae.box),children:[p.jsx(yt,{disabled:!y||!w,title:kt?"Undo (⌘Z)":"Undo (Ctrl+Z)","aria-label":"Undo",icon:p.jsx(jg,{}),onClick:()=>e.dispatchCommand(C.UNDO_COMMAND,void 0)}),p.jsx(yt,{disabled:!x||!w,title:kt?"Redo (⌘Y)":"Redo (Ctrl+Y)","aria-label":"Redo",icon:p.jsx(zg,{}),onClick:()=>e.dispatchCommand(C.REDO_COMMAND,void 0)}),p.jsx(sr,{}),r in al&&e===t&&p.jsxs(p.Fragment,{children:[p.jsx(V_,{disabled:!w,blockType:r,editor:t}),p.jsx(sr,{})]}),r==="code"?p.jsxs(pr,{children:[p.jsx(mr,{children:p.jsx(yt,{disabled:!w,title:"Select language","aria-label":"Select language",icon:p.jsx(Kg,{}),children:he.getLanguageFriendlyName(S)})}),p.jsx(_r,{children:p.jsx(Cr,{children:nC.map(([I,G],de)=>p.jsx(ue,{onClick:()=>xt(I),children:G},de))})})]}):p.jsxs(p.Fragment,{children:[p.jsx(Ga,{disabled:!w,style:"font-family",value:f,editor:t}),p.jsx(Ga,{disabled:!w,style:"font-size",value:s,editor:t}),p.jsx(sr,{}),p.jsx(Le,{name:"opts",value:"bold",appearance:"subtle",disabled:!w,title:kt?"Bold (⌘B)":"Bold (Ctrl+B)","aria-label":`Format text as bold. Shortcut: ${kt?"⌘B":"Ctrl+B"}`,icon:p.jsx(qa,{}),onClick:()=>e.dispatchCommand(C.FORMAT_TEXT_COMMAND,"bold")}),p.jsx(Le,{name:"opts",value:"italic",appearance:"subtle",disabled:!w,title:kt?"Italic (⌘I)":"Italic (Ctrl+I)","aria-label":`Format text as italics. Shortcut: ${kt?"⌘I":"Ctrl+I"}`,icon:p.jsx(Qa,{}),onClick:()=>e.dispatchCommand(C.FORMAT_TEXT_COMMAND,"italic")}),p.jsx(Le,{name:"opts",value:"underline",appearance:"subtle",disabled:!w,title:kt?"Underline (⌘U)":"Underline (Ctrl+U)","aria-label":`Format text to underlined. Shortcut: ${kt?"⌘U":"Ctrl+U"}`,icon:p.jsx(eu,{}),onClick:()=>e.dispatchCommand(C.FORMAT_TEXT_COMMAND,"underline")}),p.jsx(Le,{name:"opts",value:"strikethrough",appearance:"subtle",disabled:!w,title:"Strikethrough","aria-label":"Format text with a strikethrough",icon:p.jsx(tu,{}),onClick:()=>e.dispatchCommand(C.FORMAT_TEXT_COMMAND,"strikethrough")}),p.jsx(Le,{name:"opts",value:"subscript",appearance:"subtle",disabled:!w,title:"Subscript","aria-label":"Format text with a subscript",icon:p.jsx(nu,{}),onClick:()=>e.dispatchCommand(C.FORMAT_TEXT_COMMAND,"subscript")}),p.jsx(Le,{name:"opts",value:"superscript",appearance:"subtle",disabled:!w,title:"Superscript","aria-label":"Format text with a superscript",icon:p.jsx(ru,{}),onClick:()=>e.dispatchCommand(C.FORMAT_TEXT_COMMAND,"superscript")}),p.jsx(Le,{name:"opts",value:"code",appearance:"subtle",disabled:!w,title:"Insert code block","aria-label":"Insert code block",icon:p.jsx(Ti,{}),onClick:()=>e.dispatchCommand(C.FORMAT_TEXT_COMMAND,"code")}),p.jsx(Le,{name:"opts",value:"link",appearance:"subtle",disabled:!w,title:"Insert link","aria-label":"Insert link",icon:p.jsx(iu,{}),onClick:vn}),p.jsx(Ua,{disabled:!w,ariaLabel:"Formatting text color",color:c,icon:p.jsx(Hg,{}),onChange:Tn}),p.jsx(Ua,{disabled:!w,ariaLabel:"Formatting background color",color:d,icon:p.jsx(Wg,{}),onChange:yn}),p.jsx(yt,{disabled:!w,title:"Clear text formatting","aria-label":"Clear all text formatting",icon:p.jsx(Ug,{}),onClick:ot}),p.jsx(sr,{}),p.jsxs(pr,{children:[p.jsx(mr,{children:p.jsx(yt,{disabled:!w,title:"Insert","aria-label":"Insert specialized editor node",icon:p.jsx(Gg,{}),children:"Insert"})}),p.jsx(_r,{children:p.jsxs(Cr,{children:[p.jsx(ue,{icon:p.jsx(Yg,{}),onClick:()=>e.dispatchCommand(jt.INSERT_HORIZONTAL_RULE_COMMAND,void 0),children:"Horizontal Rule"}),p.jsxs(ds,{children:[p.jsx(yi,{disableButtonEnhancement:!0,children:p.jsx(ue,{icon:p.jsx(Jg,{}),children:"Image"})}),p.jsx(gs,{children:p.jsx(g_,{editor:e})})]}),p.jsxs(ds,{children:[p.jsx(yi,{disableButtonEnhancement:!0,children:p.jsx(ue,{icon:p.jsx(Vg,{}),children:"Table"})}),p.jsx(gs,{children:p.jsx(K_,{editor:e})})]}),p.jsx(ue,{icon:p.jsx(Xg,{}),onClick:()=>t.dispatchCommand(ig,void 0),children:"Collapsible"})]})})]})]}),p.jsx(sr,{}),p.jsxs(pr,{children:[p.jsx(mr,{children:p.jsx(yt,{disabled:!w,title:"Align","aria-label":"Formatting options for text alignment",icon:p.jsx(fs,{}),children:"Align"})}),p.jsx(_r,{children:p.jsxs(Cr,{children:[p.jsx(ue,{icon:p.jsx(fs,{}),onClick:()=>e.dispatchCommand(C.FORMAT_ELEMENT_COMMAND,"left"),children:"Left Align"}),p.jsx(ue,{icon:p.jsx(Zg,{}),onClick:()=>e.dispatchCommand(C.FORMAT_ELEMENT_COMMAND,"center"),children:"Center Align"}),p.jsx(ue,{icon:p.jsx(qg,{}),onClick:()=>e.dispatchCommand(C.FORMAT_ELEMENT_COMMAND,"right"),children:"Right Align"}),p.jsx(ue,{icon:p.jsx(Qg,{}),onClick:()=>e.dispatchCommand(C.FORMAT_ELEMENT_COMMAND,"justify"),children:"Justify Align"}),p.jsx(ef,{}),p.jsx(ue,{icon:p.jsx(tf,{}),onClick:()=>e.dispatchCommand(C.OUTDENT_CONTENT_COMMAND,void 0),children:"Outdent"}),p.jsx(ue,{icon:p.jsx(nf,{}),onClick:()=>e.dispatchCommand(C.INDENT_CONTENT_COMMAND,void 0),children:"Indent"})]})})]})]})}const iC=it({ltr:{textAlign:"left"},rtl:{textAlign:"right"},paragraph:{...P.margin(0),position:"relative"},quote:{...P.margin(0),marginLeft:"20px",marginBottom:"10px",fontSize:"15px",color:"rgb(101, 103, 107)",borderLeftColor:"rgb(206, 208, 212)",borderLeftWidth:"4px",borderLeftStyle:"solid",paddingLeft:"16px"},h1:{fontSize:"24px",color:"rgb(5, 5, 5)",fontWeight:400,...P.margin(0)},h2:{fontSize:"15px",color:"rgb(101, 103, 107)",fontWeight:700,...P.margin(0),textTransform:"uppercase"},h3:{fontSize:"12px",...P.margin(0),textTransform:"uppercase"},textBold:{fontWeight:"bold"},textItalic:{fontStyle:"italic"},textSubscript:{fontSize:"0.8em",verticalAlign:"sub !important"},textSuperscript:{fontSize:"0.8em",verticalAlign:"super"},textCode:{backgroundColor:"rgb(240, 242, 245)",...P.padding("1px","0.25rem"),fontFamily:"Menlo, Consolas, Monaco, monospace",fontSize:"94%"},code:{backgroundColor:"rgb(240, 242, 245)",fontFamily:"Menlo, Consolas, Monaco, monospace",display:"block",...P.padding("8px","8px","8px","52px"),lineHeight:1.53,fontSize:"13px",...P.margin(0),marginTop:"8px",marginBottom:"8px",tabSize:2,overflowX:"auto",position:"relative",":before":{content:"attr(data-gutter)",position:"absolute",backgroundColor:"#eee",left:0,top:0,...P.borderRight("1px","solid","#ccc"),...P.padding("8px"),color:"#777",whiteSpace:"pre-wrap",textAlign:"right",minWidth:"25px"}},table:{borderCollapse:"collapse",borderSpacing:0,maxWidth:"100%",overflowY:"scroll",tableLayout:"fixed",width:"calc(100% - 25px)",...P.margin("30px",0)},tableSelected:{...P.outline("2px","solid","rgb(60, 132, 244)")},tableCell:{...P.border("1px","solid","#bbb"),minWidth:"75px",verticalAlign:"top",textAlign:"start",...P.padding("6px","8px"),position:"relative",cursor:"default",...P.outline("none")},tableCellSortedIndicator:{display:"block",opacity:.5,position:"absolute",bottom:0,left:0,width:"100%",height:"4px",backgroundColor:"#999"},tableCellResizer:{position:"absolute",right:"-4px",height:"100%",width:"8px",cursor:"ew-resize",zIndex:10,top:0},tableCellHeader:{backgroundColor:"#f2f3f5",textAlign:"start"},tableCellSelected:{backgroundColor:"#c9dbf0"},tableCellPrimarySelected:{...P.border("2px","solid","rgb(60, 132, 244)"),display:"block",height:"calc(100% - 2px)",position:"absolute",width:"calc(100% - 2px)",left:"-1px",top:"-1px",zIndex:2},tableCellEditing:{boxShadow:"0 0 5px rgba(0, 0, 0, 0.4)",...P.borderRadius("3px")},tableAddColumns:{position:"absolute",top:0,width:"20px",backgroundColor:"#eee",height:"100%",right:0,...P.border(0),cursor:"pointer",":after":{backgroundSize:"contain",backgroundRepeat:"no-repeat",display:"block",content:'" "',position:"absolute",top:0,left:0,width:"100%",height:"100%",opacity:.4},":hover":{backgroundColor:"#c9dbf0"}},tableAddRows:{position:"absolute",bottom:"-25px",width:"calc(100% - 25px)",backgroundColor:"#eee",height:"20px",left:0,...P.border(0),cursor:"pointer",":after":{backgroundSize:"contain",backgroundRepeat:"no-repeat",display:"block",content:'" "',position:"absolute",top:0,left:0,width:"100%",height:"100%",opacity:.4},":hover":{backgroundColor:"#c9dbf0"}},tableCellResizeRuler:{display:"block",position:"absolute",width:"1px",backgroundColor:"rgb(60, 132, 244)",height:"100%",top:0},tableCellActionButtonContainer:{display:"block",right:"5px",top:"2px",position:"absolute",zIndex:4},tableCellActionButton:{backgroundColor:"#eee",display:"block",...P.border(0),...P.borderRadius("20px"),width:"20px",height:"20px",color:"#222",cursor:"pointer",":hover":{backgroundColor:"#ddd"}},ol1:{...P.padding(0),...P.margin(0),marginLeft:"16px",listStylePosition:"inside"},ol2:{...P.padding(0),...P.margin(0),marginLeft:"16px",listStyleType:"upper-alpha",listStylePosition:"inside"},ol3:{...P.padding(0),...P.margin(0),marginLeft:"16px",listStyleType:"lower-alpha",listStylePosition:"inside"},ol4:{...P.padding(0),...P.margin(0),marginLeft:"16px",listStyleType:"upper-roman",listStylePosition:"inside"},ol5:{...P.padding(0),...P.margin(0),marginLeft:"16px",listStyleType:"lower-roman",listStylePosition:"inside"},ul:{...P.padding(0),...P.margin(0),marginLeft:"16px",listStylePosition:"inside"},listItem:{...P.margin(0,"8px")},tokenComment:{color:"slategray"},tokenPunctuation:{color:"#999"},tokenProperty:{color:"#905"},tokenSelector:{color:"#690"},tokenOperator:{color:"#9a6e3a"},tokenAttr:{color:"#07a"},tokenVariable:{color:"#e90"},tokenFunction:{color:"#dd4a68"},embedBlock:{userSelect:"none"},embedBlockFocus:{...P.outline("2px solid rgb(60, 132, 244)")}});function xg(){const t=iC();return{blockCursor:"LexEditor_blockCursor",code:gt(t.code,"LexEditor_code"),codeHighlight:{atrule:t.tokenAttr,attr:t.tokenAttr,boolean:t.tokenProperty,builtin:t.tokenSelector,cdata:t.tokenComment,char:t.tokenSelector,class:t.tokenFunction,"class-name":t.tokenFunction,comment:t.tokenComment,constant:t.tokenProperty,deleted:t.tokenProperty,doctype:t.tokenComment,entity:t.tokenOperator,function:t.tokenFunction,important:t.tokenVariable,inserted:t.tokenSelector,namespace:t.tokenVariable,number:t.tokenProperty,operator:t.tokenOperator,prolog:t.tokenComment,property:t.tokenProperty,punctuation:t.tokenPunctuation,regex:t.tokenVariable,selector:t.tokenSelector,string:t.tokenSelector,symbol:t.tokenProperty,tag:t.tokenProperty,url:t.tokenOperator,variable:t.tokenVariable},embedBlock:{base:t.embedBlock,focus:t.embedBlockFocus},heading:{h1:t.h1,h2:t.h2,h3:t.h3},image:"LexEditor_Image",link:"LexEditor_link",list:{listitem:t.listItem,listitemChecked:"LexEditor_listItemChecked",listitemUnchecked:"LexEditor_listItemUnchecked",nested:{listitem:"LexEditor_nestedListItem"},olDepth:[t.ol1,t.ol2,t.ol3,t.ol4,t.ol5],ul:t.ul},ltr:t.ltr,mark:"LexEditor_mark",markOverlap:"LexEditor_markOverlap",paragraph:t.paragraph,quote:t.quote,rtl:t.rtl,table:t.table,tableAddColumns:gt(t.tableAddColumns,"LexEditor_tableAddColumns"),tableAddRows:gt(t.tableAddRows,"LexEditor_tableAddRows"),tableCell:t.tableCell,tableCellActionButton:t.tableCellActionButton,tableCellActionButtonContainer:t.tableCellActionButtonContainer,tableCellEditing:t.tableCellEditing,tableCellHeader:t.tableCellHeader,tableCellPrimarySelected:t.tableCellPrimarySelected,tableCellResizer:t.tableCellResizer,tableCellSelected:t.tableCellSelected,tableCellSortedIndicator:t.tableCellSortedIndicator,tableResizeRuler:t.tableCellResizeRuler,tableSelected:t.tableSelected,text:{bold:t.textBold,code:t.textCode,italic:t.textItalic,strikethrough:"LexEditor_textStrikethrough",subscript:t.textSubscript,superscript:t.textSuperscript,underline:"LexEditor_textUnderline",underlineStrikethrough:"LexEditor_textUnderlineStrikethrough"}}}var Ng={},oC=X,Ar=$,lC=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?Ar.useLayoutEffect:Ar.useEffect;Ng.ContentEditable=function({ariaActiveDescendant:t,ariaAutoComplete:e,ariaControls:n,ariaDescribedBy:r,ariaExpanded:i,ariaLabel:o,ariaLabelledBy:l,ariaMultiline:s,ariaOwns:a,ariaRequired:c,autoCapitalize:g,className:d,id:u,role:f="textbox",spellCheck:h=!0,style:m,tabIndex:N,"data-testid":y}){let[_]=oC.useLexicalComposerContext(),[x,v]=Ar.useState(!1),S=Ar.useCallback(A=>{_.setRootElement(A)},[_]);return lC(()=>(v(_.isEditable()),_.registerEditableListener(A=>{v(A)})),[_]),Ar.createElement("div",{"aria-activedescendant":x?t:void 0,"aria-autocomplete":x?e:"none","aria-controls":x?n:void 0,"aria-describedby":r,"aria-expanded":x&&f==="combobox"?!!i:void 0,"aria-label":o,"aria-labelledby":l,"aria-multiline":s,"aria-owns":x?a:void 0,"aria-required":c,autoCapitalize:g,className:d,contentEditable:x,"data-testid":y,id:u,ref:S,role:x?f:void 0,spellCheck:h,style:m,tabIndex:N})};const sC=Ng;var aC=sC;const uC=it({root:{...P.border(0),fontSize:"15px",display:"block",position:"relative",tabSize:1,...P.outline(0),...P.padding("8px","28px"),minHeight:"calc(100% - 16px)"},table:{minHeight:"20px",...P.border(0),resize:"none",cursor:"text",display:"block",position:"relative",tabSize:1,...P.outline(0),...P.padding(0),userSelect:"text",fontSize:"15px",whiteSpace:"pre-wrap",wordBreak:"break-word",zIndex:3},display:{...P.padding(0)}});function Ya({className:t,table:e}){const n=uC(),{Display:r}=vc();return p.jsx(aC.ContentEditable,{className:gt("LexEditor_Content",t||e?n.table:n.root,!e&&r&&n.display)})}const cC=it({box:{fontSize:"15px",color:"#999",...P.overflow("hidden"),position:"absolute",textOverflow:"ellipsis",top:"8px",left:"28px",right:"28px",userSelect:"none",whiteSpace:"nowrap",display:"inline-block",pointerEvents:"none"}});function dC({children:t,className:e}){const n=cC();return p.jsx("div",{className:e||n.box,children:t})}const gC=it({shell:{lineHeight:"1.7"},container:{position:"relative"},noTreeView:{borderBottomLeftRadius:an.borderRadiusLarge,borderBottomRightRadius:an.borderRadiusLarge},scroller:{minHeight:"150px",...P.overflow("auto"),resize:"vertical"}});function fC(){of(X.useLexicalComposerContext()[0]);const{Namespace:t,OnError:e,Placeholder:n,Display:r,Plugin:{Actions:i,AutoFocus:o,AutoLink:l,CheckList:s,ClickableLink:a,CodeActionMenu:c,CodeHighlight:g,Collapsible:d,DraggableBlock:u,FloatingLinkEditor:f,FloatingTextFormatToolbar:h,HorizontalRule:m,Images:N,Link:y,ListMaxIndentLevel:_,List:x,MarkdownShortcut:v,TabFocus:S,TabIndentation:A,Table:w,Toolbar:B}}=vc(),k=p.jsx(dC,{children:n||"Let's say something awesome...."}),[K,Z]=$.useState(),ie=gC();return p.jsxs("div",{className:gt("LexEditor_Shell",ie.shell),children:[B&&p.jsx(rC,{}),p.jsxs("div",{className:gt(...r?[]:[ie.container,ie.noTreeView,ie.scroller]),ref:ot=>ot&&Z(ot),children:[o&&p.jsx(Fs.AutoFocusPlugin,{}),l&&p.jsx(Dm,{}),s&&p.jsx(vh.CheckListPlugin,{}),a&&p.jsx(Aa,{}),g&&p.jsx(Bm,{}),d&&p.jsx(zm,{}),m&&p.jsx(d_,{}),N&&p.jsx(Ia,{}),y&&p.jsx(Pa,{}),_&&p.jsx($_,{maxDepth:_}),x&&p.jsx(kh.ListPlugin,{}),v&&p.jsx(D_,{}),p.jsx(la.RichTextPlugin,{contentEditable:p.jsx(Ya,{}),placeholder:!r&&k,ErrorBoundary:qs}),S&&p.jsx(b_,{}),A&&p.jsx(Ep.TabIndentationPlugin,{}),w&&p.jsxs(W_,{cellEditorConfig:{namespace:t,nodes:[...Ip],onError:e,theme:xg()},children:[p.jsx(Fs.AutoFocusPlugin,{}),p.jsx(Aa,{}),p.jsx(ka,{}),p.jsx(Ia,{captionsEnabled:!1}),p.jsx(Pa,{}),p.jsx(la.RichTextPlugin,{contentEditable:p.jsx(Ya,{table:!0}),placeholder:null,ErrorBoundary:qs})]}),K&&p.jsxs(p.Fragment,{children:[i&&p.jsx(Em,{anchor:K}),c&&p.jsx(Fm,{anchor:K}),u&&p.jsx(qm,{anchor:K}),f&&p.jsx(l_,{anchor:K}),h&&p.jsx(ka,{anchor:K})]})]})]})}var En={},$t=C,di=V;class ei extends $t.ElementNode{static getType(){return"mark"}static clone(e){return new ei(Array.from(e.__ids),e.__key)}static importDOM(){return null}static importJSON(e){let n=Wi(e.ids);return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),ids:this.getIDs(),type:"mark",version:1}}constructor(e,n){super(n),this.__ids=e||[]}createDOM(e){let n=document.createElement("mark");return di.addClassNamesToElement(n,e.theme.mark),1{throw s},State:i,Placeholder:o,Display:l}){return n=l?!1:n,p.jsx(qf.LexicalComposer,{initialConfig:{editorState:i,namespace:t,nodes:[...CC],onError:r,theme:xg(),editable:n},children:p.jsx(th,{Namespace:t,Plugin:l?Qf:e,Editable:n,OnError:r,State:i,Placeholder:o,Display:l,children:p.jsx(z_,{children:p.jsx(fC,{})})})})}const vC=Object.freeze(Object.defineProperty({__proto__:null,default:xC},Symbol.toStringTag,{value:"Module"}));export{Nd as $,_g as C,kt as I,X as L,dC as P,rr as T,C as a,V as b,Fs as c,Pa as d,la as e,Ya as f,qs as g,k_ as h,Jh as i,yC as j,qh as k,F_ as l,Hi as m,fg as n,Pn as o,I_ as p,vC as q,Zp as u}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/Component-7VbI7F8z.js","assets/vendor-EPO6t9z0.js","assets/LexicalNestedComposer-adJhyL2F.js","assets/index-th8hOfI3.js","assets/index-mRiAC1cH.css","assets/Component-yD7WLU4o.js"] + __vite__mapDeps.viteFileDeps = ["assets/Component-dbiRH4vW.js","assets/vendor-nd_CUwkm.js","assets/LexicalNestedComposer-UM2hmsAs.js","assets/index-g5wBm8kU.js","assets/index-mRiAC1cH.css","assets/Component-H1hIVv9X.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } diff --git a/assets/index-Q8F0QMId.js b/assets/index-Q8F0QMId.js deleted file mode 100644 index 8a94fd7..0000000 --- a/assets/index-Q8F0QMId.js +++ /dev/null @@ -1 +0,0 @@ -import{m as c,t as i,x as m,j as n,aP as y,aQ as h,aR as G,O as j,J as g,aA as v,a3 as d,aS as C,aq as R}from"./vendor-EPO6t9z0.js";import{L as f,C as L,H as u,G as b,F,D as N,a as S}from"./index-th8hOfI3.js";import{c as M,b as k,e as P}from"./isArrayLike--sVJAW2Y.js";import{i as $}from"./isObject-tyZXtoJz.js";import{t as x}from"./toFinite-GMFxiq4g.js";function E(e,a,s){if(!$(s))return!1;var r=typeof a;return(r=="number"?M(s)&&k(a,s.length):r=="string"&&a in s)?P(s[a],e):!1}var I=Math.floor,q=Math.random;function z(e,a){return e+I(q()*(a-e+1))}var A=parseFloat,B=Math.min,H=Math.random;function T(e,a,s){if(s&&typeof s!="boolean"&&E(e,a,s)&&(a=s=void 0),s===void 0&&(typeof a=="boolean"?(s=a,a=void 0):typeof e=="boolean"&&(s=e,e=void 0)),e===void 0&&a===void 0?(e=0,a=1):(e=x(e),a===void 0?(a=e,e=0):a=x(a)),e>a){var r=e;e=a,a=r}if(s||e%1||a%1){var t=H();return B(e+t*(a-e+A("1e-"+((t+"").length-1))),a)}return z(e,a)}const V=c({card:{flexBasis:"23%",flexGrow:0},img:{aspectRatio:"1",...L,borderTopLeftRadius:i.borderRadiusMedium,borderTopRightRadius:i.borderRadiusMedium}}),l=new f("Gallery","Category","Card");function D({Id:e}){const a=V(),{data:s}=m(()=>u.Product.Get.Basic(e,l),{onError:l.error});return n.jsxs(y,{className:a.card,children:[n.jsx(h,{children:n.jsx(b,{className:a.img,Guid:s?.Cover,Log:l})}),n.jsx(G,{children:n.jsx(j,{children:n.jsx(g,{href:`/Product/${e}`,children:s?.Name||"Loading..."})})})]})}const O=c({card:{flexBasis:"23%",flexGrow:0},cate:{...F,flexWrap:"wrap",justifyContent:"space-evenly",columnGap:i.spacingVerticalL,rowGap:i.spacingVerticalXL}}),X=new f("Gallery","Category");function J({Category:e}){const a=O(),{data:s,loading:r}=m(()=>u.Gallery.Get.Products(e),{onError:X.error});return n.jsxs(n.Fragment,{children:[n.jsx(v,{children:e}),n.jsx("div",{className:a.cate,children:r?n.jsx(d,{size:128}):s[0].map((t,o)=>n.jsx(D,{Id:t},o)).concat(Array(s[1]).fill(null).map((t,o)=>n.jsx("div",{className:a.card},o+T(10,100))))})]})}const Q=c({main:{...S,rowGap:i.spacingVerticalXL}}),W=new f("Gallery");function p(){const e=Q(),{data:a,loading:s}=m(()=>u.Gallery.Get.Categories(),{onError:W.error});return s?n.jsxs(C,{className:e.main,children:[n.jsx(d,{appearance:"translucent",size:32}),n.jsx(d,{size:128})]}):n.jsxs("div",{className:e.main,children:[n.jsx(R,{children:n.jsxs("title",{children:["Gallery - ",N.Name]})}),a?.map((r,t)=>n.jsx(J,{Category:r},t))]})}export{p as default}; diff --git a/assets/index-R38jE5Oz.js b/assets/index-R38jE5Oz.js new file mode 100644 index 0000000..6764a42 --- /dev/null +++ b/assets/index-R38jE5Oz.js @@ -0,0 +1 @@ +import{x as o,j as t,y as e}from"./vendor-nd_CUwkm.js";import{L as a,H as n,f as i}from"./index-g5wBm8kU.js";import{H as m}from"./Columns-QCD_DZcc.js";const s=new a("History");function l(){const{data:r}=o(()=>n.Order.Get.List(s),{onError:s.error});return t.jsx(i,{Items:r,Columns:e(()=>m(s))})}export{l as default}; diff --git a/assets/index-9edqmHqr.js b/assets/index-ZS4E269H.js similarity index 98% rename from assets/index-9edqmHqr.js rename to assets/index-ZS4E269H.js index d9d4019..4174e31 100644 --- a/assets/index-9edqmHqr.js +++ b/assets/index-ZS4E269H.js @@ -1 +1 @@ -import{m as N,j as e,T as y,b as P,F as M,B as i,r as S,ah as He,a5 as x,a6 as g,a7 as f,o as k,I as B,aE as J,aF as F,t as E,x as I,aG as ve,ac as xe,ad as pe,ae as je,af as q,ag as Ce,L as ge,aH as fe,aI as _,ab as K,D as W,n as V,g as Z,h as ee,i as ne,k as se,aa as Ie,N as re,aB as be,aj as ye,ak as Pe,ao as Ae,O as ke,z as Oe,aJ as Me,aK as Be,c as qe,l as Le,aL as ze,a1 as $e,$ as _e,a0 as Xe,a2 as Qe,a3 as Ye,a8 as we,aM as Je,ar as Ke}from"./vendor-EPO6t9z0.js";import{L as b,a as U,e as w,A as h,F as $,f as G,c as Q,H as L,C as We,G as Ze,M as Ge}from"./index-th8hOfI3.js";import{O as en,a as nn,H as sn}from"./Columns-udWp41vx.js";import{t as rn}from"./toFinite-GMFxiq4g.js";import{L as tn}from"./Lazy-epdmnhOX.js";import"./isObject-tyZXtoJz.js";function an(n){var s=rn(n),r=s%1;return s===s?r?s-r:s:0}function Re(n){return typeof n=="number"&&n==an(n)}const on=N({body:{...U,alignItems:"flex-start"}}),cn=new b("Admin","Order","Detail","Action");function ln({OrderId:n,Status:s,Refresh:r}){const t=on(),{dispatch:o,dispatchToast:a}=w(cn),{run:c}=h.Order.Post.useAccept({manual:!0,onError(l,u){o({Message:"Failed Accept Order",Request:u,Error:l})},onSuccess(){a(e.jsx(y,{children:e.jsx(P,{children:"Order Accepted"})}),{intent:"success"}),r()}});switch(s){case"Processing":case"Shipping":case"Finished":case"Cancelled":case"Returning":return null}return e.jsx(M,{label:"Action",size:"large",children:e.jsx("div",{className:t.body,children:s==="Pending"&&e.jsx(i,{appearance:"subtle",onClick:()=>c(n),children:"Accept Order"})})})}const dn=N({body:{...$,justifyContent:"space-between"}}),un=new b("Admin","Order","Detail","Append");function mn({OrderId:n,Refresh:s}){const r=dn(),[t,o]=S.useState(),{dispatch:a,dispatchToast:c}=w(un),{run:l}=h.Order.Post.useAppend({manual:!0,onError(j,d){a({Message:"Failed Append Comment",Request:d,Error:j})},onSuccess(){c(e.jsx(y,{children:e.jsx(P,{children:"Comment Appended"})}),{intent:"success"}),s()}}),{run:u}=h.Order.Post.useClose({manual:!0,onError(j,d){a({Message:"Failed Close Order",Request:d,Error:j})},onSuccess(){c(e.jsx(y,{children:e.jsx(P,{children:"Order Closed"})}),{intent:"success"}),s()}});return e.jsxs(e.Fragment,{children:[e.jsx(M,{label:"Append",size:"large",children:e.jsx(He,{value:t,onChange:(j,d)=>o(d.value),maxLength:1e3})}),e.jsxs("div",{className:r.body,children:[e.jsx(i,{onClick:()=>u(n,t),children:"Force Close with Reason"}),e.jsx(i,{appearance:"primary",onClick:()=>l(n,t),children:"Add Comment"})]})]})}const Ne=N({ten:{flexBasis:"10%",flexGrow:0}}),hn=[x({columnId:"Product",renderHeaderCell(){return e.jsx(g,{children:"Name"})},renderCell(n){return e.jsx(f,{children:n.Name})}}),x({columnId:"Type",renderHeaderCell(){return e.jsx(g,{children:"Type"})},renderCell(n){return e.jsx(f,{children:Object.entries(n.Type).reduce((s,r)=>`${s} ${r[0]} : ${r[1]} ;`,"")})}}),x({columnId:"Quantity",renderHeaderCell(){return e.jsx(g,{className:Ne().ten,children:"Quantity"})},renderCell(n){return e.jsx(f,{className:Ne().ten,children:n.Quantity})}})];function xn({Items:n}){return e.jsx(G,{Items:n,Columns:hn})}const pn=new b("Admin","Order","Detail","Shipment");function jn({OrderId:n,TrackingNumber:s,Refresh:r}){const[t,{setTrue:o,setFalse:a}]=k(),[c,l]=S.useState(s),{dispatch:u,dispatchToast:j}=w(pn),{run:d}=h.Order.Post.useShip({manual:!0,onError(C,m){u({Message:"Failed Update Tracking Number",Request:m,Error:C})},onSuccess(){j(e.jsx(y,{children:e.jsx(P,{children:"Tracking Number Updated"})}),{intent:"success"}),a(),r()}});return e.jsx(M,{label:"Shipment",size:"large",children:e.jsx(B,{value:c,disabled:!t,appearance:"underline",onChange:(C,m)=>l(m.value),placeholder:"Fill in this field to ship the order.",contentAfter:t?e.jsx(i,{appearance:"subtle",icon:e.jsx(J,{}),onClick:()=>d(n,c)}):e.jsx(i,{appearance:"subtle",icon:e.jsx(F,{}),onClick:o})})})}const Cn=N({body:{...U,rowGap:E.spacingVerticalXL}}),te=new b("Admin","Order","Detail");function gn({OrderId:n}){const s=Cn(),[r,{setTrue:t,setFalse:o}]=k(),{Nav:a,Paths:c}=Q(),l=parseInt(c.at(2)),{data:u,run:j}=I(()=>h.Order.Get.Detail(n,te),{manual:!0,onError:te.error}),{data:d,run:C}=I(()=>h.Order.Get.Order(n),{onError(p){a("Admin","Order"),te.error(p)},manual:!0});function m(){C(),j()}return S.useEffect(()=>{l===n?(m(),t()):o()},[l]),e.jsxs(e.Fragment,{children:[e.jsx(i,{appearance:"subtle",icon:e.jsx(ve,{}),onClick:()=>a("Admin","Order",n)}),e.jsxs(xe,{open:r,position:"end",size:"medium",modalType:"alert",children:[e.jsx(pe,{children:e.jsx(je,{action:e.jsx(i,{appearance:"subtle",icon:e.jsx(q,{}),onClick:()=>a("Admin","Order")}),children:"Order Detail"})}),e.jsxs(Ce,{className:s.body,children:[e.jsx(en,{OrderId:n,Order:d,Admin:!0}),e.jsx(M,{label:"Required Products",size:"large",children:e.jsx(xn,{Items:u?.ShopCart})}),e.jsx(jn,{OrderId:n,TrackingNumber:d?.TrackingNumber,Refresh:m}),e.jsx(nn,{Comments:u?.Comments}),e.jsx(mn,{OrderId:n,Refresh:m}),e.jsx(ln,{OrderId:n,Status:d?.Status,Refresh:m})]})]})]})}const Y=N({two:{flexBasis:"2.5%",flexGrow:0},twoc:{flexBasis:"2.5%",flexGrow:0,justifyContent:"center"},ten:{flexBasis:"10%",flexGrow:0}}),ie=new b("Admin","Order"),fn=[...sn(ie).slice(0,-1),x({columnId:"User",renderHeaderCell:()=>e.jsx(g,{className:Y().ten,children:"User"}),renderCell(n){return e.jsx(f,{className:Y().ten,children:n.User})}}),x({columnId:"Action",renderHeaderCell:()=>e.jsx(g,{className:Y().two,children:"Action"}),renderCell(n){return e.jsx(f,{className:Y().twoc,children:e.jsx(gn,{OrderId:n.Id})})}})];function bn(){const{data:n}=I(()=>h.Order.Get.List(ie),{onError:ie.error});return e.jsx(G,{Items:n,Columns:fn})}const yn=N({body:{...$,alignItems:"center"},input:{flexGrow:1}}),ae=new b("Admin","Product","Detail","Category");function Pn({ProdId:n}){const[s,r]=S.useState(""),[t,{setTrue:o,setFalse:a}]=k();I(()=>h.Product.Get.Category(n),{onSuccess(A){A&&r(A)},onError:ae.error});const{dispatch:c,dispatchToast:l}=w(ae),{run:u}=h.Product.Patch.useCategory({manual:!0,onError(A,v){c({Message:"Failed Update Category",Request:v,Error:A})},onSuccess(){l(e.jsx(y,{children:e.jsx(P,{children:"Category Updated"})}),{intent:"success"}),a()}}),{run:j}=h.Product.Delete.useCategory({manual:!0,onError(A,v){c({Message:"Failed Detach Category",Request:v,Error:A})},onSuccess(){l(e.jsx(y,{children:e.jsx(P,{children:"Category Detached"})}),{intent:"success"}),a()}}),{data:d}=I(()=>L.Gallery.Get.Categories(),{onSuccess(A){m(A)},onError:ae.error}),[C,m]=S.useState(d),[p,D]=S.useState(""),T=yn();return e.jsxs("div",{className:T.body,children:[e.jsx(ge,{size:"large",disabled:!t,children:"Category"}),e.jsxs(fe,{className:T.input,size:"large",disabled:!t,freeform:!0,placeholder:s||"Pending",appearance:"underline",onChange:A=>{const v=A.target.value.trim(),R=d?.filter(Ue=>Ue.toLowerCase().indexOf(v.toLowerCase())===0);m(R),v&&R&&R.length<1?D(v):D("")},onOptionSelect:(A,v)=>{const R=v.optionText;r(R),R&&d?.includes(R)?D(""):D(R)},children:[p&&e.jsxs(_,{text:p,children:['Create New "',p,'"']},p),C?.map(A=>e.jsx(_,{children:A},A)),C?.length===d?.length?e.jsx(_,{text:"",children:"Pending"},""):null]}),t?e.jsx(i,{appearance:"subtle",icon:e.jsx(J,{}),onClick:()=>{s?u(n,s):j(n)}}):e.jsx(i,{appearance:"subtle",icon:e.jsx(F,{}),onClick:o})]})}const An=new b("Admin","Product","Detail","Combo","Delete");function wn({ComboId:n,Refresh:s}){const{dispatch:r,dispatchToast:t}=w(An),{run:o}=h.Product.Delete.useCombo({manual:!0,onError(a,c){r({Message:"Failed Delete Combo",Request:c,Error:a})},onSuccess(){t(e.jsx(y,{children:e.jsx(P,{children:"Combo Deleted"})}),{intent:"success"}),s()}});return e.jsx(i,{appearance:"subtle",icon:e.jsx(K,{}),onClick:()=>o(n)})}const Nn=[x({columnId:"Variant",renderHeaderCell:()=>e.jsx(g,{children:"Variant"}),renderCell(n){return e.jsx(f,{children:n.Name})}}),x({columnId:"Type",renderHeaderCell:()=>e.jsx(g,{children:"Type"}),renderCell(n){return e.jsx(f,{children:e.jsx(fe,{defaultValue:n.Current,defaultSelectedOptions:[n.Current],onOptionSelect:(s,r)=>n.Update(r.optionValue),children:n.Types.map((s,r)=>e.jsx(_,{children:s},r))})})}})],Sn=N({body:{...$,justifyContent:"flex-end",alignItems:"center",columnGap:E.spacingVerticalM,marginTop:E.spacingHorizontalM}}),oe=new b("Admin","Product","Detail","Combo","Detail");function Dn({Id:n,ProdId:s,Combo:r,Stock:t,Refresh:o}){const[a,{toggle:c}]=k(),[l,u]=S.useState(r),[j,d]=S.useState(t),{data:C}=I(()=>h.Product.Get.Variants(s,oe),{onError:oe.error}),{dispatch:m,dispatchToast:p}=w(oe),{run:D}=h.Product.Patch.useCombo({manual:!0,onError(T,A){m({Message:"Failed Update Combo",Request:A,Error:T})},onSuccess(){p(e.jsx(y,{children:e.jsx(P,{children:"Combo Updated"})}),{intent:"success"}),o(),c()}});return e.jsxs(W,{open:a,onOpenChange:c,children:[e.jsx(V,{disableButtonEnhancement:!0,children:e.jsx(i,{appearance:"subtle",icon:e.jsx(F,{})})}),e.jsx(Z,{children:e.jsxs(ee,{children:[e.jsx(ne,{action:e.jsx(V,{disableButtonEnhancement:!0,children:e.jsx(i,{appearance:"subtle",icon:e.jsx(q,{})})}),children:"Combo Detail"}),e.jsxs(se,{children:[e.jsx(G,{Items:C?.map(T=>({Current:l[T.Name],Update(A){l[T.Name]=A,u({...l})},...T})),Columns:Nn}),e.jsxs("div",{className:Sn().body,children:[e.jsx(ge,{children:"Stock"}),e.jsx(Ie,{value:j,min:0,onChange:(T,A)=>{if(A.value)d(A.value);else if(A.displayValue){const v=parseInt(A.displayValue);Re(v)&&d(v)}}}),e.jsx(i,{appearance:"primary",onClick:()=>D(n,l,j),children:"Submit"})]})]})]})})]})}const En=[x({columnId:"Variant",renderHeaderCell:()=>e.jsx(g,{children:"Variant"}),renderCell(n){return e.jsx(f,{children:n.Name})}}),x({columnId:"Type",renderHeaderCell:()=>e.jsx(g,{children:"Type"}),renderCell(n){return e.jsx(f,{children:e.jsx(fe,{onOptionSelect:(s,r)=>n.Update(r.optionValue),children:n.Types.map((s,r)=>e.jsx(_,{children:s},r))})})}})],Tn=N({body:{...$,justifyContent:"flex-end",alignItems:"center",columnGap:E.spacingVerticalM,marginTop:E.spacingHorizontalM}}),ce=new b("Admin","Product","Detail","Combo","NewCombo");function vn({ProdId:n,Refresh:s}){const[r,{toggle:t}]=k(),[o,a]=S.useState({}),[c,l]=S.useState(1),{data:u}=I(()=>h.Product.Get.Variants(n,ce),{onSuccess(m){for(const p of m)o[p.Name]="";a({...o})},onError:ce.error}),{dispatch:j,dispatchToast:d}=w(ce),{run:C}=h.Product.Post.useCombo({manual:!0,onError(m,p){j({Message:"Failed Create Combo",Request:p,Error:m})},onSuccess(){d(e.jsx(y,{children:e.jsx(P,{children:"Combo Created"})}),{intent:"success"}),s(),t()}});return e.jsxs(W,{open:r,onOpenChange:t,children:[e.jsx(V,{disableButtonEnhancement:!0,children:e.jsx(i,{appearance:"primary",icon:e.jsx(re,{}),children:"New Combo"})}),e.jsx(Z,{children:e.jsxs(ee,{children:[e.jsx(ne,{action:e.jsx(V,{disableButtonEnhancement:!0,children:e.jsx(i,{appearance:"subtle",icon:e.jsx(q,{})})}),children:"New Combo"}),e.jsxs(se,{children:[e.jsx(G,{Items:u?.map(m=>({Update(p){o[m.Name]=p,a({...o})},...m})),Columns:En}),e.jsxs("div",{className:Tn().body,children:[e.jsx(ge,{children:"Stock"}),e.jsx(Ie,{value:c,min:0,onChange:(m,p)=>{if(p.value)l(p.value);else if(p.displayValue){const D=parseInt(p.displayValue);Re(D)&&l(D)}}}),e.jsx(i,{appearance:"primary",onClick:()=>C(n,o,c),children:"Create"})]})]})]})})]})}const H=N({body:{...$,justifyContent:"space-between"},four:{flexBasis:"4%",flexGrow:0},seven:{flexBasis:"7%",flexGrow:0},five:{flexBasis:"5%",flexGrow:0}}),Se=new b("Admin","Product","Detail","Combo"),In=[x({columnId:"Id",renderHeaderCell:()=>e.jsx(g,{className:H().four,children:"Id"}),renderCell(n){return e.jsx(f,{className:H().four,children:n.Id})}}),x({columnId:"Combo",renderHeaderCell:()=>e.jsx(g,{children:"Combo"}),renderCell(n){return e.jsx(f,{children:Object.entries(n.Combo).reduce((s,r)=>`${s} ${r[0]} : ${r[1]} ;`,"")})}}),x({columnId:"Stock",renderHeaderCell:()=>e.jsx(g,{className:H().five,children:"Stock"}),renderCell(n){return e.jsx(f,{className:H().five,children:n.Stock})}}),x({columnId:"Action",renderHeaderCell:()=>e.jsx(g,{className:H().seven,children:"Action"}),renderCell(n){return e.jsxs(f,{className:H().seven,children:[e.jsx(Dn,{...n}),e.jsx(wn,{ComboId:n.Id,Refresh:n.Refresh})]})}})];function kn({ProdId:n}){const{data:s,run:r}=I(()=>L.Product.Get.Combo(n,Se),{onError:Se.error});return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:H().body,children:[e.jsx(be,{children:"Combo"}),e.jsx(vn,{ProdId:n,Refresh:r})]}),e.jsx(G,{Items:s?.map(t=>({ProdId:n,Refresh:r,...t})),Columns:In})]})}const $n=new b("Admin","Product","Detail","Delete"),Gn=N({root:{...U,rowGap:E.spacingHorizontalS}});function Rn({ProdId:n}){const{Nav:s}=Q(),{dispatch:r,dispatchToast:t}=w($n),{run:o,loading:a}=h.Product.Delete.useProduct({manual:!0,onError(l,u){r({Message:"Failed Delete Product",Request:u,Error:l})},onSuccess(){t(e.jsx(y,{children:e.jsx(P,{children:"Product Deleted"})}),{intent:"success"}),s("/Admin")}}),c=Gn();return e.jsx("div",{children:e.jsxs(ye,{withArrow:!0,children:[e.jsx(Pe,{disableButtonEnhancement:!0,children:e.jsx(i,{children:"Delete Product"})}),e.jsxs(Ae,{className:c.root,children:["Are You Sure?",e.jsx(i,{disabled:a,appearance:"primary",onClick:()=>o(n),children:"Yes"})]})]})})}const Vn=N({btn:{...$,columnGap:E.spacingVerticalS},drawer:{width:"1100px"}}),Fn=new b("Admin","Product","Lexical");function Un({ProdId:n}){const s=Vn(),[r,{toggle:t,setTrue:o}]=k(),{data:a,run:c}=I(()=>L.Product.Get.Lexical(n)),{dispatch:l,dispatchToast:u}=w(Fn),{run:j}=h.Product.Post.useLexical({manual:!0,onError(d,C){l({Message:"Failed Update Description",Request:C,Error:d})},onSuccess(){u(e.jsx(y,{children:e.jsx(P,{children:"Description Updated"})}),{intent:"success"}),c(),t()}});return e.jsxs(e.Fragment,{children:[e.jsx("div",{children:e.jsx(i,{onClick:()=>o(),children:"Open Description Editor"})}),e.jsxs(xe,{open:r,onOpenChange:t,position:"start",size:"large",modalType:"alert",className:s.drawer,children:[e.jsx(pe,{children:e.jsx(je,{action:e.jsxs("div",{className:s.btn,children:[e.jsx(i,{appearance:"primary",onClick:()=>j(n),children:"Save"}),e.jsx(i,{onClick:()=>t(),children:"Cancel"})]}),children:"Edit Product Description"})}),e.jsx(Ce,{children:e.jsx(tn,{State:a?.Description})})]})]})}const De=new b("Admin","Product","Detail","Name");function Hn({ProdId:n}){const[s,r]=S.useState(""),[t,{setTrue:o,setFalse:a}]=k(),{Nav:c}=Q();I(()=>h.Product.Get.Name(n),{onSuccess(d){r(d)},onError(d){c("Admin"),De.error(d)}});const{dispatch:l,dispatchToast:u}=w(De),{run:j}=h.Product.Patch.useName({manual:!0,onError(d,C){l({Message:"Failed Update Name",Request:C,Error:d})},onSuccess(){u(e.jsx(y,{children:e.jsx(P,{children:"Name Updated"})}),{intent:"success"}),a()}});return e.jsx(B,{size:"large",value:s,disabled:!t,appearance:"underline",onChange:(d,C)=>r(C.value),contentBefore:e.jsx(ke,{children:"Name"}),contentAfter:t?e.jsx(i,{appearance:"subtle",icon:e.jsx(J,{}),onClick:()=>j(n,s)}):e.jsx(i,{appearance:"subtle",icon:e.jsx(F,{}),onClick:o})})}const On=N({box:{...$,columnGap:E.spacingHorizontalL},img:{...We,aspectRatio:"1",width:"50%"},cap:{...U,flexGrow:1,rowGap:E.spacingVerticalL}}),le=new b("Admin","Product","Detail","Photo","Edit");function Mn({Id:n,Cover:s,Caption:r,ProductId:t}){const o=On(),[a,c]=S.useState(r||""),{dispatch:l,dispatchToast:u}=w(le),{run:j}=h.Product.Patch.useCaption({manual:!0,onError(m,p){l({Message:"Failed Update Caption",Request:p,Error:m})},onSuccess(){u(e.jsx(y,{children:e.jsx(P,{children:"Caption Updated"})}),{intent:"success"})}}),{run:d}=h.Product.Patch.usePhoto(le,{manual:!0,onBefore([m,p]){u(e.jsx(y,{children:e.jsxs(P,{children:["Uploading Photo ",p.name," for Product ",m," to replace ",n]})}),{intent:"info"})},onError(m,p){l({Message:"Failed Update Photo",Request:p,Error:m})},onSuccess(){u(e.jsx(y,{children:e.jsx(P,{children:"Photo Updated"})}),{intent:"success"})}}),{run:C}=h.Product.Delete.usePhoto({manual:!0,onError(m,p){l({Message:"Failed Delete Photo",Request:p,Error:m})},onSuccess(){u(e.jsx(y,{children:e.jsx(P,{children:"Photo Deleted"})}),{intent:"success"})}});return e.jsxs(W,{children:[e.jsx(V,{disableButtonEnhancement:!0,children:e.jsx(i,{appearance:"subtle",icon:e.jsx(F,{})})}),e.jsx(Z,{children:e.jsxs(ee,{children:[e.jsx(ne,{action:e.jsx(V,{disableButtonEnhancement:!0,children:e.jsx(i,{appearance:"subtle",icon:e.jsx(q,{})})}),children:"Image Detail"}),e.jsxs(se,{className:o.box,children:[e.jsx(Ze,{shape:"rounded",className:o.img,Guid:s,Log:le}),e.jsxs("div",{className:o.cap,children:[e.jsx(M,{label:"Caption",children:e.jsx(B,{value:a,onChange:(m,p)=>c(p.value)})}),e.jsx(i,{onClick:()=>j(n,a),children:"Save Caption"}),e.jsx(i,{onClick:()=>{const m=document.createElement("input");m.type="file",m.accept="image/*",m.onchange=()=>{m.files&&d(n,m.files[0])},m.click()},children:"Replace"}),e.jsx(i,{appearance:"primary",onClick:()=>C(t,n),children:"Delete"})]})]})]})})]})}const de=N({f11:{flexBasis:"11%",flexGrow:0},box:{...$,justifyContent:"space-between"}}),X=new b("Admin","Product","Detail","Photo"),Bn=[Ge(70,X),x({columnId:"Caption",renderHeaderCell:()=>e.jsx(g,{children:"Caption"}),renderCell(n){return e.jsx(f,{children:n.Caption})}}),x({columnId:"Action",renderHeaderCell:()=>e.jsx(g,{className:de().f11,children:"Action"}),renderCell(n){const{dispatch:s}=w(X),{run:r}=h.Product.Post.useMovePhoto({manual:!0,onError(t,o){s({Message:"Failed Update Order",Request:o,Error:t})},onSuccess:qn});return e.jsxs(f,{className:de().f11,children:[e.jsx(i,{appearance:"subtle",icon:e.jsx(Me,{}),onClick:()=>r(n.Id,!0)}),e.jsx(i,{appearance:"subtle",icon:e.jsx(Be,{}),onClick:()=>r(n.Id,!1)}),e.jsx(Mn,{...n})]})}})];let qn=()=>{};function Ln({ProdId:n}){const s=Oe(async()=>{const[a]=await L.Product.Get.PhotoList(n,X);return a.map(l=>({Id:l.PhotoId,Cover:l.ObjectId,Caption:l.Caption||"No Caption",ProductId:l.ProductId}))}),{dispatch:r,dispatchToast:t}=w(X),{run:o}=h.Product.Post.usePhoto(X,{manual:!0,onBefore([a,c]){t(e.jsx(y,{children:e.jsxs(P,{children:["Uploading Photo ",c.name," for Product ",a]})}),{intent:"info"})},onError(a,c){r({Message:"Failed Upload Photo",Request:c,Error:a})},onSuccess(){t(e.jsx(y,{children:e.jsx(P,{children:"Photo Uploaded"})}),{intent:"success"})}});return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:de().box,children:[e.jsx(be,{children:"Photos"}),e.jsx(i,{appearance:"primary",icon:e.jsx(re,{}),onClick:()=>{const a=document.createElement("input");a.type="file",a.accept="image/*",a.onchange=()=>{a.files&&o(n,a.files[0])},a.click()},children:"New Image"})]}),e.jsx(G,{Items:s,Columns:Bn})]})}const zn=new b("Admin","Product","Detail","Variant","Delete");function _n({VariantId:n,Refresh:s}){const{dispatch:r,dispatchToast:t}=w(zn),{run:o}=h.Product.Delete.useVariant({manual:!0,onError(a,c){r({Message:"Failed Delete Variant",Request:c,Error:a})},onSuccess(){t(e.jsx(y,{children:e.jsx(P,{children:"Variant Deleted"})}),{intent:"success"}),s()}});return e.jsx(i,{appearance:"subtle",icon:e.jsx(K,{}),onClick:()=>o(n)})}const Xn=new b("Admin","Product","Detail","Variant","Edit","TypeDelete");function Qn({VariantId:n,Type:s,Refresh:r}){const{dispatch:t,dispatchToast:o}=w(Xn),{run:a}=h.Product.Delete.useType({manual:!0,onError(c,l){t({Message:"Failed Delete Type",Request:l,Error:c})},onSuccess(){o(e.jsx(y,{children:e.jsx(P,{children:"Type Deleted"})}),{intent:"success"}),r()}});return e.jsx(i,{appearance:"subtle",icon:e.jsx(K,{}),onClick:()=>a(n,s)})}const Yn=new b("Admin","Product","Detail","Variant","Edit","Name");function Jn({Id:n,Name:s}){const[r,t]=S.useState(s),[o,{setTrue:a,setFalse:c}]=k(),{dispatch:l,dispatchToast:u}=w(Yn),{run:j}=h.Product.Patch.useVariantName({manual:!0,onError(d,C){l({Message:"Failed Update Variant Name",Request:C[0],Error:d})},onSuccess(){u(e.jsx(y,{children:e.jsx(P,{children:"Variant Name Updated"})}),{intent:"success"}),c()}});return e.jsx(B,{size:"large",value:r,disabled:!o,appearance:"underline",onChange:(d,C)=>t(C.value),contentBefore:e.jsx(ke,{children:"Name"}),contentAfter:o?e.jsx(i,{appearance:"subtle",icon:e.jsx(J,{}),onClick:()=>j(n,r)}):e.jsx(i,{appearance:"subtle",icon:e.jsx(F,{}),onClick:a})})}const Kn=N({body:{...U,rowGap:E.spacingVerticalM}}),Wn=new b("Admin","Product","Detail","Variant","Edit","Type");function Ve({VariantId:n,Type:s,Refresh:r,New:t}){const o=Kn(),[a,{toggle:c}]=k(),[l,u]=S.useState(s||""),{dispatch:j,dispatchToast:d}=w(Wn),C={manual:!0,onError(D,T){j({Message:`Failed ${t?"Create":"Update"} Type ${l}`,Request:T,Error:D})},onSuccess(D){d(e.jsxs(y,{children:[e.jsxs(P,{children:["Type ",t?"Created":"Updated"]}),e.jsxs(qe,{children:[D," ",l]})]}),{intent:"success"}),r(),u(""),c()}},{run:m}=h.Product.Post.useType(C),{run:p}=h.Product.Patch.useType(C);return e.jsxs(ye,{withArrow:!0,open:a,onOpenChange:c,children:[e.jsx(Pe,{disableButtonEnhancement:!0,children:t?e.jsx(i,{icon:e.jsx(re,{}),appearance:"primary",children:"New Type"}):e.jsx(i,{appearance:"subtle",icon:e.jsx(F,{})})}),e.jsxs(Ae,{className:o.body,children:[e.jsx(M,{label:"Type Name",children:e.jsx(B,{value:l,onChange:(D,T)=>u(T.value)})}),e.jsx(i,{onClick:()=>t?m(n,l):p(n,s,l),children:"Submit"})]})]})}const ue=N({body:{...U,rowGap:E.spacingVerticalM},twelve:{flexBasis:"12%",flexGrow:0}}),Zn=[x({columnId:"Name",renderHeaderCell:()=>e.jsx(g,{children:"Name"}),renderCell(n){return e.jsx(f,{children:n.Name})}}),x({columnId:"Action",renderHeaderCell:()=>e.jsx(g,{className:ue().twelve,children:"Action"}),renderCell(n){return e.jsxs(f,{className:ue().twelve,children:[e.jsx(Ve,{VariantId:n.VariantId,Type:n.Name,Refresh:n.Refresh}),e.jsx(Qn,{VariantId:n.VariantId,Type:n.Name,Refresh:n.Refresh})]})}})];function es({Variant:n,Refresh:s}){return e.jsxs(W,{children:[e.jsx(V,{disableButtonEnhancement:!0,children:e.jsx(i,{appearance:"subtle",icon:e.jsx(F,{})})}),e.jsx(Z,{children:e.jsxs(ee,{children:[e.jsx(ne,{action:e.jsx(V,{disableButtonEnhancement:!0,children:e.jsx(i,{appearance:"subtle",icon:e.jsx(q,{})})}),children:"Variant Detail"}),e.jsxs(se,{className:ue().body,children:[e.jsx(Jn,{Id:n.Id,Name:n.Name}),e.jsx(G,{Items:n.Types.map((r,t)=>({Id:t,Name:r,VariantId:n.Id,Refresh:s})),Columns:Zn})]}),e.jsx(Le,{children:e.jsx(Ve,{VariantId:n.Id,Refresh:s,New:!0})})]})})]})}const ns=N({body:{...U,rowGap:E.spacingVerticalM}}),ss=new b("Admin","Product","Detail","Variant","New");function rs({ProdId:n,Refresh:s}){const r=ns(),[t,{toggle:o}]=k(),[a,c]=S.useState(""),{dispatch:l,dispatchToast:u}=w(ss),{run:j}=h.Product.Post.useVariant({manual:!0,onError(d,C){l({Message:"Failed Create Variant",Request:C,Error:d})},onSuccess(){u(e.jsx(y,{children:e.jsx(P,{children:"Variant Created"})}),{intent:"success"}),s(),c(""),o()}});return e.jsxs(ye,{withArrow:!0,open:t,onOpenChange:o,children:[e.jsx(Pe,{disableButtonEnhancement:!0,children:e.jsx(i,{appearance:"primary",icon:e.jsx(re,{}),children:"New Variant"})}),e.jsxs(Ae,{className:r.body,children:[e.jsx(M,{required:!0,label:"Variant Name",children:e.jsx(B,{value:a,onChange:(d,C)=>c(C.value)})}),e.jsx(i,{onClick:()=>j(n,a),children:"Add"})]})]})}const O=N({body:{...$,justifyContent:"space-between"},four:{flexBasis:"4%",flexGrow:0},seven:{flexBasis:"7%",flexGrow:0},twelve:{flexBasis:"12%",flexGrow:0}}),Ee=new b("Admin","Product","Detail","Variant"),ts=[x({columnId:"Id",renderHeaderCell:()=>e.jsx(g,{className:O().four,children:"Id"}),renderCell(n){return e.jsx(f,{className:O().four,children:n.Id})}}),x({columnId:"Name",renderHeaderCell:()=>e.jsx(g,{className:O().twelve,children:"Name"}),renderCell(n){return e.jsx(f,{className:O().twelve,children:n.Name})}}),x({columnId:"Type",renderHeaderCell:()=>e.jsx(g,{children:"Type"}),renderCell(n){return e.jsx(f,{children:n.Types.reduce((s,r)=>`${s} ${r} ;`,"")})}}),x({columnId:"Action",renderHeaderCell:()=>e.jsx(g,{className:O().seven,children:"Action"}),renderCell(n){return e.jsxs(f,{className:O().seven,children:[e.jsx(es,{Variant:n,Refresh:me}),e.jsx(_n,{VariantId:n.Id,Refresh:me})]})}})];let me;function as({ProdId:n}){const s=O(),{data:r,run:t}=I(()=>h.Product.Get.Variants(n,Ee),{onError:Ee.error});return me=t,e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:s.body,children:[e.jsx(be,{children:"Variant"}),e.jsx(rs,{ProdId:n,Refresh:t})]}),e.jsx(G,{Items:r,Columns:ts})]})}const os=N({body:{...U,rowGap:E.spacingVerticalXL,paddingBottom:E.spacingVerticalXXXL}});function cs({ProdId:n}){const s=os(),[r,{setFalse:t,setTrue:o}]=k(),{Nav:a,Paths:c}=Q(),l=parseInt(c.at(1));return S.useEffect(()=>{l===n?o():t()},[c]),e.jsxs(e.Fragment,{children:[e.jsx(i,{appearance:"subtle",icon:e.jsx(ve,{}),onClick:()=>{a("Admin",n),o()}}),e.jsxs(xe,{open:r,position:"end",size:"large",modalType:"alert",children:[e.jsx(pe,{children:e.jsx(je,{action:e.jsx(i,{appearance:"subtle",icon:e.jsx(q,{}),onClick:()=>{a("Admin"),t()}}),children:"Product Detail"})}),e.jsxs(Ce,{className:s.body,children:[e.jsx(Hn,{ProdId:n}),e.jsx(Pn,{ProdId:n}),e.jsx(Ln,{ProdId:n}),e.jsx(as,{ProdId:n}),e.jsx(kn,{ProdId:n}),e.jsx(Un,{ProdId:n}),e.jsx(Rn,{ProdId:n})]})]})]})}const z=new b("Admin","Product","Row");function ls({item:n}){const[s,r]=S.useState(()=>({Id:n,Cover:"",Name:"Loading..."})),[t,{setTrue:o}]=k(),a=L.Product.Get;return ze(async()=>{const c=await a.Product(n).catch(z.error);if(!c)return z.warn(`Product ${n} Not Found`),o();let l={...s,Name:c.Name,Category:c.Category||"Pending"};r(l);const[u,j]=await a.PhotoList(n,z);j||z.warn(`Product ${n} has no photo`),r(l={...l,Cover:j});const d=await h.Product.Get.Count(n).catch(z.error);d&&r({...l,...d})},[]),t?null:e.jsx($e,{children:({renderCell:c})=>c(s)},n)}const Te=N({two:{flexBasis:"2.5%",flexGrow:0},twoc:{flexBasis:"2.5%",flexGrow:0,justifyContent:"center"}}),Fe=new b("Admin","Product"),is=[Ge(50,Fe),x({columnId:"Product",renderHeaderCell:()=>e.jsx(g,{children:"Product"}),renderCell(n){return e.jsx(f,{children:e.jsx(we,{children:n.Name})})}}),x({columnId:"Category",renderHeaderCell:()=>e.jsx(g,{children:"Category"}),renderCell(n){return e.jsx(f,{children:e.jsx(we,{children:n.Category})})}}),x({columnId:"Variant",renderHeaderCell:()=>e.jsx(g,{children:"Variant"}),renderCell(n){return e.jsx(f,{children:n.Variant})}}),x({columnId:"Combo",renderHeaderCell:()=>e.jsx(g,{children:"Combo"}),renderCell(n){return e.jsx(f,{children:n.Combo})}}),x({columnId:"Stock",renderHeaderCell:()=>e.jsx(g,{children:"Stock"}),renderCell(n){return e.jsx(f,{children:n.Stock})}}),x({columnId:"Action",renderHeaderCell:()=>e.jsx(g,{className:Te().two,children:"Detail"}),renderCell(n){return e.jsx(f,{className:Te().twoc,children:e.jsx(cs,{ProdId:n.Id})})}})];function ds(){const n=h.Product.Get.useList(Fe);return e.jsxs(_e,{items:n?n.reverse():[],columns:is,children:[e.jsx(Xe,{children:e.jsx($e,{children:({renderHeaderCell:s})=>s()})}),e.jsx(Qe,{children:s=>e.jsx(ls,{...s})}),!n&&e.jsx(Ye,{size:48})]})}const us=new b("Admin","User","Delete");function ms({UserId:n,Refresh:s}){const{dispatch:r,dispatchToast:t}=w(us),{run:o}=h.User.Delete.useUser({manual:!0,onError(a,c){r({Message:"Failed Delete User",Request:c,Error:a})},onSuccess(){t(e.jsx(y,{children:e.jsx(P,{children:"User Deleted"})}),{intent:"success"}),s()}});return e.jsx(i,{appearance:"subtle",icon:e.jsx(K,{}),onClick:()=>o(n)})}const hs=new b("Admin","User","Grant");function xs({UserId:n,Admin:s,Refresh:r}){const{dispatch:t,dispatchToast:o}=w(hs),{run:a}=h.User.Post.useAdmin({manual:!0,onError(l,u){t({Message:"Failed Grant Admin",Request:u,Error:l})},onSuccess(){o(e.jsx(y,{children:e.jsx(P,{children:"Admin Granted"})}),{intent:"success"}),r()}}),{run:c}=h.User.Delete.useAdmin({manual:!0,onError(l,u){t({Message:"Failed Revoke Admin",Request:u,Error:l})},onSuccess(){o(e.jsx(y,{children:e.jsx(P,{children:"Admin Revoked"})}),{intent:"success"}),r()}});return e.jsx(Je,{checked:s,onChange:(l,u)=>{u.checked?a(n):c(n)}})}const ps=new b("Admin","User"),js=[x({columnId:"Id",renderHeaderCell:()=>"Id",renderCell(n){return n.Id}}),x({columnId:"Name",renderHeaderCell:()=>"Real Name",renderCell(n){return n.Name}}),x({columnId:"Email",renderHeaderCell:()=>"E-Mail",renderCell(n){return n.EMail}}),x({columnId:"Admin",renderHeaderCell:()=>"Admin",renderCell(n){return e.jsx(xs,{UserId:n.Id,Admin:n.Admin,Refresh:he})}}),x({columnId:"Delete",renderHeaderCell:()=>"Delete",renderCell(n){return e.jsx(ms,{UserId:n.Id,Refresh:he})}})].map(({renderHeaderCell:n,renderCell:s,...r})=>({...r,renderHeaderCell:()=>e.jsx(g,{children:n()}),renderCell:t=>e.jsx(f,{children:s(t)})}));let he;function Cs(){const{data:n,run:s}=I(()=>h.User.Get.List(),{onError:ps.error});return he=s,e.jsx(G,{Items:n,Columns:js})}const gs=new b("Admin");function Ns(){const{Paths:n,Nav:s}=Q(),r=n.at(1),t=S.useMemo(()=>{switch(r){case"Order":return e.jsx(bn,{});case"User":return e.jsx(Cs,{});default:return e.jsx(ds,{})}},[r]),o=L.User.Get.useMe(gs);return o?o.Admin?t:s("/"):e.jsx(Ke,{size:"huge",label:"Authenticating..."})}export{Ns as default}; +import{m as N,j as e,T as y,b as P,F as M,B as i,r as S,ah as He,a5 as x,a6 as g,a7 as f,o as k,I as B,aE as J,aF as F,t as E,x as I,aG as ve,ac as xe,ad as pe,ae as je,af as q,ag as Ce,L as ge,aH as fe,aI as _,ab as K,D as W,n as V,g as Z,h as ee,i as ne,k as se,aa as Ie,N as re,aB as be,aj as ye,ak as Pe,ao as Ae,O as ke,z as Oe,aJ as Me,aK as Be,c as qe,l as Le,aL as ze,a1 as $e,$ as _e,a0 as Xe,a2 as Qe,a3 as Ye,a8 as we,aM as Je,ar as Ke}from"./vendor-nd_CUwkm.js";import{L as b,a as U,e as w,A as h,F as $,f as G,c as Q,H as L,C as We,G as Ze,M as Ge}from"./index-g5wBm8kU.js";import{O as en,a as nn,H as sn}from"./Columns-QCD_DZcc.js";import{t as rn}from"./toFinite-GMFxiq4g.js";import{L as tn}from"./Lazy-JjY9mDNW.js";import"./isObject-tyZXtoJz.js";function an(n){var s=rn(n),r=s%1;return s===s?r?s-r:s:0}function Re(n){return typeof n=="number"&&n==an(n)}const on=N({body:{...U,alignItems:"flex-start"}}),cn=new b("Admin","Order","Detail","Action");function ln({OrderId:n,Status:s,Refresh:r}){const t=on(),{dispatch:o,dispatchToast:a}=w(cn),{run:c}=h.Order.Post.useAccept({manual:!0,onError(l,u){o({Message:"Failed Accept Order",Request:u,Error:l})},onSuccess(){a(e.jsx(y,{children:e.jsx(P,{children:"Order Accepted"})}),{intent:"success"}),r()}});switch(s){case"Processing":case"Shipping":case"Finished":case"Cancelled":case"Returning":return null}return e.jsx(M,{label:"Action",size:"large",children:e.jsx("div",{className:t.body,children:s==="Pending"&&e.jsx(i,{appearance:"subtle",onClick:()=>c(n),children:"Accept Order"})})})}const dn=N({body:{...$,justifyContent:"space-between"}}),un=new b("Admin","Order","Detail","Append");function mn({OrderId:n,Refresh:s}){const r=dn(),[t,o]=S.useState(),{dispatch:a,dispatchToast:c}=w(un),{run:l}=h.Order.Post.useAppend({manual:!0,onError(j,d){a({Message:"Failed Append Comment",Request:d,Error:j})},onSuccess(){c(e.jsx(y,{children:e.jsx(P,{children:"Comment Appended"})}),{intent:"success"}),s()}}),{run:u}=h.Order.Post.useClose({manual:!0,onError(j,d){a({Message:"Failed Close Order",Request:d,Error:j})},onSuccess(){c(e.jsx(y,{children:e.jsx(P,{children:"Order Closed"})}),{intent:"success"}),s()}});return e.jsxs(e.Fragment,{children:[e.jsx(M,{label:"Append",size:"large",children:e.jsx(He,{value:t,onChange:(j,d)=>o(d.value),maxLength:1e3})}),e.jsxs("div",{className:r.body,children:[e.jsx(i,{onClick:()=>u(n,t),children:"Force Close with Reason"}),e.jsx(i,{appearance:"primary",onClick:()=>l(n,t),children:"Add Comment"})]})]})}const Ne=N({ten:{flexBasis:"10%",flexGrow:0}}),hn=[x({columnId:"Product",renderHeaderCell(){return e.jsx(g,{children:"Name"})},renderCell(n){return e.jsx(f,{children:n.Name})}}),x({columnId:"Type",renderHeaderCell(){return e.jsx(g,{children:"Type"})},renderCell(n){return e.jsx(f,{children:Object.entries(n.Type).reduce((s,r)=>`${s} ${r[0]} : ${r[1]} ;`,"")})}}),x({columnId:"Quantity",renderHeaderCell(){return e.jsx(g,{className:Ne().ten,children:"Quantity"})},renderCell(n){return e.jsx(f,{className:Ne().ten,children:n.Quantity})}})];function xn({Items:n}){return e.jsx(G,{Items:n,Columns:hn})}const pn=new b("Admin","Order","Detail","Shipment");function jn({OrderId:n,TrackingNumber:s,Refresh:r}){const[t,{setTrue:o,setFalse:a}]=k(),[c,l]=S.useState(s),{dispatch:u,dispatchToast:j}=w(pn),{run:d}=h.Order.Post.useShip({manual:!0,onError(C,m){u({Message:"Failed Update Tracking Number",Request:m,Error:C})},onSuccess(){j(e.jsx(y,{children:e.jsx(P,{children:"Tracking Number Updated"})}),{intent:"success"}),a(),r()}});return e.jsx(M,{label:"Shipment",size:"large",children:e.jsx(B,{value:c,disabled:!t,appearance:"underline",onChange:(C,m)=>l(m.value),placeholder:"Fill in this field to ship the order.",contentAfter:t?e.jsx(i,{appearance:"subtle",icon:e.jsx(J,{}),onClick:()=>d(n,c)}):e.jsx(i,{appearance:"subtle",icon:e.jsx(F,{}),onClick:o})})})}const Cn=N({body:{...U,rowGap:E.spacingVerticalXL}}),te=new b("Admin","Order","Detail");function gn({OrderId:n}){const s=Cn(),[r,{setTrue:t,setFalse:o}]=k(),{Nav:a,Paths:c}=Q(),l=parseInt(c.at(2)),{data:u,run:j}=I(()=>h.Order.Get.Detail(n,te),{manual:!0,onError:te.error}),{data:d,run:C}=I(()=>h.Order.Get.Order(n),{onError(p){a("Admin","Order"),te.error(p)},manual:!0});function m(){C(),j()}return S.useEffect(()=>{l===n?(m(),t()):o()},[l]),e.jsxs(e.Fragment,{children:[e.jsx(i,{appearance:"subtle",icon:e.jsx(ve,{}),onClick:()=>a("Admin","Order",n)}),e.jsxs(xe,{open:r,position:"end",size:"medium",modalType:"alert",children:[e.jsx(pe,{children:e.jsx(je,{action:e.jsx(i,{appearance:"subtle",icon:e.jsx(q,{}),onClick:()=>a("Admin","Order")}),children:"Order Detail"})}),e.jsxs(Ce,{className:s.body,children:[e.jsx(en,{OrderId:n,Order:d,Admin:!0}),e.jsx(M,{label:"Required Products",size:"large",children:e.jsx(xn,{Items:u?.ShopCart})}),e.jsx(jn,{OrderId:n,TrackingNumber:d?.TrackingNumber,Refresh:m}),e.jsx(nn,{Comments:u?.Comments}),e.jsx(mn,{OrderId:n,Refresh:m}),e.jsx(ln,{OrderId:n,Status:d?.Status,Refresh:m})]})]})]})}const Y=N({two:{flexBasis:"2.5%",flexGrow:0},twoc:{flexBasis:"2.5%",flexGrow:0,justifyContent:"center"},ten:{flexBasis:"10%",flexGrow:0}}),ie=new b("Admin","Order"),fn=[...sn(ie).slice(0,-1),x({columnId:"User",renderHeaderCell:()=>e.jsx(g,{className:Y().ten,children:"User"}),renderCell(n){return e.jsx(f,{className:Y().ten,children:n.User})}}),x({columnId:"Action",renderHeaderCell:()=>e.jsx(g,{className:Y().two,children:"Action"}),renderCell(n){return e.jsx(f,{className:Y().twoc,children:e.jsx(gn,{OrderId:n.Id})})}})];function bn(){const{data:n}=I(()=>h.Order.Get.List(ie),{onError:ie.error});return e.jsx(G,{Items:n,Columns:fn})}const yn=N({body:{...$,alignItems:"center"},input:{flexGrow:1}}),ae=new b("Admin","Product","Detail","Category");function Pn({ProdId:n}){const[s,r]=S.useState(""),[t,{setTrue:o,setFalse:a}]=k();I(()=>h.Product.Get.Category(n),{onSuccess(A){A&&r(A)},onError:ae.error});const{dispatch:c,dispatchToast:l}=w(ae),{run:u}=h.Product.Patch.useCategory({manual:!0,onError(A,v){c({Message:"Failed Update Category",Request:v,Error:A})},onSuccess(){l(e.jsx(y,{children:e.jsx(P,{children:"Category Updated"})}),{intent:"success"}),a()}}),{run:j}=h.Product.Delete.useCategory({manual:!0,onError(A,v){c({Message:"Failed Detach Category",Request:v,Error:A})},onSuccess(){l(e.jsx(y,{children:e.jsx(P,{children:"Category Detached"})}),{intent:"success"}),a()}}),{data:d}=I(()=>L.Gallery.Get.Categories(),{onSuccess(A){m(A)},onError:ae.error}),[C,m]=S.useState(d),[p,D]=S.useState(""),T=yn();return e.jsxs("div",{className:T.body,children:[e.jsx(ge,{size:"large",disabled:!t,children:"Category"}),e.jsxs(fe,{className:T.input,size:"large",disabled:!t,freeform:!0,placeholder:s||"Pending",appearance:"underline",onChange:A=>{const v=A.target.value.trim(),R=d?.filter(Ue=>Ue.toLowerCase().indexOf(v.toLowerCase())===0);m(R),v&&R&&R.length<1?D(v):D("")},onOptionSelect:(A,v)=>{const R=v.optionText;r(R),R&&d?.includes(R)?D(""):D(R)},children:[p&&e.jsxs(_,{text:p,children:['Create New "',p,'"']},p),C?.map(A=>e.jsx(_,{children:A},A)),C?.length===d?.length?e.jsx(_,{text:"",children:"Pending"},""):null]}),t?e.jsx(i,{appearance:"subtle",icon:e.jsx(J,{}),onClick:()=>{s?u(n,s):j(n)}}):e.jsx(i,{appearance:"subtle",icon:e.jsx(F,{}),onClick:o})]})}const An=new b("Admin","Product","Detail","Combo","Delete");function wn({ComboId:n,Refresh:s}){const{dispatch:r,dispatchToast:t}=w(An),{run:o}=h.Product.Delete.useCombo({manual:!0,onError(a,c){r({Message:"Failed Delete Combo",Request:c,Error:a})},onSuccess(){t(e.jsx(y,{children:e.jsx(P,{children:"Combo Deleted"})}),{intent:"success"}),s()}});return e.jsx(i,{appearance:"subtle",icon:e.jsx(K,{}),onClick:()=>o(n)})}const Nn=[x({columnId:"Variant",renderHeaderCell:()=>e.jsx(g,{children:"Variant"}),renderCell(n){return e.jsx(f,{children:n.Name})}}),x({columnId:"Type",renderHeaderCell:()=>e.jsx(g,{children:"Type"}),renderCell(n){return e.jsx(f,{children:e.jsx(fe,{defaultValue:n.Current,defaultSelectedOptions:[n.Current],onOptionSelect:(s,r)=>n.Update(r.optionValue),children:n.Types.map((s,r)=>e.jsx(_,{children:s},r))})})}})],Sn=N({body:{...$,justifyContent:"flex-end",alignItems:"center",columnGap:E.spacingVerticalM,marginTop:E.spacingHorizontalM}}),oe=new b("Admin","Product","Detail","Combo","Detail");function Dn({Id:n,ProdId:s,Combo:r,Stock:t,Refresh:o}){const[a,{toggle:c}]=k(),[l,u]=S.useState(r),[j,d]=S.useState(t),{data:C}=I(()=>h.Product.Get.Variants(s,oe),{onError:oe.error}),{dispatch:m,dispatchToast:p}=w(oe),{run:D}=h.Product.Patch.useCombo({manual:!0,onError(T,A){m({Message:"Failed Update Combo",Request:A,Error:T})},onSuccess(){p(e.jsx(y,{children:e.jsx(P,{children:"Combo Updated"})}),{intent:"success"}),o(),c()}});return e.jsxs(W,{open:a,onOpenChange:c,children:[e.jsx(V,{disableButtonEnhancement:!0,children:e.jsx(i,{appearance:"subtle",icon:e.jsx(F,{})})}),e.jsx(Z,{children:e.jsxs(ee,{children:[e.jsx(ne,{action:e.jsx(V,{disableButtonEnhancement:!0,children:e.jsx(i,{appearance:"subtle",icon:e.jsx(q,{})})}),children:"Combo Detail"}),e.jsxs(se,{children:[e.jsx(G,{Items:C?.map(T=>({Current:l[T.Name],Update(A){l[T.Name]=A,u({...l})},...T})),Columns:Nn}),e.jsxs("div",{className:Sn().body,children:[e.jsx(ge,{children:"Stock"}),e.jsx(Ie,{value:j,min:0,onChange:(T,A)=>{if(A.value)d(A.value);else if(A.displayValue){const v=parseInt(A.displayValue);Re(v)&&d(v)}}}),e.jsx(i,{appearance:"primary",onClick:()=>D(n,l,j),children:"Submit"})]})]})]})})]})}const En=[x({columnId:"Variant",renderHeaderCell:()=>e.jsx(g,{children:"Variant"}),renderCell(n){return e.jsx(f,{children:n.Name})}}),x({columnId:"Type",renderHeaderCell:()=>e.jsx(g,{children:"Type"}),renderCell(n){return e.jsx(f,{children:e.jsx(fe,{onOptionSelect:(s,r)=>n.Update(r.optionValue),children:n.Types.map((s,r)=>e.jsx(_,{children:s},r))})})}})],Tn=N({body:{...$,justifyContent:"flex-end",alignItems:"center",columnGap:E.spacingVerticalM,marginTop:E.spacingHorizontalM}}),ce=new b("Admin","Product","Detail","Combo","NewCombo");function vn({ProdId:n,Refresh:s}){const[r,{toggle:t}]=k(),[o,a]=S.useState({}),[c,l]=S.useState(1),{data:u}=I(()=>h.Product.Get.Variants(n,ce),{onSuccess(m){for(const p of m)o[p.Name]="";a({...o})},onError:ce.error}),{dispatch:j,dispatchToast:d}=w(ce),{run:C}=h.Product.Post.useCombo({manual:!0,onError(m,p){j({Message:"Failed Create Combo",Request:p,Error:m})},onSuccess(){d(e.jsx(y,{children:e.jsx(P,{children:"Combo Created"})}),{intent:"success"}),s(),t()}});return e.jsxs(W,{open:r,onOpenChange:t,children:[e.jsx(V,{disableButtonEnhancement:!0,children:e.jsx(i,{appearance:"primary",icon:e.jsx(re,{}),children:"New Combo"})}),e.jsx(Z,{children:e.jsxs(ee,{children:[e.jsx(ne,{action:e.jsx(V,{disableButtonEnhancement:!0,children:e.jsx(i,{appearance:"subtle",icon:e.jsx(q,{})})}),children:"New Combo"}),e.jsxs(se,{children:[e.jsx(G,{Items:u?.map(m=>({Update(p){o[m.Name]=p,a({...o})},...m})),Columns:En}),e.jsxs("div",{className:Tn().body,children:[e.jsx(ge,{children:"Stock"}),e.jsx(Ie,{value:c,min:0,onChange:(m,p)=>{if(p.value)l(p.value);else if(p.displayValue){const D=parseInt(p.displayValue);Re(D)&&l(D)}}}),e.jsx(i,{appearance:"primary",onClick:()=>C(n,o,c),children:"Create"})]})]})]})})]})}const H=N({body:{...$,justifyContent:"space-between"},four:{flexBasis:"4%",flexGrow:0},seven:{flexBasis:"7%",flexGrow:0},five:{flexBasis:"5%",flexGrow:0}}),Se=new b("Admin","Product","Detail","Combo"),In=[x({columnId:"Id",renderHeaderCell:()=>e.jsx(g,{className:H().four,children:"Id"}),renderCell(n){return e.jsx(f,{className:H().four,children:n.Id})}}),x({columnId:"Combo",renderHeaderCell:()=>e.jsx(g,{children:"Combo"}),renderCell(n){return e.jsx(f,{children:Object.entries(n.Combo).reduce((s,r)=>`${s} ${r[0]} : ${r[1]} ;`,"")})}}),x({columnId:"Stock",renderHeaderCell:()=>e.jsx(g,{className:H().five,children:"Stock"}),renderCell(n){return e.jsx(f,{className:H().five,children:n.Stock})}}),x({columnId:"Action",renderHeaderCell:()=>e.jsx(g,{className:H().seven,children:"Action"}),renderCell(n){return e.jsxs(f,{className:H().seven,children:[e.jsx(Dn,{...n}),e.jsx(wn,{ComboId:n.Id,Refresh:n.Refresh})]})}})];function kn({ProdId:n}){const{data:s,run:r}=I(()=>L.Product.Get.Combo(n,Se),{onError:Se.error});return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:H().body,children:[e.jsx(be,{children:"Combo"}),e.jsx(vn,{ProdId:n,Refresh:r})]}),e.jsx(G,{Items:s?.map(t=>({ProdId:n,Refresh:r,...t})),Columns:In})]})}const $n=new b("Admin","Product","Detail","Delete"),Gn=N({root:{...U,rowGap:E.spacingHorizontalS}});function Rn({ProdId:n}){const{Nav:s}=Q(),{dispatch:r,dispatchToast:t}=w($n),{run:o,loading:a}=h.Product.Delete.useProduct({manual:!0,onError(l,u){r({Message:"Failed Delete Product",Request:u,Error:l})},onSuccess(){t(e.jsx(y,{children:e.jsx(P,{children:"Product Deleted"})}),{intent:"success"}),s("/Admin")}}),c=Gn();return e.jsx("div",{children:e.jsxs(ye,{withArrow:!0,children:[e.jsx(Pe,{disableButtonEnhancement:!0,children:e.jsx(i,{children:"Delete Product"})}),e.jsxs(Ae,{className:c.root,children:["Are You Sure?",e.jsx(i,{disabled:a,appearance:"primary",onClick:()=>o(n),children:"Yes"})]})]})})}const Vn=N({btn:{...$,columnGap:E.spacingVerticalS},drawer:{width:"1100px"}}),Fn=new b("Admin","Product","Lexical");function Un({ProdId:n}){const s=Vn(),[r,{toggle:t,setTrue:o}]=k(),{data:a,run:c}=I(()=>L.Product.Get.Lexical(n)),{dispatch:l,dispatchToast:u}=w(Fn),{run:j}=h.Product.Post.useLexical({manual:!0,onError(d,C){l({Message:"Failed Update Description",Request:C,Error:d})},onSuccess(){u(e.jsx(y,{children:e.jsx(P,{children:"Description Updated"})}),{intent:"success"}),c(),t()}});return e.jsxs(e.Fragment,{children:[e.jsx("div",{children:e.jsx(i,{onClick:()=>o(),children:"Open Description Editor"})}),e.jsxs(xe,{open:r,onOpenChange:t,position:"start",size:"large",modalType:"alert",className:s.drawer,children:[e.jsx(pe,{children:e.jsx(je,{action:e.jsxs("div",{className:s.btn,children:[e.jsx(i,{appearance:"primary",onClick:()=>j(n),children:"Save"}),e.jsx(i,{onClick:()=>t(),children:"Cancel"})]}),children:"Edit Product Description"})}),e.jsx(Ce,{children:e.jsx(tn,{State:a?.Description})})]})]})}const De=new b("Admin","Product","Detail","Name");function Hn({ProdId:n}){const[s,r]=S.useState(""),[t,{setTrue:o,setFalse:a}]=k(),{Nav:c}=Q();I(()=>h.Product.Get.Name(n),{onSuccess(d){r(d)},onError(d){c("Admin"),De.error(d)}});const{dispatch:l,dispatchToast:u}=w(De),{run:j}=h.Product.Patch.useName({manual:!0,onError(d,C){l({Message:"Failed Update Name",Request:C,Error:d})},onSuccess(){u(e.jsx(y,{children:e.jsx(P,{children:"Name Updated"})}),{intent:"success"}),a()}});return e.jsx(B,{size:"large",value:s,disabled:!t,appearance:"underline",onChange:(d,C)=>r(C.value),contentBefore:e.jsx(ke,{children:"Name"}),contentAfter:t?e.jsx(i,{appearance:"subtle",icon:e.jsx(J,{}),onClick:()=>j(n,s)}):e.jsx(i,{appearance:"subtle",icon:e.jsx(F,{}),onClick:o})})}const On=N({box:{...$,columnGap:E.spacingHorizontalL},img:{...We,aspectRatio:"1",width:"50%"},cap:{...U,flexGrow:1,rowGap:E.spacingVerticalL}}),le=new b("Admin","Product","Detail","Photo","Edit");function Mn({Id:n,Cover:s,Caption:r,ProductId:t}){const o=On(),[a,c]=S.useState(r||""),{dispatch:l,dispatchToast:u}=w(le),{run:j}=h.Product.Patch.useCaption({manual:!0,onError(m,p){l({Message:"Failed Update Caption",Request:p,Error:m})},onSuccess(){u(e.jsx(y,{children:e.jsx(P,{children:"Caption Updated"})}),{intent:"success"})}}),{run:d}=h.Product.Patch.usePhoto(le,{manual:!0,onBefore([m,p]){u(e.jsx(y,{children:e.jsxs(P,{children:["Uploading Photo ",p.name," for Product ",m," to replace ",n]})}),{intent:"info"})},onError(m,p){l({Message:"Failed Update Photo",Request:p,Error:m})},onSuccess(){u(e.jsx(y,{children:e.jsx(P,{children:"Photo Updated"})}),{intent:"success"})}}),{run:C}=h.Product.Delete.usePhoto({manual:!0,onError(m,p){l({Message:"Failed Delete Photo",Request:p,Error:m})},onSuccess(){u(e.jsx(y,{children:e.jsx(P,{children:"Photo Deleted"})}),{intent:"success"})}});return e.jsxs(W,{children:[e.jsx(V,{disableButtonEnhancement:!0,children:e.jsx(i,{appearance:"subtle",icon:e.jsx(F,{})})}),e.jsx(Z,{children:e.jsxs(ee,{children:[e.jsx(ne,{action:e.jsx(V,{disableButtonEnhancement:!0,children:e.jsx(i,{appearance:"subtle",icon:e.jsx(q,{})})}),children:"Image Detail"}),e.jsxs(se,{className:o.box,children:[e.jsx(Ze,{shape:"rounded",className:o.img,Guid:s,Log:le}),e.jsxs("div",{className:o.cap,children:[e.jsx(M,{label:"Caption",children:e.jsx(B,{value:a,onChange:(m,p)=>c(p.value)})}),e.jsx(i,{onClick:()=>j(n,a),children:"Save Caption"}),e.jsx(i,{onClick:()=>{const m=document.createElement("input");m.type="file",m.accept="image/*",m.onchange=()=>{m.files&&d(n,m.files[0])},m.click()},children:"Replace"}),e.jsx(i,{appearance:"primary",onClick:()=>C(t,n),children:"Delete"})]})]})]})})]})}const de=N({f11:{flexBasis:"11%",flexGrow:0},box:{...$,justifyContent:"space-between"}}),X=new b("Admin","Product","Detail","Photo"),Bn=[Ge(70,X),x({columnId:"Caption",renderHeaderCell:()=>e.jsx(g,{children:"Caption"}),renderCell(n){return e.jsx(f,{children:n.Caption})}}),x({columnId:"Action",renderHeaderCell:()=>e.jsx(g,{className:de().f11,children:"Action"}),renderCell(n){const{dispatch:s}=w(X),{run:r}=h.Product.Post.useMovePhoto({manual:!0,onError(t,o){s({Message:"Failed Update Order",Request:o,Error:t})},onSuccess:qn});return e.jsxs(f,{className:de().f11,children:[e.jsx(i,{appearance:"subtle",icon:e.jsx(Me,{}),onClick:()=>r(n.Id,!0)}),e.jsx(i,{appearance:"subtle",icon:e.jsx(Be,{}),onClick:()=>r(n.Id,!1)}),e.jsx(Mn,{...n})]})}})];let qn=()=>{};function Ln({ProdId:n}){const s=Oe(async()=>{const[a]=await L.Product.Get.PhotoList(n,X);return a.map(l=>({Id:l.PhotoId,Cover:l.ObjectId,Caption:l.Caption||"No Caption",ProductId:l.ProductId}))}),{dispatch:r,dispatchToast:t}=w(X),{run:o}=h.Product.Post.usePhoto(X,{manual:!0,onBefore([a,c]){t(e.jsx(y,{children:e.jsxs(P,{children:["Uploading Photo ",c.name," for Product ",a]})}),{intent:"info"})},onError(a,c){r({Message:"Failed Upload Photo",Request:c,Error:a})},onSuccess(){t(e.jsx(y,{children:e.jsx(P,{children:"Photo Uploaded"})}),{intent:"success"})}});return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:de().box,children:[e.jsx(be,{children:"Photos"}),e.jsx(i,{appearance:"primary",icon:e.jsx(re,{}),onClick:()=>{const a=document.createElement("input");a.type="file",a.accept="image/*",a.onchange=()=>{a.files&&o(n,a.files[0])},a.click()},children:"New Image"})]}),e.jsx(G,{Items:s,Columns:Bn})]})}const zn=new b("Admin","Product","Detail","Variant","Delete");function _n({VariantId:n,Refresh:s}){const{dispatch:r,dispatchToast:t}=w(zn),{run:o}=h.Product.Delete.useVariant({manual:!0,onError(a,c){r({Message:"Failed Delete Variant",Request:c,Error:a})},onSuccess(){t(e.jsx(y,{children:e.jsx(P,{children:"Variant Deleted"})}),{intent:"success"}),s()}});return e.jsx(i,{appearance:"subtle",icon:e.jsx(K,{}),onClick:()=>o(n)})}const Xn=new b("Admin","Product","Detail","Variant","Edit","TypeDelete");function Qn({VariantId:n,Type:s,Refresh:r}){const{dispatch:t,dispatchToast:o}=w(Xn),{run:a}=h.Product.Delete.useType({manual:!0,onError(c,l){t({Message:"Failed Delete Type",Request:l,Error:c})},onSuccess(){o(e.jsx(y,{children:e.jsx(P,{children:"Type Deleted"})}),{intent:"success"}),r()}});return e.jsx(i,{appearance:"subtle",icon:e.jsx(K,{}),onClick:()=>a(n,s)})}const Yn=new b("Admin","Product","Detail","Variant","Edit","Name");function Jn({Id:n,Name:s}){const[r,t]=S.useState(s),[o,{setTrue:a,setFalse:c}]=k(),{dispatch:l,dispatchToast:u}=w(Yn),{run:j}=h.Product.Patch.useVariantName({manual:!0,onError(d,C){l({Message:"Failed Update Variant Name",Request:C[0],Error:d})},onSuccess(){u(e.jsx(y,{children:e.jsx(P,{children:"Variant Name Updated"})}),{intent:"success"}),c()}});return e.jsx(B,{size:"large",value:r,disabled:!o,appearance:"underline",onChange:(d,C)=>t(C.value),contentBefore:e.jsx(ke,{children:"Name"}),contentAfter:o?e.jsx(i,{appearance:"subtle",icon:e.jsx(J,{}),onClick:()=>j(n,r)}):e.jsx(i,{appearance:"subtle",icon:e.jsx(F,{}),onClick:a})})}const Kn=N({body:{...U,rowGap:E.spacingVerticalM}}),Wn=new b("Admin","Product","Detail","Variant","Edit","Type");function Ve({VariantId:n,Type:s,Refresh:r,New:t}){const o=Kn(),[a,{toggle:c}]=k(),[l,u]=S.useState(s||""),{dispatch:j,dispatchToast:d}=w(Wn),C={manual:!0,onError(D,T){j({Message:`Failed ${t?"Create":"Update"} Type ${l}`,Request:T,Error:D})},onSuccess(D){d(e.jsxs(y,{children:[e.jsxs(P,{children:["Type ",t?"Created":"Updated"]}),e.jsxs(qe,{children:[D," ",l]})]}),{intent:"success"}),r(),u(""),c()}},{run:m}=h.Product.Post.useType(C),{run:p}=h.Product.Patch.useType(C);return e.jsxs(ye,{withArrow:!0,open:a,onOpenChange:c,children:[e.jsx(Pe,{disableButtonEnhancement:!0,children:t?e.jsx(i,{icon:e.jsx(re,{}),appearance:"primary",children:"New Type"}):e.jsx(i,{appearance:"subtle",icon:e.jsx(F,{})})}),e.jsxs(Ae,{className:o.body,children:[e.jsx(M,{label:"Type Name",children:e.jsx(B,{value:l,onChange:(D,T)=>u(T.value)})}),e.jsx(i,{onClick:()=>t?m(n,l):p(n,s,l),children:"Submit"})]})]})}const ue=N({body:{...U,rowGap:E.spacingVerticalM},twelve:{flexBasis:"12%",flexGrow:0}}),Zn=[x({columnId:"Name",renderHeaderCell:()=>e.jsx(g,{children:"Name"}),renderCell(n){return e.jsx(f,{children:n.Name})}}),x({columnId:"Action",renderHeaderCell:()=>e.jsx(g,{className:ue().twelve,children:"Action"}),renderCell(n){return e.jsxs(f,{className:ue().twelve,children:[e.jsx(Ve,{VariantId:n.VariantId,Type:n.Name,Refresh:n.Refresh}),e.jsx(Qn,{VariantId:n.VariantId,Type:n.Name,Refresh:n.Refresh})]})}})];function es({Variant:n,Refresh:s}){return e.jsxs(W,{children:[e.jsx(V,{disableButtonEnhancement:!0,children:e.jsx(i,{appearance:"subtle",icon:e.jsx(F,{})})}),e.jsx(Z,{children:e.jsxs(ee,{children:[e.jsx(ne,{action:e.jsx(V,{disableButtonEnhancement:!0,children:e.jsx(i,{appearance:"subtle",icon:e.jsx(q,{})})}),children:"Variant Detail"}),e.jsxs(se,{className:ue().body,children:[e.jsx(Jn,{Id:n.Id,Name:n.Name}),e.jsx(G,{Items:n.Types.map((r,t)=>({Id:t,Name:r,VariantId:n.Id,Refresh:s})),Columns:Zn})]}),e.jsx(Le,{children:e.jsx(Ve,{VariantId:n.Id,Refresh:s,New:!0})})]})})]})}const ns=N({body:{...U,rowGap:E.spacingVerticalM}}),ss=new b("Admin","Product","Detail","Variant","New");function rs({ProdId:n,Refresh:s}){const r=ns(),[t,{toggle:o}]=k(),[a,c]=S.useState(""),{dispatch:l,dispatchToast:u}=w(ss),{run:j}=h.Product.Post.useVariant({manual:!0,onError(d,C){l({Message:"Failed Create Variant",Request:C,Error:d})},onSuccess(){u(e.jsx(y,{children:e.jsx(P,{children:"Variant Created"})}),{intent:"success"}),s(),c(""),o()}});return e.jsxs(ye,{withArrow:!0,open:t,onOpenChange:o,children:[e.jsx(Pe,{disableButtonEnhancement:!0,children:e.jsx(i,{appearance:"primary",icon:e.jsx(re,{}),children:"New Variant"})}),e.jsxs(Ae,{className:r.body,children:[e.jsx(M,{required:!0,label:"Variant Name",children:e.jsx(B,{value:a,onChange:(d,C)=>c(C.value)})}),e.jsx(i,{onClick:()=>j(n,a),children:"Add"})]})]})}const O=N({body:{...$,justifyContent:"space-between"},four:{flexBasis:"4%",flexGrow:0},seven:{flexBasis:"7%",flexGrow:0},twelve:{flexBasis:"12%",flexGrow:0}}),Ee=new b("Admin","Product","Detail","Variant"),ts=[x({columnId:"Id",renderHeaderCell:()=>e.jsx(g,{className:O().four,children:"Id"}),renderCell(n){return e.jsx(f,{className:O().four,children:n.Id})}}),x({columnId:"Name",renderHeaderCell:()=>e.jsx(g,{className:O().twelve,children:"Name"}),renderCell(n){return e.jsx(f,{className:O().twelve,children:n.Name})}}),x({columnId:"Type",renderHeaderCell:()=>e.jsx(g,{children:"Type"}),renderCell(n){return e.jsx(f,{children:n.Types.reduce((s,r)=>`${s} ${r} ;`,"")})}}),x({columnId:"Action",renderHeaderCell:()=>e.jsx(g,{className:O().seven,children:"Action"}),renderCell(n){return e.jsxs(f,{className:O().seven,children:[e.jsx(es,{Variant:n,Refresh:me}),e.jsx(_n,{VariantId:n.Id,Refresh:me})]})}})];let me;function as({ProdId:n}){const s=O(),{data:r,run:t}=I(()=>h.Product.Get.Variants(n,Ee),{onError:Ee.error});return me=t,e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:s.body,children:[e.jsx(be,{children:"Variant"}),e.jsx(rs,{ProdId:n,Refresh:t})]}),e.jsx(G,{Items:r,Columns:ts})]})}const os=N({body:{...U,rowGap:E.spacingVerticalXL,paddingBottom:E.spacingVerticalXXXL}});function cs({ProdId:n}){const s=os(),[r,{setFalse:t,setTrue:o}]=k(),{Nav:a,Paths:c}=Q(),l=parseInt(c.at(1));return S.useEffect(()=>{l===n?o():t()},[c]),e.jsxs(e.Fragment,{children:[e.jsx(i,{appearance:"subtle",icon:e.jsx(ve,{}),onClick:()=>{a("Admin",n),o()}}),e.jsxs(xe,{open:r,position:"end",size:"large",modalType:"alert",children:[e.jsx(pe,{children:e.jsx(je,{action:e.jsx(i,{appearance:"subtle",icon:e.jsx(q,{}),onClick:()=>{a("Admin"),t()}}),children:"Product Detail"})}),e.jsxs(Ce,{className:s.body,children:[e.jsx(Hn,{ProdId:n}),e.jsx(Pn,{ProdId:n}),e.jsx(Ln,{ProdId:n}),e.jsx(as,{ProdId:n}),e.jsx(kn,{ProdId:n}),e.jsx(Un,{ProdId:n}),e.jsx(Rn,{ProdId:n})]})]})]})}const z=new b("Admin","Product","Row");function ls({item:n}){const[s,r]=S.useState(()=>({Id:n,Cover:"",Name:"Loading..."})),[t,{setTrue:o}]=k(),a=L.Product.Get;return ze(async()=>{const c=await a.Product(n).catch(z.error);if(!c)return z.warn(`Product ${n} Not Found`),o();let l={...s,Name:c.Name,Category:c.Category||"Pending"};r(l);const[u,j]=await a.PhotoList(n,z);j||z.warn(`Product ${n} has no photo`),r(l={...l,Cover:j});const d=await h.Product.Get.Count(n).catch(z.error);d&&r({...l,...d})},[]),t?null:e.jsx($e,{children:({renderCell:c})=>c(s)},n)}const Te=N({two:{flexBasis:"2.5%",flexGrow:0},twoc:{flexBasis:"2.5%",flexGrow:0,justifyContent:"center"}}),Fe=new b("Admin","Product"),is=[Ge(50,Fe),x({columnId:"Product",renderHeaderCell:()=>e.jsx(g,{children:"Product"}),renderCell(n){return e.jsx(f,{children:e.jsx(we,{children:n.Name})})}}),x({columnId:"Category",renderHeaderCell:()=>e.jsx(g,{children:"Category"}),renderCell(n){return e.jsx(f,{children:e.jsx(we,{children:n.Category})})}}),x({columnId:"Variant",renderHeaderCell:()=>e.jsx(g,{children:"Variant"}),renderCell(n){return e.jsx(f,{children:n.Variant})}}),x({columnId:"Combo",renderHeaderCell:()=>e.jsx(g,{children:"Combo"}),renderCell(n){return e.jsx(f,{children:n.Combo})}}),x({columnId:"Stock",renderHeaderCell:()=>e.jsx(g,{children:"Stock"}),renderCell(n){return e.jsx(f,{children:n.Stock})}}),x({columnId:"Action",renderHeaderCell:()=>e.jsx(g,{className:Te().two,children:"Detail"}),renderCell(n){return e.jsx(f,{className:Te().twoc,children:e.jsx(cs,{ProdId:n.Id})})}})];function ds(){const n=h.Product.Get.useList(Fe);return e.jsxs(_e,{items:n?n.reverse():[],columns:is,children:[e.jsx(Xe,{children:e.jsx($e,{children:({renderHeaderCell:s})=>s()})}),e.jsx(Qe,{children:s=>e.jsx(ls,{...s})}),!n&&e.jsx(Ye,{size:48})]})}const us=new b("Admin","User","Delete");function ms({UserId:n,Refresh:s}){const{dispatch:r,dispatchToast:t}=w(us),{run:o}=h.User.Delete.useUser({manual:!0,onError(a,c){r({Message:"Failed Delete User",Request:c,Error:a})},onSuccess(){t(e.jsx(y,{children:e.jsx(P,{children:"User Deleted"})}),{intent:"success"}),s()}});return e.jsx(i,{appearance:"subtle",icon:e.jsx(K,{}),onClick:()=>o(n)})}const hs=new b("Admin","User","Grant");function xs({UserId:n,Admin:s,Refresh:r}){const{dispatch:t,dispatchToast:o}=w(hs),{run:a}=h.User.Post.useAdmin({manual:!0,onError(l,u){t({Message:"Failed Grant Admin",Request:u,Error:l})},onSuccess(){o(e.jsx(y,{children:e.jsx(P,{children:"Admin Granted"})}),{intent:"success"}),r()}}),{run:c}=h.User.Delete.useAdmin({manual:!0,onError(l,u){t({Message:"Failed Revoke Admin",Request:u,Error:l})},onSuccess(){o(e.jsx(y,{children:e.jsx(P,{children:"Admin Revoked"})}),{intent:"success"}),r()}});return e.jsx(Je,{checked:s,onChange:(l,u)=>{u.checked?a(n):c(n)}})}const ps=new b("Admin","User"),js=[x({columnId:"Id",renderHeaderCell:()=>"Id",renderCell(n){return n.Id}}),x({columnId:"Name",renderHeaderCell:()=>"Real Name",renderCell(n){return n.Name}}),x({columnId:"Email",renderHeaderCell:()=>"E-Mail",renderCell(n){return n.EMail}}),x({columnId:"Admin",renderHeaderCell:()=>"Admin",renderCell(n){return e.jsx(xs,{UserId:n.Id,Admin:n.Admin,Refresh:he})}}),x({columnId:"Delete",renderHeaderCell:()=>"Delete",renderCell(n){return e.jsx(ms,{UserId:n.Id,Refresh:he})}})].map(({renderHeaderCell:n,renderCell:s,...r})=>({...r,renderHeaderCell:()=>e.jsx(g,{children:n()}),renderCell:t=>e.jsx(f,{children:s(t)})}));let he;function Cs(){const{data:n,run:s}=I(()=>h.User.Get.List(),{onError:ps.error});return he=s,e.jsx(G,{Items:n,Columns:js})}const gs=new b("Admin");function Ns(){const{Paths:n,Nav:s}=Q(),r=n.at(1),t=S.useMemo(()=>{switch(r){case"Order":return e.jsx(bn,{});case"User":return e.jsx(Cs,{});default:return e.jsx(ds,{})}},[r]),o=L.User.Get.useMe(gs);return o?o.Admin?t:s("/"):e.jsx(Ke,{size:"huge",label:"Authenticating..."})}export{Ns as default}; diff --git a/assets/index-aawXm4sE.js b/assets/index-aawXm4sE.js deleted file mode 100644 index a7890ff..0000000 --- a/assets/index-aawXm4sE.js +++ /dev/null @@ -1 +0,0 @@ -import{x as o,j as t,y as e}from"./vendor-EPO6t9z0.js";import{L as a,H as n,f as i}from"./index-th8hOfI3.js";import{H as m}from"./Columns-udWp41vx.js";const s=new a("History");function l(){const{data:r}=o(()=>n.Order.Get.List(s),{onError:s.error});return t.jsx(i,{Items:r,Columns:e(()=>m(s))})}export{l as default}; diff --git a/assets/index-th8hOfI3.js b/assets/index-g5wBm8kU.js similarity index 98% rename from assets/index-th8hOfI3.js rename to assets/index-g5wBm8kU.js index a4a7068..bdd6393 100644 --- a/assets/index-th8hOfI3.js +++ b/assets/index-g5wBm8kU.js @@ -1,11 +1,11 @@ -import{r as x,u as Ct,j as n,d as w,t as m,s as R,m as P,a as Wt,T as Z,b as tt,c as et,e as J,f as jt,D as bt,g as vt,h as Tt,i as Qt,k as Lt,F as E,I as z,L as H,l as Et,n as lt,B as N,S as ht,o as O,A as W,X as Xt,P as qt,p as ft,H as _,q as St,v as Nt,M as It,w as kt,x as h,y as A,z as Gt,C as Yt,E as Jt,G as Kt,J as U,K as at,N as Zt,O as te,Q as ee,R as se,U as ne,V as re,W as ae,Y as oe,Z as ie,_ as B,$ as ce,a0 as ue,a1 as wt,a2 as de,a3 as le,a4 as At,a5 as Q,a6 as he,a7 as X,a8 as me,a9 as pe,aa as ge,ab as xe,ac as fe,ad as we,ae as ye,af as Pe,ag as Ce,ah as je,ai as be,aj as ve,ak as Te,al as Le,am as Ee,an as Se,ao as Ne,ap as Ie,aq as ke,ar as q,as as st,at as Ge,au as Ae,av as $e,aw as Oe,ax as Ue}from"./vendor-EPO6t9z0.js";function ot(o){return`/${o.filter(s=>s).map(s=>s.toString().replace(/^\/+/,"")).join("/")}`}const $t=x.createContext({});function V(){return x.useContext($t)}function Me({children:o}){const[t,s]=x.useState(()=>({Paths:location.pathname.split("/").filter(c=>c),Search:new URLSearchParams(location.search),Put:e,Nav:(...c)=>a(ot(c)),Rep:(...c)=>i(ot(c)),Reload:(...c)=>d(c)}));function e(c){history.replaceState(null,"",`${location.pathname}${c.size?"?":""}${c.toString()}`),t.Search=new URLSearchParams(c),s({...t})}function r(c){t.Paths=c.split("/").filter(u=>u),t.Search=new URLSearchParams(location.search),s({...t})}function a(c){history.pushState(null,"",c),r(c)}function i(c){history.replaceState(null,"",c),r(c)}function d(c){history.replaceState(null,"","/Reload"),r("/Reload"),setTimeout(()=>{const u=c.length?ot(c):location.pathname;history.pushState(null,"",u),r(u)},100)}return Ct(()=>{location.pathname==="/"&&location.search.startsWith("?/")&&i(location.search.substring(2)),addEventListener("click",c=>{const u=c.target?.closest("a");if(u){if(u.origin!==location.origin){u.target="_blank";return}c.preventDefault(),a(u.pathname)}}),addEventListener("popstate",c=>{c.preventDefault(),r(location.pathname)})}),n.jsx($t.Provider,{value:t,children:o})}class ${namespace;info;error;warn;debug;throw;constructor(...t){this.namespace=t.join(" > "),this.error=console.error.bind(this,this.baseColor(101,"error"),` +import{r as x,u as Ct,j as n,d as w,t as m,s as R,m as P,a as Wt,T as Z,b as tt,c as et,e as J,f as jt,D as bt,g as vt,h as Tt,i as Qt,k as Lt,F as E,I as z,L as H,l as Et,n as lt,B as N,S as ht,o as O,A as W,X as Xt,P as qt,p as ft,H as _,q as St,v as Nt,M as It,w as kt,x as h,y as A,z as Gt,C as Yt,E as Jt,G as Kt,J as U,K as at,N as Zt,O as te,Q as ee,R as se,U as ne,V as re,W as ae,Y as oe,Z as ie,_ as B,$ as ce,a0 as ue,a1 as wt,a2 as de,a3 as le,a4 as At,a5 as Q,a6 as he,a7 as X,a8 as me,a9 as pe,aa as ge,ab as xe,ac as fe,ad as we,ae as ye,af as Pe,ag as Ce,ah as je,ai as be,aj as ve,ak as Te,al as Le,am as Ee,an as Se,ao as Ne,ap as Ie,aq as ke,ar as q,as as st,at as Ge,au as Ae,av as $e,aw as Oe,ax as Ue}from"./vendor-nd_CUwkm.js";function ot(o){return`/${o.filter(s=>s).map(s=>s.toString().replace(/^\/+/,"")).join("/")}`}const $t=x.createContext({});function V(){return x.useContext($t)}function Me({children:o}){const[t,s]=x.useState(()=>({Paths:location.pathname.split("/").filter(c=>c),Search:new URLSearchParams(location.search),Put:e,Nav:(...c)=>a(ot(c)),Rep:(...c)=>i(ot(c)),Reload:(...c)=>d(c)}));function e(c){history.replaceState(null,"",`${location.pathname}${c.size?"?":""}${c.toString()}`),t.Search=new URLSearchParams(c),s({...t})}function r(c){t.Paths=c.split("/").filter(u=>u),t.Search=new URLSearchParams(location.search),s({...t})}function a(c){history.pushState(null,"",c),r(c)}function i(c){history.replaceState(null,"",c),r(c)}function d(c){history.replaceState(null,"","/Reload"),r("/Reload"),setTimeout(()=>{const u=c.length?ot(c):location.pathname;history.pushState(null,"",u),r(u)},100)}return Ct(()=>{location.pathname==="/"&&location.search.startsWith("?/")&&i(location.search.substring(2)),addEventListener("click",c=>{const u=c.target?.closest("a");if(u){if(u.origin!==location.origin){u.target="_blank";return}c.preventDefault(),a(u.pathname)}}),addEventListener("popstate",c=>{c.preventDefault(),r(location.pathname)})}),n.jsx($t.Provider,{value:t,children:o})}class ${namespace;info;error;warn;debug;throw;constructor(...t){this.namespace=t.join(" > "),this.error=console.error.bind(this,this.baseColor(101,"error"),` `),this.warn=console.warn.bind(this,this.baseColor(103,"warn"),` `),this.info=console.info.bind(this,this.baseColor(104,"info"),` `),this.debug=console.debug.bind(this,this.baseColor(102,"debug"),` - `),this.throw=console.log.bind(this,this.baseColor(105,"throw"),"↓ The Following Error is Thrown ↓")}With(...t){return new $(this.namespace,...t)}baseColor(t,s){return`\x1B[${t};30;1m ${s.toUpperCase()} \x1B[0m\x1B[100;97m ${w().format("YY-M-D H:m:s")} \x1B[1m\x1B[40;97m ${this.namespace} `}}const k={display:"flex"},De={flexDirection:"column"},M={...k,...De},Qs={...k,backgroundColor:m.colorNeutralBackground1,boxShadow:m.shadow4,...R.borderRadius(m.borderRadiusMedium)},Re={whiteSpace:"pre-line"},mt=60,pt="1636px",Ve={objectFit:"cover",objectPosition:"center"},Be=P({pre:Re});function nt(o){const t=Be(),{dispatchToast:s}=Wt();return{dispatch:e=>{const r=e.Error.message,a=r.indexOf("Exception:");let i=r;a!==-1&&(i=r.substring(a+10)),s(n.jsxs(Z,{children:[n.jsx(tt,{children:"Internal Error"}),n.jsx(et,{subtitle:n.jsxs(J,{className:t.pre,children:[i,n.jsx("br",{}),"More Info, See Console"]}),children:n.jsx(J,{className:t.pre,children:e.Message})})]}),{intent:"error",timeout:1e4}),o.error(e)},dispatchToast:s}}const He=P({box:{...M,rowGap:m.spacingVerticalM},one:{...k,columnGap:m.spacingVerticalXXXL}}),yt=new $("Setting");function Ot({Open:o,Toggle:t,New:s}){const e=He(),r=jt().instance.getActiveAccount(),[a,i]=x.useState(),[d,c]=x.useState(),[u,l]=x.useState(),p=b.User.Get.useMe(yt);x.useEffect(()=>{if(s||!p)return;const{Name:f,Phone:g,Address:_t}=p;i(f),c(g),l(_t)},[p]);const{dispatch:y,dispatchToast:v}=nt(yt),{run:T}=b.User.Post.useUpdate({manual:!0,onError(f,[g]){y({Message:`Failed ${s?"Create":"Update"} Info`,Error:f,Request:g})},onSuccess(f,[g]){v(n.jsxs(Z,{children:[n.jsxs(tt,{children:["Info ",s?"Created":"Updated"]}),n.jsxs(et,{children:[g.Name,n.jsx("br",{}),g.Phone,n.jsx("br",{}),g.Address]})]}),{intent:"success"}),s&&(D.next(!1),D.complete(),D.closed=!0),t()}});return n.jsx(bt,{open:o,onOpenChange:t,modalType:s?"alert":"modal",children:n.jsx(vt,{children:n.jsxs(Tt,{children:[n.jsx(Qt,{children:s?"Welcome! Fill in your info to get started.":"Personal Information"}),n.jsxs(Lt,{className:e.box,children:[n.jsxs("div",{className:e.one,children:[n.jsx(E,{label:"Name",size:"large",required:!0,children:n.jsx(z,{size:"medium",value:a,maxLength:20,onChange:(f,g)=>i(g.value)})}),n.jsx(E,{label:"Phone",size:"large",required:!0,children:n.jsx(z,{size:"medium",value:d,maxLength:20,onChange:(f,g)=>c(g.value)})})]}),n.jsx(E,{label:"E-Mail",size:"large",children:n.jsx(H,{children:r?.username})}),n.jsx(E,{label:"Address",size:"large",required:!0,children:n.jsx(z,{size:"medium",value:u,maxLength:100,minLength:20,onChange:(f,g)=>l(g.value)})})]}),n.jsxs(Et,{children:[!s&&n.jsx(lt,{disableButtonEnhancement:!0,children:n.jsx(N,{appearance:"secondary",children:"Cancel"})}),n.jsx(N,{appearance:"primary",onClick:()=>T({EMail:r?.username,Name:a,Address:u,Phone:d}),children:"Submit"})]})]})})})}const D=new ht;function ze(){const[o,{toggle:t}]=O();return Ct(()=>D.subscribe(s=>s&&t())),n.jsx(W,{children:n.jsx(Ot,{Open:o,Toggle:t,New:!0})})}class Fe{constructor(t,s){this.DB=t,this.Name=s,this.Sto=t.table(s),this.Trim()}Sto;async Get(t,s){const e=await this.Sto.get(t);return e?s&&await Promise.resolve(s(e))||typeof e.Exp=="number"&&e.Exptypeof t.Exp=="number"&&t.Exp{const s=setInterval(()=>{this.Hub.state===_.Connected&&(clearInterval(s),t())},100)}))}static async Invoke(t,...s){return await this.EnsureConnected(),this.Hub.invoke(t,...s)}static EnsureLogin(){if(!I.getActiveAccount())throw new Mt}static EnsureTrue(t){if(!t)throw new _e}static Index(t,s){return`${s}_${t}`}static async UpdateCache(t,s,e,r){const a=this.Index(s,e),i=await L.Get(a);if(!i)return;const d=t(i);i.QueryExp?await L.Set(a,{...d,QueryExp:w().add(1,"m").unix()},w().add(1,"w")):await L.Set(a,d,r||null)}static async GetVersionCache(t,s){const e=this.Index(t,s),r=await L.Get(e);if(r&&r.QueryExp>w().unix())return r;const a=await Promise.resolve(this.Invoke(s,t,r?.Version));if(a===!0)return L.Set(e,{...r,QueryExp:w().add(1,"m").unix()},w().add(1,"w")),r;if(!a)throw L.Sto.delete(e),new Dt;return await L.Set(e,{...a,QueryExp:w().add(1,"m").unix()},w().add(1,"w")),a}static async GetTimeCache(t,s,e,...r){return await L.GetOrSet(this.Index(t,s),async()=>await this.Invoke(s,...r),e(w()))}static async HandleFileStream(t,s,e){const a=Math.ceil(t.size/30720);let i=0;for(;i{l.onload=()=>y(new Uint8Array(l.result)),l.onerror=()=>v(l.error),l.readAsArrayBuffer(u)});s.next(p),e?.debug(`Sent chunk ${i+1}/${a}`),i++}s.complete()}}class G extends Rt{static Log=["|","ShopNet"];static Hub=new St().withUrl("https://awaishop.aloen.to:3389/Hub",{skipNegotiation:!0,transport:Nt.WebSockets,logMessageContent:!1,async accessTokenFactory(){const t=await Ut();return t||""}}).withAutomaticReconnect().withStatefulReconnect().withHubProtocol(new It).configureLogging(kt.Information).build()}G.Hub.on("OnNewUser",()=>{D.next(!0),console.debug("OnNewUser")});class We extends G{static Categories(){return this.GetTimeCache("","GalleryGetCategories",t=>t.add(1,"m"))}static async Products(t){const s=await this.GetTimeCache(t,"GalleryGetProducts",e=>e.add(1,"m"),t);return[s,4-s.length%4]}}const Qe={Get:We};class Xe extends G{static async Get(t){if(!/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/i.test(t))throw new Error(`Invalid ObjectId ${t}`);return await this.EnsureConnected(),this.Hub.stream("ObjectStorageGet",t)}static GetBySlice(t,s){const e=[];return L.GetOrSet(t,()=>new Promise((r,a)=>{this.Get(t).then(i=>i.subscribe({error(d){a(d)},next(d){e.push(d),s.debug("Received Slice",t,e.length)},complete(){r(e)}}))}))}}class qe extends G{static useDelete(t){return h(async s=>{this.EnsureLogin();const e=await this.Invoke("OrderDeleteCancel",s);return this.EnsureTrue(e),e},t)}}class j extends G{static product="ProductEntity";static Product(t){return this.GetVersionCache(t,this.product)}static ProductUpdate(t,s){return this.UpdateCache(s,t,this.product)}static Lexical(t){return this.GetVersionCache(t,"LexicalEntity")}static Photo(t){return this.GetVersionCache(t,"PhotoEntity")}static Type(t){return this.GetVersionCache(t,"TypeEntity")}static Variant(t){return this.GetVersionCache(t,"VariantEntity")}}class S extends j{static Log=[...super.Log,"Product","Get"];static async Basic(t,s){const e=s.With(...this.Log,"Basic"),r=await this.Product(t);if(!r)throw new Error(`Product ${t} Not Found`);const[a,i]=await this.PhotoList(t,s);return i?{Name:r.Name,Cover:i}:(e.warn(`Product ${t} has no photo`),{Name:r.Name,Cover:""})}static Limit(t){return this.Invoke("ProdGetLimit",t)}static async Combo(t,s){const e=s.With(...this.Log,"Combo"),r=await this.ComboList(t),a=[];for(const i of r){const d={};for(const c of i.Types){const u=await this.Type(c);if(!u){e.error(`[Mismatch] Type ${c} not found. Combo ${i.ComboId} : Product ${t}`);continue}const l=await this.Variant(u.VariantId);if(!l){e.error(`[Mismatch] Variant ${u.VariantId} not found. Combo ${i.ComboId} : Type ${c} : Product ${t}`);continue}d[l.Name]=u.Name}a.push({Id:i.ComboId,Stock:i.Stock,Combo:d})}return a}static ComboList(t){return this.GetTimeCache(t,"ProductGetComboList",s=>s.add(1,"m"),t)}static photoList="ProductGetPhotoList";static async PhotoList(t,s){const e=s.With(...this.Log,"PhotoList"),r=await this.GetTimeCache(t,this.photoList,d=>d.add(1,"m"),t).catch(e.error);let a=[],i="";for(const d of r||[]){const c=await this.Photo(d).catch(e.error);c?(a.push(c),c.Cover&&(i=c.ObjectId)):e.warn(`Photo ${d} not found in Product ${t}`)}return a=a.sort((d,c)=>d.Order-c.Order),!i&&a.length>0?(e.warn(`Product ${t} has no cover photo, using first photo instead`),[a,a[0].ObjectId]):[a,i]}static PhotoListUpdate(t,s){return this.UpdateCache(s,t,this.photoList,w().add(1,"m"))}}class Ye extends G{static Order(t){return this.EnsureLogin(),this.GetVersionCache(t,"OrderEntity")}static Comment(t){return this.EnsureLogin(),this.GetVersionCache(t,"CommentEntity")}}class Je extends Ye{static Log=[...super.Log,"Order","Get"];static async List(t){this.EnsureLogin();const s=t.With(...this.Log,"List"),e=await this.GetTimeCache("","OrderGetList",a=>a.add(1,"m")),r=[];for(const a of e){const i=await this.Order(a.OrderId);if(!i){s.warn(`[Mismatch] Order ${a.OrderId} not found`);continue}const d=[];for(const c of a.Products){const u=await j.Product(c);if(!u){s.warn(`[Mismatch] Product ${c} not found`);continue}d.push(u.Name)}r.push({Id:a.OrderId,Items:d,Quantity:a.Quantity,Status:i.Status,TrackNumber:i.TrackingNumber,OrderDate:i.CreateAt})}return r.sort((a,i)=>i.OrderDate.getTime()-a.OrderDate.getTime())}static async Detail(t,s){this.EnsureLogin();const e=s.With(...this.Log,"Detail"),r=await this.GetTimeCache(t,"OrderGetDetail",c=>c.add(1,"m"),t),a=[];let i=0;for(const c of r.Items){const u={};let l=0;for(const T of c.Types){const f=await j.Type(T);if(!f){e.warn(`[Mismatch] Type ${T} not found. Order : ${t}`);continue}const g=await j.Variant(f.VariantId);if(!g){e.warn(`[Mismatch] Variant ${f.VariantId} not found. Type : ${T}, Order : ${t}`);continue}u[g.Name]=f.Name,l=g.ProductId}const p=await j.Product(l);if(!p){e.warn(`[Mismatch] Product ${l} not found. Order : ${t}`);continue}const[y,v]=await S.PhotoList(l,e);v||e.warn(`Product ${l} has no photo`),a.push({Id:i++,ProdId:l,Cover:v||"",Name:p.Name,Type:u,Quantity:c.Quantity})}const d=[];for(const c of r.Comments){const u=await this.Comment(c);if(!u){e.warn(`[Mismatch] Comment ${c} not found. Order : ${t}`);continue}d.push({Content:u.Content,Time:u.CreateAt,User:u.Name||"You"})}return{ShopCart:a,Comments:d.sort((c,u)=>c.Time.getTime()-u.Time.getTime())}}}class Ke extends G{static useNew(t){return h((s,e)=>{this.EnsureLogin();const r=s.map(a=>({ProdId:a.ProdId,Type:Object.values(a.Type),Quantity:a.Quantity}));return this.Invoke("OrderPostNew",r,e)},t)}static useAppend(t){return h(async(s,e)=>{this.EnsureLogin();const r=await this.Invoke("OrderPostAppend",s,e);return this.EnsureTrue(r),r},t)}static useCancel(t){return h(async(s,e)=>{this.EnsureLogin();const r=await this.Invoke("OrderPostCancel",s,e);return this.EnsureTrue(r),r},t)}static useReceived(t){return h(async s=>{this.EnsureLogin();const e=await this.Invoke("OrderPostReceived",s);return this.EnsureTrue(e),e},t)}}const Ze={Get:Je,Post:Ke,Delete:qe},ts={Get:S};class Vt extends G{static Log=[...super.Log,"User","Get"];static me="UserGetMe";static useMe(t){const s=A(()=>t.With(...this.Log,"Me")),{dispatch:e}=nt(s);return Gt(async()=>{try{return this.EnsureLogin(),await this.GetVersionCache(0,this.me)}catch(a){if(a instanceof Dt)return;a instanceof Mt?s.info(a):e({Message:"Failed to Get Your Info",Error:a,Request:""})}})}static MeUpdate(t){return this.UpdateCache(t,0,this.me)}}class es extends G{static useUpdate(t){return h(async s=>{this.EnsureLogin();const e=await this.Invoke("UserPostUpdate",s);return this.EnsureTrue(e),Vt.MeUpdate(r=>({...r,...s})),e},t)}}const ss={Get:Vt,Post:es},b={Gallery:Qe,Product:ts,User:ss,Order:Ze,Storage:Xe},Bt=x.createContext({});function F(){return x.useContext(Bt)}const ct=new $("ShopCart","Context");function ns({children:o}){const[t,s]=x.useState([]);h(async()=>{const a=await it.toArray(),i=[];for(const d of a){const c=await b.Product.Get.Basic(d.ProdId,ct);i.push({...d,...c})}s(i)},{onError:ct.error});async function e(a){for(let i=0;i({Id:i.Id,ProdId:i.ProdId,Type:i.Type,Quantity:i.Quantity})))}async function r(a,i,d){const c=await b.Product.Get.Basic(a,ct);t.push({...c,Id:t.length,ProdId:a,Type:i,Quantity:d}),e(t)}return n.jsx(Bt.Provider,{value:{List:t,Add:r,Update:e},children:o})}const gt={Name:"AwaiShop"},rs=P({box:{width:"-webkit-fill-available",marginTop:m.spacingVerticalXXXL,...R.padding(m.spacingVerticalXXXL,0),backgroundColor:m.colorNeutralBackgroundInverted},main:{...k,maxWidth:pt,...R.margin(0,"auto")},logo:{width:"150px",filter:"invert(96%)"},otc:{color:"white"}});function as(){const o=rs();return n.jsx("footer",{className:o.box,children:n.jsx("div",{className:o.main,children:n.jsx("img",{src:"/safari-pinned-tab.svg",className:o.logo})})})}function os(){const{Paths:o,Search:t,Put:s}=V(),e=o.at(0),r=o.at(1),a=r==="User",i=r==="Order",d=a?"admin":"pending";return e==="Admin"&&(a||i)&&n.jsxs(n.Fragment,{children:[n.jsx(z,{placeholder:"Search in Any Field",contentBefore:n.jsx(Yt,{}),appearance:"underline",onChange:(c,u)=>{u.value?t.set("search",u.value):t.delete("search"),s(t)}}),n.jsx(Jt,{label:`Only ${a?"Admin":"Pending"}`,checked:t.get(d)==="",onChange:(c,u)=>{u.checked?t.set(d,""):t.delete(d),s(t)}})]})}const is=P({box:{...k,flexGrow:1,height:"inherit",marginLeft:m.spacingHorizontalS,alignItems:"center"},div:{color:m.colorNeutralForegroundDisabled},link:{textDecorationLine:"unset !important"}});function cs(){const o=is(),{Paths:t}=V(),s=t.at(0),e=t.at(1)||"Product";return s==="Admin"&&n.jsxs("div",{className:o.box,children:[n.jsx(J,{size:600,font:"monospace",className:o.div,children:"|"}),n.jsxs(Kt,{selectedValue:e,children:[n.jsx(U,{appearance:"subtle",href:"/Admin",className:o.link,children:n.jsx(at,{value:"Product",children:"Product List"})}),n.jsx(U,{appearance:"subtle",href:"/Admin/Order",className:o.link,children:n.jsx(at,{value:"Order",children:"Order List"})}),n.jsx(U,{appearance:"subtle",href:"/Admin/User",className:o.link,children:n.jsx(at,{value:"User",children:"User List"})})]})]})}class C extends Rt{static Log=["|","AdminNet"];static Hub=new St().withUrl("https://awaishop.aloen.to:3389/AdminHub",{skipNegotiation:!0,transport:Nt.WebSockets,logMessageContent:!1,async accessTokenFactory(){const t=await Ut();if(t)return t;throw new Error("Please Login First")}}).withAutomaticReconnect().withStatefulReconnect().withHubProtocol(new It).configureLogging(kt.Information).build();static Index(t,s){return`${s}_Admin_${t}`}}class K extends C{static User(t){return this.EnsureLogin(),this.GetVersionCache(t,"UserEntity")}}class Y extends C{static Order(t){return this.EnsureLogin(),this.GetVersionCache(t,"OrderEntity")}static Comment(t){return this.EnsureLogin(),this.GetVersionCache(t,"CommentEntity")}}class us extends C{static Log=[...super.Log,"Order","Get"];static async List(t){this.EnsureLogin();const s=t.With(...this.Log,"List"),e=await this.GetTimeCache("","OrderGetList",a=>a.add(1,"m")),r=[];for(const a of e){const i=await Y.Order(a.OrderId);if(!i){s.warn(`[Mismatch] Order ${a.OrderId} not found`);continue}const d=[];for(const u of a.Products){const l=await j.Product(u);if(!l){s.warn(`[Mismatch] Product ${u} not found`);continue}d.push(l.Name)}const c=await K.User(i.UserId);if(!c){s.error(`[Mismatch] User ${i.UserId} not found`);continue}r.push({Id:a.OrderId,Items:d,Quantity:a.Quantity,Status:i.Status,TrackNumber:i.TrackingNumber,OrderDate:i.CreateAt,User:c.Name})}return r.sort((a,i)=>i.OrderDate.getTime()-a.OrderDate.getTime())}static async Detail(t,s){this.EnsureLogin();const e=s.With(...this.Log,"Detail"),r=await this.GetTimeCache(t,"OrderGetDetail",c=>c.add(1,"m"),t),a=[];let i=0;for(const c of r.Items){const u={};let l=0;for(const T of c.Types){const f=await j.Type(T);if(!f){e.warn(`[Mismatch] Type ${T} not found. Order : ${t}`);continue}const g=await j.Variant(f.VariantId);if(!g){e.warn(`[Mismatch] Variant ${f.VariantId} not found. Type : ${T}, Order : ${t}`);continue}u[g.Name]=f.Name,l=g.ProductId}const p=await j.Product(l);if(!p){e.warn(`[Mismatch] Product ${l} not found. Order : ${t}`);continue}const[y,v]=await S.PhotoList(l,e);v||e.warn(`Product ${l} has no photo`),a.push({Id:i++,ProdId:l,Cover:v||"",Name:p.Name,Type:u,Quantity:c.Quantity})}const d=[];for(const c of r.Comments){const u=await Y.Comment(c);if(!u){e.warn(`[Mismatch] Comment ${c} not found. Order : ${t}`);continue}let l="Client";if(u.UserId){const p=await K.User(u.UserId);p?l=p.Name:e.warn(`[Mismatch] User ${u.UserId} not found. Order : ${t}`)}d.push({Content:u.Content,Time:u.CreateAt,User:l})}return{ShopCart:a,Comments:d.sort((c,u)=>c.Time.getTime()-u.Time.getTime())}}static Order=Y.Order}class ds extends C{static useAppend(t){return h(async(s,e)=>{const r=await this.Invoke("OrderPostAppend",s,e);return this.EnsureTrue(r),r},t)}static useClose(t){return h(async(s,e)=>{const r=await this.Invoke("OrderPostClose",s,e);return this.EnsureTrue(r),r},t)}static useShip(t){return h(async(s,e)=>{const r=await this.Invoke("OrderPostShip",s,e);return this.EnsureTrue(r),r},t)}static useAccept(t){return h(async s=>{const e=await this.Invoke("OrderPostAccept",s);return this.EnsureTrue(e),e},t)}}const ls={Get:us,Post:ds};class xt extends C{static Log=[...super.Log,"Product","Get"];static list="ProductGetList";static useList(t){const s=A(()=>t.With(...this.Log,"List"));return Gt(()=>this.GetTimeCache("",this.list,r=>r.add(1,"m")).catch(s.error))}static ListUpdate(t){return this.UpdateCache(t,"",this.list,w().add(1,"m"))}static Count(t){return this.GetTimeCache(t,"ProductGetCount",s=>s.add(1,"m"),t)}static async Name(t){const s=await S.Product(t);if(!s)throw new Error(`Product ${t} Not Found`);return s.Name}static async Category(t){const s=await S.Product(t);if(!s)throw new Error(`Product ${t} Not Found`);return s.Category}static async Variants(t,s){const e=s.With(...this.Log,"Variants"),r=await this.GetTimeCache(t,"ProductGetVariants",i=>i.add(1,"m"),t),a=[];for(const i of r){const d=await S.Variant(i.VariantId);if(!d){e.warn(`Variant ${i} Not Found. Product : ${t}`);continue}const c=[];for(const u of i.Types){const l=await S.Type(u);if(!l){e.warn(`Type ${u} Not Found. Variant : ${i.VariantId}, Product : ${t}`);continue}c.push(l.Name)}a.push({Id:i.VariantId,Name:d.Name,Types:c})}return a}}class hs extends C{static usePhoto(t){return h(async(s,e)=>{const r=await this.Invoke("ProductDeletePhoto",e);return this.EnsureTrue(r),S.PhotoListUpdate(s,a=>a.filter(i=>i!==e)),r},t)}static useVariant(t){return h(async s=>{const e=await this.Invoke("ProductDeleteVariant",s);return this.EnsureTrue(e),e},t)}static useType(t){return h(async(s,e)=>{const r=await this.Invoke("ProductDeleteType",s,e);return this.EnsureTrue(r),r},t)}static useCombo(t){return h(async s=>{const e=await this.Invoke("ProductDeleteCombo",s);return this.EnsureTrue(e),e},t)}static useProduct(t){return h(async s=>{const e=await this.Invoke("ProductDeleteProduct",s);return this.EnsureTrue(e),xt.ListUpdate(r=>r.filter(a=>a!==s)),e},t)}static useCategory(t){return h(async s=>{const e=await this.Invoke("ProductDetachCategory",s);return this.EnsureTrue(e),j.ProductUpdate(s,r=>(r.Category=void 0,r)),e},t)}}class ms extends C{static Log=[...super.Log,"Product","Patch"];static useName(t){return h(async(s,e)=>{const r=await this.Invoke("ProductPatchName",s,e);return this.EnsureTrue(r),r},t)}static useCategory(t){return h(async(s,e)=>{const r=await this.Invoke("ProductPatchCategory",s,e);return this.EnsureTrue(r),r},t)}static usePhoto(t,s){const e=A(()=>t.With(...this.Log,"Photo"));return h(async(r,a)=>{if(!a.type.startsWith("image/"))throw new TypeError("File is not an image");if(a.size>10*1024*1024)throw new RangeError("File is too large, max 10MB");await this.EnsureConnected();const i=new ht,d=this.Hub.invoke("ProductPatchPhoto",r,i);return await this.HandleFileStream(a,i,e),this.EnsureTrue(await d),!0},s)}static useCaption(t){return h(async(s,e)=>{const r=await this.Invoke("ProductPatchCaption",s,e);return this.EnsureTrue(r),r},t)}static useVariantName(t){return h(async(s,e)=>{const r=await this.Invoke("ProductPatchVariantName",s,e);return this.EnsureTrue(r),r},t)}static useType(t){return h(async(s,e,r)=>{const a=await this.Invoke("ProductPatchType",s,e,r);return this.EnsureTrue(a),a},t)}static useCombo(t){return h(async(s,e,r)=>{const a=await this.Invoke("ProductPatchCombo",s,e,r);return this.EnsureTrue(a),a},t)}}let Ht;function Xs(o){Ht=o}class ps extends C{static Log=[...super.Log,"Product","Post"];static useCreate(t){return h(async s=>{const e=await this.Invoke("ProductPostCreate",s);return xt.ListUpdate(r=>[e,...r]),e},t)}static useMovePhoto(t){return h(async(s,e)=>{const r=await this.Invoke("ProductPostMovePhoto",s,e);return this.EnsureTrue(r),r},t)}static usePhoto(t,s){const e=A(()=>t.With(...this.Log,"Photo"));return h(async(r,a)=>{if(!a.type.startsWith("image/"))throw new TypeError("File is not an image");if(a.size>10*1024*1024)throw new RangeError("File is too large, max 10MB");const i=new ht,d=this.Invoke("ProductPostPhoto",r,i);await this.HandleFileStream(a,i,e);const c=await d;return S.PhotoListUpdate(r,u=>[...u,c]),c},s)}static useVariant(t){return h((s,e)=>this.Invoke("ProductPostVariant",s,e),t)}static useType(t){return h((s,e)=>this.Invoke("ProductPostType",s,e),t)}static useCombo(t){return h((s,e,r)=>this.Invoke("ProductPostCombo",s,e,r),t)}static useLexical(t){return h(async s=>{const e=Ht?.getEditorState();let r;e&&!e.isEmpty()&&(r=JSON.stringify(e.toJSON()));const a=await this.Invoke("ProductPostDescription",s,r);return this.EnsureTrue(a),a},t)}}const gs={Get:xt,Post:ps,Patch:ms,Delete:hs};class xs extends C{static useUser(t){return h(async s=>{const e=await this.Invoke("UserDeleteUser",s);return this.EnsureTrue(e),e},t)}static useAdmin(t){return h(async s=>{const e=await this.Invoke("UserDeleteAdmin",s);return this.EnsureTrue(e),e},t)}}class fs extends C{static async OrderUser(t){const s=await Y.Order(t);if(!s)throw new Error(`Order ${t} not found`);const e=await K.User(s.UserId);if(!e)throw new Error(`User ${s.UserId} not found in order ${t}`);return e}static async List(){const t=await this.GetTimeCache("","UserGetList",e=>e.add(1,"m")),s=[];for(const e of t){const r=await K.User(e);if(!r){console.warn(`User ${e} not found`);continue}s.push({Id:e,Name:r.Name,EMail:r.EMail,Admin:r.Admin})}return s}}class ws extends C{static useAdmin(t){return h(async s=>{const e=await this.Invoke("UserPostAdmin",s);return this.EnsureTrue(e),e},t)}}const ys={Get:fs,Post:ws,Delete:xs},Ps={Product:gs,Order:ls,User:ys},Cs=P({body:M}),js=new $("Admin","Product","AddButton");function bs(){const{Nav:o,Paths:t}=V(),s=t.at(0),e=t.at(1),r=Cs(),[a,i]=x.useState(""),{dispatch:d,dispatchToast:c}=nt(js),{run:u,loading:l}=Ps.Product.Post.useCreate({manual:!0,onError(p,y){d({Message:`Failed Create ${a}`,Request:y,Error:p})},onSuccess(p){c(n.jsxs(Z,{children:[n.jsx(tt,{children:"New Product Created"}),n.jsxs(et,{children:[p," ",a]})]}),{intent:"success"}),o("Admin",p),i("")}});return s==="Admin"&&!e&&n.jsxs(bt,{children:[n.jsx(lt,{disableButtonEnhancement:!0,children:n.jsx(N,{appearance:"primary",icon:n.jsx(Zt,{}),children:"New Product"})}),n.jsx(vt,{children:n.jsxs(Tt,{children:[n.jsx(Lt,{className:r.body,children:n.jsx(z,{required:!0,size:"large",value:a,maxLength:15,appearance:"underline",onChange:(p,y)=>i(y.value),contentBefore:n.jsx(te,{children:"Give A Name"})})}),n.jsxs(Et,{children:[n.jsx(lt,{disableButtonEnhancement:!0,children:n.jsx(N,{appearance:"secondary",children:"Cancel"})}),n.jsx(N,{disabled:l,appearance:"primary",onClick:()=>u(a),children:"Create"})]})]})})]})}const vs=new $("Avatar","Menu");function Ts(){const[o,{toggle:t}]=O(),[s,{toggle:e}]=O(),{instance:r}=jt(),[a,{set:i}]=O(!0);x.useEffect(()=>{D.subscribe(l=>i(!l))},[]);const d=b.User.Get.useMe(vs),c=r.getActiveAccount(),u=c?.name||c?.username;return n.jsxs(n.Fragment,{children:[n.jsxs(ee,{open:o,onOpenChange:t,children:[n.jsx(se,{children:n.jsx(ne,{size:36,active:o?"active":"unset",name:u})}),n.jsx(re,{children:n.jsxs(ae,{children:[n.jsx(W,{children:n.jsxs(oe,{children:["Hi ",u]})}),n.jsx(ie,{children:n.jsx(B,{onClick:()=>r.loginRedirect(),children:"Login"})}),n.jsxs(W,{children:[n.jsx(U,{appearance:"subtle",href:"/History",children:n.jsx(B,{children:"History"})}),d?.Admin&&n.jsx(U,{appearance:"subtle",href:"/Admin",children:n.jsx(B,{children:"Admin"})}),n.jsx(B,{onClick:e,children:"Setting"}),n.jsx(B,{onClick:()=>r.logoutRedirect(),children:"Logout"})]})]})})]}),a&&n.jsx(W,{children:n.jsx(Ot,{Open:s,Toggle:e})})]})}function zt({Items:o,Columns:t,NoHeader:s}){return n.jsxs(ce,{items:o||[],columns:t,getRowId:e=>e.Id,children:[!s&&n.jsx(ue,{children:n.jsx(wt,{children:({renderHeaderCell:e})=>e()})}),n.jsx(de,{children:({item:e,rowId:r})=>n.jsx(wt,{children:({renderCell:a})=>a(e)},r)}),!o&&n.jsx(le,{size:48})]})}function Ls({Guid:o,Log:t,...s}){const e=A(()=>t.With("GuidImage")),{data:r,run:a}=h(b.Storage.GetBySlice.bind(b.Storage),{manual:!0,onError:e.error});return x.useEffect(()=>{o&&a(o,e)},[o]),n.jsx(At,{...s,src:r?URL.createObjectURL(new Blob(r)):"https://placehold.co/400?text=Loading..."})}const Pt=P({unset:{flexBasis:"unset",flexGrow:0},img:{...Ve,aspectRatio:"1",marginTop:m.spacingVerticalXS,marginBottom:m.spacingVerticalXS}});function Es(o,t){const s={width:`${o}px`};return Q({columnId:"Cover",renderHeaderCell:()=>{const e=Pt();return n.jsx(he,{className:e.unset,children:n.jsx("div",{style:s})})},renderCell(e){const r=Pt();return n.jsx(X,{className:r.unset,children:n.jsx(Ls,{className:r.img,style:s,Guid:e.Cover,Log:t})})}})}function Ss(o){const{List:t}=F(),{data:s}=h(()=>b.Product.Get.Limit(o)),e=s||3;let r=0;for(const a of t)if(a.ProdId===o&&(r+=a.Quantity),r>=e)return[!0,e];return[!1,e]}const ut=P({prod:{...M,alignItems:"flex-start",justifyContent:"center"},qua:{flexBasis:"12%",flexGrow:0},act:{flexBasis:"7%",flexGrow:0}}),Ns=[Q({columnId:"Product",renderCell(o){return n.jsxs(X,{className:ut().prod,children:[n.jsx(U,{href:`/Product/${o.ProdId}`,appearance:"subtle",children:n.jsx(me,{children:o.Name})}),n.jsx(pe,{children:Object.values(o.Type).reduce((t,s)=>`${t} ${s},`,"")})]})}}),Q({columnId:"Quantity",renderCell(o){const{List:t,Update:s}=F(),[e,r]=Ss(o.ProdId);return n.jsx(X,{className:ut().qua,children:n.jsx(ge,{min:1,max:r,value:o.Quantity,onChange:(a,i)=>{e&&i.value>=o.Quantity||(o.Quantity=i.value,s(t))}})})}}),Q({columnId:"Action",renderCell(o){const{List:t,Update:s}=F();return n.jsx(X,{className:ut().act,children:n.jsx(N,{appearance:"subtle",icon:n.jsx(xe,{}),onClick:()=>s(t.filter(e=>e.Id!==o.Id))})})}})];function Ft(o){return[Es(44,o),...Ns]}const Is=P({person:k,inf:{...M,flexBasis:"50%",rowGap:m.spacingVerticalM}});function ks({Log:o}){const t=Is(),s=A(()=>o.With("PersonaInfo")),e=b.User.Get.useMe(s);return n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:t.person,children:[n.jsx("div",{className:t.inf,children:n.jsx(E,{label:"Name",size:"large",children:n.jsx(H,{children:e?.Name})})}),n.jsx("div",{className:t.inf,children:n.jsx(E,{label:"Phone",size:"large",children:n.jsx(H,{children:e?.Phone})})})]}),n.jsx(E,{label:"E-Mail",size:"large",children:n.jsx(H,{children:e?.EMail})}),n.jsx(E,{label:"Address",size:"large",children:n.jsx(H,{children:e?.Address})})]})}const Gs=P({body:{...M,rowGap:m.spacingVerticalXL},sub:{width:"fit-content",alignSelf:"flex-end"}}),dt=new $("TopNavBar","ShopCart","Confirm");function As(){const[o,t]=x.useState(),[s,{toggle:e}]=O(),{List:r,Update:a}=F(),{Nav:i}=V(),d=Gs(),{dispatch:c,dispatchToast:u}=nt(dt),{run:l}=b.Order.Post.useNew({manual:!0,onError(p,y){c({Message:"Failed Create Order",Request:y,Error:p})},onSuccess(p){u(n.jsxs(Z,{children:[n.jsx(tt,{children:"Order Placed"}),n.jsxs(et,{children:["Order Id: ",p]})]}),{intent:"success"}),a([]),e(),i("History",p)}});return n.jsxs(n.Fragment,{children:[n.jsx(N,{appearance:"primary",onClick:e,disabled:!r.length,children:"Checkout"}),n.jsxs(fe,{open:s,onOpenChange:e,position:"end",size:"medium",modalType:"alert",children:[n.jsx(we,{children:n.jsx(ye,{action:n.jsx(N,{appearance:"subtle",icon:n.jsx(Pe,{}),onClick:e}),children:"Confirm Order"})}),n.jsx(Ce,{children:n.jsxs("div",{className:d.body,children:[n.jsx(ks,{Log:dt}),n.jsx(zt,{Items:r,Columns:A(()=>Ft(dt)),NoHeader:!0}),n.jsx(E,{label:"Comment",size:"large",children:n.jsx(je,{value:o,onChange:(p,y)=>t(y.value),maxLength:1e3})}),n.jsx(N,{appearance:"primary",className:d.sub,disabled:!r.length,onClick:()=>l(r,o),children:"Submit"})]})})]})]})}const $s=P({conf:{...k,width:"100%",alignItems:"center",justifyContent:"space-between",marginTop:m.spacingVerticalS,columnGap:m.spacingHorizontalL},tooltip:{backgroundColor:m.colorBrandBackground,color:m.colorNeutralForegroundInverted,...R.borderRadius(m.borderRadiusCircular)}}),Os=new $("TopNavBar","ShopCart");function Us(){const[o,{toggle:t}]=O(),[s,{toggle:e}]=O(),r=$s(),{List:a}=F();return be(()=>{if(o)return;e();const i=setTimeout(e,2e3);return()=>clearTimeout(i)},[a]),n.jsxs(ve,{withArrow:!0,open:o,onOpenChange:t,children:[n.jsx(Te,{disableButtonEnhancement:!0,children:n.jsx(Le,{visible:s,withArrow:!0,content:{children:"↑",className:r.tooltip},relationship:"inaccessible",children:n.jsx(Ee,{icon:n.jsx(Se,{}),appearance:"subtle",size:"large",checked:o})})}),n.jsxs(Ne,{children:[n.jsx(zt,{Items:a,Columns:A(()=>Ft(Os)),NoHeader:!0}),n.jsxs("div",{className:r.conf,children:[a.map(i=>i.Quantity).reduce((i,d)=>i+d,0)," items in shopping cart",n.jsx(As,{})]})]})]})}const Ms=P({navBox:{position:"fixed",top:0,width:"100%",height:`${mt}px`,...R.padding(0,m.spacingHorizontalXXXL),backgroundColor:"#fff",boxSizing:"border-box",boxShadow:m.shadow4},navBar:{...k,maxWidth:pt,height:"100%",...R.margin(0,"auto"),alignItems:"center",justifyContent:"space-between"},logoBox:{...k,columnGap:m.spacingHorizontalL,alignItems:"center"},logoText:{color:m.colorBrandForeground2}});function Ds(){const o=Ms();return n.jsx(Ie,{children:n.jsx("header",{className:o.navBox,children:n.jsxs("nav",{className:o.navBar,children:[n.jsxs(U,{className:o.logoBox,href:"/",appearance:"subtle",children:[n.jsx(At,{src:"/Awai.png",height:mt}),n.jsx(J,{size:600,font:"monospace",className:o.logoText,children:gt.Name})]}),n.jsx(cs,{}),n.jsxs("div",{className:o.logoBox,children:[n.jsx(bs,{}),n.jsx(os,{}),n.jsx(Us,{}),n.jsx(Ts,{})]})]})})})}function Rs(){const{Rep:o}=V();return setTimeout(()=>o("/"),3e3),n.jsxs(n.Fragment,{children:[n.jsxs(ke,{children:[n.jsxs("title",{children:["Redirect - Not Found - ",gt.Name]}),n.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),n.jsx(q,{size:"huge",label:"Redirecting..."})]})}const Vs=P({body:{...M,minWidth:"1024px",position:"absolute",marginTop:`${mt}px`,width:"100%",minHeight:"-webkit-fill-available",justifyContent:"space-between",backgroundColor:m.colorNeutralBackground2},content:{...M,maxWidth:pt,width:"-webkit-fill-available",marginLeft:"auto",marginRight:"auto",paddingLeft:m.spacingHorizontalM,paddingRight:m.spacingHorizontalM,paddingTop:m.spacingVerticalXXXL}});function Bs(){const o=Vs(),{Paths:t}=V(),s=t.at(0),e=x.useMemo(()=>{switch(s){case"Product":return n.jsx(Hs,{});case"Admin":return n.jsx(zs,{});case"History":return n.jsx(Fs,{});case"Login":return n.jsx(q,{size:"huge",label:"Login Redirecting..."});case"Reload":return n.jsx(q,{size:"huge",label:"Reloading..."});case"":case void 0:return n.jsx(_s,{});default:return n.jsx(Rs,{})}},[s]);return n.jsxs(n.Fragment,{children:[n.jsx(Ds,{}),n.jsxs("div",{className:o.body,children:[n.jsx("main",{className:o.content,children:n.jsx(x.Suspense,{fallback:n.jsx(q,{}),children:e})}),n.jsx(as,{})]}),n.jsx(ze,{})]})}const Hs=x.lazy(()=>st(()=>import("./index-Jg_O0wkW.js"),__vite__mapDeps([0,1,2,3,4,5]))),zs=x.lazy(()=>st(()=>import("./index-9edqmHqr.js"),__vite__mapDeps([6,1,7,8,3,4]))),Fs=x.lazy(()=>st(()=>import("./index-aawXm4sE.js"),__vite__mapDeps([9,1,7]))),_s=x.lazy(()=>st(()=>import("./index-Q8F0QMId.js"),__vite__mapDeps([10,1,2,3,8])));Ge.createRoot(document.getElementById(gt.Name)).render(n.jsx(Ae,{theme:$e,children:n.jsx(Me,{children:n.jsx(Oe,{instance:I,children:n.jsxs(ns,{children:[n.jsx(Ue,{pauseOnHover:!0}),n.jsx(Bs,{})]})})})}));export{Ps as A,Qs as B,Ve as C,gt as D,k as F,Ls as G,b as H,$ as L,Es as M,Xs as S,M as a,Ss as b,V as c,De as d,nt as e,zt as f,F as u}; + `),this.throw=console.log.bind(this,this.baseColor(105,"throw"),"↓ The Following Error is Thrown ↓")}With(...t){return new $(this.namespace,...t)}baseColor(t,s){return`\x1B[${t};30;1m ${s.toUpperCase()} \x1B[0m\x1B[100;97m ${w().format("YY-M-D H:m:s")} \x1B[1m\x1B[40;97m ${this.namespace} `}}const k={display:"flex"},De={flexDirection:"column"},M={...k,...De},Qs={...k,backgroundColor:m.colorNeutralBackground1,boxShadow:m.shadow4,...R.borderRadius(m.borderRadiusMedium)},Re={whiteSpace:"pre-line"},mt=60,pt="1636px",Ve={objectFit:"cover",objectPosition:"center"},Be=P({pre:Re});function nt(o){const t=Be(),{dispatchToast:s}=Wt();return{dispatch:e=>{const r=e.Error.message,a=r.indexOf("Exception:");let i=r;a!==-1&&(i=r.substring(a+10)),s(n.jsxs(Z,{children:[n.jsx(tt,{children:"Internal Error"}),n.jsx(et,{subtitle:n.jsxs(J,{className:t.pre,children:[i,n.jsx("br",{}),"More Info, See Console"]}),children:n.jsx(J,{className:t.pre,children:e.Message})})]}),{intent:"error",timeout:1e4}),o.error(e)},dispatchToast:s}}const He=P({box:{...M,rowGap:m.spacingVerticalM},one:{...k,columnGap:m.spacingVerticalXXXL}}),yt=new $("Setting");function Ot({Open:o,Toggle:t,New:s}){const e=He(),r=jt().instance.getActiveAccount(),[a,i]=x.useState(),[d,c]=x.useState(),[u,l]=x.useState(),p=b.User.Get.useMe(yt);x.useEffect(()=>{if(s||!p)return;const{Name:f,Phone:g,Address:_t}=p;i(f),c(g),l(_t)},[p]);const{dispatch:y,dispatchToast:v}=nt(yt),{run:T}=b.User.Post.useUpdate({manual:!0,onError(f,[g]){y({Message:`Failed ${s?"Create":"Update"} Info`,Error:f,Request:g})},onSuccess(f,[g]){v(n.jsxs(Z,{children:[n.jsxs(tt,{children:["Info ",s?"Created":"Updated"]}),n.jsxs(et,{children:[g.Name,n.jsx("br",{}),g.Phone,n.jsx("br",{}),g.Address]})]}),{intent:"success"}),s&&(D.next(!1),D.complete(),D.closed=!0),t()}});return n.jsx(bt,{open:o,onOpenChange:t,modalType:s?"alert":"modal",children:n.jsx(vt,{children:n.jsxs(Tt,{children:[n.jsx(Qt,{children:s?"Welcome! Fill in your info to get started.":"Personal Information"}),n.jsxs(Lt,{className:e.box,children:[n.jsxs("div",{className:e.one,children:[n.jsx(E,{label:"Name",size:"large",required:!0,children:n.jsx(z,{size:"medium",value:a,maxLength:20,onChange:(f,g)=>i(g.value)})}),n.jsx(E,{label:"Phone",size:"large",required:!0,children:n.jsx(z,{size:"medium",value:d,maxLength:20,onChange:(f,g)=>c(g.value)})})]}),n.jsx(E,{label:"E-Mail",size:"large",children:n.jsx(H,{children:r?.username})}),n.jsx(E,{label:"Address",size:"large",required:!0,children:n.jsx(z,{size:"medium",value:u,maxLength:100,minLength:20,onChange:(f,g)=>l(g.value)})})]}),n.jsxs(Et,{children:[!s&&n.jsx(lt,{disableButtonEnhancement:!0,children:n.jsx(N,{appearance:"secondary",children:"Cancel"})}),n.jsx(N,{appearance:"primary",onClick:()=>T({EMail:r?.username,Name:a,Address:u,Phone:d}),children:"Submit"})]})]})})})}const D=new ht;function ze(){const[o,{toggle:t}]=O();return Ct(()=>D.subscribe(s=>s&&t())),n.jsx(W,{children:n.jsx(Ot,{Open:o,Toggle:t,New:!0})})}class Fe{constructor(t,s){this.DB=t,this.Name=s,this.Sto=t.table(s),this.Trim()}Sto;async Get(t,s){const e=await this.Sto.get(t);return e?s&&await Promise.resolve(s(e))||typeof e.Exp=="number"&&e.Exptypeof t.Exp=="number"&&t.Exp{const s=setInterval(()=>{this.Hub.state===_.Connected&&(clearInterval(s),t())},100)}))}static async Invoke(t,...s){return await this.EnsureConnected(),this.Hub.invoke(t,...s)}static EnsureLogin(){if(!I.getActiveAccount())throw new Mt}static EnsureTrue(t){if(!t)throw new _e}static Index(t,s){return`${s}_${t}`}static async UpdateCache(t,s,e,r){const a=this.Index(s,e),i=await L.Get(a);if(!i)return;const d=t(i);i.QueryExp?await L.Set(a,{...d,QueryExp:w().add(1,"m").unix()},w().add(1,"w")):await L.Set(a,d,r||null)}static async GetVersionCache(t,s){const e=this.Index(t,s),r=await L.Get(e);if(r&&r.QueryExp>w().unix())return r;const a=await Promise.resolve(this.Invoke(s,t,r?.Version));if(a===!0)return L.Set(e,{...r,QueryExp:w().add(1,"m").unix()},w().add(1,"w")),r;if(!a)throw L.Sto.delete(e),new Dt;return await L.Set(e,{...a,QueryExp:w().add(1,"m").unix()},w().add(1,"w")),a}static async GetTimeCache(t,s,e,...r){return await L.GetOrSet(this.Index(t,s),async()=>await this.Invoke(s,...r),e(w()))}static async HandleFileStream(t,s,e){const a=Math.ceil(t.size/30720);let i=0;for(;i{l.onload=()=>y(new Uint8Array(l.result)),l.onerror=()=>v(l.error),l.readAsArrayBuffer(u)});s.next(p),e?.debug(`Sent chunk ${i+1}/${a}`),i++}s.complete()}}class G extends Rt{static Log=["|","ShopNet"];static Hub=new St().withUrl("https://awaishop.aloen.to:3389/Hub",{skipNegotiation:!0,transport:Nt.WebSockets,logMessageContent:!1,async accessTokenFactory(){const t=await Ut();return t||""}}).withAutomaticReconnect().withStatefulReconnect().withHubProtocol(new It).configureLogging(kt.Information).build()}G.Hub.on("OnNewUser",()=>{D.next(!0),console.debug("OnNewUser")});class We extends G{static Categories(){return this.GetTimeCache("","GalleryGetCategories",t=>t.add(1,"m"))}static async Products(t){const s=await this.GetTimeCache(t,"GalleryGetProducts",e=>e.add(1,"m"),t);return[s,4-s.length%4]}}const Qe={Get:We};class Xe extends G{static async Get(t){if(!/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/i.test(t))throw new Error(`Invalid ObjectId ${t}`);return await this.EnsureConnected(),this.Hub.stream("ObjectStorageGet",t)}static GetBySlice(t,s){const e=[];return L.GetOrSet(t,()=>new Promise((r,a)=>{this.Get(t).then(i=>i.subscribe({error(d){a(d)},next(d){e.push(d),s.debug("Received Slice",t,e.length)},complete(){r(e)}}))}))}}class qe extends G{static useDelete(t){return h(async s=>{this.EnsureLogin();const e=await this.Invoke("OrderDeleteCancel",s);return this.EnsureTrue(e),e},t)}}class j extends G{static product="ProductEntity";static Product(t){return this.GetVersionCache(t,this.product)}static ProductUpdate(t,s){return this.UpdateCache(s,t,this.product)}static Lexical(t){return this.GetVersionCache(t,"LexicalEntity")}static Photo(t){return this.GetVersionCache(t,"PhotoEntity")}static Type(t){return this.GetVersionCache(t,"TypeEntity")}static Variant(t){return this.GetVersionCache(t,"VariantEntity")}}class S extends j{static Log=[...super.Log,"Product","Get"];static async Basic(t,s){const e=s.With(...this.Log,"Basic"),r=await this.Product(t);if(!r)throw new Error(`Product ${t} Not Found`);const[a,i]=await this.PhotoList(t,s);return i?{Name:r.Name,Cover:i}:(e.warn(`Product ${t} has no photo`),{Name:r.Name,Cover:""})}static Limit(t){return this.Invoke("ProdGetLimit",t)}static async Combo(t,s){const e=s.With(...this.Log,"Combo"),r=await this.ComboList(t),a=[];for(const i of r){const d={};for(const c of i.Types){const u=await this.Type(c);if(!u){e.error(`[Mismatch] Type ${c} not found. Combo ${i.ComboId} : Product ${t}`);continue}const l=await this.Variant(u.VariantId);if(!l){e.error(`[Mismatch] Variant ${u.VariantId} not found. Combo ${i.ComboId} : Type ${c} : Product ${t}`);continue}d[l.Name]=u.Name}a.push({Id:i.ComboId,Stock:i.Stock,Combo:d})}return a}static ComboList(t){return this.GetTimeCache(t,"ProductGetComboList",s=>s.add(1,"m"),t)}static photoList="ProductGetPhotoList";static async PhotoList(t,s){const e=s.With(...this.Log,"PhotoList"),r=await this.GetTimeCache(t,this.photoList,d=>d.add(1,"m"),t).catch(e.error);let a=[],i="";for(const d of r||[]){const c=await this.Photo(d).catch(e.error);c?(a.push(c),c.Cover&&(i=c.ObjectId)):e.warn(`Photo ${d} not found in Product ${t}`)}return a=a.sort((d,c)=>d.Order-c.Order),!i&&a.length>0?(e.warn(`Product ${t} has no cover photo, using first photo instead`),[a,a[0].ObjectId]):[a,i]}static PhotoListUpdate(t,s){return this.UpdateCache(s,t,this.photoList,w().add(1,"m"))}}class Ye extends G{static Order(t){return this.EnsureLogin(),this.GetVersionCache(t,"OrderEntity")}static Comment(t){return this.EnsureLogin(),this.GetVersionCache(t,"CommentEntity")}}class Je extends Ye{static Log=[...super.Log,"Order","Get"];static async List(t){this.EnsureLogin();const s=t.With(...this.Log,"List"),e=await this.GetTimeCache("","OrderGetList",a=>a.add(1,"m")),r=[];for(const a of e){const i=await this.Order(a.OrderId);if(!i){s.warn(`[Mismatch] Order ${a.OrderId} not found`);continue}const d=[];for(const c of a.Products){const u=await j.Product(c);if(!u){s.warn(`[Mismatch] Product ${c} not found`);continue}d.push(u.Name)}r.push({Id:a.OrderId,Items:d,Quantity:a.Quantity,Status:i.Status,TrackNumber:i.TrackingNumber,OrderDate:i.CreateAt})}return r.sort((a,i)=>i.OrderDate.getTime()-a.OrderDate.getTime())}static async Detail(t,s){this.EnsureLogin();const e=s.With(...this.Log,"Detail"),r=await this.GetTimeCache(t,"OrderGetDetail",c=>c.add(1,"m"),t),a=[];let i=0;for(const c of r.Items){const u={};let l=0;for(const T of c.Types){const f=await j.Type(T);if(!f){e.warn(`[Mismatch] Type ${T} not found. Order : ${t}`);continue}const g=await j.Variant(f.VariantId);if(!g){e.warn(`[Mismatch] Variant ${f.VariantId} not found. Type : ${T}, Order : ${t}`);continue}u[g.Name]=f.Name,l=g.ProductId}const p=await j.Product(l);if(!p){e.warn(`[Mismatch] Product ${l} not found. Order : ${t}`);continue}const[y,v]=await S.PhotoList(l,e);v||e.warn(`Product ${l} has no photo`),a.push({Id:i++,ProdId:l,Cover:v||"",Name:p.Name,Type:u,Quantity:c.Quantity})}const d=[];for(const c of r.Comments){const u=await this.Comment(c);if(!u){e.warn(`[Mismatch] Comment ${c} not found. Order : ${t}`);continue}d.push({Content:u.Content,Time:u.CreateAt,User:u.Name||"You"})}return{ShopCart:a,Comments:d.sort((c,u)=>c.Time.getTime()-u.Time.getTime())}}}class Ke extends G{static useNew(t){return h((s,e)=>{this.EnsureLogin();const r=s.map(a=>({ProdId:a.ProdId,Type:Object.values(a.Type),Quantity:a.Quantity}));return this.Invoke("OrderPostNew",r,e)},t)}static useAppend(t){return h(async(s,e)=>{this.EnsureLogin();const r=await this.Invoke("OrderPostAppend",s,e);return this.EnsureTrue(r),r},t)}static useCancel(t){return h(async(s,e)=>{this.EnsureLogin();const r=await this.Invoke("OrderPostCancel",s,e);return this.EnsureTrue(r),r},t)}static useReceived(t){return h(async s=>{this.EnsureLogin();const e=await this.Invoke("OrderPostReceived",s);return this.EnsureTrue(e),e},t)}}const Ze={Get:Je,Post:Ke,Delete:qe},ts={Get:S};class Vt extends G{static Log=[...super.Log,"User","Get"];static me="UserGetMe";static useMe(t){const s=A(()=>t.With(...this.Log,"Me")),{dispatch:e}=nt(s);return Gt(async()=>{try{return this.EnsureLogin(),await this.GetVersionCache(0,this.me)}catch(a){if(a instanceof Dt)return;a instanceof Mt?s.info(a):e({Message:"Failed to Get Your Info",Error:a,Request:""})}})}static MeUpdate(t){return this.UpdateCache(t,0,this.me)}}class es extends G{static useUpdate(t){return h(async s=>{this.EnsureLogin();const e=await this.Invoke("UserPostUpdate",s);return this.EnsureTrue(e),Vt.MeUpdate(r=>({...r,...s})),e},t)}}const ss={Get:Vt,Post:es},b={Gallery:Qe,Product:ts,User:ss,Order:Ze,Storage:Xe},Bt=x.createContext({});function F(){return x.useContext(Bt)}const ct=new $("ShopCart","Context");function ns({children:o}){const[t,s]=x.useState([]);h(async()=>{const a=await it.toArray(),i=[];for(const d of a){const c=await b.Product.Get.Basic(d.ProdId,ct);i.push({...d,...c})}s(i)},{onError:ct.error});async function e(a){for(let i=0;i({Id:i.Id,ProdId:i.ProdId,Type:i.Type,Quantity:i.Quantity})))}async function r(a,i,d){const c=await b.Product.Get.Basic(a,ct);t.push({...c,Id:t.length,ProdId:a,Type:i,Quantity:d}),e(t)}return n.jsx(Bt.Provider,{value:{List:t,Add:r,Update:e},children:o})}const gt={Name:"AwaiShop"},rs=P({box:{width:"-webkit-fill-available",marginTop:m.spacingVerticalXXXL,...R.padding(m.spacingVerticalXXXL,0),backgroundColor:m.colorNeutralBackgroundInverted},main:{...k,maxWidth:pt,...R.margin(0,"auto")},logo:{width:"150px",filter:"invert(96%)"},otc:{color:"white"}});function as(){const o=rs();return n.jsx("footer",{className:o.box,children:n.jsx("div",{className:o.main,children:n.jsx("img",{src:"/safari-pinned-tab.svg",className:o.logo})})})}function os(){const{Paths:o,Search:t,Put:s}=V(),e=o.at(0),r=o.at(1),a=r==="User",i=r==="Order",d=a?"admin":"pending";return e==="Admin"&&(a||i)&&n.jsxs(n.Fragment,{children:[n.jsx(z,{placeholder:"Search in Any Field",contentBefore:n.jsx(Yt,{}),appearance:"underline",onChange:(c,u)=>{u.value?t.set("search",u.value):t.delete("search"),s(t)}}),n.jsx(Jt,{label:`Only ${a?"Admin":"Pending"}`,checked:t.get(d)==="",onChange:(c,u)=>{u.checked?t.set(d,""):t.delete(d),s(t)}})]})}const is=P({box:{...k,flexGrow:1,height:"inherit",marginLeft:m.spacingHorizontalS,alignItems:"center"},div:{color:m.colorNeutralForegroundDisabled},link:{textDecorationLine:"unset !important"}});function cs(){const o=is(),{Paths:t}=V(),s=t.at(0),e=t.at(1)||"Product";return s==="Admin"&&n.jsxs("div",{className:o.box,children:[n.jsx(J,{size:600,font:"monospace",className:o.div,children:"|"}),n.jsxs(Kt,{selectedValue:e,children:[n.jsx(U,{appearance:"subtle",href:"/Admin",className:o.link,children:n.jsx(at,{value:"Product",children:"Product List"})}),n.jsx(U,{appearance:"subtle",href:"/Admin/Order",className:o.link,children:n.jsx(at,{value:"Order",children:"Order List"})}),n.jsx(U,{appearance:"subtle",href:"/Admin/User",className:o.link,children:n.jsx(at,{value:"User",children:"User List"})})]})]})}class C extends Rt{static Log=["|","AdminNet"];static Hub=new St().withUrl("https://awaishop.aloen.to:3389/AdminHub",{skipNegotiation:!0,transport:Nt.WebSockets,logMessageContent:!1,async accessTokenFactory(){const t=await Ut();if(t)return t;throw new Error("Please Login First")}}).withAutomaticReconnect().withStatefulReconnect().withHubProtocol(new It).configureLogging(kt.Information).build();static Index(t,s){return`${s}_Admin_${t}`}}class K extends C{static User(t){return this.EnsureLogin(),this.GetVersionCache(t,"UserEntity")}}class Y extends C{static Order(t){return this.EnsureLogin(),this.GetVersionCache(t,"OrderEntity")}static Comment(t){return this.EnsureLogin(),this.GetVersionCache(t,"CommentEntity")}}class us extends C{static Log=[...super.Log,"Order","Get"];static async List(t){this.EnsureLogin();const s=t.With(...this.Log,"List"),e=await this.GetTimeCache("","OrderGetList",a=>a.add(1,"m")),r=[];for(const a of e){const i=await Y.Order(a.OrderId);if(!i){s.warn(`[Mismatch] Order ${a.OrderId} not found`);continue}const d=[];for(const u of a.Products){const l=await j.Product(u);if(!l){s.warn(`[Mismatch] Product ${u} not found`);continue}d.push(l.Name)}const c=await K.User(i.UserId);if(!c){s.error(`[Mismatch] User ${i.UserId} not found`);continue}r.push({Id:a.OrderId,Items:d,Quantity:a.Quantity,Status:i.Status,TrackNumber:i.TrackingNumber,OrderDate:i.CreateAt,User:c.Name})}return r.sort((a,i)=>i.OrderDate.getTime()-a.OrderDate.getTime())}static async Detail(t,s){this.EnsureLogin();const e=s.With(...this.Log,"Detail"),r=await this.GetTimeCache(t,"OrderGetDetail",c=>c.add(1,"m"),t),a=[];let i=0;for(const c of r.Items){const u={};let l=0;for(const T of c.Types){const f=await j.Type(T);if(!f){e.warn(`[Mismatch] Type ${T} not found. Order : ${t}`);continue}const g=await j.Variant(f.VariantId);if(!g){e.warn(`[Mismatch] Variant ${f.VariantId} not found. Type : ${T}, Order : ${t}`);continue}u[g.Name]=f.Name,l=g.ProductId}const p=await j.Product(l);if(!p){e.warn(`[Mismatch] Product ${l} not found. Order : ${t}`);continue}const[y,v]=await S.PhotoList(l,e);v||e.warn(`Product ${l} has no photo`),a.push({Id:i++,ProdId:l,Cover:v||"",Name:p.Name,Type:u,Quantity:c.Quantity})}const d=[];for(const c of r.Comments){const u=await Y.Comment(c);if(!u){e.warn(`[Mismatch] Comment ${c} not found. Order : ${t}`);continue}let l="Client";if(u.UserId){const p=await K.User(u.UserId);p?l=p.Name:e.warn(`[Mismatch] User ${u.UserId} not found. Order : ${t}`)}d.push({Content:u.Content,Time:u.CreateAt,User:l})}return{ShopCart:a,Comments:d.sort((c,u)=>c.Time.getTime()-u.Time.getTime())}}static Order=Y.Order}class ds extends C{static useAppend(t){return h(async(s,e)=>{const r=await this.Invoke("OrderPostAppend",s,e);return this.EnsureTrue(r),r},t)}static useClose(t){return h(async(s,e)=>{const r=await this.Invoke("OrderPostClose",s,e);return this.EnsureTrue(r),r},t)}static useShip(t){return h(async(s,e)=>{const r=await this.Invoke("OrderPostShip",s,e);return this.EnsureTrue(r),r},t)}static useAccept(t){return h(async s=>{const e=await this.Invoke("OrderPostAccept",s);return this.EnsureTrue(e),e},t)}}const ls={Get:us,Post:ds};class xt extends C{static Log=[...super.Log,"Product","Get"];static list="ProductGetList";static useList(t){const s=A(()=>t.With(...this.Log,"List"));return Gt(()=>this.GetTimeCache("",this.list,r=>r.add(1,"m")).catch(s.error))}static ListUpdate(t){return this.UpdateCache(t,"",this.list,w().add(1,"m"))}static Count(t){return this.GetTimeCache(t,"ProductGetCount",s=>s.add(1,"m"),t)}static async Name(t){const s=await S.Product(t);if(!s)throw new Error(`Product ${t} Not Found`);return s.Name}static async Category(t){const s=await S.Product(t);if(!s)throw new Error(`Product ${t} Not Found`);return s.Category}static async Variants(t,s){const e=s.With(...this.Log,"Variants"),r=await this.GetTimeCache(t,"ProductGetVariants",i=>i.add(1,"m"),t),a=[];for(const i of r){const d=await S.Variant(i.VariantId);if(!d){e.warn(`Variant ${i} Not Found. Product : ${t}`);continue}const c=[];for(const u of i.Types){const l=await S.Type(u);if(!l){e.warn(`Type ${u} Not Found. Variant : ${i.VariantId}, Product : ${t}`);continue}c.push(l.Name)}a.push({Id:i.VariantId,Name:d.Name,Types:c})}return a}}class hs extends C{static usePhoto(t){return h(async(s,e)=>{const r=await this.Invoke("ProductDeletePhoto",e);return this.EnsureTrue(r),S.PhotoListUpdate(s,a=>a.filter(i=>i!==e)),r},t)}static useVariant(t){return h(async s=>{const e=await this.Invoke("ProductDeleteVariant",s);return this.EnsureTrue(e),e},t)}static useType(t){return h(async(s,e)=>{const r=await this.Invoke("ProductDeleteType",s,e);return this.EnsureTrue(r),r},t)}static useCombo(t){return h(async s=>{const e=await this.Invoke("ProductDeleteCombo",s);return this.EnsureTrue(e),e},t)}static useProduct(t){return h(async s=>{const e=await this.Invoke("ProductDeleteProduct",s);return this.EnsureTrue(e),xt.ListUpdate(r=>r.filter(a=>a!==s)),e},t)}static useCategory(t){return h(async s=>{const e=await this.Invoke("ProductDetachCategory",s);return this.EnsureTrue(e),j.ProductUpdate(s,r=>(r.Category=void 0,r)),e},t)}}class ms extends C{static Log=[...super.Log,"Product","Patch"];static useName(t){return h(async(s,e)=>{const r=await this.Invoke("ProductPatchName",s,e);return this.EnsureTrue(r),r},t)}static useCategory(t){return h(async(s,e)=>{const r=await this.Invoke("ProductPatchCategory",s,e);return this.EnsureTrue(r),r},t)}static usePhoto(t,s){const e=A(()=>t.With(...this.Log,"Photo"));return h(async(r,a)=>{if(!a.type.startsWith("image/"))throw new TypeError("File is not an image");if(a.size>10*1024*1024)throw new RangeError("File is too large, max 10MB");await this.EnsureConnected();const i=new ht,d=this.Hub.invoke("ProductPatchPhoto",r,i);return await this.HandleFileStream(a,i,e),this.EnsureTrue(await d),!0},s)}static useCaption(t){return h(async(s,e)=>{const r=await this.Invoke("ProductPatchCaption",s,e);return this.EnsureTrue(r),r},t)}static useVariantName(t){return h(async(s,e)=>{const r=await this.Invoke("ProductPatchVariantName",s,e);return this.EnsureTrue(r),r},t)}static useType(t){return h(async(s,e,r)=>{const a=await this.Invoke("ProductPatchType",s,e,r);return this.EnsureTrue(a),a},t)}static useCombo(t){return h(async(s,e,r)=>{const a=await this.Invoke("ProductPatchCombo",s,e,r);return this.EnsureTrue(a),a},t)}}let Ht;function Xs(o){Ht=o}class ps extends C{static Log=[...super.Log,"Product","Post"];static useCreate(t){return h(async s=>{const e=await this.Invoke("ProductPostCreate",s);return xt.ListUpdate(r=>[e,...r]),e},t)}static useMovePhoto(t){return h(async(s,e)=>{const r=await this.Invoke("ProductPostMovePhoto",s,e);return this.EnsureTrue(r),r},t)}static usePhoto(t,s){const e=A(()=>t.With(...this.Log,"Photo"));return h(async(r,a)=>{if(!a.type.startsWith("image/"))throw new TypeError("File is not an image");if(a.size>10*1024*1024)throw new RangeError("File is too large, max 10MB");const i=new ht,d=this.Invoke("ProductPostPhoto",r,i);await this.HandleFileStream(a,i,e);const c=await d;return S.PhotoListUpdate(r,u=>[...u,c]),c},s)}static useVariant(t){return h((s,e)=>this.Invoke("ProductPostVariant",s,e),t)}static useType(t){return h((s,e)=>this.Invoke("ProductPostType",s,e),t)}static useCombo(t){return h((s,e,r)=>this.Invoke("ProductPostCombo",s,e,r),t)}static useLexical(t){return h(async s=>{const e=Ht?.getEditorState();let r;e&&!e.isEmpty()&&(r=JSON.stringify(e.toJSON()));const a=await this.Invoke("ProductPostDescription",s,r);return this.EnsureTrue(a),a},t)}}const gs={Get:xt,Post:ps,Patch:ms,Delete:hs};class xs extends C{static useUser(t){return h(async s=>{const e=await this.Invoke("UserDeleteUser",s);return this.EnsureTrue(e),e},t)}static useAdmin(t){return h(async s=>{const e=await this.Invoke("UserDeleteAdmin",s);return this.EnsureTrue(e),e},t)}}class fs extends C{static async OrderUser(t){const s=await Y.Order(t);if(!s)throw new Error(`Order ${t} not found`);const e=await K.User(s.UserId);if(!e)throw new Error(`User ${s.UserId} not found in order ${t}`);return e}static async List(){const t=await this.GetTimeCache("","UserGetList",e=>e.add(1,"m")),s=[];for(const e of t){const r=await K.User(e);if(!r){console.warn(`User ${e} not found`);continue}s.push({Id:e,Name:r.Name,EMail:r.EMail,Admin:r.Admin})}return s}}class ws extends C{static useAdmin(t){return h(async s=>{const e=await this.Invoke("UserPostAdmin",s);return this.EnsureTrue(e),e},t)}}const ys={Get:fs,Post:ws,Delete:xs},Ps={Product:gs,Order:ls,User:ys},Cs=P({body:M}),js=new $("Admin","Product","AddButton");function bs(){const{Nav:o,Paths:t}=V(),s=t.at(0),e=t.at(1),r=Cs(),[a,i]=x.useState(""),{dispatch:d,dispatchToast:c}=nt(js),{run:u,loading:l}=Ps.Product.Post.useCreate({manual:!0,onError(p,y){d({Message:`Failed Create ${a}`,Request:y,Error:p})},onSuccess(p){c(n.jsxs(Z,{children:[n.jsx(tt,{children:"New Product Created"}),n.jsxs(et,{children:[p," ",a]})]}),{intent:"success"}),o("Admin",p),i("")}});return s==="Admin"&&!e&&n.jsxs(bt,{children:[n.jsx(lt,{disableButtonEnhancement:!0,children:n.jsx(N,{appearance:"primary",icon:n.jsx(Zt,{}),children:"New Product"})}),n.jsx(vt,{children:n.jsxs(Tt,{children:[n.jsx(Lt,{className:r.body,children:n.jsx(z,{required:!0,size:"large",value:a,maxLength:15,appearance:"underline",onChange:(p,y)=>i(y.value),contentBefore:n.jsx(te,{children:"Give A Name"})})}),n.jsxs(Et,{children:[n.jsx(lt,{disableButtonEnhancement:!0,children:n.jsx(N,{appearance:"secondary",children:"Cancel"})}),n.jsx(N,{disabled:l,appearance:"primary",onClick:()=>u(a),children:"Create"})]})]})})]})}const vs=new $("Avatar","Menu");function Ts(){const[o,{toggle:t}]=O(),[s,{toggle:e}]=O(),{instance:r}=jt(),[a,{set:i}]=O(!0);x.useEffect(()=>{D.subscribe(l=>i(!l))},[]);const d=b.User.Get.useMe(vs),c=r.getActiveAccount(),u=c?.name||c?.username;return n.jsxs(n.Fragment,{children:[n.jsxs(ee,{open:o,onOpenChange:t,children:[n.jsx(se,{children:n.jsx(ne,{size:36,active:o?"active":"unset",name:u})}),n.jsx(re,{children:n.jsxs(ae,{children:[n.jsx(W,{children:n.jsxs(oe,{children:["Hi ",u]})}),n.jsx(ie,{children:n.jsx(B,{onClick:()=>r.loginRedirect(),children:"Login"})}),n.jsxs(W,{children:[n.jsx(U,{appearance:"subtle",href:"/History",children:n.jsx(B,{children:"History"})}),d?.Admin&&n.jsx(U,{appearance:"subtle",href:"/Admin",children:n.jsx(B,{children:"Admin"})}),n.jsx(B,{onClick:e,children:"Setting"}),n.jsx(B,{onClick:()=>r.logoutRedirect(),children:"Logout"})]})]})})]}),a&&n.jsx(W,{children:n.jsx(Ot,{Open:s,Toggle:e})})]})}function zt({Items:o,Columns:t,NoHeader:s}){return n.jsxs(ce,{items:o||[],columns:t,getRowId:e=>e.Id,children:[!s&&n.jsx(ue,{children:n.jsx(wt,{children:({renderHeaderCell:e})=>e()})}),n.jsx(de,{children:({item:e,rowId:r})=>n.jsx(wt,{children:({renderCell:a})=>a(e)},r)}),!o&&n.jsx(le,{size:48})]})}function Ls({Guid:o,Log:t,...s}){const e=A(()=>t.With("GuidImage")),{data:r,run:a}=h(b.Storage.GetBySlice.bind(b.Storage),{manual:!0,onError:e.error});return x.useEffect(()=>{o&&a(o,e)},[o]),n.jsx(At,{...s,src:r?URL.createObjectURL(new Blob(r)):"https://placehold.co/400?text=Loading..."})}const Pt=P({unset:{flexBasis:"unset",flexGrow:0},img:{...Ve,aspectRatio:"1",marginTop:m.spacingVerticalXS,marginBottom:m.spacingVerticalXS}});function Es(o,t){const s={width:`${o}px`};return Q({columnId:"Cover",renderHeaderCell:()=>{const e=Pt();return n.jsx(he,{className:e.unset,children:n.jsx("div",{style:s})})},renderCell(e){const r=Pt();return n.jsx(X,{className:r.unset,children:n.jsx(Ls,{className:r.img,style:s,Guid:e.Cover,Log:t})})}})}function Ss(o){const{List:t}=F(),{data:s}=h(()=>b.Product.Get.Limit(o)),e=s||3;let r=0;for(const a of t)if(a.ProdId===o&&(r+=a.Quantity),r>=e)return[!0,e];return[!1,e]}const ut=P({prod:{...M,alignItems:"flex-start",justifyContent:"center"},qua:{flexBasis:"12%",flexGrow:0},act:{flexBasis:"7%",flexGrow:0}}),Ns=[Q({columnId:"Product",renderCell(o){return n.jsxs(X,{className:ut().prod,children:[n.jsx(U,{href:`/Product/${o.ProdId}`,appearance:"subtle",children:n.jsx(me,{children:o.Name})}),n.jsx(pe,{children:Object.values(o.Type).reduce((t,s)=>`${t} ${s},`,"")})]})}}),Q({columnId:"Quantity",renderCell(o){const{List:t,Update:s}=F(),[e,r]=Ss(o.ProdId);return n.jsx(X,{className:ut().qua,children:n.jsx(ge,{min:1,max:r,value:o.Quantity,onChange:(a,i)=>{e&&i.value>=o.Quantity||(o.Quantity=i.value,s(t))}})})}}),Q({columnId:"Action",renderCell(o){const{List:t,Update:s}=F();return n.jsx(X,{className:ut().act,children:n.jsx(N,{appearance:"subtle",icon:n.jsx(xe,{}),onClick:()=>s(t.filter(e=>e.Id!==o.Id))})})}})];function Ft(o){return[Es(44,o),...Ns]}const Is=P({person:k,inf:{...M,flexBasis:"50%",rowGap:m.spacingVerticalM}});function ks({Log:o}){const t=Is(),s=A(()=>o.With("PersonaInfo")),e=b.User.Get.useMe(s);return n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:t.person,children:[n.jsx("div",{className:t.inf,children:n.jsx(E,{label:"Name",size:"large",children:n.jsx(H,{children:e?.Name})})}),n.jsx("div",{className:t.inf,children:n.jsx(E,{label:"Phone",size:"large",children:n.jsx(H,{children:e?.Phone})})})]}),n.jsx(E,{label:"E-Mail",size:"large",children:n.jsx(H,{children:e?.EMail})}),n.jsx(E,{label:"Address",size:"large",children:n.jsx(H,{children:e?.Address})})]})}const Gs=P({body:{...M,rowGap:m.spacingVerticalXL},sub:{width:"fit-content",alignSelf:"flex-end"}}),dt=new $("TopNavBar","ShopCart","Confirm");function As(){const[o,t]=x.useState(),[s,{toggle:e}]=O(),{List:r,Update:a}=F(),{Nav:i}=V(),d=Gs(),{dispatch:c,dispatchToast:u}=nt(dt),{run:l}=b.Order.Post.useNew({manual:!0,onError(p,y){c({Message:"Failed Create Order",Request:y,Error:p})},onSuccess(p){u(n.jsxs(Z,{children:[n.jsx(tt,{children:"Order Placed"}),n.jsxs(et,{children:["Order Id: ",p]})]}),{intent:"success"}),a([]),e(),i("History",p)}});return n.jsxs(n.Fragment,{children:[n.jsx(N,{appearance:"primary",onClick:e,disabled:!r.length,children:"Checkout"}),n.jsxs(fe,{open:s,onOpenChange:e,position:"end",size:"medium",modalType:"alert",children:[n.jsx(we,{children:n.jsx(ye,{action:n.jsx(N,{appearance:"subtle",icon:n.jsx(Pe,{}),onClick:e}),children:"Confirm Order"})}),n.jsx(Ce,{children:n.jsxs("div",{className:d.body,children:[n.jsx(ks,{Log:dt}),n.jsx(zt,{Items:r,Columns:A(()=>Ft(dt)),NoHeader:!0}),n.jsx(E,{label:"Comment",size:"large",children:n.jsx(je,{value:o,onChange:(p,y)=>t(y.value),maxLength:1e3})}),n.jsx(N,{appearance:"primary",className:d.sub,disabled:!r.length,onClick:()=>l(r,o),children:"Submit"})]})})]})]})}const $s=P({conf:{...k,width:"100%",alignItems:"center",justifyContent:"space-between",marginTop:m.spacingVerticalS,columnGap:m.spacingHorizontalL},tooltip:{backgroundColor:m.colorBrandBackground,color:m.colorNeutralForegroundInverted,...R.borderRadius(m.borderRadiusCircular)}}),Os=new $("TopNavBar","ShopCart");function Us(){const[o,{toggle:t}]=O(),[s,{toggle:e}]=O(),r=$s(),{List:a}=F();return be(()=>{if(o)return;e();const i=setTimeout(e,2e3);return()=>clearTimeout(i)},[a]),n.jsxs(ve,{withArrow:!0,open:o,onOpenChange:t,children:[n.jsx(Te,{disableButtonEnhancement:!0,children:n.jsx(Le,{visible:s,withArrow:!0,content:{children:"↑",className:r.tooltip},relationship:"inaccessible",children:n.jsx(Ee,{icon:n.jsx(Se,{}),appearance:"subtle",size:"large",checked:o})})}),n.jsxs(Ne,{children:[n.jsx(zt,{Items:a,Columns:A(()=>Ft(Os)),NoHeader:!0}),n.jsxs("div",{className:r.conf,children:[a.map(i=>i.Quantity).reduce((i,d)=>i+d,0)," items in shopping cart",n.jsx(As,{})]})]})]})}const Ms=P({navBox:{position:"fixed",top:0,width:"100%",height:`${mt}px`,...R.padding(0,m.spacingHorizontalXXXL),backgroundColor:"#fff",boxSizing:"border-box",boxShadow:m.shadow4},navBar:{...k,maxWidth:pt,height:"100%",...R.margin(0,"auto"),alignItems:"center",justifyContent:"space-between"},logoBox:{...k,columnGap:m.spacingHorizontalL,alignItems:"center"},logoText:{color:m.colorBrandForeground2}});function Ds(){const o=Ms();return n.jsx(Ie,{children:n.jsx("header",{className:o.navBox,children:n.jsxs("nav",{className:o.navBar,children:[n.jsxs(U,{className:o.logoBox,href:"/",appearance:"subtle",children:[n.jsx(At,{src:"/Awai.png",height:mt}),n.jsx(J,{size:600,font:"monospace",className:o.logoText,children:gt.Name})]}),n.jsx(cs,{}),n.jsxs("div",{className:o.logoBox,children:[n.jsx(bs,{}),n.jsx(os,{}),n.jsx(Us,{}),n.jsx(Ts,{})]})]})})})}function Rs(){const{Rep:o}=V();return setTimeout(()=>o("/"),3e3),n.jsxs(n.Fragment,{children:[n.jsxs(ke,{children:[n.jsxs("title",{children:["Redirect - Not Found - ",gt.Name]}),n.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),n.jsx(q,{size:"huge",label:"Redirecting..."})]})}const Vs=P({body:{...M,minWidth:"1024px",position:"absolute",marginTop:`${mt}px`,width:"100%",minHeight:"-webkit-fill-available",justifyContent:"space-between",backgroundColor:m.colorNeutralBackground2},content:{...M,maxWidth:pt,width:"-webkit-fill-available",marginLeft:"auto",marginRight:"auto",paddingLeft:m.spacingHorizontalM,paddingRight:m.spacingHorizontalM,paddingTop:m.spacingVerticalXXXL}});function Bs(){const o=Vs(),{Paths:t}=V(),s=t.at(0),e=x.useMemo(()=>{switch(s){case"Product":return n.jsx(Hs,{});case"Admin":return n.jsx(zs,{});case"History":return n.jsx(Fs,{});case"Login":return n.jsx(q,{size:"huge",label:"Login Redirecting..."});case"Reload":return n.jsx(q,{size:"huge",label:"Reloading..."});case"":case void 0:return n.jsx(_s,{});default:return n.jsx(Rs,{})}},[s]);return n.jsxs(n.Fragment,{children:[n.jsx(Ds,{}),n.jsxs("div",{className:o.body,children:[n.jsx("main",{className:o.content,children:n.jsx(x.Suspense,{fallback:n.jsx(q,{}),children:e})}),n.jsx(as,{})]}),n.jsx(ze,{})]})}const Hs=x.lazy(()=>st(()=>import("./index-tE97uugj.js"),__vite__mapDeps([0,1,2,3,4,5]))),zs=x.lazy(()=>st(()=>import("./index-ZS4E269H.js"),__vite__mapDeps([6,1,7,8,3,4]))),Fs=x.lazy(()=>st(()=>import("./index-R38jE5Oz.js"),__vite__mapDeps([9,1,7]))),_s=x.lazy(()=>st(()=>import("./index-9BToduwY.js"),__vite__mapDeps([10,1,2,3,8])));Ge.createRoot(document.getElementById(gt.Name)).render(n.jsx(Ae,{theme:$e,children:n.jsx(Me,{children:n.jsx(Oe,{instance:I,children:n.jsxs(ns,{children:[n.jsx(Ue,{pauseOnHover:!0}),n.jsx(Bs,{})]})})})}));export{Ps as A,Qs as B,Ve as C,gt as D,k as F,Ls as G,b as H,$ as L,Es as M,Xs as S,M as a,Ss as b,V as c,De as d,nt as e,zt as f,F as u}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/index-Jg_O0wkW.js","assets/vendor-EPO6t9z0.js","assets/isArrayLike--sVJAW2Y.js","assets/isObject-tyZXtoJz.js","assets/Lazy-epdmnhOX.js","assets/index-scunr7sf.css","assets/index-9edqmHqr.js","assets/Columns-udWp41vx.js","assets/toFinite-GMFxiq4g.js","assets/index-aawXm4sE.js","assets/index-Q8F0QMId.js"] + __vite__mapDeps.viteFileDeps = ["assets/index-tE97uugj.js","assets/vendor-nd_CUwkm.js","assets/isArrayLike--sVJAW2Y.js","assets/isObject-tyZXtoJz.js","assets/Lazy-JjY9mDNW.js","assets/index-scunr7sf.css","assets/index-ZS4E269H.js","assets/Columns-QCD_DZcc.js","assets/toFinite-GMFxiq4g.js","assets/index-R38jE5Oz.js","assets/index-9BToduwY.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } diff --git a/assets/index-Jg_O0wkW.js b/assets/index-tE97uugj.js similarity index 99% rename from assets/index-Jg_O0wkW.js rename to assets/index-tE97uugj.js index 6abd089..b62cfad 100644 --- a/assets/index-Jg_O0wkW.js +++ b/assets/index-tE97uugj.js @@ -1,4 +1,4 @@ -import{r as D,ay as Kt,az as It,m as se,x as Pe,j as w,s as Ke,t as R,B as qt,aA as At,aB as Xt,aa as Yt,am as Vt,a3 as Qt,aq as Jt,aC as Zt,aD as Je}from"./vendor-EPO6t9z0.js";import{L as qe,H as re,C as er,B as Ct,a as ne,u as tr,b as Mt,F as ye,c as rr,D as nr,d as ir}from"./index-th8hOfI3.js";import{i as ar,a as or,b as sr,c as ur,e as Lt}from"./isArrayLike--sVJAW2Y.js";import{r as F,i as lr,a as ie,b as Oe,f as fr,S as Ze}from"./isObject-tyZXtoJz.js";import{L as cr}from"./Lazy-epdmnhOX.js";var xt={},Te={},Xe={},Le={},et;function pr(){return et||(et=1,function(e){(function(t,n){n(e,D,Kt)})(It,function(t,n,i){Object.defineProperty(t,"__esModule",{value:!0}),t.setHasSupportToCaptureOption=P;var r=o(n),a=o(i);function o(c){return c&&c.__esModule?c:{default:c}}var s=Object.assign||function(c){for(var m=1;m=0||Object.prototype.hasOwnProperty.call(c,f)&&(S[f]=c[f]);return S}function l(c,m){if(!(c instanceof m))throw new TypeError("Cannot call a class as a function")}var p=function(){function c(m,S){for(var f=0;f0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return g?c:c.capture}function L(c){if("touches"in c){var m=c.touches[0],S=m.pageX,f=m.pageY;return{x:S,y:f}}var O=c.screenX,x=c.screenY;return{x:O,y:x}}var C=function(c){h(m,c);function m(){var S;l(this,m);for(var f=arguments.length,O=Array(f),x=0;xO&&this.props.onSwipeRight(1,f),this.movePosition.deltaY<-O?this.props.onSwipeUp(1,f):this.movePosition.deltaY>O&&this.props.onSwipeDown(1,f)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(f){this.swiper=f,this.props.innerRef(f)}},{key:"render",value:function(){var f=this.props;f.tagName;var O=f.className,x=f.style,b=f.children;f.allowMouseEvents,f.onSwipeUp,f.onSwipeDown,f.onSwipeLeft,f.onSwipeRight,f.onSwipeStart,f.onSwipeMove,f.onSwipeEnd,f.innerRef,f.tolerance;var pe=u(f,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return r.default.createElement(this.props.tagName,s({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:O,style:x},pe),b)}}]),m}(n.Component);C.displayName="ReactSwipe",C.propTypes={tagName:a.default.string,className:a.default.string,style:a.default.object,children:a.default.node,allowMouseEvents:a.default.bool,onSwipeUp:a.default.func,onSwipeDown:a.default.func,onSwipeLeft:a.default.func,onSwipeRight:a.default.func,onSwipeStart:a.default.func,onSwipeMove:a.default.func,onSwipeEnd:a.default.func,innerRef:a.default.func,tolerance:a.default.number.isRequired},C.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},t.default=C})}(Le)),Le}(function(e){(function(t,n){n(e,pr())})(It,function(t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=r(n);function r(a){return a&&a.__esModule?a:{default:a}}t.default=i.default})})(Xe);var ue={},Dt={exports:{}};/*! +import{r as D,ay as Kt,az as It,m as se,x as Pe,j as w,s as Ke,t as R,B as qt,aA as At,aB as Xt,aa as Yt,am as Vt,a3 as Qt,aq as Jt,aC as Zt,aD as Je}from"./vendor-nd_CUwkm.js";import{L as qe,H as re,C as er,B as Ct,a as ne,u as tr,b as Mt,F as ye,c as rr,D as nr,d as ir}from"./index-g5wBm8kU.js";import{i as ar,a as or,b as sr,c as ur,e as Lt}from"./isArrayLike--sVJAW2Y.js";import{r as F,i as lr,a as ie,b as Oe,f as fr,S as Ze}from"./isObject-tyZXtoJz.js";import{L as cr}from"./Lazy-JjY9mDNW.js";var xt={},Te={},Xe={},Le={},et;function pr(){return et||(et=1,function(e){(function(t,n){n(e,D,Kt)})(It,function(t,n,i){Object.defineProperty(t,"__esModule",{value:!0}),t.setHasSupportToCaptureOption=P;var r=o(n),a=o(i);function o(c){return c&&c.__esModule?c:{default:c}}var s=Object.assign||function(c){for(var m=1;m=0||Object.prototype.hasOwnProperty.call(c,f)&&(S[f]=c[f]);return S}function l(c,m){if(!(c instanceof m))throw new TypeError("Cannot call a class as a function")}var p=function(){function c(m,S){for(var f=0;f0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return g?c:c.capture}function L(c){if("touches"in c){var m=c.touches[0],S=m.pageX,f=m.pageY;return{x:S,y:f}}var O=c.screenX,x=c.screenY;return{x:O,y:x}}var C=function(c){h(m,c);function m(){var S;l(this,m);for(var f=arguments.length,O=Array(f),x=0;xO&&this.props.onSwipeRight(1,f),this.movePosition.deltaY<-O?this.props.onSwipeUp(1,f):this.movePosition.deltaY>O&&this.props.onSwipeDown(1,f)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(f){this.swiper=f,this.props.innerRef(f)}},{key:"render",value:function(){var f=this.props;f.tagName;var O=f.className,x=f.style,b=f.children;f.allowMouseEvents,f.onSwipeUp,f.onSwipeDown,f.onSwipeLeft,f.onSwipeRight,f.onSwipeStart,f.onSwipeMove,f.onSwipeEnd,f.innerRef,f.tolerance;var pe=u(f,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return r.default.createElement(this.props.tagName,s({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:O,style:x},pe),b)}}]),m}(n.Component);C.displayName="ReactSwipe",C.propTypes={tagName:a.default.string,className:a.default.string,style:a.default.object,children:a.default.node,allowMouseEvents:a.default.bool,onSwipeUp:a.default.func,onSwipeDown:a.default.func,onSwipeLeft:a.default.func,onSwipeRight:a.default.func,onSwipeStart:a.default.func,onSwipeMove:a.default.func,onSwipeEnd:a.default.func,innerRef:a.default.func,tolerance:a.default.number.isRequired},C.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},t.default=C})}(Le)),Le}(function(e){(function(t,n){n(e,pr())})(It,function(t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=r(n);function r(a){return a&&a.__esModule?a:{default:a}}t.default=i.default})})(Xe);var ue={},Dt={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames diff --git a/assets/vendor-EPO6t9z0.js b/assets/vendor-EPO6t9z0.js deleted file mode 100644 index b7aeaac..0000000 --- a/assets/vendor-EPO6t9z0.js +++ /dev/null @@ -1,143 +0,0 @@ -function Ok(t,e){for(var r=0;ro[n]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var js=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ro(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var jk={exports:{}},Vd={},Dk={exports:{}},Se={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Ql=Symbol.for("react.element"),HE=Symbol.for("react.portal"),UE=Symbol.for("react.fragment"),$E=Symbol.for("react.strict_mode"),KE=Symbol.for("react.profiler"),WE=Symbol.for("react.provider"),VE=Symbol.for("react.context"),GE=Symbol.for("react.forward_ref"),XE=Symbol.for("react.suspense"),YE=Symbol.for("react.memo"),ZE=Symbol.for("react.lazy"),p0=Symbol.iterator;function QE(t){return t===null||typeof t!="object"?null:(t=p0&&t[p0]||t["@@iterator"],typeof t=="function"?t:null)}var Fk={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},qk=Object.assign,Lk={};function cs(t,e,r){this.props=t,this.context=e,this.refs=Lk,this.updater=r||Fk}cs.prototype.isReactComponent={};cs.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=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,t,e,"setState")};cs.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function Hk(){}Hk.prototype=cs.prototype;function Om(t,e,r){this.props=t,this.context=e,this.refs=Lk,this.updater=r||Fk}var jm=Om.prototype=new Hk;jm.constructor=Om;qk(jm,cs.prototype);jm.isPureReactComponent=!0;var m0=Array.isArray,Uk=Object.prototype.hasOwnProperty,Dm={current:null},$k={key:!0,ref:!0,__self:!0,__source:!0};function Kk(t,e,r){var o,n={},i=null,a=null;if(e!=null)for(o in e.ref!==void 0&&(a=e.ref),e.key!==void 0&&(i=""+e.key),e)Uk.call(e,o)&&!$k.hasOwnProperty(o)&&(n[o]=e[o]);var s=arguments.length-2;if(s===1)n.children=r;else if(1{throw X(ye)},base64Decode:()=>{throw X(ye)},base64Encode:()=>{throw X(ye)},async getPublicKeyThumbprint(){throw X(ye)},async removeTokenBindingKey(){throw X(ye)},async clearKeystore(){throw X(ye)},async signJwt(){throw X(ye)},async hashString(){throw X(ye)}};/*! @azure/msal-common v14.6.1 2024-01-23 */var He;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Info=2]="Info",t[t.Verbose=3]="Verbose",t[t.Trace=4]="Trace"})(He||(He={}));class qn{constructor(e,r,o){this.level=He.Info;const n=()=>{},i=e||qn.createDefaultLoggerOptions();this.localCallback=i.loggerCallback||n,this.piiLoggingEnabled=i.piiLoggingEnabled||!1,this.level=typeof i.logLevel=="number"?i.logLevel:He.Info,this.correlationId=i.correlationId||F.EMPTY_STRING,this.packageName=r||F.EMPTY_STRING,this.packageVersion=o||F.EMPTY_STRING}static createDefaultLoggerOptions(){return{loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:He.Info}}clone(e,r,o){return new qn({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:o||this.correlationId},e,r)}logMessage(e,r){if(r.logLevel>this.level||!this.piiLoggingEnabled&&r.containsPii)return;const i=`${`[${new Date().toUTCString()}] : [${r.correlationId||this.correlationId||""}]`} : ${this.packageName}@${this.packageVersion} : ${He[r.logLevel]} - ${e}`;this.executeCallback(r.logLevel,i,r.containsPii||!1)}executeCallback(e,r,o){this.localCallback&&this.localCallback(e,r,o)}error(e,r){this.logMessage(e,{logLevel:He.Error,containsPii:!1,correlationId:r||F.EMPTY_STRING})}errorPii(e,r){this.logMessage(e,{logLevel:He.Error,containsPii:!0,correlationId:r||F.EMPTY_STRING})}warning(e,r){this.logMessage(e,{logLevel:He.Warning,containsPii:!1,correlationId:r||F.EMPTY_STRING})}warningPii(e,r){this.logMessage(e,{logLevel:He.Warning,containsPii:!0,correlationId:r||F.EMPTY_STRING})}info(e,r){this.logMessage(e,{logLevel:He.Info,containsPii:!1,correlationId:r||F.EMPTY_STRING})}infoPii(e,r){this.logMessage(e,{logLevel:He.Info,containsPii:!0,correlationId:r||F.EMPTY_STRING})}verbose(e,r){this.logMessage(e,{logLevel:He.Verbose,containsPii:!1,correlationId:r||F.EMPTY_STRING})}verbosePii(e,r){this.logMessage(e,{logLevel:He.Verbose,containsPii:!0,correlationId:r||F.EMPTY_STRING})}trace(e,r){this.logMessage(e,{logLevel:He.Trace,containsPii:!1,correlationId:r||F.EMPTY_STRING})}tracePii(e,r){this.logMessage(e,{logLevel:He.Trace,containsPii:!0,correlationId:r||F.EMPTY_STRING})}isPiiLoggingEnabled(){return this.piiLoggingEnabled||!1}}/*! @azure/msal-common v14.6.1 2024-01-23 */const hS="@azure/msal-common",Gm="14.6.1";/*! @azure/msal-common v14.6.1 2024-01-23 */const Xm={None:"none",AzurePublic:"https://login.microsoftonline.com",AzurePpe:"https://login.windows-ppe.net",AzureChina:"https://login.chinacloudapi.cn",AzureGermany:"https://login.microsoftonline.de",AzureUsGovernment:"https://login.microsoftonline.us"};/*! @azure/msal-common v14.6.1 2024-01-23 */function Hi(t,e){const r=EB(t);try{const o=e(r);return JSON.parse(o)}catch{throw X(Um)}}function EB(t){if(!t)throw X(Zk);const r=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/.exec(t);if(!r||r.length<4)throw X(Um);return r[2]}function gS(t,e){if(e===0||Date.now()-3e5>t+e)throw X(oS)}/*! @azure/msal-common v14.6.1 2024-01-23 */class Zt{static nowSeconds(){return Math.round(new Date().getTime()/1e3)}static isTokenExpired(e,r){const o=Number(e)||0;return Zt.nowSeconds()+r>o}static wasClockTurnedBack(e){return Number(e)>Zt.nowSeconds()}static delay(e,r){return new Promise(o=>setTimeout(()=>o(r),e))}}/*! @azure/msal-common v14.6.1 2024-01-23 */function da(t){return[BB(t),IB(t),RB(t),AB(t),NB(t)].join(Lt.CACHE_KEY_SEPARATOR).toLowerCase()}function Xd(t,e,r,o,n){return{credentialType:ge.ID_TOKEN,homeAccountId:t,environment:e,clientId:o,secret:r,realm:n}}function Yd(t,e,r,o,n,i,a,s,l,c,u,d,f,h,g){const p={homeAccountId:t,credentialType:ge.ACCESS_TOKEN,secret:r,cachedAt:Zt.nowSeconds().toString(),expiresOn:a.toString(),extendedExpiresOn:s.toString(),environment:e,clientId:o,realm:n,target:i,tokenType:u||Ie.BEARER};if(d&&(p.userAssertionHash=d),c&&(p.refreshOn=c.toString()),h&&(p.requestedClaims=h,p.requestedClaimsHash=g),p.tokenType?.toLowerCase()!==Ie.BEARER.toLowerCase())switch(p.credentialType=ge.ACCESS_TOKEN_WITH_AUTH_SCHEME,p.tokenType){case Ie.POP:const w=Hi(r,l);if(!w?.cnf?.kid)throw X(cS);p.keyId=w.cnf.kid;break;case Ie.SSH:p.keyId=f}return p}function pS(t,e,r,o,n,i,a){const s={credentialType:ge.REFRESH_TOKEN,homeAccountId:t,environment:e,clientId:o,secret:r};return i&&(s.userAssertionHash=i),n&&(s.familyId=n),a&&(s.expiresOn=a.toString()),s}function Ym(t){return t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("credentialType")&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("secret")}function x0(t){return t?Ym(t)&&t.hasOwnProperty("realm")&&t.hasOwnProperty("target")&&(t.credentialType===ge.ACCESS_TOKEN||t.credentialType===ge.ACCESS_TOKEN_WITH_AUTH_SCHEME):!1}function C0(t){return t?Ym(t)&&t.hasOwnProperty("realm")&&t.credentialType===ge.ID_TOKEN:!1}function T0(t){return t?Ym(t)&&t.credentialType===ge.REFRESH_TOKEN:!1}function BB(t){return[t.homeAccountId,t.environment].join(Lt.CACHE_KEY_SEPARATOR).toLowerCase()}function IB(t){const e=t.credentialType===ge.REFRESH_TOKEN&&t.familyId||t.clientId;return[t.credentialType,e,t.realm||""].join(Lt.CACHE_KEY_SEPARATOR).toLowerCase()}function RB(t){return(t.target||"").toLowerCase()}function AB(t){return(t.requestedClaimsHash||"").toLowerCase()}function NB(t){return t.tokenType&&t.tokenType.toLowerCase()!==Ie.BEARER.toLowerCase()?t.tokenType.toLowerCase():""}function PB(t,e){const r=t.indexOf(Nt.CACHE_KEY)===0;let o=!0;return e&&(o=e.hasOwnProperty("failedRequests")&&e.hasOwnProperty("errors")&&e.hasOwnProperty("cacheHits")),r&&o}function zB(t,e){let r=!1;t&&(r=t.indexOf(Ys.THROTTLING_PREFIX)===0);let o=!0;return e&&(o=e.hasOwnProperty("throttleTime")),r&&o}function MB({environment:t,clientId:e}){return[qm,t,e].join(Lt.CACHE_KEY_SEPARATOR).toLowerCase()}function OB(t,e){return e?t.indexOf(qm)===0&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("environment"):!1}function jB(t,e){return e?t.indexOf(Wu.CACHE_KEY)===0&&e.hasOwnProperty("aliases")&&e.hasOwnProperty("preferred_cache")&&e.hasOwnProperty("preferred_network")&&e.hasOwnProperty("canonical_authority")&&e.hasOwnProperty("authorization_endpoint")&&e.hasOwnProperty("token_endpoint")&&e.hasOwnProperty("issuer")&&e.hasOwnProperty("aliasesFromNetwork")&&e.hasOwnProperty("endpointsFromNetwork")&&e.hasOwnProperty("expiresAt")&&e.hasOwnProperty("jwks_uri"):!1}function E0(){return Zt.nowSeconds()+Wu.REFRESH_TIME_SECONDS}function Ec(t,e,r){t.authorization_endpoint=e.authorization_endpoint,t.token_endpoint=e.token_endpoint,t.end_session_endpoint=e.end_session_endpoint,t.issuer=e.issuer,t.endpointsFromNetwork=r,t.jwks_uri=e.jwks_uri}function Zf(t,e,r){t.aliases=e.aliases,t.preferred_cache=e.preferred_cache,t.preferred_network=e.preferred_network,t.aliasesFromNetwork=r}function B0(t){return t.expiresAt<=Zt.nowSeconds()}/*! @azure/msal-common v14.6.1 2024-01-23 */const mS="redirect_uri_empty",DB="claims_request_parsing_error",vS="authority_uri_insecure",Ds="url_parse_error",bS="empty_url_error",yS="empty_input_scopes_error",wS="invalid_prompt_value",Zm="invalid_claims",kS="token_request_empty",SS="logout_request_empty",_S="invalid_code_challenge_method",Qm="pkce_params_missing",Jm="invalid_cloud_discovery_metadata",xS="invalid_authority_metadata",CS="untrusted_authority",Zd="missing_ssh_jwk",TS="missing_ssh_kid",FB="missing_nonce_authentication_header",qB="invalid_authentication_header",ES="cannot_set_OIDCOptions",BS="cannot_allow_native_broker",IS="authority_mismatch";/*! @azure/msal-common v14.6.1 2024-01-23 */const LB={[mS]:"A redirect URI is required for all calls, and none has been set.",[DB]:"Could not parse the given claims request object.",[vS]:"Authority URIs must use https. Please see here for valid authority configuration options: https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options",[Ds]:"URL could not be parsed into appropriate segments.",[bS]:"URL was empty or null.",[yS]:"Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token.",[wS]:"Please see here for valid configuration options: https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#commonauthorizationurlrequest",[Zm]:"Given claims parameter must be a stringified JSON object.",[kS]:"Token request was empty and not found in cache.",[SS]:"The logout request was null or undefined.",[_S]:'code_challenge_method passed is invalid. Valid values are "plain" and "S256".',[Qm]:"Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request",[Jm]:"Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields",[xS]:"Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields.",[CS]:"The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter.",[Zd]:"Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme.",[TS]:"Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme.",[FB]:"Unable to find an authentication header containing server nonce. Either the Authentication-Info or WWW-Authenticate headers must be present in order to obtain a server nonce.",[qB]:"Invalid authentication header provided",[ES]:"Cannot set OIDCOptions parameter. Please change the protocol mode to OIDC or use a non-Microsoft authority.",[BS]:"Cannot set allowNativeBroker parameter to true when not in AAD protocol mode.",[IS]:"Authority mismatch error. Authority provided in login request or PublicClientApplication config does not match the environment of the provided account. Please use a matching account or make an interactive request to login to this authority."};class ev extends We{constructor(e){super(e,LB[e]),this.name="ClientConfigurationError",Object.setPrototypeOf(this,ev.prototype)}}function Ne(t){return new ev(t)}/*! @azure/msal-common v14.6.1 2024-01-23 */class to{static isEmptyObj(e){if(e)try{const r=JSON.parse(e);return Object.keys(r).length===0}catch{}return!0}static startsWith(e,r){return e.indexOf(r)===0}static endsWith(e,r){return e.length>=r.length&&e.lastIndexOf(r)===e.length-r.length}static queryStringToObject(e){const r={},o=e.split("&"),n=i=>decodeURIComponent(i.replace(/\+/g," "));return o.forEach(i=>{if(i.trim()){const[a,s]=i.split(/=(.+)/g,2);a&&s&&(r[n(a)]=n(s))}}),r}static trimArrayEntries(e){return e.map(r=>r.trim())}static removeEmptyStringsFromArray(e){return e.filter(r=>!!r)}static jsonParseHelper(e){try{return JSON.parse(e)}catch{return null}}static matchPattern(e,r){return new RegExp(e.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?")).test(r)}}/*! @azure/msal-common v14.6.1 2024-01-23 */class ht{constructor(e){const r=e?to.trimArrayEntries([...e]):[],o=r?to.removeEmptyStringsFromArray(r):[];this.validateInputScopes(o),this.scopes=new Set,o.forEach(n=>this.scopes.add(n))}static fromString(e){const o=(e||F.EMPTY_STRING).split(" ");return new ht(o)}static createSearchScopes(e){const r=new ht(e);return r.containsOnlyOIDCScopes()?r.removeScope(F.OFFLINE_ACCESS_SCOPE):r.removeOIDCScopes(),r}validateInputScopes(e){if(!e||e.length<1)throw Ne(yS)}containsScope(e){const r=this.printScopesLowerCase().split(" "),o=new ht(r);return e?o.scopes.has(e.toLowerCase()):!1}containsScopeSet(e){return!e||e.scopes.size<=0?!1:this.scopes.size>=e.scopes.size&&e.asArray().every(r=>this.containsScope(r))}containsOnlyOIDCScopes(){let e=0;return b0.forEach(r=>{this.containsScope(r)&&(e+=1)}),this.scopes.size===e}appendScope(e){e&&this.scopes.add(e.trim())}appendScopes(e){try{e.forEach(r=>this.appendScope(r))}catch{throw X(sS)}}removeScope(e){if(!e)throw X(aS);this.scopes.delete(e.trim())}removeOIDCScopes(){b0.forEach(e=>{this.scopes.delete(e)})}unionScopeSets(e){if(!e)throw X(vg);const r=new Set;return e.scopes.forEach(o=>r.add(o.toLowerCase())),this.scopes.forEach(o=>r.add(o.toLowerCase())),r}intersectingScopeSets(e){if(!e)throw X(vg);e.containsOnlyOIDCScopes()||e.removeOIDCScopes();const r=this.unionScopeSets(e),o=e.getScopeCount(),n=this.getScopeCount();return r.sizee.push(r)),e}printScopes(){return this.scopes?this.asArray().join(" "):F.EMPTY_STRING}printScopesLowerCase(){return this.printScopes().toLowerCase()}}/*! @azure/msal-common v14.6.1 2024-01-23 */function Xu(t,e){if(!t)throw X(Yk);try{const r=e(t);return JSON.parse(r)}catch{throw X(Hm)}}function fa(t){if(!t)throw X(Hm);const e=t.split(Lt.CLIENT_INFO_SEPARATOR,2);return{uid:e[0],utid:e.length<2?F.EMPTY_STRING:e[1]}}/*! @azure/msal-common v14.6.1 2024-01-23 */function kg(t,e){return!!t&&!!e&&t===e.split(".")[1]}function tv(t,e){const{oid:r,sub:o,tid:n,name:i,tfp:a,acr:s}=e,l=n||a||s||"";return{tenantId:l,localAccountId:r||o||"",name:i,isHomeTenant:kg(l,t)}}function rv(t,e,r){let o=t;if(e){const{isHomeTenant:n,...i}=e;o={...t,...i}}if(r){const{isHomeTenant:n,...i}=tv(t.homeAccountId,r);return o={...o,...i,idTokenClaims:r},o}return o}/*! @azure/msal-common v14.6.1 2024-01-23 */const Vr={Default:0,Adfs:1,Dsts:2,Ciam:3};/*! @azure/msal-common v14.6.1 2024-01-23 */function RS(t){return t&&(t.tid||t.tfp||t.acr)||null}/*! @azure/msal-common v14.6.1 2024-01-23 */const Xo={AAD:"AAD",OIDC:"OIDC"};/*! @azure/msal-common v14.6.1 2024-01-23 */class xt{generateAccountId(){return[this.homeAccountId,this.environment].join(Lt.CACHE_KEY_SEPARATOR).toLowerCase()}generateAccountKey(){return xt.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})}getAccountInfo(){return{homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId,name:this.name,nativeAccountId:this.nativeAccountId,authorityType:this.authorityType,tenantProfiles:new Map((this.tenantProfiles||[]).map(e=>[e.tenantId,e]))}}isSingleTenant(){return!this.tenantProfiles}static generateAccountCacheKey(e){const r=e.homeAccountId.split(".")[1];return[e.homeAccountId,e.environment||"",r||e.tenantId||""].join(Lt.CACHE_KEY_SEPARATOR).toLowerCase()}static createAccount(e,r,o){const n=new xt;r.authorityType===Vr.Adfs?n.authorityType=Cc.ADFS_ACCOUNT_TYPE:r.protocolMode===Xo.AAD?n.authorityType=Cc.MSSTS_ACCOUNT_TYPE:n.authorityType=Cc.GENERIC_ACCOUNT_TYPE;let i;e.clientInfo&&o&&(i=Xu(e.clientInfo,o)),n.clientInfo=e.clientInfo,n.homeAccountId=e.homeAccountId,n.nativeAccountId=e.nativeAccountId;const a=e.environment||r&&r.getPreferredCache();if(!a)throw X(Wm);n.environment=a,n.realm=i?.utid||RS(e.idTokenClaims)||"",n.localAccountId=i?.uid||e.idTokenClaims.oid||e.idTokenClaims.sub||"";const s=e.idTokenClaims.preferred_username||e.idTokenClaims.upn,l=e.idTokenClaims.emails?e.idTokenClaims.emails[0]:null;if(n.username=s||l||"",n.name=e.idTokenClaims.name,n.cloudGraphHostName=e.cloudGraphHostName,n.msGraphHost=e.msGraphHost,e.tenantProfiles)n.tenantProfiles=e.tenantProfiles;else{const c=[];if(e.idTokenClaims){const u=tv(e.homeAccountId,e.idTokenClaims);c.push(u)}n.tenantProfiles=c}return n}static createFromAccountInfo(e,r,o){const n=new xt;return n.authorityType=e.authorityType||Cc.GENERIC_ACCOUNT_TYPE,n.homeAccountId=e.homeAccountId,n.localAccountId=e.localAccountId,n.nativeAccountId=e.nativeAccountId,n.realm=e.tenantId,n.environment=e.environment,n.username=e.username,n.name=e.name,n.cloudGraphHostName=r,n.msGraphHost=o,n.tenantProfiles=Array.from(e.tenantProfiles?.values()||[]),n}static generateHomeAccountId(e,r,o,n,i){if(!(r===Vr.Adfs||r===Vr.Dsts)){if(e)try{const a=Xu(e,n.base64Decode);if(a.uid&&a.utid)return`${a.uid}.${a.utid}`}catch{}o.warning("No client info in response")}return i?.sub||""}static isAccountEntity(e){return e?e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("localAccountId")&&e.hasOwnProperty("username")&&e.hasOwnProperty("authorityType"):!1}static accountInfoIsEqual(e,r,o){if(!e||!r)return!1;let n=!0;if(o){const i=e.idTokenClaims||{},a=r.idTokenClaims||{};n=i.iat===a.iat&&i.nonce===a.nonce}return e.homeAccountId===r.homeAccountId&&e.localAccountId===r.localAccountId&&e.username===r.username&&e.tenantId===r.tenantId&&e.environment===r.environment&&e.nativeAccountId===r.nativeAccountId&&n}}/*! @azure/msal-common v14.6.1 2024-01-23 */function AS(t){return t.startsWith("#/")?t.substring(2):t.startsWith("#")||t.startsWith("?")?t.substring(1):t}function Yu(t){if(!t||t.indexOf("=")<0)return null;try{const e=AS(t),r=Object.fromEntries(new URLSearchParams(e));if(r.code||r.error||r.error_description||r.state)return r}catch{throw X(eS)}return null}/*! @azure/msal-common v14.6.1 2024-01-23 */class xe{get urlString(){return this._urlString}constructor(e){if(this._urlString=e,!this._urlString)throw Ne(bS);e.includes("#")||(this._urlString=xe.canonicalizeUri(e))}static canonicalizeUri(e){if(e){let r=e.toLowerCase();return to.endsWith(r,"?")?r=r.slice(0,-1):to.endsWith(r,"?/")&&(r=r.slice(0,-2)),to.endsWith(r,"/")||(r+="/"),r}return e}validateAsUri(){let e;try{e=this.getUrlComponents()}catch{throw Ne(Ds)}if(!e.HostNameAndPort||!e.PathSegments)throw Ne(Ds);if(!e.Protocol||e.Protocol.toLowerCase()!=="https:")throw Ne(vS)}static appendQueryString(e,r){return r?e.indexOf("?")<0?`${e}?${r}`:`${e}&${r}`:e}static removeHashFromUrl(e){return xe.canonicalizeUri(e.split("#")[0])}replaceTenantPath(e){const r=this.getUrlComponents(),o=r.PathSegments;return e&&o.length!==0&&(o[0]===Rn.COMMON||o[0]===Rn.ORGANIZATIONS)&&(o[0]=e),xe.constructAuthorityUriFromObject(r)}getUrlComponents(){const e=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),r=this.urlString.match(e);if(!r)throw Ne(Ds);const o={Protocol:r[1],HostNameAndPort:r[4],AbsolutePath:r[5],QueryString:r[7]};let n=o.AbsolutePath.split("/");return n=n.filter(i=>i&&i.length>0),o.PathSegments=n,o.QueryString&&o.QueryString.endsWith("/")&&(o.QueryString=o.QueryString.substring(0,o.QueryString.length-1)),o}static getDomainFromUrl(e){const r=RegExp("^([^:/?#]+://)?([^/?#]*)"),o=e.match(r);if(!o)throw Ne(Ds);return o[2]}static getAbsoluteUrl(e,r){if(e[0]===F.FORWARD_SLASH){const n=new xe(r).getUrlComponents();return n.Protocol+"//"+n.HostNameAndPort+e}return e}static constructAuthorityUriFromObject(e){return new xe(e.Protocol+"//"+e.HostNameAndPort+"/"+e.PathSegments.join("/"))}static hashContainsKnownProperties(e){return!!Yu(e)}}/*! @azure/msal-common v14.6.1 2024-01-23 */const NS={endpointMetadata:{"login.microsoftonline.com":{token_endpoint:"https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.microsoftonline.com/{tenantid}/discovery/v2.0/keys",issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",authorization_endpoint:"https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/logout"},"login.chinacloudapi.cn":{token_endpoint:"https://login.chinacloudapi.cn/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.chinacloudapi.cn/{tenantid}/discovery/v2.0/keys",issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",authorization_endpoint:"https://login.chinacloudapi.cn/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.chinacloudapi.cn/{tenantid}/oauth2/v2.0/logout"},"login.microsoftonline.us":{token_endpoint:"https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.microsoftonline.us/{tenantid}/discovery/v2.0/keys",issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",authorization_endpoint:"https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/logout"}},instanceDiscoveryMetadata:{tenant_discovery_endpoint:"https://{canonicalAuthority}/v2.0/.well-known/openid-configuration",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]}},I0=NS.endpointMetadata,ov=NS.instanceDiscoveryMetadata,PS=new Set;ov.metadata.forEach(t=>{t.aliases.forEach(e=>{PS.add(e)})});function HB(t,e){let r;const o=t.canonicalAuthority;if(o){const n=new xe(o).getUrlComponents().HostNameAndPort;r=R0(n,t.cloudDiscoveryMetadata?.metadata,hr.CONFIG,e)||R0(n,ov.metadata,hr.HARDCODED_VALUES,e)||t.knownAuthorities}return r||[]}function R0(t,e,r,o){if(o?.trace(`getAliasesFromMetadata called with source: ${r}`),t&&e){const n=Zu(e,t);if(n)return o?.trace(`getAliasesFromMetadata: found cloud discovery metadata in ${r}, returning aliases`),n.aliases;o?.trace(`getAliasesFromMetadata: did not find cloud discovery metadata in ${r}`)}return null}function UB(t){return Zu(ov.metadata,t)}function Zu(t,e){for(let r=0;r1?r.sort(n=>n.idTokenClaims?-1:1)[0]:r.length===1?r[0]:null}getBaseAccountInfo(e){const r=this.getAccountsFilteredBy(e);return r.length>0?r[0].getAccountInfo():null}buildTenantProfiles(e,r){return e.flatMap(o=>this.getAccountInfoForTenantProfiles(o,r))}getAccountInfoForTenantProfiles(e,r){return this.getTenantProfilesFromAccountEntity(e,r?.tenantId,r)}getTenantedAccountInfoByFilter(e,r,o,n){let i=null,a;if(n&&!this.tenantProfileMatchesFilter(o,n))return null;const s=this.getIdToken(e,r,o.tenantId);return s&&(a=Hi(s.secret,this.cryptoImpl.base64Decode),!this.idTokenClaimsMatchTenantProfileFilter(a,n))?null:(i=rv(e,o,a),i)}getTenantProfilesFromAccountEntity(e,r,o){const n=e.getAccountInfo();let i=n.tenantProfiles||new Map;const a=this.getTokenKeys();if(r){const l=i.get(r);if(l)i=new Map([[r,l]]);else return[]}const s=[];return i.forEach(l=>{const c=this.getTenantedAccountInfoByFilter(n,a,l,o);c&&s.push(c)}),s}tenantProfileMatchesFilter(e,r){return!(r.localAccountId&&!this.matchLocalAccountIdFromTenantProfile(e,r.localAccountId)||r.name&&e.name!==r.name||r.isHomeTenant!==void 0&&e.isHomeTenant!==r.isHomeTenant)}idTokenClaimsMatchTenantProfileFilter(e,r){return!(r&&(r.localAccountId&&!this.matchLocalAccountIdFromTokenClaims(e,r.localAccountId)||r.loginHint&&!this.matchLoginHintFromTokenClaims(e,r.loginHint)||r.username&&!this.matchUsername(e.preferred_username,r.username)||r.name&&!this.matchName(e,r.name)||r.sid&&!this.matchSid(e,r.sid)))}async saveCacheRecord(e,r){if(!e)throw X(lS);e.account&&this.setAccount(e.account),e.idToken&&r?.idToken!==!1&&this.setIdTokenCredential(e.idToken),e.accessToken&&r?.accessToken!==!1&&await this.saveAccessToken(e.accessToken),e.refreshToken&&r?.refreshToken!==!1&&this.setRefreshTokenCredential(e.refreshToken),e.appMetadata&&this.setAppMetadata(e.appMetadata)}async saveAccessToken(e){const r={clientId:e.clientId,credentialType:e.credentialType,environment:e.environment,homeAccountId:e.homeAccountId,realm:e.realm,tokenType:e.tokenType,requestedClaimsHash:e.requestedClaimsHash},o=this.getTokenKeys(),n=ht.fromString(e.target),i=[];o.accessToken.forEach(a=>{if(!this.accessTokenKeyMatchesFilter(a,r,!1))return;const s=this.getAccessTokenCredential(a);s&&this.credentialMatchesFilter(s,r)&&ht.fromString(s.target).intersectingScopeSets(n)&&i.push(this.removeAccessToken(a))}),await Promise.all(i),this.setAccessTokenCredential(e)}getAccountsFilteredBy(e){const r=this.getAccountKeys(),o=[];return r.forEach(n=>{if(!this.isAccountKey(n,e.homeAccountId))return;const i=this.getAccount(n,this.commonLogger);if(!i||e.homeAccountId&&!this.matchHomeAccountId(i,e.homeAccountId)||e.username&&!this.matchUsername(i.username,e.username)||e.environment&&!this.matchEnvironment(i,e.environment)||e.realm&&!this.matchRealm(i,e.realm)||e.nativeAccountId&&!this.matchNativeAccountId(i,e.nativeAccountId)||e.authorityType&&!this.matchAuthorityType(i,e.authorityType))return;const a={localAccountId:e?.localAccountId,name:e?.name},s=i.tenantProfiles?.filter(l=>this.tenantProfileMatchesFilter(l,a));s&&s.length===0||o.push(i)}),o}isAccountKey(e,r,o){return!(e.split(Lt.CACHE_KEY_SEPARATOR).length<3||r&&!e.toLowerCase().includes(r.toLowerCase())||o&&!e.toLowerCase().includes(o.toLowerCase()))}isCredentialKey(e){if(e.split(Lt.CACHE_KEY_SEPARATOR).length<6)return!1;const r=e.toLowerCase();if(r.indexOf(ge.ID_TOKEN.toLowerCase())===-1&&r.indexOf(ge.ACCESS_TOKEN.toLowerCase())===-1&&r.indexOf(ge.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())===-1&&r.indexOf(ge.REFRESH_TOKEN.toLowerCase())===-1)return!1;if(r.indexOf(ge.REFRESH_TOKEN.toLowerCase())>-1){const o=`${ge.REFRESH_TOKEN}${Lt.CACHE_KEY_SEPARATOR}${this.clientId}${Lt.CACHE_KEY_SEPARATOR}`,n=`${ge.REFRESH_TOKEN}${Lt.CACHE_KEY_SEPARATOR}${Xs}${Lt.CACHE_KEY_SEPARATOR}`;if(r.indexOf(o.toLowerCase())===-1&&r.indexOf(n.toLowerCase())===-1)return!1}else if(r.indexOf(this.clientId.toLowerCase())===-1)return!1;return!0}credentialMatchesFilter(e,r){return!(r.clientId&&!this.matchClientId(e,r.clientId)||r.userAssertionHash&&!this.matchUserAssertionHash(e,r.userAssertionHash)||typeof r.homeAccountId=="string"&&!this.matchHomeAccountId(e,r.homeAccountId)||r.environment&&!this.matchEnvironment(e,r.environment)||r.realm&&!this.matchRealm(e,r.realm)||r.credentialType&&!this.matchCredentialType(e,r.credentialType)||r.familyId&&!this.matchFamilyId(e,r.familyId)||r.target&&!this.matchTarget(e,r.target)||(r.requestedClaimsHash||e.requestedClaimsHash)&&e.requestedClaimsHash!==r.requestedClaimsHash||e.credentialType===ge.ACCESS_TOKEN_WITH_AUTH_SCHEME&&(r.tokenType&&!this.matchTokenType(e,r.tokenType)||r.tokenType===Ie.SSH&&r.keyId&&!this.matchKeyId(e,r.keyId)))}getAppMetadataFilteredBy(e){return this.getAppMetadataFilteredByInternal(e.environment,e.clientId)}getAppMetadataFilteredByInternal(e,r){const o=this.getKeys(),n={};return o.forEach(i=>{if(!this.isAppMetadata(i))return;const a=this.getAppMetadata(i);a&&(e&&!this.matchEnvironment(a,e)||r&&!this.matchClientId(a,r)||(n[i]=a))}),n}getAuthorityMetadataByAlias(e){const r=this.getAuthorityMetadataKeys();let o=null;return r.forEach(n=>{if(!this.isAuthorityMetadata(n)||n.indexOf(this.clientId)===-1)return;const i=this.getAuthorityMetadata(n);i&&i.aliases.indexOf(e)!==-1&&(o=i)}),o}async removeAllAccounts(){const e=this.getAccountKeys(),r=[];e.forEach(o=>{r.push(this.removeAccount(o))}),await Promise.all(r)}async removeAccount(e){const r=this.getAccount(e,this.commonLogger);r&&(await this.removeAccountContext(r),this.removeItem(e))}async removeAccountContext(e){const r=this.getTokenKeys(),o=e.generateAccountId(),n=[];r.idToken.forEach(i=>{i.indexOf(o)===0&&this.removeIdToken(i)}),r.accessToken.forEach(i=>{i.indexOf(o)===0&&n.push(this.removeAccessToken(i))}),r.refreshToken.forEach(i=>{i.indexOf(o)===0&&this.removeRefreshToken(i)}),await Promise.all(n)}updateOutdatedCachedAccount(e,r,o){if(r&&r.isSingleTenant()){this.commonLogger?.verbose("updateOutdatedCachedAccount: Found a single-tenant (outdated) account entity in the cache, migrating to multi-tenant account entity");const n=this.getAccountKeys().filter(c=>c.startsWith(r.homeAccountId)),i=[];n.forEach(c=>{const u=this.getCachedAccountEntity(c);u&&i.push(u)});const a=i.find(c=>kg(c.realm,c.homeAccountId))||i[0];a.tenantProfiles=i.map(c=>({tenantId:c.realm,localAccountId:c.localAccountId,name:c.name,isHomeTenant:kg(c.realm,c.homeAccountId)}));const s=Ha.toObject(new xt,{...a}),l=s.generateAccountKey();return n.forEach(c=>{c!==l&&this.removeOutdatedAccount(e)}),this.setAccount(s),o?.verbose("Updated an outdated account entity in the cache"),s}return r}async removeAccessToken(e){const r=this.getAccessTokenCredential(e);if(r){if(r.credentialType.toLowerCase()===ge.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase()&&r.tokenType===Ie.POP){const n=r.keyId;if(n)try{await this.cryptoImpl.removeTokenBindingKey(n)}catch{throw X(dS)}}return this.removeItem(e)}}removeAppMetadata(){return this.getKeys().forEach(r=>{this.isAppMetadata(r)&&this.removeItem(r)}),!0}readAccountFromCache(e){const r=xt.generateAccountCacheKey(e);return this.getAccount(r,this.commonLogger)}getIdToken(e,r,o,n,i){this.commonLogger.trace("CacheManager - getIdToken called");const a={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:ge.ID_TOKEN,clientId:this.clientId,realm:o},s=this.getIdTokensByFilter(a,r),l=s.size;if(l<1)return this.commonLogger.info("CacheManager:getIdToken - No token found"),null;if(l>1){let c=s;if(!o){const u=new Map;s.forEach((f,h)=>{f.realm===e.tenantId&&u.set(h,f)});const d=u.size;if(d<1)return this.commonLogger.info("CacheManager:getIdToken - Multiple ID tokens found for account but none match account entity tenant id, returning first result"),s.values().next().value;if(d===1)return this.commonLogger.info("CacheManager:getIdToken - Multiple ID tokens found for account, defaulting to home tenant profile"),u.values().next().value;c=u}return this.commonLogger.info("CacheManager:getIdToken - Multiple matching ID tokens found, clearing them"),c.forEach((u,d)=>{this.removeIdToken(d)}),n&&i&&n.addFields({multiMatchedID:s.size},i),null}return this.commonLogger.info("CacheManager:getIdToken - Returning ID token"),s.values().next().value}getIdTokensByFilter(e,r){const o=r&&r.idToken||this.getTokenKeys().idToken,n=new Map;return o.forEach(i=>{if(!this.idTokenKeyMatchesFilter(i,{clientId:this.clientId,...e}))return;const a=this.getIdTokenCredential(i);a&&this.credentialMatchesFilter(a,e)&&n.set(i,a)}),n}idTokenKeyMatchesFilter(e,r){const o=e.toLowerCase();return!(r.clientId&&o.indexOf(r.clientId.toLowerCase())===-1||r.homeAccountId&&o.indexOf(r.homeAccountId.toLowerCase())===-1)}removeIdToken(e){this.removeItem(e)}removeRefreshToken(e){this.removeItem(e)}getAccessToken(e,r,o,n,i,a){this.commonLogger.trace("CacheManager - getAccessToken called");const s=ht.createSearchScopes(r.scopes),l=r.authenticationScheme||Ie.BEARER,c=l&&l.toLowerCase()!==Ie.BEARER.toLowerCase()?ge.ACCESS_TOKEN_WITH_AUTH_SCHEME:ge.ACCESS_TOKEN,u={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:c,clientId:this.clientId,realm:n||e.tenantId,target:s,tokenType:l,keyId:r.sshKid,requestedClaimsHash:r.requestedClaimsHash},d=o&&o.accessToken||this.getTokenKeys().accessToken,f=[];d.forEach(g=>{if(this.accessTokenKeyMatchesFilter(g,u,!0)){const p=this.getAccessTokenCredential(g);p&&this.credentialMatchesFilter(p,u)&&f.push(p)}});const h=f.length;return h<1?(this.commonLogger.info("CacheManager:getAccessToken - No token found"),null):h>1?(this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them"),f.forEach(g=>{this.removeAccessToken(da(g))}),i&&a&&i.addFields({multiMatchedAT:f.length},a),null):(this.commonLogger.info("CacheManager:getAccessToken - Returning access token"),f[0])}accessTokenKeyMatchesFilter(e,r,o){const n=e.toLowerCase();if(r.clientId&&n.indexOf(r.clientId.toLowerCase())===-1||r.homeAccountId&&n.indexOf(r.homeAccountId.toLowerCase())===-1||r.realm&&n.indexOf(r.realm.toLowerCase())===-1||r.requestedClaimsHash&&n.indexOf(r.requestedClaimsHash.toLowerCase())===-1)return!1;if(r.target){const i=r.target.asArray();for(let a=0;a{if(!this.accessTokenKeyMatchesFilter(n,e,!0))return;const i=this.getAccessTokenCredential(n);i&&this.credentialMatchesFilter(i,e)&&o.push(i)}),o}getRefreshToken(e,r,o,n,i){this.commonLogger.trace("CacheManager - getRefreshToken called");const a=r?Xs:void 0,s={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:ge.REFRESH_TOKEN,clientId:this.clientId,familyId:a},l=o&&o.refreshToken||this.getTokenKeys().refreshToken,c=[];l.forEach(d=>{if(this.refreshTokenKeyMatchesFilter(d,s)){const f=this.getRefreshTokenCredential(d);f&&this.credentialMatchesFilter(f,s)&&c.push(f)}});const u=c.length;return u<1?(this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."),null):(u>1&&n&&i&&n.addFields({multiMatchedRT:u},i),this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"),c[0])}refreshTokenKeyMatchesFilter(e,r){const o=e.toLowerCase();return!(r.familyId&&o.indexOf(r.familyId.toLowerCase())===-1||!r.familyId&&r.clientId&&o.indexOf(r.clientId.toLowerCase())===-1||r.homeAccountId&&o.indexOf(r.homeAccountId.toLowerCase())===-1)}readAppMetadataFromCache(e){const r={environment:e,clientId:this.clientId},o=this.getAppMetadataFilteredBy(r),n=Object.keys(o).map(a=>o[a]),i=n.length;if(i<1)return null;if(i>1)throw X(nS);return n[0]}isAppMetadataFOCI(e){const r=this.readAppMetadataFromCache(e);return!!(r&&r.familyId===Xs)}matchHomeAccountId(e,r){return typeof e.homeAccountId=="string"&&r===e.homeAccountId}matchLocalAccountIdFromTokenClaims(e,r){const o=e.oid||e.sub;return r===o}matchLocalAccountIdFromTenantProfile(e,r){return e.localAccountId===r}matchName(e,r){return r.toLowerCase()===e.name?.toLowerCase()}matchUsername(e,r){return!!(e&&typeof e=="string"&&r?.toLowerCase()===e.toLowerCase())}matchUserAssertionHash(e,r){return!!(e.userAssertionHash&&r===e.userAssertionHash)}matchEnvironment(e,r){if(this.staticAuthorityOptions){const n=HB(this.staticAuthorityOptions,this.commonLogger);if(n.includes(r)&&n.includes(e.environment))return!0}const o=this.getAuthorityMetadataByAlias(r);return!!(o&&o.aliases.indexOf(e.environment)>-1)}matchCredentialType(e,r){return e.credentialType&&r.toLowerCase()===e.credentialType.toLowerCase()}matchClientId(e,r){return!!(e.clientId&&r===e.clientId)}matchFamilyId(e,r){return!!(e.familyId&&r===e.familyId)}matchRealm(e,r){return e.realm?.toLowerCase()===r.toLowerCase()}matchNativeAccountId(e,r){return!!(e.nativeAccountId&&r===e.nativeAccountId)}matchLoginHintFromTokenClaims(e,r){return e.login_hint===r||e.preferred_username===r||e.upn===r}matchSid(e,r){return e.sid===r}matchAuthorityType(e,r){return!!(e.authorityType&&r.toLowerCase()===e.authorityType.toLowerCase())}matchTarget(e,r){return e.credentialType!==ge.ACCESS_TOKEN&&e.credentialType!==ge.ACCESS_TOKEN_WITH_AUTH_SCHEME||!e.target?!1:ht.fromString(e.target).containsScopeSet(r)}matchTokenType(e,r){return!!(e.tokenType&&e.tokenType===r)}matchKeyId(e,r){return!!(e.keyId&&e.keyId===r)}isAppMetadata(e){return e.indexOf(qm)!==-1}isAuthorityMetadata(e){return e.indexOf(Wu.CACHE_KEY)!==-1}generateAuthorityMetadataCacheKey(e){return`${Wu.CACHE_KEY}-${this.clientId}-${e}`}static toObject(e,r){for(const o in r)e[o]=r[o];return e}}class $B extends Ha{setAccount(){throw X(ye)}getAccount(){throw X(ye)}getCachedAccountEntity(){throw X(ye)}setIdTokenCredential(){throw X(ye)}getIdTokenCredential(){throw X(ye)}setAccessTokenCredential(){throw X(ye)}getAccessTokenCredential(){throw X(ye)}setRefreshTokenCredential(){throw X(ye)}getRefreshTokenCredential(){throw X(ye)}setAppMetadata(){throw X(ye)}getAppMetadata(){throw X(ye)}setServerTelemetry(){throw X(ye)}getServerTelemetry(){throw X(ye)}setAuthorityMetadata(){throw X(ye)}getAuthorityMetadata(){throw X(ye)}getAuthorityMetadataKeys(){throw X(ye)}setThrottlingCache(){throw X(ye)}getThrottlingCache(){throw X(ye)}removeItem(){throw X(ye)}containsKey(){throw X(ye)}getKeys(){throw X(ye)}getAccountKeys(){throw X(ye)}getTokenKeys(){throw X(ye)}async clear(){throw X(ye)}updateCredentialCacheKey(){throw X(ye)}removeOutdatedAccount(){throw X(ye)}}/*! @azure/msal-common v14.6.1 2024-01-23 */const KB=300,zS={tokenRenewalOffsetSeconds:KB,preventCorsPreflight:!1},WB={loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:He.Info,correlationId:F.EMPTY_STRING},VB={claimsBasedCachingEnabled:!1},GB={async sendGetRequestAsync(){throw X(ye)},async sendPostRequestAsync(){throw X(ye)}},XB={sku:F.SKU,version:Gm,cpu:F.EMPTY_STRING,os:F.EMPTY_STRING},YB={clientSecret:F.EMPTY_STRING,clientAssertion:void 0},ZB={azureCloudInstance:Xm.None,tenant:`${F.DEFAULT_COMMON_TENANT}`},QB={application:{appName:"",appVersion:""}};function JB({authOptions:t,systemOptions:e,loggerOptions:r,cacheOptions:o,storageInterface:n,networkInterface:i,cryptoInterface:a,clientCredentials:s,libraryInfo:l,telemetry:c,serverTelemetryManager:u,persistencePlugin:d,serializableCache:f}){const h={...WB,...r};return{authOptions:eI(t),systemOptions:{...zS,...e},loggerOptions:h,cacheOptions:{...VB,...o},storageInterface:n||new $B(t.clientId,Gu,new qn(h)),networkInterface:i||GB,cryptoInterface:a||Gu,clientCredentials:s||YB,libraryInfo:{...XB,...l},telemetry:{...QB,...c},serverTelemetryManager:u||null,persistencePlugin:d||null,serializableCache:f||null}}function eI(t){return{clientCapabilities:[],azureCloudOptions:ZB,skipAuthorityMetadataCache:!1,...t}}function Sg(t){return t.authOptions.authority.options.protocolMode===Xo.OIDC}/*! @azure/msal-common v14.6.1 2024-01-23 */class Ln extends We{constructor(e,r,o){super(e,r,o),this.name="ServerError",Object.setPrototypeOf(this,Ln.prototype)}}/*! @azure/msal-common v14.6.1 2024-01-23 */class wo{static generateThrottlingStorageKey(e){return`${Ys.THROTTLING_PREFIX}.${JSON.stringify(e)}`}static preProcess(e,r){const o=wo.generateThrottlingStorageKey(r),n=e.getThrottlingCache(o);if(n){if(n.throttleTime=500&&e.status<600}static checkResponseForRetryAfter(e){return e.headers?e.headers.hasOwnProperty(So.RETRY_AFTER)&&(e.status<200||e.status>=300):!1}static calculateThrottleTime(e){const r=e<=0?0:e,o=Date.now()/1e3;return Math.floor(Math.min(o+(r||Ys.DEFAULT_THROTTLE_TIME_SECONDS),o+Ys.DEFAULT_MAX_THROTTLE_TIME_SECONDS)*1e3)}static removeThrottle(e,r,o,n){const i={clientId:r,authority:o.authority,scopes:o.scopes,homeAccountIdentifier:n,claims:o.claims,authenticationScheme:o.authenticationScheme,resourceRequestMethod:o.resourceRequestMethod,resourceRequestUri:o.resourceRequestUri,shrClaims:o.shrClaims,sshKid:o.sshKid},a=this.generateThrottlingStorageKey(i);e.removeItem(a)}}/*! @azure/msal-common v14.6.1 2024-01-23 */class tI{constructor(e,r){this.networkClient=e,this.cacheManager=r}async sendPostRequest(e,r,o){wo.preProcess(this.cacheManager,e);let n;try{n=await this.networkClient.sendPostRequestAsync(r,o)}catch(i){throw i instanceof We?i:X(Qk)}return wo.postProcess(this.cacheManager,e,n),n}}/*! @azure/msal-common v14.6.1 2024-01-23 */const vr={HOME_ACCOUNT_ID:"home_account_id",UPN:"UPN"};/*! @azure/msal-common v14.6.1 2024-01-23 */const Ua="client_id",rI="redirect_uri",A0="response_type",oI="response_mode",nI="grant_type",iI="claims",aI="scope",sI="refresh_token",lI="state",cI="nonce",uI="prompt",dI="code",fI="code_challenge",hI="code_challenge_method",gI="code_verifier",pI="client-request-id",mI="x-client-SKU",vI="x-client-VER",bI="x-client-OS",yI="x-client-CPU",wI="x-client-current-telemetry",kI="x-client-last-telemetry",SI="x-ms-lib-capability",_I="x-app-name",xI="x-app-ver",CI="post_logout_redirect_uri",TI="id_token_hint",EI="device_code",BI="client_secret",II="client_assertion",RI="client_assertion_type",N0="token_type",P0="req_cnf",AI="assertion",NI="requested_token_use",z0="return_spa_code",PI="nativebroker",zI="logout_hint",MI="sid",OI="login_hint",jI="domain_hint";/*! @azure/msal-common v14.6.1 2024-01-23 */class ni{static validateRedirectUri(e){if(!e)throw Ne(mS)}static validatePrompt(e){const r=[];for(const o in $t)r.push($t[o]);if(r.indexOf(e)<0)throw Ne(wS)}static validateClaims(e){try{JSON.parse(e)}catch{throw Ne(Zm)}}static validateCodeChallengeParams(e,r){if(!e||!r)throw Ne(Qm);this.validateCodeChallengeMethod(r)}static validateCodeChallengeMethod(e){if([y0.PLAIN,y0.S256].indexOf(e)<0)throw Ne(_S)}static sanitizeEQParams(e,r){return e?(r.forEach((o,n)=>{e[n]&&delete e[n]}),Object.fromEntries(Object.entries(e).filter(o=>o[1]!==""))):{}}}/*! @azure/msal-common v14.6.1 2024-01-23 */class Zs{constructor(){this.parameters=new Map}addResponseTypeCode(){this.parameters.set(A0,encodeURIComponent(F.CODE_RESPONSE_TYPE))}addResponseTypeForTokenAndIdToken(){this.parameters.set(A0,encodeURIComponent(`${F.TOKEN_RESPONSE_TYPE} ${F.ID_TOKEN_RESPONSE_TYPE}`))}addResponseMode(e){this.parameters.set(oI,encodeURIComponent(e||dB.QUERY))}addNativeBroker(){this.parameters.set(PI,encodeURIComponent("1"))}addScopes(e,r=!0,o=Jl){r&&!o.includes("openid")&&!e.includes("openid")&&o.push("openid");const n=r?[...e||[],...o]:e||[],i=new ht(n);this.parameters.set(aI,encodeURIComponent(i.printScopes()))}addClientId(e){this.parameters.set(Ua,encodeURIComponent(e))}addRedirectUri(e){ni.validateRedirectUri(e),this.parameters.set(rI,encodeURIComponent(e))}addPostLogoutRedirectUri(e){ni.validateRedirectUri(e),this.parameters.set(CI,encodeURIComponent(e))}addIdTokenHint(e){this.parameters.set(TI,encodeURIComponent(e))}addDomainHint(e){this.parameters.set(jI,encodeURIComponent(e))}addLoginHint(e){this.parameters.set(OI,encodeURIComponent(e))}addCcsUpn(e){this.parameters.set(So.CCS_HEADER,encodeURIComponent(`UPN:${e}`))}addCcsOid(e){this.parameters.set(So.CCS_HEADER,encodeURIComponent(`Oid:${e.uid}@${e.utid}`))}addSid(e){this.parameters.set(MI,encodeURIComponent(e))}addClaims(e,r){const o=this.addClientCapabilitiesToClaims(e,r);ni.validateClaims(o),this.parameters.set(iI,encodeURIComponent(o))}addCorrelationId(e){this.parameters.set(pI,encodeURIComponent(e))}addLibraryInfo(e){this.parameters.set(mI,e.sku),this.parameters.set(vI,e.version),e.os&&this.parameters.set(bI,e.os),e.cpu&&this.parameters.set(yI,e.cpu)}addApplicationTelemetry(e){e?.appName&&this.parameters.set(_I,e.appName),e?.appVersion&&this.parameters.set(xI,e.appVersion)}addPrompt(e){ni.validatePrompt(e),this.parameters.set(`${uI}`,encodeURIComponent(e))}addState(e){e&&this.parameters.set(lI,encodeURIComponent(e))}addNonce(e){this.parameters.set(cI,encodeURIComponent(e))}addCodeChallengeParams(e,r){if(ni.validateCodeChallengeParams(e,r),e&&r)this.parameters.set(fI,encodeURIComponent(e)),this.parameters.set(hI,encodeURIComponent(r));else throw Ne(Qm)}addAuthorizationCode(e){this.parameters.set(dI,encodeURIComponent(e))}addDeviceCode(e){this.parameters.set(EI,encodeURIComponent(e))}addRefreshToken(e){this.parameters.set(sI,encodeURIComponent(e))}addCodeVerifier(e){this.parameters.set(gI,encodeURIComponent(e))}addClientSecret(e){this.parameters.set(BI,encodeURIComponent(e))}addClientAssertion(e){e&&this.parameters.set(II,encodeURIComponent(e))}addClientAssertionType(e){e&&this.parameters.set(RI,encodeURIComponent(e))}addOboAssertion(e){this.parameters.set(AI,encodeURIComponent(e))}addRequestTokenUse(e){this.parameters.set(NI,encodeURIComponent(e))}addGrantType(e){this.parameters.set(nI,encodeURIComponent(e))}addClientInfo(){this.parameters.set(fB,"1")}addExtraQueryParameters(e){const r=ni.sanitizeEQParams(e,this.parameters);Object.keys(r).forEach(o=>{this.parameters.set(o,e[o])})}addClientCapabilitiesToClaims(e,r){let o;if(!e)o={};else try{o=JSON.parse(e)}catch{throw Ne(Zm)}return r&&r.length>0&&(o.hasOwnProperty(xc.ACCESS_TOKEN)||(o[xc.ACCESS_TOKEN]={}),o[xc.ACCESS_TOKEN][xc.XMS_CC]={values:r}),JSON.stringify(o)}addUsername(e){this.parameters.set(k0.username,encodeURIComponent(e))}addPassword(e){this.parameters.set(k0.password,encodeURIComponent(e))}addPopToken(e){e&&(this.parameters.set(N0,Ie.POP),this.parameters.set(P0,encodeURIComponent(e)))}addSshJwk(e){e&&(this.parameters.set(N0,Ie.SSH),this.parameters.set(P0,encodeURIComponent(e)))}addServerTelemetry(e){this.parameters.set(wI,e.generateCurrentRequestHeaderValue()),this.parameters.set(kI,e.generateLastRequestHeaderValue())}addThrottling(){this.parameters.set(SI,Ys.X_MS_LIB_CAPABILITY_VALUE)}addLogoutHint(e){this.parameters.set(zI,encodeURIComponent(e))}createQueryString(){const e=new Array;return this.parameters.forEach((r,o)=>{e.push(`${o}=${r}`)}),e.join("&")}}/*! @azure/msal-common v14.6.1 2024-01-23 */function DI(t){return t.hasOwnProperty("authorization_endpoint")&&t.hasOwnProperty("token_endpoint")&&t.hasOwnProperty("issuer")&&t.hasOwnProperty("jwks_uri")}/*! @azure/msal-common v14.6.1 2024-01-23 */function FI(t){return t.hasOwnProperty("tenant_discovery_endpoint")&&t.hasOwnProperty("metadata")}/*! @azure/msal-common v14.6.1 2024-01-23 */function qI(t){return t.hasOwnProperty("error")&&t.hasOwnProperty("error_description")}/*! @azure/msal-common v14.6.1 2024-01-23 */const N={AcquireTokenByCode:"acquireTokenByCode",AcquireTokenByRefreshToken:"acquireTokenByRefreshToken",AcquireTokenSilent:"acquireTokenSilent",AcquireTokenSilentAsync:"acquireTokenSilentAsync",AcquireTokenPopup:"acquireTokenPopup",CryptoOptsGetPublicKeyThumbprint:"cryptoOptsGetPublicKeyThumbprint",CryptoOptsSignJwt:"cryptoOptsSignJwt",SilentCacheClientAcquireToken:"silentCacheClientAcquireToken",SilentIframeClientAcquireToken:"silentIframeClientAcquireToken",SilentRefreshClientAcquireToken:"silentRefreshClientAcquireToken",SsoSilent:"ssoSilent",StandardInteractionClientGetDiscoveredAuthority:"standardInteractionClientGetDiscoveredAuthority",FetchAccountIdWithNativeBroker:"fetchAccountIdWithNativeBroker",NativeInteractionClientAcquireToken:"nativeInteractionClientAcquireToken",BaseClientCreateTokenRequestHeaders:"baseClientCreateTokenRequestHeaders",RefreshTokenClientExecutePostToTokenEndpoint:"refreshTokenClientExecutePostToTokenEndpoint",AuthorizationCodeClientExecutePostToTokenEndpoint:"authorizationCodeClientExecutePostToTokenEndpoint",BrokerHandhshake:"brokerHandshake",AcquireTokenByRefreshTokenInBroker:"acquireTokenByRefreshTokenInBroker",AcquireTokenByBroker:"acquireTokenByBroker",RefreshTokenClientExecuteTokenRequest:"refreshTokenClientExecuteTokenRequest",RefreshTokenClientAcquireToken:"refreshTokenClientAcquireToken",RefreshTokenClientAcquireTokenWithCachedRefreshToken:"refreshTokenClientAcquireTokenWithCachedRefreshToken",RefreshTokenClientAcquireTokenByRefreshToken:"refreshTokenClientAcquireTokenByRefreshToken",RefreshTokenClientCreateTokenRequestBody:"refreshTokenClientCreateTokenRequestBody",AcquireTokenFromCache:"acquireTokenFromCache",SilentFlowClientAcquireCachedToken:"silentFlowClientAcquireCachedToken",SilentFlowClientGenerateResultFromCacheRecord:"silentFlowClientGenerateResultFromCacheRecord",AcquireTokenBySilentIframe:"acquireTokenBySilentIframe",InitializeBaseRequest:"initializeBaseRequest",InitializeSilentRequest:"initializeSilentRequest",InitializeClientApplication:"initializeClientApplication",SilentIframeClientTokenHelper:"silentIframeClientTokenHelper",SilentHandlerInitiateAuthRequest:"silentHandlerInitiateAuthRequest",SilentHandlerMonitorIframeForHash:"silentHandlerMonitorIframeForHash",SilentHandlerLoadFrame:"silentHandlerLoadFrame",SilentHandlerLoadFrameSync:"silentHandlerLoadFrameSync",StandardInteractionClientCreateAuthCodeClient:"standardInteractionClientCreateAuthCodeClient",StandardInteractionClientGetClientConfiguration:"standardInteractionClientGetClientConfiguration",StandardInteractionClientInitializeAuthorizationRequest:"standardInteractionClientInitializeAuthorizationRequest",StandardInteractionClientInitializeAuthorizationCodeRequest:"standardInteractionClientInitializeAuthorizationCodeRequest",GetAuthCodeUrl:"getAuthCodeUrl",HandleCodeResponseFromServer:"handleCodeResponseFromServer",HandleCodeResponse:"handleCodeResponse",UpdateTokenEndpointAuthority:"updateTokenEndpointAuthority",AuthClientAcquireToken:"authClientAcquireToken",AuthClientExecuteTokenRequest:"authClientExecuteTokenRequest",AuthClientCreateTokenRequestBody:"authClientCreateTokenRequestBody",AuthClientCreateQueryString:"authClientCreateQueryString",PopTokenGenerateCnf:"popTokenGenerateCnf",PopTokenGenerateKid:"popTokenGenerateKid",HandleServerTokenResponse:"handleServerTokenResponse",DeserializeResponse:"deserializeResponse",AuthorityFactoryCreateDiscoveredInstance:"authorityFactoryCreateDiscoveredInstance",AuthorityResolveEndpointsAsync:"authorityResolveEndpointsAsync",AuthorityResolveEndpointsFromLocalSources:"authorityResolveEndpointsFromLocalSources",AuthorityGetCloudDiscoveryMetadataFromNetwork:"authorityGetCloudDiscoveryMetadataFromNetwork",AuthorityUpdateCloudDiscoveryMetadata:"authorityUpdateCloudDiscoveryMetadata",AuthorityGetEndpointMetadataFromNetwork:"authorityGetEndpointMetadataFromNetwork",AuthorityUpdateEndpointMetadata:"authorityUpdateEndpointMetadata",AuthorityUpdateMetadataWithRegionalInformation:"authorityUpdateMetadataWithRegionalInformation",RegionDiscoveryDetectRegion:"regionDiscoveryDetectRegion",RegionDiscoveryGetRegionFromIMDS:"regionDiscoveryGetRegionFromIMDS",RegionDiscoveryGetCurrentVersion:"regionDiscoveryGetCurrentVersion",AcquireTokenByCodeAsync:"acquireTokenByCodeAsync",GetEndpointMetadataFromNetwork:"getEndpointMetadataFromNetwork",GetCloudDiscoveryMetadataFromNetworkMeasurement:"getCloudDiscoveryMetadataFromNetworkMeasurement",HandleRedirectPromiseMeasurement:"handleRedirectPromiseMeasurement",UpdateCloudDiscoveryMetadataMeasurement:"updateCloudDiscoveryMetadataMeasurement",UsernamePasswordClientAcquireToken:"usernamePasswordClientAcquireToken",NativeMessageHandlerHandshake:"nativeMessageHandlerHandshake",NativeGenerateAuthResult:"nativeGenerateAuthResult",RemoveHiddenIframe:"removeHiddenIframe",ClearTokensAndKeysWithClaims:"clearTokensAndKeysWithClaims",CacheManagerGetRefreshToken:"cacheManagerGetRefreshToken",GeneratePkceCodes:"generatePkceCodes",GenerateCodeVerifier:"generateCodeVerifier",GenerateCodeChallengeFromVerifier:"generateCodeChallengeFromVerifier",Sha256Digest:"sha256Digest",GetRandomValues:"getRandomValues"},LI={NotStarted:0,InProgress:1,Completed:2};/*! @azure/msal-common v14.6.1 2024-01-23 */const Ui=(t,e,r,o,n)=>(...i)=>{r.trace(`Executing function ${e}`);const a=o?.startMeasurement(e,n);try{const s=t(...i);return a?.end({success:!0}),r.trace(`Returning result from ${e}`),s}catch(s){r.trace(`Error occurred in ${e}`);try{r.trace(JSON.stringify(s))}catch{r.trace("Unable to print error message.")}throw a?.end({success:!1}),s}},ee=(t,e,r,o,n)=>(...i)=>{r.trace(`Executing function ${e}`);const a=o?.startMeasurement(e,n);return o?.setPreQueueTime(e,n),t(...i).then(s=>(r.trace(`Returning result from ${e}`),a?.end({success:!0}),s)).catch(s=>{r.trace(`Error occurred in ${e}`);try{r.trace(JSON.stringify(s))}catch{r.trace("Unable to print error message.")}throw a?.end({success:!1}),s})};/*! @azure/msal-common v14.6.1 2024-01-23 */class Qd{constructor(e,r,o,n){this.networkInterface=e,this.logger=r,this.performanceClient=o,this.correlationId=n}async detectRegion(e,r){this.performanceClient?.addQueueMeasurement(N.RegionDiscoveryDetectRegion,this.correlationId);let o=e;if(o)r.region_source=Yi.ENVIRONMENT_VARIABLE;else{const n=Qd.IMDS_OPTIONS;try{const i=await ee(this.getRegionFromIMDS.bind(this),N.RegionDiscoveryGetRegionFromIMDS,this.logger,this.performanceClient,this.correlationId)(F.IMDS_VERSION,n);if(i.status===Tc.httpSuccess&&(o=i.body,r.region_source=Yi.IMDS),i.status===Tc.httpBadRequest){const a=await ee(this.getCurrentVersion.bind(this),N.RegionDiscoveryGetCurrentVersion,this.logger,this.performanceClient,this.correlationId)(n);if(!a)return r.region_source=Yi.FAILED_AUTO_DETECTION,null;const s=await ee(this.getRegionFromIMDS.bind(this),N.RegionDiscoveryGetRegionFromIMDS,this.logger,this.performanceClient,this.correlationId)(a,n);s.status===Tc.httpSuccess&&(o=s.body,r.region_source=Yi.IMDS)}}catch{return r.region_source=Yi.FAILED_AUTO_DETECTION,null}}return o||(r.region_source=Yi.FAILED_AUTO_DETECTION),o||null}async getRegionFromIMDS(e,r){return this.performanceClient?.addQueueMeasurement(N.RegionDiscoveryGetRegionFromIMDS,this.correlationId),this.networkInterface.sendGetRequestAsync(`${F.IMDS_ENDPOINT}?api-version=${e}&format=text`,r,F.IMDS_TIMEOUT)}async getCurrentVersion(e){this.performanceClient?.addQueueMeasurement(N.RegionDiscoveryGetCurrentVersion,this.correlationId);try{const r=await this.networkInterface.sendGetRequestAsync(`${F.IMDS_ENDPOINT}?format=json`,e);return r.status===Tc.httpBadRequest&&r.body&&r.body["newest-versions"]&&r.body["newest-versions"].length>0?r.body["newest-versions"][0]:null}catch{return null}}}Qd.IMDS_OPTIONS={headers:{Metadata:"true"}};/*! @azure/msal-common v14.6.1 2024-01-23 */class qt{constructor(e,r,o,n,i,a,s){this.canonicalAuthority=e,this._canonicalAuthority.validateAsUri(),this.networkInterface=r,this.cacheManager=o,this.authorityOptions=n,this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.logger=i,this.performanceClient=s,this.correlationId=a,this.regionDiscovery=new Qd(r,this.logger,this.performanceClient,this.correlationId)}getAuthorityType(e){if(e.HostNameAndPort.endsWith(F.CIAM_AUTH_URL))return Vr.Ciam;const r=e.PathSegments;if(r.length)switch(r[0].toLowerCase()){case F.ADFS:return Vr.Adfs;case F.DSTS:return Vr.Dsts}return Vr.Default}get authorityType(){return this.getAuthorityType(this.canonicalAuthorityUrlComponents)}get protocolMode(){return this.authorityOptions.protocolMode}get options(){return this.authorityOptions}get canonicalAuthority(){return this._canonicalAuthority.urlString}set canonicalAuthority(e){this._canonicalAuthority=new xe(e),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null}get canonicalAuthorityUrlComponents(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents}get hostnameAndPort(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()}get tenant(){return this.canonicalAuthorityUrlComponents.PathSegments[0]}get authorizationEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.authorization_endpoint);throw X(Do)}get tokenEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint);throw X(Do)}get deviceCodeEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));throw X(Do)}get endSessionEndpoint(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw X(fS);return this.replacePath(this.metadata.end_session_endpoint)}else throw X(Do)}get selfSignedJwtAudience(){if(this.discoveryComplete())return this.replacePath(this.metadata.issuer);throw X(Do)}get jwksUri(){if(this.discoveryComplete())return this.replacePath(this.metadata.jwks_uri);throw X(Do)}canReplaceTenant(e){return e.PathSegments.length===1&&!qt.reservedTenantDomains.has(e.PathSegments[0])&&this.getAuthorityType(e)===Vr.Default&&this.protocolMode===Xo.AAD}replaceTenant(e){return e.replace(/{tenant}|{tenantid}/g,this.tenant)}replacePath(e){let r=e;const n=new xe(this.metadata.canonical_authority).getUrlComponents(),i=n.PathSegments;return this.canonicalAuthorityUrlComponents.PathSegments.forEach((s,l)=>{let c=i[l];if(l===0&&this.canReplaceTenant(n)){const u=new xe(this.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];c!==u&&(this.logger.verbose(`Replacing tenant domain name ${c} with id ${u}`),c=u)}s!==c&&(r=r.replace(`/${c}/`,`/${s}/`))}),this.replaceTenant(r)}get defaultOpenIdConfigurationEndpoint(){const e=this.hostnameAndPort;return this.canonicalAuthority.endsWith("v2.0/")||this.authorityType===Vr.Adfs||this.protocolMode!==Xo.AAD&&!this.isAliasOfKnownMicrosoftAuthority(e)?`${this.canonicalAuthority}.well-known/openid-configuration`:`${this.canonicalAuthority}v2.0/.well-known/openid-configuration`}discoveryComplete(){return!!this.metadata}async resolveEndpointsAsync(){this.performanceClient?.addQueueMeasurement(N.AuthorityResolveEndpointsAsync,this.correlationId);const e=this.getCurrentMetadataEntity(),r=await ee(this.updateCloudDiscoveryMetadata.bind(this),N.AuthorityUpdateCloudDiscoveryMetadata,this.logger,this.performanceClient,this.correlationId)(e);this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,e.preferred_network);const o=await ee(this.updateEndpointMetadata.bind(this),N.AuthorityUpdateEndpointMetadata,this.logger,this.performanceClient,this.correlationId)(e);this.updateCachedMetadata(e,r,{source:o}),this.performanceClient?.addFields({cloudDiscoverySource:r,authorityEndpointSource:o},this.correlationId)}getCurrentMetadataEntity(){let e=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort);return e||(e={aliases:[],preferred_cache:this.hostnameAndPort,preferred_network:this.hostnameAndPort,canonical_authority:this.canonicalAuthority,authorization_endpoint:"",token_endpoint:"",end_session_endpoint:"",issuer:"",aliasesFromNetwork:!1,endpointsFromNetwork:!1,expiresAt:E0(),jwks_uri:""}),e}updateCachedMetadata(e,r,o){r!==hr.CACHE&&o?.source!==hr.CACHE&&(e.expiresAt=E0(),e.canonical_authority=this.canonicalAuthority);const n=this.cacheManager.generateAuthorityMetadataCacheKey(e.preferred_cache);this.cacheManager.setAuthorityMetadata(n,e),this.metadata=e}async updateEndpointMetadata(e){this.performanceClient?.addQueueMeasurement(N.AuthorityUpdateEndpointMetadata,this.correlationId);const r=this.updateEndpointMetadataFromLocalSources(e);if(r){if(r.source===hr.HARDCODED_VALUES&&this.authorityOptions.azureRegionConfiguration?.azureRegion&&r.metadata){const n=await ee(this.updateMetadataWithRegionalInformation.bind(this),N.AuthorityUpdateMetadataWithRegionalInformation,this.logger,this.performanceClient,this.correlationId)(r.metadata);Ec(e,n,!1),e.canonical_authority=this.canonicalAuthority}return r.source}let o=await ee(this.getEndpointMetadataFromNetwork.bind(this),N.AuthorityGetEndpointMetadataFromNetwork,this.logger,this.performanceClient,this.correlationId)();if(o)return this.authorityOptions.azureRegionConfiguration?.azureRegion&&(o=await ee(this.updateMetadataWithRegionalInformation.bind(this),N.AuthorityUpdateMetadataWithRegionalInformation,this.logger,this.performanceClient,this.correlationId)(o)),Ec(e,o,!0),hr.NETWORK;throw X(Jk,this.defaultOpenIdConfigurationEndpoint)}updateEndpointMetadataFromLocalSources(e){this.logger.verbose("Attempting to get endpoint metadata from authority configuration");const r=this.getEndpointMetadataFromConfig();if(r)return this.logger.verbose("Found endpoint metadata in authority configuration"),Ec(e,r,!1),{source:hr.CONFIG};if(this.logger.verbose("Did not find endpoint metadata in the config... Attempting to get endpoint metadata from the hardcoded values."),this.authorityOptions.skipAuthorityMetadataCache)this.logger.verbose("Skipping hardcoded metadata cache since skipAuthorityMetadataCache is set to true. Attempting to get endpoint metadata from the network metadata cache.");else{const n=this.getEndpointMetadataFromHardcodedValues();if(n)return Ec(e,n,!1),{source:hr.HARDCODED_VALUES,metadata:n};this.logger.verbose("Did not find endpoint metadata in hardcoded values... Attempting to get endpoint metadata from the network metadata cache.")}const o=B0(e);return this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!o?(this.logger.verbose("Found endpoint metadata in the cache."),{source:hr.CACHE}):(o&&this.logger.verbose("The metadata entity is expired."),null)}isAuthoritySameType(e){return new xe(e.canonical_authority).getUrlComponents().PathSegments.length===this.canonicalAuthorityUrlComponents.PathSegments.length}getEndpointMetadataFromConfig(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch{throw Ne(xS)}return null}async getEndpointMetadataFromNetwork(){this.performanceClient?.addQueueMeasurement(N.AuthorityGetEndpointMetadataFromNetwork,this.correlationId);const e={},r=this.defaultOpenIdConfigurationEndpoint;this.logger.verbose(`Authority.getEndpointMetadataFromNetwork: attempting to retrieve OAuth endpoints from ${r}`);try{const o=await this.networkInterface.sendGetRequestAsync(r,e);return DI(o.body)?o.body:(this.logger.verbose("Authority.getEndpointMetadataFromNetwork: could not parse response as OpenID configuration"),null)}catch(o){return this.logger.verbose(`Authority.getEndpointMetadataFromNetwork: ${o}`),null}}getEndpointMetadataFromHardcodedValues(){return this.hostnameAndPort in I0?I0[this.hostnameAndPort]:null}async updateMetadataWithRegionalInformation(e){this.performanceClient?.addQueueMeasurement(N.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId);const r=this.authorityOptions.azureRegionConfiguration?.azureRegion;if(r){if(r!==F.AZURE_REGION_AUTO_DISCOVER_FLAG)return this.regionDiscoveryMetadata.region_outcome=Yf.CONFIGURED_NO_AUTO_DETECTION,this.regionDiscoveryMetadata.region_used=r,qt.replaceWithRegionalInformation(e,r);const o=await ee(this.regionDiscovery.detectRegion.bind(this.regionDiscovery),N.RegionDiscoveryDetectRegion,this.logger,this.performanceClient,this.correlationId)(this.authorityOptions.azureRegionConfiguration?.environmentRegion,this.regionDiscoveryMetadata);if(o)return this.regionDiscoveryMetadata.region_outcome=Yf.AUTO_DETECTION_REQUESTED_SUCCESSFUL,this.regionDiscoveryMetadata.region_used=o,qt.replaceWithRegionalInformation(e,o);this.regionDiscoveryMetadata.region_outcome=Yf.AUTO_DETECTION_REQUESTED_FAILED}return e}async updateCloudDiscoveryMetadata(e){this.performanceClient?.addQueueMeasurement(N.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId);const r=this.updateCloudDiscoveryMetadataFromLocalSources(e);if(r)return r;const o=await ee(this.getCloudDiscoveryMetadataFromNetwork.bind(this),N.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.logger,this.performanceClient,this.correlationId)();if(o)return Zf(e,o,!0),hr.NETWORK;throw Ne(CS)}updateCloudDiscoveryMetadataFromLocalSources(e){this.logger.verbose("Attempting to get cloud discovery metadata from authority configuration"),this.logger.verbosePii(`Known Authorities: ${this.authorityOptions.knownAuthorities||F.NOT_APPLICABLE}`),this.logger.verbosePii(`Authority Metadata: ${this.authorityOptions.authorityMetadata||F.NOT_APPLICABLE}`),this.logger.verbosePii(`Canonical Authority: ${e.canonical_authority||F.NOT_APPLICABLE}`);const r=this.getCloudDiscoveryMetadataFromConfig();if(r)return this.logger.verbose("Found cloud discovery metadata in authority configuration"),Zf(e,r,!1),hr.CONFIG;if(this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the hardcoded values."),this.options.skipAuthorityMetadataCache)this.logger.verbose("Skipping hardcoded cloud discovery metadata cache since skipAuthorityMetadataCache is set to true. Attempting to get cloud discovery metadata from the network metadata cache.");else{const n=UB(this.hostnameAndPort);if(n)return this.logger.verbose("Found cloud discovery metadata from hardcoded values."),Zf(e,n,!1),hr.HARDCODED_VALUES;this.logger.verbose("Did not find cloud discovery metadata in hardcoded values... Attempting to get cloud discovery metadata from the network metadata cache.")}const o=B0(e);return this.isAuthoritySameType(e)&&e.aliasesFromNetwork&&!o?(this.logger.verbose("Found cloud discovery metadata in the cache."),hr.CACHE):(o&&this.logger.verbose("The metadata entity is expired."),null)}getCloudDiscoveryMetadataFromConfig(){if(this.authorityType===Vr.Ciam)return this.logger.verbose("CIAM authorities do not support cloud discovery metadata, generate the aliases from authority host."),qt.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);if(this.authorityOptions.cloudDiscoveryMetadata){this.logger.verbose("The cloud discovery metadata has been provided as a network response, in the config.");try{this.logger.verbose("Attempting to parse the cloud discovery metadata.");const e=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),r=Zu(e.metadata,this.hostnameAndPort);if(this.logger.verbose("Parsed the cloud discovery metadata."),r)return this.logger.verbose("There is returnable metadata attached to the parsed cloud discovery metadata."),r;this.logger.verbose("There is no metadata attached to the parsed cloud discovery metadata.")}catch{throw this.logger.verbose("Unable to parse the cloud discovery metadata. Throwing Invalid Cloud Discovery Metadata Error."),Ne(Jm)}}return this.isInKnownAuthorities()?(this.logger.verbose("The host is included in knownAuthorities. Creating new cloud discovery metadata from the host."),qt.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)):null}async getCloudDiscoveryMetadataFromNetwork(){this.performanceClient?.addQueueMeasurement(N.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId);const e=`${F.AAD_INSTANCE_DISCOVERY_ENDPT}${this.canonicalAuthority}oauth2/v2.0/authorize`,r={};let o=null;try{const n=await this.networkInterface.sendGetRequestAsync(e,r);let i,a;if(FI(n.body))i=n.body,a=i.metadata,this.logger.verbosePii(`tenant_discovery_endpoint is: ${i.tenant_discovery_endpoint}`);else if(qI(n.body)){if(this.logger.warning(`A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: ${n.status}`),i=n.body,i.error===F.INVALID_INSTANCE)return this.logger.error("The CloudInstanceDiscoveryErrorResponse error is invalid_instance."),null;this.logger.warning(`The CloudInstanceDiscoveryErrorResponse error is ${i.error}`),this.logger.warning(`The CloudInstanceDiscoveryErrorResponse error description is ${i.error_description}`),this.logger.warning("Setting the value of the CloudInstanceDiscoveryMetadata (returned from the network) to []"),a=[]}else return this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse"),null;this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request."),o=Zu(a,this.hostnameAndPort)}catch(n){if(n instanceof We)this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata. -Error: ${n.errorCode} -Error Description: ${n.errorMessage}`);else{const i=n;this.logger.error(`A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata. -Error: ${i.name} -Error Description: ${i.message}`)}return null}return o||(this.logger.warning("The developer's authority was not found within the CloudInstanceDiscoveryMetadata returned from the network request."),this.logger.verbose("Creating custom Authority for custom domain scenario."),o=qt.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),o}isInKnownAuthorities(){return this.authorityOptions.knownAuthorities.filter(r=>r&&xe.getDomainFromUrl(r).toLowerCase()===this.hostnameAndPort).length>0}static generateAuthority(e,r){let o;if(r&&r.azureCloudInstance!==Xm.None){const n=r.tenant?r.tenant:F.DEFAULT_COMMON_TENANT;o=`${r.azureCloudInstance}/${n}/`}return o||e}static createCloudDiscoveryMetadataFromHost(e){return{preferred_network:e,preferred_cache:e,aliases:[e]}}getPreferredCache(){if(this.discoveryComplete())return this.metadata.preferred_cache;throw X(Do)}isAlias(e){return this.metadata.aliases.indexOf(e)>-1}isAliasOfKnownMicrosoftAuthority(e){return PS.has(e)}static isPublicCloudAuthority(e){return F.KNOWN_PUBLIC_CLOUDS.indexOf(e)>=0}static buildRegionalAuthorityString(e,r,o){const n=new xe(e);n.validateAsUri();const i=n.getUrlComponents();let a=`${r}.${i.HostNameAndPort}`;this.isPublicCloudAuthority(i.HostNameAndPort)&&(a=`${r}.${F.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX}`);const s=xe.constructAuthorityUriFromObject({...n.getUrlComponents(),HostNameAndPort:a}).urlString;return o?`${s}?${o}`:s}static replaceWithRegionalInformation(e,r){const o={...e};return o.authorization_endpoint=qt.buildRegionalAuthorityString(o.authorization_endpoint,r),o.token_endpoint=qt.buildRegionalAuthorityString(o.token_endpoint,r),o.end_session_endpoint&&(o.end_session_endpoint=qt.buildRegionalAuthorityString(o.end_session_endpoint,r)),o}static transformCIAMAuthority(e){let r=e;const n=new xe(e).getUrlComponents();if(n.PathSegments.length===0&&n.HostNameAndPort.endsWith(F.CIAM_AUTH_URL)){const i=n.HostNameAndPort.split(".")[0];r=`${r}${i}${F.AAD_TENANT_DOMAIN_SUFFIX}`}return r}}qt.reservedTenantDomains=new Set(["{tenant}","{tenantid}",Rn.COMMON,Rn.CONSUMERS,Rn.ORGANIZATIONS]);function HI(t){const o=new xe(t).getUrlComponents().PathSegments.slice(-1)[0].toLowerCase();switch(o){case Rn.COMMON:case Rn.ORGANIZATIONS:case Rn.CONSUMERS:return;default:return o}}function MS(t){return t.endsWith(F.FORWARD_SLASH)?t:`${t}${F.FORWARD_SLASH}`}function UI(t){const e=t.cloudDiscoveryMetadata;let r;if(e)try{r=JSON.parse(e)}catch{throw Ne(Jm)}return{canonicalAuthority:t.authority?MS(t.authority):void 0,knownAuthorities:t.knownAuthorities,cloudDiscoveryMetadata:r}}/*! @azure/msal-common v14.6.1 2024-01-23 */async function Jd(t,e,r,o,n,i,a){a?.addQueueMeasurement(N.AuthorityFactoryCreateDiscoveredInstance,i);const s=qt.transformCIAMAuthority(MS(t)),l=new qt(s,e,r,o,n,i,a);try{return await ee(l.resolveEndpointsAsync.bind(l),N.AuthorityResolveEndpointsAsync,n,a,i)(),l}catch{throw X(Do)}}const $I=Object.freeze(Object.defineProperty({__proto__:null,createDiscoveredInstance:Jd},Symbol.toStringTag,{value:"Module"}));/*! @azure/msal-common v14.6.1 2024-01-23 */class nv{constructor(e,r){this.config=JB(e),this.logger=new qn(this.config.loggerOptions,hS,Gm),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.networkManager=new tI(this.networkClient,this.cacheManager),this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=r}createTokenRequestHeaders(e){const r={};if(r[So.CONTENT_TYPE]=F.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&e)switch(e.type){case vr.HOME_ACCOUNT_ID:try{const o=fa(e.credential);r[So.CCS_HEADER]=`Oid:${o.uid}@${o.utid}`}catch(o){this.logger.verbose("Could not parse home account ID for CCS Header: "+o)}break;case vr.UPN:r[So.CCS_HEADER]=`UPN: ${e.credential}`;break}return r}async executePostToTokenEndpoint(e,r,o,n,i,a){a&&this.performanceClient?.addQueueMeasurement(a,i);const s=await this.networkManager.sendPostRequest(n,e,{body:r,headers:o});return this.performanceClient?.addFields({refreshTokenSize:s.body.refresh_token?.length||0,httpVerToken:s.headers?.[So.X_MS_HTTP_VERSION]||""},i),this.config.serverTelemetryManager&&s.status<500&&s.status!==429&&this.config.serverTelemetryManager.clearTelemetryCache(),s}async updateAuthority(e,r){this.performanceClient?.addQueueMeasurement(N.UpdateTokenEndpointAuthority,r);const o=`https://${e}/${this.authority.tenant}/`,n=await Jd(o,this.networkClient,this.cacheManager,this.authority.options,this.logger,r,this.performanceClient);this.authority=n}createTokenQueryParameters(e){const r=new Zs;return e.tokenQueryParameters&&r.addExtraQueryParameters(e.tokenQueryParameters),r.createQueryString()}}/*! @azure/msal-common v14.6.1 2024-01-23 */const Qu="no_tokens_found",OS="native_account_unavailable",iv="refresh_token_expired",KI="interaction_required",WI="consent_required",VI="login_required",ef="bad_token";/*! @azure/msal-common v14.6.1 2024-01-23 */const M0=[KI,WI,VI,ef],GI=["message_only","additional_action","basic_action","user_password_expired","consent_required","bad_token"],XI={[Qu]:"No refresh token found in the cache. Please sign-in.",[OS]:"The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API.",[iv]:"Refresh token has expired.",[ef]:"Identity provider returned bad_token due to an expired or invalid refresh token. Please invoke an interactive API to resolve."};class ao extends We{constructor(e,r,o,n,i,a,s){super(e,r,o),Object.setPrototypeOf(this,ao.prototype),this.timestamp=n||F.EMPTY_STRING,this.traceId=i||F.EMPTY_STRING,this.correlationId=a||F.EMPTY_STRING,this.claims=s||F.EMPTY_STRING,this.name="InteractionRequiredAuthError"}}function O0(t,e,r){const o=!!t&&M0.indexOf(t)>-1,n=!!r&&GI.indexOf(r)>-1,i=!!e&&M0.some(a=>e.indexOf(a)>-1);return o||i||n}function _g(t){return new ao(t,XI[t])}/*! @azure/msal-common v14.6.1 2024-01-23 */class Ca{constructor(e,r,o,n,i){this.account=e||null,this.idToken=r||null,this.accessToken=o||null,this.refreshToken=n||null,this.appMetadata=i||null}}/*! @azure/msal-common v14.6.1 2024-01-23 */class ro{static setRequestState(e,r,o){const n=ro.generateLibraryState(e,o);return r?`${n}${F.RESOURCE_DELIM}${r}`:n}static generateLibraryState(e,r){if(!e)throw X(yg);const o={id:e.createNewGuid()};r&&(o.meta=r);const n=JSON.stringify(o);return e.base64Encode(n)}static parseRequestState(e,r){if(!e)throw X(yg);if(!r)throw X(La);try{const o=r.split(F.RESOURCE_DELIM),n=o[0],i=o.length>1?o.slice(1).join(F.RESOURCE_DELIM):F.EMPTY_STRING,a=e.base64Decode(n),s=JSON.parse(a);return{userRequestState:i||F.EMPTY_STRING,libraryState:s}}catch{throw X(La)}}}/*! @azure/msal-common v14.6.1 2024-01-23 */const YI={SW:"sw",UHW:"uhw"};class $a{constructor(e,r){this.cryptoUtils=e,this.performanceClient=r}async generateCnf(e,r){this.performanceClient?.addQueueMeasurement(N.PopTokenGenerateCnf,e.correlationId);const o=await ee(this.generateKid.bind(this),N.PopTokenGenerateCnf,r,this.performanceClient,e.correlationId)(e),n=this.cryptoUtils.base64Encode(JSON.stringify(o));return{kid:o.kid,reqCnfString:n,reqCnfHash:await this.cryptoUtils.hashString(n)}}async generateKid(e){return this.performanceClient?.addQueueMeasurement(N.PopTokenGenerateKid,e.correlationId),{kid:await this.cryptoUtils.getPublicKeyThumbprint(e),xms_ksl:YI.SW}}async signPopToken(e,r,o){return this.signPayload(e,r,o)}async signPayload(e,r,o,n){const{resourceRequestMethod:i,resourceRequestUri:a,shrClaims:s,shrNonce:l,shrOptions:c}=o,d=(a?new xe(a):void 0)?.getUrlComponents();return this.cryptoUtils.signJwt({at:e,ts:Zt.nowSeconds(),m:i?.toUpperCase(),u:d?.HostNameAndPort,nonce:l||this.cryptoUtils.createNewGuid(),p:d?.AbsolutePath,q:d?.QueryString?[[],d.QueryString]:void 0,client_claims:s||void 0,...n},r,c,o.correlationId)}}/*! @azure/msal-common v14.6.1 2024-01-23 */class ZI{constructor(e,r){this.cache=e,this.hasChanged=r}get cacheHasChanged(){return this.hasChanged}get tokenCache(){return this.cache}}/*! @azure/msal-common v14.6.1 2024-01-23 */class Ii{constructor(e,r,o,n,i,a,s){this.clientId=e,this.cacheStorage=r,this.cryptoObj=o,this.logger=n,this.serializableCache=i,this.persistencePlugin=a,this.performanceClient=s}validateServerAuthorizationCodeResponse(e,r){if(!e.state||!r)throw e.state?X(Vu,"Cached State"):X(Vu,"Server State");let o,n;try{o=decodeURIComponent(e.state)}catch{throw X(La,e.state)}try{n=decodeURIComponent(r)}catch{throw X(La,e.state)}if(o!==n)throw X(tS);if(e.error||e.error_description||e.suberror)throw O0(e.error,e.error_description,e.suberror)?new ao(e.error||"",e.error_description,e.suberror,e.timestamp||"",e.trace_id||"",e.correlation_id||"",e.claims||""):new Ln(e.error||"",e.error_description,e.suberror)}validateTokenResponse(e,r){if(e.error||e.error_description||e.suberror){const o=`${e.error_codes} - [${e.timestamp}]: ${e.error_description} - Correlation ID: ${e.correlation_id} - Trace ID: ${e.trace_id}`,n=new Ln(e.error,o,e.suberror);if(r&&e.status&&e.status>=_c.SERVER_ERROR_RANGE_START&&e.status<=_c.SERVER_ERROR_RANGE_END){this.logger.warning(`executeTokenRequest:validateTokenResponse - AAD is currently unavailable and the access token is unable to be refreshed. -${n}`);return}else if(r&&e.status&&e.status>=_c.CLIENT_ERROR_RANGE_START&&e.status<=_c.CLIENT_ERROR_RANGE_END){this.logger.warning(`executeTokenRequest:validateTokenResponse - AAD is currently available but is unable to refresh the access token. -${n}`);return}throw O0(e.error,e.error_description,e.suberror)?new ao(e.error,e.error_description,e.suberror,e.timestamp||F.EMPTY_STRING,e.trace_id||F.EMPTY_STRING,e.correlation_id||F.EMPTY_STRING,e.claims||F.EMPTY_STRING):n}}async handleServerTokenResponse(e,r,o,n,i,a,s,l,c){this.performanceClient?.addQueueMeasurement(N.HandleServerTokenResponse,e.correlation_id);let u;if(e.id_token){if(u=Hi(e.id_token||F.EMPTY_STRING,this.cryptoObj.base64Decode),i&&i.nonce&&u.nonce!==i.nonce)throw X(rS);if(n.maxAge||n.maxAge===0){const g=u.auth_time;if(!g)throw X($m);gS(g,n.maxAge)}}this.homeAccountIdentifier=xt.generateHomeAccountId(e.client_info||F.EMPTY_STRING,r.authorityType,this.logger,this.cryptoObj,u);let d;i&&i.state&&(d=ro.parseRequestState(this.cryptoObj,i.state)),e.key_id=e.key_id||n.sshKid||void 0;const f=this.generateCacheRecord(e,r,o,n,u,a,i);let h;try{if(this.persistencePlugin&&this.serializableCache&&(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),h=new ZI(this.serializableCache,!0),await this.persistencePlugin.beforeCacheAccess(h)),s&&!l&&f.account){const g=f.account.generateAccountKey();if(!this.cacheStorage.getAccount(g,this.logger))return this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),await Ii.generateAuthenticationResult(this.cryptoObj,r,f,!1,n,u,d,void 0,c)}await this.cacheStorage.saveCacheRecord(f,n.storeInCache)}finally{this.persistencePlugin&&this.serializableCache&&h&&(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),await this.persistencePlugin.afterCacheAccess(h))}return Ii.generateAuthenticationResult(this.cryptoObj,r,f,!1,n,u,d,e,c)}generateCacheRecord(e,r,o,n,i,a,s){const l=r.getPreferredCache();if(!l)throw X(Wm);const c=RS(i);let u,d;e.id_token&&i&&(u=Xd(this.homeAccountIdentifier,l,e.id_token,this.clientId,c||""),d=av(this.cacheStorage,r,this.homeAccountIdentifier,i,this.cryptoObj.base64Decode,e.client_info,l,c,s,void 0,this.logger));let f=null;if(e.access_token){const p=e.scope?ht.fromString(e.scope):new ht(n.scopes||[]),w=(typeof e.expires_in=="string"?parseInt(e.expires_in,10):e.expires_in)||0,v=(typeof e.ext_expires_in=="string"?parseInt(e.ext_expires_in,10):e.ext_expires_in)||0,m=(typeof e.refresh_in=="string"?parseInt(e.refresh_in,10):e.refresh_in)||void 0,b=o+w,k=b+v,x=m&&m>0?o+m:void 0;f=Yd(this.homeAccountIdentifier,l,e.access_token,this.clientId,c||r.tenant,p.printScopes(),b,k,this.cryptoObj.base64Decode,x,e.token_type,a,e.key_id,n.claims,n.requestedClaimsHash)}let h=null;if(e.refresh_token){let p;if(e.refresh_token_expires_in){const w=typeof e.refresh_token_expires_in=="string"?parseInt(e.refresh_token_expires_in,10):e.refresh_token_expires_in;p=o+w}h=pS(this.homeAccountIdentifier,l,e.refresh_token,this.clientId,e.foci,a,p)}let g=null;return e.foci&&(g={clientId:this.clientId,environment:l,familyId:e.foci}),new Ca(d,u,f,h,g)}static async generateAuthenticationResult(e,r,o,n,i,a,s,l,c){let u=F.EMPTY_STRING,d=[],f=null,h,g,p=F.EMPTY_STRING;if(o.accessToken){if(o.accessToken.tokenType===Ie.POP){const b=new $a(e),{secret:k,keyId:x}=o.accessToken;if(!x)throw X(Vm);u=await b.signPopToken(k,x,i)}else u=o.accessToken.secret;d=ht.fromString(o.accessToken.target).asArray(),f=new Date(Number(o.accessToken.expiresOn)*1e3),h=new Date(Number(o.accessToken.extendedExpiresOn)*1e3),o.accessToken.refreshOn&&(g=new Date(Number(o.accessToken.refreshOn)*1e3))}o.appMetadata&&(p=o.appMetadata.familyId===Xs?Xs:"");const w=a?.oid||a?.sub||"",v=a?.tid||"";l?.spa_accountid&&o.account&&(o.account.nativeAccountId=l?.spa_accountid);const m=o.account?rv(o.account.getAccountInfo(),void 0,a):null;return{authority:r.canonicalAuthority,uniqueId:w,tenantId:v,scopes:d,account:m,idToken:o?.idToken?.secret||"",idTokenClaims:a||{},accessToken:u,fromCache:n,expiresOn:f,extExpiresOn:h,refreshOn:g,correlationId:i.correlationId,requestId:c||F.EMPTY_STRING,familyId:p,tokenType:o.accessToken?.tokenType||F.EMPTY_STRING,state:s?s.userRequestState:F.EMPTY_STRING,cloudGraphHostName:o.account?.cloudGraphHostName||F.EMPTY_STRING,msGraphHost:o.account?.msGraphHost||F.EMPTY_STRING,code:l?.spa_code,fromNativeBroker:!1}}}function av(t,e,r,o,n,i,a,s,l,c,u){u?.verbose("setCachedAccount called");const f=t.getAccountKeys().find(w=>w.startsWith(r));let h=null;f&&(h=t.getAccount(f,u));const g=h||xt.createAccount({homeAccountId:r,idTokenClaims:o,clientInfo:i,environment:a,cloudGraphHostName:l?.cloud_graph_host_name,msGraphHost:l?.msgraph_host,nativeAccountId:c},e,n),p=g.tenantProfiles||[];if(s&&!p.find(w=>w.tenantId===s)){const w=tv(r,o);p.push(w)}return g.tenantProfiles=p,g}/*! @azure/msal-common v14.6.1 2024-01-23 */class jS extends nv{constructor(e,r){super(e,r),this.includeRedirectUri=!0,this.oidcDefaultScopes=this.config.authOptions.authority.options.OIDCOptions?.defaultScopes}async getAuthCodeUrl(e){this.performanceClient?.addQueueMeasurement(N.GetAuthCodeUrl,e.correlationId);const r=await ee(this.createAuthCodeUrlQueryString.bind(this),N.AuthClientCreateQueryString,this.logger,this.performanceClient,e.correlationId)(e);return xe.appendQueryString(this.authority.authorizationEndpoint,r)}async acquireToken(e,r){if(this.performanceClient?.addQueueMeasurement(N.AuthClientAcquireToken,e.correlationId),!e.code)throw X(iS);const o=Zt.nowSeconds(),n=await ee(this.executeTokenRequest.bind(this),N.AuthClientExecuteTokenRequest,this.logger,this.performanceClient,e.correlationId)(this.authority,e),i=n.headers?.[So.X_MS_REQUEST_ID],a=new Ii(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin,this.performanceClient);return a.validateTokenResponse(n.body),ee(a.handleServerTokenResponse.bind(a),N.HandleServerTokenResponse,this.logger,this.performanceClient,e.correlationId)(n.body,this.authority,o,e,r,void 0,void 0,void 0,i)}handleFragmentResponse(e,r){if(new Ii(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null).validateServerAuthorizationCodeResponse(e,r),!e.code)throw X(uS);return e}getLogoutUri(e){if(!e)throw Ne(SS);const r=this.createLogoutUrlQueryString(e);return xe.appendQueryString(this.authority.endSessionEndpoint,r)}async executeTokenRequest(e,r){this.performanceClient?.addQueueMeasurement(N.AuthClientExecuteTokenRequest,r.correlationId);const o=this.createTokenQueryParameters(r),n=xe.appendQueryString(e.tokenEndpoint,o),i=await ee(this.createTokenRequestBody.bind(this),N.AuthClientCreateTokenRequestBody,this.logger,this.performanceClient,r.correlationId)(r);let a;if(r.clientInfo)try{const c=Xu(r.clientInfo,this.cryptoUtils.base64Decode);a={credential:`${c.uid}${Lt.CLIENT_INFO_SEPARATOR}${c.utid}`,type:vr.HOME_ACCOUNT_ID}}catch(c){this.logger.verbose("Could not parse client info for CCS Header: "+c)}const s=this.createTokenRequestHeaders(a||r.ccsCredential),l={clientId:r.tokenBodyParameters?.clientId||this.config.authOptions.clientId,authority:e.canonicalAuthority,scopes:r.scopes,claims:r.claims,authenticationScheme:r.authenticationScheme,resourceRequestMethod:r.resourceRequestMethod,resourceRequestUri:r.resourceRequestUri,shrClaims:r.shrClaims,sshKid:r.sshKid};return ee(this.executePostToTokenEndpoint.bind(this),N.AuthorizationCodeClientExecutePostToTokenEndpoint,this.logger,this.performanceClient,r.correlationId)(n,i,s,l,r.correlationId,N.AuthorizationCodeClientExecutePostToTokenEndpoint)}async createTokenRequestBody(e){this.performanceClient?.addQueueMeasurement(N.AuthClientCreateTokenRequestBody,e.correlationId);const r=new Zs;if(r.addClientId(e.tokenBodyParameters?.[Ua]||this.config.authOptions.clientId),this.includeRedirectUri?r.addRedirectUri(e.redirectUri):ni.validateRedirectUri(e.redirectUri),r.addScopes(e.scopes,!0,this.oidcDefaultScopes),r.addAuthorizationCode(e.code),r.addLibraryInfo(this.config.libraryInfo),r.addApplicationTelemetry(this.config.telemetry.application),r.addThrottling(),this.serverTelemetryManager&&!Sg(this.config)&&r.addServerTelemetry(this.serverTelemetryManager),e.codeVerifier&&r.addCodeVerifier(e.codeVerifier),this.config.clientCredentials.clientSecret&&r.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion){const i=this.config.clientCredentials.clientAssertion;r.addClientAssertion(i.assertion),r.addClientAssertionType(i.assertionType)}if(r.addGrantType(Gk.AUTHORIZATION_CODE_GRANT),r.addClientInfo(),e.authenticationScheme===Ie.POP){const i=new $a(this.cryptoUtils,this.performanceClient),a=await ee(i.generateCnf.bind(i),N.PopTokenGenerateCnf,this.logger,this.performanceClient,e.correlationId)(e,this.logger);r.addPopToken(a.reqCnfString)}else if(e.authenticationScheme===Ie.SSH)if(e.sshJwk)r.addSshJwk(e.sshJwk);else throw Ne(Zd);const o=e.correlationId||this.config.cryptoInterface.createNewGuid();r.addCorrelationId(o),(!to.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&r.addClaims(e.claims,this.config.authOptions.clientCapabilities);let n;if(e.clientInfo)try{const i=Xu(e.clientInfo,this.cryptoUtils.base64Decode);n={credential:`${i.uid}${Lt.CLIENT_INFO_SEPARATOR}${i.utid}`,type:vr.HOME_ACCOUNT_ID}}catch(i){this.logger.verbose("Could not parse client info for CCS Header: "+i)}else n=e.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&n)switch(n.type){case vr.HOME_ACCOUNT_ID:try{const i=fa(n.credential);r.addCcsOid(i)}catch(i){this.logger.verbose("Could not parse home account ID for CCS Header: "+i)}break;case vr.UPN:r.addCcsUpn(n.credential);break}return e.tokenBodyParameters&&r.addExtraQueryParameters(e.tokenBodyParameters),e.enableSpaAuthorizationCode&&(!e.tokenBodyParameters||!e.tokenBodyParameters[z0])&&r.addExtraQueryParameters({[z0]:"1"}),r.createQueryString()}async createAuthCodeUrlQueryString(e){this.performanceClient?.addQueueMeasurement(N.AuthClientCreateQueryString,e.correlationId);const r=new Zs;r.addClientId(e.extraQueryParameters?.[Ua]||this.config.authOptions.clientId);const o=[...e.scopes||[],...e.extraScopesToConsent||[]];r.addScopes(o,!0,this.oidcDefaultScopes),r.addRedirectUri(e.redirectUri);const n=e.correlationId||this.config.cryptoInterface.createNewGuid();if(r.addCorrelationId(n),r.addResponseMode(e.responseMode),r.addResponseTypeCode(),r.addLibraryInfo(this.config.libraryInfo),Sg(this.config)||r.addApplicationTelemetry(this.config.telemetry.application),r.addClientInfo(),e.codeChallenge&&e.codeChallengeMethod&&r.addCodeChallengeParams(e.codeChallenge,e.codeChallengeMethod),e.prompt&&r.addPrompt(e.prompt),e.domainHint&&r.addDomainHint(e.domainHint),e.prompt!==$t.SELECT_ACCOUNT)if(e.sid&&e.prompt===$t.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),r.addSid(e.sid);else if(e.account){const i=this.extractAccountSid(e.account),a=this.extractLoginHint(e.account);if(a){this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),r.addLoginHint(a);try{const s=fa(e.account.homeAccountId);r.addCcsOid(s)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(i&&e.prompt===$t.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),r.addSid(i);try{const s=fa(e.account.homeAccountId);r.addCcsOid(s)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(e.loginHint)this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"),r.addLoginHint(e.loginHint),r.addCcsUpn(e.loginHint);else if(e.account.username){this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),r.addLoginHint(e.account.username);try{const s=fa(e.account.homeAccountId);r.addCcsOid(s)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}}else e.loginHint&&(this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"),r.addLoginHint(e.loginHint),r.addCcsUpn(e.loginHint));else this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");if(e.nonce&&r.addNonce(e.nonce),e.state&&r.addState(e.state),(e.claims||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&r.addClaims(e.claims,this.config.authOptions.clientCapabilities),e.extraQueryParameters&&r.addExtraQueryParameters(e.extraQueryParameters),e.nativeBroker&&(r.addNativeBroker(),e.authenticationScheme===Ie.POP)){const i=new $a(this.cryptoUtils),a=await ee(i.generateCnf.bind(i),N.PopTokenGenerateCnf,this.logger,this.performanceClient,e.correlationId)(e,this.logger);r.addPopToken(a.reqCnfHash)}return r.createQueryString()}createLogoutUrlQueryString(e){const r=new Zs;return e.postLogoutRedirectUri&&r.addPostLogoutRedirectUri(e.postLogoutRedirectUri),e.correlationId&&r.addCorrelationId(e.correlationId),e.idTokenHint&&r.addIdTokenHint(e.idTokenHint),e.state&&r.addState(e.state),e.logoutHint&&r.addLogoutHint(e.logoutHint),e.extraQueryParameters&&r.addExtraQueryParameters(e.extraQueryParameters),r.createQueryString()}extractAccountSid(e){return e.idTokenClaims?.sid||null}extractLoginHint(e){return e.idTokenClaims?.login_hint||null}}/*! @azure/msal-common v14.6.1 2024-01-23 */const QI=300;class xg extends nv{constructor(e,r){super(e,r)}async acquireToken(e){this.performanceClient?.addQueueMeasurement(N.RefreshTokenClientAcquireToken,e.correlationId);const r=Zt.nowSeconds(),o=await ee(this.executeTokenRequest.bind(this),N.RefreshTokenClientExecuteTokenRequest,this.logger,this.performanceClient,e.correlationId)(e,this.authority),n=o.headers?.[So.X_MS_REQUEST_ID],i=new Ii(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin);return i.validateTokenResponse(o.body),ee(i.handleServerTokenResponse.bind(i),N.HandleServerTokenResponse,this.logger,this.performanceClient,e.correlationId)(o.body,this.authority,r,e,void 0,void 0,!0,e.forceCache,n)}async acquireTokenByRefreshToken(e){if(!e)throw Ne(kS);if(this.performanceClient?.addQueueMeasurement(N.RefreshTokenClientAcquireTokenByRefreshToken,e.correlationId),!e.account)throw X(Km);if(this.cacheManager.isAppMetadataFOCI(e.account.environment))try{return await ee(this.acquireTokenWithCachedRefreshToken.bind(this),N.RefreshTokenClientAcquireTokenWithCachedRefreshToken,this.logger,this.performanceClient,e.correlationId)(e,!0)}catch(o){const n=o instanceof ao&&o.errorCode===Qu,i=o instanceof Ln&&o.errorCode===w0.INVALID_GRANT_ERROR&&o.subError===w0.CLIENT_MISMATCH_ERROR;if(n||i)return ee(this.acquireTokenWithCachedRefreshToken.bind(this),N.RefreshTokenClientAcquireTokenWithCachedRefreshToken,this.logger,this.performanceClient,e.correlationId)(e,!1);throw o}return ee(this.acquireTokenWithCachedRefreshToken.bind(this),N.RefreshTokenClientAcquireTokenWithCachedRefreshToken,this.logger,this.performanceClient,e.correlationId)(e,!1)}async acquireTokenWithCachedRefreshToken(e,r){this.performanceClient?.addQueueMeasurement(N.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId);const o=Ui(this.cacheManager.getRefreshToken.bind(this.cacheManager),N.CacheManagerGetRefreshToken,this.logger,this.performanceClient,e.correlationId)(e.account,r,void 0,this.performanceClient,e.correlationId);if(!o)throw _g(Qu);if(o.expiresOn&&Zt.isTokenExpired(o.expiresOn,e.refreshTokenExpirationOffsetSeconds||QI))throw _g(iv);const n={...e,refreshToken:o.secret,authenticationScheme:e.authenticationScheme||Ie.BEARER,ccsCredential:{credential:e.account.homeAccountId,type:vr.HOME_ACCOUNT_ID}};try{return await ee(this.acquireToken.bind(this),N.RefreshTokenClientAcquireToken,this.logger,this.performanceClient,e.correlationId)(n)}catch(i){if(i instanceof ao&&i.subError===ef){this.logger.verbose("acquireTokenWithRefreshToken: bad refresh token, removing from cache");const a=da(o);this.cacheManager.removeRefreshToken(a)}throw i}}async executeTokenRequest(e,r){this.performanceClient?.addQueueMeasurement(N.RefreshTokenClientExecuteTokenRequest,e.correlationId);const o=this.createTokenQueryParameters(e),n=xe.appendQueryString(r.tokenEndpoint,o),i=await ee(this.createTokenRequestBody.bind(this),N.RefreshTokenClientCreateTokenRequestBody,this.logger,this.performanceClient,e.correlationId)(e),a=this.createTokenRequestHeaders(e.ccsCredential),s={clientId:e.tokenBodyParameters?.clientId||this.config.authOptions.clientId,authority:r.canonicalAuthority,scopes:e.scopes,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid};return ee(this.executePostToTokenEndpoint.bind(this),N.RefreshTokenClientExecutePostToTokenEndpoint,this.logger,this.performanceClient,e.correlationId)(n,i,a,s,e.correlationId,N.RefreshTokenClientExecutePostToTokenEndpoint)}async createTokenRequestBody(e){this.performanceClient?.addQueueMeasurement(N.RefreshTokenClientCreateTokenRequestBody,e.correlationId);const r=e.correlationId,o=new Zs;if(o.addClientId(e.tokenBodyParameters?.[Ua]||this.config.authOptions.clientId),e.redirectUri&&o.addRedirectUri(e.redirectUri),o.addScopes(e.scopes,!0,this.config.authOptions.authority.options.OIDCOptions?.defaultScopes),o.addGrantType(Gk.REFRESH_TOKEN_GRANT),o.addClientInfo(),o.addLibraryInfo(this.config.libraryInfo),o.addApplicationTelemetry(this.config.telemetry.application),o.addThrottling(),this.serverTelemetryManager&&!Sg(this.config)&&o.addServerTelemetry(this.serverTelemetryManager),o.addCorrelationId(r),o.addRefreshToken(e.refreshToken),this.config.clientCredentials.clientSecret&&o.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion){const n=this.config.clientCredentials.clientAssertion;o.addClientAssertion(n.assertion),o.addClientAssertionType(n.assertionType)}if(e.authenticationScheme===Ie.POP){const n=new $a(this.cryptoUtils,this.performanceClient),i=await ee(n.generateCnf.bind(n),N.PopTokenGenerateCnf,this.logger,this.performanceClient,e.correlationId)(e,this.logger);o.addPopToken(i.reqCnfString)}else if(e.authenticationScheme===Ie.SSH)if(e.sshJwk)o.addSshJwk(e.sshJwk);else throw Ne(Zd);if((!to.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&o.addClaims(e.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&e.ccsCredential)switch(e.ccsCredential.type){case vr.HOME_ACCOUNT_ID:try{const n=fa(e.ccsCredential.credential);o.addCcsOid(n)}catch(n){this.logger.verbose("Could not parse home account ID for CCS Header: "+n)}break;case vr.UPN:o.addCcsUpn(e.ccsCredential.credential);break}return e.tokenBodyParameters&&o.addExtraQueryParameters(e.tokenBodyParameters),o.createQueryString()}}/*! @azure/msal-common v14.6.1 2024-01-23 */class JI extends nv{constructor(e,r){super(e,r)}async acquireToken(e){try{const[r,o]=await this.acquireCachedToken(e);return o===yn.PROACTIVELY_REFRESHED&&(this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'. It's not expired, but must be refreshed."),new xg(this.config,this.performanceClient).acquireTokenByRefreshToken(e).catch(()=>{})),r}catch(r){if(r instanceof Gd&&r.errorCode===En)return new xg(this.config,this.performanceClient).acquireTokenByRefreshToken(e);throw r}}async acquireCachedToken(e){this.performanceClient?.addQueueMeasurement(N.SilentFlowClientAcquireCachedToken,e.correlationId);let r=yn.NOT_APPLICABLE;if(e.forceRefresh||!this.config.cacheOptions.claimsBasedCachingEnabled&&!to.isEmptyObj(e.claims))throw this.setCacheOutcome(yn.FORCE_REFRESH_OR_CLAIMS,e.correlationId),X(En);if(!e.account)throw X(Km);const o=e.account.tenantId||HI(e.authority),n=this.cacheManager.getTokenKeys(),i=this.cacheManager.getAccessToken(e.account,e,n,o,this.performanceClient,e.correlationId);if(i){if(Zt.wasClockTurnedBack(i.cachedAt)||Zt.isTokenExpired(i.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw this.setCacheOutcome(yn.CACHED_ACCESS_TOKEN_EXPIRED,e.correlationId),X(En);i.refreshOn&&Zt.isTokenExpired(i.refreshOn,0)&&(r=yn.PROACTIVELY_REFRESHED)}else throw this.setCacheOutcome(yn.NO_CACHED_ACCESS_TOKEN,e.correlationId),X(En);const a=e.authority||this.authority.getPreferredCache(),s={account:this.cacheManager.readAccountFromCache(e.account),accessToken:i,idToken:this.cacheManager.getIdToken(e.account,n,o,this.performanceClient,e.correlationId),refreshToken:null,appMetadata:this.cacheManager.readAppMetadataFromCache(a)};return this.setCacheOutcome(r,e.correlationId),this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[await ee(this.generateResultFromCacheRecord.bind(this),N.SilentFlowClientGenerateResultFromCacheRecord,this.logger,this.performanceClient,e.correlationId)(s,e),r]}setCacheOutcome(e,r){this.serverTelemetryManager?.setCacheOutcome(e),this.performanceClient?.addFields({cacheOutcome:e},r),e!==yn.NOT_APPLICABLE&&this.logger.info(`Token refresh is required due to cache outcome: ${e}`)}async generateResultFromCacheRecord(e,r){this.performanceClient?.addQueueMeasurement(N.SilentFlowClientGenerateResultFromCacheRecord,r.correlationId);let o;if(e.idToken&&(o=Hi(e.idToken.secret,this.config.cryptoInterface.base64Decode)),r.maxAge||r.maxAge===0){const n=o?.auth_time;if(!n)throw X($m);gS(n,r.maxAge)}return Ii.generateAuthenticationResult(this.cryptoUtils,this.authority,e,!0,r,o)}}/*! @azure/msal-common v14.6.1 2024-01-23 */const eR={sendGetRequestAsync:()=>Promise.reject(X(ye)),sendPostRequestAsync:()=>Promise.reject(X(ye))};/*! @azure/msal-common v14.6.1 2024-01-23 */const DS="missing_kid_error",FS="missing_alg_error";/*! @azure/msal-common v14.6.1 2024-01-23 */const tR={[DS]:"The JOSE Header for the requested JWT, JWS or JWK object requires a keyId to be configured as the 'kid' header claim. No 'kid' value was provided.",[FS]:"The JOSE Header for the requested JWT, JWS or JWK object requires an algorithm to be specified as the 'alg' header claim. No 'alg' value was provided."};class sv extends We{constructor(e,r){super(e,r),this.name="JoseHeaderError",Object.setPrototypeOf(this,sv.prototype)}}function j0(t){return new sv(t,tR[t])}/*! @azure/msal-common v14.6.1 2024-01-23 */class lv{constructor(e){this.typ=e.typ,this.alg=e.alg,this.kid=e.kid}static getShrHeaderString(e){if(!e.kid)throw j0(DS);if(!e.alg)throw j0(FS);const r=new lv({typ:e.typ||hB.Pop,kid:e.kid,alg:e.alg});return JSON.stringify(r)}}/*! @azure/msal-common v14.6.1 2024-01-23 */class Ju{constructor(e,r){this.cacheOutcome=yn.NOT_APPLICABLE,this.cacheManager=r,this.apiId=e.apiId,this.correlationId=e.correlationId,this.wrapperSKU=e.wrapperSKU||F.EMPTY_STRING,this.wrapperVer=e.wrapperVer||F.EMPTY_STRING,this.telemetryCacheKey=Nt.CACHE_KEY+Lt.CACHE_KEY_SEPARATOR+e.clientId}generateCurrentRequestHeaderValue(){const e=`${this.apiId}${Nt.VALUE_SEPARATOR}${this.cacheOutcome}`,r=[this.wrapperSKU,this.wrapperVer].join(Nt.VALUE_SEPARATOR),o=this.getRegionDiscoveryFields(),n=[e,o].join(Nt.VALUE_SEPARATOR);return[Nt.SCHEMA_VERSION,n,r].join(Nt.CATEGORY_SEPARATOR)}generateLastRequestHeaderValue(){const e=this.getLastRequests(),r=Ju.maxErrorsToSend(e),o=e.failedRequests.slice(0,2*r).join(Nt.VALUE_SEPARATOR),n=e.errors.slice(0,r).join(Nt.VALUE_SEPARATOR),i=e.errors.length,a=r=Nt.MAX_CACHED_ERRORS&&(r.failedRequests.shift(),r.failedRequests.shift(),r.errors.shift()),r.failedRequests.push(this.apiId,this.correlationId),e instanceof Error&&e&&e.toString()?e instanceof We?e.subError?r.errors.push(e.subError):e.errorCode?r.errors.push(e.errorCode):r.errors.push(e.toString()):r.errors.push(e.toString()):r.errors.push(Nt.UNKNOWN_ERROR),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,r)}incrementCacheHits(){const e=this.getLastRequests();return e.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e),e.cacheHits}getLastRequests(){const e={failedRequests:[],errors:[],cacheHits:0};return this.cacheManager.getServerTelemetry(this.telemetryCacheKey)||e}clearTelemetryCache(){const e=this.getLastRequests(),r=Ju.maxErrorsToSend(e),o=e.errors.length;if(r===o)this.cacheManager.removeItem(this.telemetryCacheKey);else{const n={failedRequests:e.failedRequests.slice(r*2),errors:e.errors.slice(r),cacheHits:0};this.cacheManager.setServerTelemetry(this.telemetryCacheKey,n)}}static maxErrorsToSend(e){let r,o=0,n=0;const i=e.errors.length;for(r=0;rnull,discard:()=>{},add:()=>{},increment:()=>{},event:{eventId:this.generateId(),status:LI.InProgress,authority:"",libraryName:"",libraryVersion:"",clientId:"",name:e,startTimeMs:Date.now(),correlationId:r||""},measurement:new D0}}startPerformanceMeasurement(){return new D0}calculateQueuedTime(){return 0}addQueueMeasurement(){}setPreQueueTime(){}endMeasurement(){return null}discardMeasurements(){}removePerformanceCallback(){return!0}addPerformanceCallback(){return""}emitEvents(){}addFields(){}incrementFields(){}cacheEventByCorrelationId(){}}/*! @azure/msal-browser v3.7.1 2024-01-23 */const cv="pkce_not_created",qS="crypto_nonexistent",tf="empty_navigate_uri",LS="hash_empty_error",uv="no_state_in_hash",HS="hash_does_not_contain_known_properties",US="unable_to_parse_state",$S="state_interaction_type_mismatch",KS="interaction_in_progress",WS="popup_window_error",VS="empty_window_error",Ri="user_cancelled",oR="monitor_popup_timeout",GS="monitor_window_timeout",XS="redirect_in_iframe",YS="block_iframe_reload",ZS="block_nested_popups",nR="iframe_closed_prematurely",rf="silent_logout_unsupported",QS="no_account_error",JS="silent_prompt_value_error",e_="no_token_request_cache_error",t_="unable_to_parse_token_request_cache_error",dv="no_cached_authority_error",iR="auth_request_not_set_error",aR="invalid_cache_type",r_="non_browser_environment",sa="database_not_open",ed="no_network_connectivity",o_="post_request_failed",n_="get_request_failed",Cg="failed_to_parse_response",Ur="unable_to_load_token",fv="crypto_key_not_found",i_="auth_code_required",a_="auth_code_or_nativeAccountId_required",s_="spa_code_and_nativeAccountId_present",hv="database_unavailable",l_="unable_to_acquire_token_from_native_platform",c_="native_handshake_timeout",u_="native_extension_not_installed",tc="native_connection_not_established",d_="uninitialized_public_client_application",f_="native_prompt_not_supported",h_="invalid_base64_string";/*! @azure/msal-browser v3.7.1 2024-01-23 */const zo="For more visit: aka.ms/msaljs/browser-errors",sR={[cv]:"The PKCE code challenge and verifier could not be generated.",[qS]:"The crypto object or function is not available.",[tf]:"Navigation URI is empty. Please check stack trace for more info.",[LS]:`Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash. ${zo}`,[uv]:"Hash does not contain state. Please verify that the request originated from msal.",[HS]:`Hash does not contain known properites. Please verify that your redirectUri is not changing the hash. ${zo}`,[US]:"Unable to parse state. Please verify that the request originated from msal.",[$S]:"Hash contains state but the interaction type does not match the caller.",[KS]:`Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API. ${zo}`,[WS]:"Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser.",[VS]:"window.open returned null or undefined window object.",[Ri]:"User cancelled the flow.",[oR]:`Token acquisition in popup failed due to timeout. ${zo}`,[GS]:`Token acquisition in iframe failed due to timeout. ${zo}`,[XS]:"Redirects are not supported for iframed or brokered applications. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs.",[YS]:`Request was blocked inside an iframe because MSAL detected an authentication response. ${zo}`,[ZS]:"Request was blocked inside a popup because MSAL detected it was running in a popup.",[nR]:"The iframe being monitored was closed prematurely.",[rf]:"Silent logout not supported. Please call logoutRedirect or logoutPopup instead.",[QS]:"No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request.",[JS]:"The value given for the prompt value is not valid for silent requests - must be set to 'none' or 'no_session'.",[e_]:"No token request found in cache.",[t_]:"The cached token request could not be parsed.",[dv]:"No cached authority found.",[iR]:"Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler",[aR]:"Invalid cache type",[r_]:"Login and token requests are not supported in non-browser environments.",[sa]:"Database is not open!",[ed]:"No network connectivity. Check your internet connection.",[o_]:"Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'",[n_]:"Network request failed. Please check the network trace to determine root cause.",[Cg]:"Failed to parse network response. Check network trace.",[Ur]:"Error loading token to cache.",[fv]:"Cryptographic Key or Keypair not found in browser storage.",[i_]:"An authorization code must be provided (as the `code` property on the request) to this flow.",[a_]:"An authorization code or nativeAccountId must be provided to this flow.",[s_]:"Request cannot contain both spa code and native account id.",[hv]:"IndexedDB, which is required for persistent cryptographic key storage, is unavailable. This may be caused by browser privacy features which block persistent storage in third-party contexts.",[l_]:`Unable to acquire token from native platform. ${zo}`,[c_]:"Timed out while attempting to establish connection to browser extension",[u_]:"Native extension is not installed. If you think this is a mistake call the initialize function.",[tc]:`Connection to native platform has not been established. Please install a compatible browser extension and run initialize(). ${zo}`,[d_]:`You must call and await the initialize function before attempting to call any other MSAL API. ${zo}`,[f_]:"The provided prompt is not supported by the native platform. This request should be routed to the web based flow.",[h_]:"Invalid base64 encoded string."};class rc extends We{constructor(e){super(e,sR[e]),Object.setPrototypeOf(this,rc.prototype),this.name="BrowserAuthError"}}function re(t){return new rc(t)}/*! @azure/msal-browser v3.7.1 2024-01-23 */const Xr={INTERACTION_IN_PROGRESS_VALUE:"interaction_in_progress",INVALID_GRANT_ERROR:"invalid_grant",POPUP_WIDTH:483,POPUP_HEIGHT:600,POPUP_NAME_PREFIX:"msal",DEFAULT_POLL_INTERVAL_MS:30,MSAL_SKU:"msal.js.browser"},Fs={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"},gi={HandshakeRequest:"Handshake",HandshakeResponse:"HandshakeResponse",GetToken:"GetToken",Response:"Response"},kt={LocalStorage:"localStorage",SessionStorage:"sessionStorage",MemoryStorage:"memoryStorage"},F0={GET:"GET",POST:"POST"},Te={AUTHORITY:"authority",ACQUIRE_TOKEN_ACCOUNT:"acquireToken.account",SESSION_STATE:"session.state",REQUEST_STATE:"request.state",NONCE_IDTOKEN:"nonce.id_token",ORIGIN_URI:"request.origin",RENEW_STATUS:"token.renew.status",URL_HASH:"urlHash",REQUEST_PARAMS:"request.params",SCOPES:"scopes",INTERACTION_STATUS_KEY:"interaction.status",CCS_CREDENTIAL:"ccs.credential",CORRELATION_ID:"request.correlationId",NATIVE_REQUEST:"request.native",REDIRECT_CONTEXT:"request.redirect.context"},pn={ACCOUNT_KEYS:"msal.account.keys",TOKEN_KEYS:"msal.token.keys"},Bc={WRAPPER_SKU:"wrapper.sku",WRAPPER_VER:"wrapper.version"},je={acquireTokenRedirect:861,acquireTokenPopup:862,ssoSilent:863,acquireTokenSilent_authCode:864,handleRedirectPromise:865,acquireTokenByCode:866,acquireTokenSilent_silentFlow:61,logout:961,logoutPopup:962};var oe;(function(t){t.Redirect="redirect",t.Popup="popup",t.Silent="silent",t.None="none"})(oe||(oe={}));const rt={Startup:"startup",Login:"login",Logout:"logout",AcquireToken:"acquireToken",SsoSilent:"ssoSilent",HandleRedirect:"handleRedirect",None:"none"},q0={scopes:Jl},g_="jwk",lR={React:"@azure/msal-react",Angular:"@azure/msal-angular"},Tg="msal.db",cR=1,uR=`${Tg}.keys`,Ir={Default:0,AccessToken:1,AccessTokenAndRefreshToken:2,RefreshToken:3,RefreshTokenAndNetwork:4,Skip:5},dR=[Ir.Default,Ir.Skip,Ir.RefreshTokenAndNetwork],fR="msal.browser.log.level",hR="msal.browser.log.pii";/*! @azure/msal-browser v3.7.1 2024-01-23 */function gR(t){t.location.hash="",typeof t.history.replaceState=="function"&&t.history.replaceState(null,"",`${t.location.origin}${t.location.pathname}${t.location.search}`)}function pR(t){const e=t.split("#");e.shift(),window.location.hash=e.length>0?e.join("#"):""}function gv(){return window.parent!==window}function mR(){return typeof window<"u"&&!!window.opener&&window.opener!==window&&typeof window.name=="string"&&window.name.indexOf(`${Xr.POPUP_NAME_PREFIX}.`)===0}function Ko(){return window.location.href.split("?")[0].split("#")[0]}function vR(){const e=new xe(window.location.href).getUrlComponents();return`${e.Protocol}//${e.HostNameAndPort}/`}function Qf(){if(xe.hashContainsKnownProperties(window.location.hash)&&gv())throw re(YS)}function bR(t,e){const r=gv();if(t===oe.Redirect&&r&&!e)throw re(XS)}function yR(){if(mR())throw re(ZS)}function wR(t){if(!t)throw re(r_)}function L0(t){if(!t)throw re(d_)}function p_(t){const e=document.createElement("link");e.rel="preconnect",e.href=new URL(t).origin,e.crossOrigin="anonymous",document.head.appendChild(e),window.setTimeout(()=>{try{document.head.removeChild(e)}catch{}},1e4)}const kR=function(){const e=typeof document<"u"&&document.createElement("link").relList;return e&&e.supports&&e.supports("modulepreload")?"modulepreload":"preload"}(),SR=function(t){return"/"+t},H0={},_R=function(e,r,o){let n=Promise.resolve();if(r&&r.length>0){const i=document.getElementsByTagName("link");n=Promise.all(r.map(a=>{if(a=SR(a),a in H0)return;H0[a]=!0;const s=a.endsWith(".css"),l=s?'[rel="stylesheet"]':"";if(!!o)for(let d=i.length-1;d>=0;d--){const f=i[d];if(f.href===a&&(!s||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${l}`))return;const u=document.createElement("link");if(u.rel=s?"stylesheet":kR,s||(u.as="script",u.crossOrigin=""),u.href=a,document.head.appendChild(u),s)return new Promise((d,f)=>{u.addEventListener("load",d),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${a}`)))})}))}return n.then(()=>e()).catch(i=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i})};/*! @azure/msal-browser v3.7.1 2024-01-23 */class td{navigateInternal(e,r){return td.defaultNavigateWindow(e,r)}navigateExternal(e,r){return td.defaultNavigateWindow(e,r)}static defaultNavigateWindow(e,r){return r.noHistory?window.location.replace(e):window.location.assign(e),new Promise(o=>{setTimeout(()=>{o(!0)},r.timeout)})}}/*! @azure/msal-browser v3.7.1 2024-01-23 */class xR{async sendGetRequestAsync(e,r){let o;try{o=await fetch(e,{method:F0.GET,headers:this.getFetchHeaders(r)})}catch{throw window.navigator.onLine?re(n_):re(ed)}try{return{headers:this.getHeaderDict(o.headers),body:await o.json(),status:o.status}}catch{throw re(Cg)}}async sendPostRequestAsync(e,r){const o=r&&r.body||F.EMPTY_STRING;let n;try{n=await fetch(e,{method:F0.POST,headers:this.getFetchHeaders(r),body:o})}catch{throw window.navigator.onLine?re(o_):re(ed)}try{return{headers:this.getHeaderDict(n.headers),body:await n.json(),status:n.status}}catch{throw re(Cg)}}getFetchHeaders(e){const r=new Headers;if(!(e&&e.headers))return r;const o=e.headers;return Object.keys(o).forEach(n=>{r.append(n,o[n])}),r}getHeaderDict(e){const r={};return e.forEach((o,n)=>{r[n]=o}),r}}/*! @azure/msal-browser v3.7.1 2024-01-23 */const CR=6e4,Eg=1e4,TR=3e4,ER=2e3;function BR({auth:t,cache:e,system:r,telemetry:o},n){const i={clientId:F.EMPTY_STRING,authority:`${F.DEFAULT_AUTHORITY}`,knownAuthorities:[],cloudDiscoveryMetadata:F.EMPTY_STRING,authorityMetadata:F.EMPTY_STRING,redirectUri:F.EMPTY_STRING,postLogoutRedirectUri:F.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:Xo.AAD,OIDCOptions:{serverResponseType:ec.FRAGMENT,defaultScopes:[F.OPENID_SCOPE,F.PROFILE_SCOPE,F.OFFLINE_ACCESS_SCOPE]},azureCloudOptions:{azureCloudInstance:Xm.None,tenant:F.EMPTY_STRING},skipAuthorityMetadataCache:!1,supportsNestedAppAuth:!1},a={cacheLocation:kt.SessionStorage,temporaryCacheLocation:kt.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!!(e&&e.cacheLocation===kt.LocalStorage),claimsBasedCachingEnabled:!1},s={loggerCallback:()=>{},logLevel:He.Info,piiLoggingEnabled:!1},c={...{...zS,loggerOptions:s,networkClient:n?new xR:eR,navigationClient:new td,loadFrameTimeout:0,windowHashTimeout:r?.loadFrameTimeout||CR,iframeHashTimeout:r?.loadFrameTimeout||Eg,navigateFrameWait:0,redirectNavigationTimeout:TR,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:r?.nativeBrokerHandshakeTimeout||ER,pollIntervalMilliseconds:Xr.DEFAULT_POLL_INTERVAL_MS},...r,loggerOptions:r?.loggerOptions||s},u={application:{appName:F.EMPTY_STRING,appVersion:F.EMPTY_STRING},client:new rR};if(t?.protocolMode!==Xo.OIDC&&t?.OIDCOptions&&new qn(c.loggerOptions).warning(JSON.stringify(Ne(ES))),t?.protocolMode&&t.protocolMode!==Xo.AAD&&c?.allowNativeBroker)throw Ne(BS);return{auth:{...i,...t,OIDCOptions:{...i.OIDCOptions,...t?.OIDCOptions}},cache:{...a,...e},system:c,telemetry:{...u,...o}}}/*! @azure/msal-browser v3.7.1 2024-01-23 */const IR="@azure/msal-browser",pv="3.7.1";/*! @azure/msal-browser v3.7.1 2024-01-23 */class mv{static loggerCallback(e,r){switch(e){case He.Error:console.error(r);return;case He.Info:console.info(r);return;case He.Verbose:console.debug(r);return;case He.Warning:console.warn(r);return;default:console.log(r);return}}constructor(e){this.browserEnvironment=typeof window<"u",this.config=BR(e,this.browserEnvironment);let r;try{r=window[kt.SessionStorage]}catch{}const o=r?.getItem(fR),n=r?.getItem(hR)?.toLowerCase(),i=n==="true"?!0:n==="false"?!1:void 0,a={...this.config.system.loggerOptions},s=o&&Object.keys(He).includes(o)?He[o]:void 0;s&&(a.loggerCallback=mv.loggerCallback,a.logLevel=s),i!==void 0&&(a.piiLoggingEnabled=i),this.logger=new qn(a,IR,pv),this.available=!1}getConfig(){return this.config}getLogger(){return this.logger}isAvailable(){return this.available}isBrowserEnvironment(){return this.browserEnvironment}}/*! @azure/msal-browser v3.7.1 2024-01-23 */class Ai extends mv{getModuleName(){return Ai.MODULE_NAME}getId(){return Ai.ID}async initialize(){return this.available=typeof window<"u",this.available}}Ai.MODULE_NAME="";Ai.ID="StandardOperatingContext";async function RR(t){const e=new Ai(t);return await e.initialize(),(await _R(()=>Promise.resolve().then(()=>bA),void 0)).StandardController.createController(e)}/*! @azure/msal-browser v3.7.1 2024-01-23 */function Jf(t){return encodeURIComponent(vv(t).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"))}function rd(t){return m_(t).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function vv(t){return m_(new TextEncoder().encode(t))}function m_(t){const e=Array.from(t,r=>String.fromCodePoint(r)).join("");return btoa(e)}/*! @azure/msal-browser v3.7.1 2024-01-23 */function xo(t){return new TextDecoder().decode(AR(t))}function AR(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw re(h_)}const r=atob(e);return Uint8Array.from(r,o=>o.codePointAt(0)||0)}/*! @azure/msal-browser v3.7.1 2024-01-23 */const NR="RSASSA-PKCS1-v1_5",v_="SHA-256",PR=2048,zR=new Uint8Array([1,0,1]),bv={name:NR,hash:v_,modulusLength:PR,publicExponent:zR};function MR(t){if("crypto"in window)t.verbose("BrowserCrypto: modern crypto interface available");else throw t.error("BrowserCrypto: crypto interface is unavailable"),re(qS)}async function b_(t,e,r){e?.addQueueMeasurement(N.Sha256Digest,r);const n=new TextEncoder().encode(t);return window.crypto.subtle.digest(v_,n)}function OR(t){return window.crypto.getRandomValues(t)}function tn(){return window.crypto.randomUUID()}async function jR(t,e){return window.crypto.subtle.generateKey(bv,t,e)}async function eh(t){return window.crypto.subtle.exportKey(g_,t)}async function DR(t,e,r){return window.crypto.subtle.importKey(g_,t,bv,e,r)}async function FR(t,e){return window.crypto.subtle.sign(bv,t,e)}/*! @azure/msal-browser v3.7.1 2024-01-23 */class qR{constructor(){this.dbName=Tg,this.version=cR,this.tableName=uR,this.dbOpen=!1}async open(){return new Promise((e,r)=>{const o=window.indexedDB.open(this.dbName,this.version);o.addEventListener("upgradeneeded",n=>{n.target.result.createObjectStore(this.tableName)}),o.addEventListener("success",n=>{const i=n;this.db=i.target.result,this.dbOpen=!0,e()}),o.addEventListener("error",()=>r(re(hv)))})}closeConnection(){const e=this.db;e&&this.dbOpen&&(e.close(),this.dbOpen=!1)}async validateDbIsOpen(){if(!this.dbOpen)return this.open()}async getItem(e){return await this.validateDbIsOpen(),new Promise((r,o)=>{if(!this.db)return o(re(sa));const a=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).get(e);a.addEventListener("success",s=>{const l=s;this.closeConnection(),r(l.target.result)}),a.addEventListener("error",s=>{this.closeConnection(),o(s)})})}async setItem(e,r){return await this.validateDbIsOpen(),new Promise((o,n)=>{if(!this.db)return n(re(sa));const s=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).put(r,e);s.addEventListener("success",()=>{this.closeConnection(),o()}),s.addEventListener("error",l=>{this.closeConnection(),n(l)})})}async removeItem(e){return await this.validateDbIsOpen(),new Promise((r,o)=>{if(!this.db)return o(re(sa));const a=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).delete(e);a.addEventListener("success",()=>{this.closeConnection(),r()}),a.addEventListener("error",s=>{this.closeConnection(),o(s)})})}async getKeys(){return await this.validateDbIsOpen(),new Promise((e,r)=>{if(!this.db)return r(re(sa));const i=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).getAllKeys();i.addEventListener("success",a=>{const s=a;this.closeConnection(),e(s.target.result)}),i.addEventListener("error",a=>{this.closeConnection(),r(a)})})}async containsKey(e){return await this.validateDbIsOpen(),new Promise((r,o)=>{if(!this.db)return o(re(sa));const a=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).count(e);a.addEventListener("success",s=>{const l=s;this.closeConnection(),r(l.target.result===1)}),a.addEventListener("error",s=>{this.closeConnection(),o(s)})})}async deleteDatabase(){return this.db&&this.dbOpen&&this.closeConnection(),new Promise((e,r)=>{const o=window.indexedDB.deleteDatabase(Tg);o.addEventListener("success",()=>e(!0)),o.addEventListener("blocked",()=>e(!0)),o.addEventListener("error",()=>r(!1))})}}/*! @azure/msal-browser v3.7.1 2024-01-23 */class Bg{constructor(){this.cache=new Map}getItem(e){return this.cache.get(e)||null}setItem(e,r){this.cache.set(e,r)}removeItem(e){this.cache.delete(e)}getKeys(){const e=[];return this.cache.forEach((r,o)=>{e.push(o)}),e}containsKey(e){return this.cache.has(e)}clear(){this.cache.clear()}}/*! @azure/msal-browser v3.7.1 2024-01-23 */class U0{constructor(e,r){this.inMemoryCache=new Bg,this.indexedDBCache=new qR,this.logger=e,this.storeName=r}handleDatabaseAccessError(e){if(e instanceof rc&&e.errorCode===hv)this.logger.error("Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts.");else throw e}async getItem(e){const r=this.inMemoryCache.getItem(e);if(!r)try{return this.logger.verbose("Queried item not found in in-memory cache, now querying persistent storage."),await this.indexedDBCache.getItem(e)}catch(o){this.handleDatabaseAccessError(o)}return r}async setItem(e,r){this.inMemoryCache.setItem(e,r);try{await this.indexedDBCache.setItem(e,r)}catch(o){this.handleDatabaseAccessError(o)}}async removeItem(e){this.inMemoryCache.removeItem(e);try{await this.indexedDBCache.removeItem(e)}catch(r){this.handleDatabaseAccessError(r)}}async getKeys(){const e=this.inMemoryCache.getKeys();if(e.length===0)try{return this.logger.verbose("In-memory cache is empty, now querying persistent storage."),await this.indexedDBCache.getKeys()}catch(r){this.handleDatabaseAccessError(r)}return e}async containsKey(e){const r=this.inMemoryCache.containsKey(e);if(!r)try{return this.logger.verbose("Key not found in in-memory cache, now querying persistent storage."),await this.indexedDBCache.containsKey(e)}catch(o){this.handleDatabaseAccessError(o)}return r}clearInMemory(){this.logger.verbose(`Deleting in-memory keystore ${this.storeName}`),this.inMemoryCache.clear(),this.logger.verbose(`In-memory keystore ${this.storeName} deleted`)}async clearPersistent(){try{this.logger.verbose("Deleting persistent keystore");const e=await this.indexedDBCache.deleteDatabase();return e&&this.logger.verbose("Persistent keystore deleted"),e}catch(e){return this.handleDatabaseAccessError(e),!1}}}/*! @azure/msal-browser v3.7.1 2024-01-23 */const $0={asymmetricKeys:"asymmetricKeys",symmetricKeys:"symmetricKeys"};class LR{constructor(e){this.logger=e,this.asymmetricKeys=new U0(this.logger,$0.asymmetricKeys),this.symmetricKeys=new U0(this.logger,$0.symmetricKeys)}async clear(){this.asymmetricKeys.clearInMemory(),this.symmetricKeys.clearInMemory();try{return await this.asymmetricKeys.clearPersistent(),!0}catch(e){return e instanceof Error?this.logger.error(`Clearing keystore failed with error: ${e.message}`):this.logger.error("Clearing keystore failed with unknown error"),!1}}}/*! @azure/msal-browser v3.7.1 2024-01-23 */class Ka{constructor(e,r){this.logger=e,MR(e),this.cache=new LR(this.logger),this.performanceClient=r}createNewGuid(){return tn()}base64Encode(e){return vv(e)}base64Decode(e){return xo(e)}async getPublicKeyThumbprint(e){const r=this.performanceClient?.startMeasurement(N.CryptoOptsGetPublicKeyThumbprint,e.correlationId),o=await jR(Ka.EXTRACTABLE,Ka.POP_KEY_USAGES),n=await eh(o.publicKey),i={e:n.e,kty:n.kty,n:n.n},a=K0(i),s=await this.hashString(a),l=await eh(o.privateKey),c=await DR(l,!1,["sign"]);return await this.cache.asymmetricKeys.setItem(s,{privateKey:c,publicKey:o.publicKey,requestMethod:e.resourceRequestMethod,requestUri:e.resourceRequestUri}),r&&r.end({success:!0}),s}async removeTokenBindingKey(e){return await this.cache.asymmetricKeys.removeItem(e),!await this.cache.asymmetricKeys.containsKey(e)}async clearKeystore(){return this.cache.clear()}async signJwt(e,r,o,n){const i=this.performanceClient?.startMeasurement(N.CryptoOptsSignJwt,n),a=await this.cache.asymmetricKeys.getItem(r);if(!a)throw re(fv);const s=await eh(a.publicKey),l=K0(s),c=Jf(JSON.stringify({kid:r})),u=lv.getShrHeaderString({...o?.header,alg:s.alg,kid:c}),d=Jf(u);e.cnf={jwk:JSON.parse(l)};const f=Jf(JSON.stringify(e)),h=`${d}.${f}`,p=new TextEncoder().encode(h),w=await FR(a.privateKey,p),v=rd(new Uint8Array(w)),m=`${h}.${v}`;return i&&i.end({success:!0}),m}async hashString(e){const r=await b_(e),o=new Uint8Array(r);return rd(o)}}Ka.POP_KEY_USAGES=["sign","verify"];Ka.EXTRACTABLE=!0;function K0(t){return JSON.stringify(t,Object.keys(t).sort())}/*! @azure/msal-browser v3.7.1 2024-01-23 */const y_="storage_not_supported",Et="stubbed_public_client_application_called",w_="in_mem_redirect_unavailable";/*! @azure/msal-browser v3.7.1 2024-01-23 */const HR={[y_]:"Given storage configuration option was not supported.",[Et]:"Stub instance of Public Client Application was called. If using msal-react, please ensure context is not used without a provider. For more visit: aka.ms/msaljs/browser-errors",[w_]:"Redirect cannot be supported. In-memory storage was selected and storeAuthStateInCookie=false, which would cause the library to be unable to handle the incoming hash. If you would like to use the redirect API, please use session/localStorage or set storeAuthStateInCookie=true."};class yv extends We{constructor(e,r){super(e,r),this.name="BrowserConfigurationAuthError",Object.setPrototypeOf(this,yv.prototype)}}function yt(t){return new yv(t,HR[t])}/*! @azure/msal-browser v3.7.1 2024-01-23 */class W0{constructor(e){this.validateWindowStorage(e),this.windowStorage=window[e]}validateWindowStorage(e){if(e!==kt.LocalStorage&&e!==kt.SessionStorage||!window[e])throw yt(y_)}getItem(e){return this.windowStorage.getItem(e)}setItem(e,r){this.windowStorage.setItem(e,r)}removeItem(e){this.windowStorage.removeItem(e)}getKeys(){return Object.keys(this.windowStorage)}containsKey(e){return this.windowStorage.hasOwnProperty(e)}}/*! @azure/msal-browser v3.7.1 2024-01-23 */function k_(t,e){if(!e)return null;try{return ro.parseRequestState(t,e).libraryState.meta}catch{throw X(La)}}/*! @azure/msal-browser v3.7.1 2024-01-23 */class Ig extends Ha{constructor(e,r,o,n,i){super(e,o,n,i),this.COOKIE_LIFE_MULTIPLIER=24*60*60*1e3,this.cacheConfig=r,this.logger=n,this.internalStorage=new Bg,this.browserStorage=this.setupBrowserStorage(this.cacheConfig.cacheLocation),this.temporaryCacheStorage=this.setupTemporaryCacheStorage(this.cacheConfig.temporaryCacheLocation,this.cacheConfig.cacheLocation),r.cacheMigrationEnabled&&(this.migrateCacheEntries(),this.createKeyMaps())}setupBrowserStorage(e){switch(e){case kt.LocalStorage:case kt.SessionStorage:try{return new W0(e)}catch(r){this.logger.verbose(r);break}}return this.cacheConfig.cacheLocation=kt.MemoryStorage,new Bg}setupTemporaryCacheStorage(e,r){switch(r){case kt.LocalStorage:case kt.SessionStorage:try{return new W0(e||kt.SessionStorage)}catch(o){return this.logger.verbose(o),this.internalStorage}case kt.MemoryStorage:default:return this.internalStorage}}migrateCacheEntries(){const e=`${F.CACHE_PREFIX}.${At.ID_TOKEN}`,r=`${F.CACHE_PREFIX}.${At.CLIENT_INFO}`,o=`${F.CACHE_PREFIX}.${At.ERROR}`,n=`${F.CACHE_PREFIX}.${At.ERROR_DESC}`,i=this.browserStorage.getItem(e),a=this.browserStorage.getItem(r),s=this.browserStorage.getItem(o),l=this.browserStorage.getItem(n),c=[i,a,s,l];[At.ID_TOKEN,At.CLIENT_INFO,At.ERROR,At.ERROR_DESC].forEach((d,f)=>this.migrateCacheEntry(d,c[f]))}migrateCacheEntry(e,r){r&&this.setTemporaryCache(e,r,!0)}createKeyMaps(){this.logger.trace("BrowserCacheManager - createKeyMaps called.");const e=this.getItem(pn.ACCOUNT_KEYS),r=this.getItem(`${pn.TOKEN_KEYS}.${this.clientId}`);if(e&&r){this.logger.verbose("BrowserCacheManager:createKeyMaps - account and token key maps already exist, skipping migration.");return}this.browserStorage.getKeys().forEach(n=>{if(this.isCredentialKey(n)){const i=this.getItem(n);if(i){const a=this.validateAndParseJson(i);if(a&&a.hasOwnProperty("credentialType"))switch(a.credentialType){case ge.ID_TOKEN:if(C0(a)){this.logger.trace("BrowserCacheManager:createKeyMaps - idToken found, saving key to token key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - idToken with key: ${n} found, saving key to token key map`);const s=a,l=this.updateCredentialCacheKey(n,s);this.addTokenKey(l,ge.ID_TOKEN);return}else this.logger.trace("BrowserCacheManager:createKeyMaps - key found matching idToken schema with value containing idToken credentialType field but value failed IdTokenEntity validation, skipping."),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - failed idToken validation on key: ${n}`);break;case ge.ACCESS_TOKEN:case ge.ACCESS_TOKEN_WITH_AUTH_SCHEME:if(x0(a)){this.logger.trace("BrowserCacheManager:createKeyMaps - accessToken found, saving key to token key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - accessToken with key: ${n} found, saving key to token key map`);const s=a,l=this.updateCredentialCacheKey(n,s);this.addTokenKey(l,ge.ACCESS_TOKEN);return}else this.logger.trace("BrowserCacheManager:createKeyMaps - key found matching accessToken schema with value containing accessToken credentialType field but value failed AccessTokenEntity validation, skipping."),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - failed accessToken validation on key: ${n}`);break;case ge.REFRESH_TOKEN:if(T0(a)){this.logger.trace("BrowserCacheManager:createKeyMaps - refreshToken found, saving key to token key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - refreshToken with key: ${n} found, saving key to token key map`);const s=a,l=this.updateCredentialCacheKey(n,s);this.addTokenKey(l,ge.REFRESH_TOKEN);return}else this.logger.trace("BrowserCacheManager:createKeyMaps - key found matching refreshToken schema with value containing refreshToken credentialType field but value failed RefreshTokenEntity validation, skipping."),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - failed refreshToken validation on key: ${n}`);break}}}if(this.isAccountKey(n)){const i=this.getItem(n);if(i){const a=this.validateAndParseJson(i);a&&xt.isAccountEntity(a)&&(this.logger.trace("BrowserCacheManager:createKeyMaps - account found, saving key to account key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - account with key: ${n} found, saving key to account key map`),this.addAccountKeyToMap(n))}}})}validateAndParseJson(e){try{const r=JSON.parse(e);return r&&typeof r=="object"?r:null}catch{return null}}getItem(e){return this.browserStorage.getItem(e)}setItem(e,r){this.browserStorage.setItem(e,r)}getAccount(e,r){this.logger.trace("BrowserCacheManager.getAccount called");const o=this.getCachedAccountEntity(e);return this.updateOutdatedCachedAccount(e,o,r)}getCachedAccountEntity(e){const r=this.getItem(e);if(!r)return this.removeAccountKeyFromMap(e),null;const o=this.validateAndParseJson(r);return!o||!xt.isAccountEntity(o)?(this.removeAccountKeyFromMap(e),null):Ha.toObject(new xt,o)}setAccount(e){this.logger.trace("BrowserCacheManager.setAccount called");const r=e.generateAccountKey();this.setItem(r,JSON.stringify(e)),this.addAccountKeyToMap(r)}getAccountKeys(){this.logger.trace("BrowserCacheManager.getAccountKeys called");const e=this.getItem(pn.ACCOUNT_KEYS);return e?JSON.parse(e):(this.logger.verbose("BrowserCacheManager.getAccountKeys - No account keys found"),[])}addAccountKeyToMap(e){this.logger.trace("BrowserCacheManager.addAccountKeyToMap called"),this.logger.tracePii(`BrowserCacheManager.addAccountKeyToMap called with key: ${e}`);const r=this.getAccountKeys();r.indexOf(e)===-1?(r.push(e),this.setItem(pn.ACCOUNT_KEYS,JSON.stringify(r)),this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key added")):this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key already exists in map")}removeAccountKeyFromMap(e){this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap called"),this.logger.tracePii(`BrowserCacheManager.removeAccountKeyFromMap called with key: ${e}`);const r=this.getAccountKeys(),o=r.indexOf(e);o>-1?(r.splice(o,1),this.setItem(pn.ACCOUNT_KEYS,JSON.stringify(r)),this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap account key removed")):this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap key not found in existing map")}async removeAccount(e){super.removeAccount(e),this.removeAccountKeyFromMap(e)}removeOutdatedAccount(e){this.removeItem(e),this.removeAccountKeyFromMap(e)}removeIdToken(e){super.removeIdToken(e),this.removeTokenKey(e,ge.ID_TOKEN)}async removeAccessToken(e){super.removeAccessToken(e),this.removeTokenKey(e,ge.ACCESS_TOKEN)}removeRefreshToken(e){super.removeRefreshToken(e),this.removeTokenKey(e,ge.REFRESH_TOKEN)}getTokenKeys(){this.logger.trace("BrowserCacheManager.getTokenKeys called");const e=this.getItem(`${pn.TOKEN_KEYS}.${this.clientId}`);if(e){const r=this.validateAndParseJson(e);if(r&&r.hasOwnProperty("idToken")&&r.hasOwnProperty("accessToken")&&r.hasOwnProperty("refreshToken"))return r;this.logger.error("BrowserCacheManager.getTokenKeys - Token keys found but in an unknown format. Returning empty key map.")}else this.logger.verbose("BrowserCacheManager.getTokenKeys - No token keys found");return{idToken:[],accessToken:[],refreshToken:[]}}addTokenKey(e,r){this.logger.trace("BrowserCacheManager addTokenKey called");const o=this.getTokenKeys();switch(r){case ge.ID_TOKEN:o.idToken.indexOf(e)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - idToken added to map"),o.idToken.push(e));break;case ge.ACCESS_TOKEN:o.accessToken.indexOf(e)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - accessToken added to map"),o.accessToken.push(e));break;case ge.REFRESH_TOKEN:o.refreshToken.indexOf(e)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - refreshToken added to map"),o.refreshToken.push(e));break;default:throw this.logger.error(`BrowserCacheManager:addTokenKey - CredentialType provided invalid. CredentialType: ${r}`),X(wg)}this.setItem(`${pn.TOKEN_KEYS}.${this.clientId}`,JSON.stringify(o))}removeTokenKey(e,r){this.logger.trace("BrowserCacheManager removeTokenKey called");const o=this.getTokenKeys();switch(r){case ge.ID_TOKEN:this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove idToken with key: ${e} from map`);const n=o.idToken.indexOf(e);n>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - idToken removed from map"),o.idToken.splice(n,1)):this.logger.info("BrowserCacheManager: removeTokenKey - idToken does not exist in map. Either it was previously removed or it was never added.");break;case ge.ACCESS_TOKEN:this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove accessToken with key: ${e} from map`);const i=o.accessToken.indexOf(e);i>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - accessToken removed from map"),o.accessToken.splice(i,1)):this.logger.info("BrowserCacheManager: removeTokenKey - accessToken does not exist in map. Either it was previously removed or it was never added.");break;case ge.REFRESH_TOKEN:this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove refreshToken with key: ${e} from map`);const a=o.refreshToken.indexOf(e);a>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken removed from map"),o.refreshToken.splice(a,1)):this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken does not exist in map. Either it was previously removed or it was never added.");break;default:throw this.logger.error(`BrowserCacheManager:removeTokenKey - CredentialType provided invalid. CredentialType: ${r}`),X(wg)}this.setItem(`${pn.TOKEN_KEYS}.${this.clientId}`,JSON.stringify(o))}getIdTokenCredential(e){const r=this.getItem(e);if(!r)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(e,ge.ID_TOKEN),null;const o=this.validateAndParseJson(r);return!o||!C0(o)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(e,ge.ID_TOKEN),null):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),o)}setIdTokenCredential(e){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");const r=da(e);this.setItem(r,JSON.stringify(e)),this.addTokenKey(r,ge.ID_TOKEN)}getAccessTokenCredential(e){const r=this.getItem(e);if(!r)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(e,ge.ACCESS_TOKEN),null;const o=this.validateAndParseJson(r);return!o||!x0(o)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(e,ge.ACCESS_TOKEN),null):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),o)}setAccessTokenCredential(e){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");const r=da(e);this.setItem(r,JSON.stringify(e)),this.addTokenKey(r,ge.ACCESS_TOKEN)}getRefreshTokenCredential(e){const r=this.getItem(e);if(!r)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(e,ge.REFRESH_TOKEN),null;const o=this.validateAndParseJson(r);return!o||!T0(o)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(e,ge.REFRESH_TOKEN),null):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),o)}setRefreshTokenCredential(e){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");const r=da(e);this.setItem(r,JSON.stringify(e)),this.addTokenKey(r,ge.REFRESH_TOKEN)}getAppMetadata(e){const r=this.getItem(e);if(!r)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;const o=this.validateAndParseJson(r);return!o||!OB(e,o)?(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),o)}setAppMetadata(e){this.logger.trace("BrowserCacheManager.setAppMetadata called");const r=MB(e);this.setItem(r,JSON.stringify(e))}getServerTelemetry(e){const r=this.getItem(e);if(!r)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;const o=this.validateAndParseJson(r);return!o||!PB(e,o)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),o)}setServerTelemetry(e,r){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(e,JSON.stringify(r))}getAuthorityMetadata(e){const r=this.internalStorage.getItem(e);if(!r)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;const o=this.validateAndParseJson(r);return o&&jB(e,o)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),o):null}getAuthorityMetadataKeys(){return this.internalStorage.getKeys().filter(r=>this.isAuthorityMetadata(r))}setWrapperMetadata(e,r){this.internalStorage.setItem(Bc.WRAPPER_SKU,e),this.internalStorage.setItem(Bc.WRAPPER_VER,r)}getWrapperMetadata(){const e=this.internalStorage.getItem(Bc.WRAPPER_SKU)||F.EMPTY_STRING,r=this.internalStorage.getItem(Bc.WRAPPER_VER)||F.EMPTY_STRING;return[e,r]}setAuthorityMetadata(e,r){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(e,JSON.stringify(r))}getActiveAccount(){const e=this.generateCacheKey(At.ACTIVE_ACCOUNT_FILTERS),r=this.getItem(e);if(!r){this.logger.trace("BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema");const n=this.generateCacheKey(At.ACTIVE_ACCOUNT),i=this.getItem(n);if(!i)return this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null;const a=this.getAccountInfoFilteredBy({localAccountId:i});return a?(this.logger.trace("BrowserCacheManager.getActiveAccount: Legacy active account cache schema found"),this.logger.trace("BrowserCacheManager.getActiveAccount: Adding active account filters cache schema"),this.setActiveAccount(a),a):null}const o=this.validateAndParseJson(r);return o?(this.logger.trace("BrowserCacheManager.getActiveAccount: Active account filters schema found"),this.getAccountInfoFilteredBy({homeAccountId:o.homeAccountId,localAccountId:o.localAccountId,tenantId:o.tenantId})):(this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null)}setActiveAccount(e){const r=this.generateCacheKey(At.ACTIVE_ACCOUNT_FILTERS),o=this.generateCacheKey(At.ACTIVE_ACCOUNT);if(e){this.logger.verbose("setActiveAccount: Active account set");const n={homeAccountId:e.homeAccountId,localAccountId:e.localAccountId,tenantId:e.tenantId};this.browserStorage.setItem(r,JSON.stringify(n)),this.browserStorage.setItem(o,e.localAccountId)}else this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(r),this.browserStorage.removeItem(o)}getThrottlingCache(e){const r=this.getItem(e);if(!r)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;const o=this.validateAndParseJson(r);return!o||!zB(e,o)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),o)}setThrottlingCache(e,r){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(e,JSON.stringify(r))}getTemporaryCache(e,r){const o=r?this.generateCacheKey(e):e;if(this.cacheConfig.storeAuthStateInCookie){const i=this.getItemCookie(o);if(i)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),i}const n=this.temporaryCacheStorage.getItem(o);if(!n){if(this.cacheConfig.cacheLocation===kt.LocalStorage){const i=this.browserStorage.getItem(o);if(i)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),i}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),n}setTemporaryCache(e,r,o){const n=o?this.generateCacheKey(e):e;this.temporaryCacheStorage.setItem(n,r),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.setItemCookie(n,r))}removeItem(e){this.browserStorage.removeItem(e),this.temporaryCacheStorage.removeItem(e),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"),this.clearItemCookie(e))}containsKey(e){return this.browserStorage.containsKey(e)||this.temporaryCacheStorage.containsKey(e)}getKeys(){return[...this.browserStorage.getKeys(),...this.temporaryCacheStorage.getKeys()]}async clear(){await this.removeAllAccounts(),this.removeAppMetadata(),this.getKeys().forEach(e=>{(this.browserStorage.containsKey(e)||this.temporaryCacheStorage.containsKey(e))&&(e.indexOf(F.CACHE_PREFIX)!==-1||e.indexOf(this.clientId)!==-1)&&this.removeItem(e)}),this.internalStorage.clear()}async clearTokensAndKeysWithClaims(e){e.addQueueMeasurement(N.ClearTokensAndKeysWithClaims);const r=this.getTokenKeys(),o=[];r.accessToken.forEach(n=>{const i=this.getAccessTokenCredential(n);i?.requestedClaimsHash&&n.includes(i.requestedClaimsHash.toLowerCase())&&o.push(this.removeAccessToken(n))}),await Promise.all(o),o.length>0&&this.logger.warning(`${o.length} access tokens with claims in the cache keys have been removed from the cache.`)}setItemCookie(e,r,o){let n=`${encodeURIComponent(e)}=${encodeURIComponent(r)};path=/;SameSite=Lax;`;if(o){const i=this.getCookieExpirationTime(o);n+=`expires=${i};`}this.cacheConfig.secureCookies&&(n+="Secure;"),document.cookie=n}getItemCookie(e){const r=`${encodeURIComponent(e)}=`,o=document.cookie.split(";");for(let n=0;n{for(;o.charAt(0)===" ";)o=o.substring(1);if(o.indexOf(e)===0){const n=o.split("=")[0];this.clearItemCookie(n)}})}clearItemCookie(e){this.setItemCookie(e,F.EMPTY_STRING,-1)}getCookieExpirationTime(e){const r=new Date;return new Date(r.getTime()+e*this.COOKIE_LIFE_MULTIPLIER).toUTCString()}getCache(){return this.browserStorage}setCache(){}generateCacheKey(e){return this.validateAndParseJson(e)?JSON.stringify(e):to.startsWith(e,F.CACHE_PREFIX)||to.startsWith(e,At.ADAL_ID_TOKEN)?e:`${F.CACHE_PREFIX}.${this.clientId}.${e}`}generateAuthorityKey(e){const{libraryState:{id:r}}=ro.parseRequestState(this.cryptoImpl,e);return this.generateCacheKey(`${Te.AUTHORITY}.${r}`)}generateNonceKey(e){const{libraryState:{id:r}}=ro.parseRequestState(this.cryptoImpl,e);return this.generateCacheKey(`${Te.NONCE_IDTOKEN}.${r}`)}generateStateKey(e){const{libraryState:{id:r}}=ro.parseRequestState(this.cryptoImpl,e);return this.generateCacheKey(`${Te.REQUEST_STATE}.${r}`)}getCachedAuthority(e){const r=this.generateStateKey(e),o=this.getTemporaryCache(r);if(!o)return null;const n=this.generateAuthorityKey(o);return this.getTemporaryCache(n)}updateCacheEntries(e,r,o,n,i){this.logger.trace("BrowserCacheManager.updateCacheEntries called");const a=this.generateStateKey(e);this.setTemporaryCache(a,e,!1);const s=this.generateNonceKey(e);this.setTemporaryCache(s,r,!1);const l=this.generateAuthorityKey(e);if(this.setTemporaryCache(l,o,!1),i){const c={credential:i.homeAccountId,type:vr.HOME_ACCOUNT_ID};this.setTemporaryCache(Te.CCS_CREDENTIAL,JSON.stringify(c),!0)}else if(n){const c={credential:n,type:vr.UPN};this.setTemporaryCache(Te.CCS_CREDENTIAL,JSON.stringify(c),!0)}}resetRequestCache(e){this.logger.trace("BrowserCacheManager.resetRequestCache called"),e&&(this.getKeys().forEach(r=>{r.indexOf(e)!==-1&&this.removeItem(r)}),this.removeItem(this.generateStateKey(e)),this.removeItem(this.generateNonceKey(e)),this.removeItem(this.generateAuthorityKey(e))),this.removeItem(this.generateCacheKey(Te.REQUEST_PARAMS)),this.removeItem(this.generateCacheKey(Te.ORIGIN_URI)),this.removeItem(this.generateCacheKey(Te.URL_HASH)),this.removeItem(this.generateCacheKey(Te.CORRELATION_ID)),this.removeItem(this.generateCacheKey(Te.CCS_CREDENTIAL)),this.removeItem(this.generateCacheKey(Te.NATIVE_REQUEST)),this.setInteractionInProgress(!1)}cleanRequestByState(e){if(this.logger.trace("BrowserCacheManager.cleanRequestByState called"),e){const r=this.generateStateKey(e),o=this.temporaryCacheStorage.getItem(r);this.logger.infoPii(`BrowserCacheManager.cleanRequestByState: Removing temporary cache items for state: ${o}`),this.resetRequestCache(o||F.EMPTY_STRING)}this.clearMsalCookies()}cleanRequestByInteractionType(e){this.logger.trace("BrowserCacheManager.cleanRequestByInteractionType called"),this.getKeys().forEach(r=>{if(r.indexOf(Te.REQUEST_STATE)===-1)return;const o=this.temporaryCacheStorage.getItem(r);if(!o)return;const n=k_(this.cryptoImpl,o);n&&n.interactionType===e&&(this.logger.infoPii(`BrowserCacheManager.cleanRequestByInteractionType: Removing temporary cache items for state: ${o}`),this.resetRequestCache(o))}),this.clearMsalCookies(),this.setInteractionInProgress(!1)}cacheCodeRequest(e){this.logger.trace("BrowserCacheManager.cacheCodeRequest called");const r=vv(JSON.stringify(e));this.setTemporaryCache(Te.REQUEST_PARAMS,r,!0)}getCachedRequest(e){this.logger.trace("BrowserCacheManager.getCachedRequest called");const r=this.getTemporaryCache(Te.REQUEST_PARAMS,!0);if(!r)throw re(e_);let o;try{o=JSON.parse(xo(r))}catch(n){throw this.logger.errorPii(`Attempted to parse: ${r}`),this.logger.error(`Parsing cached token request threw with error: ${n}`),re(t_)}if(this.removeItem(this.generateCacheKey(Te.REQUEST_PARAMS)),!o.authority){const n=this.generateAuthorityKey(e),i=this.getTemporaryCache(n);if(!i)throw re(dv);o.authority=i}return o}getCachedNativeRequest(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");const e=this.getTemporaryCache(Te.NATIVE_REQUEST,!0);if(!e)return this.logger.trace("BrowserCacheManager.getCachedNativeRequest: No cached native request found"),null;const r=this.validateAndParseJson(e);return r||(this.logger.error("BrowserCacheManager.getCachedNativeRequest: Unable to parse native request"),null)}isInteractionInProgress(e){const r=this.getInteractionInProgress();return e?r===this.clientId:!!r}getInteractionInProgress(){const e=`${F.CACHE_PREFIX}.${Te.INTERACTION_STATUS_KEY}`;return this.getTemporaryCache(e,!1)}setInteractionInProgress(e){const r=`${F.CACHE_PREFIX}.${Te.INTERACTION_STATUS_KEY}`;if(e){if(this.getInteractionInProgress())throw re(KS);this.setTemporaryCache(r,this.clientId,!1)}else!e&&this.getInteractionInProgress()===this.clientId&&this.removeItem(r)}getLegacyLoginHint(){const e=this.getTemporaryCache(At.ADAL_ID_TOKEN);e&&(this.browserStorage.removeItem(At.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));const r=this.getTemporaryCache(At.ID_TOKEN,!0);r&&(this.removeItem(this.generateCacheKey(At.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));const o=r||e;if(o){const n=Hi(o,xo);if(n.preferred_username)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 preferred_username as loginHint"),n.preferred_username;if(n.upn)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 upn as loginHint"),n.upn;this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, however, no account hint claim found. Enable preferred_username or upn id token claim to get SSO.")}return null}updateCredentialCacheKey(e,r){const o=da(r);if(e!==o){const n=this.getItem(e);if(n)return this.removeItem(e),this.setItem(o,n),this.logger.verbose(`Updated an outdated ${r.credentialType} cache key`),o;this.logger.error(`Attempted to update an outdated ${r.credentialType} cache key but no item matching the outdated key was found in storage`)}return e}getRedirectRequestContext(){return this.getTemporaryCache(Te.REDIRECT_CONTEXT,!0)}setRedirectRequestContext(e){this.setTemporaryCache(Te.REDIRECT_CONTEXT,e,!0)}async hydrateCache(e,r){const o=Xd(e.account?.homeAccountId,e.account?.environment,e.idToken,this.clientId,e.tenantId);let n;r.claims&&(n=await this.cryptoImpl.hashString(r.claims));const i=Yd(e.account?.homeAccountId,e.account.environment,e.accessToken,this.clientId,e.tenantId,e.scopes.join(" "),e.expiresOn?.getTime()||0,e.extExpiresOn?.getTime()||0,xo,void 0,e.tokenType,void 0,r.sshKid,r.claims,n),a=new Ca(void 0,o,i);return this.saveCacheRecord(a)}}const UR=(t,e)=>{const r={cacheLocation:kt.MemoryStorage,temporaryCacheLocation:kt.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!1};return new Ig(t,r,Gu,e)};/*! @azure/msal-browser v3.7.1 2024-01-23 */const se={INITIALIZE_START:"msal:initializeStart",INITIALIZE_END:"msal:initializeEnd",ACCOUNT_ADDED:"msal:accountAdded",ACCOUNT_REMOVED:"msal:accountRemoved",LOGIN_START:"msal:loginStart",LOGIN_SUCCESS:"msal:loginSuccess",LOGIN_FAILURE:"msal:loginFailure",ACQUIRE_TOKEN_START:"msal:acquireTokenStart",ACQUIRE_TOKEN_SUCCESS:"msal:acquireTokenSuccess",ACQUIRE_TOKEN_FAILURE:"msal:acquireTokenFailure",ACQUIRE_TOKEN_NETWORK_START:"msal:acquireTokenFromNetworkStart",SSO_SILENT_START:"msal:ssoSilentStart",SSO_SILENT_SUCCESS:"msal:ssoSilentSuccess",SSO_SILENT_FAILURE:"msal:ssoSilentFailure",ACQUIRE_TOKEN_BY_CODE_START:"msal:acquireTokenByCodeStart",ACQUIRE_TOKEN_BY_CODE_SUCCESS:"msal:acquireTokenByCodeSuccess",ACQUIRE_TOKEN_BY_CODE_FAILURE:"msal:acquireTokenByCodeFailure",HANDLE_REDIRECT_START:"msal:handleRedirectStart",HANDLE_REDIRECT_END:"msal:handleRedirectEnd",POPUP_OPENED:"msal:popupOpened",LOGOUT_START:"msal:logoutStart",LOGOUT_SUCCESS:"msal:logoutSuccess",LOGOUT_FAILURE:"msal:logoutFailure",LOGOUT_END:"msal:logoutEnd",RESTORE_FROM_BFCACHE:"msal:restoreFromBFCache"};/*! @azure/msal-browser v3.7.1 2024-01-23 */class $R{constructor(e,r){this.eventCallbacks=new Map,this.logger=e,this.browserCrypto=r,this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}addEventCallback(e){if(typeof window<"u"){const r=tn();return this.eventCallbacks.set(r,e),this.logger.verbose(`Event callback registered with id: ${r}`),r}return null}removeEventCallback(e){this.eventCallbacks.delete(e),this.logger.verbose(`Event callback ${e} removed.`)}enableAccountStorageEvents(){typeof window>"u"||(this.listeningToStorageEvents?this.logger.verbose("Account storage listener already registered."):(this.logger.verbose("Adding account storage listener."),this.listeningToStorageEvents=!0,window.addEventListener("storage",this.handleAccountCacheChange)))}disableAccountStorageEvents(){typeof window>"u"||(this.listeningToStorageEvents?(this.logger.verbose("Removing account storage listener."),window.removeEventListener("storage",this.handleAccountCacheChange),this.listeningToStorageEvents=!1):this.logger.verbose("No account storage listener registered."))}emitEvent(e,r,o,n){if(typeof window<"u"){const i={eventType:e,interactionType:r||null,payload:o||null,error:n||null,timestamp:Date.now()};this.logger.info(`Emitting event: ${e}`),this.eventCallbacks.forEach((a,s)=>{this.logger.verbose(`Emitting event to callback ${s}: ${e}`),a.apply(null,[i])})}}handleAccountCacheChange(e){try{const r=e.newValue||e.oldValue;if(!r)return;const o=JSON.parse(r);if(typeof o!="object"||!xt.isAccountEntity(o))return;const i=Ha.toObject(new xt,o).getAccountInfo();!e.oldValue&&e.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(se.ACCOUNT_ADDED,void 0,i)):!e.newValue&&e.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(se.ACCOUNT_REMOVED,void 0,i))}catch{return}}}/*! @azure/msal-browser v3.7.1 2024-01-23 */class S_{constructor(e,r,o,n,i,a,s,l,c){this.config=e,this.browserStorage=r,this.browserCrypto=o,this.networkClient=this.config.system.networkClient,this.eventHandler=i,this.navigationClient=a,this.nativeMessageHandler=l,this.correlationId=c||tn(),this.logger=n.clone(Xr.MSAL_SKU,pv,this.correlationId),this.performanceClient=s}async clearCacheOnLogout(e){if(e){xt.accountInfoIsEqual(e,this.browserStorage.getActiveAccount(),!1)&&(this.logger.verbose("Setting active account to null"),this.browserStorage.setActiveAccount(null));try{await this.browserStorage.removeAccount(xt.generateAccountCacheKey(e)),this.logger.verbose("Cleared cache items belonging to the account provided in the logout request.")}catch{this.logger.error("Account provided in logout request was not found. Local cache unchanged.")}}else try{this.logger.verbose("No account provided in logout request, clearing all cache items.",this.correlationId),await this.browserStorage.clear(),await this.browserCrypto.clearKeystore()}catch{this.logger.error("Attempted to clear all MSAL cache items and failed. Local cache unchanged.")}}async initializeBaseRequest(e,r){this.performanceClient.addQueueMeasurement(N.InitializeBaseRequest,this.correlationId);const o=e.authority||this.config.auth.authority;r&&await this.validateRequestAuthority(o,r);const n=[...e&&e.scopes||[]],i={...e,correlationId:this.correlationId,authority:o,scopes:n};if(!i.authenticationScheme)i.authenticationScheme=Ie.BEARER,this.logger.verbose(`Authentication Scheme wasn't explicitly set in request, defaulting to "Bearer" request`);else{if(i.authenticationScheme===Ie.SSH){if(!e.sshJwk)throw Ne(Zd);if(!e.sshKid)throw Ne(TS)}this.logger.verbose(`Authentication Scheme set to "${i.authenticationScheme}" as configured in Auth request`)}return this.config.cache.claimsBasedCachingEnabled&&e.claims&&!to.isEmptyObj(e.claims)&&(i.requestedClaimsHash=await this.browserCrypto.hashString(e.claims)),i}getRedirectUri(e){this.logger.verbose("getRedirectUri called");const r=e||this.config.auth.redirectUri||Ko();return xe.getAbsoluteUrl(r,Ko())}async validateRequestAuthority(e,r){if(!(await this.getDiscoveredAuthority(e)).isAlias(r.environment))throw Ne(IS)}initializeServerTelemetryManager(e,r){this.logger.verbose("initializeServerTelemetryManager called");const o={clientId:this.config.auth.clientId,correlationId:this.correlationId,apiId:e,forceRefresh:r||!1,wrapperSKU:this.browserStorage.getWrapperMetadata()[0],wrapperVer:this.browserStorage.getWrapperMetadata()[1]};return new Ju(o,this.browserStorage)}async getDiscoveredAuthority(e){this.logger.verbose("getDiscoveredAuthority called");const r={protocolMode:this.config.auth.protocolMode,OIDCOptions:this.config.auth.OIDCOptions,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata},o=e||this.config.auth.authority;return this.logger.verbose(`Creating discovered authority with ${o}`),Jd(o,this.config.system.networkClient,this.browserStorage,r,this.logger,this.correlationId,this.performanceClient)}}/*! @azure/msal-browser v3.7.1 2024-01-23 */const KR=32;async function WR(t,e,r){t.addQueueMeasurement(N.GeneratePkceCodes,r);const o=Ui(VR,N.GenerateCodeVerifier,e,t,r)(t,e,r),n=await ee(GR,N.GenerateCodeChallengeFromVerifier,e,t,r)(o,t,e,r);return{verifier:o,challenge:n}}function VR(t,e,r){try{const o=new Uint8Array(KR);return Ui(OR,N.GetRandomValues,e,t,r)(o),rd(o)}catch{throw re(cv)}}async function GR(t,e,r,o){e.addQueueMeasurement(N.GenerateCodeChallengeFromVerifier,o);try{const n=await ee(b_,N.Sha256Digest,r,e,o)(t,e,o);return rd(new Uint8Array(n))}catch{throw re(cv)}}/*! @azure/msal-browser v3.7.1 2024-01-23 */class us extends S_{async initializeAuthorizationCodeRequest(e){this.performanceClient.addQueueMeasurement(N.StandardInteractionClientInitializeAuthorizationCodeRequest,this.correlationId);const r=await ee(WR,N.GeneratePkceCodes,this.logger,this.performanceClient,this.correlationId)(this.performanceClient,this.logger,this.correlationId),o={...e,redirectUri:e.redirectUri,code:F.EMPTY_STRING,codeVerifier:r.verifier};return e.codeChallenge=r.challenge,e.codeChallengeMethod=F.S256_CODE_CHALLENGE_METHOD,o}initializeLogoutRequest(e){this.logger.verbose("initializeLogoutRequest called",e?.correlationId);const r={correlationId:this.correlationId||tn(),...e};if(e)if(e.logoutHint)this.logger.verbose("logoutHint has already been set in logoutRequest");else if(e.account){const o=this.getLogoutHintFromIdTokenClaims(e.account);o&&(this.logger.verbose("Setting logoutHint to login_hint ID Token Claim value for the account provided"),r.logoutHint=o)}else this.logger.verbose("logoutHint was not set and account was not passed into logout request, logoutHint will not be set");else this.logger.verbose("logoutHint will not be set since no logout request was configured");return!e||e.postLogoutRedirectUri!==null?e&&e.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request",r.correlationId),r.postLogoutRedirectUri=xe.getAbsoluteUrl(e.postLogoutRedirectUri,Ko())):this.config.auth.postLogoutRedirectUri===null?this.logger.verbose("postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect",r.correlationId):this.config.auth.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to configured uri",r.correlationId),r.postLogoutRedirectUri=xe.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,Ko())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",r.correlationId),r.postLogoutRedirectUri=xe.getAbsoluteUrl(Ko(),Ko())):this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri",r.correlationId),r}getLogoutHintFromIdTokenClaims(e){const r=e.idTokenClaims;if(r){if(r.login_hint)return r.login_hint;this.logger.verbose("The ID Token Claims tied to the provided account do not contain a login_hint claim, logoutHint will not be added to logout request")}else this.logger.verbose("The provided account does not contain ID Token Claims, logoutHint will not be added to logout request");return null}async createAuthCodeClient(e,r,o){this.performanceClient.addQueueMeasurement(N.StandardInteractionClientCreateAuthCodeClient,this.correlationId);const n=await ee(this.getClientConfiguration.bind(this),N.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,this.correlationId)(e,r,o);return new jS(n,this.performanceClient)}async getClientConfiguration(e,r,o){this.performanceClient.addQueueMeasurement(N.StandardInteractionClientGetClientConfiguration,this.correlationId);const n=await ee(this.getDiscoveredAuthority.bind(this),N.StandardInteractionClientGetDiscoveredAuthority,this.logger,this.performanceClient,this.correlationId)(r,o),i=this.config.system.loggerOptions;return{authOptions:{clientId:this.config.auth.clientId,authority:n,clientCapabilities:this.config.auth.clientCapabilities},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:i.loggerCallback,piiLoggingEnabled:i.piiLoggingEnabled,logLevel:i.logLevel,correlationId:this.correlationId},cacheOptions:{claimsBasedCachingEnabled:this.config.cache.claimsBasedCachingEnabled},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:e,libraryInfo:{sku:Xr.MSAL_SKU,version:pv,cpu:F.EMPTY_STRING,os:F.EMPTY_STRING},telemetry:this.config.telemetry}}async getDiscoveredAuthority(e,r){this.performanceClient.addQueueMeasurement(N.StandardInteractionClientGetDiscoveredAuthority,this.correlationId);const o={protocolMode:this.config.auth.protocolMode,OIDCOptions:this.config.auth.OIDCOptions,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache},n=e||this.config.auth.authority,i=qt.generateAuthority(n,r||this.config.auth.azureCloudOptions);return ee(Jd.bind($I),N.AuthorityFactoryCreateDiscoveredInstance,this.logger,this.performanceClient,this.correlationId)(i,this.config.system.networkClient,this.browserStorage,o,this.logger,this.correlationId,this.performanceClient)}async initializeAuthorizationRequest(e,r){this.performanceClient.addQueueMeasurement(N.StandardInteractionClientInitializeAuthorizationRequest,this.correlationId);const o=this.getRedirectUri(e.redirectUri),n={interactionType:r},i=ro.setRequestState(this.browserCrypto,e&&e.state||F.EMPTY_STRING,n),s={...await ee(this.initializeBaseRequest.bind(this),N.InitializeBaseRequest,this.logger,this.performanceClient,this.correlationId)(e),redirectUri:o,state:i,nonce:e.nonce||tn(),responseMode:this.config.auth.OIDCOptions.serverResponseType},l=e.account||this.browserStorage.getActiveAccount();if(l&&(this.logger.verbose("Setting validated request account",this.correlationId),this.logger.verbosePii(`Setting validated request account: ${l.homeAccountId}`,this.correlationId),s.account=l),!s.loginHint&&!l){const c=this.browserStorage.getLegacyLoginHint();c&&(s.loginHint=c)}return s}}/*! @azure/msal-browser v3.7.1 2024-01-23 */const XR="ContentError",__="user_switch";/*! @azure/msal-browser v3.7.1 2024-01-23 */const YR="USER_INTERACTION_REQUIRED",ZR="USER_CANCEL",QR="NO_NETWORK",JR="PERSISTENT_ERROR",eA="DISABLED",tA="ACCOUNT_UNAVAILABLE";/*! @azure/msal-browser v3.7.1 2024-01-23 */const rA=-2147186943,oA={[__]:"User attempted to switch accounts in the native broker, which is not allowed. All new accounts must sign-in through the standard web flow first, please try again."};class Uo extends We{constructor(e,r,o){super(e,r),Object.setPrototypeOf(this,Uo.prototype),this.name="NativeAuthError",this.ext=o}}function la(t){if(t.ext&&t.ext.status&&(t.ext.status===JR||t.ext.status===eA)||t.ext&&t.ext.error&&t.ext.error===rA)return!0;switch(t.errorCode){case XR:return!0;default:return!1}}function Rg(t,e,r){if(r&&r.status)switch(r.status){case tA:return _g(OS);case YR:return new ao(t,e);case ZR:return re(Ri);case QR:return re(ed)}return new Uo(t,oA[t]||e,r)}/*! @azure/msal-browser v3.7.1 2024-01-23 */class x_ extends us{async acquireToken(e){this.performanceClient.addQueueMeasurement(N.SilentCacheClientAcquireToken,e.correlationId);const r=this.initializeServerTelemetryManager(je.acquireTokenSilent_silentFlow),o=await this.createSilentFlowClient(r,e.authority,e.azureCloudOptions);this.logger.verbose("Silent auth client created");try{const i=(await ee(o.acquireCachedToken.bind(o),N.SilentFlowClientAcquireCachedToken,this.logger,this.performanceClient,e.correlationId)(e))[0];return this.performanceClient.addFields({fromCache:!0},e.correlationId),i}catch(n){throw n instanceof rc&&n.errorCode===fv&&this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),n}}logout(e){this.logger.verbose("logoutRedirect called");const r=this.initializeLogoutRequest(e);return this.clearCacheOnLogout(r?.account)}async createSilentFlowClient(e,r,o){const n=await ee(this.getClientConfiguration.bind(this),N.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,this.correlationId)(e,r,o);return new JI(n,this.performanceClient)}async initializeSilentRequest(e,r){this.performanceClient.addQueueMeasurement(N.InitializeSilentRequest,this.correlationId);const o=await ee(this.initializeBaseRequest.bind(this),N.InitializeBaseRequest,this.logger,this.performanceClient,this.correlationId)(e,r);return{...e,...o,account:r,forceRefresh:e.forceRefresh||!1}}}/*! @azure/msal-browser v3.7.1 2024-01-23 */const th={BROKER_CLIENT_ID:"brk_client_id",BROKER_REDIRECT_URI:"brk_redirect_uri"};class Ta extends S_{constructor(e,r,o,n,i,a,s,l,c,u,d,f){super(e,r,o,n,i,a,l,c,f),this.apiId=s,this.accountId=u,this.nativeMessageHandler=c,this.nativeStorageManager=d,this.silentCacheClient=new x_(e,this.nativeStorageManager,o,n,i,a,l,c,f)}async acquireToken(e){this.performanceClient.addQueueMeasurement(N.NativeInteractionClientAcquireToken,e.correlationId),this.logger.trace("NativeInteractionClient - acquireToken called.");const r=this.performanceClient.startMeasurement(N.NativeInteractionClientAcquireToken,e.correlationId),o=Zt.nowSeconds(),n=await this.initializeNativeRequest(e);try{const l=await this.acquireTokensFromCache(this.accountId,n);return r.end({success:!0,isNativeBroker:!1,fromCache:!0}),l}catch{this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call")}const i={method:gi.GetToken,request:n},a=await this.nativeMessageHandler.sendMessage(i),s=this.validateNativeResponse(a);return this.handleNativeResponse(s,n,o).then(l=>(r.end({success:!0,isNativeBroker:!0,requestId:l.requestId}),l)).catch(l=>{throw r.end({success:!1,errorCode:l.errorCode,subErrorCode:l.subError,isNativeBroker:!0}),l})}createSilentCacheRequest(e,r){return{authority:e.authority,correlationId:this.correlationId,scopes:ht.fromString(e.scope).asArray(),account:r,forceRefresh:!1}}async acquireTokensFromCache(e,r){if(!e)throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"),X(bg);const o=this.browserStorage.getBaseAccountInfo({nativeAccountId:e});if(!o)throw X(bg);try{const n=this.createSilentCacheRequest(r,o),i=await this.silentCacheClient.acquireToken(n),a={...o,idTokenClaims:i?.idTokenClaims};return{...i,account:a}}catch(n){throw n}}async acquireTokenRedirect(e){this.logger.trace("NativeInteractionClient - acquireTokenRedirect called.");const r=await this.initializeNativeRequest(e),o={method:gi.GetToken,request:r};try{const a=await this.nativeMessageHandler.sendMessage(o);this.validateNativeResponse(a)}catch(a){if(a instanceof Uo&&la(a))throw a}this.browserStorage.setTemporaryCache(Te.NATIVE_REQUEST,JSON.stringify(r),!0);const n={apiId:je.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},i=this.config.auth.navigateToLoginRequestUrl?window.location.href:this.getRedirectUri(e.redirectUri);await this.navigationClient.navigateExternal(i,n)}async handleRedirectPromise(){if(this.logger.trace("NativeInteractionClient - handleRedirectPromise called."),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),null;const e=this.browserStorage.getCachedNativeRequest();if(!e)return this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."),null;const{prompt:r,...o}=e;r&&this.logger.verbose("NativeInteractionClient - handleRedirectPromise called and prompt was included in the original request, removing prompt from cached request to prevent second interaction with native broker window."),this.browserStorage.removeItem(this.browserStorage.generateCacheKey(Te.NATIVE_REQUEST));const n={method:gi.GetToken,request:o},i=Zt.nowSeconds();try{this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker.");const a=await this.nativeMessageHandler.sendMessage(n);this.validateNativeResponse(a);const s=this.handleNativeResponse(a,o,i);return this.browserStorage.setInteractionInProgress(!1),await s}catch(a){throw this.browserStorage.setInteractionInProgress(!1),a}}logout(){return this.logger.trace("NativeInteractionClient - logout called."),Promise.reject("Logout not implemented yet")}async handleNativeResponse(e,r,o){if(this.logger.trace("NativeInteractionClient - handleNativeResponse called."),e.account.id!==r.accountId)throw Rg(__);const n=await this.getDiscoveredAuthority(r.authority),i=Hi(e.id_token,xo),a=this.createHomeAccountIdentifier(e,i),s=av(this.browserStorage,n,a,i,xo,e.client_info,void 0,i.tid,void 0,e.account.id,this.logger),l=await this.generateAuthenticationResult(e,r,i,s,n.canonicalAuthority,o);return this.cacheAccount(s),this.cacheNativeTokens(e,r,a,i,l.accessToken,l.tenantId,o),l}createHomeAccountIdentifier(e,r){return xt.generateHomeAccountId(e.client_info||F.EMPTY_STRING,Vr.Default,this.logger,this.browserCrypto,r)}generateScopes(e,r){return e.scope?ht.fromString(e.scope):ht.fromString(r.scope)}async generatePopAccessToken(e,r){if(r.tokenType===Ie.POP){if(e.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),e.shr;const o=new $a(this.browserCrypto),n={resourceRequestMethod:r.resourceRequestMethod,resourceRequestUri:r.resourceRequestUri,shrClaims:r.shrClaims,shrNonce:r.shrNonce};if(!r.keyId)throw X(Vm);return o.signPopToken(e.access_token,r.keyId,n)}else return e.access_token}async generateAuthenticationResult(e,r,o,n,i,a){const s=this.addTelemetryFromNativeResponse(e),l=e.scope?ht.fromString(e.scope):ht.fromString(r.scope),c=e.account.properties||{},u=c.UID||o.oid||o.sub||F.EMPTY_STRING,d=c.TenantId||o.tid||F.EMPTY_STRING,f=rv(n.getAccountInfo(),void 0,o),h=await this.generatePopAccessToken(e,r),g=r.tokenType===Ie.POP?Ie.POP:Ie.BEARER;return{authority:i,uniqueId:u,tenantId:d,scopes:l.asArray(),account:f,idToken:e.id_token,idTokenClaims:o,accessToken:h,fromCache:s?this.isResponseFromCache(s):!1,expiresOn:new Date(Number(a+e.expires_in)*1e3),tokenType:g,correlationId:this.correlationId,state:e.state,fromNativeBroker:!0}}cacheAccount(e){this.browserStorage.setAccount(e),this.browserStorage.removeAccountContext(e).catch(r=>{this.logger.error(`Error occurred while removing account context from browser storage. ${r}`)})}cacheNativeTokens(e,r,o,n,i,a,s){const l=Xd(o,r.authority,e.id_token||"",r.clientId,n.tid||""),c=r.tokenType===Ie.POP?F.SHR_NONCE_VALIDITY:(typeof e.expires_in=="string"?parseInt(e.expires_in,10):e.expires_in)||0,u=s+c,d=this.generateScopes(e,r),f=Yd(o,r.authority,i,r.clientId,n.tid||a,d.printScopes(),u,0,xo),h=new Ca(void 0,l,f);this.nativeStorageManager.saveCacheRecord(h,r.storeInCache)}addTelemetryFromNativeResponse(e){const r=this.getMATSFromResponse(e);return r?(this.performanceClient.addFields({extensionId:this.nativeMessageHandler.getExtensionId(),extensionVersion:this.nativeMessageHandler.getExtensionVersion(),matsBrokerVersion:r.broker_version,matsAccountJoinOnStart:r.account_join_on_start,matsAccountJoinOnEnd:r.account_join_on_end,matsDeviceJoin:r.device_join,matsPromptBehavior:r.prompt_behavior,matsApiErrorCode:r.api_error_code,matsUiVisible:r.ui_visible,matsSilentCode:r.silent_code,matsSilentBiSubCode:r.silent_bi_sub_code,matsSilentMessage:r.silent_message,matsSilentStatus:r.silent_status,matsHttpStatus:r.http_status,matsHttpEventCount:r.http_event_count},this.correlationId),r):null}validateNativeResponse(e){if(e.hasOwnProperty("access_token")&&e.hasOwnProperty("id_token")&&e.hasOwnProperty("client_info")&&e.hasOwnProperty("account")&&e.hasOwnProperty("scope")&&e.hasOwnProperty("expires_in"))return e;throw Xk(Lm,"Response missing expected properties.")}getMATSFromResponse(e){if(e.properties.MATS)try{return JSON.parse(e.properties.MATS)}catch{this.logger.error("NativeInteractionClient - Error parsing MATS telemetry, returning null instead")}return null}isResponseFromCache(e){return typeof e.is_cached>"u"?(this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."),!1):!!e.is_cached}async initializeNativeRequest(e){this.logger.trace("NativeInteractionClient - initializeNativeRequest called");const r=e.authority||this.config.auth.authority;e.account&&await this.validateRequestAuthority(r,e.account);const o=new xe(r);o.validateAsUri();const{scopes:n,...i}=e,a=new ht(n||[]);a.appendScopes(Jl);const s=()=>{switch(this.apiId){case je.ssoSilent:case je.acquireTokenSilent_silentFlow:return this.logger.trace("initializeNativeRequest: silent request sets prompt to none"),$t.NONE}if(!e.prompt){this.logger.trace("initializeNativeRequest: prompt was not provided");return}switch(e.prompt){case $t.NONE:case $t.CONSENT:case $t.LOGIN:return this.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),e.prompt;default:throw this.logger.trace(`initializeNativeRequest: prompt = ${e.prompt} is not compatible with native flow`),re(f_)}},l={...i,accountId:this.accountId,clientId:this.config.auth.clientId,authority:o.urlString,scope:a.printScopes(),redirectUri:this.getRedirectUri(e.redirectUri),prompt:s(),correlationId:this.correlationId,tokenType:e.authenticationScheme,windowTitleSubstring:document.title,extraParameters:{...e.extraQueryParameters,...e.tokenQueryParameters},extendedExpiryToken:!1};if(this.handleExtraBrokerParams(l),l.extraParameters=l.extraParameters||{},l.extraParameters.telemetry=Fs.MATS_TELEMETRY,e.authenticationScheme===Ie.POP){const c={resourceRequestUri:e.resourceRequestUri,resourceRequestMethod:e.resourceRequestMethod,shrClaims:e.shrClaims,shrNonce:e.shrNonce},u=new $a(this.browserCrypto),d=await ee(u.generateCnf.bind(u),N.PopTokenGenerateCnf,this.logger,this.performanceClient,this.correlationId)(c,this.logger);l.reqCnf=d.reqCnfHash,l.keyId=d.kid}return l}handleExtraBrokerParams(e){if(e.extraParameters&&e.extraParameters.hasOwnProperty(th.BROKER_CLIENT_ID)&&e.extraParameters.hasOwnProperty(th.BROKER_REDIRECT_URI)&&e.extraParameters.hasOwnProperty(Ua)){const r=e.extraParameters[Ua],o=e.redirectUri,n=e.extraParameters[th.BROKER_REDIRECT_URI];e.extraParameters={child_client_id:r,child_redirect_uri:o},e.redirectUri=n}}}/*! @azure/msal-browser v3.7.1 2024-01-23 */class _o{constructor(e,r,o,n){this.logger=e,this.handshakeTimeoutMs=r,this.extensionId=n,this.resolvers=new Map,this.handshakeResolvers=new Map,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this),this.performanceClient=o,this.handshakeEvent=o.startMeasurement(N.NativeMessageHandlerHandshake)}async sendMessage(e){this.logger.trace("NativeMessageHandler - sendMessage called.");const r={channel:Fs.CHANNEL_ID,extensionId:this.extensionId,responseId:tn(),body:e};return this.logger.trace("NativeMessageHandler - Sending request to browser extension"),this.logger.tracePii(`NativeMessageHandler - Sending request to browser extension: ${JSON.stringify(r)}`),this.messageChannel.port1.postMessage(r),new Promise((o,n)=>{this.resolvers.set(r.responseId,{resolve:o,reject:n})})}static async createProvider(e,r,o){e.trace("NativeMessageHandler - createProvider called.");try{const n=new _o(e,r,o,Fs.PREFERRED_EXTENSION_ID);return await n.sendHandshakeRequest(),n}catch{const i=new _o(e,r,o);return await i.sendHandshakeRequest(),i}}async sendHandshakeRequest(){this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1);const e={channel:Fs.CHANNEL_ID,extensionId:this.extensionId,responseId:tn(),body:{method:gi.HandshakeRequest}};return this.handshakeEvent.add({extensionId:this.extensionId,extensionHandshakeTimeoutMs:this.handshakeTimeoutMs}),this.messageChannel.port1.onmessage=r=>{this.onChannelMessage(r)},window.postMessage(e,window.origin,[this.messageChannel.port2]),new Promise((r,o)=>{this.handshakeResolvers.set(e.responseId,{resolve:r,reject:o}),this.timeoutId=window.setTimeout(()=>{window.removeEventListener("message",this.windowListener,!1),this.messageChannel.port1.close(),this.messageChannel.port2.close(),this.handshakeEvent.end({extensionHandshakeTimedOut:!0,success:!1}),o(re(c_)),this.handshakeResolvers.delete(e.responseId)},this.handshakeTimeoutMs)})}onWindowMessage(e){if(this.logger.trace("NativeMessageHandler - onWindowMessage called"),e.source!==window)return;const r=e.data;if(!(!r.channel||r.channel!==Fs.CHANNEL_ID)&&!(r.extensionId&&r.extensionId!==this.extensionId)&&r.body.method===gi.HandshakeRequest){const o=this.handshakeResolvers.get(r.responseId);if(!o){this.logger.trace(`NativeMessageHandler.onWindowMessage - resolver can't be found for request ${r.responseId}`);return}this.logger.verbose(r.extensionId?`Extension with id: ${r.extensionId} not installed`:"No extension installed"),clearTimeout(this.timeoutId),this.messageChannel.port1.close(),this.messageChannel.port2.close(),window.removeEventListener("message",this.windowListener,!1),this.handshakeEvent.end({success:!1,extensionInstalled:!1}),o.reject(re(u_))}}onChannelMessage(e){this.logger.trace("NativeMessageHandler - onChannelMessage called.");const r=e.data,o=this.resolvers.get(r.responseId),n=this.handshakeResolvers.get(r.responseId);try{const i=r.body.method;if(i===gi.Response){if(!o)return;const a=r.body.response;if(this.logger.trace("NativeMessageHandler - Received response from browser extension"),this.logger.tracePii(`NativeMessageHandler - Received response from browser extension: ${JSON.stringify(a)}`),a.status!=="Success")o.reject(Rg(a.code,a.description,a.ext));else if(a.result)a.result.code&&a.result.description?o.reject(Rg(a.result.code,a.result.description,a.result.ext)):o.resolve(a.result);else throw Xk(Lm,"Event does not contain result.");this.resolvers.delete(r.responseId)}else if(i===gi.HandshakeResponse){if(!n){this.logger.trace(`NativeMessageHandler.onChannelMessage - resolver can't be found for request ${r.responseId}`);return}clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=r.extensionId,this.extensionVersion=r.body.version,this.logger.verbose(`NativeMessageHandler - Received HandshakeResponse from extension: ${this.extensionId}`),this.handshakeEvent.end({extensionInstalled:!0,success:!0}),n.resolve(),this.handshakeResolvers.delete(r.responseId)}}catch(i){this.logger.error("Error parsing response from WAM Extension"),this.logger.errorPii(`Error parsing response from WAM Extension: ${i}`),this.logger.errorPii(`Unable to parse ${e}`),o?o.reject(i):n&&n.reject(i)}}getExtensionId(){return this.extensionId}getExtensionVersion(){return this.extensionVersion}static isNativeAvailable(e,r,o,n){if(r.trace("isNativeAvailable called"),!e.system.allowNativeBroker)return r.trace("isNativeAvailable: allowNativeBroker is not enabled, returning false"),!1;if(!o)return r.trace("isNativeAvailable: WAM extension provider is not initialized, returning false"),!1;if(n)switch(n){case Ie.BEARER:case Ie.POP:return r.trace("isNativeAvailable: authenticationScheme is supported, returning true"),!0;default:return r.trace("isNativeAvailable: authenticationScheme is not supported, returning false"),!1}return!0}}/*! @azure/msal-browser v3.7.1 2024-01-23 */class wv{constructor(e,r,o,n,i){this.authModule=e,this.browserStorage=r,this.authCodeRequest=o,this.logger=n,this.performanceClient=i}async handleCodeResponse(e,r){this.performanceClient.addQueueMeasurement(N.HandleCodeResponse,r.correlationId);let o;try{o=this.authModule.handleFragmentResponse(e,r.state)}catch(n){throw n instanceof Ln&&n.subError===Ri?re(Ri):n}return ee(this.handleCodeResponseFromServer.bind(this),N.HandleCodeResponseFromServer,this.logger,this.performanceClient,r.correlationId)(o,r)}async handleCodeResponseFromServer(e,r,o=!0){if(this.performanceClient.addQueueMeasurement(N.HandleCodeResponseFromServer,r.correlationId),this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),this.authCodeRequest.code=e.code,e.cloud_instance_host_name&&await ee(this.authModule.updateAuthority.bind(this.authModule),N.UpdateTokenEndpointAuthority,this.logger,this.performanceClient,r.correlationId)(e.cloud_instance_host_name,r.correlationId),o&&(e.nonce=r.nonce||void 0),e.state=r.state,e.client_info)this.authCodeRequest.clientInfo=e.client_info;else{const i=this.createCcsCredentials(r);i&&(this.authCodeRequest.ccsCredential=i)}return await ee(this.authModule.acquireToken.bind(this.authModule),N.AuthClientAcquireToken,this.logger,this.performanceClient,r.correlationId)(this.authCodeRequest,e)}createCcsCredentials(e){return e.account?{credential:e.account.homeAccountId,type:vr.HOME_ACCOUNT_ID}:e.loginHint?{credential:e.loginHint,type:vr.UPN}:null}}/*! @azure/msal-browser v3.7.1 2024-01-23 */function C_(t,e,r){const o=Yu(t);if(!o)throw AS(t)?(r.error(`A ${e} is present in the iframe but it does not contain known properties. It's likely that the ${e} has been replaced by code running on the redirectUri page.`),r.errorPii(`The ${e} detected is: ${t}`),re(HS)):(r.error(`The request has returned to the redirectUri but a ${e} is not present. It's likely that the ${e} has been removed or the page has been redirected by code running on the redirectUri page.`),re(LS));return o}function nA(t,e,r){if(!t.state)throw re(uv);const o=k_(e,t.state);if(!o)throw re(US);if(o.interactionType!==r)throw re($S)}/*! @azure/msal-browser v3.7.1 2024-01-23 */class iA extends us{constructor(e,r,o,n,i,a,s,l,c,u){super(e,r,o,n,i,a,s,c,u),this.unloadWindow=this.unloadWindow.bind(this),this.nativeStorage=l}acquireToken(e){try{const r=this.generatePopupName(e.scopes||Jl,e.authority||this.config.auth.authority),o=e.popupWindowAttributes||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true, acquiring token"),this.acquireTokenPopupAsync(e,r,o);{this.logger.verbose("asyncPopup set to false, opening popup before acquiring token");const n=this.openSizedPopup("about:blank",r,o);return this.acquireTokenPopupAsync(e,r,o,n)}}catch(r){return Promise.reject(r)}}logout(e){try{this.logger.verbose("logoutPopup called");const r=this.initializeLogoutRequest(e),o=this.generateLogoutPopupName(r),n=e&&e.authority,i=e&&e.mainWindowRedirectUri,a=e?.popupWindowAttributes||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true"),this.logoutPopupAsync(r,o,a,n,void 0,i);{this.logger.verbose("asyncPopup set to false, opening popup");const s=this.openSizedPopup("about:blank",o,a);return this.logoutPopupAsync(r,o,a,n,s,i)}}catch(r){return Promise.reject(r)}}async acquireTokenPopupAsync(e,r,o,n){this.logger.verbose("acquireTokenPopupAsync called");const i=this.initializeServerTelemetryManager(je.acquireTokenPopup),a=await ee(this.initializeAuthorizationRequest.bind(this),N.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,this.correlationId)(e,oe.Popup);p_(a.authority);try{const s=await ee(this.initializeAuthorizationCodeRequest.bind(this),N.StandardInteractionClientInitializeAuthorizationCodeRequest,this.logger,this.performanceClient,this.correlationId)(a),l=await ee(this.createAuthCodeClient.bind(this),N.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)(i,a.authority,a.azureCloudOptions),c=_o.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,e.authenticationScheme);let u;c&&(u=this.performanceClient.startMeasurement(N.FetchAccountIdWithNativeBroker,e.correlationId));const d=await l.getAuthCodeUrl({...a,nativeBroker:c}),f=new wv(l,this.browserStorage,s,this.logger,this.performanceClient),h={popup:n,popupName:r,popupWindowAttributes:o},g=this.initiateAuthRequest(d,h);this.eventHandler.emitEvent(se.POPUP_OPENED,oe.Popup,{popupWindow:g},null);const p=await this.monitorPopupForHash(g),w=Ui(C_,N.DeserializeResponse,this.logger,this.performanceClient,this.correlationId)(p,this.config.auth.OIDCOptions.serverResponseType,this.logger);if(wo.removeThrottle(this.browserStorage,this.config.auth.clientId,s),w.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),u&&u.end({success:!0,isNativeBroker:!0}),!this.nativeMessageHandler)throw re(tc);const m=new Ta(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,je.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,w.accountId,this.nativeStorage,a.correlationId),{userRequestState:b}=ro.parseRequestState(this.browserCrypto,a.state);return await m.acquireToken({...a,state:b,prompt:void 0})}return await f.handleCodeResponse(w,a)}catch(s){throw n&&n.close(),s instanceof We&&(s.setCorrelationId(this.correlationId),i.cacheFailedRequest(s)),s}}async logoutPopupAsync(e,r,o,n,i,a){this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(se.LOGOUT_START,oe.Popup,e);const s=this.initializeServerTelemetryManager(je.logoutPopup);try{await this.clearCacheOnLogout(e.account);const l=await ee(this.createAuthCodeClient.bind(this),N.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)(s,n);try{l.authority.endSessionEndpoint}catch{if(e.account?.homeAccountId&&e.postLogoutRedirectUri&&l.authority.protocolMode===Xo.OIDC){if(this.browserStorage.removeAccount(e.account?.homeAccountId),this.eventHandler.emitEvent(se.LOGOUT_SUCCESS,oe.Popup,e),a){const d={apiId:je.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},f=xe.getAbsoluteUrl(a,Ko());await this.navigationClient.navigateInternal(f,d)}i&&i.close();return}}const c=l.getLogoutUri(e);this.eventHandler.emitEvent(se.LOGOUT_SUCCESS,oe.Popup,e);const u=this.openPopup(c,{popupName:r,popupWindowAttributes:o,popup:i});if(this.eventHandler.emitEvent(se.POPUP_OPENED,oe.Popup,{popupWindow:u},null),await this.monitorPopupForHash(u).catch(()=>{}),a){const d={apiId:je.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},f=xe.getAbsoluteUrl(a,Ko());this.logger.verbose("Redirecting main window to url specified in the request"),this.logger.verbosePii(`Redirecting main window to: ${f}`),await this.navigationClient.navigateInternal(f,d)}else this.logger.verbose("No main window navigation requested")}catch(l){throw i&&i.close(),l instanceof We&&(l.setCorrelationId(this.correlationId),s.cacheFailedRequest(l)),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(se.LOGOUT_FAILURE,oe.Popup,null,l),this.eventHandler.emitEvent(se.LOGOUT_END,oe.Popup),l}this.eventHandler.emitEvent(se.LOGOUT_END,oe.Popup)}initiateAuthRequest(e,r){if(e)return this.logger.infoPii(`Navigate to: ${e}`),this.openPopup(e,r);throw this.logger.error("Navigate url is empty"),re(tf)}monitorPopupForHash(e){return new Promise((r,o)=>{this.logger.verbose("PopupHandler.monitorPopupForHash - polling started");const n=setInterval(()=>{if(e.closed){this.logger.error("PopupHandler.monitorPopupForHash - window closed"),clearInterval(n),o(re(Ri));return}let i="";try{i=e.location.href}catch{}if(!i||i==="about:blank")return;clearInterval(n);let a="";const s=this.config.auth.OIDCOptions.serverResponseType;e&&(s===ec.QUERY?a=e.location.search:a=e.location.hash),this.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"),r(a)},this.config.system.pollIntervalMilliseconds)}).finally(()=>{this.cleanPopup(e)})}openPopup(e,r){try{let o;if(r.popup?(o=r.popup,this.logger.verbosePii(`Navigating popup window to: ${e}`),o.location.assign(e)):typeof r.popup>"u"&&(this.logger.verbosePii(`Opening popup window to: ${e}`),o=this.openSizedPopup(e,r.popupName,r.popupWindowAttributes)),!o)throw re(VS);return o.focus&&o.focus(),this.currentWindow=o,window.addEventListener("beforeunload",this.unloadWindow),o}catch(o){throw this.logger.error("error opening popup "+o.message),this.browserStorage.setInteractionInProgress(!1),re(WS)}}openSizedPopup(e,r,o){const n=window.screenLeft?window.screenLeft:window.screenX,i=window.screenTop?window.screenTop:window.screenY,a=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,s=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;let l=o.popupSize?.width,c=o.popupSize?.height,u=o.popupPosition?.top,d=o.popupPosition?.left;return(!l||l<0||l>a)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),l=Xr.POPUP_WIDTH),(!c||c<0||c>s)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),c=Xr.POPUP_HEIGHT),(!u||u<0||u>s)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),u=Math.max(0,s/2-Xr.POPUP_HEIGHT/2+i)),(!d||d<0||d>a)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),d=Math.max(0,a/2-Xr.POPUP_WIDTH/2+n)),window.open(e,r,`width=${l}, height=${c}, top=${u}, left=${d}, scrollbars=yes`)}unloadWindow(e){this.browserStorage.cleanRequestByInteractionType(oe.Popup),this.currentWindow&&this.currentWindow.close(),e.preventDefault()}cleanPopup(e){e&&e.close(),window.removeEventListener("beforeunload",this.unloadWindow),this.browserStorage.setInteractionInProgress(!1)}generatePopupName(e,r){return`${Xr.POPUP_NAME_PREFIX}.${this.config.auth.clientId}.${e.join("-")}.${r}.${this.correlationId}`}generateLogoutPopupName(e){const r=e.account&&e.account.homeAccountId;return`${Xr.POPUP_NAME_PREFIX}.${this.config.auth.clientId}.${r}.${this.correlationId}`}}/*! @azure/msal-browser v3.7.1 2024-01-23 */class V0{constructor(e,r,o,n,i){this.authModule=e,this.browserStorage=r,this.authCodeRequest=o,this.logger=n,this.performanceClient=i}async initiateAuthRequest(e,r){if(this.logger.verbose("RedirectHandler.initiateAuthRequest called"),e){r.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(Te.ORIGIN_URI,r.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(Te.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest),this.logger.infoPii(`RedirectHandler.initiateAuthRequest: Navigate to: ${e}`);const o={apiId:je.acquireTokenRedirect,timeout:r.redirectTimeout,noHistory:!1};if(typeof r.onRedirectNavigate=="function")if(this.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),r.onRedirectNavigate(e)!==!1){this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),await r.navigationClient.navigateExternal(e,o);return}else{this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate returned false, stopping navigation");return}else{this.logger.verbose("RedirectHandler.initiateAuthRequest: Navigating window to navigate url"),await r.navigationClient.navigateExternal(e,o);return}}else throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),re(tf)}async handleCodeResponse(e,r){this.logger.verbose("RedirectHandler.handleCodeResponse called"),this.browserStorage.setInteractionInProgress(!1);const o=this.browserStorage.generateStateKey(r),n=this.browserStorage.getTemporaryCache(o);if(!n)throw X(Vu,"Cached State");let i;try{i=this.authModule.handleFragmentResponse(e,n)}catch(c){throw c instanceof Ln&&c.subError===Ri?re(Ri):c}const a=this.browserStorage.generateNonceKey(n),s=this.browserStorage.getTemporaryCache(a);if(this.authCodeRequest.code=i.code,i.cloud_instance_host_name&&await ee(this.authModule.updateAuthority.bind(this.authModule),N.UpdateTokenEndpointAuthority,this.logger,this.performanceClient,this.authCodeRequest.correlationId)(i.cloud_instance_host_name,this.authCodeRequest.correlationId),i.nonce=s||void 0,i.state=n,i.client_info)this.authCodeRequest.clientInfo=i.client_info;else{const c=this.checkCcsCredentials();c&&(this.authCodeRequest.ccsCredential=c)}const l=await this.authModule.acquireToken(this.authCodeRequest,i);return this.browserStorage.cleanRequestByState(r),l}checkCcsCredentials(){const e=this.browserStorage.getTemporaryCache(Te.CCS_CREDENTIAL,!0);if(e)try{return JSON.parse(e)}catch{this.authModule.logger.error("Cache credential could not be parsed"),this.authModule.logger.errorPii(`Cache credential could not be parsed: ${e}`)}return null}}/*! @azure/msal-browser v3.7.1 2024-01-23 */class aA extends us{constructor(e,r,o,n,i,a,s,l,c,u){super(e,r,o,n,i,a,s,c,u),this.nativeStorage=l}async acquireToken(e){const r=await ee(this.initializeAuthorizationRequest.bind(this),N.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,this.correlationId)(e,oe.Redirect);this.browserStorage.updateCacheEntries(r.state,r.nonce,r.authority,r.loginHint||"",r.account||null);const o=this.initializeServerTelemetryManager(je.acquireTokenRedirect),n=i=>{i.persisted&&(this.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),this.browserStorage.cleanRequestByState(r.state),this.eventHandler.emitEvent(se.RESTORE_FROM_BFCACHE,oe.Redirect))};try{const i=await ee(this.initializeAuthorizationCodeRequest.bind(this),N.StandardInteractionClientInitializeAuthorizationCodeRequest,this.logger,this.performanceClient,this.correlationId)(r),a=await ee(this.createAuthCodeClient.bind(this),N.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)(o,r.authority,r.azureCloudOptions),s=new V0(a,this.browserStorage,i,this.logger,this.performanceClient),l=await a.getAuthCodeUrl({...r,nativeBroker:_o.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,e.authenticationScheme)}),c=this.getRedirectStartPage(e.redirectStartPage);return this.logger.verbosePii(`Redirect start page: ${c}`),window.addEventListener("pageshow",n),await s.initiateAuthRequest(l,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:c,onRedirectNavigate:e.onRedirectNavigate})}catch(i){throw i instanceof We&&(i.setCorrelationId(this.correlationId),o.cacheFailedRequest(i)),window.removeEventListener("pageshow",n),this.browserStorage.cleanRequestByState(r.state),i}}async handleRedirectPromise(e){const r=this.initializeServerTelemetryManager(je.handleRedirectPromise);try{if(!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),null;const[o,n]=this.getRedirectResponse(e||"");if(!o)return this.logger.info("handleRedirectPromise did not detect a response as a result of a redirect. Cleaning temporary cache."),this.browserStorage.cleanRequestByInteractionType(oe.Redirect),null;const i=this.browserStorage.getTemporaryCache(Te.ORIGIN_URI,!0)||F.EMPTY_STRING,a=xe.removeHashFromUrl(i),s=xe.removeHashFromUrl(window.location.href);if(a===s&&this.config.auth.navigateToLoginRequestUrl)return this.logger.verbose("Current page is loginRequestUrl, handling response"),i.indexOf("#")>-1&&pR(i),await this.handleResponse(o,r);if(this.config.auth.navigateToLoginRequestUrl){if(!gv()||this.config.system.allowRedirectInIframe){this.browserStorage.setTemporaryCache(Te.URL_HASH,n,!0);const l={apiId:je.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0};let c=!0;if(!i||i==="null"){const u=vR();this.browserStorage.setTemporaryCache(Te.ORIGIN_URI,u,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),c=await this.navigationClient.navigateInternal(u,l)}else this.logger.verbose(`Navigating to loginRequestUrl: ${i}`),c=await this.navigationClient.navigateInternal(i,l);if(!c)return await this.handleResponse(o,r)}}else return this.logger.verbose("NavigateToLoginRequestUrl set to false, handling response"),await this.handleResponse(o,r);return null}catch(o){throw o instanceof We&&(o.setCorrelationId(this.correlationId),r.cacheFailedRequest(o)),this.browserStorage.cleanRequestByInteractionType(oe.Redirect),o}}getRedirectResponse(e){this.logger.verbose("getRedirectResponseHash called");let r=e;r||(this.config.auth.OIDCOptions.serverResponseType===ec.QUERY?r=window.location.search:r=window.location.hash);let o=Yu(r);if(o){try{nA(o,this.browserCrypto,oe.Redirect)}catch(i){return i instanceof We&&this.logger.error(`Interaction type validation failed due to ${i.errorCode}: ${i.errorMessage}`),[null,""]}return gR(window),this.logger.verbose("Hash contains known properties, returning response hash"),[o,r]}const n=this.browserStorage.getTemporaryCache(Te.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(Te.URL_HASH)),n&&(o=Yu(n),o)?(this.logger.verbose("Hash does not contain known properties, returning cached hash"),[o,n]):[null,""]}async handleResponse(e,r){const o=e.state;if(!o)throw re(uv);const n=this.browserStorage.getCachedRequest(o);if(this.logger.verbose("handleResponse called, retrieved cached request"),e.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw re(tc);const l=new Ta(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,je.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,e.accountId,this.nativeStorage,n.correlationId),{userRequestState:c}=ro.parseRequestState(this.browserCrypto,o);return l.acquireToken({...n,state:c,prompt:void 0}).finally(()=>{this.browserStorage.cleanRequestByState(o)})}const i=this.browserStorage.getCachedAuthority(o);if(!i)throw re(dv);const a=await ee(this.createAuthCodeClient.bind(this),N.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)(r,i);return wo.removeThrottle(this.browserStorage,this.config.auth.clientId,n),new V0(a,this.browserStorage,n,this.logger,this.performanceClient).handleCodeResponse(e,o)}async logout(e){this.logger.verbose("logoutRedirect called");const r=this.initializeLogoutRequest(e),o=this.initializeServerTelemetryManager(je.logout);try{this.eventHandler.emitEvent(se.LOGOUT_START,oe.Redirect,e),await this.clearCacheOnLogout(r.account);const n={apiId:je.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},i=await ee(this.createAuthCodeClient.bind(this),N.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)(o,e&&e.authority);if(i.authority.protocolMode===Xo.OIDC)try{i.authority.endSessionEndpoint}catch{if(r.account?.homeAccountId){this.browserStorage.removeAccount(r.account?.homeAccountId),this.eventHandler.emitEvent(se.LOGOUT_SUCCESS,oe.Redirect,r);return}}const a=i.getLogoutUri(r);if(this.eventHandler.emitEvent(se.LOGOUT_SUCCESS,oe.Redirect,r),e&&typeof e.onRedirectNavigate=="function")if(e.onRedirectNavigate(a)!==!1){this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),await this.navigationClient.navigateExternal(a,n);return}else this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation");else{this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),await this.navigationClient.navigateExternal(a,n);return}}catch(n){throw n instanceof We&&(n.setCorrelationId(this.correlationId),o.cacheFailedRequest(n)),this.eventHandler.emitEvent(se.LOGOUT_FAILURE,oe.Redirect,null,n),this.eventHandler.emitEvent(se.LOGOUT_END,oe.Redirect),n}this.eventHandler.emitEvent(se.LOGOUT_END,oe.Redirect)}getRedirectStartPage(e){const r=e||window.location.href;return xe.getAbsoluteUrl(r,Ko())}}/*! @azure/msal-browser v3.7.1 2024-01-23 */async function sA(t,e,r,o,n){if(e.addQueueMeasurement(N.SilentHandlerInitiateAuthRequest,o),!t)throw r.info("Navigate url is empty"),re(tf);return n?ee(cA,N.SilentHandlerLoadFrame,r,e,o)(t,n,e,o):Ui(uA,N.SilentHandlerLoadFrameSync,r,e,o)(t)}async function lA(t,e,r,o,n,i,a){return o.addQueueMeasurement(N.SilentHandlerMonitorIframeForHash,i),new Promise((s,l)=>{e{window.clearInterval(u),l(re(GS))},e),u=window.setInterval(()=>{let d="";const f=t.contentWindow;try{d=f?f.location.href:""}catch{}if(!d||d==="about:blank")return;let h="";f&&(a===ec.QUERY?h=f.location.search:h=f.location.hash),window.clearTimeout(c),window.clearInterval(u),s(h)},r)}).finally(()=>{Ui(dA,N.RemoveHiddenIframe,n,o,i)(t)})}function cA(t,e,r,o){return r.addQueueMeasurement(N.SilentHandlerLoadFrame,o),new Promise((n,i)=>{const a=T_();window.setTimeout(()=>{if(!a){i("Unable to load iframe");return}a.src=t,n(a)},e)})}function uA(t){const e=T_();return e.src=t,e}function T_(){const t=document.createElement("iframe");return t.style.visibility="hidden",t.style.position="absolute",t.style.width=t.style.height="0",t.style.border="0",t.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),document.body.appendChild(t),t}function dA(t){document.body===t.parentNode&&document.body.removeChild(t)}/*! @azure/msal-browser v3.7.1 2024-01-23 */class fA extends us{constructor(e,r,o,n,i,a,s,l,c,u,d){super(e,r,o,n,i,a,l,u,d),this.apiId=s,this.nativeStorage=c}async acquireToken(e){if(this.performanceClient.addQueueMeasurement(N.SilentIframeClientAcquireToken,e.correlationId),!e.loginHint&&!e.sid&&(!e.account||!e.account.username)&&this.logger.warning("No user hint provided. The authorization server may need more information to complete this request."),e.prompt&&e.prompt!==$t.NONE&&e.prompt!==$t.NO_SESSION)throw re(JS);const r=await ee(this.initializeAuthorizationRequest.bind(this),N.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,e.correlationId)({...e,prompt:e.prompt||$t.NONE},oe.Silent);p_(r.authority);const o=this.initializeServerTelemetryManager(this.apiId);try{const n=await ee(this.createAuthCodeClient.bind(this),N.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,e.correlationId)(o,r.authority,r.azureCloudOptions);return await ee(this.silentTokenHelper.bind(this),N.SilentIframeClientTokenHelper,this.logger,this.performanceClient,e.correlationId)(n,r)}catch(n){throw n instanceof We&&(n.setCorrelationId(this.correlationId),o.cacheFailedRequest(n)),n}}logout(){return Promise.reject(re(rf))}async silentTokenHelper(e,r){const o=r.correlationId;this.performanceClient.addQueueMeasurement(N.SilentIframeClientTokenHelper,o);const n=await ee(this.initializeAuthorizationCodeRequest.bind(this),N.StandardInteractionClientInitializeAuthorizationCodeRequest,this.logger,this.performanceClient,o)(r),i=await ee(e.getAuthCodeUrl.bind(e),N.GetAuthCodeUrl,this.logger,this.performanceClient,o)({...r,nativeBroker:_o.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,r.authenticationScheme)}),a=new wv(e,this.browserStorage,n,this.logger,this.performanceClient),s=await ee(sA,N.SilentHandlerInitiateAuthRequest,this.logger,this.performanceClient,o)(i,this.performanceClient,this.logger,o,this.config.system.navigateFrameWait),l=this.config.auth.OIDCOptions.serverResponseType,c=await ee(lA,N.SilentHandlerMonitorIframeForHash,this.logger,this.performanceClient,o)(s,this.config.system.iframeHashTimeout,this.config.system.pollIntervalMilliseconds,this.performanceClient,this.logger,o,l),u=Ui(C_,N.DeserializeResponse,this.logger,this.performanceClient,this.correlationId)(c,l,this.logger);if(u.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw re(tc);const d=new Ta(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,u.accountId,this.browserStorage,o),{userRequestState:f}=ro.parseRequestState(this.browserCrypto,r.state);return ee(d.acquireToken.bind(d),N.NativeInteractionClientAcquireToken,this.logger,this.performanceClient,o)({...r,state:f,prompt:r.prompt||$t.NONE})}return ee(a.handleCodeResponse.bind(a),N.HandleCodeResponse,this.logger,this.performanceClient,o)(u,r)}}/*! @azure/msal-browser v3.7.1 2024-01-23 */class hA extends us{async acquireToken(e){this.performanceClient.addQueueMeasurement(N.SilentRefreshClientAcquireToken,e.correlationId);const r=await ee(this.initializeBaseRequest.bind(this),N.InitializeBaseRequest,this.logger,this.performanceClient,e.correlationId)(e,e.account),o={...e,...r};e.redirectUri&&(o.redirectUri=this.getRedirectUri(e.redirectUri));const n=this.initializeServerTelemetryManager(je.acquireTokenSilent_silentFlow),i=await this.createRefreshTokenClient(n,o.authority,o.azureCloudOptions);return ee(i.acquireTokenByRefreshToken.bind(i),N.RefreshTokenClientAcquireTokenByRefreshToken,this.logger,this.performanceClient,e.correlationId)(o).catch(a=>{throw a.setCorrelationId(this.correlationId),n.cacheFailedRequest(a),a})}logout(){return Promise.reject(re(rf))}async createRefreshTokenClient(e,r,o){const n=await ee(this.getClientConfiguration.bind(this),N.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,this.correlationId)(e,r,o);return new xg(n,this.performanceClient)}}/*! @azure/msal-browser v3.7.1 2024-01-23 */class gA{constructor(e,r,o,n){this.isBrowserEnvironment=typeof window<"u",this.config=e,this.storage=r,this.logger=o,this.cryptoObj=n}loadExternalTokens(e,r,o){if(this.logger.info("TokenCache - loadExternalTokens called"),!r.id_token)throw re(Ur);const n=Hi(r.id_token,xo);let i,a,s;if(e.account)s=xt.createFromAccountInfo(e.account),i=new Ca(s,this.loadIdToken(r.id_token,s.homeAccountId,e.account.environment,e.account.tenantId),this.loadAccessToken(e,r,s.homeAccountId,e.account.environment,e.account.tenantId,o),this.loadRefreshToken(e,r,s.homeAccountId,e.account.environment));else if(e.authority){const l=qt.generateAuthority(e.authority,e.azureCloudOptions),c={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache};if(a=new qt(l,this.config.system.networkClient,this.storage,c,this.logger,e.correlationId||tn()),o.clientInfo)this.logger.trace("TokenCache - homeAccountId from options"),s=this.loadAccount(n,a,o.clientInfo),i=new Ca(s,this.loadIdToken(r.id_token,s.homeAccountId,a.hostnameAndPort,a.tenant),this.loadAccessToken(e,r,s.homeAccountId,a.hostnameAndPort,a.tenant,o),this.loadRefreshToken(e,r,s.homeAccountId,a.hostnameAndPort));else if(r.client_info)this.logger.trace("TokenCache - homeAccountId from response"),s=this.loadAccount(n,a,r.client_info),i=new Ca(s,this.loadIdToken(r.id_token,s.homeAccountId,a.hostnameAndPort,a.tenant),this.loadAccessToken(e,r,s.homeAccountId,a.hostnameAndPort,a.tenant,o),this.loadRefreshToken(e,r,s.homeAccountId,a.hostnameAndPort));else throw re(Ur)}else throw re(Ur);return this.generateAuthenticationResult(e,n,i,s,a)}loadAccount(e,r,o,n){if(this.isBrowserEnvironment){this.logger.verbose("TokenCache - loading account");let i;if(n?i=n:r.authorityType!==void 0&&o&&(i=xt.generateHomeAccountId(o,r.authorityType,this.logger,this.cryptoObj,e)),!i)throw re(Ur);const a=e.tid,s=av(this.storage,r,i,e,xo,o,r.hostnameAndPort,a,void 0,void 0,this.logger);return this.storage.setAccount(s),s}else throw re(Ur)}loadIdToken(e,r,o,n){const i=Xd(r,o,e,this.config.auth.clientId,n);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading id token"),this.storage.setIdTokenCredential(i),i;throw re(Ur)}loadAccessToken(e,r,o,n,i,a){if(!r.access_token)return this.logger.verbose("TokenCache - No access token provided for caching"),null;if(!r.expires_in||!a.extendedExpiresOn)throw re(Ur);const s=new ht(e.scopes).printScopes(),l=a.expiresOn||r.expires_in+new Date().getTime()/1e3,c=a.extendedExpiresOn,u=Yd(o,n,r.access_token,this.config.auth.clientId,i,s,l,c,xo);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading access token"),this.storage.setAccessTokenCredential(u),u;throw re(Ur)}loadRefreshToken(e,r,o,n){if(!r.refresh_token)return this.logger.verbose("TokenCache - No refresh token provided for caching"),null;const i=pS(o,n,r.refresh_token,this.config.auth.clientId);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading refresh token"),this.storage.setRefreshTokenCredential(i),i;throw re(Ur)}generateAuthenticationResult(e,r,o,n,i){let a=F.EMPTY_STRING,s=[],l=null,c;o?.accessToken&&(a=o.accessToken.secret,s=ht.fromString(o.accessToken.target).asArray(),l=new Date(Number(o.accessToken.expiresOn)*1e3),c=new Date(Number(o.accessToken.extendedExpiresOn)*1e3));const u=r.oid||r.sub||F.EMPTY_STRING,d=r.tid||F.EMPTY_STRING;return{authority:i?i.canonicalAuthority:F.EMPTY_STRING,uniqueId:u,tenantId:d,scopes:s,account:n.getAccountInfo(),idToken:o.idToken?.secret||"",idTokenClaims:r||{},accessToken:a,fromCache:!0,expiresOn:l,correlationId:e.correlationId||F.EMPTY_STRING,requestId:F.EMPTY_STRING,extExpiresOn:c,familyId:F.EMPTY_STRING,tokenType:o?.accessToken?.tokenType||F.EMPTY_STRING,state:F.EMPTY_STRING,cloudGraphHostName:n.cloudGraphHostName||F.EMPTY_STRING,msGraphHost:n.msGraphHost||F.EMPTY_STRING,code:void 0,fromNativeBroker:!1}}}/*! @azure/msal-browser v3.7.1 2024-01-23 */class pA extends jS{constructor(e){super(e),this.includeRedirectUri=!1}}/*! @azure/msal-browser v3.7.1 2024-01-23 */class mA extends us{constructor(e,r,o,n,i,a,s,l,c,u){super(e,r,o,n,i,a,l,c,u),this.apiId=s}async acquireToken(e){if(!e.code)throw re(i_);const r=await ee(this.initializeAuthorizationRequest.bind(this),N.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,e.correlationId)(e,oe.Silent),o=this.initializeServerTelemetryManager(this.apiId);try{const n={...r,code:e.code},i=await ee(this.getClientConfiguration.bind(this),N.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,e.correlationId)(o,r.authority),a=new pA(i);this.logger.verbose("Auth code client created");const s=new wv(a,this.browserStorage,n,this.logger,this.performanceClient);return await ee(s.handleCodeResponseFromServer.bind(s),N.HandleCodeResponseFromServer,this.logger,this.performanceClient,e.correlationId)({code:e.code,msgraph_host:e.msGraphHost,cloud_graph_host_name:e.cloudGraphHostName,cloud_instance_host_name:e.cloudInstanceHostName},r,!1)}catch(n){throw n instanceof We&&(n.setCorrelationId(this.correlationId),o.cacheFailedRequest(n)),n}}logout(){return Promise.reject(re(rf))}}/*! @azure/msal-browser v3.7.1 2024-01-23 */class of{constructor(e){this.atsAsyncMeasurement=void 0,this.operatingContext=e,this.isBrowserEnvironment=this.operatingContext.isBrowserEnvironment(),this.config=e.getConfig(),this.initialized=!1,this.logger=this.operatingContext.getLogger(),this.networkClient=this.config.system.networkClient,this.navigationClient=this.config.system.navigationClient,this.redirectResponse=new Map,this.hybridAuthCodeResponses=new Map,this.performanceClient=this.config.telemetry.client,this.browserCrypto=this.isBrowserEnvironment?new Ka(this.logger,this.performanceClient):Gu,this.eventHandler=new $R(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new Ig(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger,UI(this.config.auth)):UR(this.config.auth.clientId,this.logger);const r={cacheLocation:kt.MemoryStorage,temporaryCacheLocation:kt.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!1};this.nativeInternalStorage=new Ig(this.config.auth.clientId,r,this.browserCrypto,this.logger),this.tokenCache=new gA(this.config,this.browserStorage,this.logger,this.browserCrypto),this.activeSilentTokenRequests=new Map,this.trackPageVisibility=this.trackPageVisibility.bind(this),this.trackPageVisibilityWithMeasurement=this.trackPageVisibilityWithMeasurement.bind(this)}static async createController(e){const r=new of(e);return await r.initialize(),r}trackPageVisibility(){this.atsAsyncMeasurement&&(this.logger.info("Perf: Visibility change detected"),this.atsAsyncMeasurement.increment({visibilityChangeCount:1}))}async initialize(){if(this.logger.trace("initialize called"),this.initialized){this.logger.info("initialize has already been called, exiting early.");return}const e=this.config.system.allowNativeBroker,r=this.performanceClient.startMeasurement(N.InitializeClientApplication);if(this.eventHandler.emitEvent(se.INITIALIZE_START),e)try{this.nativeExtensionProvider=await _o.createProvider(this.logger,this.config.system.nativeBrokerHandshakeTimeout,this.performanceClient)}catch(o){this.logger.verbose(o)}this.config.cache.claimsBasedCachingEnabled||(this.logger.verbose("Claims-based caching is disabled. Clearing the previous cache with claims"),await ee(this.browserStorage.clearTokensAndKeysWithClaims.bind(this.browserStorage),N.ClearTokensAndKeysWithClaims,this.logger,this.performanceClient)(this.performanceClient)),this.initialized=!0,this.eventHandler.emitEvent(se.INITIALIZE_END),r.end({allowNativeBroker:e,success:!0})}async handleRedirectPromise(e){this.logger.verbose("handleRedirectPromise called"),L0(this.initialized);const r=this.getAllAccounts();if(this.isBrowserEnvironment){const o=e||"";let n=this.redirectResponse.get(o);if(typeof n>"u"){this.eventHandler.emitEvent(se.HANDLE_REDIRECT_START,oe.Redirect),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise");const i=this.browserStorage.getCachedNativeRequest();let a;if(i&&_o.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!e)this.logger.trace("handleRedirectPromise - acquiring token from native platform"),a=new Ta(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,je.handleRedirectPromise,this.performanceClient,this.nativeExtensionProvider,i.accountId,this.nativeInternalStorage,i.correlationId).handleRedirectPromise();else{this.logger.trace("handleRedirectPromise - acquiring token from web flow");const s=this.browserStorage.getTemporaryCache(Te.CORRELATION_ID,!0)||F.EMPTY_STRING;a=this.createRedirectClient(s).handleRedirectPromise(e)}n=a.then(s=>(s&&(r.length{throw r.length>0?this.eventHandler.emitEvent(se.ACQUIRE_TOKEN_FAILURE,oe.Redirect,null,s):this.eventHandler.emitEvent(se.LOGIN_FAILURE,oe.Redirect,null,s),this.eventHandler.emitEvent(se.HANDLE_REDIRECT_END,oe.Redirect),s}),this.redirectResponse.set(o,n)}else this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call");return n}return this.logger.verbose("handleRedirectPromise returns null, not browser environment"),null}async acquireTokenRedirect(e){const r=this.getRequestCorrelationId(e);this.logger.verbose("acquireTokenRedirect called",r),this.preflightBrowserEnvironmentCheck(oe.Redirect);const o=this.getAllAccounts().length>0;o?this.eventHandler.emitEvent(se.ACQUIRE_TOKEN_START,oe.Redirect,e):this.eventHandler.emitEvent(se.LOGIN_START,oe.Redirect,e);let n;return this.nativeExtensionProvider&&this.canUseNative(e)?n=new Ta(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,je.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(e),this.nativeInternalStorage,r).acquireTokenRedirect(e).catch(a=>{if(a instanceof Uo&&la(a))return this.nativeExtensionProvider=void 0,this.createRedirectClient(r).acquireToken(e);if(a instanceof ao)return this.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow"),this.createRedirectClient(r).acquireToken(e);throw this.getBrowserStorage().setInteractionInProgress(!1),a}):n=this.createRedirectClient(r).acquireToken(e),n.catch(i=>{throw o?this.eventHandler.emitEvent(se.ACQUIRE_TOKEN_FAILURE,oe.Redirect,null,i):this.eventHandler.emitEvent(se.LOGIN_FAILURE,oe.Redirect,null,i),i})}acquireTokenPopup(e){const r=this.getRequestCorrelationId(e),o=this.performanceClient.startMeasurement(N.AcquireTokenPopup,r);try{this.logger.verbose("acquireTokenPopup called",r),this.preflightBrowserEnvironmentCheck(oe.Popup)}catch(a){return Promise.reject(a)}const n=this.getAllAccounts();n.length>0?this.eventHandler.emitEvent(se.ACQUIRE_TOKEN_START,oe.Popup,e):this.eventHandler.emitEvent(se.LOGIN_START,oe.Popup,e);let i;return this.canUseNative(e)?i=this.acquireTokenNative({...e,correlationId:r},je.acquireTokenPopup).then(a=>(this.getBrowserStorage().setInteractionInProgress(!1),o.end({success:!0,isNativeBroker:!0,requestId:a.requestId}),a)).catch(a=>{if(a instanceof Uo&&la(a))return this.nativeExtensionProvider=void 0,this.createPopupClient(r).acquireToken(e);if(a instanceof ao)return this.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow"),this.createPopupClient(r).acquireToken(e);throw this.getBrowserStorage().setInteractionInProgress(!1),a}):i=this.createPopupClient(r).acquireToken(e),i.then(a=>(n.length(n.length>0?this.eventHandler.emitEvent(se.ACQUIRE_TOKEN_FAILURE,oe.Popup,null,a):this.eventHandler.emitEvent(se.LOGIN_FAILURE,oe.Popup,null,a),o.end({errorCode:a.errorCode,subErrorCode:a.subError,success:!1}),Promise.reject(a)))}trackPageVisibilityWithMeasurement(){const e=this.ssoSilentMeasurement||this.acquireTokenByCodeAsyncMeasurement;e&&(this.logger.info("Perf: Visibility change detected in ",e.event.name),e.increment({visibilityChangeCount:1}))}async ssoSilent(e){const r=this.getRequestCorrelationId(e),o={...e,prompt:e.prompt,correlationId:r};this.preflightBrowserEnvironmentCheck(oe.Silent),this.ssoSilentMeasurement=this.performanceClient.startMeasurement(N.SsoSilent,r),this.ssoSilentMeasurement?.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),this.logger.verbose("ssoSilent called",r),this.eventHandler.emitEvent(se.SSO_SILENT_START,oe.Silent,o);let n;return this.canUseNative(o)?n=this.acquireTokenNative(o,je.ssoSilent).catch(i=>{if(i instanceof Uo&&la(i))return this.nativeExtensionProvider=void 0,this.createSilentIframeClient(o.correlationId).acquireToken(o);throw i}):n=this.createSilentIframeClient(o.correlationId).acquireToken(o),n.then(i=>(this.eventHandler.emitEvent(se.SSO_SILENT_SUCCESS,oe.Silent,i),this.ssoSilentMeasurement?.add({accessTokenSize:i.accessToken.length,idTokenSize:i.idToken.length}),this.ssoSilentMeasurement?.end({success:!0,isNativeBroker:i.fromNativeBroker,requestId:i.requestId}),i)).catch(i=>{throw this.eventHandler.emitEvent(se.SSO_SILENT_FAILURE,oe.Silent,null,i),this.ssoSilentMeasurement?.end({errorCode:i.errorCode,subErrorCode:i.subError,success:!1}),i}).finally(()=>{document.removeEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement)})}async acquireTokenByCode(e){const r=this.getRequestCorrelationId(e);this.preflightBrowserEnvironmentCheck(oe.Silent),this.logger.trace("acquireTokenByCode called",r),this.eventHandler.emitEvent(se.ACQUIRE_TOKEN_BY_CODE_START,oe.Silent,e);const o=this.performanceClient.startMeasurement(N.AcquireTokenByCode,r);try{if(e.code&&e.nativeAccountId)throw re(s_);if(e.code){const n=e.code;let i=this.hybridAuthCodeResponses.get(n);return i?(this.logger.verbose("Existing acquireTokenByCode request found",r),o.discard()):(this.logger.verbose("Initiating new acquireTokenByCode request",r),i=this.acquireTokenByCodeAsync({...e,correlationId:r}).then(a=>(this.eventHandler.emitEvent(se.ACQUIRE_TOKEN_BY_CODE_SUCCESS,oe.Silent,a),this.hybridAuthCodeResponses.delete(n),o.add({accessTokenSize:a.accessToken.length,idTokenSize:a.idToken.length}),o.end({success:!0,isNativeBroker:a.fromNativeBroker,requestId:a.requestId}),a)).catch(a=>{throw this.hybridAuthCodeResponses.delete(n),this.eventHandler.emitEvent(se.ACQUIRE_TOKEN_BY_CODE_FAILURE,oe.Silent,null,a),o.end({errorCode:a.errorCode,subErrorCode:a.subError,success:!1}),a}),this.hybridAuthCodeResponses.set(n,i)),await i}else if(e.nativeAccountId){if(this.canUseNative(e,e.nativeAccountId))return await this.acquireTokenNative({...e,correlationId:r},je.acquireTokenByCode,e.nativeAccountId).catch(n=>{throw n instanceof Uo&&la(n)&&(this.nativeExtensionProvider=void 0),n});throw re(l_)}else throw re(a_)}catch(n){throw this.eventHandler.emitEvent(se.ACQUIRE_TOKEN_BY_CODE_FAILURE,oe.Silent,null,n),o.end({errorCode:n instanceof We&&n.errorCode||void 0,subErrorCode:n instanceof We&&n.subError||void 0,success:!1}),n}}async acquireTokenByCodeAsync(e){return this.logger.trace("acquireTokenByCodeAsync called",e.correlationId),this.acquireTokenByCodeAsyncMeasurement=this.performanceClient.startMeasurement(N.AcquireTokenByCodeAsync,e.correlationId),this.acquireTokenByCodeAsyncMeasurement?.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),await this.createSilentAuthCodeClient(e.correlationId).acquireToken(e).then(n=>(this.acquireTokenByCodeAsyncMeasurement?.end({success:!0,fromCache:n.fromCache,isNativeBroker:n.fromNativeBroker,requestId:n.requestId}),n)).catch(n=>{throw this.acquireTokenByCodeAsyncMeasurement?.end({errorCode:n.errorCode,subErrorCode:n.subError,success:!1}),n}).finally(()=>{document.removeEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement)})}async acquireTokenFromCache(e,r,o){switch(this.performanceClient.addQueueMeasurement(N.AcquireTokenFromCache,r.correlationId),o){case Ir.Default:case Ir.AccessToken:case Ir.AccessTokenAndRefreshToken:return ee(e.acquireToken.bind(e),N.SilentCacheClientAcquireToken,this.logger,this.performanceClient,r.correlationId)(r);default:throw X(En)}}async acquireTokenByRefreshToken(e,r){switch(this.performanceClient.addQueueMeasurement(N.AcquireTokenByRefreshToken,e.correlationId),r){case Ir.Default:case Ir.AccessTokenAndRefreshToken:case Ir.RefreshToken:case Ir.RefreshTokenAndNetwork:const o=this.createSilentRefreshClient(e.correlationId);return ee(o.acquireToken.bind(o),N.SilentRefreshClientAcquireToken,this.logger,this.performanceClient,e.correlationId)(e);default:throw X(En)}}async acquireTokenBySilentIframe(e){this.performanceClient.addQueueMeasurement(N.AcquireTokenBySilentIframe,e.correlationId);const r=this.createSilentIframeClient(e.correlationId);return ee(r.acquireToken.bind(r),N.SilentIframeClientAcquireToken,this.logger,this.performanceClient,e.correlationId)(e)}async logout(e){const r=this.getRequestCorrelationId(e);return this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.",r),this.logoutRedirect({correlationId:r,...e})}async logoutRedirect(e){const r=this.getRequestCorrelationId(e);return this.preflightBrowserEnvironmentCheck(oe.Redirect),this.createRedirectClient(r).logout(e)}logoutPopup(e){try{const r=this.getRequestCorrelationId(e);return this.preflightBrowserEnvironmentCheck(oe.Popup),this.createPopupClient(r).logout(e)}catch(r){return Promise.reject(r)}}async clearCache(e){const r=this.getRequestCorrelationId(e);return this.createSilentCacheClient(r).logout(e)}getAllAccounts(e){return this.logger.verbose("getAllAccounts called"),this.isBrowserEnvironment?this.browserStorage.getAllAccounts(e):[]}getAccount(e){if(this.logger.trace("getAccount called"),Object.keys(e).length===0)return this.logger.warning("getAccount: No accountFilter provided"),null;const r=this.browserStorage.getAccountInfoFilteredBy(e);return r?(this.logger.verbose("getAccount: Account matching provided filter found, returning"),r):(this.logger.verbose("getAccount: No matching account found, returning null"),null)}getAccountByUsername(e){if(this.logger.trace("getAccountByUsername called"),!e)return this.logger.warning("getAccountByUsername: No username provided"),null;const r=this.browserStorage.getAccountInfoFilteredBy({username:e});return r?(this.logger.verbose("getAccountByUsername: Account matching username found, returning"),this.logger.verbosePii(`getAccountByUsername: Returning signed-in accounts matching username: ${e}`),r):(this.logger.verbose("getAccountByUsername: No matching account found, returning null"),null)}getAccountByHomeId(e){if(this.logger.trace("getAccountByHomeId called"),!e)return this.logger.warning("getAccountByHomeId: No homeAccountId provided"),null;const r=this.browserStorage.getAccountInfoFilteredBy({homeAccountId:e});return r?(this.logger.verbose("getAccountByHomeId: Account matching homeAccountId found, returning"),this.logger.verbosePii(`getAccountByHomeId: Returning signed-in accounts matching homeAccountId: ${e}`),r):(this.logger.verbose("getAccountByHomeId: No matching account found, returning null"),null)}getAccountByLocalId(e){if(this.logger.trace("getAccountByLocalId called"),!e)return this.logger.warning("getAccountByLocalId: No localAccountId provided"),null;const r=this.browserStorage.getAccountInfoFilteredBy({localAccountId:e});return r?(this.logger.verbose("getAccountByLocalId: Account matching localAccountId found, returning"),this.logger.verbosePii(`getAccountByLocalId: Returning signed-in accounts matching localAccountId: ${e}`),r):(this.logger.verbose("getAccountByLocalId: No matching account found, returning null"),null)}setActiveAccount(e){this.browserStorage.setActiveAccount(e)}getActiveAccount(){return this.browserStorage.getActiveAccount()}async hydrateCache(e,r){this.logger.verbose("hydrateCache called");const o=xt.createFromAccountInfo(e.account,e.cloudGraphHostName,e.msGraphHost);return this.browserStorage.setAccount(o),e.fromNativeBroker?(this.logger.verbose("Response was from native broker, storing in-memory"),this.nativeInternalStorage.hydrateCache(e,r)):this.browserStorage.hydrateCache(e,r)}preflightBrowserEnvironmentCheck(e,r=!1){if(this.logger.verbose("preflightBrowserEnvironmentCheck started"),wR(this.isBrowserEnvironment),bR(e,this.config.system.allowRedirectInIframe),Qf(),yR(),L0(this.initialized),e===oe.Redirect&&this.config.cache.cacheLocation===kt.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw yt(w_);(e===oe.Redirect||e===oe.Popup)&&this.preflightInteractiveRequest(!r)}preflightInteractiveRequest(e){this.logger.verbose("preflightInteractiveRequest called, validating app environment"),Qf(),e&&this.getBrowserStorage().setInteractionInProgress(!0)}async acquireTokenNative(e,r,o){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw re(tc);return new Ta(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,r,this.performanceClient,this.nativeExtensionProvider,o||this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId).acquireToken(e)}canUseNative(e,r){if(this.logger.trace("canUseNative called"),!_o.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme))return this.logger.trace("canUseNative: isNativeAvailable returned false, returning false"),!1;if(e.prompt)switch(e.prompt){case $t.NONE:case $t.CONSENT:case $t.LOGIN:this.logger.trace("canUseNative: prompt is compatible with native flow");break;default:return this.logger.trace(`canUseNative: prompt = ${e.prompt} is not compatible with native flow, returning false`),!1}return!r&&!this.getNativeAccountId(e)?(this.logger.trace("canUseNative: nativeAccountId is not available, returning false"),!1):!0}getNativeAccountId(e){const r=e.account||this.getAccount({loginHint:e.loginHint,sid:e.sid})||this.getActiveAccount();return r&&r.nativeAccountId||""}createPopupClient(e){return new iA(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)}createRedirectClient(e){return new aA(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)}createSilentIframeClient(e){return new fA(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,je.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)}createSilentCacheClient(e){return new x_(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)}createSilentRefreshClient(e){return new hA(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)}createSilentAuthCodeClient(e){return new mA(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,je.acquireTokenByCode,this.performanceClient,this.nativeExtensionProvider,e)}addEventCallback(e){return this.eventHandler.addEventCallback(e)}removeEventCallback(e){this.eventHandler.removeEventCallback(e)}addPerformanceCallback(e){return this.performanceClient.addPerformanceCallback(e)}removePerformanceCallback(e){return this.performanceClient.removePerformanceCallback(e)}enableAccountStorageEvents(){this.eventHandler.enableAccountStorageEvents()}disableAccountStorageEvents(){this.eventHandler.disableAccountStorageEvents()}getTokenCache(){return this.tokenCache}getLogger(){return this.logger}setLogger(e){this.logger=e}initializeWrapperLibrary(e,r){this.browserStorage.setWrapperMetadata(e,r)}setNavigationClient(e){this.navigationClient=e}getConfiguration(){return this.config}getPerformanceClient(){return this.performanceClient}getBrowserStorage(){return this.browserStorage}isBrowserEnv(){return this.isBrowserEnvironment}getEventHandler(){return this.eventHandler}getRequestCorrelationId(e){return e?.correlationId?e.correlationId:this.isBrowserEnvironment?tn():F.EMPTY_STRING}async loginRedirect(e){const r=this.getRequestCorrelationId(e);return this.logger.verbose("loginRedirect called",r),this.acquireTokenRedirect({correlationId:r,...e||q0})}loginPopup(e){const r=this.getRequestCorrelationId(e);return this.logger.verbose("loginPopup called",r),this.acquireTokenPopup({correlationId:r,...e||q0})}async acquireTokenSilent(e){const r=this.getRequestCorrelationId(e),o=this.performanceClient.startMeasurement(N.AcquireTokenSilent,r);o.add({cacheLookupPolicy:e.cacheLookupPolicy}),this.preflightBrowserEnvironmentCheck(oe.Silent),this.logger.verbose("acquireTokenSilent called",r);const n=e.account||this.getActiveAccount();if(!n)throw re(QS);const i={clientId:this.config.auth.clientId,authority:e.authority||F.EMPTY_STRING,scopes:e.scopes,homeAccountIdentifier:n.homeAccountId,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid,shrOptions:e.shrOptions},a=JSON.stringify(i),s=this.activeSilentTokenRequests.get(a);if(typeof s>"u"){this.logger.verbose("acquireTokenSilent called for the first time, storing active request",r);const l=ee(this.acquireTokenSilentAsync.bind(this),N.AcquireTokenSilentAsync,this.logger,this.performanceClient,r)({...e,correlationId:r},n).then(c=>(this.activeSilentTokenRequests.delete(a),o.add({accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length}),o.end({success:!0,fromCache:c.fromCache,isNativeBroker:c.fromNativeBroker,cacheLookupPolicy:e.cacheLookupPolicy,requestId:c.requestId}),c)).catch(c=>{throw this.activeSilentTokenRequests.delete(a),o.end({errorCode:c.errorCode,subErrorCode:c.subError,success:!1}),c});return this.activeSilentTokenRequests.set(a,l),{...await l,state:e.state}}else return this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",r),o.discard(),{...await s,state:e.state}}async acquireTokenSilentAsync(e,r){this.performanceClient.addQueueMeasurement(N.AcquireTokenSilentAsync,e.correlationId),this.eventHandler.emitEvent(se.ACQUIRE_TOKEN_START,oe.Silent,e),this.atsAsyncMeasurement=this.performanceClient.startMeasurement(N.AcquireTokenSilentAsync,e.correlationId),this.atsAsyncMeasurement?.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibility);let o;if(_o.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme)&&r.nativeAccountId){this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform");const n={...e,account:r};o=this.acquireTokenNative(n,je.acquireTokenSilent_silentFlow).catch(async i=>{if(i instanceof Uo&&la(i))return this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,this.createSilentIframeClient(e.correlationId).acquireToken(e);throw i})}else{this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow");const n=this.createSilentCacheClient(e.correlationId),i=await ee(n.initializeSilentRequest.bind(n),N.InitializeSilentRequest,this.logger,this.performanceClient,e.correlationId)(e,r),a=e.cacheLookupPolicy||Ir.Default;o=ee(this.acquireTokenFromCache.bind(this),N.AcquireTokenFromCache,this.logger,this.performanceClient,i.correlationId)(n,i,a).catch(s=>{if(e.cacheLookupPolicy===Ir.AccessToken)throw s;return Qf(),this.eventHandler.emitEvent(se.ACQUIRE_TOKEN_NETWORK_START,oe.Silent,i),ee(this.acquireTokenByRefreshToken.bind(this),N.AcquireTokenByRefreshToken,this.logger,this.performanceClient,i.correlationId)(i,a).catch(l=>{if(vA(l,i,a))return this.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",i.correlationId),ee(this.acquireTokenBySilentIframe.bind(this),N.AcquireTokenBySilentIframe,this.logger,this.performanceClient,i.correlationId)(i);throw l})})}return o.then(n=>(this.eventHandler.emitEvent(se.ACQUIRE_TOKEN_SUCCESS,oe.Silent,n),this.atsAsyncMeasurement?.end({success:!0,fromCache:n.fromCache,isNativeBroker:n.fromNativeBroker,requestId:n.requestId}),n)).catch(n=>{throw this.eventHandler.emitEvent(se.ACQUIRE_TOKEN_FAILURE,oe.Silent,null,n),this.atsAsyncMeasurement?.end({errorCode:n.errorCode,subErrorCode:n.subError,success:!1}),n}).finally(()=>{document.removeEventListener("visibilitychange",this.trackPageVisibility)})}}function vA(t,e,r){const o=!(t instanceof ao&&t.subError!==ef),n=t.errorCode===Xr.INVALID_GRANT_ERROR||t.errorCode===En,i=o&&n||t.errorCode===Qu||t.errorCode===iv,a=dR.includes(r);return i&&a}const bA=Object.freeze(Object.defineProperty({__proto__:null,StandardController:of},Symbol.toStringTag,{value:"Module"}));/*! @azure/msal-browser v3.7.1 2024-01-23 */class E_{static async createPublicClientApplication(e){const r=await RR(e);return new E_(e,r)}constructor(e,r){if(r)this.controller=r;else{const o=new Ai(e);this.controller=new of(o)}}async initialize(){return this.controller.initialize()}async acquireTokenPopup(e){return this.controller.acquireTokenPopup(e)}acquireTokenRedirect(e){return this.controller.acquireTokenRedirect(e)}acquireTokenSilent(e){return this.controller.acquireTokenSilent(e)}acquireTokenByCode(e){return this.controller.acquireTokenByCode(e)}addEventCallback(e){return this.controller.addEventCallback(e)}removeEventCallback(e){return this.controller.removeEventCallback(e)}addPerformanceCallback(e){return this.controller.addPerformanceCallback(e)}removePerformanceCallback(e){return this.controller.removePerformanceCallback(e)}enableAccountStorageEvents(){this.controller.enableAccountStorageEvents()}disableAccountStorageEvents(){this.controller.disableAccountStorageEvents()}getAccount(e){return this.controller.getAccount(e)}getAccountByHomeId(e){return this.controller.getAccountByHomeId(e)}getAccountByLocalId(e){return this.controller.getAccountByLocalId(e)}getAccountByUsername(e){return this.controller.getAccountByUsername(e)}getAllAccounts(e){return this.controller.getAllAccounts(e)}handleRedirectPromise(e){return this.controller.handleRedirectPromise(e)}loginPopup(e){return this.controller.loginPopup(e)}loginRedirect(e){return this.controller.loginRedirect(e)}logout(e){return this.controller.logout(e)}logoutRedirect(e){return this.controller.logoutRedirect(e)}logoutPopup(e){return this.controller.logoutPopup(e)}ssoSilent(e){return this.controller.ssoSilent(e)}getTokenCache(){return this.controller.getTokenCache()}getLogger(){return this.controller.getLogger()}setLogger(e){this.controller.setLogger(e)}setActiveAccount(e){this.controller.setActiveAccount(e)}getActiveAccount(){return this.controller.getActiveAccount()}initializeWrapperLibrary(e,r){return this.controller.initializeWrapperLibrary(e,r)}setNavigationClient(e){this.controller.setNavigationClient(e)}getConfiguration(){return this.controller.getConfiguration()}async hydrateCache(e,r){return this.controller.hydrateCache(e,r)}clearCache(e){return this.controller.clearCache(e)}}/*! @azure/msal-browser v3.7.1 2024-01-23 */const yA={initialize:()=>Promise.reject(yt(Et)),acquireTokenPopup:()=>Promise.reject(yt(Et)),acquireTokenRedirect:()=>Promise.reject(yt(Et)),acquireTokenSilent:()=>Promise.reject(yt(Et)),acquireTokenByCode:()=>Promise.reject(yt(Et)),getAllAccounts:()=>[],getAccountByHomeId:()=>null,getAccountByUsername:()=>null,getAccountByLocalId:()=>null,handleRedirectPromise:()=>Promise.reject(yt(Et)),loginPopup:()=>Promise.reject(yt(Et)),loginRedirect:()=>Promise.reject(yt(Et)),logout:()=>Promise.reject(yt(Et)),logoutRedirect:()=>Promise.reject(yt(Et)),logoutPopup:()=>Promise.reject(yt(Et)),ssoSilent:()=>Promise.reject(yt(Et)),addEventCallback:()=>null,removeEventCallback:()=>{},addPerformanceCallback:()=>"",removePerformanceCallback:()=>!1,enableAccountStorageEvents:()=>{},disableAccountStorageEvents:()=>{},getTokenCache:()=>{throw yt(Et)},getLogger:()=>{throw yt(Et)},setLogger:()=>{},setActiveAccount:()=>{},getActiveAccount:()=>null,initializeWrapperLibrary:()=>{},setNavigationClient:()=>{},getConfiguration:()=>{throw yt(Et)},hydrateCache:()=>Promise.reject(yt(Et)),clearCache:()=>Promise.reject(yt(Et))};/*! @azure/msal-browser v3.7.1 2024-01-23 */class wA{static getInteractionStatusFromEvent(e,r){switch(e.eventType){case se.LOGIN_START:return rt.Login;case se.SSO_SILENT_START:return rt.SsoSilent;case se.ACQUIRE_TOKEN_START:if(e.interactionType===oe.Redirect||e.interactionType===oe.Popup)return rt.AcquireToken;break;case se.HANDLE_REDIRECT_START:return rt.HandleRedirect;case se.LOGOUT_START:return rt.Logout;case se.SSO_SILENT_SUCCESS:case se.SSO_SILENT_FAILURE:if(r&&r!==rt.SsoSilent)break;return rt.None;case se.LOGOUT_END:if(r&&r!==rt.Logout)break;return rt.None;case se.HANDLE_REDIRECT_END:if(r&&r!==rt.HandleRedirect)break;return rt.None;case se.LOGIN_SUCCESS:case se.LOGIN_FAILURE:case se.ACQUIRE_TOKEN_SUCCESS:case se.ACQUIRE_TOKEN_FAILURE:case se.RESTORE_FROM_BFCACHE:if(e.interactionType===oe.Redirect||e.interactionType===oe.Popup){if(r&&r!==rt.Login&&r!==rt.AcquireToken)break;return rt.None}break}return null}}/*! @azure/msal-react v2.0.10 2024-01-23 */const kA={instance:yA,inProgress:rt.None,accounts:[],logger:new qn({})},kv=y.createContext(kA);kv.Consumer;/*! @azure/msal-react v2.0.10 2024-01-23 */function B_(t,e){return typeof t=="function"?t(e):t}function G0(t,e){if(t.length!==e.length)return!1;const r=[...e];return t.every(o=>{const n=r.shift();return!o||!n?!1:o.homeAccountId===n.homeAccountId&&o.localAccountId===n.localAccountId&&o.username===n.username})}function SA(t,e){return t.length>0&&(e.homeAccountId||e.localAccountId||e.username)&&t.filter(o=>!(e.username&&e.username.toLowerCase()!==o.username.toLowerCase()||e.homeAccountId&&e.homeAccountId.toLowerCase()!==o.homeAccountId.toLowerCase()||e.localAccountId&&e.localAccountId.toLowerCase()!==o.localAccountId.toLowerCase()))[0]||null}/*! @azure/msal-react v2.0.10 2024-01-23 */const _A="@azure/msal-react",X0="2.0.10";/*! @azure/msal-react v2.0.10 2024-01-23 */const od={UNBLOCK_INPROGRESS:"UNBLOCK_INPROGRESS",EVENT:"EVENT"},xA=(t,e)=>{const{type:r,payload:o}=e;let n=t.inProgress;switch(r){case od.UNBLOCK_INPROGRESS:t.inProgress===rt.Startup&&(n=rt.None,o.logger.info("MsalProvider - handleRedirectPromise resolved, setting inProgress to 'none'"));break;case od.EVENT:const a=o.message,s=wA.getInteractionStatusFromEvent(a,t.inProgress);s&&(o.logger.info(`MsalProvider - ${a.eventType} results in setting inProgress from ${t.inProgress} to ${s}`),n=s);break;default:throw new Error(`Unknown action type: ${r}`)}const i=o.instance.getAllAccounts();return n!==t.inProgress&&!G0(i,t.accounts)?{...t,inProgress:n,accounts:i}:n!==t.inProgress?{...t,inProgress:n}:G0(i,t.accounts)?t:{...t,accounts:i}};function KQ({instance:t,children:e}){y.useEffect(()=>{t.initializeWrapperLibrary(lR.React,X0)},[t]);const r=y.useMemo(()=>t.getLogger().clone(_A,X0),[t]),[o,n]=y.useReducer(xA,void 0,()=>({inProgress:rt.Startup,accounts:t.getAllAccounts()}));y.useEffect(()=>{const a=t.addEventCallback(s=>{n({payload:{instance:t,logger:r,message:s},type:od.EVENT})});return r.verbose(`MsalProvider - Registered event callback with id: ${a}`),t.initialize().then(()=>{t.handleRedirectPromise().catch(()=>{}).finally(()=>{n({payload:{instance:t,logger:r},type:od.UNBLOCK_INPROGRESS})})}).catch(()=>{}),()=>{a&&(r.verbose(`MsalProvider - Removing event callback ${a}`),t.removeEventCallback(a))}},[t,r]);const i={instance:t,inProgress:o.inProgress,accounts:o.accounts,logger:r};return ut.createElement(kv.Provider,{value:i},e)}/*! @azure/msal-react v2.0.10 2024-01-23 */const Sv=()=>y.useContext(kv);/*! @azure/msal-react v2.0.10 2024-01-23 */function Y0(t,e){return e&&(e.username||e.homeAccountId||e.localAccountId)?!!SA(t,e):t.length>0}function I_(t){const{accounts:e,inProgress:r}=Sv(),[o,n]=y.useState(()=>r===rt.Startup?!1:Y0(e,t));return y.useEffect(()=>{n(Y0(e,t))},[e,t]),o}/*! @azure/msal-react v2.0.10 2024-01-23 */function WQ({username:t,homeAccountId:e,localAccountId:r,children:o}){const n=Sv(),i=y.useMemo(()=>({username:t,homeAccountId:e,localAccountId:r}),[t,e,r]);return I_(i)&&n.inProgress!==rt.Startup?ut.createElement(ut.Fragment,null,B_(o,n)):null}/*! @azure/msal-react v2.0.10 2024-01-23 */function VQ({username:t,homeAccountId:e,localAccountId:r,children:o}){const n=Sv(),i=y.useMemo(()=>({username:t,homeAccountId:e,localAccountId:r}),[t,e,r]);return!I_(i)&&n.inProgress!==rt.Startup&&n.inProgress!==rt.HandleRedirect?ut.createElement(ut.Fragment,null,B_(o,n)):null}const CA=["Top","Right","Bottom","Left"];function oc(t,e,...r){const[o,n=o,i=o,a=n]=r,s=[o,n,i,a],l={};for(let c=0;ctypeof t=="string"&&/(\d+(\w+|%))/.test(t),Ic=t=>typeof t=="number"&&!Number.isNaN(t),zA=t=>t==="initial",Z0=t=>t==="auto",MA=t=>t==="none",OA=["content","fit-content","max-content","min-content"],rh=t=>OA.some(e=>t===e)||PA(t);function jA(...t){const e=t.length===1,r=t.length===2,o=t.length===3;if(e){const[n]=t;if(zA(n))return{flexGrow:0,flexShrink:1,flexBasis:"auto"};if(Z0(n))return{flexGrow:1,flexShrink:1,flexBasis:"auto"};if(MA(n))return{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(Ic(n))return{flexGrow:n,flexShrink:1,flexBasis:0};if(rh(n))return{flexGrow:1,flexShrink:1,flexBasis:n}}if(r){const[n,i]=t;if(Ic(i))return{flexGrow:n,flexShrink:i,flexBasis:0};if(rh(i))return{flexGrow:n,flexShrink:1,flexBasis:i}}if(o){const[n,i,a]=t;if(Ic(n)&&Ic(i)&&(Z0(a)||rh(a)))return{flexGrow:n,flexShrink:i,flexBasis:a}}return{}}function DA(t,e=t){return{columnGap:t,rowGap:e}}const FA=/var\(.*\)/gi;function qA(t){return t===void 0||typeof t=="number"||typeof t=="string"&&!FA.test(t)}const LA=/^[a-zA-Z0-9\-_\\#;]+$/,HA=/^-moz-initial$|^auto$|^initial$|^inherit$|^revert$|^unset$|^span \d+$|^\d.*/;function oh(t){return t!==void 0&&typeof t=="string"&&LA.test(t)&&!HA.test(t)}function UA(...t){if(t.some(i=>!qA(i)))return{};const e=t[0]!==void 0?t[0]:"auto",r=t[1]!==void 0?t[1]:oh(e)?e:"auto",o=t[2]!==void 0?t[2]:oh(e)?e:"auto",n=t[3]!==void 0?t[3]:oh(r)?r:"auto";return{gridRowStart:e,gridColumnStart:r,gridRowEnd:o,gridColumnEnd:n}}function $A(...t){return oc("margin","",...t)}function KA(t,e=t){return{marginBlockStart:t,marginBlockEnd:e}}function WA(t,e=t){return{marginInlineStart:t,marginInlineEnd:e}}function VA(...t){return oc("padding","",...t)}function GA(t,e=t){return{paddingBlockStart:t,paddingBlockEnd:e}}function XA(t,e=t){return{paddingInlineStart:t,paddingInlineEnd:e}}function YA(t,e=t){return{overflowX:t,overflowY:e}}function ZA(...t){const[e,r=e,o=e,n=r]=t;return{top:e,right:r,bottom:o,left:n}}function QA(t,e,r){return{outlineWidth:t,...e&&{outlineStyle:e},...r&&{outlineColor:r}}}function JA(...t){return t3(t)?{transitionDelay:t[0],transitionDuration:t[0],transitionProperty:t[0],transitionTimingFunction:t[0]}:r3(t).reduce((r,[o,n="0s",i="0s",a="ease"],s)=>(s===0?(r.transitionProperty=o,r.transitionDuration=n,r.transitionDelay=i,r.transitionTimingFunction=a):(r.transitionProperty+=`, ${o}`,r.transitionDuration+=`, ${n}`,r.transitionDelay+=`, ${i}`,r.transitionTimingFunction+=`, ${a}`),r),{})}const e3=["-moz-initial","inherit","initial","revert","unset"];function t3(t){return t.length===1&&e3.includes(t[0])}function r3(t){return t.length===1&&Array.isArray(t[0])?t[0]:[t]}function o3(t,...e){if(e.length===0)return i3(t)?{textDecorationStyle:t}:{textDecorationLine:t};const[r,o,n]=e;return{textDecorationLine:t,...r&&{textDecorationStyle:r},...o&&{textDecorationColor:o},...n&&{textDecorationThickness:n}}}const n3=["dashed","dotted","double","solid","wavy"];function i3(t){return n3.includes(t)}const nh=typeof window>"u"?global:window,ih="@griffel/";function a3(t,e){return nh[Symbol.for(ih+t)]||(nh[Symbol.for(ih+t)]=e),nh[Symbol.for(ih+t)]}const zg=a3("DEFINITION_LOOKUP_TABLE",{}),bu="data-make-styles-bucket",Mg="f",Og=7,_v="___",s3=_v.length+Og,l3=0,c3=1,u3={all:1,animation:1,animationRange:1,background:1,backgroundPosition:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockStart:1,borderBottom:1,borderColor:1,borderImage:1,borderInline:1,borderInlineEnd:1,borderInlineStart:1,borderLeft:1,borderRadius:1,borderRight:1,borderStyle:1,borderTop:1,borderWidth:1,caret:1,columns:1,columnRule:1,containIntrinsicSize:1,container:1,flex:1,flexFlow:1,font:1,gap:1,grid:1,gridArea:1,gridColumn:1,gridRow:1,gridTemplate:1,inset:1,insetBlock:1,insetInline:1,lineClamp:1,listStyle:1,margin:1,marginBlock:1,marginInline:1,mask:1,maskBorder:1,motion:1,offset:1,outline:1,overflow:1,overscrollBehavior:1,padding:1,paddingBlock:1,paddingInline:1,placeItems:1,placeContent:1,placeSelf:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginInline:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingInline:1,scrollSnapMargin:1,scrollTimeline:1,textDecoration:1,textEmphasis:1,transition:1,viewTimeline:1};function vl(t){for(var e=0,r,o=0,n=t.length;n>=4;++o,n-=4)r=t.charCodeAt(o)&255|(t.charCodeAt(++o)&255)<<8|(t.charCodeAt(++o)&255)<<16|(t.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(n){case 3:e^=(t.charCodeAt(o+2)&255)<<16;case 2:e^=(t.charCodeAt(o+1)&255)<<8;case 1:e^=t.charCodeAt(o)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}function d3(t){const e=t.length;if(e===Og)return t;for(let r=e;r0&&(e+=u.slice(0,d)),r+=f,o[c]=f}}}if(r==="")return e.slice(0,-1);const n=Q0[r];if(n!==void 0)return e+n;const i=[];for(let c=0;ci.cssText):o}}}const g3=["r","d","l","v","w","f","i","h","a","s","k","t","m","c"],J0=g3.reduce((t,e,r)=>(t[e]=r,t),{});function p3(t,e,r,o,n={}){const i=t==="m",a=i?t+n.m:t;if(!o.stylesheets[a]){const s=e&&e.createElement("style"),l=h3(s,t,{...o.styleElementAttributes,...i&&{media:n.m}});o.stylesheets[a]=l,e&&s&&e.head.insertBefore(s,m3(e,r,t,o,n))}return o.stylesheets[a]}function m3(t,e,r,o,n){const i=J0[r];let a=u=>i-J0[u.getAttribute(bu)],s=t.head.querySelectorAll(`[${bu}]`);if(r==="m"&&n){const u=t.head.querySelectorAll(`[${bu}="${r}"]`);u.length&&(s=u,a=d=>o.compareMediaQueries(n.m,d.media))}const l=s.length;let c=l-1;for(;c>=0;){const u=s.item(c);if(a(u)>0)return u.nextSibling;c--}return l>0?s.item(0):e?e.nextSibling:null}function eb(t,e){try{t.insertRule(e)}catch{}}let v3=0;const b3=(t,e)=>te?1:0;function y3(t=typeof document>"u"?void 0:document,e={}){const{unstable_filterCSSRule:r,insertionPoint:o,styleElementAttributes:n,compareMediaQueries:i=b3}=e,a={insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(n),compareMediaQueries:i,id:`d${v3++}`,insertCSSRules(s){for(const l in s){const c=s[l];for(let u=0,d=c.length;u{const t={};return function(r,o){t[r.id]===void 0&&(r.insertCSSRules(o),t[r.id]=!0)}};function N_(t){return t.reduce(function(e,r){var o=r[0],n=r[1];return e[o]=n,e[n]=o,e},{})}function w3(t){return typeof t=="boolean"}function k3(t){return typeof t=="function"}function qs(t){return typeof t=="number"}function S3(t){return t===null||typeof t>"u"}function _3(t){return t&&typeof t=="object"}function x3(t){return typeof t=="string"}function yu(t,e){return t.indexOf(e)!==-1}function C3(t){return parseFloat(t)===0?t:t[0]==="-"?t.slice(1):"-"+t}function Rc(t,e,r,o){return e+C3(r)+o}function T3(t){var e=t.indexOf(".");if(e===-1)t=100-parseFloat(t)+"%";else{var r=t.length-e-2;t=100-parseFloat(t),t=t.toFixed(r)+"%"}return t}function P_(t){return t.replace(/ +/g," ").split(" ").map(function(e){return e.trim()}).filter(Boolean).reduce(function(e,r){var o=e.list,n=e.state,i=(r.match(/\(/g)||[]).length,a=(r.match(/\)/g)||[]).length;return n.parensDepth>0?o[o.length-1]=o[o.length-1]+" "+r:o.push(r),n.parensDepth+=i-a,{list:o,state:n}},{list:[],state:{parensDepth:0}}).list}function tb(t){var e=P_(t);if(e.length<=3||e.length>4)return t;var r=e[0],o=e[1],n=e[2],i=e[3];return[r,i,n,o].join(" ")}function E3(t){return!w3(t)&&!S3(t)}function B3(t){for(var e=[],r=0,o=0,n=!1;o0?Gt(ds,--_r):0,Wa--,Ye===10&&(Wa=1,sf--),Ye}function jr(){return Ye=_r<$_?Gt(ds,_r++):0,Wa++,Ye===10&&(Wa=1,sf++),Ye}function wi(){return Gt(ds,_r)}function wu(){return _r}function cf(t,e){return bl(ds,t,e)}function id(t){switch(t){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 K_(t){return sf=Wa=1,$_=bo(ds=t),_r=0,[]}function W_(t){return ds="",t}function ku(t){return q_(cf(_r-1,Dg(t===91?t+2:t===40?t+1:t)))}function W3(t){return W_(G3(K_(t)))}function V3(t){for(;(Ye=wi())&&Ye<33;)jr();return id(t)>2||id(Ye)>3?"":" "}function G3(t){for(;jr();)switch(id(Ye)){case 0:pi(V_(_r-1),t);break;case 2:pi(ku(Ye),t);break;default:pi(af(Ye),t)}return t}function X3(t,e){for(;--e&&jr()&&!(Ye<48||Ye>102||Ye>57&&Ye<65||Ye>70&&Ye<97););return cf(t,wu()+(e<6&&wi()==32&&jr()==32))}function Dg(t){for(;jr();)switch(Ye){case t:return _r;case 34:case 39:t!==34&&t!==39&&Dg(Ye);break;case 40:t===41&&Dg(t);break;case 92:jr();break}return _r}function Y3(t,e){for(;jr()&&t+Ye!==57;)if(t+Ye===84&&wi()===47)break;return"/*"+cf(e,_r-1)+"*"+af(t===47?t:jr())}function V_(t){for(;!id(wi());)jr();return cf(t,_r)}function G_(t){return W_(Su("",null,null,null,[""],t=K_(t),0,[0],t))}function Su(t,e,r,o,n,i,a,s,l){for(var c=0,u=0,d=a,f=0,h=0,g=0,p=1,w=1,v=1,m=0,b="",k=n,x=i,_=o,S=b;w;)switch(g=m,m=jr()){case 40:if(g!=108&&Gt(S,d-1)==58){H_(S+=ar(ku(m),"&","&\f"),"&\f",F_(c?s[c-1]:0))!=-1&&(v=-1);break}case 34:case 39:case 91:S+=ku(m);break;case 9:case 10:case 13:case 32:S+=V3(g);break;case 92:S+=X3(wu()-1,7);continue;case 47:switch(wi()){case 42:case 47:pi(Z3(Y3(jr(),wu()),e,r,l),l);break;default:S+="/"}break;case 123*p:s[c++]=bo(S)*v;case 125*p:case 59:case 0:switch(m){case 0:case 125:w=0;case 59+u:v==-1&&(S=ar(S,/\f/g,"")),h>0&&bo(S)-d&&pi(h>32?nb(S+";",o,r,d-1,l):nb(ar(S," ","")+";",o,r,d-2,l),l);break;case 59:S+=";";default:if(pi(_=ob(S,e,r,c,u,n,s,b,k=[],x=[],d,i),i),m===123)if(u===0)Su(S,e,_,_,k,i,d,s,x);else switch(f===99&&Gt(S,3)===110?100:f){case 100:case 108:case 109:case 115:Su(t,_,_,o&&pi(ob(t,_,_,0,0,n,s,b,n,k=[],d,x),x),n,x,d,s,o?k:x);break;default:Su(S,_,_,_,[""],x,0,s,x)}}c=u=h=0,p=v=1,b=S="",d=a;break;case 58:d=1+bo(S),h=g;default:if(p<1){if(m==123)--p;else if(m==125&&p++==0&&K3()==125)continue}switch(S+=af(m),m*p){case 38:v=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(bo(S)-1)*v,v=1;break;case 64:wi()===45&&(S+=ku(jr())),f=wi(),u=d=bo(b=S+=V_(wu())),m++;break;case 45:g===45&&bo(S)==2&&(p=0)}}return i}function ob(t,e,r,o,n,i,a,s,l,c,u,d){for(var f=n-1,h=n===0?i:[""],g=U_(h),p=0,w=0,v=0;p0?h[m]+" "+b:ar(b,/&\f/g,h[m])))&&(l[v++]=k);return lf(t,e,r,n===0?nf:s,l,c,u,d)}function Z3(t,e,r,o){return lf(t,e,r,j_,af($3()),bl(t,2,-2),0,o)}function nb(t,e,r,o,n){return lf(t,e,r,Cv,bl(t,0,o),bl(t,o+1,-1),o,n)}function Va(t,e){for(var r="",o=0;o{switch(t.type){case nf:if(typeof t.props=="string")return;t.props=t.props.map(e=>e.indexOf(":global(")===-1?e:W3(e).reduce((r,o,n,i)=>{if(o==="")return r;if(o===":"&&i[n+1]==="global"){const a=i[n+2].slice(1,-1)+" ";return r.unshift(a),i[n+1]="",i[n+2]="",r}return r.push(o),r},[]).join(""))}};function Q_(t,e,r){switch(H3(t,e)){case 5103:return $r+"print-"+t+t;case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:return $r+t+t;case 4215:if(Gt(t,9)===102||Gt(t,e+1)===116)return $r+t+t;break;case 4789:return Qs+t+t;case 5349:case 4246:case 6968:return $r+t+Qs+t+t;case 6187:if(!L_(t,/grab/))return ar(ar(ar(t,/(zoom-|grab)/,$r+"$1"),/(image-set)/,$r+"$1"),t,"")+t;case 5495:case 3959:return ar(t,/(image-set\([^]*)/,$r+"$1$`$1");case 4095:case 3583:case 4068:case 2532:return ar(t,/(.+)-inline(.+)/,$r+"$1$2")+t;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(bo(t)-1-e>6)switch(Gt(t,e+1)){case 102:if(Gt(t,e+3)===108)return ar(t,/(.+:)(.+)-([^]+)/,"$1"+$r+"$2-$3$1"+Qs+(Gt(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~H_(t,"stretch")?Q_(ar(t,"stretch","fill-available"),e)+t:t}break}return t}function J_(t,e,r,o){if(t.length>-1&&!t.return)switch(t.type){case Cv:t.return=Q_(t.value,t.length);return;case nf:if(t.length)return U3(t.props,function(n){switch(L_(n,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Va([sh(t,{props:[ar(n,/:(read-\w+)/,":"+Qs+"$1")]})],o);case"::placeholder":return Va([sh(t,{props:[ar(n,/:(plac\w+)/,":"+$r+"input-$1")]}),sh(t,{props:[ar(n,/:(plac\w+)/,":"+Qs+"$1")]})],o)}return""})}}function J3(t){switch(t.type){case"@container":case j3:case F3:case D_:return!0}return!1}const e4=t=>{J3(t)&&Array.isArray(t.children)&&t.children.sort((e,r)=>e.props[0]>r.props[0]?1:-1)};function t4(){}function r4(t,e){const r=[];return Va(G_(t),Y_([Q3,e?e4:t4,J_,X_,Z_(o=>r.push(o))])),r}const o4=/,( *[^ &])/g;function n4(t){return"&"+O_(t.replace(o4,",&$1"))}function ib(t,e,r){let o=e;return r.length>0&&(o=r.reduceRight((n,i)=>`${n4(i)} { ${n} }`,e)),`${t}{${o}}`}function ab(t){const{className:e,media:r,layer:o,selectors:n,support:i,property:a,rtlClassName:s,rtlProperty:l,rtlValue:c,value:u,container:d}=t,f=`.${e}`,h=Array.isArray(u)?`${u.map(p=>`${Ls(a)}: ${p}`).join(";")};`:`${Ls(a)}: ${u};`;let g=ib(f,h,n);if(l&&s){const p=`.${s}`,w=Array.isArray(c)?`${c.map(v=>`${Ls(l)}: ${v}`).join(";")};`:`${Ls(l)}: ${c};`;g+=ib(p,w,n)}return r&&(g=`@media ${r} { ${g} }`),o&&(g=`@layer ${o} { ${g} }`),i&&(g=`@supports ${i} { ${g} }`),d&&(g=`@container ${d} { ${g} }`),r4(g,!0)}function i4(t){let e="";for(const r in t){const o=t[r];typeof o!="string"&&typeof o!="number"||(e+=Ls(r)+":"+o+";")}return e}function sb(t){let e="";for(const r in t)e+=`${r}{${i4(t[r])}}`;return e}function lb(t,e){const r=`@keyframes ${t} {${e}}`,o=[];return Va(G_(r),Y_([X_,J_,Z_(n=>o.push(n))])),o}function cb(t,e){return t.length===0?e:`${t} and ${e}`}function a4(t){return t.substr(0,6)==="@media"}function s4(t){return t.substr(0,6)==="@layer"}const l4=/^(:|\[|>|&)/;function c4(t){return l4.test(t)}function u4(t){return t.substr(0,9)==="@supports"}function d4(t){return t.substring(0,10)==="@container"}function f4(t){return t!=null&&typeof t=="object"&&Array.isArray(t)===!1}const ub={"us-w":"w","us-v":"i",nk:"l",si:"v",cu:"f",ve:"h",ti:"a"};function db(t,e,r,o,n){if(r)return"m";if(e||o)return"t";if(n)return"c";if(t.length>0){const i=t[0].trim();if(i.charCodeAt(0)===58)return ub[i.slice(4,8)]||ub[i.slice(3,5)]||"d"}return"d"}function Ac({container:t,media:e,layer:r,property:o,selector:n,support:i,value:a}){const s=vl(n+t+e+r+i+o+a.trim());return Mg+s}function fb(t,e,r,o,n){const i=t+e+r+o+n,a=vl(i),s=a.charCodeAt(0);return s>=48&&s<=57?String.fromCharCode(s+17)+a.slice(1):a}function hb(t){return t.replace(/>\s+/g,">")}function h4(t,e){const r=JSON.stringify(e,null,2);" ".repeat(2)+""," ".repeat(4)+""," ".repeat(6)+`"${t}": ${r.split(` -`).map((o,n)=>" ".repeat(n===0?0:6)+o).join(` -`)}`," ".repeat(4)+""," ".repeat(2)+"",t.indexOf("&")}function gb(t,e,r,o){t[e]=o?[r,o]:r}function pb(t,e){return e?[t,e]:t}function lh(t,e,r,o,n){var i;let a;e==="m"&&n&&(a={m:n}),(i=t[e])!==null&&i!==void 0||(t[e]=[]),r&&t[e].push(pb(r,a)),o&&t[e].push(pb(o,a))}function ii(t,e=[],r="",o="",n="",i="",a={},s={},l){for(const c in t){if(u3.hasOwnProperty(c)){t[c];continue}const u=t[c];if(u!=null){if(typeof u=="string"||typeof u=="number"){const d=hb(e.join("")),f=fb(d,i,r,n,c),h=Ac({container:i,media:r,layer:o,value:u.toString(),support:n,selector:d,property:c}),g=l&&{key:c,value:l}||jg(c,u),p=g.key!==c||g.value!==u,w=p?Ac({container:i,value:g.value.toString(),property:g.key,selector:d,media:r,layer:o,support:n}):void 0,v=p?{rtlClassName:w,rtlProperty:g.key,rtlValue:g.value}:void 0,m=db(e,o,r,n,i),[b,k]=ab({className:h,media:r,layer:o,selectors:e,property:c,support:n,container:i,value:u,...v});gb(a,f,h,w),lh(s,m,b,k,r)}else if(c==="animationName"){const d=Array.isArray(u)?u:[u],f=[],h=[];for(const g of d){const p=sb(g),w=sb(M_(g)),v=Mg+vl(p);let m;const b=lb(v,p);let k=[];p===w?m=v:(m=Mg+vl(w),k=lb(m,w));for(let x=0;x(_??"").toString()).join(";"),support:n,selector:d,property:c}),g=u.map(_=>jg(c,_));if(!!g.some(_=>_.key!==g[0].key))continue;const w=g[0].key!==c||g.some((_,S)=>_.value!==u[S]),v=w?Ac({container:i,value:g.map(_=>{var S;return((S=_?.value)!==null&&S!==void 0?S:"").toString()}).join(";"),property:g[0].key,selector:d,layer:o,media:r,support:n}):void 0,m=w?{rtlClassName:v,rtlProperty:g[0].key,rtlValue:g.map(_=>_.value)}:void 0,b=db(e,o,r,n,i),[k,x]=ab({className:h,media:r,layer:o,selectors:e,property:c,support:n,container:i,value:u,...m});gb(a,f,h,v),lh(s,b,k,x,r)}else if(f4(u))if(c4(c))ii(u,e.concat(O_(c)),r,o,n,i,a,s);else if(a4(c)){const d=cb(r,c.slice(6).trim());ii(u,e,d,o,n,i,a,s)}else if(s4(c)){const d=(o?`${o}.`:"")+c.slice(6).trim();ii(u,e,r,d,n,i,a,s)}else if(u4(c)){const d=cb(n,c.slice(9).trim());ii(u,e,r,o,d,i,a,s)}else if(d4(c)){const d=c.slice(10).trim();ii(u,e,r,o,n,d,a,s)}else h4(c,u)}}return[a,s]}function g4(t){const e={},r={};for(const o in t){const n=t[o],[i,a]=ii(n);e[o]=i,Object.keys(a).forEach(s=>{r[s]=(r[s]||[]).concat(a[s])})}return[e,r]}function p4(t,e=xv){const r=e();let o=null,n=null,i=null,a=null;function s(l){const{dir:c,renderer:u}=l;o===null&&([o,n]=g4(t));const d=c==="ltr";return d?i===null&&(i=nd(o,c)):a===null&&(a=nd(o,c)),r(u,n),d?i:a}return s}function ex(t,e,r=xv){const o=r();let n=null,i=null;function a(s){const{dir:l,renderer:c}=s,u=l==="ltr";return u?n===null&&(n=nd(t,l)):i===null&&(i=nd(t,l)),o(c,e),u?n:i}return a}function m4(t,e,r,o=xv){const n=o();function i(a){const{dir:s,renderer:l}=a,c=s==="ltr"?t:e||t;return n(l,Array.isArray(r)?{r}:r),c}return i}const GQ={border:EA,borderLeft:BA,borderBottom:IA,borderRight:RA,borderTop:AA,borderColor:Pg,borderStyle:Ng,borderRadius:NA,borderWidth:Ag,flex:jA,gap:DA,gridArea:UA,margin:$A,marginBlock:KA,marginInline:WA,padding:VA,paddingBlock:GA,paddingInline:XA,overflow:YA,inset:ZA,outline:QA,transition:JA,textDecoration:o3};function v4(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}const mb=Ku.useInsertionEffect?Ku.useInsertionEffect:void 0,Tv=()=>{const t={};return function(r,o){if(mb&&v4()){mb(()=>{r.insertCSSRules(o)},[r,o]);return}t[r.id]===void 0&&(r.insertCSSRules(o),t[r.id]=!0)}},b4=y.createContext(y3());function ic(){return y.useContext(b4)}const tx=y.createContext("ltr"),y4=({children:t,dir:e})=>y.createElement(tx.Provider,{value:e},t);function Ev(){return y.useContext(tx)}function XQ(t){const e=p4(t,Tv);return function(){const o=Ev(),n=ic();return e({dir:o,renderer:n})}}function q(t,e){const r=ex(t,e,Tv);return function(){const n=Ev(),i=ic();return r({dir:n,renderer:i})}}function fe(t,e,r){const o=m4(t,e,r,Tv);return function(){const i=Ev(),a=ic();return o({dir:i,renderer:a})}}function w4(t,e){if(e){const r=Object.keys(e).reduce((o,n)=>`${o}--${n}: ${e[n]}; `,"");return`${t} { ${r} }`}return`${t} {}`}const rx=Symbol.for("fui.slotRenderFunction"),uf=Symbol.for("fui.slotElementType");function te(t,e){const{defaultProps:r,elementType:o}=e,n=Bv(t),i={...r,...n,[uf]:o};return n&&typeof n.children=="function"&&(i[rx]=n.children,i.children=r?.children),i}function me(t,e){if(!(t===null||t===void 0&&!e.renderByDefault))return te(t,e)}function Bv(t){return typeof t=="string"||typeof t=="number"||Array.isArray(t)||y.isValidElement(t)?{children:t}:t}function ox(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)&&!y.isValidElement(t)}function vb(t){return!!t?.hasOwnProperty(uf)}const Me=(...t)=>{const e={};for(const r of t){const o=Array.isArray(r)?r:Object.keys(r);for(const n of o)e[n]=1}return e},k4=Me(["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"]),S4=Me(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),_4=Me(["itemID","itemProp","itemRef","itemScope","itemType"]),bt=Me(S4,k4,_4),x4=Me(bt,["form"]),nx=Me(bt,["height","loop","muted","preload","src","width"]),C4=Me(nx,["poster"]),T4=Me(bt,["start"]),E4=Me(bt,["value"]),B4=Me(bt,["download","href","hrefLang","media","rel","target","type"]),I4=Me(bt,["dateTime"]),df=Me(bt,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),R4=Me(df,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),A4=Me(df,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),N4=Me(df,["form","multiple","required"]),P4=Me(bt,["selected","value"]),z4=Me(bt,["cellPadding","cellSpacing"]),M4=bt,O4=Me(bt,["colSpan","rowSpan","scope"]),j4=Me(bt,["colSpan","headers","rowSpan","scope"]),D4=Me(bt,["span"]),F4=Me(bt,["span"]),q4=Me(bt,["disabled","form"]),L4=Me(bt,["acceptCharset","action","encType","encType","method","noValidate","target"]),H4=Me(bt,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),U4=Me(bt,["alt","crossOrigin","height","src","srcSet","useMap","width"]),$4=Me(bt,["open","onCancel","onClose"]);function K4(t,e,r){const o=Array.isArray(e),n={},i=Object.keys(t);for(const a of i)(!o&&e[a]||o&&e.indexOf(a)>=0||a.indexOf("data-")===0||a.indexOf("aria-")===0)&&(!r||r?.indexOf(a)===-1)&&(n[a]=t[a]);return n}const W4={label:x4,audio:nx,video:C4,ol:T4,li:E4,a:B4,button:df,input:R4,textarea:A4,select:N4,option:P4,table:z4,tr:M4,th:O4,td:j4,colGroup:D4,col:F4,fieldset:q4,form:L4,iframe:H4,img:U4,time:I4,dialog:$4};function ix(t,e,r){const o=t&&W4[t]||bt;return o.as=1,K4(e,o,r)}const $i=({primarySlotTagName:t,props:e,excludedPropNames:r})=>({root:{style:e.style,className:e.className},primary:ix(t,e,[...r||[],"style","className"])}),ve=(t,e,r)=>{var o;return ix((o=e.as)!==null&&o!==void 0?o:t,e,r)};function Yn(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}function ax(t,e){const r=y.useRef(void 0),o=y.useCallback((i,a)=>(r.current!==void 0&&e(r.current),r.current=t(i,a),r.current),[e,t]),n=y.useCallback(()=>{r.current!==void 0&&(e(r.current),r.current=void 0)},[e]);return y.useEffect(()=>n,[n]),[o,n]}const V4=t=>(t(0),0),G4=t=>t;function X4(){const t=Yn();return ax(t?requestAnimationFrame:V4,t?cancelAnimationFrame:G4)}function Y4(t){return typeof t=="function"}const Tt=t=>{const[e,r]=y.useState(()=>t.defaultState===void 0?t.initialState:Z4(t.defaultState)?t.defaultState():t.defaultState),o=y.useRef(t.state);y.useEffect(()=>{o.current=t.state},[t.state]);const n=y.useCallback(i=>{Y4(i)&&i(o.current)},[]);return Q4(t.state)?[t.state,n]:[e,r]};function Z4(t){return typeof t=="function"}const Q4=t=>{const[e]=y.useState(()=>t!==void 0);return e},sx={current:0},J4=y.createContext(void 0);function lx(){var t;return(t=y.useContext(J4))!==null&&t!==void 0?t:sx}function eN(){const t=lx()!==sx,[e,r]=y.useState(t);return Yn()&&t&&y.useLayoutEffect(()=>{r(!1)},[]),e}const Qt=Yn()?y.useLayoutEffect:y.useEffect,Q=t=>{const e=y.useRef(()=>{throw new Error("Cannot call an event handler while rendering")});return Qt(()=>{e.current=t},[t]),y.useCallback((...r)=>{const o=e.current;return o(...r)},[e])};function cx(){const t=y.useRef(!0);return t.current?(t.current=!1,!0):t.current}function tN(){return y.useReducer(t=>t+1,0)[1]}const ux=y.createContext(void 0);ux.Provider;function rN(){return y.useContext(ux)||""}function Rt(t="fui-",e){const r=lx(),o=rN(),n=Ku.useId;if(n){const i=n(),a=y.useMemo(()=>i.replace(/:/g,""),[i]);return e||`${o}${t}${a}`}return y.useMemo(()=>e||`${o}${t}${++r.current}`,[o,t,e,r])}function Re(...t){const e=y.useCallback(r=>{e.current=r;for(const o of t)typeof o=="function"?o(r):o&&(o.current=r)},[...t]);return e}const dx=y.createContext(void 0),oN=dx.Provider,fx=y.createContext(void 0),nN="",iN=fx.Provider;function aN(){var t;return(t=y.useContext(fx))!==null&&t!==void 0?t:nN}const hx=y.createContext(void 0),sN={},lN=hx.Provider;function cN(){var t;return(t=y.useContext(hx))!==null&&t!==void 0?t:sN}const gx=y.createContext(void 0),uN={targetDocument:typeof document=="object"?document:void 0,dir:"ltr"},dN=gx.Provider;function Pe(){var t;return(t=y.useContext(gx))!==null&&t!==void 0?t:uN}const px=y.createContext(void 0),fN=px.Provider;function ff(){var t;return(t=y.useContext(px))!==null&&t!==void 0?t:{}}const Iv=y.createContext(void 0),hN=()=>{},gN=Iv.Provider,ue=t=>{var e,r;return(r=(e=y.useContext(Iv))===null||e===void 0?void 0:e[t])!==null&&r!==void 0?r:hN},mx=y.createContext(void 0),pN=mx.Provider;function Rv(){return y.useContext(mx)}const vx=y.createContext(void 0);vx.Provider;function mN(){return y.useContext(vx)}const bx=(t,e)=>!!t?.contains(e),yx=t=>{const{targetDocument:e}=Pe(),r=e?.defaultView,{refs:o,callback:n,element:i,disabled:a,disabledFocusOnIframe:s,contains:l=bx}=t,c=y.useRef(void 0);bN({element:i,disabled:s||a,callback:n,refs:o,contains:l});const u=y.useRef(!1),d=Q(h=>{if(u.current){u.current=!1;return}const g=h.composedPath()[0];o.every(w=>!l(w.current||null,g))&&!a&&n(h)}),f=Q(h=>{u.current=o.some(g=>l(g.current||null,h.target))});y.useEffect(()=>{if(a)return;let h=vN(r);const g=p=>{if(p===h){h=void 0;return}d(p)};return i?.addEventListener("click",g,!0),i?.addEventListener("touchstart",g,!0),i?.addEventListener("contextmenu",g,!0),i?.addEventListener("mousedown",f,!0),c.current=r?.setTimeout(()=>{h=void 0},1),()=>{i?.removeEventListener("click",g,!0),i?.removeEventListener("touchstart",g,!0),i?.removeEventListener("contextmenu",g,!0),i?.removeEventListener("mousedown",f,!0),r?.clearTimeout(c.current),h=void 0}},[d,i,a,f,r])},vN=t=>{if(t){var e,r;if(typeof t.window=="object"&&t.window===t)return t.event;var o;return(o=(r=t.ownerDocument)===null||r===void 0||(e=r.defaultView)===null||e===void 0?void 0:e.event)!==null&&o!==void 0?o:void 0}},ch="fuiframefocus",bN=t=>{const{disabled:e,element:r,callback:o,contains:n=bx,pollDuration:i=1e3,refs:a}=t,s=y.useRef(),l=Q(c=>{a.every(d=>!n(d.current||null,c.target))&&!e&&o(c)});y.useEffect(()=>{if(!e)return r?.addEventListener(ch,l,!0),()=>{r?.removeEventListener(ch,l,!0)}},[r,e,l]),y.useEffect(()=>{var c;if(!e)return s.current=r==null||(c=r.defaultView)===null||c===void 0?void 0:c.setInterval(()=>{const u=r?.activeElement;if(u?.tagName==="IFRAME"||u?.tagName==="WEBVIEW"){const d=new CustomEvent(ch,{bubbles:!0});u.dispatchEvent(d)}},i),()=>{var u;r==null||(u=r.defaultView)===null||u===void 0||u.clearTimeout(s.current)}},[r,e,i])},wx=t=>{const{refs:e,callback:r,element:o,disabled:n,contains:i}=t,a=Q(s=>{const l=i||((d,f)=>!!d?.contains(f)),c=s.composedPath()[0];e.every(d=>!l(d.current||null,c))&&!n&&r(s)});y.useEffect(()=>{if(!n)return o?.addEventListener("wheel",a),o?.addEventListener("touchmove",a),()=>{o?.removeEventListener("wheel",a),o?.removeEventListener("touchmove",a)}},[a,o,n])};function yl(){return ax(setTimeout,clearTimeout)}function de(t,e){return(...r)=>{t?.(...r),e?.(...r)}}function Ve(t,e){var r;const o=t;var n;return!!(!(o==null||(r=o.ownerDocument)===null||r===void 0)&&r.defaultView&&o instanceof o.ownerDocument.defaultView[(n=e?.constructorName)!==null&&n!==void 0?n:"HTMLElement"])}function yN(t){if(!Ve(t))return!1;const{tagName:e}=t;switch(e){case"BUTTON":case"A":case"INPUT":case"TEXTAREA":return!0}return t.isContentEditable}function kx(t){const e=[];let r=0;const o=(f,h)=>{const g=e[f];e[f]=e[h],e[h]=g},n=f=>{let h=f;const g=wN(f),p=kN(f);ge.slice(0,r),clear:()=>{r=0},contains:f=>{const h=e.indexOf(f);return h>=0&&h{if(r===0)throw new Error("Priority queue empty");const f=e[0];return e[0]=e[--r],n(0),f},enqueue:f=>{e[r++]=f;let h=r-1,g=bb(h);for(;h>0&&t(e[g],e[h])>0;)o(g,h),h=g,g=bb(h)},peek:()=>r===0?null:e[0],remove:f=>{const h=e.indexOf(f);h===-1||h>=r||(e[h]=e[--r],n(h))},size:()=>r}}const wN=t=>2*t+1,kN=t=>2*t+2,bb=t=>Math.floor((t-1)/2);function Sx(t){return!!t.type.isFluentTriggerComponent}function hf(t,e){return typeof t=="function"?t(e):t?_x(t,e):t||null}function _x(t,e){if(!y.isValidElement(t)||t.type===y.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(Sx(t)){const r=_x(t.props.children,e);return y.cloneElement(t,void 0,r)}else return y.cloneElement(t,e)}function ac(t){return y.isValidElement(t)?Sx(t)?ac(t.props.children):t:null}function Fg(t){return t.type.startsWith("touch")}function qg(t){return t.type.startsWith("mouse")||["click","contextmenu","dblclick"].indexOf(t.type)>-1}function yb(t){return qg(t)?{clientX:t.clientX,clientY:t.clientY}:Fg(t)?{clientX:t.touches[0].clientX,clientY:t.touches[0].clientY}:{clientX:0,clientY:0}}function wb(t){return t instanceof Set?t:new Set(t)}function xx(t){const[e,r]=Tt({initialState:new Set,defaultState:y.useMemo(()=>t.defaultSelectedItems&&wb(t.defaultSelectedItems),[t.defaultSelectedItems]),state:y.useMemo(()=>t.selectedItems&&wb(t.selectedItems),[t.selectedItems])});return[e,(n,i)=>{var a;(a=t.onSelectionChange)===null||a===void 0||a.call(t,n,{selectedItems:i}),r(i)}]}function SN(t){const[e,r]=xx(t);return[e,{deselectItem:n=>r(n,new Set),selectItem:(n,i)=>r(n,new Set([i])),toggleAllItems:()=>{},toggleItem:(n,i)=>r(n,new Set([i])),clearItems:n=>r(n,new Set),isSelected:n=>{var i;return(i=e.has(n))!==null&&i!==void 0?i:!1}}]}function _N(t){const[e,r]=xx(t);return[e,{toggleItem:(n,i)=>{const a=new Set(e);e.has(i)?a.delete(i):a.add(i),r(n,a)},selectItem:(n,i)=>{const a=new Set(e);a.add(i),r(n,a)},deselectItem:(n,i)=>{const a=new Set(e);a.delete(i),r(n,a)},clearItems:n=>{r(n,new Set)},isSelected:n=>e.has(n),toggleAllItems:(n,i)=>{const a=i.every(l=>e.has(l)),s=new Set(e);a?s.clear():i.forEach(l=>s.add(l)),r(n,s)}}]}function xN(t){return t.selectionMode==="multiselect"?_N(t):SN(t)}function CN(t){return t&&!!t._virtual}function TN(t){return CN(t)&&t._virtual.parent||null}function Cx(t,e={}){if(!t)return null;if(!e.skipVirtual){const r=TN(t);if(r)return r}return t?.parentNode||null}function wl(t,e){if(!t||!e)return!1;if(t===e)return!0;{const r=new WeakSet;for(;e;){const o=Cx(e,{skipVirtual:r.has(e)});if(r.add(e),o===t)return!0;e=o}}return!1}function kb(t,e){if(!t)return;const r=t;r._virtual||(r._virtual={}),r._virtual.parent=e}function EN(t,e){return{...e,[uf]:t}}function Tx(t,e){return function(o,n,i,a,s){return vb(n)?e(EN(o,n),null,i,a,s):vb(o)?e(o,n,i,a,s):t(o,n,i,a,s)}}function Ex(t){const{as:e,[uf]:r,[rx]:o,...n}=t,i=n,a=typeof r=="string"?e??r:r;return typeof a!="string"&&e&&(i.as=e),{elementType:a,props:i,renderFunction:o}}const ki=uB,BN=(t,e,r)=>{const{elementType:o,renderFunction:n,props:i}=Ex(t),a={...i,...e};return n?ki.jsx(y.Fragment,{children:n(o,a)},r):ki.jsx(o,a,r)},IN=(t,e,r)=>{const{elementType:o,renderFunction:n,props:i}=Ex(t),a={...i,...e};return n?ki.jsx(y.Fragment,{children:n(o,{...a,children:ki.jsxs(y.Fragment,{children:a.children},void 0)})},r):ki.jsxs(o,a,r)},O=Tx(ki.jsx,BN),ke=Tx(ki.jsxs,IN),Lg=y.createContext(void 0),RN={},AN=Lg.Provider,NN=()=>y.useContext(Lg)?y.useContext(Lg):RN,PN=q({root:{mc9l5x:"f1w7gpdv",Bg96gwp:"fez10in",ycbfsm:"fg4l7m0"},rtl:{Bz10aip:"f13rod7r"}},{d:[".f1w7gpdv{display:inline;}",".fez10in{line-height:0;}",".f13rod7r{-webkit-transform:scaleX(-1);-moz-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1);}"],t:["@media (forced-colors: active){.fg4l7m0{forced-color-adjust:auto;}}"]}),zN=(t,e)=>{const{title:r,primaryFill:o="currentColor",...n}=t,i={...n,title:void 0,fill:o},a=PN(),s=NN();return i.className=A(a.root,e?.flipInRtl&&s?.textDirection==="rtl"&&a.rtl,i.className),r&&(i["aria-label"]=r),!i["aria-label"]&&!i["aria-labelledby"]?i["aria-hidden"]=!0:i.role="img",i},K=(t,e,r,o)=>{const n=e==="1em"?"20":e,i=y.forwardRef((a,s)=>{const l={...zN(a,{flipInRtl:o?.flipInRtl}),ref:s,width:e,height:e,viewBox:`0 0 ${n} ${n}`,xmlns:"http://www.w3.org/2000/svg"};return y.createElement("svg",l,...r.map(c=>y.createElement("path",{d:c,fill:l.fill})))});return i.displayName=t,i},YQ=K("AddRegular","1em",["M10 2.5a.5.5 0 0 0-1 0V9H2.5a.5.5 0 0 0 0 1H9v6.5a.5.5 0 0 0 1 0V10h6.5a.5.5 0 0 0 0-1H10V2.5Z"]),MN=K("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"]),ZQ=K("ArrowRedoRegular","1em",["M15 2.5a.5.5 0 0 1 1 0v4.9a.6.6 0 0 1-.6.6h-4.9a.5.5 0 0 1 0-1h3.6l-3.48-3.02a4 4 0 1 0-5.24 6.04l8.17 7.1a.5.5 0 1 1-.66.76l-8.17-7.1a5 5 0 1 1 6.56-7.55L15 6.46V2.5Z"],{flipInRtl:!0}),QQ=K("ArrowUndoRegular","1em",["M5 2.5a.5.5 0 0 0-1 0v4.9c0 .33.27.6.6.6h4.9a.5.5 0 0 0 0-1H5.9l3.48-3.02a4 4 0 0 1 5.25 6.04l-8.17 7.1a.5.5 0 0 0 .65.76l8.17-7.1a5 5 0 0 0-6.56-7.55L5 6.46V2.5Z"],{flipInRtl:!0}),ON=K("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"]),JQ=K("CartRegular","1em",["M3 3.5c0-.28.22-.5.5-.5h.44c.72 0 1.14.47 1.38.94.17.32.29.72.39 1.06H16a1 1 0 0 1 .96 1.27l-1.5 5.28A2 2 0 0 1 13.55 13H8.46a2 2 0 0 1-1.93-1.47L5.9 9.17l-.01-.03-1.03-3.5-.1-.33a5.2 5.2 0 0 0-.32-.91c-.16-.31-.3-.4-.5-.4H3.5a.5.5 0 0 1-.5-.5Zm3.84 5.37.66 2.4a1 1 0 0 0 .96.73h5.08a1 1 0 0 0 .96-.73L16 6H6l.84 2.87ZM10 15.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 0Zm6 0a1.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 0Z"]),jN=K("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"]),DN=K("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"]),FN=K("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"]),qN=K("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"]),LN=K("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"]),HN=K("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"]),UN=K("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"]),Bx=K("CircleFilled","1em",["M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z"]),eJ=K("ClearFormattingRegular","1em",["M4.25 3a.5.5 0 0 0-.5.42l-.24 1.5a.5.5 0 0 0 .98.16L4.67 4h3.57l-1.73 9.91a.5.5 0 0 0-.01.09h-1a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1h-1l1.74-9.91A.5.5 0 0 0 9.25 4h3.41l-.15.92a.5.5 0 1 0 .98.16l.25-1.5a.5.5 0 0 0-.49-.58h-9ZM9.6 17c-.16-.32-.3-.65-.4-1H2.5a.5.5 0 0 0 0 1h7.1Zm9.4-2.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Zm-2.65-1.15a.5.5 0 0 0-.7-.7l-1.15 1.14-1.15-1.14a.5.5 0 0 0-.7.7l1.14 1.15-1.14 1.15a.5.5 0 0 0 .7.7l1.15-1.14 1.15 1.14a.5.5 0 0 0 .7-.7l-1.14-1.15 1.14-1.15Z"]),tJ=K("CloudArrowUpRegular","1em",["M10 2c2.82 0 4.41 1.92 4.65 4.25h.07a3.33 3.33 0 0 1 3.27 3.66c-.32-.4-.7-.76-1.12-1.07a2.3 2.3 0 0 0-2.15-1.6h-.07a1 1 0 0 1-1-.9C13.45 4.33 12.11 3 10 3S6.55 4.32 6.35 6.35a1 1 0 0 1-1 .9h-.07A2.33 2.33 0 0 0 3 9.62 2.33 2.33 0 0 0 5.28 12h2.67c-.09.32-.15.66-.18 1H5.28A3.33 3.33 0 0 1 2 9.62c0-1.8 1.37-3.27 3.1-3.37h.25C5.6 3.9 7.18 2 10 2Zm3.5 7a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9Zm1.6 4.9a.56.56 0 1 0 .8-.8l-2-2a.56.56 0 0 0-.8 0l-2 2a.56.56 0 1 0 .8.8l1.1-1.1v2.7a.5.5 0 0 0 1 0v-2.7l1.1 1.1Z"]),rJ=K("CodeRegular","1em",["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"]),oJ=K("ColorFillRegular","1em",["M4.34 12H4a2 2 0 0 0-2 2v2c0 1.1.9 2 2 2h12a2 2 0 0 0 2-2v-2a2 2 0 0 0-.56-1.39c-.08.4-.23.8-.47 1.16A1 1 0 0 1 17 14v2a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h1.34l-1-1Zm10.04-2.83-.22.26c-.12.15-.29.38-.46.64-.31.5-.7 1.23-.7 1.93 0 1 .67 2 1.75 2s1.75-1 1.75-2c0-.7-.39-1.44-.7-1.93a8.13 8.13 0 0 0-.46-.64l-.21-.25-.02-.02a.47.47 0 0 0-.36-.16.5.5 0 0 0-.37.17Zm.37 1.14.2.3c.31.47.55 1 .55 1.39 0 .3-.1.57-.25.75a.62.62 0 0 1-.5.25.62.62 0 0 1-.5-.25A1.21 1.21 0 0 1 14 12c0-.4.24-.92.55-1.4l.2-.3ZM8.5 1a.5.5 0 0 0-.5.5v1.56a2 2 0 0 0-.8.49L3.66 7.09a2 2 0 0 0 0 2.82l2.83 2.83a2 2 0 0 0 2.83 0l3.54-3.53a2 2 0 0 0 0-2.83l-2.83-2.83A2 2 0 0 0 9 3V1.5a.5.5 0 0 0-.5-.5ZM8 4.17V5.5a.5.5 0 0 0 1 0V4.04a1 1 0 0 1 .32.22l2.83 2.83a1 1 0 0 1 .25.41H4.66l3.25-3.24.09-.08ZM4.37 9.21a1 1 0 0 1-.3-.71h8.08l-3.54 3.54a1 1 0 0 1-1.41 0L4.37 9.2Zm10-.04Z"]),nJ=K("CopyRegular","1em",["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"]),iJ=K("DeleteRegular","1em",["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"]),$N=K("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"]),KN=K("DismissCircleFilled","1em",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16ZM7.8 7.11a.5.5 0 0 0-.63.06l-.06.07a.5.5 0 0 0 .06.64L9.3 10l-2.12 2.12-.06.07a.5.5 0 0 0 .06.64l.07.06c.2.13.47.11.64-.06L10 10.7l2.12 2.12.07.06c.2.13.46.11.64-.06l.06-.07a.5.5 0 0 0-.06-.64L10.7 10l2.12-2.12.06-.07a.5.5 0 0 0-.06-.64l-.07-.06a.5.5 0 0 0-.64.06L10 9.3 7.88 7.17l-.07-.06Z"]),aJ=K("EditFilled","1em",["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"]),sJ=K("EditRegular","1em",["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"]),lJ=K("ImageRegular","1em",["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"]),WN=K("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"]),cJ=K("LinkRegular","1em",["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"]),uJ=K("LocalLanguageRegular","1em",["M9.5 2a.5.5 0 0 0 0 1H13v1.86C13 6.03 11.83 7 10.5 7a.5.5 0 0 0 0 1C12.21 8 14 6.74 14 4.86V2.5a.5.5 0 0 0-.5-.5h-4ZM7.96 5.3a.5.5 0 0 0-.92 0l-5 12a.5.5 0 1 0 .92.4L4.5 14h6l1.54 3.7a.5.5 0 1 0 .92-.39l-1.66-3.99v-.02l-3.34-8Zm2.12 7.7H4.92L7.5 6.8l2.58 6.2ZM15.5 2c.28 0 .5.22.5.5V6h1.5a.5.5 0 0 1 0 1H16v6.5a.5.5 0 1 1-1 0v-11c0-.28.23-.5.5-.5Z"]),dJ=K("LockClosedFilled","1em",["M10 2a3 3 0 0 0-3 3v1H6a3 3 0 0 0-3 3v6a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V9a3 3 0 0 0-3-3h-1V5a3 3 0 0 0-3-3ZM8 5a2 2 0 1 1 4 0v1H8V5Zm2 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"]),fJ=K("LockOpenRegular","1em",["M10 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm5-11a2 2 0 0 0-2 2v2h1a3 3 0 0 1 3 3v6a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V9a3 3 0 0 1 3-3h6V4a3 3 0 1 1 6 0v.5a.5.5 0 0 1-1 0V4a2 2 0 0 0-2-2Zm-1 5H6a2 2 0 0 0-2 2v6c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2Z"]),hJ=K("MarkdownRegular","1em",["M16 4.5a.5.5 0 0 0-1 0v8.8l-1.15-1.15a.5.5 0 0 0-.7.7l2 2c.2.2.5.2.7 0l2-2a.5.5 0 0 0-.7-.7L16 13.29V4.5ZM2.32 4.03a.5.5 0 0 1 .55.14L7 8.75l4.13-4.58a.5.5 0 0 1 .87.33v10a.5.5 0 1 1-1 0V5.8L7.37 9.83a.5.5 0 0 1-.74 0L3 5.8v8.7a.5.5 0 1 1-1 0v-10c0-.2.13-.4.32-.47Z"]),gJ=K("MoreHorizontalRegular","1em",["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"]),pJ=K("OpenRegular","1em",["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"]),VN=K("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"]),mJ=K("SaveRegular","1em",["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"]),vJ=K("SearchRegular","1em",["M8.5 3a5.5 5.5 0 0 1 4.23 9.02l4.12 4.13a.5.5 0 0 1-.63.76l-.07-.06-4.13-4.12A5.5 5.5 0 1 1 8.5 3Zm0 1a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Z"]),bJ=K("SendRegular","1em",["M2.18 2.11a.5.5 0 0 1 .54-.06l15 7.5a.5.5 0 0 1 0 .9l-15 7.5a.5.5 0 0 1-.7-.58L3.98 10 2.02 2.63a.5.5 0 0 1 .16-.52Zm2.7 8.39-1.61 6.06L16.38 10 3.27 3.44 4.88 9.5h6.62a.5.5 0 1 1 0 1H4.88Z"],{flipInRtl:!0}),yJ=K("SplitHorizontalRegular","1em",["M17.5 10a.5.5 0 0 0 0-1h-15a.5.5 0 0 0 0 1h15ZM16 4a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v4h1V4a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v4h1V4Zm0 7h-1v4a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-4H4v4c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2v-4Z"]),wJ=K("TableRegular","1em",["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"]),kJ=K("TaskListLtrRegular","1em",["M5.85 4.35a.5.5 0 1 0-.7-.7L3.5 5.29l-.65-.64a.5.5 0 1 0-.7.7l1 1c.2.2.5.2.7 0l2-2ZM8.5 5a.5.5 0 0 0 0 1h9a.5.5 0 0 0 0-1h-9Zm0 5a.5.5 0 0 0 0 1h9a.5.5 0 0 0 0-1h-9ZM8 15.5c0-.28.22-.5.5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5ZM5.85 9.85a.5.5 0 1 0-.7-.7L3.5 10.79l-.65-.64a.5.5 0 0 0-.7.7l1 1c.2.2.5.2.7 0l2-2Zm0 4.3c.2.2.2.5 0 .7l-2 2a.5.5 0 0 1-.7 0l-1-1a.5.5 0 0 1 .7-.7l.65.64 1.65-1.64c.2-.2.5-.2.7 0Z"]),SJ=K("TextAlignCenterRegular","1em",["M4 4.5c0-.28.22-.5.5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5Zm-2 5c0-.28.22-.5.5-.5h15a.5.5 0 0 1 0 1h-15a.5.5 0 0 1-.5-.5ZM6.5 14a.5.5 0 0 0 0 1h7a.5.5 0 0 0 0-1h-7Z"]),_J=K("TextAlignJustifyRegular","1em",["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"]),xJ=K("TextAlignLeftRegular","1em",["M2 4.5c0-.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-.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 1h9a.5.5 0 0 0 0-1h-9Z"]),CJ=K("TextAlignRightRegular","1em",["M6 4.5c0-.28.22-.5.5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5Zm-4 5c0-.28.22-.5.5-.5h15a.5.5 0 0 1 0 1h-15a.5.5 0 0 1-.5-.5ZM9.5 14a.5.5 0 0 0 0 1h8a.5.5 0 0 0 0-1h-8Z"]),TJ=K("TextBoldRegular","1em",["M5.5 4.25C5.5 3.56 6.06 3 6.75 3h3.5a4 4 0 0 1 3.17 6.44c.9.7 1.58 1.8 1.58 3.31A4.23 4.23 0 0 1 10.75 17h-4c-.69 0-1.25-.56-1.25-1.25V4.25ZM8 11v3.5h2.75c.81 0 1.75-.62 1.75-1.75S11.56 11 10.75 11H8Zm0-2.5h2.25a1.5 1.5 0 1 0 0-3H8v3Z"]),EJ=K("TextBulletListLtrRegular","1em",["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"]),BJ=K("TextCollapseRegular","1em",["M5 3.5c0-.28.22-.5.5-.5h12a.5.5 0 0 1 0 1h-12a.5.5 0 0 1-.5-.5Zm0 12c0-.28.22-.5.5-.5h12a.5.5 0 0 1 0 1h-12a.5.5 0 0 1-.5-.5Zm6-8c0-.28.22-.5.5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5Zm0 4c0-.28.22-.5.5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5Zm-2-2a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0ZM3.5 9a.5.5 0 0 0 0 1h4a.5.5 0 0 0 0-1h-4Z"]),IJ=K("TextColorRegular","1em",["M10.46 2.31a.5.5 0 0 0-.92 0l-3 7.5a.5.5 0 1 0 .92.38L8.54 7.5h2.92l1.08 2.69a.5.5 0 1 0 .92-.38l-3-7.5ZM10 3.85l1.06 2.65H8.94L10 3.85ZM4.5 12c-.83 0-1.5.67-1.5 1.5v3c0 .83.67 1.5 1.5 1.5h11c.83 0 1.5-.67 1.5-1.5v-3c0-.83-.67-1.5-1.5-1.5h-11ZM4 13.5c0-.28.22-.5.5-.5h11c.28 0 .5.22.5.5v3a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-3Z"]),RJ=K("TextFontSizeRegular","1em",["M13 3.5c.2 0 .4.13.47.32l3 8v.02l1.5 3.98a.5.5 0 1 1-.94.36l-1.38-3.68h-5.3l-1.38 3.68a.5.5 0 0 1-.93 0L6.96 13.5H4.04l-1.08 2.69a.5.5 0 1 1-.92-.38l1.2-2.98v-.03l1.8-4.49a.5.5 0 0 1 .92 0l1.8 4.5v.02l.73 1.79 1.04-2.78v-.03l3-7.99A.5.5 0 0 1 13 3.5Zm-2.28 8h4.56L13 5.42l-2.28 6.08Zm-4.16 1L5.5 9.85 4.44 12.5h2.12Z"]),AJ=K("TextHeader1Regular","1em",["M16.55 4a.5.5 0 0 1 .45.5v11a.5.5 0 0 1-1 0V6.73a8.58 8.58 0 0 1-2.22 2.19.5.5 0 1 1-.56-.84 6.76 6.76 0 0 0 2.83-3.8.5.5 0 0 1 .5-.28ZM2.5 4c.28 0 .5.22.5.5V9h6V4.5a.5.5 0 1 1 1 0v11a.5.5 0 0 1-1 0V10H3v5.5a.5.5 0 0 1-1 0v-11c0-.28.22-.5.5-.5Z"]),NJ=K("TextHeader2Regular","1em",["M2.5 4c.28 0 .5.22.5.5V9h6V4.5a.5.5 0 0 1 1 0v11a.5.5 0 0 1-1 0V10H3v5.5a.5.5 0 0 1-1 0v-11c0-.28.22-.5.5-.5Zm12 1A2.54 2.54 0 0 0 12 7.5a.5.5 0 0 1-1 0C11 5.75 12.45 4 14.5 4c1.24 0 2.4.57 3.05 1.54.66 1 .71 2.33-.12 3.72-.42.7-1 1.24-1.62 1.71-.3.24-.62.46-.92.67l-.14.1c-.26.18-.52.35-.77.54-1.01.75-1.78 1.51-1.95 2.72h5.47a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5c0-2 1.17-3.13 2.4-4.03.25-.19.52-.38.79-.56l.13-.09c.3-.21.6-.42.88-.64.57-.43 1.04-.89 1.37-1.44.67-1.1.56-2.02.14-2.65A2.64 2.64 0 0 0 14.5 5Z"]),PJ=K("TextHeader3Regular","1em",["M3 4.5a.5.5 0 0 0-1 0v11a.5.5 0 0 0 1 0V10h6v5.5a.5.5 0 0 0 1 0v-11a.5.5 0 0 0-1 0V9H3V4.5Zm8.98 2.14c.09-.3.28-.7.66-1.04.38-.32.95-.6 1.86-.6C16.24 5 17 6.19 17 7c0 .5-.1 1.11-.5 1.6-.37.46-1.08.9-2.5.9a.5.5 0 0 0 0 1c.5 0 1.3.06 1.94.36.31.15.57.34.76.6.18.24.3.57.3 1.04 0 1-.33 1.6-.76 1.96a2.7 2.7 0 0 1-1.74.54c-.7 0-1.22-.12-1.61-.36-.38-.24-.7-.63-.92-1.3a.5.5 0 1 0-.94.32c.27.83.71 1.44 1.33 1.83.61.38 1.34.51 2.14.51.82 0 1.7-.2 2.38-.77.7-.58 1.12-1.48 1.12-2.73 0-.66-.18-1.2-.5-1.63-.3-.42-.7-.7-1.1-.9.36-.2.65-.46.88-.74.6-.74.72-1.63.72-2.23 0-1.39-1.24-3-3.5-3a3.7 3.7 0 0 0-2.51.85 3.22 3.22 0 0 0-.97 1.51.5.5 0 0 0 .96.28Z"]),zJ=K("TextIndentDecreaseLtrRegular","1em",["M6 4.5c0-.28.22-.5.5-.5h8a.5.5 0 1 1 0 1h-8a.5.5 0 0 1-.5-.5ZM3.56 7.73a.5.5 0 0 1 .7.7L3.22 9.5l1.06 1.06a.5.5 0 1 1-.7.7l-1.42-1.4a.5.5 0 0 1 0-.71l1.41-1.42ZM6.5 9a.5.5 0 0 0 0 1h11a.5.5 0 1 0 0-1h-11ZM6 14.5c0-.28.22-.5.5-.5h6a.5.5 0 1 1 0 1h-6a.5.5 0 0 1-.5-.5Z"]),MJ=K("TextIndentIncreaseLtrRegular","1em",["M6 4.5c0-.28.22-.5.5-.5h8a.5.5 0 0 1 0 1h-8a.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 1h6a.5.5 0 0 0 0-1h-6ZM2.85 7.73a.5.5 0 1 0-.7.7L3.2 9.5l-1.06 1.06a.5.5 0 1 0 .7.7l1.42-1.4a.5.5 0 0 0 0-.71L2.85 7.73Z"]),OJ=K("TextItalicRegular","1em",["M16 3a.5.5 0 0 1 0 1h-3.16L8.23 16h3.27a.5.5 0 0 1 0 1H4a.5.5 0 0 1 0-1h3.16l4.61-12H8.5a.5.5 0 0 1 0-1H16Z"]),jJ=K("TextNumberListLtrRegular","1em",["M5 1.5a.5.5 0 0 0-.39-.49.5.5 0 0 0-.56.27l-.07.12a2.96 2.96 0 0 1-1.2 1.15.5.5 0 1 0 .44.9c.3-.15.56-.34.78-.53V5.5a.5.5 0 0 0 1 0v-4ZM2.65 7.65a.5.5 0 0 0 .7.7l.05-.04.2-.12C3.76 8.09 4 8 4.3 8c.23 0 .41.06.53.15.1.07.16.17.16.35a.5.5 0 0 1-.21.44c-.15.12-.35.22-.62.35l-.14.08c-.32.15-.7.36-1 .7-.33.35-.53.81-.53 1.43 0 .28.22.5.5.5h2.5a.5.5 0 0 0 0-1H3.59c.04-.1.1-.2.17-.27a2.38 2.38 0 0 1 .83-.53c.27-.13.59-.29.84-.5.33-.27.57-.65.57-1.2 0-.5-.22-.9-.57-1.15A1.92 1.92 0 0 0 4.33 7h-.01a2.5 2.5 0 0 0-1.66.63v.01h-.01Zm.01-.02-.01.02s.1-.1.01-.02ZM4.25 15a.5.5 0 1 0 0 1c.34 0 .53.1.63.18.1.09.13.2.13.3-.01.2-.19.52-.76.52-.41 0-.63-.1-.72-.17a.42.42 0 0 1-.1-.07.5.5 0 0 0-.88.46v.01l.02.02a.8.8 0 0 0 .1.15c.07.08.17.17.3.27.28.18.7.33 1.28.33 1.03 0 1.73-.67 1.76-1.48.01-.37-.12-.74-.4-1.02.28-.28.41-.65.4-1.02-.03-.8-.73-1.48-1.76-1.48-.59 0-1 .15-1.28.33a1.4 1.4 0 0 0-.4.42l-.01.01v.01a.5.5 0 0 0 .87.48.42.42 0 0 1 .1-.08c.1-.07.3-.17.72-.17.57 0 .75.33.76.52 0 .1-.04.21-.13.3-.1.08-.29.18-.63.18Zm-.82-.75.01-.02v.02ZM8.5 4a.5.5 0 1 0 0 1h8a.5.5 0 0 0 0-1h-8Zm0 5a.5.5 0 1 0 0 1h8a.5.5 0 0 0 0-1h-8ZM8 14.5c0-.28.22-.5.5-.5h8a.5.5 0 1 1 0 1h-8a.5.5 0 0 1-.5-.5Z"]),DJ=K("TextParagraphDirectionRegular","1em",["M11.5 3a4 4 0 1 0 0 8H13v6.5a.5.5 0 0 0 1 0V4h1v13.5a.5.5 0 0 0 1 0V4h.5a.5.5 0 0 0 0-1h-5ZM13 4v6h-1.5a3 3 0 0 1 0-6H13ZM3.15 5.65c.2-.2.5-.2.7 0l2 2c.2.2.2.5 0 .7l-2 2a.5.5 0 0 1-.7-.7L4.79 8 3.15 6.35a.5.5 0 0 1 0-.7Zm2.7 6a.5.5 0 0 0-.7 0l-2 2a.5.5 0 0 0 0 .7l2 2a.5.5 0 0 0 .7-.7L4.21 14l1.64-1.65a.5.5 0 0 0 0-.7Z"]),FJ=K("TextQuoteRegular","1em",["M7.83 8.62a8.8 8.8 0 0 1-.96 2.76 12.06 12.06 0 0 1-2.22 2.77.5.5 0 0 0 .7.7h.02c.74-.75 1.66-1.67 2.38-2.98A10.83 10.83 0 0 0 9 6.5a2.5 2.5 0 1 0-1.17 2.12ZM8 6.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm6.83 2.12a8.8 8.8 0 0 1-.96 2.76 12.06 12.06 0 0 1-2.22 2.77.5.5 0 0 0 .7.7h.02c.74-.75 1.66-1.67 2.38-2.98A10.83 10.83 0 0 0 16 6.5a2.5 2.5 0 1 0-1.17 2.12ZM13.5 8a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3Z"]),qJ=K("TextStrikethroughRegular","1em",["M6.53 4.03A6.15 6.15 0 0 1 10 3a6.16 6.16 0 0 1 4.9 2.2.5.5 0 0 1-.8.6A5.17 5.17 0 0 0 10 4c-1.15 0-2.18.35-2.9.85C6.36 5.35 6 5.98 6 6.5c0 .9.43 1.48 1.17 1.93.36.22.78.4 1.25.57H6.23A3.02 3.02 0 0 1 5 6.5c0-.98.64-1.86 1.53-2.47ZM16.5 10a.5.5 0 0 1 0 1h-2.73A3.02 3.02 0 0 1 15 13.5c0 1.23-.72 2.12-1.68 2.68-.94.56-2.16.82-3.32.82a7.27 7.27 0 0 1-2.9-.48 4.55 4.55 0 0 1-2.02-1.74.5.5 0 0 1 .84-.56c.45.68.96 1.11 1.58 1.38.64.28 1.44.4 2.5.4 1.03 0 2.06-.24 2.82-.68.74-.44 1.18-1.05 1.18-1.82 0-.9-.43-1.48-1.17-1.93-.36-.22-.78-.4-1.25-.57H3.5a.5.5 0 0 1 0-1h13Z"]),LJ=K("TextSubscriptRegular","1em",["M13.54 4.12c.2.18.23.5.05.7L9.16 10l4.08 4.77c-.18.29-.34.63-.42 1.04L8.5 10.77l-4.34 5.06a.5.5 0 1 1-.75-.66L7.84 10 3.41 4.83a.5.5 0 1 1 .75-.66L8.5 9.23l4.33-5.06a.5.5 0 0 1 .7-.05ZM15.58 12c-.46 0-.83.42-.83.86a.5.5 0 0 1-1 0 1.87 1.87 0 0 1 3.42-1.04c.36.55.37 1.27-.04 1.98-.21.36-.5.63-.79.86l-.42.3-.06.05-.34.24c-.32.24-.55.47-.67.75h2.1a.5.5 0 1 1 0 1H14.3a.54.54 0 0 1-.05 0 .5.5 0 0 1-.5-.5c0-1.04.6-1.62 1.17-2.05l.36-.26.06-.04.38-.28c.24-.19.42-.37.55-.58.25-.43.19-.73.07-.92a.89.89 0 0 0-.76-.37Z"]),HJ=K("TextSuperscriptRegular","1em",["M15.58 3c-.46 0-.83.42-.83.86a.5.5 0 0 1-1 0 1.87 1.87 0 0 1 3.42-1.04c.36.55.37 1.27-.04 1.98-.21.36-.5.63-.79.86l-.42.3-.06.05-.34.24c-.32.24-.55.47-.67.75h2.1a.5.5 0 1 1 0 1H14.24a.5.5 0 0 1-.5-.5c0-1.04.6-1.62 1.17-2.05l.36-.26.06-.04.38-.28c.24-.19.42-.37.55-.58.25-.43.19-.73.07-.92a.89.89 0 0 0-.76-.37ZM12.8 4.22c.09.35.3.66.58.86L9.16 10l4.43 5.17a.5.5 0 1 1-.76.66L8.5 10.77l-4.34 5.06a.5.5 0 0 1-.75-.66L7.84 10 3.41 4.83a.5.5 0 1 1 .75-.66L8.5 9.23l4.3-5Z"]),UJ=K("TextUnderlineRegular","1em",["M6 3.5a.5.5 0 0 0-1 0v6.45A5.02 5.02 0 0 0 10 15c2.77 0 5-2.26 5-5.05V3.5a.5.5 0 0 0-1 0v6.45C14 12.2 12.2 14 10 14s-4-1.8-4-4.05V3.5Zm-1 13c0-.28.22-.5.5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5Z"]),GN=K("WarningFilled","1em",["M8.68 2.79a1.5 1.5 0 0 1 2.64 0l6.5 12A1.5 1.5 0 0 1 16.5 17h-13a1.5 1.5 0 0 1-1.32-2.21l6.5-12ZM10.5 7.5a.5.5 0 0 0-1 0v4a.5.5 0 0 0 1 0v-4Zm.25 6.25a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z"]),Ix=K("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"]),XN=K("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"]),YN=K("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"]),ZN=K("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"]),QN=K("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"]),JN=K("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"]),eP=K("ErrorCircle12Filled","12",["M6 11A5 5 0 1 0 6 1a5 5 0 0 0 0 10Zm-.75-2.75a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0Zm.26-4.84a.5.5 0 0 1 .98 0l.01.09v2.59a.5.5 0 0 1-1 0V3.41Z"]),Sb=K("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"]),_b=K("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"]),tP=K("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"]),rP=K("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"]),oP=K("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"]),nP=K("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"]),xb=K("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"]),Cb=K("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"]),Tb=K("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"]),iP=K("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"]),aP=K("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"]),Eb=K("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"]),Bb=K("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"]),sP=K("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"]),lP=K("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"]),Ib=K("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"]),Rb=K("PresenceBusy10Filled","10",["M10 5A5 5 0 1 1 0 5a5 5 0 0 1 10 0Z"]),cP=K("PresenceBusy12Filled","12",["M12 6A6 6 0 1 1 0 6a6 6 0 0 1 12 0Z"]),uP=K("PresenceBusy16Filled","16",["M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0Z"]),Ab=K("PresenceBusy20Filled","20",["M20 10a10 10 0 1 1-20 0 10 10 0 0 1 20 0Z"]),Nb=K("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"]),Pb=K("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"]),dP=K("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"]),fP=K("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"]),hP=K("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"]),gP=K("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"]),zb=K("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"]),Mb=K("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"]),Ob=K("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"]),pP=K("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"]),mP=K("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"]),jb=K("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"]),Db=K("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"]),vP=K("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"]),bP=K("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"]),Fb=K("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"]),qb=K("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"]),yP=K("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"]),wP=K("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"]),Lb=K("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"]),kP=K("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"]),SP=K("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"]),$J=K("Text16Regular","16",["M3 2.5c0-.28.22-.5.5-.5h8c.28 0 .5.22.5.5v2a.5.5 0 0 1-1 0V3H8v10h1a.5.5 0 0 1 0 1H6a.5.5 0 0 1 0-1h1V3H4v1.5a.5.5 0 0 1-1 0v-2Z"]),_P=K("Warning12Filled","12",["M5.21 1.46a.9.9 0 0 1 1.58 0l4.09 7.17a.92.92 0 0 1-.79 1.37H1.91a.92.92 0 0 1-.79-1.37l4.1-7.17ZM5.5 4.5v1a.5.5 0 0 0 1 0v-1a.5.5 0 0 0-1 0ZM6 6.75a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"]),xP="fui-Icon-filled",CP="fui-Icon-regular",TP=q({root:{mc9l5x:"fjseox"},visible:{mc9l5x:"f1w7gpdv"}},{d:[".fjseox{display:none;}",".f1w7gpdv{display:inline;}"]}),Rx=(t,e)=>{const r=o=>{const{className:n,primaryFill:i="currentColor",filled:a,...s}=o,l=TP();return y.createElement(y.Fragment,null,y.createElement(t,Object.assign({},s,{className:A(l.root,a&&l.visible,xP,n),primaryFill:i})),y.createElement(e,Object.assign({},s,{className:A(l.root,!a&&l.visible,CP,n),primaryFill:i})))};return r.displayName="CompoundIcon",r},EP=(t,e)=>O(dN,{value:e.provider,children:O(oN,{value:e.theme,children:O(iN,{value:e.themeClassName,children:O(gN,{value:e.customStyleHooks_unstable,children:O(lN,{value:e.tooltip,children:O(y4,{dir:e.textDirection,children:O(AN,{value:e.iconDirection,children:O(fN,{value:e.overrides_unstable,children:ke(t.root,{children:[Yn()?null:O("style",{dangerouslySetInnerHTML:{__html:t.serverStyleProps.cssRule},...t.serverStyleProps.attributes}),t.root.children]})})})})})})})})});var BP=typeof WeakRef<"u",Ax=class{constructor(t){BP&&typeof t=="object"?this._weakRef=new WeakRef(t):this._instance=t}deref(){var t,e;let r;return this._weakRef?(r=(t=this._weakRef)==null?void 0:t.deref(),r||delete this._weakRef):(r=this._instance,(e=r?.isDisposed)!=null&&e.call(r)&&delete this._instance),r}},so="keyborg:focusin";function IP(t){const e=t.HTMLElement,r=e.prototype.focus;let o=!1;return e.prototype.focus=function(){o=!0},t.document.createElement("button").focus(),e.prototype.focus=r,o}var uh=!1;function Bo(t){const e=t.focus;e.__keyborgNativeFocus?e.__keyborgNativeFocus.call(t):t.focus()}function RP(t){const e=t;uh||(uh=IP(e));const r=e.HTMLElement.prototype.focus;if(r.__keyborgNativeFocus)return;e.HTMLElement.prototype.focus=a;const o=s=>{const l=s.relatedTarget,c=s.currentTarget;c.contains(l)||(c.removeEventListener("focusin",n,!0),c.removeEventListener("focusout",o,!0))},n=s=>{var l;const c=s.target;if(!c)return;if(c.shadowRoot){c.shadowRoot.addEventListener("focusin",n,!0),c.shadowRoot.addEventListener("focusout",o,!0);return}const u={relatedTarget:s.relatedTarget||void 0},d=new CustomEvent(so,{cancelable:!0,bubbles:!0,composed:!0,detail:u});d.details=u,(uh||i.lastFocusedProgrammatically)&&(u.isFocusedProgrammatically=c===((l=i.lastFocusedProgrammatically)==null?void 0:l.deref()),i.lastFocusedProgrammatically=void 0),c.dispatchEvent(d)},i=e.__keyborgData={focusInHandler:n};e.document.addEventListener("focusin",e.__keyborgData.focusInHandler,!0);function a(){const s=e.__keyborgData;return s&&(s.lastFocusedProgrammatically=new Ax(this)),r.apply(this,arguments)}a.__keyborgNativeFocus=r}function AP(t){const e=t,r=e.HTMLElement.prototype,o=r.focus.__keyborgNativeFocus,n=e.__keyborgData;n&&(e.document.removeEventListener("focusin",n.focusInHandler,!0),delete e.__keyborgData),o&&(r.focus=o)}var NP=500,Nx=0,PP=class{constructor(){this.__keyborgCoreRefs={},this._isNavigatingWithKeyboard=!1}add(t){const e=t.id;e in this.__keyborgCoreRefs||(this.__keyborgCoreRefs[e]=new Ax(t))}remove(t){delete this.__keyborgCoreRefs[t],Object.keys(this.__keyborgCoreRefs).length===0&&(this._isNavigatingWithKeyboard=!1)}setVal(t){if(this._isNavigatingWithKeyboard!==t){this._isNavigatingWithKeyboard=t;for(const e of Object.keys(this.__keyborgCoreRefs)){const o=this.__keyborgCoreRefs[e].deref();o?o.update(t):this.remove(e)}}}getVal(){return this._isNavigatingWithKeyboard}},po=new PP,zP=class{constructor(t,e){this._onFocusIn=o=>{if(this._isMouseUsedTimer||po.getVal())return;const n=o.detail;n.relatedTarget&&(n.isFocusedProgrammatically||n.isFocusedProgrammatically===void 0||po.setVal(!0))},this._onMouseDown=o=>{if(o.buttons===0||o.clientX===0&&o.clientY===0&&o.screenX===0&&o.screenY===0)return;const n=this._win;n&&(this._isMouseUsedTimer&&n.clearTimeout(this._isMouseUsedTimer),this._isMouseUsedTimer=n.setTimeout(()=>{delete this._isMouseUsedTimer},1e3)),po.setVal(!1)},this._onKeyDown=o=>{po.getVal()?this._shouldDismissKeyboardNavigation(o)&&this._scheduleDismiss():this._shouldTriggerKeyboardNavigation(o)&&po.setVal(!0)},this.id="c"+ ++Nx,this._win=t;const r=t.document;if(e){const o=e.triggerKeys,n=e.dismissKeys;o?.length&&(this._triggerKeys=new Set(o)),n?.length&&(this._dismissKeys=new Set(n))}r.addEventListener(so,this._onFocusIn,!0),r.addEventListener("mousedown",this._onMouseDown,!0),t.addEventListener("keydown",this._onKeyDown,!0),RP(t),po.add(this)}dispose(){const t=this._win;if(t){this._isMouseUsedTimer&&(t.clearTimeout(this._isMouseUsedTimer),this._isMouseUsedTimer=void 0),this._dismissTimer&&(t.clearTimeout(this._dismissTimer),this._dismissTimer=void 0),AP(t);const e=t.document;e.removeEventListener(so,this._onFocusIn,!0),e.removeEventListener("mousedown",this._onMouseDown,!0),t.removeEventListener("keydown",this._onKeyDown,!0),delete this._win,po.remove(this.id)}}isDisposed(){return!!this._win}update(t){var e,r;const o=(r=(e=this._win)==null?void 0:e.__keyborg)==null?void 0:r.refs;if(o)for(const n of Object.keys(o))Av.update(o[n],t)}_shouldTriggerKeyboardNavigation(t){var e;if(t.key==="Tab")return!0;const r=(e=this._win)==null?void 0:e.document.activeElement,o=!this._triggerKeys||this._triggerKeys.has(t.keyCode),n=r&&(r.tagName==="INPUT"||r.tagName==="TEXTAREA"||r.isContentEditable);return o&&!n}_shouldDismissKeyboardNavigation(t){var e;return(e=this._dismissKeys)==null?void 0:e.has(t.keyCode)}_scheduleDismiss(){const t=this._win;if(t){this._dismissTimer&&(t.clearTimeout(this._dismissTimer),this._dismissTimer=void 0);const e=t.document.activeElement;this._dismissTimer=t.setTimeout(()=>{this._dismissTimer=void 0;const r=t.document.activeElement;e&&r&&e===r&&po.setVal(!1)},NP)}}},Av=class Px{constructor(e,r){this._cb=[],this._id="k"+ ++Nx,this._win=e;const o=e.__keyborg;o?(this._core=o.core,o.refs[this._id]=this):(this._core=new zP(e,r),e.__keyborg={core:this._core,refs:{[this._id]:this}})}static create(e,r){return new Px(e,r)}static dispose(e){e.dispose()}static update(e,r){e._cb.forEach(o=>o(r))}dispose(){var e;const r=(e=this._win)==null?void 0:e.__keyborg;r?.refs[this._id]&&(delete r.refs[this._id],Object.keys(r.refs).length===0&&(r.core.dispose(),delete this._win.__keyborg)),this._cb=[],delete this._core,delete this._win}isNavigatingWithKeyboard(){return po.getVal()}subscribe(e){this._cb.push(e)}unsubscribe(e){const r=this._cb.indexOf(e);r>=0&&this._cb.splice(r,1)}setVal(e){po.setVal(e)}};function Nv(t,e){return Av.create(t,e)}function Pv(t){Av.dispose(t)}/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - *//*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */const Yo="data-tabster",zx="data-tabster-dummy",MP="tabster:deloser",Mx="tabster:modalizer:active",Ox="tabster:modalizer:inactive",OP="tabster:modalizer:focusin",jP="tabster:modalizer:focusout",DP="tabster:modalizer:beforefocusout",Hg="tabster:mover",jx="tabster:focusin",Dx="tabster:focusout",Fx="tabster:movefocus",zv=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","*[tabindex]","*[contenteditable]"].join(", "),FP={Any:0,Accessible:1,Focusable:2},qP={History:0,DeloserDefault:1,RootDefault:2,DeloserFirst:3,RootFirst:4},jo={Invisible:0,PartiallyVisible:1,Visible:2},kl={Source:0,Target:1},ai={Both:0,Vertical:1,Horizontal:2,Grid:3,GridLinear:4},qx={Unlimited:0,Limited:1,LimitedTrapFocus:2},Lx={Auto:0,Inside:1,Outside:2};var Xt=Object.freeze({__proto__:null,TabsterAttributeName:Yo,TabsterDummyInputAttributeName:zx,DeloserEventName:MP,ModalizerActiveEventName:Mx,ModalizerInactiveEventName:Ox,ModalizerFocusInEventName:OP,ModalizerFocusOutEventName:jP,ModalizerBeforeFocusOutEventName:DP,MoverEventName:Hg,FocusInEventName:jx,FocusOutEventName:Dx,MoveFocusEventName:Fx,FocusableSelector:zv,ObservedElementAccesibilities:FP,RestoreFocusOrders:qP,Visibilities:jo,RestorerTypes:kl,MoverDirections:ai,GroupperTabbabilities:qx,SysDummyInputsPositions:Lx});/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */function Jt(t,e){var r;return(r=t.storageEntry(e))===null||r===void 0?void 0:r.tabster}function Hx(t,e,r){var o,n;const i=r||t._noop?void 0:e.getAttribute(Yo);let a=t.storageEntry(e),s;if(i)if(i!==((o=a?.attr)===null||o===void 0?void 0:o.string))try{const d=JSON.parse(i);if(typeof d!="object")throw new Error(`Value is not a JSON object, got '${i}'.`);s={string:i,object:d}}catch{}else return;else if(!a)return;a||(a=t.storageEntry(e,!0)),a.tabster||(a.tabster={});const l=a.tabster||{},c=((n=a.attr)===null||n===void 0?void 0:n.object)||{},u=s?.object||{};for(const d of Object.keys(c))if(!u[d]){if(d==="root"){const f=l[d];f&&t.root.onRoot(f,!0)}switch(d){case"deloser":case"root":case"groupper":case"modalizer":case"restorer":case"mover":const f=l[d];f&&(f.dispose(),delete l[d]);break;case"observed":delete l[d],t.observedElement&&t.observedElement.onObservedElementUpdate(e);break;case"focusable":case"outline":case"uncontrolled":case"sys":delete l[d];break}}for(const d of Object.keys(u)){const f=u.sys;switch(d){case"deloser":l.deloser?l.deloser.setProps(u.deloser):t.deloser&&(l.deloser=t.deloser.createDeloser(e,u.deloser));break;case"root":l.root?l.root.setProps(u.root):l.root=t.root.createRoot(e,u.root,f),t.root.onRoot(l.root);break;case"modalizer":l.modalizer?l.modalizer.setProps(u.modalizer):t.modalizer&&(l.modalizer=t.modalizer.createModalizer(e,u.modalizer,f));break;case"restorer":l.restorer?l.restorer.setProps(u.restorer):t.restorer&&u.restorer&&(l.restorer=t.restorer.createRestorer(e,u.restorer));break;case"focusable":l.focusable=u.focusable;break;case"groupper":l.groupper?l.groupper.setProps(u.groupper):t.groupper&&(l.groupper=t.groupper.createGroupper(e,u.groupper,f));break;case"mover":l.mover?l.mover.setProps(u.mover):t.mover&&(l.mover=t.mover.createMover(e,u.mover,f));break;case"observed":t.observedElement&&(l.observed=u.observed,t.observedElement.onObservedElementUpdate(e));break;case"uncontrolled":l.uncontrolled=u.uncontrolled;break;case"outline":t.outline&&(l.outline=u.outline);break;case"sys":l.sys=u.sys;break;default:console.error(`Unknown key '${d}' in data-tabster attribute value.`)}}s?a.attr=s:(Object.keys(l).length===0&&(delete a.tabster,delete a.attr),t.storageEntry(e,!1))}/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */function LP(t){const e=t();try{if(e.EventTarget)return new e.EventTarget}catch(r){if(!(r instanceof TypeError))throw r}return e.document.createElement("div")}/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */let Ug;const Hb=typeof DOMRect<"u"?DOMRect:class{constructor(t,e,r,o){this.left=t||0,this.top=e||0,this.right=(t||0)+(r||0),this.bottom=(e||0)+(o||0)}};let HP=0;try{document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT),Ug=!1}catch{Ug=!0}const dh=100;function dn(t){const e=t();let r=e.__tabsterInstanceContext;return r||(r={elementByUId:{},basics:{Promise:e.Promise||void 0,WeakRef:e.WeakRef||void 0},containerBoundingRectCache:{},lastContainerBoundingRectCacheId:0,fakeWeakRefs:[],fakeWeakRefsStarted:!1},e.__tabsterInstanceContext=r),r}function UP(t){const e=t.__tabsterInstanceContext;e&&(e.elementByUId={},delete e.WeakRef,e.containerBoundingRectCache={},e.containerBoundingRectCacheTimer&&t.clearTimeout(e.containerBoundingRectCacheTimer),e.fakeWeakRefsTimer&&t.clearTimeout(e.fakeWeakRefsTimer),e.fakeWeakRefs=[],delete t.__tabsterInstanceContext)}function $P(t){const e=t.__tabsterInstanceContext;return new(e?.basics.WeakMap||WeakMap)}function KP(t){return!!t.querySelector(zv)}class Ux{constructor(e){this._target=e}deref(){return this._target}static cleanup(e,r){return e._target?r||!Ov(e._target.ownerDocument,e._target)?(delete e._target,!0):!1:!0}}class wr{constructor(e,r,o){const n=dn(e);let i;n.WeakRef?i=new n.WeakRef(r):(i=new Ux(r),n.fakeWeakRefs.push(i)),this._ref=i,this._data=o}get(){const e=this._ref;let r;return e&&(r=e.deref(),r||delete this._ref),r}getData(){return this._data}}function $x(t,e){const r=dn(t);r.fakeWeakRefs=r.fakeWeakRefs.filter(o=>!Ux.cleanup(o,e))}function Kx(t){const e=dn(t);e.fakeWeakRefsStarted||(e.fakeWeakRefsStarted=!0,e.WeakRef=ZP(e)),e.fakeWeakRefsTimer||(e.fakeWeakRefsTimer=t().setTimeout(()=>{e.fakeWeakRefsTimer=void 0,$x(t),Kx(t)},2*60*1e3))}function WP(t){const e=dn(t);e.fakeWeakRefsStarted=!1,e.fakeWeakRefsTimer&&(t().clearTimeout(e.fakeWeakRefsTimer),e.fakeWeakRefsTimer=void 0,e.fakeWeakRefs=[])}function Mv(t,e,r){if(e.nodeType!==Node.ELEMENT_NODE)return;const o=Ug?r:{acceptNode:r};return t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,o,!1)}function Wx(t,e){let r=e.__tabsterCacheId;const o=dn(t),n=r?o.containerBoundingRectCache[r]:void 0;if(n)return n.rect;const i=e.ownerDocument&&e.ownerDocument.documentElement;if(!i)return new Hb;let a=0,s=0,l=i.clientWidth,c=i.clientHeight;if(e!==i){const d=e.getBoundingClientRect();a=Math.max(a,d.left),s=Math.max(s,d.top),l=Math.min(l,d.right),c=Math.min(c,d.bottom)}const u=new Hb(a{o.containerBoundingRectCacheTimer=void 0;for(const d of Object.keys(o.containerBoundingRectCache))delete o.containerBoundingRectCache[d].element.__tabsterCacheId;o.containerBoundingRectCache={}},50)),u}function Ub(t,e,r){const o=Vx(e);if(!o)return!1;const n=Wx(t,o),i=e.getBoundingClientRect(),a=i.height*(1-r),s=Math.max(0,n.top-i.top),l=Math.max(0,i.bottom-n.bottom),c=s+l;return c===0||c<=a}function VP(t,e,r){const o=Vx(e);if(o){const n=Wx(t,o),i=e.getBoundingClientRect();r?o.scrollTop+=i.top-n.top:o.scrollTop+=i.bottom-n.bottom}}function Vx(t){const e=t.ownerDocument;if(e){for(let r=t.parentElement;r;r=r.parentElement)if(r.scrollWidth>r.clientWidth||r.scrollHeight>r.clientHeight)return r;return e.documentElement}return null}function GP(t){t.__shouldIgnoreFocus=!0}function Gx(t){return!!t.__shouldIgnoreFocus}function XP(t){const e=new Uint32Array(4);if(t.crypto&&t.crypto.getRandomValues)t.crypto.getRandomValues(e);else if(t.msCrypto&&t.msCrypto.getRandomValues)t.msCrypto.getRandomValues(e);else for(let o=0;o{if(this._fixedTarget){const f=this._fixedTarget.get();f&&Bo(f);return}const d=this.input;if(this.onFocusIn&&d){const f=u.relatedTarget;this.onFocusIn(this,this._isBackward(!0,d,f),f)}},this._focusOut=u=>{if(this._fixedTarget)return;this.useDefaultAction=!1;const d=this.input;if(this.onFocusOut&&d){const f=u.relatedTarget;this.onFocusOut(this,this._isBackward(!1,d,f),f)}};const s=e(),l=s.document.createElement("i");l.tabIndex=0,l.setAttribute("role","none"),l.setAttribute(zx,""),l.setAttribute("aria-hidden","true");const c=l.style;c.position="fixed",c.width=c.height="1px",c.opacity="0.001",c.zIndex="-1",c.setProperty("content-visibility","hidden"),GP(l),this.input=l,this.isFirst=o.isFirst,this.isOutside=r,this._isPhantom=(a=o.isPhantom)!==null&&a!==void 0?a:!1,this._fixedTarget=i,l.addEventListener("focusin",this._focusIn),l.addEventListener("focusout",this._focusOut),l.__tabsterDummyContainer=n,this._isPhantom&&(this._disposeTimer=s.setTimeout(()=>{delete this._disposeTimer,this.dispose()},0),this._clearDisposeTimeout=()=>{this._disposeTimer&&(s.clearTimeout(this._disposeTimer),delete this._disposeTimer),delete this._clearDisposeTimeout})}dispose(){var e;this._clearDisposeTimeout&&this._clearDisposeTimeout();const r=this.input;r&&(delete this._fixedTarget,delete this.onFocusIn,delete this.onFocusOut,delete this.input,r.removeEventListener("focusin",this._focusIn),r.removeEventListener("focusout",this._focusOut),delete r.__tabsterDummyContainer,(e=r.parentElement)===null||e===void 0||e.removeChild(r))}setTopLeft(e,r){var o;const n=(o=this.input)===null||o===void 0?void 0:o.style;n&&(n.top=`${e}px`,n.left=`${r}px`)}_isBackward(e,r,o){return e&&!o?!this.isFirst:!!(o&&r.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING)}}const gf={Root:1,Modalizer:2,Mover:3,Groupper:4};class Ga{constructor(e,r,o,n,i,a){this._element=r,this._instance=new e6(e,r,this,o,n,i,a)}_setHandlers(e,r){this._onFocusIn=e,this._onFocusOut=r}moveOut(e){var r;(r=this._instance)===null||r===void 0||r.moveOut(e)}moveOutWithDefaultAction(e,r){var o;(o=this._instance)===null||o===void 0||o.moveOutWithDefaultAction(e,r)}getHandler(e){return e?this._onFocusIn:this._onFocusOut}setTabbable(e){var r;(r=this._instance)===null||r===void 0||r.setTabbable(this,e)}dispose(){this._instance&&(this._instance.dispose(this),delete this._instance),delete this._onFocusIn,delete this._onFocusOut}static moveWithPhantomDummy(e,r,o,n,i){var a;const l=new ad(e.getWindow,!0,{isPhantom:!0,isFirst:!0}).input;if(l){let c,u;if(r.tagName==="BODY")c=r,u=o&&n||!o&&!n?r.firstElementChild:null;else{o&&(!n||n&&!e.focusable.isFocusable(r,!1,!0,!0))?(c=r,u=n?r.firstElementChild:null):(c=r.parentElement,u=o&&n||!o&&!n?r:r.nextElementSibling);let d,f;do d=o&&n||!o&&!n?u?.previousElementSibling:u,f=(a=d?.__tabsterDummyContainer)===null||a===void 0?void 0:a.get(),f===r?u=o&&n||!o&&!n?d:d?.nextElementSibling:f=void 0;while(f)}c&&An({by:"root",owner:c,next:null,relatedEvent:i})&&(c.insertBefore(l,u),Bo(l))}}static addPhantomDummyWithTarget(e,r,o,n){const a=new ad(e.getWindow,!0,{isPhantom:!0,isFirst:!0},void 0,new wr(e.getWindow,n)).input;if(a){let s,l;KP(r)&&!o?(s=r,l=r.firstElementChild):(s=r.parentElement,l=o?r:r.nextElementSibling),s?.insertBefore(a,l)}}}class JP{constructor(e){this._updateQueue=new Set,this._lastUpdateQueueTime=0,this._changedParents=new WeakSet,this._dummyElements=[],this._dummyCallbacks=new WeakMap,this._domChanged=r=>{var o;this._changedParents.has(r)||(this._changedParents.add(r),!this._updateDummyInputsTimer&&(this._updateDummyInputsTimer=(o=this._win)===null||o===void 0?void 0:o.call(this).setTimeout(()=>{delete this._updateDummyInputsTimer;for(const n of this._dummyElements){const i=n.get();if(i){const a=this._dummyCallbacks.get(i);if(a){const s=i.parentElement;(!s||this._changedParents.has(s))&&a()}}}this._changedParents=new WeakSet},dh)))},this._win=e}add(e,r){!this._dummyCallbacks.has(e)&&this._win&&(this._dummyElements.push(new wr(this._win,e)),this._dummyCallbacks.set(e,r),this.domChanged=this._domChanged)}remove(e){this._dummyElements=this._dummyElements.filter(r=>{const o=r.get();return o&&o!==e}),this._dummyCallbacks.delete(e),this._dummyElements.length===0&&delete this.domChanged}dispose(){var e;const r=(e=this._win)===null||e===void 0?void 0:e.call(this);this._updateTimer&&(r?.clearTimeout(this._updateTimer),delete this._updateTimer),this._updateDummyInputsTimer&&(r?.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(e){this._win&&(this._updateQueue.add(e),this._lastUpdateQueueTime=Date.now(),this._scheduledUpdatePositions())}_scheduledUpdatePositions(){var e;this._updateTimer||(this._updateTimer=(e=this._win)===null||e===void 0?void 0:e.call(this).setTimeout(()=>{if(delete this._updateTimer,this._lastUpdateQueueTime+dh<=Date.now()){const r=new Map,o=[];for(const n of this._updateQueue)o.push(n(r));this._updateQueue.clear();for(const n of o)n();r.clear()}else this._scheduledUpdatePositions()},dh))}}class e6{constructor(e,r,o,n,i,a,s){this._wrappers=[],this._isOutside=!1,this._transformElements=new Set,this._onFocusIn=(h,g,p)=>{this._onFocus(!0,h,g,p)},this._onFocusOut=(h,g,p)=>{this._onFocus(!1,h,g,p)},this.moveOut=h=>{var g;const p=this._firstDummy,w=this._lastDummy;if(p&&w){this._ensurePosition();const v=p.input,m=w.input,b=(g=this._element)===null||g===void 0?void 0:g.get();if(v&&m&&b){let k;h?(v.tabIndex=0,k=v):(m.tabIndex=0,k=m),k&&Bo(k)}}},this.moveOutWithDefaultAction=(h,g)=>{var p;const w=this._firstDummy,v=this._lastDummy;if(w&&v){this._ensurePosition();const m=w.input,b=v.input,k=(p=this._element)===null||p===void 0?void 0:p.get();if(m&&b&&k){let x;h?!w.isOutside&&this._tabster.focusable.isFocusable(k,!0,!0,!0)?x=k:(w.useDefaultAction=!0,m.tabIndex=0,x=m):(v.useDefaultAction=!0,b.tabIndex=0,x=b),x&&An({by:"root",owner:k,next:null,relatedEvent:g})&&Bo(x)}}},this.setTabbable=(h,g)=>{var p,w;for(const m of this._wrappers)if(m.manager===h){m.tabbable=g;break}const v=this._getCurrent();if(v){const m=v.tabbable?0:-1;let b=(p=this._firstDummy)===null||p===void 0?void 0:p.input;b&&(b.tabIndex=m),b=(w=this._lastDummy)===null||w===void 0?void 0:w.input,b&&(b.tabIndex=m)}},this._addDummyInputs=()=>{this._addTimer||(this._addTimer=this._getWindow().setTimeout(()=>{delete this._addTimer,this._ensurePosition(),this._addTransformOffsets()},0))},this._addTransformOffsets=()=>{this._tabster._dummyObserver.updatePositions(this._computeTransformOffsets)},this._computeTransformOffsets=h=>{var g,p;const w=((g=this._firstDummy)===null||g===void 0?void 0:g.input)||((p=this._lastDummy)===null||p===void 0?void 0:p.input),v=this._transformElements,m=new Set;let b=0,k=0;const x=this._getWindow();for(let _=w;_&&_.nodeType===Node.ELEMENT_NODE;_=_.parentElement){let S=h.get(_);if(S===void 0){const C=x.getComputedStyle(_).transform;C&&C!=="none"&&(S={scrollTop:_.scrollTop,scrollLeft:_.scrollLeft}),h.set(_,S||null)}S&&(m.add(_),v.has(_)||_.addEventListener("scroll",this._addTransformOffsets),b+=S.scrollTop,k+=S.scrollLeft)}for(const _ of v)m.has(_)||_.removeEventListener("scroll",this._addTransformOffsets);return this._transformElements=m,()=>{var _,S;(_=this._firstDummy)===null||_===void 0||_.setTopLeft(b,k),(S=this._lastDummy)===null||S===void 0||S.setTopLeft(b,k)}};const l=r.get();if(!l)throw new Error("No element");this._tabster=e,this._getWindow=e.getWindow,this._callForDefaultAction=s;const c=l.__tabsterDummy;if((c||this)._wrappers.push({manager:o,priority:n,tabbable:!0}),c)return c;l.__tabsterDummy=this;const u=i?.dummyInputsPosition,d=l.tagName;this._isOutside=u?u===Lx.Outside:(a||d==="UL"||d==="OL"||d==="TABLE")&&!(d==="LI"||d==="TD"||d==="TH"),this._firstDummy=new ad(this._getWindow,this._isOutside,{isFirst:!0},r),this._lastDummy=new ad(this._getWindow,this._isOutside,{isFirst:!1},r);const f=this._firstDummy.input;f&&e._dummyObserver.add(f,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(e,r){var o,n,i,a;if((this._wrappers=this._wrappers.filter(l=>l.manager!==e&&!r)).length===0){delete((o=this._element)===null||o===void 0?void 0:o.get()).__tabsterDummy;for(const u of this._transformElements)u.removeEventListener("scroll",this._addTransformOffsets);this._transformElements.clear();const l=this._getWindow();this._addTimer&&(l.clearTimeout(this._addTimer),delete this._addTimer);const c=(n=this._firstDummy)===null||n===void 0?void 0:n.input;c&&this._tabster._dummyObserver.remove(c),(i=this._firstDummy)===null||i===void 0||i.dispose(),(a=this._lastDummy)===null||a===void 0||a.dispose()}}_onFocus(e,r,o,n){var i;const a=this._getCurrent();a&&(!r.useDefaultAction||this._callForDefaultAction)&&((i=a.manager.getHandler(e))===null||i===void 0||i(r,o,n))}_getCurrent(){return this._wrappers.sort((e,r)=>e.tabbable!==r.tabbable?e.tabbable?-1:1:e.priority-r.priority),this._wrappers[0]}_ensurePosition(){var e,r,o;const n=(e=this._element)===null||e===void 0?void 0:e.get(),i=(r=this._firstDummy)===null||r===void 0?void 0:r.input,a=(o=this._lastDummy)===null||o===void 0?void 0:o.input;if(!(!n||!i||!a))if(this._isOutside){const s=n.parentElement;if(s){const l=n.nextElementSibling;l!==a&&s.insertBefore(a,l),n.previousElementSibling!==i&&s.insertBefore(i,n)}}else{n.lastElementChild!==a&&n.appendChild(a);const s=n.firstElementChild;s&&s!==i&&n.insertBefore(i,s)}}}function Yx(t){let e=null;for(let r=t.lastElementChild;r;r=r.lastElementChild)e=r;return e||void 0}function t6(t,e){let r=t,o=null;for(;r&&!o;)o=e?r.previousElementSibling:r.nextElementSibling,r=r.parentElement;return o||void 0}function Hn(t,e,r){const o=document.createEvent("HTMLEvents");return o.initEvent(e,!0,!0),o.details=r,t.dispatchEvent(o),!o.defaultPrevented}function An(t){return Hn(t.owner,Fx,t)}function fh(t,e,r,o){const n=t.storageEntry(e,!0);let i=!1;if(!n.aug){if(o===void 0)return i;n.aug={}}if(o===void 0){if(r in n.aug){const a=n.aug[r];delete n.aug[r],a===null?e.removeAttribute(r):e.setAttribute(r,a),i=!0}}else{let a;r in n.aug||(a=e.getAttribute(r)),a!==void 0&&a!==o&&(n.aug[r]=a,o===null?e.removeAttribute(r):e.setAttribute(r,o),i=!0)}return o===void 0&&Object.keys(n.aug).length===0&&(delete n.aug,t.storageEntry(e,!1)),i}/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */function pf(t,e){const r=JSON.stringify(t);return e===!0?r:{[Yo]:r}}function r6(t,e){for(const r of Object.keys(e)){const o=e[r];o?t[r]=o:delete t[r]}}function o6(t,e,r){let o;if(r){const n=t.getAttribute(Yo);if(n)try{o=JSON.parse(n)}catch{}}o||(o={}),r6(o,e),Object.keys(o).length>0?t.setAttribute(Yo,pf(o,!0)):t.removeAttribute(Yo)}class Kb extends Ga{constructor(e,r,o,n){super(e,r,gf.Root,n,void 0,!0),this._onDummyInputFocus=i=>{var a;if(i.useDefaultAction)this._setFocused(!1);else{this._tabster.keyboardNavigation.setNavigatingWithKeyboard(!0);const s=this._element.get();if(s){this._setFocused(!0);const l=this._tabster.focusedElement.getFirstOrLastTabbable(i.isFirst,{container:s,ignoreAccessibility:!0});if(l){Bo(l);return}}(a=i.input)===null||a===void 0||a.blur()}},this._setHandlers(this._onDummyInputFocus),this._tabster=e,this._setFocused=o}}class n6 extends sc{constructor(e,r,o,n,i){super(e,r,n),this._isFocused=!1,this._setFocused=l=>{var c;if(this._setFocusedTimer&&(this._tabster.getWindow().clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),this._isFocused===l)return;const u=this._element.get();u&&(l?(this._isFocused=!0,(c=this._dummyManager)===null||c===void 0||c.setTabbable(!1),Hn(this._tabster.root.eventTarget,"focus",{element:u})):this._setFocusedTimer=this._tabster.getWindow().setTimeout(()=>{var d;delete this._setFocusedTimer,this._isFocused=!1,(d=this._dummyManager)===null||d===void 0||d.setTabbable(!0),Hn(this._tabster.root.eventTarget,"blur",{element:u})},0))},this._onFocusIn=l=>{const c=this._tabster.getParent,u=this._element.get();let d=l.target;do{if(d===u){this._setFocused(!0);return}d=d&&c(d)}while(d)},this._onFocusOut=()=>{this._setFocused(!1)},this._onDispose=o;const a=e.getWindow;this.uid=_u(a,r),this._sys=i,(e.controlTab||e.rootDummyInputs)&&this.addDummyInputs();const s=a();s.document.addEventListener("focusin",this._onFocusIn),s.document.addEventListener("focusout",this._onFocusOut),this._add()}addDummyInputs(){this._dummyManager||(this._dummyManager=new Kb(this._tabster,this._element,this._setFocused,this._sys))}dispose(){var e;this._onDispose(this);const r=this._tabster.getWindow();r.document.removeEventListener("focusin",this._onFocusIn),r.document.removeEventListener("focusout",this._onFocusOut),this._setFocusedTimer&&(r.clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),(e=this._dummyManager)===null||e===void 0||e.dispose(),this._remove()}moveOutWithDefaultAction(e,r){const o=this._dummyManager;if(o)o.moveOutWithDefaultAction(e,r);else{const n=this.getElement();n&&Kb.moveWithPhantomDummy(this._tabster,n,!0,e,r)}}_add(){}_remove(){}}class Qe{constructor(e,r){this._autoRootWaiting=!1,this._roots={},this._forceDummy=!1,this.rootById={},this._autoRootCreate=()=>{var o;const n=this._win().document,i=n.body;if(i){this._autoRootUnwait(n);const a=this._autoRoot;if(a)return o6(i,{root:a},!0),Hx(this._tabster,i),(o=Jt(this._tabster,i))===null||o===void 0?void 0:o.root}else this._autoRootWaiting||(this._autoRootWaiting=!0,n.addEventListener("readystatechange",this._autoRootCreate))},this._onRootDispose=o=>{delete this._roots[o.id]},this._tabster=e,this._win=e.getWindow,this._autoRoot=r,this.eventTarget=LP(this._win),e.queueInit(()=>{this._autoRoot&&this._autoRootCreate()})}_autoRootUnwait(e){e.removeEventListener("readystatechange",this._autoRootCreate),this._autoRootWaiting=!1}dispose(){const e=this._win();this._autoRootUnwait(e.document),delete this._autoRoot,Object.keys(this._roots).forEach(r=>{this._roots[r]&&(this._roots[r].dispose(),delete this._roots[r])}),this.rootById={}}createRoot(e,r,o){const n=new n6(this._tabster,e,this._onRootDispose,r,o);return this._roots[n.id]=n,this._forceDummy&&n.addDummyInputs(),n}addDummyInputs(){this._forceDummy=!0;const e=this._roots;for(const r of Object.keys(e))e[r].addDummyInputs()}static getRootByUId(e,r){const o=e().__tabsterInstance;return o&&o.root.rootById[r]}static getTabsterContext(e,r,o){o===void 0&&(o={});var n,i,a,s;if(!r.ownerDocument)return;const{checkRtl:l,referenceElement:c}=o,u=e.getParent;e.drainInitQueue();let d,f,h,g,p=!1,w,v,m,b,k=c||r;const x={};for(;k&&(!d||l);){const S=Jt(e,k);if(l&&m===void 0){const T=k.dir;T&&(m=T.toLowerCase()==="rtl")}if(!S){k=u(k);continue}const C=k.tagName;(S.uncontrolled||C==="IFRAME"||C==="WEBVIEW")&&(b=k),!g&&(!((n=S.focusable)===null||n===void 0)&&n.excludeFromMover)&&!h&&(p=!0);const E=S.modalizer,I=S.groupper,H=S.mover;!f&&E&&(f=E),!h&&I&&(!f||E)&&(f?(!I.isActive()&&I.getProps().tabbability&&f.userId!==((i=e.modalizer)===null||i===void 0?void 0:i.activeId)&&(f=void 0,h=I),v=I):h=I),!g&&H&&(!f||E)&&(!I||k!==r)&&(g=H,w=!!h&&h!==I),S.root&&(d=S.root),!((a=S.focusable)===null||a===void 0)&&a.ignoreKeydown&&Object.assign(x,S.focusable.ignoreKeydown),k=u(k)}if(!d){const S=e.root;S._autoRoot&&!((s=r.ownerDocument)===null||s===void 0)&&s.body&&(d=S._autoRootCreate())}return h&&!g&&(w=!0),d?{root:d,modalizer:f,groupper:h,mover:g,groupperBeforeMover:w,modalizerInGroupper:v,rtl:l?!!m:void 0,uncontrolled:b,excludedFromMover:p,ignoreKeydown:S=>!!x[S.key]}:void 0}static getRoot(e,r){var o;const n=e.getParent;for(let i=r;i;i=n(i)){const a=(o=Jt(e,i))===null||o===void 0?void 0:o.root;if(a)return a}}onRoot(e,r){r?delete this.rootById[e.uid]:this.rootById[e.uid]=e}}/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */class Zx{constructor(){this._callbacks=[]}dispose(){this._callbacks=[],delete this._val}subscribe(e){const r=this._callbacks;r.indexOf(e)<0&&r.push(e)}subscribeFirst(e){const r=this._callbacks,o=r.indexOf(e);o>=0&&r.splice(o,1),r.unshift(e)}unsubscribe(e){const r=this._callbacks.indexOf(e);r>=0&&this._callbacks.splice(r,1)}setVal(e,r){this._val!==e&&(this._val=e,this._callCallbacks(e,r))}getVal(){return this._val}trigger(e,r){this._callCallbacks(e,r)}_callCallbacks(e,r){this._callbacks.forEach(o=>o(e,r))}}/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */class i6{constructor(e){this._tabster=e}dispose(){}getProps(e){const r=Jt(this._tabster,e);return r&&r.focusable||{}}isFocusable(e,r,o,n){return Xx(e,zv)&&(r||e.tabIndex!==-1)?(o||this.isVisible(e))&&(n||this.isAccessible(e)):!1}isVisible(e){if(!e.ownerDocument||e.nodeType!==Node.ELEMENT_NODE||e.offsetParent===null&&e.ownerDocument.body!==e)return!1;const r=e.ownerDocument.defaultView;if(!r)return!1;const o=e.ownerDocument.body.getBoundingClientRect();return!(o.width===0&&o.height===0||r.getComputedStyle(e).visibility==="hidden")}isAccessible(e){var r;for(let o=e;o;o=o.parentElement){const n=Jt(this._tabster,o);if(this._isHidden(o)||!((r=n?.focusable)===null||r===void 0?void 0:r.ignoreAriaDisabled)&&this._isDisabled(o))return!1}return!0}_isDisabled(e){return e.hasAttribute("disabled")}_isHidden(e){var r;const o=e.getAttribute("aria-hidden");return!!(o&&o.toLowerCase()==="true"&&!(!((r=this._tabster.modalizer)===null||r===void 0)&&r.isAugmented(e)))}findFirst(e,r){return this.findElement({...e},r)}findLast(e,r){return this.findElement({isBackward:!0,...e},r)}findNext(e,r){return this.findElement({...e},r)}findPrev(e,r){return this.findElement({...e,isBackward:!0},r)}findDefault(e,r){return this.findElement({...e,acceptCondition:o=>this.isFocusable(o,e.includeProgrammaticallyFocusable)&&!!this.getProps(o).isDefault},r)||null}findAll(e){return this._findElements(!0,e)||[]}findElement(e,r){const o=this._findElements(!1,e,r);return o&&o[0]}_findElements(e,r,o){var n,i,a;const{container:s,currentElement:l=null,includeProgrammaticallyFocusable:c,useActiveModalizer:u,ignoreAccessibility:d,modalizerId:f,isBackward:h,onElement:g}=r;o||(o={});const p=[];let{acceptCondition:w}=r;const v=!!w;if(!s)return null;w||(w=x=>this.isFocusable(x,c,!1,d));const m={container:s,modalizerUserId:f===void 0&&u?(n=this._tabster.modalizer)===null||n===void 0?void 0:n.activeId:f||((a=(i=Qe.getTabsterContext(this._tabster,s))===null||i===void 0?void 0:i.modalizer)===null||a===void 0?void 0:a.userId),from:l||s,isBackward:h,acceptCondition:w,hasCustomCondition:v,includeProgrammaticallyFocusable:c,ignoreAccessibility:d,cachedGrouppers:{}},b=Mv(s.ownerDocument,s,x=>this._acceptElement(x,m));if(!b)return null;const k=x=>{var _,S;const C=(_=m.foundElement)!==null&&_!==void 0?_:m.foundBackward;return C&&p.push(C),e?C&&(m.found=!1,delete m.foundElement,delete m.foundBackward,delete m.fromCtx,m.from=C,g&&!g(C))?!1:!!(C||x):(C&&o&&(o.uncontrolled=(S=Qe.getTabsterContext(this._tabster,C))===null||S===void 0?void 0:S.uncontrolled),!!(x&&!C))};if(l||(o.outOfDOMOrder=!0),l)b.currentNode=l;else if(h){const x=Yx(s);if(!x)return null;if(this._acceptElement(x,m)===NodeFilter.FILTER_ACCEPT&&!k(!0))return m.skippedFocusable&&(o.outOfDOMOrder=!0),p;b.currentNode=x}do h?b.previousNode():b.nextNode();while(k());return m.skippedFocusable&&(o.outOfDOMOrder=!0),p.length?p:null}_acceptElement(e,r){var o,n,i,a;if(r.found)return NodeFilter.FILTER_ACCEPT;const s=r.foundBackward;if(s&&(e===s||!s.contains(e)))return r.found=!0,r.foundElement=s,NodeFilter.FILTER_ACCEPT;const l=r.container;if(e===l)return NodeFilter.FILTER_SKIP;if(!l.contains(e)||e.__tabsterDummyContainer||!((o=r.rejectElementsFrom)===null||o===void 0)&&o.contains(e))return NodeFilter.FILTER_REJECT;const c=r.currentCtx=Qe.getTabsterContext(this._tabster,e);if(!c)return NodeFilter.FILTER_SKIP;if(Gx(e))return this.isFocusable(e,void 0,!0,!0)&&(r.skippedFocusable=!0),NodeFilter.FILTER_SKIP;if(!r.hasCustomCondition&&(e.tagName==="IFRAME"||e.tagName==="WEBVIEW"))return((n=c.modalizer)===null||n===void 0?void 0:n.userId)===((i=this._tabster.modalizer)===null||i===void 0?void 0:i.activeId)?(r.found=!0,r.rejectElementsFrom=r.foundElement=e,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT;if(!r.ignoreAccessibility&&!this.isAccessible(e))return this.isFocusable(e,!1,!0,!0)&&(r.skippedFocusable=!0),NodeFilter.FILTER_REJECT;let u,d=r.fromCtx;d||(d=r.fromCtx=Qe.getTabsterContext(this._tabster,r.from));const f=d?.mover;let h=c.groupper,g=c.mover;if(u=(a=this._tabster.modalizer)===null||a===void 0?void 0:a.acceptElement(e,r),u!==void 0&&(r.skippedFocusable=!0),u===void 0&&(h||g||f)){const p=h?.getElement(),w=f?.getElement();let v=g?.getElement();v&&w?.contains(v)&&l.contains(w)&&(!p||!g||w.contains(p))&&(g=f,v=w),p&&(p===l||!l.contains(p))&&(h=void 0),v&&!l.contains(v)&&(g=void 0),h&&g&&(v&&p&&!p.contains(v)?g=void 0:h=void 0),h&&(u=h.acceptElement(e,r)),g&&(u=g.acceptElement(e,r))}return u===void 0&&(u=r.acceptCondition(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,u===NodeFilter.FILTER_SKIP&&this.isFocusable(e,!1,!0,!0)&&(r.skippedFocusable=!0)),u===NodeFilter.FILTER_ACCEPT&&!r.found&&(r.isBackward?(r.foundBackward=e,u=NodeFilter.FILTER_SKIP):(r.found=!0,r.foundElement=e)),u}}/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */const _e={Tab:9,Enter:13,Esc:27,Space:32,PageUp:33,PageDown:34,End:35,Home:36,Left:37,Up:38,Right:39,Down:40};/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */function a6(t,e){var r;const o=t.getParent;let n=e;do{const i=(r=Jt(t,n))===null||r===void 0?void 0:r.uncontrolled;if(i&&t.uncontrolled.isUncontrolledCompletely(n,!!i.completely))return n;n=o(n)}while(n)}class ot extends Zx{constructor(e,r){super(),this._init=()=>{const o=this._win(),n=o.document;n.addEventListener(so,this._onFocusIn,!0),n.addEventListener("focusout",this._onFocusOut,!0),o.addEventListener("keydown",this._onKeyDown,!0);const i=n.activeElement;i&&i!==n.body&&this._setFocusedElement(i),this.subscribe(this._onChanged)},this._onFocusIn=o=>{this._setFocusedElement(o.target,o.details.relatedTarget,o.details.isFocusedProgrammatically)},this._onFocusOut=o=>{this._setFocusedElement(void 0,o.relatedTarget)},this._validateFocusedElement=o=>{},this._onKeyDown=o=>{if(o.keyCode!==_e.Tab||o.ctrlKey)return;const n=this.getVal();if(!n||!n.ownerDocument||n.contentEditable==="true")return;const i=this._tabster,a=i.controlTab,s=Qe.getTabsterContext(i,n);if(!s||s.ignoreKeydown(o))return;const l=o.shiftKey,c=ot.findNextTabbable(i,s,void 0,n,void 0,l,!0),u=s.root.getElement();if(!u)return;const d=c?.element,f=a6(i,n);if(d){const h=c.uncontrolled;if(s.uncontrolled||h?.contains(n)){if(!c.outOfDOMOrder&&h===s.uncontrolled||f&&!f.contains(d))return;Ga.addPhantomDummyWithTarget(i,n,l,d);return}if(h||d.tagName==="IFRAME"){An({by:"root",owner:u,next:d,relatedEvent:o})&&Ga.moveWithPhantomDummy(this._tabster,h??d,!1,l,o);return}(a||c?.outOfDOMOrder)&&An({by:"root",owner:u,next:d,relatedEvent:o})&&(o.preventDefault(),o.stopImmediatePropagation(),Bo(d))}else!f&&An({by:"root",owner:u,next:null,relatedEvent:o})&&s.root.moveOutWithDefaultAction(l,o)},this._onChanged=(o,n)=>{var i,a;if(o)Hn(o,jx,n);else{const s=(i=this._lastVal)===null||i===void 0?void 0:i.get();if(s){const l={...n},c=Qe.getTabsterContext(this._tabster,s),u=(a=c?.modalizer)===null||a===void 0?void 0:a.userId;u&&(l.modalizerId=u),Hn(s,Dx,l)}}},this._tabster=e,this._win=r,e.queueInit(this._init)}dispose(){super.dispose();const e=this._win();e.document.removeEventListener(so,this._onFocusIn,!0),e.document.removeEventListener("focusout",this._onFocusOut,!0),e.removeEventListener("keydown",this._onKeyDown,!0),this.unsubscribe(this._onChanged),delete ot._lastResetElement,delete this._nextVal,delete this._lastVal}static forgetMemorized(e,r){var o,n;let i=ot._lastResetElement,a=i&&i.get();a&&r.contains(a)&&delete ot._lastResetElement,a=(n=(o=e._nextVal)===null||o===void 0?void 0:o.element)===null||n===void 0?void 0:n.get(),a&&r.contains(a)&&delete e._nextVal,i=e._lastVal,a=i&&i.get(),a&&r.contains(a)&&delete e._lastVal}getFocusedElement(){return this.getVal()}getLastFocusedElement(){var e;let r=(e=this._lastVal)===null||e===void 0?void 0:e.get();return(!r||r&&!Ov(r.ownerDocument,r))&&(this._lastVal=r=void 0),r}focus(e,r,o){return this._tabster.focusable.isFocusable(e,r,!1,o)?(e.focus(),!0):!1}focusDefault(e){const r=this._tabster.focusable.findDefault({container:e});return r?(this._tabster.focusedElement.focus(r),!0):!1}getFirstOrLastTabbable(e,r){var o;const{container:n,ignoreAccessibility:i}=r;let a;if(n){const s=Qe.getTabsterContext(this._tabster,n);s&&(a=(o=ot.findNextTabbable(this._tabster,s,n,void 0,void 0,!e,i))===null||o===void 0?void 0:o.element)}return a&&!n?.contains(a)&&(a=void 0),a||void 0}_focusFirstOrLast(e,r){const o=this.getFirstOrLastTabbable(e,r);return o?(this.focus(o,!1,!0),!0):!1}focusFirst(e){return this._focusFirstOrLast(!0,e)}focusLast(e){return this._focusFirstOrLast(!1,e)}resetFocus(e){if(!this._tabster.focusable.isVisible(e))return!1;if(this._tabster.focusable.isFocusable(e,!0,!0,!0))this.focus(e);else{const r=e.getAttribute("tabindex"),o=e.getAttribute("aria-hidden");e.tabIndex=-1,e.setAttribute("aria-hidden","true"),ot._lastResetElement=new wr(this._win,e),this.focus(e,!0,!0),this._setOrRemoveAttribute(e,"tabindex",r),this._setOrRemoveAttribute(e,"aria-hidden",o)}return!0}_setOrRemoveAttribute(e,r,o){o===null?e.removeAttribute(r):e.setAttribute(r,o)}_setFocusedElement(e,r,o){var n,i;if(this._tabster._noop)return;const a={relatedTarget:r};if(e){const l=(n=ot._lastResetElement)===null||n===void 0?void 0:n.get();if(ot._lastResetElement=void 0,l===e||Gx(e))return;a.isFocusedProgrammatically=o;const c=Qe.getTabsterContext(this._tabster,e),u=(i=c?.modalizer)===null||i===void 0?void 0:i.userId;u&&(a.modalizerId=u)}const s=this._nextVal={element:e?new wr(this._win,e):void 0,details:a};e&&e!==this._val&&this._validateFocusedElement(e),this._nextVal===s&&this.setVal(e,a),this._nextVal=void 0}setVal(e,r){super.setVal(e,r),e&&(this._lastVal=new wr(this._win,e))}static findNextTabbable(e,r,o,n,i,a,s){const l=o||r.root.getElement();if(!l)return null;let c=null;const u=ot._isTabbingTimer,d=e.getWindow();u&&d.clearTimeout(u),ot.isTabbing=!0,ot._isTabbingTimer=d.setTimeout(()=>{delete ot._isTabbingTimer,ot.isTabbing=!1},0);const f=r.modalizer,h=r.groupper,g=r.mover,p=w=>{var v;if(c=w.findNextTabbable(n,i,a,s),n&&!c?.element){const m=w!==f&&((v=w.getElement())===null||v===void 0?void 0:v.parentElement);if(m){const b=Qe.getTabsterContext(e,n,{referenceElement:m});if(b){const k=w.getElement(),x=a?k:k&&Yx(k)||k;x&&(c=ot.findNextTabbable(e,b,o,x,m,a,s),c&&(c.outOfDOMOrder=!0))}}}};if(h&&g)p(r.groupperBeforeMover?h:g);else if(h)p(h);else if(g)p(g);else if(f)p(f);else{const w={container:l,currentElement:n,referenceElement:i,ignoreAccessibility:s,useActiveModalizer:!0},v={};c={element:e.focusable[a?"findPrev":"findNext"](w,v),outOfDOMOrder:v.outOfDOMOrder,uncontrolled:v.uncontrolled}}return c}}ot.isTabbing=!1;/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */class s6 extends Ga{constructor(e,r,o,n){super(o,e,gf.Groupper,n,!0),this._setHandlers((i,a,s)=>{var l,c;const u=e.get(),d=i.input;if(u&&d){const f=Qe.getTabsterContext(o,d);if(f){let h;h=(l=r.findNextTabbable(s||void 0,void 0,a,!0))===null||l===void 0?void 0:l.element,h||(h=(c=ot.findNextTabbable(o,f,void 0,i.isOutside?d:t6(u,!a),void 0,a,!0))===null||c===void 0?void 0:c.element),h&&Bo(h)}}})}}class l6 extends sc{constructor(e,r,o,n,i){super(e,r,n),this._shouldTabInside=!1,this.makeTabbable(!1),this._onDispose=o,e.controlTab||(this.dummyManager=new s6(this._element,this,e,i))}dispose(){var e;this._onDispose(this),this._element.get(),(e=this.dummyManager)===null||e===void 0||e.dispose(),delete this.dummyManager,delete this._first}findNextTabbable(e,r,o,n){var i;const a=this.getElement();if(!a)return null;const s=((i=e?.__tabsterDummyContainer)===null||i===void 0?void 0:i.get())===a;if(!this._shouldTabInside&&e&&a.contains(e)&&!s)return{element:void 0,outOfDOMOrder:!0};const l=this.getFirst(!0);if(!e||!a.contains(e)||s)return{element:l,outOfDOMOrder:!0};const c=this._tabster;let u=null,d=!1,f;if(this._shouldTabInside&&l){const h={container:a,currentElement:e,referenceElement:r,ignoreAccessibility:n,useActiveModalizer:!0},g={};u=c.focusable[o?"findPrev":"findNext"](h,g),d=!!g.outOfDOMOrder,!u&&this._props.tabbability===qx.LimitedTrapFocus&&(u=c.focusable[o?"findLast":"findFirst"]({container:a,ignoreAccessibility:n,useActiveModalizer:!0},g),d=!0),f=g.uncontrolled}return{element:u,uncontrolled:f,outOfDOMOrder:d}}makeTabbable(e){this._shouldTabInside=e||!this._props.tabbability}isActive(e){var r;const o=this.getElement()||null;let n=!0;for(let a=o?.parentElement;a;a=a.parentElement){const s=(r=Jt(this._tabster,a))===null||r===void 0?void 0:r.groupper;s&&(s._shouldTabInside||(n=!1))}let i=n?this._props.tabbability?this._shouldTabInside:!1:void 0;if(i&&e){const a=this._tabster.focusedElement.getFocusedElement();a&&(i=a!==this.getFirst(!0))}return i}getFirst(e){var r;const o=this.getElement();let n;if(o){if(e&&this._tabster.focusable.isFocusable(o))return o;n=(r=this._first)===null||r===void 0?void 0:r.get(),n||(n=this._tabster.focusable.findFirst({container:o,useActiveModalizer:!0})||void 0,n&&this.setFirst(n))}return n}setFirst(e){e?this._first=new wr(this._tabster.getWindow,e):delete this._first}acceptElement(e,r){var o;const n=r.cachedGrouppers,i=(o=this.getElement())===null||o===void 0?void 0:o.parentElement,a=i&&Qe.getTabsterContext(this._tabster,i),s=a?.groupper,l=a?.groupperBeforeMover?s:void 0;let c;const u=h=>{let g=n[h.id],p;return g?p=g.isActive:(p=this.isActive(!0),g=n[h.id]={isActive:p}),p};if(l&&(c=l.getElement(),!u(l)&&c&&r.container!==c&&r.container.contains(c)))return r.skippedFocusable=!0,NodeFilter.FILTER_REJECT;const d=u(this),f=this.getElement();if(f&&d!==!0){if(f===e&&s&&(c||(c=s.getElement()),c&&!u(s)&&r.container.contains(c)&&c!==r.container)||f!==e&&f.contains(e))return r.skippedFocusable=!0,NodeFilter.FILTER_REJECT;const h=n[this.id];let g;if("first"in h?g=h.first:g=h.first=this.getFirst(!0),g&&r.acceptCondition(g))return r.rejectElementsFrom=f,r.skippedFocusable=!0,g!==r.from?(r.found=!0,r.foundElement=g,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT}}}class c6{constructor(e,r){this._current={},this._grouppers={},this._init=()=>{const o=this._win();this._tabster.focusedElement.subscribeFirst(this._onFocus),o.document.addEventListener("mousedown",this._onMouseDown,!0),o.addEventListener("keydown",this._onKeyDown,!0)},this._onGroupperDispose=o=>{delete this._grouppers[o.id]},this._onFocus=o=>{o&&this._updateCurrent(o,!0,!0)},this._onMouseDown=o=>{o.target&&this._updateCurrent(o.target,!0)},this._onKeyDown=o=>{if(o.keyCode!==_e.Enter&&o.keyCode!==_e.Esc||o.ctrlKey||o.altKey||o.shiftKey||o.metaKey)return;const n=this._tabster.focusedElement.getFocusedElement();n&&this.handleKeyPress(n,o)},this._tabster=e,this._win=r,e.queueInit(this._init)}dispose(){const e=this._win();this._handleKeyPressTimer&&(e.clearTimeout(this._handleKeyPressTimer),delete this._handleKeyPressTimer),this._current={},this._updateTimer&&(e.clearTimeout(this._updateTimer),delete this._updateTimer),this._tabster.focusedElement.unsubscribe(this._onFocus),e.document.removeEventListener("mousedown",this._onMouseDown,!0),e.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._grouppers).forEach(r=>{this._grouppers[r]&&(this._grouppers[r].dispose(),delete this._grouppers[r])})}createGroupper(e,r,o){const n=new l6(this._tabster,e,this._onGroupperDispose,r,o);this._grouppers[n.id]=n;const i=this._tabster.focusedElement.getFocusedElement();return i&&e.contains(i)&&!this._updateTimer&&(this._updateTimer=this._win().setTimeout(()=>{delete this._updateTimer,i===this._tabster.focusedElement.getFocusedElement()&&this._updateCurrent(i,!0,!0)},0)),n}forgetCurrentGrouppers(){this._current={}}_updateCurrent(e,r,o){var n;this._updateTimer&&(this._win().clearTimeout(this._updateTimer),delete this._updateTimer);const i={};let a=!0;for(let s=e;s;s=s.parentElement){const l=(n=Jt(this._tabster,s))===null||n===void 0?void 0:n.groupper;if(l){if(i[l.id]=!0,a&&o&&s!==e&&(a=!1),r||!a){this._current[l.id]=l;const c=l.isActive()||e!==s&&(!l.getProps().delegated||l.getFirst(!1)!==e);l.makeTabbable(c)}a=!1}}for(const s of Object.keys(this._current)){const l=this._current[s];l.id in i||(l.makeTabbable(!1),l.setFirst(void 0),delete this._current[s])}}handleKeyPress(e,r,o){const n=this._tabster,i=Qe.getTabsterContext(n,e),a=i?.modalizerInGroupper;let s=i?.groupper||a;if(i&&s){const l=this._win();if(this._handleKeyPressTimer&&(l.clearTimeout(this._handleKeyPressTimer),delete this._handleKeyPressTimer),i.ignoreKeydown(r))return;let c;const u=s.getElement();if(r.keyCode===_e.Enter)u&&(e===u||s.getProps().delegated&&e===s.getFirst(!1))&&(c=n.focusable.findNext({container:u,currentElement:e,useActiveModalizer:!0})),c&&u&&An({by:"groupper",owner:u,next:c,relatedEvent:r})&&(r.preventDefault(),r.stopImmediatePropagation(),c.focus());else if(r.keyCode===_e.Esc){const d=n.focusedElement.getFocusedElement();this._handleKeyPressTimer=l.setTimeout(()=>{var f;if(delete this._handleKeyPressTimer,!(d!==n.focusedElement.getFocusedElement()&&(o&&!d||!o))&&s&&u&&u.contains(e)){if(e!==u||o)c=s.getFirst(!0);else{const h=u.parentElement,g=h?Qe.getTabsterContext(n,h):void 0;s=g?.groupper,c=s?.getFirst(!0)}c&&An({by:"groupper",owner:u,next:c,relatedEvent:r})&&(s&&(s.makeTabbable(!1),a&&((f=n.modalizer)===null||f===void 0||f.setActive(void 0))),c.focus())}},0)}}}}/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */class u6 extends Zx{constructor(e){super(),this._onChange=r=>{this.setVal(r,void 0)},this._keyborg=Nv(e()),this._keyborg.subscribe(this._onChange)}dispose(){super.dispose(),this._keyborg&&(this._keyborg.unsubscribe(this._onChange),Pv(this._keyborg),delete this._keyborg)}setNavigatingWithKeyboard(e){var r;(r=this._keyborg)===null||r===void 0||r.setVal(e)}isNavigatingWithKeyboard(){var e;return!!(!((e=this._keyborg)===null||e===void 0)&&e.isNavigatingWithKeyboard())}}/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */let d6=0;const hh="aria-hidden";class f6 extends Ga{constructor(e,r,o){super(r,e,gf.Modalizer,o),this._setHandlers((n,i)=>{var a,s,l;const c=e.get(),u=c&&((a=Qe.getRoot(r,c))===null||a===void 0?void 0:a.getElement()),d=n.input;let f;if(u&&d){const h=(s=d.__tabsterDummyContainer)===null||s===void 0?void 0:s.get(),g=Qe.getTabsterContext(r,h||d);g&&(f=(l=ot.findNextTabbable(r,g,u,d,void 0,i,!0))===null||l===void 0?void 0:l.element),f&&Bo(f)}})}}class h6 extends sc{constructor(e,r,o,n,i,a){super(e,r,n),this._wasFocused=0,this.userId=n.id,this._onDispose=o,this._activeElements=a,e.controlTab||(this.dummyManager=new f6(this._element,e,i))}makeActive(e){if(this._isActive!==e){this._isActive=e;const r=this.getElement();if(r){const o=this._activeElements,n=o.map(i=>i.get()).indexOf(r);e?n<0&&o.push(new wr(this._tabster.getWindow,r)):n>=0&&o.splice(n,1)}this.triggerFocusEvent(e?Mx:Ox)}}focused(e){return e||(this._wasFocused=++d6),this._wasFocused}setProps(e){e.id&&(this.userId=e.id),this._props={...e}}dispose(){var e;this.makeActive(!1),this._onDispose(this),(e=this.dummyManager)===null||e===void 0||e.dispose(),delete this.dummyManager,this._activeElements=[],this._remove()}isActive(){return!!this._isActive}contains(e){var r;return!!(!((r=this.getElement())===null||r===void 0)&&r.contains(e))}findNextTabbable(e,r,o,n){var i,a;if(!this.getElement())return null;const l=this._tabster;let c=null,u=!1,d;const f=e&&((i=Qe.getRoot(l,e))===null||i===void 0?void 0:i.getElement());if(f){const h={container:f,currentElement:e,referenceElement:r,ignoreAccessibility:n,useActiveModalizer:!0},g={};c=l.focusable[o?"findPrev":"findNext"](h,g),!c&&this._props.isTrapped&&(!((a=l.modalizer)===null||a===void 0)&&a.activeId)?(c=l.focusable[o?"findLast":"findFirst"]({container:f,ignoreAccessibility:n,useActiveModalizer:!0},g),u=!0):u=!!g.outOfDOMOrder,d=g.uncontrolled}return{element:c,uncontrolled:d,outOfDOMOrder:u}}triggerFocusEvent(e,r){const o=this.getElement();let n=!1;if(o){const i=r?this._activeElements.map(a=>a.get()):[o];for(const a of i)a&&!Hn(a,e,{id:this.userId,element:o,eventName:e})&&(n=!0)}return n}_remove(){}}class g6{constructor(e,r,o){this._onModalizerDispose=i=>{const a=i.id,s=i.userId,l=this._parts[s];delete this._modalizers[a],l&&(delete l[a],Object.keys(l).length===0&&(delete this._parts[s],this.activeId===s&&this.setActive(void 0)))},this._onKeyDown=i=>{var a;if(i.keyCode!==_e.Esc)return;const s=this._tabster,l=s.focusedElement.getFocusedElement();if(l){const c=Qe.getTabsterContext(s,l),u=c?.modalizer;if(c&&!c.groupper&&u?.isActive()&&!c.ignoreKeydown(i)){const d=u.userId;if(d){const f=this._parts[d];if(f){const h=Object.keys(f).map(g=>{var p;const w=f[g],v=w.getElement();let m;return v&&(m=(p=Jt(this._tabster,v))===null||p===void 0?void 0:p.groupper),w&&v&&m?{el:v,focusedSince:w.focused(!0)}:{focusedSince:0}}).filter(g=>g.focusedSince>0).sort((g,p)=>g.focusedSince>p.focusedSince?-1:g.focusedSince{var s,l;const c=i&&Qe.getTabsterContext(this._tabster,i);if(!c||!i)return;const u=this._augMap;for(let f=i;f;f=f.parentElement)u.has(f)&&(u.delete(f),fh(this._tabster,f,hh));const d=c.modalizer;if((l=d||((s=Jt(this._tabster,i))===null||s===void 0?void 0:s.modalizer))===null||l===void 0||l.focused(),d?.userId===this.activeId){this.currentIsOthersAccessible=d?.getProps().isOthersAccessible;return}if(a.isFocusedProgrammatically||this.currentIsOthersAccessible||d?.getProps().isAlwaysAccessible)this.setActive(d);else{const f=this._win();f.clearTimeout(this._restoreModalizerFocusTimer),this._restoreModalizerFocusTimer=f.setTimeout(()=>this._restoreModalizerFocus(i),100)}},this._tabster=e,this._win=e.getWindow,this._modalizers={},this._parts={},this._augMap=new WeakMap,this._aug=[],this._alwaysAccessibleSelector=r,this._accessibleCheck=o,this.activeElements=[],e.controlTab||e.root.addDummyInputs(),this._win().addEventListener("keydown",this._onKeyDown,!0),e.queueInit(()=>{this._tabster.focusedElement.subscribe(this._onFocus)})}dispose(){const e=this._win();e.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._modalizers).forEach(r=>{this._modalizers[r]&&(this._modalizers[r].dispose(),delete this._modalizers[r])}),e.clearTimeout(this._restoreModalizerFocusTimer),e.clearTimeout(this._hiddenUpdateTimer),this._parts={},delete this.activeId,this.activeElements=[],this._augMap=new WeakMap,this._aug=[],this._tabster.focusedElement.unsubscribe(this._onFocus)}createModalizer(e,r,o){var n;const i=new h6(this._tabster,e,this._onModalizerDispose,r,o,this.activeElements),a=i.id,s=r.id;this._modalizers[a]=i;let l=this._parts[s];return l||(l=this._parts[s]={}),l[a]=i,e.contains((n=this._tabster.focusedElement.getFocusedElement())!==null&&n!==void 0?n:null)&&(s!==this.activeId?this.setActive(i):i.makeActive(!0)),i}isAugmented(e){return this._augMap.has(e)}hiddenUpdate(){this._hiddenUpdateTimer||(this._hiddenUpdateTimer=this._win().setTimeout(()=>{delete this._hiddenUpdateTimer,this._hiddenUpdate()},250))}setActive(e){const r=e?.userId,o=this.activeId;if(o!==r){if(this.activeId=r,o){const n=this._parts[o];if(n)for(const i of Object.keys(n))n[i].makeActive(!1)}if(r){const n=this._parts[r];if(n)for(const i of Object.keys(n))n[i].makeActive(!0)}this.currentIsOthersAccessible=e?.getProps().isOthersAccessible,this.hiddenUpdate()}}focus(e,r,o){const n=Qe.getTabsterContext(this._tabster,e),i=n?.modalizer;if(i){this.setActive(i);const a=i.getProps(),s=i.getElement();if(s){if(r===void 0&&(r=a.isNoFocusFirst),!r&&this._tabster.keyboardNavigation.isNavigatingWithKeyboard()&&this._tabster.focusedElement.focusFirst({container:s})||(o===void 0&&(o=a.isNoFocusDefault),!o&&this._tabster.focusedElement.focusDefault(s)))return!0;this._tabster.focusedElement.resetFocus(s)}}return!1}acceptElement(e,r){var o;const n=r.modalizerUserId,i=(o=r.currentCtx)===null||o===void 0?void 0:o.modalizer;if(n)for(const s of this.activeElements){const l=s.get();if(l&&(e.contains(l)||l===e))return NodeFilter.FILTER_SKIP}const a=n===i?.userId||!n&&i?.getProps().isAlwaysAccessible?void 0:NodeFilter.FILTER_SKIP;return a!==void 0&&(r.skippedFocusable=!0),a}_hiddenUpdate(){var e;const r=this._tabster,o=r.getWindow().document.body,n=this.activeId,i=this._parts,a=[],s=[],l=this._alwaysAccessibleSelector,c=l?Array.from(o.querySelectorAll(l)):[],u=[];for(const v of Object.keys(i)){const m=i[v];for(const b of Object.keys(m)){const k=m[b],x=k.getElement(),S=k.getProps().isAlwaysAccessible;x&&(v===n?(u.push(x),this.currentIsOthersAccessible||a.push(x)):S?c.push(x):s.push(x))}}const d=this._augMap,f=a.length>0?[...a,...c]:void 0,h=[],g=new WeakMap,p=(v,m)=>{var b;const k=v.tagName;if(k==="SCRIPT"||k==="STYLE")return;let x=!1;d.has(v)?m?x=!0:(d.delete(v),fh(r,v,hh)):m&&!(!((b=this._accessibleCheck)===null||b===void 0)&&b.call(this,v,u))&&fh(r,v,hh,"true")&&(d.set(v,!0),x=!0),x&&(h.push(new wr(r.getWindow,v)),g.set(v,!0))},w=v=>{for(let m=v.firstElementChild;m;m=m.nextElementSibling){let b=!1,k=!1;if(f){for(const x of f){if(m===x){b=!0;break}if(m.contains(x)){k=!0;break}}k?w(m):b||p(m,!0)}else p(m,!1)}};f||c.forEach(v=>p(v,!1)),s.forEach(v=>p(v,!0)),o&&w(o),(e=this._aug)===null||e===void 0||e.map(v=>v.get()).forEach(v=>{v&&!g.get(v)&&p(v,!1)}),this._aug=h,this._augMap=g}_restoreModalizerFocus(e){const r=e?.ownerDocument;if(!e||!r)return;const o=Qe.getTabsterContext(this._tabster,e),n=o?.modalizer,i=this.activeId;if(!n&&!i||n&&i===n.userId)return;const a=o?.root.getElement();if(a){let s=this._tabster.focusable.findFirst({container:a,useActiveModalizer:!0});if(s){if(e.compareDocumentPosition(s)&document.DOCUMENT_POSITION_PRECEDING&&(s=this._tabster.focusable.findLast({container:a,useActiveModalizer:!0}),!s))throw new Error("Something went wrong.");this._tabster.focusedElement.focus(s);return}}e.blur()}}/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */const p6=["input","textarea","*[contenteditable]"].join(", ");class m6 extends Ga{constructor(e,r,o,n){super(r,e,gf.Mover,n),this._onFocusDummyInput=i=>{var a,s;const l=this._element.get(),c=i.input;if(l&&c){const u=Qe.getTabsterContext(this._tabster,l);let d;u&&(d=(a=ot.findNextTabbable(this._tabster,u,void 0,c,void 0,!i.isFirst,!0))===null||a===void 0?void 0:a.element);const f=(s=this._getMemorized())===null||s===void 0?void 0:s.get();f&&(d=f),d&&Bo(d)}},this._tabster=r,this._getMemorized=o,this._setHandlers(this._onFocusDummyInput)}}const gh=1,Wb=2,Vb=3;class v6 extends sc{constructor(e,r,o,n,i){var a;super(e,r,n),this._visible={},this._onIntersection=l=>{for(const c of l){const u=c.target,d=_u(this._win,u);let f,h=this._fullyVisible;if(c.intersectionRatio>=.25?(f=c.intersectionRatio>=.75?jo.Visible:jo.PartiallyVisible,f===jo.Visible&&(h=d)):f=jo.Invisible,this._visible[d]!==f){f===void 0?(delete this._visible[d],h===d&&delete this._fullyVisible):(this._visible[d]=f,this._fullyVisible=h);const g=this.getState(u);g&&Hn(u,Hg,g)}}},this._win=e.getWindow,this.visibilityTolerance=(a=n.visibilityTolerance)!==null&&a!==void 0?a:.8,(this._props.trackState||this._props.visibilityAware)&&(this._intersectionObserver=new IntersectionObserver(this._onIntersection,{threshold:[0,.25,.5,.75,1]}),this._observeState()),this._onDispose=o;const s=()=>n.memorizeCurrent?this._current:void 0;e.controlTab||(this.dummyManager=new m6(this._element,e,s,i))}dispose(){var e;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),(e=this.dummyManager)===null||e===void 0||e.dispose(),delete this.dummyManager}setCurrent(e){e?this._current=new wr(this._win,e):this._current=void 0,(this._props.trackState||this._props.visibilityAware)&&!this._setCurrentTimer&&(this._setCurrentTimer=this._win().setTimeout(()=>{var r;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 i=n?.get();if(i&&((r=this._allElements)===null||r===void 0?void 0:r.get(i))===this){const a=this._props;if(i&&(a.visibilityAware!==void 0||a.trackState)){const s=this.getState(i);s&&Hn(i,Hg,s)}}}}))}getCurrent(){var e;return((e=this._current)===null||e===void 0?void 0:e.get())||null}findNextTabbable(e,r,o,n){var i;const a=this.getElement(),s=a&&((i=e?.__tabsterDummyContainer)===null||i===void 0?void 0:i.get())===a;if(!a)return null;let l=null,c=!1,u;if(this._props.tabbable||s||e&&!a.contains(e)){const d={currentElement:e,referenceElement:r,container:a,ignoreAccessibility:n,useActiveModalizer:!0},f={};l=this._tabster.focusable[o?"findPrev":"findNext"](d,f),c=!!f.outOfDOMOrder,u=f.uncontrolled}return{element:l,uncontrolled:u,outOfDOMOrder:c}}acceptElement(e,r){var o,n,i;if(!ot.isTabbing)return!((o=r.currentCtx)===null||o===void 0)&&o.excludedFromMover?NodeFilter.FILTER_REJECT:void 0;const{memorizeCurrent:a,visibilityAware:s,hasDefault:l=!0}=this._props,c=this.getElement();if(c&&(a||s||l)&&(!c.contains(r.from)||((n=r.from.__tabsterDummyContainer)===null||n===void 0?void 0:n.get())===c)){let u;if(a){const d=(i=this._current)===null||i===void 0?void 0:i.get();d&&r.acceptCondition(d)&&(u=d)}if(!u&&l&&(u=this._tabster.focusable.findDefault({container:c,useActiveModalizer:!0})),!u&&s&&(u=this._tabster.focusable.findElement({container:c,useActiveModalizer:!0,isBackward:r.isBackward,acceptCondition:d=>{var f;const h=_u(this._win,d),g=this._visible[h];return c!==d&&!!(!((f=this._allElements)===null||f===void 0)&&f.get(d))&&r.acceptCondition(d)&&(g===jo.Visible||g===jo.PartiallyVisible&&(s===jo.PartiallyVisible||!this._fullyVisible))}})),u)return r.found=!0,r.foundElement=u,r.rejectElementsFrom=c,r.skippedFocusable=!0,NodeFilter.FILTER_ACCEPT}}_observeState(){const e=this.getElement();if(this._unobserve||!e||typeof MutationObserver>"u")return;const r=this._win(),o=this._allElements=new WeakMap,n=this._tabster.focusable;let i=this._updateQueue=[];const a=new MutationObserver(h=>{for(const g of h){const p=g.target,w=g.removedNodes,v=g.addedNodes;if(g.type==="attributes")g.attributeName==="tabindex"&&i.push({element:p,type:Wb});else{for(let m=0;m{var p,w;const v=o.get(h);v&&g&&((p=this._intersectionObserver)===null||p===void 0||p.unobserve(h),o.delete(h)),!v&&!g&&(o.set(h,this),(w=this._intersectionObserver)===null||w===void 0||w.observe(h))},l=h=>{const g=n.isFocusable(h);o.get(h)?g||s(h,!0):g&&s(h)},c=h=>{const{mover:g}=f(h);if(g&&g!==this)if(g.getElement()===h&&n.isFocusable(h))s(h);else return;const p=Mv(r.document,h,w=>{const{mover:v,groupper:m}=f(w);if(v&&v!==this)return NodeFilter.FILTER_REJECT;const b=m?.getFirst(!0);return m&&m.getElement()!==w&&b&&b!==w?NodeFilter.FILTER_REJECT:(n.isFocusable(w)&&s(w),NodeFilter.FILTER_SKIP)});if(p)for(p.currentNode=h;p.nextNode(););},u=h=>{o.get(h)&&s(h,!0);for(let p=h.firstElementChild;p;p=p.nextElementSibling)u(p)},d=()=>{!this._updateTimer&&i.length&&(this._updateTimer=r.setTimeout(()=>{delete this._updateTimer;for(const{element:h,type:g}of i)switch(g){case Wb:l(h);break;case gh:c(h);break;case Vb:u(h);break}i=this._updateQueue=[]},0))},f=h=>{const g={};for(let p=h;p;p=p.parentElement){const w=Jt(this._tabster,p);if(w&&(w.groupper&&!g.groupper&&(g.groupper=w.groupper),w.mover)){g.mover=w.mover;break}}return g};i.push({element:e,type:gh}),d(),a.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["tabindex"]}),this._unobserve=()=>{a.disconnect()}}getState(e){const r=_u(this._win,e);if(r in this._visible){const o=this._visible[r]||jo.Invisible;return{isCurrent:this._current?this._current.get()===e:void 0,visibility:o}}}}function b6(t,e,r,o,n,i,a,s){const l=r{this._win().addEventListener("keydown",this._onKeyDown,!0),this._tabster.focusedElement.subscribe(this._onFocus)},this._onMoverDispose=o=>{delete this._movers[o.id]},this._onFocus=o=>{var n;let i=o,a=o;for(let s=o?.parentElement;s;s=s.parentElement){const l=(n=Jt(this._tabster,s))===null||n===void 0?void 0:n.mover;l&&(l.setCurrent(a),i=void 0),!i&&this._tabster.focusable.isFocusable(s)&&(i=a=s)}},this._onKeyDown=async o=>{var n,i,a,s;this._ignoredInputTimer&&(this._win().clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),(n=this._ignoredInputResolve)===null||n===void 0||n.call(this,!1);let l=o.keyCode;if(o.ctrlKey||o.altKey||o.shiftKey||o.metaKey)return;switch(l){case _e.Down:case _e.Right:case _e.Up:case _e.Left:case _e.PageDown:case _e.PageUp:case _e.Home:case _e.End:break;default:return}const c=this._tabster,u=c.focusedElement.getFocusedElement();if(!u||await this._isIgnoredInput(u,l))return;const d=Qe.getTabsterContext(c,u,{checkRtl:!0});if(!d||!d.mover||d.excludedFromMover||d.ignoreKeydown(o))return;const f=d.mover,h=f.getElement();if(d.groupperBeforeMover){const T=d.groupper;if(T&&!T.isActive(!0)){for(let R=(i=T.getElement())===null||i===void 0?void 0:i.parentElement;R&&R!==h;R=R.parentElement)if(!((s=(a=Jt(c,R))===null||a===void 0?void 0:a.groupper)===null||s===void 0)&&s.isActive(!0))return}else return}if(!h)return;const g=c.focusable,p=f.getProps(),w=p.direction||ai.Both,v=w===ai.Both,m=v||w===ai.Vertical,b=v||w===ai.Horizontal,k=w===ai.GridLinear,x=k||w===ai.Grid,_=p.cyclic;let S,C,E,I=0,H=0;if(x&&(E=u.getBoundingClientRect(),I=Math.ceil(E.left),H=Math.floor(E.right)),d.rtl&&(l===_e.Right?l=_e.Left:l===_e.Left&&(l=_e.Right)),l===_e.Down&&m||l===_e.Right&&(b||x))if(S=g.findNext({currentElement:u,container:h,useActiveModalizer:!0}),S&&x){const T=Math.ceil(S.getBoundingClientRect().left);!k&&H>T&&(S=void 0)}else!S&&_&&(S=g.findFirst({container:h,useActiveModalizer:!0}));else if(l===_e.Up&&m||l===_e.Left&&(b||x))if(S=g.findPrev({currentElement:u,container:h,useActiveModalizer:!0}),S&&x){const T=Math.floor(S.getBoundingClientRect().right);!k&&T>I&&(S=void 0)}else!S&&_&&(S=g.findLast({container:h,useActiveModalizer:!0}));else if(l===_e.Home)x?g.findElement({container:h,currentElement:u,useActiveModalizer:!0,isBackward:!0,acceptCondition:T=>{var R;if(!g.isFocusable(T))return!1;const M=Math.ceil((R=T.getBoundingClientRect().left)!==null&&R!==void 0?R:0);return T!==u&&I<=M?!0:(S=T,!1)}}):S=g.findFirst({container:h,useActiveModalizer:!0});else if(l===_e.End)x?g.findElement({container:h,currentElement:u,useActiveModalizer:!0,acceptCondition:T=>{var R;if(!g.isFocusable(T))return!1;const M=Math.ceil((R=T.getBoundingClientRect().left)!==null&&R!==void 0?R:0);return T!==u&&I>=M?!0:(S=T,!1)}}):S=g.findLast({container:h,useActiveModalizer:!0});else if(l===_e.PageUp){if(g.findElement({currentElement:u,container:h,useActiveModalizer:!0,isBackward:!0,acceptCondition:T=>g.isFocusable(T)?Ub(this._win,T,f.visibilityTolerance)?(S=T,!1):!0:!1}),x&&S){const T=Math.ceil(S.getBoundingClientRect().left);g.findElement({currentElement:S,container:h,useActiveModalizer:!0,acceptCondition:R=>{if(!g.isFocusable(R))return!1;const M=Math.ceil(R.getBoundingClientRect().left);return I=M?!0:(S=R,!1)}})}C=!1}else if(l===_e.PageDown){if(g.findElement({currentElement:u,container:h,useActiveModalizer:!0,acceptCondition:T=>g.isFocusable(T)?Ub(this._win,T,f.visibilityTolerance)?(S=T,!1):!0:!1}),x&&S){const T=Math.ceil(S.getBoundingClientRect().left);g.findElement({currentElement:S,container:h,useActiveModalizer:!0,isBackward:!0,acceptCondition:R=>{if(!g.isFocusable(R))return!1;const M=Math.ceil(R.getBoundingClientRect().left);return I>M||T<=M?!0:(S=R,!1)}})}C=!0}else if(x){const T=l===_e.Up,R=I,M=Math.ceil(E.top),P=H,j=Math.floor(E.bottom);let W,B,D=0;g.findAll({container:h,currentElement:u,isBackward:T,onElement:U=>{const z=U.getBoundingClientRect(),L=Math.ceil(z.left),G=Math.ceil(z.top),Z=Math.floor(z.right),he=Math.floor(z.bottom);if(T&&MG)return!0;const Ee=Math.ceil(Math.min(P,Z))-Math.floor(Math.max(R,L)),ae=Math.ceil(Math.min(P-R,Z-L));if(Ee>0&&ae>=Ee){const we=Ee/ae;we>D&&(W=U,D=we)}else if(D===0){const we=b6(R,M,P,j,L,G,Z,he);(B===void 0||we0)return!1;return!0}}),S=W}S&&An({by:"mover",owner:h,next:S,relatedEvent:o})&&(C!==void 0&&VP(this._win,S,C),o.preventDefault(),o.stopImmediatePropagation(),Bo(S))},this._tabster=e,this._win=r,this._movers={},e.queueInit(this._init)}dispose(){var e;const r=this._win();this._tabster.focusedElement.unsubscribe(this._onFocus),(e=this._ignoredInputResolve)===null||e===void 0||e.call(this,!1),this._ignoredInputTimer&&(r.clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),r.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._movers).forEach(o=>{this._movers[o]&&(this._movers[o].dispose(),delete this._movers[o])})}createMover(e,r,o){const n=new v6(this._tabster,e,this._onMoverDispose,r,o);return this._movers[n.id]=n,n}async _isIgnoredInput(e,r){var o;if(e.getAttribute("aria-expanded")==="true"&&e.hasAttribute("aria-activedescendant"))return!0;if(Xx(e,p6)){let n=0,i=0,a=0,s;if(e.tagName==="INPUT"||e.tagName==="TEXTAREA"){const l=e.type;if(a=(e.value||"").length,l==="email"||l==="number"){if(a){const u=(o=e.ownerDocument.defaultView)===null||o===void 0?void 0:o.getSelection();if(u){const d=u.toString().length,f=r===_e.Left||r===_e.Up;if(u.modify("extend",f?"backward":"forward","character"),d!==u.toString().length)return u.modify("extend",f?"forward":"backward","character"),!0;a=0}}}else{const u=e.selectionStart;if(u===null)return l==="hidden";n=u||0,i=e.selectionEnd||0}}else e.contentEditable==="true"&&(s=new(YP(this._win))(l=>{this._ignoredInputResolve=g=>{delete this._ignoredInputResolve,l(g)};const c=this._win();this._ignoredInputTimer&&c.clearTimeout(this._ignoredInputTimer);const{anchorNode:u,focusNode:d,anchorOffset:f,focusOffset:h}=c.getSelection()||{};this._ignoredInputTimer=c.setTimeout(()=>{var g,p,w;delete this._ignoredInputTimer;const{anchorNode:v,focusNode:m,anchorOffset:b,focusOffset:k}=c.getSelection()||{};if(v!==u||m!==d||b!==f||k!==h){(g=this._ignoredInputResolve)===null||g===void 0||g.call(this,!1);return}if(n=b||0,i=k||0,a=((p=e.textContent)===null||p===void 0?void 0:p.length)||0,v&&m&&e.contains(v)&&e.contains(m)&&v!==e){let x=!1;const _=S=>{if(S===v)x=!0;else if(S===m)return!0;const C=S.textContent;if(C&&!S.firstChild){const I=C.length;x?m!==v&&(i+=I):(n+=I,i+=I)}let E=!1;for(let I=S.firstChild;I&&!E;I=I.nextSibling)E=_(I);return E};_(e)}(w=this._ignoredInputResolve)===null||w===void 0||w.call(this,!0)},0)}));if(s&&!await s||n!==i||n>0&&(r===_e.Left||r===_e.Up||r===_e.Home)||n"u")return()=>{};const n=e.getWindow;let i;const a=u=>{var d,f,h,g,p;for(const w of u){const v=w.target,m=w.removedNodes,b=w.addedNodes;if(w.type==="attributes")w.attributeName===Yo&&r(e,v);else{for(let k=0;kl(h,d));if(f)for(;f.nextNode(););}function l(u,d){var f;if(!u.getAttribute)return NodeFilter.FILTER_SKIP;const h=u.__tabsterElementUID;return h&&i&&(d?delete i[h]:(f=i[h])!==null&&f!==void 0||(i[h]=new wr(n,u))),(Jt(e,u)||u.hasAttribute(Yo))&&r(e,u,d),NodeFilter.FILTER_SKIP}const c=new MutationObserver(a);return o&&s(n().document.body),c.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[Yo]}),()=>{c.disconnect()}}/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */class k6{constructor(e){this._isUncontrolledCompletely=e}isUncontrolledCompletely(e,r){var o;const n=(o=this._isUncontrolledCompletely)===null||o===void 0?void 0:o.call(this,e,r);return n===void 0?r:n}}/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */const sd="restorer:restorefocus",S6=10;class _6 extends sc{constructor(e,r,o){var n;if(super(e,r,o),this._hasFocus=!1,this._onFocusOut=i=>{var a;const s=(a=this._element)===null||a===void 0?void 0:a.get();s&&i.relatedTarget===null&&s.dispatchEvent(new Event(sd,{bubbles:!0})),s&&!s.contains(i.relatedTarget)&&(this._hasFocus=!1)},this._onFocusIn=()=>{this._hasFocus=!0},this._props.type===kl.Source){const i=(n=this._element)===null||n===void 0?void 0:n.get();i?.addEventListener("focusout",this._onFocusOut),i?.addEventListener("focusin",this._onFocusIn)}}dispose(){var e,r;if(this._props.type===kl.Source){const o=(e=this._element)===null||e===void 0?void 0:e.get();o?.removeEventListener("focusout",this._onFocusOut),o?.removeEventListener("focusin",this._onFocusIn),this._hasFocus&&((r=this._tabster.getWindow().document.body)===null||r===void 0||r.dispatchEvent(new Event(sd,{bubbles:!0})))}}}class x6{constructor(e){this._history=[],this._restoreFocusTimeout=0,this._onRestoreFocus=r=>{const o=this._getWindow();this._restoreFocusTimeout&&o.clearTimeout(this._restoreFocusTimeout),this._restoreFocusTimeout=o.setTimeout(()=>this._restoreFocus(r.target))},this._onFocusIn=r=>{var o;if(!r)return;const n=Jt(this._tabster,r);((o=n?.restorer)===null||o===void 0?void 0:o.getProps().type)===kl.Target&&this._addToHistory(r)},this._restoreFocus=r=>{var o,n,i;const a=this._getWindow().document;if(a.activeElement!==a.body||!this._keyboardNavState.isNavigatingWithKeyboard()&&a.body.contains(r))return;let s=this._history.pop();for(;s&&!a.body.contains((n=(o=s.get())===null||o===void 0?void 0:o.parentElement)!==null&&n!==void 0?n:null);)s=this._history.pop();(i=s?.get())===null||i===void 0||i.focus()},this._tabster=e,this._getWindow=e.getWindow,this._getWindow().addEventListener(sd,this._onRestoreFocus),this._keyboardNavState=e.keyboardNavigation,this._focusedElementState=e.focusedElement,this._focusedElementState.subscribe(this._onFocusIn)}dispose(){const e=this._getWindow();this._focusedElementState.unsubscribe(this._onFocusIn),e.removeEventListener(sd,this._onRestoreFocus),this._restoreFocusTimeout&&e.clearTimeout(this._restoreFocusTimeout)}_addToHistory(e){var r;((r=this._history[this._history.length-1])===null||r===void 0?void 0:r.get())!==e&&(this._history.length>S6&&this._history.shift(),this._history.push(new wr(this._getWindow,e)))}createRestorer(e,r){const o=new _6(this._tabster,e,r);return r.type===kl.Target&&e.ownerDocument.activeElement===e&&this._addToHistory(e),o}}/*! - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. - */class C6{constructor(e){this.keyboardNavigation=e.keyboardNavigation,this.focusedElement=e.focusedElement,this.focusable=e.focusable,this.root=e.root,this.uncontrolled=e.uncontrolled,this.core=e}}class T6{constructor(e,r){var o,n;this._forgetMemorizedElements=[],this._wrappers=new Set,this._initQueue=[],this._version="5.2.1",this._noop=!1,this.getWindow=()=>{if(!this._win)throw new Error("Using disposed Tabster.");return this._win},this._storage=$P(e),this._win=e;const i=this.getWindow;this.keyboardNavigation=new u6(i),this.focusedElement=new ot(this,i),this.focusable=new i6(this),this.root=new Qe(this,r?.autoRoot),this.uncontrolled=new k6(r?.checkUncontrolledCompletely||r?.checkUncontrolledTrappingFocus),this.controlTab=(o=r?.controlTab)!==null&&o!==void 0?o:!0,this.rootDummyInputs=!!r?.rootDummyInputs,this._dummyObserver=new JP(i),this.getParent=(n=r?.getParent)!==null&&n!==void 0?n:a=>a.parentElement,this.internal={stopObserver:()=>{this._unobserve&&(this._unobserve(),delete this._unobserve)},resumeObserver:a=>{if(!this._unobserve){const s=i().document;this._unobserve=w6(s,this,Hx,a)}}},Kx(i),this.queueInit(()=>{this.internal.resumeObserver(!0)})}_mergeProps(e){var r;e&&(this.getParent=(r=e.getParent)!==null&&r!==void 0?r:this.getParent)}createTabster(e,r){const o=new C6(this);return e||this._wrappers.add(o),this._mergeProps(r),o}disposeTabster(e,r){r?this._wrappers.clear():this._wrappers.delete(e),this._wrappers.size===0&&this.dispose()}dispose(){var e,r,o,n,i,a,s,l;this.internal.stopObserver();const c=this._win;c?.clearTimeout(this._initTimer),delete this._initTimer,this._initQueue=[],this._forgetMemorizedElements=[],c&&this._forgetMemorizedTimer&&(c.clearTimeout(this._forgetMemorizedTimer),delete this._forgetMemorizedTimer),(e=this.outline)===null||e===void 0||e.dispose(),(r=this.crossOrigin)===null||r===void 0||r.dispose(),(o=this.deloser)===null||o===void 0||o.dispose(),(n=this.groupper)===null||n===void 0||n.dispose(),(i=this.mover)===null||i===void 0||i.dispose(),(a=this.modalizer)===null||a===void 0||a.dispose(),(s=this.observedElement)===null||s===void 0||s.dispose(),(l=this.restorer)===null||l===void 0||l.dispose(),this.keyboardNavigation.dispose(),this.focusable.dispose(),this.focusedElement.dispose(),this.root.dispose(),this._dummyObserver.dispose(),WP(this.getWindow),$b(this.getWindow),this._storage=new WeakMap,this._wrappers.clear(),c&&(UP(c),delete c.__tabsterInstance,delete this._win)}storageEntry(e,r){const o=this._storage;let n=o.get(e);return n?r===!1&&Object.keys(n).length===0&&o.delete(e):r===!0&&(n={},o.set(e,n)),n}forceCleanup(){this._win&&(this._forgetMemorizedElements.push(this._win.document.body),!this._forgetMemorizedTimer&&(this._forgetMemorizedTimer=this._win.setTimeout(()=>{delete this._forgetMemorizedTimer;for(let e=this._forgetMemorizedElements.shift();e;e=this._forgetMemorizedElements.shift())$b(this.getWindow,e),ot.forgetMemorized(this.focusedElement,e)},0),$x(this.getWindow,!0)))}queueInit(e){var r;this._win&&(this._initQueue.push(e),this._initTimer||(this._initTimer=(r=this._win)===null||r===void 0?void 0:r.setTimeout(()=>{delete this._initTimer,this.drainInitQueue()},0)))}drainInitQueue(){if(!this._win)return;const e=this._initQueue;this._initQueue=[],e.forEach(r=>r())}}function E6(t,e){let r=N6(t);return r?r.createTabster(!1,e):(r=new T6(t,e),t.__tabsterInstance=r,r.createTabster())}function B6(t){const e=t.core;return e.groupper||(e.groupper=new c6(e,e.getWindow)),e.groupper}function I6(t){const e=t.core;return e.mover||(e.mover=new y6(e,e.getWindow)),e.mover}function R6(t,e,r){const o=t.core;return o.modalizer||(o.modalizer=new g6(o,e,r)),o.modalizer}function jv(t){const e=t.core;return e.restorer||(e.restorer=new x6(e)),e.restorer}function A6(t,e){t.core.disposeTabster(t,e)}function N6(t){return t.__tabsterInstance}const Ki=()=>{const{targetDocument:t}=Pe(),e=t?.defaultView||void 0,r=y.useMemo(()=>e?E6(e,{autoRoot:{},controlTab:!1,getParent:Cx,checkUncontrolledTrappingFocus:o=>{var n;return!!(!((n=o.firstElementChild)===null||n===void 0)&&n.hasAttribute("data-is-focus-trap-zone-bumper"))}}):null,[e]);return Qt(()=>()=>{r&&A6(r)},[r]),r},Sl=t=>{Ki();const e=pf(t,!0);return y.useMemo(()=>({[Xt.TabsterAttributeName]:e}),[e])},Xa=(t={})=>{const{circular:e,axis:r,memorizeCurrent:o=!0,tabbable:n,ignoreDefaultKeydown:i,unstable_hasDefault:a}=t,s=Ki();return s&&I6(s),Sl({mover:{cyclic:!!e,direction:P6(r??"vertical"),memorizeCurrent:o,tabbable:n,hasDefault:a},...i&&{focusable:{ignoreKeydown:i}}})};function P6(t){switch(t){case"horizontal":return Xt.MoverDirections.Horizontal;case"grid":return Xt.MoverDirections.Grid;case"grid-linear":return Xt.MoverDirections.GridLinear;case"both":return Xt.MoverDirections.Both;case"vertical":default:return Xt.MoverDirections.Vertical}}const lc=t=>{const e=Ki();return e&&B6(e),Sl({groupper:{tabbability:z6(t?.tabBehavior)},focusable:{ignoreKeydown:t?.ignoreDefaultKeydown}})},z6=t=>{switch(t){case"unlimited":return Xt.GroupperTabbabilities.Unlimited;case"limited":return Xt.GroupperTabbabilities.Limited;case"limited-trap-focus":return Xt.GroupperTabbabilities.LimitedTrapFocus;default:return}},Ao=()=>{const t=Ki(),{targetDocument:e}=Pe(),r=y.useCallback((s,l)=>t?.focusable.findAll({container:s,acceptCondition:l})||[],[t]),o=y.useCallback(s=>t?.focusable.findFirst({container:s}),[t]),n=y.useCallback(s=>t?.focusable.findLast({container:s}),[t]),i=y.useCallback((s,l={})=>{if(!t||!e)return null;const{container:c=e.body}=l;return t.focusable.findNext({currentElement:s,container:c})},[t,e]),a=y.useCallback((s,l={})=>{if(!t||!e)return null;const{container:c=e.body}=l;return t.focusable.findPrev({currentElement:s,container:c})},[t,e]);return{findAllFocusable:r,findFirstFocusable:o,findLastFocusable:n,findNextFocusable:i,findPrevFocusable:a}},Gb="data-fui-focus-visible",Qx="data-fui-focus-within";function M6(t,e){if(Jx(t))return()=>{};const r={current:void 0},o=Nv(e);function n(l){o.isNavigatingWithKeyboard()&&Ve(l)&&(r.current=l,l.setAttribute(Gb,""))}function i(){r.current&&(r.current.removeAttribute(Gb),r.current=void 0)}o.subscribe(l=>{l||i()});const a=l=>{i();const c=l.composedPath()[0];n(c)},s=l=>{(!l.relatedTarget||Ve(l.relatedTarget)&&!t.contains(l.relatedTarget))&&i()};return t.addEventListener(so,a),t.addEventListener("focusout",s),t.focusVisible=!0,n(e.document.activeElement),()=>{i(),t.removeEventListener(so,a),t.removeEventListener("focusout",s),delete t.focusVisible,Pv(o)}}function Jx(t){return t?t.focusVisible?!0:Jx(t?.parentElement):!1}function Dv(t={}){const e=Pe(),r=y.useRef(null);var o;const n=(o=t.targetDocument)!==null&&o!==void 0?o:e.targetDocument;return y.useEffect(()=>{if(n?.defaultView&&r.current)return M6(r.current,n.defaultView)},[r,n]),r}function O6(t,e){const r=Nv(e);r.subscribe(i=>{i||Xb(t)});const o=i=>{r.isNavigatingWithKeyboard()&&Yb(i.target)&&j6(t)},n=i=>{(!i.relatedTarget||Yb(i.relatedTarget)&&!t.contains(i.relatedTarget))&&Xb(t)};return t.addEventListener(so,o),t.addEventListener("focusout",n),()=>{t.removeEventListener(so,o),t.removeEventListener("focusout",n),Pv(r)}}function j6(t){t.setAttribute(Qx,"")}function Xb(t){t.removeAttribute(Qx)}function Yb(t){return t?!!(t&&typeof t=="object"&&"classList"in t&&"contains"in t):!1}function fs(){const{targetDocument:t}=Pe(),e=y.useRef(null);return y.useEffect(()=>{if(t?.defaultView&&e.current)return O6(e.current,t.defaultView)},[e,t]),e}const mf=(t={})=>{const{trapFocus:e,alwaysFocusable:r,legacyTrapFocus:o}=t,n=Ki();n&&(R6(n),jv(n));const i=Rt("modal-",t.id),a=Sl({restorer:{type:Xt.RestorerTypes.Source},...e&&{modalizer:{id:i,isOthersAccessible:!e,isAlwaysAccessible:r,isTrapped:o&&e}}}),s=Sl({restorer:{type:Xt.RestorerTypes.Target}});return{modalAttributes:a,triggerAttributes:s}},D6=(...t)=>{const e=t.map(r=>r[Xt.TabsterAttributeName]).filter(Boolean);return y.useMemo(()=>{let r=e[0];t.shift();for(const o of e)r=F6(r,o);return{[Xt.TabsterAttributeName]:r}},e)};function F6(t,e){if(!e)return t;let r={},o={};if(t)try{r=JSON.parse(t)}catch{}if(e)try{o=JSON.parse(e)}catch{}return JSON.stringify({...r,...o})}function q6(){const t=Ki();return t&&jv(t),pf({restorer:{type:Xt.RestorerTypes.Target}})}function L6(){const t=Ki();return t&&jv(t),pf({restorer:{type:Xt.RestorerTypes.Source}})}const le={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",28:"#474747",30:"#4d4d4d",32:"#525252",34:"#575757",36:"#5c5c5c",38:"#616161",40:"#666666",42:"#6b6b6b",44:"#707070",46:"#757575",48:"#7a7a7a",50:"#808080",52:"#858585",54:"#8a8a8a",56:"#8f8f8f",58:"#949494",60:"#999999",62:"#9e9e9e",64:"#a3a3a3",66:"#a8a8a8",68:"#adadad",70:"#b3b3b3",72:"#b8b8b8",74:"#bdbdbd",76:"#c2c2c2",78:"#c7c7c7",80:"#cccccc",82:"#d1d1d1",84:"#d6d6d6",86:"#dbdbdb",88:"#e0e0e0",90:"#e6e6e6",92:"#ebebeb",94:"#f0f0f0",96:"#f5f5f5",98:"#fafafa"},mn={5:"rgba(255, 255, 255, 0.05)",10:"rgba(255, 255, 255, 0.1)",20:"rgba(255, 255, 255, 0.2)",30:"rgba(255, 255, 255, 0.3)",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)",90:"rgba(255, 255, 255, 0.9)"},vn={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)",60:"rgba(0, 0, 0, 0.6)",70:"rgba(0, 0, 0, 0.7)",80:"rgba(0, 0, 0, 0.8)",90:"rgba(0, 0, 0, 0.9)"},ft="#ffffff",H6="#000000",U6={shade50:"#130204",shade40:"#230308",shade30:"#420610",shade20:"#590815",shade10:"#690a19",primary:"#750b1c",tint10:"#861b2c",tint20:"#962f3f",tint30:"#ac4f5e",tint40:"#d69ca5",tint50:"#e9c7cd",tint60:"#f9f0f2"},eC={shade50:"#200205",shade40:"#3b0509",shade30:"#6e0811",shade20:"#960b18",shade10:"#b10e1c",primary:"#c50f1f",tint10:"#cc2635",tint20:"#d33f4c",tint30:"#dc626d",tint40:"#eeacb2",tint50:"#f6d1d5",tint60:"#fdf3f4"},$6={shade50:"#210809",shade40:"#3f1011",shade30:"#751d1f",shade20:"#9f282b",shade10:"#bc2f32",primary:"#d13438",tint10:"#d7494c",tint20:"#dc5e62",tint30:"#e37d80",tint40:"#f1bbbc",tint50:"#f8dadb",tint60:"#fdf6f6"},K6={shade50:"#230900",shade40:"#411200",shade30:"#7a2101",shade20:"#a62d01",shade10:"#c43501",primary:"#da3b01",tint10:"#de501c",tint20:"#e36537",tint30:"#e9835e",tint40:"#f4bfab",tint50:"#f9dcd1",tint60:"#fdf6f3"},W6={shade50:"#200d03",shade40:"#3d1805",shade30:"#712d09",shade20:"#9a3d0c",shade10:"#b6480e",primary:"#ca5010",tint10:"#d06228",tint20:"#d77440",tint30:"#df8e64",tint40:"#efc4ad",tint50:"#f7dfd2",tint60:"#fdf7f4"},V6={shade50:"#271002",shade40:"#4a1e04",shade30:"#8a3707",shade20:"#bc4b09",shade10:"#de590b",primary:"#f7630c",tint10:"#f87528",tint20:"#f98845",tint30:"#faa06b",tint40:"#fdcfb4",tint50:"#fee5d7",tint60:"#fff9f5"},G6={shade50:"#291600",shade40:"#4d2a00",shade30:"#8f4e00",shade20:"#c26a00",shade10:"#e67e00",primary:"#ff8c00",tint10:"#ff9a1f",tint20:"#ffa83d",tint30:"#ffba66",tint40:"#ffddb3",tint50:"#ffedd6",tint60:"#fffaf5"},X6={shade50:"#251a00",shade40:"#463100",shade30:"#835b00",shade20:"#b27c00",shade10:"#d39300",primary:"#eaa300",tint10:"#edad1c",tint20:"#efb839",tint30:"#f2c661",tint40:"#f9e2ae",tint50:"#fcefd3",tint60:"#fefbf4"},Y6={primary:"#fde300",shade10:"#e4cc00",shade20:"#c0ad00",shade30:"#817400",shade40:"#4c4400",shade50:"#282400",tint10:"#fde61e",tint20:"#fdea3d",tint30:"#feee66",tint40:"#fef7b2",tint50:"#fffad6",tint60:"#fffef5"},Z6={shade50:"#1f1900",shade40:"#3a2f00",shade30:"#6c5700",shade20:"#937700",shade10:"#ae8c00",primary:"#c19c00",tint10:"#c8a718",tint20:"#d0b232",tint30:"#dac157",tint40:"#ecdfa5",tint50:"#f5eece",tint60:"#fdfbf2"},Q6={shade50:"#181202",shade40:"#2e2103",shade30:"#553e06",shade20:"#745408",shade10:"#89640a",primary:"#986f0b",tint10:"#a47d1e",tint20:"#b18c34",tint30:"#c1a256",tint40:"#e0cea2",tint50:"#efe4cb",tint60:"#fbf8f2"},J6={shade50:"#170e07",shade40:"#2b1a0e",shade30:"#50301a",shade20:"#6c4123",shade10:"#804d29",primary:"#8e562e",tint10:"#9c663f",tint20:"#a97652",tint30:"#bb8f6f",tint40:"#ddc3b0",tint50:"#edded3",tint60:"#faf7f4"},ez={shade50:"#0c1501",shade40:"#162702",shade30:"#294903",shade20:"#376304",shade10:"#427505",primary:"#498205",tint10:"#599116",tint20:"#6ba02b",tint30:"#85b44c",tint40:"#bdd99b",tint50:"#dbebc7",tint60:"#f6faf0"},tz={shade50:"#002111",shade40:"#003d20",shade30:"#00723b",shade20:"#009b51",shade10:"#00b85f",primary:"#00cc6a",tint10:"#19d279",tint20:"#34d889",tint30:"#5ae0a0",tint40:"#a8f0cd",tint50:"#cff7e4",tint60:"#f3fdf8"},rz={shade50:"#031a02",shade40:"#063004",shade30:"#0b5a08",shade20:"#0e7a0b",shade10:"#11910d",primary:"#13a10e",tint10:"#27ac22",tint20:"#3db838",tint30:"#5ec75a",tint40:"#a7e3a5",tint50:"#cef0cd",tint60:"#f2fbf2"},tC={shade50:"#031403",shade40:"#052505",shade30:"#094509",shade20:"#0c5e0c",shade10:"#0e700e",primary:"#107c10",tint10:"#218c21",tint20:"#359b35",tint30:"#54b054",tint40:"#9fd89f",tint50:"#c9eac9",tint60:"#f1faf1"},oz={shade50:"#021102",shade40:"#032003",shade30:"#063b06",shade20:"#085108",shade10:"#0a5f0a",primary:"#0b6a0b",tint10:"#1a7c1a",tint20:"#2d8e2d",tint30:"#4da64d",tint40:"#9ad29a",tint50:"#c6e7c6",tint60:"#f0f9f0"},nz={shade50:"#001d1f",shade40:"#00373a",shade30:"#00666d",shade20:"#008b94",shade10:"#00a5af",primary:"#00b7c3",tint10:"#18bfca",tint20:"#32c8d1",tint30:"#58d3db",tint40:"#a6e9ed",tint50:"#cef3f5",tint60:"#f2fcfd"},iz={shade50:"#001516",shade40:"#012728",shade30:"#02494c",shade20:"#026467",shade10:"#037679",primary:"#038387",tint10:"#159195",tint20:"#2aa0a4",tint30:"#4cb4b7",tint40:"#9bd9db",tint50:"#c7ebec",tint60:"#f0fafa"},az={shade50:"#000f12",shade40:"#001b22",shade30:"#00333f",shade20:"#004555",shade10:"#005265",primary:"#005b70",tint10:"#0f6c81",tint20:"#237d92",tint30:"#4496a9",tint40:"#94c8d4",tint50:"#c3e1e8",tint60:"#eff7f9"},sz={shade50:"#001322",shade40:"#002440",shade30:"#004377",shade20:"#005ba1",shade10:"#006cbf",primary:"#0078d4",tint10:"#1a86d9",tint20:"#3595de",tint30:"#5caae5",tint40:"#a9d3f2",tint50:"#d0e7f8",tint60:"#f3f9fd"},lz={shade50:"#000c16",shade40:"#00172a",shade30:"#002c4e",shade20:"#003b6a",shade10:"#00467e",primary:"#004e8c",tint10:"#125e9a",tint20:"#286fa8",tint30:"#4a89ba",tint40:"#9abfdc",tint50:"#c7dced",tint60:"#f0f6fa"},cz={shade50:"#0d1126",shade40:"#182047",shade30:"#2c3c85",shade20:"#3c51b4",shade10:"#4760d5",primary:"#4f6bed",tint10:"#637cef",tint20:"#778df1",tint30:"#93a4f4",tint40:"#c8d1fa",tint50:"#e1e6fc",tint60:"#f7f9fe"},uz={shade50:"#00061d",shade40:"#000c36",shade30:"#001665",shade20:"#001e89",shade10:"#0023a2",primary:"#0027b4",tint10:"#173bbd",tint20:"#3050c6",tint30:"#546fd2",tint40:"#a3b2e8",tint50:"#ccd5f3",tint60:"#f2f4fc"},dz={shade50:"#120f25",shade40:"#221d46",shade30:"#3f3682",shade20:"#5649b0",shade10:"#6656d1",primary:"#7160e8",tint10:"#8172eb",tint20:"#9184ee",tint30:"#a79cf1",tint40:"#d2ccf8",tint50:"#e7e4fb",tint60:"#f9f8fe"},fz={shade50:"#0f0717",shade40:"#1c0e2b",shade30:"#341a51",shade20:"#46236e",shade10:"#532982",primary:"#5c2e91",tint10:"#6b3f9e",tint20:"#7c52ab",tint30:"#9470bd",tint40:"#c6b1de",tint50:"#e0d3ed",tint60:"#f7f4fb"},hz={shade50:"#160418",shade40:"#29072e",shade30:"#4c0d55",shade20:"#671174",shade10:"#7a1589",primary:"#881798",tint10:"#952aa4",tint20:"#a33fb1",tint30:"#b55fc1",tint40:"#d9a7e0",tint50:"#eaceef",tint60:"#faf2fb"},gz={shade50:"#1f091d",shade40:"#3a1136",shade30:"#6d2064",shade20:"#932b88",shade10:"#af33a1",primary:"#c239b3",tint10:"#c94cbc",tint20:"#d161c4",tint30:"#da7ed0",tint40:"#edbbe7",tint50:"#f5daf2",tint60:"#fdf5fc"},pz={shade50:"#1c0b1f",shade40:"#35153a",shade30:"#63276d",shade20:"#863593",shade10:"#9f3faf",primary:"#b146c2",tint10:"#ba58c9",tint20:"#c36bd1",tint30:"#cf87da",tint40:"#e6bfed",tint50:"#f2dcf5",tint60:"#fcf6fd"},mz={shade50:"#24091b",shade40:"#441232",shade30:"#80215d",shade20:"#ad2d7e",shade10:"#cd3595",primary:"#e43ba6",tint10:"#e750b0",tint20:"#ea66ba",tint30:"#ef85c8",tint40:"#f7c0e3",tint50:"#fbddf0",tint60:"#fef6fb"},vz={shade50:"#1f0013",shade40:"#390024",shade30:"#6b0043",shade20:"#91005a",shade10:"#ac006b",primary:"#bf0077",tint10:"#c71885",tint20:"#ce3293",tint30:"#d957a8",tint40:"#eca5d1",tint50:"#f5cee6",tint60:"#fcf2f9"},bz={shade50:"#13000c",shade40:"#240017",shade30:"#43002b",shade20:"#5a003b",shade10:"#6b0045",primary:"#77004d",tint10:"#87105d",tint20:"#98246f",tint30:"#ad4589",tint40:"#d696c0",tint50:"#e9c4dc",tint60:"#faf0f6"},yz={shade50:"#141313",shade40:"#252323",shade30:"#444241",shade20:"#5d5958",shade10:"#6e6968",primary:"#7a7574",tint10:"#8a8584",tint20:"#9a9594",tint30:"#afabaa",tint40:"#d7d4d4",tint50:"#eae8e8",tint60:"#faf9f9"},wz={shade50:"#0f0e0e",shade40:"#1c1b1a",shade30:"#343231",shade20:"#474443",shade10:"#54514f",primary:"#5d5a58",tint10:"#706d6b",tint20:"#84817e",tint30:"#9e9b99",tint40:"#cecccb",tint50:"#e5e4e3",tint60:"#f8f8f8"},kz={shade50:"#111314",shade40:"#1f2426",shade30:"#3b4447",shade20:"#505c60",shade10:"#5f6d71",primary:"#69797e",tint10:"#79898d",tint20:"#89989d",tint30:"#a0adb2",tint40:"#cdd6d8",tint50:"#e4e9ea",tint60:"#f8f9fa"},Sz={shade50:"#090a0b",shade40:"#111315",shade30:"#202427",shade20:"#2b3135",shade10:"#333a3f",primary:"#394146",tint10:"#4d565c",tint20:"#626c72",tint30:"#808a90",tint40:"#bcc3c7",tint50:"#dbdfe1",tint60:"#f6f7f8"},pr={red:$6,green:tC,darkOrange:K6,yellow:Y6,berry:gz,lightGreen:rz,marigold:X6},ph={darkRed:U6,cranberry:eC,pumpkin:W6,peach:G6,gold:Z6,brass:Q6,brown:J6,forest:ez,seafoam:tz,darkGreen:oz,lightTeal:nz,teal:iz,steel:az,blue:sz,royalBlue:lz,cornflower:cz,navy:uz,lavender:dz,purple:fz,grape:hz,lilac:pz,pink:mz,magenta:vz,plum:bz,beige:yz,mink:wz,platinum:kz,anchor:Sz},gr={cranberry:eC,green:tC,orange:V6},_z=["red","green","darkOrange","yellow","berry","lightGreen","marigold"],xz=["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"],vf={success:"green",warning:"orange",danger:"cranberry"},cc=_z.reduce((t,e)=>{const r=e.slice(0,1).toUpperCase()+e.slice(1),o={[`colorPalette${r}Background1`]:pr[e].tint60,[`colorPalette${r}Background2`]:pr[e].tint40,[`colorPalette${r}Background3`]:pr[e].primary,[`colorPalette${r}Foreground1`]:pr[e].shade10,[`colorPalette${r}Foreground2`]:pr[e].shade30,[`colorPalette${r}Foreground3`]:pr[e].primary,[`colorPalette${r}BorderActive`]:pr[e].primary,[`colorPalette${r}Border1`]:pr[e].tint40,[`colorPalette${r}Border2`]:pr[e].primary};return Object.assign(t,o)},{});cc.colorPaletteYellowForeground1=pr.yellow.shade30;cc.colorPaletteRedForegroundInverted=pr.red.tint20;cc.colorPaletteGreenForegroundInverted=pr.green.tint20;cc.colorPaletteYellowForegroundInverted=pr.yellow.tint40;const Cz=xz.reduce((t,e)=>{const r=e.slice(0,1).toUpperCase()+e.slice(1),o={[`colorPalette${r}Background2`]:ph[e].tint40,[`colorPalette${r}Foreground2`]:ph[e].shade30,[`colorPalette${r}BorderActive`]:ph[e].primary};return Object.assign(t,o)},{}),Tz={...cc,...Cz},bf=Object.entries(vf).reduce((t,[e,r])=>{const o=e.slice(0,1).toUpperCase()+e.slice(1),n={[`colorStatus${o}Background1`]:gr[r].tint60,[`colorStatus${o}Background2`]:gr[r].tint40,[`colorStatus${o}Background3`]:gr[r].primary,[`colorStatus${o}Foreground1`]:gr[r].shade10,[`colorStatus${o}Foreground2`]:gr[r].shade30,[`colorStatus${o}Foreground3`]:gr[r].primary,[`colorStatus${o}ForegroundInverted`]:gr[r].tint30,[`colorStatus${o}BorderActive`]:gr[r].primary,[`colorStatus${o}Border1`]:gr[r].tint40,[`colorStatus${o}Border2`]:gr[r].primary};return Object.assign(t,n)},{});bf.colorStatusWarningForeground1=gr[vf.warning].shade20;bf.colorStatusWarningForeground3=gr[vf.warning].shade20;bf.colorStatusWarningBorder2=gr[vf.warning].shade20;const Ez=t=>({colorNeutralForeground1:le[14],colorNeutralForeground1Hover:le[14],colorNeutralForeground1Pressed:le[14],colorNeutralForeground1Selected:le[14],colorNeutralForeground2:le[26],colorNeutralForeground2Hover:le[14],colorNeutralForeground2Pressed:le[14],colorNeutralForeground2Selected:le[14],colorNeutralForeground2BrandHover:t[80],colorNeutralForeground2BrandPressed:t[70],colorNeutralForeground2BrandSelected:t[80],colorNeutralForeground3:le[38],colorNeutralForeground3Hover:le[26],colorNeutralForeground3Pressed:le[26],colorNeutralForeground3Selected:le[26],colorNeutralForeground3BrandHover:t[80],colorNeutralForeground3BrandPressed:t[70],colorNeutralForeground3BrandSelected:t[80],colorNeutralForeground4:le[44],colorNeutralForegroundDisabled:le[74],colorNeutralForegroundInvertedDisabled:mn[40],colorBrandForegroundLink:t[70],colorBrandForegroundLinkHover:t[60],colorBrandForegroundLinkPressed:t[40],colorBrandForegroundLinkSelected:t[70],colorNeutralForeground2Link:le[26],colorNeutralForeground2LinkHover:le[14],colorNeutralForeground2LinkPressed:le[14],colorNeutralForeground2LinkSelected:le[14],colorCompoundBrandForeground1:t[80],colorCompoundBrandForeground1Hover:t[70],colorCompoundBrandForeground1Pressed:t[60],colorBrandForeground1:t[80],colorBrandForeground2:t[70],colorBrandForeground2Hover:t[60],colorBrandForeground2Pressed:t[30],colorNeutralForeground1Static:le[14],colorNeutralForegroundStaticInverted:ft,colorNeutralForegroundInverted:ft,colorNeutralForegroundInvertedHover:ft,colorNeutralForegroundInvertedPressed:ft,colorNeutralForegroundInvertedSelected:ft,colorNeutralForegroundInverted2:ft,colorNeutralForegroundOnBrand:ft,colorNeutralForegroundInvertedLink:ft,colorNeutralForegroundInvertedLinkHover:ft,colorNeutralForegroundInvertedLinkPressed:ft,colorNeutralForegroundInvertedLinkSelected:ft,colorBrandForegroundInverted:t[100],colorBrandForegroundInvertedHover:t[110],colorBrandForegroundInvertedPressed:t[100],colorBrandForegroundOnLight:t[80],colorBrandForegroundOnLightHover:t[70],colorBrandForegroundOnLightPressed:t[50],colorBrandForegroundOnLightSelected:t[60],colorNeutralBackground1:ft,colorNeutralBackground1Hover:le[96],colorNeutralBackground1Pressed:le[88],colorNeutralBackground1Selected:le[92],colorNeutralBackground2:le[98],colorNeutralBackground2Hover:le[94],colorNeutralBackground2Pressed:le[86],colorNeutralBackground2Selected:le[90],colorNeutralBackground3:le[96],colorNeutralBackground3Hover:le[92],colorNeutralBackground3Pressed:le[84],colorNeutralBackground3Selected:le[88],colorNeutralBackground4:le[94],colorNeutralBackground4Hover:le[98],colorNeutralBackground4Pressed:le[96],colorNeutralBackground4Selected:ft,colorNeutralBackground5:le[92],colorNeutralBackground5Hover:le[96],colorNeutralBackground5Pressed:le[94],colorNeutralBackground5Selected:le[98],colorNeutralBackground6:le[90],colorNeutralBackgroundInverted:le[16],colorNeutralBackgroundStatic:le[20],colorNeutralBackgroundAlpha:mn[50],colorNeutralBackgroundAlpha2:mn[80],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:le[96],colorSubtleBackgroundPressed:le[88],colorSubtleBackgroundSelected:le[92],colorSubtleBackgroundLightAlphaHover:mn[70],colorSubtleBackgroundLightAlphaPressed:mn[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:vn[10],colorSubtleBackgroundInvertedPressed:vn[30],colorSubtleBackgroundInvertedSelected:vn[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:le[94],colorNeutralBackgroundInvertedDisabled:mn[10],colorNeutralStencil1:le[90],colorNeutralStencil2:le[98],colorNeutralStencil1Alpha:vn[10],colorNeutralStencil2Alpha:vn[5],colorBackgroundOverlay:vn[40],colorScrollbarOverlay:vn[50],colorBrandBackground:t[80],colorBrandBackgroundHover:t[70],colorBrandBackgroundPressed:t[40],colorBrandBackgroundSelected:t[60],colorCompoundBrandBackground:t[80],colorCompoundBrandBackgroundHover:t[70],colorCompoundBrandBackgroundPressed:t[60],colorBrandBackgroundStatic:t[80],colorBrandBackground2:t[160],colorBrandBackground2Hover:t[150],colorBrandBackground2Pressed:t[130],colorBrandBackgroundInverted:ft,colorBrandBackgroundInvertedHover:t[160],colorBrandBackgroundInvertedPressed:t[140],colorBrandBackgroundInvertedSelected:t[150],colorNeutralStrokeAccessible:le[38],colorNeutralStrokeAccessibleHover:le[34],colorNeutralStrokeAccessiblePressed:le[30],colorNeutralStrokeAccessibleSelected:t[80],colorNeutralStroke1:le[82],colorNeutralStroke1Hover:le[78],colorNeutralStroke1Pressed:le[70],colorNeutralStroke1Selected:le[74],colorNeutralStroke2:le[88],colorNeutralStroke3:le[94],colorNeutralStrokeSubtle:le[88],colorNeutralStrokeOnBrand:ft,colorNeutralStrokeOnBrand2:ft,colorNeutralStrokeOnBrand2Hover:ft,colorNeutralStrokeOnBrand2Pressed:ft,colorNeutralStrokeOnBrand2Selected:ft,colorBrandStroke1:t[80],colorBrandStroke2:t[140],colorBrandStroke2Hover:t[120],colorBrandStroke2Pressed:t[80],colorBrandStroke2Contrast:t[140],colorCompoundBrandStroke:t[80],colorCompoundBrandStrokeHover:t[70],colorCompoundBrandStrokePressed:t[60],colorNeutralStrokeDisabled:le[88],colorNeutralStrokeInvertedDisabled:mn[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:vn[5],colorNeutralStrokeAlpha2:mn[20],colorStrokeFocus1:ft,colorStrokeFocus2:H6,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)"}),Bz={borderRadiusNone:"0",borderRadiusSmall:"2px",borderRadiusMedium:"4px",borderRadiusLarge:"6px",borderRadiusXLarge:"8px",borderRadiusCircular:"10000px"},Iz={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)"},Rz={durationUltraFast:"50ms",durationFaster:"100ms",durationFast:"150ms",durationNormal:"200ms",durationGentle:"250ms",durationSlow:"300ms",durationSlower:"400ms",durationUltraSlow:"500ms"},Az={fontSizeBase100:"10px",fontSizeBase200:"12px",fontSizeBase300:"14px",fontSizeBase400:"16px",fontSizeBase500:"20px",fontSizeBase600:"24px",fontSizeHero700:"28px",fontSizeHero800:"32px",fontSizeHero900:"40px",fontSizeHero1000:"68px"},Nz={lineHeightBase100:"14px",lineHeightBase200:"16px",lineHeightBase300:"20px",lineHeightBase400:"22px",lineHeightBase500:"28px",lineHeightBase600:"32px",lineHeightHero700:"36px",lineHeightHero800:"40px",lineHeightHero900:"52px",lineHeightHero1000:"92px"},Pz={fontWeightRegular:400,fontWeightMedium:500,fontWeightSemibold:600,fontWeightBold:700},zz={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"},nt={none:"0",xxs:"2px",xs:"4px",sNudge:"6px",s:"8px",mNudge:"10px",m:"12px",l:"16px",xl:"20px",xxl:"24px",xxxl:"32px"},Mz={spacingHorizontalNone:nt.none,spacingHorizontalXXS:nt.xxs,spacingHorizontalXS:nt.xs,spacingHorizontalSNudge:nt.sNudge,spacingHorizontalS:nt.s,spacingHorizontalMNudge:nt.mNudge,spacingHorizontalM:nt.m,spacingHorizontalL:nt.l,spacingHorizontalXL:nt.xl,spacingHorizontalXXL:nt.xxl,spacingHorizontalXXXL:nt.xxxl},Oz={spacingVerticalNone:nt.none,spacingVerticalXXS:nt.xxs,spacingVerticalXS:nt.xs,spacingVerticalSNudge:nt.sNudge,spacingVerticalS:nt.s,spacingVerticalMNudge:nt.mNudge,spacingVerticalM:nt.m,spacingVerticalL:nt.l,spacingVerticalXL:nt.xl,spacingVerticalXXL:nt.xxl,spacingVerticalXXXL:nt.xxxl},jz={strokeWidthThin:"1px",strokeWidthThick:"2px",strokeWidthThicker:"3px",strokeWidthThickest:"4px"},KJ={colorNeutralForeground1:"var(--colorNeutralForeground1)",colorNeutralForeground1Hover:"var(--colorNeutralForeground1Hover)",colorNeutralForeground1Pressed:"var(--colorNeutralForeground1Pressed)",colorNeutralForeground1Selected:"var(--colorNeutralForeground1Selected)",colorNeutralForeground2:"var(--colorNeutralForeground2)",colorNeutralForeground2Hover:"var(--colorNeutralForeground2Hover)",colorNeutralForeground2Pressed:"var(--colorNeutralForeground2Pressed)",colorNeutralForeground2Selected:"var(--colorNeutralForeground2Selected)",colorNeutralForeground2BrandHover:"var(--colorNeutralForeground2BrandHover)",colorNeutralForeground2BrandPressed:"var(--colorNeutralForeground2BrandPressed)",colorNeutralForeground2BrandSelected:"var(--colorNeutralForeground2BrandSelected)",colorNeutralForeground3:"var(--colorNeutralForeground3)",colorNeutralForeground3Hover:"var(--colorNeutralForeground3Hover)",colorNeutralForeground3Pressed:"var(--colorNeutralForeground3Pressed)",colorNeutralForeground3Selected:"var(--colorNeutralForeground3Selected)",colorNeutralForeground3BrandHover:"var(--colorNeutralForeground3BrandHover)",colorNeutralForeground3BrandPressed:"var(--colorNeutralForeground3BrandPressed)",colorNeutralForeground3BrandSelected:"var(--colorNeutralForeground3BrandSelected)",colorNeutralForeground4:"var(--colorNeutralForeground4)",colorNeutralForegroundDisabled:"var(--colorNeutralForegroundDisabled)",colorBrandForegroundLink:"var(--colorBrandForegroundLink)",colorBrandForegroundLinkHover:"var(--colorBrandForegroundLinkHover)",colorBrandForegroundLinkPressed:"var(--colorBrandForegroundLinkPressed)",colorBrandForegroundLinkSelected:"var(--colorBrandForegroundLinkSelected)",colorNeutralForeground2Link:"var(--colorNeutralForeground2Link)",colorNeutralForeground2LinkHover:"var(--colorNeutralForeground2LinkHover)",colorNeutralForeground2LinkPressed:"var(--colorNeutralForeground2LinkPressed)",colorNeutralForeground2LinkSelected:"var(--colorNeutralForeground2LinkSelected)",colorCompoundBrandForeground1:"var(--colorCompoundBrandForeground1)",colorCompoundBrandForeground1Hover:"var(--colorCompoundBrandForeground1Hover)",colorCompoundBrandForeground1Pressed:"var(--colorCompoundBrandForeground1Pressed)",colorNeutralForegroundOnBrand:"var(--colorNeutralForegroundOnBrand)",colorNeutralForegroundInverted:"var(--colorNeutralForegroundInverted)",colorNeutralForegroundInvertedHover:"var(--colorNeutralForegroundInvertedHover)",colorNeutralForegroundInvertedPressed:"var(--colorNeutralForegroundInvertedPressed)",colorNeutralForegroundInvertedSelected:"var(--colorNeutralForegroundInvertedSelected)",colorNeutralForegroundInverted2:"var(--colorNeutralForegroundInverted2)",colorNeutralForegroundStaticInverted:"var(--colorNeutralForegroundStaticInverted)",colorNeutralForegroundInvertedLink:"var(--colorNeutralForegroundInvertedLink)",colorNeutralForegroundInvertedLinkHover:"var(--colorNeutralForegroundInvertedLinkHover)",colorNeutralForegroundInvertedLinkPressed:"var(--colorNeutralForegroundInvertedLinkPressed)",colorNeutralForegroundInvertedLinkSelected:"var(--colorNeutralForegroundInvertedLinkSelected)",colorNeutralForegroundInvertedDisabled:"var(--colorNeutralForegroundInvertedDisabled)",colorBrandForeground1:"var(--colorBrandForeground1)",colorBrandForeground2:"var(--colorBrandForeground2)",colorBrandForeground2Hover:"var(--colorBrandForeground2Hover)",colorBrandForeground2Pressed:"var(--colorBrandForeground2Pressed)",colorNeutralForeground1Static:"var(--colorNeutralForeground1Static)",colorBrandForegroundInverted:"var(--colorBrandForegroundInverted)",colorBrandForegroundInvertedHover:"var(--colorBrandForegroundInvertedHover)",colorBrandForegroundInvertedPressed:"var(--colorBrandForegroundInvertedPressed)",colorBrandForegroundOnLight:"var(--colorBrandForegroundOnLight)",colorBrandForegroundOnLightHover:"var(--colorBrandForegroundOnLightHover)",colorBrandForegroundOnLightPressed:"var(--colorBrandForegroundOnLightPressed)",colorBrandForegroundOnLightSelected:"var(--colorBrandForegroundOnLightSelected)",colorNeutralBackground1:"var(--colorNeutralBackground1)",colorNeutralBackground1Hover:"var(--colorNeutralBackground1Hover)",colorNeutralBackground1Pressed:"var(--colorNeutralBackground1Pressed)",colorNeutralBackground1Selected:"var(--colorNeutralBackground1Selected)",colorNeutralBackground2:"var(--colorNeutralBackground2)",colorNeutralBackground2Hover:"var(--colorNeutralBackground2Hover)",colorNeutralBackground2Pressed:"var(--colorNeutralBackground2Pressed)",colorNeutralBackground2Selected:"var(--colorNeutralBackground2Selected)",colorNeutralBackground3:"var(--colorNeutralBackground3)",colorNeutralBackground3Hover:"var(--colorNeutralBackground3Hover)",colorNeutralBackground3Pressed:"var(--colorNeutralBackground3Pressed)",colorNeutralBackground3Selected:"var(--colorNeutralBackground3Selected)",colorNeutralBackground4:"var(--colorNeutralBackground4)",colorNeutralBackground4Hover:"var(--colorNeutralBackground4Hover)",colorNeutralBackground4Pressed:"var(--colorNeutralBackground4Pressed)",colorNeutralBackground4Selected:"var(--colorNeutralBackground4Selected)",colorNeutralBackground5:"var(--colorNeutralBackground5)",colorNeutralBackground5Hover:"var(--colorNeutralBackground5Hover)",colorNeutralBackground5Pressed:"var(--colorNeutralBackground5Pressed)",colorNeutralBackground5Selected:"var(--colorNeutralBackground5Selected)",colorNeutralBackground6:"var(--colorNeutralBackground6)",colorNeutralBackgroundInverted:"var(--colorNeutralBackgroundInverted)",colorNeutralBackgroundStatic:"var(--colorNeutralBackgroundStatic)",colorNeutralBackgroundAlpha:"var(--colorNeutralBackgroundAlpha)",colorNeutralBackgroundAlpha2:"var(--colorNeutralBackgroundAlpha2)",colorSubtleBackground:"var(--colorSubtleBackground)",colorSubtleBackgroundHover:"var(--colorSubtleBackgroundHover)",colorSubtleBackgroundPressed:"var(--colorSubtleBackgroundPressed)",colorSubtleBackgroundSelected:"var(--colorSubtleBackgroundSelected)",colorSubtleBackgroundLightAlphaHover:"var(--colorSubtleBackgroundLightAlphaHover)",colorSubtleBackgroundLightAlphaPressed:"var(--colorSubtleBackgroundLightAlphaPressed)",colorSubtleBackgroundLightAlphaSelected:"var(--colorSubtleBackgroundLightAlphaSelected)",colorSubtleBackgroundInverted:"var(--colorSubtleBackgroundInverted)",colorSubtleBackgroundInvertedHover:"var(--colorSubtleBackgroundInvertedHover)",colorSubtleBackgroundInvertedPressed:"var(--colorSubtleBackgroundInvertedPressed)",colorSubtleBackgroundInvertedSelected:"var(--colorSubtleBackgroundInvertedSelected)",colorTransparentBackground:"var(--colorTransparentBackground)",colorTransparentBackgroundHover:"var(--colorTransparentBackgroundHover)",colorTransparentBackgroundPressed:"var(--colorTransparentBackgroundPressed)",colorTransparentBackgroundSelected:"var(--colorTransparentBackgroundSelected)",colorNeutralBackgroundDisabled:"var(--colorNeutralBackgroundDisabled)",colorNeutralBackgroundInvertedDisabled:"var(--colorNeutralBackgroundInvertedDisabled)",colorNeutralStencil1:"var(--colorNeutralStencil1)",colorNeutralStencil2:"var(--colorNeutralStencil2)",colorNeutralStencil1Alpha:"var(--colorNeutralStencil1Alpha)",colorNeutralStencil2Alpha:"var(--colorNeutralStencil2Alpha)",colorBackgroundOverlay:"var(--colorBackgroundOverlay)",colorScrollbarOverlay:"var(--colorScrollbarOverlay)",colorBrandBackground:"var(--colorBrandBackground)",colorBrandBackgroundHover:"var(--colorBrandBackgroundHover)",colorBrandBackgroundPressed:"var(--colorBrandBackgroundPressed)",colorBrandBackgroundSelected:"var(--colorBrandBackgroundSelected)",colorCompoundBrandBackground:"var(--colorCompoundBrandBackground)",colorCompoundBrandBackgroundHover:"var(--colorCompoundBrandBackgroundHover)",colorCompoundBrandBackgroundPressed:"var(--colorCompoundBrandBackgroundPressed)",colorBrandBackgroundStatic:"var(--colorBrandBackgroundStatic)",colorBrandBackground2:"var(--colorBrandBackground2)",colorBrandBackground2Hover:"var(--colorBrandBackground2Hover)",colorBrandBackground2Pressed:"var(--colorBrandBackground2Pressed)",colorBrandBackgroundInverted:"var(--colorBrandBackgroundInverted)",colorBrandBackgroundInvertedHover:"var(--colorBrandBackgroundInvertedHover)",colorBrandBackgroundInvertedPressed:"var(--colorBrandBackgroundInvertedPressed)",colorBrandBackgroundInvertedSelected:"var(--colorBrandBackgroundInvertedSelected)",colorNeutralStrokeAccessible:"var(--colorNeutralStrokeAccessible)",colorNeutralStrokeAccessibleHover:"var(--colorNeutralStrokeAccessibleHover)",colorNeutralStrokeAccessiblePressed:"var(--colorNeutralStrokeAccessiblePressed)",colorNeutralStrokeAccessibleSelected:"var(--colorNeutralStrokeAccessibleSelected)",colorNeutralStroke1:"var(--colorNeutralStroke1)",colorNeutralStroke1Hover:"var(--colorNeutralStroke1Hover)",colorNeutralStroke1Pressed:"var(--colorNeutralStroke1Pressed)",colorNeutralStroke1Selected:"var(--colorNeutralStroke1Selected)",colorNeutralStroke2:"var(--colorNeutralStroke2)",colorNeutralStroke3:"var(--colorNeutralStroke3)",colorNeutralStrokeSubtle:"var(--colorNeutralStrokeSubtle)",colorNeutralStrokeOnBrand:"var(--colorNeutralStrokeOnBrand)",colorNeutralStrokeOnBrand2:"var(--colorNeutralStrokeOnBrand2)",colorNeutralStrokeOnBrand2Hover:"var(--colorNeutralStrokeOnBrand2Hover)",colorNeutralStrokeOnBrand2Pressed:"var(--colorNeutralStrokeOnBrand2Pressed)",colorNeutralStrokeOnBrand2Selected:"var(--colorNeutralStrokeOnBrand2Selected)",colorBrandStroke1:"var(--colorBrandStroke1)",colorBrandStroke2:"var(--colorBrandStroke2)",colorBrandStroke2Hover:"var(--colorBrandStroke2Hover)",colorBrandStroke2Pressed:"var(--colorBrandStroke2Pressed)",colorBrandStroke2Contrast:"var(--colorBrandStroke2Contrast)",colorCompoundBrandStroke:"var(--colorCompoundBrandStroke)",colorCompoundBrandStrokeHover:"var(--colorCompoundBrandStrokeHover)",colorCompoundBrandStrokePressed:"var(--colorCompoundBrandStrokePressed)",colorNeutralStrokeDisabled:"var(--colorNeutralStrokeDisabled)",colorNeutralStrokeInvertedDisabled:"var(--colorNeutralStrokeInvertedDisabled)",colorTransparentStroke:"var(--colorTransparentStroke)",colorTransparentStrokeInteractive:"var(--colorTransparentStrokeInteractive)",colorTransparentStrokeDisabled:"var(--colorTransparentStrokeDisabled)",colorNeutralStrokeAlpha:"var(--colorNeutralStrokeAlpha)",colorNeutralStrokeAlpha2:"var(--colorNeutralStrokeAlpha2)",colorStrokeFocus1:"var(--colorStrokeFocus1)",colorStrokeFocus2:"var(--colorStrokeFocus2)",colorNeutralShadowAmbient:"var(--colorNeutralShadowAmbient)",colorNeutralShadowKey:"var(--colorNeutralShadowKey)",colorNeutralShadowAmbientLighter:"var(--colorNeutralShadowAmbientLighter)",colorNeutralShadowKeyLighter:"var(--colorNeutralShadowKeyLighter)",colorNeutralShadowAmbientDarker:"var(--colorNeutralShadowAmbientDarker)",colorNeutralShadowKeyDarker:"var(--colorNeutralShadowKeyDarker)",colorBrandShadowAmbient:"var(--colorBrandShadowAmbient)",colorBrandShadowKey:"var(--colorBrandShadowKey)",colorPaletteRedBackground1:"var(--colorPaletteRedBackground1)",colorPaletteRedBackground2:"var(--colorPaletteRedBackground2)",colorPaletteRedBackground3:"var(--colorPaletteRedBackground3)",colorPaletteRedBorderActive:"var(--colorPaletteRedBorderActive)",colorPaletteRedBorder1:"var(--colorPaletteRedBorder1)",colorPaletteRedBorder2:"var(--colorPaletteRedBorder2)",colorPaletteRedForeground1:"var(--colorPaletteRedForeground1)",colorPaletteRedForeground2:"var(--colorPaletteRedForeground2)",colorPaletteRedForeground3:"var(--colorPaletteRedForeground3)",colorPaletteRedForegroundInverted:"var(--colorPaletteRedForegroundInverted)",colorPaletteGreenBackground1:"var(--colorPaletteGreenBackground1)",colorPaletteGreenBackground2:"var(--colorPaletteGreenBackground2)",colorPaletteGreenBackground3:"var(--colorPaletteGreenBackground3)",colorPaletteGreenBorderActive:"var(--colorPaletteGreenBorderActive)",colorPaletteGreenBorder1:"var(--colorPaletteGreenBorder1)",colorPaletteGreenBorder2:"var(--colorPaletteGreenBorder2)",colorPaletteGreenForeground1:"var(--colorPaletteGreenForeground1)",colorPaletteGreenForeground2:"var(--colorPaletteGreenForeground2)",colorPaletteGreenForeground3:"var(--colorPaletteGreenForeground3)",colorPaletteGreenForegroundInverted:"var(--colorPaletteGreenForegroundInverted)",colorPaletteDarkOrangeBackground1:"var(--colorPaletteDarkOrangeBackground1)",colorPaletteDarkOrangeBackground2:"var(--colorPaletteDarkOrangeBackground2)",colorPaletteDarkOrangeBackground3:"var(--colorPaletteDarkOrangeBackground3)",colorPaletteDarkOrangeBorderActive:"var(--colorPaletteDarkOrangeBorderActive)",colorPaletteDarkOrangeBorder1:"var(--colorPaletteDarkOrangeBorder1)",colorPaletteDarkOrangeBorder2:"var(--colorPaletteDarkOrangeBorder2)",colorPaletteDarkOrangeForeground1:"var(--colorPaletteDarkOrangeForeground1)",colorPaletteDarkOrangeForeground2:"var(--colorPaletteDarkOrangeForeground2)",colorPaletteDarkOrangeForeground3:"var(--colorPaletteDarkOrangeForeground3)",colorPaletteYellowBackground1:"var(--colorPaletteYellowBackground1)",colorPaletteYellowBackground2:"var(--colorPaletteYellowBackground2)",colorPaletteYellowBackground3:"var(--colorPaletteYellowBackground3)",colorPaletteYellowBorderActive:"var(--colorPaletteYellowBorderActive)",colorPaletteYellowBorder1:"var(--colorPaletteYellowBorder1)",colorPaletteYellowBorder2:"var(--colorPaletteYellowBorder2)",colorPaletteYellowForeground1:"var(--colorPaletteYellowForeground1)",colorPaletteYellowForeground2:"var(--colorPaletteYellowForeground2)",colorPaletteYellowForeground3:"var(--colorPaletteYellowForeground3)",colorPaletteYellowForegroundInverted:"var(--colorPaletteYellowForegroundInverted)",colorPaletteBerryBackground1:"var(--colorPaletteBerryBackground1)",colorPaletteBerryBackground2:"var(--colorPaletteBerryBackground2)",colorPaletteBerryBackground3:"var(--colorPaletteBerryBackground3)",colorPaletteBerryBorderActive:"var(--colorPaletteBerryBorderActive)",colorPaletteBerryBorder1:"var(--colorPaletteBerryBorder1)",colorPaletteBerryBorder2:"var(--colorPaletteBerryBorder2)",colorPaletteBerryForeground1:"var(--colorPaletteBerryForeground1)",colorPaletteBerryForeground2:"var(--colorPaletteBerryForeground2)",colorPaletteBerryForeground3:"var(--colorPaletteBerryForeground3)",colorPaletteMarigoldBackground1:"var(--colorPaletteMarigoldBackground1)",colorPaletteMarigoldBackground2:"var(--colorPaletteMarigoldBackground2)",colorPaletteMarigoldBackground3:"var(--colorPaletteMarigoldBackground3)",colorPaletteMarigoldBorderActive:"var(--colorPaletteMarigoldBorderActive)",colorPaletteMarigoldBorder1:"var(--colorPaletteMarigoldBorder1)",colorPaletteMarigoldBorder2:"var(--colorPaletteMarigoldBorder2)",colorPaletteMarigoldForeground1:"var(--colorPaletteMarigoldForeground1)",colorPaletteMarigoldForeground2:"var(--colorPaletteMarigoldForeground2)",colorPaletteMarigoldForeground3:"var(--colorPaletteMarigoldForeground3)",colorPaletteLightGreenBackground1:"var(--colorPaletteLightGreenBackground1)",colorPaletteLightGreenBackground2:"var(--colorPaletteLightGreenBackground2)",colorPaletteLightGreenBackground3:"var(--colorPaletteLightGreenBackground3)",colorPaletteLightGreenBorderActive:"var(--colorPaletteLightGreenBorderActive)",colorPaletteLightGreenBorder1:"var(--colorPaletteLightGreenBorder1)",colorPaletteLightGreenBorder2:"var(--colorPaletteLightGreenBorder2)",colorPaletteLightGreenForeground1:"var(--colorPaletteLightGreenForeground1)",colorPaletteLightGreenForeground2:"var(--colorPaletteLightGreenForeground2)",colorPaletteLightGreenForeground3:"var(--colorPaletteLightGreenForeground3)",colorPaletteAnchorBackground2:"var(--colorPaletteAnchorBackground2)",colorPaletteAnchorBorderActive:"var(--colorPaletteAnchorBorderActive)",colorPaletteAnchorForeground2:"var(--colorPaletteAnchorForeground2)",colorPaletteBeigeBackground2:"var(--colorPaletteBeigeBackground2)",colorPaletteBeigeBorderActive:"var(--colorPaletteBeigeBorderActive)",colorPaletteBeigeForeground2:"var(--colorPaletteBeigeForeground2)",colorPaletteBlueBackground2:"var(--colorPaletteBlueBackground2)",colorPaletteBlueBorderActive:"var(--colorPaletteBlueBorderActive)",colorPaletteBlueForeground2:"var(--colorPaletteBlueForeground2)",colorPaletteBrassBackground2:"var(--colorPaletteBrassBackground2)",colorPaletteBrassBorderActive:"var(--colorPaletteBrassBorderActive)",colorPaletteBrassForeground2:"var(--colorPaletteBrassForeground2)",colorPaletteBrownBackground2:"var(--colorPaletteBrownBackground2)",colorPaletteBrownBorderActive:"var(--colorPaletteBrownBorderActive)",colorPaletteBrownForeground2:"var(--colorPaletteBrownForeground2)",colorPaletteCornflowerBackground2:"var(--colorPaletteCornflowerBackground2)",colorPaletteCornflowerBorderActive:"var(--colorPaletteCornflowerBorderActive)",colorPaletteCornflowerForeground2:"var(--colorPaletteCornflowerForeground2)",colorPaletteCranberryBackground2:"var(--colorPaletteCranberryBackground2)",colorPaletteCranberryBorderActive:"var(--colorPaletteCranberryBorderActive)",colorPaletteCranberryForeground2:"var(--colorPaletteCranberryForeground2)",colorPaletteDarkGreenBackground2:"var(--colorPaletteDarkGreenBackground2)",colorPaletteDarkGreenBorderActive:"var(--colorPaletteDarkGreenBorderActive)",colorPaletteDarkGreenForeground2:"var(--colorPaletteDarkGreenForeground2)",colorPaletteDarkRedBackground2:"var(--colorPaletteDarkRedBackground2)",colorPaletteDarkRedBorderActive:"var(--colorPaletteDarkRedBorderActive)",colorPaletteDarkRedForeground2:"var(--colorPaletteDarkRedForeground2)",colorPaletteForestBackground2:"var(--colorPaletteForestBackground2)",colorPaletteForestBorderActive:"var(--colorPaletteForestBorderActive)",colorPaletteForestForeground2:"var(--colorPaletteForestForeground2)",colorPaletteGoldBackground2:"var(--colorPaletteGoldBackground2)",colorPaletteGoldBorderActive:"var(--colorPaletteGoldBorderActive)",colorPaletteGoldForeground2:"var(--colorPaletteGoldForeground2)",colorPaletteGrapeBackground2:"var(--colorPaletteGrapeBackground2)",colorPaletteGrapeBorderActive:"var(--colorPaletteGrapeBorderActive)",colorPaletteGrapeForeground2:"var(--colorPaletteGrapeForeground2)",colorPaletteLavenderBackground2:"var(--colorPaletteLavenderBackground2)",colorPaletteLavenderBorderActive:"var(--colorPaletteLavenderBorderActive)",colorPaletteLavenderForeground2:"var(--colorPaletteLavenderForeground2)",colorPaletteLightTealBackground2:"var(--colorPaletteLightTealBackground2)",colorPaletteLightTealBorderActive:"var(--colorPaletteLightTealBorderActive)",colorPaletteLightTealForeground2:"var(--colorPaletteLightTealForeground2)",colorPaletteLilacBackground2:"var(--colorPaletteLilacBackground2)",colorPaletteLilacBorderActive:"var(--colorPaletteLilacBorderActive)",colorPaletteLilacForeground2:"var(--colorPaletteLilacForeground2)",colorPaletteMagentaBackground2:"var(--colorPaletteMagentaBackground2)",colorPaletteMagentaBorderActive:"var(--colorPaletteMagentaBorderActive)",colorPaletteMagentaForeground2:"var(--colorPaletteMagentaForeground2)",colorPaletteMinkBackground2:"var(--colorPaletteMinkBackground2)",colorPaletteMinkBorderActive:"var(--colorPaletteMinkBorderActive)",colorPaletteMinkForeground2:"var(--colorPaletteMinkForeground2)",colorPaletteNavyBackground2:"var(--colorPaletteNavyBackground2)",colorPaletteNavyBorderActive:"var(--colorPaletteNavyBorderActive)",colorPaletteNavyForeground2:"var(--colorPaletteNavyForeground2)",colorPalettePeachBackground2:"var(--colorPalettePeachBackground2)",colorPalettePeachBorderActive:"var(--colorPalettePeachBorderActive)",colorPalettePeachForeground2:"var(--colorPalettePeachForeground2)",colorPalettePinkBackground2:"var(--colorPalettePinkBackground2)",colorPalettePinkBorderActive:"var(--colorPalettePinkBorderActive)",colorPalettePinkForeground2:"var(--colorPalettePinkForeground2)",colorPalettePlatinumBackground2:"var(--colorPalettePlatinumBackground2)",colorPalettePlatinumBorderActive:"var(--colorPalettePlatinumBorderActive)",colorPalettePlatinumForeground2:"var(--colorPalettePlatinumForeground2)",colorPalettePlumBackground2:"var(--colorPalettePlumBackground2)",colorPalettePlumBorderActive:"var(--colorPalettePlumBorderActive)",colorPalettePlumForeground2:"var(--colorPalettePlumForeground2)",colorPalettePumpkinBackground2:"var(--colorPalettePumpkinBackground2)",colorPalettePumpkinBorderActive:"var(--colorPalettePumpkinBorderActive)",colorPalettePumpkinForeground2:"var(--colorPalettePumpkinForeground2)",colorPalettePurpleBackground2:"var(--colorPalettePurpleBackground2)",colorPalettePurpleBorderActive:"var(--colorPalettePurpleBorderActive)",colorPalettePurpleForeground2:"var(--colorPalettePurpleForeground2)",colorPaletteRoyalBlueBackground2:"var(--colorPaletteRoyalBlueBackground2)",colorPaletteRoyalBlueBorderActive:"var(--colorPaletteRoyalBlueBorderActive)",colorPaletteRoyalBlueForeground2:"var(--colorPaletteRoyalBlueForeground2)",colorPaletteSeafoamBackground2:"var(--colorPaletteSeafoamBackground2)",colorPaletteSeafoamBorderActive:"var(--colorPaletteSeafoamBorderActive)",colorPaletteSeafoamForeground2:"var(--colorPaletteSeafoamForeground2)",colorPaletteSteelBackground2:"var(--colorPaletteSteelBackground2)",colorPaletteSteelBorderActive:"var(--colorPaletteSteelBorderActive)",colorPaletteSteelForeground2:"var(--colorPaletteSteelForeground2)",colorPaletteTealBackground2:"var(--colorPaletteTealBackground2)",colorPaletteTealBorderActive:"var(--colorPaletteTealBorderActive)",colorPaletteTealForeground2:"var(--colorPaletteTealForeground2)",colorStatusSuccessBackground1:"var(--colorStatusSuccessBackground1)",colorStatusSuccessBackground2:"var(--colorStatusSuccessBackground2)",colorStatusSuccessBackground3:"var(--colorStatusSuccessBackground3)",colorStatusSuccessForeground1:"var(--colorStatusSuccessForeground1)",colorStatusSuccessForeground2:"var(--colorStatusSuccessForeground2)",colorStatusSuccessForeground3:"var(--colorStatusSuccessForeground3)",colorStatusSuccessForegroundInverted:"var(--colorStatusSuccessForegroundInverted)",colorStatusSuccessBorderActive:"var(--colorStatusSuccessBorderActive)",colorStatusSuccessBorder1:"var(--colorStatusSuccessBorder1)",colorStatusSuccessBorder2:"var(--colorStatusSuccessBorder2)",colorStatusWarningBackground1:"var(--colorStatusWarningBackground1)",colorStatusWarningBackground2:"var(--colorStatusWarningBackground2)",colorStatusWarningBackground3:"var(--colorStatusWarningBackground3)",colorStatusWarningForeground1:"var(--colorStatusWarningForeground1)",colorStatusWarningForeground2:"var(--colorStatusWarningForeground2)",colorStatusWarningForeground3:"var(--colorStatusWarningForeground3)",colorStatusWarningForegroundInverted:"var(--colorStatusWarningForegroundInverted)",colorStatusWarningBorderActive:"var(--colorStatusWarningBorderActive)",colorStatusWarningBorder1:"var(--colorStatusWarningBorder1)",colorStatusWarningBorder2:"var(--colorStatusWarningBorder2)",colorStatusDangerBackground1:"var(--colorStatusDangerBackground1)",colorStatusDangerBackground2:"var(--colorStatusDangerBackground2)",colorStatusDangerBackground3:"var(--colorStatusDangerBackground3)",colorStatusDangerForeground1:"var(--colorStatusDangerForeground1)",colorStatusDangerForeground2:"var(--colorStatusDangerForeground2)",colorStatusDangerForeground3:"var(--colorStatusDangerForeground3)",colorStatusDangerForegroundInverted:"var(--colorStatusDangerForegroundInverted)",colorStatusDangerBorderActive:"var(--colorStatusDangerBorderActive)",colorStatusDangerBorder1:"var(--colorStatusDangerBorder1)",colorStatusDangerBorder2:"var(--colorStatusDangerBorder2)",borderRadiusNone:"var(--borderRadiusNone)",borderRadiusSmall:"var(--borderRadiusSmall)",borderRadiusMedium:"var(--borderRadiusMedium)",borderRadiusLarge:"var(--borderRadiusLarge)",borderRadiusXLarge:"var(--borderRadiusXLarge)",borderRadiusCircular:"var(--borderRadiusCircular)",fontFamilyBase:"var(--fontFamilyBase)",fontFamilyMonospace:"var(--fontFamilyMonospace)",fontFamilyNumeric:"var(--fontFamilyNumeric)",fontSizeBase100:"var(--fontSizeBase100)",fontSizeBase200:"var(--fontSizeBase200)",fontSizeBase300:"var(--fontSizeBase300)",fontSizeBase400:"var(--fontSizeBase400)",fontSizeBase500:"var(--fontSizeBase500)",fontSizeBase600:"var(--fontSizeBase600)",fontSizeHero700:"var(--fontSizeHero700)",fontSizeHero800:"var(--fontSizeHero800)",fontSizeHero900:"var(--fontSizeHero900)",fontSizeHero1000:"var(--fontSizeHero1000)",fontWeightRegular:"var(--fontWeightRegular)",fontWeightMedium:"var(--fontWeightMedium)",fontWeightSemibold:"var(--fontWeightSemibold)",fontWeightBold:"var(--fontWeightBold)",lineHeightBase100:"var(--lineHeightBase100)",lineHeightBase200:"var(--lineHeightBase200)",lineHeightBase300:"var(--lineHeightBase300)",lineHeightBase400:"var(--lineHeightBase400)",lineHeightBase500:"var(--lineHeightBase500)",lineHeightBase600:"var(--lineHeightBase600)",lineHeightHero700:"var(--lineHeightHero700)",lineHeightHero800:"var(--lineHeightHero800)",lineHeightHero900:"var(--lineHeightHero900)",lineHeightHero1000:"var(--lineHeightHero1000)",shadow2:"var(--shadow2)",shadow4:"var(--shadow4)",shadow8:"var(--shadow8)",shadow16:"var(--shadow16)",shadow28:"var(--shadow28)",shadow64:"var(--shadow64)",shadow2Brand:"var(--shadow2Brand)",shadow4Brand:"var(--shadow4Brand)",shadow8Brand:"var(--shadow8Brand)",shadow16Brand:"var(--shadow16Brand)",shadow28Brand:"var(--shadow28Brand)",shadow64Brand:"var(--shadow64Brand)",strokeWidthThin:"var(--strokeWidthThin)",strokeWidthThick:"var(--strokeWidthThick)",strokeWidthThicker:"var(--strokeWidthThicker)",strokeWidthThickest:"var(--strokeWidthThickest)",spacingHorizontalNone:"var(--spacingHorizontalNone)",spacingHorizontalXXS:"var(--spacingHorizontalXXS)",spacingHorizontalXS:"var(--spacingHorizontalXS)",spacingHorizontalSNudge:"var(--spacingHorizontalSNudge)",spacingHorizontalS:"var(--spacingHorizontalS)",spacingHorizontalMNudge:"var(--spacingHorizontalMNudge)",spacingHorizontalM:"var(--spacingHorizontalM)",spacingHorizontalL:"var(--spacingHorizontalL)",spacingHorizontalXL:"var(--spacingHorizontalXL)",spacingHorizontalXXL:"var(--spacingHorizontalXXL)",spacingHorizontalXXXL:"var(--spacingHorizontalXXXL)",spacingVerticalNone:"var(--spacingVerticalNone)",spacingVerticalXXS:"var(--spacingVerticalXXS)",spacingVerticalXS:"var(--spacingVerticalXS)",spacingVerticalSNudge:"var(--spacingVerticalSNudge)",spacingVerticalS:"var(--spacingVerticalS)",spacingVerticalMNudge:"var(--spacingVerticalMNudge)",spacingVerticalM:"var(--spacingVerticalM)",spacingVerticalL:"var(--spacingVerticalL)",spacingVerticalXL:"var(--spacingVerticalXL)",spacingVerticalXXL:"var(--spacingVerticalXXL)",spacingVerticalXXXL:"var(--spacingVerticalXXXL)",durationUltraFast:"var(--durationUltraFast)",durationFaster:"var(--durationFaster)",durationFast:"var(--durationFast)",durationNormal:"var(--durationNormal)",durationGentle:"var(--durationGentle)",durationSlow:"var(--durationSlow)",durationSlower:"var(--durationSlower)",durationUltraSlow:"var(--durationUltraSlow)",curveAccelerateMax:"var(--curveAccelerateMax)",curveAccelerateMid:"var(--curveAccelerateMid)",curveAccelerateMin:"var(--curveAccelerateMin)",curveDecelerateMax:"var(--curveDecelerateMax)",curveDecelerateMid:"var(--curveDecelerateMid)",curveDecelerateMin:"var(--curveDecelerateMin)",curveEasyEaseMax:"var(--curveEasyEaseMax)",curveEasyEase:"var(--curveEasyEase)",curveLinear:"var(--curveLinear)"};function Zb(t,e,r=""){return{[`shadow2${r}`]:`0 0 2px ${t}, 0 1px 2px ${e}`,[`shadow4${r}`]:`0 0 2px ${t}, 0 2px 4px ${e}`,[`shadow8${r}`]:`0 0 2px ${t}, 0 4px 8px ${e}`,[`shadow16${r}`]:`0 0 2px ${t}, 0 8px 16px ${e}`,[`shadow28${r}`]:`0 0 8px ${t}, 0 14px 28px ${e}`,[`shadow64${r}`]:`0 0 8px ${t}, 0 32px 64px ${e}`}}const Dz=t=>{const e=Ez(t);return{...Bz,...Az,...Nz,...zz,...Pz,...jz,...Mz,...Oz,...Rz,...Iz,...e,...Tz,...bf,...Zb(e.colorNeutralShadowAmbient,e.colorNeutralShadowKey),...Zb(e.colorBrandShadowAmbient,e.colorBrandShadowKey,"Brand")}},Fz={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"},WJ=Dz(Fz),rC={root:"fui-FluentProvider"},qz=ex({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);}"]}),Lz=t=>{const e=ic(),r=qz({dir:t.dir,renderer:e});return t.root.className=A(rC.root,t.themeClassName,r.root,t.root.className),t},Hz=y.useInsertionEffect?y.useInsertionEffect:Qt,Uz=(t,e)=>{if(!t)return;const r=t.createElement("style");return Object.keys(e).forEach(o=>{r.setAttribute(o,e[o])}),t.head.appendChild(r),r},$z=(t,e)=>{const r=t.sheet;r&&(r.cssRules.length>0&&r.deleteRule(0),r.insertRule(e,0))},Kz=t=>{const{targetDocument:e,theme:r,rendererAttributes:o}=t,n=y.useRef(),i=Rt(rC.root),a=o,s=y.useMemo(()=>w4(`.${i}`,r),[r,i]);return Wz(e,i),Hz(()=>{const l=e?.getElementById(i);return l?n.current=l:(n.current=Uz(e,{...a,id:i}),n.current&&$z(n.current,s)),()=>{var c;(c=n.current)===null||c===void 0||c.remove()}},[i,e,s,a]),{styleTagId:i,rule:s}};function Wz(t,e){y.useState(()=>{if(!t)return;const r=t.getElementById(e);r&&t.head.append(r)})}const Vz={},Gz=(t,e)=>{const r=Pe(),o=Xz(),n=ff(),i=y.useContext(Iv)||Vz,{applyStylesToPortals:a=!0,customStyleHooks_unstable:s,dir:l=r.dir,targetDocument:c=r.targetDocument,theme:u,overrides_unstable:d={}}=t,f=mh(o,u),h=mh(n,d),g=mh(i,s),p=ic();var w;const{styleTagId:v,rule:m}=Kz({theme:f,targetDocument:c,rendererAttributes:(w=p.styleElementAttributes)!==null&&w!==void 0?w:{}});return{applyStylesToPortals:a,customStyleHooks_unstable:g,dir:l,targetDocument:c,theme:f,overrides_unstable:h,themeClassName:v,components:{root:"div"},root:te(ve("div",{...t,dir:l,ref:Re(e,Dv({targetDocument:c}))}),{elementType:"div"}),serverStyleProps:{cssRule:m,attributes:{...p.styleElementAttributes,id:v}}}};function mh(t,e){return t&&e?{...t,...e}:t||e}function Xz(){return y.useContext(dx)}function Yz(t){const{applyStylesToPortals:e,customStyleHooks_unstable:r,dir:o,root:n,targetDocument:i,theme:a,themeClassName:s,overrides_unstable:l}=t,c=y.useMemo(()=>({dir:o,targetDocument:i}),[o,i]),[u]=y.useState(()=>({})),d=y.useMemo(()=>({textDirection:o}),[o]);return{customStyleHooks_unstable:r,overrides_unstable:l,provider:c,textDirection:o,iconDirection:d,tooltip:u,theme:a,themeClassName:e?n.className:s}}const Zz=y.forwardRef((t,e)=>{const r=Gz(t,e);Lz(r);const o=Yz(r);return EP(r,o)});Zz.displayName="FluentProvider";var oC={exports:{}},nC={};/** @license React v0.20.2 - * scheduler.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */(function(t){var e,r,o,n;if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();t.unstable_now=function(){return a.now()-s}}if(typeof window>"u"||typeof MessageChannel!="function"){var l=null,c=null,u=function(){if(l!==null)try{var z=t.unstable_now();l(!0,z),l=null}catch(L){throw setTimeout(u,0),L}};e=function(z){l!==null?setTimeout(e,0,z):(l=z,setTimeout(u,0))},r=function(z,L){c=setTimeout(z,L)},o=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},n=t.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,f=window.clearTimeout;if(typeof console<"u"){var h=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof h!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var g=!1,p=null,w=-1,v=5,m=0;t.unstable_shouldYield=function(){return t.unstable_now()>=m},n=function(){},t.unstable_forceFrameRate=function(z){0>z||125>>1,he=z[Z];if(he!==void 0&&0C(ae,G))tt!==void 0&&0>C(tt,ae)?(z[Z]=tt,z[we]=G,Z=we):(z[Z]=ae,z[Ee]=G,Z=Ee);else if(tt!==void 0&&0>C(tt,G))z[Z]=tt,z[we]=G,Z=we;else break e}}return L}return null}function C(z,L){var G=z.sortIndex-L.sortIndex;return G!==0?G:z.id-L.id}var E=[],I=[],H=1,T=null,R=3,M=!1,P=!1,j=!1;function W(z){for(var L=_(I);L!==null;){if(L.callback===null)S(I);else if(L.startTime<=z)S(I),L.sortIndex=L.expirationTime,x(E,L);else break;L=_(I)}}function B(z){if(j=!1,W(z),!P)if(_(E)!==null)P=!0,e(D);else{var L=_(I);L!==null&&r(B,L.startTime-z)}}function D(z,L){P=!1,j&&(j=!1,o()),M=!0;var G=R;try{for(W(L),T=_(E);T!==null&&(!(T.expirationTime>L)||z&&!t.unstable_shouldYield());){var Z=T.callback;if(typeof Z=="function"){T.callback=null,R=T.priorityLevel;var he=Z(T.expirationTime<=L);L=t.unstable_now(),typeof he=="function"?T.callback=he:T===_(E)&&S(E),W(L)}else S(E);T=_(E)}if(T!==null)var Ee=!0;else{var ae=_(I);ae!==null&&r(B,ae.startTime-L),Ee=!1}return Ee}finally{T=null,R=G,M=!1}}var U=n;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(z){z.callback=null},t.unstable_continueExecution=function(){P||M||(P=!0,e(D))},t.unstable_getCurrentPriorityLevel=function(){return R},t.unstable_getFirstCallbackNode=function(){return _(E)},t.unstable_next=function(z){switch(R){case 1:case 2:case 3:var L=3;break;default:L=R}var G=R;R=L;try{return z()}finally{R=G}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=U,t.unstable_runWithPriority=function(z,L){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var G=R;R=z;try{return L()}finally{R=G}},t.unstable_scheduleCallback=function(z,L,G){var Z=t.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0Z?(z.sortIndex=G,x(I,z),_(E)===null&&z===_(I)&&(j?o():j=!0,r(B,G-Z))):(z.sortIndex=he,x(E,z),P||M||(P=!0,e(D))),z},t.unstable_wrapCallback=function(z){var L=R;return function(){var G=R;R=L;try{return z.apply(this,arguments)}finally{R=G}}}})(nC);oC.exports=nC;var Qb=oC.exports;const Qz=t=>r=>{const o=y.useRef(r.value),n=y.useRef(0),i=y.useRef();return i.current||(i.current={value:o,version:n,listeners:[]}),Qt(()=>{o.current=r.value,n.current+=1,Qb.unstable_runWithPriority(Qb.unstable_NormalPriority,()=>{i.current.listeners.forEach(a=>{a([n.current,r.value])})})},[r.value]),y.createElement(t,{value:i.current},r.children)},fn=t=>{const e=y.createContext({value:{current:t},version:{current:-1},listeners:[]});return e.Provider=Qz(e.Provider),delete e.Consumer,e},lt=(t,e)=>{const r=y.useContext(t),{value:{current:o},version:{current:n},listeners:i}=r,a=e(o),[s,l]=y.useReducer((c,u)=>{if(!u)return[o,a];if(u[0]<=n)return Nc(c[1],a)?c:[o,a];try{if(Nc(c[0],u[1]))return c;const d=e(u[1]);return Nc(c[1],d)?c:[u[1],d]}catch{}return[c[0],c[1]]},[o,a]);return Nc(s[1],a)||l(void 0),Qt(()=>(i.push(l),()=>{const c=i.indexOf(l);i.splice(c,1)}),[i]),s[1]};function Jz(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}const Nc=typeof Object.is=="function"?Object.is:Jz;function uc(t){const e=y.useContext(t);return e.version?e.version.current!==-1:!1}const e8=27,t8="Shift",Co="Enter",Mr=" ",Fv="Tab",Ya="ArrowDown",yf="ArrowLeft",dc="ArrowRight",Ea="ArrowUp",qv="End",Lv="Home",iC="PageDown",aC="PageUp",r8="Delete",No="Escape";function Ni(t,e){const{disabled:r,disabledFocusable:o=!1,["aria-disabled"]:n,onClick:i,onKeyDown:a,onKeyUp:s,...l}=e??{},c=typeof n=="string"?n==="true":n,u=r||o||c,d=Q(g=>{u?(g.preventDefault(),g.stopPropagation()):i?.(g)}),f=Q(g=>{if(a?.(g),g.isDefaultPrevented())return;const p=g.key;if(u&&(p===Co||p===Mr)){g.preventDefault(),g.stopPropagation();return}if(p===Mr){g.preventDefault();return}else p===Co&&(g.preventDefault(),g.currentTarget.click())}),h=Q(g=>{if(s?.(g),g.isDefaultPrevented())return;const p=g.key;if(u&&(p===Co||p===Mr)){g.preventDefault(),g.stopPropagation();return}p===Mr&&(g.preventDefault(),g.currentTarget.click())});if(t==="button"||t===void 0)return{...l,disabled:r&&!o,"aria-disabled":o?!0:c,onClick:o?void 0:d,onKeyUp:o?void 0:s,onKeyDown:o?void 0:a};{const g={role:"button",tabIndex:r&&!o?void 0:0,...l,onClick:d,onKeyUp:h,onKeyDown:f,"aria-disabled":r||o||c};return t==="a"&&u&&(g.href=void 0),g}}const o8=t=>ke(t.root,{children:[t.initials&&O(t.initials,{}),t.icon&&O(t.icon,{}),t.image&&O(t.image,{}),t.badge&&O(t.badge,{}),t.activeAriaLabelElement]}),n8=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,i8=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,a8=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,s8=/\s+/g,l8=/[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uAC00-\uD7AF\uD7B0-\uD7FF\u3040-\u309F\u30A0-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[\uD840-\uD869][\uDC00-\uDED6]/;function c8(t,e,r){let o="";const n=t.split(" ");return n.length!==0&&(o+=n[0].charAt(0).toUpperCase()),r||(n.length===2?o+=n[1].charAt(0).toUpperCase():n.length===3&&(o+=n[2].charAt(0).toUpperCase())),e&&o.length>1?o.charAt(1)+o.charAt(0):o}function u8(t){return t=t.replace(n8,""),t=t.replace(i8,""),t=t.replace(s8," "),t=t.trim(),t}function d8(t,e,r){return!t||(t=u8(t),l8.test(t)||!r?.allowPhoneInitials&&a8.test(t))?"":c8(t,e,r?.firstInitialOnly)}const f8=(t,e)=>{const{shape:r="circular",size:o="medium",iconPosition:n="before",appearance:i="filled",color:a="brand"}=t;return{shape:r,size:o,iconPosition:n,appearance:i,color:a,components:{root:"div",icon:"span"},root:te(ve("div",{ref:e,...t}),{elementType:"div"}),icon:me(t.icon,{elementType:"span"})}},h8=t=>ke(t.root,{children:[t.iconPosition==="before"&&t.icon&&O(t.icon,{}),t.root.children,t.iconPosition==="after"&&t.icon&&O(t.icon,{})]}),g8={tiny:Tb,"extra-small":Tb,small:iP,medium:aP,large:Eb,"extra-large":Eb},p8={tiny:_b,"extra-small":_b,small:rP,medium:nP,large:Cb,"extra-large":Cb},m8={tiny:Sb,"extra-small":Sb,small:tP,medium:oP,large:xb,"extra-large":xb},v8={tiny:Bb,"extra-small":Bb,small:sP,medium:lP,large:Ib,"extra-large":Ib},b8={tiny:Rb,"extra-small":Rb,small:cP,medium:uP,large:Ab,"extra-large":Ab},y8={tiny:Nb,"extra-small":Nb,small:dP,medium:hP,large:zb,"extra-large":zb},w8={tiny:Pb,"extra-small":Pb,small:fP,medium:gP,large:Mb,"extra-large":Mb},vh={tiny:Db,"extra-small":Db,small:vP,medium:bP,large:Fb,"extra-large":Fb},k8={tiny:Ob,"extra-small":Ob,small:pP,medium:mP,large:jb,"extra-large":jb},Jb={tiny:qb,"extra-small":qb,small:yP,medium:wP,large:Lb,"extra-large":Lb},S8=(t,e,r)=>{switch(t){case"available":return e?p8[r]:m8[r];case"away":return e?vh[r]:g8[r];case"blocked":return v8[r];case"busy":return e?Jb[r]:b8[r];case"do-not-disturb":return e?w8[r]:y8[r];case"offline":return e?vh[r]:k8[r];case"out-of-office":return vh[r];case"unknown":return Jb[r]}},ey={busy:"busy","out-of-office":"out of office",away:"away",available:"available",offline:"offline","do-not-disturb":"do not disturb",unknown:"unknown",blocked:"blocked"},_8=(t,e)=>{const{size:r="medium",status:o="available",outOfOffice:n=!1}=t,i=ey[o],a=t.outOfOffice&&t.status!=="out-of-office"?` ${ey["out-of-office"]}`:"",s=S8(o,n,r);return{...f8({"aria-label":i+a,role:"img",...t,size:r,icon:me(t.icon,{defaultProps:{children:s?y.createElement(s,null):null},renderByDefault:!0,elementType:"span"})},e),status:o,outOfOffice:n}},ty={root:"fui-PresenceBadge",icon:"fui-PresenceBadge__icon"},x8=t=>t==="busy"||t==="do-not-disturb"||t==="blocked",C8=fe("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;}"]),T8=fe("r11ag4qr",null,[".r11ag4qr{display:flex;margin:-1px;}"]),E8=q({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;}"]}),B8=t=>{const e=C8(),r=T8(),o=E8(),n=x8(t.status);return t.root.className=A(ty.root,e,n&&o.statusBusy,t.status==="away"&&o.statusAway,t.status==="available"&&o.statusAvailable,t.status==="offline"&&o.statusOffline,t.status==="out-of-office"&&o.statusOutOfOffice,t.status==="unknown"&&o.statusUnknown,t.outOfOffice&&o.outOfOffice,t.outOfOffice&&t.status==="available"&&o.outOfOfficeAvailable,t.outOfOffice&&n&&o.outOfOfficeBusy,t.outOfOffice&&(t.status==="out-of-office"||t.status==="away"||t.status==="offline")&&o.statusOutOfOffice,t.outOfOffice&&t.status==="unknown"&&o.outOfOfficeUnknown,t.size==="tiny"&&o.tiny,t.size==="large"&&o.large,t.size==="extra-large"&&o.extraLarge,t.root.className),t.icon&&(t.icon.className=A(ty.icon,r,t.icon.className)),t},$g=y.forwardRef((t,e)=>{const r=_8(t,e);return B8(r),ue("usePresenceBadgeStyles_unstable")(r),h8(r)});$g.displayName="PresenceBadge";const sC=y.createContext(void 0),I8={};sC.Provider;const R8=()=>{var t;return(t=y.useContext(sC))!==null&&t!==void 0?t:I8},A8={active:"active",inactive:"inactive"},N8=(t,e)=>{const{dir:r}=Pe(),{shape:o,size:n}=R8(),{name:i,size:a=n??32,shape:s=o??"circular",active:l="unset",activeAppearance:c="ring",idForColor:u}=t;let{color:d="neutral"}=t;if(d==="colorful"){var f;d=ry[z8((f=u??i)!==null&&f!==void 0?f:"")%ry.length]}const h=Rt("avatar-"),g=te(ve("span",{role:"img",id:h,...t,ref:e},["name"]),{elementType:"span"}),[p,w]=y.useState(void 0);let v=me(t.image,{defaultProps:{alt:"",role:"presentation","aria-hidden":!0,hidden:p},elementType:"img"});v?.src||(v=void 0),v&&(v.onError=de(v.onError,()=>w(!0)),v.onLoad=de(v.onLoad,()=>w(void 0)));let m=me(t.initials,{renderByDefault:!0,defaultProps:{children:d8(i,r==="rtl",{firstInitialOnly:a<=16}),id:h+"__initials"},elementType:"span"});m?.children||(m=void 0);let b;!m&&(!v||p)&&(b=me(t.icon,{renderByDefault:!0,defaultProps:{children:y.createElement(VN,null),"aria-hidden":!0},elementType:"span"}));const k=me(t.badge,{defaultProps:{size:P8(a),id:h+"__badge"},elementType:$g});let x;if(!g["aria-label"]&&!g["aria-labelledby"]&&(i?(g["aria-label"]=i,k&&(g["aria-labelledby"]=g.id+" "+k.id)):m&&(g["aria-labelledby"]=m.id+(k?" "+k.id:"")),l==="active"||l==="inactive")){const _=A8[l];if(g["aria-labelledby"]){const S=h+"__active";g["aria-labelledby"]+=" "+S,x=y.createElement("span",{hidden:!0,id:S},_)}else g["aria-label"]&&(g["aria-label"]+=" "+_)}return{size:a,shape:s,active:l,activeAppearance:c,activeAriaLabelElement:x,color:d,components:{root:"span",initials:"span",icon:"span",image:"img",badge:$g},root:g,initials:m,icon:b,image:v,badge:k}},P8=t=>t>=96?"extra-large":t>=64?"large":t>=56?"medium":t>=40?"small":t>=28?"extra-small":"tiny",ry=["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"],z8=t=>{let e=0;for(let r=t.length-1;r>=0;r--){const o=t.charCodeAt(r),n=r%8;e^=(o<>8-n)}return e},ws={root:"fui-Avatar",image:"fui-Avatar__image",initials:"fui-Avatar__initials",icon:"fui-Avatar__icon",badge:"fui-Avatar__badge"},M8=fe("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;}}"]}),O8=fe("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;}"]),j8=fe("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;-ms-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;-ms-user-select:none;user-select:none;border-radius:inherit;}"]),D8=q({textCaption2Strong:{Be2twd7:"f13mqy1h"},textCaption1Strong:{Be2twd7:"fy9rknc"},textSubtitle2:{Be2twd7:"fod5ikn"},textSubtitle1:{Be2twd7:"f1pp30po"},textTitle3:{Be2twd7:"f1x0m3f5"},squareSmall:{Bbmb7ep:["f1g3puop","fi2rrw2"],Beyfa6y:["fi2rrw2","f1g3puop"],B7oj6ja:["f1rstyi9","f1s4nn1u"],Btl43ni:["f1s4nn1u","f1rstyi9"]},squareMedium:{Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"]},squareLarge:{Bbmb7ep:["f1ldthgs","frrelxk"],Beyfa6y:["frrelxk","f1ldthgs"],B7oj6ja:["fobrfso","ffisxpw"],Btl43ni:["ffisxpw","fobrfso"]},squareXLarge:{Bbmb7ep:["fnivh3a","fc7yr5o"],Beyfa6y:["fc7yr5o","fnivh3a"],B7oj6ja:["f1el4m67","f8yange"],Btl43ni:["f8yange","f1el4m67"]},activeOrInactive:{Bz10aip:"ftfx35i",Bmy1vo4:"fv0atk9",B3o57yi:"f1iry5bo",Bkqvd7p:"f15n41j8",Hwfdqs:"f1onx1g3"},ring:{Ftih45:"f1wl9k8s"},ringBadgeCutout:{f4a502:"fp2gujx"},ringThick:{of393c:"fq1w1vq"},ringThicker:{of393c:"fzg6ace"},ringThickest:{of393c:"f1nu8p71"},shadow:{Bsft5z2:"f13zj6fq"},shadow4:{Be6vj1x:"fcjn15l"},shadow8:{Be6vj1x:"f1tm8t9f"},shadow16:{Be6vj1x:"f1a1aohj"},shadow28:{Be6vj1x:"fond6v5"},inactive:{abs64n:"fp25eh",Bz10aip:"f1clczzi",Bkqvd7p:"f1l3s34x",Bucmhp4:"f1f5ar78",b2tv09:["fqxtap0","fhjukvy"],Bfgortx:"f1qj1nzo",Bnvr3x9:["fhjukvy","fqxtap0"],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);}",".f1g3puop{border-bottom-right-radius:var(--borderRadiusSmall);}",".fi2rrw2{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1rstyi9{border-top-right-radius:var(--borderRadiusSmall);}",".f1s4nn1u{border-top-left-radius:var(--borderRadiusSmall);}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f1ldthgs{border-bottom-right-radius:var(--borderRadiusLarge);}",".frrelxk{border-bottom-left-radius:var(--borderRadiusLarge);}",".fobrfso{border-top-right-radius:var(--borderRadiusLarge);}",".ffisxpw{border-top-left-radius:var(--borderRadiusLarge);}",".fnivh3a{border-bottom-right-radius:var(--borderRadiusXLarge);}",".fc7yr5o{border-bottom-left-radius:var(--borderRadiusXLarge);}",".f1el4m67{border-top-right-radius:var(--borderRadiusXLarge);}",".f8yange{border-top-left-radius:var(--borderRadiusXLarge);}",".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);}",".f1f5ar78::before,.f1f5ar78::after{margin-top:0;}",".fqxtap0::before,.fqxtap0::after{margin-right:0;}",".fhjukvy::before,.fhjukvy::after{margin-left:0;}",".f1qj1nzo::before,.f1qj1nzo::after{margin-bottom:0;}",".fw457kn::before,.fw457kn::after{opacity:0;}",".f1wmllxl::before,.f1wmllxl::after{transition-timing-function:var(--curveDecelerateMin),var(--curveLinear);}",".f1euv43f{position:absolute;}",".f1yab3r1{bottom:0;}",".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f1eugkqs{-webkit-mask-image:radial-gradient(circle at bottom var(--fui-Avatar-badgeRadius) var(--fui-Avatar-badgeAlign) var(--fui-Avatar-badgeRadius), transparent calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) - 0.25px), white calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) + 0.25px));mask-image:radial-gradient(circle at bottom var(--fui-Avatar-badgeRadius) var(--fui-Avatar-badgeAlign) var(--fui-Avatar-badgeRadius), transparent calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) - 0.25px), white calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) + 0.25px));}",".f1tlnv9o{--fui-Avatar-badgeAlign:right;}",".f1y9kyih{--fui-Avatar-badgeAlign:left;}",".f1uwoubl{--fui-Avatar-badgeRadius:3px;}",".fid048z{--fui-Avatar-badgeGap:var(--strokeWidthThin);}",".f13ar0e0{--fui-Avatar-badgeRadius:5px;}",".fwwuruf{--fui-Avatar-badgeRadius:6px;}",".f1af27q5{--fui-Avatar-badgeRadius:8px;}",".f18yy57a{--fui-Avatar-badgeRadius:10px;}",".f924bxt{--fui-Avatar-badgeGap:var(--strokeWidthThick);}",".f2jg042{--fui-Avatar-badgeRadius:14px;}",".f1ugzwwg{font-size:12px;}",".f4ybsrx{font-size:16px;}",".fe5j1ua{font-size:20px;}",".f1rt2boy{font-size:24px;}",".f24l1pt{font-size:28px;}",".ffl51b{font-size:32px;}",".f18m8u13{font-size:48px;}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f1onx1g3{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]}),F8=q({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;}"]}),q8=q({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);}"]}),L8=q({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);}"]}),H8=t=>{const{size:e,shape:r,active:o,activeAppearance:n,color:i}=t,a=M8(),s=O8(),l=j8(),c=D8(),u=F8(),d=q8(),f=L8(),h=[a,e!==32&&u[e]];if(t.badge&&h.push(c.badgeAlign,c[t.badge.size||"medium"]),e<=24?h.push(c.textCaption2Strong):e<=28?h.push(c.textCaption1Strong):e<=40||(e<=56?h.push(c.textSubtitle2):e<=96?h.push(c.textSubtitle1):h.push(c.textTitle3)),r==="square"&&(e<=24?h.push(c.squareSmall):e<=48?h.push(c.squareMedium):e<=72?h.push(c.squareLarge):h.push(c.squareXLarge)),(o==="active"||o==="inactive")&&(h.push(c.activeOrInactive),(n==="ring"||n==="ring-shadow")&&(h.push(c.ring,f[i]),t.badge&&h.push(c.ringBadgeCutout),e<=48?h.push(c.ringThick):e<=64?h.push(c.ringThicker):h.push(c.ringThickest)),(n==="shadow"||n==="ring-shadow")&&(h.push(c.shadow),e<=28?h.push(c.shadow4):e<=48?h.push(c.shadow8):e<=64?h.push(c.shadow16):h.push(c.shadow28)),o==="inactive"&&h.push(c.inactive)),t.root.className=A(ws.root,...h,t.root.className),t.badge&&(t.badge.className=A(ws.badge,c.badge,t.badge.className)),t.image&&(t.image.className=A(ws.image,s,d[i],t.badge&&c.badgeCutout,t.image.className)),t.initials&&(t.initials.className=A(ws.initials,l,d[i],t.badge&&c.badgeCutout,t.initials.className)),t.icon){let g;e<=16?g=c.icon12:e<=24?g=c.icon16:e<=40?g=c.icon20:e<=48?g=c.icon24:e<=56?g=c.icon28:e<=72?g=c.icon32:g=c.icon48,t.icon.className=A(ws.icon,l,g,d[i],t.badge&&c.badgeCutout,t.icon.className)}return t},U8=y.forwardRef((t,e)=>{const r=N8(t,e);return H8(r),ue("useAvatarStyles_unstable")(r),o8(r)});U8.displayName="Avatar";function $8(t){const e=t.clientX,r=t.clientY,o=e+1,n=r+1;function i(){return{left:e,top:r,right:o,bottom:n,x:e,y:r,height:1,width:1}}return{getBoundingClientRect:i}}const oy="data-popper-is-intersecting",ny="data-popper-escaped",iy="data-popper-reference-hidden",K8="data-popper-placement",Kg="fui-positioningend",W8=["top","right","bottom","left"],Pi=Math.min,Rr=Math.max,ld=Math.round,Un=t=>({x:t,y:t}),V8={left:"right",right:"left",bottom:"top",top:"bottom"},G8={start:"end",end:"start"};function Wg(t,e,r){return Rr(t,Pi(e,r))}function rn(t,e){return typeof t=="function"?t(e):t}function on(t){return t.split("-")[0]}function hs(t){return t.split("-")[1]}function Hv(t){return t==="x"?"y":"x"}function Uv(t){return t==="y"?"height":"width"}function gs(t){return["top","bottom"].includes(on(t))?"y":"x"}function $v(t){return Hv(gs(t))}function X8(t,e,r){r===void 0&&(r=!1);const o=hs(t),n=$v(t),i=Uv(n);let a=n==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(a=cd(a)),[a,cd(a)]}function Y8(t){const e=cd(t);return[Vg(t),e,Vg(e)]}function Vg(t){return t.replace(/start|end/g,e=>G8[e])}function Z8(t,e,r){const o=["left","right"],n=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return r?e?n:o:e?o:n;case"left":case"right":return e?i:a;default:return[]}}function Q8(t,e,r,o){const n=hs(t);let i=Z8(on(t),r==="start",o);return n&&(i=i.map(a=>a+"-"+n),e&&(i=i.concat(i.map(Vg)))),i}function cd(t){return t.replace(/left|right|bottom|top/g,e=>V8[e])}function J8(t){return{top:0,right:0,bottom:0,left:0,...t}}function lC(t){return typeof t!="number"?J8(t):{top:t,right:t,bottom:t,left:t}}function ud(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function ay(t,e,r){let{reference:o,floating:n}=t;const i=gs(e),a=$v(e),s=Uv(a),l=on(e),c=i==="y",u=o.x+o.width/2-n.width/2,d=o.y+o.height/2-n.height/2,f=o[s]/2-n[s]/2;let h;switch(l){case"top":h={x:u,y:o.y-n.height};break;case"bottom":h={x:u,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:d};break;case"left":h={x:o.x-n.width,y:d};break;default:h={x:o.x,y:o.y}}switch(hs(e)){case"start":h[a]-=f*(r&&c?-1:1);break;case"end":h[a]+=f*(r&&c?-1:1);break}return h}const e7=async(t,e,r)=>{const{placement:o="bottom",strategy:n="absolute",middleware:i=[],platform:a}=r,s=i.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:n}),{x:u,y:d}=ay(c,o,l),f=o,h={},g=0;for(let p=0;p({name:"arrow",options:t,async fn(e){const{x:r,y:o,placement:n,rects:i,platform:a,elements:s,middlewareData:l}=e,{element:c,padding:u=0}=rn(t,e)||{};if(c==null)return{};const d=lC(u),f={x:r,y:o},h=$v(n),g=Uv(h),p=await a.getDimensions(c),w=h==="y",v=w?"top":"left",m=w?"bottom":"right",b=w?"clientHeight":"clientWidth",k=i.reference[g]+i.reference[h]-f[h]-i.floating[g],x=f[h]-i.reference[h],_=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let S=_?_[b]:0;(!S||!await(a.isElement==null?void 0:a.isElement(_)))&&(S=s.floating[b]||i.floating[g]);const C=k/2-x/2,E=S/2-p[g]/2-1,I=Pi(d[v],E),H=Pi(d[m],E),T=I,R=S-p[g]-H,M=S/2-p[g]/2+C,P=Wg(T,M,R),j=!l.arrow&&hs(n)!=null&&M!=P&&i.reference[g]/2-(MT<=0)){var E,I;const T=(((E=i.flip)==null?void 0:E.index)||0)+1,R=x[T];if(R)return{data:{index:T,overflows:C},reset:{placement:R}};let M=(I=C.filter(P=>P.overflows[0]<=0).sort((P,j)=>P.overflows[1]-j.overflows[1])[0])==null?void 0:I.placement;if(!M)switch(h){case"bestFit":{var H;const P=(H=C.map(j=>[j.placement,j.overflows.filter(W=>W>0).reduce((W,B)=>W+B,0)]).sort((j,W)=>j[1]-W[1])[0])==null?void 0:H[0];P&&(M=P);break}case"initialPlacement":M=s;break}if(n!==M)return{reset:{placement:M}}}return{}}}};function sy(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function ly(t){return W8.some(e=>t[e]>=0)}const o7=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:r}=e,{strategy:o="referenceHidden",...n}=rn(t,e);switch(o){case"referenceHidden":{const i=await Za(e,{...n,elementContext:"reference"}),a=sy(i,r.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:ly(a)}}}case"escaped":{const i=await Za(e,{...n,altBoundary:!0}),a=sy(i,r.floating);return{data:{escapedOffsets:a,escaped:ly(a)}}}default:return{}}}}};async function n7(t,e){const{placement:r,platform:o,elements:n}=t,i=await(o.isRTL==null?void 0:o.isRTL(n.floating)),a=on(r),s=hs(r),l=gs(r)==="y",c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d=rn(e,t);let{mainAxis:f,crossAxis:h,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&typeof g=="number"&&(h=s==="end"?g*-1:g),l?{x:h*u,y:f*c}:{x:f*c,y:h*u}}const i7=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,o;const{x:n,y:i,placement:a,middlewareData:s}=e,l=await n7(e,t);return a===((r=s.offset)==null?void 0:r.placement)&&(o=s.arrow)!=null&&o.alignmentOffset?{}:{x:n+l.x,y:i+l.y,data:{...l,placement:a}}}}},a7=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:o,placement:n}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:w=>{let{x:v,y:m}=w;return{x:v,y:m}}},...l}=rn(t,e),c={x:r,y:o},u=await Za(e,l),d=gs(on(n)),f=Hv(d);let h=c[f],g=c[d];if(i){const w=f==="y"?"top":"left",v=f==="y"?"bottom":"right",m=h+u[w],b=h-u[v];h=Wg(m,h,b)}if(a){const w=d==="y"?"top":"left",v=d==="y"?"bottom":"right",m=g+u[w],b=g-u[v];g=Wg(m,g,b)}const p=s.fn({...e,[f]:h,[d]:g});return{...p,data:{x:p.x-r,y:p.y-o}}}}},s7=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:r,y:o,placement:n,rects:i,middlewareData:a}=e,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=rn(t,e),u={x:r,y:o},d=gs(n),f=Hv(d);let h=u[f],g=u[d];const p=rn(s,e),w=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const b=f==="y"?"height":"width",k=i.reference[f]-i.floating[b]+w.mainAxis,x=i.reference[f]+i.reference[b]-w.mainAxis;hx&&(h=x)}if(c){var v,m;const b=f==="y"?"width":"height",k=["top","left"].includes(on(n)),x=i.reference[d]-i.floating[b]+(k&&((v=a.offset)==null?void 0:v[d])||0)+(k?0:w.crossAxis),_=i.reference[d]+i.reference[b]+(k?0:((m=a.offset)==null?void 0:m[d])||0)-(k?w.crossAxis:0);g_&&(g=_)}return{[f]:h,[d]:g}}}},l7=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:r,rects:o,platform:n,elements:i}=e,{apply:a=()=>{},...s}=rn(t,e),l=await Za(e,s),c=on(r),u=hs(r),d=gs(r)==="y",{width:f,height:h}=o.floating;let g,p;c==="top"||c==="bottom"?(g=c,p=u===(await(n.isRTL==null?void 0:n.isRTL(i.floating))?"start":"end")?"left":"right"):(p=c,g=u==="end"?"top":"bottom");const w=h-l[g],v=f-l[p],m=!e.middlewareData.shift;let b=w,k=v;if(d){const _=f-l.left-l.right;k=u||m?Pi(v,_):_}else{const _=h-l.top-l.bottom;b=u||m?Pi(w,_):_}if(m&&!u){const _=Rr(l.left,0),S=Rr(l.right,0),C=Rr(l.top,0),E=Rr(l.bottom,0);d?k=f-2*(_!==0||S!==0?_+S:Rr(l.left,l.right)):b=h-2*(C!==0||E!==0?C+E:Rr(l.top,l.bottom))}await a({...e,availableWidth:k,availableHeight:b});const x=await n.getDimensions(i.floating);return f!==x.width||h!==x.height?{reset:{rects:!0}}:{}}}};function $n(t){return cC(t)?(t.nodeName||"").toLowerCase():"#document"}function kr(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Zn(t){var e;return(e=(cC(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function cC(t){return t instanceof Node||t instanceof kr(t).Node}function nn(t){return t instanceof Element||t instanceof kr(t).Element}function Io(t){return t instanceof HTMLElement||t instanceof kr(t).HTMLElement}function cy(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof kr(t).ShadowRoot}function fc(t){const{overflow:e,overflowX:r,overflowY:o,display:n}=Fr(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+r)&&!["inline","contents"].includes(n)}function c7(t){return["table","td","th"].includes($n(t))}function Kv(t){const e=Wv(),r=Fr(t);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(r.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(r.contain||"").includes(o))}function u7(t){let e=Qa(t);for(;Io(e)&&!wf(e);){if(Kv(e))return e;e=Qa(e)}return null}function Wv(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function wf(t){return["html","body","#document"].includes($n(t))}function Fr(t){return kr(t).getComputedStyle(t)}function kf(t){return nn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Qa(t){if($n(t)==="html")return t;const e=t.assignedSlot||t.parentNode||cy(t)&&t.host||Zn(t);return cy(e)?e.host:e}function uC(t){const e=Qa(t);return wf(e)?t.ownerDocument?t.ownerDocument.body:t.body:Io(e)&&fc(e)?e:uC(e)}function Gg(t,e,r){var o;e===void 0&&(e=[]),r===void 0&&(r=!0);const n=uC(t),i=n===((o=t.ownerDocument)==null?void 0:o.body),a=kr(n);return i?e.concat(a,a.visualViewport||[],fc(n)?n:[],a.frameElement&&r?Gg(a.frameElement):[]):e.concat(n,Gg(n,[],r))}function dC(t){const e=Fr(t);let r=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const n=Io(t),i=n?t.offsetWidth:r,a=n?t.offsetHeight:o,s=ld(r)!==i||ld(o)!==a;return s&&(r=i,o=a),{width:r,height:o,$:s}}function fC(t){return nn(t)?t:t.contextElement}function Ba(t){const e=fC(t);if(!Io(e))return Un(1);const r=e.getBoundingClientRect(),{width:o,height:n,$:i}=dC(e);let a=(i?ld(r.width):r.width)/o,s=(i?ld(r.height):r.height)/n;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const d7=Un(0);function hC(t){const e=kr(t);return!Wv()||!e.visualViewport?d7:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function f7(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==kr(t)?!1:e}function _l(t,e,r,o){e===void 0&&(e=!1),r===void 0&&(r=!1);const n=t.getBoundingClientRect(),i=fC(t);let a=Un(1);e&&(o?nn(o)&&(a=Ba(o)):a=Ba(t));const s=f7(i,r,o)?hC(i):Un(0);let l=(n.left+s.x)/a.x,c=(n.top+s.y)/a.y,u=n.width/a.x,d=n.height/a.y;if(i){const f=kr(i),h=o&&nn(o)?kr(o):o;let g=f.frameElement;for(;g&&o&&h!==f;){const p=Ba(g),w=g.getBoundingClientRect(),v=Fr(g),m=w.left+(g.clientLeft+parseFloat(v.paddingLeft))*p.x,b=w.top+(g.clientTop+parseFloat(v.paddingTop))*p.y;l*=p.x,c*=p.y,u*=p.x,d*=p.y,l+=m,c+=b,g=kr(g).frameElement}}return ud({width:u,height:d,x:l,y:c})}function h7(t){let{rect:e,offsetParent:r,strategy:o}=t;const n=Io(r),i=Zn(r);if(r===i)return e;let a={scrollLeft:0,scrollTop:0},s=Un(1);const l=Un(0);if((n||!n&&o!=="fixed")&&(($n(r)!=="body"||fc(i))&&(a=kf(r)),Io(r))){const c=_l(r);s=Ba(r),l.x=c.x+r.clientLeft,l.y=c.y+r.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+l.x,y:e.y*s.y-a.scrollTop*s.y+l.y}}function g7(t){return Array.from(t.getClientRects())}function gC(t){return _l(Zn(t)).left+kf(t).scrollLeft}function p7(t){const e=Zn(t),r=kf(t),o=t.ownerDocument.body,n=Rr(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=Rr(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-r.scrollLeft+gC(t);const s=-r.scrollTop;return Fr(o).direction==="rtl"&&(a+=Rr(e.clientWidth,o.clientWidth)-n),{width:n,height:i,x:a,y:s}}function m7(t,e){const r=kr(t),o=Zn(t),n=r.visualViewport;let i=o.clientWidth,a=o.clientHeight,s=0,l=0;if(n){i=n.width,a=n.height;const c=Wv();(!c||c&&e==="fixed")&&(s=n.offsetLeft,l=n.offsetTop)}return{width:i,height:a,x:s,y:l}}function v7(t,e){const r=_l(t,!0,e==="fixed"),o=r.top+t.clientTop,n=r.left+t.clientLeft,i=Io(t)?Ba(t):Un(1),a=t.clientWidth*i.x,s=t.clientHeight*i.y,l=n*i.x,c=o*i.y;return{width:a,height:s,x:l,y:c}}function uy(t,e,r){let o;if(e==="viewport")o=m7(t,r);else if(e==="document")o=p7(Zn(t));else if(nn(e))o=v7(e,r);else{const n=hC(t);o={...e,x:e.x-n.x,y:e.y-n.y}}return ud(o)}function pC(t,e){const r=Qa(t);return r===e||!nn(r)||wf(r)?!1:Fr(r).position==="fixed"||pC(r,e)}function b7(t,e){const r=e.get(t);if(r)return r;let o=Gg(t,[],!1).filter(s=>nn(s)&&$n(s)!=="body"),n=null;const i=Fr(t).position==="fixed";let a=i?Qa(t):t;for(;nn(a)&&!wf(a);){const s=Fr(a),l=Kv(a);!l&&s.position==="fixed"&&(n=null),(i?!l&&!n:!l&&s.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||fc(a)&&!l&&pC(t,a))?o=o.filter(u=>u!==a):n=s,a=Qa(a)}return e.set(t,o),o}function y7(t){let{element:e,boundary:r,rootBoundary:o,strategy:n}=t;const a=[...r==="clippingAncestors"?b7(e,this._c):[].concat(r),o],s=a[0],l=a.reduce((c,u)=>{const d=uy(e,u,n);return c.top=Rr(d.top,c.top),c.right=Pi(d.right,c.right),c.bottom=Pi(d.bottom,c.bottom),c.left=Rr(d.left,c.left),c},uy(e,s,n));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function w7(t){const{width:e,height:r}=dC(t);return{width:e,height:r}}function k7(t,e,r){const o=Io(e),n=Zn(e),i=r==="fixed",a=_l(t,!0,i,e);let s={scrollLeft:0,scrollTop:0};const l=Un(0);if(o||!o&&!i)if(($n(e)!=="body"||fc(n))&&(s=kf(e)),o){const c=_l(e,!0,i,e);l.x=c.x+e.clientLeft,l.y=c.y+e.clientTop}else n&&(l.x=gC(n));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function dy(t,e){return!Io(t)||Fr(t).position==="fixed"?null:e?e(t):t.offsetParent}function mC(t,e){const r=kr(t);if(!Io(t))return r;let o=dy(t,e);for(;o&&c7(o)&&Fr(o).position==="static";)o=dy(o,e);return o&&($n(o)==="html"||$n(o)==="body"&&Fr(o).position==="static"&&!Kv(o))?r:o||u7(t)||r}const S7=async function(t){let{reference:e,floating:r,strategy:o}=t;const n=this.getOffsetParent||mC,i=this.getDimensions;return{reference:k7(e,await n(r),o),floating:{x:0,y:0,...await i(r)}}};function _7(t){return Fr(t).direction==="rtl"}const x7={convertOffsetParentRelativeRectToViewportRelativeRect:h7,getDocumentElement:Zn,getClippingRect:y7,getOffsetParent:mC,getElementRects:S7,getClientRects:g7,getDimensions:w7,getScale:Ba,isElement:nn,isRTL:_7},C7=a7,T7=r7,E7=l7,fy=o7,B7=t7,I7=s7,R7=(t,e,r)=>{const o=new Map,n={platform:x7,...r},i={...n.platform,_c:o};return e7(t,e,{...n,platform:i})};function vC(t){const e=t.split("-");return{side:e[0],alignment:e[1]}}const A7=t=>t.nodeName==="HTML"?t:t.parentNode||t.host,N7=t=>{var e;return t.nodeType!==1?{}:((e=t.ownerDocument)===null||e===void 0?void 0:e.defaultView).getComputedStyle(t,null)},Sf=t=>{const e=t&&A7(t);if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}const{overflow:r,overflowX:o,overflowY:n}=N7(e);return/(auto|scroll|overlay)/.test(r+n+o)?e:Sf(e)},P7=t=>{var e;const r=Sf(t);return r?r!==((e=r.ownerDocument)===null||e===void 0?void 0:e.body):!1};function Vv(t,e){if(e==="window")return t?.ownerDocument.documentElement;if(e==="clippingParents")return"clippingAncestors";if(e==="scrollParent"){let r=Sf(t);return r.nodeName==="BODY"&&(r=t?.ownerDocument.documentElement),r}return e}function bC(t,e){return typeof t=="number"||typeof t=="object"&&t!==null?bh(t,e):typeof t=="function"?r=>{const o=t(r);return bh(o,e)}:{mainAxis:e}}const bh=(t,e)=>{if(typeof t=="number")return{mainAxis:t+e};var r;return{...t,mainAxis:((r=t.mainAxis)!==null&&r!==void 0?r:0)+e}};function z7(t,e){if(typeof t=="number")return t;const{start:r,end:o,...n}=t,i=n,a=e?"end":"start",s=e?"start":"end";return t[a]&&(i.left=t[a]),t[s]&&(i.right=t[s]),i}const M7=t=>({above:"top",below:"bottom",before:t?"right":"left",after:t?"left":"right"}),O7=()=>({start:"start",end:"end",top:"start",bottom:"end",center:void 0}),j7=(t,e)=>{const r=t==="above"||t==="below",o=e==="top"||e==="bottom";return r&&o||!r&&!o},yC=(t,e,r)=>{const o=j7(e,t)?"center":t,n=e&&M7(r)[e],i=o&&O7()[o];return n&&i?`${n}-${i}`:n},D7=()=>({top:"above",bottom:"below",right:"after",left:"before"}),F7=t=>t==="above"||t==="below"?{start:"start",end:"end"}:{start:"top",end:"bottom"},q7=t=>{const{side:e,alignment:r}=vC(t),o=D7()[e],n=r&&F7(o)[r];return{position:o,alignment:n}},L7={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 hc(t){return t==null?{}:typeof t=="string"?L7[t]:t}function yh(t,e,r){const o=y.useRef(!0),[n]=y.useState(()=>({value:t,callback:e,facade:{get current(){return n.value},set current(i){const a=n.value;if(a!==i){if(n.value=i,r&&o.current)return;n.callback(i,a)}}}}));return Qt(()=>{o.current=!1},[]),n.callback=e,n.facade}function H7(t){let e;return()=>(e||(e=new Promise(r=>{Promise.resolve().then(()=>{e=void 0,r(t())})})),e)}function U7(t){const{arrow:e,middlewareData:r}=t;if(!r.arrow||!e)return;const{x:o,y:n}=r.arrow;Object.assign(e.style,{left:`${o}px`,top:`${n}px`})}function $7(t){var e,r,o;const{container:n,placement:i,middlewareData:a,strategy:s,lowPPI:l,coordinates:c,useTransform:u=!0}=t;if(!n)return;n.setAttribute(K8,i),n.removeAttribute(oy),a.intersectionObserver.intersecting&&n.setAttribute(oy,""),n.removeAttribute(ny),!((e=a.hide)===null||e===void 0)&&e.escaped&&n.setAttribute(ny,""),n.removeAttribute(iy),!((r=a.hide)===null||r===void 0)&&r.referenceHidden&&n.setAttribute(iy,"");const d=((o=n.ownerDocument.defaultView)===null||o===void 0?void 0:o.devicePixelRatio)||1,f=Math.round(c.x*d)/d,h=Math.round(c.y*d)/d;if(Object.assign(n.style,{position:s}),u){Object.assign(n.style,{transform:l?`translate(${f}px, ${h}px)`:`translate3d(${f}px, ${h}px, 0)`});return}Object.assign(n.style,{left:`${f}px`,top:`${h}px`})}const K7=t=>{switch(t){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 W7(){return{name:"coverTarget",fn:t=>{const{placement:e,rects:r,x:o,y:n}=t,i=vC(e).side,a={x:o,y:n};switch(i){case"bottom":a.y-=r.reference.height;break;case"top":a.y+=r.reference.height;break;case"left":a.x+=r.reference.width;break;case"right":a.x-=r.reference.width;break}return a}}}function V7(t){const{hasScrollableElement:e,flipBoundary:r,container:o,fallbackPositions:n=[],isRtl:i}=t,a=n.reduce((s,l)=>{const{position:c,align:u}=hc(l),d=yC(u,c,i);return d&&s.push(d),s},[]);return T7({...e&&{boundary:"clippingAncestors"},...r&&{altBoundary:!0,boundary:Vv(o,r)},fallbackStrategy:"bestFit",...a.length&&{fallbackPlacements:a}})}function G7(){return{name:"intersectionObserver",fn:async t=>{const e=t.rects.floating,r=await Za(t,{altBoundary:!0}),o=r.top0,n=r.bottom0;return{data:{intersecting:o||n}}}}}const X7=t=>({name:"resetMaxSize",fn({middlewareData:e,elements:r}){var o;if(!((o=e.resetMaxSize)===null||o===void 0)&&o.maxSizeAlreadyReset)return{};const{applyMaxWidth:n,applyMaxHeight:i}=t;return n&&(r.floating.style.removeProperty("box-sizing"),r.floating.style.removeProperty("max-width"),r.floating.style.removeProperty("width")),i&&(r.floating.style.removeProperty("box-sizing"),r.floating.style.removeProperty("max-height"),r.floating.style.removeProperty("height")),{data:{maxSizeAlreadyReset:!0},reset:{rects:!0}}}});function Y7(t,e){const{container:r,overflowBoundary:o}=e;return E7({...o&&{altBoundary:!0,boundary:Vv(r,o)},apply({availableHeight:n,availableWidth:i,elements:a,rects:s}){const l=(d,f,h)=>{if(d&&(a.floating.style.setProperty("box-sizing","border-box"),a.floating.style.setProperty(`max-${f}`,`${h}px`),s.floating[f]>h)){a.floating.style.setProperty(f,`${h}px`);const g=f==="width"?"x":"y";a.floating.style.getPropertyValue(`overflow-${g}`)||a.floating.style.setProperty(`overflow-${g}`,"auto")}},{applyMaxWidth:c,applyMaxHeight:u}=t;l(c,"width",i),l(u,"height",n)}})}function Z7(t){return!t||typeof t=="number"||typeof t=="object"?t:({rects:{floating:e,reference:r},placement:o})=>{const{position:n,alignment:i}=q7(o);return t({positionedRect:e,targetRect:r,position:n,alignment:i})}}function Q7(t){const e=Z7(t);return i7(e)}function J7(t){const{hasScrollableElement:e,disableTether:r,overflowBoundary:o,container:n,overflowBoundaryPadding:i,isRtl:a}=t;return C7({...e&&{boundary:"clippingAncestors"},...r&&{crossAxis:r==="all",limiter:I7({crossAxis:r!=="all",mainAxis:!1})},...i&&{padding:z7(i,a)},...o&&{altBoundary:!0,boundary:Vv(n,o)}})}const hy="--fui-match-target-size";function eM(){return{name:"matchTargetSize",fn:async t=>{const{rects:{reference:e,floating:r},elements:{floating:o},middlewareData:{matchTargetSize:{matchTargetSizeAttempt:n=!1}={}}}=t;if(e.width===r.width||n)return{};const{width:i}=e;return o.style.setProperty(hy,`${i}px`),o.style.width||(o.style.width=`var(${hy})`),{data:{matchTargetSizeAttempt:!0},reset:{rects:!0}}}}}function gy(t){const e=[];let r=t;for(;r;){const o=Sf(r);if(t.ownerDocument.body===o){e.push(o);break}e.push(o),r=o}return e}function tM(t,e){return new t.ResizeObserver(e)}function rM(t){let e=!1;const{container:r,target:o,arrow:n,strategy:i,middleware:a,placement:s,useTransform:l=!0}=t,c=r.ownerDocument.defaultView;if(!o||!r||!c)return{updatePosition:()=>{},dispose:()=>{}};const u=tM(c,()=>g());let d=!0;const f=new Set;Object.assign(r.style,{position:"fixed",left:0,top:0,margin:0});const h=()=>{e||(d&&(gy(r).forEach(w=>f.add(w)),Ve(o)&&gy(o).forEach(w=>f.add(w)),f.forEach(w=>{w.addEventListener("scroll",g,{passive:!0})}),u.observe(r),Ve(o)&&u.observe(o),d=!1),Object.assign(r.style,{position:i}),R7(o,r,{placement:s,middleware:a,strategy:i}).then(({x:w,y:v,middlewareData:m,placement:b})=>{e||(U7({arrow:n,middlewareData:m}),$7({container:r,middlewareData:m,placement:b,coordinates:{x:w,y:v},lowPPI:(c?.devicePixelRatio||1)<=1,strategy:i,useTransform:l}),r.dispatchEvent(new CustomEvent(Kg)))}).catch(w=>{}))},g=H7(()=>h()),p=()=>{e=!0,c&&(c.removeEventListener("scroll",g),c.removeEventListener("resize",g)),f.forEach(w=>{w.removeEventListener("scroll",g)}),f.clear(),u.disconnect()};return c&&(c.addEventListener("scroll",g,{passive:!0}),c.addEventListener("resize",g)),g(),{updatePosition:g,dispose:p}}function _f(t){const e=y.useRef(null),r=y.useRef(null),o=y.useRef(null),n=y.useRef(null),i=y.useRef(null),{enabled:a=!0}=t,s=oM(t),l=y.useCallback(()=>{e.current&&e.current.dispose(),e.current=null;var g;const p=(g=o.current)!==null&&g!==void 0?g:r.current;a&&Yn()&&p&&n.current&&(e.current=rM({container:n.current,target:p,arrow:i.current,...s(n.current,i.current)}))},[a,s]),c=Q(g=>{o.current=g,l()});y.useImperativeHandle(t.positioningRef,()=>({updatePosition:()=>{var g;return(g=e.current)===null||g===void 0?void 0:g.updatePosition()},setTarget:g=>{t.target,c(g)}}),[t.target,c]),Qt(()=>{var g;c((g=t.target)!==null&&g!==void 0?g:null)},[t.target,c]),Qt(()=>{l()},[l]);const u=yh(null,g=>{r.current!==g&&(r.current=g,l())}),d=Q(()=>{var g;return(g=t.onPositioningEnd)===null||g===void 0?void 0:g.call(t)}),f=yh(null,g=>{if(n.current!==g){var p;(p=n.current)===null||p===void 0||p.removeEventListener(Kg,d),g?.addEventListener(Kg,d),n.current=g,l()}}),h=yh(null,g=>{i.current!==g&&(i.current=g,l())});return{targetRef:u,containerRef:f,arrowRef:h}}function oM(t){const{align:e,arrowPadding:r,autoSize:o,coverTarget:n,flipBoundary:i,offset:a,overflowBoundary:s,pinned:l,position:c,unstable_disableTether:u,positionFixed:d,strategy:f,overflowBoundaryPadding:h,fallbackPositions:g,useTransform:p,matchTargetSize:w}=t,{dir:v,targetDocument:m}=Pe(),b=v==="rtl",k=f??d?"fixed":"absolute",x=K7(o);return y.useCallback((_,S)=>{const C=P7(_),E=[x&&X7(x),w&&eM(),a&&Q7(a),n&&W7(),!l&&V7({container:_,flipBoundary:i,hasScrollableElement:C,isRtl:b,fallbackPositions:g}),J7({container:_,hasScrollableElement:C,overflowBoundary:s,disableTether:u,overflowBoundaryPadding:h,isRtl:b}),x&&Y7(x,{container:_,overflowBoundary:s}),G7(),S&&B7({element:S,padding:r}),fy({strategy:"referenceHidden"}),fy({strategy:"escaped"}),!1].filter(Boolean);return{placement:yC(e,c,b),middleware:E,strategy:k,useTransform:p}},[e,r,x,n,u,i,b,a,s,l,c,k,h,g,p,w,m])}const wC=t=>{const[e,r]=y.useState(t);return[e,n=>{if(n==null){r(void 0);return}let i;n instanceof MouseEvent?i=n:i=n.nativeEvent,i instanceof MouseEvent;const a=$8(i);r(a)}]},Gv=fn(void 0),nM={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};Gv.Provider;const zt=t=>lt(Gv,(e=nM)=>t(e)),iM=(t,e)=>{const r=zt(m=>m.contentRef),o=zt(m=>m.openOnHover),n=zt(m=>m.setOpen),i=zt(m=>m.mountNode),a=zt(m=>m.arrowRef),s=zt(m=>m.size),l=zt(m=>m.withArrow),c=zt(m=>m.appearance),u=zt(m=>m.trapFocus),d=zt(m=>m.inertTrapFocus),f=zt(m=>m.inline),{modalAttributes:h}=mf({trapFocus:u,legacyTrapFocus:!d,alwaysFocusable:!u}),g={inline:f,appearance:c,withArrow:l,size:s,arrowRef:a,mountNode:i,components:{root:"div"},root:te(ve("div",{ref:Re(e,r),role:u?"dialog":"group","aria-modal":u?!0:void 0,...h,...t}),{elementType:"div"})},{onMouseEnter:p,onMouseLeave:w,onKeyDown:v}=g.root;return g.root.onMouseEnter=m=>{o&&n(m,!0),p?.(m)},g.root.onMouseLeave=m=>{o&&n(m,!1),w?.(m)},g.root.onKeyDown=m=>{var b;m.key==="Escape"&&(!((b=r.current)===null||b===void 0)&&b.contains(m.target))&&(m.preventDefault(),n(m,!1)),v?.(m)},g};function aM(t){return Ve(t)?{element:t}:typeof t=="object"?t===null?{element:null}:t:{}}var kC=()=>y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner.current,sM=()=>!1,py=new WeakSet;function lM(t,e){const r=kC();y.useEffect(()=>{if(!py.has(r)){py.add(r),t();return}return t()},e)}var my=new WeakSet;function cM(t,e){return y.useMemo(()=>{const r=kC();return my.has(r)?t():(my.add(r),null)},e)}function uM(t,e){var r;const o=sM()&&!1,n=o?cM:y.useMemo,i=o?lM:y.useEffect,[a,s]=(r=n(()=>t(),e))!=null?r:[null,()=>null];return i(()=>s,e),a}const dM=q({root:{qhf8xq:"f1euv43f",Bhzewxz:"f15twtuk",oyh7mz:["f1vgc2s3","f1e31b4d"],j35jbq:["f1e31b4d","f1vgc2s3"],Bj3rh1h:"f494woh"}},{d:[".f1euv43f{position:absolute;}",".f15twtuk{top:0;}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".f494woh{z-index:1000000;}"]}),vy=Ku.useInsertionEffect,fM=t=>{const{targetDocument:e,dir:r}=Pe(),o=mN(),n=Dv(),i=dM(),a=aN(),s=A(a,i.root,t.className),l=o??e?.body,c=uM(()=>{if(l===void 0||t.disabled)return[null,()=>null];const u=l.ownerDocument.createElement("div");return l.appendChild(u),[u,()=>u.remove()]},[l]);return vy?vy(()=>{if(!c)return;const u=s.split(" ").filter(Boolean);return c.classList.add(...u),c.setAttribute("dir",r),n.current=c,()=>{c.classList.remove(...u),c.removeAttribute("dir")}},[s,r,c,n]):y.useMemo(()=>{c&&(c.className=s,c.setAttribute("dir",r),n.current=c)},[s,r,c,n]),c},hM=t=>{const{element:e,className:r}=aM(t.mountNode),o=y.useRef(null),n=fM({disabled:!!e,className:r}),i=e??n,a={children:t.children,mountNode:i,virtualParentRootRef:o};return y.useEffect(()=>{if(!i)return;const s=o.current,l=i.contains(s);if(s&&!l)return kb(i,s),()=>{kb(i,void 0)}},[o,i]),a};var SC={exports:{}},Tr={},_C={exports:{}},xC={};/** - * @license React - * scheduler.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */(function(t){function e(B,D){var U=B.length;B.push(D);e:for(;0>>1,L=B[z];if(0>>1;zn(he,U))Een(ae,he)?(B[z]=ae,B[Ee]=U,z=Ee):(B[z]=he,B[Z]=U,z=Z);else if(Een(ae,U))B[z]=ae,B[Ee]=U,z=Ee;else break e}}return D}function n(B,D){var U=B.sortIndex-D.sortIndex;return U!==0?U:B.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();t.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,d=null,f=3,h=!1,g=!1,p=!1,w=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,m=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(B){for(var D=r(c);D!==null;){if(D.callback===null)o(c);else if(D.startTime<=B)o(c),D.sortIndex=D.expirationTime,e(l,D);else break;D=r(c)}}function k(B){if(p=!1,b(B),!g)if(r(l)!==null)g=!0,j(x);else{var D=r(c);D!==null&&W(k,D.startTime-B)}}function x(B,D){g=!1,p&&(p=!1,v(C),C=-1),h=!0;var U=f;try{for(b(D),d=r(l);d!==null&&(!(d.expirationTime>D)||B&&!H());){var z=d.callback;if(typeof z=="function"){d.callback=null,f=d.priorityLevel;var L=z(d.expirationTime<=D);D=t.unstable_now(),typeof L=="function"?d.callback=L:d===r(l)&&o(l),b(D)}else o(l);d=r(l)}if(d!==null)var G=!0;else{var Z=r(c);Z!==null&&W(k,Z.startTime-D),G=!1}return G}finally{d=null,f=U,h=!1}}var _=!1,S=null,C=-1,E=5,I=-1;function H(){return!(t.unstable_now()-IB||125z?(B.sortIndex=U,e(c,B),r(l)===null&&B===r(c)&&(p?(v(C),C=-1):p=!0,W(k,U-z))):(B.sortIndex=L,e(l,B),g||h||(g=!0,j(x))),B},t.unstable_shouldYield=H,t.unstable_wrapCallback=function(B){var D=f;return function(){var U=f;f=D;try{return B.apply(this,arguments)}finally{f=U}}}})(xC);_C.exports=xC;var gM=_C.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var CC=y,xr=gM;function Y(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xg=Object.prototype.hasOwnProperty,pM=/^[: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]*$/,by={},yy={};function mM(t){return Xg.call(yy,t)?!0:Xg.call(by,t)?!1:pM.test(t)?yy[t]=!0:(by[t]=!0,!1)}function vM(t,e,r,o){if(r!==null&&r.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return o?!1:r!==null?!r.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function bM(t,e,r,o){if(e===null||typeof e>"u"||vM(t,e,r,o))return!0;if(o)return!1;if(r!==null)switch(r.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function or(t,e,r,o,n,i,a){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=o,this.attributeNamespace=n,this.mustUseProperty=r,this.propertyName=t,this.type=e,this.sanitizeURL=i,this.removeEmptyString=a}var jt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){jt[t]=new or(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];jt[e]=new or(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){jt[t]=new or(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){jt[t]=new or(t,2,!1,t,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(t){jt[t]=new or(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){jt[t]=new or(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){jt[t]=new or(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){jt[t]=new or(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){jt[t]=new or(t,5,!1,t.toLowerCase(),null,!1,!1)});var Xv=/[\-:]([a-z])/g;function Yv(t){return t[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(t){var e=t.replace(Xv,Yv);jt[e]=new or(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Xv,Yv);jt[e]=new or(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Xv,Yv);jt[e]=new or(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){jt[t]=new or(t,1,!1,t.toLowerCase(),null,!1,!1)});jt.xlinkHref=new or("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){jt[t]=new or(t,1,!1,t.toLowerCase(),null,!0,!0)});function Zv(t,e,r,o){var n=jt.hasOwnProperty(e)?jt[e]:null;(n!==null?n.type!==0:o||!(2s||n[a]!==i[s]){var l=` -`+n[a].replace(" at new "," at ");return t.displayName&&l.includes("")&&(l=l.replace("",t.displayName)),l}while(1<=a&&0<=s);break}}}finally{kh=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?Hs(t):""}function yM(t){switch(t.tag){case 5:return Hs(t.type);case 16:return Hs("Lazy");case 13:return Hs("Suspense");case 19:return Hs("SuspenseList");case 0:case 2:case 15:return t=Sh(t.type,!1),t;case 11:return t=Sh(t.type.render,!1),t;case 1:return t=Sh(t.type,!0),t;default:return""}}function Jg(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case ga:return"Fragment";case ha:return"Portal";case Yg:return"Profiler";case Qv:return"StrictMode";case Zg:return"Suspense";case Qg:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case BC:return(t.displayName||"Context")+".Consumer";case EC:return(t._context.displayName||"Context")+".Provider";case Jv:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case e1:return e=t.displayName||null,e!==null?e:Jg(t.type)||"Memo";case kn:e=t._payload,t=t._init;try{return Jg(t(e))}catch{}}return null}function wM(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Jg(e);case 8:return e===Qv?"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 e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Kn(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function RC(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function kM(t){var e=RC(t)?"checked":"value",r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),o=""+t[e];if(!t.hasOwnProperty(e)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var n=r.get,i=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return n.call(this)},set:function(a){o=""+a,i.call(this,a)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return o},setValue:function(a){o=""+a},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function zc(t){t._valueTracker||(t._valueTracker=kM(t))}function AC(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),o="";return t&&(o=RC(t)?t.checked?"true":"false":t.value),t=o,t!==r?(e.setValue(t),!0):!1}function dd(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function ep(t,e){var r=e.checked;return et({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??t._wrapperState.initialChecked})}function ky(t,e){var r=e.defaultValue==null?"":e.defaultValue,o=e.checked!=null?e.checked:e.defaultChecked;r=Kn(e.value!=null?e.value:r),t._wrapperState={initialChecked:o,initialValue:r,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function NC(t,e){e=e.checked,e!=null&&Zv(t,"checked",e,!1)}function tp(t,e){NC(t,e);var r=Kn(e.value),o=e.type;if(r!=null)o==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+r):t.value!==""+r&&(t.value=""+r);else if(o==="submit"||o==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?rp(t,e.type,r):e.hasOwnProperty("defaultValue")&&rp(t,e.type,Kn(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function Sy(t,e,r){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var o=e.type;if(!(o!=="submit"&&o!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,r||e===t.value||(t.value=e),t.defaultValue=e}r=t.name,r!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,r!==""&&(t.name=r)}function rp(t,e,r){(e!=="number"||dd(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}var Us=Array.isArray;function Ia(t,e,r,o){if(t=t.options,e){e={};for(var n=0;n"+e.valueOf().toString()+"",e=Mc.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Cl(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var Js={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},SM=["Webkit","ms","Moz","O"];Object.keys(Js).forEach(function(t){SM.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Js[e]=Js[t]})});function OC(t,e,r){return e==null||typeof e=="boolean"||e===""?"":r||typeof e!="number"||e===0||Js.hasOwnProperty(t)&&Js[t]?(""+e).trim():e+"px"}function jC(t,e){t=t.style;for(var r in e)if(e.hasOwnProperty(r)){var o=r.indexOf("--")===0,n=OC(r,e[r],o);r==="float"&&(r="cssFloat"),o?t.setProperty(r,n):t[r]=n}}var _M=et({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 ip(t,e){if(e){if(_M[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(Y(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(Y(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(Y(61))}if(e.style!=null&&typeof e.style!="object")throw Error(Y(62))}}function ap(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){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 sp=null;function t1(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var lp=null,Ra=null,Aa=null;function Cy(t){if(t=mc(t)){if(typeof lp!="function")throw Error(Y(280));var e=t.stateNode;e&&(e=Bf(e),lp(t.stateNode,t.type,e))}}function DC(t){Ra?Aa?Aa.push(t):Aa=[t]:Ra=t}function FC(){if(Ra){var t=Ra,e=Aa;if(Aa=Ra=null,Cy(t),e)for(t=0;t>>=0,t===0?32:31-(zM(t)/MM|0)|0}var Oc=64,jc=4194304;function $s(t){switch(t&-t){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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function pd(t,e){var r=t.pendingLanes;if(r===0)return 0;var o=0,n=t.suspendedLanes,i=t.pingedLanes,a=r&268435455;if(a!==0){var s=a&~n;s!==0?o=$s(s):(i&=a,i!==0&&(o=$s(i)))}else a=r&~n,a!==0?o=$s(a):i!==0&&(o=$s(i));if(o===0)return 0;if(e!==0&&e!==o&&!(e&n)&&(n=o&-o,i=e&-e,n>=i||n===16&&(i&4194240)!==0))return e;if(o&4&&(o|=r&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=o;0r;r++)e.push(t);return e}function gc(t,e,r){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-oo(e),t[e]=r}function FM(t,e){var r=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var o=t.eventTimes;for(t=t.expirationTimes;0=tl),zy=" ",My=!1;function i2(t,e){switch(t){case"keyup":return hO.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function a2(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var pa=!1;function pO(t,e){switch(t){case"compositionend":return a2(e);case"keypress":return e.which!==32?null:(My=!0,zy);case"textInput":return t=e.data,t===zy&&My?null:t;default:return null}}function mO(t,e){if(pa)return t==="compositionend"||!c1&&i2(t,e)?(t=o2(),Cu=a1=Bn=null,pa=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:r,offset:e-t};t=o}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Fy(r)}}function u2(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?u2(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function d2(){for(var t=window,e=dd();e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch{r=!1}if(r)t=e.contentWindow;else break;e=dd(t.document)}return e}function u1(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function CO(t){var e=d2(),r=t.focusedElem,o=t.selectionRange;if(e!==r&&r&&r.ownerDocument&&u2(r.ownerDocument.documentElement,r)){if(o!==null&&u1(r)){if(e=o.start,t=o.end,t===void 0&&(t=e),"selectionStart"in r)r.selectionStart=e,r.selectionEnd=Math.min(t,r.value.length);else if(t=(e=r.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var n=r.textContent.length,i=Math.min(o.start,n);o=o.end===void 0?i:Math.min(o.end,n),!t.extend&&i>o&&(n=o,o=i,i=n),n=qy(r,i);var a=qy(r,o);n&&a&&(t.rangeCount!==1||t.anchorNode!==n.node||t.anchorOffset!==n.offset||t.focusNode!==a.node||t.focusOffset!==a.offset)&&(e=e.createRange(),e.setStart(n.node,n.offset),t.removeAllRanges(),i>o?(t.addRange(e),t.extend(a.node,a.offset)):(e.setEnd(a.node,a.offset),t.addRange(e)))}}for(e=[],t=r;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,ma=null,gp=null,ol=null,pp=!1;function Ly(t,e,r){var o=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;pp||ma==null||ma!==dd(o)||(o=ma,"selectionStart"in o&&u1(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),ol&&Al(ol,o)||(ol=o,o=bd(gp,"onSelect"),0ya||(t.current=kp[ya],kp[ya]=null,ya--)}function ze(t,e){ya++,kp[ya]=t.current,t.current=e}var Wn={},Wt=Jn(Wn),cr=Jn(!1),zi=Wn;function es(t,e){var r=t.type.contextTypes;if(!r)return Wn;var o=t.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===e)return o.__reactInternalMemoizedMaskedChildContext;var n={},i;for(i in r)n[i]=e[i];return o&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=n),n}function ur(t){return t=t.childContextTypes,t!=null}function wd(){Fe(cr),Fe(Wt)}function Gy(t,e,r){if(Wt.current!==Wn)throw Error(Y(168));ze(Wt,e),ze(cr,r)}function w2(t,e,r){var o=t.stateNode;if(e=e.childContextTypes,typeof o.getChildContext!="function")return r;o=o.getChildContext();for(var n in o)if(!(n in e))throw Error(Y(108,wM(t)||"Unknown",n));return et({},r,o)}function kd(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Wn,zi=Wt.current,ze(Wt,t),ze(cr,cr.current),!0}function Xy(t,e,r){var o=t.stateNode;if(!o)throw Error(Y(169));r?(t=w2(t,e,zi),o.__reactInternalMemoizedMergedChildContext=t,Fe(cr),Fe(Wt),ze(Wt,t)):Fe(cr),ze(cr,r)}var Lo=null,If=!1,Oh=!1;function k2(t){Lo===null?Lo=[t]:Lo.push(t)}function jO(t){If=!0,k2(t)}function ei(){if(!Oh&&Lo!==null){Oh=!0;var t=0,e=Be;try{var r=Lo;for(Be=1;t>=a,n-=a,Wo=1<<32-oo(e)+n|r<C?(E=S,S=null):E=S.sibling;var I=f(v,S,b[C],k);if(I===null){S===null&&(S=E);break}t&&S&&I.alternate===null&&e(v,S),m=i(I,m,C),_===null?x=I:_.sibling=I,_=I,S=E}if(C===b.length)return r(v,S),Ke&&si(v,C),x;if(S===null){for(;CC?(E=S,S=null):E=S.sibling;var H=f(v,S,I.value,k);if(H===null){S===null&&(S=E);break}t&&S&&H.alternate===null&&e(v,S),m=i(H,m,C),_===null?x=H:_.sibling=H,_=H,S=E}if(I.done)return r(v,S),Ke&&si(v,C),x;if(S===null){for(;!I.done;C++,I=b.next())I=d(v,I.value,k),I!==null&&(m=i(I,m,C),_===null?x=I:_.sibling=I,_=I);return Ke&&si(v,C),x}for(S=o(v,S);!I.done;C++,I=b.next())I=h(S,v,C,I.value,k),I!==null&&(t&&I.alternate!==null&&S.delete(I.key===null?C:I.key),m=i(I,m,C),_===null?x=I:_.sibling=I,_=I);return t&&S.forEach(function(T){return e(v,T)}),Ke&&si(v,C),x}function w(v,m,b,k){if(typeof b=="object"&&b!==null&&b.type===ga&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Pc:e:{for(var x=b.key,_=m;_!==null;){if(_.key===x){if(x=b.type,x===ga){if(_.tag===7){r(v,_.sibling),m=n(_,b.props.children),m.return=v,v=m;break e}}else if(_.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===kn&&rw(x)===_.type){r(v,_.sibling),m=n(_,b.props),m.ref=Ts(v,_,b),m.return=v,v=m;break e}r(v,_);break}else e(v,_);_=_.sibling}b.type===ga?(m=_i(b.props.children,v.mode,k,b.key),m.return=v,v=m):(k=Pu(b.type,b.key,b.props,null,v.mode,k),k.ref=Ts(v,m,b),k.return=v,v=k)}return a(v);case ha:e:{for(_=b.key;m!==null;){if(m.key===_)if(m.tag===4&&m.stateNode.containerInfo===b.containerInfo&&m.stateNode.implementation===b.implementation){r(v,m.sibling),m=n(m,b.children||[]),m.return=v,v=m;break e}else{r(v,m);break}else e(v,m);m=m.sibling}m=$h(b,v.mode,k),m.return=v,v=m}return a(v);case kn:return _=b._init,w(v,m,_(b._payload),k)}if(Us(b))return g(v,m,b,k);if(ks(b))return p(v,m,b,k);$c(v,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,m!==null&&m.tag===6?(r(v,m.sibling),m=n(m,b),m.return=v,v=m):(r(v,m),m=Uh(b,v.mode,k),m.return=v,v=m),a(v)):r(v,m)}return w}var rs=I2(!0),R2=I2(!1),vc={},Eo=Jn(vc),Ml=Jn(vc),Ol=Jn(vc);function bi(t){if(t===vc)throw Error(Y(174));return t}function y1(t,e){switch(ze(Ol,e),ze(Ml,t),ze(Eo,vc),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:np(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=np(e,t)}Fe(Eo),ze(Eo,e)}function os(){Fe(Eo),Fe(Ml),Fe(Ol)}function A2(t){bi(Ol.current);var e=bi(Eo.current),r=np(e,t.type);e!==r&&(ze(Ml,t),ze(Eo,r))}function w1(t){Ml.current===t&&(Fe(Eo),Fe(Ml))}var Ge=Jn(0);function Ed(t){for(var e=t;e!==null;){if(e.tag===13){var r=e.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var jh=[];function k1(){for(var t=0;tr?r:4,t(!0);var o=Dh.transition;Dh.transition={};try{t(!1),e()}finally{Be=r,Dh.transition=o}}function V2(){return Lr().memoizedState}function LO(t,e,r){var o=Dn(t);if(r={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null},G2(t))X2(e,r);else if(r=C2(t,e,r,o),r!==null){var n=er();no(r,t,o,n),Y2(r,e,o)}}function HO(t,e,r){var o=Dn(t),n={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null};if(G2(t))X2(e,n);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var a=e.lastRenderedState,s=i(a,r);if(n.hasEagerState=!0,n.eagerState=s,lo(s,a)){var l=e.interleaved;l===null?(n.next=n,v1(e)):(n.next=l.next,l.next=n),e.interleaved=n;return}}catch{}finally{}r=C2(t,e,n,o),r!==null&&(n=er(),no(r,t,o,n),Y2(r,e,o))}}function G2(t){var e=t.alternate;return t===Je||e!==null&&e===Je}function X2(t,e){nl=Bd=!0;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function Y2(t,e,r){if(r&4194240){var o=e.lanes;o&=t.pendingLanes,r|=o,e.lanes=r,o1(t,r)}}var Id={readContext:qr,useCallback:Dt,useContext:Dt,useEffect:Dt,useImperativeHandle:Dt,useInsertionEffect:Dt,useLayoutEffect:Dt,useMemo:Dt,useReducer:Dt,useRef:Dt,useState:Dt,useDebugValue:Dt,useDeferredValue:Dt,useTransition:Dt,useMutableSource:Dt,useSyncExternalStore:Dt,useId:Dt,unstable_isNewReconciler:!1},UO={readContext:qr,useCallback:function(t,e){return mo().memoizedState=[t,e===void 0?null:e],t},useContext:qr,useEffect:nw,useImperativeHandle:function(t,e,r){return r=r!=null?r.concat([t]):null,Iu(4194308,4,H2.bind(null,e,t),r)},useLayoutEffect:function(t,e){return Iu(4194308,4,t,e)},useInsertionEffect:function(t,e){return Iu(4,2,t,e)},useMemo:function(t,e){var r=mo();return e=e===void 0?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var o=mo();return e=r!==void 0?r(e):e,o.memoizedState=o.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},o.queue=t,t=t.dispatch=LO.bind(null,Je,t),[o.memoizedState,t]},useRef:function(t){var e=mo();return t={current:t},e.memoizedState=t},useState:ow,useDebugValue:T1,useDeferredValue:function(t){return mo().memoizedState=t},useTransition:function(){var t=ow(!1),e=t[0];return t=qO.bind(null,t[1]),mo().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,r){var o=Je,n=mo();if(Ke){if(r===void 0)throw Error(Y(407));r=r()}else{if(r=e(),It===null)throw Error(Y(349));Oi&30||z2(o,e,r)}n.memoizedState=r;var i={value:r,getSnapshot:e};return n.queue=i,nw(O2.bind(null,o,i,t),[t]),o.flags|=2048,Fl(9,M2.bind(null,o,i,r,e),void 0,null),r},useId:function(){var t=mo(),e=It.identifierPrefix;if(Ke){var r=Vo,o=Wo;r=(o&~(1<<32-oo(o)-1)).toString(32)+r,e=":"+e+"R"+r,r=jl++,0<\/script>",t=t.removeChild(t.firstChild)):typeof o.is=="string"?t=a.createElement(r,{is:o.is}):(t=a.createElement(r),r==="select"&&(a=t,o.multiple?a.multiple=!0:o.size&&(a.size=o.size))):t=a.createElementNS(t,r),t[ko]=e,t[zl]=o,iT(t,e,!1,!1),e.stateNode=t;e:{switch(a=ap(r,o),r){case"dialog":Oe("cancel",t),Oe("close",t),n=o;break;case"iframe":case"object":case"embed":Oe("load",t),n=o;break;case"video":case"audio":for(n=0;nis&&(e.flags|=128,o=!0,Es(i,!1),e.lanes=4194304)}else{if(!o)if(t=Ed(a),t!==null){if(e.flags|=128,o=!0,r=t.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),Es(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Ke)return Ft(e),null}else 2*ct()-i.renderingStartTime>is&&r!==1073741824&&(e.flags|=128,o=!0,Es(i,!1),e.lanes=4194304);i.isBackwards?(a.sibling=e.child,e.child=a):(r=i.last,r!==null?r.sibling=a:e.child=a,i.last=a)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=ct(),e.sibling=null,r=Ge.current,ze(Ge,o?r&1|2:r&1),e):(Ft(e),null);case 22:case 23:return N1(),o=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==o&&(e.flags|=8192),o&&e.mode&1?mr&1073741824&&(Ft(e),e.subtreeFlags&6&&(e.flags|=8192)):Ft(e),null;case 24:return null;case 25:return null}throw Error(Y(156,e.tag))}function ZO(t,e){switch(f1(e),e.tag){case 1:return ur(e.type)&&wd(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return os(),Fe(cr),Fe(Wt),k1(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return w1(e),null;case 13:if(Fe(Ge),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(Y(340));ts()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Fe(Ge),null;case 4:return os(),null;case 10:return m1(e.type._context),null;case 22:case 23:return N1(),null;case 24:return null;default:return null}}var Wc=!1,Ht=!1,QO=typeof WeakSet=="function"?WeakSet:Set,ne=null;function _a(t,e){var r=t.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(o){it(t,e,o)}else r.current=null}function Pp(t,e,r){try{r()}catch(o){it(t,e,o)}}var hw=!1;function JO(t,e){if(mp=md,t=d2(),u1(t)){if("selectionStart"in t)var r={start:t.selectionStart,end:t.selectionEnd};else e:{r=(r=t.ownerDocument)&&r.defaultView||window;var o=r.getSelection&&r.getSelection();if(o&&o.rangeCount!==0){r=o.anchorNode;var n=o.anchorOffset,i=o.focusNode;o=o.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,s=-1,l=-1,c=0,u=0,d=t,f=null;t:for(;;){for(var h;d!==r||n!==0&&d.nodeType!==3||(s=a+n),d!==i||o!==0&&d.nodeType!==3||(l=a+o),d.nodeType===3&&(a+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===t)break t;if(f===r&&++c===n&&(s=a),f===i&&++u===o&&(l=a),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(vp={focusedElem:t,selectionRange:r},md=!1,ne=e;ne!==null;)if(e=ne,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ne=t;else for(;ne!==null;){e=ne;try{var g=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var p=g.memoizedProps,w=g.memoizedState,v=e.stateNode,m=v.getSnapshotBeforeUpdate(e.elementType===e.type?p:Wr(e.type,p),w);v.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var b=e.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Y(163))}}catch(k){it(e,e.return,k)}if(t=e.sibling,t!==null){t.return=e.return,ne=t;break}ne=e.return}return g=hw,hw=!1,g}function il(t,e,r){var o=e.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var n=o=o.next;do{if((n.tag&t)===t){var i=n.destroy;n.destroy=void 0,i!==void 0&&Pp(e,r,i)}n=n.next}while(n!==o)}}function Nf(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var r=e=e.next;do{if((r.tag&t)===t){var o=r.create;r.destroy=o()}r=r.next}while(r!==e)}}function zp(t){var e=t.ref;if(e!==null){var r=t.stateNode;switch(t.tag){case 5:t=r;break;default:t=r}typeof e=="function"?e(t):e.current=t}}function lT(t){var e=t.alternate;e!==null&&(t.alternate=null,lT(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[ko],delete e[zl],delete e[wp],delete e[MO],delete e[OO])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function cT(t){return t.tag===5||t.tag===3||t.tag===4}function gw(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||cT(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Mp(t,e,r){var o=t.tag;if(o===5||o===6)t=t.stateNode,e?r.nodeType===8?r.parentNode.insertBefore(t,e):r.insertBefore(t,e):(r.nodeType===8?(e=r.parentNode,e.insertBefore(t,r)):(e=r,e.appendChild(t)),r=r._reactRootContainer,r!=null||e.onclick!==null||(e.onclick=yd));else if(o!==4&&(t=t.child,t!==null))for(Mp(t,e,r),t=t.sibling;t!==null;)Mp(t,e,r),t=t.sibling}function Op(t,e,r){var o=t.tag;if(o===5||o===6)t=t.stateNode,e?r.insertBefore(t,e):r.appendChild(t);else if(o!==4&&(t=t.child,t!==null))for(Op(t,e,r),t=t.sibling;t!==null;)Op(t,e,r),t=t.sibling}var Pt=null,Gr=!1;function bn(t,e,r){for(r=r.child;r!==null;)uT(t,e,r),r=r.sibling}function uT(t,e,r){if(To&&typeof To.onCommitFiberUnmount=="function")try{To.onCommitFiberUnmount(xf,r)}catch{}switch(r.tag){case 5:Ht||_a(r,e);case 6:var o=Pt,n=Gr;Pt=null,bn(t,e,r),Pt=o,Gr=n,Pt!==null&&(Gr?(t=Pt,r=r.stateNode,t.nodeType===8?t.parentNode.removeChild(r):t.removeChild(r)):Pt.removeChild(r.stateNode));break;case 18:Pt!==null&&(Gr?(t=Pt,r=r.stateNode,t.nodeType===8?Mh(t.parentNode,r):t.nodeType===1&&Mh(t,r),Il(t)):Mh(Pt,r.stateNode));break;case 4:o=Pt,n=Gr,Pt=r.stateNode.containerInfo,Gr=!0,bn(t,e,r),Pt=o,Gr=n;break;case 0:case 11:case 14:case 15:if(!Ht&&(o=r.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){n=o=o.next;do{var i=n,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Pp(r,e,a),n=n.next}while(n!==o)}bn(t,e,r);break;case 1:if(!Ht&&(_a(r,e),o=r.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=r.memoizedProps,o.state=r.memoizedState,o.componentWillUnmount()}catch(s){it(r,e,s)}bn(t,e,r);break;case 21:bn(t,e,r);break;case 22:r.mode&1?(Ht=(o=Ht)||r.memoizedState!==null,bn(t,e,r),Ht=o):bn(t,e,r);break;default:bn(t,e,r)}}function pw(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var r=t.stateNode;r===null&&(r=t.stateNode=new QO),e.forEach(function(o){var n=lj.bind(null,t,o);r.has(o)||(r.add(o),o.then(n,n))})}}function Hr(t,e){var r=e.deletions;if(r!==null)for(var o=0;on&&(n=a),o&=~i}if(o=n,o=ct()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*tj(o/1960))-o,10t?16:t,In===null)var o=!1;else{if(t=In,In=null,Nd=0,Ce&6)throw Error(Y(331));var n=Ce;for(Ce|=4,ne=t.current;ne!==null;){var i=ne,a=i.child;if(ne.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lct()-R1?Si(t,0):I1|=r),dr(t,e)}function bT(t,e){e===0&&(t.mode&1?(e=jc,jc<<=1,!(jc&130023424)&&(jc=4194304)):e=1);var r=er();t=ln(t,e),t!==null&&(gc(t,e,r),dr(t,r))}function sj(t){var e=t.memoizedState,r=0;e!==null&&(r=e.retryLane),bT(t,r)}function lj(t,e){var r=0;switch(t.tag){case 13:var o=t.stateNode,n=t.memoizedState;n!==null&&(r=n.retryLane);break;case 19:o=t.stateNode;break;default:throw Error(Y(314))}o!==null&&o.delete(e),bT(t,r)}var yT;yT=function(t,e,r){if(t!==null)if(t.memoizedProps!==e.pendingProps||cr.current)lr=!0;else{if(!(t.lanes&r)&&!(e.flags&128))return lr=!1,XO(t,e,r);lr=!!(t.flags&131072)}else lr=!1,Ke&&e.flags&1048576&&S2(e,_d,e.index);switch(e.lanes=0,e.tag){case 2:var o=e.type;Ru(t,e),t=e.pendingProps;var n=es(e,Wt.current);Pa(e,r),n=_1(null,e,o,t,n,r);var i=x1();return e.flags|=1,typeof n=="object"&&n!==null&&typeof n.render=="function"&&n.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,ur(o)?(i=!0,kd(e)):i=!1,e.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,b1(e),n.updater=Rf,e.stateNode=n,n._reactInternals=e,Tp(e,o,t,r),e=Ip(null,e,o,!0,i,r)):(e.tag=0,Ke&&i&&d1(e),Vt(null,e,n,r),e=e.child),e;case 16:o=e.elementType;e:{switch(Ru(t,e),t=e.pendingProps,n=o._init,o=n(o._payload),e.type=o,n=e.tag=uj(o),t=Wr(o,t),n){case 0:e=Bp(null,e,o,t,r);break e;case 1:e=uw(null,e,o,t,r);break e;case 11:e=lw(null,e,o,t,r);break e;case 14:e=cw(null,e,o,Wr(o.type,t),r);break e}throw Error(Y(306,o,""))}return e;case 0:return o=e.type,n=e.pendingProps,n=e.elementType===o?n:Wr(o,n),Bp(t,e,o,n,r);case 1:return o=e.type,n=e.pendingProps,n=e.elementType===o?n:Wr(o,n),uw(t,e,o,n,r);case 3:e:{if(rT(e),t===null)throw Error(Y(387));o=e.pendingProps,i=e.memoizedState,n=i.element,T2(t,e),Td(e,o,null,r);var a=e.memoizedState;if(o=a.element,i.isDehydrated)if(i={element:o,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){n=ns(Error(Y(423)),e),e=dw(t,e,o,r,n);break e}else if(o!==n){n=ns(Error(Y(424)),e),e=dw(t,e,o,r,n);break e}else for(br=Mn(e.stateNode.containerInfo.firstChild),Sr=e,Ke=!0,Yr=null,r=R2(e,null,o,r),e.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(ts(),o===n){e=cn(t,e,r);break e}Vt(t,e,o,r)}e=e.child}return e;case 5:return A2(e),t===null&&_p(e),o=e.type,n=e.pendingProps,i=t!==null?t.memoizedProps:null,a=n.children,bp(o,n)?a=null:i!==null&&bp(o,i)&&(e.flags|=32),tT(t,e),Vt(t,e,a,r),e.child;case 6:return t===null&&_p(e),null;case 13:return oT(t,e,r);case 4:return y1(e,e.stateNode.containerInfo),o=e.pendingProps,t===null?e.child=rs(e,null,o,r):Vt(t,e,o,r),e.child;case 11:return o=e.type,n=e.pendingProps,n=e.elementType===o?n:Wr(o,n),lw(t,e,o,n,r);case 7:return Vt(t,e,e.pendingProps,r),e.child;case 8:return Vt(t,e,e.pendingProps.children,r),e.child;case 12:return Vt(t,e,e.pendingProps.children,r),e.child;case 10:e:{if(o=e.type._context,n=e.pendingProps,i=e.memoizedProps,a=n.value,ze(xd,o._currentValue),o._currentValue=a,i!==null)if(lo(i.value,a)){if(i.children===n.children&&!cr.current){e=cn(t,e,r);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===o){if(i.tag===1){l=Zo(-1,r&-r),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=r,l=i.alternate,l!==null&&(l.lanes|=r),xp(i.return,r,e),s.lanes|=r;break}l=l.next}}else if(i.tag===10)a=i.type===e.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(Y(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),xp(a,r,e),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===e){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Vt(t,e,n.children,r),e=e.child}return e;case 9:return n=e.type,o=e.pendingProps.children,Pa(e,r),n=qr(n),o=o(n),e.flags|=1,Vt(t,e,o,r),e.child;case 14:return o=e.type,n=Wr(o,e.pendingProps),n=Wr(o.type,n),cw(t,e,o,n,r);case 15:return J2(t,e,e.type,e.pendingProps,r);case 17:return o=e.type,n=e.pendingProps,n=e.elementType===o?n:Wr(o,n),Ru(t,e),e.tag=1,ur(o)?(t=!0,kd(e)):t=!1,Pa(e,r),B2(e,o,n),Tp(e,o,n,r),Ip(null,e,o,!0,t,r);case 19:return nT(t,e,r);case 22:return eT(t,e,r)}throw Error(Y(156,e.tag))};function wT(t,e){return WC(t,e)}function cj(t,e,r,o){this.tag=t,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Or(t,e,r,o){return new cj(t,e,r,o)}function z1(t){return t=t.prototype,!(!t||!t.isReactComponent)}function uj(t){if(typeof t=="function")return z1(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Jv)return 11;if(t===e1)return 14}return 2}function Fn(t,e){var r=t.alternate;return r===null?(r=Or(t.tag,e,t.key,t.mode),r.elementType=t.elementType,r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=e,r.type=t.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=t.flags&14680064,r.childLanes=t.childLanes,r.lanes=t.lanes,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,e=t.dependencies,r.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r}function Pu(t,e,r,o,n,i){var a=2;if(o=t,typeof t=="function")z1(t)&&(a=1);else if(typeof t=="string")a=5;else e:switch(t){case ga:return _i(r.children,n,i,e);case Qv:a=8,n|=8;break;case Yg:return t=Or(12,r,e,n|2),t.elementType=Yg,t.lanes=i,t;case Zg:return t=Or(13,r,e,n),t.elementType=Zg,t.lanes=i,t;case Qg:return t=Or(19,r,e,n),t.elementType=Qg,t.lanes=i,t;case IC:return zf(r,n,i,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case EC:a=10;break e;case BC:a=9;break e;case Jv:a=11;break e;case e1:a=14;break e;case kn:a=16,o=null;break e}throw Error(Y(130,t==null?t:typeof t,""))}return e=Or(a,r,e,n),e.elementType=t,e.type=o,e.lanes=i,e}function _i(t,e,r,o){return t=Or(7,t,o,e),t.lanes=r,t}function zf(t,e,r,o){return t=Or(22,t,o,e),t.elementType=IC,t.lanes=r,t.stateNode={isHidden:!1},t}function Uh(t,e,r){return t=Or(6,t,null,e),t.lanes=r,t}function $h(t,e,r){return e=Or(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function dj(t,e,r,o,n){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=xh(0),this.expirationTimes=xh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xh(0),this.identifierPrefix=o,this.onRecoverableError=n,this.mutableSourceEagerHydrationData=null}function M1(t,e,r,o,n,i,a,s,l){return t=new dj(t,e,r,s,l),e===1?(e=1,i===!0&&(e|=8)):e=0,i=Or(3,null,null,e),t.current=i,i.stateNode=t,i.memoizedState={element:o,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},b1(i),t}function fj(t,e,r){var o=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(xT)}catch(t){console.error(t)}}xT(),SC.exports=Tr;var F1=SC.exports;const Xc=Ro(F1),vj=t=>y.createElement("span",{hidden:!0,ref:t.virtualParentRootRef},t.mountNode&&F1.createPortal(t.children,t.mountNode)),Gi=t=>{const e=hM(t);return vj(e)};Gi.displayName="Portal";const bj=t=>{const e=ke(t.root,{children:[t.withArrow&&O("div",{ref:t.arrowRef,className:t.arrowClassName}),t.root.children]});return t.inline?e:O(Gi,{mountNode:t.mountNode,children:e})},yj={root:"fui-PopoverSurface"},wj={small:6,medium:8,large:8},kj=q({root:{sj55zd:"f19n0e5",De3pzq:"fxugw4r",E5pizo:"f1hg901r",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B4j52fo:"f5ogflp",Bekrc4i:["f1hqa2wf","finvdd3"],Bn0qgzm:"f1f09k3d",ibv6hh:["finvdd3","f1hqa2wf"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B93otf3:"f18k4bn6",vin17d:"fo1kyvf",Ezkn3b:"fetxo7e",nyiy2g:"f8x1vz1",swvrvq:"f8g0anz",Bkovbt3:"fezwn9i",hgjdhn:"fz5efge",fsy9dk:"f1ydixl4",B3ogreh:"f8dgqj5",jv49x5:"fnyfnr8",Bk7o48c:"fgw77r4",Bv12yb3:"ftje0s4",z0t1cu:"fi19xcv",Bks05zx:"f1mzajhk",Bvtglag:"fjp4h9y"},inline:{Bj3rh1h:"f19g0ac"},inverted:{De3pzq:"fg3r6xk",sj55zd:"fonrgv7"},brand:{De3pzq:"ffp7eso",sj55zd:"f1phragk"},smallPadding:{z8tnut:"f1kcqot9",z189sj:["f11qrl6u","fjlbh76"],Byoj8tv:"fpe6lb7",uwmqm3:["fjlbh76","f11qrl6u"]},mediumPadding:{z8tnut:"fqag9an",z189sj:["f1gbmcue","f1rh9g5y"],Byoj8tv:"fp67ikv",uwmqm3:["f1rh9g5y","f1gbmcue"]},largePadding:{z8tnut:"fc7z3ec",z189sj:["fat0sn4","fekwl8i"],Byoj8tv:"fe2my4m",uwmqm3:["fekwl8i","fat0sn4"]},smallArrow:{a9b677:"f1ekdpwm",Bqenvij:"f83vc9z"},mediumLargeArrow:{a9b677:"f1kmc0fn",Bqenvij:"fb6lvc5"},arrow:{qhf8xq:"f1euv43f",De3pzq:"f1u2r49w",Bcdw1i0:"fd7fpy0",Bj3rh1h:"f1bsuimh",Ftih45:"f1wl9k8s",B1puzpu:"f1wkw4r9",Brfgrao:"f1j7ml58",Bcvre1j:"fyl8oag",Ccq8qp:"frdoeuz",Baz25je:"fb81m9q",cmx5o7:"f1ljr5q2",B4f6apu:"fyfemzf",m598lv:"focyt6c",Bk5zm6e:"fnhxbxj",y0oebl:"fdw6hkg",qa3bma:"f11yjt3y",Bqjgrrk:"f1172wan",Budzafs:["f9e5op9","f112wvtl"],Hv9wc6:"f16cagkn",hl6cv3:"f1773hnp",c8svkw:"fw7o64x",yayu3t:"f1v7783n",nr3p0k:"f1f0d6v",rhl9o9:"fh2hsk5",wiz9v7:"f1gj3y7g",B6q6orb:"f11yvu4",ndpsmx:"f17lejdj"}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1hg901r{box-shadow:var(--shadow16);}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f5ogflp{border-top-width:1px;}",".f1hqa2wf{border-right-width:1px;}",".finvdd3{border-left-width:1px;}",".f1f09k3d{border-bottom-width:1px;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f18k4bn6{animation-composition:accumulate;}",".fo1kyvf{animation-duration:var(--durationSlower);}",".fetxo7e{animation-timing-function:var(--curveDecelerateMid);}",".f8x1vz1{--fui-positioning-slide-distance-x:0px;}",".f8g0anz{--fui-positioning-slide-distance-y:10px;}",".fezwn9i[data-popper-placement^=right]{--fui-positioning-slide-distance-x:-10px;}",".fz5efge[data-popper-placement^=right]{--fui-positioning-slide-distance-y:0px;}",".f1ydixl4[data-popper-placement^=bottom]{--fui-positioning-slide-distance-x:0px;}",".f8dgqj5[data-popper-placement^=bottom]{--fui-positioning-slide-distance-y:-10px;}",".fnyfnr8[data-popper-placement^=left]{--fui-positioning-slide-distance-x:10px;}",".fgw77r4[data-popper-placement^=left]{--fui-positioning-slide-distance-y:0px;}",".ftje0s4{animation-name:f5j8bii,f79suad;}",".f19g0ac{z-index:1;}",".fg3r6xk{background-color:var(--colorNeutralBackgroundStatic);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".f1kcqot9{padding-top:12px;}",".f11qrl6u{padding-right:12px;}",".fjlbh76{padding-left:12px;}",".fpe6lb7{padding-bottom:12px;}",".fqag9an{padding-top:16px;}",".f1gbmcue{padding-right:16px;}",".f1rh9g5y{padding-left:16px;}",".fp67ikv{padding-bottom:16px;}",".fc7z3ec{padding-top:20px;}",".fat0sn4{padding-right:20px;}",".fekwl8i{padding-left:20px;}",".fe2my4m{padding-bottom:20px;}",".f1ekdpwm{width:8.484px;}",".f83vc9z{height:8.484px;}",".f1kmc0fn{width:11.312px;}",".fb6lvc5{height:11.312px;}",".f1euv43f{position:absolute;}",".f1u2r49w{background-color:inherit;}",".fd7fpy0{visibility:hidden;}",".f1bsuimh{z-index:-1;}",'.f1wl9k8s::before{content:"";}',".f1wkw4r9::before{visibility:visible;}",".f1j7ml58::before{position:absolute;}",".fyl8oag::before{box-sizing:border-box;}",".frdoeuz::before{width:inherit;}",".fb81m9q::before{height:inherit;}",".f1ljr5q2::before{background-color:inherit;}",".fyfemzf::before{border-right-width:1px;}",".focyt6c::before{border-right-style:solid;}",".fnhxbxj::before{border-right-color:var(--colorTransparentStroke);}",".fdw6hkg::before{border-bottom-width:1px;}",".f11yjt3y::before{border-bottom-style:solid;}",".f1172wan::before{border-bottom-color:var(--colorTransparentStroke);}",".f9e5op9::before{border-bottom-right-radius:var(--borderRadiusSmall);}",".f112wvtl::before{border-bottom-left-radius:var(--borderRadiusSmall);}",".f16cagkn::before{transform:rotate(var(--fui-positioning-angle)) translate(0, 50%) rotate(45deg);}",'[data-popper-placement^="top"] .f1773hnp{bottom:-1px;}','[data-popper-placement^="top"] .fw7o64x{--fui-positioning-angle:0;}','[data-popper-placement^="right"] .f1v7783n{left:-1px;}','[data-popper-placement^="right"] .f1f0d6v{--fui-positioning-angle:90deg;}','[data-popper-placement^="bottom"] .fh2hsk5{top:-1px;}','[data-popper-placement^="bottom"] .f1gj3y7g{--fui-positioning-angle:180deg;}','[data-popper-placement^="left"] .f11yvu4{right:-1px;}','[data-popper-placement^="left"] .f17lejdj{--fui-positioning-angle:270deg;}'],k:["@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}","@keyframes f79suad{from{transform:translate(var(--fui-positioning-slide-distance-x), var(--fui-positioning-slide-distance-y));}}"],m:[["@media (prefers-reduced-motion){.fi19xcv[data-popper-placement]{animation-duration:1ms;}}",{m:"(prefers-reduced-motion)"}],["@media (prefers-reduced-motion){.f1mzajhk[data-popper-placement]{animation-name:f5j8bii;}}",{m:"(prefers-reduced-motion)"}]],t:["@supports not (animation-composition: accumulate){.fjp4h9y[data-popper-placement]{animation-name:f5j8bii;}}"]}),Sj=t=>{const e=kj();return t.root.className=A(yj.root,e.root,t.inline&&e.inline,t.size==="small"&&e.smallPadding,t.size==="medium"&&e.mediumPadding,t.size==="large"&&e.largePadding,t.appearance==="inverted"&&e.inverted,t.appearance==="brand"&&e.brand,t.root.className),t.arrowClassName=A(e.arrow,t.size==="small"?e.smallArrow:e.mediumLargeArrow),t},_j=y.forwardRef((t,e)=>{const r=iM(t,e);return Sj(r),ue("usePopoverSurfaceStyles_unstable")(r),bj(r)});_j.displayName="PopoverSurface";const xj=4,Cj=t=>{const[e,r]=wC(),o={size:"medium",contextTarget:e,setContextTarget:r,...t},n=y.Children.toArray(t.children);let i,a;n.length===2?(i=n[0],a=n[1]):n.length===1&&(a=n[0]);const[s,l]=Tj(o),c=y.useRef(0),u=Q((b,k)=>{if(clearTimeout(c.current),!(b instanceof Event)&&b.persist&&b.persist(),b.type==="mouseleave"){var x;c.current=setTimeout(()=>{l(b,k)},(x=t.mouseLeaveDelay)!==null&&x!==void 0?x:500)}else l(b,k)});y.useEffect(()=>()=>{clearTimeout(c.current)},[]);const d=y.useCallback(b=>{u(b,!s)},[u,s]),f=Ej(o),{targetDocument:h}=Pe();var g;yx({contains:wl,element:h,callback:b=>u(b,!1),refs:[f.triggerRef,f.contentRef],disabled:!s,disabledFocusOnIframe:!(!((g=t.closeOnIframeFocus)!==null&&g!==void 0)||g)});const p=o.openOnContext||o.closeOnScroll;wx({contains:wl,element:h,callback:b=>u(b,!1),refs:[f.triggerRef,f.contentRef],disabled:!s||!p});const{findFirstFocusable:w}=Ao();y.useEffect(()=>{if(!t.unstable_disableAutoFocus&&s&&f.contentRef.current){var b;const k=(b=f.contentRef.current.getAttribute("tabIndex"))!==null&&b!==void 0?b:void 0,x=isNaN(k)?w(f.contentRef.current):f.contentRef.current;x?.focus()}},[w,s,f.contentRef,t.unstable_disableAutoFocus]);var v,m;return{...o,...f,inertTrapFocus:(v=t.inertTrapFocus)!==null&&v!==void 0?v:t.legacyTrapFocus===void 0?!1:!t.legacyTrapFocus,popoverTrigger:i,popoverSurface:a,open:s,setOpen:u,toggleOpen:d,setContextTarget:r,contextTarget:e,inline:(m=t.inline)!==null&&m!==void 0?m:!1}};function Tj(t){const e=Q((a,s)=>{var l;return(l=t.onOpenChange)===null||l===void 0?void 0:l.call(t,a,s)}),[r,o]=Tt({state:t.open,defaultState:t.defaultOpen,initialState:!1});t.open=r!==void 0?r:t.open;const n=t.setContextTarget,i=y.useCallback((a,s)=>{s&&a.type==="contextmenu"&&n(a),s||n(void 0),o(s),e?.(a,{open:s})},[o,e,n]);return[r,i]}function Ej(t){const e={position:"above",align:"center",arrowPadding:2*xj,target:t.openOnContext?t.contextTarget:void 0,...hc(t.positioning)};e.coverTarget&&(t.withArrow=!1),t.withArrow&&(e.offset=bC(e.offset,wj[t.size]));const{targetRef:r,containerRef:o,arrowRef:n}=_f(e);return{triggerRef:r,contentRef:o,arrowRef:n}}const Bj=t=>{const{appearance:e,arrowRef:r,contentRef:o,inline:n,mountNode:i,open:a,openOnContext:s,openOnHover:l,setOpen:c,size:u,toggleOpen:d,trapFocus:f,triggerRef:h,withArrow:g,inertTrapFocus:p}=t;return y.createElement(Gv.Provider,{value:{appearance:e,arrowRef:r,contentRef:o,inline:n,mountNode:i,open:a,openOnContext:s,openOnHover:l,setOpen:c,toggleOpen:d,triggerRef:h,size:u,trapFocus:f,inertTrapFocus:p,withArrow:g}},t.popoverTrigger,t.open&&t.popoverSurface)},Ij=t=>{const e=Cj(t);return Bj(e)};Ij.displayName="Popover";const Rj=t=>{const{children:e,disableButtonEnhancement:r=!1}=t,o=ac(e),n=zt(b=>b.open),i=zt(b=>b.setOpen),a=zt(b=>b.toggleOpen),s=zt(b=>b.triggerRef),l=zt(b=>b.openOnHover),c=zt(b=>b.openOnContext),{triggerAttributes:u}=mf(),d=b=>{c&&(b.preventDefault(),i(b,!0))},f=b=>{c||a(b)},h=b=>{b.key===No&&n&&!b.isDefaultPrevented()&&(i(b,!1),b.preventDefault())},g=b=>{l&&i(b,!0)},p=b=>{l&&i(b,!1)},w={...u,"aria-expanded":`${n}`,...o?.props,onMouseEnter:Q(de(o?.props.onMouseEnter,g)),onMouseLeave:Q(de(o?.props.onMouseLeave,p)),onContextMenu:Q(de(o?.props.onContextMenu,d)),ref:Re(s,o?.ref)},v={...w,onClick:Q(de(o?.props.onClick,f)),onKeyDown:Q(de(o?.props.onKeyDown,h))},m=Ni(o?.type==="button"||o?.type==="a"?o.type:"div",v);return{children:hf(t.children,Ni(o?.type==="button"||o?.type==="a"?o.type:"div",c?w:r?v:m))}},Aj=t=>t.children,CT=t=>{const e=Rj(t);return Aj(e)};CT.displayName="PopoverTrigger";CT.isFluentTriggerComponent=!0;const Nj=6,Pj=4,zj=t=>{var e,r,o,n;const i=cN(),a=eN(),{targetDocument:s}=Pe(),[l,c]=yl(),{appearance:u="normal",children:d,content:f,withArrow:h=!1,positioning:g="above",onVisibleChange:p,relationship:w,showDelay:v=250,hideDelay:m=250,mountNode:b}=t,[k,x]=Tt({state:t.visible,initialState:!1}),_=y.useCallback((B,D)=>{c(),x(U=>(D.visible!==U&&p?.(B,D),D.visible))},[c,x,p]),S={withArrow:h,positioning:g,showDelay:v,hideDelay:m,relationship:w,visible:k,shouldRenderTooltip:k,appearance:u,mountNode:b,components:{content:"div"},content:te(f,{defaultProps:{role:"tooltip"},elementType:"div"})};S.content.id=Rt("tooltip-",S.content.id);const C={enabled:S.visible,arrowPadding:2*Pj,position:"above",align:"center",offset:4,...hc(S.positioning)};S.withArrow&&(C.offset=bC(C.offset,Nj));const{targetRef:E,containerRef:I,arrowRef:H}=_f(C);S.content.ref=Re(S.content.ref,I),S.arrowRef=H,Qt(()=>{if(k){var B;const D={hide:z=>_(void 0,{visible:!1,documentKeyboardEvent:z})};(B=i.visibleTooltip)===null||B===void 0||B.hide(),i.visibleTooltip=D;const U=z=>{z.key===No&&!z.defaultPrevented&&(D.hide(z),z.preventDefault())};return s?.addEventListener("keydown",U,{capture:!0}),()=>{i.visibleTooltip===D&&(i.visibleTooltip=void 0),s?.removeEventListener("keydown",U,{capture:!0})}}},[i,s,k,_]);const T=y.useRef(!1),R=y.useCallback(B=>{if(B.type==="focus"&&T.current){T.current=!1;return}const D=i.visibleTooltip?0:S.showDelay;l(()=>{_(B,{visible:!0})},D),B.persist()},[l,_,S.showDelay,i]),[M]=y.useState(()=>{const B=U=>{var z;!((z=U.detail)===null||z===void 0)&&z.isFocusedProgrammatically&&(T.current=!0)};let D=null;return U=>{D?.removeEventListener(so,B),U?.addEventListener(so,B),D=U}}),P=y.useCallback(B=>{let D=S.hideDelay;B.type==="blur"&&(D=0,T.current=s?.activeElement===B.target),l(()=>{_(B,{visible:!1})},D),B.persist()},[l,_,S.hideDelay,s]);S.content.onPointerEnter=de(S.content.onPointerEnter,c),S.content.onPointerLeave=de(S.content.onPointerLeave,P),S.content.onFocus=de(S.content.onFocus,c),S.content.onBlur=de(S.content.onBlur,P);const j=ac(d),W={};return w==="label"?typeof S.content.children=="string"?W["aria-label"]=S.content.children:(W["aria-labelledby"]=S.content.id,S.shouldRenderTooltip=!0):w==="description"&&(W["aria-describedby"]=S.content.id,S.shouldRenderTooltip=!0),a&&(S.shouldRenderTooltip=!1),S.children=hf(d,{...W,...j?.props,ref:Re(j?.ref,M,C.target===void 0?E:void 0),onPointerEnter:Q(de(j==null||(e=j.props)===null||e===void 0?void 0:e.onPointerEnter,R)),onPointerLeave:Q(de(j==null||(r=j.props)===null||r===void 0?void 0:r.onPointerLeave,P)),onFocus:Q(de(j==null||(o=j.props)===null||o===void 0?void 0:o.onFocus,R)),onBlur:Q(de(j==null||(n=j.props)===null||n===void 0?void 0:n.onBlur,P))}),S},Mj=t=>ke(y.Fragment,{children:[t.children,t.shouldRenderTooltip&&O(Gi,{mountNode:t.mountNode,children:ke(t.content,{children:[t.withArrow&&O("div",{ref:t.arrowRef,className:t.arrowClassName}),t.content.children]})})]}),Oj={content:"fui-Tooltip__content"},jj=q({root:{mc9l5x:"fjseox",B7ck84d:"f1ewtqcl",B2u0y6b:"f132xexn",Bceei9c:"f158kwzp",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm",Btd35i7:"fokg9q4",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B4j52fo:"f5ogflp",Bekrc4i:["f1hqa2wf","finvdd3"],Bn0qgzm:"f1f09k3d",ibv6hh:["finvdd3","f1hqa2wf"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"],z8tnut:"f10ra9hq",z189sj:["fd9xhir","f1jlaasf"],Byoj8tv:"f1d7kygh",uwmqm3:["f1jlaasf","fd9xhir"],De3pzq:"fxugw4r",sj55zd:"f19n0e5",Bhu2qc9:"fxeb0a7"},visible:{mc9l5x:"ftgm304"},inverted:{De3pzq:"fg3r6xk",sj55zd:"fonrgv7"},arrow:{qhf8xq:"f1euv43f",De3pzq:"f1u2r49w",Bcdw1i0:"fd7fpy0",Bj3rh1h:"f1bsuimh",a9b677:"f1ekdpwm",Bqenvij:"f83vc9z",Ftih45:"f1wl9k8s",B1puzpu:"f1wkw4r9",Brfgrao:"f1j7ml58",Bcvre1j:"fyl8oag",Ccq8qp:"frdoeuz",Baz25je:"fb81m9q",cmx5o7:"f1ljr5q2",B4f6apu:"fyfemzf",m598lv:"focyt6c",Bk5zm6e:"fnhxbxj",y0oebl:"fdw6hkg",qa3bma:"f11yjt3y",Bqjgrrk:"f1172wan",Budzafs:["f9e5op9","f112wvtl"],Hv9wc6:"f16cagkn",hl6cv3:"f1773hnp",c8svkw:"fw7o64x",yayu3t:"f1v7783n",nr3p0k:"f1f0d6v",rhl9o9:"fh2hsk5",wiz9v7:"f1gj3y7g",B6q6orb:"f11yvu4",ndpsmx:"f17lejdj"}},{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;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f5ogflp{border-top-width:1px;}",".f1hqa2wf{border-right-width:1px;}",".finvdd3{border-left-width:1px;}",".f1f09k3d{border-bottom-width:1px;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".f10ra9hq{padding-top:4px;}",".fd9xhir{padding-right:11px;}",".f1jlaasf{padding-left:11px;}",".f1d7kygh{padding-bottom:6px;}",".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;}",".f1u2r49w{background-color:inherit;}",".fd7fpy0{visibility:hidden;}",".f1bsuimh{z-index:-1;}",".f1ekdpwm{width:8.484px;}",".f83vc9z{height:8.484px;}",'.f1wl9k8s::before{content:"";}',".f1wkw4r9::before{visibility:visible;}",".f1j7ml58::before{position:absolute;}",".fyl8oag::before{box-sizing:border-box;}",".frdoeuz::before{width:inherit;}",".fb81m9q::before{height:inherit;}",".f1ljr5q2::before{background-color:inherit;}",".fyfemzf::before{border-right-width:1px;}",".focyt6c::before{border-right-style:solid;}",".fnhxbxj::before{border-right-color:var(--colorTransparentStroke);}",".fdw6hkg::before{border-bottom-width:1px;}",".f11yjt3y::before{border-bottom-style:solid;}",".f1172wan::before{border-bottom-color:var(--colorTransparentStroke);}",".f9e5op9::before{border-bottom-right-radius:var(--borderRadiusSmall);}",".f112wvtl::before{border-bottom-left-radius:var(--borderRadiusSmall);}",".f16cagkn::before{transform:rotate(var(--fui-positioning-angle)) translate(0, 50%) rotate(45deg);}",'[data-popper-placement^="top"] .f1773hnp{bottom:-1px;}','[data-popper-placement^="top"] .fw7o64x{--fui-positioning-angle:0;}','[data-popper-placement^="right"] .f1v7783n{left:-1px;}','[data-popper-placement^="right"] .f1f0d6v{--fui-positioning-angle:90deg;}','[data-popper-placement^="bottom"] .fh2hsk5{top:-1px;}','[data-popper-placement^="bottom"] .f1gj3y7g{--fui-positioning-angle:180deg;}','[data-popper-placement^="left"] .f11yvu4{right:-1px;}','[data-popper-placement^="left"] .f17lejdj{--fui-positioning-angle:270deg;}']}),Dj=t=>{const e=jj();return t.content.className=A(Oj.content,e.root,t.appearance==="inverted"&&e.inverted,t.visible&&e.visible,t.content.className),t.arrowClassName=e.arrow,t},TT=t=>{const e=zj(t);return Dj(e),ue("useTooltipStyles_unstable")(e),Mj(e)};TT.displayName="Tooltip";TT.isFluentTriggerComponent=!0;const Ff=t=>{const{iconOnly:e,iconPosition:r}=t;return ke(t.root,{children:[r!=="after"&&t.icon&&O(t.icon,{}),!e&&t.root.children,r==="after"&&t.icon&&O(t.icon,{})]})},ET=y.createContext(void 0),Fj={};ET.Provider;const qj=()=>{var t;return(t=y.useContext(ET))!==null&&t!==void 0?t:Fj},q1=(t,e)=>{const{size:r}=qj(),{appearance:o="secondary",as:n="button",disabled:i=!1,disabledFocusable:a=!1,icon:s,iconPosition:l="before",shape:c="rounded",size:u=r??"medium"}=t,d=me(s,{elementType:"span"});return{appearance:o,disabled:i,disabledFocusable:a,iconPosition:l,shape:c,size:u,iconOnly:!!(d?.children&&!t.children),components:{root:"button",icon:"span"},root:te(ve(n,Ni(t.as,t)),{elementType:"button",defaultProps:{ref:e,type:"button"}}),icon:d}},_w={root:"fui-Button",icon:"fui-Button__icon"},Lj=fe("r1alrhcs",null,{r:[".r1alrhcs{align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;text-decoration-line:none;vertical-align:middle;margin:0;overflow:hidden;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);font-family:var(--fontFamilyBase);outline-style:none;padding:5px var(--spacingHorizontalM);min-width:96px;border-radius:var(--borderRadiusMedium);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase300);transition-duration:var(--durationFaster);transition-property:background,border,color;transition-timing-function:var(--curveEasyEase);}",".r1alrhcs:hover{background-color:var(--colorNeutralBackground1Hover);border-color:var(--colorNeutralStroke1Hover);color:var(--colorNeutralForeground1Hover);cursor:pointer;}",".r1alrhcs:hover:active{background-color:var(--colorNeutralBackground1Pressed);border-color:var(--colorNeutralStroke1Pressed);color:var(--colorNeutralForeground1Pressed);outline-style:none;}",".r1alrhcs[data-fui-focus-visible]{border-color:var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);border-width:1px;outline:var(--strokeWidthThick) solid var(--colorTransparentStroke);box-shadow:0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;z-index:1;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1alrhcs{transition-duration:0.01ms;}}","@media (forced-colors: active){.r1alrhcs:focus{border-color:ButtonText;}.r1alrhcs:hover{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}.r1alrhcs:hover:active{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}}","@supports (-moz-appearance:button){.r1alrhcs[data-fui-focus-visible]{box-shadow:0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),Hj=fe("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);}"]),Uj=q({outline:{De3pzq:"f1c21dwh",Jwef8y:"fjxutwb",iro3zm:"fwiml72"},primary:{De3pzq:"ffp7eso",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"f1phragk",Jwef8y:"f15wkkf3",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f1rq72xc",iro3zm:"fnp9lpt",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1d6v5y2",Bsw6fvg:"f1rirnrt",Bjwas2f:"f1uu00uk",Bn1d65q:["fkvaka8","f9a0qzu"],Bxeuatn:"f1ux7til",n51gp8:["f9a0qzu","fkvaka8"],Bbusuzp:"f1lkg8j3",ycbfsm:"fkc42ay",Bqrx1nm:"fq7113v",pgvf35:"ff1wgvm",Bh7lczh:["fiob0tu","f1x4h75k"],dpv3f4:"f1j6scgf",Bpnjhaq:["f1x4h75k","fiob0tu"],ze5xyy:"f4xjyn1",g2kj27:"fbgcvur",Bf756sw:"f1ks1yx8",Bow2dr7:["f1o6qegi","fmxjhhp"],Bvhedfk:"fcnxywj",Gye4lf:["fmxjhhp","f1o6qegi"],pc6evw:"f9ddjv3"},secondary:{},subtle:{De3pzq:"fhovq9v",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"f1t94bn6",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"fnwyq0v",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",Bbdnnc7:"fy5bs14",iro3zm:"fsv2rcd",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1omzyqd",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",x3br3k:"fj8yq94",ze5xyy:"f4xjyn1",Bx3q9su:"f1et0tmh",pc6evw:"f9ddjv3",xd2cci:"f1wi8ngl"},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"fjxutwb",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f139oj5f",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",iro3zm:"fwiml72",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1fg1p5m",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",Bqrx1nm:"f1tme0vf",ze5xyy:"f4xjyn1",g2kj27:"f18onu3q",pc6evw:"f9ddjv3"},circular:{Bbmb7ep:["f8fbkgy","f1nfllo7"],Beyfa6y:["f1nfllo7","f8fbkgy"],B7oj6ja:["f1djnp8u","f1s8kh49"],Btl43ni:["f1s8kh49","f1djnp8u"]},rounded:{},square:{Bbmb7ep:["fzi6hpg","fyowgf4"],Beyfa6y:["fyowgf4","fzi6hpg"],B7oj6ja:["f3fg2lr","f13av6d4"],Btl43ni:["f13av6d4","f3fg2lr"]},small:{Bf4jedk:"fh7ncta",z8tnut:"f1khb0e9",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f1jnq6q7",uwmqm3:["f1f5gg8d","f1vdfbxk"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},smallWithIcon:{Byoj8tv:"f1brlhvm",z8tnut:"f1sl3k7w"},medium:{},large:{Bf4jedk:"f14es27b",z8tnut:"fp9bwmr",z189sj:["fjodcmx","fhx4nu"],Byoj8tv:"f150uoa4",uwmqm3:["fhx4nu","fjodcmx"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],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);}",".f8fbkgy{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1nfllo7{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1djnp8u{border-top-right-radius:var(--borderRadiusCircular);}",".f1s8kh49{border-top-left-radius:var(--borderRadiusCircular);}",".fzi6hpg{border-bottom-right-radius:var(--borderRadiusNone);}",".fyowgf4{border-bottom-left-radius:var(--borderRadiusNone);}",".f3fg2lr{border-top-right-radius:var(--borderRadiusNone);}",".f13av6d4{border-top-left-radius:var(--borderRadiusNone);}",".fh7ncta{min-width:64px;}",".f1khb0e9{padding-top:3px;}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1jnq6q7{padding-bottom:3px;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".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;}",".fp9bwmr{padding-top:8px;}",".fjodcmx{padding-right:var(--spacingHorizontalL);}",".fhx4nu{padding-left:var(--spacingHorizontalL);}",".f150uoa4{padding-bottom:8px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fy7v416{padding-bottom:7px;}",".f1a1bwwz{padding-top:7px;}"],h:[".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".fwiml72:hover:active{background-color:var(--colorTransparentBackgroundPressed);}",".f15wkkf3:hover{background-color:var(--colorBrandBackgroundHover);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}",".fnp9lpt:hover:active{background-color:var(--colorBrandBackgroundPressed);}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}",".f1d6v5y2:hover:active{color:var(--colorNeutralForegroundOnBrand);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".ft1hn21:hover .fui-Icon-filled{display:inline;}",".fuxngvv:hover .fui-Icon-regular{display:none;}",".fy5bs14:hover .fui-Button__icon{color:var(--colorNeutralForeground2BrandHover);}",".fsv2rcd:hover:active{background-color:var(--colorSubtleBackgroundPressed);}",".f1omzyqd:hover:active{color:var(--colorNeutralForeground2Pressed);}",".f1dfjoow:hover:active .fui-Icon-filled{display:inline;}",".f1j98vj9:hover:active .fui-Icon-regular{display:none;}",".fj8yq94:hover:active .fui-Button__icon{color:var(--colorNeutralForeground2BrandPressed);}",".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}",".f1fg1p5m:hover:active{color:var(--colorNeutralForeground2BrandPressed);}"],m:[["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1uu00uk{border-top-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9a0qzu{border-left-color:HighlightText;}.fkvaka8{border-right-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ux7til{border-bottom-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fq7113v:hover{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.ff1wgvm:hover{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1x4h75k:hover{border-left-color:Highlight;}.fiob0tu:hover{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1j6scgf:hover{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4xjyn1:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fbgcvur:hover:active{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ks1yx8:hover:active{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1o6qegi:hover:active{border-right-color:Highlight;}.fmxjhhp:hover:active{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fcnxywj:hover:active{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9ddjv3:hover:active{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1et0tmh:hover .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1wi8ngl:hover:active .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1tme0vf:hover{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f18onu3q:hover:active{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}]]}),$j=q({base:{De3pzq:"f1bg9a2p",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bfinmwp:"f15x8b5r",Jwef8y:"f1falr9n",Bgoe8wy:"f12mpcsy",Bwzppfd:["f1gwvigk","f18rmfxp"],oetu4i:"f1jnshp0",gg5e9n:["f18rmfxp","f1gwvigk"],Bi91k9c:"fvgxktp",eoavqd:"fphbwmw",Bk3fhr4:"f19vpps7",Bmfj8id:"fv5swzo",Bbdnnc7:"f1al02dq",iro3zm:"f1t6o4dc",b661bw:"f10ztigi",Bk6r4ia:["f1ft5sdu","f1gzf82w"],B9zn80p:"f12zbtn2",Bpld233:["f1gzf82w","f1ft5sdu"],B2d53fq:"fcvwxyo",c3iz72:"f8w4c43",em6i61:"f1ol4fw6",vm6p8p:"f1q1lw4e",x3br3k:"f1dwjv2g"},highContrast:{Bsw6fvg:"f4lkoma",Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"],Bbusuzp:"f1dcs8yz",G867l3:"fjwq6ea",gdbnj:["f1lr3nhc","f1mbxvi6"],mxns5l:"fn5gmvv",o3nasb:["f1mbxvi6","f1lr3nhc"],Bqrx1nm:"f1vmkb5g",pgvf35:"f53ppgq",Bh7lczh:["f1663y11","f80fkiy"],dpv3f4:"f18v5270",Bpnjhaq:["f80fkiy","f1663y11"],ze5xyy:"f1kc2mi9",g2kj27:"f1y0svfh",Bf756sw:"fihuait",Bow2dr7:["fnxhupq","fyd6l6x"],Bvhedfk:"fx507ft",Gye4lf:["fyd6l6x","fnxhupq"],pc6evw:"fb3rf2x"},outline:{De3pzq:"f1c21dwh",Jwef8y:"f9ql6rf",iro3zm:"f3h1zc4"},primary:{g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},secondary:{},subtle:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]}},{d:[".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f15x8b5r .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}"],h:[".f1falr9n:hover{background-color:var(--colorNeutralBackgroundDisabled);}",".f12mpcsy:hover{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1gwvigk:hover{border-right-color:var(--colorNeutralStrokeDisabled);}",".f18rmfxp:hover{border-left-color:var(--colorNeutralStrokeDisabled);}",".f1jnshp0:hover{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".fphbwmw:hover{cursor:not-allowed;}",".f19vpps7:hover .fui-Icon-filled{display:none;}",".fv5swzo:hover .fui-Icon-regular{display:inline;}",".f1al02dq:hover .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1t6o4dc:hover:active{background-color:var(--colorNeutralBackgroundDisabled);}",".f10ztigi:hover:active{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1ft5sdu:hover:active{border-right-color:var(--colorNeutralStrokeDisabled);}",".f1gzf82w:hover:active{border-left-color:var(--colorNeutralStrokeDisabled);}",".f12zbtn2:hover:active{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fcvwxyo:hover:active{color:var(--colorNeutralForegroundDisabled);}",".f8w4c43:hover:active{cursor:not-allowed;}",".f1ol4fw6:hover:active .fui-Icon-filled{display:none;}",".f1q1lw4e:hover:active .fui-Icon-regular{display:inline;}",".f1dwjv2g:hover:active .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".f3h1zc4:hover:active{background-color:var(--colorTransparentBackground);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}"],m:[["@media (forced-colors: active){.f4lkoma{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fjwq6ea:focus{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lr3nhc:focus{border-right-color:GrayText;}.f1mbxvi6:focus{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fn5gmvv:focus{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1vmkb5g:hover{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f53ppgq:hover{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1663y11:hover{border-right-color:GrayText;}.f80fkiy:hover{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f18v5270:hover{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1kc2mi9:hover{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1y0svfh:hover:active{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fihuait:hover:active{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnxhupq:hover:active{border-right-color:GrayText;}.fyd6l6x:hover:active{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fx507ft:hover:active{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fb3rf2x:hover:active{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),Kj=q({circular:{kdpuga:["fanj13w","f1gou5sz"],Bw81rd7:["f1gou5sz","fanj13w"],B6xbmo0:["fulf6x3","foeb2x"],dm238s:["foeb2x","fulf6x3"]},rounded:{},square:{kdpuga:["f1ndz5i7","f1co4qro"],Bw81rd7:["f1co4qro","f1ndz5i7"],B6xbmo0:["f146y5a9","f1k2ftg"],dm238s:["f1k2ftg","f146y5a9"]},primary:{B8q5s1w:"f17t0x8g",Bci5o5g:["f194v5ow","fk7jm04"],n8qw10:"f1qgg65p",Bdrgwmp:["fk7jm04","f194v5ow"],j6ew2k:["fhgccpy","fjo7pq6"],he4mth:"f32wu9k",Byr4aka:"fu5nqqq",lks7q5:["f13prjl2","f1nl83rv"],Bnan3qt:"f1czftr5",k1dn9:["f1nl83rv","f13prjl2"],Boium3a:["f12k37oa","fdnykm2"],tm8e47:"fr96u23"},small:{kdpuga:["fg3gtdo","fwii5mg"],Bw81rd7:["fwii5mg","fg3gtdo"],B6xbmo0:["f1palphq","f12nxie7"],dm238s:["f12nxie7","f1palphq"]},medium:{},large:{kdpuga:["ft3lys4","f1la4x2g"],Bw81rd7:["f1la4x2g","ft3lys4"],B6xbmo0:["f156y0zm","fakimq4"],dm238s:["fakimq4","f156y0zm"]}},{d:[".fanj13w[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1gou5sz[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusCircular);}",".fulf6x3[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusCircular);}",".foeb2x[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusCircular);}",".f1ndz5i7[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusNone);}",".f1co4qro[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusNone);}",".f146y5a9[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusNone);}",".f1k2ftg[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusNone);}",".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);}",".fg3gtdo[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusSmall);}",".fwii5mg[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1palphq[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusSmall);}",".f12nxie7[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusSmall);}",".ft3lys4[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusLarge);}",".f1la4x2g[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusLarge);}",".f156y0zm[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusLarge);}",".fakimq4[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusLarge);}"],t:["@supports (-moz-appearance:button){.f12k37oa[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}.fdnykm2[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}}","@supports (-moz-appearance:button){.fr96u23[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),Wj=q({small:{z8tnut:"f1sl3k7w",z189sj:["f136y8j8","f10xn8zz"],Byoj8tv:"f1brlhvm",uwmqm3:["f10xn8zz","f136y8j8"],Bf4jedk:"f17fgpbq",B2u0y6b:"f1jt17bm"},medium:{z8tnut:"f1sbtcvk",z189sj:["fwiuce9","f15vdbe4"],Byoj8tv:"fdghr9",uwmqm3:["f15vdbe4","fwiuce9"],Bf4jedk:"fwbmr0d",B2u0y6b:"f44c6la"},large:{z8tnut:"f1a1bwwz",z189sj:["f18k1jr3","f1rtp3s9"],Byoj8tv:"fy7v416",uwmqm3:["f1rtp3s9","f18k1jr3"],Bf4jedk:"f12clzc2",B2u0y6b:"fjy1crr"}},{d:[".f1sl3k7w{padding-top:1px;}",".f136y8j8{padding-right:1px;}",".f10xn8zz{padding-left:1px;}",".f1brlhvm{padding-bottom:1px;}",".f17fgpbq{min-width:24px;}",".f1jt17bm{max-width:24px;}",".f1sbtcvk{padding-top:5px;}",".fwiuce9{padding-right:5px;}",".f15vdbe4{padding-left:5px;}",".fdghr9{padding-bottom:5px;}",".fwbmr0d{min-width:32px;}",".f44c6la{max-width:32px;}",".f1a1bwwz{padding-top:7px;}",".f18k1jr3{padding-right:7px;}",".f1rtp3s9{padding-left:7px;}",".fy7v416{padding-bottom:7px;}",".f12clzc2{min-width:40px;}",".fjy1crr{max-width:40px;}"]}),Vj=q({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);}"]}),L1=t=>{const e=Lj(),r=Hj(),o=Uj(),n=$j(),i=Kj(),a=Wj(),s=Vj(),{appearance:l,disabled:c,disabledFocusable:u,icon:d,iconOnly:f,iconPosition:h,shape:g,size:p}=t;return t.root.className=A(_w.root,e,l&&o[l],o[p],d&&p==="small"&&o.smallWithIcon,d&&p==="large"&&o.largeWithIcon,o[g],(c||u)&&n.base,(c||u)&&n.highContrast,l&&(c||u)&&n[l],l==="primary"&&i.primary,i[p],i[g],f&&a[p],t.root.className),t.icon&&(t.icon.className=A(_w.icon,r,!!t.root.children&&s[h],s[p],t.icon.className)),t},Gj=y.forwardRef((t,e)=>{const r=q1(t,e);return L1(r),ue("useButtonStyles_unstable")(r),Ff(r)});Gj.displayName="Button";function Xj(t,e){const{checked:r,defaultChecked:o,disabled:n,disabledFocusable:i}=t,{onClick:a,role:s}=e.root,[l,c]=Tt({state:r,defaultState:o,initialState:!1}),u=s==="menuitemcheckbox"||s==="checkbox",d=y.useCallback(f=>{if(!n&&!i){if(f.defaultPrevented)return;c(!l)}},[l,n,i,c]);return{...e,checked:l,root:{...e.root,[u?"aria-checked":"aria-pressed"]:l,onClick:Q(de(a,d))}}}const BT=(t,e)=>{const r=q1(t,e);return Xj(t,r)},xw={root:"fui-ToggleButton",icon:"fui-ToggleButton__icon"},Yj=q({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",iro3zm:"f141de4g",b661bw:"f11v6sdu",Bk6r4ia:["f9yn8i4","f1ajwf28"],B9zn80p:"f1uwu36w",Bpld233:["f1ajwf28","f9yn8i4"],B2d53fq:"f9olfzr"},highContrast:{Bsw6fvg:"f1rirnrt",Bjwas2f:"f132fbg1",Bn1d65q:["f1ene5x0","fzbc999"],Bxeuatn:"f6jgcol",n51gp8:["fzbc999","f1ene5x0"],Bbusuzp:"f1lkg8j3",ycbfsm:"fkc42ay",Bqrx1nm:"fq7113v",pgvf35:"ff1wgvm",Bh7lczh:["fiob0tu","f1x4h75k"],dpv3f4:"f1j6scgf",Bpnjhaq:["f1x4h75k","fiob0tu"],ze5xyy:"f4xjyn1",g2kj27:"fbgcvur",Bf756sw:"f1ks1yx8",Bow2dr7:["f1o6qegi","fmxjhhp"],Bvhedfk:"fcnxywj",Gye4lf:["fmxjhhp","f1o6qegi"],pc6evw:"f9ddjv3",Btyszwp:"f1j4zkqc",B8jyv7h:["f1ug3svw","f10xfdm4"],l9kbep:"f4xlnbu",By5cl00:["f10xfdm4","f1ug3svw"],abbn9y:"f1jhcl7q",Bw5jppy:["fokje0w","fpctg2v"],B0tp99d:"f1yfuj62",B55dcl7:["fpctg2v","fokje0w"],G867l3:"fk75khc",gdbnj:["f90nk7n","f16eiqta"],mxns5l:"fnz8tm1",o3nasb:["f16eiqta","f90nk7n"],B7d2ofm:"fkom8lu"},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",iro3zm:"fwiml72",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",iro3zm:"fnp9lpt",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1d6v5y2"},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",iro3zm:"fsv2rcd",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1omzyqd"},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",iro3zm:"fwiml72",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1fg1p5m"}},{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);}",".f141de4g:hover:active{background-color:var(--colorNeutralBackground1Pressed);}",".f11v6sdu:hover:active{border-top-color:var(--colorNeutralStroke1Pressed);}",".f9yn8i4:hover:active{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1ajwf28:hover:active{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1uwu36w:hover:active{border-bottom-color:var(--colorNeutralStroke1Pressed);}",".f9olfzr:hover:active{color:var(--colorNeutralForeground1Pressed);}",".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".fwiml72:hover:active{background-color:var(--colorTransparentBackgroundPressed);}",".f15wkkf3:hover{background-color:var(--colorBrandBackgroundHover);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}",".fnp9lpt:hover:active{background-color:var(--colorBrandBackgroundPressed);}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}",".f1d6v5y2:hover:active{color:var(--colorNeutralForegroundOnBrand);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".fsv2rcd:hover:active{background-color:var(--colorSubtleBackgroundPressed);}",".f1omzyqd:hover:active{color:var(--colorNeutralForeground2Pressed);}",".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}",".f1fg1p5m:hover:active{color:var(--colorNeutralForeground2BrandPressed);}"],m:[["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f132fbg1{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ene5x0{border-right-color:Highlight;}.fzbc999{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f6jgcol{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fq7113v:hover{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.ff1wgvm:hover{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1x4h75k:hover{border-left-color:Highlight;}.fiob0tu:hover{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1j6scgf:hover{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4xjyn1:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fbgcvur:hover:active{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ks1yx8:hover:active{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1o6qegi:hover:active{border-right-color:Highlight;}.fmxjhhp:hover:active{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fcnxywj:hover:active{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9ddjv3:hover:active{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1j4zkqc:focus{border-top-width:1px;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f10xfdm4:focus{border-left-width:1px;}.f1ug3svw:focus{border-right-width:1px;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4xlnbu:focus{border-bottom-width:1px;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1jhcl7q:focus{border-top-style:solid;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fokje0w:focus{border-right-style:solid;}.fpctg2v:focus{border-left-style:solid;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1yfuj62:focus{border-bottom-style:solid;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fk75khc:focus{border-top-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16eiqta:focus{border-left-color:HighlightText;}.f90nk7n:focus{border-right-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnz8tm1:focus{border-bottom-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkom8lu:focus{outline-color:Highlight;}}",{m:"(forced-colors: active)"}]]}),Zj=q({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",iro3zm:"f1t6o4dc",b661bw:"f10ztigi",Bk6r4ia:["f1ft5sdu","f1gzf82w"],B9zn80p:"f12zbtn2",Bpld233:["f1gzf82w","f1ft5sdu"],B2d53fq:"fcvwxyo"},outline:{},primary:{g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},secondary:{},subtle:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"fjxutwb",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"fwiml72",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},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"],iro3zm:"fwiml72",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]}},{d:[".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".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);}",".f1t6o4dc:hover:active{background-color:var(--colorNeutralBackgroundDisabled);}",".f10ztigi:hover:active{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1ft5sdu:hover:active{border-right-color:var(--colorNeutralStrokeDisabled);}",".f1gzf82w:hover:active{border-left-color:var(--colorNeutralStrokeDisabled);}",".f12zbtn2:hover:active{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fcvwxyo:hover:active{color:var(--colorNeutralForegroundDisabled);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}",".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".fwiml72:hover:active{background-color:var(--colorTransparentBackgroundPressed);}"]}),Qj=q({subtleOrTransparent:{sj55zd:"f1qj7y59"},highContrast:{ycbfsm:"fg4l7m0"}},{d:[".f1qj7y59{color:var(--colorNeutralForeground2BrandSelected);}"],m:[["@media (forced-colors: active){.fg4l7m0{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}]]}),Jj=q({base:{Bsw6fvg:"f4lkoma",Bjwas2f:"f1bauw5b",Bn1d65q:["fbpknfk","fedl69w"],Bxeuatn:"f15s25nd",n51gp8:["fedl69w","fbpknfk"],Bbusuzp:"f1e4kh5",ycbfsm:"fg4l7m0"},disabled:{Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"],Bbusuzp:"f1dcs8yz",G867l3:"fjwq6ea",gdbnj:["f1lr3nhc","f1mbxvi6"],mxns5l:"fn5gmvv",o3nasb:["f1mbxvi6","f1lr3nhc"]}},{m:[["@media (forced-colors: active){.f4lkoma{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1bauw5b{border-top-color:ButtonBorder;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fbpknfk{border-right-color:ButtonBorder;}.fedl69w{border-left-color:ButtonBorder;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f15s25nd{border-bottom-color:ButtonBorder;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1e4kh5{color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fg4l7m0{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fjwq6ea:focus{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lr3nhc:focus{border-right-color:GrayText;}.f1mbxvi6:focus{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fn5gmvv:focus{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]]}),IT=t=>{const e=Yj(),r=Zj(),o=Qj(),n=Jj(),{appearance:i,checked:a,disabled:s,disabledFocusable:l}=t;return t.root.className=A(xw.root,i==="primary"&&n.base,i==="primary"&&(s||l)&&n.disabled,a&&e.base,a&&e.highContrast,i&&a&&e[i],(s||l)&&r.base,i&&(s||l)&&r[i],t.root.className),t.icon&&(t.icon.className=A(xw.icon,(i==="subtle"||i==="transparent")&&o.subtleOrTransparent&&o.highContrast,t.icon.className)),L1(t),t},e9=y.forwardRef((t,e)=>{const r=BT(t,e);return IT(r),ue("useToggleButtonStyles_unstable")(r),Ff(r)});e9.displayName="ToggleButton";const RT=y.createContext(void 0),t9=RT.Provider,r9=()=>y.useContext(RT),o9=t=>{var e,r,o,n;const{generatedControlId:i,orientation:a,required:s,size:l,validationState:c}=t,u=(e=t.label)===null||e===void 0?void 0:e.htmlFor,d=(r=t.label)===null||r===void 0?void 0:r.id,f=(o=t.validationMessage)===null||o===void 0?void 0:o.id,h=(n=t.hint)===null||n===void 0?void 0:n.id;return{field:y.useMemo(()=>({generatedControlId:i,hintId:h,labelFor:u,labelId:d,orientation:a,required:s,size:l,validationMessageId:f,validationState:c}),[i,h,u,d,a,s,l,f,c])}};function vs(t,e){return AT(r9(),t,e)}function AT(t,e,r){if(!t)return e;e={...e};const{generatedControlId:o,hintId:n,labelFor:i,labelId:a,required:s,validationMessageId:l,validationState:c}=t;if(o){var u,d;(d=(u=e).id)!==null&&d!==void 0||(u.id=o)}if(a&&(!r?.supportsLabelFor||i!==e.id)){var f,h,g;(g=(f=e)[h="aria-labelledby"])!==null&&g!==void 0||(f[h]=a)}if((l||n)&&(e["aria-describedby"]=[l,n,e?.["aria-describedby"]].filter(Boolean).join(" ")),c==="error"){var p,w,v;(v=(p=e)[w="aria-invalid"])!==null&&v!==void 0||(p[w]=!0)}if(s)if(r?.supportsRequired){var m,b;(b=(m=e).required)!==null&&b!==void 0||(m.required=!0)}else{var k,x,_;(_=(k=e)[x="aria-required"])!==null&&_!==void 0||(k[x]=!0)}if(r?.supportsSize){var S,C;(C=(S=e).size)!==null&&C!==void 0||(S.size=t.size)}return e}const n9=(t,e)=>{let{children:r}=t;return typeof r=="function"&&(r=r(AT(e.field)||{})),O(t9,{value:e?.field,children:ke(t.root,{children:[t.label&&O(t.label,{}),r,t.validationMessage&&ke(t.validationMessage,{children:[t.validationMessageIcon&&O(t.validationMessageIcon,{}),t.validationMessage.children]}),t.hint&&O(t.hint,{})]})})},i9=(t,e)=>{const{disabled:r=!1,required:o=!1,weight:n="regular",size:i="medium"}=t;return{disabled:r,required:me(o===!0?"*":o||void 0,{defaultProps:{"aria-hidden":"true"},elementType:"span"}),weight:n,size:i,components:{root:"label",required:"span"},root:te(ve("label",{ref:e,...t}),{elementType:"label"})}},a9=t=>ke(t.root,{children:[t.root.children,t.required&&O(t.required,{})]}),Cw={root:"fui-Label",required:"fui-Label__required"},s9=q({root:{Bahqtrf:"fk6fouc",sj55zd:"f19n0e5"},disabled:{sj55zd:"f1s2aq7o"},required:{sj55zd:"f1whyuy6",uwmqm3:["fycuoez","f8wuabp"]},requiredDisabled:{sj55zd:"f1s2aq7o"},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);}",".fycuoez{padding-left:4px;}",".f8wuabp{padding-right:4px;}",".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);}"]}),l9=t=>{const e=s9();return t.root.className=A(Cw.root,e.root,t.disabled&&e.disabled,e[t.size],t.weight==="semibold"&&e.semibold,t.root.className),t.required&&(t.required.className=A(Cw.required,e.required,t.disabled&&e.requiredDisabled,t.required.className)),t},co=y.forwardRef((t,e)=>{const r=i9(t,e);return l9(r),ue("useLabelStyles_unstable")(r),a9(r)});co.displayName="Label";const c9={error:y.createElement(eP,null),warning:y.createElement(_P,null),success:y.createElement(YN,null),none:void 0},u9=(t,e)=>{const{children:r,orientation:o="vertical",required:n=!1,validationState:i=t.validationMessage?"error":"none",size:a="medium"}=t,s=Rt("field-"),l=s+"__control",c=te(ve("div",{...t,ref:e},["children"]),{elementType:"div"}),u=me(t.label,{defaultProps:{htmlFor:l,id:s+"__label",required:n,size:a},elementType:co}),d=me(t.validationMessage,{defaultProps:{id:s+"__validationMessage",role:i==="error"?"alert":void 0},elementType:"div"}),f=me(t.hint,{defaultProps:{id:s+"__hint"},elementType:"div"}),h=c9[i],g=me(t.validationMessageIcon,{renderByDefault:!!h,defaultProps:{children:h},elementType:"span"});return{children:r,generatedControlId:l,orientation:o,required:n,size:a,validationState:i,components:{root:"div",label:co,validationMessage:"div",validationMessageIcon:"span",hint:"div"},root:c,label:u,validationMessageIcon:g,validationMessage:d,hint:f}},Is={root:"fui-Field",label:"fui-Field__label",validationMessage:"fui-Field__validationMessage",validationMessageIcon:"fui-Field__validationMessageIcon",hint:"fui-Field__hint"},d9=q({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;}"]}),f9=q({base:{z8tnut:"fclwglc",Byoj8tv:"fywfov9"},large:{z8tnut:"f1sl3k7w",Byoj8tv:"f1brlhvm"},vertical:{jrapky:"fyacil5"},verticalLarge:{jrapky:"f8l5zjj"},horizontal:{t21cq0:["fkujibs","f199hnxi"],Ijaq50:"f16hsg94",nk6f5a:"f1nzqi2z"}},{d:[".fclwglc{padding-top:var(--spacingVerticalXXS);}",".fywfov9{padding-bottom:var(--spacingVerticalXXS);}",".f1sl3k7w{padding-top:1px;}",".f1brlhvm{padding-bottom:1px;}",".fyacil5{margin-bottom:var(--spacingVerticalXXS);}",".f8l5zjj{margin-bottom:var(--spacingVerticalXS);}",".fkujibs{margin-right:var(--spacingHorizontalM);}",".f199hnxi{margin-left:var(--spacingHorizontalM);}",".f16hsg94{grid-row-start:1;}",".f1nzqi2z{grid-row-end:-1;}"]}),h9=fe("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);}"]),g9=q({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));}"]}),p9=fe("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;}"]),m9=q({error:{sj55zd:"f1hcrxcs"},warning:{sj55zd:"f1k5f75o"},success:{sj55zd:"ffmvakt"}},{d:[".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}",".ffmvakt{color:var(--colorPaletteGreenForeground1);}"]}),v9=t=>{const{validationState:e}=t,r=t.orientation==="horizontal",o=d9();t.root.className=A(Is.root,o.base,r&&o.horizontal,r&&!t.label&&o.horizontalNoLabel,t.root.className);const n=f9();t.label&&(t.label.className=A(Is.label,n.base,r&&n.horizontal,!r&&n.vertical,t.label.size==="large"&&n.large,!r&&t.label.size==="large"&&n.verticalLarge,t.label.className));const i=p9(),a=m9();t.validationMessageIcon&&(t.validationMessageIcon.className=A(Is.validationMessageIcon,i,e!=="none"&&a[e],t.validationMessageIcon.className));const s=h9(),l=g9();t.validationMessage&&(t.validationMessage.className=A(Is.validationMessage,s,e==="error"&&l.error,!!t.validationMessageIcon&&l.withIcon,t.validationMessage.className)),t.hint&&(t.hint.className=A(Is.hint,s,t.hint.className))},b9=y.forwardRef((t,e)=>{const r=u9(t,e);v9(r);const o=o9(r);return n9(r,o)});b9.displayName="Field";const y9=(t,e)=>{t=vs(t,{supportsLabelFor:!0,supportsRequired:!0});const{disabled:r=!1,required:o,shape:n="square",size:i="medium",labelPosition:a="after",onChange:s}=t,[l,c]=Tt({defaultState:t.defaultChecked,state:t.checked,initialState:!1}),u=$i({props:t,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","size","onChange"]}),d=l==="mixed",f=Rt("checkbox-",u.primary.id);let h;d?n==="circular"?h=y.createElement(Bx,null):h=i==="large"?y.createElement(SP,null):y.createElement(kP,null):l&&(h=i==="large"?y.createElement(XN,null):y.createElement(Ix,null));const g={shape:n,checked:l,disabled:r,size:i,labelPosition:a,components:{root:"span",input:"input",indicator:"div",label:co},root:te(t.root,{defaultProps:{ref:fs(),...u.root},elementType:"span"}),input:te(t.input,{defaultProps:{type:"checkbox",id:f,ref:e,checked:l===!0,...u.primary},elementType:"input"}),label:me(t.label,{defaultProps:{htmlFor:f,disabled:r,required:o,size:"medium"},elementType:co}),indicator:me(t.indicator,{renderByDefault:!0,defaultProps:{"aria-hidden":!0,children:h},elementType:"div"})};g.input.onChange=Q(w=>{const v=w.currentTarget.indeterminate?"mixed":w.currentTarget.checked;s?.(w,{checked:v}),c(v)});const p=Re(g.input.ref);return g.input.ref=p,Qt(()=>{p.current&&(p.current.indeterminate=d)},[p,d]),g},w9=t=>ke(t.root,{children:[O(t.input,{}),t.labelPosition==="before"&&t.label&&O(t.label,{}),O(t.indicator,{}),t.labelPosition==="after"&&t.label&&O(t.label,{})]}),Yc={root:"fui-Checkbox",label:"fui-Checkbox__label",input:"fui-Checkbox__input",indicator:"fui-Checkbox__indicator"},k9=fe("r10zo65y","rpa3v06",{r:[".r10zo65y{position:relative;display:inline-flex;cursor:pointer;vertical-align:middle;color:var(--colorNeutralForeground3);}",".r10zo65y:focus{outline-style:none;}",".r10zo65y:focus-visible{outline-style:none;}",".r10zo65y[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r10zo65y[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rpa3v06{position:relative;display:inline-flex;cursor:pointer;vertical-align:middle;color:var(--colorNeutralForeground3);}",".rpa3v06:focus{outline-style:none;}",".rpa3v06:focus-visible{outline-style:none;}",".rpa3v06[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rpa3v06[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r10zo65y[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){.rpa3v06[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),S9=q({unchecked:{Bi91k9c:"f3p8bqa",pv5h1i:"fium13f",lj723h:"f1r2dosr",Hnthvo:"f1729es6"},checked:{sj55zd:"f19n0e5",wkncrt:"f35ds98",zxk7z7:"f12mnkne",Hmsnfy:"fei9a8h",e6czan:"fix56y3",pv5h1i:"f1bcv2js",qbydtz:"f7dr4go",Hnthvo:"f1r5cpua"},mixed:{sj55zd:"f19n0e5",Hmsnfy:"f1l27tf0",zxk7z7:"fcilktj",pv5h1i:"f1lphd54",Bunfa6h:"f1obkvq7",Hnthvo:"f2gmbuh",B15ykmv:"f1oy4fa1"},disabled:{Bceei9c:"f158kwzp",sj55zd:"f1s2aq7o",Hmsnfy:"f1w7mfl5",zxk7z7:"fcoafq6",Bbusuzp:"f1dcs8yz",mrqfp9:"fxb3eh3"}},{h:[".f3p8bqa:hover{color:var(--colorNeutralForeground2);}",".fium13f:hover{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeAccessibleHover);}",".fix56y3:hover{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackgroundHover);}",".f1bcv2js:hover{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackgroundHover);}",".f1lphd54:hover{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStrokeHover);}",".f1obkvq7:hover{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1Hover);}"],a:[".f1r2dosr:active{color:var(--colorNeutralForeground1);}",".f1729es6:active{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeAccessiblePressed);}",".f7dr4go:active{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackgroundPressed);}",".f1r5cpua:active{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackgroundPressed);}",".f2gmbuh:active{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStrokePressed);}",".f1oy4fa1:active{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1Pressed);}"],d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".f35ds98{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackground);}",".f12mnkne{--fui-Checkbox__indicator--color:var(--colorNeutralForegroundInverted);}",".fei9a8h{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackground);}",".f1l27tf0{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStroke);}",".fcilktj{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1);}",".f158kwzp{cursor:default;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1w7mfl5{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeDisabled);}",".fcoafq6{--fui-Checkbox__indicator--color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fxb3eh3{--fui-Checkbox__indicator--color:GrayText;}}",{m:"(forced-colors: active)"}]]}),_9=fe("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));}"]),x9=q({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));}"]}),C9=fe("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;}"]),T9=q({large:{Be2twd7:"f4ybsrx",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},circular:{Bbmb7ep:["f8fbkgy","f1nfllo7"],Beyfa6y:["f1nfllo7","f8fbkgy"],B7oj6ja:["f1djnp8u","f1s8kh49"],Btl43ni:["f1s8kh49","f1djnp8u"]}},{d:[".f4ybsrx{font-size:16px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".f8fbkgy{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1nfllo7{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1djnp8u{border-top-right-radius:var(--borderRadiusCircular);}",".f1s8kh49{border-top-left-radius:var(--borderRadiusCircular);}"]}),E9=q({base:{qb2dma:"f7nlbp4",sj55zd:"f1ym3bx4",Bceei9c:"fpo1scq",z8tnut:"f1kwiid1",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f5b47ha",uwmqm3:["f1f5gg8d","f1vdfbxk"]},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;}",".f1kwiid1{padding-top:var(--spacingVerticalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f5b47ha{padding-bottom:var(--spacingVerticalS);}",".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);}"]}),B9=t=>{const{checked:e,disabled:r,labelPosition:o,shape:n,size:i}=t,a=k9(),s=S9();t.root.className=A(Yc.root,a,r?s.disabled:e==="mixed"?s.mixed:e?s.checked:s.unchecked,t.root.className);const l=_9(),c=x9();t.input.className=A(Yc.input,l,i==="large"&&c.large,c[o],t.input.className);const u=C9(),d=T9();t.indicator&&(t.indicator.className=A(Yc.indicator,u,i==="large"&&d.large,n==="circular"&&d.circular,t.indicator.className));const f=E9();return t.label&&(t.label.className=A(Yc.label,f.base,f[i],f[o],t.label.className)),t},Lp=y.forwardRef((t,e)=>{const r=y9(t,e);return B9(r),ue("useCheckboxStyles_unstable")(r),w9(r)});Lp.displayName="Checkbox";const Zr=fn({activeOption:void 0,appearance:"outline",focusVisible:!1,open:!1,registerOption(){return()=>{}},selectedOptions:[],selectOption(){},setActiveOption(){},setOpen(){},size:"medium"});Zr.Provider;const qo=fn({activeOption:void 0,focusVisible:!1,multiselect:!1,registerOption(){return()=>{}},selectedOptions:[],selectOption(){},setActiveOption(){}});qo.Provider;function I9(t){const{activeOption:e,appearance:r,focusVisible:o,open:n,registerOption:i,selectedOptions:a,selectOption:s,setActiveOption:l,setOpen:c,size:u}=t;return{combobox:{activeOption:e,appearance:r,focusVisible:o,open:n,registerOption:i,selectedOptions:a,selectOption:s,setActiveOption:l,setOpen:c,size:u}}}function R9(t){const e=uc(Zr),{activeOption:r,focusVisible:o,multiselect:n,registerOption:i,selectedOptions:a,selectOption:s,setActiveOption:l}=t,c=lt(Zr,f=>f.registerOption);return{listbox:{activeOption:r,focusVisible:o,multiselect:n,registerOption:e?c:i,selectedOptions:a,selectOption:s,setActiveOption:l}}}function Md(t,e={}){const{open:r=!0,multiselect:o=!1}=e,n=t.key,{altKey:i,ctrlKey:a,key:s,metaKey:l}=t;return s.length===1&&n!==Mr&&!i&&!a&&!l?"Type":r?n===Ea&&i||n===Co||!o&&n===Mr?"CloseSelect":o&&n===Mr?"Select":n===No?"Close":n===Ya?"Next":n===Ea?"Previous":n===Lv?"First":n===qv?"Last":n===aC?"PageUp":n===iC?"PageDown":n===Fv?"Tab":"None":n===Ya||n===Ea||n===Co||n===Mr?"Open":"None"}function NT(t,e,r){switch(t){case"Next":return Math.min(r,e+1);case"Previous":return Math.max(0,e-1);case"First":return 0;case"Last":return r;case"PageDown":return Math.min(r,e+10);case"PageUp":return Math.max(0,e-10);default:return e}}const PT=()=>{const t=y.useRef([]),e=y.useMemo(()=>({getCount:()=>t.current.length,getOptionAtIndex:c=>{var u;return(u=t.current[c])===null||u===void 0?void 0:u.option},getIndexOfId:c=>t.current.findIndex(u=>u.option.id===c),getOptionById:c=>{const u=t.current.find(d=>d.option.id===c);return u?.option},getOptionsMatchingText:c=>t.current.filter(u=>c(u.option.text)).map(u=>u.option),getOptionsMatchingValue:c=>t.current.filter(u=>c(u.option.value)).map(u=>u.option)}),[]),r=y.useCallback((o,n)=>{var i;const a=t.current.findIndex(s=>!s.element||!n?!1:s.option.id===o.id?!0:s.element.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_PRECEDING);if(((i=t.current[a])===null||i===void 0?void 0:i.option.id)!==o.id){const s={element:n,option:o};a===-1?t.current=[...t.current,s]:t.current.splice(a,0,s)}return()=>{t.current=t.current.filter(s=>s.option.id!==o.id)}},[]);return{...e,options:t.current.map(o=>o.option),registerOption:r}};function A9(t){const{activeOption:e}=t,r=y.useRef(null);return y.useEffect(()=>{if(r.current&&e&&Yn()){const o=r.current.querySelector(`#${e.id}`);if(!o)return;const{offsetHeight:n,offsetTop:i}=o,{offsetHeight:a,scrollTop:s}=r.current,l=is+a,u=2;l?r.current.scrollTo(0,i-u):c&&r.current.scrollTo(0,i-a+n+u)}},[e]),r}const zT=t=>{const{defaultSelectedOptions:e,multiselect:r,onOptionSelect:o}=t,[n,i]=Tt({state:t.selectedOptions,defaultState:e,initialState:[]}),a=y.useCallback((l,c)=>{if(c.disabled)return;let u=[c.value];if(r){const d=n.findIndex(f=>f===c.value);d>-1?u=[...n.slice(0,d),...n.slice(d+1)]:u=[...n,c.value]}i(u),o?.(l,{optionValue:c.value,optionText:c.text,selectedOptions:u})},[o,r,n,i]);return{clearSelection:l=>{i([]),o?.(l,{optionValue:void 0,optionText:void 0,selectedOptions:[]})},selectOption:a,selectedOptions:n}},N9=(t,e)=>{const{multiselect:r}=t,o=PT(),{getCount:n,getOptionAtIndex:i,getIndexOfId:a}=o,{clearSelection:s,selectedOptions:l,selectOption:c}=zT(t),[u,d]=y.useState(),[f,h]=y.useState(!1),g=E=>{const I=Md(E,{open:!0}),H=n()-1,T=u?a(u.id):-1;let R=T;switch(I){case"Select":case"CloseSelect":u&&c(E,u);break;default:R=NT(I,T,H)}R!==T&&(E.preventDefault(),d(i(R)),h(!0))},p=E=>{h(!1)},w=uc(Zr),v=lt(Zr,E=>E.activeOption),m=lt(Zr,E=>E.focusVisible),b=lt(Zr,E=>E.selectedOptions),k=lt(Zr,E=>E.selectOption),x=lt(Zr,E=>E.setActiveOption),_=w?{activeOption:v,focusVisible:m,selectedOptions:b,selectOption:k,setActiveOption:x}:{activeOption:u,focusVisible:f,selectedOptions:l,selectOption:c,setActiveOption:d},S={components:{root:"div"},root:te(ve("div",{ref:e,role:r?"menu":"listbox","aria-activedescendant":w?void 0:u?.id,tabIndex:0,...t}),{elementType:"div"}),multiselect:r,clearSelection:s,...o,..._},C=A9(S);return S.root.ref=Re(S.root.ref,C),S.root.onKeyDown=Q(de(S.root.onKeyDown,g)),S.root.onMouseOver=Q(de(S.root.onMouseOver,p)),S},P9=(t,e)=>O(qo.Provider,{value:e.listbox,children:O(t.root,{})}),z9={root:"fui-Listbox"},M9=q({root:{De3pzq:"fxugw4r",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",Bf4jedk:"f3hsy1e",Bmxbyg5:"f5zp4f",Bpd4iqm:"fpvhumw",oeaueh:"f1yog68k",Bw0xxkn:"f13sgyd8",z8tnut:"f1x4af0m",z189sj:["f7x41pl","fruq291"],Byoj8tv:"fd55psn",uwmqm3:["fruq291","f7x41pl"],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;}",".fpvhumw{outline-width:1px;}",".f1yog68k{outline-style:solid;}",".f13sgyd8{outline-color:var(--colorTransparentStroke);}",".f1x4af0m{padding-top:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".fd55psn{padding-bottom:var(--spacingHorizontalXS);}",".fiut8dr{row-gap:var(--spacingHorizontalXXS);}"]}),O9=t=>{const e=M9();return t.root.className=A(z9.root,e.root,t.root.className),t},H1=y.forwardRef((t,e)=>{const r=N9(t,e),o=R9(r);return O9(r),ue("useListboxStyles_unstable")(r),P9(r,o)});H1.displayName="Listbox";function j9(t,e){if(t!==void 0)return t;let r="",o=!1;return y.Children.forEach(e,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 D9=(t,e)=>{const{children:r,disabled:o,text:n,value:i}=t,a=y.useRef(null),s=j9(n,r),l=i??s,c=Rt("fluent-option",t.id),u=y.useMemo(()=>({id:c,disabled:o,text:s,value:l}),[c,o,s,l]),d=lt(qo,_=>_.focusVisible),f=lt(qo,_=>_.multiselect),h=lt(qo,_=>_.registerOption),g=lt(qo,_=>{const S=_.selectedOptions;return!!l&&!!S.find(C=>C===l)}),p=lt(qo,_=>_.selectOption),w=lt(qo,_=>_.setActiveOption),v=lt(Zr,_=>_.setOpen),m=lt(qo,_=>{var S,C;return((S=_.activeOption)===null||S===void 0?void 0:S.id)!==void 0&&((C=_.activeOption)===null||C===void 0?void 0:C.id)===c});let b=y.createElement(jN,null);f&&(b=g?y.createElement(Ix,null):"");const k=_=>{var S;if(o){_.preventDefault();return}w(u),f||v?.(_,!1),p(_,u),(S=t.onClick)===null||S===void 0||S.call(t,_)};y.useEffect(()=>{if(c&&a.current)return h(u,a.current)},[c,u,h]);const x=f?{role:"menuitemcheckbox","aria-checked":g}:{role:"option","aria-selected":g};return{components:{root:"div",checkIcon:"span"},root:te(ve("div",{ref:Re(e,a),"aria-disabled":o?"true":void 0,id:c,...x,...t,onClick:k}),{elementType:"div"}),checkIcon:me(t.checkIcon,{renderByDefault:!0,defaultProps:{"aria-hidden":"true",children:b},elementType:"span"}),active:m,disabled:o,focusVisible:d,multiselect:f,selected:g}},F9=t=>ke(t.root,{children:[t.checkIcon&&O(t.checkIcon,{}),t.root.children]}),Tw={root:"fui-Option",checkIcon:"fui-Option__checkIcon"},q9=q({root:{Bt984gj:"f122n59",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],sj55zd:"f19n0e5",i8kkvl:"f1ufnopg",Bceei9c:"f1k6fduh",mc9l5x:"f22iagw",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi",z8tnut:"fp2oml8",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f1tdddsa",uwmqm3:["f1f5gg8d","f1vdfbxk"],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:{Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",B80jsxd:"f1nwj1ja",t2ki1e:"ffmd2fr",Bm2nyyq:"f8rth92",Barhvk9:["flthirb","ftkbnf5"],Bw17bha:"f1lh990p",vfts7:["ftkbnf5","flthirb"],xrcqlc:"fc9v8v1",Ihftqj:["f1mwfetb","f18mat8f"],Bcgy8vk:"f1cb6c3",Bhxzhr1:["f18mat8f","f1mwfetb"],B3778ie:["f1ibwz09","f1kp91vd"],d9w3h3:["f1kp91vd","f1ibwz09"],Bl18szs:["f1pix4dl","f13nd1z4"],B4j8arr:["f13nd1z4","f1pix4dl"],B0n5ga8:"f1qw5sz7",s924m2:["f19va7ni","f1a9v3mw"],B1q35kw:"fkkziue",Gp14am:["f1a9v3mw","f19va7ni"],bn5sak:"f1a97anr",By385i5:"f5226zp",Eqx8gd:["fa2bdqt","fei6g0k"],B1piin3:["fei6g0k","fa2bdqt"]},disabled:{sj55zd:"f1s2aq7o",Jwef8y:"f9ql6rf",Bi91k9c:"fvgxktp",zqbkvg:"f185j3qj",h82x05:["f1dligi3","f1vydzie"],cqj998:"fjw1di3",j3hlsh:["f1vydzie","f1dligi3"],ecr2s2:"fgj9um3",lj723h:"f19wldhg",Btxx2vb:"f1ss0kt2",sltcwy:["f1t6oli3","fjy9ci8"],dnwvvm:"fresaxk",Blyvkvs:["fjy9ci8","f1t6oli3"],Bbusuzp:"f1dcs8yz"},selected:{},checkIcon:{Be2twd7:"fod5ikn",Frg6f3:["f18b9hdq","fn6qj8t"],t21cq0:["f1xk557c","f1h9en5y"],Bcdw1i0:"fd7fpy0",Bo70h7d:"fvc9v3g"},selectedCheck:{Bcdw1i0:"f1022m68"},multiselectCheck:{B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fq0vr37",h3c5rm:["f1byw159","f11cr0be"],B9xav0g:"f1c1zstj",zhjwy3:["f11cr0be","f1byw159"],Bbmb7ep:["f1g3puop","fi2rrw2"],Beyfa6y:["fi2rrw2","f1g3puop"],B7oj6ja:["f1rstyi9","f1s4nn1u"],Btl43ni:["f1s4nn1u","f1rstyi9"],B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Bt984gj:"f122n59",Brf1p80:"f4d9j23",Bkfmm31:"f1w9h62z",Be2twd7:"f1ugzwwg",Bqenvij:"fd461yt",a9b677:"fjw5fx7",Bcdw1i0:"f1022m68"},selectedMultiselectCheck:{De3pzq:"ftywsgz",sj55zd:"fqpbvvt",g2u3we:"f3xi7mh",h3c5rm:["ftovhe4","f1wczvin"],B9xav0g:"f68vbr6",zhjwy3:["f1wczvin","ftovhe4"]},checkDisabled:{sj55zd:"f1s2aq7o",Bbusuzp:"f1dcs8yz"},multiselectCheckDisabled:{g2u3we:"f1r1t4y1",h3c5rm:["fmj8ijw","figx54m"],B9xav0g:"f360ss8",zhjwy3:["figx54m","fmj8ijw"]}},{d:[".f122n59{align-items:center;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".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);}",".fp2oml8{padding-top:var(--spacingVerticalSNudge);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1tdddsa{padding-bottom:var(--spacingVerticalSNudge);}",".f10pi13n{position:relative;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1nwj1ja::after{pointer-events:none;}",".ffmd2fr::after{z-index:1;}",".f8rth92::after{border-top-style:solid;}",".flthirb::after{border-right-style:solid;}",".ftkbnf5::after{border-left-style:solid;}",".f1lh990p::after{border-bottom-style:solid;}",".fc9v8v1::after{border-top-width:2px;}",".f1mwfetb::after{border-right-width:2px;}",".f18mat8f::after{border-left-width:2px;}",".f1cb6c3::after{border-bottom-width:2px;}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1pix4dl::after{border-top-right-radius:var(--borderRadiusMedium);}",".f13nd1z4::after{border-top-left-radius:var(--borderRadiusMedium);}",".f1qw5sz7::after{border-top-color:var(--colorStrokeFocus2);}",".f19va7ni::after{border-right-color:var(--colorStrokeFocus2);}",".f1a9v3mw::after{border-left-color:var(--colorStrokeFocus2);}",".fkkziue::after{border-bottom-color:var(--colorStrokeFocus2);}",".f1a97anr::after{top:-2px;}",".f5226zp::after{bottom:-2px;}",".fa2bdqt::after{left:-2px;}",".fei6g0k::after{right:-2px;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".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;}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fq0vr37{border-top-color:var(--colorNeutralStrokeAccessible);}",".f1byw159{border-right-color:var(--colorNeutralStrokeAccessible);}",".f11cr0be{border-left-color:var(--colorNeutralStrokeAccessible);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f1g3puop{border-bottom-right-radius:var(--borderRadiusSmall);}",".fi2rrw2{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1rstyi9{border-top-right-radius:var(--borderRadiusSmall);}",".f1s4nn1u{border-top-left-radius:var(--borderRadiusSmall);}",".f1ewtqcl{box-sizing:border-box;}",".f4d9j23{justify-content:center;}",".f1w9h62z{fill:currentColor;}",".f1ugzwwg{font-size:12px;}",".fd461yt{height:16px;}",".fjw5fx7{width:16px;}",".ftywsgz{background-color:var(--colorCompoundBrandBackground);}",".fqpbvvt{color:var(--colorNeutralForegroundInverted);}",".f3xi7mh{border-top-color:var(--colorCompoundBrandBackground);}",".ftovhe4{border-right-color:var(--colorCompoundBrandBackground);}",".f1wczvin{border-left-color:var(--colorCompoundBrandBackground);}",".f68vbr6{border-bottom-color:var(--colorCompoundBrandBackground);}",".f1r1t4y1{border-top-color:var(--colorNeutralForegroundDisabled);}",".fmj8ijw{border-right-color:var(--colorNeutralForegroundDisabled);}",".figx54m{border-left-color:var(--colorNeutralForegroundDisabled);}",".f360ss8{border-bottom-color:var(--colorNeutralForegroundDisabled);}"],h:[".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}",".feu1g3u:hover{color:var(--colorNeutralForeground1Hover);}",".fo79ri9:hover .fui-Option__checkIcon{border-top-color:var(--colorNeutralForeground1Hover);}",".f1osiabc:hover .fui-Option__checkIcon{border-right-color:var(--colorNeutralForeground1Hover);}",".f1e8le25:hover .fui-Option__checkIcon{border-left-color:var(--colorNeutralForeground1Hover);}",".f1yusjty:hover .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForeground1Hover);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".f185j3qj:hover .fui-Option__checkIcon{border-top-color:var(--colorNeutralForegroundDisabled);}",".f1dligi3:hover .fui-Option__checkIcon{border-right-color:var(--colorNeutralForegroundDisabled);}",".f1vydzie:hover .fui-Option__checkIcon{border-left-color:var(--colorNeutralForegroundDisabled);}",".fjw1di3:hover .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForegroundDisabled);}"],a:[".fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}",".f1g4hkjv:active{color:var(--colorNeutralForeground1Pressed);}",".f1lnr2zp:active .fui-Option__checkIcon{border-top-color:var(--colorNeutralForeground1Hover);}",".f1ogfk9z:active .fui-Option__checkIcon{border-right-color:var(--colorNeutralForeground1Hover);}",".f1g7j8ec:active .fui-Option__checkIcon{border-left-color:var(--colorNeutralForeground1Hover);}",".fiuf46r:active .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForeground1Hover);}",".fgj9um3:active{background-color:var(--colorTransparentBackground);}",".f19wldhg:active{color:var(--colorNeutralForegroundDisabled);}",".f1ss0kt2:active .fui-Option__checkIcon{border-top-color:var(--colorNeutralForegroundDisabled);}",".f1t6oli3:active .fui-Option__checkIcon{border-right-color:var(--colorNeutralForegroundDisabled);}",".fjy9ci8:active .fui-Option__checkIcon{border-left-color:var(--colorNeutralForegroundDisabled);}",".fresaxk:active .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),L9=t=>{const{active:e,disabled:r,focusVisible:o,multiselect:n,selected:i}=t,a=q9();return t.root.className=A(Tw.root,a.root,e&&o&&a.active,r&&a.disabled,i&&a.selected,t.root.className),t.checkIcon&&(t.checkIcon.className=A(Tw.checkIcon,a.checkIcon,n&&a.multiselectCheck,i&&a.selectedCheck,i&&n&&a.selectedMultiselectCheck,r&&a.checkDisabled,r&&n&&a.multiselectCheckDisabled,t.checkIcon.className)),t},H9=y.forwardRef((t,e)=>{const r=D9(t,e);return L9(r),ue("useOptionStyles_unstable")(r),F9(r)});H9.displayName="Option";const U9=t=>{const{appearance:e="outline",children:r,clearable:o=!1,editable:n=!1,inlinePopup:i=!1,mountNode:a=void 0,multiselect:s,onOpenChange:l,size:c="medium"}=t,u=PT(),{getOptionAtIndex:d,getOptionsMatchingValue:f}=u,[h,g]=y.useState(),[p,w]=y.useState(!1),[v,m]=y.useState(!1),b=y.useRef(!1),k=zT(t),{selectedOptions:x}=k,_=cx(),[S,C]=Tt({state:t.value,initialState:void 0}),E=y.useMemo(()=>{if(S!==void 0)return S;if(_&&t.defaultValue!==void 0)return t.defaultValue;const R=f(M=>x.includes(M)).map(M=>M.text);return s?n?"":R.join(", "):R[0]},[S,n,f,s,t.defaultValue,x]),[I,H]=Tt({state:t.open,defaultState:t.defaultOpen,initialState:!1}),T=y.useCallback((R,M)=>{l?.(R,{open:M}),H(M)},[l,H]);return y.useEffect(()=>{if(I&&!h)if(!s&&x.length>0){const R=f(M=>M===x[0]).pop();R&&g(R)}else g(d(0));else I||g(void 0)},[I,r]),{...u,...k,activeOption:h,appearance:e,clearable:o,focusVisible:p,hasFocus:v,ignoreNextBlur:b,inlinePopup:i,mountNode:a,open:I,setActiveOption:g,setFocusVisible:w,setHasFocus:m,setOpen:T,setValue:C,size:c,value:E,multiselect:s}};function $9(t){const{positioning:e}=t,o={position:"below",align:"start",offset:{crossAxis:0,mainAxis:2},fallbackPositions:["above","after","after-top","before","before-top"],matchTargetSize:"width",...hc(e)},{targetRef:n,containerRef:i}=_f(o);return[i,n]}function K9(t,e,r){const{state:{multiselect:o},triggerRef:n,defaultProps:i}=r,a=Rt("fluent-listbox",ox(t)?t.id:void 0),s=me(t,{renderByDefault:!0,elementType:H1,defaultProps:{id:a,multiselect:o,tabIndex:void 0,...i}}),l=Q(de(d=>{d.preventDefault()},s?.onMouseDown)),c=Q(de(d=>{var f;d.preventDefault(),(f=n.current)===null||f===void 0||f.focus()},s?.onClick)),u=Re(s?.ref,e);return s&&(s.ref=u,s.onMouseDown=l,s.onClick=c),s}function W9(t,e,r){const{state:{activeOption:o,getCount:n,getIndexOfId:i,getOptionAtIndex:a,open:s,selectOption:l,setActiveOption:c,setFocusVisible:u,setOpen:d,multiselect:f,setHasFocus:h},defaultProps:g,elementType:p}=r,w=te(t,{defaultProps:{type:"text","aria-expanded":s,"aria-activedescendant":s?o?.id:void 0,role:"combobox",...typeof g=="object"&&g},elementType:p}),v=y.useRef(null);return w.ref=Re(v,w.ref,e),w.onBlur=de(m=>{d(m,!1),h(!1)},w.onBlur),w.onFocus=de(m=>{m.target===m.currentTarget&&h(!0)},w.onFocus),w.onClick=de(m=>{d(m,!s)},w.onClick),w.onKeyDown=de(m=>{const b=Md(m,{open:s,multiselect:f}),k=n()-1,x=o?i(o.id):-1;let _=x;switch(b){case"Open":m.preventDefault(),u(!0),d(m,!0);break;case"Close":m.stopPropagation(),m.preventDefault(),d(m,!1);break;case"CloseSelect":!f&&!o?.disabled&&d(m,!1);case"Select":o&&l(m,o),m.preventDefault();break;case"Tab":!f&&o&&l(m,o);break;default:_=NT(b,x,k)}_!==x&&(m.preventDefault(),c(a(_)),u(!0))},w.onKeyDown),w.onMouseOver=de(m=>{u(!1)},w.onMouseOver),w}function V9(t,e,r){const{state:{open:o,value:n,activeOption:i,selectOption:a,setValue:s,setActiveOption:l,setFocusVisible:c,multiselect:u,selectedOptions:d,clearSelection:f,getOptionsMatchingText:h,getIndexOfId:g,setOpen:p},freeform:w,defaultProps:v}=r,m=H=>{!o&&!w&&(n&&i&&n.trim().toLowerCase()===i?.text.toLowerCase()&&a(H,i),s(void 0))},b=H=>{const T=H?.trim().toLowerCase();if(!T||T.length===0)return;const M=h(j=>j.toLowerCase().indexOf(T)===0);if(M.length>1&&i){const j=g(i.id),W=M.find(B=>g(B.id)>=j);return W??M[0]}var P;return(P=M[0])!==null&&P!==void 0?P:void 0},k=H=>{const T=H.target.value;s(T);const R=b(T);l(R),c(!0),!u&&d.length===1&&(T.length<1||!R)&&f(H)},x=W9(t,e,{state:r.state,defaultProps:v,elementType:"input"});x.onChange=de(x.onChange,k),x.onBlur=de(x.onBlur,m);const[_,S]=y.useState(!1),C=y.useRef(!1),E=x.onKeyDown,I=Q(H=>{!o&&Md(H)==="Type"&&p(H,!0),H.key===yf||H.key===dc?S(!0):S(!1);const T=Md(H,{open:o,multiselect:u});if(T==="Type"?C.current=!0:(T==="Open"&&H.key!==" "||T==="Next"||T==="Previous"||T==="First"||T==="Last"||T==="PageUp"||T==="PageDown")&&(C.current=!1),(C.current||!o)&&H.key===" "){var R;t==null||(R=t.onKeyDown)===null||R===void 0||R.call(t,H);return}E?.(H)});return x.onKeyDown=I,_&&(x["aria-activedescendant"]=void 0),x}const G9=(t,e)=>{var r,o;t=vs(t,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const n=U9({...t,editable:!0}),{clearable:i,clearSelection:a,multiselect:s,open:l,selectedOptions:c,selectOption:u,setOpen:d,setValue:f,value:h,hasFocus:g}=n,[p,w]=$9(t),{disabled:v,freeform:m,inlinePopup:b}=t,k=Rt("combobox-"),{primary:x,root:_}=$i({props:t,primarySlotTagName:"input",excludedPropNames:["children","size"]});n.selectOption=(D,U)=>{f(void 0),u(D,U)},n.setOpen=(D,U)=>{v||(!U&&!m&&f(void 0),d(D,U))};const S=y.useRef(null),C=K9(t.listbox,p,{state:n,triggerRef:S,defaultProps:{children:t.children}});var E;const I=V9((E=t.input)!==null&&E!==void 0?E:{},Re(S,e),{state:n,freeform:m,defaultProps:{type:"text",value:h??"",...x}}),H=te(t.root,{defaultProps:{"aria-owns":!b&&l?C?.id:void 0,..._},elementType:"div"});H.ref=Re(H.ref,w);const T=c.length>0&&i&&!s,R={components:{root:"div",input:"input",expandIcon:"span",listbox:H1,clearIcon:"span"},root:H,input:I,listbox:l||g?C:void 0,clearIcon:me(t.clearIcon,{defaultProps:{"aria-hidden":"true",children:y.createElement($N,null)},elementType:"span",renderByDefault:!0}),expandIcon:me(t.expandIcon,{renderByDefault:!0,defaultProps:{"aria-expanded":l,children:y.createElement(FN,null),role:"button"},elementType:"span"}),showClearIcon:T,...n},{onMouseDown:M}=R.expandIcon||{},P=Q(de(M,D=>{var U;D.preventDefault(),R.setOpen(D,!R.open),(U=S.current)===null||U===void 0||U.focus()}));if(R.expandIcon){R.expandIcon.onMouseDown=P;const D=R.expandIcon["aria-label"]||R.expandIcon["aria-labelledby"],U="Open";if(!D)if(t["aria-labelledby"]){var j;const z=(j=R.expandIcon.id)!==null&&j!==void 0?j:`${k}-chevron`,L=`${z} ${R.input["aria-labelledby"]}`;R.expandIcon["aria-label"]=U,R.expandIcon.id=z,R.expandIcon["aria-labelledby"]=L}else t["aria-label"]?R.expandIcon["aria-label"]=`${U} ${t["aria-label"]}`:R.expandIcon["aria-label"]=U}const W=Q(de((r=R.clearIcon)===null||r===void 0?void 0:r.onMouseDown,D=>{D.preventDefault()})),B=Q(de((o=R.clearIcon)===null||o===void 0?void 0:o.onClick,D=>{a(D)}));return R.clearIcon&&(R.clearIcon.onMouseDown=W,R.clearIcon.onClick=B),s&&(R.clearIcon=void 0),R},X9=(t,e)=>O(t.root,{children:ke(Zr.Provider,{value:e.combobox,children:[O(t.input,{}),t.clearIcon&&O(t.clearIcon,{}),O(t.expandIcon,{}),t.listbox&&(t.inlinePopup?O(t.listbox,{}):O(Gi,{mountNode:t.mountNode,children:O(t.listbox,{})}))]})}),Rs={root:"fui-Combobox",input:"fui-Combobox__input",expandIcon:"fui-Combobox__expandIcon",clearIcon:"fui-Combobox__clearIcon",listbox:"fui-Combobox__listbox"},Y9=q({root:{Bt984gj:"f122n59",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B7ck84d:"f1ewtqcl",i8kkvl:"f14mj54c",mc9l5x:"fwk3njj",Budl1dq:"fz17x9o",Brf1p80:"f1869bpl",Bf4jedk:"f1exfvgq",qhf8xq:"f10pi13n",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"],Bcgy8vk:"f14pi962",Bw17bha:"f1lh990p",B1q35kw:"f1jc6hxc",Gjdm7m:"f13evtba",b1kco5:"f1yk9hq",Ba2ppi3:"fhwpy7i",F2fol1:"f14ee0xe",lck23g:"f1xhbsuh",df92cz:"fv8e3ye",I188md:"ftb5wc6",umuwi5:"fjw5xc1",Blcqepd:"f1xdyd5c",nplu4u:"fatpbeo",Bioka5o:"fb7uyps",H713fs:"f1cmft4k",B9ooomg:"f1x58t8o",Bercvud:"f1ibeo51"},listbox:{E5pizo:"f1hg901r",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],Bxyxcbc:"fmmk62d",B7ck84d:"f1ewtqcl"},listboxCollapsed:{mc9l5x:"fjseox"},small:{z189sj:["fdw0yi8","fk8j09s"]},medium:{z189sj:["f11gcy0p","f1ng84yb"]},large:{i8kkvl:"f1rjii52",z189sj:["fw5db7e","f1uw59to"]},outline:{De3pzq:"fxugw4r",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1c1zstj",zhjwy3:["f1lxtadh","f1akhkt"]},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"flmw63s",gg5e9n:["f1m52nbi","f1ub3y4t"],B6oc9vd:"fvs00aa",ak43y8:["f1assf6x","f4ruux4"],wmxk5l:"fqhmt4z",B50zh58:["f4ruux4","f1assf6x"]},underline:{De3pzq:"f1c21dwh",Bn0qgzm:"f1vxd6vx",oivjwe:"fg706s2",B9xav0g:"f1c1zstj",Bbmb7ep:["f1krrbdw","f1deotkl"],Beyfa6y:["f1deotkl","f1krrbdw"],B7oj6ja:["f10ostut","f1ozlkrg"],Btl43ni:["f1ozlkrg","f10ostut"]},"filled-lighter":{De3pzq:"fxugw4r",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},"filled-darker":{De3pzq:"f16xq7d1",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},invalidUnderline:{hhx65j:"f1fgmyf4"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"]}},{d:[".f122n59{align-items:center;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".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;}",".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);}",".f14pi962::after{border-bottom-width:var(--strokeWidthThick);}",".f1lh990p::after{border-bottom-style:solid;}",".f1jc6hxc::after{border-bottom-color:var(--colorCompoundBrandStroke);}",".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);}",".fmmk62d{max-height:80vh;}",".fjseox{display:none;}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1krrbdw{border-bottom-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1ozlkrg{border-top-left-radius:0;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".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);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.fv8e3ye::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.ftb5wc6::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1cmft4k:focus-within::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1x58t8o:focus-within::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".flmw63s:hover{border-bottom-color:var(--colorNeutralStrokeAccessible);}"],a:[".fvs00aa:active{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1assf6x:active{border-right-color:var(--colorNeutralStroke1Pressed);}",".f4ruux4:active{border-left-color:var(--colorNeutralStroke1Pressed);}",".fqhmt4z:active{border-bottom-color:var(--colorNeutralStrokeAccessible);}"]}),Z9=q({input:{De3pzq:"f1c21dwh",B4j52fo:"fre7gi1",Bekrc4i:["f1358rze","f1rvrf73"],Bn0qgzm:"fqdk4by",ibv6hh:["f1rvrf73","f1358rze"],sj55zd:"f19n0e5",Bahqtrf:"fk6fouc",Brovlpu:"ftqa4ok",yvdlaj:"fwyc1cq",B3o7kgh:"f13ta7ih"},small:{Bqenvij:"f50nw0v",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1xile11","fqznh8f"]},medium:{Bqenvij:"f1tvdnth",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1e60jzv","f135dnwl"]},large:{Bqenvij:"f1ihhdec",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["fnphzt9","flt1dlf"]},disabled:{sj55zd:"f1s2aq7o",De3pzq:"f1c21dwh",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fre7gi1{border-top-width:0;}",".f1358rze{border-right-width:0;}",".f1rvrf73{border-left-width:0;}",".fqdk4by{border-bottom-width:0;}",".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;}",".f50nw0v{height:22px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".f1xile11{padding-left:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".fqznh8f{padding-right:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".f1tvdnth{height:30px;}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1e60jzv{padding-left:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f135dnwl{padding-right:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f1ihhdec{height:38px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fnphzt9{padding-left:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".flt1dlf{padding-right:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".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;}"]}),Q9=q({icon:{B7ck84d:"f1ewtqcl",sj55zd:"fxkbij4",Bceei9c:"f1k6fduh",mc9l5x:"ftgm304",Be2twd7:"f1pp30po",Bo70h7d:"fvc9v3g"},hidden:{mc9l5x:"fjseox"},visuallyHidden:{Bh84pgu:"f1ekcaio",Bqenvij:"f1mpe4l3",B6of3ja:"fkrn0sh",t21cq0:["f179hvsh","f1538868"],jrapky:"fmxx68s",Frg6f3:["f1538868","f179hvsh"],B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",z8tnut:"f1nbblvp",z189sj:["fifp7yv","f1asdtw4"],Byoj8tv:"f1ov4xf1",uwmqm3:["f1asdtw4","fifp7yv"],a9b677:"frkrog8",qhf8xq:"f1euv43f"},small:{Be2twd7:"f4ybsrx",Frg6f3:["f1h9en5y","f1xk557c"]},medium:{Be2twd7:"fe5j1ua",Frg6f3:["f1h9en5y","f1xk557c"]},large:{Be2twd7:"f1rt2boy",Frg6f3:["f1t5qyk5","f1ikr372"]},disabled:{sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr"}},{d:[".f1ewtqcl{box-sizing:border-box;}",".fxkbij4{color:var(--colorNeutralStrokeAccessible);}",".f1k6fduh{cursor:pointer;}",".ftgm304{display:block;}",".f1pp30po{font-size:var(--fontSizeBase500);}",".fvc9v3g svg{display:block;}",".fjseox{display:none;}",".f1ekcaio{clip:rect(0px, 0px, 0px, 0px);}",".f1mpe4l3{height:1px;}",".fkrn0sh{margin-top:-1px;}",".f179hvsh{margin-right:-1px;}",".f1538868{margin-left:-1px;}",".fmxx68s{margin-bottom:-1px;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".f1nbblvp{padding-top:0px;}",".fifp7yv{padding-right:0px;}",".f1asdtw4{padding-left:0px;}",".f1ov4xf1{padding-bottom:0px;}",".frkrog8{width:1px;}",".f1euv43f{position:absolute;}",".f4ybsrx{font-size:16px;}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".fe5j1ua{font-size:20px;}",".f1rt2boy{font-size:24px;}",".f1t5qyk5{margin-left:var(--spacingHorizontalSNudge);}",".f1ikr372{margin-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}"]}),J9=t=>{const{appearance:e,open:r,size:o,showClearIcon:n}=t,i=`${t.input["aria-invalid"]}`=="true",a=t.input.disabled,s=Y9(),l=Q9(),c=Z9();return t.root.className=A(Rs.root,s.root,s[e],s[o],!a&&e==="outline"&&s.outlineInteractive,i&&e!=="underline"&&s.invalid,i&&e==="underline"&&s.invalidUnderline,a&&s.disabled,t.root.className),t.input.className=A(Rs.input,c.input,c[o],a&&c.disabled,t.input.className),t.listbox&&(t.listbox.className=A(Rs.listbox,s.listbox,!r&&s.listboxCollapsed,t.listbox.className)),t.expandIcon&&(t.expandIcon.className=A(Rs.expandIcon,l.icon,l[o],a&&l.disabled,n&&l.visuallyHidden,t.expandIcon.className)),t.clearIcon&&(t.clearIcon.className=A(Rs.clearIcon,l.icon,l[o],a&&l.disabled,!n&&l.hidden,t.clearIcon.className)),t},eD=y.forwardRef((t,e)=>{const r=G9(t,e),o=I9(r);return J9(r),ue("useComboboxStyles_unstable")(r),X9(r,o)});eD.displayName="Combobox";const MT=t=>O(t.root,{children:t.root.children!==void 0&&O(t.wrapper,{children:t.root.children})}),OT=(t,e)=>{const{alignContent:r="center",appearance:o="default",inset:n=!1,vertical:i=!1,wrapper:a}=t,s=Rt("divider-");return{alignContent:r,appearance:o,inset:n,vertical:i,components:{root:"div",wrapper:"div"},root:te(ve("div",{role:"separator","aria-orientation":i?"vertical":"horizontal","aria-labelledby":t.children?s:void 0,...t,ref:e}),{elementType:"div"}),wrapper:te(a,{defaultProps:{id:s,children:t.children},elementType:"div"})}},Ew={root:"fui-Divider",wrapper:"fui-Divider__wrapper"},tD=q({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:"fkfq4zb",Bq4z7u6:"f5g06un",Bk5zm6e:["f13sxdku","f1n015lb"],Bqjgrrk:"f1x6bl8t",Bm6vgfq:["f1n015lb","f13sxdku"],B0n5ga8:"fvod1wy",s924m2:["fwslg65","flk0e17"],B1q35kw:"f103fvts",Gp14am:["flk0e17","fwslg65"]},strong:{sj55zd:"fkfq4zb",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);}",".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);}",".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);}"]}),rD=q({base:{a9b677:"fly5x3f",Bdkvgpv:"f163fonl",B0qfbqy:"f51yk4v",pbipgd:"f13rof3u",Bm2nyyq:"f8rth92",xrcqlc:"f6czdpx",i5u598:"f1iyka9k"},inset:{uwmqm3:["fjlbh76","f11qrl6u"],z189sj:["f11qrl6u","fjlbh76"]},start:{Ftih45:"f1wl9k8s",Bicfajf:["f1ojjlep","fk1kexq"],Bxwl2t9:"f1he2m4d",jwcpgy:["f12w1bnb","f1558wlj"]},center:{Bicfajf:["f1ojjlep","fk1kexq"],jwcpgy:["f12w1bnb","f1558wlj"]},end:{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;}",'.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;}",'.f13zj6fq::after{content:"";}',".f1ayce8x::after{max-width:8px;}"]}),oD=q({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;}"]}),jT=t=>{const e=tD(),r=rD(),o=oD(),{alignContent:n,appearance:i,inset:a,vertical:s}=t;return t.root.className=A(Ew.root,e.base,e[n],i&&e[i],!s&&r.base,!s&&a&&r.inset,!s&&r[n],s&&o.base,s&&a&&o.inset,s&&o[n],s&&t.root.children!==void 0&&o.withChildren,t.root.children===void 0&&e.childless,t.root.className),t.wrapper&&(t.wrapper.className=A(Ew.wrapper,t.wrapper.className)),t},nD=y.forwardRef((t,e)=>{const r=OT(t,e);return jT(r),ue("useDividerStyles_unstable")(r),MT(r)});nD.displayName="Divider";const iD=(t,e)=>{t=vs(t,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const r=ff();var o;const{size:n="medium",appearance:i=(o=r.inputDefaultAppearance)!==null&&o!==void 0?o:"outline",onChange:a}=t,[s,l]=Tt({state:t.value,defaultState:t.defaultValue,initialState:""}),c=$i({props:t,primarySlotTagName:"input",excludedPropNames:["size","onChange","value","defaultValue"]}),u={size:n,appearance:i,components:{root:"span",input:"input",contentBefore:"span",contentAfter:"span"},input:te(t.input,{defaultProps:{type:"text",ref:e,...c.primary},elementType:"input"}),contentAfter:me(t.contentAfter,{elementType:"span"}),contentBefore:me(t.contentBefore,{elementType:"span"}),root:te(t.root,{defaultProps:c.root,elementType:"span"})};return u.input.value=s,u.input.onChange=Q(d=>{const f=d.target.value;a?.(d,{value:f}),l(f)}),u},aD=t=>ke(t.root,{children:[t.contentBefore&&O(t.contentBefore,{}),O(t.input,{}),t.contentAfter&&O(t.contentAfter,{})]}),Zc={root:"fui-Input",input:"fui-Input__input",contentBefore:"fui-Input__contentBefore",contentAfter:"fui-Input__contentAfter"},sD=fe("r1jtohuq","rl1z2p5",{r:[".r1jtohuq{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;min-height:32px;padding:0 var(--spacingHorizontalMNudge);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);}",'.r1jtohuq::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);}',".r1jtohuq:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".r1jtohuq:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".r1jtohuq:focus-within{outline:2px solid transparent;}",".rl1z2p5{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;min-height:32px;padding:0 var(--spacingHorizontalMNudge);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);}",'.rl1z2p5::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);}',".rl1z2p5:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".rl1z2p5:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".rl1z2p5:focus-within{outline:2px solid transparent;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1jtohuq::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r1jtohuq:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.rl1z2p5::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.rl1z2p5:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}"]}),lD=q({small:{sshi5w:"f1pha7fy",uwmqm3:["fk8j09s","fdw0yi8"],z189sj:["fdw0yi8","fk8j09s"],Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},medium:{},large:{sshi5w:"f1w5jphr",uwmqm3:["f1uw59to","fw5db7e"],z189sj:["fw5db7e","f1uw59to"],Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",i8kkvl:"f1rjii52",Belr9w4:"f1r7g2jn"},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",Bbmb7ep:["f1krrbdw","f1deotkl"],Beyfa6y:["f1deotkl","f1krrbdw"],B7oj6ja:["f10ostut","f1ozlkrg"],Btl43ni:["f1ozlkrg","f10ostut"],icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],wvpqe5:["f1deefiw","f1n71otn"],Eqx8gd:["f1n6gb5g","f15yvnhg"],B1piin3:["f15yvnhg","f1n6gb5g"]},underlineInteractive:{oetu4i:"f1l4zc64",Be8ivqh:"f1klwx88",B3778ie:["f1nf3wye","feulmo5"],d9w3h3:["feulmo5","f1nf3wye"],Bl18szs:["f18vqdqu","f53nyzz"],B4j8arr:["f53nyzz","f18vqdqu"]},filled:{g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},filledInteractive:{q7v0qe:"ftmjh5b",kmh5ft:["f17blpuu","fsrcdbj"],nagaa4:"f1tpwn32",B1yhkcb:["fsrcdbj","f17blpuu"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},"filled-darker":{De3pzq:"f16xq7d1"},"filled-lighter":{De3pzq:"fxugw4r"},"filled-darker-shadow":{De3pzq:"f16xq7d1",E5pizo:"fyed02w"},"filled-lighter-shadow":{De3pzq:"fxugw4r",E5pizo:"fyed02w"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"],Bsft5z2:"fhr9occ",Bduesf4:"f99w1ws"}},{d:[".f1pha7fy{min-height:24px;}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1w5jphr{min-height:40px;}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".f1r7g2jn{row-gap:var(--spacingHorizontalSNudge);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1krrbdw{border-bottom-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1ozlkrg{border-top-left-radius:0;}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".f1nf3wye::after{border-bottom-right-radius:0;}",".feulmo5::after{border-bottom-left-radius:0;}",".f18vqdqu::after{border-top-right-radius:0;}",".f53nyzz::after{border-top-left-radius:0;}",".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;}"],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}",".ftmjh5b:hover,.ftmjh5b:focus-within{border-top-color:var(--colorTransparentStrokeInteractive);}",".f17blpuu:hover,.f17blpuu:focus-within{border-right-color:var(--colorTransparentStrokeInteractive);}",".fsrcdbj:hover,.fsrcdbj:focus-within{border-left-color:var(--colorTransparentStrokeInteractive);}",".f1tpwn32:hover,.f1tpwn32:focus-within{border-bottom-color:var(--colorTransparentStrokeInteractive);}"],a:[".f8vnjqi:active,.f8vnjqi:focus-within{border-top-color:var(--colorNeutralStroke1Pressed);}",".fz1etlk:active,.fz1etlk:focus-within{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1hc16gm:active,.f1hc16gm:focus-within{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1klwx88:active,.f1klwx88:focus-within{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"],m:[["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],w:[".f99w1ws:focus-within{outline-style:none;}"]}),cD=fe("rvp2gzh",null,[".rvp2gzh{box-sizing:border-box;flex-grow:1;min-width:0;border-style:none;padding:0 var(--spacingHorizontalXXS);color:var(--colorNeutralForeground1);background-color:transparent;outline-style:none;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;}",".rvp2gzh::-webkit-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".rvp2gzh::-moz-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".rvp2gzh:-ms-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".rvp2gzh::placeholder{color:var(--colorNeutralForeground4);opacity:1;}"]),uD=q({large:{uwmqm3:["fk8j09s","fdw0yi8"],z189sj:["fdw0yi8","fk8j09s"]},disabled:{sj55zd:"f1s2aq7o",De3pzq:"f1c21dwh",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"}},{d:[".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);}"]}),dD=fe("r1572tok",null,[".r1572tok{box-sizing:border-box;color:var(--colorNeutralForeground3);display:flex;}",".r1572tok>svg{font-size:20px;}"]),fD=q({disabled:{sj55zd:"f1s2aq7o"},small:{kwki1k:"f3u2cy0"},medium:{},large:{kwki1k:"fa420co"}},{d:[".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f3u2cy0>svg{font-size:16px;}",".fa420co>svg{font-size:24px;}"]}),hD=t=>{const{size:e,appearance:r}=t,o=t.input.disabled,n=`${t.input["aria-invalid"]}`=="true",i=r.startsWith("filled"),a=lD(),s=uD(),l=fD();t.root.className=A(Zc.root,sD(),a[e],a[r],!o&&r==="outline"&&a.outlineInteractive,!o&&r==="underline"&&a.underlineInteractive,!o&&i&&a.filledInteractive,i&&a.filled,!o&&n&&a.invalid,o&&a.disabled,t.root.className),t.input.className=A(Zc.input,cD(),e==="large"&&s.large,o&&s.disabled,t.input.className);const c=[dD(),o&&l.disabled,l[e]];return t.contentBefore&&(t.contentBefore.className=A(Zc.contentBefore,...c,t.contentBefore.className)),t.contentAfter&&(t.contentAfter.className=A(Zc.contentAfter,...c,t.contentAfter.className)),t},gD=y.forwardRef((t,e)=>{const r=iD(t,e);return hD(r),ue("useInputStyles_unstable")(r),aD(r)});gD.displayName="Input";const pD=t=>O(t.root,{}),mD=(t,e)=>{const{bordered:r=!1,fit:o="default",block:n=!1,shape:i="square",shadow:a=!1}=t;return{bordered:r,fit:o,block:n,shape:i,shadow:a,components:{root:"img"},root:te(ve("img",{ref:e,...t}),{elementType:"img"})}},vD={root:"fui-Image"},bD=q({base:{g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1aperda",zhjwy3:["f1lxtadh","f1akhkt"],Bbmb7ep:["fzi6hpg","fyowgf4"],Beyfa6y:["fyowgf4","fzi6hpg"],B7oj6ja:["f3fg2lr","f13av6d4"],Btl43ni:["f13av6d4","f3fg2lr"],B7ck84d:"f1ewtqcl",mc9l5x:"f14t3ns0"},bordered:{icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"]},circular:{Bbmb7ep:["f8fbkgy","f1nfllo7"],Beyfa6y:["f1nfllo7","f8fbkgy"],B7oj6ja:["f1djnp8u","f1s8kh49"],Btl43ni:["f1s8kh49","f1djnp8u"]},rounded:{Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"]},square:{},shadow:{E5pizo:"f1whvlc6"},center:{st4lth:"f1plgu50",Ermj5k:"f14xojzb",Bqenvij:"f1l02sjl",a9b677:"fly5x3f"},contain:{st4lth:"f1kle4es",Ermj5k:"f14xojzb",Bqenvij:"f1l02sjl",a9b677:"fly5x3f"},default:{},cover:{st4lth:"f1ps3kmd",Ermj5k:"f14xojzb",Bqenvij:"f1l02sjl",a9b677:"fly5x3f"},none:{st4lth:"f1plgu50",Ermj5k:["f13uwng7","fjmyj0p"],Bqenvij:"f1l02sjl",a9b677:"fly5x3f"},block:{a9b677:"fly5x3f"}},{d:[".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1aperda{border-bottom-color:var(--colorNeutralStroke1);}",".fzi6hpg{border-bottom-right-radius:var(--borderRadiusNone);}",".fyowgf4{border-bottom-left-radius:var(--borderRadiusNone);}",".f3fg2lr{border-top-right-radius:var(--borderRadiusNone);}",".f13av6d4{border-top-left-radius:var(--borderRadiusNone);}",".f1ewtqcl{box-sizing:border-box;}",".f14t3ns0{display:inline-block;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".f8fbkgy{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1nfllo7{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1djnp8u{border-top-right-radius:var(--borderRadiusCircular);}",".f1s8kh49{border-top-left-radius:var(--borderRadiusCircular);}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f1whvlc6{box-shadow:var(--shadow4);}",".f1plgu50{object-fit:none;}",".f14xojzb{object-position:center;}",".f1l02sjl{height:100%;}",".fly5x3f{width:100%;}",".f1kle4es{object-fit:contain;}",".f1ps3kmd{object-fit:cover;}",".f13uwng7{object-position:left top;}",".fjmyj0p{object-position:right top;}"]}),yD=t=>{const e=bD();t.root.className=A(vD.root,e.base,t.block&&e.block,t.bordered&&e.bordered,t.shadow&&e.shadow,e[t.fit],e[t.shape],t.root.className)},wD=y.forwardRef((t,e)=>{const r=mD(t,e);return yD(r),ue("useImageStyles_unstable")(r),pD(r)});wD.displayName="Image";const kD=t=>{const{disabled:e,disabledFocusable:r}=t,{onClick:o,onKeyDown:n,role:i,tabIndex:a}=t.root;return t.root.as==="a"&&(t.root.href=e?void 0:t.root.href,(e||r)&&(t.root.role=i||"link")),(t.root.as==="a"||t.root.as==="span")&&(t.root.tabIndex=a??(e&&!r?void 0:0)),t.root.onClick=s=>{e||r?s.preventDefault():o?.(s)},t.root.onKeyDown=s=>{(e||r)&&(s.key===Co||s.key===Mr)?(s.preventDefault(),s.stopPropagation()):n?.(s)},t.disabled=e||r,t.root["aria-disabled"]=e||r||void 0,t.root.as==="button"&&(t.root.disabled=e&&!r),t},SD=(t,e)=>{const r=Rv(),{appearance:o="default",disabled:n=!1,disabledFocusable:i=!1,inline:a=!1}=t,s=t.as||(t.href?"a":"button"),l={role:s==="span"?"button":void 0,type:s==="button"?"button":void 0,...t,as:s},c={appearance:o,disabled:n,disabledFocusable:i,inline:a,components:{root:s},root:te(ve(s,{ref:e,...l}),{elementType:s}),backgroundAppearance:r};return kD(c),c},_D={root:"fui-Link"},xD=q({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",B6of3ja:"f1hu3pq6",t21cq0:["f11qmguv","f1tyq0we"],jrapky:"f19f4twv",Frg6f3:["f1tyq0we","f11qmguv"],z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1cnd47f","fhxju0i"],B68tc82:"fqv5qza",Bmxbyg5:"f1vmzxwi",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:"fkfq4zb",Bde5pd6:"f1tx3yz7",Bi91k9c:"fnwyq0v",i089h6:"f1eh06m1",lj723h:"flvvhsy"},inline:{w71qe1:"f13mvf36"},disabled:{w71qe1:"f1iuv45f",sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bde5pd6:"fbnuktb",Bi91k9c:"fvgxktp",i089h6:"fljg2da",lj723h:"f19wldhg"},inverted:{sj55zd:"f1qz2gb0",Bi91k9c:"f1mlt8il",lj723h:"f1hsd4st"}},{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);}",".f1hu3pq6{margin-top:0;}",".f11qmguv{margin-right:0;}",".f1tyq0we{margin-left:0;}",".f19f4twv{margin-bottom:0;}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".fqv5qza{overflow-x:inherit;}",".f1vmzxwi{overflow-y:inherit;}",".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;-ms-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;}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f13mvf36{text-decoration-line:underline;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f1qz2gb0{color:var(--colorBrandForegroundInverted);}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"],h:[".f1tx3yz7:hover{text-decoration-line:underline;}",".f1deo86v:hover{color:var(--colorBrandForegroundLinkHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".fbnuktb:hover{text-decoration-line:none;}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".f1mlt8il:hover{color:var(--colorBrandForegroundInvertedHover);}"],a:[".f1eh06m1:active{text-decoration-line:underline;}",".f1iescvh:active{color:var(--colorBrandForegroundLinkPressed);}",".flvvhsy:active{color:var(--colorNeutralForeground2Pressed);}",".fljg2da:active{text-decoration-line:none;}",".f19wldhg:active{color:var(--colorNeutralForegroundDisabled);}",".f1hsd4st:active{color:var(--colorBrandForegroundInvertedPressed);}"]}),CD=t=>{const e=xD(),{appearance:r,disabled:o,inline:n,root:i,backgroundAppearance:a}=t;return t.root.className=A(_D.root,e.root,e.focusIndicator,i.as==="a"&&i.href&&e.href,i.as==="button"&&e.button,r==="subtle"&&e.subtle,a==="inverted"&&e.inverted,n&&e.inline,o&&e.disabled,t.root.className),t},TD=t=>O(t.root,{}),ED=y.forwardRef((t,e)=>{const r=SD(t,e);return CD(r),TD(r)});ED.displayName="Link";const U1=fn(void 0),BD={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},ID=U1.Provider,Xe=t=>lt(U1,(e=BD)=>t(e)),DT=y.createContext(void 0),RD=!1,AD=DT.Provider,ND=()=>{var t;return(t=y.useContext(DT))!==null&&t!==void 0?t:RD},FT=y.createContext(void 0),PD={headerId:""};FT.Provider;const zD=()=>{var t;return(t=y.useContext(FT))!==null&&t!==void 0?t:PD},$1=fn(void 0),MD={checkedValues:{},setFocusByFirstCharacter:()=>null,toggleCheckbox:()=>null,selectRadio:()=>null,hasIcons:!1,hasCheckmarks:!1},OD=$1.Provider,Hp=t=>lt($1,(e=MD)=>t(e)),Ll="fuimenuenter",jD=t=>{const{refs:e,callback:r,element:o,disabled:n}=t,i=Q(a=>{const s=e[0],l=a.target;var c;!wl((c=s.current)!==null&&c!==void 0?c:null,l)&&!n&&r(a)});y.useEffect(()=>{if(o!=null)return n||o.addEventListener(Ll,i),()=>{o.removeEventListener(Ll,i)}},[i,o,n])},DD=(t,e)=>{t.dispatchEvent(new CustomEvent(Ll,{bubbles:!0,detail:{nativeEvent:e}}))};function K1(){const t=Xe(r=>r.isSubmenu),e=uc($1);return t||e}const FD=["after","after-bottom","before-top","before","before-bottom","above"],qD=t=>{const e=K1(),{hoverDelay:r=500,inline:o=!1,hasCheckmarks:n=!1,hasIcons:i=!1,closeOnScroll:a=!1,openOnContext:s=!1,persistOnItemClick:l=!1,openOnHover:c=e,defaultCheckedValues:u,mountNode:d=null}=t,f=Rt("menu"),[h,g]=wC(),p={position:e?"after":"below",align:e?"top":"start",target:t.openOnContext?h:void 0,fallbackPositions:e?FD:void 0,...hc(t.positioning)},w=y.Children.toArray(t.children);let v,m;w.length===2?(v=w[0],m=w[1]):w.length===1&&(m=w[0]);const{targetRef:b,containerRef:k}=_f(p),[x,_]=HD({hoverDelay:r,isSubmenu:e,setContextTarget:g,closeOnScroll:a,menuPopoverRef:k,triggerRef:b,open:t.open,defaultOpen:t.defaultOpen,onOpenChange:t.onOpenChange,openOnContext:s}),[S,C]=LD({checkedValues:t.checkedValues,defaultCheckedValues:u,onCheckedValueChange:t.onCheckedValueChange});return{inline:o,hoverDelay:r,triggerId:f,isSubmenu:e,openOnHover:c,contextTarget:h,setContextTarget:g,hasCheckmarks:n,hasIcons:i,closeOnScroll:a,menuTrigger:v,menuPopover:m,mountNode:d,triggerRef:b,menuPopoverRef:k,components:{},openOnContext:s,open:x,setOpen:_,checkedValues:S,onCheckedValueChange:C,persistOnItemClick:l}},LD=t=>{const[e,r]=Tt({state:t.checkedValues,defaultState:t.defaultCheckedValues,initialState:{}}),o=Q((n,{name:i,checkedItems:a})=>{var s;(s=t.onCheckedValueChange)===null||s===void 0||s.call(t,n,{name:i,checkedItems:a}),r(l=>({...l,[i]:a}))});return[e,o]},HD=t=>{const{targetDocument:e}=Pe(),r=Xe(h=>h.setOpen),o=Q((h,g)=>{var p;return(p=t.onOpenChange)===null||p===void 0?void 0:p.call(t,h,g)}),n=y.useRef(0),i=y.useRef(!1),[a,s]=Tt({state:t.open,defaultState:t.defaultOpen,initialState:!1}),l=Q((h,g)=>{const p=h instanceof CustomEvent&&h.type===Ll?h.detail.nativeEvent:h;o?.(p,{...g}),g.open&&h.type==="contextmenu"&&t.setContextTarget(h),g.open||t.setContextTarget(void 0),g.bubble&&r(h,{...g}),s(g.open)}),c=Q((h,g)=>{if(clearTimeout(n.current),!(h instanceof Event)&&h.persist&&h.persist(),h.type==="mouseleave"||h.type==="mouseenter"||h.type==="mousemove"||h.type===Ll){var p;!((p=t.triggerRef.current)===null||p===void 0)&&p.contains(h.target)&&(i.current=h.type==="mouseenter"||h.type==="mousemove"),n.current=setTimeout(()=>l(h,g),t.hoverDelay)}else l(h,g)});yx({contains:wl,disabled:!a,element:e,refs:[t.menuPopoverRef,!t.openOnContext&&t.triggerRef].filter(Boolean),callback:h=>c(h,{open:!1,type:"clickOutside",event:h})});const u=t.openOnContext||t.closeOnScroll;wx({contains:wl,element:e,callback:h=>c(h,{open:!1,type:"scrollOutside",event:h}),refs:[t.menuPopoverRef,!t.openOnContext&&t.triggerRef].filter(Boolean),disabled:!a||!u}),jD({element:e,callback:h=>{i.current||c(h,{open:!1,type:"menuMouseEnter",event:h})},disabled:!a,refs:[t.menuPopoverRef]}),y.useEffect(()=>()=>{clearTimeout(n.current)},[]);const{findFirstFocusable:d}=Ao(),f=y.useCallback(()=>{const h=d(t.menuPopoverRef.current);h?.focus()},[d,t.menuPopoverRef]);return y.useEffect(()=>{a&&f()},[a,f]),[a,c]};function UD(t){const{checkedValues:e,hasCheckmarks:r,hasIcons:o,inline:n,isSubmenu:i,menuPopoverRef:a,mountNode:s,onCheckedValueChange:l,open:c,openOnContext:u,openOnHover:d,persistOnItemClick:f,setOpen:h,triggerId:g,triggerRef:p}=t;return{menu:{checkedValues:e,hasCheckmarks:r,hasIcons:o,inline:n,isSubmenu:i,menuPopoverRef:a,mountNode:s,onCheckedValueChange:l,open:c,openOnContext:u,openOnHover:d,persistOnItemClick:f,setOpen:h,triggerId:g,triggerRef:p}}}const $D=(t,e)=>y.createElement(ID,{value:e.menu},t.menuTrigger,t.open&&t.menuPopover),KD=t=>{const e=qD(t),r=UD(e);return $D(e,r)};KD.displayName="Menu";const WD=(t,e)=>({components:{root:"div"},root:te(ve("div",{role:"presentation","aria-hidden":!0,...t,ref:e}),{elementType:"div"})}),VD={root:"fui-MenuDivider"},GD=q({root:{B6of3ja:"fvjh0tl",t21cq0:["f1rnx978","f1q7jvqi"],jrapky:"fd1gkq",Frg6f3:["f1q7jvqi","f1rnx978"],a9b677:"f14z66ap",Bn0qgzm:"f1vxd6vx",oivjwe:"fg706s2",B9xav0g:"frpde29"}},{d:[".fvjh0tl{margin-top:4px;}",".f1rnx978{margin-right:-5px;}",".f1q7jvqi{margin-left:-5px;}",".fd1gkq{margin-bottom:4px;}",".f14z66ap{width:auto;}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fg706s2{border-bottom-style:solid;}",".frpde29{border-bottom-color:var(--colorNeutralStroke2);}"]}),XD=t=>{const e=GD();return t.root.className=A(VD.root,e.root,t.root.className),t},YD=t=>O(t.root,{}),ZD=y.forwardRef((t,e)=>{const r=WD(t,e);return XD(r),ue("useMenuDividerStyles_unstable")(r),YD(r)});ZD.displayName="MenuDivider";function QD(t,e){const{headerId:r}=zD();return{components:{root:"div"},root:te(ve("div",{ref:e,id:r,...t}),{elementType:"div"})}}const JD={root:"fui-MenuGroupHeader"},eF=q({root:{Be2twd7:"fy9rknc",sj55zd:"f11d4kpn",uwmqm3:["fjlbh76","f11qrl6u"],z189sj:["f11qrl6u","fjlbh76"],Bhrd7zp:"fl43uef",Bqenvij:"f1d2rq10",mc9l5x:"f22iagw",Bt984gj:"f122n59"}},{d:[".fy9rknc{font-size:var(--fontSizeBase200);}",".f11d4kpn{color:var(--colorNeutralForeground3);}",".fjlbh76{padding-left:12px;}",".f11qrl6u{padding-right:12px;}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".f1d2rq10{height:32px;}",".f22iagw{display:flex;}",".f122n59{align-items:center;}"]}),tF=t=>{const e=eF();return t.root.className=A(JD.root,e.root,t.root.className),t},rF=t=>O(t.root,{}),oF=y.forwardRef((t,e)=>{const r=QD(t,e);return tF(r),ue("useMenuGroupHeaderStyles_unstable")(r),rF(r)});oF.displayName="MenuGroupHeader";const nF=(t,e)=>{const r=Hp(n=>n.setFocusByFirstCharacter),{onKeyDown:o}=t.root;return t.root.onKeyDown=n=>{var i;o?.(n),!(((i=n.key)===null||i===void 0?void 0:i.length)>1)&&e.current&&r?.(n,e.current)},t},iF=Rx(HN,UN),aF=Rx(qN,LN),sF=(t,e)=>{const r=ND(),o=Xe(p=>p.persistOnItemClick),{as:n="div",disabled:i=!1,hasSubmenu:a=r,persistOnClick:s=o}=t,l=Hp(p=>p.hasIcons),c=Hp(p=>p.hasCheckmarks),u=Xe(p=>p.setOpen),{dir:d}=Pe(),f=y.useRef(null),h=y.useRef(!1),g={hasSubmenu:a,disabled:i,persistOnClick:s,components:{root:"div",icon:"span",checkmark:"span",submenuIndicator:"span",content:"span",secondaryContent:"span"},root:te(ve(n,Ni(n,{role:"menuitem",...t,disabled:!1,disabledFocusable:i,ref:Re(e,f),onKeyDown:Q(p=>{var w;(w=t.onKeyDown)===null||w===void 0||w.call(t,p),!p.isDefaultPrevented()&&(p.key===Mr||p.key===Co)&&(h.current=!0)}),onMouseEnter:Q(p=>{var w,v;(w=f.current)===null||w===void 0||w.focus(),(v=t.onMouseEnter)===null||v===void 0||v.call(t,p)}),onClick:Q(p=>{var w;!a&&!s&&(u(p,{open:!1,keyboard:h.current,bubble:!0,type:"menuItemClick",event:p}),h.current=!1),(w=t.onClick)===null||w===void 0||w.call(t,p)})})),{elementType:"div"}),icon:me(t.icon,{renderByDefault:l,elementType:"span"}),checkmark:me(t.checkmark,{renderByDefault:c,elementType:"span"}),submenuIndicator:me(t.submenuIndicator,{renderByDefault:a,defaultProps:{children:d==="ltr"?y.createElement(iF,null):y.createElement(aF,null)},elementType:"span"}),content:me(t.content,{renderByDefault:!!t.children,defaultProps:{children:t.children},elementType:"span"}),secondaryContent:me(t.secondaryContent,{elementType:"span"})};return nF(g,f),g},lF=t=>ke(t.root,{children:[t.checkmark&&O(t.checkmark,{}),t.icon&&O(t.icon,{}),t.content&&O(t.content,{}),t.secondaryContent&&O(t.secondaryContent,{}),t.submenuIndicator&&O(t.submenuIndicator,{})]}),cF=q({root:{a9b677:"fjw5fx7",Bqenvij:"fd461yt",Bcdw1i0:"fd7fpy0"},rootChecked:{Bcdw1i0:"f1022m68"}},{d:[".fjw5fx7{width:16px;}",".fd461yt{height:16px;}",".fd7fpy0{visibility:hidden;}",".f1022m68{visibility:visible;}"]}),uF=t=>{const e=cF();t.checkmark&&(t.checkmark.className=A(e.root,t.checked&&e.rootChecked,t.checkmark.className))},Qi={root:"fui-MenuItem",icon:"fui-MenuItem__icon",checkmark:"fui-MenuItem__checkmark",submenuIndicator:"fui-MenuItem__submenuIndicator",content:"fui-MenuItem__content",secondaryContent:"fui-MenuItem__secondaryContent"},dF=fe("rf4m57v","rsbw0a0",{r:[".rf4m57v{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;-ms-user-select:none;user-select:none;}",".rf4m57v:hover{background-color:var(--colorNeutralBackground1Hover);color:var(--colorNeutralForeground2Hover);}",".rf4m57v:hover .fui-Icon-filled{display:inline;}",".rf4m57v:hover .fui-Icon-regular{display:none;}",".rf4m57v:hover .fui-MenuItem__icon{color:var(--colorNeutralForeground2BrandSelected);}",".rf4m57v:hover:active{background-color:var(--colorNeutralBackground1Pressed);color:var(--colorNeutralForeground2Pressed);}",".rf4m57v:focus{outline-style:none;}",".rf4m57v:focus-visible{outline-style:none;}",".rf4m57v[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.rf4m57v[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rsbw0a0{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;-ms-user-select:none;user-select:none;}",".rsbw0a0:hover{background-color:var(--colorNeutralBackground1Hover);color:var(--colorNeutralForeground2Hover);}",".rsbw0a0:hover .fui-Icon-filled{display:inline;}",".rsbw0a0:hover .fui-Icon-regular{display:none;}",".rsbw0a0:hover .fui-MenuItem__icon{color:var(--colorNeutralForeground2BrandSelected);}",".rsbw0a0:hover:active{background-color:var(--colorNeutralBackground1Pressed);color:var(--colorNeutralForeground2Pressed);}",".rsbw0a0:focus{outline-style:none;}",".rsbw0a0:focus-visible{outline-style:none;}",".rsbw0a0[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rsbw0a0[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.rf4m57v[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){.rsbw0a0[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),fF=fe("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;}"]),hF=fe("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);}"]),gF=fe("r9c34qo",null,[".r9c34qo{width:20px;height:20px;font-size:20px;line-height:0;align-items:center;display:inline-flex;justify-content:center;}"]),pF=fe("r9c34qo",null,[".r9c34qo{width:20px;height:20px;font-size:20px;line-height:0;align-items:center;display:inline-flex;justify-content:center;}"]),mF=q({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",t0hwav:"ft33916",Bbusuzp:"f1dcs8yz",ze5xyy:"f1kc2mi9",Bctn1xl:"fk56vqo",Bh6z0a4:"f1ikwg0d"}},{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);}"],f:[".ft33916:focus{color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1kc2mi9:hover{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fk56vqo:hover .fui-MenuItem__icon{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ikwg0d:focus{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),vF=t=>{const e=mF(),r=dF(),o=fF(),n=hF(),i=gF(),a=pF();t.root.className=A(Qi.root,r,t.disabled&&e.disabled,t.root.className),t.content&&(t.content.className=A(Qi.content,o,t.content.className)),t.checkmark&&(t.checkmark.className=A(Qi.checkmark,e.checkmark,t.checkmark.className)),t.secondaryContent&&(t.secondaryContent.className=A(Qi.secondaryContent,!t.disabled&&n,t.secondaryContent.className)),t.icon&&(t.icon.className=A(Qi.icon,i,t.icon.className)),t.submenuIndicator&&(t.submenuIndicator.className=A(Qi.submenuIndicator,a,t.submenuIndicator.className)),uF(t)},bF=y.forwardRef((t,e)=>{const r=sF(t,e);return vF(r),ue("useMenuItemStyles_unstable")(r),lF(r)});bF.displayName="MenuItem";const yF=(t,e)=>{const{findAllFocusable:r}=Ao(),o=wF(),n=uc(U1),i=Xa({circular:!0,ignoreDefaultKeydown:{Tab:n}});kF(t,o,n)&&console.warn("You are using both MenuList and Menu props, we recommend you to use Menu props when available");const a=y.useRef(null),s=y.useCallback((p,w)=>{const v=["menuitem","menuitemcheckbox","menuitemradio"];if(!a.current)return;const m=r(a.current,C=>C.hasAttribute("role")&&v.indexOf(C.getAttribute("role"))!==-1);let b=m.indexOf(w)+1;b===m.length&&(b=0);const k=m.map(C=>{var E;return(E=C.textContent)===null||E===void 0?void 0:E.charAt(0).toLowerCase()}),x=p.key.toLowerCase(),_=(C,E)=>{for(let I=C;I-1&&m[S].focus()},[r]);var l;const[c,u]=Tt({state:(l=t.checkedValues)!==null&&l!==void 0?l:n?o.checkedValues:void 0,defaultState:t.defaultCheckedValues,initialState:{}});var d;const f=(d=t.onCheckedValueChange)!==null&&d!==void 0?d:n?o.onCheckedValueChange:void 0,h=Q((p,w,v,m)=>{const k=[...c?.[w]||[]];m?k.splice(k.indexOf(v),1):k.push(v),f?.(p,{name:w,checkedItems:k}),u(x=>({...x,[w]:k}))}),g=Q((p,w,v)=>{const m=[v];u(b=>({...b,[w]:m})),f?.(p,{name:w,checkedItems:m})});return{components:{root:"div"},root:te(ve("div",{ref:Re(e,a),role:"menu","aria-labelledby":o.triggerId,...i,...t}),{elementType:"div"}),hasIcons:o.hasIcons||!1,hasCheckmarks:o.hasCheckmarks||!1,checkedValues:c,hasMenuContext:n,setFocusByFirstCharacter:s,selectRadio:g,toggleCheckbox:h}},wF=()=>{const t=Xe(i=>i.checkedValues),e=Xe(i=>i.onCheckedValueChange),r=Xe(i=>i.triggerId),o=Xe(i=>i.hasIcons),n=Xe(i=>i.hasCheckmarks);return{checkedValues:t,onCheckedValueChange:e,triggerId:r,hasIcons:o,hasCheckmarks:n}},kF=(t,e,r)=>{let o=!1;for(const n in e)t[n]&&(o=!0);return r&&o},SF=(t,e)=>O(OD,{value:e.menuList,children:O(t.root,{})});function _F(t){const{checkedValues:e,hasCheckmarks:r,hasIcons:o,selectRadio:n,setFocusByFirstCharacter:i,toggleCheckbox:a}=t;return{menuList:{checkedValues:e,hasCheckmarks:r,hasIcons:o,selectRadio:n,setFocusByFirstCharacter:i,toggleCheckbox:a}}}const xF={root:"fui-MenuList"},CF=q({root:{mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",i8kkvl:"f16mnhsx",Belr9w4:"fbi42co"},hasMenuContext:{Bqenvij:"f1l02sjl"}},{d:[".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",".f16mnhsx{column-gap:2px;}",".fbi42co{row-gap:2px;}",".f1l02sjl{height:100%;}"]}),TF=t=>{const e=CF();return t.root.className=A(xF.root,e.root,t.hasMenuContext&&e.hasMenuContext,t.root.className),t},EF=y.forwardRef((t,e)=>{const r=yF(t,e),o=_F(r);return TF(r),ue("useMenuListStyles_unstable")(r),SF(r,o)});EF.displayName="MenuList";const BF=(t,e)=>{const r=Xe(k=>k.menuPopoverRef),o=Xe(k=>k.setOpen),n=Xe(k=>k.open),i=Xe(k=>k.openOnHover),a=Xe(k=>k.triggerRef),s=K1(),l=y.useRef(!0),c=y.useRef(0),u=L6(),{dir:d}=Pe(),f=d==="ltr"?yf:dc,h=y.useCallback(k=>{k&&k.addEventListener("mouseover",x=>{l.current&&(l.current=!1,DD(r.current,x),c.current=setTimeout(()=>l.current=!0,250))})},[r,c]);y.useEffect(()=>{},[]);var g;const p=(g=Xe(k=>k.inline))!==null&&g!==void 0?g:!1,w=Xe(k=>k.mountNode),v=te(ve("div",{role:"presentation",...u,...t,ref:Re(e,r,h)}),{elementType:"div"}),{onMouseEnter:m,onKeyDown:b}=v;return v.onMouseEnter=Q(k=>{i&&o(k,{open:!0,keyboard:!1,type:"menuPopoverMouseEnter",event:k}),m?.(k)}),v.onKeyDown=Q(k=>{const x=k.key;if(x===No||s&&x===f){var _;n&&(!((_=r.current)===null||_===void 0)&&_.contains(k.target))&&!k.isDefaultPrevented()&&(o(k,{open:!1,keyboard:!0,type:"menuPopoverKeyDown",event:k}),k.preventDefault())}if(x===Fv&&(o(k,{open:!1,keyboard:!0,type:"menuPopoverKeyDown",event:k}),!s)){var S;(S=a.current)===null||S===void 0||S.focus()}b?.(k)}),{inline:p,mountNode:w,components:{root:"div"},root:v}},IF={root:"fui-MenuPopover"},RF=q({root:{Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],De3pzq:"fxugw4r",sj55zd:"f19n0e5",B7ck84d:"f1ewtqcl",Bf4jedk:"fl8fusi",B2u0y6b:"f1kaai3v",B68tc82:"f1p9o1ba",a9b677:"f1ahpp82",E5pizo:"f1hg901r",z8tnut:"f10ra9hq",z189sj:["f8wuabp","fycuoez"],Byoj8tv:"f1y2xyjm",uwmqm3:["fycuoez","f8wuabp"],B4j52fo:"f5ogflp",Bekrc4i:["f1hqa2wf","finvdd3"],Bn0qgzm:"f1f09k3d",ibv6hh:["finvdd3","f1hqa2wf"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B93otf3:"f18k4bn6",vin17d:"fo1kyvf",Ezkn3b:"fetxo7e",nyiy2g:"f8x1vz1",swvrvq:"f8g0anz",Bkovbt3:"fezwn9i",hgjdhn:"fz5efge",fsy9dk:"f1ydixl4",B3ogreh:"f8dgqj5",jv49x5:"fnyfnr8",Bk7o48c:"fgw77r4",Bv12yb3:"ftje0s4",z0t1cu:"fi19xcv",Bks05zx:"f1mzajhk",Bvtglag:"fjp4h9y"}},{d:[".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".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);}",".f10ra9hq{padding-top:4px;}",".f8wuabp{padding-right:4px;}",".fycuoez{padding-left:4px;}",".f1y2xyjm{padding-bottom:4px;}",".f5ogflp{border-top-width:1px;}",".f1hqa2wf{border-right-width:1px;}",".finvdd3{border-left-width:1px;}",".f1f09k3d{border-bottom-width:1px;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f18k4bn6{animation-composition:accumulate;}",".fo1kyvf{animation-duration:var(--durationSlower);}",".fetxo7e{animation-timing-function:var(--curveDecelerateMid);}",".f8x1vz1{--fui-positioning-slide-distance-x:0px;}",".f8g0anz{--fui-positioning-slide-distance-y:10px;}",".fezwn9i[data-popper-placement^=right]{--fui-positioning-slide-distance-x:-10px;}",".fz5efge[data-popper-placement^=right]{--fui-positioning-slide-distance-y:0px;}",".f1ydixl4[data-popper-placement^=bottom]{--fui-positioning-slide-distance-x:0px;}",".f8dgqj5[data-popper-placement^=bottom]{--fui-positioning-slide-distance-y:-10px;}",".fnyfnr8[data-popper-placement^=left]{--fui-positioning-slide-distance-x:10px;}",".fgw77r4[data-popper-placement^=left]{--fui-positioning-slide-distance-y:0px;}",".ftje0s4{animation-name:f5j8bii,f79suad;}"],k:["@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}","@keyframes f79suad{from{transform:translate(var(--fui-positioning-slide-distance-x), var(--fui-positioning-slide-distance-y));}}"],m:[["@media (prefers-reduced-motion){.fi19xcv[data-popper-placement]{animation-duration:1ms;}}",{m:"(prefers-reduced-motion)"}],["@media (prefers-reduced-motion){.f1mzajhk[data-popper-placement]{animation-name:f5j8bii;}}",{m:"(prefers-reduced-motion)"}]],t:["@supports not (animation-composition: accumulate){.fjp4h9y[data-popper-placement]{animation-name:f5j8bii;}}"]}),AF=t=>{const e=RF();return t.root.className=A(IF.root,e.root,t.root.className),t},NF=t=>t.inline?O(t.root,{}):O(Gi,{mountNode:t.mountNode,children:O(t.root,{})}),PF=y.forwardRef((t,e)=>{const r=BF(t,e);return AF(r),ue("useMenuPopoverStyles_unstable")(r),NF(r)});PF.displayName="MenuPopover";const zF=t=>{const{children:e,disableButtonEnhancement:r=!1}=t,o=Xe(T=>T.triggerRef),n=Xe(T=>T.menuPopoverRef),i=Xe(T=>T.setOpen),a=Xe(T=>T.open),s=Xe(T=>T.triggerId),l=Xe(T=>T.openOnHover),c=Xe(T=>T.openOnContext),u=q6(),d=K1(),{findFirstFocusable:f}=Ao(),h=y.useCallback(()=>{const T=f(n.current);T?.focus()},[f,n]),g=y.useRef(!1),p=y.useRef(!1),{dir:w}=Pe(),v=w==="ltr"?dc:yf,m=ac(e),b=T=>{Ji(T)||T.isDefaultPrevented()||c&&(T.preventDefault(),i(T,{open:!0,keyboard:!1,type:"menuTriggerContextMenu",event:T}))},k=T=>{Ji(T)||c||(i(T,{open:!a,keyboard:g.current,type:"menuTriggerClick",event:T}),g.current=!1)},x=T=>{if(Ji(T))return;const R=T.key;!c&&(d&&R===v||!d&&R===Ya)&&i(T,{open:!0,keyboard:!0,type:"menuTriggerKeyDown",event:T}),R===No&&!d&&i(T,{open:!1,keyboard:!0,type:"menuTriggerKeyDown",event:T}),a&&R===v&&d&&h()},_=T=>{Ji(T)||l&&p.current&&i(T,{open:!0,keyboard:!1,type:"menuTriggerMouseEnter",event:T})},S=T=>{Ji(T)||l&&!p.current&&(i(T,{open:!0,keyboard:!1,type:"menuTriggerMouseMove",event:T}),p.current=!0)},C=T=>{Ji(T)||l&&i(T,{open:!1,keyboard:!1,type:"menuTriggerMouseLeave",event:T})},E={id:s,...u,...m?.props,ref:Re(o,m?.ref),onMouseEnter:Q(de(m?.props.onMouseEnter,_)),onMouseLeave:Q(de(m?.props.onMouseLeave,C)),onContextMenu:Q(de(m?.props.onContextMenu,b)),onMouseMove:Q(de(m?.props.onMouseMove,S))},I={"aria-haspopup":"menu","aria-expanded":!a&&!d?void 0:a,...E,onClick:Q(de(m?.props.onClick,k)),onKeyDown:Q(de(m?.props.onKeyDown,x))},H=Ni(m?.type==="button"||m?.type==="a"?m.type:"div",I);return{isSubmenu:d,children:hf(e,c?E:r?I:H)}},Ji=t=>{const e=r=>r.hasAttribute("disabled")||r.hasAttribute("aria-disabled")&&r.getAttribute("aria-disabled")==="true";return Ve(t.target)&&e(t.target)?!0:Ve(t.currentTarget)&&e(t.currentTarget)},MF=t=>y.createElement(AD,{value:t.isSubmenu},t.children),qT=t=>{const e=zF(t);return MF(e)};qT.displayName="MenuTrigger";qT.isFluentTriggerComponent=!0;const LT=y.createContext(void 0),OF={};LT.Provider;const jF=()=>y.useContext(LT)||OF,DF=t=>ke(t.root,{children:[O(t.input,{}),O(t.indicator,{}),t.label&&O(t.label,{})]}),FF=(t,e)=>{const r=jF(),{name:o=r.name,checked:n=r.value!==void 0?r.value===t.value:void 0,defaultChecked:i=r.defaultValue!==void 0?r.defaultValue===t.value:void 0,labelPosition:a=r.layout==="horizontal-stacked"?"below":"after",disabled:s=r.disabled,required:l=r.required,"aria-describedby":c=r["aria-describedby"],onChange:u}=t,d=$i({props:t,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","onChange"]}),f=te(t.root,{defaultProps:{ref:fs(),...d.root},elementType:"span"}),h=te(t.input,{defaultProps:{ref:e,type:"radio",id:Rt("radio-",d.primary.id),name:o,checked:n,defaultChecked:i,disabled:s,required:l,"aria-describedby":c,...d.primary},elementType:"input"});h.onChange=de(h.onChange,w=>u?.(w,{value:w.currentTarget.value}));const g=me(t.label,{defaultProps:{htmlFor:h.id,disabled:h.disabled},elementType:co}),p=te(t.indicator,{defaultProps:{"aria-hidden":!0},elementType:"div"});return{labelPosition:a,components:{root:"span",input:"input",label:co,indicator:"div"},root:f,input:h,label:g,indicator:p}},Qc={root:"fui-Radio",indicator:"fui-Radio__indicator",input:"fui-Radio__input",label:"fui-Radio__label"},qF=fe("rm0dkue","rjjxb3w",{r:[".rm0dkue{display:inline-flex;position:relative;}",".rm0dkue:focus{outline-style:none;}",".rm0dkue:focus-visible{outline-style:none;}",".rm0dkue[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.rm0dkue[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rjjxb3w{display:inline-flex;position:relative;}",".rjjxb3w:focus{outline-style:none;}",".rjjxb3w:focus-visible{outline-style:none;}",".rjjxb3w[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rjjxb3w[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.rm0dkue[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){.rjjxb3w[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),LF=q({vertical:{Beiy3e4:"f1vx9l62",Bt984gj:"f122n59"}},{d:[".f1vx9l62{flex-direction:column;}",".f122n59{align-items:center;}"]}),HF=fe("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;}}"]}),UF=q({below:{a9b677:"fly5x3f",Bqenvij:"f1je6zif"},defaultIndicator:{Blbys7f:"f9ma1gx"},customIndicator:{Bojc29n:"fhb1dn5"}},{d:[".fly5x3f{width:100%;}",".f1je6zif{height:calc(16px + 2 * var(--spacingVerticalS));}",'.f9ma1gx:checked~.fui-Radio__indicator::after{content:"";}',".fhb1dn5:not(:checked)~.fui-Radio__indicator>*{opacity:0;}"]}),$F=fe("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;}"]),KF=q({base:{qb2dma:"f7nlbp4",z8tnut:"f1kwiid1",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f5b47ha",uwmqm3:["f1f5gg8d","f1vdfbxk"]},after:{uwmqm3:["fruq291","f7x41pl"],B6of3ja:"fjzwpt6",jrapky:"fh6j2fo"},below:{z8tnut:"f1ywm7hm",fsow6f:"f17mccla"}},{d:[".f7nlbp4{align-self:center;}",".f1kwiid1{padding-top:var(--spacingVerticalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f5b47ha{padding-bottom:var(--spacingVerticalS);}",".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;}"]}),WF=t=>{const{labelPosition:e}=t,r=qF(),o=LF();t.root.className=A(Qc.root,r,e==="below"&&o.vertical,t.root.className);const n=HF(),i=UF();t.input.className=A(Qc.input,n,e==="below"&&i.below,t.indicator.children?i.customIndicator:i.defaultIndicator,t.input.className);const a=$F();t.indicator.className=A(Qc.indicator,a,t.indicator.className);const s=KF();t.label&&(t.label.className=A(Qc.label,s.base,s[e],t.label.className))},Up=y.forwardRef((t,e)=>{const r=FF(t,e);return WF(r),ue("useRadioStyles_unstable")(r),DF(r)});Up.displayName="Radio";const HT=y.createContext(void 0),VF={},GF=HT.Provider,UT=()=>{var t;return(t=y.useContext(HT))!==null&&t!==void 0?t:VF},XF=(t,e)=>{const{animation:r,appearance:o}=UT(),{animation:n=r??"wave",appearance:i=o??"opaque"}=t,a=te(ve("div",{ref:e,role:"progressbar","aria-busy":!0,"aria-label":"Loading Content",...t}),{elementType:"div"});return{animation:n,appearance:i,components:{root:"div"},root:a}},YF=(t,e)=>O(GF,{value:e.skeletonGroup,children:O(t.root,{})}),ZF={root:"fui-Skeleton"},QF=t=>(t.root.className=A(ZF.root,t.root.className),t),JF=t=>{const{animation:e,appearance:r}=t;return{skeletonGroup:y.useMemo(()=>({animation:e,appearance:r}),[e,r])}},eq=y.forwardRef((t,e)=>{const r=XF(t,e),o=JF(r);return QF(r),YF(r,o)});eq.displayName="Skeleton";const tq=(t,e)=>{const{animation:r,appearance:o}=UT(),{animation:n=r??"wave",appearance:i=o??"opaque",size:a=16,shape:s="rectangle"}=t,l=te(ve("div",{ref:e,...t}),{elementType:"div"});return{appearance:i,animation:n,size:a,shape:s,components:{root:"div"},root:l}},rq=t=>O(t.root,{}),oq={root:"fui-SkeletonItem"},nq=q({root:{qhf8xq:"f10pi13n",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",Bkjc3bi:"f1qx3921",B8a6bjv:"fj9j8l8",Bpptf2m:"f1b6djjb",Bgh53k4:"f1dsdmen",w3vfg9:"f1cpbl36",vin17d:"f1a27w2r",Ezkn3b:"f452v7t",Gqtpxc:"f4akx1t",B3vm3ge:"f18p5put"},wave:{Bv12yb3:"fj20wtk",Bcmaq0h:["f101ziu5","f152emvt"],Bpep1pd:"f9jxvrw"},waveRtl:{Bv12yb3:"f105t0nc",Bcmaq0h:["f101ziu5","f152emvt"],Bpep1pd:"f9jxvrw"},pulse:{Bv12yb3:"fnm2mpv",vin17d:"f1iuewzk",De3pzq:"f1gjxg63"},translucent:{Bcmaq0h:["fss7axp","f4160cw"]},translucentPulse:{De3pzq:"f162mh4z"}},{d:[".f10pi13n{position:relative;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".f1qx3921{background-size:300% 100%;}",".fj9j8l8{background-position-x:center;}",".f1b6djjb{background-position-y:center;}",".f1dsdmen{background-attachment:fixed;}",".f1cpbl36{animation-iteration-count:infinite;}",".f1a27w2r{animation-duration:3s;}",".f452v7t{animation-timing-function:linear;}",".fj20wtk{animation-name:fma800j;}",`.f101ziu5{background-image:linear-gradient( - to right, - var(--colorNeutralStencil1) 0%, - var(--colorNeutralStencil2) 50%, - var(--colorNeutralStencil1) 100%);}`,`.f152emvt{background-image:linear-gradient( - to left, - var(--colorNeutralStencil1) 0%, - var(--colorNeutralStencil2) 50%, - var(--colorNeutralStencil1) 100%);}`,".f105t0nc{animation-name:fj9wi3p;}",".fnm2mpv{animation-name:f12o7gg6;}",".f1iuewzk{animation-duration:1s;}",".f1gjxg63{background-color:var(--colorNeutralStencil1);}",`.fss7axp{background-image:linear-gradient( - to right, - var(--colorNeutralStencil1Alpha) 0%, - var(--colorNeutralStencil2Alpha) 50%, - var(--colorNeutralStencil1Alpha) 100%);}`,`.f4160cw{background-image:linear-gradient( - to left, - var(--colorNeutralStencil1Alpha) 0%, - var(--colorNeutralStencil2Alpha) 50%, - var(--colorNeutralStencil1Alpha) 100%);}`,".f162mh4z{background-color:var(--colorNeutralStencil1Alpha);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f4akx1t{animation-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f18p5put{animation-iteration-count:1;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (forced-colors: active){.f9jxvrw{background-color:WindowText;}}",{m:"screen and (forced-colors: active)"}]],k:["@keyframes fma800j{from{background-position-x:300%;}to{background-position-x:0%;}}","@keyframes fj9wi3p{from{background-position-x:0%;}to{background-position-x:300%;}}","@keyframes f12o7gg6{0%{opacity:1;}50%{opacity:0.4;}100%{opacity:1;}}"]}),iq=q({8:{Bqenvij:"f1x82gua"},12:{Bqenvij:"fvblgha"},16:{Bqenvij:"fd461yt"},20:{Bqenvij:"fjamq6b"},24:{Bqenvij:"frvgh55"},28:{Bqenvij:"fxldao9"},32:{Bqenvij:"f1d2rq10"},36:{Bqenvij:"f8ljn23"},40:{Bqenvij:"fbhnoac"},48:{Bqenvij:"ff2sm71"},56:{Bqenvij:"fzki0ko"},64:{Bqenvij:"f16k9i2m"},72:{Bqenvij:"f1shusfg"},96:{Bqenvij:"fypu0ge"},120:{Bqenvij:"fjr5b71"},128:{Bqenvij:"fele2au"},root:{a9b677:"fly5x3f",Bbmb7ep:["fff7au0","f1bjk9e1"],Beyfa6y:["f1bjk9e1","fff7au0"],B7oj6ja:["fwsfkhu","f8wkphi"],Btl43ni:["f8wkphi","fwsfkhu"]}},{d:[".f1x82gua{height:8px;}",".fvblgha{height:12px;}",".fd461yt{height:16px;}",".fjamq6b{height:20px;}",".frvgh55{height:24px;}",".fxldao9{height:28px;}",".f1d2rq10{height:32px;}",".f8ljn23{height:36px;}",".fbhnoac{height:40px;}",".ff2sm71{height:48px;}",".fzki0ko{height:56px;}",".f16k9i2m{height:64px;}",".f1shusfg{height:72px;}",".fypu0ge{height:96px;}",".fjr5b71{height:120px;}",".fele2au{height:128px;}",".fly5x3f{width:100%;}",".fff7au0{border-bottom-right-radius:4px;}",".f1bjk9e1{border-bottom-left-radius:4px;}",".fwsfkhu{border-top-right-radius:4px;}",".f8wkphi{border-top-left-radius:4px;}"]}),aq=q({8:{a9b677:"f1o3cbw4",Bqenvij:"f1x82gua"},12:{a9b677:"frx94fk",Bqenvij:"fvblgha"},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:[".f1o3cbw4{width:8px;}",".f1x82gua{height:8px;}",".frx94fk{width:12px;}",".fvblgha{height:12px;}",".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;}"]}),sq=q({root:{Bbmb7ep:["fqgqgel","fchfifz"],Beyfa6y:["fchfifz","fqgqgel"],B7oj6ja:["fc7b1hi","f1dpx5h9"],Btl43ni:["f1dpx5h9","fc7b1hi"]}},{d:[".fqgqgel{border-bottom-right-radius:50%;}",".fchfifz{border-bottom-left-radius:50%;}",".fc7b1hi{border-top-right-radius:50%;}",".f1dpx5h9{border-top-left-radius:50%;}"]}),lq=t=>{const{animation:e,appearance:r,size:o,shape:n}=t,{dir:i}=Pe(),a=nq(),s=iq(),l=aq(),c=sq();return t.root.className=A(oq.root,a.root,e==="wave"&&a.wave,e==="wave"&&i==="rtl"&&a.waveRtl,e==="pulse"&&a.pulse,r==="translucent"&&a.translucent,e==="pulse"&&r==="translucent"&&a.translucentPulse,n==="rectangle"&&s.root,n==="rectangle"&&s[o],n==="square"&&l[o],n==="circle"&&c.root,n==="circle"&&l[o],t.root.className),t},cq=y.forwardRef((t,e)=>{const r=tq(t,e);return lq(r),rq(r)});cq.displayName="SkeletonItem";const Bw=(t,e,r)=>{let o=t;if(e!==void 0){if(r!==void 0&&e>r)return t;o=Math.max(e,o)}return r!==void 0&&(o=Math.min(r,o)),o},Iw=(t,e,r)=>e!==void 0&&t===e?r===e?"both":"min":r!==void 0&&t===r?"max":"none";function uq(t){const e=/[1-9]([0]+$)|\.([0-9]*)/.exec(String(t));return e?e[1]?-e[1].length:e[2]?e[2].length:0:0}function Jc(t,e,r=10){const o=Math.pow(r,e);return Math.round(t*o)/o}const Kh=150,dq=80,fq=1e3,hq=(t,e,r)=>t+(e-t)*r,gq=(t,e)=>{t=vs(t,{supportsLabelFor:!0,supportsRequired:!0});const r=$i({props:t,primarySlotTagName:"input",excludedPropNames:["defaultValue","max","min","onChange","size","value"]}),o=ff();var n;const{value:i,displayValue:a,defaultValue:s,min:l,max:c,step:u=1,stepPage:d=1,precision:f,onChange:h,size:g="medium",appearance:p=(n=o.inputDefaultAppearance)!==null&&n!==void 0?n:"outline",root:w,input:v,incrementButton:m,decrementButton:b}=t,k=y.useMemo(()=>f??Math.max(uq(u),0),[f,u]),[x,_]=Tt({state:i,defaultState:s,initialState:0}),S=i!==void 0,[C,E]=y.useState(void 0),[I,H]=y.useState("rest"),T=y.useRef({value:x,spinState:"rest",spinTime:0,spinDelay:Kh,atBound:x!==null?Iw(Jc(x,k),l,c):"none"}),[R,M]=yl(),P=(ae,we,tt)=>{let dt=T.current.value;if(tt){const Gf=parseFloat(tt);isNaN(Gf)||(dt=Gf)}const nr=dt,Br=we==="up"||we==="upPage"?1:-1,uo=we==="upPage"||we==="downPage"?d:u;if(nr===null){const LE=Bw((l===void 0?0:l)+uo*Br,l,c);G(ae,LE);return}let kc=nr+uo*Br;Number.isNaN(kc)||(kc=Bw(kc,l,c)),G(ae,kc),T.current.spinState!=="rest"&&R(()=>{T.current.spinTime+=T.current.spinDelay,T.current.spinDelay=hq(Kh,dq,T.current.spinTime/fq),P(ae,we)},T.current.spinDelay)},j=ae=>{T.current.previousTextValue||(T.current.previousTextValue=C??String(x));const we=ae.target.value;E(we)},W=ae=>{T.current.spinState="up",P(ae,"up")},B=ae=>{T.current.spinState="down",P(ae,"down")},D=ae=>{M(),T.current.spinState="rest",T.current.spinDelay=Kh,T.current.spinTime=0},U=ae=>{G(ae,x,C),T.current.previousTextValue=void 0},z=ae=>{let we="rest";ae.key===Ea?(P(ae,"up",C),we="up"):ae.key===Ya?(P(ae,"down",C),we="down"):ae.key===aC?(ae.preventDefault(),P(ae,"upPage",C),we="up"):ae.key===iC?(ae.preventDefault(),P(ae,"downPage",C),we="down"):!ae.shiftKey&&ae.key===Lv&&l!==void 0?(G(ae,l),we="down"):!ae.shiftKey&&ae.key===qv&&c!==void 0?(G(ae,c),we="up"):ae.key===Co?(G(ae,x,C),T.current.previousTextValue=void 0):ae.key===No&&T.current.previousTextValue&&(E(void 0),T.current.previousTextValue=void 0),I!==we&&H(we)},L=ae=>{I!=="rest"&&(H("rest"),T.current.spinState="rest")},G=(ae,we,tt)=>{const dt=we!==void 0&&x!==we,nr=tt!==void 0&&T.current.previousTextValue!==void 0&&T.current.previousTextValue!==tt;let Br;if(dt)Br=Jc(we,k),_(Br);else if(nr&&!S){const uo=parseFloat(tt);isNaN(uo)||_(Jc(uo,k))}(dt||nr)&&h?.(ae,{value:Br,displayValue:tt}),E(void 0)},Z={size:g,appearance:p,spinState:I,atBound:T.current.atBound,components:{root:"span",input:"input",incrementButton:"button",decrementButton:"button"},root:te(w,{defaultProps:r.root,elementType:"span"}),input:te(v,{defaultProps:{ref:e,autoComplete:"off",role:"spinbutton",appearance:p,type:"text",...r.primary},elementType:"input"}),incrementButton:te(m,{defaultProps:{tabIndex:-1,children:y.createElement(QN,null),disabled:r.primary.disabled,"aria-label":"Increment value",type:"button"},elementType:"button"}),decrementButton:te(b,{defaultProps:{tabIndex:-1,children:y.createElement(ZN,null),disabled:r.primary.disabled,"aria-label":"Decrement value",type:"button"},elementType:"button"})};let he;if(C!==void 0)he=C;else if(i===null||x===null)he=a??"",T.current.value=null,T.current.atBound="none";else{const ae=Jc(x,k);T.current.value=ae,T.current.atBound=Iw(ae,l,c),S?he=a??String(ae):he=String(ae)}Z.input.value=he,Z.input["aria-valuemin"]=l,Z.input["aria-valuemax"]=c,Z.input["aria-valuenow"]=x??void 0;var Ee;return Z.input["aria-valuetext"]=(Ee=Z.input["aria-valuetext"])!==null&&Ee!==void 0?Ee:i!==void 0&&a||void 0,Z.input.onChange=de(Z.input.onChange,j),Z.input.onBlur=de(Z.input.onBlur,U),Z.input.onKeyDown=de(Z.input.onKeyDown,z),Z.input.onKeyUp=de(Z.input.onKeyUp,L),Z.incrementButton.onMouseDown=de(W,Z.incrementButton.onMouseDown),Z.incrementButton.onMouseUp=de(Z.incrementButton.onMouseUp,D),Z.incrementButton.onMouseLeave=de(Z.incrementButton.onMouseLeave,D),Z.decrementButton.onMouseDown=de(B,Z.decrementButton.onMouseDown),Z.decrementButton.onMouseUp=de(Z.decrementButton.onMouseUp,D),Z.decrementButton.onMouseLeave=de(Z.decrementButton.onMouseLeave,D),Z},pq=t=>ke(t.root,{children:[O(t.input,{}),O(t.incrementButton,{}),O(t.decrementButton,{})]}),eu={root:"fui-SpinButton",input:"fui-SpinButton__input",incrementButton:"fui-SpinButton__incrementButton",decrementButton:"fui-SpinButton__decrementButton"},Rw={buttonActive:"fui-SpinButton__button_active"},mq=fe("rkqmps4","r1trw52p",{r:[".rkqmps4{display:inline-grid;grid-template-columns:1fr 24px;grid-template-rows:1fr 1fr;column-gap:var(--spacingHorizontalXS);row-gap:0;position:relative;isolation:isolate;background-color:var(--colorNeutralBackground1);min-height:32px;padding:0 0 0 var(--spacingHorizontalMNudge);border-radius:var(--borderRadiusMedium);}",'.rkqmps4::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);}','.rkqmps4::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);}',".rkqmps4:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".rkqmps4:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".rkqmps4:focus-within{outline:2px solid transparent;}",".r1trw52p{display:inline-grid;grid-template-columns:1fr 24px;grid-template-rows:1fr 1fr;column-gap:var(--spacingHorizontalXS);row-gap:0;position:relative;isolation:isolate;background-color:var(--colorNeutralBackground1);min-height:32px;padding:0 var(--spacingHorizontalMNudge) 0 0;border-radius:var(--borderRadiusMedium);}",'.r1trw52p::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);}','.r1trw52p::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);}',".r1trw52p:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".r1trw52p:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".r1trw52p:focus-within{outline:2px solid transparent;}"],s:["@media screen and (prefers-reduced-motion: reduce){.rkqmps4::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.rkqmps4:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r1trw52p::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r1trw52p:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}"]}),vq=q({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"],Budzafs:["f1vk4jnx","f1v3v894"],r59vdv:["f1v3v894","f1vk4jnx"],n07z76:["fzi2j54","f1un0uoc"],ck0cow:["f1un0uoc","fzi2j54"]},underlineInteractive:{Bx11ytk:"ffcnd28",xcfy85:"f1ipdth8",B3778ie:["f9pmbr4","ffh3ws5"],d9w3h3:["ffh3ws5","f9pmbr4"],Bl18szs:["f19438ov","f1i9y5j"],B4j8arr:["f1i9y5j","f19438ov"]},filled:{B0qfbqy:"f1fjh9ub",B4f6apu:["ff9c942","f6rdg5o"],y0oebl:"fdw6hkg",uvfttm:["f6rdg5o","ff9c942"],Bdkvgpv:"f163fonl",m598lv:["f1yq6w5o","f1jpmc5p"],qa3bma:"f11yjt3y",Bbv0w2i:["f1jpmc5p","f1yq6w5o"],Bq4z7u6:"f7dgwnz",Bk5zm6e:["f1edeodt","fszsv3f"],Bqjgrrk:"f1172wan",Bm6vgfq:["fszsv3f","f1edeodt"]},"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"],Cffpyd:"flb8es4",hxi8he:["f1lclws","frjp63v"],Bcuq369:"f1yv9wnt",Imo2if:["frjp63v","f1lclws"]}},{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;}",".f1vk4jnx::before{border-bottom-right-radius:var(--borderRadiusNone);}",".f1v3v894::before{border-bottom-left-radius:var(--borderRadiusNone);}",".fzi2j54::before{border-top-right-radius:var(--borderRadiusNone);}",".f1un0uoc::before{border-top-left-radius:var(--borderRadiusNone);}",".f9pmbr4::after{border-bottom-right-radius:var(--borderRadiusNone);}",".ffh3ws5::after{border-bottom-left-radius:var(--borderRadiusNone);}",".f19438ov::after{border-top-right-radius:var(--borderRadiusNone);}",".f1i9y5j::after{border-top-left-radius:var(--borderRadiusNone);}",".f1fjh9ub::before{border-top-width:1px;}",".ff9c942::before{border-right-width:1px;}",".f6rdg5o::before{border-left-width:1px;}",".f163fonl::before{border-top-style:solid;}",".f1yq6w5o::before{border-right-style:solid;}",".f1jpmc5p::before{border-left-style:solid;}",".f11yjt3y::before{border-bottom-style:solid;}",".f7dgwnz::before{border-top-color:var(--colorTransparentStroke);}",".f1edeodt::before{border-right-color:var(--colorTransparentStroke);}",".fszsv3f::before{border-left-color:var(--colorTransparentStroke);}",".f1172wan::before{border-bottom-color:var(--colorTransparentStroke);}",".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){.flb8es4::before{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lclws::before{border-right-color:GrayText;}.frjp63v::before{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1yv9wnt::before{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]]}),bq=fe("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:-ms-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".r1ljrqje::placeholder{color:var(--colorNeutralForeground4);opacity:1;}"]),yq=q({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);}"]}),Aw=fe("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);}"]),wq=q({increment:{Ijaq50:"f16hsg94",B7oj6ja:["f1jar5jt","fyu767a"],z8tnut:"f10ra9hq",Byoj8tv:"f1brlhvm"},decrement:{Ijaq50:"faunodf",Bbmb7ep:["f1aa9q02","f16jpd5f"],z8tnut:"f1sl3k7w",Byoj8tv:"f1y2xyjm"},incrementButtonSmall:{z8tnut:"f1khb0e9",z189sj:["f1sgzk6v","f1bg5zqg"],Byoj8tv:"f1ov4xf1",uwmqm3:["fycuoez","f8wuabp"],Bqenvij:"fvblgha"},decrementButtonSmall:{z8tnut:"f1nbblvp",z189sj:["f1sgzk6v","f1bg5zqg"],Byoj8tv:"f1jnq6q7",uwmqm3:["fycuoez","f8wuabp"],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;}",".f1khb0e9{padding-top:3px;}",".f1sgzk6v{padding-right:6px;}",".f1bg5zqg{padding-left:6px;}",".f1ov4xf1{padding-bottom:0px;}",".fycuoez{padding-left:4px;}",".f8wuabp{padding-right:4px;}",".fvblgha{height:12px;}",".f1nbblvp{padding-top:0px;}",".f1jnq6q7{padding-bottom:3px;}",".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);}"]}),kq=q({base:{Bceei9c:"fdrzuqr",eoavqd:"fphbwmw"},outline:{sj55zd:"f1s2aq7o",r4wkhp:"few7wvn",B95qlz1:"f110wuh6",p743kt:"f9s4mys",B7xitij:"f10404rc",B6siaa6:"fwzu9cz",Ba9qmo4:"f1snwkb6"},underline:{sj55zd:"f1s2aq7o",r4wkhp:"few7wvn",B95qlz1:"f110wuh6",p743kt:"f9s4mys",B7xitij:"f10404rc",B6siaa6:"fwzu9cz",Ba9qmo4:"f1snwkb6"},"filled-darker":{sj55zd:"f1s2aq7o",r4wkhp:"few7wvn",B95qlz1:"f110wuh6",p743kt:"f9s4mys",B7xitij:"f10404rc",B6siaa6:"fwzu9cz",Ba9qmo4:"f1snwkb6"},"filled-lighter":{sj55zd:"f1s2aq7o",r4wkhp:"few7wvn",B95qlz1:"f110wuh6",p743kt:"f9s4mys",B7xitij:"f10404rc",B6siaa6:"fwzu9cz",Ba9qmo4:"f1snwkb6"}},{d:[".fdrzuqr{cursor:not-allowed;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".few7wvn:enabled:hover{color:var(--colorNeutralForegroundDisabled);}",".f110wuh6:enabled:hover{background-color:transparent;}",".f9s4mys:enabled:active{color:var(--colorNeutralForegroundDisabled);}",".f10404rc:enabled:active{background-color:transparent;}",".fwzu9cz:enabled.fui-SpinButton__button_active{color:var(--colorNeutralForegroundDisabled);}",".f1snwkb6:enabled.fui-SpinButton__button_active{background-color:transparent;}"],h:[".fphbwmw:hover{cursor:not-allowed;}"]}),Sq=t=>{const{appearance:e,atBound:r,spinState:o,size:n}=t,i=t.input.disabled,a=`${t.input["aria-invalid"]}`=="true",s=e.startsWith("filled"),l=vq(),c=wq(),u=kq(),d=yq();return t.root.className=A(eu.root,mq(),l[n],l[e],s&&l.filled,!i&&e==="outline"&&l.outlineInteractive,!i&&e==="underline"&&l.underlineInteractive,!i&&s&&l.filledInteractive,!i&&a&&l.invalid,i&&l.disabled,t.root.className),t.incrementButton.className=A(eu.incrementButton,o==="up"&&`${Rw.buttonActive}`,Aw(),c.increment,c[e],n==="small"&&c.incrementButtonSmall,(r==="max"||r==="both")&&u.base,(r==="max"||r==="both")&&u[e],t.incrementButton.className),t.decrementButton.className=A(eu.decrementButton,o==="down"&&`${Rw.buttonActive}`,Aw(),c.decrement,c[e],n==="small"&&c.decrementButtonSmall,(r==="min"||r==="both")&&u.base,(r==="min"||r==="both")&&u[e],t.decrementButton.className),t.input.className=A(eu.input,bq(),i&&d.disabled,t.input.className),t},_q=y.forwardRef((t,e)=>{const r=gq(t,e);return Sq(r),ue("useSpinButtonStyles_unstable")(r),pq(r)});_q.displayName="SpinButton";const xq=()=>y.createElement("svg",{className:"fui-Spinner__Progressbar"},y.createElement("circle",{className:"fui-Spinner__Track"}),y.createElement("circle",{className:"fui-Spinner__Tail"})),$T=y.createContext(void 0),Cq={};$T.Provider;const Tq=()=>{var t;return(t=y.useContext($T))!==null&&t!==void 0?t:Cq},Eq=(t,e)=>{const{size:r}=Tq(),{appearance:o="primary",labelPosition:n="after",size:i=r??"medium",delay:a=0}=t,s=Rt("spinner"),{role:l="progressbar",tabIndex:c,...u}=t,d=te(ve("div",{ref:e,role:l,...u},["size"]),{elementType:"div"}),[f,h]=y.useState(!1),[g,p]=yl();y.useEffect(()=>{if(!(a<=0))return g(()=>{h(!0)},a),()=>{p()}},[g,p,a]);const w=me(t.label,{defaultProps:{id:s},renderByDefault:!1,elementType:co}),v=me(t.spinner,{renderByDefault:!0,defaultProps:{children:y.createElement(xq,null),tabIndex:c},elementType:"span"});return w&&d&&!d["aria-labelledby"]&&(d["aria-labelledby"]=w.id),{appearance:o,delay:a,labelPosition:n,size:i,shouldRenderSpinner:!a||f,components:{root:"div",spinner:"span",label:co},root:d,spinner:v,label:w}},Bq=t=>{const{labelPosition:e,shouldRenderSpinner:r}=t;return ke(t.root,{children:[t.label&&r&&(e==="above"||e==="before")&&O(t.label,{}),t.spinner&&r&&O(t.spinner,{}),t.label&&r&&(e==="below"||e==="after")&&O(t.label,{})]})},Wh={root:"fui-Spinner",spinner:"fui-Spinner__spinner",label:"fui-Spinner__label"},Iq=q({root:{mc9l5x:"f22iagw",Bt984gj:"f122n59",Brf1p80:"f4d9j23",Bg96gwp:"fez10in",i8kkvl:"f4px1ci",Belr9w4:"fn67r4l"},horizontal:{Beiy3e4:"f1063pyq"},vertical:{Beiy3e4:"f1vx9l62"}},{d:[".f22iagw{display:flex;}",".f122n59{align-items:center;}",".f4d9j23{justify-content:center;}",".fez10in{line-height:0;}",".f4px1ci{column-gap:8px;}",".fn67r4l{row-gap:8px;}",".f1063pyq{flex-direction:row;}",".f1vx9l62{flex-direction:column;}"]}),Rq=q({spinnerSVG:{B3aqqti:"f1or16p5",Brovlpu:"f1grzc83",Bxa1mx5:"f19shzzi",Bwaue66:["f5tbecn","f15qb8s7"],fyp1ls:"fn4mtlg",ag6ruv:"f1y80fxs",osj692:"f1r2crtq",aq5vjd:"f1wsi8sr",tlu9e1:"f1bkm2qd",J3u96z:"f1urqz7h",d32isg:"f1da2vov",Bsvqbuc:"f11rfva0",b3s3i5:"f1exc66"},"extra-tiny":{Bah9ito:"f1x2gjcb",ut6tcf:"f1vjiaua",B7p06xz:"fv1u54w",B807ibg:"f1oebb0s"},tiny:{Bah9ito:"f1j4wmu2",ut6tcf:"f1vppzuq",B7p06xz:"fv1u54w",B807ibg:"fngtx1d"},"extra-small":{Bah9ito:"fmpqlna",ut6tcf:"f15z5jzu",B7p06xz:"fv1u54w",B807ibg:"fadawes"},small:{Bah9ito:"fo52gbo",ut6tcf:"f1b41i3v",B7p06xz:"fv1u54w",B807ibg:"f1xqyyrl"},medium:{Bah9ito:"f1aiqagr",ut6tcf:"f1wtx80b",B7p06xz:"f1flujpd",B807ibg:"f1u06hy7"},large:{Bah9ito:"f1trdq7b",ut6tcf:"f9e0mc5",B7p06xz:"f1flujpd",B807ibg:"f13pmvhl"},"extra-large":{Bah9ito:"f89rf2a",ut6tcf:"f1w2xg3q",B7p06xz:"f1flujpd",B807ibg:"fmn74v6"},huge:{Bah9ito:"f1rx7k5y",ut6tcf:"f1vtyt49",B7p06xz:"f1owbg48",B807ibg:"f1fr1izd"}},{f:[".f1or16p5:focus{outline-width:3px;}",".f1grzc83:focus{outline-style:solid;}",".f19shzzi:focus{outline-color:transparent;}"],k:["@keyframes fb7n1on{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}","@keyframes f1gx3jof{0%{transform:rotate(0deg);}100%{transform:rotate(-360deg);}}"],d:[".f5tbecn>svg{animation-name:fb7n1on;}",".f15qb8s7>svg{animation-name:f1gx3jof;}",".fn4mtlg>svg{animation-duration:3s;}",".f1y80fxs>svg{animation-iteration-count:infinite;}",".f1r2crtq>svg{animation-timing-function:linear;}",".f1wsi8sr>svg{background-color:transparent;}",".f1da2vov>svg>circle{cx:50%;}",".f11rfva0>svg>circle{cy:50%;}",".f1exc66>svg>circle{fill:none;}",".f1x2gjcb>svg{height:16px;}",".f1vjiaua>svg{width:16px;}",".fv1u54w>svg>circle{stroke-width:var(--strokeWidthThick);}",".f1oebb0s>svg>circle{r:7px;}",".f1j4wmu2>svg{height:20px;}",".f1vppzuq>svg{width:20px;}",".fngtx1d>svg>circle{r:9px;}",".fmpqlna>svg{height:24px;}",".f15z5jzu>svg{width:24px;}",".fadawes>svg>circle{r:11px;}",".fo52gbo>svg{height:28px;}",".f1b41i3v>svg{width:28px;}",".f1xqyyrl>svg>circle{r:13px;}",".f1aiqagr>svg{height:32px;}",".f1wtx80b>svg{width:32px;}",".f1flujpd>svg>circle{stroke-width:var(--strokeWidthThicker);}",".f1u06hy7>svg>circle{r:14.5px;}",".f1trdq7b>svg{height:36px;}",".f9e0mc5>svg{width:36px;}",".f13pmvhl>svg>circle{r:16.5px;}",".f89rf2a>svg{height:40px;}",".f1w2xg3q>svg{width:40px;}",".fmn74v6>svg>circle{r:18.5px;}",".f1rx7k5y>svg{height:44px;}",".f1vtyt49>svg{width:44px;}",".f1owbg48>svg>circle{stroke-width:var(--strokeWidthThickest);}",".f1fr1izd>svg>circle{r:20px;}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f1bkm2qd>svg{animation-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1urqz7h>svg{animation-iteration-count:1;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]}),Aq=q({inverted:{gwg7kz:"f1jvpmnu",Bvrehnu:"fq8a5sv",Bidp6o:"f1b4lwqj",cq3kgi:"f1najlst",Btwiser:"fjxod4",B8001xd:"fu3xdw0",Bdordwa:["f1ttdh6v","fmyjox0"],Bo2mdfu:"f1eseayc",E10nrc:"folzdkc",Bwl7w15:"fhlfkde",Bksq7rz:"f1esql28"},primary:{gwg7kz:"f11ditju",B8k2rxp:"f1m9nikz",Bvrehnu:"fq8a5sv",Bidp6o:"f1b4lwqj",cq3kgi:"f1najlst",Btwiser:"fjxod4",B8001xd:"fu3xdw0",Bdordwa:["f1ttdh6v","fmyjox0"],Bo2mdfu:"f1eseayc",E10nrc:"folzdkc",Bwl7w15:"fhlfkde",Bksq7rz:"f13qeqtg",y14cdu:"flglbw1"}},{d:[".f1jvpmnu>svg>circle.fui-Spinner__Tail{stroke:var(--colorNeutralStrokeOnBrand2);}",".fq8a5sv>svg>circle.fui-Spinner__Tail{animation-name:f1v1ql0f;}",".f1b4lwqj>svg>circle.fui-Spinner__Tail{animation-duration:1.5s;}",".f1najlst>svg>circle.fui-Spinner__Tail{animation-iteration-count:infinite;}",".fjxod4>svg>circle.fui-Spinner__Tail{animation-timing-function:var(--curveEasyEase);}",".fu3xdw0>svg>circle.fui-Spinner__Tail{stroke-linecap:round;}",".f1ttdh6v>svg>circle.fui-Spinner__Tail{transform:rotate(-90deg);}",".fmyjox0>svg>circle.fui-Spinner__Tail{transform:rotate(90deg);}",".f1eseayc>svg>circle.fui-Spinner__Tail{transform-origin:50% 50%;}",".f1esql28>svg>circle.fui-Spinner__Track{stroke:rgba(255, 255, 255, 0.2);}",".f11ditju>svg>circle.fui-Spinner__Tail{stroke:var(--colorBrandStroke1);}",".f13qeqtg>svg>circle.fui-Spinner__Track{stroke:var(--colorBrandStroke2Contrast);}"],k:["@keyframes f1v1ql0f{0%{stroke-dasharray:1,150;stroke-dashoffset:0;}50%{stroke-dasharray:90,150;stroke-dashoffset:-35;}100%{stroke-dasharray:90,150;stroke-dashoffset:-124;}}"],m:[["@media screen and (prefers-reduced-motion: reduce){.folzdkc>svg>circle.fui-Spinner__Tail{animation-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.fhlfkde>svg>circle.fui-Spinner__Tail{animation-iteration-count:1;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (forced-colors: active){.f1m9nikz>svg>circle.fui-Spinner__Tail{stroke:var(--colorNeutralStrokeOnBrand2);}}",{m:"screen and (forced-colors: active)"}],["@media screen and (forced-colors: active){.flglbw1>svg>circle.fui-Spinner__Track{stroke:var(--colorNeutralBackgroundInverted);}}",{m:"screen and (forced-colors: active)"}]]}),Nq=q({inverted:{sj55zd:"f15aqcq"},primary:{},"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:[".f15aqcq{color:rgba(255, 255, 255, 1);}",".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);}"]}),Pq=t=>{const{labelPosition:e,size:r,appearance:o="primary"}=t,n=Iq(),i=Rq(),a=Nq(),s=Aq();return t.root.className=A(Wh.root,n.root,(e==="above"||e==="below")&&n.vertical,(e==="before"||e==="after")&&n.horizontal,t.root.className),t.spinner&&(t.spinner.className=A(Wh.spinner,i.spinnerSVG,i[r],s[o],t.spinner.className)),t.label&&(t.label.className=A(Wh.label,a[r],a[o],t.label.className)),t},zq=y.forwardRef((t,e)=>{const r=Eq(t,e);return Pq(r),ue("useSpinnerStyles_unstable")(r),Bq(r)});zq.displayName="Spinner";const Mq=(t,e)=>{t=vs(t,{supportsLabelFor:!0,supportsRequired:!0});const{checked:r,defaultChecked:o,disabled:n,labelPosition:i="after",onChange:a,required:s}=t,l=$i({props:t,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","onChange"]}),c=Rt("switch-",l.primary.id),u=te(t.root,{defaultProps:{ref:fs(),...l.root},elementType:"div"}),d=te(t.indicator,{defaultProps:{"aria-hidden":!0,children:y.createElement(Bx,null)},elementType:"div"}),f=te(t.input,{defaultProps:{checked:r,defaultChecked:o,id:c,ref:e,role:"switch",type:"checkbox",...l.primary},elementType:"input"});f.onChange=de(f.onChange,g=>a?.(g,{checked:g.currentTarget.checked}));const h=me(t.label,{defaultProps:{disabled:n,htmlFor:c,required:s,size:"medium"},elementType:co});return{labelPosition:i,components:{root:"div",indicator:"div",input:"input",label:co},root:u,indicator:d,input:f,label:h}},Oq=t=>{const{labelPosition:e}=t;return ke(t.root,{children:[O(t.input,{}),e!=="after"&&t.label&&O(t.label,{}),O(t.indicator,{}),e==="after"&&t.label&&O(t.label,{})]})},tu={root:"fui-Switch",indicator:"fui-Switch__indicator",input:"fui-Switch__input",label:"fui-Switch__label"},jq=fe("r1i56xw0","rk4yt03",{r:[".r1i56xw0{align-items:flex-start;box-sizing:border-box;display:inline-flex;position:relative;}",".r1i56xw0:focus{outline-style:none;}",".r1i56xw0:focus-visible{outline-style:none;}",".r1i56xw0[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1i56xw0[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rk4yt03{align-items:flex-start;box-sizing:border-box;display:inline-flex;position:relative;}",".rk4yt03:focus{outline-style:none;}",".rk4yt03:focus-visible{outline-style:none;}",".rk4yt03[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rk4yt03[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r1i56xw0[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){.rk4yt03[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),Dq=q({vertical:{Beiy3e4:"f1vx9l62"}},{d:[".f1vx9l62{flex-direction:column;}"]}),Fq=fe("r13wlxb8",null,{r:[".r13wlxb8{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;}",".r13wlxb8>*{transition-duration:var(--durationNormal);transition-timing-function:var(--curveEasyEase);transition-property:transform;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r13wlxb8{transition-duration:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r13wlxb8>*{transition-duration:0.01ms;}}"]}),qq=q({labelAbove:{B6of3ja:"f1hu3pq6"}},{d:[".f1hu3pq6{margin-top:0;}"]}),Lq=fe("rw4brat","r1f4bxyr",{r:[".rw4brat{box-sizing:border-box;cursor:pointer;height:100%;margin:0;opacity:0;position:absolute;width:calc(40px + 2 * var(--spacingHorizontalS));}",".rw4brat:checked~.fui-Switch__indicator>*{transform:translateX(20px);}",".rw4brat:disabled{cursor:default;}",".rw4brat:disabled~.fui-Switch__indicator{color:var(--colorNeutralForegroundDisabled);}",".rw4brat:disabled~.fui-Switch__label{cursor:default;color:var(--colorNeutralForegroundDisabled);}",".rw4brat:enabled:not(:checked)~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessible);border-color:var(--colorNeutralStrokeAccessible);}",".rw4brat:enabled:not(:checked)~.fui-Switch__label{color:var(--colorNeutralForeground1);}",".rw4brat:enabled:not(:checked):hover~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessibleHover);border-color:var(--colorNeutralStrokeAccessibleHover);}",".rw4brat:enabled:not(:checked):hover:active~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessiblePressed);border-color:var(--colorNeutralStrokeAccessiblePressed);}",".rw4brat:enabled:checked~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackground);color:var(--colorNeutralForegroundInverted);border-color:var(--colorTransparentStroke);}",".rw4brat:enabled:checked:hover~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundHover);border-color:var(--colorTransparentStrokeInteractive);}",".rw4brat:enabled:checked:hover:active~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundPressed);border-color:var(--colorTransparentStrokeInteractive);}",".rw4brat:disabled:not(:checked)~.fui-Switch__indicator{border-color:var(--colorNeutralStrokeDisabled);}",".rw4brat:disabled:checked~.fui-Switch__indicator{background-color:var(--colorNeutralBackgroundDisabled);border-color:var(--colorTransparentStrokeDisabled);}",".r1f4bxyr{box-sizing:border-box;cursor:pointer;height:100%;margin:0;opacity:0;position:absolute;width:calc(40px + 2 * var(--spacingHorizontalS));}",".r1f4bxyr:checked~.fui-Switch__indicator>*{transform:translateX(-20px);}",".r1f4bxyr:disabled{cursor:default;}",".r1f4bxyr:disabled~.fui-Switch__indicator{color:var(--colorNeutralForegroundDisabled);}",".r1f4bxyr:disabled~.fui-Switch__label{cursor:default;color:var(--colorNeutralForegroundDisabled);}",".r1f4bxyr:enabled:not(:checked)~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessible);border-color:var(--colorNeutralStrokeAccessible);}",".r1f4bxyr:enabled:not(:checked)~.fui-Switch__label{color:var(--colorNeutralForeground1);}",".r1f4bxyr:enabled:not(:checked):hover~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessibleHover);border-color:var(--colorNeutralStrokeAccessibleHover);}",".r1f4bxyr:enabled:not(:checked):hover:active~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessiblePressed);border-color:var(--colorNeutralStrokeAccessiblePressed);}",".r1f4bxyr:enabled:checked~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackground);color:var(--colorNeutralForegroundInverted);border-color:var(--colorTransparentStroke);}",".r1f4bxyr:enabled:checked:hover~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundHover);border-color:var(--colorTransparentStrokeInteractive);}",".r1f4bxyr:enabled:checked:hover:active~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundPressed);border-color:var(--colorTransparentStrokeInteractive);}",".r1f4bxyr:disabled:not(:checked)~.fui-Switch__indicator{border-color:var(--colorNeutralStrokeDisabled);}",".r1f4bxyr:disabled:checked~.fui-Switch__indicator{background-color:var(--colorNeutralBackgroundDisabled);border-color:var(--colorTransparentStrokeDisabled);}"],s:["@media (forced-colors: active){.rw4brat:disabled~.fui-Switch__indicator{color:GrayText;border-color:GrayText;}.rw4brat:disabled~.fui-Switch__label{color:GrayText;}.rw4brat:enabled:checked:hover~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}.rw4brat:enabled:checked~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}}","@media (forced-colors: active){.r1f4bxyr:disabled~.fui-Switch__indicator{color:GrayText;border-color:GrayText;}.r1f4bxyr:disabled~.fui-Switch__label{color:GrayText;}.r1f4bxyr:enabled:checked:hover~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}.r1f4bxyr:enabled:checked~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}}"]}),Hq=q({before:{j35jbq:["f1e31b4d","f1vgc2s3"],Bhzewxz:"f15twtuk"},after:{oyh7mz:["f1vgc2s3","f1e31b4d"],Bhzewxz:"f15twtuk"},above:{B5kzvoi:"f1yab3r1",Bqenvij:"f1aar7gd",a9b677:"fly5x3f"}},{d:[".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f15twtuk{top:0;}",".f1yab3r1{bottom:0;}",".f1aar7gd{height:calc(20px + var(--spacingVerticalS));}",".fly5x3f{width:100%;}"]}),Uq=q({base:{Bceei9c:"f1k6fduh",jrapky:"f49ad5g",B6of3ja:"f1xlvstr",z8tnut:"f1kwiid1",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f5b47ha",uwmqm3:["f1f5gg8d","f1vdfbxk"]},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);}",".f1kwiid1{padding-top:var(--spacingVerticalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f5b47ha{padding-bottom:var(--spacingVerticalS);}",".f1ywm7hm{padding-top:var(--spacingVerticalXS);}",".f14wxoun{padding-bottom:var(--spacingVerticalXS);}",".fly5x3f{width:100%;}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}"]}),$q=t=>{const e=jq(),r=Dq(),o=Fq(),n=qq(),i=Lq(),a=Hq(),s=Uq(),{label:l,labelPosition:c}=t;return t.root.className=A(tu.root,e,c==="above"&&r.vertical,t.root.className),t.indicator.className=A(tu.indicator,o,l&&c==="above"&&n.labelAbove,t.indicator.className),t.input.className=A(tu.input,i,l&&a[c],t.input.className),t.label&&(t.label.className=A(tu.label,s.base,s[c],t.label.className)),t},Kq=y.forwardRef((t,e)=>{const r=Mq(t,e);return $q(r),ue("useSwitchStyles_unstable")(r),Oq(r)});Kq.displayName="Switch";const Wq={appearance:"transparent",reserveSelectedTabSpace:!0,selectTabOnFocus:!1,disabled:!1,selectedValue:void 0,onRegister:()=>{},onUnregister:()=>{},onSelect:()=>{},getRegisteredTabs:()=>({registeredTabs:{}}),size:"medium",vertical:!1},KT=fn(void 0),Vq=KT.Provider,Kr=t=>lt(KT,(e=Wq)=>t(e)),Gq=(t,e)=>{const{content:r,disabled:o=!1,icon:n,onClick:i,onFocus:a,value:s}=t,l=Kr(I=>I.appearance),c=Kr(I=>I.reserveSelectedTabSpace),u=Kr(I=>I.selectTabOnFocus),d=Kr(I=>I.disabled),f=Kr(I=>I.selectedValue===s),h=Kr(I=>I.onRegister),g=Kr(I=>I.onUnregister),p=Kr(I=>I.onSelect),w=Kr(I=>I.size),v=Kr(I=>!!I.vertical),m=d||o,b=y.useRef(null),k=I=>p(I,{value:s}),x=Q(de(i,k)),_=Q(de(a,k));y.useEffect(()=>(h({value:s,ref:b}),()=>{g({value:s,ref:b})}),[h,g,b,s]);const S=me(n,{elementType:"span"}),C=te(r,{defaultProps:{children:t.children},elementType:"span"}),E=!!(S?.children&&!C.children);return{components:{root:"button",icon:"span",content:"span",contentReservedSpace:"span"},root:te(ve("button",{ref:Re(e,b),role:"tab",type:"button","aria-selected":m?void 0:`${f}`,...t,disabled:m,onClick:x,onFocus:u?_:a}),{elementType:"button"}),icon:S,iconOnly:E,content:C,contentReservedSpace:me(r,{renderByDefault:!f&&!E&&c,defaultProps:{children:t.children},elementType:"span"}),appearance:l,disabled:m,selected:f,size:w,value:s,vertical:v}},Xq=t=>ke(t.root,{children:[t.icon&&O(t.icon,{}),!t.iconOnly&&O(t.content,{}),t.contentReservedSpace&&O(t.contentReservedSpace,{})]}),Nw={offsetVar:"--fui-Tab__indicator--offset",scaleVar:"--fui-Tab__indicator--scale"},Yq=q({base:{B68tc82:"f1mtd64y",Bmxbyg5:"f1y7q3j9"},animated:{Ba2ppi3:"fhwpy7i",F2fol1:"f6zz20j",B1dyfl9:"f1ai4sc1",B0vmy72:"f9qxlq5",u9bimw:"f1aql376"},horizontal:{sjv3b2:["fug4aj8","f1i5xzg7"],b1kco5:"f1q7ujh"},vertical:{sjv3b2:"f1hqboyk",b1kco5:"f1dxupa6"}},{d:[".f1mtd64y{overflow-x:visible;}",".f1y7q3j9{overflow-y:visible;}",".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){.f9qxlq5::after{transition-property:none;}}",{m:"(prefers-reduced-motion: reduce)"}],["@media (prefers-reduced-motion: reduce){.f1aql376::after{transition-duration:0.01ms;}}",{m:"(prefers-reduced-motion: reduce)"}]]}),Zq=t=>{if(t){var e;const r=((e=t.parentElement)===null||e===void 0?void 0:e.getBoundingClientRect())||{x:0,y:0,width:0,height:0},o=t.getBoundingClientRect();return{x:o.x-r.x,y:o.y-r.y,width:o.width,height:o.height}}},Pw=(t,e)=>{var r;const o=e!=null?(r=t[JSON.stringify(e)])===null||r===void 0?void 0:r.ref.current:void 0;return o?Zq(o):void 0},Qq=t=>{const{disabled:e,selected:r,vertical:o}=t,n=Yq(),[i,a]=y.useState(),[s,l]=y.useState({offset:0,scale:1}),c=Kr(f=>f.getRegisteredTabs);if(y.useEffect(()=>{i&&l({offset:0,scale:1})},[i]),r){const{previousSelectedValue:f,selectedValue:h,registeredTabs:g}=c();if(f&&i!==f){const p=Pw(g,f),w=Pw(g,h);if(w&&p){const v=o?p.y-w.y:p.x-w.x,m=o?p.height/w.height:p.width/w.width;l({offset:v,scale:m}),a(f)}}}else i&&a(void 0);if(e)return t;const u=s.offset===0&&s.scale===1;t.root.className=A(t.root.className,r&&n.base,r&&u&&n.animated,r&&(o?n.vertical:n.horizontal));const d={[Nw.offsetVar]:`${s.offset}px`,[Nw.scaleVar]:`${s.scale}`};return t.root.style={...d,...t.root.style},t},Vh={root:"fui-Tab",icon:"fui-Tab__icon",content:"fui-Tab__content"},Jq={content:"fui-Tab__content--reserved-space"},eL=q({base:{Bt984gj:"f122n59",g2u3we:"fwhevhj",h3c5rm:["f61n433","f1q8l70w"],B9xav0g:"fv1dfc8",zhjwy3:["f1q8l70w","f61n433"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B4j52fo:"fre7gi1",Bekrc4i:["f1358rze","f1rvrf73"],Bn0qgzm:"fqdk4by",ibv6hh:["f1rvrf73","f1358rze"],Bceei9c:"f1k6fduh",mc9l5x:"f13qh94s",Bnnss6s:"fi64zpg",Bxotwcr:"f1u07yai",Budl1dq:"frn2hmy",wkccdc:"f1olsevy",Bahqtrf:"fk6fouc",Bg96gwp:"f1i3iumi",oeaueh:"f1s6fcnf",qhf8xq:"f10pi13n",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",B9bfxx9:"f1cxpek8"},horizontal:{Brf1p80:"f4d9j23"},vertical:{Brf1p80:"f1s9ku6b"},smallHorizontal:{i8kkvl:"f14mj54c",z8tnut:"fp2oml8",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"f1tdddsa",uwmqm3:["fk8j09s","fdw0yi8"]},smallVertical:{i8kkvl:"f14mj54c",z8tnut:"fclwglc",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"fywfov9",uwmqm3:["fk8j09s","fdw0yi8"]},mediumHorizontal:{i8kkvl:"f1rjii52",z8tnut:"f5yzyt",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"fx3omr",uwmqm3:["f1ng84yb","f11gcy0p"]},mediumVertical:{i8kkvl:"f1rjii52",z8tnut:"fp2oml8",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"f1tdddsa",uwmqm3:["f1ng84yb","f11gcy0p"]},largeHorizontal:{i8kkvl:"f1rjii52",z8tnut:"fikn0iw",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"fdxej3c",uwmqm3:["f1ng84yb","f11gcy0p"]},largeVertical:{i8kkvl:"f1rjii52",z8tnut:"f1kwiid1",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"f5b47ha",uwmqm3:["f1ng84yb","f11gcy0p"]},transparent:{De3pzq:"f1c21dwh",Jwef8y:"fjxutwb",ecr2s2:"fophhak",Bptxc3x:"fmmjozx",B076xvk:"f1mfqf41",q9r9w5:"f10aiid4",cl4aha:"fpkze5g",Bk452zc:"f149wc3x",a4hkcw:"fjioou7"},subtle:{De3pzq:"fhovq9v",Jwef8y:"f1t94bn6",ecr2s2:"f1wfn5kd",Bptxc3x:"fmmjozx",B076xvk:"f1mfqf41",q9r9w5:"f10aiid4",cl4aha:"fpkze5g",Bk452zc:"f149wc3x",a4hkcw:"fjioou7"},disabled:{De3pzq:"f1c21dwh",Bptxc3x:"fato7r6",cl4aha:"fao1bnu",Bceei9c:"fdrzuqr"},selected:{Bptxc3x:"f1cadz5z",B076xvk:"f1ck17l",q9r9w5:"f42ak0g",cl4aha:"ffplhdr",Bk452zc:"ffth601",a4hkcw:"fhklyu5"}},{d:[".f122n59{align-items:center;}",".fwhevhj{border-top-color:none;}",".f61n433{border-right-color:none;}",".f1q8l70w{border-left-color:none;}",".fv1dfc8{border-bottom-color:none;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".fre7gi1{border-top-width:0;}",".f1358rze{border-right-width:0;}",".f1rvrf73{border-left-width:0;}",".fqdk4by{border-bottom-width:0;}",".f1k6fduh{cursor:pointer;}",".f13qh94s{display:grid;}",".fi64zpg{flex-shrink:0;}",".f1u07yai{grid-auto-flow:column;}",".frn2hmy{grid-template-columns:auto;}",".f1olsevy{grid-template-rows:auto;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1s6fcnf{outline-style:none;}",".f10pi13n{position:relative;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".f1cxpek8{text-transform:none;}",".f4d9j23{justify-content:center;}",".f1s9ku6b{justify-content:start;}",".f14mj54c{column-gap:var(--spacingHorizontalXXS);}",".fp2oml8{padding-top:var(--spacingVerticalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".f1tdddsa{padding-bottom:var(--spacingVerticalSNudge);}",".fclwglc{padding-top:var(--spacingVerticalXXS);}",".fywfov9{padding-bottom:var(--spacingVerticalXXS);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".f5yzyt{padding-top:var(--spacingVerticalM);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".fx3omr{padding-bottom:var(--spacingVerticalM);}",".fikn0iw{padding-top:var(--spacingVerticalL);}",".fdxej3c{padding-bottom:var(--spacingVerticalL);}",".f1kwiid1{padding-top:var(--spacingVerticalS);}",".f5b47ha{padding-bottom:var(--spacingVerticalS);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fmmjozx .fui-Tab__icon{color:var(--colorNeutralForeground2);}",".fpkze5g .fui-Tab__content{color:var(--colorNeutralForeground2);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fato7r6 .fui-Tab__icon{color:var(--colorNeutralForegroundDisabled);}",".fao1bnu .fui-Tab__content{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f1cadz5z .fui-Tab__icon{color:var(--colorCompoundBrandForeground1);}",".ffplhdr .fui-Tab__content{color:var(--colorNeutralForeground1);}"],h:[".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".f1mfqf41:hover .fui-Tab__icon{color:var(--colorNeutralForeground2Hover);}",".f149wc3x:hover .fui-Tab__content{color:var(--colorNeutralForeground2Hover);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".f1ck17l:hover .fui-Tab__icon{color:var(--colorCompoundBrandForeground1Hover);}",".ffth601:hover .fui-Tab__content{color:var(--colorNeutralForeground1Hover);}"],a:[".fophhak:active{background-color:var(--colorTransparentBackgroundPressed);}",".f10aiid4:active .fui-Tab__icon{color:var(--colorNeutralForeground2Pressed);}",".fjioou7:active .fui-Tab__content{color:var(--colorNeutralForeground2Pressed);}",".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}",".f42ak0g:active .fui-Tab__icon{color:var(--colorCompoundBrandForeground1Pressed);}",".fhklyu5:active .fui-Tab__content{color:var(--colorNeutralForeground1Pressed);}"]}),tL=q({base:{B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bn4voq9:"f1p7hgxw",Bfpq7zp:"f1way5bb",g9k6zt:"f9znhxp",j6ew2k:["fqa318h","fqa318h"],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;}"]}),rL=q({base:{az7l2e:"fhw179n",Bv4n3vi:["f10y1uxy","f6aiuy0"],vqofr:["f6aiuy0","f10y1uxy"],B0uxbk8:["f1kfpfnu","f1dx5wco"],Bgqb9hq:["f1dx5wco","f1kfpfnu"],amg5m6:"f1kmhr4c",zkfqfm:"fl1ydde",Bkydozb:"f1y7maxz",vzq8l0:["f105swax","fscdmel"],Bka2azo:["fscdmel","f105swax"],Br4ovkg:["f1tkcw1w","f1u11x8o"],csmgbd:["f1u11x8o","f1tkcw1w"],y36c18:"f16cxu0",B1ctymy:"f1nwgacf",Bgvrrv0:"f15ovonk",ddr6p5:"fvje46l"},disabled:{az7l2e:"f1ut20fw",Bkydozb:"fhrzcfn"},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);}",".f10y1uxy:hover::before{border-bottom-right-radius:var(--borderRadiusCircular);}",".f6aiuy0:hover::before{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1kfpfnu:hover::before{border-top-right-radius:var(--borderRadiusCircular);}",".f1dx5wco:hover::before{border-top-left-radius:var(--borderRadiusCircular);}",'.f1kmhr4c:hover::before{content:"";}',".fl1ydde:hover::before{position:absolute;}",".f1ut20fw:hover::before{background-color:var(--colorTransparentStroke);}"],a:[".f1y7maxz:active::before{background-color:var(--colorNeutralStroke1Pressed);}",".f105swax:active::before{border-bottom-right-radius:var(--borderRadiusCircular);}",".fscdmel:active::before{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1tkcw1w:active::before{border-top-right-radius:var(--borderRadiusCircular);}",".f1u11x8o:active::before{border-top-left-radius:var(--borderRadiusCircular);}",'.f16cxu0:active::before{content:"";}',".f1nwgacf:active::before{position:absolute;}",".fhrzcfn:active::before{background-color:var(--colorTransparentStroke);}"],m:[["@media (forced-colors: active){.f15ovonk:hover::before{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fvje46l:active::before{background-color:Highlight;}}",{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);}"]}),oL=q({base:{Bjyk6c5:"f1rp0jgh",B3778ie:["fprarqb","f14vs0nd"],d9w3h3:["f14vs0nd","fprarqb"],Bl18szs:["f1gtfqs9","f18zvfd9"],B4j8arr:["f18zvfd9","f1gtfqs9"],Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",t2ki1e:"ffmd2fr"},selected:{Bjyk6c5:"f1ksivud",Glksuk:"f1eytvvh",Blzl0y7:"fuaa9s",f7digc:"fy7ktjt",Biqphg1:"f16tp0gf",Bntoloa:"fj0yp7j"},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);}",".fprarqb::after{border-bottom-right-radius:var(--borderRadiusCircular);}",".f14vs0nd::after{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1gtfqs9::after{border-top-right-radius:var(--borderRadiusCircular);}",".f18zvfd9::after{border-top-left-radius:var(--borderRadiusCircular);}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".ffmd2fr::after{z-index:1;}",".f1ksivud::after{background-color:var(--colorCompoundBrandStroke);}",".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);}"],h:[".f1eytvvh:hover::after{background-color:var(--colorCompoundBrandStrokeHover);}"],a:[".fuaa9s:active::after{background-color:var(--colorCompoundBrandStrokePressed);}"],m:[["@media (forced-colors: active){.fy7ktjt::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16tp0gf:hover::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fj0yp7j:active::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}]]}),nL=q({base:{Br312pm:"fwpfdsa",Ijaq50:"f16hsg94",Bt984gj:"f122n59",mc9l5x:"ftuwxu6",Brf1p80:"f4d9j23",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",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;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".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;}"]}),iL=q({base:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",z8tnut:"fztplxc",z189sj:["ffczdla","fgiv446"],Byoj8tv:"f9g1xly",uwmqm3:["fgiv446","ffczdla"]},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);}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".fztplxc{padding-top:var(--spacingVerticalNone);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".f9g1xly{padding-bottom:var(--spacingVerticalNone);}",".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;}"]}),aL=t=>{const e=eL(),r=tL(),o=rL(),n=oL(),i=nL(),a=iL(),{appearance:s,disabled:l,selected:c,size:u,vertical:d}=t;return t.root.className=A(Vh.root,e.base,d?e.vertical:e.horizontal,u==="small"&&(d?e.smallVertical:e.smallHorizontal),u==="medium"&&(d?e.mediumVertical:e.mediumHorizontal),u==="large"&&(d?e.largeVertical:e.largeHorizontal),r.base,!l&&s==="subtle"&&e.subtle,!l&&s==="transparent"&&e.transparent,!l&&c&&e.selected,l&&e.disabled,o.base,u==="small"&&(d?o.smallVertical:o.smallHorizontal),u==="medium"&&(d?o.mediumVertical:o.mediumHorizontal),u==="large"&&(d?o.largeVertical:o.largeHorizontal),l&&o.disabled,c&&n.base,c&&!l&&n.selected,c&&u==="small"&&(d?n.smallVertical:n.smallHorizontal),c&&u==="medium"&&(d?n.mediumVertical:n.mediumHorizontal),c&&u==="large"&&(d?n.largeVertical:n.largeHorizontal),c&&l&&n.disabled,t.root.className),t.icon&&(t.icon.className=A(Vh.icon,i.base,i[u],c&&i.selected,t.icon.className)),t.contentReservedSpace&&(t.contentReservedSpace.className=A(Jq.content,a.base,u==="large"?a.largeSelected:a.selected,t.icon?a.iconBefore:a.noIconBefore,a.placeholder,t.content.className),t.contentReservedSpaceClassName=t.contentReservedSpace.className),t.content.className=A(Vh.content,a.base,u==="large"&&a.large,c&&(u==="large"?a.largeSelected:a.selected),t.icon?a.iconBefore:a.noIconBefore,t.content.className),Qq(t),t},sL=y.forwardRef((t,e)=>{const r=Gq(t,e);return aL(r),ue("useTabStyles_unstable")(r),Xq(r)});sL.displayName="Tab";const lL=(t,e)=>{const{appearance:r="transparent",reserveSelectedTabSpace:o=!0,disabled:n=!1,onTabSelect:i,selectTabOnFocus:a=!1,size:s="medium",vertical:l=!1}=t,c=y.useRef(null),u=Xa({circular:!0,axis:l?"vertical":"horizontal",memorizeCurrent:!0}),[d,f]=Tt({state:t.selectedValue,defaultState:t.defaultSelectedValue,initialState:void 0}),h=y.useRef(void 0),g=y.useRef(void 0);y.useEffect(()=>{g.current=h.current,h.current=d},[d]);const p=Q((k,x)=>{f(x.value),i?.(k,x)}),w=y.useRef({}),v=Q(k=>{w.current[JSON.stringify(k.value)]=k}),m=Q(k=>{delete w.current[JSON.stringify(k.value)]}),b=y.useCallback(()=>({selectedValue:h.current,previousSelectedValue:g.current,registeredTabs:w.current}),[]);return{components:{root:"div"},root:te(ve("div",{ref:Re(e,c),role:"tablist","aria-orientation":l?"vertical":"horizontal",...u,...t}),{elementType:"div"}),appearance:r,reserveSelectedTabSpace:o,disabled:n,selectTabOnFocus:a,selectedValue:d,size:s,vertical:l,onRegister:v,onUnregister:m,onSelect:p,getRegisteredTabs:b}},cL=(t,e)=>O(t.root,{children:O(Vq,{value:e.tabList,children:t.root.children})}),uL={root:"fui-TabList"},dL=q({root:{mc9l5x:"f22iagw",Beiy3e4:"f1063pyq",Bnnss6s:"fi64zpg",Eh141a:"flvyvdh",qhf8xq:"f10pi13n"},horizontal:{Bt984gj:"f1q9h2pe",Beiy3e4:"f1063pyq"},vertical:{Bt984gj:"f1q9h2pe",Beiy3e4:"f1vx9l62"}},{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;}"]}),fL=t=>{const{vertical:e}=t,r=dL();return t.root.className=A(uL.root,r.root,e?r.vertical:r.horizontal,t.root.className),t};function hL(t){const{appearance:e,reserveSelectedTabSpace:r,disabled:o,selectTabOnFocus:n,selectedValue:i,onRegister:a,onUnregister:s,onSelect:l,getRegisteredTabs:c,size:u,vertical:d}=t;return{tabList:{appearance:e,reserveSelectedTabSpace:r,disabled:o,selectTabOnFocus:n,selectedValue:i,onSelect:l,onRegister:a,onUnregister:s,getRegisteredTabs:c,size:u,vertical:d}}}const gL=y.forwardRef((t,e)=>{const r=lL(t,e),o=hL(r);return fL(r),ue("useTabListStyles_unstable")(r),cL(r,o)});gL.displayName="TabList";const WT=(t,e)=>{const{wrap:r,truncate:o,block:n,italic:i,underline:a,strikethrough:s,size:l,font:c,weight:u,align:d}=t;return{align:d??"start",block:n??!1,font:c??"base",italic:i??!1,size:l??300,strikethrough:s??!1,truncate:o??!1,underline:a??!1,weight:u??"regular",wrap:r??!0,components:{root:"span"},root:te(ve("span",{ref:e,...t}),{elementType:"span"})}},VT=t=>O(t.root,{}),pL={root:"fui-Text"},mL=q({root:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi",Bhrd7zp:"figsok6",fsow6f:"fpgzoln",mc9l5x:"f1w7gpdv",Huce71:"f6juhto",B68tc82:"f1mtd64y",Bmxbyg5:"f1y7q3j9",ygn44y:"f2jf649"},nowrap:{Huce71:"fz5stix",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw"},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;}",".f1mtd64y{overflow-x:visible;}",".f1y7q3j9{overflow-y:visible;}",".f2jf649{text-overflow:clip;}",".fz5stix{white-space:nowrap;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".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;}"]}),GT=t=>{const e=mL();return t.root.className=A(pL.root,e.root,t.wrap===!1&&e.nowrap,t.truncate&&e.truncate,t.block&&e.block,t.italic&&e.italic,t.underline&&e.underline,t.strikethrough&&e.strikethrough,t.underline&&t.strikethrough&&e.strikethroughUnderline,t.size===100&&e.base100,t.size===200&&e.base200,t.size===400&&e.base400,t.size===500&&e.base500,t.size===600&&e.base600,t.size===700&&e.hero700,t.size===800&&e.hero800,t.size===900&&e.hero900,t.size===1e3&&e.hero1000,t.font==="monospace"&&e.monospace,t.font==="numeric"&&e.numeric,t.weight==="medium"&&e.weightMedium,t.weight==="semibold"&&e.weightSemibold,t.weight==="bold"&&e.weightBold,t.align==="center"&&e.alignCenter,t.align==="end"&&e.alignEnd,t.align==="justify"&&e.alignJustify,t.root.className),t},vL=y.forwardRef((t,e)=>{const r=WT(t,e);return GT(r),ue("useTextStyles_unstable")(r),VT(r)});vL.displayName="Text";function ti(t){const{useStyles:e,className:r,displayName:o}=t,n=y.forwardRef((i,a)=>{const s=e(),l=WT(i,a);return GT(l),l.root.className=A(r,l.root.className,s.root,i.className),VT(l)});return n.displayName=o,n}const bL={root:"fui-Body1"},yL=q({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);}"]}),VJ=ti({useStyles:yL,className:bL.root,displayName:"Body1"}),wL={root:"fui-Body1Strong"},kL=q({root:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"fl43uef",Bg96gwp:"f1i3iumi"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".f1i3iumi{line-height:var(--lineHeightBase300);}"]}),GJ=ti({useStyles:kL,className:wL.root,displayName:"Body1Strong"}),SL={root:"fui-Caption1"},_L=q({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);}"]}),XJ=ti({useStyles:_L,className:SL.root,displayName:"Caption1"}),xL={root:"fui-Caption1Stronger"},CL=q({root:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"flh3ekv",Bg96gwp:"fwrc4pm"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".flh3ekv{font-weight:var(--fontWeightBold);}",".fwrc4pm{line-height:var(--lineHeightBase200);}"]}),YJ=ti({useStyles:CL,className:xL.root,displayName:"Caption1Stronger"}),TL={root:"fui-LargeTitle"},EL=q({root:{Bahqtrf:"fk6fouc",Be2twd7:"f15afnhw",Bhrd7zp:"fl43uef",Bg96gwp:"fr3w3wp"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f15afnhw{font-size:var(--fontSizeHero900);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fr3w3wp{line-height:var(--lineHeightHero900);}"]}),ZJ=ti({useStyles:EL,className:TL.root,displayName:"LargeTitle"}),BL={root:"fui-Subtitle1"},IL=q({root:{Bahqtrf:"fk6fouc",Be2twd7:"f1pp30po",Bhrd7zp:"fl43uef",Bg96gwp:"f106mvju"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".f106mvju{line-height:var(--lineHeightBase500);}"]}),QJ=ti({useStyles:IL,className:BL.root,displayName:"Subtitle1"}),RL={root:"fui-Subtitle2"},AL=q({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);}"]}),JJ=ti({useStyles:AL,className:RL.root,displayName:"Subtitle2"}),NL={root:"fui-Title3"},PL=q({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);}"]}),eee=ti({useStyles:PL,className:NL.root,displayName:"Title3"}),zL=t=>O(t.root,{children:O(t.textarea,{})}),ML=(t,e)=>{t=vs(t,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const r=ff();var o;const{size:n="medium",appearance:i=(o=r.inputDefaultAppearance)!==null&&o!==void 0?o:"outline",resize:a="none",onChange:s}=t,[l,c]=Tt({state:t.value,defaultState:t.defaultValue,initialState:void 0}),u=$i({props:t,primarySlotTagName:"textarea",excludedPropNames:["onChange","value","defaultValue"]}),d={size:n,appearance:i,resize:a,components:{root:"span",textarea:"textarea"},textarea:te(t.textarea,{defaultProps:{ref:e,...u.primary},elementType:"textarea"}),root:te(t.root,{defaultProps:u.root,elementType:"span"})};return d.textarea.value=l,d.textarea.onChange=Q(f=>{const h=f.target.value;s?.(f,{value:h}),c(h)}),d},zw={root:"fui-Textarea",textarea:"fui-Textarea__textarea"},OL=q({base:{mc9l5x:"ftuwxu6",B7ck84d:"f1ewtqcl",qhf8xq:"f10pi13n",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1ean75l",uwmqm3:["f1cnd47f","fhxju0i"],B6of3ja:"f1hu3pq6",t21cq0:["f11qmguv","f1tyq0we"],jrapky:"f19f4twv",Frg6f3:["f1tyq0we","f11qmguv"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"]},disabled:{De3pzq:"f1c21dwh",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"]},interactive:{li1rpt:"f1gw3sf2",Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",Eqx8gd:["f1a7op3","f1cjjd47"],By385i5:"f1gboi2j",B1piin3:["f1cjjd47","f1a7op3"],Dlnsje:"ffyw7fx",d9w3h3:["f1kp91vd","f1ibwz09"],B3778ie:["f1ibwz09","f1kp91vd"],Bcgy8vk:"f14pi962",Bw17bha:"f1lh990p",B1q35kw:"f1jc6hxc",Gjdm7m:"fj2g8qd",b1kco5:"f1yk9hq",Ba2ppi3:"fhwpy7i",F2fol1:"f14ee0xe",lck23g:"f1xhbsuh",df92cz:"fv8e3ye",I188md:"ftb5wc6",umuwi5:"fjw5xc1",Blcqepd:"f1xdyd5c",nplu4u:"fatpbeo",Bioka5o:"fb7uyps",H713fs:"f1cmft4k",B9ooomg:"f1x58t8o",Bercvud:"f1ibeo51",Bbr2w1p:"f1vnc8sk",Bduesf4:"f3e99gv",Bpq79vn:"fhljsf7"},filled:{B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"],q7v0qe:"ftmjh5b",kmh5ft:["f17blpuu","fsrcdbj"],nagaa4:"f1tpwn32",B1yhkcb:["fsrcdbj","f17blpuu"]},"filled-darker":{De3pzq:"f16xq7d1"},"filled-lighter":{De3pzq:"fxugw4r"},"filled-darker-shadow":{De3pzq:"f16xq7d1",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"f1bh3yvw",h3c5rm:["fmi79ni","f11fozsx"],B9xav0g:"fnzw4c6",zhjwy3:["f11fozsx","fmi79ni"],E5pizo:"fyed02w"},"filled-lighter-shadow":{De3pzq:"fxugw4r",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"f1bh3yvw",h3c5rm:["fmi79ni","f11fozsx"],B9xav0g:"fnzw4c6",zhjwy3:["f11fozsx","fmi79ni"],E5pizo:"fyed02w"},outline:{De3pzq:"fxugw4r",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1c1zstj",zhjwy3:["f1lxtadh","f1akhkt"]},outlineInteractive:{ckks6v:"f7ic3uo",B2zwrfe:["f1omjgsz","f1snvl17"],xv9156:"fn6xmsl",dt87k2:["f1snvl17","f1omjgsz"],Bf40cpq:"f1sn8sm0",Bop6t4b:["f1wovo5e","f716mnf"],gvrnp0:"fm0h710",Beu9t3s:["f716mnf","f1wovo5e"],Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"f1l4zc64",gg5e9n:["f1m52nbi","f1ub3y4t"],uqwnxt:"fk7lb2a",Bvecx4l:["f1knhbbd","f17itt0b"],Bs0cc2w:"f15pjvi3",e1hlit:["f17itt0b","f1knhbbd"],e2sjt0:"f6ginmj",Bbcopvn:["f1grcyuh","fgzu20w"],Bj33j0h:"fk1xjsr",f7epvg:["fgzu20w","f1grcyuh"],B6oc9vd:"fvs00aa",ak43y8:["f1assf6x","f4ruux4"],wmxk5l:"f1z0osm6",B50zh58:["f4ruux4","f1assf6x"],Bbs6y8j:"fu7v4fk",rexu52:["f1fnaxjy","fwory1w"],B7pmvfx:"f7hodha",Belqbek:["fwory1w","f1fnaxjy"],Bawrxx6:"f8jkv7v",r7b1zc:["f1f3jaeo","fh8au0q"],Bt3ojkv:"f19usxel",t1ykpo:["fh8au0q","f1f3jaeo"],Bvq3b66:"f12oevn0",Brahy3i:["fvdgz8d","f1cq0lt5"],zoxjo1:"f1so894s",an54nd:["f1cq0lt5","fvdgz8d"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]}},{d:[".ftuwxu6{display:inline-flex;}",".f1ewtqcl{box-sizing:border-box;}",".f10pi13n{position:relative;}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1ean75l{padding-bottom:var(--strokeWidthThick);}",".f1hu3pq6{margin-top:0;}",".f11qmguv{margin-right:0;}",".f1tyq0we{margin-left:0;}",".f19f4twv{margin-bottom:0;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".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);}",".f14pi962::after{border-bottom-width:var(--strokeWidthThick);}",".f1lh990p::after{border-bottom-style:solid;}",".f1jc6hxc::after{border-bottom-color:var(--colorCompoundBrandStroke);}",".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);}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1bh3yvw{border-top-color:var(--colorTransparentStrokeInteractive);}",".fmi79ni{border-right-color:var(--colorTransparentStrokeInteractive);}",".f11fozsx{border-left-color:var(--colorTransparentStrokeInteractive);}",".fnzw4c6{border-bottom-color:var(--colorTransparentStrokeInteractive);}",".fyed02w{box-shadow:var(--shadow2);}",".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".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){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media screen and (prefers-reduced-motion: reduce){.fv8e3ye::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.ftb5wc6::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1cmft4k:focus-within::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1x58t8o:focus-within::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]],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;}",".fu7v4fk:focus-within{border-top-width:var(--strokeWidthThin);}",".f1fnaxjy:focus-within{border-right-width:var(--strokeWidthThin);}",".fwory1w:focus-within{border-left-width:var(--strokeWidthThin);}",".f7hodha:focus-within{border-bottom-width:var(--strokeWidthThin);}",".f8jkv7v:focus-within{border-top-style:solid;}",".f1f3jaeo:focus-within{border-right-style:solid;}",".fh8au0q:focus-within{border-left-style:solid;}",".f19usxel:focus-within{border-bottom-style:solid;}",".f12oevn0:focus-within{border-top-color:var(--colorNeutralStroke1);}",".fvdgz8d:focus-within{border-right-color:var(--colorNeutralStroke1);}",".f1cq0lt5:focus-within{border-left-color:var(--colorNeutralStroke1);}",".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);}",".f7ic3uo:hover{border-top-width:var(--strokeWidthThin);}",".f1omjgsz:hover{border-right-width:var(--strokeWidthThin);}",".f1snvl17:hover{border-left-width:var(--strokeWidthThin);}",".fn6xmsl:hover{border-bottom-width:var(--strokeWidthThin);}",".f1sn8sm0:hover{border-top-style:solid;}",".f1wovo5e:hover{border-right-style:solid;}",".f716mnf:hover{border-left-style:solid;}",".fm0h710:hover{border-bottom-style:solid;}",".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:[".fk7lb2a:active{border-top-width:var(--strokeWidthThin);}",".f1knhbbd:active{border-right-width:var(--strokeWidthThin);}",".f17itt0b:active{border-left-width:var(--strokeWidthThin);}",".f15pjvi3:active{border-bottom-width:var(--strokeWidthThin);}",".f6ginmj:active{border-top-style:solid;}",".f1grcyuh:active{border-right-style:solid;}",".fgzu20w:active{border-left-style:solid;}",".fk1xjsr:active{border-bottom-style:solid;}",".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);}"]}),jL=q({base:{icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],oivjwe:"f1h8hb77",wvpqe5:["f1deefiw","f1n71otn"],B6of3ja:"f1hu3pq6",t21cq0:["f11qmguv","f1tyq0we"],jrapky:"f19f4twv",Frg6f3:["f1tyq0we","f11qmguv"],De3pzq:"f3rmtva",B7ck84d:"f1ewtqcl",sj55zd:"f19n0e5",Bh6795r:"fqerorx",Bahqtrf:"fk6fouc",Bqenvij:"f1l02sjl",yvdlaj:"fwyc1cq",B3o7kgh:"f13ta7ih",B4brmom:"f1vw9udw",Brrnbx2:"fbb3kq8",oeaueh:"f1s6fcnf"},disabled:{sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"},small:{sshi5w:"f1w5jphr",z8tnut:"f1ywm7hm",z189sj:["fqznh8f","f1xile11"],Byoj8tv:"f14wxoun",uwmqm3:["f1xile11","fqznh8f"],Bxyxcbc:"f192z54u",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},medium:{sshi5w:"fvmd9f",z8tnut:"fp2oml8",z189sj:["f135dnwl","f1e60jzv"],Byoj8tv:"f1tdddsa",uwmqm3:["f1e60jzv","f135dnwl"],Bxyxcbc:"f1if7ixc",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},large:{sshi5w:"f1kfson",z8tnut:"f1kwiid1",z189sj:["fcgl2c4","f1anj20m"],Byoj8tv:"f5b47ha",uwmqm3:["f1anj20m","fcgl2c4"],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;}",".f1hu3pq6{margin-top:0;}",".f11qmguv{margin-right:0;}",".f1tyq0we{margin-left:0;}",".f19f4twv{margin-bottom:0;}",".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;}",".f1vw9udw::selection{color:var(--colorNeutralForegroundInverted);}",".fbb3kq8::selection{background-color:var(--colorNeutralBackgroundInverted);}",".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;}",".f1ywm7hm{padding-top:var(--spacingVerticalXS);}",".fqznh8f{padding-right:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".f1xile11{padding-left:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".f14wxoun{padding-bottom:var(--spacingVerticalXS);}",".f192z54u{max-height:200px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fvmd9f{min-height:52px;}",".fp2oml8{padding-top:var(--spacingVerticalSNudge);}",".f135dnwl{padding-right:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f1e60jzv{padding-left:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f1tdddsa{padding-bottom:var(--spacingVerticalSNudge);}",".f1if7ixc{max-height:260px;}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1kfson{min-height:64px;}",".f1kwiid1{padding-top:var(--spacingVerticalS);}",".fcgl2c4{padding-right:calc(var(--spacingHorizontalM) + var(--spacingHorizontalXXS));}",".f1anj20m{padding-left:calc(var(--spacingHorizontalM) + var(--spacingHorizontalXXS));}",".f5b47ha{padding-bottom:var(--spacingVerticalS);}",".f3kip1f{max-height:320px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}"]}),DL=q({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;}"]}),FL=t=>{const{size:e,appearance:r,resize:o}=t,n=t.textarea.disabled,i=`${t.textarea["aria-invalid"]}`=="true",a=r.startsWith("filled"),s=OL();t.root.className=A(zw.root,s.base,n&&s.disabled,!n&&a&&s.filled,!n&&s[r],!n&&s.interactive,!n&&r==="outline"&&s.outlineInteractive,!n&&i&&s.invalid,t.root.className);const l=jL(),c=DL();return t.textarea.className=A(zw.textarea,l.base,l[e],c[o],n&&l.disabled,t.textarea.className),t},qL=y.forwardRef((t,e)=>{const r=ML(t,e);return FL(r),ue("useTextareaStyles_unstable")(r),zL(r)});qL.displayName="Textarea";const ci="__fluentDisableScrollElement";function LL(){const{targetDocument:t}=Pe();return y.useCallback(()=>{if(t)return HL(t.body)},[t])}function HL(t){var e;const{clientWidth:r}=t.ownerDocument.documentElement;var o;const n=(o=(e=t.ownerDocument.defaultView)===null||e===void 0?void 0:e.innerWidth)!==null&&o!==void 0?o:0;return UL(t),t[ci].count===0&&(t.style.overflow="hidden",t.style.paddingRight=`${n-r}px`),t[ci].count++,()=>{t[ci].count--,t[ci].count===0&&(t.style.overflow=t[ci].previousOverflowStyle,t.style.paddingRight=t[ci].previousPaddingRightStyle)}}function UL(t){var e,r,o;(o=(e=t)[r=ci])!==null&&o!==void 0||(e[r]={count:0,previousOverflowStyle:t.style.overflow,previousPaddingRightStyle:t.style.paddingRight})}function $L(t,e){const{findFirstFocusable:r}=Ao(),{targetDocument:o}=Pe(),n=y.useRef(null);return y.useEffect(()=>{if(!t)return;const i=n.current&&r(n.current);if(i)i.focus();else{var a;(a=n.current)===null||a===void 0||a.focus()}},[r,t,e,o]),n}const KL={open:!1,inertTrapFocus:!1,modalType:"modal",isNestedDialog:!1,dialogRef:{current:null},requestOpenChange(){}},W1=fn(void 0),WL=W1.Provider,yo=t=>lt(W1,(e=KL)=>t(e)),VL=!1,XT=y.createContext(void 0),YT=XT.Provider,GL=()=>{var t;return(t=y.useContext(XT))!==null&&t!==void 0?t:VL},XL=t=>{const{children:e,modalType:r="modal",onOpenChange:o,inertTrapFocus:n=!1}=t,[i,a]=YL(e),[s,l]=Tt({state:t.open,defaultState:t.defaultOpen,initialState:!1}),c=Q(p=>{o?.(p.event,p),p.event.isDefaultPrevented()||l(p.open)}),u=$L(s,r),d=LL(),f=!!(s&&r!=="non-modal");Qt(()=>{if(f)return d()},[d,f]);const{modalAttributes:h,triggerAttributes:g}=mf({trapFocus:r!=="non-modal",legacyTrapFocus:!n});return{components:{backdrop:"div"},inertTrapFocus:n,open:s,modalType:r,content:a,trigger:i,requestOpenChange:c,dialogTitleId:Rt("dialog-title-"),isNestedDialog:uc(W1),dialogRef:u,modalAttributes:r!=="non-modal"?h:void 0,triggerAttributes:g}};function YL(t){const e=y.Children.toArray(t);switch(e.length){case 2:return e;case 1:return[void 0,e[0]];default:return[void 0,void 0]}}function ZL(t,e){if(t==null)return{};var r={},o=Object.keys(t),n,i;for(i=0;i=0)&&(r[n]=t[n]);return r}function $p(t,e){return $p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,n){return o.__proto__=n,o},$p(t,e)}function QL(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,$p(t,e)}var ZT={exports:{}},JL="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",eH=JL,tH=eH;function QT(){}function JT(){}JT.resetWarningCache=QT;var rH=function(){function t(o,n,i,a,s,l){if(l!==tH){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}t.isRequired=t;function e(){return t}var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:JT,resetWarningCache:QT};return r.PropTypes=r,r};ZT.exports=rH();var oH=ZT.exports;const qe=Ro(oH),Mw={disabled:!1},e5=ut.createContext(null);var nH=function(e){return e.scrollTop},Ws="unmounted",ui="exited",di="entering",ca="entered",Kp="exiting",gn=function(t){QL(e,t);function e(o,n){var i;i=t.call(this,o,n)||this;var a=n,s=a&&!a.isMounting?o.enter:o.appear,l;return i.appearStatus=null,o.in?s?(l=ui,i.appearStatus=di):l=ca:o.unmountOnExit||o.mountOnEnter?l=Ws:l=ui,i.state={status:l},i.nextCallback=null,i}e.getDerivedStateFromProps=function(n,i){var a=n.in;return a&&i.status===Ws?{status:ui}:null};var r=e.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(n){var i=null;if(n!==this.props){var a=this.state.status;this.props.in?a!==di&&a!==ca&&(i=di):(a===di||a===ca)&&(i=Kp)}this.updateStatus(!1,i)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var n=this.props.timeout,i,a,s;return i=a=s=n,n!=null&&typeof n!="number"&&(i=n.exit,a=n.enter,s=n.appear!==void 0?n.appear:a),{exit:i,enter:a,appear:s}},r.updateStatus=function(n,i){if(n===void 0&&(n=!1),i!==null)if(this.cancelNextCallback(),i===di){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Xc.findDOMNode(this);a&&nH(a)}this.performEnter(n)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ui&&this.setState({status:Ws})},r.performEnter=function(n){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:n,l=this.props.nodeRef?[s]:[Xc.findDOMNode(this),s],c=l[0],u=l[1],d=this.getTimeouts(),f=s?d.appear:d.enter;if(!n&&!a||Mw.disabled){this.safeSetState({status:ca},function(){i.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:di},function(){i.props.onEntering(c,u),i.onTransitionEnd(f,function(){i.safeSetState({status:ca},function(){i.props.onEntered(c,u)})})})},r.performExit=function(){var n=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:Xc.findDOMNode(this);if(!i||Mw.disabled){this.safeSetState({status:ui},function(){n.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Kp},function(){n.props.onExiting(s),n.onTransitionEnd(a.exit,function(){n.safeSetState({status:ui},function(){n.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(n,i){i=this.setNextCallback(i),this.setState(n,i)},r.setNextCallback=function(n){var i=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,n(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},r.onTransitionEnd=function(n,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:Xc.findDOMNode(this),s=n==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}n!=null&&setTimeout(this.nextCallback,n)},r.render=function(){var n=this.state.status;if(n===Ws)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=ZL(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ut.createElement(e5.Provider,{value:null},typeof a=="function"?a(n,s):ut.cloneElement(ut.Children.only(a),s))},e}(ut.Component);gn.contextType=e5;gn.propTypes={};function ea(){}gn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ea,onEntering:ea,onEntered:ea,onExit:ea,onExiting:ea,onExited:ea};gn.UNMOUNTED=Ws;gn.EXITED=ui;gn.ENTERING=di;gn.ENTERED=ca;gn.EXITING=Kp;const t5=gn,iH=void 0,r5=y.createContext(void 0),aH=r5.Provider,sH=()=>{var t;return(t=y.useContext(r5))!==null&&t!==void 0?t:iH},lH=(t,e)=>{const{content:r,trigger:o}=t;return O(WL,{value:e.dialog,children:ke(YT,{value:e.dialogSurface,children:[o,O(t5,{mountOnEnter:!0,unmountOnExit:!0,in:t.open,nodeRef:t.dialogRef,appear:!0,timeout:250,children:n=>O(aH,{value:n,children:r})})]})})};function cH(t){const{modalType:e,open:r,dialogRef:o,dialogTitleId:n,isNestedDialog:i,inertTrapFocus:a,requestOpenChange:s,modalAttributes:l,triggerAttributes:c}=t;return{dialog:{open:r,modalType:e,dialogRef:o,dialogTitleId:n,isNestedDialog:i,inertTrapFocus:a,modalAttributes:l,triggerAttributes:c,requestOpenChange:s},dialogSurface:!1}}const Wp=y.memo(t=>{const e=XL(t),r=cH(e);return lH(e,r)});Wp.displayName="Dialog";const uH=t=>{const e=GL(),{children:r,disableButtonEnhancement:o=!1,action:n=e?"close":"open"}=t,i=ac(r),a=yo(d=>d.requestOpenChange),{triggerAttributes:s}=mf(),l=Q(d=>{var f,h;i==null||(f=(h=i.props).onClick)===null||f===void 0||f.call(h,d),d.isDefaultPrevented()||a({event:d,type:"triggerClick",open:n==="open"})}),c={...i?.props,ref:i?.ref,onClick:l,...s},u=Ni(i?.type==="button"||i?.type==="a"?i.type:"div",{...c,type:"button"});return{children:hf(r,o?c:u)}},dH=t=>t.children,V1=t=>{const e=uH(t);return dH(e)};V1.displayName="DialogTrigger";V1.isFluentTriggerComponent=!0;const fH=(t,e)=>{const{position:r="end",fluid:o=!1}=t;return{components:{root:"div"},root:te(ve("div",{ref:e,...t}),{elementType:"div"}),position:r,fluid:o}},hH=t=>O(t.root,{}),gH={root:"fui-DialogActions"},pH=fe("r78gbj",null,{r:[".r78gbj{column-gap:8px;row-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){.r78gbj{flex-direction:column;justify-self:stretch;}}"]}),mH=q({gridPositionEnd:{Bdqf98w:"f1a7i8kp",Br312pm:"fd46tj4",Bw0ie65:"fsyjsko",B6n781s:"f1f41i0t",Bv5d0be:"f1jaqex3",v4ugfu:"f2ao6jk"},gridPositionStart:{Bdqf98w:"fsxvdwy",Br312pm:"fwpfdsa",Bw0ie65:"f1e2fz10",Bojbm9c:"f11ihkml",Bv5d0be:"fce5bvx",v4ugfu:"f2ao6jk"},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){.f1f41i0t{grid-column-start:1;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f1jaqex3{grid-row-start:4;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f2ao6jk{grid-row-end:auto;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f11ihkml{grid-column-end:4;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.fce5bvx{grid-row-start:3;}}",{m:"screen and (max-width: 480px)"}]]}),vH=t=>{const e=pH(),r=mH();return t.root.className=A(gH.root,e,t.position==="start"&&r.gridPositionStart,t.position==="end"&&r.gridPositionEnd,t.fluid&&t.position==="start"&&r.fluidStart,t.fluid&&t.position==="end"&&r.fluidEnd,t.root.className),t},bH=y.forwardRef((t,e)=>{const r=fH(t,e);return vH(r),ue("useDialogActionsStyles_unstable")(r),hH(r)});bH.displayName="DialogActions";const yH=(t,e)=>{var r;return{components:{root:"div"},root:te(ve((r=t.as)!==null&&r!==void 0?r:"div",{ref:e,...t}),{elementType:"div"})}},wH=t=>O(t.root,{}),kH={root:"fui-DialogBody"},SH=fe("r71plkv",null,{r:[".r71plkv{overflow-x:unset;overflow-y:unset;column-gap:8px;row-gap:8px;display:grid;max-height:calc(100vh - 2 * 24px);box-sizing:border-box;grid-template-rows:auto 1fr;grid-template-columns:1fr 1fr auto;}"],s:["@media screen and (max-width: 480px){.r71plkv{max-width:100vw;grid-template-rows:auto 1fr auto;}}"]}),_H=t=>{const e=SH();return t.root.className=A(kH.root,e,t.root.className),t},xH=y.forwardRef((t,e)=>{const r=yH(t,e);return _H(r),ue("useDialogBodyStyles_unstable")(r),wH(r)});xH.displayName="DialogBody";const Ow={root:"fui-DialogTitle",action:"fui-DialogTitle__action"},CH=fe("rztv7rx","rt0yqbx",[".rztv7rx{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase500);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase500);margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;grid-row-start:1;grid-row-end:1;grid-column-start:1;grid-column-end:3;}",".rt0yqbx{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase500);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase500);margin-top:0;margin-left:0;margin-bottom:0;margin-right:0;grid-row-start:1;grid-row-end:1;grid-column-start:1;grid-column-end:3;}"]),TH=q({rootWithoutAction:{Bw0ie65:"fsyjsko"}},{d:[".fsyjsko{grid-column-end:4;}"]}),EH=fe("r13kcrze",null,[".r13kcrze{grid-row-start:1;grid-row-end:1;grid-column-start:3;justify-self:end;align-self:start;}"]),BH=fe("r51tj","rgre5d",{r:[".r51tj{overflow-x:visible;overflow-y:visible;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0;border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-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;}",".r51tj:focus{outline-style:none;}",".r51tj:focus-visible{outline-style:none;}",".r51tj[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r51tj[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rgre5d{overflow-x:visible;overflow-y:visible;padding-top:0;padding-left:0;padding-bottom:0;padding-right:0;border-top-style:none;border-left-style:none;border-bottom-style:none;border-right-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;}",".rgre5d:focus{outline-style:none;}",".rgre5d:focus-visible{outline-style:none;}",".rgre5d[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rgre5d[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r51tj[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){.rgre5d[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),o5=t=>{const e=CH(),r=EH(),o=TH();return t.root.className=A(Ow.root,e,!t.action&&o.rootWithoutAction,t.root.className),t.action&&(t.action.className=A(Ow.action,r,t.action.className)),t},IH=(t,e)=>{const{action:r}=t,o=yo(i=>i.modalType),n=BH();return{components:{root:"h2",action:"div"},root:te(ve("h2",{ref:e,id:yo(i=>i.dialogTitleId),...t}),{elementType:"h2"}),action:me(r,{renderByDefault:o==="non-modal",defaultProps:{children:y.createElement(V1,{disableButtonEnhancement:!0,action:"close"},y.createElement("button",{type:"button",className:n,"aria-label":"close"},y.createElement(JN,null)))},elementType:"div"})}},RH=t=>ke(y.Fragment,{children:[O(t.root,{children:t.root.children}),t.action&&O(t.action,{})]}),AH=y.forwardRef((t,e)=>{const r=IH(t,e);return o5(r),ue("useDialogTitleStyles_unstable")(r),RH(r)});AH.displayName="DialogTitle";const n5=(t,e)=>{const r=yo(f=>f.modalType),o=yo(f=>f.isNestedDialog),n=sH(),i=yo(f=>f.modalAttributes),a=yo(f=>f.dialogRef),s=yo(f=>f.requestOpenChange),l=yo(f=>f.dialogTitleId),c=Q(f=>{if(ox(t.backdrop)){var h,g;(h=(g=t.backdrop).onClick)===null||h===void 0||h.call(g,f)}r==="modal"&&!f.isDefaultPrevented()&&s({event:f,open:!1,type:"backdropClick"})}),u=Q(f=>{var h;(h=t.onKeyDown)===null||h===void 0||h.call(t,f),f.key===No&&!f.isDefaultPrevented()&&(s({event:f,open:!1,type:"escapeKeyDown"}),f.preventDefault())}),d=me(t.backdrop,{renderByDefault:r!=="non-modal",defaultProps:{"aria-hidden":"true"},elementType:"div"});return d&&(d.onClick=c),{components:{backdrop:"div",root:"div"},backdrop:d,isNestedDialog:o,transitionStatus:n,mountNode:t.mountNode,root:te(ve("div",{tabIndex:-1,"aria-modal":r!=="non-modal",role:r==="alert"?"alertdialog":"dialog","aria-labelledby":t["aria-label"]?void 0:l,...t,...i,onKeyDown:u,ref:Re(e,a)}),{elementType:"div"})}},i5=(t,e)=>ke(Gi,{mountNode:t.mountNode,children:[t.backdrop&&O(t.backdrop,{}),O(YT,{value:e.dialogSurface,children:O(t.root,{})})]}),jw={root:"fui-DialogSurface",backdrop:"fui-DialogSurface__backdrop"},NH=fe("rhhzfde","r1n1tr5u",{r:[".rhhzfde{top:0;right:0;bottom:0;left:0;padding-top:24px;padding-right:24px;padding-bottom:24px;padding-left:24px;margin-top:auto;margin-right:auto;margin-bottom:auto;margin-left:auto;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;overflow-x:unset;overflow-y:unset;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-color:var(--colorTransparentStroke);border-right-color:var(--colorTransparentStroke);border-bottom-color:var(--colorTransparentStroke);border-left-color:var(--colorTransparentStroke);border-bottom-right-radius:var(--borderRadiusXLarge);border-bottom-left-radius:var(--borderRadiusXLarge);border-top-right-radius:var(--borderRadiusXLarge);border-top-left-radius:var(--borderRadiusXLarge);display:block;-webkit-user-select:unset;-moz-user-select:unset;-ms-user-select:unset;user-select:unset;visibility:unset;position:fixed;height:fit-content;max-width:600px;max-height:100vh;box-sizing:border-box;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);}",".rhhzfde:focus{outline-style:none;}",".rhhzfde:focus-visible{outline-style:none;}",".rhhzfde[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.rhhzfde[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".r1n1tr5u{top:0;left:0;bottom:0;right:0;padding-top:24px;padding-left:24px;padding-bottom:24px;padding-right:24px;margin-top:auto;margin-left:auto;margin-bottom:auto;margin-right:auto;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;overflow-x:unset;overflow-y:unset;border-top-width:1px;border-left-width:1px;border-bottom-width:1px;border-right-width:1px;border-top-color:var(--colorTransparentStroke);border-left-color:var(--colorTransparentStroke);border-bottom-color:var(--colorTransparentStroke);border-right-color:var(--colorTransparentStroke);border-bottom-left-radius:var(--borderRadiusXLarge);border-bottom-right-radius:var(--borderRadiusXLarge);border-top-left-radius:var(--borderRadiusXLarge);border-top-right-radius:var(--borderRadiusXLarge);display:block;-webkit-user-select:unset;-moz-user-select:unset;-ms-user-select:unset;user-select:unset;visibility:unset;position:fixed;height:fit-content;max-width:600px;max-height:100vh;box-sizing:border-box;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);}",".r1n1tr5u:focus{outline-style:none;}",".r1n1tr5u:focus-visible{outline-style:none;}",".r1n1tr5u[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r1n1tr5u[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.rhhzfde[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){.rhhzfde{max-width:100vw;}}","@media (forced-colors: active){.r1n1tr5u[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){.r1n1tr5u{max-width:100vw;}}"]}),PH=q({animated:{abs64n:"fk73vx1",E5pizo:"f1yzz98r",Bz10aip:"f15ofi6c"},static:{E5pizo:"f10nrhrw"},unmounted:{},entering:{B3o57yi:"fc397y7",Bmy1vo4:"f1b86uth",Bkqvd7p:"f18ad807",E5pizo:"f10nrhrw",Bz10aip:"f186d0ee",abs64n:"f5p0z4x"},entered:{E5pizo:"f10nrhrw",Bz10aip:"f186d0ee",abs64n:"f5p0z4x"},idle:{E5pizo:"f10nrhrw",Bz10aip:"f186d0ee",abs64n:"f5p0z4x"},exiting:{B3o57yi:"fc397y7",Bmy1vo4:"f1b86uth",Bkqvd7p:"f1mfizis"},exited:{}},{d:[".fk73vx1{opacity:0;}",".f1yzz98r{box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.1);}",".f15ofi6c{transform:scale(0.85) translateZ(0);}",".f10nrhrw{box-shadow:var(--shadow64);}",".fc397y7{transition-duration:var(--durationGentle);}",".f1b86uth{transition-property:opacity,transform,box-shadow;}",".f18ad807{transition-timing-function:var(--curveDecelerateMid);}",".f186d0ee{transform:scale(1) translateZ(0);}",".f5p0z4x{opacity:1;}",".f1mfizis{transition-timing-function:var(--curveAccelerateMin);}"]}),zH=fe("raidwwn","r17vltcu",[".raidwwn{top:0px;right:0px;bottom:0px;left:0px;background-color:rgba(0, 0, 0, 0.4);position:fixed;transition-duration:var(--durationGentle);transition-timing-function:var(--curveLinear);transition-property:opacity;will-change:opacity;opacity:0;}",".r17vltcu{top:0px;left:0px;bottom:0px;right:0px;background-color:rgba(0, 0, 0, 0.4);position:fixed;transition-duration:var(--durationGentle);transition-timing-function:var(--curveLinear);transition-property:opacity;will-change:opacity;opacity:0;}"]),MH=q({nestedDialogBackdrop:{De3pzq:"f1c21dwh"},unmounted:{},entering:{abs64n:"f5p0z4x"},entered:{abs64n:"f5p0z4x"},idle:{abs64n:"f5p0z4x"},exiting:{Bkqvd7p:"f1mfizis"},exited:{}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f5p0z4x{opacity:1;}",".f1mfizis{transition-timing-function:var(--curveAccelerateMin);}"]}),OH=t=>{const{isNestedDialog:e,root:r,backdrop:o,transitionStatus:n}=t,i=NH(),a=PH(),s=zH(),l=MH();return r.className=A(jw.root,i,n?a.animated:a.static,n&&a[n],r.className),o&&(o.className=A(jw.backdrop,s,e&&l.nestedDialogBackdrop,n&&l[n],o.className)),t};function a5(t){return{dialogSurface:!0}}const jH=y.forwardRef((t,e)=>{const r=n5(t,e),o=a5();return OH(r),ue("useDialogSurfaceStyles_unstable")(r),i5(r,o)});jH.displayName="DialogSurface";const DH=(t,e)=>{var r;return{components:{root:"div"},root:te(ve((r=t.as)!==null&&r!==void 0?r:"div",{ref:e,...t}),{elementType:"div"})}},FH=t=>O(t.root,{}),qH={root:"fui-DialogContent"},LH=fe("r1e0mpcm","r1equu0b",[".r1e0mpcm{padding-top:var(--strokeWidthThick);padding-right:var(--strokeWidthThick);padding-bottom:var(--strokeWidthThick);padding-left:var(--strokeWidthThick);margin-top:calc(var(--strokeWidthThick) * -1);margin-right:calc(var(--strokeWidthThick) * -1);margin-bottom:calc(var(--strokeWidthThick) * -1);margin-left: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;}",".r1equu0b{padding-top:var(--strokeWidthThick);padding-left:var(--strokeWidthThick);padding-bottom:var(--strokeWidthThick);padding-right:var(--strokeWidthThick);margin-top:calc(var(--strokeWidthThick) * -1);margin-left:calc(var(--strokeWidthThick) * -1);margin-bottom:calc(var(--strokeWidthThick) * -1);margin-right: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;}"]),HH=t=>{const e=LH();return t.root.className=A(qH.root,e,t.root.className),t},UH=y.forwardRef((t,e)=>{const r=DH(t,e);return HH(r),ue("useDialogContentStyles_unstable")(r),FH(r)});UH.displayName="DialogContent";const $H=(t,e)=>{const{size:r="medium",vertical:o=!1}=t,n=Xa({circular:!0,axis:"both"}),i={size:r,vertical:o,components:{root:"div"},root:te(ve("div",{role:"toolbar",ref:e,...o&&{"aria-orientation":"vertical"},...n,...t}),{elementType:"div"})},[a,s]=KH({checkedValues:t.checkedValues,defaultCheckedValues:t.defaultCheckedValues,onCheckedValueChange:t.onCheckedValueChange}),l=Q((u,d,f,h)=>{if(d&&f){const p=[...a?.[d]||[]];h?p.splice(p.indexOf(f),1):p.push(f),s?.(u,{name:d,checkedItems:p})}}),c=Q((u,d,f,h)=>{d&&f&&s?.(u,{name:d,checkedItems:[f]})});return{...i,handleToggleButton:l,handleRadio:c,checkedValues:a??{}}},KH=t=>{const[e,r]=Tt({state:t.checkedValues,defaultState:t.defaultCheckedValues,initialState:{}}),{onCheckedValueChange:o}=t,n=Q((i,{name:a,checkedItems:s})=>{o&&o(i,{name:a,checkedItems:s}),r(l=>l?{...l,[a]:s}:{[a]:s})});return[e,n]},s5=fn(void 0),WH={size:"medium",handleToggleButton:()=>null,handleRadio:()=>null,vertical:!1,checkedValues:{}},Vp=t=>lt(s5,(e=WH)=>t(e)),VH=(t,e)=>O(s5.Provider,{value:e.toolbar,children:O(t.root,{children:t.root.children})}),GH={root:"fui-Toolbar"},XH=q({root:{mc9l5x:"f22iagw",Bt984gj:"f122n59",z8tnut:"f10ra9hq",z189sj:["f19lj068","f177v4lu"],Byoj8tv:"f1y2xyjm",uwmqm3:["f177v4lu","f19lj068"]},vertical:{Beiy3e4:"f1vx9l62",a9b677:"f1acs6jw"},small:{z8tnut:"f1nbblvp",z189sj:["f8wuabp","fycuoez"],Byoj8tv:"f1ov4xf1",uwmqm3:["fycuoez","f8wuabp"]},medium:{z8tnut:"f10ra9hq",z189sj:["f19lj068","f177v4lu"],Byoj8tv:"f1y2xyjm",uwmqm3:["f177v4lu","f19lj068"]},large:{z8tnut:"f10ra9hq",z189sj:["fat0sn4","fekwl8i"],Byoj8tv:"f1y2xyjm",uwmqm3:["fekwl8i","fat0sn4"]}},{d:[".f22iagw{display:flex;}",".f122n59{align-items:center;}",".f10ra9hq{padding-top:4px;}",".f19lj068{padding-right:8px;}",".f177v4lu{padding-left:8px;}",".f1y2xyjm{padding-bottom:4px;}",".f1vx9l62{flex-direction:column;}",".f1acs6jw{width:fit-content;}",".f1nbblvp{padding-top:0px;}",".f8wuabp{padding-right:4px;}",".fycuoez{padding-left:4px;}",".f1ov4xf1{padding-bottom:0px;}",".fat0sn4{padding-right:20px;}",".fekwl8i{padding-left:20px;}"]}),YH=t=>{const e=XH(),{vertical:r,size:o}=t;return t.root.className=A(GH.root,e.root,r&&e.vertical,o==="small"&&!r&&e.small,o==="medium"&&!r&&e.medium,o==="large"&&!r&&e.large,t.root.className),t};function ZH(t){const{size:e,handleToggleButton:r,vertical:o,checkedValues:n,handleRadio:i}=t;return{toolbar:{size:e,vertical:o,handleToggleButton:r,handleRadio:i,checkedValues:n}}}const QH=y.forwardRef((t,e)=>{const r=$H(t,e),o=ZH(r);return YH(r),ue("useToolbarStyles_unstable")(r),VH(r,o)});QH.displayName="Toolbar";const JH=q({vertical:{Beiy3e4:"f1vx9l62"},verticalIcon:{Be2twd7:"f1rt2boy",B6of3ja:"f1hu3pq6",t21cq0:["f11qmguv","f1tyq0we"],jrapky:"f19f4twv",Frg6f3:["f1tyq0we","f11qmguv"]}},{d:[".f1vx9l62{flex-direction:column;}",".f1rt2boy{font-size:24px;}",".f1hu3pq6{margin-top:0;}",".f11qmguv{margin-right:0;}",".f1tyq0we{margin-left:0;}",".f19f4twv{margin-bottom:0;}"]}),eU=t=>{L1(t);const e=JH();t.root.className=A(t.root.className,t.vertical&&e.vertical),t.icon&&(t.icon.className=A(t.icon.className,t.vertical&&e.verticalIcon))},tU=(t,e)=>{const{vertical:r=!1,...o}=t,n=q1({appearance:"subtle",...o},e);return{vertical:r,...n}},rU=y.forwardRef((t,e)=>{const r=tU(t,e);return eU(r),ue("useToolbarButtonStyles_unstable")(r),Ff(r)});rU.displayName="ToolbarButton";const oU=q({root:{mc9l5x:"ftuwxu6",B2u0y6b:"f1lwjmbk",z8tnut:"f1g0x7ka",z189sj:["f11qrl6u","fjlbh76"],Byoj8tv:"f1qch9an",uwmqm3:["fjlbh76","f11qrl6u"]},vertical:{B2u0y6b:"fe668z"}},{d:[".ftuwxu6{display:inline-flex;}",".f1lwjmbk{max-width:1px;}",".f1g0x7ka{padding-top:0;}",".f11qrl6u{padding-right:12px;}",".fjlbh76{padding-left:12px;}",".f1qch9an{padding-bottom:0;}",".fe668z{max-width:initial;}"]}),nU=t=>{jT(t);const{vertical:e}=t,r=oU();return t.root.className=A(r.root,!e&&r.vertical,t.root.className),t},iU=(t,e)=>{const r=Vp(o=>o.vertical);return OT({vertical:!r,...t},e)},aU=y.forwardRef((t,e)=>{const r=iU(t,e);return nU(r),ue("useToolbarDividerStyles_unstable")(r),MT(r)});aU.displayName="ToolbarDivider";const sU=(t,e)=>{const r=Vp(l=>l.handleToggleButton),o=Vp(l=>{var c;return!!(!((c=l.checkedValues[t.name])===null||c===void 0)&&c.includes(t.value))}),{onClick:n}=t,a={...BT({checked:o,...t},e),name:t.name,value:t.value},s=l=>{if(a.disabled){l.preventDefault(),l.stopPropagation();return}r?.(l,a.name,a.value,a.checked),n?.(l)};return a.root.onClick=s,a},lU=q({selected:{sj55zd:"f16muhyy"}},{d:[".f16muhyy{color:var(--colorBrandForeground1);}"]}),cU=t=>{IT(t);const e=lU();t.root.className=A(t.root.className,t.checked&&e.selected)},uU=y.forwardRef((t,e)=>{const r=sU(t,e);return cU(r),ue("useToolbarToggleButtonStyles_unstable")(r),Ff(r)});uU.displayName="ToolbarToggleButton";const As=()=>{},l5={allRowsSelected:!1,clearRows:As,deselectRow:As,isRowSelected:()=>!1,selectRow:As,selectedRows:new Set,someRowsSelected:!1,toggleAllRows:As,toggleRow:As,selectionMode:"multiselect"};function dU(t){return e=>fU(e,t)}function fU(t,e){const{items:r,getRowId:o}=t,{selectionMode:n,defaultSelectedItems:i,selectedItems:a,onSelectionChange:s}=e,[l,c]=xN({selectionMode:n,defaultSelectedItems:i,selectedItems:a,onSelectionChange:s}),u=y.useMemo(()=>{const b=new Set;for(let x=0;x{if(n==="single"){const k=Array.from(l)[0];return u.has(k)}if(l.size{l.has(k)||(b=!1)}),b},[u,l,n]),f=y.useMemo(()=>{if(l.size<=0)return!1;let b=!1;return u.forEach(k=>{l.has(k)&&(b=!0)}),b},[u,l]),h=Q(b=>{c.toggleAllItems(b,r.map((k,x)=>{var _;return(_=o?.(k))!==null&&_!==void 0?_:x}))}),g=Q((b,k)=>c.toggleItem(b,k)),p=Q((b,k)=>c.deselectItem(b,k)),w=Q((b,k)=>c.selectItem(b,k)),v=b=>c.isSelected(b),m=Q(b=>c.clearItems(b));return{...t,selection:{selectionMode:n,someRowsSelected:f,allRowsSelected:d,selectedRows:l,toggleRow:g,toggleAllRows:h,clearRows:m,deselectRow:p,selectRow:w,isRowSelected:v}}}const Gp=()=>{},c5={getSortDirection:()=>"ascending",setColumnSort:Gp,sort:t=>[...t],sortColumn:void 0,sortDirection:"ascending",toggleColumnSort:Gp};function hU(t){return e=>gU(e,t)}function gU(t,e){const{columns:r}=t,{sortState:o,defaultSortState:n,onSortChange:i=Gp}=e,[a,s]=Tt({initialState:{sortDirection:"ascending",sortColumn:void 0},defaultState:n,state:o}),{sortColumn:l,sortDirection:c}=a,u=Q(i),d=y.useCallback((p,w)=>{s(v=>{const m={...v,sortColumn:w};return v.sortColumn===w?m.sortDirection=v.sortDirection==="ascending"?"descending":"ascending":m.sortDirection="ascending",u?.(p,m),m})},[u,s]),f=(p,w,v)=>{const m={sortColumn:w,sortDirection:v};u?.(p,m),s(m)},h=y.useCallback(p=>p.slice().sort((w,v)=>{const m=r.find(k=>k.columnId===l);if(!m?.compare)return 0;const b=c==="ascending"?1:-1;return m.compare(w.item,v.item)*b}),[r,l,c]);return{...t,sort:{sort:h,sortColumn:l,sortDirection:c,setColumnSort:f,toggleColumnSort:d,getSortDirection:p=>l===p?c:void 0}}}const pU=(t,e)=>{const r=Q(o=>{var n;(n=t.onClick)===null||n===void 0||n.call(t,o),o.stopPropagation()});return{components:{root:"div"},root:te(ve("div",{ref:e,...t,onClick:r}),{elementType:"div"})}},mU=t=>O(t.root,{}),vU={root:"fui-TableResizeHandle"},bU=q({root:{qhf8xq:"f1euv43f",j35jbq:["f1e31b4d","f1vgc2s3"],Bhzewxz:"f15twtuk",B5kzvoi:"f1yab3r1",a9b677:"fjw5fx7",B6of3ja:"f1hu3pq6",t21cq0:["fn2i5td","f1eybr6b"],jrapky:"f19f4twv",Frg6f3:["f1eybr6b","fn2i5td"],Bceei9c:"fc3en1c",abs64n:"fk73vx1",Bmy1vo4:"f13u1uyl",B3o57yi:"fezquic",Bj3rh1h:"f19g0ac",B3cna0y:"f1tkae59",Brovlpu:"ftqa4ok",B7zu5sd:"f15pjodv",Bs6t6z0:"ftgrb5f",Fdvyjd:"f2df6js",Biobvvw:"fshsryb",Hdbjpj:"f11ef69",jc51t6:["f12lb1dx","f13tbxeo"],u6d25:"fu4ulse",Bj55yzk:"fw2wsqs",Bkbwdz4:"f1swzn7y"}},{d:[".f1euv43f{position:absolute;}",".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f15twtuk{top:0;}",".f1yab3r1{bottom:0;}",".fjw5fx7{width:16px;}",".f1hu3pq6{margin-top:0;}",".fn2i5td{margin-right:-8px;}",".f1eybr6b{margin-left:-8px;}",".f19f4twv{margin-bottom:0;}",".fc3en1c{cursor:col-resize;}",".fk73vx1{opacity:0;}",".f13u1uyl{transition-property:opacity;}",".fezquic{transition-duration:.2s;}",".f19g0ac{z-index:1;}",'.ftgrb5f:after{content:" ";}',".f2df6js:after{display:block;}",".fshsryb:after{width:1px;}",".f11ef69:after{position:absolute;}",".f12lb1dx:after{left:50%;}",".f13tbxeo:after{right:50%;}",".fu4ulse:after{top:0;}",".fw2wsqs:after{bottom:0;}",".f1swzn7y:after{background-color:var(--colorNeutralStroke1);}"],f:[".f1tkae59:focus{opacity:1;}",".ftqa4ok:focus{outline-style:none;}"],h:[".f15pjodv:hover{opacity:1;}"]}),yU=t=>{const e=bU();return t.root.className=A(vU.root,e.root,t.root.className),t},u5=y.forwardRef((t,e)=>{const r=pU(t,e);return yU(r),ue("useTableResizeHandleStyles_unstable")(r),mU(r)});u5.displayName="TableResizeHandle";function wU(){const[t,e]=y.useState(0),r=y.useRef(void 0),{targetDocument:o}=Pe(),n=y.useCallback(()=>{var s;const l=(s=r.current)===null||s===void 0?void 0:s.getBoundingClientRect().width;e(l||0)},[]),[i]=y.useState(()=>kU(o,n)),a=y.useCallback(s=>{!o||!i||(r.current&&i.unobserve(r.current),r.current=void 0,s?.parentElement&&(r.current=s.parentElement,i.observe(r.current),n()))},[o,i,n]);return y.useEffect(()=>()=>i?.disconnect(),[i]),{width:t,measureElementRef:a}}function kU(t,e){var r;return!(t==null||(r=t.defaultView)===null||r===void 0)&&r.ResizeObserver?new t.defaultView.ResizeObserver(e):null}function SU(t){const e=y.useRef(0),r=y.useRef(0),o=y.useRef(void 0),{targetDocument:n}=Pe(),i=n?.defaultView,{getColumnWidth:a,setColumnWidth:s}=t,l=y.useCallback(f=>{const{clientX:h}=yb(f),g=h-e.current;r.current+=g,o.current&&s(f,{columnId:o.current,width:r.current}),e.current=h},[s]),c=y.useCallback(f=>{typeof i?.requestAnimationFrame=="function"?requestAnimationFrame(()=>l(f)):l(f)},[i?.requestAnimationFrame,l]),u=y.useCallback(f=>{qg(f)&&(n?.removeEventListener("mouseup",u),n?.removeEventListener("mousemove",c)),Fg(f)&&(n?.removeEventListener("touchend",u),n?.removeEventListener("touchmove",c))},[c,n]);return{getOnMouseDown:y.useCallback(f=>h=>{if(r.current=a(f),e.current=yb(h).clientX,o.current=f,qg(h)){if(h.target!==h.currentTarget||h.button!==0)return;n?.addEventListener("mouseup",u),n?.addEventListener("mousemove",c)}Fg(h)&&(n?.addEventListener("touchend",u),n?.addEventListener("touchmove",c))},[a,c,u,n])}}const _U=150,xU=100;function Xp(t,e=[],r={}){let o=!1;const n=new Map(e.map(a=>[a.columnId,a])),i=t.map(a=>{const s=n.get(a.columnId);if(s){var l;const{idealWidth:g=s.idealWidth,minWidth:p=s.minWidth,padding:w=s.padding}=(l=r[a.columnId])!==null&&l!==void 0?l:{};return g!==s.idealWidth||p!==s.minWidth||w!==s.padding?(o=!0,{...s,idealWidth:g,width:g,minWidth:p,padding:w}):s}var c;const{defaultWidth:u,idealWidth:d=_U,minWidth:f=xU,padding:h}=(c=r[a.columnId])!==null&&c!==void 0?c:{};return o=!0,{columnId:a.columnId,width:Math.max(u??d,f),minWidth:f,idealWidth:Math.max(u??d,f),padding:h??16}});if(i.length!==e.length||o){const a=i.find(s=>s.width>s.idealWidth);a&&(a.width=a.idealWidth),o=!0}return o?i:e}function Hl(t,e){return t.find(r=>r.columnId===e)}function Gh(t,e){return t[e]}function CU(t){return t.reduce((e,r)=>e+r.width+r.padding,0)}function TU(t,e){const r=Hl(t,e);var o;return(o=r?.width)!==null&&o!==void 0?o:0}function ll(t,e,r,o){const n=Hl(t,e);if(!n||n?.[r]===o)return t;const i={...n,[r]:o};return t.reduce((s,l)=>l.columnId===i.columnId?[...s,i]:[...s,l],[])}function ru(t,e){let r=t;const o=CU(r);if(o0;){const a=Gh(r,i),s=Math.min(a.idealWidth-a.width,n);if(r=ll(r,a.columnId,"width",a.width+s),n-=s,i===r.length-1&&n!==0){const l=Gh(r,i);r=ll(r,l.columnId,"width",l.width+n)}i++}}else if(o>=e){let n=o-e,i=r.length-1;for(;i>=0&&n>0;){const a=Gh(r,i);if(a.width>a.minWidth){const s=Math.min(a.width-a.minWidth,n);n-=s,r=ll(r,a.columnId,"width",a.width-s)}i--}}return r}const EU=()=>(t,e)=>{switch(e.type){case"CONTAINER_WIDTH_UPDATED":return{...t,containerWidth:e.containerWidth,columnWidthState:ru(t.columnWidthState,e.containerWidth)};case"COLUMNS_UPDATED":const r=Xp(e.columns,t.columnWidthState,t.columnSizingOptions);return{...t,columns:e.columns,columnWidthState:ru(r,t.containerWidth)};case"COLUMN_SIZING_OPTIONS_UPDATED":const o=Xp(t.columns,t.columnWidthState,e.columnSizingOptions);return{...t,columnSizingOptions:e.columnSizingOptions,columnWidthState:ru(o,t.containerWidth)};case"SET_COLUMN_WIDTH":const{columnId:n,width:i}=e,{containerWidth:a}=t,s=Hl(t.columnWidthState,n);let l=[...t.columnWidthState];return s?(l=ll(l,n,"width",i),l=ll(l,n,"idealWidth",i),l=ru(l,a),{...t,columnWidthState:l}):t}};function BU(t,e,r={}){const{onColumnResize:o,columnSizingOptions:n}=r,i=y.useMemo(()=>EU(),[]),[a,s]=y.useReducer(i,{columns:t,containerWidth:0,columnWidthState:Xp(t,void 0,n),columnSizingOptions:n});Qt(()=>{s({type:"CONTAINER_WIDTH_UPDATED",containerWidth:e})},[e]),Qt(()=>{s({type:"COLUMNS_UPDATED",columns:t})},[t]),Qt(()=>{s({type:"COLUMN_SIZING_OPTIONS_UPDATED",columnSizingOptions:n})},[n]);const l=Q((c,u)=>{let{width:d}=u;const{columnId:f}=u,h=Hl(a.columnWidthState,f);h&&(d=Math.max(h.minWidth||0,d),o&&o(c,{columnId:f,width:d}),s({type:"SET_COLUMN_WIDTH",columnId:f,width:d}))});return{getColumnById:y.useCallback(c=>Hl(a.columnWidthState,c),[a.columnWidthState]),getColumns:y.useCallback(()=>a.columnWidthState,[a.columnWidthState]),getColumnWidth:y.useCallback(c=>TU(a.columnWidthState,c),[a.columnWidthState]),setColumnWidth:l}}const ou=20,IU=t8,Dw=1/4;function RU(t){const[e,r]=y.useState(),o=y.useRef(),{findPrevFocusable:n}=Ao(),i=y.useRef(t);y.useEffect(()=>{i.current=t},[t]);const[a]=y.useState(()=>new Map),s=Q(h=>{if(!e)return;const g=i.current.getColumnWidth(e),p=h.getModifierState(IU),w=()=>{h.preventDefault(),h.stopPropagation()};switch(h.key){case yf:w(),i.current.setColumnWidth(h.nativeEvent,{columnId:e,width:g-(p?ou*Dw:ou)});return;case dc:w(),i.current.setColumnWidth(h.nativeEvent,{columnId:e,width:g+(p?ou*Dw:ou)});return;case Mr:case Co:case No:var v,m;w(),(m=a.get(e))===null||m===void 0||(v=m.current)===null||v===void 0||v.blur();break}}),l=y.useCallback(h=>{var g,p;r(h),(g=o.current)===null||g===void 0||g.call(o,h,!0);const w=(p=a.get(h))===null||p===void 0?void 0:p.current;w&&(w.setAttribute("tabindex","-1"),w.tabIndex=-1,w.focus())},[a]),c=y.useCallback(()=>{var h,g;if(!e)return;(h=o.current)===null||h===void 0||h.call(o,e,!1);const p=(g=a.get(e))===null||g===void 0?void 0:g.current;if(p){var w;(w=n(p))===null||w===void 0||w.focus(),p.removeAttribute("tabindex")}r(void 0)},[e,n,a]),u=(h,g)=>{o.current=g,e?h&&e!==h?(l(h),r(h)):c():l(h)},d=y.useCallback(h=>{const g=a.get(h)||y.createRef();return a.set(h,g),g},[a]),f=Sl({focusable:{ignoreKeydown:{ArrowLeft:!0,ArrowRight:!0}}});return{toggleInteractiveMode:u,columnId:e,getKeyboardResizingProps:y.useCallback((h,g)=>({onKeyDown:s,onBlur:c,ref:d(h),role:"separator","aria-label":"Resize column","aria-valuetext":`${g} pixels`,"aria-hidden":h!==e,tabIndex:h===e?0:void 0,...f}),[e,c,d,s,f])}}const d5={getColumnWidths:()=>[],getOnMouseDown:()=>()=>null,setColumnWidth:()=>null,getTableProps:()=>({}),getTableHeaderCellProps:()=>({style:{},columnId:""}),getTableCellProps:()=>({style:{},columnId:""}),enableKeyboardMode:()=>()=>null};function AU(t){return e=>NU(e,t)}function Fw(t){const e=t.width;return{width:e,minWidth:e,maxWidth:e}}function NU(t,e){const{columns:r}=t,{width:o,measureElementRef:n}=wU(),i=BU(r,o+(e?.containerWidthOffset||0),e),a=SU(i),{toggleInteractiveMode:s,getKeyboardResizingProps:l}=RU(i),c=y.useCallback((g,p)=>w=>{w.preventDefault(),w.nativeEvent.stopPropagation(),s(g,p)},[s]),{getColumnById:u,setColumnWidth:d,getColumns:f}=i,{getOnMouseDown:h}=a;return{...t,tableRef:n,columnSizing_unstable:{getOnMouseDown:h,setColumnWidth:(g,p)=>d(void 0,{columnId:g,width:p}),getColumnWidths:f,getTableProps:(g={})=>({...g,style:{minWidth:"fit-content",...g.style||{}}}),getTableHeaderCellProps:y.useCallback(g=>{var p;const w=u(g),m=((p=r[r.length-1])===null||p===void 0?void 0:p.columnId)===g?null:y.createElement(u5,{onMouseDown:h(g),onTouchStart:h(g),...l(g,w?.width||0)});return w?{style:Fw(w),aside:m}:{}},[u,r,l,h]),getTableCellProps:y.useCallback(g=>{const p=u(g);return p?{style:Fw(p)}:{}},[u]),enableKeyboardMode:c}}}const PU=t=>t,zU={selection:l5,sort:c5,getRows:()=>[],getRowId:()=>"",items:[],columns:[],columnSizing_unstable:d5,tableRef:y.createRef()};function MU(t,e=[]){const{items:r,getRowId:o,columns:n}=t,i=y.useCallback((s=PU)=>r.map((l,c)=>{var u;return s({item:l,rowId:(u=o?.(l))!==null&&u!==void 0?u:c})}),[r,o]),a={getRowId:o,items:r,columns:n,getRows:i,selection:l5,sort:c5,columnSizing_unstable:d5,tableRef:y.createRef()};return e.reduce((s,l)=>l(s),a)}const OU=()=>0,jU=()=>null,DU=()=>null;function tee(t){const{columnId:e,renderCell:r=jU,renderHeaderCell:o=DU,compare:n=OU}=t;return{columnId:e,renderCell:r,renderHeaderCell:o,compare:n}}function FU(){const t=Xa({axis:"horizontal"}),e=Xa({axis:"grid"}),r=lc({tabBehavior:"limited-trap-focus"}),{findFirstFocusable:o}=Ao(),{targetDocument:n}=Pe(),i=D6(t,r);return{onTableKeyDown:y.useCallback(s=>{if(!n)return;const l=n.activeElement;if(!l||!s.currentTarget.contains(l))return;const c=l.getAttribute("role");if(s.key===dc&&c==="row"&&Ve(l)){var u;(u=o(l))===null||u===void 0||u.focus()}if(c==="row")return;const d=(()=>{let f=Ve(l)?l:null;for(;f;){const h=f.getAttribute("role");if(h==="cell"||h==="gridcell")return!0;f=f.parentElement}return!1})();(s.key===Ya||s.key===Ea)&&d&&(l.dispatchEvent(new KeyboardEvent("keydown",{key:No,keyCode:e8})),l.dispatchEvent(new KeyboardEvent("keydown",{key:s.key,keyCode:s.keyCode})))},[n,o]),tableTabsterAttribute:e,tableRowTabsterAttribute:i}}const f5=y.createContext(void 0),qU={size:"medium",noNativeElements:!1,sortable:!1},LU=f5.Provider,ri=()=>{var t;return(t=y.useContext(f5))!==null&&t!==void 0?t:qU},h5=(t,e)=>{const{noNativeElements:r,size:o}=ri();var n;const i=((n=t.as)!==null&&n!==void 0?n:r)?"div":"td";return{components:{root:i},root:te(ve(i,{ref:e,role:i==="div"?"cell":void 0,...t}),{elementType:i}),noNativeElements:r,size:o}},HU=t=>O(t.root,{}),UU="fui-TableCell",$U={root:UU},KU=q({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;}"]}),WU=q({root:{mc9l5x:"f22iagw",Bf4jedk:"f10tiqix",Bt984gj:"f122n59",Bh6795r:"fqerorx",Bnnss6s:"f1neuvcm",xawz:"fkjuxzh"},medium:{sshi5w:"f5pgtk9"},small:{sshi5w:"fcep9tg"},"extra-small":{sshi5w:"f1pha7fy"}},{d:[".f22iagw{display:flex;}",".f10tiqix{min-width:0px;}",".f122n59{align-items:center;}",".fqerorx{flex-grow:1;}",".f1neuvcm{flex-shrink:1;}",".fkjuxzh{flex-basis:0px;}",".f5pgtk9{min-height:44px;}",".fcep9tg{min-height:34px;}",".f1pha7fy{min-height:24px;}"]}),VU=q({root:{qhf8xq:"f10pi13n",z8tnut:"f1nbblvp",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f1ov4xf1",uwmqm3:["f1f5gg8d","f1vdfbxk"],Bn4voq9:"fz36nt7",g9k6zt:"f9znhxp",Bfpq7zp:"fqrak0z",kdpuga:["f1o2ludy","f1kjnpwc"],Bw81rd7:["f1kjnpwc","f1o2ludy"],B6xbmo0:["fxmnebo","f1witrsb"],dm238s:["f1witrsb","fxmnebo"]}},{d:[".f10pi13n{position:relative;}",".f1nbblvp{padding-top:0px;}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1ov4xf1{padding-bottom:0px;}",".fz36nt7[data-fui-focus-visible]{outline-width:2px;}",".f9znhxp[data-fui-focus-visible]{outline-style:solid;}",".fqrak0z[data-fui-focus-visible]{outline-color:var(--colorStrokeFocus2);}",".f1o2ludy[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusMedium);}",".f1kjnpwc[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusMedium);}",".fxmnebo[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusMedium);}",".f1witrsb[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusMedium);}"]}),GU=t=>{const e=VU(),r={table:KU(),flex:WU()};return t.root.className=A($U.root,e.root,t.noNativeElements?r.flex.root:r.table.root,t.noNativeElements?r.flex[t.size]:r.table[t.size],t.root.className),t},g5=y.createContext(void 0),XU="",YU=g5.Provider,G1=()=>y.useContext(g5)===XU,ZU=(t,e)=>{const{noNativeElements:r,size:o}=ri();var n;const i=((n=t.as)!==null&&n!==void 0?n:r)?"div":"tr",a=Dv(),s=fs(),l=G1();var c;return{components:{root:i},root:te(ve(i,{ref:Re(e,a,s),role:i==="div"?"row":void 0,...t}),{elementType:i}),size:o,noNativeElements:r,appearance:(c=t.appearance)!==null&&c!==void 0?c:"none",isHeaderRow:l}},QU=44,Xh={root:"fui-TableSelectionCell",checkboxIndicator:"fui-TableSelectionCell__checkboxIndicator",radioIndicator:"fui-TableSelectionCell__radioIndicator"},JU=q({root:{mc9l5x:"f15pt5es",a9b677:"fksc0bp"}},{d:[".f15pt5es{display:table-cell;}",".fksc0bp{width:44px;}"]}),e$=q({root:{mc9l5x:"f22iagw",Bh6795r:"fqerorx",Bnnss6s:"f1neuvcm",xawz:"fkjuxzh",Bf4jedk:"fvrlu0f",B2u0y6b:"f1c71y05",Brf1p80:"f4d9j23"}},{d:[".f22iagw{display:flex;}",".fqerorx{flex-grow:1;}",".f1neuvcm{flex-shrink:1;}",".fkjuxzh{flex-basis:0px;}",".fvrlu0f{min-width:44px;}",".f1c71y05{max-width:44px;}",".f4d9j23{justify-content:center;}"]}),t$=q({root:{fsow6f:"f17mccla",Huce71:"fz5stix",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1cnd47f","fhxju0i"],Bn4voq9:"fz36nt7",g9k6zt:"f9znhxp",Bfpq7zp:"fqrak0z",kdpuga:["f1o2ludy","f1kjnpwc"],Bw81rd7:["f1kjnpwc","f1o2ludy"],B6xbmo0:["fxmnebo","f1witrsb"],dm238s:["f1witrsb","fxmnebo"]},radioIndicator:{mc9l5x:"f22iagw",Bh6795r:"fqerorx",Bt984gj:"f122n59",Brf1p80:"f4d9j23"},subtle:{abs64n:"fk73vx1",B8a84jv:"f1y7ij6c"},hidden:{Bcdw1i0:"fd7fpy0"}},{d:[".f17mccla{text-align:center;}",".fz5stix{white-space:nowrap;}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".fz36nt7[data-fui-focus-visible]{outline-width:2px;}",".f9znhxp[data-fui-focus-visible]{outline-style:solid;}",".fqrak0z[data-fui-focus-visible]{outline-color:var(--colorStrokeFocus2);}",".f1o2ludy[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusMedium);}",".f1kjnpwc[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusMedium);}",".fxmnebo[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusMedium);}",".f1witrsb[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusMedium);}",".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;}",".fd7fpy0{visibility:hidden;}"]}),r$=t=>{const e=t$(),r={table:JU(),flex:e$()};return t.root.className=A(Xh.root,e.root,t.noNativeElements?r.flex.root:r.table.root,t.subtle&&t.checked===!1&&e.subtle,t.hidden&&e.hidden,t.root.className),t.checkboxIndicator&&(t.checkboxIndicator.className=A(Xh.checkboxIndicator,t.checkboxIndicator.className)),t.radioIndicator&&(t.radioIndicator.className=A(Xh.radioIndicator,e.radioIndicator,t.radioIndicator.className)),t},o$="fui-TableRow",n$={root:o$},i$=q({root:{mc9l5x:"f1u0rzck"}},{d:[".f1u0rzck{display:table-row;}"]}),a$=q({root:{mc9l5x:"f22iagw",Bt984gj:"f122n59"}},{d:[".f22iagw{display:flex;}",".f122n59{align-items:center;}"]}),s$=q({root:{sj55zd:"f19n0e5",B7ck84d:"f1ewtqcl",Bconypa:"f1jazu75",B6guboy:"f1xeqee6",Bn4voq9:"fz36nt7",g9k6zt:"f9znhxp",Bfpq7zp:"fqrak0z",kdpuga:["f1o2ludy","f1kjnpwc"],Bw81rd7:["f1kjnpwc","f1o2ludy"],B6xbmo0:["fxmnebo","f1witrsb"],dm238s:["f1witrsb","fxmnebo"]},rootInteractive:{ecr2s2:"f1wfn5kd",lj723h:"f1g4hkjv",B43xm9u:"f15ngxrw",i921ia:"fjbbrdp",Jwef8y:"f1t94bn6",Bi91k9c:"feu1g3u",Bpt6rm4:"f1uorfem",ff6mpl:"fw60kww",ze5xyy:"f4xjyn1",pgvf35:"ff1wgvm",Bh7lczh:["fiob0tu","f1x4h75k"],dpv3f4:"f1j6scgf",Bpnjhaq:["f1x4h75k","fiob0tu"]},medium:{Bn0qgzm:"f1vxd6vx",oivjwe:"fg706s2",B9xav0g:"frpde29"},small:{Bn0qgzm:"f1vxd6vx",oivjwe:"fg706s2",B9xav0g:"frpde29"},"extra-small":{Be2twd7:"fy9rknc"},brand:{De3pzq:"f16xkysk",g2u3we:"f1bh3yvw",h3c5rm:["fmi79ni","f11fozsx"],B9xav0g:"fnzw4c6",zhjwy3:["f11fozsx","fmi79ni"],ecr2s2:"f7tkmfy",lj723h:"f1r2dosr",gwxt9v:"fqlf3fd",v3aym:["f9dpb3h","fw2muls"],Bc736ss:"f1yat0gj",Bk6ri7n:["fw2muls","f9dpb3h"],Bk5ld8o:"f7nae3y",c4eypz:["fkbere7","fa97sf3"],felo30:"fmtyzcc",Eshu5l:["fa97sf3","fkbere7"],Bjwas2f:"fb6zhgp",Bn1d65q:["fyowp6c","fz08sq8"],Bxeuatn:"f9dii88",n51gp8:["fz08sq8","fyowp6c"],Beo2b4z:["f1afxoft","flqq2yx"],h6lo6r:["flqq2yx","f1afxoft"],Btyw6ap:["f1b5xrmd","f1831rx6"],w1pwid:["f1831rx6","f1b5xrmd"],Brwvgy3:"fd94n53",yadkgm:"f1e0wld5"},neutral:{gwxt9v:"fqlf3fd",v3aym:["f9dpb3h","fw2muls"],Bc736ss:"f1yat0gj",Bk6ri7n:["fw2muls","f9dpb3h"],Bk5ld8o:"f7nae3y",c4eypz:["fkbere7","fa97sf3"],felo30:"fmtyzcc",Eshu5l:["fa97sf3","fkbere7"],Bjwas2f:"fb6zhgp",Bn1d65q:["fyowp6c","fz08sq8"],Bxeuatn:"f9dii88",n51gp8:["fz08sq8","fyowp6c"],Beo2b4z:["f1afxoft","flqq2yx"],h6lo6r:["flqq2yx","f1afxoft"],Btyw6ap:["f1b5xrmd","f1831rx6"],w1pwid:["f1831rx6","f1b5xrmd"],Brwvgy3:"fd94n53",yadkgm:"f1e0wld5",De3pzq:"fq5gl1p",sj55zd:"f1cgsbmv",Jwef8y:"f1uqaxdt",ecr2s2:"fa9o754",g2u3we:"frmsihh",h3c5rm:["frttxa5","f11o2r7f"],B9xav0g:"fem5et0",zhjwy3:["f11o2r7f","frttxa5"]},none:{}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".f1ewtqcl{box-sizing:border-box;}",".f1jazu75[data-fui-focus-within]:focus-within .fui-TableSelectionCell{opacity:1;}",".f1xeqee6[data-fui-focus-within]:focus-within .fui-TableCellActions{opacity:1;}",".fz36nt7[data-fui-focus-visible]{outline-width:2px;}",".f9znhxp[data-fui-focus-visible]{outline-style:solid;}",".fqrak0z[data-fui-focus-visible]{outline-color:var(--colorStrokeFocus2);}",".f1o2ludy[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusMedium);}",".f1kjnpwc[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusMedium);}",".fxmnebo[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusMedium);}",".f1witrsb[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusMedium);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fg706s2{border-bottom-style:solid;}",".frpde29{border-bottom-color:var(--colorNeutralStroke2);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".f16xkysk{background-color:var(--colorBrandBackground2);}",".f1bh3yvw{border-top-color:var(--colorTransparentStrokeInteractive);}",".fmi79ni{border-right-color:var(--colorTransparentStrokeInteractive);}",".f11fozsx{border-left-color:var(--colorTransparentStrokeInteractive);}",".fnzw4c6{border-bottom-color:var(--colorTransparentStrokeInteractive);}",".fq5gl1p{background-color:var(--colorSubtleBackgroundSelected);}",".f1cgsbmv{color:var(--colorNeutralForeground1Hover);}",".frmsihh{border-top-color:var(--colorNeutralStrokeOnBrand);}",".frttxa5{border-right-color:var(--colorNeutralStrokeOnBrand);}",".f11o2r7f{border-left-color:var(--colorNeutralStrokeOnBrand);}",".fem5et0{border-bottom-color:var(--colorNeutralStrokeOnBrand);}"],a:[".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}",".f1g4hkjv:active{color:var(--colorNeutralForeground1Pressed);}",".f15ngxrw:active .fui-TableCellActions{opacity:1;}",".fjbbrdp:active .fui-TableSelectionCell{opacity:1;}",".f7tkmfy:active{background-color:var(--colorBrandBackground2);}",".f1r2dosr:active{color:var(--colorNeutralForeground1);}",".fa9o754:active{background-color:var(--colorSubtleBackgroundSelected);}"],h:[".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".feu1g3u:hover{color:var(--colorNeutralForeground1Hover);}",".f1uorfem:hover .fui-TableCellActions{opacity:1;}",".fw60kww:hover .fui-TableSelectionCell{opacity:1;}",".f1uqaxdt:hover{background-color:var(--colorSubtleBackgroundSelected);}"],m:[["@media (forced-colors: active){.f4xjyn1:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.ff1wgvm:hover{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1x4h75k:hover{border-left-color:Highlight;}.fiob0tu:hover{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1j6scgf:hover{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fqlf3fd{border-top-width:2px;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9dpb3h{border-right-width:2px;}.fw2muls{border-left-width:2px;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1yat0gj{border-bottom-width:2px;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f7nae3y{border-top-style:solid;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fa97sf3{border-left-style:solid;}.fkbere7{border-right-style:solid;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fmtyzcc{border-bottom-style:solid;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fb6zhgp{border-top-color:transparent;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fyowp6c{border-right-color:transparent;}.fz08sq8{border-left-color:transparent;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9dii88{border-bottom-color:transparent;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1afxoft{border-bottom-right-radius:var(--borderRadiusMedium);}.flqq2yx{border-bottom-left-radius:var(--borderRadiusMedium);}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1831rx6{border-top-left-radius:var(--borderRadiusMedium);}.f1b5xrmd{border-top-right-radius:var(--borderRadiusMedium);}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fd94n53{box-sizing:border-box;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1e0wld5:focus-visible{outline-offset:-4px;}}",{m:"(forced-colors: active)"}]]}),l$=t=>{const e=s$(),r={table:i$(),flex:a$()};return t.root.className=A(n$.root,e.root,!t.isHeaderRow&&e.rootInteractive,e[t.size],t.noNativeElements?r.flex.root:r.table.root,e[t.appearance],t.root.className),t},c$=(t,e)=>{const{noNativeElements:r}=ri();var o;const n=((o=t.as)!==null&&o!==void 0?o:r)?"div":"tbody";return{components:{root:n},root:te(ve(n,{ref:e,role:n==="div"?"rowgroup":void 0,...t}),{elementType:n}),noNativeElements:r}},u$=q({root:{mc9l5x:"f1tp1avn"}},{d:[".f1tp1avn{display:table-row-group;}"]}),d$=q({root:{mc9l5x:"ftgm304"}},{d:[".ftgm304{display:block;}"]}),f$="fui-TableBody",h$=t=>{const e={table:u$(),flex:d$()};return t.root.className=A(f$,t.noNativeElements?e.flex.root:e.table.root,t.root.className),t},g$=(t,e)=>{var r;const o=((r=t.as)!==null&&r!==void 0?r:t.noNativeElements)?"div":"table";var n,i,a;return{components:{root:o},root:te(ve(o,{ref:e,role:o==="div"?"table":void 0,...t}),{elementType:o}),size:(n=t.size)!==null&&n!==void 0?n:"medium",noNativeElements:(i=t.noNativeElements)!==null&&i!==void 0?i:!1,sortable:(a=t.sortable)!==null&&a!==void 0?a:!1}},p$=(t,e)=>O(LU,{value:e.table,children:O(t.root,{})}),m$="fui-Table",v$=q({root:{mc9l5x:"f1w4nmp0",ha4doy:"fmrv4ls",a9b677:"fly5x3f",B73mfa3:"f14m3nip"}},{d:[".f1w4nmp0{display:table;}",".fmrv4ls{vertical-align:middle;}",".fly5x3f{width:100%;}",".f14m3nip{table-layout:fixed;}"]}),b$=q({root:{mc9l5x:"ftgm304"}},{d:[".ftgm304{display:block;}"]}),y$=q({root:{po53p8:"fgkb47j",De3pzq:"fhovq9v"}},{d:[".fgkb47j{border-collapse:collapse;}",".fhovq9v{background-color:var(--colorSubtleBackground);}"]}),w$=t=>{const e=y$(),r={table:v$(),flex:b$()};return t.root.className=A(m$,e.root,t.noNativeElements?r.flex.root:r.table.root,t.root.className),t};function k$(t){const{size:e,noNativeElements:r,sortable:o}=t;return{table:y.useMemo(()=>({noNativeElements:r,size:e,sortable:o}),[r,e,o])}}const S$=(t,e)=>{const{noNativeElements:r}=ri();var o;const n=((o=t.as)!==null&&o!==void 0?o:r)?"div":"thead";return{components:{root:n},root:te(ve(n,{ref:e,role:n==="div"?"rowgroup":void 0,...t}),{elementType:n}),noNativeElements:r}},_$=t=>O(YU,{value:"",children:O(t.root,{})}),x$="fui-TableHeader",C$=q({root:{mc9l5x:"ftgm304"}},{d:[".ftgm304{display:block;}"]}),T$=q({root:{mc9l5x:"f1tp1avn"}},{d:[".f1tp1avn{display:table-row-group;}"]}),E$=t=>{const e={table:T$(),flex:C$()};return t.root.className=A(x$,t.noNativeElements?e.flex.root:e.table.root,t.root.className),t},B$={ascending:y.createElement(ON,{fontSize:12}),descending:y.createElement(MN,{fontSize:12})},I$=(t,e)=>{const{noNativeElements:r,sortable:o}=ri(),{sortable:n=o}=t;var i;const a=((i=t.as)!==null&&i!==void 0?i:r)?"div":"th",s=te(t.button,{elementType:"div",defaultProps:{as:"div",...!n&&{role:"presentation",tabIndex:void 0}}});var l;return{components:{root:a,button:"div",sortIcon:"span",aside:"span"},root:te(ve(a,{ref:Re(e,fs()),role:a==="div"?"columnheader":void 0,"aria-sort":n?(l=t.sortDirection)!==null&&l!==void 0?l:"none":void 0,...t}),{elementType:a}),aside:me(t.aside,{elementType:"span"}),sortIcon:me(t.sortIcon,{renderByDefault:!!t.sortDirection,defaultProps:{children:t.sortDirection?B$[t.sortDirection]:void 0},elementType:"span"}),button:Ni(s.as,s),sortable:n,noNativeElements:r}},R$=t=>ke(t.root,{children:[ke(t.button,{children:[t.root.children,t.sortIcon&&O(t.sortIcon,{})]}),t.aside&&O(t.aside,{})]}),nu={root:"fui-TableHeaderCell",button:"fui-TableHeaderCell__button",sortIcon:"fui-TableHeaderCell__sortIcon",aside:"fui-TableHeaderCell__aside"},A$=q({root:{mc9l5x:"f15pt5es",ha4doy:"fmrv4ls"}},{d:[".f15pt5es{display:table-cell;}",".fmrv4ls{vertical-align:middle;}"]}),N$=q({root:{mc9l5x:"f22iagw",Bh6795r:"fqerorx",Bnnss6s:"f1neuvcm",xawz:"fkjuxzh",Bf4jedk:"f10tiqix"}},{d:[".f22iagw{display:flex;}",".fqerorx{flex-grow:1;}",".f1neuvcm{flex-shrink:1;}",".fkjuxzh{flex-basis:0px;}",".f10tiqix{min-width:0px;}"]}),P$=q({root:{Bhrd7zp:"figsok6",z8tnut:"f1nbblvp",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f1ov4xf1",uwmqm3:["f1f5gg8d","f1vdfbxk"],B3nxjsc:"fhix6mv",Bmvh20x:"fha7anx",robkg1:"f1fmzww4",pehzd3:["fs9qmxf","f187m4uq"],B8osjzx:["f187m4uq","fs9qmxf"],u7xebq:["f145mzao","f1uha7eq"],Blsv9te:["f1uha7eq","f145mzao"],qhf8xq:"f10pi13n"},rootInteractive:{Jwef8y:"f1t94bn6",ecr2s2:"f1wfn5kd"},resetButton:{B3rzk8w:"fq6nmtn",B7ck84d:"f1e4lqlz",De3pzq:"f1u2r49w",sj55zd:"f1ym3bx4",Bahqtrf:"f1mo0ibp",Be2twd7:"fjoy568",Bg96gwp:"fytdu2e",B68tc82:"f1mtd64y",Bmxbyg5:"f1y7q3j9",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1cnd47f","fhxju0i"],icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],oivjwe:"f1h8hb77",wvpqe5:["f1deefiw","f1n71otn"],fsow6f:"fgusgyc"},button:{qhf8xq:"f10pi13n",a9b677:"fly5x3f",mc9l5x:"f22iagw",Bh6795r:"fqerorx",Bqenvij:"f1l02sjl",Bt984gj:"f122n59",i8kkvl:"f1ufnopg",Belr9w4:"f14sijuj",sshi5w:"f1nxs5xn",Bnnss6s:"f1neuvcm",xawz:"fkjuxzh",oeaueh:"f1s6fcnf"},sortable:{Bceei9c:"f1k6fduh"},sortIcon:{mc9l5x:"f22iagw",Bt984gj:"f122n59",z8tnut:"fclwglc"},resizeHandle:{}},{d:[".figsok6{font-weight:var(--fontWeightRegular);}",".f1nbblvp{padding-top:0px;}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1ov4xf1{padding-bottom:0px;}",".fhix6mv[data-fui-focus-within]:focus-within{outline-width:2px;}",".fha7anx[data-fui-focus-within]:focus-within{outline-style:solid;}",".f1fmzww4[data-fui-focus-within]:focus-within{outline-color:var(--colorStrokeFocus2);}",".fs9qmxf[data-fui-focus-within]:focus-within{border-bottom-right-radius:var(--borderRadiusMedium);}",".f187m4uq[data-fui-focus-within]:focus-within{border-bottom-left-radius:var(--borderRadiusMedium);}",".f145mzao[data-fui-focus-within]:focus-within{border-top-right-radius:var(--borderRadiusMedium);}",".f1uha7eq[data-fui-focus-within]:focus-within{border-top-left-radius:var(--borderRadiusMedium);}",".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;}",".f1mtd64y{overflow-x:visible;}",".f1y7q3j9{overflow-y:visible;}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1h8hb77{border-bottom-style:none;}",".fgusgyc{text-align:unset;}",".fly5x3f{width:100%;}",".f22iagw{display:flex;}",".fqerorx{flex-grow:1;}",".f1l02sjl{height:100%;}",".f122n59{align-items:center;}",".f1ufnopg{column-gap:var(--spacingHorizontalXS);}",".f14sijuj{row-gap:var(--spacingHorizontalXS);}",".f1nxs5xn{min-height:32px;}",".f1neuvcm{flex-shrink:1;}",".fkjuxzh{flex-basis:0px;}",".f1s6fcnf{outline-style:none;}",".f1k6fduh{cursor:pointer;}",".fclwglc{padding-top:var(--spacingVerticalXXS);}"],h:[".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}"],a:[".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}"]}),z$=t=>{const e=P$(),r={table:A$(),flex:N$()};return t.root.className=A(nu.root,e.root,t.sortable&&e.rootInteractive,t.noNativeElements?r.flex.root:r.table.root,t.root.className),t.button.className=A(nu.button,e.resetButton,e.button,t.sortable&&e.sortable,t.button.className),t.sortIcon&&(t.sortIcon.className=A(nu.sortIcon,e.sortIcon,t.sortIcon.className)),t.aside&&(t.aside.className=A(nu.aside,e.resizeHandle,t.aside.className)),t},p5=y.createContext(void 0),M$="",m5=()=>{var t;return(t=y.useContext(p5))!==null&&t!==void 0?t:M$},O$=p5.Provider,v5=y.createContext(void 0),j$="",b5=()=>{var t;return(t=y.useContext(v5))!==null&&t!==void 0?t:j$},D$=v5.Provider,F$=(t,e)=>{const r=h5(t,e),{noNativeElements:o}=ri(),{type:n="checkbox",checked:i=!1,subtle:a=!1,hidden:s=!1}=t;return{...r,components:{...r.components,checkboxIndicator:Lp,radioIndicator:Up},checkboxIndicator:me(t.checkboxIndicator,{renderByDefault:n==="checkbox",defaultProps:{checked:t.checked},elementType:Lp}),radioIndicator:me(t.radioIndicator,{renderByDefault:n==="radio",defaultProps:{checked:!!i,input:{name:Rt("table-selection-radio")}},elementType:Up}),type:n,checked:i,noNativeElements:o,subtle:a,hidden:s}},q$=t=>ke(t.root,{children:[t.type==="checkbox"&&t.checkboxIndicator&&O(t.checkboxIndicator,{}),t.type==="radio"&&t.radioIndicator&&O(t.radioIndicator,{})]}),y5=fn(void 0),w5={...zU,subtleSelection:!1,selectableRows:!1,selectionAppearance:"brand",focusMode:"none",compositeRowTabsterAttribute:{}},L$=y5.Provider,at=t=>lt(y5,(e=w5)=>t(e)),H$=(t,e)=>{const{focusMode:r="cell"}=t,o=m5(),n=at(l=>(l.focusMode==="cell"||l.focusMode==="composite")&&r!=="none"),i=at(l=>l.resizableColumns),a=at(l=>l.columnSizing_unstable.getTableCellProps),s=lc({tabBehavior:"limited-trap-focus"});return h5({as:"div",role:"gridcell",...r==="group"&&s,tabIndex:n?0:void 0,...i?a(o):{},...t},e)},U$=t=>HU(t),$$={root:"fui-DataGridCell"},K$=t=>(GU(t),t.root.className=A($$.root,t.root.className),t),W$=y.forwardRef((t,e)=>{const r=H$(t,e);return K$(r),ue("useDataGridCellStyles_unstable")(r),U$(r)});W$.displayName="DataGridCell";const V$=(t,e)=>{const r=G1(),o=b5(),n=at(c=>c.subtleSelection),i=at(c=>r&&c.selection.selectionMode==="multiselect"?c.selection.allRowsSelected?!0:c.selection.someRowsSelected?"mixed":!1:c.selection.isRowSelected(o)),a=at(c=>c.selection.toggleAllRows),s=at(c=>c.selection.selectionMode==="multiselect"?"checkbox":"radio"),l=Q(c=>{var u;r&&a(c),(u=t.onClick)===null||u===void 0||u.call(t,c)});return F$({as:"div",role:"gridcell",checked:i,type:s,hidden:r&&s==="radio","aria-checked":r?i:void 0,"aria-selected":r||i==="mixed"?void 0:i,subtle:n,...t,onClick:l},e)},G$=t=>q$(t),Yh={root:"fui-DataGridSelectionCell",checkboxIndicator:"fui-DataGridSelectionCell__checkboxIndicator",radioIndicator:"fui-DataGridSelectionCell__radioIndicator"},X$=t=>(r$(t),t.root.className=A(Yh.root,t.root.className),t.checkboxIndicator&&(t.checkboxIndicator.className=A(Yh.checkboxIndicator,t.checkboxIndicator.className)),t.radioIndicator&&(t.radioIndicator.className=A(Yh.radioIndicator,t.radioIndicator.className)),t),Yp=y.forwardRef((t,e)=>{const r=V$(t,e);return X$(r),ue("useDataGridSelectionCellStyles_unstable")(r),G$(r)});Yp.displayName="DataGridSelectionCell";const Y$=(t,e)=>{const r=b5(),o=G1(),n=at(p=>p.columns),i=at(p=>p.selectableRows),a=at(p=>p.selection.isRowSelected(r)),s=at(p=>p.focusMode),l=at(p=>p.compositeRowTabsterAttribute),c=s==="row_unstable"||s==="composite",u=at(p=>!o&&i&&p.selection.isRowSelected(r)?p.selectionAppearance:"none"),d=at(p=>p.selection.toggleRow),f=Q(p=>{var w;i&&!o&&d(p,r),(w=t.onClick)===null||w===void 0||w.call(t,p)}),h=Q(p=>{var w;i&&!o&&p.key===Mr&&!yN(p.target)&&(p.preventDefault(),d(p,r)),(w=t.onKeyDown)===null||w===void 0||w.call(t,p)}),g=ZU({appearance:u,"aria-selected":i?a:void 0,tabIndex:c&&!o?0:void 0,...s==="composite"&&!o&&l,...t,onClick:f,onKeyDown:h,children:null,as:"div"},e);return{...g,components:{...g.components,selectionCell:Yp},selectionCell:me(t.selectionCell,{renderByDefault:i,elementType:Yp}),renderCell:t.children,columnDefs:n,dataGridContextValue:Z$()}};function Z$(){const t=y.useRef(w5);return at(e=>(t.current=e,null)),t.current}const Q$=t=>ke(t.root,{children:[t.selectionCell&&O(t.selectionCell,{}),t.columnDefs.map(e=>O(O$,{value:e.columnId,children:t.renderCell(e,t.dataGridContextValue)},e.columnId))]}),qw={root:"fui-DataGridRow",selectionCell:"fui-DataGridRow__selectionCell"},J$=t=>(l$(t),t.root.className=A(qw.root,t.root.className),t.selectionCell&&(t.selectionCell.className=A(qw.selectionCell,t.selectionCell.className)),t),eK=y.forwardRef((t,e)=>{const r=Y$(t,e);return J$(r),ue("useDataGridRowStyles_unstable")(r),Q$(r)});eK.displayName="DataGridRow";const tK=(t,e)=>{const{sortable:r}=ri(),o=at(s=>s.getRows),n=at(s=>s.sort.sort),i=r?n(o()):o();return{...c$({...t,children:null,as:"div"},e),rows:i,renderRow:t.children}},rK=t=>O(t.root,{children:t.rows.map(e=>O(D$,{value:e.rowId,children:t.renderRow(e)},e.rowId))}),oK={root:"fui-DataGridBody"},nK=t=>(h$(t),t.root.className=A(oK.root,t.root.className),t),iK=y.forwardRef((t,e)=>{const r=tK(t,e);return nK(r),ue("useDataGridBodyStyles_unstable")(r),rK(r)});iK.displayName="DataGridBody";const aK=(t,e)=>{const{items:r,columns:o,focusMode:n="cell",selectionMode:i,onSortChange:a,onSelectionChange:s,defaultSortState:l,sortState:c,selectedItems:u,defaultSelectedItems:d,subtleSelection:f=!1,selectionAppearance:h="brand",getRowId:g,resizableColumns:p,columnSizingOptions:w,onColumnResize:v,containerWidthOffset:m}=t,b=m??(i?-QU:0),k=Xa({axis:"grid"}),{onTableKeyDown:x,tableTabsterAttribute:_,tableRowTabsterAttribute:S}=FU(),C=MU({items:r,columns:o,getRowId:g},[hU({defaultSortState:l,sortState:c,onSortChange:a}),dU({defaultSelectedItems:d,selectedItems:u,onSelectionChange:s,selectionMode:i??"multiselect"}),AU({onColumnResize:v,columnSizingOptions:w,containerWidthOffset:b})]),E=y.useRef(null),{findFirstFocusable:I,findLastFocusable:H}=Ao(),T=Q(M=>{var P;if((P=t.onKeyDown)===null||P===void 0||P.call(t,M),n==="composite"&&x(M),!(!E.current||!M.ctrlKey||M.defaultPrevented)){if(M.key===Lv){const B=E.current.querySelector('[role="row"]');if(B){var j;(j=I(B))===null||j===void 0||j.focus()}}if(M.key===qv){const B=E.current.querySelectorAll('[role="row"]');if(B.length){var W;const D=B.item(B.length-1);(W=H(D))===null||W===void 0||W.focus()}}}});return{...g$({role:"grid",as:"div",noNativeElements:!0,...n==="cell"&&k,...n==="composite"&&_,...t,onKeyDown:T,...p?C.columnSizing_unstable.getTableProps(t):{}},Re(e,C.tableRef,E)),focusMode:n,tableState:C,selectableRows:!!i,subtleSelection:f,selectionAppearance:h,resizableColumns:p,compositeRowTabsterAttribute:S}},sK=(t,e)=>y.createElement(L$,{value:e.dataGrid},p$(t,e)),lK={root:"fui-DataGrid"},cK=t=>(w$(t),t.root.className=A(lK.root,t.root.className),t);function uK(t){const e=k$(t),{tableState:r,focusMode:o,selectableRows:n,subtleSelection:i,selectionAppearance:a,resizableColumns:s,compositeRowTabsterAttribute:l}=t;return{...e,dataGrid:{...r,focusMode:o,selectableRows:n,subtleSelection:i,selectionAppearance:a,resizableColumns:s,compositeRowTabsterAttribute:l}}}const dK=y.forwardRef((t,e)=>{const r=aK(t,e);return cK(r),ue("useDataGridStyles_unstable")(r),sK(r,uK(r))});dK.displayName="DataGrid";const fK=(t,e)=>S$({...t,as:"div"},e),hK=t=>_$(t),gK={root:"fui-DataGridHeader"},pK=t=>(E$(t),t.root.className=A(gK.root,t.root.className),t),mK=y.forwardRef((t,e)=>{const r=fK(t,e);return pK(r),ue("useDataGridHeaderStyles_unstable")(r),hK(r)});mK.displayName="DataGridHeader";function vK(t){return t.compare.length>0}const bK=(t,e)=>{const r=m5(),{sortable:o}=ri(),n=at(u=>u.sort.toggleColumnSort),i=at(u=>{const d=!!u.columns.find(f=>f.columnId===r&&vK(f));return o?d:!1}),a=at(u=>i?u.sort.getSortDirection(r):void 0),s=at(u=>u.resizableColumns),l=at(u=>u.columnSizing_unstable.getTableHeaderCellProps),c=Q(u=>{var d;i&&n(u,r),(d=t.onClick)===null||d===void 0||d.call(t,u)});return I$({sortable:i,sortDirection:a,as:"div",tabIndex:i?void 0:0,...s?l(r):{},...t,onClick:c},e)},yK=t=>R$(t),iu={root:"fui-DataGridHeaderCell",button:"fui-DataGridHeaderCell__button",sortIcon:"fui-DataGridHeaderCell__sortIcon",aside:"fui-DataGridHeaderCell__aside"},wK=t=>(z$(t),t.root.className=A(iu.root,t.root.className),t.button&&(t.button.className=A(iu.button,t.button.className)),t.sortIcon&&(t.sortIcon.className=A(iu.sortIcon,t.sortIcon.className)),t.aside&&(t.aside.className=A(iu.aside,t.aside.className)),t),kK=y.forwardRef((t,e)=>{const r=bK(t,e);return wK(r),ue("useDataGridHeaderCellStyles_unstable")(r),yK(r)});kK.displayName="DataGridHeaderCell";const SK=(t,{referenceLabel:e,referenceId:r},o)=>{const{checkbox:n={},onSelectionChange:i,floatingAction:a,onClick:s,onKeyDown:l}=t,{findAllFocusable:c}=Ao(),u=y.useRef(null),[d,f]=Tt({state:t.selected,defaultState:t.defaultSelected,initialState:!1}),h=[t.selected,t.defaultSelected,i].some(_=>typeof _<"u"),[g,p]=y.useState(!1),w=y.useCallback(_=>{if(!o.current)return!1;const S=c(o.current),C=_.target,E=S.some(H=>H.contains(C)),I=u?.current===C;return E&&!I},[o,c]),v=y.useCallback(_=>{if(w(_))return;const S=!d;f(S),i&&i(_,{selected:S})},[i,d,f,w]),m=y.useCallback(_=>{[Co].includes(_.key)&&(_.preventDefault(),v(_))},[v]),b=y.useMemo(()=>{if(!h||a)return;const _={};return r?_["aria-labelledby"]=r:e&&(_["aria-label"]=e),me(n,{defaultProps:{ref:u,type:"checkbox",checked:d,onChange:S=>v(S),onFocus:()=>p(!0),onBlur:()=>p(!1),..._},elementType:"input"})},[n,a,d,h,v,r,e]),k=y.useMemo(()=>{if(a)return me(a,{defaultProps:{ref:u},elementType:"div"})},[a]),x=y.useMemo(()=>h?{onClick:de(s,v),onKeyDown:de(l,m)}:null,[h,v,s,l,m]);return{selected:d,selectable:h,selectFocused:g,selectableCardProps:x,checkboxSlot:b,floatingActionSlot:k}},k5=y.createContext(void 0),Zp={selectableA11yProps:{referenceId:void 0,setReferenceId(){},referenceLabel:void 0,setReferenceLabel(){}}},_K=k5.Provider,xK=()=>{var t;return(t=y.useContext(k5))!==null&&t!==void 0?t:Zp},CK={off:void 0,"no-tab":"limited-trap-focus","tab-exit":"limited","tab-only":"unlimited"},TK=({focusMode:t="off",...e})=>{const r=["onClick","onDoubleClick","onMouseUp","onMouseDown","onPointerUp","onPointerDown","onTouchStart","onTouchEnd","onDragStart","onDragEnd"].some(i=>e[i]),n={...lc({tabBehavior:CK[r?"no-tab":t]}),tabIndex:0};return{interactive:r,focusAttributes:!r&&t==="off"?null:n}},EK=(t,e)=>{const{appearance:r="filled",orientation:o="vertical",size:n="medium"}=t,[i,a]=y.useState(Zp.selectableA11yProps.referenceId),[s,l]=y.useState(Zp.selectableA11yProps.referenceId),c=fs(),{selectable:u,selected:d,selectableCardProps:f,selectFocused:h,checkboxSlot:g,floatingActionSlot:p}=SK(t,{referenceId:i,referenceLabel:s},c),w=Re(c,e),{interactive:v,focusAttributes:m}=TK(t);return{appearance:r,orientation:o,size:n,interactive:v,selectable:u,selectFocused:h,selected:d,selectableA11yProps:{setReferenceId:a,referenceId:i,referenceLabel:s,setReferenceLabel:l},components:{root:"div",floatingAction:"div",checkbox:"input"},root:te(ve("div",{ref:w,role:"group",...u?null:m,...t,...f}),{elementType:"div"}),floatingAction:p,checkbox:g}},BK=(t,e)=>O(t.root,{children:ke(_K,{value:e,children:[t.checkbox?O(t.checkbox,{}):null,t.floatingAction?O(t.floatingAction,{}):null,t.root.children]})}),Qp={root:"fui-CardPreview",logo:"fui-CardPreview__logo"},IK=q({root:{qhf8xq:"f10pi13n",pnb5jt:"f1rzl30s",Elg2ur:"f1chxnfo",B184ckt:"f17xb19f"},logo:{qhf8xq:"f1euv43f",B5kzvoi:"f1gcvs1y",oyh7mz:["f1t6tvco","ffrfxm3"],a9b677:"f1szoe96",Bqenvij:"f1d2rq10"}},{d:[".f10pi13n{position:relative;}",".f1rzl30s>:not(.fui-CardPreview__logo){display:block;}",".f1chxnfo>:not(.fui-CardPreview__logo){height:100%;}",".f17xb19f>:not(.fui-CardPreview__logo){width:100%;}",".f1euv43f{position:absolute;}",".f1gcvs1y{bottom:12px;}",".f1t6tvco{left:12px;}",".ffrfxm3{right:12px;}",".f1szoe96{width:32px;}",".f1d2rq10{height:32px;}"]}),RK=t=>{const e=IK();return t.root.className=A(Qp.root,e.root,t.root.className),t.logo&&(t.logo.className=A(Qp.logo,e.logo,t.logo.className)),t},Lw={root:"fui-CardFooter",action:"fui-CardFooter__action"},AK=q({root:{mc9l5x:"f22iagw",Beiy3e4:"f1063pyq",i8kkvl:"f4akndk",Belr9w4:"fe5j3v"},action:{Frg6f3:["fcgxt0o","f1ujusj6"]}},{d:[".f22iagw{display:flex;}",".f1063pyq{flex-direction:row;}",".f4akndk{column-gap:12px;}",".fe5j3v{row-gap:12px;}",".fcgxt0o{margin-left:auto;}",".f1ujusj6{margin-right:auto;}"]}),NK=t=>{const e=AK();return t.root.className=A(Lw.root,e.root,t.root.className),t.action&&(t.action.className=A(Lw.action,e.action,t.action.className)),t},Zh={root:"fui-Card",floatingAction:"fui-Card__floatingAction",checkbox:"fui-Card__checkbox"},PK=q({root:{B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",Bbmb7ep:["fifeqxg","f899z7z"],Beyfa6y:["f899z7z","fifeqxg"],B7oj6ja:["f4h3tyx","f18ur2pz"],Btl43ni:["f18ur2pz","f4h3tyx"],z8tnut:"f1lplnzb",z189sj:["f10m5gbb","f1k04kkk"],Byoj8tv:"fhftqfp",uwmqm3:["f1k04kkk","f10m5gbb"],i8kkvl:"fxsr4vj",Belr9w4:"fcvsdzp",mc9l5x:"f22iagw",qhf8xq:"f10pi13n",B7ck84d:"f1ewtqcl",sj55zd:"f19n0e5",E3zdtr:"f1mdlcz9",bn5sak:"frwkxtg",Eqx8gd:["f1n6gb5g","f15yvnhg"],B1piin3:["f15yvnhg","f1n6gb5g"],By385i5:"fo72kxq",Bsft5z2:"f13zj6fq",B80jsxd:"f1nwj1ja",Bm2nyyq:"f8rth92",Barhvk9:["flthirb","ftkbnf5"],Bw17bha:"f1lh990p",vfts7:["ftkbnf5","flthirb"],xrcqlc:"f6czdpx",Ihftqj:["f13hvwk3","f1en4csx"],Bcgy8vk:"f1i1u9k0",Bhxzhr1:["f1en4csx","f13hvwk3"],B3778ie:["f1qnomq5","f2fl922"],d9w3h3:["f2fl922","f1qnomq5"],Bl18szs:["f1anhtl","f1n2zcl3"],B4j8arr:["f1n2zcl3","f1anhtl"],B2jhnfs:"f16v3d5c"},focused:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bb7d1vk:"f226i61",zhwhgb:["f13kzufm","fsx75g8"],dhy2o1:"flujwa2",Gfyso:["fsx75g8","f13kzufm"],Bm4h7ae:"f15bsgw9",B7ys5i9:"f14e48fq",Busjfv9:"f18yb2kv",Bhk32uz:"fd6o370",Bf4ptjt:"fh1cnn4",kclons:["fy7oxxb","f184ne2d"],Bhdgwq3:"fpukqih",Blkhhs4:["f184ne2d","fy7oxxb"],Bqtpl0w:"f99gebs",clg4pj:["f13b0oaq","f8t2bz6"],hgwjuy:"f1jvq617",Bonggc9:["f8t2bz6","f13b0oaq"],B1tsrr9:["f11unbnk","fbd201q"],Dah5zi:["fbd201q","f11unbnk"],Bkh64rk:["f12nqxso","f1uguk4w"],qqdqy8:["f1uguk4w","f12nqxso"],B6dhp37:"f1dvezut",i03rao:["fd0oaoj","f1cwg4i8"],Boxcth7:"fjvm52t",Bsom6fd:["f1cwg4i8","fd0oaoj"],J0r882:"f15fr7a0",Bule8hv:["fwsq40z","fy0y4wt"],Bjwuhne:"f34ld9f",Ghsupd:["fy0y4wt","fwsq40z"]},selectableFocused:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",Bssx7fj:"f1b1k54r",uh7if5:["f4ne723","fqqcjud"],clntm0:"fh7aioi",Dlk2r6:["fqqcjud","f4ne723"],Bm3wd5j:"f1k55ka9",Bbrhkcr:["fgclinu","f16pcs8n"],f1oku:"fycbxed",aywvf2:["f16pcs8n","fgclinu"],B2j2mmj:"ffht0p2",wigs8:"f1p0ul1q",pbfy6t:"f1c901ms",B0v4ure:"f1alokd7",ghq09:"f78i1la",B24cy0v:["f1kvsw7t","f1bw8brt"],Bwckmig:"f8k7e5g",Bvwlmkc:["f1bw8brt","f1kvsw7t"],Bbgo44z:"f125hn41",Bil7v7r:["fgxkx34","f1v56tyl"],skfxo0:"fdxas6f",jo1ztg:["f1v56tyl","fgxkx34"],Ba3ybja:["fxwickw","f1ia5cve"],az1dzo:["f1ia5cve","fxwickw"],vppk2z:["f194aguw","fqicc6c"],B6352mv:["fqicc6c","f194aguw"],nr063g:"fq4eyks",Blmvk6g:["f1ya6x16","ftuszwa"],Bsiemmq:"f1e2iu44",B98u21t:["ftuszwa","f1ya6x16"],B2pnrqr:"f1amxum7",B29w5g4:["f1cec8w7","f554mv0"],Bhhzhcn:"f1sj6kbr",Bec0n69:["f554mv0","f1cec8w7"]},orientationHorizontal:{Beiy3e4:"f1063pyq",Bt984gj:"f122n59",Bnoktp0:"fpfyeui",Idhjb2:"fwi74qw",ihgzqh:["ffcmwrh","f6ppoih"],Bgp6ld0:["f1dc9p14","fd933vt"],Bbucpmy:"f18esqgw"},orientationVertical:{Beiy3e4:"f1vx9l62",Bt4kzjz:["fobhde4","fx5r7kn"],B1ou843:["fx5r7kn","fobhde4"],y1433z:"f19chtn8",B7egwnw:"fuvs6re",B49b4xf:"fy4glsf"},sizeSmall:{B7balbw:"f1pi9uxy",B1h88n7:"f1h1zgly"},sizeMedium:{B7balbw:"frsmuga",B1h88n7:"fuldkky"},sizeLarge:{B7balbw:"f1qua4xo",B1h88n7:"fimkt6v"},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"],Jwef8y:"f1knas48",Bvxd0ez:"f1m145df",ecr2s2:"fb40n2d"},filledInteractiveSelected:{De3pzq:"f1nfm20t",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],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"],Jwef8y:"f1uvynv3",Bvxd0ez:"f1m145df",ecr2s2:"f1yhgkbh"},filledAlternativeInteractiveSelected:{De3pzq:"fjxa0vh",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],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"],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"],Jwef8y:"fg59vm4"},subtle:{De3pzq:"fhovq9v",E5pizo:"f1couhl3",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"]},subtleInteractive:{Bceei9c:"f1k6fduh",De3pzq:"fhovq9v",E5pizo:"f1couhl3",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"],Jwef8y:"f1t94bn6",ecr2s2:"f1wfn5kd"},subtleInteractiveSelected:{De3pzq:"fq5gl1p",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Jwef8y:"f1uqaxdt"},highContrastSelected:{ycbfsm:"fkc42ay",Bsw6fvg:"f1rirnrt",Bbusuzp:"f1lkg8j3",xgfqdd:"f1nkj0oa",Bmmdzwq:"fey3rwa",zkpvhj:["f5jhx11","fff9uym"],B20bydw:"fm7n0jy",Bwwwggl:["fff9uym","f5jhx11"]},highContrastInteractive:{h1vhog:"fpfvv3l",kslmdy:"f1oamsm6",Baaf6ca:"f1il21bs",x9zz3d:"fnn5dk0",Bmmdzwq:"fey3rwa",zkpvhj:["f5jhx11","fff9uym"],B20bydw:"fm7n0jy",Bwwwggl:["fff9uym","f5jhx11"]},select:{qhf8xq:"f1euv43f",Bhzewxz:"fqclxi7",j35jbq:["fiv86kb","f36uhnt"],Bj3rh1h:"f19g0ac"},hiddenCheckbox:{B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",a9b677:"frkrog8",Bqenvij:"f1mpe4l3",qhf8xq:"f1euv43f",Bh84pgu:"fmf1zke",Bgl5zvf:"f1wch0ki",Huce71:"fz5stix"}},{d:[".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".fifeqxg{border-bottom-right-radius:var(--fui-Card--border-radius);}",".f899z7z{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f4h3tyx{border-top-right-radius:var(--fui-Card--border-radius);}",".f18ur2pz{border-top-left-radius:var(--fui-Card--border-radius);}",".f1lplnzb{padding-top:var(--fui-Card--size);}",".f10m5gbb{padding-right:var(--fui-Card--size);}",".f1k04kkk{padding-left:var(--fui-Card--size);}",".fhftqfp{padding-bottom:var(--fui-Card--size);}",".fxsr4vj{column-gap:var(--fui-Card--size);}",".fcvsdzp{row-gap:var(--fui-Card--size);}",".f22iagw{display:flex;}",".f10pi13n{position:relative;}",".f1ewtqcl{box-sizing:border-box;}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1mdlcz9::after{position:absolute;}",".frwkxtg::after{top:0;}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".fo72kxq::after{bottom:0;}",'.f13zj6fq::after{content:"";}',".f1nwj1ja::after{pointer-events:none;}",".f8rth92::after{border-top-style:solid;}",".flthirb::after{border-right-style:solid;}",".ftkbnf5::after{border-left-style:solid;}",".f1lh990p::after{border-bottom-style:solid;}",".f6czdpx::after{border-top-width:var(--strokeWidthThin);}",".f13hvwk3::after{border-right-width:var(--strokeWidthThin);}",".f1en4csx::after{border-left-width:var(--strokeWidthThin);}",".f1i1u9k0::after{border-bottom-width:var(--strokeWidthThin);}",".f1qnomq5::after{border-bottom-right-radius:var(--fui-Card--border-radius);}",".f2fl922::after{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f1anhtl::after{border-top-right-radius:var(--fui-Card--border-radius);}",".f1n2zcl3::after{border-top-left-radius:var(--fui-Card--border-radius);}",".f16v3d5c>.fui-CardHeader,.f16v3d5c>.fui-CardFooter{flex-shrink:0;}",".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;}",".fh1cnn4[data-fui-focus-visible]::after{border-top-style:solid;}",".fy7oxxb[data-fui-focus-visible]::after{border-right-style:solid;}",".f184ne2d[data-fui-focus-visible]::after{border-left-style:solid;}",".fpukqih[data-fui-focus-visible]::after{border-bottom-style:solid;}",".f99gebs[data-fui-focus-visible]::after{border-top-width:var(--strokeWidthThick);}",".f13b0oaq[data-fui-focus-visible]::after{border-right-width:var(--strokeWidthThick);}",".f8t2bz6[data-fui-focus-visible]::after{border-left-width:var(--strokeWidthThick);}",".f1jvq617[data-fui-focus-visible]::after{border-bottom-width:var(--strokeWidthThick);}",".f11unbnk[data-fui-focus-visible]::after{border-bottom-right-radius:var(--fui-Card--border-radius);}",".fbd201q[data-fui-focus-visible]::after{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f12nqxso[data-fui-focus-visible]::after{border-top-right-radius:var(--fui-Card--border-radius);}",".f1uguk4w[data-fui-focus-visible]::after{border-top-left-radius:var(--fui-Card--border-radius);}",".f1dvezut[data-fui-focus-visible]::after{border-top-color:var(--colorStrokeFocus2);}",".fd0oaoj[data-fui-focus-visible]::after{border-right-color:var(--colorStrokeFocus2);}",".f1cwg4i8[data-fui-focus-visible]::after{border-left-color:var(--colorStrokeFocus2);}",".fjvm52t[data-fui-focus-visible]::after{border-bottom-color:var(--colorStrokeFocus2);}",".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;}",".f78i1la[data-fui-focus-within]:focus-within::after{border-top-style:solid;}",".f1kvsw7t[data-fui-focus-within]:focus-within::after{border-right-style:solid;}",".f1bw8brt[data-fui-focus-within]:focus-within::after{border-left-style:solid;}",".f8k7e5g[data-fui-focus-within]:focus-within::after{border-bottom-style:solid;}",".f125hn41[data-fui-focus-within]:focus-within::after{border-top-width:var(--strokeWidthThick);}",".fgxkx34[data-fui-focus-within]:focus-within::after{border-right-width:var(--strokeWidthThick);}",".f1v56tyl[data-fui-focus-within]:focus-within::after{border-left-width:var(--strokeWidthThick);}",".fdxas6f[data-fui-focus-within]:focus-within::after{border-bottom-width:var(--strokeWidthThick);}",".fxwickw[data-fui-focus-within]:focus-within::after{border-bottom-right-radius:var(--fui-Card--border-radius);}",".f1ia5cve[data-fui-focus-within]:focus-within::after{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f194aguw[data-fui-focus-within]:focus-within::after{border-top-right-radius:var(--fui-Card--border-radius);}",".fqicc6c[data-fui-focus-within]:focus-within::after{border-top-left-radius:var(--fui-Card--border-radius);}",".fq4eyks[data-fui-focus-within]:focus-within::after{border-top-color:var(--colorStrokeFocus2);}",".f1ya6x16[data-fui-focus-within]:focus-within::after{border-right-color:var(--colorStrokeFocus2);}",".ftuszwa[data-fui-focus-within]:focus-within::after{border-left-color:var(--colorStrokeFocus2);}",".f1e2iu44[data-fui-focus-within]:focus-within::after{border-bottom-color:var(--colorStrokeFocus2);}",".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;}",".fpfyeui>.fui-CardPreview{margin-top:calc(var(--fui-Card--size) * -1);}",".fwi74qw>.fui-CardPreview{margin-bottom:calc(var(--fui-Card--size) * -1);}",'.ffcmwrh>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-left:calc(var(--fui-Card--size) * -1);}','.f6ppoih>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-right:calc(var(--fui-Card--size) * -1);}','.f1dc9p14>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-right:calc(var(--fui-Card--size) * -1);}','.fd933vt>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-left:calc(var(--fui-Card--size) * -1);}',".f18esqgw>.fui-CardHeader:last-of-type,.f18esqgw>.fui-CardFooter:last-of-type{flex-grow:1;}",".f1vx9l62{flex-direction:column;}",".fobhde4>.fui-CardPreview{margin-left:calc(var(--fui-Card--size) * -1);}",".fx5r7kn>.fui-CardPreview{margin-right:calc(var(--fui-Card--size) * -1);}",'.f19chtn8>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-top:calc(var(--fui-Card--size) * -1);}',".fuvs6re>.fui-Card__floatingAction+.fui-CardPreview{margin-top:calc(var(--fui-Card--size) * -1);}",'.fy4glsf>: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);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1whvlc6{box-shadow:var(--shadow4);}",".f16gxe2i::after{border-top-color:var(--colorTransparentStroke);}",".fpgykix::after{border-right-color:var(--colorTransparentStroke);}",".fzybk4o::after{border-left-color:var(--colorTransparentStroke);}",".f1osi826::after{border-bottom-color:var(--colorTransparentStroke);}",".f1k6fduh{cursor:pointer;}",".f1nfm20t{background-color:var(--colorNeutralBackground1Selected);}",".f16eln5f::after{border-top-color:var(--colorNeutralStroke1Selected);}",".fa2okxs::after{border-right-color:var(--colorNeutralStroke1Selected);}",".fg4zq3l::after{border-left-color:var(--colorNeutralStroke1Selected);}",".ff6932p::after{border-bottom-color:var(--colorNeutralStroke1Selected);}",".f1dmdbja{background-color:var(--colorNeutralBackground2);}",".fjxa0vh{background-color:var(--colorNeutralBackground2Selected);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1couhl3{box-shadow:none;}",".ft83z1f::after{border-top-color:var(--colorNeutralStroke1);}",".f1g4150c::after{border-right-color:var(--colorNeutralStroke1);}",".f192dr6e::after{border-left-color:var(--colorNeutralStroke1);}",".f1qnawh6::after{border-bottom-color:var(--colorNeutralStroke1);}",".f1q9pm1r{background-color:var(--colorTransparentBackgroundSelected);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fq5gl1p{background-color:var(--colorSubtleBackgroundSelected);}",".f1euv43f{position:absolute;}",".fqclxi7{top:4px;}",".fiv86kb{right:4px;}",".f36uhnt{left:4px;}",".f19g0ac{z-index:1;}",".frkrog8{width:1px;}",".f1mpe4l3{height:1px;}",".fmf1zke{clip:rect(0 0 0 0);}",".f1wch0ki{clip-path:inset(50%);}",".fz5stix{white-space:nowrap;}"],f:[".ftqa4ok:focus{outline-style:none;}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"],m:[["@media (forced-colors: active){.f226i61[data-fui-focus-visible]::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f13kzufm[data-fui-focus-visible]::after{border-right-color:Highlight;}.fsx75g8[data-fui-focus-visible]::after{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.flujwa2[data-fui-focus-visible]::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1k55ka9[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16pcs8n[data-fui-focus-within]:focus-within::after{border-left-color:Highlight;}.fgclinu[data-fui-focus-within]:focus-within::after{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fycbxed[data-fui-focus-within]:focus-within::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1nkj0oa .fui-CardPreview,.f1nkj0oa .fui-CardFooter{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fey3rwa::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f5jhx11::after{border-right-color:Highlight;}.fff9uym::after{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fm7n0jy::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fpfvv3l:hover,.fpfvv3l :active{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1oamsm6:hover,.f1oamsm6 :active{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1il21bs:hover,.f1il21bs :active{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnn5dk0:hover .fui-CardPreview,.fnn5dk0 :active .fui-CardPreview,.fnn5dk0:hover .fui-CardFooter,.fnn5dk0 :active .fui-CardFooter{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}]],h:[".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}",".f1m145df:hover{box-shadow:var(--shadow8);}",".f1kz6goq:hover{background-color:var(--colorNeutralBackground1Selected);}",".f1uvynv3:hover{background-color:var(--colorNeutralBackground2Hover);}",".fehi0vp:hover{background-color:var(--colorNeutralBackground2Selected);}",".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".f1llr77y:hover::after{border-top-color:var(--colorNeutralStroke1Hover);}",".fzk0khw:hover::after{border-right-color:var(--colorNeutralStroke1Hover);}",".fjj8tog:hover::after{border-left-color:var(--colorNeutralStroke1Hover);}",".fb1u8ub:hover::after{border-bottom-color:var(--colorNeutralStroke1Hover);}",".fg59vm4:hover{background-color:var(--colorTransparentBackgroundSelected);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".f1uqaxdt:hover{background-color:var(--colorSubtleBackgroundSelected);}"],a:[".fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}",".f1yhgkbh:active{background-color:var(--colorNeutralBackground2Pressed);}",".fophhak:active{background-color:var(--colorTransparentBackgroundPressed);}",".f1uohb70:active::after{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1jm7v1n:active::after{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1bus3rq:active::after{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1fbu7rr:active::after{border-bottom-color:var(--colorNeutralStroke1Pressed);}",".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}"]}),zK=t=>{const e=PK(),r={horizontal:e.orientationHorizontal,vertical:e.orientationVertical},o={small:e.sizeSmall,medium:e.sizeMedium,large:e.sizeLarge},n={filled:e.filled,"filled-alternative":e.filledAlternative,outline:e.outline,subtle:e.subtle},i={filled:e.filledInteractiveSelected,"filled-alternative":e.filledAlternativeInteractiveSelected,outline:e.outlineInteractiveSelected,subtle:e.subtleInteractiveSelected},a={filled:e.filledInteractive,"filled-alternative":e.filledAlternativeInteractive,outline:e.outlineInteractive,subtle:e.subtleInteractive},s=t.interactive||t.selectable,l=y.useMemo(()=>t.selectable?t.selectFocused?e.selectableFocused:"":e.focused,[t.selectFocused,t.selectable,e.focused,e.selectableFocused]);return t.root.className=A(Zh.root,e.root,r[t.orientation],o[t.size],n[t.appearance],s&&a[t.appearance],t.selected&&i[t.appearance],l,s&&e.highContrastInteractive,t.selected&&e.highContrastSelected,t.root.className),t.floatingAction&&(t.floatingAction.className=A(Zh.floatingAction,e.select,t.floatingAction.className)),t.checkbox&&(t.checkbox.className=A(Zh.checkbox,e.hiddenCheckbox,t.checkbox.className)),t};function MK({selectableA11yProps:t}){return{selectableA11yProps:t}}const OK=y.forwardRef((t,e)=>{const r=EK(t,e),o=MK(r);return zK(r),BK(r,o)});OK.displayName="Card";const jK=(t,e)=>{const{action:r}=t;return{components:{root:"div",action:"div"},root:te(ve("div",{ref:e,...t}),{elementType:"div"}),action:me(r,{elementType:"div"})}},DK=t=>ke(t.root,{children:[t.root.children,t.action&&O(t.action,{})]}),FK=y.forwardRef((t,e)=>{const r=jK(t,e);return NK(r),DK(r)});FK.displayName="CardFooter";const qK=(t,e)=>{const{logo:r}=t,{selectableA11yProps:{referenceLabel:o,referenceId:n,setReferenceLabel:i,setReferenceId:a}}=xK(),s=Re(e,y.useRef(null));return y.useEffect(()=>{if(!(o&&n)&&s.current&&s.current.parentNode){const l=s.current.parentNode.querySelector(`.${Qp.root} > img`);if(l){const c=l.getAttribute("aria-label"),u=l.getAttribute("aria-describedby");u?a(u):l.alt?i(l.alt):c&&i(c)}}},[i,o,s,n,a]),{components:{root:"div",logo:"div"},root:te(ve("div",{ref:s,...t}),{elementType:"div"}),logo:me(r,{elementType:"div"})}},LK=t=>ke(t.root,{children:[t.root.children,t.logo&&O(t.logo,{})]}),HK=y.forwardRef((t,e)=>{const r=qK(t,e);return RK(r),LK(r)});HK.displayName="CardPreview";const Pr={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"},zr={bottom:"bottom",bottomEnd:"bottom-end",bottomStart:"bottom-start",top:"top",topEnd:"top-end",topStart:"top-start"};let UK=0;function $K(t,e={},r){var o;const n={...e,content:t,toastId:(o=e.toastId)!==null&&o!==void 0?o:(UK++).toString()},i=new CustomEvent(Pr.show,{bubbles:!1,cancelable:!1,detail:n});r.dispatchEvent(i)}function KK(t,e=void 0,r){const o=new CustomEvent(Pr.dismiss,{bubbles:!1,cancelable:!1,detail:{toastId:t,toasterId:e}});r.dispatchEvent(o)}function WK(t=void 0,e){const r=new CustomEvent(Pr.dismissAll,{bubbles:!1,cancelable:!1,detail:{toasterId:t}});e.dispatchEvent(r)}function VK(t,e){const r=new CustomEvent(Pr.update,{bubbles:!1,cancelable:!1,detail:t});e.dispatchEvent(r)}function GK(t,e=void 0,r){const o=new CustomEvent(Pr.pause,{bubbles:!1,cancelable:!1,detail:{toastId:t,toasterId:e}});r.dispatchEvent(o)}function XK(t,e=void 0,r){const o=new CustomEvent(Pr.play,{bubbles:!1,cancelable:!1,detail:{toastId:t,toasterId:e}});r.dispatchEvent(o)}function Hw(t,e){for(const[r,o]of Object.entries(e))o!=null&&(t[r]=o)}const YK={onStatusChange:void 0,priority:0,pauseOnHover:!1,pauseOnWindowBlur:!1,position:"bottom-end",timeout:3e3};let ZK=0;function QK(t){const{limit:e=Number.POSITIVE_INFINITY}=t,r=new Set,o=new Map,n=kx((u,d)=>{const f=o.get(u),h=o.get(d);return!f||!h?0:f.priority===h.priority?f.order-h.order:f.priority-h.priority});return{buildToast:(u,d)=>{var f;const{toastId:h,content:g,toasterId:p}=u;if(o.has(h))return;const m={...YK,close:()=>{var b;const k=o.get(h);k&&(r.delete(h),d(),(b=k.onStatusChange)===null||b===void 0||b.call(k,null,{status:"dismissed",...k}))},remove:()=>{if(o.get(h)){if(o.delete(h),r.size=e?n.enqueue(h):r.add(h)},dismissAllToasts:()=>{r.clear(),n.clear()},dismissToast:u=>{r.delete(u)},isToastVisible:u=>r.has(u),updateToast:u=>{const{toastId:d}=u,f=o.get(d);f&&(Object.assign(f,u),f.updateId++)},visibleToasts:r,toasts:o}}const ta=(t,e,r)=>{const o={};var n;const i=r?JK(r)?r:(n=r[t])!==null&&n!==void 0?n:{}:{},a=t==="top"||t==="bottom",{horizontal:s=a?0:20,vertical:l=16}=i,c=e==="ltr"?"left":"right",u=e==="ltr"?"right":"left";switch(t){case"top":Object.assign(o,{top:l,left:`calc(50% + ${s}px)`,transform:"translateX(-50%)"});break;case"bottom":Object.assign(o,{bottom:l,left:`calc(50% + ${s}px)`,transform:"translateX(-50%)"});break;case"top-start":Object.assign(o,{top:l,[c]:s});break;case"top-end":Object.assign(o,{top:l,[u]:s});break;case"bottom-start":Object.assign(o,{bottom:l,[c]:s});break;case"bottom-end":Object.assign(o,{bottom:l,[u]:s});break}return o};function JK(t){return"horizontal"in t||"vertical"in t}function eW(t={}){const e=tN(),{toasterId:r,shortcuts:o}=t,[n]=y.useState(()=>QK(t)),{targetDocument:i}=Pe(),a=y.useRef(null),s=Q(p=>p===r),l=Q(p=>{if(o?.focus)return o.focus(p)}),c=y.useCallback(()=>{n.visibleToasts.forEach(p=>{var w;const v=n.toasts.get(p);v==null||(w=v.imperativeRef.current)===null||w===void 0||w.pause()})},[n]),u=y.useCallback(()=>{n.visibleToasts.forEach(p=>{var w;const v=n.toasts.get(p);v==null||(w=v.imperativeRef.current)===null||w===void 0||w.play()})},[n]),d=y.useCallback(()=>Array.from(n.visibleToasts).reduce((p,w)=>{const v=n.toasts.get(w);return v&&(!p||p.order{const p=d();if(p?.imperativeRef.current)p.imperativeRef.current.focus();else{var w;(w=a.current)===null||w===void 0||w.focus(),a.current=null}},[d]),h=y.useCallback(()=>{n.visibleToasts.forEach(p=>{const w=n.toasts.get(p);w?.close()}),f()},[n,f]);y.useEffect(()=>{if(!i)return;const p=(R,M)=>{const P=j=>{s(j.detail.toasterId)&&(M(j),e())};return i.addEventListener(R,P),()=>i.removeEventListener(R,P)},w=R=>{n.buildToast(R.detail,e)},v=R=>{n.dismissToast(R.detail.toastId)},m=R=>{n.updateToast(R.detail)},b=R=>{n.dismissAllToasts()},k=R=>{const M=n.toasts.get(R.detail.toastId);if(M){var P;(P=M.imperativeRef.current)===null||P===void 0||P.pause()}},x=R=>{const M=n.toasts.get(R.detail.toastId);if(M){var P;(P=M.imperativeRef.current)===null||P===void 0||P.play()}},_=p(Pr.show,w),S=p(Pr.update,m),C=p(Pr.dismiss,v),E=p(Pr.dismissAll,b),I=p(Pr.pause,k),H=p(Pr.play,x),T=R=>{if(l(R)){c();const P=d();if(P){var M;a.current=Ve(i.activeElement)?i.activeElement:null,(M=P.imperativeRef.current)===null||M===void 0||M.focus()}}};return i.addEventListener("keydown",T),()=>{_(),E(),S(),C(),I(),H(),i.removeEventListener("keydown",T)}},[n,e,i,s,c,d,l]);const g=(()=>{if(!n)return new Map;const p=new Map;return Array.from(n.toasts.values()).forEach(v=>{const{position:m}=v;p.has(m)||p.set(m,[]),m.startsWith("bottom")?p.get(m).push(v):p.get(m).unshift(v)}),p})();return{isToastVisible:n.isToastVisible,toastsToRender:g,pauseAllToasts:c,playAllToasts:u,tryRestoreFocus:f,closeAllToasts:h}}const ra=()=>{};function ree(t){const{targetDocument:e}=Pe();return y.useMemo(()=>e?{dispatchToast:(r,o)=>{$K(r,{...o,toasterId:t,data:{root:o?.root}},e)},dismissToast:r=>{KK(r,t,e)},dismissAllToasts:()=>{WK(t,e)},updateToast:r=>{VK({...r,data:{root:r.root},toasterId:t},e)},pauseToast:r=>{GK(r,t,e)},playToast:r=>{XK(r,t,e)}}:{dispatchToast:ra,dismissToast:ra,dismissAllToasts:ra,updateToast:ra,pauseToast:ra,playToast:ra},[e,t])}const tW={close:()=>null,intent:void 0,bodyId:"",titleId:""},S5=y.createContext(void 0),rW=S5.Provider,_5=()=>{var t;return(t=y.useContext(S5))!==null&&t!==void 0?t:tW},oW=fe("r16zaflb","r75casi",[".r16zaflb{animation-name:rsacmq1;}","@keyframes rsacmq1{from{opacity:0;}to{opacity:0;}}",".r75casi{animation-name:rsacmq1;}"]),Jp=y.forwardRef((t,e)=>{const r=oW(),{running:o,timeout:n,onTimeout:i}=t,a={animationDuration:`${n}ms`,animationPlayState:o?"running":"paused"};return n<0?null:y.createElement("span",{onAnimationEnd:i,"data-timer-status":a.animationPlayState,ref:e,style:a,className:r})});Jp.displayName="Timer";const nW={success:"assertive",warning:"assertive",error:"assertive",info:"polite"},iW=(t,e)=>{const{visible:r,children:o,close:n,remove:i,updateId:a,announce:s,data:l,timeout:c,politeness:u,intent:d="info",pauseOnHover:f,pauseOnWindowBlur:h,imperativeRef:g,tryRestoreFocus:p,...w}=t,v=Rt("toast-title"),m=Rt("toast-body"),b=y.useRef(null),{targetDocument:k}=Pe(),[x,_]=y.useState(!1),S=y.useRef(!1),C=y.useRef(!1),E=lc({tabBehavior:"limited-trap-focus",ignoreDefaultKeydown:{Tab:!0,Escape:!0,Enter:!0}}),I=Q(()=>{var L;const G=k?.activeElement;G&&(!((L=b.current)===null||L===void 0)&&L.contains(G))&&(C.current=!0),n()}),H=Q(L=>{var G;return(G=t.onStatusChange)===null||G===void 0?void 0:G.call(t,null,{status:L,...t})}),T=Q(()=>_(!1)),R=Q(()=>{var L;if(S.current)return;var G;const Z=!!(!((L=b.current)===null||L===void 0)&&L.contains((G=k?.activeElement)!==null&&G!==void 0?G:null));if(c<0){_(!0);return}Z||_(!0)});y.useImperativeHandle(g,()=>({focus:()=>{b.current&&b.current.focus()},play:()=>{S.current=!1,R()},pause:()=>{S.current=!0,T()}})),y.useEffect(()=>()=>H("unmounted"),[H]),y.useEffect(()=>{if(k&&h){var L,G;return(L=k.defaultView)===null||L===void 0||L.addEventListener("focus",R),(G=k.defaultView)===null||G===void 0||G.addEventListener("blur",T),()=>{var Z,he;(Z=k.defaultView)===null||Z===void 0||Z.removeEventListener("focus",R),(he=k.defaultView)===null||he===void 0||he.removeEventListener("blur",T)}}},[k,T,R,h]);const M=()=>{if(!b.current)return;const L=b.current;L.style.setProperty("--fui-toast-height",`${L.scrollHeight}px`)},P=l.root,j=y.useCallback(L=>{L&&b.current&&b.current.addEventListener("animationend",()=>{R(),H("visible")},{once:!0})},[R,H]),W=Q(L=>{var G;T(),P==null||(G=P.onMouseEnter)===null||G===void 0||G.call(P,L)}),B=Q(L=>{var G;R(),P==null||(G=P.onMouseEnter)===null||G===void 0||G.call(P,L)}),{findFirstFocusable:D,findLastFocusable:U}=Ao(),z=Q(L=>{var G;if(L.key===r8&&(L.preventDefault(),I()),L.key===Fv&&L.currentTarget===L.target)if(L.preventDefault(),L.shiftKey){var Z;(Z=U(L.currentTarget))===null||Z===void 0||Z.focus()}else{var he;(he=D(L.currentTarget))===null||he===void 0||he.focus()}P==null||(G=P.onKeyDown)===null||G===void 0||G.call(P,L)});return y.useEffect(()=>{var L;if(!r)return;const G=u??nW[d];var Z;s((Z=(L=b.current)===null||L===void 0?void 0:L.textContent)!==null&&Z!==void 0?Z:"",{politeness:G})},[s,u,b,r,a,d]),y.useEffect(()=>()=>{C.current&&(C.current=!1,p())},[p]),{components:{timer:Jp,root:"div"},timer:te({key:a,onTimeout:I,running:x,timeout:c??-1},{elementType:Jp}),root:te(ve("div",{ref:Re(e,b,j),children:o,tabIndex:0,role:"listitem","aria-labelledby":v,"aria-describedby":m,...w,...P,...E,onMouseEnter:W,onMouseLeave:B,onKeyDown:z}),{elementType:"div"}),timerTimeout:c,transitionTimeout:500,running:x,visible:r,remove:i,close:I,onTransitionEntering:M,updateId:a,nodeRef:b,intent:d,titleId:v,bodyId:m}},aW=(t,e)=>{const{onTransitionEntering:r,visible:o,transitionTimeout:n,remove:i,nodeRef:a}=t;return O(t5,{in:o,appear:!0,unmountOnExit:!0,timeout:n,onExited:i,onEntering:r,nodeRef:a,children:ke(rW,{value:e.toast,children:[O(t.root,{}),O(t.timer,{})]})})},x5={root:"fui-ToastContainer",timer:"fui-ToastContainer__timer"},sW=fe("r1qaza64","r1e6dlul",[".r1qaza64{box-sizing:border-box;margin-top:16px;min-height:44px;pointer-events:all;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);--fui-toast-height:44px;}",".r1qaza64[data-fui-focus-visible]{outline-width:var(--strokeWidthThick);outline-style:solid;outline-color:var(--colorStrokeFocus2);}",".r1e6dlul{box-sizing:border-box;margin-top:16px;min-height:44px;pointer-events:all;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);--fui-toast-height:44px;}",".r1e6dlul[data-fui-focus-visible]{outline-width:var(--strokeWidthThick);outline-style:solid;outline-color:var(--colorStrokeFocus2);}"]),lW=q({enter:{vin17d:"fayl5bc",m1gqa9:"f17oyct0",Bv12yb3:"fvv8lvk"},exit:{vin17d:"f1tk3cza",m1gqa9:"f1nx6yy9",Bv12yb3:"f9wuypy"}},{d:[".fayl5bc{animation-duration:200ms,400ms;}",".f17oyct0{animation-delay:0ms,200ms;}",".fvv8lvk{animation-name:f1rp83na,f5j8bii;}",".f1tk3cza{animation-duration:400ms,200ms;}",".f1nx6yy9{animation-delay:0ms,400ms;}",".f9wuypy{animation-name:fk0lfw7,f1n32sdh;}"],k:["@keyframes f1rp83na{from{max-height:0;opacity:0;margin-top:0;}to{margin-top:16px;opacity:0;max-height:var(--fui-toast-height);}}","@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}","@keyframes fk0lfw7{from{opacity:1;}to{opacity:0;}}","@keyframes f1n32sdh{from{opacity:0;}to{opacity:0;margin-top:0;max-height:0;}}"]}),cW=t=>{const e=sW(),r=lW();return t.root.className=A(x5.root,e,t.visible?r.enter:r.exit,t.root.className),t};function uW(t){const{close:e,intent:r,titleId:o,bodyId:n}=t;return{toast:y.useMemo(()=>({close:e,intent:r,titleId:o,bodyId:n}),[e,r,o,n])}}const C5=y.forwardRef((t,e)=>{const r=iW(t,e);return cW(r),aW(r,uW(r))});C5.displayName="ToastContainer";const Uw=()=>{};function dW(t,e){const{targetDocument:r}=Pe(),o=y.useRef(Uw);return y.useCallback(n=>{if(!n||!r){o.current(),o.current=Uw;return}const i=r.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode(c){return Ve(c)&&c.classList.contains(x5.root)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}}),a=c=>{const{target:u,key:d}=c;if(Ve(u)){if(d===Ya){i.currentNode=u;let f=i.nextNode();f||(i.currentNode=n,f=i.nextNode()),Ve(f)&&f.focus()}if(d===Ea){i.currentNode=u;let f=i.previousNode();f&&f.contains(u)&&(f=i.previousNode()),f||(i.currentNode=n,f=i.lastChild()),Ve(f)&&f.focus()}}},s=c=>{Ve(c.currentTarget)&&!c.currentTarget.contains(Ve(c.relatedTarget)?c.relatedTarget:null)&&t()},l=c=>{Ve(c.currentTarget)&&!c.currentTarget.contains(Ve(c.relatedTarget)?c.relatedTarget:null)&&e()};n.addEventListener("keydown",a),n.addEventListener("focusin",s),n.addEventListener("focusout",l),o.current=()=>{n.removeEventListener("keydown",a),n.removeEventListener("focusin",s),n.removeEventListener("focusout",l)}},[r,t,e])}function fW(t){const e=y.useRef(!0),r=y.useRef(()=>{}),o=y.useCallback((i,a)=>{e.current&&t(i,a)},[t]),n=y.useCallback(i=>{if(!i){r.current();return}const a=l=>{Ve(l.currentTarget)&&l.currentTarget.contains(Ve(l.relatedTarget)?l.relatedTarget:null)||(e.current=!1)},s=l=>{Ve(l.currentTarget)&&l.currentTarget.contains(Ve(l.relatedTarget)?l.relatedTarget:null)||(e.current=!0)};i.addEventListener("focusin",a),i.addEventListener("focusout",s),r.current=()=>{i.removeEventListener("focusin",a),i.removeEventListener("focusout",s)}},[]);return{announceToast:o,toasterRef:n}}const hW=t=>{const{offset:e,announce:r,mountNode:o,inline:n=!1,...i}=t,a=y.useRef(()=>null),{toastsToRender:s,isToastVisible:l,pauseAllToasts:c,playAllToasts:u,tryRestoreFocus:d,closeAllToasts:f}=eW(i),h=y.useCallback((b,k)=>a.current(b,k),[]),{dir:g}=Pe(),p=te(ve("div",i),{elementType:"div"}),w=lc({tabBehavior:"limited-trap-focus",ignoreDefaultKeydown:{Escape:!0}}),v=Q(b=>{var k;b.key===No&&(b.preventDefault(),f()),(k=t.onKeyDown)===null||k===void 0||k.call(t,b)}),m=b=>{var k;const x=dW(c,u),{announceToast:_,toasterRef:S}=fW(r??h);return me(s.has(b)?p:null,{defaultProps:{ref:Re(x,S),children:(k=s.get(b))===null||k===void 0?void 0:k.map(C=>y.createElement(C5,{...C,tryRestoreFocus:d,intent:C.intent,announce:_,key:C.toastId,visible:l(C.toastId)},C.content)),onKeyDown:v,...w,"data-toaster-position":b,role:"list"},elementType:"div"})};return{dir:g,mountNode:o,components:{root:"div",bottomStart:"div",bottomEnd:"div",topStart:"div",topEnd:"div",top:"div",bottom:"div"},root:te(p,{elementType:"div"}),bottomStart:m(zr.bottomStart),bottomEnd:m(zr.bottomEnd),topStart:m(zr.topStart),topEnd:m(zr.topEnd),top:m(zr.top),bottom:m(zr.bottom),announceRef:a,offset:e,announce:r??h,renderAriaLive:!r,inline:n}},gW=500,pW=t=>{const[e,r]=y.useState(void 0),o=y.useRef(0),[n]=y.useState(()=>kx((l,c)=>l.politeness===c.politeness?l.createdAt-c.createdAt:l.politeness==="assertive"?-1:1)),i=Q((l,c)=>{const{politeness:u}=c;if(l===e?.message)return;const d={message:l,politeness:u,createdAt:o.current++};e?n.enqueue(d):r(d)});y.useEffect(()=>{const l=setTimeout(()=>{n.peek()?r(n.dequeue()):r(void 0)},gW);return()=>clearTimeout(l)},[e,n]),y.useImperativeHandle(t.announceRef,()=>i);const a=e?.politeness==="polite"?e.message:void 0,s=e?.politeness==="assertive"?e.message:void 0;return{components:{assertive:"div",polite:"div"},assertive:te(t.assertive,{defaultProps:{"aria-live":"assertive",children:s},elementType:"div"}),polite:te(t.polite,{defaultProps:{"aria-live":"polite",children:a},elementType:"div"})}},mW=t=>ke(y.Fragment,{children:[O(t.assertive,{}),O(t.polite,{})]}),$w={assertive:"fui-AriaLive__assertive",polite:"fui-AriaLive__polite"},vW=fe("rsuwu0d","r1m1grr4",[".rsuwu0d{clip:rect(0px, 0px, 0px, 0px);height:1px;margin-top:-1px;margin-right:-1px;margin-bottom:-1px;margin-left:-1px;overflow-x:hidden;overflow-y:hidden;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;width:1px;position:absolute;}",".r1m1grr4{clip:rect(0px, 0px, 0px, 0px);height:1px;margin-top:-1px;margin-left:-1px;margin-bottom:-1px;margin-right:-1px;overflow-x:hidden;overflow-y:hidden;padding-top:0px;padding-left:0px;padding-bottom:0px;padding-right:0px;width:1px;position:absolute;}"]),bW=t=>{const e=vW();return t.assertive.className=A(e,$w.assertive,t.assertive.className),t.polite.className=A(e,$w.polite,t.polite.className),t},T5=t=>{const e=pW(t);return bW(e),mW(e)};T5.displayName="AriaLive";const yW=t=>{const{announceRef:e,renderAriaLive:r,inline:o,mountNode:n}=t,i=!!t.bottomStart||!!t.bottomEnd||!!t.topStart||!!t.topEnd||!!t.top||!!t.bottom,a=r?O(T5,{announceRef:e}):null,s=ke(y.Fragment,{children:[t.bottom?O(t.bottom,{}):null,t.bottomStart?O(t.bottomStart,{}):null,t.bottomEnd?O(t.bottomEnd,{}):null,t.topStart?O(t.topStart,{}):null,t.topEnd?O(t.topEnd,{}):null,t.top?O(t.top,{}):null]});return o?ke(y.Fragment,{children:[a,i?s:null]}):ke(y.Fragment,{children:[a,i?O(Gi,{mountNode:n,children:s}):null]})},wW={root:"fui-Toaster"},kW=fe("r3hfdjz",null,[".r3hfdjz{position:fixed;width:292px;pointer-events:none;}"]),SW=q({inline:{qhf8xq:"f1euv43f"}},{d:[".f1euv43f{position:absolute;}"]}),_W=t=>{const e=kW(),r=SW(),o=A(wW.root,e,t.inline&&r.inline,t.root.className);if(t.bottomStart){var n;t.bottomStart.className=o;var i;(i=(n=t.bottomStart).style)!==null&&i!==void 0||(n.style={}),Object.assign(t.bottomStart.style,ta(zr.bottomStart,t.dir,t.offset))}if(t.bottomEnd){var a;t.bottomEnd.className=o;var s;(s=(a=t.bottomEnd).style)!==null&&s!==void 0||(a.style={}),Object.assign(t.bottomEnd.style,ta(zr.bottomEnd,t.dir,t.offset))}if(t.topStart){var l;t.topStart.className=o;var c;(c=(l=t.topStart).style)!==null&&c!==void 0||(l.style={}),Object.assign(t.topStart.style,ta(zr.topStart,t.dir,t.offset))}if(t.topEnd){var u;t.topEnd.className=o;var d;(d=(u=t.topEnd).style)!==null&&d!==void 0||(u.style={}),Object.assign(t.topEnd.style,ta(zr.topEnd,t.dir,t.offset))}if(t.top){var f;t.top.className=o;var h;(h=(f=t.top).style)!==null&&h!==void 0||(f.style={}),Object.assign(t.top.style,ta(zr.top,t.dir,t.offset))}if(t.bottom){var g;t.bottom.className=o;var p;(p=(g=t.bottom).style)!==null&&p!==void 0||(g.style={}),Object.assign(t.bottom.style,ta(zr.bottom,t.dir,t.offset))}return t},xW=t=>{const e=hW(t);return _W(e),ue("useToasterStyles_unstable")(e),yW(e)};xW.displayName="Toaster";const CW=(t,e)=>({components:{root:"div"},root:te(ve("div",{ref:e,...t}),{elementType:"div"}),backgroundAppearance:t.appearance}),TW=(t,e)=>O(pN,{value:e.backgroundAppearance,children:O(t.root,{})}),EW={root:"fui-Toast"},BW=fe("rzyoxeq","r1lipnsg",[".rzyoxeq{display:grid;grid-template-columns:auto 1fr auto;padding-top:12px;padding-right:12px;padding-bottom:12px;padding-left:12px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:var(--colorTransparentStroke);border-right-color:var(--colorTransparentStroke);border-bottom-color:var(--colorTransparentStroke);border-left-color:var(--colorTransparentStroke);box-shadow:var(--shadow8);font-size:var(--fontSizeBase300);line-height:20px;font-weight:var(--fontWeightSemibold);color:var(--colorNeutralForeground1);background-color:var(--colorNeutralBackground1);}",".r1lipnsg{display:grid;grid-template-columns:auto 1fr auto;padding-top:12px;padding-left:12px;padding-bottom:12px;padding-right:12px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-width:1px;border-left-width:1px;border-bottom-width:1px;border-right-width:1px;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-color:var(--colorTransparentStroke);border-left-color:var(--colorTransparentStroke);border-bottom-color:var(--colorTransparentStroke);border-right-color:var(--colorTransparentStroke);box-shadow:var(--shadow8);font-size:var(--fontSizeBase300);line-height:20px;font-weight:var(--fontWeightSemibold);color:var(--colorNeutralForeground1);background-color:var(--colorNeutralBackground1);}"]),IW=q({inverted:{sj55zd:"f1w7i9ko",De3pzq:"f5pduvr"}},{d:[".f1w7i9ko{color:var(--colorNeutralForegroundInverted2);}",".f5pduvr{background-color:var(--colorNeutralBackgroundInverted);}"]}),RW=t=>{const e=BW(),r=IW();return t.root.className=A(EW.root,e,t.backgroundAppearance==="inverted"&&r.inverted,t.root.className),t};function AW(t){const{backgroundAppearance:e}=t;return{backgroundAppearance:e}}const NW=y.forwardRef((t,e)=>{const r=CW(t,e);return RW(r),TW(r,AW(r))});NW.displayName="Toast";const PW=(t,e)=>{const{intent:r,titleId:o}=_5(),n=Rv();let i;switch(r){case"success":i=y.createElement(DN,null);break;case"error":i=y.createElement(KN,null);break;case"warning":i=y.createElement(GN,null);break;case"info":i=y.createElement(WN,null);break}return{action:me(t.action,{elementType:"div"}),components:{root:"div",media:"div",action:"div"},media:me(t.media,{renderByDefault:!!r,defaultProps:{children:i},elementType:"div"}),root:te(ve("div",{ref:e,children:t.children,id:o,...t}),{elementType:"div"}),intent:r,backgroundAppearance:n}},zW=t=>ke(y.Fragment,{children:[t.media?O(t.media,{}):null,O(t.root,{}),t.action?O(t.action,{}):null]}),Qh={root:"fui-ToastTitle",media:"fui-ToastTitle__media",action:"fui-ToastTitle__action"},MW=fe("rdjap1e",null,[".rdjap1e{display:flex;grid-column-end:3;color:var(--colorNeutralForeground1);word-break:break-word;}"]),OW=fe("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);}"]),jW=fe("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);}"]),DW=q({root:{sj55zd:"f1w7i9ko"},action:{sj55zd:"f1qz2gb0"},media:{sj55zd:"fqpbvvt"}},{d:[".f1w7i9ko{color:var(--colorNeutralForegroundInverted2);}",".f1qz2gb0{color:var(--colorBrandForegroundInverted);}",".fqpbvvt{color:var(--colorNeutralForegroundInverted);}"]}),FW=q({success:{sj55zd:"f1m7fhi8"},error:{sj55zd:"fg9gses"},warning:{sj55zd:"f1k5f75o"},info:{sj55zd:"fkfq4zb"}},{d:[".f1m7fhi8{color:var(--colorPaletteGreenForeground3);}",".fg9gses{color:var(--colorPaletteCranberryForeground2);}",".f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}",".fkfq4zb{color:var(--colorNeutralForeground2);}"]}),qW=q({success:{sj55zd:"f1pvjcpr"},error:{sj55zd:"fcrp5ll"},warning:{sj55zd:"f1r8f1cl"},info:{sj55zd:"f1w7i9ko"}},{d:[".f1pvjcpr{color:var(--colorPaletteGreenForegroundInverted);}",".fcrp5ll{color:var(--colorPaletteRedForegroundInverted);}",".f1r8f1cl{color:var(--colorPaletteYellowForegroundInverted);}",".f1w7i9ko{color:var(--colorNeutralForegroundInverted2);}"]}),LW=t=>{const e=MW(),r=jW(),o=OW(),n=FW(),i=qW(),{intent:a}=t,s=DW();return t.root.className=A(Qh.root,e,t.backgroundAppearance==="inverted"&&s.root,t.root.className),t.media&&(t.media.className=A(Qh.media,o,t.backgroundAppearance==="inverted"&&s.media,t.media.className,a&&n[a],a&&t.backgroundAppearance==="inverted"&&i[a])),t.action&&(t.action.className=A(Qh.action,r,t.backgroundAppearance==="inverted"&&s.action,t.action.className)),t},HW=y.forwardRef((t,e)=>{const r=PW(t,e);return LW(r),zW(r)});HW.displayName="ToastTitle";const UW=(t,e)=>{const r=Rv(),{bodyId:o}=_5();return{components:{root:"div",subtitle:"div"},subtitle:me(t.subtitle,{elementType:"div"}),root:te(ve("div",{ref:e,id:o,...t}),{elementType:"div"}),backgroundAppearance:r}},$W=t=>ke(y.Fragment,{children:[O(t.root,{}),t.subtitle?O(t.subtitle,{}):null]}),Kw={root:"fui-ToastBody",subtitle:"fui-ToastBody__subtitle"},KW=fe("rciajo9",null,[".rciajo9{grid-column-start:2;grid-column-end:3;padding-top:6px;font-size:var(--fontSizeBase300);line-height:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);color:var(--colorNeutralForeground1);word-break:break-word;}"]),WW=fe("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);}"]),VW=q({root:{sj55zd:"f1w7i9ko"},subtitle:{sj55zd:"f1w7i9ko"}},{d:[".f1w7i9ko{color:var(--colorNeutralForegroundInverted2);}"]}),GW=t=>{const e=KW(),r=WW(),o=VW();return t.root.className=A(Kw.root,e,t.backgroundAppearance==="inverted"&&o.root,t.root.className),t.subtitle&&(t.subtitle.className=A(Kw.subtitle,r,t.backgroundAppearance==="inverted"&&o.subtitle,t.subtitle.className)),t},XW=y.forwardRef((t,e)=>{const r=UW(t,e);return GW(r),$W(r)});XW.displayName="ToastBody";const YW=()=>{var t;const e=Pe(),r=y.useRef(!1),o=Yn()&&((t=e.targetDocument)===null||t===void 0?void 0:t.defaultView),n=y.useCallback(i=>{r.current=i.matches},[]);return Qt(()=>{if(!o||!o.matchMedia)return;const i=o.matchMedia("screen and (prefers-reduced-motion: reduce)");return i.matches&&(r.current=!0),i.addEventListener("change",n),()=>i.removeEventListener("change",n)},[n,o]),r.current},ZW=t=>E5(t)?t.computedStyleMap():QW(t),E5=t=>!!(typeof CSS<"u"&&CSS.number&&t.computedStyleMap),QW=t=>{var e,r;const o=Yn()&&((r=(e=t.ownerDocument)===null||e===void 0?void 0:e.defaultView)!==null&&r!==void 0?r:window);return o?o.getComputedStyle(t,null):{getPropertyValue:n=>""}};function Ww(t){const e=t.trim();if(e.includes("auto"))return 0;if(e.endsWith("ms")){const r=Number(e.replace("ms",""));return isNaN(r)?0:r}return Number(e.slice(0,-1).replace(",","."))*1e3}const JW=(t,e)=>{const r=t.getAll(e);return r.length>0?r.map(({value:o,unit:n})=>`${o}${n}`):["0"]},eV=(t,e)=>{const r=t.getPropertyValue(e);return r?r.split(","):["0"]},Vw=(t,e)=>{const r=Math.max(t.length,e.length),o=[];if(r===0)return 0;for(let n=0;n{const e=E5(t),r=ZW(t),o=a=>e?JW(r,a):eV(r,a),n=Vw(o("transition-duration"),o("transition-delay")),i=Vw(o("animation-duration"),o("animation-delay"));return Math.max(n,i)},rV=t=>{const e=y.useRef(!0);return e.current&&t?(e.current=!1,!0):e.current};function oV(t,e={}){const{animateOnFirstMount:r,duration:o}={animateOnFirstMount:!1,...e},[n,i]=y.useState(t&&r?"entering":t?"idle":"unmounted"),[a,s]=y.useState(!r&&t),[l,c]=yl(),[u,d]=yl(),[f,h]=X4(),[g,p]=y.useState(null),w=YW(),v=cx(),m=rV(!!g),b=y.useRef(t).current,k=w||m&&b&&!r,x=y.useCallback(C=>{C&&p(C)},[]),_=y.useCallback(C=>(u(()=>f(C),0),()=>{d(),h()}),[h,d,f,u]),S=y.useCallback(()=>{i(t?"entered":"exited"),_(()=>i(t?"idle":"unmounted"))},[_,t]);return y.useEffect(()=>{if(!v){if(k){i(t?"idle":"unmounted"),s(t);return}if(i(t?"entering":"exiting"),!!g)return _(()=>{s(t),_(()=>{const C=o||tV(g);if(C===0){S();return}l(()=>S(),C)})}),()=>c()}},[g,k,S,t]),y.useMemo(()=>({ref:x,type:n,active:a,canRender:t||n!=="unmounted"}),[a,n,t])}function B5(t,e){const r=typeof t=="object",o=oV(r?!1:t,e);return r?t:o}const nV=q({reduced:{Hwfdqs:"f1bggi9a"}},{m:[["@media screen and (prefers-reduced-motion: reduce){.f1bggi9a{transition-duration:0.01ms!important;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]});const em=(t,e)=>{const{reduced:r}=nV(),o=y.useMemo(()=>!e.enter&&!e.exit?"":t.active||t.type==="idle"?e.enter:t.active?"":e.exit,[t.active,t.type,e.enter,e.exit]);return y.useEffect(()=>void 0,[e]),A(e.default,o,e[t.type],r)};function I5(t){const{open:e=!1,size:r="small",position:o="start"}=t;return{size:r,position:o,open:e}}const iV=fe("rivxbo","r1trjn1z",[".rivxbo{top:0px;right:0px;bottom:0px;left:0px;position:fixed;background-color:rgba(0, 0, 0, 0.4);}",".r1trjn1z{top:0px;left:0px;bottom:0px;right:0px;position:fixed;background-color:rgba(0, 0, 0, 0.4);}"]),aV=q({nested:{De3pzq:"f1c21dwh"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}"]}),sV=t=>{const e=iV(),r=aV();return t.backdrop&&(t.backdrop.className=A(e,t.isNestedDialog&&r.nested,t.backdrop.className)),t},tm=y.forwardRef((t,e)=>{const r=n5(t,e),o=a5();return sV(r),i5(r,o)});tm.displayName="OverlayDrawerSurface";const lV=(t,e)=>{const{open:r,size:o,position:n}=I5(t),{modalType:i="modal",inertTrapFocus:a,defaultOpen:s=!1,onOpenChange:l}=t,c=B5(r),u=Bv(t.backdrop),f=te({...t,backdrop:i!=="non-modal"&&u!==null?{...u}:null},{elementType:tm,defaultProps:{ref:Re(e,c.ref)}}),h=te({open:!0,defaultOpen:s,onOpenChange:l,inertTrapFocus:a,modalType:i,children:null},{elementType:Wp});return{components:{root:tm,dialog:Wp},root:f,dialog:h,size:o,position:n,motion:c}},cV=t=>t.motion.canRender?O(t.dialog,{children:O(t.root,{})}):null,uV=q({entering:{Bkqvd7p:"f18ad807"},exiting:{Bkqvd7p:"f1mfizis"},reducedMotion:{Hwfdqs:"f5e8c63"},start:{Bekrc4i:["f5tn483","f1ojsxk5"],vrafjx:["fcdblym","fjik90z"],h3c5rm:["f1gn591s","fjscplz"],oyh7mz:["f1vgc2s3","f1e31b4d"],j35jbq:["fvfyk4","frppm18"]},end:{ibv6hh:["f1ojsxk5","f5tn483"],wvpqe5:["fjik90z","fcdblym"],zhjwy3:["fjscplz","f1gn591s"],j35jbq:["f1e31b4d","f1vgc2s3"],oyh7mz:["frppm18","fvfyk4"]},bottom:{B5kzvoi:"f1yab3r1",Bhzewxz:"f198g47y"},small:{Bjr0ffy:"f1exhnwo"},medium:{Bjr0ffy:"fqofjzu"},large:{Bjr0ffy:"fce6y3m"},full:{Bjr0ffy:"fsdmzs6"}},{d:[".f18ad807{transition-timing-function:var(--curveDecelerateMid);}",".f1mfizis{transition-timing-function:var(--curveAccelerateMin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".fvfyk4{right:auto;}",".frppm18{left:auto;}",".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;}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f5e8c63{transition-duration:0.001ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]}),dV=q({small:{Bjr0ffy:"f1exhnwo"},medium:{Bjr0ffy:"fqofjzu"},large:{Bjr0ffy:"fce6y3m"},full:{Bjr0ffy:"fno8cgj"}},{d:[".f1exhnwo{--fui-Drawer--size:320px;}",".fqofjzu{--fui-Drawer--size:592px;}",".fce6y3m{--fui-Drawer--size:940px;}",".fno8cgj{--fui-Drawer--size:100vh;}"]}),R5=q({small:{B3o57yi:"fc397y7"},medium:{B3o57yi:"f78771"},large:{B3o57yi:"f9ymmep"},full:{B3o57yi:"f1loko9l"}},{d:[".fc397y7{transition-duration:var(--durationGentle);}",".f78771{transition-duration:var(--durationSlow);}",".f9ymmep{transition-duration:var(--durationSlower);}",".f1loko9l{transition-duration:var(--durationUltraSlow);}"]}),A5=({position:t,size:e,motion:r})=>{const o=uV(),n=dV(),i=R5();return A(o[t],t==="bottom"&&n[e],i[e],t!=="bottom"&&o[e],o.reducedMotion,r.type==="entering"&&o.entering,r.type==="exiting"&&o.exiting)},Gw={root:"fui-OverlayDrawer",backdrop:"fui-OverlayDrawer__backdrop"},fV=fe("r1vxc6jp","r1uky7bi",{r:[".r1vxc6jp{overflow-x:hidden;overflow-y: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;}",".r1vxc6jp:focus{outline-style:none;}",".r1vxc6jp:focus-visible{outline-style:none;}",".r1vxc6jp[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1vxc6jp[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".r1uky7bi{overflow-x:hidden;overflow-y: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;}",".r1uky7bi:focus{outline-style:none;}",".r1uky7bi:focus-visible{outline-style:none;}",".r1uky7bi[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r1uky7bi[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r1vxc6jp[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){.r1uky7bi[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),hV=q({start:{Bz10aip:"f1d8gkik"},end:{Bz10aip:"f1g0pcr8"},bottom:{Bz10aip:"fip488n",Bhzewxz:"f198g47y",Bqenvij:"fub80nq",a9b677:"fr97h3j"}},{d:[".f1d8gkik{transform:translate3D(calc(var(--fui-Drawer--size) * -1), 0, 0);}",".f1g0pcr8{transform:translate3D(calc(var(--fui-Drawer--size) * 1), 0, 0);}",".fip488n{transform:translate3D(0, calc(var(--fui-Drawer--size) * 1), 0);}",".f198g47y{top:auto;}",".fub80nq{height:var(--fui-Drawer--size);}",".fr97h3j{width:100vw;}"]}),gV=q({default:{abs64n:"fk73vx1",E5pizo:"ff88big",Bmy1vo4:"f1neo61",Es3by:"f1ytgekk"},enter:{abs64n:"f5p0z4x",Bz10aip:"f87uvqx",E5pizo:"f10nrhrw"}},{d:[".fk73vx1{opacity:0;}",".ff88big{box-shadow:0px var(--colorTransparentBackground);}",".f1neo61{transition-property:transform,box-shadow,opacity;}",".f1ytgekk{will-change:transform,box-shadow,opacity;}",".f5p0z4x{opacity:1;}",".f87uvqx{transform:translate3D(0, 0, 0);}",".f10nrhrw{box-shadow:var(--shadow64);}"]}),pV=q({default:{abs64n:"fk73vx1",Bmy1vo4:"f13u1uyl",Bkqvd7p:"f17wnm97",Es3by:"f1gqqdtu"},enter:{abs64n:"f5p0z4x"}},{d:[".fk73vx1{opacity:0;}",".f13u1uyl{transition-property:opacity;}",".f17wnm97{transition-timing-function:var(--curveEasyEase);}",".f1gqqdtu{will-change:opacity;}",".f5p0z4x{opacity:1;}"]}),mV=t=>{const e=A5(t),r=fV(),o=hV(),n=R5(),i=em(t.motion,gV()),a=em(t.motion,pV()),s=t.root.backdrop;return t.root.className=A(Gw.root,e,r,o[t.position],i,t.root.className),s&&(s.className=A(Gw.backdrop,a,n[t.size],s.className)),t},N5=y.forwardRef((t,e)=>{const r=lV(t,e);return mV(r),ue("useDrawerOverlayStyles_unstable")(r),ue("useOverlayDrawerStyles_unstable")(r),cV(r)});N5.displayName="OverlayDrawer";const vV=(t,e)=>{const{size:r,position:o,open:n}=I5(t),{separator:i=!1}=t,a=B5(n);return{components:{root:"div"},root:te(ve("div",{...t,ref:Re(e,a.ref)}),{elementType:"div"}),size:r,position:o,separator:i,motion:a}},bV=t=>t.motion.canRender?O(t.root,{}):null,yV={root:"fui-InlineDrawer"},wV=fe("r46ju4x",null,[".r46ju4x{overflow-x:hidden;overflow-y:hidden;width:var(--fui-Drawer--size);max-width:100vw;height:auto;max-height:100vh;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);position:relative;}"]),kV=q({separatorStart:{Bekrc4i:["f1hqa2wf","finvdd3"],vrafjx:["fcdblym","fjik90z"],h3c5rm:["fa8zu9y","f17e9lqh"]},separatorEnd:{ibv6hh:["finvdd3","f1hqa2wf"],wvpqe5:["fjik90z","fcdblym"],zhjwy3:["f17e9lqh","fa8zu9y"]},separatorBottom:{B4j52fo:"f5ogflp",icvyot:"fzkkow9",g2u3we:"fo8z57v"},start:{Bz10aip:"f1d8gkik"},end:{Bz10aip:"f1h1g6jt"},bottom:{Bz10aip:"f1rdfgt8",a9b677:"fly5x3f",Bqenvij:"fub80nq"}},{d:[".f1hqa2wf{border-right-width:1px;}",".finvdd3{border-left-width:1px;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fa8zu9y{border-right-color:var(--colorNeutralBackground3);}",".f17e9lqh{border-left-color:var(--colorNeutralBackground3);}",".f5ogflp{border-top-width:1px;}",".fzkkow9{border-top-style:solid;}",".fo8z57v{border-top-color:var(--colorNeutralBackground3);}",".f1d8gkik{transform:translate3D(calc(var(--fui-Drawer--size) * -1), 0, 0);}",".f1h1g6jt{transform:translate3D(var(--fui-Drawer--size), 0, 0);}",".f1rdfgt8{transform:translate3D(0, var(--fui-Drawer--size), 0);}",".fly5x3f{width:100%;}",".fub80nq{height:var(--fui-Drawer--size);}"]}),SV=q({default:{abs64n:"fk73vx1",Bmy1vo4:"f15rjlgw",Es3by:"f1blt7p"},enter:{abs64n:"f5p0z4x",Bz10aip:"f87uvqx"}},{d:[".fk73vx1{opacity:0;}",".f15rjlgw{transition-property:opacity,transform;}",".f1blt7p{will-change:opacity,transform;}",".f5p0z4x{opacity:1;}",".f87uvqx{transform:translate3D(0, 0, 0);}"]});function _V(t,e){if(t.separator)switch(t.position){case"start":return e.separatorStart;case"end":return e.separatorEnd;case"bottom":return e.separatorBottom;default:return}}const xV=t=>{const e=wV(),r=A5(t),o=kV(),n=em(t.motion,SV());return t.root.className=A(yV.root,e,r,_V(t,o),o[t.position],n,t.root.className),t},P5=y.forwardRef((t,e)=>{const r=vV(t,e);return xV(r),ue("useDrawerInlineStyles_unstable")(r),ue("useInlineDrawerStyles_unstable")(r),bV(r)});P5.displayName="InlineDrawer";const CV=(t,e)=>{const r=t.type==="inline"?P5:N5;return{components:{root:r},root:te(Bv({ref:e,...t}),{elementType:r})}},TV=t=>O(t.root,{}),EV={root:"fui-Drawer"},BV=t=>(t.root.className=A(EV.root,t.root.className),t),IV=y.forwardRef((t,e)=>{const r=CV(t,e);return BV(r),ue("useDrawerStyles_unstable")(r),TV(r)});IV.displayName="Drawer";const RV=(t,e)=>({components:{root:"div"},root:te(ve("div",{ref:e,...t}),{elementType:"div"})}),AV=t=>O(t.root,{}),NV={root:"fui-DrawerBody"},PV=fe("r10z3gsy","r1ppc5ap",[".r10z3gsy{margin-top:-1px;margin-right:0;margin-bottom:-1px;margin-left:0;padding-top:1px;padding-right:var(--spacingHorizontalXXL);padding-bottom:1px;padding-left:var(--spacingHorizontalXXL);overflow-x:auto;overflow-y:auto;flex-grow:1;flex-shrink:1;flex-basis:0;align-self:stretch;background-image:linear-gradient(to top, var(--colorNeutralBackground1), var(--colorNeutralBackground1)),linear-gradient(to top, var(--colorNeutralBackground1), var(--colorNeutralBackground1)),linear-gradient(to top, var(--colorNeutralStroke1), var(--colorNeutralBackground1)),linear-gradient(to bottom, var(--colorNeutralStroke1), var(--colorNeutralBackground1));-webkit-background-position:bottom center,top center,bottom center,top center;background-position:bottom center,top center,bottom center,top center;background-repeat:no-repeat;background-color:var(--colorNeutralBackground1);background-size:100% 2px,100% 2px,100% 1px,100% 1px;background-attachment:local,local,scroll,scroll;}",".r10z3gsy:last-child{padding-bottom:calc(var(--spacingHorizontalXXL) + 1px);}",".r10z3gsy:first-child{padding-top:calc(var(--spacingHorizontalXXL) + 1px);}",".r1ppc5ap{margin-top:-1px;margin-left:0;margin-bottom:-1px;margin-right:0;padding-top:1px;padding-left:var(--spacingHorizontalXXL);padding-bottom:1px;padding-right:var(--spacingHorizontalXXL);overflow-x:auto;overflow-y:auto;flex-grow:1;flex-shrink:1;flex-basis:0;align-self:stretch;background-image:linear-gradient(to top, var(--colorNeutralBackground1), var(--colorNeutralBackground1)),linear-gradient(to top, var(--colorNeutralBackground1), var(--colorNeutralBackground1)),linear-gradient(to top, var(--colorNeutralStroke1), var(--colorNeutralBackground1)),linear-gradient(to bottom, var(--colorNeutralStroke1), var(--colorNeutralBackground1));-webkit-background-position:bottom center,top center,bottom center,top center;background-position:bottom center,top center,bottom center,top center;background-repeat:no-repeat;background-color:var(--colorNeutralBackground1);background-size:100% 2px,100% 2px,100% 1px,100% 1px;background-attachment:local,local,scroll,scroll;}",".r1ppc5ap:last-child{padding-bottom:calc(var(--spacingHorizontalXXL) + 1px);}",".r1ppc5ap:first-child{padding-top:calc(var(--spacingHorizontalXXL) + 1px);}"]),zV=t=>{const e=PV();return t.root.className=A(NV.root,e,t.root.className),t},MV=y.forwardRef((t,e)=>{const r=RV(t,e);return zV(r),ue("useDrawerBodyStyles_unstable")(r),AV(r)});MV.displayName="DrawerBody";const OV=(t,e)=>({components:{root:"header"},root:te(ve("header",{ref:e,...t}),{elementType:"header"})}),jV=t=>O(t.root,{}),DV={root:"fui-DrawerHeader"},FV=fe("rh4hr5f","r116c7xc",[".rh4hr5f{padding-top:var(--spacingVerticalXXL);padding-right:var(--spacingHorizontalXXL);padding-bottom:var(--spacingVerticalS);padding-left:var(--spacingHorizontalXXL);column-gap:var(--spacingHorizontalS);row-gap:var(--spacingHorizontalS);width:100%;max-width:100%;align-self:stretch;display:flex;flex-direction:column;box-sizing:border-box;}",".r116c7xc{padding-top:var(--spacingVerticalXXL);padding-left:var(--spacingHorizontalXXL);padding-bottom:var(--spacingVerticalS);padding-right:var(--spacingHorizontalXXL);column-gap:var(--spacingHorizontalS);row-gap:var(--spacingHorizontalS);width:100%;max-width:100%;align-self:stretch;display:flex;flex-direction:column;box-sizing:border-box;}"]),qV=t=>{const e=FV();return t.root.className=A(DV.root,e,t.root.className),t},LV=y.forwardRef((t,e)=>{const r=OV(t,e);return qV(r),ue("useDrawerHeaderStyles_unstable")(r),jV(r)});LV.displayName="DrawerHeader";const HV=(t,e)=>{const{children:r,heading:o}=t,n=yo(i=>i.dialogTitleId);return{components:{root:"div",heading:"h2",action:"div"},root:te(ve("div",{ref:e,...t}),{elementType:"div"}),heading:me(o,{defaultProps:{id:n,children:r},renderByDefault:!0,elementType:"h2"}),action:me(t.action,{elementType:"div"})}},UV=t=>ke(t.root,{children:[t.heading&&O(t.heading,{}),t.action&&O(t.action,{})]}),Jh={root:"fui-DrawerHeaderTitle",heading:"fui-DrawerHeaderTitle__heading",action:"fui-DrawerHeaderTitle__action"},$V=q({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);}"]}),KV=t=>{const e=$V(),{heading:r={},action:o,components:n}=t;return o5({components:{root:n.heading,action:n.action},root:r,action:o}),t.root.className=A(Jh.root,e.root,t.root.className),t.heading&&(t.heading.className=A(Jh.heading,t.heading.className)),t.action&&(t.action.className=A(Jh.action,e.action,t.action.className)),t},WV=y.forwardRef((t,e)=>{const r=HV(t,e);return KV(r),ue("useDrawerHeaderTitleStyles_unstable")(r),UV(r)});WV.displayName="DrawerHeaderTitle";var Xw={},Yw=F1;Xw.createRoot=Yw.createRoot,Xw.hydrateRoot=Yw.hydrateRoot;var VV=function(t){return function(e,r){var o=y.useRef(!1);t(function(){return function(){o.current=!1}},[]),t(function(){if(!o.current)o.current=!0;else return e()},r)}},rm=function(t,e){return rm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(r[n]=o[n])},rm(t,e)};function qf(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");rm(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Qr=function(){return Qr=Object.assign||function(e){for(var r,o=1,n=arguments.length;o0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function st(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var o=r.call(t),n,i=[],a;try{for(;(e===void 0||e-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(s){a={error:s}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i}function gt(t,e,r){if(r||arguments.length===2)for(var o=0,n=e.length,i;o-1&&(n=setTimeout(function(){zu.delete(t)},e)),zu.set(t,Qr(Qr({},r),{timer:n}))},ZV=function(t){return zu.get(t)},Mu=new Map,QV=function(t){return Mu.get(t)},JV=function(t,e){Mu.set(t,e),e.then(function(r){return Mu.delete(t),r}).catch(function(){Mu.delete(t)})},fi={},eG=function(t,e){fi[t]&&fi[t].forEach(function(r){return r(e)})},eg=function(t,e){return fi[t]||(fi[t]=[]),fi[t].push(e),function(){var o=fi[t].indexOf(e);fi[t].splice(o,1)}},tG=function(t,e){var r=e.cacheKey,o=e.cacheTime,n=o===void 0?5*60*1e3:o,i=e.staleTime,a=i===void 0?0:i,s=e.setCache,l=e.getCache,c=y.useRef(),u=y.useRef(),d=function(h,g){s?s(g):YV(h,n,g),eG(h,g.data)},f=function(h,g){return g===void 0&&(g=[]),l?l(g):ZV(h)};return F5(function(){if(r){var h=f(r);h&&Object.hasOwnProperty.call(h,"data")&&(t.state.data=h.data,t.state.params=h.params,(a===-1||new Date().getTime()-h.time<=a)&&(t.state.loading=!1)),c.current=eg(r,function(g){t.setState({data:g})})}},[]),Lf(function(){var h;(h=c.current)===null||h===void 0||h.call(c)}),r?{onBefore:function(h){var g=f(r,h);return!g||!Object.hasOwnProperty.call(g,"data")?{}:a===-1||new Date().getTime()-g.time<=a?{loading:!1,data:g?.data,error:void 0,returnNow:!0}:{data:g?.data,error:void 0}},onRequest:function(h,g){var p=QV(r);return p&&p!==u.current?{servicePromise:p}:(p=h.apply(void 0,gt([],st(g),!1)),u.current=p,JV(r,p),{servicePromise:p})},onSuccess:function(h,g){var p;r&&((p=c.current)===null||p===void 0||p.call(c),d(r,{data:h,params:g,time:new Date().getTime()}),c.current=eg(r,function(w){t.setState({data:w})}))},onMutate:function(h){var g;r&&((g=c.current)===null||g===void 0||g.call(c),d(r,{data:h,params:t.state.params,time:new Date().getTime()}),c.current=eg(r,function(p){t.setState({data:p})}))}}:{}};const rG=tG;function oG(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Y1=oG,nG=typeof js=="object"&&js&&js.Object===Object&&js,iG=nG,aG=iG,sG=typeof self=="object"&&self&&self.Object===Object&&self,lG=aG||sG||Function("return this")(),q5=lG,cG=q5,uG=function(){return cG.Date.now()},dG=uG,fG=/\s/;function hG(t){for(var e=t.length;e--&&fG.test(t.charAt(e)););return e}var gG=hG,pG=gG,mG=/^\s+/;function vG(t){return t&&t.slice(0,pG(t)+1).replace(mG,"")}var bG=vG,yG=q5,wG=yG.Symbol,L5=wG,Zw=L5,H5=Object.prototype,kG=H5.hasOwnProperty,SG=H5.toString,Ns=Zw?Zw.toStringTag:void 0;function _G(t){var e=kG.call(t,Ns),r=t[Ns];try{t[Ns]=void 0;var o=!0}catch{}var n=SG.call(t);return o&&(e?t[Ns]=r:delete t[Ns]),n}var xG=_G,CG=Object.prototype,TG=CG.toString;function EG(t){return TG.call(t)}var BG=EG,Qw=L5,IG=xG,RG=BG,AG="[object Null]",NG="[object Undefined]",Jw=Qw?Qw.toStringTag:void 0;function PG(t){return t==null?t===void 0?NG:AG:Jw&&Jw in Object(t)?IG(t):RG(t)}var zG=PG;function MG(t){return t!=null&&typeof t=="object"}var OG=MG,jG=zG,DG=OG,FG="[object Symbol]";function qG(t){return typeof t=="symbol"||DG(t)&&jG(t)==FG}var LG=qG,HG=bG,ek=Y1,UG=LG,tk=NaN,$G=/^[-+]0x[0-9a-f]+$/i,KG=/^0b[01]+$/i,WG=/^0o[0-7]+$/i,VG=parseInt;function GG(t){if(typeof t=="number")return t;if(UG(t))return tk;if(ek(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=ek(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=HG(t);var r=KG.test(t);return r||WG.test(t)?VG(t.slice(2),r?2:8):$G.test(t)?tk:+t}var XG=GG,YG=Y1,tg=dG,rk=XG,ZG="Expected a function",QG=Math.max,JG=Math.min;function eX(t,e,r){var o,n,i,a,s,l,c=0,u=!1,d=!1,f=!0;if(typeof t!="function")throw new TypeError(ZG);e=rk(e)||0,YG(r)&&(u=!!r.leading,d="maxWait"in r,i=d?QG(rk(r.maxWait)||0,e):i,f="trailing"in r?!!r.trailing:f);function h(_){var S=o,C=n;return o=n=void 0,c=_,a=t.apply(C,S),a}function g(_){return c=_,s=setTimeout(v,e),u?h(_):a}function p(_){var S=_-l,C=_-c,E=e-S;return d?JG(E,i-C):E}function w(_){var S=_-l,C=_-c;return l===void 0||S>=e||S<0||d&&C>=i}function v(){var _=tg();if(w(_))return m(_);s=setTimeout(v,p(_))}function m(_){return s=void 0,f&&o?h(_):(o=n=void 0,a)}function b(){s!==void 0&&clearTimeout(s),c=0,o=l=n=s=void 0}function k(){return s===void 0?a:m(tg())}function x(){var _=tg(),S=w(_);if(o=arguments,n=this,l=_,S){if(s===void 0)return g(l);if(d)return clearTimeout(s),s=setTimeout(v,e),h(l)}return s===void 0&&(s=setTimeout(v,e)),a}return x.cancel=b,x.flush=k,x}var U5=eX;const $5=Ro(U5);var tX=function(t,e){var r=e.debounceWait,o=e.debounceLeading,n=e.debounceTrailing,i=e.debounceMaxWait,a=y.useRef(),s=y.useMemo(function(){var l={};return o!==void 0&&(l.leading=o),n!==void 0&&(l.trailing=n),i!==void 0&&(l.maxWait=i),l},[o,n,i]);return y.useEffect(function(){if(r){var l=t.runAsync.bind(t);return a.current=$5(function(c){c()},r,s),t.runAsync=function(){for(var c=[],u=0;u-1&&ul.splice(r,1)}}if(Hf){var ok=function(){if(!(!Z1()||!uX()))for(var t=0;t=P?M:""+Array(P+1-W.length).join(j)+M},k={s:b,z:function(M){var P=-M.utcOffset(),j=Math.abs(P),W=Math.floor(j/60),B=j%60;return(P<=0?"+":"-")+b(W,2,"0")+":"+b(B,2,"0")},m:function M(P,j){if(P.date()1)return M(U[0])}else{var z=P.name;_[z]=P,B=z}return!W&&B&&(x=B),B||!W&&x},I=function(M,P){if(C(M))return M.clone();var j=typeof P=="object"?P:{};return j.date=M,j.args=arguments,new T(j)},H=k;H.l=E,H.i=C,H.w=function(M,P){return I(M,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var T=function(){function M(j){this.$L=E(j.locale,null,!0),this.parse(j),this.$x=this.$x||j.x||{},this[S]=!0}var P=M.prototype;return P.parse=function(j){this.$d=function(W){var B=W.date,D=W.utc;if(B===null)return new Date(NaN);if(H.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var U=B.match(w);if(U){var z=U[2]-1||0,L=(U[7]||"0").substring(0,3);return D?new Date(Date.UTC(U[1],z,U[3]||1,U[4]||0,U[5]||0,U[6]||0,L)):new Date(U[1],z,U[3]||1,U[4]||0,U[5]||0,U[6]||0,L)}}return new Date(B)}(j),this.init()},P.init=function(){var j=this.$d;this.$y=j.getFullYear(),this.$M=j.getMonth(),this.$D=j.getDate(),this.$W=j.getDay(),this.$H=j.getHours(),this.$m=j.getMinutes(),this.$s=j.getSeconds(),this.$ms=j.getMilliseconds()},P.$utils=function(){return H},P.isValid=function(){return this.$d.toString()!==p},P.isSame=function(j,W){var B=I(j);return this.startOf(W)<=B&&B<=this.endOf(W)},P.isAfter=function(j,W){return I(j)"u"}static get isNode(){return typeof process<"u"&&process.release&&process.release.name==="node"}}function Ul(t,e){let r="";return Fi(t)?(r=`Binary data of length ${t.byteLength}`,e&&(r+=`. Content: '${jX(t)}'`)):typeof t=="string"&&(r=`String data of length ${t.length}`,e&&(r+=`. Content: '${t}'`)),r}function jX(t){const e=new Uint8Array(t);let r="";return e.forEach(o=>{const n=o<16?"0":"";r+=`0x${n}${o.toString(16)} `}),r.substr(0,r.length-1)}function Fi(t){return t&&typeof ArrayBuffer<"u"&&(t instanceof ArrayBuffer||t.constructor&&t.constructor.name==="ArrayBuffer")}async function V5(t,e,r,o,n,i){const a={},[s,l]=ss();a[s]=l,t.log($.Trace,`(${e} transport) sending data. ${Ul(n,i.logMessageContent)}.`);const c=Fi(n)?"arraybuffer":"text",u=await r.post(o,{content:n,headers:{...a,...i.headers},responseType:c,timeout:i.timeout,withCredentials:i.withCredentials});t.log($.Trace,`(${e} transport) request complete. Response status: ${u.statusCode}.`)}function DX(t){return t===void 0?new Od($.Information):t===null?as.instance:t.log!==void 0?t:new Od(t)}class FX{constructor(e,r){this._subject=e,this._observer=r}dispose(){const e=this._subject.observers.indexOf(this._observer);e>-1&&this._subject.observers.splice(e,1),this._subject.observers.length===0&&this._subject.cancelCallback&&this._subject.cancelCallback().catch(r=>{})}}class Od{constructor(e){this._minLevel=e,this.out=console}log(e,r){if(e>=this._minLevel){const o=`[${new Date().toISOString()}] ${$[e]}: ${r}`;switch(e){case $.Critical:case $.Error:this.out.error(o);break;case $.Warning:this.out.warn(o);break;case $.Information:this.out.info(o);break;default:this.out.log(o);break}}}}function ss(){let t="X-SignalR-User-Agent";return Ze.isNode&&(t="User-Agent"),[t,qX(OX,LX(),UX(),HX())]}function qX(t,e,r,o){let n="Microsoft SignalR/";const i=t.split(".");return n+=`${i[0]}.${i[1]}`,n+=` (${t}; `,e&&e!==""?n+=`${e}; `:n+="Unknown OS; ",n+=`${r}`,o?n+=`; ${o}`:n+="; Unknown Runtime Version",n+=")",n}function LX(){if(Ze.isNode)switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}else return""}function HX(){if(Ze.isNode)return process.versions.node}function UX(){return Ze.isNode?"NodeJS":"Browser"}function ik(t){return t.stack?t.stack:t.message?t.message:`${t}`}function $X(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("could not find global")}function KX(t){return typeof fetch>"u"||Ze.isNode?(t._jar=new(require("tough-cookie")).CookieJar,typeof fetch>"u"?t._fetchType=require("node-fetch"):t._fetchType=fetch,t._fetchType=require("fetch-cookie")(t._fetchType,t._jar),!0):!1}function WX(t){return typeof AbortController>"u"?(t._abortControllerType=require("abort-controller"),!0):!1}function VX(){return require("ws")}function GX(){return require("eventsource")}class XX extends Uf{constructor(e){super(),this._logger=e;const r={_fetchType:void 0,_jar:void 0};KX(r)?(this._fetchType=r._fetchType,this._jar=r._jar):this._fetchType=fetch.bind($X()),this._abortControllerType=AbortController;const o={_abortControllerType:this._abortControllerType};WX(o)&&(this._abortControllerType=o._abortControllerType)}async send(e){if(e.abortSignal&&e.abortSignal.aborted)throw new Jr;if(!e.method)throw new Error("No method defined.");if(!e.url)throw new Error("No url defined.");const r=new this._abortControllerType;let o;e.abortSignal&&(e.abortSignal.onabort=()=>{r.abort(),o=new Jr});let n=null;if(e.timeout){const l=e.timeout;n=setTimeout(()=>{r.abort(),this._logger.log($.Warning,"Timeout from HTTP request."),o=new Q1},l)}e.content===""&&(e.content=void 0),e.content&&(e.headers=e.headers||{},Fi(e.content)?e.headers["Content-Type"]="application/octet-stream":e.headers["Content-Type"]="text/plain;charset=UTF-8");let i;try{i=await this._fetchType(e.url,{body:e.content,cache:"no-cache",credentials:e.withCredentials===!0?"include":"same-origin",headers:{"X-Requested-With":"XMLHttpRequest",...e.headers},method:e.method,mode:"cors",redirect:"follow",signal:r.signal})}catch(l){throw o||(this._logger.log($.Warning,`Error from HTTP request. ${l}.`),l)}finally{n&&clearTimeout(n),e.abortSignal&&(e.abortSignal.onabort=null)}if(!i.ok){const l=await ak(i,"text");throw new xi(l||i.statusText,i.status)}const s=await ak(i,e.responseType);return new W5(i.status,i.statusText,s)}getCookieString(e){let r="";return Ze.isNode&&this._jar&&this._jar.getCookies(e,(o,n)=>r=n.join("; ")),r}}function ak(t,e){let r;switch(e){case"arraybuffer":r=t.arrayBuffer();break;case"text":r=t.text();break;case"blob":case"document":case"json":throw new Error(`${e} is not supported.`);default:r=t.text();break}return r}class YX extends Uf{constructor(e){super(),this._logger=e}send(e){return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new Jr):e.method?e.url?new Promise((r,o)=>{const n=new XMLHttpRequest;n.open(e.method,e.url,!0),n.withCredentials=e.withCredentials===void 0?!0:e.withCredentials,n.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.content===""&&(e.content=void 0),e.content&&(Fi(e.content)?n.setRequestHeader("Content-Type","application/octet-stream"):n.setRequestHeader("Content-Type","text/plain;charset=UTF-8"));const i=e.headers;i&&Object.keys(i).forEach(a=>{n.setRequestHeader(a,i[a])}),e.responseType&&(n.responseType=e.responseType),e.abortSignal&&(e.abortSignal.onabort=()=>{n.abort(),o(new Jr)}),e.timeout&&(n.timeout=e.timeout),n.onload=()=>{e.abortSignal&&(e.abortSignal.onabort=null),n.status>=200&&n.status<300?r(new W5(n.status,n.statusText,n.response||n.responseText)):o(new xi(n.response||n.responseText||n.statusText,n.status))},n.onerror=()=>{this._logger.log($.Warning,`Error from HTTP request. ${n.status}: ${n.statusText}.`),o(new xi(n.statusText,n.status))},n.ontimeout=()=>{this._logger.log($.Warning,"Timeout from HTTP request."),o(new Q1)},n.send(e.content)}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}}class ZX extends Uf{constructor(e){if(super(),typeof fetch<"u"||Ze.isNode)this._httpClient=new XX(e);else if(typeof XMLHttpRequest<"u")this._httpClient=new YX(e);else throw new Error("No usable HttpClient found.")}send(e){return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new Jr):e.method?e.url?this._httpClient.send(e):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(e){return this._httpClient.getCookieString(e)}}class yr{static write(e){return`${e}${yr.RecordSeparator}`}static parse(e){if(e[e.length-1]!==yr.RecordSeparator)throw new Error("Message is incomplete.");const r=e.split(yr.RecordSeparator);return r.pop(),r}}yr.RecordSeparatorCode=30;yr.RecordSeparator=String.fromCharCode(yr.RecordSeparatorCode);class QX{writeHandshakeRequest(e){return yr.write(JSON.stringify(e))}parseHandshakeResponse(e){let r,o;if(Fi(e)){const s=new Uint8Array(e),l=s.indexOf(yr.RecordSeparatorCode);if(l===-1)throw new Error("Message is incomplete.");const c=l+1;r=String.fromCharCode.apply(null,Array.prototype.slice.call(s.slice(0,c))),o=s.byteLength>c?s.slice(c).buffer:null}else{const s=e,l=s.indexOf(yr.RecordSeparator);if(l===-1)throw new Error("Message is incomplete.");const c=l+1;r=s.substring(0,c),o=s.length>c?s.substring(c):null}const n=yr.parse(r),i=JSON.parse(n[0]);if(i.type)throw new Error("Expected a handshake response from the server.");return[o,i]}}var J;(function(t){t[t.Invocation=1]="Invocation",t[t.StreamItem=2]="StreamItem",t[t.Completion=3]="Completion",t[t.StreamInvocation=4]="StreamInvocation",t[t.CancelInvocation=5]="CancelInvocation",t[t.Ping=6]="Ping",t[t.Close=7]="Close",t[t.Ack=8]="Ack",t[t.Sequence=9]="Sequence"})(J||(J={}));let JX=class{constructor(){this.observers=[]}next(e){for(const r of this.observers)r.next(e)}error(e){for(const r of this.observers)r.error&&r.error(e)}complete(){for(const e of this.observers)e.complete&&e.complete()}subscribe(e){return this.observers.push(e),new FX(this,e)}};class eY{constructor(e,r,o){this._bufferSize=1e5,this._messages=[],this._totalMessageCount=0,this._waitForSequenceMessage=!1,this._nextReceivingSequenceId=1,this._latestReceivedSequenceId=0,this._bufferedByteCount=0,this._reconnectInProgress=!1,this._protocol=e,this._connection=r,this._bufferSize=o}async _send(e){const r=this._protocol.writeMessage(e);let o=Promise.resolve();if(this._isInvocationMessage(e)){this._totalMessageCount++;let n=()=>{},i=()=>{};Fi(r)?this._bufferedByteCount+=r.byteLength:this._bufferedByteCount+=r.length,this._bufferedByteCount>=this._bufferSize&&(o=new Promise((a,s)=>{n=a,i=s})),this._messages.push(new tY(r,this._totalMessageCount,n,i))}try{this._reconnectInProgress||await this._connection.send(r)}catch{this._disconnected()}await o}_ack(e){let r=-1;for(let o=0;othis._nextReceivingSequenceId){this._connection.stop(new Error("Sequence ID greater than amount of messages we've received."));return}this._nextReceivingSequenceId=e.sequenceId}_disconnected(){this._reconnectInProgress=!0,this._waitForSequenceMessage=!0}async _resend(){const e=this._messages.length!==0?this._messages[0]._id:this._totalMessageCount+1;await this._connection.send(this._protocol.writeMessage({type:J.Sequence,sequenceId:e}));const r=this._messages;for(const o of r)await this._connection.send(o._message);this._reconnectInProgress=!1}_dispose(e){e??(e=new Error("Unable to reconnect to server."));for(const r of this._messages)r._rejector(e)}_isInvocationMessage(e){switch(e.type){case J.Invocation:case J.StreamItem:case J.Completion:case J.StreamInvocation:case J.CancelInvocation:return!0;case J.Close:case J.Sequence:case J.Ping:case J.Ack:return!1}}_ackTimer(){this._ackTimerHandle===void 0&&(this._ackTimerHandle=setTimeout(async()=>{try{this._reconnectInProgress||await this._connection.send(this._protocol.writeMessage({type:J.Ack,sequenceId:this._latestReceivedSequenceId}))}catch{}clearTimeout(this._ackTimerHandle),this._ackTimerHandle=void 0},1e3))}}class tY{constructor(e,r,o,n){this._message=e,this._id=r,this._resolver=o,this._rejector=n}}const rY=30*1e3,oY=15*1e3,nY=1e5;var Le;(function(t){t.Disconnected="Disconnected",t.Connecting="Connecting",t.Connected="Connected",t.Disconnecting="Disconnecting",t.Reconnecting="Reconnecting"})(Le||(Le={}));class J1{static create(e,r,o,n,i,a,s){return new J1(e,r,o,n,i,a,s)}constructor(e,r,o,n,i,a,s){this._nextKeepAlive=0,this._freezeEventListener=()=>{this._logger.log($.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},pt.isRequired(e,"connection"),pt.isRequired(r,"logger"),pt.isRequired(o,"protocol"),this.serverTimeoutInMilliseconds=i??rY,this.keepAliveIntervalInMilliseconds=a??oY,this._statefulReconnectBufferSize=s??nY,this._logger=r,this._protocol=o,this.connection=e,this._reconnectPolicy=n,this._handshakeProtocol=new QX,this.connection.onreceive=l=>this._processIncomingData(l),this.connection.onclose=l=>this._connectionClosed(l),this._callbacks={},this._methods={},this._closedCallbacks=[],this._reconnectingCallbacks=[],this._reconnectedCallbacks=[],this._invocationId=0,this._receivedHandshakeResponse=!1,this._connectionState=Le.Disconnected,this._connectionStarted=!1,this._cachedPingMessage=this._protocol.writeMessage({type:J.Ping})}get state(){return this._connectionState}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(e){if(this._connectionState!==Le.Disconnected&&this._connectionState!==Le.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!e)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=e}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}async _startWithStateTransitions(){if(this._connectionState!==Le.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));this._connectionState=Le.Connecting,this._logger.log($.Debug,"Starting HubConnection.");try{await this._startInternal(),Ze.isBrowser&&window.document.addEventListener("freeze",this._freezeEventListener),this._connectionState=Le.Connected,this._connectionStarted=!0,this._logger.log($.Debug,"HubConnection connected successfully.")}catch(e){return this._connectionState=Le.Disconnected,this._logger.log($.Debug,`HubConnection failed to start successfully because of error '${e}'.`),Promise.reject(e)}}async _startInternal(){this._stopDuringStartError=void 0,this._receivedHandshakeResponse=!1;const e=new Promise((r,o)=>{this._handshakeResolver=r,this._handshakeRejecter=o});await this.connection.start(this._protocol.transferFormat);try{let r=this._protocol.version;this.connection.features.reconnect||(r=1);const o={protocol:this._protocol.name,version:r};if(this._logger.log($.Debug,"Sending handshake request."),await this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(o)),this._logger.log($.Information,`Using HubProtocol '${this._protocol.name}'.`),this._cleanupTimeout(),this._resetTimeoutPeriod(),this._resetKeepAliveInterval(),await e,this._stopDuringStartError)throw this._stopDuringStartError;(this.connection.features.reconnect||!1)&&(this._messageBuffer=new eY(this._protocol,this.connection,this._statefulReconnectBufferSize),this.connection.features.disconnected=this._messageBuffer._disconnected.bind(this._messageBuffer),this.connection.features.resend=()=>{if(this._messageBuffer)return this._messageBuffer._resend()}),this.connection.features.inherentKeepAlive||await this._sendMessage(this._cachedPingMessage)}catch(r){throw this._logger.log($.Debug,`Hub handshake failed with error '${r}' during start(). Stopping HubConnection.`),this._cleanupTimeout(),this._cleanupPingTimer(),await this.connection.stop(r),r}}async stop(){const e=this._startPromise;this.connection.features.reconnect=!1,this._stopPromise=this._stopInternal(),await this._stopPromise;try{await e}catch{}}_stopInternal(e){if(this._connectionState===Le.Disconnected)return this._logger.log($.Debug,`Call to HubConnection.stop(${e}) ignored because it is already in the disconnected state.`),Promise.resolve();if(this._connectionState===Le.Disconnecting)return this._logger.log($.Debug,`Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;const r=this._connectionState;return this._connectionState=Le.Disconnecting,this._logger.log($.Debug,"Stopping HubConnection."),this._reconnectDelayHandle?(this._logger.log($.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this._reconnectDelayHandle),this._reconnectDelayHandle=void 0,this._completeClose(),Promise.resolve()):(r===Le.Connected&&this._sendCloseMessage(),this._cleanupTimeout(),this._cleanupPingTimer(),this._stopDuringStartError=e||new Jr("The connection was stopped before the hub handshake could complete."),this.connection.stop(e))}async _sendCloseMessage(){try{await this._sendWithProtocol(this._createCloseMessage())}catch{}}stream(e,...r){const[o,n]=this._replaceStreamingParams(r),i=this._createStreamInvocation(e,r,n);let a;const s=new JX;return s.cancelCallback=()=>{const l=this._createCancelInvocation(i.invocationId);return delete this._callbacks[i.invocationId],a.then(()=>this._sendWithProtocol(l))},this._callbacks[i.invocationId]=(l,c)=>{if(c){s.error(c);return}else l&&(l.type===J.Completion?l.error?s.error(new Error(l.error)):s.complete():s.next(l.item))},a=this._sendWithProtocol(i).catch(l=>{s.error(l),delete this._callbacks[i.invocationId]}),this._launchStreams(o,a),s}_sendMessage(e){return this._resetKeepAliveInterval(),this.connection.send(e)}_sendWithProtocol(e){return this._messageBuffer?this._messageBuffer._send(e):this._sendMessage(this._protocol.writeMessage(e))}send(e,...r){const[o,n]=this._replaceStreamingParams(r),i=this._sendWithProtocol(this._createInvocation(e,r,!0,n));return this._launchStreams(o,i),i}invoke(e,...r){const[o,n]=this._replaceStreamingParams(r),i=this._createInvocation(e,r,!1,n);return new Promise((s,l)=>{this._callbacks[i.invocationId]=(u,d)=>{if(d){l(d);return}else u&&(u.type===J.Completion?u.error?l(new Error(u.error)):s(u.result):l(new Error(`Unexpected message type: ${u.type}`)))};const c=this._sendWithProtocol(i).catch(u=>{l(u),delete this._callbacks[i.invocationId]});this._launchStreams(o,c)})}on(e,r){!e||!r||(e=e.toLowerCase(),this._methods[e]||(this._methods[e]=[]),this._methods[e].indexOf(r)===-1&&this._methods[e].push(r))}off(e,r){if(!e)return;e=e.toLowerCase();const o=this._methods[e];if(o)if(r){const n=o.indexOf(r);n!==-1&&(o.splice(n,1),o.length===0&&delete this._methods[e])}else delete this._methods[e]}onclose(e){e&&this._closedCallbacks.push(e)}onreconnecting(e){e&&this._reconnectingCallbacks.push(e)}onreconnected(e){e&&this._reconnectedCallbacks.push(e)}_processIncomingData(e){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(e=this._processHandshakeResponse(e),this._receivedHandshakeResponse=!0),e){const r=this._protocol.parseMessages(e,this._logger);for(const o of r)if(!(this._messageBuffer&&!this._messageBuffer._shouldProcessMessage(o)))switch(o.type){case J.Invocation:this._invokeClientMethod(o);break;case J.StreamItem:case J.Completion:{const n=this._callbacks[o.invocationId];if(n){o.type===J.Completion&&delete this._callbacks[o.invocationId];try{n(o)}catch(i){this._logger.log($.Error,`Stream callback threw error: ${ik(i)}`)}}break}case J.Ping:break;case J.Close:{this._logger.log($.Information,"Close message received from server.");const n=o.error?new Error("Server returned an error on close: "+o.error):void 0;o.allowReconnect===!0?this.connection.stop(n):this._stopPromise=this._stopInternal(n);break}case J.Ack:this._messageBuffer&&this._messageBuffer._ack(o);break;case J.Sequence:this._messageBuffer&&this._messageBuffer._resetSequence(o);break;default:this._logger.log($.Warning,`Invalid message type: ${o.type}.`);break}}this._resetTimeoutPeriod()}_processHandshakeResponse(e){let r,o;try{[o,r]=this._handshakeProtocol.parseHandshakeResponse(e)}catch(n){const i="Error parsing handshake response: "+n;this._logger.log($.Error,i);const a=new Error(i);throw this._handshakeRejecter(a),a}if(r.error){const n="Server returned handshake error: "+r.error;this._logger.log($.Error,n);const i=new Error(n);throw this._handshakeRejecter(i),i}else this._logger.log($.Debug,"Server handshake complete.");return this._handshakeResolver(),o}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=new Date().getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer())}_resetTimeoutPeriod(){if((!this.connection.features||!this.connection.features.inherentKeepAlive)&&(this._timeoutHandle=setTimeout(()=>this.serverTimeout(),this.serverTimeoutInMilliseconds),this._pingServerHandle===void 0)){let e=this._nextKeepAlive-new Date().getTime();e<0&&(e=0),this._pingServerHandle=setTimeout(async()=>{if(this._connectionState===Le.Connected)try{await this._sendMessage(this._cachedPingMessage)}catch{this._cleanupPingTimer()}},e)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}async _invokeClientMethod(e){const r=e.target.toLowerCase(),o=this._methods[r];if(!o){this._logger.log($.Warning,`No client method with the name '${r}' found.`),e.invocationId&&(this._logger.log($.Warning,`No result given for '${r}' method and invocation ID '${e.invocationId}'.`),await this._sendWithProtocol(this._createCompletionMessage(e.invocationId,"Client didn't provide a result.",null)));return}const n=o.slice(),i=!!e.invocationId;let a,s,l;for(const c of n)try{const u=a;a=await c.apply(this,e.arguments),i&&a&&u&&(this._logger.log($.Error,`Multiple results provided for '${r}'. Sending error to server.`),l=this._createCompletionMessage(e.invocationId,"Client provided multiple results.",null)),s=void 0}catch(u){s=u,this._logger.log($.Error,`A callback for the method '${r}' threw error '${u}'.`)}l?await this._sendWithProtocol(l):i?(s?l=this._createCompletionMessage(e.invocationId,`${s}`,null):a!==void 0?l=this._createCompletionMessage(e.invocationId,null,a):(this._logger.log($.Warning,`No result given for '${r}' method and invocation ID '${e.invocationId}'.`),l=this._createCompletionMessage(e.invocationId,"Client didn't provide a result.",null)),await this._sendWithProtocol(l)):a&&this._logger.log($.Error,`Result given for '${r}' method but server is not expecting a result.`)}_connectionClosed(e){this._logger.log($.Debug,`HubConnection.connectionClosed(${e}) called while in state ${this._connectionState}.`),this._stopDuringStartError=this._stopDuringStartError||e||new Jr("The underlying connection was closed before the hub handshake could complete."),this._handshakeResolver&&this._handshakeResolver(),this._cancelCallbacksWithError(e||new Error("Invocation canceled due to the underlying connection being closed.")),this._cleanupTimeout(),this._cleanupPingTimer(),this._connectionState===Le.Disconnecting?this._completeClose(e):this._connectionState===Le.Connected&&this._reconnectPolicy?this._reconnect(e):this._connectionState===Le.Connected&&this._completeClose(e)}_completeClose(e){if(this._connectionStarted){this._connectionState=Le.Disconnected,this._connectionStarted=!1,this._messageBuffer&&(this._messageBuffer._dispose(e??new Error("Connection closed.")),this._messageBuffer=void 0),Ze.isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach(r=>r.apply(this,[e]))}catch(r){this._logger.log($.Error,`An onclose callback called with error '${e}' threw error '${r}'.`)}}}async _reconnect(e){const r=Date.now();let o=0,n=e!==void 0?e:new Error("Attempting to reconnect due to a unknown error."),i=this._getNextRetryDelay(o++,0,n);if(i===null){this._logger.log($.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),this._completeClose(e);return}if(this._connectionState=Le.Reconnecting,e?this._logger.log($.Information,`Connection reconnecting because of error '${e}'.`):this._logger.log($.Information,"Connection reconnecting."),this._reconnectingCallbacks.length!==0){try{this._reconnectingCallbacks.forEach(a=>a.apply(this,[e]))}catch(a){this._logger.log($.Error,`An onreconnecting callback called with error '${e}' threw error '${a}'.`)}if(this._connectionState!==Le.Reconnecting){this._logger.log($.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.");return}}for(;i!==null;){if(this._logger.log($.Information,`Reconnect attempt number ${o} will start in ${i} ms.`),await new Promise(a=>{this._reconnectDelayHandle=setTimeout(a,i)}),this._reconnectDelayHandle=void 0,this._connectionState!==Le.Reconnecting){this._logger.log($.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");return}try{if(await this._startInternal(),this._connectionState=Le.Connected,this._logger.log($.Information,"HubConnection reconnected successfully."),this._reconnectedCallbacks.length!==0)try{this._reconnectedCallbacks.forEach(a=>a.apply(this,[this.connection.connectionId]))}catch(a){this._logger.log($.Error,`An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${a}'.`)}return}catch(a){if(this._logger.log($.Information,`Reconnect attempt failed because of error '${a}'.`),this._connectionState!==Le.Reconnecting){this._logger.log($.Debug,`Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`),this._connectionState===Le.Disconnecting&&this._completeClose();return}n=a instanceof Error?a:new Error(a.toString()),i=this._getNextRetryDelay(o++,Date.now()-r,n)}}this._logger.log($.Information,`Reconnect retries have been exhausted after ${Date.now()-r} ms and ${o} failed attempts. Connection disconnecting.`),this._completeClose()}_getNextRetryDelay(e,r,o){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:r,previousRetryCount:e,retryReason:o})}catch(n){return this._logger.log($.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${e}, ${r}) threw error '${n}'.`),null}}_cancelCallbacksWithError(e){const r=this._callbacks;this._callbacks={},Object.keys(r).forEach(o=>{const n=r[o];try{n(null,e)}catch(i){this._logger.log($.Error,`Stream 'error' callback called with '${e}' threw error: ${ik(i)}`)}})}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=void 0)}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle)}_createInvocation(e,r,o,n){if(o)return n.length!==0?{arguments:r,streamIds:n,target:e,type:J.Invocation}:{arguments:r,target:e,type:J.Invocation};{const i=this._invocationId;return this._invocationId++,n.length!==0?{arguments:r,invocationId:i.toString(),streamIds:n,target:e,type:J.Invocation}:{arguments:r,invocationId:i.toString(),target:e,type:J.Invocation}}}_launchStreams(e,r){if(e.length!==0){r||(r=Promise.resolve());for(const o in e)e[o].subscribe({complete:()=>{r=r.then(()=>this._sendWithProtocol(this._createCompletionMessage(o)))},error:n=>{let i;n instanceof Error?i=n.message:n&&n.toString?i=n.toString():i="Unknown error",r=r.then(()=>this._sendWithProtocol(this._createCompletionMessage(o,i)))},next:n=>{r=r.then(()=>this._sendWithProtocol(this._createStreamItemMessage(o,n)))}})}}_replaceStreamingParams(e){const r=[],o=[];for(let n=0;n0)&&(r=!1,this._accessToken=await this._accessTokenFactory()),this._setAuthorizationHeader(e);const o=await this._innerClient.send(e);return r&&o.statusCode===401&&this._accessTokenFactory?(this._accessToken=await this._accessTokenFactory(),this._setAuthorizationHeader(e),await this._innerClient.send(e)):o}_setAuthorizationHeader(e){e.headers||(e.headers={}),this._accessToken?e.headers[Ci.Authorization]=`Bearer ${this._accessToken}`:this._accessTokenFactory&&e.headers[Ci.Authorization]&&delete e.headers[Ci.Authorization]}getCookieString(e){return this._innerClient.getCookieString(e)}}var wt;(function(t){t[t.None=0]="None",t[t.WebSockets=1]="WebSockets",t[t.ServerSentEvents=2]="ServerSentEvents",t[t.LongPolling=4]="LongPolling"})(wt||(wt={}));var Mt;(function(t){t[t.Text=1]="Text",t[t.Binary=2]="Binary"})(Mt||(Mt={}));let sY=class{constructor(){this._isAborted=!1,this.onabort=null}abort(){this._isAborted||(this._isAborted=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this._isAborted}};class lk{get pollAborted(){return this._pollAbort.aborted}constructor(e,r,o){this._httpClient=e,this._logger=r,this._pollAbort=new sY,this._options=o,this._running=!1,this.onreceive=null,this.onclose=null}async connect(e,r){if(pt.isRequired(e,"url"),pt.isRequired(r,"transferFormat"),pt.isIn(r,Mt,"transferFormat"),this._url=e,this._logger.log($.Trace,"(LongPolling transport) Connecting."),r===Mt.Binary&&typeof XMLHttpRequest<"u"&&typeof new XMLHttpRequest().responseType!="string")throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[o,n]=ss(),i={[o]:n,...this._options.headers},a={abortSignal:this._pollAbort.signal,headers:i,timeout:1e5,withCredentials:this._options.withCredentials};r===Mt.Binary&&(a.responseType="arraybuffer");const s=`${e}&_=${Date.now()}`;this._logger.log($.Trace,`(LongPolling transport) polling: ${s}.`);const l=await this._httpClient.get(s,a);l.statusCode!==200?(this._logger.log($.Error,`(LongPolling transport) Unexpected response code: ${l.statusCode}.`),this._closeError=new xi(l.statusText||"",l.statusCode),this._running=!1):this._running=!0,this._receiving=this._poll(this._url,a)}async _poll(e,r){try{for(;this._running;)try{const o=`${e}&_=${Date.now()}`;this._logger.log($.Trace,`(LongPolling transport) polling: ${o}.`);const n=await this._httpClient.get(o,r);n.statusCode===204?(this._logger.log($.Information,"(LongPolling transport) Poll terminated by server."),this._running=!1):n.statusCode!==200?(this._logger.log($.Error,`(LongPolling transport) Unexpected response code: ${n.statusCode}.`),this._closeError=new xi(n.statusText||"",n.statusCode),this._running=!1):n.content?(this._logger.log($.Trace,`(LongPolling transport) data received. ${Ul(n.content,this._options.logMessageContent)}.`),this.onreceive&&this.onreceive(n.content)):this._logger.log($.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(o){this._running?o instanceof Q1?this._logger.log($.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this._closeError=o,this._running=!1):this._logger.log($.Trace,`(LongPolling transport) Poll errored after shutdown: ${o.message}`)}}finally{this._logger.log($.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this._raiseOnClose()}}async send(e){return this._running?V5(this._logger,"LongPolling",this._httpClient,this._url,e,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}async stop(){this._logger.log($.Trace,"(LongPolling transport) Stopping polling."),this._running=!1,this._pollAbort.abort();try{await this._receiving,this._logger.log($.Trace,`(LongPolling transport) sending DELETE request to ${this._url}.`);const e={},[r,o]=ss();e[r]=o;const n={headers:{...e,...this._options.headers},timeout:this._options.timeout,withCredentials:this._options.withCredentials};let i;try{await this._httpClient.delete(this._url,n)}catch(a){i=a}i?i instanceof xi&&(i.statusCode===404?this._logger.log($.Trace,"(LongPolling transport) A 404 response was returned from sending a DELETE request."):this._logger.log($.Trace,`(LongPolling transport) Error sending a DELETE request: ${i}`)):this._logger.log($.Trace,"(LongPolling transport) DELETE request accepted.")}finally{this._logger.log($.Trace,"(LongPolling transport) Stop finished."),this._raiseOnClose()}}_raiseOnClose(){if(this.onclose){let e="(LongPolling transport) Firing onclose event.";this._closeError&&(e+=" Error: "+this._closeError),this._logger.log($.Trace,e),this.onclose(this._closeError)}}}class lY{constructor(e,r,o,n){this._httpClient=e,this._accessToken=r,this._logger=o,this._options=n,this.onreceive=null,this.onclose=null}async connect(e,r){return pt.isRequired(e,"url"),pt.isRequired(r,"transferFormat"),pt.isIn(r,Mt,"transferFormat"),this._logger.log($.Trace,"(SSE transport) Connecting."),this._url=e,this._accessToken&&(e+=(e.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(this._accessToken)}`),new Promise((o,n)=>{let i=!1;if(r!==Mt.Text){n(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));return}let a;if(Ze.isBrowser||Ze.isWebWorker)a=new this._options.EventSource(e,{withCredentials:this._options.withCredentials});else{const s=this._httpClient.getCookieString(e),l={};l.Cookie=s;const[c,u]=ss();l[c]=u,a=new this._options.EventSource(e,{withCredentials:this._options.withCredentials,headers:{...l,...this._options.headers}})}try{a.onmessage=s=>{if(this.onreceive)try{this._logger.log($.Trace,`(SSE transport) data received. ${Ul(s.data,this._options.logMessageContent)}.`),this.onreceive(s.data)}catch(l){this._close(l);return}},a.onerror=s=>{i?this._close():n(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."))},a.onopen=()=>{this._logger.log($.Information,`SSE connected to ${this._url}`),this._eventSource=a,i=!0,o()}}catch(s){n(s);return}})}async send(e){return this._eventSource?V5(this._logger,"SSE",this._httpClient,this._url,e,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}stop(){return this._close(),Promise.resolve()}_close(e){this._eventSource&&(this._eventSource.close(),this._eventSource=void 0,this.onclose&&this.onclose(e))}}class cY{constructor(e,r,o,n,i,a){this._logger=o,this._accessTokenFactory=r,this._logMessageContent=n,this._webSocketConstructor=i,this._httpClient=e,this.onreceive=null,this.onclose=null,this._headers=a}async connect(e,r){pt.isRequired(e,"url"),pt.isRequired(r,"transferFormat"),pt.isIn(r,Mt,"transferFormat"),this._logger.log($.Trace,"(WebSockets transport) Connecting.");let o;return this._accessTokenFactory&&(o=await this._accessTokenFactory()),new Promise((n,i)=>{e=e.replace(/^http/,"ws");let a;const s=this._httpClient.getCookieString(e);let l=!1;if(Ze.isNode||Ze.isReactNative){const c={},[u,d]=ss();c[u]=d,o&&(c[Ci.Authorization]=`Bearer ${o}`),s&&(c[Ci.Cookie]=s),a=new this._webSocketConstructor(e,void 0,{headers:{...c,...this._headers}})}else o&&(e+=(e.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(o)}`);a||(a=new this._webSocketConstructor(e)),r===Mt.Binary&&(a.binaryType="arraybuffer"),a.onopen=c=>{this._logger.log($.Information,`WebSocket connected to ${e}.`),this._webSocket=a,l=!0,n()},a.onerror=c=>{let u=null;typeof ErrorEvent<"u"&&c instanceof ErrorEvent?u=c.error:u="There was an error with the transport",this._logger.log($.Information,`(WebSockets transport) ${u}.`)},a.onmessage=c=>{if(this._logger.log($.Trace,`(WebSockets transport) data received. ${Ul(c.data,this._logMessageContent)}.`),this.onreceive)try{this.onreceive(c.data)}catch(u){this._close(u);return}},a.onclose=c=>{if(l)this._close(c);else{let u=null;typeof ErrorEvent<"u"&&c instanceof ErrorEvent?u=c.error:u="WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",i(new Error(u))}}})}send(e){return this._webSocket&&this._webSocket.readyState===this._webSocketConstructor.OPEN?(this._logger.log($.Trace,`(WebSockets transport) sending data. ${Ul(e,this._logMessageContent)}.`),this._webSocket.send(e),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this._webSocket&&this._close(void 0),Promise.resolve()}_close(e){this._webSocket&&(this._webSocket.onclose=()=>{},this._webSocket.onmessage=()=>{},this._webSocket.onerror=()=>{},this._webSocket.close(),this._webSocket=void 0),this._logger.log($.Trace,"(WebSockets transport) socket closed."),this.onclose&&(this._isCloseEvent(e)&&(e.wasClean===!1||e.code!==1e3)?this.onclose(new Error(`WebSocket closed with status code: ${e.code} (${e.reason||"no reason given"}).`)):e instanceof Error?this.onclose(e):this.onclose())}_isCloseEvent(e){return e&&typeof e.wasClean=="boolean"&&typeof e.code=="number"}}const ck=100;class uY{constructor(e,r={}){if(this._stopPromiseResolver=()=>{},this.features={},this._negotiateVersion=1,pt.isRequired(e,"url"),this._logger=DX(r.logger),this.baseUrl=this._resolveUrl(e),r=r||{},r.logMessageContent=r.logMessageContent===void 0?!1:r.logMessageContent,typeof r.withCredentials=="boolean"||r.withCredentials===void 0)r.withCredentials=r.withCredentials===void 0?!0:r.withCredentials;else throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");r.timeout=r.timeout===void 0?100*1e3:r.timeout;let o=null,n=null;Ze.isNode&&typeof require<"u"&&(o=VX(),n=GX()),!Ze.isNode&&typeof WebSocket<"u"&&!r.WebSocket?r.WebSocket=WebSocket:Ze.isNode&&!r.WebSocket&&o&&(r.WebSocket=o),!Ze.isNode&&typeof EventSource<"u"&&!r.EventSource?r.EventSource=EventSource:Ze.isNode&&!r.EventSource&&typeof n<"u"&&(r.EventSource=n),this._httpClient=new aY(r.httpClient||new ZX(this._logger),r.accessTokenFactory),this._connectionState="Disconnected",this._connectionStarted=!1,this._options=r,this.onreceive=null,this.onclose=null}async start(e){if(e=e||Mt.Binary,pt.isIn(e,Mt,"transferFormat"),this._logger.log($.Debug,`Starting connection with transfer format '${Mt[e]}'.`),this._connectionState!=="Disconnected")return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(this._connectionState="Connecting",this._startInternalPromise=this._startInternal(e),await this._startInternalPromise,this._connectionState==="Disconnecting"){const r="Failed to start the HttpConnection before stop() was called.";return this._logger.log($.Error,r),await this._stopPromise,Promise.reject(new Jr(r))}else if(this._connectionState!=="Connected"){const r="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return this._logger.log($.Error,r),Promise.reject(new Jr(r))}this._connectionStarted=!0}send(e){return this._connectionState!=="Connected"?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this._sendQueue||(this._sendQueue=new e0(this.transport)),this._sendQueue.send(e))}async stop(e){if(this._connectionState==="Disconnected")return this._logger.log($.Debug,`Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnected state.`),Promise.resolve();if(this._connectionState==="Disconnecting")return this._logger.log($.Debug,`Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;this._connectionState="Disconnecting",this._stopPromise=new Promise(r=>{this._stopPromiseResolver=r}),await this._stopInternal(e),await this._stopPromise}async _stopInternal(e){this._stopError=e;try{await this._startInternalPromise}catch{}if(this.transport){try{await this.transport.stop()}catch(r){this._logger.log($.Error,`HttpConnection.transport.stop() threw error '${r}'.`),this._stopConnection()}this.transport=void 0}else this._logger.log($.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")}async _startInternal(e){let r=this.baseUrl;this._accessTokenFactory=this._options.accessTokenFactory,this._httpClient._accessTokenFactory=this._accessTokenFactory;try{if(this._options.skipNegotiation)if(this._options.transport===wt.WebSockets)this.transport=this._constructTransport(wt.WebSockets),await this._startTransport(r,e);else throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");else{let o=null,n=0;do{if(o=await this._getNegotiationResponse(r),this._connectionState==="Disconnecting"||this._connectionState==="Disconnected")throw new Jr("The connection was stopped during negotiation.");if(o.error)throw new Error(o.error);if(o.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(o.url&&(r=o.url),o.accessToken){const i=o.accessToken;this._accessTokenFactory=()=>i,this._httpClient._accessToken=i,this._httpClient._accessTokenFactory=void 0}n++}while(o.url&&n0?Promise.reject(new MX(`Unable to connect to the server with any of the available transports. ${a.join(" ")}`,a)):Promise.reject(new Error("None of the transports supported by the client are supported by the server."))}_constructTransport(e){switch(e){case wt.WebSockets:if(!this._options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new cY(this._httpClient,this._accessTokenFactory,this._logger,this._options.logMessageContent,this._options.WebSocket,this._options.headers||{});case wt.ServerSentEvents:if(!this._options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new lY(this._httpClient,this._httpClient._accessToken,this._logger,this._options);case wt.LongPolling:return new lk(this._httpClient,this._logger,this._options);default:throw new Error(`Unknown transport: ${e}.`)}}_startTransport(e,r){return this.transport.onreceive=this.onreceive,this.features.reconnect?this.transport.onclose=async o=>{let n=!1;if(this.features.reconnect)try{this.features.disconnected(),await this.transport.connect(e,r),await this.features.resend()}catch{n=!0}else{this._stopConnection(o);return}n&&this._stopConnection(o)}:this.transport.onclose=o=>this._stopConnection(o),this.transport.connect(e,r)}_resolveTransportOrError(e,r,o,n){const i=wt[e.transport];if(i==null)return this._logger.log($.Debug,`Skipping transport '${e.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${e.transport}' because it is not supported by this client.`);if(dY(r,i))if(e.transferFormats.map(s=>Mt[s]).indexOf(o)>=0){if(i===wt.WebSockets&&!this._options.WebSocket||i===wt.ServerSentEvents&&!this._options.EventSource)return this._logger.log($.Debug,`Skipping transport '${wt[i]}' because it is not supported in your environment.'`),new NX(`'${wt[i]}' is not supported in your environment.`,i);this._logger.log($.Debug,`Selecting transport '${wt[i]}'.`);try{return this.features.reconnect=i===wt.WebSockets?n:void 0,this._constructTransport(i)}catch(s){return s}}else return this._logger.log($.Debug,`Skipping transport '${wt[i]}' because it does not support the requested transfer format '${Mt[o]}'.`),new Error(`'${wt[i]}' does not support ${Mt[o]}.`);else return this._logger.log($.Debug,`Skipping transport '${wt[i]}' because it was disabled by the client.`),new PX(`'${wt[i]}' is disabled by the client.`,i)}_isITransport(e){return e&&typeof e=="object"&&"connect"in e}_stopConnection(e){if(this._logger.log($.Debug,`HttpConnection.stopConnection(${e}) called while in state ${this._connectionState}.`),this.transport=void 0,e=this._stopError||e,this._stopError=void 0,this._connectionState==="Disconnected"){this._logger.log($.Debug,`Call to HttpConnection.stopConnection(${e}) was ignored because the connection is already in the disconnected state.`);return}if(this._connectionState==="Connecting")throw this._logger.log($.Warning,`Call to HttpConnection.stopConnection(${e}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${e}) was called while the connection is still in the connecting state.`);if(this._connectionState==="Disconnecting"&&this._stopPromiseResolver(),e?this._logger.log($.Error,`Connection disconnected with error '${e}'.`):this._logger.log($.Information,"Connection disconnected."),this._sendQueue&&(this._sendQueue.stop().catch(r=>{this._logger.log($.Error,`TransportSendQueue.stop() threw error '${r}'.`)}),this._sendQueue=void 0),this.connectionId=void 0,this._connectionState="Disconnected",this._connectionStarted){this._connectionStarted=!1;try{this.onclose&&this.onclose(e)}catch(r){this._logger.log($.Error,`HttpConnection.onclose(${e}) threw error '${r}'.`)}}}_resolveUrl(e){if(e.lastIndexOf("https://",0)===0||e.lastIndexOf("http://",0)===0)return e;if(!Ze.isBrowser)throw new Error(`Cannot resolve '${e}'.`);const r=window.document.createElement("a");return r.href=e,this._logger.log($.Information,`Normalizing '${e}' to '${r.href}'.`),r.href}_resolveNegotiateUrl(e){const r=new URL(e);r.pathname.endsWith("/")?r.pathname+="negotiate":r.pathname+="/negotiate";const o=new URLSearchParams(r.searchParams);return o.has("negotiateVersion")||o.append("negotiateVersion",this._negotiateVersion.toString()),o.has("useStatefulReconnect")?o.get("useStatefulReconnect")==="true"&&(this._options._useStatefulReconnect=!0):this._options._useStatefulReconnect===!0&&o.append("useStatefulReconnect","true"),r.search=o.toString(),r.toString()}}function dY(t,e){return!t||(e&t)!==0}class e0{constructor(e){this._transport=e,this._buffer=[],this._executing=!0,this._sendBufferedData=new au,this._transportResult=new au,this._sendLoopPromise=this._sendLoop()}send(e){return this._bufferData(e),this._transportResult||(this._transportResult=new au),this._transportResult.promise}stop(){return this._executing=!1,this._sendBufferedData.resolve(),this._sendLoopPromise}_bufferData(e){if(this._buffer.length&&typeof this._buffer[0]!=typeof e)throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof e}`);this._buffer.push(e),this._sendBufferedData.resolve()}async _sendLoop(){for(;;){if(await this._sendBufferedData.promise,!this._executing){this._transportResult&&this._transportResult.reject("Connection stopped.");break}this._sendBufferedData=new au;const e=this._transportResult;this._transportResult=void 0;const r=typeof this._buffer[0]=="string"?this._buffer.join(""):e0._concatBuffers(this._buffer);this._buffer.length=0;try{await this._transport.send(r),e.resolve()}catch(o){e.reject(o)}}}static _concatBuffers(e){const r=e.map(i=>i.byteLength).reduce((i,a)=>i+a),o=new Uint8Array(r);let n=0;for(const i of e)o.set(new Uint8Array(i),n),n+=i.byteLength;return o.buffer}}class au{constructor(){this.promise=new Promise((e,r)=>[this._resolver,this._rejecter]=[e,r])}resolve(){this._resolver()}reject(e){this._rejecter(e)}}const fY="json";class hY{constructor(){this.name=fY,this.version=2,this.transferFormat=Mt.Text}parseMessages(e,r){if(typeof e!="string")throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!e)return[];r===null&&(r=as.instance);const o=yr.parse(e),n=[];for(const i of o){const a=JSON.parse(i);if(typeof a.type!="number")throw new Error("Invalid payload.");switch(a.type){case J.Invocation:this._isInvocationMessage(a);break;case J.StreamItem:this._isStreamItemMessage(a);break;case J.Completion:this._isCompletionMessage(a);break;case J.Ping:break;case J.Close:break;case J.Ack:this._isAckMessage(a);break;case J.Sequence:this._isSequenceMessage(a);break;default:r.log($.Information,"Unknown message type '"+a.type+"' ignored.");continue}n.push(a)}return n}writeMessage(e){return yr.write(JSON.stringify(e))}_isInvocationMessage(e){this._assertNotEmptyString(e.target,"Invalid payload for Invocation message."),e.invocationId!==void 0&&this._assertNotEmptyString(e.invocationId,"Invalid payload for Invocation message.")}_isStreamItemMessage(e){if(this._assertNotEmptyString(e.invocationId,"Invalid payload for StreamItem message."),e.item===void 0)throw new Error("Invalid payload for StreamItem message.")}_isCompletionMessage(e){if(e.result&&e.error)throw new Error("Invalid payload for Completion message.");!e.result&&e.error&&this._assertNotEmptyString(e.error,"Invalid payload for Completion message."),this._assertNotEmptyString(e.invocationId,"Invalid payload for Completion message.")}_isAckMessage(e){if(typeof e.sequenceId!="number")throw new Error("Invalid SequenceId for Ack message.")}_isSequenceMessage(e){if(typeof e.sequenceId!="number")throw new Error("Invalid SequenceId for Sequence message.")}_assertNotEmptyString(e,r){if(typeof e!="string"||e==="")throw new Error(r)}}const gY={trace:$.Trace,debug:$.Debug,info:$.Information,information:$.Information,warn:$.Warning,warning:$.Warning,error:$.Error,critical:$.Critical,none:$.None};function pY(t){const e=gY[t.toLowerCase()];if(typeof e<"u")return e;throw new Error(`Unknown log level: ${t}`)}class uee{configureLogging(e){if(pt.isRequired(e,"logging"),mY(e))this.logger=e;else if(typeof e=="string"){const r=pY(e);this.logger=new Od(r)}else this.logger=new Od(e);return this}withUrl(e,r){return pt.isRequired(e,"url"),pt.isNotEmpty(e,"url"),this.url=e,typeof r=="object"?this.httpConnectionOptions={...this.httpConnectionOptions,...r}:this.httpConnectionOptions={...this.httpConnectionOptions,transport:r},this}withHubProtocol(e){return pt.isRequired(e,"protocol"),this.protocol=e,this}withAutomaticReconnect(e){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return e?Array.isArray(e)?this.reconnectPolicy=new sk(e):this.reconnectPolicy=e:this.reconnectPolicy=new sk,this}withServerTimeout(e){return pt.isRequired(e,"milliseconds"),this._serverTimeoutInMilliseconds=e,this}withKeepAliveInterval(e){return pt.isRequired(e,"milliseconds"),this._keepAliveIntervalInMilliseconds=e,this}withStatefulReconnect(e){return this.httpConnectionOptions===void 0&&(this.httpConnectionOptions={}),this.httpConnectionOptions._useStatefulReconnect=!0,this._statefulReconnectBufferSize=e?.bufferSize,this}build(){const e=this.httpConnectionOptions||{};if(e.logger===void 0&&(e.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");const r=new uY(this.url,e);return J1.create(r,this.logger||as.instance,this.protocol||new hY,this.reconnectPolicy,this._serverTimeoutInMilliseconds,this._keepAliveIntervalInMilliseconds,this._statefulReconnectBufferSize)}}function mY(t){return t.log!==void 0}var hi=4294967295;function vY(t,e,r){var o=r/4294967296,n=r;t.setUint32(e,o),t.setUint32(e+4,n)}function G5(t,e,r){var o=Math.floor(r/4294967296),n=r;t.setUint32(e,o),t.setUint32(e+4,n)}function X5(t,e){var r=t.getInt32(e),o=t.getUint32(e+4);return r*4294967296+o}function bY(t,e){var r=t.getUint32(e),o=t.getUint32(e+4);return r*4294967296+o}var t0={},rg,og,ng,$f=(typeof process>"u"||((rg=process==null?void 0:t0)===null||rg===void 0?void 0:rg.TEXT_ENCODING)!=="never")&&typeof TextEncoder<"u"&&typeof TextDecoder<"u";function uk(t){for(var e=t.length,r=0,o=0;o=55296&&n<=56319&&o>6&31|192;else{if(a>=55296&&a<=56319&&i>18&7|240,e[n++]=a>>12&63|128,e[n++]=a>>6&63|128):(e[n++]=a>>12&15|224,e[n++]=a>>6&63|128)}else{e[n++]=a;continue}e[n++]=a&63|128}}var dl=$f?new TextEncoder:void 0,wY=$f?typeof process<"u"&&((og=process==null?void 0:t0)===null||og===void 0?void 0:og.TEXT_ENCODING)!=="force"?200:0:hi;function kY(t,e,r){e.set(dl.encode(t),r)}function SY(t,e,r){dl.encodeInto(t,e.subarray(r))}var _Y=dl?.encodeInto?SY:kY,xY=4096;function Y5(t,e,r){for(var o=e,n=o+r,i=[],a="";o65535&&(d-=65536,i.push(d>>>10&1023|55296),d=56320|d&1023),i.push(d)}else i.push(s);i.length>=xY&&(a+=String.fromCharCode.apply(String,i),i.length=0)}return i.length>0&&(a+=String.fromCharCode.apply(String,i)),a}var CY=$f?new TextDecoder:null,TY=$f?typeof process<"u"&&((ng=process==null?void 0:t0)===null||ng===void 0?void 0:ng.TEXT_DECODER)!=="force"?200:0:hi;function EY(t,e,r){var o=t.subarray(e,e+r);return CY.decode(o)}var su=function(){function t(e,r){this.type=e,this.data=r}return t}(),BY=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=n[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function o(){this.constructor=e}e.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}}(),go=function(t){BY(e,t);function e(r){var o=t.call(this,r)||this,n=Object.create(e.prototype);return Object.setPrototypeOf(o,n),Object.defineProperty(o,"name",{configurable:!0,enumerable:!1,value:e.name}),o}return e}(Error),IY=-1,RY=4294967296-1,AY=17179869184-1;function NY(t){var e=t.sec,r=t.nsec;if(e>=0&&r>=0&&e<=AY)if(r===0&&e<=RY){var o=new Uint8Array(4),n=new DataView(o.buffer);return n.setUint32(0,e),o}else{var i=e/4294967296,a=e&4294967295,o=new Uint8Array(8),n=new DataView(o.buffer);return n.setUint32(0,r<<2|i&3),n.setUint32(4,a),o}else{var o=new Uint8Array(12),n=new DataView(o.buffer);return n.setUint32(0,r),G5(n,4,e),o}}function PY(t){var e=t.getTime(),r=Math.floor(e/1e3),o=(e-r*1e3)*1e6,n=Math.floor(o/1e9);return{sec:r+n,nsec:o-n*1e9}}function zY(t){if(t instanceof Date){var e=PY(t);return NY(e)}else return null}function MY(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength);switch(t.byteLength){case 4:{var r=e.getUint32(0),o=0;return{sec:r,nsec:o}}case 8:{var n=e.getUint32(0),i=e.getUint32(4),r=(n&3)*4294967296+i,o=n>>>2;return{sec:r,nsec:o}}case 12:{var r=X5(e,4),o=e.getUint32(0);return{sec:r,nsec:o}}default:throw new go("Unrecognized data size for timestamp (expected 4, 8, or 12): ".concat(t.length))}}function OY(t){var e=MY(t);return new Date(e.sec*1e3+e.nsec/1e6)}var jY={type:IY,encode:zY,decode:OY},Z5=function(){function t(){this.builtInEncoders=[],this.builtInDecoders=[],this.encoders=[],this.decoders=[],this.register(jY)}return t.prototype.register=function(e){var r=e.type,o=e.encode,n=e.decode;if(r>=0)this.encoders[r]=o,this.decoders[r]=n;else{var i=1+r;this.builtInEncoders[i]=o,this.builtInDecoders[i]=n}},t.prototype.tryToEncode=function(e,r){for(var o=0;othis.maxDepth)throw new Error("Too deep objects in depth ".concat(r));e==null?this.encodeNil():typeof e=="boolean"?this.encodeBoolean(e):typeof e=="number"?this.encodeNumber(e):typeof e=="string"?this.encodeString(e):this.encodeObject(e,r)},t.prototype.ensureBufferSizeToWrite=function(e){var r=this.pos+e;this.view.byteLength=0?e<128?this.writeU8(e):e<256?(this.writeU8(204),this.writeU8(e)):e<65536?(this.writeU8(205),this.writeU16(e)):e<4294967296?(this.writeU8(206),this.writeU32(e)):(this.writeU8(207),this.writeU64(e)):e>=-32?this.writeU8(224|e+32):e>=-128?(this.writeU8(208),this.writeI8(e)):e>=-32768?(this.writeU8(209),this.writeI16(e)):e>=-2147483648?(this.writeU8(210),this.writeI32(e)):(this.writeU8(211),this.writeI64(e)):this.forceFloat32?(this.writeU8(202),this.writeF32(e)):(this.writeU8(203),this.writeF64(e))},t.prototype.writeStringHeader=function(e){if(e<32)this.writeU8(160+e);else if(e<256)this.writeU8(217),this.writeU8(e);else if(e<65536)this.writeU8(218),this.writeU16(e);else if(e<4294967296)this.writeU8(219),this.writeU32(e);else throw new Error("Too long string: ".concat(e," bytes in UTF-8"))},t.prototype.encodeString=function(e){var r=5,o=e.length;if(o>wY){var n=uk(e);this.ensureBufferSizeToWrite(r+n),this.writeStringHeader(n),_Y(e,this.bytes,this.pos),this.pos+=n}else{var n=uk(e);this.ensureBufferSizeToWrite(r+n),this.writeStringHeader(n),yY(e,this.bytes,this.pos),this.pos+=n}},t.prototype.encodeObject=function(e,r){var o=this.extensionCodec.tryToEncode(e,this.context);if(o!=null)this.encodeExtension(o);else if(Array.isArray(e))this.encodeArray(e,r);else if(ArrayBuffer.isView(e))this.encodeBinary(e);else if(typeof e=="object")this.encodeMap(e,r);else throw new Error("Unrecognized object: ".concat(Object.prototype.toString.apply(e)))},t.prototype.encodeBinary=function(e){var r=e.byteLength;if(r<256)this.writeU8(196),this.writeU8(r);else if(r<65536)this.writeU8(197),this.writeU16(r);else if(r<4294967296)this.writeU8(198),this.writeU32(r);else throw new Error("Too large binary: ".concat(r));var o=jd(e);this.writeU8a(o)},t.prototype.encodeArray=function(e,r){var o=e.length;if(o<16)this.writeU8(144+o);else if(o<65536)this.writeU8(220),this.writeU16(o);else if(o<4294967296)this.writeU8(221),this.writeU32(o);else throw new Error("Too large array: ".concat(o));for(var n=0,i=e;n0&&e<=this.maxKeyLength},t.prototype.find=function(e,r,o){var n=this.caches[o-1];e:for(var i=0,a=n;i=this.maxLengthPerKey?o[Math.random()*o.length|0]=n:o.push(n)},t.prototype.decode=function(e,r,o){var n=this.find(e,r,o);if(n!=null)return this.hit++,n;this.miss++;var i=Y5(e,r,o),a=Uint8Array.prototype.slice.call(e,r,r+o);return this.store(a,i),i},t}(),KY=function(t,e,r,o){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{c(o.next(u))}catch(d){a(d)}}function l(u){try{c(o.throw(u))}catch(d){a(d)}}function c(u){u.done?i(u.value):n(u.value).then(s,l)}c((o=o.apply(t,e||[])).next())})},ag=function(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,n,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(u){return l([c,u])}}function l(c){if(o)throw new TypeError("Generator is already executing.");for(;r;)try{if(o=1,n&&(i=c[0]&2?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,n=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]1||s(f,h)})})}function s(f,h){try{l(o[f](h))}catch(g){d(i[0][3],g)}}function l(f){f.value instanceof Ma?Promise.resolve(f.value.v).then(c,u):d(i[0][2],f)}function c(f){s("next",f)}function u(f){s("throw",f)}function d(f,h){f(h),i.shift(),i.length&&s(i[0][0],i[0][1])}},VY=function(t){var e=typeof t;return e==="string"||e==="number"},Ps=-1,r0=new DataView(new ArrayBuffer(0)),GY=new Uint8Array(r0.buffer),im=function(){try{r0.getInt8(0)}catch(t){return t.constructor}throw new Error("never reached")}(),fk=new im("Insufficient data"),XY=new $Y,YY=function(){function t(e,r,o,n,i,a,s,l){e===void 0&&(e=Z5.defaultCodec),r===void 0&&(r=void 0),o===void 0&&(o=hi),n===void 0&&(n=hi),i===void 0&&(i=hi),a===void 0&&(a=hi),s===void 0&&(s=hi),l===void 0&&(l=XY),this.extensionCodec=e,this.context=r,this.maxStrLength=o,this.maxBinLength=n,this.maxArrayLength=i,this.maxMapLength=a,this.maxExtLength=s,this.keyDecoder=l,this.totalPos=0,this.pos=0,this.view=r0,this.bytes=GY,this.headByte=Ps,this.stack=[]}return t.prototype.reinitializeState=function(){this.totalPos=0,this.headByte=Ps,this.stack.length=0},t.prototype.setBuffer=function(e){this.bytes=jd(e),this.view=DY(this.bytes),this.pos=0},t.prototype.appendBuffer=function(e){if(this.headByte===Ps&&!this.hasRemaining(1))this.setBuffer(e);else{var r=this.bytes.subarray(this.pos),o=jd(e),n=new Uint8Array(r.length+o.length);n.set(r),n.set(o,r.length),this.setBuffer(n)}},t.prototype.hasRemaining=function(e){return this.view.byteLength-this.pos>=e},t.prototype.createExtraByteError=function(e){var r=this,o=r.view,n=r.pos;return new RangeError("Extra ".concat(o.byteLength-n," of ").concat(o.byteLength," byte(s) found at buffer[").concat(e,"]"))},t.prototype.decode=function(e){this.reinitializeState(),this.setBuffer(e);var r=this.doDecodeSync();if(this.hasRemaining(1))throw this.createExtraByteError(this.pos);return r},t.prototype.decodeMulti=function(e){return ag(this,function(r){switch(r.label){case 0:this.reinitializeState(),this.setBuffer(e),r.label=1;case 1:return this.hasRemaining(1)?[4,this.doDecodeSync()]:[3,3];case 2:return r.sent(),[3,1];case 3:return[2]}})},t.prototype.decodeAsync=function(e){var r,o,n,i;return KY(this,void 0,void 0,function(){var a,s,l,c,u,d,f,h;return ag(this,function(g){switch(g.label){case 0:a=!1,g.label=1;case 1:g.trys.push([1,6,7,12]),r=dk(e),g.label=2;case 2:return[4,r.next()];case 3:if(o=g.sent(),!!o.done)return[3,5];if(l=o.value,a)throw this.createExtraByteError(this.totalPos);this.appendBuffer(l);try{s=this.doDecodeSync(),a=!0}catch(p){if(!(p instanceof im))throw p}this.totalPos+=this.pos,g.label=4;case 4:return[3,2];case 5:return[3,12];case 6:return c=g.sent(),n={error:c},[3,12];case 7:return g.trys.push([7,,10,11]),o&&!o.done&&(i=r.return)?[4,i.call(r)]:[3,9];case 8:g.sent(),g.label=9;case 9:return[3,11];case 10:if(n)throw n.error;return[7];case 11:return[7];case 12:if(a){if(this.hasRemaining(1))throw this.createExtraByteError(this.totalPos);return[2,s]}throw u=this,d=u.headByte,f=u.pos,h=u.totalPos,new RangeError("Insufficient data in parsing ".concat(ig(d)," at ").concat(h," (").concat(f," in the current buffer)"))}})})},t.prototype.decodeArrayStream=function(e){return this.decodeMultiAsync(e,!0)},t.prototype.decodeStream=function(e){return this.decodeMultiAsync(e,!1)},t.prototype.decodeMultiAsync=function(e,r){return WY(this,arguments,function(){var n,i,a,s,l,c,u,d,f;return ag(this,function(h){switch(h.label){case 0:n=r,i=-1,h.label=1;case 1:h.trys.push([1,13,14,19]),a=dk(e),h.label=2;case 2:return[4,Ma(a.next())];case 3:if(s=h.sent(),!!s.done)return[3,12];if(l=s.value,r&&i===0)throw this.createExtraByteError(this.totalPos);this.appendBuffer(l),n&&(i=this.readArraySize(),n=!1,this.complete()),h.label=4;case 4:h.trys.push([4,9,,10]),h.label=5;case 5:return[4,Ma(this.doDecodeSync())];case 6:return[4,h.sent()];case 7:return h.sent(),--i===0?[3,8]:[3,5];case 8:return[3,10];case 9:if(c=h.sent(),!(c instanceof im))throw c;return[3,10];case 10:this.totalPos+=this.pos,h.label=11;case 11:return[3,2];case 12:return[3,19];case 13:return u=h.sent(),d={error:u},[3,19];case 14:return h.trys.push([14,,17,18]),s&&!s.done&&(f=a.return)?[4,Ma(f.call(a))]:[3,16];case 15:h.sent(),h.label=16;case 16:return[3,18];case 17:if(d)throw d.error;return[7];case 18:return[7];case 19:return[2]}})})},t.prototype.doDecodeSync=function(){e:for(;;){var e=this.readHeadByte(),r=void 0;if(e>=224)r=e-256;else if(e<192)if(e<128)r=e;else if(e<144){var o=e-128;if(o!==0){this.pushMapState(o),this.complete();continue e}else r={}}else if(e<160){var o=e-144;if(o!==0){this.pushArrayState(o),this.complete();continue e}else r=[]}else{var n=e-160;r=this.decodeUtf8String(n,0)}else if(e===192)r=null;else if(e===194)r=!1;else if(e===195)r=!0;else if(e===202)r=this.readF32();else if(e===203)r=this.readF64();else if(e===204)r=this.readU8();else if(e===205)r=this.readU16();else if(e===206)r=this.readU32();else if(e===207)r=this.readU64();else if(e===208)r=this.readI8();else if(e===209)r=this.readI16();else if(e===210)r=this.readI32();else if(e===211)r=this.readI64();else if(e===217){var n=this.lookU8();r=this.decodeUtf8String(n,1)}else if(e===218){var n=this.lookU16();r=this.decodeUtf8String(n,2)}else if(e===219){var n=this.lookU32();r=this.decodeUtf8String(n,4)}else if(e===220){var o=this.readU16();if(o!==0){this.pushArrayState(o),this.complete();continue e}else r=[]}else if(e===221){var o=this.readU32();if(o!==0){this.pushArrayState(o),this.complete();continue e}else r=[]}else if(e===222){var o=this.readU16();if(o!==0){this.pushMapState(o),this.complete();continue e}else r={}}else if(e===223){var o=this.readU32();if(o!==0){this.pushMapState(o),this.complete();continue e}else r={}}else if(e===196){var o=this.lookU8();r=this.decodeBinary(o,1)}else if(e===197){var o=this.lookU16();r=this.decodeBinary(o,2)}else if(e===198){var o=this.lookU32();r=this.decodeBinary(o,4)}else if(e===212)r=this.decodeExtension(1,0);else if(e===213)r=this.decodeExtension(2,0);else if(e===214)r=this.decodeExtension(4,0);else if(e===215)r=this.decodeExtension(8,0);else if(e===216)r=this.decodeExtension(16,0);else if(e===199){var o=this.lookU8();r=this.decodeExtension(o,1)}else if(e===200){var o=this.lookU16();r=this.decodeExtension(o,2)}else if(e===201){var o=this.lookU32();r=this.decodeExtension(o,4)}else throw new go("Unrecognized type byte: ".concat(ig(e)));this.complete();for(var i=this.stack;i.length>0;){var a=i[i.length-1];if(a.type===0)if(a.array[a.position]=r,a.position++,a.position===a.size)i.pop(),r=a.array;else continue e;else if(a.type===1){if(!VY(r))throw new go("The type of key must be string or number but "+typeof r);if(r==="__proto__")throw new go("The key __proto__ is not allowed");a.key=r,a.type=2;continue e}else if(a.map[a.key]=r,a.readCount++,a.readCount===a.size)i.pop(),r=a.map;else{a.key=null,a.type=1;continue e}}return r}},t.prototype.readHeadByte=function(){return this.headByte===Ps&&(this.headByte=this.readU8()),this.headByte},t.prototype.complete=function(){this.headByte=Ps},t.prototype.readArraySize=function(){var e=this.readHeadByte();switch(e){case 220:return this.readU16();case 221:return this.readU32();default:{if(e<160)return e-144;throw new go("Unrecognized array type byte: ".concat(ig(e)))}}},t.prototype.pushMapState=function(e){if(e>this.maxMapLength)throw new go("Max length exceeded: map length (".concat(e,") > maxMapLengthLength (").concat(this.maxMapLength,")"));this.stack.push({type:1,size:e,key:null,readCount:0,map:{}})},t.prototype.pushArrayState=function(e){if(e>this.maxArrayLength)throw new go("Max length exceeded: array length (".concat(e,") > maxArrayLength (").concat(this.maxArrayLength,")"));this.stack.push({type:0,size:e,array:new Array(e),position:0})},t.prototype.decodeUtf8String=function(e,r){var o;if(e>this.maxStrLength)throw new go("Max length exceeded: UTF-8 byte length (".concat(e,") > maxStrLength (").concat(this.maxStrLength,")"));if(this.bytes.byteLengthTY?i=EY(this.bytes,n,e):i=Y5(this.bytes,n,e),this.pos+=r+e,i},t.prototype.stateIsMapKey=function(){if(this.stack.length>0){var e=this.stack[this.stack.length-1];return e.type===1}return!1},t.prototype.decodeBinary=function(e,r){if(e>this.maxBinLength)throw new go("Max length exceeded: bin length (".concat(e,") > maxBinLength (").concat(this.maxBinLength,")"));if(!this.hasRemaining(e+r))throw fk;var o=this.pos+r,n=this.bytes.subarray(o,o+e);return this.pos+=r+e,n},t.prototype.decodeExtension=function(e,r){if(e>this.maxExtLength)throw new go("Max length exceeded: ext length (".concat(e,") > maxExtLength (").concat(this.maxExtLength,")"));var o=this.view.getInt8(this.pos+r),n=this.decodeBinary(e,r+1);return this.extensionCodec.decode(n,o,this.context)},t.prototype.lookU8=function(){return this.view.getUint8(this.pos)},t.prototype.lookU16=function(){return this.view.getUint16(this.pos)},t.prototype.lookU32=function(){return this.view.getUint32(this.pos)},t.prototype.readU8=function(){var e=this.view.getUint8(this.pos);return this.pos++,e},t.prototype.readI8=function(){var e=this.view.getInt8(this.pos);return this.pos++,e},t.prototype.readU16=function(){var e=this.view.getUint16(this.pos);return this.pos+=2,e},t.prototype.readI16=function(){var e=this.view.getInt16(this.pos);return this.pos+=2,e},t.prototype.readU32=function(){var e=this.view.getUint32(this.pos);return this.pos+=4,e},t.prototype.readI32=function(){var e=this.view.getInt32(this.pos);return this.pos+=4,e},t.prototype.readU64=function(){var e=bY(this.view,this.pos);return this.pos+=8,e},t.prototype.readI64=function(){var e=X5(this.view,this.pos);return this.pos+=8,e},t.prototype.readF32=function(){var e=this.view.getFloat32(this.pos);return this.pos+=4,e},t.prototype.readF64=function(){var e=this.view.getFloat64(this.pos);return this.pos+=8,e},t}();class ho{static write(e){let r=e.byteLength||e.length;const o=[];do{let i=r&127;r=r>>7,r>0&&(i|=128),o.push(i)}while(r>0);r=e.byteLength||e.length;const n=new Uint8Array(o.length+r);return n.set(o,0),n.set(e,o.length),n.buffer}static parse(e){const r=[],o=new Uint8Array(e),n=5,i=[0,7,14,21,28];for(let a=0;a7)throw new Error("Messages bigger than 2GB are not supported.");if(o.byteLength>=a+s+l)r.push(o.slice?o.slice(a+s,a+s+l):o.subarray(a+s,a+s+l));else throw new Error("Incomplete message.");a=a+s+l}return r}}function ZY(t){return t&&typeof ArrayBuffer<"u"&&(t instanceof ArrayBuffer||t.constructor&&t.constructor.name==="ArrayBuffer")}const QY=new Uint8Array([145,J.Ping]);class dee{constructor(e){this.name="messagepack",this.version=2,this.transferFormat=Mt.Binary,this._errorResult=1,this._voidResult=2,this._nonVoidResult=3,e=e||{},this._encoder=new LY(e.extensionCodec,e.context,e.maxDepth,e.initialBufferSize,e.sortKeys,e.forceFloat32,e.ignoreUndefined,e.forceIntegerToFloat),this._decoder=new YY(e.extensionCodec,e.context,e.maxStrLength,e.maxBinLength,e.maxArrayLength,e.maxMapLength,e.maxExtLength)}parseMessages(e,r){if(!ZY(e))throw new Error("Invalid input for MessagePack hub protocol. Expected an ArrayBuffer.");r===null&&(r=as.instance);const o=ho.parse(e),n=[];for(const i of o){const a=this._parseMessage(i,r);a&&n.push(a)}return n}writeMessage(e){switch(e.type){case J.Invocation:return this._writeInvocation(e);case J.StreamInvocation:return this._writeStreamInvocation(e);case J.StreamItem:return this._writeStreamItem(e);case J.Completion:return this._writeCompletion(e);case J.Ping:return ho.write(QY);case J.CancelInvocation:return this._writeCancelInvocation(e);case J.Close:return this._writeClose();case J.Ack:return this._writeAck(e);case J.Sequence:return this._writeSequence(e);default:throw new Error("Invalid message type.")}}_parseMessage(e,r){if(e.length===0)throw new Error("Invalid payload.");const o=this._decoder.decode(e);if(o.length===0||!(o instanceof Array))throw new Error("Invalid payload.");const n=o[0];switch(n){case J.Invocation:return this._createInvocationMessage(this._readHeaders(o),o);case J.StreamItem:return this._createStreamItemMessage(this._readHeaders(o),o);case J.Completion:return this._createCompletionMessage(this._readHeaders(o),o);case J.Ping:return this._createPingMessage(o);case J.Close:return this._createCloseMessage(o);case J.Ack:return this._createAckMessage(o);case J.Sequence:return this._createSequenceMessage(o);default:return r.log($.Information,"Unknown message type '"+n+"' ignored."),null}}_createCloseMessage(e){if(e.length<2)throw new Error("Invalid payload for Close message.");return{allowReconnect:e.length>=3?e[2]:void 0,error:e[1],type:J.Close}}_createPingMessage(e){if(e.length<1)throw new Error("Invalid payload for Ping message.");return{type:J.Ping}}_createInvocationMessage(e,r){if(r.length<5)throw new Error("Invalid payload for Invocation message.");const o=r[2];return o?{arguments:r[4],headers:e,invocationId:o,streamIds:[],target:r[3],type:J.Invocation}:{arguments:r[4],headers:e,streamIds:[],target:r[3],type:J.Invocation}}_createStreamItemMessage(e,r){if(r.length<4)throw new Error("Invalid payload for StreamItem message.");return{headers:e,invocationId:r[2],item:r[3],type:J.StreamItem}}_createCompletionMessage(e,r){if(r.length<4)throw new Error("Invalid payload for Completion message.");const o=r[3];if(o!==this._voidResult&&r.length<5)throw new Error("Invalid payload for Completion message.");let n,i;switch(o){case this._errorResult:n=r[4];break;case this._nonVoidResult:i=r[4];break}return{error:n,headers:e,invocationId:r[2],result:i,type:J.Completion}}_createAckMessage(e){if(e.length<1)throw new Error("Invalid payload for Ack message.");return{sequenceId:e[1],type:J.Ack}}_createSequenceMessage(e){if(e.length<1)throw new Error("Invalid payload for Sequence message.");return{sequenceId:e[1],type:J.Sequence}}_writeInvocation(e){let r;return e.streamIds?r=this._encoder.encode([J.Invocation,e.headers||{},e.invocationId||null,e.target,e.arguments,e.streamIds]):r=this._encoder.encode([J.Invocation,e.headers||{},e.invocationId||null,e.target,e.arguments]),ho.write(r.slice())}_writeStreamInvocation(e){let r;return e.streamIds?r=this._encoder.encode([J.StreamInvocation,e.headers||{},e.invocationId,e.target,e.arguments,e.streamIds]):r=this._encoder.encode([J.StreamInvocation,e.headers||{},e.invocationId,e.target,e.arguments]),ho.write(r.slice())}_writeStreamItem(e){const r=this._encoder.encode([J.StreamItem,e.headers||{},e.invocationId,e.item]);return ho.write(r.slice())}_writeCompletion(e){const r=e.error?this._errorResult:e.result!==void 0?this._nonVoidResult:this._voidResult;let o;switch(r){case this._errorResult:o=this._encoder.encode([J.Completion,e.headers||{},e.invocationId,r,e.error]);break;case this._voidResult:o=this._encoder.encode([J.Completion,e.headers||{},e.invocationId,r]);break;case this._nonVoidResult:o=this._encoder.encode([J.Completion,e.headers||{},e.invocationId,r,e.result]);break}return ho.write(o.slice())}_writeCancelInvocation(e){const r=this._encoder.encode([J.CancelInvocation,e.headers||{},e.invocationId]);return ho.write(r.slice())}_writeClose(){const e=this._encoder.encode([J.Close,null]);return ho.write(e.slice())}_writeAck(e){const r=this._encoder.encode([J.Ack,e.sequenceId]);return ho.write(r.slice())}_writeSequence(e){const r=this._encoder.encode([J.Sequence,e.sequenceId]);return ho.write(r.slice())}_readHeaders(e){const r=e[1];if(typeof r!="object")throw new Error("Invalid headers.");return r}}function Qo(t){return typeof t=="function"}function Q5(t){var e=function(o){Error.call(o),o.stack=new Error().stack},r=t(e);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var sg=Q5(function(t){return function(r){t(this),this.message=r?r.length+` errors occurred during unsubscription: -`+r.map(function(o,n){return n+1+") "+o.toString()}).join(` - `):"",this.name="UnsubscriptionError",this.errors=r}});function am(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var Kf=function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,r,o,n,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var s=om(a),l=s.next();!l.done;l=s.next()){var c=l.value;c.remove(this)}}catch(p){e={error:p}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}else a.remove(this);var u=this.initialTeardown;if(Qo(u))try{u()}catch(p){i=p instanceof sg?p.errors:[p]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var f=om(d),h=f.next();!h.done;h=f.next()){var g=h.value;try{hk(g)}catch(p){i=i??[],p instanceof sg?i=gt(gt([],st(i)),st(p.errors)):i.push(p)}}}catch(p){o={error:p}}finally{try{h&&!h.done&&(n=f.return)&&n.call(f)}finally{if(o)throw o.error}}}if(i)throw new sg(i)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)hk(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}},t.prototype._hasParent=function(e){var r=this._parentage;return r===e||Array.isArray(r)&&r.includes(e)},t.prototype._addParent=function(e){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e},t.prototype._removeParent=function(e){var r=this._parentage;r===e?this._parentage=null:Array.isArray(r)&&am(r,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&am(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),J5=Kf.EMPTY;function eE(t){return t instanceof Kf||t&&"closed"in t&&Qo(t.remove)&&Qo(t.add)&&Qo(t.unsubscribe)}function hk(t){Qo(t)?t():t.unsubscribe()}var tE={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},rE={setTimeout:function(t,e){for(var r=[],o=2;o0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(r){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,r)},e.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},e.prototype._innerSubscribe=function(r){var o=this,n=this,i=n.hasError,a=n.isStopped,s=n.observers;return i||a?J5:(this.currentObservers=null,s.push(r),new Kf(function(){o.currentObservers=null,am(s,r)}))},e.prototype._checkFinalizedStatuses=function(r){var o=this,n=o.hasError,i=o.thrownError,a=o.isStopped;n?r.error(i):a&&r.complete()},e.prototype.asObservable=function(){var r=new pk;return r.source=this,r},e.create=function(r,o){return new vk(r,o)},e}(pk),vk=function(t){qf(e,t);function e(r,o){var n=t.call(this)||this;return n.destination=r,n.source=o,n}return e.prototype.next=function(r){var o,n;(n=(o=this.destination)===null||o===void 0?void 0:o.next)===null||n===void 0||n.call(o,r)},e.prototype.error=function(r){var o,n;(n=(o=this.destination)===null||o===void 0?void 0:o.error)===null||n===void 0||n.call(o,r)},e.prototype.complete=function(){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||o===void 0||o.call(r)},e.prototype._subscribe=function(r){var o,n;return(n=(o=this.source)===null||o===void 0?void 0:o.subscribe(r))!==null&&n!==void 0?n:J5},e}(uZ);const De=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,vt=Object.keys,Kt=Array.isArray;function tr(t,e){return typeof e!="object"||vt(e).forEach(function(r){t[r]=e[r]}),t}typeof Promise>"u"||De.Promise||(De.Promise=Promise);const $l=Object.getPrototypeOf,dZ={}.hasOwnProperty;function Cr(t,e){return dZ.call(t,e)}function ls(t,e){typeof e=="function"&&(e=e($l(t))),(typeof Reflect>"u"?vt:Reflect.ownKeys)(e).forEach(r=>{Jo(t,r,e[r])})}const nE=Object.defineProperty;function Jo(t,e,r,o){nE(t,e,tr(r&&Cr(r,"get")&&typeof r.get=="function"?{get:r.get,set:r.set,configurable:!0}:{value:r,configurable:!0,writable:!0},o))}function Oa(t){return{from:function(e){return t.prototype=Object.create(e.prototype),Jo(t.prototype,"constructor",t),{extend:ls.bind(null,t.prototype)}}}}const fZ=Object.getOwnPropertyDescriptor;function o0(t,e){let r;return fZ(t,e)||(r=$l(t))&&o0(r,e)}const hZ=[].slice;function Dd(t,e,r){return hZ.call(t,e,r)}function iE(t,e){return e(t)}function Vs(t){if(!t)throw new Error("Assertion Failed")}function aE(t){De.setImmediate?setImmediate(t):setTimeout(t,0)}function sE(t,e){return t.reduce((r,o,n)=>{var i=e(o,n);return i&&(r[i[0]]=i[1]),r},{})}function en(t,e){if(Cr(t,e))return t[e];if(!e)return t;if(typeof e!="string"){for(var r=[],o=0,n=e.length;o["Int","Uint","Float"].map(e=>e+t+"Array")))).filter(t=>De[t]),pZ=uE.map(t=>De[t]);sE(uE,t=>[t,!0]);let _n=null;function bc(t){_n=typeof WeakMap<"u"&&new WeakMap;const e=lm(t);return _n=null,e}function lm(t){if(!t||typeof t!="object")return t;let e=_n&&_n.get(t);if(e)return e;if(Kt(t)){e=[],_n&&_n.set(t,e);for(var r=0,o=t.length;r=0)e=t;else{const i=$l(t);for(var n in e=i===Object.prototype?{}:Object.create(i),_n&&_n.set(t,e),t)Cr(t,n)&&(e[n]=lm(t[n]))}return e}const{toString:mZ}={};function cm(t){return mZ.call(t).slice(8,-1)}const um=typeof Symbol<"u"?Symbol.iterator:"@@iterator",vZ=typeof um=="symbol"?function(t){var e;return t!=null&&(e=t[um])&&e.apply(t)}:function(){return null},ua={};function $o(t){var e,r,o,n;if(arguments.length===1){if(Kt(t))return t.slice();if(this===ua&&typeof t=="string")return[t];if(n=vZ(t)){for(r=[];!(o=n.next()).done;)r.push(o.value);return r}if(t==null)return[t];if(typeof(e=t.length)=="number"){for(r=new Array(e);e--;)r[e]=t[e];return r}return[t]}for(e=arguments.length,r=new Array(e);e--;)r[e]=arguments[e];return r}const n0=typeof Symbol<"u"?t=>t[Symbol.toStringTag]==="AsyncFunction":()=>!1;var Po=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function dE(t,e){Po=t,fE=e}var fE=()=>!0;const bZ=!new Error("").stack;function Xi(){if(bZ)try{throw Xi.arguments,new Error}catch(t){return t}return new Error}function dm(t,e){var r=t.stack;return r?(e=e||0,r.indexOf(t.name)===0&&(e+=(t.name+t.message).split(` -`).length),r.split(` -`).slice(e).filter(fE).map(o=>` -`+o).join("")):""}var hE=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],i0=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(hE),yZ={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function ja(t,e){this._e=Xi(),this.name=t,this.message=e}function gE(t,e){return t+". Errors: "+Object.keys(e).map(r=>e[r].toString()).filter((r,o,n)=>n.indexOf(r)===o).join(` -`)}function Fd(t,e,r,o){this._e=Xi(),this.failures=e,this.failedKeys=o,this.successCount=r,this.message=gE(t,e)}function fl(t,e){this._e=Xi(),this.name="BulkError",this.failures=Object.keys(e).map(r=>e[r]),this.failuresByPos=e,this.message=gE(t,e)}Oa(ja).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+dm(this._e,2))}},toString:function(){return this.name+": "+this.message}}),Oa(Fd).from(ja),Oa(fl).from(ja);var a0=i0.reduce((t,e)=>(t[e]=e+"Error",t),{});const wZ=ja;var pe=i0.reduce((t,e)=>{var r=e+"Error";function o(n,i){this._e=Xi(),this.name=r,n?typeof n=="string"?(this.message=`${n}${i?` - `+i:""}`,this.inner=i||null):typeof n=="object"&&(this.message=`${n.name} ${n.message}`,this.inner=n):(this.message=yZ[e]||r,this.inner=null)}return Oa(o).from(wZ),t[e]=o,t},{});pe.Syntax=SyntaxError,pe.Type=TypeError,pe.Range=RangeError;var bk=hE.reduce((t,e)=>(t[e+"Error"]=pe[e],t),{}),ju=i0.reduce((t,e)=>(["Syntax","Type","Range"].indexOf(e)===-1&&(t[e+"Error"]=pe[e]),t),{});function Ae(){}function Kl(t){return t}function kZ(t,e){return t==null||t===Kl?e:function(r){return e(t(r))}}function qi(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}}function SZ(t,e){return t===Ae?e:function(){var r=t.apply(this,arguments);r!==void 0&&(arguments[0]=r);var o=this.onsuccess,n=this.onerror;this.onsuccess=null,this.onerror=null;var i=e.apply(this,arguments);return o&&(this.onsuccess=this.onsuccess?qi(o,this.onsuccess):o),n&&(this.onerror=this.onerror?qi(n,this.onerror):n),i!==void 0?i:r}}function _Z(t,e){return t===Ae?e:function(){t.apply(this,arguments);var r=this.onsuccess,o=this.onerror;this.onsuccess=this.onerror=null,e.apply(this,arguments),r&&(this.onsuccess=this.onsuccess?qi(r,this.onsuccess):r),o&&(this.onerror=this.onerror?qi(o,this.onerror):o)}}function xZ(t,e){return t===Ae?e:function(r){var o=t.apply(this,arguments);tr(r,o);var n=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var a=e.apply(this,arguments);return n&&(this.onsuccess=this.onsuccess?qi(n,this.onsuccess):n),i&&(this.onerror=this.onerror?qi(i,this.onerror):i),o===void 0?a===void 0?void 0:a:tr(o,a)}}function CZ(t,e){return t===Ae?e:function(){return e.apply(this,arguments)!==!1&&t.apply(this,arguments)}}function s0(t,e){return t===Ae?e:function(){var r=t.apply(this,arguments);if(r&&typeof r.then=="function"){for(var o=this,n=arguments.length,i=new Array(n);n--;)i[n]=arguments[n];return r.then(function(){return e.apply(o,i)})}return e.apply(this,arguments)}}ju.ModifyError=Fd,ju.DexieError=ja,ju.BulkError=fl;var Wl={};const pE=100,[fm,qd,hm]=typeof Promise>"u"?[]:(()=>{let t=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[t,$l(t),t];const e=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[e,$l(e),t]})(),mE=qd&&qd.then,Du=fm&&fm.constructor,l0=!!hm;var gm=!1,TZ=hm?()=>{hm.then(cu)}:De.setImmediate?setImmediate.bind(null,cu):De.MutationObserver?()=>{var t=document.createElement("div");new MutationObserver(()=>{cu(),t=null}).observe(t,{attributes:!0}),t.setAttribute("i","1")}:()=>{setTimeout(cu,0)},hl=function(t,e){Gs.push([t,e]),Ld&&(TZ(),Ld=!1)},pm=!0,Ld=!0,Ti=[],Fu=[],mm=null,vm=Kl,Da={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:kk,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach(t=>{try{kk(t[0],t[1])}catch{}})}},ce=Da,Gs=[],Ei=0,qu=[];function ie(t){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=Ae,this._lib=!1;var e=this._PSD=ce;if(Po&&(this._stackHolder=Xi(),this._prev=null,this._numPrev=0),typeof t!="function"){if(t!==Wl)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(this._state===!1&&ym(this,this._value))}this._state=null,this._value=null,++e.ref,bE(this,t)}const bm={get:function(){var t=ce,e=Hd;function r(o,n){var i=!t.global&&(t!==ce||e!==Hd);const a=i&&!un();var s=new ie((l,c)=>{c0(this,new vE(Ud(o,t,i,a),Ud(n,t,i,a),l,c,t))});return Po&&kE(s,this),s}return r.prototype=Wl,r},set:function(t){Jo(this,"then",t&&t.prototype===Wl?bm:{get:function(){return t},set:bm.set})}};function vE(t,e,r,o,n){this.onFulfilled=typeof t=="function"?t:null,this.onRejected=typeof e=="function"?e:null,this.resolve=r,this.reject=o,this.psd=n}function bE(t,e){try{e(r=>{if(t._state===null){if(r===t)throw new TypeError("A promise cannot be resolved with itself.");var o=t._lib&&yc();r&&typeof r.then=="function"?bE(t,(n,i)=>{r instanceof ie?r._then(n,i):r.then(n,i)}):(t._state=!0,t._value=r,yE(t)),o&&wc()}},ym.bind(null,t))}catch(r){ym(t,r)}}function ym(t,e){if(Fu.push(e),t._state===null){var r=t._lib&&yc();e=vm(e),t._state=!1,t._value=e,Po&&e!==null&&typeof e=="object"&&!e._promise&&function(o,n,i){try{o.apply(null,i)}catch(a){n&&n(a)}}(()=>{var o=o0(e,"stack");e._promise=t,Jo(e,"stack",{get:()=>gm?o&&(o.get?o.get.apply(e):o.value):t.stack})}),function(o){Ti.some(n=>n._value===o._value)||Ti.push(o)}(t),yE(t),r&&wc()}}function yE(t){var e=t._listeners;t._listeners=[];for(var r=0,o=e.length;r{--Ei==0&&u0()},[]))}function c0(t,e){if(t._state!==null){var r=t._state?e.onFulfilled:e.onRejected;if(r===null)return(t._state?e.resolve:e.reject)(t._value);++e.psd.ref,++Ei,hl(EZ,[r,t,e])}else t._listeners.push(e)}function EZ(t,e,r){try{mm=e;var o,n=e._value;e._state?o=t(n):(Fu.length&&(Fu=[]),o=t(n),Fu.indexOf(n)===-1&&function(i){for(var a=Ti.length;a;)if(Ti[--a]._value===i._value)return void Ti.splice(a,1)}(e)),r.resolve(o)}catch(i){r.reject(i)}finally{mm=null,--Ei==0&&u0(),--r.psd.ref||r.psd.finalize()}}function wE(t,e,r){if(e.length===r)return e;var o="";if(t._state===!1){var n,i,a=t._value;a!=null?(n=a.name||"Error",i=a.message||a,o=dm(a,0)):(n=a,i=""),e.push(n+(i?": "+i:"")+o)}return Po&&((o=dm(t._stackHolder,2))&&e.indexOf(o)===-1&&e.push(o),t._prev&&wE(t._prev,e,r)),e}function kE(t,e){var r=e?e._numPrev+1:0;r<100&&(t._prev=e,t._numPrev=r)}function cu(){yc()&&wc()}function yc(){var t=pm;return pm=!1,Ld=!1,t}function wc(){var t,e,r;do for(;Gs.length>0;)for(t=Gs,Gs=[],r=t.length,e=0;e0);pm=!0,Ld=!0}function u0(){var t=Ti;Ti=[],t.forEach(o=>{o._PSD.onunhandled.call(null,o._value,o)});for(var e=qu.slice(0),r=e.length;r;)e[--r]()}function uu(t){return new ie(Wl,!1,t)}function $e(t,e){var r=ce;return function(){var o=yc(),n=ce;try{return Gn(r,!0),t.apply(this,arguments)}catch(i){e&&e(i)}finally{Gn(n,!1),o&&wc()}}}ls(ie.prototype,{then:bm,_then:function(t,e){c0(this,new vE(null,null,t,e,ce))},catch:function(t){if(arguments.length===1)return this.then(null,t);var e=arguments[0],r=arguments[1];return typeof e=="function"?this.then(null,o=>o instanceof e?r(o):uu(o)):this.then(null,o=>o&&o.name===e?r(o):uu(o))},finally:function(t){return this.then(e=>(t(),e),e=>(t(),uu(e)))},stack:{get:function(){if(this._stack)return this._stack;try{gm=!0;var t=wE(this,[],20).join(` -From previous: `);return this._state!==null&&(this._stack=t),t}finally{gm=!1}}},timeout:function(t,e){return t<1/0?new ie((r,o)=>{var n=setTimeout(()=>o(new pe.Timeout(e)),t);this.then(r,o).finally(clearTimeout.bind(null,n))}):this}}),typeof Symbol<"u"&&Symbol.toStringTag&&Jo(ie.prototype,Symbol.toStringTag,"Dexie.Promise"),Da.env=SE(),ls(ie,{all:function(){var t=$o.apply(null,arguments).map(du);return new ie(function(e,r){t.length===0&&e([]);var o=t.length;t.forEach((n,i)=>ie.resolve(n).then(a=>{t[i]=a,--o||e(t)},r))})},resolve:t=>{if(t instanceof ie)return t;if(t&&typeof t.then=="function")return new ie((r,o)=>{t.then(r,o)});var e=new ie(Wl,!0,t);return kE(e,mm),e},reject:uu,race:function(){var t=$o.apply(null,arguments).map(du);return new ie((e,r)=>{t.map(o=>ie.resolve(o).then(e,r))})},PSD:{get:()=>ce,set:t=>ce=t},totalEchoes:{get:()=>Hd},newPSD:Vn,usePSD:ys,scheduler:{get:()=>hl,set:t=>{hl=t}},rejectionMapper:{get:()=>vm,set:t=>{vm=t}},follow:(t,e)=>new ie((r,o)=>Vn((n,i)=>{var a=ce;a.unhandleds=[],a.onunhandled=i,a.finalize=qi(function(){(function(s){function l(){s(),qu.splice(qu.indexOf(l),1)}qu.push(l),++Ei,hl(()=>{--Ei==0&&u0()},[])})(()=>{this.unhandleds.length===0?n():i(this.unhandleds[0])})},a.finalize),t()},e,r,o))}),Du&&(Du.allSettled&&Jo(ie,"allSettled",function(){const t=$o.apply(null,arguments).map(du);return new ie(e=>{t.length===0&&e([]);let r=t.length;const o=new Array(r);t.forEach((n,i)=>ie.resolve(n).then(a=>o[i]={status:"fulfilled",value:a},a=>o[i]={status:"rejected",reason:a}).then(()=>--r||e(o)))})}),Du.any&&typeof AggregateError<"u"&&Jo(ie,"any",function(){const t=$o.apply(null,arguments).map(du);return new ie((e,r)=>{t.length===0&&r(new AggregateError([]));let o=t.length;const n=new Array(o);t.forEach((i,a)=>ie.resolve(i).then(s=>e(s),s=>{n[a]=s,--o||r(new AggregateError(n))}))})}));const Ut={awaits:0,echoes:0,id:0};var BZ=0,Lu=[],cg=0,Hd=0,IZ=0;function Vn(t,e,r,o){var n=ce,i=Object.create(n);i.parent=n,i.ref=0,i.global=!1,i.id=++IZ;var a=Da.env;i.env=l0?{Promise:ie,PromiseProp:{value:ie,configurable:!0,writable:!0},all:ie.all,race:ie.race,allSettled:ie.allSettled,any:ie.any,resolve:ie.resolve,reject:ie.reject,nthen:yk(a.nthen,i),gthen:yk(a.gthen,i)}:{},e&&tr(i,e),++n.ref,i.finalize=function(){--this.parent.ref||this.parent.finalize()};var s=ys(i,t,r,o);return i.ref===0&&i.finalize(),s}function bs(){return Ut.id||(Ut.id=++BZ),++Ut.awaits,Ut.echoes+=pE,Ut.id}function un(){return!!Ut.awaits&&(--Ut.awaits==0&&(Ut.id=0),Ut.echoes=Ut.awaits*pE,!0)}function du(t){return Ut.echoes&&t&&t.constructor===Du?(bs(),t.then(e=>(un(),e),e=>(un(),Ct(e)))):t}function RZ(t){++Hd,Ut.echoes&&--Ut.echoes!=0||(Ut.echoes=Ut.id=0),Lu.push(ce),Gn(t,!0)}function AZ(){var t=Lu[Lu.length-1];Lu.pop(),Gn(t,!1)}function Gn(t,e){var r=ce;if((e?!Ut.echoes||cg++&&t===ce:!cg||--cg&&t===ce)||_E(e?RZ.bind(null,t):AZ),t!==ce&&(ce=t,r===Da&&(Da.env=SE()),l0)){var o=Da.env.Promise,n=t.env;qd.then=n.nthen,o.prototype.then=n.gthen,(r.global||t.global)&&(Object.defineProperty(De,"Promise",n.PromiseProp),o.all=n.all,o.race=n.race,o.resolve=n.resolve,o.reject=n.reject,n.allSettled&&(o.allSettled=n.allSettled),n.any&&(o.any=n.any))}}function SE(){var t=De.Promise;return l0?{Promise:t,PromiseProp:Object.getOwnPropertyDescriptor(De,"Promise"),all:t.all,race:t.race,allSettled:t.allSettled,any:t.any,resolve:t.resolve,reject:t.reject,nthen:qd.then,gthen:t.prototype.then}:{}}function ys(t,e,r,o,n){var i=ce;try{return Gn(t,!0),e(r,o,n)}finally{Gn(i,!1)}}function _E(t){mE.call(fm,t)}function Ud(t,e,r,o){return typeof t!="function"?t:function(){var n=ce;r&&bs(),Gn(e,!0);try{return t.apply(this,arguments)}finally{Gn(n,!1),o&&_E(un)}}}function yk(t,e){return function(r,o){return t.call(this,Ud(r,e),Ud(o,e))}}(""+mE).indexOf("[native code]")===-1&&(bs=un=Ae);const wk="unhandledrejection";function kk(t,e){var r;try{r=e.onuncatched(t)}catch{}if(r!==!1)try{var o,n={promise:e,reason:t};if(De.document&&document.createEvent?((o=document.createEvent("Event")).initEvent(wk,!0,!0),tr(o,n)):De.CustomEvent&&tr(o=new CustomEvent(wk,{detail:n}),n),o&&De.dispatchEvent&&(dispatchEvent(o),!De.PromiseRejectionEvent&&De.onunhandledrejection))try{De.onunhandledrejection(o)}catch{}Po&&o&&!o.defaultPrevented&&console.warn(`Unhandled rejection: ${t.stack||t}`)}catch{}}var Ct=ie.reject;function wm(t,e,r,o){if(t.idbdb&&(t._state.openComplete||ce.letThrough||t._vip)){var n=t._createTransaction(e,r,t._dbSchema);try{n.create(),t._state.PR1398_maxLoop=3}catch(i){return i.name===a0.InvalidState&&t.isOpen()&&--t._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),t._close(),t.open().then(()=>wm(t,e,r,o))):Ct(i)}return n._promise(e,(i,a)=>Vn(()=>(ce.trans=n,o(i,a,n)))).then(i=>n._completion.then(()=>i))}if(t._state.openComplete)return Ct(new pe.DatabaseClosed(t._state.dbOpenError));if(!t._state.isBeingOpened){if(!t._options.autoOpen)return Ct(new pe.DatabaseClosed);t.open().catch(Ae)}return t._state.dbReadyPromise.then(()=>wm(t,e,r,o))}const Sk="3.2.4",yi="ï¿¿",km=-1/0,Mo="Invalid key provided. Keys must be of type string, number, Date or Array.",xE="String expected.",gl=[],Wf=typeof navigator<"u"&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),NZ=Wf,PZ=Wf,CE=t=>!/(dexie\.js|dexie\.min\.js)/.test(t),Vf="__dbnames",ug="readonly",dg="readwrite";function Li(t,e){return t?e?function(){return t.apply(this,arguments)&&e.apply(this,arguments)}:t:e}const TE={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function fu(t){return typeof t!="string"||/\./.test(t)?e=>e:e=>(e[t]===void 0&&t in e&&delete(e=bc(e))[t],e)}class zZ{_trans(e,r,o){const n=this._tx||ce.trans,i=this.name;function a(l,c,u){if(!u.schema[i])throw new pe.NotFound("Table "+i+" not part of transaction");return r(u.idbtrans,u)}const s=yc();try{return n&&n.db===this.db?n===ce.trans?n._promise(e,a,o):Vn(()=>n._promise(e,a,o),{trans:n,transless:ce.transless||ce}):wm(this.db,e,[this.name],a)}finally{s&&wc()}}get(e,r){return e&&e.constructor===Object?this.where(e).first(r):this._trans("readonly",o=>this.core.get({trans:o,key:e}).then(n=>this.hook.reading.fire(n))).then(r)}where(e){if(typeof e=="string")return new this.db.WhereClause(this,e);if(Kt(e))return new this.db.WhereClause(this,`[${e.join("+")}]`);const r=vt(e);if(r.length===1)return this.where(r[0]).equals(e[r[0]]);const o=this.schema.indexes.concat(this.schema.primKey).filter(c=>c.compound&&r.every(u=>c.keyPath.indexOf(u)>=0)&&c.keyPath.every(u=>r.indexOf(u)>=0))[0];if(o&&this.db._maxKey!==yi)return this.where(o.name).equals(o.keyPath.map(c=>e[c]));!o&&Po&&console.warn(`The query ${JSON.stringify(e)} on ${this.name} would benefit of a compound index [${r.join("+")}]`);const{idxByName:n}=this.schema,i=this.db._deps.indexedDB;function a(c,u){try{return i.cmp(c,u)===0}catch{return!1}}const[s,l]=r.reduce(([c,u],d)=>{const f=n[d],h=e[d];return[c||f,c||!f?Li(u,f&&f.multi?g=>{const p=en(g,d);return Kt(p)&&p.some(w=>a(h,w))}:g=>a(h,en(g,d))):u]},[null,null]);return s?this.where(s.name).equals(e[s.keyPath]).filter(l):o?this.filter(l):this.where(r).equals("")}filter(e){return this.toCollection().and(e)}count(e){return this.toCollection().count(e)}offset(e){return this.toCollection().offset(e)}limit(e){return this.toCollection().limit(e)}each(e){return this.toCollection().each(e)}toArray(e){return this.toCollection().toArray(e)}toCollection(){return new this.db.Collection(new this.db.WhereClause(this))}orderBy(e){return new this.db.Collection(new this.db.WhereClause(this,Kt(e)?`[${e.join("+")}]`:e))}reverse(){return this.toCollection().reverse()}mapToClass(e){this.schema.mappedClass=e;const r=o=>{if(!o)return o;const n=Object.create(e.prototype);for(var i in o)if(Cr(o,i))try{n[i]=o[i]}catch{}return n};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=r,this.hook("reading",r),e}defineClass(){return this.mapToClass(function(e){tr(this,e)})}add(e,r){const{auto:o,keyPath:n}=this.schema.primKey;let i=e;return n&&o&&(i=fu(n)(e)),this._trans("readwrite",a=>this.core.mutate({trans:a,type:"add",keys:r!=null?[r]:null,values:[i]})).then(a=>a.numFailures?ie.reject(a.failures[0]):a.lastResult).then(a=>{if(n)try{io(e,n,a)}catch{}return a})}update(e,r){if(typeof e!="object"||Kt(e))return this.where(":id").equals(e).modify(r);{const o=en(e,this.schema.primKey.keyPath);if(o===void 0)return Ct(new pe.InvalidArgument("Given object does not contain its primary key"));try{typeof r!="function"?vt(r).forEach(n=>{io(e,n,r[n])}):r(e,{value:e,primKey:o})}catch{}return this.where(":id").equals(o).modify(r)}}put(e,r){const{auto:o,keyPath:n}=this.schema.primKey;let i=e;return n&&o&&(i=fu(n)(e)),this._trans("readwrite",a=>this.core.mutate({trans:a,type:"put",values:[i],keys:r!=null?[r]:null})).then(a=>a.numFailures?ie.reject(a.failures[0]):a.lastResult).then(a=>{if(n)try{io(e,n,a)}catch{}return a})}delete(e){return this._trans("readwrite",r=>this.core.mutate({trans:r,type:"delete",keys:[e]})).then(r=>r.numFailures?ie.reject(r.failures[0]):void 0)}clear(){return this._trans("readwrite",e=>this.core.mutate({trans:e,type:"deleteRange",range:TE})).then(e=>e.numFailures?ie.reject(e.failures[0]):void 0)}bulkGet(e){return this._trans("readonly",r=>this.core.getMany({keys:e,trans:r}).then(o=>o.map(n=>this.hook.reading.fire(n))))}bulkAdd(e,r,o){const n=Array.isArray(r)?r:void 0,i=(o=o||(n?void 0:r))?o.allKeys:void 0;return this._trans("readwrite",a=>{const{auto:s,keyPath:l}=this.schema.primKey;if(l&&n)throw new pe.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(n&&n.length!==e.length)throw new pe.InvalidArgument("Arguments objects and keys must have the same length");const c=e.length;let u=l&&s?e.map(fu(l)):e;return this.core.mutate({trans:a,type:"add",keys:n,values:u,wantResults:i}).then(({numFailures:d,results:f,lastResult:h,failures:g})=>{if(d===0)return i?f:h;throw new fl(`${this.name}.bulkAdd(): ${d} of ${c} operations failed`,g)})})}bulkPut(e,r,o){const n=Array.isArray(r)?r:void 0,i=(o=o||(n?void 0:r))?o.allKeys:void 0;return this._trans("readwrite",a=>{const{auto:s,keyPath:l}=this.schema.primKey;if(l&&n)throw new pe.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(n&&n.length!==e.length)throw new pe.InvalidArgument("Arguments objects and keys must have the same length");const c=e.length;let u=l&&s?e.map(fu(l)):e;return this.core.mutate({trans:a,type:"put",keys:n,values:u,wantResults:i}).then(({numFailures:d,results:f,lastResult:h,failures:g})=>{if(d===0)return i?f:h;throw new fl(`${this.name}.bulkPut(): ${d} of ${c} operations failed`,g)})})}bulkDelete(e){const r=e.length;return this._trans("readwrite",o=>this.core.mutate({trans:o,type:"delete",keys:e})).then(({numFailures:o,lastResult:n,failures:i})=>{if(o===0)return n;throw new fl(`${this.name}.bulkDelete(): ${o} of ${r} operations failed`,i)})}}function pl(t){var e={},r=function(a,s){if(s){for(var l=arguments.length,c=new Array(l-1);--l;)c[l-1]=arguments[l];return e[a].subscribe.apply(null,c),t}if(typeof a=="string")return e[a]};r.addEventType=i;for(var o=1,n=arguments.length;oLi(o(),e()):e,t.justLimit=r&&!o}function Hu(t,e){if(t.isPrimKey)return e.primaryKey;const r=e.getIndexByKeyPath(t.index);if(!r)throw new pe.Schema("KeyPath "+t.index+" on object store "+e.name+" is not indexed");return r}function _k(t,e,r){const o=Hu(t,e.schema);return e.openCursor({trans:r,values:!t.keysOnly,reverse:t.dir==="prev",unique:!!t.unique,query:{index:o,range:t.range}})}function hu(t,e,r,o){const n=t.replayFilter?Li(t.filter,t.replayFilter()):t.filter;if(t.or){const i={},a=(s,l,c)=>{if(!n||n(l,c,f=>l.stop(f),f=>l.fail(f))){var u=l.primaryKey,d=""+u;d==="[object ArrayBuffer]"&&(d=""+new Uint8Array(u)),Cr(i,d)||(i[d]=!0,e(s,l,c))}};return Promise.all([t.or._iterate(a,r),xk(_k(t,o,r),t.algorithm,a,!t.keysOnly&&t.valueMapper)])}return xk(_k(t,o,r),Li(t.algorithm,n),e,!t.keysOnly&&t.valueMapper)}function xk(t,e,r,o){var n=$e(o?(i,a,s)=>r(o(i),a,s):r);return t.then(i=>{if(i)return i.start(()=>{var a=()=>i.continue();e&&!e(i,s=>a=s,s=>{i.stop(s),a=Ae},s=>{i.fail(s),a=Ae})||n(i.value,i,s=>a=s),a()})})}function Yt(t,e){try{const r=Ck(t),o=Ck(e);if(r!==o)return r==="Array"?1:o==="Array"?-1:r==="binary"?1:o==="binary"?-1:r==="string"?1:o==="string"?-1:r==="Date"?1:o!=="Date"?NaN:-1;switch(r){case"number":case"Date":case"string":return t>e?1:thu(r,e,o,r.table.core))}count(e){return this._read(r=>{const o=this._ctx,n=o.table.core;if(na(o,!0))return n.count({trans:r,query:{index:Hu(o,n.schema),range:o.range}}).then(a=>Math.min(a,o.limit));var i=0;return hu(o,()=>(++i,!1),r,n).then(()=>i)}).then(e)}sortBy(e,r){const o=e.split(".").reverse(),n=o[0],i=o.length-1;function a(c,u){return u?a(c[o[u]],u-1):c[n]}var s=this._ctx.dir==="next"?1:-1;function l(c,u){var d=a(c,i),f=a(u,i);return df?s:0}return this.toArray(function(c){return c.sort(l)}).then(r)}toArray(e){return this._read(r=>{var o=this._ctx;if(o.dir==="next"&&na(o,!0)&&o.limit>0){const{valueMapper:n}=o,i=Hu(o,o.table.core.schema);return o.table.core.query({trans:r,limit:o.limit,values:!0,query:{index:i,range:o.range}}).then(({result:a})=>n?a.map(n):a)}{const n=[];return hu(o,i=>n.push(i),r,o.table.core).then(()=>n)}},e)}offset(e){var r=this._ctx;return e<=0||(r.offset+=e,na(r)?hg(r,()=>{var o=e;return(n,i)=>o===0||(o===1?(--o,!1):(i(()=>{n.advance(o),o=0}),!1))}):hg(r,()=>{var o=e;return()=>--o<0})),this}limit(e){return this._ctx.limit=Math.min(this._ctx.limit,e),hg(this._ctx,()=>{var r=e;return function(o,n,i){return--r<=0&&n(i),r>=0}},!0),this}until(e,r){return fg(this._ctx,function(o,n,i){return!e(o.value)||(n(i),r)}),this}first(e){return this.limit(1).toArray(function(r){return r[0]}).then(e)}last(e){return this.reverse().first(e)}filter(e){var r,o;return fg(this._ctx,function(n){return e(n.value)}),r=this._ctx,o=e,r.isMatch=Li(r.isMatch,o),this}and(e){return this.filter(e)}or(e){return new this.db.WhereClause(this._ctx.table,e,this)}reverse(){return this._ctx.dir=this._ctx.dir==="prev"?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this}desc(){return this.reverse()}eachKey(e){var r=this._ctx;return r.keysOnly=!r.isMatch,this.each(function(o,n){e(n.key,n)})}eachUniqueKey(e){return this._ctx.unique="unique",this.eachKey(e)}eachPrimaryKey(e){var r=this._ctx;return r.keysOnly=!r.isMatch,this.each(function(o,n){e(n.primaryKey,n)})}keys(e){var r=this._ctx;r.keysOnly=!r.isMatch;var o=[];return this.each(function(n,i){o.push(i.key)}).then(function(){return o}).then(e)}primaryKeys(e){var r=this._ctx;if(r.dir==="next"&&na(r,!0)&&r.limit>0)return this._read(n=>{var i=Hu(r,r.table.core.schema);return r.table.core.query({trans:n,values:!1,limit:r.limit,query:{index:i,range:r.range}})}).then(({result:n})=>n).then(e);r.keysOnly=!r.isMatch;var o=[];return this.each(function(n,i){o.push(i.primaryKey)}).then(function(){return o}).then(e)}uniqueKeys(e){return this._ctx.unique="unique",this.keys(e)}firstKey(e){return this.limit(1).keys(function(r){return r[0]}).then(e)}lastKey(e){return this.reverse().firstKey(e)}distinct(){var e=this._ctx,r=e.index&&e.table.schema.idxByName[e.index];if(!r||!r.multi)return this;var o={};return fg(this._ctx,function(n){var i=n.primaryKey.toString(),a=Cr(o,i);return o[i]=!0,!a}),this}modify(e){var r=this._ctx;return this._write(o=>{var n;if(typeof e=="function")n=e;else{var i=vt(e),a=i.length;n=function(p){for(var w=!1,v=0;v{const{failures:v,numFailures:m}=w;f+=p-m;for(let b of vt(v))d.push(v[b])};return this.clone().primaryKeys().then(p=>{const w=v=>{const m=Math.min(u,p.length-v);return s.getMany({trans:o,keys:p.slice(v,v+m),cache:"immutable"}).then(b=>{const k=[],x=[],_=l?[]:null,S=[];for(let E=0;E0&&s.mutate({trans:o,type:"add",values:k}).then(E=>{for(let I in E.failures)S.splice(parseInt(I),1);g(k.length,E)})).then(()=>(x.length>0||C&&typeof e=="object")&&s.mutate({trans:o,type:"put",keys:_,values:x,criteria:C,changeSpec:typeof e!="function"&&e}).then(E=>g(x.length,E))).then(()=>(S.length>0||C&&e===gg)&&s.mutate({trans:o,type:"delete",keys:S,criteria:C}).then(E=>g(S.length,E))).then(()=>p.length>v+m&&w(v+u))})};return w(0).then(()=>{if(d.length>0)throw new Fd("Error modifying one or more objects",d,f,h);return p.length})})})}delete(){var e=this._ctx,r=e.range;return na(e)&&(e.isPrimKey&&!PZ||r.type===3)?this._write(o=>{const{primaryKey:n}=e.table.core.schema,i=r;return e.table.core.count({trans:o,query:{index:n,range:i}}).then(a=>e.table.core.mutate({trans:o,type:"deleteRange",range:i}).then(({failures:s,lastResult:l,results:c,numFailures:u})=>{if(u)throw new Fd("Could not delete some values",Object.keys(s).map(d=>s[d]),a-u);return a-u}))}):this.modify(gg)}}const gg=(t,e)=>e.value=null;function OZ(t,e){return te?-1:t===e?0:1}function fr(t,e,r){var o=t instanceof BE?new t.Collection(t):t;return o._ctx.error=r?new r(e):new TypeError(e),o}function ia(t){return new t.Collection(t,()=>EE("")).limit(0)}function DZ(t,e,r,o,n,i){for(var a=Math.min(t.length,o.length),s=-1,l=0;l=0?t.substr(0,s)+e[s]+r.substr(s+1):null;n(t[l],c)<0&&(s=l)}return atypeof p=="string"))return fr(t,xE);function f(p){n=function(v){return v==="next"?m=>m.toUpperCase():m=>m.toLowerCase()}(p),i=function(v){return v==="next"?m=>m.toLowerCase():m=>m.toUpperCase()}(p),a=p==="next"?OZ:jZ;var w=r.map(function(v){return{lower:i(v),upper:n(v)}}).sort(function(v,m){return a(v.lower,m.lower)});s=w.map(function(v){return v.upper}),l=w.map(function(v){return v.lower}),c=p,u=p==="next"?"":o}f("next");var h=new t.Collection(t,()=>wn(s[0],l[d-1]+o));h._ondirectionchange=function(p){f(p)};var g=0;return h._addAlgorithm(function(p,w,v){var m=p.key;if(typeof m!="string")return!1;var b=i(m);if(e(b,l,g))return!0;for(var k=null,x=g;x0)&&(k=_)}return w(k!==null?function(){p.continue(k+u)}:v),!1}),h}function wn(t,e,r,o){return{type:2,lower:t,upper:e,lowerOpen:r,upperOpen:o}}function EE(t){return{type:1,lower:t,upper:t}}class BE{get Collection(){return this._ctx.table.db.Collection}between(e,r,o,n){o=o!==!1,n=n===!0;try{return this._cmp(e,r)>0||this._cmp(e,r)===0&&(o||n)&&(!o||!n)?ia(this):new this.Collection(this,()=>wn(e,r,!o,!n))}catch{return fr(this,Mo)}}equals(e){return e==null?fr(this,Mo):new this.Collection(this,()=>EE(e))}above(e){return e==null?fr(this,Mo):new this.Collection(this,()=>wn(e,void 0,!0))}aboveOrEqual(e){return e==null?fr(this,Mo):new this.Collection(this,()=>wn(e,void 0,!1))}below(e){return e==null?fr(this,Mo):new this.Collection(this,()=>wn(void 0,e,!1,!0))}belowOrEqual(e){return e==null?fr(this,Mo):new this.Collection(this,()=>wn(void 0,e))}startsWith(e){return typeof e!="string"?fr(this,xE):this.between(e,e+yi,!0,!0)}startsWithIgnoreCase(e){return e===""?this.startsWith(e):gu(this,(r,o)=>r.indexOf(o[0])===0,[e],yi)}equalsIgnoreCase(e){return gu(this,(r,o)=>r===o[0],[e],"")}anyOfIgnoreCase(){var e=$o.apply(ua,arguments);return e.length===0?ia(this):gu(this,(r,o)=>o.indexOf(r)!==-1,e,"")}startsWithAnyOfIgnoreCase(){var e=$o.apply(ua,arguments);return e.length===0?ia(this):gu(this,(r,o)=>o.some(n=>r.indexOf(n)===0),e,yi)}anyOf(){const e=$o.apply(ua,arguments);let r=this._cmp;try{e.sort(r)}catch{return fr(this,Mo)}if(e.length===0)return ia(this);const o=new this.Collection(this,()=>wn(e[0],e[e.length-1]));o._ondirectionchange=i=>{r=i==="next"?this._ascending:this._descending,e.sort(r)};let n=0;return o._addAlgorithm((i,a,s)=>{const l=i.key;for(;r(l,e[n])>0;)if(++n,n===e.length)return a(s),!1;return r(l,e[n])===0||(a(()=>{i.continue(e[n])}),!1)}),o}notEqual(e){return this.inAnyRange([[km,e],[e,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})}noneOf(){const e=$o.apply(ua,arguments);if(e.length===0)return new this.Collection(this);try{e.sort(this._ascending)}catch{return fr(this,Mo)}const r=e.reduce((o,n)=>o?o.concat([[o[o.length-1][1],n]]):[[km,n]],null);return r.push([e[e.length-1],this.db._maxKey]),this.inAnyRange(r,{includeLowers:!1,includeUppers:!1})}inAnyRange(e,r){const o=this._cmp,n=this._ascending,i=this._descending,a=this._min,s=this._max;if(e.length===0)return ia(this);if(!e.every(m=>m[0]!==void 0&&m[1]!==void 0&&n(m[0],m[1])<=0))return fr(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",pe.InvalidArgument);const l=!r||r.includeLowers!==!1,c=r&&r.includeUppers===!0;let u,d=n;function f(m,b){return d(m[0],b[0])}try{u=e.reduce(function(m,b){let k=0,x=m.length;for(;k0){_[0]=a(_[0],b[0]),_[1]=s(_[1],b[1]);break}}return k===x&&m.push(b),m},[]),u.sort(f)}catch{return fr(this,Mo)}let h=0;const g=c?m=>n(m,u[h][1])>0:m=>n(m,u[h][1])>=0,p=l?m=>i(m,u[h][0])>0:m=>i(m,u[h][0])>=0;let w=g;const v=new this.Collection(this,()=>wn(u[0][0],u[u.length-1][1],!l,!c));return v._ondirectionchange=m=>{m==="next"?(w=g,d=n):(w=p,d=i),u.sort(f)},v._addAlgorithm((m,b,k)=>{for(var x=m.key;w(x);)if(++h,h===u.length)return b(k),!1;return!!function(_){return!g(_)&&!p(_)}(x)||(this._cmp(x,u[h][1])===0||this._cmp(x,u[h][0])===0||b(()=>{d===n?m.continue(u[h][0]):m.continue(u[h][1])}),!1)}),v}startsWithAnyOf(){const e=$o.apply(ua,arguments);return e.every(r=>typeof r=="string")?e.length===0?ia(this):this.inAnyRange(e.map(r=>[r,r+yi])):fr(this,"startsWithAnyOf() only works with strings")}}function vo(t){return $e(function(e){return Vl(e),t(e.target.error),!1})}function Vl(t){t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault()}const Gl="storagemutated",Tn="x-storagemutated-1",Xn=pl(null,Gl);class FZ{_lock(){return Vs(!ce.global),++this._reculock,this._reculock!==1||ce.global||(ce.lockOwnerFor=this),this}_unlock(){if(Vs(!ce.global),--this._reculock==0)for(ce.global||(ce.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var e=this._blockedFuncs.shift();try{ys(e[1],e[0])}catch{}}return this}_locked(){return this._reculock&&ce.lockOwnerFor!==this}create(e){if(!this.mode)return this;const r=this.db.idbdb,o=this.db._state.dbOpenError;if(Vs(!this.idbtrans),!e&&!r)switch(o&&o.name){case"DatabaseClosedError":throw new pe.DatabaseClosed(o);case"MissingAPIError":throw new pe.MissingAPI(o.message,o);default:throw new pe.OpenFailed(o)}if(!this.active)throw new pe.TransactionInactive;return Vs(this._completion._state===null),(e=this.idbtrans=e||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):r.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}))).onerror=$e(n=>{Vl(n),this._reject(e.error)}),e.onabort=$e(n=>{Vl(n),this.active&&this._reject(new pe.Abort(e.error)),this.active=!1,this.on("abort").fire(n)}),e.oncomplete=$e(()=>{this.active=!1,this._resolve(),"mutatedParts"in e&&Xn.storagemutated.fire(e.mutatedParts)}),this}_promise(e,r,o){if(e==="readwrite"&&this.mode!=="readwrite")return Ct(new pe.ReadOnly("Transaction is readonly"));if(!this.active)return Ct(new pe.TransactionInactive);if(this._locked())return new ie((i,a)=>{this._blockedFuncs.push([()=>{this._promise(e,r,o).then(i,a)},ce])});if(o)return Vn(()=>{var i=new ie((a,s)=>{this._lock();const l=r(a,s,this);l&&l.then&&l.then(a,s)});return i.finally(()=>this._unlock()),i._lib=!0,i});var n=new ie((i,a)=>{var s=r(i,a,this);s&&s.then&&s.then(i,a)});return n._lib=!0,n}_root(){return this.parent?this.parent._root():this}waitFor(e){var r=this._root();const o=ie.resolve(e);if(r._waitingFor)r._waitingFor=r._waitingFor.then(()=>o);else{r._waitingFor=o,r._waitingQueue=[];var n=r.idbtrans.objectStore(r.storeNames[0]);(function a(){for(++r._spinCount;r._waitingQueue.length;)r._waitingQueue.shift()();r._waitingFor&&(n.get(-1/0).onsuccess=a)})()}var i=r._waitingFor;return new ie((a,s)=>{o.then(l=>r._waitingQueue.push($e(a.bind(null,l))),l=>r._waitingQueue.push($e(s.bind(null,l)))).finally(()=>{r._waitingFor===i&&(r._waitingFor=null)})})}abort(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new pe.Abort))}table(e){const r=this._memoizedTables||(this._memoizedTables={});if(Cr(r,e))return r[e];const o=this.schema[e];if(!o)throw new pe.NotFound("Table "+e+" not part of transaction");const n=new this.db.Table(e,o,this);return n.core=this.db.core.table(e),r[e]=n,n}}function Sm(t,e,r,o,n,i,a){return{name:t,keyPath:e,unique:r,multi:o,auto:n,compound:i,src:(r&&!a?"&":"")+(o?"*":"")+(n?"++":"")+IE(e)}}function IE(t){return typeof t=="string"?t:t?"["+[].join.call(t,"+")+"]":""}function RE(t,e,r){return{name:t,primKey:e,indexes:r,mappedClass:null,idxByName:sE(r,o=>[o.name,o])}}let Xl=t=>{try{return t.only([[]]),Xl=()=>[[]],[[]]}catch{return Xl=()=>yi,yi}};function _m(t){return t==null?()=>{}:typeof t=="string"?function(e){return e.split(".").length===1?o=>o[e]:o=>en(o,e)}(t):e=>en(e,t)}function Ek(t){return[].slice.call(t)}let qZ=0;function ml(t){return t==null?":id":typeof t=="string"?t:`[${t.join("+")}]`}function LZ(t,e,r){function o(l){if(l.type===3)return null;if(l.type===4)throw new Error("Cannot convert never type to IDBKeyRange");const{lower:c,upper:u,lowerOpen:d,upperOpen:f}=l;return c===void 0?u===void 0?null:e.upperBound(u,!!f):u===void 0?e.lowerBound(c,!!d):e.bound(c,u,!!d,!!f)}const{schema:n,hasGetAll:i}=function(l,c){const u=Ek(l.objectStoreNames);return{schema:{name:l.name,tables:u.map(d=>c.objectStore(d)).map(d=>{const{keyPath:f,autoIncrement:h}=d,g=Kt(f),p=f==null,w={},v={name:d.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:p,compound:g,keyPath:f,autoIncrement:h,unique:!0,extractKey:_m(f)},indexes:Ek(d.indexNames).map(m=>d.index(m)).map(m=>{const{name:b,unique:k,multiEntry:x,keyPath:_}=m,S={name:b,compound:Kt(_),keyPath:_,unique:k,multiEntry:x,extractKey:_m(_)};return w[ml(_)]=S,S}),getIndexByKeyPath:m=>w[ml(m)]};return w[":id"]=v.primaryKey,f!=null&&(w[ml(f)]=v.primaryKey),v})},hasGetAll:u.length>0&&"getAll"in c.objectStore(u[0])&&!(typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}(t,r),a=n.tables.map(l=>function(c){const u=c.name;return{name:u,schema:c,mutate:function({trans:d,type:f,keys:h,values:g,range:p}){return new Promise((w,v)=>{w=$e(w);const m=d.objectStore(u),b=m.keyPath==null,k=f==="put"||f==="add";if(!k&&f!=="delete"&&f!=="deleteRange")throw new Error("Invalid operation type: "+f);const{length:x}=h||g||{length:1};if(h&&g&&h.length!==g.length)throw new Error("Given keys array must have same length as given values array.");if(x===0)return w({numFailures:0,failures:{},results:[],lastResult:void 0});let _;const S=[],C=[];let E=0;const I=T=>{++E,Vl(T)};if(f==="deleteRange"){if(p.type===4)return w({numFailures:E,failures:C,results:[],lastResult:void 0});p.type===3?S.push(_=m.clear()):S.push(_=m.delete(o(p)))}else{const[T,R]=k?b?[g,h]:[g,null]:[h,null];if(k)for(let M=0;M{const R=T.target.result;S.forEach((M,P)=>M.error!=null&&(C[P]=M.error)),w({numFailures:E,failures:C,results:f==="delete"?h:S.map(M=>M.result),lastResult:R})};_.onerror=T=>{I(T),H(T)},_.onsuccess=H})},getMany:({trans:d,keys:f})=>new Promise((h,g)=>{h=$e(h);const p=d.objectStore(u),w=f.length,v=new Array(w);let m,b=0,k=0;const x=S=>{const C=S.target;v[C._pos]=C.result,++k===b&&h(v)},_=vo(g);for(let S=0;Snew Promise((h,g)=>{h=$e(h);const p=d.objectStore(u).get(f);p.onsuccess=w=>h(w.target.result),p.onerror=vo(g)}),query:function(d){return f=>new Promise((h,g)=>{h=$e(h);const{trans:p,values:w,limit:v,query:m}=f,b=v===1/0?void 0:v,{index:k,range:x}=m,_=p.objectStore(u),S=k.isPrimaryKey?_:_.index(k.name),C=o(x);if(v===0)return h({result:[]});if(d){const E=w?S.getAll(C,b):S.getAllKeys(C,b);E.onsuccess=I=>h({result:I.target.result}),E.onerror=vo(g)}else{let E=0;const I=w||!("openKeyCursor"in S)?S.openCursor(C):S.openKeyCursor(C),H=[];I.onsuccess=T=>{const R=I.result;return R?(H.push(w?R.value:R.primaryKey),++E===v?h({result:H}):void R.continue()):h({result:H})},I.onerror=vo(g)}})}(i),openCursor:function({trans:d,values:f,query:h,reverse:g,unique:p}){return new Promise((w,v)=>{w=$e(w);const{index:m,range:b}=h,k=d.objectStore(u),x=m.isPrimaryKey?k:k.index(m.name),_=g?p?"prevunique":"prev":p?"nextunique":"next",S=f||!("openKeyCursor"in x)?x.openCursor(o(b),_):x.openKeyCursor(o(b),_);S.onerror=vo(v),S.onsuccess=$e(C=>{const E=S.result;if(!E)return void w(null);E.___id=++qZ,E.done=!1;const I=E.continue.bind(E);let H=E.continuePrimaryKey;H&&(H=H.bind(E));const T=E.advance.bind(E),R=()=>{throw new Error("Cursor not stopped")};E.trans=d,E.stop=E.continue=E.continuePrimaryKey=E.advance=()=>{throw new Error("Cursor not started")},E.fail=$e(v),E.next=function(){let M=1;return this.start(()=>M--?this.continue():this.stop()).then(()=>this)},E.start=M=>{const P=new Promise((W,B)=>{W=$e(W),S.onerror=vo(B),E.fail=B,E.stop=D=>{E.stop=E.continue=E.continuePrimaryKey=E.advance=R,W(D)}}),j=()=>{if(S.result)try{M()}catch(W){E.fail(W)}else E.done=!0,E.start=()=>{throw new Error("Cursor behind last entry")},E.stop()};return S.onsuccess=$e(W=>{S.onsuccess=j,j()}),E.continue=I,E.continuePrimaryKey=H,E.advance=T,j(),P},w(E)},v)})},count({query:d,trans:f}){const{index:h,range:g}=d;return new Promise((p,w)=>{const v=f.objectStore(u),m=h.isPrimaryKey?v:v.index(h.name),b=o(g),k=b?m.count(b):m.count();k.onsuccess=$e(x=>p(x.target.result)),k.onerror=vo(w)})}}}(l)),s={};return a.forEach(l=>s[l.name]=l),{stack:"dbcore",transaction:t.transaction.bind(t),table(l){if(!s[l])throw new Error(`Table '${l}' not found`);return s[l]},MIN_KEY:-1/0,MAX_KEY:Xl(e),schema:n}}function xm({_novip:t},e){const r=e.db,o=function(n,i,{IDBKeyRange:a,indexedDB:s},l){return{dbcore:function(u,d){return d.reduce((f,{create:h})=>({...f,...h(f)}),u)}(LZ(i,a,l),n.dbcore)}}(t._middlewares,r,t._deps,e);t.core=o.dbcore,t.tables.forEach(n=>{const i=n.name;t.core.schema.tables.some(a=>a.name===i)&&(n.core=t.core.table(i),t[i]instanceof t.Table&&(t[i].core=n.core))})}function $d({_novip:t},e,r,o){r.forEach(n=>{const i=o[n];e.forEach(a=>{const s=o0(a,n);(!s||"value"in s&&s.value===void 0)&&(a===t.Transaction.prototype||a instanceof t.Transaction?Jo(a,n,{get(){return this.table(n)},set(l){nE(this,n,{value:l,writable:!0,configurable:!0,enumerable:!0})}}):a[n]=new t.Table(n,i))})})}function Cm({_novip:t},e){e.forEach(r=>{for(let o in r)r[o]instanceof t.Table&&delete r[o]})}function HZ(t,e){return t._cfg.version-e._cfg.version}function UZ(t,e,r,o){const n=t._dbSchema,i=t._createTransaction("readwrite",t._storeNames,n);i.create(r),i._completion.catch(o);const a=i._reject.bind(i),s=ce.transless||ce;Vn(()=>{ce.trans=i,ce.transless=s,e===0?(vt(n).forEach(l=>{pg(r,l,n[l].primKey,n[l].indexes)}),xm(t,r),ie.follow(()=>t.on.populate.fire(i)).catch(a)):function({_novip:l},c,u,d){const f=[],h=l._versions;let g=l._dbSchema=Em(l,l.idbdb,d),p=!1;const w=h.filter(m=>m._cfg.version>=c);function v(){return f.length?ie.resolve(f.shift()(u.idbtrans)).then(v):ie.resolve()}return w.forEach(m=>{f.push(()=>{const b=g,k=m._cfg.dbschema;Bm(l,b,d),Bm(l,k,d),g=l._dbSchema=k;const x=AE(b,k);x.add.forEach(S=>{pg(d,S[0],S[1].primKey,S[1].indexes)}),x.change.forEach(S=>{if(S.recreate)throw new pe.Upgrade("Not yet support for changing primary key");{const C=d.objectStore(S.name);S.add.forEach(E=>Tm(C,E)),S.change.forEach(E=>{C.deleteIndex(E.name),Tm(C,E)}),S.del.forEach(E=>C.deleteIndex(E))}});const _=m._cfg.contentUpgrade;if(_&&m._cfg.version>c){xm(l,d),u._memoizedTables={},p=!0;let S=lE(k);x.del.forEach(H=>{S[H]=b[H]}),Cm(l,[l.Transaction.prototype]),$d(l,[l.Transaction.prototype],vt(S),S),u.schema=S;const C=n0(_);let E;C&&bs();const I=ie.follow(()=>{if(E=_(u),E&&C){var H=un.bind(null,null);E.then(H,H)}});return E&&typeof E.then=="function"?ie.resolve(E):I.then(()=>E)}}),f.push(b=>{(!p||!NZ)&&function(k,x){[].slice.call(x.db.objectStoreNames).forEach(_=>k[_]==null&&x.db.deleteObjectStore(_))}(m._cfg.dbschema,b),Cm(l,[l.Transaction.prototype]),$d(l,[l.Transaction.prototype],l._storeNames,l._dbSchema),u.schema=l._dbSchema})}),v().then(()=>{var m,b;b=d,vt(m=g).forEach(k=>{b.db.objectStoreNames.contains(k)||pg(b,k,m[k].primKey,m[k].indexes)})})}(t,e,i,r).catch(a)})}function AE(t,e){const r={del:[],add:[],change:[]};let o;for(o in t)e[o]||r.del.push(o);for(o in e){const n=t[o],i=e[o];if(n){const a={name:o,def:i,recreate:!1,del:[],add:[],change:[]};if(""+(n.primKey.keyPath||"")!=""+(i.primKey.keyPath||"")||n.primKey.auto!==i.primKey.auto&&!Wf)a.recreate=!0,r.change.push(a);else{const s=n.idxByName,l=i.idxByName;let c;for(c in s)l[c]||a.del.push(c);for(c in l){const u=s[c],d=l[c];u?u.src!==d.src&&a.change.push(d):a.add.push(d)}(a.del.length>0||a.add.length>0||a.change.length>0)&&r.change.push(a)}}else r.add.push([o,i])}return r}function pg(t,e,r,o){const n=t.db.createObjectStore(e,r.keyPath?{keyPath:r.keyPath,autoIncrement:r.auto}:{autoIncrement:r.auto});return o.forEach(i=>Tm(n,i)),n}function Tm(t,e){t.createIndex(e.name,e.keyPath,{unique:e.unique,multiEntry:e.multi})}function Em(t,e,r){const o={};return Dd(e.objectStoreNames,0).forEach(n=>{const i=r.objectStore(n);let a=i.keyPath;const s=Sm(IE(a),a||"",!1,!1,!!i.autoIncrement,a&&typeof a!="string",!0),l=[];for(let u=0;u{if(e[o]!==null){var n=e[o].split(",").map((a,s)=>{const l=(a=a.trim()).replace(/([&*]|\+\+)/g,""),c=/^\[/.test(l)?l.match(/^\[(.*)\]$/)[1].split("+"):l;return Sm(l,c||null,/\&/.test(a),/\*/.test(a),/\+\+/.test(a),Kt(c),s===0)}),i=n.shift();if(i.multi)throw new pe.Schema("Primary key cannot be multi-valued");n.forEach(a=>{if(a.auto)throw new pe.Schema("Only primary key can be marked as autoIncrement (++)");if(!a.keyPath)throw new pe.Schema("Index must have a name and cannot be an empty string")}),r[o]=RE(o,i,n)}})}stores(e){const r=this.db;this._cfg.storesSource=this._cfg.storesSource?tr(this._cfg.storesSource,e):e;const o=r._versions,n={};let i={};return o.forEach(a=>{tr(n,a._cfg.storesSource),i=a._cfg.dbschema={},a._parseStoresSpec(n,i)}),r._dbSchema=i,Cm(r,[r._allTables,r,r.Transaction.prototype]),$d(r,[r._allTables,r,r.Transaction.prototype,this._cfg.tables],vt(i),i),r._storeNames=vt(i),this}upgrade(e){return this._cfg.contentUpgrade=s0(this._cfg.contentUpgrade||Ae,e),this}}function d0(t,e){let r=t._dbNamesDB;return r||(r=t._dbNamesDB=new Fa(Vf,{addons:[],indexedDB:t,IDBKeyRange:e}),r.version(1).stores({dbnames:"name"})),r.table("dbnames")}function f0(t){return t&&typeof t.databases=="function"}function Im(t){return Vn(function(){return ce.letThrough=!0,t()})}function KZ(){var t;return!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(e){var r=function(){return indexedDB.databases().finally(e)};t=setInterval(r,100),r()}).finally(function(){return clearInterval(t)}):Promise.resolve()}function WZ(t){const e=t._state,{indexedDB:r}=t._deps;if(e.isBeingOpened||t.idbdb)return e.dbReadyPromise.then(()=>e.dbOpenError?Ct(e.dbOpenError):t);Po&&(e.openCanceller._stackHolder=Xi()),e.isBeingOpened=!0,e.dbOpenError=null,e.openComplete=!1;const o=e.openCanceller;function n(){if(e.openCanceller!==o)throw new pe.DatabaseClosed("db.open() was cancelled")}let i=e.dbReadyResolve,a=null,s=!1;return ie.race([o,(typeof navigator>"u"?ie.resolve():KZ()).then(()=>new ie((l,c)=>{if(n(),!r)throw new pe.MissingAPI;const u=t.name,d=e.autoSchema?r.open(u):r.open(u,Math.round(10*t.verno));if(!d)throw new pe.MissingAPI;d.onerror=vo(c),d.onblocked=$e(t._fireOnBlocked),d.onupgradeneeded=$e(f=>{if(a=d.transaction,e.autoSchema&&!t._options.allowEmptyDB){d.onerror=Vl,a.abort(),d.result.close();const g=r.deleteDatabase(u);g.onsuccess=g.onerror=$e(()=>{c(new pe.NoSuchDatabase(`Database ${u} doesnt exist`))})}else{a.onerror=vo(c);var h=f.oldVersion>Math.pow(2,62)?0:f.oldVersion;s=h<1,t._novip.idbdb=d.result,UZ(t,h/10,a,c)}},c),d.onsuccess=$e(()=>{a=null;const f=t._novip.idbdb=d.result,h=Dd(f.objectStoreNames);if(h.length>0)try{const p=f.transaction((g=h).length===1?g[0]:g,"readonly");e.autoSchema?function({_novip:w},v,m){w.verno=v.version/10;const b=w._dbSchema=Em(0,v,m);w._storeNames=Dd(v.objectStoreNames,0),$d(w,[w._allTables],vt(b),b)}(t,f,p):(Bm(t,t._dbSchema,p),function(w,v){const m=AE(Em(0,w.idbdb,v),w._dbSchema);return!(m.add.length||m.change.some(b=>b.add.length||b.change.length))}(t,p)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),xm(t,p)}catch{}var g;gl.push(t),f.onversionchange=$e(p=>{e.vcFired=!0,t.on("versionchange").fire(p)}),f.onclose=$e(p=>{t.on("close").fire(p)}),s&&function({indexedDB:p,IDBKeyRange:w},v){!f0(p)&&v!==Vf&&d0(p,w).put({name:v}).catch(Ae)}(t._deps,u),l()},c)}))]).then(()=>(n(),e.onReadyBeingFired=[],ie.resolve(Im(()=>t.on.ready.fire(t.vip))).then(function l(){if(e.onReadyBeingFired.length>0){let c=e.onReadyBeingFired.reduce(s0,Ae);return e.onReadyBeingFired=[],ie.resolve(Im(()=>c(t.vip))).then(l)}}))).finally(()=>{e.onReadyBeingFired=null,e.isBeingOpened=!1}).then(()=>t).catch(l=>{e.dbOpenError=l;try{a&&a.abort()}catch{}return o===e.openCanceller&&t._close(),Ct(l)}).finally(()=>{e.openComplete=!0,i()})}function Rm(t){var e=i=>t.next(i),r=n(e),o=n(i=>t.throw(i));function n(i){return a=>{var s=i(a),l=s.value;return s.done?l:l&&typeof l.then=="function"?l.then(r,o):Kt(l)?Promise.all(l).then(r,o):r(l)}}return n(e)()}function VZ(t,e,r){var o=arguments.length;if(o<2)throw new pe.InvalidArgument("Too few arguments");for(var n=new Array(o-1);--o;)n[o-1]=arguments[o];return r=n.pop(),[t,cE(n),r]}function NE(t,e,r,o,n){return ie.resolve().then(()=>{const i=ce.transless||ce,a=t._createTransaction(e,r,t._dbSchema,o),s={trans:a,transless:i};if(o)a.idbtrans=o.idbtrans;else try{a.create(),t._state.PR1398_maxLoop=3}catch(d){return d.name===a0.InvalidState&&t.isOpen()&&--t._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),t._close(),t.open().then(()=>NE(t,e,r,null,n))):Ct(d)}const l=n0(n);let c;l&&bs();const u=ie.follow(()=>{if(c=n.call(a,a),c)if(l){var d=un.bind(null,null);c.then(d,d)}else typeof c.next=="function"&&typeof c.throw=="function"&&(c=Rm(c))},s);return(c&&typeof c.then=="function"?ie.resolve(c).then(d=>a.active?d:Ct(new pe.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))):u.then(()=>c)).then(d=>(o&&a._resolve(),a._completion.then(()=>d))).catch(d=>(a._reject(d),Ct(d)))})}function pu(t,e,r){const o=Kt(t)?t.slice():[t];for(let n=0;n0,v={...f,isVirtual:w,keyTail:d,keyLength:p,extractKey:_m(u),unique:!w&&f.unique};return g.push(v),v.isPrimaryKey||i.push(v),p>1&&a(p===2?u[0]:u.slice(0,p-1),d+1,f),g.sort((m,b)=>m.keyTail-b.keyTail),v}const s=a(o.primaryKey.keyPath,0,o.primaryKey);n[":id"]=[s];for(const u of o.indexes)a(u.keyPath,0,u);function l(u){const d=u.query.index;return d.isVirtual?{...u,query:{index:d,range:(f=u.query.range,h=d.keyTail,{type:f.type===1?2:f.type,lower:pu(f.lower,f.lowerOpen?t.MAX_KEY:t.MIN_KEY,h),lowerOpen:!0,upper:pu(f.upper,f.upperOpen?t.MIN_KEY:t.MAX_KEY,h),upperOpen:!0})}}:u;var f,h}return{...r,schema:{...o,primaryKey:s,indexes:i,getIndexByKeyPath:function(u){const d=n[ml(u)];return d&&d[0]}},count:u=>r.count(l(u)),query:u=>r.query(l(u)),openCursor(u){const{keyTail:d,isVirtual:f,keyLength:h}=u.query.index;return f?r.openCursor(l(u)).then(g=>g&&function(p){return Object.create(p,{continue:{value:function(v){v!=null?p.continue(pu(v,u.reverse?t.MAX_KEY:t.MIN_KEY,d)):u.unique?p.continue(p.key.slice(0,h).concat(u.reverse?t.MIN_KEY:t.MAX_KEY,d)):p.continue()}},continuePrimaryKey:{value(v,m){p.continuePrimaryKey(pu(v,t.MAX_KEY,d),m)}},primaryKey:{get:()=>p.primaryKey},key:{get(){const v=p.key;return h===1?v[0]:v.slice(0,h)}},value:{get:()=>p.value}})}(g)):r.openCursor(u)}}}}}};function h0(t,e,r,o){return r=r||{},o=o||"",vt(t).forEach(n=>{if(Cr(e,n)){var i=t[n],a=e[n];if(typeof i=="object"&&typeof a=="object"&&i&&a){const s=cm(i);s!==cm(a)?r[o+n]=e[n]:s==="Object"?h0(i,a,r,o+n+"."):i!==a&&(r[o+n]=e[n])}else i!==a&&(r[o+n]=e[n])}else r[o+n]=void 0}),vt(e).forEach(n=>{Cr(t,n)||(r[o+n]=e[n])}),r}const XZ={stack:"dbcore",name:"HooksMiddleware",level:2,create:t=>({...t,table(e){const r=t.table(e),{primaryKey:o}=r.schema;return{...r,mutate(i){const a=ce.trans,{deleting:s,creating:l,updating:c}=a.table(e).hook;switch(i.type){case"add":if(l.fire===Ae)break;return a._promise("readwrite",()=>u(i),!0);case"put":if(l.fire===Ae&&c.fire===Ae)break;return a._promise("readwrite",()=>u(i),!0);case"delete":if(s.fire===Ae)break;return a._promise("readwrite",()=>u(i),!0);case"deleteRange":if(s.fire===Ae)break;return a._promise("readwrite",()=>function(f){return d(f.trans,f.range,1e4)}(i),!0)}return r.mutate(i);function u(f){const h=ce.trans,g=f.keys||function(p,w){return w.type==="delete"?w.keys:w.keys||w.values.map(p.extractKey)}(o,f);if(!g)throw new Error("Keys missing");return(f=f.type==="add"||f.type==="put"?{...f,keys:g}:{...f}).type!=="delete"&&(f.values=[...f.values]),f.keys&&(f.keys=[...f.keys]),function(p,w,v){return w.type==="add"?Promise.resolve([]):p.getMany({trans:w.trans,keys:v,cache:"immutable"})}(r,f,g).then(p=>{const w=g.map((v,m)=>{const b=p[m],k={onerror:null,onsuccess:null};if(f.type==="delete")s.fire.call(k,v,b,h);else if(f.type==="add"||b===void 0){const x=l.fire.call(k,v,f.values[m],h);v==null&&x!=null&&(v=x,f.keys[m]=v,o.outbound||io(f.values[m],o.keyPath,v))}else{const x=h0(b,f.values[m]),_=c.fire.call(k,x,v,b,h);if(_){const S=f.values[m];Object.keys(_).forEach(C=>{Cr(S,C)?S[C]=_[C]:io(S,C,_[C])})}}return k});return r.mutate(f).then(({failures:v,results:m,numFailures:b,lastResult:k})=>{for(let x=0;x(w.forEach(m=>m.onerror&&m.onerror(v)),Promise.reject(v)))})}function d(f,h,g){return r.query({trans:f,values:!1,query:{index:o,range:h},limit:g}).then(({result:p})=>u({type:"delete",keys:p,trans:f}).then(w=>w.numFailures>0?Promise.reject(w.failures[0]):p.length({table:e=>{const r=t.table(e);return{...r,getMany:o=>{if(!o.cache)return r.getMany(o);const n=PE(o.keys,o.trans._cache,o.cache==="clone");return n?ie.resolve(n):r.getMany(o).then(i=>(o.trans._cache={keys:o.keys,values:o.cache==="clone"?bc(i):i},i))},mutate:o=>(o.type!=="add"&&(o.trans._cache=null),r.mutate(o))}}})};function g0(t){return!("from"in t)}const Ho=function(t,e){if(!this){const r=new Ho;return t&&"d"in t&&tr(r,t),r}tr(this,arguments.length?{d:1,from:t,to:arguments.length>1?e:t}:{d:0})};function Yl(t,e,r){const o=Yt(e,r);if(isNaN(o))return;if(o>0)throw RangeError();if(g0(t))return tr(t,{from:e,to:r,d:1});const n=t.l,i=t.r;if(Yt(r,t.from)<0)return n?Yl(n,e,r):t.l={from:e,to:r,d:1,l:null,r:null},Bk(t);if(Yt(e,t.to)>0)return i?Yl(i,e,r):t.r={from:e,to:r,d:1,l:null,r:null},Bk(t);Yt(e,t.from)<0&&(t.from=e,t.l=null,t.d=i?i.d+1:1),Yt(r,t.to)>0&&(t.to=r,t.r=null,t.d=t.l?t.l.d+1:1);const a=!t.r;n&&!t.l&&Kd(t,n),i&&a&&Kd(t,i)}function Kd(t,e){g0(e)||function r(o,{from:n,to:i,l:a,r:s}){Yl(o,n,i),a&&r(o,a),s&&r(o,s)}(t,e)}function ZZ(t,e){const r=Am(e);let o=r.next();if(o.done)return!1;let n=o.value;const i=Am(t);let a=i.next(n.from),s=a.value;for(;!o.done&&!a.done;){if(Yt(s.from,n.to)<=0&&Yt(s.to,n.from)>=0)return!0;Yt(n.from,s.from)<0?n=(o=r.next(s.from)).value:s=(a=i.next(n.from)).value}return!1}function Am(t){let e=g0(t)?null:{s:0,n:t};return{next(r){const o=arguments.length>0;for(;e;)switch(e.s){case 0:if(e.s=1,o)for(;e.n.l&&Yt(r,e.n.from)<0;)e={up:e,n:e.n.l,s:1};else for(;e.n.l;)e={up:e,n:e.n.l,s:1};case 1:if(e.s=2,!o||Yt(r,e.n.to)<=0)return{value:e.n,done:!1};case 2:if(e.n.r){e.s=3,e={up:e,n:e.n.r,s:0};continue}case 3:e=e.up}return{done:!0}}}}function Bk(t){var e,r;const o=(((e=t.r)===null||e===void 0?void 0:e.d)||0)-(((r=t.l)===null||r===void 0?void 0:r.d)||0),n=o>1?"r":o<-1?"l":"";if(n){const i=n==="r"?"l":"r",a={...t},s=t[n];t.from=s.from,t.to=s.to,t[n]=s[n],a[n]=s[i],t[i]=a,a.d=Ik(a)}t.d=Ik(t)}function Ik({r:t,l:e}){return(t?e?Math.max(t.d,e.d):t.d:e?e.d:0)+1}ls(Ho.prototype,{add(t){return Kd(this,t),this},addKey(t){return Yl(this,t,t),this},addKeys(t){return t.forEach(e=>Yl(this,e,e)),this},[um](){return Am(this)}});const QZ={stack:"dbcore",level:0,create:t=>{const e=t.schema.name,r=new Ho(t.MIN_KEY,t.MAX_KEY);return{...t,table:o=>{const n=t.table(o),{schema:i}=n,{primaryKey:a}=i,{extractKey:s,outbound:l}=a,c={...n,mutate:f=>{const h=f.trans,g=h.mutatedParts||(h.mutatedParts={}),p=_=>{const S=`idb://${e}/${o}/${_}`;return g[S]||(g[S]=new Ho)},w=p(""),v=p(":dels"),{type:m}=f;let[b,k]=f.type==="deleteRange"?[f.range]:f.type==="delete"?[f.keys]:f.values.length<50?[[],f.values]:[];const x=f.trans._cache;return n.mutate(f).then(_=>{if(Kt(b)){m!=="delete"&&(b=_.results),w.addKeys(b);const S=PE(b,x);S||m==="add"||v.addKeys(b),(S||k)&&function(C,E,I,H){function T(R){const M=C(R.name||"");function P(W){return W!=null?R.extractKey(W):null}const j=W=>R.multiEntry&&Kt(W)?W.forEach(B=>M.addKey(B)):M.addKey(W);(I||H).forEach((W,B)=>{const D=I&&P(I[B]),U=H&&P(H[B]);Yt(D,U)!==0&&(D!=null&&j(D),U!=null&&j(U))})}E.indexes.forEach(T)}(p,i,S,k)}else if(b){const S={from:b.lower,to:b.upper};v.add(S),w.add(S)}else w.add(r),v.add(r),i.indexes.forEach(S=>p(S.name).add(r));return _})}},u=({query:{index:f,range:h}})=>{var g,p;return[f,new Ho((g=h.lower)!==null&&g!==void 0?g:t.MIN_KEY,(p=h.upper)!==null&&p!==void 0?p:t.MAX_KEY)]},d={get:f=>[a,new Ho(f.key)],getMany:f=>[a,new Ho().addKeys(f.keys)],count:u,query:u,openCursor:u};return vt(d).forEach(f=>{c[f]=function(h){const{subscr:g}=ce;if(g){const p=k=>{const x=`idb://${e}/${o}/${k}`;return g[x]||(g[x]=new Ho)},w=p(""),v=p(":dels"),[m,b]=d[f](h);if(p(m.name||"").add(b),!m.isPrimaryKey){if(f!=="count"){const k=f==="query"&&l&&h.values&&n.query({...h,values:!1});return n[f].apply(this,arguments).then(x=>{if(f==="query"){if(l&&h.values)return k.then(({result:S})=>(w.addKeys(S),x));const _=h.values?x.result.map(s):x.result;h.values?w.addKeys(_):v.addKeys(_)}else if(f==="openCursor"){const _=x,S=h.values;return _&&Object.create(_,{key:{get:()=>(v.addKey(_.primaryKey),_.key)},primaryKey:{get(){const C=_.primaryKey;return v.addKey(C),C}},value:{get:()=>(S&&w.addKey(_.primaryKey),_.value)}})}return x})}v.add(r)}}return n[f].apply(this,arguments)}}),c}}}};class Fa{constructor(e,r){this._middlewares={},this.verno=0;const o=Fa.dependencies;this._options=r={addons:Fa.addons,autoOpen:!0,indexedDB:o.indexedDB,IDBKeyRange:o.IDBKeyRange,...r},this._deps={indexedDB:r.indexedDB,IDBKeyRange:r.IDBKeyRange};const{addons:n}=r;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;const i={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:Ae,dbReadyPromise:null,cancelOpen:Ae,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};var a;i.dbReadyPromise=new ie(s=>{i.dbReadyResolve=s}),i.openCanceller=new ie((s,l)=>{i.cancelOpen=l}),this._state=i,this.name=e,this.on=pl(this,"populate","blocked","versionchange","close",{ready:[s0,Ae]}),this.on.ready.subscribe=iE(this.on.ready.subscribe,s=>(l,c)=>{Fa.vip(()=>{const u=this._state;if(u.openComplete)u.dbOpenError||ie.resolve().then(l),c&&s(l);else if(u.onReadyBeingFired)u.onReadyBeingFired.push(l),c&&s(l);else{s(l);const d=this;c||s(function f(){d.on.ready.unsubscribe(l),d.on.ready.unsubscribe(f)})}})}),this.Collection=(a=this,zs(MZ.prototype,function(s,l){this.db=a;let c=TE,u=null;if(l)try{c=l()}catch(g){u=g}const d=s._ctx,f=d.table,h=f.hook.reading.fire;this._ctx={table:f,index:d.index,isPrimKey:!d.index||f.schema.primKey.keyPath&&d.index===f.schema.primKey.name,range:c,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:u,or:d.or,valueMapper:h!==Kl?h:null}})),this.Table=function(s){return zs(zZ.prototype,function(l,c,u){this.db=s,this._tx=u,this.name=l,this.schema=c,this.hook=s._allTables[l]?s._allTables[l].hook:pl(null,{creating:[SZ,Ae],reading:[kZ,Kl],updating:[xZ,Ae],deleting:[_Z,Ae]})})}(this),this.Transaction=function(s){return zs(FZ.prototype,function(l,c,u,d,f){this.db=s,this.mode=l,this.storeNames=c,this.schema=u,this.chromeTransactionDurability=d,this.idbtrans=null,this.on=pl(this,"complete","error","abort"),this.parent=f||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new ie((h,g)=>{this._resolve=h,this._reject=g}),this._completion.then(()=>{this.active=!1,this.on.complete.fire()},h=>{var g=this.active;return this.active=!1,this.on.error.fire(h),this.parent?this.parent._reject(h):g&&this.idbtrans&&this.idbtrans.abort(),Ct(h)})})}(this),this.Version=function(s){return zs($Z.prototype,function(l){this.db=s,this._cfg={version:l,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})}(this),this.WhereClause=function(s){return zs(BE.prototype,function(l,c,u){this.db=s,this._ctx={table:l,index:c===":id"?null:c,or:u};const d=s._deps.indexedDB;if(!d)throw new pe.MissingAPI;this._cmp=this._ascending=d.cmp.bind(d),this._descending=(f,h)=>d.cmp(h,f),this._max=(f,h)=>d.cmp(f,h)>0?f:h,this._min=(f,h)=>d.cmp(f,h)<0?f:h,this._IDBKeyRange=s._deps.IDBKeyRange})}(this),this.on("versionchange",s=>{s.newVersion>0?console.warn(`Another connection wants to upgrade database '${this.name}'. Closing db now to resume the upgrade.`):console.warn(`Another connection wants to delete database '${this.name}'. Closing db now to resume the delete request.`),this.close()}),this.on("blocked",s=>{!s.newVersion||s.newVersionnew this.Transaction(s,l,c,this._options.chromeTransactionDurability,u),this._fireOnBlocked=s=>{this.on("blocked").fire(s),gl.filter(l=>l.name===this.name&&l!==this&&!l._state.vcFired).map(l=>l.on("versionchange").fire(s))},this.use(GZ),this.use(XZ),this.use(QZ),this.use(YZ),this.vip=Object.create(this,{_vip:{value:!0}}),n.forEach(s=>s(this))}version(e){if(isNaN(e)||e<.1)throw new pe.Type("Given version is not a positive number");if(e=Math.round(10*e)/10,this.idbdb||this._state.isBeingOpened)throw new pe.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,e);const r=this._versions;var o=r.filter(n=>n._cfg.version===e)[0];return o||(o=new this.Version(e),r.push(o),r.sort(HZ),o.stores({}),this._state.autoSchema=!1,o)}_whenReady(e){return this.idbdb&&(this._state.openComplete||ce.letThrough||this._vip)?e():new ie((r,o)=>{if(this._state.openComplete)return o(new pe.DatabaseClosed(this._state.dbOpenError));if(!this._state.isBeingOpened){if(!this._options.autoOpen)return void o(new pe.DatabaseClosed);this.open().catch(Ae)}this._state.dbReadyPromise.then(r,o)}).then(e)}use({stack:e,create:r,level:o,name:n}){n&&this.unuse({stack:e,name:n});const i=this._middlewares[e]||(this._middlewares[e]=[]);return i.push({stack:e,create:r,level:o??10,name:n}),i.sort((a,s)=>a.level-s.level),this}unuse({stack:e,name:r,create:o}){return e&&this._middlewares[e]&&(this._middlewares[e]=this._middlewares[e].filter(n=>o?n.create!==o:!!r&&n.name!==r)),this}open(){return WZ(this)}_close(){const e=this._state,r=gl.indexOf(this);if(r>=0&&gl.splice(r,1),this.idbdb){try{this.idbdb.close()}catch{}this._novip.idbdb=null}e.dbReadyPromise=new ie(o=>{e.dbReadyResolve=o}),e.openCanceller=new ie((o,n)=>{e.cancelOpen=n})}close(){this._close();const e=this._state;this._options.autoOpen=!1,e.dbOpenError=new pe.DatabaseClosed,e.isBeingOpened&&e.cancelOpen(e.dbOpenError)}delete(){const e=arguments.length>0,r=this._state;return new ie((o,n)=>{const i=()=>{this.close();var a=this._deps.indexedDB.deleteDatabase(this.name);a.onsuccess=$e(()=>{(function({indexedDB:s,IDBKeyRange:l},c){!f0(s)&&c!==Vf&&d0(s,l).delete(c).catch(Ae)})(this._deps,this.name),o()}),a.onerror=vo(n),a.onblocked=this._fireOnBlocked};if(e)throw new pe.InvalidArgument("Arguments not allowed in db.delete()");r.isBeingOpened?r.dbReadyPromise.then(i):i()})}backendDB(){return this.idbdb}isOpen(){return this.idbdb!==null}hasBeenClosed(){const e=this._state.dbOpenError;return e&&e.name==="DatabaseClosed"}hasFailed(){return this._state.dbOpenError!==null}dynamicallyOpened(){return this._state.autoSchema}get tables(){return vt(this._allTables).map(e=>this._allTables[e])}transaction(){const e=VZ.apply(this,arguments);return this._transaction.apply(this,e)}_transaction(e,r,o){let n=ce.trans;n&&n.db===this&&e.indexOf("!")===-1||(n=null);const i=e.indexOf("?")!==-1;let a,s;e=e.replace("!","").replace("?","");try{if(s=r.map(c=>{var u=c instanceof this.Table?c.name:c;if(typeof u!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return u}),e=="r"||e===ug)a=ug;else{if(e!="rw"&&e!=dg)throw new pe.InvalidArgument("Invalid transaction mode: "+e);a=dg}if(n){if(n.mode===ug&&a===dg){if(!i)throw new pe.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");n=null}n&&s.forEach(c=>{if(n&&n.storeNames.indexOf(c)===-1){if(!i)throw new pe.SubTransaction("Table "+c+" not included in parent transaction.");n=null}}),i&&n&&!n.active&&(n=null)}}catch(c){return n?n._promise(null,(u,d)=>{d(c)}):Ct(c)}const l=NE.bind(null,this,a,s,n,o);return n?n._promise(a,l,"lock"):ce.trans?ys(ce.transless,()=>this._whenReady(l)):this._whenReady(l)}table(e){if(!Cr(this._allTables,e))throw new pe.InvalidTable(`Table ${e} does not exist`);return this._allTables[e]}}const JZ=typeof Symbol<"u"&&"observable"in Symbol?Symbol.observable:"@@observable";class eQ{constructor(e){this._subscribe=e}subscribe(e,r,o){return this._subscribe(e&&typeof e!="function"?e:{next:e,error:r,complete:o})}[JZ](){return this}}function zE(t,e){return vt(e).forEach(r=>{Kd(t[r]||(t[r]=new Ho),e[r])}),t}function ME(t){let e,r=!1;const o=new eQ(n=>{const i=n0(t);let a=!1,s={},l={};const c={get closed(){return a},unsubscribe:()=>{a=!0,Xn.storagemutated.unsubscribe(h)}};n.start&&n.start(c);let u=!1,d=!1;function f(){return vt(l).some(p=>s[p]&&ZZ(s[p],l[p]))}const h=p=>{zE(s,p),f()&&g()},g=()=>{if(u||a)return;s={};const p={},w=function(v){i&&bs();const m=()=>Vn(t,{subscr:v,trans:null}),b=ce.trans?ys(ce.transless,m):m();return i&&b.then(un,un),b}(p);d||(Xn(Gl,h),d=!0),u=!0,Promise.resolve(w).then(v=>{r=!0,e=v,u=!1,a||(f()?g():(s={},l=p,n.next&&n.next(v)))},v=>{u=!1,r=!1,n.error&&n.error(v),c.unsubscribe()})};return g(),c});return o.hasValue=()=>r,o.getValue=()=>e,o}let Nm;try{Nm={indexedDB:De.indexedDB||De.mozIndexedDB||De.webkitIndexedDB||De.msIndexedDB,IDBKeyRange:De.IDBKeyRange||De.webkitIDBKeyRange}}catch{Nm={indexedDB:null,IDBKeyRange:null}}const oi=Fa;function Uu(t){let e=Go;try{Go=!0,Xn.storagemutated.fire(t)}finally{Go=e}}ls(oi,{...ju,delete:t=>new oi(t,{addons:[]}).delete(),exists:t=>new oi(t,{addons:[]}).open().then(e=>(e.close(),!0)).catch("NoSuchDatabaseError",()=>!1),getDatabaseNames(t){try{return function({indexedDB:e,IDBKeyRange:r}){return f0(e)?Promise.resolve(e.databases()).then(o=>o.map(n=>n.name).filter(n=>n!==Vf)):d0(e,r).toCollection().primaryKeys()}(oi.dependencies).then(t)}catch{return Ct(new pe.MissingAPI)}},defineClass:()=>function(t){tr(this,t)},ignoreTransaction:t=>ce.trans?ys(ce.transless,t):t(),vip:Im,async:function(t){return function(){try{var e=Rm(t.apply(this,arguments));return e&&typeof e.then=="function"?e:ie.resolve(e)}catch(r){return Ct(r)}}},spawn:function(t,e,r){try{var o=Rm(t.apply(r,e||[]));return o&&typeof o.then=="function"?o:ie.resolve(o)}catch(n){return Ct(n)}},currentTransaction:{get:()=>ce.trans||null},waitFor:function(t,e){const r=ie.resolve(typeof t=="function"?oi.ignoreTransaction(t):t).timeout(e||6e4);return ce.trans?ce.trans.waitFor(r):r},Promise:ie,debug:{get:()=>Po,set:t=>{dE(t,t==="dexie"?()=>!0:CE)}},derive:Oa,extend:tr,props:ls,override:iE,Events:pl,on:Xn,liveQuery:ME,extendObservabilitySet:zE,getByKeyPath:en,setByKeyPath:io,delByKeyPath:function(t,e){typeof e=="string"?io(t,e,void 0):"length"in e&&[].map.call(e,function(r){io(t,r,void 0)})},shallowClone:lE,deepClone:bc,getObjectDiff:h0,cmp:Yt,asap:aE,minKey:km,addons:[],connections:gl,errnames:a0,dependencies:Nm,semVer:Sk,version:Sk.split(".").map(t=>parseInt(t)).reduce((t,e,r)=>t+e/Math.pow(10,2*r))}),oi.maxKey=Xl(oi.dependencies.IDBKeyRange),typeof dispatchEvent<"u"&&typeof addEventListener<"u"&&(Xn(Gl,t=>{if(!Go){let e;Wf?(e=document.createEvent("CustomEvent"),e.initCustomEvent(Tn,!0,!0,t)):e=new CustomEvent(Tn,{detail:t}),Go=!0,dispatchEvent(e),Go=!1}}),addEventListener(Tn,({detail:t})=>{Go||Uu(t)}));let Go=!1;if(typeof BroadcastChannel<"u"){const t=new BroadcastChannel(Tn);typeof t.unref=="function"&&t.unref(),Xn(Gl,e=>{Go||t.postMessage(e)}),t.onmessage=e=>{e.data&&Uu(e.data)}}else if(typeof self<"u"&&typeof navigator<"u"){Xn(Gl,e=>{try{Go||(typeof localStorage<"u"&&localStorage.setItem(Tn,JSON.stringify({trig:Math.random(),changedParts:e})),typeof self.clients=="object"&&[...self.clients.matchAll({includeUncontrolled:!0})].forEach(r=>r.postMessage({type:Tn,changedParts:e})))}catch{}}),typeof addEventListener<"u"&&addEventListener("storage",e=>{if(e.key===Tn){const r=JSON.parse(e.newValue);r&&Uu(r.changedParts)}});const t=self.document&&navigator.serviceWorker;t&&t.addEventListener("message",function({data:e}){e&&e.type===Tn&&Uu(e.changedParts)})}ie.rejectionMapper=function(t,e){if(!t||t instanceof ja||t instanceof TypeError||t instanceof SyntaxError||!t.name||!bk[t.name])return t;var r=new bk[t.name](e||t.message,t);return"stack"in t&&Jo(r,"stack",{get:function(){return this.inner.stack}}),r},dE(Po,CE);function fee(t){var e=y.useRef();return e.current===void 0&&(e.current={value:typeof t=="function"?t():t}),e.current.value}function tQ(t,e,r){var o,n;typeof t=="function"?(o=e||[],n=r):(o=[],n=e);var i=ut.useRef({hasResult:!1,result:n,error:null}),a=ut.useReducer(function(c){return c+1},0);a[0];var s=a[1],l=ut.useMemo(function(){var c=typeof t=="function"?t():t;if(!c||typeof c.subscribe!="function")throw t===c?new TypeError("Given argument to useObservable() was neither a valid observable nor a function."):new TypeError("Observable factory given to useObservable() did not return a valid observable.");if(!i.current.hasResult&&typeof window<"u"&&(typeof c.hasValue!="function"||c.hasValue()))if(typeof c.getValue=="function")i.current.result=c.getValue(),i.current.hasResult=!0;else{var u=c.subscribe(function(d){i.current.result=d,i.current.hasResult=!0});typeof u=="function"?u():u.unsubscribe()}return c},o);if(ut.useDebugValue(i.current.result),ut.useEffect(function(){var c=l.subscribe(function(u){var d=i.current;(d.error!==null||d.result!==u)&&(d.error=null,d.result=u,d.hasResult=!0,s())},function(u){var d=i.current;d.error!==u&&(d.error=u,s())});return typeof c=="function"?c:c.unsubscribe.bind(c)},o),i.current.error)throw i.current.error;return i.current.result}function hee(t,e,r){return tQ(function(){return ME(t)},e||[],r)}function rQ(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var OE=y,oQ=rQ(OE);function Rk(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function nQ(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var iQ=!!(typeof window<"u"&&window.document&&window.document.createElement);function aQ(t,e,r){if(typeof t!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof e!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof r<"u"&&typeof r!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function o(n){return n.displayName||n.name||"Component"}return function(i){if(typeof i!="function")throw new Error("Expected WrappedComponent to be a React component.");var a=[],s;function l(){s=t(a.map(function(u){return u.props})),c.canUseDOM?e(s):r&&(s=r(s))}var c=function(u){nQ(d,u);function d(){return u.apply(this,arguments)||this}d.peek=function(){return s},d.rewind=function(){if(d.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var g=s;return s=void 0,a=[],g};var f=d.prototype;return f.UNSAFE_componentWillMount=function(){a.push(this),l()},f.componentDidUpdate=function(){l()},f.componentWillUnmount=function(){var g=a.indexOf(this);a.splice(g,1),l()},f.render=function(){return oQ.createElement(i,this.props)},d}(OE.PureComponent);return Rk(c,"displayName","SideEffect("+o(i)+")"),Rk(c,"canUseDOM",iQ),c}}var sQ=aQ;const lQ=Ro(sQ);var cQ=typeof Element<"u",uQ=typeof Map=="function",dQ=typeof Set=="function",fQ=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function $u(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var r,o,n;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(o=r;o--!==0;)if(!$u(t[o],e[o]))return!1;return!0}var i;if(uQ&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i=t.entries();!(o=i.next()).done;)if(!e.has(o.value[0]))return!1;for(i=t.entries();!(o=i.next()).done;)if(!$u(o.value[1],e.get(o.value[0])))return!1;return!0}if(dQ&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i=t.entries();!(o=i.next()).done;)if(!e.has(o.value[0]))return!1;return!0}if(fQ&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(r=t.length,r!=e.length)return!1;for(o=r;o--!==0;)if(t[o]!==e[o])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf&&typeof t.valueOf=="function"&&typeof e.valueOf=="function")return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString&&typeof t.toString=="function"&&typeof e.toString=="function")return t.toString()===e.toString();if(n=Object.keys(t),r=n.length,r!==Object.keys(e).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[o]))return!1;if(cQ&&t instanceof Element)return!1;for(o=r;o--!==0;)if(!((n[o]==="_owner"||n[o]==="__v"||n[o]==="__o")&&t.$$typeof)&&!$u(t[n[o]],e[n[o]]))return!1;return!0}return t!==t&&e!==e}var hQ=function(e,r){try{return $u(e,r)}catch(o){if((o.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw o}};const gQ=Ro(hQ);/* -object-assign -(c) Sindre Sorhus -@license MIT -*/var Ak=Object.getOwnPropertySymbols,pQ=Object.prototype.hasOwnProperty,mQ=Object.prototype.propertyIsEnumerable;function vQ(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function bQ(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de",Object.getOwnPropertyNames(t)[0]==="5")return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;var o=Object.getOwnPropertyNames(e).map(function(i){return e[i]});if(o.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var yQ=bQ()?Object.assign:function(t,e){for(var r,o=vQ(t),n,i=1;i=0||Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o]);return r},EQ=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t},Pm=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return r===!1?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},BQ=function(e){var r=qa(e,be.TITLE),o=qa(e,Zl.TITLE_TEMPLATE);if(o&&r)return o.replace(/%s/g,function(){return Array.isArray(r)?r.join(""):r});var n=qa(e,Zl.DEFAULT_TITLE);return r||n||void 0},IQ=function(e){return qa(e,Zl.ON_CHANGE_CLIENT_STATE)||function(){}},mg=function(e,r){return r.filter(function(o){return typeof o[e]<"u"}).map(function(o){return o[e]}).reduce(function(o,n){return ir({},o,n)},{})},RQ=function(e,r){return r.filter(function(o){return typeof o[be.BASE]<"u"}).map(function(o){return o[be.BASE]}).reverse().reduce(function(o,n){if(!o.length)for(var i=Object.keys(n),a=0;a=0;o--){var n=e[o];if(n.hasOwnProperty(r))return n[r]}return null},AQ=function(e){return{baseTag:RQ([Ue.HREF,Ue.TARGET],e),bodyAttributes:mg(Bi.BODY,e),defer:qa(e,Zl.DEFER),encode:qa(e,Zl.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:mg(Bi.HTML,e),linkTags:Ms(be.LINK,[Ue.REL,Ue.HREF],e),metaTags:Ms(be.META,[Ue.NAME,Ue.CHARSET,Ue.HTTPEQUIV,Ue.PROPERTY,Ue.ITEM_PROP],e),noscriptTags:Ms(be.NOSCRIPT,[Ue.INNER_HTML],e),onChangeClientState:IQ(e),scriptTags:Ms(be.SCRIPT,[Ue.SRC,Ue.INNER_HTML],e),styleTags:Ms(be.STYLE,[Ue.CSS_TEXT],e),title:BQ(e),titleAttributes:mg(Bi.TITLE,e)}},zm=function(){var t=Date.now();return function(e){var r=Date.now();r-t>16?(t=r,e(r)):setTimeout(function(){zm(e)},0)}}(),Pk=function(e){return clearTimeout(e)},NQ=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||zm:global.requestAnimationFrame||zm,PQ=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Pk:global.cancelAnimationFrame||Pk,zQ=function(e){return console&&typeof console.warn=="function"&&console.warn(e)},Os=null,MQ=function(e){Os&&PQ(Os),e.defer?Os=NQ(function(){zk(e,function(){Os=null})}):(zk(e),Os=null)},zk=function(e,r){var o=e.baseTag,n=e.bodyAttributes,i=e.htmlAttributes,a=e.linkTags,s=e.metaTags,l=e.noscriptTags,c=e.onChangeClientState,u=e.scriptTags,d=e.styleTags,f=e.title,h=e.titleAttributes;Mm(be.BODY,n),Mm(be.HTML,i),OQ(f,h);var g={baseTag:aa(be.BASE,o),linkTags:aa(be.LINK,a),metaTags:aa(be.META,s),noscriptTags:aa(be.NOSCRIPT,l),scriptTags:aa(be.SCRIPT,u),styleTags:aa(be.STYLE,d)},p={},w={};Object.keys(g).forEach(function(v){var m=g[v],b=m.newTags,k=m.oldTags;b.length&&(p[v]=b),k.length&&(w[v]=g[v].oldTags)}),r&&r(),c(e,p,w)},jE=function(e){return Array.isArray(e)?e.join(""):e},OQ=function(e,r){typeof e<"u"&&document.title!==e&&(document.title=jE(e)),Mm(be.TITLE,r)},Mm=function(e,r){var o=document.getElementsByTagName(e)[0];if(o){for(var n=o.getAttribute(eo),i=n?n.split(","):[],a=[].concat(i),s=Object.keys(r),l=0;l=0;f--)o.removeAttribute(a[f]);i.length===a.length?o.removeAttribute(eo):o.getAttribute(eo)!==s.join(",")&&o.setAttribute(eo,s.join(","))}},aa=function(e,r){var o=document.head||document.querySelector(be.HEAD),n=o.querySelectorAll(e+"["+eo+"]"),i=Array.prototype.slice.call(n),a=[],s=void 0;return r&&r.length&&r.forEach(function(l){var c=document.createElement(e);for(var u in l)if(l.hasOwnProperty(u))if(u===Ue.INNER_HTML)c.innerHTML=l.innerHTML;else if(u===Ue.CSS_TEXT)c.styleSheet?c.styleSheet.cssText=l.cssText:c.appendChild(document.createTextNode(l.cssText));else{var d=typeof l[u]>"u"?"":l[u];c.setAttribute(u,d)}c.setAttribute(eo,"true"),i.some(function(f,h){return s=h,c.isEqualNode(f)})?i.splice(s,1):a.push(c)}),i.forEach(function(l){return l.parentNode.removeChild(l)}),a.forEach(function(l){return o.appendChild(l)}),{oldTags:i,newTags:a}},DE=function(e){return Object.keys(e).reduce(function(r,o){var n=typeof e[o]<"u"?o+'="'+e[o]+'"':""+o;return r?r+" "+n:n},"")},jQ=function(e,r,o,n){var i=DE(o),a=jE(r);return i?"<"+e+" "+eo+'="true" '+i+">"+Pm(a,n)+"":"<"+e+" "+eo+'="true">'+Pm(a,n)+""},DQ=function(e,r,o){return r.reduce(function(n,i){var a=Object.keys(i).filter(function(c){return!(c===Ue.INNER_HTML||c===Ue.CSS_TEXT)}).reduce(function(c,u){var d=typeof i[u]>"u"?u:u+'="'+Pm(i[u],o)+'"';return c?c+" "+d:d},""),s=i.innerHTML||i.cssText||"",l=SQ.indexOf(e)===-1;return n+"<"+e+" "+eo+'="true" '+a+(l?"/>":">"+s+"")},"")},FE=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(e).reduce(function(o,n){return o[Wd[n]||n]=e[n],o},r)},FQ=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(e).reduce(function(o,n){return o[kQ[n]||n]=e[n],o},r)},qQ=function(e,r,o){var n,i=(n={key:r},n[eo]=!0,n),a=FE(o,i);return[ut.createElement(be.TITLE,a,r)]},LQ=function(e,r){return r.map(function(o,n){var i,a=(i={key:n},i[eo]=!0,i);return Object.keys(o).forEach(function(s){var l=Wd[s]||s;if(l===Ue.INNER_HTML||l===Ue.CSS_TEXT){var c=o.innerHTML||o.cssText;a.dangerouslySetInnerHTML={__html:c}}else a[l]=o[s]}),ut.createElement(e,a)})},Oo=function(e,r,o){switch(e){case be.TITLE:return{toComponent:function(){return qQ(e,r.title,r.titleAttributes)},toString:function(){return jQ(e,r.title,r.titleAttributes,o)}};case Bi.BODY:case Bi.HTML:return{toComponent:function(){return FE(r)},toString:function(){return DE(r)}};default:return{toComponent:function(){return LQ(e,r)},toString:function(){return DQ(e,r,o)}}}},qE=function(e){var r=e.baseTag,o=e.bodyAttributes,n=e.encode,i=e.htmlAttributes,a=e.linkTags,s=e.metaTags,l=e.noscriptTags,c=e.scriptTags,u=e.styleTags,d=e.title,f=d===void 0?"":d,h=e.titleAttributes;return{base:Oo(be.BASE,r,n),bodyAttributes:Oo(Bi.BODY,o,n),htmlAttributes:Oo(Bi.HTML,i,n),link:Oo(be.LINK,a,n),meta:Oo(be.META,s,n),noscript:Oo(be.NOSCRIPT,l,n),script:Oo(be.SCRIPT,c,n),style:Oo(be.STYLE,u,n),title:Oo(be.TITLE,{title:f,titleAttributes:h},n)}},HQ=function(e){var r,o;return o=r=function(n){TQ(i,n);function i(){return xQ(this,i),EQ(this,n.apply(this,arguments))}return i.prototype.shouldComponentUpdate=function(s){return!gQ(this.props,s)},i.prototype.mapNestedChildrenToProps=function(s,l){if(!l)return null;switch(s.type){case be.SCRIPT:case be.NOSCRIPT:return{innerHTML:l};case be.STYLE:return{cssText:l}}throw new Error("<"+s.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},i.prototype.flattenArrayTypeChildren=function(s){var l,c=s.child,u=s.arrayTypeChildren,d=s.newChildProps,f=s.nestedChildren;return ir({},u,(l={},l[c.type]=[].concat(u[c.type]||[],[ir({},d,this.mapNestedChildrenToProps(c,f))]),l))},i.prototype.mapObjectTypeChildren=function(s){var l,c,u=s.child,d=s.newProps,f=s.newChildProps,h=s.nestedChildren;switch(u.type){case be.TITLE:return ir({},d,(l={},l[u.type]=h,l.titleAttributes=ir({},f),l));case be.BODY:return ir({},d,{bodyAttributes:ir({},f)});case be.HTML:return ir({},d,{htmlAttributes:ir({},f)})}return ir({},d,(c={},c[u.type]=ir({},f),c))},i.prototype.mapArrayTypeChildrenToProps=function(s,l){var c=ir({},l);return Object.keys(s).forEach(function(u){var d;c=ir({},c,(d={},d[u]=s[u],d))}),c},i.prototype.warnOnInvalidChildren=function(s,l){return!0},i.prototype.mapChildrenToProps=function(s,l){var c=this,u={};return ut.Children.forEach(s,function(d){if(!(!d||!d.props)){var f=d.props,h=f.children,g=Nk(f,["children"]),p=FQ(g);switch(c.warnOnInvalidChildren(d,h),d.type){case be.LINK:case be.META:case be.NOSCRIPT:case be.SCRIPT:case be.STYLE:u=c.flattenArrayTypeChildren({child:d,arrayTypeChildren:u,newChildProps:p,nestedChildren:h});break;default:l=c.mapObjectTypeChildren({child:d,newProps:l,newChildProps:p,nestedChildren:h});break}}}),l=this.mapArrayTypeChildrenToProps(u,l),l},i.prototype.render=function(){var s=this.props,l=s.children,c=Nk(s,["children"]),u=ir({},c);return l&&(u=this.mapChildrenToProps(l,u)),ut.createElement(e,u)},CQ(i,null,[{key:"canUseDOM",set:function(s){e.canUseDOM=s}}]),i}(ut.Component),r.propTypes={base:qe.object,bodyAttributes:qe.object,children:qe.oneOfType([qe.arrayOf(qe.node),qe.node]),defaultTitle:qe.string,defer:qe.bool,encodeSpecialCharacters:qe.bool,htmlAttributes:qe.object,link:qe.arrayOf(qe.object),meta:qe.arrayOf(qe.object),noscript:qe.arrayOf(qe.object),onChangeClientState:qe.func,script:qe.arrayOf(qe.object),style:qe.arrayOf(qe.object),title:qe.string,titleAttributes:qe.object,titleTemplate:qe.string},r.defaultProps={defer:!0,encodeSpecialCharacters:!0},r.peek=e.peek,r.rewind=function(){var n=e.rewind();return n||(n=qE({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),n},o},UQ=function(){return null},$Q=lQ(AQ,MQ,qE)(UQ),Mk=HQ($Q);Mk.renderStatic=Mk.rewind;export{dK as $,WQ as A,Gj as B,vJ as C,Wp as D,Kq as E,b9 as F,gL as G,Le as H,gD as I,ED as J,sL as K,co as L,dee as M,YQ as N,JJ as O,E_ as P,KD as Q,qT as R,uZ as S,NW as T,U8 as U,PF as V,EF as W,Fa as X,oF as Y,VQ as Z,bF as _,ree as a,jN as a$,mK as a0,eK as a1,iK as a2,cq as a3,wD as a4,tee as a5,kK as a6,W$ as a7,GJ as a8,XJ as a9,eee as aA,QJ as aB,ZJ as aC,nD as aD,bJ as aE,sJ as aF,pJ as aG,eD as aH,H9 as aI,ON as aJ,MN as aK,nee as aL,Lp as aM,YJ as aN,VJ as aO,OK as aP,HK as aQ,FK as aR,eq as aS,Ro as aT,F1 as aU,fJ as aV,dJ as aW,hJ as aX,tJ as aY,mJ as aZ,see as a_,_q as aa,iJ as ab,IV as ac,LV as ad,WV as ae,$N as af,MV as ag,qL as ah,nm as ai,Ij as aj,CT as ak,TT as al,e9 as am,JQ as an,_j as ao,Gi as ap,Mk as aq,zq as ar,_R as as,Xw as at,Zz as au,WJ as av,KQ as aw,xW as ax,oH as ay,js as az,HW as b,nJ as b0,A as b1,aJ as b2,QH as b3,uU as b4,TJ as b5,OJ as b6,UJ as b7,qJ as b8,LJ as b9,xJ as bA,SJ as bB,CJ as bC,_J as bD,ZD as bE,MJ as bF,zJ as bG,FN as bH,HJ as ba,rJ as bb,cJ as bc,rU as bd,gJ as be,FJ as bf,jJ as bg,kJ as bh,EJ as bi,PJ as bj,NJ as bk,AJ as bl,DJ as bm,$J as bn,RJ as bo,QQ as bp,ZQ as bq,aU as br,uJ as bs,IJ as bt,oJ as bu,eJ as bv,yJ as bw,lJ as bx,wJ as by,BJ as bz,XW as c,aee as d,vL as e,Sv as f,jH as g,xH as h,AH as i,Vk as j,UH as k,bH as l,XQ as m,V1 as n,iee as o,He as p,uee as q,y as r,GQ as s,KJ as t,xX as u,wt as v,$ as w,oee as x,fee as y,hee as z}; -function __vite__mapDeps(indexes) { - if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = [] - } - return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) -} diff --git a/assets/vendor-nd_CUwkm.js b/assets/vendor-nd_CUwkm.js new file mode 100644 index 0000000..dfdd3b4 --- /dev/null +++ b/assets/vendor-nd_CUwkm.js @@ -0,0 +1,143 @@ +function Lk(t,e){for(var r=0;ro[n]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var Fs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ao(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Hk={exports:{}},Xd={},Uk={exports:{}},ke={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var ec=Symbol.for("react.element"),GE=Symbol.for("react.portal"),XE=Symbol.for("react.fragment"),YE=Symbol.for("react.strict_mode"),ZE=Symbol.for("react.profiler"),QE=Symbol.for("react.provider"),JE=Symbol.for("react.context"),eB=Symbol.for("react.forward_ref"),tB=Symbol.for("react.suspense"),rB=Symbol.for("react.memo"),oB=Symbol.for("react.lazy"),w0=Symbol.iterator;function nB(t){return t===null||typeof t!="object"?null:(t=w0&&t[w0]||t["@@iterator"],typeof t=="function"?t:null)}var $k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Kk=Object.assign,Wk={};function ds(t,e,r){this.props=t,this.context=e,this.refs=Wk,this.updater=r||$k}ds.prototype.isReactComponent={};ds.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=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,t,e,"setState")};ds.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function Vk(){}Vk.prototype=ds.prototype;function Lm(t,e,r){this.props=t,this.context=e,this.refs=Wk,this.updater=r||$k}var Hm=Lm.prototype=new Vk;Hm.constructor=Lm;Kk(Hm,ds.prototype);Hm.isPureReactComponent=!0;var k0=Array.isArray,Gk=Object.prototype.hasOwnProperty,Um={current:null},Xk={key:!0,ref:!0,__self:!0,__source:!0};function Yk(t,e,r){var o,n={},i=null,a=null;if(e!=null)for(o in e.ref!==void 0&&(a=e.ref),e.key!==void 0&&(i=""+e.key),e)Gk.call(e,o)&&!Xk.hasOwnProperty(o)&&(n[o]=e[o]);var s=arguments.length-2;if(s===1)n.children=r;else if(1{throw X(ye)},base64Decode:()=>{throw X(ye)},base64Encode:()=>{throw X(ye)},async getPublicKeyThumbprint(){throw X(ye)},async removeTokenBindingKey(){throw X(ye)},async clearKeystore(){throw X(ye)},async signJwt(){throw X(ye)},async hashString(){throw X(ye)}};/*! @azure/msal-common v14.6.1 2024-01-23 */var He;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Info=2]="Info",t[t.Verbose=3]="Verbose",t[t.Trace=4]="Trace"})(He||(He={}));class Ln{constructor(e,r,o){this.level=He.Info;const n=()=>{},i=e||Ln.createDefaultLoggerOptions();this.localCallback=i.loggerCallback||n,this.piiLoggingEnabled=i.piiLoggingEnabled||!1,this.level=typeof i.logLevel=="number"?i.logLevel:He.Info,this.correlationId=i.correlationId||j.EMPTY_STRING,this.packageName=r||j.EMPTY_STRING,this.packageVersion=o||j.EMPTY_STRING}static createDefaultLoggerOptions(){return{loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:He.Info}}clone(e,r,o){return new Ln({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:o||this.correlationId},e,r)}logMessage(e,r){if(r.logLevel>this.level||!this.piiLoggingEnabled&&r.containsPii)return;const i=`${`[${new Date().toUTCString()}] : [${r.correlationId||this.correlationId||""}]`} : ${this.packageName}@${this.packageVersion} : ${He[r.logLevel]} - ${e}`;this.executeCallback(r.logLevel,i,r.containsPii||!1)}executeCallback(e,r,o){this.localCallback&&this.localCallback(e,r,o)}error(e,r){this.logMessage(e,{logLevel:He.Error,containsPii:!1,correlationId:r||j.EMPTY_STRING})}errorPii(e,r){this.logMessage(e,{logLevel:He.Error,containsPii:!0,correlationId:r||j.EMPTY_STRING})}warning(e,r){this.logMessage(e,{logLevel:He.Warning,containsPii:!1,correlationId:r||j.EMPTY_STRING})}warningPii(e,r){this.logMessage(e,{logLevel:He.Warning,containsPii:!0,correlationId:r||j.EMPTY_STRING})}info(e,r){this.logMessage(e,{logLevel:He.Info,containsPii:!1,correlationId:r||j.EMPTY_STRING})}infoPii(e,r){this.logMessage(e,{logLevel:He.Info,containsPii:!0,correlationId:r||j.EMPTY_STRING})}verbose(e,r){this.logMessage(e,{logLevel:He.Verbose,containsPii:!1,correlationId:r||j.EMPTY_STRING})}verbosePii(e,r){this.logMessage(e,{logLevel:He.Verbose,containsPii:!0,correlationId:r||j.EMPTY_STRING})}trace(e,r){this.logMessage(e,{logLevel:He.Trace,containsPii:!1,correlationId:r||j.EMPTY_STRING})}tracePii(e,r){this.logMessage(e,{logLevel:He.Trace,containsPii:!0,correlationId:r||j.EMPTY_STRING})}isPiiLoggingEnabled(){return this.piiLoggingEnabled||!1}}/*! @azure/msal-common v14.6.1 2024-01-23 */const bS="@azure/msal-common",Jm="14.6.1";/*! @azure/msal-common v14.6.1 2024-01-23 */const ev={None:"none",AzurePublic:"https://login.microsoftonline.com",AzurePpe:"https://login.windows-ppe.net",AzureChina:"https://login.chinacloudapi.cn",AzureGermany:"https://login.microsoftonline.de",AzureUsGovernment:"https://login.microsoftonline.us"};/*! @azure/msal-common v14.6.1 2024-01-23 */function Ui(t,e){const r=PB(t);try{const o=e(r);return JSON.parse(o)}catch{throw X(Gm)}}function PB(t){if(!t)throw X(rS);const r=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/.exec(t);if(!r||r.length<4)throw X(Gm);return r[2]}function yS(t,e){if(e===0||Date.now()-3e5>t+e)throw X(lS)}/*! @azure/msal-common v14.6.1 2024-01-23 */class Qt{static nowSeconds(){return Math.round(new Date().getTime()/1e3)}static isTokenExpired(e,r){const o=Number(e)||0;return Qt.nowSeconds()+r>o}static wasClockTurnedBack(e){return Number(e)>Qt.nowSeconds()}static delay(e,r){return new Promise(o=>setTimeout(()=>o(r),e))}}/*! @azure/msal-common v14.6.1 2024-01-23 */function ha(t){return[zB(t),MB(t),OB(t),jB(t),DB(t)].join(Ht.CACHE_KEY_SEPARATOR).toLowerCase()}function Zd(t,e,r,o,n){return{credentialType:pe.ID_TOKEN,homeAccountId:t,environment:e,clientId:o,secret:r,realm:n}}function Qd(t,e,r,o,n,i,a,s,l,c,u,d,f,h,g){const m={homeAccountId:t,credentialType:pe.ACCESS_TOKEN,secret:r,cachedAt:Qt.nowSeconds().toString(),expiresOn:a.toString(),extendedExpiresOn:s.toString(),environment:e,clientId:o,realm:n,target:i,tokenType:u||Ee.BEARER};if(d&&(m.userAssertionHash=d),c&&(m.refreshOn=c.toString()),h&&(m.requestedClaims=h,m.requestedClaimsHash=g),m.tokenType?.toLowerCase()!==Ee.BEARER.toLowerCase())switch(m.credentialType=pe.ACCESS_TOKEN_WITH_AUTH_SCHEME,m.tokenType){case Ee.POP:const w=Ui(r,l);if(!w?.cnf?.kid)throw X(gS);m.keyId=w.cnf.kid;break;case Ee.SSH:m.keyId=f}return m}function wS(t,e,r,o,n,i,a){const s={credentialType:pe.REFRESH_TOKEN,homeAccountId:t,environment:e,clientId:o,secret:r};return i&&(s.userAssertionHash=i),n&&(s.familyId=n),a&&(s.expiresOn=a.toString()),s}function tv(t){return t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("credentialType")&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("secret")}function I0(t){return t?tv(t)&&t.hasOwnProperty("realm")&&t.hasOwnProperty("target")&&(t.credentialType===pe.ACCESS_TOKEN||t.credentialType===pe.ACCESS_TOKEN_WITH_AUTH_SCHEME):!1}function R0(t){return t?tv(t)&&t.hasOwnProperty("realm")&&t.credentialType===pe.ID_TOKEN:!1}function A0(t){return t?tv(t)&&t.credentialType===pe.REFRESH_TOKEN:!1}function zB(t){return[t.homeAccountId,t.environment].join(Ht.CACHE_KEY_SEPARATOR).toLowerCase()}function MB(t){const e=t.credentialType===pe.REFRESH_TOKEN&&t.familyId||t.clientId;return[t.credentialType,e,t.realm||""].join(Ht.CACHE_KEY_SEPARATOR).toLowerCase()}function OB(t){return(t.target||"").toLowerCase()}function jB(t){return(t.requestedClaimsHash||"").toLowerCase()}function DB(t){return t.tokenType&&t.tokenType.toLowerCase()!==Ee.BEARER.toLowerCase()?t.tokenType.toLowerCase():""}function FB(t,e){const r=t.indexOf(Pt.CACHE_KEY)===0;let o=!0;return e&&(o=e.hasOwnProperty("failedRequests")&&e.hasOwnProperty("errors")&&e.hasOwnProperty("cacheHits")),r&&o}function qB(t,e){let r=!1;t&&(r=t.indexOf(Qs.THROTTLING_PREFIX)===0);let o=!0;return e&&(o=e.hasOwnProperty("throttleTime")),r&&o}function LB({environment:t,clientId:e}){return[Km,t,e].join(Ht.CACHE_KEY_SEPARATOR).toLowerCase()}function HB(t,e){return e?t.indexOf(Km)===0&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("environment"):!1}function UB(t,e){return e?t.indexOf(Gu.CACHE_KEY)===0&&e.hasOwnProperty("aliases")&&e.hasOwnProperty("preferred_cache")&&e.hasOwnProperty("preferred_network")&&e.hasOwnProperty("canonical_authority")&&e.hasOwnProperty("authorization_endpoint")&&e.hasOwnProperty("token_endpoint")&&e.hasOwnProperty("issuer")&&e.hasOwnProperty("aliasesFromNetwork")&&e.hasOwnProperty("endpointsFromNetwork")&&e.hasOwnProperty("expiresAt")&&e.hasOwnProperty("jwks_uri"):!1}function N0(){return Qt.nowSeconds()+Gu.REFRESH_TIME_SECONDS}function Ic(t,e,r){t.authorization_endpoint=e.authorization_endpoint,t.token_endpoint=e.token_endpoint,t.end_session_endpoint=e.end_session_endpoint,t.issuer=e.issuer,t.endpointsFromNetwork=r,t.jwks_uri=e.jwks_uri}function Jf(t,e,r){t.aliases=e.aliases,t.preferred_cache=e.preferred_cache,t.preferred_network=e.preferred_network,t.aliasesFromNetwork=r}function P0(t){return t.expiresAt<=Qt.nowSeconds()}/*! @azure/msal-common v14.6.1 2024-01-23 */const kS="redirect_uri_empty",$B="claims_request_parsing_error",SS="authority_uri_insecure",qs="url_parse_error",_S="empty_url_error",xS="empty_input_scopes_error",CS="invalid_prompt_value",rv="invalid_claims",TS="token_request_empty",ES="logout_request_empty",BS="invalid_code_challenge_method",ov="pkce_params_missing",nv="invalid_cloud_discovery_metadata",IS="invalid_authority_metadata",RS="untrusted_authority",Jd="missing_ssh_jwk",AS="missing_ssh_kid",KB="missing_nonce_authentication_header",WB="invalid_authentication_header",NS="cannot_set_OIDCOptions",PS="cannot_allow_native_broker",zS="authority_mismatch";/*! @azure/msal-common v14.6.1 2024-01-23 */const VB={[kS]:"A redirect URI is required for all calls, and none has been set.",[$B]:"Could not parse the given claims request object.",[SS]:"Authority URIs must use https. Please see here for valid authority configuration options: https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options",[qs]:"URL could not be parsed into appropriate segments.",[_S]:"URL was empty or null.",[xS]:"Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token.",[CS]:"Please see here for valid configuration options: https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#commonauthorizationurlrequest",[rv]:"Given claims parameter must be a stringified JSON object.",[TS]:"Token request was empty and not found in cache.",[ES]:"The logout request was null or undefined.",[BS]:'code_challenge_method passed is invalid. Valid values are "plain" and "S256".',[ov]:"Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request",[nv]:"Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields",[IS]:"Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields.",[RS]:"The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter.",[Jd]:"Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme.",[AS]:"Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme.",[KB]:"Unable to find an authentication header containing server nonce. Either the Authentication-Info or WWW-Authenticate headers must be present in order to obtain a server nonce.",[WB]:"Invalid authentication header provided",[NS]:"Cannot set OIDCOptions parameter. Please change the protocol mode to OIDC or use a non-Microsoft authority.",[PS]:"Cannot set allowNativeBroker parameter to true when not in AAD protocol mode.",[zS]:"Authority mismatch error. Authority provided in login request or PublicClientApplication config does not match the environment of the provided account. Please use a matching account or make an interactive request to login to this authority."};class iv extends We{constructor(e){super(e,VB[e]),this.name="ClientConfigurationError",Object.setPrototypeOf(this,iv.prototype)}}function Re(t){return new iv(t)}/*! @azure/msal-common v14.6.1 2024-01-23 */class ro{static isEmptyObj(e){if(e)try{const r=JSON.parse(e);return Object.keys(r).length===0}catch{}return!0}static startsWith(e,r){return e.indexOf(r)===0}static endsWith(e,r){return e.length>=r.length&&e.lastIndexOf(r)===e.length-r.length}static queryStringToObject(e){const r={},o=e.split("&"),n=i=>decodeURIComponent(i.replace(/\+/g," "));return o.forEach(i=>{if(i.trim()){const[a,s]=i.split(/=(.+)/g,2);a&&s&&(r[n(a)]=n(s))}}),r}static trimArrayEntries(e){return e.map(r=>r.trim())}static removeEmptyStringsFromArray(e){return e.filter(r=>!!r)}static jsonParseHelper(e){try{return JSON.parse(e)}catch{return null}}static matchPattern(e,r){return new RegExp(e.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?")).test(r)}}/*! @azure/msal-common v14.6.1 2024-01-23 */class gt{constructor(e){const r=e?ro.trimArrayEntries([...e]):[],o=r?ro.removeEmptyStringsFromArray(r):[];this.validateInputScopes(o),this.scopes=new Set,o.forEach(n=>this.scopes.add(n))}static fromString(e){const o=(e||j.EMPTY_STRING).split(" ");return new gt(o)}static createSearchScopes(e){const r=new gt(e);return r.containsOnlyOIDCScopes()?r.removeScope(j.OFFLINE_ACCESS_SCOPE):r.removeOIDCScopes(),r}validateInputScopes(e){if(!e||e.length<1)throw Re(xS)}containsScope(e){const r=this.printScopesLowerCase().split(" "),o=new gt(r);return e?o.scopes.has(e.toLowerCase()):!1}containsScopeSet(e){return!e||e.scopes.size<=0?!1:this.scopes.size>=e.scopes.size&&e.asArray().every(r=>this.containsScope(r))}containsOnlyOIDCScopes(){let e=0;return _0.forEach(r=>{this.containsScope(r)&&(e+=1)}),this.scopes.size===e}appendScope(e){e&&this.scopes.add(e.trim())}appendScopes(e){try{e.forEach(r=>this.appendScope(r))}catch{throw X(fS)}}removeScope(e){if(!e)throw X(dS);this.scopes.delete(e.trim())}removeOIDCScopes(){_0.forEach(e=>{this.scopes.delete(e)})}unionScopeSets(e){if(!e)throw X(yg);const r=new Set;return e.scopes.forEach(o=>r.add(o.toLowerCase())),this.scopes.forEach(o=>r.add(o.toLowerCase())),r}intersectingScopeSets(e){if(!e)throw X(yg);e.containsOnlyOIDCScopes()||e.removeOIDCScopes();const r=this.unionScopeSets(e),o=e.getScopeCount(),n=this.getScopeCount();return r.sizee.push(r)),e}printScopes(){return this.scopes?this.asArray().join(" "):j.EMPTY_STRING}printScopesLowerCase(){return this.printScopes().toLowerCase()}}/*! @azure/msal-common v14.6.1 2024-01-23 */function Zu(t,e){if(!t)throw X(tS);try{const r=e(t);return JSON.parse(r)}catch{throw X(Vm)}}function ga(t){if(!t)throw X(Vm);const e=t.split(Ht.CLIENT_INFO_SEPARATOR,2);return{uid:e[0],utid:e.length<2?j.EMPTY_STRING:e[1]}}/*! @azure/msal-common v14.6.1 2024-01-23 */function _g(t,e){return!!t&&!!e&&t===e.split(".")[1]}function av(t,e){const{oid:r,sub:o,tid:n,name:i,tfp:a,acr:s}=e,l=n||a||s||"";return{tenantId:l,localAccountId:r||o||"",name:i,isHomeTenant:_g(l,t)}}function sv(t,e,r){let o=t;if(e){const{isHomeTenant:n,...i}=e;o={...t,...i}}if(r){const{isHomeTenant:n,...i}=av(t.homeAccountId,r);return o={...o,...i,idTokenClaims:r},o}return o}/*! @azure/msal-common v14.6.1 2024-01-23 */const Gr={Default:0,Adfs:1,Dsts:2,Ciam:3};/*! @azure/msal-common v14.6.1 2024-01-23 */function MS(t){return t&&(t.tid||t.tfp||t.acr)||null}/*! @azure/msal-common v14.6.1 2024-01-23 */const Yo={AAD:"AAD",OIDC:"OIDC"};/*! @azure/msal-common v14.6.1 2024-01-23 */class Ct{generateAccountId(){return[this.homeAccountId,this.environment].join(Ht.CACHE_KEY_SEPARATOR).toLowerCase()}generateAccountKey(){return Ct.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})}getAccountInfo(){return{homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId,name:this.name,nativeAccountId:this.nativeAccountId,authorityType:this.authorityType,tenantProfiles:new Map((this.tenantProfiles||[]).map(e=>[e.tenantId,e]))}}isSingleTenant(){return!this.tenantProfiles}static generateAccountCacheKey(e){const r=e.homeAccountId.split(".")[1];return[e.homeAccountId,e.environment||"",r||e.tenantId||""].join(Ht.CACHE_KEY_SEPARATOR).toLowerCase()}static createAccount(e,r,o){const n=new Ct;r.authorityType===Gr.Adfs?n.authorityType=Ec.ADFS_ACCOUNT_TYPE:r.protocolMode===Yo.AAD?n.authorityType=Ec.MSSTS_ACCOUNT_TYPE:n.authorityType=Ec.GENERIC_ACCOUNT_TYPE;let i;e.clientInfo&&o&&(i=Zu(e.clientInfo,o)),n.clientInfo=e.clientInfo,n.homeAccountId=e.homeAccountId,n.nativeAccountId=e.nativeAccountId;const a=e.environment||r&&r.getPreferredCache();if(!a)throw X(Zm);n.environment=a,n.realm=i?.utid||MS(e.idTokenClaims)||"",n.localAccountId=i?.uid||e.idTokenClaims.oid||e.idTokenClaims.sub||"";const s=e.idTokenClaims.preferred_username||e.idTokenClaims.upn,l=e.idTokenClaims.emails?e.idTokenClaims.emails[0]:null;if(n.username=s||l||"",n.name=e.idTokenClaims.name,n.cloudGraphHostName=e.cloudGraphHostName,n.msGraphHost=e.msGraphHost,e.tenantProfiles)n.tenantProfiles=e.tenantProfiles;else{const c=[];if(e.idTokenClaims){const u=av(e.homeAccountId,e.idTokenClaims);c.push(u)}n.tenantProfiles=c}return n}static createFromAccountInfo(e,r,o){const n=new Ct;return n.authorityType=e.authorityType||Ec.GENERIC_ACCOUNT_TYPE,n.homeAccountId=e.homeAccountId,n.localAccountId=e.localAccountId,n.nativeAccountId=e.nativeAccountId,n.realm=e.tenantId,n.environment=e.environment,n.username=e.username,n.name=e.name,n.cloudGraphHostName=r,n.msGraphHost=o,n.tenantProfiles=Array.from(e.tenantProfiles?.values()||[]),n}static generateHomeAccountId(e,r,o,n,i){if(!(r===Gr.Adfs||r===Gr.Dsts)){if(e)try{const a=Zu(e,n.base64Decode);if(a.uid&&a.utid)return`${a.uid}.${a.utid}`}catch{}o.warning("No client info in response")}return i?.sub||""}static isAccountEntity(e){return e?e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("localAccountId")&&e.hasOwnProperty("username")&&e.hasOwnProperty("authorityType"):!1}static accountInfoIsEqual(e,r,o){if(!e||!r)return!1;let n=!0;if(o){const i=e.idTokenClaims||{},a=r.idTokenClaims||{};n=i.iat===a.iat&&i.nonce===a.nonce}return e.homeAccountId===r.homeAccountId&&e.localAccountId===r.localAccountId&&e.username===r.username&&e.tenantId===r.tenantId&&e.environment===r.environment&&e.nativeAccountId===r.nativeAccountId&&n}}/*! @azure/msal-common v14.6.1 2024-01-23 */function OS(t){return t.startsWith("#/")?t.substring(2):t.startsWith("#")||t.startsWith("?")?t.substring(1):t}function Qu(t){if(!t||t.indexOf("=")<0)return null;try{const e=OS(t),r=Object.fromEntries(new URLSearchParams(e));if(r.code||r.error||r.error_description||r.state)return r}catch{throw X(iS)}return null}/*! @azure/msal-common v14.6.1 2024-01-23 */class Se{get urlString(){return this._urlString}constructor(e){if(this._urlString=e,!this._urlString)throw Re(_S);e.includes("#")||(this._urlString=Se.canonicalizeUri(e))}static canonicalizeUri(e){if(e){let r=e.toLowerCase();return ro.endsWith(r,"?")?r=r.slice(0,-1):ro.endsWith(r,"?/")&&(r=r.slice(0,-2)),ro.endsWith(r,"/")||(r+="/"),r}return e}validateAsUri(){let e;try{e=this.getUrlComponents()}catch{throw Re(qs)}if(!e.HostNameAndPort||!e.PathSegments)throw Re(qs);if(!e.Protocol||e.Protocol.toLowerCase()!=="https:")throw Re(SS)}static appendQueryString(e,r){return r?e.indexOf("?")<0?`${e}?${r}`:`${e}&${r}`:e}static removeHashFromUrl(e){return Se.canonicalizeUri(e.split("#")[0])}replaceTenantPath(e){const r=this.getUrlComponents(),o=r.PathSegments;return e&&o.length!==0&&(o[0]===An.COMMON||o[0]===An.ORGANIZATIONS)&&(o[0]=e),Se.constructAuthorityUriFromObject(r)}getUrlComponents(){const e=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),r=this.urlString.match(e);if(!r)throw Re(qs);const o={Protocol:r[1],HostNameAndPort:r[4],AbsolutePath:r[5],QueryString:r[7]};let n=o.AbsolutePath.split("/");return n=n.filter(i=>i&&i.length>0),o.PathSegments=n,o.QueryString&&o.QueryString.endsWith("/")&&(o.QueryString=o.QueryString.substring(0,o.QueryString.length-1)),o}static getDomainFromUrl(e){const r=RegExp("^([^:/?#]+://)?([^/?#]*)"),o=e.match(r);if(!o)throw Re(qs);return o[2]}static getAbsoluteUrl(e,r){if(e[0]===j.FORWARD_SLASH){const n=new Se(r).getUrlComponents();return n.Protocol+"//"+n.HostNameAndPort+e}return e}static constructAuthorityUriFromObject(e){return new Se(e.Protocol+"//"+e.HostNameAndPort+"/"+e.PathSegments.join("/"))}static hashContainsKnownProperties(e){return!!Qu(e)}}/*! @azure/msal-common v14.6.1 2024-01-23 */const jS={endpointMetadata:{"login.microsoftonline.com":{token_endpoint:"https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.microsoftonline.com/{tenantid}/discovery/v2.0/keys",issuer:"https://login.microsoftonline.com/{tenantid}/v2.0",authorization_endpoint:"https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.microsoftonline.com/{tenantid}/oauth2/v2.0/logout"},"login.chinacloudapi.cn":{token_endpoint:"https://login.chinacloudapi.cn/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.chinacloudapi.cn/{tenantid}/discovery/v2.0/keys",issuer:"https://login.partner.microsoftonline.cn/{tenantid}/v2.0",authorization_endpoint:"https://login.chinacloudapi.cn/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.chinacloudapi.cn/{tenantid}/oauth2/v2.0/logout"},"login.microsoftonline.us":{token_endpoint:"https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/token",jwks_uri:"https://login.microsoftonline.us/{tenantid}/discovery/v2.0/keys",issuer:"https://login.microsoftonline.us/{tenantid}/v2.0",authorization_endpoint:"https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/authorize",end_session_endpoint:"https://login.microsoftonline.us/{tenantid}/oauth2/v2.0/logout"}},instanceDiscoveryMetadata:{tenant_discovery_endpoint:"https://{canonicalAuthority}/v2.0/.well-known/openid-configuration",metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]}]}},z0=jS.endpointMetadata,lv=jS.instanceDiscoveryMetadata,DS=new Set;lv.metadata.forEach(t=>{t.aliases.forEach(e=>{DS.add(e)})});function GB(t,e){let r;const o=t.canonicalAuthority;if(o){const n=new Se(o).getUrlComponents().HostNameAndPort;r=M0(n,t.cloudDiscoveryMetadata?.metadata,gr.CONFIG,e)||M0(n,lv.metadata,gr.HARDCODED_VALUES,e)||t.knownAuthorities}return r||[]}function M0(t,e,r,o){if(o?.trace(`getAliasesFromMetadata called with source: ${r}`),t&&e){const n=Ju(e,t);if(n)return o?.trace(`getAliasesFromMetadata: found cloud discovery metadata in ${r}, returning aliases`),n.aliases;o?.trace(`getAliasesFromMetadata: did not find cloud discovery metadata in ${r}`)}return null}function XB(t){return Ju(lv.metadata,t)}function Ju(t,e){for(let r=0;r1?r.sort(n=>n.idTokenClaims?-1:1)[0]:r.length===1?r[0]:null}getBaseAccountInfo(e){const r=this.getAccountsFilteredBy(e);return r.length>0?r[0].getAccountInfo():null}buildTenantProfiles(e,r){return e.flatMap(o=>this.getAccountInfoForTenantProfiles(o,r))}getAccountInfoForTenantProfiles(e,r){return this.getTenantProfilesFromAccountEntity(e,r?.tenantId,r)}getTenantedAccountInfoByFilter(e,r,o,n){let i=null,a;if(n&&!this.tenantProfileMatchesFilter(o,n))return null;const s=this.getIdToken(e,r,o.tenantId);return s&&(a=Ui(s.secret,this.cryptoImpl.base64Decode),!this.idTokenClaimsMatchTenantProfileFilter(a,n))?null:(i=sv(e,o,a),i)}getTenantProfilesFromAccountEntity(e,r,o){const n=e.getAccountInfo();let i=n.tenantProfiles||new Map;const a=this.getTokenKeys();if(r){const l=i.get(r);if(l)i=new Map([[r,l]]);else return[]}const s=[];return i.forEach(l=>{const c=this.getTenantedAccountInfoByFilter(n,a,l,o);c&&s.push(c)}),s}tenantProfileMatchesFilter(e,r){return!(r.localAccountId&&!this.matchLocalAccountIdFromTenantProfile(e,r.localAccountId)||r.name&&e.name!==r.name||r.isHomeTenant!==void 0&&e.isHomeTenant!==r.isHomeTenant)}idTokenClaimsMatchTenantProfileFilter(e,r){return!(r&&(r.localAccountId&&!this.matchLocalAccountIdFromTokenClaims(e,r.localAccountId)||r.loginHint&&!this.matchLoginHintFromTokenClaims(e,r.loginHint)||r.username&&!this.matchUsername(e.preferred_username,r.username)||r.name&&!this.matchName(e,r.name)||r.sid&&!this.matchSid(e,r.sid)))}async saveCacheRecord(e,r){if(!e)throw X(hS);e.account&&this.setAccount(e.account),e.idToken&&r?.idToken!==!1&&this.setIdTokenCredential(e.idToken),e.accessToken&&r?.accessToken!==!1&&await this.saveAccessToken(e.accessToken),e.refreshToken&&r?.refreshToken!==!1&&this.setRefreshTokenCredential(e.refreshToken),e.appMetadata&&this.setAppMetadata(e.appMetadata)}async saveAccessToken(e){const r={clientId:e.clientId,credentialType:e.credentialType,environment:e.environment,homeAccountId:e.homeAccountId,realm:e.realm,tokenType:e.tokenType,requestedClaimsHash:e.requestedClaimsHash},o=this.getTokenKeys(),n=gt.fromString(e.target),i=[];o.accessToken.forEach(a=>{if(!this.accessTokenKeyMatchesFilter(a,r,!1))return;const s=this.getAccessTokenCredential(a);s&&this.credentialMatchesFilter(s,r)&>.fromString(s.target).intersectingScopeSets(n)&&i.push(this.removeAccessToken(a))}),await Promise.all(i),this.setAccessTokenCredential(e)}getAccountsFilteredBy(e){const r=this.getAccountKeys(),o=[];return r.forEach(n=>{if(!this.isAccountKey(n,e.homeAccountId))return;const i=this.getAccount(n,this.commonLogger);if(!i||e.homeAccountId&&!this.matchHomeAccountId(i,e.homeAccountId)||e.username&&!this.matchUsername(i.username,e.username)||e.environment&&!this.matchEnvironment(i,e.environment)||e.realm&&!this.matchRealm(i,e.realm)||e.nativeAccountId&&!this.matchNativeAccountId(i,e.nativeAccountId)||e.authorityType&&!this.matchAuthorityType(i,e.authorityType))return;const a={localAccountId:e?.localAccountId,name:e?.name},s=i.tenantProfiles?.filter(l=>this.tenantProfileMatchesFilter(l,a));s&&s.length===0||o.push(i)}),o}isAccountKey(e,r,o){return!(e.split(Ht.CACHE_KEY_SEPARATOR).length<3||r&&!e.toLowerCase().includes(r.toLowerCase())||o&&!e.toLowerCase().includes(o.toLowerCase()))}isCredentialKey(e){if(e.split(Ht.CACHE_KEY_SEPARATOR).length<6)return!1;const r=e.toLowerCase();if(r.indexOf(pe.ID_TOKEN.toLowerCase())===-1&&r.indexOf(pe.ACCESS_TOKEN.toLowerCase())===-1&&r.indexOf(pe.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())===-1&&r.indexOf(pe.REFRESH_TOKEN.toLowerCase())===-1)return!1;if(r.indexOf(pe.REFRESH_TOKEN.toLowerCase())>-1){const o=`${pe.REFRESH_TOKEN}${Ht.CACHE_KEY_SEPARATOR}${this.clientId}${Ht.CACHE_KEY_SEPARATOR}`,n=`${pe.REFRESH_TOKEN}${Ht.CACHE_KEY_SEPARATOR}${Zs}${Ht.CACHE_KEY_SEPARATOR}`;if(r.indexOf(o.toLowerCase())===-1&&r.indexOf(n.toLowerCase())===-1)return!1}else if(r.indexOf(this.clientId.toLowerCase())===-1)return!1;return!0}credentialMatchesFilter(e,r){return!(r.clientId&&!this.matchClientId(e,r.clientId)||r.userAssertionHash&&!this.matchUserAssertionHash(e,r.userAssertionHash)||typeof r.homeAccountId=="string"&&!this.matchHomeAccountId(e,r.homeAccountId)||r.environment&&!this.matchEnvironment(e,r.environment)||r.realm&&!this.matchRealm(e,r.realm)||r.credentialType&&!this.matchCredentialType(e,r.credentialType)||r.familyId&&!this.matchFamilyId(e,r.familyId)||r.target&&!this.matchTarget(e,r.target)||(r.requestedClaimsHash||e.requestedClaimsHash)&&e.requestedClaimsHash!==r.requestedClaimsHash||e.credentialType===pe.ACCESS_TOKEN_WITH_AUTH_SCHEME&&(r.tokenType&&!this.matchTokenType(e,r.tokenType)||r.tokenType===Ee.SSH&&r.keyId&&!this.matchKeyId(e,r.keyId)))}getAppMetadataFilteredBy(e){return this.getAppMetadataFilteredByInternal(e.environment,e.clientId)}getAppMetadataFilteredByInternal(e,r){const o=this.getKeys(),n={};return o.forEach(i=>{if(!this.isAppMetadata(i))return;const a=this.getAppMetadata(i);a&&(e&&!this.matchEnvironment(a,e)||r&&!this.matchClientId(a,r)||(n[i]=a))}),n}getAuthorityMetadataByAlias(e){const r=this.getAuthorityMetadataKeys();let o=null;return r.forEach(n=>{if(!this.isAuthorityMetadata(n)||n.indexOf(this.clientId)===-1)return;const i=this.getAuthorityMetadata(n);i&&i.aliases.indexOf(e)!==-1&&(o=i)}),o}async removeAllAccounts(){const e=this.getAccountKeys(),r=[];e.forEach(o=>{r.push(this.removeAccount(o))}),await Promise.all(r)}async removeAccount(e){const r=this.getAccount(e,this.commonLogger);r&&(await this.removeAccountContext(r),this.removeItem(e))}async removeAccountContext(e){const r=this.getTokenKeys(),o=e.generateAccountId(),n=[];r.idToken.forEach(i=>{i.indexOf(o)===0&&this.removeIdToken(i)}),r.accessToken.forEach(i=>{i.indexOf(o)===0&&n.push(this.removeAccessToken(i))}),r.refreshToken.forEach(i=>{i.indexOf(o)===0&&this.removeRefreshToken(i)}),await Promise.all(n)}updateOutdatedCachedAccount(e,r,o){if(r&&r.isSingleTenant()){this.commonLogger?.verbose("updateOutdatedCachedAccount: Found a single-tenant (outdated) account entity in the cache, migrating to multi-tenant account entity");const n=this.getAccountKeys().filter(c=>c.startsWith(r.homeAccountId)),i=[];n.forEach(c=>{const u=this.getCachedAccountEntity(c);u&&i.push(u)});const a=i.find(c=>_g(c.realm,c.homeAccountId))||i[0];a.tenantProfiles=i.map(c=>({tenantId:c.realm,localAccountId:c.localAccountId,name:c.name,isHomeTenant:_g(c.realm,c.homeAccountId)}));const s=$a.toObject(new Ct,{...a}),l=s.generateAccountKey();return n.forEach(c=>{c!==l&&this.removeOutdatedAccount(e)}),this.setAccount(s),o?.verbose("Updated an outdated account entity in the cache"),s}return r}async removeAccessToken(e){const r=this.getAccessTokenCredential(e);if(r){if(r.credentialType.toLowerCase()===pe.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase()&&r.tokenType===Ee.POP){const n=r.keyId;if(n)try{await this.cryptoImpl.removeTokenBindingKey(n)}catch{throw X(mS)}}return this.removeItem(e)}}removeAppMetadata(){return this.getKeys().forEach(r=>{this.isAppMetadata(r)&&this.removeItem(r)}),!0}readAccountFromCache(e){const r=Ct.generateAccountCacheKey(e);return this.getAccount(r,this.commonLogger)}getIdToken(e,r,o,n,i){this.commonLogger.trace("CacheManager - getIdToken called");const a={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:pe.ID_TOKEN,clientId:this.clientId,realm:o},s=this.getIdTokensByFilter(a,r),l=s.size;if(l<1)return this.commonLogger.info("CacheManager:getIdToken - No token found"),null;if(l>1){let c=s;if(!o){const u=new Map;s.forEach((f,h)=>{f.realm===e.tenantId&&u.set(h,f)});const d=u.size;if(d<1)return this.commonLogger.info("CacheManager:getIdToken - Multiple ID tokens found for account but none match account entity tenant id, returning first result"),s.values().next().value;if(d===1)return this.commonLogger.info("CacheManager:getIdToken - Multiple ID tokens found for account, defaulting to home tenant profile"),u.values().next().value;c=u}return this.commonLogger.info("CacheManager:getIdToken - Multiple matching ID tokens found, clearing them"),c.forEach((u,d)=>{this.removeIdToken(d)}),n&&i&&n.addFields({multiMatchedID:s.size},i),null}return this.commonLogger.info("CacheManager:getIdToken - Returning ID token"),s.values().next().value}getIdTokensByFilter(e,r){const o=r&&r.idToken||this.getTokenKeys().idToken,n=new Map;return o.forEach(i=>{if(!this.idTokenKeyMatchesFilter(i,{clientId:this.clientId,...e}))return;const a=this.getIdTokenCredential(i);a&&this.credentialMatchesFilter(a,e)&&n.set(i,a)}),n}idTokenKeyMatchesFilter(e,r){const o=e.toLowerCase();return!(r.clientId&&o.indexOf(r.clientId.toLowerCase())===-1||r.homeAccountId&&o.indexOf(r.homeAccountId.toLowerCase())===-1)}removeIdToken(e){this.removeItem(e)}removeRefreshToken(e){this.removeItem(e)}getAccessToken(e,r,o,n,i,a){this.commonLogger.trace("CacheManager - getAccessToken called");const s=gt.createSearchScopes(r.scopes),l=r.authenticationScheme||Ee.BEARER,c=l&&l.toLowerCase()!==Ee.BEARER.toLowerCase()?pe.ACCESS_TOKEN_WITH_AUTH_SCHEME:pe.ACCESS_TOKEN,u={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:c,clientId:this.clientId,realm:n||e.tenantId,target:s,tokenType:l,keyId:r.sshKid,requestedClaimsHash:r.requestedClaimsHash},d=o&&o.accessToken||this.getTokenKeys().accessToken,f=[];d.forEach(g=>{if(this.accessTokenKeyMatchesFilter(g,u,!0)){const m=this.getAccessTokenCredential(g);m&&this.credentialMatchesFilter(m,u)&&f.push(m)}});const h=f.length;return h<1?(this.commonLogger.info("CacheManager:getAccessToken - No token found"),null):h>1?(this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them"),f.forEach(g=>{this.removeAccessToken(ha(g))}),i&&a&&i.addFields({multiMatchedAT:f.length},a),null):(this.commonLogger.info("CacheManager:getAccessToken - Returning access token"),f[0])}accessTokenKeyMatchesFilter(e,r,o){const n=e.toLowerCase();if(r.clientId&&n.indexOf(r.clientId.toLowerCase())===-1||r.homeAccountId&&n.indexOf(r.homeAccountId.toLowerCase())===-1||r.realm&&n.indexOf(r.realm.toLowerCase())===-1||r.requestedClaimsHash&&n.indexOf(r.requestedClaimsHash.toLowerCase())===-1)return!1;if(r.target){const i=r.target.asArray();for(let a=0;a{if(!this.accessTokenKeyMatchesFilter(n,e,!0))return;const i=this.getAccessTokenCredential(n);i&&this.credentialMatchesFilter(i,e)&&o.push(i)}),o}getRefreshToken(e,r,o,n,i){this.commonLogger.trace("CacheManager - getRefreshToken called");const a=r?Zs:void 0,s={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:pe.REFRESH_TOKEN,clientId:this.clientId,familyId:a},l=o&&o.refreshToken||this.getTokenKeys().refreshToken,c=[];l.forEach(d=>{if(this.refreshTokenKeyMatchesFilter(d,s)){const f=this.getRefreshTokenCredential(d);f&&this.credentialMatchesFilter(f,s)&&c.push(f)}});const u=c.length;return u<1?(this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."),null):(u>1&&n&&i&&n.addFields({multiMatchedRT:u},i),this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"),c[0])}refreshTokenKeyMatchesFilter(e,r){const o=e.toLowerCase();return!(r.familyId&&o.indexOf(r.familyId.toLowerCase())===-1||!r.familyId&&r.clientId&&o.indexOf(r.clientId.toLowerCase())===-1||r.homeAccountId&&o.indexOf(r.homeAccountId.toLowerCase())===-1)}readAppMetadataFromCache(e){const r={environment:e,clientId:this.clientId},o=this.getAppMetadataFilteredBy(r),n=Object.keys(o).map(a=>o[a]),i=n.length;if(i<1)return null;if(i>1)throw X(cS);return n[0]}isAppMetadataFOCI(e){const r=this.readAppMetadataFromCache(e);return!!(r&&r.familyId===Zs)}matchHomeAccountId(e,r){return typeof e.homeAccountId=="string"&&r===e.homeAccountId}matchLocalAccountIdFromTokenClaims(e,r){const o=e.oid||e.sub;return r===o}matchLocalAccountIdFromTenantProfile(e,r){return e.localAccountId===r}matchName(e,r){return r.toLowerCase()===e.name?.toLowerCase()}matchUsername(e,r){return!!(e&&typeof e=="string"&&r?.toLowerCase()===e.toLowerCase())}matchUserAssertionHash(e,r){return!!(e.userAssertionHash&&r===e.userAssertionHash)}matchEnvironment(e,r){if(this.staticAuthorityOptions){const n=GB(this.staticAuthorityOptions,this.commonLogger);if(n.includes(r)&&n.includes(e.environment))return!0}const o=this.getAuthorityMetadataByAlias(r);return!!(o&&o.aliases.indexOf(e.environment)>-1)}matchCredentialType(e,r){return e.credentialType&&r.toLowerCase()===e.credentialType.toLowerCase()}matchClientId(e,r){return!!(e.clientId&&r===e.clientId)}matchFamilyId(e,r){return!!(e.familyId&&r===e.familyId)}matchRealm(e,r){return e.realm?.toLowerCase()===r.toLowerCase()}matchNativeAccountId(e,r){return!!(e.nativeAccountId&&r===e.nativeAccountId)}matchLoginHintFromTokenClaims(e,r){return e.login_hint===r||e.preferred_username===r||e.upn===r}matchSid(e,r){return e.sid===r}matchAuthorityType(e,r){return!!(e.authorityType&&r.toLowerCase()===e.authorityType.toLowerCase())}matchTarget(e,r){return e.credentialType!==pe.ACCESS_TOKEN&&e.credentialType!==pe.ACCESS_TOKEN_WITH_AUTH_SCHEME||!e.target?!1:gt.fromString(e.target).containsScopeSet(r)}matchTokenType(e,r){return!!(e.tokenType&&e.tokenType===r)}matchKeyId(e,r){return!!(e.keyId&&e.keyId===r)}isAppMetadata(e){return e.indexOf(Km)!==-1}isAuthorityMetadata(e){return e.indexOf(Gu.CACHE_KEY)!==-1}generateAuthorityMetadataCacheKey(e){return`${Gu.CACHE_KEY}-${this.clientId}-${e}`}static toObject(e,r){for(const o in r)e[o]=r[o];return e}}class YB extends $a{setAccount(){throw X(ye)}getAccount(){throw X(ye)}getCachedAccountEntity(){throw X(ye)}setIdTokenCredential(){throw X(ye)}getIdTokenCredential(){throw X(ye)}setAccessTokenCredential(){throw X(ye)}getAccessTokenCredential(){throw X(ye)}setRefreshTokenCredential(){throw X(ye)}getRefreshTokenCredential(){throw X(ye)}setAppMetadata(){throw X(ye)}getAppMetadata(){throw X(ye)}setServerTelemetry(){throw X(ye)}getServerTelemetry(){throw X(ye)}setAuthorityMetadata(){throw X(ye)}getAuthorityMetadata(){throw X(ye)}getAuthorityMetadataKeys(){throw X(ye)}setThrottlingCache(){throw X(ye)}getThrottlingCache(){throw X(ye)}removeItem(){throw X(ye)}containsKey(){throw X(ye)}getKeys(){throw X(ye)}getAccountKeys(){throw X(ye)}getTokenKeys(){throw X(ye)}async clear(){throw X(ye)}updateCredentialCacheKey(){throw X(ye)}removeOutdatedAccount(){throw X(ye)}}/*! @azure/msal-common v14.6.1 2024-01-23 */const ZB=300,FS={tokenRenewalOffsetSeconds:ZB,preventCorsPreflight:!1},QB={loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:He.Info,correlationId:j.EMPTY_STRING},JB={claimsBasedCachingEnabled:!1},eI={async sendGetRequestAsync(){throw X(ye)},async sendPostRequestAsync(){throw X(ye)}},tI={sku:j.SKU,version:Jm,cpu:j.EMPTY_STRING,os:j.EMPTY_STRING},rI={clientSecret:j.EMPTY_STRING,clientAssertion:void 0},oI={azureCloudInstance:ev.None,tenant:`${j.DEFAULT_COMMON_TENANT}`},nI={application:{appName:"",appVersion:""}};function iI({authOptions:t,systemOptions:e,loggerOptions:r,cacheOptions:o,storageInterface:n,networkInterface:i,cryptoInterface:a,clientCredentials:s,libraryInfo:l,telemetry:c,serverTelemetryManager:u,persistencePlugin:d,serializableCache:f}){const h={...QB,...r};return{authOptions:aI(t),systemOptions:{...FS,...e},loggerOptions:h,cacheOptions:{...JB,...o},storageInterface:n||new YB(t.clientId,Yu,new Ln(h)),networkInterface:i||eI,cryptoInterface:a||Yu,clientCredentials:s||rI,libraryInfo:{...tI,...l},telemetry:{...nI,...c},serverTelemetryManager:u||null,persistencePlugin:d||null,serializableCache:f||null}}function aI(t){return{clientCapabilities:[],azureCloudOptions:oI,skipAuthorityMetadataCache:!1,...t}}function xg(t){return t.authOptions.authority.options.protocolMode===Yo.OIDC}/*! @azure/msal-common v14.6.1 2024-01-23 */class Hn extends We{constructor(e,r,o){super(e,r,o),this.name="ServerError",Object.setPrototypeOf(this,Hn.prototype)}}/*! @azure/msal-common v14.6.1 2024-01-23 */class ko{static generateThrottlingStorageKey(e){return`${Qs.THROTTLING_PREFIX}.${JSON.stringify(e)}`}static preProcess(e,r){const o=ko.generateThrottlingStorageKey(r),n=e.getThrottlingCache(o);if(n){if(n.throttleTime=500&&e.status<600}static checkResponseForRetryAfter(e){return e.headers?e.headers.hasOwnProperty(_o.RETRY_AFTER)&&(e.status<200||e.status>=300):!1}static calculateThrottleTime(e){const r=e<=0?0:e,o=Date.now()/1e3;return Math.floor(Math.min(o+(r||Qs.DEFAULT_THROTTLE_TIME_SECONDS),o+Qs.DEFAULT_MAX_THROTTLE_TIME_SECONDS)*1e3)}static removeThrottle(e,r,o,n){const i={clientId:r,authority:o.authority,scopes:o.scopes,homeAccountIdentifier:n,claims:o.claims,authenticationScheme:o.authenticationScheme,resourceRequestMethod:o.resourceRequestMethod,resourceRequestUri:o.resourceRequestUri,shrClaims:o.shrClaims,sshKid:o.sshKid},a=this.generateThrottlingStorageKey(i);e.removeItem(a)}}/*! @azure/msal-common v14.6.1 2024-01-23 */class sI{constructor(e,r){this.networkClient=e,this.cacheManager=r}async sendPostRequest(e,r,o){ko.preProcess(this.cacheManager,e);let n;try{n=await this.networkClient.sendPostRequestAsync(r,o)}catch(i){throw i instanceof We?i:X(oS)}return ko.postProcess(this.cacheManager,e,n),n}}/*! @azure/msal-common v14.6.1 2024-01-23 */const br={HOME_ACCOUNT_ID:"home_account_id",UPN:"UPN"};/*! @azure/msal-common v14.6.1 2024-01-23 */const Ka="client_id",lI="redirect_uri",O0="response_type",cI="response_mode",uI="grant_type",dI="claims",fI="scope",hI="refresh_token",gI="state",pI="nonce",mI="prompt",vI="code",bI="code_challenge",yI="code_challenge_method",wI="code_verifier",kI="client-request-id",SI="x-client-SKU",_I="x-client-VER",xI="x-client-OS",CI="x-client-CPU",TI="x-client-current-telemetry",EI="x-client-last-telemetry",BI="x-ms-lib-capability",II="x-app-name",RI="x-app-ver",AI="post_logout_redirect_uri",NI="id_token_hint",PI="device_code",zI="client_secret",MI="client_assertion",OI="client_assertion_type",j0="token_type",D0="req_cnf",jI="assertion",DI="requested_token_use",F0="return_spa_code",FI="nativebroker",qI="logout_hint",LI="sid",HI="login_hint",UI="domain_hint";/*! @azure/msal-common v14.6.1 2024-01-23 */class ii{static validateRedirectUri(e){if(!e)throw Re(kS)}static validatePrompt(e){const r=[];for(const o in Kt)r.push(Kt[o]);if(r.indexOf(e)<0)throw Re(CS)}static validateClaims(e){try{JSON.parse(e)}catch{throw Re(rv)}}static validateCodeChallengeParams(e,r){if(!e||!r)throw Re(ov);this.validateCodeChallengeMethod(r)}static validateCodeChallengeMethod(e){if([x0.PLAIN,x0.S256].indexOf(e)<0)throw Re(BS)}static sanitizeEQParams(e,r){return e?(r.forEach((o,n)=>{e[n]&&delete e[n]}),Object.fromEntries(Object.entries(e).filter(o=>o[1]!==""))):{}}}/*! @azure/msal-common v14.6.1 2024-01-23 */class Js{constructor(){this.parameters=new Map}addResponseTypeCode(){this.parameters.set(O0,encodeURIComponent(j.CODE_RESPONSE_TYPE))}addResponseTypeForTokenAndIdToken(){this.parameters.set(O0,encodeURIComponent(`${j.TOKEN_RESPONSE_TYPE} ${j.ID_TOKEN_RESPONSE_TYPE}`))}addResponseMode(e){this.parameters.set(cI,encodeURIComponent(e||vB.QUERY))}addNativeBroker(){this.parameters.set(FI,encodeURIComponent("1"))}addScopes(e,r=!0,o=tc){r&&!o.includes("openid")&&!e.includes("openid")&&o.push("openid");const n=r?[...e||[],...o]:e||[],i=new gt(n);this.parameters.set(fI,encodeURIComponent(i.printScopes()))}addClientId(e){this.parameters.set(Ka,encodeURIComponent(e))}addRedirectUri(e){ii.validateRedirectUri(e),this.parameters.set(lI,encodeURIComponent(e))}addPostLogoutRedirectUri(e){ii.validateRedirectUri(e),this.parameters.set(AI,encodeURIComponent(e))}addIdTokenHint(e){this.parameters.set(NI,encodeURIComponent(e))}addDomainHint(e){this.parameters.set(UI,encodeURIComponent(e))}addLoginHint(e){this.parameters.set(HI,encodeURIComponent(e))}addCcsUpn(e){this.parameters.set(_o.CCS_HEADER,encodeURIComponent(`UPN:${e}`))}addCcsOid(e){this.parameters.set(_o.CCS_HEADER,encodeURIComponent(`Oid:${e.uid}@${e.utid}`))}addSid(e){this.parameters.set(LI,encodeURIComponent(e))}addClaims(e,r){const o=this.addClientCapabilitiesToClaims(e,r);ii.validateClaims(o),this.parameters.set(dI,encodeURIComponent(o))}addCorrelationId(e){this.parameters.set(kI,encodeURIComponent(e))}addLibraryInfo(e){this.parameters.set(SI,e.sku),this.parameters.set(_I,e.version),e.os&&this.parameters.set(xI,e.os),e.cpu&&this.parameters.set(CI,e.cpu)}addApplicationTelemetry(e){e?.appName&&this.parameters.set(II,e.appName),e?.appVersion&&this.parameters.set(RI,e.appVersion)}addPrompt(e){ii.validatePrompt(e),this.parameters.set(`${mI}`,encodeURIComponent(e))}addState(e){e&&this.parameters.set(gI,encodeURIComponent(e))}addNonce(e){this.parameters.set(pI,encodeURIComponent(e))}addCodeChallengeParams(e,r){if(ii.validateCodeChallengeParams(e,r),e&&r)this.parameters.set(bI,encodeURIComponent(e)),this.parameters.set(yI,encodeURIComponent(r));else throw Re(ov)}addAuthorizationCode(e){this.parameters.set(vI,encodeURIComponent(e))}addDeviceCode(e){this.parameters.set(PI,encodeURIComponent(e))}addRefreshToken(e){this.parameters.set(hI,encodeURIComponent(e))}addCodeVerifier(e){this.parameters.set(wI,encodeURIComponent(e))}addClientSecret(e){this.parameters.set(zI,encodeURIComponent(e))}addClientAssertion(e){e&&this.parameters.set(MI,encodeURIComponent(e))}addClientAssertionType(e){e&&this.parameters.set(OI,encodeURIComponent(e))}addOboAssertion(e){this.parameters.set(jI,encodeURIComponent(e))}addRequestTokenUse(e){this.parameters.set(DI,encodeURIComponent(e))}addGrantType(e){this.parameters.set(uI,encodeURIComponent(e))}addClientInfo(){this.parameters.set(bB,"1")}addExtraQueryParameters(e){const r=ii.sanitizeEQParams(e,this.parameters);Object.keys(r).forEach(o=>{this.parameters.set(o,e[o])})}addClientCapabilitiesToClaims(e,r){let o;if(!e)o={};else try{o=JSON.parse(e)}catch{throw Re(rv)}return r&&r.length>0&&(o.hasOwnProperty(Tc.ACCESS_TOKEN)||(o[Tc.ACCESS_TOKEN]={}),o[Tc.ACCESS_TOKEN][Tc.XMS_CC]={values:r}),JSON.stringify(o)}addUsername(e){this.parameters.set(T0.username,encodeURIComponent(e))}addPassword(e){this.parameters.set(T0.password,encodeURIComponent(e))}addPopToken(e){e&&(this.parameters.set(j0,Ee.POP),this.parameters.set(D0,encodeURIComponent(e)))}addSshJwk(e){e&&(this.parameters.set(j0,Ee.SSH),this.parameters.set(D0,encodeURIComponent(e)))}addServerTelemetry(e){this.parameters.set(TI,e.generateCurrentRequestHeaderValue()),this.parameters.set(EI,e.generateLastRequestHeaderValue())}addThrottling(){this.parameters.set(BI,Qs.X_MS_LIB_CAPABILITY_VALUE)}addLogoutHint(e){this.parameters.set(qI,encodeURIComponent(e))}createQueryString(){const e=new Array;return this.parameters.forEach((r,o)=>{e.push(`${o}=${r}`)}),e.join("&")}}/*! @azure/msal-common v14.6.1 2024-01-23 */function $I(t){return t.hasOwnProperty("authorization_endpoint")&&t.hasOwnProperty("token_endpoint")&&t.hasOwnProperty("issuer")&&t.hasOwnProperty("jwks_uri")}/*! @azure/msal-common v14.6.1 2024-01-23 */function KI(t){return t.hasOwnProperty("tenant_discovery_endpoint")&&t.hasOwnProperty("metadata")}/*! @azure/msal-common v14.6.1 2024-01-23 */function WI(t){return t.hasOwnProperty("error")&&t.hasOwnProperty("error_description")}/*! @azure/msal-common v14.6.1 2024-01-23 */const A={AcquireTokenByCode:"acquireTokenByCode",AcquireTokenByRefreshToken:"acquireTokenByRefreshToken",AcquireTokenSilent:"acquireTokenSilent",AcquireTokenSilentAsync:"acquireTokenSilentAsync",AcquireTokenPopup:"acquireTokenPopup",CryptoOptsGetPublicKeyThumbprint:"cryptoOptsGetPublicKeyThumbprint",CryptoOptsSignJwt:"cryptoOptsSignJwt",SilentCacheClientAcquireToken:"silentCacheClientAcquireToken",SilentIframeClientAcquireToken:"silentIframeClientAcquireToken",SilentRefreshClientAcquireToken:"silentRefreshClientAcquireToken",SsoSilent:"ssoSilent",StandardInteractionClientGetDiscoveredAuthority:"standardInteractionClientGetDiscoveredAuthority",FetchAccountIdWithNativeBroker:"fetchAccountIdWithNativeBroker",NativeInteractionClientAcquireToken:"nativeInteractionClientAcquireToken",BaseClientCreateTokenRequestHeaders:"baseClientCreateTokenRequestHeaders",RefreshTokenClientExecutePostToTokenEndpoint:"refreshTokenClientExecutePostToTokenEndpoint",AuthorizationCodeClientExecutePostToTokenEndpoint:"authorizationCodeClientExecutePostToTokenEndpoint",BrokerHandhshake:"brokerHandshake",AcquireTokenByRefreshTokenInBroker:"acquireTokenByRefreshTokenInBroker",AcquireTokenByBroker:"acquireTokenByBroker",RefreshTokenClientExecuteTokenRequest:"refreshTokenClientExecuteTokenRequest",RefreshTokenClientAcquireToken:"refreshTokenClientAcquireToken",RefreshTokenClientAcquireTokenWithCachedRefreshToken:"refreshTokenClientAcquireTokenWithCachedRefreshToken",RefreshTokenClientAcquireTokenByRefreshToken:"refreshTokenClientAcquireTokenByRefreshToken",RefreshTokenClientCreateTokenRequestBody:"refreshTokenClientCreateTokenRequestBody",AcquireTokenFromCache:"acquireTokenFromCache",SilentFlowClientAcquireCachedToken:"silentFlowClientAcquireCachedToken",SilentFlowClientGenerateResultFromCacheRecord:"silentFlowClientGenerateResultFromCacheRecord",AcquireTokenBySilentIframe:"acquireTokenBySilentIframe",InitializeBaseRequest:"initializeBaseRequest",InitializeSilentRequest:"initializeSilentRequest",InitializeClientApplication:"initializeClientApplication",SilentIframeClientTokenHelper:"silentIframeClientTokenHelper",SilentHandlerInitiateAuthRequest:"silentHandlerInitiateAuthRequest",SilentHandlerMonitorIframeForHash:"silentHandlerMonitorIframeForHash",SilentHandlerLoadFrame:"silentHandlerLoadFrame",SilentHandlerLoadFrameSync:"silentHandlerLoadFrameSync",StandardInteractionClientCreateAuthCodeClient:"standardInteractionClientCreateAuthCodeClient",StandardInteractionClientGetClientConfiguration:"standardInteractionClientGetClientConfiguration",StandardInteractionClientInitializeAuthorizationRequest:"standardInteractionClientInitializeAuthorizationRequest",StandardInteractionClientInitializeAuthorizationCodeRequest:"standardInteractionClientInitializeAuthorizationCodeRequest",GetAuthCodeUrl:"getAuthCodeUrl",HandleCodeResponseFromServer:"handleCodeResponseFromServer",HandleCodeResponse:"handleCodeResponse",UpdateTokenEndpointAuthority:"updateTokenEndpointAuthority",AuthClientAcquireToken:"authClientAcquireToken",AuthClientExecuteTokenRequest:"authClientExecuteTokenRequest",AuthClientCreateTokenRequestBody:"authClientCreateTokenRequestBody",AuthClientCreateQueryString:"authClientCreateQueryString",PopTokenGenerateCnf:"popTokenGenerateCnf",PopTokenGenerateKid:"popTokenGenerateKid",HandleServerTokenResponse:"handleServerTokenResponse",DeserializeResponse:"deserializeResponse",AuthorityFactoryCreateDiscoveredInstance:"authorityFactoryCreateDiscoveredInstance",AuthorityResolveEndpointsAsync:"authorityResolveEndpointsAsync",AuthorityResolveEndpointsFromLocalSources:"authorityResolveEndpointsFromLocalSources",AuthorityGetCloudDiscoveryMetadataFromNetwork:"authorityGetCloudDiscoveryMetadataFromNetwork",AuthorityUpdateCloudDiscoveryMetadata:"authorityUpdateCloudDiscoveryMetadata",AuthorityGetEndpointMetadataFromNetwork:"authorityGetEndpointMetadataFromNetwork",AuthorityUpdateEndpointMetadata:"authorityUpdateEndpointMetadata",AuthorityUpdateMetadataWithRegionalInformation:"authorityUpdateMetadataWithRegionalInformation",RegionDiscoveryDetectRegion:"regionDiscoveryDetectRegion",RegionDiscoveryGetRegionFromIMDS:"regionDiscoveryGetRegionFromIMDS",RegionDiscoveryGetCurrentVersion:"regionDiscoveryGetCurrentVersion",AcquireTokenByCodeAsync:"acquireTokenByCodeAsync",GetEndpointMetadataFromNetwork:"getEndpointMetadataFromNetwork",GetCloudDiscoveryMetadataFromNetworkMeasurement:"getCloudDiscoveryMetadataFromNetworkMeasurement",HandleRedirectPromiseMeasurement:"handleRedirectPromiseMeasurement",UpdateCloudDiscoveryMetadataMeasurement:"updateCloudDiscoveryMetadataMeasurement",UsernamePasswordClientAcquireToken:"usernamePasswordClientAcquireToken",NativeMessageHandlerHandshake:"nativeMessageHandlerHandshake",NativeGenerateAuthResult:"nativeGenerateAuthResult",RemoveHiddenIframe:"removeHiddenIframe",ClearTokensAndKeysWithClaims:"clearTokensAndKeysWithClaims",CacheManagerGetRefreshToken:"cacheManagerGetRefreshToken",GeneratePkceCodes:"generatePkceCodes",GenerateCodeVerifier:"generateCodeVerifier",GenerateCodeChallengeFromVerifier:"generateCodeChallengeFromVerifier",Sha256Digest:"sha256Digest",GetRandomValues:"getRandomValues"},VI={NotStarted:0,InProgress:1,Completed:2};/*! @azure/msal-common v14.6.1 2024-01-23 */const $i=(t,e,r,o,n)=>(...i)=>{r.trace(`Executing function ${e}`);const a=o?.startMeasurement(e,n);try{const s=t(...i);return a?.end({success:!0}),r.trace(`Returning result from ${e}`),s}catch(s){r.trace(`Error occurred in ${e}`);try{r.trace(JSON.stringify(s))}catch{r.trace("Unable to print error message.")}throw a?.end({success:!1}),s}},te=(t,e,r,o,n)=>(...i)=>{r.trace(`Executing function ${e}`);const a=o?.startMeasurement(e,n);return o?.setPreQueueTime(e,n),t(...i).then(s=>(r.trace(`Returning result from ${e}`),a?.end({success:!0}),s)).catch(s=>{r.trace(`Error occurred in ${e}`);try{r.trace(JSON.stringify(s))}catch{r.trace("Unable to print error message.")}throw a?.end({success:!1}),s})};/*! @azure/msal-common v14.6.1 2024-01-23 */class ef{constructor(e,r,o,n){this.networkInterface=e,this.logger=r,this.performanceClient=o,this.correlationId=n}async detectRegion(e,r){this.performanceClient?.addQueueMeasurement(A.RegionDiscoveryDetectRegion,this.correlationId);let o=e;if(o)r.region_source=Zi.ENVIRONMENT_VARIABLE;else{const n=ef.IMDS_OPTIONS;try{const i=await te(this.getRegionFromIMDS.bind(this),A.RegionDiscoveryGetRegionFromIMDS,this.logger,this.performanceClient,this.correlationId)(j.IMDS_VERSION,n);if(i.status===Bc.httpSuccess&&(o=i.body,r.region_source=Zi.IMDS),i.status===Bc.httpBadRequest){const a=await te(this.getCurrentVersion.bind(this),A.RegionDiscoveryGetCurrentVersion,this.logger,this.performanceClient,this.correlationId)(n);if(!a)return r.region_source=Zi.FAILED_AUTO_DETECTION,null;const s=await te(this.getRegionFromIMDS.bind(this),A.RegionDiscoveryGetRegionFromIMDS,this.logger,this.performanceClient,this.correlationId)(a,n);s.status===Bc.httpSuccess&&(o=s.body,r.region_source=Zi.IMDS)}}catch{return r.region_source=Zi.FAILED_AUTO_DETECTION,null}}return o||(r.region_source=Zi.FAILED_AUTO_DETECTION),o||null}async getRegionFromIMDS(e,r){return this.performanceClient?.addQueueMeasurement(A.RegionDiscoveryGetRegionFromIMDS,this.correlationId),this.networkInterface.sendGetRequestAsync(`${j.IMDS_ENDPOINT}?api-version=${e}&format=text`,r,j.IMDS_TIMEOUT)}async getCurrentVersion(e){this.performanceClient?.addQueueMeasurement(A.RegionDiscoveryGetCurrentVersion,this.correlationId);try{const r=await this.networkInterface.sendGetRequestAsync(`${j.IMDS_ENDPOINT}?format=json`,e);return r.status===Bc.httpBadRequest&&r.body&&r.body["newest-versions"]&&r.body["newest-versions"].length>0?r.body["newest-versions"][0]:null}catch{return null}}}ef.IMDS_OPTIONS={headers:{Metadata:"true"}};/*! @azure/msal-common v14.6.1 2024-01-23 */class Lt{constructor(e,r,o,n,i,a,s){this.canonicalAuthority=e,this._canonicalAuthority.validateAsUri(),this.networkInterface=r,this.cacheManager=o,this.authorityOptions=n,this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.logger=i,this.performanceClient=s,this.correlationId=a,this.regionDiscovery=new ef(r,this.logger,this.performanceClient,this.correlationId)}getAuthorityType(e){if(e.HostNameAndPort.endsWith(j.CIAM_AUTH_URL))return Gr.Ciam;const r=e.PathSegments;if(r.length)switch(r[0].toLowerCase()){case j.ADFS:return Gr.Adfs;case j.DSTS:return Gr.Dsts}return Gr.Default}get authorityType(){return this.getAuthorityType(this.canonicalAuthorityUrlComponents)}get protocolMode(){return this.authorityOptions.protocolMode}get options(){return this.authorityOptions}get canonicalAuthority(){return this._canonicalAuthority.urlString}set canonicalAuthority(e){this._canonicalAuthority=new Se(e),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null}get canonicalAuthorityUrlComponents(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents}get hostnameAndPort(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()}get tenant(){return this.canonicalAuthorityUrlComponents.PathSegments[0]}get authorizationEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.authorization_endpoint);throw X(Fo)}get tokenEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint);throw X(Fo)}get deviceCodeEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));throw X(Fo)}get endSessionEndpoint(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw X(vS);return this.replacePath(this.metadata.end_session_endpoint)}else throw X(Fo)}get selfSignedJwtAudience(){if(this.discoveryComplete())return this.replacePath(this.metadata.issuer);throw X(Fo)}get jwksUri(){if(this.discoveryComplete())return this.replacePath(this.metadata.jwks_uri);throw X(Fo)}canReplaceTenant(e){return e.PathSegments.length===1&&!Lt.reservedTenantDomains.has(e.PathSegments[0])&&this.getAuthorityType(e)===Gr.Default&&this.protocolMode===Yo.AAD}replaceTenant(e){return e.replace(/{tenant}|{tenantid}/g,this.tenant)}replacePath(e){let r=e;const n=new Se(this.metadata.canonical_authority).getUrlComponents(),i=n.PathSegments;return this.canonicalAuthorityUrlComponents.PathSegments.forEach((s,l)=>{let c=i[l];if(l===0&&this.canReplaceTenant(n)){const u=new Se(this.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];c!==u&&(this.logger.verbose(`Replacing tenant domain name ${c} with id ${u}`),c=u)}s!==c&&(r=r.replace(`/${c}/`,`/${s}/`))}),this.replaceTenant(r)}get defaultOpenIdConfigurationEndpoint(){const e=this.hostnameAndPort;return this.canonicalAuthority.endsWith("v2.0/")||this.authorityType===Gr.Adfs||this.protocolMode!==Yo.AAD&&!this.isAliasOfKnownMicrosoftAuthority(e)?`${this.canonicalAuthority}.well-known/openid-configuration`:`${this.canonicalAuthority}v2.0/.well-known/openid-configuration`}discoveryComplete(){return!!this.metadata}async resolveEndpointsAsync(){this.performanceClient?.addQueueMeasurement(A.AuthorityResolveEndpointsAsync,this.correlationId);const e=this.getCurrentMetadataEntity(),r=await te(this.updateCloudDiscoveryMetadata.bind(this),A.AuthorityUpdateCloudDiscoveryMetadata,this.logger,this.performanceClient,this.correlationId)(e);this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,e.preferred_network);const o=await te(this.updateEndpointMetadata.bind(this),A.AuthorityUpdateEndpointMetadata,this.logger,this.performanceClient,this.correlationId)(e);this.updateCachedMetadata(e,r,{source:o}),this.performanceClient?.addFields({cloudDiscoverySource:r,authorityEndpointSource:o},this.correlationId)}getCurrentMetadataEntity(){let e=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort);return e||(e={aliases:[],preferred_cache:this.hostnameAndPort,preferred_network:this.hostnameAndPort,canonical_authority:this.canonicalAuthority,authorization_endpoint:"",token_endpoint:"",end_session_endpoint:"",issuer:"",aliasesFromNetwork:!1,endpointsFromNetwork:!1,expiresAt:N0(),jwks_uri:""}),e}updateCachedMetadata(e,r,o){r!==gr.CACHE&&o?.source!==gr.CACHE&&(e.expiresAt=N0(),e.canonical_authority=this.canonicalAuthority);const n=this.cacheManager.generateAuthorityMetadataCacheKey(e.preferred_cache);this.cacheManager.setAuthorityMetadata(n,e),this.metadata=e}async updateEndpointMetadata(e){this.performanceClient?.addQueueMeasurement(A.AuthorityUpdateEndpointMetadata,this.correlationId);const r=this.updateEndpointMetadataFromLocalSources(e);if(r){if(r.source===gr.HARDCODED_VALUES&&this.authorityOptions.azureRegionConfiguration?.azureRegion&&r.metadata){const n=await te(this.updateMetadataWithRegionalInformation.bind(this),A.AuthorityUpdateMetadataWithRegionalInformation,this.logger,this.performanceClient,this.correlationId)(r.metadata);Ic(e,n,!1),e.canonical_authority=this.canonicalAuthority}return r.source}let o=await te(this.getEndpointMetadataFromNetwork.bind(this),A.AuthorityGetEndpointMetadataFromNetwork,this.logger,this.performanceClient,this.correlationId)();if(o)return this.authorityOptions.azureRegionConfiguration?.azureRegion&&(o=await te(this.updateMetadataWithRegionalInformation.bind(this),A.AuthorityUpdateMetadataWithRegionalInformation,this.logger,this.performanceClient,this.correlationId)(o)),Ic(e,o,!0),gr.NETWORK;throw X(nS,this.defaultOpenIdConfigurationEndpoint)}updateEndpointMetadataFromLocalSources(e){this.logger.verbose("Attempting to get endpoint metadata from authority configuration");const r=this.getEndpointMetadataFromConfig();if(r)return this.logger.verbose("Found endpoint metadata in authority configuration"),Ic(e,r,!1),{source:gr.CONFIG};if(this.logger.verbose("Did not find endpoint metadata in the config... Attempting to get endpoint metadata from the hardcoded values."),this.authorityOptions.skipAuthorityMetadataCache)this.logger.verbose("Skipping hardcoded metadata cache since skipAuthorityMetadataCache is set to true. Attempting to get endpoint metadata from the network metadata cache.");else{const n=this.getEndpointMetadataFromHardcodedValues();if(n)return Ic(e,n,!1),{source:gr.HARDCODED_VALUES,metadata:n};this.logger.verbose("Did not find endpoint metadata in hardcoded values... Attempting to get endpoint metadata from the network metadata cache.")}const o=P0(e);return this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!o?(this.logger.verbose("Found endpoint metadata in the cache."),{source:gr.CACHE}):(o&&this.logger.verbose("The metadata entity is expired."),null)}isAuthoritySameType(e){return new Se(e.canonical_authority).getUrlComponents().PathSegments.length===this.canonicalAuthorityUrlComponents.PathSegments.length}getEndpointMetadataFromConfig(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch{throw Re(IS)}return null}async getEndpointMetadataFromNetwork(){this.performanceClient?.addQueueMeasurement(A.AuthorityGetEndpointMetadataFromNetwork,this.correlationId);const e={},r=this.defaultOpenIdConfigurationEndpoint;this.logger.verbose(`Authority.getEndpointMetadataFromNetwork: attempting to retrieve OAuth endpoints from ${r}`);try{const o=await this.networkInterface.sendGetRequestAsync(r,e);return $I(o.body)?o.body:(this.logger.verbose("Authority.getEndpointMetadataFromNetwork: could not parse response as OpenID configuration"),null)}catch(o){return this.logger.verbose(`Authority.getEndpointMetadataFromNetwork: ${o}`),null}}getEndpointMetadataFromHardcodedValues(){return this.hostnameAndPort in z0?z0[this.hostnameAndPort]:null}async updateMetadataWithRegionalInformation(e){this.performanceClient?.addQueueMeasurement(A.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId);const r=this.authorityOptions.azureRegionConfiguration?.azureRegion;if(r){if(r!==j.AZURE_REGION_AUTO_DISCOVER_FLAG)return this.regionDiscoveryMetadata.region_outcome=Qf.CONFIGURED_NO_AUTO_DETECTION,this.regionDiscoveryMetadata.region_used=r,Lt.replaceWithRegionalInformation(e,r);const o=await te(this.regionDiscovery.detectRegion.bind(this.regionDiscovery),A.RegionDiscoveryDetectRegion,this.logger,this.performanceClient,this.correlationId)(this.authorityOptions.azureRegionConfiguration?.environmentRegion,this.regionDiscoveryMetadata);if(o)return this.regionDiscoveryMetadata.region_outcome=Qf.AUTO_DETECTION_REQUESTED_SUCCESSFUL,this.regionDiscoveryMetadata.region_used=o,Lt.replaceWithRegionalInformation(e,o);this.regionDiscoveryMetadata.region_outcome=Qf.AUTO_DETECTION_REQUESTED_FAILED}return e}async updateCloudDiscoveryMetadata(e){this.performanceClient?.addQueueMeasurement(A.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId);const r=this.updateCloudDiscoveryMetadataFromLocalSources(e);if(r)return r;const o=await te(this.getCloudDiscoveryMetadataFromNetwork.bind(this),A.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.logger,this.performanceClient,this.correlationId)();if(o)return Jf(e,o,!0),gr.NETWORK;throw Re(RS)}updateCloudDiscoveryMetadataFromLocalSources(e){this.logger.verbose("Attempting to get cloud discovery metadata from authority configuration"),this.logger.verbosePii(`Known Authorities: ${this.authorityOptions.knownAuthorities||j.NOT_APPLICABLE}`),this.logger.verbosePii(`Authority Metadata: ${this.authorityOptions.authorityMetadata||j.NOT_APPLICABLE}`),this.logger.verbosePii(`Canonical Authority: ${e.canonical_authority||j.NOT_APPLICABLE}`);const r=this.getCloudDiscoveryMetadataFromConfig();if(r)return this.logger.verbose("Found cloud discovery metadata in authority configuration"),Jf(e,r,!1),gr.CONFIG;if(this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the hardcoded values."),this.options.skipAuthorityMetadataCache)this.logger.verbose("Skipping hardcoded cloud discovery metadata cache since skipAuthorityMetadataCache is set to true. Attempting to get cloud discovery metadata from the network metadata cache.");else{const n=XB(this.hostnameAndPort);if(n)return this.logger.verbose("Found cloud discovery metadata from hardcoded values."),Jf(e,n,!1),gr.HARDCODED_VALUES;this.logger.verbose("Did not find cloud discovery metadata in hardcoded values... Attempting to get cloud discovery metadata from the network metadata cache.")}const o=P0(e);return this.isAuthoritySameType(e)&&e.aliasesFromNetwork&&!o?(this.logger.verbose("Found cloud discovery metadata in the cache."),gr.CACHE):(o&&this.logger.verbose("The metadata entity is expired."),null)}getCloudDiscoveryMetadataFromConfig(){if(this.authorityType===Gr.Ciam)return this.logger.verbose("CIAM authorities do not support cloud discovery metadata, generate the aliases from authority host."),Lt.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);if(this.authorityOptions.cloudDiscoveryMetadata){this.logger.verbose("The cloud discovery metadata has been provided as a network response, in the config.");try{this.logger.verbose("Attempting to parse the cloud discovery metadata.");const e=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),r=Ju(e.metadata,this.hostnameAndPort);if(this.logger.verbose("Parsed the cloud discovery metadata."),r)return this.logger.verbose("There is returnable metadata attached to the parsed cloud discovery metadata."),r;this.logger.verbose("There is no metadata attached to the parsed cloud discovery metadata.")}catch{throw this.logger.verbose("Unable to parse the cloud discovery metadata. Throwing Invalid Cloud Discovery Metadata Error."),Re(nv)}}return this.isInKnownAuthorities()?(this.logger.verbose("The host is included in knownAuthorities. Creating new cloud discovery metadata from the host."),Lt.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)):null}async getCloudDiscoveryMetadataFromNetwork(){this.performanceClient?.addQueueMeasurement(A.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId);const e=`${j.AAD_INSTANCE_DISCOVERY_ENDPT}${this.canonicalAuthority}oauth2/v2.0/authorize`,r={};let o=null;try{const n=await this.networkInterface.sendGetRequestAsync(e,r);let i,a;if(KI(n.body))i=n.body,a=i.metadata,this.logger.verbosePii(`tenant_discovery_endpoint is: ${i.tenant_discovery_endpoint}`);else if(WI(n.body)){if(this.logger.warning(`A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: ${n.status}`),i=n.body,i.error===j.INVALID_INSTANCE)return this.logger.error("The CloudInstanceDiscoveryErrorResponse error is invalid_instance."),null;this.logger.warning(`The CloudInstanceDiscoveryErrorResponse error is ${i.error}`),this.logger.warning(`The CloudInstanceDiscoveryErrorResponse error description is ${i.error_description}`),this.logger.warning("Setting the value of the CloudInstanceDiscoveryMetadata (returned from the network) to []"),a=[]}else return this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse"),null;this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request."),o=Ju(a,this.hostnameAndPort)}catch(n){if(n instanceof We)this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata. +Error: ${n.errorCode} +Error Description: ${n.errorMessage}`);else{const i=n;this.logger.error(`A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata. +Error: ${i.name} +Error Description: ${i.message}`)}return null}return o||(this.logger.warning("The developer's authority was not found within the CloudInstanceDiscoveryMetadata returned from the network request."),this.logger.verbose("Creating custom Authority for custom domain scenario."),o=Lt.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),o}isInKnownAuthorities(){return this.authorityOptions.knownAuthorities.filter(r=>r&&Se.getDomainFromUrl(r).toLowerCase()===this.hostnameAndPort).length>0}static generateAuthority(e,r){let o;if(r&&r.azureCloudInstance!==ev.None){const n=r.tenant?r.tenant:j.DEFAULT_COMMON_TENANT;o=`${r.azureCloudInstance}/${n}/`}return o||e}static createCloudDiscoveryMetadataFromHost(e){return{preferred_network:e,preferred_cache:e,aliases:[e]}}getPreferredCache(){if(this.discoveryComplete())return this.metadata.preferred_cache;throw X(Fo)}isAlias(e){return this.metadata.aliases.indexOf(e)>-1}isAliasOfKnownMicrosoftAuthority(e){return DS.has(e)}static isPublicCloudAuthority(e){return j.KNOWN_PUBLIC_CLOUDS.indexOf(e)>=0}static buildRegionalAuthorityString(e,r,o){const n=new Se(e);n.validateAsUri();const i=n.getUrlComponents();let a=`${r}.${i.HostNameAndPort}`;this.isPublicCloudAuthority(i.HostNameAndPort)&&(a=`${r}.${j.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX}`);const s=Se.constructAuthorityUriFromObject({...n.getUrlComponents(),HostNameAndPort:a}).urlString;return o?`${s}?${o}`:s}static replaceWithRegionalInformation(e,r){const o={...e};return o.authorization_endpoint=Lt.buildRegionalAuthorityString(o.authorization_endpoint,r),o.token_endpoint=Lt.buildRegionalAuthorityString(o.token_endpoint,r),o.end_session_endpoint&&(o.end_session_endpoint=Lt.buildRegionalAuthorityString(o.end_session_endpoint,r)),o}static transformCIAMAuthority(e){let r=e;const n=new Se(e).getUrlComponents();if(n.PathSegments.length===0&&n.HostNameAndPort.endsWith(j.CIAM_AUTH_URL)){const i=n.HostNameAndPort.split(".")[0];r=`${r}${i}${j.AAD_TENANT_DOMAIN_SUFFIX}`}return r}}Lt.reservedTenantDomains=new Set(["{tenant}","{tenantid}",An.COMMON,An.CONSUMERS,An.ORGANIZATIONS]);function GI(t){const o=new Se(t).getUrlComponents().PathSegments.slice(-1)[0].toLowerCase();switch(o){case An.COMMON:case An.ORGANIZATIONS:case An.CONSUMERS:return;default:return o}}function qS(t){return t.endsWith(j.FORWARD_SLASH)?t:`${t}${j.FORWARD_SLASH}`}function XI(t){const e=t.cloudDiscoveryMetadata;let r;if(e)try{r=JSON.parse(e)}catch{throw Re(nv)}return{canonicalAuthority:t.authority?qS(t.authority):void 0,knownAuthorities:t.knownAuthorities,cloudDiscoveryMetadata:r}}/*! @azure/msal-common v14.6.1 2024-01-23 */async function tf(t,e,r,o,n,i,a){a?.addQueueMeasurement(A.AuthorityFactoryCreateDiscoveredInstance,i);const s=Lt.transformCIAMAuthority(qS(t)),l=new Lt(s,e,r,o,n,i,a);try{return await te(l.resolveEndpointsAsync.bind(l),A.AuthorityResolveEndpointsAsync,n,a,i)(),l}catch{throw X(Fo)}}const YI=Object.freeze(Object.defineProperty({__proto__:null,createDiscoveredInstance:tf},Symbol.toStringTag,{value:"Module"}));/*! @azure/msal-common v14.6.1 2024-01-23 */class cv{constructor(e,r){this.config=iI(e),this.logger=new Ln(this.config.loggerOptions,bS,Jm),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.networkManager=new sI(this.networkClient,this.cacheManager),this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=r}createTokenRequestHeaders(e){const r={};if(r[_o.CONTENT_TYPE]=j.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&e)switch(e.type){case br.HOME_ACCOUNT_ID:try{const o=ga(e.credential);r[_o.CCS_HEADER]=`Oid:${o.uid}@${o.utid}`}catch(o){this.logger.verbose("Could not parse home account ID for CCS Header: "+o)}break;case br.UPN:r[_o.CCS_HEADER]=`UPN: ${e.credential}`;break}return r}async executePostToTokenEndpoint(e,r,o,n,i,a){a&&this.performanceClient?.addQueueMeasurement(a,i);const s=await this.networkManager.sendPostRequest(n,e,{body:r,headers:o});return this.performanceClient?.addFields({refreshTokenSize:s.body.refresh_token?.length||0,httpVerToken:s.headers?.[_o.X_MS_HTTP_VERSION]||""},i),this.config.serverTelemetryManager&&s.status<500&&s.status!==429&&this.config.serverTelemetryManager.clearTelemetryCache(),s}async updateAuthority(e,r){this.performanceClient?.addQueueMeasurement(A.UpdateTokenEndpointAuthority,r);const o=`https://${e}/${this.authority.tenant}/`,n=await tf(o,this.networkClient,this.cacheManager,this.authority.options,this.logger,r,this.performanceClient);this.authority=n}createTokenQueryParameters(e){const r=new Js;return e.tokenQueryParameters&&r.addExtraQueryParameters(e.tokenQueryParameters),r.createQueryString()}}/*! @azure/msal-common v14.6.1 2024-01-23 */const ed="no_tokens_found",LS="native_account_unavailable",uv="refresh_token_expired",ZI="interaction_required",QI="consent_required",JI="login_required",rf="bad_token";/*! @azure/msal-common v14.6.1 2024-01-23 */const q0=[ZI,QI,JI,rf],eR=["message_only","additional_action","basic_action","user_password_expired","consent_required","bad_token"],tR={[ed]:"No refresh token found in the cache. Please sign-in.",[LS]:"The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API.",[uv]:"Refresh token has expired.",[rf]:"Identity provider returned bad_token due to an expired or invalid refresh token. Please invoke an interactive API to resolve."};class so extends We{constructor(e,r,o,n,i,a,s){super(e,r,o),Object.setPrototypeOf(this,so.prototype),this.timestamp=n||j.EMPTY_STRING,this.traceId=i||j.EMPTY_STRING,this.correlationId=a||j.EMPTY_STRING,this.claims=s||j.EMPTY_STRING,this.name="InteractionRequiredAuthError"}}function L0(t,e,r){const o=!!t&&q0.indexOf(t)>-1,n=!!r&&eR.indexOf(r)>-1,i=!!e&&q0.some(a=>e.indexOf(a)>-1);return o||i||n}function Cg(t){return new so(t,tR[t])}/*! @azure/msal-common v14.6.1 2024-01-23 */class Ea{constructor(e,r,o,n,i){this.account=e||null,this.idToken=r||null,this.accessToken=o||null,this.refreshToken=n||null,this.appMetadata=i||null}}/*! @azure/msal-common v14.6.1 2024-01-23 */class oo{static setRequestState(e,r,o){const n=oo.generateLibraryState(e,o);return r?`${n}${j.RESOURCE_DELIM}${r}`:n}static generateLibraryState(e,r){if(!e)throw X(kg);const o={id:e.createNewGuid()};r&&(o.meta=r);const n=JSON.stringify(o);return e.base64Encode(n)}static parseRequestState(e,r){if(!e)throw X(kg);if(!r)throw X(Ua);try{const o=r.split(j.RESOURCE_DELIM),n=o[0],i=o.length>1?o.slice(1).join(j.RESOURCE_DELIM):j.EMPTY_STRING,a=e.base64Decode(n),s=JSON.parse(a);return{userRequestState:i||j.EMPTY_STRING,libraryState:s}}catch{throw X(Ua)}}}/*! @azure/msal-common v14.6.1 2024-01-23 */const rR={SW:"sw",UHW:"uhw"};class Wa{constructor(e,r){this.cryptoUtils=e,this.performanceClient=r}async generateCnf(e,r){this.performanceClient?.addQueueMeasurement(A.PopTokenGenerateCnf,e.correlationId);const o=await te(this.generateKid.bind(this),A.PopTokenGenerateCnf,r,this.performanceClient,e.correlationId)(e),n=this.cryptoUtils.base64Encode(JSON.stringify(o));return{kid:o.kid,reqCnfString:n,reqCnfHash:await this.cryptoUtils.hashString(n)}}async generateKid(e){return this.performanceClient?.addQueueMeasurement(A.PopTokenGenerateKid,e.correlationId),{kid:await this.cryptoUtils.getPublicKeyThumbprint(e),xms_ksl:rR.SW}}async signPopToken(e,r,o){return this.signPayload(e,r,o)}async signPayload(e,r,o,n){const{resourceRequestMethod:i,resourceRequestUri:a,shrClaims:s,shrNonce:l,shrOptions:c}=o,d=(a?new Se(a):void 0)?.getUrlComponents();return this.cryptoUtils.signJwt({at:e,ts:Qt.nowSeconds(),m:i?.toUpperCase(),u:d?.HostNameAndPort,nonce:l||this.cryptoUtils.createNewGuid(),p:d?.AbsolutePath,q:d?.QueryString?[[],d.QueryString]:void 0,client_claims:s||void 0,...n},r,c,o.correlationId)}}/*! @azure/msal-common v14.6.1 2024-01-23 */class oR{constructor(e,r){this.cache=e,this.hasChanged=r}get cacheHasChanged(){return this.hasChanged}get tokenCache(){return this.cache}}/*! @azure/msal-common v14.6.1 2024-01-23 */class Ri{constructor(e,r,o,n,i,a,s){this.clientId=e,this.cacheStorage=r,this.cryptoObj=o,this.logger=n,this.serializableCache=i,this.persistencePlugin=a,this.performanceClient=s}validateServerAuthorizationCodeResponse(e,r){if(!e.state||!r)throw e.state?X(Xu,"Cached State"):X(Xu,"Server State");let o,n;try{o=decodeURIComponent(e.state)}catch{throw X(Ua,e.state)}try{n=decodeURIComponent(r)}catch{throw X(Ua,e.state)}if(o!==n)throw X(aS);if(e.error||e.error_description||e.suberror)throw L0(e.error,e.error_description,e.suberror)?new so(e.error||"",e.error_description,e.suberror,e.timestamp||"",e.trace_id||"",e.correlation_id||"",e.claims||""):new Hn(e.error||"",e.error_description,e.suberror)}validateTokenResponse(e,r){if(e.error||e.error_description||e.suberror){const o=`${e.error_codes} - [${e.timestamp}]: ${e.error_description} - Correlation ID: ${e.correlation_id} - Trace ID: ${e.trace_id}`,n=new Hn(e.error,o,e.suberror);if(r&&e.status&&e.status>=Cc.SERVER_ERROR_RANGE_START&&e.status<=Cc.SERVER_ERROR_RANGE_END){this.logger.warning(`executeTokenRequest:validateTokenResponse - AAD is currently unavailable and the access token is unable to be refreshed. +${n}`);return}else if(r&&e.status&&e.status>=Cc.CLIENT_ERROR_RANGE_START&&e.status<=Cc.CLIENT_ERROR_RANGE_END){this.logger.warning(`executeTokenRequest:validateTokenResponse - AAD is currently available but is unable to refresh the access token. +${n}`);return}throw L0(e.error,e.error_description,e.suberror)?new so(e.error,e.error_description,e.suberror,e.timestamp||j.EMPTY_STRING,e.trace_id||j.EMPTY_STRING,e.correlation_id||j.EMPTY_STRING,e.claims||j.EMPTY_STRING):n}}async handleServerTokenResponse(e,r,o,n,i,a,s,l,c){this.performanceClient?.addQueueMeasurement(A.HandleServerTokenResponse,e.correlation_id);let u;if(e.id_token){if(u=Ui(e.id_token||j.EMPTY_STRING,this.cryptoObj.base64Decode),i&&i.nonce&&u.nonce!==i.nonce)throw X(sS);if(n.maxAge||n.maxAge===0){const g=u.auth_time;if(!g)throw X(Xm);yS(g,n.maxAge)}}this.homeAccountIdentifier=Ct.generateHomeAccountId(e.client_info||j.EMPTY_STRING,r.authorityType,this.logger,this.cryptoObj,u);let d;i&&i.state&&(d=oo.parseRequestState(this.cryptoObj,i.state)),e.key_id=e.key_id||n.sshKid||void 0;const f=this.generateCacheRecord(e,r,o,n,u,a,i);let h;try{if(this.persistencePlugin&&this.serializableCache&&(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),h=new oR(this.serializableCache,!0),await this.persistencePlugin.beforeCacheAccess(h)),s&&!l&&f.account){const g=f.account.generateAccountKey();if(!this.cacheStorage.getAccount(g,this.logger))return this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),await Ri.generateAuthenticationResult(this.cryptoObj,r,f,!1,n,u,d,void 0,c)}await this.cacheStorage.saveCacheRecord(f,n.storeInCache)}finally{this.persistencePlugin&&this.serializableCache&&h&&(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),await this.persistencePlugin.afterCacheAccess(h))}return Ri.generateAuthenticationResult(this.cryptoObj,r,f,!1,n,u,d,e,c)}generateCacheRecord(e,r,o,n,i,a,s){const l=r.getPreferredCache();if(!l)throw X(Zm);const c=MS(i);let u,d;e.id_token&&i&&(u=Zd(this.homeAccountIdentifier,l,e.id_token,this.clientId,c||""),d=dv(this.cacheStorage,r,this.homeAccountIdentifier,i,this.cryptoObj.base64Decode,e.client_info,l,c,s,void 0,this.logger));let f=null;if(e.access_token){const m=e.scope?gt.fromString(e.scope):new gt(n.scopes||[]),w=(typeof e.expires_in=="string"?parseInt(e.expires_in,10):e.expires_in)||0,v=(typeof e.ext_expires_in=="string"?parseInt(e.ext_expires_in,10):e.ext_expires_in)||0,p=(typeof e.refresh_in=="string"?parseInt(e.refresh_in,10):e.refresh_in)||void 0,b=o+w,k=b+v,x=p&&p>0?o+p:void 0;f=Qd(this.homeAccountIdentifier,l,e.access_token,this.clientId,c||r.tenant,m.printScopes(),b,k,this.cryptoObj.base64Decode,x,e.token_type,a,e.key_id,n.claims,n.requestedClaimsHash)}let h=null;if(e.refresh_token){let m;if(e.refresh_token_expires_in){const w=typeof e.refresh_token_expires_in=="string"?parseInt(e.refresh_token_expires_in,10):e.refresh_token_expires_in;m=o+w}h=wS(this.homeAccountIdentifier,l,e.refresh_token,this.clientId,e.foci,a,m)}let g=null;return e.foci&&(g={clientId:this.clientId,environment:l,familyId:e.foci}),new Ea(d,u,f,h,g)}static async generateAuthenticationResult(e,r,o,n,i,a,s,l,c){let u=j.EMPTY_STRING,d=[],f=null,h,g,m=j.EMPTY_STRING;if(o.accessToken){if(o.accessToken.tokenType===Ee.POP){const b=new Wa(e),{secret:k,keyId:x}=o.accessToken;if(!x)throw X(Qm);u=await b.signPopToken(k,x,i)}else u=o.accessToken.secret;d=gt.fromString(o.accessToken.target).asArray(),f=new Date(Number(o.accessToken.expiresOn)*1e3),h=new Date(Number(o.accessToken.extendedExpiresOn)*1e3),o.accessToken.refreshOn&&(g=new Date(Number(o.accessToken.refreshOn)*1e3))}o.appMetadata&&(m=o.appMetadata.familyId===Zs?Zs:"");const w=a?.oid||a?.sub||"",v=a?.tid||"";l?.spa_accountid&&o.account&&(o.account.nativeAccountId=l?.spa_accountid);const p=o.account?sv(o.account.getAccountInfo(),void 0,a):null;return{authority:r.canonicalAuthority,uniqueId:w,tenantId:v,scopes:d,account:p,idToken:o?.idToken?.secret||"",idTokenClaims:a||{},accessToken:u,fromCache:n,expiresOn:f,extExpiresOn:h,refreshOn:g,correlationId:i.correlationId,requestId:c||j.EMPTY_STRING,familyId:m,tokenType:o.accessToken?.tokenType||j.EMPTY_STRING,state:s?s.userRequestState:j.EMPTY_STRING,cloudGraphHostName:o.account?.cloudGraphHostName||j.EMPTY_STRING,msGraphHost:o.account?.msGraphHost||j.EMPTY_STRING,code:l?.spa_code,fromNativeBroker:!1}}}function dv(t,e,r,o,n,i,a,s,l,c,u){u?.verbose("setCachedAccount called");const f=t.getAccountKeys().find(w=>w.startsWith(r));let h=null;f&&(h=t.getAccount(f,u));const g=h||Ct.createAccount({homeAccountId:r,idTokenClaims:o,clientInfo:i,environment:a,cloudGraphHostName:l?.cloud_graph_host_name,msGraphHost:l?.msgraph_host,nativeAccountId:c},e,n),m=g.tenantProfiles||[];if(s&&!m.find(w=>w.tenantId===s)){const w=av(r,o);m.push(w)}return g.tenantProfiles=m,g}/*! @azure/msal-common v14.6.1 2024-01-23 */class HS extends cv{constructor(e,r){super(e,r),this.includeRedirectUri=!0,this.oidcDefaultScopes=this.config.authOptions.authority.options.OIDCOptions?.defaultScopes}async getAuthCodeUrl(e){this.performanceClient?.addQueueMeasurement(A.GetAuthCodeUrl,e.correlationId);const r=await te(this.createAuthCodeUrlQueryString.bind(this),A.AuthClientCreateQueryString,this.logger,this.performanceClient,e.correlationId)(e);return Se.appendQueryString(this.authority.authorizationEndpoint,r)}async acquireToken(e,r){if(this.performanceClient?.addQueueMeasurement(A.AuthClientAcquireToken,e.correlationId),!e.code)throw X(uS);const o=Qt.nowSeconds(),n=await te(this.executeTokenRequest.bind(this),A.AuthClientExecuteTokenRequest,this.logger,this.performanceClient,e.correlationId)(this.authority,e),i=n.headers?.[_o.X_MS_REQUEST_ID],a=new Ri(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin,this.performanceClient);return a.validateTokenResponse(n.body),te(a.handleServerTokenResponse.bind(a),A.HandleServerTokenResponse,this.logger,this.performanceClient,e.correlationId)(n.body,this.authority,o,e,r,void 0,void 0,void 0,i)}handleFragmentResponse(e,r){if(new Ri(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null).validateServerAuthorizationCodeResponse(e,r),!e.code)throw X(pS);return e}getLogoutUri(e){if(!e)throw Re(ES);const r=this.createLogoutUrlQueryString(e);return Se.appendQueryString(this.authority.endSessionEndpoint,r)}async executeTokenRequest(e,r){this.performanceClient?.addQueueMeasurement(A.AuthClientExecuteTokenRequest,r.correlationId);const o=this.createTokenQueryParameters(r),n=Se.appendQueryString(e.tokenEndpoint,o),i=await te(this.createTokenRequestBody.bind(this),A.AuthClientCreateTokenRequestBody,this.logger,this.performanceClient,r.correlationId)(r);let a;if(r.clientInfo)try{const c=Zu(r.clientInfo,this.cryptoUtils.base64Decode);a={credential:`${c.uid}${Ht.CLIENT_INFO_SEPARATOR}${c.utid}`,type:br.HOME_ACCOUNT_ID}}catch(c){this.logger.verbose("Could not parse client info for CCS Header: "+c)}const s=this.createTokenRequestHeaders(a||r.ccsCredential),l={clientId:r.tokenBodyParameters?.clientId||this.config.authOptions.clientId,authority:e.canonicalAuthority,scopes:r.scopes,claims:r.claims,authenticationScheme:r.authenticationScheme,resourceRequestMethod:r.resourceRequestMethod,resourceRequestUri:r.resourceRequestUri,shrClaims:r.shrClaims,sshKid:r.sshKid};return te(this.executePostToTokenEndpoint.bind(this),A.AuthorizationCodeClientExecutePostToTokenEndpoint,this.logger,this.performanceClient,r.correlationId)(n,i,s,l,r.correlationId,A.AuthorizationCodeClientExecutePostToTokenEndpoint)}async createTokenRequestBody(e){this.performanceClient?.addQueueMeasurement(A.AuthClientCreateTokenRequestBody,e.correlationId);const r=new Js;if(r.addClientId(e.tokenBodyParameters?.[Ka]||this.config.authOptions.clientId),this.includeRedirectUri?r.addRedirectUri(e.redirectUri):ii.validateRedirectUri(e.redirectUri),r.addScopes(e.scopes,!0,this.oidcDefaultScopes),r.addAuthorizationCode(e.code),r.addLibraryInfo(this.config.libraryInfo),r.addApplicationTelemetry(this.config.telemetry.application),r.addThrottling(),this.serverTelemetryManager&&!xg(this.config)&&r.addServerTelemetry(this.serverTelemetryManager),e.codeVerifier&&r.addCodeVerifier(e.codeVerifier),this.config.clientCredentials.clientSecret&&r.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion){const i=this.config.clientCredentials.clientAssertion;r.addClientAssertion(i.assertion),r.addClientAssertionType(i.assertionType)}if(r.addGrantType(Jk.AUTHORIZATION_CODE_GRANT),r.addClientInfo(),e.authenticationScheme===Ee.POP){const i=new Wa(this.cryptoUtils,this.performanceClient),a=await te(i.generateCnf.bind(i),A.PopTokenGenerateCnf,this.logger,this.performanceClient,e.correlationId)(e,this.logger);r.addPopToken(a.reqCnfString)}else if(e.authenticationScheme===Ee.SSH)if(e.sshJwk)r.addSshJwk(e.sshJwk);else throw Re(Jd);const o=e.correlationId||this.config.cryptoInterface.createNewGuid();r.addCorrelationId(o),(!ro.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&r.addClaims(e.claims,this.config.authOptions.clientCapabilities);let n;if(e.clientInfo)try{const i=Zu(e.clientInfo,this.cryptoUtils.base64Decode);n={credential:`${i.uid}${Ht.CLIENT_INFO_SEPARATOR}${i.utid}`,type:br.HOME_ACCOUNT_ID}}catch(i){this.logger.verbose("Could not parse client info for CCS Header: "+i)}else n=e.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&n)switch(n.type){case br.HOME_ACCOUNT_ID:try{const i=ga(n.credential);r.addCcsOid(i)}catch(i){this.logger.verbose("Could not parse home account ID for CCS Header: "+i)}break;case br.UPN:r.addCcsUpn(n.credential);break}return e.tokenBodyParameters&&r.addExtraQueryParameters(e.tokenBodyParameters),e.enableSpaAuthorizationCode&&(!e.tokenBodyParameters||!e.tokenBodyParameters[F0])&&r.addExtraQueryParameters({[F0]:"1"}),r.createQueryString()}async createAuthCodeUrlQueryString(e){this.performanceClient?.addQueueMeasurement(A.AuthClientCreateQueryString,e.correlationId);const r=new Js;r.addClientId(e.extraQueryParameters?.[Ka]||this.config.authOptions.clientId);const o=[...e.scopes||[],...e.extraScopesToConsent||[]];r.addScopes(o,!0,this.oidcDefaultScopes),r.addRedirectUri(e.redirectUri);const n=e.correlationId||this.config.cryptoInterface.createNewGuid();if(r.addCorrelationId(n),r.addResponseMode(e.responseMode),r.addResponseTypeCode(),r.addLibraryInfo(this.config.libraryInfo),xg(this.config)||r.addApplicationTelemetry(this.config.telemetry.application),r.addClientInfo(),e.codeChallenge&&e.codeChallengeMethod&&r.addCodeChallengeParams(e.codeChallenge,e.codeChallengeMethod),e.prompt&&r.addPrompt(e.prompt),e.domainHint&&r.addDomainHint(e.domainHint),e.prompt!==Kt.SELECT_ACCOUNT)if(e.sid&&e.prompt===Kt.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),r.addSid(e.sid);else if(e.account){const i=this.extractAccountSid(e.account),a=this.extractLoginHint(e.account);if(a){this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),r.addLoginHint(a);try{const s=ga(e.account.homeAccountId);r.addCcsOid(s)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(i&&e.prompt===Kt.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),r.addSid(i);try{const s=ga(e.account.homeAccountId);r.addCcsOid(s)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(e.loginHint)this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"),r.addLoginHint(e.loginHint),r.addCcsUpn(e.loginHint);else if(e.account.username){this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),r.addLoginHint(e.account.username);try{const s=ga(e.account.homeAccountId);r.addCcsOid(s)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}}else e.loginHint&&(this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"),r.addLoginHint(e.loginHint),r.addCcsUpn(e.loginHint));else this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");if(e.nonce&&r.addNonce(e.nonce),e.state&&r.addState(e.state),(e.claims||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&r.addClaims(e.claims,this.config.authOptions.clientCapabilities),e.extraQueryParameters&&r.addExtraQueryParameters(e.extraQueryParameters),e.nativeBroker&&(r.addNativeBroker(),e.authenticationScheme===Ee.POP)){const i=new Wa(this.cryptoUtils),a=await te(i.generateCnf.bind(i),A.PopTokenGenerateCnf,this.logger,this.performanceClient,e.correlationId)(e,this.logger);r.addPopToken(a.reqCnfHash)}return r.createQueryString()}createLogoutUrlQueryString(e){const r=new Js;return e.postLogoutRedirectUri&&r.addPostLogoutRedirectUri(e.postLogoutRedirectUri),e.correlationId&&r.addCorrelationId(e.correlationId),e.idTokenHint&&r.addIdTokenHint(e.idTokenHint),e.state&&r.addState(e.state),e.logoutHint&&r.addLogoutHint(e.logoutHint),e.extraQueryParameters&&r.addExtraQueryParameters(e.extraQueryParameters),r.createQueryString()}extractAccountSid(e){return e.idTokenClaims?.sid||null}extractLoginHint(e){return e.idTokenClaims?.login_hint||null}}/*! @azure/msal-common v14.6.1 2024-01-23 */const nR=300;class Tg extends cv{constructor(e,r){super(e,r)}async acquireToken(e){this.performanceClient?.addQueueMeasurement(A.RefreshTokenClientAcquireToken,e.correlationId);const r=Qt.nowSeconds(),o=await te(this.executeTokenRequest.bind(this),A.RefreshTokenClientExecuteTokenRequest,this.logger,this.performanceClient,e.correlationId)(e,this.authority),n=o.headers?.[_o.X_MS_REQUEST_ID],i=new Ri(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin);return i.validateTokenResponse(o.body),te(i.handleServerTokenResponse.bind(i),A.HandleServerTokenResponse,this.logger,this.performanceClient,e.correlationId)(o.body,this.authority,r,e,void 0,void 0,!0,e.forceCache,n)}async acquireTokenByRefreshToken(e){if(!e)throw Re(TS);if(this.performanceClient?.addQueueMeasurement(A.RefreshTokenClientAcquireTokenByRefreshToken,e.correlationId),!e.account)throw X(Ym);if(this.cacheManager.isAppMetadataFOCI(e.account.environment))try{return await te(this.acquireTokenWithCachedRefreshToken.bind(this),A.RefreshTokenClientAcquireTokenWithCachedRefreshToken,this.logger,this.performanceClient,e.correlationId)(e,!0)}catch(o){const n=o instanceof so&&o.errorCode===ed,i=o instanceof Hn&&o.errorCode===C0.INVALID_GRANT_ERROR&&o.subError===C0.CLIENT_MISMATCH_ERROR;if(n||i)return te(this.acquireTokenWithCachedRefreshToken.bind(this),A.RefreshTokenClientAcquireTokenWithCachedRefreshToken,this.logger,this.performanceClient,e.correlationId)(e,!1);throw o}return te(this.acquireTokenWithCachedRefreshToken.bind(this),A.RefreshTokenClientAcquireTokenWithCachedRefreshToken,this.logger,this.performanceClient,e.correlationId)(e,!1)}async acquireTokenWithCachedRefreshToken(e,r){this.performanceClient?.addQueueMeasurement(A.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId);const o=$i(this.cacheManager.getRefreshToken.bind(this.cacheManager),A.CacheManagerGetRefreshToken,this.logger,this.performanceClient,e.correlationId)(e.account,r,void 0,this.performanceClient,e.correlationId);if(!o)throw Cg(ed);if(o.expiresOn&&Qt.isTokenExpired(o.expiresOn,e.refreshTokenExpirationOffsetSeconds||nR))throw Cg(uv);const n={...e,refreshToken:o.secret,authenticationScheme:e.authenticationScheme||Ee.BEARER,ccsCredential:{credential:e.account.homeAccountId,type:br.HOME_ACCOUNT_ID}};try{return await te(this.acquireToken.bind(this),A.RefreshTokenClientAcquireToken,this.logger,this.performanceClient,e.correlationId)(n)}catch(i){if(i instanceof so&&i.subError===rf){this.logger.verbose("acquireTokenWithRefreshToken: bad refresh token, removing from cache");const a=ha(o);this.cacheManager.removeRefreshToken(a)}throw i}}async executeTokenRequest(e,r){this.performanceClient?.addQueueMeasurement(A.RefreshTokenClientExecuteTokenRequest,e.correlationId);const o=this.createTokenQueryParameters(e),n=Se.appendQueryString(r.tokenEndpoint,o),i=await te(this.createTokenRequestBody.bind(this),A.RefreshTokenClientCreateTokenRequestBody,this.logger,this.performanceClient,e.correlationId)(e),a=this.createTokenRequestHeaders(e.ccsCredential),s={clientId:e.tokenBodyParameters?.clientId||this.config.authOptions.clientId,authority:r.canonicalAuthority,scopes:e.scopes,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid};return te(this.executePostToTokenEndpoint.bind(this),A.RefreshTokenClientExecutePostToTokenEndpoint,this.logger,this.performanceClient,e.correlationId)(n,i,a,s,e.correlationId,A.RefreshTokenClientExecutePostToTokenEndpoint)}async createTokenRequestBody(e){this.performanceClient?.addQueueMeasurement(A.RefreshTokenClientCreateTokenRequestBody,e.correlationId);const r=e.correlationId,o=new Js;if(o.addClientId(e.tokenBodyParameters?.[Ka]||this.config.authOptions.clientId),e.redirectUri&&o.addRedirectUri(e.redirectUri),o.addScopes(e.scopes,!0,this.config.authOptions.authority.options.OIDCOptions?.defaultScopes),o.addGrantType(Jk.REFRESH_TOKEN_GRANT),o.addClientInfo(),o.addLibraryInfo(this.config.libraryInfo),o.addApplicationTelemetry(this.config.telemetry.application),o.addThrottling(),this.serverTelemetryManager&&!xg(this.config)&&o.addServerTelemetry(this.serverTelemetryManager),o.addCorrelationId(r),o.addRefreshToken(e.refreshToken),this.config.clientCredentials.clientSecret&&o.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion){const n=this.config.clientCredentials.clientAssertion;o.addClientAssertion(n.assertion),o.addClientAssertionType(n.assertionType)}if(e.authenticationScheme===Ee.POP){const n=new Wa(this.cryptoUtils,this.performanceClient),i=await te(n.generateCnf.bind(n),A.PopTokenGenerateCnf,this.logger,this.performanceClient,e.correlationId)(e,this.logger);o.addPopToken(i.reqCnfString)}else if(e.authenticationScheme===Ee.SSH)if(e.sshJwk)o.addSshJwk(e.sshJwk);else throw Re(Jd);if((!ro.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&o.addClaims(e.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&e.ccsCredential)switch(e.ccsCredential.type){case br.HOME_ACCOUNT_ID:try{const n=ga(e.ccsCredential.credential);o.addCcsOid(n)}catch(n){this.logger.verbose("Could not parse home account ID for CCS Header: "+n)}break;case br.UPN:o.addCcsUpn(e.ccsCredential.credential);break}return e.tokenBodyParameters&&o.addExtraQueryParameters(e.tokenBodyParameters),o.createQueryString()}}/*! @azure/msal-common v14.6.1 2024-01-23 */class iR extends cv{constructor(e,r){super(e,r)}async acquireToken(e){try{const[r,o]=await this.acquireCachedToken(e);return o===wn.PROACTIVELY_REFRESHED&&(this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'. It's not expired, but must be refreshed."),new Tg(this.config,this.performanceClient).acquireTokenByRefreshToken(e).catch(()=>{})),r}catch(r){if(r instanceof Yd&&r.errorCode===Bn)return new Tg(this.config,this.performanceClient).acquireTokenByRefreshToken(e);throw r}}async acquireCachedToken(e){this.performanceClient?.addQueueMeasurement(A.SilentFlowClientAcquireCachedToken,e.correlationId);let r=wn.NOT_APPLICABLE;if(e.forceRefresh||!this.config.cacheOptions.claimsBasedCachingEnabled&&!ro.isEmptyObj(e.claims))throw this.setCacheOutcome(wn.FORCE_REFRESH_OR_CLAIMS,e.correlationId),X(Bn);if(!e.account)throw X(Ym);const o=e.account.tenantId||GI(e.authority),n=this.cacheManager.getTokenKeys(),i=this.cacheManager.getAccessToken(e.account,e,n,o,this.performanceClient,e.correlationId);if(i){if(Qt.wasClockTurnedBack(i.cachedAt)||Qt.isTokenExpired(i.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw this.setCacheOutcome(wn.CACHED_ACCESS_TOKEN_EXPIRED,e.correlationId),X(Bn);i.refreshOn&&Qt.isTokenExpired(i.refreshOn,0)&&(r=wn.PROACTIVELY_REFRESHED)}else throw this.setCacheOutcome(wn.NO_CACHED_ACCESS_TOKEN,e.correlationId),X(Bn);const a=e.authority||this.authority.getPreferredCache(),s={account:this.cacheManager.readAccountFromCache(e.account),accessToken:i,idToken:this.cacheManager.getIdToken(e.account,n,o,this.performanceClient,e.correlationId),refreshToken:null,appMetadata:this.cacheManager.readAppMetadataFromCache(a)};return this.setCacheOutcome(r,e.correlationId),this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[await te(this.generateResultFromCacheRecord.bind(this),A.SilentFlowClientGenerateResultFromCacheRecord,this.logger,this.performanceClient,e.correlationId)(s,e),r]}setCacheOutcome(e,r){this.serverTelemetryManager?.setCacheOutcome(e),this.performanceClient?.addFields({cacheOutcome:e},r),e!==wn.NOT_APPLICABLE&&this.logger.info(`Token refresh is required due to cache outcome: ${e}`)}async generateResultFromCacheRecord(e,r){this.performanceClient?.addQueueMeasurement(A.SilentFlowClientGenerateResultFromCacheRecord,r.correlationId);let o;if(e.idToken&&(o=Ui(e.idToken.secret,this.config.cryptoInterface.base64Decode)),r.maxAge||r.maxAge===0){const n=o?.auth_time;if(!n)throw X(Xm);yS(n,r.maxAge)}return Ri.generateAuthenticationResult(this.cryptoUtils,this.authority,e,!0,r,o)}}/*! @azure/msal-common v14.6.1 2024-01-23 */const aR={sendGetRequestAsync:()=>Promise.reject(X(ye)),sendPostRequestAsync:()=>Promise.reject(X(ye))};/*! @azure/msal-common v14.6.1 2024-01-23 */const US="missing_kid_error",$S="missing_alg_error";/*! @azure/msal-common v14.6.1 2024-01-23 */const sR={[US]:"The JOSE Header for the requested JWT, JWS or JWK object requires a keyId to be configured as the 'kid' header claim. No 'kid' value was provided.",[$S]:"The JOSE Header for the requested JWT, JWS or JWK object requires an algorithm to be specified as the 'alg' header claim. No 'alg' value was provided."};class fv extends We{constructor(e,r){super(e,r),this.name="JoseHeaderError",Object.setPrototypeOf(this,fv.prototype)}}function H0(t){return new fv(t,sR[t])}/*! @azure/msal-common v14.6.1 2024-01-23 */class hv{constructor(e){this.typ=e.typ,this.alg=e.alg,this.kid=e.kid}static getShrHeaderString(e){if(!e.kid)throw H0(US);if(!e.alg)throw H0($S);const r=new hv({typ:e.typ||yB.Pop,kid:e.kid,alg:e.alg});return JSON.stringify(r)}}/*! @azure/msal-common v14.6.1 2024-01-23 */class td{constructor(e,r){this.cacheOutcome=wn.NOT_APPLICABLE,this.cacheManager=r,this.apiId=e.apiId,this.correlationId=e.correlationId,this.wrapperSKU=e.wrapperSKU||j.EMPTY_STRING,this.wrapperVer=e.wrapperVer||j.EMPTY_STRING,this.telemetryCacheKey=Pt.CACHE_KEY+Ht.CACHE_KEY_SEPARATOR+e.clientId}generateCurrentRequestHeaderValue(){const e=`${this.apiId}${Pt.VALUE_SEPARATOR}${this.cacheOutcome}`,r=[this.wrapperSKU,this.wrapperVer].join(Pt.VALUE_SEPARATOR),o=this.getRegionDiscoveryFields(),n=[e,o].join(Pt.VALUE_SEPARATOR);return[Pt.SCHEMA_VERSION,n,r].join(Pt.CATEGORY_SEPARATOR)}generateLastRequestHeaderValue(){const e=this.getLastRequests(),r=td.maxErrorsToSend(e),o=e.failedRequests.slice(0,2*r).join(Pt.VALUE_SEPARATOR),n=e.errors.slice(0,r).join(Pt.VALUE_SEPARATOR),i=e.errors.length,a=r=Pt.MAX_CACHED_ERRORS&&(r.failedRequests.shift(),r.failedRequests.shift(),r.errors.shift()),r.failedRequests.push(this.apiId,this.correlationId),e instanceof Error&&e&&e.toString()?e instanceof We?e.subError?r.errors.push(e.subError):e.errorCode?r.errors.push(e.errorCode):r.errors.push(e.toString()):r.errors.push(e.toString()):r.errors.push(Pt.UNKNOWN_ERROR),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,r)}incrementCacheHits(){const e=this.getLastRequests();return e.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e),e.cacheHits}getLastRequests(){const e={failedRequests:[],errors:[],cacheHits:0};return this.cacheManager.getServerTelemetry(this.telemetryCacheKey)||e}clearTelemetryCache(){const e=this.getLastRequests(),r=td.maxErrorsToSend(e),o=e.errors.length;if(r===o)this.cacheManager.removeItem(this.telemetryCacheKey);else{const n={failedRequests:e.failedRequests.slice(r*2),errors:e.errors.slice(r),cacheHits:0};this.cacheManager.setServerTelemetry(this.telemetryCacheKey,n)}}static maxErrorsToSend(e){let r,o=0,n=0;const i=e.errors.length;for(r=0;rnull,discard:()=>{},add:()=>{},increment:()=>{},event:{eventId:this.generateId(),status:VI.InProgress,authority:"",libraryName:"",libraryVersion:"",clientId:"",name:e,startTimeMs:Date.now(),correlationId:r||""},measurement:new U0}}startPerformanceMeasurement(){return new U0}calculateQueuedTime(){return 0}addQueueMeasurement(){}setPreQueueTime(){}endMeasurement(){return null}discardMeasurements(){}removePerformanceCallback(){return!0}addPerformanceCallback(){return""}emitEvents(){}addFields(){}incrementFields(){}cacheEventByCorrelationId(){}}/*! @azure/msal-browser v3.7.1 2024-01-23 */const gv="pkce_not_created",KS="crypto_nonexistent",of="empty_navigate_uri",WS="hash_empty_error",pv="no_state_in_hash",VS="hash_does_not_contain_known_properties",GS="unable_to_parse_state",XS="state_interaction_type_mismatch",YS="interaction_in_progress",ZS="popup_window_error",QS="empty_window_error",Ai="user_cancelled",cR="monitor_popup_timeout",JS="monitor_window_timeout",e_="redirect_in_iframe",t_="block_iframe_reload",r_="block_nested_popups",uR="iframe_closed_prematurely",nf="silent_logout_unsupported",o_="no_account_error",n_="silent_prompt_value_error",i_="no_token_request_cache_error",a_="unable_to_parse_token_request_cache_error",mv="no_cached_authority_error",dR="auth_request_not_set_error",fR="invalid_cache_type",s_="non_browser_environment",la="database_not_open",rd="no_network_connectivity",l_="post_request_failed",c_="get_request_failed",Eg="failed_to_parse_response",$r="unable_to_load_token",vv="crypto_key_not_found",u_="auth_code_required",d_="auth_code_or_nativeAccountId_required",f_="spa_code_and_nativeAccountId_present",bv="database_unavailable",h_="unable_to_acquire_token_from_native_platform",g_="native_handshake_timeout",p_="native_extension_not_installed",oc="native_connection_not_established",m_="uninitialized_public_client_application",v_="native_prompt_not_supported",b_="invalid_base64_string";/*! @azure/msal-browser v3.7.1 2024-01-23 */const Mo="For more visit: aka.ms/msaljs/browser-errors",hR={[gv]:"The PKCE code challenge and verifier could not be generated.",[KS]:"The crypto object or function is not available.",[of]:"Navigation URI is empty. Please check stack trace for more info.",[WS]:`Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash. ${Mo}`,[pv]:"Hash does not contain state. Please verify that the request originated from msal.",[VS]:`Hash does not contain known properites. Please verify that your redirectUri is not changing the hash. ${Mo}`,[GS]:"Unable to parse state. Please verify that the request originated from msal.",[XS]:"Hash contains state but the interaction type does not match the caller.",[YS]:`Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API. ${Mo}`,[ZS]:"Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser.",[QS]:"window.open returned null or undefined window object.",[Ai]:"User cancelled the flow.",[cR]:`Token acquisition in popup failed due to timeout. ${Mo}`,[JS]:`Token acquisition in iframe failed due to timeout. ${Mo}`,[e_]:"Redirects are not supported for iframed or brokered applications. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs.",[t_]:`Request was blocked inside an iframe because MSAL detected an authentication response. ${Mo}`,[r_]:"Request was blocked inside a popup because MSAL detected it was running in a popup.",[uR]:"The iframe being monitored was closed prematurely.",[nf]:"Silent logout not supported. Please call logoutRedirect or logoutPopup instead.",[o_]:"No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request.",[n_]:"The value given for the prompt value is not valid for silent requests - must be set to 'none' or 'no_session'.",[i_]:"No token request found in cache.",[a_]:"The cached token request could not be parsed.",[mv]:"No cached authority found.",[dR]:"Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler",[fR]:"Invalid cache type",[s_]:"Login and token requests are not supported in non-browser environments.",[la]:"Database is not open!",[rd]:"No network connectivity. Check your internet connection.",[l_]:"Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'",[c_]:"Network request failed. Please check the network trace to determine root cause.",[Eg]:"Failed to parse network response. Check network trace.",[$r]:"Error loading token to cache.",[vv]:"Cryptographic Key or Keypair not found in browser storage.",[u_]:"An authorization code must be provided (as the `code` property on the request) to this flow.",[d_]:"An authorization code or nativeAccountId must be provided to this flow.",[f_]:"Request cannot contain both spa code and native account id.",[bv]:"IndexedDB, which is required for persistent cryptographic key storage, is unavailable. This may be caused by browser privacy features which block persistent storage in third-party contexts.",[h_]:`Unable to acquire token from native platform. ${Mo}`,[g_]:"Timed out while attempting to establish connection to browser extension",[p_]:"Native extension is not installed. If you think this is a mistake call the initialize function.",[oc]:`Connection to native platform has not been established. Please install a compatible browser extension and run initialize(). ${Mo}`,[m_]:`You must call and await the initialize function before attempting to call any other MSAL API. ${Mo}`,[v_]:"The provided prompt is not supported by the native platform. This request should be routed to the web based flow.",[b_]:"Invalid base64 encoded string."};class nc extends We{constructor(e){super(e,hR[e]),Object.setPrototypeOf(this,nc.prototype),this.name="BrowserAuthError"}}function re(t){return new nc(t)}/*! @azure/msal-browser v3.7.1 2024-01-23 */const Yr={INTERACTION_IN_PROGRESS_VALUE:"interaction_in_progress",INVALID_GRANT_ERROR:"invalid_grant",POPUP_WIDTH:483,POPUP_HEIGHT:600,POPUP_NAME_PREFIX:"msal",DEFAULT_POLL_INTERVAL_MS:30,MSAL_SKU:"msal.js.browser"},Ls={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"},pi={HandshakeRequest:"Handshake",HandshakeResponse:"HandshakeResponse",GetToken:"GetToken",Response:"Response"},St={LocalStorage:"localStorage",SessionStorage:"sessionStorage",MemoryStorage:"memoryStorage"},$0={GET:"GET",POST:"POST"},Ce={AUTHORITY:"authority",ACQUIRE_TOKEN_ACCOUNT:"acquireToken.account",SESSION_STATE:"session.state",REQUEST_STATE:"request.state",NONCE_IDTOKEN:"nonce.id_token",ORIGIN_URI:"request.origin",RENEW_STATUS:"token.renew.status",URL_HASH:"urlHash",REQUEST_PARAMS:"request.params",SCOPES:"scopes",INTERACTION_STATUS_KEY:"interaction.status",CCS_CREDENTIAL:"ccs.credential",CORRELATION_ID:"request.correlationId",NATIVE_REQUEST:"request.native",REDIRECT_CONTEXT:"request.redirect.context"},mn={ACCOUNT_KEYS:"msal.account.keys",TOKEN_KEYS:"msal.token.keys"},Rc={WRAPPER_SKU:"wrapper.sku",WRAPPER_VER:"wrapper.version"},Oe={acquireTokenRedirect:861,acquireTokenPopup:862,ssoSilent:863,acquireTokenSilent_authCode:864,handleRedirectPromise:865,acquireTokenByCode:866,acquireTokenSilent_silentFlow:61,logout:961,logoutPopup:962};var oe;(function(t){t.Redirect="redirect",t.Popup="popup",t.Silent="silent",t.None="none"})(oe||(oe={}));const ot={Startup:"startup",Login:"login",Logout:"logout",AcquireToken:"acquireToken",SsoSilent:"ssoSilent",HandleRedirect:"handleRedirect",None:"none"},K0={scopes:tc},y_="jwk",gR={React:"@azure/msal-react",Angular:"@azure/msal-angular"},Bg="msal.db",pR=1,mR=`${Bg}.keys`,Rr={Default:0,AccessToken:1,AccessTokenAndRefreshToken:2,RefreshToken:3,RefreshTokenAndNetwork:4,Skip:5},vR=[Rr.Default,Rr.Skip,Rr.RefreshTokenAndNetwork],bR="msal.browser.log.level",yR="msal.browser.log.pii";/*! @azure/msal-browser v3.7.1 2024-01-23 */function wR(t){t.location.hash="",typeof t.history.replaceState=="function"&&t.history.replaceState(null,"",`${t.location.origin}${t.location.pathname}${t.location.search}`)}function kR(t){const e=t.split("#");e.shift(),window.location.hash=e.length>0?e.join("#"):""}function yv(){return window.parent!==window}function SR(){return typeof window<"u"&&!!window.opener&&window.opener!==window&&typeof window.name=="string"&&window.name.indexOf(`${Yr.POPUP_NAME_PREFIX}.`)===0}function Wo(){return window.location.href.split("?")[0].split("#")[0]}function _R(){const e=new Se(window.location.href).getUrlComponents();return`${e.Protocol}//${e.HostNameAndPort}/`}function eh(){if(Se.hashContainsKnownProperties(window.location.hash)&&yv())throw re(t_)}function xR(t,e){const r=yv();if(t===oe.Redirect&&r&&!e)throw re(e_)}function CR(){if(SR())throw re(r_)}function TR(t){if(!t)throw re(s_)}function W0(t){if(!t)throw re(m_)}function w_(t){const e=document.createElement("link");e.rel="preconnect",e.href=new URL(t).origin,e.crossOrigin="anonymous",document.head.appendChild(e),window.setTimeout(()=>{try{document.head.removeChild(e)}catch{}},1e4)}const ER=function(){const e=typeof document<"u"&&document.createElement("link").relList;return e&&e.supports&&e.supports("modulepreload")?"modulepreload":"preload"}(),BR=function(t){return"/"+t},V0={},IR=function(e,r,o){let n=Promise.resolve();if(r&&r.length>0){const i=document.getElementsByTagName("link");n=Promise.all(r.map(a=>{if(a=BR(a),a in V0)return;V0[a]=!0;const s=a.endsWith(".css"),l=s?'[rel="stylesheet"]':"";if(!!o)for(let d=i.length-1;d>=0;d--){const f=i[d];if(f.href===a&&(!s||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${l}`))return;const u=document.createElement("link");if(u.rel=s?"stylesheet":ER,s||(u.as="script",u.crossOrigin=""),u.href=a,document.head.appendChild(u),s)return new Promise((d,f)=>{u.addEventListener("load",d),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${a}`)))})}))}return n.then(()=>e()).catch(i=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i})};/*! @azure/msal-browser v3.7.1 2024-01-23 */class od{navigateInternal(e,r){return od.defaultNavigateWindow(e,r)}navigateExternal(e,r){return od.defaultNavigateWindow(e,r)}static defaultNavigateWindow(e,r){return r.noHistory?window.location.replace(e):window.location.assign(e),new Promise(o=>{setTimeout(()=>{o(!0)},r.timeout)})}}/*! @azure/msal-browser v3.7.1 2024-01-23 */class RR{async sendGetRequestAsync(e,r){let o;try{o=await fetch(e,{method:$0.GET,headers:this.getFetchHeaders(r)})}catch{throw window.navigator.onLine?re(c_):re(rd)}try{return{headers:this.getHeaderDict(o.headers),body:await o.json(),status:o.status}}catch{throw re(Eg)}}async sendPostRequestAsync(e,r){const o=r&&r.body||j.EMPTY_STRING;let n;try{n=await fetch(e,{method:$0.POST,headers:this.getFetchHeaders(r),body:o})}catch{throw window.navigator.onLine?re(l_):re(rd)}try{return{headers:this.getHeaderDict(n.headers),body:await n.json(),status:n.status}}catch{throw re(Eg)}}getFetchHeaders(e){const r=new Headers;if(!(e&&e.headers))return r;const o=e.headers;return Object.keys(o).forEach(n=>{r.append(n,o[n])}),r}getHeaderDict(e){const r={};return e.forEach((o,n)=>{r[n]=o}),r}}/*! @azure/msal-browser v3.7.1 2024-01-23 */const AR=6e4,Ig=1e4,NR=3e4,PR=2e3;function zR({auth:t,cache:e,system:r,telemetry:o},n){const i={clientId:j.EMPTY_STRING,authority:`${j.DEFAULT_AUTHORITY}`,knownAuthorities:[],cloudDiscoveryMetadata:j.EMPTY_STRING,authorityMetadata:j.EMPTY_STRING,redirectUri:j.EMPTY_STRING,postLogoutRedirectUri:j.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:Yo.AAD,OIDCOptions:{serverResponseType:rc.FRAGMENT,defaultScopes:[j.OPENID_SCOPE,j.PROFILE_SCOPE,j.OFFLINE_ACCESS_SCOPE]},azureCloudOptions:{azureCloudInstance:ev.None,tenant:j.EMPTY_STRING},skipAuthorityMetadataCache:!1,supportsNestedAppAuth:!1},a={cacheLocation:St.SessionStorage,temporaryCacheLocation:St.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!!(e&&e.cacheLocation===St.LocalStorage),claimsBasedCachingEnabled:!1},s={loggerCallback:()=>{},logLevel:He.Info,piiLoggingEnabled:!1},c={...{...FS,loggerOptions:s,networkClient:n?new RR:aR,navigationClient:new od,loadFrameTimeout:0,windowHashTimeout:r?.loadFrameTimeout||AR,iframeHashTimeout:r?.loadFrameTimeout||Ig,navigateFrameWait:0,redirectNavigationTimeout:NR,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:r?.nativeBrokerHandshakeTimeout||PR,pollIntervalMilliseconds:Yr.DEFAULT_POLL_INTERVAL_MS},...r,loggerOptions:r?.loggerOptions||s},u={application:{appName:j.EMPTY_STRING,appVersion:j.EMPTY_STRING},client:new lR};if(t?.protocolMode!==Yo.OIDC&&t?.OIDCOptions&&new Ln(c.loggerOptions).warning(JSON.stringify(Re(NS))),t?.protocolMode&&t.protocolMode!==Yo.AAD&&c?.allowNativeBroker)throw Re(PS);return{auth:{...i,...t,OIDCOptions:{...i.OIDCOptions,...t?.OIDCOptions}},cache:{...a,...e},system:c,telemetry:{...u,...o}}}/*! @azure/msal-browser v3.7.1 2024-01-23 */const MR="@azure/msal-browser",wv="3.7.1";/*! @azure/msal-browser v3.7.1 2024-01-23 */class kv{static loggerCallback(e,r){switch(e){case He.Error:console.error(r);return;case He.Info:console.info(r);return;case He.Verbose:console.debug(r);return;case He.Warning:console.warn(r);return;default:console.log(r);return}}constructor(e){this.browserEnvironment=typeof window<"u",this.config=zR(e,this.browserEnvironment);let r;try{r=window[St.SessionStorage]}catch{}const o=r?.getItem(bR),n=r?.getItem(yR)?.toLowerCase(),i=n==="true"?!0:n==="false"?!1:void 0,a={...this.config.system.loggerOptions},s=o&&Object.keys(He).includes(o)?He[o]:void 0;s&&(a.loggerCallback=kv.loggerCallback,a.logLevel=s),i!==void 0&&(a.piiLoggingEnabled=i),this.logger=new Ln(a,MR,wv),this.available=!1}getConfig(){return this.config}getLogger(){return this.logger}isAvailable(){return this.available}isBrowserEnvironment(){return this.browserEnvironment}}/*! @azure/msal-browser v3.7.1 2024-01-23 */class Ni extends kv{getModuleName(){return Ni.MODULE_NAME}getId(){return Ni.ID}async initialize(){return this.available=typeof window<"u",this.available}}Ni.MODULE_NAME="";Ni.ID="StandardOperatingContext";async function OR(t){const e=new Ni(t);return await e.initialize(),(await IR(()=>Promise.resolve().then(()=>xA),void 0)).StandardController.createController(e)}/*! @azure/msal-browser v3.7.1 2024-01-23 */function th(t){return encodeURIComponent(Sv(t).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"))}function nd(t){return k_(t).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function Sv(t){return k_(new TextEncoder().encode(t))}function k_(t){const e=Array.from(t,r=>String.fromCodePoint(r)).join("");return btoa(e)}/*! @azure/msal-browser v3.7.1 2024-01-23 */function Co(t){return new TextDecoder().decode(jR(t))}function jR(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw re(b_)}const r=atob(e);return Uint8Array.from(r,o=>o.codePointAt(0)||0)}/*! @azure/msal-browser v3.7.1 2024-01-23 */const DR="RSASSA-PKCS1-v1_5",S_="SHA-256",FR=2048,qR=new Uint8Array([1,0,1]),_v={name:DR,hash:S_,modulusLength:FR,publicExponent:qR};function LR(t){if("crypto"in window)t.verbose("BrowserCrypto: modern crypto interface available");else throw t.error("BrowserCrypto: crypto interface is unavailable"),re(KS)}async function __(t,e,r){e?.addQueueMeasurement(A.Sha256Digest,r);const n=new TextEncoder().encode(t);return window.crypto.subtle.digest(S_,n)}function HR(t){return window.crypto.getRandomValues(t)}function rn(){return window.crypto.randomUUID()}async function UR(t,e){return window.crypto.subtle.generateKey(_v,t,e)}async function rh(t){return window.crypto.subtle.exportKey(y_,t)}async function $R(t,e,r){return window.crypto.subtle.importKey(y_,t,_v,e,r)}async function KR(t,e){return window.crypto.subtle.sign(_v,t,e)}/*! @azure/msal-browser v3.7.1 2024-01-23 */class WR{constructor(){this.dbName=Bg,this.version=pR,this.tableName=mR,this.dbOpen=!1}async open(){return new Promise((e,r)=>{const o=window.indexedDB.open(this.dbName,this.version);o.addEventListener("upgradeneeded",n=>{n.target.result.createObjectStore(this.tableName)}),o.addEventListener("success",n=>{const i=n;this.db=i.target.result,this.dbOpen=!0,e()}),o.addEventListener("error",()=>r(re(bv)))})}closeConnection(){const e=this.db;e&&this.dbOpen&&(e.close(),this.dbOpen=!1)}async validateDbIsOpen(){if(!this.dbOpen)return this.open()}async getItem(e){return await this.validateDbIsOpen(),new Promise((r,o)=>{if(!this.db)return o(re(la));const a=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).get(e);a.addEventListener("success",s=>{const l=s;this.closeConnection(),r(l.target.result)}),a.addEventListener("error",s=>{this.closeConnection(),o(s)})})}async setItem(e,r){return await this.validateDbIsOpen(),new Promise((o,n)=>{if(!this.db)return n(re(la));const s=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).put(r,e);s.addEventListener("success",()=>{this.closeConnection(),o()}),s.addEventListener("error",l=>{this.closeConnection(),n(l)})})}async removeItem(e){return await this.validateDbIsOpen(),new Promise((r,o)=>{if(!this.db)return o(re(la));const a=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).delete(e);a.addEventListener("success",()=>{this.closeConnection(),r()}),a.addEventListener("error",s=>{this.closeConnection(),o(s)})})}async getKeys(){return await this.validateDbIsOpen(),new Promise((e,r)=>{if(!this.db)return r(re(la));const i=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).getAllKeys();i.addEventListener("success",a=>{const s=a;this.closeConnection(),e(s.target.result)}),i.addEventListener("error",a=>{this.closeConnection(),r(a)})})}async containsKey(e){return await this.validateDbIsOpen(),new Promise((r,o)=>{if(!this.db)return o(re(la));const a=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).count(e);a.addEventListener("success",s=>{const l=s;this.closeConnection(),r(l.target.result===1)}),a.addEventListener("error",s=>{this.closeConnection(),o(s)})})}async deleteDatabase(){return this.db&&this.dbOpen&&this.closeConnection(),new Promise((e,r)=>{const o=window.indexedDB.deleteDatabase(Bg);o.addEventListener("success",()=>e(!0)),o.addEventListener("blocked",()=>e(!0)),o.addEventListener("error",()=>r(!1))})}}/*! @azure/msal-browser v3.7.1 2024-01-23 */class Rg{constructor(){this.cache=new Map}getItem(e){return this.cache.get(e)||null}setItem(e,r){this.cache.set(e,r)}removeItem(e){this.cache.delete(e)}getKeys(){const e=[];return this.cache.forEach((r,o)=>{e.push(o)}),e}containsKey(e){return this.cache.has(e)}clear(){this.cache.clear()}}/*! @azure/msal-browser v3.7.1 2024-01-23 */class G0{constructor(e,r){this.inMemoryCache=new Rg,this.indexedDBCache=new WR,this.logger=e,this.storeName=r}handleDatabaseAccessError(e){if(e instanceof nc&&e.errorCode===bv)this.logger.error("Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts.");else throw e}async getItem(e){const r=this.inMemoryCache.getItem(e);if(!r)try{return this.logger.verbose("Queried item not found in in-memory cache, now querying persistent storage."),await this.indexedDBCache.getItem(e)}catch(o){this.handleDatabaseAccessError(o)}return r}async setItem(e,r){this.inMemoryCache.setItem(e,r);try{await this.indexedDBCache.setItem(e,r)}catch(o){this.handleDatabaseAccessError(o)}}async removeItem(e){this.inMemoryCache.removeItem(e);try{await this.indexedDBCache.removeItem(e)}catch(r){this.handleDatabaseAccessError(r)}}async getKeys(){const e=this.inMemoryCache.getKeys();if(e.length===0)try{return this.logger.verbose("In-memory cache is empty, now querying persistent storage."),await this.indexedDBCache.getKeys()}catch(r){this.handleDatabaseAccessError(r)}return e}async containsKey(e){const r=this.inMemoryCache.containsKey(e);if(!r)try{return this.logger.verbose("Key not found in in-memory cache, now querying persistent storage."),await this.indexedDBCache.containsKey(e)}catch(o){this.handleDatabaseAccessError(o)}return r}clearInMemory(){this.logger.verbose(`Deleting in-memory keystore ${this.storeName}`),this.inMemoryCache.clear(),this.logger.verbose(`In-memory keystore ${this.storeName} deleted`)}async clearPersistent(){try{this.logger.verbose("Deleting persistent keystore");const e=await this.indexedDBCache.deleteDatabase();return e&&this.logger.verbose("Persistent keystore deleted"),e}catch(e){return this.handleDatabaseAccessError(e),!1}}}/*! @azure/msal-browser v3.7.1 2024-01-23 */const X0={asymmetricKeys:"asymmetricKeys",symmetricKeys:"symmetricKeys"};class VR{constructor(e){this.logger=e,this.asymmetricKeys=new G0(this.logger,X0.asymmetricKeys),this.symmetricKeys=new G0(this.logger,X0.symmetricKeys)}async clear(){this.asymmetricKeys.clearInMemory(),this.symmetricKeys.clearInMemory();try{return await this.asymmetricKeys.clearPersistent(),!0}catch(e){return e instanceof Error?this.logger.error(`Clearing keystore failed with error: ${e.message}`):this.logger.error("Clearing keystore failed with unknown error"),!1}}}/*! @azure/msal-browser v3.7.1 2024-01-23 */class Va{constructor(e,r){this.logger=e,LR(e),this.cache=new VR(this.logger),this.performanceClient=r}createNewGuid(){return rn()}base64Encode(e){return Sv(e)}base64Decode(e){return Co(e)}async getPublicKeyThumbprint(e){const r=this.performanceClient?.startMeasurement(A.CryptoOptsGetPublicKeyThumbprint,e.correlationId),o=await UR(Va.EXTRACTABLE,Va.POP_KEY_USAGES),n=await rh(o.publicKey),i={e:n.e,kty:n.kty,n:n.n},a=Y0(i),s=await this.hashString(a),l=await rh(o.privateKey),c=await $R(l,!1,["sign"]);return await this.cache.asymmetricKeys.setItem(s,{privateKey:c,publicKey:o.publicKey,requestMethod:e.resourceRequestMethod,requestUri:e.resourceRequestUri}),r&&r.end({success:!0}),s}async removeTokenBindingKey(e){return await this.cache.asymmetricKeys.removeItem(e),!await this.cache.asymmetricKeys.containsKey(e)}async clearKeystore(){return this.cache.clear()}async signJwt(e,r,o,n){const i=this.performanceClient?.startMeasurement(A.CryptoOptsSignJwt,n),a=await this.cache.asymmetricKeys.getItem(r);if(!a)throw re(vv);const s=await rh(a.publicKey),l=Y0(s),c=th(JSON.stringify({kid:r})),u=hv.getShrHeaderString({...o?.header,alg:s.alg,kid:c}),d=th(u);e.cnf={jwk:JSON.parse(l)};const f=th(JSON.stringify(e)),h=`${d}.${f}`,m=new TextEncoder().encode(h),w=await KR(a.privateKey,m),v=nd(new Uint8Array(w)),p=`${h}.${v}`;return i&&i.end({success:!0}),p}async hashString(e){const r=await __(e),o=new Uint8Array(r);return nd(o)}}Va.POP_KEY_USAGES=["sign","verify"];Va.EXTRACTABLE=!0;function Y0(t){return JSON.stringify(t,Object.keys(t).sort())}/*! @azure/msal-browser v3.7.1 2024-01-23 */const x_="storage_not_supported",It="stubbed_public_client_application_called",C_="in_mem_redirect_unavailable";/*! @azure/msal-browser v3.7.1 2024-01-23 */const GR={[x_]:"Given storage configuration option was not supported.",[It]:"Stub instance of Public Client Application was called. If using msal-react, please ensure context is not used without a provider. For more visit: aka.ms/msaljs/browser-errors",[C_]:"Redirect cannot be supported. In-memory storage was selected and storeAuthStateInCookie=false, which would cause the library to be unable to handle the incoming hash. If you would like to use the redirect API, please use session/localStorage or set storeAuthStateInCookie=true."};class xv extends We{constructor(e,r){super(e,r),this.name="BrowserConfigurationAuthError",Object.setPrototypeOf(this,xv.prototype)}}function wt(t){return new xv(t,GR[t])}/*! @azure/msal-browser v3.7.1 2024-01-23 */class Z0{constructor(e){this.validateWindowStorage(e),this.windowStorage=window[e]}validateWindowStorage(e){if(e!==St.LocalStorage&&e!==St.SessionStorage||!window[e])throw wt(x_)}getItem(e){return this.windowStorage.getItem(e)}setItem(e,r){this.windowStorage.setItem(e,r)}removeItem(e){this.windowStorage.removeItem(e)}getKeys(){return Object.keys(this.windowStorage)}containsKey(e){return this.windowStorage.hasOwnProperty(e)}}/*! @azure/msal-browser v3.7.1 2024-01-23 */function T_(t,e){if(!e)return null;try{return oo.parseRequestState(t,e).libraryState.meta}catch{throw X(Ua)}}/*! @azure/msal-browser v3.7.1 2024-01-23 */class Ag extends $a{constructor(e,r,o,n,i){super(e,o,n,i),this.COOKIE_LIFE_MULTIPLIER=24*60*60*1e3,this.cacheConfig=r,this.logger=n,this.internalStorage=new Rg,this.browserStorage=this.setupBrowserStorage(this.cacheConfig.cacheLocation),this.temporaryCacheStorage=this.setupTemporaryCacheStorage(this.cacheConfig.temporaryCacheLocation,this.cacheConfig.cacheLocation),r.cacheMigrationEnabled&&(this.migrateCacheEntries(),this.createKeyMaps())}setupBrowserStorage(e){switch(e){case St.LocalStorage:case St.SessionStorage:try{return new Z0(e)}catch(r){this.logger.verbose(r);break}}return this.cacheConfig.cacheLocation=St.MemoryStorage,new Rg}setupTemporaryCacheStorage(e,r){switch(r){case St.LocalStorage:case St.SessionStorage:try{return new Z0(e||St.SessionStorage)}catch(o){return this.logger.verbose(o),this.internalStorage}case St.MemoryStorage:default:return this.internalStorage}}migrateCacheEntries(){const e=`${j.CACHE_PREFIX}.${Nt.ID_TOKEN}`,r=`${j.CACHE_PREFIX}.${Nt.CLIENT_INFO}`,o=`${j.CACHE_PREFIX}.${Nt.ERROR}`,n=`${j.CACHE_PREFIX}.${Nt.ERROR_DESC}`,i=this.browserStorage.getItem(e),a=this.browserStorage.getItem(r),s=this.browserStorage.getItem(o),l=this.browserStorage.getItem(n),c=[i,a,s,l];[Nt.ID_TOKEN,Nt.CLIENT_INFO,Nt.ERROR,Nt.ERROR_DESC].forEach((d,f)=>this.migrateCacheEntry(d,c[f]))}migrateCacheEntry(e,r){r&&this.setTemporaryCache(e,r,!0)}createKeyMaps(){this.logger.trace("BrowserCacheManager - createKeyMaps called.");const e=this.getItem(mn.ACCOUNT_KEYS),r=this.getItem(`${mn.TOKEN_KEYS}.${this.clientId}`);if(e&&r){this.logger.verbose("BrowserCacheManager:createKeyMaps - account and token key maps already exist, skipping migration.");return}this.browserStorage.getKeys().forEach(n=>{if(this.isCredentialKey(n)){const i=this.getItem(n);if(i){const a=this.validateAndParseJson(i);if(a&&a.hasOwnProperty("credentialType"))switch(a.credentialType){case pe.ID_TOKEN:if(R0(a)){this.logger.trace("BrowserCacheManager:createKeyMaps - idToken found, saving key to token key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - idToken with key: ${n} found, saving key to token key map`);const s=a,l=this.updateCredentialCacheKey(n,s);this.addTokenKey(l,pe.ID_TOKEN);return}else this.logger.trace("BrowserCacheManager:createKeyMaps - key found matching idToken schema with value containing idToken credentialType field but value failed IdTokenEntity validation, skipping."),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - failed idToken validation on key: ${n}`);break;case pe.ACCESS_TOKEN:case pe.ACCESS_TOKEN_WITH_AUTH_SCHEME:if(I0(a)){this.logger.trace("BrowserCacheManager:createKeyMaps - accessToken found, saving key to token key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - accessToken with key: ${n} found, saving key to token key map`);const s=a,l=this.updateCredentialCacheKey(n,s);this.addTokenKey(l,pe.ACCESS_TOKEN);return}else this.logger.trace("BrowserCacheManager:createKeyMaps - key found matching accessToken schema with value containing accessToken credentialType field but value failed AccessTokenEntity validation, skipping."),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - failed accessToken validation on key: ${n}`);break;case pe.REFRESH_TOKEN:if(A0(a)){this.logger.trace("BrowserCacheManager:createKeyMaps - refreshToken found, saving key to token key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - refreshToken with key: ${n} found, saving key to token key map`);const s=a,l=this.updateCredentialCacheKey(n,s);this.addTokenKey(l,pe.REFRESH_TOKEN);return}else this.logger.trace("BrowserCacheManager:createKeyMaps - key found matching refreshToken schema with value containing refreshToken credentialType field but value failed RefreshTokenEntity validation, skipping."),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - failed refreshToken validation on key: ${n}`);break}}}if(this.isAccountKey(n)){const i=this.getItem(n);if(i){const a=this.validateAndParseJson(i);a&&Ct.isAccountEntity(a)&&(this.logger.trace("BrowserCacheManager:createKeyMaps - account found, saving key to account key map"),this.logger.tracePii(`BrowserCacheManager:createKeyMaps - account with key: ${n} found, saving key to account key map`),this.addAccountKeyToMap(n))}}})}validateAndParseJson(e){try{const r=JSON.parse(e);return r&&typeof r=="object"?r:null}catch{return null}}getItem(e){return this.browserStorage.getItem(e)}setItem(e,r){this.browserStorage.setItem(e,r)}getAccount(e,r){this.logger.trace("BrowserCacheManager.getAccount called");const o=this.getCachedAccountEntity(e);return this.updateOutdatedCachedAccount(e,o,r)}getCachedAccountEntity(e){const r=this.getItem(e);if(!r)return this.removeAccountKeyFromMap(e),null;const o=this.validateAndParseJson(r);return!o||!Ct.isAccountEntity(o)?(this.removeAccountKeyFromMap(e),null):$a.toObject(new Ct,o)}setAccount(e){this.logger.trace("BrowserCacheManager.setAccount called");const r=e.generateAccountKey();this.setItem(r,JSON.stringify(e)),this.addAccountKeyToMap(r)}getAccountKeys(){this.logger.trace("BrowserCacheManager.getAccountKeys called");const e=this.getItem(mn.ACCOUNT_KEYS);return e?JSON.parse(e):(this.logger.verbose("BrowserCacheManager.getAccountKeys - No account keys found"),[])}addAccountKeyToMap(e){this.logger.trace("BrowserCacheManager.addAccountKeyToMap called"),this.logger.tracePii(`BrowserCacheManager.addAccountKeyToMap called with key: ${e}`);const r=this.getAccountKeys();r.indexOf(e)===-1?(r.push(e),this.setItem(mn.ACCOUNT_KEYS,JSON.stringify(r)),this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key added")):this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key already exists in map")}removeAccountKeyFromMap(e){this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap called"),this.logger.tracePii(`BrowserCacheManager.removeAccountKeyFromMap called with key: ${e}`);const r=this.getAccountKeys(),o=r.indexOf(e);o>-1?(r.splice(o,1),this.setItem(mn.ACCOUNT_KEYS,JSON.stringify(r)),this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap account key removed")):this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap key not found in existing map")}async removeAccount(e){super.removeAccount(e),this.removeAccountKeyFromMap(e)}removeOutdatedAccount(e){this.removeItem(e),this.removeAccountKeyFromMap(e)}removeIdToken(e){super.removeIdToken(e),this.removeTokenKey(e,pe.ID_TOKEN)}async removeAccessToken(e){super.removeAccessToken(e),this.removeTokenKey(e,pe.ACCESS_TOKEN)}removeRefreshToken(e){super.removeRefreshToken(e),this.removeTokenKey(e,pe.REFRESH_TOKEN)}getTokenKeys(){this.logger.trace("BrowserCacheManager.getTokenKeys called");const e=this.getItem(`${mn.TOKEN_KEYS}.${this.clientId}`);if(e){const r=this.validateAndParseJson(e);if(r&&r.hasOwnProperty("idToken")&&r.hasOwnProperty("accessToken")&&r.hasOwnProperty("refreshToken"))return r;this.logger.error("BrowserCacheManager.getTokenKeys - Token keys found but in an unknown format. Returning empty key map.")}else this.logger.verbose("BrowserCacheManager.getTokenKeys - No token keys found");return{idToken:[],accessToken:[],refreshToken:[]}}addTokenKey(e,r){this.logger.trace("BrowserCacheManager addTokenKey called");const o=this.getTokenKeys();switch(r){case pe.ID_TOKEN:o.idToken.indexOf(e)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - idToken added to map"),o.idToken.push(e));break;case pe.ACCESS_TOKEN:o.accessToken.indexOf(e)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - accessToken added to map"),o.accessToken.push(e));break;case pe.REFRESH_TOKEN:o.refreshToken.indexOf(e)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - refreshToken added to map"),o.refreshToken.push(e));break;default:throw this.logger.error(`BrowserCacheManager:addTokenKey - CredentialType provided invalid. CredentialType: ${r}`),X(Sg)}this.setItem(`${mn.TOKEN_KEYS}.${this.clientId}`,JSON.stringify(o))}removeTokenKey(e,r){this.logger.trace("BrowserCacheManager removeTokenKey called");const o=this.getTokenKeys();switch(r){case pe.ID_TOKEN:this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove idToken with key: ${e} from map`);const n=o.idToken.indexOf(e);n>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - idToken removed from map"),o.idToken.splice(n,1)):this.logger.info("BrowserCacheManager: removeTokenKey - idToken does not exist in map. Either it was previously removed or it was never added.");break;case pe.ACCESS_TOKEN:this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove accessToken with key: ${e} from map`);const i=o.accessToken.indexOf(e);i>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - accessToken removed from map"),o.accessToken.splice(i,1)):this.logger.info("BrowserCacheManager: removeTokenKey - accessToken does not exist in map. Either it was previously removed or it was never added.");break;case pe.REFRESH_TOKEN:this.logger.infoPii(`BrowserCacheManager: removeTokenKey - attempting to remove refreshToken with key: ${e} from map`);const a=o.refreshToken.indexOf(e);a>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken removed from map"),o.refreshToken.splice(a,1)):this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken does not exist in map. Either it was previously removed or it was never added.");break;default:throw this.logger.error(`BrowserCacheManager:removeTokenKey - CredentialType provided invalid. CredentialType: ${r}`),X(Sg)}this.setItem(`${mn.TOKEN_KEYS}.${this.clientId}`,JSON.stringify(o))}getIdTokenCredential(e){const r=this.getItem(e);if(!r)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(e,pe.ID_TOKEN),null;const o=this.validateAndParseJson(r);return!o||!R0(o)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(e,pe.ID_TOKEN),null):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),o)}setIdTokenCredential(e){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");const r=ha(e);this.setItem(r,JSON.stringify(e)),this.addTokenKey(r,pe.ID_TOKEN)}getAccessTokenCredential(e){const r=this.getItem(e);if(!r)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(e,pe.ACCESS_TOKEN),null;const o=this.validateAndParseJson(r);return!o||!I0(o)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(e,pe.ACCESS_TOKEN),null):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),o)}setAccessTokenCredential(e){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");const r=ha(e);this.setItem(r,JSON.stringify(e)),this.addTokenKey(r,pe.ACCESS_TOKEN)}getRefreshTokenCredential(e){const r=this.getItem(e);if(!r)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(e,pe.REFRESH_TOKEN),null;const o=this.validateAndParseJson(r);return!o||!A0(o)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(e,pe.REFRESH_TOKEN),null):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),o)}setRefreshTokenCredential(e){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");const r=ha(e);this.setItem(r,JSON.stringify(e)),this.addTokenKey(r,pe.REFRESH_TOKEN)}getAppMetadata(e){const r=this.getItem(e);if(!r)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;const o=this.validateAndParseJson(r);return!o||!HB(e,o)?(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),o)}setAppMetadata(e){this.logger.trace("BrowserCacheManager.setAppMetadata called");const r=LB(e);this.setItem(r,JSON.stringify(e))}getServerTelemetry(e){const r=this.getItem(e);if(!r)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;const o=this.validateAndParseJson(r);return!o||!FB(e,o)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),o)}setServerTelemetry(e,r){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(e,JSON.stringify(r))}getAuthorityMetadata(e){const r=this.internalStorage.getItem(e);if(!r)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;const o=this.validateAndParseJson(r);return o&&UB(e,o)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),o):null}getAuthorityMetadataKeys(){return this.internalStorage.getKeys().filter(r=>this.isAuthorityMetadata(r))}setWrapperMetadata(e,r){this.internalStorage.setItem(Rc.WRAPPER_SKU,e),this.internalStorage.setItem(Rc.WRAPPER_VER,r)}getWrapperMetadata(){const e=this.internalStorage.getItem(Rc.WRAPPER_SKU)||j.EMPTY_STRING,r=this.internalStorage.getItem(Rc.WRAPPER_VER)||j.EMPTY_STRING;return[e,r]}setAuthorityMetadata(e,r){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(e,JSON.stringify(r))}getActiveAccount(){const e=this.generateCacheKey(Nt.ACTIVE_ACCOUNT_FILTERS),r=this.getItem(e);if(!r){this.logger.trace("BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema");const n=this.generateCacheKey(Nt.ACTIVE_ACCOUNT),i=this.getItem(n);if(!i)return this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null;const a=this.getAccountInfoFilteredBy({localAccountId:i});return a?(this.logger.trace("BrowserCacheManager.getActiveAccount: Legacy active account cache schema found"),this.logger.trace("BrowserCacheManager.getActiveAccount: Adding active account filters cache schema"),this.setActiveAccount(a),a):null}const o=this.validateAndParseJson(r);return o?(this.logger.trace("BrowserCacheManager.getActiveAccount: Active account filters schema found"),this.getAccountInfoFilteredBy({homeAccountId:o.homeAccountId,localAccountId:o.localAccountId,tenantId:o.tenantId})):(this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null)}setActiveAccount(e){const r=this.generateCacheKey(Nt.ACTIVE_ACCOUNT_FILTERS),o=this.generateCacheKey(Nt.ACTIVE_ACCOUNT);if(e){this.logger.verbose("setActiveAccount: Active account set");const n={homeAccountId:e.homeAccountId,localAccountId:e.localAccountId,tenantId:e.tenantId};this.browserStorage.setItem(r,JSON.stringify(n)),this.browserStorage.setItem(o,e.localAccountId)}else this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(r),this.browserStorage.removeItem(o)}getThrottlingCache(e){const r=this.getItem(e);if(!r)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;const o=this.validateAndParseJson(r);return!o||!qB(e,o)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),o)}setThrottlingCache(e,r){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(e,JSON.stringify(r))}getTemporaryCache(e,r){const o=r?this.generateCacheKey(e):e;if(this.cacheConfig.storeAuthStateInCookie){const i=this.getItemCookie(o);if(i)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),i}const n=this.temporaryCacheStorage.getItem(o);if(!n){if(this.cacheConfig.cacheLocation===St.LocalStorage){const i=this.browserStorage.getItem(o);if(i)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),i}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),n}setTemporaryCache(e,r,o){const n=o?this.generateCacheKey(e):e;this.temporaryCacheStorage.setItem(n,r),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.setItemCookie(n,r))}removeItem(e){this.browserStorage.removeItem(e),this.temporaryCacheStorage.removeItem(e),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"),this.clearItemCookie(e))}containsKey(e){return this.browserStorage.containsKey(e)||this.temporaryCacheStorage.containsKey(e)}getKeys(){return[...this.browserStorage.getKeys(),...this.temporaryCacheStorage.getKeys()]}async clear(){await this.removeAllAccounts(),this.removeAppMetadata(),this.getKeys().forEach(e=>{(this.browserStorage.containsKey(e)||this.temporaryCacheStorage.containsKey(e))&&(e.indexOf(j.CACHE_PREFIX)!==-1||e.indexOf(this.clientId)!==-1)&&this.removeItem(e)}),this.internalStorage.clear()}async clearTokensAndKeysWithClaims(e){e.addQueueMeasurement(A.ClearTokensAndKeysWithClaims);const r=this.getTokenKeys(),o=[];r.accessToken.forEach(n=>{const i=this.getAccessTokenCredential(n);i?.requestedClaimsHash&&n.includes(i.requestedClaimsHash.toLowerCase())&&o.push(this.removeAccessToken(n))}),await Promise.all(o),o.length>0&&this.logger.warning(`${o.length} access tokens with claims in the cache keys have been removed from the cache.`)}setItemCookie(e,r,o){let n=`${encodeURIComponent(e)}=${encodeURIComponent(r)};path=/;SameSite=Lax;`;if(o){const i=this.getCookieExpirationTime(o);n+=`expires=${i};`}this.cacheConfig.secureCookies&&(n+="Secure;"),document.cookie=n}getItemCookie(e){const r=`${encodeURIComponent(e)}=`,o=document.cookie.split(";");for(let n=0;n{for(;o.charAt(0)===" ";)o=o.substring(1);if(o.indexOf(e)===0){const n=o.split("=")[0];this.clearItemCookie(n)}})}clearItemCookie(e){this.setItemCookie(e,j.EMPTY_STRING,-1)}getCookieExpirationTime(e){const r=new Date;return new Date(r.getTime()+e*this.COOKIE_LIFE_MULTIPLIER).toUTCString()}getCache(){return this.browserStorage}setCache(){}generateCacheKey(e){return this.validateAndParseJson(e)?JSON.stringify(e):ro.startsWith(e,j.CACHE_PREFIX)||ro.startsWith(e,Nt.ADAL_ID_TOKEN)?e:`${j.CACHE_PREFIX}.${this.clientId}.${e}`}generateAuthorityKey(e){const{libraryState:{id:r}}=oo.parseRequestState(this.cryptoImpl,e);return this.generateCacheKey(`${Ce.AUTHORITY}.${r}`)}generateNonceKey(e){const{libraryState:{id:r}}=oo.parseRequestState(this.cryptoImpl,e);return this.generateCacheKey(`${Ce.NONCE_IDTOKEN}.${r}`)}generateStateKey(e){const{libraryState:{id:r}}=oo.parseRequestState(this.cryptoImpl,e);return this.generateCacheKey(`${Ce.REQUEST_STATE}.${r}`)}getCachedAuthority(e){const r=this.generateStateKey(e),o=this.getTemporaryCache(r);if(!o)return null;const n=this.generateAuthorityKey(o);return this.getTemporaryCache(n)}updateCacheEntries(e,r,o,n,i){this.logger.trace("BrowserCacheManager.updateCacheEntries called");const a=this.generateStateKey(e);this.setTemporaryCache(a,e,!1);const s=this.generateNonceKey(e);this.setTemporaryCache(s,r,!1);const l=this.generateAuthorityKey(e);if(this.setTemporaryCache(l,o,!1),i){const c={credential:i.homeAccountId,type:br.HOME_ACCOUNT_ID};this.setTemporaryCache(Ce.CCS_CREDENTIAL,JSON.stringify(c),!0)}else if(n){const c={credential:n,type:br.UPN};this.setTemporaryCache(Ce.CCS_CREDENTIAL,JSON.stringify(c),!0)}}resetRequestCache(e){this.logger.trace("BrowserCacheManager.resetRequestCache called"),e&&(this.getKeys().forEach(r=>{r.indexOf(e)!==-1&&this.removeItem(r)}),this.removeItem(this.generateStateKey(e)),this.removeItem(this.generateNonceKey(e)),this.removeItem(this.generateAuthorityKey(e))),this.removeItem(this.generateCacheKey(Ce.REQUEST_PARAMS)),this.removeItem(this.generateCacheKey(Ce.ORIGIN_URI)),this.removeItem(this.generateCacheKey(Ce.URL_HASH)),this.removeItem(this.generateCacheKey(Ce.CORRELATION_ID)),this.removeItem(this.generateCacheKey(Ce.CCS_CREDENTIAL)),this.removeItem(this.generateCacheKey(Ce.NATIVE_REQUEST)),this.setInteractionInProgress(!1)}cleanRequestByState(e){if(this.logger.trace("BrowserCacheManager.cleanRequestByState called"),e){const r=this.generateStateKey(e),o=this.temporaryCacheStorage.getItem(r);this.logger.infoPii(`BrowserCacheManager.cleanRequestByState: Removing temporary cache items for state: ${o}`),this.resetRequestCache(o||j.EMPTY_STRING)}this.clearMsalCookies()}cleanRequestByInteractionType(e){this.logger.trace("BrowserCacheManager.cleanRequestByInteractionType called"),this.getKeys().forEach(r=>{if(r.indexOf(Ce.REQUEST_STATE)===-1)return;const o=this.temporaryCacheStorage.getItem(r);if(!o)return;const n=T_(this.cryptoImpl,o);n&&n.interactionType===e&&(this.logger.infoPii(`BrowserCacheManager.cleanRequestByInteractionType: Removing temporary cache items for state: ${o}`),this.resetRequestCache(o))}),this.clearMsalCookies(),this.setInteractionInProgress(!1)}cacheCodeRequest(e){this.logger.trace("BrowserCacheManager.cacheCodeRequest called");const r=Sv(JSON.stringify(e));this.setTemporaryCache(Ce.REQUEST_PARAMS,r,!0)}getCachedRequest(e){this.logger.trace("BrowserCacheManager.getCachedRequest called");const r=this.getTemporaryCache(Ce.REQUEST_PARAMS,!0);if(!r)throw re(i_);let o;try{o=JSON.parse(Co(r))}catch(n){throw this.logger.errorPii(`Attempted to parse: ${r}`),this.logger.error(`Parsing cached token request threw with error: ${n}`),re(a_)}if(this.removeItem(this.generateCacheKey(Ce.REQUEST_PARAMS)),!o.authority){const n=this.generateAuthorityKey(e),i=this.getTemporaryCache(n);if(!i)throw re(mv);o.authority=i}return o}getCachedNativeRequest(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");const e=this.getTemporaryCache(Ce.NATIVE_REQUEST,!0);if(!e)return this.logger.trace("BrowserCacheManager.getCachedNativeRequest: No cached native request found"),null;const r=this.validateAndParseJson(e);return r||(this.logger.error("BrowserCacheManager.getCachedNativeRequest: Unable to parse native request"),null)}isInteractionInProgress(e){const r=this.getInteractionInProgress();return e?r===this.clientId:!!r}getInteractionInProgress(){const e=`${j.CACHE_PREFIX}.${Ce.INTERACTION_STATUS_KEY}`;return this.getTemporaryCache(e,!1)}setInteractionInProgress(e){const r=`${j.CACHE_PREFIX}.${Ce.INTERACTION_STATUS_KEY}`;if(e){if(this.getInteractionInProgress())throw re(YS);this.setTemporaryCache(r,this.clientId,!1)}else!e&&this.getInteractionInProgress()===this.clientId&&this.removeItem(r)}getLegacyLoginHint(){const e=this.getTemporaryCache(Nt.ADAL_ID_TOKEN);e&&(this.browserStorage.removeItem(Nt.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));const r=this.getTemporaryCache(Nt.ID_TOKEN,!0);r&&(this.removeItem(this.generateCacheKey(Nt.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));const o=r||e;if(o){const n=Ui(o,Co);if(n.preferred_username)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 preferred_username as loginHint"),n.preferred_username;if(n.upn)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 upn as loginHint"),n.upn;this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, however, no account hint claim found. Enable preferred_username or upn id token claim to get SSO.")}return null}updateCredentialCacheKey(e,r){const o=ha(r);if(e!==o){const n=this.getItem(e);if(n)return this.removeItem(e),this.setItem(o,n),this.logger.verbose(`Updated an outdated ${r.credentialType} cache key`),o;this.logger.error(`Attempted to update an outdated ${r.credentialType} cache key but no item matching the outdated key was found in storage`)}return e}getRedirectRequestContext(){return this.getTemporaryCache(Ce.REDIRECT_CONTEXT,!0)}setRedirectRequestContext(e){this.setTemporaryCache(Ce.REDIRECT_CONTEXT,e,!0)}async hydrateCache(e,r){const o=Zd(e.account?.homeAccountId,e.account?.environment,e.idToken,this.clientId,e.tenantId);let n;r.claims&&(n=await this.cryptoImpl.hashString(r.claims));const i=Qd(e.account?.homeAccountId,e.account.environment,e.accessToken,this.clientId,e.tenantId,e.scopes.join(" "),e.expiresOn?.getTime()||0,e.extExpiresOn?.getTime()||0,Co,void 0,e.tokenType,void 0,r.sshKid,r.claims,n),a=new Ea(void 0,o,i);return this.saveCacheRecord(a)}}const XR=(t,e)=>{const r={cacheLocation:St.MemoryStorage,temporaryCacheLocation:St.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!1};return new Ag(t,r,Yu,e)};/*! @azure/msal-browser v3.7.1 2024-01-23 */const se={INITIALIZE_START:"msal:initializeStart",INITIALIZE_END:"msal:initializeEnd",ACCOUNT_ADDED:"msal:accountAdded",ACCOUNT_REMOVED:"msal:accountRemoved",LOGIN_START:"msal:loginStart",LOGIN_SUCCESS:"msal:loginSuccess",LOGIN_FAILURE:"msal:loginFailure",ACQUIRE_TOKEN_START:"msal:acquireTokenStart",ACQUIRE_TOKEN_SUCCESS:"msal:acquireTokenSuccess",ACQUIRE_TOKEN_FAILURE:"msal:acquireTokenFailure",ACQUIRE_TOKEN_NETWORK_START:"msal:acquireTokenFromNetworkStart",SSO_SILENT_START:"msal:ssoSilentStart",SSO_SILENT_SUCCESS:"msal:ssoSilentSuccess",SSO_SILENT_FAILURE:"msal:ssoSilentFailure",ACQUIRE_TOKEN_BY_CODE_START:"msal:acquireTokenByCodeStart",ACQUIRE_TOKEN_BY_CODE_SUCCESS:"msal:acquireTokenByCodeSuccess",ACQUIRE_TOKEN_BY_CODE_FAILURE:"msal:acquireTokenByCodeFailure",HANDLE_REDIRECT_START:"msal:handleRedirectStart",HANDLE_REDIRECT_END:"msal:handleRedirectEnd",POPUP_OPENED:"msal:popupOpened",LOGOUT_START:"msal:logoutStart",LOGOUT_SUCCESS:"msal:logoutSuccess",LOGOUT_FAILURE:"msal:logoutFailure",LOGOUT_END:"msal:logoutEnd",RESTORE_FROM_BFCACHE:"msal:restoreFromBFCache"};/*! @azure/msal-browser v3.7.1 2024-01-23 */class YR{constructor(e,r){this.eventCallbacks=new Map,this.logger=e,this.browserCrypto=r,this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}addEventCallback(e){if(typeof window<"u"){const r=rn();return this.eventCallbacks.set(r,e),this.logger.verbose(`Event callback registered with id: ${r}`),r}return null}removeEventCallback(e){this.eventCallbacks.delete(e),this.logger.verbose(`Event callback ${e} removed.`)}enableAccountStorageEvents(){typeof window>"u"||(this.listeningToStorageEvents?this.logger.verbose("Account storage listener already registered."):(this.logger.verbose("Adding account storage listener."),this.listeningToStorageEvents=!0,window.addEventListener("storage",this.handleAccountCacheChange)))}disableAccountStorageEvents(){typeof window>"u"||(this.listeningToStorageEvents?(this.logger.verbose("Removing account storage listener."),window.removeEventListener("storage",this.handleAccountCacheChange),this.listeningToStorageEvents=!1):this.logger.verbose("No account storage listener registered."))}emitEvent(e,r,o,n){if(typeof window<"u"){const i={eventType:e,interactionType:r||null,payload:o||null,error:n||null,timestamp:Date.now()};this.logger.info(`Emitting event: ${e}`),this.eventCallbacks.forEach((a,s)=>{this.logger.verbose(`Emitting event to callback ${s}: ${e}`),a.apply(null,[i])})}}handleAccountCacheChange(e){try{const r=e.newValue||e.oldValue;if(!r)return;const o=JSON.parse(r);if(typeof o!="object"||!Ct.isAccountEntity(o))return;const i=$a.toObject(new Ct,o).getAccountInfo();!e.oldValue&&e.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(se.ACCOUNT_ADDED,void 0,i)):!e.newValue&&e.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(se.ACCOUNT_REMOVED,void 0,i))}catch{return}}}/*! @azure/msal-browser v3.7.1 2024-01-23 */class E_{constructor(e,r,o,n,i,a,s,l,c){this.config=e,this.browserStorage=r,this.browserCrypto=o,this.networkClient=this.config.system.networkClient,this.eventHandler=i,this.navigationClient=a,this.nativeMessageHandler=l,this.correlationId=c||rn(),this.logger=n.clone(Yr.MSAL_SKU,wv,this.correlationId),this.performanceClient=s}async clearCacheOnLogout(e){if(e){Ct.accountInfoIsEqual(e,this.browserStorage.getActiveAccount(),!1)&&(this.logger.verbose("Setting active account to null"),this.browserStorage.setActiveAccount(null));try{await this.browserStorage.removeAccount(Ct.generateAccountCacheKey(e)),this.logger.verbose("Cleared cache items belonging to the account provided in the logout request.")}catch{this.logger.error("Account provided in logout request was not found. Local cache unchanged.")}}else try{this.logger.verbose("No account provided in logout request, clearing all cache items.",this.correlationId),await this.browserStorage.clear(),await this.browserCrypto.clearKeystore()}catch{this.logger.error("Attempted to clear all MSAL cache items and failed. Local cache unchanged.")}}async initializeBaseRequest(e,r){this.performanceClient.addQueueMeasurement(A.InitializeBaseRequest,this.correlationId);const o=e.authority||this.config.auth.authority;r&&await this.validateRequestAuthority(o,r);const n=[...e&&e.scopes||[]],i={...e,correlationId:this.correlationId,authority:o,scopes:n};if(!i.authenticationScheme)i.authenticationScheme=Ee.BEARER,this.logger.verbose(`Authentication Scheme wasn't explicitly set in request, defaulting to "Bearer" request`);else{if(i.authenticationScheme===Ee.SSH){if(!e.sshJwk)throw Re(Jd);if(!e.sshKid)throw Re(AS)}this.logger.verbose(`Authentication Scheme set to "${i.authenticationScheme}" as configured in Auth request`)}return this.config.cache.claimsBasedCachingEnabled&&e.claims&&!ro.isEmptyObj(e.claims)&&(i.requestedClaimsHash=await this.browserCrypto.hashString(e.claims)),i}getRedirectUri(e){this.logger.verbose("getRedirectUri called");const r=e||this.config.auth.redirectUri||Wo();return Se.getAbsoluteUrl(r,Wo())}async validateRequestAuthority(e,r){if(!(await this.getDiscoveredAuthority(e)).isAlias(r.environment))throw Re(zS)}initializeServerTelemetryManager(e,r){this.logger.verbose("initializeServerTelemetryManager called");const o={clientId:this.config.auth.clientId,correlationId:this.correlationId,apiId:e,forceRefresh:r||!1,wrapperSKU:this.browserStorage.getWrapperMetadata()[0],wrapperVer:this.browserStorage.getWrapperMetadata()[1]};return new td(o,this.browserStorage)}async getDiscoveredAuthority(e){this.logger.verbose("getDiscoveredAuthority called");const r={protocolMode:this.config.auth.protocolMode,OIDCOptions:this.config.auth.OIDCOptions,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata},o=e||this.config.auth.authority;return this.logger.verbose(`Creating discovered authority with ${o}`),tf(o,this.config.system.networkClient,this.browserStorage,r,this.logger,this.correlationId,this.performanceClient)}}/*! @azure/msal-browser v3.7.1 2024-01-23 */const ZR=32;async function QR(t,e,r){t.addQueueMeasurement(A.GeneratePkceCodes,r);const o=$i(JR,A.GenerateCodeVerifier,e,t,r)(t,e,r),n=await te(eA,A.GenerateCodeChallengeFromVerifier,e,t,r)(o,t,e,r);return{verifier:o,challenge:n}}function JR(t,e,r){try{const o=new Uint8Array(ZR);return $i(HR,A.GetRandomValues,e,t,r)(o),nd(o)}catch{throw re(gv)}}async function eA(t,e,r,o){e.addQueueMeasurement(A.GenerateCodeChallengeFromVerifier,o);try{const n=await te(__,A.Sha256Digest,r,e,o)(t,e,o);return nd(new Uint8Array(n))}catch{throw re(gv)}}/*! @azure/msal-browser v3.7.1 2024-01-23 */class fs extends E_{async initializeAuthorizationCodeRequest(e){this.performanceClient.addQueueMeasurement(A.StandardInteractionClientInitializeAuthorizationCodeRequest,this.correlationId);const r=await te(QR,A.GeneratePkceCodes,this.logger,this.performanceClient,this.correlationId)(this.performanceClient,this.logger,this.correlationId),o={...e,redirectUri:e.redirectUri,code:j.EMPTY_STRING,codeVerifier:r.verifier};return e.codeChallenge=r.challenge,e.codeChallengeMethod=j.S256_CODE_CHALLENGE_METHOD,o}initializeLogoutRequest(e){this.logger.verbose("initializeLogoutRequest called",e?.correlationId);const r={correlationId:this.correlationId||rn(),...e};if(e)if(e.logoutHint)this.logger.verbose("logoutHint has already been set in logoutRequest");else if(e.account){const o=this.getLogoutHintFromIdTokenClaims(e.account);o&&(this.logger.verbose("Setting logoutHint to login_hint ID Token Claim value for the account provided"),r.logoutHint=o)}else this.logger.verbose("logoutHint was not set and account was not passed into logout request, logoutHint will not be set");else this.logger.verbose("logoutHint will not be set since no logout request was configured");return!e||e.postLogoutRedirectUri!==null?e&&e.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request",r.correlationId),r.postLogoutRedirectUri=Se.getAbsoluteUrl(e.postLogoutRedirectUri,Wo())):this.config.auth.postLogoutRedirectUri===null?this.logger.verbose("postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect",r.correlationId):this.config.auth.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to configured uri",r.correlationId),r.postLogoutRedirectUri=Se.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,Wo())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",r.correlationId),r.postLogoutRedirectUri=Se.getAbsoluteUrl(Wo(),Wo())):this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri",r.correlationId),r}getLogoutHintFromIdTokenClaims(e){const r=e.idTokenClaims;if(r){if(r.login_hint)return r.login_hint;this.logger.verbose("The ID Token Claims tied to the provided account do not contain a login_hint claim, logoutHint will not be added to logout request")}else this.logger.verbose("The provided account does not contain ID Token Claims, logoutHint will not be added to logout request");return null}async createAuthCodeClient(e,r,o){this.performanceClient.addQueueMeasurement(A.StandardInteractionClientCreateAuthCodeClient,this.correlationId);const n=await te(this.getClientConfiguration.bind(this),A.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,this.correlationId)(e,r,o);return new HS(n,this.performanceClient)}async getClientConfiguration(e,r,o){this.performanceClient.addQueueMeasurement(A.StandardInteractionClientGetClientConfiguration,this.correlationId);const n=await te(this.getDiscoveredAuthority.bind(this),A.StandardInteractionClientGetDiscoveredAuthority,this.logger,this.performanceClient,this.correlationId)(r,o),i=this.config.system.loggerOptions;return{authOptions:{clientId:this.config.auth.clientId,authority:n,clientCapabilities:this.config.auth.clientCapabilities},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:i.loggerCallback,piiLoggingEnabled:i.piiLoggingEnabled,logLevel:i.logLevel,correlationId:this.correlationId},cacheOptions:{claimsBasedCachingEnabled:this.config.cache.claimsBasedCachingEnabled},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:e,libraryInfo:{sku:Yr.MSAL_SKU,version:wv,cpu:j.EMPTY_STRING,os:j.EMPTY_STRING},telemetry:this.config.telemetry}}async getDiscoveredAuthority(e,r){this.performanceClient.addQueueMeasurement(A.StandardInteractionClientGetDiscoveredAuthority,this.correlationId);const o={protocolMode:this.config.auth.protocolMode,OIDCOptions:this.config.auth.OIDCOptions,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache},n=e||this.config.auth.authority,i=Lt.generateAuthority(n,r||this.config.auth.azureCloudOptions);return te(tf.bind(YI),A.AuthorityFactoryCreateDiscoveredInstance,this.logger,this.performanceClient,this.correlationId)(i,this.config.system.networkClient,this.browserStorage,o,this.logger,this.correlationId,this.performanceClient)}async initializeAuthorizationRequest(e,r){this.performanceClient.addQueueMeasurement(A.StandardInteractionClientInitializeAuthorizationRequest,this.correlationId);const o=this.getRedirectUri(e.redirectUri),n={interactionType:r},i=oo.setRequestState(this.browserCrypto,e&&e.state||j.EMPTY_STRING,n),s={...await te(this.initializeBaseRequest.bind(this),A.InitializeBaseRequest,this.logger,this.performanceClient,this.correlationId)(e),redirectUri:o,state:i,nonce:e.nonce||rn(),responseMode:this.config.auth.OIDCOptions.serverResponseType},l=e.account||this.browserStorage.getActiveAccount();if(l&&(this.logger.verbose("Setting validated request account",this.correlationId),this.logger.verbosePii(`Setting validated request account: ${l.homeAccountId}`,this.correlationId),s.account=l),!s.loginHint&&!l){const c=this.browserStorage.getLegacyLoginHint();c&&(s.loginHint=c)}return s}}/*! @azure/msal-browser v3.7.1 2024-01-23 */const tA="ContentError",B_="user_switch";/*! @azure/msal-browser v3.7.1 2024-01-23 */const rA="USER_INTERACTION_REQUIRED",oA="USER_CANCEL",nA="NO_NETWORK",iA="PERSISTENT_ERROR",aA="DISABLED",sA="ACCOUNT_UNAVAILABLE";/*! @azure/msal-browser v3.7.1 2024-01-23 */const lA=-2147186943,cA={[B_]:"User attempted to switch accounts in the native broker, which is not allowed. All new accounts must sign-in through the standard web flow first, please try again."};class $o extends We{constructor(e,r,o){super(e,r),Object.setPrototypeOf(this,$o.prototype),this.name="NativeAuthError",this.ext=o}}function ca(t){if(t.ext&&t.ext.status&&(t.ext.status===iA||t.ext.status===aA)||t.ext&&t.ext.error&&t.ext.error===lA)return!0;switch(t.errorCode){case tA:return!0;default:return!1}}function Ng(t,e,r){if(r&&r.status)switch(r.status){case sA:return Cg(LS);case rA:return new so(t,e);case oA:return re(Ai);case nA:return re(rd)}return new $o(t,cA[t]||e,r)}/*! @azure/msal-browser v3.7.1 2024-01-23 */class I_ extends fs{async acquireToken(e){this.performanceClient.addQueueMeasurement(A.SilentCacheClientAcquireToken,e.correlationId);const r=this.initializeServerTelemetryManager(Oe.acquireTokenSilent_silentFlow),o=await this.createSilentFlowClient(r,e.authority,e.azureCloudOptions);this.logger.verbose("Silent auth client created");try{const i=(await te(o.acquireCachedToken.bind(o),A.SilentFlowClientAcquireCachedToken,this.logger,this.performanceClient,e.correlationId)(e))[0];return this.performanceClient.addFields({fromCache:!0},e.correlationId),i}catch(n){throw n instanceof nc&&n.errorCode===vv&&this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),n}}logout(e){this.logger.verbose("logoutRedirect called");const r=this.initializeLogoutRequest(e);return this.clearCacheOnLogout(r?.account)}async createSilentFlowClient(e,r,o){const n=await te(this.getClientConfiguration.bind(this),A.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,this.correlationId)(e,r,o);return new iR(n,this.performanceClient)}async initializeSilentRequest(e,r){this.performanceClient.addQueueMeasurement(A.InitializeSilentRequest,this.correlationId);const o=await te(this.initializeBaseRequest.bind(this),A.InitializeBaseRequest,this.logger,this.performanceClient,this.correlationId)(e,r);return{...e,...o,account:r,forceRefresh:e.forceRefresh||!1}}}/*! @azure/msal-browser v3.7.1 2024-01-23 */const oh={BROKER_CLIENT_ID:"brk_client_id",BROKER_REDIRECT_URI:"brk_redirect_uri"};class Ba extends E_{constructor(e,r,o,n,i,a,s,l,c,u,d,f){super(e,r,o,n,i,a,l,c,f),this.apiId=s,this.accountId=u,this.nativeMessageHandler=c,this.nativeStorageManager=d,this.silentCacheClient=new I_(e,this.nativeStorageManager,o,n,i,a,l,c,f)}async acquireToken(e){this.performanceClient.addQueueMeasurement(A.NativeInteractionClientAcquireToken,e.correlationId),this.logger.trace("NativeInteractionClient - acquireToken called.");const r=this.performanceClient.startMeasurement(A.NativeInteractionClientAcquireToken,e.correlationId),o=Qt.nowSeconds(),n=await this.initializeNativeRequest(e);try{const l=await this.acquireTokensFromCache(this.accountId,n);return r.end({success:!0,isNativeBroker:!1,fromCache:!0}),l}catch{this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call")}const i={method:pi.GetToken,request:n},a=await this.nativeMessageHandler.sendMessage(i),s=this.validateNativeResponse(a);return this.handleNativeResponse(s,n,o).then(l=>(r.end({success:!0,isNativeBroker:!0,requestId:l.requestId}),l)).catch(l=>{throw r.end({success:!1,errorCode:l.errorCode,subErrorCode:l.subError,isNativeBroker:!0}),l})}createSilentCacheRequest(e,r){return{authority:e.authority,correlationId:this.correlationId,scopes:gt.fromString(e.scope).asArray(),account:r,forceRefresh:!1}}async acquireTokensFromCache(e,r){if(!e)throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"),X(wg);const o=this.browserStorage.getBaseAccountInfo({nativeAccountId:e});if(!o)throw X(wg);try{const n=this.createSilentCacheRequest(r,o),i=await this.silentCacheClient.acquireToken(n),a={...o,idTokenClaims:i?.idTokenClaims};return{...i,account:a}}catch(n){throw n}}async acquireTokenRedirect(e){this.logger.trace("NativeInteractionClient - acquireTokenRedirect called.");const r=await this.initializeNativeRequest(e),o={method:pi.GetToken,request:r};try{const a=await this.nativeMessageHandler.sendMessage(o);this.validateNativeResponse(a)}catch(a){if(a instanceof $o&&ca(a))throw a}this.browserStorage.setTemporaryCache(Ce.NATIVE_REQUEST,JSON.stringify(r),!0);const n={apiId:Oe.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},i=this.config.auth.navigateToLoginRequestUrl?window.location.href:this.getRedirectUri(e.redirectUri);await this.navigationClient.navigateExternal(i,n)}async handleRedirectPromise(){if(this.logger.trace("NativeInteractionClient - handleRedirectPromise called."),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),null;const e=this.browserStorage.getCachedNativeRequest();if(!e)return this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."),null;const{prompt:r,...o}=e;r&&this.logger.verbose("NativeInteractionClient - handleRedirectPromise called and prompt was included in the original request, removing prompt from cached request to prevent second interaction with native broker window."),this.browserStorage.removeItem(this.browserStorage.generateCacheKey(Ce.NATIVE_REQUEST));const n={method:pi.GetToken,request:o},i=Qt.nowSeconds();try{this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker.");const a=await this.nativeMessageHandler.sendMessage(n);this.validateNativeResponse(a);const s=this.handleNativeResponse(a,o,i);return this.browserStorage.setInteractionInProgress(!1),await s}catch(a){throw this.browserStorage.setInteractionInProgress(!1),a}}logout(){return this.logger.trace("NativeInteractionClient - logout called."),Promise.reject("Logout not implemented yet")}async handleNativeResponse(e,r,o){if(this.logger.trace("NativeInteractionClient - handleNativeResponse called."),e.account.id!==r.accountId)throw Ng(B_);const n=await this.getDiscoveredAuthority(r.authority),i=Ui(e.id_token,Co),a=this.createHomeAccountIdentifier(e,i),s=dv(this.browserStorage,n,a,i,Co,e.client_info,void 0,i.tid,void 0,e.account.id,this.logger),l=await this.generateAuthenticationResult(e,r,i,s,n.canonicalAuthority,o);return this.cacheAccount(s),this.cacheNativeTokens(e,r,a,i,l.accessToken,l.tenantId,o),l}createHomeAccountIdentifier(e,r){return Ct.generateHomeAccountId(e.client_info||j.EMPTY_STRING,Gr.Default,this.logger,this.browserCrypto,r)}generateScopes(e,r){return e.scope?gt.fromString(e.scope):gt.fromString(r.scope)}async generatePopAccessToken(e,r){if(r.tokenType===Ee.POP){if(e.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),e.shr;const o=new Wa(this.browserCrypto),n={resourceRequestMethod:r.resourceRequestMethod,resourceRequestUri:r.resourceRequestUri,shrClaims:r.shrClaims,shrNonce:r.shrNonce};if(!r.keyId)throw X(Qm);return o.signPopToken(e.access_token,r.keyId,n)}else return e.access_token}async generateAuthenticationResult(e,r,o,n,i,a){const s=this.addTelemetryFromNativeResponse(e),l=e.scope?gt.fromString(e.scope):gt.fromString(r.scope),c=e.account.properties||{},u=c.UID||o.oid||o.sub||j.EMPTY_STRING,d=c.TenantId||o.tid||j.EMPTY_STRING,f=sv(n.getAccountInfo(),void 0,o),h=await this.generatePopAccessToken(e,r),g=r.tokenType===Ee.POP?Ee.POP:Ee.BEARER;return{authority:i,uniqueId:u,tenantId:d,scopes:l.asArray(),account:f,idToken:e.id_token,idTokenClaims:o,accessToken:h,fromCache:s?this.isResponseFromCache(s):!1,expiresOn:new Date(Number(a+e.expires_in)*1e3),tokenType:g,correlationId:this.correlationId,state:e.state,fromNativeBroker:!0}}cacheAccount(e){this.browserStorage.setAccount(e),this.browserStorage.removeAccountContext(e).catch(r=>{this.logger.error(`Error occurred while removing account context from browser storage. ${r}`)})}cacheNativeTokens(e,r,o,n,i,a,s){const l=Zd(o,r.authority,e.id_token||"",r.clientId,n.tid||""),c=r.tokenType===Ee.POP?j.SHR_NONCE_VALIDITY:(typeof e.expires_in=="string"?parseInt(e.expires_in,10):e.expires_in)||0,u=s+c,d=this.generateScopes(e,r),f=Qd(o,r.authority,i,r.clientId,n.tid||a,d.printScopes(),u,0,Co),h=new Ea(void 0,l,f);this.nativeStorageManager.saveCacheRecord(h,r.storeInCache)}addTelemetryFromNativeResponse(e){const r=this.getMATSFromResponse(e);return r?(this.performanceClient.addFields({extensionId:this.nativeMessageHandler.getExtensionId(),extensionVersion:this.nativeMessageHandler.getExtensionVersion(),matsBrokerVersion:r.broker_version,matsAccountJoinOnStart:r.account_join_on_start,matsAccountJoinOnEnd:r.account_join_on_end,matsDeviceJoin:r.device_join,matsPromptBehavior:r.prompt_behavior,matsApiErrorCode:r.api_error_code,matsUiVisible:r.ui_visible,matsSilentCode:r.silent_code,matsSilentBiSubCode:r.silent_bi_sub_code,matsSilentMessage:r.silent_message,matsSilentStatus:r.silent_status,matsHttpStatus:r.http_status,matsHttpEventCount:r.http_event_count},this.correlationId),r):null}validateNativeResponse(e){if(e.hasOwnProperty("access_token")&&e.hasOwnProperty("id_token")&&e.hasOwnProperty("client_info")&&e.hasOwnProperty("account")&&e.hasOwnProperty("scope")&&e.hasOwnProperty("expires_in"))return e;throw eS(Wm,"Response missing expected properties.")}getMATSFromResponse(e){if(e.properties.MATS)try{return JSON.parse(e.properties.MATS)}catch{this.logger.error("NativeInteractionClient - Error parsing MATS telemetry, returning null instead")}return null}isResponseFromCache(e){return typeof e.is_cached>"u"?(this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."),!1):!!e.is_cached}async initializeNativeRequest(e){this.logger.trace("NativeInteractionClient - initializeNativeRequest called");const r=e.authority||this.config.auth.authority;e.account&&await this.validateRequestAuthority(r,e.account);const o=new Se(r);o.validateAsUri();const{scopes:n,...i}=e,a=new gt(n||[]);a.appendScopes(tc);const s=()=>{switch(this.apiId){case Oe.ssoSilent:case Oe.acquireTokenSilent_silentFlow:return this.logger.trace("initializeNativeRequest: silent request sets prompt to none"),Kt.NONE}if(!e.prompt){this.logger.trace("initializeNativeRequest: prompt was not provided");return}switch(e.prompt){case Kt.NONE:case Kt.CONSENT:case Kt.LOGIN:return this.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),e.prompt;default:throw this.logger.trace(`initializeNativeRequest: prompt = ${e.prompt} is not compatible with native flow`),re(v_)}},l={...i,accountId:this.accountId,clientId:this.config.auth.clientId,authority:o.urlString,scope:a.printScopes(),redirectUri:this.getRedirectUri(e.redirectUri),prompt:s(),correlationId:this.correlationId,tokenType:e.authenticationScheme,windowTitleSubstring:document.title,extraParameters:{...e.extraQueryParameters,...e.tokenQueryParameters},extendedExpiryToken:!1};if(this.handleExtraBrokerParams(l),l.extraParameters=l.extraParameters||{},l.extraParameters.telemetry=Ls.MATS_TELEMETRY,e.authenticationScheme===Ee.POP){const c={resourceRequestUri:e.resourceRequestUri,resourceRequestMethod:e.resourceRequestMethod,shrClaims:e.shrClaims,shrNonce:e.shrNonce},u=new Wa(this.browserCrypto),d=await te(u.generateCnf.bind(u),A.PopTokenGenerateCnf,this.logger,this.performanceClient,this.correlationId)(c,this.logger);l.reqCnf=d.reqCnfHash,l.keyId=d.kid}return l}handleExtraBrokerParams(e){if(e.extraParameters&&e.extraParameters.hasOwnProperty(oh.BROKER_CLIENT_ID)&&e.extraParameters.hasOwnProperty(oh.BROKER_REDIRECT_URI)&&e.extraParameters.hasOwnProperty(Ka)){const r=e.extraParameters[Ka],o=e.redirectUri,n=e.extraParameters[oh.BROKER_REDIRECT_URI];e.extraParameters={child_client_id:r,child_redirect_uri:o},e.redirectUri=n}}}/*! @azure/msal-browser v3.7.1 2024-01-23 */class xo{constructor(e,r,o,n){this.logger=e,this.handshakeTimeoutMs=r,this.extensionId=n,this.resolvers=new Map,this.handshakeResolvers=new Map,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this),this.performanceClient=o,this.handshakeEvent=o.startMeasurement(A.NativeMessageHandlerHandshake)}async sendMessage(e){this.logger.trace("NativeMessageHandler - sendMessage called.");const r={channel:Ls.CHANNEL_ID,extensionId:this.extensionId,responseId:rn(),body:e};return this.logger.trace("NativeMessageHandler - Sending request to browser extension"),this.logger.tracePii(`NativeMessageHandler - Sending request to browser extension: ${JSON.stringify(r)}`),this.messageChannel.port1.postMessage(r),new Promise((o,n)=>{this.resolvers.set(r.responseId,{resolve:o,reject:n})})}static async createProvider(e,r,o){e.trace("NativeMessageHandler - createProvider called.");try{const n=new xo(e,r,o,Ls.PREFERRED_EXTENSION_ID);return await n.sendHandshakeRequest(),n}catch{const i=new xo(e,r,o);return await i.sendHandshakeRequest(),i}}async sendHandshakeRequest(){this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1);const e={channel:Ls.CHANNEL_ID,extensionId:this.extensionId,responseId:rn(),body:{method:pi.HandshakeRequest}};return this.handshakeEvent.add({extensionId:this.extensionId,extensionHandshakeTimeoutMs:this.handshakeTimeoutMs}),this.messageChannel.port1.onmessage=r=>{this.onChannelMessage(r)},window.postMessage(e,window.origin,[this.messageChannel.port2]),new Promise((r,o)=>{this.handshakeResolvers.set(e.responseId,{resolve:r,reject:o}),this.timeoutId=window.setTimeout(()=>{window.removeEventListener("message",this.windowListener,!1),this.messageChannel.port1.close(),this.messageChannel.port2.close(),this.handshakeEvent.end({extensionHandshakeTimedOut:!0,success:!1}),o(re(g_)),this.handshakeResolvers.delete(e.responseId)},this.handshakeTimeoutMs)})}onWindowMessage(e){if(this.logger.trace("NativeMessageHandler - onWindowMessage called"),e.source!==window)return;const r=e.data;if(!(!r.channel||r.channel!==Ls.CHANNEL_ID)&&!(r.extensionId&&r.extensionId!==this.extensionId)&&r.body.method===pi.HandshakeRequest){const o=this.handshakeResolvers.get(r.responseId);if(!o){this.logger.trace(`NativeMessageHandler.onWindowMessage - resolver can't be found for request ${r.responseId}`);return}this.logger.verbose(r.extensionId?`Extension with id: ${r.extensionId} not installed`:"No extension installed"),clearTimeout(this.timeoutId),this.messageChannel.port1.close(),this.messageChannel.port2.close(),window.removeEventListener("message",this.windowListener,!1),this.handshakeEvent.end({success:!1,extensionInstalled:!1}),o.reject(re(p_))}}onChannelMessage(e){this.logger.trace("NativeMessageHandler - onChannelMessage called.");const r=e.data,o=this.resolvers.get(r.responseId),n=this.handshakeResolvers.get(r.responseId);try{const i=r.body.method;if(i===pi.Response){if(!o)return;const a=r.body.response;if(this.logger.trace("NativeMessageHandler - Received response from browser extension"),this.logger.tracePii(`NativeMessageHandler - Received response from browser extension: ${JSON.stringify(a)}`),a.status!=="Success")o.reject(Ng(a.code,a.description,a.ext));else if(a.result)a.result.code&&a.result.description?o.reject(Ng(a.result.code,a.result.description,a.result.ext)):o.resolve(a.result);else throw eS(Wm,"Event does not contain result.");this.resolvers.delete(r.responseId)}else if(i===pi.HandshakeResponse){if(!n){this.logger.trace(`NativeMessageHandler.onChannelMessage - resolver can't be found for request ${r.responseId}`);return}clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=r.extensionId,this.extensionVersion=r.body.version,this.logger.verbose(`NativeMessageHandler - Received HandshakeResponse from extension: ${this.extensionId}`),this.handshakeEvent.end({extensionInstalled:!0,success:!0}),n.resolve(),this.handshakeResolvers.delete(r.responseId)}}catch(i){this.logger.error("Error parsing response from WAM Extension"),this.logger.errorPii(`Error parsing response from WAM Extension: ${i}`),this.logger.errorPii(`Unable to parse ${e}`),o?o.reject(i):n&&n.reject(i)}}getExtensionId(){return this.extensionId}getExtensionVersion(){return this.extensionVersion}static isNativeAvailable(e,r,o,n){if(r.trace("isNativeAvailable called"),!e.system.allowNativeBroker)return r.trace("isNativeAvailable: allowNativeBroker is not enabled, returning false"),!1;if(!o)return r.trace("isNativeAvailable: WAM extension provider is not initialized, returning false"),!1;if(n)switch(n){case Ee.BEARER:case Ee.POP:return r.trace("isNativeAvailable: authenticationScheme is supported, returning true"),!0;default:return r.trace("isNativeAvailable: authenticationScheme is not supported, returning false"),!1}return!0}}/*! @azure/msal-browser v3.7.1 2024-01-23 */class Cv{constructor(e,r,o,n,i){this.authModule=e,this.browserStorage=r,this.authCodeRequest=o,this.logger=n,this.performanceClient=i}async handleCodeResponse(e,r){this.performanceClient.addQueueMeasurement(A.HandleCodeResponse,r.correlationId);let o;try{o=this.authModule.handleFragmentResponse(e,r.state)}catch(n){throw n instanceof Hn&&n.subError===Ai?re(Ai):n}return te(this.handleCodeResponseFromServer.bind(this),A.HandleCodeResponseFromServer,this.logger,this.performanceClient,r.correlationId)(o,r)}async handleCodeResponseFromServer(e,r,o=!0){if(this.performanceClient.addQueueMeasurement(A.HandleCodeResponseFromServer,r.correlationId),this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),this.authCodeRequest.code=e.code,e.cloud_instance_host_name&&await te(this.authModule.updateAuthority.bind(this.authModule),A.UpdateTokenEndpointAuthority,this.logger,this.performanceClient,r.correlationId)(e.cloud_instance_host_name,r.correlationId),o&&(e.nonce=r.nonce||void 0),e.state=r.state,e.client_info)this.authCodeRequest.clientInfo=e.client_info;else{const i=this.createCcsCredentials(r);i&&(this.authCodeRequest.ccsCredential=i)}return await te(this.authModule.acquireToken.bind(this.authModule),A.AuthClientAcquireToken,this.logger,this.performanceClient,r.correlationId)(this.authCodeRequest,e)}createCcsCredentials(e){return e.account?{credential:e.account.homeAccountId,type:br.HOME_ACCOUNT_ID}:e.loginHint?{credential:e.loginHint,type:br.UPN}:null}}/*! @azure/msal-browser v3.7.1 2024-01-23 */function R_(t,e,r){const o=Qu(t);if(!o)throw OS(t)?(r.error(`A ${e} is present in the iframe but it does not contain known properties. It's likely that the ${e} has been replaced by code running on the redirectUri page.`),r.errorPii(`The ${e} detected is: ${t}`),re(VS)):(r.error(`The request has returned to the redirectUri but a ${e} is not present. It's likely that the ${e} has been removed or the page has been redirected by code running on the redirectUri page.`),re(WS));return o}function uA(t,e,r){if(!t.state)throw re(pv);const o=T_(e,t.state);if(!o)throw re(GS);if(o.interactionType!==r)throw re(XS)}/*! @azure/msal-browser v3.7.1 2024-01-23 */class dA extends fs{constructor(e,r,o,n,i,a,s,l,c,u){super(e,r,o,n,i,a,s,c,u),this.unloadWindow=this.unloadWindow.bind(this),this.nativeStorage=l}acquireToken(e){try{const r=this.generatePopupName(e.scopes||tc,e.authority||this.config.auth.authority),o=e.popupWindowAttributes||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true, acquiring token"),this.acquireTokenPopupAsync(e,r,o);{this.logger.verbose("asyncPopup set to false, opening popup before acquiring token");const n=this.openSizedPopup("about:blank",r,o);return this.acquireTokenPopupAsync(e,r,o,n)}}catch(r){return Promise.reject(r)}}logout(e){try{this.logger.verbose("logoutPopup called");const r=this.initializeLogoutRequest(e),o=this.generateLogoutPopupName(r),n=e&&e.authority,i=e&&e.mainWindowRedirectUri,a=e?.popupWindowAttributes||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true"),this.logoutPopupAsync(r,o,a,n,void 0,i);{this.logger.verbose("asyncPopup set to false, opening popup");const s=this.openSizedPopup("about:blank",o,a);return this.logoutPopupAsync(r,o,a,n,s,i)}}catch(r){return Promise.reject(r)}}async acquireTokenPopupAsync(e,r,o,n){this.logger.verbose("acquireTokenPopupAsync called");const i=this.initializeServerTelemetryManager(Oe.acquireTokenPopup),a=await te(this.initializeAuthorizationRequest.bind(this),A.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,this.correlationId)(e,oe.Popup);w_(a.authority);try{const s=await te(this.initializeAuthorizationCodeRequest.bind(this),A.StandardInteractionClientInitializeAuthorizationCodeRequest,this.logger,this.performanceClient,this.correlationId)(a),l=await te(this.createAuthCodeClient.bind(this),A.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)(i,a.authority,a.azureCloudOptions),c=xo.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,e.authenticationScheme);let u;c&&(u=this.performanceClient.startMeasurement(A.FetchAccountIdWithNativeBroker,e.correlationId));const d=await l.getAuthCodeUrl({...a,nativeBroker:c}),f=new Cv(l,this.browserStorage,s,this.logger,this.performanceClient),h={popup:n,popupName:r,popupWindowAttributes:o},g=this.initiateAuthRequest(d,h);this.eventHandler.emitEvent(se.POPUP_OPENED,oe.Popup,{popupWindow:g},null);const m=await this.monitorPopupForHash(g),w=$i(R_,A.DeserializeResponse,this.logger,this.performanceClient,this.correlationId)(m,this.config.auth.OIDCOptions.serverResponseType,this.logger);if(ko.removeThrottle(this.browserStorage,this.config.auth.clientId,s),w.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),u&&u.end({success:!0,isNativeBroker:!0}),!this.nativeMessageHandler)throw re(oc);const p=new Ba(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Oe.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,w.accountId,this.nativeStorage,a.correlationId),{userRequestState:b}=oo.parseRequestState(this.browserCrypto,a.state);return await p.acquireToken({...a,state:b,prompt:void 0})}return await f.handleCodeResponse(w,a)}catch(s){throw n&&n.close(),s instanceof We&&(s.setCorrelationId(this.correlationId),i.cacheFailedRequest(s)),s}}async logoutPopupAsync(e,r,o,n,i,a){this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(se.LOGOUT_START,oe.Popup,e);const s=this.initializeServerTelemetryManager(Oe.logoutPopup);try{await this.clearCacheOnLogout(e.account);const l=await te(this.createAuthCodeClient.bind(this),A.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)(s,n);try{l.authority.endSessionEndpoint}catch{if(e.account?.homeAccountId&&e.postLogoutRedirectUri&&l.authority.protocolMode===Yo.OIDC){if(this.browserStorage.removeAccount(e.account?.homeAccountId),this.eventHandler.emitEvent(se.LOGOUT_SUCCESS,oe.Popup,e),a){const d={apiId:Oe.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},f=Se.getAbsoluteUrl(a,Wo());await this.navigationClient.navigateInternal(f,d)}i&&i.close();return}}const c=l.getLogoutUri(e);this.eventHandler.emitEvent(se.LOGOUT_SUCCESS,oe.Popup,e);const u=this.openPopup(c,{popupName:r,popupWindowAttributes:o,popup:i});if(this.eventHandler.emitEvent(se.POPUP_OPENED,oe.Popup,{popupWindow:u},null),await this.monitorPopupForHash(u).catch(()=>{}),a){const d={apiId:Oe.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},f=Se.getAbsoluteUrl(a,Wo());this.logger.verbose("Redirecting main window to url specified in the request"),this.logger.verbosePii(`Redirecting main window to: ${f}`),await this.navigationClient.navigateInternal(f,d)}else this.logger.verbose("No main window navigation requested")}catch(l){throw i&&i.close(),l instanceof We&&(l.setCorrelationId(this.correlationId),s.cacheFailedRequest(l)),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(se.LOGOUT_FAILURE,oe.Popup,null,l),this.eventHandler.emitEvent(se.LOGOUT_END,oe.Popup),l}this.eventHandler.emitEvent(se.LOGOUT_END,oe.Popup)}initiateAuthRequest(e,r){if(e)return this.logger.infoPii(`Navigate to: ${e}`),this.openPopup(e,r);throw this.logger.error("Navigate url is empty"),re(of)}monitorPopupForHash(e){return new Promise((r,o)=>{this.logger.verbose("PopupHandler.monitorPopupForHash - polling started");const n=setInterval(()=>{if(e.closed){this.logger.error("PopupHandler.monitorPopupForHash - window closed"),clearInterval(n),o(re(Ai));return}let i="";try{i=e.location.href}catch{}if(!i||i==="about:blank")return;clearInterval(n);let a="";const s=this.config.auth.OIDCOptions.serverResponseType;e&&(s===rc.QUERY?a=e.location.search:a=e.location.hash),this.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"),r(a)},this.config.system.pollIntervalMilliseconds)}).finally(()=>{this.cleanPopup(e)})}openPopup(e,r){try{let o;if(r.popup?(o=r.popup,this.logger.verbosePii(`Navigating popup window to: ${e}`),o.location.assign(e)):typeof r.popup>"u"&&(this.logger.verbosePii(`Opening popup window to: ${e}`),o=this.openSizedPopup(e,r.popupName,r.popupWindowAttributes)),!o)throw re(QS);return o.focus&&o.focus(),this.currentWindow=o,window.addEventListener("beforeunload",this.unloadWindow),o}catch(o){throw this.logger.error("error opening popup "+o.message),this.browserStorage.setInteractionInProgress(!1),re(ZS)}}openSizedPopup(e,r,o){const n=window.screenLeft?window.screenLeft:window.screenX,i=window.screenTop?window.screenTop:window.screenY,a=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,s=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;let l=o.popupSize?.width,c=o.popupSize?.height,u=o.popupPosition?.top,d=o.popupPosition?.left;return(!l||l<0||l>a)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),l=Yr.POPUP_WIDTH),(!c||c<0||c>s)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),c=Yr.POPUP_HEIGHT),(!u||u<0||u>s)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),u=Math.max(0,s/2-Yr.POPUP_HEIGHT/2+i)),(!d||d<0||d>a)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),d=Math.max(0,a/2-Yr.POPUP_WIDTH/2+n)),window.open(e,r,`width=${l}, height=${c}, top=${u}, left=${d}, scrollbars=yes`)}unloadWindow(e){this.browserStorage.cleanRequestByInteractionType(oe.Popup),this.currentWindow&&this.currentWindow.close(),e.preventDefault()}cleanPopup(e){e&&e.close(),window.removeEventListener("beforeunload",this.unloadWindow),this.browserStorage.setInteractionInProgress(!1)}generatePopupName(e,r){return`${Yr.POPUP_NAME_PREFIX}.${this.config.auth.clientId}.${e.join("-")}.${r}.${this.correlationId}`}generateLogoutPopupName(e){const r=e.account&&e.account.homeAccountId;return`${Yr.POPUP_NAME_PREFIX}.${this.config.auth.clientId}.${r}.${this.correlationId}`}}/*! @azure/msal-browser v3.7.1 2024-01-23 */class Q0{constructor(e,r,o,n,i){this.authModule=e,this.browserStorage=r,this.authCodeRequest=o,this.logger=n,this.performanceClient=i}async initiateAuthRequest(e,r){if(this.logger.verbose("RedirectHandler.initiateAuthRequest called"),e){r.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(Ce.ORIGIN_URI,r.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(Ce.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest),this.logger.infoPii(`RedirectHandler.initiateAuthRequest: Navigate to: ${e}`);const o={apiId:Oe.acquireTokenRedirect,timeout:r.redirectTimeout,noHistory:!1};if(typeof r.onRedirectNavigate=="function")if(this.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),r.onRedirectNavigate(e)!==!1){this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),await r.navigationClient.navigateExternal(e,o);return}else{this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate returned false, stopping navigation");return}else{this.logger.verbose("RedirectHandler.initiateAuthRequest: Navigating window to navigate url"),await r.navigationClient.navigateExternal(e,o);return}}else throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),re(of)}async handleCodeResponse(e,r){this.logger.verbose("RedirectHandler.handleCodeResponse called"),this.browserStorage.setInteractionInProgress(!1);const o=this.browserStorage.generateStateKey(r),n=this.browserStorage.getTemporaryCache(o);if(!n)throw X(Xu,"Cached State");let i;try{i=this.authModule.handleFragmentResponse(e,n)}catch(c){throw c instanceof Hn&&c.subError===Ai?re(Ai):c}const a=this.browserStorage.generateNonceKey(n),s=this.browserStorage.getTemporaryCache(a);if(this.authCodeRequest.code=i.code,i.cloud_instance_host_name&&await te(this.authModule.updateAuthority.bind(this.authModule),A.UpdateTokenEndpointAuthority,this.logger,this.performanceClient,this.authCodeRequest.correlationId)(i.cloud_instance_host_name,this.authCodeRequest.correlationId),i.nonce=s||void 0,i.state=n,i.client_info)this.authCodeRequest.clientInfo=i.client_info;else{const c=this.checkCcsCredentials();c&&(this.authCodeRequest.ccsCredential=c)}const l=await this.authModule.acquireToken(this.authCodeRequest,i);return this.browserStorage.cleanRequestByState(r),l}checkCcsCredentials(){const e=this.browserStorage.getTemporaryCache(Ce.CCS_CREDENTIAL,!0);if(e)try{return JSON.parse(e)}catch{this.authModule.logger.error("Cache credential could not be parsed"),this.authModule.logger.errorPii(`Cache credential could not be parsed: ${e}`)}return null}}/*! @azure/msal-browser v3.7.1 2024-01-23 */class fA extends fs{constructor(e,r,o,n,i,a,s,l,c,u){super(e,r,o,n,i,a,s,c,u),this.nativeStorage=l}async acquireToken(e){const r=await te(this.initializeAuthorizationRequest.bind(this),A.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,this.correlationId)(e,oe.Redirect);this.browserStorage.updateCacheEntries(r.state,r.nonce,r.authority,r.loginHint||"",r.account||null);const o=this.initializeServerTelemetryManager(Oe.acquireTokenRedirect),n=i=>{i.persisted&&(this.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),this.browserStorage.cleanRequestByState(r.state),this.eventHandler.emitEvent(se.RESTORE_FROM_BFCACHE,oe.Redirect))};try{const i=await te(this.initializeAuthorizationCodeRequest.bind(this),A.StandardInteractionClientInitializeAuthorizationCodeRequest,this.logger,this.performanceClient,this.correlationId)(r),a=await te(this.createAuthCodeClient.bind(this),A.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)(o,r.authority,r.azureCloudOptions),s=new Q0(a,this.browserStorage,i,this.logger,this.performanceClient),l=await a.getAuthCodeUrl({...r,nativeBroker:xo.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,e.authenticationScheme)}),c=this.getRedirectStartPage(e.redirectStartPage);return this.logger.verbosePii(`Redirect start page: ${c}`),window.addEventListener("pageshow",n),await s.initiateAuthRequest(l,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:c,onRedirectNavigate:e.onRedirectNavigate})}catch(i){throw i instanceof We&&(i.setCorrelationId(this.correlationId),o.cacheFailedRequest(i)),window.removeEventListener("pageshow",n),this.browserStorage.cleanRequestByState(r.state),i}}async handleRedirectPromise(e){const r=this.initializeServerTelemetryManager(Oe.handleRedirectPromise);try{if(!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),null;const[o,n]=this.getRedirectResponse(e||"");if(!o)return this.logger.info("handleRedirectPromise did not detect a response as a result of a redirect. Cleaning temporary cache."),this.browserStorage.cleanRequestByInteractionType(oe.Redirect),null;const i=this.browserStorage.getTemporaryCache(Ce.ORIGIN_URI,!0)||j.EMPTY_STRING,a=Se.removeHashFromUrl(i),s=Se.removeHashFromUrl(window.location.href);if(a===s&&this.config.auth.navigateToLoginRequestUrl)return this.logger.verbose("Current page is loginRequestUrl, handling response"),i.indexOf("#")>-1&&kR(i),await this.handleResponse(o,r);if(this.config.auth.navigateToLoginRequestUrl){if(!yv()||this.config.system.allowRedirectInIframe){this.browserStorage.setTemporaryCache(Ce.URL_HASH,n,!0);const l={apiId:Oe.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0};let c=!0;if(!i||i==="null"){const u=_R();this.browserStorage.setTemporaryCache(Ce.ORIGIN_URI,u,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),c=await this.navigationClient.navigateInternal(u,l)}else this.logger.verbose(`Navigating to loginRequestUrl: ${i}`),c=await this.navigationClient.navigateInternal(i,l);if(!c)return await this.handleResponse(o,r)}}else return this.logger.verbose("NavigateToLoginRequestUrl set to false, handling response"),await this.handleResponse(o,r);return null}catch(o){throw o instanceof We&&(o.setCorrelationId(this.correlationId),r.cacheFailedRequest(o)),this.browserStorage.cleanRequestByInteractionType(oe.Redirect),o}}getRedirectResponse(e){this.logger.verbose("getRedirectResponseHash called");let r=e;r||(this.config.auth.OIDCOptions.serverResponseType===rc.QUERY?r=window.location.search:r=window.location.hash);let o=Qu(r);if(o){try{uA(o,this.browserCrypto,oe.Redirect)}catch(i){return i instanceof We&&this.logger.error(`Interaction type validation failed due to ${i.errorCode}: ${i.errorMessage}`),[null,""]}return wR(window),this.logger.verbose("Hash contains known properties, returning response hash"),[o,r]}const n=this.browserStorage.getTemporaryCache(Ce.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(Ce.URL_HASH)),n&&(o=Qu(n),o)?(this.logger.verbose("Hash does not contain known properties, returning cached hash"),[o,n]):[null,""]}async handleResponse(e,r){const o=e.state;if(!o)throw re(pv);const n=this.browserStorage.getCachedRequest(o);if(this.logger.verbose("handleResponse called, retrieved cached request"),e.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw re(oc);const l=new Ba(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Oe.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,e.accountId,this.nativeStorage,n.correlationId),{userRequestState:c}=oo.parseRequestState(this.browserCrypto,o);return l.acquireToken({...n,state:c,prompt:void 0}).finally(()=>{this.browserStorage.cleanRequestByState(o)})}const i=this.browserStorage.getCachedAuthority(o);if(!i)throw re(mv);const a=await te(this.createAuthCodeClient.bind(this),A.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)(r,i);return ko.removeThrottle(this.browserStorage,this.config.auth.clientId,n),new Q0(a,this.browserStorage,n,this.logger,this.performanceClient).handleCodeResponse(e,o)}async logout(e){this.logger.verbose("logoutRedirect called");const r=this.initializeLogoutRequest(e),o=this.initializeServerTelemetryManager(Oe.logout);try{this.eventHandler.emitEvent(se.LOGOUT_START,oe.Redirect,e),await this.clearCacheOnLogout(r.account);const n={apiId:Oe.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},i=await te(this.createAuthCodeClient.bind(this),A.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,this.correlationId)(o,e&&e.authority);if(i.authority.protocolMode===Yo.OIDC)try{i.authority.endSessionEndpoint}catch{if(r.account?.homeAccountId){this.browserStorage.removeAccount(r.account?.homeAccountId),this.eventHandler.emitEvent(se.LOGOUT_SUCCESS,oe.Redirect,r);return}}const a=i.getLogoutUri(r);if(this.eventHandler.emitEvent(se.LOGOUT_SUCCESS,oe.Redirect,r),e&&typeof e.onRedirectNavigate=="function")if(e.onRedirectNavigate(a)!==!1){this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),await this.navigationClient.navigateExternal(a,n);return}else this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation");else{this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),await this.navigationClient.navigateExternal(a,n);return}}catch(n){throw n instanceof We&&(n.setCorrelationId(this.correlationId),o.cacheFailedRequest(n)),this.eventHandler.emitEvent(se.LOGOUT_FAILURE,oe.Redirect,null,n),this.eventHandler.emitEvent(se.LOGOUT_END,oe.Redirect),n}this.eventHandler.emitEvent(se.LOGOUT_END,oe.Redirect)}getRedirectStartPage(e){const r=e||window.location.href;return Se.getAbsoluteUrl(r,Wo())}}/*! @azure/msal-browser v3.7.1 2024-01-23 */async function hA(t,e,r,o,n){if(e.addQueueMeasurement(A.SilentHandlerInitiateAuthRequest,o),!t)throw r.info("Navigate url is empty"),re(of);return n?te(pA,A.SilentHandlerLoadFrame,r,e,o)(t,n,e,o):$i(mA,A.SilentHandlerLoadFrameSync,r,e,o)(t)}async function gA(t,e,r,o,n,i,a){return o.addQueueMeasurement(A.SilentHandlerMonitorIframeForHash,i),new Promise((s,l)=>{e{window.clearInterval(u),l(re(JS))},e),u=window.setInterval(()=>{let d="";const f=t.contentWindow;try{d=f?f.location.href:""}catch{}if(!d||d==="about:blank")return;let h="";f&&(a===rc.QUERY?h=f.location.search:h=f.location.hash),window.clearTimeout(c),window.clearInterval(u),s(h)},r)}).finally(()=>{$i(vA,A.RemoveHiddenIframe,n,o,i)(t)})}function pA(t,e,r,o){return r.addQueueMeasurement(A.SilentHandlerLoadFrame,o),new Promise((n,i)=>{const a=A_();window.setTimeout(()=>{if(!a){i("Unable to load iframe");return}a.src=t,n(a)},e)})}function mA(t){const e=A_();return e.src=t,e}function A_(){const t=document.createElement("iframe");return t.style.visibility="hidden",t.style.position="absolute",t.style.width=t.style.height="0",t.style.border="0",t.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),document.body.appendChild(t),t}function vA(t){document.body===t.parentNode&&document.body.removeChild(t)}/*! @azure/msal-browser v3.7.1 2024-01-23 */class bA extends fs{constructor(e,r,o,n,i,a,s,l,c,u,d){super(e,r,o,n,i,a,l,u,d),this.apiId=s,this.nativeStorage=c}async acquireToken(e){if(this.performanceClient.addQueueMeasurement(A.SilentIframeClientAcquireToken,e.correlationId),!e.loginHint&&!e.sid&&(!e.account||!e.account.username)&&this.logger.warning("No user hint provided. The authorization server may need more information to complete this request."),e.prompt&&e.prompt!==Kt.NONE&&e.prompt!==Kt.NO_SESSION)throw re(n_);const r=await te(this.initializeAuthorizationRequest.bind(this),A.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,e.correlationId)({...e,prompt:e.prompt||Kt.NONE},oe.Silent);w_(r.authority);const o=this.initializeServerTelemetryManager(this.apiId);try{const n=await te(this.createAuthCodeClient.bind(this),A.StandardInteractionClientCreateAuthCodeClient,this.logger,this.performanceClient,e.correlationId)(o,r.authority,r.azureCloudOptions);return await te(this.silentTokenHelper.bind(this),A.SilentIframeClientTokenHelper,this.logger,this.performanceClient,e.correlationId)(n,r)}catch(n){throw n instanceof We&&(n.setCorrelationId(this.correlationId),o.cacheFailedRequest(n)),n}}logout(){return Promise.reject(re(nf))}async silentTokenHelper(e,r){const o=r.correlationId;this.performanceClient.addQueueMeasurement(A.SilentIframeClientTokenHelper,o);const n=await te(this.initializeAuthorizationCodeRequest.bind(this),A.StandardInteractionClientInitializeAuthorizationCodeRequest,this.logger,this.performanceClient,o)(r),i=await te(e.getAuthCodeUrl.bind(e),A.GetAuthCodeUrl,this.logger,this.performanceClient,o)({...r,nativeBroker:xo.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,r.authenticationScheme)}),a=new Cv(e,this.browserStorage,n,this.logger,this.performanceClient),s=await te(hA,A.SilentHandlerInitiateAuthRequest,this.logger,this.performanceClient,o)(i,this.performanceClient,this.logger,o,this.config.system.navigateFrameWait),l=this.config.auth.OIDCOptions.serverResponseType,c=await te(gA,A.SilentHandlerMonitorIframeForHash,this.logger,this.performanceClient,o)(s,this.config.system.iframeHashTimeout,this.config.system.pollIntervalMilliseconds,this.performanceClient,this.logger,o,l),u=$i(R_,A.DeserializeResponse,this.logger,this.performanceClient,this.correlationId)(c,l,this.logger);if(u.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw re(oc);const d=new Ba(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,u.accountId,this.browserStorage,o),{userRequestState:f}=oo.parseRequestState(this.browserCrypto,r.state);return te(d.acquireToken.bind(d),A.NativeInteractionClientAcquireToken,this.logger,this.performanceClient,o)({...r,state:f,prompt:r.prompt||Kt.NONE})}return te(a.handleCodeResponse.bind(a),A.HandleCodeResponse,this.logger,this.performanceClient,o)(u,r)}}/*! @azure/msal-browser v3.7.1 2024-01-23 */class yA extends fs{async acquireToken(e){this.performanceClient.addQueueMeasurement(A.SilentRefreshClientAcquireToken,e.correlationId);const r=await te(this.initializeBaseRequest.bind(this),A.InitializeBaseRequest,this.logger,this.performanceClient,e.correlationId)(e,e.account),o={...e,...r};e.redirectUri&&(o.redirectUri=this.getRedirectUri(e.redirectUri));const n=this.initializeServerTelemetryManager(Oe.acquireTokenSilent_silentFlow),i=await this.createRefreshTokenClient(n,o.authority,o.azureCloudOptions);return te(i.acquireTokenByRefreshToken.bind(i),A.RefreshTokenClientAcquireTokenByRefreshToken,this.logger,this.performanceClient,e.correlationId)(o).catch(a=>{throw a.setCorrelationId(this.correlationId),n.cacheFailedRequest(a),a})}logout(){return Promise.reject(re(nf))}async createRefreshTokenClient(e,r,o){const n=await te(this.getClientConfiguration.bind(this),A.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,this.correlationId)(e,r,o);return new Tg(n,this.performanceClient)}}/*! @azure/msal-browser v3.7.1 2024-01-23 */class wA{constructor(e,r,o,n){this.isBrowserEnvironment=typeof window<"u",this.config=e,this.storage=r,this.logger=o,this.cryptoObj=n}loadExternalTokens(e,r,o){if(this.logger.info("TokenCache - loadExternalTokens called"),!r.id_token)throw re($r);const n=Ui(r.id_token,Co);let i,a,s;if(e.account)s=Ct.createFromAccountInfo(e.account),i=new Ea(s,this.loadIdToken(r.id_token,s.homeAccountId,e.account.environment,e.account.tenantId),this.loadAccessToken(e,r,s.homeAccountId,e.account.environment,e.account.tenantId,o),this.loadRefreshToken(e,r,s.homeAccountId,e.account.environment));else if(e.authority){const l=Lt.generateAuthority(e.authority,e.azureCloudOptions),c={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache};if(a=new Lt(l,this.config.system.networkClient,this.storage,c,this.logger,e.correlationId||rn()),o.clientInfo)this.logger.trace("TokenCache - homeAccountId from options"),s=this.loadAccount(n,a,o.clientInfo),i=new Ea(s,this.loadIdToken(r.id_token,s.homeAccountId,a.hostnameAndPort,a.tenant),this.loadAccessToken(e,r,s.homeAccountId,a.hostnameAndPort,a.tenant,o),this.loadRefreshToken(e,r,s.homeAccountId,a.hostnameAndPort));else if(r.client_info)this.logger.trace("TokenCache - homeAccountId from response"),s=this.loadAccount(n,a,r.client_info),i=new Ea(s,this.loadIdToken(r.id_token,s.homeAccountId,a.hostnameAndPort,a.tenant),this.loadAccessToken(e,r,s.homeAccountId,a.hostnameAndPort,a.tenant,o),this.loadRefreshToken(e,r,s.homeAccountId,a.hostnameAndPort));else throw re($r)}else throw re($r);return this.generateAuthenticationResult(e,n,i,s,a)}loadAccount(e,r,o,n){if(this.isBrowserEnvironment){this.logger.verbose("TokenCache - loading account");let i;if(n?i=n:r.authorityType!==void 0&&o&&(i=Ct.generateHomeAccountId(o,r.authorityType,this.logger,this.cryptoObj,e)),!i)throw re($r);const a=e.tid,s=dv(this.storage,r,i,e,Co,o,r.hostnameAndPort,a,void 0,void 0,this.logger);return this.storage.setAccount(s),s}else throw re($r)}loadIdToken(e,r,o,n){const i=Zd(r,o,e,this.config.auth.clientId,n);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading id token"),this.storage.setIdTokenCredential(i),i;throw re($r)}loadAccessToken(e,r,o,n,i,a){if(!r.access_token)return this.logger.verbose("TokenCache - No access token provided for caching"),null;if(!r.expires_in||!a.extendedExpiresOn)throw re($r);const s=new gt(e.scopes).printScopes(),l=a.expiresOn||r.expires_in+new Date().getTime()/1e3,c=a.extendedExpiresOn,u=Qd(o,n,r.access_token,this.config.auth.clientId,i,s,l,c,Co);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading access token"),this.storage.setAccessTokenCredential(u),u;throw re($r)}loadRefreshToken(e,r,o,n){if(!r.refresh_token)return this.logger.verbose("TokenCache - No refresh token provided for caching"),null;const i=wS(o,n,r.refresh_token,this.config.auth.clientId);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading refresh token"),this.storage.setRefreshTokenCredential(i),i;throw re($r)}generateAuthenticationResult(e,r,o,n,i){let a=j.EMPTY_STRING,s=[],l=null,c;o?.accessToken&&(a=o.accessToken.secret,s=gt.fromString(o.accessToken.target).asArray(),l=new Date(Number(o.accessToken.expiresOn)*1e3),c=new Date(Number(o.accessToken.extendedExpiresOn)*1e3));const u=r.oid||r.sub||j.EMPTY_STRING,d=r.tid||j.EMPTY_STRING;return{authority:i?i.canonicalAuthority:j.EMPTY_STRING,uniqueId:u,tenantId:d,scopes:s,account:n.getAccountInfo(),idToken:o.idToken?.secret||"",idTokenClaims:r||{},accessToken:a,fromCache:!0,expiresOn:l,correlationId:e.correlationId||j.EMPTY_STRING,requestId:j.EMPTY_STRING,extExpiresOn:c,familyId:j.EMPTY_STRING,tokenType:o?.accessToken?.tokenType||j.EMPTY_STRING,state:j.EMPTY_STRING,cloudGraphHostName:n.cloudGraphHostName||j.EMPTY_STRING,msGraphHost:n.msGraphHost||j.EMPTY_STRING,code:void 0,fromNativeBroker:!1}}}/*! @azure/msal-browser v3.7.1 2024-01-23 */class kA extends HS{constructor(e){super(e),this.includeRedirectUri=!1}}/*! @azure/msal-browser v3.7.1 2024-01-23 */class SA extends fs{constructor(e,r,o,n,i,a,s,l,c,u){super(e,r,o,n,i,a,l,c,u),this.apiId=s}async acquireToken(e){if(!e.code)throw re(u_);const r=await te(this.initializeAuthorizationRequest.bind(this),A.StandardInteractionClientInitializeAuthorizationRequest,this.logger,this.performanceClient,e.correlationId)(e,oe.Silent),o=this.initializeServerTelemetryManager(this.apiId);try{const n={...r,code:e.code},i=await te(this.getClientConfiguration.bind(this),A.StandardInteractionClientGetClientConfiguration,this.logger,this.performanceClient,e.correlationId)(o,r.authority),a=new kA(i);this.logger.verbose("Auth code client created");const s=new Cv(a,this.browserStorage,n,this.logger,this.performanceClient);return await te(s.handleCodeResponseFromServer.bind(s),A.HandleCodeResponseFromServer,this.logger,this.performanceClient,e.correlationId)({code:e.code,msgraph_host:e.msGraphHost,cloud_graph_host_name:e.cloudGraphHostName,cloud_instance_host_name:e.cloudInstanceHostName},r,!1)}catch(n){throw n instanceof We&&(n.setCorrelationId(this.correlationId),o.cacheFailedRequest(n)),n}}logout(){return Promise.reject(re(nf))}}/*! @azure/msal-browser v3.7.1 2024-01-23 */class af{constructor(e){this.atsAsyncMeasurement=void 0,this.operatingContext=e,this.isBrowserEnvironment=this.operatingContext.isBrowserEnvironment(),this.config=e.getConfig(),this.initialized=!1,this.logger=this.operatingContext.getLogger(),this.networkClient=this.config.system.networkClient,this.navigationClient=this.config.system.navigationClient,this.redirectResponse=new Map,this.hybridAuthCodeResponses=new Map,this.performanceClient=this.config.telemetry.client,this.browserCrypto=this.isBrowserEnvironment?new Va(this.logger,this.performanceClient):Yu,this.eventHandler=new YR(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new Ag(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger,XI(this.config.auth)):XR(this.config.auth.clientId,this.logger);const r={cacheLocation:St.MemoryStorage,temporaryCacheLocation:St.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!1};this.nativeInternalStorage=new Ag(this.config.auth.clientId,r,this.browserCrypto,this.logger),this.tokenCache=new wA(this.config,this.browserStorage,this.logger,this.browserCrypto),this.activeSilentTokenRequests=new Map,this.trackPageVisibility=this.trackPageVisibility.bind(this),this.trackPageVisibilityWithMeasurement=this.trackPageVisibilityWithMeasurement.bind(this)}static async createController(e){const r=new af(e);return await r.initialize(),r}trackPageVisibility(){this.atsAsyncMeasurement&&(this.logger.info("Perf: Visibility change detected"),this.atsAsyncMeasurement.increment({visibilityChangeCount:1}))}async initialize(){if(this.logger.trace("initialize called"),this.initialized){this.logger.info("initialize has already been called, exiting early.");return}const e=this.config.system.allowNativeBroker,r=this.performanceClient.startMeasurement(A.InitializeClientApplication);if(this.eventHandler.emitEvent(se.INITIALIZE_START),e)try{this.nativeExtensionProvider=await xo.createProvider(this.logger,this.config.system.nativeBrokerHandshakeTimeout,this.performanceClient)}catch(o){this.logger.verbose(o)}this.config.cache.claimsBasedCachingEnabled||(this.logger.verbose("Claims-based caching is disabled. Clearing the previous cache with claims"),await te(this.browserStorage.clearTokensAndKeysWithClaims.bind(this.browserStorage),A.ClearTokensAndKeysWithClaims,this.logger,this.performanceClient)(this.performanceClient)),this.initialized=!0,this.eventHandler.emitEvent(se.INITIALIZE_END),r.end({allowNativeBroker:e,success:!0})}async handleRedirectPromise(e){this.logger.verbose("handleRedirectPromise called"),W0(this.initialized);const r=this.getAllAccounts();if(this.isBrowserEnvironment){const o=e||"";let n=this.redirectResponse.get(o);if(typeof n>"u"){this.eventHandler.emitEvent(se.HANDLE_REDIRECT_START,oe.Redirect),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise");const i=this.browserStorage.getCachedNativeRequest();let a;if(i&&xo.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!e)this.logger.trace("handleRedirectPromise - acquiring token from native platform"),a=new Ba(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Oe.handleRedirectPromise,this.performanceClient,this.nativeExtensionProvider,i.accountId,this.nativeInternalStorage,i.correlationId).handleRedirectPromise();else{this.logger.trace("handleRedirectPromise - acquiring token from web flow");const s=this.browserStorage.getTemporaryCache(Ce.CORRELATION_ID,!0)||j.EMPTY_STRING;a=this.createRedirectClient(s).handleRedirectPromise(e)}n=a.then(s=>(s&&(r.length{throw r.length>0?this.eventHandler.emitEvent(se.ACQUIRE_TOKEN_FAILURE,oe.Redirect,null,s):this.eventHandler.emitEvent(se.LOGIN_FAILURE,oe.Redirect,null,s),this.eventHandler.emitEvent(se.HANDLE_REDIRECT_END,oe.Redirect),s}),this.redirectResponse.set(o,n)}else this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call");return n}return this.logger.verbose("handleRedirectPromise returns null, not browser environment"),null}async acquireTokenRedirect(e){const r=this.getRequestCorrelationId(e);this.logger.verbose("acquireTokenRedirect called",r),this.preflightBrowserEnvironmentCheck(oe.Redirect);const o=this.getAllAccounts().length>0;o?this.eventHandler.emitEvent(se.ACQUIRE_TOKEN_START,oe.Redirect,e):this.eventHandler.emitEvent(se.LOGIN_START,oe.Redirect,e);let n;return this.nativeExtensionProvider&&this.canUseNative(e)?n=new Ba(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Oe.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(e),this.nativeInternalStorage,r).acquireTokenRedirect(e).catch(a=>{if(a instanceof $o&&ca(a))return this.nativeExtensionProvider=void 0,this.createRedirectClient(r).acquireToken(e);if(a instanceof so)return this.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow"),this.createRedirectClient(r).acquireToken(e);throw this.getBrowserStorage().setInteractionInProgress(!1),a}):n=this.createRedirectClient(r).acquireToken(e),n.catch(i=>{throw o?this.eventHandler.emitEvent(se.ACQUIRE_TOKEN_FAILURE,oe.Redirect,null,i):this.eventHandler.emitEvent(se.LOGIN_FAILURE,oe.Redirect,null,i),i})}acquireTokenPopup(e){const r=this.getRequestCorrelationId(e),o=this.performanceClient.startMeasurement(A.AcquireTokenPopup,r);try{this.logger.verbose("acquireTokenPopup called",r),this.preflightBrowserEnvironmentCheck(oe.Popup)}catch(a){return Promise.reject(a)}const n=this.getAllAccounts();n.length>0?this.eventHandler.emitEvent(se.ACQUIRE_TOKEN_START,oe.Popup,e):this.eventHandler.emitEvent(se.LOGIN_START,oe.Popup,e);let i;return this.canUseNative(e)?i=this.acquireTokenNative({...e,correlationId:r},Oe.acquireTokenPopup).then(a=>(this.getBrowserStorage().setInteractionInProgress(!1),o.end({success:!0,isNativeBroker:!0,requestId:a.requestId}),a)).catch(a=>{if(a instanceof $o&&ca(a))return this.nativeExtensionProvider=void 0,this.createPopupClient(r).acquireToken(e);if(a instanceof so)return this.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow"),this.createPopupClient(r).acquireToken(e);throw this.getBrowserStorage().setInteractionInProgress(!1),a}):i=this.createPopupClient(r).acquireToken(e),i.then(a=>(n.length(n.length>0?this.eventHandler.emitEvent(se.ACQUIRE_TOKEN_FAILURE,oe.Popup,null,a):this.eventHandler.emitEvent(se.LOGIN_FAILURE,oe.Popup,null,a),o.end({errorCode:a.errorCode,subErrorCode:a.subError,success:!1}),Promise.reject(a)))}trackPageVisibilityWithMeasurement(){const e=this.ssoSilentMeasurement||this.acquireTokenByCodeAsyncMeasurement;e&&(this.logger.info("Perf: Visibility change detected in ",e.event.name),e.increment({visibilityChangeCount:1}))}async ssoSilent(e){const r=this.getRequestCorrelationId(e),o={...e,prompt:e.prompt,correlationId:r};this.preflightBrowserEnvironmentCheck(oe.Silent),this.ssoSilentMeasurement=this.performanceClient.startMeasurement(A.SsoSilent,r),this.ssoSilentMeasurement?.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),this.logger.verbose("ssoSilent called",r),this.eventHandler.emitEvent(se.SSO_SILENT_START,oe.Silent,o);let n;return this.canUseNative(o)?n=this.acquireTokenNative(o,Oe.ssoSilent).catch(i=>{if(i instanceof $o&&ca(i))return this.nativeExtensionProvider=void 0,this.createSilentIframeClient(o.correlationId).acquireToken(o);throw i}):n=this.createSilentIframeClient(o.correlationId).acquireToken(o),n.then(i=>(this.eventHandler.emitEvent(se.SSO_SILENT_SUCCESS,oe.Silent,i),this.ssoSilentMeasurement?.add({accessTokenSize:i.accessToken.length,idTokenSize:i.idToken.length}),this.ssoSilentMeasurement?.end({success:!0,isNativeBroker:i.fromNativeBroker,requestId:i.requestId}),i)).catch(i=>{throw this.eventHandler.emitEvent(se.SSO_SILENT_FAILURE,oe.Silent,null,i),this.ssoSilentMeasurement?.end({errorCode:i.errorCode,subErrorCode:i.subError,success:!1}),i}).finally(()=>{document.removeEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement)})}async acquireTokenByCode(e){const r=this.getRequestCorrelationId(e);this.preflightBrowserEnvironmentCheck(oe.Silent),this.logger.trace("acquireTokenByCode called",r),this.eventHandler.emitEvent(se.ACQUIRE_TOKEN_BY_CODE_START,oe.Silent,e);const o=this.performanceClient.startMeasurement(A.AcquireTokenByCode,r);try{if(e.code&&e.nativeAccountId)throw re(f_);if(e.code){const n=e.code;let i=this.hybridAuthCodeResponses.get(n);return i?(this.logger.verbose("Existing acquireTokenByCode request found",r),o.discard()):(this.logger.verbose("Initiating new acquireTokenByCode request",r),i=this.acquireTokenByCodeAsync({...e,correlationId:r}).then(a=>(this.eventHandler.emitEvent(se.ACQUIRE_TOKEN_BY_CODE_SUCCESS,oe.Silent,a),this.hybridAuthCodeResponses.delete(n),o.add({accessTokenSize:a.accessToken.length,idTokenSize:a.idToken.length}),o.end({success:!0,isNativeBroker:a.fromNativeBroker,requestId:a.requestId}),a)).catch(a=>{throw this.hybridAuthCodeResponses.delete(n),this.eventHandler.emitEvent(se.ACQUIRE_TOKEN_BY_CODE_FAILURE,oe.Silent,null,a),o.end({errorCode:a.errorCode,subErrorCode:a.subError,success:!1}),a}),this.hybridAuthCodeResponses.set(n,i)),await i}else if(e.nativeAccountId){if(this.canUseNative(e,e.nativeAccountId))return await this.acquireTokenNative({...e,correlationId:r},Oe.acquireTokenByCode,e.nativeAccountId).catch(n=>{throw n instanceof $o&&ca(n)&&(this.nativeExtensionProvider=void 0),n});throw re(h_)}else throw re(d_)}catch(n){throw this.eventHandler.emitEvent(se.ACQUIRE_TOKEN_BY_CODE_FAILURE,oe.Silent,null,n),o.end({errorCode:n instanceof We&&n.errorCode||void 0,subErrorCode:n instanceof We&&n.subError||void 0,success:!1}),n}}async acquireTokenByCodeAsync(e){return this.logger.trace("acquireTokenByCodeAsync called",e.correlationId),this.acquireTokenByCodeAsyncMeasurement=this.performanceClient.startMeasurement(A.AcquireTokenByCodeAsync,e.correlationId),this.acquireTokenByCodeAsyncMeasurement?.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),await this.createSilentAuthCodeClient(e.correlationId).acquireToken(e).then(n=>(this.acquireTokenByCodeAsyncMeasurement?.end({success:!0,fromCache:n.fromCache,isNativeBroker:n.fromNativeBroker,requestId:n.requestId}),n)).catch(n=>{throw this.acquireTokenByCodeAsyncMeasurement?.end({errorCode:n.errorCode,subErrorCode:n.subError,success:!1}),n}).finally(()=>{document.removeEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement)})}async acquireTokenFromCache(e,r,o){switch(this.performanceClient.addQueueMeasurement(A.AcquireTokenFromCache,r.correlationId),o){case Rr.Default:case Rr.AccessToken:case Rr.AccessTokenAndRefreshToken:return te(e.acquireToken.bind(e),A.SilentCacheClientAcquireToken,this.logger,this.performanceClient,r.correlationId)(r);default:throw X(Bn)}}async acquireTokenByRefreshToken(e,r){switch(this.performanceClient.addQueueMeasurement(A.AcquireTokenByRefreshToken,e.correlationId),r){case Rr.Default:case Rr.AccessTokenAndRefreshToken:case Rr.RefreshToken:case Rr.RefreshTokenAndNetwork:const o=this.createSilentRefreshClient(e.correlationId);return te(o.acquireToken.bind(o),A.SilentRefreshClientAcquireToken,this.logger,this.performanceClient,e.correlationId)(e);default:throw X(Bn)}}async acquireTokenBySilentIframe(e){this.performanceClient.addQueueMeasurement(A.AcquireTokenBySilentIframe,e.correlationId);const r=this.createSilentIframeClient(e.correlationId);return te(r.acquireToken.bind(r),A.SilentIframeClientAcquireToken,this.logger,this.performanceClient,e.correlationId)(e)}async logout(e){const r=this.getRequestCorrelationId(e);return this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.",r),this.logoutRedirect({correlationId:r,...e})}async logoutRedirect(e){const r=this.getRequestCorrelationId(e);return this.preflightBrowserEnvironmentCheck(oe.Redirect),this.createRedirectClient(r).logout(e)}logoutPopup(e){try{const r=this.getRequestCorrelationId(e);return this.preflightBrowserEnvironmentCheck(oe.Popup),this.createPopupClient(r).logout(e)}catch(r){return Promise.reject(r)}}async clearCache(e){const r=this.getRequestCorrelationId(e);return this.createSilentCacheClient(r).logout(e)}getAllAccounts(e){return this.logger.verbose("getAllAccounts called"),this.isBrowserEnvironment?this.browserStorage.getAllAccounts(e):[]}getAccount(e){if(this.logger.trace("getAccount called"),Object.keys(e).length===0)return this.logger.warning("getAccount: No accountFilter provided"),null;const r=this.browserStorage.getAccountInfoFilteredBy(e);return r?(this.logger.verbose("getAccount: Account matching provided filter found, returning"),r):(this.logger.verbose("getAccount: No matching account found, returning null"),null)}getAccountByUsername(e){if(this.logger.trace("getAccountByUsername called"),!e)return this.logger.warning("getAccountByUsername: No username provided"),null;const r=this.browserStorage.getAccountInfoFilteredBy({username:e});return r?(this.logger.verbose("getAccountByUsername: Account matching username found, returning"),this.logger.verbosePii(`getAccountByUsername: Returning signed-in accounts matching username: ${e}`),r):(this.logger.verbose("getAccountByUsername: No matching account found, returning null"),null)}getAccountByHomeId(e){if(this.logger.trace("getAccountByHomeId called"),!e)return this.logger.warning("getAccountByHomeId: No homeAccountId provided"),null;const r=this.browserStorage.getAccountInfoFilteredBy({homeAccountId:e});return r?(this.logger.verbose("getAccountByHomeId: Account matching homeAccountId found, returning"),this.logger.verbosePii(`getAccountByHomeId: Returning signed-in accounts matching homeAccountId: ${e}`),r):(this.logger.verbose("getAccountByHomeId: No matching account found, returning null"),null)}getAccountByLocalId(e){if(this.logger.trace("getAccountByLocalId called"),!e)return this.logger.warning("getAccountByLocalId: No localAccountId provided"),null;const r=this.browserStorage.getAccountInfoFilteredBy({localAccountId:e});return r?(this.logger.verbose("getAccountByLocalId: Account matching localAccountId found, returning"),this.logger.verbosePii(`getAccountByLocalId: Returning signed-in accounts matching localAccountId: ${e}`),r):(this.logger.verbose("getAccountByLocalId: No matching account found, returning null"),null)}setActiveAccount(e){this.browserStorage.setActiveAccount(e)}getActiveAccount(){return this.browserStorage.getActiveAccount()}async hydrateCache(e,r){this.logger.verbose("hydrateCache called");const o=Ct.createFromAccountInfo(e.account,e.cloudGraphHostName,e.msGraphHost);return this.browserStorage.setAccount(o),e.fromNativeBroker?(this.logger.verbose("Response was from native broker, storing in-memory"),this.nativeInternalStorage.hydrateCache(e,r)):this.browserStorage.hydrateCache(e,r)}preflightBrowserEnvironmentCheck(e,r=!1){if(this.logger.verbose("preflightBrowserEnvironmentCheck started"),TR(this.isBrowserEnvironment),xR(e,this.config.system.allowRedirectInIframe),eh(),CR(),W0(this.initialized),e===oe.Redirect&&this.config.cache.cacheLocation===St.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw wt(C_);(e===oe.Redirect||e===oe.Popup)&&this.preflightInteractiveRequest(!r)}preflightInteractiveRequest(e){this.logger.verbose("preflightInteractiveRequest called, validating app environment"),eh(),e&&this.getBrowserStorage().setInteractionInProgress(!0)}async acquireTokenNative(e,r,o){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw re(oc);return new Ba(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,r,this.performanceClient,this.nativeExtensionProvider,o||this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId).acquireToken(e)}canUseNative(e,r){if(this.logger.trace("canUseNative called"),!xo.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme))return this.logger.trace("canUseNative: isNativeAvailable returned false, returning false"),!1;if(e.prompt)switch(e.prompt){case Kt.NONE:case Kt.CONSENT:case Kt.LOGIN:this.logger.trace("canUseNative: prompt is compatible with native flow");break;default:return this.logger.trace(`canUseNative: prompt = ${e.prompt} is not compatible with native flow, returning false`),!1}return!r&&!this.getNativeAccountId(e)?(this.logger.trace("canUseNative: nativeAccountId is not available, returning false"),!1):!0}getNativeAccountId(e){const r=e.account||this.getAccount({loginHint:e.loginHint,sid:e.sid})||this.getActiveAccount();return r&&r.nativeAccountId||""}createPopupClient(e){return new dA(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)}createRedirectClient(e){return new fA(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)}createSilentIframeClient(e){return new bA(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Oe.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)}createSilentCacheClient(e){return new I_(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)}createSilentRefreshClient(e){return new yA(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)}createSilentAuthCodeClient(e){return new SA(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Oe.acquireTokenByCode,this.performanceClient,this.nativeExtensionProvider,e)}addEventCallback(e){return this.eventHandler.addEventCallback(e)}removeEventCallback(e){this.eventHandler.removeEventCallback(e)}addPerformanceCallback(e){return this.performanceClient.addPerformanceCallback(e)}removePerformanceCallback(e){return this.performanceClient.removePerformanceCallback(e)}enableAccountStorageEvents(){this.eventHandler.enableAccountStorageEvents()}disableAccountStorageEvents(){this.eventHandler.disableAccountStorageEvents()}getTokenCache(){return this.tokenCache}getLogger(){return this.logger}setLogger(e){this.logger=e}initializeWrapperLibrary(e,r){this.browserStorage.setWrapperMetadata(e,r)}setNavigationClient(e){this.navigationClient=e}getConfiguration(){return this.config}getPerformanceClient(){return this.performanceClient}getBrowserStorage(){return this.browserStorage}isBrowserEnv(){return this.isBrowserEnvironment}getEventHandler(){return this.eventHandler}getRequestCorrelationId(e){return e?.correlationId?e.correlationId:this.isBrowserEnvironment?rn():j.EMPTY_STRING}async loginRedirect(e){const r=this.getRequestCorrelationId(e);return this.logger.verbose("loginRedirect called",r),this.acquireTokenRedirect({correlationId:r,...e||K0})}loginPopup(e){const r=this.getRequestCorrelationId(e);return this.logger.verbose("loginPopup called",r),this.acquireTokenPopup({correlationId:r,...e||K0})}async acquireTokenSilent(e){const r=this.getRequestCorrelationId(e),o=this.performanceClient.startMeasurement(A.AcquireTokenSilent,r);o.add({cacheLookupPolicy:e.cacheLookupPolicy}),this.preflightBrowserEnvironmentCheck(oe.Silent),this.logger.verbose("acquireTokenSilent called",r);const n=e.account||this.getActiveAccount();if(!n)throw re(o_);const i={clientId:this.config.auth.clientId,authority:e.authority||j.EMPTY_STRING,scopes:e.scopes,homeAccountIdentifier:n.homeAccountId,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid,shrOptions:e.shrOptions},a=JSON.stringify(i),s=this.activeSilentTokenRequests.get(a);if(typeof s>"u"){this.logger.verbose("acquireTokenSilent called for the first time, storing active request",r);const l=te(this.acquireTokenSilentAsync.bind(this),A.AcquireTokenSilentAsync,this.logger,this.performanceClient,r)({...e,correlationId:r},n).then(c=>(this.activeSilentTokenRequests.delete(a),o.add({accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length}),o.end({success:!0,fromCache:c.fromCache,isNativeBroker:c.fromNativeBroker,cacheLookupPolicy:e.cacheLookupPolicy,requestId:c.requestId}),c)).catch(c=>{throw this.activeSilentTokenRequests.delete(a),o.end({errorCode:c.errorCode,subErrorCode:c.subError,success:!1}),c});return this.activeSilentTokenRequests.set(a,l),{...await l,state:e.state}}else return this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",r),o.discard(),{...await s,state:e.state}}async acquireTokenSilentAsync(e,r){this.performanceClient.addQueueMeasurement(A.AcquireTokenSilentAsync,e.correlationId),this.eventHandler.emitEvent(se.ACQUIRE_TOKEN_START,oe.Silent,e),this.atsAsyncMeasurement=this.performanceClient.startMeasurement(A.AcquireTokenSilentAsync,e.correlationId),this.atsAsyncMeasurement?.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibility);let o;if(xo.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme)&&r.nativeAccountId){this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform");const n={...e,account:r};o=this.acquireTokenNative(n,Oe.acquireTokenSilent_silentFlow).catch(async i=>{if(i instanceof $o&&ca(i))return this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,this.createSilentIframeClient(e.correlationId).acquireToken(e);throw i})}else{this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow");const n=this.createSilentCacheClient(e.correlationId),i=await te(n.initializeSilentRequest.bind(n),A.InitializeSilentRequest,this.logger,this.performanceClient,e.correlationId)(e,r),a=e.cacheLookupPolicy||Rr.Default;o=te(this.acquireTokenFromCache.bind(this),A.AcquireTokenFromCache,this.logger,this.performanceClient,i.correlationId)(n,i,a).catch(s=>{if(e.cacheLookupPolicy===Rr.AccessToken)throw s;return eh(),this.eventHandler.emitEvent(se.ACQUIRE_TOKEN_NETWORK_START,oe.Silent,i),te(this.acquireTokenByRefreshToken.bind(this),A.AcquireTokenByRefreshToken,this.logger,this.performanceClient,i.correlationId)(i,a).catch(l=>{if(_A(l,i,a))return this.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",i.correlationId),te(this.acquireTokenBySilentIframe.bind(this),A.AcquireTokenBySilentIframe,this.logger,this.performanceClient,i.correlationId)(i);throw l})})}return o.then(n=>(this.eventHandler.emitEvent(se.ACQUIRE_TOKEN_SUCCESS,oe.Silent,n),this.atsAsyncMeasurement?.end({success:!0,fromCache:n.fromCache,isNativeBroker:n.fromNativeBroker,requestId:n.requestId}),n)).catch(n=>{throw this.eventHandler.emitEvent(se.ACQUIRE_TOKEN_FAILURE,oe.Silent,null,n),this.atsAsyncMeasurement?.end({errorCode:n.errorCode,subErrorCode:n.subError,success:!1}),n}).finally(()=>{document.removeEventListener("visibilitychange",this.trackPageVisibility)})}}function _A(t,e,r){const o=!(t instanceof so&&t.subError!==rf),n=t.errorCode===Yr.INVALID_GRANT_ERROR||t.errorCode===Bn,i=o&&n||t.errorCode===ed||t.errorCode===uv,a=vR.includes(r);return i&&a}const xA=Object.freeze(Object.defineProperty({__proto__:null,StandardController:af},Symbol.toStringTag,{value:"Module"}));/*! @azure/msal-browser v3.7.1 2024-01-23 */class N_{static async createPublicClientApplication(e){const r=await OR(e);return new N_(e,r)}constructor(e,r){if(r)this.controller=r;else{const o=new Ni(e);this.controller=new af(o)}}async initialize(){return this.controller.initialize()}async acquireTokenPopup(e){return this.controller.acquireTokenPopup(e)}acquireTokenRedirect(e){return this.controller.acquireTokenRedirect(e)}acquireTokenSilent(e){return this.controller.acquireTokenSilent(e)}acquireTokenByCode(e){return this.controller.acquireTokenByCode(e)}addEventCallback(e){return this.controller.addEventCallback(e)}removeEventCallback(e){return this.controller.removeEventCallback(e)}addPerformanceCallback(e){return this.controller.addPerformanceCallback(e)}removePerformanceCallback(e){return this.controller.removePerformanceCallback(e)}enableAccountStorageEvents(){this.controller.enableAccountStorageEvents()}disableAccountStorageEvents(){this.controller.disableAccountStorageEvents()}getAccount(e){return this.controller.getAccount(e)}getAccountByHomeId(e){return this.controller.getAccountByHomeId(e)}getAccountByLocalId(e){return this.controller.getAccountByLocalId(e)}getAccountByUsername(e){return this.controller.getAccountByUsername(e)}getAllAccounts(e){return this.controller.getAllAccounts(e)}handleRedirectPromise(e){return this.controller.handleRedirectPromise(e)}loginPopup(e){return this.controller.loginPopup(e)}loginRedirect(e){return this.controller.loginRedirect(e)}logout(e){return this.controller.logout(e)}logoutRedirect(e){return this.controller.logoutRedirect(e)}logoutPopup(e){return this.controller.logoutPopup(e)}ssoSilent(e){return this.controller.ssoSilent(e)}getTokenCache(){return this.controller.getTokenCache()}getLogger(){return this.controller.getLogger()}setLogger(e){this.controller.setLogger(e)}setActiveAccount(e){this.controller.setActiveAccount(e)}getActiveAccount(){return this.controller.getActiveAccount()}initializeWrapperLibrary(e,r){return this.controller.initializeWrapperLibrary(e,r)}setNavigationClient(e){this.controller.setNavigationClient(e)}getConfiguration(){return this.controller.getConfiguration()}async hydrateCache(e,r){return this.controller.hydrateCache(e,r)}clearCache(e){return this.controller.clearCache(e)}}/*! @azure/msal-browser v3.7.1 2024-01-23 */const CA={initialize:()=>Promise.reject(wt(It)),acquireTokenPopup:()=>Promise.reject(wt(It)),acquireTokenRedirect:()=>Promise.reject(wt(It)),acquireTokenSilent:()=>Promise.reject(wt(It)),acquireTokenByCode:()=>Promise.reject(wt(It)),getAllAccounts:()=>[],getAccountByHomeId:()=>null,getAccountByUsername:()=>null,getAccountByLocalId:()=>null,handleRedirectPromise:()=>Promise.reject(wt(It)),loginPopup:()=>Promise.reject(wt(It)),loginRedirect:()=>Promise.reject(wt(It)),logout:()=>Promise.reject(wt(It)),logoutRedirect:()=>Promise.reject(wt(It)),logoutPopup:()=>Promise.reject(wt(It)),ssoSilent:()=>Promise.reject(wt(It)),addEventCallback:()=>null,removeEventCallback:()=>{},addPerformanceCallback:()=>"",removePerformanceCallback:()=>!1,enableAccountStorageEvents:()=>{},disableAccountStorageEvents:()=>{},getTokenCache:()=>{throw wt(It)},getLogger:()=>{throw wt(It)},setLogger:()=>{},setActiveAccount:()=>{},getActiveAccount:()=>null,initializeWrapperLibrary:()=>{},setNavigationClient:()=>{},getConfiguration:()=>{throw wt(It)},hydrateCache:()=>Promise.reject(wt(It)),clearCache:()=>Promise.reject(wt(It))};/*! @azure/msal-browser v3.7.1 2024-01-23 */class TA{static getInteractionStatusFromEvent(e,r){switch(e.eventType){case se.LOGIN_START:return ot.Login;case se.SSO_SILENT_START:return ot.SsoSilent;case se.ACQUIRE_TOKEN_START:if(e.interactionType===oe.Redirect||e.interactionType===oe.Popup)return ot.AcquireToken;break;case se.HANDLE_REDIRECT_START:return ot.HandleRedirect;case se.LOGOUT_START:return ot.Logout;case se.SSO_SILENT_SUCCESS:case se.SSO_SILENT_FAILURE:if(r&&r!==ot.SsoSilent)break;return ot.None;case se.LOGOUT_END:if(r&&r!==ot.Logout)break;return ot.None;case se.HANDLE_REDIRECT_END:if(r&&r!==ot.HandleRedirect)break;return ot.None;case se.LOGIN_SUCCESS:case se.LOGIN_FAILURE:case se.ACQUIRE_TOKEN_SUCCESS:case se.ACQUIRE_TOKEN_FAILURE:case se.RESTORE_FROM_BFCACHE:if(e.interactionType===oe.Redirect||e.interactionType===oe.Popup){if(r&&r!==ot.Login&&r!==ot.AcquireToken)break;return ot.None}break}return null}}/*! @azure/msal-react v2.0.10 2024-01-23 */const EA={instance:CA,inProgress:ot.None,accounts:[],logger:new Ln({})},Tv=y.createContext(EA);Tv.Consumer;/*! @azure/msal-react v2.0.10 2024-01-23 */function P_(t,e){return typeof t=="function"?t(e):t}function J0(t,e){if(t.length!==e.length)return!1;const r=[...e];return t.every(o=>{const n=r.shift();return!o||!n?!1:o.homeAccountId===n.homeAccountId&&o.localAccountId===n.localAccountId&&o.username===n.username})}function BA(t,e){return t.length>0&&(e.homeAccountId||e.localAccountId||e.username)&&t.filter(o=>!(e.username&&e.username.toLowerCase()!==o.username.toLowerCase()||e.homeAccountId&&e.homeAccountId.toLowerCase()!==o.homeAccountId.toLowerCase()||e.localAccountId&&e.localAccountId.toLowerCase()!==o.localAccountId.toLowerCase()))[0]||null}/*! @azure/msal-react v2.0.10 2024-01-23 */const IA="@azure/msal-react",eb="2.0.10";/*! @azure/msal-react v2.0.10 2024-01-23 */const id={UNBLOCK_INPROGRESS:"UNBLOCK_INPROGRESS",EVENT:"EVENT"},RA=(t,e)=>{const{type:r,payload:o}=e;let n=t.inProgress;switch(r){case id.UNBLOCK_INPROGRESS:t.inProgress===ot.Startup&&(n=ot.None,o.logger.info("MsalProvider - handleRedirectPromise resolved, setting inProgress to 'none'"));break;case id.EVENT:const a=o.message,s=TA.getInteractionStatusFromEvent(a,t.inProgress);s&&(o.logger.info(`MsalProvider - ${a.eventType} results in setting inProgress from ${t.inProgress} to ${s}`),n=s);break;default:throw new Error(`Unknown action type: ${r}`)}const i=o.instance.getAllAccounts();return n!==t.inProgress&&!J0(i,t.accounts)?{...t,inProgress:n,accounts:i}:n!==t.inProgress?{...t,inProgress:n}:J0(i,t.accounts)?t:{...t,accounts:i}};function oJ({instance:t,children:e}){y.useEffect(()=>{t.initializeWrapperLibrary(gR.React,eb)},[t]);const r=y.useMemo(()=>t.getLogger().clone(IA,eb),[t]),[o,n]=y.useReducer(RA,void 0,()=>({inProgress:ot.Startup,accounts:t.getAllAccounts()}));y.useEffect(()=>{const a=t.addEventCallback(s=>{n({payload:{instance:t,logger:r,message:s},type:id.EVENT})});return r.verbose(`MsalProvider - Registered event callback with id: ${a}`),t.initialize().then(()=>{t.handleRedirectPromise().catch(()=>{}).finally(()=>{n({payload:{instance:t,logger:r},type:id.UNBLOCK_INPROGRESS})})}).catch(()=>{}),()=>{a&&(r.verbose(`MsalProvider - Removing event callback ${a}`),t.removeEventCallback(a))}},[t,r]);const i={instance:t,inProgress:o.inProgress,accounts:o.accounts,logger:r};return dt.createElement(Tv.Provider,{value:i},e)}/*! @azure/msal-react v2.0.10 2024-01-23 */const Ev=()=>y.useContext(Tv);/*! @azure/msal-react v2.0.10 2024-01-23 */function tb(t,e){return e&&(e.username||e.homeAccountId||e.localAccountId)?!!BA(t,e):t.length>0}function z_(t){const{accounts:e,inProgress:r}=Ev(),[o,n]=y.useState(()=>r===ot.Startup?!1:tb(e,t));return y.useEffect(()=>{n(tb(e,t))},[e,t]),o}/*! @azure/msal-react v2.0.10 2024-01-23 */function nJ({username:t,homeAccountId:e,localAccountId:r,children:o}){const n=Ev(),i=y.useMemo(()=>({username:t,homeAccountId:e,localAccountId:r}),[t,e,r]);return z_(i)&&n.inProgress!==ot.Startup?dt.createElement(dt.Fragment,null,P_(o,n)):null}/*! @azure/msal-react v2.0.10 2024-01-23 */function iJ({username:t,homeAccountId:e,localAccountId:r,children:o}){const n=Ev(),i=y.useMemo(()=>({username:t,homeAccountId:e,localAccountId:r}),[t,e,r]);return!z_(i)&&n.inProgress!==ot.Startup&&n.inProgress!==ot.HandleRedirect?dt.createElement(dt.Fragment,null,P_(o,n)):null}const AA=["Top","Right","Bottom","Left"];function ic(t,e,...r){const[o,n=o,i=o,a=n]=r,s=[o,n,i,a],l={};for(let c=0;ctypeof t=="string"&&/(\d+(\w+|%))/.test(t),Ac=t=>typeof t=="number"&&!Number.isNaN(t),qA=t=>t==="initial",rb=t=>t==="auto",LA=t=>t==="none",HA=["content","fit-content","max-content","min-content"],nh=t=>HA.some(e=>t===e)||FA(t);function UA(...t){const e=t.length===1,r=t.length===2,o=t.length===3;if(e){const[n]=t;if(qA(n))return{flexGrow:0,flexShrink:1,flexBasis:"auto"};if(rb(n))return{flexGrow:1,flexShrink:1,flexBasis:"auto"};if(LA(n))return{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(Ac(n))return{flexGrow:n,flexShrink:1,flexBasis:0};if(nh(n))return{flexGrow:1,flexShrink:1,flexBasis:n}}if(r){const[n,i]=t;if(Ac(i))return{flexGrow:n,flexShrink:i,flexBasis:0};if(nh(i))return{flexGrow:n,flexShrink:1,flexBasis:i}}if(o){const[n,i,a]=t;if(Ac(n)&&Ac(i)&&(rb(a)||nh(a)))return{flexGrow:n,flexShrink:i,flexBasis:a}}return{}}function $A(t,e=t){return{columnGap:t,rowGap:e}}const KA=/var\(.*\)/gi;function WA(t){return t===void 0||typeof t=="number"||typeof t=="string"&&!KA.test(t)}const VA=/^[a-zA-Z0-9\-_\\#;]+$/,GA=/^-moz-initial$|^auto$|^initial$|^inherit$|^revert$|^unset$|^span \d+$|^\d.*/;function ih(t){return t!==void 0&&typeof t=="string"&&VA.test(t)&&!GA.test(t)}function XA(...t){if(t.some(i=>!WA(i)))return{};const e=t[0]!==void 0?t[0]:"auto",r=t[1]!==void 0?t[1]:ih(e)?e:"auto",o=t[2]!==void 0?t[2]:ih(e)?e:"auto",n=t[3]!==void 0?t[3]:ih(r)?r:"auto";return{gridRowStart:e,gridColumnStart:r,gridRowEnd:o,gridColumnEnd:n}}function YA(...t){return ic("margin","",...t)}function ZA(t,e=t){return{marginBlockStart:t,marginBlockEnd:e}}function QA(t,e=t){return{marginInlineStart:t,marginInlineEnd:e}}function JA(...t){return ic("padding","",...t)}function e3(t,e=t){return{paddingBlockStart:t,paddingBlockEnd:e}}function t3(t,e=t){return{paddingInlineStart:t,paddingInlineEnd:e}}function r3(t,e=t){return{overflowX:t,overflowY:e}}function o3(...t){const[e,r=e,o=e,n=r]=t;return{top:e,right:r,bottom:o,left:n}}function n3(t,e,r){return{outlineWidth:t,...e&&{outlineStyle:e},...r&&{outlineColor:r}}}function i3(...t){return s3(t)?{transitionDelay:t[0],transitionDuration:t[0],transitionProperty:t[0],transitionTimingFunction:t[0]}:l3(t).reduce((r,[o,n="0s",i="0s",a="ease"],s)=>(s===0?(r.transitionProperty=o,r.transitionDuration=n,r.transitionDelay=i,r.transitionTimingFunction=a):(r.transitionProperty+=`, ${o}`,r.transitionDuration+=`, ${n}`,r.transitionDelay+=`, ${i}`,r.transitionTimingFunction+=`, ${a}`),r),{})}const a3=["-moz-initial","inherit","initial","revert","unset"];function s3(t){return t.length===1&&a3.includes(t[0])}function l3(t){return t.length===1&&Array.isArray(t[0])?t[0]:[t]}function c3(t,...e){if(e.length===0)return d3(t)?{textDecorationStyle:t}:{textDecorationLine:t};const[r,o,n]=e;return{textDecorationLine:t,...r&&{textDecorationStyle:r},...o&&{textDecorationColor:o},...n&&{textDecorationThickness:n}}}const u3=["dashed","dotted","double","solid","wavy"];function d3(t){return u3.includes(t)}const ah=typeof window>"u"?global:window,sh="@griffel/";function f3(t,e){return ah[Symbol.for(sh+t)]||(ah[Symbol.for(sh+t)]=e),ah[Symbol.for(sh+t)]}const Og=f3("DEFINITION_LOOKUP_TABLE",{}),wu="data-make-styles-bucket",jg="f",Dg=7,Bv="___",h3=Bv.length+Dg,g3=0,p3=1,m3={all:1,animation:1,animationRange:1,background:1,backgroundPosition:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockStart:1,borderBottom:1,borderColor:1,borderImage:1,borderInline:1,borderInlineEnd:1,borderInlineStart:1,borderLeft:1,borderRadius:1,borderRight:1,borderStyle:1,borderTop:1,borderWidth:1,caret:1,columns:1,columnRule:1,containIntrinsicSize:1,container:1,flex:1,flexFlow:1,font:1,gap:1,grid:1,gridArea:1,gridColumn:1,gridRow:1,gridTemplate:1,inset:1,insetBlock:1,insetInline:1,lineClamp:1,listStyle:1,margin:1,marginBlock:1,marginInline:1,mask:1,maskBorder:1,motion:1,offset:1,outline:1,overflow:1,overscrollBehavior:1,padding:1,paddingBlock:1,paddingInline:1,placeItems:1,placeContent:1,placeSelf:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginInline:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingInline:1,scrollSnapMargin:1,scrollTimeline:1,textDecoration:1,textEmphasis:1,transition:1,viewTimeline:1};function yl(t){for(var e=0,r,o=0,n=t.length;n>=4;++o,n-=4)r=t.charCodeAt(o)&255|(t.charCodeAt(++o)&255)<<8|(t.charCodeAt(++o)&255)<<16|(t.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(n){case 3:e^=(t.charCodeAt(o+2)&255)<<16;case 2:e^=(t.charCodeAt(o+1)&255)<<8;case 1:e^=t.charCodeAt(o)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}function v3(t){const e=t.length;if(e===Dg)return t;for(let r=e;r0&&(e+=u.slice(0,d)),r+=f,o[c]=f}}}if(r==="")return e.slice(0,-1);const n=ob[r];if(n!==void 0)return e+n;const i=[];for(let c=0;ci.cssText):o}}}const w3=["r","d","l","v","w","f","i","h","a","s","k","t","m","c"],nb=w3.reduce((t,e,r)=>(t[e]=r,t),{});function k3(t,e,r,o,n={}){const i=t==="m",a=i?t+n.m:t;if(!o.stylesheets[a]){const s=e&&e.createElement("style"),l=y3(s,t,{...o.styleElementAttributes,...i&&{media:n.m}});o.stylesheets[a]=l,e&&s&&e.head.insertBefore(s,S3(e,r,t,o,n))}return o.stylesheets[a]}function S3(t,e,r,o,n){const i=nb[r];let a=u=>i-nb[u.getAttribute(wu)],s=t.head.querySelectorAll(`[${wu}]`);if(r==="m"&&n){const u=t.head.querySelectorAll(`[${wu}="${r}"]`);u.length&&(s=u,a=d=>o.compareMediaQueries(n.m,d.media))}const l=s.length;let c=l-1;for(;c>=0;){const u=s.item(c);if(a(u)>0)return u.nextSibling;c--}return l>0?s.item(0):e?e.nextSibling:null}function ib(t,e){try{t.insertRule(e)}catch{}}let _3=0;const x3=(t,e)=>te?1:0;function C3(t=typeof document>"u"?void 0:document,e={}){const{unstable_filterCSSRule:r,insertionPoint:o,styleElementAttributes:n,compareMediaQueries:i=x3}=e,a={insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(n),compareMediaQueries:i,id:`d${_3++}`,insertCSSRules(s){for(const l in s){const c=s[l];for(let u=0,d=c.length;u{const t={};return function(r,o){t[r.id]===void 0&&(r.insertCSSRules(o),t[r.id]=!0)}};function j_(t){return t.reduce(function(e,r){var o=r[0],n=r[1];return e[o]=n,e[n]=o,e},{})}function T3(t){return typeof t=="boolean"}function E3(t){return typeof t=="function"}function Hs(t){return typeof t=="number"}function B3(t){return t===null||typeof t>"u"}function I3(t){return t&&typeof t=="object"}function R3(t){return typeof t=="string"}function ku(t,e){return t.indexOf(e)!==-1}function A3(t){return parseFloat(t)===0?t:t[0]==="-"?t.slice(1):"-"+t}function Nc(t,e,r,o){return e+A3(r)+o}function N3(t){var e=t.indexOf(".");if(e===-1)t=100-parseFloat(t)+"%";else{var r=t.length-e-2;t=100-parseFloat(t),t=t.toFixed(r)+"%"}return t}function D_(t){return t.replace(/ +/g," ").split(" ").map(function(e){return e.trim()}).filter(Boolean).reduce(function(e,r){var o=e.list,n=e.state,i=(r.match(/\(/g)||[]).length,a=(r.match(/\)/g)||[]).length;return n.parensDepth>0?o[o.length-1]=o[o.length-1]+" "+r:o.push(r),n.parensDepth+=i-a,{list:o,state:n}},{list:[],state:{parensDepth:0}}).list}function ab(t){var e=D_(t);if(e.length<=3||e.length>4)return t;var r=e[0],o=e[1],n=e[2],i=e[3];return[r,i,n,o].join(" ")}function P3(t){return!T3(t)&&!B3(t)}function z3(t){for(var e=[],r=0,o=0,n=!1;o0?Xt(hs,--xr):0,Ga--,Ye===10&&(Ga=1,cf--),Ye}function Dr(){return Ye=xr2||sd(Ye)>3?"":" "}function e4(t){for(;Dr();)switch(sd(Ye)){case 0:mi(Q_(xr-1),t);break;case 2:mi(_u(Ye),t);break;default:mi(lf(Ye),t)}return t}function t4(t,e){for(;--e&&Dr()&&!(Ye<48||Ye>102||Ye>57&&Ye<65||Ye>70&&Ye<97););return df(t,Su()+(e<6&&ki()==32&&Dr()==32))}function qg(t){for(;Dr();)switch(Ye){case t:return xr;case 34:case 39:t!==34&&t!==39&&qg(Ye);break;case 40:t===41&&qg(t);break;case 92:Dr();break}return xr}function r4(t,e){for(;Dr()&&t+Ye!==57;)if(t+Ye===84&&ki()===47)break;return"/*"+df(e,xr-1)+"*"+lf(t===47?t:Dr())}function Q_(t){for(;!sd(ki());)Dr();return df(t,xr)}function J_(t){return Z_(xu("",null,null,null,[""],t=Y_(t),0,[0],t))}function xu(t,e,r,o,n,i,a,s,l){for(var c=0,u=0,d=a,f=0,h=0,g=0,m=1,w=1,v=1,p=0,b="",k=n,x=i,S=o,_=b;w;)switch(g=p,p=Dr()){case 40:if(g!=108&&Xt(_,d-1)==58){V_(_+=sr(_u(p),"&","&\f"),"&\f",$_(c?s[c-1]:0))!=-1&&(v=-1);break}case 34:case 39:case 91:_+=_u(p);break;case 9:case 10:case 13:case 32:_+=J3(g);break;case 92:_+=t4(Su()-1,7);continue;case 47:switch(ki()){case 42:case 47:mi(o4(r4(Dr(),Su()),e,r,l),l);break;default:_+="/"}break;case 123*m:s[c++]=yo(_)*v;case 125*m:case 59:case 0:switch(p){case 0:case 125:w=0;case 59+u:v==-1&&(_=sr(_,/\f/g,"")),h>0&&yo(_)-d&&mi(h>32?cb(_+";",o,r,d-1,l):cb(sr(_," ","")+";",o,r,d-2,l),l);break;case 59:_+=";";default:if(mi(S=lb(_,e,r,c,u,n,s,b,k=[],x=[],d,i),i),p===123)if(u===0)xu(_,e,S,S,k,i,d,s,x);else switch(f===99&&Xt(_,3)===110?100:f){case 100:case 108:case 109:case 115:xu(t,S,S,o&&mi(lb(t,S,S,0,0,n,s,b,n,k=[],d,x),x),n,x,d,s,o?k:x);break;default:xu(_,S,S,S,[""],x,0,s,x)}}c=u=h=0,m=v=1,b=_="",d=a;break;case 58:d=1+yo(_),h=g;default:if(m<1){if(p==123)--m;else if(p==125&&m++==0&&Z3()==125)continue}switch(_+=lf(p),p*m){case 38:v=u>0?1:(_+="\f",-1);break;case 44:s[c++]=(yo(_)-1)*v,v=1;break;case 64:ki()===45&&(_+=_u(Dr())),f=ki(),u=d=yo(b=_+=Q_(Su())),p++;break;case 45:g===45&&yo(_)==2&&(m=0)}}return i}function lb(t,e,r,o,n,i,a,s,l,c,u,d){for(var f=n-1,h=n===0?i:[""],g=G_(h),m=0,w=0,v=0;m0?h[p]+" "+b:sr(b,/&\f/g,h[p])))&&(l[v++]=k);return uf(t,e,r,n===0?sf:s,l,c,u,d)}function o4(t,e,r,o){return uf(t,e,r,H_,lf(Y3()),wl(t,2,-2),0,o)}function cb(t,e,r,o,n){return uf(t,e,r,Rv,wl(t,0,o),wl(t,o+1,-1),o,n)}function Xa(t,e){for(var r="",o=0;o{switch(t.type){case sf:if(typeof t.props=="string")return;t.props=t.props.map(e=>e.indexOf(":global(")===-1?e:Q3(e).reduce((r,o,n,i)=>{if(o==="")return r;if(o===":"&&i[n+1]==="global"){const a=i[n+2].slice(1,-1)+" ";return r.unshift(a),i[n+1]="",i[n+2]="",r}return r.push(o),r},[]).join(""))}};function ox(t,e,r){switch(G3(t,e)){case 5103:return Kr+"print-"+t+t;case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:return Kr+t+t;case 4215:if(Xt(t,9)===102||Xt(t,e+1)===116)return Kr+t+t;break;case 4789:return el+t+t;case 5349:case 4246:case 6968:return Kr+t+el+t+t;case 6187:if(!W_(t,/grab/))return sr(sr(sr(t,/(zoom-|grab)/,Kr+"$1"),/(image-set)/,Kr+"$1"),t,"")+t;case 5495:case 3959:return sr(t,/(image-set\([^]*)/,Kr+"$1$`$1");case 4095:case 3583:case 4068:case 2532:return sr(t,/(.+)-inline(.+)/,Kr+"$1$2")+t;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(yo(t)-1-e>6)switch(Xt(t,e+1)){case 102:if(Xt(t,e+3)===108)return sr(t,/(.+:)(.+)-([^]+)/,"$1"+Kr+"$2-$3$1"+el+(Xt(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~V_(t,"stretch")?ox(sr(t,"stretch","fill-available"),e)+t:t}break}return t}function nx(t,e,r,o){if(t.length>-1&&!t.return)switch(t.type){case Rv:t.return=ox(t.value,t.length);return;case sf:if(t.length)return X3(t.props,function(n){switch(W_(n,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Xa([ch(t,{props:[sr(n,/:(read-\w+)/,":"+el+"$1")]})],o);case"::placeholder":return Xa([ch(t,{props:[sr(n,/:(plac\w+)/,":"+Kr+"input-$1")]}),ch(t,{props:[sr(n,/:(plac\w+)/,":"+el+"$1")]})],o)}return""})}}function i4(t){switch(t.type){case"@container":case U3:case K3:case U_:return!0}return!1}const a4=t=>{i4(t)&&Array.isArray(t.children)&&t.children.sort((e,r)=>e.props[0]>r.props[0]?1:-1)};function s4(){}function l4(t,e){const r=[];return Xa(J_(t),tx([n4,e?a4:s4,nx,ex,rx(o=>r.push(o))])),r}const c4=/,( *[^ &])/g;function u4(t){return"&"+L_(t.replace(c4,",&$1"))}function ub(t,e,r){let o=e;return r.length>0&&(o=r.reduceRight((n,i)=>`${u4(i)} { ${n} }`,e)),`${t}{${o}}`}function db(t){const{className:e,media:r,layer:o,selectors:n,support:i,property:a,rtlClassName:s,rtlProperty:l,rtlValue:c,value:u,container:d}=t,f=`.${e}`,h=Array.isArray(u)?`${u.map(m=>`${Us(a)}: ${m}`).join(";")};`:`${Us(a)}: ${u};`;let g=ub(f,h,n);if(l&&s){const m=`.${s}`,w=Array.isArray(c)?`${c.map(v=>`${Us(l)}: ${v}`).join(";")};`:`${Us(l)}: ${c};`;g+=ub(m,w,n)}return r&&(g=`@media ${r} { ${g} }`),o&&(g=`@layer ${o} { ${g} }`),i&&(g=`@supports ${i} { ${g} }`),d&&(g=`@container ${d} { ${g} }`),l4(g,!0)}function d4(t){let e="";for(const r in t){const o=t[r];typeof o!="string"&&typeof o!="number"||(e+=Us(r)+":"+o+";")}return e}function fb(t){let e="";for(const r in t)e+=`${r}{${d4(t[r])}}`;return e}function hb(t,e){const r=`@keyframes ${t} {${e}}`,o=[];return Xa(J_(r),tx([ex,nx,rx(n=>o.push(n))])),o}function gb(t,e){return t.length===0?e:`${t} and ${e}`}function f4(t){return t.substr(0,6)==="@media"}function h4(t){return t.substr(0,6)==="@layer"}const g4=/^(:|\[|>|&)/;function p4(t){return g4.test(t)}function m4(t){return t.substr(0,9)==="@supports"}function v4(t){return t.substring(0,10)==="@container"}function b4(t){return t!=null&&typeof t=="object"&&Array.isArray(t)===!1}const pb={"us-w":"w","us-v":"i",nk:"l",si:"v",cu:"f",ve:"h",ti:"a"};function mb(t,e,r,o,n){if(r)return"m";if(e||o)return"t";if(n)return"c";if(t.length>0){const i=t[0].trim();if(i.charCodeAt(0)===58)return pb[i.slice(4,8)]||pb[i.slice(3,5)]||"d"}return"d"}function Pc({container:t,media:e,layer:r,property:o,selector:n,support:i,value:a}){const s=yl(n+t+e+r+i+o+a.trim());return jg+s}function vb(t,e,r,o,n){const i=t+e+r+o+n,a=yl(i),s=a.charCodeAt(0);return s>=48&&s<=57?String.fromCharCode(s+17)+a.slice(1):a}function bb(t){return t.replace(/>\s+/g,">")}function y4(t,e){const r=JSON.stringify(e,null,2);" ".repeat(2)+""," ".repeat(4)+""," ".repeat(6)+`"${t}": ${r.split(` +`).map((o,n)=>" ".repeat(n===0?0:6)+o).join(` +`)}`," ".repeat(4)+""," ".repeat(2)+"",t.indexOf("&")}function yb(t,e,r,o){t[e]=o?[r,o]:r}function wb(t,e){return e?[t,e]:t}function uh(t,e,r,o,n){var i;let a;e==="m"&&n&&(a={m:n}),(i=t[e])!==null&&i!==void 0||(t[e]=[]),r&&t[e].push(wb(r,a)),o&&t[e].push(wb(o,a))}function ai(t,e=[],r="",o="",n="",i="",a={},s={},l){for(const c in t){if(m3.hasOwnProperty(c)){t[c];continue}const u=t[c];if(u!=null){if(typeof u=="string"||typeof u=="number"){const d=bb(e.join("")),f=vb(d,i,r,n,c),h=Pc({container:i,media:r,layer:o,value:u.toString(),support:n,selector:d,property:c}),g=l&&{key:c,value:l}||Fg(c,u),m=g.key!==c||g.value!==u,w=m?Pc({container:i,value:g.value.toString(),property:g.key,selector:d,media:r,layer:o,support:n}):void 0,v=m?{rtlClassName:w,rtlProperty:g.key,rtlValue:g.value}:void 0,p=mb(e,o,r,n,i),[b,k]=db({className:h,media:r,layer:o,selectors:e,property:c,support:n,container:i,value:u,...v});yb(a,f,h,w),uh(s,p,b,k,r)}else if(c==="animationName"){const d=Array.isArray(u)?u:[u],f=[],h=[];for(const g of d){const m=fb(g),w=fb(q_(g)),v=jg+yl(m);let p;const b=hb(v,m);let k=[];m===w?p=v:(p=jg+yl(w),k=hb(p,w));for(let x=0;x(S??"").toString()).join(";"),support:n,selector:d,property:c}),g=u.map(S=>Fg(c,S));if(!!g.some(S=>S.key!==g[0].key))continue;const w=g[0].key!==c||g.some((S,_)=>S.value!==u[_]),v=w?Pc({container:i,value:g.map(S=>{var _;return((_=S?.value)!==null&&_!==void 0?_:"").toString()}).join(";"),property:g[0].key,selector:d,layer:o,media:r,support:n}):void 0,p=w?{rtlClassName:v,rtlProperty:g[0].key,rtlValue:g.map(S=>S.value)}:void 0,b=mb(e,o,r,n,i),[k,x]=db({className:h,media:r,layer:o,selectors:e,property:c,support:n,container:i,value:u,...p});yb(a,f,h,v),uh(s,b,k,x,r)}else if(b4(u))if(p4(c))ai(u,e.concat(L_(c)),r,o,n,i,a,s);else if(f4(c)){const d=gb(r,c.slice(6).trim());ai(u,e,d,o,n,i,a,s)}else if(h4(c)){const d=(o?`${o}.`:"")+c.slice(6).trim();ai(u,e,r,d,n,i,a,s)}else if(m4(c)){const d=gb(n,c.slice(9).trim());ai(u,e,r,o,d,i,a,s)}else if(v4(c)){const d=c.slice(10).trim();ai(u,e,r,o,n,d,a,s)}else y4(c,u)}}return[a,s]}function w4(t){const e={},r={};for(const o in t){const n=t[o],[i,a]=ai(n);e[o]=i,Object.keys(a).forEach(s=>{r[s]=(r[s]||[]).concat(a[s])})}return[e,r]}function k4(t,e=Iv){const r=e();let o=null,n=null,i=null,a=null;function s(l){const{dir:c,renderer:u}=l;o===null&&([o,n]=w4(t));const d=c==="ltr";return d?i===null&&(i=ad(o,c)):a===null&&(a=ad(o,c)),r(u,n),d?i:a}return s}function ix(t,e,r=Iv){const o=r();let n=null,i=null;function a(s){const{dir:l,renderer:c}=s,u=l==="ltr";return u?n===null&&(n=ad(t,l)):i===null&&(i=ad(t,l)),o(c,e),u?n:i}return a}function S4(t,e,r,o=Iv){const n=o();function i(a){const{dir:s,renderer:l}=a,c=s==="ltr"?t:e||t;return n(l,Array.isArray(r)?{r}:r),c}return i}const aJ={border:PA,borderLeft:zA,borderBottom:MA,borderRight:OA,borderTop:jA,borderColor:Mg,borderStyle:zg,borderRadius:DA,borderWidth:Pg,flex:UA,gap:$A,gridArea:XA,margin:YA,marginBlock:ZA,marginInline:QA,padding:JA,paddingBlock:e3,paddingInline:t3,overflow:r3,inset:o3,outline:n3,transition:i3,textDecoration:c3};function _4(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}const kb=Vu.useInsertionEffect?Vu.useInsertionEffect:void 0,Av=()=>{const t={};return function(r,o){if(kb&&_4()){kb(()=>{r.insertCSSRules(o)},[r,o]);return}t[r.id]===void 0&&(r.insertCSSRules(o),t[r.id]=!0)}},x4=y.createContext(C3());function sc(){return y.useContext(x4)}const ax=y.createContext("ltr"),C4=({children:t,dir:e})=>y.createElement(ax.Provider,{value:e},t);function Nv(){return y.useContext(ax)}function sJ(t){const e=k4(t,Av);return function(){const o=Nv(),n=sc();return e({dir:o,renderer:n})}}function F(t,e){const r=ix(t,e,Av);return function(){const n=Nv(),i=sc();return r({dir:n,renderer:i})}}function ge(t,e,r){const o=S4(t,e,r,Av);return function(){const i=Nv(),a=sc();return o({dir:i,renderer:a})}}function T4(t,e){if(e){const r=Object.keys(e).reduce((o,n)=>`${o}--${n}: ${e[n]}; `,"");return`${t} { ${r} }`}return`${t} {}`}const sx=Symbol.for("fui.slotRenderFunction"),ff=Symbol.for("fui.slotElementType");function ee(t,e){const{defaultProps:r,elementType:o}=e,n=Pv(t),i={...r,...n,[ff]:o};return n&&typeof n.children=="function"&&(i[sx]=n.children,i.children=r?.children),i}function he(t,e){if(!(t===null||t===void 0&&!e.renderByDefault))return ee(t,e)}function Pv(t){return typeof t=="string"||typeof t=="number"||Array.isArray(t)||y.isValidElement(t)?{children:t}:t}function lx(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)&&!y.isValidElement(t)}function Sb(t){return!!t?.hasOwnProperty(ff)}const ze=(...t)=>{const e={};for(const r of t){const o=Array.isArray(r)?r:Object.keys(r);for(const n of o)e[n]=1}return e},E4=ze(["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"]),B4=ze(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),I4=ze(["itemID","itemProp","itemRef","itemScope","itemType"]),yt=ze(B4,E4,I4),R4=ze(yt,["form"]),cx=ze(yt,["height","loop","muted","preload","src","width"]),A4=ze(cx,["poster"]),N4=ze(yt,["start"]),P4=ze(yt,["value"]),z4=ze(yt,["download","href","hrefLang","media","rel","target","type"]),M4=ze(yt,["dateTime"]),hf=ze(yt,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),O4=ze(hf,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),j4=ze(hf,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),D4=ze(hf,["form","multiple","required"]),F4=ze(yt,["selected","value"]),q4=ze(yt,["cellPadding","cellSpacing"]),L4=yt,H4=ze(yt,["colSpan","rowSpan","scope"]),U4=ze(yt,["colSpan","headers","rowSpan","scope"]),$4=ze(yt,["span"]),K4=ze(yt,["span"]),W4=ze(yt,["disabled","form"]),V4=ze(yt,["acceptCharset","action","encType","encType","method","noValidate","target"]),G4=ze(yt,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),X4=ze(yt,["alt","crossOrigin","height","src","srcSet","useMap","width"]),Y4=ze(yt,["open","onCancel","onClose"]);function Z4(t,e,r){const o=Array.isArray(e),n={},i=Object.keys(t);for(const a of i)(!o&&e[a]||o&&e.indexOf(a)>=0||a.indexOf("data-")===0||a.indexOf("aria-")===0)&&(!r||r?.indexOf(a)===-1)&&(n[a]=t[a]);return n}const Q4={label:R4,audio:cx,video:A4,ol:N4,li:P4,a:z4,button:hf,input:O4,textarea:j4,select:D4,option:F4,table:q4,tr:L4,th:H4,td:U4,colGroup:$4,col:K4,fieldset:W4,form:V4,iframe:G4,img:X4,time:M4,dialog:Y4};function ux(t,e,r){const o=t&&Q4[t]||yt;return o.as=1,Z4(e,o,r)}const Ki=({primarySlotTagName:t,props:e,excludedPropNames:r})=>({root:{style:e.style,className:e.className},primary:ux(t,e,[...r||[],"style","className"])}),me=(t,e,r)=>{var o;return ux((o=e.as)!==null&&o!==void 0?o:t,e,r)};function Zn(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}function dx(t,e){const r=y.useRef(void 0),o=y.useCallback((i,a)=>(r.current!==void 0&&e(r.current),r.current=t(i,a),r.current),[e,t]),n=y.useCallback(()=>{r.current!==void 0&&(e(r.current),r.current=void 0)},[e]);return y.useEffect(()=>n,[n]),[o,n]}const J4=t=>(t(0),0),eN=t=>t;function tN(){const t=Zn();return dx(t?requestAnimationFrame:J4,t?cancelAnimationFrame:eN)}function rN(t){return typeof t=="function"}const Et=t=>{const[e,r]=y.useState(()=>t.defaultState===void 0?t.initialState:oN(t.defaultState)?t.defaultState():t.defaultState),o=y.useRef(t.state);y.useEffect(()=>{o.current=t.state},[t.state]);const n=y.useCallback(i=>{rN(i)&&i(o.current)},[]);return nN(t.state)?[t.state,n]:[e,r]};function oN(t){return typeof t=="function"}const nN=t=>{const[e]=y.useState(()=>t!==void 0);return e},fx={current:0},iN=y.createContext(void 0);function hx(){var t;return(t=y.useContext(iN))!==null&&t!==void 0?t:fx}function aN(){const t=hx()!==fx,[e,r]=y.useState(t);return Zn()&&t&&y.useLayoutEffect(()=>{r(!1)},[]),e}const Jt=Zn()?y.useLayoutEffect:y.useEffect,Q=t=>{const e=y.useRef(()=>{throw new Error("Cannot call an event handler while rendering")});return Jt(()=>{e.current=t},[t]),y.useCallback((...r)=>{const o=e.current;return o(...r)},[e])};function gx(){const t=y.useRef(!0);return t.current?(t.current=!1,!0):t.current}function sN(){return y.useReducer(t=>t+1,0)[1]}const px=y.createContext(void 0);px.Provider;function lN(){return y.useContext(px)||""}function Bt(t="fui-",e){const r=hx(),o=lN(),n=Vu.useId;if(n){const i=n(),a=y.useMemo(()=>i.replace(/:/g,""),[i]);return e||`${o}${t}${a}`}return y.useMemo(()=>e||`${o}${t}${++r.current}`,[o,t,e,r])}function Be(...t){const e=y.useCallback(r=>{e.current=r;for(const o of t)typeof o=="function"?o(r):o&&(o.current=r)},[...t]);return e}const mx=y.createContext(void 0),cN=mx.Provider,vx=y.createContext(void 0),uN="",dN=vx.Provider;function fN(){var t;return(t=y.useContext(vx))!==null&&t!==void 0?t:uN}const bx=y.createContext(void 0),hN={},gN=bx.Provider;function pN(){var t;return(t=y.useContext(bx))!==null&&t!==void 0?t:hN}const yx=y.createContext(void 0),mN={targetDocument:typeof document=="object"?document:void 0,dir:"ltr"},vN=yx.Provider;function Ae(){var t;return(t=y.useContext(yx))!==null&&t!==void 0?t:mN}const wx=y.createContext(void 0),bN=wx.Provider;function gf(){var t;return(t=y.useContext(wx))!==null&&t!==void 0?t:{}}const zv=y.createContext(void 0),yN=()=>{},wN=zv.Provider,de=t=>{var e,r;return(r=(e=y.useContext(zv))===null||e===void 0?void 0:e[t])!==null&&r!==void 0?r:yN},kx=y.createContext(void 0),kN=kx.Provider;function Mv(){return y.useContext(kx)}const Sx=y.createContext(void 0);Sx.Provider;function SN(){return y.useContext(Sx)}const _x=(t,e)=>!!t?.contains(e),xx=t=>{const{targetDocument:e}=Ae(),r=e?.defaultView,{refs:o,callback:n,element:i,disabled:a,disabledFocusOnIframe:s,contains:l=_x}=t,c=y.useRef(void 0);xN({element:i,disabled:s||a,callback:n,refs:o,contains:l});const u=y.useRef(!1),d=Q(h=>{if(u.current){u.current=!1;return}const g=h.composedPath()[0];o.every(w=>!l(w.current||null,g))&&!a&&n(h)}),f=Q(h=>{u.current=o.some(g=>l(g.current||null,h.target))});y.useEffect(()=>{if(a)return;let h=_N(r);const g=m=>{if(m===h){h=void 0;return}d(m)};return i?.addEventListener("click",g,!0),i?.addEventListener("touchstart",g,!0),i?.addEventListener("contextmenu",g,!0),i?.addEventListener("mousedown",f,!0),c.current=r?.setTimeout(()=>{h=void 0},1),()=>{i?.removeEventListener("click",g,!0),i?.removeEventListener("touchstart",g,!0),i?.removeEventListener("contextmenu",g,!0),i?.removeEventListener("mousedown",f,!0),r?.clearTimeout(c.current),h=void 0}},[d,i,a,f,r])},_N=t=>{if(t){var e,r;if(typeof t.window=="object"&&t.window===t)return t.event;var o;return(o=(r=t.ownerDocument)===null||r===void 0||(e=r.defaultView)===null||e===void 0?void 0:e.event)!==null&&o!==void 0?o:void 0}},dh="fuiframefocus",xN=t=>{const{disabled:e,element:r,callback:o,contains:n=_x,pollDuration:i=1e3,refs:a}=t,s=y.useRef(),l=Q(c=>{a.every(d=>!n(d.current||null,c.target))&&!e&&o(c)});y.useEffect(()=>{if(!e)return r?.addEventListener(dh,l,!0),()=>{r?.removeEventListener(dh,l,!0)}},[r,e,l]),y.useEffect(()=>{var c;if(!e)return s.current=r==null||(c=r.defaultView)===null||c===void 0?void 0:c.setInterval(()=>{const u=r?.activeElement;if(u?.tagName==="IFRAME"||u?.tagName==="WEBVIEW"){const d=new CustomEvent(dh,{bubbles:!0});u.dispatchEvent(d)}},i),()=>{var u;r==null||(u=r.defaultView)===null||u===void 0||u.clearTimeout(s.current)}},[r,e,i])},Cx=t=>{const{refs:e,callback:r,element:o,disabled:n,contains:i}=t,a=Q(s=>{const l=i||((d,f)=>!!d?.contains(f)),c=s.composedPath()[0];e.every(d=>!l(d.current||null,c))&&!n&&r(s)});y.useEffect(()=>{if(!n)return o?.addEventListener("wheel",a),o?.addEventListener("touchmove",a),()=>{o?.removeEventListener("wheel",a),o?.removeEventListener("touchmove",a)}},[a,o,n])};function kl(){return dx(setTimeout,clearTimeout)}function fe(t,e){return(...r)=>{t?.(...r),e?.(...r)}}function Ve(t,e){var r;const o=t;var n;return!!(!(o==null||(r=o.ownerDocument)===null||r===void 0)&&r.defaultView&&o instanceof o.ownerDocument.defaultView[(n=e?.constructorName)!==null&&n!==void 0?n:"HTMLElement"])}function CN(t){if(!Ve(t))return!1;const{tagName:e}=t;switch(e){case"BUTTON":case"A":case"INPUT":case"TEXTAREA":return!0}return t.isContentEditable}function Tx(t){const e=[];let r=0;const o=(f,h)=>{const g=e[f];e[f]=e[h],e[h]=g},n=f=>{let h=f;const g=TN(f),m=EN(f);ge.slice(0,r),clear:()=>{r=0},contains:f=>{const h=e.indexOf(f);return h>=0&&h{if(r===0)throw new Error("Priority queue empty");const f=e[0];return e[0]=e[--r],n(0),f},enqueue:f=>{e[r++]=f;let h=r-1,g=_b(h);for(;h>0&&t(e[g],e[h])>0;)o(g,h),h=g,g=_b(h)},peek:()=>r===0?null:e[0],remove:f=>{const h=e.indexOf(f);h===-1||h>=r||(e[h]=e[--r],n(h))},size:()=>r}}const TN=t=>2*t+1,EN=t=>2*t+2,_b=t=>Math.floor((t-1)/2);function Ex(t){return!!t.type.isFluentTriggerComponent}function pf(t,e){return typeof t=="function"?t(e):t?Bx(t,e):t||null}function Bx(t,e){if(!y.isValidElement(t)||t.type===y.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(Ex(t)){const r=Bx(t.props.children,e);return y.cloneElement(t,void 0,r)}else return y.cloneElement(t,e)}function lc(t){return y.isValidElement(t)?Ex(t)?lc(t.props.children):t:null}function Lg(t){return t.type.startsWith("touch")}function Hg(t){return t.type.startsWith("mouse")||["click","contextmenu","dblclick"].indexOf(t.type)>-1}function xb(t){return Hg(t)?{clientX:t.clientX,clientY:t.clientY}:Lg(t)?{clientX:t.touches[0].clientX,clientY:t.touches[0].clientY}:{clientX:0,clientY:0}}function Cb(t){return t instanceof Set?t:new Set(t)}function Ix(t){const[e,r]=Et({initialState:new Set,defaultState:y.useMemo(()=>t.defaultSelectedItems&&Cb(t.defaultSelectedItems),[t.defaultSelectedItems]),state:y.useMemo(()=>t.selectedItems&&Cb(t.selectedItems),[t.selectedItems])});return[e,(n,i)=>{var a;(a=t.onSelectionChange)===null||a===void 0||a.call(t,n,{selectedItems:i}),r(i)}]}function BN(t){const[e,r]=Ix(t);return[e,{deselectItem:n=>r(n,new Set),selectItem:(n,i)=>r(n,new Set([i])),toggleAllItems:()=>{},toggleItem:(n,i)=>r(n,new Set([i])),clearItems:n=>r(n,new Set),isSelected:n=>{var i;return(i=e.has(n))!==null&&i!==void 0?i:!1}}]}function IN(t){const[e,r]=Ix(t);return[e,{toggleItem:(n,i)=>{const a=new Set(e);e.has(i)?a.delete(i):a.add(i),r(n,a)},selectItem:(n,i)=>{const a=new Set(e);a.add(i),r(n,a)},deselectItem:(n,i)=>{const a=new Set(e);a.delete(i),r(n,a)},clearItems:n=>{r(n,new Set)},isSelected:n=>e.has(n),toggleAllItems:(n,i)=>{const a=i.every(l=>e.has(l)),s=new Set(e);a?s.clear():i.forEach(l=>s.add(l)),r(n,s)}}]}function RN(t){return t.selectionMode==="multiselect"?IN(t):BN(t)}function AN(t){return t&&!!t._virtual}function NN(t){return AN(t)&&t._virtual.parent||null}function Rx(t,e={}){if(!t)return null;if(!e.skipVirtual){const r=NN(t);if(r)return r}return t?.parentNode||null}function Sl(t,e){if(!t||!e)return!1;if(t===e)return!0;{const r=new WeakSet;for(;e;){const o=Rx(e,{skipVirtual:r.has(e)});if(r.add(e),o===t)return!0;e=o}}return!1}function Tb(t,e){if(!t)return;const r=t;r._virtual||(r._virtual={}),r._virtual.parent=e}function PN(t,e){return{...e,[ff]:t}}function Ax(t,e){return function(o,n,i,a,s){return Sb(n)?e(PN(o,n),null,i,a,s):Sb(o)?e(o,n,i,a,s):t(o,n,i,a,s)}}function Nx(t){const{as:e,[ff]:r,[sx]:o,...n}=t,i=n,a=typeof r=="string"?e??r:r;return typeof a!="string"&&e&&(i.as=e),{elementType:a,props:i,renderFunction:o}}const Si=mB,zN=(t,e,r)=>{const{elementType:o,renderFunction:n,props:i}=Nx(t),a={...i,...e};return n?Si.jsx(y.Fragment,{children:n(o,a)},r):Si.jsx(o,a,r)},MN=(t,e,r)=>{const{elementType:o,renderFunction:n,props:i}=Nx(t),a={...i,...e};return n?Si.jsx(y.Fragment,{children:n(o,{...a,children:Si.jsxs(y.Fragment,{children:a.children},void 0)})},r):Si.jsxs(o,a,r)},P=Ax(Si.jsx,zN),we=Ax(Si.jsxs,MN),Ug=y.createContext(void 0),ON={},jN=Ug.Provider,DN=()=>y.useContext(Ug)?y.useContext(Ug):ON,FN=F({root:{mc9l5x:"f1w7gpdv",Bg96gwp:"fez10in",ycbfsm:"fg4l7m0"},rtl:{Bz10aip:"f13rod7r"}},{d:[".f1w7gpdv{display:inline;}",".fez10in{line-height:0;}",".f13rod7r{-webkit-transform:scaleX(-1);-moz-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1);}"],t:["@media (forced-colors: active){.fg4l7m0{forced-color-adjust:auto;}}"]}),qN=(t,e)=>{const{title:r,primaryFill:o="currentColor",...n}=t,i={...n,title:void 0,fill:o},a=FN(),s=DN();return i.className=R(a.root,e?.flipInRtl&&s?.textDirection==="rtl"&&a.rtl,i.className),r&&(i["aria-label"]=r),!i["aria-label"]&&!i["aria-labelledby"]?i["aria-hidden"]=!0:i.role="img",i},K=(t,e,r,o)=>{const n=e==="1em"?"20":e,i=y.forwardRef((a,s)=>{const l={...qN(a,{flipInRtl:o?.flipInRtl}),ref:s,width:e,height:e,viewBox:`0 0 ${n} ${n}`,xmlns:"http://www.w3.org/2000/svg"};return y.createElement("svg",l,...r.map(c=>y.createElement("path",{d:c,fill:l.fill})))});return i.displayName=t,i},lJ=K("AddRegular","1em",["M10 2.5a.5.5 0 0 0-1 0V9H2.5a.5.5 0 0 0 0 1H9v6.5a.5.5 0 0 0 1 0V10h6.5a.5.5 0 0 0 0-1H10V2.5Z"]),LN=K("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"]),cJ=K("ArrowRedoRegular","1em",["M15 2.5a.5.5 0 0 1 1 0v4.9a.6.6 0 0 1-.6.6h-4.9a.5.5 0 0 1 0-1h3.6l-3.48-3.02a4 4 0 1 0-5.24 6.04l8.17 7.1a.5.5 0 1 1-.66.76l-8.17-7.1a5 5 0 1 1 6.56-7.55L15 6.46V2.5Z"],{flipInRtl:!0}),uJ=K("ArrowUndoRegular","1em",["M5 2.5a.5.5 0 0 0-1 0v4.9c0 .33.27.6.6.6h4.9a.5.5 0 0 0 0-1H5.9l3.48-3.02a4 4 0 0 1 5.25 6.04l-8.17 7.1a.5.5 0 0 0 .65.76l8.17-7.1a5 5 0 0 0-6.56-7.55L5 6.46V2.5Z"],{flipInRtl:!0}),HN=K("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"]),dJ=K("CartRegular","1em",["M3 3.5c0-.28.22-.5.5-.5h.44c.72 0 1.14.47 1.38.94.17.32.29.72.39 1.06H16a1 1 0 0 1 .96 1.27l-1.5 5.28A2 2 0 0 1 13.55 13H8.46a2 2 0 0 1-1.93-1.47L5.9 9.17l-.01-.03-1.03-3.5-.1-.33a5.2 5.2 0 0 0-.32-.91c-.16-.31-.3-.4-.5-.4H3.5a.5.5 0 0 1-.5-.5Zm3.84 5.37.66 2.4a1 1 0 0 0 .96.73h5.08a1 1 0 0 0 .96-.73L16 6H6l.84 2.87ZM10 15.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 0Zm6 0a1.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 0Z"]),UN=K("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"]),$N=K("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"]),KN=K("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"]),WN=K("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"]),VN=K("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"]),GN=K("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"]),XN=K("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"]),Px=K("CircleFilled","1em",["M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z"]),fJ=K("ClearFormattingRegular","1em",["M4.25 3a.5.5 0 0 0-.5.42l-.24 1.5a.5.5 0 0 0 .98.16L4.67 4h3.57l-1.73 9.91a.5.5 0 0 0-.01.09h-1a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1h-1l1.74-9.91A.5.5 0 0 0 9.25 4h3.41l-.15.92a.5.5 0 1 0 .98.16l.25-1.5a.5.5 0 0 0-.49-.58h-9ZM9.6 17c-.16-.32-.3-.65-.4-1H2.5a.5.5 0 0 0 0 1h7.1Zm9.4-2.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Zm-2.65-1.15a.5.5 0 0 0-.7-.7l-1.15 1.14-1.15-1.14a.5.5 0 0 0-.7.7l1.14 1.15-1.14 1.15a.5.5 0 0 0 .7.7l1.15-1.14 1.15 1.14a.5.5 0 0 0 .7-.7l-1.14-1.15 1.14-1.15Z"]),hJ=K("CloudArrowUpRegular","1em",["M10 2c2.82 0 4.41 1.92 4.65 4.25h.07a3.33 3.33 0 0 1 3.27 3.66c-.32-.4-.7-.76-1.12-1.07a2.3 2.3 0 0 0-2.15-1.6h-.07a1 1 0 0 1-1-.9C13.45 4.33 12.11 3 10 3S6.55 4.32 6.35 6.35a1 1 0 0 1-1 .9h-.07A2.33 2.33 0 0 0 3 9.62 2.33 2.33 0 0 0 5.28 12h2.67c-.09.32-.15.66-.18 1H5.28A3.33 3.33 0 0 1 2 9.62c0-1.8 1.37-3.27 3.1-3.37h.25C5.6 3.9 7.18 2 10 2Zm3.5 7a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9Zm1.6 4.9a.56.56 0 1 0 .8-.8l-2-2a.56.56 0 0 0-.8 0l-2 2a.56.56 0 1 0 .8.8l1.1-1.1v2.7a.5.5 0 0 0 1 0v-2.7l1.1 1.1Z"]),gJ=K("CodeRegular","1em",["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"]),pJ=K("ColorFillRegular","1em",["M4.34 12H4a2 2 0 0 0-2 2v2c0 1.1.9 2 2 2h12a2 2 0 0 0 2-2v-2a2 2 0 0 0-.56-1.39c-.08.4-.23.8-.47 1.16A1 1 0 0 1 17 14v2a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h1.34l-1-1Zm10.04-2.83-.22.26c-.12.15-.29.38-.46.64-.31.5-.7 1.23-.7 1.93 0 1 .67 2 1.75 2s1.75-1 1.75-2c0-.7-.39-1.44-.7-1.93a8.13 8.13 0 0 0-.46-.64l-.21-.25-.02-.02a.47.47 0 0 0-.36-.16.5.5 0 0 0-.37.17Zm.37 1.14.2.3c.31.47.55 1 .55 1.39 0 .3-.1.57-.25.75a.62.62 0 0 1-.5.25.62.62 0 0 1-.5-.25A1.21 1.21 0 0 1 14 12c0-.4.24-.92.55-1.4l.2-.3ZM8.5 1a.5.5 0 0 0-.5.5v1.56a2 2 0 0 0-.8.49L3.66 7.09a2 2 0 0 0 0 2.82l2.83 2.83a2 2 0 0 0 2.83 0l3.54-3.53a2 2 0 0 0 0-2.83l-2.83-2.83A2 2 0 0 0 9 3V1.5a.5.5 0 0 0-.5-.5ZM8 4.17V5.5a.5.5 0 0 0 1 0V4.04a1 1 0 0 1 .32.22l2.83 2.83a1 1 0 0 1 .25.41H4.66l3.25-3.24.09-.08ZM4.37 9.21a1 1 0 0 1-.3-.71h8.08l-3.54 3.54a1 1 0 0 1-1.41 0L4.37 9.2Zm10-.04Z"]),mJ=K("CopyRegular","1em",["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"]),vJ=K("DeleteRegular","1em",["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"]),YN=K("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"]),ZN=K("DismissCircleFilled","1em",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16ZM7.8 7.11a.5.5 0 0 0-.63.06l-.06.07a.5.5 0 0 0 .06.64L9.3 10l-2.12 2.12-.06.07a.5.5 0 0 0 .06.64l.07.06c.2.13.47.11.64-.06L10 10.7l2.12 2.12.07.06c.2.13.46.11.64-.06l.06-.07a.5.5 0 0 0-.06-.64L10.7 10l2.12-2.12.06-.07a.5.5 0 0 0-.06-.64l-.07-.06a.5.5 0 0 0-.64.06L10 9.3 7.88 7.17l-.07-.06Z"]),bJ=K("EditFilled","1em",["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"]),yJ=K("EditRegular","1em",["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"]),wJ=K("ImageRegular","1em",["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"]),QN=K("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"]),kJ=K("LinkRegular","1em",["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"]),SJ=K("LocalLanguageRegular","1em",["M9.5 2a.5.5 0 0 0 0 1H13v1.86C13 6.03 11.83 7 10.5 7a.5.5 0 0 0 0 1C12.21 8 14 6.74 14 4.86V2.5a.5.5 0 0 0-.5-.5h-4ZM7.96 5.3a.5.5 0 0 0-.92 0l-5 12a.5.5 0 1 0 .92.4L4.5 14h6l1.54 3.7a.5.5 0 1 0 .92-.39l-1.66-3.99v-.02l-3.34-8Zm2.12 7.7H4.92L7.5 6.8l2.58 6.2ZM15.5 2c.28 0 .5.22.5.5V6h1.5a.5.5 0 0 1 0 1H16v6.5a.5.5 0 1 1-1 0v-11c0-.28.23-.5.5-.5Z"]),_J=K("LockClosedFilled","1em",["M10 2a3 3 0 0 0-3 3v1H6a3 3 0 0 0-3 3v6a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V9a3 3 0 0 0-3-3h-1V5a3 3 0 0 0-3-3ZM8 5a2 2 0 1 1 4 0v1H8V5Zm2 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"]),xJ=K("LockOpenRegular","1em",["M10 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm5-11a2 2 0 0 0-2 2v2h1a3 3 0 0 1 3 3v6a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V9a3 3 0 0 1 3-3h6V4a3 3 0 1 1 6 0v.5a.5.5 0 0 1-1 0V4a2 2 0 0 0-2-2Zm-1 5H6a2 2 0 0 0-2 2v6c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2Z"]),CJ=K("MarkdownRegular","1em",["M16 4.5a.5.5 0 0 0-1 0v8.8l-1.15-1.15a.5.5 0 0 0-.7.7l2 2c.2.2.5.2.7 0l2-2a.5.5 0 0 0-.7-.7L16 13.29V4.5ZM2.32 4.03a.5.5 0 0 1 .55.14L7 8.75l4.13-4.58a.5.5 0 0 1 .87.33v10a.5.5 0 1 1-1 0V5.8L7.37 9.83a.5.5 0 0 1-.74 0L3 5.8v8.7a.5.5 0 1 1-1 0v-10c0-.2.13-.4.32-.47Z"]),TJ=K("MoreHorizontalRegular","1em",["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"]),EJ=K("OpenRegular","1em",["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"]),JN=K("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"]),BJ=K("SaveRegular","1em",["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"]),IJ=K("SearchRegular","1em",["M8.5 3a5.5 5.5 0 0 1 4.23 9.02l4.12 4.13a.5.5 0 0 1-.63.76l-.07-.06-4.13-4.12A5.5 5.5 0 1 1 8.5 3Zm0 1a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Z"]),RJ=K("SendRegular","1em",["M2.18 2.11a.5.5 0 0 1 .54-.06l15 7.5a.5.5 0 0 1 0 .9l-15 7.5a.5.5 0 0 1-.7-.58L3.98 10 2.02 2.63a.5.5 0 0 1 .16-.52Zm2.7 8.39-1.61 6.06L16.38 10 3.27 3.44 4.88 9.5h6.62a.5.5 0 1 1 0 1H4.88Z"],{flipInRtl:!0}),AJ=K("SplitHorizontalRegular","1em",["M17.5 10a.5.5 0 0 0 0-1h-15a.5.5 0 0 0 0 1h15ZM16 4a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v4h1V4a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v4h1V4Zm0 7h-1v4a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-4H4v4c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2v-4Z"]),NJ=K("TableRegular","1em",["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"]),PJ=K("TaskListLtrRegular","1em",["M5.85 4.35a.5.5 0 1 0-.7-.7L3.5 5.29l-.65-.64a.5.5 0 1 0-.7.7l1 1c.2.2.5.2.7 0l2-2ZM8.5 5a.5.5 0 0 0 0 1h9a.5.5 0 0 0 0-1h-9Zm0 5a.5.5 0 0 0 0 1h9a.5.5 0 0 0 0-1h-9ZM8 15.5c0-.28.22-.5.5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5ZM5.85 9.85a.5.5 0 1 0-.7-.7L3.5 10.79l-.65-.64a.5.5 0 0 0-.7.7l1 1c.2.2.5.2.7 0l2-2Zm0 4.3c.2.2.2.5 0 .7l-2 2a.5.5 0 0 1-.7 0l-1-1a.5.5 0 0 1 .7-.7l.65.64 1.65-1.64c.2-.2.5-.2.7 0Z"]),zJ=K("TextAlignCenterRegular","1em",["M4 4.5c0-.28.22-.5.5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5Zm-2 5c0-.28.22-.5.5-.5h15a.5.5 0 0 1 0 1h-15a.5.5 0 0 1-.5-.5ZM6.5 14a.5.5 0 0 0 0 1h7a.5.5 0 0 0 0-1h-7Z"]),MJ=K("TextAlignJustifyRegular","1em",["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"]),OJ=K("TextAlignLeftRegular","1em",["M2 4.5c0-.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-.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 1h9a.5.5 0 0 0 0-1h-9Z"]),jJ=K("TextAlignRightRegular","1em",["M6 4.5c0-.28.22-.5.5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5Zm-4 5c0-.28.22-.5.5-.5h15a.5.5 0 0 1 0 1h-15a.5.5 0 0 1-.5-.5ZM9.5 14a.5.5 0 0 0 0 1h8a.5.5 0 0 0 0-1h-8Z"]),DJ=K("TextBoldRegular","1em",["M5.5 4.25C5.5 3.56 6.06 3 6.75 3h3.5a4 4 0 0 1 3.17 6.44c.9.7 1.58 1.8 1.58 3.31A4.23 4.23 0 0 1 10.75 17h-4c-.69 0-1.25-.56-1.25-1.25V4.25ZM8 11v3.5h2.75c.81 0 1.75-.62 1.75-1.75S11.56 11 10.75 11H8Zm0-2.5h2.25a1.5 1.5 0 1 0 0-3H8v3Z"]),FJ=K("TextBulletListLtrRegular","1em",["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"]),qJ=K("TextCollapseRegular","1em",["M5 3.5c0-.28.22-.5.5-.5h12a.5.5 0 0 1 0 1h-12a.5.5 0 0 1-.5-.5Zm0 12c0-.28.22-.5.5-.5h12a.5.5 0 0 1 0 1h-12a.5.5 0 0 1-.5-.5Zm6-8c0-.28.22-.5.5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5Zm0 4c0-.28.22-.5.5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5Zm-2-2a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0ZM3.5 9a.5.5 0 0 0 0 1h4a.5.5 0 0 0 0-1h-4Z"]),LJ=K("TextColorRegular","1em",["M10.46 2.31a.5.5 0 0 0-.92 0l-3 7.5a.5.5 0 1 0 .92.38L8.54 7.5h2.92l1.08 2.69a.5.5 0 1 0 .92-.38l-3-7.5ZM10 3.85l1.06 2.65H8.94L10 3.85ZM4.5 12c-.83 0-1.5.67-1.5 1.5v3c0 .83.67 1.5 1.5 1.5h11c.83 0 1.5-.67 1.5-1.5v-3c0-.83-.67-1.5-1.5-1.5h-11ZM4 13.5c0-.28.22-.5.5-.5h11c.28 0 .5.22.5.5v3a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-3Z"]),HJ=K("TextFontSizeRegular","1em",["M13 3.5c.2 0 .4.13.47.32l3 8v.02l1.5 3.98a.5.5 0 1 1-.94.36l-1.38-3.68h-5.3l-1.38 3.68a.5.5 0 0 1-.93 0L6.96 13.5H4.04l-1.08 2.69a.5.5 0 1 1-.92-.38l1.2-2.98v-.03l1.8-4.49a.5.5 0 0 1 .92 0l1.8 4.5v.02l.73 1.79 1.04-2.78v-.03l3-7.99A.5.5 0 0 1 13 3.5Zm-2.28 8h4.56L13 5.42l-2.28 6.08Zm-4.16 1L5.5 9.85 4.44 12.5h2.12Z"]),UJ=K("TextHeader1Regular","1em",["M16.55 4a.5.5 0 0 1 .45.5v11a.5.5 0 0 1-1 0V6.73a8.58 8.58 0 0 1-2.22 2.19.5.5 0 1 1-.56-.84 6.76 6.76 0 0 0 2.83-3.8.5.5 0 0 1 .5-.28ZM2.5 4c.28 0 .5.22.5.5V9h6V4.5a.5.5 0 1 1 1 0v11a.5.5 0 0 1-1 0V10H3v5.5a.5.5 0 0 1-1 0v-11c0-.28.22-.5.5-.5Z"]),$J=K("TextHeader2Regular","1em",["M2.5 4c.28 0 .5.22.5.5V9h6V4.5a.5.5 0 0 1 1 0v11a.5.5 0 0 1-1 0V10H3v5.5a.5.5 0 0 1-1 0v-11c0-.28.22-.5.5-.5Zm12 1A2.54 2.54 0 0 0 12 7.5a.5.5 0 0 1-1 0C11 5.75 12.45 4 14.5 4c1.24 0 2.4.57 3.05 1.54.66 1 .71 2.33-.12 3.72-.42.7-1 1.24-1.62 1.71-.3.24-.62.46-.92.67l-.14.1c-.26.18-.52.35-.77.54-1.01.75-1.78 1.51-1.95 2.72h5.47a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5c0-2 1.17-3.13 2.4-4.03.25-.19.52-.38.79-.56l.13-.09c.3-.21.6-.42.88-.64.57-.43 1.04-.89 1.37-1.44.67-1.1.56-2.02.14-2.65A2.64 2.64 0 0 0 14.5 5Z"]),KJ=K("TextHeader3Regular","1em",["M3 4.5a.5.5 0 0 0-1 0v11a.5.5 0 0 0 1 0V10h6v5.5a.5.5 0 0 0 1 0v-11a.5.5 0 0 0-1 0V9H3V4.5Zm8.98 2.14c.09-.3.28-.7.66-1.04.38-.32.95-.6 1.86-.6C16.24 5 17 6.19 17 7c0 .5-.1 1.11-.5 1.6-.37.46-1.08.9-2.5.9a.5.5 0 0 0 0 1c.5 0 1.3.06 1.94.36.31.15.57.34.76.6.18.24.3.57.3 1.04 0 1-.33 1.6-.76 1.96a2.7 2.7 0 0 1-1.74.54c-.7 0-1.22-.12-1.61-.36-.38-.24-.7-.63-.92-1.3a.5.5 0 1 0-.94.32c.27.83.71 1.44 1.33 1.83.61.38 1.34.51 2.14.51.82 0 1.7-.2 2.38-.77.7-.58 1.12-1.48 1.12-2.73 0-.66-.18-1.2-.5-1.63-.3-.42-.7-.7-1.1-.9.36-.2.65-.46.88-.74.6-.74.72-1.63.72-2.23 0-1.39-1.24-3-3.5-3a3.7 3.7 0 0 0-2.51.85 3.22 3.22 0 0 0-.97 1.51.5.5 0 0 0 .96.28Z"]),WJ=K("TextIndentDecreaseLtrRegular","1em",["M6 4.5c0-.28.22-.5.5-.5h8a.5.5 0 1 1 0 1h-8a.5.5 0 0 1-.5-.5ZM3.56 7.73a.5.5 0 0 1 .7.7L3.22 9.5l1.06 1.06a.5.5 0 1 1-.7.7l-1.42-1.4a.5.5 0 0 1 0-.71l1.41-1.42ZM6.5 9a.5.5 0 0 0 0 1h11a.5.5 0 1 0 0-1h-11ZM6 14.5c0-.28.22-.5.5-.5h6a.5.5 0 1 1 0 1h-6a.5.5 0 0 1-.5-.5Z"]),VJ=K("TextIndentIncreaseLtrRegular","1em",["M6 4.5c0-.28.22-.5.5-.5h8a.5.5 0 0 1 0 1h-8a.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 1h6a.5.5 0 0 0 0-1h-6ZM2.85 7.73a.5.5 0 1 0-.7.7L3.2 9.5l-1.06 1.06a.5.5 0 1 0 .7.7l1.42-1.4a.5.5 0 0 0 0-.71L2.85 7.73Z"]),GJ=K("TextItalicRegular","1em",["M16 3a.5.5 0 0 1 0 1h-3.16L8.23 16h3.27a.5.5 0 0 1 0 1H4a.5.5 0 0 1 0-1h3.16l4.61-12H8.5a.5.5 0 0 1 0-1H16Z"]),XJ=K("TextNumberListLtrRegular","1em",["M5 1.5a.5.5 0 0 0-.39-.49.5.5 0 0 0-.56.27l-.07.12a2.96 2.96 0 0 1-1.2 1.15.5.5 0 1 0 .44.9c.3-.15.56-.34.78-.53V5.5a.5.5 0 0 0 1 0v-4ZM2.65 7.65a.5.5 0 0 0 .7.7l.05-.04.2-.12C3.76 8.09 4 8 4.3 8c.23 0 .41.06.53.15.1.07.16.17.16.35a.5.5 0 0 1-.21.44c-.15.12-.35.22-.62.35l-.14.08c-.32.15-.7.36-1 .7-.33.35-.53.81-.53 1.43 0 .28.22.5.5.5h2.5a.5.5 0 0 0 0-1H3.59c.04-.1.1-.2.17-.27a2.38 2.38 0 0 1 .83-.53c.27-.13.59-.29.84-.5.33-.27.57-.65.57-1.2 0-.5-.22-.9-.57-1.15A1.92 1.92 0 0 0 4.33 7h-.01a2.5 2.5 0 0 0-1.66.63v.01h-.01Zm.01-.02-.01.02s.1-.1.01-.02ZM4.25 15a.5.5 0 1 0 0 1c.34 0 .53.1.63.18.1.09.13.2.13.3-.01.2-.19.52-.76.52-.41 0-.63-.1-.72-.17a.42.42 0 0 1-.1-.07.5.5 0 0 0-.88.46v.01l.02.02a.8.8 0 0 0 .1.15c.07.08.17.17.3.27.28.18.7.33 1.28.33 1.03 0 1.73-.67 1.76-1.48.01-.37-.12-.74-.4-1.02.28-.28.41-.65.4-1.02-.03-.8-.73-1.48-1.76-1.48-.59 0-1 .15-1.28.33a1.4 1.4 0 0 0-.4.42l-.01.01v.01a.5.5 0 0 0 .87.48.42.42 0 0 1 .1-.08c.1-.07.3-.17.72-.17.57 0 .75.33.76.52 0 .1-.04.21-.13.3-.1.08-.29.18-.63.18Zm-.82-.75.01-.02v.02ZM8.5 4a.5.5 0 1 0 0 1h8a.5.5 0 0 0 0-1h-8Zm0 5a.5.5 0 1 0 0 1h8a.5.5 0 0 0 0-1h-8ZM8 14.5c0-.28.22-.5.5-.5h8a.5.5 0 1 1 0 1h-8a.5.5 0 0 1-.5-.5Z"]),YJ=K("TextParagraphDirectionRegular","1em",["M11.5 3a4 4 0 1 0 0 8H13v6.5a.5.5 0 0 0 1 0V4h1v13.5a.5.5 0 0 0 1 0V4h.5a.5.5 0 0 0 0-1h-5ZM13 4v6h-1.5a3 3 0 0 1 0-6H13ZM3.15 5.65c.2-.2.5-.2.7 0l2 2c.2.2.2.5 0 .7l-2 2a.5.5 0 0 1-.7-.7L4.79 8 3.15 6.35a.5.5 0 0 1 0-.7Zm2.7 6a.5.5 0 0 0-.7 0l-2 2a.5.5 0 0 0 0 .7l2 2a.5.5 0 0 0 .7-.7L4.21 14l1.64-1.65a.5.5 0 0 0 0-.7Z"]),ZJ=K("TextQuoteRegular","1em",["M7.83 8.62a8.8 8.8 0 0 1-.96 2.76 12.06 12.06 0 0 1-2.22 2.77.5.5 0 0 0 .7.7h.02c.74-.75 1.66-1.67 2.38-2.98A10.83 10.83 0 0 0 9 6.5a2.5 2.5 0 1 0-1.17 2.12ZM8 6.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Zm6.83 2.12a8.8 8.8 0 0 1-.96 2.76 12.06 12.06 0 0 1-2.22 2.77.5.5 0 0 0 .7.7h.02c.74-.75 1.66-1.67 2.38-2.98A10.83 10.83 0 0 0 16 6.5a2.5 2.5 0 1 0-1.17 2.12ZM13.5 8a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3Z"]),QJ=K("TextStrikethroughRegular","1em",["M6.53 4.03A6.15 6.15 0 0 1 10 3a6.16 6.16 0 0 1 4.9 2.2.5.5 0 0 1-.8.6A5.17 5.17 0 0 0 10 4c-1.15 0-2.18.35-2.9.85C6.36 5.35 6 5.98 6 6.5c0 .9.43 1.48 1.17 1.93.36.22.78.4 1.25.57H6.23A3.02 3.02 0 0 1 5 6.5c0-.98.64-1.86 1.53-2.47ZM16.5 10a.5.5 0 0 1 0 1h-2.73A3.02 3.02 0 0 1 15 13.5c0 1.23-.72 2.12-1.68 2.68-.94.56-2.16.82-3.32.82a7.27 7.27 0 0 1-2.9-.48 4.55 4.55 0 0 1-2.02-1.74.5.5 0 0 1 .84-.56c.45.68.96 1.11 1.58 1.38.64.28 1.44.4 2.5.4 1.03 0 2.06-.24 2.82-.68.74-.44 1.18-1.05 1.18-1.82 0-.9-.43-1.48-1.17-1.93-.36-.22-.78-.4-1.25-.57H3.5a.5.5 0 0 1 0-1h13Z"]),JJ=K("TextSubscriptRegular","1em",["M13.54 4.12c.2.18.23.5.05.7L9.16 10l4.08 4.77c-.18.29-.34.63-.42 1.04L8.5 10.77l-4.34 5.06a.5.5 0 1 1-.75-.66L7.84 10 3.41 4.83a.5.5 0 1 1 .75-.66L8.5 9.23l4.33-5.06a.5.5 0 0 1 .7-.05ZM15.58 12c-.46 0-.83.42-.83.86a.5.5 0 0 1-1 0 1.87 1.87 0 0 1 3.42-1.04c.36.55.37 1.27-.04 1.98-.21.36-.5.63-.79.86l-.42.3-.06.05-.34.24c-.32.24-.55.47-.67.75h2.1a.5.5 0 1 1 0 1H14.3a.54.54 0 0 1-.05 0 .5.5 0 0 1-.5-.5c0-1.04.6-1.62 1.17-2.05l.36-.26.06-.04.38-.28c.24-.19.42-.37.55-.58.25-.43.19-.73.07-.92a.89.89 0 0 0-.76-.37Z"]),eee=K("TextSuperscriptRegular","1em",["M15.58 3c-.46 0-.83.42-.83.86a.5.5 0 0 1-1 0 1.87 1.87 0 0 1 3.42-1.04c.36.55.37 1.27-.04 1.98-.21.36-.5.63-.79.86l-.42.3-.06.05-.34.24c-.32.24-.55.47-.67.75h2.1a.5.5 0 1 1 0 1H14.24a.5.5 0 0 1-.5-.5c0-1.04.6-1.62 1.17-2.05l.36-.26.06-.04.38-.28c.24-.19.42-.37.55-.58.25-.43.19-.73.07-.92a.89.89 0 0 0-.76-.37ZM12.8 4.22c.09.35.3.66.58.86L9.16 10l4.43 5.17a.5.5 0 1 1-.76.66L8.5 10.77l-4.34 5.06a.5.5 0 0 1-.75-.66L7.84 10 3.41 4.83a.5.5 0 1 1 .75-.66L8.5 9.23l4.3-5Z"]),tee=K("TextUnderlineRegular","1em",["M6 3.5a.5.5 0 0 0-1 0v6.45A5.02 5.02 0 0 0 10 15c2.77 0 5-2.26 5-5.05V3.5a.5.5 0 0 0-1 0v6.45C14 12.2 12.2 14 10 14s-4-1.8-4-4.05V3.5Zm-1 13c0-.28.22-.5.5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5Z"]),eP=K("WarningFilled","1em",["M8.68 2.79a1.5 1.5 0 0 1 2.64 0l6.5 12A1.5 1.5 0 0 1 16.5 17h-13a1.5 1.5 0 0 1-1.32-2.21l6.5-12ZM10.5 7.5a.5.5 0 0 0-1 0v4a.5.5 0 0 0 1 0v-4Zm.25 6.25a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0Z"]),zx=K("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"]),tP=K("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"]),rP=K("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"]),oP=K("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"]),nP=K("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"]),iP=K("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"]),aP=K("ErrorCircle12Filled","12",["M6 11A5 5 0 1 0 6 1a5 5 0 0 0 0 10Zm-.75-2.75a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0Zm.26-4.84a.5.5 0 0 1 .98 0l.01.09v2.59a.5.5 0 0 1-1 0V3.41Z"]),Eb=K("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"]),Bb=K("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"]),sP=K("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"]),lP=K("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"]),cP=K("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"]),uP=K("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"]),Ib=K("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"]),Rb=K("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"]),Ab=K("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"]),dP=K("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"]),fP=K("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"]),Nb=K("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"]),Pb=K("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"]),hP=K("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"]),gP=K("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"]),zb=K("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"]),Mb=K("PresenceBusy10Filled","10",["M10 5A5 5 0 1 1 0 5a5 5 0 0 1 10 0Z"]),pP=K("PresenceBusy12Filled","12",["M12 6A6 6 0 1 1 0 6a6 6 0 0 1 12 0Z"]),mP=K("PresenceBusy16Filled","16",["M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0Z"]),Ob=K("PresenceBusy20Filled","20",["M20 10a10 10 0 1 1-20 0 10 10 0 0 1 20 0Z"]),jb=K("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"]),Db=K("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"]),vP=K("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"]),bP=K("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"]),yP=K("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"]),wP=K("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"]),Fb=K("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"]),qb=K("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"]),Lb=K("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"]),kP=K("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"]),SP=K("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"]),Hb=K("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"]),Ub=K("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"]),_P=K("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"]),xP=K("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"]),$b=K("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"]),Kb=K("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"]),CP=K("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"]),TP=K("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"]),Wb=K("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"]),EP=K("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"]),BP=K("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"]),ree=K("Text16Regular","16",["M3 2.5c0-.28.22-.5.5-.5h8c.28 0 .5.22.5.5v2a.5.5 0 0 1-1 0V3H8v10h1a.5.5 0 0 1 0 1H6a.5.5 0 0 1 0-1h1V3H4v1.5a.5.5 0 0 1-1 0v-2Z"]),IP=K("Warning12Filled","12",["M5.21 1.46a.9.9 0 0 1 1.58 0l4.09 7.17a.92.92 0 0 1-.79 1.37H1.91a.92.92 0 0 1-.79-1.37l4.1-7.17ZM5.5 4.5v1a.5.5 0 0 0 1 0v-1a.5.5 0 0 0-1 0ZM6 6.75a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"]),RP="fui-Icon-filled",AP="fui-Icon-regular",NP=F({root:{mc9l5x:"fjseox"},visible:{mc9l5x:"f1w7gpdv"}},{d:[".fjseox{display:none;}",".f1w7gpdv{display:inline;}"]}),Mx=(t,e)=>{const r=o=>{const{className:n,primaryFill:i="currentColor",filled:a,...s}=o,l=NP();return y.createElement(y.Fragment,null,y.createElement(t,Object.assign({},s,{className:R(l.root,a&&l.visible,RP,n),primaryFill:i})),y.createElement(e,Object.assign({},s,{className:R(l.root,!a&&l.visible,AP,n),primaryFill:i})))};return r.displayName="CompoundIcon",r},PP=(t,e)=>P(vN,{value:e.provider,children:P(cN,{value:e.theme,children:P(dN,{value:e.themeClassName,children:P(wN,{value:e.customStyleHooks_unstable,children:P(gN,{value:e.tooltip,children:P(C4,{dir:e.textDirection,children:P(jN,{value:e.iconDirection,children:P(bN,{value:e.overrides_unstable,children:we(t.root,{children:[Zn()?null:P("style",{dangerouslySetInnerHTML:{__html:t.serverStyleProps.cssRule},...t.serverStyleProps.attributes}),t.root.children]})})})})})})})})});var zP=typeof WeakRef<"u",Ox=class{constructor(t){zP&&typeof t=="object"?this._weakRef=new WeakRef(t):this._instance=t}deref(){var t,e;let r;return this._weakRef?(r=(t=this._weakRef)==null?void 0:t.deref(),r||delete this._weakRef):(r=this._instance,(e=r?.isDisposed)!=null&&e.call(r)&&delete this._instance),r}},lo="keyborg:focusin";function MP(t){const e=t.HTMLElement,r=e.prototype.focus;let o=!1;return e.prototype.focus=function(){o=!0},t.document.createElement("button").focus(),e.prototype.focus=r,o}var fh=!1;function Io(t){const e=t.focus;e.__keyborgNativeFocus?e.__keyborgNativeFocus.call(t):t.focus()}function OP(t){const e=t;fh||(fh=MP(e));const r=e.HTMLElement.prototype.focus;if(r.__keyborgNativeFocus)return;e.HTMLElement.prototype.focus=a;const o=s=>{const l=s.relatedTarget,c=s.currentTarget;c.contains(l)||(c.removeEventListener("focusin",n,!0),c.removeEventListener("focusout",o,!0))},n=s=>{var l;const c=s.target;if(!c)return;if(c.shadowRoot){c.shadowRoot.addEventListener("focusin",n,!0),c.shadowRoot.addEventListener("focusout",o,!0);return}const u={relatedTarget:s.relatedTarget||void 0},d=new CustomEvent(lo,{cancelable:!0,bubbles:!0,composed:!0,detail:u});d.details=u,(fh||i.lastFocusedProgrammatically)&&(u.isFocusedProgrammatically=c===((l=i.lastFocusedProgrammatically)==null?void 0:l.deref()),i.lastFocusedProgrammatically=void 0),c.dispatchEvent(d)},i=e.__keyborgData={focusInHandler:n};e.document.addEventListener("focusin",e.__keyborgData.focusInHandler,!0);function a(){const s=e.__keyborgData;return s&&(s.lastFocusedProgrammatically=new Ox(this)),r.apply(this,arguments)}a.__keyborgNativeFocus=r}function jP(t){const e=t,r=e.HTMLElement.prototype,o=r.focus.__keyborgNativeFocus,n=e.__keyborgData;n&&(e.document.removeEventListener("focusin",n.focusInHandler,!0),delete e.__keyborgData),o&&(r.focus=o)}var DP=500,jx=0,FP=class{constructor(){this.__keyborgCoreRefs={},this._isNavigatingWithKeyboard=!1}add(t){const e=t.id;e in this.__keyborgCoreRefs||(this.__keyborgCoreRefs[e]=new Ox(t))}remove(t){delete this.__keyborgCoreRefs[t],Object.keys(this.__keyborgCoreRefs).length===0&&(this._isNavigatingWithKeyboard=!1)}setVal(t){if(this._isNavigatingWithKeyboard!==t){this._isNavigatingWithKeyboard=t;for(const e of Object.keys(this.__keyborgCoreRefs)){const o=this.__keyborgCoreRefs[e].deref();o?o.update(t):this.remove(e)}}}getVal(){return this._isNavigatingWithKeyboard}},mo=new FP,qP=class{constructor(t,e){this._onFocusIn=o=>{if(this._isMouseUsedTimer||mo.getVal())return;const n=o.detail;n.relatedTarget&&(n.isFocusedProgrammatically||n.isFocusedProgrammatically===void 0||mo.setVal(!0))},this._onMouseDown=o=>{if(o.buttons===0||o.clientX===0&&o.clientY===0&&o.screenX===0&&o.screenY===0)return;const n=this._win;n&&(this._isMouseUsedTimer&&n.clearTimeout(this._isMouseUsedTimer),this._isMouseUsedTimer=n.setTimeout(()=>{delete this._isMouseUsedTimer},1e3)),mo.setVal(!1)},this._onKeyDown=o=>{mo.getVal()?this._shouldDismissKeyboardNavigation(o)&&this._scheduleDismiss():this._shouldTriggerKeyboardNavigation(o)&&mo.setVal(!0)},this.id="c"+ ++jx,this._win=t;const r=t.document;if(e){const o=e.triggerKeys,n=e.dismissKeys;o?.length&&(this._triggerKeys=new Set(o)),n?.length&&(this._dismissKeys=new Set(n))}r.addEventListener(lo,this._onFocusIn,!0),r.addEventListener("mousedown",this._onMouseDown,!0),t.addEventListener("keydown",this._onKeyDown,!0),OP(t),mo.add(this)}dispose(){const t=this._win;if(t){this._isMouseUsedTimer&&(t.clearTimeout(this._isMouseUsedTimer),this._isMouseUsedTimer=void 0),this._dismissTimer&&(t.clearTimeout(this._dismissTimer),this._dismissTimer=void 0),jP(t);const e=t.document;e.removeEventListener(lo,this._onFocusIn,!0),e.removeEventListener("mousedown",this._onMouseDown,!0),t.removeEventListener("keydown",this._onKeyDown,!0),delete this._win,mo.remove(this.id)}}isDisposed(){return!!this._win}update(t){var e,r;const o=(r=(e=this._win)==null?void 0:e.__keyborg)==null?void 0:r.refs;if(o)for(const n of Object.keys(o))Ov.update(o[n],t)}_shouldTriggerKeyboardNavigation(t){var e;if(t.key==="Tab")return!0;const r=(e=this._win)==null?void 0:e.document.activeElement,o=!this._triggerKeys||this._triggerKeys.has(t.keyCode),n=r&&(r.tagName==="INPUT"||r.tagName==="TEXTAREA"||r.isContentEditable);return o&&!n}_shouldDismissKeyboardNavigation(t){var e;return(e=this._dismissKeys)==null?void 0:e.has(t.keyCode)}_scheduleDismiss(){const t=this._win;if(t){this._dismissTimer&&(t.clearTimeout(this._dismissTimer),this._dismissTimer=void 0);const e=t.document.activeElement;this._dismissTimer=t.setTimeout(()=>{this._dismissTimer=void 0;const r=t.document.activeElement;e&&r&&e===r&&mo.setVal(!1)},DP)}}},Ov=class Dx{constructor(e,r){this._cb=[],this._id="k"+ ++jx,this._win=e;const o=e.__keyborg;o?(this._core=o.core,o.refs[this._id]=this):(this._core=new qP(e,r),e.__keyborg={core:this._core,refs:{[this._id]:this}})}static create(e,r){return new Dx(e,r)}static dispose(e){e.dispose()}static update(e,r){e._cb.forEach(o=>o(r))}dispose(){var e;const r=(e=this._win)==null?void 0:e.__keyborg;r?.refs[this._id]&&(delete r.refs[this._id],Object.keys(r.refs).length===0&&(r.core.dispose(),delete this._win.__keyborg)),this._cb=[],delete this._core,delete this._win}isNavigatingWithKeyboard(){return mo.getVal()}subscribe(e){this._cb.push(e)}unsubscribe(e){const r=this._cb.indexOf(e);r>=0&&this._cb.splice(r,1)}setVal(e){mo.setVal(e)}};function jv(t,e){return Ov.create(t,e)}function Dv(t){Ov.dispose(t)}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + *//*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */const Zo="data-tabster",Fx="data-tabster-dummy",LP="tabster:deloser",qx="tabster:modalizer:active",Lx="tabster:modalizer:inactive",HP="tabster:modalizer:focusin",UP="tabster:modalizer:focusout",$P="tabster:modalizer:beforefocusout",$g="tabster:mover",Hx="tabster:focusin",Ux="tabster:focusout",$x="tabster:movefocus",Kg="tabster:mover:movefocus",Wg="tabster:groupper:movefocus",Fv=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","*[tabindex]","*[contenteditable]"].join(", "),Vg={Enter:1,Escape:2},KP={Any:0,Accessible:1,Focusable:2},WP={History:0,DeloserDefault:1,RootDefault:2,DeloserFirst:3,RootFirst:4},Do={Invisible:0,PartiallyVisible:1,Visible:2},_l={Source:0,Target:1},si={Both:0,Vertical:1,Horizontal:2,Grid:3,GridLinear:4},tt={ArrowUp:1,ArrowDown:2,ArrowLeft:3,ArrowRight:4,PageUp:5,PageDown:6,Home:7,End:8},Kx={Unlimited:0,Limited:1,LimitedTrapFocus:2},Wx={Auto:0,Inside:1,Outside:2};var Yt=Object.freeze({__proto__:null,TabsterAttributeName:Zo,TabsterDummyInputAttributeName:Fx,DeloserEventName:LP,ModalizerActiveEventName:qx,ModalizerInactiveEventName:Lx,ModalizerFocusInEventName:HP,ModalizerFocusOutEventName:UP,ModalizerBeforeFocusOutEventName:$P,MoverEventName:$g,FocusInEventName:Hx,FocusOutEventName:Ux,MoveFocusEventName:$x,MoverMoveFocusEventName:Kg,GroupperMoveFocusEventName:Wg,FocusableSelector:Fv,GroupperMoveFocusActions:Vg,ObservedElementAccesibilities:KP,RestoreFocusOrders:WP,Visibilities:Do,RestorerTypes:_l,MoverDirections:si,MoverKeys:tt,GroupperTabbabilities:Kx,SysDummyInputsPositions:Wx});/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */function er(t,e){var r;return(r=t.storageEntry(e))===null||r===void 0?void 0:r.tabster}function Vx(t,e,r){var o,n;const i=r||t._noop?void 0:e.getAttribute(Zo);let a=t.storageEntry(e),s;if(i)if(i!==((o=a?.attr)===null||o===void 0?void 0:o.string))try{const d=JSON.parse(i);if(typeof d!="object")throw new Error(`Value is not a JSON object, got '${i}'.`);s={string:i,object:d}}catch{}else return;else if(!a)return;a||(a=t.storageEntry(e,!0)),a.tabster||(a.tabster={});const l=a.tabster||{},c=((n=a.attr)===null||n===void 0?void 0:n.object)||{},u=s?.object||{};for(const d of Object.keys(c))if(!u[d]){if(d==="root"){const f=l[d];f&&t.root.onRoot(f,!0)}switch(d){case"deloser":case"root":case"groupper":case"modalizer":case"restorer":case"mover":const f=l[d];f&&(f.dispose(),delete l[d]);break;case"observed":delete l[d],t.observedElement&&t.observedElement.onObservedElementUpdate(e);break;case"focusable":case"outline":case"uncontrolled":case"sys":delete l[d];break}}for(const d of Object.keys(u)){const f=u.sys;switch(d){case"deloser":l.deloser?l.deloser.setProps(u.deloser):t.deloser&&(l.deloser=t.deloser.createDeloser(e,u.deloser));break;case"root":l.root?l.root.setProps(u.root):l.root=t.root.createRoot(e,u.root,f),t.root.onRoot(l.root);break;case"modalizer":l.modalizer?l.modalizer.setProps(u.modalizer):t.modalizer&&(l.modalizer=t.modalizer.createModalizer(e,u.modalizer,f));break;case"restorer":l.restorer?l.restorer.setProps(u.restorer):t.restorer&&u.restorer&&(l.restorer=t.restorer.createRestorer(e,u.restorer));break;case"focusable":l.focusable=u.focusable;break;case"groupper":l.groupper?l.groupper.setProps(u.groupper):t.groupper&&(l.groupper=t.groupper.createGroupper(e,u.groupper,f));break;case"mover":l.mover?l.mover.setProps(u.mover):t.mover&&(l.mover=t.mover.createMover(e,u.mover,f));break;case"observed":t.observedElement&&(l.observed=u.observed,t.observedElement.onObservedElementUpdate(e));break;case"uncontrolled":l.uncontrolled=u.uncontrolled;break;case"outline":t.outline&&(l.outline=u.outline);break;case"sys":l.sys=u.sys;break;default:console.error(`Unknown key '${d}' in data-tabster attribute value.`)}}s?a.attr=s:(Object.keys(l).length===0&&(delete a.tabster,delete a.attr),t.storageEntry(e,!1))}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */function VP(t){const e=t();try{if(e.EventTarget)return new e.EventTarget}catch(r){if(!(r instanceof TypeError))throw r}return e.document.createElement("div")}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */let Gg;const Vb=typeof DOMRect<"u"?DOMRect:class{constructor(t,e,r,o){this.left=t||0,this.top=e||0,this.right=(t||0)+(r||0),this.bottom=(e||0)+(o||0)}};let GP=0;try{document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT),Gg=!1}catch{Gg=!0}const hh=100;function fn(t){const e=t();let r=e.__tabsterInstanceContext;return r||(r={elementByUId:{},basics:{Promise:e.Promise||void 0,WeakRef:e.WeakRef||void 0},containerBoundingRectCache:{},lastContainerBoundingRectCacheId:0,fakeWeakRefs:[],fakeWeakRefsStarted:!1},e.__tabsterInstanceContext=r),r}function XP(t){const e=t.__tabsterInstanceContext;e&&(e.elementByUId={},delete e.WeakRef,e.containerBoundingRectCache={},e.containerBoundingRectCacheTimer&&t.clearTimeout(e.containerBoundingRectCacheTimer),e.fakeWeakRefsTimer&&t.clearTimeout(e.fakeWeakRefsTimer),e.fakeWeakRefs=[],delete t.__tabsterInstanceContext)}function YP(t){const e=t.__tabsterInstanceContext;return new(e?.basics.WeakMap||WeakMap)}function ZP(t){return!!t.querySelector(Fv)}class Gx{constructor(e){this._target=e}deref(){return this._target}static cleanup(e,r){return e._target?r||!Lv(e._target.ownerDocument,e._target)?(delete e._target,!0):!1:!0}}class kr{constructor(e,r,o){const n=fn(e);let i;n.WeakRef?i=new n.WeakRef(r):(i=new Gx(r),n.fakeWeakRefs.push(i)),this._ref=i,this._data=o}get(){const e=this._ref;let r;return e&&(r=e.deref(),r||delete this._ref),r}getData(){return this._data}}function Xx(t,e){const r=fn(t);r.fakeWeakRefs=r.fakeWeakRefs.filter(o=>!Gx.cleanup(o,e))}function Yx(t){const e=fn(t);e.fakeWeakRefsStarted||(e.fakeWeakRefsStarted=!0,e.WeakRef=o6(e)),e.fakeWeakRefsTimer||(e.fakeWeakRefsTimer=t().setTimeout(()=>{e.fakeWeakRefsTimer=void 0,Xx(t),Yx(t)},2*60*1e3))}function QP(t){const e=fn(t);e.fakeWeakRefsStarted=!1,e.fakeWeakRefsTimer&&(t().clearTimeout(e.fakeWeakRefsTimer),e.fakeWeakRefsTimer=void 0,e.fakeWeakRefs=[])}function qv(t,e,r){if(e.nodeType!==Node.ELEMENT_NODE)return;const o=Gg?r:{acceptNode:r};return t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,o,!1)}function Zx(t,e){let r=e.__tabsterCacheId;const o=fn(t),n=r?o.containerBoundingRectCache[r]:void 0;if(n)return n.rect;const i=e.ownerDocument&&e.ownerDocument.documentElement;if(!i)return new Vb;let a=0,s=0,l=i.clientWidth,c=i.clientHeight;if(e!==i){const d=e.getBoundingClientRect();a=Math.max(a,d.left),s=Math.max(s,d.top),l=Math.min(l,d.right),c=Math.min(c,d.bottom)}const u=new Vb(a{o.containerBoundingRectCacheTimer=void 0;for(const d of Object.keys(o.containerBoundingRectCache))delete o.containerBoundingRectCache[d].element.__tabsterCacheId;o.containerBoundingRectCache={}},50)),u}function Gb(t,e,r){const o=Qx(e);if(!o)return!1;const n=Zx(t,o),i=e.getBoundingClientRect(),a=i.height*(1-r),s=Math.max(0,n.top-i.top),l=Math.max(0,i.bottom-n.bottom),c=s+l;return c===0||c<=a}function JP(t,e,r){const o=Qx(e);if(o){const n=Zx(t,o),i=e.getBoundingClientRect();r?o.scrollTop+=i.top-n.top:o.scrollTop+=i.bottom-n.bottom}}function Qx(t){const e=t.ownerDocument;if(e){for(let r=t.parentElement;r;r=r.parentElement)if(r.scrollWidth>r.clientWidth||r.scrollHeight>r.clientHeight)return r;return e.documentElement}return null}function e6(t){t.__shouldIgnoreFocus=!0}function Jx(t){return!!t.__shouldIgnoreFocus}function t6(t){const e=new Uint32Array(4);if(t.crypto&&t.crypto.getRandomValues)t.crypto.getRandomValues(e);else if(t.msCrypto&&t.msCrypto.getRandomValues)t.msCrypto.getRandomValues(e);else for(let o=0;o{if(this._fixedTarget){const f=this._fixedTarget.get();f&&Io(f);return}const d=this.input;if(this.onFocusIn&&d){const f=u.relatedTarget;this.onFocusIn(this,this._isBackward(!0,d,f),f)}},this._focusOut=u=>{if(this._fixedTarget)return;this.useDefaultAction=!1;const d=this.input;if(this.onFocusOut&&d){const f=u.relatedTarget;this.onFocusOut(this,this._isBackward(!1,d,f),f)}};const s=e(),l=s.document.createElement("i");l.tabIndex=0,l.setAttribute("role","none"),l.setAttribute(Fx,""),l.setAttribute("aria-hidden","true");const c=l.style;c.position="fixed",c.width=c.height="1px",c.opacity="0.001",c.zIndex="-1",c.setProperty("content-visibility","hidden"),e6(l),this.input=l,this.isFirst=o.isFirst,this.isOutside=r,this._isPhantom=(a=o.isPhantom)!==null&&a!==void 0?a:!1,this._fixedTarget=i,l.addEventListener("focusin",this._focusIn),l.addEventListener("focusout",this._focusOut),l.__tabsterDummyContainer=n,this._isPhantom&&(this._disposeTimer=s.setTimeout(()=>{delete this._disposeTimer,this.dispose()},0),this._clearDisposeTimeout=()=>{this._disposeTimer&&(s.clearTimeout(this._disposeTimer),delete this._disposeTimer),delete this._clearDisposeTimeout})}dispose(){var e;this._clearDisposeTimeout&&this._clearDisposeTimeout();const r=this.input;r&&(delete this._fixedTarget,delete this.onFocusIn,delete this.onFocusOut,delete this.input,r.removeEventListener("focusin",this._focusIn),r.removeEventListener("focusout",this._focusOut),delete r.__tabsterDummyContainer,(e=r.parentElement)===null||e===void 0||e.removeChild(r))}setTopLeft(e,r){var o;const n=(o=this.input)===null||o===void 0?void 0:o.style;n&&(n.top=`${e}px`,n.left=`${r}px`)}_isBackward(e,r,o){return e&&!o?!this.isFirst:!!(o&&r.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING)}}const mf={Root:1,Modalizer:2,Mover:3,Groupper:4};class Ya{constructor(e,r,o,n,i,a){this._element=r,this._instance=new a6(e,r,this,o,n,i,a)}_setHandlers(e,r){this._onFocusIn=e,this._onFocusOut=r}moveOut(e){var r;(r=this._instance)===null||r===void 0||r.moveOut(e)}moveOutWithDefaultAction(e,r){var o;(o=this._instance)===null||o===void 0||o.moveOutWithDefaultAction(e,r)}getHandler(e){return e?this._onFocusIn:this._onFocusOut}setTabbable(e){var r;(r=this._instance)===null||r===void 0||r.setTabbable(this,e)}dispose(){this._instance&&(this._instance.dispose(this),delete this._instance),delete this._onFocusIn,delete this._onFocusOut}static moveWithPhantomDummy(e,r,o,n,i){var a;const l=new ld(e.getWindow,!0,{isPhantom:!0,isFirst:!0}).input;if(l){let c,u;if(r.tagName==="BODY")c=r,u=o&&n||!o&&!n?r.firstElementChild:null;else{o&&(!n||n&&!e.focusable.isFocusable(r,!1,!0,!0))?(c=r,u=n?r.firstElementChild:null):(c=r.parentElement,u=o&&n||!o&&!n?r:r.nextElementSibling);let d,f;do d=o&&n||!o&&!n?u?.previousElementSibling:u,f=(a=d?.__tabsterDummyContainer)===null||a===void 0?void 0:a.get(),f===r?u=o&&n||!o&&!n?d:d?.nextElementSibling:f=void 0;while(f)}c&&Nn({by:"root",owner:c,next:null,relatedEvent:i})&&(c.insertBefore(l,u),Io(l))}}static addPhantomDummyWithTarget(e,r,o,n){const a=new ld(e.getWindow,!0,{isPhantom:!0,isFirst:!0},void 0,new kr(e.getWindow,n)).input;if(a){let s,l;ZP(r)&&!o?(s=r,l=r.firstElementChild):(s=r.parentElement,l=o?r:r.nextElementSibling),s?.insertBefore(a,l)}}}class i6{constructor(e){this._updateQueue=new Set,this._lastUpdateQueueTime=0,this._changedParents=new WeakSet,this._dummyElements=[],this._dummyCallbacks=new WeakMap,this._domChanged=r=>{var o;this._changedParents.has(r)||(this._changedParents.add(r),!this._updateDummyInputsTimer&&(this._updateDummyInputsTimer=(o=this._win)===null||o===void 0?void 0:o.call(this).setTimeout(()=>{delete this._updateDummyInputsTimer;for(const n of this._dummyElements){const i=n.get();if(i){const a=this._dummyCallbacks.get(i);if(a){const s=i.parentElement;(!s||this._changedParents.has(s))&&a()}}}this._changedParents=new WeakSet},hh)))},this._win=e}add(e,r){!this._dummyCallbacks.has(e)&&this._win&&(this._dummyElements.push(new kr(this._win,e)),this._dummyCallbacks.set(e,r),this.domChanged=this._domChanged)}remove(e){this._dummyElements=this._dummyElements.filter(r=>{const o=r.get();return o&&o!==e}),this._dummyCallbacks.delete(e),this._dummyElements.length===0&&delete this.domChanged}dispose(){var e;const r=(e=this._win)===null||e===void 0?void 0:e.call(this);this._updateTimer&&(r?.clearTimeout(this._updateTimer),delete this._updateTimer),this._updateDummyInputsTimer&&(r?.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(e){this._win&&(this._updateQueue.add(e),this._lastUpdateQueueTime=Date.now(),this._scheduledUpdatePositions())}_scheduledUpdatePositions(){var e;this._updateTimer||(this._updateTimer=(e=this._win)===null||e===void 0?void 0:e.call(this).setTimeout(()=>{if(delete this._updateTimer,this._lastUpdateQueueTime+hh<=Date.now()){const r=new Map,o=[];for(const n of this._updateQueue)o.push(n(r));this._updateQueue.clear();for(const n of o)n();r.clear()}else this._scheduledUpdatePositions()},hh))}}class a6{constructor(e,r,o,n,i,a,s){this._wrappers=[],this._isOutside=!1,this._transformElements=new Set,this._onFocusIn=(h,g,m)=>{this._onFocus(!0,h,g,m)},this._onFocusOut=(h,g,m)=>{this._onFocus(!1,h,g,m)},this.moveOut=h=>{var g;const m=this._firstDummy,w=this._lastDummy;if(m&&w){this._ensurePosition();const v=m.input,p=w.input,b=(g=this._element)===null||g===void 0?void 0:g.get();if(v&&p&&b){let k;h?(v.tabIndex=0,k=v):(p.tabIndex=0,k=p),k&&Io(k)}}},this.moveOutWithDefaultAction=(h,g)=>{var m;const w=this._firstDummy,v=this._lastDummy;if(w&&v){this._ensurePosition();const p=w.input,b=v.input,k=(m=this._element)===null||m===void 0?void 0:m.get();if(p&&b&&k){let x;h?!w.isOutside&&this._tabster.focusable.isFocusable(k,!0,!0,!0)?x=k:(w.useDefaultAction=!0,p.tabIndex=0,x=p):(v.useDefaultAction=!0,b.tabIndex=0,x=b),x&&Nn({by:"root",owner:k,next:null,relatedEvent:g})&&Io(x)}}},this.setTabbable=(h,g)=>{var m,w;for(const p of this._wrappers)if(p.manager===h){p.tabbable=g;break}const v=this._getCurrent();if(v){const p=v.tabbable?0:-1;let b=(m=this._firstDummy)===null||m===void 0?void 0:m.input;b&&(b.tabIndex=p),b=(w=this._lastDummy)===null||w===void 0?void 0:w.input,b&&(b.tabIndex=p)}},this._addDummyInputs=()=>{this._addTimer||(this._addTimer=this._getWindow().setTimeout(()=>{delete this._addTimer,this._ensurePosition(),this._addTransformOffsets()},0))},this._addTransformOffsets=()=>{this._tabster._dummyObserver.updatePositions(this._computeTransformOffsets)},this._computeTransformOffsets=h=>{var g,m;const w=((g=this._firstDummy)===null||g===void 0?void 0:g.input)||((m=this._lastDummy)===null||m===void 0?void 0:m.input),v=this._transformElements,p=new Set;let b=0,k=0;const x=this._getWindow();for(let S=w;S&&S.nodeType===Node.ELEMENT_NODE;S=S.parentElement){let _=h.get(S);if(_===void 0){const C=x.getComputedStyle(S).transform;C&&C!=="none"&&(_={scrollTop:S.scrollTop,scrollLeft:S.scrollLeft}),h.set(S,_||null)}_&&(p.add(S),v.has(S)||S.addEventListener("scroll",this._addTransformOffsets),b+=_.scrollTop,k+=_.scrollLeft)}for(const S of v)p.has(S)||S.removeEventListener("scroll",this._addTransformOffsets);return this._transformElements=p,()=>{var S,_;(S=this._firstDummy)===null||S===void 0||S.setTopLeft(b,k),(_=this._lastDummy)===null||_===void 0||_.setTopLeft(b,k)}};const l=r.get();if(!l)throw new Error("No element");this._tabster=e,this._getWindow=e.getWindow,this._callForDefaultAction=s;const c=l.__tabsterDummy;if((c||this)._wrappers.push({manager:o,priority:n,tabbable:!0}),c)return c;l.__tabsterDummy=this;const u=i?.dummyInputsPosition,d=l.tagName;this._isOutside=u?u===Wx.Outside:(a||d==="UL"||d==="OL"||d==="TABLE")&&!(d==="LI"||d==="TD"||d==="TH"),this._firstDummy=new ld(this._getWindow,this._isOutside,{isFirst:!0},r),this._lastDummy=new ld(this._getWindow,this._isOutside,{isFirst:!1},r);const f=this._firstDummy.input;f&&e._dummyObserver.add(f,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(e,r){var o,n,i,a;if((this._wrappers=this._wrappers.filter(l=>l.manager!==e&&!r)).length===0){delete((o=this._element)===null||o===void 0?void 0:o.get()).__tabsterDummy;for(const u of this._transformElements)u.removeEventListener("scroll",this._addTransformOffsets);this._transformElements.clear();const l=this._getWindow();this._addTimer&&(l.clearTimeout(this._addTimer),delete this._addTimer);const c=(n=this._firstDummy)===null||n===void 0?void 0:n.input;c&&this._tabster._dummyObserver.remove(c),(i=this._firstDummy)===null||i===void 0||i.dispose(),(a=this._lastDummy)===null||a===void 0||a.dispose()}}_onFocus(e,r,o,n){var i;const a=this._getCurrent();a&&(!r.useDefaultAction||this._callForDefaultAction)&&((i=a.manager.getHandler(e))===null||i===void 0||i(r,o,n))}_getCurrent(){return this._wrappers.sort((e,r)=>e.tabbable!==r.tabbable?e.tabbable?-1:1:e.priority-r.priority),this._wrappers[0]}_ensurePosition(){var e,r,o;const n=(e=this._element)===null||e===void 0?void 0:e.get(),i=(r=this._firstDummy)===null||r===void 0?void 0:r.input,a=(o=this._lastDummy)===null||o===void 0?void 0:o.input;if(!(!n||!i||!a))if(this._isOutside){const s=n.parentElement;if(s){const l=n.nextElementSibling;l!==a&&s.insertBefore(a,l),n.previousElementSibling!==i&&s.insertBefore(i,n)}}else{n.lastElementChild!==a&&n.appendChild(a);const s=n.firstElementChild;s&&s!==i&&n.insertBefore(i,s)}}}function tC(t){let e=null;for(let r=t.lastElementChild;r;r=r.lastElementChild)e=r;return e||void 0}function s6(t,e){let r=t,o=null;for(;r&&!o;)o=e?r.previousElementSibling:r.nextElementSibling,r=r.parentElement;return o||void 0}function Un(t,e,r){const o=new CustomEvent(e,{bubbles:!0,cancelable:!0,composed:!0,detail:r});return o.details=r,t.dispatchEvent(o),!o.defaultPrevented}function Nn(t){return Un(t.owner,$x,t)}function gh(t,e,r,o){const n=t.storageEntry(e,!0);let i=!1;if(!n.aug){if(o===void 0)return i;n.aug={}}if(o===void 0){if(r in n.aug){const a=n.aug[r];delete n.aug[r],a===null?e.removeAttribute(r):e.setAttribute(r,a),i=!0}}else{let a;r in n.aug||(a=e.getAttribute(r)),a!==void 0&&a!==o&&(n.aug[r]=a,o===null?e.removeAttribute(r):e.setAttribute(r,o),i=!0)}return o===void 0&&Object.keys(n.aug).length===0&&(delete n.aug,t.storageEntry(e,!1)),i}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */function vf(t,e){const r=JSON.stringify(t);return e===!0?r:{[Zo]:r}}function l6(t,e){for(const r of Object.keys(e)){const o=e[r];o?t[r]=o:delete t[r]}}function c6(t,e,r){let o;if(r){const n=t.getAttribute(Zo);if(n)try{o=JSON.parse(n)}catch{}}o||(o={}),l6(o,e),Object.keys(o).length>0?t.setAttribute(Zo,vf(o,!0)):t.removeAttribute(Zo)}class Yb extends Ya{constructor(e,r,o,n){super(e,r,mf.Root,n,void 0,!0),this._onDummyInputFocus=i=>{var a;if(i.useDefaultAction)this._setFocused(!1);else{this._tabster.keyboardNavigation.setNavigatingWithKeyboard(!0);const s=this._element.get();if(s){this._setFocused(!0);const l=this._tabster.focusedElement.getFirstOrLastTabbable(i.isFirst,{container:s,ignoreAccessibility:!0});if(l){Io(l);return}}(a=i.input)===null||a===void 0||a.blur()}},this._setHandlers(this._onDummyInputFocus),this._tabster=e,this._setFocused=o}}class u6 extends cc{constructor(e,r,o,n,i){super(e,r,n),this._isFocused=!1,this._setFocused=l=>{var c;if(this._setFocusedTimer&&(this._tabster.getWindow().clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),this._isFocused===l)return;const u=this._element.get();u&&(l?(this._isFocused=!0,(c=this._dummyManager)===null||c===void 0||c.setTabbable(!1),Un(this._tabster.root.eventTarget,"focus",{element:u})):this._setFocusedTimer=this._tabster.getWindow().setTimeout(()=>{var d;delete this._setFocusedTimer,this._isFocused=!1,(d=this._dummyManager)===null||d===void 0||d.setTabbable(!0),Un(this._tabster.root.eventTarget,"blur",{element:u})},0))},this._onFocusIn=l=>{const c=this._tabster.getParent,u=this._element.get();let d=l.target;do{if(d===u){this._setFocused(!0);return}d=d&&c(d)}while(d)},this._onFocusOut=()=>{this._setFocused(!1)},this._onDispose=o;const a=e.getWindow;this.uid=Cu(a,r),this._sys=i,(e.controlTab||e.rootDummyInputs)&&this.addDummyInputs();const s=a();s.document.addEventListener("focusin",this._onFocusIn),s.document.addEventListener("focusout",this._onFocusOut),this._add()}addDummyInputs(){this._dummyManager||(this._dummyManager=new Yb(this._tabster,this._element,this._setFocused,this._sys))}dispose(){var e;this._onDispose(this);const r=this._tabster.getWindow();r.document.removeEventListener("focusin",this._onFocusIn),r.document.removeEventListener("focusout",this._onFocusOut),this._setFocusedTimer&&(r.clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),(e=this._dummyManager)===null||e===void 0||e.dispose(),this._remove()}moveOutWithDefaultAction(e,r){const o=this._dummyManager;if(o)o.moveOutWithDefaultAction(e,r);else{const n=this.getElement();n&&Yb.moveWithPhantomDummy(this._tabster,n,!0,e,r)}}_add(){}_remove(){}}class De{constructor(e,r){this._autoRootWaiting=!1,this._roots={},this._forceDummy=!1,this.rootById={},this._autoRootCreate=()=>{var o;const n=this._win().document,i=n.body;if(i){this._autoRootUnwait(n);const a=this._autoRoot;if(a)return c6(i,{root:a},!0),Vx(this._tabster,i),(o=er(this._tabster,i))===null||o===void 0?void 0:o.root}else this._autoRootWaiting||(this._autoRootWaiting=!0,n.addEventListener("readystatechange",this._autoRootCreate))},this._onRootDispose=o=>{delete this._roots[o.id]},this._tabster=e,this._win=e.getWindow,this._autoRoot=r,this.eventTarget=VP(this._win),e.queueInit(()=>{this._autoRoot&&this._autoRootCreate()})}_autoRootUnwait(e){e.removeEventListener("readystatechange",this._autoRootCreate),this._autoRootWaiting=!1}dispose(){const e=this._win();this._autoRootUnwait(e.document),delete this._autoRoot,Object.keys(this._roots).forEach(r=>{this._roots[r]&&(this._roots[r].dispose(),delete this._roots[r])}),this.rootById={}}createRoot(e,r,o){const n=new u6(this._tabster,e,this._onRootDispose,r,o);return this._roots[n.id]=n,this._forceDummy&&n.addDummyInputs(),n}addDummyInputs(){this._forceDummy=!0;const e=this._roots;for(const r of Object.keys(e))e[r].addDummyInputs()}static getRootByUId(e,r){const o=e().__tabsterInstance;return o&&o.root.rootById[r]}static getTabsterContext(e,r,o){o===void 0&&(o={});var n,i,a,s;if(!r.ownerDocument)return;const{checkRtl:l,referenceElement:c}=o,u=e.getParent;e.drainInitQueue();let d,f,h,g,m=!1,w,v,p,b,k=c||r;const x={};for(;k&&(!d||l);){const _=er(e,k);if(l&&p===void 0){const I=k.dir;I&&(p=I.toLowerCase()==="rtl")}if(!_){k=u(k);continue}const C=k.tagName;(_.uncontrolled||C==="IFRAME"||C==="WEBVIEW")&&(b=k),!g&&(!((n=_.focusable)===null||n===void 0)&&n.excludeFromMover)&&!h&&(m=!0);const T=_.modalizer,E=_.groupper,O=_.mover;!f&&T&&(f=T),!h&&E&&(!f||T)&&(f?(!E.isActive()&&E.getProps().tabbability&&f.userId!==((i=e.modalizer)===null||i===void 0?void 0:i.activeId)&&(f=void 0,h=E),v=E):h=E),!g&&O&&(!f||T)&&(!E||k!==r)&&(g=O,w=!!h&&h!==E),_.root&&(d=_.root),!((a=_.focusable)===null||a===void 0)&&a.ignoreKeydown&&Object.assign(x,_.focusable.ignoreKeydown),k=u(k)}if(!d){const _=e.root;_._autoRoot&&!((s=r.ownerDocument)===null||s===void 0)&&s.body&&(d=_._autoRootCreate())}return h&&!g&&(w=!0),d?{root:d,modalizer:f,groupper:h,mover:g,groupperBeforeMover:w,modalizerInGroupper:v,rtl:l?!!p:void 0,uncontrolled:b,excludedFromMover:m,ignoreKeydown:_=>!!x[_.key]}:void 0}static getRoot(e,r){var o;const n=e.getParent;for(let i=r;i;i=n(i)){const a=(o=er(e,i))===null||o===void 0?void 0:o.root;if(a)return a}}onRoot(e,r){r?delete this.rootById[e.uid]:this.rootById[e.uid]=e}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */class rC{constructor(){this._callbacks=[]}dispose(){this._callbacks=[],delete this._val}subscribe(e){const r=this._callbacks;r.indexOf(e)<0&&r.push(e)}subscribeFirst(e){const r=this._callbacks,o=r.indexOf(e);o>=0&&r.splice(o,1),r.unshift(e)}unsubscribe(e){const r=this._callbacks.indexOf(e);r>=0&&this._callbacks.splice(r,1)}setVal(e,r){this._val!==e&&(this._val=e,this._callCallbacks(e,r))}getVal(){return this._val}trigger(e,r){this._callCallbacks(e,r)}_callCallbacks(e,r){this._callbacks.forEach(o=>o(e,r))}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */class d6{constructor(e){this._tabster=e}dispose(){}getProps(e){const r=er(this._tabster,e);return r&&r.focusable||{}}isFocusable(e,r,o,n){return eC(e,Fv)&&(r||e.tabIndex!==-1)?(o||this.isVisible(e))&&(n||this.isAccessible(e)):!1}isVisible(e){if(!e.ownerDocument||e.nodeType!==Node.ELEMENT_NODE||e.offsetParent===null&&e.ownerDocument.body!==e)return!1;const r=e.ownerDocument.defaultView;if(!r)return!1;const o=e.ownerDocument.body.getBoundingClientRect();return!(o.width===0&&o.height===0||r.getComputedStyle(e).visibility==="hidden")}isAccessible(e){var r;for(let o=e;o;o=o.parentElement){const n=er(this._tabster,o);if(this._isHidden(o)||!((r=n?.focusable)===null||r===void 0?void 0:r.ignoreAriaDisabled)&&this._isDisabled(o))return!1}return!0}_isDisabled(e){return e.hasAttribute("disabled")}_isHidden(e){var r;const o=e.getAttribute("aria-hidden");return!!(o&&o.toLowerCase()==="true"&&!(!((r=this._tabster.modalizer)===null||r===void 0)&&r.isAugmented(e)))}findFirst(e,r){return this.findElement({...e},r)}findLast(e,r){return this.findElement({isBackward:!0,...e},r)}findNext(e,r){return this.findElement({...e},r)}findPrev(e,r){return this.findElement({...e,isBackward:!0},r)}findDefault(e,r){return this.findElement({...e,acceptCondition:o=>this.isFocusable(o,e.includeProgrammaticallyFocusable)&&!!this.getProps(o).isDefault},r)||null}findAll(e){return this._findElements(!0,e)||[]}findElement(e,r){const o=this._findElements(!1,e,r);return o&&o[0]}_findElements(e,r,o){var n,i,a;const{container:s,currentElement:l=null,includeProgrammaticallyFocusable:c,useActiveModalizer:u,ignoreAccessibility:d,modalizerId:f,isBackward:h,onElement:g}=r;o||(o={});const m=[];let{acceptCondition:w}=r;const v=!!w;if(!s)return null;w||(w=x=>this.isFocusable(x,c,!1,d));const p={container:s,modalizerUserId:f===void 0&&u?(n=this._tabster.modalizer)===null||n===void 0?void 0:n.activeId:f||((a=(i=De.getTabsterContext(this._tabster,s))===null||i===void 0?void 0:i.modalizer)===null||a===void 0?void 0:a.userId),from:l||s,isBackward:h,acceptCondition:w,hasCustomCondition:v,includeProgrammaticallyFocusable:c,ignoreAccessibility:d,cachedGrouppers:{}},b=qv(s.ownerDocument,s,x=>this._acceptElement(x,p));if(!b)return null;const k=x=>{var S,_;const C=(S=p.foundElement)!==null&&S!==void 0?S:p.foundBackward;return C&&m.push(C),e?C&&(p.found=!1,delete p.foundElement,delete p.foundBackward,delete p.fromCtx,p.from=C,g&&!g(C))?!1:!!(C||x):(C&&o&&(o.uncontrolled=(_=De.getTabsterContext(this._tabster,C))===null||_===void 0?void 0:_.uncontrolled),!!(x&&!C))};if(l||(o.outOfDOMOrder=!0),l)b.currentNode=l;else if(h){const x=tC(s);if(!x)return null;if(this._acceptElement(x,p)===NodeFilter.FILTER_ACCEPT&&!k(!0))return p.skippedFocusable&&(o.outOfDOMOrder=!0),m;b.currentNode=x}do h?b.previousNode():b.nextNode();while(k());return p.skippedFocusable&&(o.outOfDOMOrder=!0),m.length?m:null}_acceptElement(e,r){var o,n,i,a;if(r.found)return NodeFilter.FILTER_ACCEPT;const s=r.foundBackward;if(s&&(e===s||!s.contains(e)))return r.found=!0,r.foundElement=s,NodeFilter.FILTER_ACCEPT;const l=r.container;if(e===l)return NodeFilter.FILTER_SKIP;if(!l.contains(e)||e.__tabsterDummyContainer||!((o=r.rejectElementsFrom)===null||o===void 0)&&o.contains(e))return NodeFilter.FILTER_REJECT;const c=r.currentCtx=De.getTabsterContext(this._tabster,e);if(!c)return NodeFilter.FILTER_SKIP;if(Jx(e))return this.isFocusable(e,void 0,!0,!0)&&(r.skippedFocusable=!0),NodeFilter.FILTER_SKIP;if(!r.hasCustomCondition&&(e.tagName==="IFRAME"||e.tagName==="WEBVIEW"))return((n=c.modalizer)===null||n===void 0?void 0:n.userId)===((i=this._tabster.modalizer)===null||i===void 0?void 0:i.activeId)?(r.found=!0,r.rejectElementsFrom=r.foundElement=e,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT;if(!r.ignoreAccessibility&&!this.isAccessible(e))return this.isFocusable(e,!1,!0,!0)&&(r.skippedFocusable=!0),NodeFilter.FILTER_REJECT;let u,d=r.fromCtx;d||(d=r.fromCtx=De.getTabsterContext(this._tabster,r.from));const f=d?.mover;let h=c.groupper,g=c.mover;if(u=(a=this._tabster.modalizer)===null||a===void 0?void 0:a.acceptElement(e,r),u!==void 0&&(r.skippedFocusable=!0),u===void 0&&(h||g||f)){const m=h?.getElement(),w=f?.getElement();let v=g?.getElement();v&&w?.contains(v)&&l.contains(w)&&(!m||!g||w.contains(m))&&(g=f,v=w),m&&(m===l||!l.contains(m))&&(h=void 0),v&&!l.contains(v)&&(g=void 0),h&&g&&(v&&m&&!m.contains(v)?g=void 0:h=void 0),h&&(u=h.acceptElement(e,r)),g&&(u=g.acceptElement(e,r))}return u===void 0&&(u=r.acceptCondition(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,u===NodeFilter.FILTER_SKIP&&this.isFocusable(e,!1,!0,!0)&&(r.skippedFocusable=!0)),u===NodeFilter.FILTER_ACCEPT&&!r.found&&(r.isBackward?(r.foundBackward=e,u=NodeFilter.FILTER_SKIP):(r.found=!0,r.foundElement=e)),u}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */const rt={Tab:9,Enter:13,Esc:27,Space:32,PageUp:33,PageDown:34,End:35,Home:36,Left:37,Up:38,Right:39,Down:40};/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */function f6(t,e){var r;const o=t.getParent;let n=e;do{const i=(r=er(t,n))===null||r===void 0?void 0:r.uncontrolled;if(i&&t.uncontrolled.isUncontrolledCompletely(n,!!i.completely))return n;n=o(n)}while(n)}class nt extends rC{constructor(e,r){super(),this._init=()=>{const o=this._win(),n=o.document;n.addEventListener(lo,this._onFocusIn,!0),n.addEventListener("focusout",this._onFocusOut,!0),o.addEventListener("keydown",this._onKeyDown,!0);const i=n.activeElement;i&&i!==n.body&&this._setFocusedElement(i),this.subscribe(this._onChanged)},this._onFocusIn=o=>{this._setFocusedElement(o.target,o.detail.relatedTarget,o.detail.isFocusedProgrammatically)},this._onFocusOut=o=>{this._setFocusedElement(void 0,o.relatedTarget)},this._validateFocusedElement=o=>{},this._onKeyDown=o=>{if(o.keyCode!==rt.Tab||o.ctrlKey)return;const n=this.getVal();if(!n||!n.ownerDocument||n.contentEditable==="true")return;const i=this._tabster,a=i.controlTab,s=De.getTabsterContext(i,n);if(!s||s.ignoreKeydown(o))return;const l=o.shiftKey,c=nt.findNextTabbable(i,s,void 0,n,void 0,l,!0),u=s.root.getElement();if(!u)return;const d=c?.element,f=f6(i,n);if(d){const h=c.uncontrolled;if(s.uncontrolled||h?.contains(n)){if(!c.outOfDOMOrder&&h===s.uncontrolled||f&&!f.contains(d))return;Ya.addPhantomDummyWithTarget(i,n,l,d);return}if(h||d.tagName==="IFRAME"){Nn({by:"root",owner:u,next:d,relatedEvent:o})&&Ya.moveWithPhantomDummy(this._tabster,h??d,!1,l,o);return}(a||c?.outOfDOMOrder)&&Nn({by:"root",owner:u,next:d,relatedEvent:o})&&(o.preventDefault(),o.stopImmediatePropagation(),Io(d))}else!f&&Nn({by:"root",owner:u,next:null,relatedEvent:o})&&s.root.moveOutWithDefaultAction(l,o)},this._onChanged=(o,n)=>{var i,a;if(o)Un(o,Hx,n);else{const s=(i=this._lastVal)===null||i===void 0?void 0:i.get();if(s){const l={...n},c=De.getTabsterContext(this._tabster,s),u=(a=c?.modalizer)===null||a===void 0?void 0:a.userId;u&&(l.modalizerId=u),Un(s,Ux,l)}}},this._tabster=e,this._win=r,e.queueInit(this._init)}dispose(){super.dispose();const e=this._win();e.document.removeEventListener(lo,this._onFocusIn,!0),e.document.removeEventListener("focusout",this._onFocusOut,!0),e.removeEventListener("keydown",this._onKeyDown,!0),this.unsubscribe(this._onChanged),delete nt._lastResetElement,delete this._nextVal,delete this._lastVal}static forgetMemorized(e,r){var o,n;let i=nt._lastResetElement,a=i&&i.get();a&&r.contains(a)&&delete nt._lastResetElement,a=(n=(o=e._nextVal)===null||o===void 0?void 0:o.element)===null||n===void 0?void 0:n.get(),a&&r.contains(a)&&delete e._nextVal,i=e._lastVal,a=i&&i.get(),a&&r.contains(a)&&delete e._lastVal}getFocusedElement(){return this.getVal()}getLastFocusedElement(){var e;let r=(e=this._lastVal)===null||e===void 0?void 0:e.get();return(!r||r&&!Lv(r.ownerDocument,r))&&(this._lastVal=r=void 0),r}focus(e,r,o){return this._tabster.focusable.isFocusable(e,r,!1,o)?(e.focus(),!0):!1}focusDefault(e){const r=this._tabster.focusable.findDefault({container:e});return r?(this._tabster.focusedElement.focus(r),!0):!1}getFirstOrLastTabbable(e,r){var o;const{container:n,ignoreAccessibility:i}=r;let a;if(n){const s=De.getTabsterContext(this._tabster,n);s&&(a=(o=nt.findNextTabbable(this._tabster,s,n,void 0,void 0,!e,i))===null||o===void 0?void 0:o.element)}return a&&!n?.contains(a)&&(a=void 0),a||void 0}_focusFirstOrLast(e,r){const o=this.getFirstOrLastTabbable(e,r);return o?(this.focus(o,!1,!0),!0):!1}focusFirst(e){return this._focusFirstOrLast(!0,e)}focusLast(e){return this._focusFirstOrLast(!1,e)}resetFocus(e){if(!this._tabster.focusable.isVisible(e))return!1;if(this._tabster.focusable.isFocusable(e,!0,!0,!0))this.focus(e);else{const r=e.getAttribute("tabindex"),o=e.getAttribute("aria-hidden");e.tabIndex=-1,e.setAttribute("aria-hidden","true"),nt._lastResetElement=new kr(this._win,e),this.focus(e,!0,!0),this._setOrRemoveAttribute(e,"tabindex",r),this._setOrRemoveAttribute(e,"aria-hidden",o)}return!0}_setOrRemoveAttribute(e,r,o){o===null?e.removeAttribute(r):e.setAttribute(r,o)}_setFocusedElement(e,r,o){var n,i;if(this._tabster._noop)return;const a={relatedTarget:r};if(e){const l=(n=nt._lastResetElement)===null||n===void 0?void 0:n.get();if(nt._lastResetElement=void 0,l===e||Jx(e))return;a.isFocusedProgrammatically=o;const c=De.getTabsterContext(this._tabster,e),u=(i=c?.modalizer)===null||i===void 0?void 0:i.userId;u&&(a.modalizerId=u)}const s=this._nextVal={element:e?new kr(this._win,e):void 0,details:a};e&&e!==this._val&&this._validateFocusedElement(e),this._nextVal===s&&this.setVal(e,a),this._nextVal=void 0}setVal(e,r){super.setVal(e,r),e&&(this._lastVal=new kr(this._win,e))}static findNextTabbable(e,r,o,n,i,a,s){const l=o||r.root.getElement();if(!l)return null;let c=null;const u=nt._isTabbingTimer,d=e.getWindow();u&&d.clearTimeout(u),nt.isTabbing=!0,nt._isTabbingTimer=d.setTimeout(()=>{delete nt._isTabbingTimer,nt.isTabbing=!1},0);const f=r.modalizer,h=r.groupper,g=r.mover,m=w=>{var v;if(c=w.findNextTabbable(n,i,a,s),n&&!c?.element){const p=w!==f&&((v=w.getElement())===null||v===void 0?void 0:v.parentElement);if(p){const b=De.getTabsterContext(e,n,{referenceElement:p});if(b){const k=w.getElement(),x=a?k:k&&tC(k)||k;x&&(c=nt.findNextTabbable(e,b,o,x,p,a,s),c&&(c.outOfDOMOrder=!0))}}}};if(h&&g)m(r.groupperBeforeMover?h:g);else if(h)m(h);else if(g)m(g);else if(f)m(f);else{const w={container:l,currentElement:n,referenceElement:i,ignoreAccessibility:s,useActiveModalizer:!0},v={};c={element:e.focusable[a?"findPrev":"findNext"](w,v),outOfDOMOrder:v.outOfDOMOrder,uncontrolled:v.uncontrolled}}return c}}nt.isTabbing=!1;/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */class h6 extends Ya{constructor(e,r,o,n){super(o,e,mf.Groupper,n,!0),this._setHandlers((i,a,s)=>{var l,c;const u=e.get(),d=i.input;if(u&&d){const f=De.getTabsterContext(o,d);if(f){let h;h=(l=r.findNextTabbable(s||void 0,void 0,a,!0))===null||l===void 0?void 0:l.element,h||(h=(c=nt.findNextTabbable(o,f,void 0,i.isOutside?d:s6(u,!a),void 0,a,!0))===null||c===void 0?void 0:c.element),h&&Io(h)}}})}}class g6 extends cc{constructor(e,r,o,n,i){super(e,r,n),this._shouldTabInside=!1,this.makeTabbable(!1),this._onDispose=o,e.controlTab||(this.dummyManager=new h6(this._element,this,e,i))}dispose(){var e;this._onDispose(this),this._element.get(),(e=this.dummyManager)===null||e===void 0||e.dispose(),delete this.dummyManager,delete this._first}findNextTabbable(e,r,o,n){var i;const a=this.getElement();if(!a)return null;const s=((i=e?.__tabsterDummyContainer)===null||i===void 0?void 0:i.get())===a;if(!this._shouldTabInside&&e&&a.contains(e)&&!s)return{element:void 0,outOfDOMOrder:!0};const l=this.getFirst(!0);if(!e||!a.contains(e)||s)return{element:l,outOfDOMOrder:!0};const c=this._tabster;let u=null,d=!1,f;if(this._shouldTabInside&&l){const h={container:a,currentElement:e,referenceElement:r,ignoreAccessibility:n,useActiveModalizer:!0},g={};u=c.focusable[o?"findPrev":"findNext"](h,g),d=!!g.outOfDOMOrder,!u&&this._props.tabbability===Kx.LimitedTrapFocus&&(u=c.focusable[o?"findLast":"findFirst"]({container:a,ignoreAccessibility:n,useActiveModalizer:!0},g),d=!0),f=g.uncontrolled}return{element:u,uncontrolled:f,outOfDOMOrder:d}}makeTabbable(e){this._shouldTabInside=e||!this._props.tabbability}isActive(e){var r;const o=this.getElement()||null;let n=!0;for(let a=o?.parentElement;a;a=a.parentElement){const s=(r=er(this._tabster,a))===null||r===void 0?void 0:r.groupper;s&&(s._shouldTabInside||(n=!1))}let i=n?this._props.tabbability?this._shouldTabInside:!1:void 0;if(i&&e){const a=this._tabster.focusedElement.getFocusedElement();a&&(i=a!==this.getFirst(!0))}return i}getFirst(e){var r;const o=this.getElement();let n;if(o){if(e&&this._tabster.focusable.isFocusable(o))return o;n=(r=this._first)===null||r===void 0?void 0:r.get(),n||(n=this._tabster.focusable.findFirst({container:o,useActiveModalizer:!0})||void 0,n&&this.setFirst(n))}return n}setFirst(e){e?this._first=new kr(this._tabster.getWindow,e):delete this._first}acceptElement(e,r){var o;const n=r.cachedGrouppers,i=(o=this.getElement())===null||o===void 0?void 0:o.parentElement,a=i&&De.getTabsterContext(this._tabster,i),s=a?.groupper,l=a?.groupperBeforeMover?s:void 0;let c;const u=h=>{let g=n[h.id],m;return g?m=g.isActive:(m=this.isActive(!0),g=n[h.id]={isActive:m}),m};if(l&&(c=l.getElement(),!u(l)&&c&&r.container!==c&&r.container.contains(c)))return r.skippedFocusable=!0,NodeFilter.FILTER_REJECT;const d=u(this),f=this.getElement();if(f&&d!==!0){if(f===e&&s&&(c||(c=s.getElement()),c&&!u(s)&&r.container.contains(c)&&c!==r.container)||f!==e&&f.contains(e))return r.skippedFocusable=!0,NodeFilter.FILTER_REJECT;const h=n[this.id];let g;if("first"in h?g=h.first:g=h.first=this.getFirst(!0),g&&r.acceptCondition(g))return r.rejectElementsFrom=f,r.skippedFocusable=!0,g!==r.from?(r.found=!0,r.foundElement=g,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT}}}class p6{constructor(e,r){this._current={},this._grouppers={},this._init=()=>{const o=this._win();this._tabster.focusedElement.subscribeFirst(this._onFocus),o.document.addEventListener("mousedown",this._onMouseDown,!0),o.addEventListener("keydown",this._onKeyDown,!0),o.addEventListener(Wg,this._onMoveFocus)},this._onGroupperDispose=o=>{delete this._grouppers[o.id]},this._onFocus=o=>{o&&this._updateCurrent(o,!0,!0)},this._onMouseDown=o=>{o.target&&this._updateCurrent(o.target,!0)},this._onKeyDown=o=>{if(o.keyCode!==rt.Enter&&o.keyCode!==rt.Esc||o.ctrlKey||o.altKey||o.shiftKey||o.metaKey)return;const n=this._tabster.focusedElement.getFocusedElement();n&&this.handleKeyPress(n,o)},this._onMoveFocus=o=>{var n;const i=o.target,a=(n=o.detail)===null||n===void 0?void 0:n.action;i&&a!==void 0&&!o.defaultPrevented&&(a===Vg.Enter?this._enterGroupper(i):this._escapeGroupper(i),o.stopImmediatePropagation())},this._tabster=e,this._win=r,e.queueInit(this._init)}dispose(){const e=this._win();this._handleKeyPressTimer&&(e.clearTimeout(this._handleKeyPressTimer),delete this._handleKeyPressTimer),this._current={},this._updateTimer&&(e.clearTimeout(this._updateTimer),delete this._updateTimer),this._tabster.focusedElement.unsubscribe(this._onFocus),e.document.removeEventListener("mousedown",this._onMouseDown,!0),e.removeEventListener("keydown",this._onKeyDown,!0),e.removeEventListener(Wg,this._onMoveFocus),Object.keys(this._grouppers).forEach(r=>{this._grouppers[r]&&(this._grouppers[r].dispose(),delete this._grouppers[r])})}createGroupper(e,r,o){const n=new g6(this._tabster,e,this._onGroupperDispose,r,o);this._grouppers[n.id]=n;const i=this._tabster.focusedElement.getFocusedElement();return i&&e.contains(i)&&!this._updateTimer&&(this._updateTimer=this._win().setTimeout(()=>{delete this._updateTimer,i===this._tabster.focusedElement.getFocusedElement()&&this._updateCurrent(i,!0,!0)},0)),n}forgetCurrentGrouppers(){this._current={}}_updateCurrent(e,r,o){var n;this._updateTimer&&(this._win().clearTimeout(this._updateTimer),delete this._updateTimer);const i={};let a=!0;for(let s=e;s;s=s.parentElement){const l=(n=er(this._tabster,s))===null||n===void 0?void 0:n.groupper;if(l){if(i[l.id]=!0,a&&o&&s!==e&&(a=!1),r||!a){this._current[l.id]=l;const c=l.isActive()||e!==s&&(!l.getProps().delegated||l.getFirst(!1)!==e);l.makeTabbable(c)}a=!1}}for(const s of Object.keys(this._current)){const l=this._current[s];l.id in i||(l.makeTabbable(!1),l.setFirst(void 0),delete this._current[s])}}_enterGroupper(e,r){const o=this._tabster,n=De.getTabsterContext(o,e),i=n?.groupper||n?.modalizerInGroupper,a=i?.getElement();if(i&&a&&(e===a||i.getProps().delegated&&e===i.getFirst(!1))){const s=o.focusable.findNext({container:a,currentElement:e,useActiveModalizer:!0});if(s&&(!r||r&&Nn({by:"groupper",owner:a,next:s,relatedEvent:r})))return r&&(r.preventDefault(),r.stopImmediatePropagation()),s.focus(),s}return null}_escapeGroupper(e,r,o){var n;const i=this._tabster,a=De.getTabsterContext(i,e),s=a?.modalizerInGroupper;let l=a?.groupper||s;const c=l?.getElement();if(l&&c&&c.contains(e)){let u;if(e!==c||o)u=l.getFirst(!0);else{const d=c.parentElement,f=d?De.getTabsterContext(i,d):void 0;l=f?.groupper,u=l?.getFirst(!0)}if(u&&(!r||r&&Nn({by:"groupper",owner:c,next:u,relatedEvent:r})))return l&&(l.makeTabbable(!1),s&&((n=i.modalizer)===null||n===void 0||n.setActive(void 0))),u.focus(),u}return null}moveFocus(e,r){return r===Vg.Enter?this._enterGroupper(e):this._escapeGroupper(e)}handleKeyPress(e,r,o){const n=this._tabster,i=De.getTabsterContext(n,e);if(i&&(i?.groupper||i?.modalizerInGroupper)){const a=this._win();if(this._handleKeyPressTimer&&(a.clearTimeout(this._handleKeyPressTimer),delete this._handleKeyPressTimer),i.ignoreKeydown(r))return;if(r.keyCode===rt.Enter)this._enterGroupper(e,r);else if(r.keyCode===rt.Esc){const s=n.focusedElement.getFocusedElement();this._handleKeyPressTimer=a.setTimeout(()=>{delete this._handleKeyPressTimer,!(s!==n.focusedElement.getFocusedElement()&&(o&&!s||!o))&&this._escapeGroupper(e,r,o)},0)}}}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */class m6 extends rC{constructor(e){super(),this._onChange=r=>{this.setVal(r,void 0)},this._keyborg=jv(e()),this._keyborg.subscribe(this._onChange)}dispose(){super.dispose(),this._keyborg&&(this._keyborg.unsubscribe(this._onChange),Dv(this._keyborg),delete this._keyborg)}setNavigatingWithKeyboard(e){var r;(r=this._keyborg)===null||r===void 0||r.setVal(e)}isNavigatingWithKeyboard(){var e;return!!(!((e=this._keyborg)===null||e===void 0)&&e.isNavigatingWithKeyboard())}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */let v6=0;const ph="aria-hidden";class b6 extends Ya{constructor(e,r,o){super(r,e,mf.Modalizer,o),this._setHandlers((n,i)=>{var a,s,l;const c=e.get(),u=c&&((a=De.getRoot(r,c))===null||a===void 0?void 0:a.getElement()),d=n.input;let f;if(u&&d){const h=(s=d.__tabsterDummyContainer)===null||s===void 0?void 0:s.get(),g=De.getTabsterContext(r,h||d);g&&(f=(l=nt.findNextTabbable(r,g,u,d,void 0,i,!0))===null||l===void 0?void 0:l.element),f&&Io(f)}})}}class y6 extends cc{constructor(e,r,o,n,i,a){super(e,r,n),this._wasFocused=0,this.userId=n.id,this._onDispose=o,this._activeElements=a,e.controlTab||(this.dummyManager=new b6(this._element,e,i))}makeActive(e){if(this._isActive!==e){this._isActive=e;const r=this.getElement();if(r){const o=this._activeElements,n=o.map(i=>i.get()).indexOf(r);e?n<0&&o.push(new kr(this._tabster.getWindow,r)):n>=0&&o.splice(n,1)}this.triggerFocusEvent(e?qx:Lx)}}focused(e){return e||(this._wasFocused=++v6),this._wasFocused}setProps(e){e.id&&(this.userId=e.id),this._props={...e}}dispose(){var e;this.makeActive(!1),this._onDispose(this),(e=this.dummyManager)===null||e===void 0||e.dispose(),delete this.dummyManager,this._activeElements=[],this._remove()}isActive(){return!!this._isActive}contains(e){var r;return!!(!((r=this.getElement())===null||r===void 0)&&r.contains(e))}findNextTabbable(e,r,o,n){var i,a;if(!this.getElement())return null;const l=this._tabster;let c=null,u=!1,d;const f=e&&((i=De.getRoot(l,e))===null||i===void 0?void 0:i.getElement());if(f){const h={container:f,currentElement:e,referenceElement:r,ignoreAccessibility:n,useActiveModalizer:!0},g={};c=l.focusable[o?"findPrev":"findNext"](h,g),!c&&this._props.isTrapped&&(!((a=l.modalizer)===null||a===void 0)&&a.activeId)?(c=l.focusable[o?"findLast":"findFirst"]({container:f,ignoreAccessibility:n,useActiveModalizer:!0},g),u=!0):u=!!g.outOfDOMOrder,d=g.uncontrolled}return{element:c,uncontrolled:d,outOfDOMOrder:u}}triggerFocusEvent(e,r){const o=this.getElement();let n=!1;if(o){const i=r?this._activeElements.map(a=>a.get()):[o];for(const a of i)a&&!Un(a,e,{id:this.userId,element:o,eventName:e})&&(n=!0)}return n}_remove(){}}class w6{constructor(e,r,o){this._onModalizerDispose=i=>{const a=i.id,s=i.userId,l=this._parts[s];delete this._modalizers[a],l&&(delete l[a],Object.keys(l).length===0&&(delete this._parts[s],this.activeId===s&&this.setActive(void 0)))},this._onKeyDown=i=>{var a;if(i.keyCode!==rt.Esc)return;const s=this._tabster,l=s.focusedElement.getFocusedElement();if(l){const c=De.getTabsterContext(s,l),u=c?.modalizer;if(c&&!c.groupper&&u?.isActive()&&!c.ignoreKeydown(i)){const d=u.userId;if(d){const f=this._parts[d];if(f){const h=Object.keys(f).map(g=>{var m;const w=f[g],v=w.getElement();let p;return v&&(p=(m=er(this._tabster,v))===null||m===void 0?void 0:m.groupper),w&&v&&p?{el:v,focusedSince:w.focused(!0)}:{focusedSince:0}}).filter(g=>g.focusedSince>0).sort((g,m)=>g.focusedSince>m.focusedSince?-1:g.focusedSince{var s,l;const c=i&&De.getTabsterContext(this._tabster,i);if(!c||!i)return;const u=this._augMap;for(let f=i;f;f=f.parentElement)u.has(f)&&(u.delete(f),gh(this._tabster,f,ph));const d=c.modalizer;if((l=d||((s=er(this._tabster,i))===null||s===void 0?void 0:s.modalizer))===null||l===void 0||l.focused(),d?.userId===this.activeId){this.currentIsOthersAccessible=d?.getProps().isOthersAccessible;return}if(a.isFocusedProgrammatically||this.currentIsOthersAccessible||d?.getProps().isAlwaysAccessible)this.setActive(d);else{const f=this._win();f.clearTimeout(this._restoreModalizerFocusTimer),this._restoreModalizerFocusTimer=f.setTimeout(()=>this._restoreModalizerFocus(i),100)}},this._tabster=e,this._win=e.getWindow,this._modalizers={},this._parts={},this._augMap=new WeakMap,this._aug=[],this._alwaysAccessibleSelector=r,this._accessibleCheck=o,this.activeElements=[],e.controlTab||e.root.addDummyInputs(),this._win().addEventListener("keydown",this._onKeyDown,!0),e.queueInit(()=>{this._tabster.focusedElement.subscribe(this._onFocus)})}dispose(){const e=this._win();e.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._modalizers).forEach(r=>{this._modalizers[r]&&(this._modalizers[r].dispose(),delete this._modalizers[r])}),e.clearTimeout(this._restoreModalizerFocusTimer),e.clearTimeout(this._hiddenUpdateTimer),this._parts={},delete this.activeId,this.activeElements=[],this._augMap=new WeakMap,this._aug=[],this._tabster.focusedElement.unsubscribe(this._onFocus)}createModalizer(e,r,o){var n;const i=new y6(this._tabster,e,this._onModalizerDispose,r,o,this.activeElements),a=i.id,s=r.id;this._modalizers[a]=i;let l=this._parts[s];return l||(l=this._parts[s]={}),l[a]=i,e.contains((n=this._tabster.focusedElement.getFocusedElement())!==null&&n!==void 0?n:null)&&(s!==this.activeId?this.setActive(i):i.makeActive(!0)),i}isAugmented(e){return this._augMap.has(e)}hiddenUpdate(){this._hiddenUpdateTimer||(this._hiddenUpdateTimer=this._win().setTimeout(()=>{delete this._hiddenUpdateTimer,this._hiddenUpdate()},250))}setActive(e){const r=e?.userId,o=this.activeId;if(o!==r){if(this.activeId=r,o){const n=this._parts[o];if(n)for(const i of Object.keys(n))n[i].makeActive(!1)}if(r){const n=this._parts[r];if(n)for(const i of Object.keys(n))n[i].makeActive(!0)}this.currentIsOthersAccessible=e?.getProps().isOthersAccessible,this.hiddenUpdate()}}focus(e,r,o){const n=De.getTabsterContext(this._tabster,e),i=n?.modalizer;if(i){this.setActive(i);const a=i.getProps(),s=i.getElement();if(s){if(r===void 0&&(r=a.isNoFocusFirst),!r&&this._tabster.keyboardNavigation.isNavigatingWithKeyboard()&&this._tabster.focusedElement.focusFirst({container:s})||(o===void 0&&(o=a.isNoFocusDefault),!o&&this._tabster.focusedElement.focusDefault(s)))return!0;this._tabster.focusedElement.resetFocus(s)}}return!1}acceptElement(e,r){var o;const n=r.modalizerUserId,i=(o=r.currentCtx)===null||o===void 0?void 0:o.modalizer;if(n)for(const s of this.activeElements){const l=s.get();if(l&&(e.contains(l)||l===e))return NodeFilter.FILTER_SKIP}const a=n===i?.userId||!n&&i?.getProps().isAlwaysAccessible?void 0:NodeFilter.FILTER_SKIP;return a!==void 0&&(r.skippedFocusable=!0),a}_hiddenUpdate(){var e;const r=this._tabster,o=r.getWindow().document.body,n=this.activeId,i=this._parts,a=[],s=[],l=this._alwaysAccessibleSelector,c=l?Array.from(o.querySelectorAll(l)):[],u=[];for(const v of Object.keys(i)){const p=i[v];for(const b of Object.keys(p)){const k=p[b],x=k.getElement(),_=k.getProps().isAlwaysAccessible;x&&(v===n?(u.push(x),this.currentIsOthersAccessible||a.push(x)):_?c.push(x):s.push(x))}}const d=this._augMap,f=a.length>0?[...a,...c]:void 0,h=[],g=new WeakMap,m=(v,p)=>{var b;const k=v.tagName;if(k==="SCRIPT"||k==="STYLE")return;let x=!1;d.has(v)?p?x=!0:(d.delete(v),gh(r,v,ph)):p&&!(!((b=this._accessibleCheck)===null||b===void 0)&&b.call(this,v,u))&&gh(r,v,ph,"true")&&(d.set(v,!0),x=!0),x&&(h.push(new kr(r.getWindow,v)),g.set(v,!0))},w=v=>{for(let p=v.firstElementChild;p;p=p.nextElementSibling){let b=!1,k=!1;if(f){for(const x of f){if(p===x){b=!0;break}if(p.contains(x)){k=!0;break}}k?w(p):b||m(p,!0)}else m(p,!1)}};f||c.forEach(v=>m(v,!1)),s.forEach(v=>m(v,!0)),o&&w(o),(e=this._aug)===null||e===void 0||e.map(v=>v.get()).forEach(v=>{v&&!g.get(v)&&m(v,!1)}),this._aug=h,this._augMap=g}_restoreModalizerFocus(e){const r=e?.ownerDocument;if(!e||!r)return;const o=De.getTabsterContext(this._tabster,e),n=o?.modalizer,i=this.activeId;if(!n&&!i||n&&i===n.userId)return;const a=o?.root.getElement();if(a){let s=this._tabster.focusable.findFirst({container:a,useActiveModalizer:!0});if(s){if(e.compareDocumentPosition(s)&document.DOCUMENT_POSITION_PRECEDING&&(s=this._tabster.focusable.findLast({container:a,useActiveModalizer:!0}),!s))throw new Error("Something went wrong.");this._tabster.focusedElement.focus(s);return}}e.blur()}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */const k6=["input","textarea","*[contenteditable]"].join(", ");class S6 extends Ya{constructor(e,r,o,n){super(r,e,mf.Mover,n),this._onFocusDummyInput=i=>{var a,s;const l=this._element.get(),c=i.input;if(l&&c){const u=De.getTabsterContext(this._tabster,l);let d;u&&(d=(a=nt.findNextTabbable(this._tabster,u,void 0,c,void 0,!i.isFirst,!0))===null||a===void 0?void 0:a.element);const f=(s=this._getMemorized())===null||s===void 0?void 0:s.get();f&&(d=f),d&&Io(d)}},this._tabster=r,this._getMemorized=o,this._setHandlers(this._onFocusDummyInput)}}const mh=1,Zb=2,Qb=3;class _6 extends cc{constructor(e,r,o,n,i){var a;super(e,r,n),this._visible={},this._onIntersection=l=>{for(const c of l){const u=c.target,d=Cu(this._win,u);let f,h=this._fullyVisible;if(c.intersectionRatio>=.25?(f=c.intersectionRatio>=.75?Do.Visible:Do.PartiallyVisible,f===Do.Visible&&(h=d)):f=Do.Invisible,this._visible[d]!==f){f===void 0?(delete this._visible[d],h===d&&delete this._fullyVisible):(this._visible[d]=f,this._fullyVisible=h);const g=this.getState(u);g&&Un(u,$g,g)}}},this._win=e.getWindow,this.visibilityTolerance=(a=n.visibilityTolerance)!==null&&a!==void 0?a:.8,(this._props.trackState||this._props.visibilityAware)&&(this._intersectionObserver=new IntersectionObserver(this._onIntersection,{threshold:[0,.25,.5,.75,1]}),this._observeState()),this._onDispose=o;const s=()=>n.memorizeCurrent?this._current:void 0;e.controlTab||(this.dummyManager=new S6(this._element,e,s,i))}dispose(){var e;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),(e=this.dummyManager)===null||e===void 0||e.dispose(),delete this.dummyManager}setCurrent(e){e?this._current=new kr(this._win,e):this._current=void 0,(this._props.trackState||this._props.visibilityAware)&&!this._setCurrentTimer&&(this._setCurrentTimer=this._win().setTimeout(()=>{var r;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 i=n?.get();if(i&&((r=this._allElements)===null||r===void 0?void 0:r.get(i))===this){const a=this._props;if(i&&(a.visibilityAware!==void 0||a.trackState)){const s=this.getState(i);s&&Un(i,$g,s)}}}}))}getCurrent(){var e;return((e=this._current)===null||e===void 0?void 0:e.get())||null}findNextTabbable(e,r,o,n){var i;const a=this.getElement(),s=a&&((i=e?.__tabsterDummyContainer)===null||i===void 0?void 0:i.get())===a;if(!a)return null;let l=null,c=!1,u;if(this._props.tabbable||s||e&&!a.contains(e)){const d={currentElement:e,referenceElement:r,container:a,ignoreAccessibility:n,useActiveModalizer:!0},f={};l=this._tabster.focusable[o?"findPrev":"findNext"](d,f),c=!!f.outOfDOMOrder,u=f.uncontrolled}return{element:l,uncontrolled:u,outOfDOMOrder:c}}acceptElement(e,r){var o,n,i;if(!nt.isTabbing)return!((o=r.currentCtx)===null||o===void 0)&&o.excludedFromMover?NodeFilter.FILTER_REJECT:void 0;const{memorizeCurrent:a,visibilityAware:s,hasDefault:l=!0}=this._props,c=this.getElement();if(c&&(a||s||l)&&(!c.contains(r.from)||((n=r.from.__tabsterDummyContainer)===null||n===void 0?void 0:n.get())===c)){let u;if(a){const d=(i=this._current)===null||i===void 0?void 0:i.get();d&&r.acceptCondition(d)&&(u=d)}if(!u&&l&&(u=this._tabster.focusable.findDefault({container:c,useActiveModalizer:!0})),!u&&s&&(u=this._tabster.focusable.findElement({container:c,useActiveModalizer:!0,isBackward:r.isBackward,acceptCondition:d=>{var f;const h=Cu(this._win,d),g=this._visible[h];return c!==d&&!!(!((f=this._allElements)===null||f===void 0)&&f.get(d))&&r.acceptCondition(d)&&(g===Do.Visible||g===Do.PartiallyVisible&&(s===Do.PartiallyVisible||!this._fullyVisible))}})),u)return r.found=!0,r.foundElement=u,r.rejectElementsFrom=c,r.skippedFocusable=!0,NodeFilter.FILTER_ACCEPT}}_observeState(){const e=this.getElement();if(this._unobserve||!e||typeof MutationObserver>"u")return;const r=this._win(),o=this._allElements=new WeakMap,n=this._tabster.focusable;let i=this._updateQueue=[];const a=new MutationObserver(h=>{for(const g of h){const m=g.target,w=g.removedNodes,v=g.addedNodes;if(g.type==="attributes")g.attributeName==="tabindex"&&i.push({element:m,type:Zb});else{for(let p=0;p{var m,w;const v=o.get(h);v&&g&&((m=this._intersectionObserver)===null||m===void 0||m.unobserve(h),o.delete(h)),!v&&!g&&(o.set(h,this),(w=this._intersectionObserver)===null||w===void 0||w.observe(h))},l=h=>{const g=n.isFocusable(h);o.get(h)?g||s(h,!0):g&&s(h)},c=h=>{const{mover:g}=f(h);if(g&&g!==this)if(g.getElement()===h&&n.isFocusable(h))s(h);else return;const m=qv(r.document,h,w=>{const{mover:v,groupper:p}=f(w);if(v&&v!==this)return NodeFilter.FILTER_REJECT;const b=p?.getFirst(!0);return p&&p.getElement()!==w&&b&&b!==w?NodeFilter.FILTER_REJECT:(n.isFocusable(w)&&s(w),NodeFilter.FILTER_SKIP)});if(m)for(m.currentNode=h;m.nextNode(););},u=h=>{o.get(h)&&s(h,!0);for(let m=h.firstElementChild;m;m=m.nextElementSibling)u(m)},d=()=>{!this._updateTimer&&i.length&&(this._updateTimer=r.setTimeout(()=>{delete this._updateTimer;for(const{element:h,type:g}of i)switch(g){case Zb:l(h);break;case mh:c(h);break;case Qb:u(h);break}i=this._updateQueue=[]},0))},f=h=>{const g={};for(let m=h;m;m=m.parentElement){const w=er(this._tabster,m);if(w&&(w.groupper&&!g.groupper&&(g.groupper=w.groupper),w.mover)){g.mover=w.mover;break}}return g};i.push({element:e,type:mh}),d(),a.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["tabindex"]}),this._unobserve=()=>{a.disconnect()}}getState(e){const r=Cu(this._win,e);if(r in this._visible){const o=this._visible[r]||Do.Invisible;return{isCurrent:this._current?this._current.get()===e:void 0,visibility:o}}}}function x6(t,e,r,o,n,i,a,s){const l=r{const o=this._win();o.addEventListener("keydown",this._onKeyDown,!0),o.addEventListener(Kg,this._onMoveFocus),this._tabster.focusedElement.subscribe(this._onFocus)},this._onMoverDispose=o=>{delete this._movers[o.id]},this._onFocus=o=>{var n;let i=o,a=o;for(let s=o?.parentElement;s;s=s.parentElement){const l=(n=er(this._tabster,s))===null||n===void 0?void 0:n.mover;l&&(l.setCurrent(a),i=void 0),!i&&this._tabster.focusable.isFocusable(s)&&(i=a=s)}},this._onKeyDown=async o=>{var n;if(this._ignoredInputTimer&&(this._win().clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),(n=this._ignoredInputResolve)===null||n===void 0||n.call(this,!1),o.ctrlKey||o.altKey||o.shiftKey||o.metaKey)return;const i=o.keyCode;let a;if(i===rt.Down?a=tt.ArrowDown:i===rt.Right?a=tt.ArrowRight:i===rt.Up?a=tt.ArrowUp:i===rt.Left?a=tt.ArrowLeft:i===rt.PageDown?a=tt.PageDown:i===rt.PageUp?a=tt.PageUp:i===rt.Home?a=tt.Home:i===rt.End&&(a=tt.End),!a)return;const s=this._tabster.focusedElement.getFocusedElement();!s||await this._isIgnoredInput(s,i)||this._moveFocus(s,a,o)},this._onMoveFocus=o=>{var n;const i=o.target,a=(n=o.detail)===null||n===void 0?void 0:n.key;i&&a!==void 0&&!o.defaultPrevented&&(this._moveFocus(i,a),o.stopImmediatePropagation())},this._tabster=e,this._win=r,this._movers={},e.queueInit(this._init)}dispose(){var e;const r=this._win();this._tabster.focusedElement.unsubscribe(this._onFocus),(e=this._ignoredInputResolve)===null||e===void 0||e.call(this,!1),this._ignoredInputTimer&&(r.clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),r.removeEventListener("keydown",this._onKeyDown,!0),r.removeEventListener(Kg,this._onMoveFocus),Object.keys(this._movers).forEach(o=>{this._movers[o]&&(this._movers[o].dispose(),delete this._movers[o])})}createMover(e,r,o){const n=new _6(this._tabster,e,this._onMoverDispose,r,o);return this._movers[n.id]=n,n}moveFocus(e,r){return this._moveFocus(e,r)}_moveFocus(e,r,o){var n,i,a;const s=this._tabster,l=De.getTabsterContext(s,e,{checkRtl:!0});if(!l||!l.mover||l.excludedFromMover||o&&l.ignoreKeydown(o))return null;const c=l.mover,u=c.getElement();if(l.groupperBeforeMover){const T=l.groupper;if(T&&!T.isActive(!0)){for(let E=(n=T.getElement())===null||n===void 0?void 0:n.parentElement;E&&E!==u;E=E.parentElement)if(!((a=(i=er(s,E))===null||i===void 0?void 0:i.groupper)===null||a===void 0)&&a.isActive(!0))return null}else return null}if(!u)return null;const d=s.focusable,f=c.getProps(),h=f.direction||si.Both,g=h===si.Both,m=g||h===si.Vertical,w=g||h===si.Horizontal,v=h===si.GridLinear,p=v||h===si.Grid,b=f.cyclic;let k,x,S,_=0,C=0;if(p&&(S=e.getBoundingClientRect(),_=Math.ceil(S.left),C=Math.floor(S.right)),l.rtl&&(r===tt.ArrowRight?r=tt.ArrowLeft:r===tt.ArrowLeft&&(r=tt.ArrowRight)),r===tt.ArrowDown&&m||r===tt.ArrowRight&&(w||p))if(k=d.findNext({currentElement:e,container:u,useActiveModalizer:!0}),k&&p){const T=Math.ceil(k.getBoundingClientRect().left);!v&&C>T&&(k=void 0)}else!k&&b&&(k=d.findFirst({container:u,useActiveModalizer:!0}));else if(r===tt.ArrowUp&&m||r===tt.ArrowLeft&&(w||p))if(k=d.findPrev({currentElement:e,container:u,useActiveModalizer:!0}),k&&p){const T=Math.floor(k.getBoundingClientRect().right);!v&&T>_&&(k=void 0)}else!k&&b&&(k=d.findLast({container:u,useActiveModalizer:!0}));else if(r===tt.Home)p?d.findElement({container:u,currentElement:e,useActiveModalizer:!0,isBackward:!0,acceptCondition:T=>{var E;if(!d.isFocusable(T))return!1;const O=Math.ceil((E=T.getBoundingClientRect().left)!==null&&E!==void 0?E:0);return T!==e&&_<=O?!0:(k=T,!1)}}):k=d.findFirst({container:u,useActiveModalizer:!0});else if(r===tt.End)p?d.findElement({container:u,currentElement:e,useActiveModalizer:!0,acceptCondition:T=>{var E;if(!d.isFocusable(T))return!1;const O=Math.ceil((E=T.getBoundingClientRect().left)!==null&&E!==void 0?E:0);return T!==e&&_>=O?!0:(k=T,!1)}}):k=d.findLast({container:u,useActiveModalizer:!0});else if(r===tt.PageUp){if(d.findElement({currentElement:e,container:u,useActiveModalizer:!0,isBackward:!0,acceptCondition:T=>d.isFocusable(T)?Gb(this._win,T,c.visibilityTolerance)?(k=T,!1):!0:!1}),p&&k){const T=Math.ceil(k.getBoundingClientRect().left);d.findElement({currentElement:k,container:u,useActiveModalizer:!0,acceptCondition:E=>{if(!d.isFocusable(E))return!1;const O=Math.ceil(E.getBoundingClientRect().left);return _=O?!0:(k=E,!1)}})}x=!1}else if(r===tt.PageDown){if(d.findElement({currentElement:e,container:u,useActiveModalizer:!0,acceptCondition:T=>d.isFocusable(T)?Gb(this._win,T,c.visibilityTolerance)?(k=T,!1):!0:!1}),p&&k){const T=Math.ceil(k.getBoundingClientRect().left);d.findElement({currentElement:k,container:u,useActiveModalizer:!0,isBackward:!0,acceptCondition:E=>{if(!d.isFocusable(E))return!1;const O=Math.ceil(E.getBoundingClientRect().left);return _>O||T<=O?!0:(k=E,!1)}})}x=!0}else if(p){const T=r===tt.ArrowUp,E=_,O=Math.ceil(S.top),I=C,H=Math.floor(S.bottom);let q,N,M=0;d.findAll({container:u,currentElement:e,isBackward:T,onElement:W=>{const B=W.getBoundingClientRect(),D=Math.ceil(B.left),U=Math.ceil(B.top),z=Math.floor(B.right),L=Math.floor(B.bottom);if(T&&OU)return!0;const G=Math.ceil(Math.min(I,z))-Math.floor(Math.max(E,D)),Z=Math.ceil(Math.min(I-E,z-D));if(G>0&&Z>=G){const ce=G/Z;ce>M&&(q=W,M=ce)}else if(M===0){const ce=x6(E,O,I,H,D,U,z,L);(N===void 0||ce0)return!1;return!0}}),k=q}return k&&(!o||o&&Nn({by:"mover",owner:u,next:k,relatedEvent:o}))?(x!==void 0&&JP(this._win,k,x),o&&(o.preventDefault(),o.stopImmediatePropagation()),Io(k),k):null}async _isIgnoredInput(e,r){var o;if(e.getAttribute("aria-expanded")==="true"&&e.hasAttribute("aria-activedescendant"))return!0;if(eC(e,k6)){let n=0,i=0,a=0,s;if(e.tagName==="INPUT"||e.tagName==="TEXTAREA"){const l=e.type;if(a=(e.value||"").length,l==="email"||l==="number"){if(a){const u=(o=e.ownerDocument.defaultView)===null||o===void 0?void 0:o.getSelection();if(u){const d=u.toString().length,f=r===rt.Left||r===rt.Up;if(u.modify("extend",f?"backward":"forward","character"),d!==u.toString().length)return u.modify("extend",f?"forward":"backward","character"),!0;a=0}}}else{const u=e.selectionStart;if(u===null)return l==="hidden";n=u||0,i=e.selectionEnd||0}}else e.contentEditable==="true"&&(s=new(r6(this._win))(l=>{this._ignoredInputResolve=g=>{delete this._ignoredInputResolve,l(g)};const c=this._win();this._ignoredInputTimer&&c.clearTimeout(this._ignoredInputTimer);const{anchorNode:u,focusNode:d,anchorOffset:f,focusOffset:h}=c.getSelection()||{};this._ignoredInputTimer=c.setTimeout(()=>{var g,m,w;delete this._ignoredInputTimer;const{anchorNode:v,focusNode:p,anchorOffset:b,focusOffset:k}=c.getSelection()||{};if(v!==u||p!==d||b!==f||k!==h){(g=this._ignoredInputResolve)===null||g===void 0||g.call(this,!1);return}if(n=b||0,i=k||0,a=((m=e.textContent)===null||m===void 0?void 0:m.length)||0,v&&p&&e.contains(v)&&e.contains(p)&&v!==e){let x=!1;const S=_=>{if(_===v)x=!0;else if(_===p)return!0;const C=_.textContent;if(C&&!_.firstChild){const E=C.length;x?p!==v&&(i+=E):(n+=E,i+=E)}let T=!1;for(let E=_.firstChild;E&&!T;E=E.nextSibling)T=S(E);return T};S(e)}(w=this._ignoredInputResolve)===null||w===void 0||w.call(this,!0)},0)}));if(s&&!await s||n!==i||n>0&&(r===rt.Left||r===rt.Up||r===rt.Home)||n"u")return()=>{};const n=e.getWindow;let i;const a=u=>{var d,f,h,g,m;for(const w of u){const v=w.target,p=w.removedNodes,b=w.addedNodes;if(w.type==="attributes")w.attributeName===Zo&&r(e,v);else{for(let k=0;kl(h,d));if(f)for(;f.nextNode(););}function l(u,d){var f;if(!u.getAttribute)return NodeFilter.FILTER_SKIP;const h=u.__tabsterElementUID;return h&&i&&(d?delete i[h]:(f=i[h])!==null&&f!==void 0||(i[h]=new kr(n,u))),(er(e,u)||u.hasAttribute(Zo))&&r(e,u,d),NodeFilter.FILTER_SKIP}const c=new MutationObserver(a);return o&&s(n().document.body),c.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[Zo]}),()=>{c.disconnect()}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */class E6{constructor(e){this._isUncontrolledCompletely=e}isUncontrolledCompletely(e,r){var o;const n=(o=this._isUncontrolledCompletely)===null||o===void 0?void 0:o.call(this,e,r);return n===void 0?r:n}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */const cd="restorer:restorefocus",B6=10;class I6 extends cc{constructor(e,r,o){var n;if(super(e,r,o),this._hasFocus=!1,this._onFocusOut=i=>{var a;const s=(a=this._element)===null||a===void 0?void 0:a.get();s&&i.relatedTarget===null&&s.dispatchEvent(new Event(cd,{bubbles:!0})),s&&!s.contains(i.relatedTarget)&&(this._hasFocus=!1)},this._onFocusIn=()=>{this._hasFocus=!0},this._props.type===_l.Source){const i=(n=this._element)===null||n===void 0?void 0:n.get();i?.addEventListener("focusout",this._onFocusOut),i?.addEventListener("focusin",this._onFocusIn),this._hasFocus=!!i?.contains(i.ownerDocument.activeElement)}}dispose(){var e,r;if(this._props.type===_l.Source){const o=(e=this._element)===null||e===void 0?void 0:e.get();o?.removeEventListener("focusout",this._onFocusOut),o?.removeEventListener("focusin",this._onFocusIn),this._hasFocus&&((r=this._tabster.getWindow().document.body)===null||r===void 0||r.dispatchEvent(new Event(cd,{bubbles:!0})))}}}class R6{constructor(e){this._history=[],this._restoreFocusTimeout=0,this._onRestoreFocus=r=>{const o=this._getWindow();this._restoreFocusTimeout&&o.clearTimeout(this._restoreFocusTimeout),this._restoreFocusTimeout=o.setTimeout(()=>this._restoreFocus(r.target))},this._onFocusIn=r=>{var o;if(!r)return;const n=er(this._tabster,r);((o=n?.restorer)===null||o===void 0?void 0:o.getProps().type)===_l.Target&&this._addToHistory(r)},this._restoreFocus=r=>{var o,n,i;const a=this._getWindow().document;if(a.activeElement!==a.body||!this._keyboardNavState.isNavigatingWithKeyboard()&&a.body.contains(r))return;let s=this._history.pop();for(;s&&!a.body.contains((n=(o=s.get())===null||o===void 0?void 0:o.parentElement)!==null&&n!==void 0?n:null);)s=this._history.pop();(i=s?.get())===null||i===void 0||i.focus()},this._tabster=e,this._getWindow=e.getWindow,this._getWindow().addEventListener(cd,this._onRestoreFocus),this._keyboardNavState=e.keyboardNavigation,this._focusedElementState=e.focusedElement,this._focusedElementState.subscribe(this._onFocusIn)}dispose(){const e=this._getWindow();this._focusedElementState.unsubscribe(this._onFocusIn),e.removeEventListener(cd,this._onRestoreFocus),this._restoreFocusTimeout&&e.clearTimeout(this._restoreFocusTimeout)}_addToHistory(e){var r;((r=this._history[this._history.length-1])===null||r===void 0?void 0:r.get())!==e&&(this._history.length>B6&&this._history.shift(),this._history.push(new kr(this._getWindow,e)))}createRestorer(e,r){const o=new I6(this._tabster,e,r);return r.type===_l.Target&&e.ownerDocument.activeElement===e&&this._addToHistory(e),o}}/*! + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. + */class A6{constructor(e){this.keyboardNavigation=e.keyboardNavigation,this.focusedElement=e.focusedElement,this.focusable=e.focusable,this.root=e.root,this.uncontrolled=e.uncontrolled,this.core=e}}class N6{constructor(e,r){var o,n;this._forgetMemorizedElements=[],this._wrappers=new Set,this._initQueue=[],this._version="5.3.0",this._noop=!1,this.getWindow=()=>{if(!this._win)throw new Error("Using disposed Tabster.");return this._win},this._storage=YP(e),this._win=e;const i=this.getWindow;this.keyboardNavigation=new m6(i),this.focusedElement=new nt(this,i),this.focusable=new d6(this),this.root=new De(this,r?.autoRoot),this.uncontrolled=new E6(r?.checkUncontrolledCompletely||r?.checkUncontrolledTrappingFocus),this.controlTab=(o=r?.controlTab)!==null&&o!==void 0?o:!0,this.rootDummyInputs=!!r?.rootDummyInputs,this._dummyObserver=new i6(i),this.getParent=(n=r?.getParent)!==null&&n!==void 0?n:a=>a.parentElement,this.internal={stopObserver:()=>{this._unobserve&&(this._unobserve(),delete this._unobserve)},resumeObserver:a=>{if(!this._unobserve){const s=i().document;this._unobserve=T6(s,this,Vx,a)}}},Yx(i),this.queueInit(()=>{this.internal.resumeObserver(!0)})}_mergeProps(e){var r;e&&(this.getParent=(r=e.getParent)!==null&&r!==void 0?r:this.getParent)}createTabster(e,r){const o=new A6(this);return e||this._wrappers.add(o),this._mergeProps(r),o}disposeTabster(e,r){r?this._wrappers.clear():this._wrappers.delete(e),this._wrappers.size===0&&this.dispose()}dispose(){var e,r,o,n,i,a,s,l;this.internal.stopObserver();const c=this._win;c?.clearTimeout(this._initTimer),delete this._initTimer,this._initQueue=[],this._forgetMemorizedElements=[],c&&this._forgetMemorizedTimer&&(c.clearTimeout(this._forgetMemorizedTimer),delete this._forgetMemorizedTimer),(e=this.outline)===null||e===void 0||e.dispose(),(r=this.crossOrigin)===null||r===void 0||r.dispose(),(o=this.deloser)===null||o===void 0||o.dispose(),(n=this.groupper)===null||n===void 0||n.dispose(),(i=this.mover)===null||i===void 0||i.dispose(),(a=this.modalizer)===null||a===void 0||a.dispose(),(s=this.observedElement)===null||s===void 0||s.dispose(),(l=this.restorer)===null||l===void 0||l.dispose(),this.keyboardNavigation.dispose(),this.focusable.dispose(),this.focusedElement.dispose(),this.root.dispose(),this._dummyObserver.dispose(),QP(this.getWindow),Xb(this.getWindow),this._storage=new WeakMap,this._wrappers.clear(),c&&(XP(c),delete c.__tabsterInstance,delete this._win)}storageEntry(e,r){const o=this._storage;let n=o.get(e);return n?r===!1&&Object.keys(n).length===0&&o.delete(e):r===!0&&(n={},o.set(e,n)),n}forceCleanup(){this._win&&(this._forgetMemorizedElements.push(this._win.document.body),!this._forgetMemorizedTimer&&(this._forgetMemorizedTimer=this._win.setTimeout(()=>{delete this._forgetMemorizedTimer;for(let e=this._forgetMemorizedElements.shift();e;e=this._forgetMemorizedElements.shift())Xb(this.getWindow,e),nt.forgetMemorized(this.focusedElement,e)},0),Xx(this.getWindow,!0)))}queueInit(e){var r;this._win&&(this._initQueue.push(e),this._initTimer||(this._initTimer=(r=this._win)===null||r===void 0?void 0:r.setTimeout(()=>{delete this._initTimer,this.drainInitQueue()},0)))}drainInitQueue(){if(!this._win)return;const e=this._initQueue;this._initQueue=[],e.forEach(r=>r())}}function P6(t,e){let r=D6(t);return r?r.createTabster(!1,e):(r=new N6(t,e),t.__tabsterInstance=r,r.createTabster())}function z6(t){const e=t.core;return e.groupper||(e.groupper=new p6(e,e.getWindow)),e.groupper}function M6(t){const e=t.core;return e.mover||(e.mover=new C6(e,e.getWindow)),e.mover}function O6(t,e,r){const o=t.core;return o.modalizer||(o.modalizer=new w6(o,e,r)),o.modalizer}function Hv(t){const e=t.core;return e.restorer||(e.restorer=new R6(e)),e.restorer}function j6(t,e){t.core.disposeTabster(t,e)}function D6(t){return t.__tabsterInstance}const Wi=()=>{const{targetDocument:t}=Ae(),e=t?.defaultView||void 0,r=y.useMemo(()=>e?P6(e,{autoRoot:{},controlTab:!1,getParent:Rx,checkUncontrolledTrappingFocus:o=>{var n;return!!(!((n=o.firstElementChild)===null||n===void 0)&&n.hasAttribute("data-is-focus-trap-zone-bumper"))}}):null,[e]);return Jt(()=>()=>{r&&j6(r)},[r]),r},xl=t=>{Wi();const e=vf(t,!0);return y.useMemo(()=>({[Yt.TabsterAttributeName]:e}),[e])},Za=(t={})=>{const{circular:e,axis:r,memorizeCurrent:o=!0,tabbable:n,ignoreDefaultKeydown:i,unstable_hasDefault:a}=t,s=Wi();return s&&M6(s),xl({mover:{cyclic:!!e,direction:F6(r??"vertical"),memorizeCurrent:o,tabbable:n,hasDefault:a},...i&&{focusable:{ignoreKeydown:i}}})};function F6(t){switch(t){case"horizontal":return Yt.MoverDirections.Horizontal;case"grid":return Yt.MoverDirections.Grid;case"grid-linear":return Yt.MoverDirections.GridLinear;case"both":return Yt.MoverDirections.Both;case"vertical":default:return Yt.MoverDirections.Vertical}}const uc=t=>{const e=Wi();return e&&z6(e),xl({groupper:{tabbability:q6(t?.tabBehavior)},focusable:{ignoreKeydown:t?.ignoreDefaultKeydown}})},q6=t=>{switch(t){case"unlimited":return Yt.GroupperTabbabilities.Unlimited;case"limited":return Yt.GroupperTabbabilities.Limited;case"limited-trap-focus":return Yt.GroupperTabbabilities.LimitedTrapFocus;default:return}},No=()=>{const t=Wi(),{targetDocument:e}=Ae(),r=y.useCallback((s,l)=>t?.focusable.findAll({container:s,acceptCondition:l})||[],[t]),o=y.useCallback(s=>t?.focusable.findFirst({container:s}),[t]),n=y.useCallback(s=>t?.focusable.findLast({container:s}),[t]),i=y.useCallback((s,l={})=>{if(!t||!e)return null;const{container:c=e.body}=l;return t.focusable.findNext({currentElement:s,container:c})},[t,e]),a=y.useCallback((s,l={})=>{if(!t||!e)return null;const{container:c=e.body}=l;return t.focusable.findPrev({currentElement:s,container:c})},[t,e]);return{findAllFocusable:r,findFirstFocusable:o,findLastFocusable:n,findNextFocusable:i,findPrevFocusable:a}},Jb="data-fui-focus-visible",oC="data-fui-focus-within";function L6(t,e){if(nC(t))return()=>{};const r={current:void 0},o=jv(e);function n(l){o.isNavigatingWithKeyboard()&&Ve(l)&&(r.current=l,l.setAttribute(Jb,""))}function i(){r.current&&(r.current.removeAttribute(Jb),r.current=void 0)}o.subscribe(l=>{l||i()});const a=l=>{i();const c=l.composedPath()[0];n(c)},s=l=>{(!l.relatedTarget||Ve(l.relatedTarget)&&!t.contains(l.relatedTarget))&&i()};return t.addEventListener(lo,a),t.addEventListener("focusout",s),t.focusVisible=!0,n(e.document.activeElement),()=>{i(),t.removeEventListener(lo,a),t.removeEventListener("focusout",s),delete t.focusVisible,Dv(o)}}function nC(t){return t?t.focusVisible?!0:nC(t?.parentElement):!1}function Uv(t={}){const e=Ae(),r=y.useRef(null);var o;const n=(o=t.targetDocument)!==null&&o!==void 0?o:e.targetDocument;return y.useEffect(()=>{if(n?.defaultView&&r.current)return L6(r.current,n.defaultView)},[r,n]),r}function H6(t,e){const r=jv(e);r.subscribe(i=>{i||ey(t)});const o=i=>{r.isNavigatingWithKeyboard()&&ty(i.target)&&U6(t)},n=i=>{(!i.relatedTarget||ty(i.relatedTarget)&&!t.contains(i.relatedTarget))&&ey(t)};return t.addEventListener(lo,o),t.addEventListener("focusout",n),()=>{t.removeEventListener(lo,o),t.removeEventListener("focusout",n),Dv(r)}}function U6(t){t.setAttribute(oC,"")}function ey(t){t.removeAttribute(oC)}function ty(t){return t?!!(t&&typeof t=="object"&&"classList"in t&&"contains"in t):!1}function gs(){const{targetDocument:t}=Ae(),e=y.useRef(null);return y.useEffect(()=>{if(t?.defaultView&&e.current)return H6(e.current,t.defaultView)},[e,t]),e}const bf=(t={})=>{const{trapFocus:e,alwaysFocusable:r,legacyTrapFocus:o}=t,n=Wi();n&&(O6(n),Hv(n));const i=Bt("modal-",t.id),a=xl({restorer:{type:Yt.RestorerTypes.Source},...e&&{modalizer:{id:i,isOthersAccessible:!e,isAlwaysAccessible:r,isTrapped:o&&e}}}),s=xl({restorer:{type:Yt.RestorerTypes.Target}});return{modalAttributes:a,triggerAttributes:s}},$6=(...t)=>{const e=t.map(r=>r[Yt.TabsterAttributeName]).filter(Boolean);return y.useMemo(()=>{let r=e[0];t.shift();for(const o of e)r=K6(r,o);return{[Yt.TabsterAttributeName]:r}},e)};function K6(t,e){if(!e)return t;let r={},o={};if(t)try{r=JSON.parse(t)}catch{}if(e)try{o=JSON.parse(e)}catch{}return JSON.stringify({...r,...o})}function W6(){const t=Wi();return t&&Hv(t),vf({restorer:{type:Yt.RestorerTypes.Target}})}function V6(){const t=Wi();return t&&Hv(t),vf({restorer:{type:Yt.RestorerTypes.Source}})}const le={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",28:"#474747",30:"#4d4d4d",32:"#525252",34:"#575757",36:"#5c5c5c",38:"#616161",40:"#666666",42:"#6b6b6b",44:"#707070",46:"#757575",48:"#7a7a7a",50:"#808080",52:"#858585",54:"#8a8a8a",56:"#8f8f8f",58:"#949494",60:"#999999",62:"#9e9e9e",64:"#a3a3a3",66:"#a8a8a8",68:"#adadad",70:"#b3b3b3",72:"#b8b8b8",74:"#bdbdbd",76:"#c2c2c2",78:"#c7c7c7",80:"#cccccc",82:"#d1d1d1",84:"#d6d6d6",86:"#dbdbdb",88:"#e0e0e0",90:"#e6e6e6",92:"#ebebeb",94:"#f0f0f0",96:"#f5f5f5",98:"#fafafa"},vn={5:"rgba(255, 255, 255, 0.05)",10:"rgba(255, 255, 255, 0.1)",20:"rgba(255, 255, 255, 0.2)",30:"rgba(255, 255, 255, 0.3)",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)",90:"rgba(255, 255, 255, 0.9)"},bn={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)",60:"rgba(0, 0, 0, 0.6)",70:"rgba(0, 0, 0, 0.7)",80:"rgba(0, 0, 0, 0.8)",90:"rgba(0, 0, 0, 0.9)"},ht="#ffffff",G6="#000000",X6={shade50:"#130204",shade40:"#230308",shade30:"#420610",shade20:"#590815",shade10:"#690a19",primary:"#750b1c",tint10:"#861b2c",tint20:"#962f3f",tint30:"#ac4f5e",tint40:"#d69ca5",tint50:"#e9c7cd",tint60:"#f9f0f2"},iC={shade50:"#200205",shade40:"#3b0509",shade30:"#6e0811",shade20:"#960b18",shade10:"#b10e1c",primary:"#c50f1f",tint10:"#cc2635",tint20:"#d33f4c",tint30:"#dc626d",tint40:"#eeacb2",tint50:"#f6d1d5",tint60:"#fdf3f4"},Y6={shade50:"#210809",shade40:"#3f1011",shade30:"#751d1f",shade20:"#9f282b",shade10:"#bc2f32",primary:"#d13438",tint10:"#d7494c",tint20:"#dc5e62",tint30:"#e37d80",tint40:"#f1bbbc",tint50:"#f8dadb",tint60:"#fdf6f6"},Z6={shade50:"#230900",shade40:"#411200",shade30:"#7a2101",shade20:"#a62d01",shade10:"#c43501",primary:"#da3b01",tint10:"#de501c",tint20:"#e36537",tint30:"#e9835e",tint40:"#f4bfab",tint50:"#f9dcd1",tint60:"#fdf6f3"},Q6={shade50:"#200d03",shade40:"#3d1805",shade30:"#712d09",shade20:"#9a3d0c",shade10:"#b6480e",primary:"#ca5010",tint10:"#d06228",tint20:"#d77440",tint30:"#df8e64",tint40:"#efc4ad",tint50:"#f7dfd2",tint60:"#fdf7f4"},J6={shade50:"#271002",shade40:"#4a1e04",shade30:"#8a3707",shade20:"#bc4b09",shade10:"#de590b",primary:"#f7630c",tint10:"#f87528",tint20:"#f98845",tint30:"#faa06b",tint40:"#fdcfb4",tint50:"#fee5d7",tint60:"#fff9f5"},ez={shade50:"#291600",shade40:"#4d2a00",shade30:"#8f4e00",shade20:"#c26a00",shade10:"#e67e00",primary:"#ff8c00",tint10:"#ff9a1f",tint20:"#ffa83d",tint30:"#ffba66",tint40:"#ffddb3",tint50:"#ffedd6",tint60:"#fffaf5"},tz={shade50:"#251a00",shade40:"#463100",shade30:"#835b00",shade20:"#b27c00",shade10:"#d39300",primary:"#eaa300",tint10:"#edad1c",tint20:"#efb839",tint30:"#f2c661",tint40:"#f9e2ae",tint50:"#fcefd3",tint60:"#fefbf4"},rz={primary:"#fde300",shade10:"#e4cc00",shade20:"#c0ad00",shade30:"#817400",shade40:"#4c4400",shade50:"#282400",tint10:"#fde61e",tint20:"#fdea3d",tint30:"#feee66",tint40:"#fef7b2",tint50:"#fffad6",tint60:"#fffef5"},oz={shade50:"#1f1900",shade40:"#3a2f00",shade30:"#6c5700",shade20:"#937700",shade10:"#ae8c00",primary:"#c19c00",tint10:"#c8a718",tint20:"#d0b232",tint30:"#dac157",tint40:"#ecdfa5",tint50:"#f5eece",tint60:"#fdfbf2"},nz={shade50:"#181202",shade40:"#2e2103",shade30:"#553e06",shade20:"#745408",shade10:"#89640a",primary:"#986f0b",tint10:"#a47d1e",tint20:"#b18c34",tint30:"#c1a256",tint40:"#e0cea2",tint50:"#efe4cb",tint60:"#fbf8f2"},iz={shade50:"#170e07",shade40:"#2b1a0e",shade30:"#50301a",shade20:"#6c4123",shade10:"#804d29",primary:"#8e562e",tint10:"#9c663f",tint20:"#a97652",tint30:"#bb8f6f",tint40:"#ddc3b0",tint50:"#edded3",tint60:"#faf7f4"},az={shade50:"#0c1501",shade40:"#162702",shade30:"#294903",shade20:"#376304",shade10:"#427505",primary:"#498205",tint10:"#599116",tint20:"#6ba02b",tint30:"#85b44c",tint40:"#bdd99b",tint50:"#dbebc7",tint60:"#f6faf0"},sz={shade50:"#002111",shade40:"#003d20",shade30:"#00723b",shade20:"#009b51",shade10:"#00b85f",primary:"#00cc6a",tint10:"#19d279",tint20:"#34d889",tint30:"#5ae0a0",tint40:"#a8f0cd",tint50:"#cff7e4",tint60:"#f3fdf8"},lz={shade50:"#031a02",shade40:"#063004",shade30:"#0b5a08",shade20:"#0e7a0b",shade10:"#11910d",primary:"#13a10e",tint10:"#27ac22",tint20:"#3db838",tint30:"#5ec75a",tint40:"#a7e3a5",tint50:"#cef0cd",tint60:"#f2fbf2"},aC={shade50:"#031403",shade40:"#052505",shade30:"#094509",shade20:"#0c5e0c",shade10:"#0e700e",primary:"#107c10",tint10:"#218c21",tint20:"#359b35",tint30:"#54b054",tint40:"#9fd89f",tint50:"#c9eac9",tint60:"#f1faf1"},cz={shade50:"#021102",shade40:"#032003",shade30:"#063b06",shade20:"#085108",shade10:"#0a5f0a",primary:"#0b6a0b",tint10:"#1a7c1a",tint20:"#2d8e2d",tint30:"#4da64d",tint40:"#9ad29a",tint50:"#c6e7c6",tint60:"#f0f9f0"},uz={shade50:"#001d1f",shade40:"#00373a",shade30:"#00666d",shade20:"#008b94",shade10:"#00a5af",primary:"#00b7c3",tint10:"#18bfca",tint20:"#32c8d1",tint30:"#58d3db",tint40:"#a6e9ed",tint50:"#cef3f5",tint60:"#f2fcfd"},dz={shade50:"#001516",shade40:"#012728",shade30:"#02494c",shade20:"#026467",shade10:"#037679",primary:"#038387",tint10:"#159195",tint20:"#2aa0a4",tint30:"#4cb4b7",tint40:"#9bd9db",tint50:"#c7ebec",tint60:"#f0fafa"},fz={shade50:"#000f12",shade40:"#001b22",shade30:"#00333f",shade20:"#004555",shade10:"#005265",primary:"#005b70",tint10:"#0f6c81",tint20:"#237d92",tint30:"#4496a9",tint40:"#94c8d4",tint50:"#c3e1e8",tint60:"#eff7f9"},hz={shade50:"#001322",shade40:"#002440",shade30:"#004377",shade20:"#005ba1",shade10:"#006cbf",primary:"#0078d4",tint10:"#1a86d9",tint20:"#3595de",tint30:"#5caae5",tint40:"#a9d3f2",tint50:"#d0e7f8",tint60:"#f3f9fd"},gz={shade50:"#000c16",shade40:"#00172a",shade30:"#002c4e",shade20:"#003b6a",shade10:"#00467e",primary:"#004e8c",tint10:"#125e9a",tint20:"#286fa8",tint30:"#4a89ba",tint40:"#9abfdc",tint50:"#c7dced",tint60:"#f0f6fa"},pz={shade50:"#0d1126",shade40:"#182047",shade30:"#2c3c85",shade20:"#3c51b4",shade10:"#4760d5",primary:"#4f6bed",tint10:"#637cef",tint20:"#778df1",tint30:"#93a4f4",tint40:"#c8d1fa",tint50:"#e1e6fc",tint60:"#f7f9fe"},mz={shade50:"#00061d",shade40:"#000c36",shade30:"#001665",shade20:"#001e89",shade10:"#0023a2",primary:"#0027b4",tint10:"#173bbd",tint20:"#3050c6",tint30:"#546fd2",tint40:"#a3b2e8",tint50:"#ccd5f3",tint60:"#f2f4fc"},vz={shade50:"#120f25",shade40:"#221d46",shade30:"#3f3682",shade20:"#5649b0",shade10:"#6656d1",primary:"#7160e8",tint10:"#8172eb",tint20:"#9184ee",tint30:"#a79cf1",tint40:"#d2ccf8",tint50:"#e7e4fb",tint60:"#f9f8fe"},bz={shade50:"#0f0717",shade40:"#1c0e2b",shade30:"#341a51",shade20:"#46236e",shade10:"#532982",primary:"#5c2e91",tint10:"#6b3f9e",tint20:"#7c52ab",tint30:"#9470bd",tint40:"#c6b1de",tint50:"#e0d3ed",tint60:"#f7f4fb"},yz={shade50:"#160418",shade40:"#29072e",shade30:"#4c0d55",shade20:"#671174",shade10:"#7a1589",primary:"#881798",tint10:"#952aa4",tint20:"#a33fb1",tint30:"#b55fc1",tint40:"#d9a7e0",tint50:"#eaceef",tint60:"#faf2fb"},wz={shade50:"#1f091d",shade40:"#3a1136",shade30:"#6d2064",shade20:"#932b88",shade10:"#af33a1",primary:"#c239b3",tint10:"#c94cbc",tint20:"#d161c4",tint30:"#da7ed0",tint40:"#edbbe7",tint50:"#f5daf2",tint60:"#fdf5fc"},kz={shade50:"#1c0b1f",shade40:"#35153a",shade30:"#63276d",shade20:"#863593",shade10:"#9f3faf",primary:"#b146c2",tint10:"#ba58c9",tint20:"#c36bd1",tint30:"#cf87da",tint40:"#e6bfed",tint50:"#f2dcf5",tint60:"#fcf6fd"},Sz={shade50:"#24091b",shade40:"#441232",shade30:"#80215d",shade20:"#ad2d7e",shade10:"#cd3595",primary:"#e43ba6",tint10:"#e750b0",tint20:"#ea66ba",tint30:"#ef85c8",tint40:"#f7c0e3",tint50:"#fbddf0",tint60:"#fef6fb"},_z={shade50:"#1f0013",shade40:"#390024",shade30:"#6b0043",shade20:"#91005a",shade10:"#ac006b",primary:"#bf0077",tint10:"#c71885",tint20:"#ce3293",tint30:"#d957a8",tint40:"#eca5d1",tint50:"#f5cee6",tint60:"#fcf2f9"},xz={shade50:"#13000c",shade40:"#240017",shade30:"#43002b",shade20:"#5a003b",shade10:"#6b0045",primary:"#77004d",tint10:"#87105d",tint20:"#98246f",tint30:"#ad4589",tint40:"#d696c0",tint50:"#e9c4dc",tint60:"#faf0f6"},Cz={shade50:"#141313",shade40:"#252323",shade30:"#444241",shade20:"#5d5958",shade10:"#6e6968",primary:"#7a7574",tint10:"#8a8584",tint20:"#9a9594",tint30:"#afabaa",tint40:"#d7d4d4",tint50:"#eae8e8",tint60:"#faf9f9"},Tz={shade50:"#0f0e0e",shade40:"#1c1b1a",shade30:"#343231",shade20:"#474443",shade10:"#54514f",primary:"#5d5a58",tint10:"#706d6b",tint20:"#84817e",tint30:"#9e9b99",tint40:"#cecccb",tint50:"#e5e4e3",tint60:"#f8f8f8"},Ez={shade50:"#111314",shade40:"#1f2426",shade30:"#3b4447",shade20:"#505c60",shade10:"#5f6d71",primary:"#69797e",tint10:"#79898d",tint20:"#89989d",tint30:"#a0adb2",tint40:"#cdd6d8",tint50:"#e4e9ea",tint60:"#f8f9fa"},Bz={shade50:"#090a0b",shade40:"#111315",shade30:"#202427",shade20:"#2b3135",shade10:"#333a3f",primary:"#394146",tint10:"#4d565c",tint20:"#626c72",tint30:"#808a90",tint40:"#bcc3c7",tint50:"#dbdfe1",tint60:"#f6f7f8"},mr={red:Y6,green:aC,darkOrange:Z6,yellow:rz,berry:wz,lightGreen:lz,marigold:tz},vh={darkRed:X6,cranberry:iC,pumpkin:Q6,peach:ez,gold:oz,brass:nz,brown:iz,forest:az,seafoam:sz,darkGreen:cz,lightTeal:uz,teal:dz,steel:fz,blue:hz,royalBlue:gz,cornflower:pz,navy:mz,lavender:vz,purple:bz,grape:yz,lilac:kz,pink:Sz,magenta:_z,plum:xz,beige:Cz,mink:Tz,platinum:Ez,anchor:Bz},pr={cranberry:iC,green:aC,orange:J6},Iz=["red","green","darkOrange","yellow","berry","lightGreen","marigold"],Rz=["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"],yf={success:"green",warning:"orange",danger:"cranberry"},dc=Iz.reduce((t,e)=>{const r=e.slice(0,1).toUpperCase()+e.slice(1),o={[`colorPalette${r}Background1`]:mr[e].tint60,[`colorPalette${r}Background2`]:mr[e].tint40,[`colorPalette${r}Background3`]:mr[e].primary,[`colorPalette${r}Foreground1`]:mr[e].shade10,[`colorPalette${r}Foreground2`]:mr[e].shade30,[`colorPalette${r}Foreground3`]:mr[e].primary,[`colorPalette${r}BorderActive`]:mr[e].primary,[`colorPalette${r}Border1`]:mr[e].tint40,[`colorPalette${r}Border2`]:mr[e].primary};return Object.assign(t,o)},{});dc.colorPaletteYellowForeground1=mr.yellow.shade30;dc.colorPaletteRedForegroundInverted=mr.red.tint20;dc.colorPaletteGreenForegroundInverted=mr.green.tint20;dc.colorPaletteYellowForegroundInverted=mr.yellow.tint40;const Az=Rz.reduce((t,e)=>{const r=e.slice(0,1).toUpperCase()+e.slice(1),o={[`colorPalette${r}Background2`]:vh[e].tint40,[`colorPalette${r}Foreground2`]:vh[e].shade30,[`colorPalette${r}BorderActive`]:vh[e].primary};return Object.assign(t,o)},{}),Nz={...dc,...Az},wf=Object.entries(yf).reduce((t,[e,r])=>{const o=e.slice(0,1).toUpperCase()+e.slice(1),n={[`colorStatus${o}Background1`]:pr[r].tint60,[`colorStatus${o}Background2`]:pr[r].tint40,[`colorStatus${o}Background3`]:pr[r].primary,[`colorStatus${o}Foreground1`]:pr[r].shade10,[`colorStatus${o}Foreground2`]:pr[r].shade30,[`colorStatus${o}Foreground3`]:pr[r].primary,[`colorStatus${o}ForegroundInverted`]:pr[r].tint30,[`colorStatus${o}BorderActive`]:pr[r].primary,[`colorStatus${o}Border1`]:pr[r].tint40,[`colorStatus${o}Border2`]:pr[r].primary};return Object.assign(t,n)},{});wf.colorStatusWarningForeground1=pr[yf.warning].shade20;wf.colorStatusWarningForeground3=pr[yf.warning].shade20;wf.colorStatusWarningBorder2=pr[yf.warning].shade20;const Pz=t=>({colorNeutralForeground1:le[14],colorNeutralForeground1Hover:le[14],colorNeutralForeground1Pressed:le[14],colorNeutralForeground1Selected:le[14],colorNeutralForeground2:le[26],colorNeutralForeground2Hover:le[14],colorNeutralForeground2Pressed:le[14],colorNeutralForeground2Selected:le[14],colorNeutralForeground2BrandHover:t[80],colorNeutralForeground2BrandPressed:t[70],colorNeutralForeground2BrandSelected:t[80],colorNeutralForeground3:le[38],colorNeutralForeground3Hover:le[26],colorNeutralForeground3Pressed:le[26],colorNeutralForeground3Selected:le[26],colorNeutralForeground3BrandHover:t[80],colorNeutralForeground3BrandPressed:t[70],colorNeutralForeground3BrandSelected:t[80],colorNeutralForeground4:le[44],colorNeutralForegroundDisabled:le[74],colorNeutralForegroundInvertedDisabled:vn[40],colorBrandForegroundLink:t[70],colorBrandForegroundLinkHover:t[60],colorBrandForegroundLinkPressed:t[40],colorBrandForegroundLinkSelected:t[70],colorNeutralForeground2Link:le[26],colorNeutralForeground2LinkHover:le[14],colorNeutralForeground2LinkPressed:le[14],colorNeutralForeground2LinkSelected:le[14],colorCompoundBrandForeground1:t[80],colorCompoundBrandForeground1Hover:t[70],colorCompoundBrandForeground1Pressed:t[60],colorBrandForeground1:t[80],colorBrandForeground2:t[70],colorBrandForeground2Hover:t[60],colorBrandForeground2Pressed:t[30],colorNeutralForeground1Static:le[14],colorNeutralForegroundStaticInverted:ht,colorNeutralForegroundInverted:ht,colorNeutralForegroundInvertedHover:ht,colorNeutralForegroundInvertedPressed:ht,colorNeutralForegroundInvertedSelected:ht,colorNeutralForegroundInverted2:ht,colorNeutralForegroundOnBrand:ht,colorNeutralForegroundInvertedLink:ht,colorNeutralForegroundInvertedLinkHover:ht,colorNeutralForegroundInvertedLinkPressed:ht,colorNeutralForegroundInvertedLinkSelected:ht,colorBrandForegroundInverted:t[100],colorBrandForegroundInvertedHover:t[110],colorBrandForegroundInvertedPressed:t[100],colorBrandForegroundOnLight:t[80],colorBrandForegroundOnLightHover:t[70],colorBrandForegroundOnLightPressed:t[50],colorBrandForegroundOnLightSelected:t[60],colorNeutralBackground1:ht,colorNeutralBackground1Hover:le[96],colorNeutralBackground1Pressed:le[88],colorNeutralBackground1Selected:le[92],colorNeutralBackground2:le[98],colorNeutralBackground2Hover:le[94],colorNeutralBackground2Pressed:le[86],colorNeutralBackground2Selected:le[90],colorNeutralBackground3:le[96],colorNeutralBackground3Hover:le[92],colorNeutralBackground3Pressed:le[84],colorNeutralBackground3Selected:le[88],colorNeutralBackground4:le[94],colorNeutralBackground4Hover:le[98],colorNeutralBackground4Pressed:le[96],colorNeutralBackground4Selected:ht,colorNeutralBackground5:le[92],colorNeutralBackground5Hover:le[96],colorNeutralBackground5Pressed:le[94],colorNeutralBackground5Selected:le[98],colorNeutralBackground6:le[90],colorNeutralBackgroundInverted:le[16],colorNeutralBackgroundStatic:le[20],colorNeutralBackgroundAlpha:vn[50],colorNeutralBackgroundAlpha2:vn[80],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:le[96],colorSubtleBackgroundPressed:le[88],colorSubtleBackgroundSelected:le[92],colorSubtleBackgroundLightAlphaHover:vn[70],colorSubtleBackgroundLightAlphaPressed:vn[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:bn[10],colorSubtleBackgroundInvertedPressed:bn[30],colorSubtleBackgroundInvertedSelected:bn[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:le[94],colorNeutralBackgroundInvertedDisabled:vn[10],colorNeutralStencil1:le[90],colorNeutralStencil2:le[98],colorNeutralStencil1Alpha:bn[10],colorNeutralStencil2Alpha:bn[5],colorBackgroundOverlay:bn[40],colorScrollbarOverlay:bn[50],colorBrandBackground:t[80],colorBrandBackgroundHover:t[70],colorBrandBackgroundPressed:t[40],colorBrandBackgroundSelected:t[60],colorCompoundBrandBackground:t[80],colorCompoundBrandBackgroundHover:t[70],colorCompoundBrandBackgroundPressed:t[60],colorBrandBackgroundStatic:t[80],colorBrandBackground2:t[160],colorBrandBackground2Hover:t[150],colorBrandBackground2Pressed:t[130],colorBrandBackgroundInverted:ht,colorBrandBackgroundInvertedHover:t[160],colorBrandBackgroundInvertedPressed:t[140],colorBrandBackgroundInvertedSelected:t[150],colorNeutralStrokeAccessible:le[38],colorNeutralStrokeAccessibleHover:le[34],colorNeutralStrokeAccessiblePressed:le[30],colorNeutralStrokeAccessibleSelected:t[80],colorNeutralStroke1:le[82],colorNeutralStroke1Hover:le[78],colorNeutralStroke1Pressed:le[70],colorNeutralStroke1Selected:le[74],colorNeutralStroke2:le[88],colorNeutralStroke3:le[94],colorNeutralStrokeSubtle:le[88],colorNeutralStrokeOnBrand:ht,colorNeutralStrokeOnBrand2:ht,colorNeutralStrokeOnBrand2Hover:ht,colorNeutralStrokeOnBrand2Pressed:ht,colorNeutralStrokeOnBrand2Selected:ht,colorBrandStroke1:t[80],colorBrandStroke2:t[140],colorBrandStroke2Hover:t[120],colorBrandStroke2Pressed:t[80],colorBrandStroke2Contrast:t[140],colorCompoundBrandStroke:t[80],colorCompoundBrandStrokeHover:t[70],colorCompoundBrandStrokePressed:t[60],colorNeutralStrokeDisabled:le[88],colorNeutralStrokeInvertedDisabled:vn[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:bn[5],colorNeutralStrokeAlpha2:vn[20],colorStrokeFocus1:ht,colorStrokeFocus2:G6,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)"}),zz={borderRadiusNone:"0",borderRadiusSmall:"2px",borderRadiusMedium:"4px",borderRadiusLarge:"6px",borderRadiusXLarge:"8px",borderRadiusCircular:"10000px"},Mz={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)"},Oz={durationUltraFast:"50ms",durationFaster:"100ms",durationFast:"150ms",durationNormal:"200ms",durationGentle:"250ms",durationSlow:"300ms",durationSlower:"400ms",durationUltraSlow:"500ms"},jz={fontSizeBase100:"10px",fontSizeBase200:"12px",fontSizeBase300:"14px",fontSizeBase400:"16px",fontSizeBase500:"20px",fontSizeBase600:"24px",fontSizeHero700:"28px",fontSizeHero800:"32px",fontSizeHero900:"40px",fontSizeHero1000:"68px"},Dz={lineHeightBase100:"14px",lineHeightBase200:"16px",lineHeightBase300:"20px",lineHeightBase400:"22px",lineHeightBase500:"28px",lineHeightBase600:"32px",lineHeightHero700:"36px",lineHeightHero800:"40px",lineHeightHero900:"52px",lineHeightHero1000:"92px"},Fz={fontWeightRegular:400,fontWeightMedium:500,fontWeightSemibold:600,fontWeightBold:700},qz={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"},it={none:"0",xxs:"2px",xs:"4px",sNudge:"6px",s:"8px",mNudge:"10px",m:"12px",l:"16px",xl:"20px",xxl:"24px",xxxl:"32px"},Lz={spacingHorizontalNone:it.none,spacingHorizontalXXS:it.xxs,spacingHorizontalXS:it.xs,spacingHorizontalSNudge:it.sNudge,spacingHorizontalS:it.s,spacingHorizontalMNudge:it.mNudge,spacingHorizontalM:it.m,spacingHorizontalL:it.l,spacingHorizontalXL:it.xl,spacingHorizontalXXL:it.xxl,spacingHorizontalXXXL:it.xxxl},Hz={spacingVerticalNone:it.none,spacingVerticalXXS:it.xxs,spacingVerticalXS:it.xs,spacingVerticalSNudge:it.sNudge,spacingVerticalS:it.s,spacingVerticalMNudge:it.mNudge,spacingVerticalM:it.m,spacingVerticalL:it.l,spacingVerticalXL:it.xl,spacingVerticalXXL:it.xxl,spacingVerticalXXXL:it.xxxl},Uz={strokeWidthThin:"1px",strokeWidthThick:"2px",strokeWidthThicker:"3px",strokeWidthThickest:"4px"},oee={colorNeutralForeground1:"var(--colorNeutralForeground1)",colorNeutralForeground1Hover:"var(--colorNeutralForeground1Hover)",colorNeutralForeground1Pressed:"var(--colorNeutralForeground1Pressed)",colorNeutralForeground1Selected:"var(--colorNeutralForeground1Selected)",colorNeutralForeground2:"var(--colorNeutralForeground2)",colorNeutralForeground2Hover:"var(--colorNeutralForeground2Hover)",colorNeutralForeground2Pressed:"var(--colorNeutralForeground2Pressed)",colorNeutralForeground2Selected:"var(--colorNeutralForeground2Selected)",colorNeutralForeground2BrandHover:"var(--colorNeutralForeground2BrandHover)",colorNeutralForeground2BrandPressed:"var(--colorNeutralForeground2BrandPressed)",colorNeutralForeground2BrandSelected:"var(--colorNeutralForeground2BrandSelected)",colorNeutralForeground3:"var(--colorNeutralForeground3)",colorNeutralForeground3Hover:"var(--colorNeutralForeground3Hover)",colorNeutralForeground3Pressed:"var(--colorNeutralForeground3Pressed)",colorNeutralForeground3Selected:"var(--colorNeutralForeground3Selected)",colorNeutralForeground3BrandHover:"var(--colorNeutralForeground3BrandHover)",colorNeutralForeground3BrandPressed:"var(--colorNeutralForeground3BrandPressed)",colorNeutralForeground3BrandSelected:"var(--colorNeutralForeground3BrandSelected)",colorNeutralForeground4:"var(--colorNeutralForeground4)",colorNeutralForegroundDisabled:"var(--colorNeutralForegroundDisabled)",colorBrandForegroundLink:"var(--colorBrandForegroundLink)",colorBrandForegroundLinkHover:"var(--colorBrandForegroundLinkHover)",colorBrandForegroundLinkPressed:"var(--colorBrandForegroundLinkPressed)",colorBrandForegroundLinkSelected:"var(--colorBrandForegroundLinkSelected)",colorNeutralForeground2Link:"var(--colorNeutralForeground2Link)",colorNeutralForeground2LinkHover:"var(--colorNeutralForeground2LinkHover)",colorNeutralForeground2LinkPressed:"var(--colorNeutralForeground2LinkPressed)",colorNeutralForeground2LinkSelected:"var(--colorNeutralForeground2LinkSelected)",colorCompoundBrandForeground1:"var(--colorCompoundBrandForeground1)",colorCompoundBrandForeground1Hover:"var(--colorCompoundBrandForeground1Hover)",colorCompoundBrandForeground1Pressed:"var(--colorCompoundBrandForeground1Pressed)",colorNeutralForegroundOnBrand:"var(--colorNeutralForegroundOnBrand)",colorNeutralForegroundInverted:"var(--colorNeutralForegroundInverted)",colorNeutralForegroundInvertedHover:"var(--colorNeutralForegroundInvertedHover)",colorNeutralForegroundInvertedPressed:"var(--colorNeutralForegroundInvertedPressed)",colorNeutralForegroundInvertedSelected:"var(--colorNeutralForegroundInvertedSelected)",colorNeutralForegroundInverted2:"var(--colorNeutralForegroundInverted2)",colorNeutralForegroundStaticInverted:"var(--colorNeutralForegroundStaticInverted)",colorNeutralForegroundInvertedLink:"var(--colorNeutralForegroundInvertedLink)",colorNeutralForegroundInvertedLinkHover:"var(--colorNeutralForegroundInvertedLinkHover)",colorNeutralForegroundInvertedLinkPressed:"var(--colorNeutralForegroundInvertedLinkPressed)",colorNeutralForegroundInvertedLinkSelected:"var(--colorNeutralForegroundInvertedLinkSelected)",colorNeutralForegroundInvertedDisabled:"var(--colorNeutralForegroundInvertedDisabled)",colorBrandForeground1:"var(--colorBrandForeground1)",colorBrandForeground2:"var(--colorBrandForeground2)",colorBrandForeground2Hover:"var(--colorBrandForeground2Hover)",colorBrandForeground2Pressed:"var(--colorBrandForeground2Pressed)",colorNeutralForeground1Static:"var(--colorNeutralForeground1Static)",colorBrandForegroundInverted:"var(--colorBrandForegroundInverted)",colorBrandForegroundInvertedHover:"var(--colorBrandForegroundInvertedHover)",colorBrandForegroundInvertedPressed:"var(--colorBrandForegroundInvertedPressed)",colorBrandForegroundOnLight:"var(--colorBrandForegroundOnLight)",colorBrandForegroundOnLightHover:"var(--colorBrandForegroundOnLightHover)",colorBrandForegroundOnLightPressed:"var(--colorBrandForegroundOnLightPressed)",colorBrandForegroundOnLightSelected:"var(--colorBrandForegroundOnLightSelected)",colorNeutralBackground1:"var(--colorNeutralBackground1)",colorNeutralBackground1Hover:"var(--colorNeutralBackground1Hover)",colorNeutralBackground1Pressed:"var(--colorNeutralBackground1Pressed)",colorNeutralBackground1Selected:"var(--colorNeutralBackground1Selected)",colorNeutralBackground2:"var(--colorNeutralBackground2)",colorNeutralBackground2Hover:"var(--colorNeutralBackground2Hover)",colorNeutralBackground2Pressed:"var(--colorNeutralBackground2Pressed)",colorNeutralBackground2Selected:"var(--colorNeutralBackground2Selected)",colorNeutralBackground3:"var(--colorNeutralBackground3)",colorNeutralBackground3Hover:"var(--colorNeutralBackground3Hover)",colorNeutralBackground3Pressed:"var(--colorNeutralBackground3Pressed)",colorNeutralBackground3Selected:"var(--colorNeutralBackground3Selected)",colorNeutralBackground4:"var(--colorNeutralBackground4)",colorNeutralBackground4Hover:"var(--colorNeutralBackground4Hover)",colorNeutralBackground4Pressed:"var(--colorNeutralBackground4Pressed)",colorNeutralBackground4Selected:"var(--colorNeutralBackground4Selected)",colorNeutralBackground5:"var(--colorNeutralBackground5)",colorNeutralBackground5Hover:"var(--colorNeutralBackground5Hover)",colorNeutralBackground5Pressed:"var(--colorNeutralBackground5Pressed)",colorNeutralBackground5Selected:"var(--colorNeutralBackground5Selected)",colorNeutralBackground6:"var(--colorNeutralBackground6)",colorNeutralBackgroundInverted:"var(--colorNeutralBackgroundInverted)",colorNeutralBackgroundStatic:"var(--colorNeutralBackgroundStatic)",colorNeutralBackgroundAlpha:"var(--colorNeutralBackgroundAlpha)",colorNeutralBackgroundAlpha2:"var(--colorNeutralBackgroundAlpha2)",colorSubtleBackground:"var(--colorSubtleBackground)",colorSubtleBackgroundHover:"var(--colorSubtleBackgroundHover)",colorSubtleBackgroundPressed:"var(--colorSubtleBackgroundPressed)",colorSubtleBackgroundSelected:"var(--colorSubtleBackgroundSelected)",colorSubtleBackgroundLightAlphaHover:"var(--colorSubtleBackgroundLightAlphaHover)",colorSubtleBackgroundLightAlphaPressed:"var(--colorSubtleBackgroundLightAlphaPressed)",colorSubtleBackgroundLightAlphaSelected:"var(--colorSubtleBackgroundLightAlphaSelected)",colorSubtleBackgroundInverted:"var(--colorSubtleBackgroundInverted)",colorSubtleBackgroundInvertedHover:"var(--colorSubtleBackgroundInvertedHover)",colorSubtleBackgroundInvertedPressed:"var(--colorSubtleBackgroundInvertedPressed)",colorSubtleBackgroundInvertedSelected:"var(--colorSubtleBackgroundInvertedSelected)",colorTransparentBackground:"var(--colorTransparentBackground)",colorTransparentBackgroundHover:"var(--colorTransparentBackgroundHover)",colorTransparentBackgroundPressed:"var(--colorTransparentBackgroundPressed)",colorTransparentBackgroundSelected:"var(--colorTransparentBackgroundSelected)",colorNeutralBackgroundDisabled:"var(--colorNeutralBackgroundDisabled)",colorNeutralBackgroundInvertedDisabled:"var(--colorNeutralBackgroundInvertedDisabled)",colorNeutralStencil1:"var(--colorNeutralStencil1)",colorNeutralStencil2:"var(--colorNeutralStencil2)",colorNeutralStencil1Alpha:"var(--colorNeutralStencil1Alpha)",colorNeutralStencil2Alpha:"var(--colorNeutralStencil2Alpha)",colorBackgroundOverlay:"var(--colorBackgroundOverlay)",colorScrollbarOverlay:"var(--colorScrollbarOverlay)",colorBrandBackground:"var(--colorBrandBackground)",colorBrandBackgroundHover:"var(--colorBrandBackgroundHover)",colorBrandBackgroundPressed:"var(--colorBrandBackgroundPressed)",colorBrandBackgroundSelected:"var(--colorBrandBackgroundSelected)",colorCompoundBrandBackground:"var(--colorCompoundBrandBackground)",colorCompoundBrandBackgroundHover:"var(--colorCompoundBrandBackgroundHover)",colorCompoundBrandBackgroundPressed:"var(--colorCompoundBrandBackgroundPressed)",colorBrandBackgroundStatic:"var(--colorBrandBackgroundStatic)",colorBrandBackground2:"var(--colorBrandBackground2)",colorBrandBackground2Hover:"var(--colorBrandBackground2Hover)",colorBrandBackground2Pressed:"var(--colorBrandBackground2Pressed)",colorBrandBackgroundInverted:"var(--colorBrandBackgroundInverted)",colorBrandBackgroundInvertedHover:"var(--colorBrandBackgroundInvertedHover)",colorBrandBackgroundInvertedPressed:"var(--colorBrandBackgroundInvertedPressed)",colorBrandBackgroundInvertedSelected:"var(--colorBrandBackgroundInvertedSelected)",colorNeutralStrokeAccessible:"var(--colorNeutralStrokeAccessible)",colorNeutralStrokeAccessibleHover:"var(--colorNeutralStrokeAccessibleHover)",colorNeutralStrokeAccessiblePressed:"var(--colorNeutralStrokeAccessiblePressed)",colorNeutralStrokeAccessibleSelected:"var(--colorNeutralStrokeAccessibleSelected)",colorNeutralStroke1:"var(--colorNeutralStroke1)",colorNeutralStroke1Hover:"var(--colorNeutralStroke1Hover)",colorNeutralStroke1Pressed:"var(--colorNeutralStroke1Pressed)",colorNeutralStroke1Selected:"var(--colorNeutralStroke1Selected)",colorNeutralStroke2:"var(--colorNeutralStroke2)",colorNeutralStroke3:"var(--colorNeutralStroke3)",colorNeutralStrokeSubtle:"var(--colorNeutralStrokeSubtle)",colorNeutralStrokeOnBrand:"var(--colorNeutralStrokeOnBrand)",colorNeutralStrokeOnBrand2:"var(--colorNeutralStrokeOnBrand2)",colorNeutralStrokeOnBrand2Hover:"var(--colorNeutralStrokeOnBrand2Hover)",colorNeutralStrokeOnBrand2Pressed:"var(--colorNeutralStrokeOnBrand2Pressed)",colorNeutralStrokeOnBrand2Selected:"var(--colorNeutralStrokeOnBrand2Selected)",colorBrandStroke1:"var(--colorBrandStroke1)",colorBrandStroke2:"var(--colorBrandStroke2)",colorBrandStroke2Hover:"var(--colorBrandStroke2Hover)",colorBrandStroke2Pressed:"var(--colorBrandStroke2Pressed)",colorBrandStroke2Contrast:"var(--colorBrandStroke2Contrast)",colorCompoundBrandStroke:"var(--colorCompoundBrandStroke)",colorCompoundBrandStrokeHover:"var(--colorCompoundBrandStrokeHover)",colorCompoundBrandStrokePressed:"var(--colorCompoundBrandStrokePressed)",colorNeutralStrokeDisabled:"var(--colorNeutralStrokeDisabled)",colorNeutralStrokeInvertedDisabled:"var(--colorNeutralStrokeInvertedDisabled)",colorTransparentStroke:"var(--colorTransparentStroke)",colorTransparentStrokeInteractive:"var(--colorTransparentStrokeInteractive)",colorTransparentStrokeDisabled:"var(--colorTransparentStrokeDisabled)",colorNeutralStrokeAlpha:"var(--colorNeutralStrokeAlpha)",colorNeutralStrokeAlpha2:"var(--colorNeutralStrokeAlpha2)",colorStrokeFocus1:"var(--colorStrokeFocus1)",colorStrokeFocus2:"var(--colorStrokeFocus2)",colorNeutralShadowAmbient:"var(--colorNeutralShadowAmbient)",colorNeutralShadowKey:"var(--colorNeutralShadowKey)",colorNeutralShadowAmbientLighter:"var(--colorNeutralShadowAmbientLighter)",colorNeutralShadowKeyLighter:"var(--colorNeutralShadowKeyLighter)",colorNeutralShadowAmbientDarker:"var(--colorNeutralShadowAmbientDarker)",colorNeutralShadowKeyDarker:"var(--colorNeutralShadowKeyDarker)",colorBrandShadowAmbient:"var(--colorBrandShadowAmbient)",colorBrandShadowKey:"var(--colorBrandShadowKey)",colorPaletteRedBackground1:"var(--colorPaletteRedBackground1)",colorPaletteRedBackground2:"var(--colorPaletteRedBackground2)",colorPaletteRedBackground3:"var(--colorPaletteRedBackground3)",colorPaletteRedBorderActive:"var(--colorPaletteRedBorderActive)",colorPaletteRedBorder1:"var(--colorPaletteRedBorder1)",colorPaletteRedBorder2:"var(--colorPaletteRedBorder2)",colorPaletteRedForeground1:"var(--colorPaletteRedForeground1)",colorPaletteRedForeground2:"var(--colorPaletteRedForeground2)",colorPaletteRedForeground3:"var(--colorPaletteRedForeground3)",colorPaletteRedForegroundInverted:"var(--colorPaletteRedForegroundInverted)",colorPaletteGreenBackground1:"var(--colorPaletteGreenBackground1)",colorPaletteGreenBackground2:"var(--colorPaletteGreenBackground2)",colorPaletteGreenBackground3:"var(--colorPaletteGreenBackground3)",colorPaletteGreenBorderActive:"var(--colorPaletteGreenBorderActive)",colorPaletteGreenBorder1:"var(--colorPaletteGreenBorder1)",colorPaletteGreenBorder2:"var(--colorPaletteGreenBorder2)",colorPaletteGreenForeground1:"var(--colorPaletteGreenForeground1)",colorPaletteGreenForeground2:"var(--colorPaletteGreenForeground2)",colorPaletteGreenForeground3:"var(--colorPaletteGreenForeground3)",colorPaletteGreenForegroundInverted:"var(--colorPaletteGreenForegroundInverted)",colorPaletteDarkOrangeBackground1:"var(--colorPaletteDarkOrangeBackground1)",colorPaletteDarkOrangeBackground2:"var(--colorPaletteDarkOrangeBackground2)",colorPaletteDarkOrangeBackground3:"var(--colorPaletteDarkOrangeBackground3)",colorPaletteDarkOrangeBorderActive:"var(--colorPaletteDarkOrangeBorderActive)",colorPaletteDarkOrangeBorder1:"var(--colorPaletteDarkOrangeBorder1)",colorPaletteDarkOrangeBorder2:"var(--colorPaletteDarkOrangeBorder2)",colorPaletteDarkOrangeForeground1:"var(--colorPaletteDarkOrangeForeground1)",colorPaletteDarkOrangeForeground2:"var(--colorPaletteDarkOrangeForeground2)",colorPaletteDarkOrangeForeground3:"var(--colorPaletteDarkOrangeForeground3)",colorPaletteYellowBackground1:"var(--colorPaletteYellowBackground1)",colorPaletteYellowBackground2:"var(--colorPaletteYellowBackground2)",colorPaletteYellowBackground3:"var(--colorPaletteYellowBackground3)",colorPaletteYellowBorderActive:"var(--colorPaletteYellowBorderActive)",colorPaletteYellowBorder1:"var(--colorPaletteYellowBorder1)",colorPaletteYellowBorder2:"var(--colorPaletteYellowBorder2)",colorPaletteYellowForeground1:"var(--colorPaletteYellowForeground1)",colorPaletteYellowForeground2:"var(--colorPaletteYellowForeground2)",colorPaletteYellowForeground3:"var(--colorPaletteYellowForeground3)",colorPaletteYellowForegroundInverted:"var(--colorPaletteYellowForegroundInverted)",colorPaletteBerryBackground1:"var(--colorPaletteBerryBackground1)",colorPaletteBerryBackground2:"var(--colorPaletteBerryBackground2)",colorPaletteBerryBackground3:"var(--colorPaletteBerryBackground3)",colorPaletteBerryBorderActive:"var(--colorPaletteBerryBorderActive)",colorPaletteBerryBorder1:"var(--colorPaletteBerryBorder1)",colorPaletteBerryBorder2:"var(--colorPaletteBerryBorder2)",colorPaletteBerryForeground1:"var(--colorPaletteBerryForeground1)",colorPaletteBerryForeground2:"var(--colorPaletteBerryForeground2)",colorPaletteBerryForeground3:"var(--colorPaletteBerryForeground3)",colorPaletteMarigoldBackground1:"var(--colorPaletteMarigoldBackground1)",colorPaletteMarigoldBackground2:"var(--colorPaletteMarigoldBackground2)",colorPaletteMarigoldBackground3:"var(--colorPaletteMarigoldBackground3)",colorPaletteMarigoldBorderActive:"var(--colorPaletteMarigoldBorderActive)",colorPaletteMarigoldBorder1:"var(--colorPaletteMarigoldBorder1)",colorPaletteMarigoldBorder2:"var(--colorPaletteMarigoldBorder2)",colorPaletteMarigoldForeground1:"var(--colorPaletteMarigoldForeground1)",colorPaletteMarigoldForeground2:"var(--colorPaletteMarigoldForeground2)",colorPaletteMarigoldForeground3:"var(--colorPaletteMarigoldForeground3)",colorPaletteLightGreenBackground1:"var(--colorPaletteLightGreenBackground1)",colorPaletteLightGreenBackground2:"var(--colorPaletteLightGreenBackground2)",colorPaletteLightGreenBackground3:"var(--colorPaletteLightGreenBackground3)",colorPaletteLightGreenBorderActive:"var(--colorPaletteLightGreenBorderActive)",colorPaletteLightGreenBorder1:"var(--colorPaletteLightGreenBorder1)",colorPaletteLightGreenBorder2:"var(--colorPaletteLightGreenBorder2)",colorPaletteLightGreenForeground1:"var(--colorPaletteLightGreenForeground1)",colorPaletteLightGreenForeground2:"var(--colorPaletteLightGreenForeground2)",colorPaletteLightGreenForeground3:"var(--colorPaletteLightGreenForeground3)",colorPaletteAnchorBackground2:"var(--colorPaletteAnchorBackground2)",colorPaletteAnchorBorderActive:"var(--colorPaletteAnchorBorderActive)",colorPaletteAnchorForeground2:"var(--colorPaletteAnchorForeground2)",colorPaletteBeigeBackground2:"var(--colorPaletteBeigeBackground2)",colorPaletteBeigeBorderActive:"var(--colorPaletteBeigeBorderActive)",colorPaletteBeigeForeground2:"var(--colorPaletteBeigeForeground2)",colorPaletteBlueBackground2:"var(--colorPaletteBlueBackground2)",colorPaletteBlueBorderActive:"var(--colorPaletteBlueBorderActive)",colorPaletteBlueForeground2:"var(--colorPaletteBlueForeground2)",colorPaletteBrassBackground2:"var(--colorPaletteBrassBackground2)",colorPaletteBrassBorderActive:"var(--colorPaletteBrassBorderActive)",colorPaletteBrassForeground2:"var(--colorPaletteBrassForeground2)",colorPaletteBrownBackground2:"var(--colorPaletteBrownBackground2)",colorPaletteBrownBorderActive:"var(--colorPaletteBrownBorderActive)",colorPaletteBrownForeground2:"var(--colorPaletteBrownForeground2)",colorPaletteCornflowerBackground2:"var(--colorPaletteCornflowerBackground2)",colorPaletteCornflowerBorderActive:"var(--colorPaletteCornflowerBorderActive)",colorPaletteCornflowerForeground2:"var(--colorPaletteCornflowerForeground2)",colorPaletteCranberryBackground2:"var(--colorPaletteCranberryBackground2)",colorPaletteCranberryBorderActive:"var(--colorPaletteCranberryBorderActive)",colorPaletteCranberryForeground2:"var(--colorPaletteCranberryForeground2)",colorPaletteDarkGreenBackground2:"var(--colorPaletteDarkGreenBackground2)",colorPaletteDarkGreenBorderActive:"var(--colorPaletteDarkGreenBorderActive)",colorPaletteDarkGreenForeground2:"var(--colorPaletteDarkGreenForeground2)",colorPaletteDarkRedBackground2:"var(--colorPaletteDarkRedBackground2)",colorPaletteDarkRedBorderActive:"var(--colorPaletteDarkRedBorderActive)",colorPaletteDarkRedForeground2:"var(--colorPaletteDarkRedForeground2)",colorPaletteForestBackground2:"var(--colorPaletteForestBackground2)",colorPaletteForestBorderActive:"var(--colorPaletteForestBorderActive)",colorPaletteForestForeground2:"var(--colorPaletteForestForeground2)",colorPaletteGoldBackground2:"var(--colorPaletteGoldBackground2)",colorPaletteGoldBorderActive:"var(--colorPaletteGoldBorderActive)",colorPaletteGoldForeground2:"var(--colorPaletteGoldForeground2)",colorPaletteGrapeBackground2:"var(--colorPaletteGrapeBackground2)",colorPaletteGrapeBorderActive:"var(--colorPaletteGrapeBorderActive)",colorPaletteGrapeForeground2:"var(--colorPaletteGrapeForeground2)",colorPaletteLavenderBackground2:"var(--colorPaletteLavenderBackground2)",colorPaletteLavenderBorderActive:"var(--colorPaletteLavenderBorderActive)",colorPaletteLavenderForeground2:"var(--colorPaletteLavenderForeground2)",colorPaletteLightTealBackground2:"var(--colorPaletteLightTealBackground2)",colorPaletteLightTealBorderActive:"var(--colorPaletteLightTealBorderActive)",colorPaletteLightTealForeground2:"var(--colorPaletteLightTealForeground2)",colorPaletteLilacBackground2:"var(--colorPaletteLilacBackground2)",colorPaletteLilacBorderActive:"var(--colorPaletteLilacBorderActive)",colorPaletteLilacForeground2:"var(--colorPaletteLilacForeground2)",colorPaletteMagentaBackground2:"var(--colorPaletteMagentaBackground2)",colorPaletteMagentaBorderActive:"var(--colorPaletteMagentaBorderActive)",colorPaletteMagentaForeground2:"var(--colorPaletteMagentaForeground2)",colorPaletteMinkBackground2:"var(--colorPaletteMinkBackground2)",colorPaletteMinkBorderActive:"var(--colorPaletteMinkBorderActive)",colorPaletteMinkForeground2:"var(--colorPaletteMinkForeground2)",colorPaletteNavyBackground2:"var(--colorPaletteNavyBackground2)",colorPaletteNavyBorderActive:"var(--colorPaletteNavyBorderActive)",colorPaletteNavyForeground2:"var(--colorPaletteNavyForeground2)",colorPalettePeachBackground2:"var(--colorPalettePeachBackground2)",colorPalettePeachBorderActive:"var(--colorPalettePeachBorderActive)",colorPalettePeachForeground2:"var(--colorPalettePeachForeground2)",colorPalettePinkBackground2:"var(--colorPalettePinkBackground2)",colorPalettePinkBorderActive:"var(--colorPalettePinkBorderActive)",colorPalettePinkForeground2:"var(--colorPalettePinkForeground2)",colorPalettePlatinumBackground2:"var(--colorPalettePlatinumBackground2)",colorPalettePlatinumBorderActive:"var(--colorPalettePlatinumBorderActive)",colorPalettePlatinumForeground2:"var(--colorPalettePlatinumForeground2)",colorPalettePlumBackground2:"var(--colorPalettePlumBackground2)",colorPalettePlumBorderActive:"var(--colorPalettePlumBorderActive)",colorPalettePlumForeground2:"var(--colorPalettePlumForeground2)",colorPalettePumpkinBackground2:"var(--colorPalettePumpkinBackground2)",colorPalettePumpkinBorderActive:"var(--colorPalettePumpkinBorderActive)",colorPalettePumpkinForeground2:"var(--colorPalettePumpkinForeground2)",colorPalettePurpleBackground2:"var(--colorPalettePurpleBackground2)",colorPalettePurpleBorderActive:"var(--colorPalettePurpleBorderActive)",colorPalettePurpleForeground2:"var(--colorPalettePurpleForeground2)",colorPaletteRoyalBlueBackground2:"var(--colorPaletteRoyalBlueBackground2)",colorPaletteRoyalBlueBorderActive:"var(--colorPaletteRoyalBlueBorderActive)",colorPaletteRoyalBlueForeground2:"var(--colorPaletteRoyalBlueForeground2)",colorPaletteSeafoamBackground2:"var(--colorPaletteSeafoamBackground2)",colorPaletteSeafoamBorderActive:"var(--colorPaletteSeafoamBorderActive)",colorPaletteSeafoamForeground2:"var(--colorPaletteSeafoamForeground2)",colorPaletteSteelBackground2:"var(--colorPaletteSteelBackground2)",colorPaletteSteelBorderActive:"var(--colorPaletteSteelBorderActive)",colorPaletteSteelForeground2:"var(--colorPaletteSteelForeground2)",colorPaletteTealBackground2:"var(--colorPaletteTealBackground2)",colorPaletteTealBorderActive:"var(--colorPaletteTealBorderActive)",colorPaletteTealForeground2:"var(--colorPaletteTealForeground2)",colorStatusSuccessBackground1:"var(--colorStatusSuccessBackground1)",colorStatusSuccessBackground2:"var(--colorStatusSuccessBackground2)",colorStatusSuccessBackground3:"var(--colorStatusSuccessBackground3)",colorStatusSuccessForeground1:"var(--colorStatusSuccessForeground1)",colorStatusSuccessForeground2:"var(--colorStatusSuccessForeground2)",colorStatusSuccessForeground3:"var(--colorStatusSuccessForeground3)",colorStatusSuccessForegroundInverted:"var(--colorStatusSuccessForegroundInverted)",colorStatusSuccessBorderActive:"var(--colorStatusSuccessBorderActive)",colorStatusSuccessBorder1:"var(--colorStatusSuccessBorder1)",colorStatusSuccessBorder2:"var(--colorStatusSuccessBorder2)",colorStatusWarningBackground1:"var(--colorStatusWarningBackground1)",colorStatusWarningBackground2:"var(--colorStatusWarningBackground2)",colorStatusWarningBackground3:"var(--colorStatusWarningBackground3)",colorStatusWarningForeground1:"var(--colorStatusWarningForeground1)",colorStatusWarningForeground2:"var(--colorStatusWarningForeground2)",colorStatusWarningForeground3:"var(--colorStatusWarningForeground3)",colorStatusWarningForegroundInverted:"var(--colorStatusWarningForegroundInverted)",colorStatusWarningBorderActive:"var(--colorStatusWarningBorderActive)",colorStatusWarningBorder1:"var(--colorStatusWarningBorder1)",colorStatusWarningBorder2:"var(--colorStatusWarningBorder2)",colorStatusDangerBackground1:"var(--colorStatusDangerBackground1)",colorStatusDangerBackground2:"var(--colorStatusDangerBackground2)",colorStatusDangerBackground3:"var(--colorStatusDangerBackground3)",colorStatusDangerForeground1:"var(--colorStatusDangerForeground1)",colorStatusDangerForeground2:"var(--colorStatusDangerForeground2)",colorStatusDangerForeground3:"var(--colorStatusDangerForeground3)",colorStatusDangerForegroundInverted:"var(--colorStatusDangerForegroundInverted)",colorStatusDangerBorderActive:"var(--colorStatusDangerBorderActive)",colorStatusDangerBorder1:"var(--colorStatusDangerBorder1)",colorStatusDangerBorder2:"var(--colorStatusDangerBorder2)",borderRadiusNone:"var(--borderRadiusNone)",borderRadiusSmall:"var(--borderRadiusSmall)",borderRadiusMedium:"var(--borderRadiusMedium)",borderRadiusLarge:"var(--borderRadiusLarge)",borderRadiusXLarge:"var(--borderRadiusXLarge)",borderRadiusCircular:"var(--borderRadiusCircular)",fontFamilyBase:"var(--fontFamilyBase)",fontFamilyMonospace:"var(--fontFamilyMonospace)",fontFamilyNumeric:"var(--fontFamilyNumeric)",fontSizeBase100:"var(--fontSizeBase100)",fontSizeBase200:"var(--fontSizeBase200)",fontSizeBase300:"var(--fontSizeBase300)",fontSizeBase400:"var(--fontSizeBase400)",fontSizeBase500:"var(--fontSizeBase500)",fontSizeBase600:"var(--fontSizeBase600)",fontSizeHero700:"var(--fontSizeHero700)",fontSizeHero800:"var(--fontSizeHero800)",fontSizeHero900:"var(--fontSizeHero900)",fontSizeHero1000:"var(--fontSizeHero1000)",fontWeightRegular:"var(--fontWeightRegular)",fontWeightMedium:"var(--fontWeightMedium)",fontWeightSemibold:"var(--fontWeightSemibold)",fontWeightBold:"var(--fontWeightBold)",lineHeightBase100:"var(--lineHeightBase100)",lineHeightBase200:"var(--lineHeightBase200)",lineHeightBase300:"var(--lineHeightBase300)",lineHeightBase400:"var(--lineHeightBase400)",lineHeightBase500:"var(--lineHeightBase500)",lineHeightBase600:"var(--lineHeightBase600)",lineHeightHero700:"var(--lineHeightHero700)",lineHeightHero800:"var(--lineHeightHero800)",lineHeightHero900:"var(--lineHeightHero900)",lineHeightHero1000:"var(--lineHeightHero1000)",shadow2:"var(--shadow2)",shadow4:"var(--shadow4)",shadow8:"var(--shadow8)",shadow16:"var(--shadow16)",shadow28:"var(--shadow28)",shadow64:"var(--shadow64)",shadow2Brand:"var(--shadow2Brand)",shadow4Brand:"var(--shadow4Brand)",shadow8Brand:"var(--shadow8Brand)",shadow16Brand:"var(--shadow16Brand)",shadow28Brand:"var(--shadow28Brand)",shadow64Brand:"var(--shadow64Brand)",strokeWidthThin:"var(--strokeWidthThin)",strokeWidthThick:"var(--strokeWidthThick)",strokeWidthThicker:"var(--strokeWidthThicker)",strokeWidthThickest:"var(--strokeWidthThickest)",spacingHorizontalNone:"var(--spacingHorizontalNone)",spacingHorizontalXXS:"var(--spacingHorizontalXXS)",spacingHorizontalXS:"var(--spacingHorizontalXS)",spacingHorizontalSNudge:"var(--spacingHorizontalSNudge)",spacingHorizontalS:"var(--spacingHorizontalS)",spacingHorizontalMNudge:"var(--spacingHorizontalMNudge)",spacingHorizontalM:"var(--spacingHorizontalM)",spacingHorizontalL:"var(--spacingHorizontalL)",spacingHorizontalXL:"var(--spacingHorizontalXL)",spacingHorizontalXXL:"var(--spacingHorizontalXXL)",spacingHorizontalXXXL:"var(--spacingHorizontalXXXL)",spacingVerticalNone:"var(--spacingVerticalNone)",spacingVerticalXXS:"var(--spacingVerticalXXS)",spacingVerticalXS:"var(--spacingVerticalXS)",spacingVerticalSNudge:"var(--spacingVerticalSNudge)",spacingVerticalS:"var(--spacingVerticalS)",spacingVerticalMNudge:"var(--spacingVerticalMNudge)",spacingVerticalM:"var(--spacingVerticalM)",spacingVerticalL:"var(--spacingVerticalL)",spacingVerticalXL:"var(--spacingVerticalXL)",spacingVerticalXXL:"var(--spacingVerticalXXL)",spacingVerticalXXXL:"var(--spacingVerticalXXXL)",durationUltraFast:"var(--durationUltraFast)",durationFaster:"var(--durationFaster)",durationFast:"var(--durationFast)",durationNormal:"var(--durationNormal)",durationGentle:"var(--durationGentle)",durationSlow:"var(--durationSlow)",durationSlower:"var(--durationSlower)",durationUltraSlow:"var(--durationUltraSlow)",curveAccelerateMax:"var(--curveAccelerateMax)",curveAccelerateMid:"var(--curveAccelerateMid)",curveAccelerateMin:"var(--curveAccelerateMin)",curveDecelerateMax:"var(--curveDecelerateMax)",curveDecelerateMid:"var(--curveDecelerateMid)",curveDecelerateMin:"var(--curveDecelerateMin)",curveEasyEaseMax:"var(--curveEasyEaseMax)",curveEasyEase:"var(--curveEasyEase)",curveLinear:"var(--curveLinear)"};function ry(t,e,r=""){return{[`shadow2${r}`]:`0 0 2px ${t}, 0 1px 2px ${e}`,[`shadow4${r}`]:`0 0 2px ${t}, 0 2px 4px ${e}`,[`shadow8${r}`]:`0 0 2px ${t}, 0 4px 8px ${e}`,[`shadow16${r}`]:`0 0 2px ${t}, 0 8px 16px ${e}`,[`shadow28${r}`]:`0 0 8px ${t}, 0 14px 28px ${e}`,[`shadow64${r}`]:`0 0 8px ${t}, 0 32px 64px ${e}`}}const $z=t=>{const e=Pz(t);return{...zz,...jz,...Dz,...qz,...Fz,...Uz,...Lz,...Hz,...Oz,...Mz,...e,...Nz,...wf,...ry(e.colorNeutralShadowAmbient,e.colorNeutralShadowKey),...ry(e.colorBrandShadowAmbient,e.colorBrandShadowKey,"Brand")}},Kz={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"},nee=$z(Kz),sC={root:"fui-FluentProvider"},Wz=ix({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);}"]}),Vz=t=>{const e=sc(),r=Wz({dir:t.dir,renderer:e});return t.root.className=R(sC.root,t.themeClassName,r.root,t.root.className),t},Gz=y.useInsertionEffect?y.useInsertionEffect:Jt,Xz=(t,e)=>{if(!t)return;const r=t.createElement("style");return Object.keys(e).forEach(o=>{r.setAttribute(o,e[o])}),t.head.appendChild(r),r},Yz=(t,e)=>{const r=t.sheet;r&&(r.cssRules.length>0&&r.deleteRule(0),r.insertRule(e,0))},Zz=t=>{const{targetDocument:e,theme:r,rendererAttributes:o}=t,n=y.useRef(),i=Bt(sC.root),a=o,s=y.useMemo(()=>T4(`.${i}`,r),[r,i]);return Qz(e,i),Gz(()=>{const l=e?.getElementById(i);return l?n.current=l:(n.current=Xz(e,{...a,id:i}),n.current&&Yz(n.current,s)),()=>{var c;(c=n.current)===null||c===void 0||c.remove()}},[i,e,s,a]),{styleTagId:i,rule:s}};function Qz(t,e){y.useState(()=>{if(!t)return;const r=t.getElementById(e);r&&t.head.append(r)})}const Jz={},e8=(t,e)=>{const r=Ae(),o=t8(),n=gf(),i=y.useContext(zv)||Jz,{applyStylesToPortals:a=!0,customStyleHooks_unstable:s,dir:l=r.dir,targetDocument:c=r.targetDocument,theme:u,overrides_unstable:d={}}=t,f=bh(o,u),h=bh(n,d),g=bh(i,s),m=sc();var w;const{styleTagId:v,rule:p}=Zz({theme:f,targetDocument:c,rendererAttributes:(w=m.styleElementAttributes)!==null&&w!==void 0?w:{}});return{applyStylesToPortals:a,customStyleHooks_unstable:g,dir:l,targetDocument:c,theme:f,overrides_unstable:h,themeClassName:v,components:{root:"div"},root:ee(me("div",{...t,dir:l,ref:Be(e,Uv({targetDocument:c}))}),{elementType:"div"}),serverStyleProps:{cssRule:p,attributes:{...m.styleElementAttributes,id:v}}}};function bh(t,e){return t&&e?{...t,...e}:t||e}function t8(){return y.useContext(mx)}function r8(t){const{applyStylesToPortals:e,customStyleHooks_unstable:r,dir:o,root:n,targetDocument:i,theme:a,themeClassName:s,overrides_unstable:l}=t,c=y.useMemo(()=>({dir:o,targetDocument:i}),[o,i]),[u]=y.useState(()=>({})),d=y.useMemo(()=>({textDirection:o}),[o]);return{customStyleHooks_unstable:r,overrides_unstable:l,provider:c,textDirection:o,iconDirection:d,tooltip:u,theme:a,themeClassName:e?n.className:s}}const o8=y.forwardRef((t,e)=>{const r=e8(t,e);Vz(r);const o=r8(r);return PP(r,o)});o8.displayName="FluentProvider";var lC={exports:{}},cC={};/** @license React v0.20.2 + * scheduler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */(function(t){var e,r,o,n;if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();t.unstable_now=function(){return a.now()-s}}if(typeof window>"u"||typeof MessageChannel!="function"){var l=null,c=null,u=function(){if(l!==null)try{var z=t.unstable_now();l(!0,z),l=null}catch(L){throw setTimeout(u,0),L}};e=function(z){l!==null?setTimeout(e,0,z):(l=z,setTimeout(u,0))},r=function(z,L){c=setTimeout(z,L)},o=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},n=t.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,f=window.clearTimeout;if(typeof console<"u"){var h=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof h!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var g=!1,m=null,w=-1,v=5,p=0;t.unstable_shouldYield=function(){return t.unstable_now()>=p},n=function(){},t.unstable_forceFrameRate=function(z){0>z||125>>1,ce=z[Z];if(ce!==void 0&&0C(ae,G))et!==void 0&&0>C(et,ae)?(z[Z]=et,z[xe]=G,Z=xe):(z[Z]=ae,z[Ne]=G,Z=Ne);else if(et!==void 0&&0>C(et,G))z[Z]=et,z[xe]=G,Z=xe;else break e}}return L}return null}function C(z,L){var G=z.sortIndex-L.sortIndex;return G!==0?G:z.id-L.id}var T=[],E=[],O=1,I=null,H=3,q=!1,N=!1,M=!1;function W(z){for(var L=S(E);L!==null;){if(L.callback===null)_(E);else if(L.startTime<=z)_(E),L.sortIndex=L.expirationTime,x(T,L);else break;L=S(E)}}function B(z){if(M=!1,W(z),!N)if(S(T)!==null)N=!0,e(D);else{var L=S(E);L!==null&&r(B,L.startTime-z)}}function D(z,L){N=!1,M&&(M=!1,o()),q=!0;var G=H;try{for(W(L),I=S(T);I!==null&&(!(I.expirationTime>L)||z&&!t.unstable_shouldYield());){var Z=I.callback;if(typeof Z=="function"){I.callback=null,H=I.priorityLevel;var ce=Z(I.expirationTime<=L);L=t.unstable_now(),typeof ce=="function"?I.callback=ce:I===S(T)&&_(T),W(L)}else _(T);I=S(T)}if(I!==null)var Ne=!0;else{var ae=S(E);ae!==null&&r(B,ae.startTime-L),Ne=!1}return Ne}finally{I=null,H=G,q=!1}}var U=n;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(z){z.callback=null},t.unstable_continueExecution=function(){N||q||(N=!0,e(D))},t.unstable_getCurrentPriorityLevel=function(){return H},t.unstable_getFirstCallbackNode=function(){return S(T)},t.unstable_next=function(z){switch(H){case 1:case 2:case 3:var L=3;break;default:L=H}var G=H;H=L;try{return z()}finally{H=G}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=U,t.unstable_runWithPriority=function(z,L){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var G=H;H=z;try{return L()}finally{H=G}},t.unstable_scheduleCallback=function(z,L,G){var Z=t.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0Z?(z.sortIndex=G,x(E,z),S(T)===null&&z===S(E)&&(M?o():M=!0,r(B,G-Z))):(z.sortIndex=ce,x(T,z),N||q||(N=!0,e(D))),z},t.unstable_wrapCallback=function(z){var L=H;return function(){var G=H;H=L;try{return z.apply(this,arguments)}finally{H=G}}}})(cC);lC.exports=cC;var oy=lC.exports;const n8=t=>r=>{const o=y.useRef(r.value),n=y.useRef(0),i=y.useRef();return i.current||(i.current={value:o,version:n,listeners:[]}),Jt(()=>{o.current=r.value,n.current+=1,oy.unstable_runWithPriority(oy.unstable_NormalPriority,()=>{i.current.listeners.forEach(a=>{a([n.current,r.value])})})},[r.value]),y.createElement(t,{value:i.current},r.children)},hn=t=>{const e=y.createContext({value:{current:t},version:{current:-1},listeners:[]});return e.Provider=n8(e.Provider),delete e.Consumer,e},ct=(t,e)=>{const r=y.useContext(t),{value:{current:o},version:{current:n},listeners:i}=r,a=e(o),[s,l]=y.useReducer((c,u)=>{if(!u)return[o,a];if(u[0]<=n)return zc(c[1],a)?c:[o,a];try{if(zc(c[0],u[1]))return c;const d=e(u[1]);return zc(c[1],d)?c:[u[1],d]}catch{}return[c[0],c[1]]},[o,a]);return zc(s[1],a)||l(void 0),Jt(()=>(i.push(l),()=>{const c=i.indexOf(l);i.splice(c,1)}),[i]),s[1]};function i8(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}const zc=typeof Object.is=="function"?Object.is:i8;function fc(t){const e=y.useContext(t);return e.version?e.version.current!==-1:!1}const a8=27,s8="Shift",To="Enter",Or=" ",$v="Tab",Qa="ArrowDown",kf="ArrowLeft",hc="ArrowRight",Ia="ArrowUp",Kv="End",Wv="Home",uC="PageDown",dC="PageUp",l8="Delete",Po="Escape";function Pi(t,e){const{disabled:r,disabledFocusable:o=!1,["aria-disabled"]:n,onClick:i,onKeyDown:a,onKeyUp:s,...l}=e??{},c=typeof n=="string"?n==="true":n,u=r||o||c,d=Q(g=>{u?(g.preventDefault(),g.stopPropagation()):i?.(g)}),f=Q(g=>{if(a?.(g),g.isDefaultPrevented())return;const m=g.key;if(u&&(m===To||m===Or)){g.preventDefault(),g.stopPropagation();return}if(m===Or){g.preventDefault();return}else m===To&&(g.preventDefault(),g.currentTarget.click())}),h=Q(g=>{if(s?.(g),g.isDefaultPrevented())return;const m=g.key;if(u&&(m===To||m===Or)){g.preventDefault(),g.stopPropagation();return}m===Or&&(g.preventDefault(),g.currentTarget.click())});if(t==="button"||t===void 0)return{...l,disabled:r&&!o,"aria-disabled":o?!0:c,onClick:o?void 0:d,onKeyUp:o?void 0:s,onKeyDown:o?void 0:a};{const g={role:"button",tabIndex:r&&!o?void 0:0,...l,onClick:d,onKeyUp:h,onKeyDown:f,"aria-disabled":r||o||c};return t==="a"&&u&&(g.href=void 0),g}}const c8=t=>we(t.root,{children:[t.initials&&P(t.initials,{}),t.icon&&P(t.icon,{}),t.image&&P(t.image,{}),t.badge&&P(t.badge,{}),t.activeAriaLabelElement]}),u8=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,d8=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,f8=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,h8=/\s+/g,g8=/[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uAC00-\uD7AF\uD7B0-\uD7FF\u3040-\u309F\u30A0-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[\uD840-\uD869][\uDC00-\uDED6]/;function p8(t,e,r){let o="";const n=t.split(" ");return n.length!==0&&(o+=n[0].charAt(0).toUpperCase()),r||(n.length===2?o+=n[1].charAt(0).toUpperCase():n.length===3&&(o+=n[2].charAt(0).toUpperCase())),e&&o.length>1?o.charAt(1)+o.charAt(0):o}function m8(t){return t=t.replace(u8,""),t=t.replace(d8,""),t=t.replace(h8," "),t=t.trim(),t}function v8(t,e,r){return!t||(t=m8(t),g8.test(t)||!r?.allowPhoneInitials&&f8.test(t))?"":p8(t,e,r?.firstInitialOnly)}const b8=(t,e)=>{const{shape:r="circular",size:o="medium",iconPosition:n="before",appearance:i="filled",color:a="brand"}=t;return{shape:r,size:o,iconPosition:n,appearance:i,color:a,components:{root:"div",icon:"span"},root:ee(me("div",{ref:e,...t}),{elementType:"div"}),icon:he(t.icon,{elementType:"span"})}},y8=t=>we(t.root,{children:[t.iconPosition==="before"&&t.icon&&P(t.icon,{}),t.root.children,t.iconPosition==="after"&&t.icon&&P(t.icon,{})]}),w8={tiny:Ab,"extra-small":Ab,small:dP,medium:fP,large:Nb,"extra-large":Nb},k8={tiny:Bb,"extra-small":Bb,small:lP,medium:uP,large:Rb,"extra-large":Rb},S8={tiny:Eb,"extra-small":Eb,small:sP,medium:cP,large:Ib,"extra-large":Ib},_8={tiny:Pb,"extra-small":Pb,small:hP,medium:gP,large:zb,"extra-large":zb},x8={tiny:Mb,"extra-small":Mb,small:pP,medium:mP,large:Ob,"extra-large":Ob},C8={tiny:jb,"extra-small":jb,small:vP,medium:yP,large:Fb,"extra-large":Fb},T8={tiny:Db,"extra-small":Db,small:bP,medium:wP,large:qb,"extra-large":qb},yh={tiny:Ub,"extra-small":Ub,small:_P,medium:xP,large:$b,"extra-large":$b},E8={tiny:Lb,"extra-small":Lb,small:kP,medium:SP,large:Hb,"extra-large":Hb},ny={tiny:Kb,"extra-small":Kb,small:CP,medium:TP,large:Wb,"extra-large":Wb},B8=(t,e,r)=>{switch(t){case"available":return e?k8[r]:S8[r];case"away":return e?yh[r]:w8[r];case"blocked":return _8[r];case"busy":return e?ny[r]:x8[r];case"do-not-disturb":return e?T8[r]:C8[r];case"offline":return e?yh[r]:E8[r];case"out-of-office":return yh[r];case"unknown":return ny[r]}},iy={busy:"busy","out-of-office":"out of office",away:"away",available:"available",offline:"offline","do-not-disturb":"do not disturb",unknown:"unknown",blocked:"blocked"},I8=(t,e)=>{const{size:r="medium",status:o="available",outOfOffice:n=!1}=t,i=iy[o],a=t.outOfOffice&&t.status!=="out-of-office"?` ${iy["out-of-office"]}`:"",s=B8(o,n,r);return{...b8({"aria-label":i+a,role:"img",...t,size:r,icon:he(t.icon,{defaultProps:{children:s?y.createElement(s,null):null},renderByDefault:!0,elementType:"span"})},e),status:o,outOfOffice:n}},ay={root:"fui-PresenceBadge",icon:"fui-PresenceBadge__icon"},R8=t=>t==="busy"||t==="do-not-disturb"||t==="blocked",A8=ge("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;}"]),N8=ge("r11ag4qr",null,[".r11ag4qr{display:flex;margin:-1px;}"]),P8=F({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;}"]}),z8=t=>{const e=A8(),r=N8(),o=P8(),n=R8(t.status);return t.root.className=R(ay.root,e,n&&o.statusBusy,t.status==="away"&&o.statusAway,t.status==="available"&&o.statusAvailable,t.status==="offline"&&o.statusOffline,t.status==="out-of-office"&&o.statusOutOfOffice,t.status==="unknown"&&o.statusUnknown,t.outOfOffice&&o.outOfOffice,t.outOfOffice&&t.status==="available"&&o.outOfOfficeAvailable,t.outOfOffice&&n&&o.outOfOfficeBusy,t.outOfOffice&&(t.status==="out-of-office"||t.status==="away"||t.status==="offline")&&o.statusOutOfOffice,t.outOfOffice&&t.status==="unknown"&&o.outOfOfficeUnknown,t.size==="tiny"&&o.tiny,t.size==="large"&&o.large,t.size==="extra-large"&&o.extraLarge,t.root.className),t.icon&&(t.icon.className=R(ay.icon,r,t.icon.className)),t},Xg=y.forwardRef((t,e)=>{const r=I8(t,e);return z8(r),de("usePresenceBadgeStyles_unstable")(r),y8(r)});Xg.displayName="PresenceBadge";const fC=y.createContext(void 0),M8={};fC.Provider;const O8=()=>{var t;return(t=y.useContext(fC))!==null&&t!==void 0?t:M8},j8={active:"active",inactive:"inactive"},D8=(t,e)=>{const{dir:r}=Ae(),{shape:o,size:n}=O8(),{name:i,size:a=n??32,shape:s=o??"circular",active:l="unset",activeAppearance:c="ring",idForColor:u}=t;let{color:d="neutral"}=t;if(d==="colorful"){var f;d=sy[q8((f=u??i)!==null&&f!==void 0?f:"")%sy.length]}const h=Bt("avatar-"),g=ee(me("span",{role:"img",id:h,...t,ref:e},["name"]),{elementType:"span"}),[m,w]=y.useState(void 0);let v=he(t.image,{defaultProps:{alt:"",role:"presentation","aria-hidden":!0,hidden:m},elementType:"img"});v?.src||(v=void 0),v&&(v.onError=fe(v.onError,()=>w(!0)),v.onLoad=fe(v.onLoad,()=>w(void 0)));let p=he(t.initials,{renderByDefault:!0,defaultProps:{children:v8(i,r==="rtl",{firstInitialOnly:a<=16}),id:h+"__initials"},elementType:"span"});p?.children||(p=void 0);let b;!p&&(!v||m)&&(b=he(t.icon,{renderByDefault:!0,defaultProps:{children:y.createElement(JN,null),"aria-hidden":!0},elementType:"span"}));const k=he(t.badge,{defaultProps:{size:F8(a),id:h+"__badge"},elementType:Xg});let x;if(!g["aria-label"]&&!g["aria-labelledby"]&&(i?(g["aria-label"]=i,k&&(g["aria-labelledby"]=g.id+" "+k.id)):p&&(g["aria-labelledby"]=p.id+(k?" "+k.id:"")),l==="active"||l==="inactive")){const S=j8[l];if(g["aria-labelledby"]){const _=h+"__active";g["aria-labelledby"]+=" "+_,x=y.createElement("span",{hidden:!0,id:_},S)}else g["aria-label"]&&(g["aria-label"]+=" "+S)}return{size:a,shape:s,active:l,activeAppearance:c,activeAriaLabelElement:x,color:d,components:{root:"span",initials:"span",icon:"span",image:"img",badge:Xg},root:g,initials:p,icon:b,image:v,badge:k}},F8=t=>t>=96?"extra-large":t>=64?"large":t>=56?"medium":t>=40?"small":t>=28?"extra-small":"tiny",sy=["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"],q8=t=>{let e=0;for(let r=t.length-1;r>=0;r--){const o=t.charCodeAt(r),n=r%8;e^=(o<>8-n)}return e},Ss={root:"fui-Avatar",image:"fui-Avatar__image",initials:"fui-Avatar__initials",icon:"fui-Avatar__icon",badge:"fui-Avatar__badge"},L8=ge("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;}}"]}),H8=ge("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;}"]),U8=ge("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;-ms-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;-ms-user-select:none;user-select:none;border-radius:inherit;}"]),$8=F({textCaption2Strong:{Be2twd7:"f13mqy1h"},textCaption1Strong:{Be2twd7:"fy9rknc"},textSubtitle2:{Be2twd7:"fod5ikn"},textSubtitle1:{Be2twd7:"f1pp30po"},textTitle3:{Be2twd7:"f1x0m3f5"},squareSmall:{Bbmb7ep:["f1g3puop","fi2rrw2"],Beyfa6y:["fi2rrw2","f1g3puop"],B7oj6ja:["f1rstyi9","f1s4nn1u"],Btl43ni:["f1s4nn1u","f1rstyi9"]},squareMedium:{Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"]},squareLarge:{Bbmb7ep:["f1ldthgs","frrelxk"],Beyfa6y:["frrelxk","f1ldthgs"],B7oj6ja:["fobrfso","ffisxpw"],Btl43ni:["ffisxpw","fobrfso"]},squareXLarge:{Bbmb7ep:["fnivh3a","fc7yr5o"],Beyfa6y:["fc7yr5o","fnivh3a"],B7oj6ja:["f1el4m67","f8yange"],Btl43ni:["f8yange","f1el4m67"]},activeOrInactive:{Bz10aip:"ftfx35i",Bmy1vo4:"fv0atk9",B3o57yi:"f1iry5bo",Bkqvd7p:"f15n41j8",Hwfdqs:"f1onx1g3"},ring:{Ftih45:"f1wl9k8s"},ringBadgeCutout:{f4a502:"fp2gujx"},ringThick:{of393c:"fq1w1vq"},ringThicker:{of393c:"fzg6ace"},ringThickest:{of393c:"f1nu8p71"},shadow:{Bsft5z2:"f13zj6fq"},shadow4:{Be6vj1x:"fcjn15l"},shadow8:{Be6vj1x:"f1tm8t9f"},shadow16:{Be6vj1x:"f1a1aohj"},shadow28:{Be6vj1x:"fond6v5"},inactive:{abs64n:"fp25eh",Bz10aip:"f1clczzi",Bkqvd7p:"f1l3s34x",Bucmhp4:"f1f5ar78",b2tv09:["fqxtap0","fhjukvy"],Bfgortx:"f1qj1nzo",Bnvr3x9:["fhjukvy","fqxtap0"],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);}",".f1g3puop{border-bottom-right-radius:var(--borderRadiusSmall);}",".fi2rrw2{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1rstyi9{border-top-right-radius:var(--borderRadiusSmall);}",".f1s4nn1u{border-top-left-radius:var(--borderRadiusSmall);}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f1ldthgs{border-bottom-right-radius:var(--borderRadiusLarge);}",".frrelxk{border-bottom-left-radius:var(--borderRadiusLarge);}",".fobrfso{border-top-right-radius:var(--borderRadiusLarge);}",".ffisxpw{border-top-left-radius:var(--borderRadiusLarge);}",".fnivh3a{border-bottom-right-radius:var(--borderRadiusXLarge);}",".fc7yr5o{border-bottom-left-radius:var(--borderRadiusXLarge);}",".f1el4m67{border-top-right-radius:var(--borderRadiusXLarge);}",".f8yange{border-top-left-radius:var(--borderRadiusXLarge);}",".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);}",".f1f5ar78::before,.f1f5ar78::after{margin-top:0;}",".fqxtap0::before,.fqxtap0::after{margin-right:0;}",".fhjukvy::before,.fhjukvy::after{margin-left:0;}",".f1qj1nzo::before,.f1qj1nzo::after{margin-bottom:0;}",".fw457kn::before,.fw457kn::after{opacity:0;}",".f1wmllxl::before,.f1wmllxl::after{transition-timing-function:var(--curveDecelerateMin),var(--curveLinear);}",".f1euv43f{position:absolute;}",".f1yab3r1{bottom:0;}",".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f1eugkqs{-webkit-mask-image:radial-gradient(circle at bottom var(--fui-Avatar-badgeRadius) var(--fui-Avatar-badgeAlign) var(--fui-Avatar-badgeRadius), transparent calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) - 0.25px), white calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) + 0.25px));mask-image:radial-gradient(circle at bottom var(--fui-Avatar-badgeRadius) var(--fui-Avatar-badgeAlign) var(--fui-Avatar-badgeRadius), transparent calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) - 0.25px), white calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) + 0.25px));}",".f1tlnv9o{--fui-Avatar-badgeAlign:right;}",".f1y9kyih{--fui-Avatar-badgeAlign:left;}",".f1uwoubl{--fui-Avatar-badgeRadius:3px;}",".fid048z{--fui-Avatar-badgeGap:var(--strokeWidthThin);}",".f13ar0e0{--fui-Avatar-badgeRadius:5px;}",".fwwuruf{--fui-Avatar-badgeRadius:6px;}",".f1af27q5{--fui-Avatar-badgeRadius:8px;}",".f18yy57a{--fui-Avatar-badgeRadius:10px;}",".f924bxt{--fui-Avatar-badgeGap:var(--strokeWidthThick);}",".f2jg042{--fui-Avatar-badgeRadius:14px;}",".f1ugzwwg{font-size:12px;}",".f4ybsrx{font-size:16px;}",".fe5j1ua{font-size:20px;}",".f1rt2boy{font-size:24px;}",".f24l1pt{font-size:28px;}",".ffl51b{font-size:32px;}",".f18m8u13{font-size:48px;}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f1onx1g3{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]}),K8=F({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;}"]}),W8=F({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);}"]}),V8=F({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);}"]}),G8=t=>{const{size:e,shape:r,active:o,activeAppearance:n,color:i}=t,a=L8(),s=H8(),l=U8(),c=$8(),u=K8(),d=W8(),f=V8(),h=[a,e!==32&&u[e]];if(t.badge&&h.push(c.badgeAlign,c[t.badge.size||"medium"]),e<=24?h.push(c.textCaption2Strong):e<=28?h.push(c.textCaption1Strong):e<=40||(e<=56?h.push(c.textSubtitle2):e<=96?h.push(c.textSubtitle1):h.push(c.textTitle3)),r==="square"&&(e<=24?h.push(c.squareSmall):e<=48?h.push(c.squareMedium):e<=72?h.push(c.squareLarge):h.push(c.squareXLarge)),(o==="active"||o==="inactive")&&(h.push(c.activeOrInactive),(n==="ring"||n==="ring-shadow")&&(h.push(c.ring,f[i]),t.badge&&h.push(c.ringBadgeCutout),e<=48?h.push(c.ringThick):e<=64?h.push(c.ringThicker):h.push(c.ringThickest)),(n==="shadow"||n==="ring-shadow")&&(h.push(c.shadow),e<=28?h.push(c.shadow4):e<=48?h.push(c.shadow8):e<=64?h.push(c.shadow16):h.push(c.shadow28)),o==="inactive"&&h.push(c.inactive)),t.root.className=R(Ss.root,...h,t.root.className),t.badge&&(t.badge.className=R(Ss.badge,c.badge,t.badge.className)),t.image&&(t.image.className=R(Ss.image,s,d[i],t.badge&&c.badgeCutout,t.image.className)),t.initials&&(t.initials.className=R(Ss.initials,l,d[i],t.badge&&c.badgeCutout,t.initials.className)),t.icon){let g;e<=16?g=c.icon12:e<=24?g=c.icon16:e<=40?g=c.icon20:e<=48?g=c.icon24:e<=56?g=c.icon28:e<=72?g=c.icon32:g=c.icon48,t.icon.className=R(Ss.icon,l,g,d[i],t.badge&&c.badgeCutout,t.icon.className)}return t},X8=y.forwardRef((t,e)=>{const r=D8(t,e);return G8(r),de("useAvatarStyles_unstable")(r),c8(r)});X8.displayName="Avatar";function Y8(t){const e=t.clientX,r=t.clientY,o=e+1,n=r+1;function i(){return{left:e,top:r,right:o,bottom:n,x:e,y:r,height:1,width:1}}return{getBoundingClientRect:i}}const ly="data-popper-is-intersecting",cy="data-popper-escaped",uy="data-popper-reference-hidden",Z8="data-popper-placement",Yg="fui-positioningend",Q8=["top","right","bottom","left"],zi=Math.min,Ar=Math.max,ud=Math.round,$n=t=>({x:t,y:t}),J8={left:"right",right:"left",bottom:"top",top:"bottom"},e7={start:"end",end:"start"};function Zg(t,e,r){return Ar(t,zi(e,r))}function on(t,e){return typeof t=="function"?t(e):t}function nn(t){return t.split("-")[0]}function ps(t){return t.split("-")[1]}function Vv(t){return t==="x"?"y":"x"}function Gv(t){return t==="y"?"height":"width"}function ms(t){return["top","bottom"].includes(nn(t))?"y":"x"}function Xv(t){return Vv(ms(t))}function t7(t,e,r){r===void 0&&(r=!1);const o=ps(t),n=Xv(t),i=Gv(n);let a=n==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(a=dd(a)),[a,dd(a)]}function r7(t){const e=dd(t);return[Qg(t),e,Qg(e)]}function Qg(t){return t.replace(/start|end/g,e=>e7[e])}function o7(t,e,r){const o=["left","right"],n=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return r?e?n:o:e?o:n;case"left":case"right":return e?i:a;default:return[]}}function n7(t,e,r,o){const n=ps(t);let i=o7(nn(t),r==="start",o);return n&&(i=i.map(a=>a+"-"+n),e&&(i=i.concat(i.map(Qg)))),i}function dd(t){return t.replace(/left|right|bottom|top/g,e=>J8[e])}function i7(t){return{top:0,right:0,bottom:0,left:0,...t}}function hC(t){return typeof t!="number"?i7(t):{top:t,right:t,bottom:t,left:t}}function fd(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function dy(t,e,r){let{reference:o,floating:n}=t;const i=ms(e),a=Xv(e),s=Gv(a),l=nn(e),c=i==="y",u=o.x+o.width/2-n.width/2,d=o.y+o.height/2-n.height/2,f=o[s]/2-n[s]/2;let h;switch(l){case"top":h={x:u,y:o.y-n.height};break;case"bottom":h={x:u,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:d};break;case"left":h={x:o.x-n.width,y:d};break;default:h={x:o.x,y:o.y}}switch(ps(e)){case"start":h[a]-=f*(r&&c?-1:1);break;case"end":h[a]+=f*(r&&c?-1:1);break}return h}const a7=async(t,e,r)=>{const{placement:o="bottom",strategy:n="absolute",middleware:i=[],platform:a}=r,s=i.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:n}),{x:u,y:d}=dy(c,o,l),f=o,h={},g=0;for(let m=0;m({name:"arrow",options:t,async fn(e){const{x:r,y:o,placement:n,rects:i,platform:a,elements:s,middlewareData:l}=e,{element:c,padding:u=0}=on(t,e)||{};if(c==null)return{};const d=hC(u),f={x:r,y:o},h=Xv(n),g=Gv(h),m=await a.getDimensions(c),w=h==="y",v=w?"top":"left",p=w?"bottom":"right",b=w?"clientHeight":"clientWidth",k=i.reference[g]+i.reference[h]-f[h]-i.floating[g],x=f[h]-i.reference[h],S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let _=S?S[b]:0;(!_||!await(a.isElement==null?void 0:a.isElement(S)))&&(_=s.floating[b]||i.floating[g]);const C=k/2-x/2,T=_/2-m[g]/2-1,E=zi(d[v],T),O=zi(d[p],T),I=E,H=_-m[g]-O,q=_/2-m[g]/2+C,N=Zg(I,q,H),M=!l.arrow&&ps(n)!=null&&q!=N&&i.reference[g]/2-(qI<=0)){var T,E;const I=(((T=i.flip)==null?void 0:T.index)||0)+1,H=x[I];if(H)return{data:{index:I,overflows:C},reset:{placement:H}};let q=(E=C.filter(N=>N.overflows[0]<=0).sort((N,M)=>N.overflows[1]-M.overflows[1])[0])==null?void 0:E.placement;if(!q)switch(h){case"bestFit":{var O;const N=(O=C.map(M=>[M.placement,M.overflows.filter(W=>W>0).reduce((W,B)=>W+B,0)]).sort((M,W)=>M[1]-W[1])[0])==null?void 0:O[0];N&&(q=N);break}case"initialPlacement":q=s;break}if(n!==q)return{reset:{placement:q}}}return{}}}};function fy(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function hy(t){return Q8.some(e=>t[e]>=0)}const c7=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:r}=e,{strategy:o="referenceHidden",...n}=on(t,e);switch(o){case"referenceHidden":{const i=await Ja(e,{...n,elementContext:"reference"}),a=fy(i,r.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:hy(a)}}}case"escaped":{const i=await Ja(e,{...n,altBoundary:!0}),a=fy(i,r.floating);return{data:{escapedOffsets:a,escaped:hy(a)}}}default:return{}}}}};async function u7(t,e){const{placement:r,platform:o,elements:n}=t,i=await(o.isRTL==null?void 0:o.isRTL(n.floating)),a=nn(r),s=ps(r),l=ms(r)==="y",c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d=on(e,t);let{mainAxis:f,crossAxis:h,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&typeof g=="number"&&(h=s==="end"?g*-1:g),l?{x:h*u,y:f*c}:{x:f*c,y:h*u}}const d7=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,o;const{x:n,y:i,placement:a,middlewareData:s}=e,l=await u7(e,t);return a===((r=s.offset)==null?void 0:r.placement)&&(o=s.arrow)!=null&&o.alignmentOffset?{}:{x:n+l.x,y:i+l.y,data:{...l,placement:a}}}}},f7=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:o,placement:n}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:w=>{let{x:v,y:p}=w;return{x:v,y:p}}},...l}=on(t,e),c={x:r,y:o},u=await Ja(e,l),d=ms(nn(n)),f=Vv(d);let h=c[f],g=c[d];if(i){const w=f==="y"?"top":"left",v=f==="y"?"bottom":"right",p=h+u[w],b=h-u[v];h=Zg(p,h,b)}if(a){const w=d==="y"?"top":"left",v=d==="y"?"bottom":"right",p=g+u[w],b=g-u[v];g=Zg(p,g,b)}const m=s.fn({...e,[f]:h,[d]:g});return{...m,data:{x:m.x-r,y:m.y-o}}}}},h7=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:r,y:o,placement:n,rects:i,middlewareData:a}=e,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=on(t,e),u={x:r,y:o},d=ms(n),f=Vv(d);let h=u[f],g=u[d];const m=on(s,e),w=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const b=f==="y"?"height":"width",k=i.reference[f]-i.floating[b]+w.mainAxis,x=i.reference[f]+i.reference[b]-w.mainAxis;hx&&(h=x)}if(c){var v,p;const b=f==="y"?"width":"height",k=["top","left"].includes(nn(n)),x=i.reference[d]-i.floating[b]+(k&&((v=a.offset)==null?void 0:v[d])||0)+(k?0:w.crossAxis),S=i.reference[d]+i.reference[b]+(k?0:((p=a.offset)==null?void 0:p[d])||0)-(k?w.crossAxis:0);gS&&(g=S)}return{[f]:h,[d]:g}}}},g7=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:r,rects:o,platform:n,elements:i}=e,{apply:a=()=>{},...s}=on(t,e),l=await Ja(e,s),c=nn(r),u=ps(r),d=ms(r)==="y",{width:f,height:h}=o.floating;let g,m;c==="top"||c==="bottom"?(g=c,m=u===(await(n.isRTL==null?void 0:n.isRTL(i.floating))?"start":"end")?"left":"right"):(m=c,g=u==="end"?"top":"bottom");const w=h-l[g],v=f-l[m],p=!e.middlewareData.shift;let b=w,k=v;if(d){const S=f-l.left-l.right;k=u||p?zi(v,S):S}else{const S=h-l.top-l.bottom;b=u||p?zi(w,S):S}if(p&&!u){const S=Ar(l.left,0),_=Ar(l.right,0),C=Ar(l.top,0),T=Ar(l.bottom,0);d?k=f-2*(S!==0||_!==0?S+_:Ar(l.left,l.right)):b=h-2*(C!==0||T!==0?C+T:Ar(l.top,l.bottom))}await a({...e,availableWidth:k,availableHeight:b});const x=await n.getDimensions(i.floating);return f!==x.width||h!==x.height?{reset:{rects:!0}}:{}}}};function Kn(t){return gC(t)?(t.nodeName||"").toLowerCase():"#document"}function Sr(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Qn(t){var e;return(e=(gC(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function gC(t){return t instanceof Node||t instanceof Sr(t).Node}function an(t){return t instanceof Element||t instanceof Sr(t).Element}function Ro(t){return t instanceof HTMLElement||t instanceof Sr(t).HTMLElement}function gy(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Sr(t).ShadowRoot}function gc(t){const{overflow:e,overflowX:r,overflowY:o,display:n}=qr(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+r)&&!["inline","contents"].includes(n)}function p7(t){return["table","td","th"].includes(Kn(t))}function Yv(t){const e=Zv(),r=qr(t);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(r.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(r.contain||"").includes(o))}function m7(t){let e=es(t);for(;Ro(e)&&!Sf(e);){if(Yv(e))return e;e=es(e)}return null}function Zv(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Sf(t){return["html","body","#document"].includes(Kn(t))}function qr(t){return Sr(t).getComputedStyle(t)}function _f(t){return an(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function es(t){if(Kn(t)==="html")return t;const e=t.assignedSlot||t.parentNode||gy(t)&&t.host||Qn(t);return gy(e)?e.host:e}function pC(t){const e=es(t);return Sf(e)?t.ownerDocument?t.ownerDocument.body:t.body:Ro(e)&&gc(e)?e:pC(e)}function Jg(t,e,r){var o;e===void 0&&(e=[]),r===void 0&&(r=!0);const n=pC(t),i=n===((o=t.ownerDocument)==null?void 0:o.body),a=Sr(n);return i?e.concat(a,a.visualViewport||[],gc(n)?n:[],a.frameElement&&r?Jg(a.frameElement):[]):e.concat(n,Jg(n,[],r))}function mC(t){const e=qr(t);let r=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const n=Ro(t),i=n?t.offsetWidth:r,a=n?t.offsetHeight:o,s=ud(r)!==i||ud(o)!==a;return s&&(r=i,o=a),{width:r,height:o,$:s}}function vC(t){return an(t)?t:t.contextElement}function Ra(t){const e=vC(t);if(!Ro(e))return $n(1);const r=e.getBoundingClientRect(),{width:o,height:n,$:i}=mC(e);let a=(i?ud(r.width):r.width)/o,s=(i?ud(r.height):r.height)/n;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const v7=$n(0);function bC(t){const e=Sr(t);return!Zv()||!e.visualViewport?v7:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function b7(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Sr(t)?!1:e}function Cl(t,e,r,o){e===void 0&&(e=!1),r===void 0&&(r=!1);const n=t.getBoundingClientRect(),i=vC(t);let a=$n(1);e&&(o?an(o)&&(a=Ra(o)):a=Ra(t));const s=b7(i,r,o)?bC(i):$n(0);let l=(n.left+s.x)/a.x,c=(n.top+s.y)/a.y,u=n.width/a.x,d=n.height/a.y;if(i){const f=Sr(i),h=o&&an(o)?Sr(o):o;let g=f.frameElement;for(;g&&o&&h!==f;){const m=Ra(g),w=g.getBoundingClientRect(),v=qr(g),p=w.left+(g.clientLeft+parseFloat(v.paddingLeft))*m.x,b=w.top+(g.clientTop+parseFloat(v.paddingTop))*m.y;l*=m.x,c*=m.y,u*=m.x,d*=m.y,l+=p,c+=b,g=Sr(g).frameElement}}return fd({width:u,height:d,x:l,y:c})}function y7(t){let{rect:e,offsetParent:r,strategy:o}=t;const n=Ro(r),i=Qn(r);if(r===i)return e;let a={scrollLeft:0,scrollTop:0},s=$n(1);const l=$n(0);if((n||!n&&o!=="fixed")&&((Kn(r)!=="body"||gc(i))&&(a=_f(r)),Ro(r))){const c=Cl(r);s=Ra(r),l.x=c.x+r.clientLeft,l.y=c.y+r.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+l.x,y:e.y*s.y-a.scrollTop*s.y+l.y}}function w7(t){return Array.from(t.getClientRects())}function yC(t){return Cl(Qn(t)).left+_f(t).scrollLeft}function k7(t){const e=Qn(t),r=_f(t),o=t.ownerDocument.body,n=Ar(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=Ar(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-r.scrollLeft+yC(t);const s=-r.scrollTop;return qr(o).direction==="rtl"&&(a+=Ar(e.clientWidth,o.clientWidth)-n),{width:n,height:i,x:a,y:s}}function S7(t,e){const r=Sr(t),o=Qn(t),n=r.visualViewport;let i=o.clientWidth,a=o.clientHeight,s=0,l=0;if(n){i=n.width,a=n.height;const c=Zv();(!c||c&&e==="fixed")&&(s=n.offsetLeft,l=n.offsetTop)}return{width:i,height:a,x:s,y:l}}function _7(t,e){const r=Cl(t,!0,e==="fixed"),o=r.top+t.clientTop,n=r.left+t.clientLeft,i=Ro(t)?Ra(t):$n(1),a=t.clientWidth*i.x,s=t.clientHeight*i.y,l=n*i.x,c=o*i.y;return{width:a,height:s,x:l,y:c}}function py(t,e,r){let o;if(e==="viewport")o=S7(t,r);else if(e==="document")o=k7(Qn(t));else if(an(e))o=_7(e,r);else{const n=bC(t);o={...e,x:e.x-n.x,y:e.y-n.y}}return fd(o)}function wC(t,e){const r=es(t);return r===e||!an(r)||Sf(r)?!1:qr(r).position==="fixed"||wC(r,e)}function x7(t,e){const r=e.get(t);if(r)return r;let o=Jg(t,[],!1).filter(s=>an(s)&&Kn(s)!=="body"),n=null;const i=qr(t).position==="fixed";let a=i?es(t):t;for(;an(a)&&!Sf(a);){const s=qr(a),l=Yv(a);!l&&s.position==="fixed"&&(n=null),(i?!l&&!n:!l&&s.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||gc(a)&&!l&&wC(t,a))?o=o.filter(u=>u!==a):n=s,a=es(a)}return e.set(t,o),o}function C7(t){let{element:e,boundary:r,rootBoundary:o,strategy:n}=t;const a=[...r==="clippingAncestors"?x7(e,this._c):[].concat(r),o],s=a[0],l=a.reduce((c,u)=>{const d=py(e,u,n);return c.top=Ar(d.top,c.top),c.right=zi(d.right,c.right),c.bottom=zi(d.bottom,c.bottom),c.left=Ar(d.left,c.left),c},py(e,s,n));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function T7(t){const{width:e,height:r}=mC(t);return{width:e,height:r}}function E7(t,e,r){const o=Ro(e),n=Qn(e),i=r==="fixed",a=Cl(t,!0,i,e);let s={scrollLeft:0,scrollTop:0};const l=$n(0);if(o||!o&&!i)if((Kn(e)!=="body"||gc(n))&&(s=_f(e)),o){const c=Cl(e,!0,i,e);l.x=c.x+e.clientLeft,l.y=c.y+e.clientTop}else n&&(l.x=yC(n));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function my(t,e){return!Ro(t)||qr(t).position==="fixed"?null:e?e(t):t.offsetParent}function kC(t,e){const r=Sr(t);if(!Ro(t))return r;let o=my(t,e);for(;o&&p7(o)&&qr(o).position==="static";)o=my(o,e);return o&&(Kn(o)==="html"||Kn(o)==="body"&&qr(o).position==="static"&&!Yv(o))?r:o||m7(t)||r}const B7=async function(t){let{reference:e,floating:r,strategy:o}=t;const n=this.getOffsetParent||kC,i=this.getDimensions;return{reference:E7(e,await n(r),o),floating:{x:0,y:0,...await i(r)}}};function I7(t){return qr(t).direction==="rtl"}const R7={convertOffsetParentRelativeRectToViewportRelativeRect:y7,getDocumentElement:Qn,getClippingRect:C7,getOffsetParent:kC,getElementRects:B7,getClientRects:w7,getDimensions:T7,getScale:Ra,isElement:an,isRTL:I7},A7=f7,N7=l7,P7=g7,vy=c7,z7=s7,M7=h7,O7=(t,e,r)=>{const o=new Map,n={platform:R7,...r},i={...n.platform,_c:o};return a7(t,e,{...n,platform:i})};function SC(t){const e=t.split("-");return{side:e[0],alignment:e[1]}}const j7=t=>t.nodeName==="HTML"?t:t.parentNode||t.host,D7=t=>{var e;return t.nodeType!==1?{}:((e=t.ownerDocument)===null||e===void 0?void 0:e.defaultView).getComputedStyle(t,null)},xf=t=>{const e=t&&j7(t);if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}const{overflow:r,overflowX:o,overflowY:n}=D7(e);return/(auto|scroll|overlay)/.test(r+n+o)?e:xf(e)},F7=t=>{var e;const r=xf(t);return r?r!==((e=r.ownerDocument)===null||e===void 0?void 0:e.body):!1};function Qv(t,e){if(e==="window")return t?.ownerDocument.documentElement;if(e==="clippingParents")return"clippingAncestors";if(e==="scrollParent"){let r=xf(t);return r.nodeName==="BODY"&&(r=t?.ownerDocument.documentElement),r}return e}function _C(t,e){return typeof t=="number"||typeof t=="object"&&t!==null?wh(t,e):typeof t=="function"?r=>{const o=t(r);return wh(o,e)}:{mainAxis:e}}const wh=(t,e)=>{if(typeof t=="number")return{mainAxis:t+e};var r;return{...t,mainAxis:((r=t.mainAxis)!==null&&r!==void 0?r:0)+e}};function q7(t,e){if(typeof t=="number")return t;const{start:r,end:o,...n}=t,i=n,a=e?"end":"start",s=e?"start":"end";return t[a]&&(i.left=t[a]),t[s]&&(i.right=t[s]),i}const L7=t=>({above:"top",below:"bottom",before:t?"right":"left",after:t?"left":"right"}),H7=()=>({start:"start",end:"end",top:"start",bottom:"end",center:void 0}),U7=(t,e)=>{const r=t==="above"||t==="below",o=e==="top"||e==="bottom";return r&&o||!r&&!o},xC=(t,e,r)=>{const o=U7(e,t)?"center":t,n=e&&L7(r)[e],i=o&&H7()[o];return n&&i?`${n}-${i}`:n},$7=()=>({top:"above",bottom:"below",right:"after",left:"before"}),K7=t=>t==="above"||t==="below"?{start:"start",end:"end"}:{start:"top",end:"bottom"},W7=t=>{const{side:e,alignment:r}=SC(t),o=$7()[e],n=r&&K7(o)[r];return{position:o,alignment:n}},V7={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 pc(t){return t==null?{}:typeof t=="string"?V7[t]:t}function kh(t,e,r){const o=y.useRef(!0),[n]=y.useState(()=>({value:t,callback:e,facade:{get current(){return n.value},set current(i){const a=n.value;if(a!==i){if(n.value=i,r&&o.current)return;n.callback(i,a)}}}}));return Jt(()=>{o.current=!1},[]),n.callback=e,n.facade}function G7(t){let e;return()=>(e||(e=new Promise(r=>{Promise.resolve().then(()=>{e=void 0,r(t())})})),e)}function X7(t){const{arrow:e,middlewareData:r}=t;if(!r.arrow||!e)return;const{x:o,y:n}=r.arrow;Object.assign(e.style,{left:`${o}px`,top:`${n}px`})}function Y7(t){var e,r,o;const{container:n,placement:i,middlewareData:a,strategy:s,lowPPI:l,coordinates:c,useTransform:u=!0}=t;if(!n)return;n.setAttribute(Z8,i),n.removeAttribute(ly),a.intersectionObserver.intersecting&&n.setAttribute(ly,""),n.removeAttribute(cy),!((e=a.hide)===null||e===void 0)&&e.escaped&&n.setAttribute(cy,""),n.removeAttribute(uy),!((r=a.hide)===null||r===void 0)&&r.referenceHidden&&n.setAttribute(uy,"");const d=((o=n.ownerDocument.defaultView)===null||o===void 0?void 0:o.devicePixelRatio)||1,f=Math.round(c.x*d)/d,h=Math.round(c.y*d)/d;if(Object.assign(n.style,{position:s}),u){Object.assign(n.style,{transform:l?`translate(${f}px, ${h}px)`:`translate3d(${f}px, ${h}px, 0)`});return}Object.assign(n.style,{left:`${f}px`,top:`${h}px`})}const Z7=t=>{switch(t){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 Q7(){return{name:"coverTarget",fn:t=>{const{placement:e,rects:r,x:o,y:n}=t,i=SC(e).side,a={x:o,y:n};switch(i){case"bottom":a.y-=r.reference.height;break;case"top":a.y+=r.reference.height;break;case"left":a.x+=r.reference.width;break;case"right":a.x-=r.reference.width;break}return a}}}function J7(t){const{hasScrollableElement:e,flipBoundary:r,container:o,fallbackPositions:n=[],isRtl:i}=t,a=n.reduce((s,l)=>{const{position:c,align:u}=pc(l),d=xC(u,c,i);return d&&s.push(d),s},[]);return N7({...e&&{boundary:"clippingAncestors"},...r&&{altBoundary:!0,boundary:Qv(o,r)},fallbackStrategy:"bestFit",...a.length&&{fallbackPlacements:a}})}function eM(){return{name:"intersectionObserver",fn:async t=>{const e=t.rects.floating,r=await Ja(t,{altBoundary:!0}),o=r.top0,n=r.bottom0;return{data:{intersecting:o||n}}}}}const tM=t=>({name:"resetMaxSize",fn({middlewareData:e,elements:r}){var o;if(!((o=e.resetMaxSize)===null||o===void 0)&&o.maxSizeAlreadyReset)return{};const{applyMaxWidth:n,applyMaxHeight:i}=t;return n&&(r.floating.style.removeProperty("box-sizing"),r.floating.style.removeProperty("max-width"),r.floating.style.removeProperty("width")),i&&(r.floating.style.removeProperty("box-sizing"),r.floating.style.removeProperty("max-height"),r.floating.style.removeProperty("height")),{data:{maxSizeAlreadyReset:!0},reset:{rects:!0}}}});function rM(t,e){const{container:r,overflowBoundary:o}=e;return P7({...o&&{altBoundary:!0,boundary:Qv(r,o)},apply({availableHeight:n,availableWidth:i,elements:a,rects:s}){const l=(d,f,h)=>{if(d&&(a.floating.style.setProperty("box-sizing","border-box"),a.floating.style.setProperty(`max-${f}`,`${h}px`),s.floating[f]>h)){a.floating.style.setProperty(f,`${h}px`);const g=f==="width"?"x":"y";a.floating.style.getPropertyValue(`overflow-${g}`)||a.floating.style.setProperty(`overflow-${g}`,"auto")}},{applyMaxWidth:c,applyMaxHeight:u}=t;l(c,"width",i),l(u,"height",n)}})}function oM(t){return!t||typeof t=="number"||typeof t=="object"?t:({rects:{floating:e,reference:r},placement:o})=>{const{position:n,alignment:i}=W7(o);return t({positionedRect:e,targetRect:r,position:n,alignment:i})}}function nM(t){const e=oM(t);return d7(e)}function iM(t){const{hasScrollableElement:e,disableTether:r,overflowBoundary:o,container:n,overflowBoundaryPadding:i,isRtl:a}=t;return A7({...e&&{boundary:"clippingAncestors"},...r&&{crossAxis:r==="all",limiter:M7({crossAxis:r!=="all",mainAxis:!1})},...i&&{padding:q7(i,a)},...o&&{altBoundary:!0,boundary:Qv(n,o)}})}const by="--fui-match-target-size";function aM(){return{name:"matchTargetSize",fn:async t=>{const{rects:{reference:e,floating:r},elements:{floating:o},middlewareData:{matchTargetSize:{matchTargetSizeAttempt:n=!1}={}}}=t;if(e.width===r.width||n)return{};const{width:i}=e;return o.style.setProperty(by,`${i}px`),o.style.width||(o.style.width=`var(${by})`),{data:{matchTargetSizeAttempt:!0},reset:{rects:!0}}}}}function yy(t){const e=[];let r=t;for(;r;){const o=xf(r);if(t.ownerDocument.body===o){e.push(o);break}e.push(o),r=o}return e}function sM(t,e){return new t.ResizeObserver(e)}function lM(t){let e=!1;const{container:r,target:o,arrow:n,strategy:i,middleware:a,placement:s,useTransform:l=!0}=t,c=r.ownerDocument.defaultView;if(!o||!r||!c)return{updatePosition:()=>{},dispose:()=>{}};const u=sM(c,()=>g());let d=!0;const f=new Set;Object.assign(r.style,{position:"fixed",left:0,top:0,margin:0});const h=()=>{e||(d&&(yy(r).forEach(w=>f.add(w)),Ve(o)&&yy(o).forEach(w=>f.add(w)),f.forEach(w=>{w.addEventListener("scroll",g,{passive:!0})}),u.observe(r),Ve(o)&&u.observe(o),d=!1),Object.assign(r.style,{position:i}),O7(o,r,{placement:s,middleware:a,strategy:i}).then(({x:w,y:v,middlewareData:p,placement:b})=>{e||(X7({arrow:n,middlewareData:p}),Y7({container:r,middlewareData:p,placement:b,coordinates:{x:w,y:v},lowPPI:(c?.devicePixelRatio||1)<=1,strategy:i,useTransform:l}),r.dispatchEvent(new CustomEvent(Yg)))}).catch(w=>{}))},g=G7(()=>h()),m=()=>{e=!0,c&&(c.removeEventListener("scroll",g),c.removeEventListener("resize",g)),f.forEach(w=>{w.removeEventListener("scroll",g)}),f.clear(),u.disconnect()};return c&&(c.addEventListener("scroll",g,{passive:!0}),c.addEventListener("resize",g)),g(),{updatePosition:g,dispose:m}}function Cf(t){const e=y.useRef(null),r=y.useRef(null),o=y.useRef(null),n=y.useRef(null),i=y.useRef(null),{enabled:a=!0}=t,s=cM(t),l=y.useCallback(()=>{e.current&&e.current.dispose(),e.current=null;var g;const m=(g=o.current)!==null&&g!==void 0?g:r.current;a&&Zn()&&m&&n.current&&(e.current=lM({container:n.current,target:m,arrow:i.current,...s(n.current,i.current)}))},[a,s]),c=Q(g=>{o.current=g,l()});y.useImperativeHandle(t.positioningRef,()=>({updatePosition:()=>{var g;return(g=e.current)===null||g===void 0?void 0:g.updatePosition()},setTarget:g=>{t.target,c(g)}}),[t.target,c]),Jt(()=>{var g;c((g=t.target)!==null&&g!==void 0?g:null)},[t.target,c]),Jt(()=>{l()},[l]);const u=kh(null,g=>{r.current!==g&&(r.current=g,l())}),d=Q(()=>{var g;return(g=t.onPositioningEnd)===null||g===void 0?void 0:g.call(t)}),f=kh(null,g=>{if(n.current!==g){var m;(m=n.current)===null||m===void 0||m.removeEventListener(Yg,d),g?.addEventListener(Yg,d),n.current=g,l()}}),h=kh(null,g=>{i.current!==g&&(i.current=g,l())});return{targetRef:u,containerRef:f,arrowRef:h}}function cM(t){const{align:e,arrowPadding:r,autoSize:o,coverTarget:n,flipBoundary:i,offset:a,overflowBoundary:s,pinned:l,position:c,unstable_disableTether:u,positionFixed:d,strategy:f,overflowBoundaryPadding:h,fallbackPositions:g,useTransform:m,matchTargetSize:w}=t,{dir:v,targetDocument:p}=Ae(),b=v==="rtl",k=f??d?"fixed":"absolute",x=Z7(o);return y.useCallback((S,_)=>{const C=F7(S),T=[x&&tM(x),w&&aM(),a&&nM(a),n&&Q7(),!l&&J7({container:S,flipBoundary:i,hasScrollableElement:C,isRtl:b,fallbackPositions:g}),iM({container:S,hasScrollableElement:C,overflowBoundary:s,disableTether:u,overflowBoundaryPadding:h,isRtl:b}),x&&rM(x,{container:S,overflowBoundary:s}),eM(),_&&z7({element:_,padding:r}),vy({strategy:"referenceHidden"}),vy({strategy:"escaped"}),!1].filter(Boolean);return{placement:xC(e,c,b),middleware:T,strategy:k,useTransform:m}},[e,r,x,n,u,i,b,a,s,l,c,k,h,g,m,w,p])}const CC=t=>{const[e,r]=y.useState(t);return[e,n=>{if(n==null){r(void 0);return}let i;n instanceof MouseEvent?i=n:i=n.nativeEvent,i instanceof MouseEvent;const a=Y8(i);r(a)}]},Jv=hn(void 0),uM={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};Jv.Provider;const Mt=t=>ct(Jv,(e=uM)=>t(e)),dM=(t,e)=>{const r=Mt(p=>p.contentRef),o=Mt(p=>p.openOnHover),n=Mt(p=>p.setOpen),i=Mt(p=>p.mountNode),a=Mt(p=>p.arrowRef),s=Mt(p=>p.size),l=Mt(p=>p.withArrow),c=Mt(p=>p.appearance),u=Mt(p=>p.trapFocus),d=Mt(p=>p.inertTrapFocus),f=Mt(p=>p.inline),{modalAttributes:h}=bf({trapFocus:u,legacyTrapFocus:!d,alwaysFocusable:!u}),g={inline:f,appearance:c,withArrow:l,size:s,arrowRef:a,mountNode:i,components:{root:"div"},root:ee(me("div",{ref:Be(e,r),role:u?"dialog":"group","aria-modal":u?!0:void 0,...h,...t}),{elementType:"div"})},{onMouseEnter:m,onMouseLeave:w,onKeyDown:v}=g.root;return g.root.onMouseEnter=p=>{o&&n(p,!0),m?.(p)},g.root.onMouseLeave=p=>{o&&n(p,!1),w?.(p)},g.root.onKeyDown=p=>{var b;p.key==="Escape"&&(!((b=r.current)===null||b===void 0)&&b.contains(p.target))&&(p.preventDefault(),n(p,!1)),v?.(p)},g};function fM(t){return Ve(t)?{element:t}:typeof t=="object"?t===null?{element:null}:t:{}}var TC=()=>y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner.current,hM=()=>!1,wy=new WeakSet;function gM(t,e){const r=TC();y.useEffect(()=>{if(!wy.has(r)){wy.add(r),t();return}return t()},e)}var ky=new WeakSet;function pM(t,e){return y.useMemo(()=>{const r=TC();return ky.has(r)?t():(ky.add(r),null)},e)}function mM(t,e){var r;const o=hM()&&!1,n=o?pM:y.useMemo,i=o?gM:y.useEffect,[a,s]=(r=n(()=>t(),e))!=null?r:[null,()=>null];return i(()=>s,e),a}const vM=F({root:{qhf8xq:"f1euv43f",Bhzewxz:"f15twtuk",oyh7mz:["f1vgc2s3","f1e31b4d"],j35jbq:["f1e31b4d","f1vgc2s3"],Bj3rh1h:"f494woh"}},{d:[".f1euv43f{position:absolute;}",".f15twtuk{top:0;}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".f494woh{z-index:1000000;}"]}),Sy=Vu.useInsertionEffect,bM=t=>{const{targetDocument:e,dir:r}=Ae(),o=SN(),n=Uv(),i=vM(),a=fN(),s=R(a,i.root,t.className),l=o??e?.body,c=mM(()=>{if(l===void 0||t.disabled)return[null,()=>null];const u=l.ownerDocument.createElement("div");return l.appendChild(u),[u,()=>u.remove()]},[l]);return Sy?Sy(()=>{if(!c)return;const u=s.split(" ").filter(Boolean);return c.classList.add(...u),c.setAttribute("dir",r),n.current=c,()=>{c.classList.remove(...u),c.removeAttribute("dir")}},[s,r,c,n]):y.useMemo(()=>{c&&(c.className=s,c.setAttribute("dir",r),n.current=c)},[s,r,c,n]),c},yM=t=>{const{element:e,className:r}=fM(t.mountNode),o=y.useRef(null),n=bM({disabled:!!e,className:r}),i=e??n,a={children:t.children,mountNode:i,virtualParentRootRef:o};return y.useEffect(()=>{if(!i)return;const s=o.current,l=i.contains(s);if(s&&!l)return Tb(i,s),()=>{Tb(i,void 0)}},[o,i]),a};var EC={exports:{}},Er={},BC={exports:{}},IC={};/** + * @license React + * scheduler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */(function(t){function e(B,D){var U=B.length;B.push(D);e:for(;0>>1,L=B[z];if(0>>1;zn(ce,U))Nen(ae,ce)?(B[z]=ae,B[Ne]=U,z=Ne):(B[z]=ce,B[Z]=U,z=Z);else if(Nen(ae,U))B[z]=ae,B[Ne]=U,z=Ne;else break e}}return D}function n(B,D){var U=B.sortIndex-D.sortIndex;return U!==0?U:B.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();t.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,d=null,f=3,h=!1,g=!1,m=!1,w=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,p=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(B){for(var D=r(c);D!==null;){if(D.callback===null)o(c);else if(D.startTime<=B)o(c),D.sortIndex=D.expirationTime,e(l,D);else break;D=r(c)}}function k(B){if(m=!1,b(B),!g)if(r(l)!==null)g=!0,M(x);else{var D=r(c);D!==null&&W(k,D.startTime-B)}}function x(B,D){g=!1,m&&(m=!1,v(C),C=-1),h=!0;var U=f;try{for(b(D),d=r(l);d!==null&&(!(d.expirationTime>D)||B&&!O());){var z=d.callback;if(typeof z=="function"){d.callback=null,f=d.priorityLevel;var L=z(d.expirationTime<=D);D=t.unstable_now(),typeof L=="function"?d.callback=L:d===r(l)&&o(l),b(D)}else o(l);d=r(l)}if(d!==null)var G=!0;else{var Z=r(c);Z!==null&&W(k,Z.startTime-D),G=!1}return G}finally{d=null,f=U,h=!1}}var S=!1,_=null,C=-1,T=5,E=-1;function O(){return!(t.unstable_now()-EB||125z?(B.sortIndex=U,e(c,B),r(l)===null&&B===r(c)&&(m?(v(C),C=-1):m=!0,W(k,U-z))):(B.sortIndex=L,e(l,B),g||h||(g=!0,M(x))),B},t.unstable_shouldYield=O,t.unstable_wrapCallback=function(B){var D=f;return function(){var U=f;f=D;try{return B.apply(this,arguments)}finally{f=U}}}})(IC);BC.exports=IC;var wM=BC.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var RC=y,Cr=wM;function Y(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ep=Object.prototype.hasOwnProperty,kM=/^[: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]*$/,_y={},xy={};function SM(t){return ep.call(xy,t)?!0:ep.call(_y,t)?!1:kM.test(t)?xy[t]=!0:(_y[t]=!0,!1)}function _M(t,e,r,o){if(r!==null&&r.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return o?!1:r!==null?!r.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function xM(t,e,r,o){if(e===null||typeof e>"u"||_M(t,e,r,o))return!0;if(o)return!1;if(r!==null)switch(r.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function nr(t,e,r,o,n,i,a){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=o,this.attributeNamespace=n,this.mustUseProperty=r,this.propertyName=t,this.type=e,this.sanitizeURL=i,this.removeEmptyString=a}var Dt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Dt[t]=new nr(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Dt[e]=new nr(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){Dt[t]=new nr(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Dt[t]=new nr(t,2,!1,t,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(t){Dt[t]=new nr(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){Dt[t]=new nr(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){Dt[t]=new nr(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){Dt[t]=new nr(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){Dt[t]=new nr(t,5,!1,t.toLowerCase(),null,!1,!1)});var e1=/[\-:]([a-z])/g;function t1(t){return t[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(t){var e=t.replace(e1,t1);Dt[e]=new nr(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(e1,t1);Dt[e]=new nr(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(e1,t1);Dt[e]=new nr(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){Dt[t]=new nr(t,1,!1,t.toLowerCase(),null,!1,!1)});Dt.xlinkHref=new nr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){Dt[t]=new nr(t,1,!1,t.toLowerCase(),null,!0,!0)});function r1(t,e,r,o){var n=Dt.hasOwnProperty(e)?Dt[e]:null;(n!==null?n.type!==0:o||!(2s||n[a]!==i[s]){var l=` +`+n[a].replace(" at new "," at ");return t.displayName&&l.includes("")&&(l=l.replace("",t.displayName)),l}while(1<=a&&0<=s);break}}}finally{_h=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?$s(t):""}function CM(t){switch(t.tag){case 5:return $s(t.type);case 16:return $s("Lazy");case 13:return $s("Suspense");case 19:return $s("SuspenseList");case 0:case 2:case 15:return t=xh(t.type,!1),t;case 11:return t=xh(t.type.render,!1),t;case 1:return t=xh(t.type,!0),t;default:return""}}function np(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case ma:return"Fragment";case pa:return"Portal";case tp:return"Profiler";case o1:return"StrictMode";case rp:return"Suspense";case op:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case PC:return(t.displayName||"Context")+".Consumer";case NC:return(t._context.displayName||"Context")+".Provider";case n1:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case i1:return e=t.displayName||null,e!==null?e:np(t.type)||"Memo";case Sn:e=t._payload,t=t._init;try{return np(t(e))}catch{}}return null}function TM(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return np(e);case 8:return e===o1?"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 e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Wn(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function MC(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function EM(t){var e=MC(t)?"checked":"value",r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),o=""+t[e];if(!t.hasOwnProperty(e)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var n=r.get,i=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return n.call(this)},set:function(a){o=""+a,i.call(this,a)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return o},setValue:function(a){o=""+a},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Oc(t){t._valueTracker||(t._valueTracker=EM(t))}function OC(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),o="";return t&&(o=MC(t)?t.checked?"true":"false":t.value),t=o,t!==r?(e.setValue(t),!0):!1}function hd(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function ip(t,e){var r=e.checked;return Je({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??t._wrapperState.initialChecked})}function Ty(t,e){var r=e.defaultValue==null?"":e.defaultValue,o=e.checked!=null?e.checked:e.defaultChecked;r=Wn(e.value!=null?e.value:r),t._wrapperState={initialChecked:o,initialValue:r,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function jC(t,e){e=e.checked,e!=null&&r1(t,"checked",e,!1)}function ap(t,e){jC(t,e);var r=Wn(e.value),o=e.type;if(r!=null)o==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+r):t.value!==""+r&&(t.value=""+r);else if(o==="submit"||o==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?sp(t,e.type,r):e.hasOwnProperty("defaultValue")&&sp(t,e.type,Wn(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function Ey(t,e,r){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var o=e.type;if(!(o!=="submit"&&o!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,r||e===t.value||(t.value=e),t.defaultValue=e}r=t.name,r!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,r!==""&&(t.name=r)}function sp(t,e,r){(e!=="number"||hd(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}var Ks=Array.isArray;function Aa(t,e,r,o){if(t=t.options,e){e={};for(var n=0;n"+e.valueOf().toString()+"",e=jc.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function El(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var tl={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},BM=["Webkit","ms","Moz","O"];Object.keys(tl).forEach(function(t){BM.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),tl[e]=tl[t]})});function LC(t,e,r){return e==null||typeof e=="boolean"||e===""?"":r||typeof e!="number"||e===0||tl.hasOwnProperty(t)&&tl[t]?(""+e).trim():e+"px"}function HC(t,e){t=t.style;for(var r in e)if(e.hasOwnProperty(r)){var o=r.indexOf("--")===0,n=LC(r,e[r],o);r==="float"&&(r="cssFloat"),o?t.setProperty(r,n):t[r]=n}}var IM=Je({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 up(t,e){if(e){if(IM[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(Y(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(Y(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(Y(61))}if(e.style!=null&&typeof e.style!="object")throw Error(Y(62))}}function dp(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){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 fp=null;function a1(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var hp=null,Na=null,Pa=null;function Ry(t){if(t=bc(t)){if(typeof hp!="function")throw Error(Y(280));var e=t.stateNode;e&&(e=Rf(e),hp(t.stateNode,t.type,e))}}function UC(t){Na?Pa?Pa.push(t):Pa=[t]:Na=t}function $C(){if(Na){var t=Na,e=Pa;if(Pa=Na=null,Ry(t),e)for(t=0;t>>=0,t===0?32:31-(qM(t)/LM|0)|0}var Dc=64,Fc=4194304;function Ws(t){switch(t&-t){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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function vd(t,e){var r=t.pendingLanes;if(r===0)return 0;var o=0,n=t.suspendedLanes,i=t.pingedLanes,a=r&268435455;if(a!==0){var s=a&~n;s!==0?o=Ws(s):(i&=a,i!==0&&(o=Ws(i)))}else a=r&~n,a!==0?o=Ws(a):i!==0&&(o=Ws(i));if(o===0)return 0;if(e!==0&&e!==o&&!(e&n)&&(n=o&-o,i=e&-e,n>=i||n===16&&(i&4194240)!==0))return e;if(o&4&&(o|=r&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=o;0r;r++)e.push(t);return e}function mc(t,e,r){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-no(e),t[e]=r}function KM(t,e){var r=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var o=t.eventTimes;for(t=t.expirationTimes;0=ol),Fy=" ",qy=!1;function u2(t,e){switch(t){case"keyup":return yO.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function d2(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var va=!1;function kO(t,e){switch(t){case"compositionend":return d2(e);case"keypress":return e.which!==32?null:(qy=!0,Fy);case"textInput":return t=e.data,t===Fy&&qy?null:t;default:return null}}function SO(t,e){if(va)return t==="compositionend"||!g1&&u2(t,e)?(t=l2(),Eu=d1=In=null,va=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:r,offset:e-t};t=o}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=$y(r)}}function p2(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?p2(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function m2(){for(var t=window,e=hd();e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch{r=!1}if(r)t=e.contentWindow;else break;e=hd(t.document)}return e}function p1(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function AO(t){var e=m2(),r=t.focusedElem,o=t.selectionRange;if(e!==r&&r&&r.ownerDocument&&p2(r.ownerDocument.documentElement,r)){if(o!==null&&p1(r)){if(e=o.start,t=o.end,t===void 0&&(t=e),"selectionStart"in r)r.selectionStart=e,r.selectionEnd=Math.min(t,r.value.length);else if(t=(e=r.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var n=r.textContent.length,i=Math.min(o.start,n);o=o.end===void 0?i:Math.min(o.end,n),!t.extend&&i>o&&(n=o,o=i,i=n),n=Ky(r,i);var a=Ky(r,o);n&&a&&(t.rangeCount!==1||t.anchorNode!==n.node||t.anchorOffset!==n.offset||t.focusNode!==a.node||t.focusOffset!==a.offset)&&(e=e.createRange(),e.setStart(n.node,n.offset),t.removeAllRanges(),i>o?(t.addRange(e),t.extend(a.node,a.offset)):(e.setEnd(a.node,a.offset),t.addRange(e)))}}for(e=[],t=r;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,ba=null,yp=null,il=null,wp=!1;function Wy(t,e,r){var o=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;wp||ba==null||ba!==hd(o)||(o=ba,"selectionStart"in o&&p1(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),il&&Pl(il,o)||(il=o,o=wd(yp,"onSelect"),0ka||(t.current=Tp[ka],Tp[ka]=null,ka--)}function Pe(t,e){ka++,Tp[ka]=t.current,t.current=e}var Vn={},Vt=ei(Vn),ur=ei(!1),Mi=Vn;function rs(t,e){var r=t.type.contextTypes;if(!r)return Vn;var o=t.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===e)return o.__reactInternalMemoizedMaskedChildContext;var n={},i;for(i in r)n[i]=e[i];return o&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=n),n}function dr(t){return t=t.childContextTypes,t!=null}function Sd(){Fe(ur),Fe(Vt)}function Jy(t,e,r){if(Vt.current!==Vn)throw Error(Y(168));Pe(Vt,e),Pe(ur,r)}function C2(t,e,r){var o=t.stateNode;if(e=e.childContextTypes,typeof o.getChildContext!="function")return r;o=o.getChildContext();for(var n in o)if(!(n in e))throw Error(Y(108,TM(t)||"Unknown",n));return Je({},r,o)}function _d(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Vn,Mi=Vt.current,Pe(Vt,t),Pe(ur,ur.current),!0}function ew(t,e,r){var o=t.stateNode;if(!o)throw Error(Y(169));r?(t=C2(t,e,Mi),o.__reactInternalMemoizedMergedChildContext=t,Fe(ur),Fe(Vt),Pe(Vt,t)):Fe(ur),Pe(ur,r)}var Ho=null,Af=!1,Dh=!1;function T2(t){Ho===null?Ho=[t]:Ho.push(t)}function UO(t){Af=!0,T2(t)}function ti(){if(!Dh&&Ho!==null){Dh=!0;var t=0,e=Te;try{var r=Ho;for(Te=1;t>=a,n-=a,Vo=1<<32-no(e)+n|r<C?(T=_,_=null):T=_.sibling;var E=f(v,_,b[C],k);if(E===null){_===null&&(_=T);break}t&&_&&E.alternate===null&&e(v,_),p=i(E,p,C),S===null?x=E:S.sibling=E,S=E,_=T}if(C===b.length)return r(v,_),Ke&&li(v,C),x;if(_===null){for(;CC?(T=_,_=null):T=_.sibling;var O=f(v,_,E.value,k);if(O===null){_===null&&(_=T);break}t&&_&&O.alternate===null&&e(v,_),p=i(O,p,C),S===null?x=O:S.sibling=O,S=O,_=T}if(E.done)return r(v,_),Ke&&li(v,C),x;if(_===null){for(;!E.done;C++,E=b.next())E=d(v,E.value,k),E!==null&&(p=i(E,p,C),S===null?x=E:S.sibling=E,S=E);return Ke&&li(v,C),x}for(_=o(v,_);!E.done;C++,E=b.next())E=h(_,v,C,E.value,k),E!==null&&(t&&E.alternate!==null&&_.delete(E.key===null?C:E.key),p=i(E,p,C),S===null?x=E:S.sibling=E,S=E);return t&&_.forEach(function(I){return e(v,I)}),Ke&&li(v,C),x}function w(v,p,b,k){if(typeof b=="object"&&b!==null&&b.type===ma&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Mc:e:{for(var x=b.key,S=p;S!==null;){if(S.key===x){if(x=b.type,x===ma){if(S.tag===7){r(v,S.sibling),p=n(S,b.props.children),p.return=v,v=p;break e}}else if(S.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Sn&&sw(x)===S.type){r(v,S.sibling),p=n(S,b.props),p.ref=Bs(v,S,b),p.return=v,v=p;break e}r(v,S);break}else e(v,S);S=S.sibling}b.type===ma?(p=xi(b.props.children,v.mode,k,b.key),p.return=v,v=p):(k=Mu(b.type,b.key,b.props,null,v.mode,k),k.ref=Bs(v,p,b),k.return=v,v=k)}return a(v);case pa:e:{for(S=b.key;p!==null;){if(p.key===S)if(p.tag===4&&p.stateNode.containerInfo===b.containerInfo&&p.stateNode.implementation===b.implementation){r(v,p.sibling),p=n(p,b.children||[]),p.return=v,v=p;break e}else{r(v,p);break}else e(v,p);p=p.sibling}p=Wh(b,v.mode,k),p.return=v,v=p}return a(v);case Sn:return S=b._init,w(v,p,S(b._payload),k)}if(Ks(b))return g(v,p,b,k);if(_s(b))return m(v,p,b,k);Wc(v,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,p!==null&&p.tag===6?(r(v,p.sibling),p=n(p,b),p.return=v,v=p):(r(v,p),p=Kh(b,v.mode,k),p.return=v,v=p),a(v)):r(v,p)}return w}var ns=z2(!0),M2=z2(!1),yc={},Bo=ei(yc),jl=ei(yc),Dl=ei(yc);function yi(t){if(t===yc)throw Error(Y(174));return t}function x1(t,e){switch(Pe(Dl,e),Pe(jl,t),Pe(Bo,yc),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:cp(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=cp(e,t)}Fe(Bo),Pe(Bo,e)}function is(){Fe(Bo),Fe(jl),Fe(Dl)}function O2(t){yi(Dl.current);var e=yi(Bo.current),r=cp(e,t.type);e!==r&&(Pe(jl,t),Pe(Bo,r))}function C1(t){jl.current===t&&(Fe(Bo),Fe(jl))}var Ge=ei(0);function Id(t){for(var e=t;e!==null;){if(e.tag===13){var r=e.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Fh=[];function T1(){for(var t=0;tr?r:4,t(!0);var o=qh.transition;qh.transition={};try{t(!1),e()}finally{Te=r,qh.transition=o}}function Q2(){return Hr().memoizedState}function VO(t,e,r){var o=Fn(t);if(r={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null},J2(t))eT(e,r);else if(r=R2(t,e,r,o),r!==null){var n=tr();io(r,t,o,n),tT(r,e,o)}}function GO(t,e,r){var o=Fn(t),n={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null};if(J2(t))eT(e,n);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var a=e.lastRenderedState,s=i(a,r);if(n.hasEagerState=!0,n.eagerState=s,co(s,a)){var l=e.interleaved;l===null?(n.next=n,S1(e)):(n.next=l.next,l.next=n),e.interleaved=n;return}}catch{}finally{}r=R2(t,e,n,o),r!==null&&(n=tr(),io(r,t,o,n),tT(r,e,o))}}function J2(t){var e=t.alternate;return t===Qe||e!==null&&e===Qe}function eT(t,e){al=Rd=!0;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function tT(t,e,r){if(r&4194240){var o=e.lanes;o&=t.pendingLanes,r|=o,e.lanes=r,l1(t,r)}}var Ad={readContext:Lr,useCallback:Ft,useContext:Ft,useEffect:Ft,useImperativeHandle:Ft,useInsertionEffect:Ft,useLayoutEffect:Ft,useMemo:Ft,useReducer:Ft,useRef:Ft,useState:Ft,useDebugValue:Ft,useDeferredValue:Ft,useTransition:Ft,useMutableSource:Ft,useSyncExternalStore:Ft,useId:Ft,unstable_isNewReconciler:!1},XO={readContext:Lr,useCallback:function(t,e){return vo().memoizedState=[t,e===void 0?null:e],t},useContext:Lr,useEffect:cw,useImperativeHandle:function(t,e,r){return r=r!=null?r.concat([t]):null,Au(4194308,4,V2.bind(null,e,t),r)},useLayoutEffect:function(t,e){return Au(4194308,4,t,e)},useInsertionEffect:function(t,e){return Au(4,2,t,e)},useMemo:function(t,e){var r=vo();return e=e===void 0?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var o=vo();return e=r!==void 0?r(e):e,o.memoizedState=o.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},o.queue=t,t=t.dispatch=VO.bind(null,Qe,t),[o.memoizedState,t]},useRef:function(t){var e=vo();return t={current:t},e.memoizedState=t},useState:lw,useDebugValue:A1,useDeferredValue:function(t){return vo().memoizedState=t},useTransition:function(){var t=lw(!1),e=t[0];return t=WO.bind(null,t[1]),vo().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,r){var o=Qe,n=vo();if(Ke){if(r===void 0)throw Error(Y(407));r=r()}else{if(r=e(),At===null)throw Error(Y(349));ji&30||F2(o,e,r)}n.memoizedState=r;var i={value:r,getSnapshot:e};return n.queue=i,cw(L2.bind(null,o,i,t),[t]),o.flags|=2048,Ll(9,q2.bind(null,o,i,r,e),void 0,null),r},useId:function(){var t=vo(),e=At.identifierPrefix;if(Ke){var r=Go,o=Vo;r=(o&~(1<<32-no(o)-1)).toString(32)+r,e=":"+e+"R"+r,r=Fl++,0<\/script>",t=t.removeChild(t.firstChild)):typeof o.is=="string"?t=a.createElement(r,{is:o.is}):(t=a.createElement(r),r==="select"&&(a=t,o.multiple?a.multiple=!0:o.size&&(a.size=o.size))):t=a.createElementNS(t,r),t[So]=e,t[Ol]=o,uT(t,e,!1,!1),e.stateNode=t;e:{switch(a=dp(r,o),r){case"dialog":Me("cancel",t),Me("close",t),n=o;break;case"iframe":case"object":case"embed":Me("load",t),n=o;break;case"video":case"audio":for(n=0;nss&&(e.flags|=128,o=!0,Is(i,!1),e.lanes=4194304)}else{if(!o)if(t=Id(a),t!==null){if(e.flags|=128,o=!0,r=t.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),Is(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Ke)return qt(e),null}else 2*ut()-i.renderingStartTime>ss&&r!==1073741824&&(e.flags|=128,o=!0,Is(i,!1),e.lanes=4194304);i.isBackwards?(a.sibling=e.child,e.child=a):(r=i.last,r!==null?r.sibling=a:e.child=a,i.last=a)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=ut(),e.sibling=null,r=Ge.current,Pe(Ge,o?r&1|2:r&1),e):(qt(e),null);case 22:case 23:return j1(),o=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==o&&(e.flags|=8192),o&&e.mode&1?vr&1073741824&&(qt(e),e.subtreeFlags&6&&(e.flags|=8192)):qt(e),null;case 24:return null;case 25:return null}throw Error(Y(156,e.tag))}function oj(t,e){switch(v1(e),e.tag){case 1:return dr(e.type)&&Sd(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return is(),Fe(ur),Fe(Vt),T1(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return C1(e),null;case 13:if(Fe(Ge),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(Y(340));os()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Fe(Ge),null;case 4:return is(),null;case 10:return k1(e.type._context),null;case 22:case 23:return j1(),null;case 24:return null;default:return null}}var Gc=!1,Ut=!1,nj=typeof WeakSet=="function"?WeakSet:Set,ne=null;function Ca(t,e){var r=t.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(o){at(t,e,o)}else r.current=null}function Dp(t,e,r){try{r()}catch(o){at(t,e,o)}}var bw=!1;function ij(t,e){if(kp=bd,t=m2(),p1(t)){if("selectionStart"in t)var r={start:t.selectionStart,end:t.selectionEnd};else e:{r=(r=t.ownerDocument)&&r.defaultView||window;var o=r.getSelection&&r.getSelection();if(o&&o.rangeCount!==0){r=o.anchorNode;var n=o.anchorOffset,i=o.focusNode;o=o.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,s=-1,l=-1,c=0,u=0,d=t,f=null;t:for(;;){for(var h;d!==r||n!==0&&d.nodeType!==3||(s=a+n),d!==i||o!==0&&d.nodeType!==3||(l=a+o),d.nodeType===3&&(a+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===t)break t;if(f===r&&++c===n&&(s=a),f===i&&++u===o&&(l=a),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Sp={focusedElem:t,selectionRange:r},bd=!1,ne=e;ne!==null;)if(e=ne,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ne=t;else for(;ne!==null;){e=ne;try{var g=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var m=g.memoizedProps,w=g.memoizedState,v=e.stateNode,p=v.getSnapshotBeforeUpdate(e.elementType===e.type?m:Vr(e.type,m),w);v.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var b=e.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Y(163))}}catch(k){at(e,e.return,k)}if(t=e.sibling,t!==null){t.return=e.return,ne=t;break}ne=e.return}return g=bw,bw=!1,g}function sl(t,e,r){var o=e.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var n=o=o.next;do{if((n.tag&t)===t){var i=n.destroy;n.destroy=void 0,i!==void 0&&Dp(e,r,i)}n=n.next}while(n!==o)}}function zf(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var r=e=e.next;do{if((r.tag&t)===t){var o=r.create;r.destroy=o()}r=r.next}while(r!==e)}}function Fp(t){var e=t.ref;if(e!==null){var r=t.stateNode;switch(t.tag){case 5:t=r;break;default:t=r}typeof e=="function"?e(t):e.current=t}}function hT(t){var e=t.alternate;e!==null&&(t.alternate=null,hT(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[So],delete e[Ol],delete e[Cp],delete e[LO],delete e[HO])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function gT(t){return t.tag===5||t.tag===3||t.tag===4}function yw(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||gT(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function qp(t,e,r){var o=t.tag;if(o===5||o===6)t=t.stateNode,e?r.nodeType===8?r.parentNode.insertBefore(t,e):r.insertBefore(t,e):(r.nodeType===8?(e=r.parentNode,e.insertBefore(t,r)):(e=r,e.appendChild(t)),r=r._reactRootContainer,r!=null||e.onclick!==null||(e.onclick=kd));else if(o!==4&&(t=t.child,t!==null))for(qp(t,e,r),t=t.sibling;t!==null;)qp(t,e,r),t=t.sibling}function Lp(t,e,r){var o=t.tag;if(o===5||o===6)t=t.stateNode,e?r.insertBefore(t,e):r.appendChild(t);else if(o!==4&&(t=t.child,t!==null))for(Lp(t,e,r),t=t.sibling;t!==null;)Lp(t,e,r),t=t.sibling}var zt=null,Xr=!1;function yn(t,e,r){for(r=r.child;r!==null;)pT(t,e,r),r=r.sibling}function pT(t,e,r){if(Eo&&typeof Eo.onCommitFiberUnmount=="function")try{Eo.onCommitFiberUnmount(Tf,r)}catch{}switch(r.tag){case 5:Ut||Ca(r,e);case 6:var o=zt,n=Xr;zt=null,yn(t,e,r),zt=o,Xr=n,zt!==null&&(Xr?(t=zt,r=r.stateNode,t.nodeType===8?t.parentNode.removeChild(r):t.removeChild(r)):zt.removeChild(r.stateNode));break;case 18:zt!==null&&(Xr?(t=zt,r=r.stateNode,t.nodeType===8?jh(t.parentNode,r):t.nodeType===1&&jh(t,r),Al(t)):jh(zt,r.stateNode));break;case 4:o=zt,n=Xr,zt=r.stateNode.containerInfo,Xr=!0,yn(t,e,r),zt=o,Xr=n;break;case 0:case 11:case 14:case 15:if(!Ut&&(o=r.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){n=o=o.next;do{var i=n,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Dp(r,e,a),n=n.next}while(n!==o)}yn(t,e,r);break;case 1:if(!Ut&&(Ca(r,e),o=r.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=r.memoizedProps,o.state=r.memoizedState,o.componentWillUnmount()}catch(s){at(r,e,s)}yn(t,e,r);break;case 21:yn(t,e,r);break;case 22:r.mode&1?(Ut=(o=Ut)||r.memoizedState!==null,yn(t,e,r),Ut=o):yn(t,e,r);break;default:yn(t,e,r)}}function ww(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var r=t.stateNode;r===null&&(r=t.stateNode=new nj),e.forEach(function(o){var n=gj.bind(null,t,o);r.has(o)||(r.add(o),o.then(n,n))})}}function Ur(t,e){var r=e.deletions;if(r!==null)for(var o=0;on&&(n=a),o&=~i}if(o=n,o=ut()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*sj(o/1960))-o,10t?16:t,Rn===null)var o=!1;else{if(t=Rn,Rn=null,zd=0,_e&6)throw Error(Y(331));var n=_e;for(_e|=4,ne=t.current;ne!==null;){var i=ne,a=i.child;if(ne.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lut()-M1?_i(t,0):z1|=r),fr(t,e)}function _T(t,e){e===0&&(t.mode&1?(e=Fc,Fc<<=1,!(Fc&130023424)&&(Fc=4194304)):e=1);var r=tr();t=cn(t,e),t!==null&&(mc(t,e,r),fr(t,r))}function hj(t){var e=t.memoizedState,r=0;e!==null&&(r=e.retryLane),_T(t,r)}function gj(t,e){var r=0;switch(t.tag){case 13:var o=t.stateNode,n=t.memoizedState;n!==null&&(r=n.retryLane);break;case 19:o=t.stateNode;break;default:throw Error(Y(314))}o!==null&&o.delete(e),_T(t,r)}var xT;xT=function(t,e,r){if(t!==null)if(t.memoizedProps!==e.pendingProps||ur.current)cr=!0;else{if(!(t.lanes&r)&&!(e.flags&128))return cr=!1,tj(t,e,r);cr=!!(t.flags&131072)}else cr=!1,Ke&&e.flags&1048576&&E2(e,Cd,e.index);switch(e.lanes=0,e.tag){case 2:var o=e.type;Nu(t,e),t=e.pendingProps;var n=rs(e,Vt.current);Ma(e,r),n=B1(null,e,o,t,n,r);var i=I1();return e.flags|=1,typeof n=="object"&&n!==null&&typeof n.render=="function"&&n.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,dr(o)?(i=!0,_d(e)):i=!1,e.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,_1(e),n.updater=Nf,e.stateNode=n,n._reactInternals=e,Ap(e,o,t,r),e=zp(null,e,o,!0,i,r)):(e.tag=0,Ke&&i&&m1(e),Gt(null,e,n,r),e=e.child),e;case 16:o=e.elementType;e:{switch(Nu(t,e),t=e.pendingProps,n=o._init,o=n(o._payload),e.type=o,n=e.tag=mj(o),t=Vr(o,t),n){case 0:e=Pp(null,e,o,t,r);break e;case 1:e=pw(null,e,o,t,r);break e;case 11:e=hw(null,e,o,t,r);break e;case 14:e=gw(null,e,o,Vr(o.type,t),r);break e}throw Error(Y(306,o,""))}return e;case 0:return o=e.type,n=e.pendingProps,n=e.elementType===o?n:Vr(o,n),Pp(t,e,o,n,r);case 1:return o=e.type,n=e.pendingProps,n=e.elementType===o?n:Vr(o,n),pw(t,e,o,n,r);case 3:e:{if(sT(e),t===null)throw Error(Y(387));o=e.pendingProps,i=e.memoizedState,n=i.element,A2(t,e),Bd(e,o,null,r);var a=e.memoizedState;if(o=a.element,i.isDehydrated)if(i={element:o,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){n=as(Error(Y(423)),e),e=mw(t,e,o,r,n);break e}else if(o!==n){n=as(Error(Y(424)),e),e=mw(t,e,o,r,n);break e}else for(yr=On(e.stateNode.containerInfo.firstChild),_r=e,Ke=!0,Zr=null,r=M2(e,null,o,r),e.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(os(),o===n){e=un(t,e,r);break e}Gt(t,e,o,r)}e=e.child}return e;case 5:return O2(e),t===null&&Bp(e),o=e.type,n=e.pendingProps,i=t!==null?t.memoizedProps:null,a=n.children,_p(o,n)?a=null:i!==null&&_p(o,i)&&(e.flags|=32),aT(t,e),Gt(t,e,a,r),e.child;case 6:return t===null&&Bp(e),null;case 13:return lT(t,e,r);case 4:return x1(e,e.stateNode.containerInfo),o=e.pendingProps,t===null?e.child=ns(e,null,o,r):Gt(t,e,o,r),e.child;case 11:return o=e.type,n=e.pendingProps,n=e.elementType===o?n:Vr(o,n),hw(t,e,o,n,r);case 7:return Gt(t,e,e.pendingProps,r),e.child;case 8:return Gt(t,e,e.pendingProps.children,r),e.child;case 12:return Gt(t,e,e.pendingProps.children,r),e.child;case 10:e:{if(o=e.type._context,n=e.pendingProps,i=e.memoizedProps,a=n.value,Pe(Td,o._currentValue),o._currentValue=a,i!==null)if(co(i.value,a)){if(i.children===n.children&&!ur.current){e=un(t,e,r);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===o){if(i.tag===1){l=Qo(-1,r&-r),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=r,l=i.alternate,l!==null&&(l.lanes|=r),Ip(i.return,r,e),s.lanes|=r;break}l=l.next}}else if(i.tag===10)a=i.type===e.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(Y(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),Ip(a,r,e),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===e){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Gt(t,e,n.children,r),e=e.child}return e;case 9:return n=e.type,o=e.pendingProps.children,Ma(e,r),n=Lr(n),o=o(n),e.flags|=1,Gt(t,e,o,r),e.child;case 14:return o=e.type,n=Vr(o,e.pendingProps),n=Vr(o.type,n),gw(t,e,o,n,r);case 15:return nT(t,e,e.type,e.pendingProps,r);case 17:return o=e.type,n=e.pendingProps,n=e.elementType===o?n:Vr(o,n),Nu(t,e),e.tag=1,dr(o)?(t=!0,_d(e)):t=!1,Ma(e,r),P2(e,o,n),Ap(e,o,n,r),zp(null,e,o,!0,t,r);case 19:return cT(t,e,r);case 22:return iT(t,e,r)}throw Error(Y(156,e.tag))};function CT(t,e){return ZC(t,e)}function pj(t,e,r,o){this.tag=t,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function jr(t,e,r,o){return new pj(t,e,r,o)}function F1(t){return t=t.prototype,!(!t||!t.isReactComponent)}function mj(t){if(typeof t=="function")return F1(t)?1:0;if(t!=null){if(t=t.$$typeof,t===n1)return 11;if(t===i1)return 14}return 2}function qn(t,e){var r=t.alternate;return r===null?(r=jr(t.tag,e,t.key,t.mode),r.elementType=t.elementType,r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=e,r.type=t.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=t.flags&14680064,r.childLanes=t.childLanes,r.lanes=t.lanes,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,e=t.dependencies,r.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r}function Mu(t,e,r,o,n,i){var a=2;if(o=t,typeof t=="function")F1(t)&&(a=1);else if(typeof t=="string")a=5;else e:switch(t){case ma:return xi(r.children,n,i,e);case o1:a=8,n|=8;break;case tp:return t=jr(12,r,e,n|2),t.elementType=tp,t.lanes=i,t;case rp:return t=jr(13,r,e,n),t.elementType=rp,t.lanes=i,t;case op:return t=jr(19,r,e,n),t.elementType=op,t.lanes=i,t;case zC:return Of(r,n,i,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case NC:a=10;break e;case PC:a=9;break e;case n1:a=11;break e;case i1:a=14;break e;case Sn:a=16,o=null;break e}throw Error(Y(130,t==null?t:typeof t,""))}return e=jr(a,r,e,n),e.elementType=t,e.type=o,e.lanes=i,e}function xi(t,e,r,o){return t=jr(7,t,o,e),t.lanes=r,t}function Of(t,e,r,o){return t=jr(22,t,o,e),t.elementType=zC,t.lanes=r,t.stateNode={isHidden:!1},t}function Kh(t,e,r){return t=jr(6,t,null,e),t.lanes=r,t}function Wh(t,e,r){return e=jr(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function vj(t,e,r,o,n){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Th(0),this.expirationTimes=Th(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Th(0),this.identifierPrefix=o,this.onRecoverableError=n,this.mutableSourceEagerHydrationData=null}function q1(t,e,r,o,n,i,a,s,l){return t=new vj(t,e,r,s,l),e===1?(e=1,i===!0&&(e|=8)):e=0,i=jr(3,null,null,e),t.current=i,i.stateNode=t,i.memoizedState={element:o,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},_1(i),t}function bj(t,e,r){var o=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(IT)}catch(t){console.error(t)}}IT(),EC.exports=Er;var $1=EC.exports;const Zc=Ao($1),_j=t=>y.createElement("span",{hidden:!0,ref:t.virtualParentRootRef},t.mountNode&&$1.createPortal(t.children,t.mountNode)),Xi=t=>{const e=yM(t);return _j(e)};Xi.displayName="Portal";const xj=t=>{const e=we(t.root,{children:[t.withArrow&&P("div",{ref:t.arrowRef,className:t.arrowClassName}),t.root.children]});return t.inline?e:P(Xi,{mountNode:t.mountNode,children:e})},Cj={root:"fui-PopoverSurface"},Tj={small:6,medium:8,large:8},Ej=F({root:{sj55zd:"f19n0e5",De3pzq:"fxugw4r",E5pizo:"f1hg901r",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B4j52fo:"f5ogflp",Bekrc4i:["f1hqa2wf","finvdd3"],Bn0qgzm:"f1f09k3d",ibv6hh:["finvdd3","f1hqa2wf"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B93otf3:"f18k4bn6",vin17d:"fo1kyvf",Ezkn3b:"fetxo7e",nyiy2g:"f8x1vz1",swvrvq:"f8g0anz",Bkovbt3:"fezwn9i",hgjdhn:"fz5efge",fsy9dk:"f1ydixl4",B3ogreh:"f8dgqj5",jv49x5:"fnyfnr8",Bk7o48c:"fgw77r4",Bv12yb3:"ftje0s4",z0t1cu:"fi19xcv",Bks05zx:"f1mzajhk",Bvtglag:"fjp4h9y"},inline:{Bj3rh1h:"f19g0ac"},inverted:{De3pzq:"fg3r6xk",sj55zd:"fonrgv7"},brand:{De3pzq:"ffp7eso",sj55zd:"f1phragk"},smallPadding:{z8tnut:"f1kcqot9",z189sj:["f11qrl6u","fjlbh76"],Byoj8tv:"fpe6lb7",uwmqm3:["fjlbh76","f11qrl6u"]},mediumPadding:{z8tnut:"fqag9an",z189sj:["f1gbmcue","f1rh9g5y"],Byoj8tv:"fp67ikv",uwmqm3:["f1rh9g5y","f1gbmcue"]},largePadding:{z8tnut:"fc7z3ec",z189sj:["fat0sn4","fekwl8i"],Byoj8tv:"fe2my4m",uwmqm3:["fekwl8i","fat0sn4"]},smallArrow:{a9b677:"f1ekdpwm",Bqenvij:"f83vc9z"},mediumLargeArrow:{a9b677:"f1kmc0fn",Bqenvij:"fb6lvc5"},arrow:{qhf8xq:"f1euv43f",De3pzq:"f1u2r49w",Bcdw1i0:"fd7fpy0",Bj3rh1h:"f1bsuimh",Ftih45:"f1wl9k8s",B1puzpu:"f1wkw4r9",Brfgrao:"f1j7ml58",Bcvre1j:"fyl8oag",Ccq8qp:"frdoeuz",Baz25je:"fb81m9q",cmx5o7:"f1ljr5q2",B4f6apu:"fyfemzf",m598lv:"focyt6c",Bk5zm6e:"fnhxbxj",y0oebl:"fdw6hkg",qa3bma:"f11yjt3y",Bqjgrrk:"f1172wan",Budzafs:["f9e5op9","f112wvtl"],Hv9wc6:"f16cagkn",hl6cv3:"f1773hnp",c8svkw:"fw7o64x",yayu3t:"f1v7783n",nr3p0k:"f1f0d6v",rhl9o9:"fh2hsk5",wiz9v7:"f1gj3y7g",B6q6orb:"f11yvu4",ndpsmx:"f17lejdj"}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1hg901r{box-shadow:var(--shadow16);}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f5ogflp{border-top-width:1px;}",".f1hqa2wf{border-right-width:1px;}",".finvdd3{border-left-width:1px;}",".f1f09k3d{border-bottom-width:1px;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f18k4bn6{animation-composition:accumulate;}",".fo1kyvf{animation-duration:var(--durationSlower);}",".fetxo7e{animation-timing-function:var(--curveDecelerateMid);}",".f8x1vz1{--fui-positioning-slide-distance-x:0px;}",".f8g0anz{--fui-positioning-slide-distance-y:10px;}",".fezwn9i[data-popper-placement^=right]{--fui-positioning-slide-distance-x:-10px;}",".fz5efge[data-popper-placement^=right]{--fui-positioning-slide-distance-y:0px;}",".f1ydixl4[data-popper-placement^=bottom]{--fui-positioning-slide-distance-x:0px;}",".f8dgqj5[data-popper-placement^=bottom]{--fui-positioning-slide-distance-y:-10px;}",".fnyfnr8[data-popper-placement^=left]{--fui-positioning-slide-distance-x:10px;}",".fgw77r4[data-popper-placement^=left]{--fui-positioning-slide-distance-y:0px;}",".ftje0s4{animation-name:f5j8bii,f79suad;}",".f19g0ac{z-index:1;}",".fg3r6xk{background-color:var(--colorNeutralBackgroundStatic);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".f1kcqot9{padding-top:12px;}",".f11qrl6u{padding-right:12px;}",".fjlbh76{padding-left:12px;}",".fpe6lb7{padding-bottom:12px;}",".fqag9an{padding-top:16px;}",".f1gbmcue{padding-right:16px;}",".f1rh9g5y{padding-left:16px;}",".fp67ikv{padding-bottom:16px;}",".fc7z3ec{padding-top:20px;}",".fat0sn4{padding-right:20px;}",".fekwl8i{padding-left:20px;}",".fe2my4m{padding-bottom:20px;}",".f1ekdpwm{width:8.484px;}",".f83vc9z{height:8.484px;}",".f1kmc0fn{width:11.312px;}",".fb6lvc5{height:11.312px;}",".f1euv43f{position:absolute;}",".f1u2r49w{background-color:inherit;}",".fd7fpy0{visibility:hidden;}",".f1bsuimh{z-index:-1;}",'.f1wl9k8s::before{content:"";}',".f1wkw4r9::before{visibility:visible;}",".f1j7ml58::before{position:absolute;}",".fyl8oag::before{box-sizing:border-box;}",".frdoeuz::before{width:inherit;}",".fb81m9q::before{height:inherit;}",".f1ljr5q2::before{background-color:inherit;}",".fyfemzf::before{border-right-width:1px;}",".focyt6c::before{border-right-style:solid;}",".fnhxbxj::before{border-right-color:var(--colorTransparentStroke);}",".fdw6hkg::before{border-bottom-width:1px;}",".f11yjt3y::before{border-bottom-style:solid;}",".f1172wan::before{border-bottom-color:var(--colorTransparentStroke);}",".f9e5op9::before{border-bottom-right-radius:var(--borderRadiusSmall);}",".f112wvtl::before{border-bottom-left-radius:var(--borderRadiusSmall);}",".f16cagkn::before{transform:rotate(var(--fui-positioning-angle)) translate(0, 50%) rotate(45deg);}",'[data-popper-placement^="top"] .f1773hnp{bottom:-1px;}','[data-popper-placement^="top"] .fw7o64x{--fui-positioning-angle:0;}','[data-popper-placement^="right"] .f1v7783n{left:-1px;}','[data-popper-placement^="right"] .f1f0d6v{--fui-positioning-angle:90deg;}','[data-popper-placement^="bottom"] .fh2hsk5{top:-1px;}','[data-popper-placement^="bottom"] .f1gj3y7g{--fui-positioning-angle:180deg;}','[data-popper-placement^="left"] .f11yvu4{right:-1px;}','[data-popper-placement^="left"] .f17lejdj{--fui-positioning-angle:270deg;}'],k:["@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}","@keyframes f79suad{from{transform:translate(var(--fui-positioning-slide-distance-x), var(--fui-positioning-slide-distance-y));}}"],m:[["@media (prefers-reduced-motion){.fi19xcv[data-popper-placement]{animation-duration:1ms;}}",{m:"(prefers-reduced-motion)"}],["@media (prefers-reduced-motion){.f1mzajhk[data-popper-placement]{animation-name:f5j8bii;}}",{m:"(prefers-reduced-motion)"}]],t:["@supports not (animation-composition: accumulate){.fjp4h9y[data-popper-placement]{animation-name:f5j8bii;}}"]}),Bj=t=>{const e=Ej();return t.root.className=R(Cj.root,e.root,t.inline&&e.inline,t.size==="small"&&e.smallPadding,t.size==="medium"&&e.mediumPadding,t.size==="large"&&e.largePadding,t.appearance==="inverted"&&e.inverted,t.appearance==="brand"&&e.brand,t.root.className),t.arrowClassName=R(e.arrow,t.size==="small"?e.smallArrow:e.mediumLargeArrow),t},Ij=y.forwardRef((t,e)=>{const r=dM(t,e);return Bj(r),de("usePopoverSurfaceStyles_unstable")(r),xj(r)});Ij.displayName="PopoverSurface";const Rj=4,Aj=t=>{const[e,r]=CC(),o={size:"medium",contextTarget:e,setContextTarget:r,...t},n=y.Children.toArray(t.children);let i,a;n.length===2?(i=n[0],a=n[1]):n.length===1&&(a=n[0]);const[s,l]=Nj(o),c=y.useRef(0),u=Q((b,k)=>{if(clearTimeout(c.current),!(b instanceof Event)&&b.persist&&b.persist(),b.type==="mouseleave"){var x;c.current=setTimeout(()=>{l(b,k)},(x=t.mouseLeaveDelay)!==null&&x!==void 0?x:500)}else l(b,k)});y.useEffect(()=>()=>{clearTimeout(c.current)},[]);const d=y.useCallback(b=>{u(b,!s)},[u,s]),f=Pj(o),{targetDocument:h}=Ae();var g;xx({contains:Sl,element:h,callback:b=>u(b,!1),refs:[f.triggerRef,f.contentRef],disabled:!s,disabledFocusOnIframe:!(!((g=t.closeOnIframeFocus)!==null&&g!==void 0)||g)});const m=o.openOnContext||o.closeOnScroll;Cx({contains:Sl,element:h,callback:b=>u(b,!1),refs:[f.triggerRef,f.contentRef],disabled:!s||!m});const{findFirstFocusable:w}=No();y.useEffect(()=>{if(!t.unstable_disableAutoFocus&&s&&f.contentRef.current){var b;const k=(b=f.contentRef.current.getAttribute("tabIndex"))!==null&&b!==void 0?b:void 0,x=isNaN(k)?w(f.contentRef.current):f.contentRef.current;x?.focus()}},[w,s,f.contentRef,t.unstable_disableAutoFocus]);var v,p;return{...o,...f,inertTrapFocus:(v=t.inertTrapFocus)!==null&&v!==void 0?v:t.legacyTrapFocus===void 0?!1:!t.legacyTrapFocus,popoverTrigger:i,popoverSurface:a,open:s,setOpen:u,toggleOpen:d,setContextTarget:r,contextTarget:e,inline:(p=t.inline)!==null&&p!==void 0?p:!1}};function Nj(t){const e=Q((a,s)=>{var l;return(l=t.onOpenChange)===null||l===void 0?void 0:l.call(t,a,s)}),[r,o]=Et({state:t.open,defaultState:t.defaultOpen,initialState:!1});t.open=r!==void 0?r:t.open;const n=t.setContextTarget,i=y.useCallback((a,s)=>{s&&a.type==="contextmenu"&&n(a),s||n(void 0),o(s),e?.(a,{open:s})},[o,e,n]);return[r,i]}function Pj(t){const e={position:"above",align:"center",arrowPadding:2*Rj,target:t.openOnContext?t.contextTarget:void 0,...pc(t.positioning)};e.coverTarget&&(t.withArrow=!1),t.withArrow&&(e.offset=_C(e.offset,Tj[t.size]));const{targetRef:r,containerRef:o,arrowRef:n}=Cf(e);return{triggerRef:r,contentRef:o,arrowRef:n}}const zj=t=>{const{appearance:e,arrowRef:r,contentRef:o,inline:n,mountNode:i,open:a,openOnContext:s,openOnHover:l,setOpen:c,size:u,toggleOpen:d,trapFocus:f,triggerRef:h,withArrow:g,inertTrapFocus:m}=t;return y.createElement(Jv.Provider,{value:{appearance:e,arrowRef:r,contentRef:o,inline:n,mountNode:i,open:a,openOnContext:s,openOnHover:l,setOpen:c,toggleOpen:d,triggerRef:h,size:u,trapFocus:f,inertTrapFocus:m,withArrow:g}},t.popoverTrigger,t.open&&t.popoverSurface)},Mj=t=>{const e=Aj(t);return zj(e)};Mj.displayName="Popover";const Oj=t=>{const{children:e,disableButtonEnhancement:r=!1}=t,o=lc(e),n=Mt(b=>b.open),i=Mt(b=>b.setOpen),a=Mt(b=>b.toggleOpen),s=Mt(b=>b.triggerRef),l=Mt(b=>b.openOnHover),c=Mt(b=>b.openOnContext),{triggerAttributes:u}=bf(),d=b=>{c&&(b.preventDefault(),i(b,!0))},f=b=>{c||a(b)},h=b=>{b.key===Po&&n&&!b.isDefaultPrevented()&&(i(b,!1),b.preventDefault())},g=b=>{l&&i(b,!0)},m=b=>{l&&i(b,!1)},w={...u,"aria-expanded":`${n}`,...o?.props,onMouseEnter:Q(fe(o?.props.onMouseEnter,g)),onMouseLeave:Q(fe(o?.props.onMouseLeave,m)),onContextMenu:Q(fe(o?.props.onContextMenu,d)),ref:Be(s,o?.ref)},v={...w,onClick:Q(fe(o?.props.onClick,f)),onKeyDown:Q(fe(o?.props.onKeyDown,h))},p=Pi(o?.type==="button"||o?.type==="a"?o.type:"div",v);return{children:pf(t.children,Pi(o?.type==="button"||o?.type==="a"?o.type:"div",c?w:r?v:p))}},jj=t=>t.children,RT=t=>{const e=Oj(t);return jj(e)};RT.displayName="PopoverTrigger";RT.isFluentTriggerComponent=!0;const Dj=6,Fj=4,qj=t=>{var e,r,o,n;const i=pN(),a=aN(),{targetDocument:s}=Ae(),[l,c]=kl(),{appearance:u="normal",children:d,content:f,withArrow:h=!1,positioning:g="above",onVisibleChange:m,relationship:w,showDelay:v=250,hideDelay:p=250,mountNode:b}=t,[k,x]=Et({state:t.visible,initialState:!1}),S=y.useCallback((B,D)=>{c(),x(U=>(D.visible!==U&&m?.(B,D),D.visible))},[c,x,m]),_={withArrow:h,positioning:g,showDelay:v,hideDelay:p,relationship:w,visible:k,shouldRenderTooltip:k,appearance:u,mountNode:b,components:{content:"div"},content:ee(f,{defaultProps:{role:"tooltip"},elementType:"div"})};_.content.id=Bt("tooltip-",_.content.id);const C={enabled:_.visible,arrowPadding:2*Fj,position:"above",align:"center",offset:4,...pc(_.positioning)};_.withArrow&&(C.offset=_C(C.offset,Dj));const{targetRef:T,containerRef:E,arrowRef:O}=Cf(C);_.content.ref=Be(_.content.ref,E),_.arrowRef=O,Jt(()=>{if(k){var B;const D={hide:z=>S(void 0,{visible:!1,documentKeyboardEvent:z})};(B=i.visibleTooltip)===null||B===void 0||B.hide(),i.visibleTooltip=D;const U=z=>{z.key===Po&&!z.defaultPrevented&&(D.hide(z),z.preventDefault())};return s?.addEventListener("keydown",U,{capture:!0}),()=>{i.visibleTooltip===D&&(i.visibleTooltip=void 0),s?.removeEventListener("keydown",U,{capture:!0})}}},[i,s,k,S]);const I=y.useRef(!1),H=y.useCallback(B=>{if(B.type==="focus"&&I.current){I.current=!1;return}const D=i.visibleTooltip?0:_.showDelay;l(()=>{S(B,{visible:!0})},D),B.persist()},[l,S,_.showDelay,i]),[q]=y.useState(()=>{const B=U=>{var z;!((z=U.detail)===null||z===void 0)&&z.isFocusedProgrammatically&&(I.current=!0)};let D=null;return U=>{D?.removeEventListener(lo,B),U?.addEventListener(lo,B),D=U}}),N=y.useCallback(B=>{let D=_.hideDelay;B.type==="blur"&&(D=0,I.current=s?.activeElement===B.target),l(()=>{S(B,{visible:!1})},D),B.persist()},[l,S,_.hideDelay,s]);_.content.onPointerEnter=fe(_.content.onPointerEnter,c),_.content.onPointerLeave=fe(_.content.onPointerLeave,N),_.content.onFocus=fe(_.content.onFocus,c),_.content.onBlur=fe(_.content.onBlur,N);const M=lc(d),W={};return w==="label"?typeof _.content.children=="string"?W["aria-label"]=_.content.children:(W["aria-labelledby"]=_.content.id,_.shouldRenderTooltip=!0):w==="description"&&(W["aria-describedby"]=_.content.id,_.shouldRenderTooltip=!0),a&&(_.shouldRenderTooltip=!1),_.children=pf(d,{...W,...M?.props,ref:Be(M?.ref,q,C.target===void 0?T:void 0),onPointerEnter:Q(fe(M==null||(e=M.props)===null||e===void 0?void 0:e.onPointerEnter,H)),onPointerLeave:Q(fe(M==null||(r=M.props)===null||r===void 0?void 0:r.onPointerLeave,N)),onFocus:Q(fe(M==null||(o=M.props)===null||o===void 0?void 0:o.onFocus,H)),onBlur:Q(fe(M==null||(n=M.props)===null||n===void 0?void 0:n.onBlur,N))}),_},Lj=t=>we(y.Fragment,{children:[t.children,t.shouldRenderTooltip&&P(Xi,{mountNode:t.mountNode,children:we(t.content,{children:[t.withArrow&&P("div",{ref:t.arrowRef,className:t.arrowClassName}),t.content.children]})})]}),Hj={content:"fui-Tooltip__content"},Uj=F({root:{mc9l5x:"fjseox",B7ck84d:"f1ewtqcl",B2u0y6b:"f132xexn",Bceei9c:"f158kwzp",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm",Btd35i7:"fokg9q4",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B4j52fo:"f5ogflp",Bekrc4i:["f1hqa2wf","finvdd3"],Bn0qgzm:"f1f09k3d",ibv6hh:["finvdd3","f1hqa2wf"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"],z8tnut:"f10ra9hq",z189sj:["fd9xhir","f1jlaasf"],Byoj8tv:"f1d7kygh",uwmqm3:["f1jlaasf","fd9xhir"],De3pzq:"fxugw4r",sj55zd:"f19n0e5",Bhu2qc9:"fxeb0a7"},visible:{mc9l5x:"ftgm304"},inverted:{De3pzq:"fg3r6xk",sj55zd:"fonrgv7"},arrow:{qhf8xq:"f1euv43f",De3pzq:"f1u2r49w",Bcdw1i0:"fd7fpy0",Bj3rh1h:"f1bsuimh",a9b677:"f1ekdpwm",Bqenvij:"f83vc9z",Ftih45:"f1wl9k8s",B1puzpu:"f1wkw4r9",Brfgrao:"f1j7ml58",Bcvre1j:"fyl8oag",Ccq8qp:"frdoeuz",Baz25je:"fb81m9q",cmx5o7:"f1ljr5q2",B4f6apu:"fyfemzf",m598lv:"focyt6c",Bk5zm6e:"fnhxbxj",y0oebl:"fdw6hkg",qa3bma:"f11yjt3y",Bqjgrrk:"f1172wan",Budzafs:["f9e5op9","f112wvtl"],Hv9wc6:"f16cagkn",hl6cv3:"f1773hnp",c8svkw:"fw7o64x",yayu3t:"f1v7783n",nr3p0k:"f1f0d6v",rhl9o9:"fh2hsk5",wiz9v7:"f1gj3y7g",B6q6orb:"f11yvu4",ndpsmx:"f17lejdj"}},{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;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f5ogflp{border-top-width:1px;}",".f1hqa2wf{border-right-width:1px;}",".finvdd3{border-left-width:1px;}",".f1f09k3d{border-bottom-width:1px;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".f10ra9hq{padding-top:4px;}",".fd9xhir{padding-right:11px;}",".f1jlaasf{padding-left:11px;}",".f1d7kygh{padding-bottom:6px;}",".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;}",".f1u2r49w{background-color:inherit;}",".fd7fpy0{visibility:hidden;}",".f1bsuimh{z-index:-1;}",".f1ekdpwm{width:8.484px;}",".f83vc9z{height:8.484px;}",'.f1wl9k8s::before{content:"";}',".f1wkw4r9::before{visibility:visible;}",".f1j7ml58::before{position:absolute;}",".fyl8oag::before{box-sizing:border-box;}",".frdoeuz::before{width:inherit;}",".fb81m9q::before{height:inherit;}",".f1ljr5q2::before{background-color:inherit;}",".fyfemzf::before{border-right-width:1px;}",".focyt6c::before{border-right-style:solid;}",".fnhxbxj::before{border-right-color:var(--colorTransparentStroke);}",".fdw6hkg::before{border-bottom-width:1px;}",".f11yjt3y::before{border-bottom-style:solid;}",".f1172wan::before{border-bottom-color:var(--colorTransparentStroke);}",".f9e5op9::before{border-bottom-right-radius:var(--borderRadiusSmall);}",".f112wvtl::before{border-bottom-left-radius:var(--borderRadiusSmall);}",".f16cagkn::before{transform:rotate(var(--fui-positioning-angle)) translate(0, 50%) rotate(45deg);}",'[data-popper-placement^="top"] .f1773hnp{bottom:-1px;}','[data-popper-placement^="top"] .fw7o64x{--fui-positioning-angle:0;}','[data-popper-placement^="right"] .f1v7783n{left:-1px;}','[data-popper-placement^="right"] .f1f0d6v{--fui-positioning-angle:90deg;}','[data-popper-placement^="bottom"] .fh2hsk5{top:-1px;}','[data-popper-placement^="bottom"] .f1gj3y7g{--fui-positioning-angle:180deg;}','[data-popper-placement^="left"] .f11yvu4{right:-1px;}','[data-popper-placement^="left"] .f17lejdj{--fui-positioning-angle:270deg;}']}),$j=t=>{const e=Uj();return t.content.className=R(Hj.content,e.root,t.appearance==="inverted"&&e.inverted,t.visible&&e.visible,t.content.className),t.arrowClassName=e.arrow,t},AT=t=>{const e=qj(t);return $j(e),de("useTooltipStyles_unstable")(e),Lj(e)};AT.displayName="Tooltip";AT.isFluentTriggerComponent=!0;const Lf=t=>{const{iconOnly:e,iconPosition:r}=t;return we(t.root,{children:[r!=="after"&&t.icon&&P(t.icon,{}),!e&&t.root.children,r==="after"&&t.icon&&P(t.icon,{})]})},NT=y.createContext(void 0),Kj={};NT.Provider;const Wj=()=>{var t;return(t=y.useContext(NT))!==null&&t!==void 0?t:Kj},K1=(t,e)=>{const{size:r}=Wj(),{appearance:o="secondary",as:n="button",disabled:i=!1,disabledFocusable:a=!1,icon:s,iconPosition:l="before",shape:c="rounded",size:u=r??"medium"}=t,d=he(s,{elementType:"span"});return{appearance:o,disabled:i,disabledFocusable:a,iconPosition:l,shape:c,size:u,iconOnly:!!(d?.children&&!t.children),components:{root:"button",icon:"span"},root:ee(me(n,Pi(t.as,t)),{elementType:"button",defaultProps:{ref:e,type:"button"}}),icon:d}},Bw={root:"fui-Button",icon:"fui-Button__icon"},Vj=ge("r1alrhcs",null,{r:[".r1alrhcs{align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;text-decoration-line:none;vertical-align:middle;margin:0;overflow:hidden;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);font-family:var(--fontFamilyBase);outline-style:none;padding:5px var(--spacingHorizontalM);min-width:96px;border-radius:var(--borderRadiusMedium);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase300);transition-duration:var(--durationFaster);transition-property:background,border,color;transition-timing-function:var(--curveEasyEase);}",".r1alrhcs:hover{background-color:var(--colorNeutralBackground1Hover);border-color:var(--colorNeutralStroke1Hover);color:var(--colorNeutralForeground1Hover);cursor:pointer;}",".r1alrhcs:hover:active{background-color:var(--colorNeutralBackground1Pressed);border-color:var(--colorNeutralStroke1Pressed);color:var(--colorNeutralForeground1Pressed);outline-style:none;}",".r1alrhcs[data-fui-focus-visible]{border-color:var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);border-width:1px;outline:var(--strokeWidthThick) solid var(--colorTransparentStroke);box-shadow:0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;z-index:1;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1alrhcs{transition-duration:0.01ms;}}","@media (forced-colors: active){.r1alrhcs:focus{border-color:ButtonText;}.r1alrhcs:hover{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}.r1alrhcs:hover:active{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}}","@supports (-moz-appearance:button){.r1alrhcs[data-fui-focus-visible]{box-shadow:0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),Gj=ge("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);}"]),Xj=F({outline:{De3pzq:"f1c21dwh",Jwef8y:"fjxutwb",iro3zm:"fwiml72"},primary:{De3pzq:"ffp7eso",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"f1phragk",Jwef8y:"f15wkkf3",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f1rq72xc",iro3zm:"fnp9lpt",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1d6v5y2",Bsw6fvg:"f1rirnrt",Bjwas2f:"f1uu00uk",Bn1d65q:["fkvaka8","f9a0qzu"],Bxeuatn:"f1ux7til",n51gp8:["f9a0qzu","fkvaka8"],Bbusuzp:"f1lkg8j3",ycbfsm:"fkc42ay",Bqrx1nm:"fq7113v",pgvf35:"ff1wgvm",Bh7lczh:["fiob0tu","f1x4h75k"],dpv3f4:"f1j6scgf",Bpnjhaq:["f1x4h75k","fiob0tu"],ze5xyy:"f4xjyn1",g2kj27:"fbgcvur",Bf756sw:"f1ks1yx8",Bow2dr7:["f1o6qegi","fmxjhhp"],Bvhedfk:"fcnxywj",Gye4lf:["fmxjhhp","f1o6qegi"],pc6evw:"f9ddjv3"},secondary:{},subtle:{De3pzq:"fhovq9v",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"f1t94bn6",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"fnwyq0v",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",Bbdnnc7:"fy5bs14",iro3zm:"fsv2rcd",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1omzyqd",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",x3br3k:"fj8yq94",ze5xyy:"f4xjyn1",Bx3q9su:"f1et0tmh",pc6evw:"f9ddjv3",xd2cci:"f1wi8ngl"},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"fjxutwb",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f139oj5f",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",iro3zm:"fwiml72",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1fg1p5m",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",Bqrx1nm:"f1tme0vf",ze5xyy:"f4xjyn1",g2kj27:"f18onu3q",pc6evw:"f9ddjv3"},circular:{Bbmb7ep:["f8fbkgy","f1nfllo7"],Beyfa6y:["f1nfllo7","f8fbkgy"],B7oj6ja:["f1djnp8u","f1s8kh49"],Btl43ni:["f1s8kh49","f1djnp8u"]},rounded:{},square:{Bbmb7ep:["fzi6hpg","fyowgf4"],Beyfa6y:["fyowgf4","fzi6hpg"],B7oj6ja:["f3fg2lr","f13av6d4"],Btl43ni:["f13av6d4","f3fg2lr"]},small:{Bf4jedk:"fh7ncta",z8tnut:"f1khb0e9",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f1jnq6q7",uwmqm3:["f1f5gg8d","f1vdfbxk"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},smallWithIcon:{Byoj8tv:"f1brlhvm",z8tnut:"f1sl3k7w"},medium:{},large:{Bf4jedk:"f14es27b",z8tnut:"fp9bwmr",z189sj:["fjodcmx","fhx4nu"],Byoj8tv:"f150uoa4",uwmqm3:["fhx4nu","fjodcmx"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],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);}",".f8fbkgy{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1nfllo7{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1djnp8u{border-top-right-radius:var(--borderRadiusCircular);}",".f1s8kh49{border-top-left-radius:var(--borderRadiusCircular);}",".fzi6hpg{border-bottom-right-radius:var(--borderRadiusNone);}",".fyowgf4{border-bottom-left-radius:var(--borderRadiusNone);}",".f3fg2lr{border-top-right-radius:var(--borderRadiusNone);}",".f13av6d4{border-top-left-radius:var(--borderRadiusNone);}",".fh7ncta{min-width:64px;}",".f1khb0e9{padding-top:3px;}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1jnq6q7{padding-bottom:3px;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".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;}",".fp9bwmr{padding-top:8px;}",".fjodcmx{padding-right:var(--spacingHorizontalL);}",".fhx4nu{padding-left:var(--spacingHorizontalL);}",".f150uoa4{padding-bottom:8px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fy7v416{padding-bottom:7px;}",".f1a1bwwz{padding-top:7px;}"],h:[".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".fwiml72:hover:active{background-color:var(--colorTransparentBackgroundPressed);}",".f15wkkf3:hover{background-color:var(--colorBrandBackgroundHover);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}",".fnp9lpt:hover:active{background-color:var(--colorBrandBackgroundPressed);}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}",".f1d6v5y2:hover:active{color:var(--colorNeutralForegroundOnBrand);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".ft1hn21:hover .fui-Icon-filled{display:inline;}",".fuxngvv:hover .fui-Icon-regular{display:none;}",".fy5bs14:hover .fui-Button__icon{color:var(--colorNeutralForeground2BrandHover);}",".fsv2rcd:hover:active{background-color:var(--colorSubtleBackgroundPressed);}",".f1omzyqd:hover:active{color:var(--colorNeutralForeground2Pressed);}",".f1dfjoow:hover:active .fui-Icon-filled{display:inline;}",".f1j98vj9:hover:active .fui-Icon-regular{display:none;}",".fj8yq94:hover:active .fui-Button__icon{color:var(--colorNeutralForeground2BrandPressed);}",".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}",".f1fg1p5m:hover:active{color:var(--colorNeutralForeground2BrandPressed);}"],m:[["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1uu00uk{border-top-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9a0qzu{border-left-color:HighlightText;}.fkvaka8{border-right-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ux7til{border-bottom-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fq7113v:hover{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.ff1wgvm:hover{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1x4h75k:hover{border-left-color:Highlight;}.fiob0tu:hover{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1j6scgf:hover{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4xjyn1:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fbgcvur:hover:active{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ks1yx8:hover:active{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1o6qegi:hover:active{border-right-color:Highlight;}.fmxjhhp:hover:active{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fcnxywj:hover:active{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9ddjv3:hover:active{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1et0tmh:hover .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1wi8ngl:hover:active .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1tme0vf:hover{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f18onu3q:hover:active{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}]]}),Yj=F({base:{De3pzq:"f1bg9a2p",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bfinmwp:"f15x8b5r",Jwef8y:"f1falr9n",Bgoe8wy:"f12mpcsy",Bwzppfd:["f1gwvigk","f18rmfxp"],oetu4i:"f1jnshp0",gg5e9n:["f18rmfxp","f1gwvigk"],Bi91k9c:"fvgxktp",eoavqd:"fphbwmw",Bk3fhr4:"f19vpps7",Bmfj8id:"fv5swzo",Bbdnnc7:"f1al02dq",iro3zm:"f1t6o4dc",b661bw:"f10ztigi",Bk6r4ia:["f1ft5sdu","f1gzf82w"],B9zn80p:"f12zbtn2",Bpld233:["f1gzf82w","f1ft5sdu"],B2d53fq:"fcvwxyo",c3iz72:"f8w4c43",em6i61:"f1ol4fw6",vm6p8p:"f1q1lw4e",x3br3k:"f1dwjv2g"},highContrast:{Bsw6fvg:"f4lkoma",Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"],Bbusuzp:"f1dcs8yz",G867l3:"fjwq6ea",gdbnj:["f1lr3nhc","f1mbxvi6"],mxns5l:"fn5gmvv",o3nasb:["f1mbxvi6","f1lr3nhc"],Bqrx1nm:"f1vmkb5g",pgvf35:"f53ppgq",Bh7lczh:["f1663y11","f80fkiy"],dpv3f4:"f18v5270",Bpnjhaq:["f80fkiy","f1663y11"],ze5xyy:"f1kc2mi9",g2kj27:"f1y0svfh",Bf756sw:"fihuait",Bow2dr7:["fnxhupq","fyd6l6x"],Bvhedfk:"fx507ft",Gye4lf:["fyd6l6x","fnxhupq"],pc6evw:"fb3rf2x"},outline:{De3pzq:"f1c21dwh",Jwef8y:"f9ql6rf",iro3zm:"f3h1zc4"},primary:{g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},secondary:{},subtle:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]}},{d:[".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f15x8b5r .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}"],h:[".f1falr9n:hover{background-color:var(--colorNeutralBackgroundDisabled);}",".f12mpcsy:hover{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1gwvigk:hover{border-right-color:var(--colorNeutralStrokeDisabled);}",".f18rmfxp:hover{border-left-color:var(--colorNeutralStrokeDisabled);}",".f1jnshp0:hover{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".fphbwmw:hover{cursor:not-allowed;}",".f19vpps7:hover .fui-Icon-filled{display:none;}",".fv5swzo:hover .fui-Icon-regular{display:inline;}",".f1al02dq:hover .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1t6o4dc:hover:active{background-color:var(--colorNeutralBackgroundDisabled);}",".f10ztigi:hover:active{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1ft5sdu:hover:active{border-right-color:var(--colorNeutralStrokeDisabled);}",".f1gzf82w:hover:active{border-left-color:var(--colorNeutralStrokeDisabled);}",".f12zbtn2:hover:active{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fcvwxyo:hover:active{color:var(--colorNeutralForegroundDisabled);}",".f8w4c43:hover:active{cursor:not-allowed;}",".f1ol4fw6:hover:active .fui-Icon-filled{display:none;}",".f1q1lw4e:hover:active .fui-Icon-regular{display:inline;}",".f1dwjv2g:hover:active .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".f3h1zc4:hover:active{background-color:var(--colorTransparentBackground);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}"],m:[["@media (forced-colors: active){.f4lkoma{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fjwq6ea:focus{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lr3nhc:focus{border-right-color:GrayText;}.f1mbxvi6:focus{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fn5gmvv:focus{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1vmkb5g:hover{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f53ppgq:hover{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1663y11:hover{border-right-color:GrayText;}.f80fkiy:hover{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f18v5270:hover{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1kc2mi9:hover{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1y0svfh:hover:active{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fihuait:hover:active{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnxhupq:hover:active{border-right-color:GrayText;}.fyd6l6x:hover:active{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fx507ft:hover:active{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fb3rf2x:hover:active{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),Zj=F({circular:{kdpuga:["fanj13w","f1gou5sz"],Bw81rd7:["f1gou5sz","fanj13w"],B6xbmo0:["fulf6x3","foeb2x"],dm238s:["foeb2x","fulf6x3"]},rounded:{},square:{kdpuga:["f1ndz5i7","f1co4qro"],Bw81rd7:["f1co4qro","f1ndz5i7"],B6xbmo0:["f146y5a9","f1k2ftg"],dm238s:["f1k2ftg","f146y5a9"]},primary:{B8q5s1w:"f17t0x8g",Bci5o5g:["f194v5ow","fk7jm04"],n8qw10:"f1qgg65p",Bdrgwmp:["fk7jm04","f194v5ow"],j6ew2k:["fhgccpy","fjo7pq6"],he4mth:"f32wu9k",Byr4aka:"fu5nqqq",lks7q5:["f13prjl2","f1nl83rv"],Bnan3qt:"f1czftr5",k1dn9:["f1nl83rv","f13prjl2"],Boium3a:["f12k37oa","fdnykm2"],tm8e47:"fr96u23"},small:{kdpuga:["fg3gtdo","fwii5mg"],Bw81rd7:["fwii5mg","fg3gtdo"],B6xbmo0:["f1palphq","f12nxie7"],dm238s:["f12nxie7","f1palphq"]},medium:{},large:{kdpuga:["ft3lys4","f1la4x2g"],Bw81rd7:["f1la4x2g","ft3lys4"],B6xbmo0:["f156y0zm","fakimq4"],dm238s:["fakimq4","f156y0zm"]}},{d:[".fanj13w[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1gou5sz[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusCircular);}",".fulf6x3[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusCircular);}",".foeb2x[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusCircular);}",".f1ndz5i7[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusNone);}",".f1co4qro[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusNone);}",".f146y5a9[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusNone);}",".f1k2ftg[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusNone);}",".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);}",".fg3gtdo[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusSmall);}",".fwii5mg[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1palphq[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusSmall);}",".f12nxie7[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusSmall);}",".ft3lys4[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusLarge);}",".f1la4x2g[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusLarge);}",".f156y0zm[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusLarge);}",".fakimq4[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusLarge);}"],t:["@supports (-moz-appearance:button){.f12k37oa[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}.fdnykm2[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}}","@supports (-moz-appearance:button){.fr96u23[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),Qj=F({small:{z8tnut:"f1sl3k7w",z189sj:["f136y8j8","f10xn8zz"],Byoj8tv:"f1brlhvm",uwmqm3:["f10xn8zz","f136y8j8"],Bf4jedk:"f17fgpbq",B2u0y6b:"f1jt17bm"},medium:{z8tnut:"f1sbtcvk",z189sj:["fwiuce9","f15vdbe4"],Byoj8tv:"fdghr9",uwmqm3:["f15vdbe4","fwiuce9"],Bf4jedk:"fwbmr0d",B2u0y6b:"f44c6la"},large:{z8tnut:"f1a1bwwz",z189sj:["f18k1jr3","f1rtp3s9"],Byoj8tv:"fy7v416",uwmqm3:["f1rtp3s9","f18k1jr3"],Bf4jedk:"f12clzc2",B2u0y6b:"fjy1crr"}},{d:[".f1sl3k7w{padding-top:1px;}",".f136y8j8{padding-right:1px;}",".f10xn8zz{padding-left:1px;}",".f1brlhvm{padding-bottom:1px;}",".f17fgpbq{min-width:24px;}",".f1jt17bm{max-width:24px;}",".f1sbtcvk{padding-top:5px;}",".fwiuce9{padding-right:5px;}",".f15vdbe4{padding-left:5px;}",".fdghr9{padding-bottom:5px;}",".fwbmr0d{min-width:32px;}",".f44c6la{max-width:32px;}",".f1a1bwwz{padding-top:7px;}",".f18k1jr3{padding-right:7px;}",".f1rtp3s9{padding-left:7px;}",".fy7v416{padding-bottom:7px;}",".f12clzc2{min-width:40px;}",".fjy1crr{max-width:40px;}"]}),Jj=F({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);}"]}),W1=t=>{const e=Vj(),r=Gj(),o=Xj(),n=Yj(),i=Zj(),a=Qj(),s=Jj(),{appearance:l,disabled:c,disabledFocusable:u,icon:d,iconOnly:f,iconPosition:h,shape:g,size:m}=t;return t.root.className=R(Bw.root,e,l&&o[l],o[m],d&&m==="small"&&o.smallWithIcon,d&&m==="large"&&o.largeWithIcon,o[g],(c||u)&&n.base,(c||u)&&n.highContrast,l&&(c||u)&&n[l],l==="primary"&&i.primary,i[m],i[g],f&&a[m],t.root.className),t.icon&&(t.icon.className=R(Bw.icon,r,!!t.root.children&&s[h],s[m],t.icon.className)),t},e9=y.forwardRef((t,e)=>{const r=K1(t,e);return W1(r),de("useButtonStyles_unstable")(r),Lf(r)});e9.displayName="Button";function t9(t,e){const{checked:r,defaultChecked:o,disabled:n,disabledFocusable:i}=t,{onClick:a,role:s}=e.root,[l,c]=Et({state:r,defaultState:o,initialState:!1}),u=s==="menuitemcheckbox"||s==="checkbox",d=y.useCallback(f=>{if(!n&&!i){if(f.defaultPrevented)return;c(!l)}},[l,n,i,c]);return{...e,checked:l,root:{...e.root,[u?"aria-checked":"aria-pressed"]:l,onClick:Q(fe(a,d))}}}const PT=(t,e)=>{const r=K1(t,e);return t9(t,r)},Iw={root:"fui-ToggleButton",icon:"fui-ToggleButton__icon"},r9=F({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",iro3zm:"f141de4g",b661bw:"f11v6sdu",Bk6r4ia:["f9yn8i4","f1ajwf28"],B9zn80p:"f1uwu36w",Bpld233:["f1ajwf28","f9yn8i4"],B2d53fq:"f9olfzr"},highContrast:{Bsw6fvg:"f1rirnrt",Bjwas2f:"f132fbg1",Bn1d65q:["f1ene5x0","fzbc999"],Bxeuatn:"f6jgcol",n51gp8:["fzbc999","f1ene5x0"],Bbusuzp:"f1lkg8j3",ycbfsm:"fkc42ay",Bqrx1nm:"fq7113v",pgvf35:"ff1wgvm",Bh7lczh:["fiob0tu","f1x4h75k"],dpv3f4:"f1j6scgf",Bpnjhaq:["f1x4h75k","fiob0tu"],ze5xyy:"f4xjyn1",g2kj27:"fbgcvur",Bf756sw:"f1ks1yx8",Bow2dr7:["f1o6qegi","fmxjhhp"],Bvhedfk:"fcnxywj",Gye4lf:["fmxjhhp","f1o6qegi"],pc6evw:"f9ddjv3",Btyszwp:"f1j4zkqc",B8jyv7h:["f1ug3svw","f10xfdm4"],l9kbep:"f4xlnbu",By5cl00:["f10xfdm4","f1ug3svw"],abbn9y:"f1jhcl7q",Bw5jppy:["fokje0w","fpctg2v"],B0tp99d:"f1yfuj62",B55dcl7:["fpctg2v","fokje0w"],G867l3:"fk75khc",gdbnj:["f90nk7n","f16eiqta"],mxns5l:"fnz8tm1",o3nasb:["f16eiqta","f90nk7n"],B7d2ofm:"fkom8lu"},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",iro3zm:"fwiml72",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",iro3zm:"fnp9lpt",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1d6v5y2"},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",iro3zm:"fsv2rcd",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1omzyqd"},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",iro3zm:"fwiml72",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1fg1p5m"}},{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);}",".f141de4g:hover:active{background-color:var(--colorNeutralBackground1Pressed);}",".f11v6sdu:hover:active{border-top-color:var(--colorNeutralStroke1Pressed);}",".f9yn8i4:hover:active{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1ajwf28:hover:active{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1uwu36w:hover:active{border-bottom-color:var(--colorNeutralStroke1Pressed);}",".f9olfzr:hover:active{color:var(--colorNeutralForeground1Pressed);}",".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".fwiml72:hover:active{background-color:var(--colorTransparentBackgroundPressed);}",".f15wkkf3:hover{background-color:var(--colorBrandBackgroundHover);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}",".fnp9lpt:hover:active{background-color:var(--colorBrandBackgroundPressed);}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}",".f1d6v5y2:hover:active{color:var(--colorNeutralForegroundOnBrand);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".fsv2rcd:hover:active{background-color:var(--colorSubtleBackgroundPressed);}",".f1omzyqd:hover:active{color:var(--colorNeutralForeground2Pressed);}",".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}",".f1fg1p5m:hover:active{color:var(--colorNeutralForeground2BrandPressed);}"],m:[["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f132fbg1{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ene5x0{border-right-color:Highlight;}.fzbc999{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f6jgcol{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fq7113v:hover{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.ff1wgvm:hover{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1x4h75k:hover{border-left-color:Highlight;}.fiob0tu:hover{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1j6scgf:hover{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4xjyn1:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fbgcvur:hover:active{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ks1yx8:hover:active{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1o6qegi:hover:active{border-right-color:Highlight;}.fmxjhhp:hover:active{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fcnxywj:hover:active{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9ddjv3:hover:active{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1j4zkqc:focus{border-top-width:1px;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f10xfdm4:focus{border-left-width:1px;}.f1ug3svw:focus{border-right-width:1px;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4xlnbu:focus{border-bottom-width:1px;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1jhcl7q:focus{border-top-style:solid;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fokje0w:focus{border-right-style:solid;}.fpctg2v:focus{border-left-style:solid;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1yfuj62:focus{border-bottom-style:solid;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fk75khc:focus{border-top-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16eiqta:focus{border-left-color:HighlightText;}.f90nk7n:focus{border-right-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnz8tm1:focus{border-bottom-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkom8lu:focus{outline-color:Highlight;}}",{m:"(forced-colors: active)"}]]}),o9=F({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",iro3zm:"f1t6o4dc",b661bw:"f10ztigi",Bk6r4ia:["f1ft5sdu","f1gzf82w"],B9zn80p:"f12zbtn2",Bpld233:["f1gzf82w","f1ft5sdu"],B2d53fq:"fcvwxyo"},outline:{},primary:{g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},secondary:{},subtle:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"fjxutwb",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"fwiml72",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},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"],iro3zm:"fwiml72",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]}},{d:[".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".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);}",".f1t6o4dc:hover:active{background-color:var(--colorNeutralBackgroundDisabled);}",".f10ztigi:hover:active{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1ft5sdu:hover:active{border-right-color:var(--colorNeutralStrokeDisabled);}",".f1gzf82w:hover:active{border-left-color:var(--colorNeutralStrokeDisabled);}",".f12zbtn2:hover:active{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fcvwxyo:hover:active{color:var(--colorNeutralForegroundDisabled);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}",".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".fwiml72:hover:active{background-color:var(--colorTransparentBackgroundPressed);}"]}),n9=F({subtleOrTransparent:{sj55zd:"f1qj7y59"},highContrast:{ycbfsm:"fg4l7m0"}},{d:[".f1qj7y59{color:var(--colorNeutralForeground2BrandSelected);}"],m:[["@media (forced-colors: active){.fg4l7m0{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}]]}),i9=F({base:{Bsw6fvg:"f4lkoma",Bjwas2f:"f1bauw5b",Bn1d65q:["fbpknfk","fedl69w"],Bxeuatn:"f15s25nd",n51gp8:["fedl69w","fbpknfk"],Bbusuzp:"f1e4kh5",ycbfsm:"fg4l7m0"},disabled:{Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"],Bbusuzp:"f1dcs8yz",G867l3:"fjwq6ea",gdbnj:["f1lr3nhc","f1mbxvi6"],mxns5l:"fn5gmvv",o3nasb:["f1mbxvi6","f1lr3nhc"]}},{m:[["@media (forced-colors: active){.f4lkoma{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1bauw5b{border-top-color:ButtonBorder;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fbpknfk{border-right-color:ButtonBorder;}.fedl69w{border-left-color:ButtonBorder;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f15s25nd{border-bottom-color:ButtonBorder;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1e4kh5{color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fg4l7m0{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fjwq6ea:focus{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lr3nhc:focus{border-right-color:GrayText;}.f1mbxvi6:focus{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fn5gmvv:focus{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]]}),zT=t=>{const e=r9(),r=o9(),o=n9(),n=i9(),{appearance:i,checked:a,disabled:s,disabledFocusable:l}=t;return t.root.className=R(Iw.root,i==="primary"&&n.base,i==="primary"&&(s||l)&&n.disabled,a&&e.base,a&&e.highContrast,i&&a&&e[i],(s||l)&&r.base,i&&(s||l)&&r[i],t.root.className),t.icon&&(t.icon.className=R(Iw.icon,(i==="subtle"||i==="transparent")&&o.subtleOrTransparent&&o.highContrast,t.icon.className)),W1(t),t},a9=y.forwardRef((t,e)=>{const r=PT(t,e);return zT(r),de("useToggleButtonStyles_unstable")(r),Lf(r)});a9.displayName="ToggleButton";const MT=y.createContext(void 0),s9=MT.Provider,l9=()=>y.useContext(MT),c9=t=>{var e,r,o,n;const{generatedControlId:i,orientation:a,required:s,size:l,validationState:c}=t,u=(e=t.label)===null||e===void 0?void 0:e.htmlFor,d=(r=t.label)===null||r===void 0?void 0:r.id,f=(o=t.validationMessage)===null||o===void 0?void 0:o.id,h=(n=t.hint)===null||n===void 0?void 0:n.id;return{field:y.useMemo(()=>({generatedControlId:i,hintId:h,labelFor:u,labelId:d,orientation:a,required:s,size:l,validationMessageId:f,validationState:c}),[i,h,u,d,a,s,l,f,c])}};function ys(t,e){return OT(l9(),t,e)}function OT(t,e,r){if(!t)return e;e={...e};const{generatedControlId:o,hintId:n,labelFor:i,labelId:a,required:s,validationMessageId:l,validationState:c}=t;if(o){var u,d;(d=(u=e).id)!==null&&d!==void 0||(u.id=o)}if(a&&(!r?.supportsLabelFor||i!==e.id)){var f,h,g;(g=(f=e)[h="aria-labelledby"])!==null&&g!==void 0||(f[h]=a)}if((l||n)&&(e["aria-describedby"]=[l,n,e?.["aria-describedby"]].filter(Boolean).join(" ")),c==="error"){var m,w,v;(v=(m=e)[w="aria-invalid"])!==null&&v!==void 0||(m[w]=!0)}if(s)if(r?.supportsRequired){var p,b;(b=(p=e).required)!==null&&b!==void 0||(p.required=!0)}else{var k,x,S;(S=(k=e)[x="aria-required"])!==null&&S!==void 0||(k[x]=!0)}if(r?.supportsSize){var _,C;(C=(_=e).size)!==null&&C!==void 0||(_.size=t.size)}return e}const u9=(t,e)=>{let{children:r}=t;return typeof r=="function"&&(r=r(OT(e.field)||{})),P(s9,{value:e?.field,children:we(t.root,{children:[t.label&&P(t.label,{}),r,t.validationMessage&&we(t.validationMessage,{children:[t.validationMessageIcon&&P(t.validationMessageIcon,{}),t.validationMessage.children]}),t.hint&&P(t.hint,{})]})})},d9=(t,e)=>{const{disabled:r=!1,required:o=!1,weight:n="regular",size:i="medium"}=t;return{disabled:r,required:he(o===!0?"*":o||void 0,{defaultProps:{"aria-hidden":"true"},elementType:"span"}),weight:n,size:i,components:{root:"label",required:"span"},root:ee(me("label",{ref:e,...t}),{elementType:"label"})}},f9=t=>we(t.root,{children:[t.root.children,t.required&&P(t.required,{})]}),Rw={root:"fui-Label",required:"fui-Label__required"},h9=F({root:{Bahqtrf:"fk6fouc",sj55zd:"f19n0e5"},disabled:{sj55zd:"f1s2aq7o"},required:{sj55zd:"f1whyuy6",uwmqm3:["fycuoez","f8wuabp"]},requiredDisabled:{sj55zd:"f1s2aq7o"},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);}",".fycuoez{padding-left:4px;}",".f8wuabp{padding-right:4px;}",".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);}"]}),g9=t=>{const e=h9();return t.root.className=R(Rw.root,e.root,t.disabled&&e.disabled,e[t.size],t.weight==="semibold"&&e.semibold,t.root.className),t.required&&(t.required.className=R(Rw.required,e.required,t.disabled&&e.requiredDisabled,t.required.className)),t},uo=y.forwardRef((t,e)=>{const r=d9(t,e);return g9(r),de("useLabelStyles_unstable")(r),f9(r)});uo.displayName="Label";const p9={error:y.createElement(aP,null),warning:y.createElement(IP,null),success:y.createElement(rP,null),none:void 0},m9=(t,e)=>{const{children:r,orientation:o="vertical",required:n=!1,validationState:i=t.validationMessage?"error":"none",size:a="medium"}=t,s=Bt("field-"),l=s+"__control",c=ee(me("div",{...t,ref:e},["children"]),{elementType:"div"}),u=he(t.label,{defaultProps:{htmlFor:l,id:s+"__label",required:n,size:a},elementType:uo}),d=he(t.validationMessage,{defaultProps:{id:s+"__validationMessage",role:i==="error"?"alert":void 0},elementType:"div"}),f=he(t.hint,{defaultProps:{id:s+"__hint"},elementType:"div"}),h=p9[i],g=he(t.validationMessageIcon,{renderByDefault:!!h,defaultProps:{children:h},elementType:"span"});return{children:r,generatedControlId:l,orientation:o,required:n,size:a,validationState:i,components:{root:"div",label:uo,validationMessage:"div",validationMessageIcon:"span",hint:"div"},root:c,label:u,validationMessageIcon:g,validationMessage:d,hint:f}},As={root:"fui-Field",label:"fui-Field__label",validationMessage:"fui-Field__validationMessage",validationMessageIcon:"fui-Field__validationMessageIcon",hint:"fui-Field__hint"},v9=F({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;}"]}),b9=F({base:{z8tnut:"fclwglc",Byoj8tv:"fywfov9"},large:{z8tnut:"f1sl3k7w",Byoj8tv:"f1brlhvm"},vertical:{jrapky:"fyacil5"},verticalLarge:{jrapky:"f8l5zjj"},horizontal:{t21cq0:["fkujibs","f199hnxi"],Ijaq50:"f16hsg94",nk6f5a:"f1nzqi2z"}},{d:[".fclwglc{padding-top:var(--spacingVerticalXXS);}",".fywfov9{padding-bottom:var(--spacingVerticalXXS);}",".f1sl3k7w{padding-top:1px;}",".f1brlhvm{padding-bottom:1px;}",".fyacil5{margin-bottom:var(--spacingVerticalXXS);}",".f8l5zjj{margin-bottom:var(--spacingVerticalXS);}",".fkujibs{margin-right:var(--spacingHorizontalM);}",".f199hnxi{margin-left:var(--spacingHorizontalM);}",".f16hsg94{grid-row-start:1;}",".f1nzqi2z{grid-row-end:-1;}"]}),y9=ge("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);}"]),w9=F({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));}"]}),k9=ge("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;}"]),S9=F({error:{sj55zd:"f1hcrxcs"},warning:{sj55zd:"f1k5f75o"},success:{sj55zd:"ffmvakt"}},{d:[".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}",".ffmvakt{color:var(--colorPaletteGreenForeground1);}"]}),_9=t=>{const{validationState:e}=t,r=t.orientation==="horizontal",o=v9();t.root.className=R(As.root,o.base,r&&o.horizontal,r&&!t.label&&o.horizontalNoLabel,t.root.className);const n=b9();t.label&&(t.label.className=R(As.label,n.base,r&&n.horizontal,!r&&n.vertical,t.label.size==="large"&&n.large,!r&&t.label.size==="large"&&n.verticalLarge,t.label.className));const i=k9(),a=S9();t.validationMessageIcon&&(t.validationMessageIcon.className=R(As.validationMessageIcon,i,e!=="none"&&a[e],t.validationMessageIcon.className));const s=y9(),l=w9();t.validationMessage&&(t.validationMessage.className=R(As.validationMessage,s,e==="error"&&l.error,!!t.validationMessageIcon&&l.withIcon,t.validationMessage.className)),t.hint&&(t.hint.className=R(As.hint,s,t.hint.className))},x9=y.forwardRef((t,e)=>{const r=m9(t,e);_9(r);const o=c9(r);return u9(r,o)});x9.displayName="Field";const C9=(t,e)=>{t=ys(t,{supportsLabelFor:!0,supportsRequired:!0});const{disabled:r=!1,required:o,shape:n="square",size:i="medium",labelPosition:a="after",onChange:s}=t,[l,c]=Et({defaultState:t.defaultChecked,state:t.checked,initialState:!1}),u=Ki({props:t,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","size","onChange"]}),d=l==="mixed",f=Bt("checkbox-",u.primary.id);let h;d?n==="circular"?h=y.createElement(Px,null):h=i==="large"?y.createElement(BP,null):y.createElement(EP,null):l&&(h=i==="large"?y.createElement(tP,null):y.createElement(zx,null));const g={shape:n,checked:l,disabled:r,size:i,labelPosition:a,components:{root:"span",input:"input",indicator:"div",label:uo},root:ee(t.root,{defaultProps:{ref:gs(),...u.root},elementType:"span"}),input:ee(t.input,{defaultProps:{type:"checkbox",id:f,ref:e,checked:l===!0,...u.primary},elementType:"input"}),label:he(t.label,{defaultProps:{htmlFor:f,disabled:r,required:o,size:"medium"},elementType:uo}),indicator:he(t.indicator,{renderByDefault:!0,defaultProps:{"aria-hidden":!0,children:h},elementType:"div"})};g.input.onChange=Q(w=>{const v=w.currentTarget.indeterminate?"mixed":w.currentTarget.checked;s?.(w,{checked:v}),c(v)});const m=Be(g.input.ref);return g.input.ref=m,Jt(()=>{m.current&&(m.current.indeterminate=d)},[m,d]),g},T9=t=>we(t.root,{children:[P(t.input,{}),t.labelPosition==="before"&&t.label&&P(t.label,{}),P(t.indicator,{}),t.labelPosition==="after"&&t.label&&P(t.label,{})]}),Qc={root:"fui-Checkbox",label:"fui-Checkbox__label",input:"fui-Checkbox__input",indicator:"fui-Checkbox__indicator"},E9=ge("r10zo65y","rpa3v06",{r:[".r10zo65y{position:relative;display:inline-flex;cursor:pointer;vertical-align:middle;color:var(--colorNeutralForeground3);}",".r10zo65y:focus{outline-style:none;}",".r10zo65y:focus-visible{outline-style:none;}",".r10zo65y[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r10zo65y[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rpa3v06{position:relative;display:inline-flex;cursor:pointer;vertical-align:middle;color:var(--colorNeutralForeground3);}",".rpa3v06:focus{outline-style:none;}",".rpa3v06:focus-visible{outline-style:none;}",".rpa3v06[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rpa3v06[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r10zo65y[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){.rpa3v06[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),B9=F({unchecked:{Bi91k9c:"f3p8bqa",pv5h1i:"fium13f",lj723h:"f1r2dosr",Hnthvo:"f1729es6"},checked:{sj55zd:"f19n0e5",wkncrt:"f35ds98",zxk7z7:"f12mnkne",Hmsnfy:"fei9a8h",e6czan:"fix56y3",pv5h1i:"f1bcv2js",qbydtz:"f7dr4go",Hnthvo:"f1r5cpua"},mixed:{sj55zd:"f19n0e5",Hmsnfy:"f1l27tf0",zxk7z7:"fcilktj",pv5h1i:"f1lphd54",Bunfa6h:"f1obkvq7",Hnthvo:"f2gmbuh",B15ykmv:"f1oy4fa1"},disabled:{Bceei9c:"f158kwzp",sj55zd:"f1s2aq7o",Hmsnfy:"f1w7mfl5",zxk7z7:"fcoafq6",Bbusuzp:"f1dcs8yz",mrqfp9:"fxb3eh3"}},{h:[".f3p8bqa:hover{color:var(--colorNeutralForeground2);}",".fium13f:hover{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeAccessibleHover);}",".fix56y3:hover{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackgroundHover);}",".f1bcv2js:hover{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackgroundHover);}",".f1lphd54:hover{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStrokeHover);}",".f1obkvq7:hover{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1Hover);}"],a:[".f1r2dosr:active{color:var(--colorNeutralForeground1);}",".f1729es6:active{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeAccessiblePressed);}",".f7dr4go:active{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackgroundPressed);}",".f1r5cpua:active{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackgroundPressed);}",".f2gmbuh:active{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStrokePressed);}",".f1oy4fa1:active{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1Pressed);}"],d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".f35ds98{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackground);}",".f12mnkne{--fui-Checkbox__indicator--color:var(--colorNeutralForegroundInverted);}",".fei9a8h{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackground);}",".f1l27tf0{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStroke);}",".fcilktj{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1);}",".f158kwzp{cursor:default;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1w7mfl5{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeDisabled);}",".fcoafq6{--fui-Checkbox__indicator--color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fxb3eh3{--fui-Checkbox__indicator--color:GrayText;}}",{m:"(forced-colors: active)"}]]}),I9=ge("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));}"]),R9=F({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));}"]}),A9=ge("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;}"]),N9=F({large:{Be2twd7:"f4ybsrx",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},circular:{Bbmb7ep:["f8fbkgy","f1nfllo7"],Beyfa6y:["f1nfllo7","f8fbkgy"],B7oj6ja:["f1djnp8u","f1s8kh49"],Btl43ni:["f1s8kh49","f1djnp8u"]}},{d:[".f4ybsrx{font-size:16px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".f8fbkgy{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1nfllo7{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1djnp8u{border-top-right-radius:var(--borderRadiusCircular);}",".f1s8kh49{border-top-left-radius:var(--borderRadiusCircular);}"]}),P9=F({base:{qb2dma:"f7nlbp4",sj55zd:"f1ym3bx4",Bceei9c:"fpo1scq",z8tnut:"f1kwiid1",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f5b47ha",uwmqm3:["f1f5gg8d","f1vdfbxk"]},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;}",".f1kwiid1{padding-top:var(--spacingVerticalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f5b47ha{padding-bottom:var(--spacingVerticalS);}",".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);}"]}),z9=t=>{const{checked:e,disabled:r,labelPosition:o,shape:n,size:i}=t,a=E9(),s=B9();t.root.className=R(Qc.root,a,r?s.disabled:e==="mixed"?s.mixed:e?s.checked:s.unchecked,t.root.className);const l=I9(),c=R9();t.input.className=R(Qc.input,l,i==="large"&&c.large,c[o],t.input.className);const u=A9(),d=N9();t.indicator&&(t.indicator.className=R(Qc.indicator,u,i==="large"&&d.large,n==="circular"&&d.circular,t.indicator.className));const f=P9();return t.label&&(t.label.className=R(Qc.label,f.base,f[i],f[o],t.label.className)),t},Wp=y.forwardRef((t,e)=>{const r=C9(t,e);return z9(r),de("useCheckboxStyles_unstable")(r),T9(r)});Wp.displayName="Checkbox";const Qr=hn({activeOption:void 0,appearance:"outline",focusVisible:!1,open:!1,registerOption(){return()=>{}},selectedOptions:[],selectOption(){},setActiveOption(){},setOpen(){},size:"medium"});Qr.Provider;const Lo=hn({activeOption:void 0,focusVisible:!1,multiselect:!1,registerOption(){return()=>{}},selectedOptions:[],selectOption(){},setActiveOption(){}});Lo.Provider;function M9(t){const{activeOption:e,appearance:r,focusVisible:o,open:n,registerOption:i,selectedOptions:a,selectOption:s,setActiveOption:l,setOpen:c,size:u}=t;return{combobox:{activeOption:e,appearance:r,focusVisible:o,open:n,registerOption:i,selectedOptions:a,selectOption:s,setActiveOption:l,setOpen:c,size:u}}}function O9(t){const e=fc(Qr),{activeOption:r,focusVisible:o,multiselect:n,registerOption:i,selectedOptions:a,selectOption:s,setActiveOption:l}=t,c=ct(Qr,f=>f.registerOption);return{listbox:{activeOption:r,focusVisible:o,multiselect:n,registerOption:e?c:i,selectedOptions:a,selectOption:s,setActiveOption:l}}}function jd(t,e={}){const{open:r=!0,multiselect:o=!1}=e,n=t.key,{altKey:i,ctrlKey:a,key:s,metaKey:l}=t;return s.length===1&&n!==Or&&!i&&!a&&!l?"Type":r?n===Ia&&i||n===To||!o&&n===Or?"CloseSelect":o&&n===Or?"Select":n===Po?"Close":n===Qa?"Next":n===Ia?"Previous":n===Wv?"First":n===Kv?"Last":n===dC?"PageUp":n===uC?"PageDown":n===$v?"Tab":"None":n===Qa||n===Ia||n===To||n===Or?"Open":"None"}function jT(t,e,r){switch(t){case"Next":return Math.min(r,e+1);case"Previous":return Math.max(0,e-1);case"First":return 0;case"Last":return r;case"PageDown":return Math.min(r,e+10);case"PageUp":return Math.max(0,e-10);default:return e}}const DT=()=>{const t=y.useRef([]),e=y.useMemo(()=>({getCount:()=>t.current.length,getOptionAtIndex:c=>{var u;return(u=t.current[c])===null||u===void 0?void 0:u.option},getIndexOfId:c=>t.current.findIndex(u=>u.option.id===c),getOptionById:c=>{const u=t.current.find(d=>d.option.id===c);return u?.option},getOptionsMatchingText:c=>t.current.filter(u=>c(u.option.text)).map(u=>u.option),getOptionsMatchingValue:c=>t.current.filter(u=>c(u.option.value)).map(u=>u.option)}),[]),r=y.useCallback((o,n)=>{var i;const a=t.current.findIndex(s=>!s.element||!n?!1:s.option.id===o.id?!0:s.element.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_PRECEDING);if(((i=t.current[a])===null||i===void 0?void 0:i.option.id)!==o.id){const s={element:n,option:o};a===-1?t.current=[...t.current,s]:t.current.splice(a,0,s)}return()=>{t.current=t.current.filter(s=>s.option.id!==o.id)}},[]);return{...e,options:t.current.map(o=>o.option),registerOption:r}};function j9(t){const{activeOption:e}=t,r=y.useRef(null);return y.useEffect(()=>{if(r.current&&e&&Zn()){const o=r.current.querySelector(`#${e.id}`);if(!o)return;const{offsetHeight:n,offsetTop:i}=o,{offsetHeight:a,scrollTop:s}=r.current,l=is+a,u=2;l?r.current.scrollTo(0,i-u):c&&r.current.scrollTo(0,i-a+n+u)}},[e]),r}const FT=t=>{const{defaultSelectedOptions:e,multiselect:r,onOptionSelect:o}=t,[n,i]=Et({state:t.selectedOptions,defaultState:e,initialState:[]}),a=y.useCallback((l,c)=>{if(c.disabled)return;let u=[c.value];if(r){const d=n.findIndex(f=>f===c.value);d>-1?u=[...n.slice(0,d),...n.slice(d+1)]:u=[...n,c.value]}i(u),o?.(l,{optionValue:c.value,optionText:c.text,selectedOptions:u})},[o,r,n,i]);return{clearSelection:l=>{i([]),o?.(l,{optionValue:void 0,optionText:void 0,selectedOptions:[]})},selectOption:a,selectedOptions:n}},D9=(t,e)=>{const{multiselect:r}=t,o=DT(),{getCount:n,getOptionAtIndex:i,getIndexOfId:a}=o,{clearSelection:s,selectedOptions:l,selectOption:c}=FT(t),[u,d]=y.useState(),[f,h]=y.useState(!1),g=T=>{const E=jd(T,{open:!0}),O=n()-1,I=u?a(u.id):-1;let H=I;switch(E){case"Select":case"CloseSelect":u&&c(T,u);break;default:H=jT(E,I,O)}H!==I&&(T.preventDefault(),d(i(H)),h(!0))},m=T=>{h(!1)},w=fc(Qr),v=ct(Qr,T=>T.activeOption),p=ct(Qr,T=>T.focusVisible),b=ct(Qr,T=>T.selectedOptions),k=ct(Qr,T=>T.selectOption),x=ct(Qr,T=>T.setActiveOption),S=w?{activeOption:v,focusVisible:p,selectedOptions:b,selectOption:k,setActiveOption:x}:{activeOption:u,focusVisible:f,selectedOptions:l,selectOption:c,setActiveOption:d},_={components:{root:"div"},root:ee(me("div",{ref:e,role:r?"menu":"listbox","aria-activedescendant":w?void 0:u?.id,tabIndex:0,...t}),{elementType:"div"}),multiselect:r,clearSelection:s,...o,...S},C=j9(_);return _.root.ref=Be(_.root.ref,C),_.root.onKeyDown=Q(fe(_.root.onKeyDown,g)),_.root.onMouseOver=Q(fe(_.root.onMouseOver,m)),_},F9=(t,e)=>P(Lo.Provider,{value:e.listbox,children:P(t.root,{})}),q9={root:"fui-Listbox"},L9=F({root:{De3pzq:"fxugw4r",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",Bf4jedk:"f3hsy1e",Bmxbyg5:"f5zp4f",Bpd4iqm:"fpvhumw",oeaueh:"f1yog68k",Bw0xxkn:"f13sgyd8",z8tnut:"f1x4af0m",z189sj:["f7x41pl","fruq291"],Byoj8tv:"fd55psn",uwmqm3:["fruq291","f7x41pl"],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;}",".fpvhumw{outline-width:1px;}",".f1yog68k{outline-style:solid;}",".f13sgyd8{outline-color:var(--colorTransparentStroke);}",".f1x4af0m{padding-top:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".fd55psn{padding-bottom:var(--spacingHorizontalXS);}",".fiut8dr{row-gap:var(--spacingHorizontalXXS);}"]}),H9=t=>{const e=L9();return t.root.className=R(q9.root,e.root,t.root.className),t},V1=y.forwardRef((t,e)=>{const r=D9(t,e),o=O9(r);return H9(r),de("useListboxStyles_unstable")(r),F9(r,o)});V1.displayName="Listbox";function U9(t,e){if(t!==void 0)return t;let r="",o=!1;return y.Children.forEach(e,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 $9=(t,e)=>{const{children:r,disabled:o,text:n,value:i}=t,a=y.useRef(null),s=U9(n,r),l=i??s,c=Bt("fluent-option",t.id),u=y.useMemo(()=>({id:c,disabled:o,text:s,value:l}),[c,o,s,l]),d=ct(Lo,S=>S.focusVisible),f=ct(Lo,S=>S.multiselect),h=ct(Lo,S=>S.registerOption),g=ct(Lo,S=>{const _=S.selectedOptions;return!!l&&!!_.find(C=>C===l)}),m=ct(Lo,S=>S.selectOption),w=ct(Lo,S=>S.setActiveOption),v=ct(Qr,S=>S.setOpen),p=ct(Lo,S=>{var _,C;return((_=S.activeOption)===null||_===void 0?void 0:_.id)!==void 0&&((C=S.activeOption)===null||C===void 0?void 0:C.id)===c});let b=y.createElement(UN,null);f&&(b=g?y.createElement(zx,null):"");const k=S=>{var _;if(o){S.preventDefault();return}w(u),f||v?.(S,!1),m(S,u),(_=t.onClick)===null||_===void 0||_.call(t,S)};y.useEffect(()=>{if(c&&a.current)return h(u,a.current)},[c,u,h]);const x=f?{role:"menuitemcheckbox","aria-checked":g}:{role:"option","aria-selected":g};return{components:{root:"div",checkIcon:"span"},root:ee(me("div",{ref:Be(e,a),"aria-disabled":o?"true":void 0,id:c,...x,...t,onClick:k}),{elementType:"div"}),checkIcon:he(t.checkIcon,{renderByDefault:!0,defaultProps:{"aria-hidden":"true",children:b},elementType:"span"}),active:p,disabled:o,focusVisible:d,multiselect:f,selected:g}},K9=t=>we(t.root,{children:[t.checkIcon&&P(t.checkIcon,{}),t.root.children]}),Aw={root:"fui-Option",checkIcon:"fui-Option__checkIcon"},W9=F({root:{Bt984gj:"f122n59",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],sj55zd:"f19n0e5",i8kkvl:"f1ufnopg",Bceei9c:"f1k6fduh",mc9l5x:"f22iagw",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi",z8tnut:"fp2oml8",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f1tdddsa",uwmqm3:["f1f5gg8d","f1vdfbxk"],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:{Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",B80jsxd:"f1nwj1ja",t2ki1e:"ffmd2fr",Bm2nyyq:"f8rth92",Barhvk9:["flthirb","ftkbnf5"],Bw17bha:"f1lh990p",vfts7:["ftkbnf5","flthirb"],xrcqlc:"fc9v8v1",Ihftqj:["f1mwfetb","f18mat8f"],Bcgy8vk:"f1cb6c3",Bhxzhr1:["f18mat8f","f1mwfetb"],B3778ie:["f1ibwz09","f1kp91vd"],d9w3h3:["f1kp91vd","f1ibwz09"],Bl18szs:["f1pix4dl","f13nd1z4"],B4j8arr:["f13nd1z4","f1pix4dl"],B0n5ga8:"f1qw5sz7",s924m2:["f19va7ni","f1a9v3mw"],B1q35kw:"fkkziue",Gp14am:["f1a9v3mw","f19va7ni"],bn5sak:"f1a97anr",By385i5:"f5226zp",Eqx8gd:["fa2bdqt","fei6g0k"],B1piin3:["fei6g0k","fa2bdqt"]},disabled:{sj55zd:"f1s2aq7o",Jwef8y:"f9ql6rf",Bi91k9c:"fvgxktp",zqbkvg:"f185j3qj",h82x05:["f1dligi3","f1vydzie"],cqj998:"fjw1di3",j3hlsh:["f1vydzie","f1dligi3"],ecr2s2:"fgj9um3",lj723h:"f19wldhg",Btxx2vb:"f1ss0kt2",sltcwy:["f1t6oli3","fjy9ci8"],dnwvvm:"fresaxk",Blyvkvs:["fjy9ci8","f1t6oli3"],Bbusuzp:"f1dcs8yz"},selected:{},checkIcon:{Be2twd7:"fod5ikn",Frg6f3:["f18b9hdq","fn6qj8t"],t21cq0:["f1xk557c","f1h9en5y"],Bcdw1i0:"fd7fpy0",Bo70h7d:"fvc9v3g"},selectedCheck:{Bcdw1i0:"f1022m68"},multiselectCheck:{B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fq0vr37",h3c5rm:["f1byw159","f11cr0be"],B9xav0g:"f1c1zstj",zhjwy3:["f11cr0be","f1byw159"],Bbmb7ep:["f1g3puop","fi2rrw2"],Beyfa6y:["fi2rrw2","f1g3puop"],B7oj6ja:["f1rstyi9","f1s4nn1u"],Btl43ni:["f1s4nn1u","f1rstyi9"],B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Bt984gj:"f122n59",Brf1p80:"f4d9j23",Bkfmm31:"f1w9h62z",Be2twd7:"f1ugzwwg",Bqenvij:"fd461yt",a9b677:"fjw5fx7",Bcdw1i0:"f1022m68"},selectedMultiselectCheck:{De3pzq:"ftywsgz",sj55zd:"fqpbvvt",g2u3we:"f3xi7mh",h3c5rm:["ftovhe4","f1wczvin"],B9xav0g:"f68vbr6",zhjwy3:["f1wczvin","ftovhe4"]},checkDisabled:{sj55zd:"f1s2aq7o",Bbusuzp:"f1dcs8yz"},multiselectCheckDisabled:{g2u3we:"f1r1t4y1",h3c5rm:["fmj8ijw","figx54m"],B9xav0g:"f360ss8",zhjwy3:["figx54m","fmj8ijw"]}},{d:[".f122n59{align-items:center;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".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);}",".fp2oml8{padding-top:var(--spacingVerticalSNudge);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1tdddsa{padding-bottom:var(--spacingVerticalSNudge);}",".f10pi13n{position:relative;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1nwj1ja::after{pointer-events:none;}",".ffmd2fr::after{z-index:1;}",".f8rth92::after{border-top-style:solid;}",".flthirb::after{border-right-style:solid;}",".ftkbnf5::after{border-left-style:solid;}",".f1lh990p::after{border-bottom-style:solid;}",".fc9v8v1::after{border-top-width:2px;}",".f1mwfetb::after{border-right-width:2px;}",".f18mat8f::after{border-left-width:2px;}",".f1cb6c3::after{border-bottom-width:2px;}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1pix4dl::after{border-top-right-radius:var(--borderRadiusMedium);}",".f13nd1z4::after{border-top-left-radius:var(--borderRadiusMedium);}",".f1qw5sz7::after{border-top-color:var(--colorStrokeFocus2);}",".f19va7ni::after{border-right-color:var(--colorStrokeFocus2);}",".f1a9v3mw::after{border-left-color:var(--colorStrokeFocus2);}",".fkkziue::after{border-bottom-color:var(--colorStrokeFocus2);}",".f1a97anr::after{top:-2px;}",".f5226zp::after{bottom:-2px;}",".fa2bdqt::after{left:-2px;}",".fei6g0k::after{right:-2px;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".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;}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fq0vr37{border-top-color:var(--colorNeutralStrokeAccessible);}",".f1byw159{border-right-color:var(--colorNeutralStrokeAccessible);}",".f11cr0be{border-left-color:var(--colorNeutralStrokeAccessible);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f1g3puop{border-bottom-right-radius:var(--borderRadiusSmall);}",".fi2rrw2{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1rstyi9{border-top-right-radius:var(--borderRadiusSmall);}",".f1s4nn1u{border-top-left-radius:var(--borderRadiusSmall);}",".f1ewtqcl{box-sizing:border-box;}",".f4d9j23{justify-content:center;}",".f1w9h62z{fill:currentColor;}",".f1ugzwwg{font-size:12px;}",".fd461yt{height:16px;}",".fjw5fx7{width:16px;}",".ftywsgz{background-color:var(--colorCompoundBrandBackground);}",".fqpbvvt{color:var(--colorNeutralForegroundInverted);}",".f3xi7mh{border-top-color:var(--colorCompoundBrandBackground);}",".ftovhe4{border-right-color:var(--colorCompoundBrandBackground);}",".f1wczvin{border-left-color:var(--colorCompoundBrandBackground);}",".f68vbr6{border-bottom-color:var(--colorCompoundBrandBackground);}",".f1r1t4y1{border-top-color:var(--colorNeutralForegroundDisabled);}",".fmj8ijw{border-right-color:var(--colorNeutralForegroundDisabled);}",".figx54m{border-left-color:var(--colorNeutralForegroundDisabled);}",".f360ss8{border-bottom-color:var(--colorNeutralForegroundDisabled);}"],h:[".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}",".feu1g3u:hover{color:var(--colorNeutralForeground1Hover);}",".fo79ri9:hover .fui-Option__checkIcon{border-top-color:var(--colorNeutralForeground1Hover);}",".f1osiabc:hover .fui-Option__checkIcon{border-right-color:var(--colorNeutralForeground1Hover);}",".f1e8le25:hover .fui-Option__checkIcon{border-left-color:var(--colorNeutralForeground1Hover);}",".f1yusjty:hover .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForeground1Hover);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".f185j3qj:hover .fui-Option__checkIcon{border-top-color:var(--colorNeutralForegroundDisabled);}",".f1dligi3:hover .fui-Option__checkIcon{border-right-color:var(--colorNeutralForegroundDisabled);}",".f1vydzie:hover .fui-Option__checkIcon{border-left-color:var(--colorNeutralForegroundDisabled);}",".fjw1di3:hover .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForegroundDisabled);}"],a:[".fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}",".f1g4hkjv:active{color:var(--colorNeutralForeground1Pressed);}",".f1lnr2zp:active .fui-Option__checkIcon{border-top-color:var(--colorNeutralForeground1Hover);}",".f1ogfk9z:active .fui-Option__checkIcon{border-right-color:var(--colorNeutralForeground1Hover);}",".f1g7j8ec:active .fui-Option__checkIcon{border-left-color:var(--colorNeutralForeground1Hover);}",".fiuf46r:active .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForeground1Hover);}",".fgj9um3:active{background-color:var(--colorTransparentBackground);}",".f19wldhg:active{color:var(--colorNeutralForegroundDisabled);}",".f1ss0kt2:active .fui-Option__checkIcon{border-top-color:var(--colorNeutralForegroundDisabled);}",".f1t6oli3:active .fui-Option__checkIcon{border-right-color:var(--colorNeutralForegroundDisabled);}",".fjy9ci8:active .fui-Option__checkIcon{border-left-color:var(--colorNeutralForegroundDisabled);}",".fresaxk:active .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),V9=t=>{const{active:e,disabled:r,focusVisible:o,multiselect:n,selected:i}=t,a=W9();return t.root.className=R(Aw.root,a.root,e&&o&&a.active,r&&a.disabled,i&&a.selected,t.root.className),t.checkIcon&&(t.checkIcon.className=R(Aw.checkIcon,a.checkIcon,n&&a.multiselectCheck,i&&a.selectedCheck,i&&n&&a.selectedMultiselectCheck,r&&a.checkDisabled,r&&n&&a.multiselectCheckDisabled,t.checkIcon.className)),t},G9=y.forwardRef((t,e)=>{const r=$9(t,e);return V9(r),de("useOptionStyles_unstable")(r),K9(r)});G9.displayName="Option";const X9=t=>{const{appearance:e="outline",children:r,clearable:o=!1,editable:n=!1,inlinePopup:i=!1,mountNode:a=void 0,multiselect:s,onOpenChange:l,size:c="medium"}=t,u=DT(),{getOptionAtIndex:d,getOptionsMatchingValue:f}=u,[h,g]=y.useState(),[m,w]=y.useState(!1),[v,p]=y.useState(!1),b=y.useRef(!1),k=FT(t),{selectedOptions:x}=k,S=gx(),[_,C]=Et({state:t.value,initialState:void 0}),T=y.useMemo(()=>{if(_!==void 0)return _;if(S&&t.defaultValue!==void 0)return t.defaultValue;const H=f(q=>x.includes(q)).map(q=>q.text);return s?n?"":H.join(", "):H[0]},[_,n,f,s,t.defaultValue,x]),[E,O]=Et({state:t.open,defaultState:t.defaultOpen,initialState:!1}),I=y.useCallback((H,q)=>{l?.(H,{open:q}),O(q)},[l,O]);return y.useEffect(()=>{if(E&&!h)if(!s&&x.length>0){const H=f(q=>q===x[0]).pop();H&&g(H)}else g(d(0));else E||g(void 0)},[E,r]),{...u,...k,activeOption:h,appearance:e,clearable:o,focusVisible:m,hasFocus:v,ignoreNextBlur:b,inlinePopup:i,mountNode:a,open:E,setActiveOption:g,setFocusVisible:w,setHasFocus:p,setOpen:I,setValue:C,size:c,value:T,multiselect:s}};function Y9(t){const{positioning:e}=t,o={position:"below",align:"start",offset:{crossAxis:0,mainAxis:2},fallbackPositions:["above","after","after-top","before","before-top"],matchTargetSize:"width",...pc(e)},{targetRef:n,containerRef:i}=Cf(o);return[i,n]}function Z9(t,e,r){const{state:{multiselect:o},triggerRef:n,defaultProps:i}=r,a=Bt("fluent-listbox",lx(t)?t.id:void 0),s=he(t,{renderByDefault:!0,elementType:V1,defaultProps:{id:a,multiselect:o,tabIndex:void 0,...i}}),l=Q(fe(d=>{d.preventDefault()},s?.onMouseDown)),c=Q(fe(d=>{var f;d.preventDefault(),(f=n.current)===null||f===void 0||f.focus()},s?.onClick)),u=Be(s?.ref,e);return s&&(s.ref=u,s.onMouseDown=l,s.onClick=c),s}function Q9(t,e,r){const{state:{activeOption:o,getCount:n,getIndexOfId:i,getOptionAtIndex:a,open:s,selectOption:l,setActiveOption:c,setFocusVisible:u,setOpen:d,multiselect:f,setHasFocus:h},defaultProps:g,elementType:m}=r,w=ee(t,{defaultProps:{type:"text","aria-expanded":s,"aria-activedescendant":s?o?.id:void 0,role:"combobox",...typeof g=="object"&&g},elementType:m}),v=y.useRef(null);return w.ref=Be(v,w.ref,e),w.onBlur=fe(p=>{d(p,!1),h(!1)},w.onBlur),w.onFocus=fe(p=>{p.target===p.currentTarget&&h(!0)},w.onFocus),w.onClick=fe(p=>{d(p,!s)},w.onClick),w.onKeyDown=fe(p=>{const b=jd(p,{open:s,multiselect:f}),k=n()-1,x=o?i(o.id):-1;let S=x;switch(b){case"Open":p.preventDefault(),u(!0),d(p,!0);break;case"Close":p.stopPropagation(),p.preventDefault(),d(p,!1);break;case"CloseSelect":!f&&!o?.disabled&&d(p,!1);case"Select":o&&l(p,o),p.preventDefault();break;case"Tab":!f&&o&&l(p,o);break;default:S=jT(b,x,k)}S!==x&&(p.preventDefault(),c(a(S)),u(!0))},w.onKeyDown),w.onMouseOver=fe(p=>{u(!1)},w.onMouseOver),w}function J9(t,e,r){const{state:{open:o,value:n,activeOption:i,selectOption:a,setValue:s,setActiveOption:l,setFocusVisible:c,multiselect:u,selectedOptions:d,clearSelection:f,getOptionsMatchingText:h,getIndexOfId:g,setOpen:m},freeform:w,defaultProps:v}=r,p=O=>{!o&&!w&&(n&&i&&n.trim().toLowerCase()===i?.text.toLowerCase()&&a(O,i),s(void 0))},b=O=>{const I=O?.trim().toLowerCase();if(!I||I.length===0)return;const q=h(M=>M.toLowerCase().indexOf(I)===0);if(q.length>1&&i){const M=g(i.id),W=q.find(B=>g(B.id)>=M);return W??q[0]}var N;return(N=q[0])!==null&&N!==void 0?N:void 0},k=O=>{const I=O.target.value;s(I);const H=b(I);l(H),c(!0),!u&&d.length===1&&(I.length<1||!H)&&f(O)},x=Q9(t,e,{state:r.state,defaultProps:v,elementType:"input"});x.onChange=fe(x.onChange,k),x.onBlur=fe(x.onBlur,p);const[S,_]=y.useState(!1),C=y.useRef(!1),T=x.onKeyDown,E=Q(O=>{!o&&jd(O)==="Type"&&m(O,!0),O.key===kf||O.key===hc?_(!0):_(!1);const I=jd(O,{open:o,multiselect:u});if(I==="Type"?C.current=!0:(I==="Open"&&O.key!==" "||I==="Next"||I==="Previous"||I==="First"||I==="Last"||I==="PageUp"||I==="PageDown")&&(C.current=!1),(C.current||!o)&&O.key===" "){var H;t==null||(H=t.onKeyDown)===null||H===void 0||H.call(t,O);return}T?.(O)});return x.onKeyDown=E,S&&(x["aria-activedescendant"]=void 0),x}const eD=(t,e)=>{var r,o;t=ys(t,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const n=X9({...t,editable:!0}),{clearable:i,clearSelection:a,multiselect:s,open:l,selectedOptions:c,selectOption:u,setOpen:d,setValue:f,value:h,hasFocus:g}=n,[m,w]=Y9(t),{disabled:v,freeform:p,inlinePopup:b}=t,k=Bt("combobox-"),{primary:x,root:S}=Ki({props:t,primarySlotTagName:"input",excludedPropNames:["children","size"]});n.selectOption=(D,U)=>{f(void 0),u(D,U)},n.setOpen=(D,U)=>{v||(!U&&!p&&f(void 0),d(D,U))};const _=y.useRef(null),C=Z9(t.listbox,m,{state:n,triggerRef:_,defaultProps:{children:t.children}});var T;const E=J9((T=t.input)!==null&&T!==void 0?T:{},Be(_,e),{state:n,freeform:p,defaultProps:{type:"text",value:h??"",...x}}),O=ee(t.root,{defaultProps:{"aria-owns":!b&&l?C?.id:void 0,...S},elementType:"div"});O.ref=Be(O.ref,w);const I=c.length>0&&i&&!s,H={components:{root:"div",input:"input",expandIcon:"span",listbox:V1,clearIcon:"span"},root:O,input:E,listbox:l||g?C:void 0,clearIcon:he(t.clearIcon,{defaultProps:{"aria-hidden":"true",children:y.createElement(YN,null)},elementType:"span",renderByDefault:!0}),expandIcon:he(t.expandIcon,{renderByDefault:!0,defaultProps:{"aria-expanded":l,children:y.createElement(KN,null),role:"button"},elementType:"span"}),showClearIcon:I,...n},{onMouseDown:q}=H.expandIcon||{},N=Q(fe(q,D=>{var U;D.preventDefault(),H.setOpen(D,!H.open),(U=_.current)===null||U===void 0||U.focus()}));if(H.expandIcon){H.expandIcon.onMouseDown=N;const D=H.expandIcon["aria-label"]||H.expandIcon["aria-labelledby"],U="Open";if(!D)if(t["aria-labelledby"]){var M;const z=(M=H.expandIcon.id)!==null&&M!==void 0?M:`${k}-chevron`,L=`${z} ${H.input["aria-labelledby"]}`;H.expandIcon["aria-label"]=U,H.expandIcon.id=z,H.expandIcon["aria-labelledby"]=L}else t["aria-label"]?H.expandIcon["aria-label"]=`${U} ${t["aria-label"]}`:H.expandIcon["aria-label"]=U}const W=Q(fe((r=H.clearIcon)===null||r===void 0?void 0:r.onMouseDown,D=>{D.preventDefault()})),B=Q(fe((o=H.clearIcon)===null||o===void 0?void 0:o.onClick,D=>{a(D)}));return H.clearIcon&&(H.clearIcon.onMouseDown=W,H.clearIcon.onClick=B),s&&(H.clearIcon=void 0),H},tD=(t,e)=>P(t.root,{children:we(Qr.Provider,{value:e.combobox,children:[P(t.input,{}),t.clearIcon&&P(t.clearIcon,{}),P(t.expandIcon,{}),t.listbox&&(t.inlinePopup?P(t.listbox,{}):P(Xi,{mountNode:t.mountNode,children:P(t.listbox,{})}))]})}),Ns={root:"fui-Combobox",input:"fui-Combobox__input",expandIcon:"fui-Combobox__expandIcon",clearIcon:"fui-Combobox__clearIcon",listbox:"fui-Combobox__listbox"},rD=F({root:{Bt984gj:"f122n59",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B7ck84d:"f1ewtqcl",i8kkvl:"f14mj54c",mc9l5x:"fwk3njj",Budl1dq:"fz17x9o",Brf1p80:"f1869bpl",Bf4jedk:"f1exfvgq",qhf8xq:"f10pi13n",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"],Bcgy8vk:"f14pi962",Bw17bha:"f1lh990p",B1q35kw:"f1jc6hxc",Gjdm7m:"f13evtba",b1kco5:"f1yk9hq",Ba2ppi3:"fhwpy7i",F2fol1:"f14ee0xe",lck23g:"f1xhbsuh",df92cz:"fv8e3ye",I188md:"ftb5wc6",umuwi5:"fjw5xc1",Blcqepd:"f1xdyd5c",nplu4u:"fatpbeo",Bioka5o:"fb7uyps",H713fs:"f1cmft4k",B9ooomg:"f1x58t8o",Bercvud:"f1ibeo51"},listbox:{E5pizo:"f1hg901r",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],Bxyxcbc:"fmmk62d",B7ck84d:"f1ewtqcl"},listboxCollapsed:{mc9l5x:"fjseox"},small:{z189sj:["fdw0yi8","fk8j09s"]},medium:{z189sj:["f11gcy0p","f1ng84yb"]},large:{i8kkvl:"f1rjii52",z189sj:["fw5db7e","f1uw59to"]},outline:{De3pzq:"fxugw4r",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1c1zstj",zhjwy3:["f1lxtadh","f1akhkt"]},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"flmw63s",gg5e9n:["f1m52nbi","f1ub3y4t"],B6oc9vd:"fvs00aa",ak43y8:["f1assf6x","f4ruux4"],wmxk5l:"fqhmt4z",B50zh58:["f4ruux4","f1assf6x"]},underline:{De3pzq:"f1c21dwh",Bn0qgzm:"f1vxd6vx",oivjwe:"fg706s2",B9xav0g:"f1c1zstj",Bbmb7ep:["f1krrbdw","f1deotkl"],Beyfa6y:["f1deotkl","f1krrbdw"],B7oj6ja:["f10ostut","f1ozlkrg"],Btl43ni:["f1ozlkrg","f10ostut"]},"filled-lighter":{De3pzq:"fxugw4r",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},"filled-darker":{De3pzq:"f16xq7d1",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},invalidUnderline:{hhx65j:"f1fgmyf4"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"]}},{d:[".f122n59{align-items:center;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".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;}",".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);}",".f14pi962::after{border-bottom-width:var(--strokeWidthThick);}",".f1lh990p::after{border-bottom-style:solid;}",".f1jc6hxc::after{border-bottom-color:var(--colorCompoundBrandStroke);}",".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);}",".fmmk62d{max-height:80vh;}",".fjseox{display:none;}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1krrbdw{border-bottom-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1ozlkrg{border-top-left-radius:0;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".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);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.fv8e3ye::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.ftb5wc6::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1cmft4k:focus-within::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1x58t8o:focus-within::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".flmw63s:hover{border-bottom-color:var(--colorNeutralStrokeAccessible);}"],a:[".fvs00aa:active{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1assf6x:active{border-right-color:var(--colorNeutralStroke1Pressed);}",".f4ruux4:active{border-left-color:var(--colorNeutralStroke1Pressed);}",".fqhmt4z:active{border-bottom-color:var(--colorNeutralStrokeAccessible);}"]}),oD=F({input:{De3pzq:"f1c21dwh",B4j52fo:"fre7gi1",Bekrc4i:["f1358rze","f1rvrf73"],Bn0qgzm:"fqdk4by",ibv6hh:["f1rvrf73","f1358rze"],sj55zd:"f19n0e5",Bahqtrf:"fk6fouc",Brovlpu:"ftqa4ok",yvdlaj:"fwyc1cq",B3o7kgh:"f13ta7ih"},small:{Bqenvij:"f50nw0v",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1xile11","fqznh8f"]},medium:{Bqenvij:"f1tvdnth",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1e60jzv","f135dnwl"]},large:{Bqenvij:"f1ihhdec",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["fnphzt9","flt1dlf"]},disabled:{sj55zd:"f1s2aq7o",De3pzq:"f1c21dwh",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fre7gi1{border-top-width:0;}",".f1358rze{border-right-width:0;}",".f1rvrf73{border-left-width:0;}",".fqdk4by{border-bottom-width:0;}",".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;}",".f50nw0v{height:22px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".f1xile11{padding-left:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".fqznh8f{padding-right:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".f1tvdnth{height:30px;}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1e60jzv{padding-left:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f135dnwl{padding-right:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f1ihhdec{height:38px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fnphzt9{padding-left:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".flt1dlf{padding-right:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".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;}"]}),nD=F({icon:{B7ck84d:"f1ewtqcl",sj55zd:"fxkbij4",Bceei9c:"f1k6fduh",mc9l5x:"ftgm304",Be2twd7:"f1pp30po",Bo70h7d:"fvc9v3g"},hidden:{mc9l5x:"fjseox"},visuallyHidden:{Bh84pgu:"f1ekcaio",Bqenvij:"f1mpe4l3",B6of3ja:"fkrn0sh",t21cq0:["f179hvsh","f1538868"],jrapky:"fmxx68s",Frg6f3:["f1538868","f179hvsh"],B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",z8tnut:"f1nbblvp",z189sj:["fifp7yv","f1asdtw4"],Byoj8tv:"f1ov4xf1",uwmqm3:["f1asdtw4","fifp7yv"],a9b677:"frkrog8",qhf8xq:"f1euv43f"},small:{Be2twd7:"f4ybsrx",Frg6f3:["f1h9en5y","f1xk557c"]},medium:{Be2twd7:"fe5j1ua",Frg6f3:["f1h9en5y","f1xk557c"]},large:{Be2twd7:"f1rt2boy",Frg6f3:["f1t5qyk5","f1ikr372"]},disabled:{sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr"}},{d:[".f1ewtqcl{box-sizing:border-box;}",".fxkbij4{color:var(--colorNeutralStrokeAccessible);}",".f1k6fduh{cursor:pointer;}",".ftgm304{display:block;}",".f1pp30po{font-size:var(--fontSizeBase500);}",".fvc9v3g svg{display:block;}",".fjseox{display:none;}",".f1ekcaio{clip:rect(0px, 0px, 0px, 0px);}",".f1mpe4l3{height:1px;}",".fkrn0sh{margin-top:-1px;}",".f179hvsh{margin-right:-1px;}",".f1538868{margin-left:-1px;}",".fmxx68s{margin-bottom:-1px;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".f1nbblvp{padding-top:0px;}",".fifp7yv{padding-right:0px;}",".f1asdtw4{padding-left:0px;}",".f1ov4xf1{padding-bottom:0px;}",".frkrog8{width:1px;}",".f1euv43f{position:absolute;}",".f4ybsrx{font-size:16px;}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".fe5j1ua{font-size:20px;}",".f1rt2boy{font-size:24px;}",".f1t5qyk5{margin-left:var(--spacingHorizontalSNudge);}",".f1ikr372{margin-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}"]}),iD=t=>{const{appearance:e,open:r,size:o,showClearIcon:n}=t,i=`${t.input["aria-invalid"]}`=="true",a=t.input.disabled,s=rD(),l=nD(),c=oD();return t.root.className=R(Ns.root,s.root,s[e],s[o],!a&&e==="outline"&&s.outlineInteractive,i&&e!=="underline"&&s.invalid,i&&e==="underline"&&s.invalidUnderline,a&&s.disabled,t.root.className),t.input.className=R(Ns.input,c.input,c[o],a&&c.disabled,t.input.className),t.listbox&&(t.listbox.className=R(Ns.listbox,s.listbox,!r&&s.listboxCollapsed,t.listbox.className)),t.expandIcon&&(t.expandIcon.className=R(Ns.expandIcon,l.icon,l[o],a&&l.disabled,n&&l.visuallyHidden,t.expandIcon.className)),t.clearIcon&&(t.clearIcon.className=R(Ns.clearIcon,l.icon,l[o],a&&l.disabled,!n&&l.hidden,t.clearIcon.className)),t},aD=y.forwardRef((t,e)=>{const r=eD(t,e),o=M9(r);return iD(r),de("useComboboxStyles_unstable")(r),tD(r,o)});aD.displayName="Combobox";const qT=t=>P(t.root,{children:t.root.children!==void 0&&P(t.wrapper,{children:t.root.children})}),LT=(t,e)=>{const{alignContent:r="center",appearance:o="default",inset:n=!1,vertical:i=!1,wrapper:a}=t,s=Bt("divider-");return{alignContent:r,appearance:o,inset:n,vertical:i,components:{root:"div",wrapper:"div"},root:ee(me("div",{role:"separator","aria-orientation":i?"vertical":"horizontal","aria-labelledby":t.children?s:void 0,...t,ref:e}),{elementType:"div"}),wrapper:ee(a,{defaultProps:{id:s,children:t.children},elementType:"div"})}},Nw={root:"fui-Divider",wrapper:"fui-Divider__wrapper"},sD=F({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:"fkfq4zb",Bq4z7u6:"f5g06un",Bk5zm6e:["f13sxdku","f1n015lb"],Bqjgrrk:"f1x6bl8t",Bm6vgfq:["f1n015lb","f13sxdku"],B0n5ga8:"fvod1wy",s924m2:["fwslg65","flk0e17"],B1q35kw:"f103fvts",Gp14am:["flk0e17","fwslg65"]},strong:{sj55zd:"fkfq4zb",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);}",".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);}",".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);}"]}),lD=F({base:{a9b677:"fly5x3f",Bdkvgpv:"f163fonl",B0qfbqy:"f51yk4v",pbipgd:"f13rof3u",Bm2nyyq:"f8rth92",xrcqlc:"f6czdpx",i5u598:"f1iyka9k"},inset:{uwmqm3:["fjlbh76","f11qrl6u"],z189sj:["f11qrl6u","fjlbh76"]},start:{Ftih45:"f1wl9k8s",Bicfajf:["f1ojjlep","fk1kexq"],Bxwl2t9:"f1he2m4d",jwcpgy:["f12w1bnb","f1558wlj"]},center:{Bicfajf:["f1ojjlep","fk1kexq"],jwcpgy:["f12w1bnb","f1558wlj"]},end:{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;}",'.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;}",'.f13zj6fq::after{content:"";}',".f1ayce8x::after{max-width:8px;}"]}),cD=F({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;}"]}),HT=t=>{const e=sD(),r=lD(),o=cD(),{alignContent:n,appearance:i,inset:a,vertical:s}=t;return t.root.className=R(Nw.root,e.base,e[n],i&&e[i],!s&&r.base,!s&&a&&r.inset,!s&&r[n],s&&o.base,s&&a&&o.inset,s&&o[n],s&&t.root.children!==void 0&&o.withChildren,t.root.children===void 0&&e.childless,t.root.className),t.wrapper&&(t.wrapper.className=R(Nw.wrapper,t.wrapper.className)),t},uD=y.forwardRef((t,e)=>{const r=LT(t,e);return HT(r),de("useDividerStyles_unstable")(r),qT(r)});uD.displayName="Divider";const dD=(t,e)=>{t=ys(t,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const r=gf();var o;const{size:n="medium",appearance:i=(o=r.inputDefaultAppearance)!==null&&o!==void 0?o:"outline",onChange:a}=t,[s,l]=Et({state:t.value,defaultState:t.defaultValue,initialState:""}),c=Ki({props:t,primarySlotTagName:"input",excludedPropNames:["size","onChange","value","defaultValue"]}),u={size:n,appearance:i,components:{root:"span",input:"input",contentBefore:"span",contentAfter:"span"},input:ee(t.input,{defaultProps:{type:"text",ref:e,...c.primary},elementType:"input"}),contentAfter:he(t.contentAfter,{elementType:"span"}),contentBefore:he(t.contentBefore,{elementType:"span"}),root:ee(t.root,{defaultProps:c.root,elementType:"span"})};return u.input.value=s,u.input.onChange=Q(d=>{const f=d.target.value;a?.(d,{value:f}),l(f)}),u},fD=t=>we(t.root,{children:[t.contentBefore&&P(t.contentBefore,{}),P(t.input,{}),t.contentAfter&&P(t.contentAfter,{})]}),Jc={root:"fui-Input",input:"fui-Input__input",contentBefore:"fui-Input__contentBefore",contentAfter:"fui-Input__contentAfter"},hD=ge("r1jtohuq","rl1z2p5",{r:[".r1jtohuq{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;min-height:32px;padding:0 var(--spacingHorizontalMNudge);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);}",'.r1jtohuq::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);}',".r1jtohuq:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".r1jtohuq:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".r1jtohuq:focus-within{outline:2px solid transparent;}",".rl1z2p5{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;min-height:32px;padding:0 var(--spacingHorizontalMNudge);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);}",'.rl1z2p5::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);}',".rl1z2p5:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".rl1z2p5:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".rl1z2p5:focus-within{outline:2px solid transparent;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1jtohuq::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r1jtohuq:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.rl1z2p5::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.rl1z2p5:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}"]}),gD=F({small:{sshi5w:"f1pha7fy",uwmqm3:["fk8j09s","fdw0yi8"],z189sj:["fdw0yi8","fk8j09s"],Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},medium:{},large:{sshi5w:"f1w5jphr",uwmqm3:["f1uw59to","fw5db7e"],z189sj:["fw5db7e","f1uw59to"],Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",i8kkvl:"f1rjii52",Belr9w4:"f1r7g2jn"},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",Bbmb7ep:["f1krrbdw","f1deotkl"],Beyfa6y:["f1deotkl","f1krrbdw"],B7oj6ja:["f10ostut","f1ozlkrg"],Btl43ni:["f1ozlkrg","f10ostut"],icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],wvpqe5:["f1deefiw","f1n71otn"],Eqx8gd:["f1n6gb5g","f15yvnhg"],B1piin3:["f15yvnhg","f1n6gb5g"]},underlineInteractive:{oetu4i:"f1l4zc64",Be8ivqh:"f1klwx88",B3778ie:["f1nf3wye","feulmo5"],d9w3h3:["feulmo5","f1nf3wye"],Bl18szs:["f18vqdqu","f53nyzz"],B4j8arr:["f53nyzz","f18vqdqu"]},filled:{g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},filledInteractive:{q7v0qe:"ftmjh5b",kmh5ft:["f17blpuu","fsrcdbj"],nagaa4:"f1tpwn32",B1yhkcb:["fsrcdbj","f17blpuu"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},"filled-darker":{De3pzq:"f16xq7d1"},"filled-lighter":{De3pzq:"fxugw4r"},"filled-darker-shadow":{De3pzq:"f16xq7d1",E5pizo:"fyed02w"},"filled-lighter-shadow":{De3pzq:"fxugw4r",E5pizo:"fyed02w"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"],Bsft5z2:"fhr9occ",Bduesf4:"f99w1ws"}},{d:[".f1pha7fy{min-height:24px;}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1w5jphr{min-height:40px;}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".f1r7g2jn{row-gap:var(--spacingHorizontalSNudge);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1krrbdw{border-bottom-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1ozlkrg{border-top-left-radius:0;}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".f1nf3wye::after{border-bottom-right-radius:0;}",".feulmo5::after{border-bottom-left-radius:0;}",".f18vqdqu::after{border-top-right-radius:0;}",".f53nyzz::after{border-top-left-radius:0;}",".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;}"],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}",".ftmjh5b:hover,.ftmjh5b:focus-within{border-top-color:var(--colorTransparentStrokeInteractive);}",".f17blpuu:hover,.f17blpuu:focus-within{border-right-color:var(--colorTransparentStrokeInteractive);}",".fsrcdbj:hover,.fsrcdbj:focus-within{border-left-color:var(--colorTransparentStrokeInteractive);}",".f1tpwn32:hover,.f1tpwn32:focus-within{border-bottom-color:var(--colorTransparentStrokeInteractive);}"],a:[".f8vnjqi:active,.f8vnjqi:focus-within{border-top-color:var(--colorNeutralStroke1Pressed);}",".fz1etlk:active,.fz1etlk:focus-within{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1hc16gm:active,.f1hc16gm:focus-within{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1klwx88:active,.f1klwx88:focus-within{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"],m:[["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],w:[".f99w1ws:focus-within{outline-style:none;}"]}),pD=ge("rvp2gzh",null,[".rvp2gzh{box-sizing:border-box;flex-grow:1;min-width:0;border-style:none;padding:0 var(--spacingHorizontalXXS);color:var(--colorNeutralForeground1);background-color:transparent;outline-style:none;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;}",".rvp2gzh::-webkit-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".rvp2gzh::-moz-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".rvp2gzh:-ms-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".rvp2gzh::placeholder{color:var(--colorNeutralForeground4);opacity:1;}"]),mD=F({large:{uwmqm3:["fk8j09s","fdw0yi8"],z189sj:["fdw0yi8","fk8j09s"]},disabled:{sj55zd:"f1s2aq7o",De3pzq:"f1c21dwh",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"}},{d:[".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);}"]}),vD=ge("r1572tok",null,[".r1572tok{box-sizing:border-box;color:var(--colorNeutralForeground3);display:flex;}",".r1572tok>svg{font-size:20px;}"]),bD=F({disabled:{sj55zd:"f1s2aq7o"},small:{kwki1k:"f3u2cy0"},medium:{},large:{kwki1k:"fa420co"}},{d:[".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f3u2cy0>svg{font-size:16px;}",".fa420co>svg{font-size:24px;}"]}),yD=t=>{const{size:e,appearance:r}=t,o=t.input.disabled,n=`${t.input["aria-invalid"]}`=="true",i=r.startsWith("filled"),a=gD(),s=mD(),l=bD();t.root.className=R(Jc.root,hD(),a[e],a[r],!o&&r==="outline"&&a.outlineInteractive,!o&&r==="underline"&&a.underlineInteractive,!o&&i&&a.filledInteractive,i&&a.filled,!o&&n&&a.invalid,o&&a.disabled,t.root.className),t.input.className=R(Jc.input,pD(),e==="large"&&s.large,o&&s.disabled,t.input.className);const c=[vD(),o&&l.disabled,l[e]];return t.contentBefore&&(t.contentBefore.className=R(Jc.contentBefore,...c,t.contentBefore.className)),t.contentAfter&&(t.contentAfter.className=R(Jc.contentAfter,...c,t.contentAfter.className)),t},wD=y.forwardRef((t,e)=>{const r=dD(t,e);return yD(r),de("useInputStyles_unstable")(r),fD(r)});wD.displayName="Input";const kD=t=>P(t.root,{}),SD=(t,e)=>{const{bordered:r=!1,fit:o="default",block:n=!1,shape:i="square",shadow:a=!1}=t;return{bordered:r,fit:o,block:n,shape:i,shadow:a,components:{root:"img"},root:ee(me("img",{ref:e,...t}),{elementType:"img"})}},_D={root:"fui-Image"},xD=F({base:{g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1aperda",zhjwy3:["f1lxtadh","f1akhkt"],Bbmb7ep:["fzi6hpg","fyowgf4"],Beyfa6y:["fyowgf4","fzi6hpg"],B7oj6ja:["f3fg2lr","f13av6d4"],Btl43ni:["f13av6d4","f3fg2lr"],B7ck84d:"f1ewtqcl",mc9l5x:"f14t3ns0"},bordered:{icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"]},circular:{Bbmb7ep:["f8fbkgy","f1nfllo7"],Beyfa6y:["f1nfllo7","f8fbkgy"],B7oj6ja:["f1djnp8u","f1s8kh49"],Btl43ni:["f1s8kh49","f1djnp8u"]},rounded:{Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"]},square:{},shadow:{E5pizo:"f1whvlc6"},center:{st4lth:"f1plgu50",Ermj5k:"f14xojzb",Bqenvij:"f1l02sjl",a9b677:"fly5x3f"},contain:{st4lth:"f1kle4es",Ermj5k:"f14xojzb",Bqenvij:"f1l02sjl",a9b677:"fly5x3f"},default:{},cover:{st4lth:"f1ps3kmd",Ermj5k:"f14xojzb",Bqenvij:"f1l02sjl",a9b677:"fly5x3f"},none:{st4lth:"f1plgu50",Ermj5k:["f13uwng7","fjmyj0p"],Bqenvij:"f1l02sjl",a9b677:"fly5x3f"},block:{a9b677:"fly5x3f"}},{d:[".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1aperda{border-bottom-color:var(--colorNeutralStroke1);}",".fzi6hpg{border-bottom-right-radius:var(--borderRadiusNone);}",".fyowgf4{border-bottom-left-radius:var(--borderRadiusNone);}",".f3fg2lr{border-top-right-radius:var(--borderRadiusNone);}",".f13av6d4{border-top-left-radius:var(--borderRadiusNone);}",".f1ewtqcl{box-sizing:border-box;}",".f14t3ns0{display:inline-block;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".f8fbkgy{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1nfllo7{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1djnp8u{border-top-right-radius:var(--borderRadiusCircular);}",".f1s8kh49{border-top-left-radius:var(--borderRadiusCircular);}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f1whvlc6{box-shadow:var(--shadow4);}",".f1plgu50{object-fit:none;}",".f14xojzb{object-position:center;}",".f1l02sjl{height:100%;}",".fly5x3f{width:100%;}",".f1kle4es{object-fit:contain;}",".f1ps3kmd{object-fit:cover;}",".f13uwng7{object-position:left top;}",".fjmyj0p{object-position:right top;}"]}),CD=t=>{const e=xD();t.root.className=R(_D.root,e.base,t.block&&e.block,t.bordered&&e.bordered,t.shadow&&e.shadow,e[t.fit],e[t.shape],t.root.className)},TD=y.forwardRef((t,e)=>{const r=SD(t,e);return CD(r),de("useImageStyles_unstable")(r),kD(r)});TD.displayName="Image";const ED=t=>{const{disabled:e,disabledFocusable:r}=t,{onClick:o,onKeyDown:n,role:i,tabIndex:a}=t.root;return t.root.as==="a"&&(t.root.href=e?void 0:t.root.href,(e||r)&&(t.root.role=i||"link")),(t.root.as==="a"||t.root.as==="span")&&(t.root.tabIndex=a??(e&&!r?void 0:0)),t.root.onClick=s=>{e||r?s.preventDefault():o?.(s)},t.root.onKeyDown=s=>{(e||r)&&(s.key===To||s.key===Or)?(s.preventDefault(),s.stopPropagation()):n?.(s)},t.disabled=e||r,t.root["aria-disabled"]=e||r||void 0,t.root.as==="button"&&(t.root.disabled=e&&!r),t},BD=(t,e)=>{const r=Mv(),{appearance:o="default",disabled:n=!1,disabledFocusable:i=!1,inline:a=!1}=t,s=t.as||(t.href?"a":"button"),l={role:s==="span"?"button":void 0,type:s==="button"?"button":void 0,...t,as:s},c={appearance:o,disabled:n,disabledFocusable:i,inline:a,components:{root:s},root:ee(me(s,{ref:e,...l}),{elementType:s}),backgroundAppearance:r};return ED(c),c},ID={root:"fui-Link"},RD=F({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",B6of3ja:"f1hu3pq6",t21cq0:["f11qmguv","f1tyq0we"],jrapky:"f19f4twv",Frg6f3:["f1tyq0we","f11qmguv"],z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1cnd47f","fhxju0i"],B68tc82:"fqv5qza",Bmxbyg5:"f1vmzxwi",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:"fkfq4zb",Bde5pd6:"f1tx3yz7",Bi91k9c:"fnwyq0v",i089h6:"f1eh06m1",lj723h:"flvvhsy"},inline:{w71qe1:"f13mvf36"},disabled:{w71qe1:"f1iuv45f",sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bde5pd6:"fbnuktb",Bi91k9c:"fvgxktp",i089h6:"fljg2da",lj723h:"f19wldhg"},inverted:{sj55zd:"f1qz2gb0",Bi91k9c:"f1mlt8il",lj723h:"f1hsd4st"}},{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);}",".f1hu3pq6{margin-top:0;}",".f11qmguv{margin-right:0;}",".f1tyq0we{margin-left:0;}",".f19f4twv{margin-bottom:0;}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".fqv5qza{overflow-x:inherit;}",".f1vmzxwi{overflow-y:inherit;}",".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;-ms-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;}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f13mvf36{text-decoration-line:underline;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f1qz2gb0{color:var(--colorBrandForegroundInverted);}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"],h:[".f1tx3yz7:hover{text-decoration-line:underline;}",".f1deo86v:hover{color:var(--colorBrandForegroundLinkHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".fbnuktb:hover{text-decoration-line:none;}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".f1mlt8il:hover{color:var(--colorBrandForegroundInvertedHover);}"],a:[".f1eh06m1:active{text-decoration-line:underline;}",".f1iescvh:active{color:var(--colorBrandForegroundLinkPressed);}",".flvvhsy:active{color:var(--colorNeutralForeground2Pressed);}",".fljg2da:active{text-decoration-line:none;}",".f19wldhg:active{color:var(--colorNeutralForegroundDisabled);}",".f1hsd4st:active{color:var(--colorBrandForegroundInvertedPressed);}"]}),AD=t=>{const e=RD(),{appearance:r,disabled:o,inline:n,root:i,backgroundAppearance:a}=t;return t.root.className=R(ID.root,e.root,e.focusIndicator,i.as==="a"&&i.href&&e.href,i.as==="button"&&e.button,r==="subtle"&&e.subtle,a==="inverted"&&e.inverted,n&&e.inline,o&&e.disabled,t.root.className),t},ND=t=>P(t.root,{}),PD=y.forwardRef((t,e)=>{const r=BD(t,e);return AD(r),ND(r)});PD.displayName="Link";const G1=hn(void 0),zD={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},MD=G1.Provider,Xe=t=>ct(G1,(e=zD)=>t(e)),UT=y.createContext(void 0),OD=!1,jD=UT.Provider,DD=()=>{var t;return(t=y.useContext(UT))!==null&&t!==void 0?t:OD},$T=y.createContext(void 0),FD={headerId:""};$T.Provider;const qD=()=>{var t;return(t=y.useContext($T))!==null&&t!==void 0?t:FD},X1=hn(void 0),LD={checkedValues:{},setFocusByFirstCharacter:()=>null,toggleCheckbox:()=>null,selectRadio:()=>null,hasIcons:!1,hasCheckmarks:!1},HD=X1.Provider,Vp=t=>ct(X1,(e=LD)=>t(e)),Ul="fuimenuenter",UD=t=>{const{refs:e,callback:r,element:o,disabled:n}=t,i=Q(a=>{const s=e[0],l=a.target;var c;!Sl((c=s.current)!==null&&c!==void 0?c:null,l)&&!n&&r(a)});y.useEffect(()=>{if(o!=null)return n||o.addEventListener(Ul,i),()=>{o.removeEventListener(Ul,i)}},[i,o,n])},$D=(t,e)=>{t.dispatchEvent(new CustomEvent(Ul,{bubbles:!0,detail:{nativeEvent:e}}))};function Y1(){const t=Xe(r=>r.isSubmenu),e=fc(X1);return t||e}const KD=["after","after-bottom","before-top","before","before-bottom","above"],WD=t=>{const e=Y1(),{hoverDelay:r=500,inline:o=!1,hasCheckmarks:n=!1,hasIcons:i=!1,closeOnScroll:a=!1,openOnContext:s=!1,persistOnItemClick:l=!1,openOnHover:c=e,defaultCheckedValues:u,mountNode:d=null}=t,f=Bt("menu"),[h,g]=CC(),m={position:e?"after":"below",align:e?"top":"start",target:t.openOnContext?h:void 0,fallbackPositions:e?KD:void 0,...pc(t.positioning)},w=y.Children.toArray(t.children);let v,p;w.length===2?(v=w[0],p=w[1]):w.length===1&&(p=w[0]);const{targetRef:b,containerRef:k}=Cf(m),[x,S]=GD({hoverDelay:r,isSubmenu:e,setContextTarget:g,closeOnScroll:a,menuPopoverRef:k,triggerRef:b,open:t.open,defaultOpen:t.defaultOpen,onOpenChange:t.onOpenChange,openOnContext:s}),[_,C]=VD({checkedValues:t.checkedValues,defaultCheckedValues:u,onCheckedValueChange:t.onCheckedValueChange});return{inline:o,hoverDelay:r,triggerId:f,isSubmenu:e,openOnHover:c,contextTarget:h,setContextTarget:g,hasCheckmarks:n,hasIcons:i,closeOnScroll:a,menuTrigger:v,menuPopover:p,mountNode:d,triggerRef:b,menuPopoverRef:k,components:{},openOnContext:s,open:x,setOpen:S,checkedValues:_,onCheckedValueChange:C,persistOnItemClick:l}},VD=t=>{const[e,r]=Et({state:t.checkedValues,defaultState:t.defaultCheckedValues,initialState:{}}),o=Q((n,{name:i,checkedItems:a})=>{var s;(s=t.onCheckedValueChange)===null||s===void 0||s.call(t,n,{name:i,checkedItems:a}),r(l=>({...l,[i]:a}))});return[e,o]},GD=t=>{const{targetDocument:e}=Ae(),r=Xe(h=>h.setOpen),o=Q((h,g)=>{var m;return(m=t.onOpenChange)===null||m===void 0?void 0:m.call(t,h,g)}),n=y.useRef(0),i=y.useRef(!1),[a,s]=Et({state:t.open,defaultState:t.defaultOpen,initialState:!1}),l=Q((h,g)=>{const m=h instanceof CustomEvent&&h.type===Ul?h.detail.nativeEvent:h;o?.(m,{...g}),g.open&&h.type==="contextmenu"&&t.setContextTarget(h),g.open||t.setContextTarget(void 0),g.bubble&&r(h,{...g}),s(g.open)}),c=Q((h,g)=>{if(clearTimeout(n.current),!(h instanceof Event)&&h.persist&&h.persist(),h.type==="mouseleave"||h.type==="mouseenter"||h.type==="mousemove"||h.type===Ul){var m;!((m=t.triggerRef.current)===null||m===void 0)&&m.contains(h.target)&&(i.current=h.type==="mouseenter"||h.type==="mousemove"),n.current=setTimeout(()=>l(h,g),t.hoverDelay)}else l(h,g)});xx({contains:Sl,disabled:!a,element:e,refs:[t.menuPopoverRef,!t.openOnContext&&t.triggerRef].filter(Boolean),callback:h=>c(h,{open:!1,type:"clickOutside",event:h})});const u=t.openOnContext||t.closeOnScroll;Cx({contains:Sl,element:e,callback:h=>c(h,{open:!1,type:"scrollOutside",event:h}),refs:[t.menuPopoverRef,!t.openOnContext&&t.triggerRef].filter(Boolean),disabled:!a||!u}),UD({element:e,callback:h=>{i.current||c(h,{open:!1,type:"menuMouseEnter",event:h})},disabled:!a,refs:[t.menuPopoverRef]}),y.useEffect(()=>()=>{clearTimeout(n.current)},[]);const{findFirstFocusable:d}=No(),f=y.useCallback(()=>{const h=d(t.menuPopoverRef.current);h?.focus()},[d,t.menuPopoverRef]);return y.useEffect(()=>{a&&f()},[a,f]),[a,c]};function XD(t){const{checkedValues:e,hasCheckmarks:r,hasIcons:o,inline:n,isSubmenu:i,menuPopoverRef:a,mountNode:s,onCheckedValueChange:l,open:c,openOnContext:u,openOnHover:d,persistOnItemClick:f,setOpen:h,triggerId:g,triggerRef:m}=t;return{menu:{checkedValues:e,hasCheckmarks:r,hasIcons:o,inline:n,isSubmenu:i,menuPopoverRef:a,mountNode:s,onCheckedValueChange:l,open:c,openOnContext:u,openOnHover:d,persistOnItemClick:f,setOpen:h,triggerId:g,triggerRef:m}}}const YD=(t,e)=>y.createElement(MD,{value:e.menu},t.menuTrigger,t.open&&t.menuPopover),ZD=t=>{const e=WD(t),r=XD(e);return YD(e,r)};ZD.displayName="Menu";const QD=(t,e)=>({components:{root:"div"},root:ee(me("div",{role:"presentation","aria-hidden":!0,...t,ref:e}),{elementType:"div"})}),JD={root:"fui-MenuDivider"},eF=F({root:{B6of3ja:"fvjh0tl",t21cq0:["f1rnx978","f1q7jvqi"],jrapky:"fd1gkq",Frg6f3:["f1q7jvqi","f1rnx978"],a9b677:"f14z66ap",Bn0qgzm:"f1vxd6vx",oivjwe:"fg706s2",B9xav0g:"frpde29"}},{d:[".fvjh0tl{margin-top:4px;}",".f1rnx978{margin-right:-5px;}",".f1q7jvqi{margin-left:-5px;}",".fd1gkq{margin-bottom:4px;}",".f14z66ap{width:auto;}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fg706s2{border-bottom-style:solid;}",".frpde29{border-bottom-color:var(--colorNeutralStroke2);}"]}),tF=t=>{const e=eF();return t.root.className=R(JD.root,e.root,t.root.className),t},rF=t=>P(t.root,{}),oF=y.forwardRef((t,e)=>{const r=QD(t,e);return tF(r),de("useMenuDividerStyles_unstable")(r),rF(r)});oF.displayName="MenuDivider";function nF(t,e){const{headerId:r}=qD();return{components:{root:"div"},root:ee(me("div",{ref:e,id:r,...t}),{elementType:"div"})}}const iF={root:"fui-MenuGroupHeader"},aF=F({root:{Be2twd7:"fy9rknc",sj55zd:"f11d4kpn",uwmqm3:["fjlbh76","f11qrl6u"],z189sj:["f11qrl6u","fjlbh76"],Bhrd7zp:"fl43uef",Bqenvij:"f1d2rq10",mc9l5x:"f22iagw",Bt984gj:"f122n59"}},{d:[".fy9rknc{font-size:var(--fontSizeBase200);}",".f11d4kpn{color:var(--colorNeutralForeground3);}",".fjlbh76{padding-left:12px;}",".f11qrl6u{padding-right:12px;}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".f1d2rq10{height:32px;}",".f22iagw{display:flex;}",".f122n59{align-items:center;}"]}),sF=t=>{const e=aF();return t.root.className=R(iF.root,e.root,t.root.className),t},lF=t=>P(t.root,{}),cF=y.forwardRef((t,e)=>{const r=nF(t,e);return sF(r),de("useMenuGroupHeaderStyles_unstable")(r),lF(r)});cF.displayName="MenuGroupHeader";const uF=(t,e)=>{const r=Vp(n=>n.setFocusByFirstCharacter),{onKeyDown:o}=t.root;return t.root.onKeyDown=n=>{var i;o?.(n),!(((i=n.key)===null||i===void 0?void 0:i.length)>1)&&e.current&&r?.(n,e.current)},t},dF=Mx(GN,XN),fF=Mx(WN,VN),hF=(t,e)=>{const r=DD(),o=Xe(m=>m.persistOnItemClick),{as:n="div",disabled:i=!1,hasSubmenu:a=r,persistOnClick:s=o}=t,l=Vp(m=>m.hasIcons),c=Vp(m=>m.hasCheckmarks),u=Xe(m=>m.setOpen),{dir:d}=Ae(),f=y.useRef(null),h=y.useRef(!1),g={hasSubmenu:a,disabled:i,persistOnClick:s,components:{root:"div",icon:"span",checkmark:"span",submenuIndicator:"span",content:"span",secondaryContent:"span"},root:ee(me(n,Pi(n,{role:"menuitem",...t,disabled:!1,disabledFocusable:i,ref:Be(e,f),onKeyDown:Q(m=>{var w;(w=t.onKeyDown)===null||w===void 0||w.call(t,m),!m.isDefaultPrevented()&&(m.key===Or||m.key===To)&&(h.current=!0)}),onMouseEnter:Q(m=>{var w,v;(w=f.current)===null||w===void 0||w.focus(),(v=t.onMouseEnter)===null||v===void 0||v.call(t,m)}),onClick:Q(m=>{var w;!a&&!s&&(u(m,{open:!1,keyboard:h.current,bubble:!0,type:"menuItemClick",event:m}),h.current=!1),(w=t.onClick)===null||w===void 0||w.call(t,m)})})),{elementType:"div"}),icon:he(t.icon,{renderByDefault:l,elementType:"span"}),checkmark:he(t.checkmark,{renderByDefault:c,elementType:"span"}),submenuIndicator:he(t.submenuIndicator,{renderByDefault:a,defaultProps:{children:d==="ltr"?y.createElement(dF,null):y.createElement(fF,null)},elementType:"span"}),content:he(t.content,{renderByDefault:!!t.children,defaultProps:{children:t.children},elementType:"span"}),secondaryContent:he(t.secondaryContent,{elementType:"span"})};return uF(g,f),g},gF=t=>we(t.root,{children:[t.checkmark&&P(t.checkmark,{}),t.icon&&P(t.icon,{}),t.content&&P(t.content,{}),t.secondaryContent&&P(t.secondaryContent,{}),t.submenuIndicator&&P(t.submenuIndicator,{})]}),pF=F({root:{a9b677:"fjw5fx7",Bqenvij:"fd461yt",Bcdw1i0:"fd7fpy0"},rootChecked:{Bcdw1i0:"f1022m68"}},{d:[".fjw5fx7{width:16px;}",".fd461yt{height:16px;}",".fd7fpy0{visibility:hidden;}",".f1022m68{visibility:visible;}"]}),mF=t=>{const e=pF();t.checkmark&&(t.checkmark.className=R(e.root,t.checked&&e.rootChecked,t.checkmark.className))},Ji={root:"fui-MenuItem",icon:"fui-MenuItem__icon",checkmark:"fui-MenuItem__checkmark",submenuIndicator:"fui-MenuItem__submenuIndicator",content:"fui-MenuItem__content",secondaryContent:"fui-MenuItem__secondaryContent"},vF=ge("rf4m57v","rsbw0a0",{r:[".rf4m57v{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;-ms-user-select:none;user-select:none;}",".rf4m57v:hover{background-color:var(--colorNeutralBackground1Hover);color:var(--colorNeutralForeground2Hover);}",".rf4m57v:hover .fui-Icon-filled{display:inline;}",".rf4m57v:hover .fui-Icon-regular{display:none;}",".rf4m57v:hover .fui-MenuItem__icon{color:var(--colorNeutralForeground2BrandSelected);}",".rf4m57v:hover:active{background-color:var(--colorNeutralBackground1Pressed);color:var(--colorNeutralForeground2Pressed);}",".rf4m57v:focus{outline-style:none;}",".rf4m57v:focus-visible{outline-style:none;}",".rf4m57v[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.rf4m57v[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rsbw0a0{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;-ms-user-select:none;user-select:none;}",".rsbw0a0:hover{background-color:var(--colorNeutralBackground1Hover);color:var(--colorNeutralForeground2Hover);}",".rsbw0a0:hover .fui-Icon-filled{display:inline;}",".rsbw0a0:hover .fui-Icon-regular{display:none;}",".rsbw0a0:hover .fui-MenuItem__icon{color:var(--colorNeutralForeground2BrandSelected);}",".rsbw0a0:hover:active{background-color:var(--colorNeutralBackground1Pressed);color:var(--colorNeutralForeground2Pressed);}",".rsbw0a0:focus{outline-style:none;}",".rsbw0a0:focus-visible{outline-style:none;}",".rsbw0a0[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rsbw0a0[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.rf4m57v[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){.rsbw0a0[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),bF=ge("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;}"]),yF=ge("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);}"]),wF=ge("r9c34qo",null,[".r9c34qo{width:20px;height:20px;font-size:20px;line-height:0;align-items:center;display:inline-flex;justify-content:center;}"]),kF=ge("r9c34qo",null,[".r9c34qo{width:20px;height:20px;font-size:20px;line-height:0;align-items:center;display:inline-flex;justify-content:center;}"]),SF=F({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",t0hwav:"ft33916",Bbusuzp:"f1dcs8yz",ze5xyy:"f1kc2mi9",Bctn1xl:"fk56vqo",Bh6z0a4:"f1ikwg0d"}},{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);}"],f:[".ft33916:focus{color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1kc2mi9:hover{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fk56vqo:hover .fui-MenuItem__icon{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ikwg0d:focus{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),_F=t=>{const e=SF(),r=vF(),o=bF(),n=yF(),i=wF(),a=kF();t.root.className=R(Ji.root,r,t.disabled&&e.disabled,t.root.className),t.content&&(t.content.className=R(Ji.content,o,t.content.className)),t.checkmark&&(t.checkmark.className=R(Ji.checkmark,e.checkmark,t.checkmark.className)),t.secondaryContent&&(t.secondaryContent.className=R(Ji.secondaryContent,!t.disabled&&n,t.secondaryContent.className)),t.icon&&(t.icon.className=R(Ji.icon,i,t.icon.className)),t.submenuIndicator&&(t.submenuIndicator.className=R(Ji.submenuIndicator,a,t.submenuIndicator.className)),mF(t)},xF=y.forwardRef((t,e)=>{const r=hF(t,e);return _F(r),de("useMenuItemStyles_unstable")(r),gF(r)});xF.displayName="MenuItem";const CF=(t,e)=>{const{findAllFocusable:r}=No(),o=TF(),n=fc(G1),i=Za({circular:!0,ignoreDefaultKeydown:{Tab:n}});EF(t,o,n)&&console.warn("You are using both MenuList and Menu props, we recommend you to use Menu props when available");const a=y.useRef(null),s=y.useCallback((m,w)=>{const v=["menuitem","menuitemcheckbox","menuitemradio"];if(!a.current)return;const p=r(a.current,C=>C.hasAttribute("role")&&v.indexOf(C.getAttribute("role"))!==-1);let b=p.indexOf(w)+1;b===p.length&&(b=0);const k=p.map(C=>{var T;return(T=C.textContent)===null||T===void 0?void 0:T.charAt(0).toLowerCase()}),x=m.key.toLowerCase(),S=(C,T)=>{for(let E=C;E-1&&p[_].focus()},[r]);var l;const[c,u]=Et({state:(l=t.checkedValues)!==null&&l!==void 0?l:n?o.checkedValues:void 0,defaultState:t.defaultCheckedValues,initialState:{}});var d;const f=(d=t.onCheckedValueChange)!==null&&d!==void 0?d:n?o.onCheckedValueChange:void 0,h=Q((m,w,v,p)=>{const k=[...c?.[w]||[]];p?k.splice(k.indexOf(v),1):k.push(v),f?.(m,{name:w,checkedItems:k}),u(x=>({...x,[w]:k}))}),g=Q((m,w,v)=>{const p=[v];u(b=>({...b,[w]:p})),f?.(m,{name:w,checkedItems:p})});return{components:{root:"div"},root:ee(me("div",{ref:Be(e,a),role:"menu","aria-labelledby":o.triggerId,...i,...t}),{elementType:"div"}),hasIcons:o.hasIcons||!1,hasCheckmarks:o.hasCheckmarks||!1,checkedValues:c,hasMenuContext:n,setFocusByFirstCharacter:s,selectRadio:g,toggleCheckbox:h}},TF=()=>{const t=Xe(i=>i.checkedValues),e=Xe(i=>i.onCheckedValueChange),r=Xe(i=>i.triggerId),o=Xe(i=>i.hasIcons),n=Xe(i=>i.hasCheckmarks);return{checkedValues:t,onCheckedValueChange:e,triggerId:r,hasIcons:o,hasCheckmarks:n}},EF=(t,e,r)=>{let o=!1;for(const n in e)t[n]&&(o=!0);return r&&o},BF=(t,e)=>P(HD,{value:e.menuList,children:P(t.root,{})});function IF(t){const{checkedValues:e,hasCheckmarks:r,hasIcons:o,selectRadio:n,setFocusByFirstCharacter:i,toggleCheckbox:a}=t;return{menuList:{checkedValues:e,hasCheckmarks:r,hasIcons:o,selectRadio:n,setFocusByFirstCharacter:i,toggleCheckbox:a}}}const RF={root:"fui-MenuList"},AF=F({root:{mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",i8kkvl:"f16mnhsx",Belr9w4:"fbi42co"},hasMenuContext:{Bqenvij:"f1l02sjl"}},{d:[".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",".f16mnhsx{column-gap:2px;}",".fbi42co{row-gap:2px;}",".f1l02sjl{height:100%;}"]}),NF=t=>{const e=AF();return t.root.className=R(RF.root,e.root,t.hasMenuContext&&e.hasMenuContext,t.root.className),t},PF=y.forwardRef((t,e)=>{const r=CF(t,e),o=IF(r);return NF(r),de("useMenuListStyles_unstable")(r),BF(r,o)});PF.displayName="MenuList";const zF=(t,e)=>{const r=Xe(k=>k.menuPopoverRef),o=Xe(k=>k.setOpen),n=Xe(k=>k.open),i=Xe(k=>k.openOnHover),a=Xe(k=>k.triggerRef),s=Y1(),l=y.useRef(!0),c=y.useRef(0),u=V6(),{dir:d}=Ae(),f=d==="ltr"?kf:hc,h=y.useCallback(k=>{k&&k.addEventListener("mouseover",x=>{l.current&&(l.current=!1,$D(r.current,x),c.current=setTimeout(()=>l.current=!0,250))})},[r,c]);y.useEffect(()=>{},[]);var g;const m=(g=Xe(k=>k.inline))!==null&&g!==void 0?g:!1,w=Xe(k=>k.mountNode),v=ee(me("div",{role:"presentation",...u,...t,ref:Be(e,r,h)}),{elementType:"div"}),{onMouseEnter:p,onKeyDown:b}=v;return v.onMouseEnter=Q(k=>{i&&o(k,{open:!0,keyboard:!1,type:"menuPopoverMouseEnter",event:k}),p?.(k)}),v.onKeyDown=Q(k=>{const x=k.key;if(x===Po||s&&x===f){var S;n&&(!((S=r.current)===null||S===void 0)&&S.contains(k.target))&&!k.isDefaultPrevented()&&(o(k,{open:!1,keyboard:!0,type:"menuPopoverKeyDown",event:k}),k.preventDefault())}if(x===$v&&(o(k,{open:!1,keyboard:!0,type:"menuPopoverKeyDown",event:k}),!s)){var _;(_=a.current)===null||_===void 0||_.focus()}b?.(k)}),{inline:m,mountNode:w,components:{root:"div"},root:v}},MF={root:"fui-MenuPopover"},OF=F({root:{Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],De3pzq:"fxugw4r",sj55zd:"f19n0e5",B7ck84d:"f1ewtqcl",Bf4jedk:"fl8fusi",B2u0y6b:"f1kaai3v",B68tc82:"f1p9o1ba",a9b677:"f1ahpp82",E5pizo:"f1hg901r",z8tnut:"f10ra9hq",z189sj:["f8wuabp","fycuoez"],Byoj8tv:"f1y2xyjm",uwmqm3:["fycuoez","f8wuabp"],B4j52fo:"f5ogflp",Bekrc4i:["f1hqa2wf","finvdd3"],Bn0qgzm:"f1f09k3d",ibv6hh:["finvdd3","f1hqa2wf"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B93otf3:"f18k4bn6",vin17d:"fo1kyvf",Ezkn3b:"fetxo7e",nyiy2g:"f8x1vz1",swvrvq:"f8g0anz",Bkovbt3:"fezwn9i",hgjdhn:"fz5efge",fsy9dk:"f1ydixl4",B3ogreh:"f8dgqj5",jv49x5:"fnyfnr8",Bk7o48c:"fgw77r4",Bv12yb3:"ftje0s4",z0t1cu:"fi19xcv",Bks05zx:"f1mzajhk",Bvtglag:"fjp4h9y"}},{d:[".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".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);}",".f10ra9hq{padding-top:4px;}",".f8wuabp{padding-right:4px;}",".fycuoez{padding-left:4px;}",".f1y2xyjm{padding-bottom:4px;}",".f5ogflp{border-top-width:1px;}",".f1hqa2wf{border-right-width:1px;}",".finvdd3{border-left-width:1px;}",".f1f09k3d{border-bottom-width:1px;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f18k4bn6{animation-composition:accumulate;}",".fo1kyvf{animation-duration:var(--durationSlower);}",".fetxo7e{animation-timing-function:var(--curveDecelerateMid);}",".f8x1vz1{--fui-positioning-slide-distance-x:0px;}",".f8g0anz{--fui-positioning-slide-distance-y:10px;}",".fezwn9i[data-popper-placement^=right]{--fui-positioning-slide-distance-x:-10px;}",".fz5efge[data-popper-placement^=right]{--fui-positioning-slide-distance-y:0px;}",".f1ydixl4[data-popper-placement^=bottom]{--fui-positioning-slide-distance-x:0px;}",".f8dgqj5[data-popper-placement^=bottom]{--fui-positioning-slide-distance-y:-10px;}",".fnyfnr8[data-popper-placement^=left]{--fui-positioning-slide-distance-x:10px;}",".fgw77r4[data-popper-placement^=left]{--fui-positioning-slide-distance-y:0px;}",".ftje0s4{animation-name:f5j8bii,f79suad;}"],k:["@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}","@keyframes f79suad{from{transform:translate(var(--fui-positioning-slide-distance-x), var(--fui-positioning-slide-distance-y));}}"],m:[["@media (prefers-reduced-motion){.fi19xcv[data-popper-placement]{animation-duration:1ms;}}",{m:"(prefers-reduced-motion)"}],["@media (prefers-reduced-motion){.f1mzajhk[data-popper-placement]{animation-name:f5j8bii;}}",{m:"(prefers-reduced-motion)"}]],t:["@supports not (animation-composition: accumulate){.fjp4h9y[data-popper-placement]{animation-name:f5j8bii;}}"]}),jF=t=>{const e=OF();return t.root.className=R(MF.root,e.root,t.root.className),t},DF=t=>t.inline?P(t.root,{}):P(Xi,{mountNode:t.mountNode,children:P(t.root,{})}),FF=y.forwardRef((t,e)=>{const r=zF(t,e);return jF(r),de("useMenuPopoverStyles_unstable")(r),DF(r)});FF.displayName="MenuPopover";const qF=t=>{const{children:e,disableButtonEnhancement:r=!1}=t,o=Xe(I=>I.triggerRef),n=Xe(I=>I.menuPopoverRef),i=Xe(I=>I.setOpen),a=Xe(I=>I.open),s=Xe(I=>I.triggerId),l=Xe(I=>I.openOnHover),c=Xe(I=>I.openOnContext),u=W6(),d=Y1(),{findFirstFocusable:f}=No(),h=y.useCallback(()=>{const I=f(n.current);I?.focus()},[f,n]),g=y.useRef(!1),m=y.useRef(!1),{dir:w}=Ae(),v=w==="ltr"?hc:kf,p=lc(e),b=I=>{ea(I)||I.isDefaultPrevented()||c&&(I.preventDefault(),i(I,{open:!0,keyboard:!1,type:"menuTriggerContextMenu",event:I}))},k=I=>{ea(I)||c||(i(I,{open:!a,keyboard:g.current,type:"menuTriggerClick",event:I}),g.current=!1)},x=I=>{if(ea(I))return;const H=I.key;!c&&(d&&H===v||!d&&H===Qa)&&i(I,{open:!0,keyboard:!0,type:"menuTriggerKeyDown",event:I}),H===Po&&!d&&i(I,{open:!1,keyboard:!0,type:"menuTriggerKeyDown",event:I}),a&&H===v&&d&&h()},S=I=>{ea(I)||l&&m.current&&i(I,{open:!0,keyboard:!1,type:"menuTriggerMouseEnter",event:I})},_=I=>{ea(I)||l&&!m.current&&(i(I,{open:!0,keyboard:!1,type:"menuTriggerMouseMove",event:I}),m.current=!0)},C=I=>{ea(I)||l&&i(I,{open:!1,keyboard:!1,type:"menuTriggerMouseLeave",event:I})},T={id:s,...u,...p?.props,ref:Be(o,p?.ref),onMouseEnter:Q(fe(p?.props.onMouseEnter,S)),onMouseLeave:Q(fe(p?.props.onMouseLeave,C)),onContextMenu:Q(fe(p?.props.onContextMenu,b)),onMouseMove:Q(fe(p?.props.onMouseMove,_))},E={"aria-haspopup":"menu","aria-expanded":!a&&!d?void 0:a,...T,onClick:Q(fe(p?.props.onClick,k)),onKeyDown:Q(fe(p?.props.onKeyDown,x))},O=Pi(p?.type==="button"||p?.type==="a"?p.type:"div",E);return{isSubmenu:d,children:pf(e,c?T:r?E:O)}},ea=t=>{const e=r=>r.hasAttribute("disabled")||r.hasAttribute("aria-disabled")&&r.getAttribute("aria-disabled")==="true";return Ve(t.target)&&e(t.target)?!0:Ve(t.currentTarget)&&e(t.currentTarget)},LF=t=>y.createElement(jD,{value:t.isSubmenu},t.children),KT=t=>{const e=qF(t);return LF(e)};KT.displayName="MenuTrigger";KT.isFluentTriggerComponent=!0;const WT=y.createContext(void 0),HF={};WT.Provider;const UF=()=>y.useContext(WT)||HF,$F=t=>we(t.root,{children:[P(t.input,{}),P(t.indicator,{}),t.label&&P(t.label,{})]}),KF=(t,e)=>{const r=UF(),{name:o=r.name,checked:n=r.value!==void 0?r.value===t.value:void 0,defaultChecked:i=r.defaultValue!==void 0?r.defaultValue===t.value:void 0,labelPosition:a=r.layout==="horizontal-stacked"?"below":"after",disabled:s=r.disabled,required:l=r.required,"aria-describedby":c=r["aria-describedby"],onChange:u}=t,d=Ki({props:t,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","onChange"]}),f=ee(t.root,{defaultProps:{ref:gs(),...d.root},elementType:"span"}),h=ee(t.input,{defaultProps:{ref:e,type:"radio",id:Bt("radio-",d.primary.id),name:o,checked:n,defaultChecked:i,disabled:s,required:l,"aria-describedby":c,...d.primary},elementType:"input"});h.onChange=fe(h.onChange,w=>u?.(w,{value:w.currentTarget.value}));const g=he(t.label,{defaultProps:{htmlFor:h.id,disabled:h.disabled},elementType:uo}),m=ee(t.indicator,{defaultProps:{"aria-hidden":!0},elementType:"div"});return{labelPosition:a,components:{root:"span",input:"input",label:uo,indicator:"div"},root:f,input:h,label:g,indicator:m}},eu={root:"fui-Radio",indicator:"fui-Radio__indicator",input:"fui-Radio__input",label:"fui-Radio__label"},WF=ge("rm0dkue","rjjxb3w",{r:[".rm0dkue{display:inline-flex;position:relative;}",".rm0dkue:focus{outline-style:none;}",".rm0dkue:focus-visible{outline-style:none;}",".rm0dkue[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.rm0dkue[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rjjxb3w{display:inline-flex;position:relative;}",".rjjxb3w:focus{outline-style:none;}",".rjjxb3w:focus-visible{outline-style:none;}",".rjjxb3w[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rjjxb3w[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.rm0dkue[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){.rjjxb3w[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),VF=F({vertical:{Beiy3e4:"f1vx9l62",Bt984gj:"f122n59"}},{d:[".f1vx9l62{flex-direction:column;}",".f122n59{align-items:center;}"]}),GF=ge("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;}}"]}),XF=F({below:{a9b677:"fly5x3f",Bqenvij:"f1je6zif"},defaultIndicator:{Blbys7f:"f9ma1gx"},customIndicator:{Bojc29n:"fhb1dn5"}},{d:[".fly5x3f{width:100%;}",".f1je6zif{height:calc(16px + 2 * var(--spacingVerticalS));}",'.f9ma1gx:checked~.fui-Radio__indicator::after{content:"";}',".fhb1dn5:not(:checked)~.fui-Radio__indicator>*{opacity:0;}"]}),YF=ge("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;}"]),ZF=F({base:{qb2dma:"f7nlbp4",z8tnut:"f1kwiid1",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f5b47ha",uwmqm3:["f1f5gg8d","f1vdfbxk"]},after:{uwmqm3:["fruq291","f7x41pl"],B6of3ja:"fjzwpt6",jrapky:"fh6j2fo"},below:{z8tnut:"f1ywm7hm",fsow6f:"f17mccla"}},{d:[".f7nlbp4{align-self:center;}",".f1kwiid1{padding-top:var(--spacingVerticalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f5b47ha{padding-bottom:var(--spacingVerticalS);}",".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;}"]}),QF=t=>{const{labelPosition:e}=t,r=WF(),o=VF();t.root.className=R(eu.root,r,e==="below"&&o.vertical,t.root.className);const n=GF(),i=XF();t.input.className=R(eu.input,n,e==="below"&&i.below,t.indicator.children?i.customIndicator:i.defaultIndicator,t.input.className);const a=YF();t.indicator.className=R(eu.indicator,a,t.indicator.className);const s=ZF();t.label&&(t.label.className=R(eu.label,s.base,s[e],t.label.className))},Gp=y.forwardRef((t,e)=>{const r=KF(t,e);return QF(r),de("useRadioStyles_unstable")(r),$F(r)});Gp.displayName="Radio";const VT=y.createContext(void 0),JF={},eq=VT.Provider,GT=()=>{var t;return(t=y.useContext(VT))!==null&&t!==void 0?t:JF},tq=(t,e)=>{const{animation:r,appearance:o}=GT(),{animation:n=r??"wave",appearance:i=o??"opaque"}=t,a=ee(me("div",{ref:e,role:"progressbar","aria-busy":!0,"aria-label":"Loading Content",...t}),{elementType:"div"});return{animation:n,appearance:i,components:{root:"div"},root:a}},rq=(t,e)=>P(eq,{value:e.skeletonGroup,children:P(t.root,{})}),oq={root:"fui-Skeleton"},nq=t=>(t.root.className=R(oq.root,t.root.className),t),iq=t=>{const{animation:e,appearance:r}=t;return{skeletonGroup:y.useMemo(()=>({animation:e,appearance:r}),[e,r])}},aq=y.forwardRef((t,e)=>{const r=tq(t,e),o=iq(r);return nq(r),rq(r,o)});aq.displayName="Skeleton";const sq=(t,e)=>{const{animation:r,appearance:o}=GT(),{animation:n=r??"wave",appearance:i=o??"opaque",size:a=16,shape:s="rectangle"}=t,l=ee(me("div",{ref:e,...t}),{elementType:"div"});return{appearance:i,animation:n,size:a,shape:s,components:{root:"div"},root:l}},lq=t=>P(t.root,{}),cq={root:"fui-SkeletonItem"},uq=F({root:{qhf8xq:"f10pi13n",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",Bkjc3bi:"f1qx3921",B8a6bjv:"fj9j8l8",Bpptf2m:"f1b6djjb",Bgh53k4:"f1dsdmen",w3vfg9:"f1cpbl36",vin17d:"f1a27w2r",Ezkn3b:"f452v7t",Gqtpxc:"f4akx1t",B3vm3ge:"f18p5put"},wave:{Bv12yb3:"fj20wtk",Bcmaq0h:["f101ziu5","f152emvt"],Bpep1pd:"f9jxvrw"},waveRtl:{Bv12yb3:"f105t0nc",Bcmaq0h:["f101ziu5","f152emvt"],Bpep1pd:"f9jxvrw"},pulse:{Bv12yb3:"fnm2mpv",vin17d:"f1iuewzk",De3pzq:"f1gjxg63"},translucent:{Bcmaq0h:["fss7axp","f4160cw"]},translucentPulse:{De3pzq:"f162mh4z"}},{d:[".f10pi13n{position:relative;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".f1qx3921{background-size:300% 100%;}",".fj9j8l8{background-position-x:center;}",".f1b6djjb{background-position-y:center;}",".f1dsdmen{background-attachment:fixed;}",".f1cpbl36{animation-iteration-count:infinite;}",".f1a27w2r{animation-duration:3s;}",".f452v7t{animation-timing-function:linear;}",".fj20wtk{animation-name:fma800j;}",`.f101ziu5{background-image:linear-gradient( + to right, + var(--colorNeutralStencil1) 0%, + var(--colorNeutralStencil2) 50%, + var(--colorNeutralStencil1) 100%);}`,`.f152emvt{background-image:linear-gradient( + to left, + var(--colorNeutralStencil1) 0%, + var(--colorNeutralStencil2) 50%, + var(--colorNeutralStencil1) 100%);}`,".f105t0nc{animation-name:fj9wi3p;}",".fnm2mpv{animation-name:f12o7gg6;}",".f1iuewzk{animation-duration:1s;}",".f1gjxg63{background-color:var(--colorNeutralStencil1);}",`.fss7axp{background-image:linear-gradient( + to right, + var(--colorNeutralStencil1Alpha) 0%, + var(--colorNeutralStencil2Alpha) 50%, + var(--colorNeutralStencil1Alpha) 100%);}`,`.f4160cw{background-image:linear-gradient( + to left, + var(--colorNeutralStencil1Alpha) 0%, + var(--colorNeutralStencil2Alpha) 50%, + var(--colorNeutralStencil1Alpha) 100%);}`,".f162mh4z{background-color:var(--colorNeutralStencil1Alpha);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f4akx1t{animation-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f18p5put{animation-iteration-count:1;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (forced-colors: active){.f9jxvrw{background-color:WindowText;}}",{m:"screen and (forced-colors: active)"}]],k:["@keyframes fma800j{from{background-position-x:300%;}to{background-position-x:0%;}}","@keyframes fj9wi3p{from{background-position-x:0%;}to{background-position-x:300%;}}","@keyframes f12o7gg6{0%{opacity:1;}50%{opacity:0.4;}100%{opacity:1;}}"]}),dq=F({8:{Bqenvij:"f1x82gua"},12:{Bqenvij:"fvblgha"},16:{Bqenvij:"fd461yt"},20:{Bqenvij:"fjamq6b"},24:{Bqenvij:"frvgh55"},28:{Bqenvij:"fxldao9"},32:{Bqenvij:"f1d2rq10"},36:{Bqenvij:"f8ljn23"},40:{Bqenvij:"fbhnoac"},48:{Bqenvij:"ff2sm71"},56:{Bqenvij:"fzki0ko"},64:{Bqenvij:"f16k9i2m"},72:{Bqenvij:"f1shusfg"},96:{Bqenvij:"fypu0ge"},120:{Bqenvij:"fjr5b71"},128:{Bqenvij:"fele2au"},root:{a9b677:"fly5x3f",Bbmb7ep:["fff7au0","f1bjk9e1"],Beyfa6y:["f1bjk9e1","fff7au0"],B7oj6ja:["fwsfkhu","f8wkphi"],Btl43ni:["f8wkphi","fwsfkhu"]}},{d:[".f1x82gua{height:8px;}",".fvblgha{height:12px;}",".fd461yt{height:16px;}",".fjamq6b{height:20px;}",".frvgh55{height:24px;}",".fxldao9{height:28px;}",".f1d2rq10{height:32px;}",".f8ljn23{height:36px;}",".fbhnoac{height:40px;}",".ff2sm71{height:48px;}",".fzki0ko{height:56px;}",".f16k9i2m{height:64px;}",".f1shusfg{height:72px;}",".fypu0ge{height:96px;}",".fjr5b71{height:120px;}",".fele2au{height:128px;}",".fly5x3f{width:100%;}",".fff7au0{border-bottom-right-radius:4px;}",".f1bjk9e1{border-bottom-left-radius:4px;}",".fwsfkhu{border-top-right-radius:4px;}",".f8wkphi{border-top-left-radius:4px;}"]}),fq=F({8:{a9b677:"f1o3cbw4",Bqenvij:"f1x82gua"},12:{a9b677:"frx94fk",Bqenvij:"fvblgha"},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:[".f1o3cbw4{width:8px;}",".f1x82gua{height:8px;}",".frx94fk{width:12px;}",".fvblgha{height:12px;}",".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;}"]}),hq=F({root:{Bbmb7ep:["fqgqgel","fchfifz"],Beyfa6y:["fchfifz","fqgqgel"],B7oj6ja:["fc7b1hi","f1dpx5h9"],Btl43ni:["f1dpx5h9","fc7b1hi"]}},{d:[".fqgqgel{border-bottom-right-radius:50%;}",".fchfifz{border-bottom-left-radius:50%;}",".fc7b1hi{border-top-right-radius:50%;}",".f1dpx5h9{border-top-left-radius:50%;}"]}),gq=t=>{const{animation:e,appearance:r,size:o,shape:n}=t,{dir:i}=Ae(),a=uq(),s=dq(),l=fq(),c=hq();return t.root.className=R(cq.root,a.root,e==="wave"&&a.wave,e==="wave"&&i==="rtl"&&a.waveRtl,e==="pulse"&&a.pulse,r==="translucent"&&a.translucent,e==="pulse"&&r==="translucent"&&a.translucentPulse,n==="rectangle"&&s.root,n==="rectangle"&&s[o],n==="square"&&l[o],n==="circle"&&c.root,n==="circle"&&l[o],t.root.className),t},pq=y.forwardRef((t,e)=>{const r=sq(t,e);return gq(r),lq(r)});pq.displayName="SkeletonItem";const Pw=(t,e,r)=>{let o=t;if(e!==void 0){if(r!==void 0&&e>r)return t;o=Math.max(e,o)}return r!==void 0&&(o=Math.min(r,o)),o},zw=(t,e,r)=>e!==void 0&&t===e?r===e?"both":"min":r!==void 0&&t===r?"max":"none";function mq(t){const e=/[1-9]([0]+$)|\.([0-9]*)/.exec(String(t));return e?e[1]?-e[1].length:e[2]?e[2].length:0:0}function tu(t,e,r=10){const o=Math.pow(r,e);return Math.round(t*o)/o}const Vh=150,vq=80,bq=1e3,yq=(t,e,r)=>t+(e-t)*r,wq=(t,e)=>{t=ys(t,{supportsLabelFor:!0,supportsRequired:!0});const r=Ki({props:t,primarySlotTagName:"input",excludedPropNames:["defaultValue","max","min","onChange","size","value"]}),o=gf();var n;const{value:i,displayValue:a,defaultValue:s,min:l,max:c,step:u=1,stepPage:d=1,precision:f,onChange:h,size:g="medium",appearance:m=(n=o.inputDefaultAppearance)!==null&&n!==void 0?n:"outline",root:w,input:v,incrementButton:p,decrementButton:b}=t,k=y.useMemo(()=>f??Math.max(mq(u),0),[f,u]),[x,S]=Et({state:i,defaultState:s,initialState:0}),_=i!==void 0,[C,T]=y.useState(void 0),[E,O]=y.useState("rest"),I=y.useRef({value:x,spinState:"rest",spinTime:0,spinDelay:Vh,atBound:x!==null?zw(tu(x,k),l,c):"none"}),[H,q]=kl(),N=(ae,xe,et)=>{let ft=I.current.value;if(et){const Yf=parseFloat(et);isNaN(Yf)||(ft=Yf)}const ir=ft,Ir=xe==="up"||xe==="upPage"?1:-1,fo=xe==="upPage"||xe==="downPage"?d:u;if(ir===null){const VE=Pw((l===void 0?0:l)+fo*Ir,l,c);G(ae,VE);return}let _c=ir+fo*Ir;Number.isNaN(_c)||(_c=Pw(_c,l,c)),G(ae,_c),I.current.spinState!=="rest"&&H(()=>{I.current.spinTime+=I.current.spinDelay,I.current.spinDelay=yq(Vh,vq,I.current.spinTime/bq),N(ae,xe)},I.current.spinDelay)},M=ae=>{I.current.previousTextValue||(I.current.previousTextValue=C??String(x));const xe=ae.target.value;T(xe)},W=ae=>{I.current.spinState="up",N(ae,"up")},B=ae=>{I.current.spinState="down",N(ae,"down")},D=ae=>{q(),I.current.spinState="rest",I.current.spinDelay=Vh,I.current.spinTime=0},U=ae=>{G(ae,x,C),I.current.previousTextValue=void 0},z=ae=>{let xe="rest";ae.key===Ia?(N(ae,"up",C),xe="up"):ae.key===Qa?(N(ae,"down",C),xe="down"):ae.key===dC?(ae.preventDefault(),N(ae,"upPage",C),xe="up"):ae.key===uC?(ae.preventDefault(),N(ae,"downPage",C),xe="down"):!ae.shiftKey&&ae.key===Wv&&l!==void 0?(G(ae,l),xe="down"):!ae.shiftKey&&ae.key===Kv&&c!==void 0?(G(ae,c),xe="up"):ae.key===To?(G(ae,x,C),I.current.previousTextValue=void 0):ae.key===Po&&I.current.previousTextValue&&(T(void 0),I.current.previousTextValue=void 0),E!==xe&&O(xe)},L=ae=>{E!=="rest"&&(O("rest"),I.current.spinState="rest")},G=(ae,xe,et)=>{const ft=xe!==void 0&&x!==xe,ir=et!==void 0&&I.current.previousTextValue!==void 0&&I.current.previousTextValue!==et;let Ir;if(ft)Ir=tu(xe,k),S(Ir);else if(ir&&!_){const fo=parseFloat(et);isNaN(fo)||S(tu(fo,k))}(ft||ir)&&h?.(ae,{value:Ir,displayValue:et}),T(void 0)},Z={size:g,appearance:m,spinState:E,atBound:I.current.atBound,components:{root:"span",input:"input",incrementButton:"button",decrementButton:"button"},root:ee(w,{defaultProps:r.root,elementType:"span"}),input:ee(v,{defaultProps:{ref:e,autoComplete:"off",role:"spinbutton",appearance:m,type:"text",...r.primary},elementType:"input"}),incrementButton:ee(p,{defaultProps:{tabIndex:-1,children:y.createElement(nP,null),disabled:r.primary.disabled,"aria-label":"Increment value",type:"button"},elementType:"button"}),decrementButton:ee(b,{defaultProps:{tabIndex:-1,children:y.createElement(oP,null),disabled:r.primary.disabled,"aria-label":"Decrement value",type:"button"},elementType:"button"})};let ce;if(C!==void 0)ce=C;else if(i===null||x===null)ce=a??"",I.current.value=null,I.current.atBound="none";else{const ae=tu(x,k);I.current.value=ae,I.current.atBound=zw(ae,l,c),_?ce=a??String(ae):ce=String(ae)}Z.input.value=ce,Z.input["aria-valuemin"]=l,Z.input["aria-valuemax"]=c,Z.input["aria-valuenow"]=x??void 0;var Ne;return Z.input["aria-valuetext"]=(Ne=Z.input["aria-valuetext"])!==null&&Ne!==void 0?Ne:i!==void 0&&a||void 0,Z.input.onChange=fe(Z.input.onChange,M),Z.input.onBlur=fe(Z.input.onBlur,U),Z.input.onKeyDown=fe(Z.input.onKeyDown,z),Z.input.onKeyUp=fe(Z.input.onKeyUp,L),Z.incrementButton.onMouseDown=fe(W,Z.incrementButton.onMouseDown),Z.incrementButton.onMouseUp=fe(Z.incrementButton.onMouseUp,D),Z.incrementButton.onMouseLeave=fe(Z.incrementButton.onMouseLeave,D),Z.decrementButton.onMouseDown=fe(B,Z.decrementButton.onMouseDown),Z.decrementButton.onMouseUp=fe(Z.decrementButton.onMouseUp,D),Z.decrementButton.onMouseLeave=fe(Z.decrementButton.onMouseLeave,D),Z},kq=t=>we(t.root,{children:[P(t.input,{}),P(t.incrementButton,{}),P(t.decrementButton,{})]}),ru={root:"fui-SpinButton",input:"fui-SpinButton__input",incrementButton:"fui-SpinButton__incrementButton",decrementButton:"fui-SpinButton__decrementButton"},Mw={buttonActive:"fui-SpinButton__button_active"},Sq=ge("rkqmps4","r1trw52p",{r:[".rkqmps4{display:inline-grid;grid-template-columns:1fr 24px;grid-template-rows:1fr 1fr;column-gap:var(--spacingHorizontalXS);row-gap:0;position:relative;isolation:isolate;background-color:var(--colorNeutralBackground1);min-height:32px;padding:0 0 0 var(--spacingHorizontalMNudge);border-radius:var(--borderRadiusMedium);}",'.rkqmps4::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);}','.rkqmps4::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);}',".rkqmps4:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".rkqmps4:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".rkqmps4:focus-within{outline:2px solid transparent;}",".r1trw52p{display:inline-grid;grid-template-columns:1fr 24px;grid-template-rows:1fr 1fr;column-gap:var(--spacingHorizontalXS);row-gap:0;position:relative;isolation:isolate;background-color:var(--colorNeutralBackground1);min-height:32px;padding:0 var(--spacingHorizontalMNudge) 0 0;border-radius:var(--borderRadiusMedium);}",'.r1trw52p::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);}','.r1trw52p::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);}',".r1trw52p:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".r1trw52p:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".r1trw52p:focus-within{outline:2px solid transparent;}"],s:["@media screen and (prefers-reduced-motion: reduce){.rkqmps4::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.rkqmps4:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r1trw52p::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r1trw52p:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}"]}),_q=F({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"],Budzafs:["f1vk4jnx","f1v3v894"],r59vdv:["f1v3v894","f1vk4jnx"],n07z76:["fzi2j54","f1un0uoc"],ck0cow:["f1un0uoc","fzi2j54"]},underlineInteractive:{Bx11ytk:"ffcnd28",xcfy85:"f1ipdth8",B3778ie:["f9pmbr4","ffh3ws5"],d9w3h3:["ffh3ws5","f9pmbr4"],Bl18szs:["f19438ov","f1i9y5j"],B4j8arr:["f1i9y5j","f19438ov"]},filled:{B0qfbqy:"f1fjh9ub",B4f6apu:["ff9c942","f6rdg5o"],y0oebl:"fdw6hkg",uvfttm:["f6rdg5o","ff9c942"],Bdkvgpv:"f163fonl",m598lv:["f1yq6w5o","f1jpmc5p"],qa3bma:"f11yjt3y",Bbv0w2i:["f1jpmc5p","f1yq6w5o"],Bq4z7u6:"f7dgwnz",Bk5zm6e:["f1edeodt","fszsv3f"],Bqjgrrk:"f1172wan",Bm6vgfq:["fszsv3f","f1edeodt"]},"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"],Cffpyd:"flb8es4",hxi8he:["f1lclws","frjp63v"],Bcuq369:"f1yv9wnt",Imo2if:["frjp63v","f1lclws"]}},{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;}",".f1vk4jnx::before{border-bottom-right-radius:var(--borderRadiusNone);}",".f1v3v894::before{border-bottom-left-radius:var(--borderRadiusNone);}",".fzi2j54::before{border-top-right-radius:var(--borderRadiusNone);}",".f1un0uoc::before{border-top-left-radius:var(--borderRadiusNone);}",".f9pmbr4::after{border-bottom-right-radius:var(--borderRadiusNone);}",".ffh3ws5::after{border-bottom-left-radius:var(--borderRadiusNone);}",".f19438ov::after{border-top-right-radius:var(--borderRadiusNone);}",".f1i9y5j::after{border-top-left-radius:var(--borderRadiusNone);}",".f1fjh9ub::before{border-top-width:1px;}",".ff9c942::before{border-right-width:1px;}",".f6rdg5o::before{border-left-width:1px;}",".f163fonl::before{border-top-style:solid;}",".f1yq6w5o::before{border-right-style:solid;}",".f1jpmc5p::before{border-left-style:solid;}",".f11yjt3y::before{border-bottom-style:solid;}",".f7dgwnz::before{border-top-color:var(--colorTransparentStroke);}",".f1edeodt::before{border-right-color:var(--colorTransparentStroke);}",".fszsv3f::before{border-left-color:var(--colorTransparentStroke);}",".f1172wan::before{border-bottom-color:var(--colorTransparentStroke);}",".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){.flb8es4::before{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lclws::before{border-right-color:GrayText;}.frjp63v::before{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1yv9wnt::before{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]]}),xq=ge("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:-ms-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".r1ljrqje::placeholder{color:var(--colorNeutralForeground4);opacity:1;}"]),Cq=F({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);}"]}),Ow=ge("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);}"]),Tq=F({increment:{Ijaq50:"f16hsg94",B7oj6ja:["f1jar5jt","fyu767a"],z8tnut:"f10ra9hq",Byoj8tv:"f1brlhvm"},decrement:{Ijaq50:"faunodf",Bbmb7ep:["f1aa9q02","f16jpd5f"],z8tnut:"f1sl3k7w",Byoj8tv:"f1y2xyjm"},incrementButtonSmall:{z8tnut:"f1khb0e9",z189sj:["f1sgzk6v","f1bg5zqg"],Byoj8tv:"f1ov4xf1",uwmqm3:["fycuoez","f8wuabp"],Bqenvij:"fvblgha"},decrementButtonSmall:{z8tnut:"f1nbblvp",z189sj:["f1sgzk6v","f1bg5zqg"],Byoj8tv:"f1jnq6q7",uwmqm3:["fycuoez","f8wuabp"],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;}",".f1khb0e9{padding-top:3px;}",".f1sgzk6v{padding-right:6px;}",".f1bg5zqg{padding-left:6px;}",".f1ov4xf1{padding-bottom:0px;}",".fycuoez{padding-left:4px;}",".f8wuabp{padding-right:4px;}",".fvblgha{height:12px;}",".f1nbblvp{padding-top:0px;}",".f1jnq6q7{padding-bottom:3px;}",".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);}"]}),Eq=F({base:{Bceei9c:"fdrzuqr",eoavqd:"fphbwmw"},outline:{sj55zd:"f1s2aq7o",r4wkhp:"few7wvn",B95qlz1:"f110wuh6",p743kt:"f9s4mys",B7xitij:"f10404rc",B6siaa6:"fwzu9cz",Ba9qmo4:"f1snwkb6"},underline:{sj55zd:"f1s2aq7o",r4wkhp:"few7wvn",B95qlz1:"f110wuh6",p743kt:"f9s4mys",B7xitij:"f10404rc",B6siaa6:"fwzu9cz",Ba9qmo4:"f1snwkb6"},"filled-darker":{sj55zd:"f1s2aq7o",r4wkhp:"few7wvn",B95qlz1:"f110wuh6",p743kt:"f9s4mys",B7xitij:"f10404rc",B6siaa6:"fwzu9cz",Ba9qmo4:"f1snwkb6"},"filled-lighter":{sj55zd:"f1s2aq7o",r4wkhp:"few7wvn",B95qlz1:"f110wuh6",p743kt:"f9s4mys",B7xitij:"f10404rc",B6siaa6:"fwzu9cz",Ba9qmo4:"f1snwkb6"}},{d:[".fdrzuqr{cursor:not-allowed;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".few7wvn:enabled:hover{color:var(--colorNeutralForegroundDisabled);}",".f110wuh6:enabled:hover{background-color:transparent;}",".f9s4mys:enabled:active{color:var(--colorNeutralForegroundDisabled);}",".f10404rc:enabled:active{background-color:transparent;}",".fwzu9cz:enabled.fui-SpinButton__button_active{color:var(--colorNeutralForegroundDisabled);}",".f1snwkb6:enabled.fui-SpinButton__button_active{background-color:transparent;}"],h:[".fphbwmw:hover{cursor:not-allowed;}"]}),Bq=t=>{const{appearance:e,atBound:r,spinState:o,size:n}=t,i=t.input.disabled,a=`${t.input["aria-invalid"]}`=="true",s=e.startsWith("filled"),l=_q(),c=Tq(),u=Eq(),d=Cq();return t.root.className=R(ru.root,Sq(),l[n],l[e],s&&l.filled,!i&&e==="outline"&&l.outlineInteractive,!i&&e==="underline"&&l.underlineInteractive,!i&&s&&l.filledInteractive,!i&&a&&l.invalid,i&&l.disabled,t.root.className),t.incrementButton.className=R(ru.incrementButton,o==="up"&&`${Mw.buttonActive}`,Ow(),c.increment,c[e],n==="small"&&c.incrementButtonSmall,(r==="max"||r==="both")&&u.base,(r==="max"||r==="both")&&u[e],t.incrementButton.className),t.decrementButton.className=R(ru.decrementButton,o==="down"&&`${Mw.buttonActive}`,Ow(),c.decrement,c[e],n==="small"&&c.decrementButtonSmall,(r==="min"||r==="both")&&u.base,(r==="min"||r==="both")&&u[e],t.decrementButton.className),t.input.className=R(ru.input,xq(),i&&d.disabled,t.input.className),t},Iq=y.forwardRef((t,e)=>{const r=wq(t,e);return Bq(r),de("useSpinButtonStyles_unstable")(r),kq(r)});Iq.displayName="SpinButton";const Rq=()=>y.createElement("svg",{className:"fui-Spinner__Progressbar"},y.createElement("circle",{className:"fui-Spinner__Track"}),y.createElement("circle",{className:"fui-Spinner__Tail"})),XT=y.createContext(void 0),Aq={};XT.Provider;const Nq=()=>{var t;return(t=y.useContext(XT))!==null&&t!==void 0?t:Aq},Pq=(t,e)=>{const{size:r}=Nq(),{appearance:o="primary",labelPosition:n="after",size:i=r??"medium",delay:a=0}=t,s=Bt("spinner"),{role:l="progressbar",tabIndex:c,...u}=t,d=ee(me("div",{ref:e,role:l,...u},["size"]),{elementType:"div"}),[f,h]=y.useState(!1),[g,m]=kl();y.useEffect(()=>{if(!(a<=0))return g(()=>{h(!0)},a),()=>{m()}},[g,m,a]);const w=he(t.label,{defaultProps:{id:s},renderByDefault:!1,elementType:uo}),v=he(t.spinner,{renderByDefault:!0,defaultProps:{children:y.createElement(Rq,null),tabIndex:c},elementType:"span"});return w&&d&&!d["aria-labelledby"]&&(d["aria-labelledby"]=w.id),{appearance:o,delay:a,labelPosition:n,size:i,shouldRenderSpinner:!a||f,components:{root:"div",spinner:"span",label:uo},root:d,spinner:v,label:w}},zq=t=>{const{labelPosition:e,shouldRenderSpinner:r}=t;return we(t.root,{children:[t.label&&r&&(e==="above"||e==="before")&&P(t.label,{}),t.spinner&&r&&P(t.spinner,{}),t.label&&r&&(e==="below"||e==="after")&&P(t.label,{})]})},Gh={root:"fui-Spinner",spinner:"fui-Spinner__spinner",label:"fui-Spinner__label"},Mq=F({root:{mc9l5x:"f22iagw",Bt984gj:"f122n59",Brf1p80:"f4d9j23",Bg96gwp:"fez10in",i8kkvl:"f4px1ci",Belr9w4:"fn67r4l"},horizontal:{Beiy3e4:"f1063pyq"},vertical:{Beiy3e4:"f1vx9l62"}},{d:[".f22iagw{display:flex;}",".f122n59{align-items:center;}",".f4d9j23{justify-content:center;}",".fez10in{line-height:0;}",".f4px1ci{column-gap:8px;}",".fn67r4l{row-gap:8px;}",".f1063pyq{flex-direction:row;}",".f1vx9l62{flex-direction:column;}"]}),Oq=F({spinnerSVG:{B3aqqti:"f1or16p5",Brovlpu:"f1grzc83",Bxa1mx5:"f19shzzi",Bwaue66:["f5tbecn","f15qb8s7"],fyp1ls:"fn4mtlg",ag6ruv:"f1y80fxs",osj692:"f1r2crtq",aq5vjd:"f1wsi8sr",tlu9e1:"f1bkm2qd",J3u96z:"f1urqz7h",d32isg:"f1da2vov",Bsvqbuc:"f11rfva0",b3s3i5:"f1exc66"},"extra-tiny":{Bah9ito:"f1x2gjcb",ut6tcf:"f1vjiaua",B7p06xz:"fv1u54w",B807ibg:"f1oebb0s"},tiny:{Bah9ito:"f1j4wmu2",ut6tcf:"f1vppzuq",B7p06xz:"fv1u54w",B807ibg:"fngtx1d"},"extra-small":{Bah9ito:"fmpqlna",ut6tcf:"f15z5jzu",B7p06xz:"fv1u54w",B807ibg:"fadawes"},small:{Bah9ito:"fo52gbo",ut6tcf:"f1b41i3v",B7p06xz:"fv1u54w",B807ibg:"f1xqyyrl"},medium:{Bah9ito:"f1aiqagr",ut6tcf:"f1wtx80b",B7p06xz:"f1flujpd",B807ibg:"f1u06hy7"},large:{Bah9ito:"f1trdq7b",ut6tcf:"f9e0mc5",B7p06xz:"f1flujpd",B807ibg:"f13pmvhl"},"extra-large":{Bah9ito:"f89rf2a",ut6tcf:"f1w2xg3q",B7p06xz:"f1flujpd",B807ibg:"fmn74v6"},huge:{Bah9ito:"f1rx7k5y",ut6tcf:"f1vtyt49",B7p06xz:"f1owbg48",B807ibg:"f1fr1izd"}},{f:[".f1or16p5:focus{outline-width:3px;}",".f1grzc83:focus{outline-style:solid;}",".f19shzzi:focus{outline-color:transparent;}"],k:["@keyframes fb7n1on{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}","@keyframes f1gx3jof{0%{transform:rotate(0deg);}100%{transform:rotate(-360deg);}}"],d:[".f5tbecn>svg{animation-name:fb7n1on;}",".f15qb8s7>svg{animation-name:f1gx3jof;}",".fn4mtlg>svg{animation-duration:3s;}",".f1y80fxs>svg{animation-iteration-count:infinite;}",".f1r2crtq>svg{animation-timing-function:linear;}",".f1wsi8sr>svg{background-color:transparent;}",".f1da2vov>svg>circle{cx:50%;}",".f11rfva0>svg>circle{cy:50%;}",".f1exc66>svg>circle{fill:none;}",".f1x2gjcb>svg{height:16px;}",".f1vjiaua>svg{width:16px;}",".fv1u54w>svg>circle{stroke-width:var(--strokeWidthThick);}",".f1oebb0s>svg>circle{r:7px;}",".f1j4wmu2>svg{height:20px;}",".f1vppzuq>svg{width:20px;}",".fngtx1d>svg>circle{r:9px;}",".fmpqlna>svg{height:24px;}",".f15z5jzu>svg{width:24px;}",".fadawes>svg>circle{r:11px;}",".fo52gbo>svg{height:28px;}",".f1b41i3v>svg{width:28px;}",".f1xqyyrl>svg>circle{r:13px;}",".f1aiqagr>svg{height:32px;}",".f1wtx80b>svg{width:32px;}",".f1flujpd>svg>circle{stroke-width:var(--strokeWidthThicker);}",".f1u06hy7>svg>circle{r:14.5px;}",".f1trdq7b>svg{height:36px;}",".f9e0mc5>svg{width:36px;}",".f13pmvhl>svg>circle{r:16.5px;}",".f89rf2a>svg{height:40px;}",".f1w2xg3q>svg{width:40px;}",".fmn74v6>svg>circle{r:18.5px;}",".f1rx7k5y>svg{height:44px;}",".f1vtyt49>svg{width:44px;}",".f1owbg48>svg>circle{stroke-width:var(--strokeWidthThickest);}",".f1fr1izd>svg>circle{r:20px;}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f1bkm2qd>svg{animation-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1urqz7h>svg{animation-iteration-count:1;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]}),jq=F({inverted:{gwg7kz:"f1jvpmnu",Bvrehnu:"fq8a5sv",Bidp6o:"f1b4lwqj",cq3kgi:"f1najlst",Btwiser:"fjxod4",B8001xd:"fu3xdw0",Bdordwa:["f1ttdh6v","fmyjox0"],Bo2mdfu:"f1eseayc",E10nrc:"folzdkc",Bwl7w15:"fhlfkde",Bksq7rz:"f1esql28"},primary:{gwg7kz:"f11ditju",B8k2rxp:"f1m9nikz",Bvrehnu:"fq8a5sv",Bidp6o:"f1b4lwqj",cq3kgi:"f1najlst",Btwiser:"fjxod4",B8001xd:"fu3xdw0",Bdordwa:["f1ttdh6v","fmyjox0"],Bo2mdfu:"f1eseayc",E10nrc:"folzdkc",Bwl7w15:"fhlfkde",Bksq7rz:"f13qeqtg",y14cdu:"flglbw1"}},{d:[".f1jvpmnu>svg>circle.fui-Spinner__Tail{stroke:var(--colorNeutralStrokeOnBrand2);}",".fq8a5sv>svg>circle.fui-Spinner__Tail{animation-name:f1v1ql0f;}",".f1b4lwqj>svg>circle.fui-Spinner__Tail{animation-duration:1.5s;}",".f1najlst>svg>circle.fui-Spinner__Tail{animation-iteration-count:infinite;}",".fjxod4>svg>circle.fui-Spinner__Tail{animation-timing-function:var(--curveEasyEase);}",".fu3xdw0>svg>circle.fui-Spinner__Tail{stroke-linecap:round;}",".f1ttdh6v>svg>circle.fui-Spinner__Tail{transform:rotate(-90deg);}",".fmyjox0>svg>circle.fui-Spinner__Tail{transform:rotate(90deg);}",".f1eseayc>svg>circle.fui-Spinner__Tail{transform-origin:50% 50%;}",".f1esql28>svg>circle.fui-Spinner__Track{stroke:rgba(255, 255, 255, 0.2);}",".f11ditju>svg>circle.fui-Spinner__Tail{stroke:var(--colorBrandStroke1);}",".f13qeqtg>svg>circle.fui-Spinner__Track{stroke:var(--colorBrandStroke2Contrast);}"],k:["@keyframes f1v1ql0f{0%{stroke-dasharray:1,150;stroke-dashoffset:0;}50%{stroke-dasharray:90,150;stroke-dashoffset:-35;}100%{stroke-dasharray:90,150;stroke-dashoffset:-124;}}"],m:[["@media screen and (prefers-reduced-motion: reduce){.folzdkc>svg>circle.fui-Spinner__Tail{animation-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.fhlfkde>svg>circle.fui-Spinner__Tail{animation-iteration-count:1;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (forced-colors: active){.f1m9nikz>svg>circle.fui-Spinner__Tail{stroke:var(--colorNeutralStrokeOnBrand2);}}",{m:"screen and (forced-colors: active)"}],["@media screen and (forced-colors: active){.flglbw1>svg>circle.fui-Spinner__Track{stroke:var(--colorNeutralBackgroundInverted);}}",{m:"screen and (forced-colors: active)"}]]}),Dq=F({inverted:{sj55zd:"f15aqcq"},primary:{},"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:[".f15aqcq{color:rgba(255, 255, 255, 1);}",".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);}"]}),Fq=t=>{const{labelPosition:e,size:r,appearance:o="primary"}=t,n=Mq(),i=Oq(),a=Dq(),s=jq();return t.root.className=R(Gh.root,n.root,(e==="above"||e==="below")&&n.vertical,(e==="before"||e==="after")&&n.horizontal,t.root.className),t.spinner&&(t.spinner.className=R(Gh.spinner,i.spinnerSVG,i[r],s[o],t.spinner.className)),t.label&&(t.label.className=R(Gh.label,a[r],a[o],t.label.className)),t},qq=y.forwardRef((t,e)=>{const r=Pq(t,e);return Fq(r),de("useSpinnerStyles_unstable")(r),zq(r)});qq.displayName="Spinner";const Lq=(t,e)=>{t=ys(t,{supportsLabelFor:!0,supportsRequired:!0});const{checked:r,defaultChecked:o,disabled:n,labelPosition:i="after",onChange:a,required:s}=t,l=Ki({props:t,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","onChange"]}),c=Bt("switch-",l.primary.id),u=ee(t.root,{defaultProps:{ref:gs(),...l.root},elementType:"div"}),d=ee(t.indicator,{defaultProps:{"aria-hidden":!0,children:y.createElement(Px,null)},elementType:"div"}),f=ee(t.input,{defaultProps:{checked:r,defaultChecked:o,id:c,ref:e,role:"switch",type:"checkbox",...l.primary},elementType:"input"});f.onChange=fe(f.onChange,g=>a?.(g,{checked:g.currentTarget.checked}));const h=he(t.label,{defaultProps:{disabled:n,htmlFor:c,required:s,size:"medium"},elementType:uo});return{labelPosition:i,components:{root:"div",indicator:"div",input:"input",label:uo},root:u,indicator:d,input:f,label:h}},Hq=t=>{const{labelPosition:e}=t;return we(t.root,{children:[P(t.input,{}),e!=="after"&&t.label&&P(t.label,{}),P(t.indicator,{}),e==="after"&&t.label&&P(t.label,{})]})},ou={root:"fui-Switch",indicator:"fui-Switch__indicator",input:"fui-Switch__input",label:"fui-Switch__label"},Uq=ge("r1i56xw0","rk4yt03",{r:[".r1i56xw0{align-items:flex-start;box-sizing:border-box;display:inline-flex;position:relative;}",".r1i56xw0:focus{outline-style:none;}",".r1i56xw0:focus-visible{outline-style:none;}",".r1i56xw0[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1i56xw0[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rk4yt03{align-items:flex-start;box-sizing:border-box;display:inline-flex;position:relative;}",".rk4yt03:focus{outline-style:none;}",".rk4yt03:focus-visible{outline-style:none;}",".rk4yt03[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rk4yt03[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r1i56xw0[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){.rk4yt03[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),$q=F({vertical:{Beiy3e4:"f1vx9l62"}},{d:[".f1vx9l62{flex-direction:column;}"]}),Kq=ge("r13wlxb8",null,{r:[".r13wlxb8{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;}",".r13wlxb8>*{transition-duration:var(--durationNormal);transition-timing-function:var(--curveEasyEase);transition-property:transform;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r13wlxb8{transition-duration:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r13wlxb8>*{transition-duration:0.01ms;}}"]}),Wq=F({labelAbove:{B6of3ja:"f1hu3pq6"}},{d:[".f1hu3pq6{margin-top:0;}"]}),Vq=ge("rw4brat","r1f4bxyr",{r:[".rw4brat{box-sizing:border-box;cursor:pointer;height:100%;margin:0;opacity:0;position:absolute;width:calc(40px + 2 * var(--spacingHorizontalS));}",".rw4brat:checked~.fui-Switch__indicator>*{transform:translateX(20px);}",".rw4brat:disabled{cursor:default;}",".rw4brat:disabled~.fui-Switch__indicator{color:var(--colorNeutralForegroundDisabled);}",".rw4brat:disabled~.fui-Switch__label{cursor:default;color:var(--colorNeutralForegroundDisabled);}",".rw4brat:enabled:not(:checked)~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessible);border-color:var(--colorNeutralStrokeAccessible);}",".rw4brat:enabled:not(:checked)~.fui-Switch__label{color:var(--colorNeutralForeground1);}",".rw4brat:enabled:not(:checked):hover~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessibleHover);border-color:var(--colorNeutralStrokeAccessibleHover);}",".rw4brat:enabled:not(:checked):hover:active~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessiblePressed);border-color:var(--colorNeutralStrokeAccessiblePressed);}",".rw4brat:enabled:checked~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackground);color:var(--colorNeutralForegroundInverted);border-color:var(--colorTransparentStroke);}",".rw4brat:enabled:checked:hover~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundHover);border-color:var(--colorTransparentStrokeInteractive);}",".rw4brat:enabled:checked:hover:active~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundPressed);border-color:var(--colorTransparentStrokeInteractive);}",".rw4brat:disabled:not(:checked)~.fui-Switch__indicator{border-color:var(--colorNeutralStrokeDisabled);}",".rw4brat:disabled:checked~.fui-Switch__indicator{background-color:var(--colorNeutralBackgroundDisabled);border-color:var(--colorTransparentStrokeDisabled);}",".r1f4bxyr{box-sizing:border-box;cursor:pointer;height:100%;margin:0;opacity:0;position:absolute;width:calc(40px + 2 * var(--spacingHorizontalS));}",".r1f4bxyr:checked~.fui-Switch__indicator>*{transform:translateX(-20px);}",".r1f4bxyr:disabled{cursor:default;}",".r1f4bxyr:disabled~.fui-Switch__indicator{color:var(--colorNeutralForegroundDisabled);}",".r1f4bxyr:disabled~.fui-Switch__label{cursor:default;color:var(--colorNeutralForegroundDisabled);}",".r1f4bxyr:enabled:not(:checked)~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessible);border-color:var(--colorNeutralStrokeAccessible);}",".r1f4bxyr:enabled:not(:checked)~.fui-Switch__label{color:var(--colorNeutralForeground1);}",".r1f4bxyr:enabled:not(:checked):hover~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessibleHover);border-color:var(--colorNeutralStrokeAccessibleHover);}",".r1f4bxyr:enabled:not(:checked):hover:active~.fui-Switch__indicator{color:var(--colorNeutralStrokeAccessiblePressed);border-color:var(--colorNeutralStrokeAccessiblePressed);}",".r1f4bxyr:enabled:checked~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackground);color:var(--colorNeutralForegroundInverted);border-color:var(--colorTransparentStroke);}",".r1f4bxyr:enabled:checked:hover~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundHover);border-color:var(--colorTransparentStrokeInteractive);}",".r1f4bxyr:enabled:checked:hover:active~.fui-Switch__indicator{background-color:var(--colorCompoundBrandBackgroundPressed);border-color:var(--colorTransparentStrokeInteractive);}",".r1f4bxyr:disabled:not(:checked)~.fui-Switch__indicator{border-color:var(--colorNeutralStrokeDisabled);}",".r1f4bxyr:disabled:checked~.fui-Switch__indicator{background-color:var(--colorNeutralBackgroundDisabled);border-color:var(--colorTransparentStrokeDisabled);}"],s:["@media (forced-colors: active){.rw4brat:disabled~.fui-Switch__indicator{color:GrayText;border-color:GrayText;}.rw4brat:disabled~.fui-Switch__label{color:GrayText;}.rw4brat:enabled:checked:hover~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}.rw4brat:enabled:checked~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}}","@media (forced-colors: active){.r1f4bxyr:disabled~.fui-Switch__indicator{color:GrayText;border-color:GrayText;}.r1f4bxyr:disabled~.fui-Switch__label{color:GrayText;}.r1f4bxyr:enabled:checked:hover~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}.r1f4bxyr:enabled:checked~.fui-Switch__indicator{background-color:Highlight;color:Canvas;}}"]}),Gq=F({before:{j35jbq:["f1e31b4d","f1vgc2s3"],Bhzewxz:"f15twtuk"},after:{oyh7mz:["f1vgc2s3","f1e31b4d"],Bhzewxz:"f15twtuk"},above:{B5kzvoi:"f1yab3r1",Bqenvij:"f1aar7gd",a9b677:"fly5x3f"}},{d:[".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f15twtuk{top:0;}",".f1yab3r1{bottom:0;}",".f1aar7gd{height:calc(20px + var(--spacingVerticalS));}",".fly5x3f{width:100%;}"]}),Xq=F({base:{Bceei9c:"f1k6fduh",jrapky:"f49ad5g",B6of3ja:"f1xlvstr",z8tnut:"f1kwiid1",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f5b47ha",uwmqm3:["f1f5gg8d","f1vdfbxk"]},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);}",".f1kwiid1{padding-top:var(--spacingVerticalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f5b47ha{padding-bottom:var(--spacingVerticalS);}",".f1ywm7hm{padding-top:var(--spacingVerticalXS);}",".f14wxoun{padding-bottom:var(--spacingVerticalXS);}",".fly5x3f{width:100%;}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}"]}),Yq=t=>{const e=Uq(),r=$q(),o=Kq(),n=Wq(),i=Vq(),a=Gq(),s=Xq(),{label:l,labelPosition:c}=t;return t.root.className=R(ou.root,e,c==="above"&&r.vertical,t.root.className),t.indicator.className=R(ou.indicator,o,l&&c==="above"&&n.labelAbove,t.indicator.className),t.input.className=R(ou.input,i,l&&a[c],t.input.className),t.label&&(t.label.className=R(ou.label,s.base,s[c],t.label.className)),t},Zq=y.forwardRef((t,e)=>{const r=Lq(t,e);return Yq(r),de("useSwitchStyles_unstable")(r),Hq(r)});Zq.displayName="Switch";const Qq={appearance:"transparent",reserveSelectedTabSpace:!0,selectTabOnFocus:!1,disabled:!1,selectedValue:void 0,onRegister:()=>{},onUnregister:()=>{},onSelect:()=>{},getRegisteredTabs:()=>({registeredTabs:{}}),size:"medium",vertical:!1},YT=hn(void 0),Jq=YT.Provider,Wr=t=>ct(YT,(e=Qq)=>t(e)),eL=(t,e)=>{const{content:r,disabled:o=!1,icon:n,onClick:i,onFocus:a,value:s}=t,l=Wr(E=>E.appearance),c=Wr(E=>E.reserveSelectedTabSpace),u=Wr(E=>E.selectTabOnFocus),d=Wr(E=>E.disabled),f=Wr(E=>E.selectedValue===s),h=Wr(E=>E.onRegister),g=Wr(E=>E.onUnregister),m=Wr(E=>E.onSelect),w=Wr(E=>E.size),v=Wr(E=>!!E.vertical),p=d||o,b=y.useRef(null),k=E=>m(E,{value:s}),x=Q(fe(i,k)),S=Q(fe(a,k));y.useEffect(()=>(h({value:s,ref:b}),()=>{g({value:s,ref:b})}),[h,g,b,s]);const _=he(n,{elementType:"span"}),C=ee(r,{defaultProps:{children:t.children},elementType:"span"}),T=!!(_?.children&&!C.children);return{components:{root:"button",icon:"span",content:"span",contentReservedSpace:"span"},root:ee(me("button",{ref:Be(e,b),role:"tab",type:"button","aria-selected":p?void 0:`${f}`,...t,disabled:p,onClick:x,onFocus:u?S:a}),{elementType:"button"}),icon:_,iconOnly:T,content:C,contentReservedSpace:he(r,{renderByDefault:!f&&!T&&c,defaultProps:{children:t.children},elementType:"span"}),appearance:l,disabled:p,selected:f,size:w,value:s,vertical:v}},tL=t=>we(t.root,{children:[t.icon&&P(t.icon,{}),!t.iconOnly&&P(t.content,{}),t.contentReservedSpace&&P(t.contentReservedSpace,{})]}),jw={offsetVar:"--fui-Tab__indicator--offset",scaleVar:"--fui-Tab__indicator--scale"},rL=F({base:{B68tc82:"f1mtd64y",Bmxbyg5:"f1y7q3j9"},animated:{Ba2ppi3:"fhwpy7i",F2fol1:"f6zz20j",B1dyfl9:"f1ai4sc1",B0vmy72:"f9qxlq5",u9bimw:"f1aql376"},horizontal:{sjv3b2:["fug4aj8","f1i5xzg7"],b1kco5:"f1q7ujh"},vertical:{sjv3b2:"f1hqboyk",b1kco5:"f1dxupa6"}},{d:[".f1mtd64y{overflow-x:visible;}",".f1y7q3j9{overflow-y:visible;}",".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){.f9qxlq5::after{transition-property:none;}}",{m:"(prefers-reduced-motion: reduce)"}],["@media (prefers-reduced-motion: reduce){.f1aql376::after{transition-duration:0.01ms;}}",{m:"(prefers-reduced-motion: reduce)"}]]}),oL=t=>{if(t){var e;const r=((e=t.parentElement)===null||e===void 0?void 0:e.getBoundingClientRect())||{x:0,y:0,width:0,height:0},o=t.getBoundingClientRect();return{x:o.x-r.x,y:o.y-r.y,width:o.width,height:o.height}}},Dw=(t,e)=>{var r;const o=e!=null?(r=t[JSON.stringify(e)])===null||r===void 0?void 0:r.ref.current:void 0;return o?oL(o):void 0},nL=t=>{const{disabled:e,selected:r,vertical:o}=t,n=rL(),[i,a]=y.useState(),[s,l]=y.useState({offset:0,scale:1}),c=Wr(f=>f.getRegisteredTabs);if(y.useEffect(()=>{i&&l({offset:0,scale:1})},[i]),r){const{previousSelectedValue:f,selectedValue:h,registeredTabs:g}=c();if(f&&i!==f){const m=Dw(g,f),w=Dw(g,h);if(w&&m){const v=o?m.y-w.y:m.x-w.x,p=o?m.height/w.height:m.width/w.width;l({offset:v,scale:p}),a(f)}}}else i&&a(void 0);if(e)return t;const u=s.offset===0&&s.scale===1;t.root.className=R(t.root.className,r&&n.base,r&&u&&n.animated,r&&(o?n.vertical:n.horizontal));const d={[jw.offsetVar]:`${s.offset}px`,[jw.scaleVar]:`${s.scale}`};return t.root.style={...d,...t.root.style},t},Xh={root:"fui-Tab",icon:"fui-Tab__icon",content:"fui-Tab__content"},iL={content:"fui-Tab__content--reserved-space"},aL=F({base:{Bt984gj:"f122n59",g2u3we:"fwhevhj",h3c5rm:["f61n433","f1q8l70w"],B9xav0g:"fv1dfc8",zhjwy3:["f1q8l70w","f61n433"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B4j52fo:"fre7gi1",Bekrc4i:["f1358rze","f1rvrf73"],Bn0qgzm:"fqdk4by",ibv6hh:["f1rvrf73","f1358rze"],Bceei9c:"f1k6fduh",mc9l5x:"f13qh94s",Bnnss6s:"fi64zpg",Bxotwcr:"f1u07yai",Budl1dq:"frn2hmy",wkccdc:"f1olsevy",Bahqtrf:"fk6fouc",Bg96gwp:"f1i3iumi",oeaueh:"f1s6fcnf",qhf8xq:"f10pi13n",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",B9bfxx9:"f1cxpek8"},horizontal:{Brf1p80:"f4d9j23"},vertical:{Brf1p80:"f1s9ku6b"},smallHorizontal:{i8kkvl:"f14mj54c",z8tnut:"fp2oml8",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"f1tdddsa",uwmqm3:["fk8j09s","fdw0yi8"]},smallVertical:{i8kkvl:"f14mj54c",z8tnut:"fclwglc",z189sj:["fdw0yi8","fk8j09s"],Byoj8tv:"fywfov9",uwmqm3:["fk8j09s","fdw0yi8"]},mediumHorizontal:{i8kkvl:"f1rjii52",z8tnut:"f5yzyt",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"fx3omr",uwmqm3:["f1ng84yb","f11gcy0p"]},mediumVertical:{i8kkvl:"f1rjii52",z8tnut:"fp2oml8",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"f1tdddsa",uwmqm3:["f1ng84yb","f11gcy0p"]},largeHorizontal:{i8kkvl:"f1rjii52",z8tnut:"fikn0iw",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"fdxej3c",uwmqm3:["f1ng84yb","f11gcy0p"]},largeVertical:{i8kkvl:"f1rjii52",z8tnut:"f1kwiid1",z189sj:["f11gcy0p","f1ng84yb"],Byoj8tv:"f5b47ha",uwmqm3:["f1ng84yb","f11gcy0p"]},transparent:{De3pzq:"f1c21dwh",Jwef8y:"fjxutwb",ecr2s2:"fophhak",Bptxc3x:"fmmjozx",B076xvk:"f1mfqf41",q9r9w5:"f10aiid4",cl4aha:"fpkze5g",Bk452zc:"f149wc3x",a4hkcw:"fjioou7"},subtle:{De3pzq:"fhovq9v",Jwef8y:"f1t94bn6",ecr2s2:"f1wfn5kd",Bptxc3x:"fmmjozx",B076xvk:"f1mfqf41",q9r9w5:"f10aiid4",cl4aha:"fpkze5g",Bk452zc:"f149wc3x",a4hkcw:"fjioou7"},disabled:{De3pzq:"f1c21dwh",Bptxc3x:"fato7r6",cl4aha:"fao1bnu",Bceei9c:"fdrzuqr"},selected:{Bptxc3x:"f1cadz5z",B076xvk:"f1ck17l",q9r9w5:"f42ak0g",cl4aha:"ffplhdr",Bk452zc:"ffth601",a4hkcw:"fhklyu5"}},{d:[".f122n59{align-items:center;}",".fwhevhj{border-top-color:none;}",".f61n433{border-right-color:none;}",".f1q8l70w{border-left-color:none;}",".fv1dfc8{border-bottom-color:none;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".fre7gi1{border-top-width:0;}",".f1358rze{border-right-width:0;}",".f1rvrf73{border-left-width:0;}",".fqdk4by{border-bottom-width:0;}",".f1k6fduh{cursor:pointer;}",".f13qh94s{display:grid;}",".fi64zpg{flex-shrink:0;}",".f1u07yai{grid-auto-flow:column;}",".frn2hmy{grid-template-columns:auto;}",".f1olsevy{grid-template-rows:auto;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1s6fcnf{outline-style:none;}",".f10pi13n{position:relative;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".f1cxpek8{text-transform:none;}",".f4d9j23{justify-content:center;}",".f1s9ku6b{justify-content:start;}",".f14mj54c{column-gap:var(--spacingHorizontalXXS);}",".fp2oml8{padding-top:var(--spacingVerticalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".f1tdddsa{padding-bottom:var(--spacingVerticalSNudge);}",".fclwglc{padding-top:var(--spacingVerticalXXS);}",".fywfov9{padding-bottom:var(--spacingVerticalXXS);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".f5yzyt{padding-top:var(--spacingVerticalM);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".fx3omr{padding-bottom:var(--spacingVerticalM);}",".fikn0iw{padding-top:var(--spacingVerticalL);}",".fdxej3c{padding-bottom:var(--spacingVerticalL);}",".f1kwiid1{padding-top:var(--spacingVerticalS);}",".f5b47ha{padding-bottom:var(--spacingVerticalS);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fmmjozx .fui-Tab__icon{color:var(--colorNeutralForeground2);}",".fpkze5g .fui-Tab__content{color:var(--colorNeutralForeground2);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fato7r6 .fui-Tab__icon{color:var(--colorNeutralForegroundDisabled);}",".fao1bnu .fui-Tab__content{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f1cadz5z .fui-Tab__icon{color:var(--colorCompoundBrandForeground1);}",".ffplhdr .fui-Tab__content{color:var(--colorNeutralForeground1);}"],h:[".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".f1mfqf41:hover .fui-Tab__icon{color:var(--colorNeutralForeground2Hover);}",".f149wc3x:hover .fui-Tab__content{color:var(--colorNeutralForeground2Hover);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".f1ck17l:hover .fui-Tab__icon{color:var(--colorCompoundBrandForeground1Hover);}",".ffth601:hover .fui-Tab__content{color:var(--colorNeutralForeground1Hover);}"],a:[".fophhak:active{background-color:var(--colorTransparentBackgroundPressed);}",".f10aiid4:active .fui-Tab__icon{color:var(--colorNeutralForeground2Pressed);}",".fjioou7:active .fui-Tab__content{color:var(--colorNeutralForeground2Pressed);}",".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}",".f42ak0g:active .fui-Tab__icon{color:var(--colorCompoundBrandForeground1Pressed);}",".fhklyu5:active .fui-Tab__content{color:var(--colorNeutralForeground1Pressed);}"]}),sL=F({base:{B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bn4voq9:"f1p7hgxw",Bfpq7zp:"f1way5bb",g9k6zt:"f9znhxp",j6ew2k:["fqa318h","fqa318h"],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;}"]}),lL=F({base:{az7l2e:"fhw179n",Bv4n3vi:["f10y1uxy","f6aiuy0"],vqofr:["f6aiuy0","f10y1uxy"],B0uxbk8:["f1kfpfnu","f1dx5wco"],Bgqb9hq:["f1dx5wco","f1kfpfnu"],amg5m6:"f1kmhr4c",zkfqfm:"fl1ydde",Bkydozb:"f1y7maxz",vzq8l0:["f105swax","fscdmel"],Bka2azo:["fscdmel","f105swax"],Br4ovkg:["f1tkcw1w","f1u11x8o"],csmgbd:["f1u11x8o","f1tkcw1w"],y36c18:"f16cxu0",B1ctymy:"f1nwgacf",Bgvrrv0:"f15ovonk",ddr6p5:"fvje46l"},disabled:{az7l2e:"f1ut20fw",Bkydozb:"fhrzcfn"},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);}",".f10y1uxy:hover::before{border-bottom-right-radius:var(--borderRadiusCircular);}",".f6aiuy0:hover::before{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1kfpfnu:hover::before{border-top-right-radius:var(--borderRadiusCircular);}",".f1dx5wco:hover::before{border-top-left-radius:var(--borderRadiusCircular);}",'.f1kmhr4c:hover::before{content:"";}',".fl1ydde:hover::before{position:absolute;}",".f1ut20fw:hover::before{background-color:var(--colorTransparentStroke);}"],a:[".f1y7maxz:active::before{background-color:var(--colorNeutralStroke1Pressed);}",".f105swax:active::before{border-bottom-right-radius:var(--borderRadiusCircular);}",".fscdmel:active::before{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1tkcw1w:active::before{border-top-right-radius:var(--borderRadiusCircular);}",".f1u11x8o:active::before{border-top-left-radius:var(--borderRadiusCircular);}",'.f16cxu0:active::before{content:"";}',".f1nwgacf:active::before{position:absolute;}",".fhrzcfn:active::before{background-color:var(--colorTransparentStroke);}"],m:[["@media (forced-colors: active){.f15ovonk:hover::before{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fvje46l:active::before{background-color:Highlight;}}",{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);}"]}),cL=F({base:{Bjyk6c5:"f1rp0jgh",B3778ie:["fprarqb","f14vs0nd"],d9w3h3:["f14vs0nd","fprarqb"],Bl18szs:["f1gtfqs9","f18zvfd9"],B4j8arr:["f18zvfd9","f1gtfqs9"],Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",t2ki1e:"ffmd2fr"},selected:{Bjyk6c5:"f1ksivud",Glksuk:"f1eytvvh",Blzl0y7:"fuaa9s",f7digc:"fy7ktjt",Biqphg1:"f16tp0gf",Bntoloa:"fj0yp7j"},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);}",".fprarqb::after{border-bottom-right-radius:var(--borderRadiusCircular);}",".f14vs0nd::after{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1gtfqs9::after{border-top-right-radius:var(--borderRadiusCircular);}",".f18zvfd9::after{border-top-left-radius:var(--borderRadiusCircular);}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".ffmd2fr::after{z-index:1;}",".f1ksivud::after{background-color:var(--colorCompoundBrandStroke);}",".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);}"],h:[".f1eytvvh:hover::after{background-color:var(--colorCompoundBrandStrokeHover);}"],a:[".fuaa9s:active::after{background-color:var(--colorCompoundBrandStrokePressed);}"],m:[["@media (forced-colors: active){.fy7ktjt::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16tp0gf:hover::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fj0yp7j:active::after{background-color:ButtonText;}}",{m:"(forced-colors: active)"}]]}),uL=F({base:{Br312pm:"fwpfdsa",Ijaq50:"f16hsg94",Bt984gj:"f122n59",mc9l5x:"ftuwxu6",Brf1p80:"f4d9j23",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",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;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".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;}"]}),dL=F({base:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",z8tnut:"fztplxc",z189sj:["ffczdla","fgiv446"],Byoj8tv:"f9g1xly",uwmqm3:["fgiv446","ffczdla"]},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);}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".fztplxc{padding-top:var(--spacingVerticalNone);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".f9g1xly{padding-bottom:var(--spacingVerticalNone);}",".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;}"]}),fL=t=>{const e=aL(),r=sL(),o=lL(),n=cL(),i=uL(),a=dL(),{appearance:s,disabled:l,selected:c,size:u,vertical:d}=t;return t.root.className=R(Xh.root,e.base,d?e.vertical:e.horizontal,u==="small"&&(d?e.smallVertical:e.smallHorizontal),u==="medium"&&(d?e.mediumVertical:e.mediumHorizontal),u==="large"&&(d?e.largeVertical:e.largeHorizontal),r.base,!l&&s==="subtle"&&e.subtle,!l&&s==="transparent"&&e.transparent,!l&&c&&e.selected,l&&e.disabled,o.base,u==="small"&&(d?o.smallVertical:o.smallHorizontal),u==="medium"&&(d?o.mediumVertical:o.mediumHorizontal),u==="large"&&(d?o.largeVertical:o.largeHorizontal),l&&o.disabled,c&&n.base,c&&!l&&n.selected,c&&u==="small"&&(d?n.smallVertical:n.smallHorizontal),c&&u==="medium"&&(d?n.mediumVertical:n.mediumHorizontal),c&&u==="large"&&(d?n.largeVertical:n.largeHorizontal),c&&l&&n.disabled,t.root.className),t.icon&&(t.icon.className=R(Xh.icon,i.base,i[u],c&&i.selected,t.icon.className)),t.contentReservedSpace&&(t.contentReservedSpace.className=R(iL.content,a.base,u==="large"?a.largeSelected:a.selected,t.icon?a.iconBefore:a.noIconBefore,a.placeholder,t.content.className),t.contentReservedSpaceClassName=t.contentReservedSpace.className),t.content.className=R(Xh.content,a.base,u==="large"&&a.large,c&&(u==="large"?a.largeSelected:a.selected),t.icon?a.iconBefore:a.noIconBefore,t.content.className),nL(t),t},hL=y.forwardRef((t,e)=>{const r=eL(t,e);return fL(r),de("useTabStyles_unstable")(r),tL(r)});hL.displayName="Tab";const gL=(t,e)=>{const{appearance:r="transparent",reserveSelectedTabSpace:o=!0,disabled:n=!1,onTabSelect:i,selectTabOnFocus:a=!1,size:s="medium",vertical:l=!1}=t,c=y.useRef(null),u=Za({circular:!0,axis:l?"vertical":"horizontal",memorizeCurrent:!0}),[d,f]=Et({state:t.selectedValue,defaultState:t.defaultSelectedValue,initialState:void 0}),h=y.useRef(void 0),g=y.useRef(void 0);y.useEffect(()=>{g.current=h.current,h.current=d},[d]);const m=Q((k,x)=>{f(x.value),i?.(k,x)}),w=y.useRef({}),v=Q(k=>{w.current[JSON.stringify(k.value)]=k}),p=Q(k=>{delete w.current[JSON.stringify(k.value)]}),b=y.useCallback(()=>({selectedValue:h.current,previousSelectedValue:g.current,registeredTabs:w.current}),[]);return{components:{root:"div"},root:ee(me("div",{ref:Be(e,c),role:"tablist","aria-orientation":l?"vertical":"horizontal",...u,...t}),{elementType:"div"}),appearance:r,reserveSelectedTabSpace:o,disabled:n,selectTabOnFocus:a,selectedValue:d,size:s,vertical:l,onRegister:v,onUnregister:p,onSelect:m,getRegisteredTabs:b}},pL=(t,e)=>P(t.root,{children:P(Jq,{value:e.tabList,children:t.root.children})}),mL={root:"fui-TabList"},vL=F({root:{mc9l5x:"f22iagw",Beiy3e4:"f1063pyq",Bnnss6s:"fi64zpg",Eh141a:"flvyvdh",qhf8xq:"f10pi13n"},horizontal:{Bt984gj:"f1q9h2pe",Beiy3e4:"f1063pyq"},vertical:{Bt984gj:"f1q9h2pe",Beiy3e4:"f1vx9l62"}},{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;}"]}),bL=t=>{const{vertical:e}=t,r=vL();return t.root.className=R(mL.root,r.root,e?r.vertical:r.horizontal,t.root.className),t};function yL(t){const{appearance:e,reserveSelectedTabSpace:r,disabled:o,selectTabOnFocus:n,selectedValue:i,onRegister:a,onUnregister:s,onSelect:l,getRegisteredTabs:c,size:u,vertical:d}=t;return{tabList:{appearance:e,reserveSelectedTabSpace:r,disabled:o,selectTabOnFocus:n,selectedValue:i,onSelect:l,onRegister:a,onUnregister:s,getRegisteredTabs:c,size:u,vertical:d}}}const wL=y.forwardRef((t,e)=>{const r=gL(t,e),o=yL(r);return bL(r),de("useTabListStyles_unstable")(r),pL(r,o)});wL.displayName="TabList";const ZT=(t,e)=>{const{wrap:r,truncate:o,block:n,italic:i,underline:a,strikethrough:s,size:l,font:c,weight:u,align:d}=t;return{align:d??"start",block:n??!1,font:c??"base",italic:i??!1,size:l??300,strikethrough:s??!1,truncate:o??!1,underline:a??!1,weight:u??"regular",wrap:r??!0,components:{root:"span"},root:ee(me("span",{ref:e,...t}),{elementType:"span"})}},QT=t=>P(t.root,{}),kL={root:"fui-Text"},SL=F({root:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi",Bhrd7zp:"figsok6",fsow6f:"fpgzoln",mc9l5x:"f1w7gpdv",Huce71:"f6juhto",B68tc82:"f1mtd64y",Bmxbyg5:"f1y7q3j9",ygn44y:"f2jf649"},nowrap:{Huce71:"fz5stix",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw"},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;}",".f1mtd64y{overflow-x:visible;}",".f1y7q3j9{overflow-y:visible;}",".f2jf649{text-overflow:clip;}",".fz5stix{white-space:nowrap;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".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;}"]}),JT=t=>{const e=SL();return t.root.className=R(kL.root,e.root,t.wrap===!1&&e.nowrap,t.truncate&&e.truncate,t.block&&e.block,t.italic&&e.italic,t.underline&&e.underline,t.strikethrough&&e.strikethrough,t.underline&&t.strikethrough&&e.strikethroughUnderline,t.size===100&&e.base100,t.size===200&&e.base200,t.size===400&&e.base400,t.size===500&&e.base500,t.size===600&&e.base600,t.size===700&&e.hero700,t.size===800&&e.hero800,t.size===900&&e.hero900,t.size===1e3&&e.hero1000,t.font==="monospace"&&e.monospace,t.font==="numeric"&&e.numeric,t.weight==="medium"&&e.weightMedium,t.weight==="semibold"&&e.weightSemibold,t.weight==="bold"&&e.weightBold,t.align==="center"&&e.alignCenter,t.align==="end"&&e.alignEnd,t.align==="justify"&&e.alignJustify,t.root.className),t},_L=y.forwardRef((t,e)=>{const r=ZT(t,e);return JT(r),de("useTextStyles_unstable")(r),QT(r)});_L.displayName="Text";function ri(t){const{useStyles:e,className:r,displayName:o}=t,n=y.forwardRef((i,a)=>{const s=e(),l=ZT(i,a);return JT(l),l.root.className=R(r,l.root.className,s.root,i.className),QT(l)});return n.displayName=o,n}const xL={root:"fui-Body1"},CL=F({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);}"]}),iee=ri({useStyles:CL,className:xL.root,displayName:"Body1"}),TL={root:"fui-Body1Strong"},EL=F({root:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"fl43uef",Bg96gwp:"f1i3iumi"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".f1i3iumi{line-height:var(--lineHeightBase300);}"]}),aee=ri({useStyles:EL,className:TL.root,displayName:"Body1Strong"}),BL={root:"fui-Caption1"},IL=F({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);}"]}),see=ri({useStyles:IL,className:BL.root,displayName:"Caption1"}),RL={root:"fui-Caption1Stronger"},AL=F({root:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"flh3ekv",Bg96gwp:"fwrc4pm"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".flh3ekv{font-weight:var(--fontWeightBold);}",".fwrc4pm{line-height:var(--lineHeightBase200);}"]}),lee=ri({useStyles:AL,className:RL.root,displayName:"Caption1Stronger"}),NL={root:"fui-LargeTitle"},PL=F({root:{Bahqtrf:"fk6fouc",Be2twd7:"f15afnhw",Bhrd7zp:"fl43uef",Bg96gwp:"fr3w3wp"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f15afnhw{font-size:var(--fontSizeHero900);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fr3w3wp{line-height:var(--lineHeightHero900);}"]}),cee=ri({useStyles:PL,className:NL.root,displayName:"LargeTitle"}),zL={root:"fui-Subtitle1"},ML=F({root:{Bahqtrf:"fk6fouc",Be2twd7:"f1pp30po",Bhrd7zp:"fl43uef",Bg96gwp:"f106mvju"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".f106mvju{line-height:var(--lineHeightBase500);}"]}),uee=ri({useStyles:ML,className:zL.root,displayName:"Subtitle1"}),OL={root:"fui-Subtitle2"},jL=F({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);}"]}),dee=ri({useStyles:jL,className:OL.root,displayName:"Subtitle2"}),DL={root:"fui-Title3"},FL=F({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);}"]}),fee=ri({useStyles:FL,className:DL.root,displayName:"Title3"}),qL=t=>P(t.root,{children:P(t.textarea,{})}),LL=(t,e)=>{t=ys(t,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const r=gf();var o;const{size:n="medium",appearance:i=(o=r.inputDefaultAppearance)!==null&&o!==void 0?o:"outline",resize:a="none",onChange:s}=t,[l,c]=Et({state:t.value,defaultState:t.defaultValue,initialState:void 0}),u=Ki({props:t,primarySlotTagName:"textarea",excludedPropNames:["onChange","value","defaultValue"]}),d={size:n,appearance:i,resize:a,components:{root:"span",textarea:"textarea"},textarea:ee(t.textarea,{defaultProps:{ref:e,...u.primary},elementType:"textarea"}),root:ee(t.root,{defaultProps:u.root,elementType:"span"})};return d.textarea.value=l,d.textarea.onChange=Q(f=>{const h=f.target.value;s?.(f,{value:h}),c(h)}),d},Fw={root:"fui-Textarea",textarea:"fui-Textarea__textarea"},HL=F({base:{mc9l5x:"ftuwxu6",B7ck84d:"f1ewtqcl",qhf8xq:"f10pi13n",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1ean75l",uwmqm3:["f1cnd47f","fhxju0i"],B6of3ja:"f1hu3pq6",t21cq0:["f11qmguv","f1tyq0we"],jrapky:"f19f4twv",Frg6f3:["f1tyq0we","f11qmguv"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"]},disabled:{De3pzq:"f1c21dwh",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"]},interactive:{li1rpt:"f1gw3sf2",Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",Eqx8gd:["f1a7op3","f1cjjd47"],By385i5:"f1gboi2j",B1piin3:["f1cjjd47","f1a7op3"],Dlnsje:"ffyw7fx",d9w3h3:["f1kp91vd","f1ibwz09"],B3778ie:["f1ibwz09","f1kp91vd"],Bcgy8vk:"f14pi962",Bw17bha:"f1lh990p",B1q35kw:"f1jc6hxc",Gjdm7m:"fj2g8qd",b1kco5:"f1yk9hq",Ba2ppi3:"fhwpy7i",F2fol1:"f14ee0xe",lck23g:"f1xhbsuh",df92cz:"fv8e3ye",I188md:"ftb5wc6",umuwi5:"fjw5xc1",Blcqepd:"f1xdyd5c",nplu4u:"fatpbeo",Bioka5o:"fb7uyps",H713fs:"f1cmft4k",B9ooomg:"f1x58t8o",Bercvud:"f1ibeo51",Bbr2w1p:"f1vnc8sk",Bduesf4:"f3e99gv",Bpq79vn:"fhljsf7"},filled:{B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"],q7v0qe:"ftmjh5b",kmh5ft:["f17blpuu","fsrcdbj"],nagaa4:"f1tpwn32",B1yhkcb:["fsrcdbj","f17blpuu"]},"filled-darker":{De3pzq:"f16xq7d1"},"filled-lighter":{De3pzq:"fxugw4r"},"filled-darker-shadow":{De3pzq:"f16xq7d1",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"f1bh3yvw",h3c5rm:["fmi79ni","f11fozsx"],B9xav0g:"fnzw4c6",zhjwy3:["f11fozsx","fmi79ni"],E5pizo:"fyed02w"},"filled-lighter-shadow":{De3pzq:"fxugw4r",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"f1bh3yvw",h3c5rm:["fmi79ni","f11fozsx"],B9xav0g:"fnzw4c6",zhjwy3:["f11fozsx","fmi79ni"],E5pizo:"fyed02w"},outline:{De3pzq:"fxugw4r",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1c1zstj",zhjwy3:["f1lxtadh","f1akhkt"]},outlineInteractive:{ckks6v:"f7ic3uo",B2zwrfe:["f1omjgsz","f1snvl17"],xv9156:"fn6xmsl",dt87k2:["f1snvl17","f1omjgsz"],Bf40cpq:"f1sn8sm0",Bop6t4b:["f1wovo5e","f716mnf"],gvrnp0:"fm0h710",Beu9t3s:["f716mnf","f1wovo5e"],Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"f1l4zc64",gg5e9n:["f1m52nbi","f1ub3y4t"],uqwnxt:"fk7lb2a",Bvecx4l:["f1knhbbd","f17itt0b"],Bs0cc2w:"f15pjvi3",e1hlit:["f17itt0b","f1knhbbd"],e2sjt0:"f6ginmj",Bbcopvn:["f1grcyuh","fgzu20w"],Bj33j0h:"fk1xjsr",f7epvg:["fgzu20w","f1grcyuh"],B6oc9vd:"fvs00aa",ak43y8:["f1assf6x","f4ruux4"],wmxk5l:"f1z0osm6",B50zh58:["f4ruux4","f1assf6x"],Bbs6y8j:"fu7v4fk",rexu52:["f1fnaxjy","fwory1w"],B7pmvfx:"f7hodha",Belqbek:["fwory1w","f1fnaxjy"],Bawrxx6:"f8jkv7v",r7b1zc:["f1f3jaeo","fh8au0q"],Bt3ojkv:"f19usxel",t1ykpo:["fh8au0q","f1f3jaeo"],Bvq3b66:"f12oevn0",Brahy3i:["fvdgz8d","f1cq0lt5"],zoxjo1:"f1so894s",an54nd:["f1cq0lt5","fvdgz8d"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]}},{d:[".ftuwxu6{display:inline-flex;}",".f1ewtqcl{box-sizing:border-box;}",".f10pi13n{position:relative;}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1ean75l{padding-bottom:var(--strokeWidthThick);}",".f1hu3pq6{margin-top:0;}",".f11qmguv{margin-right:0;}",".f1tyq0we{margin-left:0;}",".f19f4twv{margin-bottom:0;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".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);}",".f14pi962::after{border-bottom-width:var(--strokeWidthThick);}",".f1lh990p::after{border-bottom-style:solid;}",".f1jc6hxc::after{border-bottom-color:var(--colorCompoundBrandStroke);}",".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);}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1bh3yvw{border-top-color:var(--colorTransparentStrokeInteractive);}",".fmi79ni{border-right-color:var(--colorTransparentStrokeInteractive);}",".f11fozsx{border-left-color:var(--colorTransparentStrokeInteractive);}",".fnzw4c6{border-bottom-color:var(--colorTransparentStrokeInteractive);}",".fyed02w{box-shadow:var(--shadow2);}",".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".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){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media screen and (prefers-reduced-motion: reduce){.fv8e3ye::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.ftb5wc6::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1cmft4k:focus-within::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1x58t8o:focus-within::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]],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;}",".fu7v4fk:focus-within{border-top-width:var(--strokeWidthThin);}",".f1fnaxjy:focus-within{border-right-width:var(--strokeWidthThin);}",".fwory1w:focus-within{border-left-width:var(--strokeWidthThin);}",".f7hodha:focus-within{border-bottom-width:var(--strokeWidthThin);}",".f8jkv7v:focus-within{border-top-style:solid;}",".f1f3jaeo:focus-within{border-right-style:solid;}",".fh8au0q:focus-within{border-left-style:solid;}",".f19usxel:focus-within{border-bottom-style:solid;}",".f12oevn0:focus-within{border-top-color:var(--colorNeutralStroke1);}",".fvdgz8d:focus-within{border-right-color:var(--colorNeutralStroke1);}",".f1cq0lt5:focus-within{border-left-color:var(--colorNeutralStroke1);}",".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);}",".f7ic3uo:hover{border-top-width:var(--strokeWidthThin);}",".f1omjgsz:hover{border-right-width:var(--strokeWidthThin);}",".f1snvl17:hover{border-left-width:var(--strokeWidthThin);}",".fn6xmsl:hover{border-bottom-width:var(--strokeWidthThin);}",".f1sn8sm0:hover{border-top-style:solid;}",".f1wovo5e:hover{border-right-style:solid;}",".f716mnf:hover{border-left-style:solid;}",".fm0h710:hover{border-bottom-style:solid;}",".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:[".fk7lb2a:active{border-top-width:var(--strokeWidthThin);}",".f1knhbbd:active{border-right-width:var(--strokeWidthThin);}",".f17itt0b:active{border-left-width:var(--strokeWidthThin);}",".f15pjvi3:active{border-bottom-width:var(--strokeWidthThin);}",".f6ginmj:active{border-top-style:solid;}",".f1grcyuh:active{border-right-style:solid;}",".fgzu20w:active{border-left-style:solid;}",".fk1xjsr:active{border-bottom-style:solid;}",".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);}"]}),UL=F({base:{icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],oivjwe:"f1h8hb77",wvpqe5:["f1deefiw","f1n71otn"],B6of3ja:"f1hu3pq6",t21cq0:["f11qmguv","f1tyq0we"],jrapky:"f19f4twv",Frg6f3:["f1tyq0we","f11qmguv"],De3pzq:"f3rmtva",B7ck84d:"f1ewtqcl",sj55zd:"f19n0e5",Bh6795r:"fqerorx",Bahqtrf:"fk6fouc",Bqenvij:"f1l02sjl",yvdlaj:"fwyc1cq",B3o7kgh:"f13ta7ih",B4brmom:"f1vw9udw",Brrnbx2:"fbb3kq8",oeaueh:"f1s6fcnf"},disabled:{sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"},small:{sshi5w:"f1w5jphr",z8tnut:"f1ywm7hm",z189sj:["fqznh8f","f1xile11"],Byoj8tv:"f14wxoun",uwmqm3:["f1xile11","fqznh8f"],Bxyxcbc:"f192z54u",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},medium:{sshi5w:"fvmd9f",z8tnut:"fp2oml8",z189sj:["f135dnwl","f1e60jzv"],Byoj8tv:"f1tdddsa",uwmqm3:["f1e60jzv","f135dnwl"],Bxyxcbc:"f1if7ixc",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},large:{sshi5w:"f1kfson",z8tnut:"f1kwiid1",z189sj:["fcgl2c4","f1anj20m"],Byoj8tv:"f5b47ha",uwmqm3:["f1anj20m","fcgl2c4"],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;}",".f1hu3pq6{margin-top:0;}",".f11qmguv{margin-right:0;}",".f1tyq0we{margin-left:0;}",".f19f4twv{margin-bottom:0;}",".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;}",".f1vw9udw::selection{color:var(--colorNeutralForegroundInverted);}",".fbb3kq8::selection{background-color:var(--colorNeutralBackgroundInverted);}",".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;}",".f1ywm7hm{padding-top:var(--spacingVerticalXS);}",".fqznh8f{padding-right:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".f1xile11{padding-left:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".f14wxoun{padding-bottom:var(--spacingVerticalXS);}",".f192z54u{max-height:200px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fvmd9f{min-height:52px;}",".fp2oml8{padding-top:var(--spacingVerticalSNudge);}",".f135dnwl{padding-right:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f1e60jzv{padding-left:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f1tdddsa{padding-bottom:var(--spacingVerticalSNudge);}",".f1if7ixc{max-height:260px;}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1kfson{min-height:64px;}",".f1kwiid1{padding-top:var(--spacingVerticalS);}",".fcgl2c4{padding-right:calc(var(--spacingHorizontalM) + var(--spacingHorizontalXXS));}",".f1anj20m{padding-left:calc(var(--spacingHorizontalM) + var(--spacingHorizontalXXS));}",".f5b47ha{padding-bottom:var(--spacingVerticalS);}",".f3kip1f{max-height:320px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}"]}),$L=F({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;}"]}),KL=t=>{const{size:e,appearance:r,resize:o}=t,n=t.textarea.disabled,i=`${t.textarea["aria-invalid"]}`=="true",a=r.startsWith("filled"),s=HL();t.root.className=R(Fw.root,s.base,n&&s.disabled,!n&&a&&s.filled,!n&&s[r],!n&&s.interactive,!n&&r==="outline"&&s.outlineInteractive,!n&&i&&s.invalid,t.root.className);const l=UL(),c=$L();return t.textarea.className=R(Fw.textarea,l.base,l[e],c[o],n&&l.disabled,t.textarea.className),t},WL=y.forwardRef((t,e)=>{const r=LL(t,e);return KL(r),de("useTextareaStyles_unstable")(r),qL(r)});WL.displayName="Textarea";const ui="__fluentDisableScrollElement";function VL(){const{targetDocument:t}=Ae();return y.useCallback(()=>{if(t)return GL(t.body)},[t])}function GL(t){var e;const{clientWidth:r}=t.ownerDocument.documentElement;var o;const n=(o=(e=t.ownerDocument.defaultView)===null||e===void 0?void 0:e.innerWidth)!==null&&o!==void 0?o:0;return XL(t),t[ui].count===0&&(t.style.overflow="hidden",t.style.paddingRight=`${n-r}px`),t[ui].count++,()=>{t[ui].count--,t[ui].count===0&&(t.style.overflow=t[ui].previousOverflowStyle,t.style.paddingRight=t[ui].previousPaddingRightStyle)}}function XL(t){var e,r,o;(o=(e=t)[r=ui])!==null&&o!==void 0||(e[r]={count:0,previousOverflowStyle:t.style.overflow,previousPaddingRightStyle:t.style.paddingRight})}function YL(t,e){const{findFirstFocusable:r}=No(),{targetDocument:o}=Ae(),n=y.useRef(null);return y.useEffect(()=>{if(!t)return;const i=n.current&&r(n.current);if(i)i.focus();else{var a;(a=n.current)===null||a===void 0||a.focus()}},[r,t,e,o]),n}const ZL={open:!1,inertTrapFocus:!1,modalType:"modal",isNestedDialog:!1,dialogRef:{current:null},requestOpenChange(){}},Z1=hn(void 0),QL=Z1.Provider,wo=t=>ct(Z1,(e=ZL)=>t(e)),JL=!1,e5=y.createContext(void 0),t5=e5.Provider,eH=()=>{var t;return(t=y.useContext(e5))!==null&&t!==void 0?t:JL},tH=t=>{const{children:e,modalType:r="modal",onOpenChange:o,inertTrapFocus:n=!1}=t,[i,a]=rH(e),[s,l]=Et({state:t.open,defaultState:t.defaultOpen,initialState:!1}),c=Q(m=>{o?.(m.event,m),m.event.isDefaultPrevented()||l(m.open)}),u=YL(s,r),d=VL(),f=!!(s&&r!=="non-modal");Jt(()=>{if(f)return d()},[d,f]);const{modalAttributes:h,triggerAttributes:g}=bf({trapFocus:r!=="non-modal",legacyTrapFocus:!n});return{components:{backdrop:"div"},inertTrapFocus:n,open:s,modalType:r,content:a,trigger:i,requestOpenChange:c,dialogTitleId:Bt("dialog-title-"),isNestedDialog:fc(Z1),dialogRef:u,modalAttributes:r!=="non-modal"?h:void 0,triggerAttributes:g}};function rH(t){const e=y.Children.toArray(t);switch(e.length){case 2:return e;case 1:return[void 0,e[0]];default:return[void 0,void 0]}}function oH(t,e){if(t==null)return{};var r={},o=Object.keys(t),n,i;for(i=0;i=0)&&(r[n]=t[n]);return r}function Xp(t,e){return Xp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,n){return o.__proto__=n,o},Xp(t,e)}function nH(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Xp(t,e)}var r5={exports:{}},iH="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",aH=iH,sH=aH;function o5(){}function n5(){}n5.resetWarningCache=o5;var lH=function(){function t(o,n,i,a,s,l){if(l!==sH){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}t.isRequired=t;function e(){return t}var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:n5,resetWarningCache:o5};return r.PropTypes=r,r};r5.exports=lH();var cH=r5.exports;const qe=Ao(cH),qw={disabled:!1},i5=dt.createContext(null);var uH=function(e){return e.scrollTop},Gs="unmounted",di="exited",fi="entering",ua="entered",Yp="exiting",pn=function(t){nH(e,t);function e(o,n){var i;i=t.call(this,o,n)||this;var a=n,s=a&&!a.isMounting?o.enter:o.appear,l;return i.appearStatus=null,o.in?s?(l=di,i.appearStatus=fi):l=ua:o.unmountOnExit||o.mountOnEnter?l=Gs:l=di,i.state={status:l},i.nextCallback=null,i}e.getDerivedStateFromProps=function(n,i){var a=n.in;return a&&i.status===Gs?{status:di}:null};var r=e.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(n){var i=null;if(n!==this.props){var a=this.state.status;this.props.in?a!==fi&&a!==ua&&(i=fi):(a===fi||a===ua)&&(i=Yp)}this.updateStatus(!1,i)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var n=this.props.timeout,i,a,s;return i=a=s=n,n!=null&&typeof n!="number"&&(i=n.exit,a=n.enter,s=n.appear!==void 0?n.appear:a),{exit:i,enter:a,appear:s}},r.updateStatus=function(n,i){if(n===void 0&&(n=!1),i!==null)if(this.cancelNextCallback(),i===fi){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Zc.findDOMNode(this);a&&uH(a)}this.performEnter(n)}else this.performExit();else this.props.unmountOnExit&&this.state.status===di&&this.setState({status:Gs})},r.performEnter=function(n){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:n,l=this.props.nodeRef?[s]:[Zc.findDOMNode(this),s],c=l[0],u=l[1],d=this.getTimeouts(),f=s?d.appear:d.enter;if(!n&&!a||qw.disabled){this.safeSetState({status:ua},function(){i.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:fi},function(){i.props.onEntering(c,u),i.onTransitionEnd(f,function(){i.safeSetState({status:ua},function(){i.props.onEntered(c,u)})})})},r.performExit=function(){var n=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:Zc.findDOMNode(this);if(!i||qw.disabled){this.safeSetState({status:di},function(){n.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Yp},function(){n.props.onExiting(s),n.onTransitionEnd(a.exit,function(){n.safeSetState({status:di},function(){n.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(n,i){i=this.setNextCallback(i),this.setState(n,i)},r.setNextCallback=function(n){var i=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,n(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},r.onTransitionEnd=function(n,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:Zc.findDOMNode(this),s=n==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}n!=null&&setTimeout(this.nextCallback,n)},r.render=function(){var n=this.state.status;if(n===Gs)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=oH(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return dt.createElement(i5.Provider,{value:null},typeof a=="function"?a(n,s):dt.cloneElement(dt.Children.only(a),s))},e}(dt.Component);pn.contextType=i5;pn.propTypes={};function ta(){}pn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ta,onEntering:ta,onEntered:ta,onExit:ta,onExiting:ta,onExited:ta};pn.UNMOUNTED=Gs;pn.EXITED=di;pn.ENTERING=fi;pn.ENTERED=ua;pn.EXITING=Yp;const a5=pn,dH=void 0,s5=y.createContext(void 0),fH=s5.Provider,hH=()=>{var t;return(t=y.useContext(s5))!==null&&t!==void 0?t:dH},gH=(t,e)=>{const{content:r,trigger:o}=t;return P(QL,{value:e.dialog,children:we(t5,{value:e.dialogSurface,children:[o,P(a5,{mountOnEnter:!0,unmountOnExit:!0,in:t.open,nodeRef:t.dialogRef,appear:!0,timeout:250,children:n=>P(fH,{value:n,children:r})})]})})};function pH(t){const{modalType:e,open:r,dialogRef:o,dialogTitleId:n,isNestedDialog:i,inertTrapFocus:a,requestOpenChange:s,modalAttributes:l,triggerAttributes:c}=t;return{dialog:{open:r,modalType:e,dialogRef:o,dialogTitleId:n,isNestedDialog:i,inertTrapFocus:a,modalAttributes:l,triggerAttributes:c,requestOpenChange:s},dialogSurface:!1}}const Zp=y.memo(t=>{const e=tH(t),r=pH(e);return gH(e,r)});Zp.displayName="Dialog";const mH=t=>{const e=eH(),{children:r,disableButtonEnhancement:o=!1,action:n=e?"close":"open"}=t,i=lc(r),a=wo(d=>d.requestOpenChange),{triggerAttributes:s}=bf(),l=Q(d=>{var f,h;i==null||(f=(h=i.props).onClick)===null||f===void 0||f.call(h,d),d.isDefaultPrevented()||a({event:d,type:"triggerClick",open:n==="open"})}),c={...i?.props,ref:i?.ref,onClick:l,...s},u=Pi(i?.type==="button"||i?.type==="a"?i.type:"div",{...c,type:"button"});return{children:pf(r,o?c:u)}},vH=t=>t.children,Q1=t=>{const e=mH(t);return vH(e)};Q1.displayName="DialogTrigger";Q1.isFluentTriggerComponent=!0;const bH=(t,e)=>{const{position:r="end",fluid:o=!1}=t;return{components:{root:"div"},root:ee(me("div",{ref:e,...t}),{elementType:"div"}),position:r,fluid:o}},yH=t=>P(t.root,{}),wH={root:"fui-DialogActions"},kH=ge("r78gbj",null,{r:[".r78gbj{column-gap:8px;row-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){.r78gbj{flex-direction:column;justify-self:stretch;}}"]}),SH=F({gridPositionEnd:{Bdqf98w:"f1a7i8kp",Br312pm:"fd46tj4",Bw0ie65:"fsyjsko",B6n781s:"f1f41i0t",Bv5d0be:"f1jaqex3",v4ugfu:"f2ao6jk"},gridPositionStart:{Bdqf98w:"fsxvdwy",Br312pm:"fwpfdsa",Bw0ie65:"f1e2fz10",Bojbm9c:"f11ihkml",Bv5d0be:"fce5bvx",v4ugfu:"f2ao6jk"},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){.f1f41i0t{grid-column-start:1;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f1jaqex3{grid-row-start:4;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f2ao6jk{grid-row-end:auto;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.f11ihkml{grid-column-end:4;}}",{m:"screen and (max-width: 480px)"}],["@media screen and (max-width: 480px){.fce5bvx{grid-row-start:3;}}",{m:"screen and (max-width: 480px)"}]]}),_H=t=>{const e=kH(),r=SH();return t.root.className=R(wH.root,e,t.position==="start"&&r.gridPositionStart,t.position==="end"&&r.gridPositionEnd,t.fluid&&t.position==="start"&&r.fluidStart,t.fluid&&t.position==="end"&&r.fluidEnd,t.root.className),t},xH=y.forwardRef((t,e)=>{const r=bH(t,e);return _H(r),de("useDialogActionsStyles_unstable")(r),yH(r)});xH.displayName="DialogActions";const CH=(t,e)=>{var r;return{components:{root:"div"},root:ee(me((r=t.as)!==null&&r!==void 0?r:"div",{ref:e,...t}),{elementType:"div"})}},TH=t=>P(t.root,{}),EH={root:"fui-DialogBody"},BH=ge("r71plkv",null,{r:[".r71plkv{overflow-x:unset;overflow-y:unset;column-gap:8px;row-gap:8px;display:grid;max-height:calc(100vh - 2 * 24px);box-sizing:border-box;grid-template-rows:auto 1fr;grid-template-columns:1fr 1fr auto;}"],s:["@media screen and (max-width: 480px){.r71plkv{max-width:100vw;grid-template-rows:auto 1fr auto;}}"]}),IH=t=>{const e=BH();return t.root.className=R(EH.root,e,t.root.className),t},RH=y.forwardRef((t,e)=>{const r=CH(t,e);return IH(r),de("useDialogBodyStyles_unstable")(r),TH(r)});RH.displayName="DialogBody";const Lw={root:"fui-DialogTitle",action:"fui-DialogTitle__action"},AH=ge("rztv7rx","rt0yqbx",[".rztv7rx{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase500);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase500);margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;grid-row-start:1;grid-row-end:1;grid-column-start:1;grid-column-end:3;}",".rt0yqbx{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase500);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase500);margin-top:0;margin-left:0;margin-bottom:0;margin-right:0;grid-row-start:1;grid-row-end:1;grid-column-start:1;grid-column-end:3;}"]),NH=F({rootWithoutAction:{Bw0ie65:"fsyjsko"}},{d:[".fsyjsko{grid-column-end:4;}"]}),PH=ge("r13kcrze",null,[".r13kcrze{grid-row-start:1;grid-row-end:1;grid-column-start:3;justify-self:end;align-self:start;}"]),zH=ge("r51tj","rgre5d",{r:[".r51tj{overflow-x:visible;overflow-y:visible;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0;border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-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;}",".r51tj:focus{outline-style:none;}",".r51tj:focus-visible{outline-style:none;}",".r51tj[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r51tj[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rgre5d{overflow-x:visible;overflow-y:visible;padding-top:0;padding-left:0;padding-bottom:0;padding-right:0;border-top-style:none;border-left-style:none;border-bottom-style:none;border-right-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;}",".rgre5d:focus{outline-style:none;}",".rgre5d:focus-visible{outline-style:none;}",".rgre5d[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rgre5d[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r51tj[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){.rgre5d[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),l5=t=>{const e=AH(),r=PH(),o=NH();return t.root.className=R(Lw.root,e,!t.action&&o.rootWithoutAction,t.root.className),t.action&&(t.action.className=R(Lw.action,r,t.action.className)),t},MH=(t,e)=>{const{action:r}=t,o=wo(i=>i.modalType),n=zH();return{components:{root:"h2",action:"div"},root:ee(me("h2",{ref:e,id:wo(i=>i.dialogTitleId),...t}),{elementType:"h2"}),action:he(r,{renderByDefault:o==="non-modal",defaultProps:{children:y.createElement(Q1,{disableButtonEnhancement:!0,action:"close"},y.createElement("button",{type:"button",className:n,"aria-label":"close"},y.createElement(iP,null)))},elementType:"div"})}},OH=t=>we(y.Fragment,{children:[P(t.root,{children:t.root.children}),t.action&&P(t.action,{})]}),jH=y.forwardRef((t,e)=>{const r=MH(t,e);return l5(r),de("useDialogTitleStyles_unstable")(r),OH(r)});jH.displayName="DialogTitle";const c5=(t,e)=>{const r=wo(f=>f.modalType),o=wo(f=>f.isNestedDialog),n=hH(),i=wo(f=>f.modalAttributes),a=wo(f=>f.dialogRef),s=wo(f=>f.requestOpenChange),l=wo(f=>f.dialogTitleId),c=Q(f=>{if(lx(t.backdrop)){var h,g;(h=(g=t.backdrop).onClick)===null||h===void 0||h.call(g,f)}r==="modal"&&!f.isDefaultPrevented()&&s({event:f,open:!1,type:"backdropClick"})}),u=Q(f=>{var h;(h=t.onKeyDown)===null||h===void 0||h.call(t,f),f.key===Po&&!f.isDefaultPrevented()&&(s({event:f,open:!1,type:"escapeKeyDown"}),f.preventDefault())}),d=he(t.backdrop,{renderByDefault:r!=="non-modal",defaultProps:{"aria-hidden":"true"},elementType:"div"});return d&&(d.onClick=c),{components:{backdrop:"div",root:"div"},backdrop:d,isNestedDialog:o,transitionStatus:n,mountNode:t.mountNode,root:ee(me("div",{tabIndex:-1,"aria-modal":r!=="non-modal",role:r==="alert"?"alertdialog":"dialog","aria-labelledby":t["aria-label"]?void 0:l,...t,...i,onKeyDown:u,ref:Be(e,a)}),{elementType:"div"})}},u5=(t,e)=>we(Xi,{mountNode:t.mountNode,children:[t.backdrop&&P(t.backdrop,{}),P(t5,{value:e.dialogSurface,children:P(t.root,{})})]}),Hw={root:"fui-DialogSurface",backdrop:"fui-DialogSurface__backdrop"},DH=ge("rhhzfde","r1n1tr5u",{r:[".rhhzfde{top:0;right:0;bottom:0;left:0;padding-top:24px;padding-right:24px;padding-bottom:24px;padding-left:24px;margin-top:auto;margin-right:auto;margin-bottom:auto;margin-left:auto;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;overflow-x:unset;overflow-y:unset;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-color:var(--colorTransparentStroke);border-right-color:var(--colorTransparentStroke);border-bottom-color:var(--colorTransparentStroke);border-left-color:var(--colorTransparentStroke);border-bottom-right-radius:var(--borderRadiusXLarge);border-bottom-left-radius:var(--borderRadiusXLarge);border-top-right-radius:var(--borderRadiusXLarge);border-top-left-radius:var(--borderRadiusXLarge);display:block;-webkit-user-select:unset;-moz-user-select:unset;-ms-user-select:unset;user-select:unset;visibility:unset;position:fixed;height:fit-content;max-width:600px;max-height:100vh;box-sizing:border-box;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);}",".rhhzfde:focus{outline-style:none;}",".rhhzfde:focus-visible{outline-style:none;}",".rhhzfde[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.rhhzfde[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".r1n1tr5u{top:0;left:0;bottom:0;right:0;padding-top:24px;padding-left:24px;padding-bottom:24px;padding-right:24px;margin-top:auto;margin-left:auto;margin-bottom:auto;margin-right:auto;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;overflow-x:unset;overflow-y:unset;border-top-width:1px;border-left-width:1px;border-bottom-width:1px;border-right-width:1px;border-top-color:var(--colorTransparentStroke);border-left-color:var(--colorTransparentStroke);border-bottom-color:var(--colorTransparentStroke);border-right-color:var(--colorTransparentStroke);border-bottom-left-radius:var(--borderRadiusXLarge);border-bottom-right-radius:var(--borderRadiusXLarge);border-top-left-radius:var(--borderRadiusXLarge);border-top-right-radius:var(--borderRadiusXLarge);display:block;-webkit-user-select:unset;-moz-user-select:unset;-ms-user-select:unset;user-select:unset;visibility:unset;position:fixed;height:fit-content;max-width:600px;max-height:100vh;box-sizing:border-box;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);}",".r1n1tr5u:focus{outline-style:none;}",".r1n1tr5u:focus-visible{outline-style:none;}",".r1n1tr5u[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r1n1tr5u[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.rhhzfde[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){.rhhzfde{max-width:100vw;}}","@media (forced-colors: active){.r1n1tr5u[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){.r1n1tr5u{max-width:100vw;}}"]}),FH=F({animated:{abs64n:"fk73vx1",E5pizo:"f1yzz98r",Bz10aip:"f15ofi6c"},static:{E5pizo:"f10nrhrw"},unmounted:{},entering:{B3o57yi:"fc397y7",Bmy1vo4:"f1b86uth",Bkqvd7p:"f18ad807",E5pizo:"f10nrhrw",Bz10aip:"f186d0ee",abs64n:"f5p0z4x"},entered:{E5pizo:"f10nrhrw",Bz10aip:"f186d0ee",abs64n:"f5p0z4x"},idle:{E5pizo:"f10nrhrw",Bz10aip:"f186d0ee",abs64n:"f5p0z4x"},exiting:{B3o57yi:"fc397y7",Bmy1vo4:"f1b86uth",Bkqvd7p:"f1mfizis"},exited:{}},{d:[".fk73vx1{opacity:0;}",".f1yzz98r{box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.1);}",".f15ofi6c{transform:scale(0.85) translateZ(0);}",".f10nrhrw{box-shadow:var(--shadow64);}",".fc397y7{transition-duration:var(--durationGentle);}",".f1b86uth{transition-property:opacity,transform,box-shadow;}",".f18ad807{transition-timing-function:var(--curveDecelerateMid);}",".f186d0ee{transform:scale(1) translateZ(0);}",".f5p0z4x{opacity:1;}",".f1mfizis{transition-timing-function:var(--curveAccelerateMin);}"]}),qH=ge("raidwwn","r17vltcu",[".raidwwn{top:0px;right:0px;bottom:0px;left:0px;background-color:rgba(0, 0, 0, 0.4);position:fixed;transition-duration:var(--durationGentle);transition-timing-function:var(--curveLinear);transition-property:opacity;will-change:opacity;opacity:0;}",".r17vltcu{top:0px;left:0px;bottom:0px;right:0px;background-color:rgba(0, 0, 0, 0.4);position:fixed;transition-duration:var(--durationGentle);transition-timing-function:var(--curveLinear);transition-property:opacity;will-change:opacity;opacity:0;}"]),LH=F({nestedDialogBackdrop:{De3pzq:"f1c21dwh"},unmounted:{},entering:{abs64n:"f5p0z4x"},entered:{abs64n:"f5p0z4x"},idle:{abs64n:"f5p0z4x"},exiting:{Bkqvd7p:"f1mfizis"},exited:{}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f5p0z4x{opacity:1;}",".f1mfizis{transition-timing-function:var(--curveAccelerateMin);}"]}),HH=t=>{const{isNestedDialog:e,root:r,backdrop:o,transitionStatus:n}=t,i=DH(),a=FH(),s=qH(),l=LH();return r.className=R(Hw.root,i,n?a.animated:a.static,n&&a[n],r.className),o&&(o.className=R(Hw.backdrop,s,e&&l.nestedDialogBackdrop,n&&l[n],o.className)),t};function d5(t){return{dialogSurface:!0}}const UH=y.forwardRef((t,e)=>{const r=c5(t,e),o=d5();return HH(r),de("useDialogSurfaceStyles_unstable")(r),u5(r,o)});UH.displayName="DialogSurface";const $H=(t,e)=>{var r;return{components:{root:"div"},root:ee(me((r=t.as)!==null&&r!==void 0?r:"div",{ref:e,...t}),{elementType:"div"})}},KH=t=>P(t.root,{}),WH={root:"fui-DialogContent"},VH=ge("r1e0mpcm","r1equu0b",[".r1e0mpcm{padding-top:var(--strokeWidthThick);padding-right:var(--strokeWidthThick);padding-bottom:var(--strokeWidthThick);padding-left:var(--strokeWidthThick);margin-top:calc(var(--strokeWidthThick) * -1);margin-right:calc(var(--strokeWidthThick) * -1);margin-bottom:calc(var(--strokeWidthThick) * -1);margin-left: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;}",".r1equu0b{padding-top:var(--strokeWidthThick);padding-left:var(--strokeWidthThick);padding-bottom:var(--strokeWidthThick);padding-right:var(--strokeWidthThick);margin-top:calc(var(--strokeWidthThick) * -1);margin-left:calc(var(--strokeWidthThick) * -1);margin-bottom:calc(var(--strokeWidthThick) * -1);margin-right: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;}"]),GH=t=>{const e=VH();return t.root.className=R(WH.root,e,t.root.className),t},XH=y.forwardRef((t,e)=>{const r=$H(t,e);return GH(r),de("useDialogContentStyles_unstable")(r),KH(r)});XH.displayName="DialogContent";const YH=(t,e)=>{const{size:r="medium",vertical:o=!1}=t,n=Za({circular:!0,axis:"both"}),i={size:r,vertical:o,components:{root:"div"},root:ee(me("div",{role:"toolbar",ref:e,...o&&{"aria-orientation":"vertical"},...n,...t}),{elementType:"div"})},[a,s]=ZH({checkedValues:t.checkedValues,defaultCheckedValues:t.defaultCheckedValues,onCheckedValueChange:t.onCheckedValueChange}),l=Q((u,d,f,h)=>{if(d&&f){const m=[...a?.[d]||[]];h?m.splice(m.indexOf(f),1):m.push(f),s?.(u,{name:d,checkedItems:m})}}),c=Q((u,d,f,h)=>{d&&f&&s?.(u,{name:d,checkedItems:[f]})});return{...i,handleToggleButton:l,handleRadio:c,checkedValues:a??{}}},ZH=t=>{const[e,r]=Et({state:t.checkedValues,defaultState:t.defaultCheckedValues,initialState:{}}),{onCheckedValueChange:o}=t,n=Q((i,{name:a,checkedItems:s})=>{o&&o(i,{name:a,checkedItems:s}),r(l=>l?{...l,[a]:s}:{[a]:s})});return[e,n]},f5=hn(void 0),QH={size:"medium",handleToggleButton:()=>null,handleRadio:()=>null,vertical:!1,checkedValues:{}},Qp=t=>ct(f5,(e=QH)=>t(e)),JH=(t,e)=>P(f5.Provider,{value:e.toolbar,children:P(t.root,{children:t.root.children})}),eU={root:"fui-Toolbar"},tU=F({root:{mc9l5x:"f22iagw",Bt984gj:"f122n59",z8tnut:"f10ra9hq",z189sj:["f19lj068","f177v4lu"],Byoj8tv:"f1y2xyjm",uwmqm3:["f177v4lu","f19lj068"]},vertical:{Beiy3e4:"f1vx9l62",a9b677:"f1acs6jw"},small:{z8tnut:"f1nbblvp",z189sj:["f8wuabp","fycuoez"],Byoj8tv:"f1ov4xf1",uwmqm3:["fycuoez","f8wuabp"]},medium:{z8tnut:"f10ra9hq",z189sj:["f19lj068","f177v4lu"],Byoj8tv:"f1y2xyjm",uwmqm3:["f177v4lu","f19lj068"]},large:{z8tnut:"f10ra9hq",z189sj:["fat0sn4","fekwl8i"],Byoj8tv:"f1y2xyjm",uwmqm3:["fekwl8i","fat0sn4"]}},{d:[".f22iagw{display:flex;}",".f122n59{align-items:center;}",".f10ra9hq{padding-top:4px;}",".f19lj068{padding-right:8px;}",".f177v4lu{padding-left:8px;}",".f1y2xyjm{padding-bottom:4px;}",".f1vx9l62{flex-direction:column;}",".f1acs6jw{width:fit-content;}",".f1nbblvp{padding-top:0px;}",".f8wuabp{padding-right:4px;}",".fycuoez{padding-left:4px;}",".f1ov4xf1{padding-bottom:0px;}",".fat0sn4{padding-right:20px;}",".fekwl8i{padding-left:20px;}"]}),rU=t=>{const e=tU(),{vertical:r,size:o}=t;return t.root.className=R(eU.root,e.root,r&&e.vertical,o==="small"&&!r&&e.small,o==="medium"&&!r&&e.medium,o==="large"&&!r&&e.large,t.root.className),t};function oU(t){const{size:e,handleToggleButton:r,vertical:o,checkedValues:n,handleRadio:i}=t;return{toolbar:{size:e,vertical:o,handleToggleButton:r,handleRadio:i,checkedValues:n}}}const nU=y.forwardRef((t,e)=>{const r=YH(t,e),o=oU(r);return rU(r),de("useToolbarStyles_unstable")(r),JH(r,o)});nU.displayName="Toolbar";const iU=F({vertical:{Beiy3e4:"f1vx9l62"},verticalIcon:{Be2twd7:"f1rt2boy",B6of3ja:"f1hu3pq6",t21cq0:["f11qmguv","f1tyq0we"],jrapky:"f19f4twv",Frg6f3:["f1tyq0we","f11qmguv"]}},{d:[".f1vx9l62{flex-direction:column;}",".f1rt2boy{font-size:24px;}",".f1hu3pq6{margin-top:0;}",".f11qmguv{margin-right:0;}",".f1tyq0we{margin-left:0;}",".f19f4twv{margin-bottom:0;}"]}),aU=t=>{W1(t);const e=iU();t.root.className=R(t.root.className,t.vertical&&e.vertical),t.icon&&(t.icon.className=R(t.icon.className,t.vertical&&e.verticalIcon))},sU=(t,e)=>{const{vertical:r=!1,...o}=t,n=K1({appearance:"subtle",...o},e);return{vertical:r,...n}},lU=y.forwardRef((t,e)=>{const r=sU(t,e);return aU(r),de("useToolbarButtonStyles_unstable")(r),Lf(r)});lU.displayName="ToolbarButton";const cU=F({root:{mc9l5x:"ftuwxu6",B2u0y6b:"f1lwjmbk",z8tnut:"f1g0x7ka",z189sj:["f11qrl6u","fjlbh76"],Byoj8tv:"f1qch9an",uwmqm3:["fjlbh76","f11qrl6u"]},vertical:{B2u0y6b:"fe668z"}},{d:[".ftuwxu6{display:inline-flex;}",".f1lwjmbk{max-width:1px;}",".f1g0x7ka{padding-top:0;}",".f11qrl6u{padding-right:12px;}",".fjlbh76{padding-left:12px;}",".f1qch9an{padding-bottom:0;}",".fe668z{max-width:initial;}"]}),uU=t=>{HT(t);const{vertical:e}=t,r=cU();return t.root.className=R(r.root,!e&&r.vertical,t.root.className),t},dU=(t,e)=>{const r=Qp(o=>o.vertical);return LT({vertical:!r,...t},e)},fU=y.forwardRef((t,e)=>{const r=dU(t,e);return uU(r),de("useToolbarDividerStyles_unstable")(r),qT(r)});fU.displayName="ToolbarDivider";const hU=(t,e)=>{const r=Qp(l=>l.handleToggleButton),o=Qp(l=>{var c;return!!(!((c=l.checkedValues[t.name])===null||c===void 0)&&c.includes(t.value))}),{onClick:n}=t,a={...PT({checked:o,...t},e),name:t.name,value:t.value},s=l=>{if(a.disabled){l.preventDefault(),l.stopPropagation();return}r?.(l,a.name,a.value,a.checked),n?.(l)};return a.root.onClick=s,a},gU=F({selected:{sj55zd:"f16muhyy"}},{d:[".f16muhyy{color:var(--colorBrandForeground1);}"]}),pU=t=>{zT(t);const e=gU();t.root.className=R(t.root.className,t.checked&&e.selected)},mU=y.forwardRef((t,e)=>{const r=hU(t,e);return pU(r),de("useToolbarToggleButtonStyles_unstable")(r),Lf(r)});mU.displayName="ToolbarToggleButton";const Ps=()=>{},h5={allRowsSelected:!1,clearRows:Ps,deselectRow:Ps,isRowSelected:()=>!1,selectRow:Ps,selectedRows:new Set,someRowsSelected:!1,toggleAllRows:Ps,toggleRow:Ps,selectionMode:"multiselect"};function vU(t){return e=>bU(e,t)}function bU(t,e){const{items:r,getRowId:o}=t,{selectionMode:n,defaultSelectedItems:i,selectedItems:a,onSelectionChange:s}=e,[l,c]=RN({selectionMode:n,defaultSelectedItems:i,selectedItems:a,onSelectionChange:s}),u=y.useMemo(()=>{const b=new Set;for(let x=0;x{if(n==="single"){const k=Array.from(l)[0];return u.has(k)}if(l.size{l.has(k)||(b=!1)}),b},[u,l,n]),f=y.useMemo(()=>{if(l.size<=0)return!1;let b=!1;return u.forEach(k=>{l.has(k)&&(b=!0)}),b},[u,l]),h=Q(b=>{c.toggleAllItems(b,r.map((k,x)=>{var S;return(S=o?.(k))!==null&&S!==void 0?S:x}))}),g=Q((b,k)=>c.toggleItem(b,k)),m=Q((b,k)=>c.deselectItem(b,k)),w=Q((b,k)=>c.selectItem(b,k)),v=b=>c.isSelected(b),p=Q(b=>c.clearItems(b));return{...t,selection:{selectionMode:n,someRowsSelected:f,allRowsSelected:d,selectedRows:l,toggleRow:g,toggleAllRows:h,clearRows:p,deselectRow:m,selectRow:w,isRowSelected:v}}}const Jp=()=>{},g5={getSortDirection:()=>"ascending",setColumnSort:Jp,sort:t=>[...t],sortColumn:void 0,sortDirection:"ascending",toggleColumnSort:Jp};function yU(t){return e=>wU(e,t)}function wU(t,e){const{columns:r}=t,{sortState:o,defaultSortState:n,onSortChange:i=Jp}=e,[a,s]=Et({initialState:{sortDirection:"ascending",sortColumn:void 0},defaultState:n,state:o}),{sortColumn:l,sortDirection:c}=a,u=Q(i),d=y.useCallback((m,w)=>{s(v=>{const p={...v,sortColumn:w};return v.sortColumn===w?p.sortDirection=v.sortDirection==="ascending"?"descending":"ascending":p.sortDirection="ascending",u?.(m,p),p})},[u,s]),f=(m,w,v)=>{const p={sortColumn:w,sortDirection:v};u?.(m,p),s(p)},h=y.useCallback(m=>m.slice().sort((w,v)=>{const p=r.find(k=>k.columnId===l);if(!p?.compare)return 0;const b=c==="ascending"?1:-1;return p.compare(w.item,v.item)*b}),[r,l,c]);return{...t,sort:{sort:h,sortColumn:l,sortDirection:c,setColumnSort:f,toggleColumnSort:d,getSortDirection:m=>l===m?c:void 0}}}const kU=(t,e)=>{const r=Q(o=>{var n;(n=t.onClick)===null||n===void 0||n.call(t,o),o.stopPropagation()});return{components:{root:"div"},root:ee(me("div",{ref:e,...t,onClick:r}),{elementType:"div"})}},SU=t=>P(t.root,{}),_U={root:"fui-TableResizeHandle"},xU=F({root:{qhf8xq:"f1euv43f",j35jbq:["f1e31b4d","f1vgc2s3"],Bhzewxz:"f15twtuk",B5kzvoi:"f1yab3r1",a9b677:"fjw5fx7",B6of3ja:"f1hu3pq6",t21cq0:["fn2i5td","f1eybr6b"],jrapky:"f19f4twv",Frg6f3:["f1eybr6b","fn2i5td"],Bceei9c:"fc3en1c",abs64n:"fk73vx1",Bmy1vo4:"f13u1uyl",B3o57yi:"fezquic",Bj3rh1h:"f19g0ac",B3cna0y:"f1tkae59",Brovlpu:"ftqa4ok",B7zu5sd:"f15pjodv",Bs6t6z0:"ftgrb5f",Fdvyjd:"f2df6js",Biobvvw:"fshsryb",Hdbjpj:"f11ef69",jc51t6:["f12lb1dx","f13tbxeo"],u6d25:"fu4ulse",Bj55yzk:"fw2wsqs",Bkbwdz4:"f1swzn7y"}},{d:[".f1euv43f{position:absolute;}",".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f15twtuk{top:0;}",".f1yab3r1{bottom:0;}",".fjw5fx7{width:16px;}",".f1hu3pq6{margin-top:0;}",".fn2i5td{margin-right:-8px;}",".f1eybr6b{margin-left:-8px;}",".f19f4twv{margin-bottom:0;}",".fc3en1c{cursor:col-resize;}",".fk73vx1{opacity:0;}",".f13u1uyl{transition-property:opacity;}",".fezquic{transition-duration:.2s;}",".f19g0ac{z-index:1;}",'.ftgrb5f:after{content:" ";}',".f2df6js:after{display:block;}",".fshsryb:after{width:1px;}",".f11ef69:after{position:absolute;}",".f12lb1dx:after{left:50%;}",".f13tbxeo:after{right:50%;}",".fu4ulse:after{top:0;}",".fw2wsqs:after{bottom:0;}",".f1swzn7y:after{background-color:var(--colorNeutralStroke1);}"],f:[".f1tkae59:focus{opacity:1;}",".ftqa4ok:focus{outline-style:none;}"],h:[".f15pjodv:hover{opacity:1;}"]}),CU=t=>{const e=xU();return t.root.className=R(_U.root,e.root,t.root.className),t},p5=y.forwardRef((t,e)=>{const r=kU(t,e);return CU(r),de("useTableResizeHandleStyles_unstable")(r),SU(r)});p5.displayName="TableResizeHandle";function TU(){const[t,e]=y.useState(0),r=y.useRef(void 0),{targetDocument:o}=Ae(),n=y.useCallback(()=>{var s;const l=(s=r.current)===null||s===void 0?void 0:s.getBoundingClientRect().width;e(l||0)},[]),[i]=y.useState(()=>EU(o,n)),a=y.useCallback(s=>{!o||!i||(r.current&&i.unobserve(r.current),r.current=void 0,s?.parentElement&&(r.current=s.parentElement,i.observe(r.current),n()))},[o,i,n]);return y.useEffect(()=>()=>i?.disconnect(),[i]),{width:t,measureElementRef:a}}function EU(t,e){var r;return!(t==null||(r=t.defaultView)===null||r===void 0)&&r.ResizeObserver?new t.defaultView.ResizeObserver(e):null}function BU(t){const e=y.useRef(0),r=y.useRef(0),o=y.useRef(void 0),{targetDocument:n}=Ae(),i=n?.defaultView,{getColumnWidth:a,setColumnWidth:s}=t,l=y.useCallback(f=>{const{clientX:h}=xb(f),g=h-e.current;r.current+=g,o.current&&s(f,{columnId:o.current,width:r.current}),e.current=h},[s]),c=y.useCallback(f=>{typeof i?.requestAnimationFrame=="function"?requestAnimationFrame(()=>l(f)):l(f)},[i?.requestAnimationFrame,l]),u=y.useCallback(f=>{Hg(f)&&(n?.removeEventListener("mouseup",u),n?.removeEventListener("mousemove",c)),Lg(f)&&(n?.removeEventListener("touchend",u),n?.removeEventListener("touchmove",c))},[c,n]);return{getOnMouseDown:y.useCallback(f=>h=>{if(r.current=a(f),e.current=xb(h).clientX,o.current=f,Hg(h)){if(h.target!==h.currentTarget||h.button!==0)return;n?.addEventListener("mouseup",u),n?.addEventListener("mousemove",c)}Lg(h)&&(n?.addEventListener("touchend",u),n?.addEventListener("touchmove",c))},[a,c,u,n])}}const IU=150,RU=100;function em(t,e=[],r={}){let o=!1;const n=new Map(e.map(a=>[a.columnId,a])),i=t.map(a=>{const s=n.get(a.columnId);if(s){var l;const{idealWidth:g=s.idealWidth,minWidth:m=s.minWidth,padding:w=s.padding}=(l=r[a.columnId])!==null&&l!==void 0?l:{};return g!==s.idealWidth||m!==s.minWidth||w!==s.padding?(o=!0,{...s,idealWidth:g,width:g,minWidth:m,padding:w}):s}var c;const{defaultWidth:u,idealWidth:d=IU,minWidth:f=RU,padding:h}=(c=r[a.columnId])!==null&&c!==void 0?c:{};return o=!0,{columnId:a.columnId,width:Math.max(u??d,f),minWidth:f,idealWidth:Math.max(u??d,f),padding:h??16}});if(i.length!==e.length||o){const a=i.find(s=>s.width>s.idealWidth);a&&(a.width=a.idealWidth),o=!0}return o?i:e}function $l(t,e){return t.find(r=>r.columnId===e)}function Yh(t,e){return t[e]}function AU(t){return t.reduce((e,r)=>e+r.width+r.padding,0)}function NU(t,e){const r=$l(t,e);var o;return(o=r?.width)!==null&&o!==void 0?o:0}function ul(t,e,r,o){const n=$l(t,e);if(!n||n?.[r]===o)return t;const i={...n,[r]:o};return t.reduce((s,l)=>l.columnId===i.columnId?[...s,i]:[...s,l],[])}function nu(t,e){let r=t;const o=AU(r);if(o0;){const a=Yh(r,i),s=Math.min(a.idealWidth-a.width,n);if(r=ul(r,a.columnId,"width",a.width+s),n-=s,i===r.length-1&&n!==0){const l=Yh(r,i);r=ul(r,l.columnId,"width",l.width+n)}i++}}else if(o>=e){let n=o-e,i=r.length-1;for(;i>=0&&n>0;){const a=Yh(r,i);if(a.width>a.minWidth){const s=Math.min(a.width-a.minWidth,n);n-=s,r=ul(r,a.columnId,"width",a.width-s)}i--}}return r}const PU=()=>(t,e)=>{switch(e.type){case"CONTAINER_WIDTH_UPDATED":return{...t,containerWidth:e.containerWidth,columnWidthState:nu(t.columnWidthState,e.containerWidth)};case"COLUMNS_UPDATED":const r=em(e.columns,t.columnWidthState,t.columnSizingOptions);return{...t,columns:e.columns,columnWidthState:nu(r,t.containerWidth)};case"COLUMN_SIZING_OPTIONS_UPDATED":const o=em(t.columns,t.columnWidthState,e.columnSizingOptions);return{...t,columnSizingOptions:e.columnSizingOptions,columnWidthState:nu(o,t.containerWidth)};case"SET_COLUMN_WIDTH":const{columnId:n,width:i}=e,{containerWidth:a}=t,s=$l(t.columnWidthState,n);let l=[...t.columnWidthState];return s?(l=ul(l,n,"width",i),l=ul(l,n,"idealWidth",i),l=nu(l,a),{...t,columnWidthState:l}):t}};function zU(t,e,r={}){const{onColumnResize:o,columnSizingOptions:n}=r,i=y.useMemo(()=>PU(),[]),[a,s]=y.useReducer(i,{columns:t,containerWidth:0,columnWidthState:em(t,void 0,n),columnSizingOptions:n});Jt(()=>{s({type:"CONTAINER_WIDTH_UPDATED",containerWidth:e})},[e]),Jt(()=>{s({type:"COLUMNS_UPDATED",columns:t})},[t]),Jt(()=>{s({type:"COLUMN_SIZING_OPTIONS_UPDATED",columnSizingOptions:n})},[n]);const l=Q((c,u)=>{let{width:d}=u;const{columnId:f}=u,h=$l(a.columnWidthState,f);h&&(d=Math.max(h.minWidth||0,d),o&&o(c,{columnId:f,width:d}),s({type:"SET_COLUMN_WIDTH",columnId:f,width:d}))});return{getColumnById:y.useCallback(c=>$l(a.columnWidthState,c),[a.columnWidthState]),getColumns:y.useCallback(()=>a.columnWidthState,[a.columnWidthState]),getColumnWidth:y.useCallback(c=>NU(a.columnWidthState,c),[a.columnWidthState]),setColumnWidth:l}}const iu=20,MU=s8,Uw=1/4;function OU(t){const[e,r]=y.useState(),o=y.useRef(),{findPrevFocusable:n}=No(),i=y.useRef(t);y.useEffect(()=>{i.current=t},[t]);const[a]=y.useState(()=>new Map),s=Q(h=>{if(!e)return;const g=i.current.getColumnWidth(e),m=h.getModifierState(MU),w=()=>{h.preventDefault(),h.stopPropagation()};switch(h.key){case kf:w(),i.current.setColumnWidth(h.nativeEvent,{columnId:e,width:g-(m?iu*Uw:iu)});return;case hc:w(),i.current.setColumnWidth(h.nativeEvent,{columnId:e,width:g+(m?iu*Uw:iu)});return;case Or:case To:case Po:var v,p;w(),(p=a.get(e))===null||p===void 0||(v=p.current)===null||v===void 0||v.blur();break}}),l=y.useCallback(h=>{var g,m;r(h),(g=o.current)===null||g===void 0||g.call(o,h,!0);const w=(m=a.get(h))===null||m===void 0?void 0:m.current;w&&(w.setAttribute("tabindex","-1"),w.tabIndex=-1,w.focus())},[a]),c=y.useCallback(()=>{var h,g;if(!e)return;(h=o.current)===null||h===void 0||h.call(o,e,!1);const m=(g=a.get(e))===null||g===void 0?void 0:g.current;if(m){var w;(w=n(m))===null||w===void 0||w.focus(),m.removeAttribute("tabindex")}r(void 0)},[e,n,a]),u=(h,g)=>{o.current=g,e?h&&e!==h?(l(h),r(h)):c():l(h)},d=y.useCallback(h=>{const g=a.get(h)||y.createRef();return a.set(h,g),g},[a]),f=xl({focusable:{ignoreKeydown:{ArrowLeft:!0,ArrowRight:!0}}});return{toggleInteractiveMode:u,columnId:e,getKeyboardResizingProps:y.useCallback((h,g)=>({onKeyDown:s,onBlur:c,ref:d(h),role:"separator","aria-label":"Resize column","aria-valuetext":`${g} pixels`,"aria-hidden":h!==e,tabIndex:h===e?0:void 0,...f}),[e,c,d,s,f])}}const m5={getColumnWidths:()=>[],getOnMouseDown:()=>()=>null,setColumnWidth:()=>null,getTableProps:()=>({}),getTableHeaderCellProps:()=>({style:{},columnId:""}),getTableCellProps:()=>({style:{},columnId:""}),enableKeyboardMode:()=>()=>null};function jU(t){return e=>DU(e,t)}function $w(t){const e=t.width;return{width:e,minWidth:e,maxWidth:e}}function DU(t,e){const{columns:r}=t,{width:o,measureElementRef:n}=TU(),i=zU(r,o+(e?.containerWidthOffset||0),e),a=BU(i),{toggleInteractiveMode:s,getKeyboardResizingProps:l}=OU(i),c=y.useCallback((g,m)=>w=>{w.preventDefault(),w.nativeEvent.stopPropagation(),s(g,m)},[s]),{getColumnById:u,setColumnWidth:d,getColumns:f}=i,{getOnMouseDown:h}=a;return{...t,tableRef:n,columnSizing_unstable:{getOnMouseDown:h,setColumnWidth:(g,m)=>d(void 0,{columnId:g,width:m}),getColumnWidths:f,getTableProps:(g={})=>({...g,style:{minWidth:"fit-content",...g.style||{}}}),getTableHeaderCellProps:y.useCallback(g=>{var m;const w=u(g),p=((m=r[r.length-1])===null||m===void 0?void 0:m.columnId)===g?null:y.createElement(p5,{onMouseDown:h(g),onTouchStart:h(g),...l(g,w?.width||0)});return w?{style:$w(w),aside:p}:{}},[u,r,l,h]),getTableCellProps:y.useCallback(g=>{const m=u(g);return m?{style:$w(m)}:{}},[u]),enableKeyboardMode:c}}}const FU=t=>t,qU={selection:h5,sort:g5,getRows:()=>[],getRowId:()=>"",items:[],columns:[],columnSizing_unstable:m5,tableRef:y.createRef()};function LU(t,e=[]){const{items:r,getRowId:o,columns:n}=t,i=y.useCallback((s=FU)=>r.map((l,c)=>{var u;return s({item:l,rowId:(u=o?.(l))!==null&&u!==void 0?u:c})}),[r,o]),a={getRowId:o,items:r,columns:n,getRows:i,selection:h5,sort:g5,columnSizing_unstable:m5,tableRef:y.createRef()};return e.reduce((s,l)=>l(s),a)}const HU=()=>0,UU=()=>null,$U=()=>null;function hee(t){const{columnId:e,renderCell:r=UU,renderHeaderCell:o=$U,compare:n=HU}=t;return{columnId:e,renderCell:r,renderHeaderCell:o,compare:n}}function KU(){const t=Za({axis:"horizontal"}),e=Za({axis:"grid"}),r=uc({tabBehavior:"limited-trap-focus"}),{findFirstFocusable:o}=No(),{targetDocument:n}=Ae(),i=$6(t,r);return{onTableKeyDown:y.useCallback(s=>{if(!n)return;const l=n.activeElement;if(!l||!s.currentTarget.contains(l))return;const c=l.getAttribute("role");if(s.key===hc&&c==="row"&&Ve(l)){var u;(u=o(l))===null||u===void 0||u.focus()}if(c==="row")return;const d=(()=>{let f=Ve(l)?l:null;for(;f;){const h=f.getAttribute("role");if(h==="cell"||h==="gridcell")return!0;f=f.parentElement}return!1})();(s.key===Qa||s.key===Ia)&&d&&(l.dispatchEvent(new KeyboardEvent("keydown",{key:Po,keyCode:a8})),l.dispatchEvent(new KeyboardEvent("keydown",{key:s.key,keyCode:s.keyCode})))},[n,o]),tableTabsterAttribute:e,tableRowTabsterAttribute:i}}const v5=y.createContext(void 0),WU={size:"medium",noNativeElements:!1,sortable:!1},VU=v5.Provider,oi=()=>{var t;return(t=y.useContext(v5))!==null&&t!==void 0?t:WU},b5=(t,e)=>{const{noNativeElements:r,size:o}=oi();var n;const i=((n=t.as)!==null&&n!==void 0?n:r)?"div":"td";return{components:{root:i},root:ee(me(i,{ref:e,role:i==="div"?"cell":void 0,...t}),{elementType:i}),noNativeElements:r,size:o}},GU=t=>P(t.root,{}),XU="fui-TableCell",YU={root:XU},ZU=F({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;}"]}),QU=F({root:{mc9l5x:"f22iagw",Bf4jedk:"f10tiqix",Bt984gj:"f122n59",Bh6795r:"fqerorx",Bnnss6s:"f1neuvcm",xawz:"fkjuxzh"},medium:{sshi5w:"f5pgtk9"},small:{sshi5w:"fcep9tg"},"extra-small":{sshi5w:"f1pha7fy"}},{d:[".f22iagw{display:flex;}",".f10tiqix{min-width:0px;}",".f122n59{align-items:center;}",".fqerorx{flex-grow:1;}",".f1neuvcm{flex-shrink:1;}",".fkjuxzh{flex-basis:0px;}",".f5pgtk9{min-height:44px;}",".fcep9tg{min-height:34px;}",".f1pha7fy{min-height:24px;}"]}),JU=F({root:{qhf8xq:"f10pi13n",z8tnut:"f1nbblvp",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f1ov4xf1",uwmqm3:["f1f5gg8d","f1vdfbxk"],Bn4voq9:"fz36nt7",g9k6zt:"f9znhxp",Bfpq7zp:"fqrak0z",kdpuga:["f1o2ludy","f1kjnpwc"],Bw81rd7:["f1kjnpwc","f1o2ludy"],B6xbmo0:["fxmnebo","f1witrsb"],dm238s:["f1witrsb","fxmnebo"]}},{d:[".f10pi13n{position:relative;}",".f1nbblvp{padding-top:0px;}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1ov4xf1{padding-bottom:0px;}",".fz36nt7[data-fui-focus-visible]{outline-width:2px;}",".f9znhxp[data-fui-focus-visible]{outline-style:solid;}",".fqrak0z[data-fui-focus-visible]{outline-color:var(--colorStrokeFocus2);}",".f1o2ludy[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusMedium);}",".f1kjnpwc[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusMedium);}",".fxmnebo[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusMedium);}",".f1witrsb[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusMedium);}"]}),e$=t=>{const e=JU(),r={table:ZU(),flex:QU()};return t.root.className=R(YU.root,e.root,t.noNativeElements?r.flex.root:r.table.root,t.noNativeElements?r.flex[t.size]:r.table[t.size],t.root.className),t},y5=y.createContext(void 0),t$="",r$=y5.Provider,J1=()=>y.useContext(y5)===t$,o$=(t,e)=>{const{noNativeElements:r,size:o}=oi();var n;const i=((n=t.as)!==null&&n!==void 0?n:r)?"div":"tr",a=Uv(),s=gs(),l=J1();var c;return{components:{root:i},root:ee(me(i,{ref:Be(e,a,s),role:i==="div"?"row":void 0,...t}),{elementType:i}),size:o,noNativeElements:r,appearance:(c=t.appearance)!==null&&c!==void 0?c:"none",isHeaderRow:l}},n$=44,Zh={root:"fui-TableSelectionCell",checkboxIndicator:"fui-TableSelectionCell__checkboxIndicator",radioIndicator:"fui-TableSelectionCell__radioIndicator"},i$=F({root:{mc9l5x:"f15pt5es",a9b677:"fksc0bp"}},{d:[".f15pt5es{display:table-cell;}",".fksc0bp{width:44px;}"]}),a$=F({root:{mc9l5x:"f22iagw",Bh6795r:"fqerorx",Bnnss6s:"f1neuvcm",xawz:"fkjuxzh",Bf4jedk:"fvrlu0f",B2u0y6b:"f1c71y05",Brf1p80:"f4d9j23"}},{d:[".f22iagw{display:flex;}",".fqerorx{flex-grow:1;}",".f1neuvcm{flex-shrink:1;}",".fkjuxzh{flex-basis:0px;}",".fvrlu0f{min-width:44px;}",".f1c71y05{max-width:44px;}",".f4d9j23{justify-content:center;}"]}),s$=F({root:{fsow6f:"f17mccla",Huce71:"fz5stix",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1cnd47f","fhxju0i"],Bn4voq9:"fz36nt7",g9k6zt:"f9znhxp",Bfpq7zp:"fqrak0z",kdpuga:["f1o2ludy","f1kjnpwc"],Bw81rd7:["f1kjnpwc","f1o2ludy"],B6xbmo0:["fxmnebo","f1witrsb"],dm238s:["f1witrsb","fxmnebo"]},radioIndicator:{mc9l5x:"f22iagw",Bh6795r:"fqerorx",Bt984gj:"f122n59",Brf1p80:"f4d9j23"},subtle:{abs64n:"fk73vx1",B8a84jv:"f1y7ij6c"},hidden:{Bcdw1i0:"fd7fpy0"}},{d:[".f17mccla{text-align:center;}",".fz5stix{white-space:nowrap;}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".fz36nt7[data-fui-focus-visible]{outline-width:2px;}",".f9znhxp[data-fui-focus-visible]{outline-style:solid;}",".fqrak0z[data-fui-focus-visible]{outline-color:var(--colorStrokeFocus2);}",".f1o2ludy[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusMedium);}",".f1kjnpwc[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusMedium);}",".fxmnebo[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusMedium);}",".f1witrsb[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusMedium);}",".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;}",".fd7fpy0{visibility:hidden;}"]}),l$=t=>{const e=s$(),r={table:i$(),flex:a$()};return t.root.className=R(Zh.root,e.root,t.noNativeElements?r.flex.root:r.table.root,t.subtle&&t.checked===!1&&e.subtle,t.hidden&&e.hidden,t.root.className),t.checkboxIndicator&&(t.checkboxIndicator.className=R(Zh.checkboxIndicator,t.checkboxIndicator.className)),t.radioIndicator&&(t.radioIndicator.className=R(Zh.radioIndicator,e.radioIndicator,t.radioIndicator.className)),t},c$="fui-TableRow",u$={root:c$},d$=F({root:{mc9l5x:"f1u0rzck"}},{d:[".f1u0rzck{display:table-row;}"]}),f$=F({root:{mc9l5x:"f22iagw",Bt984gj:"f122n59"}},{d:[".f22iagw{display:flex;}",".f122n59{align-items:center;}"]}),h$=F({root:{sj55zd:"f19n0e5",B7ck84d:"f1ewtqcl",Bconypa:"f1jazu75",B6guboy:"f1xeqee6",Bn4voq9:"fz36nt7",g9k6zt:"f9znhxp",Bfpq7zp:"fqrak0z",kdpuga:["f1o2ludy","f1kjnpwc"],Bw81rd7:["f1kjnpwc","f1o2ludy"],B6xbmo0:["fxmnebo","f1witrsb"],dm238s:["f1witrsb","fxmnebo"]},rootInteractive:{ecr2s2:"f1wfn5kd",lj723h:"f1g4hkjv",B43xm9u:"f15ngxrw",i921ia:"fjbbrdp",Jwef8y:"f1t94bn6",Bi91k9c:"feu1g3u",Bpt6rm4:"f1uorfem",ff6mpl:"fw60kww",ze5xyy:"f4xjyn1",pgvf35:"ff1wgvm",Bh7lczh:["fiob0tu","f1x4h75k"],dpv3f4:"f1j6scgf",Bpnjhaq:["f1x4h75k","fiob0tu"]},medium:{Bn0qgzm:"f1vxd6vx",oivjwe:"fg706s2",B9xav0g:"frpde29"},small:{Bn0qgzm:"f1vxd6vx",oivjwe:"fg706s2",B9xav0g:"frpde29"},"extra-small":{Be2twd7:"fy9rknc"},brand:{De3pzq:"f16xkysk",g2u3we:"f1bh3yvw",h3c5rm:["fmi79ni","f11fozsx"],B9xav0g:"fnzw4c6",zhjwy3:["f11fozsx","fmi79ni"],ecr2s2:"f7tkmfy",lj723h:"f1r2dosr",gwxt9v:"fqlf3fd",v3aym:["f9dpb3h","fw2muls"],Bc736ss:"f1yat0gj",Bk6ri7n:["fw2muls","f9dpb3h"],Bk5ld8o:"f7nae3y",c4eypz:["fkbere7","fa97sf3"],felo30:"fmtyzcc",Eshu5l:["fa97sf3","fkbere7"],Bjwas2f:"fb6zhgp",Bn1d65q:["fyowp6c","fz08sq8"],Bxeuatn:"f9dii88",n51gp8:["fz08sq8","fyowp6c"],Beo2b4z:["f1afxoft","flqq2yx"],h6lo6r:["flqq2yx","f1afxoft"],Btyw6ap:["f1b5xrmd","f1831rx6"],w1pwid:["f1831rx6","f1b5xrmd"],Brwvgy3:"fd94n53",yadkgm:"f1e0wld5"},neutral:{gwxt9v:"fqlf3fd",v3aym:["f9dpb3h","fw2muls"],Bc736ss:"f1yat0gj",Bk6ri7n:["fw2muls","f9dpb3h"],Bk5ld8o:"f7nae3y",c4eypz:["fkbere7","fa97sf3"],felo30:"fmtyzcc",Eshu5l:["fa97sf3","fkbere7"],Bjwas2f:"fb6zhgp",Bn1d65q:["fyowp6c","fz08sq8"],Bxeuatn:"f9dii88",n51gp8:["fz08sq8","fyowp6c"],Beo2b4z:["f1afxoft","flqq2yx"],h6lo6r:["flqq2yx","f1afxoft"],Btyw6ap:["f1b5xrmd","f1831rx6"],w1pwid:["f1831rx6","f1b5xrmd"],Brwvgy3:"fd94n53",yadkgm:"f1e0wld5",De3pzq:"fq5gl1p",sj55zd:"f1cgsbmv",Jwef8y:"f1uqaxdt",ecr2s2:"fa9o754",g2u3we:"frmsihh",h3c5rm:["frttxa5","f11o2r7f"],B9xav0g:"fem5et0",zhjwy3:["f11o2r7f","frttxa5"]},none:{}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".f1ewtqcl{box-sizing:border-box;}",".f1jazu75[data-fui-focus-within]:focus-within .fui-TableSelectionCell{opacity:1;}",".f1xeqee6[data-fui-focus-within]:focus-within .fui-TableCellActions{opacity:1;}",".fz36nt7[data-fui-focus-visible]{outline-width:2px;}",".f9znhxp[data-fui-focus-visible]{outline-style:solid;}",".fqrak0z[data-fui-focus-visible]{outline-color:var(--colorStrokeFocus2);}",".f1o2ludy[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusMedium);}",".f1kjnpwc[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusMedium);}",".fxmnebo[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusMedium);}",".f1witrsb[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusMedium);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fg706s2{border-bottom-style:solid;}",".frpde29{border-bottom-color:var(--colorNeutralStroke2);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".f16xkysk{background-color:var(--colorBrandBackground2);}",".f1bh3yvw{border-top-color:var(--colorTransparentStrokeInteractive);}",".fmi79ni{border-right-color:var(--colorTransparentStrokeInteractive);}",".f11fozsx{border-left-color:var(--colorTransparentStrokeInteractive);}",".fnzw4c6{border-bottom-color:var(--colorTransparentStrokeInteractive);}",".fq5gl1p{background-color:var(--colorSubtleBackgroundSelected);}",".f1cgsbmv{color:var(--colorNeutralForeground1Hover);}",".frmsihh{border-top-color:var(--colorNeutralStrokeOnBrand);}",".frttxa5{border-right-color:var(--colorNeutralStrokeOnBrand);}",".f11o2r7f{border-left-color:var(--colorNeutralStrokeOnBrand);}",".fem5et0{border-bottom-color:var(--colorNeutralStrokeOnBrand);}"],a:[".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}",".f1g4hkjv:active{color:var(--colorNeutralForeground1Pressed);}",".f15ngxrw:active .fui-TableCellActions{opacity:1;}",".fjbbrdp:active .fui-TableSelectionCell{opacity:1;}",".f7tkmfy:active{background-color:var(--colorBrandBackground2);}",".f1r2dosr:active{color:var(--colorNeutralForeground1);}",".fa9o754:active{background-color:var(--colorSubtleBackgroundSelected);}"],h:[".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".feu1g3u:hover{color:var(--colorNeutralForeground1Hover);}",".f1uorfem:hover .fui-TableCellActions{opacity:1;}",".fw60kww:hover .fui-TableSelectionCell{opacity:1;}",".f1uqaxdt:hover{background-color:var(--colorSubtleBackgroundSelected);}"],m:[["@media (forced-colors: active){.f4xjyn1:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.ff1wgvm:hover{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1x4h75k:hover{border-left-color:Highlight;}.fiob0tu:hover{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1j6scgf:hover{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fqlf3fd{border-top-width:2px;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9dpb3h{border-right-width:2px;}.fw2muls{border-left-width:2px;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1yat0gj{border-bottom-width:2px;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f7nae3y{border-top-style:solid;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fa97sf3{border-left-style:solid;}.fkbere7{border-right-style:solid;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fmtyzcc{border-bottom-style:solid;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fb6zhgp{border-top-color:transparent;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fyowp6c{border-right-color:transparent;}.fz08sq8{border-left-color:transparent;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9dii88{border-bottom-color:transparent;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1afxoft{border-bottom-right-radius:var(--borderRadiusMedium);}.flqq2yx{border-bottom-left-radius:var(--borderRadiusMedium);}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1831rx6{border-top-left-radius:var(--borderRadiusMedium);}.f1b5xrmd{border-top-right-radius:var(--borderRadiusMedium);}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fd94n53{box-sizing:border-box;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1e0wld5:focus-visible{outline-offset:-4px;}}",{m:"(forced-colors: active)"}]]}),g$=t=>{const e=h$(),r={table:d$(),flex:f$()};return t.root.className=R(u$.root,e.root,!t.isHeaderRow&&e.rootInteractive,e[t.size],t.noNativeElements?r.flex.root:r.table.root,e[t.appearance],t.root.className),t},p$=(t,e)=>{const{noNativeElements:r}=oi();var o;const n=((o=t.as)!==null&&o!==void 0?o:r)?"div":"tbody";return{components:{root:n},root:ee(me(n,{ref:e,role:n==="div"?"rowgroup":void 0,...t}),{elementType:n}),noNativeElements:r}},m$=F({root:{mc9l5x:"f1tp1avn"}},{d:[".f1tp1avn{display:table-row-group;}"]}),v$=F({root:{mc9l5x:"ftgm304"}},{d:[".ftgm304{display:block;}"]}),b$="fui-TableBody",y$=t=>{const e={table:m$(),flex:v$()};return t.root.className=R(b$,t.noNativeElements?e.flex.root:e.table.root,t.root.className),t},w$=(t,e)=>{var r;const o=((r=t.as)!==null&&r!==void 0?r:t.noNativeElements)?"div":"table";var n,i,a;return{components:{root:o},root:ee(me(o,{ref:e,role:o==="div"?"table":void 0,...t}),{elementType:o}),size:(n=t.size)!==null&&n!==void 0?n:"medium",noNativeElements:(i=t.noNativeElements)!==null&&i!==void 0?i:!1,sortable:(a=t.sortable)!==null&&a!==void 0?a:!1}},k$=(t,e)=>P(VU,{value:e.table,children:P(t.root,{})}),S$="fui-Table",_$=F({root:{mc9l5x:"f1w4nmp0",ha4doy:"fmrv4ls",a9b677:"fly5x3f",B73mfa3:"f14m3nip"}},{d:[".f1w4nmp0{display:table;}",".fmrv4ls{vertical-align:middle;}",".fly5x3f{width:100%;}",".f14m3nip{table-layout:fixed;}"]}),x$=F({root:{mc9l5x:"ftgm304"}},{d:[".ftgm304{display:block;}"]}),C$=F({root:{po53p8:"fgkb47j",De3pzq:"fhovq9v"}},{d:[".fgkb47j{border-collapse:collapse;}",".fhovq9v{background-color:var(--colorSubtleBackground);}"]}),T$=t=>{const e=C$(),r={table:_$(),flex:x$()};return t.root.className=R(S$,e.root,t.noNativeElements?r.flex.root:r.table.root,t.root.className),t};function E$(t){const{size:e,noNativeElements:r,sortable:o}=t;return{table:y.useMemo(()=>({noNativeElements:r,size:e,sortable:o}),[r,e,o])}}const B$=(t,e)=>{const{noNativeElements:r}=oi();var o;const n=((o=t.as)!==null&&o!==void 0?o:r)?"div":"thead";return{components:{root:n},root:ee(me(n,{ref:e,role:n==="div"?"rowgroup":void 0,...t}),{elementType:n}),noNativeElements:r}},I$=t=>P(r$,{value:"",children:P(t.root,{})}),R$="fui-TableHeader",A$=F({root:{mc9l5x:"ftgm304"}},{d:[".ftgm304{display:block;}"]}),N$=F({root:{mc9l5x:"f1tp1avn"}},{d:[".f1tp1avn{display:table-row-group;}"]}),P$=t=>{const e={table:N$(),flex:A$()};return t.root.className=R(R$,t.noNativeElements?e.flex.root:e.table.root,t.root.className),t},z$={ascending:y.createElement(HN,{fontSize:12}),descending:y.createElement(LN,{fontSize:12})},M$=(t,e)=>{const{noNativeElements:r,sortable:o}=oi(),{sortable:n=o}=t;var i;const a=((i=t.as)!==null&&i!==void 0?i:r)?"div":"th",s=ee(t.button,{elementType:"div",defaultProps:{as:"div",...!n&&{role:"presentation",tabIndex:void 0}}});var l;return{components:{root:a,button:"div",sortIcon:"span",aside:"span"},root:ee(me(a,{ref:Be(e,gs()),role:a==="div"?"columnheader":void 0,"aria-sort":n?(l=t.sortDirection)!==null&&l!==void 0?l:"none":void 0,...t}),{elementType:a}),aside:he(t.aside,{elementType:"span"}),sortIcon:he(t.sortIcon,{renderByDefault:!!t.sortDirection,defaultProps:{children:t.sortDirection?z$[t.sortDirection]:void 0},elementType:"span"}),button:Pi(s.as,s),sortable:n,noNativeElements:r}},O$=t=>we(t.root,{children:[we(t.button,{children:[t.root.children,t.sortIcon&&P(t.sortIcon,{})]}),t.aside&&P(t.aside,{})]}),au={root:"fui-TableHeaderCell",button:"fui-TableHeaderCell__button",sortIcon:"fui-TableHeaderCell__sortIcon",aside:"fui-TableHeaderCell__aside"},j$=F({root:{mc9l5x:"f15pt5es",ha4doy:"fmrv4ls"}},{d:[".f15pt5es{display:table-cell;}",".fmrv4ls{vertical-align:middle;}"]}),D$=F({root:{mc9l5x:"f22iagw",Bh6795r:"fqerorx",Bnnss6s:"f1neuvcm",xawz:"fkjuxzh",Bf4jedk:"f10tiqix"}},{d:[".f22iagw{display:flex;}",".fqerorx{flex-grow:1;}",".f1neuvcm{flex-shrink:1;}",".fkjuxzh{flex-basis:0px;}",".f10tiqix{min-width:0px;}"]}),F$=F({root:{Bhrd7zp:"figsok6",z8tnut:"f1nbblvp",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f1ov4xf1",uwmqm3:["f1f5gg8d","f1vdfbxk"],B3nxjsc:"fhix6mv",Bmvh20x:"fha7anx",robkg1:"f1fmzww4",pehzd3:["fs9qmxf","f187m4uq"],B8osjzx:["f187m4uq","fs9qmxf"],u7xebq:["f145mzao","f1uha7eq"],Blsv9te:["f1uha7eq","f145mzao"],qhf8xq:"f10pi13n"},rootInteractive:{Jwef8y:"f1t94bn6",ecr2s2:"f1wfn5kd"},resetButton:{B3rzk8w:"fq6nmtn",B7ck84d:"f1e4lqlz",De3pzq:"f1u2r49w",sj55zd:"f1ym3bx4",Bahqtrf:"f1mo0ibp",Be2twd7:"fjoy568",Bg96gwp:"fytdu2e",B68tc82:"f1mtd64y",Bmxbyg5:"f1y7q3j9",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1cnd47f","fhxju0i"],icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],oivjwe:"f1h8hb77",wvpqe5:["f1deefiw","f1n71otn"],fsow6f:"fgusgyc"},button:{qhf8xq:"f10pi13n",a9b677:"fly5x3f",mc9l5x:"f22iagw",Bh6795r:"fqerorx",Bqenvij:"f1l02sjl",Bt984gj:"f122n59",i8kkvl:"f1ufnopg",Belr9w4:"f14sijuj",sshi5w:"f1nxs5xn",Bnnss6s:"f1neuvcm",xawz:"fkjuxzh",oeaueh:"f1s6fcnf"},sortable:{Bceei9c:"f1k6fduh"},sortIcon:{mc9l5x:"f22iagw",Bt984gj:"f122n59",z8tnut:"fclwglc"},resizeHandle:{}},{d:[".figsok6{font-weight:var(--fontWeightRegular);}",".f1nbblvp{padding-top:0px;}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1ov4xf1{padding-bottom:0px;}",".fhix6mv[data-fui-focus-within]:focus-within{outline-width:2px;}",".fha7anx[data-fui-focus-within]:focus-within{outline-style:solid;}",".f1fmzww4[data-fui-focus-within]:focus-within{outline-color:var(--colorStrokeFocus2);}",".fs9qmxf[data-fui-focus-within]:focus-within{border-bottom-right-radius:var(--borderRadiusMedium);}",".f187m4uq[data-fui-focus-within]:focus-within{border-bottom-left-radius:var(--borderRadiusMedium);}",".f145mzao[data-fui-focus-within]:focus-within{border-top-right-radius:var(--borderRadiusMedium);}",".f1uha7eq[data-fui-focus-within]:focus-within{border-top-left-radius:var(--borderRadiusMedium);}",".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;}",".f1mtd64y{overflow-x:visible;}",".f1y7q3j9{overflow-y:visible;}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1h8hb77{border-bottom-style:none;}",".fgusgyc{text-align:unset;}",".fly5x3f{width:100%;}",".f22iagw{display:flex;}",".fqerorx{flex-grow:1;}",".f1l02sjl{height:100%;}",".f122n59{align-items:center;}",".f1ufnopg{column-gap:var(--spacingHorizontalXS);}",".f14sijuj{row-gap:var(--spacingHorizontalXS);}",".f1nxs5xn{min-height:32px;}",".f1neuvcm{flex-shrink:1;}",".fkjuxzh{flex-basis:0px;}",".f1s6fcnf{outline-style:none;}",".f1k6fduh{cursor:pointer;}",".fclwglc{padding-top:var(--spacingVerticalXXS);}"],h:[".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}"],a:[".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}"]}),q$=t=>{const e=F$(),r={table:j$(),flex:D$()};return t.root.className=R(au.root,e.root,t.sortable&&e.rootInteractive,t.noNativeElements?r.flex.root:r.table.root,t.root.className),t.button.className=R(au.button,e.resetButton,e.button,t.sortable&&e.sortable,t.button.className),t.sortIcon&&(t.sortIcon.className=R(au.sortIcon,e.sortIcon,t.sortIcon.className)),t.aside&&(t.aside.className=R(au.aside,e.resizeHandle,t.aside.className)),t},w5=y.createContext(void 0),L$="",k5=()=>{var t;return(t=y.useContext(w5))!==null&&t!==void 0?t:L$},H$=w5.Provider,S5=y.createContext(void 0),U$="",_5=()=>{var t;return(t=y.useContext(S5))!==null&&t!==void 0?t:U$},$$=S5.Provider,K$=(t,e)=>{const r=b5(t,e),{noNativeElements:o}=oi(),{type:n="checkbox",checked:i=!1,subtle:a=!1,hidden:s=!1}=t;return{...r,components:{...r.components,checkboxIndicator:Wp,radioIndicator:Gp},checkboxIndicator:he(t.checkboxIndicator,{renderByDefault:n==="checkbox",defaultProps:{checked:t.checked},elementType:Wp}),radioIndicator:he(t.radioIndicator,{renderByDefault:n==="radio",defaultProps:{checked:!!i,input:{name:Bt("table-selection-radio")}},elementType:Gp}),type:n,checked:i,noNativeElements:o,subtle:a,hidden:s}},W$=t=>we(t.root,{children:[t.type==="checkbox"&&t.checkboxIndicator&&P(t.checkboxIndicator,{}),t.type==="radio"&&t.radioIndicator&&P(t.radioIndicator,{})]}),x5=hn(void 0),C5={...qU,subtleSelection:!1,selectableRows:!1,selectionAppearance:"brand",focusMode:"none",compositeRowTabsterAttribute:{}},V$=x5.Provider,st=t=>ct(x5,(e=C5)=>t(e)),G$=(t,e)=>{const{focusMode:r="cell"}=t,o=k5(),n=st(l=>(l.focusMode==="cell"||l.focusMode==="composite")&&r!=="none"),i=st(l=>l.resizableColumns),a=st(l=>l.columnSizing_unstable.getTableCellProps),s=uc({tabBehavior:"limited-trap-focus"});return b5({as:"div",role:"gridcell",...r==="group"&&s,tabIndex:n?0:void 0,...i?a(o):{},...t},e)},X$=t=>GU(t),Y$={root:"fui-DataGridCell"},Z$=t=>(e$(t),t.root.className=R(Y$.root,t.root.className),t),Q$=y.forwardRef((t,e)=>{const r=G$(t,e);return Z$(r),de("useDataGridCellStyles_unstable")(r),X$(r)});Q$.displayName="DataGridCell";const J$=(t,e)=>{const r=J1(),o=_5(),n=st(c=>c.subtleSelection),i=st(c=>r&&c.selection.selectionMode==="multiselect"?c.selection.allRowsSelected?!0:c.selection.someRowsSelected?"mixed":!1:c.selection.isRowSelected(o)),a=st(c=>c.selection.toggleAllRows),s=st(c=>c.selection.selectionMode==="multiselect"?"checkbox":"radio"),l=Q(c=>{var u;r&&a(c),(u=t.onClick)===null||u===void 0||u.call(t,c)});return K$({as:"div",role:"gridcell",checked:i,type:s,hidden:r&&s==="radio","aria-checked":r?i:void 0,"aria-selected":r||i==="mixed"?void 0:i,subtle:n,...t,onClick:l},e)},eK=t=>W$(t),Qh={root:"fui-DataGridSelectionCell",checkboxIndicator:"fui-DataGridSelectionCell__checkboxIndicator",radioIndicator:"fui-DataGridSelectionCell__radioIndicator"},tK=t=>(l$(t),t.root.className=R(Qh.root,t.root.className),t.checkboxIndicator&&(t.checkboxIndicator.className=R(Qh.checkboxIndicator,t.checkboxIndicator.className)),t.radioIndicator&&(t.radioIndicator.className=R(Qh.radioIndicator,t.radioIndicator.className)),t),tm=y.forwardRef((t,e)=>{const r=J$(t,e);return tK(r),de("useDataGridSelectionCellStyles_unstable")(r),eK(r)});tm.displayName="DataGridSelectionCell";const rK=(t,e)=>{const r=_5(),o=J1(),n=st(m=>m.columns),i=st(m=>m.selectableRows),a=st(m=>m.selection.isRowSelected(r)),s=st(m=>m.focusMode),l=st(m=>m.compositeRowTabsterAttribute),c=s==="row_unstable"||s==="composite",u=st(m=>!o&&i&&m.selection.isRowSelected(r)?m.selectionAppearance:"none"),d=st(m=>m.selection.toggleRow),f=Q(m=>{var w;i&&!o&&d(m,r),(w=t.onClick)===null||w===void 0||w.call(t,m)}),h=Q(m=>{var w;i&&!o&&m.key===Or&&!CN(m.target)&&(m.preventDefault(),d(m,r)),(w=t.onKeyDown)===null||w===void 0||w.call(t,m)}),g=o$({appearance:u,"aria-selected":i?a:void 0,tabIndex:c&&!o?0:void 0,...s==="composite"&&!o&&l,...t,onClick:f,onKeyDown:h,children:null,as:"div"},e);return{...g,components:{...g.components,selectionCell:tm},selectionCell:he(t.selectionCell,{renderByDefault:i,elementType:tm}),renderCell:t.children,columnDefs:n,dataGridContextValue:oK()}};function oK(){const t=y.useRef(C5);return st(e=>(t.current=e,null)),t.current}const nK=t=>we(t.root,{children:[t.selectionCell&&P(t.selectionCell,{}),t.columnDefs.map(e=>P(H$,{value:e.columnId,children:t.renderCell(e,t.dataGridContextValue)},e.columnId))]}),Kw={root:"fui-DataGridRow",selectionCell:"fui-DataGridRow__selectionCell"},iK=t=>(g$(t),t.root.className=R(Kw.root,t.root.className),t.selectionCell&&(t.selectionCell.className=R(Kw.selectionCell,t.selectionCell.className)),t),aK=y.forwardRef((t,e)=>{const r=rK(t,e);return iK(r),de("useDataGridRowStyles_unstable")(r),nK(r)});aK.displayName="DataGridRow";const sK=(t,e)=>{const{sortable:r}=oi(),o=st(s=>s.getRows),n=st(s=>s.sort.sort),i=r?n(o()):o();return{...p$({...t,children:null,as:"div"},e),rows:i,renderRow:t.children}},lK=t=>P(t.root,{children:t.rows.map(e=>P($$,{value:e.rowId,children:t.renderRow(e)},e.rowId))}),cK={root:"fui-DataGridBody"},uK=t=>(y$(t),t.root.className=R(cK.root,t.root.className),t),dK=y.forwardRef((t,e)=>{const r=sK(t,e);return uK(r),de("useDataGridBodyStyles_unstable")(r),lK(r)});dK.displayName="DataGridBody";const fK=(t,e)=>{const{items:r,columns:o,focusMode:n="cell",selectionMode:i,onSortChange:a,onSelectionChange:s,defaultSortState:l,sortState:c,selectedItems:u,defaultSelectedItems:d,subtleSelection:f=!1,selectionAppearance:h="brand",getRowId:g,resizableColumns:m,columnSizingOptions:w,onColumnResize:v,containerWidthOffset:p}=t,b=p??(i?-n$:0),k=Za({axis:"grid"}),{onTableKeyDown:x,tableTabsterAttribute:S,tableRowTabsterAttribute:_}=KU(),C=LU({items:r,columns:o,getRowId:g},[yU({defaultSortState:l,sortState:c,onSortChange:a}),vU({defaultSelectedItems:d,selectedItems:u,onSelectionChange:s,selectionMode:i??"multiselect"}),jU({onColumnResize:v,columnSizingOptions:w,containerWidthOffset:b})]),T=y.useRef(null),{findFirstFocusable:E,findLastFocusable:O}=No(),I=Q(q=>{var N;if((N=t.onKeyDown)===null||N===void 0||N.call(t,q),n==="composite"&&x(q),!(!T.current||!q.ctrlKey||q.defaultPrevented)){if(q.key===Wv){const B=T.current.querySelector('[role="row"]');if(B){var M;(M=E(B))===null||M===void 0||M.focus()}}if(q.key===Kv){const B=T.current.querySelectorAll('[role="row"]');if(B.length){var W;const D=B.item(B.length-1);(W=O(D))===null||W===void 0||W.focus()}}}});return{...w$({role:"grid",as:"div",noNativeElements:!0,...n==="cell"&&k,...n==="composite"&&S,...t,onKeyDown:I,...m?C.columnSizing_unstable.getTableProps(t):{}},Be(e,C.tableRef,T)),focusMode:n,tableState:C,selectableRows:!!i,subtleSelection:f,selectionAppearance:h,resizableColumns:m,compositeRowTabsterAttribute:_}},hK=(t,e)=>y.createElement(V$,{value:e.dataGrid},k$(t,e)),gK={root:"fui-DataGrid"},pK=t=>(T$(t),t.root.className=R(gK.root,t.root.className),t);function mK(t){const e=E$(t),{tableState:r,focusMode:o,selectableRows:n,subtleSelection:i,selectionAppearance:a,resizableColumns:s,compositeRowTabsterAttribute:l}=t;return{...e,dataGrid:{...r,focusMode:o,selectableRows:n,subtleSelection:i,selectionAppearance:a,resizableColumns:s,compositeRowTabsterAttribute:l}}}const vK=y.forwardRef((t,e)=>{const r=fK(t,e);return pK(r),de("useDataGridStyles_unstable")(r),hK(r,mK(r))});vK.displayName="DataGrid";const bK=(t,e)=>B$({...t,as:"div"},e),yK=t=>I$(t),wK={root:"fui-DataGridHeader"},kK=t=>(P$(t),t.root.className=R(wK.root,t.root.className),t),SK=y.forwardRef((t,e)=>{const r=bK(t,e);return kK(r),de("useDataGridHeaderStyles_unstable")(r),yK(r)});SK.displayName="DataGridHeader";function _K(t){return t.compare.length>0}const xK=(t,e)=>{const r=k5(),{sortable:o}=oi(),n=st(u=>u.sort.toggleColumnSort),i=st(u=>{const d=!!u.columns.find(f=>f.columnId===r&&_K(f));return o?d:!1}),a=st(u=>i?u.sort.getSortDirection(r):void 0),s=st(u=>u.resizableColumns),l=st(u=>u.columnSizing_unstable.getTableHeaderCellProps),c=Q(u=>{var d;i&&n(u,r),(d=t.onClick)===null||d===void 0||d.call(t,u)});return M$({sortable:i,sortDirection:a,as:"div",tabIndex:i?void 0:0,...s?l(r):{},...t,onClick:c},e)},CK=t=>O$(t),su={root:"fui-DataGridHeaderCell",button:"fui-DataGridHeaderCell__button",sortIcon:"fui-DataGridHeaderCell__sortIcon",aside:"fui-DataGridHeaderCell__aside"},TK=t=>(q$(t),t.root.className=R(su.root,t.root.className),t.button&&(t.button.className=R(su.button,t.button.className)),t.sortIcon&&(t.sortIcon.className=R(su.sortIcon,t.sortIcon.className)),t.aside&&(t.aside.className=R(su.aside,t.aside.className)),t),EK=y.forwardRef((t,e)=>{const r=xK(t,e);return TK(r),de("useDataGridHeaderCellStyles_unstable")(r),CK(r)});EK.displayName="DataGridHeaderCell";const BK=(t,{referenceLabel:e,referenceId:r},o)=>{const{checkbox:n={},onSelectionChange:i,floatingAction:a,onClick:s,onKeyDown:l}=t,{findAllFocusable:c}=No(),u=y.useRef(null),[d,f]=Et({state:t.selected,defaultState:t.defaultSelected,initialState:!1}),h=[t.selected,t.defaultSelected,i].some(S=>typeof S<"u"),[g,m]=y.useState(!1),w=y.useCallback(S=>{if(!o.current)return!1;const _=c(o.current),C=S.target,T=_.some(O=>O.contains(C)),E=u?.current===C;return T&&!E},[o,c]),v=y.useCallback(S=>{if(w(S))return;const _=!d;f(_),i&&i(S,{selected:_})},[i,d,f,w]),p=y.useCallback(S=>{[To].includes(S.key)&&(S.preventDefault(),v(S))},[v]),b=y.useMemo(()=>{if(!h||a)return;const S={};return r?S["aria-labelledby"]=r:e&&(S["aria-label"]=e),he(n,{defaultProps:{ref:u,type:"checkbox",checked:d,onChange:_=>v(_),onFocus:()=>m(!0),onBlur:()=>m(!1),...S},elementType:"input"})},[n,a,d,h,v,r,e]),k=y.useMemo(()=>{if(a)return he(a,{defaultProps:{ref:u},elementType:"div"})},[a]),x=y.useMemo(()=>h?{onClick:fe(s,v),onKeyDown:fe(l,p)}:null,[h,v,s,l,p]);return{selected:d,selectable:h,selectFocused:g,selectableCardProps:x,checkboxSlot:b,floatingActionSlot:k}},T5=y.createContext(void 0),rm={selectableA11yProps:{referenceId:void 0,setReferenceId(){},referenceLabel:void 0,setReferenceLabel(){}}},IK=T5.Provider,E5=()=>{var t;return(t=y.useContext(T5))!==null&&t!==void 0?t:rm},RK={off:void 0,"no-tab":"limited-trap-focus","tab-exit":"limited","tab-only":"unlimited"},AK=({focusMode:t="off",...e})=>{const r=["onClick","onDoubleClick","onMouseUp","onMouseDown","onPointerUp","onPointerDown","onTouchStart","onTouchEnd","onDragStart","onDragEnd"].some(i=>e[i]),n={...uc({tabBehavior:RK[r?"no-tab":t]}),tabIndex:0};return{interactive:r,focusAttributes:!r&&t==="off"?null:n}},NK=(t,e)=>{const{appearance:r="filled",orientation:o="vertical",size:n="medium"}=t,[i,a]=y.useState(rm.selectableA11yProps.referenceId),[s,l]=y.useState(rm.selectableA11yProps.referenceId),c=gs(),{selectable:u,selected:d,selectableCardProps:f,selectFocused:h,checkboxSlot:g,floatingActionSlot:m}=BK(t,{referenceId:i,referenceLabel:s},c),w=Be(c,e),{interactive:v,focusAttributes:p}=AK(t);return{appearance:r,orientation:o,size:n,interactive:v,selectable:u,selectFocused:h,selected:d,selectableA11yProps:{setReferenceId:a,referenceId:i,referenceLabel:s,setReferenceLabel:l},components:{root:"div",floatingAction:"div",checkbox:"input"},root:ee(me("div",{ref:w,role:"group",...u?null:p,...t,...f}),{elementType:"div"}),floatingAction:m,checkbox:g}},PK=(t,e)=>P(t.root,{children:we(IK,{value:e,children:[t.checkbox?P(t.checkbox,{}):null,t.floatingAction?P(t.floatingAction,{}):null,t.root.children]})}),om={root:"fui-CardPreview",logo:"fui-CardPreview__logo"},zK=F({root:{qhf8xq:"f10pi13n",pnb5jt:"f1rzl30s",Elg2ur:"f1chxnfo",B184ckt:"f17xb19f"},logo:{qhf8xq:"f1euv43f",B5kzvoi:"f1gcvs1y",oyh7mz:["f1t6tvco","ffrfxm3"],a9b677:"f1szoe96",Bqenvij:"f1d2rq10"}},{d:[".f10pi13n{position:relative;}",".f1rzl30s>:not(.fui-CardPreview__logo){display:block;}",".f1chxnfo>:not(.fui-CardPreview__logo){height:100%;}",".f17xb19f>:not(.fui-CardPreview__logo){width:100%;}",".f1euv43f{position:absolute;}",".f1gcvs1y{bottom:12px;}",".f1t6tvco{left:12px;}",".ffrfxm3{right:12px;}",".f1szoe96{width:32px;}",".f1d2rq10{height:32px;}"]}),MK=t=>{const e=zK();return t.root.className=R(om.root,e.root,t.root.className),t.logo&&(t.logo.className=R(om.logo,e.logo,t.logo.className)),t},da={root:"fui-CardHeader",image:"fui-CardHeader__image",header:"fui-CardHeader__header",description:"fui-CardHeader__description",action:"fui-CardHeader__action"},OK=F({root:{Bkc6ea2:"fkufhic",mc9l5x:"f13qh94s",t4k1zu:"f8a668j",Bt984gj:"f122n59"},image:{mc9l5x:"ftuwxu6",t21cq0:["fql5097","f6yss9k"],Br312pm:"fwpfdsa",Ijaq50:"fldnz9j"},header:{Br312pm:"fd46tj4",Ijaq50:"f16hsg94",mc9l5x:"f22iagw"},description:{Br312pm:"fd46tj4",Ijaq50:"faunodf",mc9l5x:"f22iagw"},action:{Frg6f3:["f6yss9k","fql5097"],Br312pm:"fis13di",Ijaq50:"fldnz9j"}},{d:[".fkufhic{--fui-CardHeader--gap:12px;}",".f13qh94s{display:grid;}",".f8a668j{grid-auto-columns:min-content 1fr min-content;}",".f122n59{align-items:center;}",".ftuwxu6{display:inline-flex;}",".fql5097{margin-right:var(--fui-CardHeader--gap);}",".f6yss9k{margin-left:var(--fui-CardHeader--gap);}",".fwpfdsa{grid-column-start:1;}",".fldnz9j{grid-row-start:span 2;}",".fd46tj4{grid-column-start:2;}",".f16hsg94{grid-row-start:1;}",".f22iagw{display:flex;}",".faunodf{grid-row-start:2;}",".fis13di{grid-column-start:3;}"]}),jK=t=>{const e=OK();return t.root.className=R(da.root,e.root,t.root.className),t.image&&(t.image.className=R(da.image,e.image,t.image.className)),t.header&&(t.header.className=R(da.header,e.header,t.header.className)),t.description&&(t.description.className=R(da.description,e.description,t.description.className)),t.action&&(t.action.className=R(da.action,e.action,t.action.className)),t},Ww={root:"fui-CardFooter",action:"fui-CardFooter__action"},DK=F({root:{mc9l5x:"f22iagw",Beiy3e4:"f1063pyq",i8kkvl:"f4akndk",Belr9w4:"fe5j3v"},action:{Frg6f3:["fcgxt0o","f1ujusj6"]}},{d:[".f22iagw{display:flex;}",".f1063pyq{flex-direction:row;}",".f4akndk{column-gap:12px;}",".fe5j3v{row-gap:12px;}",".fcgxt0o{margin-left:auto;}",".f1ujusj6{margin-right:auto;}"]}),FK=t=>{const e=DK();return t.root.className=R(Ww.root,e.root,t.root.className),t.action&&(t.action.className=R(Ww.action,e.action,t.action.className)),t},Jh={root:"fui-Card",floatingAction:"fui-Card__floatingAction",checkbox:"fui-Card__checkbox"},qK=F({root:{B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",Bbmb7ep:["fifeqxg","f899z7z"],Beyfa6y:["f899z7z","fifeqxg"],B7oj6ja:["f4h3tyx","f18ur2pz"],Btl43ni:["f18ur2pz","f4h3tyx"],z8tnut:"f1lplnzb",z189sj:["f10m5gbb","f1k04kkk"],Byoj8tv:"fhftqfp",uwmqm3:["f1k04kkk","f10m5gbb"],i8kkvl:"fxsr4vj",Belr9w4:"fcvsdzp",mc9l5x:"f22iagw",qhf8xq:"f10pi13n",B7ck84d:"f1ewtqcl",sj55zd:"f19n0e5",E3zdtr:"f1mdlcz9",bn5sak:"frwkxtg",Eqx8gd:["f1n6gb5g","f15yvnhg"],B1piin3:["f15yvnhg","f1n6gb5g"],By385i5:"fo72kxq",Bsft5z2:"f13zj6fq",B80jsxd:"f1nwj1ja",Bm2nyyq:"f8rth92",Barhvk9:["flthirb","ftkbnf5"],Bw17bha:"f1lh990p",vfts7:["ftkbnf5","flthirb"],xrcqlc:"f6czdpx",Ihftqj:["f13hvwk3","f1en4csx"],Bcgy8vk:"f1i1u9k0",Bhxzhr1:["f1en4csx","f13hvwk3"],B3778ie:["f1qnomq5","f2fl922"],d9w3h3:["f2fl922","f1qnomq5"],Bl18szs:["f1anhtl","f1n2zcl3"],B4j8arr:["f1n2zcl3","f1anhtl"],B2jhnfs:"f16v3d5c"},focused:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bb7d1vk:"f226i61",zhwhgb:["f13kzufm","fsx75g8"],dhy2o1:"flujwa2",Gfyso:["fsx75g8","f13kzufm"],Bm4h7ae:"f15bsgw9",B7ys5i9:"f14e48fq",Busjfv9:"f18yb2kv",Bhk32uz:"fd6o370",Bf4ptjt:"fh1cnn4",kclons:["fy7oxxb","f184ne2d"],Bhdgwq3:"fpukqih",Blkhhs4:["f184ne2d","fy7oxxb"],Bqtpl0w:"f99gebs",clg4pj:["f13b0oaq","f8t2bz6"],hgwjuy:"f1jvq617",Bonggc9:["f8t2bz6","f13b0oaq"],B1tsrr9:["f11unbnk","fbd201q"],Dah5zi:["fbd201q","f11unbnk"],Bkh64rk:["f12nqxso","f1uguk4w"],qqdqy8:["f1uguk4w","f12nqxso"],B6dhp37:"f1dvezut",i03rao:["fd0oaoj","f1cwg4i8"],Boxcth7:"fjvm52t",Bsom6fd:["f1cwg4i8","fd0oaoj"],J0r882:"f15fr7a0",Bule8hv:["fwsq40z","fy0y4wt"],Bjwuhne:"f34ld9f",Ghsupd:["fy0y4wt","fwsq40z"]},selectableFocused:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",Bssx7fj:"f1b1k54r",uh7if5:["f4ne723","fqqcjud"],clntm0:"fh7aioi",Dlk2r6:["fqqcjud","f4ne723"],Bm3wd5j:"f1k55ka9",Bbrhkcr:["fgclinu","f16pcs8n"],f1oku:"fycbxed",aywvf2:["f16pcs8n","fgclinu"],B2j2mmj:"ffht0p2",wigs8:"f1p0ul1q",pbfy6t:"f1c901ms",B0v4ure:"f1alokd7",ghq09:"f78i1la",B24cy0v:["f1kvsw7t","f1bw8brt"],Bwckmig:"f8k7e5g",Bvwlmkc:["f1bw8brt","f1kvsw7t"],Bbgo44z:"f125hn41",Bil7v7r:["fgxkx34","f1v56tyl"],skfxo0:"fdxas6f",jo1ztg:["f1v56tyl","fgxkx34"],Ba3ybja:["fxwickw","f1ia5cve"],az1dzo:["f1ia5cve","fxwickw"],vppk2z:["f194aguw","fqicc6c"],B6352mv:["fqicc6c","f194aguw"],nr063g:"fq4eyks",Blmvk6g:["f1ya6x16","ftuszwa"],Bsiemmq:"f1e2iu44",B98u21t:["ftuszwa","f1ya6x16"],B2pnrqr:"f1amxum7",B29w5g4:["f1cec8w7","f554mv0"],Bhhzhcn:"f1sj6kbr",Bec0n69:["f554mv0","f1cec8w7"]},orientationHorizontal:{Beiy3e4:"f1063pyq",Bt984gj:"f122n59",Bnoktp0:"fpfyeui",Idhjb2:"fwi74qw",ihgzqh:["ffcmwrh","f6ppoih"],Bgp6ld0:["f1dc9p14","fd933vt"],Bbucpmy:"f18esqgw"},orientationVertical:{Beiy3e4:"f1vx9l62",Bt4kzjz:["fobhde4","fx5r7kn"],B1ou843:["fx5r7kn","fobhde4"],y1433z:"f19chtn8",B7egwnw:"fuvs6re",B49b4xf:"fy4glsf"},sizeSmall:{B7balbw:"f1pi9uxy",B1h88n7:"f1h1zgly"},sizeMedium:{B7balbw:"frsmuga",B1h88n7:"fuldkky"},sizeLarge:{B7balbw:"f1qua4xo",B1h88n7:"fimkt6v"},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"],Jwef8y:"f1knas48",Bvxd0ez:"f1m145df",ecr2s2:"fb40n2d"},filledInteractiveSelected:{De3pzq:"f1nfm20t",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],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"],Jwef8y:"f1uvynv3",Bvxd0ez:"f1m145df",ecr2s2:"f1yhgkbh"},filledAlternativeInteractiveSelected:{De3pzq:"fjxa0vh",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],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"],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"],Jwef8y:"fg59vm4"},subtle:{De3pzq:"fhovq9v",E5pizo:"f1couhl3",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"]},subtleInteractive:{Bceei9c:"f1k6fduh",De3pzq:"fhovq9v",E5pizo:"f1couhl3",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"],Jwef8y:"f1t94bn6",ecr2s2:"f1wfn5kd"},subtleInteractiveSelected:{De3pzq:"fq5gl1p",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Jwef8y:"f1uqaxdt"},highContrastSelected:{ycbfsm:"fkc42ay",Bsw6fvg:"f1rirnrt",Bbusuzp:"f1lkg8j3",xgfqdd:"f1nkj0oa",Bmmdzwq:"fey3rwa",zkpvhj:["f5jhx11","fff9uym"],B20bydw:"fm7n0jy",Bwwwggl:["fff9uym","f5jhx11"]},highContrastInteractive:{h1vhog:"fpfvv3l",kslmdy:"f1oamsm6",Baaf6ca:"f1il21bs",x9zz3d:"fnn5dk0",Bmmdzwq:"fey3rwa",zkpvhj:["f5jhx11","fff9uym"],B20bydw:"fm7n0jy",Bwwwggl:["fff9uym","f5jhx11"]},select:{qhf8xq:"f1euv43f",Bhzewxz:"fqclxi7",j35jbq:["fiv86kb","f36uhnt"],Bj3rh1h:"f19g0ac"},hiddenCheckbox:{B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",a9b677:"frkrog8",Bqenvij:"f1mpe4l3",qhf8xq:"f1euv43f",Bh84pgu:"fmf1zke",Bgl5zvf:"f1wch0ki",Huce71:"fz5stix"}},{d:[".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".fifeqxg{border-bottom-right-radius:var(--fui-Card--border-radius);}",".f899z7z{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f4h3tyx{border-top-right-radius:var(--fui-Card--border-radius);}",".f18ur2pz{border-top-left-radius:var(--fui-Card--border-radius);}",".f1lplnzb{padding-top:var(--fui-Card--size);}",".f10m5gbb{padding-right:var(--fui-Card--size);}",".f1k04kkk{padding-left:var(--fui-Card--size);}",".fhftqfp{padding-bottom:var(--fui-Card--size);}",".fxsr4vj{column-gap:var(--fui-Card--size);}",".fcvsdzp{row-gap:var(--fui-Card--size);}",".f22iagw{display:flex;}",".f10pi13n{position:relative;}",".f1ewtqcl{box-sizing:border-box;}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1mdlcz9::after{position:absolute;}",".frwkxtg::after{top:0;}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".fo72kxq::after{bottom:0;}",'.f13zj6fq::after{content:"";}',".f1nwj1ja::after{pointer-events:none;}",".f8rth92::after{border-top-style:solid;}",".flthirb::after{border-right-style:solid;}",".ftkbnf5::after{border-left-style:solid;}",".f1lh990p::after{border-bottom-style:solid;}",".f6czdpx::after{border-top-width:var(--strokeWidthThin);}",".f13hvwk3::after{border-right-width:var(--strokeWidthThin);}",".f1en4csx::after{border-left-width:var(--strokeWidthThin);}",".f1i1u9k0::after{border-bottom-width:var(--strokeWidthThin);}",".f1qnomq5::after{border-bottom-right-radius:var(--fui-Card--border-radius);}",".f2fl922::after{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f1anhtl::after{border-top-right-radius:var(--fui-Card--border-radius);}",".f1n2zcl3::after{border-top-left-radius:var(--fui-Card--border-radius);}",".f16v3d5c>.fui-CardHeader,.f16v3d5c>.fui-CardFooter{flex-shrink:0;}",".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;}",".fh1cnn4[data-fui-focus-visible]::after{border-top-style:solid;}",".fy7oxxb[data-fui-focus-visible]::after{border-right-style:solid;}",".f184ne2d[data-fui-focus-visible]::after{border-left-style:solid;}",".fpukqih[data-fui-focus-visible]::after{border-bottom-style:solid;}",".f99gebs[data-fui-focus-visible]::after{border-top-width:var(--strokeWidthThick);}",".f13b0oaq[data-fui-focus-visible]::after{border-right-width:var(--strokeWidthThick);}",".f8t2bz6[data-fui-focus-visible]::after{border-left-width:var(--strokeWidthThick);}",".f1jvq617[data-fui-focus-visible]::after{border-bottom-width:var(--strokeWidthThick);}",".f11unbnk[data-fui-focus-visible]::after{border-bottom-right-radius:var(--fui-Card--border-radius);}",".fbd201q[data-fui-focus-visible]::after{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f12nqxso[data-fui-focus-visible]::after{border-top-right-radius:var(--fui-Card--border-radius);}",".f1uguk4w[data-fui-focus-visible]::after{border-top-left-radius:var(--fui-Card--border-radius);}",".f1dvezut[data-fui-focus-visible]::after{border-top-color:var(--colorStrokeFocus2);}",".fd0oaoj[data-fui-focus-visible]::after{border-right-color:var(--colorStrokeFocus2);}",".f1cwg4i8[data-fui-focus-visible]::after{border-left-color:var(--colorStrokeFocus2);}",".fjvm52t[data-fui-focus-visible]::after{border-bottom-color:var(--colorStrokeFocus2);}",".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;}",".f78i1la[data-fui-focus-within]:focus-within::after{border-top-style:solid;}",".f1kvsw7t[data-fui-focus-within]:focus-within::after{border-right-style:solid;}",".f1bw8brt[data-fui-focus-within]:focus-within::after{border-left-style:solid;}",".f8k7e5g[data-fui-focus-within]:focus-within::after{border-bottom-style:solid;}",".f125hn41[data-fui-focus-within]:focus-within::after{border-top-width:var(--strokeWidthThick);}",".fgxkx34[data-fui-focus-within]:focus-within::after{border-right-width:var(--strokeWidthThick);}",".f1v56tyl[data-fui-focus-within]:focus-within::after{border-left-width:var(--strokeWidthThick);}",".fdxas6f[data-fui-focus-within]:focus-within::after{border-bottom-width:var(--strokeWidthThick);}",".fxwickw[data-fui-focus-within]:focus-within::after{border-bottom-right-radius:var(--fui-Card--border-radius);}",".f1ia5cve[data-fui-focus-within]:focus-within::after{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f194aguw[data-fui-focus-within]:focus-within::after{border-top-right-radius:var(--fui-Card--border-radius);}",".fqicc6c[data-fui-focus-within]:focus-within::after{border-top-left-radius:var(--fui-Card--border-radius);}",".fq4eyks[data-fui-focus-within]:focus-within::after{border-top-color:var(--colorStrokeFocus2);}",".f1ya6x16[data-fui-focus-within]:focus-within::after{border-right-color:var(--colorStrokeFocus2);}",".ftuszwa[data-fui-focus-within]:focus-within::after{border-left-color:var(--colorStrokeFocus2);}",".f1e2iu44[data-fui-focus-within]:focus-within::after{border-bottom-color:var(--colorStrokeFocus2);}",".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;}",".fpfyeui>.fui-CardPreview{margin-top:calc(var(--fui-Card--size) * -1);}",".fwi74qw>.fui-CardPreview{margin-bottom:calc(var(--fui-Card--size) * -1);}",'.ffcmwrh>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-left:calc(var(--fui-Card--size) * -1);}','.f6ppoih>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-right:calc(var(--fui-Card--size) * -1);}','.f1dc9p14>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-right:calc(var(--fui-Card--size) * -1);}','.fd933vt>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-left:calc(var(--fui-Card--size) * -1);}',".f18esqgw>.fui-CardHeader:last-of-type,.f18esqgw>.fui-CardFooter:last-of-type{flex-grow:1;}",".f1vx9l62{flex-direction:column;}",".fobhde4>.fui-CardPreview{margin-left:calc(var(--fui-Card--size) * -1);}",".fx5r7kn>.fui-CardPreview{margin-right:calc(var(--fui-Card--size) * -1);}",'.f19chtn8>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-top:calc(var(--fui-Card--size) * -1);}',".fuvs6re>.fui-Card__floatingAction+.fui-CardPreview{margin-top:calc(var(--fui-Card--size) * -1);}",'.fy4glsf>: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);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1whvlc6{box-shadow:var(--shadow4);}",".f16gxe2i::after{border-top-color:var(--colorTransparentStroke);}",".fpgykix::after{border-right-color:var(--colorTransparentStroke);}",".fzybk4o::after{border-left-color:var(--colorTransparentStroke);}",".f1osi826::after{border-bottom-color:var(--colorTransparentStroke);}",".f1k6fduh{cursor:pointer;}",".f1nfm20t{background-color:var(--colorNeutralBackground1Selected);}",".f16eln5f::after{border-top-color:var(--colorNeutralStroke1Selected);}",".fa2okxs::after{border-right-color:var(--colorNeutralStroke1Selected);}",".fg4zq3l::after{border-left-color:var(--colorNeutralStroke1Selected);}",".ff6932p::after{border-bottom-color:var(--colorNeutralStroke1Selected);}",".f1dmdbja{background-color:var(--colorNeutralBackground2);}",".fjxa0vh{background-color:var(--colorNeutralBackground2Selected);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1couhl3{box-shadow:none;}",".ft83z1f::after{border-top-color:var(--colorNeutralStroke1);}",".f1g4150c::after{border-right-color:var(--colorNeutralStroke1);}",".f192dr6e::after{border-left-color:var(--colorNeutralStroke1);}",".f1qnawh6::after{border-bottom-color:var(--colorNeutralStroke1);}",".f1q9pm1r{background-color:var(--colorTransparentBackgroundSelected);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fq5gl1p{background-color:var(--colorSubtleBackgroundSelected);}",".f1euv43f{position:absolute;}",".fqclxi7{top:4px;}",".fiv86kb{right:4px;}",".f36uhnt{left:4px;}",".f19g0ac{z-index:1;}",".frkrog8{width:1px;}",".f1mpe4l3{height:1px;}",".fmf1zke{clip:rect(0 0 0 0);}",".f1wch0ki{clip-path:inset(50%);}",".fz5stix{white-space:nowrap;}"],f:[".ftqa4ok:focus{outline-style:none;}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"],m:[["@media (forced-colors: active){.f226i61[data-fui-focus-visible]::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f13kzufm[data-fui-focus-visible]::after{border-right-color:Highlight;}.fsx75g8[data-fui-focus-visible]::after{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.flujwa2[data-fui-focus-visible]::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1k55ka9[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16pcs8n[data-fui-focus-within]:focus-within::after{border-left-color:Highlight;}.fgclinu[data-fui-focus-within]:focus-within::after{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fycbxed[data-fui-focus-within]:focus-within::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1nkj0oa .fui-CardPreview,.f1nkj0oa .fui-CardFooter{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fey3rwa::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f5jhx11::after{border-right-color:Highlight;}.fff9uym::after{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fm7n0jy::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fpfvv3l:hover,.fpfvv3l :active{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1oamsm6:hover,.f1oamsm6 :active{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1il21bs:hover,.f1il21bs :active{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnn5dk0:hover .fui-CardPreview,.fnn5dk0 :active .fui-CardPreview,.fnn5dk0:hover .fui-CardFooter,.fnn5dk0 :active .fui-CardFooter{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}]],h:[".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}",".f1m145df:hover{box-shadow:var(--shadow8);}",".f1kz6goq:hover{background-color:var(--colorNeutralBackground1Selected);}",".f1uvynv3:hover{background-color:var(--colorNeutralBackground2Hover);}",".fehi0vp:hover{background-color:var(--colorNeutralBackground2Selected);}",".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".f1llr77y:hover::after{border-top-color:var(--colorNeutralStroke1Hover);}",".fzk0khw:hover::after{border-right-color:var(--colorNeutralStroke1Hover);}",".fjj8tog:hover::after{border-left-color:var(--colorNeutralStroke1Hover);}",".fb1u8ub:hover::after{border-bottom-color:var(--colorNeutralStroke1Hover);}",".fg59vm4:hover{background-color:var(--colorTransparentBackgroundSelected);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".f1uqaxdt:hover{background-color:var(--colorSubtleBackgroundSelected);}"],a:[".fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}",".f1yhgkbh:active{background-color:var(--colorNeutralBackground2Pressed);}",".fophhak:active{background-color:var(--colorTransparentBackgroundPressed);}",".f1uohb70:active::after{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1jm7v1n:active::after{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1bus3rq:active::after{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1fbu7rr:active::after{border-bottom-color:var(--colorNeutralStroke1Pressed);}",".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}"]}),LK=t=>{const e=qK(),r={horizontal:e.orientationHorizontal,vertical:e.orientationVertical},o={small:e.sizeSmall,medium:e.sizeMedium,large:e.sizeLarge},n={filled:e.filled,"filled-alternative":e.filledAlternative,outline:e.outline,subtle:e.subtle},i={filled:e.filledInteractiveSelected,"filled-alternative":e.filledAlternativeInteractiveSelected,outline:e.outlineInteractiveSelected,subtle:e.subtleInteractiveSelected},a={filled:e.filledInteractive,"filled-alternative":e.filledAlternativeInteractive,outline:e.outlineInteractive,subtle:e.subtleInteractive},s=t.interactive||t.selectable,l=y.useMemo(()=>t.selectable?t.selectFocused?e.selectableFocused:"":e.focused,[t.selectFocused,t.selectable,e.focused,e.selectableFocused]);return t.root.className=R(Jh.root,e.root,r[t.orientation],o[t.size],n[t.appearance],s&&a[t.appearance],t.selected&&i[t.appearance],l,s&&e.highContrastInteractive,t.selected&&e.highContrastSelected,t.root.className),t.floatingAction&&(t.floatingAction.className=R(Jh.floatingAction,e.select,t.floatingAction.className)),t.checkbox&&(t.checkbox.className=R(Jh.checkbox,e.hiddenCheckbox,t.checkbox.className)),t};function HK({selectableA11yProps:t}){return{selectableA11yProps:t}}const UK=y.forwardRef((t,e)=>{const r=NK(t,e),o=HK(r);return LK(r),PK(r,o)});UK.displayName="Card";const $K=(t,e)=>{const{action:r}=t;return{components:{root:"div",action:"div"},root:ee(me("div",{ref:e,...t}),{elementType:"div"}),action:he(r,{elementType:"div"})}},KK=t=>we(t.root,{children:[t.root.children,t.action&&P(t.action,{})]}),WK=y.forwardRef((t,e)=>{const r=$K(t,e);return FK(r),KK(r)});WK.displayName="CardFooter";function VK(t){function e(r){return y.isValidElement(r)&&!!r.props.id}return y.Children.toArray(t).find(e)}function GK(t,e,r){return t||(e?.props.id?e.props.id:r)}const XK=(t,e)=>{const{image:r,header:o,description:n,action:i}=t,{selectableA11yProps:{referenceId:a,setReferenceId:s}}=E5(),l=y.useRef(null),c=y.useRef(!1),u=Bt(da.header,a),d=he(o,{renderByDefault:!0,defaultProps:{ref:l,id:c.current?void 0:a},elementType:"div"});return y.useEffect(()=>{var f;const h=c.current||(f=l.current)===null||f===void 0?void 0:f.id,g=VK(d?.children);c.current=!!g,s(GK(h,g,u))},[u,o,d,s]),{components:{root:"div",image:"div",header:"div",description:"div",action:"div"},root:ee(me("div",{ref:e,...t}),{elementType:"div"}),image:he(r,{elementType:"div"}),header:d,description:he(n,{elementType:"div"}),action:he(i,{elementType:"div"})}},YK=t=>we(t.root,{children:[t.image&&P(t.image,{}),P(t.header,{}),t.description&&P(t.description,{}),t.action&&P(t.action,{})]}),ZK=y.forwardRef((t,e)=>{const r=XK(t,e);return jK(r),YK(r)});ZK.displayName="CardHeader";const QK=(t,e)=>{const{logo:r}=t,{selectableA11yProps:{referenceLabel:o,referenceId:n,setReferenceLabel:i,setReferenceId:a}}=E5(),s=Be(e,y.useRef(null));return y.useEffect(()=>{if(!(o&&n)&&s.current&&s.current.parentNode){const l=s.current.parentNode.querySelector(`.${om.root} > img`);if(l){const c=l.getAttribute("aria-label"),u=l.getAttribute("aria-describedby");u?a(u):l.alt?i(l.alt):c&&i(c)}}},[i,o,s,n,a]),{components:{root:"div",logo:"div"},root:ee(me("div",{ref:s,...t}),{elementType:"div"}),logo:he(r,{elementType:"div"})}},JK=t=>we(t.root,{children:[t.root.children,t.logo&&P(t.logo,{})]}),eW=y.forwardRef((t,e)=>{const r=QK(t,e);return MK(r),JK(r)});eW.displayName="CardPreview";const zr={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"},Mr={bottom:"bottom",bottomEnd:"bottom-end",bottomStart:"bottom-start",top:"top",topEnd:"top-end",topStart:"top-start"};let tW=0;function rW(t,e={},r){var o;const n={...e,content:t,toastId:(o=e.toastId)!==null&&o!==void 0?o:(tW++).toString()},i=new CustomEvent(zr.show,{bubbles:!1,cancelable:!1,detail:n});r.dispatchEvent(i)}function oW(t,e=void 0,r){const o=new CustomEvent(zr.dismiss,{bubbles:!1,cancelable:!1,detail:{toastId:t,toasterId:e}});r.dispatchEvent(o)}function nW(t=void 0,e){const r=new CustomEvent(zr.dismissAll,{bubbles:!1,cancelable:!1,detail:{toasterId:t}});e.dispatchEvent(r)}function iW(t,e){const r=new CustomEvent(zr.update,{bubbles:!1,cancelable:!1,detail:t});e.dispatchEvent(r)}function aW(t,e=void 0,r){const o=new CustomEvent(zr.pause,{bubbles:!1,cancelable:!1,detail:{toastId:t,toasterId:e}});r.dispatchEvent(o)}function sW(t,e=void 0,r){const o=new CustomEvent(zr.play,{bubbles:!1,cancelable:!1,detail:{toastId:t,toasterId:e}});r.dispatchEvent(o)}function Vw(t,e){for(const[r,o]of Object.entries(e))o!=null&&(t[r]=o)}const lW={onStatusChange:void 0,priority:0,pauseOnHover:!1,pauseOnWindowBlur:!1,position:"bottom-end",timeout:3e3};let cW=0;function uW(t){const{limit:e=Number.POSITIVE_INFINITY}=t,r=new Set,o=new Map,n=Tx((u,d)=>{const f=o.get(u),h=o.get(d);return!f||!h?0:f.priority===h.priority?f.order-h.order:f.priority-h.priority});return{buildToast:(u,d)=>{var f;const{toastId:h,content:g,toasterId:m}=u;if(o.has(h))return;const p={...lW,close:()=>{var b;const k=o.get(h);k&&(r.delete(h),d(),(b=k.onStatusChange)===null||b===void 0||b.call(k,null,{status:"dismissed",...k}))},remove:()=>{if(o.get(h)){if(o.delete(h),r.size=e?n.enqueue(h):r.add(h)},dismissAllToasts:()=>{r.clear(),n.clear()},dismissToast:u=>{r.delete(u)},isToastVisible:u=>r.has(u),updateToast:u=>{const{toastId:d}=u,f=o.get(d);f&&(Object.assign(f,u),f.updateId++)},visibleToasts:r,toasts:o}}const ra=(t,e,r)=>{const o={};var n;const i=r?dW(r)?r:(n=r[t])!==null&&n!==void 0?n:{}:{},a=t==="top"||t==="bottom",{horizontal:s=a?0:20,vertical:l=16}=i,c=e==="ltr"?"left":"right",u=e==="ltr"?"right":"left";switch(t){case"top":Object.assign(o,{top:l,left:`calc(50% + ${s}px)`,transform:"translateX(-50%)"});break;case"bottom":Object.assign(o,{bottom:l,left:`calc(50% + ${s}px)`,transform:"translateX(-50%)"});break;case"top-start":Object.assign(o,{top:l,[c]:s});break;case"top-end":Object.assign(o,{top:l,[u]:s});break;case"bottom-start":Object.assign(o,{bottom:l,[c]:s});break;case"bottom-end":Object.assign(o,{bottom:l,[u]:s});break}return o};function dW(t){return"horizontal"in t||"vertical"in t}function fW(t={}){const e=sN(),{toasterId:r,shortcuts:o}=t,[n]=y.useState(()=>uW(t)),{targetDocument:i}=Ae(),a=y.useRef(null),s=Q(m=>m===r),l=Q(m=>{if(o?.focus)return o.focus(m)}),c=y.useCallback(()=>{n.visibleToasts.forEach(m=>{var w;const v=n.toasts.get(m);v==null||(w=v.imperativeRef.current)===null||w===void 0||w.pause()})},[n]),u=y.useCallback(()=>{n.visibleToasts.forEach(m=>{var w;const v=n.toasts.get(m);v==null||(w=v.imperativeRef.current)===null||w===void 0||w.play()})},[n]),d=y.useCallback(()=>Array.from(n.visibleToasts).reduce((m,w)=>{const v=n.toasts.get(w);return v&&(!m||m.order{const m=d();if(m?.imperativeRef.current)m.imperativeRef.current.focus();else{var w;(w=a.current)===null||w===void 0||w.focus(),a.current=null}},[d]),h=y.useCallback(()=>{n.visibleToasts.forEach(m=>{const w=n.toasts.get(m);w?.close()}),f()},[n,f]);y.useEffect(()=>{if(!i)return;const m=(H,q)=>{const N=M=>{s(M.detail.toasterId)&&(q(M),e())};return i.addEventListener(H,N),()=>i.removeEventListener(H,N)},w=H=>{n.buildToast(H.detail,e)},v=H=>{n.dismissToast(H.detail.toastId)},p=H=>{n.updateToast(H.detail)},b=H=>{n.dismissAllToasts()},k=H=>{const q=n.toasts.get(H.detail.toastId);if(q){var N;(N=q.imperativeRef.current)===null||N===void 0||N.pause()}},x=H=>{const q=n.toasts.get(H.detail.toastId);if(q){var N;(N=q.imperativeRef.current)===null||N===void 0||N.play()}},S=m(zr.show,w),_=m(zr.update,p),C=m(zr.dismiss,v),T=m(zr.dismissAll,b),E=m(zr.pause,k),O=m(zr.play,x),I=H=>{if(l(H)){c();const N=d();if(N){var q;a.current=Ve(i.activeElement)?i.activeElement:null,(q=N.imperativeRef.current)===null||q===void 0||q.focus()}}};return i.addEventListener("keydown",I),()=>{S(),T(),_(),C(),E(),O(),i.removeEventListener("keydown",I)}},[n,e,i,s,c,d,l]);const g=(()=>{if(!n)return new Map;const m=new Map;return Array.from(n.toasts.values()).forEach(v=>{const{position:p}=v;m.has(p)||m.set(p,[]),p.startsWith("bottom")?m.get(p).push(v):m.get(p).unshift(v)}),m})();return{isToastVisible:n.isToastVisible,toastsToRender:g,pauseAllToasts:c,playAllToasts:u,tryRestoreFocus:f,closeAllToasts:h}}const oa=()=>{};function gee(t){const{targetDocument:e}=Ae();return y.useMemo(()=>e?{dispatchToast:(r,o)=>{rW(r,{...o,toasterId:t,data:{root:o?.root}},e)},dismissToast:r=>{oW(r,t,e)},dismissAllToasts:()=>{nW(t,e)},updateToast:r=>{iW({...r,data:{root:r.root},toasterId:t},e)},pauseToast:r=>{aW(r,t,e)},playToast:r=>{sW(r,t,e)}}:{dispatchToast:oa,dismissToast:oa,dismissAllToasts:oa,updateToast:oa,pauseToast:oa,playToast:oa},[e,t])}const hW={close:()=>null,intent:void 0,bodyId:"",titleId:""},B5=y.createContext(void 0),gW=B5.Provider,I5=()=>{var t;return(t=y.useContext(B5))!==null&&t!==void 0?t:hW},pW=ge("r16zaflb","r75casi",[".r16zaflb{animation-name:rsacmq1;}","@keyframes rsacmq1{from{opacity:0;}to{opacity:0;}}",".r75casi{animation-name:rsacmq1;}"]),nm=y.forwardRef((t,e)=>{const r=pW(),{running:o,timeout:n,onTimeout:i}=t,a={animationDuration:`${n}ms`,animationPlayState:o?"running":"paused"};return n<0?null:y.createElement("span",{onAnimationEnd:i,"data-timer-status":a.animationPlayState,ref:e,style:a,className:r})});nm.displayName="Timer";const mW={success:"assertive",warning:"assertive",error:"assertive",info:"polite"},vW=(t,e)=>{const{visible:r,children:o,close:n,remove:i,updateId:a,announce:s,data:l,timeout:c,politeness:u,intent:d="info",pauseOnHover:f,pauseOnWindowBlur:h,imperativeRef:g,tryRestoreFocus:m,...w}=t,v=Bt("toast-title"),p=Bt("toast-body"),b=y.useRef(null),{targetDocument:k}=Ae(),[x,S]=y.useState(!1),_=y.useRef(!1),C=y.useRef(!1),T=uc({tabBehavior:"limited-trap-focus",ignoreDefaultKeydown:{Tab:!0,Escape:!0,Enter:!0}}),E=Q(()=>{var L;const G=k?.activeElement;G&&(!((L=b.current)===null||L===void 0)&&L.contains(G))&&(C.current=!0),n()}),O=Q(L=>{var G;return(G=t.onStatusChange)===null||G===void 0?void 0:G.call(t,null,{status:L,...t})}),I=Q(()=>S(!1)),H=Q(()=>{var L;if(_.current)return;var G;const Z=!!(!((L=b.current)===null||L===void 0)&&L.contains((G=k?.activeElement)!==null&&G!==void 0?G:null));if(c<0){S(!0);return}Z||S(!0)});y.useImperativeHandle(g,()=>({focus:()=>{b.current&&b.current.focus()},play:()=>{_.current=!1,H()},pause:()=>{_.current=!0,I()}})),y.useEffect(()=>()=>O("unmounted"),[O]),y.useEffect(()=>{if(k&&h){var L,G;return(L=k.defaultView)===null||L===void 0||L.addEventListener("focus",H),(G=k.defaultView)===null||G===void 0||G.addEventListener("blur",I),()=>{var Z,ce;(Z=k.defaultView)===null||Z===void 0||Z.removeEventListener("focus",H),(ce=k.defaultView)===null||ce===void 0||ce.removeEventListener("blur",I)}}},[k,I,H,h]);const q=()=>{if(!b.current)return;const L=b.current;L.style.setProperty("--fui-toast-height",`${L.scrollHeight}px`)},N=l.root,M=y.useCallback(L=>{L&&b.current&&b.current.addEventListener("animationend",()=>{H(),O("visible")},{once:!0})},[H,O]),W=Q(L=>{var G;I(),N==null||(G=N.onMouseEnter)===null||G===void 0||G.call(N,L)}),B=Q(L=>{var G;H(),N==null||(G=N.onMouseEnter)===null||G===void 0||G.call(N,L)}),{findFirstFocusable:D,findLastFocusable:U}=No(),z=Q(L=>{var G;if(L.key===l8&&(L.preventDefault(),E()),L.key===$v&&L.currentTarget===L.target)if(L.preventDefault(),L.shiftKey){var Z;(Z=U(L.currentTarget))===null||Z===void 0||Z.focus()}else{var ce;(ce=D(L.currentTarget))===null||ce===void 0||ce.focus()}N==null||(G=N.onKeyDown)===null||G===void 0||G.call(N,L)});return y.useEffect(()=>{var L;if(!r)return;const G=u??mW[d];var Z;s((Z=(L=b.current)===null||L===void 0?void 0:L.textContent)!==null&&Z!==void 0?Z:"",{politeness:G})},[s,u,b,r,a,d]),y.useEffect(()=>()=>{C.current&&(C.current=!1,m())},[m]),{components:{timer:nm,root:"div"},timer:ee({key:a,onTimeout:E,running:x,timeout:c??-1},{elementType:nm}),root:ee(me("div",{ref:Be(e,b,M),children:o,tabIndex:0,role:"listitem","aria-labelledby":v,"aria-describedby":p,...w,...N,...T,onMouseEnter:W,onMouseLeave:B,onKeyDown:z}),{elementType:"div"}),timerTimeout:c,transitionTimeout:500,running:x,visible:r,remove:i,close:E,onTransitionEntering:q,updateId:a,nodeRef:b,intent:d,titleId:v,bodyId:p}},bW=(t,e)=>{const{onTransitionEntering:r,visible:o,transitionTimeout:n,remove:i,nodeRef:a}=t;return P(a5,{in:o,appear:!0,unmountOnExit:!0,timeout:n,onExited:i,onEntering:r,nodeRef:a,children:we(gW,{value:e.toast,children:[P(t.root,{}),P(t.timer,{})]})})},R5={root:"fui-ToastContainer",timer:"fui-ToastContainer__timer"},yW=ge("r1qaza64","r1e6dlul",[".r1qaza64{box-sizing:border-box;margin-top:16px;min-height:44px;pointer-events:all;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);--fui-toast-height:44px;}",".r1qaza64[data-fui-focus-visible]{outline-width:var(--strokeWidthThick);outline-style:solid;outline-color:var(--colorStrokeFocus2);}",".r1e6dlul{box-sizing:border-box;margin-top:16px;min-height:44px;pointer-events:all;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);--fui-toast-height:44px;}",".r1e6dlul[data-fui-focus-visible]{outline-width:var(--strokeWidthThick);outline-style:solid;outline-color:var(--colorStrokeFocus2);}"]),wW=F({enter:{vin17d:"fayl5bc",m1gqa9:"f17oyct0",Bv12yb3:"fvv8lvk"},exit:{vin17d:"f1tk3cza",m1gqa9:"f1nx6yy9",Bv12yb3:"f9wuypy"}},{d:[".fayl5bc{animation-duration:200ms,400ms;}",".f17oyct0{animation-delay:0ms,200ms;}",".fvv8lvk{animation-name:f1rp83na,f5j8bii;}",".f1tk3cza{animation-duration:400ms,200ms;}",".f1nx6yy9{animation-delay:0ms,400ms;}",".f9wuypy{animation-name:fk0lfw7,f1n32sdh;}"],k:["@keyframes f1rp83na{from{max-height:0;opacity:0;margin-top:0;}to{margin-top:16px;opacity:0;max-height:var(--fui-toast-height);}}","@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}","@keyframes fk0lfw7{from{opacity:1;}to{opacity:0;}}","@keyframes f1n32sdh{from{opacity:0;}to{opacity:0;margin-top:0;max-height:0;}}"]}),kW=t=>{const e=yW(),r=wW();return t.root.className=R(R5.root,e,t.visible?r.enter:r.exit,t.root.className),t};function SW(t){const{close:e,intent:r,titleId:o,bodyId:n}=t;return{toast:y.useMemo(()=>({close:e,intent:r,titleId:o,bodyId:n}),[e,r,o,n])}}const A5=y.forwardRef((t,e)=>{const r=vW(t,e);return kW(r),bW(r,SW(r))});A5.displayName="ToastContainer";const Gw=()=>{};function _W(t,e){const{targetDocument:r}=Ae(),o=y.useRef(Gw);return y.useCallback(n=>{if(!n||!r){o.current(),o.current=Gw;return}const i=r.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode(c){return Ve(c)&&c.classList.contains(R5.root)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}}),a=c=>{const{target:u,key:d}=c;if(Ve(u)){if(d===Qa){i.currentNode=u;let f=i.nextNode();f||(i.currentNode=n,f=i.nextNode()),Ve(f)&&f.focus()}if(d===Ia){i.currentNode=u;let f=i.previousNode();f&&f.contains(u)&&(f=i.previousNode()),f||(i.currentNode=n,f=i.lastChild()),Ve(f)&&f.focus()}}},s=c=>{Ve(c.currentTarget)&&!c.currentTarget.contains(Ve(c.relatedTarget)?c.relatedTarget:null)&&t()},l=c=>{Ve(c.currentTarget)&&!c.currentTarget.contains(Ve(c.relatedTarget)?c.relatedTarget:null)&&e()};n.addEventListener("keydown",a),n.addEventListener("focusin",s),n.addEventListener("focusout",l),o.current=()=>{n.removeEventListener("keydown",a),n.removeEventListener("focusin",s),n.removeEventListener("focusout",l)}},[r,t,e])}function xW(t){const e=y.useRef(!0),r=y.useRef(()=>{}),o=y.useCallback((i,a)=>{e.current&&t(i,a)},[t]),n=y.useCallback(i=>{if(!i){r.current();return}const a=l=>{Ve(l.currentTarget)&&l.currentTarget.contains(Ve(l.relatedTarget)?l.relatedTarget:null)||(e.current=!1)},s=l=>{Ve(l.currentTarget)&&l.currentTarget.contains(Ve(l.relatedTarget)?l.relatedTarget:null)||(e.current=!0)};i.addEventListener("focusin",a),i.addEventListener("focusout",s),r.current=()=>{i.removeEventListener("focusin",a),i.removeEventListener("focusout",s)}},[]);return{announceToast:o,toasterRef:n}}const CW=t=>{const{offset:e,announce:r,mountNode:o,inline:n=!1,...i}=t,a=y.useRef(()=>null),{toastsToRender:s,isToastVisible:l,pauseAllToasts:c,playAllToasts:u,tryRestoreFocus:d,closeAllToasts:f}=fW(i),h=y.useCallback((b,k)=>a.current(b,k),[]),{dir:g}=Ae(),m=ee(me("div",i),{elementType:"div"}),w=uc({tabBehavior:"limited-trap-focus",ignoreDefaultKeydown:{Escape:!0}}),v=Q(b=>{var k;b.key===Po&&(b.preventDefault(),f()),(k=t.onKeyDown)===null||k===void 0||k.call(t,b)}),p=b=>{var k;const x=_W(c,u),{announceToast:S,toasterRef:_}=xW(r??h);return he(s.has(b)?m:null,{defaultProps:{ref:Be(x,_),children:(k=s.get(b))===null||k===void 0?void 0:k.map(C=>y.createElement(A5,{...C,tryRestoreFocus:d,intent:C.intent,announce:S,key:C.toastId,visible:l(C.toastId)},C.content)),onKeyDown:v,...w,"data-toaster-position":b,role:"list"},elementType:"div"})};return{dir:g,mountNode:o,components:{root:"div",bottomStart:"div",bottomEnd:"div",topStart:"div",topEnd:"div",top:"div",bottom:"div"},root:ee(m,{elementType:"div"}),bottomStart:p(Mr.bottomStart),bottomEnd:p(Mr.bottomEnd),topStart:p(Mr.topStart),topEnd:p(Mr.topEnd),top:p(Mr.top),bottom:p(Mr.bottom),announceRef:a,offset:e,announce:r??h,renderAriaLive:!r,inline:n}},TW=500,EW=t=>{const[e,r]=y.useState(void 0),o=y.useRef(0),[n]=y.useState(()=>Tx((l,c)=>l.politeness===c.politeness?l.createdAt-c.createdAt:l.politeness==="assertive"?-1:1)),i=Q((l,c)=>{const{politeness:u}=c;if(l===e?.message)return;const d={message:l,politeness:u,createdAt:o.current++};e?n.enqueue(d):r(d)});y.useEffect(()=>{const l=setTimeout(()=>{n.peek()?r(n.dequeue()):r(void 0)},TW);return()=>clearTimeout(l)},[e,n]),y.useImperativeHandle(t.announceRef,()=>i);const a=e?.politeness==="polite"?e.message:void 0,s=e?.politeness==="assertive"?e.message:void 0;return{components:{assertive:"div",polite:"div"},assertive:ee(t.assertive,{defaultProps:{"aria-live":"assertive",children:s},elementType:"div"}),polite:ee(t.polite,{defaultProps:{"aria-live":"polite",children:a},elementType:"div"})}},BW=t=>we(y.Fragment,{children:[P(t.assertive,{}),P(t.polite,{})]}),Xw={assertive:"fui-AriaLive__assertive",polite:"fui-AriaLive__polite"},IW=ge("rsuwu0d","r1m1grr4",[".rsuwu0d{clip:rect(0px, 0px, 0px, 0px);height:1px;margin-top:-1px;margin-right:-1px;margin-bottom:-1px;margin-left:-1px;overflow-x:hidden;overflow-y:hidden;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;width:1px;position:absolute;}",".r1m1grr4{clip:rect(0px, 0px, 0px, 0px);height:1px;margin-top:-1px;margin-left:-1px;margin-bottom:-1px;margin-right:-1px;overflow-x:hidden;overflow-y:hidden;padding-top:0px;padding-left:0px;padding-bottom:0px;padding-right:0px;width:1px;position:absolute;}"]),RW=t=>{const e=IW();return t.assertive.className=R(e,Xw.assertive,t.assertive.className),t.polite.className=R(e,Xw.polite,t.polite.className),t},N5=t=>{const e=EW(t);return RW(e),BW(e)};N5.displayName="AriaLive";const AW=t=>{const{announceRef:e,renderAriaLive:r,inline:o,mountNode:n}=t,i=!!t.bottomStart||!!t.bottomEnd||!!t.topStart||!!t.topEnd||!!t.top||!!t.bottom,a=r?P(N5,{announceRef:e}):null,s=we(y.Fragment,{children:[t.bottom?P(t.bottom,{}):null,t.bottomStart?P(t.bottomStart,{}):null,t.bottomEnd?P(t.bottomEnd,{}):null,t.topStart?P(t.topStart,{}):null,t.topEnd?P(t.topEnd,{}):null,t.top?P(t.top,{}):null]});return o?we(y.Fragment,{children:[a,i?s:null]}):we(y.Fragment,{children:[a,i?P(Xi,{mountNode:n,children:s}):null]})},NW={root:"fui-Toaster"},PW=ge("r3hfdjz",null,[".r3hfdjz{position:fixed;width:292px;pointer-events:none;}"]),zW=F({inline:{qhf8xq:"f1euv43f"}},{d:[".f1euv43f{position:absolute;}"]}),MW=t=>{const e=PW(),r=zW(),o=R(NW.root,e,t.inline&&r.inline,t.root.className);if(t.bottomStart){var n;t.bottomStart.className=o;var i;(i=(n=t.bottomStart).style)!==null&&i!==void 0||(n.style={}),Object.assign(t.bottomStart.style,ra(Mr.bottomStart,t.dir,t.offset))}if(t.bottomEnd){var a;t.bottomEnd.className=o;var s;(s=(a=t.bottomEnd).style)!==null&&s!==void 0||(a.style={}),Object.assign(t.bottomEnd.style,ra(Mr.bottomEnd,t.dir,t.offset))}if(t.topStart){var l;t.topStart.className=o;var c;(c=(l=t.topStart).style)!==null&&c!==void 0||(l.style={}),Object.assign(t.topStart.style,ra(Mr.topStart,t.dir,t.offset))}if(t.topEnd){var u;t.topEnd.className=o;var d;(d=(u=t.topEnd).style)!==null&&d!==void 0||(u.style={}),Object.assign(t.topEnd.style,ra(Mr.topEnd,t.dir,t.offset))}if(t.top){var f;t.top.className=o;var h;(h=(f=t.top).style)!==null&&h!==void 0||(f.style={}),Object.assign(t.top.style,ra(Mr.top,t.dir,t.offset))}if(t.bottom){var g;t.bottom.className=o;var m;(m=(g=t.bottom).style)!==null&&m!==void 0||(g.style={}),Object.assign(t.bottom.style,ra(Mr.bottom,t.dir,t.offset))}return t},OW=t=>{const e=CW(t);return MW(e),de("useToasterStyles_unstable")(e),AW(e)};OW.displayName="Toaster";const jW=(t,e)=>({components:{root:"div"},root:ee(me("div",{ref:e,...t}),{elementType:"div"}),backgroundAppearance:t.appearance}),DW=(t,e)=>P(kN,{value:e.backgroundAppearance,children:P(t.root,{})}),FW={root:"fui-Toast"},qW=ge("rzyoxeq","r1lipnsg",[".rzyoxeq{display:grid;grid-template-columns:auto 1fr auto;padding-top:12px;padding-right:12px;padding-bottom:12px;padding-left:12px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:var(--colorTransparentStroke);border-right-color:var(--colorTransparentStroke);border-bottom-color:var(--colorTransparentStroke);border-left-color:var(--colorTransparentStroke);box-shadow:var(--shadow8);font-size:var(--fontSizeBase300);line-height:20px;font-weight:var(--fontWeightSemibold);color:var(--colorNeutralForeground1);background-color:var(--colorNeutralBackground1);}",".r1lipnsg{display:grid;grid-template-columns:auto 1fr auto;padding-top:12px;padding-left:12px;padding-bottom:12px;padding-right:12px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-width:1px;border-left-width:1px;border-bottom-width:1px;border-right-width:1px;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-color:var(--colorTransparentStroke);border-left-color:var(--colorTransparentStroke);border-bottom-color:var(--colorTransparentStroke);border-right-color:var(--colorTransparentStroke);box-shadow:var(--shadow8);font-size:var(--fontSizeBase300);line-height:20px;font-weight:var(--fontWeightSemibold);color:var(--colorNeutralForeground1);background-color:var(--colorNeutralBackground1);}"]),LW=F({inverted:{sj55zd:"f1w7i9ko",De3pzq:"f5pduvr"}},{d:[".f1w7i9ko{color:var(--colorNeutralForegroundInverted2);}",".f5pduvr{background-color:var(--colorNeutralBackgroundInverted);}"]}),HW=t=>{const e=qW(),r=LW();return t.root.className=R(FW.root,e,t.backgroundAppearance==="inverted"&&r.inverted,t.root.className),t};function UW(t){const{backgroundAppearance:e}=t;return{backgroundAppearance:e}}const $W=y.forwardRef((t,e)=>{const r=jW(t,e);return HW(r),DW(r,UW(r))});$W.displayName="Toast";const KW=(t,e)=>{const{intent:r,titleId:o}=I5(),n=Mv();let i;switch(r){case"success":i=y.createElement($N,null);break;case"error":i=y.createElement(ZN,null);break;case"warning":i=y.createElement(eP,null);break;case"info":i=y.createElement(QN,null);break}return{action:he(t.action,{elementType:"div"}),components:{root:"div",media:"div",action:"div"},media:he(t.media,{renderByDefault:!!r,defaultProps:{children:i},elementType:"div"}),root:ee(me("div",{ref:e,children:t.children,id:o,...t}),{elementType:"div"}),intent:r,backgroundAppearance:n}},WW=t=>we(y.Fragment,{children:[t.media?P(t.media,{}):null,P(t.root,{}),t.action?P(t.action,{}):null]}),eg={root:"fui-ToastTitle",media:"fui-ToastTitle__media",action:"fui-ToastTitle__action"},VW=ge("rdjap1e",null,[".rdjap1e{display:flex;grid-column-end:3;color:var(--colorNeutralForeground1);word-break:break-word;}"]),GW=ge("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);}"]),XW=ge("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);}"]),YW=F({root:{sj55zd:"f1w7i9ko"},action:{sj55zd:"f1qz2gb0"},media:{sj55zd:"fqpbvvt"}},{d:[".f1w7i9ko{color:var(--colorNeutralForegroundInverted2);}",".f1qz2gb0{color:var(--colorBrandForegroundInverted);}",".fqpbvvt{color:var(--colorNeutralForegroundInverted);}"]}),ZW=F({success:{sj55zd:"f1m7fhi8"},error:{sj55zd:"fg9gses"},warning:{sj55zd:"f1k5f75o"},info:{sj55zd:"fkfq4zb"}},{d:[".f1m7fhi8{color:var(--colorPaletteGreenForeground3);}",".fg9gses{color:var(--colorPaletteCranberryForeground2);}",".f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}",".fkfq4zb{color:var(--colorNeutralForeground2);}"]}),QW=F({success:{sj55zd:"f1pvjcpr"},error:{sj55zd:"fcrp5ll"},warning:{sj55zd:"f1r8f1cl"},info:{sj55zd:"f1w7i9ko"}},{d:[".f1pvjcpr{color:var(--colorPaletteGreenForegroundInverted);}",".fcrp5ll{color:var(--colorPaletteRedForegroundInverted);}",".f1r8f1cl{color:var(--colorPaletteYellowForegroundInverted);}",".f1w7i9ko{color:var(--colorNeutralForegroundInverted2);}"]}),JW=t=>{const e=VW(),r=XW(),o=GW(),n=ZW(),i=QW(),{intent:a}=t,s=YW();return t.root.className=R(eg.root,e,t.backgroundAppearance==="inverted"&&s.root,t.root.className),t.media&&(t.media.className=R(eg.media,o,t.backgroundAppearance==="inverted"&&s.media,t.media.className,a&&n[a],a&&t.backgroundAppearance==="inverted"&&i[a])),t.action&&(t.action.className=R(eg.action,r,t.backgroundAppearance==="inverted"&&s.action,t.action.className)),t},eV=y.forwardRef((t,e)=>{const r=KW(t,e);return JW(r),WW(r)});eV.displayName="ToastTitle";const tV=(t,e)=>{const r=Mv(),{bodyId:o}=I5();return{components:{root:"div",subtitle:"div"},subtitle:he(t.subtitle,{elementType:"div"}),root:ee(me("div",{ref:e,id:o,...t}),{elementType:"div"}),backgroundAppearance:r}},rV=t=>we(y.Fragment,{children:[P(t.root,{}),t.subtitle?P(t.subtitle,{}):null]}),Yw={root:"fui-ToastBody",subtitle:"fui-ToastBody__subtitle"},oV=ge("rciajo9",null,[".rciajo9{grid-column-start:2;grid-column-end:3;padding-top:6px;font-size:var(--fontSizeBase300);line-height:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);color:var(--colorNeutralForeground1);word-break:break-word;}"]),nV=ge("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);}"]),iV=F({root:{sj55zd:"f1w7i9ko"},subtitle:{sj55zd:"f1w7i9ko"}},{d:[".f1w7i9ko{color:var(--colorNeutralForegroundInverted2);}"]}),aV=t=>{const e=oV(),r=nV(),o=iV();return t.root.className=R(Yw.root,e,t.backgroundAppearance==="inverted"&&o.root,t.root.className),t.subtitle&&(t.subtitle.className=R(Yw.subtitle,r,t.backgroundAppearance==="inverted"&&o.subtitle,t.subtitle.className)),t},sV=y.forwardRef((t,e)=>{const r=tV(t,e);return aV(r),rV(r)});sV.displayName="ToastBody";const lV=()=>{var t;const e=Ae(),r=y.useRef(!1),o=Zn()&&((t=e.targetDocument)===null||t===void 0?void 0:t.defaultView),n=y.useCallback(i=>{r.current=i.matches},[]);return Jt(()=>{if(!o||!o.matchMedia)return;const i=o.matchMedia("screen and (prefers-reduced-motion: reduce)");return i.matches&&(r.current=!0),i.addEventListener("change",n),()=>i.removeEventListener("change",n)},[n,o]),r.current},cV=t=>P5(t)?t.computedStyleMap():uV(t),P5=t=>!!(typeof CSS<"u"&&CSS.number&&t.computedStyleMap),uV=t=>{var e,r;const o=Zn()&&((r=(e=t.ownerDocument)===null||e===void 0?void 0:e.defaultView)!==null&&r!==void 0?r:window);return o?o.getComputedStyle(t,null):{getPropertyValue:n=>""}};function Zw(t){const e=t.trim();if(e.includes("auto"))return 0;if(e.endsWith("ms")){const r=Number(e.replace("ms",""));return isNaN(r)?0:r}return Number(e.slice(0,-1).replace(",","."))*1e3}const dV=(t,e)=>{const r=t.getAll(e);return r.length>0?r.map(({value:o,unit:n})=>`${o}${n}`):["0"]},fV=(t,e)=>{const r=t.getPropertyValue(e);return r?r.split(","):["0"]},Qw=(t,e)=>{const r=Math.max(t.length,e.length),o=[];if(r===0)return 0;for(let n=0;n{const e=P5(t),r=cV(t),o=a=>e?dV(r,a):fV(r,a),n=Qw(o("transition-duration"),o("transition-delay")),i=Qw(o("animation-duration"),o("animation-delay"));return Math.max(n,i)},gV=t=>{const e=y.useRef(!0);return e.current&&t?(e.current=!1,!0):e.current};function pV(t,e={}){const{animateOnFirstMount:r,duration:o}={animateOnFirstMount:!1,...e},[n,i]=y.useState(t&&r?"entering":t?"idle":"unmounted"),[a,s]=y.useState(!r&&t),[l,c]=kl(),[u,d]=kl(),[f,h]=tN(),[g,m]=y.useState(null),w=lV(),v=gx(),p=gV(!!g),b=y.useRef(t).current,k=w||p&&b&&!r,x=y.useCallback(C=>{C&&m(C)},[]),S=y.useCallback(C=>(u(()=>f(C),0),()=>{d(),h()}),[h,d,f,u]),_=y.useCallback(()=>{i(t?"entered":"exited"),S(()=>i(t?"idle":"unmounted"))},[S,t]);return y.useEffect(()=>{if(!v){if(k){i(t?"idle":"unmounted"),s(t);return}if(i(t?"entering":"exiting"),!!g)return S(()=>{s(t),S(()=>{const C=o||hV(g);if(C===0){_();return}l(()=>_(),C)})}),()=>c()}},[g,k,_,t]),y.useMemo(()=>({ref:x,type:n,active:a,canRender:t||n!=="unmounted"}),[a,n,t])}function z5(t,e){const r=typeof t=="object",o=pV(r?!1:t,e);return r?t:o}const mV=F({reduced:{Hwfdqs:"f1bggi9a"}},{m:[["@media screen and (prefers-reduced-motion: reduce){.f1bggi9a{transition-duration:0.01ms!important;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]});const im=(t,e)=>{const{reduced:r}=mV(),o=y.useMemo(()=>!e.enter&&!e.exit?"":t.active||t.type==="idle"?e.enter:t.active?"":e.exit,[t.active,t.type,e.enter,e.exit]);return y.useEffect(()=>void 0,[e]),R(e.default,o,e[t.type],r)};function M5(t){const{open:e=!1,size:r="small",position:o="start"}=t;return{size:r,position:o,open:e}}const vV=ge("rivxbo","r1trjn1z",[".rivxbo{top:0px;right:0px;bottom:0px;left:0px;position:fixed;background-color:rgba(0, 0, 0, 0.4);}",".r1trjn1z{top:0px;left:0px;bottom:0px;right:0px;position:fixed;background-color:rgba(0, 0, 0, 0.4);}"]),bV=F({nested:{De3pzq:"f1c21dwh"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}"]}),yV=t=>{const e=vV(),r=bV();return t.backdrop&&(t.backdrop.className=R(e,t.isNestedDialog&&r.nested,t.backdrop.className)),t},am=y.forwardRef((t,e)=>{const r=c5(t,e),o=d5();return yV(r),u5(r,o)});am.displayName="OverlayDrawerSurface";const wV=(t,e)=>{const{open:r,size:o,position:n}=M5(t),{modalType:i="modal",inertTrapFocus:a,defaultOpen:s=!1,onOpenChange:l}=t,c=z5(r),u=Pv(t.backdrop),f=ee({...t,backdrop:i!=="non-modal"&&u!==null?{...u}:null},{elementType:am,defaultProps:{ref:Be(e,c.ref)}}),h=ee({open:!0,defaultOpen:s,onOpenChange:l,inertTrapFocus:a,modalType:i,children:null},{elementType:Zp});return{components:{root:am,dialog:Zp},root:f,dialog:h,size:o,position:n,motion:c}},kV=t=>t.motion.canRender?P(t.dialog,{children:P(t.root,{})}):null,SV=F({entering:{Bkqvd7p:"f18ad807"},exiting:{Bkqvd7p:"f1mfizis"},reducedMotion:{Hwfdqs:"f5e8c63"},start:{Bekrc4i:["f5tn483","f1ojsxk5"],vrafjx:["fcdblym","fjik90z"],h3c5rm:["f1gn591s","fjscplz"],oyh7mz:["f1vgc2s3","f1e31b4d"],j35jbq:["fvfyk4","frppm18"]},end:{ibv6hh:["f1ojsxk5","f5tn483"],wvpqe5:["fjik90z","fcdblym"],zhjwy3:["fjscplz","f1gn591s"],j35jbq:["f1e31b4d","f1vgc2s3"],oyh7mz:["frppm18","fvfyk4"]},bottom:{B5kzvoi:"f1yab3r1",Bhzewxz:"f198g47y"},small:{Bjr0ffy:"f1exhnwo"},medium:{Bjr0ffy:"fqofjzu"},large:{Bjr0ffy:"fce6y3m"},full:{Bjr0ffy:"fsdmzs6"}},{d:[".f18ad807{transition-timing-function:var(--curveDecelerateMid);}",".f1mfizis{transition-timing-function:var(--curveAccelerateMin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".fvfyk4{right:auto;}",".frppm18{left:auto;}",".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;}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f5e8c63{transition-duration:0.001ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]}),_V=F({small:{Bjr0ffy:"f1exhnwo"},medium:{Bjr0ffy:"fqofjzu"},large:{Bjr0ffy:"fce6y3m"},full:{Bjr0ffy:"fno8cgj"}},{d:[".f1exhnwo{--fui-Drawer--size:320px;}",".fqofjzu{--fui-Drawer--size:592px;}",".fce6y3m{--fui-Drawer--size:940px;}",".fno8cgj{--fui-Drawer--size:100vh;}"]}),O5=F({small:{B3o57yi:"fc397y7"},medium:{B3o57yi:"f78771"},large:{B3o57yi:"f9ymmep"},full:{B3o57yi:"f1loko9l"}},{d:[".fc397y7{transition-duration:var(--durationGentle);}",".f78771{transition-duration:var(--durationSlow);}",".f9ymmep{transition-duration:var(--durationSlower);}",".f1loko9l{transition-duration:var(--durationUltraSlow);}"]}),j5=({position:t,size:e,motion:r})=>{const o=SV(),n=_V(),i=O5();return R(o[t],t==="bottom"&&n[e],i[e],t!=="bottom"&&o[e],o.reducedMotion,r.type==="entering"&&o.entering,r.type==="exiting"&&o.exiting)},Jw={root:"fui-OverlayDrawer",backdrop:"fui-OverlayDrawer__backdrop"},xV=ge("r1vxc6jp","r1uky7bi",{r:[".r1vxc6jp{overflow-x:hidden;overflow-y: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;}",".r1vxc6jp:focus{outline-style:none;}",".r1vxc6jp:focus-visible{outline-style:none;}",".r1vxc6jp[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1vxc6jp[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:2px;border-right-width:2px;border-bottom-width:2px;border-left-width:2px;border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".r1uky7bi{overflow-x:hidden;overflow-y: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;}",".r1uky7bi:focus{outline-style:none;}",".r1uky7bi:focus-visible{outline-style:none;}",".r1uky7bi[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r1uky7bi[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:2px;border-left-width:2px;border-bottom-width:2px;border-right-width:2px;border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);border-top-color:var(--colorStrokeFocus2);border-left-color:var(--colorStrokeFocus2);border-bottom-color:var(--colorStrokeFocus2);border-right-color:var(--colorStrokeFocus2);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r1vxc6jp[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){.r1uky7bi[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),CV=F({start:{Bz10aip:"f1d8gkik"},end:{Bz10aip:"f1g0pcr8"},bottom:{Bz10aip:"fip488n",Bhzewxz:"f198g47y",Bqenvij:"fub80nq",a9b677:"fr97h3j"}},{d:[".f1d8gkik{transform:translate3D(calc(var(--fui-Drawer--size) * -1), 0, 0);}",".f1g0pcr8{transform:translate3D(calc(var(--fui-Drawer--size) * 1), 0, 0);}",".fip488n{transform:translate3D(0, calc(var(--fui-Drawer--size) * 1), 0);}",".f198g47y{top:auto;}",".fub80nq{height:var(--fui-Drawer--size);}",".fr97h3j{width:100vw;}"]}),TV=F({default:{abs64n:"fk73vx1",E5pizo:"ff88big",Bmy1vo4:"f1neo61",Es3by:"f1ytgekk"},enter:{abs64n:"f5p0z4x",Bz10aip:"f87uvqx",E5pizo:"f10nrhrw"}},{d:[".fk73vx1{opacity:0;}",".ff88big{box-shadow:0px var(--colorTransparentBackground);}",".f1neo61{transition-property:transform,box-shadow,opacity;}",".f1ytgekk{will-change:transform,box-shadow,opacity;}",".f5p0z4x{opacity:1;}",".f87uvqx{transform:translate3D(0, 0, 0);}",".f10nrhrw{box-shadow:var(--shadow64);}"]}),EV=F({default:{abs64n:"fk73vx1",Bmy1vo4:"f13u1uyl",Bkqvd7p:"f17wnm97",Es3by:"f1gqqdtu"},enter:{abs64n:"f5p0z4x"}},{d:[".fk73vx1{opacity:0;}",".f13u1uyl{transition-property:opacity;}",".f17wnm97{transition-timing-function:var(--curveEasyEase);}",".f1gqqdtu{will-change:opacity;}",".f5p0z4x{opacity:1;}"]}),BV=t=>{const e=j5(t),r=xV(),o=CV(),n=O5(),i=im(t.motion,TV()),a=im(t.motion,EV()),s=t.root.backdrop;return t.root.className=R(Jw.root,e,r,o[t.position],i,t.root.className),s&&(s.className=R(Jw.backdrop,a,n[t.size],s.className)),t},D5=y.forwardRef((t,e)=>{const r=wV(t,e);return BV(r),de("useDrawerOverlayStyles_unstable")(r),de("useOverlayDrawerStyles_unstable")(r),kV(r)});D5.displayName="OverlayDrawer";const IV=(t,e)=>{const{size:r,position:o,open:n}=M5(t),{separator:i=!1}=t,a=z5(n);return{components:{root:"div"},root:ee(me("div",{...t,ref:Be(e,a.ref)}),{elementType:"div"}),size:r,position:o,separator:i,motion:a}},RV=t=>t.motion.canRender?P(t.root,{}):null,AV={root:"fui-InlineDrawer"},NV=ge("r46ju4x",null,[".r46ju4x{overflow-x:hidden;overflow-y:hidden;width:var(--fui-Drawer--size);max-width:100vw;height:auto;max-height:100vh;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);position:relative;}"]),PV=F({separatorStart:{Bekrc4i:["f1hqa2wf","finvdd3"],vrafjx:["fcdblym","fjik90z"],h3c5rm:["fa8zu9y","f17e9lqh"]},separatorEnd:{ibv6hh:["finvdd3","f1hqa2wf"],wvpqe5:["fjik90z","fcdblym"],zhjwy3:["f17e9lqh","fa8zu9y"]},separatorBottom:{B4j52fo:"f5ogflp",icvyot:"fzkkow9",g2u3we:"fo8z57v"},start:{Bz10aip:"f1d8gkik"},end:{Bz10aip:"f1h1g6jt"},bottom:{Bz10aip:"f1rdfgt8",a9b677:"fly5x3f",Bqenvij:"fub80nq"}},{d:[".f1hqa2wf{border-right-width:1px;}",".finvdd3{border-left-width:1px;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fa8zu9y{border-right-color:var(--colorNeutralBackground3);}",".f17e9lqh{border-left-color:var(--colorNeutralBackground3);}",".f5ogflp{border-top-width:1px;}",".fzkkow9{border-top-style:solid;}",".fo8z57v{border-top-color:var(--colorNeutralBackground3);}",".f1d8gkik{transform:translate3D(calc(var(--fui-Drawer--size) * -1), 0, 0);}",".f1h1g6jt{transform:translate3D(var(--fui-Drawer--size), 0, 0);}",".f1rdfgt8{transform:translate3D(0, var(--fui-Drawer--size), 0);}",".fly5x3f{width:100%;}",".fub80nq{height:var(--fui-Drawer--size);}"]}),zV=F({default:{abs64n:"fk73vx1",Bmy1vo4:"f15rjlgw",Es3by:"f1blt7p"},enter:{abs64n:"f5p0z4x",Bz10aip:"f87uvqx"}},{d:[".fk73vx1{opacity:0;}",".f15rjlgw{transition-property:opacity,transform;}",".f1blt7p{will-change:opacity,transform;}",".f5p0z4x{opacity:1;}",".f87uvqx{transform:translate3D(0, 0, 0);}"]});function MV(t,e){if(t.separator)switch(t.position){case"start":return e.separatorStart;case"end":return e.separatorEnd;case"bottom":return e.separatorBottom;default:return}}const OV=t=>{const e=NV(),r=j5(t),o=PV(),n=im(t.motion,zV());return t.root.className=R(AV.root,e,r,MV(t,o),o[t.position],n,t.root.className),t},F5=y.forwardRef((t,e)=>{const r=IV(t,e);return OV(r),de("useDrawerInlineStyles_unstable")(r),de("useInlineDrawerStyles_unstable")(r),RV(r)});F5.displayName="InlineDrawer";const jV=(t,e)=>{const r=t.type==="inline"?F5:D5;return{components:{root:r},root:ee(Pv({ref:e,...t}),{elementType:r})}},DV=t=>P(t.root,{}),FV={root:"fui-Drawer"},qV=t=>(t.root.className=R(FV.root,t.root.className),t),LV=y.forwardRef((t,e)=>{const r=jV(t,e);return qV(r),de("useDrawerStyles_unstable")(r),DV(r)});LV.displayName="Drawer";const HV=(t,e)=>({components:{root:"div"},root:ee(me("div",{ref:e,...t}),{elementType:"div"})}),UV=t=>P(t.root,{}),$V={root:"fui-DrawerBody"},KV=ge("r10z3gsy","r1ppc5ap",[".r10z3gsy{margin-top:-1px;margin-right:0;margin-bottom:-1px;margin-left:0;padding-top:1px;padding-right:var(--spacingHorizontalXXL);padding-bottom:1px;padding-left:var(--spacingHorizontalXXL);overflow-x:auto;overflow-y:auto;flex-grow:1;flex-shrink:1;flex-basis:0;align-self:stretch;background-image:linear-gradient(to top, var(--colorNeutralBackground1), var(--colorNeutralBackground1)),linear-gradient(to top, var(--colorNeutralBackground1), var(--colorNeutralBackground1)),linear-gradient(to top, var(--colorNeutralStroke1), var(--colorNeutralBackground1)),linear-gradient(to bottom, var(--colorNeutralStroke1), var(--colorNeutralBackground1));-webkit-background-position:bottom center,top center,bottom center,top center;background-position:bottom center,top center,bottom center,top center;background-repeat:no-repeat;background-color:var(--colorNeutralBackground1);background-size:100% 2px,100% 2px,100% 1px,100% 1px;background-attachment:local,local,scroll,scroll;}",".r10z3gsy:last-child{padding-bottom:calc(var(--spacingHorizontalXXL) + 1px);}",".r10z3gsy:first-child{padding-top:calc(var(--spacingHorizontalXXL) + 1px);}",".r1ppc5ap{margin-top:-1px;margin-left:0;margin-bottom:-1px;margin-right:0;padding-top:1px;padding-left:var(--spacingHorizontalXXL);padding-bottom:1px;padding-right:var(--spacingHorizontalXXL);overflow-x:auto;overflow-y:auto;flex-grow:1;flex-shrink:1;flex-basis:0;align-self:stretch;background-image:linear-gradient(to top, var(--colorNeutralBackground1), var(--colorNeutralBackground1)),linear-gradient(to top, var(--colorNeutralBackground1), var(--colorNeutralBackground1)),linear-gradient(to top, var(--colorNeutralStroke1), var(--colorNeutralBackground1)),linear-gradient(to bottom, var(--colorNeutralStroke1), var(--colorNeutralBackground1));-webkit-background-position:bottom center,top center,bottom center,top center;background-position:bottom center,top center,bottom center,top center;background-repeat:no-repeat;background-color:var(--colorNeutralBackground1);background-size:100% 2px,100% 2px,100% 1px,100% 1px;background-attachment:local,local,scroll,scroll;}",".r1ppc5ap:last-child{padding-bottom:calc(var(--spacingHorizontalXXL) + 1px);}",".r1ppc5ap:first-child{padding-top:calc(var(--spacingHorizontalXXL) + 1px);}"]),WV=t=>{const e=KV();return t.root.className=R($V.root,e,t.root.className),t},VV=y.forwardRef((t,e)=>{const r=HV(t,e);return WV(r),de("useDrawerBodyStyles_unstable")(r),UV(r)});VV.displayName="DrawerBody";const GV=(t,e)=>({components:{root:"header"},root:ee(me("header",{ref:e,...t}),{elementType:"header"})}),XV=t=>P(t.root,{}),YV={root:"fui-DrawerHeader"},ZV=ge("rh4hr5f","r116c7xc",[".rh4hr5f{padding-top:var(--spacingVerticalXXL);padding-right:var(--spacingHorizontalXXL);padding-bottom:var(--spacingVerticalS);padding-left:var(--spacingHorizontalXXL);column-gap:var(--spacingHorizontalS);row-gap:var(--spacingHorizontalS);width:100%;max-width:100%;align-self:stretch;display:flex;flex-direction:column;box-sizing:border-box;}",".r116c7xc{padding-top:var(--spacingVerticalXXL);padding-left:var(--spacingHorizontalXXL);padding-bottom:var(--spacingVerticalS);padding-right:var(--spacingHorizontalXXL);column-gap:var(--spacingHorizontalS);row-gap:var(--spacingHorizontalS);width:100%;max-width:100%;align-self:stretch;display:flex;flex-direction:column;box-sizing:border-box;}"]),QV=t=>{const e=ZV();return t.root.className=R(YV.root,e,t.root.className),t},JV=y.forwardRef((t,e)=>{const r=GV(t,e);return QV(r),de("useDrawerHeaderStyles_unstable")(r),XV(r)});JV.displayName="DrawerHeader";const eG=(t,e)=>{const{children:r,heading:o}=t,n=wo(i=>i.dialogTitleId);return{components:{root:"div",heading:"h2",action:"div"},root:ee(me("div",{ref:e,...t}),{elementType:"div"}),heading:he(o,{defaultProps:{id:n,children:r},renderByDefault:!0,elementType:"h2"}),action:he(t.action,{elementType:"div"})}},tG=t=>we(t.root,{children:[t.heading&&P(t.heading,{}),t.action&&P(t.action,{})]}),tg={root:"fui-DrawerHeaderTitle",heading:"fui-DrawerHeaderTitle__heading",action:"fui-DrawerHeaderTitle__action"},rG=F({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);}"]}),oG=t=>{const e=rG(),{heading:r={},action:o,components:n}=t;return l5({components:{root:n.heading,action:n.action},root:r,action:o}),t.root.className=R(tg.root,e.root,t.root.className),t.heading&&(t.heading.className=R(tg.heading,t.heading.className)),t.action&&(t.action.className=R(tg.action,e.action,t.action.className)),t},nG=y.forwardRef((t,e)=>{const r=eG(t,e);return oG(r),de("useDrawerHeaderTitleStyles_unstable")(r),tG(r)});nG.displayName="DrawerHeaderTitle";var ek={},tk=$1;ek.createRoot=tk.createRoot,ek.hydrateRoot=tk.hydrateRoot;var iG=function(t){return function(e,r){var o=y.useRef(!1);t(function(){return function(){o.current=!1}},[]),t(function(){if(!o.current)o.current=!0;else return e()},r)}},sm=function(t,e){return sm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(r[n]=o[n])},sm(t,e)};function Hf(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");sm(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Jr=function(){return Jr=Object.assign||function(e){for(var r,o=1,n=arguments.length;o0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function lt(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var o=r.call(t),n,i=[],a;try{for(;(e===void 0||e-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(s){a={error:s}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i}function pt(t,e,r){if(r||arguments.length===2)for(var o=0,n=e.length,i;o-1&&(n=setTimeout(function(){Ou.delete(t)},e)),Ou.set(t,Jr(Jr({},r),{timer:n}))},cG=function(t){return Ou.get(t)},ju=new Map,uG=function(t){return ju.get(t)},dG=function(t,e){ju.set(t,e),e.then(function(r){return ju.delete(t),r}).catch(function(){ju.delete(t)})},hi={},fG=function(t,e){hi[t]&&hi[t].forEach(function(r){return r(e)})},rg=function(t,e){return hi[t]||(hi[t]=[]),hi[t].push(e),function(){var o=hi[t].indexOf(e);hi[t].splice(o,1)}},hG=function(t,e){var r=e.cacheKey,o=e.cacheTime,n=o===void 0?5*60*1e3:o,i=e.staleTime,a=i===void 0?0:i,s=e.setCache,l=e.getCache,c=y.useRef(),u=y.useRef(),d=function(h,g){s?s(g):lG(h,n,g),fG(h,g.data)},f=function(h,g){return g===void 0&&(g=[]),l?l(g):cG(h)};return K5(function(){if(r){var h=f(r);h&&Object.hasOwnProperty.call(h,"data")&&(t.state.data=h.data,t.state.params=h.params,(a===-1||new Date().getTime()-h.time<=a)&&(t.state.loading=!1)),c.current=rg(r,function(g){t.setState({data:g})})}},[]),Uf(function(){var h;(h=c.current)===null||h===void 0||h.call(c)}),r?{onBefore:function(h){var g=f(r,h);return!g||!Object.hasOwnProperty.call(g,"data")?{}:a===-1||new Date().getTime()-g.time<=a?{loading:!1,data:g?.data,error:void 0,returnNow:!0}:{data:g?.data,error:void 0}},onRequest:function(h,g){var m=uG(r);return m&&m!==u.current?{servicePromise:m}:(m=h.apply(void 0,pt([],lt(g),!1)),u.current=m,dG(r,m),{servicePromise:m})},onSuccess:function(h,g){var m;r&&((m=c.current)===null||m===void 0||m.call(c),d(r,{data:h,params:g,time:new Date().getTime()}),c.current=rg(r,function(w){t.setState({data:w})}))},onMutate:function(h){var g;r&&((g=c.current)===null||g===void 0||g.call(c),d(r,{data:h,params:t.state.params,time:new Date().getTime()}),c.current=rg(r,function(m){t.setState({data:m})}))}}:{}};const gG=hG;function pG(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var t0=pG,mG=typeof Fs=="object"&&Fs&&Fs.Object===Object&&Fs,vG=mG,bG=vG,yG=typeof self=="object"&&self&&self.Object===Object&&self,wG=bG||yG||Function("return this")(),W5=wG,kG=W5,SG=function(){return kG.Date.now()},_G=SG,xG=/\s/;function CG(t){for(var e=t.length;e--&&xG.test(t.charAt(e)););return e}var TG=CG,EG=TG,BG=/^\s+/;function IG(t){return t&&t.slice(0,EG(t)+1).replace(BG,"")}var RG=IG,AG=W5,NG=AG.Symbol,V5=NG,rk=V5,G5=Object.prototype,PG=G5.hasOwnProperty,zG=G5.toString,zs=rk?rk.toStringTag:void 0;function MG(t){var e=PG.call(t,zs),r=t[zs];try{t[zs]=void 0;var o=!0}catch{}var n=zG.call(t);return o&&(e?t[zs]=r:delete t[zs]),n}var OG=MG,jG=Object.prototype,DG=jG.toString;function FG(t){return DG.call(t)}var qG=FG,ok=V5,LG=OG,HG=qG,UG="[object Null]",$G="[object Undefined]",nk=ok?ok.toStringTag:void 0;function KG(t){return t==null?t===void 0?$G:UG:nk&&nk in Object(t)?LG(t):HG(t)}var WG=KG;function VG(t){return t!=null&&typeof t=="object"}var GG=VG,XG=WG,YG=GG,ZG="[object Symbol]";function QG(t){return typeof t=="symbol"||YG(t)&&XG(t)==ZG}var JG=QG,eX=RG,ik=t0,tX=JG,ak=NaN,rX=/^[-+]0x[0-9a-f]+$/i,oX=/^0b[01]+$/i,nX=/^0o[0-7]+$/i,iX=parseInt;function aX(t){if(typeof t=="number")return t;if(tX(t))return ak;if(ik(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=ik(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=eX(t);var r=oX.test(t);return r||nX.test(t)?iX(t.slice(2),r?2:8):rX.test(t)?ak:+t}var sX=aX,lX=t0,og=_G,sk=sX,cX="Expected a function",uX=Math.max,dX=Math.min;function fX(t,e,r){var o,n,i,a,s,l,c=0,u=!1,d=!1,f=!0;if(typeof t!="function")throw new TypeError(cX);e=sk(e)||0,lX(r)&&(u=!!r.leading,d="maxWait"in r,i=d?uX(sk(r.maxWait)||0,e):i,f="trailing"in r?!!r.trailing:f);function h(S){var _=o,C=n;return o=n=void 0,c=S,a=t.apply(C,_),a}function g(S){return c=S,s=setTimeout(v,e),u?h(S):a}function m(S){var _=S-l,C=S-c,T=e-_;return d?dX(T,i-C):T}function w(S){var _=S-l,C=S-c;return l===void 0||_>=e||_<0||d&&C>=i}function v(){var S=og();if(w(S))return p(S);s=setTimeout(v,m(S))}function p(S){return s=void 0,f&&o?h(S):(o=n=void 0,a)}function b(){s!==void 0&&clearTimeout(s),c=0,o=l=n=s=void 0}function k(){return s===void 0?a:p(og())}function x(){var S=og(),_=w(S);if(o=arguments,n=this,l=S,_){if(s===void 0)return g(l);if(d)return clearTimeout(s),s=setTimeout(v,e),h(l)}return s===void 0&&(s=setTimeout(v,e)),a}return x.cancel=b,x.flush=k,x}var X5=fX;const Y5=Ao(X5);var hX=function(t,e){var r=e.debounceWait,o=e.debounceLeading,n=e.debounceTrailing,i=e.debounceMaxWait,a=y.useRef(),s=y.useMemo(function(){var l={};return o!==void 0&&(l.leading=o),n!==void 0&&(l.trailing=n),i!==void 0&&(l.maxWait=i),l},[o,n,i]);return y.useEffect(function(){if(r){var l=t.runAsync.bind(t);return a.current=Y5(function(c){c()},r,s),t.runAsync=function(){for(var c=[],u=0;u-1&&fl.splice(r,1)}}if($f){var lk=function(){if(!(!r0()||!SX()))for(var t=0;t=N?q:""+Array(N+1-W.length).join(M)+q},k={s:b,z:function(q){var N=-q.utcOffset(),M=Math.abs(N),W=Math.floor(M/60),B=M%60;return(N<=0?"+":"-")+b(W,2,"0")+":"+b(B,2,"0")},m:function q(N,M){if(N.date()1)return q(U[0])}else{var z=N.name;S[z]=N,B=z}return!W&&B&&(x=B),B||!W&&x},E=function(q,N){if(C(q))return q.clone();var M=typeof N=="object"?N:{};return M.date=q,M.args=arguments,new I(M)},O=k;O.l=T,O.i=C,O.w=function(q,N){return E(q,{locale:N.$L,utc:N.$u,x:N.$x,$offset:N.$offset})};var I=function(){function q(M){this.$L=T(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[_]=!0}var N=q.prototype;return N.parse=function(M){this.$d=function(W){var B=W.date,D=W.utc;if(B===null)return new Date(NaN);if(O.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var U=B.match(w);if(U){var z=U[2]-1||0,L=(U[7]||"0").substring(0,3);return D?new Date(Date.UTC(U[1],z,U[3]||1,U[4]||0,U[5]||0,U[6]||0,L)):new Date(U[1],z,U[3]||1,U[4]||0,U[5]||0,U[6]||0,L)}}return new Date(B)}(M),this.init()},N.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},N.$utils=function(){return O},N.isValid=function(){return this.$d.toString()!==m},N.isSame=function(M,W){var B=E(M);return this.startOf(W)<=B&&B<=this.endOf(W)},N.isAfter=function(M,W){return E(M)"u"}static get isNode(){return typeof process<"u"&&process.release&&process.release.name==="node"}}function Kl(t,e){let r="";return qi(t)?(r=`Binary data of length ${t.byteLength}`,e&&(r+=`. Content: '${XX(t)}'`)):typeof t=="string"&&(r=`String data of length ${t.length}`,e&&(r+=`. Content: '${t}'`)),r}function XX(t){const e=new Uint8Array(t);let r="";return e.forEach(o=>{const n=o<16?"0":"";r+=`0x${n}${o.toString(16)} `}),r.substr(0,r.length-1)}function qi(t){return t&&typeof ArrayBuffer<"u"&&(t instanceof ArrayBuffer||t.constructor&&t.constructor.name==="ArrayBuffer")}async function J5(t,e,r,o,n,i){const a={},[s,l]=cs();a[s]=l,t.log($.Trace,`(${e} transport) sending data. ${Kl(n,i.logMessageContent)}.`);const c=qi(n)?"arraybuffer":"text",u=await r.post(o,{content:n,headers:{...a,...i.headers},responseType:c,timeout:i.timeout,withCredentials:i.withCredentials});t.log($.Trace,`(${e} transport) request complete. Response status: ${u.statusCode}.`)}function YX(t){return t===void 0?new Dd($.Information):t===null?ls.instance:t.log!==void 0?t:new Dd(t)}class ZX{constructor(e,r){this._subject=e,this._observer=r}dispose(){const e=this._subject.observers.indexOf(this._observer);e>-1&&this._subject.observers.splice(e,1),this._subject.observers.length===0&&this._subject.cancelCallback&&this._subject.cancelCallback().catch(r=>{})}}class Dd{constructor(e){this._minLevel=e,this.out=console}log(e,r){if(e>=this._minLevel){const o=`[${new Date().toISOString()}] ${$[e]}: ${r}`;switch(e){case $.Critical:case $.Error:this.out.error(o);break;case $.Warning:this.out.warn(o);break;case $.Information:this.out.info(o);break;default:this.out.log(o);break}}}}function cs(){let t="X-SignalR-User-Agent";return Ze.isNode&&(t="User-Agent"),[t,QX(GX,JX(),tY(),eY())]}function QX(t,e,r,o){let n="Microsoft SignalR/";const i=t.split(".");return n+=`${i[0]}.${i[1]}`,n+=` (${t}; `,e&&e!==""?n+=`${e}; `:n+="Unknown OS; ",n+=`${r}`,o?n+=`; ${o}`:n+="; Unknown Runtime Version",n+=")",n}function JX(){if(Ze.isNode)switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}else return""}function eY(){if(Ze.isNode)return process.versions.node}function tY(){return Ze.isNode?"NodeJS":"Browser"}function uk(t){return t.stack?t.stack:t.message?t.message:`${t}`}function rY(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("could not find global")}function oY(t){return typeof fetch>"u"||Ze.isNode?(t._jar=new(require("tough-cookie")).CookieJar,typeof fetch>"u"?t._fetchType=require("node-fetch"):t._fetchType=fetch,t._fetchType=require("fetch-cookie")(t._fetchType,t._jar),!0):!1}function nY(t){return typeof AbortController>"u"?(t._abortControllerType=require("abort-controller"),!0):!1}function iY(){return require("ws")}function aY(){return require("eventsource")}class sY extends Kf{constructor(e){super(),this._logger=e;const r={_fetchType:void 0,_jar:void 0};oY(r)?(this._fetchType=r._fetchType,this._jar=r._jar):this._fetchType=fetch.bind(rY()),this._abortControllerType=AbortController;const o={_abortControllerType:this._abortControllerType};nY(o)&&(this._abortControllerType=o._abortControllerType)}async send(e){if(e.abortSignal&&e.abortSignal.aborted)throw new eo;if(!e.method)throw new Error("No method defined.");if(!e.url)throw new Error("No url defined.");const r=new this._abortControllerType;let o;e.abortSignal&&(e.abortSignal.onabort=()=>{r.abort(),o=new eo});let n=null;if(e.timeout){const l=e.timeout;n=setTimeout(()=>{r.abort(),this._logger.log($.Warning,"Timeout from HTTP request."),o=new o0},l)}e.content===""&&(e.content=void 0),e.content&&(e.headers=e.headers||{},qi(e.content)?e.headers["Content-Type"]="application/octet-stream":e.headers["Content-Type"]="text/plain;charset=UTF-8");let i;try{i=await this._fetchType(e.url,{body:e.content,cache:"no-cache",credentials:e.withCredentials===!0?"include":"same-origin",headers:{"X-Requested-With":"XMLHttpRequest",...e.headers},method:e.method,mode:"cors",redirect:"follow",signal:r.signal})}catch(l){throw o||(this._logger.log($.Warning,`Error from HTTP request. ${l}.`),l)}finally{n&&clearTimeout(n),e.abortSignal&&(e.abortSignal.onabort=null)}if(!i.ok){const l=await dk(i,"text");throw new Ci(l||i.statusText,i.status)}const s=await dk(i,e.responseType);return new Q5(i.status,i.statusText,s)}getCookieString(e){let r="";return Ze.isNode&&this._jar&&this._jar.getCookies(e,(o,n)=>r=n.join("; ")),r}}function dk(t,e){let r;switch(e){case"arraybuffer":r=t.arrayBuffer();break;case"text":r=t.text();break;case"blob":case"document":case"json":throw new Error(`${e} is not supported.`);default:r=t.text();break}return r}class lY extends Kf{constructor(e){super(),this._logger=e}send(e){return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new eo):e.method?e.url?new Promise((r,o)=>{const n=new XMLHttpRequest;n.open(e.method,e.url,!0),n.withCredentials=e.withCredentials===void 0?!0:e.withCredentials,n.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.content===""&&(e.content=void 0),e.content&&(qi(e.content)?n.setRequestHeader("Content-Type","application/octet-stream"):n.setRequestHeader("Content-Type","text/plain;charset=UTF-8"));const i=e.headers;i&&Object.keys(i).forEach(a=>{n.setRequestHeader(a,i[a])}),e.responseType&&(n.responseType=e.responseType),e.abortSignal&&(e.abortSignal.onabort=()=>{n.abort(),o(new eo)}),e.timeout&&(n.timeout=e.timeout),n.onload=()=>{e.abortSignal&&(e.abortSignal.onabort=null),n.status>=200&&n.status<300?r(new Q5(n.status,n.statusText,n.response||n.responseText)):o(new Ci(n.response||n.responseText||n.statusText,n.status))},n.onerror=()=>{this._logger.log($.Warning,`Error from HTTP request. ${n.status}: ${n.statusText}.`),o(new Ci(n.statusText,n.status))},n.ontimeout=()=>{this._logger.log($.Warning,"Timeout from HTTP request."),o(new o0)},n.send(e.content)}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}}class cY extends Kf{constructor(e){if(super(),typeof fetch<"u"||Ze.isNode)this._httpClient=new sY(e);else if(typeof XMLHttpRequest<"u")this._httpClient=new lY(e);else throw new Error("No usable HttpClient found.")}send(e){return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new eo):e.method?e.url?this._httpClient.send(e):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(e){return this._httpClient.getCookieString(e)}}class wr{static write(e){return`${e}${wr.RecordSeparator}`}static parse(e){if(e[e.length-1]!==wr.RecordSeparator)throw new Error("Message is incomplete.");const r=e.split(wr.RecordSeparator);return r.pop(),r}}wr.RecordSeparatorCode=30;wr.RecordSeparator=String.fromCharCode(wr.RecordSeparatorCode);class uY{writeHandshakeRequest(e){return wr.write(JSON.stringify(e))}parseHandshakeResponse(e){let r,o;if(qi(e)){const s=new Uint8Array(e),l=s.indexOf(wr.RecordSeparatorCode);if(l===-1)throw new Error("Message is incomplete.");const c=l+1;r=String.fromCharCode.apply(null,Array.prototype.slice.call(s.slice(0,c))),o=s.byteLength>c?s.slice(c).buffer:null}else{const s=e,l=s.indexOf(wr.RecordSeparator);if(l===-1)throw new Error("Message is incomplete.");const c=l+1;r=s.substring(0,c),o=s.length>c?s.substring(c):null}const n=wr.parse(r),i=JSON.parse(n[0]);if(i.type)throw new Error("Expected a handshake response from the server.");return[o,i]}}var J;(function(t){t[t.Invocation=1]="Invocation",t[t.StreamItem=2]="StreamItem",t[t.Completion=3]="Completion",t[t.StreamInvocation=4]="StreamInvocation",t[t.CancelInvocation=5]="CancelInvocation",t[t.Ping=6]="Ping",t[t.Close=7]="Close",t[t.Ack=8]="Ack",t[t.Sequence=9]="Sequence"})(J||(J={}));let dY=class{constructor(){this.observers=[]}next(e){for(const r of this.observers)r.next(e)}error(e){for(const r of this.observers)r.error&&r.error(e)}complete(){for(const e of this.observers)e.complete&&e.complete()}subscribe(e){return this.observers.push(e),new ZX(this,e)}};class fY{constructor(e,r,o){this._bufferSize=1e5,this._messages=[],this._totalMessageCount=0,this._waitForSequenceMessage=!1,this._nextReceivingSequenceId=1,this._latestReceivedSequenceId=0,this._bufferedByteCount=0,this._reconnectInProgress=!1,this._protocol=e,this._connection=r,this._bufferSize=o}async _send(e){const r=this._protocol.writeMessage(e);let o=Promise.resolve();if(this._isInvocationMessage(e)){this._totalMessageCount++;let n=()=>{},i=()=>{};qi(r)?this._bufferedByteCount+=r.byteLength:this._bufferedByteCount+=r.length,this._bufferedByteCount>=this._bufferSize&&(o=new Promise((a,s)=>{n=a,i=s})),this._messages.push(new hY(r,this._totalMessageCount,n,i))}try{this._reconnectInProgress||await this._connection.send(r)}catch{this._disconnected()}await o}_ack(e){let r=-1;for(let o=0;othis._nextReceivingSequenceId){this._connection.stop(new Error("Sequence ID greater than amount of messages we've received."));return}this._nextReceivingSequenceId=e.sequenceId}_disconnected(){this._reconnectInProgress=!0,this._waitForSequenceMessage=!0}async _resend(){const e=this._messages.length!==0?this._messages[0]._id:this._totalMessageCount+1;await this._connection.send(this._protocol.writeMessage({type:J.Sequence,sequenceId:e}));const r=this._messages;for(const o of r)await this._connection.send(o._message);this._reconnectInProgress=!1}_dispose(e){e??(e=new Error("Unable to reconnect to server."));for(const r of this._messages)r._rejector(e)}_isInvocationMessage(e){switch(e.type){case J.Invocation:case J.StreamItem:case J.Completion:case J.StreamInvocation:case J.CancelInvocation:return!0;case J.Close:case J.Sequence:case J.Ping:case J.Ack:return!1}}_ackTimer(){this._ackTimerHandle===void 0&&(this._ackTimerHandle=setTimeout(async()=>{try{this._reconnectInProgress||await this._connection.send(this._protocol.writeMessage({type:J.Ack,sequenceId:this._latestReceivedSequenceId}))}catch{}clearTimeout(this._ackTimerHandle),this._ackTimerHandle=void 0},1e3))}}class hY{constructor(e,r,o,n){this._message=e,this._id=r,this._resolver=o,this._rejector=n}}const gY=30*1e3,pY=15*1e3,mY=1e5;var Le;(function(t){t.Disconnected="Disconnected",t.Connecting="Connecting",t.Connected="Connected",t.Disconnecting="Disconnecting",t.Reconnecting="Reconnecting"})(Le||(Le={}));class n0{static create(e,r,o,n,i,a,s){return new n0(e,r,o,n,i,a,s)}constructor(e,r,o,n,i,a,s){this._nextKeepAlive=0,this._freezeEventListener=()=>{this._logger.log($.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},mt.isRequired(e,"connection"),mt.isRequired(r,"logger"),mt.isRequired(o,"protocol"),this.serverTimeoutInMilliseconds=i??gY,this.keepAliveIntervalInMilliseconds=a??pY,this._statefulReconnectBufferSize=s??mY,this._logger=r,this._protocol=o,this.connection=e,this._reconnectPolicy=n,this._handshakeProtocol=new uY,this.connection.onreceive=l=>this._processIncomingData(l),this.connection.onclose=l=>this._connectionClosed(l),this._callbacks={},this._methods={},this._closedCallbacks=[],this._reconnectingCallbacks=[],this._reconnectedCallbacks=[],this._invocationId=0,this._receivedHandshakeResponse=!1,this._connectionState=Le.Disconnected,this._connectionStarted=!1,this._cachedPingMessage=this._protocol.writeMessage({type:J.Ping})}get state(){return this._connectionState}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(e){if(this._connectionState!==Le.Disconnected&&this._connectionState!==Le.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!e)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=e}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}async _startWithStateTransitions(){if(this._connectionState!==Le.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));this._connectionState=Le.Connecting,this._logger.log($.Debug,"Starting HubConnection.");try{await this._startInternal(),Ze.isBrowser&&window.document.addEventListener("freeze",this._freezeEventListener),this._connectionState=Le.Connected,this._connectionStarted=!0,this._logger.log($.Debug,"HubConnection connected successfully.")}catch(e){return this._connectionState=Le.Disconnected,this._logger.log($.Debug,`HubConnection failed to start successfully because of error '${e}'.`),Promise.reject(e)}}async _startInternal(){this._stopDuringStartError=void 0,this._receivedHandshakeResponse=!1;const e=new Promise((r,o)=>{this._handshakeResolver=r,this._handshakeRejecter=o});await this.connection.start(this._protocol.transferFormat);try{let r=this._protocol.version;this.connection.features.reconnect||(r=1);const o={protocol:this._protocol.name,version:r};if(this._logger.log($.Debug,"Sending handshake request."),await this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(o)),this._logger.log($.Information,`Using HubProtocol '${this._protocol.name}'.`),this._cleanupTimeout(),this._resetTimeoutPeriod(),this._resetKeepAliveInterval(),await e,this._stopDuringStartError)throw this._stopDuringStartError;(this.connection.features.reconnect||!1)&&(this._messageBuffer=new fY(this._protocol,this.connection,this._statefulReconnectBufferSize),this.connection.features.disconnected=this._messageBuffer._disconnected.bind(this._messageBuffer),this.connection.features.resend=()=>{if(this._messageBuffer)return this._messageBuffer._resend()}),this.connection.features.inherentKeepAlive||await this._sendMessage(this._cachedPingMessage)}catch(r){throw this._logger.log($.Debug,`Hub handshake failed with error '${r}' during start(). Stopping HubConnection.`),this._cleanupTimeout(),this._cleanupPingTimer(),await this.connection.stop(r),r}}async stop(){const e=this._startPromise;this.connection.features.reconnect=!1,this._stopPromise=this._stopInternal(),await this._stopPromise;try{await e}catch{}}_stopInternal(e){if(this._connectionState===Le.Disconnected)return this._logger.log($.Debug,`Call to HubConnection.stop(${e}) ignored because it is already in the disconnected state.`),Promise.resolve();if(this._connectionState===Le.Disconnecting)return this._logger.log($.Debug,`Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;const r=this._connectionState;return this._connectionState=Le.Disconnecting,this._logger.log($.Debug,"Stopping HubConnection."),this._reconnectDelayHandle?(this._logger.log($.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this._reconnectDelayHandle),this._reconnectDelayHandle=void 0,this._completeClose(),Promise.resolve()):(r===Le.Connected&&this._sendCloseMessage(),this._cleanupTimeout(),this._cleanupPingTimer(),this._stopDuringStartError=e||new eo("The connection was stopped before the hub handshake could complete."),this.connection.stop(e))}async _sendCloseMessage(){try{await this._sendWithProtocol(this._createCloseMessage())}catch{}}stream(e,...r){const[o,n]=this._replaceStreamingParams(r),i=this._createStreamInvocation(e,r,n);let a;const s=new dY;return s.cancelCallback=()=>{const l=this._createCancelInvocation(i.invocationId);return delete this._callbacks[i.invocationId],a.then(()=>this._sendWithProtocol(l))},this._callbacks[i.invocationId]=(l,c)=>{if(c){s.error(c);return}else l&&(l.type===J.Completion?l.error?s.error(new Error(l.error)):s.complete():s.next(l.item))},a=this._sendWithProtocol(i).catch(l=>{s.error(l),delete this._callbacks[i.invocationId]}),this._launchStreams(o,a),s}_sendMessage(e){return this._resetKeepAliveInterval(),this.connection.send(e)}_sendWithProtocol(e){return this._messageBuffer?this._messageBuffer._send(e):this._sendMessage(this._protocol.writeMessage(e))}send(e,...r){const[o,n]=this._replaceStreamingParams(r),i=this._sendWithProtocol(this._createInvocation(e,r,!0,n));return this._launchStreams(o,i),i}invoke(e,...r){const[o,n]=this._replaceStreamingParams(r),i=this._createInvocation(e,r,!1,n);return new Promise((s,l)=>{this._callbacks[i.invocationId]=(u,d)=>{if(d){l(d);return}else u&&(u.type===J.Completion?u.error?l(new Error(u.error)):s(u.result):l(new Error(`Unexpected message type: ${u.type}`)))};const c=this._sendWithProtocol(i).catch(u=>{l(u),delete this._callbacks[i.invocationId]});this._launchStreams(o,c)})}on(e,r){!e||!r||(e=e.toLowerCase(),this._methods[e]||(this._methods[e]=[]),this._methods[e].indexOf(r)===-1&&this._methods[e].push(r))}off(e,r){if(!e)return;e=e.toLowerCase();const o=this._methods[e];if(o)if(r){const n=o.indexOf(r);n!==-1&&(o.splice(n,1),o.length===0&&delete this._methods[e])}else delete this._methods[e]}onclose(e){e&&this._closedCallbacks.push(e)}onreconnecting(e){e&&this._reconnectingCallbacks.push(e)}onreconnected(e){e&&this._reconnectedCallbacks.push(e)}_processIncomingData(e){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(e=this._processHandshakeResponse(e),this._receivedHandshakeResponse=!0),e){const r=this._protocol.parseMessages(e,this._logger);for(const o of r)if(!(this._messageBuffer&&!this._messageBuffer._shouldProcessMessage(o)))switch(o.type){case J.Invocation:this._invokeClientMethod(o);break;case J.StreamItem:case J.Completion:{const n=this._callbacks[o.invocationId];if(n){o.type===J.Completion&&delete this._callbacks[o.invocationId];try{n(o)}catch(i){this._logger.log($.Error,`Stream callback threw error: ${uk(i)}`)}}break}case J.Ping:break;case J.Close:{this._logger.log($.Information,"Close message received from server.");const n=o.error?new Error("Server returned an error on close: "+o.error):void 0;o.allowReconnect===!0?this.connection.stop(n):this._stopPromise=this._stopInternal(n);break}case J.Ack:this._messageBuffer&&this._messageBuffer._ack(o);break;case J.Sequence:this._messageBuffer&&this._messageBuffer._resetSequence(o);break;default:this._logger.log($.Warning,`Invalid message type: ${o.type}.`);break}}this._resetTimeoutPeriod()}_processHandshakeResponse(e){let r,o;try{[o,r]=this._handshakeProtocol.parseHandshakeResponse(e)}catch(n){const i="Error parsing handshake response: "+n;this._logger.log($.Error,i);const a=new Error(i);throw this._handshakeRejecter(a),a}if(r.error){const n="Server returned handshake error: "+r.error;this._logger.log($.Error,n);const i=new Error(n);throw this._handshakeRejecter(i),i}else this._logger.log($.Debug,"Server handshake complete.");return this._handshakeResolver(),o}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=new Date().getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer())}_resetTimeoutPeriod(){if((!this.connection.features||!this.connection.features.inherentKeepAlive)&&(this._timeoutHandle=setTimeout(()=>this.serverTimeout(),this.serverTimeoutInMilliseconds),this._pingServerHandle===void 0)){let e=this._nextKeepAlive-new Date().getTime();e<0&&(e=0),this._pingServerHandle=setTimeout(async()=>{if(this._connectionState===Le.Connected)try{await this._sendMessage(this._cachedPingMessage)}catch{this._cleanupPingTimer()}},e)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}async _invokeClientMethod(e){const r=e.target.toLowerCase(),o=this._methods[r];if(!o){this._logger.log($.Warning,`No client method with the name '${r}' found.`),e.invocationId&&(this._logger.log($.Warning,`No result given for '${r}' method and invocation ID '${e.invocationId}'.`),await this._sendWithProtocol(this._createCompletionMessage(e.invocationId,"Client didn't provide a result.",null)));return}const n=o.slice(),i=!!e.invocationId;let a,s,l;for(const c of n)try{const u=a;a=await c.apply(this,e.arguments),i&&a&&u&&(this._logger.log($.Error,`Multiple results provided for '${r}'. Sending error to server.`),l=this._createCompletionMessage(e.invocationId,"Client provided multiple results.",null)),s=void 0}catch(u){s=u,this._logger.log($.Error,`A callback for the method '${r}' threw error '${u}'.`)}l?await this._sendWithProtocol(l):i?(s?l=this._createCompletionMessage(e.invocationId,`${s}`,null):a!==void 0?l=this._createCompletionMessage(e.invocationId,null,a):(this._logger.log($.Warning,`No result given for '${r}' method and invocation ID '${e.invocationId}'.`),l=this._createCompletionMessage(e.invocationId,"Client didn't provide a result.",null)),await this._sendWithProtocol(l)):a&&this._logger.log($.Error,`Result given for '${r}' method but server is not expecting a result.`)}_connectionClosed(e){this._logger.log($.Debug,`HubConnection.connectionClosed(${e}) called while in state ${this._connectionState}.`),this._stopDuringStartError=this._stopDuringStartError||e||new eo("The underlying connection was closed before the hub handshake could complete."),this._handshakeResolver&&this._handshakeResolver(),this._cancelCallbacksWithError(e||new Error("Invocation canceled due to the underlying connection being closed.")),this._cleanupTimeout(),this._cleanupPingTimer(),this._connectionState===Le.Disconnecting?this._completeClose(e):this._connectionState===Le.Connected&&this._reconnectPolicy?this._reconnect(e):this._connectionState===Le.Connected&&this._completeClose(e)}_completeClose(e){if(this._connectionStarted){this._connectionState=Le.Disconnected,this._connectionStarted=!1,this._messageBuffer&&(this._messageBuffer._dispose(e??new Error("Connection closed.")),this._messageBuffer=void 0),Ze.isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach(r=>r.apply(this,[e]))}catch(r){this._logger.log($.Error,`An onclose callback called with error '${e}' threw error '${r}'.`)}}}async _reconnect(e){const r=Date.now();let o=0,n=e!==void 0?e:new Error("Attempting to reconnect due to a unknown error."),i=this._getNextRetryDelay(o++,0,n);if(i===null){this._logger.log($.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),this._completeClose(e);return}if(this._connectionState=Le.Reconnecting,e?this._logger.log($.Information,`Connection reconnecting because of error '${e}'.`):this._logger.log($.Information,"Connection reconnecting."),this._reconnectingCallbacks.length!==0){try{this._reconnectingCallbacks.forEach(a=>a.apply(this,[e]))}catch(a){this._logger.log($.Error,`An onreconnecting callback called with error '${e}' threw error '${a}'.`)}if(this._connectionState!==Le.Reconnecting){this._logger.log($.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.");return}}for(;i!==null;){if(this._logger.log($.Information,`Reconnect attempt number ${o} will start in ${i} ms.`),await new Promise(a=>{this._reconnectDelayHandle=setTimeout(a,i)}),this._reconnectDelayHandle=void 0,this._connectionState!==Le.Reconnecting){this._logger.log($.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");return}try{if(await this._startInternal(),this._connectionState=Le.Connected,this._logger.log($.Information,"HubConnection reconnected successfully."),this._reconnectedCallbacks.length!==0)try{this._reconnectedCallbacks.forEach(a=>a.apply(this,[this.connection.connectionId]))}catch(a){this._logger.log($.Error,`An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${a}'.`)}return}catch(a){if(this._logger.log($.Information,`Reconnect attempt failed because of error '${a}'.`),this._connectionState!==Le.Reconnecting){this._logger.log($.Debug,`Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`),this._connectionState===Le.Disconnecting&&this._completeClose();return}n=a instanceof Error?a:new Error(a.toString()),i=this._getNextRetryDelay(o++,Date.now()-r,n)}}this._logger.log($.Information,`Reconnect retries have been exhausted after ${Date.now()-r} ms and ${o} failed attempts. Connection disconnecting.`),this._completeClose()}_getNextRetryDelay(e,r,o){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:r,previousRetryCount:e,retryReason:o})}catch(n){return this._logger.log($.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${e}, ${r}) threw error '${n}'.`),null}}_cancelCallbacksWithError(e){const r=this._callbacks;this._callbacks={},Object.keys(r).forEach(o=>{const n=r[o];try{n(null,e)}catch(i){this._logger.log($.Error,`Stream 'error' callback called with '${e}' threw error: ${uk(i)}`)}})}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=void 0)}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle)}_createInvocation(e,r,o,n){if(o)return n.length!==0?{arguments:r,streamIds:n,target:e,type:J.Invocation}:{arguments:r,target:e,type:J.Invocation};{const i=this._invocationId;return this._invocationId++,n.length!==0?{arguments:r,invocationId:i.toString(),streamIds:n,target:e,type:J.Invocation}:{arguments:r,invocationId:i.toString(),target:e,type:J.Invocation}}}_launchStreams(e,r){if(e.length!==0){r||(r=Promise.resolve());for(const o in e)e[o].subscribe({complete:()=>{r=r.then(()=>this._sendWithProtocol(this._createCompletionMessage(o)))},error:n=>{let i;n instanceof Error?i=n.message:n&&n.toString?i=n.toString():i="Unknown error",r=r.then(()=>this._sendWithProtocol(this._createCompletionMessage(o,i)))},next:n=>{r=r.then(()=>this._sendWithProtocol(this._createStreamItemMessage(o,n)))}})}}_replaceStreamingParams(e){const r=[],o=[];for(let n=0;n0)&&(r=!1,this._accessToken=await this._accessTokenFactory()),this._setAuthorizationHeader(e);const o=await this._innerClient.send(e);return r&&o.statusCode===401&&this._accessTokenFactory?(this._accessToken=await this._accessTokenFactory(),this._setAuthorizationHeader(e),await this._innerClient.send(e)):o}_setAuthorizationHeader(e){e.headers||(e.headers={}),this._accessToken?e.headers[Ti.Authorization]=`Bearer ${this._accessToken}`:this._accessTokenFactory&&e.headers[Ti.Authorization]&&delete e.headers[Ti.Authorization]}getCookieString(e){return this._innerClient.getCookieString(e)}}var kt;(function(t){t[t.None=0]="None",t[t.WebSockets=1]="WebSockets",t[t.ServerSentEvents=2]="ServerSentEvents",t[t.LongPolling=4]="LongPolling"})(kt||(kt={}));var Ot;(function(t){t[t.Text=1]="Text",t[t.Binary=2]="Binary"})(Ot||(Ot={}));let yY=class{constructor(){this._isAborted=!1,this.onabort=null}abort(){this._isAborted||(this._isAborted=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this._isAborted}};class hk{get pollAborted(){return this._pollAbort.aborted}constructor(e,r,o){this._httpClient=e,this._logger=r,this._pollAbort=new yY,this._options=o,this._running=!1,this.onreceive=null,this.onclose=null}async connect(e,r){if(mt.isRequired(e,"url"),mt.isRequired(r,"transferFormat"),mt.isIn(r,Ot,"transferFormat"),this._url=e,this._logger.log($.Trace,"(LongPolling transport) Connecting."),r===Ot.Binary&&typeof XMLHttpRequest<"u"&&typeof new XMLHttpRequest().responseType!="string")throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[o,n]=cs(),i={[o]:n,...this._options.headers},a={abortSignal:this._pollAbort.signal,headers:i,timeout:1e5,withCredentials:this._options.withCredentials};r===Ot.Binary&&(a.responseType="arraybuffer");const s=`${e}&_=${Date.now()}`;this._logger.log($.Trace,`(LongPolling transport) polling: ${s}.`);const l=await this._httpClient.get(s,a);l.statusCode!==200?(this._logger.log($.Error,`(LongPolling transport) Unexpected response code: ${l.statusCode}.`),this._closeError=new Ci(l.statusText||"",l.statusCode),this._running=!1):this._running=!0,this._receiving=this._poll(this._url,a)}async _poll(e,r){try{for(;this._running;)try{const o=`${e}&_=${Date.now()}`;this._logger.log($.Trace,`(LongPolling transport) polling: ${o}.`);const n=await this._httpClient.get(o,r);n.statusCode===204?(this._logger.log($.Information,"(LongPolling transport) Poll terminated by server."),this._running=!1):n.statusCode!==200?(this._logger.log($.Error,`(LongPolling transport) Unexpected response code: ${n.statusCode}.`),this._closeError=new Ci(n.statusText||"",n.statusCode),this._running=!1):n.content?(this._logger.log($.Trace,`(LongPolling transport) data received. ${Kl(n.content,this._options.logMessageContent)}.`),this.onreceive&&this.onreceive(n.content)):this._logger.log($.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(o){this._running?o instanceof o0?this._logger.log($.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this._closeError=o,this._running=!1):this._logger.log($.Trace,`(LongPolling transport) Poll errored after shutdown: ${o.message}`)}}finally{this._logger.log($.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this._raiseOnClose()}}async send(e){return this._running?J5(this._logger,"LongPolling",this._httpClient,this._url,e,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}async stop(){this._logger.log($.Trace,"(LongPolling transport) Stopping polling."),this._running=!1,this._pollAbort.abort();try{await this._receiving,this._logger.log($.Trace,`(LongPolling transport) sending DELETE request to ${this._url}.`);const e={},[r,o]=cs();e[r]=o;const n={headers:{...e,...this._options.headers},timeout:this._options.timeout,withCredentials:this._options.withCredentials};let i;try{await this._httpClient.delete(this._url,n)}catch(a){i=a}i?i instanceof Ci&&(i.statusCode===404?this._logger.log($.Trace,"(LongPolling transport) A 404 response was returned from sending a DELETE request."):this._logger.log($.Trace,`(LongPolling transport) Error sending a DELETE request: ${i}`)):this._logger.log($.Trace,"(LongPolling transport) DELETE request accepted.")}finally{this._logger.log($.Trace,"(LongPolling transport) Stop finished."),this._raiseOnClose()}}_raiseOnClose(){if(this.onclose){let e="(LongPolling transport) Firing onclose event.";this._closeError&&(e+=" Error: "+this._closeError),this._logger.log($.Trace,e),this.onclose(this._closeError)}}}class wY{constructor(e,r,o,n){this._httpClient=e,this._accessToken=r,this._logger=o,this._options=n,this.onreceive=null,this.onclose=null}async connect(e,r){return mt.isRequired(e,"url"),mt.isRequired(r,"transferFormat"),mt.isIn(r,Ot,"transferFormat"),this._logger.log($.Trace,"(SSE transport) Connecting."),this._url=e,this._accessToken&&(e+=(e.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(this._accessToken)}`),new Promise((o,n)=>{let i=!1;if(r!==Ot.Text){n(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"));return}let a;if(Ze.isBrowser||Ze.isWebWorker)a=new this._options.EventSource(e,{withCredentials:this._options.withCredentials});else{const s=this._httpClient.getCookieString(e),l={};l.Cookie=s;const[c,u]=cs();l[c]=u,a=new this._options.EventSource(e,{withCredentials:this._options.withCredentials,headers:{...l,...this._options.headers}})}try{a.onmessage=s=>{if(this.onreceive)try{this._logger.log($.Trace,`(SSE transport) data received. ${Kl(s.data,this._options.logMessageContent)}.`),this.onreceive(s.data)}catch(l){this._close(l);return}},a.onerror=s=>{i?this._close():n(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."))},a.onopen=()=>{this._logger.log($.Information,`SSE connected to ${this._url}`),this._eventSource=a,i=!0,o()}}catch(s){n(s);return}})}async send(e){return this._eventSource?J5(this._logger,"SSE",this._httpClient,this._url,e,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}stop(){return this._close(),Promise.resolve()}_close(e){this._eventSource&&(this._eventSource.close(),this._eventSource=void 0,this.onclose&&this.onclose(e))}}class kY{constructor(e,r,o,n,i,a){this._logger=o,this._accessTokenFactory=r,this._logMessageContent=n,this._webSocketConstructor=i,this._httpClient=e,this.onreceive=null,this.onclose=null,this._headers=a}async connect(e,r){mt.isRequired(e,"url"),mt.isRequired(r,"transferFormat"),mt.isIn(r,Ot,"transferFormat"),this._logger.log($.Trace,"(WebSockets transport) Connecting.");let o;return this._accessTokenFactory&&(o=await this._accessTokenFactory()),new Promise((n,i)=>{e=e.replace(/^http/,"ws");let a;const s=this._httpClient.getCookieString(e);let l=!1;if(Ze.isNode||Ze.isReactNative){const c={},[u,d]=cs();c[u]=d,o&&(c[Ti.Authorization]=`Bearer ${o}`),s&&(c[Ti.Cookie]=s),a=new this._webSocketConstructor(e,void 0,{headers:{...c,...this._headers}})}else o&&(e+=(e.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(o)}`);a||(a=new this._webSocketConstructor(e)),r===Ot.Binary&&(a.binaryType="arraybuffer"),a.onopen=c=>{this._logger.log($.Information,`WebSocket connected to ${e}.`),this._webSocket=a,l=!0,n()},a.onerror=c=>{let u=null;typeof ErrorEvent<"u"&&c instanceof ErrorEvent?u=c.error:u="There was an error with the transport",this._logger.log($.Information,`(WebSockets transport) ${u}.`)},a.onmessage=c=>{if(this._logger.log($.Trace,`(WebSockets transport) data received. ${Kl(c.data,this._logMessageContent)}.`),this.onreceive)try{this.onreceive(c.data)}catch(u){this._close(u);return}},a.onclose=c=>{if(l)this._close(c);else{let u=null;typeof ErrorEvent<"u"&&c instanceof ErrorEvent?u=c.error:u="WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",i(new Error(u))}}})}send(e){return this._webSocket&&this._webSocket.readyState===this._webSocketConstructor.OPEN?(this._logger.log($.Trace,`(WebSockets transport) sending data. ${Kl(e,this._logMessageContent)}.`),this._webSocket.send(e),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this._webSocket&&this._close(void 0),Promise.resolve()}_close(e){this._webSocket&&(this._webSocket.onclose=()=>{},this._webSocket.onmessage=()=>{},this._webSocket.onerror=()=>{},this._webSocket.close(),this._webSocket=void 0),this._logger.log($.Trace,"(WebSockets transport) socket closed."),this.onclose&&(this._isCloseEvent(e)&&(e.wasClean===!1||e.code!==1e3)?this.onclose(new Error(`WebSocket closed with status code: ${e.code} (${e.reason||"no reason given"}).`)):e instanceof Error?this.onclose(e):this.onclose())}_isCloseEvent(e){return e&&typeof e.wasClean=="boolean"&&typeof e.code=="number"}}const gk=100;class SY{constructor(e,r={}){if(this._stopPromiseResolver=()=>{},this.features={},this._negotiateVersion=1,mt.isRequired(e,"url"),this._logger=YX(r.logger),this.baseUrl=this._resolveUrl(e),r=r||{},r.logMessageContent=r.logMessageContent===void 0?!1:r.logMessageContent,typeof r.withCredentials=="boolean"||r.withCredentials===void 0)r.withCredentials=r.withCredentials===void 0?!0:r.withCredentials;else throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");r.timeout=r.timeout===void 0?100*1e3:r.timeout;let o=null,n=null;Ze.isNode&&typeof require<"u"&&(o=iY(),n=aY()),!Ze.isNode&&typeof WebSocket<"u"&&!r.WebSocket?r.WebSocket=WebSocket:Ze.isNode&&!r.WebSocket&&o&&(r.WebSocket=o),!Ze.isNode&&typeof EventSource<"u"&&!r.EventSource?r.EventSource=EventSource:Ze.isNode&&!r.EventSource&&typeof n<"u"&&(r.EventSource=n),this._httpClient=new bY(r.httpClient||new cY(this._logger),r.accessTokenFactory),this._connectionState="Disconnected",this._connectionStarted=!1,this._options=r,this.onreceive=null,this.onclose=null}async start(e){if(e=e||Ot.Binary,mt.isIn(e,Ot,"transferFormat"),this._logger.log($.Debug,`Starting connection with transfer format '${Ot[e]}'.`),this._connectionState!=="Disconnected")return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(this._connectionState="Connecting",this._startInternalPromise=this._startInternal(e),await this._startInternalPromise,this._connectionState==="Disconnecting"){const r="Failed to start the HttpConnection before stop() was called.";return this._logger.log($.Error,r),await this._stopPromise,Promise.reject(new eo(r))}else if(this._connectionState!=="Connected"){const r="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return this._logger.log($.Error,r),Promise.reject(new eo(r))}this._connectionStarted=!0}send(e){return this._connectionState!=="Connected"?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this._sendQueue||(this._sendQueue=new i0(this.transport)),this._sendQueue.send(e))}async stop(e){if(this._connectionState==="Disconnected")return this._logger.log($.Debug,`Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnected state.`),Promise.resolve();if(this._connectionState==="Disconnecting")return this._logger.log($.Debug,`Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnecting state.`),this._stopPromise;this._connectionState="Disconnecting",this._stopPromise=new Promise(r=>{this._stopPromiseResolver=r}),await this._stopInternal(e),await this._stopPromise}async _stopInternal(e){this._stopError=e;try{await this._startInternalPromise}catch{}if(this.transport){try{await this.transport.stop()}catch(r){this._logger.log($.Error,`HttpConnection.transport.stop() threw error '${r}'.`),this._stopConnection()}this.transport=void 0}else this._logger.log($.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")}async _startInternal(e){let r=this.baseUrl;this._accessTokenFactory=this._options.accessTokenFactory,this._httpClient._accessTokenFactory=this._accessTokenFactory;try{if(this._options.skipNegotiation)if(this._options.transport===kt.WebSockets)this.transport=this._constructTransport(kt.WebSockets),await this._startTransport(r,e);else throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");else{let o=null,n=0;do{if(o=await this._getNegotiationResponse(r),this._connectionState==="Disconnecting"||this._connectionState==="Disconnected")throw new eo("The connection was stopped during negotiation.");if(o.error)throw new Error(o.error);if(o.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(o.url&&(r=o.url),o.accessToken){const i=o.accessToken;this._accessTokenFactory=()=>i,this._httpClient._accessToken=i,this._httpClient._accessTokenFactory=void 0}n++}while(o.url&&n0?Promise.reject(new VX(`Unable to connect to the server with any of the available transports. ${a.join(" ")}`,a)):Promise.reject(new Error("None of the transports supported by the client are supported by the server."))}_constructTransport(e){switch(e){case kt.WebSockets:if(!this._options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new kY(this._httpClient,this._accessTokenFactory,this._logger,this._options.logMessageContent,this._options.WebSocket,this._options.headers||{});case kt.ServerSentEvents:if(!this._options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new wY(this._httpClient,this._httpClient._accessToken,this._logger,this._options);case kt.LongPolling:return new hk(this._httpClient,this._logger,this._options);default:throw new Error(`Unknown transport: ${e}.`)}}_startTransport(e,r){return this.transport.onreceive=this.onreceive,this.features.reconnect?this.transport.onclose=async o=>{let n=!1;if(this.features.reconnect)try{this.features.disconnected(),await this.transport.connect(e,r),await this.features.resend()}catch{n=!0}else{this._stopConnection(o);return}n&&this._stopConnection(o)}:this.transport.onclose=o=>this._stopConnection(o),this.transport.connect(e,r)}_resolveTransportOrError(e,r,o,n){const i=kt[e.transport];if(i==null)return this._logger.log($.Debug,`Skipping transport '${e.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${e.transport}' because it is not supported by this client.`);if(_Y(r,i))if(e.transferFormats.map(s=>Ot[s]).indexOf(o)>=0){if(i===kt.WebSockets&&!this._options.WebSocket||i===kt.ServerSentEvents&&!this._options.EventSource)return this._logger.log($.Debug,`Skipping transport '${kt[i]}' because it is not supported in your environment.'`),new $X(`'${kt[i]}' is not supported in your environment.`,i);this._logger.log($.Debug,`Selecting transport '${kt[i]}'.`);try{return this.features.reconnect=i===kt.WebSockets?n:void 0,this._constructTransport(i)}catch(s){return s}}else return this._logger.log($.Debug,`Skipping transport '${kt[i]}' because it does not support the requested transfer format '${Ot[o]}'.`),new Error(`'${kt[i]}' does not support ${Ot[o]}.`);else return this._logger.log($.Debug,`Skipping transport '${kt[i]}' because it was disabled by the client.`),new KX(`'${kt[i]}' is disabled by the client.`,i)}_isITransport(e){return e&&typeof e=="object"&&"connect"in e}_stopConnection(e){if(this._logger.log($.Debug,`HttpConnection.stopConnection(${e}) called while in state ${this._connectionState}.`),this.transport=void 0,e=this._stopError||e,this._stopError=void 0,this._connectionState==="Disconnected"){this._logger.log($.Debug,`Call to HttpConnection.stopConnection(${e}) was ignored because the connection is already in the disconnected state.`);return}if(this._connectionState==="Connecting")throw this._logger.log($.Warning,`Call to HttpConnection.stopConnection(${e}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${e}) was called while the connection is still in the connecting state.`);if(this._connectionState==="Disconnecting"&&this._stopPromiseResolver(),e?this._logger.log($.Error,`Connection disconnected with error '${e}'.`):this._logger.log($.Information,"Connection disconnected."),this._sendQueue&&(this._sendQueue.stop().catch(r=>{this._logger.log($.Error,`TransportSendQueue.stop() threw error '${r}'.`)}),this._sendQueue=void 0),this.connectionId=void 0,this._connectionState="Disconnected",this._connectionStarted){this._connectionStarted=!1;try{this.onclose&&this.onclose(e)}catch(r){this._logger.log($.Error,`HttpConnection.onclose(${e}) threw error '${r}'.`)}}}_resolveUrl(e){if(e.lastIndexOf("https://",0)===0||e.lastIndexOf("http://",0)===0)return e;if(!Ze.isBrowser)throw new Error(`Cannot resolve '${e}'.`);const r=window.document.createElement("a");return r.href=e,this._logger.log($.Information,`Normalizing '${e}' to '${r.href}'.`),r.href}_resolveNegotiateUrl(e){const r=new URL(e);r.pathname.endsWith("/")?r.pathname+="negotiate":r.pathname+="/negotiate";const o=new URLSearchParams(r.searchParams);return o.has("negotiateVersion")||o.append("negotiateVersion",this._negotiateVersion.toString()),o.has("useStatefulReconnect")?o.get("useStatefulReconnect")==="true"&&(this._options._useStatefulReconnect=!0):this._options._useStatefulReconnect===!0&&o.append("useStatefulReconnect","true"),r.search=o.toString(),r.toString()}}function _Y(t,e){return!t||(e&t)!==0}class i0{constructor(e){this._transport=e,this._buffer=[],this._executing=!0,this._sendBufferedData=new lu,this._transportResult=new lu,this._sendLoopPromise=this._sendLoop()}send(e){return this._bufferData(e),this._transportResult||(this._transportResult=new lu),this._transportResult.promise}stop(){return this._executing=!1,this._sendBufferedData.resolve(),this._sendLoopPromise}_bufferData(e){if(this._buffer.length&&typeof this._buffer[0]!=typeof e)throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof e}`);this._buffer.push(e),this._sendBufferedData.resolve()}async _sendLoop(){for(;;){if(await this._sendBufferedData.promise,!this._executing){this._transportResult&&this._transportResult.reject("Connection stopped.");break}this._sendBufferedData=new lu;const e=this._transportResult;this._transportResult=void 0;const r=typeof this._buffer[0]=="string"?this._buffer.join(""):i0._concatBuffers(this._buffer);this._buffer.length=0;try{await this._transport.send(r),e.resolve()}catch(o){e.reject(o)}}}static _concatBuffers(e){const r=e.map(i=>i.byteLength).reduce((i,a)=>i+a),o=new Uint8Array(r);let n=0;for(const i of e)o.set(new Uint8Array(i),n),n+=i.byteLength;return o.buffer}}class lu{constructor(){this.promise=new Promise((e,r)=>[this._resolver,this._rejecter]=[e,r])}resolve(){this._resolver()}reject(e){this._rejecter(e)}}const xY="json";class CY{constructor(){this.name=xY,this.version=2,this.transferFormat=Ot.Text}parseMessages(e,r){if(typeof e!="string")throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!e)return[];r===null&&(r=ls.instance);const o=wr.parse(e),n=[];for(const i of o){const a=JSON.parse(i);if(typeof a.type!="number")throw new Error("Invalid payload.");switch(a.type){case J.Invocation:this._isInvocationMessage(a);break;case J.StreamItem:this._isStreamItemMessage(a);break;case J.Completion:this._isCompletionMessage(a);break;case J.Ping:break;case J.Close:break;case J.Ack:this._isAckMessage(a);break;case J.Sequence:this._isSequenceMessage(a);break;default:r.log($.Information,"Unknown message type '"+a.type+"' ignored.");continue}n.push(a)}return n}writeMessage(e){return wr.write(JSON.stringify(e))}_isInvocationMessage(e){this._assertNotEmptyString(e.target,"Invalid payload for Invocation message."),e.invocationId!==void 0&&this._assertNotEmptyString(e.invocationId,"Invalid payload for Invocation message.")}_isStreamItemMessage(e){if(this._assertNotEmptyString(e.invocationId,"Invalid payload for StreamItem message."),e.item===void 0)throw new Error("Invalid payload for StreamItem message.")}_isCompletionMessage(e){if(e.result&&e.error)throw new Error("Invalid payload for Completion message.");!e.result&&e.error&&this._assertNotEmptyString(e.error,"Invalid payload for Completion message."),this._assertNotEmptyString(e.invocationId,"Invalid payload for Completion message.")}_isAckMessage(e){if(typeof e.sequenceId!="number")throw new Error("Invalid SequenceId for Ack message.")}_isSequenceMessage(e){if(typeof e.sequenceId!="number")throw new Error("Invalid SequenceId for Sequence message.")}_assertNotEmptyString(e,r){if(typeof e!="string"||e==="")throw new Error(r)}}const TY={trace:$.Trace,debug:$.Debug,info:$.Information,information:$.Information,warn:$.Warning,warning:$.Warning,error:$.Error,critical:$.Critical,none:$.None};function EY(t){const e=TY[t.toLowerCase()];if(typeof e<"u")return e;throw new Error(`Unknown log level: ${t}`)}class See{configureLogging(e){if(mt.isRequired(e,"logging"),BY(e))this.logger=e;else if(typeof e=="string"){const r=EY(e);this.logger=new Dd(r)}else this.logger=new Dd(e);return this}withUrl(e,r){return mt.isRequired(e,"url"),mt.isNotEmpty(e,"url"),this.url=e,typeof r=="object"?this.httpConnectionOptions={...this.httpConnectionOptions,...r}:this.httpConnectionOptions={...this.httpConnectionOptions,transport:r},this}withHubProtocol(e){return mt.isRequired(e,"protocol"),this.protocol=e,this}withAutomaticReconnect(e){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return e?Array.isArray(e)?this.reconnectPolicy=new fk(e):this.reconnectPolicy=e:this.reconnectPolicy=new fk,this}withServerTimeout(e){return mt.isRequired(e,"milliseconds"),this._serverTimeoutInMilliseconds=e,this}withKeepAliveInterval(e){return mt.isRequired(e,"milliseconds"),this._keepAliveIntervalInMilliseconds=e,this}withStatefulReconnect(e){return this.httpConnectionOptions===void 0&&(this.httpConnectionOptions={}),this.httpConnectionOptions._useStatefulReconnect=!0,this._statefulReconnectBufferSize=e?.bufferSize,this}build(){const e=this.httpConnectionOptions||{};if(e.logger===void 0&&(e.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");const r=new SY(this.url,e);return n0.create(r,this.logger||ls.instance,this.protocol||new CY,this.reconnectPolicy,this._serverTimeoutInMilliseconds,this._keepAliveIntervalInMilliseconds,this._statefulReconnectBufferSize)}}function BY(t){return t.log!==void 0}var gi=4294967295;function IY(t,e,r){var o=r/4294967296,n=r;t.setUint32(e,o),t.setUint32(e+4,n)}function eE(t,e,r){var o=Math.floor(r/4294967296),n=r;t.setUint32(e,o),t.setUint32(e+4,n)}function tE(t,e){var r=t.getInt32(e),o=t.getUint32(e+4);return r*4294967296+o}function RY(t,e){var r=t.getUint32(e),o=t.getUint32(e+4);return r*4294967296+o}var a0={},ng,ig,ag,Wf=(typeof process>"u"||((ng=process==null?void 0:a0)===null||ng===void 0?void 0:ng.TEXT_ENCODING)!=="never")&&typeof TextEncoder<"u"&&typeof TextDecoder<"u";function pk(t){for(var e=t.length,r=0,o=0;o=55296&&n<=56319&&o>6&31|192;else{if(a>=55296&&a<=56319&&i>18&7|240,e[n++]=a>>12&63|128,e[n++]=a>>6&63|128):(e[n++]=a>>12&15|224,e[n++]=a>>6&63|128)}else{e[n++]=a;continue}e[n++]=a&63|128}}var hl=Wf?new TextEncoder:void 0,NY=Wf?typeof process<"u"&&((ig=process==null?void 0:a0)===null||ig===void 0?void 0:ig.TEXT_ENCODING)!=="force"?200:0:gi;function PY(t,e,r){e.set(hl.encode(t),r)}function zY(t,e,r){hl.encodeInto(t,e.subarray(r))}var MY=hl?.encodeInto?zY:PY,OY=4096;function rE(t,e,r){for(var o=e,n=o+r,i=[],a="";o65535&&(d-=65536,i.push(d>>>10&1023|55296),d=56320|d&1023),i.push(d)}else i.push(s);i.length>=OY&&(a+=String.fromCharCode.apply(String,i),i.length=0)}return i.length>0&&(a+=String.fromCharCode.apply(String,i)),a}var jY=Wf?new TextDecoder:null,DY=Wf?typeof process<"u"&&((ag=process==null?void 0:a0)===null||ag===void 0?void 0:ag.TEXT_DECODER)!=="force"?200:0:gi;function FY(t,e,r){var o=t.subarray(e,e+r);return jY.decode(o)}var cu=function(){function t(e,r){this.type=e,this.data=r}return t}(),qY=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o[i]=n[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function o(){this.constructor=e}e.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}}(),po=function(t){qY(e,t);function e(r){var o=t.call(this,r)||this,n=Object.create(e.prototype);return Object.setPrototypeOf(o,n),Object.defineProperty(o,"name",{configurable:!0,enumerable:!1,value:e.name}),o}return e}(Error),LY=-1,HY=4294967296-1,UY=17179869184-1;function $Y(t){var e=t.sec,r=t.nsec;if(e>=0&&r>=0&&e<=UY)if(r===0&&e<=HY){var o=new Uint8Array(4),n=new DataView(o.buffer);return n.setUint32(0,e),o}else{var i=e/4294967296,a=e&4294967295,o=new Uint8Array(8),n=new DataView(o.buffer);return n.setUint32(0,r<<2|i&3),n.setUint32(4,a),o}else{var o=new Uint8Array(12),n=new DataView(o.buffer);return n.setUint32(0,r),eE(n,4,e),o}}function KY(t){var e=t.getTime(),r=Math.floor(e/1e3),o=(e-r*1e3)*1e6,n=Math.floor(o/1e9);return{sec:r+n,nsec:o-n*1e9}}function WY(t){if(t instanceof Date){var e=KY(t);return $Y(e)}else return null}function VY(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength);switch(t.byteLength){case 4:{var r=e.getUint32(0),o=0;return{sec:r,nsec:o}}case 8:{var n=e.getUint32(0),i=e.getUint32(4),r=(n&3)*4294967296+i,o=n>>>2;return{sec:r,nsec:o}}case 12:{var r=tE(e,4),o=e.getUint32(0);return{sec:r,nsec:o}}default:throw new po("Unrecognized data size for timestamp (expected 4, 8, or 12): ".concat(t.length))}}function GY(t){var e=VY(t);return new Date(e.sec*1e3+e.nsec/1e6)}var XY={type:LY,encode:WY,decode:GY},oE=function(){function t(){this.builtInEncoders=[],this.builtInDecoders=[],this.encoders=[],this.decoders=[],this.register(XY)}return t.prototype.register=function(e){var r=e.type,o=e.encode,n=e.decode;if(r>=0)this.encoders[r]=o,this.decoders[r]=n;else{var i=1+r;this.builtInEncoders[i]=o,this.builtInDecoders[i]=n}},t.prototype.tryToEncode=function(e,r){for(var o=0;othis.maxDepth)throw new Error("Too deep objects in depth ".concat(r));e==null?this.encodeNil():typeof e=="boolean"?this.encodeBoolean(e):typeof e=="number"?this.encodeNumber(e):typeof e=="string"?this.encodeString(e):this.encodeObject(e,r)},t.prototype.ensureBufferSizeToWrite=function(e){var r=this.pos+e;this.view.byteLength=0?e<128?this.writeU8(e):e<256?(this.writeU8(204),this.writeU8(e)):e<65536?(this.writeU8(205),this.writeU16(e)):e<4294967296?(this.writeU8(206),this.writeU32(e)):(this.writeU8(207),this.writeU64(e)):e>=-32?this.writeU8(224|e+32):e>=-128?(this.writeU8(208),this.writeI8(e)):e>=-32768?(this.writeU8(209),this.writeI16(e)):e>=-2147483648?(this.writeU8(210),this.writeI32(e)):(this.writeU8(211),this.writeI64(e)):this.forceFloat32?(this.writeU8(202),this.writeF32(e)):(this.writeU8(203),this.writeF64(e))},t.prototype.writeStringHeader=function(e){if(e<32)this.writeU8(160+e);else if(e<256)this.writeU8(217),this.writeU8(e);else if(e<65536)this.writeU8(218),this.writeU16(e);else if(e<4294967296)this.writeU8(219),this.writeU32(e);else throw new Error("Too long string: ".concat(e," bytes in UTF-8"))},t.prototype.encodeString=function(e){var r=5,o=e.length;if(o>NY){var n=pk(e);this.ensureBufferSizeToWrite(r+n),this.writeStringHeader(n),MY(e,this.bytes,this.pos),this.pos+=n}else{var n=pk(e);this.ensureBufferSizeToWrite(r+n),this.writeStringHeader(n),AY(e,this.bytes,this.pos),this.pos+=n}},t.prototype.encodeObject=function(e,r){var o=this.extensionCodec.tryToEncode(e,this.context);if(o!=null)this.encodeExtension(o);else if(Array.isArray(e))this.encodeArray(e,r);else if(ArrayBuffer.isView(e))this.encodeBinary(e);else if(typeof e=="object")this.encodeMap(e,r);else throw new Error("Unrecognized object: ".concat(Object.prototype.toString.apply(e)))},t.prototype.encodeBinary=function(e){var r=e.byteLength;if(r<256)this.writeU8(196),this.writeU8(r);else if(r<65536)this.writeU8(197),this.writeU16(r);else if(r<4294967296)this.writeU8(198),this.writeU32(r);else throw new Error("Too large binary: ".concat(r));var o=Fd(e);this.writeU8a(o)},t.prototype.encodeArray=function(e,r){var o=e.length;if(o<16)this.writeU8(144+o);else if(o<65536)this.writeU8(220),this.writeU16(o);else if(o<4294967296)this.writeU8(221),this.writeU32(o);else throw new Error("Too large array: ".concat(o));for(var n=0,i=e;n0&&e<=this.maxKeyLength},t.prototype.find=function(e,r,o){var n=this.caches[o-1];e:for(var i=0,a=n;i=this.maxLengthPerKey?o[Math.random()*o.length|0]=n:o.push(n)},t.prototype.decode=function(e,r,o){var n=this.find(e,r,o);if(n!=null)return this.hit++,n;this.miss++;var i=rE(e,r,o),a=Uint8Array.prototype.slice.call(e,r,r+o);return this.store(a,i),i},t}(),oZ=function(t,e,r,o){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(u){try{c(o.next(u))}catch(d){a(d)}}function l(u){try{c(o.throw(u))}catch(d){a(d)}}function c(u){u.done?i(u.value):n(u.value).then(s,l)}c((o=o.apply(t,e||[])).next())})},lg=function(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,n,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(u){return l([c,u])}}function l(c){if(o)throw new TypeError("Generator is already executing.");for(;r;)try{if(o=1,n&&(i=c[0]&2?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,n=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]1||s(f,h)})})}function s(f,h){try{l(o[f](h))}catch(g){d(i[0][3],g)}}function l(f){f.value instanceof ja?Promise.resolve(f.value.v).then(c,u):d(i[0][2],f)}function c(f){s("next",f)}function u(f){s("throw",f)}function d(f,h){f(h),i.shift(),i.length&&s(i[0][0],i[0][1])}},iZ=function(t){var e=typeof t;return e==="string"||e==="number"},Ms=-1,s0=new DataView(new ArrayBuffer(0)),aZ=new Uint8Array(s0.buffer),um=function(){try{s0.getInt8(0)}catch(t){return t.constructor}throw new Error("never reached")}(),vk=new um("Insufficient data"),sZ=new rZ,lZ=function(){function t(e,r,o,n,i,a,s,l){e===void 0&&(e=oE.defaultCodec),r===void 0&&(r=void 0),o===void 0&&(o=gi),n===void 0&&(n=gi),i===void 0&&(i=gi),a===void 0&&(a=gi),s===void 0&&(s=gi),l===void 0&&(l=sZ),this.extensionCodec=e,this.context=r,this.maxStrLength=o,this.maxBinLength=n,this.maxArrayLength=i,this.maxMapLength=a,this.maxExtLength=s,this.keyDecoder=l,this.totalPos=0,this.pos=0,this.view=s0,this.bytes=aZ,this.headByte=Ms,this.stack=[]}return t.prototype.reinitializeState=function(){this.totalPos=0,this.headByte=Ms,this.stack.length=0},t.prototype.setBuffer=function(e){this.bytes=Fd(e),this.view=YY(this.bytes),this.pos=0},t.prototype.appendBuffer=function(e){if(this.headByte===Ms&&!this.hasRemaining(1))this.setBuffer(e);else{var r=this.bytes.subarray(this.pos),o=Fd(e),n=new Uint8Array(r.length+o.length);n.set(r),n.set(o,r.length),this.setBuffer(n)}},t.prototype.hasRemaining=function(e){return this.view.byteLength-this.pos>=e},t.prototype.createExtraByteError=function(e){var r=this,o=r.view,n=r.pos;return new RangeError("Extra ".concat(o.byteLength-n," of ").concat(o.byteLength," byte(s) found at buffer[").concat(e,"]"))},t.prototype.decode=function(e){this.reinitializeState(),this.setBuffer(e);var r=this.doDecodeSync();if(this.hasRemaining(1))throw this.createExtraByteError(this.pos);return r},t.prototype.decodeMulti=function(e){return lg(this,function(r){switch(r.label){case 0:this.reinitializeState(),this.setBuffer(e),r.label=1;case 1:return this.hasRemaining(1)?[4,this.doDecodeSync()]:[3,3];case 2:return r.sent(),[3,1];case 3:return[2]}})},t.prototype.decodeAsync=function(e){var r,o,n,i;return oZ(this,void 0,void 0,function(){var a,s,l,c,u,d,f,h;return lg(this,function(g){switch(g.label){case 0:a=!1,g.label=1;case 1:g.trys.push([1,6,7,12]),r=mk(e),g.label=2;case 2:return[4,r.next()];case 3:if(o=g.sent(),!!o.done)return[3,5];if(l=o.value,a)throw this.createExtraByteError(this.totalPos);this.appendBuffer(l);try{s=this.doDecodeSync(),a=!0}catch(m){if(!(m instanceof um))throw m}this.totalPos+=this.pos,g.label=4;case 4:return[3,2];case 5:return[3,12];case 6:return c=g.sent(),n={error:c},[3,12];case 7:return g.trys.push([7,,10,11]),o&&!o.done&&(i=r.return)?[4,i.call(r)]:[3,9];case 8:g.sent(),g.label=9;case 9:return[3,11];case 10:if(n)throw n.error;return[7];case 11:return[7];case 12:if(a){if(this.hasRemaining(1))throw this.createExtraByteError(this.totalPos);return[2,s]}throw u=this,d=u.headByte,f=u.pos,h=u.totalPos,new RangeError("Insufficient data in parsing ".concat(sg(d)," at ").concat(h," (").concat(f," in the current buffer)"))}})})},t.prototype.decodeArrayStream=function(e){return this.decodeMultiAsync(e,!0)},t.prototype.decodeStream=function(e){return this.decodeMultiAsync(e,!1)},t.prototype.decodeMultiAsync=function(e,r){return nZ(this,arguments,function(){var n,i,a,s,l,c,u,d,f;return lg(this,function(h){switch(h.label){case 0:n=r,i=-1,h.label=1;case 1:h.trys.push([1,13,14,19]),a=mk(e),h.label=2;case 2:return[4,ja(a.next())];case 3:if(s=h.sent(),!!s.done)return[3,12];if(l=s.value,r&&i===0)throw this.createExtraByteError(this.totalPos);this.appendBuffer(l),n&&(i=this.readArraySize(),n=!1,this.complete()),h.label=4;case 4:h.trys.push([4,9,,10]),h.label=5;case 5:return[4,ja(this.doDecodeSync())];case 6:return[4,h.sent()];case 7:return h.sent(),--i===0?[3,8]:[3,5];case 8:return[3,10];case 9:if(c=h.sent(),!(c instanceof um))throw c;return[3,10];case 10:this.totalPos+=this.pos,h.label=11;case 11:return[3,2];case 12:return[3,19];case 13:return u=h.sent(),d={error:u},[3,19];case 14:return h.trys.push([14,,17,18]),s&&!s.done&&(f=a.return)?[4,ja(f.call(a))]:[3,16];case 15:h.sent(),h.label=16;case 16:return[3,18];case 17:if(d)throw d.error;return[7];case 18:return[7];case 19:return[2]}})})},t.prototype.doDecodeSync=function(){e:for(;;){var e=this.readHeadByte(),r=void 0;if(e>=224)r=e-256;else if(e<192)if(e<128)r=e;else if(e<144){var o=e-128;if(o!==0){this.pushMapState(o),this.complete();continue e}else r={}}else if(e<160){var o=e-144;if(o!==0){this.pushArrayState(o),this.complete();continue e}else r=[]}else{var n=e-160;r=this.decodeUtf8String(n,0)}else if(e===192)r=null;else if(e===194)r=!1;else if(e===195)r=!0;else if(e===202)r=this.readF32();else if(e===203)r=this.readF64();else if(e===204)r=this.readU8();else if(e===205)r=this.readU16();else if(e===206)r=this.readU32();else if(e===207)r=this.readU64();else if(e===208)r=this.readI8();else if(e===209)r=this.readI16();else if(e===210)r=this.readI32();else if(e===211)r=this.readI64();else if(e===217){var n=this.lookU8();r=this.decodeUtf8String(n,1)}else if(e===218){var n=this.lookU16();r=this.decodeUtf8String(n,2)}else if(e===219){var n=this.lookU32();r=this.decodeUtf8String(n,4)}else if(e===220){var o=this.readU16();if(o!==0){this.pushArrayState(o),this.complete();continue e}else r=[]}else if(e===221){var o=this.readU32();if(o!==0){this.pushArrayState(o),this.complete();continue e}else r=[]}else if(e===222){var o=this.readU16();if(o!==0){this.pushMapState(o),this.complete();continue e}else r={}}else if(e===223){var o=this.readU32();if(o!==0){this.pushMapState(o),this.complete();continue e}else r={}}else if(e===196){var o=this.lookU8();r=this.decodeBinary(o,1)}else if(e===197){var o=this.lookU16();r=this.decodeBinary(o,2)}else if(e===198){var o=this.lookU32();r=this.decodeBinary(o,4)}else if(e===212)r=this.decodeExtension(1,0);else if(e===213)r=this.decodeExtension(2,0);else if(e===214)r=this.decodeExtension(4,0);else if(e===215)r=this.decodeExtension(8,0);else if(e===216)r=this.decodeExtension(16,0);else if(e===199){var o=this.lookU8();r=this.decodeExtension(o,1)}else if(e===200){var o=this.lookU16();r=this.decodeExtension(o,2)}else if(e===201){var o=this.lookU32();r=this.decodeExtension(o,4)}else throw new po("Unrecognized type byte: ".concat(sg(e)));this.complete();for(var i=this.stack;i.length>0;){var a=i[i.length-1];if(a.type===0)if(a.array[a.position]=r,a.position++,a.position===a.size)i.pop(),r=a.array;else continue e;else if(a.type===1){if(!iZ(r))throw new po("The type of key must be string or number but "+typeof r);if(r==="__proto__")throw new po("The key __proto__ is not allowed");a.key=r,a.type=2;continue e}else if(a.map[a.key]=r,a.readCount++,a.readCount===a.size)i.pop(),r=a.map;else{a.key=null,a.type=1;continue e}}return r}},t.prototype.readHeadByte=function(){return this.headByte===Ms&&(this.headByte=this.readU8()),this.headByte},t.prototype.complete=function(){this.headByte=Ms},t.prototype.readArraySize=function(){var e=this.readHeadByte();switch(e){case 220:return this.readU16();case 221:return this.readU32();default:{if(e<160)return e-144;throw new po("Unrecognized array type byte: ".concat(sg(e)))}}},t.prototype.pushMapState=function(e){if(e>this.maxMapLength)throw new po("Max length exceeded: map length (".concat(e,") > maxMapLengthLength (").concat(this.maxMapLength,")"));this.stack.push({type:1,size:e,key:null,readCount:0,map:{}})},t.prototype.pushArrayState=function(e){if(e>this.maxArrayLength)throw new po("Max length exceeded: array length (".concat(e,") > maxArrayLength (").concat(this.maxArrayLength,")"));this.stack.push({type:0,size:e,array:new Array(e),position:0})},t.prototype.decodeUtf8String=function(e,r){var o;if(e>this.maxStrLength)throw new po("Max length exceeded: UTF-8 byte length (".concat(e,") > maxStrLength (").concat(this.maxStrLength,")"));if(this.bytes.byteLengthDY?i=FY(this.bytes,n,e):i=rE(this.bytes,n,e),this.pos+=r+e,i},t.prototype.stateIsMapKey=function(){if(this.stack.length>0){var e=this.stack[this.stack.length-1];return e.type===1}return!1},t.prototype.decodeBinary=function(e,r){if(e>this.maxBinLength)throw new po("Max length exceeded: bin length (".concat(e,") > maxBinLength (").concat(this.maxBinLength,")"));if(!this.hasRemaining(e+r))throw vk;var o=this.pos+r,n=this.bytes.subarray(o,o+e);return this.pos+=r+e,n},t.prototype.decodeExtension=function(e,r){if(e>this.maxExtLength)throw new po("Max length exceeded: ext length (".concat(e,") > maxExtLength (").concat(this.maxExtLength,")"));var o=this.view.getInt8(this.pos+r),n=this.decodeBinary(e,r+1);return this.extensionCodec.decode(n,o,this.context)},t.prototype.lookU8=function(){return this.view.getUint8(this.pos)},t.prototype.lookU16=function(){return this.view.getUint16(this.pos)},t.prototype.lookU32=function(){return this.view.getUint32(this.pos)},t.prototype.readU8=function(){var e=this.view.getUint8(this.pos);return this.pos++,e},t.prototype.readI8=function(){var e=this.view.getInt8(this.pos);return this.pos++,e},t.prototype.readU16=function(){var e=this.view.getUint16(this.pos);return this.pos+=2,e},t.prototype.readI16=function(){var e=this.view.getInt16(this.pos);return this.pos+=2,e},t.prototype.readU32=function(){var e=this.view.getUint32(this.pos);return this.pos+=4,e},t.prototype.readI32=function(){var e=this.view.getInt32(this.pos);return this.pos+=4,e},t.prototype.readU64=function(){var e=RY(this.view,this.pos);return this.pos+=8,e},t.prototype.readI64=function(){var e=tE(this.view,this.pos);return this.pos+=8,e},t.prototype.readF32=function(){var e=this.view.getFloat32(this.pos);return this.pos+=4,e},t.prototype.readF64=function(){var e=this.view.getFloat64(this.pos);return this.pos+=8,e},t}();class go{static write(e){let r=e.byteLength||e.length;const o=[];do{let i=r&127;r=r>>7,r>0&&(i|=128),o.push(i)}while(r>0);r=e.byteLength||e.length;const n=new Uint8Array(o.length+r);return n.set(o,0),n.set(e,o.length),n.buffer}static parse(e){const r=[],o=new Uint8Array(e),n=5,i=[0,7,14,21,28];for(let a=0;a7)throw new Error("Messages bigger than 2GB are not supported.");if(o.byteLength>=a+s+l)r.push(o.slice?o.slice(a+s,a+s+l):o.subarray(a+s,a+s+l));else throw new Error("Incomplete message.");a=a+s+l}return r}}function cZ(t){return t&&typeof ArrayBuffer<"u"&&(t instanceof ArrayBuffer||t.constructor&&t.constructor.name==="ArrayBuffer")}const uZ=new Uint8Array([145,J.Ping]);class _ee{constructor(e){this.name="messagepack",this.version=2,this.transferFormat=Ot.Binary,this._errorResult=1,this._voidResult=2,this._nonVoidResult=3,e=e||{},this._encoder=new JY(e.extensionCodec,e.context,e.maxDepth,e.initialBufferSize,e.sortKeys,e.forceFloat32,e.ignoreUndefined,e.forceIntegerToFloat),this._decoder=new lZ(e.extensionCodec,e.context,e.maxStrLength,e.maxBinLength,e.maxArrayLength,e.maxMapLength,e.maxExtLength)}parseMessages(e,r){if(!cZ(e))throw new Error("Invalid input for MessagePack hub protocol. Expected an ArrayBuffer.");r===null&&(r=ls.instance);const o=go.parse(e),n=[];for(const i of o){const a=this._parseMessage(i,r);a&&n.push(a)}return n}writeMessage(e){switch(e.type){case J.Invocation:return this._writeInvocation(e);case J.StreamInvocation:return this._writeStreamInvocation(e);case J.StreamItem:return this._writeStreamItem(e);case J.Completion:return this._writeCompletion(e);case J.Ping:return go.write(uZ);case J.CancelInvocation:return this._writeCancelInvocation(e);case J.Close:return this._writeClose();case J.Ack:return this._writeAck(e);case J.Sequence:return this._writeSequence(e);default:throw new Error("Invalid message type.")}}_parseMessage(e,r){if(e.length===0)throw new Error("Invalid payload.");const o=this._decoder.decode(e);if(o.length===0||!(o instanceof Array))throw new Error("Invalid payload.");const n=o[0];switch(n){case J.Invocation:return this._createInvocationMessage(this._readHeaders(o),o);case J.StreamItem:return this._createStreamItemMessage(this._readHeaders(o),o);case J.Completion:return this._createCompletionMessage(this._readHeaders(o),o);case J.Ping:return this._createPingMessage(o);case J.Close:return this._createCloseMessage(o);case J.Ack:return this._createAckMessage(o);case J.Sequence:return this._createSequenceMessage(o);default:return r.log($.Information,"Unknown message type '"+n+"' ignored."),null}}_createCloseMessage(e){if(e.length<2)throw new Error("Invalid payload for Close message.");return{allowReconnect:e.length>=3?e[2]:void 0,error:e[1],type:J.Close}}_createPingMessage(e){if(e.length<1)throw new Error("Invalid payload for Ping message.");return{type:J.Ping}}_createInvocationMessage(e,r){if(r.length<5)throw new Error("Invalid payload for Invocation message.");const o=r[2];return o?{arguments:r[4],headers:e,invocationId:o,streamIds:[],target:r[3],type:J.Invocation}:{arguments:r[4],headers:e,streamIds:[],target:r[3],type:J.Invocation}}_createStreamItemMessage(e,r){if(r.length<4)throw new Error("Invalid payload for StreamItem message.");return{headers:e,invocationId:r[2],item:r[3],type:J.StreamItem}}_createCompletionMessage(e,r){if(r.length<4)throw new Error("Invalid payload for Completion message.");const o=r[3];if(o!==this._voidResult&&r.length<5)throw new Error("Invalid payload for Completion message.");let n,i;switch(o){case this._errorResult:n=r[4];break;case this._nonVoidResult:i=r[4];break}return{error:n,headers:e,invocationId:r[2],result:i,type:J.Completion}}_createAckMessage(e){if(e.length<1)throw new Error("Invalid payload for Ack message.");return{sequenceId:e[1],type:J.Ack}}_createSequenceMessage(e){if(e.length<1)throw new Error("Invalid payload for Sequence message.");return{sequenceId:e[1],type:J.Sequence}}_writeInvocation(e){let r;return e.streamIds?r=this._encoder.encode([J.Invocation,e.headers||{},e.invocationId||null,e.target,e.arguments,e.streamIds]):r=this._encoder.encode([J.Invocation,e.headers||{},e.invocationId||null,e.target,e.arguments]),go.write(r.slice())}_writeStreamInvocation(e){let r;return e.streamIds?r=this._encoder.encode([J.StreamInvocation,e.headers||{},e.invocationId,e.target,e.arguments,e.streamIds]):r=this._encoder.encode([J.StreamInvocation,e.headers||{},e.invocationId,e.target,e.arguments]),go.write(r.slice())}_writeStreamItem(e){const r=this._encoder.encode([J.StreamItem,e.headers||{},e.invocationId,e.item]);return go.write(r.slice())}_writeCompletion(e){const r=e.error?this._errorResult:e.result!==void 0?this._nonVoidResult:this._voidResult;let o;switch(r){case this._errorResult:o=this._encoder.encode([J.Completion,e.headers||{},e.invocationId,r,e.error]);break;case this._voidResult:o=this._encoder.encode([J.Completion,e.headers||{},e.invocationId,r]);break;case this._nonVoidResult:o=this._encoder.encode([J.Completion,e.headers||{},e.invocationId,r,e.result]);break}return go.write(o.slice())}_writeCancelInvocation(e){const r=this._encoder.encode([J.CancelInvocation,e.headers||{},e.invocationId]);return go.write(r.slice())}_writeClose(){const e=this._encoder.encode([J.Close,null]);return go.write(e.slice())}_writeAck(e){const r=this._encoder.encode([J.Ack,e.sequenceId]);return go.write(r.slice())}_writeSequence(e){const r=this._encoder.encode([J.Sequence,e.sequenceId]);return go.write(r.slice())}_readHeaders(e){const r=e[1];if(typeof r!="object")throw new Error("Invalid headers.");return r}}function Jo(t){return typeof t=="function"}function nE(t){var e=function(o){Error.call(o),o.stack=new Error().stack},r=t(e);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var cg=nE(function(t){return function(r){t(this),this.message=r?r.length+` errors occurred during unsubscription: +`+r.map(function(o,n){return n+1+") "+o.toString()}).join(` + `):"",this.name="UnsubscriptionError",this.errors=r}});function dm(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var Vf=function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,r,o,n,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var s=lm(a),l=s.next();!l.done;l=s.next()){var c=l.value;c.remove(this)}}catch(m){e={error:m}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}else a.remove(this);var u=this.initialTeardown;if(Jo(u))try{u()}catch(m){i=m instanceof cg?m.errors:[m]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var f=lm(d),h=f.next();!h.done;h=f.next()){var g=h.value;try{bk(g)}catch(m){i=i??[],m instanceof cg?i=pt(pt([],lt(i)),lt(m.errors)):i.push(m)}}}catch(m){o={error:m}}finally{try{h&&!h.done&&(n=f.return)&&n.call(f)}finally{if(o)throw o.error}}}if(i)throw new cg(i)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)bk(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}},t.prototype._hasParent=function(e){var r=this._parentage;return r===e||Array.isArray(r)&&r.includes(e)},t.prototype._addParent=function(e){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e},t.prototype._removeParent=function(e){var r=this._parentage;r===e?this._parentage=null:Array.isArray(r)&&dm(r,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&dm(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),iE=Vf.EMPTY;function aE(t){return t instanceof Vf||t&&"closed"in t&&Jo(t.remove)&&Jo(t.add)&&Jo(t.unsubscribe)}function bk(t){Jo(t)?t():t.unsubscribe()}var sE={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},lE={setTimeout:function(t,e){for(var r=[],o=2;o0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(r){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,r)},e.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},e.prototype._innerSubscribe=function(r){var o=this,n=this,i=n.hasError,a=n.isStopped,s=n.observers;return i||a?iE:(this.currentObservers=null,s.push(r),new Vf(function(){o.currentObservers=null,dm(s,r)}))},e.prototype._checkFinalizedStatuses=function(r){var o=this,n=o.hasError,i=o.thrownError,a=o.isStopped;n?r.error(i):a&&r.complete()},e.prototype.asObservable=function(){var r=new wk;return r.source=this,r},e.create=function(r,o){return new Sk(r,o)},e}(wk),Sk=function(t){Hf(e,t);function e(r,o){var n=t.call(this)||this;return n.destination=r,n.source=o,n}return e.prototype.next=function(r){var o,n;(n=(o=this.destination)===null||o===void 0?void 0:o.next)===null||n===void 0||n.call(o,r)},e.prototype.error=function(r){var o,n;(n=(o=this.destination)===null||o===void 0?void 0:o.error)===null||n===void 0||n.call(o,r)},e.prototype.complete=function(){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||o===void 0||o.call(r)},e.prototype._subscribe=function(r){var o,n;return(n=(o=this.source)===null||o===void 0?void 0:o.subscribe(r))!==null&&n!==void 0?n:iE},e}(SZ);const je=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,bt=Object.keys,Wt=Array.isArray;function rr(t,e){return typeof e!="object"||bt(e).forEach(function(r){t[r]=e[r]}),t}typeof Promise>"u"||je.Promise||(je.Promise=Promise);const Wl=Object.getPrototypeOf,_Z={}.hasOwnProperty;function Tr(t,e){return _Z.call(t,e)}function us(t,e){typeof e=="function"&&(e=e(Wl(t))),(typeof Reflect>"u"?bt:Reflect.ownKeys)(e).forEach(r=>{en(t,r,e[r])})}const uE=Object.defineProperty;function en(t,e,r,o){uE(t,e,rr(r&&Tr(r,"get")&&typeof r.get=="function"?{get:r.get,set:r.set,configurable:!0}:{value:r,configurable:!0,writable:!0},o))}function Da(t){return{from:function(e){return t.prototype=Object.create(e.prototype),en(t.prototype,"constructor",t),{extend:us.bind(null,t.prototype)}}}}const xZ=Object.getOwnPropertyDescriptor;function l0(t,e){let r;return xZ(t,e)||(r=Wl(t))&&l0(r,e)}const CZ=[].slice;function qd(t,e,r){return CZ.call(t,e,r)}function dE(t,e){return e(t)}function Xs(t){if(!t)throw new Error("Assertion Failed")}function fE(t){je.setImmediate?setImmediate(t):setTimeout(t,0)}function hE(t,e){return t.reduce((r,o,n)=>{var i=e(o,n);return i&&(r[i[0]]=i[1]),r},{})}function tn(t,e){if(Tr(t,e))return t[e];if(!e)return t;if(typeof e!="string"){for(var r=[],o=0,n=e.length;o["Int","Uint","Float"].map(e=>e+t+"Array")))).filter(t=>je[t]),EZ=mE.map(t=>je[t]);hE(mE,t=>[t,!0]);let xn=null;function wc(t){xn=typeof WeakMap<"u"&&new WeakMap;const e=hm(t);return xn=null,e}function hm(t){if(!t||typeof t!="object")return t;let e=xn&&xn.get(t);if(e)return e;if(Wt(t)){e=[],xn&&xn.set(t,e);for(var r=0,o=t.length;r=0)e=t;else{const i=Wl(t);for(var n in e=i===Object.prototype?{}:Object.create(i),xn&&xn.set(t,e),t)Tr(t,n)&&(e[n]=hm(t[n]))}return e}const{toString:BZ}={};function gm(t){return BZ.call(t).slice(8,-1)}const pm=typeof Symbol<"u"?Symbol.iterator:"@@iterator",IZ=typeof pm=="symbol"?function(t){var e;return t!=null&&(e=t[pm])&&e.apply(t)}:function(){return null},fa={};function Ko(t){var e,r,o,n;if(arguments.length===1){if(Wt(t))return t.slice();if(this===fa&&typeof t=="string")return[t];if(n=IZ(t)){for(r=[];!(o=n.next()).done;)r.push(o.value);return r}if(t==null)return[t];if(typeof(e=t.length)=="number"){for(r=new Array(e);e--;)r[e]=t[e];return r}return[t]}for(e=arguments.length,r=new Array(e);e--;)r[e]=arguments[e];return r}const c0=typeof Symbol<"u"?t=>t[Symbol.toStringTag]==="AsyncFunction":()=>!1;var zo=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function vE(t,e){zo=t,bE=e}var bE=()=>!0;const RZ=!new Error("").stack;function Yi(){if(RZ)try{throw Yi.arguments,new Error}catch(t){return t}return new Error}function mm(t,e){var r=t.stack;return r?(e=e||0,r.indexOf(t.name)===0&&(e+=(t.name+t.message).split(` +`).length),r.split(` +`).slice(e).filter(bE).map(o=>` +`+o).join("")):""}var yE=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],u0=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(yE),AZ={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function Fa(t,e){this._e=Yi(),this.name=t,this.message=e}function wE(t,e){return t+". Errors: "+Object.keys(e).map(r=>e[r].toString()).filter((r,o,n)=>n.indexOf(r)===o).join(` +`)}function Ld(t,e,r,o){this._e=Yi(),this.failures=e,this.failedKeys=o,this.successCount=r,this.message=wE(t,e)}function gl(t,e){this._e=Yi(),this.name="BulkError",this.failures=Object.keys(e).map(r=>e[r]),this.failuresByPos=e,this.message=wE(t,e)}Da(Fa).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+mm(this._e,2))}},toString:function(){return this.name+": "+this.message}}),Da(Ld).from(Fa),Da(gl).from(Fa);var d0=u0.reduce((t,e)=>(t[e]=e+"Error",t),{});const NZ=Fa;var ve=u0.reduce((t,e)=>{var r=e+"Error";function o(n,i){this._e=Yi(),this.name=r,n?typeof n=="string"?(this.message=`${n}${i?` + `+i:""}`,this.inner=i||null):typeof n=="object"&&(this.message=`${n.name} ${n.message}`,this.inner=n):(this.message=AZ[e]||r,this.inner=null)}return Da(o).from(NZ),t[e]=o,t},{});ve.Syntax=SyntaxError,ve.Type=TypeError,ve.Range=RangeError;var _k=yE.reduce((t,e)=>(t[e+"Error"]=ve[e],t),{}),Fu=u0.reduce((t,e)=>(["Syntax","Type","Range"].indexOf(e)===-1&&(t[e+"Error"]=ve[e]),t),{});function Ie(){}function Vl(t){return t}function PZ(t,e){return t==null||t===Vl?e:function(r){return e(t(r))}}function Li(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}}function zZ(t,e){return t===Ie?e:function(){var r=t.apply(this,arguments);r!==void 0&&(arguments[0]=r);var o=this.onsuccess,n=this.onerror;this.onsuccess=null,this.onerror=null;var i=e.apply(this,arguments);return o&&(this.onsuccess=this.onsuccess?Li(o,this.onsuccess):o),n&&(this.onerror=this.onerror?Li(n,this.onerror):n),i!==void 0?i:r}}function MZ(t,e){return t===Ie?e:function(){t.apply(this,arguments);var r=this.onsuccess,o=this.onerror;this.onsuccess=this.onerror=null,e.apply(this,arguments),r&&(this.onsuccess=this.onsuccess?Li(r,this.onsuccess):r),o&&(this.onerror=this.onerror?Li(o,this.onerror):o)}}function OZ(t,e){return t===Ie?e:function(r){var o=t.apply(this,arguments);rr(r,o);var n=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var a=e.apply(this,arguments);return n&&(this.onsuccess=this.onsuccess?Li(n,this.onsuccess):n),i&&(this.onerror=this.onerror?Li(i,this.onerror):i),o===void 0?a===void 0?void 0:a:rr(o,a)}}function jZ(t,e){return t===Ie?e:function(){return e.apply(this,arguments)!==!1&&t.apply(this,arguments)}}function f0(t,e){return t===Ie?e:function(){var r=t.apply(this,arguments);if(r&&typeof r.then=="function"){for(var o=this,n=arguments.length,i=new Array(n);n--;)i[n]=arguments[n];return r.then(function(){return e.apply(o,i)})}return e.apply(this,arguments)}}Fu.ModifyError=Ld,Fu.DexieError=Fa,Fu.BulkError=gl;var Gl={};const kE=100,[vm,Hd,bm]=typeof Promise>"u"?[]:(()=>{let t=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[t,Wl(t),t];const e=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[e,Wl(e),t]})(),SE=Hd&&Hd.then,qu=vm&&vm.constructor,h0=!!bm;var ym=!1,DZ=bm?()=>{bm.then(du)}:je.setImmediate?setImmediate.bind(null,du):je.MutationObserver?()=>{var t=document.createElement("div");new MutationObserver(()=>{du(),t=null}).observe(t,{attributes:!0}),t.setAttribute("i","1")}:()=>{setTimeout(du,0)},pl=function(t,e){Ys.push([t,e]),Ud&&(DZ(),Ud=!1)},wm=!0,Ud=!0,Ei=[],Lu=[],km=null,Sm=Vl,qa={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:Tk,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach(t=>{try{Tk(t[0],t[1])}catch{}})}},ue=qa,Ys=[],Bi=0,Hu=[];function ie(t){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=Ie,this._lib=!1;var e=this._PSD=ue;if(zo&&(this._stackHolder=Yi(),this._prev=null,this._numPrev=0),typeof t!="function"){if(t!==Gl)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(this._state===!1&&xm(this,this._value))}this._state=null,this._value=null,++e.ref,xE(this,t)}const _m={get:function(){var t=ue,e=$d;function r(o,n){var i=!t.global&&(t!==ue||e!==$d);const a=i&&!dn();var s=new ie((l,c)=>{g0(this,new _E(Kd(o,t,i,a),Kd(n,t,i,a),l,c,t))});return zo&&EE(s,this),s}return r.prototype=Gl,r},set:function(t){en(this,"then",t&&t.prototype===Gl?_m:{get:function(){return t},set:_m.set})}};function _E(t,e,r,o,n){this.onFulfilled=typeof t=="function"?t:null,this.onRejected=typeof e=="function"?e:null,this.resolve=r,this.reject=o,this.psd=n}function xE(t,e){try{e(r=>{if(t._state===null){if(r===t)throw new TypeError("A promise cannot be resolved with itself.");var o=t._lib&&kc();r&&typeof r.then=="function"?xE(t,(n,i)=>{r instanceof ie?r._then(n,i):r.then(n,i)}):(t._state=!0,t._value=r,CE(t)),o&&Sc()}},xm.bind(null,t))}catch(r){xm(t,r)}}function xm(t,e){if(Lu.push(e),t._state===null){var r=t._lib&&kc();e=Sm(e),t._state=!1,t._value=e,zo&&e!==null&&typeof e=="object"&&!e._promise&&function(o,n,i){try{o.apply(null,i)}catch(a){n&&n(a)}}(()=>{var o=l0(e,"stack");e._promise=t,en(e,"stack",{get:()=>ym?o&&(o.get?o.get.apply(e):o.value):t.stack})}),function(o){Ei.some(n=>n._value===o._value)||Ei.push(o)}(t),CE(t),r&&Sc()}}function CE(t){var e=t._listeners;t._listeners=[];for(var r=0,o=e.length;r{--Bi==0&&p0()},[]))}function g0(t,e){if(t._state!==null){var r=t._state?e.onFulfilled:e.onRejected;if(r===null)return(t._state?e.resolve:e.reject)(t._value);++e.psd.ref,++Bi,pl(FZ,[r,t,e])}else t._listeners.push(e)}function FZ(t,e,r){try{km=e;var o,n=e._value;e._state?o=t(n):(Lu.length&&(Lu=[]),o=t(n),Lu.indexOf(n)===-1&&function(i){for(var a=Ei.length;a;)if(Ei[--a]._value===i._value)return void Ei.splice(a,1)}(e)),r.resolve(o)}catch(i){r.reject(i)}finally{km=null,--Bi==0&&p0(),--r.psd.ref||r.psd.finalize()}}function TE(t,e,r){if(e.length===r)return e;var o="";if(t._state===!1){var n,i,a=t._value;a!=null?(n=a.name||"Error",i=a.message||a,o=mm(a,0)):(n=a,i=""),e.push(n+(i?": "+i:"")+o)}return zo&&((o=mm(t._stackHolder,2))&&e.indexOf(o)===-1&&e.push(o),t._prev&&TE(t._prev,e,r)),e}function EE(t,e){var r=e?e._numPrev+1:0;r<100&&(t._prev=e,t._numPrev=r)}function du(){kc()&&Sc()}function kc(){var t=wm;return wm=!1,Ud=!1,t}function Sc(){var t,e,r;do for(;Ys.length>0;)for(t=Ys,Ys=[],r=t.length,e=0;e0);wm=!0,Ud=!0}function p0(){var t=Ei;Ei=[],t.forEach(o=>{o._PSD.onunhandled.call(null,o._value,o)});for(var e=Hu.slice(0),r=e.length;r;)e[--r]()}function fu(t){return new ie(Gl,!1,t)}function $e(t,e){var r=ue;return function(){var o=kc(),n=ue;try{return Xn(r,!0),t.apply(this,arguments)}catch(i){e&&e(i)}finally{Xn(n,!1),o&&Sc()}}}us(ie.prototype,{then:_m,_then:function(t,e){g0(this,new _E(null,null,t,e,ue))},catch:function(t){if(arguments.length===1)return this.then(null,t);var e=arguments[0],r=arguments[1];return typeof e=="function"?this.then(null,o=>o instanceof e?r(o):fu(o)):this.then(null,o=>o&&o.name===e?r(o):fu(o))},finally:function(t){return this.then(e=>(t(),e),e=>(t(),fu(e)))},stack:{get:function(){if(this._stack)return this._stack;try{ym=!0;var t=TE(this,[],20).join(` +From previous: `);return this._state!==null&&(this._stack=t),t}finally{ym=!1}}},timeout:function(t,e){return t<1/0?new ie((r,o)=>{var n=setTimeout(()=>o(new ve.Timeout(e)),t);this.then(r,o).finally(clearTimeout.bind(null,n))}):this}}),typeof Symbol<"u"&&Symbol.toStringTag&&en(ie.prototype,Symbol.toStringTag,"Dexie.Promise"),qa.env=BE(),us(ie,{all:function(){var t=Ko.apply(null,arguments).map(hu);return new ie(function(e,r){t.length===0&&e([]);var o=t.length;t.forEach((n,i)=>ie.resolve(n).then(a=>{t[i]=a,--o||e(t)},r))})},resolve:t=>{if(t instanceof ie)return t;if(t&&typeof t.then=="function")return new ie((r,o)=>{t.then(r,o)});var e=new ie(Gl,!0,t);return EE(e,km),e},reject:fu,race:function(){var t=Ko.apply(null,arguments).map(hu);return new ie((e,r)=>{t.map(o=>ie.resolve(o).then(e,r))})},PSD:{get:()=>ue,set:t=>ue=t},totalEchoes:{get:()=>$d},newPSD:Gn,usePSD:ks,scheduler:{get:()=>pl,set:t=>{pl=t}},rejectionMapper:{get:()=>Sm,set:t=>{Sm=t}},follow:(t,e)=>new ie((r,o)=>Gn((n,i)=>{var a=ue;a.unhandleds=[],a.onunhandled=i,a.finalize=Li(function(){(function(s){function l(){s(),Hu.splice(Hu.indexOf(l),1)}Hu.push(l),++Bi,pl(()=>{--Bi==0&&p0()},[])})(()=>{this.unhandleds.length===0?n():i(this.unhandleds[0])})},a.finalize),t()},e,r,o))}),qu&&(qu.allSettled&&en(ie,"allSettled",function(){const t=Ko.apply(null,arguments).map(hu);return new ie(e=>{t.length===0&&e([]);let r=t.length;const o=new Array(r);t.forEach((n,i)=>ie.resolve(n).then(a=>o[i]={status:"fulfilled",value:a},a=>o[i]={status:"rejected",reason:a}).then(()=>--r||e(o)))})}),qu.any&&typeof AggregateError<"u"&&en(ie,"any",function(){const t=Ko.apply(null,arguments).map(hu);return new ie((e,r)=>{t.length===0&&r(new AggregateError([]));let o=t.length;const n=new Array(o);t.forEach((i,a)=>ie.resolve(i).then(s=>e(s),s=>{n[a]=s,--o||r(new AggregateError(n))}))})}));const $t={awaits:0,echoes:0,id:0};var qZ=0,Uu=[],dg=0,$d=0,LZ=0;function Gn(t,e,r,o){var n=ue,i=Object.create(n);i.parent=n,i.ref=0,i.global=!1,i.id=++LZ;var a=qa.env;i.env=h0?{Promise:ie,PromiseProp:{value:ie,configurable:!0,writable:!0},all:ie.all,race:ie.race,allSettled:ie.allSettled,any:ie.any,resolve:ie.resolve,reject:ie.reject,nthen:xk(a.nthen,i),gthen:xk(a.gthen,i)}:{},e&&rr(i,e),++n.ref,i.finalize=function(){--this.parent.ref||this.parent.finalize()};var s=ks(i,t,r,o);return i.ref===0&&i.finalize(),s}function ws(){return $t.id||($t.id=++qZ),++$t.awaits,$t.echoes+=kE,$t.id}function dn(){return!!$t.awaits&&(--$t.awaits==0&&($t.id=0),$t.echoes=$t.awaits*kE,!0)}function hu(t){return $t.echoes&&t&&t.constructor===qu?(ws(),t.then(e=>(dn(),e),e=>(dn(),Tt(e)))):t}function HZ(t){++$d,$t.echoes&&--$t.echoes!=0||($t.echoes=$t.id=0),Uu.push(ue),Xn(t,!0)}function UZ(){var t=Uu[Uu.length-1];Uu.pop(),Xn(t,!1)}function Xn(t,e){var r=ue;if((e?!$t.echoes||dg++&&t===ue:!dg||--dg&&t===ue)||IE(e?HZ.bind(null,t):UZ),t!==ue&&(ue=t,r===qa&&(qa.env=BE()),h0)){var o=qa.env.Promise,n=t.env;Hd.then=n.nthen,o.prototype.then=n.gthen,(r.global||t.global)&&(Object.defineProperty(je,"Promise",n.PromiseProp),o.all=n.all,o.race=n.race,o.resolve=n.resolve,o.reject=n.reject,n.allSettled&&(o.allSettled=n.allSettled),n.any&&(o.any=n.any))}}function BE(){var t=je.Promise;return h0?{Promise:t,PromiseProp:Object.getOwnPropertyDescriptor(je,"Promise"),all:t.all,race:t.race,allSettled:t.allSettled,any:t.any,resolve:t.resolve,reject:t.reject,nthen:Hd.then,gthen:t.prototype.then}:{}}function ks(t,e,r,o,n){var i=ue;try{return Xn(t,!0),e(r,o,n)}finally{Xn(i,!1)}}function IE(t){SE.call(vm,t)}function Kd(t,e,r,o){return typeof t!="function"?t:function(){var n=ue;r&&ws(),Xn(e,!0);try{return t.apply(this,arguments)}finally{Xn(n,!1),o&&IE(dn)}}}function xk(t,e){return function(r,o){return t.call(this,Kd(r,e),Kd(o,e))}}(""+SE).indexOf("[native code]")===-1&&(ws=dn=Ie);const Ck="unhandledrejection";function Tk(t,e){var r;try{r=e.onuncatched(t)}catch{}if(r!==!1)try{var o,n={promise:e,reason:t};if(je.document&&document.createEvent?((o=document.createEvent("Event")).initEvent(Ck,!0,!0),rr(o,n)):je.CustomEvent&&rr(o=new CustomEvent(Ck,{detail:n}),n),o&&je.dispatchEvent&&(dispatchEvent(o),!je.PromiseRejectionEvent&&je.onunhandledrejection))try{je.onunhandledrejection(o)}catch{}zo&&o&&!o.defaultPrevented&&console.warn(`Unhandled rejection: ${t.stack||t}`)}catch{}}var Tt=ie.reject;function Cm(t,e,r,o){if(t.idbdb&&(t._state.openComplete||ue.letThrough||t._vip)){var n=t._createTransaction(e,r,t._dbSchema);try{n.create(),t._state.PR1398_maxLoop=3}catch(i){return i.name===d0.InvalidState&&t.isOpen()&&--t._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),t._close(),t.open().then(()=>Cm(t,e,r,o))):Tt(i)}return n._promise(e,(i,a)=>Gn(()=>(ue.trans=n,o(i,a,n)))).then(i=>n._completion.then(()=>i))}if(t._state.openComplete)return Tt(new ve.DatabaseClosed(t._state.dbOpenError));if(!t._state.isBeingOpened){if(!t._options.autoOpen)return Tt(new ve.DatabaseClosed);t.open().catch(Ie)}return t._state.dbReadyPromise.then(()=>Cm(t,e,r,o))}const Ek="3.2.4",wi="ï¿¿",Tm=-1/0,Oo="Invalid key provided. Keys must be of type string, number, Date or Array.",RE="String expected.",ml=[],Gf=typeof navigator<"u"&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),$Z=Gf,KZ=Gf,AE=t=>!/(dexie\.js|dexie\.min\.js)/.test(t),Xf="__dbnames",fg="readonly",hg="readwrite";function Hi(t,e){return t?e?function(){return t.apply(this,arguments)&&e.apply(this,arguments)}:t:e}const NE={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function gu(t){return typeof t!="string"||/\./.test(t)?e=>e:e=>(e[t]===void 0&&t in e&&delete(e=wc(e))[t],e)}class WZ{_trans(e,r,o){const n=this._tx||ue.trans,i=this.name;function a(l,c,u){if(!u.schema[i])throw new ve.NotFound("Table "+i+" not part of transaction");return r(u.idbtrans,u)}const s=kc();try{return n&&n.db===this.db?n===ue.trans?n._promise(e,a,o):Gn(()=>n._promise(e,a,o),{trans:n,transless:ue.transless||ue}):Cm(this.db,e,[this.name],a)}finally{s&&Sc()}}get(e,r){return e&&e.constructor===Object?this.where(e).first(r):this._trans("readonly",o=>this.core.get({trans:o,key:e}).then(n=>this.hook.reading.fire(n))).then(r)}where(e){if(typeof e=="string")return new this.db.WhereClause(this,e);if(Wt(e))return new this.db.WhereClause(this,`[${e.join("+")}]`);const r=bt(e);if(r.length===1)return this.where(r[0]).equals(e[r[0]]);const o=this.schema.indexes.concat(this.schema.primKey).filter(c=>c.compound&&r.every(u=>c.keyPath.indexOf(u)>=0)&&c.keyPath.every(u=>r.indexOf(u)>=0))[0];if(o&&this.db._maxKey!==wi)return this.where(o.name).equals(o.keyPath.map(c=>e[c]));!o&&zo&&console.warn(`The query ${JSON.stringify(e)} on ${this.name} would benefit of a compound index [${r.join("+")}]`);const{idxByName:n}=this.schema,i=this.db._deps.indexedDB;function a(c,u){try{return i.cmp(c,u)===0}catch{return!1}}const[s,l]=r.reduce(([c,u],d)=>{const f=n[d],h=e[d];return[c||f,c||!f?Hi(u,f&&f.multi?g=>{const m=tn(g,d);return Wt(m)&&m.some(w=>a(h,w))}:g=>a(h,tn(g,d))):u]},[null,null]);return s?this.where(s.name).equals(e[s.keyPath]).filter(l):o?this.filter(l):this.where(r).equals("")}filter(e){return this.toCollection().and(e)}count(e){return this.toCollection().count(e)}offset(e){return this.toCollection().offset(e)}limit(e){return this.toCollection().limit(e)}each(e){return this.toCollection().each(e)}toArray(e){return this.toCollection().toArray(e)}toCollection(){return new this.db.Collection(new this.db.WhereClause(this))}orderBy(e){return new this.db.Collection(new this.db.WhereClause(this,Wt(e)?`[${e.join("+")}]`:e))}reverse(){return this.toCollection().reverse()}mapToClass(e){this.schema.mappedClass=e;const r=o=>{if(!o)return o;const n=Object.create(e.prototype);for(var i in o)if(Tr(o,i))try{n[i]=o[i]}catch{}return n};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=r,this.hook("reading",r),e}defineClass(){return this.mapToClass(function(e){rr(this,e)})}add(e,r){const{auto:o,keyPath:n}=this.schema.primKey;let i=e;return n&&o&&(i=gu(n)(e)),this._trans("readwrite",a=>this.core.mutate({trans:a,type:"add",keys:r!=null?[r]:null,values:[i]})).then(a=>a.numFailures?ie.reject(a.failures[0]):a.lastResult).then(a=>{if(n)try{ao(e,n,a)}catch{}return a})}update(e,r){if(typeof e!="object"||Wt(e))return this.where(":id").equals(e).modify(r);{const o=tn(e,this.schema.primKey.keyPath);if(o===void 0)return Tt(new ve.InvalidArgument("Given object does not contain its primary key"));try{typeof r!="function"?bt(r).forEach(n=>{ao(e,n,r[n])}):r(e,{value:e,primKey:o})}catch{}return this.where(":id").equals(o).modify(r)}}put(e,r){const{auto:o,keyPath:n}=this.schema.primKey;let i=e;return n&&o&&(i=gu(n)(e)),this._trans("readwrite",a=>this.core.mutate({trans:a,type:"put",values:[i],keys:r!=null?[r]:null})).then(a=>a.numFailures?ie.reject(a.failures[0]):a.lastResult).then(a=>{if(n)try{ao(e,n,a)}catch{}return a})}delete(e){return this._trans("readwrite",r=>this.core.mutate({trans:r,type:"delete",keys:[e]})).then(r=>r.numFailures?ie.reject(r.failures[0]):void 0)}clear(){return this._trans("readwrite",e=>this.core.mutate({trans:e,type:"deleteRange",range:NE})).then(e=>e.numFailures?ie.reject(e.failures[0]):void 0)}bulkGet(e){return this._trans("readonly",r=>this.core.getMany({keys:e,trans:r}).then(o=>o.map(n=>this.hook.reading.fire(n))))}bulkAdd(e,r,o){const n=Array.isArray(r)?r:void 0,i=(o=o||(n?void 0:r))?o.allKeys:void 0;return this._trans("readwrite",a=>{const{auto:s,keyPath:l}=this.schema.primKey;if(l&&n)throw new ve.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(n&&n.length!==e.length)throw new ve.InvalidArgument("Arguments objects and keys must have the same length");const c=e.length;let u=l&&s?e.map(gu(l)):e;return this.core.mutate({trans:a,type:"add",keys:n,values:u,wantResults:i}).then(({numFailures:d,results:f,lastResult:h,failures:g})=>{if(d===0)return i?f:h;throw new gl(`${this.name}.bulkAdd(): ${d} of ${c} operations failed`,g)})})}bulkPut(e,r,o){const n=Array.isArray(r)?r:void 0,i=(o=o||(n?void 0:r))?o.allKeys:void 0;return this._trans("readwrite",a=>{const{auto:s,keyPath:l}=this.schema.primKey;if(l&&n)throw new ve.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(n&&n.length!==e.length)throw new ve.InvalidArgument("Arguments objects and keys must have the same length");const c=e.length;let u=l&&s?e.map(gu(l)):e;return this.core.mutate({trans:a,type:"put",keys:n,values:u,wantResults:i}).then(({numFailures:d,results:f,lastResult:h,failures:g})=>{if(d===0)return i?f:h;throw new gl(`${this.name}.bulkPut(): ${d} of ${c} operations failed`,g)})})}bulkDelete(e){const r=e.length;return this._trans("readwrite",o=>this.core.mutate({trans:o,type:"delete",keys:e})).then(({numFailures:o,lastResult:n,failures:i})=>{if(o===0)return n;throw new gl(`${this.name}.bulkDelete(): ${o} of ${r} operations failed`,i)})}}function vl(t){var e={},r=function(a,s){if(s){for(var l=arguments.length,c=new Array(l-1);--l;)c[l-1]=arguments[l];return e[a].subscribe.apply(null,c),t}if(typeof a=="string")return e[a]};r.addEventType=i;for(var o=1,n=arguments.length;oHi(o(),e()):e,t.justLimit=r&&!o}function $u(t,e){if(t.isPrimKey)return e.primaryKey;const r=e.getIndexByKeyPath(t.index);if(!r)throw new ve.Schema("KeyPath "+t.index+" on object store "+e.name+" is not indexed");return r}function Bk(t,e,r){const o=$u(t,e.schema);return e.openCursor({trans:r,values:!t.keysOnly,reverse:t.dir==="prev",unique:!!t.unique,query:{index:o,range:t.range}})}function pu(t,e,r,o){const n=t.replayFilter?Hi(t.filter,t.replayFilter()):t.filter;if(t.or){const i={},a=(s,l,c)=>{if(!n||n(l,c,f=>l.stop(f),f=>l.fail(f))){var u=l.primaryKey,d=""+u;d==="[object ArrayBuffer]"&&(d=""+new Uint8Array(u)),Tr(i,d)||(i[d]=!0,e(s,l,c))}};return Promise.all([t.or._iterate(a,r),Ik(Bk(t,o,r),t.algorithm,a,!t.keysOnly&&t.valueMapper)])}return Ik(Bk(t,o,r),Hi(t.algorithm,n),e,!t.keysOnly&&t.valueMapper)}function Ik(t,e,r,o){var n=$e(o?(i,a,s)=>r(o(i),a,s):r);return t.then(i=>{if(i)return i.start(()=>{var a=()=>i.continue();e&&!e(i,s=>a=s,s=>{i.stop(s),a=Ie},s=>{i.fail(s),a=Ie})||n(i.value,i,s=>a=s),a()})})}function Zt(t,e){try{const r=Rk(t),o=Rk(e);if(r!==o)return r==="Array"?1:o==="Array"?-1:r==="binary"?1:o==="binary"?-1:r==="string"?1:o==="string"?-1:r==="Date"?1:o!=="Date"?NaN:-1;switch(r){case"number":case"Date":case"string":return t>e?1:tpu(r,e,o,r.table.core))}count(e){return this._read(r=>{const o=this._ctx,n=o.table.core;if(ia(o,!0))return n.count({trans:r,query:{index:$u(o,n.schema),range:o.range}}).then(a=>Math.min(a,o.limit));var i=0;return pu(o,()=>(++i,!1),r,n).then(()=>i)}).then(e)}sortBy(e,r){const o=e.split(".").reverse(),n=o[0],i=o.length-1;function a(c,u){return u?a(c[o[u]],u-1):c[n]}var s=this._ctx.dir==="next"?1:-1;function l(c,u){var d=a(c,i),f=a(u,i);return df?s:0}return this.toArray(function(c){return c.sort(l)}).then(r)}toArray(e){return this._read(r=>{var o=this._ctx;if(o.dir==="next"&&ia(o,!0)&&o.limit>0){const{valueMapper:n}=o,i=$u(o,o.table.core.schema);return o.table.core.query({trans:r,limit:o.limit,values:!0,query:{index:i,range:o.range}}).then(({result:a})=>n?a.map(n):a)}{const n=[];return pu(o,i=>n.push(i),r,o.table.core).then(()=>n)}},e)}offset(e){var r=this._ctx;return e<=0||(r.offset+=e,ia(r)?pg(r,()=>{var o=e;return(n,i)=>o===0||(o===1?(--o,!1):(i(()=>{n.advance(o),o=0}),!1))}):pg(r,()=>{var o=e;return()=>--o<0})),this}limit(e){return this._ctx.limit=Math.min(this._ctx.limit,e),pg(this._ctx,()=>{var r=e;return function(o,n,i){return--r<=0&&n(i),r>=0}},!0),this}until(e,r){return gg(this._ctx,function(o,n,i){return!e(o.value)||(n(i),r)}),this}first(e){return this.limit(1).toArray(function(r){return r[0]}).then(e)}last(e){return this.reverse().first(e)}filter(e){var r,o;return gg(this._ctx,function(n){return e(n.value)}),r=this._ctx,o=e,r.isMatch=Hi(r.isMatch,o),this}and(e){return this.filter(e)}or(e){return new this.db.WhereClause(this._ctx.table,e,this)}reverse(){return this._ctx.dir=this._ctx.dir==="prev"?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this}desc(){return this.reverse()}eachKey(e){var r=this._ctx;return r.keysOnly=!r.isMatch,this.each(function(o,n){e(n.key,n)})}eachUniqueKey(e){return this._ctx.unique="unique",this.eachKey(e)}eachPrimaryKey(e){var r=this._ctx;return r.keysOnly=!r.isMatch,this.each(function(o,n){e(n.primaryKey,n)})}keys(e){var r=this._ctx;r.keysOnly=!r.isMatch;var o=[];return this.each(function(n,i){o.push(i.key)}).then(function(){return o}).then(e)}primaryKeys(e){var r=this._ctx;if(r.dir==="next"&&ia(r,!0)&&r.limit>0)return this._read(n=>{var i=$u(r,r.table.core.schema);return r.table.core.query({trans:n,values:!1,limit:r.limit,query:{index:i,range:r.range}})}).then(({result:n})=>n).then(e);r.keysOnly=!r.isMatch;var o=[];return this.each(function(n,i){o.push(i.primaryKey)}).then(function(){return o}).then(e)}uniqueKeys(e){return this._ctx.unique="unique",this.keys(e)}firstKey(e){return this.limit(1).keys(function(r){return r[0]}).then(e)}lastKey(e){return this.reverse().firstKey(e)}distinct(){var e=this._ctx,r=e.index&&e.table.schema.idxByName[e.index];if(!r||!r.multi)return this;var o={};return gg(this._ctx,function(n){var i=n.primaryKey.toString(),a=Tr(o,i);return o[i]=!0,!a}),this}modify(e){var r=this._ctx;return this._write(o=>{var n;if(typeof e=="function")n=e;else{var i=bt(e),a=i.length;n=function(m){for(var w=!1,v=0;v{const{failures:v,numFailures:p}=w;f+=m-p;for(let b of bt(v))d.push(v[b])};return this.clone().primaryKeys().then(m=>{const w=v=>{const p=Math.min(u,m.length-v);return s.getMany({trans:o,keys:m.slice(v,v+p),cache:"immutable"}).then(b=>{const k=[],x=[],S=l?[]:null,_=[];for(let T=0;T0&&s.mutate({trans:o,type:"add",values:k}).then(T=>{for(let E in T.failures)_.splice(parseInt(E),1);g(k.length,T)})).then(()=>(x.length>0||C&&typeof e=="object")&&s.mutate({trans:o,type:"put",keys:S,values:x,criteria:C,changeSpec:typeof e!="function"&&e}).then(T=>g(x.length,T))).then(()=>(_.length>0||C&&e===mg)&&s.mutate({trans:o,type:"delete",keys:_,criteria:C}).then(T=>g(_.length,T))).then(()=>m.length>v+p&&w(v+u))})};return w(0).then(()=>{if(d.length>0)throw new Ld("Error modifying one or more objects",d,f,h);return m.length})})})}delete(){var e=this._ctx,r=e.range;return ia(e)&&(e.isPrimKey&&!KZ||r.type===3)?this._write(o=>{const{primaryKey:n}=e.table.core.schema,i=r;return e.table.core.count({trans:o,query:{index:n,range:i}}).then(a=>e.table.core.mutate({trans:o,type:"deleteRange",range:i}).then(({failures:s,lastResult:l,results:c,numFailures:u})=>{if(u)throw new Ld("Could not delete some values",Object.keys(s).map(d=>s[d]),a-u);return a-u}))}):this.modify(mg)}}const mg=(t,e)=>e.value=null;function GZ(t,e){return te?-1:t===e?0:1}function hr(t,e,r){var o=t instanceof zE?new t.Collection(t):t;return o._ctx.error=r?new r(e):new TypeError(e),o}function aa(t){return new t.Collection(t,()=>PE("")).limit(0)}function YZ(t,e,r,o,n,i){for(var a=Math.min(t.length,o.length),s=-1,l=0;l=0?t.substr(0,s)+e[s]+r.substr(s+1):null;n(t[l],c)<0&&(s=l)}return atypeof m=="string"))return hr(t,RE);function f(m){n=function(v){return v==="next"?p=>p.toUpperCase():p=>p.toLowerCase()}(m),i=function(v){return v==="next"?p=>p.toLowerCase():p=>p.toUpperCase()}(m),a=m==="next"?GZ:XZ;var w=r.map(function(v){return{lower:i(v),upper:n(v)}}).sort(function(v,p){return a(v.lower,p.lower)});s=w.map(function(v){return v.upper}),l=w.map(function(v){return v.lower}),c=m,u=m==="next"?"":o}f("next");var h=new t.Collection(t,()=>kn(s[0],l[d-1]+o));h._ondirectionchange=function(m){f(m)};var g=0;return h._addAlgorithm(function(m,w,v){var p=m.key;if(typeof p!="string")return!1;var b=i(p);if(e(b,l,g))return!0;for(var k=null,x=g;x0)&&(k=S)}return w(k!==null?function(){m.continue(k+u)}:v),!1}),h}function kn(t,e,r,o){return{type:2,lower:t,upper:e,lowerOpen:r,upperOpen:o}}function PE(t){return{type:1,lower:t,upper:t}}class zE{get Collection(){return this._ctx.table.db.Collection}between(e,r,o,n){o=o!==!1,n=n===!0;try{return this._cmp(e,r)>0||this._cmp(e,r)===0&&(o||n)&&(!o||!n)?aa(this):new this.Collection(this,()=>kn(e,r,!o,!n))}catch{return hr(this,Oo)}}equals(e){return e==null?hr(this,Oo):new this.Collection(this,()=>PE(e))}above(e){return e==null?hr(this,Oo):new this.Collection(this,()=>kn(e,void 0,!0))}aboveOrEqual(e){return e==null?hr(this,Oo):new this.Collection(this,()=>kn(e,void 0,!1))}below(e){return e==null?hr(this,Oo):new this.Collection(this,()=>kn(void 0,e,!1,!0))}belowOrEqual(e){return e==null?hr(this,Oo):new this.Collection(this,()=>kn(void 0,e))}startsWith(e){return typeof e!="string"?hr(this,RE):this.between(e,e+wi,!0,!0)}startsWithIgnoreCase(e){return e===""?this.startsWith(e):mu(this,(r,o)=>r.indexOf(o[0])===0,[e],wi)}equalsIgnoreCase(e){return mu(this,(r,o)=>r===o[0],[e],"")}anyOfIgnoreCase(){var e=Ko.apply(fa,arguments);return e.length===0?aa(this):mu(this,(r,o)=>o.indexOf(r)!==-1,e,"")}startsWithAnyOfIgnoreCase(){var e=Ko.apply(fa,arguments);return e.length===0?aa(this):mu(this,(r,o)=>o.some(n=>r.indexOf(n)===0),e,wi)}anyOf(){const e=Ko.apply(fa,arguments);let r=this._cmp;try{e.sort(r)}catch{return hr(this,Oo)}if(e.length===0)return aa(this);const o=new this.Collection(this,()=>kn(e[0],e[e.length-1]));o._ondirectionchange=i=>{r=i==="next"?this._ascending:this._descending,e.sort(r)};let n=0;return o._addAlgorithm((i,a,s)=>{const l=i.key;for(;r(l,e[n])>0;)if(++n,n===e.length)return a(s),!1;return r(l,e[n])===0||(a(()=>{i.continue(e[n])}),!1)}),o}notEqual(e){return this.inAnyRange([[Tm,e],[e,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})}noneOf(){const e=Ko.apply(fa,arguments);if(e.length===0)return new this.Collection(this);try{e.sort(this._ascending)}catch{return hr(this,Oo)}const r=e.reduce((o,n)=>o?o.concat([[o[o.length-1][1],n]]):[[Tm,n]],null);return r.push([e[e.length-1],this.db._maxKey]),this.inAnyRange(r,{includeLowers:!1,includeUppers:!1})}inAnyRange(e,r){const o=this._cmp,n=this._ascending,i=this._descending,a=this._min,s=this._max;if(e.length===0)return aa(this);if(!e.every(p=>p[0]!==void 0&&p[1]!==void 0&&n(p[0],p[1])<=0))return hr(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",ve.InvalidArgument);const l=!r||r.includeLowers!==!1,c=r&&r.includeUppers===!0;let u,d=n;function f(p,b){return d(p[0],b[0])}try{u=e.reduce(function(p,b){let k=0,x=p.length;for(;k0){S[0]=a(S[0],b[0]),S[1]=s(S[1],b[1]);break}}return k===x&&p.push(b),p},[]),u.sort(f)}catch{return hr(this,Oo)}let h=0;const g=c?p=>n(p,u[h][1])>0:p=>n(p,u[h][1])>=0,m=l?p=>i(p,u[h][0])>0:p=>i(p,u[h][0])>=0;let w=g;const v=new this.Collection(this,()=>kn(u[0][0],u[u.length-1][1],!l,!c));return v._ondirectionchange=p=>{p==="next"?(w=g,d=n):(w=m,d=i),u.sort(f)},v._addAlgorithm((p,b,k)=>{for(var x=p.key;w(x);)if(++h,h===u.length)return b(k),!1;return!!function(S){return!g(S)&&!m(S)}(x)||(this._cmp(x,u[h][1])===0||this._cmp(x,u[h][0])===0||b(()=>{d===n?p.continue(u[h][0]):p.continue(u[h][1])}),!1)}),v}startsWithAnyOf(){const e=Ko.apply(fa,arguments);return e.every(r=>typeof r=="string")?e.length===0?aa(this):this.inAnyRange(e.map(r=>[r,r+wi])):hr(this,"startsWithAnyOf() only works with strings")}}function bo(t){return $e(function(e){return Xl(e),t(e.target.error),!1})}function Xl(t){t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault()}const Yl="storagemutated",En="x-storagemutated-1",Yn=vl(null,Yl);class ZZ{_lock(){return Xs(!ue.global),++this._reculock,this._reculock!==1||ue.global||(ue.lockOwnerFor=this),this}_unlock(){if(Xs(!ue.global),--this._reculock==0)for(ue.global||(ue.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var e=this._blockedFuncs.shift();try{ks(e[1],e[0])}catch{}}return this}_locked(){return this._reculock&&ue.lockOwnerFor!==this}create(e){if(!this.mode)return this;const r=this.db.idbdb,o=this.db._state.dbOpenError;if(Xs(!this.idbtrans),!e&&!r)switch(o&&o.name){case"DatabaseClosedError":throw new ve.DatabaseClosed(o);case"MissingAPIError":throw new ve.MissingAPI(o.message,o);default:throw new ve.OpenFailed(o)}if(!this.active)throw new ve.TransactionInactive;return Xs(this._completion._state===null),(e=this.idbtrans=e||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):r.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}))).onerror=$e(n=>{Xl(n),this._reject(e.error)}),e.onabort=$e(n=>{Xl(n),this.active&&this._reject(new ve.Abort(e.error)),this.active=!1,this.on("abort").fire(n)}),e.oncomplete=$e(()=>{this.active=!1,this._resolve(),"mutatedParts"in e&&Yn.storagemutated.fire(e.mutatedParts)}),this}_promise(e,r,o){if(e==="readwrite"&&this.mode!=="readwrite")return Tt(new ve.ReadOnly("Transaction is readonly"));if(!this.active)return Tt(new ve.TransactionInactive);if(this._locked())return new ie((i,a)=>{this._blockedFuncs.push([()=>{this._promise(e,r,o).then(i,a)},ue])});if(o)return Gn(()=>{var i=new ie((a,s)=>{this._lock();const l=r(a,s,this);l&&l.then&&l.then(a,s)});return i.finally(()=>this._unlock()),i._lib=!0,i});var n=new ie((i,a)=>{var s=r(i,a,this);s&&s.then&&s.then(i,a)});return n._lib=!0,n}_root(){return this.parent?this.parent._root():this}waitFor(e){var r=this._root();const o=ie.resolve(e);if(r._waitingFor)r._waitingFor=r._waitingFor.then(()=>o);else{r._waitingFor=o,r._waitingQueue=[];var n=r.idbtrans.objectStore(r.storeNames[0]);(function a(){for(++r._spinCount;r._waitingQueue.length;)r._waitingQueue.shift()();r._waitingFor&&(n.get(-1/0).onsuccess=a)})()}var i=r._waitingFor;return new ie((a,s)=>{o.then(l=>r._waitingQueue.push($e(a.bind(null,l))),l=>r._waitingQueue.push($e(s.bind(null,l)))).finally(()=>{r._waitingFor===i&&(r._waitingFor=null)})})}abort(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new ve.Abort))}table(e){const r=this._memoizedTables||(this._memoizedTables={});if(Tr(r,e))return r[e];const o=this.schema[e];if(!o)throw new ve.NotFound("Table "+e+" not part of transaction");const n=new this.db.Table(e,o,this);return n.core=this.db.core.table(e),r[e]=n,n}}function Em(t,e,r,o,n,i,a){return{name:t,keyPath:e,unique:r,multi:o,auto:n,compound:i,src:(r&&!a?"&":"")+(o?"*":"")+(n?"++":"")+ME(e)}}function ME(t){return typeof t=="string"?t:t?"["+[].join.call(t,"+")+"]":""}function OE(t,e,r){return{name:t,primKey:e,indexes:r,mappedClass:null,idxByName:hE(r,o=>[o.name,o])}}let Zl=t=>{try{return t.only([[]]),Zl=()=>[[]],[[]]}catch{return Zl=()=>wi,wi}};function Bm(t){return t==null?()=>{}:typeof t=="string"?function(e){return e.split(".").length===1?o=>o[e]:o=>tn(o,e)}(t):e=>tn(e,t)}function Nk(t){return[].slice.call(t)}let QZ=0;function bl(t){return t==null?":id":typeof t=="string"?t:`[${t.join("+")}]`}function JZ(t,e,r){function o(l){if(l.type===3)return null;if(l.type===4)throw new Error("Cannot convert never type to IDBKeyRange");const{lower:c,upper:u,lowerOpen:d,upperOpen:f}=l;return c===void 0?u===void 0?null:e.upperBound(u,!!f):u===void 0?e.lowerBound(c,!!d):e.bound(c,u,!!d,!!f)}const{schema:n,hasGetAll:i}=function(l,c){const u=Nk(l.objectStoreNames);return{schema:{name:l.name,tables:u.map(d=>c.objectStore(d)).map(d=>{const{keyPath:f,autoIncrement:h}=d,g=Wt(f),m=f==null,w={},v={name:d.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:m,compound:g,keyPath:f,autoIncrement:h,unique:!0,extractKey:Bm(f)},indexes:Nk(d.indexNames).map(p=>d.index(p)).map(p=>{const{name:b,unique:k,multiEntry:x,keyPath:S}=p,_={name:b,compound:Wt(S),keyPath:S,unique:k,multiEntry:x,extractKey:Bm(S)};return w[bl(S)]=_,_}),getIndexByKeyPath:p=>w[bl(p)]};return w[":id"]=v.primaryKey,f!=null&&(w[bl(f)]=v.primaryKey),v})},hasGetAll:u.length>0&&"getAll"in c.objectStore(u[0])&&!(typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}(t,r),a=n.tables.map(l=>function(c){const u=c.name;return{name:u,schema:c,mutate:function({trans:d,type:f,keys:h,values:g,range:m}){return new Promise((w,v)=>{w=$e(w);const p=d.objectStore(u),b=p.keyPath==null,k=f==="put"||f==="add";if(!k&&f!=="delete"&&f!=="deleteRange")throw new Error("Invalid operation type: "+f);const{length:x}=h||g||{length:1};if(h&&g&&h.length!==g.length)throw new Error("Given keys array must have same length as given values array.");if(x===0)return w({numFailures:0,failures:{},results:[],lastResult:void 0});let S;const _=[],C=[];let T=0;const E=I=>{++T,Xl(I)};if(f==="deleteRange"){if(m.type===4)return w({numFailures:T,failures:C,results:[],lastResult:void 0});m.type===3?_.push(S=p.clear()):_.push(S=p.delete(o(m)))}else{const[I,H]=k?b?[g,h]:[g,null]:[h,null];if(k)for(let q=0;q{const H=I.target.result;_.forEach((q,N)=>q.error!=null&&(C[N]=q.error)),w({numFailures:T,failures:C,results:f==="delete"?h:_.map(q=>q.result),lastResult:H})};S.onerror=I=>{E(I),O(I)},S.onsuccess=O})},getMany:({trans:d,keys:f})=>new Promise((h,g)=>{h=$e(h);const m=d.objectStore(u),w=f.length,v=new Array(w);let p,b=0,k=0;const x=_=>{const C=_.target;v[C._pos]=C.result,++k===b&&h(v)},S=bo(g);for(let _=0;_new Promise((h,g)=>{h=$e(h);const m=d.objectStore(u).get(f);m.onsuccess=w=>h(w.target.result),m.onerror=bo(g)}),query:function(d){return f=>new Promise((h,g)=>{h=$e(h);const{trans:m,values:w,limit:v,query:p}=f,b=v===1/0?void 0:v,{index:k,range:x}=p,S=m.objectStore(u),_=k.isPrimaryKey?S:S.index(k.name),C=o(x);if(v===0)return h({result:[]});if(d){const T=w?_.getAll(C,b):_.getAllKeys(C,b);T.onsuccess=E=>h({result:E.target.result}),T.onerror=bo(g)}else{let T=0;const E=w||!("openKeyCursor"in _)?_.openCursor(C):_.openKeyCursor(C),O=[];E.onsuccess=I=>{const H=E.result;return H?(O.push(w?H.value:H.primaryKey),++T===v?h({result:O}):void H.continue()):h({result:O})},E.onerror=bo(g)}})}(i),openCursor:function({trans:d,values:f,query:h,reverse:g,unique:m}){return new Promise((w,v)=>{w=$e(w);const{index:p,range:b}=h,k=d.objectStore(u),x=p.isPrimaryKey?k:k.index(p.name),S=g?m?"prevunique":"prev":m?"nextunique":"next",_=f||!("openKeyCursor"in x)?x.openCursor(o(b),S):x.openKeyCursor(o(b),S);_.onerror=bo(v),_.onsuccess=$e(C=>{const T=_.result;if(!T)return void w(null);T.___id=++QZ,T.done=!1;const E=T.continue.bind(T);let O=T.continuePrimaryKey;O&&(O=O.bind(T));const I=T.advance.bind(T),H=()=>{throw new Error("Cursor not stopped")};T.trans=d,T.stop=T.continue=T.continuePrimaryKey=T.advance=()=>{throw new Error("Cursor not started")},T.fail=$e(v),T.next=function(){let q=1;return this.start(()=>q--?this.continue():this.stop()).then(()=>this)},T.start=q=>{const N=new Promise((W,B)=>{W=$e(W),_.onerror=bo(B),T.fail=B,T.stop=D=>{T.stop=T.continue=T.continuePrimaryKey=T.advance=H,W(D)}}),M=()=>{if(_.result)try{q()}catch(W){T.fail(W)}else T.done=!0,T.start=()=>{throw new Error("Cursor behind last entry")},T.stop()};return _.onsuccess=$e(W=>{_.onsuccess=M,M()}),T.continue=E,T.continuePrimaryKey=O,T.advance=I,M(),N},w(T)},v)})},count({query:d,trans:f}){const{index:h,range:g}=d;return new Promise((m,w)=>{const v=f.objectStore(u),p=h.isPrimaryKey?v:v.index(h.name),b=o(g),k=b?p.count(b):p.count();k.onsuccess=$e(x=>m(x.target.result)),k.onerror=bo(w)})}}}(l)),s={};return a.forEach(l=>s[l.name]=l),{stack:"dbcore",transaction:t.transaction.bind(t),table(l){if(!s[l])throw new Error(`Table '${l}' not found`);return s[l]},MIN_KEY:-1/0,MAX_KEY:Zl(e),schema:n}}function Im({_novip:t},e){const r=e.db,o=function(n,i,{IDBKeyRange:a,indexedDB:s},l){return{dbcore:function(u,d){return d.reduce((f,{create:h})=>({...f,...h(f)}),u)}(JZ(i,a,l),n.dbcore)}}(t._middlewares,r,t._deps,e);t.core=o.dbcore,t.tables.forEach(n=>{const i=n.name;t.core.schema.tables.some(a=>a.name===i)&&(n.core=t.core.table(i),t[i]instanceof t.Table&&(t[i].core=n.core))})}function Wd({_novip:t},e,r,o){r.forEach(n=>{const i=o[n];e.forEach(a=>{const s=l0(a,n);(!s||"value"in s&&s.value===void 0)&&(a===t.Transaction.prototype||a instanceof t.Transaction?en(a,n,{get(){return this.table(n)},set(l){uE(this,n,{value:l,writable:!0,configurable:!0,enumerable:!0})}}):a[n]=new t.Table(n,i))})})}function Rm({_novip:t},e){e.forEach(r=>{for(let o in r)r[o]instanceof t.Table&&delete r[o]})}function eQ(t,e){return t._cfg.version-e._cfg.version}function tQ(t,e,r,o){const n=t._dbSchema,i=t._createTransaction("readwrite",t._storeNames,n);i.create(r),i._completion.catch(o);const a=i._reject.bind(i),s=ue.transless||ue;Gn(()=>{ue.trans=i,ue.transless=s,e===0?(bt(n).forEach(l=>{vg(r,l,n[l].primKey,n[l].indexes)}),Im(t,r),ie.follow(()=>t.on.populate.fire(i)).catch(a)):function({_novip:l},c,u,d){const f=[],h=l._versions;let g=l._dbSchema=Nm(l,l.idbdb,d),m=!1;const w=h.filter(p=>p._cfg.version>=c);function v(){return f.length?ie.resolve(f.shift()(u.idbtrans)).then(v):ie.resolve()}return w.forEach(p=>{f.push(()=>{const b=g,k=p._cfg.dbschema;Pm(l,b,d),Pm(l,k,d),g=l._dbSchema=k;const x=jE(b,k);x.add.forEach(_=>{vg(d,_[0],_[1].primKey,_[1].indexes)}),x.change.forEach(_=>{if(_.recreate)throw new ve.Upgrade("Not yet support for changing primary key");{const C=d.objectStore(_.name);_.add.forEach(T=>Am(C,T)),_.change.forEach(T=>{C.deleteIndex(T.name),Am(C,T)}),_.del.forEach(T=>C.deleteIndex(T))}});const S=p._cfg.contentUpgrade;if(S&&p._cfg.version>c){Im(l,d),u._memoizedTables={},m=!0;let _=gE(k);x.del.forEach(O=>{_[O]=b[O]}),Rm(l,[l.Transaction.prototype]),Wd(l,[l.Transaction.prototype],bt(_),_),u.schema=_;const C=c0(S);let T;C&&ws();const E=ie.follow(()=>{if(T=S(u),T&&C){var O=dn.bind(null,null);T.then(O,O)}});return T&&typeof T.then=="function"?ie.resolve(T):E.then(()=>T)}}),f.push(b=>{(!m||!$Z)&&function(k,x){[].slice.call(x.db.objectStoreNames).forEach(S=>k[S]==null&&x.db.deleteObjectStore(S))}(p._cfg.dbschema,b),Rm(l,[l.Transaction.prototype]),Wd(l,[l.Transaction.prototype],l._storeNames,l._dbSchema),u.schema=l._dbSchema})}),v().then(()=>{var p,b;b=d,bt(p=g).forEach(k=>{b.db.objectStoreNames.contains(k)||vg(b,k,p[k].primKey,p[k].indexes)})})}(t,e,i,r).catch(a)})}function jE(t,e){const r={del:[],add:[],change:[]};let o;for(o in t)e[o]||r.del.push(o);for(o in e){const n=t[o],i=e[o];if(n){const a={name:o,def:i,recreate:!1,del:[],add:[],change:[]};if(""+(n.primKey.keyPath||"")!=""+(i.primKey.keyPath||"")||n.primKey.auto!==i.primKey.auto&&!Gf)a.recreate=!0,r.change.push(a);else{const s=n.idxByName,l=i.idxByName;let c;for(c in s)l[c]||a.del.push(c);for(c in l){const u=s[c],d=l[c];u?u.src!==d.src&&a.change.push(d):a.add.push(d)}(a.del.length>0||a.add.length>0||a.change.length>0)&&r.change.push(a)}}else r.add.push([o,i])}return r}function vg(t,e,r,o){const n=t.db.createObjectStore(e,r.keyPath?{keyPath:r.keyPath,autoIncrement:r.auto}:{autoIncrement:r.auto});return o.forEach(i=>Am(n,i)),n}function Am(t,e){t.createIndex(e.name,e.keyPath,{unique:e.unique,multiEntry:e.multi})}function Nm(t,e,r){const o={};return qd(e.objectStoreNames,0).forEach(n=>{const i=r.objectStore(n);let a=i.keyPath;const s=Em(ME(a),a||"",!1,!1,!!i.autoIncrement,a&&typeof a!="string",!0),l=[];for(let u=0;u{if(e[o]!==null){var n=e[o].split(",").map((a,s)=>{const l=(a=a.trim()).replace(/([&*]|\+\+)/g,""),c=/^\[/.test(l)?l.match(/^\[(.*)\]$/)[1].split("+"):l;return Em(l,c||null,/\&/.test(a),/\*/.test(a),/\+\+/.test(a),Wt(c),s===0)}),i=n.shift();if(i.multi)throw new ve.Schema("Primary key cannot be multi-valued");n.forEach(a=>{if(a.auto)throw new ve.Schema("Only primary key can be marked as autoIncrement (++)");if(!a.keyPath)throw new ve.Schema("Index must have a name and cannot be an empty string")}),r[o]=OE(o,i,n)}})}stores(e){const r=this.db;this._cfg.storesSource=this._cfg.storesSource?rr(this._cfg.storesSource,e):e;const o=r._versions,n={};let i={};return o.forEach(a=>{rr(n,a._cfg.storesSource),i=a._cfg.dbschema={},a._parseStoresSpec(n,i)}),r._dbSchema=i,Rm(r,[r._allTables,r,r.Transaction.prototype]),Wd(r,[r._allTables,r,r.Transaction.prototype,this._cfg.tables],bt(i),i),r._storeNames=bt(i),this}upgrade(e){return this._cfg.contentUpgrade=f0(this._cfg.contentUpgrade||Ie,e),this}}function m0(t,e){let r=t._dbNamesDB;return r||(r=t._dbNamesDB=new La(Xf,{addons:[],indexedDB:t,IDBKeyRange:e}),r.version(1).stores({dbnames:"name"})),r.table("dbnames")}function v0(t){return t&&typeof t.databases=="function"}function zm(t){return Gn(function(){return ue.letThrough=!0,t()})}function oQ(){var t;return!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(e){var r=function(){return indexedDB.databases().finally(e)};t=setInterval(r,100),r()}).finally(function(){return clearInterval(t)}):Promise.resolve()}function nQ(t){const e=t._state,{indexedDB:r}=t._deps;if(e.isBeingOpened||t.idbdb)return e.dbReadyPromise.then(()=>e.dbOpenError?Tt(e.dbOpenError):t);zo&&(e.openCanceller._stackHolder=Yi()),e.isBeingOpened=!0,e.dbOpenError=null,e.openComplete=!1;const o=e.openCanceller;function n(){if(e.openCanceller!==o)throw new ve.DatabaseClosed("db.open() was cancelled")}let i=e.dbReadyResolve,a=null,s=!1;return ie.race([o,(typeof navigator>"u"?ie.resolve():oQ()).then(()=>new ie((l,c)=>{if(n(),!r)throw new ve.MissingAPI;const u=t.name,d=e.autoSchema?r.open(u):r.open(u,Math.round(10*t.verno));if(!d)throw new ve.MissingAPI;d.onerror=bo(c),d.onblocked=$e(t._fireOnBlocked),d.onupgradeneeded=$e(f=>{if(a=d.transaction,e.autoSchema&&!t._options.allowEmptyDB){d.onerror=Xl,a.abort(),d.result.close();const g=r.deleteDatabase(u);g.onsuccess=g.onerror=$e(()=>{c(new ve.NoSuchDatabase(`Database ${u} doesnt exist`))})}else{a.onerror=bo(c);var h=f.oldVersion>Math.pow(2,62)?0:f.oldVersion;s=h<1,t._novip.idbdb=d.result,tQ(t,h/10,a,c)}},c),d.onsuccess=$e(()=>{a=null;const f=t._novip.idbdb=d.result,h=qd(f.objectStoreNames);if(h.length>0)try{const m=f.transaction((g=h).length===1?g[0]:g,"readonly");e.autoSchema?function({_novip:w},v,p){w.verno=v.version/10;const b=w._dbSchema=Nm(0,v,p);w._storeNames=qd(v.objectStoreNames,0),Wd(w,[w._allTables],bt(b),b)}(t,f,m):(Pm(t,t._dbSchema,m),function(w,v){const p=jE(Nm(0,w.idbdb,v),w._dbSchema);return!(p.add.length||p.change.some(b=>b.add.length||b.change.length))}(t,m)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),Im(t,m)}catch{}var g;ml.push(t),f.onversionchange=$e(m=>{e.vcFired=!0,t.on("versionchange").fire(m)}),f.onclose=$e(m=>{t.on("close").fire(m)}),s&&function({indexedDB:m,IDBKeyRange:w},v){!v0(m)&&v!==Xf&&m0(m,w).put({name:v}).catch(Ie)}(t._deps,u),l()},c)}))]).then(()=>(n(),e.onReadyBeingFired=[],ie.resolve(zm(()=>t.on.ready.fire(t.vip))).then(function l(){if(e.onReadyBeingFired.length>0){let c=e.onReadyBeingFired.reduce(f0,Ie);return e.onReadyBeingFired=[],ie.resolve(zm(()=>c(t.vip))).then(l)}}))).finally(()=>{e.onReadyBeingFired=null,e.isBeingOpened=!1}).then(()=>t).catch(l=>{e.dbOpenError=l;try{a&&a.abort()}catch{}return o===e.openCanceller&&t._close(),Tt(l)}).finally(()=>{e.openComplete=!0,i()})}function Mm(t){var e=i=>t.next(i),r=n(e),o=n(i=>t.throw(i));function n(i){return a=>{var s=i(a),l=s.value;return s.done?l:l&&typeof l.then=="function"?l.then(r,o):Wt(l)?Promise.all(l).then(r,o):r(l)}}return n(e)()}function iQ(t,e,r){var o=arguments.length;if(o<2)throw new ve.InvalidArgument("Too few arguments");for(var n=new Array(o-1);--o;)n[o-1]=arguments[o];return r=n.pop(),[t,pE(n),r]}function DE(t,e,r,o,n){return ie.resolve().then(()=>{const i=ue.transless||ue,a=t._createTransaction(e,r,t._dbSchema,o),s={trans:a,transless:i};if(o)a.idbtrans=o.idbtrans;else try{a.create(),t._state.PR1398_maxLoop=3}catch(d){return d.name===d0.InvalidState&&t.isOpen()&&--t._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),t._close(),t.open().then(()=>DE(t,e,r,null,n))):Tt(d)}const l=c0(n);let c;l&&ws();const u=ie.follow(()=>{if(c=n.call(a,a),c)if(l){var d=dn.bind(null,null);c.then(d,d)}else typeof c.next=="function"&&typeof c.throw=="function"&&(c=Mm(c))},s);return(c&&typeof c.then=="function"?ie.resolve(c).then(d=>a.active?d:Tt(new ve.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))):u.then(()=>c)).then(d=>(o&&a._resolve(),a._completion.then(()=>d))).catch(d=>(a._reject(d),Tt(d)))})}function vu(t,e,r){const o=Wt(t)?t.slice():[t];for(let n=0;n0,v={...f,isVirtual:w,keyTail:d,keyLength:m,extractKey:Bm(u),unique:!w&&f.unique};return g.push(v),v.isPrimaryKey||i.push(v),m>1&&a(m===2?u[0]:u.slice(0,m-1),d+1,f),g.sort((p,b)=>p.keyTail-b.keyTail),v}const s=a(o.primaryKey.keyPath,0,o.primaryKey);n[":id"]=[s];for(const u of o.indexes)a(u.keyPath,0,u);function l(u){const d=u.query.index;return d.isVirtual?{...u,query:{index:d,range:(f=u.query.range,h=d.keyTail,{type:f.type===1?2:f.type,lower:vu(f.lower,f.lowerOpen?t.MAX_KEY:t.MIN_KEY,h),lowerOpen:!0,upper:vu(f.upper,f.upperOpen?t.MIN_KEY:t.MAX_KEY,h),upperOpen:!0})}}:u;var f,h}return{...r,schema:{...o,primaryKey:s,indexes:i,getIndexByKeyPath:function(u){const d=n[bl(u)];return d&&d[0]}},count:u=>r.count(l(u)),query:u=>r.query(l(u)),openCursor(u){const{keyTail:d,isVirtual:f,keyLength:h}=u.query.index;return f?r.openCursor(l(u)).then(g=>g&&function(m){return Object.create(m,{continue:{value:function(v){v!=null?m.continue(vu(v,u.reverse?t.MAX_KEY:t.MIN_KEY,d)):u.unique?m.continue(m.key.slice(0,h).concat(u.reverse?t.MIN_KEY:t.MAX_KEY,d)):m.continue()}},continuePrimaryKey:{value(v,p){m.continuePrimaryKey(vu(v,t.MAX_KEY,d),p)}},primaryKey:{get:()=>m.primaryKey},key:{get(){const v=m.key;return h===1?v[0]:v.slice(0,h)}},value:{get:()=>m.value}})}(g)):r.openCursor(u)}}}}}};function b0(t,e,r,o){return r=r||{},o=o||"",bt(t).forEach(n=>{if(Tr(e,n)){var i=t[n],a=e[n];if(typeof i=="object"&&typeof a=="object"&&i&&a){const s=gm(i);s!==gm(a)?r[o+n]=e[n]:s==="Object"?b0(i,a,r,o+n+"."):i!==a&&(r[o+n]=e[n])}else i!==a&&(r[o+n]=e[n])}else r[o+n]=void 0}),bt(e).forEach(n=>{Tr(t,n)||(r[o+n]=e[n])}),r}const sQ={stack:"dbcore",name:"HooksMiddleware",level:2,create:t=>({...t,table(e){const r=t.table(e),{primaryKey:o}=r.schema;return{...r,mutate(i){const a=ue.trans,{deleting:s,creating:l,updating:c}=a.table(e).hook;switch(i.type){case"add":if(l.fire===Ie)break;return a._promise("readwrite",()=>u(i),!0);case"put":if(l.fire===Ie&&c.fire===Ie)break;return a._promise("readwrite",()=>u(i),!0);case"delete":if(s.fire===Ie)break;return a._promise("readwrite",()=>u(i),!0);case"deleteRange":if(s.fire===Ie)break;return a._promise("readwrite",()=>function(f){return d(f.trans,f.range,1e4)}(i),!0)}return r.mutate(i);function u(f){const h=ue.trans,g=f.keys||function(m,w){return w.type==="delete"?w.keys:w.keys||w.values.map(m.extractKey)}(o,f);if(!g)throw new Error("Keys missing");return(f=f.type==="add"||f.type==="put"?{...f,keys:g}:{...f}).type!=="delete"&&(f.values=[...f.values]),f.keys&&(f.keys=[...f.keys]),function(m,w,v){return w.type==="add"?Promise.resolve([]):m.getMany({trans:w.trans,keys:v,cache:"immutable"})}(r,f,g).then(m=>{const w=g.map((v,p)=>{const b=m[p],k={onerror:null,onsuccess:null};if(f.type==="delete")s.fire.call(k,v,b,h);else if(f.type==="add"||b===void 0){const x=l.fire.call(k,v,f.values[p],h);v==null&&x!=null&&(v=x,f.keys[p]=v,o.outbound||ao(f.values[p],o.keyPath,v))}else{const x=b0(b,f.values[p]),S=c.fire.call(k,x,v,b,h);if(S){const _=f.values[p];Object.keys(S).forEach(C=>{Tr(_,C)?_[C]=S[C]:ao(_,C,S[C])})}}return k});return r.mutate(f).then(({failures:v,results:p,numFailures:b,lastResult:k})=>{for(let x=0;x(w.forEach(p=>p.onerror&&p.onerror(v)),Promise.reject(v)))})}function d(f,h,g){return r.query({trans:f,values:!1,query:{index:o,range:h},limit:g}).then(({result:m})=>u({type:"delete",keys:m,trans:f}).then(w=>w.numFailures>0?Promise.reject(w.failures[0]):m.length({table:e=>{const r=t.table(e);return{...r,getMany:o=>{if(!o.cache)return r.getMany(o);const n=FE(o.keys,o.trans._cache,o.cache==="clone");return n?ie.resolve(n):r.getMany(o).then(i=>(o.trans._cache={keys:o.keys,values:o.cache==="clone"?wc(i):i},i))},mutate:o=>(o.type!=="add"&&(o.trans._cache=null),r.mutate(o))}}})};function y0(t){return!("from"in t)}const Uo=function(t,e){if(!this){const r=new Uo;return t&&"d"in t&&rr(r,t),r}rr(this,arguments.length?{d:1,from:t,to:arguments.length>1?e:t}:{d:0})};function Ql(t,e,r){const o=Zt(e,r);if(isNaN(o))return;if(o>0)throw RangeError();if(y0(t))return rr(t,{from:e,to:r,d:1});const n=t.l,i=t.r;if(Zt(r,t.from)<0)return n?Ql(n,e,r):t.l={from:e,to:r,d:1,l:null,r:null},Pk(t);if(Zt(e,t.to)>0)return i?Ql(i,e,r):t.r={from:e,to:r,d:1,l:null,r:null},Pk(t);Zt(e,t.from)<0&&(t.from=e,t.l=null,t.d=i?i.d+1:1),Zt(r,t.to)>0&&(t.to=r,t.r=null,t.d=t.l?t.l.d+1:1);const a=!t.r;n&&!t.l&&Vd(t,n),i&&a&&Vd(t,i)}function Vd(t,e){y0(e)||function r(o,{from:n,to:i,l:a,r:s}){Ql(o,n,i),a&&r(o,a),s&&r(o,s)}(t,e)}function cQ(t,e){const r=Om(e);let o=r.next();if(o.done)return!1;let n=o.value;const i=Om(t);let a=i.next(n.from),s=a.value;for(;!o.done&&!a.done;){if(Zt(s.from,n.to)<=0&&Zt(s.to,n.from)>=0)return!0;Zt(n.from,s.from)<0?n=(o=r.next(s.from)).value:s=(a=i.next(n.from)).value}return!1}function Om(t){let e=y0(t)?null:{s:0,n:t};return{next(r){const o=arguments.length>0;for(;e;)switch(e.s){case 0:if(e.s=1,o)for(;e.n.l&&Zt(r,e.n.from)<0;)e={up:e,n:e.n.l,s:1};else for(;e.n.l;)e={up:e,n:e.n.l,s:1};case 1:if(e.s=2,!o||Zt(r,e.n.to)<=0)return{value:e.n,done:!1};case 2:if(e.n.r){e.s=3,e={up:e,n:e.n.r,s:0};continue}case 3:e=e.up}return{done:!0}}}}function Pk(t){var e,r;const o=(((e=t.r)===null||e===void 0?void 0:e.d)||0)-(((r=t.l)===null||r===void 0?void 0:r.d)||0),n=o>1?"r":o<-1?"l":"";if(n){const i=n==="r"?"l":"r",a={...t},s=t[n];t.from=s.from,t.to=s.to,t[n]=s[n],a[n]=s[i],t[i]=a,a.d=zk(a)}t.d=zk(t)}function zk({r:t,l:e}){return(t?e?Math.max(t.d,e.d):t.d:e?e.d:0)+1}us(Uo.prototype,{add(t){return Vd(this,t),this},addKey(t){return Ql(this,t,t),this},addKeys(t){return t.forEach(e=>Ql(this,e,e)),this},[pm](){return Om(this)}});const uQ={stack:"dbcore",level:0,create:t=>{const e=t.schema.name,r=new Uo(t.MIN_KEY,t.MAX_KEY);return{...t,table:o=>{const n=t.table(o),{schema:i}=n,{primaryKey:a}=i,{extractKey:s,outbound:l}=a,c={...n,mutate:f=>{const h=f.trans,g=h.mutatedParts||(h.mutatedParts={}),m=S=>{const _=`idb://${e}/${o}/${S}`;return g[_]||(g[_]=new Uo)},w=m(""),v=m(":dels"),{type:p}=f;let[b,k]=f.type==="deleteRange"?[f.range]:f.type==="delete"?[f.keys]:f.values.length<50?[[],f.values]:[];const x=f.trans._cache;return n.mutate(f).then(S=>{if(Wt(b)){p!=="delete"&&(b=S.results),w.addKeys(b);const _=FE(b,x);_||p==="add"||v.addKeys(b),(_||k)&&function(C,T,E,O){function I(H){const q=C(H.name||"");function N(W){return W!=null?H.extractKey(W):null}const M=W=>H.multiEntry&&Wt(W)?W.forEach(B=>q.addKey(B)):q.addKey(W);(E||O).forEach((W,B)=>{const D=E&&N(E[B]),U=O&&N(O[B]);Zt(D,U)!==0&&(D!=null&&M(D),U!=null&&M(U))})}T.indexes.forEach(I)}(m,i,_,k)}else if(b){const _={from:b.lower,to:b.upper};v.add(_),w.add(_)}else w.add(r),v.add(r),i.indexes.forEach(_=>m(_.name).add(r));return S})}},u=({query:{index:f,range:h}})=>{var g,m;return[f,new Uo((g=h.lower)!==null&&g!==void 0?g:t.MIN_KEY,(m=h.upper)!==null&&m!==void 0?m:t.MAX_KEY)]},d={get:f=>[a,new Uo(f.key)],getMany:f=>[a,new Uo().addKeys(f.keys)],count:u,query:u,openCursor:u};return bt(d).forEach(f=>{c[f]=function(h){const{subscr:g}=ue;if(g){const m=k=>{const x=`idb://${e}/${o}/${k}`;return g[x]||(g[x]=new Uo)},w=m(""),v=m(":dels"),[p,b]=d[f](h);if(m(p.name||"").add(b),!p.isPrimaryKey){if(f!=="count"){const k=f==="query"&&l&&h.values&&n.query({...h,values:!1});return n[f].apply(this,arguments).then(x=>{if(f==="query"){if(l&&h.values)return k.then(({result:_})=>(w.addKeys(_),x));const S=h.values?x.result.map(s):x.result;h.values?w.addKeys(S):v.addKeys(S)}else if(f==="openCursor"){const S=x,_=h.values;return S&&Object.create(S,{key:{get:()=>(v.addKey(S.primaryKey),S.key)},primaryKey:{get(){const C=S.primaryKey;return v.addKey(C),C}},value:{get:()=>(_&&w.addKey(S.primaryKey),S.value)}})}return x})}v.add(r)}}return n[f].apply(this,arguments)}}),c}}}};class La{constructor(e,r){this._middlewares={},this.verno=0;const o=La.dependencies;this._options=r={addons:La.addons,autoOpen:!0,indexedDB:o.indexedDB,IDBKeyRange:o.IDBKeyRange,...r},this._deps={indexedDB:r.indexedDB,IDBKeyRange:r.IDBKeyRange};const{addons:n}=r;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;const i={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:Ie,dbReadyPromise:null,cancelOpen:Ie,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};var a;i.dbReadyPromise=new ie(s=>{i.dbReadyResolve=s}),i.openCanceller=new ie((s,l)=>{i.cancelOpen=l}),this._state=i,this.name=e,this.on=vl(this,"populate","blocked","versionchange","close",{ready:[f0,Ie]}),this.on.ready.subscribe=dE(this.on.ready.subscribe,s=>(l,c)=>{La.vip(()=>{const u=this._state;if(u.openComplete)u.dbOpenError||ie.resolve().then(l),c&&s(l);else if(u.onReadyBeingFired)u.onReadyBeingFired.push(l),c&&s(l);else{s(l);const d=this;c||s(function f(){d.on.ready.unsubscribe(l),d.on.ready.unsubscribe(f)})}})}),this.Collection=(a=this,Os(VZ.prototype,function(s,l){this.db=a;let c=NE,u=null;if(l)try{c=l()}catch(g){u=g}const d=s._ctx,f=d.table,h=f.hook.reading.fire;this._ctx={table:f,index:d.index,isPrimKey:!d.index||f.schema.primKey.keyPath&&d.index===f.schema.primKey.name,range:c,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:u,or:d.or,valueMapper:h!==Vl?h:null}})),this.Table=function(s){return Os(WZ.prototype,function(l,c,u){this.db=s,this._tx=u,this.name=l,this.schema=c,this.hook=s._allTables[l]?s._allTables[l].hook:vl(null,{creating:[zZ,Ie],reading:[PZ,Vl],updating:[OZ,Ie],deleting:[MZ,Ie]})})}(this),this.Transaction=function(s){return Os(ZZ.prototype,function(l,c,u,d,f){this.db=s,this.mode=l,this.storeNames=c,this.schema=u,this.chromeTransactionDurability=d,this.idbtrans=null,this.on=vl(this,"complete","error","abort"),this.parent=f||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new ie((h,g)=>{this._resolve=h,this._reject=g}),this._completion.then(()=>{this.active=!1,this.on.complete.fire()},h=>{var g=this.active;return this.active=!1,this.on.error.fire(h),this.parent?this.parent._reject(h):g&&this.idbtrans&&this.idbtrans.abort(),Tt(h)})})}(this),this.Version=function(s){return Os(rQ.prototype,function(l){this.db=s,this._cfg={version:l,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})}(this),this.WhereClause=function(s){return Os(zE.prototype,function(l,c,u){this.db=s,this._ctx={table:l,index:c===":id"?null:c,or:u};const d=s._deps.indexedDB;if(!d)throw new ve.MissingAPI;this._cmp=this._ascending=d.cmp.bind(d),this._descending=(f,h)=>d.cmp(h,f),this._max=(f,h)=>d.cmp(f,h)>0?f:h,this._min=(f,h)=>d.cmp(f,h)<0?f:h,this._IDBKeyRange=s._deps.IDBKeyRange})}(this),this.on("versionchange",s=>{s.newVersion>0?console.warn(`Another connection wants to upgrade database '${this.name}'. Closing db now to resume the upgrade.`):console.warn(`Another connection wants to delete database '${this.name}'. Closing db now to resume the delete request.`),this.close()}),this.on("blocked",s=>{!s.newVersion||s.newVersionnew this.Transaction(s,l,c,this._options.chromeTransactionDurability,u),this._fireOnBlocked=s=>{this.on("blocked").fire(s),ml.filter(l=>l.name===this.name&&l!==this&&!l._state.vcFired).map(l=>l.on("versionchange").fire(s))},this.use(aQ),this.use(sQ),this.use(uQ),this.use(lQ),this.vip=Object.create(this,{_vip:{value:!0}}),n.forEach(s=>s(this))}version(e){if(isNaN(e)||e<.1)throw new ve.Type("Given version is not a positive number");if(e=Math.round(10*e)/10,this.idbdb||this._state.isBeingOpened)throw new ve.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,e);const r=this._versions;var o=r.filter(n=>n._cfg.version===e)[0];return o||(o=new this.Version(e),r.push(o),r.sort(eQ),o.stores({}),this._state.autoSchema=!1,o)}_whenReady(e){return this.idbdb&&(this._state.openComplete||ue.letThrough||this._vip)?e():new ie((r,o)=>{if(this._state.openComplete)return o(new ve.DatabaseClosed(this._state.dbOpenError));if(!this._state.isBeingOpened){if(!this._options.autoOpen)return void o(new ve.DatabaseClosed);this.open().catch(Ie)}this._state.dbReadyPromise.then(r,o)}).then(e)}use({stack:e,create:r,level:o,name:n}){n&&this.unuse({stack:e,name:n});const i=this._middlewares[e]||(this._middlewares[e]=[]);return i.push({stack:e,create:r,level:o??10,name:n}),i.sort((a,s)=>a.level-s.level),this}unuse({stack:e,name:r,create:o}){return e&&this._middlewares[e]&&(this._middlewares[e]=this._middlewares[e].filter(n=>o?n.create!==o:!!r&&n.name!==r)),this}open(){return nQ(this)}_close(){const e=this._state,r=ml.indexOf(this);if(r>=0&&ml.splice(r,1),this.idbdb){try{this.idbdb.close()}catch{}this._novip.idbdb=null}e.dbReadyPromise=new ie(o=>{e.dbReadyResolve=o}),e.openCanceller=new ie((o,n)=>{e.cancelOpen=n})}close(){this._close();const e=this._state;this._options.autoOpen=!1,e.dbOpenError=new ve.DatabaseClosed,e.isBeingOpened&&e.cancelOpen(e.dbOpenError)}delete(){const e=arguments.length>0,r=this._state;return new ie((o,n)=>{const i=()=>{this.close();var a=this._deps.indexedDB.deleteDatabase(this.name);a.onsuccess=$e(()=>{(function({indexedDB:s,IDBKeyRange:l},c){!v0(s)&&c!==Xf&&m0(s,l).delete(c).catch(Ie)})(this._deps,this.name),o()}),a.onerror=bo(n),a.onblocked=this._fireOnBlocked};if(e)throw new ve.InvalidArgument("Arguments not allowed in db.delete()");r.isBeingOpened?r.dbReadyPromise.then(i):i()})}backendDB(){return this.idbdb}isOpen(){return this.idbdb!==null}hasBeenClosed(){const e=this._state.dbOpenError;return e&&e.name==="DatabaseClosed"}hasFailed(){return this._state.dbOpenError!==null}dynamicallyOpened(){return this._state.autoSchema}get tables(){return bt(this._allTables).map(e=>this._allTables[e])}transaction(){const e=iQ.apply(this,arguments);return this._transaction.apply(this,e)}_transaction(e,r,o){let n=ue.trans;n&&n.db===this&&e.indexOf("!")===-1||(n=null);const i=e.indexOf("?")!==-1;let a,s;e=e.replace("!","").replace("?","");try{if(s=r.map(c=>{var u=c instanceof this.Table?c.name:c;if(typeof u!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return u}),e=="r"||e===fg)a=fg;else{if(e!="rw"&&e!=hg)throw new ve.InvalidArgument("Invalid transaction mode: "+e);a=hg}if(n){if(n.mode===fg&&a===hg){if(!i)throw new ve.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");n=null}n&&s.forEach(c=>{if(n&&n.storeNames.indexOf(c)===-1){if(!i)throw new ve.SubTransaction("Table "+c+" not included in parent transaction.");n=null}}),i&&n&&!n.active&&(n=null)}}catch(c){return n?n._promise(null,(u,d)=>{d(c)}):Tt(c)}const l=DE.bind(null,this,a,s,n,o);return n?n._promise(a,l,"lock"):ue.trans?ks(ue.transless,()=>this._whenReady(l)):this._whenReady(l)}table(e){if(!Tr(this._allTables,e))throw new ve.InvalidTable(`Table ${e} does not exist`);return this._allTables[e]}}const dQ=typeof Symbol<"u"&&"observable"in Symbol?Symbol.observable:"@@observable";class fQ{constructor(e){this._subscribe=e}subscribe(e,r,o){return this._subscribe(e&&typeof e!="function"?e:{next:e,error:r,complete:o})}[dQ](){return this}}function qE(t,e){return bt(e).forEach(r=>{Vd(t[r]||(t[r]=new Uo),e[r])}),t}function LE(t){let e,r=!1;const o=new fQ(n=>{const i=c0(t);let a=!1,s={},l={};const c={get closed(){return a},unsubscribe:()=>{a=!0,Yn.storagemutated.unsubscribe(h)}};n.start&&n.start(c);let u=!1,d=!1;function f(){return bt(l).some(m=>s[m]&&cQ(s[m],l[m]))}const h=m=>{qE(s,m),f()&&g()},g=()=>{if(u||a)return;s={};const m={},w=function(v){i&&ws();const p=()=>Gn(t,{subscr:v,trans:null}),b=ue.trans?ks(ue.transless,p):p();return i&&b.then(dn,dn),b}(m);d||(Yn(Yl,h),d=!0),u=!0,Promise.resolve(w).then(v=>{r=!0,e=v,u=!1,a||(f()?g():(s={},l=m,n.next&&n.next(v)))},v=>{u=!1,r=!1,n.error&&n.error(v),c.unsubscribe()})};return g(),c});return o.hasValue=()=>r,o.getValue=()=>e,o}let jm;try{jm={indexedDB:je.indexedDB||je.mozIndexedDB||je.webkitIndexedDB||je.msIndexedDB,IDBKeyRange:je.IDBKeyRange||je.webkitIDBKeyRange}}catch{jm={indexedDB:null,IDBKeyRange:null}}const ni=La;function Ku(t){let e=Xo;try{Xo=!0,Yn.storagemutated.fire(t)}finally{Xo=e}}us(ni,{...Fu,delete:t=>new ni(t,{addons:[]}).delete(),exists:t=>new ni(t,{addons:[]}).open().then(e=>(e.close(),!0)).catch("NoSuchDatabaseError",()=>!1),getDatabaseNames(t){try{return function({indexedDB:e,IDBKeyRange:r}){return v0(e)?Promise.resolve(e.databases()).then(o=>o.map(n=>n.name).filter(n=>n!==Xf)):m0(e,r).toCollection().primaryKeys()}(ni.dependencies).then(t)}catch{return Tt(new ve.MissingAPI)}},defineClass:()=>function(t){rr(this,t)},ignoreTransaction:t=>ue.trans?ks(ue.transless,t):t(),vip:zm,async:function(t){return function(){try{var e=Mm(t.apply(this,arguments));return e&&typeof e.then=="function"?e:ie.resolve(e)}catch(r){return Tt(r)}}},spawn:function(t,e,r){try{var o=Mm(t.apply(r,e||[]));return o&&typeof o.then=="function"?o:ie.resolve(o)}catch(n){return Tt(n)}},currentTransaction:{get:()=>ue.trans||null},waitFor:function(t,e){const r=ie.resolve(typeof t=="function"?ni.ignoreTransaction(t):t).timeout(e||6e4);return ue.trans?ue.trans.waitFor(r):r},Promise:ie,debug:{get:()=>zo,set:t=>{vE(t,t==="dexie"?()=>!0:AE)}},derive:Da,extend:rr,props:us,override:dE,Events:vl,on:Yn,liveQuery:LE,extendObservabilitySet:qE,getByKeyPath:tn,setByKeyPath:ao,delByKeyPath:function(t,e){typeof e=="string"?ao(t,e,void 0):"length"in e&&[].map.call(e,function(r){ao(t,r,void 0)})},shallowClone:gE,deepClone:wc,getObjectDiff:b0,cmp:Zt,asap:fE,minKey:Tm,addons:[],connections:ml,errnames:d0,dependencies:jm,semVer:Ek,version:Ek.split(".").map(t=>parseInt(t)).reduce((t,e,r)=>t+e/Math.pow(10,2*r))}),ni.maxKey=Zl(ni.dependencies.IDBKeyRange),typeof dispatchEvent<"u"&&typeof addEventListener<"u"&&(Yn(Yl,t=>{if(!Xo){let e;Gf?(e=document.createEvent("CustomEvent"),e.initCustomEvent(En,!0,!0,t)):e=new CustomEvent(En,{detail:t}),Xo=!0,dispatchEvent(e),Xo=!1}}),addEventListener(En,({detail:t})=>{Xo||Ku(t)}));let Xo=!1;if(typeof BroadcastChannel<"u"){const t=new BroadcastChannel(En);typeof t.unref=="function"&&t.unref(),Yn(Yl,e=>{Xo||t.postMessage(e)}),t.onmessage=e=>{e.data&&Ku(e.data)}}else if(typeof self<"u"&&typeof navigator<"u"){Yn(Yl,e=>{try{Xo||(typeof localStorage<"u"&&localStorage.setItem(En,JSON.stringify({trig:Math.random(),changedParts:e})),typeof self.clients=="object"&&[...self.clients.matchAll({includeUncontrolled:!0})].forEach(r=>r.postMessage({type:En,changedParts:e})))}catch{}}),typeof addEventListener<"u"&&addEventListener("storage",e=>{if(e.key===En){const r=JSON.parse(e.newValue);r&&Ku(r.changedParts)}});const t=self.document&&navigator.serviceWorker;t&&t.addEventListener("message",function({data:e}){e&&e.type===En&&Ku(e.changedParts)})}ie.rejectionMapper=function(t,e){if(!t||t instanceof Fa||t instanceof TypeError||t instanceof SyntaxError||!t.name||!_k[t.name])return t;var r=new _k[t.name](e||t.message,t);return"stack"in t&&en(r,"stack",{get:function(){return this.inner.stack}}),r},vE(zo,AE);function xee(t){var e=y.useRef();return e.current===void 0&&(e.current={value:typeof t=="function"?t():t}),e.current.value}function hQ(t,e,r){var o,n;typeof t=="function"?(o=e||[],n=r):(o=[],n=e);var i=dt.useRef({hasResult:!1,result:n,error:null}),a=dt.useReducer(function(c){return c+1},0);a[0];var s=a[1],l=dt.useMemo(function(){var c=typeof t=="function"?t():t;if(!c||typeof c.subscribe!="function")throw t===c?new TypeError("Given argument to useObservable() was neither a valid observable nor a function."):new TypeError("Observable factory given to useObservable() did not return a valid observable.");if(!i.current.hasResult&&typeof window<"u"&&(typeof c.hasValue!="function"||c.hasValue()))if(typeof c.getValue=="function")i.current.result=c.getValue(),i.current.hasResult=!0;else{var u=c.subscribe(function(d){i.current.result=d,i.current.hasResult=!0});typeof u=="function"?u():u.unsubscribe()}return c},o);if(dt.useDebugValue(i.current.result),dt.useEffect(function(){var c=l.subscribe(function(u){var d=i.current;(d.error!==null||d.result!==u)&&(d.error=null,d.result=u,d.hasResult=!0,s())},function(u){var d=i.current;d.error!==u&&(d.error=u,s())});return typeof c=="function"?c:c.unsubscribe.bind(c)},o),i.current.error)throw i.current.error;return i.current.result}function Cee(t,e,r){return hQ(function(){return LE(t)},e||[],r)}function gQ(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var HE=y,pQ=gQ(HE);function Mk(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mQ(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var vQ=!!(typeof window<"u"&&window.document&&window.document.createElement);function bQ(t,e,r){if(typeof t!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof e!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof r<"u"&&typeof r!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function o(n){return n.displayName||n.name||"Component"}return function(i){if(typeof i!="function")throw new Error("Expected WrappedComponent to be a React component.");var a=[],s;function l(){s=t(a.map(function(u){return u.props})),c.canUseDOM?e(s):r&&(s=r(s))}var c=function(u){mQ(d,u);function d(){return u.apply(this,arguments)||this}d.peek=function(){return s},d.rewind=function(){if(d.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var g=s;return s=void 0,a=[],g};var f=d.prototype;return f.UNSAFE_componentWillMount=function(){a.push(this),l()},f.componentDidUpdate=function(){l()},f.componentWillUnmount=function(){var g=a.indexOf(this);a.splice(g,1),l()},f.render=function(){return pQ.createElement(i,this.props)},d}(HE.PureComponent);return Mk(c,"displayName","SideEffect("+o(i)+")"),Mk(c,"canUseDOM",vQ),c}}var yQ=bQ;const wQ=Ao(yQ);var kQ=typeof Element<"u",SQ=typeof Map=="function",_Q=typeof Set=="function",xQ=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Wu(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var r,o,n;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(o=r;o--!==0;)if(!Wu(t[o],e[o]))return!1;return!0}var i;if(SQ&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i=t.entries();!(o=i.next()).done;)if(!e.has(o.value[0]))return!1;for(i=t.entries();!(o=i.next()).done;)if(!Wu(o.value[1],e.get(o.value[0])))return!1;return!0}if(_Q&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i=t.entries();!(o=i.next()).done;)if(!e.has(o.value[0]))return!1;return!0}if(xQ&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(r=t.length,r!=e.length)return!1;for(o=r;o--!==0;)if(t[o]!==e[o])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf&&typeof t.valueOf=="function"&&typeof e.valueOf=="function")return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString&&typeof t.toString=="function"&&typeof e.toString=="function")return t.toString()===e.toString();if(n=Object.keys(t),r=n.length,r!==Object.keys(e).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[o]))return!1;if(kQ&&t instanceof Element)return!1;for(o=r;o--!==0;)if(!((n[o]==="_owner"||n[o]==="__v"||n[o]==="__o")&&t.$$typeof)&&!Wu(t[n[o]],e[n[o]]))return!1;return!0}return t!==t&&e!==e}var CQ=function(e,r){try{return Wu(e,r)}catch(o){if((o.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw o}};const TQ=Ao(CQ);/* +object-assign +(c) Sindre Sorhus +@license MIT +*/var Ok=Object.getOwnPropertySymbols,EQ=Object.prototype.hasOwnProperty,BQ=Object.prototype.propertyIsEnumerable;function IQ(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function RQ(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de",Object.getOwnPropertyNames(t)[0]==="5")return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;var o=Object.getOwnPropertyNames(e).map(function(i){return e[i]});if(o.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var AQ=RQ()?Object.assign:function(t,e){for(var r,o=IQ(t),n,i=1;i=0||Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o]);return r},FQ=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t},Dm=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return r===!1?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},qQ=function(e){var r=Ha(e,be.TITLE),o=Ha(e,Jl.TITLE_TEMPLATE);if(o&&r)return o.replace(/%s/g,function(){return Array.isArray(r)?r.join(""):r});var n=Ha(e,Jl.DEFAULT_TITLE);return r||n||void 0},LQ=function(e){return Ha(e,Jl.ON_CHANGE_CLIENT_STATE)||function(){}},bg=function(e,r){return r.filter(function(o){return typeof o[e]<"u"}).map(function(o){return o[e]}).reduce(function(o,n){return ar({},o,n)},{})},HQ=function(e,r){return r.filter(function(o){return typeof o[be.BASE]<"u"}).map(function(o){return o[be.BASE]}).reverse().reduce(function(o,n){if(!o.length)for(var i=Object.keys(n),a=0;a=0;o--){var n=e[o];if(n.hasOwnProperty(r))return n[r]}return null},UQ=function(e){return{baseTag:HQ([Ue.HREF,Ue.TARGET],e),bodyAttributes:bg(Ii.BODY,e),defer:Ha(e,Jl.DEFER),encode:Ha(e,Jl.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:bg(Ii.HTML,e),linkTags:js(be.LINK,[Ue.REL,Ue.HREF],e),metaTags:js(be.META,[Ue.NAME,Ue.CHARSET,Ue.HTTPEQUIV,Ue.PROPERTY,Ue.ITEM_PROP],e),noscriptTags:js(be.NOSCRIPT,[Ue.INNER_HTML],e),onChangeClientState:LQ(e),scriptTags:js(be.SCRIPT,[Ue.SRC,Ue.INNER_HTML],e),styleTags:js(be.STYLE,[Ue.CSS_TEXT],e),title:qQ(e),titleAttributes:bg(Ii.TITLE,e)}},Fm=function(){var t=Date.now();return function(e){var r=Date.now();r-t>16?(t=r,e(r)):setTimeout(function(){Fm(e)},0)}}(),Dk=function(e){return clearTimeout(e)},$Q=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Fm:global.requestAnimationFrame||Fm,KQ=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Dk:global.cancelAnimationFrame||Dk,WQ=function(e){return console&&typeof console.warn=="function"&&console.warn(e)},Ds=null,VQ=function(e){Ds&&KQ(Ds),e.defer?Ds=$Q(function(){Fk(e,function(){Ds=null})}):(Fk(e),Ds=null)},Fk=function(e,r){var o=e.baseTag,n=e.bodyAttributes,i=e.htmlAttributes,a=e.linkTags,s=e.metaTags,l=e.noscriptTags,c=e.onChangeClientState,u=e.scriptTags,d=e.styleTags,f=e.title,h=e.titleAttributes;qm(be.BODY,n),qm(be.HTML,i),GQ(f,h);var g={baseTag:sa(be.BASE,o),linkTags:sa(be.LINK,a),metaTags:sa(be.META,s),noscriptTags:sa(be.NOSCRIPT,l),scriptTags:sa(be.SCRIPT,u),styleTags:sa(be.STYLE,d)},m={},w={};Object.keys(g).forEach(function(v){var p=g[v],b=p.newTags,k=p.oldTags;b.length&&(m[v]=b),k.length&&(w[v]=g[v].oldTags)}),r&&r(),c(e,m,w)},UE=function(e){return Array.isArray(e)?e.join(""):e},GQ=function(e,r){typeof e<"u"&&document.title!==e&&(document.title=UE(e)),qm(be.TITLE,r)},qm=function(e,r){var o=document.getElementsByTagName(e)[0];if(o){for(var n=o.getAttribute(to),i=n?n.split(","):[],a=[].concat(i),s=Object.keys(r),l=0;l=0;f--)o.removeAttribute(a[f]);i.length===a.length?o.removeAttribute(to):o.getAttribute(to)!==s.join(",")&&o.setAttribute(to,s.join(","))}},sa=function(e,r){var o=document.head||document.querySelector(be.HEAD),n=o.querySelectorAll(e+"["+to+"]"),i=Array.prototype.slice.call(n),a=[],s=void 0;return r&&r.length&&r.forEach(function(l){var c=document.createElement(e);for(var u in l)if(l.hasOwnProperty(u))if(u===Ue.INNER_HTML)c.innerHTML=l.innerHTML;else if(u===Ue.CSS_TEXT)c.styleSheet?c.styleSheet.cssText=l.cssText:c.appendChild(document.createTextNode(l.cssText));else{var d=typeof l[u]>"u"?"":l[u];c.setAttribute(u,d)}c.setAttribute(to,"true"),i.some(function(f,h){return s=h,c.isEqualNode(f)})?i.splice(s,1):a.push(c)}),i.forEach(function(l){return l.parentNode.removeChild(l)}),a.forEach(function(l){return o.appendChild(l)}),{oldTags:i,newTags:a}},$E=function(e){return Object.keys(e).reduce(function(r,o){var n=typeof e[o]<"u"?o+'="'+e[o]+'"':""+o;return r?r+" "+n:n},"")},XQ=function(e,r,o,n){var i=$E(o),a=UE(r);return i?"<"+e+" "+to+'="true" '+i+">"+Dm(a,n)+"":"<"+e+" "+to+'="true">'+Dm(a,n)+""},YQ=function(e,r,o){return r.reduce(function(n,i){var a=Object.keys(i).filter(function(c){return!(c===Ue.INNER_HTML||c===Ue.CSS_TEXT)}).reduce(function(c,u){var d=typeof i[u]>"u"?u:u+'="'+Dm(i[u],o)+'"';return c?c+" "+d:d},""),s=i.innerHTML||i.cssText||"",l=zQ.indexOf(e)===-1;return n+"<"+e+" "+to+'="true" '+a+(l?"/>":">"+s+"")},"")},KE=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(e).reduce(function(o,n){return o[Gd[n]||n]=e[n],o},r)},ZQ=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(e).reduce(function(o,n){return o[PQ[n]||n]=e[n],o},r)},QQ=function(e,r,o){var n,i=(n={key:r},n[to]=!0,n),a=KE(o,i);return[dt.createElement(be.TITLE,a,r)]},JQ=function(e,r){return r.map(function(o,n){var i,a=(i={key:n},i[to]=!0,i);return Object.keys(o).forEach(function(s){var l=Gd[s]||s;if(l===Ue.INNER_HTML||l===Ue.CSS_TEXT){var c=o.innerHTML||o.cssText;a.dangerouslySetInnerHTML={__html:c}}else a[l]=o[s]}),dt.createElement(e,a)})},jo=function(e,r,o){switch(e){case be.TITLE:return{toComponent:function(){return QQ(e,r.title,r.titleAttributes)},toString:function(){return XQ(e,r.title,r.titleAttributes,o)}};case Ii.BODY:case Ii.HTML:return{toComponent:function(){return KE(r)},toString:function(){return $E(r)}};default:return{toComponent:function(){return JQ(e,r)},toString:function(){return YQ(e,r,o)}}}},WE=function(e){var r=e.baseTag,o=e.bodyAttributes,n=e.encode,i=e.htmlAttributes,a=e.linkTags,s=e.metaTags,l=e.noscriptTags,c=e.scriptTags,u=e.styleTags,d=e.title,f=d===void 0?"":d,h=e.titleAttributes;return{base:jo(be.BASE,r,n),bodyAttributes:jo(Ii.BODY,o,n),htmlAttributes:jo(Ii.HTML,i,n),link:jo(be.LINK,a,n),meta:jo(be.META,s,n),noscript:jo(be.NOSCRIPT,l,n),script:jo(be.SCRIPT,c,n),style:jo(be.STYLE,u,n),title:jo(be.TITLE,{title:f,titleAttributes:h},n)}},eJ=function(e){var r,o;return o=r=function(n){DQ(i,n);function i(){return OQ(this,i),FQ(this,n.apply(this,arguments))}return i.prototype.shouldComponentUpdate=function(s){return!TQ(this.props,s)},i.prototype.mapNestedChildrenToProps=function(s,l){if(!l)return null;switch(s.type){case be.SCRIPT:case be.NOSCRIPT:return{innerHTML:l};case be.STYLE:return{cssText:l}}throw new Error("<"+s.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},i.prototype.flattenArrayTypeChildren=function(s){var l,c=s.child,u=s.arrayTypeChildren,d=s.newChildProps,f=s.nestedChildren;return ar({},u,(l={},l[c.type]=[].concat(u[c.type]||[],[ar({},d,this.mapNestedChildrenToProps(c,f))]),l))},i.prototype.mapObjectTypeChildren=function(s){var l,c,u=s.child,d=s.newProps,f=s.newChildProps,h=s.nestedChildren;switch(u.type){case be.TITLE:return ar({},d,(l={},l[u.type]=h,l.titleAttributes=ar({},f),l));case be.BODY:return ar({},d,{bodyAttributes:ar({},f)});case be.HTML:return ar({},d,{htmlAttributes:ar({},f)})}return ar({},d,(c={},c[u.type]=ar({},f),c))},i.prototype.mapArrayTypeChildrenToProps=function(s,l){var c=ar({},l);return Object.keys(s).forEach(function(u){var d;c=ar({},c,(d={},d[u]=s[u],d))}),c},i.prototype.warnOnInvalidChildren=function(s,l){return!0},i.prototype.mapChildrenToProps=function(s,l){var c=this,u={};return dt.Children.forEach(s,function(d){if(!(!d||!d.props)){var f=d.props,h=f.children,g=jk(f,["children"]),m=ZQ(g);switch(c.warnOnInvalidChildren(d,h),d.type){case be.LINK:case be.META:case be.NOSCRIPT:case be.SCRIPT:case be.STYLE:u=c.flattenArrayTypeChildren({child:d,arrayTypeChildren:u,newChildProps:m,nestedChildren:h});break;default:l=c.mapObjectTypeChildren({child:d,newProps:l,newChildProps:m,nestedChildren:h});break}}}),l=this.mapArrayTypeChildrenToProps(u,l),l},i.prototype.render=function(){var s=this.props,l=s.children,c=jk(s,["children"]),u=ar({},c);return l&&(u=this.mapChildrenToProps(l,u)),dt.createElement(e,u)},jQ(i,null,[{key:"canUseDOM",set:function(s){e.canUseDOM=s}}]),i}(dt.Component),r.propTypes={base:qe.object,bodyAttributes:qe.object,children:qe.oneOfType([qe.arrayOf(qe.node),qe.node]),defaultTitle:qe.string,defer:qe.bool,encodeSpecialCharacters:qe.bool,htmlAttributes:qe.object,link:qe.arrayOf(qe.object),meta:qe.arrayOf(qe.object),noscript:qe.arrayOf(qe.object),onChangeClientState:qe.func,script:qe.arrayOf(qe.object),style:qe.arrayOf(qe.object),title:qe.string,titleAttributes:qe.object,titleTemplate:qe.string},r.defaultProps={defer:!0,encodeSpecialCharacters:!0},r.peek=e.peek,r.rewind=function(){var n=e.rewind();return n||(n=WE({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),n},o},tJ=function(){return null},rJ=wQ(UQ,VQ,WE)(tJ),qk=eJ(rJ);qk.renderStatic=qk.rewind;export{vK as $,nJ as A,e9 as B,IJ as C,Zp as D,Zq as E,x9 as F,wL as G,Le as H,wD as I,PD as J,hL as K,uo as L,_ee as M,lJ as N,dee as O,N_ as P,ZD as Q,KT as R,SZ as S,$W as T,X8 as U,FF as V,PF as W,La as X,cF as Y,iJ as Z,xF as _,gee as a,yee as a$,SK as a0,aK as a1,dK as a2,pq as a3,TD as a4,hee as a5,EK as a6,Q$ as a7,aee as a8,see as a9,fee as aA,uee as aB,cee as aC,uD as aD,RJ as aE,yJ as aF,EJ as aG,aD as aH,G9 as aI,HN as aJ,LN as aK,mee as aL,Wp as aM,lee as aN,iee as aO,UK as aP,eW as aQ,ZK as aR,WK as aS,aq as aT,Ao as aU,$1 as aV,xJ as aW,_J as aX,CJ as aY,hJ as aZ,BJ as a_,Iq as aa,vJ as ab,LV as ac,JV as ad,nG as ae,YN as af,VV as ag,WL as ah,cm as ai,Mj as aj,RT as ak,AT as al,a9 as am,dJ as an,Ij as ao,Xi as ap,qk as aq,qq as ar,IR as as,ek as at,o8 as au,nee as av,oJ as aw,OW as ax,cH as ay,Fs as az,eV as b,UN as b0,mJ as b1,R as b2,bJ as b3,nU as b4,mU as b5,DJ as b6,GJ as b7,tee as b8,QJ as b9,qJ as bA,OJ as bB,zJ as bC,jJ as bD,MJ as bE,oF as bF,VJ as bG,WJ as bH,KN as bI,JJ as ba,eee as bb,gJ as bc,kJ as bd,lU as be,TJ as bf,ZJ as bg,XJ as bh,PJ as bi,FJ as bj,KJ as bk,$J as bl,UJ as bm,YJ as bn,ree as bo,HJ as bp,uJ as bq,cJ as br,fU as bs,SJ as bt,LJ as bu,pJ as bv,fJ as bw,AJ as bx,wJ as by,NJ as bz,sV as c,bee as d,_L as e,Ev as f,UH as g,RH as h,jH as i,Qk as j,XH as k,xH as l,sJ as m,Q1 as n,vee as o,He as p,See as q,y as r,aJ as s,oee as t,OX as u,kt as v,$ as w,pee as x,xee as y,Cee as z}; +function __vite__mapDeps(indexes) { + if (!__vite__mapDeps.viteFileDeps) { + __vite__mapDeps.viteFileDeps = [] + } + return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) +} diff --git a/index.html b/index.html index 97b4c0d..49c6f09 100644 --- a/index.html +++ b/index.html @@ -5,8 +5,8 @@ AwaiShop - - + +