@baseline-ui/core 3.5.0 → 3.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion.mjs +1 -1
- package/dist/ActionButton.mjs +1 -1
- package/dist/ActionGroup.mjs +1 -1
- package/dist/ActionIconButton.mjs +1 -1
- package/dist/Actionable.mjs +1 -1
- package/dist/AlertDialog.mjs +1 -1
- package/dist/AudioPlayer.mjs +1 -1
- package/dist/Breadcrumbs.css +10 -0
- package/dist/Breadcrumbs.mjs +1 -0
- package/dist/ButtonSelect.mjs +1 -1
- package/dist/Calendar.mjs +1 -1
- package/dist/Checkbox.mjs +1 -1
- package/dist/ColorInput.mjs +1 -1
- package/dist/ColorSwatch.mjs +1 -1
- package/dist/ColorSwatchPicker.mjs +1 -1
- package/dist/ComboBox.mjs +1 -1
- package/dist/DateField.mjs +1 -1
- package/dist/Dialog.mjs +1 -1
- package/dist/Disclosure.mjs +1 -1
- package/dist/DomNodeRenderer.mjs +1 -1
- package/dist/Drawer.mjs +1 -1
- package/dist/Editor.mjs +1 -1
- package/dist/FileInput.mjs +1 -1
- package/dist/FileList.mjs +1 -1
- package/dist/FileUploader.mjs +1 -1
- package/dist/FrameProvider.mjs +1 -1
- package/dist/FreehandCanvas.mjs +1 -1
- package/dist/GridList.mjs +1 -1
- package/dist/I18nProvider.mjs +1 -1
- package/dist/Icon.mjs +1 -1
- package/dist/ImageDropZone.mjs +1 -1
- package/dist/ImageGallery.mjs +1 -1
- package/dist/InlineAlert.mjs +1 -1
- package/dist/InlineToolbar.mjs +1 -1
- package/dist/Kbd.mjs +1 -1
- package/dist/Link.mjs +1 -1
- package/dist/ListBox.mjs +1 -1
- package/dist/Menu.mjs +1 -1
- package/dist/MessageFormat.mjs +1 -1
- package/dist/Modal.mjs +1 -1
- package/dist/NumberInput.mjs +1 -1
- package/dist/Pagination.mjs +1 -1
- package/dist/PointPicker.mjs +1 -1
- package/dist/Popover.mjs +1 -1
- package/dist/Portal.mjs +1 -1
- package/dist/Preview.mjs +1 -1
- package/dist/ProgressBar.mjs +1 -1
- package/dist/RadioGroup.mjs +1 -1
- package/dist/Reaction.mjs +1 -1
- package/dist/ScrollControlButton.mjs +1 -1
- package/dist/SearchInput.mjs +1 -1
- package/dist/Select.mjs +1 -1
- package/dist/Slider.mjs +1 -1
- package/dist/Stepper.mjs +1 -1
- package/dist/Switch.mjs +1 -1
- package/dist/Table.mjs +1 -1
- package/dist/Tabs.mjs +1 -1
- package/dist/Tag.mjs +1 -1
- package/dist/TagGroup.mjs +1 -1
- package/dist/TaggedPagination.mjs +1 -1
- package/dist/Text.mjs +1 -1
- package/dist/TextInput.mjs +1 -1
- package/dist/ThemeProvider.mjs +1 -1
- package/dist/TimeField.mjs +1 -1
- package/dist/Toast.mjs +1 -1
- package/dist/ToggleButton.mjs +1 -1
- package/dist/ToggleIconButton.mjs +1 -1
- package/dist/Toolbar.mjs +1 -1
- package/dist/Tooltip.mjs +1 -1
- package/dist/TreeView.mjs +1 -1
- package/dist/UNSAFE_ListBox.mjs +1 -1
- package/dist/Virtualizer.mjs +1 -1
- package/dist/{chunk-UOWKAUCQ.mjs → chunk-23WMOYTQ.mjs} +2 -2
- package/dist/chunk-266F6F4Y.mjs +10 -0
- package/dist/{chunk-5G6JNQQR.mjs → chunk-2CXZQGP5.mjs} +1 -1
- package/dist/{chunk-JRCDMRIW.mjs → chunk-2KX2HY2H.mjs} +1 -1
- package/dist/{chunk-NMK4W6K3.mjs → chunk-3PU6C5US.mjs} +1 -1
- package/dist/{chunk-ZA2FH3MS.mjs → chunk-3RWM6E56.mjs} +1 -1
- package/dist/{chunk-KW3BKIG4.mjs → chunk-3YVVIFY7.mjs} +1 -1
- package/dist/{chunk-TTVYMCU3.mjs → chunk-42SQX2EB.mjs} +1 -1
- package/dist/{chunk-3M3WJHOI.mjs → chunk-4T7P66ZA.mjs} +1 -1
- package/dist/{chunk-UO75BAPM.mjs → chunk-4Y4WKIL5.mjs} +1 -1
- package/dist/chunk-6DETJFO2.mjs +10 -0
- package/dist/chunk-6DYTFYPO.mjs +10 -0
- package/dist/{chunk-3DWFAHR2.mjs → chunk-6GV3YWV7.mjs} +1 -1
- package/dist/{chunk-2M2LI4MI.mjs → chunk-6LP7UKPC.mjs} +1 -1
- package/dist/chunk-6M77HEKA.mjs +10 -0
- package/dist/chunk-6Z3GYFG5.mjs +10 -0
- package/dist/{chunk-7XGNJE7J.mjs → chunk-7DCQF3EP.mjs} +1 -1
- package/dist/{chunk-QWZBZ23U.mjs → chunk-7HVUCDKZ.mjs} +1 -1
- package/dist/{chunk-3KWSJRYK.mjs → chunk-7KZEJYIU.mjs} +1 -1
- package/dist/{chunk-6GMU63H2.mjs → chunk-7OUGARUO.mjs} +1 -1
- package/dist/{chunk-GLAMJIYO.mjs → chunk-AMLFQDKI.mjs} +1 -1
- package/dist/{chunk-676DOXEK.mjs → chunk-ARCCPNHM.mjs} +2 -2
- package/dist/{chunk-OWQRYRWF.mjs → chunk-C2B7L5CL.mjs} +1 -1
- package/dist/chunk-EIB7MPRA.mjs +10 -0
- package/dist/{chunk-LKSUUT3M.mjs → chunk-F67SYAEW.mjs} +1 -1
- package/dist/{chunk-2AKHB7Y5.mjs → chunk-FF7H33Z5.mjs} +1 -1
- package/dist/{chunk-GL5GUKT7.mjs → chunk-FX3THTOK.mjs} +1 -1
- package/dist/{chunk-D5VU5TED.mjs → chunk-G2T6UJ66.mjs} +1 -1
- package/dist/{chunk-FGSVPRDN.mjs → chunk-GAT5QH2M.mjs} +1 -1
- package/dist/{chunk-X5ZTXDQ4.mjs → chunk-GDIKHTP3.mjs} +1 -1
- package/dist/{chunk-PLZ6ZFEO.mjs → chunk-GJTOYWLJ.mjs} +1 -1
- package/dist/chunk-GTHN5ZCZ.mjs +10 -0
- package/dist/{chunk-XQC3DSTW.mjs → chunk-GYKBMDSJ.mjs} +1 -1
- package/dist/{chunk-43LOJ3SH.mjs → chunk-HCQI7MNN.mjs} +1 -1
- package/dist/{chunk-LBHZV4BO.mjs → chunk-HJGMXLKN.mjs} +1 -1
- package/dist/{chunk-ONBEVR2G.mjs → chunk-IC5SBDP3.mjs} +1 -1
- package/dist/{chunk-7MLFM55C.mjs → chunk-IDIZSV2Y.mjs} +1 -1
- package/dist/chunk-IGM72PUL.mjs +0 -0
- package/dist/{chunk-AFOW62QN.mjs → chunk-INFMXVHD.mjs} +1 -1
- package/dist/{chunk-O6FPWOHR.mjs → chunk-J2KZM2I2.mjs} +1 -1
- package/dist/{chunk-WFYFHANE.mjs → chunk-JHA7DIPG.mjs} +1 -1
- package/dist/{chunk-AMVX34SS.mjs → chunk-JKOCFSBH.mjs} +1 -1
- package/dist/{chunk-DAI7V4TE.mjs → chunk-JTKDC2CM.mjs} +1 -1
- package/dist/{chunk-5G7ABQYJ.mjs → chunk-K4N2ADJO.mjs} +1 -1
- package/dist/{chunk-TFSBTGTQ.mjs → chunk-KQOXSF4J.mjs} +1 -1
- package/dist/{chunk-SBGZCLF4.mjs → chunk-KX2GDQKJ.mjs} +1 -1
- package/dist/{chunk-7BE6MOPW.mjs → chunk-LRF3YZWU.mjs} +2 -2
- package/dist/{chunk-BET5GVGQ.mjs → chunk-LV5AUNI2.mjs} +1 -1
- package/dist/{chunk-7P7VZMTO.mjs → chunk-NWWH62TU.mjs} +1 -1
- package/dist/{chunk-YFBMCK5O.mjs → chunk-O4YMXTNR.mjs} +1 -1
- package/dist/chunk-PCR5FD43.mjs +10 -0
- package/dist/{chunk-Z3ZMWJSV.mjs → chunk-PR3CD3UC.mjs} +2 -2
- package/dist/chunk-Q6R75IOP.mjs +10 -0
- package/dist/chunk-QC76UPJB.mjs +29 -0
- package/dist/{chunk-X5ORCNAU.mjs → chunk-QUWRO3HT.mjs} +1 -1
- package/dist/{chunk-3UC5V5E3.mjs → chunk-RE7ZGPOY.mjs} +1 -1
- package/dist/{chunk-6M7PJXEE.mjs → chunk-RFVLSR2P.mjs} +1 -1
- package/dist/{chunk-YYU46XNM.mjs → chunk-RFVPGD6N.mjs} +1 -1
- package/dist/chunk-RINS2TBF.mjs +10 -0
- package/dist/{chunk-MCN5JU6E.mjs → chunk-RITIRWKN.mjs} +1 -1
- package/dist/chunk-RUHZRYDJ.mjs +10 -0
- package/dist/{chunk-UH6QIGD3.mjs → chunk-RXVMJVRX.mjs} +1 -1
- package/dist/{chunk-DO5YROCG.mjs → chunk-SH7ZI4CA.mjs} +1 -1
- package/dist/{chunk-2WA3KB7H.mjs → chunk-TDRN6VLD.mjs} +1 -1
- package/dist/chunk-TTJTZLW5.mjs +10 -0
- package/dist/{chunk-VXZT2JR2.mjs → chunk-UY76QEJC.mjs} +1 -1
- package/dist/{chunk-ABXTAFKP.mjs → chunk-VJUSOXPW.mjs} +1 -1
- package/dist/{chunk-5W67PVZQ.mjs → chunk-VZ5CLAIL.mjs} +2 -2
- package/dist/{chunk-USUPPN73.mjs → chunk-WB7EFOP7.mjs} +1 -1
- package/dist/chunk-WDWBYTJG.mjs +10 -0
- package/dist/{chunk-UYUYQFOW.mjs → chunk-XDTZXNGJ.mjs} +1 -1
- package/dist/{chunk-7XLBV46W.mjs → chunk-XG6JJCCJ.mjs} +1 -1
- package/dist/{chunk-BAIVRB2I.mjs → chunk-XKUZVQ2A.mjs} +1 -1
- package/dist/{chunk-SI5WP6I7.mjs → chunk-XO7MAUFC.mjs} +1 -1
- package/dist/{chunk-CTBCJZEG.mjs → chunk-XSORBGUU.mjs} +1 -1
- package/dist/{chunk-AN26QORL.mjs → chunk-XYK5KKOH.mjs} +1 -1
- package/dist/{chunk-CENNHSIS.mjs → chunk-ZC5WXVNV.mjs} +1 -1
- package/dist/{chunk-QXXKOFWM.mjs → chunk-ZI7HJRJA.mjs} +1 -1
- package/dist/{chunk-LQ7PGSP4.mjs → chunk-ZNLIC44U.mjs} +1 -1
- package/dist/chunk-ZP6QG5FX.mjs +10 -0
- package/dist/{chunk-EL5OYHOX.mjs → chunk-ZXEWW3E7.mjs} +1 -1
- package/dist/{chunk-UPJHL37C.mjs → chunk-ZZ7YJ2FN.mjs} +1 -1
- package/dist/hooks/useDevice.mjs +1 -1
- package/dist/hooks/useI18n.mjs +1 -1
- package/dist/hooks/useIntersectionObserver.mjs +1 -1
- package/dist/hooks/useLiveInteractionModality.mjs +1 -1
- package/dist/hooks/useMedia.mjs +1 -1
- package/dist/hooks/useMutationObserver.mjs +1 -1
- package/dist/hooks/usePortalContainer.mjs +1 -1
- package/dist/hooks/usePreventFocus.mjs +1 -1
- package/dist/hooks/useResizeObserver.mjs +1 -1
- package/dist/hooks/useTextSelection.mjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +86 -12
- package/dist/index.js +21 -21
- package/dist/index.mjs +1 -1
- package/dist/messageIds.mjs +1 -1
- package/dist/utils/colors.mjs +1 -1
- package/dist/utils/dom.mjs +1 -1
- package/dist/utils/isInShadowDOM.mjs +1 -1
- package/dist/utils/keyboards.mjs +1 -1
- package/intl/ar.json +2 -0
- package/intl/cs.json +2 -0
- package/intl/cy.json +2 -0
- package/intl/da.json +2 -0
- package/intl/de.json +2 -0
- package/intl/el.json +2 -0
- package/intl/en-GB.json +2 -0
- package/intl/en.json +2 -0
- package/intl/es.json +2 -0
- package/intl/fi.json +2 -0
- package/intl/fr-CA.json +2 -0
- package/intl/fr.json +2 -0
- package/intl/he.json +2 -0
- package/intl/hr.json +2 -0
- package/intl/id.json +2 -0
- package/intl/it.json +2 -0
- package/intl/ja.json +2 -0
- package/intl/ko.json +2 -0
- package/intl/ms.json +2 -0
- package/intl/nb-NO.json +2 -0
- package/intl/nl.json +2 -0
- package/intl/pl.json +2 -0
- package/intl/pt-PT.json +2 -0
- package/intl/pt.json +2 -0
- package/intl/ru.json +2 -0
- package/intl/sk.json +2 -0
- package/intl/sl.json +2 -0
- package/intl/sv.json +2 -0
- package/intl/th.json +2 -0
- package/intl/tr.json +2 -0
- package/intl/uk.json +2 -0
- package/intl/zh-Hans.json +2 -0
- package/intl/zh-Hant.json +2 -0
- package/messages.json +8 -0
- package/package.json +4 -4
- package/sbom.json +6 -6
- package/dist/chunk-46RUOB4U.mjs +0 -29
- package/dist/chunk-AYQN3OH2.mjs +0 -10
- package/dist/chunk-FNCHBVLF.mjs +0 -10
- package/dist/chunk-OMWMNUTI.mjs +0 -10
- package/dist/chunk-R6Q7UMQS.mjs +0 -10
- package/dist/chunk-T6J7G3YL.mjs +0 -10
- package/dist/chunk-UYAFH4CW.mjs +0 -10
- package/dist/chunk-X7CKWYUD.mjs +0 -10
- package/dist/chunk-Y3HXPORF.mjs +0 -10
- package/dist/chunk-YMYMFVW4.mjs +0 -10
- package/dist/chunk-YQHHE5AT.mjs +0 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a as a$6}from'./chunk-SVV6DLJH.mjs';import {a as a$
|
|
1
|
+
import {a as a$6}from'./chunk-SVV6DLJH.mjs';import {a as a$l}from'./chunk-IM3E5JL4.mjs';import {a as a$b,b as b$6}from'./chunk-KQOXSF4J.mjs';import {c as c$8,b as b$b}from'./chunk-EGLD5KVP.mjs';import {a as a$8,b as b$5,g,e as e$2,d,f,h as h$2}from'./chunk-6DYTFYPO.mjs';import {b,c as c$1}from'./chunk-QUWRO3HT.mjs';import {b as b$3,a as a$o}from'./chunk-XAM3AXXK.mjs';import {c as c$7,d as d$4}from'./chunk-QMV2O57M.mjs';import {l,i,p,k,h as h$1,j,n,d as d$1,g as g$1,a as a$i,b as b$9}from'./chunk-6Z3GYFG5.mjs';import {a as a$4,g as g$2,c as c$6,e as e$3,b as b$a,f as f$2,d as d$5}from'./chunk-ZQOR4LCM.mjs';import {a as a$j}from'./chunk-UFN2OAM2.mjs';import {a as a$m}from'./chunk-D4NW56YQ.mjs';import {a as a$9,d as d$6}from'./chunk-GMALMQWI.mjs';import {a as a$g}from'./chunk-USMC34OO.mjs';import {b as b$7}from'./chunk-KG2EHFYA.mjs';import {b as b$2}from'./chunk-N2XGJKZG.mjs';import {a as a$d}from'./chunk-K5RYVERS.mjs';import {a as a$e}from'./chunk-NQIZ3U7Q.mjs';import {h,e as e$1,c,b as b$4,a as a$f}from'./chunk-RINS2TBF.mjs';import {a as a$h}from'./chunk-JJG67M2S.mjs';import {e,k as k$1,l as l$1,c as c$4}from'./chunk-TZGK36KC.mjs';import {a as a$2,d as d$2,f as f$3,b as b$d}from'./chunk-GQIS4QBN.mjs';import {a as a$k}from'./chunk-Y2MIU76N.mjs';import {a as a$5}from'./chunk-FPM5UJRF.mjs';import {a as a$7}from'./chunk-STMDFIUL.mjs';import {c as c$5}from'./chunk-HH4VLTF3.mjs';import {a as a$a}from'./chunk-B3EZOXNU.mjs';import {i as i$1,j as j$1,f as f$1,b as b$c}from'./chunk-KUDCYGII.mjs';import {d as d$3}from'./chunk-F7WPMQ3P.mjs';import {a}from'./chunk-RT4LMB6X.mjs';import {l as l$2,u,q}from'./chunk-PPHSLODC.mjs';import {b as b$1,c as c$2,a as a$n}from'./chunk-3WKDIXCM.mjs';import {a as a$3}from'./chunk-SVIYLH7R.mjs';import {a as a$1,c as c$3}from'./chunk-ETM4MNG4.mjs';import {b as b$8,a as a$c,i as i$2,h as h$3,j as j$2,m}from'./chunk-SD43KVTU.mjs';import {createContext,forwardRef,useRef,useState,useMemo,useContext,useEffect,useCallback}from'react';import ro from'react-dom';import {jsx,jsxs,Fragment}from'react/jsx-runtime';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
@@ -7,4 +7,4 @@ import {a as a$6}from'./chunk-SVV6DLJH.mjs';import {a as a$k}from'./chunk-IM3E5J
|
|
|
7
7
|
* This notice may not be removed from this file.
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
|
-
var $e=class{keyMap=new Map;columnCount;rows;constructor(e){this.keyMap=new Map,this.columnCount=e?.columnCount,this.rows=[];let l=n=>{let i=this.keyMap.get(n.key);e.visitNode&&(n=e.visitNode(n)),this.keyMap.set(n.key,n);let d=new Set,a=null,u=false;if(n.type==="item"){for(let c of n.childNodes)if(c.props?.colSpan!==void 0){u=true;break}}for(let c of n.childNodes)c.type==="cell"&&u&&(c.colspan=c.props?.colSpan,c.colSpan=c.props?.colSpan,c.colIndex=a?(a.colIndex??a.index)+(a.colSpan??1):c.index),c.type==="cell"&&c.parentKey==null&&(c.parentKey=n.key),d.add(c.key),a?(a.nextKey=c.key,c.prevKey=a.key):c.prevKey=null,l(c),a=c;if(a&&(a.nextKey=null),i)for(let c of i.childNodes)d.has(c.key)||o(c);},o=n=>{this.keyMap.delete(n.key);for(let i of n.childNodes)this.keyMap.get(i.key)===i&&o(i);},r=null;for(let[n,i]of e.items.entries()){let d={...i,level:i.level??0,key:i.key??"row-"+n,type:i.type??"row",value:i.value??null,hasChildNodes:true,childNodes:[...i.childNodes],rendered:i.rendered,textValue:i.textValue??"",index:i.index??n};r?(r.nextKey=d.key,d.prevKey=r.key):d.prevKey=null,this.rows.push(d),l(d),r=d;}r&&(r.nextKey=null);}*[Symbol.iterator](){yield*[...this.rows];}get size(){return [...this.rows].length}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let l=this.keyMap.get(e);return l?l.prevKey??null:null}getKeyAfter(e){let l=this.keyMap.get(e);return l?l.nextKey??null:null}getFirstKey(){return [...this.rows][0]?.key}getLastKey(){let e=[...this.rows];return e[e.length-1]?.key}getItem(e){return this.keyMap.get(e)??null}at(e){let l=[...this.getKeys()];return this.getItem(l[e])}getChildren(e){return this.keyMap.get(e)?.childNodes||[]}};var Rl="row-header-column-"+Math.random().toString(36).slice(2),ut="row-header-column-"+Math.random().toString(36).slice(2);for(;Rl===ut;)ut="row-header-column-"+Math.random().toString(36).slice(2);function je(t,e){if(e.length===0)return [];let l=[],o=new Map;for(let a of e){let u=a.parentKey,c=[a];for(;u!=null;){let s=t.get(u);if(!s)break;if(o.has(s)){s.colSpan??=0,s.colSpan++,s.colspan=s.colSpan;let{column:b,index:f}=o.get(s);if(f>c.length)break;for(let p=f;p<c.length;p++)b.splice(p,0,null);for(let p=c.length;p<b.length;p++)b[p]&&o.has(b[p])&&(o.get(b[p]).index=p);}else s.colSpan=1,s.colspan=1,c.push(s),o.set(s,{column:c,index:c.length-1});u=s.parentKey;}l.push(c),a.index=l.length-1;}let r=Math.max(...l.map(a=>a.length)),n=Array(r).fill(0).map(()=>[]),i=0;for(let a of l){let u=r-1;for(let c of a){if(c){let s=n[u],b=s.reduce((f,p)=>f+(p.colSpan??1),0);if(b<i){let f={type:"placeholder",key:"placeholder-"+c.key,colspan:i-b,colSpan:i-b,index:b,value:null,rendered:null,level:u,hasChildNodes:false,childNodes:[],textValue:""};s.length>0&&(s[s.length-1].nextKey=f.key,f.prevKey=s[s.length-1].key),s.push(f);}s.length>0&&(s[s.length-1].nextKey=c.key,c.prevKey=s[s.length-1].key),c.level=u,c.colIndex=i,s.push(c);}u--;}i++;}let d=0;for(let a of n){let u=a.reduce((c,s)=>c+(s.colSpan??1),0);if(u<e.length){let c={type:"placeholder",key:"placeholder-"+a[a.length-1].key,colSpan:e.length-u,colspan:e.length-u,index:u,value:null,rendered:null,level:d,hasChildNodes:false,childNodes:[],textValue:"",prevKey:a[a.length-1].key};a.push(c);}d++;}return n.map((a,u)=>({type:"headerrow",key:"headerrow-"+u,index:u,value:null,rendered:null,level:0,hasChildNodes:true,childNodes:a,textValue:""}))}var Re=class extends $e{headerRows;columns;rowHeaderColumnKeys;body;_size=0;constructor(e,l,o){let r=new Set,n=null,i=[];if(o?.showSelectionCheckboxes){let s={type:"column",key:Rl,value:null,textValue:"",level:0,index:o?.showDragButtons?1:0,hasChildNodes:false,rendered:null,childNodes:[],props:{isSelectionCell:true}};i.unshift(s);}if(o?.showDragButtons){let s={type:"column",key:ut,value:null,textValue:"",level:0,index:0,hasChildNodes:false,rendered:null,childNodes:[],props:{isDragButtonCell:true}};i.unshift(s);}let d=[],a=new Map,u=s=>{switch(s.type){case "body":n=s;break;case "column":a.set(s.key,s),s.hasChildNodes||(i.push(s),s.props.isRowHeader&&r.add(s.key));break;case "item":d.push(s);return}for(let b of s.childNodes)u(b);};for(let s of e)u(s);let c=je(a,i);if(c.forEach((s,b)=>d.splice(b,0,s)),super({columnCount:i.length,items:d,visitNode:s=>(s.column=i[s.index],s)}),this.columns=i,this.rowHeaderColumnKeys=r,this.body=n,this.headerRows=c,this._size=[...n.childNodes].length,this.rowHeaderColumnKeys.size===0){let s=this.columns.find(b=>!b.props?.isDragButtonCell&&!b.props?.isSelectionCell);s&&this.rowHeaderColumnKeys.add(s.key);}}*[Symbol.iterator](){yield*this.body.childNodes;}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){return this.keyMap.get(e)?.prevKey??null}getKeyAfter(e){return this.keyMap.get(e)?.nextKey??null}getFirstKey(){return c$6(this.body.childNodes)?.key??null}getLastKey(){return e$2(this.body.childNodes)?.key??null}getItem(e){return e===this.body.key?this.body:this.keyMap.get(e)??null}at(e){let l=[...this.getKeys()];return this.getItem(l[e])}getChildren(e){if(e===this.body.key)return this.body.childNodes;let l=this.getItem(e);return l?.type==="item"?[...l.childNodes].filter(o=>o.type==="cell"):super.getChildren(e)}getTextValue(e){let l=this.getItem(e);if(!l)return "";if(l.textValue)return l.textValue;let o=this.rowHeaderColumnKeys;if(o){let r=[];for(let n of l.childNodes){let i=this.columns[n.index];if(o.has(i.key)&&n.textValue&&r.push(n.textValue),r.length===o.size)break}return r.join(" ")}return ""}};var Kl={"ar-AE":{colorSwatchPicker:"\u062A\u063A\u064A\u064A\u0631\u0627\u062A \u0627\u0644\u0623\u0644\u0648\u0627\u0646",dropzoneLabel:"DropZone",selectPlaceholder:"\u062D\u062F\u062F \u0639\u0646\u0635\u0631\u064B\u0627",tableResizer:"\u0623\u062F\u0627\u0629 \u062A\u063A\u064A\u064A\u0631 \u0627\u0644\u062D\u062C\u0645"},"bg-BG":{colorSwatchPicker:"\u0426\u0432\u0435\u0442\u043E\u0432\u0438 \u043C\u043E\u0441\u0442\u0440\u0438",dropzoneLabel:"DropZone",selectPlaceholder:"\u0418\u0437\u0431\u0435\u0440\u0435\u0442\u0435 \u043F\u0440\u0435\u0434\u043C\u0435\u0442",tableResizer:"\u041F\u0440\u0435\u043E\u0440\u0430\u0437\u043C\u0435\u0440\u0438\u0442\u0435\u043B"},"cs-CZ":{colorSwatchPicker:"Vzorky barev",dropzoneLabel:"M\xEDsto pro p\u0159eta\u017Een\xED",selectPlaceholder:"Vyberte polo\u017Eku",tableResizer:"Zm\u011Bna velikosti"},"da-DK":{colorSwatchPicker:"Farvepr\xF8ver",dropzoneLabel:"DropZone",selectPlaceholder:"V\xE6lg et element",tableResizer:"St\xF8rrelses\xE6ndring"},"de-DE":{colorSwatchPicker:"Farbfelder",dropzoneLabel:"Ablegebereich",selectPlaceholder:"Element w\xE4hlen",tableResizer:"Gr\xF6\xDFenanpassung"},"el-GR":{colorSwatchPicker:"\u03A7\u03C1\u03C9\u03BC\u03B1\u03C4\u03B9\u03BA\u03AC \u03B4\u03B5\u03AF\u03B3\u03BC\u03B1\u03C4\u03B1",dropzoneLabel:"DropZone",selectPlaceholder:"\u0395\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \u03AD\u03BD\u03B1 \u03B1\u03BD\u03C4\u03B9\u03BA\u03B5\u03AF\u03BC\u03B5\u03BD\u03BF",tableResizer:"\u0391\u03BB\u03BB\u03B1\u03B3\u03AE \u03BC\u03B5\u03B3\u03AD\u03B8\u03BF\u03C5\u03C2"},"en-US":{selectPlaceholder:"Select an item",tableResizer:"Resizer",dropzoneLabel:"DropZone",colorSwatchPicker:"Color swatches"},"es-ES":{colorSwatchPicker:"Muestras de colores",dropzoneLabel:"DropZone",selectPlaceholder:"Seleccionar un art\xEDculo",tableResizer:"Cambiador de tama\xF1o"},"et-EE":{colorSwatchPicker:"V\xE4rvin\xE4idised",dropzoneLabel:"DropZone",selectPlaceholder:"Valige \xFCksus",tableResizer:"Suuruse muutja"},"fi-FI":{colorSwatchPicker:"V\xE4rimallit",dropzoneLabel:"DropZone",selectPlaceholder:"Valitse kohde",tableResizer:"Koon muuttaja"},"fr-FR":{colorSwatchPicker:"\xC9chantillons de couleurs",dropzoneLabel:"DropZone",selectPlaceholder:"S\xE9lectionner un \xE9l\xE9ment",tableResizer:"Redimensionneur"},"he-IL":{colorSwatchPicker:"\u05D3\u05D5\u05D2\u05DE\u05D9\u05D5\u05EA \u05E6\u05D1\u05E2",dropzoneLabel:"DropZone",selectPlaceholder:"\u05D1\u05D7\u05E8 \u05E4\u05E8\u05D9\u05D8",tableResizer:"\u05E9\u05D9\u05E0\u05D5\u05D9 \u05D2\u05D5\u05D3\u05DC"},"hr-HR":{colorSwatchPicker:"Uzorci boja",dropzoneLabel:"Zona spu\u0161tanja",selectPlaceholder:"Odaberite stavku",tableResizer:"Promjena veli\u010Dine"},"hu-HU":{colorSwatchPicker:"Sz\xEDnt\xE1rak",dropzoneLabel:"DropZone",selectPlaceholder:"V\xE1lasszon ki egy elemet",tableResizer:"\xC1tm\xE9retez\u0151"},"it-IT":{colorSwatchPicker:"Campioni di colore",dropzoneLabel:"Zona di rilascio",selectPlaceholder:"Seleziona un elemento",tableResizer:"Ridimensionamento"},"ja-JP":{colorSwatchPicker:"\u30AB\u30E9\u30FC\u30B9\u30A6\u30A9\u30C3\u30C1",dropzoneLabel:"\u30C9\u30ED\u30C3\u30D7\u30BE\u30FC\u30F3",selectPlaceholder:"\u9805\u76EE\u3092\u9078\u629E",tableResizer:"\u30B5\u30A4\u30BA\u5909\u66F4\u30C4\u30FC\u30EB"},"ko-KR":{colorSwatchPicker:"\uC0C9\uC0C1 \uACAC\uBCF8",dropzoneLabel:"\uB4DC\uB86D \uC601\uC5ED",selectPlaceholder:"\uD56D\uBAA9 \uC120\uD0DD",tableResizer:"\uD06C\uAE30 \uC870\uC815\uAE30"},"lt-LT":{colorSwatchPicker:"Spalv\u0173 pavyzd\u017Eiai",dropzoneLabel:"\u201EDropZone\u201C",selectPlaceholder:"Pasirinkite element\u0105",tableResizer:"Dyd\u017Eio keitiklis"},"lv-LV":{colorSwatchPicker:"Kr\u0101su paraugi",dropzoneLabel:"DropZone",selectPlaceholder:"Izv\u0113l\u0113ties vienumu",tableResizer:"Izm\u0113ra main\u012Bt\u0101js"},"nb-NO":{colorSwatchPicker:"Fargekart",dropzoneLabel:"Droppsone",selectPlaceholder:"Velg et element",tableResizer:"St\xF8rrelsesendrer"},"nl-NL":{colorSwatchPicker:"kleurstalen",dropzoneLabel:"DropZone",selectPlaceholder:"Selecteer een item",tableResizer:"Resizer"},"pl-PL":{colorSwatchPicker:"Pr\xF3bki kolor\xF3w",dropzoneLabel:"Strefa upuszczania",selectPlaceholder:"Wybierz element",tableResizer:"Zmiana rozmiaru"},"pt-BR":{colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"},"pt-PT":{colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"},"ro-RO":{colorSwatchPicker:"Specimene de culoare",dropzoneLabel:"Zon\u0103 de plasare",selectPlaceholder:"Selecta\u021Bi un element",tableResizer:"Instrument de redimensionare"},"ru-RU":{colorSwatchPicker:"\u0426\u0432\u0435\u0442\u043E\u0432\u044B\u0435 \u043E\u0431\u0440\u0430\u0437\u0446\u044B",dropzoneLabel:"DropZone",selectPlaceholder:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u044D\u043B\u0435\u043C\u0435\u043D\u0442",tableResizer:"\u0421\u0440\u0435\u0434\u0441\u0442\u0432\u043E \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u0440\u0430\u0437\u043C\u0435\u0440\u0430"},"sk-SK":{colorSwatchPicker:"Vzorkovn\xEDky farieb",dropzoneLabel:"DropZone",selectPlaceholder:"Vyberte polo\u017Eku",tableResizer:"N\xE1stroj na zmenu ve\u013Ekosti"},"sl-SI":{colorSwatchPicker:"Barvne palete",dropzoneLabel:"DropZone",selectPlaceholder:"Izberite element",tableResizer:"Spreminjanje velikosti"},"sr-SP":{colorSwatchPicker:"Uzorci boje",dropzoneLabel:"DropZone",selectPlaceholder:"Izaberite stavku",tableResizer:"Promena veli\u010Dine"},"sv-SE":{colorSwatchPicker:"F\xE4rgrutor",dropzoneLabel:"DropZone",selectPlaceholder:"V\xE4lj en artikel",tableResizer:"Storleks\xE4ndrare"},"tr-TR":{colorSwatchPicker:"Renk \xF6rnekleri",dropzoneLabel:"B\u0131rakma B\xF6lgesi",selectPlaceholder:"Bir \xF6\u011Fe se\xE7in",tableResizer:"Yeniden boyutland\u0131r\u0131c\u0131"},"uk-UA":{colorSwatchPicker:"\u0417\u0440\u0430\u0437\u043A\u0438 \u043A\u043E\u043B\u044C\u043E\u0440\u0456\u0432",dropzoneLabel:"DropZone",selectPlaceholder:"\u0412\u0438\u0431\u0435\u0440\u0456\u0442\u044C \u0435\u043B\u0435\u043C\u0435\u043D\u0442",tableResizer:"\u0417\u0430\u0441\u0456\u0431 \u0437\u043C\u0456\u043D\u0435\u043D\u043D\u044F \u0440\u043E\u0437\u043C\u0456\u0440\u0443"},"zh-CN":{colorSwatchPicker:"\u989C\u8272\u8272\u677F",dropzoneLabel:"\u653E\u7F6E\u533A\u57DF",selectPlaceholder:"\u9009\u62E9\u4E00\u4E2A\u9879\u76EE",tableResizer:"\u5C3A\u5BF8\u8C03\u6574\u5668"},"zh-TW":{colorSwatchPicker:"\u8272\u7968",dropzoneLabel:"\u653E\u7F6E\u5340",selectPlaceholder:"\u9078\u53D6\u9805\u76EE",tableResizer:"\u5927\u5C0F\u8ABF\u6574\u5668"}};function jl(t){return t!=null&&(!isNaN(t)||String(t).match(/^(\d+)(?=%$)/)!==null)}function Ul(t){if(!t||typeof t=="number")return 1;let e=t.match(/^(.+)(?=fr$)/);return e?parseFloat(e[0]):(process.env.NODE_ENV!=="production"&&console.warn(`width: ${t} is not a supported format, width should be a number (ex. 150), percentage (ex. '50%') or fr unit (ex. '2fr')`,"defaulting to '1fr'"),1)}function mt(t,e){if(typeof t=="string"){let l=t.match(/^(\d+)(?=%$)/);if(!l)throw new Error("Only percentages or numbers are supported for static column widths");return e*(parseFloat(l[0])/100)}return t}function pt(t,e){return t!=null?mt(t,e):Number.MAX_SAFE_INTEGER}function bt(t,e){return t!=null?mt(t,e):0}function Dl(t,e,l,o,r){let n=t,i=Math.floor(t),d=t-i>0;t=i;let a=false,u=e.map((s,b)=>{let f=l.get(s.key)!=null?l.get(s.key)??"1fr":s.width??s.defaultWidth??o?.(b)??"1fr",p=false,m=0,T=0,g=0;jl(f)?(m=mt(f,t),p=true):(T=Ul(f),T<=0&&(p=true));let w=bt(s.minWidth??r?.(b)??0,t),S=pt(s.maxWidth,t),C=Math.max(w,Math.min(m,S));return p?g=C:m>C&&(p=true,g=C),p||(a=true),{frozen:p,baseSize:m,hypotheticalMainSize:C,min:w,max:S,flex:T,targetMainSize:g,violation:0}});for(;a;){let s=0,b=0;u.forEach(m=>{m.frozen?s+=m.targetMainSize:(s+=m.baseSize,b+=m.flex);});let f=t-s;f>0&&u.forEach(m=>{if(!m.frozen){let T=m.flex/b;m.targetMainSize=m.baseSize+T*f;}});let p=0;u.forEach(m=>{if(m.violation=0,!m.frozen){let{min:T,max:g,targetMainSize:w}=m;m.targetMainSize=Math.max(T,Math.min(w,g)),m.violation=m.targetMainSize-w,p+=m.violation;}}),a=false,u.forEach(m=>{p===0||Math.sign(p)===Math.sign(m.violation)?m.frozen=true:m.frozen||(a=true);});}let c=Zl(u);if(d&&c.length>0){let s=n.toString().split(".")[1],b=c[c.length-1].toString();c[c.length-1]=+(b+"."+s);}return c}function Zl(t){let e=0,l=0,o=[];return t.forEach(function(r){let n=r.targetMainSize,i=Math.round(n+e)-l;e+=n,l+=i,o.push(i);}),o}var Ue=class{getDefaultWidth;getDefaultMinWidth;columnWidths=new Map;columnMinWidths=new Map;columnMaxWidths=new Map;constructor(e){this.getDefaultWidth=e?.getDefaultWidth??(()=>"1fr"),this.getDefaultMinWidth=e?.getDefaultMinWidth??(()=>75);}splitColumnsIntoControlledAndUncontrolled(e){return e.reduce((l,o)=>(o.props.width!=null?l[0].set(o.key,o):l[1].set(o.key,o),l),[new Map,new Map])}recombineColumns(e,l,o,r){return new Map(e.map(n=>o.has(n.key)?[n.key,l.get(n.key)]:[n.key,r.get(n.key).props.width]))}getInitialUncontrolledWidths(e){return new Map(Array.from(e).map(([l,o])=>[l,o.props.defaultWidth??this.getDefaultWidth?.(o)??"1fr"]))}getColumnWidth(e){return this.columnWidths.get(e)??0}getColumnMinWidth(e){return this.columnMinWidths.get(e)??0}getColumnMaxWidth(e){return this.columnMaxWidths.get(e)??0}resizeColumnWidth(e,l,o,r){let n=this.columnWidths,i=true,d=new Map;return r=Math.max(this.getColumnMinWidth(o),Math.min(this.getColumnMaxWidth(o),Math.floor(r))),e.columns.forEach(a=>{a.key===o?(d.set(a.key,r),i=false):i?d.set(a.key,n.get(a.key)??0):d.set(a.key,a.props.width??l.get(a.key));}),d}buildColumnWidths(e,l,o){return this.columnWidths=new Map,this.columnMinWidths=new Map,this.columnMaxWidths=new Map,Dl(e,l.columns.map(n=>({...n.props,key:n.key})),o,n=>this.getDefaultWidth(l.columns[n]),n=>this.getDefaultMinWidth(l.columns[n])).forEach((n,i)=>{let d=l.columns[i].key,a=l.columns[i];this.columnWidths.set(d,n),this.columnMinWidths.set(d,bt(a.props.minWidth??this.getDefaultMinWidth(a),e)),this.columnMaxWidths.set(d,pt(a.props.maxWidth,e));}),this.columnWidths}};function ht(t,e){let{getDefaultWidth:l,getDefaultMinWidth:o,tableWidth:r=0}=t,[n,i]=useState(null),d=useMemo(()=>new Ue({getDefaultWidth:l,getDefaultMinWidth:o}),[l,o]),[a,u]=useMemo(()=>d.splitColumnsIntoControlledAndUncontrolled(e.collection.columns),[e.collection.columns,d]),[c,s]=useState(()=>d.getInitialUncontrolledWidths(u)),[b,f]=useState(e.collection.columns);if(e.collection.columns!==b){if(e.collection.columns.length!==b.length||e.collection.columns.some((S,C)=>S.key!==b[C].key)){let S=d.getInitialUncontrolledWidths(u);s(S);}f(e.collection.columns);}let p=useMemo(()=>d.recombineColumns(e.collection.columns,c,u,a),[e.collection.columns,c,u,a,d]),m=useCallback(S=>{i(S);},[i]),T=useCallback((S,C)=>{let D=d.resizeColumnWidth(e.collection,c,S,C),P=new Map(Array.from(u).map(([h])=>[h,D.get(h)]));return P.set(S,C),s(P),D},[u,s,d,e.collection,c]),g=useCallback(()=>{i(null);},[i]),w=useMemo(()=>d.buildColumnWidths(r,e.collection,p),[r,e.collection,p,d]);return useMemo(()=>({resizingColumn:n,updateResizedColumns:T,startResize:m,endResize:g,getColumnWidth:S=>d.getColumnWidth(S),getColumnMinWidth:S=>d.getColumnMinWidth(S),getColumnMaxWidth:S=>d.getColumnMaxWidth(S),tableState:e,columnWidths:w}),[d,w,n,T,m,g,e])}function Ml(t){let{collection:e,focusMode:l}=t,o=t.UNSAFE_selectionState||a$4(t),r=useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),n=o.setFocusedKey;o.setFocusedKey=(a,u)=>{if(l==="cell"&&a!=null){let c=e.getItem(a);if(c?.type==="item"){let s=b$9(c,e);u==="last"?a=e$2(s)?.key??null:a=c$6(s)?.key??null;}}n(a,u);};let i=useMemo(()=>new f$1(e,o),[e,o]),d=useRef(null);return useEffect(()=>{if(o.focusedKey!=null&&d.current&&!e.getItem(o.focusedKey)){let a=d.current.getItem(o.focusedKey),u=a?.parentKey!=null&&(a.type==="cell"||a.type==="rowheader"||a.type==="column")?d.current.getItem(a.parentKey):a;if(!u){o.setFocusedKey(null);return}let c=d.current.rows,s=e.rows,b=c.length-s.length,f=Math.min(b>1?Math.max(u.index-b+1,0):u.index,s.length-1),p=null;for(let m=Math.max(0,f);m<s.length;m++)if(!i.isDisabled(s[m].key)&&s[m].type!=="headerrow"){p=s[m];break}if(p===null){for(let m=f-1;m>=0;m--)if(!i.isDisabled(s[m].key)&&s[m].type!=="headerrow"){p=s[m];break}}if(p){let m=p.hasChildNodes?[...b$9(p,e)]:[],T=p.hasChildNodes&&u!==a&&a&&a.index<m.length?m[a.index].key:p.key;o.setFocusedKey(T);}else o.setFocusedKey(null);}d.current=e;},[e,i,o,o.focusedKey]),{collection:e,disabledKeys:r,isKeyboardNavigationDisabled:false,selectionManager:i}}var Jl={ascending:"descending",descending:"ascending"};function gt(t){let[e,l]=useState(false),{selectionMode:o="none",showSelectionCheckboxes:r,showDragButtons:n,treeColumn:i=null}=t,d=useMemo(()=>({showSelectionCheckboxes:r&&o!=="none",showDragButtons:n,selectionMode:o,columns:[]}),[t.children,r,o,n]),a=g$1(t,useCallback(f=>new Re(f,null,d),[d]),d),{disabledKeys:u,selectionManager:c}=Ml({...t,collection:a,disabledBehavior:t.disabledBehavior||"selection"}),[s,b]=a$5(t.expandedKeys?new Set(t.expandedKeys):void 0,t.defaultExpandedKeys?new Set(t.defaultExpandedKeys):new Set,t.onExpandedChange);return {collection:a,disabledKeys:u,selectionManager:c,showSelectionCheckboxes:t.showSelectionCheckboxes||false,sortDescriptor:t.sortDescriptor??null,isKeyboardNavigationDisabled:a.size===0||e,setKeyboardNavigationDisabled:l,sort(f,p){t.onSortChange?.({column:f,direction:p??(t.sortDescriptor?.column===f?Jl[t.sortDescriptor.direction]:"ascending")});},expandedKeys:s,toggleKey(f){b(p=>{let m=new Set(p);return m.has(f)?m.delete(f):m.add(f),m});},treeColumn:i}}function Tt(t,e){let l=useMemo(()=>e?t.collection.filter(e):t.collection,[t.collection,e]),o=t.selectionManager.withCollection(l);return {...t,collection:l,selectionManager:o}}var he=class{collection;disabledKeys;disabledBehavior;direction;collator;layoutDelegate;focusMode;constructor(e){if(this.collection=e.collection,this.disabledKeys=e.disabledKeys,this.disabledBehavior=e.disabledBehavior||"all",this.direction=e.direction,this.collator=e.collator,!e.layout&&!e.ref)throw new Error("Either a layout or a ref must be specified.");this.layoutDelegate=e.layoutDelegate||(e.layout?new St(e.layout):new a$n(e.ref)),this.focusMode=e.focusMode??"row";}isCell(e){return e.type==="cell"}isRow(e){return e.type==="row"||e.type==="item"}isDisabled(e){return this.disabledBehavior==="all"&&(e.props?.isDisabled||this.disabledKeys.has(e.key))&&e.props?.disabledBehavior!=="selection"}findPreviousKey(e,l,o=false){let r=e!=null?this.collection.getKeyBefore(e):this.collection.getLastKey();for(;r!=null;){let n=this.collection.getItem(r);if(!n)return null;if((o||!this.isDisabled(n))&&(!l||l(n)))return r;r=this.collection.getKeyBefore(r);}return null}findNextKey(e,l,o=false){let r=e!=null?this.collection.getKeyAfter(e):this.collection.getFirstKey();for(;r!=null;){let n=this.collection.getItem(r);if(!n)return null;if((o||!this.isDisabled(n))&&(!l||l(n)))return r;if(r=this.collection.getKeyAfter(r),r==null)return null}return null}getKeyForItemInRowByIndex(e,l=0){if(l<0)return null;let o=this.collection.getItem(e);if(!o)return null;let r=0;for(let n of b$9(o,this.collection)){if(n.colSpan&&n.colSpan+r>l||(n.colSpan&&(r=r+n.colSpan-1),r===l))return n.key??null;r++;}return null}getKeyBelow(e,l){let o=e,r=this.collection.getItem(o);if(!r||(this.isCell(r)&&(o=r.parentKey??null),o==null))return null;if(o=this.findNextKey(o,n=>n.type==="item",l?.includeDisabled),o!=null){if(this.isCell(r)){let n=r.colIndex?r.colIndex:r.index;return this.getKeyForItemInRowByIndex(o,n)}if(this.focusMode==="row")return o}return null}getKeyAbove(e,l){let o=e,r=this.collection.getItem(o);if(!r||(this.isCell(r)&&(o=r.parentKey??null),o==null))return null;if(o=this.findPreviousKey(o,n=>n.type==="item",l?.includeDisabled),o!=null){if(this.isCell(r)){let n=r.colIndex?r.colIndex:r.index;return this.getKeyForItemInRowByIndex(o,n)}if(this.focusMode==="row")return o}return null}getKeyRightOf(e){let l=this.collection.getItem(e);if(!l)return null;if(this.isRow(l)){let o=b$9(l,this.collection);return (this.direction==="rtl"?e$2(o)?.key:c$6(o)?.key)??null}if(this.isCell(l)&&l.parentKey!=null){let o=this.collection.getItem(l.parentKey);if(!o)return null;let r=b$9(o,this.collection),n=(this.direction==="rtl"?d$4(r,l.index-1):d$4(r,l.index+1))??null;return n?n.key??null:this.focusMode==="row"?l.parentKey??null:(this.direction==="rtl"?this.getFirstKey(e):this.getLastKey(e))??null}return null}getKeyLeftOf(e){let l=this.collection.getItem(e);if(!l)return null;if(this.isRow(l)){let o=b$9(l,this.collection);return (this.direction==="rtl"?c$6(o)?.key:e$2(o)?.key)??null}if(this.isCell(l)&&l.parentKey!=null){let o=this.collection.getItem(l.parentKey);if(!o)return null;let r=b$9(o,this.collection),n=(this.direction==="rtl"?d$4(r,l.index+1):d$4(r,l.index-1))??null;return n?n.key??null:this.focusMode==="row"?l.parentKey??null:(this.direction==="rtl"?this.getLastKey(e):this.getFirstKey(e))??null}return null}getFirstKey(e,l){let o=e??null,r;if(o!=null){if(r=this.collection.getItem(o),!r)return null;if(this.isCell(r)&&!l&&r.parentKey!=null){let n=this.collection.getItem(r.parentKey);return n?c$6(b$9(n,this.collection))?.key??null:null}}if(o=this.findNextKey(void 0,n=>n.type==="item"),o!=null&&(r&&this.isCell(r)&&l||this.focusMode==="cell")){let n=this.collection.getItem(o);if(!n)return null;o=c$6(b$9(n,this.collection))?.key??null;}return o}getLastKey(e,l){let o=e??null,r;if(o!=null){if(r=this.collection.getItem(o),!r)return null;if(this.isCell(r)&&!l&&r.parentKey!=null){let n=this.collection.getItem(r.parentKey);if(!n)return null;let i=b$9(n,this.collection);return e$2(i)?.key??null}}if(o=this.findPreviousKey(void 0,n=>n.type==="item"),o!=null&&(r&&this.isCell(r)&&l||this.focusMode==="cell")){let n=this.collection.getItem(o);if(!n)return null;let i=b$9(n,this.collection);o=e$2(i)?.key??null;}return o}getKeyPageAbove(e){let l=e,o=this.layoutDelegate.getItemRect(l);if(!o)return null;let r=Math.max(0,o.y+o.height-this.layoutDelegate.getVisibleRect().height);for(;o&&o.y>r&&l!=null&&(l=this.getKeyAbove(l)??null,l!=null);)o=this.layoutDelegate.getItemRect(l);return l}getKeyPageBelow(e){let l=e,o=this.layoutDelegate.getItemRect(l);if(!o)return null;let r=this.layoutDelegate.getVisibleRect().height,n=Math.min(this.layoutDelegate.getContentSize().height,o.y+r);for(;o&&o.y+o.height<n;){let i=this.getKeyBelow(l);if(i==null)break;o=this.layoutDelegate.getItemRect(i),l=i;}return l}getKeyForSearch(e,l){let o=l??null;if(!this.collator)return null;let r=this.collection;if(o=l??this.getFirstKey(),o==null)return null;let n=r.getItem(o);if(!n)return null;n.type==="cell"&&(o=n.parentKey??null);let i=false;for(;o!=null;){let d=r.getItem(o);if(!d)return null;if(d.textValue){let a=d.textValue.slice(0,e.length);if(this.collator.compare(a,e)===0)return this.isRow(d)&&this.focusMode==="cell"?c$6(b$9(d,this.collection))?.key??null:d.key}o=this.findNextKey(o,a=>a.type==="item"),o==null&&!i&&(o=this.getFirstKey(),i=true);}return null}},St=class{layout;constructor(e){this.layout=e;}getContentSize(){return this.layout.getContentSize()}getItemRect(e){return this.layout.getLayoutInfo(e)?.rect||null}getVisibleRect(){return this.layout.virtualizer.visibleRect}};var ge=new WeakMap;function Il(t,e,l){let{isVirtualized:o,disallowTypeAhead:r,keyboardDelegate:n,focusMode:i,scrollRef:d,getRowText:a,onRowAction:u,onCellAction:c,escapeKeyBehavior:s="clearSelection",shouldSelectOnPressUp:b,keyboardNavigationBehavior:f="arrow"}=t,{selectionManager:p}=e;!t["aria-label"]&&!t["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let m=a$f({usage:"search",sensitivity:"base"}),{direction:T}=b$2(),g=e.selectionManager.disabledBehavior,w=useMemo(()=>n||new he({collection:e.collection,disabledKeys:e.disabledKeys,disabledBehavior:g,ref:l,direction:T,collator:m,focusMode:i}),[n,e.collection,e.disabledKeys,g,l,T,m,i]),{collectionProps:S}=c$7({ref:l,selectionManager:p,keyboardDelegate:w,isVirtualized:o,scrollRef:d,disallowTypeAhead:r,escapeKeyBehavior:s}),C=c$3(t.id);ge.set(e,{keyboardDelegate:w,actions:{onRowAction:u,onCellAction:c},shouldSelectOnPressUp:b,keyboardNavigationBehavior:f});let D=c$8({selectionManager:p,hasItemActions:!!(u||c),ref:l}),P=a$3(t,{labelable:true}),h=useCallback(N=>{if(p.isFocused){h$2(N.currentTarget,j$2(N))||p.setFocused(false);return}h$2(N.currentTarget,j$2(N))&&p.setFocused(true);},[p]),R=useMemo(()=>({onBlur:S.onBlur,onFocus:h}),[h,S.onBlur]),x=a$l(l,{isDisabled:e.collection.size!==0}),v=c$2(P,{role:"grid",id:C,"aria-multiselectable":p.selectionMode==="multiple"?"true":void 0},e.isKeyboardNavigationDisabled?R:S,e.collection.size===0&&{tabIndex:x?-1:0}||void 0,D);return o&&(v["aria-rowcount"]=e.collection.size,v["aria-colcount"]=e.collection.columnCount),b$a({getRowText:a},e),{gridProps:v}}var Ze=new WeakMap;function Ct(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}function _e(t,e){let l=Ze.get(t);if(!l)throw new Error("Unknown grid");return `${l}-${Ct(e)}`}function wt(t,e,l){let o=Ze.get(t);if(!o)throw new Error("Unknown grid");return `${o}-${Ct(e)}-${Ct(l)}`}function De(t,e){return [...t.collection.rowHeaderColumnKeys].map(l=>wt(t,e,l)).join(" ")}var J={"ar-AE":{ascending:"\u062A\u0635\u0627\u0639\u062F\u064A",ascendingSort:t=>`\u062A\u0631\u062A\u064A\u0628 \u062D\u0633\u0628 \u0627\u0644\u0639\u0645\u0648\u062F ${t.columnName} \u0628\u062A\u0631\u062A\u064A\u0628 \u062A\u0635\u0627\u0639\u062F\u064A`,collapse:"\u0637\u064A",columnSize:t=>`${t.value} \u0628\u0627\u0644\u0628\u0643\u0633\u0644`,descending:"\u062A\u0646\u0627\u0632\u0644\u064A",descendingSort:t=>`\u062A\u0631\u062A\u064A\u0628 \u062D\u0633\u0628 \u0627\u0644\u0639\u0645\u0648\u062F ${t.columnName} \u0628\u062A\u0631\u062A\u064A\u0628 \u062A\u0646\u0627\u0632\u0644\u064A`,expand:"\u062A\u0645\u062F\u064A\u062F",resizerDescription:"\u0627\u0636\u063A\u0637 \u0639\u0644\u0649 \u0645\u0641\u062A\u0627\u062D Enter \u0644\u0628\u062F\u0621 \u062A\u063A\u064A\u064A\u0631 \u0627\u0644\u062D\u062C\u0645",select:"\u062A\u062D\u062F\u064A\u062F",selectAll:"\u062A\u062D\u062F\u064A\u062F \u0627\u0644\u0643\u0644",sortable:"\u0639\u0645\u0648\u062F \u0642\u0627\u0628\u0644 \u0644\u0644\u062A\u0631\u062A\u064A\u0628"},"bg-BG":{ascending:"\u0432\u044A\u0437\u0445\u043E\u0434\u044F\u0449",ascendingSort:t=>`\u0441\u043E\u0440\u0442\u0438\u0440\u0430\u043D\u043E \u043F\u043E \u043A\u043E\u043B\u043E\u043D\u0430 ${t.columnName} \u0432\u044A\u0432 \u0432\u044A\u0437\u0445\u043E\u0434\u044F\u0449 \u0440\u0435\u0434`,collapse:"\u0421\u0432\u0438\u0432\u0430\u043D\u0435",columnSize:t=>`${t.value} \u043F\u0438\u043A\u0441\u0435\u043B\u0430`,descending:"\u043D\u0438\u0437\u0445\u043E\u0434\u044F\u0449",descendingSort:t=>`\u0441\u043E\u0440\u0442\u0438\u0440\u0430\u043D\u043E \u043F\u043E \u043A\u043E\u043B\u043E\u043D\u0430 ${t.columnName} \u0432 \u043D\u0438\u0437\u0445\u043E\u0434\u044F\u0449 \u0440\u0435\u0434`,expand:"\u0420\u0430\u0437\u0448\u0438\u0440\u044F\u0432\u0430\u043D\u0435",resizerDescription:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u201EEnter\u201C, \u0437\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0435\u0442\u0435 \u0434\u0430 \u043F\u0440\u0435\u043E\u0440\u0430\u0437\u043C\u0435\u0440\u044F\u0432\u0430\u0442\u0435",select:"\u0418\u0437\u0431\u0435\u0440\u0435\u0442\u0435",selectAll:"\u0418\u0437\u0431\u0435\u0440\u0435\u0442\u0435 \u0432\u0441\u0438\u0447\u043A\u043E",sortable:"\u0441\u043E\u0440\u0442\u0438\u0440\u0430\u0449\u0430 \u043A\u043E\u043B\u043E\u043D\u0430"},"cs-CZ":{ascending:"vzestupn\u011B",ascendingSort:t=>`\u0159azeno vzestupn\u011B podle sloupce ${t.columnName}`,collapse:"Sbalit",columnSize:t=>`${t.value} pixel\u016F`,descending:"sestupn\u011B",descendingSort:t=>`\u0159azeno sestupn\u011B podle sloupce ${t.columnName}`,expand:"Rozt\xE1hnout",resizerDescription:"Stisknut\xEDm kl\xE1vesy Enter za\u010Dnete m\u011Bnit velikost",select:"Vybrat",selectAll:"Vybrat v\u0161e",sortable:"sloupec s mo\u017Enost\xED \u0159azen\xED"},"da-DK":{ascending:"stigende",ascendingSort:t=>`sorteret efter kolonne ${t.columnName} i stigende r\xE6kkef\xF8lge`,collapse:"Skjul",columnSize:t=>`${t.value} pixels`,descending:"faldende",descendingSort:t=>`sorteret efter kolonne ${t.columnName} i faldende r\xE6kkef\xF8lge`,expand:"Udvid",resizerDescription:"Tryk p\xE5 Enter for at \xE6ndre st\xF8rrelse",select:"V\xE6lg",selectAll:"V\xE6lg alle",sortable:"sorterbar kolonne"},"de-DE":{ascending:"aufsteigend",ascendingSort:t=>`sortiert nach Spalte ${t.columnName} in aufsteigender Reihenfolge`,collapse:"Reduzieren",columnSize:t=>`${t.value} Pixel`,descending:"absteigend",descendingSort:t=>`sortiert nach Spalte ${t.columnName} in absteigender Reihenfolge`,expand:"Erweitern",resizerDescription:"Eingabetaste zum Starten der Gr\xF6\xDFen\xE4nderung dr\xFCcken",select:"Ausw\xE4hlen",selectAll:"Alles ausw\xE4hlen",sortable:"sortierbare Spalte"},"el-GR":{ascending:"\u03B1\u03CD\u03BE\u03BF\u03C5\u03C3\u03B1",ascendingSort:t=>`\u03B4\u03B9\u03B1\u03BB\u03BF\u03B3\u03AE \u03B1\u03BD\u03AC \u03C3\u03C4\u03AE\u03BB\u03B7 ${t.columnName} \u03C3\u03B5 \u03B1\u03CD\u03BE\u03BF\u03C5\u03C3\u03B1 \u03C3\u03B5\u03B9\u03C1\u03AC`,collapse:"\u03A3\u03CD\u03BC\u03C0\u03C4\u03C5\u03BE\u03B7",columnSize:t=>`${t.value} pixel`,descending:"\u03C6\u03B8\u03AF\u03BD\u03BF\u03C5\u03C3\u03B1",descendingSort:t=>`\u03B4\u03B9\u03B1\u03BB\u03BF\u03B3\u03AE \u03B1\u03BD\u03AC \u03C3\u03C4\u03AE\u03BB\u03B7 ${t.columnName} \u03C3\u03B5 \u03C6\u03B8\u03AF\u03BD\u03BF\u03C5\u03C3\u03B1 \u03C3\u03B5\u03B9\u03C1\u03AC`,expand:"\u0391\u03BD\u03AC\u03C0\u03C4\u03C5\u03BE\u03B7",resizerDescription:"\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Enter \u03B3\u03B9\u03B1 \u03AD\u03BD\u03B1\u03C1\u03BE\u03B7 \u03C4\u03B7\u03C2 \u03B1\u03BB\u03BB\u03B1\u03B3\u03AE\u03C2 \u03BC\u03B5\u03B3\u03AD\u03B8\u03BF\u03C5\u03C2",select:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE",selectAll:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03CC\u03BB\u03C9\u03BD",sortable:"\u03A3\u03C4\u03AE\u03BB\u03B7 \u03B4\u03B9\u03B1\u03BB\u03BF\u03B3\u03AE\u03C2"},"en-US":{select:"Select",selectAll:"Select All",sortable:"sortable column",ascending:"ascending",descending:"descending",ascendingSort:t=>`sorted by column ${t.columnName} in ascending order`,descendingSort:t=>`sorted by column ${t.columnName} in descending order`,columnSize:t=>`${t.value} pixels`,resizerDescription:"Press Enter to start resizing",expand:"Expand",collapse:"Collapse"},"es-ES":{ascending:"ascendente",ascendingSort:t=>`ordenado por columna ${t.columnName} en sentido ascendente`,collapse:"Contraer",columnSize:t=>`${t.value} p\xEDxeles`,descending:"descendente",descendingSort:t=>`ordenado por columna ${t.columnName} en orden descendente`,expand:"Ampliar",resizerDescription:"Pulse Intro para empezar a redimensionar",select:"Seleccionar",selectAll:"Seleccionar todos",sortable:"columna ordenable"},"et-EE":{ascending:"t\xF5usev j\xE4rjestus",ascendingSort:t=>`sorditud veeru j\xE4rgi ${t.columnName} t\xF5usvas j\xE4rjestuses`,collapse:"Ahenda",columnSize:t=>`${t.value} pikslit`,descending:"laskuv j\xE4rjestus",descendingSort:t=>`sorditud veeru j\xE4rgi ${t.columnName} laskuvas j\xE4rjestuses`,expand:"Laienda",resizerDescription:"Suuruse muutmise alustamiseks vajutage klahvi Enter",select:"Vali",selectAll:"Vali k\xF5ik",sortable:"sorditav veerg"},"fi-FI":{ascending:"nouseva",ascendingSort:t=>`lajiteltu sarakkeen ${t.columnName} mukaan nousevassa j\xE4rjestyksess\xE4`,collapse:"Pienenn\xE4",columnSize:t=>`${t.value} pikseli\xE4`,descending:"laskeva",descendingSort:t=>`lajiteltu sarakkeen ${t.columnName} mukaan laskevassa j\xE4rjestyksess\xE4`,expand:"Laajenna",resizerDescription:"Aloita koon muutos painamalla Enter-n\xE4pp\xE4int\xE4",select:"Valitse",selectAll:"Valitse kaikki",sortable:"lajiteltava sarake"},"fr-FR":{ascending:"croissant",ascendingSort:t=>`tri\xE9 en fonction de la colonne\xA0${t.columnName} par ordre croissant`,collapse:"R\xE9duire",columnSize:t=>`${t.value}\xA0pixels`,descending:"d\xE9croissant",descendingSort:t=>`tri\xE9 en fonction de la colonne\xA0${t.columnName} par ordre d\xE9croissant`,expand:"D\xE9velopper",resizerDescription:"Appuyez sur Entr\xE9e pour commencer le redimensionnement.",select:"S\xE9lectionner",selectAll:"S\xE9lectionner tout",sortable:"colonne triable"},"he-IL":{ascending:"\u05E2\u05D5\u05DC\u05D4",ascendingSort:t=>`\u05DE\u05D5\u05D9\u05DF \u05DC\u05E4\u05D9 \u05E2\u05DE\u05D5\u05D3\u05D4 ${t.columnName} \u05D1\u05E1\u05D3\u05E8 \u05E2\u05D5\u05DC\u05D4`,collapse:"\u05DB\u05D5\u05D5\u05E5",columnSize:t=>`${t.value} \u05E4\u05D9\u05E7\u05E1\u05DC\u05D9\u05DD`,descending:"\u05D9\u05D5\u05E8\u05D3",descendingSort:t=>`\u05DE\u05D5\u05D9\u05DF \u05DC\u05E4\u05D9 \u05E2\u05DE\u05D5\u05D3\u05D4 ${t.columnName} \u05D1\u05E1\u05D3\u05E8 \u05D9\u05D5\u05E8\u05D3`,expand:"\u05D4\u05E8\u05D7\u05D1",resizerDescription:"\u05D4\u05E7\u05E9 Enter \u05DB\u05D3\u05D9 \u05DC\u05E9\u05E0\u05D5\u05EA \u05D0\u05EA \u05D4\u05D2\u05D5\u05D3\u05DC",select:"\u05D1\u05D7\u05E8",selectAll:"\u05D1\u05D7\u05E8 \u05D4\u05DB\u05D5\u05DC",sortable:"\u05E2\u05DE\u05D5\u05D3\u05D4 \u05E9\u05E0\u05D9\u05EA\u05DF \u05DC\u05DE\u05D9\u05D9\u05DF"},"hr-HR":{ascending:"rastu\u0107i",ascendingSort:t=>`razvrstano po stupcima ${t.columnName} rastu\u0107em redoslijedom`,collapse:"Sa\u017Emi",columnSize:t=>`${t.value} piksela`,descending:"padaju\u0107i",descendingSort:t=>`razvrstano po stupcima ${t.columnName} padaju\u0107im redoslijedom`,expand:"Pro\u0161iri",resizerDescription:"Pritisnite Enter da biste zapo\u010Deli promenu veli\u010Dine",select:"Odaberite",selectAll:"Odaberite sve",sortable:"stupac koji se mo\u017Ee razvrstati"},"hu-HU":{ascending:"n\xF6vekv\u0151",ascendingSort:t=>`rendezve a(z) ${t.columnName} oszlop szerint, n\xF6vekv\u0151 sorrendben`,collapse:"\xD6sszecsuk\xE1s",columnSize:t=>`${t.value} k\xE9ppont`,descending:"cs\xF6kken\u0151",descendingSort:t=>`rendezve a(z) ${t.columnName} oszlop szerint, cs\xF6kken\u0151 sorrendben`,expand:"Kibont\xE1s",resizerDescription:"Nyomja le az Enter billenty\u0171t az \xE1tm\xE9retez\xE9s megkezd\xE9s\xE9hez",select:"Kijel\xF6l\xE9s",selectAll:"\xD6sszes kijel\xF6l\xE9se",sortable:"rendezend\u0151 oszlop"},"it-IT":{ascending:"crescente",ascendingSort:t=>`in ordine crescente in base alla colonna ${t.columnName}`,collapse:"Comprimi",columnSize:t=>`${t.value} pixel`,descending:"decrescente",descendingSort:t=>`in ordine decrescente in base alla colonna ${t.columnName}`,expand:"Espandi",resizerDescription:"Premi Invio per iniziare a ridimensionare",select:"Seleziona",selectAll:"Seleziona tutto",sortable:"colonna ordinabile"},"ja-JP":{ascending:"\u6607\u9806",ascendingSort:t=>`\u5217 ${t.columnName} \u3092\u6607\u9806\u3067\u4E26\u3079\u66FF\u3048`,collapse:"\u6298\u308A\u305F\u305F\u3080",columnSize:t=>`${t.value} \u30D4\u30AF\u30BB\u30EB`,descending:"\u964D\u9806",descendingSort:t=>`\u5217 ${t.columnName} \u3092\u964D\u9806\u3067\u4E26\u3079\u66FF\u3048`,expand:"\u5C55\u958B",resizerDescription:"Enter \u30AD\u30FC\u3092\u62BC\u3057\u3066\u30B5\u30A4\u30BA\u5909\u66F4\u3092\u958B\u59CB",select:"\u9078\u629E",selectAll:"\u3059\u3079\u3066\u9078\u629E",sortable:"\u4E26\u3079\u66FF\u3048\u53EF\u80FD\u306A\u5217"},"ko-KR":{ascending:"\uC624\uB984\uCC28\uC21C",ascendingSort:t=>`${t.columnName} \uC5F4\uC744 \uAE30\uC900\uC73C\uB85C \uC624\uB984\uCC28\uC21C\uC73C\uB85C \uC815\uB82C\uB428`,collapse:"\uC811\uAE30",columnSize:t=>`${t.value} \uD53D\uC140`,descending:"\uB0B4\uB9BC\uCC28\uC21C",descendingSort:t=>`${t.columnName} \uC5F4\uC744 \uAE30\uC900\uC73C\uB85C \uB0B4\uB9BC\uCC28\uC21C\uC73C\uB85C \uC815\uB82C\uB428`,expand:"\uD3BC\uCE58\uAE30",resizerDescription:"\uD06C\uAE30 \uC870\uC815\uC744 \uC2DC\uC791\uD558\uB824\uBA74 Enter\uB97C \uB204\uB974\uC138\uC694.",select:"\uC120\uD0DD",selectAll:"\uBAA8\uB450 \uC120\uD0DD",sortable:"\uC815\uB82C \uAC00\uB2A5\uD55C \uC5F4"},"lt-LT":{ascending:"did\u0117jan\u010Dia tvarka",ascendingSort:t=>`surikiuota pagal stulpel\u012F ${t.columnName} did\u0117jan\u010Dia tvarka`,collapse:"Sutraukti",columnSize:t=>`${t.value} piks.`,descending:"ma\u017E\u0117jan\u010Dia tvarka",descendingSort:t=>`surikiuota pagal stulpel\u012F ${t.columnName} ma\u017E\u0117jan\u010Dia tvarka`,expand:"I\u0161skleisti",resizerDescription:"Paspauskite \u201EEnter\u201C, kad prad\u0117tum\u0117te keisti dyd\u012F",select:"Pasirinkti",selectAll:"Pasirinkti visk\u0105",sortable:"rikiuojamas stulpelis"},"lv-LV":{ascending:"augo\u0161\u0101 sec\u012Bb\u0101",ascendingSort:t=>`k\u0101rtots p\u0113c kolonnas ${t.columnName} augo\u0161\u0101 sec\u012Bb\u0101`,collapse:"Sak\u013Caut",columnSize:t=>`${t.value} pikse\u013Ci`,descending:"dilsto\u0161\u0101 sec\u012Bb\u0101",descendingSort:t=>`k\u0101rtots p\u0113c kolonnas ${t.columnName} dilsto\u0161\u0101 sec\u012Bb\u0101`,expand:"Izv\u0113rst",resizerDescription:"Nospiediet Enter, lai s\u0101ktu izm\u0113ru main\u012B\u0161anu",select:"Atlas\u012Bt",selectAll:"Atlas\u012Bt visu",sortable:"k\u0101rtojam\u0101 kolonna"},"nb-NO":{ascending:"stigende",ascendingSort:t=>`sortert etter kolonne ${t.columnName} i stigende rekkef\xF8lge`,collapse:"Skjul",columnSize:t=>`${t.value} piksler`,descending:"synkende",descendingSort:t=>`sortert etter kolonne ${t.columnName} i synkende rekkef\xF8lge`,expand:"Utvid",resizerDescription:"Trykk p\xE5 Enter for \xE5 starte st\xF8rrelsesendring",select:"Velg",selectAll:"Velg alle",sortable:"kolonne som kan sorteres"},"nl-NL":{ascending:"oplopend",ascendingSort:t=>`gesorteerd in oplopende volgorde in kolom ${t.columnName}`,collapse:"Samenvouwen",columnSize:t=>`${t.value} pixels`,descending:"aflopend",descendingSort:t=>`gesorteerd in aflopende volgorde in kolom ${t.columnName}`,expand:"Uitvouwen",resizerDescription:"Druk op Enter om het formaat te wijzigen",select:"Selecteren",selectAll:"Alles selecteren",sortable:"sorteerbare kolom"},"pl-PL":{ascending:"rosn\u0105co",ascendingSort:t=>`posortowano wed\u0142ug kolumny ${t.columnName} w porz\u0105dku rosn\u0105cym`,collapse:"Zwi\u0144",columnSize:t=>`Liczba pikseli: ${t.value}`,descending:"malej\u0105co",descendingSort:t=>`posortowano wed\u0142ug kolumny ${t.columnName} w porz\u0105dku malej\u0105cym`,expand:"Rozwi\u0144",resizerDescription:"Naci\u015Bnij Enter, aby rozpocz\u0105\u0107 zmienianie rozmiaru",select:"Zaznacz",selectAll:"Zaznacz wszystko",sortable:"kolumna z mo\u017Cliwo\u015Bci\u0105 sortowania"},"pt-BR":{ascending:"crescente",ascendingSort:t=>`classificado pela coluna ${t.columnName} em ordem crescente`,collapse:"Recolher",columnSize:t=>`${t.value} pixels`,descending:"decrescente",descendingSort:t=>`classificado pela coluna ${t.columnName} em ordem decrescente`,expand:"Expandir",resizerDescription:"Pressione Enter para come\xE7ar a redimensionar",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"coluna classific\xE1vel"},"pt-PT":{ascending:"ascendente",ascendingSort:t=>`Ordenar por coluna ${t.columnName} em ordem ascendente`,collapse:"Colapsar",columnSize:t=>`${t.value} pixels`,descending:"descendente",descendingSort:t=>`Ordenar por coluna ${t.columnName} em ordem descendente`,expand:"Expandir",resizerDescription:"Prima Enter para iniciar o redimensionamento",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"Coluna orden\xE1vel"},"ro-RO":{ascending:"cresc\u0103toare",ascendingSort:t=>`sortate dup\u0103 coloana ${t.columnName} \xEEn ordine cresc\u0103toare`,collapse:"Restr\xE2nge\u021Bi",columnSize:t=>`${t.value} pixeli`,descending:"descresc\u0103toare",descendingSort:t=>`sortate dup\u0103 coloana ${t.columnName} \xEEn ordine descresc\u0103toare`,expand:"Extinde\u021Bi",resizerDescription:"Ap\u0103sa\u021Bi pe Enter pentru a \xEEncepe redimensionarea",select:"Selectare",selectAll:"Selectare total\u0103",sortable:"coloan\u0103 sortabil\u0103"},"ru-RU":{ascending:"\u0432\u043E\u0437\u0440\u0430\u0441\u0442\u0430\u043D\u0438\u0435",ascendingSort:t=>`\u0441\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0442\u043E\u043B\u0431\u0435\u0446 ${t.columnName} \u0432 \u043F\u043E\u0440\u044F\u0434\u043A\u0435 \u0432\u043E\u0437\u0440\u0430\u0441\u0442\u0430\u043D\u0438\u044F`,collapse:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C",columnSize:t=>`${t.value} \u043F\u0438\u043A\u0441.`,descending:"\u0443\u0431\u044B\u0432\u0430\u043D\u0438\u0435",descendingSort:t=>`\u0441\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0442\u043E\u043B\u0431\u0435\u0446 ${t.columnName} \u0432 \u043F\u043E\u0440\u044F\u0434\u043A\u0435 \u0443\u0431\u044B\u0432\u0430\u043D\u0438\u044F`,expand:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C",resizerDescription:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0443 Enter \u0434\u043B\u044F \u043D\u0430\u0447\u0430\u043B\u0430 \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u0440\u0430\u0437\u043C\u0435\u0440\u043E\u0432",select:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C",selectAll:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0435",sortable:"\u0441\u043E\u0440\u0442\u0438\u0440\u0443\u0435\u043C\u044B\u0439 \u0441\u0442\u043E\u043B\u0431\u0435\u0446"},"sk-SK":{ascending:"vzostupne",ascendingSort:t=>`zoraden\xE9 zostupne pod\u013Ea st\u013Apca ${t.columnName}`,collapse:"Zbali\u0165",columnSize:t=>`Po\u010Det pixelov: ${t.value}`,descending:"zostupne",descendingSort:t=>`zoraden\xE9 zostupne pod\u013Ea st\u013Apca ${t.columnName}`,expand:"Rozbali\u0165",resizerDescription:"Stla\u010Den\xEDm kl\xE1vesu Enter za\u010Dnete zmenu ve\u013Ekosti",select:"Vybra\u0165",selectAll:"Vybra\u0165 v\u0161etko",sortable:"zoradite\u013En\xFD st\u013Apec"},"sl-SI":{ascending:"nara\u0161\u010Dajo\u010De",ascendingSort:t=>`razvr\u0161\u010Deno po stolpcu ${t.columnName} v nara\u0161\u010Dajo\u010Dem vrstnem redu`,collapse:"Strni",columnSize:t=>`${t.value} slikovnih pik`,descending:"padajo\u010De",descendingSort:t=>`razvr\u0161\u010Deno po stolpcu ${t.columnName} v padajo\u010Dem vrstnem redu`,expand:"Raz\u0161iri",resizerDescription:"Pritisnite tipko Enter da za\u010Dnete spreminjati velikost",select:"Izberite",selectAll:"Izberite vse",sortable:"razvrstljivi stolpec"},"sr-SP":{ascending:"rastu\u0107i",ascendingSort:t=>`sortirano po kolonama ${t.columnName} rastu\u0107im redosledom`,collapse:"Skupi",columnSize:t=>`${t.value} piksela`,descending:"padaju\u0107i",descendingSort:t=>`sortirano po kolonama ${t.columnName} padaju\u0107im redosledom`,expand:"Pro\u0161iri",resizerDescription:"Pritisnite Enter da biste zapo\u010Deli promenu veli\u010Dine",select:"Izaberite",selectAll:"Izaberite sve",sortable:"kolona koja se mo\u017Ee sortirati"},"sv-SE":{ascending:"stigande",ascendingSort:t=>`sorterat p\xE5 kolumn ${t.columnName} i stigande ordning`,collapse:"D\xF6lj",columnSize:t=>`${t.value} pixlar`,descending:"fallande",descendingSort:t=>`sorterat p\xE5 kolumn ${t.columnName} i fallande ordning`,expand:"Expandera",resizerDescription:"Tryck p\xE5 Retur f\xF6r att b\xF6rja \xE4ndra storlek",select:"Markera",selectAll:"Markera allt",sortable:"sorterbar kolumn"},"tr-TR":{ascending:"artan s\u0131rada",ascendingSort:t=>`${t.columnName} s\xFCtuna g\xF6re artan d\xFCzende s\u0131rala`,collapse:"Daralt",columnSize:t=>`${t.value} piksel`,descending:"azalan s\u0131rada",descendingSort:t=>`${t.columnName} s\xFCtuna g\xF6re azalan d\xFCzende s\u0131rala`,expand:"Geni\u015Flet",resizerDescription:"Yeniden boyutland\u0131rmak i\xE7in Enter'a bas\u0131n",select:"Se\xE7",selectAll:"T\xFCm\xFCn\xFC Se\xE7",sortable:"S\u0131ralanabilir s\xFCtun"},"uk-UA":{ascending:"\u0432\u0438\u0441\u0445\u0456\u0434\u043D\u0438\u0439",ascendingSort:t=>`\u0432\u0456\u0434\u0441\u043E\u0440\u0442\u043E\u0432\u0430\u043D\u043E \u0437\u0430 \u0441\u0442\u043E\u0432\u043F\u0446\u0435\u043C ${t.columnName} \u0443 \u0432\u0438\u0441\u0445\u0456\u0434\u043D\u043E\u043C\u0443 \u043F\u043E\u0440\u044F\u0434\u043A\u0443`,collapse:"\u0417\u0433\u043E\u0440\u043D\u0443\u0442\u0438",columnSize:t=>`${t.value} \u043F\u0456\u043A\u0441.`,descending:"\u043D\u0438\u0437\u0445\u0456\u0434\u043D\u0438\u0439",descendingSort:t=>`\u0432\u0456\u0434\u0441\u043E\u0440\u0442\u043E\u0432\u0430\u043D\u043E \u0437\u0430 \u0441\u0442\u043E\u0432\u043F\u0446\u0435\u043C ${t.columnName} \u0443 \u043D\u0438\u0437\u0445\u0456\u0434\u043D\u043E\u043C\u0443 \u043F\u043E\u0440\u044F\u0434\u043A\u0443`,expand:"\u0420\u043E\u0437\u0433\u043E\u0440\u043D\u0443\u0442\u0438",resizerDescription:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C Enter, \u0449\u043E\u0431 \u043F\u043E\u0447\u0430\u0442\u0438 \u0437\u043C\u0456\u043D\u0443 \u0440\u043E\u0437\u043C\u0456\u0440\u0443",select:"\u0412\u0438\u0431\u0440\u0430\u0442\u0438",selectAll:"\u0412\u0438\u0431\u0440\u0430\u0442\u0438 \u0432\u0441\u0435",sortable:"\u0441\u043E\u0440\u0442\u0443\u0432\u0430\u043B\u044C\u043D\u0438\u0439 \u0441\u0442\u043E\u0432\u043F\u0435\u0446\u044C"},"zh-CN":{ascending:"\u5347\u5E8F",ascendingSort:t=>`\u6309\u5217 ${t.columnName} \u5347\u5E8F\u6392\u5E8F`,collapse:"\u6298\u53E0",columnSize:t=>`${t.value} \u50CF\u7D20`,descending:"\u964D\u5E8F",descendingSort:t=>`\u6309\u5217 ${t.columnName} \u964D\u5E8F\u6392\u5E8F`,expand:"\u6269\u5C55",resizerDescription:"\u6309 Enter \u5F00\u59CB\u8C03\u6574\u5927\u5C0F\u3002",select:"\u9009\u62E9",selectAll:"\u5168\u9009",sortable:"\u53EF\u6392\u5E8F\u7684\u5217"},"zh-TW":{ascending:"\u905E\u589E",ascendingSort:t=>`\u5DF2\u4F9D\u64DA\u300C${t.columnName}\u300D\u6B04\u905E\u589E\u6392\u5E8F`,collapse:"\u6536\u5408",columnSize:t=>`${t.value} \u50CF\u7D20`,descending:"\u905E\u6E1B",descendingSort:t=>`\u5DF2\u4F9D\u64DA\u300C${t.columnName}\u300D\u6B04\u905E\u6E1B\u6392\u5E8F`,expand:"\u5C55\u958B",resizerDescription:"\u6309 Enter \u9375\u4EE5\u958B\u59CB\u8ABF\u6574\u5927\u5C0F",select:"\u9078\u53D6",selectAll:"\u5168\u9078",sortable:"\u53EF\u6392\u5E8F\u7684\u6B04"}};var Ye=class extends he{isCell(e){return e.type==="cell"||e.type==="rowheader"||e.type==="column"}getKeyBelow(e,l){let o=this.collection.getItem(e);if(!o)return null;if(o.type==="column"){let r=c$6(b$9(o,this.collection));if(r)return r.key;let n=this.getFirstKey();return n==null||!this.collection.getItem(n)?null:super.getKeyForItemInRowByIndex(n,o.index)}return super.getKeyBelow(e,l)}getKeyAbove(e,l){let o=this.collection.getItem(e);if(!o)return null;if(o.type==="column"){let i=o.parentKey!=null?this.collection.getItem(o.parentKey):null;return i&&i.type==="column"?i.key:null}let r=super.getKeyAbove(e,l),n=r!=null?this.collection.getItem(r):null;return n&&n.type!=="headerrow"?r:this.isCell(o)?this.collection.columns[o.index].key:this.collection.columns[0].key}findNextColumnKey(e){let l=this.findNextKey(e.key,r=>r.type==="column");if(l!=null)return l;let o=this.collection.headerRows[e.level];for(let r of b$9(o,this.collection))if(r.type==="column")return r.key;return null}findPreviousColumnKey(e){let l=this.findPreviousKey(e.key,n=>n.type==="column");if(l!=null)return l;let o=this.collection.headerRows[e.level],r=[...b$9(o,this.collection)];for(let n=r.length-1;n>=0;n--){let i=r[n];if(i.type==="column")return i.key}return null}getKeyRightOf(e){let l=this.collection.getItem(e);return l?l.type==="column"?this.direction==="rtl"?this.findPreviousColumnKey(l):this.findNextColumnKey(l):super.getKeyRightOf(e):null}getKeyLeftOf(e){let l=this.collection.getItem(e);return l?l.type==="column"?this.direction==="rtl"?this.findNextColumnKey(l):this.findPreviousColumnKey(l):super.getKeyLeftOf(e):null}getKeyForSearch(e,l){if(!this.collator)return null;let o=this.collection,r=l??this.getFirstKey();if(r==null)return null;let n=o.getItem(r);n?.type==="cell"&&(r=n.parentKey??null);let i=false;for(;r!=null;){let d=o.getItem(r);if(!d)return null;if(d.textValue){let a=d.textValue.slice(0,e.length);if(this.collator.compare(a,e)===0)return d.key}for(let a of b$9(d,this.collection)){let u=o.columns[a.index];if(o.rowHeaderColumnKeys.has(u.key)&&a.textValue){let c=a.textValue.slice(0,e.length);if(this.collator.compare(c,e)===0)return (l!=null?o.getItem(l):n)?.type==="cell"?a.key:d.key}}r=this.getKeyBelow(r),r==null&&!i&&(r=this.getFirstKey(),i=true);}return null}};function xt(t,e,l){let{keyboardDelegate:o,isVirtualized:r,layoutDelegate:n,layout:i}=t,d=a$f({usage:"search",sensitivity:"base"}),{direction:a}=b$2(),u=e.selectionManager.disabledBehavior,c=useMemo(()=>o||new Ye({collection:e.collection,disabledKeys:e.disabledKeys,disabledBehavior:u,ref:l,direction:a,collator:d,layoutDelegate:n,layout:i}),[o,e.collection,e.disabledKeys,u,l,a,d,n,i]),s=c$3(t.id);Ze.set(e,s);let{gridProps:b}=Il({...t,id:s,keyboardDelegate:c},e,l);r&&(b["aria-rowcount"]=e.collection.size+e.collection.headerRows.length),e.treeColumn!=null&&(b.role="treegrid");let{column:f,direction:p}=e.sortDescriptor||{},m=b$6(J,"@react-aria/table"),T=useMemo(()=>{let w=e.collection.columns.find(S=>S.key===f)?.textValue??"";return p&&f?m.format(`${p}Sort`,{columnName:w}):void 0},[p,f,e.collection.columns]),g=d$1(T,l);return c$4(()=>{T&&a$g(T,"assertive",500);},[T]),{gridProps:c$2(b,g,{"aria-describedby":[g["aria-describedby"],b["aria-describedby"]].filter(Boolean).join(" ")})}}function Xe(t,e,l){let{node:o,isVirtualized:r,focusMode:n,allowsArrowNavigation:i,shouldSelectOnPressUp:d,onAction:a}=t,{direction:u}=b$2(),{keyboardDelegate:c,actions:{onCellAction:s},keyboardNavigationBehavior:b}=ge.get(e),f=n??(b==="tab"?"cell":"child"),p=useRef(null),m$1=useRef(null),T=()=>{if(l.current){let h=d$5(l.current);if(f==="child"){let R=i$2(a$b(l.current));if(m(l.current)&&l.current!==R)return;let x=a$b(l.current);if(!R||R===x.body||R===l.current){let j=m$1.current;if(j&&p.current===o.key&&h$2(l.current,j)){i$1(j);return}}let N=e.selectionManager.childFocusStrategy==="last"?kt(h):h.firstChild();if(N){i$1(N);return}}(p.current!=null&&o.key!==p.current||!m(l.current))&&i$1(l.current);}},{itemProps:g,isPressed:w}=d$3({selectionManager:e.selectionManager,key:o.key,ref:l,isVirtualized:r,focus:T,shouldSelectOnPressUp:d,onAction:s?()=>s(o.key):a,isDisabled:e.collection.size===0}),S=h=>{let R=i$2(a$b(l.current));if(!h$2(h.currentTarget,j$2(h))||e.isKeyboardNavigationDisabled||!l.current||!R)return;let x=d$5(l.current);switch(x.currentNode=R,h.key){case "ArrowLeft":{let v=u==="rtl"?x.nextNode():x.previousNode();if(f==="child"&&v===l.current&&(v=null),h.preventDefault(),h.stopPropagation(),v)i$1(v),f$2(v,{containingElement:b$c(l.current)});else {if(c.getKeyLeftOf?.(o.key)!==o.key){l.current.parentElement?.dispatchEvent(new KeyboardEvent(h.nativeEvent.type,h.nativeEvent));break}f==="cell"&&u==="rtl"?(i$1(l.current),f$2(l.current,{containingElement:b$c(l.current)})):(x.currentNode=l.current,v=u==="rtl"?x.firstChild():kt(x),v&&(i$1(v),f$2(v,{containingElement:b$c(l.current)})));}break}case "ArrowRight":{let v=u==="rtl"?x.previousNode():x.nextNode();if(f==="child"&&v===l.current&&(v=null),h.preventDefault(),h.stopPropagation(),v)i$1(v),f$2(v,{containingElement:b$c(l.current)});else {if(c.getKeyRightOf?.(o.key)!==o.key){l.current.parentElement?.dispatchEvent(new KeyboardEvent(h.nativeEvent.type,h.nativeEvent));break}f==="cell"&&u==="ltr"?(i$1(l.current),f$2(l.current,{containingElement:b$c(l.current)})):(x.currentNode=l.current,v=u==="rtl"?kt(x):x.firstChild(),v&&(i$1(v),f$2(v,{containingElement:b$c(l.current)})));}break}case "ArrowUp":case "ArrowDown":!h.altKey&&h$2(l.current,j$2(h))&&(h.stopPropagation(),h.preventDefault(),l.current.parentElement?.dispatchEvent(new KeyboardEvent(h.nativeEvent.type,h.nativeEvent)));break}},C=h=>{let R=i$2(a$b(l.current));if(!(!h$2(h.currentTarget,j$2(h))||e.isKeyboardNavigationDisabled||!l.current||!R)){if(b==="tab"&&j$2(h)!==l.current&&h.key!=="Tab"){h.stopPropagation();return}switch(h.key){case "Tab":if(b==="tab"){let x=d$5(l.current,{tabbable:true});x.currentNode=R,(h.shiftKey?x.previousNode():x.nextNode())&&h.stopPropagation();}}}},D=h=>{if(p.current=o.key,j$2(h)!==l.current){let R=j$2(h);l.current&&h$2(l.current,R)&&(m$1.current=R),b$b()||e.selectionManager.setFocusedKey(o.key);return}f==="child"&&h.relatedTarget&&h$2(l.current,h.relatedTarget)||requestAnimationFrame(()=>{f==="child"&&i$2(a$b(l.current))===l.current&&T();});},P=c$2(g,{role:"gridcell",onKeyDownCapture:b!=="tab"||i?S:void 0,onKeyDown:b==="tab"?C:void 0,"aria-colspan":o.colSpan,"aria-colindex":o.colIndex!=null?o.colIndex+1:void 0,colSpan:r?void 0:o.colSpan,onFocus:D,...f==="child"&&b==="tab"?{tabIndex:-1}:{}});return r&&(P["aria-colindex"]=(o.colIndex??o.index)+1),d&&P.tabIndex!=null&&P.onPointerDown==null&&(P.onPointerDown=h=>{let R=h.currentTarget,x=R.getAttribute("tabindex");R.removeAttribute("tabindex"),requestAnimationFrame(()=>{x!=null&&R.setAttribute("tabindex",x);});}),{gridCellProps:P,isPressed:w}}function kt(t){let e=null,l=null;do l=t.lastChild(),l&&(e=l);while(l);return e}function vt(t,e,l){let{node:o}=t,r=o.props.allowsSorting,{gridCellProps:n}=Xe({focusMode:"child",...t},e,l),i=o.props.isSelectionCell&&e.selectionManager.selectionMode==="single",{pressProps:d,isPressed:a}=d$2({isDisabled:!r||i,onPress(){e.sort(o.key);},ref:l}),{focusableProps:u}=c$5({},l),c,s=e.sortDescriptor?.column===o.key,b=e.sortDescriptor?.direction;o.props.allowsSorting&&!l$2()&&(c=s?b:"none");let f=b$6(J,"@react-aria/table"),p;r&&(p=`${f.format("sortable")}`,s&&b&&l$2()&&(p=`${p}, ${f.format(b)}`));let m=d$1(p,l),T=e.collection.size===0;return useEffect(()=>{T&&e.selectionManager.focusedKey===o.key&&e.selectionManager.setFocusedKey(null);},[T,e.selectionManager,o.key]),{columnHeaderProps:{...c$2(u,n,d,m,T?{tabIndex:-1}:null),role:"columnheader",id:_e(e,o.key),"aria-colspan":o.colSpan&&o.colSpan>1?o.colSpan:void 0,"aria-sort":c},isPressed:a}}function Ll(t,e,l){let{node:o,isVirtualized:r,shouldSelectOnPressUp:n,onAction:i}=t,{actions:d,shouldSelectOnPressUp:a}=ge.get(e),u=d.onRowAction?()=>d.onRowAction?.(o.key):i,{itemProps:c,...s}=d$3({selectionManager:e.selectionManager,key:o.key,ref:l,isVirtualized:r,shouldSelectOnPressUp:a||n,onAction:u||o?.props?.onAction?a$m(o?.props?.onAction,u):void 0,isDisabled:e.collection.size===0}),b=e.selectionManager.isSelected(o.key),f={role:"row","aria-selected":e.selectionManager.selectionMode!=="none"?b:void 0,"aria-disabled":s.isDisabled||void 0,...c};return r&&(f["aria-rowindex"]=o.index+1),{rowProps:f,...s}}var Fl={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function zt(t,e,l){let{node:o,isVirtualized:r}=t,{rowProps:n,...i}=Ll(t,e,l),{direction:d}=b$2();r&&e.treeColumn==null?n["aria-rowindex"]=o.index+1+e.collection.headerRows.length:delete n["aria-rowindex"];let a=e.treeColumn!=null&&(e.expandedKeys==="all"||e.expandedKeys.has(o.key)),u=b$6(J,"@react-aria/table"),c=a$j({"aria-label":a?u.format("collapse"):u.format("expand"),"aria-labelledby":De(e,o.key)}),s={},b={};if(e.treeColumn!=null){let m=e.collection.getItem(o.key);if(m!=null){let T=Hl(e.collection,o),g=m.props?.hasChildRows||m.props?.UNSTABLE_childItems||T?.type!=="cell",w=e.collection.getItem(o.parentKey),S=w.type==="tablebody"||w.type==="body",C=Hl(e.collection,w);for(;C&&C.type!=="item"&&C.prevKey!=null;)C=e.collection.getItem(C.prevKey);s={onKeyDown:D=>{D.key===Fl.expand[d]&&e.selectionManager.focusedKey===m.key&&g&&e.expandedKeys!=="all"&&!e.expandedKeys.has(m.key)?(e.toggleKey(m.key),D.stopPropagation()):D.key===Fl.collapse[d]&&e.selectionManager.focusedKey===m.key&&(e.expandedKeys!=="all"?g&&e.expandedKeys.has(m.key)?(e.toggleKey(m.key),D.stopPropagation()):!e.expandedKeys.has(m.key)&&m.parentKey!=null&&m.level>0&&(e.selectionManager.setFocusedKey(m.parentKey),D.stopPropagation()):e.expandedKeys==="all"&&(e.toggleKey(m.key),D.stopPropagation()));},"aria-expanded":g?e.expandedKeys==="all"||e.expandedKeys.has(o.key):void 0,"aria-level":m.level+1,"aria-posinset":m.index-(S?0:e.collection.columnCount)+1,"aria-setsize":C.index-(S?0:e.collection.columnCount)+1},b={isDisabled:i.isDisabled,onPress:()=>{i.isDisabled||(e.toggleKey(o.key),e.selectionManager.setFocused(true),e.selectionManager.setFocusedKey(o.key));},excludeFromTabOrder:true,preventFocusOnPress:true,"data-react-aria-prevent-focus":true,...c};}}let f=q(o.props),p=i.hasAction?f:{};return {rowProps:{...c$2(n,s,p),"aria-labelledby":De(e,o.key)},expandButtonProps:b,...i}}function Hl(t,e){return "lastChildKey"in e?e.lastChildKey!=null?t.getItem(e.lastChildKey):null:Array.from(e.childNodes).findLast(l=>l.parentKey===e.key)}function Rt(t,e,l){let{node:o,isVirtualized:r}=t,n={role:"row"};return r&&e.treeColumn==null&&(n["aria-rowindex"]=o.index+1),{rowProps:n}}function Kt(t,e,l){let{gridCellProps:o,isPressed:r}=Xe(t,e,l),n=t.node.column?.key;return n!=null&&e.collection.rowHeaderColumnKeys.has(n)&&(o.role="rowheader",o.id=wt(e,t.node.parentKey,n)),{gridCellProps:o,isPressed:r}}function Dt(t,e){let{key:l}=t,{checkboxProps:o}=a$k(t,e);return {checkboxProps:{...o,"aria-labelledby":`${o.id} ${De(e,l)}`}}}function Pt(t){let{isEmpty:e,isSelectAll:l,selectionMode:o}=t.selectionManager;return {checkboxProps:{"aria-label":b$6(J,"@react-aria/table").format(o==="single"?"select":"selectAll"),isSelected:l,isDisabled:o!=="multiple"||t.collection.size===0||t.collection.rows.length===1&&t.collection.rows[0].type==="loader",isIndeterminate:!e&&!l,onChange:()=>t.selectionManager.toggleSelectAll()}}}function Mt(t,e,l){let{column:o,triggerRef:r,isDisabled:n,onResizeStart:i,onResize:d,onResizeEnd:a,"aria-label":u}=t,c=b$6(J,"@react-aria/table"),s=c$3(),b=e.resizingColumn===o.key,f$1=useRef(b),p=useRef(null),m=useRef(false),T=e.tableState.isKeyboardNavigationDisabled,[g,w]=useState(false),{direction:S}=b$2(),C=useCallback(z=>{f$1.current||(p.current=e.updateResizedColumns(z.key,e.getColumnWidth(z.key)),e.startResize(z.key),e.tableState.setKeyboardNavigationDisabled(true),i?.(p.current)),f$1.current=true;},[e,i]),D=useCallback((z,K)=>{let G=e.updateResizedColumns(z.key,K);d?.(G),p.current=G;},[e,d]),P=useCallback(z=>{f$1.current&&(p.current==null&&(p.current=e.updateResizedColumns(z.key,e.getColumnWidth(z.key))),e.endResize(),e.tableState.setKeyboardNavigationDisabled(false),a?.(p.current),f$1.current=false,r?.current&&!m.current&&i$1(r.current)),p.current=null;},[e,r,a]),h=()=>{if(T){P(o);return}return false},{keyboardProps:R}=j$1({shortcuts:{Escape:()=>h(),Enter:()=>{T?P(o):C(o);}," ":()=>h(),Tab:()=>h()}}),x=useRef(0),{moveProps:v}=a$i({onMoveStart(z){x.current=e.getColumnWidth(o.key),z.pointerType==="mouse"&&w(true),C(o);},onMove(z){let{deltaX:K,deltaY:G,pointerType:lt}=z;S==="rtl"&&(K*=-1),lt==="keyboard"&&(G!==0&&K===0&&(K=G*-1),K*=10),K!==0&&(x.current+=K,D(o,x.current));},onMoveEnd(z){let{pointerType:K}=z;x.current=0,w(false),(K==="mouse"||K==="touch"&&m.current)&&P(o);}}),N=useCallback(z=>{T&&v.onKeyDown?.(z);},[T,v]),j=Math.floor(e.getColumnMinWidth(o.key)),U=Math.floor(e.getColumnMaxWidth(o.key));U===1/0&&(U=Number.MAX_SAFE_INTEGER);let Z=Math.floor(e.getColumnWidth(o.key)),_=f();_==="virtual"&&typeof window<"u"&&"ontouchstart"in window&&(_="touch");let we=r?.current==null&&(_==="keyboard"||_==="virtual")&&!b?c.format("resizerDescription"):void 0,te=d$1(we),oe={"aria-label":u,"aria-orientation":"horizontal","aria-labelledby":`${s} ${_e(e.tableState,o.key)}`,"aria-valuetext":c.format("columnSize",{value:Z}),type:"range",min:j,max:U,value:Z,...te},re=useCallback(()=>{l.current&&i$1(l.current);},[l]),ne=e.resizingColumn,me=useRef(null),Ee=u$1(C);useEffect(()=>{if(me.current!==ne&&ne!=null&&ne===o.key){m.current=i$2(a$b(l.current))===l.current,Ee(o);let z=setTimeout(()=>re(),0),K=setTimeout(re,400);return ()=>{clearTimeout(z),clearTimeout(K);}}me.current=ne;},[ne,o,re,l]);let et=z=>{let K=e.getColumnWidth(o.key),G=parseFloat(j$2(z).value);G>K?G=K+10:G=K-10,D(o,G);},{pressProps:xe}=d$2({preventFocusOnPress:true,onPressStart:z=>{if(!(z.ctrlKey||z.altKey||z.metaKey||z.shiftKey||z.pointerType==="keyboard")){if(z.pointerType==="virtual"&&e.resizingColumn!=null){P(o);return}re(),z.pointerType!=="virtual"&&C(o);}},onPress:z=>{(z.pointerType==="touch"&&m.current||z.pointerType==="mouse")&&e.resizingColumn!=null&&P(o);}}),{visuallyHiddenProps:tt}=a$c();return {resizerProps:c$2(R,{...v,onKeyDown:N},xe,{style:{touchAction:"none"}}),inputProps:c$2(tt,{id:s,onBlur:()=>{P(o);},onChange:et,disabled:n},oe),isResizing:b,isMouseResizing:g}}function Ol(){return {rowGroupProps:{role:"rowgroup"}}}function qe(){return Ol()}var Nt=class extends g{headerRows=[];columns=[];rows=[];rowHeaderColumnKeys=new Set;head=new Je(-1);columnsDirty=true;expandedKeys=new Set;withExpandedKeys(e){let l=this.clone();return l.expandedKeys=e,l.frozen=this.frozen,l.rows=Array.from(l.getRows()),l}addNode(e){super.addNode(e),this.columnsDirty||=e.type==="column",e.type==="tableheader"&&(this.head=e);}getRows(){let e=[];for(let l of this)(l.type==="tablebody"||l.type==="tablefooter")&&e.push(...this.getChildren(l.key));return e}get body(){for(let e of this)if(e.type==="tablebody")return e;return new Qe(-2)}commit(e,l,o=false){this.updateColumns(o),this.firstKey=e,this.lastKey=l,this.rows=[];for(let r of this.getRows()){let n=r.lastChildKey;if(n!=null){let i=this.getItem(n);for(;i&&i.type!=="cell";)i=i.prevKey!=null?this.getItem(i.prevKey):null;if(i){let d=(i.colIndex??i.index)+(i.colSpan??1);if(d!==this.columns.length&&!o)throw new Error(`Cell count must match column count. Found ${d} cells and ${this.columns.length} columns.`)}}this.rows.push(r);}super.commit(e,l,o);}updateColumns(e){if(!this.columnsDirty)return;this.rowHeaderColumnKeys=new Set,this.columns=[];let l=new Map,o=r=>{r.type==="column"&&(l.set(r.key,r),r.hasChildNodes||(r.index=this.columns.length,this.columns.push(r),r.props.isRowHeader&&this.rowHeaderColumnKeys.add(r.key)));for(let n of this.getChildren(r.key))o(n);};for(let r of this.getChildren(this.head.key))o(r);if(this.headerRows=je(l,this.columns),this.columnsDirty=false,this.rowHeaderColumnKeys.size===0&&this.columns.length>0&&!e)throw new Error("A table must have at least one Column with the isRowHeader prop set to true")}get columnCount(){return this.columns.length}*[Symbol.iterator](){let e=this.firstKey;for(;e!=null;){let l=this.getItem(e);l&&(yield l),e=l?.nextKey??null;}}getFirstKey(){for(let e of this)if(e.type==="tablebody")return e.firstChildKey??null;return null}getLastKey(){let e=this.lastKey;if(e==null)return null;let l=this.getItem(e);for(;l?.lastChildKey!=null&&(l.type!=="item"||this.expandedKeys.has(l.key));)l=this.getItem(l.lastChildKey);return l?.key}getKeyAfter(e){let l=this.getItem(e);if(l?.type==="column")return l.nextKey??null;if(!l)return null;if(l.type==="item"&&l.firstChildKey!=null&&this.expandedKeys.has(l.key)){let o=this.getItem(l.firstChildKey);for(;o;){if(o.type==="item")return o.key;o=o.nextKey!=null?this.getItem(o.nextKey):null;}}return super.getKeyAfter(e)}getKeyBefore(e){let l=this.getItem(e);if(l?.type==="column")return l.prevKey??null;if(!l)return null;let o=null;if(l.prevKey!=null){for(l=this.getItem(l.prevKey);l&&(l.type!=="item"||this.expandedKeys.has(l.key))&&l.lastChildKey!=null;)l=this.getItem(l.lastChildKey);o=l?.key??null;}return o==null&&(o=l.parentKey),o!=null&&this.getItem(o)?.type==="tableheader"?null:o}getChildren(e){let l=this.getItem(e);if(!l){for(let r of this.headerRows)if(r.key===e)return r.childNodes}let o=this;return l?.type==="tablebody"||l?.type==="tablefooter"?{*[Symbol.iterator](){let r=l.firstChildKey,n=r!=null?o.getItem(r):null;for(;n;){yield n;let i=o.getKeyAfter(n.key);if(n=i!=null?o.getItem(i):null,n&&n.parentKey===l.parentKey)break}}}:{*[Symbol.iterator](){let r=o.getItem(e),n=r?.firstChildKey!=null?o.getItem(r.firstChildKey):null;for(;n&&(yield n,n=n.nextKey!=null?o.getItem(n.nextKey):null,!(r?.type==="item"&&n?.type!=="cell")););}}}clone(){let e=super.clone();return e.headerRows=this.headerRows,e.columns=this.columns,e.rows=this.rows,e.rowHeaderColumnKeys=this.rowHeaderColumnKeys,e.head=this.head,e}getTextValue(e){let l=this.getItem(e);if(!l)return "";if(l.textValue)return l.textValue;let o=this.rowHeaderColumnKeys,r=[];for(let n of this.getChildren(e)){let i=this.columns[n.index];if(o.has(i.key)&&n.textValue&&r.push(n.textValue),r.length===o.size)break}return r.join(" ")}},Ft=createContext(null);forwardRef(function(e$1,l){let o=a(l),r=useRef(null),n=useRef(null),[i,d]=useState(0);a$1(()=>{let u=r.current;for(;u&&u!==o.current&&!a$2(u);)u=u.parentElement;n.current=u;},[o]),e({ref:n,box:"border-box",onResize(){d(n.current?.clientWidth??0);}}),a$1(()=>{d(n.current?.clientWidth??0);},[]);let a$4=useMemo(()=>({tableRef:r,scrollRef:n,tableWidth:i,useTableColumnResizeState:ht,onResizeStart:e$1.onResizeStart,onResize:e$1.onResize,onResizeEnd:e$1.onResizeEnd}),[r,i,e$1.onResizeStart,e$1.onResize,e$1.onResizeEnd]);return jsx(h.div,{render:e$1.render,...a$3(e$1,{global:true}),ref:o,className:e$1.className||"react-aria-ResizableTableContainer",style:e$1.style,onScroll:e$1.onScroll,children:jsx(Ft.Provider,{value:a$4,children:e$1.children})})});var no=createContext(null),Q=createContext(null),Ht=createContext(null),xa=forwardRef(function(e,l$1){[e,l$1]=e$1(e,l$1,no);let o=a$4(e),{selectionBehavior:r,selectionMode:n,disallowEmptySelection:i$1}=o,d=!!e.dragAndDropHooks?.useDraggableCollectionState,a=useMemo(()=>({selectionBehavior:n==="none"?null:r,selectionMode:n,disallowEmptySelection:i$1,allowsDragging:d}),[r,n,i$1,d]),u=jsx(so.Provider,{value:a,children:jsx(l,{...e})});return jsx(i,{content:u,createCollection:()=>new Nt,children:c=>jsx(ao,{props:e,forwardedRef:l$1,selectionState:o,collection:c})})}),io=forwardRef(function(e,l){let{isVirtualized:o}=useContext(p);return o?jsx(h.div,{...e,ref:l}):jsx(h.table,{...e,ref:l})}),Vl={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function ao({props:t,forwardedRef:e,selectionState:l,collection:o}){[t,e]=e$1(t,e,b);let{shouldUseVirtualFocus:r$1,disallowTypeAhead:n,filter:i,...d}=t,a$1=useContext(Ft);e=a(useMemo(()=>b$1(e,a$1?.tableRef),[e,a$1?.tableRef]));let[u,c$3]=a$5(t.expandedKeys?new Set(t.expandedKeys):void 0,t.defaultExpandedKeys?new Set(t.defaultExpandedKeys):new Set,t.onExpandedChange);o=useMemo(()=>o.withExpandedKeys(u),[o,u]);let s$1=gt({...d,collection:o,children:void 0,UNSAFE_selectionState:l,expandedKeys:u,onExpandedChange:c$3}),b$5=Tt(s$1,i),{isVirtualized:f,layoutDelegate:p$1,dropTargetDelegate:m,CollectionRoot:T}=useContext(p),{dragAndDropHooks:g}=t,{gridProps:w}=xt({...d,layoutDelegate:p$1,isVirtualized:f},b$5,e),S=b$5.selectionManager,C=!!g?.useDraggableCollectionState,D=!!g?.useDroppableCollectionState,P=useRef(C),h=useRef(D);useEffect(()=>{process.env.NODE_ENV!=="production"&&(P.current!==C&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),h.current!==D&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."));},[C,D]);let R,x$1,v$1,N=false,j=null,U=useRef(null),{direction:Z}=b$2(),[_]=useState(()=>new a$6);if(C&&g){R=g.useDraggableCollectionState({collection:b$5.collection,selectionManager:S,preview:g.renderDragPreview?U:void 0}),g.useDraggableCollection({},R,e);let xe=g.DragPreview;j=g.renderDragPreview?jsx(xe,{ref:U,children:g.renderDragPreview}):null;}if(D&&g){x$1=g.useDroppableCollectionState({collection:b$5.collection,selectionManager:S});let xe=new b$3({collection:b$5.collection,disabledKeys:S.disabledKeys,disabledBehavior:S.disabledBehavior,ref:e,layoutDelegate:p$1}),tt=g.dropTargetDelegate||m||new g.ListDropTargetDelegate(o.rows,e);_.setup(tt,s$1,Z),v$1=g.useDroppableCollection({keyboardDelegate:xe,dropTargetDelegate:_,onDropActivate:z=>{if(z.target.type==="item"){let K=z.target.key,G=s$1.collection.getItem(K),lt=u.has(K);G&&G.hasChildNodes&&(!lt||g?.isVirtualDragging?.())&&s$1.toggleKey(K);}},onKeyDown:z=>{let K=x$1?.target;if(K&&K.type==="item"&&K.dropPosition==="on"){let G=s$1.collection.getItem(K.key);(z.key===Vl.expand[Z]&&G?.hasChildNodes&&!s$1.expandedKeys.has(K.key)||z.key===Vl.collapse[Z]&&G?.hasChildNodes&&s$1.expandedKeys.has(K.key))&&s$1.toggleKey(K.key);}}},x$1,e),N=x$1.isDropTarget({type:"root"});}let{focusProps:we,isFocused:te,isFocusVisible:oe}=a$7(),re=c({...t,children:void 0,defaultClassName:"react-aria-Table",values:{isDropTarget:N,isFocused:te,isFocusVisible:oe,state:b$5}}),ne=!!(C&&!R?.isDisabled),me=re.style,Ee=null;a$1&&(Ee=a$1.useTableColumnResizeState({tableWidth:a$1.tableWidth},b$5),f||(me={...me,tableLayout:"fixed",width:"min-content"}));let et=a$3(t,{global:true});return jsxs(b$4,{values:[[Q,b$5],[Ht,Ee],[r,{dragAndDropHooks:g,dragState:R,dropState:x$1}],[s,{render:fo}],[b,null],[c$1,null]],children:[jsx(a$8,{children:jsx(io,{...c$2(et,re,w,we,v$1?.collectionProps),style:me,ref:e,slot:t.slot||void 0,onScroll:t.onScroll,"data-allows-dragging":ne||void 0,"data-drop-target":N||void 0,"data-focused":te||void 0,"data-focus-visible":oe||void 0,children:jsx(x,{children:jsx(T,{collection:b$5.collection,scrollRef:a$1?.scrollRef??e,persistedKeys:v(S,g,x$1)})})})}),j]})}var so=createContext(null);var Je=class extends a$h{static type="tableheader"},co=forwardRef(function(e,l){let{isVirtualized:o}=useContext(p);return o?jsx(h.div,{...e,ref:l}):jsx(h.thead,{...e,ref:l})}),ka=k(Je,(t,e)=>{let l=useContext(Q).collection,o=h$1({items:l.headerRows,children:useCallback(a=>{if(a.type==="headerrow")return jsx(mo,{item:a});throw new Error("Unsupported node type in TableHeader: "+a.type)},[])}),{rowGroupProps:r}=qe(),{hoverProps:n,isHovered:i}=a$9({onHoverStart:t.onHoverStart,onHoverChange:t.onHoverChange,onHoverEnd:t.onHoverEnd}),d=c({...t,children:void 0,defaultClassName:"react-aria-TableHeader",values:{isHovered:i}});return jsx(co,{...c$2(a$3(t,{global:true}),r,n),...d,ref:e,"data-hovered":i||void 0,children:o})},t=>jsx(l,{dependencies:t.dependencies,items:t.columns,children:t.children})),uo=forwardRef(function(e,l){let{isVirtualized:o}=useContext(p);return o?jsx("div",{...e,ref:l}):jsx("tr",{...e,ref:l})});function mo({item:t}){let e=useRef(null),l=useContext(Q),{isVirtualized:o,CollectionBranch:r}=useContext(p),{rowProps:n}=Rt({node:t,isVirtualized:o},l),{checkboxProps:i}=Pt(l);return jsx(uo,{...n,ref:e,children:jsx(b$4,{values:[[a$a,{slots:{selection:i}}],[b$5,{slots:{selection:i}}]],children:jsx(r,{collection:l.collection,parent:t})})})}var Et=class extends a$h{static type="column"},po=forwardRef(function(e,l){let{isVirtualized:o}=useContext(p);return o?jsx(h.div,{...e,ref:l}):jsx(h.th,{...e,ref:l})}),va=j(Et,(t,e,l)=>{let o=a(e),r=useContext(Q),{isVirtualized:n$1}=useContext(p),{columnHeaderProps:i,isPressed:d}=vt({node:l,isVirtualized:n$1,focusMode:t.focusMode,allowsArrowNavigation:t.allowsArrowNavigation},r,o),{isFocused:a$1,isFocusVisible:u,focusProps:c$1}=a$7(),s=useContext(Ht),b=false;if(s)b=s.resizingColumn===l.key;else if(process.env.NODE_ENV!=="production")for(let w in ["width","defaultWidth","minWidth","maxWidth"])w in l.props&&console.warn(`The ${w} prop on a <Column> only applies when a <Table> is wrapped in a <ResizableTableContainer>. If you aren't using column resizing, you can set the width of a column with CSS.`);let{hoverProps:f,isHovered:p$1}=a$9({isDisabled:!t.allowsSorting}),m=c({...t,id:void 0,children:l.rendered,defaultClassName:"react-aria-Column",values:{isHovered:p$1,isPressed:d,isFocused:a$1,isFocusVisible:u,allowsSorting:l.props.allowsSorting,sortDirection:r.sortDescriptor?.column===l.key?r.sortDescriptor.direction:void 0,isResizing:b,startResize:()=>{if(s)s.startResize(l.key),r.setKeyboardNavigationDisabled(true);else throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing")},sort:w=>{r.sort(l.key,w);}}}),T=m.style;s&&(T={...T,width:s.getColumnWidth(l.key)});let g=a$3(t,{global:true});return delete g.id,jsx(po,{...c$2(g,i,c$1,f),...m,style:T,ref:o,"data-hovered":p$1||void 0,"data-pressed":d||void 0,"data-focused":a$1||void 0,"data-focus-visible":u||void 0,"data-resizing":b||void 0,"data-allows-sorting":l.props.allowsSorting||void 0,"data-sort-direction":r.sortDescriptor?.column===l.key?r.sortDescriptor.direction:void 0,children:jsx(b$4,{values:[[Wl,{column:l,triggerRef:o}],[p,n]],children:m.children})})}),Wl=createContext(null);forwardRef(function(e,l){let o=useContext(Ht);if(!o)throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");let r=b$6(Kl,"react-aria-components"),{onResizeStart:n,onResize:i,onResizeEnd:d}=useContext(Ft),{column:a$1,triggerRef:u}=useContext(Wl),c$1=useRef(null),{resizerProps:s,inputProps:b,isResizing:f,isMouseResizing:p}=Mt({column:a$1,"aria-label":e["aria-label"]||r.format("tableResizer"),onResizeStart:n,onResize:i,onResizeEnd:d,triggerRef:u},o,c$1),{focusProps:m,isFocused:T,isFocusVisible:g}=a$7(),{hoverProps:w,isHovered:S}=a$9(e),C=o.getColumnMinWidth(a$1.key)>=o.getColumnWidth(a$1.key),D=o.getColumnMaxWidth(a$1.key)<=o.getColumnWidth(a$1.key),{direction:P}=b$2(),h$1="both";C?h$1=P==="rtl"?"right":"left":D?h$1=P==="rtl"?"left":"right":h$1="both";let R=a(l),[x,v]=useState("");useEffect(()=>{if(!R.current)return;let U=b$7(R.current).getComputedStyle(R.current);v(U.cursor);},[R,h$1]);let N=c({...e,defaultClassName:"react-aria-ColumnResizer",values:{isFocused:T,isFocusVisible:g,isResizing:f,isHovered:S,resizableDirection:h$1}}),j=a$3(e,{global:true});return jsxs(h.div,{ref:R,role:"presentation",...c$2(j,N,s,w),"data-hovered":S||void 0,"data-focused":T||void 0,"data-focus-visible":g||void 0,"data-resizing":f||void 0,"data-resizable-direction":h$1,children:[N.children,jsx("input",{ref:c$1,...c$2(b,m)}),f&&p&&ro.createPortal(jsx("div",{style:{position:"fixed",top:0,left:0,bottom:0,right:0,cursor:x},"data-testid":"cursor-overlay"}),a$b(R.current).body)]})});var Qe=class extends b$8{static type="tablebody"},bo=forwardRef(function(e,l){let{isVirtualized:o}=useContext(p);return o?jsx(h.div,{...e,ref:l}):jsx(h.tbody,{...e,ref:l})}),Ra=k(Qe,(t,e,l)=>{let o=useContext(Q),{isVirtualized:r$1}=useContext(p),n=o.collection,{CollectionBranch:i}=useContext(p),{dragAndDropHooks:d,dropState:a}=useContext(r),u$1=!!d?.useDroppableCollectionState&&!a?.isDisabled,c$1=u$1&&!!a&&(a.isDropTarget({type:"root"})??false),s=n.size===0,b={isDropTarget:c$1,isEmpty:s},f=c({...t,id:void 0,children:void 0,defaultClassName:"react-aria-TableBody",values:b}),p$1,m=n.columnCount;if(s&&t.renderEmptyState&&o){let w={},S={},C={};r$1?(S["aria-colspan"]=m,C={display:"contents"}):S.colSpan=m,p$1=jsx(Te,{role:"row",...w,style:C,children:jsx(Se,{role:"rowheader",...S,style:C,children:t.renderEmptyState(b)})});}let{rowGroupProps:T}=qe(),g=a$3(t,{global:true});return jsxs(bo,{...c$2(g,f,T),ref:e,"data-empty":s||void 0,children:[u$1&&jsx(So,{}),jsx(i,{collection:n,parent:l,renderDropIndicator:u(d,a)}),p$1]})});forwardRef(function(e,l){let{isVirtualized:o}=useContext(p);return o?jsx(h.div,{...e,ref:l}):jsx(h.tfoot,{...e,ref:l})});var Bl=createContext({isFocusVisibleWithinRow:false}),It=class extends a$h{static type="item";filter(e,l,o){let r=e.getChildren(this.key);for(let n of r)if(o(n.textValue,n)){let i=this.clone();return l.addDescendants(i,e),i}return null}},Te=forwardRef(function(e,l){let{isVirtualized:o}=useContext(p);return o?jsx(h.div,{...e,ref:l}):jsx(h.tr,{...e,ref:l})}),Da=k(It,(t,e,l)=>{let o=a(e),r$1=useContext(Q),{dragAndDropHooks:n,dragState:i,dropState:d}=useContext(r),{isVirtualized:a$1,CollectionBranch:u}=useContext(p),c$1=i&&!(i.isDisabled||i.selectionManager.isDisabled(l.key)),{rowProps:s,expandButtonProps:b,...f}=zt({node:l,shouldSelectOnPressUp:!!i,isVirtualized:a$1},r$1,o),{isFocused:p$1,isFocusVisible:m,focusProps:T}=a$7(),{isFocusVisible:g,focusProps:w$1}=a$7({within:true}),{hoverProps:S,isHovered:C}=a$9({isDisabled:!f.allowsSelection&&!f.hasAction&&!c$1,onHoverStart:t.onHoverStart,onHoverChange:t.onHoverChange,onHoverEnd:t.onHoverEnd}),{checkboxProps:D}=Dt({key:l.key},r$1),P;i&&n&&(P=n.useDraggableItem({key:l.key,hasDragButton:true},i,o));let h,R=useRef(null),{visuallyHiddenProps:x}=a$c();d&&n&&(h=n.useDropIndicator({target:{type:"item",key:l.key,dropPosition:"on"}},d,R));let v=useRef(null);useEffect(()=>{i&&!v.current&&process.env.NODE_ENV!=="production"&&console.warn('Draggable items in a Table must contain a <Button slot="drag"> element so that keyboard and screen reader users can drag them.');},[]);let N=i&&i.isDragging(l.key),{children:j,...U}=t,Z=t.hasChildItems||r$1.collection.getItem(l.lastChildKey)?.type!=="cell",_=Z&&r$1.expandedKeys.has(l.key),we=c({...U,id:void 0,defaultClassName:"react-aria-Row",defaultStyle:{"--table-row-level":l.level+1},values:{...f,state:r$1,isHovered:C,isFocused:p$1,isFocusVisible:m,selectionMode:r$1.selectionManager.selectionMode,selectionBehavior:r$1.selectionManager.selectionBehavior,isDragging:N,isDropTarget:h?.isDropTarget,isFocusVisibleWithin:g,id:l.key,hasChildItems:Z,isExpanded:_,level:l.level+1}}),te=a$3(t,{global:true});delete te.id,delete te.onClick;let oe=w(P,n,o);return jsxs(Fragment,{children:[h&&!h.isHidden&&jsx(Te,{role:"row",style:{height:0},children:jsx(Se,{role:"gridcell",colSpan:r$1.collection.columnCount,style:{padding:0},children:jsx("div",{role:"button",...x,...h.dropIndicatorProps,ref:R})})}),jsx(Te,{...c$2(te,we,s,T,S,oe.itemProps,w$1),ref:o,"data-disabled":f.isDisabled||void 0,"data-selected":f.isSelected||void 0,"data-hovered":C||void 0,"data-focused":f.isFocused||void 0,"data-focus-visible":m||void 0,"data-pressed":f.isPressed||void 0,"data-dragging":N||void 0,"data-drop-target":h?.isDropTarget||void 0,"data-selection-mode":r$1.selectionManager.selectionMode==="none"?void 0:r$1.selectionManager.selectionMode,"data-focus-visible-within":g||void 0,"data-expanded":_||void 0,"data-has-child-items":Z||void 0,"data-level":l.level+1,children:jsx(b$4,{values:[[a$a,{slots:{[a$e]:{},selection:D}}],[b$5,{slots:{[a$e]:{},selection:D}}],[a$d,{slots:{[a$e]:{},chevron:b,drag:{...oe.dragButtonProps,ref:v}}}],[y,{isSelected:f.isSelected}],[Bl,{isFocusVisibleWithinRow:g}]],children:jsx(u,{collection:r$1.collection,parent:l})})})]})},t=>{if(t.id==null&&typeof t.children=="function")throw new Error("No id detected for the Row element. The Row element requires a id to be provided to it when the cells are rendered dynamically.");let e=[t.value].concat(t.dependencies);return jsx(l,{dependencies:e,items:t.columns,idScope:t.id,children:t.children})}),At=class extends a$h{static type="cell"},Se=forwardRef(function(e,l){let{isVirtualized:o}=useContext(p);return o?jsx(h.div,{...e,ref:l}):jsx(h.td,{...e,ref:l})}),Pa=j(At,(t,e,l)=>{let o=a(e),r$1=useContext(Q),{dragState:n$1}=useContext(r),{isVirtualized:i}=useContext(p);l.column=r$1.collection.columns[l.index];let{gridCellProps:d,isPressed:a$1}=Kt({node:l,shouldSelectOnPressUp:!!n$1,isVirtualized:i,focusMode:t.focusMode,allowsArrowNavigation:t.allowsArrowNavigation},r$1,o),{isFocused:u,isFocusVisible:c$1,focusProps:s}=a$7(),{hoverProps:b,isHovered:f}=a$9({}),{isFocusVisibleWithinRow:p$1}=useContext(Bl),m=l.parentKey!=null?r$1.selectionManager.isSelected(l.parentKey):false,T=l.colIndex||l.index,g=r$1.collection.getItem(l.parentKey),w=g.props.hasChildItems||r$1.collection.getItem(g.lastChildKey)?.type!=="cell",S=w&&r$1.expandedKeys.has(l.parentKey),C=r$1.selectionManager.isDisabled(l.parentKey),D=c({...t,id:void 0,defaultClassName:"react-aria-Cell",values:{isFocused:u,isFocusVisible:c$1,isFocusVisibleWithinRow:p$1,isPressed:a$1,isHovered:f,isSelected:m,id:l.key,columnIndex:T,hasChildItems:w,isExpanded:S,isDisabled:C,level:g.level+1,isTreeColumn:l.column.key===r$1.treeColumn}}),P=a$3(t,{global:true});return delete P.id,jsx(Se,{...c$2(P,D,d,s,b),ref:o,"data-focused":u||void 0,"data-focus-visible":c$1||void 0,"data-focus-visible-within-row":p$1||void 0,"data-pressed":a$1||void 0,"data-selected":m||void 0,"data-column-index":T,"data-expanded":S||void 0,"data-has-child-items":w||void 0,"data-level":g.level+1,"data-tree-column":l.column.key===r$1.treeColumn||void 0,"data-disabled":C||void 0,children:jsx(p.Provider,{value:n,children:D.children})})});function fo(t,e){e=a(e);let{dragAndDropHooks:l,dropState:o}=useContext(r),r$1=useRef(null),{dropIndicatorProps:n,isHidden:i,isDropTarget:d}=l.useDropIndicator(t,o,r$1);if(i)return null;let a$1=o&&t.target.type==="item"?(o.collection.getItem(t.target.key)?.level||0)+1:1;return jsx(To,{...t,dropIndicatorProps:n,isDropTarget:d,buttonRef:r$1,level:a$1,ref:e})}var yo=forwardRef(function(e,l){let{isVirtualized:o}=useContext(p);return o?jsx(h.div,{...e,ref:l}):jsx(h.tr,{...e,ref:l})}),ho=forwardRef(function(e,l){let{isVirtualized:o}=useContext(p);return o?jsx(h.div,{...e,ref:l}):jsx(h.td,{...e,ref:l})});function go(t,e){let{dropIndicatorProps:l,isDropTarget:o,buttonRef:r,level:n,...i}=t,d=useContext(Q),{visuallyHiddenProps:a}=a$c(),u=c({...i,defaultClassName:"react-aria-DropIndicator",defaultStyle:{"--table-row-level":n+1},values:{isDropTarget:o}});return jsx(yo,{...a$3(t,{global:true}),...u,role:"row",ref:e,"data-drop-target":o||void 0,"aria-level":n,children:jsxs(ho,{role:"gridcell",colSpan:d.collection.columnCount,style:{padding:0},children:[jsx("div",{...a,role:"button",...l,ref:r}),u.children]})})}var To=forwardRef(go);function So(){let t=useContext(Q),{dragAndDropHooks:e,dropState:l}=useContext(r),o=useRef(null),{dropIndicatorProps:r$1}=e.useDropIndicator({target:{type:"root"}},l,o),n=l.isDropTarget({type:"root"}),{visuallyHiddenProps:i}=a$c();return !n&&r$1["aria-hidden"]?null:jsx(Te,{role:"row","aria-hidden":r$1["aria-hidden"],style:{height:0},children:jsx(Se,{role:"gridcell",colSpan:t.collection.columnCount,style:{padding:0},children:jsx("div",{role:"button",...i,...r$1,ref:o})})})}var Ma=j(d,function(e,l,o){let r=useContext(Q),{isVirtualized:n}=useContext(p),{isLoading:i,onLoadMore:d,scrollOffset:a,...u}=e,c$1=r.collection.columns.length,s=useRef(null),b=useMemo(()=>({onLoadMore:d,collection:r?.collection,sentinelRef:s,scrollOffset:a}),[d,a,r?.collection]);k$1(b,s);let f=c({...u,id:void 0,children:o.rendered,defaultClassName:"react-aria-TableLoadingIndicator",defaultStyle:{"--table-row-level":o.level+1},values:void 0}),p$1={},m={},T={};return n?(m["aria-colspan"]=c$1,T={display:"contents"}):m.colSpan=c$1,jsxs(Fragment,{children:[jsx(Te,{style:{height:0},inert:l$1(true),children:jsx(Se,{style:{padding:0,border:0},children:jsx("div",{"data-testid":"loadMoreSentinel",ref:s,style:{position:"relative",height:1,width:1}})})}),i&&f.children&&jsx(Te,{...c$2(a$3(e,{global:true}),p$1),...f,role:"row",ref:l,"aria-level":o.level+1,"data-level":o.level+1,children:jsx(Se,{role:"rowheader",...m,style:T,children:f.children})})]})});export{Ue as a,Ht as b,xa as c,ka as d,va as e,Ra as f,Da as g,Pa as h,Ma as i};
|
|
10
|
+
var $e=class{keyMap=new Map;columnCount;rows;constructor(e){this.keyMap=new Map,this.columnCount=e?.columnCount,this.rows=[];let l=n=>{let i=this.keyMap.get(n.key);e.visitNode&&(n=e.visitNode(n)),this.keyMap.set(n.key,n);let d=new Set,a=null,u=false;if(n.type==="item"){for(let c of n.childNodes)if(c.props?.colSpan!==void 0){u=true;break}}for(let c of n.childNodes)c.type==="cell"&&u&&(c.colspan=c.props?.colSpan,c.colSpan=c.props?.colSpan,c.colIndex=a?(a.colIndex??a.index)+(a.colSpan??1):c.index),c.type==="cell"&&c.parentKey==null&&(c.parentKey=n.key),d.add(c.key),a?(a.nextKey=c.key,c.prevKey=a.key):c.prevKey=null,l(c),a=c;if(a&&(a.nextKey=null),i)for(let c of i.childNodes)d.has(c.key)||o(c);},o=n=>{this.keyMap.delete(n.key);for(let i of n.childNodes)this.keyMap.get(i.key)===i&&o(i);},r=null;for(let[n,i]of e.items.entries()){let d={...i,level:i.level??0,key:i.key??"row-"+n,type:i.type??"row",value:i.value??null,hasChildNodes:true,childNodes:[...i.childNodes],rendered:i.rendered,textValue:i.textValue??"",index:i.index??n};r?(r.nextKey=d.key,d.prevKey=r.key):d.prevKey=null,this.rows.push(d),l(d),r=d;}r&&(r.nextKey=null);}*[Symbol.iterator](){yield*[...this.rows];}get size(){return [...this.rows].length}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let l=this.keyMap.get(e);return l?l.prevKey??null:null}getKeyAfter(e){let l=this.keyMap.get(e);return l?l.nextKey??null:null}getFirstKey(){return [...this.rows][0]?.key}getLastKey(){let e=[...this.rows];return e[e.length-1]?.key}getItem(e){return this.keyMap.get(e)??null}at(e){let l=[...this.getKeys()];return this.getItem(l[e])}getChildren(e){return this.keyMap.get(e)?.childNodes||[]}};var Rl="row-header-column-"+Math.random().toString(36).slice(2),ut="row-header-column-"+Math.random().toString(36).slice(2);for(;Rl===ut;)ut="row-header-column-"+Math.random().toString(36).slice(2);function je(t,e){if(e.length===0)return [];let l=[],o=new Map;for(let a of e){let u=a.parentKey,c=[a];for(;u!=null;){let s=t.get(u);if(!s)break;if(o.has(s)){s.colSpan??=0,s.colSpan++,s.colspan=s.colSpan;let{column:b,index:f}=o.get(s);if(f>c.length)break;for(let p=f;p<c.length;p++)b.splice(p,0,null);for(let p=c.length;p<b.length;p++)b[p]&&o.has(b[p])&&(o.get(b[p]).index=p);}else s.colSpan=1,s.colspan=1,c.push(s),o.set(s,{column:c,index:c.length-1});u=s.parentKey;}l.push(c),a.index=l.length-1;}let r=Math.max(...l.map(a=>a.length)),n=Array(r).fill(0).map(()=>[]),i=0;for(let a of l){let u=r-1;for(let c of a){if(c){let s=n[u],b=s.reduce((f,p)=>f+(p.colSpan??1),0);if(b<i){let f={type:"placeholder",key:"placeholder-"+c.key,colspan:i-b,colSpan:i-b,index:b,value:null,rendered:null,level:u,hasChildNodes:false,childNodes:[],textValue:""};s.length>0&&(s[s.length-1].nextKey=f.key,f.prevKey=s[s.length-1].key),s.push(f);}s.length>0&&(s[s.length-1].nextKey=c.key,c.prevKey=s[s.length-1].key),c.level=u,c.colIndex=i,s.push(c);}u--;}i++;}let d=0;for(let a of n){let u=a.reduce((c,s)=>c+(s.colSpan??1),0);if(u<e.length){let c={type:"placeholder",key:"placeholder-"+a[a.length-1].key,colSpan:e.length-u,colspan:e.length-u,index:u,value:null,rendered:null,level:d,hasChildNodes:false,childNodes:[],textValue:"",prevKey:a[a.length-1].key};a.push(c);}d++;}return n.map((a,u)=>({type:"headerrow",key:"headerrow-"+u,index:u,value:null,rendered:null,level:0,hasChildNodes:true,childNodes:a,textValue:""}))}var Re=class extends $e{headerRows;columns;rowHeaderColumnKeys;body;_size=0;constructor(e,l,o){let r=new Set,n=null,i=[];if(o?.showSelectionCheckboxes){let s={type:"column",key:Rl,value:null,textValue:"",level:0,index:o?.showDragButtons?1:0,hasChildNodes:false,rendered:null,childNodes:[],props:{isSelectionCell:true}};i.unshift(s);}if(o?.showDragButtons){let s={type:"column",key:ut,value:null,textValue:"",level:0,index:0,hasChildNodes:false,rendered:null,childNodes:[],props:{isDragButtonCell:true}};i.unshift(s);}let d=[],a=new Map,u=s=>{switch(s.type){case "body":n=s;break;case "column":a.set(s.key,s),s.hasChildNodes||(i.push(s),s.props.isRowHeader&&r.add(s.key));break;case "item":d.push(s);return}for(let b of s.childNodes)u(b);};for(let s of e)u(s);let c=je(a,i);if(c.forEach((s,b)=>d.splice(b,0,s)),super({columnCount:i.length,items:d,visitNode:s=>(s.column=i[s.index],s)}),this.columns=i,this.rowHeaderColumnKeys=r,this.body=n,this.headerRows=c,this._size=[...n.childNodes].length,this.rowHeaderColumnKeys.size===0){let s=this.columns.find(b=>!b.props?.isDragButtonCell&&!b.props?.isSelectionCell);s&&this.rowHeaderColumnKeys.add(s.key);}}*[Symbol.iterator](){yield*this.body.childNodes;}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){return this.keyMap.get(e)?.prevKey??null}getKeyAfter(e){return this.keyMap.get(e)?.nextKey??null}getFirstKey(){return c$6(this.body.childNodes)?.key??null}getLastKey(){return e$3(this.body.childNodes)?.key??null}getItem(e){return e===this.body.key?this.body:this.keyMap.get(e)??null}at(e){let l=[...this.getKeys()];return this.getItem(l[e])}getChildren(e){if(e===this.body.key)return this.body.childNodes;let l=this.getItem(e);return l?.type==="item"?[...l.childNodes].filter(o=>o.type==="cell"):super.getChildren(e)}getTextValue(e){let l=this.getItem(e);if(!l)return "";if(l.textValue)return l.textValue;let o=this.rowHeaderColumnKeys;if(o){let r=[];for(let n of l.childNodes){let i=this.columns[n.index];if(o.has(i.key)&&n.textValue&&r.push(n.textValue),r.length===o.size)break}return r.join(" ")}return ""}};var Kl={"ar-AE":{colorSwatchPicker:"\u062A\u063A\u064A\u064A\u0631\u0627\u062A \u0627\u0644\u0623\u0644\u0648\u0627\u0646",dropzoneLabel:"DropZone",selectPlaceholder:"\u062D\u062F\u062F \u0639\u0646\u0635\u0631\u064B\u0627",tableResizer:"\u0623\u062F\u0627\u0629 \u062A\u063A\u064A\u064A\u0631 \u0627\u0644\u062D\u062C\u0645"},"bg-BG":{colorSwatchPicker:"\u0426\u0432\u0435\u0442\u043E\u0432\u0438 \u043C\u043E\u0441\u0442\u0440\u0438",dropzoneLabel:"DropZone",selectPlaceholder:"\u0418\u0437\u0431\u0435\u0440\u0435\u0442\u0435 \u043F\u0440\u0435\u0434\u043C\u0435\u0442",tableResizer:"\u041F\u0440\u0435\u043E\u0440\u0430\u0437\u043C\u0435\u0440\u0438\u0442\u0435\u043B"},"cs-CZ":{colorSwatchPicker:"Vzorky barev",dropzoneLabel:"M\xEDsto pro p\u0159eta\u017Een\xED",selectPlaceholder:"Vyberte polo\u017Eku",tableResizer:"Zm\u011Bna velikosti"},"da-DK":{colorSwatchPicker:"Farvepr\xF8ver",dropzoneLabel:"DropZone",selectPlaceholder:"V\xE6lg et element",tableResizer:"St\xF8rrelses\xE6ndring"},"de-DE":{colorSwatchPicker:"Farbfelder",dropzoneLabel:"Ablegebereich",selectPlaceholder:"Element w\xE4hlen",tableResizer:"Gr\xF6\xDFenanpassung"},"el-GR":{colorSwatchPicker:"\u03A7\u03C1\u03C9\u03BC\u03B1\u03C4\u03B9\u03BA\u03AC \u03B4\u03B5\u03AF\u03B3\u03BC\u03B1\u03C4\u03B1",dropzoneLabel:"DropZone",selectPlaceholder:"\u0395\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \u03AD\u03BD\u03B1 \u03B1\u03BD\u03C4\u03B9\u03BA\u03B5\u03AF\u03BC\u03B5\u03BD\u03BF",tableResizer:"\u0391\u03BB\u03BB\u03B1\u03B3\u03AE \u03BC\u03B5\u03B3\u03AD\u03B8\u03BF\u03C5\u03C2"},"en-US":{selectPlaceholder:"Select an item",tableResizer:"Resizer",dropzoneLabel:"DropZone",colorSwatchPicker:"Color swatches"},"es-ES":{colorSwatchPicker:"Muestras de colores",dropzoneLabel:"DropZone",selectPlaceholder:"Seleccionar un art\xEDculo",tableResizer:"Cambiador de tama\xF1o"},"et-EE":{colorSwatchPicker:"V\xE4rvin\xE4idised",dropzoneLabel:"DropZone",selectPlaceholder:"Valige \xFCksus",tableResizer:"Suuruse muutja"},"fi-FI":{colorSwatchPicker:"V\xE4rimallit",dropzoneLabel:"DropZone",selectPlaceholder:"Valitse kohde",tableResizer:"Koon muuttaja"},"fr-FR":{colorSwatchPicker:"\xC9chantillons de couleurs",dropzoneLabel:"DropZone",selectPlaceholder:"S\xE9lectionner un \xE9l\xE9ment",tableResizer:"Redimensionneur"},"he-IL":{colorSwatchPicker:"\u05D3\u05D5\u05D2\u05DE\u05D9\u05D5\u05EA \u05E6\u05D1\u05E2",dropzoneLabel:"DropZone",selectPlaceholder:"\u05D1\u05D7\u05E8 \u05E4\u05E8\u05D9\u05D8",tableResizer:"\u05E9\u05D9\u05E0\u05D5\u05D9 \u05D2\u05D5\u05D3\u05DC"},"hr-HR":{colorSwatchPicker:"Uzorci boja",dropzoneLabel:"Zona spu\u0161tanja",selectPlaceholder:"Odaberite stavku",tableResizer:"Promjena veli\u010Dine"},"hu-HU":{colorSwatchPicker:"Sz\xEDnt\xE1rak",dropzoneLabel:"DropZone",selectPlaceholder:"V\xE1lasszon ki egy elemet",tableResizer:"\xC1tm\xE9retez\u0151"},"it-IT":{colorSwatchPicker:"Campioni di colore",dropzoneLabel:"Zona di rilascio",selectPlaceholder:"Seleziona un elemento",tableResizer:"Ridimensionamento"},"ja-JP":{colorSwatchPicker:"\u30AB\u30E9\u30FC\u30B9\u30A6\u30A9\u30C3\u30C1",dropzoneLabel:"\u30C9\u30ED\u30C3\u30D7\u30BE\u30FC\u30F3",selectPlaceholder:"\u9805\u76EE\u3092\u9078\u629E",tableResizer:"\u30B5\u30A4\u30BA\u5909\u66F4\u30C4\u30FC\u30EB"},"ko-KR":{colorSwatchPicker:"\uC0C9\uC0C1 \uACAC\uBCF8",dropzoneLabel:"\uB4DC\uB86D \uC601\uC5ED",selectPlaceholder:"\uD56D\uBAA9 \uC120\uD0DD",tableResizer:"\uD06C\uAE30 \uC870\uC815\uAE30"},"lt-LT":{colorSwatchPicker:"Spalv\u0173 pavyzd\u017Eiai",dropzoneLabel:"\u201EDropZone\u201C",selectPlaceholder:"Pasirinkite element\u0105",tableResizer:"Dyd\u017Eio keitiklis"},"lv-LV":{colorSwatchPicker:"Kr\u0101su paraugi",dropzoneLabel:"DropZone",selectPlaceholder:"Izv\u0113l\u0113ties vienumu",tableResizer:"Izm\u0113ra main\u012Bt\u0101js"},"nb-NO":{colorSwatchPicker:"Fargekart",dropzoneLabel:"Droppsone",selectPlaceholder:"Velg et element",tableResizer:"St\xF8rrelsesendrer"},"nl-NL":{colorSwatchPicker:"kleurstalen",dropzoneLabel:"DropZone",selectPlaceholder:"Selecteer een item",tableResizer:"Resizer"},"pl-PL":{colorSwatchPicker:"Pr\xF3bki kolor\xF3w",dropzoneLabel:"Strefa upuszczania",selectPlaceholder:"Wybierz element",tableResizer:"Zmiana rozmiaru"},"pt-BR":{colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"},"pt-PT":{colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"},"ro-RO":{colorSwatchPicker:"Specimene de culoare",dropzoneLabel:"Zon\u0103 de plasare",selectPlaceholder:"Selecta\u021Bi un element",tableResizer:"Instrument de redimensionare"},"ru-RU":{colorSwatchPicker:"\u0426\u0432\u0435\u0442\u043E\u0432\u044B\u0435 \u043E\u0431\u0440\u0430\u0437\u0446\u044B",dropzoneLabel:"DropZone",selectPlaceholder:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u044D\u043B\u0435\u043C\u0435\u043D\u0442",tableResizer:"\u0421\u0440\u0435\u0434\u0441\u0442\u0432\u043E \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u0440\u0430\u0437\u043C\u0435\u0440\u0430"},"sk-SK":{colorSwatchPicker:"Vzorkovn\xEDky farieb",dropzoneLabel:"DropZone",selectPlaceholder:"Vyberte polo\u017Eku",tableResizer:"N\xE1stroj na zmenu ve\u013Ekosti"},"sl-SI":{colorSwatchPicker:"Barvne palete",dropzoneLabel:"DropZone",selectPlaceholder:"Izberite element",tableResizer:"Spreminjanje velikosti"},"sr-SP":{colorSwatchPicker:"Uzorci boje",dropzoneLabel:"DropZone",selectPlaceholder:"Izaberite stavku",tableResizer:"Promena veli\u010Dine"},"sv-SE":{colorSwatchPicker:"F\xE4rgrutor",dropzoneLabel:"DropZone",selectPlaceholder:"V\xE4lj en artikel",tableResizer:"Storleks\xE4ndrare"},"tr-TR":{colorSwatchPicker:"Renk \xF6rnekleri",dropzoneLabel:"B\u0131rakma B\xF6lgesi",selectPlaceholder:"Bir \xF6\u011Fe se\xE7in",tableResizer:"Yeniden boyutland\u0131r\u0131c\u0131"},"uk-UA":{colorSwatchPicker:"\u0417\u0440\u0430\u0437\u043A\u0438 \u043A\u043E\u043B\u044C\u043E\u0440\u0456\u0432",dropzoneLabel:"DropZone",selectPlaceholder:"\u0412\u0438\u0431\u0435\u0440\u0456\u0442\u044C \u0435\u043B\u0435\u043C\u0435\u043D\u0442",tableResizer:"\u0417\u0430\u0441\u0456\u0431 \u0437\u043C\u0456\u043D\u0435\u043D\u043D\u044F \u0440\u043E\u0437\u043C\u0456\u0440\u0443"},"zh-CN":{colorSwatchPicker:"\u989C\u8272\u8272\u677F",dropzoneLabel:"\u653E\u7F6E\u533A\u57DF",selectPlaceholder:"\u9009\u62E9\u4E00\u4E2A\u9879\u76EE",tableResizer:"\u5C3A\u5BF8\u8C03\u6574\u5668"},"zh-TW":{colorSwatchPicker:"\u8272\u7968",dropzoneLabel:"\u653E\u7F6E\u5340",selectPlaceholder:"\u9078\u53D6\u9805\u76EE",tableResizer:"\u5927\u5C0F\u8ABF\u6574\u5668"}};function jl(t){return t!=null&&(!isNaN(t)||String(t).match(/^(\d+)(?=%$)/)!==null)}function Ul(t){if(!t||typeof t=="number")return 1;let e=t.match(/^(.+)(?=fr$)/);return e?parseFloat(e[0]):(process.env.NODE_ENV!=="production"&&console.warn(`width: ${t} is not a supported format, width should be a number (ex. 150), percentage (ex. '50%') or fr unit (ex. '2fr')`,"defaulting to '1fr'"),1)}function mt(t,e){if(typeof t=="string"){let l=t.match(/^(\d+)(?=%$)/);if(!l)throw new Error("Only percentages or numbers are supported for static column widths");return e*(parseFloat(l[0])/100)}return t}function pt(t,e){return t!=null?mt(t,e):Number.MAX_SAFE_INTEGER}function bt(t,e){return t!=null?mt(t,e):0}function Dl(t,e,l,o,r){let n=t,i=Math.floor(t),d=t-i>0;t=i;let a=false,u=e.map((s,b)=>{let f=l.get(s.key)!=null?l.get(s.key)??"1fr":s.width??s.defaultWidth??o?.(b)??"1fr",p=false,m=0,T=0,g=0;jl(f)?(m=mt(f,t),p=true):(T=Ul(f),T<=0&&(p=true));let w=bt(s.minWidth??r?.(b)??0,t),S=pt(s.maxWidth,t),C=Math.max(w,Math.min(m,S));return p?g=C:m>C&&(p=true,g=C),p||(a=true),{frozen:p,baseSize:m,hypotheticalMainSize:C,min:w,max:S,flex:T,targetMainSize:g,violation:0}});for(;a;){let s=0,b=0;u.forEach(m=>{m.frozen?s+=m.targetMainSize:(s+=m.baseSize,b+=m.flex);});let f=t-s;f>0&&u.forEach(m=>{if(!m.frozen){let T=m.flex/b;m.targetMainSize=m.baseSize+T*f;}});let p=0;u.forEach(m=>{if(m.violation=0,!m.frozen){let{min:T,max:g,targetMainSize:w}=m;m.targetMainSize=Math.max(T,Math.min(w,g)),m.violation=m.targetMainSize-w,p+=m.violation;}}),a=false,u.forEach(m=>{p===0||Math.sign(p)===Math.sign(m.violation)?m.frozen=true:m.frozen||(a=true);});}let c=Zl(u);if(d&&c.length>0){let s=n.toString().split(".")[1],b=c[c.length-1].toString();c[c.length-1]=+(b+"."+s);}return c}function Zl(t){let e=0,l=0,o=[];return t.forEach(function(r){let n=r.targetMainSize,i=Math.round(n+e)-l;e+=n,l+=i,o.push(i);}),o}var Ue=class{getDefaultWidth;getDefaultMinWidth;columnWidths=new Map;columnMinWidths=new Map;columnMaxWidths=new Map;constructor(e){this.getDefaultWidth=e?.getDefaultWidth??(()=>"1fr"),this.getDefaultMinWidth=e?.getDefaultMinWidth??(()=>75);}splitColumnsIntoControlledAndUncontrolled(e){return e.reduce((l,o)=>(o.props.width!=null?l[0].set(o.key,o):l[1].set(o.key,o),l),[new Map,new Map])}recombineColumns(e,l,o,r){return new Map(e.map(n=>o.has(n.key)?[n.key,l.get(n.key)]:[n.key,r.get(n.key).props.width]))}getInitialUncontrolledWidths(e){return new Map(Array.from(e).map(([l,o])=>[l,o.props.defaultWidth??this.getDefaultWidth?.(o)??"1fr"]))}getColumnWidth(e){return this.columnWidths.get(e)??0}getColumnMinWidth(e){return this.columnMinWidths.get(e)??0}getColumnMaxWidth(e){return this.columnMaxWidths.get(e)??0}resizeColumnWidth(e,l,o,r){let n=this.columnWidths,i=true,d=new Map;return r=Math.max(this.getColumnMinWidth(o),Math.min(this.getColumnMaxWidth(o),Math.floor(r))),e.columns.forEach(a=>{a.key===o?(d.set(a.key,r),i=false):i?d.set(a.key,n.get(a.key)??0):d.set(a.key,a.props.width??l.get(a.key));}),d}buildColumnWidths(e,l,o){return this.columnWidths=new Map,this.columnMinWidths=new Map,this.columnMaxWidths=new Map,Dl(e,l.columns.map(n=>({...n.props,key:n.key})),o,n=>this.getDefaultWidth(l.columns[n]),n=>this.getDefaultMinWidth(l.columns[n])).forEach((n,i)=>{let d=l.columns[i].key,a=l.columns[i];this.columnWidths.set(d,n),this.columnMinWidths.set(d,bt(a.props.minWidth??this.getDefaultMinWidth(a),e)),this.columnMaxWidths.set(d,pt(a.props.maxWidth,e));}),this.columnWidths}};function ht(t,e){let{getDefaultWidth:l,getDefaultMinWidth:o,tableWidth:r=0}=t,[n,i]=useState(null),d=useMemo(()=>new Ue({getDefaultWidth:l,getDefaultMinWidth:o}),[l,o]),[a,u]=useMemo(()=>d.splitColumnsIntoControlledAndUncontrolled(e.collection.columns),[e.collection.columns,d]),[c,s]=useState(()=>d.getInitialUncontrolledWidths(u)),[b,f]=useState(e.collection.columns);if(e.collection.columns!==b){if(e.collection.columns.length!==b.length||e.collection.columns.some((S,C)=>S.key!==b[C].key)){let S=d.getInitialUncontrolledWidths(u);s(S);}f(e.collection.columns);}let p=useMemo(()=>d.recombineColumns(e.collection.columns,c,u,a),[e.collection.columns,c,u,a,d]),m=useCallback(S=>{i(S);},[i]),T=useCallback((S,C)=>{let D=d.resizeColumnWidth(e.collection,c,S,C),P=new Map(Array.from(u).map(([h])=>[h,D.get(h)]));return P.set(S,C),s(P),D},[u,s,d,e.collection,c]),g=useCallback(()=>{i(null);},[i]),w=useMemo(()=>d.buildColumnWidths(r,e.collection,p),[r,e.collection,p,d]);return useMemo(()=>({resizingColumn:n,updateResizedColumns:T,startResize:m,endResize:g,getColumnWidth:S=>d.getColumnWidth(S),getColumnMinWidth:S=>d.getColumnMinWidth(S),getColumnMaxWidth:S=>d.getColumnMaxWidth(S),tableState:e,columnWidths:w}),[d,w,n,T,m,g,e])}function Ml(t){let{collection:e,focusMode:l}=t,o=t.UNSAFE_selectionState||a$4(t),r=useMemo(()=>t.disabledKeys?new Set(t.disabledKeys):new Set,[t.disabledKeys]),n=o.setFocusedKey;o.setFocusedKey=(a,u)=>{if(l==="cell"&&a!=null){let c=e.getItem(a);if(c?.type==="item"){let s=b$a(c,e);u==="last"?a=e$3(s)?.key??null:a=c$6(s)?.key??null;}}n(a,u);};let i=useMemo(()=>new f$2(e,o),[e,o]),d=useRef(null);return useEffect(()=>{if(o.focusedKey!=null&&d.current&&!e.getItem(o.focusedKey)){let a=d.current.getItem(o.focusedKey),u=a?.parentKey!=null&&(a.type==="cell"||a.type==="rowheader"||a.type==="column")?d.current.getItem(a.parentKey):a;if(!u){o.setFocusedKey(null);return}let c=d.current.rows,s=e.rows,b=c.length-s.length,f=Math.min(b>1?Math.max(u.index-b+1,0):u.index,s.length-1),p=null;for(let m=Math.max(0,f);m<s.length;m++)if(!i.isDisabled(s[m].key)&&s[m].type!=="headerrow"){p=s[m];break}if(p===null){for(let m=f-1;m>=0;m--)if(!i.isDisabled(s[m].key)&&s[m].type!=="headerrow"){p=s[m];break}}if(p){let m=p.hasChildNodes?[...b$a(p,e)]:[],T=p.hasChildNodes&&u!==a&&a&&a.index<m.length?m[a.index].key:p.key;o.setFocusedKey(T);}else o.setFocusedKey(null);}d.current=e;},[e,i,o,o.focusedKey]),{collection:e,disabledKeys:r,isKeyboardNavigationDisabled:false,selectionManager:i}}var Jl={ascending:"descending",descending:"ascending"};function gt(t){let[e,l]=useState(false),{selectionMode:o="none",showSelectionCheckboxes:r,showDragButtons:n,treeColumn:i=null}=t,d=useMemo(()=>({showSelectionCheckboxes:r&&o!=="none",showDragButtons:n,selectionMode:o,columns:[]}),[t.children,r,o,n]),a=g$2(t,useCallback(f=>new Re(f,null,d),[d]),d),{disabledKeys:u,selectionManager:c}=Ml({...t,collection:a,disabledBehavior:t.disabledBehavior||"selection"}),[s,b]=a$5(t.expandedKeys?new Set(t.expandedKeys):void 0,t.defaultExpandedKeys?new Set(t.defaultExpandedKeys):new Set,t.onExpandedChange);return {collection:a,disabledKeys:u,selectionManager:c,showSelectionCheckboxes:t.showSelectionCheckboxes||false,sortDescriptor:t.sortDescriptor??null,isKeyboardNavigationDisabled:a.size===0||e,setKeyboardNavigationDisabled:l,sort(f,p){t.onSortChange?.({column:f,direction:p??(t.sortDescriptor?.column===f?Jl[t.sortDescriptor.direction]:"ascending")});},expandedKeys:s,toggleKey(f){b(p=>{let m=new Set(p);return m.has(f)?m.delete(f):m.add(f),m});},treeColumn:i}}function Tt(t,e){let l=useMemo(()=>e?t.collection.filter(e):t.collection,[t.collection,e]),o=t.selectionManager.withCollection(l);return {...t,collection:l,selectionManager:o}}var he=class{collection;disabledKeys;disabledBehavior;direction;collator;layoutDelegate;focusMode;constructor(e){if(this.collection=e.collection,this.disabledKeys=e.disabledKeys,this.disabledBehavior=e.disabledBehavior||"all",this.direction=e.direction,this.collator=e.collator,!e.layout&&!e.ref)throw new Error("Either a layout or a ref must be specified.");this.layoutDelegate=e.layoutDelegate||(e.layout?new St(e.layout):new a$o(e.ref)),this.focusMode=e.focusMode??"row";}isCell(e){return e.type==="cell"}isRow(e){return e.type==="row"||e.type==="item"}isDisabled(e){return this.disabledBehavior==="all"&&(e.props?.isDisabled||this.disabledKeys.has(e.key))&&e.props?.disabledBehavior!=="selection"}findPreviousKey(e,l,o=false){let r=e!=null?this.collection.getKeyBefore(e):this.collection.getLastKey();for(;r!=null;){let n=this.collection.getItem(r);if(!n)return null;if((o||!this.isDisabled(n))&&(!l||l(n)))return r;r=this.collection.getKeyBefore(r);}return null}findNextKey(e,l,o=false){let r=e!=null?this.collection.getKeyAfter(e):this.collection.getFirstKey();for(;r!=null;){let n=this.collection.getItem(r);if(!n)return null;if((o||!this.isDisabled(n))&&(!l||l(n)))return r;if(r=this.collection.getKeyAfter(r),r==null)return null}return null}getKeyForItemInRowByIndex(e,l=0){if(l<0)return null;let o=this.collection.getItem(e);if(!o)return null;let r=0;for(let n of b$a(o,this.collection)){if(n.colSpan&&n.colSpan+r>l||(n.colSpan&&(r=r+n.colSpan-1),r===l))return n.key??null;r++;}return null}getKeyBelow(e,l){let o=e,r=this.collection.getItem(o);if(!r||(this.isCell(r)&&(o=r.parentKey??null),o==null))return null;if(o=this.findNextKey(o,n=>n.type==="item",l?.includeDisabled),o!=null){if(this.isCell(r)){let n=r.colIndex?r.colIndex:r.index;return this.getKeyForItemInRowByIndex(o,n)}if(this.focusMode==="row")return o}return null}getKeyAbove(e,l){let o=e,r=this.collection.getItem(o);if(!r||(this.isCell(r)&&(o=r.parentKey??null),o==null))return null;if(o=this.findPreviousKey(o,n=>n.type==="item",l?.includeDisabled),o!=null){if(this.isCell(r)){let n=r.colIndex?r.colIndex:r.index;return this.getKeyForItemInRowByIndex(o,n)}if(this.focusMode==="row")return o}return null}getKeyRightOf(e){let l=this.collection.getItem(e);if(!l)return null;if(this.isRow(l)){let o=b$a(l,this.collection);return (this.direction==="rtl"?e$3(o)?.key:c$6(o)?.key)??null}if(this.isCell(l)&&l.parentKey!=null){let o=this.collection.getItem(l.parentKey);if(!o)return null;let r=b$a(o,this.collection),n=(this.direction==="rtl"?d$5(r,l.index-1):d$5(r,l.index+1))??null;return n?n.key??null:this.focusMode==="row"?l.parentKey??null:(this.direction==="rtl"?this.getFirstKey(e):this.getLastKey(e))??null}return null}getKeyLeftOf(e){let l=this.collection.getItem(e);if(!l)return null;if(this.isRow(l)){let o=b$a(l,this.collection);return (this.direction==="rtl"?c$6(o)?.key:e$3(o)?.key)??null}if(this.isCell(l)&&l.parentKey!=null){let o=this.collection.getItem(l.parentKey);if(!o)return null;let r=b$a(o,this.collection),n=(this.direction==="rtl"?d$5(r,l.index+1):d$5(r,l.index-1))??null;return n?n.key??null:this.focusMode==="row"?l.parentKey??null:(this.direction==="rtl"?this.getLastKey(e):this.getFirstKey(e))??null}return null}getFirstKey(e,l){let o=e??null,r;if(o!=null){if(r=this.collection.getItem(o),!r)return null;if(this.isCell(r)&&!l&&r.parentKey!=null){let n=this.collection.getItem(r.parentKey);return n?c$6(b$a(n,this.collection))?.key??null:null}}if(o=this.findNextKey(void 0,n=>n.type==="item"),o!=null&&(r&&this.isCell(r)&&l||this.focusMode==="cell")){let n=this.collection.getItem(o);if(!n)return null;o=c$6(b$a(n,this.collection))?.key??null;}return o}getLastKey(e,l){let o=e??null,r;if(o!=null){if(r=this.collection.getItem(o),!r)return null;if(this.isCell(r)&&!l&&r.parentKey!=null){let n=this.collection.getItem(r.parentKey);if(!n)return null;let i=b$a(n,this.collection);return e$3(i)?.key??null}}if(o=this.findPreviousKey(void 0,n=>n.type==="item"),o!=null&&(r&&this.isCell(r)&&l||this.focusMode==="cell")){let n=this.collection.getItem(o);if(!n)return null;let i=b$a(n,this.collection);o=e$3(i)?.key??null;}return o}getKeyPageAbove(e){let l=e,o=this.layoutDelegate.getItemRect(l);if(!o)return null;let r=Math.max(0,o.y+o.height-this.layoutDelegate.getVisibleRect().height);for(;o&&o.y>r&&l!=null&&(l=this.getKeyAbove(l)??null,l!=null);)o=this.layoutDelegate.getItemRect(l);return l}getKeyPageBelow(e){let l=e,o=this.layoutDelegate.getItemRect(l);if(!o)return null;let r=this.layoutDelegate.getVisibleRect().height,n=Math.min(this.layoutDelegate.getContentSize().height,o.y+r);for(;o&&o.y+o.height<n;){let i=this.getKeyBelow(l);if(i==null)break;o=this.layoutDelegate.getItemRect(i),l=i;}return l}getKeyForSearch(e,l){let o=l??null;if(!this.collator)return null;let r=this.collection;if(o=l??this.getFirstKey(),o==null)return null;let n=r.getItem(o);if(!n)return null;n.type==="cell"&&(o=n.parentKey??null);let i=false;for(;o!=null;){let d=r.getItem(o);if(!d)return null;if(d.textValue){let a=d.textValue.slice(0,e.length);if(this.collator.compare(a,e)===0)return this.isRow(d)&&this.focusMode==="cell"?c$6(b$a(d,this.collection))?.key??null:d.key}o=this.findNextKey(o,a=>a.type==="item"),o==null&&!i&&(o=this.getFirstKey(),i=true);}return null}},St=class{layout;constructor(e){this.layout=e;}getContentSize(){return this.layout.getContentSize()}getItemRect(e){return this.layout.getLayoutInfo(e)?.rect||null}getVisibleRect(){return this.layout.virtualizer.visibleRect}};var ge=new WeakMap;function Il(t,e,l){let{isVirtualized:o,disallowTypeAhead:r,keyboardDelegate:n,focusMode:i,scrollRef:d,getRowText:a,onRowAction:u,onCellAction:c,escapeKeyBehavior:s="clearSelection",shouldSelectOnPressUp:b,keyboardNavigationBehavior:f="arrow"}=t,{selectionManager:p}=e;!t["aria-label"]&&!t["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let m=a$g({usage:"search",sensitivity:"base"}),{direction:T}=b$2(),g=e.selectionManager.disabledBehavior,w=useMemo(()=>n||new he({collection:e.collection,disabledKeys:e.disabledKeys,disabledBehavior:g,ref:l,direction:T,collator:m,focusMode:i}),[n,e.collection,e.disabledKeys,g,l,T,m,i]),{collectionProps:S}=c$7({ref:l,selectionManager:p,keyboardDelegate:w,isVirtualized:o,scrollRef:d,disallowTypeAhead:r,escapeKeyBehavior:s}),C=c$3(t.id);ge.set(e,{keyboardDelegate:w,actions:{onRowAction:u,onCellAction:c},shouldSelectOnPressUp:b,keyboardNavigationBehavior:f});let D=c$8({selectionManager:p,hasItemActions:!!(u||c),ref:l}),P=a$3(t,{labelable:true}),h=useCallback(N=>{if(p.isFocused){h$3(N.currentTarget,j$2(N))||p.setFocused(false);return}h$3(N.currentTarget,j$2(N))&&p.setFocused(true);},[p]),R=useMemo(()=>({onBlur:S.onBlur,onFocus:h}),[h,S.onBlur]),x=a$m(l,{isDisabled:e.collection.size!==0}),v=c$2(P,{role:"grid",id:C,"aria-multiselectable":p.selectionMode==="multiple"?"true":void 0},e.isKeyboardNavigationDisabled?R:S,e.collection.size===0&&{tabIndex:x?-1:0}||void 0,D);return o&&(v["aria-rowcount"]=e.collection.size,v["aria-colcount"]=e.collection.columnCount),b$b({getRowText:a},e),{gridProps:v}}var Ze=new WeakMap;function Ct(t){return typeof t=="string"?t.replace(/\s*/g,""):""+t}function _e(t,e){let l=Ze.get(t);if(!l)throw new Error("Unknown grid");return `${l}-${Ct(e)}`}function wt(t,e,l){let o=Ze.get(t);if(!o)throw new Error("Unknown grid");return `${o}-${Ct(e)}-${Ct(l)}`}function De(t,e){return [...t.collection.rowHeaderColumnKeys].map(l=>wt(t,e,l)).join(" ")}var J={"ar-AE":{ascending:"\u062A\u0635\u0627\u0639\u062F\u064A",ascendingSort:t=>`\u062A\u0631\u062A\u064A\u0628 \u062D\u0633\u0628 \u0627\u0644\u0639\u0645\u0648\u062F ${t.columnName} \u0628\u062A\u0631\u062A\u064A\u0628 \u062A\u0635\u0627\u0639\u062F\u064A`,collapse:"\u0637\u064A",columnSize:t=>`${t.value} \u0628\u0627\u0644\u0628\u0643\u0633\u0644`,descending:"\u062A\u0646\u0627\u0632\u0644\u064A",descendingSort:t=>`\u062A\u0631\u062A\u064A\u0628 \u062D\u0633\u0628 \u0627\u0644\u0639\u0645\u0648\u062F ${t.columnName} \u0628\u062A\u0631\u062A\u064A\u0628 \u062A\u0646\u0627\u0632\u0644\u064A`,expand:"\u062A\u0645\u062F\u064A\u062F",resizerDescription:"\u0627\u0636\u063A\u0637 \u0639\u0644\u0649 \u0645\u0641\u062A\u0627\u062D Enter \u0644\u0628\u062F\u0621 \u062A\u063A\u064A\u064A\u0631 \u0627\u0644\u062D\u062C\u0645",select:"\u062A\u062D\u062F\u064A\u062F",selectAll:"\u062A\u062D\u062F\u064A\u062F \u0627\u0644\u0643\u0644",sortable:"\u0639\u0645\u0648\u062F \u0642\u0627\u0628\u0644 \u0644\u0644\u062A\u0631\u062A\u064A\u0628"},"bg-BG":{ascending:"\u0432\u044A\u0437\u0445\u043E\u0434\u044F\u0449",ascendingSort:t=>`\u0441\u043E\u0440\u0442\u0438\u0440\u0430\u043D\u043E \u043F\u043E \u043A\u043E\u043B\u043E\u043D\u0430 ${t.columnName} \u0432\u044A\u0432 \u0432\u044A\u0437\u0445\u043E\u0434\u044F\u0449 \u0440\u0435\u0434`,collapse:"\u0421\u0432\u0438\u0432\u0430\u043D\u0435",columnSize:t=>`${t.value} \u043F\u0438\u043A\u0441\u0435\u043B\u0430`,descending:"\u043D\u0438\u0437\u0445\u043E\u0434\u044F\u0449",descendingSort:t=>`\u0441\u043E\u0440\u0442\u0438\u0440\u0430\u043D\u043E \u043F\u043E \u043A\u043E\u043B\u043E\u043D\u0430 ${t.columnName} \u0432 \u043D\u0438\u0437\u0445\u043E\u0434\u044F\u0449 \u0440\u0435\u0434`,expand:"\u0420\u0430\u0437\u0448\u0438\u0440\u044F\u0432\u0430\u043D\u0435",resizerDescription:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u201EEnter\u201C, \u0437\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0435\u0442\u0435 \u0434\u0430 \u043F\u0440\u0435\u043E\u0440\u0430\u0437\u043C\u0435\u0440\u044F\u0432\u0430\u0442\u0435",select:"\u0418\u0437\u0431\u0435\u0440\u0435\u0442\u0435",selectAll:"\u0418\u0437\u0431\u0435\u0440\u0435\u0442\u0435 \u0432\u0441\u0438\u0447\u043A\u043E",sortable:"\u0441\u043E\u0440\u0442\u0438\u0440\u0430\u0449\u0430 \u043A\u043E\u043B\u043E\u043D\u0430"},"cs-CZ":{ascending:"vzestupn\u011B",ascendingSort:t=>`\u0159azeno vzestupn\u011B podle sloupce ${t.columnName}`,collapse:"Sbalit",columnSize:t=>`${t.value} pixel\u016F`,descending:"sestupn\u011B",descendingSort:t=>`\u0159azeno sestupn\u011B podle sloupce ${t.columnName}`,expand:"Rozt\xE1hnout",resizerDescription:"Stisknut\xEDm kl\xE1vesy Enter za\u010Dnete m\u011Bnit velikost",select:"Vybrat",selectAll:"Vybrat v\u0161e",sortable:"sloupec s mo\u017Enost\xED \u0159azen\xED"},"da-DK":{ascending:"stigende",ascendingSort:t=>`sorteret efter kolonne ${t.columnName} i stigende r\xE6kkef\xF8lge`,collapse:"Skjul",columnSize:t=>`${t.value} pixels`,descending:"faldende",descendingSort:t=>`sorteret efter kolonne ${t.columnName} i faldende r\xE6kkef\xF8lge`,expand:"Udvid",resizerDescription:"Tryk p\xE5 Enter for at \xE6ndre st\xF8rrelse",select:"V\xE6lg",selectAll:"V\xE6lg alle",sortable:"sorterbar kolonne"},"de-DE":{ascending:"aufsteigend",ascendingSort:t=>`sortiert nach Spalte ${t.columnName} in aufsteigender Reihenfolge`,collapse:"Reduzieren",columnSize:t=>`${t.value} Pixel`,descending:"absteigend",descendingSort:t=>`sortiert nach Spalte ${t.columnName} in absteigender Reihenfolge`,expand:"Erweitern",resizerDescription:"Eingabetaste zum Starten der Gr\xF6\xDFen\xE4nderung dr\xFCcken",select:"Ausw\xE4hlen",selectAll:"Alles ausw\xE4hlen",sortable:"sortierbare Spalte"},"el-GR":{ascending:"\u03B1\u03CD\u03BE\u03BF\u03C5\u03C3\u03B1",ascendingSort:t=>`\u03B4\u03B9\u03B1\u03BB\u03BF\u03B3\u03AE \u03B1\u03BD\u03AC \u03C3\u03C4\u03AE\u03BB\u03B7 ${t.columnName} \u03C3\u03B5 \u03B1\u03CD\u03BE\u03BF\u03C5\u03C3\u03B1 \u03C3\u03B5\u03B9\u03C1\u03AC`,collapse:"\u03A3\u03CD\u03BC\u03C0\u03C4\u03C5\u03BE\u03B7",columnSize:t=>`${t.value} pixel`,descending:"\u03C6\u03B8\u03AF\u03BD\u03BF\u03C5\u03C3\u03B1",descendingSort:t=>`\u03B4\u03B9\u03B1\u03BB\u03BF\u03B3\u03AE \u03B1\u03BD\u03AC \u03C3\u03C4\u03AE\u03BB\u03B7 ${t.columnName} \u03C3\u03B5 \u03C6\u03B8\u03AF\u03BD\u03BF\u03C5\u03C3\u03B1 \u03C3\u03B5\u03B9\u03C1\u03AC`,expand:"\u0391\u03BD\u03AC\u03C0\u03C4\u03C5\u03BE\u03B7",resizerDescription:"\u03A0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Enter \u03B3\u03B9\u03B1 \u03AD\u03BD\u03B1\u03C1\u03BE\u03B7 \u03C4\u03B7\u03C2 \u03B1\u03BB\u03BB\u03B1\u03B3\u03AE\u03C2 \u03BC\u03B5\u03B3\u03AD\u03B8\u03BF\u03C5\u03C2",select:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE",selectAll:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03CC\u03BB\u03C9\u03BD",sortable:"\u03A3\u03C4\u03AE\u03BB\u03B7 \u03B4\u03B9\u03B1\u03BB\u03BF\u03B3\u03AE\u03C2"},"en-US":{select:"Select",selectAll:"Select All",sortable:"sortable column",ascending:"ascending",descending:"descending",ascendingSort:t=>`sorted by column ${t.columnName} in ascending order`,descendingSort:t=>`sorted by column ${t.columnName} in descending order`,columnSize:t=>`${t.value} pixels`,resizerDescription:"Press Enter to start resizing",expand:"Expand",collapse:"Collapse"},"es-ES":{ascending:"ascendente",ascendingSort:t=>`ordenado por columna ${t.columnName} en sentido ascendente`,collapse:"Contraer",columnSize:t=>`${t.value} p\xEDxeles`,descending:"descendente",descendingSort:t=>`ordenado por columna ${t.columnName} en orden descendente`,expand:"Ampliar",resizerDescription:"Pulse Intro para empezar a redimensionar",select:"Seleccionar",selectAll:"Seleccionar todos",sortable:"columna ordenable"},"et-EE":{ascending:"t\xF5usev j\xE4rjestus",ascendingSort:t=>`sorditud veeru j\xE4rgi ${t.columnName} t\xF5usvas j\xE4rjestuses`,collapse:"Ahenda",columnSize:t=>`${t.value} pikslit`,descending:"laskuv j\xE4rjestus",descendingSort:t=>`sorditud veeru j\xE4rgi ${t.columnName} laskuvas j\xE4rjestuses`,expand:"Laienda",resizerDescription:"Suuruse muutmise alustamiseks vajutage klahvi Enter",select:"Vali",selectAll:"Vali k\xF5ik",sortable:"sorditav veerg"},"fi-FI":{ascending:"nouseva",ascendingSort:t=>`lajiteltu sarakkeen ${t.columnName} mukaan nousevassa j\xE4rjestyksess\xE4`,collapse:"Pienenn\xE4",columnSize:t=>`${t.value} pikseli\xE4`,descending:"laskeva",descendingSort:t=>`lajiteltu sarakkeen ${t.columnName} mukaan laskevassa j\xE4rjestyksess\xE4`,expand:"Laajenna",resizerDescription:"Aloita koon muutos painamalla Enter-n\xE4pp\xE4int\xE4",select:"Valitse",selectAll:"Valitse kaikki",sortable:"lajiteltava sarake"},"fr-FR":{ascending:"croissant",ascendingSort:t=>`tri\xE9 en fonction de la colonne\xA0${t.columnName} par ordre croissant`,collapse:"R\xE9duire",columnSize:t=>`${t.value}\xA0pixels`,descending:"d\xE9croissant",descendingSort:t=>`tri\xE9 en fonction de la colonne\xA0${t.columnName} par ordre d\xE9croissant`,expand:"D\xE9velopper",resizerDescription:"Appuyez sur Entr\xE9e pour commencer le redimensionnement.",select:"S\xE9lectionner",selectAll:"S\xE9lectionner tout",sortable:"colonne triable"},"he-IL":{ascending:"\u05E2\u05D5\u05DC\u05D4",ascendingSort:t=>`\u05DE\u05D5\u05D9\u05DF \u05DC\u05E4\u05D9 \u05E2\u05DE\u05D5\u05D3\u05D4 ${t.columnName} \u05D1\u05E1\u05D3\u05E8 \u05E2\u05D5\u05DC\u05D4`,collapse:"\u05DB\u05D5\u05D5\u05E5",columnSize:t=>`${t.value} \u05E4\u05D9\u05E7\u05E1\u05DC\u05D9\u05DD`,descending:"\u05D9\u05D5\u05E8\u05D3",descendingSort:t=>`\u05DE\u05D5\u05D9\u05DF \u05DC\u05E4\u05D9 \u05E2\u05DE\u05D5\u05D3\u05D4 ${t.columnName} \u05D1\u05E1\u05D3\u05E8 \u05D9\u05D5\u05E8\u05D3`,expand:"\u05D4\u05E8\u05D7\u05D1",resizerDescription:"\u05D4\u05E7\u05E9 Enter \u05DB\u05D3\u05D9 \u05DC\u05E9\u05E0\u05D5\u05EA \u05D0\u05EA \u05D4\u05D2\u05D5\u05D3\u05DC",select:"\u05D1\u05D7\u05E8",selectAll:"\u05D1\u05D7\u05E8 \u05D4\u05DB\u05D5\u05DC",sortable:"\u05E2\u05DE\u05D5\u05D3\u05D4 \u05E9\u05E0\u05D9\u05EA\u05DF \u05DC\u05DE\u05D9\u05D9\u05DF"},"hr-HR":{ascending:"rastu\u0107i",ascendingSort:t=>`razvrstano po stupcima ${t.columnName} rastu\u0107em redoslijedom`,collapse:"Sa\u017Emi",columnSize:t=>`${t.value} piksela`,descending:"padaju\u0107i",descendingSort:t=>`razvrstano po stupcima ${t.columnName} padaju\u0107im redoslijedom`,expand:"Pro\u0161iri",resizerDescription:"Pritisnite Enter da biste zapo\u010Deli promenu veli\u010Dine",select:"Odaberite",selectAll:"Odaberite sve",sortable:"stupac koji se mo\u017Ee razvrstati"},"hu-HU":{ascending:"n\xF6vekv\u0151",ascendingSort:t=>`rendezve a(z) ${t.columnName} oszlop szerint, n\xF6vekv\u0151 sorrendben`,collapse:"\xD6sszecsuk\xE1s",columnSize:t=>`${t.value} k\xE9ppont`,descending:"cs\xF6kken\u0151",descendingSort:t=>`rendezve a(z) ${t.columnName} oszlop szerint, cs\xF6kken\u0151 sorrendben`,expand:"Kibont\xE1s",resizerDescription:"Nyomja le az Enter billenty\u0171t az \xE1tm\xE9retez\xE9s megkezd\xE9s\xE9hez",select:"Kijel\xF6l\xE9s",selectAll:"\xD6sszes kijel\xF6l\xE9se",sortable:"rendezend\u0151 oszlop"},"it-IT":{ascending:"crescente",ascendingSort:t=>`in ordine crescente in base alla colonna ${t.columnName}`,collapse:"Comprimi",columnSize:t=>`${t.value} pixel`,descending:"decrescente",descendingSort:t=>`in ordine decrescente in base alla colonna ${t.columnName}`,expand:"Espandi",resizerDescription:"Premi Invio per iniziare a ridimensionare",select:"Seleziona",selectAll:"Seleziona tutto",sortable:"colonna ordinabile"},"ja-JP":{ascending:"\u6607\u9806",ascendingSort:t=>`\u5217 ${t.columnName} \u3092\u6607\u9806\u3067\u4E26\u3079\u66FF\u3048`,collapse:"\u6298\u308A\u305F\u305F\u3080",columnSize:t=>`${t.value} \u30D4\u30AF\u30BB\u30EB`,descending:"\u964D\u9806",descendingSort:t=>`\u5217 ${t.columnName} \u3092\u964D\u9806\u3067\u4E26\u3079\u66FF\u3048`,expand:"\u5C55\u958B",resizerDescription:"Enter \u30AD\u30FC\u3092\u62BC\u3057\u3066\u30B5\u30A4\u30BA\u5909\u66F4\u3092\u958B\u59CB",select:"\u9078\u629E",selectAll:"\u3059\u3079\u3066\u9078\u629E",sortable:"\u4E26\u3079\u66FF\u3048\u53EF\u80FD\u306A\u5217"},"ko-KR":{ascending:"\uC624\uB984\uCC28\uC21C",ascendingSort:t=>`${t.columnName} \uC5F4\uC744 \uAE30\uC900\uC73C\uB85C \uC624\uB984\uCC28\uC21C\uC73C\uB85C \uC815\uB82C\uB428`,collapse:"\uC811\uAE30",columnSize:t=>`${t.value} \uD53D\uC140`,descending:"\uB0B4\uB9BC\uCC28\uC21C",descendingSort:t=>`${t.columnName} \uC5F4\uC744 \uAE30\uC900\uC73C\uB85C \uB0B4\uB9BC\uCC28\uC21C\uC73C\uB85C \uC815\uB82C\uB428`,expand:"\uD3BC\uCE58\uAE30",resizerDescription:"\uD06C\uAE30 \uC870\uC815\uC744 \uC2DC\uC791\uD558\uB824\uBA74 Enter\uB97C \uB204\uB974\uC138\uC694.",select:"\uC120\uD0DD",selectAll:"\uBAA8\uB450 \uC120\uD0DD",sortable:"\uC815\uB82C \uAC00\uB2A5\uD55C \uC5F4"},"lt-LT":{ascending:"did\u0117jan\u010Dia tvarka",ascendingSort:t=>`surikiuota pagal stulpel\u012F ${t.columnName} did\u0117jan\u010Dia tvarka`,collapse:"Sutraukti",columnSize:t=>`${t.value} piks.`,descending:"ma\u017E\u0117jan\u010Dia tvarka",descendingSort:t=>`surikiuota pagal stulpel\u012F ${t.columnName} ma\u017E\u0117jan\u010Dia tvarka`,expand:"I\u0161skleisti",resizerDescription:"Paspauskite \u201EEnter\u201C, kad prad\u0117tum\u0117te keisti dyd\u012F",select:"Pasirinkti",selectAll:"Pasirinkti visk\u0105",sortable:"rikiuojamas stulpelis"},"lv-LV":{ascending:"augo\u0161\u0101 sec\u012Bb\u0101",ascendingSort:t=>`k\u0101rtots p\u0113c kolonnas ${t.columnName} augo\u0161\u0101 sec\u012Bb\u0101`,collapse:"Sak\u013Caut",columnSize:t=>`${t.value} pikse\u013Ci`,descending:"dilsto\u0161\u0101 sec\u012Bb\u0101",descendingSort:t=>`k\u0101rtots p\u0113c kolonnas ${t.columnName} dilsto\u0161\u0101 sec\u012Bb\u0101`,expand:"Izv\u0113rst",resizerDescription:"Nospiediet Enter, lai s\u0101ktu izm\u0113ru main\u012B\u0161anu",select:"Atlas\u012Bt",selectAll:"Atlas\u012Bt visu",sortable:"k\u0101rtojam\u0101 kolonna"},"nb-NO":{ascending:"stigende",ascendingSort:t=>`sortert etter kolonne ${t.columnName} i stigende rekkef\xF8lge`,collapse:"Skjul",columnSize:t=>`${t.value} piksler`,descending:"synkende",descendingSort:t=>`sortert etter kolonne ${t.columnName} i synkende rekkef\xF8lge`,expand:"Utvid",resizerDescription:"Trykk p\xE5 Enter for \xE5 starte st\xF8rrelsesendring",select:"Velg",selectAll:"Velg alle",sortable:"kolonne som kan sorteres"},"nl-NL":{ascending:"oplopend",ascendingSort:t=>`gesorteerd in oplopende volgorde in kolom ${t.columnName}`,collapse:"Samenvouwen",columnSize:t=>`${t.value} pixels`,descending:"aflopend",descendingSort:t=>`gesorteerd in aflopende volgorde in kolom ${t.columnName}`,expand:"Uitvouwen",resizerDescription:"Druk op Enter om het formaat te wijzigen",select:"Selecteren",selectAll:"Alles selecteren",sortable:"sorteerbare kolom"},"pl-PL":{ascending:"rosn\u0105co",ascendingSort:t=>`posortowano wed\u0142ug kolumny ${t.columnName} w porz\u0105dku rosn\u0105cym`,collapse:"Zwi\u0144",columnSize:t=>`Liczba pikseli: ${t.value}`,descending:"malej\u0105co",descendingSort:t=>`posortowano wed\u0142ug kolumny ${t.columnName} w porz\u0105dku malej\u0105cym`,expand:"Rozwi\u0144",resizerDescription:"Naci\u015Bnij Enter, aby rozpocz\u0105\u0107 zmienianie rozmiaru",select:"Zaznacz",selectAll:"Zaznacz wszystko",sortable:"kolumna z mo\u017Cliwo\u015Bci\u0105 sortowania"},"pt-BR":{ascending:"crescente",ascendingSort:t=>`classificado pela coluna ${t.columnName} em ordem crescente`,collapse:"Recolher",columnSize:t=>`${t.value} pixels`,descending:"decrescente",descendingSort:t=>`classificado pela coluna ${t.columnName} em ordem decrescente`,expand:"Expandir",resizerDescription:"Pressione Enter para come\xE7ar a redimensionar",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"coluna classific\xE1vel"},"pt-PT":{ascending:"ascendente",ascendingSort:t=>`Ordenar por coluna ${t.columnName} em ordem ascendente`,collapse:"Colapsar",columnSize:t=>`${t.value} pixels`,descending:"descendente",descendingSort:t=>`Ordenar por coluna ${t.columnName} em ordem descendente`,expand:"Expandir",resizerDescription:"Prima Enter para iniciar o redimensionamento",select:"Selecionar",selectAll:"Selecionar tudo",sortable:"Coluna orden\xE1vel"},"ro-RO":{ascending:"cresc\u0103toare",ascendingSort:t=>`sortate dup\u0103 coloana ${t.columnName} \xEEn ordine cresc\u0103toare`,collapse:"Restr\xE2nge\u021Bi",columnSize:t=>`${t.value} pixeli`,descending:"descresc\u0103toare",descendingSort:t=>`sortate dup\u0103 coloana ${t.columnName} \xEEn ordine descresc\u0103toare`,expand:"Extinde\u021Bi",resizerDescription:"Ap\u0103sa\u021Bi pe Enter pentru a \xEEncepe redimensionarea",select:"Selectare",selectAll:"Selectare total\u0103",sortable:"coloan\u0103 sortabil\u0103"},"ru-RU":{ascending:"\u0432\u043E\u0437\u0440\u0430\u0441\u0442\u0430\u043D\u0438\u0435",ascendingSort:t=>`\u0441\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0442\u043E\u043B\u0431\u0435\u0446 ${t.columnName} \u0432 \u043F\u043E\u0440\u044F\u0434\u043A\u0435 \u0432\u043E\u0437\u0440\u0430\u0441\u0442\u0430\u043D\u0438\u044F`,collapse:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C",columnSize:t=>`${t.value} \u043F\u0438\u043A\u0441.`,descending:"\u0443\u0431\u044B\u0432\u0430\u043D\u0438\u0435",descendingSort:t=>`\u0441\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0442\u043E\u043B\u0431\u0435\u0446 ${t.columnName} \u0432 \u043F\u043E\u0440\u044F\u0434\u043A\u0435 \u0443\u0431\u044B\u0432\u0430\u043D\u0438\u044F`,expand:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C",resizerDescription:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0448\u0443 Enter \u0434\u043B\u044F \u043D\u0430\u0447\u0430\u043B\u0430 \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u0440\u0430\u0437\u043C\u0435\u0440\u043E\u0432",select:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C",selectAll:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0435",sortable:"\u0441\u043E\u0440\u0442\u0438\u0440\u0443\u0435\u043C\u044B\u0439 \u0441\u0442\u043E\u043B\u0431\u0435\u0446"},"sk-SK":{ascending:"vzostupne",ascendingSort:t=>`zoraden\xE9 zostupne pod\u013Ea st\u013Apca ${t.columnName}`,collapse:"Zbali\u0165",columnSize:t=>`Po\u010Det pixelov: ${t.value}`,descending:"zostupne",descendingSort:t=>`zoraden\xE9 zostupne pod\u013Ea st\u013Apca ${t.columnName}`,expand:"Rozbali\u0165",resizerDescription:"Stla\u010Den\xEDm kl\xE1vesu Enter za\u010Dnete zmenu ve\u013Ekosti",select:"Vybra\u0165",selectAll:"Vybra\u0165 v\u0161etko",sortable:"zoradite\u013En\xFD st\u013Apec"},"sl-SI":{ascending:"nara\u0161\u010Dajo\u010De",ascendingSort:t=>`razvr\u0161\u010Deno po stolpcu ${t.columnName} v nara\u0161\u010Dajo\u010Dem vrstnem redu`,collapse:"Strni",columnSize:t=>`${t.value} slikovnih pik`,descending:"padajo\u010De",descendingSort:t=>`razvr\u0161\u010Deno po stolpcu ${t.columnName} v padajo\u010Dem vrstnem redu`,expand:"Raz\u0161iri",resizerDescription:"Pritisnite tipko Enter da za\u010Dnete spreminjati velikost",select:"Izberite",selectAll:"Izberite vse",sortable:"razvrstljivi stolpec"},"sr-SP":{ascending:"rastu\u0107i",ascendingSort:t=>`sortirano po kolonama ${t.columnName} rastu\u0107im redosledom`,collapse:"Skupi",columnSize:t=>`${t.value} piksela`,descending:"padaju\u0107i",descendingSort:t=>`sortirano po kolonama ${t.columnName} padaju\u0107im redosledom`,expand:"Pro\u0161iri",resizerDescription:"Pritisnite Enter da biste zapo\u010Deli promenu veli\u010Dine",select:"Izaberite",selectAll:"Izaberite sve",sortable:"kolona koja se mo\u017Ee sortirati"},"sv-SE":{ascending:"stigande",ascendingSort:t=>`sorterat p\xE5 kolumn ${t.columnName} i stigande ordning`,collapse:"D\xF6lj",columnSize:t=>`${t.value} pixlar`,descending:"fallande",descendingSort:t=>`sorterat p\xE5 kolumn ${t.columnName} i fallande ordning`,expand:"Expandera",resizerDescription:"Tryck p\xE5 Retur f\xF6r att b\xF6rja \xE4ndra storlek",select:"Markera",selectAll:"Markera allt",sortable:"sorterbar kolumn"},"tr-TR":{ascending:"artan s\u0131rada",ascendingSort:t=>`${t.columnName} s\xFCtuna g\xF6re artan d\xFCzende s\u0131rala`,collapse:"Daralt",columnSize:t=>`${t.value} piksel`,descending:"azalan s\u0131rada",descendingSort:t=>`${t.columnName} s\xFCtuna g\xF6re azalan d\xFCzende s\u0131rala`,expand:"Geni\u015Flet",resizerDescription:"Yeniden boyutland\u0131rmak i\xE7in Enter'a bas\u0131n",select:"Se\xE7",selectAll:"T\xFCm\xFCn\xFC Se\xE7",sortable:"S\u0131ralanabilir s\xFCtun"},"uk-UA":{ascending:"\u0432\u0438\u0441\u0445\u0456\u0434\u043D\u0438\u0439",ascendingSort:t=>`\u0432\u0456\u0434\u0441\u043E\u0440\u0442\u043E\u0432\u0430\u043D\u043E \u0437\u0430 \u0441\u0442\u043E\u0432\u043F\u0446\u0435\u043C ${t.columnName} \u0443 \u0432\u0438\u0441\u0445\u0456\u0434\u043D\u043E\u043C\u0443 \u043F\u043E\u0440\u044F\u0434\u043A\u0443`,collapse:"\u0417\u0433\u043E\u0440\u043D\u0443\u0442\u0438",columnSize:t=>`${t.value} \u043F\u0456\u043A\u0441.`,descending:"\u043D\u0438\u0437\u0445\u0456\u0434\u043D\u0438\u0439",descendingSort:t=>`\u0432\u0456\u0434\u0441\u043E\u0440\u0442\u043E\u0432\u0430\u043D\u043E \u0437\u0430 \u0441\u0442\u043E\u0432\u043F\u0446\u0435\u043C ${t.columnName} \u0443 \u043D\u0438\u0437\u0445\u0456\u0434\u043D\u043E\u043C\u0443 \u043F\u043E\u0440\u044F\u0434\u043A\u0443`,expand:"\u0420\u043E\u0437\u0433\u043E\u0440\u043D\u0443\u0442\u0438",resizerDescription:"\u041D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C Enter, \u0449\u043E\u0431 \u043F\u043E\u0447\u0430\u0442\u0438 \u0437\u043C\u0456\u043D\u0443 \u0440\u043E\u0437\u043C\u0456\u0440\u0443",select:"\u0412\u0438\u0431\u0440\u0430\u0442\u0438",selectAll:"\u0412\u0438\u0431\u0440\u0430\u0442\u0438 \u0432\u0441\u0435",sortable:"\u0441\u043E\u0440\u0442\u0443\u0432\u0430\u043B\u044C\u043D\u0438\u0439 \u0441\u0442\u043E\u0432\u043F\u0435\u0446\u044C"},"zh-CN":{ascending:"\u5347\u5E8F",ascendingSort:t=>`\u6309\u5217 ${t.columnName} \u5347\u5E8F\u6392\u5E8F`,collapse:"\u6298\u53E0",columnSize:t=>`${t.value} \u50CF\u7D20`,descending:"\u964D\u5E8F",descendingSort:t=>`\u6309\u5217 ${t.columnName} \u964D\u5E8F\u6392\u5E8F`,expand:"\u6269\u5C55",resizerDescription:"\u6309 Enter \u5F00\u59CB\u8C03\u6574\u5927\u5C0F\u3002",select:"\u9009\u62E9",selectAll:"\u5168\u9009",sortable:"\u53EF\u6392\u5E8F\u7684\u5217"},"zh-TW":{ascending:"\u905E\u589E",ascendingSort:t=>`\u5DF2\u4F9D\u64DA\u300C${t.columnName}\u300D\u6B04\u905E\u589E\u6392\u5E8F`,collapse:"\u6536\u5408",columnSize:t=>`${t.value} \u50CF\u7D20`,descending:"\u905E\u6E1B",descendingSort:t=>`\u5DF2\u4F9D\u64DA\u300C${t.columnName}\u300D\u6B04\u905E\u6E1B\u6392\u5E8F`,expand:"\u5C55\u958B",resizerDescription:"\u6309 Enter \u9375\u4EE5\u958B\u59CB\u8ABF\u6574\u5927\u5C0F",select:"\u9078\u53D6",selectAll:"\u5168\u9078",sortable:"\u53EF\u6392\u5E8F\u7684\u6B04"}};var Ye=class extends he{isCell(e){return e.type==="cell"||e.type==="rowheader"||e.type==="column"}getKeyBelow(e,l){let o=this.collection.getItem(e);if(!o)return null;if(o.type==="column"){let r=c$6(b$a(o,this.collection));if(r)return r.key;let n=this.getFirstKey();return n==null||!this.collection.getItem(n)?null:super.getKeyForItemInRowByIndex(n,o.index)}return super.getKeyBelow(e,l)}getKeyAbove(e,l){let o=this.collection.getItem(e);if(!o)return null;if(o.type==="column"){let i=o.parentKey!=null?this.collection.getItem(o.parentKey):null;return i&&i.type==="column"?i.key:null}let r=super.getKeyAbove(e,l),n=r!=null?this.collection.getItem(r):null;return n&&n.type!=="headerrow"?r:this.isCell(o)?this.collection.columns[o.index].key:this.collection.columns[0].key}findNextColumnKey(e){let l=this.findNextKey(e.key,r=>r.type==="column");if(l!=null)return l;let o=this.collection.headerRows[e.level];for(let r of b$a(o,this.collection))if(r.type==="column")return r.key;return null}findPreviousColumnKey(e){let l=this.findPreviousKey(e.key,n=>n.type==="column");if(l!=null)return l;let o=this.collection.headerRows[e.level],r=[...b$a(o,this.collection)];for(let n=r.length-1;n>=0;n--){let i=r[n];if(i.type==="column")return i.key}return null}getKeyRightOf(e){let l=this.collection.getItem(e);return l?l.type==="column"?this.direction==="rtl"?this.findPreviousColumnKey(l):this.findNextColumnKey(l):super.getKeyRightOf(e):null}getKeyLeftOf(e){let l=this.collection.getItem(e);return l?l.type==="column"?this.direction==="rtl"?this.findNextColumnKey(l):this.findPreviousColumnKey(l):super.getKeyLeftOf(e):null}getKeyForSearch(e,l){if(!this.collator)return null;let o=this.collection,r=l??this.getFirstKey();if(r==null)return null;let n=o.getItem(r);n?.type==="cell"&&(r=n.parentKey??null);let i=false;for(;r!=null;){let d=o.getItem(r);if(!d)return null;if(d.textValue){let a=d.textValue.slice(0,e.length);if(this.collator.compare(a,e)===0)return d.key}for(let a of b$a(d,this.collection)){let u=o.columns[a.index];if(o.rowHeaderColumnKeys.has(u.key)&&a.textValue){let c=a.textValue.slice(0,e.length);if(this.collator.compare(c,e)===0)return (l!=null?o.getItem(l):n)?.type==="cell"?a.key:d.key}}r=this.getKeyBelow(r),r==null&&!i&&(r=this.getFirstKey(),i=true);}return null}};function xt(t,e,l){let{keyboardDelegate:o,isVirtualized:r,layoutDelegate:n,layout:i}=t,d=a$g({usage:"search",sensitivity:"base"}),{direction:a}=b$2(),u=e.selectionManager.disabledBehavior,c=useMemo(()=>o||new Ye({collection:e.collection,disabledKeys:e.disabledKeys,disabledBehavior:u,ref:l,direction:a,collator:d,layoutDelegate:n,layout:i}),[o,e.collection,e.disabledKeys,u,l,a,d,n,i]),s=c$3(t.id);Ze.set(e,s);let{gridProps:b}=Il({...t,id:s,keyboardDelegate:c},e,l);r&&(b["aria-rowcount"]=e.collection.size+e.collection.headerRows.length),e.treeColumn!=null&&(b.role="treegrid");let{column:f,direction:p}=e.sortDescriptor||{},m=b$7(J,"@react-aria/table"),T=useMemo(()=>{let w=e.collection.columns.find(S=>S.key===f)?.textValue??"";return p&&f?m.format(`${p}Sort`,{columnName:w}):void 0},[p,f,e.collection.columns]),g=d$2(T,l);return c$4(()=>{T&&a$h(T,"assertive",500);},[T]),{gridProps:c$2(b,g,{"aria-describedby":[g["aria-describedby"],b["aria-describedby"]].filter(Boolean).join(" ")})}}function Xe(t,e,l){let{node:o,isVirtualized:r,focusMode:n,allowsArrowNavigation:i,shouldSelectOnPressUp:d,onAction:a}=t,{direction:u}=b$2(),{keyboardDelegate:c,actions:{onCellAction:s},keyboardNavigationBehavior:b}=ge.get(e),f=n??(b==="tab"?"cell":"child"),p=useRef(null),m$1=useRef(null),T=()=>{if(l.current){let h=d$6(l.current);if(f==="child"){let R=i$2(a$c(l.current));if(m(l.current)&&l.current!==R)return;let x=a$c(l.current);if(!R||R===x.body||R===l.current){let j=m$1.current;if(j&&p.current===o.key&&h$3(l.current,j)){i$1(j);return}}let N=e.selectionManager.childFocusStrategy==="last"?kt(h):h.firstChild();if(N){i$1(N);return}}(p.current!=null&&o.key!==p.current||!m(l.current))&&i$1(l.current);}},{itemProps:g,isPressed:w}=d$4({selectionManager:e.selectionManager,key:o.key,ref:l,isVirtualized:r,focus:T,shouldSelectOnPressUp:d,onAction:s?()=>s(o.key):a,isDisabled:e.collection.size===0}),S=h=>{let R=i$2(a$c(l.current));if(!h$3(h.currentTarget,j$2(h))||e.isKeyboardNavigationDisabled||!l.current||!R)return;let x=d$6(l.current);switch(x.currentNode=R,h.key){case "ArrowLeft":{let v=u==="rtl"?x.nextNode():x.previousNode();if(f==="child"&&v===l.current&&(v=null),h.preventDefault(),h.stopPropagation(),v)i$1(v),f$3(v,{containingElement:b$d(l.current)});else {if(c.getKeyLeftOf?.(o.key)!==o.key){l.current.parentElement?.dispatchEvent(new KeyboardEvent(h.nativeEvent.type,h.nativeEvent));break}f==="cell"&&u==="rtl"?(i$1(l.current),f$3(l.current,{containingElement:b$d(l.current)})):(x.currentNode=l.current,v=u==="rtl"?x.firstChild():kt(x),v&&(i$1(v),f$3(v,{containingElement:b$d(l.current)})));}break}case "ArrowRight":{let v=u==="rtl"?x.previousNode():x.nextNode();if(f==="child"&&v===l.current&&(v=null),h.preventDefault(),h.stopPropagation(),v)i$1(v),f$3(v,{containingElement:b$d(l.current)});else {if(c.getKeyRightOf?.(o.key)!==o.key){l.current.parentElement?.dispatchEvent(new KeyboardEvent(h.nativeEvent.type,h.nativeEvent));break}f==="cell"&&u==="ltr"?(i$1(l.current),f$3(l.current,{containingElement:b$d(l.current)})):(x.currentNode=l.current,v=u==="rtl"?kt(x):x.firstChild(),v&&(i$1(v),f$3(v,{containingElement:b$d(l.current)})));}break}case "ArrowUp":case "ArrowDown":!h.altKey&&h$3(l.current,j$2(h))&&(h.stopPropagation(),h.preventDefault(),l.current.parentElement?.dispatchEvent(new KeyboardEvent(h.nativeEvent.type,h.nativeEvent)));break}},C=h=>{let R=i$2(a$c(l.current));if(!(!h$3(h.currentTarget,j$2(h))||e.isKeyboardNavigationDisabled||!l.current||!R)){if(b==="tab"&&j$2(h)!==l.current&&h.key!=="Tab"){h.stopPropagation();return}switch(h.key){case "Tab":if(b==="tab"){let x=d$6(l.current,{tabbable:true});x.currentNode=R,(h.shiftKey?x.previousNode():x.nextNode())&&h.stopPropagation();}}}},D=h=>{if(p.current=o.key,j$2(h)!==l.current){let R=j$2(h);l.current&&h$3(l.current,R)&&(m$1.current=R),b$c()||e.selectionManager.setFocusedKey(o.key);return}f==="child"&&h.relatedTarget&&h$3(l.current,h.relatedTarget)||requestAnimationFrame(()=>{f==="child"&&i$2(a$c(l.current))===l.current&&T();});},P=c$2(g,{role:"gridcell",onKeyDownCapture:b!=="tab"||i?S:void 0,onKeyDown:b==="tab"?C:void 0,"aria-colspan":o.colSpan,"aria-colindex":o.colIndex!=null?o.colIndex+1:void 0,colSpan:r?void 0:o.colSpan,onFocus:D,...f==="child"&&b==="tab"?{tabIndex:-1}:{}});return r&&(P["aria-colindex"]=(o.colIndex??o.index)+1),d&&P.tabIndex!=null&&P.onPointerDown==null&&(P.onPointerDown=h=>{let R=h.currentTarget,x=R.getAttribute("tabindex");R.removeAttribute("tabindex"),requestAnimationFrame(()=>{x!=null&&R.setAttribute("tabindex",x);});}),{gridCellProps:P,isPressed:w}}function kt(t){let e=null,l=null;do l=t.lastChild(),l&&(e=l);while(l);return e}function vt(t,e,l){let{node:o}=t,r=o.props.allowsSorting,{gridCellProps:n}=Xe({focusMode:"child",...t},e,l),i=o.props.isSelectionCell&&e.selectionManager.selectionMode==="single",{pressProps:d,isPressed:a}=d$3({isDisabled:!r||i,onPress(){e.sort(o.key);},ref:l}),{focusableProps:u}=c$5({},l),c,s=e.sortDescriptor?.column===o.key,b=e.sortDescriptor?.direction;o.props.allowsSorting&&!l$2()&&(c=s?b:"none");let f=b$7(J,"@react-aria/table"),p;r&&(p=`${f.format("sortable")}`,s&&b&&l$2()&&(p=`${p}, ${f.format(b)}`));let m=d$2(p,l),T=e.collection.size===0;return useEffect(()=>{T&&e.selectionManager.focusedKey===o.key&&e.selectionManager.setFocusedKey(null);},[T,e.selectionManager,o.key]),{columnHeaderProps:{...c$2(u,n,d,m,T?{tabIndex:-1}:null),role:"columnheader",id:_e(e,o.key),"aria-colspan":o.colSpan&&o.colSpan>1?o.colSpan:void 0,"aria-sort":c},isPressed:a}}function Ll(t,e,l){let{node:o,isVirtualized:r,shouldSelectOnPressUp:n,onAction:i}=t,{actions:d,shouldSelectOnPressUp:a}=ge.get(e),u=d.onRowAction?()=>d.onRowAction?.(o.key):i,{itemProps:c,...s}=d$4({selectionManager:e.selectionManager,key:o.key,ref:l,isVirtualized:r,shouldSelectOnPressUp:a||n,onAction:u||o?.props?.onAction?a$n(o?.props?.onAction,u):void 0,isDisabled:e.collection.size===0}),b=e.selectionManager.isSelected(o.key),f={role:"row","aria-selected":e.selectionManager.selectionMode!=="none"?b:void 0,"aria-disabled":s.isDisabled||void 0,...c};return r&&(f["aria-rowindex"]=o.index+1),{rowProps:f,...s}}var Fl={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function zt(t,e,l){let{node:o,isVirtualized:r}=t,{rowProps:n,...i}=Ll(t,e,l),{direction:d}=b$2();r&&e.treeColumn==null?n["aria-rowindex"]=o.index+1+e.collection.headerRows.length:delete n["aria-rowindex"];let a=e.treeColumn!=null&&(e.expandedKeys==="all"||e.expandedKeys.has(o.key)),u=b$7(J,"@react-aria/table"),c=a$k({"aria-label":a?u.format("collapse"):u.format("expand"),"aria-labelledby":De(e,o.key)}),s={},b={};if(e.treeColumn!=null){let m=e.collection.getItem(o.key);if(m!=null){let T=Hl(e.collection,o),g=m.props?.hasChildRows||m.props?.UNSTABLE_childItems||T?.type!=="cell",w=e.collection.getItem(o.parentKey),S=w.type==="tablebody"||w.type==="body",C=Hl(e.collection,w);for(;C&&C.type!=="item"&&C.prevKey!=null;)C=e.collection.getItem(C.prevKey);s={onKeyDown:D=>{D.key===Fl.expand[d]&&e.selectionManager.focusedKey===m.key&&g&&e.expandedKeys!=="all"&&!e.expandedKeys.has(m.key)?(e.toggleKey(m.key),D.stopPropagation()):D.key===Fl.collapse[d]&&e.selectionManager.focusedKey===m.key&&(e.expandedKeys!=="all"?g&&e.expandedKeys.has(m.key)?(e.toggleKey(m.key),D.stopPropagation()):!e.expandedKeys.has(m.key)&&m.parentKey!=null&&m.level>0&&(e.selectionManager.setFocusedKey(m.parentKey),D.stopPropagation()):e.expandedKeys==="all"&&(e.toggleKey(m.key),D.stopPropagation()));},"aria-expanded":g?e.expandedKeys==="all"||e.expandedKeys.has(o.key):void 0,"aria-level":m.level+1,"aria-posinset":m.index-(S?0:e.collection.columnCount)+1,"aria-setsize":C.index-(S?0:e.collection.columnCount)+1},b={isDisabled:i.isDisabled,onPress:()=>{i.isDisabled||(e.toggleKey(o.key),e.selectionManager.setFocused(true),e.selectionManager.setFocusedKey(o.key));},excludeFromTabOrder:true,preventFocusOnPress:true,"data-react-aria-prevent-focus":true,...c};}}let f=q(o.props),p=i.hasAction?f:{};return {rowProps:{...c$2(n,s,p),"aria-labelledby":De(e,o.key)},expandButtonProps:b,...i}}function Hl(t,e){return "lastChildKey"in e?e.lastChildKey!=null?t.getItem(e.lastChildKey):null:Array.from(e.childNodes).findLast(l=>l.parentKey===e.key)}function Rt(t,e,l){let{node:o,isVirtualized:r}=t,n={role:"row"};return r&&e.treeColumn==null&&(n["aria-rowindex"]=o.index+1),{rowProps:n}}function Kt(t,e,l){let{gridCellProps:o,isPressed:r}=Xe(t,e,l),n=t.node.column?.key;return n!=null&&e.collection.rowHeaderColumnKeys.has(n)&&(o.role="rowheader",o.id=wt(e,t.node.parentKey,n)),{gridCellProps:o,isPressed:r}}function Dt(t,e){let{key:l}=t,{checkboxProps:o}=a$l(t,e);return {checkboxProps:{...o,"aria-labelledby":`${o.id} ${De(e,l)}`}}}function Pt(t){let{isEmpty:e,isSelectAll:l,selectionMode:o}=t.selectionManager;return {checkboxProps:{"aria-label":b$7(J,"@react-aria/table").format(o==="single"?"select":"selectAll"),isSelected:l,isDisabled:o!=="multiple"||t.collection.size===0||t.collection.rows.length===1&&t.collection.rows[0].type==="loader",isIndeterminate:!e&&!l,onChange:()=>t.selectionManager.toggleSelectAll()}}}function Mt(t,e,l){let{column:o,triggerRef:r,isDisabled:n,onResizeStart:i,onResize:d,onResizeEnd:a,"aria-label":u$1}=t,c=b$7(J,"@react-aria/table"),s=c$3(),b=e.resizingColumn===o.key,f=useRef(b),p=useRef(null),m=useRef(false),T=e.tableState.isKeyboardNavigationDisabled,[g,w]=useState(false),{direction:S}=b$2(),C=useCallback(z=>{f.current||(p.current=e.updateResizedColumns(z.key,e.getColumnWidth(z.key)),e.startResize(z.key),e.tableState.setKeyboardNavigationDisabled(true),i?.(p.current)),f.current=true;},[e,i]),D=useCallback((z,K)=>{let G=e.updateResizedColumns(z.key,K);d?.(G),p.current=G;},[e,d]),P=useCallback(z=>{f.current&&(p.current==null&&(p.current=e.updateResizedColumns(z.key,e.getColumnWidth(z.key))),e.endResize(),e.tableState.setKeyboardNavigationDisabled(false),a?.(p.current),f.current=false,r?.current&&!m.current&&i$1(r.current)),p.current=null;},[e,r,a]),h=()=>{if(T){P(o);return}return false},{keyboardProps:R}=j$1({shortcuts:{Escape:()=>h(),Enter:()=>{T?P(o):C(o);}," ":()=>h(),Tab:()=>h()}}),x=useRef(0),{moveProps:v}=a$j({onMoveStart(z){x.current=e.getColumnWidth(o.key),z.pointerType==="mouse"&&w(true),C(o);},onMove(z){let{deltaX:K,deltaY:G,pointerType:lt}=z;S==="rtl"&&(K*=-1),lt==="keyboard"&&(G!==0&&K===0&&(K=G*-1),K*=10),K!==0&&(x.current+=K,D(o,x.current));},onMoveEnd(z){let{pointerType:K}=z;x.current=0,w(false),(K==="mouse"||K==="touch"&&m.current)&&P(o);}}),N=useCallback(z=>{T&&v.onKeyDown?.(z);},[T,v]),j=Math.floor(e.getColumnMinWidth(o.key)),U=Math.floor(e.getColumnMaxWidth(o.key));U===1/0&&(U=Number.MAX_SAFE_INTEGER);let Z=Math.floor(e.getColumnWidth(o.key)),_=f$1();_==="virtual"&&typeof window<"u"&&"ontouchstart"in window&&(_="touch");let we=r?.current==null&&(_==="keyboard"||_==="virtual")&&!b?c.format("resizerDescription"):void 0,te=d$2(we),oe={"aria-label":u$1,"aria-orientation":"horizontal","aria-labelledby":`${s} ${_e(e.tableState,o.key)}`,"aria-valuetext":c.format("columnSize",{value:Z}),type:"range",min:j,max:U,value:Z,...te},re=useCallback(()=>{l.current&&i$1(l.current);},[l]),ne=e.resizingColumn,me=useRef(null),Ee=u(C);useEffect(()=>{if(me.current!==ne&&ne!=null&&ne===o.key){m.current=i$2(a$c(l.current))===l.current,Ee(o);let z=setTimeout(()=>re(),0),K=setTimeout(re,400);return ()=>{clearTimeout(z),clearTimeout(K);}}me.current=ne;},[ne,o,re,l]);let et=z=>{let K=e.getColumnWidth(o.key),G=parseFloat(j$2(z).value);G>K?G=K+10:G=K-10,D(o,G);},{pressProps:xe}=d$3({preventFocusOnPress:true,onPressStart:z=>{if(!(z.ctrlKey||z.altKey||z.metaKey||z.shiftKey||z.pointerType==="keyboard")){if(z.pointerType==="virtual"&&e.resizingColumn!=null){P(o);return}re(),z.pointerType!=="virtual"&&C(o);}},onPress:z=>{(z.pointerType==="touch"&&m.current||z.pointerType==="mouse")&&e.resizingColumn!=null&&P(o);}}),{visuallyHiddenProps:tt}=a$d();return {resizerProps:c$2(R,{...v,onKeyDown:N},xe,{style:{touchAction:"none"}}),inputProps:c$2(tt,{id:s,onBlur:()=>{P(o);},onChange:et,disabled:n},oe),isResizing:b,isMouseResizing:g}}function Ol(){return {rowGroupProps:{role:"rowgroup"}}}function qe(){return Ol()}var Nt=class extends g$1{headerRows=[];columns=[];rows=[];rowHeaderColumnKeys=new Set;head=new Je(-1);columnsDirty=true;expandedKeys=new Set;withExpandedKeys(e){let l=this.clone();return l.expandedKeys=e,l.frozen=this.frozen,l.rows=Array.from(l.getRows()),l}addNode(e){super.addNode(e),this.columnsDirty||=e.type==="column",e.type==="tableheader"&&(this.head=e);}getRows(){let e=[];for(let l of this)(l.type==="tablebody"||l.type==="tablefooter")&&e.push(...this.getChildren(l.key));return e}get body(){for(let e of this)if(e.type==="tablebody")return e;return new Qe(-2)}commit(e,l,o=false){this.updateColumns(o),this.firstKey=e,this.lastKey=l,this.rows=[];for(let r of this.getRows()){let n=r.lastChildKey;if(n!=null){let i=this.getItem(n);for(;i&&i.type!=="cell";)i=i.prevKey!=null?this.getItem(i.prevKey):null;if(i){let d=(i.colIndex??i.index)+(i.colSpan??1);if(d!==this.columns.length&&!o)throw new Error(`Cell count must match column count. Found ${d} cells and ${this.columns.length} columns.`)}}this.rows.push(r);}super.commit(e,l,o);}updateColumns(e){if(!this.columnsDirty)return;this.rowHeaderColumnKeys=new Set,this.columns=[];let l=new Map,o=r=>{r.type==="column"&&(l.set(r.key,r),r.hasChildNodes||(r.index=this.columns.length,this.columns.push(r),r.props.isRowHeader&&this.rowHeaderColumnKeys.add(r.key)));for(let n of this.getChildren(r.key))o(n);};for(let r of this.getChildren(this.head.key))o(r);if(this.headerRows=je(l,this.columns),this.columnsDirty=false,this.rowHeaderColumnKeys.size===0&&this.columns.length>0&&!e)throw new Error("A table must have at least one Column with the isRowHeader prop set to true")}get columnCount(){return this.columns.length}*[Symbol.iterator](){let e=this.firstKey;for(;e!=null;){let l=this.getItem(e);l&&(yield l),e=l?.nextKey??null;}}getFirstKey(){for(let e of this)if(e.type==="tablebody")return e.firstChildKey??null;return null}getLastKey(){let e=this.lastKey;if(e==null)return null;let l=this.getItem(e);for(;l?.lastChildKey!=null&&(l.type!=="item"||this.expandedKeys.has(l.key));)l=this.getItem(l.lastChildKey);return l?.key}getKeyAfter(e){let l=this.getItem(e);if(l?.type==="column")return l.nextKey??null;if(!l)return null;if(l.type==="item"&&l.firstChildKey!=null&&this.expandedKeys.has(l.key)){let o=this.getItem(l.firstChildKey);for(;o;){if(o.type==="item")return o.key;o=o.nextKey!=null?this.getItem(o.nextKey):null;}}return super.getKeyAfter(e)}getKeyBefore(e){let l=this.getItem(e);if(l?.type==="column")return l.prevKey??null;if(!l)return null;let o=null;if(l.prevKey!=null){for(l=this.getItem(l.prevKey);l&&(l.type!=="item"||this.expandedKeys.has(l.key))&&l.lastChildKey!=null;)l=this.getItem(l.lastChildKey);o=l?.key??null;}return o==null&&(o=l.parentKey),o!=null&&this.getItem(o)?.type==="tableheader"?null:o}getChildren(e){let l=this.getItem(e);if(!l){for(let r of this.headerRows)if(r.key===e)return r.childNodes}let o=this;return l?.type==="tablebody"||l?.type==="tablefooter"?{*[Symbol.iterator](){let r=l.firstChildKey,n=r!=null?o.getItem(r):null;for(;n;){yield n;let i=o.getKeyAfter(n.key);if(n=i!=null?o.getItem(i):null,n&&n.parentKey===l.parentKey)break}}}:{*[Symbol.iterator](){let r=o.getItem(e),n=r?.firstChildKey!=null?o.getItem(r.firstChildKey):null;for(;n&&(yield n,n=n.nextKey!=null?o.getItem(n.nextKey):null,!(r?.type==="item"&&n?.type!=="cell")););}}}clone(){let e=super.clone();return e.headerRows=this.headerRows,e.columns=this.columns,e.rows=this.rows,e.rowHeaderColumnKeys=this.rowHeaderColumnKeys,e.head=this.head,e}getTextValue(e){let l=this.getItem(e);if(!l)return "";if(l.textValue)return l.textValue;let o=this.rowHeaderColumnKeys,r=[];for(let n of this.getChildren(e)){let i=this.columns[n.index];if(o.has(i.key)&&n.textValue&&r.push(n.textValue),r.length===o.size)break}return r.join(" ")}},Ft=createContext(null);forwardRef(function(e$1,l){let o=a(l),r=useRef(null),n=useRef(null),[i,d]=useState(0);a$1(()=>{let u=r.current;for(;u&&u!==o.current&&!a$2(u);)u=u.parentElement;n.current=u;},[o]),e({ref:n,box:"border-box",onResize(){d(n.current?.clientWidth??0);}}),a$1(()=>{d(n.current?.clientWidth??0);},[]);let a$4=useMemo(()=>({tableRef:r,scrollRef:n,tableWidth:i,useTableColumnResizeState:ht,onResizeStart:e$1.onResizeStart,onResize:e$1.onResize,onResizeEnd:e$1.onResizeEnd}),[r,i,e$1.onResizeStart,e$1.onResize,e$1.onResizeEnd]);return jsx(h.div,{render:e$1.render,...a$3(e$1,{global:true}),ref:o,className:e$1.className||"react-aria-ResizableTableContainer",style:e$1.style,onScroll:e$1.onScroll,children:jsx(Ft.Provider,{value:a$4,children:e$1.children})})});var no=createContext(null),Q=createContext(null),Ht=createContext(null),xa=forwardRef(function(e,l$1){[e,l$1]=e$1(e,l$1,no);let o=a$4(e),{selectionBehavior:r,selectionMode:n,disallowEmptySelection:i$1}=o,d=!!e.dragAndDropHooks?.useDraggableCollectionState,a=useMemo(()=>({selectionBehavior:n==="none"?null:r,selectionMode:n,disallowEmptySelection:i$1,allowsDragging:d}),[r,n,i$1,d]),u=jsx(so.Provider,{value:a,children:jsx(l,{...e})});return jsx(i,{content:u,createCollection:()=>new Nt,children:c=>jsx(ao,{props:e,forwardedRef:l$1,selectionState:o,collection:c})})}),io=forwardRef(function(e,l){let{isVirtualized:o}=useContext(p);return o?jsx(h.div,{...e,ref:l}):jsx(h.table,{...e,ref:l})}),Vl={expand:{ltr:"ArrowRight",rtl:"ArrowLeft"},collapse:{ltr:"ArrowLeft",rtl:"ArrowRight"}};function ao({props:t,forwardedRef:e,selectionState:l,collection:o}){[t,e]=e$1(t,e,b);let{shouldUseVirtualFocus:r,disallowTypeAhead:n,filter:i,...d}=t,a$1=useContext(Ft);e=a(useMemo(()=>b$1(e,a$1?.tableRef),[e,a$1?.tableRef]));let[u,c$3]=a$5(t.expandedKeys?new Set(t.expandedKeys):void 0,t.defaultExpandedKeys?new Set(t.defaultExpandedKeys):new Set,t.onExpandedChange);o=useMemo(()=>o.withExpandedKeys(u),[o,u]);let s=gt({...d,collection:o,children:void 0,UNSAFE_selectionState:l,expandedKeys:u,onExpandedChange:c$3}),b$6=Tt(s,i),{isVirtualized:f,layoutDelegate:p$1,dropTargetDelegate:m,CollectionRoot:T}=useContext(p),{dragAndDropHooks:g$1}=t,{gridProps:w}=xt({...d,layoutDelegate:p$1,isVirtualized:f},b$6,e),S=b$6.selectionManager,C=!!g$1?.useDraggableCollectionState,D=!!g$1?.useDroppableCollectionState,P=useRef(C),h=useRef(D);useEffect(()=>{process.env.NODE_ENV!=="production"&&(P.current!==C&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),h.current!==D&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."));},[C,D]);let R,x,v,N=false,j=null,U=useRef(null),{direction:Z}=b$2(),[_]=useState(()=>new a$6);if(C&&g$1){R=g$1.useDraggableCollectionState({collection:b$6.collection,selectionManager:S,preview:g$1.renderDragPreview?U:void 0}),g$1.useDraggableCollection({},R,e);let xe=g$1.DragPreview;j=g$1.renderDragPreview?jsx(xe,{ref:U,children:g$1.renderDragPreview}):null;}if(D&&g$1){x=g$1.useDroppableCollectionState({collection:b$6.collection,selectionManager:S});let xe=new b$3({collection:b$6.collection,disabledKeys:S.disabledKeys,disabledBehavior:S.disabledBehavior,ref:e,layoutDelegate:p$1}),tt=g$1.dropTargetDelegate||m||new g$1.ListDropTargetDelegate(o.rows,e);_.setup(tt,s,Z),v=g$1.useDroppableCollection({keyboardDelegate:xe,dropTargetDelegate:_,onDropActivate:z=>{if(z.target.type==="item"){let K=z.target.key,G=s.collection.getItem(K),lt=u.has(K);G&&G.hasChildNodes&&(!lt||g$1?.isVirtualDragging?.())&&s.toggleKey(K);}},onKeyDown:z=>{let K=x?.target;if(K&&K.type==="item"&&K.dropPosition==="on"){let G=s.collection.getItem(K.key);(z.key===Vl.expand[Z]&&G?.hasChildNodes&&!s.expandedKeys.has(K.key)||z.key===Vl.collapse[Z]&&G?.hasChildNodes&&s.expandedKeys.has(K.key))&&s.toggleKey(K.key);}}},x,e),N=x.isDropTarget({type:"root"});}let{focusProps:we,isFocused:te,isFocusVisible:oe}=a$7(),re=c({...t,children:void 0,defaultClassName:"react-aria-Table",values:{isDropTarget:N,isFocused:te,isFocusVisible:oe,state:b$6}}),ne=!!(C&&!R?.isDisabled),me=re.style,Ee=null;a$1&&(Ee=a$1.useTableColumnResizeState({tableWidth:a$1.tableWidth},b$6),f||(me={...me,tableLayout:"fixed",width:"min-content"}));let et=a$3(t,{global:true});return jsxs(b$4,{values:[[Q,b$6],[Ht,Ee],[a$8,{dragAndDropHooks:g$1,dragState:R,dropState:x}],[b$5,{render:fo}],[b,null],[c$1,null]],children:[jsx(a$9,{children:jsx(io,{...c$2(et,re,w,we,v?.collectionProps),style:me,ref:e,slot:t.slot||void 0,onScroll:t.onScroll,"data-allows-dragging":ne||void 0,"data-drop-target":N||void 0,"data-focused":te||void 0,"data-focus-visible":oe||void 0,children:jsx(g,{children:jsx(T,{collection:b$6.collection,scrollRef:a$1?.scrollRef??e,persistedKeys:e$2(S,g$1,x)})})})}),j]})}var so=createContext(null);var Je=class extends a$i{static type="tableheader"},co=forwardRef(function(e,l){let{isVirtualized:o}=useContext(p);return o?jsx(h.div,{...e,ref:l}):jsx(h.thead,{...e,ref:l})}),ka=k(Je,(t,e)=>{let l=useContext(Q).collection,o=h$1({items:l.headerRows,children:useCallback(a=>{if(a.type==="headerrow")return jsx(mo,{item:a});throw new Error("Unsupported node type in TableHeader: "+a.type)},[])}),{rowGroupProps:r}=qe(),{hoverProps:n,isHovered:i}=a$a({onHoverStart:t.onHoverStart,onHoverChange:t.onHoverChange,onHoverEnd:t.onHoverEnd}),d=c({...t,children:void 0,defaultClassName:"react-aria-TableHeader",values:{isHovered:i}});return jsx(co,{...c$2(a$3(t,{global:true}),r,n),...d,ref:e,"data-hovered":i||void 0,children:o})},t=>jsx(l,{dependencies:t.dependencies,items:t.columns,children:t.children})),uo=forwardRef(function(e,l){let{isVirtualized:o}=useContext(p);return o?jsx("div",{...e,ref:l}):jsx("tr",{...e,ref:l})});function mo({item:t}){let e=useRef(null),l=useContext(Q),{isVirtualized:o,CollectionBranch:r}=useContext(p),{rowProps:n}=Rt({node:t,isVirtualized:o},l),{checkboxProps:i}=Pt(l);return jsx(uo,{...n,ref:e,children:jsx(b$4,{values:[[a$b,{slots:{selection:i}}],[b$6,{slots:{selection:i}}]],children:jsx(r,{collection:l.collection,parent:t})})})}var Et=class extends a$i{static type="column"},po=forwardRef(function(e,l){let{isVirtualized:o}=useContext(p);return o?jsx(h.div,{...e,ref:l}):jsx(h.th,{...e,ref:l})}),va=j(Et,(t,e,l)=>{let o=a(e),r=useContext(Q),{isVirtualized:n$1}=useContext(p),{columnHeaderProps:i,isPressed:d}=vt({node:l,isVirtualized:n$1,focusMode:t.focusMode,allowsArrowNavigation:t.allowsArrowNavigation},r,o),{isFocused:a$1,isFocusVisible:u,focusProps:c$1}=a$7(),s=useContext(Ht),b=false;if(s)b=s.resizingColumn===l.key;else if(process.env.NODE_ENV!=="production")for(let w in ["width","defaultWidth","minWidth","maxWidth"])w in l.props&&console.warn(`The ${w} prop on a <Column> only applies when a <Table> is wrapped in a <ResizableTableContainer>. If you aren't using column resizing, you can set the width of a column with CSS.`);let{hoverProps:f,isHovered:p$1}=a$a({isDisabled:!t.allowsSorting}),m=c({...t,id:void 0,children:l.rendered,defaultClassName:"react-aria-Column",values:{isHovered:p$1,isPressed:d,isFocused:a$1,isFocusVisible:u,allowsSorting:l.props.allowsSorting,sortDirection:r.sortDescriptor?.column===l.key?r.sortDescriptor.direction:void 0,isResizing:b,startResize:()=>{if(s)s.startResize(l.key),r.setKeyboardNavigationDisabled(true);else throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing")},sort:w=>{r.sort(l.key,w);}}}),T=m.style;s&&(T={...T,width:s.getColumnWidth(l.key)});let g=a$3(t,{global:true});return delete g.id,jsx(po,{...c$2(g,i,c$1,f),...m,style:T,ref:o,"data-hovered":p$1||void 0,"data-pressed":d||void 0,"data-focused":a$1||void 0,"data-focus-visible":u||void 0,"data-resizing":b||void 0,"data-allows-sorting":l.props.allowsSorting||void 0,"data-sort-direction":r.sortDescriptor?.column===l.key?r.sortDescriptor.direction:void 0,children:jsx(b$4,{values:[[Wl,{column:l,triggerRef:o}],[p,n]],children:m.children})})}),Wl=createContext(null);forwardRef(function(e,l){let o=useContext(Ht);if(!o)throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");let r=b$7(Kl,"react-aria-components"),{onResizeStart:n,onResize:i,onResizeEnd:d}=useContext(Ft),{column:a$1,triggerRef:u}=useContext(Wl),c$1=useRef(null),{resizerProps:s,inputProps:b,isResizing:f,isMouseResizing:p}=Mt({column:a$1,"aria-label":e["aria-label"]||r.format("tableResizer"),onResizeStart:n,onResize:i,onResizeEnd:d,triggerRef:u},o,c$1),{focusProps:m,isFocused:T,isFocusVisible:g}=a$7(),{hoverProps:w,isHovered:S}=a$a(e),C=o.getColumnMinWidth(a$1.key)>=o.getColumnWidth(a$1.key),D=o.getColumnMaxWidth(a$1.key)<=o.getColumnWidth(a$1.key),{direction:P}=b$2(),h$1="both";C?h$1=P==="rtl"?"right":"left":D?h$1=P==="rtl"?"left":"right":h$1="both";let R=a(l),[x,v]=useState("");useEffect(()=>{if(!R.current)return;let U=b$8(R.current).getComputedStyle(R.current);v(U.cursor);},[R,h$1]);let N=c({...e,defaultClassName:"react-aria-ColumnResizer",values:{isFocused:T,isFocusVisible:g,isResizing:f,isHovered:S,resizableDirection:h$1}}),j=a$3(e,{global:true});return jsxs(h.div,{ref:R,role:"presentation",...c$2(j,N,s,w),"data-hovered":S||void 0,"data-focused":T||void 0,"data-focus-visible":g||void 0,"data-resizing":f||void 0,"data-resizable-direction":h$1,children:[N.children,jsx("input",{ref:c$1,...c$2(b,m)}),f&&p&&ro.createPortal(jsx("div",{style:{position:"fixed",top:0,left:0,bottom:0,right:0,cursor:x},"data-testid":"cursor-overlay"}),a$c(R.current).body)]})});var Qe=class extends b$9{static type="tablebody"},bo=forwardRef(function(e,l){let{isVirtualized:o}=useContext(p);return o?jsx(h.div,{...e,ref:l}):jsx(h.tbody,{...e,ref:l})}),Ra=k(Qe,(t,e,l)=>{let o=useContext(Q),{isVirtualized:r}=useContext(p),n=o.collection,{CollectionBranch:i}=useContext(p),{dragAndDropHooks:d$1,dropState:a}=useContext(a$8),u=!!d$1?.useDroppableCollectionState&&!a?.isDisabled,c$1=u&&!!a&&(a.isDropTarget({type:"root"})??false),s=n.size===0,b={isDropTarget:c$1,isEmpty:s},f=c({...t,id:void 0,children:void 0,defaultClassName:"react-aria-TableBody",values:b}),p$1,m=n.columnCount;if(s&&t.renderEmptyState&&o){let w={},S={},C={};r?(S["aria-colspan"]=m,C={display:"contents"}):S.colSpan=m,p$1=jsx(Te,{role:"row",...w,style:C,children:jsx(Se,{role:"rowheader",...S,style:C,children:t.renderEmptyState(b)})});}let{rowGroupProps:T}=qe(),g=a$3(t,{global:true});return jsxs(bo,{...c$2(g,f,T),ref:e,"data-empty":s||void 0,children:[u&&jsx(So,{}),jsx(i,{collection:n,parent:l,renderDropIndicator:d(d$1,a)}),p$1]})});forwardRef(function(e,l){let{isVirtualized:o}=useContext(p);return o?jsx(h.div,{...e,ref:l}):jsx(h.tfoot,{...e,ref:l})});var Bl=createContext({isFocusVisibleWithinRow:false}),It=class extends a$i{static type="item";filter(e,l,o){let r=e.getChildren(this.key);for(let n of r)if(o(n.textValue,n)){let i=this.clone();return l.addDescendants(i,e),i}return null}},Te=forwardRef(function(e,l){let{isVirtualized:o}=useContext(p);return o?jsx(h.div,{...e,ref:l}):jsx(h.tr,{...e,ref:l})}),Da=k(It,(t,e,l)=>{let o=a(e),r=useContext(Q),{dragAndDropHooks:n,dragState:i,dropState:d}=useContext(a$8),{isVirtualized:a$1,CollectionBranch:u}=useContext(p),c$1=i&&!(i.isDisabled||i.selectionManager.isDisabled(l.key)),{rowProps:s,expandButtonProps:b,...f$1}=zt({node:l,shouldSelectOnPressUp:!!i,isVirtualized:a$1},r,o),{isFocused:p$1,isFocusVisible:m,focusProps:T}=a$7(),{isFocusVisible:g,focusProps:w}=a$7({within:true}),{hoverProps:S,isHovered:C}=a$a({isDisabled:!f$1.allowsSelection&&!f$1.hasAction&&!c$1,onHoverStart:t.onHoverStart,onHoverChange:t.onHoverChange,onHoverEnd:t.onHoverEnd}),{checkboxProps:D}=Dt({key:l.key},r),P;i&&n&&(P=n.useDraggableItem({key:l.key,hasDragButton:true},i,o));let h,R=useRef(null),{visuallyHiddenProps:x}=a$d();d&&n&&(h=n.useDropIndicator({target:{type:"item",key:l.key,dropPosition:"on"}},d,R));let v=useRef(null);useEffect(()=>{i&&!v.current&&process.env.NODE_ENV!=="production"&&console.warn('Draggable items in a Table must contain a <Button slot="drag"> element so that keyboard and screen reader users can drag them.');},[]);let N=i&&i.isDragging(l.key),{children:j,...U}=t,Z=t.hasChildItems||r.collection.getItem(l.lastChildKey)?.type!=="cell",_=Z&&r.expandedKeys.has(l.key),we=c({...U,id:void 0,defaultClassName:"react-aria-Row",defaultStyle:{"--table-row-level":l.level+1},values:{...f$1,state:r,isHovered:C,isFocused:p$1,isFocusVisible:m,selectionMode:r.selectionManager.selectionMode,selectionBehavior:r.selectionManager.selectionBehavior,isDragging:N,isDropTarget:h?.isDropTarget,isFocusVisibleWithin:g,id:l.key,hasChildItems:Z,isExpanded:_,level:l.level+1}}),te=a$3(t,{global:true});delete te.id,delete te.onClick;let oe=f(P,n,o);return jsxs(Fragment,{children:[h&&!h.isHidden&&jsx(Te,{role:"row",style:{height:0},children:jsx(Se,{role:"gridcell",colSpan:r.collection.columnCount,style:{padding:0},children:jsx("div",{role:"button",...x,...h.dropIndicatorProps,ref:R})})}),jsx(Te,{...c$2(te,we,s,T,S,oe.itemProps,w),ref:o,"data-disabled":f$1.isDisabled||void 0,"data-selected":f$1.isSelected||void 0,"data-hovered":C||void 0,"data-focused":f$1.isFocused||void 0,"data-focus-visible":m||void 0,"data-pressed":f$1.isPressed||void 0,"data-dragging":N||void 0,"data-drop-target":h?.isDropTarget||void 0,"data-selection-mode":r.selectionManager.selectionMode==="none"?void 0:r.selectionManager.selectionMode,"data-focus-visible-within":g||void 0,"data-expanded":_||void 0,"data-has-child-items":Z||void 0,"data-level":l.level+1,children:jsx(b$4,{values:[[a$b,{slots:{[a$f]:{},selection:D}}],[b$6,{slots:{[a$f]:{},selection:D}}],[a$e,{slots:{[a$f]:{},chevron:b,drag:{...oe.dragButtonProps,ref:v}}}],[h$2,{isSelected:f$1.isSelected}],[Bl,{isFocusVisibleWithinRow:g}]],children:jsx(u,{collection:r.collection,parent:l})})})]})},t=>{if(t.id==null&&typeof t.children=="function")throw new Error("No id detected for the Row element. The Row element requires a id to be provided to it when the cells are rendered dynamically.");let e=[t.value].concat(t.dependencies);return jsx(l,{dependencies:e,items:t.columns,idScope:t.id,children:t.children})}),At=class extends a$i{static type="cell"},Se=forwardRef(function(e,l){let{isVirtualized:o}=useContext(p);return o?jsx(h.div,{...e,ref:l}):jsx(h.td,{...e,ref:l})}),Pa=j(At,(t,e,l)=>{let o=a(e),r=useContext(Q),{dragState:n$1}=useContext(a$8),{isVirtualized:i}=useContext(p);l.column=r.collection.columns[l.index];let{gridCellProps:d,isPressed:a$1}=Kt({node:l,shouldSelectOnPressUp:!!n$1,isVirtualized:i,focusMode:t.focusMode,allowsArrowNavigation:t.allowsArrowNavigation},r,o),{isFocused:u,isFocusVisible:c$1,focusProps:s}=a$7(),{hoverProps:b,isHovered:f}=a$a({}),{isFocusVisibleWithinRow:p$1}=useContext(Bl),m=l.parentKey!=null?r.selectionManager.isSelected(l.parentKey):false,T=l.colIndex||l.index,g=r.collection.getItem(l.parentKey),w=g.props.hasChildItems||r.collection.getItem(g.lastChildKey)?.type!=="cell",S=w&&r.expandedKeys.has(l.parentKey),C=r.selectionManager.isDisabled(l.parentKey),D=c({...t,id:void 0,defaultClassName:"react-aria-Cell",values:{isFocused:u,isFocusVisible:c$1,isFocusVisibleWithinRow:p$1,isPressed:a$1,isHovered:f,isSelected:m,id:l.key,columnIndex:T,hasChildItems:w,isExpanded:S,isDisabled:C,level:g.level+1,isTreeColumn:l.column.key===r.treeColumn}}),P=a$3(t,{global:true});return delete P.id,jsx(Se,{...c$2(P,D,d,s,b),ref:o,"data-focused":u||void 0,"data-focus-visible":c$1||void 0,"data-focus-visible-within-row":p$1||void 0,"data-pressed":a$1||void 0,"data-selected":m||void 0,"data-column-index":T,"data-expanded":S||void 0,"data-has-child-items":w||void 0,"data-level":g.level+1,"data-tree-column":l.column.key===r.treeColumn||void 0,"data-disabled":C||void 0,children:jsx(p.Provider,{value:n,children:D.children})})});function fo(t,e){e=a(e);let{dragAndDropHooks:l,dropState:o}=useContext(a$8),r=useRef(null),{dropIndicatorProps:n,isHidden:i,isDropTarget:d}=l.useDropIndicator(t,o,r);if(i)return null;let a$1=o&&t.target.type==="item"?(o.collection.getItem(t.target.key)?.level||0)+1:1;return jsx(To,{...t,dropIndicatorProps:n,isDropTarget:d,buttonRef:r,level:a$1,ref:e})}var yo=forwardRef(function(e,l){let{isVirtualized:o}=useContext(p);return o?jsx(h.div,{...e,ref:l}):jsx(h.tr,{...e,ref:l})}),ho=forwardRef(function(e,l){let{isVirtualized:o}=useContext(p);return o?jsx(h.div,{...e,ref:l}):jsx(h.td,{...e,ref:l})});function go(t,e){let{dropIndicatorProps:l,isDropTarget:o,buttonRef:r,level:n,...i}=t,d=useContext(Q),{visuallyHiddenProps:a}=a$d(),u=c({...i,defaultClassName:"react-aria-DropIndicator",defaultStyle:{"--table-row-level":n+1},values:{isDropTarget:o}});return jsx(yo,{...a$3(t,{global:true}),...u,role:"row",ref:e,"data-drop-target":o||void 0,"aria-level":n,children:jsxs(ho,{role:"gridcell",colSpan:d.collection.columnCount,style:{padding:0},children:[jsx("div",{...a,role:"button",...l,ref:r}),u.children]})})}var To=forwardRef(go);function So(){let t=useContext(Q),{dragAndDropHooks:e,dropState:l}=useContext(a$8),o=useRef(null),{dropIndicatorProps:r}=e.useDropIndicator({target:{type:"root"}},l,o),n=l.isDropTarget({type:"root"}),{visuallyHiddenProps:i}=a$d();return !n&&r["aria-hidden"]?null:jsx(Te,{role:"row","aria-hidden":r["aria-hidden"],style:{height:0},children:jsx(Se,{role:"gridcell",colSpan:t.collection.columnCount,style:{padding:0},children:jsx("div",{role:"button",...i,...r,ref:o})})})}var Ma=j(d$1,function(e,l,o){let r=useContext(Q),{isVirtualized:n}=useContext(p),{isLoading:i,onLoadMore:d,scrollOffset:a,...u}=e,c$1=r.collection.columns.length,s=useRef(null),b=useMemo(()=>({onLoadMore:d,collection:r?.collection,sentinelRef:s,scrollOffset:a}),[d,a,r?.collection]);k$1(b,s);let f=c({...u,id:void 0,children:o.rendered,defaultClassName:"react-aria-TableLoadingIndicator",defaultStyle:{"--table-row-level":o.level+1},values:void 0}),p$1={},m={},T={};return n?(m["aria-colspan"]=c$1,T={display:"contents"}):m.colSpan=c$1,jsxs(Fragment,{children:[jsx(Te,{style:{height:0},inert:l$1(true),children:jsx(Se,{style:{padding:0,border:0},children:jsx("div",{"data-testid":"loadMoreSentinel",ref:s,style:{position:"relative",height:1,width:1}})})}),i&&f.children&&jsx(Te,{...c$2(a$3(e,{global:true}),p$1),...f,role:"row",ref:l,"aria-level":o.level+1,"data-level":o.level+1,children:jsx(Se,{role:"rowheader",...m,style:T,children:f.children})})]})});export{Ue as a,Ht as b,xa as c,ka as d,va as e,Ra as f,Da as g,Pa as h,Ma as i};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {a as a$b}from'./chunk-KT4FTBJ2.mjs';import {a as a$4,b as b$5,g,d,e as e$1,h as h$1}from'./chunk-6DYTFYPO.mjs';import {a as a$f}from'./chunk-AMW7LGCF.mjs';import {b as b$1,c as c$5}from'./chunk-QUWRO3HT.mjs';import {c as c$2,f as f$1,e as e$3,d as d$3}from'./chunk-JHA7DIPG.mjs';import {a as a$g}from'./chunk-TAT552A5.mjs';import {a as a$m}from'./chunk-LSPDPDB6.mjs';import {b as b$3}from'./chunk-XAM3AXXK.mjs';import {d as d$4}from'./chunk-QMV2O57M.mjs';import {j,c,i,l,p,m,k,f as f$2,e as e$2,d as d$1,q,a as a$i}from'./chunk-6Z3GYFG5.mjs';import {c as c$8}from'./chunk-BROSGYL3.mjs';import {b,c as c$1}from'./chunk-DF2D7NE6.mjs';import {a as a$c,f as f$3}from'./chunk-ZQOR4LCM.mjs';import {f as f$4}from'./chunk-UZ672WDX.mjs';import {a as a$8,b as b$7}from'./chunk-4Y4WKIL5.mjs';import {a as a$d}from'./chunk-O7XK2WIX.mjs';import {b as b$a}from'./chunk-OQPYPKZV.mjs';import {a as a$3}from'./chunk-GMALMQWI.mjs';import {a}from'./chunk-USMC34OO.mjs';import {a as a$q}from'./chunk-Z4QTH4TB.mjs';import {b as b$9}from'./chunk-KG2EHFYA.mjs';import {b as b$2}from'./chunk-N2XGJKZG.mjs';import {a as a$p}from'./chunk-22MA6EYO.mjs';import {e,h,c as c$3,b as b$4,f,a as a$9,d as d$2,k as k$2}from'./chunk-RINS2TBF.mjs';import {a as a$n}from'./chunk-22VRCVTH.mjs';import {k as k$1,l as l$1,e as e$6}from'./chunk-TZGK36KC.mjs';import {e as e$5}from'./chunk-GQIS4QBN.mjs';import {a as a$l}from'./chunk-AI6WQPRX.mjs';import {a as a$h}from'./chunk-66CUIXA6.mjs';import {a as a$1}from'./chunk-STMDFIUL.mjs';import {c as c$7}from'./chunk-HH4VLTF3.mjs';import {a as a$7}from'./chunk-4S4GGUSH.mjs';import {a as a$6}from'./chunk-B3EZOXNU.mjs';import {j as j$1,b as b$6,d as d$6,f as f$5}from'./chunk-KUDCYGII.mjs';import {d as d$5}from'./chunk-F7WPMQ3P.mjs';import {a as a$5}from'./chunk-RT4LMB6X.mjs';import {a as a$k,o,r,u,s,h as h$3,e as e$7}from'./chunk-PPHSLODC.mjs';import {c as c$4}from'./chunk-3WKDIXCM.mjs';import {a as a$2}from'./chunk-SVIYLH7R.mjs';import {c as c$6,a as a$j,e as e$4}from'./chunk-ETM4MNG4.mjs';import {m as m$1,h as h$2,j as j$2,i as i$1,b as b$8,a as a$o}from'./chunk-SD43KVTU.mjs';import {a as a$a}from'./chunk-JQQGRJ5J.mjs';import {a as a$e}from'./chunk-4QEH5CGK.mjs';import Me,{createContext,forwardRef,useContext,useMemo,useRef,useEffect,useCallback,useImperativeHandle,useState}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {ChevronRightFilledIcon}from'@baseline-ui/icons/8';import {CheckmarkIcon as CheckmarkIcon$1}from'@baseline-ui/icons/12';import {CheckmarkIcon}from'@baseline-ui/icons/24';/**
|
|
2
|
+
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|
|
5
|
+
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
|
|
6
|
+
* UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
|
|
7
|
+
* This notice may not be removed from this file.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
var Pe=createContext({}),Xe=j(c,function(e$1,t){return [e$1,t]=e(e$1,t,Pe),jsx(h.header,{className:"react-aria-Header",...e$1,ref:t,children:e$1.children})});var qe=createContext({});var mt=createContext(null),se=createContext(null),ft=forwardRef(function(e$1,t){[e$1,t]=e(e$1,t,mt);let o=useContext(se);return o?jsx(Ir,{state:o,props:e$1,listBoxRef:t}):jsx(i,{content:jsx(l,{...e$1}),children:n=>jsx(yo,{props:e$1,listBoxRef:t,collection:n})})});function yo({props:r,listBoxRef:e,collection:t}){r={...r,collection:t,children:null,items:null};let{layoutDelegate:o}=useContext(p),n=b({...r,layoutDelegate:o});return jsx(Ir,{state:n,props:r,listBoxRef:e})}function Ir({state:r,props:e$2,listBoxRef:t}){[e$2,t]=e(e$2,t,b$1);let{dragAndDropHooks:o,layout:n="stack",orientation:i="vertical",filter:l}=e$2,s=c$1(r,l),{collection:c,selectionManager:u}=s,a$5=!!o?.useDraggableCollectionState,d$1=!!o?.useDroppableCollectionState,{direction:y}=b$2(),{disabledBehavior:p$1,disabledKeys:M}=u,P=a({usage:"search",sensitivity:"base"}),{isVirtualized:m$1,layoutDelegate:b,dropTargetDelegate:T,CollectionRoot:v}=useContext(p),E=useMemo(()=>e$2.keyboardDelegate||new b$3({collection:c,collator:P,ref:t,disabledKeys:M,disabledBehavior:p$1,layout:n,orientation:i,direction:y,layoutDelegate:b}),[c,P,t,p$1,M,i,y,e$2.keyboardDelegate,n,b]),{listBoxProps:w}=c$2({...e$2,shouldSelectOnPressUp:a$5||e$2.shouldSelectOnPressUp,keyboardDelegate:E,isVirtualized:m$1},s,t),H=useRef(a$5),f=useRef(d$1);useEffect(()=>{process.env.NODE_ENV!=="production"&&(H.current!==a$5&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),f.current!==d$1&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."));},[a$5,d$1]);let C,O,N,g$1=false,x=null,S=useRef(null);if(a$5&&o){C=o.useDraggableCollectionState({collection:c,selectionManager:u,preview:o.renderDragPreview?S:void 0}),o.useDraggableCollection({},C,t);let Y=o.DragPreview;x=o.renderDragPreview?jsx(Y,{ref:S,children:o.renderDragPreview}):null;}if(d$1&&o){O=o.useDroppableCollectionState({collection:c,selectionManager:u});let Y=o.dropTargetDelegate||T||new o.ListDropTargetDelegate(c,t,{orientation:i,layout:n,direction:y});N=o.useDroppableCollection({keyboardDelegate:E,dropTargetDelegate:Y},O,t),g$1=O.isDropTarget({type:"root"});}let{focusProps:z,isFocused:_,isFocusVisible:B}=a$1(),R=s.collection.size===0,q={isDropTarget:g$1,isEmpty:R,isFocused:_,isFocusVisible:B,layout:e$2.layout||"stack",orientation:i,state:s},ae=c$3({...e$2,children:void 0,defaultClassName:"react-aria-ListBox",values:q}),oe=null;R&&e$2.renderEmptyState&&(oe=jsx("div",{role:"option",style:{display:"contents"},children:e$2.renderEmptyState(q)}));let J=a$2(e$2,{global:true});return jsx(a$3,{children:jsxs(h.div,{...c$4(J,ae,w,z,N?.collectionProps),ref:t,slot:e$2.slot||void 0,onScroll:e$2.onScroll,"data-drop-target":g$1||void 0,"data-empty":R||void 0,"data-focused":_||void 0,"data-focus-visible":B||void 0,"data-layout":e$2.layout||"stack","data-orientation":i,children:[jsx(b$4,{values:[[mt,e$2],[se,s],[a$4,{dragAndDropHooks:o,dragState:C,dropState:O}],[qe,{elementType:"div"}],[b$5,{render:Po}],[m,{name:"ListBoxSection",render:wr}]],children:jsx(g,{children:jsx(v,{collection:c,scrollRef:t,persistedKeys:e$1(u,o,O),renderDropIndicator:d(o,O)})})}),oe,x]})})}function wr(r,e,t,o="react-aria-ListBoxSection"){let n=useContext(se),{dragAndDropHooks:i,dropState:l}=useContext(a$4),{CollectionBranch:s}=useContext(p),[c,u]=f(),{headingProps:a,groupProps:d$1}=f$1({heading:u,"aria-label":r["aria-label"]??void 0}),y=c$3({...r,id:void 0,children:void 0,defaultClassName:o,values:void 0}),p$1=a$2(r,{global:true});return delete p$1.id,jsx(h.section,{...c$4(p$1,y,d$1),ref:e,children:jsx(Pe.Provider,{value:{...a,ref:c},children:jsx(s,{collection:n.collection,parent:t,renderDropIndicator:d(i,l)})})})}var gt=k(f$2,wr),yt=j(e$2,function(e,t,o){let n=a$5(t),i=useContext(se),{dragAndDropHooks:l,dragState:s,dropState:c}=useContext(a$4),u=s&&!(s.isDisabled||s.selectionManager.isDisabled(o.key)),{optionProps:a,labelProps:d,descriptionProps:y,...p}=e$3({key:o.key,"aria-label":e?.["aria-label"]},i,n),{hoverProps:M,isHovered:P}=a$6({isDisabled:!p.allowsSelection&&!p.hasAction&&!u,onHoverStart:o.props.onHoverStart,onHoverChange:o.props.onHoverChange,onHoverEnd:o.props.onHoverEnd}),{keyboardProps:m}=j$1(e),{focusProps:b}=a$7(e),T=null;s&&l&&(T=l.useDraggableItem({key:o.key,hasAction:p.hasAction},s,n));let v=null;c&&l&&(v=l.useDroppableItem({target:{type:"item",key:o.key,dropPosition:"on"}},c,n));let E=s&&s.isDragging(o.key),w=c$3({...e,id:void 0,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...p,isHovered:P,selectionMode:i.selectionManager.selectionMode,selectionBehavior:i.selectionManager.selectionBehavior,allowsDragging:!!s,isDragging:E,isDropTarget:v?.isDropTarget}});useEffect(()=>{!o.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.");},[o.textValue]);let H=e.href?h.a:h.div,f=a$2(e,{global:true});return delete f.id,delete f.onClick,e.href&&a.tabIndex==null&&(a.tabIndex=-1),jsx(H,{...c$4(f,w,a,M,m,b,T?.dragProps,v?.dropProps),ref:n,"data-allows-dragging":!!s||void 0,"data-selected":p.isSelected||void 0,"data-disabled":p.isDisabled||void 0,"data-hovered":P||void 0,"data-focused":p.isFocused||void 0,"data-focus-visible":p.isFocusVisible||void 0,"data-pressed":p.isPressed||void 0,"data-dragging":E||void 0,"data-drop-target":v?.isDropTarget||void 0,"data-selection-mode":i.selectionManager.selectionMode==="none"?void 0:i.selectionManager.selectionMode,children:jsx(b$4,{values:[[a$8,{slots:{[a$9]:d,label:d,description:y}}],[h$1,{isSelected:p.isSelected}]],children:w.children})})});function Po(r,e){e=a$5(e);let{dragAndDropHooks:t,dropState:o}=useContext(a$4),{dropIndicatorProps:n,isHidden:i,isDropTarget:l}=t.useDropIndicator(r,o,e);return i?null:jsx(xo,{...r,dropIndicatorProps:n,isDropTarget:l,ref:e})}function bo(r,e){let{dropIndicatorProps:t,isDropTarget:o,...n}=r,i=c$3({...n,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:o}});return jsx(Fragment,{children:jsx(h.div,{...t,...i,role:"option",ref:e,"data-drop-target":o||void 0})})}var xo=forwardRef(bo);j(d$1,function(e,t,o){let n=useContext(se),{isLoading:i,onLoadMore:l,scrollOffset:s,...c}=e,u=useRef(null),a=useMemo(()=>({onLoadMore:l,collection:n?.collection,sentinelRef:u,scrollOffset:s}),[l,s,n?.collection]);k$1(a,u);let d=c$3({...c,id:void 0,children:o.rendered,defaultClassName:"react-aria-ListBoxLoadingIndicator",values:void 0}),y={tabIndex:-1};return jsxs(Fragment,{children:[jsx("div",{style:{position:"relative",width:0,height:0},inert:l$1(true),children:jsx("div",{"data-testid":"loadMoreSentinel",ref:u,style:{position:"absolute",height:1,width:1}})}),i&&d.children&&jsx(Fragment,{children:jsx(h.div,{...c$4(a$2(e,{global:true}),y),...d,role:"option",ref:t,children:d.children})})]})});var Je=({renderOption:r,optionClassName:e,optionStyle:t,renderSectionHeader:o,sectionClassName:n,sectionStyle:i,showSectionHeader:l,withSectionHeaderPadding:s}={})=>Object.values({renderOption:r,optionClassName:e,optionStyle:t,renderSectionHeader:o,sectionClassName:n,sectionStyle:i,showSectionHeader:l,withSectionHeaderPadding:s});var Ti=a$a({defaultClassName:"_1fjxa6ld _1yep5z6m8 _1yep5z6m7 _1yep5z6is _1yep5z6lq",variantClassNames:{isDropTarget:{true:"_1yep5z614w"},orientation:{vertical:"_1yep5z618m",horizontal:"_1yep5z618n"}},defaultVariants:{},compoundVariants:[]}),Fr="_1fjxa6la _1yep5z6m6 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja",Br=a$a({defaultClassName:"_1fjxa6lb _1yep5z6ez _1yep5z6da _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6f2"}},defaultVariants:{},compoundVariants:[]}),Hr=a$a({defaultClassName:"_1fjxa6l3 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jh _1yep5z6ji _1yep5z6jj _1yep5z6jz _1yep5z6k0 _1yep5z6k1 _1yep5z6kz _1yep5z6l0 _1yep5z6l1 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6dy _1yep5z6ey _1yep5z6lq _1yep5z6lt _1yep5z6m6 _1yep5z6m5 _1yep5z6m3 _1yep5z6m0",variantClassNames:{isSelected:{},isFocused:{true:"_1yep5z614w _1yep5z618s _1yep5z618q _1yep5z618t _1yep5z615c _1yep5z615d _1yep5z615e"},isFirstChild:{true:"_1fjxa6l5"},isLastChild:{true:"_1fjxa6l6"},isHovered:{true:"_1yep5z612t",false:"_1yep5z612s"},isDisabled:{true:"z9nup82 _1yep5z611l"}},defaultVariants:{},compoundVariants:[]}),Nr="_1fjxa6lh _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6jz _1yep5z6k0 _1yep5z6k1",zr="_1fjxa6l1",_r="_1fjxa6l2",Kr="_1fjxa6l0";var Vr={"ar-AE":{longPressMessage:"\u0627\u0636\u063A\u0637 \u0645\u0637\u0648\u0644\u0627\u064B \u0623\u0648 \u0627\u0636\u063A\u0637 \u0639\u0644\u0649 Alt + \u0627\u0644\u0633\u0647\u0645 \u0644\u0623\u0633\u0641\u0644 \u0644\u0641\u062A\u062D \u0627\u0644\u0642\u0627\u0626\u0645\u0629"},"bg-BG":{longPressMessage:"\u041D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E \u0438\u043B\u0438 \u043D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 Alt+ \u0441\u0442\u0440\u0435\u043B\u043A\u0430 \u043D\u0430\u0434\u043E\u043B\u0443, \u0437\u0430 \u0434\u0430 \u043E\u0442\u0432\u043E\u0440\u0438\u0442\u0435 \u043C\u0435\u043D\u044E\u0442\u043E"},"cs-CZ":{longPressMessage:"Dlouh\xFDm stiskem nebo stisknut\xEDm kl\xE1ves Alt + \u0161ipka dol\u016F otev\u0159ete nab\xEDdku"},"da-DK":{longPressMessage:"Langt tryk eller tryk p\xE5 Alt + pil ned for at \xE5bne menuen"},"de-DE":{longPressMessage:"Dr\xFCcken Sie lange oder dr\xFCcken Sie Alt + Nach-unten, um das Men\xFC zu \xF6ffnen"},"el-GR":{longPressMessage:"\u03A0\u03B9\u03AD\u03C3\u03C4\u03B5 \u03C0\u03B1\u03C1\u03B1\u03C4\u03B5\u03C4\u03B1\u03BC\u03AD\u03BD\u03B1 \u03AE \u03C0\u03B1\u03C4\u03AE\u03C3\u03C4\u03B5 Alt + \u03BA\u03AC\u03C4\u03C9 \u03B2\u03AD\u03BB\u03BF\u03C2 \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03B1\u03BD\u03BF\u03AF\u03BE\u03B5\u03C4\u03B5 \u03C4\u03BF \u03BC\u03B5\u03BD\u03BF\u03CD"},"en-US":{longPressMessage:"Long press or press Alt + ArrowDown to open menu"},"es-ES":{longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el men\xFA"},"et-EE":{longPressMessage:"Men\xFC\xFC avamiseks vajutage pikalt v\xF5i vajutage klahve Alt + allanool"},"fi-FI":{longPressMessage:"Avaa valikko painamalla pohjassa tai n\xE4pp\xE4inyhdistelm\xE4ll\xE4 Alt + Alanuoli"},"fr-FR":{longPressMessage:"Appuyez de mani\xE8re prolong\xE9e ou appuyez sur Alt\xA0+\xA0Fl\xE8che vers le bas pour ouvrir le menu."},"he-IL":{longPressMessage:"\u05DC\u05D7\u05E5 \u05DC\u05D7\u05D9\u05E6\u05D4 \u05D0\u05E8\u05D5\u05DB\u05D4 \u05D0\u05D5 \u05D4\u05E7\u05E9 Alt + ArrowDown \u05DB\u05D3\u05D9 \u05DC\u05E4\u05EA\u05D5\u05D7 \u05D0\u05EA \u05D4\u05EA\u05E4\u05E8\u05D9\u05D8"},"hr-HR":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"},"hu-HU":{longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele ny\xEDl gombot a men\xFC megnyit\xE1s\xE1hoz"},"it-IT":{longPressMessage:"Premi a lungo o premi Alt + Freccia gi\xF9 per aprire il menu"},"ja-JP":{longPressMessage:"\u9577\u62BC\u3057\u307E\u305F\u306F Alt+\u4E0B\u77E2\u5370\u30AD\u30FC\u3067\u30E1\u30CB\u30E5\u30FC\u3092\u958B\u304F"},"ko-KR":{longPressMessage:"\uAE38\uAC8C \uB204\uB974\uAC70\uB098 Alt + \uC544\uB798\uCABD \uD654\uC0B4\uD45C\uB97C \uB20C\uB7EC \uBA54\uB274 \uC5F4\uAE30"},"lt-LT":{longPressMessage:"Nor\u0117dami atidaryti meniu, nuspaud\u0119 palaikykite arba paspauskite \u201EAlt + ArrowDown\u201C."},"lv-LV":{longPressMessage:"Lai atv\u0113rtu izv\u0113lni, turiet nospiestu vai nospiediet tausti\u0146u kombin\u0101ciju Alt + lejupv\u0113rst\u0101 bulti\u0146a"},"nb-NO":{longPressMessage:"Langt trykk eller trykk Alt + PilNed for \xE5 \xE5pne menyen"},"nl-NL":{longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"},"pl-PL":{longPressMessage:"Naci\u015Bnij i przytrzymaj lub naci\u015Bnij klawisze Alt + Strza\u0142ka w d\xF3\u0142, aby otworzy\u0107 menu"},"pt-BR":{longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"},"pt-PT":{longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"},"ro-RO":{longPressMessage:"Ap\u0103sa\u021Bi lung sau ap\u0103sa\u021Bi pe Alt + s\u0103geat\u0103 \xEEn jos pentru a deschide meniul"},"ru-RU":{longPressMessage:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u0438 \u0443\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0439\u0442\u0435 \u0438\u043B\u0438 \u043D\u0430\u0436\u043C\u0438\u0442\u0435 Alt + \u0421\u0442\u0440\u0435\u043B\u043A\u0430 \u0432\u043D\u0438\u0437, \u0447\u0442\u043E\u0431\u044B \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u043C\u0435\u043D\u044E"},"sk-SK":{longPressMessage:"Ponuku otvor\xEDte dlh\xFDm stla\u010Den\xEDm alebo stla\u010Den\xEDm kl\xE1vesu Alt + kl\xE1vesu so \u0161\xEDpkou nadol"},"sl-SI":{longPressMessage:"Za odprtje menija pritisnite in dr\u017Eite gumb ali pritisnite Alt+pu\u0161\u010Dica navzdol"},"sr-SP":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"},"sv-SE":{longPressMessage:"H\xE5ll nedtryckt eller tryck p\xE5 Alt + pil ned\xE5t f\xF6r att \xF6ppna menyn"},"tr-TR":{longPressMessage:"Men\xFCy\xFC a\xE7mak i\xE7in uzun bas\u0131n veya Alt + A\u015Fa\u011F\u0131 Ok tu\u015Funa bas\u0131n"},"uk-UA":{longPressMessage:"\u0414\u043E\u0432\u0433\u043E \u0430\u0431\u043E \u0437\u0432\u0438\u0447\u0430\u0439\u043D\u043E \u043D\u0430\u0442\u0438\u0441\u043D\u0456\u0442\u044C \u043A\u043E\u043C\u0431\u0456\u043D\u0430\u0446\u0456\u044E \u043A\u043B\u0430\u0432\u0456\u0448 Alt \u0456 \u0441\u0442\u0440\u0456\u043B\u043A\u0430 \u0432\u043D\u0438\u0437, \u0449\u043E\u0431 \u0432\u0456\u0434\u043A\u0440\u0438\u0442\u0438 \u043C\u0435\u043D\u044E"},"zh-CN":{longPressMessage:"\u957F\u6309\u6216\u6309 Alt + \u5411\u4E0B\u65B9\u5411\u952E\u4EE5\u6253\u5F00\u83DC\u5355"},"zh-TW":{longPressMessage:"\u9577\u6309\u6216\u6309 Alt+\u5411\u4E0B\u9375\u4EE5\u958B\u555F\u529F\u80FD\u8868"}};function jr(r){let{onContextMenu:e}=r,t=useRef(false),{longPressProps:o}=a$q({onLongPressStart(){t.current=false;},onLongPress(n){t.current?t.current=false:e?.({target:n.target,x:n.x,y:n.y});}});return e?{contextMenuProps:c$4(h$3()?o:{},{onContextMenu(n){n.stopPropagation(),n.preventDefault(),t.current=true;let i=n.currentTarget.getBoundingClientRect();e({target:n.currentTarget,x:n.clientX-i.x,y:n.clientY-i.y});},onKeyDown(n){if(e$7()&&n.ctrlKey&&n.key==="Enter"){t.current=false;let i=n.currentTarget;n.stopPropagation(),setTimeout(()=>{if(t.current)t.current=false;else {let l=i.getBoundingClientRect();e({target:i,x:l.width/2,y:l.height/2});}},10);}}})}:{contextMenuProps:{}}}function Pt(r,e,t){let{type:o="menu",isDisabled:n,trigger:i="press"}=r,l=c$6(),{triggerProps:s,overlayProps:c}=a$p({type:o},e,t),u=(m,b,T="first")=>{if(!m||b.isDefaultPrevented())return false;e.toggle(T);},{keyboardProps:a}=j$1({isDisabled:n,shortcuts:{Enter:m=>u(i!=="longPress",m,"first")," ":m=>u(i!=="longPress",m,"first"),ArrowDown:m=>u(i!=="longPress",m,"first"),ArrowUp:m=>u(i!=="longPress",m,"last"),"Alt+Enter":m=>u(i==="longPress",m,"first"),"Alt+ ":m=>u(i==="longPress",m,"first"),"Alt+ArrowDown":m=>u(true,m,"first"),"Alt+ArrowUp":m=>u(true,m,"last")}}),d=b$9(Vr,"@react-aria/menu"),{longPressProps:y}=a$q({isDisabled:n||i!=="longPress",accessibilityDescription:d.format("longPressMessage"),ref:t,onLongPressStart(){e.close();},onLongPress(){e.open("first");}}),p={preventFocusOnPress:true,onPressStart(m){m.pointerType!=="touch"&&m.pointerType!=="keyboard"&&!n&&(a$k(m.target),e.open(m.pointerType==="virtual"?"first":null));},onPress(m){m.pointerType==="touch"&&!n&&(a$k(m.target),e.toggle());}};delete s.onPress;let{contextMenuProps:M}=jr({onContextMenu(m){let b=m.target.getBoundingClientRect();e.setPoint({x:b.x+m.x,y:b.y+m.y}),e.open();}});useEffect(()=>{if(e.isOpen&&i==="contextMenu"){let m=b=>{(b.button===2||b.button===0&&b.ctrlKey===true)&&j$2(b)===document.body&&e.close();};return document.addEventListener("mousedown",m),()=>document.removeEventListener("mousedown",m)}},[e,i]);let P;if(i==="press")P={...p,...a};else if(i==="longPress")P={...y,...a};else if(i==="contextMenu"){P=M;let{"aria-haspopup":m,"aria-expanded":b,"aria-controls":T,...v}=s;s=v;}return {menuTriggerProps:{...s,...P,id:l},menuProps:{...c,"aria-labelledby":l,autoFocus:e.focusStrategy||true,onClose:e.close}}}var Ye=new WeakMap;function bt(r,e,t){let{shouldFocusWrap:o=true,onKeyDown:n,onKeyUp:i,...l}=r;!r["aria-label"]&&!r["aria-labelledby"]&&process.env.NODE_ENV!=="production"&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let s=a$2(r,{labelable:true}),{listProps:c}=a$m({...l,ref:t,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,shouldFocusWrap:o,linkBehavior:"override"});return Ye.set(e,{onClose:r.onClose,onAction:r.onAction,shouldUseVirtualFocus:r.shouldUseVirtualFocus}),{menuProps:c$4(s,{onKeyDown:n,onKeyUp:i},{role:"menu",...c,onKeyDown:u=>{(u.key!=="Escape"||r.shouldUseVirtualFocus)&&c.onKeyDown?.(u);}})}}function xt(r$1,e,t){let{id:o$1,key:n,closeOnSelect:i,shouldCloseOnSelect:l,isVirtualized:s$1,"aria-haspopup":c,onPressStart:u,onPressUp:a,onPress:d,onPressChange:y,onPressEnd:p,onClick:M,onHoverStart:P,onHoverChange:m,onHoverEnd:b,onKeyDown:T,onKeyUp:v,onFocus:E,onFocusChange:w,onBlur:H,selectionManager:f=e.selectionManager}=r$1,C=!!c,O=C&&r$1["aria-expanded"]==="true",N=r$1.isDisabled??f.isDisabled(n),g=r$1.isSelected??f.isSelected(n),x=Ye.get(e),S=e.collection.getItem(n),z=r$1.onClose||x.onClose,_=o(),B=()=>{if(!C&&(S?.props?.onAction?S.props.onAction():r$1.onAction&&r$1.onAction(n),x.onAction)){let h=x.onAction;h(n,S?.value);}},R="menuitem";C||(f.selectionMode==="single"?R="menuitemradio":f.selectionMode==="multiple"&&(R="menuitemcheckbox"));let q=e$4([],t),ae=e$4([],t),oe=e$4([],t),J={id:o$1,"aria-disabled":N||void 0,role:R,"aria-label":r$1["aria-label"],"aria-labelledby":q,"aria-describedby":[r$1["aria-describedby"],ae,oe].filter(Boolean).join(" ")||void 0,"aria-controls":r$1["aria-controls"],"aria-haspopup":c,"aria-expanded":r$1["aria-expanded"]};if(f.selectionMode!=="none"&&!C&&(J["aria-checked"]=g),s$1){let h=Number(S?.index);J["aria-posinset"]=Number.isNaN(h)?void 0:h+1,J["aria-setsize"]=d$3(e.collection);}let Y=useRef(false),Re=h=>{y?.(h),Y.current=h;},Z=useRef(null),D=h=>{h.pointerType!=="keyboard"&&(Z.current={pointerType:h.pointerType}),h.pointerType==="mouse"&&(Y.current||h.target.click()),a?.(h);},de=h=>{M?.(h),B(),s(h,_,S.props.href,S?.props.routerOptions);let ce=Z.current?.pointerType==="keyboard"?Z.current?.key==="Enter"||f.selectionMode==="none"||f.isLink(n):f.selectionMode!=="multiple"||f.isLink(n);ce=l??i??ce,z&&!C&&ce&&z(),Z.current=null;},{itemProps:ne,isFocused:Ht}=d$4({id:o$1,selectionManager:f,key:n,ref:t,shouldSelectOnPressUp:true,allowsDifferentPressOrigin:true,linkBehavior:"none",shouldUseVirtualFocus:x.shouldUseVirtualFocus}),{pressProps:lo,isPressed:so}=d$5({onPressStart:u,onPress:d,onPressUp:D,onPressChange:Re,onPressEnd:p,isDisabled:N}),{hoverProps:ao}=a$6({isDisabled:N,onHoverStart(h){!b$6()&&!(O&&c)&&(f.setFocused(true),f.setFocusedKey(n)),P?.(h);},onHoverChange:m,onHoverEnd:b}),{keyboardProps:uo}=j$1({shortcuts:{" ":h=>{Z.current={pointerType:"keyboard",key:" "},j$2(h).click(),d$6("keyboard");},Enter:h=>{Z.current={pointerType:"keyboard",key:"Enter"};let ce=j$2(h);if(ce.tagName!=="A"){ce.click(),d$6("keyboard");return}return d$6("keyboard"),{shouldPreventDefault:false,shouldContinuePropagation:false}}},onKeyDown:T,onKeyUp:v}),{focusableProps:co}=c$7({onBlur:H,onFocus:E,onFocusChange:w},t),Nt=a$2(S?.props);delete Nt.id;let po=r(S?.props);return {menuItemProps:{...J,...c$4(Nt,po,C?{onFocus:ne.onFocus,"data-collection":ne["data-collection"],"data-key":ne["data-key"]}:ne,lo,ao,uo,co,x.shouldUseVirtualFocus||C?{onMouseDown:h=>h.preventDefault()}:void 0,N?void 0:{onClick:de}),tabIndex:ne.tabIndex!=null&&O&&!x.shouldUseVirtualFocus?-1:ne.tabIndex},labelProps:{id:q},descriptionProps:{id:ae},keyboardShortcutProps:{id:oe},isFocused:Ht,isFocusVisible:Ht&&f.isFocused&&b$6()&&!O,isSelected:g,isPressed:so,isDisabled:N}}function vt(r){let{heading:e,"aria-label":t}=r,o=e$4([!!e]);return {itemProps:{role:"presentation"},headingProps:e?{id:o,role:"presentation"}:{},groupProps:{role:"group","aria-label":t,"aria-labelledby":e?o:void 0}}}var Ze=2,ho=50,Do=1e3,Wr=Math.PI/12;function Gr(r){let{menuRef:e,submenuRef:t,isOpen:o,isDisabled:n}=r,i=useRef(void 0),l=useRef(void 0),s=useRef(0),c=useRef(void 0),u$1=useRef(void 0),a=useRef(void 0),d=useRef(2),[y,p]=useState(false);e$6({ref:o?t:void 0,onResize:()=>{t.current&&(l.current=t.current.getBoundingClientRect(),a.current=void 0);}});let P=()=>{p(false),d.current=Ze,i.current=void 0;},m=f$5(),b=u(T=>{y&&T.preventDefault();});useEffect(()=>{y&&e.current?e.current.style.pointerEvents="none":e.current.style.pointerEvents="";},[e,y]),a$j(()=>{let T=t.current,v=e.current;if(n||!T||!o||m!=="pointer"||!v){P();return}l.current=T.getBoundingClientRect();let E=H=>{if(H.pointerType==="touch"||H.pointerType==="pen")return;let f=Date.now();if(f-s.current<ho)return;clearTimeout(c.current),clearTimeout(u$1.current);let{clientX:C,clientY:O}=H;if(!i.current){i.current={x:C,y:O};return}if(!l.current)return;if(a.current||(a.current=C>l.current.right?"left":"right"),C<v.getBoundingClientRect().left||C>v.getBoundingClientRect().right||O<v.getBoundingClientRect().top||O>v.getBoundingClientRect().bottom){P();return}let N=i.current.x,g=i.current.y,x=a.current==="right"?l.current.left-N:N-l.current.right,S=Math.atan2(g-l.current.top,x)+Wr,z=Math.atan2(g-l.current.bottom,x)-Wr,_=Math.atan2(g-O,a.current==="left"?-(C-N):C-N),B=_<S&&_>z;d.current=B?Math.min(d.current+1,Ze):Math.max(d.current-1,0),d.current>=Ze?p(true):p(false),s.current=f,i.current={x:C,y:O},B&&(c.current=setTimeout(()=>{P(),u$1.current=setTimeout(()=>{let R=a$o(v).elementFromPoint(C,O);R&&h$2(v,R)&&R.dispatchEvent(new PointerEvent("pointerover",{bubbles:true,cancelable:true}));},100);},Do));},w=b$8(v);return w.addEventListener("pointermove",E),process.env.NODE_ENV!=="test"&&w.addEventListener("pointerdown",b,true),()=>{w.removeEventListener("pointermove",E),process.env.NODE_ENV!=="test"&&w.removeEventListener("pointerdown",b,true),clearTimeout(c.current),clearTimeout(u$1.current),d.current=Ze;}},[n,o,e,m,p,t]);}function St(r,e,t){let{parentMenuRef:o,submenuRef:n,type:i="menu",isDisabled:l,delay:s=200,shouldUseVirtualFocus:c}=r,u=c$6(),a=c$6(),{direction:d}=b$2(),y=useRef(void 0),p=useCallback(()=>{y.current&&(clearTimeout(y.current),y.current=void 0);},[y]),M=useCallback(f=>{p(),e.open(f);},[e,p]),P=useCallback(()=>{p(),e.close();},[e,p]);a$j(()=>()=>{p();},[p]);let{keyboardProps:m}=j$1({shortcuts:{ArrowLeft:f=>{if(!m$1(f.currentTarget))return false;if(d==="ltr"&&h$2(f.currentTarget,j$2(f))){P(),!c&&t.current&&a$k(t.current);return}return false},ArrowRight:f=>{if(!m$1(f.currentTarget))return false;if(d==="rtl"&&h$2(f.currentTarget,j$2(f))){P(),!c&&t.current&&a$k(t.current);return}return false},Escape:f=>{if(!m$1(f.currentTarget))return false;if(h$2(n.current,j$2(f))){P(),!c&&t.current&&a$k(t.current);return}return false}}}),b={id:a,"aria-labelledby":u,submenuLevel:e.submenuLevel,...i==="menu"&&{onClose:e.closeAll,autoFocus:e.focusStrategy??void 0,...m}},{keyboardProps:T}=j$1({shortcuts:{ArrowRight:()=>{if(!l)if(d==="ltr"){e.isOpen||M("first"),i==="menu"&&n?.current&&i$1()===t?.current&&a$k(n.current);return}else if(e.isOpen){P();return}else return false;return false},ArrowLeft:()=>{if(!l)if(d==="rtl"){e.isOpen||M("first"),i==="menu"&&n?.current&&i$1()===t?.current&&a$k(n.current);return}else if(e.isOpen){P();return}else return false;return false}}}),v=f=>{!l&&(f.pointerType==="virtual"||f.pointerType==="keyboard")&&M("first");},E=f=>{!l&&(f.pointerType==="touch"||f.pointerType==="mouse")&&M();},w=f=>{l||(f&&!e.isOpen?y.current||(y.current=setTimeout(()=>{M();},s)):f||p());};a$l(o,"focusin",f=>{e.isOpen&&h$2(o.current,j$2(f))&&j$2(f)!==t.current&&P();});let H=f=>f!==t.current;return Gr({menuRef:o,submenuRef:n,isOpen:e.isOpen,isDisabled:l}),{submenuTriggerProps:{onKeyDown:T.onKeyDown,onKeyUp:T.onKeyUp,id:u,"aria-controls":e.isOpen?a:void 0,"aria-haspopup":l?void 0:i,"aria-expanded":e.isOpen?"true":"false",onPressStart:v,onPress:E,onHoverChange:w,isOpen:e.isOpen},submenuProps:b,popoverProps:{isNonModal:true,shouldCloseOnInteractOutside:H}}}function Qe(r){let e=a$n(r),[t,o]=useState(null),[n,i]=useState([]),l=()=>{i([]),e.close();};return {focusStrategy:t,...e,open(u=null){o(u),e.open();},toggle(u=null){o(u),e.toggle();},close(){l();},expandedKeysStack:n,openSubmenu:(u,a)=>{i(d=>a>d.length?d:[...d.slice(0,a),u]);},closeSubmenu:(u,a)=>{i(d=>d[a]===u?d.slice(0,a):d);}}}function Ct(r,e){let{triggerKey:t}=r,{expandedKeysStack:o,openSubmenu:n,closeSubmenu:i,close:l}=e,[s]=useState(o?.length),c=useMemo(()=>o[s]===t,[o,t,s]),[u,a]=useState(null),d=useCallback(M=>{a(M??null),n(t,s);},[n,s,t]),y=useCallback(()=>{a(null),i(t,s);},[i,s,t]),p=useCallback(M=>{a(M??null),c?y():d(M);},[y,d,c]);return useMemo(()=>({focusStrategy:u,isOpen:c,open:d,close:y,closeAll:l,submenuLevel:s,setOpen:()=>{},toggle:p,point:null,setPoint:()=>{}}),[c,d,y,l,u,p,s])}var ht=createContext({});forwardRef(function(e$1,t){return [e$1,t]=e(e$1,t,ht),jsx(h.kbd,{dir:"ltr",...e$1,ref:t})});var wo=createContext({}),ps=forwardRef(function(e$1,t){[e$1,t]=e(e$1,t,wo);let{children:o,level:n=3,className:i,...l}=e$1,s=h[`h${n}`];return jsx(s,{...l,ref:t,className:i??"react-aria-Heading",children:o})});var Dt=createContext(null);createContext(null);createContext(null);var Lt=createContext(null);var rt=createContext(null),ve=createContext(null),Le=createContext(null),tt=createContext(null);function Bo(r){let e=Qe(r),t=useRef(null),{menuTriggerProps:o,menuProps:n}=Pt({...r,type:"menu"},e,t),i=useRef(null);return k$2()?null:jsx(b$4,{values:[[rt,{...n,ref:i}],[Lt,e],[Le,e],[Dt,{trigger:"MenuTrigger",triggerRef:t,scrollRef:i,placement:"bottom start","aria-labelledby":n["aria-labelledby"],offset:r.trigger==="contextMenu"?0:void 0}]],children:jsx(b$a,{...o,ref:t,isPressed:e.isOpen,children:r.children})})}var eo=createContext(null),Rt=class extends a$i{static type="submenutrigger";filter(e,t,o){let n=e.getItem(this.firstChildKey);if(n&&o(n.textValue,this)){let i=this.clone();return t.addDescendants(i,e),i}return null}},Ho=k(Rt,(r,e,t)=>{let{CollectionBranch:o}=useContext(p),n=useContext(ve),i=useContext(Le),l=Ct({triggerKey:t.key},i),s=useRef(null),c=a$5(e),{parentMenuRef:u,shouldUseVirtualFocus:a}=useContext(eo),{submenuTriggerProps:d,submenuProps:y,popoverProps:p$1}=St({parentMenuRef:u,submenuRef:s,delay:r.delay,shouldUseVirtualFocus:a},l,c);return jsxs(b$4,{values:[[be,{...d,onAction:void 0,ref:c}],[rt,{ref:s,...y}],[Lt,l],[Dt,{trigger:"SubmenuTrigger",triggerRef:c,placement:"end top","aria-labelledby":y["aria-labelledby"],...p$1}]],children:[jsx(o,{collection:n.collection,parent:t}),r.children[1]]})},r=>r.children[0]),No=forwardRef(function(e$1,t){return [e$1,t]=e(e$1,t,rt),jsx(i,{content:jsx(l,{...e$1}),children:o=>jsx(zo,{props:e$1,collection:o,menuRef:t})})});function zo({props:r,collection:e$1,menuRef:t}){[r,t]=e(r,t,b$1);let{filter:o,...n}=r,i=useMemo(()=>o?e$1.filter(o):e$1,[e$1,o]),l=a$b({...r,collection:i,children:void 0}),s=useContext(Le),{isVirtualized:c,CollectionRoot:u}=useContext(p),{menuProps:a}=bt({...r,isVirtualized:c,onClose:r.onClose||s?.close},l,t),d=c$3({...r,children:void 0,defaultClassName:"react-aria-Menu",values:{isEmpty:l.collection.size===0}}),y=null;l.collection.size===0&&r.renderEmptyState&&(y=jsx("div",{role:"menuitem",style:{display:"contents"},children:r.renderEmptyState()}));let p$1=a$2(r,{global:true});return jsx(a$3,{children:jsxs(h.div,{...c$4(p$1,d,a),ref:t,slot:r.slot||void 0,"data-empty":l.collection.size===0||void 0,onScroll:r.onScroll,children:[jsx(b$4,{values:[[ve,l],[qe,{elementType:"div"}],[m,{name:"MenuSection",render:to}],[eo,{parentMenuRef:t,shouldUseVirtualFocus:n?.shouldUseVirtualFocus}],[be,{shouldCloseOnSelect:r.shouldCloseOnSelect}],[b$1,null],[c$5,null],[tt,l.selectionManager],[Le,s??Qe({})]],children:jsx(g,{children:jsx(u,{collection:l.collection,persistedKeys:q(l.selectionManager.focusedKey),scrollRef:t})})}),y]})})}var Et=class extends f$3{parent;constructor(e,t){super(e.collection,t),this.parent=e;}get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,t){return this.parent.setFocusedKey(e,t)}setFocused(e){this.parent.setFocused(e);}get childFocusStrategy(){return this.parent.childFocusStrategy}};function to(r,e,t,o="react-aria-MenuSection"){let n=useContext(ve),{CollectionBranch:i}=useContext(p),[l,s]=f(),{headingProps:c,groupProps:u}=vt({heading:s,"aria-label":t.props["aria-label"]??void 0}),a=c$3({...r,id:void 0,children:void 0,defaultClassName:o,className:t.props?.className,style:t.props?.style,values:void 0}),d=useContext(tt),y=a$c(r),p$1=r.selectionMode!=null?new Et(d,y):d,M=d$2(be)?.shouldCloseOnSelect,P=a$2(r,{global:true});return delete P.id,jsx(h.section,{...c$4(P,a,u),ref:e,children:jsx(b$4,{values:[[Pe,{...c,ref:l}],[tt,p$1],[be,{shouldCloseOnSelect:r.shouldCloseOnSelect??M}]],children:jsx(i,{collection:n.collection,parent:t})})})}var Ot=k(f$2,to),be=createContext(null),At=j(e$2,function(e$1,t,o){[e$1,t]=e(e$1,t,be);let n=d$2(be)?.id,i=useContext(ve),l=a$5(t),s=useContext(tt),{isVirtualized:c}=useContext(p),{menuItemProps:u,labelProps:a,descriptionProps:d,keyboardShortcutProps:y,...p$1}=xt({...e$1,id:n,key:o.key,selectionManager:s,isVirtualized:c},i,l),{hoverProps:M,isHovered:P}=a$6({isDisabled:p$1.isDisabled}),m=c$3({...e$1,id:void 0,children:o.rendered,defaultClassName:"react-aria-MenuItem",values:{...p$1,isHovered:P,isFocusVisible:p$1.isFocusVisible,selectionMode:s.selectionMode,selectionBehavior:s.selectionBehavior,hasSubmenu:!!e$1["aria-haspopup"],isOpen:e$1["aria-expanded"]==="true"}}),b=e$1.href?h.a:h.div,T=a$2(e$1,{global:true});return delete T.id,delete T.onClick,jsx(b,{...c$4(T,m,u,M),ref:l,"data-disabled":p$1.isDisabled||void 0,"data-hovered":P||void 0,"data-focused":p$1.isFocused||void 0,"data-focus-visible":p$1.isFocusVisible||void 0,"data-pressed":p$1.isPressed||void 0,"data-selected":p$1.isSelected||void 0,"data-selection-mode":s.selectionMode==="none"?void 0:s.selectionMode,"data-has-submenu":!!e$1["aria-haspopup"]||void 0,"data-open":e$1["aria-expanded"]==="true"||void 0,children:jsx(b$4,{values:[[a$8,{slots:{[a$9]:a,label:a,description:d}}],[ht,y],[h$1,{isSelected:p$1.isSelected}]],children:m.children})})});j(d$1,function(e,t,o){let n=useContext(ve),{isLoading:i,onLoadMore:l,scrollOffset:s,...c}=e,u=useRef(null),a=useMemo(()=>({onLoadMore:l,collection:n?.collection,sentinelRef:u,scrollOffset:s}),[l,s,n?.collection]);k$1(a,u);let d=c$3({...c,id:void 0,children:o.rendered,defaultClassName:"react-aria-MenuLoadingIndicator",values:void 0}),y={tabIndex:-1};return jsxs(Fragment,{children:[jsx("div",{style:{position:"relative",width:0,height:0},inert:l$1(true),children:jsx("div",{"data-testid":"loadMoreSentinel",ref:u,style:{position:"absolute",height:1,width:1}})}),i&&d.children&&jsx(Fragment,{children:jsx(h.div,{...c$4(a$2(e,{global:true}),y),...d,role:"menuitem",ref:t,children:d.children})})]})});var kt=Me.forwardRef(({section:r,isFirstCollectionItem:e,showSectionHeader:t,renderSectionHeader:o,withSectionHeaderPadding:n,sectionStyle:i,sectionClassName:l$1,componentName:s="ListBox",selectionMode:c,selectedKeys:u,defaultSelectedKeys:a,onSelectionChange:d,disabledKeys:y,disallowEmptySelection:p$1,...M},P)=>{let{isVirtualized:m}=useContext(p),b=o?.(r),T=s==="ListBox"?gt:Ot,v=c==null?{}:{selectionMode:c,selectedKeys:u,defaultSelectedKeys:a,onSelectionChange:d,disabledKeys:y,disallowEmptySelection:p$1};return jsxs(T,{id:r.id,"aria-label":r.title,...v,className:a$e(`BaselineUI-${s}-Section`,zr,m&&!e&&_r,typeof l$1=="function"?l$1(r):l$1),style:typeof i=="function"?i(r):i,ref:P,children:[t?b?jsx(Xe,{className:`BaselineUI-${s}-SectionHeader`,children:b}):jsx(Xe,{className:`BaselineUI-${s}-SectionHeader`,children:jsx(a$d,{className:a$e(Nr,`BaselineUI-${s}-SectionHeaderDefault`),paddingX:"lg",typography:"label.md.semibold",color:"text.primary",paddingInlineStart:n?"5xl":"lg",paddingInlineEnd:"lg",children:r.title})}):null,jsx(l,{items:r.children,dependencies:Je(M),children:E=>jsx(ot,{componentName:s,item:E,...M},E.id)})]})});kt.displayName="ListSection";var Uo=({componentName:r})=>{let{direction:e}=b$2();return jsx(a$d,{"aria-hidden":true,display:"flex",alignItems:"center",color:"icon.secondary",className:`BaselineUI-${r}-SubmenuChevron`,style:e==="rtl"?{transform:"scaleX(-1)"}:void 0,children:jsx(ChevronRightFilledIcon,{size:8})})},Wo=({item:r,isSelected:e,isHovered:t,isFocusVisible:o,isDisabled:n,selectionIcon:i="checkmark",selectionMode:l,componentName:s="ListBox",hasSubmenu:c=false})=>{let u=r.icon,a=l!=="none",d=r.keyboardShortcut??r.description;return jsxs(a$d,{display:"flex",alignItems:"center",gap:"lg",className:a$e(Hr({isHovered:t,isFocused:o,isDisabled:n}),`BaselineUI-${s}-OptionDefault`),children:[jsxs(a$d,{display:"flex",alignItems:"center",flex:1,gap:"lg",children:[a&&i==="checkmark"?jsx("span",{"aria-hidden":true,style:{height:24,width:24},className:`BaselineUI-${s}-SelectionIndicator`,children:e?jsx(CheckmarkIcon,{size:24}):null}):null,a&&i==="checkbox"?jsx("span",{"aria-hidden":true,style:{height:16,width:16},children:jsx("div",{className:c$8({isSelected:e,isIndeterminate:false,isFocusVisible:false,isDisabled:n,isReadOnly:false,hasError:false,isHovered:false}),children:e?jsx(CheckmarkIcon$1,{size:12}):null})}):null,u?jsx(u,{size:24}):null,jsx(b$7,{slot:"label",elementType:"span",children:r.label})]}),c?jsx(Uo,{componentName:s}):d?jsx(b$7,{slot:"description",className:a$e(Br({isDisabled:n}),`BaselineUI-${s}-OptionDescription`),children:d}):null]})},ot=Me.forwardRef(({item:r,optionStyle:e,optionClassName:t,renderOption:o,componentName:n="ListBox",...i},l)=>{let{onPress:s,onKeyDown:c}=useContext(no);return jsx(n==="ListBox"?yt:At,{...c$4(a$f(i),{onPress:a=>s?.(a,r.id),onKeyDown:c?a=>{c(a,r.id),a.continuePropagation();}:void 0}),id:r.id,value:r,className:a=>a$e(Kr,`BaselineUI-${n}-Option`,typeof t=="function"?t(r,a):t),style:a=>typeof e=="function"?e(r,a):e,textValue:r.label,ref:l,children:a=>o?o(r,a):jsx(Wo,{componentName:n,...a,item:r})})});ot.displayName="ListOption";var io=new Set(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),no=Me.createContext({}),Xo=Me.forwardRef(({withSectionHeaderPadding:r=false,showSectionHeader:e=false,renderSectionHeader:t,optionStyle:o,optionClassName:n,sectionStyle:i,sectionClassName:l,renderOption:s,className:c,dragAndDropHooks:u,listBoxHandle:a,"data-block-id":d,"data-block-class":y,...p$1},M)=>{let P=a$5(M),m=Me.useRef(false),b=Me.useRef(null),T=useContext(se),{isVirtualized:v,layoutDelegate:E}=useContext(p);useEffect(()=>{T&&(s||o||n)&&console.warn("ListBox: If a state is provided via the ListStateContext, the `renderOption`, `optionStyle`, `optionClassName`, `sectionStyle`, `sectionClassName`, and `renderSectionHeader` props will be ignored.");},[T,s,o,n,i,l,t]),a$g({ref:P,isDisabled:!u});let w=useCallback(g=>[...P.current?.querySelectorAll('[role="option"][data-key]')??[]].find(S=>S.dataset.key===String(g)),[P]);useEffect(()=>{if(!v)return;let g=P.current,x=g?.ownerDocument,S=x?.defaultView;if(g==null||x==null||S==null)return;let z=()=>{let D=f$4(g);return D==null||D===x.body||D===x.documentElement},_=()=>g.querySelector('[role="option"][tabindex="0"]')??g.querySelector('[role="option"][data-focused="true"]'),B=()=>{let D=f$4(g);return D!=null&&h$2(g,D)},R=D=>D.composedPath().some(de=>de instanceof S.Node&&h$2(g,de)),q=()=>{m.current=false;},ae=()=>{b.current!=null&&S.cancelAnimationFrame(b.current),b.current=S.requestAnimationFrame(()=>{if(b.current=null,B())return;if(!z()){q();return}let D=_();D?.focus({preventScroll:true});});},oe=D=>{io.has(D.key)&&(m.current=true);},J=D=>{!io.has(D.key)||!z()||!m.current||ae();},Y=D=>{R(D)||B()||q();},Re=D=>{R(D)||q();},Z=new MutationObserver(D=>{D.some(({addedNodes:de,removedNodes:ne})=>de.length>0||ne.length>0)&&m.current&&ae();});return g.addEventListener("keydown",oe),x.addEventListener("keydown",J,true),x.addEventListener("focusin",Y,true),x.addEventListener("pointerdown",Re,true),Z.observe(g,{childList:true,subtree:true}),()=>{g.removeEventListener("keydown",oe),x.removeEventListener("keydown",J,true),x.removeEventListener("focusin",Y,true),x.removeEventListener("pointerdown",Re,true),Z.disconnect(),b.current!=null&&S.cancelAnimationFrame(b.current),q(),b.current=null;}},[v,P]),useEffect(()=>{let g=P.current,x=g?.ownerDocument.defaultView;if(!v||!g||!x)return;let S=null,z=()=>{let R=f$4(g);return R instanceof x.HTMLElement&&R.getAttribute("role")==="option"&&h$2(g,R)?R:null},_=()=>z()?(S=x.requestAnimationFrame(()=>{let R=z();R&&e$5(g,R);}),true):false,B=()=>{_()&&g.removeEventListener("focusin",B);};return _()||g.addEventListener("focusin",B),()=>{g.removeEventListener("focusin",B),S!=null&&x.cancelAnimationFrame(S);}},[v,P]);let H=Me.useRef(null),f=useCallback(()=>{let g=H.current;g&&(g.ownerWindow.cancelAnimationFrame(g.frameId),H.current=null);},[]);useEffect(()=>f,[f]);let C=useCallback((g,x)=>{if(f(),!P.current)return;let S=()=>{let _=w(g);if(_)return _.scrollIntoView({block:"nearest",inline:"nearest",...x}),true;if(v&&E){let B=E.getItemRect(g);return B?(E.virtualizer.delegate.setVisibleRect(B),true):false}return false};if(S())return;let z=P.current.ownerDocument?.defaultView;z&&(H.current={ownerWindow:z,frameId:z.requestAnimationFrame(()=>{H.current=null,S();})});},[f,w,v,E,P]);useImperativeHandle(a,()=>({scrollIntoView:C,setFocusedKey:g=>{let x=w(g);!P.current||!x||(x.focus(),C(g));}}),[C,w,P]);let O={renderOption:s,optionClassName:n,optionStyle:o,renderSectionHeader:t,sectionClassName:l,sectionStyle:i,showSectionHeader:e,withSectionHeaderPadding:r},N=p$1.items?.[0]?.id;return jsx(ft,{...p$1,dependencies:[...p$1.dependencies??[],N,...Je(O)],"data-block-id":d,"data-block-class":y,dragAndDropHooks:u,ref:P,className:a$e(Fr,"BaselineUI-ListBox",c),children:g=>jsx($o,{item:g,isFirstCollectionItem:N===g.id,...O},g.id)})});Xo.displayName="UNSAFE_ListBox";var qo=Me.createContext({}),$o=r=>{let e=useContext(qo),{item:t,isFirstCollectionItem:o,id:n,value:i,...l}={...e,...r};return a$h(t,"Item is required"),"children"in t?jsx(kt,{section:t,componentName:"ListBox",isFirstCollectionItem:o,...l}):jsx(ot,{item:t,componentName:"ListBox",...l})};export{mt as a,se as b,Pt as c,Je as d,Ti as e,wo as f,ps as g,Dt as h,Lt as i,Bo as j,Ho as k,No as l,kt as m,Wo as n,ot as o,no as p,Xo as q,$o as r};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {j,l,m,k,o,i,h}from'./chunk-
|
|
1
|
+
import {j,l,m,k,o,i,h}from'./chunk-266F6F4Y.mjs';import {a as a$3}from'./chunk-J2KZM2I2.mjs';import {a as a$2}from'./chunk-KCHAWPUN.mjs';import {b}from'./chunk-INFMXVHD.mjs';import {a}from'./chunk-BA5OA5DY.mjs';import {e}from'./chunk-RINS2TBF.mjs';import {a as a$1}from'./chunk-4QEH5CGK.mjs';import z,{useEffect,useContext}from'react';import {jsxs,jsx}from'react/jsx-runtime';/**
|
|
2
2
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
|