@nebula.js/sn-table 6.5.6 → 6.5.7
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/core/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-table v6.5.
|
|
2
|
+
* @nebula.js/sn-table v6.5.7
|
|
3
3
|
* Copyright (c) 2026 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
@@ -118,4 +118,4 @@ function Wi(e,t){let r;return r=t?Li(e).withConfig({displayName:t.label,shouldFo
|
|
|
118
118
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
119
119
|
* See the License for the specific language governing permissions and
|
|
120
120
|
* limitations under the License.
|
|
121
|
-
*/!function(e,t){var r;function n(e,t){var r=[],n=0;function o(e){return r.push(e),t}function i(){return r[n++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}r=new function(){var e="`TMP`",t="`COMMENT`",r="[^\\u0020-\\u007e]",o="(?:[0-9]*\\.[0-9]+|[0-9]+)",i="direction\\s*:\\s*",a="['\"]?\\s*",s="(^|[^a-zA-Z])",l="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",u="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",c="(?:[_a-z0-9-]|"+r+"|"+u+")",d=o+"(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|"+("-?"+("(?:[_a-z]|"+r+"|"+u+")")+c+"*")+")?",p="((?:-?"+d+")|(?:inherit|auto))",f="(#?"+c+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",h="(?:[!#$%&*-~]|"+r+"|"+u+")*?",m="(?![a-zA-Z])",g="(?!("+c+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",b="(?!"+h+a+"\\))",v="(?="+h+a+"\\))",y="(\\s*(?:!important\\s*)?[;}])",x=/`TMP`/g,S=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),w=new RegExp("("+l+g+"[^;}]+;?)","gi"),C=new RegExp("("+l+"[^\\}]*?})","gi"),E=new RegExp("("+i+")ltr","gi"),R=new RegExp("("+i+")rtl","gi"),P=new RegExp(s+"(left)"+m+b+g,"gi"),A=new RegExp(s+"(right)"+m+b+g,"gi"),I=new RegExp(s+"(left)"+v,"gi"),M=new RegExp(s+"(right)"+v,"gi"),k=new RegExp(s+"(ltr)"+v,"gi"),D=new RegExp(s+"(rtl)"+v,"gi"),T=new RegExp(s+"([ns]?)e-resize","gi"),O=new RegExp(s+"([ns]?)w-resize","gi"),L=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+p+"(\\s+)"+p+"(\\s+)"+p+"(\\s+)"+p+y,"gi"),q=new RegExp("((?:-color|border-style)\\s*:\\s*)"+f+"(\\s+)"+f+"(\\s+)"+f+"(\\s+)"+f+y,"gi"),N=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+d+")","gi"),j=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),_=new RegExp("(border-radius\\s*:\\s*)"+p+"(?:(?:\\s+"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?)?(?:(?:(?:\\s*\\/\\s*)"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?(?:\\s+"+p+")?)?"+y,"gi"),z=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+p,"gi"),F=new RegExp("(text-shadow\\s*:\\s*)"+p+"(\\s*)"+f,"gi"),H=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+p,"gi"),$=new RegExp("(text-shadow\\s*:\\s*)"+p,"gi"),W=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+p+"(\\s*\\))","gi"),B=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+p+"((?:\\s*,\\s*"+p+"){0,2}\\s*\\))","gi");function V(e,t,r){var n,o;return"%"===r.slice(-1)&&(-1!==(n=r.indexOf("."))?(o=r.length-n-2,r=(r=100-parseFloat(r)).toFixed(o)+"%"):r=100-parseFloat(r)+"%"),t+r}function U(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function G(e,t){var r=[].slice.call(arguments),n=r.slice(2,6).filter((function(e){return e})),o=r.slice(6,10).filter((function(e){return e})),i=r[10]||"";return t+(o.length?U(n)+" / "+U(o):U(n))+i}function Y(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function K(e,t,r){return t+Y(r)}function X(e,t,r,n,o){return t+r+Y(n)+o}function J(e,t,r,n,o){return t+r+n+Y(o)}return{transform:function(r,o){var i=new n(w,"`NOFLIP_SINGLE`"),a=new n(C,"`NOFLIP_CLASS`"),s=new n(S,t);return r=s.tokenize(a.tokenize(i.tokenize(r.replace("`","%60")))),o.transformDirInUrl&&(r=r.replace(k,"$1"+e).replace(D,"$1ltr").replace(x,"rtl")),o.transformEdgeInUrl&&(r=r.replace(I,"$1"+e).replace(M,"$1left").replace(x,"right")),r=r.replace(E,"$1"+e).replace(R,"$1ltr").replace(x,"rtl").replace(P,"$1"+e).replace(A,"$1left").replace(x,"right").replace(T,"$1$2"+e).replace(O,"$1$2e-resize").replace(x,"w-resize").replace(_,G).replace(z,K).replace(F,J).replace(H,J).replace($,K).replace(W,X).replace(B,X).replace(L,"$1$2$3$8$5$6$7$4$9").replace(q,"$1$2$3$8$5$6$7$4$9").replace(N,V).replace(j,V),r=i.detokenize(a.detokenize(s.detokenize(r)))}}},e.exports?t.transform=function(e,t,n){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof n&&(o.transformEdgeInUrl=n)),r.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=r)}(jA,jA.exports);var _A=Vt(jA.exports);function zA(e,t,r){switch(e.type){case Xr:case Kr:case Gr:return e.return=e.return||e.value;case Yr:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===Gr&&(e.children=e.value)}))}var n=zn(Array.prototype.concat(e.children),zA);return ln(n)?e.return=e.value+"{"+n+"}":""}function FA(e,t,r,n){if(e.type===Jr||"@supports"===e.type||e.type===Yr&&(!e.parent||"@media"===e.parent.type||e.parent.type===Yr)){var o=_A.transform(zA(e));e.children=o?On(o)[0].children:[],e.return=""}}Object.defineProperty(FA,"name",{value:"stylisRTLPlugin"});let HA=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),$A=function(e){return e.Select="Select",e.SelectMouseDown="SelectMouseDown",e.SelectMouseUp="SelectMouseUp",e.SelectMultiAdd="SelectMultiAdd",e.SelectMultiEnd="SelectMultiEnd",e.Reset="Reset",e.Clear="Clear",e.UpdatePageRows="UpdatePageRows",e}({}),WA=function(e){return e.A="ascending",e.D="descending",e}({}),BA=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const VA=[0,0],UA=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),GA=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},YA=(e,t,r)=>{const n={previousColor:(o=e.localPaletteColors)[(i=t)-(i>0?1:0)],nextColor:o[i+(i<o.length-1?1:0)]};var o,i;const a=((e,t)=>{const r=e.limits&&e.limits.concat().sort(((e,t)=>e.value-t.value));return{lowerLimit:r&&t>0?r[t-1]:{value:0,gradient:!1},upperLimit:r&&r[t]?r[t]:{value:1,gradient:!1}}})(e,t),s=((e,t,r,n,o)=>{const{upperLimit:i,lowerLimit:a}=e,{previousColor:s,nextColor:l}=t,u=n===i.value?1:(n-a.value)/(i.value-a.value);return a.gradient&&i.gradient?n-a.value<i.value-n?{color:s.color,t:.5-u}:{color:l.color,t:u-.5}:a.gradient?{color:s.color,t:1-(.5+u/2)}:i.gradient?{color:l.color,t:u/2}:{color:o.localPaletteColors[r].color,t:n}})(a,n,t,r,e);return s&&ne(e.localPaletteColors[t].color).blend(ne(s.color),s.t)},KA=(e,t,r)=>{const n=((e,t)=>{const{limits:r}=e;return r&&(e.limits=r.sort(((e,t)=>e.value-t.value)),e.limits=r.map((e=>({...e,value:UA(t,e.value)})))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map(((e,t)=>({color:GA(n,t,r)})))),n},XA=(e,t,r,n)=>{const o=KA(e,r,n),{localPaletteColors:i}=o;if(t<=0)return i[0].color;if(t>=1)return i[i.length-1].color;const a=((e,t)=>{let r="",n=0;const{limits:o,localPaletteColors:i}=e;for(let a=0;a<i.length;a++){const i=o&&o[a]?o[a].value:1;if(t>=n&&t<i){r=YA(e,a,t);break}n=i}return r})(o,t);return a},JA=(e,t)=>{const r=(e=>e.map((e=>e.value??e)).sort(((e,t)=>e-t)))(e),n=r.some((e=>!DP(e)));return 0===r.length||n?(e=>{const t=0===e?0:.5*e;return{min:e-t,max:e+t}})(t):1===r.length?((e,t)=>{const r=e[0]-t;if(0===r||!DP(r)){const e=0===t?.5:Math.abs(.5*t);return{min:t-e,max:t+e}}return r>0?{min:t-.5*Math.abs(t),max:e[0]+2*r}:{min:e[0]+2*r,max:t+.5*Math.abs(t)}})(r,t):((e,t)=>{let r=e[e.length-1]-e[0];return r=r>0?r:1,{min:Math.min(t,e[0])-r/2,max:Math.max(t,e[e.length-1])+r/2}})(r,t)},ZA=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=JA(e,t),o=Math.abs(t);return{min:r??t-o,max:n??t+o}})(r,t),o=((e,t,r)=>{const{limits:n,paletteColors:o,localPaletteColors:i}=e.segments;if(!n||!DP(t))return 0;let a=r&&DP(r)?Math.min(r,t):0;const s=n.sort(((e,t)=>e.value-t.value)),l=o||i;for(let e=0;e<l.length;e++){if(e===l.length-1||t<s[e].value&&t>=a)return e;a=s[e].value}return 0})(e,t,n.min);return{limitRange:n,limitPaletteColorIndex:o}},QA=(e,t,r,n)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=ZA(o,t),a=((e,t,r,n)=>{const{segments:o}=e;if(!o||!r)return;const{limits:i}=o;if(!i?.length||!((e,t)=>!(!e||0===e.length||!(e[t]?.gradient??e[t-1]?.gradient)))(i,r.limitPaletteColorIndex))return GA(o,r.limitPaletteColorIndex,n);const a=UA(r.limitRange,t);return XA(o,a,r.limitRange,n)})(o,t,i,n),s=o.segments.paletteColors[i?.limitPaletteColorIndex||0].icon,{indicator:l}=e;let u=l?.position||"right";return"rtl"===r&&(u="right"===u?"left":"right"),{color:a,iconKey:s,position:u}},eI=(RC().palette.primary.light,"repeating-linear-gradient(-45deg, rgba(200,200,200,0.08), rgba(200,200,200,0.08) 2px, rgba(200,200,200,0.3) 2.5px, rgba(200,200,200,0.08) 3px, rgba(200,200,200,0.08) 5px)"),tI=4/3,rI="12px",nI="600",oI="Source Sans Pro, sans-serif",iI={height:"auto",fontSize:rI,lineHeight:"unset",padding:"4px",borderStyle:"solid",borderWidth:"0px 1px 1px 0px",userSelect:"none",outline:"none","&:focus-visible":{boxShadow:"0 0 0 2px #177fe6 inset, 0 0 0 3px #fff inset"},"&:focus:not(:focus-visible)":{boxShadow:"none"},"&:last-child":{borderRightWidth:"0px"}},aI={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:nI},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},sI=(e,t)=>"rtl"===e&&"center"!==t.resolvedImagePosition?.horizontal?t.resolvedImagePosition?.horizontal&&(e=>"flex-start"===e?"flex-end":"flex-start")(t.resolvedImagePosition?.horizontal):t.resolvedImagePosition?.horizontal,lI=(e,t)=>e.representation.type===OR.Image&&"fitHeight"===e.representation.imageSize?sI(t,e.representation):e.align,uI=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",cI=(e,t,r)=>{if(!t&&"rtl"===r){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},dI=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,pI=(e,t,r)=>"rtl"===e||t&&!r?"0px":"1px",fI=(e,t,r)=>"rtl"===e?t&&!r?"0px":"1px":"0px",hI=24,mI=hc("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0}))),gI=hc(op,{shouldForwardProp:e=>!["textAlign","direction","isPagination"].includes(e)})((({textAlign:e,theme:t,direction:r,isPagination:n})=>({textAlign:e,height:"auto",padding:t.spacing(.5,1),display:"flex",alignItems:"flex-end",justifySelf:e,alignSelf:"center",flexDirection:"rtl"===r?uI(e,n):void 0}))),bI=hc(op,{shouldForwardProp:e=>"shouldShowMenuIcon"!==e&&"shouldShowLockIcon"!==e&&"alignment"!==e})((({shouldShowMenuIcon:e,shouldShowLockIcon:t,alignment:r})=>{const n=e?"24px":"";let o;switch(r){case"left":o={gridTemplateColumns:t?`20px 2fr ${n}`:`1fr ${n}`};break;case"center":{const r=e||t;o={gridTemplateColumns:r?"24px 2fr 24px":"1fr","& .sn-table-lock-icon":{gridColumn:1},"& .sn-table-head-label":{gridColumn:r?2:1},[`& .${eE}`]:{gridColumn:3}};break}case"right":o={gridTemplateColumns:t?`${n} 2fr 20px`:`${n} 1fr`,"& .sn-table-lock-icon":{gridColumn:t?3:"unset"},"& .sn-table-head-label":{gridColumn:e?2:"span 2"},[`& .${eE}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}})),vI=hc(op,{shouldForwardProp:e=>"rightAligned"!==e})((({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"}))),yI=hc(op,{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"}))),xI=hc(hd,{shouldForwardProp:e=>"hoverBackground"!==e&&"activeBackground"!==e&&"isActive"!==e&&"order"!==e})((({hoverBackground:e,activeBackground:t,isActive:r,order:n})=>({padding:"4px !important",width:"fit-content",height:"auto",background:r?t:void 0,"&:hover":{background:e},color:"inherit",order:n}))),SI=25e4,wI=(e,t,r)=>{if(!e.length)return[];const n=[],o=[];let i=t;if(e.forEach(((e,a)=>{const{columnWidth:{type:s,pixels:l,percentage:u},label:c,qApprMaxGlyphCount:d,totalInfo:p}=e;let f=0;const h=()=>{n[a]=Math.min(aE.PixelsMax,Math.max(aE.PixelsMin,f)),i-=n[a]};switch(s){case sE.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?aE.PixelsDefault:+e)(l),h();break;case sE.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?aE.PercentageDefault:+e)(u)/100*t,h();break;case sE.FitToContent:e.representation?.type===OR.Image?o.push(a):(f=r(c,p,d,e.isLocked,e.isActivelySorted,e.isDim,e.isCyclic),h());break;case sE.Auto:o.push(a);break;default:throw new Error(`${s} is not a valid column width type`)}})),o.length){const e=i/o.length;o.forEach((t=>{n[t]=Math.max(aE.AutoMinTable,e)}))}return n},CI=(e,t,r)=>{const n=r.size,o=n>=t.size;if(n){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===n?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",n.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},EI=(e,t,r)=>{r&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},RI=e=>e.ctrlKey||e.metaKey,PI=e=>e.shiftKey&&RI(e),AI=e=>[oE.Left,oE.Right,oE.Up,oE.Down].includes(e),II=e=>e.shiftKey&&AI(e.key),MI=e=>(e=>AI(e)||[oE.Home,oE.End,oE.PageUp,oE.PageDown].includes(e))(e.key)&&!PI(e),kI=(e,t)=>{const{api:r,rows:n,colIdx:o}=e,{cell:i,announce:a,evt:s}=t;let l=new Map;if(-1===o)r?.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;l=new Map(n)}return l=((e,t,r)=>{const{qElemNumber:n,rowIdx:o}=t;return r.ctrlKey||r.metaKey?(new Map).set(n,o):(e.has(n)?e.delete(n):e.set(n,o),new Map(e))})(l,i,s),CI(a,n,l),l.size?(r?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(l.values()),[i.selectionColIdx]]}),{...e,rows:l,colIdx:i.selectionColIdx}):(r?.cancel(),{...e,rows:l,colIdx:-1})},DI=(e,t)=>{const{api:r,rows:n,colIdx:o,pageRows:i,firstCell:a}=e,{cell:s,announce:l,evt:u}=t;if(!(a||"key"in u&&II(u)))return e;-1===o&&r?.begin(["/qHyperCubeDef"]);const c=((e,t,r,n,o)=>{const i=new Map(t);if("key"in n&&II(n)){i.set(r.qElemNumber,r.rowIdx);const t=n.key===oE.Down?1:-1,o=e[r.pageRowIdx+t][r.pageColIdx];return i.set(o.qElemNumber,r.rowIdx+t),i}if(!o)return t;const a=Math.min(o.pageRowIdx,r.pageRowIdx),s=Math.max(o.pageRowIdx,r.pageRowIdx);for(let t=a;t<=s;t++){const r=e[t][o.pageColIdx];i.set(r.qElemNumber,r.rowIdx)}return i})(i,n,s,u,a);return CI(l,n,c),{...e,rows:c,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},TI=e=>{const{api:t,rows:r,colIdx:n,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&t?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(r.values()),[n]]}),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},OI=(e,t)=>{switch(t.type){case $A.Select:return kI(e,t.payload);case $A.SelectMouseDown:return((e,{cell:t,mouseupOutsideCallback:r})=>!r||-1!==e.colIdx&&e.colIdx!==t.selectionColIdx?e:(document.addEventListener("mouseup",r),{...e,firstCell:t,mouseupOutsideCallback:r}))(e,t.payload);case $A.SelectMouseUp:return((e,t)=>TI(e.isSelectMultiValues||e.firstCell!==t.cell?e:kI(e,t)))(e,t.payload);case $A.SelectMultiAdd:return DI(e,t.payload);case $A.SelectMultiEnd:return TI(e);case $A.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case $A.Clear:return e.rows.size?{...e,rows:new Map}:e;case $A.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},LI=4/3,qI=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function NI(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const jI=(e,t)=>e?{borderBottomColor:AC.DARK_MODE_BORDER,borderRightColor:AC.DARK_MODE_BORDER,borderLeftColor:AC.DARK_MODE_BORDER,borderTopColor:AC.DARK_MODE_BORDER}:{borderLeftColor:AC.BORDER_MEDIUM,borderRightColor:AC.BORDER_MEDIUM,borderTopColor:AC.BORDER_HEAVY,borderBottomColor:t?AC.BORDER_HEAVY:AC.BORDER_LIGHT},_I=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*LI+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},zI=e=>e.components?.find((e=>"theme"===e.key)),FI=(e,t,r,n=!1)=>{const o=t.getStyle("object",`straightTableV2.${e}`,"fontFamily"),i=t.getStyle("object",`straightTableV2.${e}`,"color"),a=t.getStyle("object",`straightTableV2.${e}`,"fontSize"),s={fontFamily:o,color:qI(r?.fontColor)?NI(AC.TEXT,t,r?.fontColor):i||AC.TEXT,fontSize:r?.fontSize&&`${r.fontSize}px`||a,padding:r&&"padding"in r?r.padding:void 0,...jI(t.background.isDark,n)};return Object.keys(s).forEach((e=>{const t=e;null==s[t]&&delete s[t]})),s};function HI(e,t,r){const n=zI(e)?.header,o=FI("header",t,n,r);return o.background=(e=>{if(void 0===e)return;const t=ne(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),o.hoverBackground=kC(o.background??AC.WHITE,lE),o.activeBackground=kC(o.background??AC.WHITE,uE),o}const $I=(e,t)=>{const r=e.toLowerCase().match(/<[^>]+>/g)??[];return r.forEach((e=>(e=>e in aI)(e)&&Object.assign(t,aI[e]))),t};function WI(e,t,r){const n={};let o={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return t?.qValues?.forEach(((e,t)=>{const i=e.qText,a=i&&TC(i);a&&"none"!==a&&(n[r[t]]=a),o=i?$I(i,o):o})),n.cellBackgroundColor&&!n.cellForegroundColor&&(n.cellForegroundColor=IC(n.cellBackgroundColor)),{...e,...n,color:n.cellForegroundColor||e.color,background:n.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}}const BI=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},VI=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=BI(e,t?.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},UI=(e,t,r,n=AC.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=VI(e,t,r);return jC(i,o,a,n)??n},GI=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return rI}},YI=e=>e?.some((e=>"italic"===e))?"italic":"normal",KI=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?nI:"normal",XI=e=>!1===e?1:3,JI=e=>parseInt(e??iI.fontSize,10)*tI,ZI=e=>e?.some((e=>"underline"===e))?"underline":"none",QI=(e,t,r,n,o)=>{const{header:i,dimensionValues:a,measureValues:s,totalValues:l,nullValues:u,grid:c,content:d}=zI(t)??{},p=NA(t,o)?AC.WHITE:AC.TRANSPARENT,f=UI(n,i,"object.straightTableV2.dimension.label.name.backgroundColor",p),h=o.viewState?.maxLineCount??d?.rowHeight??n.getStyle("object.straightTableV2","grid","lineClamp"),m={header:{fontFamily:i?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.name","fontFamily")??r.head.fontFamily??oI,fontSize:GI(i?.fontSize??n.getStyle("object.straightTableV2.dimension","label.name","fontSize")??r.head.fontSize),fontStyle:YI(i?.fontStyle),fontWeight:KI(i?.fontStyle,nI),textDecoration:ZI(i?.fontStyle),color:BI(n,i?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.name","color")??r.head.color??AC.TEXT,background:f},headerMenuHoverBackground:kC(f,lE),headerMenuActiveBackground:kC(f,uE),dimension:{values:{fontFamily:a?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??r.body.fontFamily??oI,fontSize:GI(a?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.dimension","label.value","fontSize")??r.body.fontSize),fontStyle:YI(a?.fontStyle),fontWeight:KI(a?.fontStyle,"normal"),textDecoration:ZI(a?.fontStyle),color:BI(n,a?.fontColor)??BI(n,d?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.value","color")??r.body.color??AC.TEXT,background:VI(n,a,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??r.body.background??AC.TRANSPARENT}},measure:{values:{fontFamily:s?.fontFamily??n.getStyle("object.straightTableV2.measure","label.value","fontFamily")??r.body.fontFamily??oI,fontSize:GI(s?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.measure","label.value","fontSize")??r.body.fontSize),fontStyle:YI(s?.fontStyle),fontWeight:KI(s?.fontStyle,"normal"),textDecoration:ZI(s?.fontStyle),color:BI(n,s?.fontColor)??BI(n,d?.fontColor)??n.getStyle("object.straightTableV2.measure","label.value","color")??r.body.color??AC.TEXT,background:VI(n,s,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??r.body.background??AC.TRANSPARENT}},totalRow:{fontFamily:l?.fontFamily??n.getStyle("object.straightTableV2.total","label.value","fontFamily")??r.totals.fontFamily??oI,fontSize:GI(l?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.total","label.value","fontSize")??r.totals.fontSize),fontStyle:YI(l?.fontStyle),fontWeight:KI(l?.fontStyle,nI),textDecoration:ZI(l?.fontStyle),color:BI(n,l?.fontColor)??BI(n,d?.fontColor)??n.getStyle("object.straightTableV2.total","label.value","color")??r.totals.color??AC.TEXT,background:UI(n,l,"object.straightTableV2.total.label.value.backgroundColor",p)},nullValues:{fontStyle:YI(u?.fontStyle),fontWeight:KI(u?.fontStyle,"normal"),textDecoration:ZI(u?.fontStyle),color:BI(n,u?.fontColor)??BI(n,d?.fontColor)??n.getStyle("object.straightTableV2.null","label.value","color")??r.body.color??AC.TEXT,background:BI(n,u?.background)??n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??AC.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:h??XI(t.multiline?.wrapTextInCells),headerLineClamp:XI(t.multiline?.wrapTextInHeaders),border:BI(n,c?.border)??n.getStyle("object.straightTableV2","grid","borderColor")??(n.background.isDark?AC.DARK_MODE_BORDER:AC.BORDER_MEDIUM),divider:BI(n,c?.divider)??n.getStyle("object.straightTableV2.grid","","divider.borderColor")??AC.BORDER_HEAVY,hoverColors:{color:BI(n,d?.hoverFontColor)??n.getStyle("object.straightTableV2","","grid.hover.color")??r.body.hoverColors?.color,background:BI(n,d?.hoverColor)??n.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??r.body.hoverColors?.background},zebraStripes:{show:!!c?.zebraStripes?.show,odd:{color:BI(n,c?.zebraStripes?.color?.odd),background:BI(n,c?.zebraStripes?.background?.odd)},even:{color:BI(n,c?.zebraStripes?.color?.even),background:BI(n,c?.zebraStripes?.background?.even)},overrideNullValueBackground:void 0===BI(n,u?.background),overrideNullValueColor:void 0===BI(n,u?.fontColor)},lastRowBottomBorder:r.body.lastRowBottomBorder},selectedColors:MC(n),headerMinRowHeight:0,totalRowLineHeight:0,totalRowMinHeight:0,contentLineHeight:0,contentMinRowHeight:0,contentStaticLineCount:h},{headerMinRowHeight:g,totalRowLineHeight:b,totalRowMinHeight:v,contentLineHeight:y,contentMinRowHeight:x}=(e=>{const t=Math.max(JI(e.header.fontSize)+8,32),r=JI(e.totalRow.fontSize),n=Math.max(r+8+1,24),o=Math.max(JI(e.dimension.values.fontSize),JI(e.measure.values.fontSize)),i=(e.contentStaticLineCount||1)*o;return{headerMinRowHeight:t,totalRowLineHeight:r,totalRowMinHeight:n,contentLineHeight:o,contentMinRowHeight:Math.max(i+8+1,24)}})(m);return m.headerMinRowHeight=g,m.totalRowLineHeight=b,m.totalRowMinHeight=v,m.contentLineHeight=y,m.contentMinRowHeight=x,m},eM=(e,t,r,n)=>{const o=R((()=>{const o=r.totalsPosition.atTop,i=function(e,t,r,n){const o=zI(e)?.content,i=FI("content",t,o);i.background=t.background.color;const a=_I(i.fontSize,r,n),s=o?.hoverColor,l=o?.hoverFontColor,u=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),c=t.getStyle("object","","straightTableV2.content.hover.color"),d=qI(l)||!!c,p=qI(s)||!!u,f=d||p;let h;h=qI(s)?NI(AC.HOVER,t,s):u||(d?"":AC.HOVER);const m=f?NI(IC(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(e,t,r.rows.length,n),a=HI(e,t,!o),s=function(e,t,r){const n=zI(e)?.content,o=FI("content",t,n),{borderBottomColor:i,borderTopColor:a,background:s}=HI(e,t,r);return{...o,borderBottomColor:i,background:s,borderTopColor:a}}(e,t,o);return{body:i,head:a,totals:s}}),[e,t,r,n]);return o},tM=new Map;const rM=I({}),nM=function(e){const t=I([()=>{},new Set]);return tM.set(e,t),({children:r,value:n})=>{const o=A(n),i=A(new Set);k((()=>{o.current=n,i.current.forEach((e=>{e(n)}))}),[n]);const a=O((()=>o.current),[o]),s=R((()=>[a,i.current]),[a]);return rr.jsx(e.Provider,{value:n,children:rr.jsx(t.Provider,{value:s,children:r})})}}(rM),oM={rows:[],columns:[],totalsPosition:{}},iM=({children:e,tableData:t=oM,selectionsAPI:r,layout:n,model:o,interactions:i,theme:a,keyboard:s,rootElement:l,embed:u,changeSortOrder:c,applyColumnWidths:d,setPage:p,pageInfo:f,initialDataPages:h,rect:m,viewService:g,downloadService:b,env:v,direction:y,eventEmitter:x})=>{const[S,w]=((e,t)=>{const[r,n]=M(OI,{pageRows:e,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1});return[r,n]})(t.rows,r),C=eM(n,a,t,l),E=((e,t,r,n,o)=>R((()=>QI(0,t,r,n,o)),[t,r,e,n,o]))(v,n,C,a,g),{xScrollbarWidth:A,yScrollbarWidth:I,setXScrollbarWidth:k,setYScrollbarWidth:D}=(()=>{const[e,t]=P(0),[r,n]=P(0);return{xScrollbarWidth:e,yScrollbarWidth:r,setYScrollbarWidth:n,setXScrollbarWidth:t}})(),{columnWidths:T,setColumnWidths:O,showRightBorder:q,isAdjustingWidth:N,setIsAdjustingWidth:j}=(({columns:e,totalsPosition:t,tableWidth:r,styleService:n,eventEmitter:o,yScrollbarWidth:i,accessibleHeader:a=!0})=>{const s=t.atBottom||t.atTop,l=BC({...n.header,fontWeight:nI},{maxNbrLinesOfText:3}).measureText,u=BC({...n.totalRow,fontWeight:nI},{maxNbrLinesOfText:3}).measureText,{estimateWidth:c}=BC(n.dimension.values,{maxNbrLinesOfText:3}),{estimateWidth:d}=BC(n.measure.values,{maxNbrLinesOfText:3}),p=R((()=>(e,t,r,n,o,i,p)=>{let f=0;if(a){const t=4;let r=25;r+=t+24,n&&(r+=20+t),o&&(r+=20),f=l(e)+r}else{let t=9;t+=16,p&&(t+=hI),t+=hI,t+=hI,f=l(e)+t}const h=i?c:d;return Math.max(f,s?u(t)+24+1:0,h(r))}),[c,d,l,u,s,a]),[f,h]=P(!1),[m,g]=P((()=>wI(e,r,p)));L((()=>{const t=wI(e,r-i,p);g(t),h(!1)}),[e,r,i,p]),L((()=>{f||o.emit("done-adjusting-column-width")}),[f,o]);const b=R((()=>((e,t,r)=>e.length>0&&e.reduce(((e,t)=>e+t))+t<r)(m,i,r)),[m,i,r]);return{columnWidths:m,setColumnWidths:g,showRightBorder:b,isAdjustingWidth:f,setIsAdjustingWidth:h}})({columns:t.columns,totalsPosition:t.totalsPosition,tableWidth:m.width,styleService:E,eventEmitter:x,accessibleHeader:n.accessibleHeader,yScrollbarWidth:I}),_=R((()=>({selectionsAPI:r,layout:n,model:o,interactions:i,theme:a,keyboard:s,rootElement:l,embed:u,changeSortOrder:c,applyColumnWidths:d,rect:m,viewService:g,styleService:E,direction:y,downloadService:b})),[r,n,o,i,a,s.active,l,u,c,d,m,g,E,y,b]);return rr.jsx(nM,{value:{selectionState:S,selectionDispatch:w,columnWidths:T,setColumnWidths:O,baseProps:_,tableData:t,setPage:p,pageInfo:f,initialDataPages:h,showRightBorder:q,env:v,isAdjustingWidth:N,setIsAdjustingWidth:j,setYScrollbarWidth:D,setXScrollbarWidth:k,xScrollbarWidth:A,yScrollbarWidth:I,eventEmitter:x},children:e})};function aM(e,t){const r=function(e){return tM.get(e)}(e),[n,o]=T(r),[,i]=M((e=>e+1),0),a=A(t),s=A(),l=n();if(void 0===l)throw new Error("You must call useContextSelector inside a valid context.");const u=R((()=>t(l)),[l,t]);return k((()=>{a.current=t,s.current=u}),[l,u,t]),k((()=>{const e=e=>{a.current(e)!==s.current&&i()};return o.add(e),()=>{o.delete(e)}}),[o]),u}function sM(e){const t=RC();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),Du({...t,direction:e})}const lM={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},uM={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},cM=hc("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t,dir:r})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===r?"-4px":void 0,touchAction:"none",cursor:"col-resize",pointerEvents:"auto",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",outline:"none",appearance:"none",WebkitAppearance:"none",backgroundColor:"transparent","&::-webkit-slider-runnable-track":{...lM},"&::-moz-range-track":{...lM},"&::-ms-track":{...lM},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...uM},"&::-moz-range-thumb":{...uM},"&::-ms-thumb":{...uM},"&:hover:not(:focus, :active)":{"&::after":{backgroundColor:t||"#D9D9D9","@media (hover: none)":{backgroundColor:"none"}}},"&:focus-visible, &:active":{"&::after":{backgroundColor:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}},"&::after":{content:'""',height:"100%",width:"3px",position:"absolute"}}))),dM=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:s,setIsAdjustingWidth:l,isLeftColumn:u,accessibilityRelatedArgs:c,direction:d="ltr"})=>{const p=XC({translator:c.translator}),f=A({initWidth:e,columnWidth:e,initX:0}),h=r?0:1,m=n&&!u,g=()=>m?f.current.columnWidth-h:"100%",b={left:"rtl"!==d?g():void 0,right:"rtl"===d?g():void 0},v=t=>{f.current={initWidth:e,columnWidth:e,initX:t??f.current.initX}};YC((()=>{m&&v()}),[e]);const y=e=>{const t=Math.max(e,aE.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:sE.Pixels,pixels:f.current.columnWidth};a(e)}else l?.(!1)},S=e=>{const t="rtl"===d?f.current.initWidth+f.current.initX-e.clientX:f.current.initWidth+e.clientX-f.current.initX;y(t)},w=e=>{LC(e),document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",w),x()},C=e=>{const t="rtl"===d?f.current.initWidth+-f.current.initX-e.touches[0].clientX:f.current.initWidth+e.touches[0].clientX-f.current.initX;y(t)},E=e=>{LC(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E),x()},R=!n&&s?e=>{if(e.key===oE.Left||e.key===oE.Right){LC(e);const t=5,r=e.key===oE.Left?t:-t,n="rtl"===d?r:-r;l?.(!0),y(f.current.columnWidth+n)}else e.key===oE.Space||e.key===oE.Enter?(LC(e),s(e),l?.(!1),x()):e.key===oE.Esc&&(LC(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,P=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return rr.jsx(cM,{style:b,hoverColor:o,isLastColumn:r,className:iE,"data-testid":iE,onMouseDown:e=>{LC(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),l?.(!0),v(e.clientX)},onDoubleClick:()=>{a({type:sE.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(LC(e),document.addEventListener("touchmove",C),document.addEventListener("touchend",E),l?.(!0),v(e.touches[0].clientX))},onKeyDown:R,onBlur:s,onFocus:()=>{v()},type:"range",tabIndex:-1,"aria-label":P,"aria-valuemin":aE.PixelsMin,"aria-valuemax":aE.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},pM=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})}))),fM=({model:e,headerData:t})=>{if(e&&"setActiveField"in e&&void 0!==t.dimensionInfoIndex){const r=t.dimensionInfoIndex;return async t=>{try{await e.setActiveField("/qHyperCubeDef",r,t)}catch(e){console.error(e)}}}return null},hM=hc(op,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e&&"isAccessibleHeader"!==e})((({rightAligned:e,shouldShowMenuIcon:t,isAccessibleHeader:r})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:r?24:void 0,display:t?"flex":"none",fontWeight:"bold",width:r?"100%":void 0,alignItems:"center",justifyContent:"center"}))),mM=hc(pM,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),gM=hc(Ff)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),bM=hc(Np)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),vM=hc(Vf)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),yM=hc(Vf,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:r})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden",boxSizing:"border-box !important",background:r?"rgba(0, 0, 0, 0.05)":"transparent"}))),xM=hc("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:r})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:r||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),SM=hc("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),wM=hc(xd)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),CM=hc(ff,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:r})=>({width:16,minWidth:"unset !important",marginRight:r||"rtl"!==t?e.spacing(1.5):0,marginLeft:r||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0}))),EM=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})}))),RM=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?RM(t):t:e.parentElement?.children?.[0]},PM=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?PM(t):t},AM=e=>{const{key:t,currentTarget:r}=e,n=document.activeElement??r;if(t===oE.Down||t===oE.Up){const r=e=>t===oE.Down?RM(e):PM(e);e.preventDefault(),e.stopPropagation();let o=r(n);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=r(o)}}},IM=(e,t)=>e.map((e=>e.map((e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map((({onClick:e,...r})=>({...r,...e?{onClick:async r=>{Object.entries(t).forEach((([,e])=>{e(!1)})),await e(r)}}:{}})))})))));let MM={};const kM=({autoFocus:e,id:t,onClick:r,itemTitle:n,icon:o,enabled:i,subMenus:a,isSubMenu:s,isActive:l,direction:u,isPagination:c})=>{const[d,p]=P(!1),f=x.useRef(null),h=O((e=>{e.stopPropagation(),p(!1)}),[p]);return rr.jsxs(rr.Fragment,{children:[rr.jsxs(yM,{ref:a?f:null,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(r&&(await r(e),MM={}),a?.length&&(p(!0),MM[n]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:AM,children:[l?rr.jsx(xM,{direction:u,isPagination:c}):null,rr.jsxs(SM,{children:[rr.jsx(CM,{direction:u,isPagination:c,children:rr.jsx(o,{})}),rr.jsx(wM,{variant:"body2",children:n})]}),a?.length?rr.jsx(EM,{}):null]},t),a?.length?rr.jsx(LM,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:h,menuGroups:IM(a,MM),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:u,isPagination:c}):null]})},DM=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((e=>[[e.groupHeading&&rr.jsx(vM,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map((e=>rr.jsx(kM,{...e,isSubMenu:t,direction:r,isPagination:n},e.id)))].filter(Boolean)])),TM=({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(((o,i)=>[DM({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?rr.jsx(bM,{"data-testid":"group-divider",variant:"middle"}):void 0])),OM={appear:0,enter:0,exit:0},LM=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?rr.jsx(gM,{className:tE,open:t,anchorEl:e,onClose:r,transitionDuration:OM,MenuListProps:{id:rE},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:TM({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})}):null,qM=({qLibraryId:e,fieldId:t,searchRelatedArgs:r,selectionRelatedArgs:n,direction:o,onPopoverClose:i})=>O((()=>{const a=e?{qLibraryId:e,type:"dimension"}:t;if(r?.embed){const{embed:e,listboxRef:t}=r;e.__DO_NOT_USE__.popover(t.current,a,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===o?"right":"left"},sortCriteria:r.sortCriteria,stateName:n?.qStateName,direction:o,onPopoverClose:i})}}),[e,t,r,n?.qStateName,o,i]),NM=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),jM=(e,t)=>e.some((e=>t[e]>0)),_M={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},zM=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=P(null),[a,s]=P(_M);return YC((()=>{e||(s(_M),i(null))}),[e]),k((()=>{if(!n?.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{const e=NM(t,r),u=await n.createSessionObject(e),c=await u.getLayout(),{qStateCounts:d}=c.qListObject?.qDimensionInfo??{};o=c.qInfo?.qId,a?l():(i(u),d&&s((e=>({canSelectAll:jM(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:jM(["qSelected"],e),canSelectPossible:jM(["qOption"],e),canSelectAlternative:jM(["qAlternative"],e),canSelectExcluded:jM(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},FM=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"})}))),HM=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm9 1.5H6v-1h4zm5.354-8.646L12.707 10l2.646 2.646-.707.707L12 10.708l-2.646 2.646-.708-.707L11.293 10 8.646 7.354l.708-.708L12 9.293l2.646-2.647zM1 10H0V6h1zm2-9H1.5a.5.5 0 0 0-.5.5V3H0V1.5A1.5 1.5 0 0 1 1.5 0H3zm11.5-1A1.5 1.5 0 0 1 16 1.5V3h-1V1.5a.5.5 0 0 0-.5-.5H13V0zM10 1H6V0h4z"})}))),$M=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707zM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2z"})}))),WM=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"})}))),BM=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.455.858v6.484a1 1 0 0 1-.577.906L8.5 14.663V7.17z"})}))),VM=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8z"})}))),UM=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8zM8.5 4v8h-1V4z"})}))),GM=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7"})}))),YM=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"})}))),KM=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4zm12-4a1 1 0 0 1 .993.883L16 1v10a1 1 0 0 1-.883.993L15 12H5a1 1 0 0 1-.993-.883L4 11V1a1 1 0 0 1 .883-.993L5 0zm0 1H5v10h10zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28z"})}))),XM=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8l8-8zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})}))),JM=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})}))),ZM=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8h8V4zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})}))),QM=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"})})));let ek=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const tk="/qListObjectDef",rk=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:s,selectionActionsEnabledStatus:l,anchorRef:u,focusColumnAdjuster:c,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(r[ek.Sorting]){const{isActivelySorted:r,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:s}=(({isActivelySorted:e,sortDirection:t,isPivot:r,isSortedByFirstMeasure:n})=>{let o=!r&&!e||"D"===t,i=!r&&!e||"A"===t;return n&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"A")),n(!1)},icon:FM,enabled:a,isActive:!!r&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"D")),n(!1)},icon:WM,enabled:s,isActive:!!r&&"D"===i,autoFocus:!a&&s}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:GM,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:BM,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];r[ek.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:YM,enabled:!0}]}]),!e.isLocked&&r[ek.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:QM,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAll(tk))},icon:KM,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectPossible(tk))},icon:ZM,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAlternative(tk))},icon:XM,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectExcluded(tk))},icon:JM,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.clearSelections(tk))},icon:HM,enabled:l.canClearSelections}]}]]}]}]),p&&!p.alwaysFullyExpanded&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.expandCallback()},icon:UM,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:VM,enabled:!0}]}]),o.length>0&&f.push(...o)}return r[ek.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),c?.(u)},icon:$M,enabled:!0}]}]),f},nk=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,menuAvailabilityFlags:a,shouldShowMenuIcon:s=!0,sortRelatedArgs:l,searchRelatedArgs:u,selectionRelatedArgs:c,adjustHeaderSizeRelatedArgs:d,expandOrCollapseArgs:p,model:f,direction:h="ltr",isPagination:m,isAccessibleHeader:g,iconSize:b=ZC})=>{const v=A(null),y=XC({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:w}=n,C=c?.app,{fieldInstance:E,selectionActionsEnabledStatus:R}=zM({open:e,headerData:n,app:C,qStateName:c?.qStateName}),P=fM({model:f,headerData:n}),I=qM({qLibraryId:x,fieldId:S,searchRelatedArgs:u,selectionRelatedArgs:c,direction:h}),M=O((e=>{e.stopPropagation(),t(!1)}),[t]),k=O((e=>{e.stopPropagation(),t((e=>!e))}),[t]);return i.active?rr.jsxs(hM,{rightAligned:"right"===w,shouldShowMenuIcon:s,className:eE,onClick:!1===g?k:void 0,ref:v,isAccessibleHeader:g,children:[s?rr.jsx(mM,{height:b,className:QC,"data-testid":QC,isInteractionsActive:i.active??!1,children:rr.jsx(pM,{})}):null,rr.jsx(LM,{open:e,anchorEl:!1===g?v.current:r.current,onClose:M,menuGroups:rk({headerData:n,translator:y,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:I,interactions:i,fieldInstance:E,selectionActionsEnabledStatus:R,anchorRef:r,focusColumnAdjuster:d?.focusColumnAdjuster,setActiveFieldCallback:P,expandOrCollapseArgs:p}),direction:h,isPagination:m})]}):null},ok=e=>e.isDark?{background:e.color,borderColor:AC.DARK_MODE_BORDER,color:AC.DARK_MODE_TEXT,disabledColor:AC.DARK_MODE_DISABLED,iconColor:AC.DARK_MODE_TEXT}:{background:e.color,borderColor:AC.BORDER_MEDIUM,color:AC.TEXT,disabledColor:AC.DISABLED},ik=hc(op,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({height:40,display:"flex",justifyContent:"flex-end",alignItems:"center",padding:t.spacing(0,1,0,1),color:e.color,background:e.background,borderTop:`1px solid ${e.borderColor}`}))),ak=hc(Rh,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),sk=hc(hp,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:r})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:r.spacing(1)}))),lk=hc(xd)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),uk=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=R((()=>ok(n.background)),[n]);if(!r.active)return null;const a=o?rr.jsx(ik,{footerStyle:i,children:e}):null;return t?$.createPortal(e,t):a},ck=I({}),dk=()=>T(ck),pk=({children:e,direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:h,layout:m,visibilityThreshold:g})=>{const b=(e=>!e.enabled||e.active)(c)?0:-1,v=R((()=>ok(p.background)),[p]),y=o?o.getBoundingClientRect().width:h.width,x=XC({translator:d}),S=R((()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:x,theme:p,interactions:f,rect:h,layout:m,footerStyle:v,tabIndex:b,width:y,visibilityThreshold:g})),[t,r,n,o,i,a,s,l,u,c,x,p,f,h,m,v,b,y,g]);return rr.jsx(ck.Provider,{value:S,children:e})};let fk=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),hk=function(e){return e[e.DisplayedRowsLabel=250]="DisplayedRowsLabel",e[e.FirstPage=350]="FirstPage",e[e.LastPage=350]="LastPage",e[e.RowsPerPage=550]="RowsPerPage",e[e.SelectPage=700]="SelectPage",e}({});const mk=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))),gk=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})}))),bk=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})}))),vk={FirstPage:gk,PreviousPage:mk,NextPage:EM,LastPage:bk,FirstPageRTL:bk,PreviousPageRTL:EM,NextPageRTL:mk,LastPageRTL:gk},yk=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=dk(),u=r.concat("rtl"===n?"RTL":""),c=vk[u];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${r}`),title:s.passive?a.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:l,onClick:e?void 0:()=>{i(t)}},IconComponent:c}},xk=()=>{const{pageInfo:e,width:t,interactions:r,visibilityThreshold:n}=dk(),o=0===e.page,{IconComponent:i,styledProps:a}=yk({type:fk.FirstPage,disabledCondition:o,pageNumber:0});return t<=(n?.firstPage||hk.FirstPage)?null:rr.jsx(sk,{...a,disabled:!r.active,children:rr.jsx(i,{height:ZC})})},Sk=(e,t,r=!1)=>{r&&e.key===oE.Tab&&!e.shiftKey&&(LC(e),OC(e.target,t,!1))},wk=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i,visibilityThreshold:a}=dk(),s=e.page>=r-1,{IconComponent:l,styledProps:u}=yk({type:fk.LastPage,disabledCondition:s,pageNumber:r-1}),c=t.enabled?e=>{Sk(e,t,n)}:void 0;return o<=(a?.lastPage||hk.LastPage)?null:rr.jsx(sk,{...u,onKeyDown:c,disabled:!i.active,children:rr.jsx(l,{height:ZC})})},Ck=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=dk(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=yk({type:fk.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(o>hk.FirstPage&&o>hk.LastPage)&&t.enabled?e=>{Sk(e,t,n)}:void 0;return rr.jsx(sk,{...l,onKeyDown:u,disabled:!i.active,children:rr.jsx(s,{height:ZC})})},Ek=()=>{const{pageInfo:e,interactions:t}=dk(),r=0===e.page,{IconComponent:n,styledProps:o}=yk({type:fk.PreviousPage,disabledCondition:r,pageNumber:e.page-1});return rr.jsx(sk,{...o,disabled:!t.active,children:rr.jsx(n,{height:ZC})})},Rk=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n,visibilityThreshold:o}=dk(),{page:i,rowsPerPage:a}=r;if(t<=(o?.displayedRowsLabel||hk.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,n)}`,n.toString()]);return rr.jsx(lk,{variant:"caption",dir:"ltr",children:s})},Pk=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=dk(),u=o.qInfo.qId,c=a.get(`NebulaTableUtils.Pagination.${e}`),d=`${e}-dropdown`,p=`${d}-label-${u}`,f={tabIndex:s,id:`${d}-${u}`,"data-testid":d,"aria-labelledby":p};return rr.jsxs(rr.Fragment,{children:[rr.jsxs(lk,{variant:"caption",id:p,children:[c,":"]}),rr.jsx(ak,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:f,disabled:!l.active,children:r})]})},Ak=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:r,width:n,handleChangeRowsPerPage:o,visibilityThreshold:i}=dk();if(!(!!e.rowsPerPageOptions?.length&&!t&&n>(i?.rowsPerPage||hk.RowsPerPage)&&r<=100)||void 0===e.rowsPerPageOptions)return null;const a=rr.jsx(rr.Fragment,{children:e.rowsPerPageOptions.map((e=>rr.jsx("option",{value:e,children:e},e)))});return rr.jsx(Pk,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},Ik=1e3,Mk="…",kk=({totalPages:e,page:t})=>{const r=Math.min(e,Ik),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-Ik):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return rr.jsx("option",{value:t,children:t+1},t)}));return i>0&&a.unshift(rr.jsx("option",{value:Mk,disabled:!0,children:Mk},"startMoreOptions")),o<e-1&&a.push(rr.jsx("option",{value:Mk,disabled:!0,children:Mk},"endMoreOptions")),rr.jsx(rr.Fragment,{children:a})},Dk=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n,visibilityThreshold:o}=dk(),{page:i}=e;if(t<=(o?.selectPage||hk.SelectPage))return null;const a=rr.jsx(kk,{totalPages:r,page:i});return rr.jsx(Pk,{name:"SelectPage",value:i,options:a,handleChange:e=>{n(+e.target.value)}})};var Tk=N((e=>rr.jsxs(pk,{...e,children:[rr.jsx(Ak,{}),rr.jsx(Dk,{}),rr.jsx(Rk,{}),rr.jsx(xk,{}),rr.jsx(Ek,{}),rr.jsx(Ck,{}),rr.jsx(wk,{})]})));const Ok=e=>rr.jsx(uk,{...e,children:rr.jsx(Tk,{...e})});var Lk=Symbol.for("preact-signals");function qk(){if(Fk>1)Fk--;else{for(var e,t=!1;void 0!==zk;){var r=zk;for(zk=void 0,Hk++;void 0!==r;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&Uk(r))try{r.c()}catch(r){t||(e=r,t=!0)}r=n}}if(Hk=0,Fk--,t)throw e}}function Nk(e){if(Fk>0)return e();Fk++;try{return e()}finally{qk()}}var jk=void 0;function _k(e){var t=jk;jk=void 0;try{return e()}finally{jk=t}}var zk=void 0,Fk=0,Hk=0,$k=0;function Wk(e){if(void 0!==jk){var t=e.n;if(void 0===t||t.t!==jk)return t={i:0,S:e,p:jk.s,n:void 0,t:jk,e:void 0,x:void 0,r:t},void 0!==jk.s&&(jk.s.n=t),jk.s=t,e.n=t,32&jk.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=jk.s,t.n=void 0,jk.s.n=t,jk.s=t),t}}function Bk(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function Vk(e,t){return new Bk(e,t)}function Uk(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Gk(e){for(var t=e.s;void 0!==t;t=t.n){var r=t.S.n;if(void 0!==r&&(t.r=r),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function Yk(e){for(var t=e.s,r=void 0;void 0!==t;){var n=t.p;-1===t.i?(t.S.U(t),void 0!==n&&(n.n=t.n),void 0!==t.n&&(t.n.p=n)):r=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=n}e.s=r}function Kk(e,t){Bk.call(this,void 0),this.x=e,this.s=void 0,this.g=$k-1,this.f=4,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function Xk(e,t){return new Kk(e,t)}function Jk(e){var t=e.u;if(e.u=void 0,"function"==typeof t){Fk++;var r=jk;jk=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,Zk(e),t}finally{jk=r,qk()}}}function Zk(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Jk(e)}function Qk(e){if(jk!==this)throw new Error("Out-of-order effect");Yk(this),jk=e,this.f&=-2,8&this.f&&Zk(this),qk()}function eD(e,t){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=null==t?void 0:t.name}function tD(e,t){var r=new eD(e,t);try{r.c()}catch(e){throw r.d(),e}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}Bk.prototype.brand=Lk,Bk.prototype.h=function(){return!0},Bk.prototype.S=function(e){var t=this,r=this.t;r!==e&&void 0===e.e&&(e.x=r,this.t=e,void 0!==r?r.e=e:_k((function(){var e;null==(e=t.W)||e.call(t)})))},Bk.prototype.U=function(e){var t=this;if(void 0!==this.t){var r=e.e,n=e.x;void 0!==r&&(r.x=n,e.e=void 0),void 0!==n&&(n.e=r,e.x=void 0),e===this.t&&(this.t=n,void 0===n&&_k((function(){var e;null==(e=t.Z)||e.call(t)})))}},Bk.prototype.subscribe=function(e){var t=this;return tD((function(){var r=t.value,n=jk;jk=void 0;try{e(r)}finally{jk=n}}),{name:"sub"})},Bk.prototype.valueOf=function(){return this.value},Bk.prototype.toString=function(){return this.value+""},Bk.prototype.toJSON=function(){return this.value},Bk.prototype.peek=function(){var e=jk;jk=void 0;try{return this.value}finally{jk=e}},Object.defineProperty(Bk.prototype,"value",{get:function(){var e=Wk(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Hk>100)throw new Error("Cycle detected");this.v=e,this.i++,$k++,Fk++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{qk()}}}}),Kk.prototype=new Bk,Kk.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===$k)return!0;if(this.g=$k,this.f|=1,this.i>0&&!Uk(this))return this.f&=-2,!0;var e=jk;try{Gk(this),jk=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return jk=e,Yk(this),this.f&=-2,!0},Kk.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}Bk.prototype.S.call(this,e)},Kk.prototype.U=function(e){if(void 0!==this.t&&(Bk.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},Kk.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(Kk.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Wk(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),eD.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.u=t)}finally{e()}},eD.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Jk(this),Gk(this),Fk++;var e=jk;return jk=this,Qk.bind(this,e)},eD.prototype.N=function(){2&this.f||(this.f|=2,this.o=zk,zk=this)},eD.prototype.d=function(){this.f|=8,1&this.f||Zk(this)},eD.prototype.dispose=function(){this.d()};var rD,nD,oD,iD,aD,sD,lD,uD,cD,dD,pD,fD,hD,mD,gD,bD,vD,yD,xD,SD,wD=Object.create,CD=Object.defineProperty,ED=Object.defineProperties,RD=Object.getOwnPropertyDescriptor,PD=Object.getOwnPropertyDescriptors,AD=Object.getOwnPropertySymbols,ID=Object.prototype.hasOwnProperty,MD=Object.prototype.propertyIsEnumerable,kD=e=>{throw TypeError(e)},DD=(e,t,r)=>t in e?CD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,TD=(e,t)=>CD(e,"name",{value:t,configurable:!0}),OD=["class","method","getter","setter","accessor","field","value","get","set"],LD=e=>void 0!==e&&"function"!=typeof e?kD("Function expected"):e,qD=(e,t,r,n,o)=>({kind:OD[e],name:t,metadata:n,addInitializer:e=>r._?kD("Already initialized"):o.push(LD(e||null))}),ND=(e,t)=>{return DD(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n},jD=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},_D=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=OD[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&RD(d<4?o:{get[r](){return HD(this,i)},set[r](e){return WD(this,i,e)}},r));d?f&&d<4&&TD(i,(d>2?"set ":d>1?"get ":"")+r):TD(o,r);for(var y=n.length-1;y>=0;y--)u=qD(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>FD(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?HD:BD)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>WD(e,o,t,4^d?i:v.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,u),l._=1,4^d||void 0===s?LD(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?kD("Object expected"):(LD(a=s.get)&&(v.get=a),LD(a=s.set)&&(v.set=a),LD(a=s.init)&&g.unshift(a));return d||ND(e,o),v&&CD(o,r,v),f?4^d?i:v:o},zD=(e,t,r)=>t.has(e)||kD("Cannot "+r),FD=(e,t)=>Object(t)!==t?kD('Cannot use the "in" operator on this value'):e.has(t),HD=(e,t,r)=>(zD(e,t,"read from private field"),r?r.call(e):t.get(e)),$D=(e,t,r)=>t.has(e)?kD("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),WD=(e,t,r,n)=>(zD(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),BD=(e,t,r)=>(zD(e,t,"access private method"),r);function VD(e,t){if(t){let r;return Xk((()=>{const n=e();return n&&r&&t(r,n)?r:(r=n,n)}))}return Xk(e)}function UD(e,t){if(Object.is(e,t))return!0;if(null===e||null===t)return!1;if("function"==typeof e&&"function"==typeof t)return e===t;if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;return!e.some(((e,r)=>!UD(e,t[r])))}if("object"==typeof e&&"object"==typeof t){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;const o=r.some((r=>!UD(e[r],t[r])));return!o}return!1}function GD({get:e},t){return{init:e=>Vk(e),get(){return e.call(this).value},set(t){const r=e.call(this);r.peek()!==t&&(r.value=t)}}}function YD(e,t){const r=new WeakMap;return function(){let t=r.get(this);return t||(t=VD(e.bind(this)),r.set(this,t)),t.value}}function KD(e=!0){return function(t,r){r.addInitializer((function(){const t="field"===r.kind||r.static?this:Object.getPrototypeOf(this),n=Object.getOwnPropertyDescriptor(t,r.name);n&&Object.defineProperty(t,r.name,((e,t)=>ED(e,PD(t)))(((e,t)=>{for(var r in t||(t={}))ID.call(t,r)&&DD(e,r,t[r]);if(AD)for(var r of AD(t))MD.call(t,r)&&DD(e,r,t[r]);return e})({},n),{enumerable:e}))}))}}function XD(...e){const t=e.map((e=>tD(e)));return()=>t.forEach((e=>e()))}sD=[GD],aD=[GD],iD=[GD],oD=[KD()],nD=[KD()],rD=[KD()];var JD,ZD=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,jD(lD,5,this),$D(this,fD),$D(this,uD,jD(lD,8,this)),jD(lD,11,this),$D(this,hD,jD(lD,12,this)),jD(lD,15,this),$D(this,vD,jD(lD,16,this)),jD(lD,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return HD(this,fD,xD)}get initial(){return HD(this,fD,dD)}get previous(){return HD(this,fD,gD)}set current(e){const t=_k((()=>HD(this,fD,xD)));e&&t&&this.equals(t,e)||Nk((()=>{HD(this,fD,dD)||WD(this,fD,e,pD),WD(this,fD,t,bD),WD(this,fD,e,SD)}))}reset(e=this.defaultValue){Nk((()=>{WD(this,fD,void 0,bD),WD(this,fD,e,pD),WD(this,fD,e,SD)}))}};function QD(e){return _k((()=>{const t={};for(const r in e)t[r]=e[r];return t}))}lD=[,,,wD(null)],uD=new WeakMap,fD=new WeakSet,hD=new WeakMap,vD=new WeakMap,cD=_D(lD,20,"#initial",sD,fD,uD),dD=cD.get,pD=cD.set,mD=_D(lD,20,"#previous",aD,fD,hD),gD=mD.get,bD=mD.set,yD=_D(lD,20,"#current",iD,fD,vD),xD=yD.get,SD=yD.set,_D(lD,2,"current",oD,ZD),_D(lD,2,"initial",nD,ZD),_D(lD,2,"previous",rD,ZD),ND(lD,ZD);JD=new WeakMap;var eT,tT,rT,nT,oT,iT=Object.create,aT=Object.defineProperty,sT=Object.getOwnPropertyDescriptor,lT=Object.getOwnPropertySymbols,uT=Object.prototype.hasOwnProperty,cT=Object.prototype.propertyIsEnumerable,dT=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),pT=e=>{throw TypeError(e)},fT=Math.pow,hT=(e,t,r)=>t in e?aT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,mT=["class","method","getter","setter","accessor","field","value","get","set"],gT=e=>void 0!==e&&"function"!=typeof e?pT("Function expected"):e,bT=(e,t,r,n,o)=>({kind:mT[e],name:t,metadata:n,addInitializer:e=>r._?pT("Already initialized"):o.push(gT(e||null))}),vT=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=mT[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,sT(o,r)),h=n.length-1;h>=0;h--)(l=bT(c,r,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>r in e},u.get=e=>e[r],a=(0,n[h])(f[d],l),s._=1,gT(a)&&(f[d]=a);return f&&aT(o,r,f),o},yT=(e,t,r)=>t.has(e)||pT("Cannot "+r),xT=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,r){return new e(t.x-r.x,t.y-r.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:r}){return new e(t,r)}},ST=class e{constructor(e,t,r,n){this.left=e,this.top=t,this.width=r,this.height=n,this.scale={x:1,y:1}}get inverseScale(){return{x:1/this.scale.x,y:1/this.scale.y}}translate(t,r){const{top:n,left:o,width:i,height:a,scale:s}=this,l=new e(o+t,n+r,i,a);return l.scale=((e,t)=>{for(var r in t||(t={}))uT.call(t,r)&&hT(e,r,t[r]);if(lT)for(var r of lT(t))cT.call(t,r)&&hT(e,r,t[r]);return e})({},s),l}get boundingRectangle(){const{width:e,height:t,left:r,top:n,right:o,bottom:i}=this;return{width:e,height:t,left:r,top:n,right:o,bottom:i}}get center(){const{left:e,top:t,right:r,bottom:n}=this;return new xT((e+r)/2,(t+n)/2)}get area(){const{width:e,height:t}=this;return e*t}equals(t){if(!(t instanceof e))return!1;const{left:r,top:n,width:o,height:i}=this;return r===t.left&&n===t.top&&o===t.width&&i===t.height}containsPoint(e){const{top:t,left:r,bottom:n,right:o}=this;return t<=e.y&&e.y<=n&&r<=e.x&&e.x<=o}intersectionArea(t){return t instanceof e?function(e,t){const r=Math.max(t.top,e.top),n=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-n,s=i-r;if(n<o&&r<i){return a*s}return 0}(this,t):0}intersectionRatio(e){const{area:t}=this,r=this.intersectionArea(e);return r/(e.area+t-r)}get bottom(){const{top:e,height:t}=this;return e+t}get right(){const{left:e,width:t}=this;return e+t}get aspectRatio(){const{width:e,height:t}=this;return e/t}get corners(){return[{x:this.left,y:this.top},{x:this.right,y:this.top},{x:this.left,y:this.bottom},{x:this.right,y:this.bottom}]}static from({top:t,left:r,width:n,height:o}){return new e(r,t,n,o)}static delta(e,t,r={x:"center",y:"center"}){const n=(e,t)=>{const n=r[t],o="x"===t?e.left:e.top,i="x"===t?e.width:e.height;return"start"==n?o:"end"==n?o+i:o+i/2};return xT.delta({x:n(e,"x"),y:n(e,"y")},{x:n(t,"x"),y:n(t,"y")})}static intersectionRatio(t,r){return e.from(t).intersectionRatio(e.from(r))}};var wT,CT=class extends(rT=ZD,tT=[YD],eT=[YD],rT){constructor(e){var t,r,n;super(xT.from(e),((e,t)=>xT.equals(e,t))),((e,t,r)=>{for(var n=0,o=e[t>>1],i=o&&o.length;n<i;n++)o[n].call(r)})(oT,5,this),t=this,n=0,(r=nT).has(t)?pT("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,n),this.velocity={x:0,y:0}}get delta(){return xT.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const r={x:e.x-t.x,y:e.y-t.y};return r.x||r.y?Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,r=xT.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(yT(a=this,s=nT,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);Nk((()=>{((e,t,r)=>{yT(e,t,"write to private field"),t.set(e,r)})(this,nT,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r}))}reset(e=this.defaultValue){super.reset(xT.from(e)),this.velocity={x:0,y:0}}};function ET({x:e,y:t},r){const n=Math.abs(e),o=Math.abs(t);return"number"==typeof r?Math.sqrt(fT(n,2)+fT(o,2))>r:"x"in r&&"y"in r?n>r.x&&o>r.y:"x"in r?n>r.x:"y"in r&&o>r.y}oT=(e=>{var t;return[,,,iT(null!=(t=null==e?void 0:e[dT("metadata")])?t:null)]})(rT),nT=new WeakMap,vT(oT,2,"delta",tT,CT),vT(oT,2,"direction",eT,CT),wT=oT,hT(CT,dT("metadata"),wT[3]);var RT,PT,AT,IT,MT=(e=>(e.Horizontal="x",e.Vertical="y",e))(MT||{}),kT=Object.values(MT),DT=Object.create,TT=Object.defineProperty,OT=Object.defineProperties,LT=Object.getOwnPropertyDescriptor,qT=Object.getOwnPropertyDescriptors,NT=Object.getOwnPropertySymbols,jT=Object.prototype.hasOwnProperty,_T=Object.prototype.propertyIsEnumerable,zT=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),FT=e=>{throw TypeError(e)},HT=(e,t,r)=>t in e?TT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$T=(e,t)=>{for(var r in t||(t={}))jT.call(t,r)&&HT(e,r,t[r]);if(NT)for(var r of NT(t))_T.call(t,r)&&HT(e,r,t[r]);return e},WT=(e,t)=>OT(e,qT(t)),BT=(e,t)=>TT(e,"name",{value:t,configurable:!0}),VT=(e,t)=>{var r={};for(var n in e)jT.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&NT)for(var n of NT(e))t.indexOf(n)<0&&_T.call(e,n)&&(r[n]=e[n]);return r},UT=e=>{var t;return[,,,DT(null!=(t=null==e?void 0:e[zT("metadata")])?t:null)]},GT=["class","method","getter","setter","accessor","field","value","get","set"],YT=e=>void 0!==e&&"function"!=typeof e?FT("Function expected"):e,KT=(e,t,r,n,o)=>({kind:GT[e],name:t,metadata:n,addInitializer:e=>r._?FT("Already initialized"):o.push(YT(e||null))}),XT=(e,t)=>HT(t,zT("metadata"),e[3]),JT=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},ZT=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=GT[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&<(d<4?o:{get[r](){return tO(this,i)},set[r](e){return nO(this,i,e)}},r));d?f&&d<4&&BT(i,(d>2?"set ":d>1?"get ":"")+r):BT(o,r);for(var y=n.length-1;y>=0;y--)u=KT(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>eO(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?tO:oO)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>nO(e,o,t,4^d?i:v.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,u),l._=1,4^d||void 0===s?YT(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?FT("Object expected"):(YT(a=s.get)&&(v.get=a),YT(a=s.set)&&(v.set=a),YT(a=s.init)&&g.unshift(a));return d||XT(e,o),v&&TT(o,r,v),f?4^d?i:v:o},QT=(e,t,r)=>t.has(e)||FT("Cannot "+r),eO=(e,t)=>Object(t)!==t?FT('Cannot use the "in" operator on this value'):e.has(t),tO=(e,t,r)=>(QT(e,t,"read from private field"),r?r.call(e):t.get(e)),rO=(e,t,r)=>t.has(e)?FT("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),nO=(e,t,r,n)=>(QT(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),oO=(e,t,r)=>(QT(e,t,"access private method"),r);function iO(e,t){return{plugin:e,options:t}}function aO(e){return t=>iO(e,t)}function sO(e){return"function"==typeof e?{plugin:e,options:void 0}:e}RT=[GD];var lO=class{constructor(e,t){this.manager=e,this.options=t,rO(this,AT,JT(PT,8,this,!1)),JT(PT,11,this),rO(this,IT,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return _k((()=>this.disabled))}configure(e){this.options=e}registerEffect(e){const t=tD(e.bind(this));return tO(this,IT).add(t),t}destroy(){tO(this,IT).forEach((e=>e()))}static configure(e){return iO(this,e)}};PT=UT(null),AT=new WeakMap,IT=new WeakMap,ZT(PT,4,"disabled",RT,lO,AT),XT(PT,lO);var uO,cO=class extends lO{},dO=class{constructor(e){this.manager=e,this.instances=new Map,rO(this,uO,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(sO).reduceRight(((e,t)=>e.some((({plugin:e})=>e===t.plugin))?e:[t,...e]),[]),r=t.map((({plugin:e})=>e));for(const e of tO(this,uO))if(!r.includes(e)){if(e.prototype instanceof cO)continue;this.unregister(e)}for(const{plugin:e,options:r}of t)this.register(e,r);nO(this,uO,r)}get(e){return this.instances.get(e)}register(e,t){const r=this.instances.get(e);if(r)return r.options!==t&&(r.options=t),r;const n=new e(this.manager,t);return this.instances.set(e,n),n}unregister(e){const t=this.instances.get(e);t&&(t.destroy(),this.instances.delete(e))}destroy(){for(const e of this.instances.values())e.destroy();this.instances.clear()}};function pO(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}uO=new WeakMap;var fO,hO,mO=[],gO=class extends lO{constructor(e){super(e),rO(this,fO),rO(this,hO),this.computeCollisions=this.computeCollisions.bind(this),nO(this,hO,Vk(mO)),this.destroy=XD((()=>{const e=this.computeCollisions(),t=_k((()=>this.manager.dragOperation.position.current));if(e!==mO){const e=tO(this,fO);if(nO(this,fO,t),e&&t.x==e.x&&t.y==e.y)return}else nO(this,fO,void 0);tO(this,hO).value=e}),(()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()}))}forceUpdate(e=!0){_k((()=>{e?tO(this,hO).value=this.computeCollisions():nO(this,fO,void 0)}))}computeCollisions(e,t){const{registry:r,dragOperation:n}=this.manager,{source:o,shape:i,status:a}=n;if(!a.initialized||!i)return mO;const s=[],l=[];for(const i of null!=e?e:r.droppables){if(i.disabled)continue;if(o&&!i.accepts(o))continue;const e=null!=t?t:i.collisionDetector;if(!e)continue;l.push(i),i.shape;const r=_k((()=>e({droppable:i,dragOperation:n})));r&&(null!=i.collisionPriority&&(r.priority=i.collisionPriority),s.push(r))}return 0===l.length?mO:(s.sort(pO),s)}get collisions(){return tO(this,hO).value}};fO=new WeakMap,hO=new WeakMap;var bO=class{constructor(){this.registry=new Map}addEventListener(e,t){const{registry:r}=this,n=new Set(r.get(e));return n.add(t),r.set(e,n),()=>this.removeEventListener(e,t)}removeEventListener(e,t){const{registry:r}=this,n=new Set(r.get(e));n.delete(t),r.set(e,n)}dispatch(e,...t){const{registry:r}=this,n=r.get(e);if(n)for(const e of n)e(...t)}},vO=class extends bO{constructor(e){super(),this.manager=e}dispatch(e,t){const r=[t,this.manager];super.dispatch(e,...r)}};function yO(e,t=!0){let r=!1;return WT($T({},e),{cancelable:t,get defaultPrevented(){return r},preventDefault(){t&&(r=!0)}})}var xO,SO,wO,CO,EO,RO,PO,AO,IO,MO=class extends cO{constructor(e){super(e);let t=[];this.destroy=XD((()=>{const{dragOperation:r,collisionObserver:n}=e;r.status.initializing&&(t=[],n.enable())}),(()=>{const{collisionObserver:r,monitor:n}=e,{collisions:o}=r;if(r.isDisabled())return;const i=yO({collisions:o});if(n.dispatch("collision",i),i.defaultPrevented)return;if(((e,t)=>e.map((({id:e})=>e)).join("")===t.map((({id:e})=>e)).join(""))(o,t))return;t=o;const[a]=o;_k((()=>{var t;(null==a?void 0:a.id)!==(null==(t=e.dragOperation.target)?void 0:t.id)&&(r.disable(),e.actions.setDropTarget(null==a?void 0:a.id).then((()=>{r.enable()})))}))}))}},kO=(e=>(e[e.Lowest=0]="Lowest",e[e.Low=1]="Low",e[e.Normal=2]="Normal",e[e.High=3]="High",e[e.Highest=4]="Highest",e))(kO||{}),DO=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(DO||{});PO=[GD],RO=[YD],EO=[YD],CO=[YD],wO=[YD],SO=[YD],xO=[YD];var TO=class{constructor(){JT(AO,5,this),rO(this,IO,JT(AO,8,this,"idle")),JT(AO,11,this)}get current(){return this.value}get idle(){return"idle"===this.value}get initializing(){return"initializing"===this.value}get initialized(){const{value:e}=this;return"idle"!==e&&"initialization-pending"!==e}get dragging(){return"dragging"===this.value}get dropped(){return"dropped"===this.value}set(e){this.value=e}};AO=UT(null),IO=new WeakMap,ZT(AO,4,"value",PO,TO,IO),ZT(AO,2,"current",RO,TO),ZT(AO,2,"idle",EO,TO),ZT(AO,2,"initializing",CO,TO),ZT(AO,2,"initialized",wO,TO),ZT(AO,2,"dragging",SO,TO),ZT(AO,2,"dropped",xO,TO),XT(AO,TO);var OO,LO,qO,NO,jO,_O,zO,FO,HO,$O=class{constructor(e){this.manager=e}setDragSource(e){const{dragOperation:t}=this.manager;t.sourceIdentifier="string"==typeof e||"number"==typeof e?e:e.id}setDropTarget(e){return _k((()=>{const{dragOperation:t}=this.manager,r=null!=e?e:null;if(t.targetIdentifier===r)return Promise.resolve(!1);t.targetIdentifier=r;const n=yO({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",n),this.manager.renderer.rendering.then((()=>n.defaultPrevented))}))}start(e){return _k((()=>{const{dragOperation:t}=this.manager;null!=e.source&&this.setDragSource(e.source);if(!t.source)throw new Error("Cannot start a drag operation without a drag source");if(!t.status.idle)throw new Error("Cannot start a drag operation while another is active");const r=new AbortController,{event:n,coordinates:o}=e;Nk((()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=n?n:null,t.position.reset(o)}));const i=yO({operation:t.snapshot()});return this.manager.monitor.dispatch("beforedragstart",i),i.defaultPrevented?(t.reset(),r.abort(),r):(t.status.set("initializing"),t.controller=r,this.manager.renderer.rendering.then((()=>{if(r.signal.aborted)return;const{status:e}=t;"initializing"===e.current&&(t.status.set("dragging"),this.manager.monitor.dispatch("dragstart",{nativeEvent:n,operation:t.snapshot(),cancelable:!1}))})),r)}))}move(e){return _k((()=>{var t,r;const{dragOperation:n}=this.manager,{status:o,controller:i}=n;if(!o.dragging||!i||i.signal.aborted)return;const a=yO({nativeEvent:e.event,operation:n.snapshot(),by:e.by,to:e.to},null==(t=e.cancelable)||t);(null==(r=e.propagate)||r)&&this.manager.monitor.dispatch("dragmove",a),queueMicrotask((()=>{var t,r,o,i,s;if(a.defaultPrevented)return;const l=null!=(s=e.to)?s:{x:n.position.current.x+(null!=(r=null==(t=e.by)?void 0:t.x)?r:0),y:n.position.current.y+(null!=(i=null==(o=e.by)?void 0:o.y)?i:0)};n.position.current=l}))}))}stop(e={}){return _k((()=>{var t,r;const{dragOperation:n}=this.manager,{controller:o}=n;if(!o||o.signal.aborted)return;let i;o.abort();const a=()=>{this.manager.renderer.rendering.then((()=>{n.status.set("dropped");const e=_k((()=>{var e;return"dropping"===(null==(e=n.source)?void 0:e.status)})),t=()=>{n.controller===o&&(n.controller=void 0),n.reset()};if(e){const{source:e}=n,r=tD((()=>{"idle"===(null==e?void 0:e.status)&&(r(),t())}))}else this.manager.renderer.rendering.then(t)}))};n.canceled=null!=(t=e.canceled)&&t,this.manager.monitor.dispatch("dragend",{nativeEvent:e.event,operation:n.snapshot(),canceled:null!=(r=e.canceled)&&r,suspend:()=>{const e={resume:()=>{},abort:()=>{}};return i=new Promise(((t,r)=>{e.resume=t,e.abort=r})),e}}),i?i.then(a).catch((()=>n.reset())):a()}))}};NO=[GD],qO=[GD],LO=[GD],OO=[GD];var WO=class{constructor(e,t){rO(this,_O,JT(jO,8,this)),JT(jO,11,this),rO(this,zO,JT(jO,12,this)),JT(jO,15,this),rO(this,FO,JT(jO,16,this)),JT(jO,19,this),rO(this,HO,JT(jO,20,this)),JT(jO,23,this);const{effects:r,id:n,data:o={},disabled:i=!1,register:a=!0}=e;let s=n;this.manager=t,this.id=n,this.data=o,this.disabled=i,this.effects=()=>{var e;return[()=>{const{id:e,manager:t}=this;if(e!==s)return null==t||t.registry.register(this),()=>null==t?void 0:t.registry.unregister(this)},...null!=(e=null==r?void 0:r())?e:[]]},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this),this.destroy=this.destroy.bind(this),t&&a&&queueMicrotask(this.register)}register(){var e;return null==(e=this.manager)?void 0:e.registry.register(this)}unregister(){var e;null==(e=this.manager)||e.registry.unregister(this)}destroy(){var e;null==(e=this.manager)||e.registry.unregister(this)}};jO=UT(null),_O=new WeakMap,zO=new WeakMap,FO=new WeakMap,HO=new WeakMap,ZT(jO,4,"manager",NO,WO,_O),ZT(jO,4,"id",qO,WO,zO),ZT(jO,4,"data",LO,WO,FO),ZT(jO,4,"disabled",OO,WO,HO),XT(jO,WO);var BO,VO,UO,GO,YO,KO,XO,JO,ZO,QO,eL,tL,rL,nL,oL,iL,aL,sL,lL,uL,cL,dL,pL,fL,hL=class{constructor(){this.map=Vk(new Map),this.cleanupFunctions=new WeakMap,this.register=(e,t)=>{const r=this.map.peek(),n=r.get(e),o=()=>this.unregister(e,t);if(n===t)return o;if(n){const e=this.cleanupFunctions.get(n);null==e||e(),this.cleanupFunctions.delete(n)}const i=new Map(r);i.set(e,t),this.map.value=i;const a=XD(...t.effects());return this.cleanupFunctions.set(t,a),o},this.unregister=(e,t)=>{const r=this.map.peek();if(r.get(e)!==t)return;const n=this.cleanupFunctions.get(t);null==n||n(),this.cleanupFunctions.delete(t);const o=new Map(r);o.delete(e),this.map.value=o}}[Symbol.iterator](){return this.map.peek().values()}get value(){return this.map.value.values()}has(e){return this.map.value.has(e)}get(e){return this.map.value.get(e)}destroy(){for(const e of this){const t=this.cleanupFunctions.get(e);null==t||t(),e.destroy()}this.map.value=new Map}},mL=class extends(XO=WO,KO=[GD],YO=[GD],GO=[GD],UO=[YD],VO=[YD],BO=[YD],XO){constructor(e,t){var r=e,{modifiers:n,type:o,sensors:i}=r,a=VT(r,["modifiers","type","sensors"]);super(a,t),JT(JO,5,this),rO(this,ZO,JT(JO,8,this)),JT(JO,11,this),rO(this,QO,JT(JO,12,this)),JT(JO,15,this),rO(this,eL,JT(JO,16,this,this.isDragSource?"dragging":"idle")),JT(JO,19,this),this.type=o,this.sensors=i,this.modifiers=n,this.alignment=a.alignment}get isDropping(){return"dropping"===this.status&&this.isDragSource}get isDragging(){return"dragging"===this.status&&this.isDragSource}get isDragSource(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.source)?void 0:t.id)===this.id}};JO=UT(XO),ZO=new WeakMap,QO=new WeakMap,eL=new WeakMap,ZT(JO,4,"type",KO,mL,ZO),ZT(JO,4,"modifiers",YO,mL,QO),ZT(JO,4,"status",GO,mL,eL),ZT(JO,2,"isDropping",UO,mL),ZT(JO,2,"isDragging",VO,mL),ZT(JO,2,"isDragSource",BO,mL),XT(JO,mL);var gL=class extends(sL=WO,aL=[GD],iL=[GD],oL=[GD],nL=[GD],rL=[GD],tL=[YD],sL){constructor(e,t){var r=e,{accept:n,collisionDetector:o,collisionPriority:i,type:a}=r;super(VT(r,["accept","collisionDetector","collisionPriority","type"]),t),JT(lL,5,this),rO(this,uL,JT(lL,8,this)),JT(lL,11,this),rO(this,cL,JT(lL,12,this)),JT(lL,15,this),rO(this,dL,JT(lL,16,this)),JT(lL,19,this),rO(this,pL,JT(lL,20,this)),JT(lL,23,this),rO(this,fL,JT(lL,24,this)),JT(lL,27,this),this.accept=n,this.collisionDetector=o,this.collisionPriority=i,this.type=a}accepts(e){const{accept:t}=this;return!t||("function"==typeof t?t(e):!!e.type&&(Array.isArray(t)?t.includes(e.type):e.type===t))}get isDropTarget(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.target)?void 0:t.id)===this.id}};lL=UT(sL),uL=new WeakMap,cL=new WeakMap,dL=new WeakMap,pL=new WeakMap,fL=new WeakMap,ZT(lL,4,"accept",aL,gL,uL),ZT(lL,4,"type",iL,gL,cL),ZT(lL,4,"collisionDetector",oL,gL,dL),ZT(lL,4,"collisionPriority",nL,gL,pL),ZT(lL,4,"shape",rL,gL,fL),ZT(lL,2,"isDropTarget",tL,gL),XT(lL,gL);var bL,vL=class extends lO{constructor(e,t){super(e,t),this.manager=e,this.options=t}},yL=class extends AbortController{constructor(e,t){super(),this.constraints=e,this.onActivate=t,this.activated=!1;for(const t of null!=e?e:[])t.controller=this}onEvent(e){var t;if(!this.activated)if(null==(t=this.constraints)?void 0:t.length)for(const t of this.constraints)t.onEvent(e);else this.activate(e)}activate(e){this.activated||(this.activated=!0,this.onActivate(e))}abort(e){this.activated=!1,super.abort(e)}},xL=class{constructor(e){this.options=e,rO(this,bL)}set controller(e){nO(this,bL,e),e.signal.addEventListener("abort",(()=>this.abort()))}activate(e){var t;null==(t=tO(this,bL))||t.activate(e)}};bL=new WeakMap;var SL,wL,CL,EL,RL,PL,AL,IL,ML,kL,DL,TL,OL,LL,qL,NL,jL,_L,zL,FL=class extends lO{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},HL=class{constructor(e){this.draggables=new hL,this.droppables=new hL,this.plugins=new dO(e),this.sensors=new dO(e),this.modifiers=new dO(e)}register(e,t){if(e instanceof mL)return this.draggables.register(e.id,e);if(e instanceof gL)return this.droppables.register(e.id,e);if(e.prototype instanceof FL)return this.modifiers.register(e,t);if(e.prototype instanceof vL)return this.sensors.register(e,t);if(e.prototype instanceof lO)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof WO)return e instanceof mL?this.draggables.unregister(e.id,e):e instanceof gL?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof FL)return this.modifiers.unregister(e);if(e.prototype instanceof vL)return this.sensors.unregister(e);if(e.prototype instanceof lO)return this.plugins.unregister(e);throw new Error("Invalid instance type")}destroy(){this.draggables.destroy(),this.droppables.destroy(),this.plugins.destroy(),this.sensors.destroy(),this.modifiers.destroy()}};ML=[YD],IL=[GD],AL=[GD],PL=[GD],RL=[GD],EL=[GD],CL=[YD],wL=[YD],SL=[YD];var $L=class{constructor(e){JT(OL,5,this),rO(this,kL),rO(this,DL),rO(this,TL,new ZD(void 0,((e,t)=>e&&t?e.equals(t):e===t))),this.status=new TO,rO(this,LL,JT(OL,8,this,!1)),JT(OL,11,this),rO(this,qL,JT(OL,12,this,null)),JT(OL,15,this),rO(this,NL,JT(OL,16,this,null)),JT(OL,19,this),rO(this,jL,JT(OL,20,this,null)),JT(OL,23,this),rO(this,_L,JT(OL,24,this,[])),JT(OL,27,this),this.position=new CT({x:0,y:0}),rO(this,zL,{x:0,y:0}),nO(this,kL,e)}get shape(){const{current:e,initial:t,previous:r}=tO(this,TL);return e&&t?{current:e,initial:t,previous:r}:null}set shape(e){e?tO(this,TL).current=e:tO(this,TL).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const r=tO(this,kL).registry.draggables.get(t);return r&&nO(this,DL,r),null!=(e=null!=r?r:tO(this,DL))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=tO(this,kL).registry.droppables.get(t))?e:null}get transform(){const{x:e,y:t}=this.position.delta;let r={x:e,y:t};for(const e of this.modifiers)r=e.apply(WT($T({},this.snapshot()),{transform:r}));return nO(this,zL,r),r}snapshot(){return _k((()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:tO(this,zL),shape:this.shape?QD(this.shape):null,position:QD(this.position),status:QD(this.status),canceled:this.canceled})))}reset(){Nk((()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,tO(this,TL).reset(),this.position.reset({x:0,y:0}),nO(this,zL,{x:0,y:0}),this.modifiers=[]}))}};OL=UT(null),kL=new WeakMap,DL=new WeakMap,TL=new WeakMap,LL=new WeakMap,qL=new WeakMap,NL=new WeakMap,jL=new WeakMap,_L=new WeakMap,zL=new WeakMap,ZT(OL,2,"shape",ML,$L),ZT(OL,4,"canceled",IL,$L,LL),ZT(OL,4,"activatorEvent",AL,$L,qL),ZT(OL,4,"sourceIdentifier",PL,$L,NL),ZT(OL,4,"targetIdentifier",RL,$L,jL),ZT(OL,4,"modifiers",EL,$L,_L),ZT(OL,2,"source",CL,$L),ZT(OL,2,"target",wL,$L),ZT(OL,2,"transform",SL,$L),XT(OL,$L);var WL={get rendering(){return Promise.resolve()}},BL=class{constructor(e){this.destroy=()=>{this.dragOperation.status.idle||this.actions.stop({canceled:!0}),this.dragOperation.modifiers.forEach((e=>e.destroy())),this.registry.destroy(),this.collisionObserver.destroy()};const{plugins:t=[],sensors:r=[],modifiers:n=[],renderer:o=WL}=null!=e?e:{},i=new vO(this),a=new HL(this);this.registry=a,this.monitor=i,this.renderer=o,this.actions=new $O(this),this.dragOperation=new $L(this),this.collisionObserver=new gO(this),this.plugins=[MO,...t],this.modifiers=n,this.sensors=r;const{destroy:s}=this,l=XD((()=>{var e,t,r;const n=_k((()=>this.dragOperation.modifiers)),o=this.modifiers;n!==o&&n.forEach((e=>e.destroy())),this.dragOperation.modifiers=null!=(r=null==(t=null==(e=this.dragOperation.source)?void 0:e.modifiers)?void 0:t.map((e=>{const{plugin:t,options:r}=sO(e);return new t(this,r)})))?r:o}));this.destroy=()=>{l(),s()}}get plugins(){return this.registry.plugins.values}set plugins(e){this.registry.plugins.values=e}get modifiers(){return this.registry.modifiers.values}set modifiers(e){this.registry.modifiers.values=e}get sensors(){return this.registry.sensors.values}set sensors(e){this.registry.sensors.values=e}},VL=e=>{throw TypeError(e)},UL=(e,t,r)=>t.has(e)||VL("Cannot "+r),GL=(e,t,r)=>(UL(e,t,"read from private field"),t.get(e)),YL=(e,t,r)=>t.has(e)?VL("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),KL=(e,t,r,n)=>(UL(e,t,"write to private field"),t.set(e,r),r),XL=(e,t,r)=>(UL(e,t,"access private method"),r);function JL(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function ZL(e,t){const r=e.getAnimations();if(r.length>0)for(const e of r){if("running"!==e.playState)continue;const{effect:r}=e,n=(JL(r)?r.getKeyframes():[]).filter(t);if(n.length>0)return[n[n.length-1],e]}return null}function QL(e){const{width:t,height:r,top:n,left:o,bottom:i,right:a}=e.getBoundingClientRect();return{width:t,height:r,top:n,left:o,bottom:i,right:a}}function eq(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function tq(e){return"nodeType"in e}function rq(e){var t,r,n;return e?eq(e)?e:tq(e)?"defaultView"in e?null!=(t=e.defaultView)?t:window:null!=(n=null==(r=e.ownerDocument)?void 0:r.defaultView)?n:window:window:window}function nq(e){const{Document:t}=rq(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function oq(e){return!(!e||eq(e))&&(e instanceof rq(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function iq(e){return e instanceof rq(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function aq(e){return e?eq(e)?e.document:tq(e)?nq(e)?e:oq(e)||iq(e)?e.ownerDocument:document:document:document}function sq(e,t){if(function(e){return"DETAILS"===e.tagName}(e)&&!1===e.open)return!1;const{overflow:r,overflowX:n,overflowY:o}=getComputedStyle(e);return"visible"===r&&"visible"===n&&"visible"===o}function lq(e,t=e.getBoundingClientRect(),r=0){var n;let o=t;const{ownerDocument:i}=e,a=null!=(n=i.defaultView)?n:window;let s=e.parentElement;for(;s&&s!==i.documentElement;){if(!sq(s)){const e=s.getBoundingClientRect(),t=r*(e.bottom-e.top),n=r*(e.right-e.left),i=r*(e.bottom-e.top),a=r*(e.right-e.left);o={top:Math.max(o.top,e.top-t),right:Math.min(o.right,e.right+n),bottom:Math.min(o.bottom,e.bottom+i),left:Math.max(o.left,e.left-a),width:0,height:0},o.width=o.right-o.left,o.height=o.bottom-o.top}s=s.parentElement}const l=a.innerWidth,u=a.innerHeight,c=r*u,d=r*l;return o={top:Math.max(o.top,0-c),right:Math.min(o.right,l+d),bottom:Math.min(o.bottom,u+c),left:Math.max(o.left,0-d),width:0,height:0},o.width=o.right-o.left,o.height=o.bottom-o.top,o.width<0&&(o.width=0),o.height<0&&(o.height=0),o}function uq(e){return{x:e.clientX,y:e.clientY}}var cq="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function dq(e=document,t=new Set){if(t.has(e))return[];t.add(e);const r=[e];for(const n of Array.from(e.querySelectorAll("iframe, frame")))try{const e=n.contentDocument;e&&!t.has(e)&&r.push(...dq(e,t))}catch(e){}try{const n=e.defaultView;if(n&&n!==window.top){const o=n.parent;o&&o.document&&o.document!==e&&r.push(...dq(o.document,t))}}catch(e){}return r}function pq(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function fq(e){return!(!e||!tq(e))&&e instanceof rq(e).ShadowRoot}function hq(e){if(e&&tq(e)){let t=e.getRootNode();if(fq(t))return t;if(t instanceof Document)return t}return aq(e)}function mq(e){return e.matchMedia("(prefers-reduced-motion: reduce)").matches}function gq(e){return"value"in e}function bq(e){return"CANVAS"===e.tagName}function vq(e,{x:t,y:r}){const n=e.elementFromPoint(t,r);if(function(e){return"IFRAME"===(null==e?void 0:e.tagName)}(n)){const{contentDocument:e}=n;if(e){const{left:o,top:i}=n.getBoundingClientRect();return vq(e,{x:t-o,y:r-i})}}return n}var yq=new WeakMap;var xq=class{constructor(){this.entries=new Set,this.clear=()=>{for(const e of this.entries){const[t,{type:r,listener:n,options:o}]=e;t.removeEventListener(r,n,o)}this.entries.clear()}}bind(e,t){const r=Array.isArray(e)?e:[e],n=Array.isArray(t)?t:[t],o=[];for(const e of r)for(const t of n){const{type:r,listener:n,options:i}=t,a=[e,t];e.addEventListener(r,n,i),this.entries.add(a),o.push(a)}return function(){for(const[e,{type:t,listener:r,options:n}]of o)e.removeEventListener(t,r,n)}}};function Sq(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function wq(e,t){const r=()=>performance.now();let n,o;return function(...i){const a=this;o?(null==n||n(),n=function(e,t){const r=setTimeout(e,t);return()=>clearTimeout(r)}((()=>{e.apply(a,i),o=r()}),t-(r()-o))):(e.apply(a,i),o=r())}}var Cq,Eq=cq?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},Rq=class extends Eq{constructor(e){super((t=>{GL(this,Cq)?e(t,this):KL(this,Cq,!0)})),YL(this,Cq,!1)}};Cq=new WeakMap;var Pq,Aq,Iq,Mq,kq,Dq,Tq,Oq,Lq,qq,Nq,jq=Array.from({length:100},((e,t)=>t/100)),_q=class{constructor(e,t,r={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,YL(this,Lq),this.disconnect=()=>{var e,t,r;KL(this,Tq,!0),null==(e=GL(this,Iq))||e.disconnect(),null==(t=GL(this,Mq))||t.disconnect(),GL(this,kq).disconnect(),null==(r=GL(this,Dq))||r.remove()},YL(this,Pq,!0),YL(this,Aq),YL(this,Iq),YL(this,Mq),YL(this,kq),YL(this,Dq),YL(this,Tq,!1),YL(this,Oq,wq((()=>{var e,t,r;const{element:n}=this;if(null==(e=GL(this,Mq))||e.disconnect(),GL(this,Tq)||!GL(this,Pq)||!n.isConnected)return;const o=null!=(t=n.ownerDocument)?t:document,{innerHeight:i,innerWidth:a}=null!=(r=o.defaultView)?r:window,s=n.getBoundingClientRect(),l=lq(n,s),{top:u,left:c,bottom:d,right:p}=l,f=-Math.floor(u),h=-Math.floor(c),m=`${f}px ${-Math.floor(a-p)}px ${-Math.floor(i-d)}px ${h}px`;this.boundingClientRect=s,KL(this,Mq,new IntersectionObserver((e=>{const[t]=e,{intersectionRect:r}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:ST.intersectionRatio(r,lq(n)))&&GL(this,Oq).call(this)}),{threshold:jq,rootMargin:m,root:o})),GL(this,Mq).observe(n),XL(this,Lq,qq).call(this)}),75)),this.boundingClientRect=e.getBoundingClientRect(),KL(this,Pq,function(e,t=e.getBoundingClientRect()){const{width:r,height:n}=lq(e,t);return r>0&&n>0}(e,this.boundingClientRect));let n=!0;this.callback=e=>{n&&(n=!1,r.skipInitial)||t(e)};const o=e.ownerDocument;(null==r?void 0:r.debug)&&(KL(this,Dq,document.createElement("div")),GL(this,Dq).style.background="rgba(0,0,0,0.15)",GL(this,Dq).style.position="fixed",GL(this,Dq).style.pointerEvents="none",o.body.appendChild(GL(this,Dq))),KL(this,kq,new IntersectionObserver((t=>{var r,n;const o=t[t.length-1],{boundingClientRect:i,isIntersecting:a}=o,{width:s,height:l}=i,u=GL(this,Pq);KL(this,Pq,a),(s||l)&&(u&&!a?(null==(r=GL(this,Mq))||r.disconnect(),this.callback(null),null==(n=GL(this,Iq))||n.disconnect(),KL(this,Iq,void 0),GL(this,Dq)&&(GL(this,Dq).style.visibility="hidden")):GL(this,Oq).call(this),a&&!GL(this,Iq)&&(KL(this,Iq,new Rq(GL(this,Oq))),GL(this,Iq).observe(e)))}),{threshold:jq,root:o})),GL(this,Pq)&&!r.skipInitial&&this.callback(this.boundingClientRect),GL(this,kq).observe(e)}};Pq=new WeakMap,Aq=new WeakMap,Iq=new WeakMap,Mq=new WeakMap,kq=new WeakMap,Dq=new WeakMap,Tq=new WeakMap,Oq=new WeakMap,Lq=new WeakSet,qq=function(){GL(this,Tq)||(XL(this,Lq,Nq).call(this),function(e,t){return e===t||!(!e||!t)&&e.top==t.top&&e.left==t.left&&e.right==t.right&&e.bottom==t.bottom}(this.boundingClientRect,GL(this,Aq))||(this.callback(this.boundingClientRect),KL(this,Aq,this.boundingClientRect)))},Nq=function(){if(GL(this,Dq)){const{top:e,left:t,width:r,height:n}=lq(this.element);GL(this,Dq).style.overflow="hidden",GL(this,Dq).style.visibility="visible",GL(this,Dq).style.top=`${Math.floor(e)}px`,GL(this,Dq).style.left=`${Math.floor(t)}px`,GL(this,Dq).style.width=`${Math.floor(r)}px`,GL(this,Dq).style.height=`${Math.floor(n)}px`}};var zq,Fq,Hq,$q,Wq=new WeakMap,Bq=new WeakMap;function Vq(e,t){let r=Wq.get(e);if(!r){const t=new _q(e,(t=>{const r=Wq.get(e);r&&r.callbacks.forEach((e=>e(t)))}),{skipInitial:!0});r={disconnect:t.disconnect,callbacks:new Set}}return r.callbacks.add(t),Wq.set(e,r),()=>{r.callbacks.delete(t),0===r.callbacks.size&&(Wq.delete(e),r.disconnect())}}var Uq=class{constructor(e,t,r){this.callback=t,YL(this,zq),YL(this,Fq,!1),YL(this,Hq),YL(this,$q,wq((e=>{if(!GL(this,Fq)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of GL(this,Hq))if(e.target.contains(t)){this.callback(GL(this,zq).boundingClientRect);break}}),75));const n=function(e){const t=new Set;let r=Sq(e);for(;r;)t.add(r),r=Sq(r);return t}(e),o=function(e,t){const r=new Set;for(const n of e){const e=Vq(n,t);r.add(e)}return()=>r.forEach((e=>e()))}(n,t),i=function(e,t){var r;const n=e.ownerDocument;if(!Bq.has(n)){const e=new AbortController,t=new Set;document.addEventListener("scroll",(e=>t.forEach((t=>t(e)))),{capture:!0,passive:!0,signal:e.signal}),Bq.set(n,{disconnect:()=>e.abort(),listeners:t})}const{listeners:o,disconnect:i}=null!=(r=Bq.get(n))?r:{};return o&&i?(o.add(t),()=>{o.delete(t),0===o.size&&(i(),Bq.delete(n))}):()=>{}}(e,GL(this,$q));KL(this,Hq,n),KL(this,zq,new _q(e,t,r)),this.disconnect=()=>{GL(this,Fq)||(KL(this,Fq,!0),o(),i(),GL(this,zq).disconnect())}}};function Gq(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function Yq(e){try{Gq(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function Kq(e){return!(!cq||!e)&&e===aq(e).scrollingElement}function Xq(e){const t=rq(e),r=Kq(e)?function(e){const{documentElement:t}=aq(e),r=t.clientWidth,n=t.clientHeight;return{top:0,left:0,right:r,bottom:n,width:r,height:n}}(e):QL(e),n=Kq(e)?{height:t.innerHeight,width:t.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o={current:{x:e.scrollLeft,y:e.scrollTop},max:{x:e.scrollWidth-n.width,y:e.scrollHeight-n.height}};return{rect:r,position:o,isTop:o.current.y<=0,isLeft:o.current.x<=0,isBottom:o.current.y>=o.max.y,isRight:o.current.x>=o.max.x}}function Jq(e,t){const{isTop:r,isBottom:n,isLeft:o,isRight:i,position:a}=Xq(e),{x:s,y:l}=null!=t?t:{x:0,y:0},u=!r&&a.current.y+l>0,c=!n&&a.current.y+l<a.max.y,d=!o&&a.current.x+s>0,p=!i&&a.current.x+s<a.max.x;return{top:u,bottom:c,left:d,right:p,x:d||p,y:u||c}}zq=new WeakMap,Fq=new WeakMap,Hq=new WeakMap,$q=new WeakMap;var Zq=class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise((e=>this.resolvers.add(e)))}},Qq=new Zq((e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()})),eN=new Zq((e=>setTimeout(e,50))),tN=new Map,rN=tN.clear.bind(tN);function nN(e,t=!1){if(!t)return oN(e);let r=tN.get(e);return r||(r=oN(e),tN.set(e,r),eN.schedule(rN),r)}function oN(e){return rq(e).getComputedStyle(e)}var iN={excludeElement:!0,escapeShadowDOM:!0};function aN(e,t=iN){const{limit:r,excludeElement:n,escapeShadowDOM:o}=t,i=new Set;return e?function t(a){if(null!=r&&i.size>=r)return i;if(!a)return i;if(nq(a)&&null!=a.scrollingElement&&!i.has(a.scrollingElement))return i.add(a.scrollingElement),i;if(o&&fq(a))return t(a.host);if(!oq(a))return iq(a)?t(a.parentElement):i;if(i.has(a))return i;const s=nN(a,!0);if(n&&a===e||function(e,t=nN(e,!0)){const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const n=t[e];return"string"==typeof n&&r.test(n)}))}(a,s)&&i.add(a),function(e,t=nN(e,!0)){return"fixed"===t.position||"sticky"===t.position}(a,s)){const{scrollingElement:e}=a.ownerDocument;return e&&i.add(e),i}return t(a.parentNode)}(e):i}function sN(e,t=window.frameElement){const r={x:0,y:0,scaleX:1,scaleY:1};if(!e)return r;let n=Sq(e);for(;n;){if(n===t)return r;const e=QL(n),{x:o,y:i}=lN(n,e);r.x=r.x+e.left,r.y=r.y+e.top,r.scaleX=r.scaleX*o,r.scaleY=r.scaleY*i,n=Sq(n)}return r}function lN(e,t=QL(e)){const r=Math.round(t.width),n=Math.round(t.height);if(oq(e))return{x:r/e.offsetWidth,y:n/e.offsetHeight};const o=nN(e,!0);return{x:(parseFloat(o.width)||r)/r,y:(parseFloat(o.height)||n)/n}}function uN(e){if("none"===e)return null;const[t,r,n="0"]=e.split(" "),o={x:parseFloat(t),y:parseFloat(r),z:parseInt(n,10)};return isNaN(o.x)&&isNaN(o.y)?null:{x:isNaN(o.x)?0:o.x,y:isNaN(o.y)?0:o.y,z:isNaN(o.z)?0:o.z}}function cN(e){var t,r,n,o,i,a,s,l,u;const{scale:c,transform:d,translate:p}=e,f=function(e){if("none"===e)return null;const t=e.split(" "),r=parseFloat(t[0]),n=parseFloat(t[1]);return isNaN(r)&&isNaN(n)?null:{x:isNaN(r)?n:r,y:isNaN(n)?r:n}}(c),h=uN(p),m=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(d);if(!m&&!f&&!h)return null;const g=null!=(t=null==f?void 0:f.x)?t:1,b=null!=(r=null==f?void 0:f.y)?r:1,v=null!=(n=null==h?void 0:h.x)?n:0,y=null!=(o=null==h?void 0:h.y)?o:0,x=null!=(i=null==m?void 0:m.x)?i:0,S=null!=(a=null==m?void 0:m.y)?a:0,w=null!=(s=null==m?void 0:m.scaleX)?s:1,C=null!=(l=null==m?void 0:m.scaleY)?l:1;return{x:v+x,y:y+S,z:null!=(u=null==h?void 0:h.z)?u:0,scaleX:g*w,scaleY:b*C}}var dN=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(dN||{}),pN={x:.2,y:.2},fN={x:10,y:10};function hN(e,t,r,n=25,o=pN,i=fN){const{x:a,y:s}=t,{rect:l,isTop:u,isBottom:c,isLeft:d,isRight:p}=Xq(e),f=sN(e),h=cN(nN(e,!0)),m=null!==h&&(null==h?void 0:h.scaleX)<0,g=null!==h&&(null==h?void 0:h.scaleY)<0,b=new ST(l.left*f.scaleX+f.x,l.top*f.scaleY+f.y,l.width*f.scaleX,l.height*f.scaleY),v={x:0,y:0},y={x:0,y:0},x=b.height*o.y,S=b.width*o.x;return(!u||g&&!c)&&s<=b.top+x&&1!==(null==r?void 0:r.y)&&a>=b.left-i.x&&a<=b.right+i.x?(v.y=g?1:-1,y.y=n*Math.abs((b.top+x-s)/x)):(!c||g&&!u)&&s>=b.bottom-x&&-1!==(null==r?void 0:r.y)&&a>=b.left-i.x&&a<=b.right+i.x&&(v.y=g?-1:1,y.y=n*Math.abs((b.bottom-x-s)/x)),(!p||m&&!d)&&a>=b.right-S&&-1!==(null==r?void 0:r.x)&&s>=b.top-i.y&&s<=b.bottom+i.y?(v.x=m?-1:1,y.x=n*Math.abs((b.right-S-a)/S)):(!d||m&&!p)&&a<=b.left+S&&1!==(null==r?void 0:r.x)&&s>=b.top-i.y&&s<=b.bottom+i.y&&(v.x=m?1:-1,y.x=n*Math.abs((b.left+S-a)/S)),{direction:v,speed:y}}function mN(e,t=!1){if("scrollIntoViewIfNeeded"in(r=e)&&"function"==typeof r.scrollIntoViewIfNeeded)return void e.scrollIntoViewIfNeeded(t);var r;if(!oq(e))return e.scrollIntoView();var n=function(e){const[t]=aN(e,{limit:1});return null!=t?t:null}(e);if(!oq(n))return;const o=nN(n,!0),i=parseInt(o.getPropertyValue("border-top-width")),a=parseInt(o.getPropertyValue("border-left-width")),s=e.offsetTop-n.offsetTop<n.scrollTop,l=e.offsetTop-n.offsetTop+e.clientHeight-i>n.scrollTop+n.clientHeight,u=e.offsetLeft-n.offsetLeft<n.scrollLeft,c=e.offsetLeft-n.offsetLeft+e.clientWidth-a>n.scrollLeft+n.clientWidth,d=s&&!l;(s||l)&&t&&(n.scrollTop=e.offsetTop-n.offsetTop-n.clientHeight/2-i+e.clientHeight/2),(u||c)&&t&&(n.scrollLeft=e.offsetLeft-n.offsetLeft-n.clientWidth/2-a+e.clientWidth/2),(s||l||u||c)&&!t&&e.scrollIntoView(d)}function gN({element:e,keyframes:t,options:r}){return e.animate(t,r).finished}function bN(e,t=nN(e).translate,r=!0){if(r){const t=ZL(e,(e=>"translate"in e));if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=uN(e);if(t)return t}}}if(t){const e=uN(t);if(e)return e}return{x:0,y:0,z:0}}var vN=new Zq((e=>setTimeout(e,0))),yN=new Map,xN=yN.clear.bind(yN);function SN(e,t){const r=function(e){const t=e.ownerDocument;let r=yN.get(t);if(r)return r;r=t.getAnimations(),yN.set(t,r),vN.schedule(xN);const n=r.filter((t=>JL(t.effect)&&t.effect.target===e));return yN.set(e,n),r}(e).filter((e=>{var r,n;if(JL(e.effect)){const{target:o}=e.effect;if(null==(n=o&&(null==(r=t.isValidTarget)?void 0:r.call(t,o)))||n)return e.effect.getKeyframes().some((e=>{for(const r of t.properties)if(e[r])return!0}))}})).map((e=>{const{effect:t,currentTime:r}=e,n=null==t?void 0:t.getComputedTiming().duration;if(!e.pending&&"finished"!==e.playState)return"number"==typeof n&&"number"==typeof r&&r<n?(e.currentTime=n,()=>{e.currentTime=r}):void 0}));if(r.length>0)return()=>r.forEach((e=>null==e?void 0:e()))}var wN=class extends ST{constructor(e,t={}){var r,n,o,i;const{frameTransform:a=sN(e),ignoreTransforms:s,getBoundingClientRect:l=QL}=t,u=SN(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||pq())&&t.contains(e)}),c=l(e);let d,{top:p,left:f,width:h,height:m}=c;const g=nN(e),b=cN(g),v={x:null!=(r=null==b?void 0:b.scaleX)?r:1,y:null!=(n=null==b?void 0:b.scaleY)?n:1},y=function(e,t){var r;const n=e.getAnimations();let o=null;if(!n.length)return null;for(const e of n){if("running"!==e.playState)continue;const n=JL(e.effect)?e.effect.getKeyframes():[],i=n[n.length-1];if(!i)continue;const{transform:a,translate:s,scale:l}=i;if(a||s||l){const e=cN({transform:"string"==typeof a&&a?a:t.transform,translate:"string"==typeof s&&s?s:t.translate,scale:"string"==typeof l&&l?l:t.scale});e&&(o=o?{x:o.x+e.x,y:o.y+e.y,z:null!=(r=o.z)?r:e.z,scaleX:o.scaleX*e.scaleX,scaleY:o.scaleY*e.scaleY}:e)}}return o}(e,g);null==u||u(),b&&(d=function(e,t,r){const{scaleX:n,scaleY:o,x:i,y:a}=t,s=e.left-i-(1-n)*parseFloat(r),l=e.top-a-(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),u=n?e.width/n:e.width,c=o?e.height/o:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(c,b,g.transformOrigin),(s||y)&&(p=d.top,f=d.left,h=d.width,m=d.height));const x={width:null!=(o=null==d?void 0:d.width)?o:h,height:null!=(i=null==d?void 0:d.height)?i:m};if(y&&!s&&d){const e=function(e,t,r){const{scaleX:n,scaleY:o,x:i,y:a}=t,s=e.left+i+(1-n)*parseFloat(r),l=e.top+a+(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),u=n?e.width*n:e.width,c=o?e.height*o:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(d,y,g.transformOrigin);p=e.top,f=e.left,h=e.width,m=e.height,v.x=y.scaleX,v.y=y.scaleY}a&&(s||(f*=a.scaleX,h*=a.scaleX,p*=a.scaleY,m*=a.scaleY),f+=a.x,p+=a.y),super(f,p,h,m),this.scale=v,this.intrinsicWidth=x.width,this.intrinsicHeight=x.height}};function CN(e){return"style"in e&&"object"==typeof e.style&&null!==e.style&&"setProperty"in e.style&&"removeProperty"in e.style&&"function"==typeof e.style.setProperty&&"function"==typeof e.style.removeProperty}var EN=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:r}=this;if(CN(r))for(const[n,o]of Object.entries(e)){const e=`${t}${n}`;this.initial.has(e)||this.initial.set(e,r.style.getPropertyValue(e)),r.style.setProperty(e,"string"==typeof o?o:`${o}px`)}}remove(e,t=""){const{element:r}=this;if(CN(r))for(const n of e){const e=`${t}${n}`;r.style.removeProperty(e)}}reset(){const{element:e}=this;if(CN(e)){for(const[t,r]of this.initial)e.style.setProperty(t,r);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function RN(e){return!!e&&(e instanceof rq(e).Element||tq(e)&&e.nodeType===Node.ELEMENT_NODE)}function PN(e){if(!e)return!1;const{KeyboardEvent:t}=rq(e.target);return e instanceof t}var AN={};function IN(e){const t=null==AN[e]?0:AN[e]+1;return AN[e]=t,`${e}-${t}`}var MN=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const r=e.position.current;if(!r)return null;const{id:n}=t;if(!t.shape)return null;if(t.shape.containsPoint(r))return{id:n,value:1/xT.distance(t.shape.center,r),type:DO.PointerIntersection,priority:kO.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:r}=e;if(!t.shape||!(null==r?void 0:r.current))return null;const n=r.current.intersectionArea(t.shape);if(n){const{position:o}=e,i=xT.distance(t.shape.center,o.current),a=n/(r.current.area+t.shape.area-n)/i;return{id:t.id,value:a,type:DO.ShapeIntersection,priority:kO.Normal}}return null})(e)},kN=e=>{const{dragOperation:t,droppable:r}=e,{shape:n,position:o}=t;if(!r.shape)return null;const i=n?ST.from(n.current.boundingRectangle).corners:void 0,a=ST.from(r.shape.boundingRectangle).corners.reduce(((e,t,r)=>{var n;return e+xT.distance(xT.from(t),null!=(n=null==i?void 0:i[r])?n:o.current)}),0),s=a/4;return{id:r.id,value:1/s,type:DO.Collision,priority:kO.Normal}},DN=Object.create,TN=Object.defineProperty,ON=Object.defineProperties,LN=Object.getOwnPropertyDescriptor,qN=Object.getOwnPropertyDescriptors,NN=Object.getOwnPropertySymbols,jN=Object.prototype.hasOwnProperty,_N=Object.prototype.propertyIsEnumerable,zN=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),FN=e=>{throw TypeError(e)},HN=(e,t,r)=>t in e?TN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$N=(e,t)=>{for(var r in t||(t={}))jN.call(t,r)&&HN(e,r,t[r]);if(NN)for(var r of NN(t))_N.call(t,r)&&HN(e,r,t[r]);return e},WN=(e,t)=>ON(e,qN(t)),BN=(e,t)=>TN(e,"name",{value:t,configurable:!0}),VN=(e,t)=>{var r={};for(var n in e)jN.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&NN)for(var n of NN(e))t.indexOf(n)<0&&_N.call(e,n)&&(r[n]=e[n]);return r},UN=e=>{var t;return[,,,DN(null!=(t=null==e?void 0:e[zN("metadata")])?t:null)]},GN=["class","method","getter","setter","accessor","field","value","get","set"],YN=e=>void 0!==e&&"function"!=typeof e?FN("Function expected"):e,KN=(e,t,r,n,o)=>({kind:GN[e],name:t,metadata:n,addInitializer:e=>r._?FN("Already initialized"):o.push(YN(e||null))}),XN=(e,t)=>HN(t,zN("metadata"),e[3]),JN=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},ZN=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=GN[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&LN(d<4?o:{get[r](){return tj(this,i)},set[r](e){return nj(this,i,e)}},r));d?f&&d<4&&BN(i,(d>2?"set ":d>1?"get ":"")+r):BN(o,r);for(var y=n.length-1;y>=0;y--)u=KN(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>ej(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?tj:oj)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>nj(e,o,t,4^d?i:v.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,u),l._=1,4^d||void 0===s?YN(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?FN("Object expected"):(YN(a=s.get)&&(v.get=a),YN(a=s.set)&&(v.set=a),YN(a=s.init)&&g.unshift(a));return d||XN(e,o),v&&TN(o,r,v),f?4^d?i:v:o},QN=(e,t,r)=>t.has(e)||FN("Cannot "+r),ej=(e,t)=>Object(t)!==t?FN('Cannot use the "in" operator on this value'):e.has(t),tj=(e,t,r)=>(QN(e,t,"read from private field"),r?r.call(e):t.get(e)),rj=(e,t,r)=>t.has(e)?FN("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),nj=(e,t,r,n)=>(QN(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),oj=(e,t,r)=>(QN(e,t,"access private method"),r),ij="button",aj="draggable",sj="dnd-kit-description",lj="dnd-kit-announcement",uj={draggable:"To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item in a given direction. Press space again to drop the item in its new position, or press escape to cancel."},cj={dragstart({operation:{source:e}}){if(e)return`Picked up draggable item ${e.id}.`},dragover({operation:{source:e,target:t}}){if(e&&e.id!==(null==t?void 0:t.id))return t?`Draggable item ${e.id} was moved over droppable target ${t.id}.`:`Draggable item ${e.id} is no longer over a droppable target.`},dragend({operation:{source:e,target:t},canceled:r}){if(e)return r?`Dragging was cancelled. Draggable item ${e.id} was dropped.`:t?`Draggable item ${e.id} was dropped over droppable target ${t.id}`:`Draggable item ${e.id} was dropped.`}};function dj(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}var pj=["dragover","dragmove"],fj=class extends lO{constructor(e,t){super(e);const{id:r,idPrefix:{description:n=sj,announcement:o=lj}={},announcements:i=cj,screenReaderInstructions:a=uj,debounce:s=500}=null!=t?t:{},l=r?`${n}-${r}`:IN(n),u=r?`${o}-${r}`:IN(o);let c,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>Qq.schedule(h),g=function(e,t){let r;const n=()=>{clearTimeout(r),r=setTimeout(e,t)};return n.cancel=()=>clearTimeout(r),n}(m,s),b=Object.entries(i).map((([e,t])=>this.manager.monitor.addEventListener(e,((r,n)=>{const o=p;if(!o)return;const i=null==t?void 0:t(r,n);i&&o.nodeValue!==i&&(f=i,pj.includes(e)?g():(m(),g.cancel()))})))),v=()=>{let e=[];(null==c?void 0:c.isConnected)||(c=function(e,t){const r=document.createElement("div");return r.id=e,r.style.setProperty("display","none"),r.textContent=t,r}(l,a.draggable),e.push(c)),(null==d?void 0:d.isConnected)||(d=function(e){const t=document.createElement("div");return t.id=e,t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),t.style.setProperty("position","fixed"),t.style.setProperty("width","1px"),t.style.setProperty("height","1px"),t.style.setProperty("margin","-1px"),t.style.setProperty("border","0"),t.style.setProperty("padding","0"),t.style.setProperty("overflow","hidden"),t.style.setProperty("clip","rect(0 0 0 0)"),t.style.setProperty("clip-path","inset(100%)"),t.style.setProperty("white-space","nowrap"),t}(u),p=document.createTextNode(""),d.appendChild(p),e.push(d)),e.length>0&&document.body.append(...e)},y=new Set;function x(){for(const e of y)e()}this.registerEffect((()=>{var e;y.clear();for(const t of this.manager.registry.draggables.value){const r=null!=(e=t.handle)?e:t.element;if(r){c&&d||y.add(v),dj(r)&&!pq()||r.hasAttribute("tabindex")||y.add((()=>r.setAttribute("tabindex","0"))),r.hasAttribute("role")||"button"===r.tagName.toLowerCase()||y.add((()=>r.setAttribute("role",ij))),r.hasAttribute("aria-roledescription")||y.add((()=>r.setAttribute("aria-roledescription",aj))),r.hasAttribute("aria-describedby")||y.add((()=>r.setAttribute("aria-describedby",l)));for(const e of["aria-pressed","aria-grabbed"]){const n=String(t.isDragging);r.getAttribute(e)!==n&&y.add((()=>r.setAttribute(e,n)))}const e=String(t.disabled);r.getAttribute("aria-disabled")!==e&&y.add((()=>r.setAttribute("aria-disabled",e)))}}y.size>0&&Qq.schedule(x)})),this.destroy=()=>{super.destroy(),null==c||c.remove(),null==d||d.remove(),b.forEach((e=>e()))}}};var hj,mj,gj,bj,vj,yj,xj,Sj,wj,Cj,Ej,Rj=new Map,Pj=class extends(vj=cO,bj=[GD],gj=[YD],mj=[YD],hj=[YD],vj){constructor(e){super(e),JN(xj,5,this),rj(this,wj),rj(this,yj,new Set),rj(this,Sj,JN(xj,8,this,new Set)),JN(xj,11,this),this.registerEffect(oj(this,wj,Cj))}register(e){return tj(this,yj).add(e),()=>{tj(this,yj).delete(e)}}addRoot(e){return _k((()=>{const t=new Set(this.additionalRoots);t.add(e),this.additionalRoots=t})),()=>{_k((()=>{const t=new Set(this.additionalRoots);t.delete(e),this.additionalRoots=t}))}}get sourceRoot(){var e;const{source:t}=this.manager.dragOperation;return hq(null!=(e=null==t?void 0:t.element)?e:null)}get targetRoot(){var e;const{target:t}=this.manager.dragOperation;return hq(null!=(e=null==t?void 0:t.element)?e:null)}get roots(){const{status:e}=this.manager.dragOperation;if(e.initializing||e.initialized){const e=[this.sourceRoot,this.targetRoot].filter((e=>null!=e));return new Set([...e,...this.additionalRoots])}return new Set}};xj=UN(vj),yj=new WeakMap,Sj=new WeakMap,wj=new WeakSet,Cj=function(){const{roots:e}=this,t=[];for(const r of e)for(const e of tj(this,yj))t.push(oj(this,wj,Ej).call(this,r,e));return()=>{for(const e of t)e()}},Ej=function(e,t){let r=Rj.get(e);r||(r=new Map,Rj.set(e,r));let n=r.get(t);if(!n){!("adoptedStyleSheets"in e)||Array.isArray(e.adoptedStyleSheets),0;const o=nq(e)?e.defaultView:e.ownerDocument.defaultView,{CSSStyleSheet:i}=null!=o?o:{};if(!i)return()=>{};const a=new i;a.replaceSync(t),e.adoptedStyleSheets.push(a),n={sheet:a,refCount:0,cleanup:()=>{var n;if(nq(e)||fq(e)&&(null==(n=e.host)?void 0:n.isConnected)){const t=e.adoptedStyleSheets.indexOf(a);-1!==t&&e.adoptedStyleSheets.splice(t,1)}r.delete(t),0===r.size&&Rj.delete(e)}},r.set(t,n)}n.refCount++;let o=!1;return()=>{o||(o=!0,n.refCount--,0===n.refCount&&n.cleanup())}},ZN(xj,4,"additionalRoots",bj,Pj,Sj),ZN(xj,2,"sourceRoot",gj,Pj),ZN(xj,2,"targetRoot",mj,Pj),ZN(xj,2,"roots",hj,Pj),XN(xj,Pj);var Aj="data-dnd-",Ij=`${Aj}dropping`,Mj="--dnd-",kj=`${Aj}dragging`,Dj=`${Aj}placeholder`,Tj=[kj,Dj,"popover","aria-pressed","aria-grabbing"],Oj=["view-transition-name"],Lj=`\n :is(:root,:host) [${kj}] {\n position: fixed !important;\n pointer-events: none !important;\n touch-action: none;\n z-index: calc(infinity);\n will-change: translate;\n top: var(${Mj}top, 0px) !important;\n left: var(${Mj}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${Mj}width, auto);\n max-width: var(${Mj}width, auto);\n height: var(${Mj}height, auto);\n max-height: var(${Mj}height, auto);\n transition: var(${Mj}transition) !important;\n }\n\n :is(:root,:host) [${Dj}] {\n transition: none;\n }\n\n :is(:root,:host) [${Dj}='hidden'] {\n visibility: hidden;\n }\n\n [${kj}] * {\n pointer-events: none !important;\n }\n\n [${kj}]:not([${Ij}]) {\n translate: var(${Mj}translate) !important;\n }\n\n [${kj}][style*='${Mj}scale'] {\n scale: var(${Mj}scale) !important;\n transform-origin: var(${Mj}transform-origin) !important;\n }\n\n @layer {\n :where([${kj}][popover]) {\n overflow: visible;\n background: unset;\n border: unset;\n margin: unset;\n padding: unset;\n color: inherit;\n\n &:is(input, button) {\n border: revert;\n background: revert;\n }\n }\n }\n [${kj}]::backdrop, [${Aj}overlay]:not([${kj}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function qj(e,t="hidden"){return _k((()=>{const{element:r,manager:n}=e;if(!r||!n)return;const o=function(e,t){const r=new Map;for(const n of t)if(n.element&&(e===n.element||e.contains(n.element))){const e=`${Aj}${IN("dom-id")}`;n.element.setAttribute(e,""),r.set(n,e)}return r}(r,n.registry.droppables),i=[],a=function(e){const t="input, textarea, select, canvas, [contenteditable]",r=e.cloneNode(!0),n=Array.from(e.querySelectorAll(t));return Array.from(r.querySelectorAll(t)).forEach(((e,t)=>{const r=n[t];if(gq(e)&&gq(r)&&("file"!==e.type&&(e.value=r.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),bq(e)&&bq(r)&&r.width>0&&r.height>0){const t=e.getContext("2d");null==t||t.drawImage(r,0,0)}})),r}(r),{remove:s}=a;return function(e,t,r){for(const[n,o]of e){if(!n.element)continue;const e=`[${o}]`,i=t.matches(e)?t:t.querySelector(e);if(n.element.removeAttribute(o),!i)continue;const a=n.element;n.proxy=i,i.removeAttribute(o),yq.set(a,i),r.push((()=>{yq.delete(a),n.proxy=void 0}))}}(o,a,i),function(e,t="hidden"){e.setAttribute("inert","true"),e.setAttribute("tab-index","-1"),e.setAttribute("aria-hidden","true"),e.setAttribute(Dj,t)}(a,t),a.remove=()=>{i.forEach((e=>e())),s.call(a)},a}))}function Nj(e,t){return e===t||Sq(e)===Sq(t)}function jj(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&RN(t)&&t.hasAttribute("popover")&&requestAnimationFrame((()=>Yq(t)))}function _j(e){return"TR"===e.tagName}var zj,Fj,Hj,$j,Wj,Bj,Vj,Uj=250,Gj="ease";var Yj=class extends(Fj=lO,zj=[GD],Fj){constructor(e,t){super(e,t),rj(this,Wj),rj(this,$j,JN(Hj,8,this)),JN(Hj,11,this),this.state={initial:{},current:{}};const r=e.registry.plugins.get(Pj),n=null==r?void 0:r.register(Lj);if(n){const e=this.destroy.bind(this);this.destroy=()=>{n(),e()}}this.registerEffect(oj(this,Wj,Bj).bind(this,r)),this.registerEffect(oj(this,Wj,Vj))}};Hj=UN(Fj),$j=new WeakMap,Wj=new WeakSet,Bj=function(e){const{overlay:t}=this;if(!t||!e)return;const r=hq(t);return r?e.addRoot(r):void 0},Vj=function(){var e,t,r;const{state:n,manager:o,options:i}=this,{dragOperation:a}=o,{position:s,source:l,status:u}=a;if(u.idle)return n.current={},void(n.initial={});if(!l)return;const{element:c,feedback:d}=l;if(!c||"none"===d||!u.initialized||u.initializing)return;const{initial:p}=n,f=null!=(e=this.overlay)?e:c,h=sN(f),m=sN(c),g=!Nj(c,f),b=new wN(c,{frameTransform:g?m:null,ignoreTransforms:!g}),v=m.scaleX/h.scaleX,y=m.scaleY/h.scaleY;let{width:x,height:S,top:w,left:C}=b;g&&(x/=v,S/=y);const E=new EN(f),{transition:R,translate:P,boxSizing:A,paddingBlockStart:I,paddingBlockEnd:M,paddingInlineStart:k,paddingInlineEnd:D,borderInlineStartWidth:T,borderInlineEndWidth:O,borderBlockStartWidth:L,borderBlockEndWidth:q}=nN(c),N="clone"===d,j="content-box"===A,_=j?parseInt(k)+parseInt(D)+parseInt(T)+parseInt(O):0,z=j?parseInt(I)+parseInt(M)+parseInt(L)+parseInt(q):0,F="move"===d||this.overlay?null:qj(l,N?"clone":"hidden"),H=_k((()=>PN(o.dragOperation.activatorEvent)));if("none"!==P){const e=uN(P);e&&!p.translate&&(p.translate=e)}if(!p.transformOrigin){const e=_k((()=>s.current));p.transformOrigin={x:(e.x-C*h.scaleX-h.x)/(x*h.scaleX),y:(e.y-w*h.scaleY-h.y)/(S*h.scaleY)}}const{transformOrigin:$}=p,W=w*h.scaleY+h.y,B=C*h.scaleX+h.x;if(!p.coordinates&&(p.coordinates={x:B,y:W},1!==v||1!==y)){const{scaleX:e,scaleY:t}=m,{x:r,y:n}=$;p.coordinates.x+=(x*e-x)*r,p.coordinates.y+=(S*t-S)*n}p.dimensions||(p.dimensions={width:x,height:S}),p.frameTransform||(p.frameTransform=h);const V=p.coordinates.x-B,U=p.coordinates.y-W,G=(p.dimensions.width*p.frameTransform.scaleX-x*h.scaleX)*$.x,Y=(p.dimensions.height*p.frameTransform.scaleY-S*h.scaleY)*$.y,K={x:V/h.scaleX+G,y:U/h.scaleY+Y},X={left:C+K.x,top:w+K.y};f.setAttribute(kj,"true");const J=_k((()=>a.transform)),Z=null!=(t=p.translate)?t:{x:0,y:0},Q=J.x*h.scaleX+Z.x,ee=J.y*h.scaleY+Z.y;if(E.set({width:x-_,height:S-z,top:X.top,left:X.left,translate:`${Q}px ${ee}px 0`,transition:R?`${R}, translate 0ms linear`:"",scale:g?`${v} ${y}`:"","transform-origin":`${100*$.x}% ${100*$.y}%`},Mj),F&&(c.insertAdjacentElement("afterend",F),null==i?void 0:i.rootElement)){("function"==typeof i.rootElement?i.rootElement(l):i.rootElement).appendChild(c)}let te,re,ne;Gq(f)&&(f.hasAttribute("popover")||f.setAttribute("popover","manual"),Yq(f),f.addEventListener("beforetoggle",jj));const oe=(ie={placeholder:F,element:c,feedbackElement:f,frameTransform:h,transformOrigin:$,width:x,height:S,top:w,left:C,widthOffset:_,heightOffset:z,delta:K,styles:E,dragOperation:a,getElementMutationObserver:()=>te,getSavedCellWidths:()=>ne,setSavedCellWidths:e=>{ne=e}},new ResizeObserver((()=>{var e,t;const r=new wN(ie.placeholder,{frameTransform:ie.frameTransform,ignoreTransforms:!0}),n=null!=(e=ie.transformOrigin)?e:{x:1,y:1},o=(ie.width-r.width)*n.x+ie.delta.x,i=(ie.height-r.height)*n.y+ie.delta.y;if(ie.styles.set({width:r.width-ie.widthOffset,height:r.height-ie.heightOffset,top:ie.top+i,left:ie.left+o},Mj),null==(t=ie.getElementMutationObserver())||t.takeRecords(),_j(ie.element)&&_j(ie.placeholder)){const e=Array.from(ie.element.cells),t=Array.from(ie.placeholder.cells);ie.getSavedCellWidths()||ie.setSavedCellWidths(e.map((e=>e.style.width)));for(const[r,n]of e.entries()){const e=t[r];n.style.width=`${e.getBoundingClientRect().width}px`}}ie.dragOperation.shape=new wN(ie.feedbackElement)})));var ie;const ae=new wN(f);_k((()=>a.shape=ae));const se=rq(f),le=e=>{this.manager.actions.stop({event:e})},ue=mq(se);H&&se.addEventListener("resize",le),"idle"===_k((()=>l.status))&&requestAnimationFrame((()=>l.status="dragging")),F&&(oe.observe(F),te=function(e,t,r){const n=new MutationObserver((n=>{let o=!1;for(const r of n){if(r.target!==e){o=!0;continue}if("attributes"!==r.type)continue;const n=r.attributeName;if(n.startsWith("aria-")||Tj.includes(n))continue;const i=e.getAttribute(n);if("style"===n){if(CN(e)&&CN(t)){const r=e.style;for(const e of Array.from(t.style))""===r.getPropertyValue(e)&&t.style.removeProperty(e);for(const e of Array.from(r)){if(Oj.includes(e)||e.startsWith(Mj))continue;const n=r.getPropertyValue(e);t.style.setProperty(e,n)}}}else null!==i?t.setAttribute(n,i):t.removeAttribute(n)}o&&r&&(t.innerHTML=e.innerHTML)}));return n.observe(e,{attributes:!0,subtree:!0,childList:!0}),n}(c,F,N),re=function(e,t,r){const n=new MutationObserver((n=>{for(const o of n)if(0!==o.addedNodes.length)for(const n of Array.from(o.addedNodes)){if(n.contains(e)&&e.nextElementSibling!==t)return e.insertAdjacentElement("afterend",t),void Yq(r);if(n.contains(t)&&t.previousElementSibling!==e)return t.insertAdjacentElement("beforebegin",e),void Yq(r)}}));return n.observe(e.ownerDocument.body,{childList:!0,subtree:!0}),n}(c,F,f));const ce=null==(r=o.dragOperation.source)?void 0:r.id,de=()=>{var e;if(!H||null==ce)return;const t=o.registry.draggables.get(ce),r=null!=(e=null==t?void 0:t.handle)?e:null==t?void 0:t.element;oq(r)&&r.focus()},pe=()=>{var e;if(null==te||te.disconnect(),null==re||re.disconnect(),oe.disconnect(),se.removeEventListener("resize",le),Gq(f)&&(f.removeEventListener("beforetoggle",jj),f.removeAttribute("popover")),f.removeAttribute(kj),E.reset(),ne&&_j(c)){const t=Array.from(c.cells);for(const[r,n]of t.entries())n.style.width=null!=(e=ne[r])?e:""}l.status="idle";const t=null!=n.current.translate;F&&(t||F.parentElement!==f.parentElement)&&f.isConnected&&F.replaceWith(f),null==F||F.remove()},fe=null==i?void 0:i.dropAnimation,he=XD((()=>{var e;const{transform:t,status:r}=a;if((t.x||t.y||n.current.translate)&&r.dragging){const r=null!=(e=p.translate)?e:{x:0,y:0},o={x:t.x/h.scaleX+r.x,y:t.y/h.scaleY+r.y},i=n.current.translate,s=_k((()=>a.modifiers)),l=_k((()=>{var e;return null==(e=a.shape)?void 0:e.current})),u=H&&!ue?"250ms cubic-bezier(0.25, 1, 0.5, 1)":"0ms linear";if(E.set({transition:`${R}, translate ${u}`,translate:`${o.x}px ${o.y}px 0`},Mj),null==te||te.takeRecords(),l&&l!==ae&&i&&!s.length){const e=xT.delta(o,i);a.shape=ST.from(l.boundingRectangle).translate(e.x*h.scaleX,e.y*h.scaleY)}else a.shape=new wN(f);n.current.translate=o}}),(function(){if(a.status.dropped){this.dispose(),l.status="dropping";let e=n.current.translate;const t=null!=e;if(e||c===f||(e={x:0,y:0}),!e||null===fe)return void pe();o.renderer.rendering.then((()=>{!function(e){var t,r,n,o;const{animation:i}=e;if("function"==typeof i){const t=i({element:e.element,feedbackElement:e.feedbackElement,placeholder:e.placeholder,translate:e.translate,moved:e.moved});return void Promise.resolve(t).then((()=>{e.cleanup(),requestAnimationFrame(e.restoreFocus)}))}const{duration:a=Uj,easing:s=Gj}=null!=i?i:{};Yq(e.feedbackElement);const[,l]=null!=(t=ZL(e.feedbackElement,(e=>"translate"in e)))?t:[];null==l||l.pause();const u=null!=(r=e.placeholder)?r:e.element,c={frameTransform:Nj(e.feedbackElement,u)?null:void 0},d=new wN(e.feedbackElement,c),p=null!=(n=uN(nN(e.feedbackElement).translate))?n:e.translate,f=new wN(u,c),h=ST.delta(d,f,e.alignment),m=p.x-h.x,g=p.y-h.y,b=Math.round(d.intrinsicHeight)!==Math.round(f.intrinsicHeight)?{minHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`],maxHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`]}:{},v=Math.round(d.intrinsicWidth)!==Math.round(f.intrinsicWidth)?{minWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`],maxWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`]}:{};e.styles.set({transition:e.transition},Mj),e.feedbackElement.setAttribute(Ij,""),null==(o=e.getElementMutationObserver())||o.takeRecords(),gN({element:e.feedbackElement,keyframes:WN($N($N({},b),v),{translate:[`${p.x}px ${p.y}px 0`,`${m}px ${g}px 0`]}),options:{duration:mq(rq(e.feedbackElement))?0:e.moved||e.feedbackElement!==e.element?a:0,easing:s}}).then((()=>{e.feedbackElement.removeAttribute(Ij),null==l||l.finish(),e.cleanup(),requestAnimationFrame(e.restoreFocus)}))}({element:c,feedbackElement:f,placeholder:F,translate:e,moved:t,transition:R,alignment:l.alignment,styles:E,animation:null!=fe?fe:void 0,getElementMutationObserver:()=>te,cleanup:pe,restoreFocus:de})}))}}));return()=>{pe(),he()}},ZN(Hj,4,"overlay",zj,Yj,$j),XN(Hj,Yj),Yj.configure=aO(Yj);var Kj,Xj,Jj,Zj,Qj,e_,t_,r_=Yj,n_=!0;Jj=[GD],Zj=dN.Forward,Kj=[GD],Xj=dN.Reverse;var o_=class{constructor(){rj(this,e_,JN(Qj,8,this,n_)),JN(Qj,11,this),rj(this,t_,JN(Qj,12,this,n_)),JN(Qj,15,this)}isLocked(e){return e!==dN.Idle&&(null==e?this[dN.Forward]===n_&&this[dN.Reverse]===n_:this[e]===n_)}unlock(e){e!==dN.Idle&&(this[e]=false)}};Qj=UN(null),e_=new WeakMap,t_=new WeakMap,ZN(Qj,4,Zj,Jj,o_,e_),ZN(Qj,4,Xj,Kj,o_,t_),XN(Qj,o_);var i_,a_,s_,l_,u_,c_,d_=[dN.Forward,dN.Reverse],p_=class{constructor(){this.x=new o_,this.y=new o_}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},f_=class extends lO{constructor(e){super(e);const t=Vk(new p_);let r=null;this.signal=t,tD((()=>{const{status:n}=e.dragOperation;if(!n.initialized)return r=null,void(t.value=new p_);const{delta:o}=e.dragOperation.position;if(r){const e={x:h_(o.x,r.x),y:h_(o.y,r.y)},n=t.peek();Nk((()=>{for(const t of kT)for(const r of d_)e[t]===r&&n[t].unlock(r);t.value=n}))}r=o}))}get current(){return this.signal.peek()}};function h_(e,t){return Math.sign(e-t)}var m_=class extends(a_=cO,i_=[GD],a_){constructor(e){super(e),rj(this,l_,JN(s_,8,this,!1)),JN(s_,11,this),rj(this,u_),rj(this,c_,(()=>{if(!tj(this,u_))return;const{element:e,by:t}=tj(this,u_);t.y&&(e.scrollTop+=t.y),t.x&&(e.scrollLeft+=t.x)})),this.scroll=e=>{var t;if(this.disabled)return!1;const r=this.getScrollableElements();if(!r)return nj(this,u_,void 0),!1;const{position:n}=this.manager.dragOperation,o=null==n?void 0:n.current;if(o){const{by:n}=null!=e?e:{},i=n?{x:g_(n.x),y:g_(n.y)}:void 0,a=i?void 0:this.scrollIntentTracker.current;if(null==a?void 0:a.isLocked())return!1;for(const e of r){const r=Jq(e,n);if(r.x||r.y){const{speed:r,direction:s}=hN(e,o,i);if(a)for(const e of kT)a[e].isLocked(s[e])&&(r[e]=0,s[e]=0);if(s.x||s.y){const{x:o,y:i}=null!=n?n:s,a=o*r.x,l=i*r.y;if(a||l){const r=null==(t=tj(this,u_))?void 0:t.by;if(this.autoScrolling&&r){if(r.x&&!a||r.y&&!l)continue}return nj(this,u_,{element:e,by:{x:a,y:l}}),Qq.schedule(tj(this,c_)),!0}}}}}return nj(this,u_,void 0),!1};let t=null,r=null;const n=VD((()=>{const{position:r,source:n}=e.dragOperation;if(!r)return null;const o=vq(hq(null==n?void 0:n.element),r.current);return o&&(t=o),null!=o?o:t})),o=VD((()=>{const t=n.value,{documentElement:o}=aq(t);if(!t||t===o){const{target:t}=e.dragOperation,n=null==t?void 0:t.element;if(n){const e=aN(n,{excludeElement:!1});return r=e,e}}if(t){const e=aN(t,{excludeElement:!1});return this.autoScrolling&&r&&e.size<(null==r?void 0:r.size)?r:(r=e,e)}return r=null,null}),UD);this.getScrollableElements=()=>o.value,this.scrollIntentTracker=new f_(e),this.destroy=e.monitor.addEventListener("dragmove",(t=>{!this.disabled&&!t.defaultPrevented&&PN(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()}))}};function g_(e){return e>0?dN.Forward:e<0?dN.Reverse:dN.Idle}s_=UN(a_),l_=new WeakMap,u_=new WeakMap,c_=new WeakMap,ZN(s_,4,"autoScrolling",i_,m_,l_),XN(s_,m_);var b_,v_=new class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise((e=>this.resolvers.add(e)))}}((e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()})),y_=class extends lO{constructor(e,t){super(e);const r=e.registry.plugins.get(m_);if(!r)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=tD((()=>{if(this.disabled)return;const{position:t,status:n}=e.dragOperation;if(n.dragging){if(r.scroll()){r.autoScrolling=!0;const e=setInterval((()=>v_.schedule(r.scroll)),10);return()=>{clearInterval(e)}}r.autoScrolling=!1}}))}},x_={capture:!0,passive:!0},S_=class extends cO{constructor(e){super(e),rj(this,b_),this.handleScroll=()=>{null==tj(this,b_)&&nj(this,b_,setTimeout((()=>{this.manager.collisionObserver.forceUpdate(!1),nj(this,b_,void 0)}),50))};const{dragOperation:t}=this.manager;this.destroy=tD((()=>{var e,r,n;if(t.status.dragging){const o=null!=(n=null==(r=null==(e=t.source)?void 0:e.element)?void 0:r.ownerDocument)?n:document;return o.addEventListener("scroll",this.handleScroll,x_),()=>{o.removeEventListener("scroll",this.handleScroll,x_)}}}))}};b_=new WeakMap;function w_(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var C_,E_=Object.freeze({offset:10,keyboardCodes:{start:["Space","Enter"],cancel:["Escape"],end:["Space","Enter","Tab"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},preventActivation(e,t){var r;const n=null!=(r=t.handle)?r:t.element;return e.target!==n}}),R_=class extends vL{constructor(e,t){super(e),this.manager=e,this.options=t,rj(this,C_,[]),this.listeners=new xq,this.handleSourceKeyDown=(e,t,r)=>{if(this.disabled||e.defaultPrevented)return;if(!RN(e.target))return;if(t.disabled)return;const{keyboardCodes:n=E_.keyboardCodes,preventActivation:o=E_.preventActivation}=null!=r?r:{};n.start.includes(e.code)&&this.manager.dragOperation.status.idle&&((null==o?void 0:o(e,t))||this.handleStart(e,t,r))}}bind(e,t=this.options){const r=tD((()=>{var r;const n=null!=(r=e.handle)?r:e.element,o=r=>{PN(r)&&this.handleSourceKeyDown(r,e,t)};if(n)return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}}));return r}handleStart(e,t,r){const{element:n}=t;if(!n)throw new Error("Source draggable does not have an associated element");e.preventDefault(),e.stopImmediatePropagation(),mN(n);const{center:o}=new wN(n);if(this.manager.actions.start({event:e,coordinates:{x:o.x,y:o.y},source:t}).signal.aborted)return this.cleanup();this.sideEffects();const i=aq(n),a=[this.listeners.bind(i,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,r),options:{capture:!0}}])];tj(this,C_).push(...a)}handleKeyDown(e,t,r){const{keyboardCodes:n=E_.keyboardCodes}=null!=r?r:{};if(I_(e,[...n.end,...n.cancel])){e.preventDefault();const t=I_(e,n.cancel);this.handleEnd(e,t)}else I_(e,n.up)?this.handleMove("up",e):I_(e,n.down)&&this.handleMove("down",e),I_(e,n.left)?this.handleMove("left",e):I_(e,n.right)&&this.handleMove("right",e)}handleEnd(e,t){this.manager.actions.stop({event:e,canceled:t}),this.cleanup()}handleMove(e,t){var r,n;const{shape:o}=this.manager.dragOperation,i=t.shiftKey?5:1;let a={x:0,y:0},s=null!=(n=null==(r=this.options)?void 0:r.offset)?n:E_.offset;if("number"==typeof s&&(s={x:s,y:s}),o){switch(e){case"up":a={x:0,y:-s.y*i};break;case"down":a={x:0,y:s.y*i};break;case"left":a={x:-s.x*i,y:0};break;case"right":a={x:s.x*i,y:0}}(a.x||a.y)&&(t.preventDefault(),this.manager.actions.move({event:t,by:a}))}}sideEffects(){const e=this.manager.registry.plugins.get(y_);!1===(null==e?void 0:e.disabled)&&(e.disable(),tj(this,C_).push((()=>{e.enable()})))}cleanup(){tj(this,C_).forEach((e=>e())),nj(this,C_,[])}destroy(){this.cleanup(),this.listeners.clear()}};C_=new WeakMap,R_.configure=aO(R_),R_.defaults=E_;var P_,A_=R_;function I_(e,t){return t.includes(e.code)}var M_,k_;P_=new WeakMap;M_=new WeakMap,k_=new WeakMap;var D_=class{};D_.Delay=class extends xL{constructor(){super(...arguments),rj(this,M_),rj(this,k_)}onEvent(e){switch(e.type){case"pointerdown":nj(this,k_,uq(e)),nj(this,M_,setTimeout((()=>this.activate(e)),this.options.value));break;case"pointermove":if(!tj(this,k_))return;const{x:t,y:r}=uq(e);ET({x:t-tj(this,k_).x,y:r-tj(this,k_).y},this.options.tolerance)&&this.abort();break;case"pointerup":this.abort()}}abort(){tj(this,M_)&&(clearTimeout(tj(this,M_)),nj(this,k_,void 0),nj(this,M_,void 0))}},D_.Distance=class extends xL{constructor(){super(...arguments),rj(this,P_)}onEvent(e){switch(e.type){case"pointerdown":nj(this,P_,uq(e));break;case"pointermove":if(!tj(this,P_))return;const{x:t,y:r}=uq(e),n={x:t-tj(this,P_).x,y:r-tj(this,P_).y},{tolerance:o}=this.options;if(o&&ET(n,o))return void this.abort();ET(n,this.options.value)&&this.activate(e);break;case"pointerup":this.abort()}}abort(){nj(this,P_,void 0)}};var T_,O_=Object.freeze({activationConstraints(e,t){var r;const{pointerType:n,target:o}=e;if("mouse"!==n||!RN(o)||t.handle!==o&&!(null==(r=t.handle)?void 0:r.contains(o)))return"touch"===n?[new D_.Delay({value:250,tolerance:5})]:function(e){if(!RN(e))return!1;const{tagName:t}=e;return"INPUT"===t||"TEXTAREA"===t||(r=e).hasAttribute("contenteditable")&&"false"!==r.getAttribute("contenteditable");var r}(o)&&!e.defaultPrevented?[new D_.Delay({value:200,tolerance:0})]:[new D_.Delay({value:200,tolerance:10}),new D_.Distance({value:5})]},preventActivation(e,t){var r;const{target:n}=e;return n!==t.element&&(n!==t.handle&&(!!RN(n)&&(!(null==(r=t.handle)?void 0:r.contains(n))&&Boolean(n.closest('\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n a[href],\n [contenteditable]:not([contenteditable="false"])\n ')))))}}),L_=class extends vL{constructor(e,t){super(e),this.manager=e,this.options=t,rj(this,T_,new Set),this.listeners=new xq,this.latest={event:void 0,coordinates:void 0},this.handleMove=()=>{const{event:e,coordinates:t}=this.latest;e&&t&&this.manager.actions.move({event:e,to:t})},this.handleCancel=this.handleCancel.bind(this),this.handlePointerUp=this.handlePointerUp.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}activationConstraints(e,t,r=this.options){const{activationConstraints:n=O_.activationConstraints}=null!=r?r:{};return"function"==typeof n?n(e,t):n}bind(e,t=this.options){const r=tD((()=>{var r;const n=new AbortController,{signal:o}=n,i=r=>{(function(e){if(!e)return!1;const{PointerEvent:t}=rq(e.target);return e instanceof t})(r)&&this.handlePointerDown(r,e,t)};let a=[null!=(r=e.handle)?r:e.element];(null==t?void 0:t.activatorElements)&&(a=Array.isArray(t.activatorElements)?t.activatorElements:t.activatorElements(e));for(const e of a)e&&(z_(e.ownerDocument.defaultView),e.addEventListener("pointerdown",i,{signal:o}));return()=>n.abort()}));return r}handlePointerDown(e,t,r){if(this.disabled||!e.isPrimary||0!==e.button||!RN(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{preventActivation:n=O_.preventActivation}=null!=r?r:{};if(null==n?void 0:n(e,t))return;const{target:o}=e,i=oq(o)&&o.draggable&&"true"===o.getAttribute("draggable"),a=sN(t.element),{x:s,y:l}=uq(e);this.initialCoordinates={x:s*a.scaleX+a.x,y:l*a.scaleY+a.y};const u=this.activationConstraints(e,t,r);e.sensor=this;const c=new yL(u,(e=>this.handleStart(t,e)));c.signal.onabort=()=>this.handleCancel(e),c.onEvent(e),this.controller=c;const d=dq(),p=this.listeners.bind(d,[{type:"pointermove",listener:e=>this.handlePointerMove(e,t)},{type:"pointerup",listener:this.handlePointerUp,options:{capture:!0}},{type:"dragstart",listener:i?this.handleCancel:N_,options:{capture:!0}}]);tj(this,T_).add((()=>{p(),this.initialCoordinates=void 0}))}handlePointerMove(e,t){var r,n;if(!1!==(null==(r=this.controller)?void 0:r.activated)){if(this.manager.dragOperation.status.dragging){const r=uq(e),n=sN(t.element);r.x=r.x*n.scaleX+n.x,r.y=r.y*n.scaleY+n.y,e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=r,Qq.schedule(this.handleMove)}}else null==(n=this.controller)||n.onEvent(e)}handlePointerUp(e){const{status:t}=this.manager.dragOperation;if(!t.idle){e.preventDefault(),e.stopPropagation();const r=!t.initialized;this.manager.actions.stop({event:e,canceled:r})}this.cleanup()}handleKeyDown(e){"Escape"===e.key&&(e.preventDefault(),this.handleCancel(e))}handleStart(e,t){const{manager:r,initialCoordinates:n}=this;if(!n||!r.dragOperation.status.idle)return;if(t.defaultPrevented)return;if(r.actions.start({coordinates:n,event:t,source:e}).signal.aborted)return this.cleanup();t.preventDefault();const o=aq(t.target).body;o.setPointerCapture(t.pointerId);const i=RN(t.target)?[t.target,o]:o,a=this.listeners.bind(i,[{type:"touchmove",listener:N_,options:{passive:!1}},{type:"click",listener:N_},{type:"contextmenu",listener:N_},{type:"keydown",listener:this.handleKeyDown}]);tj(this,T_).add(a)}handleCancel(e){const{dragOperation:t}=this.manager;t.status.initialized&&this.manager.actions.stop({event:e,canceled:!0}),this.cleanup()}cleanup(){this.latest={event:void 0,coordinates:void 0},tj(this,T_).forEach((e=>e())),tj(this,T_).clear()}destroy(){this.cleanup(),this.listeners.clear()}};T_=new WeakMap,L_.configure=aO(L_),L_.defaults=O_;var q_=L_;function N_(e){e.preventDefault()}function j_(){}var __=new WeakSet;function z_(e){e&&!__.has(e)&&(e.addEventListener("touchmove",j_,{capture:!1,passive:!1}),__.add(e))}var F_,H_,$_,W_,B_,V_,U_,G_,Y_,K_,X_,J_,Z_,Q_,ez,tz,rz,nz,oz={modifiers:[],plugins:[fj,y_,class extends lO{constructor(e,t){super(e,t),this.manager=e;const r=VD((()=>{var e;return aq(null==(e=this.manager.dragOperation.source)?void 0:e.element)}));this.destroy=tD((()=>{var e;const{dragOperation:t}=this.manager,{cursor:n="grabbing",nonce:o}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=r.value,t=e.createElement("style");return o&&t.setAttribute("nonce",o),t.textContent=`* { cursor: ${n} !important; }`,e.head.appendChild(t),()=>t.remove()}}))}},r_,class extends lO{constructor(e,t){super(e,t),this.manager=e,this.destroy=tD((()=>{var e;const{dragOperation:t}=this.manager,{nonce:r}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=document.createElement("style");return r&&e.setAttribute("nonce",r),e.textContent="* { user-select: none !important; -webkit-user-select: none !important; }",document.head.appendChild(e),w_(),document.addEventListener("selectionchange",w_,{capture:!0}),()=>{document.removeEventListener("selectionchange",w_,{capture:!0}),e.remove()}}}))}}],sensors:[q_,A_]},iz=class extends BL{constructor(e={}){const{plugins:t=oz.plugins,sensors:r=oz.sensors,modifiers:n=[]}=e;super(WN($N({},e),{plugins:[S_,m_,Pj,...t],sensors:r,modifiers:n}))}},az=class extends(W_=mL,$_=[GD],H_=[GD],F_=[GD],W_){constructor(e,t){var r=e,{element:n,effects:o=()=>[],handle:i,feedback:a="default"}=r,s=VN(r,["element","effects","handle","feedback"]);super($N({effects:()=>[...o(),()=>{var e,t;const{manager:r}=this;if(!r)return;const n=(null!=(t=null==(e=this.sensors)?void 0:e.map(sO))?t:[...r.sensors]).map((e=>{const t=e instanceof vL?e:r.registry.register(e.plugin),n=e instanceof vL?void 0:e.options;return t.bind(this,n)}));return function(){n.forEach((e=>e()))}}]},s),t),rj(this,V_,JN(B_,8,this)),JN(B_,11,this),rj(this,U_,JN(B_,12,this)),JN(B_,15,this),rj(this,G_,JN(B_,16,this)),JN(B_,19,this),this.element=n,this.handle=i,this.feedback=a}};B_=UN(W_),V_=new WeakMap,U_=new WeakMap,G_=new WeakMap,ZN(B_,4,"handle",$_,az,V_),ZN(B_,4,"element",H_,az,U_),ZN(B_,4,"feedback",F_,az,G_),XN(B_,az);var sz=class extends(X_=gL,K_=[GD],Y_=[GD],X_){constructor(e,t){var r=e,{element:n,effects:o=()=>[]}=r,i=VN(r,["element","effects"]);const{collisionDetector:a=MN}=i,s=e=>{const{manager:t,element:r}=this;if(!r||null===e)return void(this.shape=void 0);if(!t)return;const n=new wN(r),o=_k((()=>this.shape));return n&&(null==o?void 0:o.equals(n))?o:(this.shape=n,n)},l=Vk(!1);super(WN($N({},i),{collisionDetector:a,effects:()=>[...o(),()=>{const{element:e,manager:t}=this;if(!t)return;const{dragOperation:r}=t,{source:n}=r;l.value=Boolean(n&&r.status.initialized&&e&&!this.disabled&&this.accepts(n))},()=>{const{element:e}=this;if(l.value&&e){const t=new Uq(e,s);return()=>{t.disconnect(),this.shape=void 0}}},()=>{var e;if(null==(e=this.manager)?void 0:e.dragOperation.status.initialized)return()=>{this.shape=void 0}}]}),t),rj(this,rz),rj(this,Z_,JN(J_,8,this)),JN(J_,11,this),rj(this,nz,JN(J_,12,this)),JN(J_,15,this),this.element=n,this.refreshShape=()=>s()}set element(e){nj(this,rz,e,tz)}get element(){var e;return null!=(e=this.proxy)?e:tj(this,rz,ez)}};function lz(e){var t;if(null!=e)return function(e){return null!=e&&"object"==typeof e&&"current"in e}(e)?null!=(t=e.current)?t:void 0:e}J_=UN(X_),Z_=new WeakMap,rz=new WeakSet,nz=new WeakMap,Q_=ZN(J_,20,"#element",K_,rz,Z_),ez=Q_.get,tz=Q_.set,ZN(J_,4,"proxy",Y_,sz,nz),XN(J_,sz);var uz="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?L:k;function cz(){const e=P(0)[1];return O((()=>{e((e=>e+1))}),[e])}function dz(e,t=[],r=!1){const n=A(e);return n.current=e,function(e,t=!1){const r=A(e.peek()),n=A(!1),o=cz();return uz((()=>tD((()=>{const i=r.current,a=e.value;if(i!==a){if(r.current=a,!n.current)return;t?W(o):o()}}))),[e,t,o]),{get value(){return n.current=!0,e.peek()}}}(R((()=>VD((()=>n.current()))),t),r)}function pz(e,t){const r=A(new Map),n=cz();return uz((()=>{if(e)return tD((()=>{var o;let i=!1,a=!1;for(const n of r.current){const[s]=n,l=_k((()=>n[1])),u=e[s];l!==u&&(i=!0,r.current.set(s,u),a=null!=(o=null==t?void 0:t(s,l,u))&&o)}i&&(a?W(n):n())}));r.current.clear()}),[e]),R((()=>e?new Proxy(e,{get(e,t){const n=e[t];return r.current.set(t,n),n}}):e),[e])}function fz(e,t){e()}function hz(e){const t=A(e);return uz((()=>{t.current=e}),[e]),t}function mz(e,t,r=k,n=Object.is){const o=A(e);r((()=>{const r=o.current;n(e,r)||(o.current=e,t(e,r))}),[t,e])}function gz(e,t){const r=A(lz(e));uz((()=>{const n=lz(e);n!==r.current&&(r.current=n,t(n))}))}var bz=Object.getOwnPropertySymbols,vz=Object.prototype.hasOwnProperty,yz=Object.prototype.propertyIsEnumerable,xz=new iz,Sz=I(xz),wz=N(q((({children:e},t)=>{const[r,n]=P(0),o=A(null),i=A(null),a=R((()=>({renderer:{get rendering(){var e;return null!=(e=o.current)?e:Promise.resolve()}},trackRendering(e){o.current||(o.current=new Promise((e=>{i.current=e}))),_((()=>{e(),n((e=>e+1))}))}})),[]);return uz((()=>{var e;null==(e=i.current)||e.call(i),o.current=null}),[e,r]),z(t,(()=>a)),null}))),Cz=[void 0,UD];function Ez(e){var t=e,{children:r,onCollision:n,onBeforeDragStart:o,onDragStart:i,onDragMove:a,onDragOver:s,onDragEnd:l}=t,u=((e,t)=>{var r={};for(var n in e)vz.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&bz)for(var n of bz(e))t.indexOf(n)<0&&yz.call(e,n)&&(r[n]=e[n]);return r})(t,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);const c=A(null),{plugins:d,modifiers:p,sensors:f}=u,h=hz(o),m=hz(i),g=hz(s),b=hz(a),v=hz(l),y=hz(n),x=function(e){const t=A(null);t.current||(t.current=e());return j((()=>()=>{var e;return null==(e=t.current)?void 0:e.destroy()}),[]),t.current}((()=>{var e;return null!=(e=u.manager)?e:new iz(u)}));return k((()=>{if(!c.current)throw new Error("Renderer not found");const{renderer:e,trackRendering:t}=c.current,{monitor:r}=x;x.renderer=e;const n=[r.addEventListener("beforedragstart",(e=>{const r=h.current;r&&t((()=>r(e,x)))})),r.addEventListener("dragstart",(e=>{var t;return null==(t=m.current)?void 0:t.call(m,e,x)})),r.addEventListener("dragover",(e=>{const r=g.current;r&&t((()=>r(e,x)))})),r.addEventListener("dragmove",(e=>{const r=b.current;r&&t((()=>r(e,x)))})),r.addEventListener("dragend",(e=>{const r=v.current;r&&t((()=>r(e,x)))})),r.addEventListener("collision",(e=>{var t;return null==(t=y.current)?void 0:t.call(y,e,x)}))];return()=>n.forEach((e=>e()))}),[x]),mz(d,(()=>x&&(x.plugins=null!=d?d:oz.plugins)),...Cz),mz(f,(()=>x&&(x.sensors=null!=f?f:oz.sensors)),...Cz),mz(p,(()=>x&&(x.modifiers=null!=p?p:oz.modifiers)),...Cz),rr.jsxs(Sz.Provider,{value:x,children:[rr.jsx(wz,{ref:c,children:r}),r]})}function Rz(){return T(Sz)}function Pz({children:e,className:t,style:r,tag:n,disabled:o}){var i;const a=A(null),s=Rz(),l=null!=(i=dz((()=>null==s?void 0:s.dragOperation.source),[s]).value)?i:null,u="function"==typeof o?o(l):o;k((()=>{if(!a.current||!s||u)return;const e=s.plugins.find((e=>e instanceof r_));return e?(e.overlay=a.current,()=>{e.overlay=void 0}):void 0}),[s,u]);const c=R((()=>{if(!s)return null;const e=new Proxy(s.registry,{get:(e,t)=>"register"===t||"unregister"===t?Az:e[t]});return new Proxy(s,{get:(t,r)=>"registry"===r?e:t[r]})}),[s]);return rr.jsx(Sz.Provider,{value:c,children:S(n||"div",{ref:a,className:t,style:r,"data-dnd-overlay":!0},function(){if(!l||u)return null;if("function"==typeof e)return rr.jsx(Iz,{source:l,children:e});return e}())})}function Az(){return()=>{}}function Iz({children:e,source:t}){return e(pz(t))}var Mz,kz,Dz,Tz,Oz,Lz=Object.create,qz=Object.defineProperty,Nz=Object.getOwnPropertyDescriptor,jz=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),_z=e=>{throw TypeError(e)},zz=["class","method","getter","setter","accessor","field","value","get","set"],Fz=e=>void 0!==e&&"function"!=typeof e?_z("Function expected"):e,Hz=(e,t,r,n,o)=>({kind:zz[e],name:t,metadata:n,addInitializer:e=>r._?_z("Already initialized"):o.push(Fz(e||null))}),$z=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=zz[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,Nz(o,r)),h=n.length-1;h>=0;h--)(l=Hz(c,r,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>r in e},u.get=e=>e[r],a=(0,n[h])(f[d],l),s._=1,Fz(a)&&(f[d]=a);return f&&qz(o,r,f),o},Wz=(e,t,r)=>t.has(e)||_z("Cannot "+r),Bz=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,r){return new e(t.x-r.x,t.y-r.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:r}){return new e(t,r)}},Vz=class extends(Dz=ZD,kz=[YD],Mz=[YD],Dz){constructor(e){var t,r,n;super(Bz.from(e),((e,t)=>Bz.equals(e,t))),((e,t,r)=>{for(var n=0,o=e[t>>1],i=o&&o.length;n<i;n++)o[n].call(r)})(Oz,5,this),t=this,n=0,(r=Tz).has(t)?_z("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,n),this.velocity={x:0,y:0}}get delta(){return Bz.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const r={x:e.x-t.x,y:e.y-t.y};return r.x||r.y?Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,r=Bz.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(Wz(a=this,s=Tz,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);Nk((()=>{((e,t,r)=>{Wz(e,t,"write to private field"),t.set(e,r)})(this,Tz,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r}))}reset(e=this.defaultValue){super.reset(Bz.from(e)),this.velocity={x:0,y:0}}};Oz=(e=>{var t;return[,,,Lz(null!=(t=null==e?void 0:e[jz("metadata")])?t:null)]})(Dz),Tz=new WeakMap,$z(Oz,2,"delta",kz,Vz),$z(Oz,2,"direction",Mz,Vz),((e,t)=>{((e,t,r)=>{t in e?qz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(t,jz("metadata"),e[3])})(Oz,Vz);var Uz=(e=>(e.Horizontal="x",e.Vertical="y",e))(Uz||{});function Gz(e){const t=Rz();k((()=>{if(!t)return;const r=Object.entries(e).reduce(((e,[r,n])=>{if(n){const o=r.replace(/^on/,"").toLowerCase(),i=t.monitor.addEventListener(o,n);e.push(i)}return e}),[]);return()=>r.forEach((e=>null==e?void 0:e()))}),[t,e])}Object.values(Uz);const Yz=()=>{const[e,t]=P(!1);return Gz({onDragStart:()=>{t(!0)},onDragEnd:()=>{t(!1)}}),e?rr.jsx("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:100}}):null},Kz=()=>{const{flags:e}=aM(rM,(e=>e.env)),t=aM(rM,(e=>e.baseProps.layout));return!e.isEnabled("CLIENT_VNA_373_IMPROVE_TABLE_HEADERS")||void 0===t.accessibleHeader||t.accessibleHeader},Xz=(e,{atTop:t,atBottom:r},n)=>({borderLeftColor:e.grid.border,borderRightColor:e.grid.border,borderTopColor:!n&&r?e.grid.divider:e.grid.border,borderBottomColor:n&&!t||!n&&t?e.grid.divider:e.grid.border}),Jz=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n})=>(e>r?e--:t>r&&(t--,e=n),[t,e]),Zz=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n,lastRowIdx:o})=>(e<n?e++:t<o&&(t++,e=r),[t,e]),Qz=e=>e.atTop?2:1,eF=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],tF=e=>e?.setAttribute("tabIndex","0"),rF=e=>e?.setAttribute("tabIndex","-1"),nF=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(rF)},oF=e=>{e?.focus(),tF(e)},iF=e=>{setTimeout((()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${iE}`);oF(t)}),0)},aF=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o,direction:i})=>{nF(t);const a=((e,t,r,n,o={top:0,bottom:0})=>{const i=o.top>0,a=o.top,s=t.getElementsByClassName("sn-table-row").length-1-o.bottom,l=t.getElementsByClassName("sn-table-head-cell").length-1;let[u,c]=r;switch(e.key){case oE.Down:u<s&&u++;break;case oE.Up:u>a&&u--;break;case oE.Right:if(i)break;[u,c]="rtl"===n?Jz({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0}):Zz({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case oE.Left:if(i)break;[u,c]="rtl"===n?Zz({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):Jz({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0});break;case oE.Home:(RI(e)||i)&&(u=a),i||(c=0);break;case oE.End:(RI(e)||i)&&(u=s),i||(c=l);break;case oE.PageDown:u=Math.min(s,u+10);break;case oE.PageUp:u=Math.max(a,u-10)}return[u,c]})(e,t,r,i,o),s=eF(t,a);return oF(s),((e,t)=>{const r=t.getElementsByClassName("sn-table-container")[0];if(!r?.scrollTo)return;const[n,o]=e;if(n<2)r.scrollTo({top:0,behavior:"auto"});else{const e=t.getElementsByClassName("sn-table-head-cell")[0],i=t.getElementsByClassName("sn-table-row")[n].getElementsByClassName("sn-table-cell")[o];if(!i||!e)return;if(i.offsetTop-e.offsetHeight<r.scrollTop){const t=r.scrollTop-i.offsetHeight-e.offsetHeight;r.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})(a,t),n(a),{nextCell:s,nextCellCoord:a}},sF=(e,t,r,n)=>{nF(t),r(e),n.enabled&&!n.active?n.focus?.():oF(eF(t,e))},lF=(e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!!n?.contains(o),a=o?.closest(`.${tE}`);!r.enabled||i||a||t.current||!n||((e=>{const t=e.querySelector(`.${BA.First}`),r=e.querySelector(`.${BA.Second}`);t&&r&&(t.innerHTML="",r.innerHTML="")})(n),r.blur?.(!1))},uF=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10M3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0zM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0"})}))),cF=hc(Wh,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,interactions:t,hoverBackground:r,background:n})=>({...iI,...e,cursor:t.active?"pointer":"default",background:n,verticalAlign:"bottom",boxSizing:"border-box","&&:focus-visible, &&:hover:not(:has(button:hover))":{background:t.active?r:n}}))),dF=hc("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})((({align:e,dir:t})=>({minWidth:rI,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),pF=parseInt(rI,10)/2,fF=hc("div")({position:"absolute",bottom:-pF,left:`calc(50% - ${pF}px)`}),hF={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},mF=hc(op)({height:"100%"}),gF=hc("span",{shouldForwardProp:e=>"lineClamp"!==e&&"isHeadCell"!==e&&"isPagination"!==e&&"isNumeric"!==e})((({lineClamp:e,isHeadCell:t=!1,isPagination:r=!1,isNumeric:n=!1})=>n||1===e&&!t?{...hF,whiteSpace:"nowrap",display:r?"block":void 0}:{...hF,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"})),bF=hc("div")({display:"grid",gridAutoFlow:"column",width:"100%",gridAutoColumns:"1fr auto",gap:"4px"}),vF="cell-text",yF=({children:e,forwardRef:t,isNumeric:r=!1,isPagination:n=!1,isHeadCell:o=!1,lineClamp:i})=>{const{styleService:a}=aM(rM,(e=>e.baseProps));return o?rr.jsx(gF,{"data-testid":vF,ref:t,className:"sn-table-cell-text",lineClamp:a.grid.headerLineClamp,isPagination:n,isHeadCell:!0,style:{direction:r?"ltr":void 0},children:e}):rr.jsx(gF,{"data-testid":vF,ref:t,className:"sn-table-cell-text",isNumeric:r,lineClamp:i??a.grid.contentLineClamp,isPagination:n,style:{direction:r?"ltr":void 0},children:e})},xF=e=>{const{column:t,isInteractionEnabled:r,open:n,setOpen:o,isPagination:i,forwardRef:a}=e,{changeSortOrder:s,interactions:l,embed:u,styleService:c,layout:d,direction:p}=aM(rM,(e=>e.baseProps)),f=oR(sR),h=oR(aR),m=aM(rM,(e=>e.columnWidths[t.pageColIdx])),g=aM(rM,(e=>e.baseProps.model)),b=A(null),v=A(null),y=(({styleService:e,column:t,columnWidth:r})=>{const{measureText:n}=BC({fontSize:e.header.fontSize,fontFamily:e.header.fontFamily,fontWeight:nI});let o=!1,i=!1,a=!1;const s=t.isLocked,l=t.isActivelySorted,u=r-25,c=s?20:0,d=l?20:0;let p=n(t.label);return s&&p+c<=u&&(a=!0,p+=c,l&&p+d<=u&&(i=!0,p+=d)),!s&&l&&p+d<=u&&(i=!0,p+=d),p+24<=u&&(o=!0,p+=24),{shouldShowMenuIcon:o,shouldShowSortIcon:i,shouldShowLockIcon:a}})({styleService:c,column:t,columnWidth:m}),{StartIcon:x,EndIcon:S,LockIcon:w}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n},o)=>{const i="A"===e?rr.jsx(FM,{height:rI,"data-testid":"head-cell-sort-ascending-icon"}):rr.jsx(WM,{height:rI,"data-testid":"head-cell-sort-descending-icon"}),a=r?rr.jsx(dF,{align:t,dir:o,children:i}):void 0,s=n?rr.jsx(vI,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:rr.jsx(uF,{height:rI,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(t,y,p);return rr.jsxs(bI,{shouldShowMenuIcon:y.shouldShowMenuIcon,shouldShowLockIcon:y.shouldShowLockIcon,alignment:cI(t,i,p),children:[w,rr.jsxs(gI,{className:"sn-table-head-label",textAlign:t.headTextAlign,direction:p,isPagination:i,children:[x,rr.jsx(yF,{forwardRef:a,isPagination:i,isHeadCell:!0,children:t.label}),S]}),r?rr.jsxs(rr.Fragment,{children:[rr.jsx(nk,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:f,anchorRef:b,menuAvailabilityFlags:{[ek.Sorting]:!0,[ek.Searching]:!0,[ek.Selections]:!0,[ek.AdjusterHeaderSize]:!0},open:n,setOpen:o,interactions:l,sortRelatedArgs:{sortFromMenu:(e,r)=>(e.stopPropagation(),s(t,r))},searchRelatedArgs:{embed:u,listboxRef:v},selectionRelatedArgs:{app:h,qStateName:d.qStateName},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:iF},shouldShowMenuIcon:y.shouldShowMenuIcon,model:g,direction:p,isPagination:i,isAccessibleHeader:!0}),rr.jsx(mI,{ref:v,direction:p,isPagination:i}),rr.jsx(mI,{ref:b,direction:p})]}):null]})},SF=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M6 2h10V1H6zm5 5h5V6h-5zm5 5h-5v-1h5zM5 10h1v2.663a3.5 3.5 0 1 0-2.922.036l-.406.914A4.501 4.501 0 1 1 7.329 13H9v1H5z"})}))),wF=(e,t)=>e.isCyclic&&t,CF=({column:e})=>{const{direction:t,model:r,styleService:n}=aM(rM,(e=>e.baseProps)),o=x.useRef(null),[i,a]=x.useState(!1),s=fM({model:r,headerData:{...e,dimensionInfoIndex:e.colIdx}});return rr.jsxs(rr.Fragment,{children:[rr.jsx(xI,{hoverBackground:n.headerMenuHoverBackground,activeBackground:n.headerMenuActiveBackground,isActive:i,tabIndex:-1,onClick:e=>{e.stopPropagation(),a(!0)},children:rr.jsx(SF,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),rr.jsx(LM,{open:i,onClose:()=>{a(!1)},menuGroups:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),a(!1),s?.(r)},enabled:!0,icon:BM,isActive:e.groupDimensionPos===r})))}]],anchorEl:o.current,direction:t,isPagination:!1})]})},EF=e=>e.isLocked,RF=({column:e})=>{const t=oR(aR),r=aM(rM,(e=>e.baseProps.layout.qStateName)),n=aM(rM,(e=>e.baseProps.styleService));return rr.jsx(xI,{tabIndex:-1,hoverBackground:n.headerMenuHoverBackground,onClick:n=>{n.stopPropagation(),(async(e,t,r)=>{const n=NM(t??"$",r);let o;try{const t=await(e?.createSessionObject(n));o=t?.id,await(t?.unlock("/qListObjectDef"))}catch(e){console.error("Failed to unlock field from table header",e)}finally{o&&(await(e?.destroySessionObject(o))||console.error("Failed to destroy session object when unlocking field from table header"))}})(t,r,e)},children:rr.jsx(uF,{height:16,"data-testid":"head-cell-lock-icon"})})},PF=({column:e,open:t,setOpen:r,isPagination:n})=>{const{interactions:o,layout:i,direction:a,changeSortOrder:s,embed:l,styleService:u}=aM(rM,(e=>e.baseProps)),c=oR(sR),d=oR(aR),p=aM(rM,(e=>e.baseProps.model)),f=x.useRef(null),h=x.useRef(null);return rr.jsxs(xI,{tabIndex:-1,hoverBackground:u.headerMenuHoverBackground,activeBackground:u.headerMenuActiveBackground,isActive:t,order:e.isDim?void 0:-1,children:[rr.jsx(nk,{headerData:{...e,dimensionInfoIndex:e.colIdx},translator:c,anchorRef:f,menuAvailabilityFlags:{[ek.Sorting]:!0,[ek.Searching]:!0,[ek.Selections]:!0,[ek.AdjusterHeaderSize]:!0},open:t,setOpen:r,interactions:o,sortRelatedArgs:{sortFromMenu:(t,r)=>(t.stopPropagation(),s(e,r))},searchRelatedArgs:{embed:l,listboxRef:h},selectionRelatedArgs:{app:d,qStateName:i.qStateName},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:iF},shouldShowMenuIcon:!0,model:p,direction:a,isPagination:n,isAccessibleHeader:!1,iconSize:16}),rr.jsx(mI,{ref:h,direction:a,isPagination:n}),rr.jsx(mI,{ref:f,direction:a})]})},AF=e=>e.at(0)?.contentBoxSize.at(0)?.blockSize,IF=(e,t)=>{const r=A(t);r.current=t,L((()=>{if(!e.current)return()=>{};const t=new ResizeObserver((e=>{r.current(e)}));return t.observe(e.current),()=>{t.disconnect()}}),[e])},MF=hc(op)({display:"flex",alignItems:"center",justifyContent:"center",width:"100%",boxSizing:"border-box"}),kF=({children:e})=>{const t=x.useRef(null),[r,n]=P((()=>new Set(e.filter((({props:e})=>void 0!==e.prio&&e.children)).map((({key:e})=>e))))),o=R((()=>Array.from(e).sort(((e,t)=>(e.props.prio??-1/0)-(t.props.prio??-1/0)))),[e]),i=O((e=>{const t=new Set,r=e.at(0)?.contentBoxSize.at(0)?.inlineSize??0;let i=0;o.forEach((e=>{if(e.props.ignore||!e.props.children)return;const n=e.props.minWidth+1;void 0===e.props.prio||i+n<=r?i+=n:t.add(e.key)})),n((e=>e.size===t.size&&[...e].every((e=>t.has(e)))?e:t))}),[o]);return IF(t,i),rr.jsx(MF,{ref:t,"data-testid":"responsive-container",children:e.filter((e=>!r.has(e.key)))})},DF=({children:e})=>e,TF=(e,t)=>!e.isLocked&&e.isDim&&t,OF=({column:e,open:t,setOpen:r})=>{const{embed:n,direction:o,layout:i,styleService:a}=aM(rM,(e=>e.baseProps));oR(aR);const s=x.useRef(null),l=O((()=>{r(!1)}),[r]),u=qM({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:n,listboxRef:s},selectionRelatedArgs:{qStateName:i.qStateName},direction:o,onPopoverClose:l});return rr.jsx(xI,{tabIndex:-1,hoverBackground:a.headerMenuHoverBackground,activeBackground:a.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),u(),r(!0)},children:rr.jsx(YM,{ref:s,height:16,"data-testid":"head-cell-search-icon"})})},LF=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M2.4 4h11.2a.2.2 0 0 1 .16.32l-5.6 7.467a.2.2 0 0 1-.32 0L2.24 4.32A.2.2 0 0 1 2.4 4"})}))),qF=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M13.6 11H2.4a.2.2 0 0 1-.16-.32l5.6-7.467a.2.2 0 0 1 .32 0l5.6 7.467a.2.2 0 0 1-.16.32"})}))),NF=({column:e})=>{const{sortDirection:t,isActivelySorted:r}=e,n="A"===t?rr.jsx(qF,{height:rI,"data-testid":"head-cell-sort-ascending-icon"}):rr.jsx(LF,{height:rI,"data-testid":"head-cell-sort-descending-icon"});return r?rr.jsx(fF,{children:n}):void 0},jF=()=>{const e=aM(rM,(e=>e.baseProps.interactions.active)),t=aM(rM,(e=>e.baseProps.selectionsAPI?.isModal()));return!!e&&!t},_F=0,zF=1,FF=2,HF=3,$F=e=>{const{column:t,open:r,setOpen:n,isPagination:o,forwardRef:i}=e,{styleService:a}=aM(rM,(e=>e.baseProps)),s=jF(),{measureText:l}=BC(a.header),[u,c]=x.useState(!1);return rr.jsxs(kF,{children:[rr.jsx(DF,{prio:FF,minWidth:hI,children:EF(t)?rr.jsx(RF,{column:t}):null},"Lock"),rr.jsx(DF,{prio:zF,minWidth:hI,children:wF(t,s)?rr.jsx(CF,{column:t}):null},"Cyclic"),rr.jsx(DF,{ignore:!0,children:rr.jsx(NF,{column:t})},"Sort"),rr.jsx(DF,{minWidth:l(t.label)+8,children:rr.jsx(yI,{justifyContent:t.headTextAlign,children:rr.jsx(yF,{forwardRef:i,isPagination:o,isHeadCell:!0,children:t.label})})},"Text"),rr.jsx(DF,{prio:_F,minWidth:hI,children:u||TF(t,s)?rr.jsx(OF,{open:u,setOpen:c,column:t}):null},"Search"),rr.jsx(DF,{prio:HF,minWidth:hI,children:s?rr.jsx(PF,{column:t,open:r,setOpen:n,isPagination:o}):null},"Menu")]})},WF=hc("div",{shouldForwardProp:e=>"background"!==e&&"applicableStyle"!==e})((({background:e,applicableStyle:t})=>({...t,background:e}))),BF=()=>{},VF=({column:e,isPagination:t})=>{const{styleService:r,direction:n}=aM(rM,(e=>e.baseProps)),o=aM(rM,(e=>e.showRightBorder)),i=aM(rM,(e=>e.tableData.totalsPosition)),a=!1,s=Kz()?xF:$F;return rr.jsx(WF,{className:"sn-table-cell",applicableStyle:{...r.header,...Xz(r,i,!0)},style:{cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:pI(n,a,o),borderLeftWidth:fI(n,a,o),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:e.headTextAlign,boxSizing:"border-box",flexDirection:"right"===e.headTextAlign?"row-reverse":"row",userSelect:"none",width:"100%"},background:r.header.background,children:rr.jsx(s,{column:e,isInteractionEnabled:!1,isPagination:t,open:!1,setOpen:BF})})},UF=({isPagination:e})=>{const{columns:t}=aM(rM,(e=>e.tableData)),[r,n]=P();Gz({onDragStart:e=>{const t=e.operation.source?.id;n(t)},onDragEnd:()=>{}});const o=r?t.find((e=>e.id===r)):void 0;return o?rr.jsx(Pz,{children:rr.jsx("div",{style:{background:"white",height:"100%",display:"flex",position:"relative"},children:rr.jsx(VF,{column:o,isPagination:e})})}):null},GF=[q_.configure({activationConstraints:[new D_.Distance({value:5})],preventActivation:e=>{const t=e.target;return t instanceof HTMLElement&&t.classList.contains("nebula-table-utils-column-adjuster")}})],YF=oz.plugins.filter((e=>e!==fj)),KF=({children:e})=>{const{model:t}=aM(rM,(e=>e.baseProps)),{columns:r}=aM(rM,(e=>e.tableData));return rr.jsx(Ez,{onDragOver:e=>{const n=e.operation.source?.id,o=e.operation.target?.id;void 0!==o&&n!==o&&(async(e,t,r,n)=>{if(!e||!("getEffectiveProperties"in e))return;const o=t.findIndex((e=>e.id===r)),i=t.findIndex((e=>e.id===n)),a=[...t],[s]=a.splice(o,1);a.splice(i,0,s);const l=[{qPath:"/qHyperCubeDef/qColumnOrder",qOp:"Replace",qValue:`[${a.map((e=>e.colIdx)).join(",")}]`}];e.applyPatches(l,!0)})(t,r,n,o)},sensors:GF,plugins:YF,children:e})};function XF(e,t){const r=A(!1);k((()=>{r.current?e():r.current=!0}),t)}import.meta.env&&import.meta.env.MODE;let JF=!1;function ZF(e,t){"production"===(import.meta.env?import.meta.env.MODE:void 0)||JF||(console.warn("[DEPRECATED] atomFamily is deprecated and will be removed in v3. Please use the `jotai-family` package instead: https://github.com/jotaijs/jotai-family"),JF=!0);let r=null;const n=new Map,o=new Set,i=t=>{let o;if(o=n.get(t),void 0!==o){if(!(null==r?void 0:r(o[1],t)))return o[0];i.remove(t)}const s=e(t);return n.set(t,[s,Date.now()]),a("CREATE",t,s),s},a=(e,t,r)=>{for(const n of o)n({type:e,param:t,atom:r})};return i.unstable_listen=e=>(o.add(e),()=>{o.delete(e)}),i.getParams=()=>n.keys(),i.remove=e=>{{if(!n.has(e))return;const[t]=n.get(e);n.delete(e),a("REMOVE",e,t)}},i.setShouldRemove=e=>{if(r=e,r)for(const[e,[t,o]]of n)r(o,e)&&(n.delete(e),a("REMOVE",e,t))},i}!function(e=()=>{try{return window.localStorage}catch(e){return void("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&"undefined"!=typeof window&&console.warn(e))}},t){var r;let n,o;const i={getItem:(r,i)=>{var a,s;const l=e=>{if(n!==(e=e||"")){try{o=JSON.parse(e,null==t?void 0:t.reviver)}catch(e){return i}n=e}return o},u=null!=(s=null==(a=e())?void 0:a.getItem(r))?s:null;return(e=>"function"==typeof(null==e?void 0:e.then))(u)?u.then(l):l(u)},setItem:(t,r)=>{var n;return null==(n=e())?void 0:n.setItem(t,JSON.stringify(r,void 0))},removeItem:t=>{var r;return null==(r=e())?void 0:r.removeItem(t)}};let a;try{a=null==(r=e())?void 0:r.subscribe}catch(e){}var s;!a&&"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(a=(t,r)=>{if(!(e()instanceof window.Storage))return()=>{};const n=n=>{n.storageArea===e()&&n.key===t&&r(n.newValue)};return window.addEventListener("storage",n),()=>{window.removeEventListener("storage",n)}}),a&&(i.subscribe=(s=a,(e,t,r)=>s(e,(e=>{let n;try{n=JSON.parse(e||"")}catch(e){n=r}t(n)}))))}();const QF=UE(VA),eH=ZF((e=>UE((t=>{const[r,n]=t(QF);return 0===r&&n===e})))),tH=()=>{const{downloadService:e}=aM(rM,(e=>e.baseProps));k((()=>{e.notifyIsDoneRendering()}))},rH=(e,t,r)=>{const{rootElement:n,keyboard:o}=aM(rM,(e=>e.baseProps)),{totalColumnCount:i,totalRowCount:a,rows:s,totalsPosition:l}=aM(rM,(e=>e.tableData)),[u,c]=function(e){return[oR(e),iR(e)]}(QF),d=aM(rM,(e=>e.baseProps.selectionsAPI?.isModal()));XF((()=>{const r=((e,t,r=!1)=>{const n=[Qz(t),e[1]];return r?n:VA})(u,l,d);(({resetCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(nF(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=eF(t,e);r.current?(oF(s),r.current=!1):tF(s),n&&(a({keys:[s?.textContent??""]}),EI(a,s,n))})({resetCellCoord:r,rootElement:n,shouldRefocus:e,setFocusedCellCoord:c,isSelectionMode:d,keyboard:o,announce:t})}),[s.length,a,i,r])},nH=(e,t,r)=>{k((()=>{const n=e.current;if(!n)return;const o=e=>{((e,t,r)=>{if(0===e.deltaX)return;e.stopPropagation();const n=r.scrollWidth-r.offsetWidth;let{scrollLeft:o}=r,i=o+e.deltaX;t&&(i=n+i),n>0&&(i<0||i>n+1)&&(e.preventDefault(),o=t?Math.min(0,Math.min(n,i)):Math.max(0,Math.min(n,i)))})(e,"rtl"===t,n)},i=e=>{r.scrollLeft=e.currentTarget?.scrollLeft||0};return n.addEventListener("wheel",o),n.addEventListener("scroll",i),()=>{n.removeEventListener("wheel",o),n.removeEventListener("scroll",i)}}),[e,t,r])},oH=e=>{LC(e),RI(e)&&fE(e.currentTarget)},iH=e=>{MI(e.evt)&&(LC(e.evt),aF(e))},aH=e=>{const{evt:t,totalsPosition:r,cell:n,isSelectionMode:o}=e;if(!MI(t))return;LC(t);const i=((e,t)=>[e.pageRowIdx+Qz(t),e.pageColIdx])(n,r),a=((e,t)=>({top:e?Qz(t):0,bottom:e&&t.atBottom?1:0}))(o,r),{nextCell:s,nextCellCoord:l}=aF({...e,cellCoord:i,allowedRows:a});l[0]!==i[0]&&(({evt:e,isSelectionsEnabled:t,cell:r,selectionDispatch:n,announce:o,isSelectionMode:i,nextCell:a})=>{e.shiftKey&&t&&r.isSelectable?n({type:$A.SelectMultiAdd,payload:{cell:r,evt:e,announce:o}}):EI(o,a,i)})({...e,nextCell:s})},sH=e=>{const{evt:t}=e;PI(t)?(({evt:e,totalRowCount:t,rowsPerPage:r,page:n,updateShouldRefocus:o,handleChangePage:i})=>{LC(e);const a=Math.ceil(t/r)-1;e.key===oE.Right&&n<a?(o(),i(n+1)):e.key===oE.Left&&n>0&&(o(),i(n-1))})(e):t.key===oE.Esc?(({evt:e,keyboard:t,isSelectionMode:r})=>{t.enabled&&!r&&(LC(e),t.blur?.(!0))})(e):AI(t.key)&&LC(t)},lH=e=>{const{evt:t,selectionsAPI:r}=e;if(t.currentTarget.classList.contains(HA.Disabled))return void LC(t);const n={...e,isSelectionMode:!!r?.isModal()};switch(t.key){case oE.Space:(({evt:e,cell:t,isSelectionsEnabled:r,selectionDispatch:n,announce:o})=>{LC(e),t.isSelectable&&r&&n({type:$A.Select,payload:{cell:t,evt:e,announce:o}})})(n);break;case oE.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{LC(r),e&&(t?.confirm(),n({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(n);break;case oE.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{e&&(LC(r),t?.cancel(),n({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(n);break;case oE.C:oH(t);break;case oE.Tab:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{const o=e.shiftKey||!n;t.enabled&&r&&o&&(LC(e),OC(e.currentTarget,t,e.shiftKey))})(n);break;default:aH(n)}},uH=e=>{const t=aM(rM,(e=>e.isAdjustingWidth)),r=aM(rM,(e=>e.setXScrollbarWidth)),n=aM(rM,(e=>e.setYScrollbarWidth)),o=aM(rM,(e=>e.eventEmitter)),i=A();IF(e,(a=>{const s=()=>{if(e.current){const e=a.at(0)?.borderBoxSize.at(0)?.inlineSize??0,t=a.at(0)?.borderBoxSize.at(0)?.blockSize??0,o=a.at(0)?.contentBoxSize.at(0)?.inlineSize??0,i=t-(a.at(0)?.contentBoxSize.at(0)?.blockSize??0);n(e-o),r(i)}};t?(i.current&&o.off("done-adjusting-column-width",i.current),o.once("done-adjusting-column-width",s),i.current=s):s()})),k((()=>{const e=o;return()=>{i.current&&e.off("done-adjusting-column-width",i.current)}}),[o])},cH=hc("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),dH=hc(Gh,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"}))),pH=hc(Dh,{shouldForwardProp:e=>"borderRight"!==e})((({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e}))),fH=()=>rr.jsxs(rr.Fragment,{children:[rr.jsx(cH,{className:BA.First,"data-testid":BA.First,"aria-live":"polite","aria-atomic":"true"}),rr.jsx(cH,{className:BA.Second,"data-testid":BA.Second,"aria-live":"polite","aria-atomic":"true"})]}),hH=e=>{const t=A(new Map),r=A(null);k((()=>{r.current=e(t.current),t.current.forEach(((e,t)=>{r.current?.observe(t)}));const n=t.current,o=r.current;return()=>{o.disconnect(),n.clear()}}),[e,r,t]);const n=O(((e,n)=>{t.current.set(e,n),r.current?.observe(e)}),[t,r]),o=O((e=>{t.current.delete(e),r.current?.unobserve(e)}),[r,t]);return R((()=>({addTask:n,removeTask:o})),[n,o])},mH=e=>new ResizeObserver((t=>{t.forEach((t=>{const r=e.get(t.target);r?.(t)}))})),gH=()=>hH(mH),bH=({selectionsAPI:e,selectionDispatch:t,updateShouldRefocus:r,keyboard:n,tableWrapperRef:o})=>{k((()=>{const i=()=>{t({type:$A.Reset})},a=()=>{t({type:$A.Clear})},s=()=>{o.current?.contains(document.activeElement)?r():n.enabled&&n.blur?.(!0),i()};return e?.on("deactivated",i),e?.on("canceled",i),e?.on("confirmed",s),e?.on("cleared",a),()=>{e?.removeListener("deactivated",i),e?.removeListener("canceled",i),e?.removeListener("confirmed",s),e?.removeListener("cleared",a)}}),[e,n,t,r,o])},vH=e=>{e.stopPropagation()},yH=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:vH,color:AC.LINK,style:{pointerEvents:r.active?"auto":"none",color:n??void 0,opacity:r.active&&r.passive||n?void 0:.4}}),xH=({href:e,text:t,interactions:r,color:n})=>rr.jsx(rf,{...yH({href:e,text:t,interactions:r,color:n}),children:t}),SH=window.requestIdleCallback??(e=>setTimeout((()=>{e({})}),0)),wH=window.cancelIdleCallback??(e=>{clearTimeout(e)}),CH="qDimensionInfo/0",EH="qMeasureInfo/0",RH="x",PH="y",AH=e=>({key:"bars",type:"box",data:{extract:{field:CH,props:{start:0,end:{field:EH}}}},settings:{major:{scale:RH},minor:{scale:PH},box:{maxWidthPx:8,fill:{fn:e}}}}),IH=e=>({key:"p",type:"point",data:{extract:{field:CH,props:{y:{field:EH}}}},settings:{x:{scale:RH},y:{scale:PH},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),MH=({qNum:e})=>void 0===e?0:Math.sign(e),kH=(e,t)=>{const{primary:r,nil:n,others:o}=e.getDataColorSpecials(),i=DC(e,t?.negative,r),a=DC(e,t?.positive,r);return{key:"pos-neg",type:"box",data:{extract:{field:CH,props:{start:0,end:{field:EH,value:MH}}}},settings:{major:{scale:RH},minor:{scale:PH},box:{maxWidthPx:8,fill:{fn:e=>-2===e.datum.value?n:-3===e.datum.value?o:0===e.datum.end.value?"#DDDDDD":Math.sign(e.datum.end.value)<0?i:a}}}}},DH=(e,{type:t,showDots:r,colors:n,colorMin:o,colorMax:i})=>{const a=((e,t,r,n)=>{const{primary:o,nil:i,others:a}=e.getDataColorSpecials(),s=DC(e,t?.main,o),l=DC(e,t?.max,s),u=DC(e,t?.min,s),c=DC(e,t?.first,s),d=DC(e,t?.last,s);return e=>{const t=PH in e.datum?PH:"end";return-2===e.datum.value?i:-3===e.datum.value?a:e.datum[t].value>=n?l:e.datum[t].value<=r?u:e.data.items.at(0)===e.datum?c:e.data.items.at(-1)===e.datum?d:s}})(e,n,o,i);switch(t){case"bars":return[AH(a)];case"dots":return[IH(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:CH,props:{v:{field:EH}}}},settings:{coordinates:{major:{scale:RH},minor:{scale:PH,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(DC(e,n?.main,e.getDataColorSpecials().primary));return r?[t,IH(a)]:[t]}case"posNeg":return[kH(e,n)];default:return[]}},TH=e=>({qDimensionInfo:[{qFallbackTitle:"",qCardinal:1}],qMeasureInfo:[{qFallbackTitle:""}],qDataPages:[{qArea:{qTop:0,qLeft:0,qHeight:e.length,qWidth:2},qMatrix:e}],qEffectiveInterColumnSortOrder:[0,1],qSize:{qcx:2,qcy:e.length},qMode:"S"}),OH=(e,t,r,n)=>({y:{data:{field:EH},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:r},x:{data:{extract:{field:CH}},paddingInner:.3,paddingOuter:0,invert:"rtl"===n,align:"rtl"===n?1:0,maxPxStep:12}}),LH=V();LH.use(B),LH.renderer.prio(["canvas"]);const qH={resolve:()=>{},promise:{}},NH=({chart:e,element:t,requestId:r,theme:n,isSnapshot:o,direction:i,miniChartData:a,downloadService:s})=>{const{resolveChartPromise:l,addChartPromiseToQueue:u}=(e=>{const t=A(e.isDownloadedAsPDForImage?Mt():qH);return{addChartPromiseToQueue:O((()=>{e.waitForPromise(t.current.promise)}),[e]),resolveChartPromise:t.current.resolve}})(s);return{renderChartWithRequestIdleCallback:O((()=>{if(null===t.current||null!==e.current)return;u();r.current=SH((()=>{t.current&&(e.current=(({element:e,theme:t,isSnapshot:r,miniChartData:n,onChartRendered:o,direction:i})=>{const{type:a,qMatrix:s,minY:l,maxY:u}=n;return LH.chart({element:e,data:{type:"q",key:"qHyperCube",data:TH(s)},settings:{scales:OH(a,l,u,i),components:DH(t,n),strategy:r?{size:{width:e.offsetWidth,height:e.offsetHeight}}:void 0},mounted:()=>{o()}})})({element:t.current,theme:n,isSnapshot:o,miniChartData:a,direction:i,onChartRendered:l}))}),{timeout:2e3})}),[t,e,u,r,n,o,a,i,l]),safeCancelIdleCallback:O((()=>{null!==r.current&&wH(r.current),r.current=null,l()}),[r,l])}},jH=e=>{const t=A(null),r=A(!1);return O((n=>{const o=n.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(wH(e.current),e.current=null)})(t),r.current?0!==o?null!==e.current&&(t.current=SH((()=>{e.current?.update()}),{timeout:2e3})):r.current=!1:r.current=!0}),[e])},_H=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:r,isSnapshot:n,miniChartData:o,downloadService:i,direction:a})=>{const s=A(null),l=A(null),u=A(null),{renderChartWithRequestIdleCallback:c,safeCancelIdleCallback:d}=NH({element:s,chart:l,requestId:u,theme:r,isSnapshot:n,direction:a,miniChartData:o,downloadService:i});return(({element:e,intersectionObserverTaskScheduler:t,safeCancelIdleCallback:r,renderChartWithRequestIdleCallback:n,chart:o})=>{const i=O((e=>{e.isIntersecting?n():r()}),[n,r]);k((()=>{if(!e.current||!t)return()=>{};const n=e.current;return t.addTask(n,i),()=>{t.removeTask(n),r(),o.current?.destroy(),o.current=null}}),[o,e,t,r,i])})({element:s,intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:l}),(({renderChartWithRequestIdleCallback:e,safeCancelIdleCallback:t,chart:r,intersectionObserverTaskScheduler:n})=>{k((()=>n?()=>{}:(e(),()=>{t(),r.current?.destroy(),r.current=null})),[n,t,e,r])})({intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:l}),(({element:e,chart:t,resizeObserverTaskScheduler:r})=>{const n=jH(t);k((()=>{const t=e.current;return t?(r.addTask(t,n),()=>{r.removeTask(t)}):()=>{}}),[e,n,r])})({element:s,chart:l,resizeObserverTaskScheduler:t}),s},zH=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=_H({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return rr.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},FH=e=>{let t="center",r="center";return"flex-start"===e?.vertical?t="top":"flex-end"===e?.vertical&&(t="bottom"),"flex-start"===e?.horizontal?r="left":"flex-end"===e?.horizontal&&(r="right"),`${r} ${t}`},HH=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},$H=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const{direction:o}=aM(rM,(e=>e.baseProps)),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,u="fitHeight"===s,c=rr.jsx("img",{src:i,alt:a,style:{...t,width:u?"auto":"100%",height:"100%",maxHeight:r,objectFit:HH(s),objectPosition:FH(l),overflow:"hidden"}});return n?rr.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:u?r:"100%",overflow:"hidden",display:"flex",justifyContent:u?sI(o,e):void 0},children:c}):c},WH=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})}))),BH=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})}))),VH=q(((e,t)=>rr.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[rr.jsx("path",{d:"M3 9v6.5a.5.5 0 1 1-1 0V.5a.5.5 0 0 1 1 0V1q2.441.639 3.667.639c1.225 0 1.774-.995 3.87-1.196q1.972-.19 3.297.47A.3.3 0 0 1 14 1.18v7.344a.3.3 0 0 1-.417.277q-1.338-.565-3.045-.416c-1.98.172-2.083 1.107-3.871 1.253Q4.879 9.785 3 9"}),rr.jsx("use",{fillRule:"evenodd"})]}))),UH=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M13.9 7.4c-1 1.3-.6 1.5-1.5 4.1-.5 1.8-1.2 2.9-1.7 3.6q-.45.6-.9.9H4.2c-1 0-1.6-.5-1.9-1-.2-.3-.3-.6-.3-1V4.2c0-.4.3-.7.7-.7s.7.3.7.7v3.6l.9-.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v5.1l1.1-.2V.7C6.7.3 7 0 7.4 0s.7.3.7.7v5.9l1.1.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v7.7s.1 0 .1-.2l.6-1.4c1.1-2.1 3.1-1.1 2.6-.3"})}))),GH=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M5 13h6v1.5c0 .3-.2.5-.5.5H10v.5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5V15h-.5c-.3 0-.5-.2-.5-.5zm0-1c0-2-3-3-3-7 0-3 3-5 6-5s6 2 6 5c0 4-3 4-3 7H5m-.5-7c.3 0 .5-.2.5-.5s.2-.7.5-1 .6-.5 1-.5c.3 0 .5-.2.5-.5S6.8 2 6.5 2c-.6 0-1.2.3-1.7.8S4 3.9 4 4.5c0 .3.2.5.5.5"})}))),YH=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8m4.5 9c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6h-9c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7z"})}))),KH=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M2 7.5h12v1H2z"})}))),XH=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M9 7h7a7.004 7.004 0 0 0-7-7zm1-5.917A6.005 6.005 0 0 1 14.917 6H10zM14 9H7V2a7.002 7.002 0 0 0 0 14 7 7 0 0 0 7-7m-8 1h6.917A6.002 6.002 0 0 1 1 9a6 6 0 0 1 5-5.917z"})}))),JH=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M9 9h3.5c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6H9V3.5c0-.25-.3-.5-.6-.5h-.7c-.4 0-.7.25-.7.5V7H3.5c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7H7v3.5c0 .25.3.5.6.5h.8c.3 0 .6-.25.6-.5zM8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})}))),ZH=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"m8.418 1.007.042.08 1.788 4.217 4.571.388a.5.5 0 0 1 .348.811l-.063.065-3.472 3.008 1.043 4.47a.5.5 0 0 1-.664.581l-.081-.04L8 12.217l-3.93 2.372a.5.5 0 0 1-.757-.453l.012-.089 1.043-4.47L.896 6.568a.5.5 0 0 1 .196-.86l.089-.016 4.571-.388L7.54 1.086a.5.5 0 0 1 .878-.08Z"})}))),QH=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M13 14H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1"})}))),e$={m:q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})}))),"ï":ZH,R:qF,S:LF,T:q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M11 2.4v11.2a.2.2 0 0 1-.32.16l-7.467-5.6a.2.2 0 0 1 0-.32l7.467-5.6a.2.2 0 0 1 .32.16"})}))),U:q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M4 13.6V2.4a.2.2 0 0 1 .32-.16l7.467 5.6a.2.2 0 0 1 0 .32l-7.467 5.6A.2.2 0 0 1 4 13.6"})}))),P:JH,Q:YH,"è":q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M14.98 15H1.04c-1.002 0-1.303-.7-.802-1.5l6.82-11.9c.5-.8 1.303-.8 1.804 0l6.92 11.9c.501.8.1 1.5-.803 1.5M8.5 5h-1c-.3 0-.5.2-.5.5V9c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5V5.5c0-.3-.2-.5-.5-.5m-1 6c-.3 0-.5.2-.5.5v1c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5v-1c0-.3-.2-.5-.5-.5z"})}))),"¢":UH,"©":VH,"23F4":GH,2013:QH,"&":XH,add:WH,"minus-2":KH,dot:BH},t$=({size:e,iconKey:t,color:r,pvStyle:n})=>{const o=t&&e$[t];return o&&rr.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n},children:rr.jsx(o,{style:{height:e}})})},r$=({representation:e,cellValue:t,paginationCellAlign:r})=>{const{styleService:n,theme:o,direction:i}=aM(rM,(e=>e.baseProps)),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=s??{},c=QA(e,t,i,o),d=(e=>parseInt(e||rI,10))(n.measure.values.fontSize),{color:p,iconKey:f,position:h}=c||{};return l?rr.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:r??"flex-end",alignItems:"center",gap:"2px",overflow:"hidden",color:u?p:void 0},children:["left"===h&&t$({size:d,iconKey:f,color:p}),rr.jsx(yF,{isNumeric:!0,children:a}),"right"===h&&t$({size:d,iconKey:f,color:p})]}):t$({size:d,iconKey:f,color:p})},n$=(e,t)=>e.contentStaticLineCount?e.contentLineHeight*(t??e.grid.contentLineClamp):e.contentLineHeight,o$=({forwardRef:e,cell:t,style:r,virtualizedCell:n,lineClamp:o,intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,paginationCellAlign:s})=>{const{interactions:l,styleService:u,theme:c,layout:d,downloadService:p,direction:f}=aM(rM,(e=>e.baseProps)),h=aM(rM,(e=>e.selectionState.api?.isActive()));let m=t.representation.text;if(t.representation.type!==OR.Link||h||(m=rr.jsx(xH,{href:t.representation.url,text:t.representation.text,interactions:l,color:r.cellForegroundColor})),t.representation.type===OR.Image)return rr.jsx($H,{representation:t.representation,textStyle:r,maxImageHeight:n$(u,o),wrapInContainer:!n});const g="string"==typeof(b=t.qIsNull?t.representation.text:t.qNum)&&b.length>0||"number"==typeof b?+b:NaN;var b;return t.representation.type!==OR.Indicator||Number.isNaN(g)?t.representation.type===OR.MiniChart&&t.representation.miniChart&&!t.isNull?rr.jsx(zH,{height:n$(u,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:c,isSnapshot:!!d.snapshotData,direction:f,downloadService:p}):rr.jsx(yF,{forwardRef:e,isNumeric:t.isNumeric,lineClamp:o,isPagination:!n,children:m}):rr.jsx(r$,{representation:t.representation,cellValue:g,paginationCellAlign:n?void 0:s})},i$=()=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"0.75em",height:"0.75em",children:rr.jsx("path",{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"})}),a$=hc("div")({"& path":{stroke:"none !important"}}),s$=({children:e,cellSelectionState:t})=>t===HA.Selected?rr.jsxs(bF,{children:[e,rr.jsx(a$,{children:rr.jsx(i$,{})})]}):e,l$=e=>{const t=function(){const e=Rz(),t=dz((()=>null==e?void 0:e.dragOperation.source),[e]),r=dz((()=>null==e?void 0:e.dragOperation.target),[e]);return{get source(){return t.value},get target(){return r.value}}}();return t.source&&t.source.id!==e?.5:1},u$=(e,t,r,n)=>({handleMouseDown:n=>{e?.(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{r({type:$A.SelectMultiEnd})};r({type:$A.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:$A.SelectMultiAdd,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:$A.SelectMouseUp,payload:{cell:t,evt:e,announce:n}})}}),c$=(e,t)=>{const{paginationNeeded:r,totalsPosition:n}=aM(rM,(e=>e.tableData)),{selectionsAPI:o,rootElement:i,keyboard:a,interactions:s,direction:l}=aM(rM,(e=>e.baseProps)),u=iR(QF),c=aM(rM,(e=>e.selectionDispatch)),d=!!s.active&&!!s.select,p=s=>{lH({evt:s,rootElement:i,selectionsAPI:o,cell:e,selectionDispatch:c,isSelectionsEnabled:d,setFocusedCellCoord:u,announce:t,keyboard:a,paginationNeeded:r,totalsPosition:n,direction:l})},f=e=>{((e,t)=>{e.key===oE.Shift&&t({type:$A.SelectMultiEnd})})(e,c)},h=()=>{((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;sF([s,a],t,r,n)})(e,i,u,a,n)};if(!d)return{onKeyDown:p,onKeyUp:f,onMouseDown:h};const{handleMouseDown:m,handleMouseOver:g,handleMouseUp:b}=u$(h,e,c,t);return{onKeyDown:p,onKeyUp:f,onMouseDown:m,onMouseUp:b,onMouseOver:g}},d$=(e,t)=>{const{colIdx:r,rows:n,api:o}=t;let i=HA.Inactive;return o?.isModal()&&(i=r!==e.selectionColIdx?HA.Disabled:n.has(e.qElemNumber)?HA.Selected:HA.Possible),i},p$=(e,t,r)=>{if(!r.isNull)return e;const n={...e,...t.nullValues};return t.grid.zebraStripes.show?(t.grid.zebraStripes.overrideNullValueColor&&(n.color=e.color),t.grid.zebraStripes.overrideNullValueBackground&&(n.background=e.background),n):n},f$=(e,t,r)=>{const{color:n,background:o}=e.grid.zebraStripes[r];return{...t,...n?{color:n}:void 0,...o?{background:o}:void 0}},h$=(e,t,r)=>{if(t.grid.zebraStripes.show){const n=(r.rowIdx+1)%2==0;return f$(t,e,n?"even":"odd")}return e},m$=(e,t)=>{const{styleService:r}=aM(rM,(e=>e.baseProps)),n=aM(rM,(t=>d$(e,t.selectionState)));let o=t.isDim?r.dimension.values:r.measure.values;o=h$(o,r,e),o=p$(o,r,e);const i=WI(o,e.qAttrExps,t.qAttrExprInfoIDs),a=function(e,t,r){return t===HA.Selected?{...e,...r}:t===HA.Disabled?{...e,background:`${eI}, ${e.background}`}:e}(R((()=>e.isNull?o:WI(o,e.qAttrExps,t.qAttrExprInfoIDs)),[o,e.qAttrExps,e.isNull,t.qAttrExprInfoIDs]),n,r.selectedColors);return{cellStyle:{...a,borderColor:r.grid.border},representationStyle:i,cellSelectionState:n}},g$=hc(_h,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),b$=hc(im,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e&&"height"!==e})((({hover:e,hoverColors:t,height:r})=>({height:r,"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}}))),v$=hc(Wh,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...iI,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",boxSizing:"border-box",width:"100%",height:"100%"}))),y$=hc(Wh,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})((({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...iI,...e,fontWeight:nI,position:"sticky",padding:n.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t?r:void 0,bottom:t?void 0:0,verticalAlign:t?"bottom":"top",boxSizing:"border-box",zIndex:t?1:void 0}))),x$=({cell:e,announce:t,column:r,columnIndex:n,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i})=>{const{interactions:a,direction:s}=aM(rM,(e=>e.baseProps)),{onKeyDown:l,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p}=c$(e,t),{cellStyle:f,representationStyle:h,cellSelectionState:m}=m$(e,r),g=l$(r.id);return rr.jsx(v$,{cellStyle:{...f,opacity:g},scope:0===n?"row":void 0,component:0===n?"th":void 0,align:e.align,tabIndex:-1,className:`sn-table-cell ${m} ${nE}`,title:a.passive?e.representation.text:void 0,onKeyDown:l,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p,children:rr.jsx(s$,{cellSelectionState:m,children:rr.jsx(o$,{cell:e,style:h,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i,paginationCellAlign:dI(s,e.align)})})})},S$=UE(0),w$=({column:e,totalsPosition:t,onKeyDown:r,onMouseDown:n})=>{const{styleService:o,interactions:i}=aM(rM,(e=>e.baseProps)),a=oR(S$),s=l$(e.id);return rr.jsx(y$,{totalsStyle:{...o.totalRow,...Xz(o,t,!1),opacity:s},headRowHeight:a,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${nE}`,tabIndex:-1,title:i.passive?e.totalInfo:void 0,onKeyDown:r,onMouseDown:n,children:rr.jsx(yF,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)},C$=()=>{const{columns:e,totalsPosition:t,rows:r}=aM(rM,(e=>e.tableData)),{rootElement:n,selectionsAPI:o,keyboard:i,interactions:a,direction:s}=aM(rM,(e=>e.baseProps)),l=iR(QF),u=!!o?.isModal(),c=!!a.active;return rr.jsx(im,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,o)=>{const a=[t.atTop?1:r.length+1,o];return rr.jsx(w$,{column:e,totalsPosition:t,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:r,isInteractionEnabled:n}=e;if(!t&&n)switch(r.key){case oE.C:oH(r);break;case oE.Space:r.preventDefault();break;default:iH(e)}else LC(r)})({evt:e,rootElement:n,cellCoord:a,setFocusedCellCoord:l,isSelectionMode:u,isInteractionEnabled:c,direction:s})},onMouseDown:()=>{sF(a,n,l,i)}},e.id)}))})};var E$=N(C$);const R$=({updateShouldRefocus:e,tableWrapperRef:t,announce:r})=>{const{rows:n,columns:o,totalsPosition:i}=aM(rM,(e=>e.tableData)),{selectionsAPI:a,keyboard:s,layout:l,styleService:u}=aM(rM,(e=>e.baseProps)),c=aM(rM,(e=>e.selectionDispatch)),d=!!zI(l)?.content?.hoverEffect;bH({keyboard:s,selectionDispatch:c,selectionsAPI:a,updateShouldRefocus:e,tableWrapperRef:t});const p=(e=>{const t=O((t=>new IntersectionObserver((e=>{e.forEach((e=>{const r=t.get(e.target);r?.(e)}))}),{root:e.current})),[e]);return hH(t)})(t),f=gH();return rr.jsxs(g$,{lastRowBottomBorder:u.grid.lastRowBottomBorder,children:[i.atTop?rr.jsx(E$,{}):void 0,n.map(((e,t)=>rr.jsx(b$,{hoverColors:u.grid.hoverColors,hover:d,tabIndex:-1,className:"sn-table-row sn-table-data-row",height:u.contentMinRowHeight,children:o.map(((t,n)=>{const{id:o}=t,i=e[n];return rr.jsx(x$,{columnIndex:n,cell:i,column:t,announce:r,intersectionObserverTaskScheduler:p,resizeObserverTaskScheduler:f},o)}))},`row-${t}`))),i.atBottom?rr.jsx(E$,{}):void 0]})};var P$=N(R$);const A$=(e,t)=>!!e.viewState?.skipHeader||!!t.hideHeader,I$=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,{applyColumnWidths:a,interactions:s,direction:l}=aM(rM,(e=>e.baseProps)),u=oR(sR),c=aM(rM,(e=>e.columnWidths)),d=aM(rM,(e=>e.setColumnWidths));if(!s.active)return null;return rr.jsx(dM,{columnWidth:c[o],isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{r?.();const t=[...c];t[o]=e,d(t)},confirmWidthCallback:t=>{a(t,e)},handleBlur:e=>{(e=>{rF(e);const t=e.closest(".sn-table-cell");oF(t)})(e.currentTarget)},setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:u,columnLabel:i},direction:l})},M$=e=>e.target?.getAttribute("class")?.includes(iE),k$=({isInteractionEnabled:e,column:t})=>{const[r,n]=P(!1),{changeSortOrder:o}=aM(rM,(e=>e.baseProps)),i=aM(rM,(e=>e.isAdjustingWidth)),a=aM(rM,(e=>e.setIsAdjustingWidth));return{open:r,setOpen:n,handleOpenMenu:t=>{!e||M$(t)||i||n(!0)},setIsAdjustingWidth:a,toggleSortOrder:r=>{e&&!M$(r)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(r)&&(r.stopPropagation(),o(t,"A"===t.sortDirection?"D":"A"))}}};var D$=Object.defineProperty,T$=Object.defineProperties,O$=Object.getOwnPropertyDescriptors,L$=Object.getOwnPropertySymbols,q$=Object.prototype.hasOwnProperty,N$=Object.prototype.propertyIsEnumerable,j$=(e,t,r)=>t in e?D$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_$=(e,t)=>{for(var r in t||(t={}))q$.call(t,r)&&j$(e,r,t[r]);if(L$)for(var r of L$(t))N$.call(t,r)&&j$(e,r,t[r]);return e},z$=(e,t)=>T$(e,O$(t)),F$=class extends FL{apply({transform:e}){if(!this.options)return e;const{axis:t,value:r}=this.options;return z$(_$({},e),{[t]:r})}};F$.configure=aO(F$);var H$=F$;H$.configure({axis:"x",value:0}),H$.configure({axis:"y",value:0});var $$=class extends FL{apply({transform:e}){var t;const{size:r=20}=null!=(t=this.options)?t:{},n="number"==typeof r?r:r.x,o="number"==typeof r?r:r.y;return z$(_$({},e),{x:Math.ceil(e.x/n)*n,y:Math.ceil(e.y/o)*o})}};$$.configure=aO($$);var W$=class extends FL{constructor(e,t){super(e,t),this.boundingRectangle=Vk(null),this.destroy=tD((()=>{if(!this.options)return;const{dragOperation:t}=e,{status:r}=t;if(r.initialized){const{element:e}=this.options,r="function"==typeof e?e(t):e;if(!r)return;let n;const o=()=>{this.boundingRectangle.value=QL(r)},i=()=>{n||(n=setTimeout((()=>{o(),n=void 0}),25))},a=new ResizeObserver(o);return a.observe(r),document.addEventListener("scroll",i,{passive:!0,capture:!0}),()=>{document.removeEventListener("scroll",i,{capture:!0}),a.disconnect(),this.boundingRectangle.value=null}}}))}apply(e){const{shape:t,transform:r}=e;if(!t)return r;const n=this.boundingRectangle.value;if(!n)return r;const{initial:o,current:i}=t,{height:a,width:s}=i.boundingRectangle,l=o.center.x-s/2,u=o.center.y-a/2,c=function(e,t,r){const n=_$({},t);return e.boundingRectangle.top+t.y<=r.top?n.y=r.top-e.boundingRectangle.top:e.boundingRectangle.bottom+t.y>=r.top+r.height&&(n.y=r.top+r.height-e.boundingRectangle.bottom),e.boundingRectangle.left+t.x<=r.left?n.x=r.left-e.boundingRectangle.left:e.boundingRectangle.right+t.x>=r.left+r.width&&(n.x=r.left+r.width-e.boundingRectangle.right),n}(new ST(l,u,s,a),r,n);return c}};W$.configure=aO(W$);var B$=W$,V$=Object.create,U$=Object.defineProperty,G$=Object.defineProperties,Y$=Object.getOwnPropertyDescriptor,K$=Object.getOwnPropertyDescriptors,X$=Object.getOwnPropertySymbols,J$=Object.prototype.hasOwnProperty,Z$=Object.prototype.propertyIsEnumerable,Q$=e=>{throw TypeError(e)},eW=(e,t,r)=>t in e?U$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,tW=(e,t)=>{for(var r in t||(t={}))J$.call(t,r)&&eW(e,r,t[r]);if(X$)for(var r of X$(t))Z$.call(t,r)&&eW(e,r,t[r]);return e},rW=(e,t)=>G$(e,K$(t)),nW=["class","method","getter","setter","accessor","field","value","get","set"],oW=e=>void 0!==e&&"function"!=typeof e?Q$("Function expected"):e,iW=(e,t,r,n,o)=>({kind:nW[e],name:t,metadata:n,addInitializer:e=>r._?Q$("Already initialized"):o.push(oW(e||null))}),aW=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},sW=(e,t,r,n,o,i)=>{for(var a,s,l,u,c,d=7&t,p=e.length+1,f=nW[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(o=o.prototype,Y$({get[r](){return uW(this,i)},set[r](e){return dW(this,i,e)}},r)),b=n.length-1;b>=0;b--)(u=iW(d,r,l={},e[3],m)).static=false,u.private=false,c=u.access={has:e=>r in e},c.get=e=>e[r],c.set=(e,t)=>e[r]=t,s=(0,n[b])({get:g.get,set:g.set},u),l._=1,void 0===s?oW(s)&&(g[f]=s):"object"!=typeof s||null===s?Q$("Object expected"):(oW(a=s.get)&&(g.get=a),oW(a=s.set)&&(g.set=a),oW(a=s.init)&&h.unshift(a));return g&&U$(o,r,g),o},lW=(e,t,r)=>t.has(e)||Q$("Cannot "+r),uW=(e,t,r)=>(lW(e,t,"read from private field"),t.get(e)),cW=(e,t,r)=>t.has(e)?Q$("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),dW=(e,t,r,n)=>(lW(e,t,"write to private field"),t.set(e,r),r);function pW(e){return e instanceof HW||e instanceof FW}var fW=Object.defineProperty,hW=Object.defineProperties,mW=Object.getOwnPropertyDescriptors,gW=Object.getOwnPropertySymbols,bW=Object.prototype.hasOwnProperty,vW=Object.prototype.propertyIsEnumerable,yW=(e,t,r)=>t in e?fW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xW=(e,t)=>{for(var r in t||(t={}))bW.call(t,r)&&yW(e,r,t[r]);if(gW)for(var r of gW(t))vW.call(t,r)&&yW(e,r,t[r]);return e},SW=(e,t)=>hW(e,mW(t));function wW(e,t,r){if(t===r)return e;const n=e.slice();return n.splice(r,0,n.splice(t,1)[0]),n}function CW(e,t){return function(e,t,r){var n,o;const{source:i,target:a,canceled:s}=t.operation;if(!i||!a||s)return"preventDefault"in t&&t.preventDefault(),e;const l=(e,t)=>e===t||"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const t=e.findIndex((e=>l(e,i.id))),n=e.findIndex((e=>l(e,a.id)));if(-1===t||-1===n)return e;if(!s&&"index"in i&&"number"==typeof i.index){const n=i.index;if(n!==t)return r(e,t,n)}return r(e,t,n)}const u=Object.entries(e);let c,d,p=-1,f=-1;for(const[e,t]of u)if(-1===p&&(p=t.findIndex((e=>l(e,i.id))),-1!==p&&(c=e)),-1===f&&(f=t.findIndex((e=>l(e,a.id))),-1!==f&&(d=e)),-1!==p&&-1!==f)break;if(!i.manager)return e;const{dragOperation:h}=i.manager,m=null!=(o=null==(n=h.shape)?void 0:n.current.center)?o:h.position.current;if(null==d&&a.id in e){const t=a.shape&&m.y>a.shape.center.y?e[a.id].length:0;d=a.id,f=t}if(null==c||null==d||c===d&&p===f)return"preventDefault"in t&&t.preventDefault(),e;if(c===d)return SW(xW({},e),{[c]:r(e[c],p,f)});const g=a.shape&&Math.round(m.y)>Math.round(a.shape.center.y)?1:0,b=e[c][p];return SW(xW({},e),{[c]:[...e[c].slice(0,p),...e[c].slice(p+1)],[d]:[...e[d].slice(0,f+g),b,...e[d].slice(f+g)]})}(e,t,wW)}var EW="__default__";function RW(e,t,r,n){const o=n<t?"afterend":"beforebegin";r.insertAdjacentElement(o,e)}function PW(e,t){return e.index-t.index}function AW(e){return Array.from(e).sort(PW)}var IW,MW,kW,DW,TW,OW,LW,qW,NW=[class extends lO{constructor(e){super(e);const t=tD((()=>{const{dragOperation:t}=e;if(PN(t.activatorEvent)&&pW(t.source)&&t.status.initialized){const t=e.registry.plugins.get(m_);if(t)return t.disable(),()=>t.enable()}})),r=e.monitor.addEventListener("dragmove",((e,t)=>{queueMicrotask((()=>{if(this.disabled||e.defaultPrevented||!e.nativeEvent)return;const{dragOperation:r}=t;if(!PN(e.nativeEvent))return;if(!pW(r.source))return;if(!r.shape)return;const{actions:n,collisionObserver:o,registry:i}=t,{by:a}=e;if(!a)return;const s=function(e){const{x:t,y:r}=e;if(t>0)return"right";if(t<0)return"left";if(r>0)return"down";if(r<0)return"up"}(a),{source:l,target:u}=r,{center:c}=r.shape.current,d=[],p=[];Nk((()=>{for(const e of i.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==u?void 0:u.id)&&pW(e)||!e.element)continue;let r=e.shape;const n=new wN(e.element,{getBoundingClientRect:e=>lq(e,void 0,.2)});n.height&&n.width&&(("down"==s&&c.y+10<n.center.y||"up"==s&&c.y-10>n.center.y||"left"==s&&c.x-10>n.center.x||"right"==s&&c.x+10<n.center.x)&&(d.push(e),e.shape=n,p.push((()=>e.shape=r))))}})),e.preventDefault(),o.disable();const f=o.computeCollisions(d,kN);Nk((()=>p.forEach((e=>e()))));const[h]=f;if(!h)return;const{id:m}=h,{index:g,group:b}=l.sortable;n.setDropTarget(m).then((()=>{const{source:e,target:t,shape:i}=r;if(!e||!pW(e)||!i)return;const{index:a,group:s,target:l}=e.sortable,u=g!==a||b!==s,c=u?l:null==t?void 0:t.element;if(!c)return;mN(c);const d=new wN(c);if(!d)return;const p=ST.delta(d,ST.from(i.current.boundingRectangle),e.alignment);n.move({by:p}),u?n.setDropTarget(e.id).then((()=>o.enable())):o.enable()}))}))}));this.destroy=()=>{r(),t()}}},class extends lO{constructor(e){super(e);const t=()=>{const t=new Map;for(const r of e.registry.droppables)if(r instanceof HW){const{sortable:e}=r,{group:n}=e;let o=t.get(n);o||(o=new Set,t.set(n,o)),o.add(e)}for(const[e,r]of t)t.set(e,new Set(AW(r)));return t},r=[e.monitor.addEventListener("dragover",((e,r)=>{if(this.disabled)return;const{dragOperation:n}=r,{source:o,target:i}=n;if(!pW(o)||!pW(i))return;if(o.sortable===i.sortable)return;const a=t(),s=o.sortable.group===i.sortable.group,l=a.get(o.sortable.group),u=s?l:a.get(i.sortable.group);l&&u&&queueMicrotask((()=>{e.defaultPrevented||r.renderer.rendering.then((()=>{var n,c,d;const p=t();for(const[e,t]of a.entries()){const r=Array.from(t).entries();for(const[t,o]of r)if(o.index!==t||o.group!==e||!(null==(n=p.get(e))?void 0:n.has(o)))return}const f=o.sortable.element,h=i.sortable.element;if(!h||!f)return;if(!s&&i.id===o.sortable.group)return;const m=AW(l),g=s?m:AW(u),b=null!=(c=o.sortable.group)?c:EW,v=null!=(d=i.sortable.group)?d:EW,y={[b]:m,[v]:g},x=CW(y,e);if(y===x)return;const S=x[v].indexOf(o.sortable),w=x[v].indexOf(i.sortable);r.collisionObserver.disable(),RW(f,S,h,w),Nk((()=>{for(const[e,t]of x[b].entries())t.index=e;if(!s)for(const[e,t]of x[v].entries())t.group=i.sortable.group,t.index=e})),r.actions.setDropTarget(o.id).then((()=>r.collisionObserver.enable()))}))}))})),e.monitor.addEventListener("dragend",((e,r)=>{if(!e.canceled)return;const{dragOperation:n}=r,{source:o}=n;pW(o)&&(o.sortable.initialIndex===o.sortable.index&&o.sortable.initialGroup===o.sortable.group||queueMicrotask((()=>{const e=t(),n=e.get(o.sortable.initialGroup);n&&r.renderer.rendering.then((()=>{for(const[t,r]of e.entries()){const e=Array.from(r).entries();for(const[r,n]of e)if(n.index!==r||n.group!==t)return}const t=AW(n),r=o.sortable.element,i=t[o.sortable.initialIndex],a=null==i?void 0:i.element;i&&a&&r&&(RW(r,i.index,a,o.index),Nk((()=>{for(const[t,r]of e.entries()){const e=Array.from(r).values();for(const t of e)t.index=t.initialIndex,t.group=t.initialGroup}})))}))})))}))];this.destroy=()=>{for(const e of r)e()}}}],jW={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1},_W=new class{constructor(){$D(this,JD,new WeakMap)}get(e,t){var r;return e?null==(r=HD(this,JD).get(e))?void 0:r.get(t):void 0}set(e,t,r){var n;if(e)return HD(this,JD).has(e)||HD(this,JD).set(e,new Map),null==(n=HD(this,JD).get(e))?void 0:n.set(t,r)}clear(e){var t;return e?null==(t=HD(this,JD).get(e))?void 0:t.clear():void 0}};MW=[GD],IW=[GD];var zW=class{constructor(e,t){cW(this,DW,aW(kW,8,this)),aW(kW,11,this),cW(this,TW),cW(this,OW),cW(this,LW,aW(kW,12,this)),aW(kW,15,this),cW(this,qW),this.register=()=>(Nk((()=>{var e,t;null==(e=this.manager)||e.registry.register(this.droppable),null==(t=this.manager)||t.registry.register(this.draggable)})),()=>this.unregister()),this.unregister=()=>{Nk((()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)}))},this.destroy=()=>{Nk((()=>{this.droppable.destroy(),this.draggable.destroy()}))};var r=e,{effects:n=()=>[],group:o,index:i,sensors:a,type:s,transition:l=jW,plugins:u=NW}=r,c=((e,t)=>{var r={};for(var n in e)J$.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&X$)for(var n of X$(e))t.indexOf(n)<0&&Z$.call(e,n)&&(r[n]=e[n]);return r})(r,["effects","group","index","sensors","type","transition","plugins"]);this.droppable=new HW(c,t,this),this.draggable=new FW(rW(tW({},c),{effects:()=>[()=>{var e,t,r;const n=null==(e=this.manager)?void 0:e.dragOperation.status;(null==n?void 0:n.initializing)&&this.id===(null==(r=null==(t=this.manager)?void 0:t.dragOperation.source)?void 0:r.id)&&_W.clear(this.manager),(null==n?void 0:n.dragging)&&_W.set(this.manager,this.id,_k((()=>({initialIndex:this.index,initialGroup:this.group}))))},()=>{const{index:e,group:t,manager:r}=this,n=uW(this,OW),o=uW(this,TW);e===n&&t===o||(dW(this,OW,e),dW(this,TW,t),this.animate())},()=>{const{target:e}=this,{feedback:t,isDragSource:r}=this.draggable;"move"==t&&r&&(this.droppable.disabled=!e)},()=>{const{manager:e}=this;for(const t of u)null==e||e.registry.register(t)},...n()],type:s,sensors:a}),t,this),dW(this,qW,c.element),this.manager=t,this.index=i,dW(this,OW,i),this.group=o,dW(this,TW,o),this.type=s,this.transition=l}get initialIndex(){var e,t;return null!=(t=null==(e=_W.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=_W.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){_k((()=>{const{manager:e,transition:t}=this,{shape:r}=this.droppable;if(!e)return;const{idle:n}=e.dragOperation.status;r&&t&&(!n||t.idle)&&e.renderer.rendering.then((()=>{const{element:n}=this;if(!n)return;const o=this.refreshShape();if(!o)return;const i=r.boundingRectangle.left-o.boundingRectangle.left,a=r.boundingRectangle.top-o.boundingRectangle.top,{translate:s}=nN(n),l=bN(n,s,!1),u=bN(n,s);if(i||a){const r=mq(rq(n))?rW(tW({},t),{duration:0}):t;gN({element:n,keyframes:{translate:[`${l.x+i}px ${l.y+a}px ${l.z}`,`${u.x}px ${u.y}px ${u.z}`]},options:r}).then((()=>{e.dragOperation.status.dragging||(this.droppable.shape=void 0)}))}}))}))}get manager(){return this.draggable.manager}set manager(e){Nk((()=>{this.draggable.manager=e,this.droppable.manager=e}))}set element(e){Nk((()=>{const t=uW(this,qW),r=this.droppable.element,n=this.draggable.element;r&&r!==t||(this.droppable.element=e),n&&n!==t||(this.draggable.element=e),dW(this,qW,e)}))}get element(){var e,t;const r=uW(this,qW);if(r)return null!=(t=null!=(e=yq.get(r))?e:r)?t:this.droppable.element}set target(e){this.droppable.element=e}get target(){return this.droppable.element}set source(e){this.draggable.element=e}get source(){return this.draggable.element}get disabled(){return this.draggable.disabled&&this.droppable.disabled}set feedback(e){this.draggable.feedback=e}set disabled(e){Nk((()=>{this.droppable.disabled=e,this.draggable.disabled=e}))}set data(e){Nk((()=>{this.droppable.data=e,this.draggable.data=e}))}set handle(e){this.draggable.handle=e}set id(e){Nk((()=>{this.droppable.id=e,this.draggable.id=e}))}get id(){return this.droppable.id}set sensors(e){this.draggable.sensors=e}set modifiers(e){this.draggable.modifiers=e}set collisionPriority(e){this.droppable.collisionPriority=e}set collisionDetector(e){this.droppable.collisionDetector=null!=e?e:MN}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){Nk((()=>{this.droppable.type=e,this.draggable.type=e}))}get type(){return this.draggable.type}set accept(e){this.droppable.accept=e}get accept(){return this.droppable.accept}get isDropTarget(){return this.droppable.isDropTarget}get isDragSource(){return this.draggable.isDragSource}get isDragging(){return this.draggable.isDragging}get isDropping(){return this.draggable.isDropping}get status(){return this.draggable.status}refreshShape(){return this.droppable.refreshShape()}accepts(e){return this.droppable.accepts(e)}};kW=[,,,V$(null)],DW=new WeakMap,TW=new WeakMap,OW=new WeakMap,LW=new WeakMap,qW=new WeakMap,sW(kW,4,"index",MW,zW,DW),sW(kW,4,"group",IW,zW,LW),((e,t)=>{return eW(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n})(kW,zW);var FW=class extends az{constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}},HW=class extends sz{constructor(e,t,r){super(e,t),this.sortable=r}},$W=Object.defineProperty,WW=Object.defineProperties,BW=Object.getOwnPropertyDescriptors,VW=Object.getOwnPropertySymbols,UW=Object.prototype.hasOwnProperty,GW=Object.prototype.propertyIsEnumerable,YW=(e,t,r)=>t in e?$W(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,KW=(e,t)=>{for(var r in t||(t={}))UW.call(t,r)&&YW(e,r,t[r]);if(VW)for(var r of VW(t))GW.call(t,r)&&YW(e,r,t[r]);return e};function XW(e){const{accept:t,collisionDetector:r,collisionPriority:n,id:o,data:i,element:a,handle:s,index:l,group:u,disabled:c,feedback:d,modifiers:p,sensors:f,target:h,type:m}=e,g=KW(KW({},jW),e.transition),b=function(e){var t;const r=null!=(t=Rz())?t:void 0,[n]=P((()=>e(r)));return n.manager!==r&&(n.manager=r),uz(n.register,[r,n]),n}((t=>new zW(((e,t)=>WW(e,BW(t)))(KW({},e),{transition:g,register:!1,handle:lz(s),element:lz(a),target:lz(h),feedback:d}),t))),v=pz(b,JW);return mz(o,(()=>b.id=o)),uz((()=>{Nk((()=>{b.group=u,b.index=l}))}),[b,u,l]),mz(m,(()=>b.type=m)),mz(t,(()=>b.accept=t),void 0,UD),mz(i,(()=>i&&(b.data=i))),mz(l,(()=>{var e;(null==(e=b.manager)?void 0:e.dragOperation.status.idle)&&(null==g?void 0:g.idle)&&b.refreshShape()}),fz),gz(s,(e=>b.handle=e)),gz(a,(e=>b.element=e)),gz(h,(e=>b.target=e)),mz(c,(()=>b.disabled=!0===c)),mz(f,(()=>b.sensors=f)),mz(r,(()=>b.collisionDetector=r)),mz(n,(()=>b.collisionPriority=n)),mz(d,(()=>b.feedback=null!=d?d:"default")),mz(g,(()=>b.transition=g),void 0,UD),mz(p,(()=>b.modifiers=p),void 0,UD),mz(e.alignment,(()=>b.alignment=e.alignment)),{sortable:v,get isDragging(){return v.isDragging},get isDropping(){return v.isDropping},get isDragSource(){return v.isDragSource},get isDropTarget(){return v.isDropTarget},handleRef:O((e=>{b.handle=null!=e?e:void 0}),[b]),ref:O((e=>{var t,r;(e||!(null==(t=b.element)?void 0:t.isConnected)||(null==(r=b.manager)?void 0:r.dragOperation.status.idle))&&(b.element=null!=e?e:void 0)}),[b]),sourceRef:O((e=>{var t,r;(e||!(null==(t=b.source)?void 0:t.isConnected)||(null==(r=b.manager)?void 0:r.dragOperation.status.idle))&&(b.source=null!=e?e:void 0)}),[b]),targetRef:O((e=>{var t,r;(e||!(null==(t=b.target)?void 0:t.isConnected)||(null==(r=b.manager)?void 0:r.dragOperation.status.idle))&&(b.target=null!=e?e:void 0)}),[b])}}function JW(e,t,r){return!("isDragSource"!==e||r||!t)}const ZW=({invert:e})=>({dragOperation:t,droppable:r})=>{if(!r.shape)return null;const{shape:n}=t;if(!n)return null;const o=function(e){return e.sortable?.index}(r);if(void 0===o)return null;const i=function(e){return e.source.index}(t);if(void 0===i)return null;if(i===o)return null;const a=i<o!==e?"right":"left",{center:s,boundingRectangle:l}=n.current;return"left"===a&&l.left+.3*l.width<=r.shape.center.x||"right"===a&&l.right-.3*l.width>=r.shape.center.x?{id:r.id,value:1/xT.distance(r.shape.center,s),type:DO.Collision,priority:kO.Normal}:null},QW=[B$.configure({element:e=>{const t=e.activatorEvent?.target;return t instanceof HTMLElement?t.closest(".sn-table-head-row"):null}})],eB=(e,t)=>{const{direction:r}=aM(rM,(e=>e.baseProps)),{flags:n}=aM(rM,(e=>e.env)),o=!jF()||!n.isEnabled("TLV-1531_DRAG_AND_DROP_COLUMNS");return XW({id:e.id,disabled:o,index:t,type:"item",accept:"item",group:"column",modifiers:QW,data:e,feedback:"clone",collisionDetector:ZW({invert:"rtl"===r})})},tB=({column:e,columnIndex:t,columnsLength:r})=>{const{interactions:n,rootElement:o,keyboard:i,styleService:a,direction:s}=aM(rM,(e=>e.baseProps)),{columns:l,totalsPosition:u}=aM(rM,(e=>e.tableData)),c=aM(rM,(e=>e.columnWidths[t])),d=aM(rM,(e=>e.baseProps.selectionsAPI?.isModal())),p=iR(QF),f=oR(eH(t)),h=!!n.active&&!d,{open:m,setOpen:g,handleOpenMenu:b,setIsAdjustingWidth:v,toggleSortOrder:y}=k$({isInteractionEnabled:h,column:e}),{ref:x,isDragging:S}=eB(e,t),w=l$(e.id),C=Kz(),E=C?xF:$F,R=e.isActivelySorted?WA[e.sortDirection]:void 0,P=m?rE:void 0,A=m?"true":void 0,I=t===r-1,M=[0,e.pageColIdx],k={width:c,zIndex:l.length-t},D=f&&0===t&&!i.enabled&&h?0:-1;return rr.jsxs(cF,{"data-dragging":S,ref:x,headerStyle:{...a.header,...Xz(a,u,!0),opacity:w},background:C&&m?a.headerMenuActiveBackground:a.header.background,hoverBackground:a.headerMenuHoverBackground,interactions:n,style:k,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${nE}`,tabIndex:D,title:n.passive?e.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:r,handleOpenMenu:n}=e;if(t)switch(r.key){case oE.C:oH(r);break;case oE.Enter:case oE.Space:n?.(r);break;default:iH(e)}else LC(r)})({evt:e,rootElement:o,cellCoord:M,setFocusedCellCoord:p,isInteractionEnabled:h,handleOpenMenu:b,direction:s})},onMouseDown:e=>{(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,keyboard:o,isInteractionEnabled:i})=>{e.preventDefault(),i&&sF(r,t,n,o)})({evt:e,rootElement:o,cellCoord:M,setFocusedCellCoord:p,keyboard:i,isInteractionEnabled:h})},onClick:C?b:y,"aria-sort":R,"aria-controls":P,"aria-expanded":A,"aria-haspopup":"true",children:[rr.jsx(E,{column:e,isInteractionEnabled:h,open:m,setOpen:g,isPagination:!0}),rr.jsx(I$,{column:e,isLastColumn:I,setIsAdjustingWidth:v})]},e.id)},rB=()=>{const{columns:e}=aM(rM,(e=>e.tableData)),{styleService:t,viewService:r,layout:n}=aM(rM,(e=>e.baseProps)),o=iR(S$),i=aM(rM,(e=>e.columnWidths)),a=A(null),s=A$(r,n);return k((()=>{a.current&&o(a.current.getBoundingClientRect().height)}),[t.header.fontSize,i,o,s]),rr.jsx(Qh,{style:{visibility:s?"collapse":void 0},children:rr.jsx(im,{ref:a,className:"sn-table-row sn-table-head-row",style:{position:"sticky",top:0},children:e.map(((t,r)=>rr.jsx(tB,{column:t,columnIndex:r,columnsLength:e.length},t.id)))})})};var nB=N(rB);const oB=e=>{const{pageInfo:t,setPageInfo:r,footerContainer:n,announce:o}=e,{page:i,rowsPerPage:a}=t,{totalColumnCount:s,totalRowCount:l,totalPages:u,paginationNeeded:c,rows:d,columns:p}=aM(rM,(e=>e.tableData)),{rootElement:f,keyboard:h,theme:m,interactions:g,styleService:b,viewService:v,layout:y,rect:x,direction:S}=aM(rM,(e=>e.baseProps)),w=oR(sR),C=aM(rM,(e=>e.showRightBorder)),E=aM(rM,(e=>e.selectionDispatch)),R=aM(rM,(e=>e.baseProps.selectionsAPI?.isModal())),P=A(!1),I=A(null),M=A(null),D=`${w.get("SNTable.Accessibility.RowsAndColumns",[String(d.length),String(p.length)])} ${w.get("SNTable.Accessibility.NavigationInstructions")}`,T=qA(y,v),L=T?v.scrollLeft??0:0,q=T?v.rowPartialHeight??0:0,N=O((()=>{P.current=f.getElementsByTagName("table")[0].contains(document.activeElement)}),[f]),j=O((e=>{r({...t,page:e}),o({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),u.toString()]],politeness:"assertive"})}),[t,r,u,o]),_=O((e=>{r({...t,page:0,rowsPerPage:e}),o({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[o,t,r]);return nH(I,S,v),((e,t)=>{const{keyboard:r}=aM(rM,(e=>e.baseProps));k((()=>{const n=e.current;if(!n)return;const o=e=>{lF(e,t,r)};return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}}),[e,t,r])})(M,P),(()=>{const{rootElement:e,keyboard:t}=aM(rM,(e=>e.baseProps)),r=oR(QF);YC((()=>{const n=eF(e,r);t.active?oF(n):(n?.blur(),nF(e))}),[t.active,e])})(),rH(P,o,i),k((()=>{const e=I.current;e&&(e.scrollLeft=L,e.scrollTop=q)}),[t,l,L,q]),XF((()=>{E({type:$A.UpdatePageRows,payload:{pageRows:d}})}),[d]),tH(),uH(I),rr.jsxs(KF,{children:[rr.jsxs(mF,{ref:M,dir:S,onKeyDown:e=>{sH({evt:e,totalRowCount:l,page:i,rowsPerPage:a,handleChangePage:j,updateShouldRefocus:N,keyboard:h,isSelectionMode:R})},"data-testid":"sn-table",children:[rr.jsx(fH,{}),rr.jsxs(dH,{ref:I,className:"sn-table-container",fullHeight:!!n||!g.active||!c,interactions:g,tabIndex:-1,role:"application","data-testid":"table-container",children:[rr.jsxs(pH,{stickyHeader:!0,"aria-label":D,borderRight:C?`1px solid ${b.grid.border}`:void 0,children:[rr.jsx(nB,{}),rr.jsx(P$,{...e,updateShouldRefocus:N,tableWrapperRef:M})]}),rr.jsx(Yz,{})]}),rr.jsx(Ok,{footerContainer:n,pageInfo:t,paginationNeeded:c,theme:m,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:h,translator:w,interactions:g,rect:x,layout:y,handleChangePage:j,handleChangeRowsPerPage:_,isSelectionMode:R,direction:S})]}),rr.jsx(UF,{isPagination:!0})]})};var iB=N(oB);function aB(){return aB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},aB.apply(null,arguments)}function sB(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lB(e,t){return lB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},lB(e,t)}function uB(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,lB(e,t)}var cB=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function dB(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(n=e[r],o=t[r],!(n===o||cB(n)&&cB(o)))return!1;var n,o;return!0}function pB(e,t){var r;void 0===t&&(t=dB);var n,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}function fB(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}var hB="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function mB(e){cancelAnimationFrame(e.id)}function gB(e,t){var r=hB();var n={id:requestAnimationFrame((function o(){hB()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var bB=-1;function vB(e){if(void 0===e&&(e=!1),-1===bB||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),bB=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return bB}var yB=null;function xB(e){if(void 0===e&&(e=!1),null===yB||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),o=n.style;return o.width="100px",o.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?yB="positive-descending":(t.scrollLeft=1,yB=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),yB}return yB}var SB=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function wB(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=h(n.props,sB(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:sB(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=pB((function(e,t,r,o,i,a,s,l){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})})),n._callOnScroll=void 0,n._callOnScroll=pB((function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,a=n.props,s=a.columnWidth,l=a.direction,u=a.rowHeight,p=n._getItemStyleCache(m&&s,m&&l,m&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=r(n.props,t,n._instanceProps),g="rtl"===l;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(n.props,e,n._instanceProps),height:c(n.props,e,n._instanceProps),width:i(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=pB((function(e,t,r){return{}})),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;n.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,u=i;if("rtl"===t)switch(xB()){case"negative":u=-i;break;case"positive-descending":u=l-o-i}u=Math.max(0,Math.min(u,l-o));var c=Math.max(0,Math.min(a,s-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&mB(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=gB(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}uB(t,e),t.getDerivedStateFromProps=function(e,t){return CB(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=vB();void 0!==n&&(n=Math.max(0,Math.min(n,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=s(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==n?l(this.props,n,r,m,this._instanceProps,x):m,scrollTop:void 0!==o?u(this.props,o,r,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(xB()){case"negative":o.scrollLeft=-r;break;case"positive-ascending":o.scrollLeft=r;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-r}else o.scrollLeft=Math.max(0,r);o.scrollTop=Math.max(0,n)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&mB(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,o=e.direction,i=e.height,l=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?SB:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,w=this._getHorizontalRangeToRender(),C=w[0],E=w[1],R=this._getVerticalRangeToRender(),P=R[0],A=R[1],I=[];if(n>0&&g)for(var M=P;M<=A;M++)for(var k=C;k<=E;k++)I.push(S(t,{columnIndex:k,data:d,isScrolling:v?x:void 0,key:f({columnIndex:k,data:d,rowIndex:M}),rowIndex:M,style:this._getItemStyle(M,k)}));var D=a(this.props,this._instanceProps),T=s(this.props,this._instanceProps);return S(h||m||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:aB({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},S(u||c||"div",{children:I,ref:l,style:{height:D,pointerEvents:x?"none":void 0,width:T}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],s=i[1],l=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],h=c[3];this._callOnItemsRendered(a,s,d,p,l,u,f,h)}if("function"==typeof n){var m=this.state,g=m.horizontalScrollDirection,b=m.scrollLeft,v=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,u=l.horizontalScrollDirection,c=l.isScrolling,d=l.scrollLeft,p=r||i||a||1;if(0===t||0===s)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),h=f(this.props,d,u,this._instanceProps),m=s&&"backward"!==l?1:Math.max(1,c),g=s&&"forward"!==l?1:Math.max(1,c);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,h+g)),d,h]},t}(F),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var CB=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},EB=function(e,t){var r=e.rowCount,n=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},RB=function(e,t){var r=e.columnCount,n=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},PB=function(e,t,r,n){var o,i,a;if("column"===e?(o=n.columnMetadataMap,i=t.columnWidth,a=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=t.rowHeight,a=n.lastMeasuredRowIndex),r>a){var s=0;if(a>=0){var l=o[a];s=l.offset+l.size}for(var u=a+1;u<=r;u++){var c=i(u);o[u]={offset:s,size:c},s+=c}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},AB=function(e,t,r,n){var o,i;return"column"===e?(o=r.columnMetadataMap,i=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=r.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=n?IB(e,t,r,i,0,n):MB(e,t,r,Math.max(0,i),n)},IB=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=PB(e,t,a,r).offset;if(s===i)return a;s<i?o=a+1:s>i&&(n=a-1)}return o>0?o-1:0},MB=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&PB(e,t,n,r).offset<o;)n+=a,a*=2;return IB(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},kB=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=PB(e,t,r,i),u="column"===e?RB(t,i):EB(t,i),c=Math.max(0,Math.min(u-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===n&&(n=o>=d-s&&o<=c+s?"auto":"center"),n){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},DB=wB({getColumnOffset:function(e,t,r){return PB("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return AB("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=PB("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=PB("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:EB,getEstimatedTotalWidth:RB,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return kB("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return kB("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return PB("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return AB("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=PB("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=PB("row",e,u,n).size;return u},initInstanceProps:function(e,t){var r=e,n={columnMetadataMap:{},estimatedColumnWidth:r.estimatedColumnWidth||50,estimatedRowHeight:r.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:r})},t.resetAfterRowIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:r})},t.resetAfterIndices=function(e){var r=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof r&&(n.lastMeasuredColumnIndex=Math.min(n.lastMeasuredColumnIndex,r-1)),"number"==typeof o&&(n.lastMeasuredRowIndex=Math.min(n.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),TB=function(e,t){return e};function OB(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=l(n.props,sB(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:sB(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=pB((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=pB((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,i=n.props,a=i.direction,s=i.itemSize,l=i.layout,c=n._getItemStyleCache(u&&s,u&&l,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=r(n.props,e,n._instanceProps),p=o(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===l,h="rtl"===a,m=f?d:0;c[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=pB((function(e,t,r){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,a=o;if("rtl"===t)switch(xB()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;n.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&mB(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=gB(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}uB(t,e),t.getDerivedStateFromProps=function(e,t){return LB(e,t),c(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?vB():0:l.scrollHeight>l.clientHeight?vB():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},d.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(xB()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&mB(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,r=e.className,o=e.direction,i=e.height,a=e.innerRef,s=e.innerElementType,l=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?TB:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,w=x?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),E=C[0],R=C[1],P=[];if(u>0)for(var A=E;A<=R;A++)P.push(S(t,{data:c,key:p(A,c),index:A,isScrolling:b?y:void 0,style:this._getItemStyle(A)}));var I=n(this.props,this._instanceProps);return S(h||m||"div",{className:r,onScroll:w,ref:this._outerRefSetter,style:aB({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},S(s||l||"div",{children:P,ref:a,style:{height:x?"100%":I,pointerEvents:y?"none":void 0,width:x?I:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,l=n.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,l,this._instanceProps),c=s(this.props,u,l,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(F),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var LB=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},qB=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=t;l++){var u=n(l);o[l]={offset:a,size:u},a+=u}r.lastMeasuredIndex=t}return o[t]},NB=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=qB(e,i,t).offset;if(a===o)return i;a<o?n=i+1:a>o&&(r=i-1)}return n>0?n-1:0},jB=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&qB(e,r,t).offset<n;)r+=i,i*=2;return NB(e,t,Math.min(r,o-1),Math.floor(r/2),n)},_B=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},zB=OB({getItemOffset:function(e,t,r){return qB(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:_B,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,s=e.height,l=e.layout,u=e.width,c="horizontal"===a||"horizontal"===l?u:s,d=qB(e,t,o),p=_B(e,o),f=Math.max(0,Math.min(p-c,d.offset)),h=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=h-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return n>=h&&n<=f?n:n<h?h:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?NB(e,t,o,0,r):jB(e,t,Math.max(0,o),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,l=e.width,u="horizontal"===o||"horizontal"===s?l:i,c=qB(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=qB(e,f,n).size;return f},initInstanceProps:function(e,t){var r={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,n){void 0===n&&(n=!0),r.lastMeasuredIndex=Math.min(r.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),n&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function FB(e,t){for(var r in e)if(!(r in t))return!0;for(var n in t)if(e[n]!==t[n])return!0;return!1}var HB=["style"],$B=["style"];function WB(e,t){var r=e.style,n=fB(e,HB),o=t.style,i=fB(t,$B);return!FB(r,o)&&!FB(n,i)}const BB=UE(-1),VB=ZF((e=>UE((t=>t(BB)===e)))),UB=({style:e})=>rr.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var GB=x.memo(UB,WB);const YB=()=>{},KB=e=>{e.preventDefault()};const XB=({columnIndex:e,rowIndex:t,style:r,data:n})=>{const{rowsInPage:o,columns:i,isHoverEnabled:a,setMeasuredCellHeight:s,lineClamp:l,resizeObserverTaskScheduler:u}=n,c=oR(VB(t)),d=iR(BB),{interactions:p,styleService:f,direction:h}=aM(rM,(e=>e.baseProps)),m=aM(rM,(e=>e.showRightBorder)),g=o[t]?.[e],{handleMouseDown:b,handleMouseOver:v,handleMouseUp:y,cellSelectionState:x}=function(e){const{interactions:t}=aM(rM,(e=>e.baseProps)),r=aM(rM,(e=>e.selectionDispatch)),n="object"==typeof e,o=aM(rM,(t=>n?d$(e,t.selectionState):HA.Inactive)),i=t.active&&t.select;if(n&&i){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=u$(KB,e,r,YB);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(g),S=((e,t,r,n)=>{const o=A(null),i=r&&!r.isNumeric,a=O((r=>{const o=AF(r);o&&i&&n(o,e,t)}),[t,n,e,i]);return IF(o,a),o})(t,e,g,s),w=i[e]?.isDim?f.dimension.values:f.measure.values,C=l$(i[e].id);if("object"==typeof g){const n=((e,t,r,n,o,i)=>{let a=h$(o,i,e);a=p$(a,i,e);const s=!e.isNull&&t.qAttrExprInfoIDs.length?WI(a,e.qAttrExps,t.qAttrExprInfoIDs):a;return n===HA.Selected?{...s,...i.selectedColors}:n===HA.Disabled?{...s,color:r?i.grid.hoverColors?.color:s.color,background:`${eI}, ${r?i.grid.hoverColors?.background:s.background}`}:r?{...s,...i.grid.hoverColors}:s})(g,i[e],a&&c,x,w,f),o={rowindex:t,columnindex:e};return rr.jsx("div",{className:`sn-table-cell ${x} ${nE}`,style:{...r,...n,display:"flex",alignItems:"start",borderColor:f.grid.border,borderTop:"0px",borderBottomWidth:g.isLastRow?"0px":"1px",borderRightWidth:pI(h,g.isLastColumn,m),borderLeftWidth:fI(h,g.isLastColumn,m),justifyContent:lI(g,h),borderStyle:"solid",padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden",textAlign:g.align,opacity:C},onMouseDown:b,onMouseUp:y,onMouseOver:v,onMouseEnter:a?()=>{d(t)}:void 0,onMouseLeave:a?()=>{d(-1)}:void 0,title:p.passive?g.representation.text:void 0,...o,children:rr.jsx(s$,{cellSelectionState:x,children:rr.jsx(o$,{forwardRef:f.contentStaticLineCount||1===l?void 0:S,cell:g,style:n,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:u})})})}return rr.jsx(GB,{style:{...r,...w,borderColor:f.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box",opacity:C}})};var JB=N(XB,WB);const ZB=e=>{const t=A(e);return t.current=e,t},QB=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,eV=(e,t,r,n,o)=>{const i=e[r];if(!i)return!0;for(let e=t;e<t+n;e++){const t=i[e];if(t?.rowIdx!==o)return!0}return!1},tV=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some((e=>!e[t]))},rV=(e,t,r,n,o,i,a,s)=>{e.forEach((e=>{e.qMatrix.forEach(((l,u)=>{const c=e.qArea.qTop-t.page*t.rowsPerPage,{row:d,pageRowIdx:p}=((e,t,r,n,o,i,a,s,l,u)=>{const{qSize:c}=a.qHyperCube,d=n.qTop+r,p=o+r,f=e[p]??[];return t.forEach(((e,t)=>{const r=t+n.qLeft;if(f.at(r))return;const{colIdx:o,isDim:h,isLocked:m,bodyTextAlign:g,selectionColIdx:b,qAttrExprInfoIndex:v,representation:y,conditionalColoring:x,qMiniChart:S}=i[r],w=PA(h,e,a),C=!h&&e.qIsNull,E=C?OP(w):TP(e);f[r]={id:MP(),...e,align:OA(E,g,u),rowIdx:d,colIdx:o,isSelectable:h&&!m,pageRowIdx:p,pageColIdx:r,selectionColIdx:b,isLastRow:d===c.qcy-1,isLastColumn:r===c.qcx-1,isNumeric:E,isNull:(!C||!E)&&RA(e,h),representation:EA({cell:e,representationProperties:y,attrExprInfoIndex:v,env:s,conditionalColoring:x,miniChartOnMeasure:S,getText:()=>C?w:e.qText,direction:u,enabledFeatures:{[OR.Image]:!0,[OR.Indicator]:!0,[OR.MiniChart]:!0}})},l(f[r],d,r)})),{row:f,pageRowIdx:p}})(r,l,u,e.qArea,c,n,o,i,a,s);r[p]=d}))}))},nV=({layout:e,model:t,theme:r,initialDataPages:n,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:s,columns:l,gridState:u,setEstimatedCellHeight:c})=>{const d=aM(rM,(e=>e.env)),{direction:p}=aM(rM,(e=>e.baseProps)),f=A([]),h=O(((t,r)=>{const n=Array.isArray(r)?r.slice(0,i):(e=>Array(e).fill(void 0))(i);return rV(t,o,n,l,e,d,c,p),f.current=n,n}),[i,o,l,e,d,c,p]),[m,g]=P((()=>h(n??[])));YC((()=>{g(h(n??[]))}),[n,p]);const b=((e,t)=>{const r=A(new Set),n=A(new Set),o=A(new Set),i=ZB(e),a=ZB(t),s=R((()=>({enqueue:e=>{const t=QB(e);o.current.has(t)||(r.current.add(e),o.current.add(t),1===r.current.size&&setTimeout((async()=>{const e=Array.from(r.current.values());if(0!==e.length){r.current.clear(),n.current.add(e);try{const t=(e=>{const t=[];return e.forEach((e=>{if(t.length>0){const r=t[t.length-1];((e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth)(r,e)?r.qHeight+=e.qHeight:((e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight)(r,e)?r.qWidth+=e.qWidth:t.push({...e})}else t.push({...e})})),t})(e),r=await i.current(t);n.current.has(e)&&a.current(r)}catch(t){e.forEach((e=>{o.current.delete(QB(e))})),console.error("Failed to fetch pages",t)}finally{n.current.delete(e)}}}),75))},clear:()=>{r.current.clear(),n.current.clear(),o.current.clear()}})),[i,a]);return s})((e=>t&&"getHyperCubeData"in t?t.getHyperCubeData("/qHyperCubeDef",e):Promise.resolve([])),(e=>{g((t=>h(e,t)))})),v=O(((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(tV(f.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};b.enqueue(e)}}),[f,b]),y=O(((e,t,r,n)=>{for(let i=t;i<t+n;i++){const t=Math.max(0,i-o.page*o.rowsPerPage);if(eV(f.current,e,t,r,i)){const t={qLeft:e,qTop:i,qHeight:1,qWidth:r};b.enqueue(t)}}}),[f,b,o]);return k((()=>{const{qcx:t,qcy:r}=e.qHyperCube.qSize,n=u.current.overscanRowStartIndex,i=u.current.overscanColumnStartIndex,l=n+o.page*o.rowsPerPage,c=t-i,d=o.rowsPerPage-n,p=Math.min(100,c,t,s+5),f=Math.min(100,d,r,a+25);return y(i,l,p,f),()=>{b.clear()}}),[e,a,s,o,b,y,u,r]),{rowsInPage:m,loadRows:y,loadColumns:v}},oV=e=>{let t=0;return e.forEach((e=>{e>t&&(t=e)})),t},iV=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,aV=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>{const o=aM(rM,(e=>e.baseProps.styleService)),i=aM(rM,(e=>e.columnWidths)),{estimateLineCount:a}=BC(o.dimension.values),s=JI(o.dimension.values.fontSize),l=e||t||1===r;return O(((e,t,o)=>{if(l||e.representation.type===OR.Image||e.isNumeric)return;const u=(e=>Math.max(0,e-24-1))(i[o]),c=e.representation.text?a({text:e.representation.text,maxWidth:u,isNumeric:!1}):1,d=Math.min(r,Math.max(1,c));n(d*s,t,o)}),[l,i,a,r,s,n])},sV=({isStaticNbrOfLines:e,minRowHeight:t,state:r,staticRowHeight:n=0,viewService:o})=>{L((()=>{const i=e?n:(e=>{let t=0;e.forEach((e=>{t+=e}));const r=0===e.size?0:t/e.size;return Math.ceil(r)})(r.rowHeights);o.estimatedRowHeight=Math.max(i,t)}),[e,t,r,n,o])},lV=({rowCount:e,isSnapshot:t,viewService:r,gridRef:n,pageInfo:o})=>{const{styleService:i}=aM(rM,(e=>e.baseProps)),[a,s]=P({rowHeights:new Map,cellHeightsInGrid:new Map}),l=i.contentLineHeight,u=i.contentMinRowHeight,c=!!i.contentStaticLineCount,d=Math.max(8e6/e,u)-9,p=d+9,f=Math.max(1,Math.min(i.grid.contentLineClamp,Math.round(d/l))),h=(({lineClamp:e,lineHeight:t,isStaticNbrOfLines:r})=>r?t*e+8+1:void 0)({lineClamp:f,lineHeight:l,isStaticNbrOfLines:c});(({gridRef:e,setState:t,pageInfo:r})=>{const{layout:n}=aM(rM,(e=>e.baseProps)),o=aM(rM,(e=>e.columnWidths)),i=n.multiline?.wrapTextInCells,a=n.nullValueRepresentation?.text;YC((()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map})}),[n.qHyperCube.qSize.qcx,n.qHyperCube.qSize.qcy,r.page,i,a]),YC((()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[o])})({gridRef:n,setState:s,pageInfo:o});const m=(({setState:e,maxCellHeight:t,minRowHeight:r,gridRef:n})=>O(((o,i,a)=>{_((()=>{e((e=>{const s=Math.max(r,o+9),l=Math.min(t,s),u=e.cellHeightsInGrid.get(i)??e.cellHeightsInGrid.set(i,new Map).get(i);if(!iV(u.get(a),l))return e;const c={...e};return u.set(a,l),c.rowHeights.set(i,oV(u)),n.current?.resetAfterIndices({columnIndex:a,rowIndex:i,shouldForceUpdate:!1}),c}))}))}),[e,r,t,n]))({maxCellHeight:p,minRowHeight:u,setState:s,gridRef:n}),g=(({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>O(((o,i,a)=>{e||t||1===r||n(o,i,a)}),[e,t,r,n]))({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:m}),b=aV({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:m}),v=O((e=>c?h??u:a.rowHeights.get(e)??u),[c,u,a.rowHeights,h]);return sV({isStaticNbrOfLines:c,minRowHeight:u,state:a,staticRowHeight:h,viewService:r}),{setMeasuredCellHeight:g,setEstimatedCellHeight:b,getRowHeight:v,lineClamp:f}},uV=(e,t)=>{L((()=>()=>{t(0)}),[e,t]);const r=O((e=>{const r=AF(e);void 0!==r&&t(r)}),[t]);IF(e,r)};let cV=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const dV=({layout:e,loadRows:t,loadColumns:r,rowCount:n,pageInfo:o,gridState:i,viewService:a})=>O((({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:u,overscanRowStopIndex:c,visibleColumnStartIndex:d,visibleColumnStopIndex:p,visibleRowStartIndex:f,visibleRowStopIndex:h})=>{const{verticalScrollDirection:m,horizontalScrollDirection:g}=(({overscanColumnStartIndex:e,overscanRowStartIndex:t},r,n)=>{let o=cV.None,i=cV.None;return o=n>t?cV.Down:n<t?cV.Up:cV.None,i=r>e?cV.Right:r<e?cV.Left:cV.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(i.current,s,u);if(i.current.overscanColumnStartIndex=s,i.current.overscanColumnStopIndex=l,i.current.overscanRowStartIndex=u,i.current.overscanRowStopIndex=c,u>n)return;const b=s,v=u+o.page*o.rowsPerPage,y=l-s+1,x=c-u+1;if(a.visibleLeft=d,a.visibleWidth=p-d+1,a.visibleTop=f+o.page*o.rowsPerPage,a.visibleHeight=h-f+1,a.page=o.page,a.rowsPerPage=o.rowsPerPage,m===cV.Down){const e=x+25;t(b,v,y,u+e>n?n-u:e)}else if(m===cV.Up){const e=x+25,r=o.page*o.rowsPerPage,n=Math.max(r,v-25);t(b,n,y,e)}if(g===cV.Right){const t=e.qHyperCube.qSize.qcx-b,n=y+5,o=Math.min(t,n);r(b,v,o,x)}else if(g===cV.Left){const t=Math.max(0,b-5),n=Math.min(e.qHyperCube.qSize.qcx,y+5);r(t,v,n,x)}}),[i,n,o.page,o.rowsPerPage,a,t,e.qHyperCube.qSize.qcx,r]),pV={enabled:!1},fV=()=>{},hV={current:null};const mV=(e,t,r,n,o)=>{const i=Math.min(t.rowsPerPage,e.qHyperCube.qSize.qcy-t.page*t.rowsPerPage),a=Math.min(i,Math.ceil(r.height/o)),s=R((()=>n.reduce(((e,t)=>e.width<r.width?{width:e.width+t,count:e.count+1}:e),{count:0,width:0})),[r,n]).count;return{rowCount:i,visibleRowCount:a,visibleColumnCount:s}},gV=({columnIndex:e,data:t,rowIndex:r})=>{const n=t.rowsInPage[r]?.[e];return n?.id??`${r}-${e}`},bV={overflow:"hidden",willChange:"auto"};var vV=N(q(((e,t)=>{const{rect:r,columns:n,pageInfo:o,setInnerBodyHeight:i,bodyHeight:a}=e,{layout:s,model:l,theme:u,viewService:c,styleService:d,direction:p}=aM(rM,(e=>e.baseProps)),f=aM(rM,(e=>e.columnWidths)),h=aM(rM,(e=>e.initialDataPages)),m=A(null),g=A(null),b=A({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),v=A(0),y=!!zI(s)?.content?.hoverEffect,{rowCount:x,visibleRowCount:S,visibleColumnCount:w}=mV(s,o,r,f,d.contentMinRowHeight),{setMeasuredCellHeight:C,setEstimatedCellHeight:E,getRowHeight:P,lineClamp:I}=lV({rowCount:x,isSnapshot:!!s.snapshotData,viewService:c,gridRef:m,pageInfo:o}),{rowsInPage:M,loadRows:D,loadColumns:T}=nV({layout:s,model:l,theme:u,initialDataPages:h,pageInfo:o,rowCount:x,visibleRowCount:S,visibleColumnCount:w,columns:n,gridState:b,setEstimatedCellHeight:E}),O=dV({layout:s,loadRows:D,loadColumns:T,rowCount:x,pageInfo:o,gridState:b,viewService:c}),q=gH(),N=R((()=>({rowsInPage:M,columns:n,isHoverEnabled:y,lineClamp:I,setMeasuredCellHeight:C,resizeObserverTaskScheduler:q})),[M,n,y,I,C,q]);return L((()=>{1===v.current&&m.current?.scrollToItem({rowIndex:x-1,align:"start"})})),function(e){const{selectionsAPI:t}=aM(rM,(e=>e.baseProps)),r=aM(rM,(e=>e.selectionDispatch));k((()=>{r({type:$A.UpdatePageRows,payload:{pageRows:e}})}),[r,e]),bH({selectionsAPI:t,selectionDispatch:r,updateShouldRefocus:fV,keyboard:pV,tableWrapperRef:hV})}(M),z(t,(()=>({interpolatedScrollTo:(e,t)=>{const r=(g.current?.clientHeight??a)-a,n=Math.round(r*e);v.current=e,1===v.current?(m.current?.scrollToItem({rowIndex:x-1,align:"start"}),m.current?.scrollTo({scrollLeft:t})):m.current?.scrollTo({scrollTop:n,scrollLeft:t})}})),[g,a,x]),uV(g,i),rr.jsx(DB,{"data-key":"body",ref:m,innerRef:g,style:bV,columnCount:s.qHyperCube.qSize.qcx,columnWidth:e=>f[e],height:a,rowCount:x,rowHeight:P,estimatedRowHeight:c.estimatedRowHeight,width:r.width,itemData:N,onItemsRendered:O,itemKey:gV,className:"sn-table-body",direction:p,children:JB})})));const yV=({width:e,height:t,children:r})=>rr.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:r}),xV=(e,t)=>{const r=A(null),n=aM(rM,(e=>e.columnWidths));L((()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)}),[t,r,e,n.length]);const o=O((r=>{const n=AF(r);n&&t(n+9,e)}),[e,t]);return IF(r,o),r},SV=hc("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e})((({interactions:e,hoverBackground:t,background:r,applicableStyle:n})=>({...n,background:r,"&&:hover:not(:has(button:hover))":{background:e.active?t:void 0}}))),wV=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,setMeasuredCellHeight:i}=r,{interactions:a,styleService:s,direction:l}=aM(rM,(e=>e.baseProps)),u=aM(rM,(e=>e.baseProps.selectionsAPI?.isModal())),c=aM(rM,(e=>e.showRightBorder)),d=aM(rM,(e=>e.tableData.totalsPosition)),p=!!a.active&&!u,f=n[e],{open:h,setOpen:m,handleOpenMenu:g,setIsAdjustingWidth:b,toggleSortOrder:v}=k$({isInteractionEnabled:p,column:f}),y=Kz(),x=xV(e,i),S=n.length-1===e,w=y?xF:$F,{ref:C,isDragging:E}=eB(f,e),R=l$(f.id);return rr.jsxs(SV,{"data-dragging":E,ref:C,className:`sn-table-cell ${nE}`,title:a.passive?f.label:void 0,onClick:y?g:v,applicableStyle:{...s.header,...Xz(s,d,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:pI(l,S,c),borderLeftWidth:fI(l,S,c),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:f.headTextAlign,boxSizing:"border-box",zIndex:n.length-e,flexDirection:"right"===f.headTextAlign?"row-reverse":"row",userSelect:"none",opacity:R},interactions:a,hoverBackground:s.headerMenuHoverBackground,background:y&&h?s.headerMenuActiveBackground:s.header.background,children:[rr.jsx(w,{forwardRef:x,column:f,isInteractionEnabled:p,open:h,setOpen:m}),rr.jsx(I$,{column:f,isLastColumn:S,onColumnResize:o,setIsAdjustingWidth:b})]})},CV=e=>{const[t,r]=P(new Map);YC((()=>{r(new Map)}),[e.length]);const n=O(((e,t)=>{r((r=>iV(r.get(t),e)?new Map(r).set(t,e):r))}),[]);return{rowHeight:R((()=>oV(t)),[t]),setMeasuredCellHeight:n}},EV=(e,t)=>{z(e,(()=>({scrollTo:e=>t.current?.scrollTo(e)})),[t])},RV=(e,t,r,n,o)=>{YC((()=>{e.current?.resetAfterIndex(0,!1)}),[t,r,e,n,o])},PV={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},AV=q(((e,t)=>{const{rect:r,columns:n,pageInfo:o,columResizeHandler:i,setHeaderRowHeight:a}=e,s=x.useRef(null),l=A(null),{layout:u,theme:c,styleService:d,direction:p,viewService:f}=aM(rM,(e=>e.baseProps)),h=aM(rM,(e=>e.columnWidths)),{rowHeight:m,setMeasuredCellHeight:g}=CV(n),b=A$(f,u);return EV(t,s),RV(s,u,o,h,c),uV(l,a),rr.jsx(zB,{className:"sn-table-head-row",ref:s,outerRef:l,layout:"horizontal",style:{...PV,...b?{display:"none"}:void 0},itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>h[e],height:Math.max(m+8,d.headerMinRowHeight),width:r.width,itemKey:e=>n[e].id,itemData:{columns:n,columResizeHandler:i,setMeasuredCellHeight:g},direction:p,children:wV})}));var IV=N(AV);const MV=q(((e,t)=>{const{children:r,width:n,height:o,onScroll:i}=e,{interactions:a,direction:s}=aM(rM,(e=>e.baseProps));return rr.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.scroll?"auto":"hidden",width:n,height:o},onScroll:i,dir:s,tabIndex:-1,children:r})})),kV=({children:e,rect:t})=>{const{direction:r}=aM(rM,(e=>e.baseProps));return rr.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"rtl"!==r?"0px":void 0,right:"rtl"===r?"0px":void 0,width:t.width,height:t.height},children:e})},DV=({index:e,style:t,data:r})=>{const{columns:n,totals:o,setMeasuredCellHeight:i}=r,{layout:a,interactions:s,styleService:l,direction:u}=aM(rM,(e=>e.baseProps)),c=aM(rM,(e=>e.showRightBorder)),d=xV(e,i),p=n[e].totalInfo,{totalsTextAlign:f,isTotalNumeric:h}=n[e],m=a.qHyperCube.qSize.qcx-1===e,g=l$(n[e].id);return rr.jsx("div",{className:`sn-table-cell ${nE}`,title:s.passive?p:void 0,style:{...t,...l.totalRow,...Xz(l,o,!1),background:l.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:pI(u,m,c),borderLeftWidth:fI(u,m,c),borderTopWidth:o.atBottom?"1px":"0px",borderBottomWidth:o.atTop?"1px":"0px",padding:"4px 12px",justifyContent:f,textAlign:f,boxSizing:"border-box",cursor:"default",opacity:g},children:rr.jsx(yF,{forwardRef:h?void 0:d,isNumeric:h,children:p})})},TV=q(((e,t)=>{const{rect:r,pageInfo:n,totals:o,columns:i,setTotalsRowHeight:a}=e,s=A(null),l=A(null),{layout:u,theme:c,styleService:d,direction:p}=aM(rM,(e=>e.baseProps)),f=aM(rM,(e=>e.columnWidths)),{rowHeight:h,setMeasuredCellHeight:m}=CV(i);return EV(t,s),RV(s,u,n,f,c),uV(l,a),rr.jsx(zB,{ref:s,outerRef:l,layout:"horizontal",style:PV,itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>f[e],height:Math.max(h,d.totalRowMinHeight),width:r.width,itemData:{columns:i,totals:o,setMeasuredCellHeight:m},direction:p,children:DV})}));var OV=N(TV);const LV=(e,t,r,n,o)=>O((i=>{const{scrollHeight:a,clientHeight:s,scrollTop:l}=i.currentTarget,u=((e,t)=>{const{scrollWidth:r,clientWidth:n,scrollLeft:o}=e,i=r-n;if("rtl"===t){if(o>i)return i;if(o<0)return Math.abs(o)}return o})(i.currentTarget,o),c=Math.max(0,Math.min(1,l/(a-s)));n.scrollTopRatio=c,n.scrollLeft=u,r.current?.interpolatedScrollTo(Number.isNaN(c)?0:c,u),e.current?.scrollTo(u),t.current?.scrollTo(u)}),[n,r,e,t,o]),qV=e=>{const{pageInfo:t}=e,{totalsPosition:r,columns:n,paginationNeeded:o}=aM(rM,(e=>e.tableData)),{layout:i,theme:a,rect:s,viewService:l,direction:u}=aM(rM,(e=>e.baseProps)),c=aM(rM,(e=>e.columnWidths)),d=A(null),p=A(null),f=A(null),h=A(null),m=R((()=>((e,t)=>{const r=e.height-(t?41:0);return{width:e.width,height:r}})(s,o)),[s,o]),g=aM(rM,(e=>e.yScrollbarWidth)),b=aM(rM,(e=>e.xScrollbarWidth)),v=R((()=>((e,t,r)=>({width:e.width-r,height:e.height-t}))(m,b,g)),[m,b,g]),{rowCount:y}=mV(i,t,v,c,0),{headerAndTotalsHeight:x,innerBodyHeight:S,setHeaderRowHeight:w,setTotalsRowHeight:C,setInnerBodyHeight:E}=(()=>{const[e,t]=P(0),[r,n]=P(0),[o,i]=P(0);return{headerAndTotalsHeight:e+r,innerBodyHeight:o,setHeaderRowHeight:t,setTotalsRowHeight:n,setInnerBodyHeight:i}})(),{width:I,height:M}=(({innerBodyHeight:e,headerAndTotalsHeight:t,rowCount:r,stickyContainerRect:n,columnWidths:o})=>{const{styleService:i}=aM(rM,(e=>e.baseProps)),a=e+t;let s=r*i.contentMinRowHeight+t;return a<2*n.height&&(s=a),{width:o.reduce(((e,t)=>e+t),0),height:s}})({innerBodyHeight:S,headerAndTotalsHeight:x,rowCount:y,stickyContainerRect:v,columnWidths:c}),k=LV(p,f,h,l,u),D=((e,t,r)=>Math.min(e.height-t,r))(v,x,S),T=O((()=>{d.current&&(d.current.scrollTop=0)}),[d]);tH(),L((()=>{d.current&&(d.current.scrollLeft=0,d.current.scrollTop=0)}),[n.length]),L((()=>{d.current&&(d.current.scrollTop=0)}),[t,y,a]),uH(d);const q=rr.jsx(OV,{rect:v,pageInfo:t,columns:n,ref:f,totals:r,setTotalsRowHeight:C},"totals");return rr.jsxs(KF,{children:[rr.jsx(MV,{ref:d,width:m.width,height:m.height,onScroll:k,children:rr.jsxs(yV,{width:I,height:M,children:[rr.jsxs(kV,{rect:v,children:[rr.jsx(IV,{rect:v,pageInfo:t,columns:n,ref:p,columResizeHandler:T,setHeaderRowHeight:w}),r.atTop?q:null,rr.jsx(vV,{ref:h,rect:v,pageInfo:t,columns:n,setInnerBodyHeight:E,bodyHeight:D}),r.atBottom?q:null]}),rr.jsx(Yz,{})]})}),rr.jsx(UF,{isPagination:!1})]})};var NV=N(qV);const jV=()=>{const{theme:e,keyboard:t,interactions:r,rect:n,layout:o}=aM(rM,(e=>e.baseProps)),{paginationNeeded:i,totalRowCount:a,totalColumnCount:s,totalPages:l}=aM(rM,(e=>e.tableData)),u=oR(sR),c=aM(rM,(e=>e.pageInfo)),d=aM(rM,(e=>e.setPage));return rr.jsxs(mF,{"data-testid":"sn-table",children:[rr.jsx(NV,{pageInfo:c}),rr.jsx(Ok,{paginationNeeded:i,handleChangePage:e=>{d(e)},pageInfo:c,totalRowCount:a,totalColumnCount:s,totalPages:l,keyboard:t,translator:u,theme:e,interactions:r,rect:n,layout:o})]})};var _V=N(jV);var zV={SNTable_Accessibility_Ascending:{id:"SNTable.Accessibility.Ascending",locale:{"de-DE":"Aufsteigend","en-US":"Ascending","es-ES":"Ascendente","fr-FR":"Croissant","it-IT":"Crescente","ja-JP":"昇順","ko-KR":"오름차순","nl-NL":"Oplopend","pl-PL":"Rosnąco","pt-BR":"Crescente","ru-RU":"По возрастанию","sv-SE":"Stigande","tr-TR":"Artan","zh-CN":"升序","zh-TW":"遞增"}},SNTable_Accessibility_ColumnOptions:{id:"SNTable.Accessibility.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбцов","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},SNTable_Accessibility_Descending:{id:"SNTable.Accessibility.Descending",locale:{"de-DE":"Absteigend","en-US":"Descending","es-ES":"Descendente","fr-FR":"Décroissant","it-IT":"Decrescente","ja-JP":"降順","ko-KR":"내림차순","nl-NL":"Aflopend","pl-PL":"Malejąco","pt-BR":"Decrescente","ru-RU":"По убыванию","sv-SE":"Fallande","tr-TR":"Azalan","zh-CN":"降序","zh-TW":"遞減"}},SNTable_Accessibility_NavigationInstructions:{id:"SNTable.Accessibility.NavigationInstructions",locale:{"de-DE":"Verwenden Sie die Pfeiltasten, um zwischen den Tabellenzellen zu navigieren, und die Tabulatortaste, um zu den Paginierungssteuerelementen zu wechseln. Drücken Sie die Leertaste in den Kopfzellen, um das Spaltenmenü zu öffnen, und drücken Sie die Leertaste in den Körperzellen, um eine Auswahl zu treffen. Duch die Auswahl wird der Seiteninhalt aktualisiert. Die vollständige Liste der Navigationssteuerungen finden Sie in der Dokumentation.","en-US":"Use arrow keys to navigate between table cells and tab to move to pagination controls. Press space on header cells to open the column menu, press space on body cells to make selections. Selections will cause content on the page to be updated. The full list of navigation controls can be found in the documentation.","es-ES":"Utilice las teclas de flecha para desplazarse entre las celdas de la tabla y la pestaña a fin de pasar a los controles de paginación. Pulse la barra espaciadora en las celdas del encabezado para abrir el menú de columnas; pulse la barra espaciadora en las celdas del cuerpo para realizar selecciones. Las selecciones harán que se actualice el contenido de la página. Encontrará la lista completa de controles de navegación en la documentación.","fr-FR":"Utilisez les touches fléchées pour naviguer parmi les cellules du tableau et la tabulation pour accéder aux commandes de pagination. Appuyez sur la touche Espace dans les cellules d'en-tête pour ouvrir le menu de la colonne. Appuyez sur Espace dans les cellules de corps pour effectuer une sélection. Les sélections actualiseront le contenu de la page. Vous pouvez consulter la liste complète des commandes de navigation dans la documentation.","it-IT":"Utilizzare i tasti freccia per navigare tra le celle della tabella e il tasto TAB per passare ai controlli di paginazione. Premere lo spazio nelle celle dell'intestazione per aprire il menu della colonna; premere lo spazio nelle celle del corpo per effettuare selezioni. Le selezioni determineranno l'aggiornamento del contenuto della pagina. È possibile trovare l'elenco completo dei controlli di navigazione nella documentazione.","ja-JP":"矢印キーで表のセル間を移動し、タブ キーでページネーション コントロールに移動します。ヘッダー セルでスペースを押すと列メニューが開き、ボディ セルでスペースを押すと選択ができます。選択によって、ページのコンテンツが更新されます。ナビゲーション コントロールの全リストは、ドキュメントをご覧ください。","ko-KR":"화살표 키를 사용하여 표 셀 사이를 탐색하고, 탭을 사용하여 페이지 번호 컨트롤로 이동하십시오. 헤더 셀에서 스페이스바를 눌러 열 메뉴를 열고, 본문 셀에서 스페이스바를 눌러 선택하십시오. 선택하면 페이지의 콘텐츠가 업데이트됩니다. 전체 탐색 컨트롤 목록은 설명서에서 확인할 수 있습니다.","nl-NL":"Gebruik de pijltjestoetsen om te navigeren tussen tabelcellen en de Tab-toets om naar besturingselementen voor paginering te gaan. Druk op de spatietoets in koptekstcellen om het kolommenu te openen, druk op de spatietoets in hoofdtekstcellen om selecties te maken. Door selecties te maken, wordt de inhoud op de pagina bijgewerkt. De volledige lijst met besturingselementen voor navigatie vindt u in de documentatie.","pl-PL":"Użyj klawiszy strzałek do poruszania się między komórkami tabeli oraz tabulatora do poruszania się po elementach sterujących stronami. Naciśnij klawisz spacji na komórkach nagłówka, aby otworzyć menu kolumny i naciśnij go na komórkach treści, aby dokonać wyborów. Wybory będą powodować aktualizację zawartości na stronie. Pełną listę nawigacyjnych elementów sterujących można znaleźć w dokumentacji.","pt-BR":"Use as teclas de seta para navegar entre as células da tabela e a tecla Tab para mover para os controles de paginação. Pressione espaço nas células do cabeçalho para abrir o menu da coluna, pressione espaço nas células do corpo para fazer seleções. As seleções farão com que o conteúdo da página seja atualizado. A lista completa de controles de navegação pode ser encontrada na documentação.","ru-RU":"Используйте клавиши со стрелками для перемещения между ячейками таблицы и клавишу табуляции для перехода к элементам управления разбивки на страницы. Нажмите пробел на ячейках заголовка, чтобы открыть меню столбца; нажмите пробел на ячейках тела, чтобы сделать выборки. Выборки приведут к обновлению содержимого страницы. Полный перечень элементов управления навигацией см. в документации.","sv-SE":"Använd piltangenterna för att navigera mellan tabellcellerna och tabbtangenten för att flytta till pagineringskontrollerna. Tryck på mellanslag på rubrikceller för att öppna kolumnmenyn och tryck på mellanslag på innehållsceller för att göra urval. Med urval kommer innehåll på sidan att uppdateras. Den fullständiga listan med navigeringsreglage.","tr-TR":"Tablo hücreleri arasında gezinmek için ok tuşlarını, sayfalandırma kontrollerine geçmek için sekmeyi kullanın. Sütun menüsünü açmak için başlık hücrelerinde boşluğa basın, seçim yapmak için gövde hücrelerinde boşluğa basın. Seçimler, sayfadaki içeriğin güncellenmesine neden olur. Navigasyon kontrollerinin tam listesi belgede bulunabilir.","zh-CN":"使用箭头键在表格单元格之间导航,使用 tab 键移动到分页控件。按标题单元格上的空间打开列菜单,按正文单元格上的空间进行选择。选择将导致页面上的内容更新。导航控件的完整列表可以在文档中找到。","zh-TW":"使用方向鍵以在表格儲存格之間導覽,並使用 Tab 以前往分頁控制。按下標頭儲存格的空白處可開啟欄功能表,按下正文儲存格的空白處可進行選取。選項將會造成更新頁面上的內容。導覽控制的完整清單可見於文件中。"}},SNTable_Accessibility_RowsAndColumns:{id:"SNTable.Accessibility.RowsAndColumns",locale:{"de-DE":"Es werden {0} Zeilen und {1} Spalten angezeigt.","en-US":"Showing {0} rows and {1} columns.","es-ES":"Mostrando {0} filas y {1} columnas.","fr-FR":"Affichage de {0} lignes et de {1} colonnes.","it-IT":"Visualizzazione di {0} righe e {1} colonne.","ja-JP":"{0} 行 {1} 列を表示しています。","ko-KR":"{0}개의 행과 {1}개의 열을 표시합니다.","nl-NL":"{0} rijen en {1} kolommen worden getoond.","pl-PL":"Wyświetlane wiersze: {0} i kolumny: {1}.","pt-BR":"Mostrando {0} linhas e {1} colunas.","ru-RU":"Показаны строки ({0}) и столбцы ({1}).","sv-SE":"Visar {0} rader och {1} kolumner.","tr-TR":"{0} satır ve {1} sütun gösteriliyor.","zh-CN":"正在显示 {0} 行,{1} 列。","zh-TW":"顯示 {0} 列和 {1} 欄。"}},SNTable_MenuItem_AdjustColumnSize:{id:"SNTable.MenuItem.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},SNTable_MenuItem_ClearSelections:{id:"SNTable.MenuItem.ClearSelections",locale:{"de-DE":"Auswahl löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Selecties wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},SNTable_MenuItem_Search:{id:"SNTable.MenuItem.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},SNTable_MenuItem_SelectAll:{id:"SNTable.MenuItem.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},SNTable_MenuItem_SelectAlternative:{id:"SNTable.MenuItem.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},SNTable_MenuItem_SelectExcluded:{id:"SNTable.MenuItem.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},SNTable_MenuItem_SelectPossible:{id:"SNTable.MenuItem.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},SNTable_MenuItem_Selections:{id:"SNTable.MenuItem.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},SNTable_MenuItem_SortAscending:{id:"SNTable.MenuItem.SortAscending",locale:{"de-DE":"Sortierung in aufsteigender Reihenfolge","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Tri par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},SNTable_MenuItem_SortDescending:{id:"SNTable.MenuItem.SortDescending",locale:{"de-DE":"Sortierung in absteigender Reihenfolge","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Tri par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},SNTable_Pagination_DisplayedRowsLabel:{id:"SNTable.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{1}의 {0}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},SNTable_Pagination_FirstPage:{id:"SNTable.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},SNTable_Pagination_LastPage:{id:"SNTable.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},SNTable_Pagination_NextPage:{id:"SNTable.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},SNTable_Pagination_PageStatusReport:{id:"SNTable.Pagination.PageStatusReport",locale:{"de-DE":"Die Seite wurde geändert. Seite {0} von {1} wird angezeigt.","en-US":"Page has changed. Showing page {0} of {1}.","es-ES":"La página ha cambiado. Mostrando página {0} de {1}.","fr-FR":"La page a changé. Affichage de la page {0} sur {1}.","it-IT":"La pagina è cambiata. Visualizzazione pagina {0} di {1}.","ja-JP":"ページが変更されました。{1} ページ中の {0} ページ目を表示しています。","ko-KR":"페이지가 변경되었습니다. {1}의 {0} 페이지를 보여 줍니다.","nl-NL":"Pagina is gewijzigd. Pagina {0} van {1} wordt weergeven.","pl-PL":"Strona się zmieniła Wyświetlanie strony {0} z {1}.","pt-BR":"A página mudou. Mostrando página {0} de {1}.","ru-RU":"Страница изменилась. Показана страница {0} из {1}.","sv-SE":"Sidan har ändrats. Visar sida {0} av {1}.","tr-TR":"Sayfa değişti. Sayfa {0} / {1} gösteriliyor.","zh-CN":"页面已更改。显示页面 {0} / {1}。","zh-TW":"頁面已變更。顯示第 {0} 頁,共 {1} 頁。"}},SNTable_Pagination_PreviousPage:{id:"SNTable.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},SNTable_Pagination_RowsPerPage:{id:"SNTable.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},SNTable_Pagination_RowsPerPageChange:{id:"SNTable.Pagination.RowsPerPageChange",locale:{"de-DE":"Zeilen pro Seite wurden in {0} geändert. Jetzt wird die erste Seite angezeigt.","en-US":"Rows per page has changed to {0}. Now showing the first page.","es-ES":"El número de filas por página ha cambiado a {0}. Mostrando ahora la primera página.","fr-FR":"Le nombre de lignes par page a été remplacé par {0}. Affichage en cours de la première page.","it-IT":"Le righe per pagina sono cambiate a {0}. Viene ora mostrata la prima pagina.","ja-JP":"ページあたりの行数が {0} に変更されました。現在、最初のページを表示しています。","ko-KR":"페이지당 행 수가 {0}(으)로 변경되었습니다. 이제 첫 페이지를 보여 줍니다.","nl-NL":"Aantal rijen per pagina is gewijzigd naar {0}. De eerste pagina wordt nu weergegeven.","pl-PL":"Liczba wierszy na stronę została zmieniona na {0}. Wyświetlana jest pierwsza strona.","pt-BR":"Linhas por página mudou para {0}. Agora mostrando a primeira página.","ru-RU":"Количество строк на странице изменилось на {0}. Теперь отображается первая страница.","sv-SE":"Rader per sida har ändrats till {0}. Nu visas första sidan.","tr-TR":"Sayfa başına satır sayısı {0} olarak değiştirildi. Şimdi ilk sayfa gösteriliyor.","zh-CN":"每页行数已更改为 {0}。现在显示第一页。","zh-TW":"每頁列數已變更為 {0}。現在顯示第一頁。"}},SNTable_Pagination_SelectPage:{id:"SNTable.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}},SNTable_SelectionLabel_DeselectedValue:{id:"SNTable.SelectionLabel.DeselectedValue",locale:{"de-DE":"Die Werteauswahl ist aufgehoben.","en-US":"Value is deselected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur est désélectionnée.","it-IT":"Il valore è deselezionato.","ja-JP":"値が選択解除されました。","ko-KR":"값이 선택 취소되었습니다.","nl-NL":"Selectie van waarde opgeheven.","pl-PL":"Wartość nie jest zaznaczona.","pt-BR":"O valor está desmarcado.","ru-RU":"Выбор значения отменен.","sv-SE":"Val av värde har tagits bort.","tr-TR":"Değer seçimi iptal edildi.","zh-CN":"值已取消选择。","zh-TW":"值已取消選取。"}},SNTable_SelectionLabel_ExitedSelectionMode:{id:"SNTable.SelectionLabel.ExitedSelectionMode",locale:{"de-DE":"Die Werteauswahl ist aufgehoben. Auswahlmodus beendet.","en-US":"Value is deselected. Exited selection mode.","es-ES":"El valor no está seleccionado. Salió del modo de selección.","fr-FR":"La valeur est désélectionnée. Mode de sélection désactivé.","it-IT":"Il valore è deselezionato. Uscita dalla modalità selezione.","ja-JP":"値が選択解除されました。選択モードを終了しました。","ko-KR":"값이 선택 취소되었습니다. 선택 모드를 종료했습니다.","nl-NL":"Selectie van waarde opgeheven. Selectiemodus afgesloten.","pl-PL":"Wartość nie jest zaznaczona. Zakończono tryb wyboru.","pt-BR":"O valor está desmarcado. Modo de seleção encerrado.","ru-RU":"Выбор значения отменен. Выполнен выход из режима выборки.","sv-SE":"Val av värde har tagits bort. Lämnade urvalsläge.","tr-TR":"Değer seçimi iptal edildi. Seçim modundan çıkıldı.","zh-CN":"值已取消选择。已退出选择模式。","zh-TW":"值已取消選取。輸入的選取模式。"}},SNTable_SelectionLabel_NotSelectedValue:{id:"SNTable.SelectionLabel.NotSelectedValue",locale:{"de-DE":"Wert ist nicht ausgewählt.","en-US":"Value is not selected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur n'est pas sélectionnée.","it-IT":"Il valore non è selezionato.","ja-JP":"値が選択されていません。","ko-KR":"값이 선택되지 않았습니다.","nl-NL":"Waarde is niet geselecteerd.","pl-PL":"Wartość nie jest wybrana.","pt-BR":"O valor não está selecionado.","ru-RU":"Значение не выбрано.","sv-SE":"Värdet är inte valt.","tr-TR":"Değer seçilmedi.","zh-CN":"未选择值。","zh-TW":"未選取值。"}},SNTable_SelectionLabel_OneSelectedValue:{id:"SNTable.SelectionLabel.OneSelectedValue",locale:{"de-DE":"Aktuell ist ein Wert ausgewählt.","en-US":"Currently there is one selected value.","es-ES":"Actualmente hay un valor seleccionado.","fr-FR":"Actuellement, une valeur est sélectionnée.","it-IT":"Attualmente è presente un solo valore selezionato.","ja-JP":"現在、値が 1 つ選択されています。","ko-KR":"현재 하나의 값이 선택되었습니다.","nl-NL":"Er is momenteel één waarde geselecteerd.","pl-PL":"Aktualnie jest jedna wybrana wartość.","pt-BR":"Atualmente, há um valor selecionado.","ru-RU":"В настоящее время выбрано одно значение.","sv-SE":"Just nu är ett värde valt.","tr-TR":"Şu anda seçili bir değer var.","zh-CN":"当前有一个已选择的值。","zh-TW":"目前有一個選取的值。"}},SNTable_SelectionLabel_SelectedValue:{id:"SNTable.SelectionLabel.SelectedValue",locale:{"de-DE":"Wert ist ausgewählt.","en-US":"Value is selected.","es-ES":"El valor está seleccionado.","fr-FR":"La valeur est sélectionnée.","it-IT":"Il valore è selezionato.","ja-JP":"値が選択されました。","ko-KR":"값이 선택되었습니다.","nl-NL":"Waarde is geselecteerd.","pl-PL":"Wartość jest wybrana.","pt-BR":"O valor está selecionado.","ru-RU":"Значение выбрано.","sv-SE":"Värdet är valt.","tr-TR":"Değer seçildi.","zh-CN":"已选择值。","zh-TW":"已選取值。"}},SNTable_SelectionLabel_SelectedValues:{id:"SNTable.SelectionLabel.SelectedValues",locale:{"de-DE":"Aktuell sind {0} Werte ausgewählt.","en-US":"Currently there are {0} selected values.","es-ES":"Actualmente hay {0} valores seleccionados.","fr-FR":"Actuellement, {0} valeurs sont sélectionnées.","it-IT":"Attualmente sono presenti {0} valori selezionati.","ja-JP":"現在、値が {0} つ選択されています。","ko-KR":"현재 {0}개의 값이 선택되었습니다.","nl-NL":"Er zijn momenteel {0} geselecteerde waarden.","pl-PL":"Liczba aktualnie wybranych wartości: {0}.","pt-BR":"Atualmente, há {0} valores selecionados.","ru-RU":"В настоящее время выбраны значения: {0}.","sv-SE":"Just nu är {0} värden valda.","tr-TR":"Şu anda seçili {0} değer var.","zh-CN":"当前有 {0} 个已选择的值。","zh-TW":"目前有 {0} 個選取的值。"}},SNTable_SelectionLabel_SelectionsConfirmed:{id:"SNTable.SelectionLabel.SelectionsConfirmed",locale:{"de-DE":"Auswahl bestätigt.","en-US":"Selections confirmed.","es-ES":"Confirmadas las selecciones.","fr-FR":"Sélections confirmées.","it-IT":"Selezioni confermate.","ja-JP":"選択が確定されました。","ko-KR":"선택 내용이 확인되었습니다.","nl-NL":"Selecties bevestigd.","pl-PL":"Potwierdzono wybory.","pt-BR":"Seleções confirmadas.","ru-RU":"Выборки подтверждены.","sv-SE":"Valen har bekräftats.","tr-TR":"Seçimler onaylandı.","zh-CN":"选择已确认。","zh-TW":"選項已確認。"}},SNTable_SelectionLabel_selected:{id:"SNTable.SelectionLabel.selected",locale:{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбрано","sv-SE":"Urval","tr-TR":"Seçildi","zh-CN":"已选择","zh-TW":"已選取"}},SNTable_SortLabel_PressSpaceToSort:{id:"SNTable.SortLabel.PressSpaceToSort",locale:{"de-DE":"Drücken Sie die Leertaste, um nach dieser Spalte zu sortieren","en-US":"Press space to sort on this column","es-ES":"Pulse la barra espaciadora para ordenar en esta columna.","fr-FR":"Appuyez sur Espace pour trier en fonction de cette colonne.","it-IT":"Premere la barra spaziatrice per ordinare questa colonna","ja-JP":"スペース キーを押して、この列をソートします","ko-KR":"이 열을 정렬하려면 스페이스바를 누르십시오.","nl-NL":"Druk op de spatiebalk om sorteren in deze kolom in te schakelen","pl-PL":"Naciśnij spację, aby posortować według tej kolumny","pt-BR":"Pressione espaço para classificar por esta coluna","ru-RU":"Нажмите пробел, чтобы отсортировать по этому столбцу","sv-SE":"Tryck på Blanksteg om du vill sortera efter den här kolumnen","tr-TR":"Bu sütunda sıralama yapmak için boşluk tuşuna basın.","zh-CN":"按下空格键以在该列上排序。","zh-TW":"在此欄按下空格鍵以進行排序"}},SNTable_SortLabel_SortedAscending:{id:"SNTable.SortLabel.SortedAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortiert.","en-US":"Sorted in ascending order.","es-ES":"Ordenado por orden ascendente.","fr-FR":"Tri dans l'ordre croissant.","it-IT":"Ordinato in ordine crescente.","ja-JP":"昇順で並べ替えられます。","ko-KR":"오름차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in oplopende volgorde.","pl-PL":"Posortowane rosnąco.","pt-BR":"Classificado em ordem crescente.","ru-RU":"Сортировка в порядке возрастания.","sv-SE":"Sorterat i stigande ordning.","tr-TR":"Artan düzende sıralanmıştır.","zh-CN":"已按升序排列。","zh-TW":"已依遞增順序排序。"}},SNTable_SortLabel_SortedDescending:{id:"SNTable.SortLabel.SortedDescending",locale:{"de-DE":"In absteigender Reihenfolge sortiert.","en-US":"Sorted in descending order.","es-ES":"Ordenado por orden descendente.","fr-FR":"Tri dans l'ordre décroissant.","it-IT":"Ordinato in ordine decrescente.","ja-JP":"降順で並べ替えられます。","ko-KR":"내림차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in aflopende volgorde.","pl-PL":"Posortowane malejąco.","pt-BR":"Classificado em ordem decrescente.","ru-RU":"Сортировка в порядке убывания.","sv-SE":"Sorterat i fallande ordning.","tr-TR":"Azalan düzende sıralanmıştır.","zh-CN":"已按降序排列。","zh-TW":"已依遞減順序排序。"}}};const FV=(t,r)=>{const n=r.get(sR);return e((()=>(function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(zV).forEach((t=>{e.add(zV[t])}))}(n),((e,t)=>{let r;return({keys:n,politeness:o="polite"})=>{const i=n.map((e=>{if(Array.isArray(e)){const[r,...n]=e;return t.get(r,n)}return t.get(e)})).join(" "),a=e.querySelector(`.${BA.First}`),s=e.querySelector(`.${BA.Second}`);if(!a||!s)return void console.error("could not find aria-live elements, which means accessibility is not working properly");let l;r===BA.First?(l=s,r=BA.Second):(l=a,r=BA.First),l.innerHTML=l.innerHTML.endsWith(" ")?i:`${i} `,l.setAttribute("aria-live",o)}})(t,n))),[t,n.language()])},HV={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},$V=(e,r)=>{const{model:i,rootElement:a,layout:s,reactRoot:l,isFontLoaded:u,viewService:c,env:d}=e,{direction:p,footerContainer:f}=t(),h=NA(s,c),m=FV(a,r),[g,b]=n(((e,t)=>qA(e,t)?{page:t.page||HV.page,rowsPerPage:t.rowsPerPage||HV.rowsPerPage,rowsPerPageOptions:HV.rowsPerPageOptions}:HV)(s,c)),[v,y]=HC((async()=>h?async function(e,t,r,n,o,i,a,s){const{page:l,rowsPerPage:u,rowsPerPageOptions:c}=r,d=t.qHyperCube.qSize.qcx,p=t.qHyperCube.qSize.qcy,f=Math.ceil(p/u),h=o.visibleTop??l*u,m=o.visibleHeight??Math.min(u,p-h);if(l>0&&h>=p)return n({...r,page:0}),null;if(m*d>AA)return n({...r,rowsPerPage:IA(d,c),page:0}),null;const g=p>10,b=MA(t,o),v=LA(t,a,s),y=!!t.snapshotData,x=await(async(e,t,r)=>{if(t.snapshotData)return t.qHyperCube.qDataPages;const n=t.qHyperCube.qDataPages.at(0),o=n?.qArea;return n&&o?.qLeft===r.qLeft&&o.qTop===r.qTop&&o.qWidth===r.qWidth&&o.qHeight>=r.qHeight?[{...n,qMatrix:n.qMatrix.slice(0,r.qHeight)}]:e&&"getHyperCubeData"in e?e.getHyperCubeData("/qHyperCubeDef",[r]):[]})(e,t,{qLeft:0,qTop:h,qHeight:m,qWidth:d});y||(o.qTop=h,o.qHeight=m,o.rowsPerPage=r.rowsPerPage,o.page=r.page);const S=x.at(0)?.qMatrix.map(((e,r)=>{const n=[];return v.forEach(((o,l)=>{const u=e[l],c=PA(o.isDim,u,t),d=!o.isDim&&u.qIsNull,p=d?OP(c):TP(u);n[l]={id:MP(),...u,align:OA(p,o.bodyTextAlign,s,a),rowIdx:r+h,colIdx:o.colIdx,pageRowIdx:r,pageColIdx:l,selectionColIdx:o.selectionColIdx,isSelectable:o.isDim&&!o.isLocked,isLastRow:r===m-1,isNumeric:p,isNull:(!d||!p)&&RA(u,o.isDim),representation:EA({cell:u,representationProperties:o.representation,attrExprInfoIndex:o.qAttrExprInfoIndex,env:i,conditionalColoring:o.conditionalColoring,miniChartOnMeasure:o.qMiniChart,getText:()=>d?c:u.qText,direction:s,enabledFeatures:{[OR.Image]:!0,[OR.Indicator]:!0,[OR.MiniChart]:!0}})}})),n}))??[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}(i,s,g,b,c,d,!0,p):null),[s,g,i,h,p]);o((()=>{h&&e.model&&e.changeSortOrder&&v&&u&&!y&&function(e,t,r){const{direction:n,...o}=e,i=sM(n);t.render(rr.jsx(mi,{stylisPlugins:"rtl"===n?[FA]:void 0,children:rr.jsx(gc,{theme:i,children:rr.jsx(ZE,{store:r,children:rr.jsx(iM,{...e,children:rr.jsx(iB,{...o})})})})}))}({...e,model:e.model,changeSortOrder:e.changeSortOrder,tableData:v,pageInfo:g,setPageInfo:b,direction:p,footerContainer:f,announce:m},l,r)}),[m,p,f,u,g,l,e,h,v,y,r])},WV=(t,r)=>e((()=>((e,t)=>{if(t)return async(r,n)=>{if(!("getEffectiveProperties"in t))return;const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:s,isActivelySorted:l}=r,u=o?i:i-e,c=await t.getEffectiveProperties(),d=c.qHyperCubeDef.qInterColumnSortOrder,p=[],f=n!==s||l;if(!o){const e=c.qHyperCubeDef.qMeasures.at(u)?.qSortBy;void 0===e?.qSortByNumeric&&p.push({qPath:`/qHyperCubeDef/qMeasures/${u}/qSortBy`,qOp:"Replace",qValue:JSON.stringify({...e,qSortByNumeric:"A"===s?1:-1})})}l||(d.splice(d.indexOf(i),1),d.unshift(i),p.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${d.join(",")}]`})),f&&p.push({qPath:`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${u}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),t.applyPatches(p,!0)}})(t.qDimensionInfo.length,r)),[t.qDimensionInfo.length,r]);const BV=({model:e,layout:t,shouldRender:r,page:n})=>{const[o,i]=HC((async()=>{if(r&&e)return(async(e,t,r)=>{const{qDataPages:n}=t.qHyperCube;if(0!==r||0===n.length){const n=r*Math.min(SI,t.qHyperCube.qSize.qcy);if(e&&"getHyperCubeData"in e)return e.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:n,qWidth:50,qHeight:100}])}return[...n]})(e,t,n)}),[e,t,n]);return{initialDataPages:o,isLoading:i}},VV=(t,r)=>{const{layout:i,model:a,keyboard:s,interactions:l,reactRoot:u,isFontLoaded:c,viewService:d,direction:p}=t,f=!NA(i,d),[h,m]=n(!1);h&&m(!1);const g=e((()=>function(e,t,r,n,o){const i=LA(e,o,n),a=MA(e,r),s=e.qHyperCube.qSize.qcy,l=Math.min(SI,s),u=s>SI&&!!t.active;return{totalsPosition:a,columns:i,rows:[],totalRowCount:s,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(s/l),paginationNeeded:u}}(i,l,d,p,h)),[i,l,d,p,h]),{pageInfo:b,setPage:v}=((t,r)=>{const[o,i]=n(0),a=Math.min(SI,t.qHyperCube.qSize.qcy),s=e((()=>({page:o,rowsPerPage:a,rowsPerPageOptions:[]})),[a,o]);if(r){const e=Math.floor(t.qHyperCube.qSize.qcy/SI);e<o&&i(e)}return{pageInfo:s,setPage:i}})(i,f),{initialDataPages:y,isLoading:S}=BV({model:a,layout:i,page:b.page,shouldRender:f});o((()=>{f&&s.active&&s.blur?.(!1)}),[s,f]),o((()=>{f&&t.model&&t.changeSortOrder&&y&&!S&&c&&function(e,t,r){const{direction:n}=e,o=sM(n);t.render(rr.jsx(x.StrictMode,{children:rr.jsx(gc,{theme:o,children:rr.jsx(ZE,{store:r,children:rr.jsx(iM,{...e,children:rr.jsx(_V,{})})})})}))}({...t,model:t.model,changeSortOrder:t.changeSortOrder,tableData:g,pageInfo:b,setPage:v,initialDataPages:y},u,r)}),[y,c,S,b,u,t,v,f,g,r])},UV={version:JSON.stringify("6.5.6"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals"},usePagination:!1,components:[]};function GV(e,t){const r=e.getElementsByClassName("sn-table-container")[0];if(!r)return{};const n=r.getBoundingClientRect(),o=e.getElementsByClassName("sn-table-head-row")[0],i=o?.getBoundingClientRect()??{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],s=a?.getBoundingClientRect()??{height:0},l=e.getElementsByClassName("sn-table-data-row"),u={top:n.y+i.height+(t.atTop?s.height:0),bottom:n.y+n.height-(t.atBottom?s.height:0)},c=((e,t)=>{if(!e)return-1;for(let r=0;r<e.length;r++)if(e[r].getBoundingClientRect().bottom>t.top)return r;return-1})(l,u),d=((e,t)=>{if(!e)return-1;for(let r=e.length-1;r>-1;r--){const n=e[r].getBoundingClientRect();if(t.bottom>n.top)return r}return-1})(l,u),p=((e,t,r)=>{if(!e||0===e.length||r<0)return 0;const n=e[r].getBoundingClientRect();return Math.max(t.top-n.top,0)})(l,u,c);return{visibleRowStartIndex:c,visibleRowEndIndex:d,rowPartialHeight:p}}const YV=(e,t)=>{if(t)for(let r=0;r<t.length;r++){const n=t[r].getAttribute("rowindex");if(n&&parseInt(n,10)===e)return t[r]}},KV=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const XV=(e,t,r,n)=>{if(e<0)return 0;const o=r.qHyperCube.qSize.qcy,i=n.rowsPerPage||HV.rowsPerPage,a=n.viewState?.isMultiPage?0:3;return Math.min(o,i,e-t+1+a)},JV=(e,t,r)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const n=MA(e,t);if(NA(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=GV(r,n);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:XV(i,o,e,t),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}}const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1}=function(e,t){const r=e.querySelector(".sn-table-body"),n=r?.getBoundingClientRect(),o=r?.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!n)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:s=0,page:l=0,rowsPerPage:u=0}=t,c=l*u,d=a-c,p=d+s-1,f=YV(d,o),h=f?.getBoundingClientRect();if(!f||!h)return{};const m=n.y;if(1-i<.001)return{visibleRowStartIndex:d+(h.y>=m-4?0:1)+c,visibleRowEndIndex:p+c};const g=n.y+n.height,b=(KV(h,m,g)?d:d+1)+c;let v=p+c;const y=YV(p,o),x=y?.getBoundingClientRect();return y&&x&&(KV(x,m,g)||(v=p-1+c)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(r,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:o,visibleHeight:XV(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}},ZV=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),QV=e=>e.getStyle("object","straightTableV2","backgroundColor");function eU(r){return{qae:{properties:{initial:UV},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:e=>PR({...e}),exportProperties:xR,exploration:AR},ext:SP(r),component(){const n=e((()=>KE()),[]),i=c(),y=(t=>{const r=e((()=>VC(t)),[t]);return o((()=>()=>{r.unmount()}),[r]),r})(i),x=d();n.set(aR,p());const S=f(),w=(e=>{const t=a();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}})(!!x.snapshotData);n.set(sR,h());const C=m(),E=g(),R=t(),{freeResize:P}=R,A=b(),I=e((()=>x.snapshotData?.content&&!P?{...A,...x.snapshotData.content.size}:A),[A,P,x.snapshotData?.content]),M=(r=>{const{viewState:n}=t();return e((()=>((e,t)=>({qTop:0,qHeight:0,rowPartialHeight:t?.content?.rowPartialHeight??0,visibleTop:t?.content?.visibleTop??e?.visibleTop,visibleHeight:t?.content?.visibleHeight??e?.visibleHeight,scrollLeft:t?.content?.scrollLeft??e?.scrollLeft??0,scrollTopRatio:t?.content?.scrollTopRatio??e?.scrollTopRatio,rowsPerPage:t?.content?.rowsPerPage??e?.rowsPerPage,page:t?.content?.page??e?.page,viewState:e,estimatedRowHeight:t?.content?.estimatedRowHeight??0}))(n,r.snapshotData)),[n,r.snapshotData,r.usePagination])})(x),k=v(),D=FC(x,i,ZV,QV),T=R.direction,O=WV(x.qHyperCube,S),L=wP(x.qHyperCube,S),q=((e,t,r)=>{const[,n,o]=HC((async()=>{const t=ye(r.flags),n=e.getStyle("","","fontFamily"),o=e.getStyle("object","label.name","fontFamily"),i=e.getStyle("object","label.value","fontFamily"),a=e.getStyle("","","fontFamilies")??[];return Promise.all([...t,...a,n,o,i,GC].filter((e=>void 0!==e)).map((async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)})))}),[t,e,r]);return o?(console.warn("Failed to load fonts:",o),!0):!n})(D,x,r),N=Tt(),j=e((()=>new JC),[]),_={layout:x,model:S,rect:I,theme:D,keyboard:E,interactions:w,selectionsAPI:C,changeSortOrder:O,rootElement:i,embed:k,reactRoot:y,applyColumnWidths:L,isFontLoaded:q,downloadService:N,viewService:M,direction:T,env:r,eventEmitter:j};s?.(((e,t)=>{const r=t.target,n=r?.closest(`.${nE}`);n?.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",id:"copy-cell-context-item",select:async()=>{fE(n)}})})),(({layout:e,viewService:t,model:r,rootElement:n,contentRect:o})=>{l((async i=>{const a=i;if(!a.snapshotData||!r||a.snapshotData.content)return a;if("getHyperCubeData"in r){const{rowPartialHeight:i,scrollLeft:s,scrollTopRatio:l,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:h}=JV(e,t,n);a.qHyperCube.qDataPages=await r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:d,qWidth:e.qHyperCube.qSize.qcx,qHeight:p}]),a.snapshotData.content={rowPartialHeight:i,scrollLeft:s,scrollTopRatio:l,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:h,size:{width:o.width,height:o.height},estimatedRowHeight:t.estimatedRowHeight}}return a})),u((()=>({getViewState:()=>JV(e,t,n)})),[e,t,n])})({layout:x,viewService:M,model:S,rootElement:i,contentRect:A}),VV(_,n),$V(_,n)}}}export{eU as default};
|
|
121
|
+
*/!function(e,t){var r;function n(e,t){var r=[],n=0;function o(e){return r.push(e),t}function i(){return r[n++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}r=new function(){var e="`TMP`",t="`COMMENT`",r="[^\\u0020-\\u007e]",o="(?:[0-9]*\\.[0-9]+|[0-9]+)",i="direction\\s*:\\s*",a="['\"]?\\s*",s="(^|[^a-zA-Z])",l="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",u="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",c="(?:[_a-z0-9-]|"+r+"|"+u+")",d=o+"(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|"+("-?"+("(?:[_a-z]|"+r+"|"+u+")")+c+"*")+")?",p="((?:-?"+d+")|(?:inherit|auto))",f="(#?"+c+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",h="(?:[!#$%&*-~]|"+r+"|"+u+")*?",m="(?![a-zA-Z])",g="(?!("+c+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",b="(?!"+h+a+"\\))",v="(?="+h+a+"\\))",y="(\\s*(?:!important\\s*)?[;}])",x=/`TMP`/g,S=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),w=new RegExp("("+l+g+"[^;}]+;?)","gi"),C=new RegExp("("+l+"[^\\}]*?})","gi"),E=new RegExp("("+i+")ltr","gi"),R=new RegExp("("+i+")rtl","gi"),P=new RegExp(s+"(left)"+m+b+g,"gi"),A=new RegExp(s+"(right)"+m+b+g,"gi"),I=new RegExp(s+"(left)"+v,"gi"),M=new RegExp(s+"(right)"+v,"gi"),k=new RegExp(s+"(ltr)"+v,"gi"),D=new RegExp(s+"(rtl)"+v,"gi"),T=new RegExp(s+"([ns]?)e-resize","gi"),O=new RegExp(s+"([ns]?)w-resize","gi"),L=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+p+"(\\s+)"+p+"(\\s+)"+p+"(\\s+)"+p+y,"gi"),q=new RegExp("((?:-color|border-style)\\s*:\\s*)"+f+"(\\s+)"+f+"(\\s+)"+f+"(\\s+)"+f+y,"gi"),N=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+d+")","gi"),j=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),_=new RegExp("(border-radius\\s*:\\s*)"+p+"(?:(?:\\s+"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?)?(?:(?:(?:\\s*\\/\\s*)"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?(?:\\s+"+p+")?)?"+y,"gi"),z=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+p,"gi"),F=new RegExp("(text-shadow\\s*:\\s*)"+p+"(\\s*)"+f,"gi"),H=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+p,"gi"),$=new RegExp("(text-shadow\\s*:\\s*)"+p,"gi"),W=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+p+"(\\s*\\))","gi"),B=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+p+"((?:\\s*,\\s*"+p+"){0,2}\\s*\\))","gi");function V(e,t,r){var n,o;return"%"===r.slice(-1)&&(-1!==(n=r.indexOf("."))?(o=r.length-n-2,r=(r=100-parseFloat(r)).toFixed(o)+"%"):r=100-parseFloat(r)+"%"),t+r}function U(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function G(e,t){var r=[].slice.call(arguments),n=r.slice(2,6).filter((function(e){return e})),o=r.slice(6,10).filter((function(e){return e})),i=r[10]||"";return t+(o.length?U(n)+" / "+U(o):U(n))+i}function Y(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function K(e,t,r){return t+Y(r)}function X(e,t,r,n,o){return t+r+Y(n)+o}function J(e,t,r,n,o){return t+r+n+Y(o)}return{transform:function(r,o){var i=new n(w,"`NOFLIP_SINGLE`"),a=new n(C,"`NOFLIP_CLASS`"),s=new n(S,t);return r=s.tokenize(a.tokenize(i.tokenize(r.replace("`","%60")))),o.transformDirInUrl&&(r=r.replace(k,"$1"+e).replace(D,"$1ltr").replace(x,"rtl")),o.transformEdgeInUrl&&(r=r.replace(I,"$1"+e).replace(M,"$1left").replace(x,"right")),r=r.replace(E,"$1"+e).replace(R,"$1ltr").replace(x,"rtl").replace(P,"$1"+e).replace(A,"$1left").replace(x,"right").replace(T,"$1$2"+e).replace(O,"$1$2e-resize").replace(x,"w-resize").replace(_,G).replace(z,K).replace(F,J).replace(H,J).replace($,K).replace(W,X).replace(B,X).replace(L,"$1$2$3$8$5$6$7$4$9").replace(q,"$1$2$3$8$5$6$7$4$9").replace(N,V).replace(j,V),r=i.detokenize(a.detokenize(s.detokenize(r)))}}},e.exports?t.transform=function(e,t,n){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof n&&(o.transformEdgeInUrl=n)),r.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=r)}(jA,jA.exports);var _A=Vt(jA.exports);function zA(e,t,r){switch(e.type){case Xr:case Kr:case Gr:return e.return=e.return||e.value;case Yr:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===Gr&&(e.children=e.value)}))}var n=zn(Array.prototype.concat(e.children),zA);return ln(n)?e.return=e.value+"{"+n+"}":""}function FA(e,t,r,n){if(e.type===Jr||"@supports"===e.type||e.type===Yr&&(!e.parent||"@media"===e.parent.type||e.parent.type===Yr)){var o=_A.transform(zA(e));e.children=o?On(o)[0].children:[],e.return=""}}Object.defineProperty(FA,"name",{value:"stylisRTLPlugin"});let HA=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),$A=function(e){return e.Select="Select",e.SelectMouseDown="SelectMouseDown",e.SelectMouseUp="SelectMouseUp",e.SelectMultiAdd="SelectMultiAdd",e.SelectMultiEnd="SelectMultiEnd",e.Reset="Reset",e.Clear="Clear",e.UpdatePageRows="UpdatePageRows",e}({}),WA=function(e){return e.A="ascending",e.D="descending",e}({}),BA=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const VA=[0,0],UA=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),GA=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},YA=(e,t,r)=>{const n={previousColor:(o=e.localPaletteColors)[(i=t)-(i>0?1:0)],nextColor:o[i+(i<o.length-1?1:0)]};var o,i;const a=((e,t)=>{const r=e.limits&&e.limits.concat().sort(((e,t)=>e.value-t.value));return{lowerLimit:r&&t>0?r[t-1]:{value:0,gradient:!1},upperLimit:r&&r[t]?r[t]:{value:1,gradient:!1}}})(e,t),s=((e,t,r,n,o)=>{const{upperLimit:i,lowerLimit:a}=e,{previousColor:s,nextColor:l}=t,u=n===i.value?1:(n-a.value)/(i.value-a.value);return a.gradient&&i.gradient?n-a.value<i.value-n?{color:s.color,t:.5-u}:{color:l.color,t:u-.5}:a.gradient?{color:s.color,t:1-(.5+u/2)}:i.gradient?{color:l.color,t:u/2}:{color:o.localPaletteColors[r].color,t:n}})(a,n,t,r,e);return s&&ne(e.localPaletteColors[t].color).blend(ne(s.color),s.t)},KA=(e,t,r)=>{const n=((e,t)=>{const{limits:r}=e;return r&&(e.limits=r.sort(((e,t)=>e.value-t.value)),e.limits=r.map((e=>({...e,value:UA(t,e.value)})))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map(((e,t)=>({color:GA(n,t,r)})))),n},XA=(e,t,r,n)=>{const o=KA(e,r,n),{localPaletteColors:i}=o;if(t<=0)return i[0].color;if(t>=1)return i[i.length-1].color;const a=((e,t)=>{let r="",n=0;const{limits:o,localPaletteColors:i}=e;for(let a=0;a<i.length;a++){const i=o&&o[a]?o[a].value:1;if(t>=n&&t<i){r=YA(e,a,t);break}n=i}return r})(o,t);return a},JA=(e,t)=>{const r=(e=>e.map((e=>e.value??e)).sort(((e,t)=>e-t)))(e),n=r.some((e=>!DP(e)));return 0===r.length||n?(e=>{const t=0===e?0:.5*e;return{min:e-t,max:e+t}})(t):1===r.length?((e,t)=>{const r=e[0]-t;if(0===r||!DP(r)){const e=0===t?.5:Math.abs(.5*t);return{min:t-e,max:t+e}}return r>0?{min:t-.5*Math.abs(t),max:e[0]+2*r}:{min:e[0]+2*r,max:t+.5*Math.abs(t)}})(r,t):((e,t)=>{let r=e[e.length-1]-e[0];return r=r>0?r:1,{min:Math.min(t,e[0])-r/2,max:Math.max(t,e[e.length-1])+r/2}})(r,t)},ZA=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=JA(e,t),o=Math.abs(t);return{min:r??t-o,max:n??t+o}})(r,t),o=((e,t,r)=>{const{limits:n,paletteColors:o,localPaletteColors:i}=e.segments;if(!n||!DP(t))return 0;let a=r&&DP(r)?Math.min(r,t):0;const s=n.sort(((e,t)=>e.value-t.value)),l=o||i;for(let e=0;e<l.length;e++){if(e===l.length-1||t<s[e].value&&t>=a)return e;a=s[e].value}return 0})(e,t,n.min);return{limitRange:n,limitPaletteColorIndex:o}},QA=(e,t,r,n)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=ZA(o,t),a=((e,t,r,n)=>{const{segments:o}=e;if(!o||!r)return;const{limits:i}=o;if(!i?.length||!((e,t)=>!(!e||0===e.length||!(e[t]?.gradient??e[t-1]?.gradient)))(i,r.limitPaletteColorIndex))return GA(o,r.limitPaletteColorIndex,n);const a=UA(r.limitRange,t);return XA(o,a,r.limitRange,n)})(o,t,i,n),s=o.segments.paletteColors[i?.limitPaletteColorIndex||0].icon,{indicator:l}=e;let u=l?.position||"right";return"rtl"===r&&(u="right"===u?"left":"right"),{color:a,iconKey:s,position:u}},eI=(RC().palette.primary.light,"repeating-linear-gradient(-45deg, rgba(200,200,200,0.08), rgba(200,200,200,0.08) 2px, rgba(200,200,200,0.3) 2.5px, rgba(200,200,200,0.08) 3px, rgba(200,200,200,0.08) 5px)"),tI=4/3,rI="12px",nI="600",oI="Source Sans Pro, sans-serif",iI={height:"auto",fontSize:rI,lineHeight:"unset",padding:"4px",borderStyle:"solid",borderWidth:"0px 1px 1px 0px",userSelect:"none",outline:"none","&:focus-visible":{boxShadow:"0 0 0 2px #177fe6 inset, 0 0 0 3px #fff inset"},"&:focus:not(:focus-visible)":{boxShadow:"none"},"&:last-child":{borderRightWidth:"0px"}},aI={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:nI},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},sI=(e,t)=>"rtl"===e&&"center"!==t.resolvedImagePosition?.horizontal?t.resolvedImagePosition?.horizontal&&(e=>"flex-start"===e?"flex-end":"flex-start")(t.resolvedImagePosition?.horizontal):t.resolvedImagePosition?.horizontal,lI=(e,t)=>e.representation.type===OR.Image&&"fitHeight"===e.representation.imageSize?sI(t,e.representation):e.align,uI=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",cI=(e,t,r)=>{if(!t&&"rtl"===r){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},dI=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,pI=(e,t,r)=>"rtl"===e||t&&!r?"0px":"1px",fI=(e,t,r)=>"rtl"===e?t&&!r?"0px":"1px":"0px",hI=24,mI=hc("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0}))),gI=hc(op,{shouldForwardProp:e=>!["textAlign","direction","isPagination"].includes(e)})((({textAlign:e,theme:t,direction:r,isPagination:n})=>({textAlign:e,height:"auto",padding:t.spacing(.5,1),display:"flex",alignItems:"flex-end",justifySelf:e,alignSelf:"center",flexDirection:"rtl"===r?uI(e,n):void 0}))),bI=hc(op,{shouldForwardProp:e=>"shouldShowMenuIcon"!==e&&"shouldShowLockIcon"!==e&&"alignment"!==e})((({shouldShowMenuIcon:e,shouldShowLockIcon:t,alignment:r})=>{const n=e?"24px":"";let o;switch(r){case"left":o={gridTemplateColumns:t?`20px 2fr ${n}`:`1fr ${n}`};break;case"center":{const r=e||t;o={gridTemplateColumns:r?"24px 2fr 24px":"1fr","& .sn-table-lock-icon":{gridColumn:1},"& .sn-table-head-label":{gridColumn:r?2:1},[`& .${eE}`]:{gridColumn:3}};break}case"right":o={gridTemplateColumns:t?`${n} 2fr 20px`:`${n} 1fr`,"& .sn-table-lock-icon":{gridColumn:t?3:"unset"},"& .sn-table-head-label":{gridColumn:e?2:"span 2"},[`& .${eE}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}})),vI=hc(op,{shouldForwardProp:e=>"rightAligned"!==e})((({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"}))),yI=hc(op,{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"}))),xI=hc(hd,{shouldForwardProp:e=>"hoverBackground"!==e&&"activeBackground"!==e&&"isActive"!==e&&"order"!==e})((({hoverBackground:e,activeBackground:t,isActive:r,order:n})=>({padding:"4px !important",width:"fit-content",height:"auto",background:r?t:void 0,"&:hover":{background:e},color:"inherit",order:n}))),SI=25e4,wI=(e,t,r)=>{if(!e.length)return[];const n=[],o=[];let i=t;if(e.forEach(((e,a)=>{const{columnWidth:{type:s,pixels:l,percentage:u},label:c,qApprMaxGlyphCount:d,totalInfo:p}=e;let f=0;const h=()=>{n[a]=Math.min(aE.PixelsMax,Math.max(aE.PixelsMin,f)),i-=n[a]};switch(s){case sE.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?aE.PixelsDefault:+e)(l),h();break;case sE.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?aE.PercentageDefault:+e)(u)/100*t,h();break;case sE.FitToContent:e.representation?.type===OR.Image?o.push(a):(f=r(c,p,d,e.isLocked,e.isActivelySorted,e.isDim,e.isCyclic),h());break;case sE.Auto:o.push(a);break;default:throw new Error(`${s} is not a valid column width type`)}})),o.length){const e=i/o.length;o.forEach((t=>{n[t]=Math.max(aE.AutoMinTable,e)}))}return n},CI=(e,t,r)=>{const n=r.size,o=n>=t.size;if(n){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===n?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",n.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},EI=(e,t,r)=>{r&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},RI=e=>e.ctrlKey||e.metaKey,PI=e=>e.shiftKey&&RI(e),AI=e=>[oE.Left,oE.Right,oE.Up,oE.Down].includes(e),II=e=>e.shiftKey&&AI(e.key),MI=e=>(e=>AI(e)||[oE.Home,oE.End,oE.PageUp,oE.PageDown].includes(e))(e.key)&&!PI(e),kI=(e,t)=>{const{api:r,rows:n,colIdx:o}=e,{cell:i,announce:a,evt:s}=t;let l=new Map;if(-1===o)r?.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;l=new Map(n)}return l=((e,t,r)=>{const{qElemNumber:n,rowIdx:o}=t;return r.ctrlKey||r.metaKey?(new Map).set(n,o):(e.has(n)?e.delete(n):e.set(n,o),new Map(e))})(l,i,s),CI(a,n,l),l.size?(r?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(l.values()),[i.selectionColIdx]]}),{...e,rows:l,colIdx:i.selectionColIdx}):(r?.cancel(),{...e,rows:l,colIdx:-1})},DI=(e,t)=>{const{api:r,rows:n,colIdx:o,pageRows:i,firstCell:a}=e,{cell:s,announce:l,evt:u}=t;if(!(a||"key"in u&&II(u)))return e;-1===o&&r?.begin(["/qHyperCubeDef"]);const c=((e,t,r,n,o)=>{const i=new Map(t);if("key"in n&&II(n)){i.set(r.qElemNumber,r.rowIdx);const t=n.key===oE.Down?1:-1,o=e[r.pageRowIdx+t][r.pageColIdx];return i.set(o.qElemNumber,r.rowIdx+t),i}if(!o)return t;const a=Math.min(o.pageRowIdx,r.pageRowIdx),s=Math.max(o.pageRowIdx,r.pageRowIdx);for(let t=a;t<=s;t++){const r=e[t][o.pageColIdx];i.set(r.qElemNumber,r.rowIdx)}return i})(i,n,s,u,a);return CI(l,n,c),{...e,rows:c,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},TI=e=>{const{api:t,rows:r,colIdx:n,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&t?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(r.values()),[n]]}),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},OI=(e,t)=>{switch(t.type){case $A.Select:return kI(e,t.payload);case $A.SelectMouseDown:return((e,{cell:t,mouseupOutsideCallback:r})=>!r||-1!==e.colIdx&&e.colIdx!==t.selectionColIdx?e:(document.addEventListener("mouseup",r),{...e,firstCell:t,mouseupOutsideCallback:r}))(e,t.payload);case $A.SelectMouseUp:return((e,t)=>TI(e.isSelectMultiValues||e.firstCell!==t.cell?e:kI(e,t)))(e,t.payload);case $A.SelectMultiAdd:return DI(e,t.payload);case $A.SelectMultiEnd:return TI(e);case $A.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case $A.Clear:return e.rows.size?{...e,rows:new Map}:e;case $A.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},LI=4/3,qI=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function NI(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const jI=(e,t)=>e?{borderBottomColor:AC.DARK_MODE_BORDER,borderRightColor:AC.DARK_MODE_BORDER,borderLeftColor:AC.DARK_MODE_BORDER,borderTopColor:AC.DARK_MODE_BORDER}:{borderLeftColor:AC.BORDER_MEDIUM,borderRightColor:AC.BORDER_MEDIUM,borderTopColor:AC.BORDER_HEAVY,borderBottomColor:t?AC.BORDER_HEAVY:AC.BORDER_LIGHT},_I=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*LI+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},zI=e=>e.components?.find((e=>"theme"===e.key)),FI=(e,t,r,n=!1)=>{const o=t.getStyle("object",`straightTableV2.${e}`,"fontFamily"),i=t.getStyle("object",`straightTableV2.${e}`,"color"),a=t.getStyle("object",`straightTableV2.${e}`,"fontSize"),s={fontFamily:o,color:qI(r?.fontColor)?NI(AC.TEXT,t,r?.fontColor):i||AC.TEXT,fontSize:r?.fontSize&&`${r.fontSize}px`||a,padding:r&&"padding"in r?r.padding:void 0,...jI(t.background.isDark,n)};return Object.keys(s).forEach((e=>{const t=e;null==s[t]&&delete s[t]})),s};function HI(e,t,r){const n=zI(e)?.header,o=FI("header",t,n,r);return o.background=(e=>{if(void 0===e)return;const t=ne(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),o.hoverBackground=kC(o.background??AC.WHITE,lE),o.activeBackground=kC(o.background??AC.WHITE,uE),o}const $I=(e,t)=>{const r=e.toLowerCase().match(/<[^>]+>/g)??[];return r.forEach((e=>(e=>e in aI)(e)&&Object.assign(t,aI[e]))),t};function WI(e,t,r){const n={};let o={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return t?.qValues?.forEach(((e,t)=>{const i=e.qText,a=i&&TC(i);a&&"none"!==a&&(n[r[t]]=a),o=i?$I(i,o):o})),n.cellBackgroundColor&&!n.cellForegroundColor&&(n.cellForegroundColor=IC(n.cellBackgroundColor)),{...e,...n,color:n.cellForegroundColor||e.color,background:n.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}}const BI=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},VI=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=BI(e,t?.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},UI=(e,t,r,n=AC.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=VI(e,t,r);return jC(i,o,a,n)??n},GI=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return rI}},YI=e=>e?.some((e=>"italic"===e))?"italic":"normal",KI=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?nI:"normal",XI=e=>!1===e?1:3,JI=e=>parseInt(e??iI.fontSize,10)*tI,ZI=e=>e?.some((e=>"underline"===e))?"underline":"none",QI=(e,t,r,n,o)=>{const{header:i,dimensionValues:a,measureValues:s,totalValues:l,nullValues:u,grid:c,content:d}=zI(t)??{},p=NA(t,o)?AC.WHITE:AC.TRANSPARENT,f=UI(n,i,"object.straightTableV2.dimension.label.name.backgroundColor",p),h=o.viewState?.maxLineCount??d?.rowHeight??n.getStyle("object.straightTableV2","grid","lineClamp"),m={header:{fontFamily:i?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.name","fontFamily")??r.head.fontFamily??oI,fontSize:GI(i?.fontSize??n.getStyle("object.straightTableV2.dimension","label.name","fontSize")??r.head.fontSize),fontStyle:YI(i?.fontStyle),fontWeight:KI(i?.fontStyle,nI),textDecoration:ZI(i?.fontStyle),color:BI(n,i?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.name","color")??r.head.color??AC.TEXT,background:f},headerMenuHoverBackground:kC(f,lE),headerMenuActiveBackground:kC(f,uE),dimension:{values:{fontFamily:a?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??r.body.fontFamily??oI,fontSize:GI(a?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.dimension","label.value","fontSize")??r.body.fontSize),fontStyle:YI(a?.fontStyle),fontWeight:KI(a?.fontStyle,"normal"),textDecoration:ZI(a?.fontStyle),color:BI(n,a?.fontColor)??BI(n,d?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.value","color")??r.body.color??AC.TEXT,background:VI(n,a,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??r.body.background??AC.TRANSPARENT}},measure:{values:{fontFamily:s?.fontFamily??n.getStyle("object.straightTableV2.measure","label.value","fontFamily")??r.body.fontFamily??oI,fontSize:GI(s?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.measure","label.value","fontSize")??r.body.fontSize),fontStyle:YI(s?.fontStyle),fontWeight:KI(s?.fontStyle,"normal"),textDecoration:ZI(s?.fontStyle),color:BI(n,s?.fontColor)??BI(n,d?.fontColor)??n.getStyle("object.straightTableV2.measure","label.value","color")??r.body.color??AC.TEXT,background:VI(n,s,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??r.body.background??AC.TRANSPARENT}},totalRow:{fontFamily:l?.fontFamily??n.getStyle("object.straightTableV2.total","label.value","fontFamily")??r.totals.fontFamily??oI,fontSize:GI(l?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.total","label.value","fontSize")??r.totals.fontSize),fontStyle:YI(l?.fontStyle),fontWeight:KI(l?.fontStyle,nI),textDecoration:ZI(l?.fontStyle),color:BI(n,l?.fontColor)??BI(n,d?.fontColor)??n.getStyle("object.straightTableV2.total","label.value","color")??r.totals.color??AC.TEXT,background:UI(n,l,"object.straightTableV2.total.label.value.backgroundColor",p)},nullValues:{fontStyle:YI(u?.fontStyle),fontWeight:KI(u?.fontStyle,"normal"),textDecoration:ZI(u?.fontStyle),color:BI(n,u?.fontColor)??BI(n,d?.fontColor)??n.getStyle("object.straightTableV2.null","label.value","color")??r.body.color??AC.TEXT,background:BI(n,u?.background)??n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??AC.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:h??XI(t.multiline?.wrapTextInCells),headerLineClamp:XI(t.multiline?.wrapTextInHeaders),border:BI(n,c?.border)??n.getStyle("object.straightTableV2","grid","borderColor")??(n.background.isDark?AC.DARK_MODE_BORDER:AC.BORDER_MEDIUM),divider:BI(n,c?.divider)??n.getStyle("object.straightTableV2.grid","","divider.borderColor")??AC.BORDER_HEAVY,hoverColors:{color:BI(n,d?.hoverFontColor)??n.getStyle("object.straightTableV2","","grid.hover.color")??r.body.hoverColors?.color,background:BI(n,d?.hoverColor)??n.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??r.body.hoverColors?.background},zebraStripes:{show:!!c?.zebraStripes?.show,odd:{color:BI(n,c?.zebraStripes?.color?.odd),background:BI(n,c?.zebraStripes?.background?.odd)},even:{color:BI(n,c?.zebraStripes?.color?.even),background:BI(n,c?.zebraStripes?.background?.even)},overrideNullValueBackground:void 0===BI(n,u?.background),overrideNullValueColor:void 0===BI(n,u?.fontColor)},lastRowBottomBorder:r.body.lastRowBottomBorder},selectedColors:MC(n),headerMinRowHeight:0,totalRowLineHeight:0,totalRowMinHeight:0,contentLineHeight:0,contentMinRowHeight:0,contentStaticLineCount:h},{headerMinRowHeight:g,totalRowLineHeight:b,totalRowMinHeight:v,contentLineHeight:y,contentMinRowHeight:x}=(e=>{const t=Math.max(JI(e.header.fontSize)+8,32),r=JI(e.totalRow.fontSize),n=Math.max(r+8+1,24),o=Math.max(JI(e.dimension.values.fontSize),JI(e.measure.values.fontSize)),i=(e.contentStaticLineCount||1)*o;return{headerMinRowHeight:t,totalRowLineHeight:r,totalRowMinHeight:n,contentLineHeight:o,contentMinRowHeight:Math.max(i+8+1,24)}})(m);return m.headerMinRowHeight=g,m.totalRowLineHeight=b,m.totalRowMinHeight=v,m.contentLineHeight=y,m.contentMinRowHeight=x,m},eM=(e,t,r,n)=>{const o=R((()=>{const o=r.totalsPosition.atTop,i=function(e,t,r,n){const o=zI(e)?.content,i=FI("content",t,o);i.background=t.background.color;const a=_I(i.fontSize,r,n),s=o?.hoverColor,l=o?.hoverFontColor,u=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),c=t.getStyle("object","","straightTableV2.content.hover.color"),d=qI(l)||!!c,p=qI(s)||!!u,f=d||p;let h;h=qI(s)?NI(AC.HOVER,t,s):u||(d?"":AC.HOVER);const m=f?NI(IC(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(e,t,r.rows.length,n),a=HI(e,t,!o),s=function(e,t,r){const n=zI(e)?.content,o=FI("content",t,n),{borderBottomColor:i,borderTopColor:a,background:s}=HI(e,t,r);return{...o,borderBottomColor:i,background:s,borderTopColor:a}}(e,t,o);return{body:i,head:a,totals:s}}),[e,t,r,n]);return o},tM=new Map;const rM=I({}),nM=function(e){const t=I([()=>{},new Set]);return tM.set(e,t),({children:r,value:n})=>{const o=A(n),i=A(new Set);k((()=>{o.current=n,i.current.forEach((e=>{e(n)}))}),[n]);const a=O((()=>o.current),[o]),s=R((()=>[a,i.current]),[a]);return rr.jsx(e.Provider,{value:n,children:rr.jsx(t.Provider,{value:s,children:r})})}}(rM),oM={rows:[],columns:[],totalsPosition:{}},iM=({children:e,tableData:t=oM,selectionsAPI:r,layout:n,model:o,interactions:i,theme:a,keyboard:s,rootElement:l,embed:u,changeSortOrder:c,applyColumnWidths:d,setPage:p,pageInfo:f,initialDataPages:h,rect:m,viewService:g,downloadService:b,env:v,direction:y,eventEmitter:x})=>{const[S,w]=((e,t)=>{const[r,n]=M(OI,{pageRows:e,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1});return[r,n]})(t.rows,r),C=eM(n,a,t,l),E=((e,t,r,n,o)=>R((()=>QI(0,t,r,n,o)),[t,r,e,n,o]))(v,n,C,a,g),{xScrollbarWidth:A,yScrollbarWidth:I,setXScrollbarWidth:k,setYScrollbarWidth:D}=(()=>{const[e,t]=P(0),[r,n]=P(0);return{xScrollbarWidth:e,yScrollbarWidth:r,setYScrollbarWidth:n,setXScrollbarWidth:t}})(),{columnWidths:T,setColumnWidths:O,showRightBorder:q,isAdjustingWidth:N,setIsAdjustingWidth:j}=(({columns:e,totalsPosition:t,tableWidth:r,styleService:n,eventEmitter:o,yScrollbarWidth:i,accessibleHeader:a=!0})=>{const s=t.atBottom||t.atTop,l=BC({...n.header,fontWeight:nI},{maxNbrLinesOfText:3}).measureText,u=BC({...n.totalRow,fontWeight:nI},{maxNbrLinesOfText:3}).measureText,{estimateWidth:c}=BC(n.dimension.values,{maxNbrLinesOfText:3}),{estimateWidth:d}=BC(n.measure.values,{maxNbrLinesOfText:3}),p=R((()=>(e,t,r,n,o,i,p)=>{let f=0;if(a){const t=4;let r=25;r+=t+24,n&&(r+=20+t),o&&(r+=20),f=l(e)+r}else{let t=9;t+=16,p&&(t+=hI),t+=hI,t+=hI,f=l(e)+t}const h=i?c:d;return Math.max(f,s?u(t)+24+1:0,h(r))}),[c,d,l,u,s,a]),[f,h]=P(!1),[m,g]=P((()=>wI(e,r,p)));L((()=>{const t=wI(e,r-i,p);g(t),h(!1)}),[e,r,i,p]),L((()=>{f||o.emit("done-adjusting-column-width")}),[f,o]);const b=R((()=>((e,t,r)=>e.length>0&&e.reduce(((e,t)=>e+t))+t<r)(m,i,r)),[m,i,r]);return{columnWidths:m,setColumnWidths:g,showRightBorder:b,isAdjustingWidth:f,setIsAdjustingWidth:h}})({columns:t.columns,totalsPosition:t.totalsPosition,tableWidth:m.width,styleService:E,eventEmitter:x,accessibleHeader:n.accessibleHeader,yScrollbarWidth:I}),_=R((()=>({selectionsAPI:r,layout:n,model:o,interactions:i,theme:a,keyboard:s,rootElement:l,embed:u,changeSortOrder:c,applyColumnWidths:d,rect:m,viewService:g,styleService:E,direction:y,downloadService:b})),[r,n,o,i,a,s.active,l,u,c,d,m,g,E,y,b]);return rr.jsx(nM,{value:{selectionState:S,selectionDispatch:w,columnWidths:T,setColumnWidths:O,baseProps:_,tableData:t,setPage:p,pageInfo:f,initialDataPages:h,showRightBorder:q,env:v,isAdjustingWidth:N,setIsAdjustingWidth:j,setYScrollbarWidth:D,setXScrollbarWidth:k,xScrollbarWidth:A,yScrollbarWidth:I,eventEmitter:x},children:e})};function aM(e,t){const r=function(e){return tM.get(e)}(e),[n,o]=T(r),[,i]=M((e=>e+1),0),a=A(t),s=A(),l=n();if(void 0===l)throw new Error("You must call useContextSelector inside a valid context.");const u=R((()=>t(l)),[l,t]);return k((()=>{a.current=t,s.current=u}),[l,u,t]),k((()=>{const e=e=>{a.current(e)!==s.current&&i()};return o.add(e),()=>{o.delete(e)}}),[o]),u}function sM(e){const t=RC();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),Du({...t,direction:e})}const lM={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},uM={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},cM=hc("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t,dir:r})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===r?"-4px":void 0,touchAction:"none",cursor:"col-resize",pointerEvents:"auto",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",outline:"none",appearance:"none",WebkitAppearance:"none",backgroundColor:"transparent","&::-webkit-slider-runnable-track":{...lM},"&::-moz-range-track":{...lM},"&::-ms-track":{...lM},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...uM},"&::-moz-range-thumb":{...uM},"&::-ms-thumb":{...uM},"&:hover:not(:focus, :active)":{"&::after":{backgroundColor:t||"#D9D9D9","@media (hover: none)":{backgroundColor:"none"}}},"&:focus-visible, &:active":{"&::after":{backgroundColor:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}},"&::after":{content:'""',height:"100%",width:"3px",position:"absolute"}}))),dM=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:s,setIsAdjustingWidth:l,isLeftColumn:u,accessibilityRelatedArgs:c,direction:d="ltr"})=>{const p=XC({translator:c.translator}),f=A({initWidth:e,columnWidth:e,initX:0}),h=r?0:1,m=n&&!u,g=()=>m?f.current.columnWidth-h:"100%",b={left:"rtl"!==d?g():void 0,right:"rtl"===d?g():void 0},v=t=>{f.current={initWidth:e,columnWidth:e,initX:t??f.current.initX}};YC((()=>{m&&v()}),[e]);const y=e=>{const t=Math.max(e,aE.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:sE.Pixels,pixels:f.current.columnWidth};a(e)}else l?.(!1)},S=e=>{const t="rtl"===d?f.current.initWidth+f.current.initX-e.clientX:f.current.initWidth+e.clientX-f.current.initX;y(t)},w=e=>{LC(e),document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",w),x()},C=e=>{const t="rtl"===d?f.current.initWidth+-f.current.initX-e.touches[0].clientX:f.current.initWidth+e.touches[0].clientX-f.current.initX;y(t)},E=e=>{LC(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E),x()},R=!n&&s?e=>{if(e.key===oE.Left||e.key===oE.Right){LC(e);const t=5,r=e.key===oE.Left?t:-t,n="rtl"===d?r:-r;l?.(!0),y(f.current.columnWidth+n)}else e.key===oE.Space||e.key===oE.Enter?(LC(e),s(e),l?.(!1),x()):e.key===oE.Esc&&(LC(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,P=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return rr.jsx(cM,{style:b,hoverColor:o,isLastColumn:r,className:iE,"data-testid":iE,onMouseDown:e=>{LC(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),l?.(!0),v(e.clientX)},onDoubleClick:()=>{a({type:sE.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(LC(e),document.addEventListener("touchmove",C),document.addEventListener("touchend",E),l?.(!0),v(e.touches[0].clientX))},onKeyDown:R,onBlur:s,onFocus:()=>{v()},type:"range",tabIndex:-1,"aria-label":P,"aria-valuemin":aE.PixelsMin,"aria-valuemax":aE.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},pM=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})}))),fM=({model:e,headerData:t})=>{if(e&&"setActiveField"in e&&void 0!==t.dimensionInfoIndex){const r=t.dimensionInfoIndex;return async t=>{try{await e.setActiveField("/qHyperCubeDef",r,t)}catch(e){console.error(e)}}}return null},hM=hc(op,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e&&"isAccessibleHeader"!==e})((({rightAligned:e,shouldShowMenuIcon:t,isAccessibleHeader:r})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:r?24:void 0,display:t?"flex":"none",fontWeight:"bold",width:r?"100%":void 0,alignItems:"center",justifyContent:"center"}))),mM=hc(pM,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),gM=hc(Ff)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),bM=hc(Np)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),vM=hc(Vf)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),yM=hc(Vf,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:r})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden",boxSizing:"border-box !important",background:r?"rgba(0, 0, 0, 0.05)":"transparent"}))),xM=hc("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:r})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:r||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),SM=hc("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),wM=hc(xd)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),CM=hc(ff,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:r})=>({width:16,minWidth:"unset !important",marginRight:r||"rtl"!==t?e.spacing(1.5):0,marginLeft:r||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0}))),EM=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})}))),RM=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?RM(t):t:e.parentElement?.children?.[0]},PM=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?PM(t):t},AM=e=>{const{key:t,currentTarget:r}=e,n=document.activeElement??r;if(t===oE.Down||t===oE.Up){const r=e=>t===oE.Down?RM(e):PM(e);e.preventDefault(),e.stopPropagation();let o=r(n);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=r(o)}}},IM=(e,t)=>e.map((e=>e.map((e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map((({onClick:e,...r})=>({...r,...e?{onClick:async r=>{Object.entries(t).forEach((([,e])=>{e(!1)})),await e(r)}}:{}})))})))));let MM={};const kM=({autoFocus:e,id:t,onClick:r,itemTitle:n,icon:o,enabled:i,subMenus:a,isSubMenu:s,isActive:l,direction:u,isPagination:c})=>{const[d,p]=P(!1),f=x.useRef(null),h=O((e=>{e.stopPropagation(),p(!1)}),[p]);return rr.jsxs(rr.Fragment,{children:[rr.jsxs(yM,{ref:a?f:null,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(r&&(await r(e),MM={}),a?.length&&(p(!0),MM[n]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:AM,children:[l?rr.jsx(xM,{direction:u,isPagination:c}):null,rr.jsxs(SM,{children:[rr.jsx(CM,{direction:u,isPagination:c,children:rr.jsx(o,{})}),rr.jsx(wM,{variant:"body2",children:n})]}),a?.length?rr.jsx(EM,{}):null]},t),a?.length?rr.jsx(LM,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:h,menuGroups:IM(a,MM),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:u,isPagination:c}):null]})},DM=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((e=>[[e.groupHeading&&rr.jsx(vM,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map((e=>rr.jsx(kM,{...e,isSubMenu:t,direction:r,isPagination:n},e.id)))].filter(Boolean)])),TM=({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(((o,i)=>[DM({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?rr.jsx(bM,{"data-testid":"group-divider",variant:"middle"}):void 0])),OM={appear:0,enter:0,exit:0},LM=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?rr.jsx(gM,{className:tE,open:t,anchorEl:e,onClose:r,transitionDuration:OM,MenuListProps:{id:rE},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:TM({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})}):null,qM=({qLibraryId:e,fieldId:t,searchRelatedArgs:r,selectionRelatedArgs:n,direction:o,onPopoverClose:i})=>O((()=>{const a=e?{qLibraryId:e,type:"dimension"}:t;if(r?.embed){const{embed:e,listboxRef:t}=r;e.__DO_NOT_USE__.popover(t.current,a,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===o?"right":"left"},sortCriteria:r.sortCriteria,stateName:n?.qStateName,direction:o,onPopoverClose:i})}}),[e,t,r,n?.qStateName,o,i]),NM=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),jM=(e,t)=>e.some((e=>t[e]>0)),_M={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},zM=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=P(null),[a,s]=P(_M);return YC((()=>{e||(s(_M),i(null))}),[e]),k((()=>{if(!n?.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{const e=NM(t,r),u=await n.createSessionObject(e),c=await u.getLayout(),{qStateCounts:d}=c.qListObject?.qDimensionInfo??{};o=c.qInfo?.qId,a?l():(i(u),d&&s((e=>({canSelectAll:jM(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:jM(["qSelected"],e),canSelectPossible:jM(["qOption"],e),canSelectAlternative:jM(["qAlternative"],e),canSelectExcluded:jM(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},FM=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"})}))),HM=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm9 1.5H6v-1h4zm5.354-8.646L12.707 10l2.646 2.646-.707.707L12 10.708l-2.646 2.646-.708-.707L11.293 10 8.646 7.354l.708-.708L12 9.293l2.646-2.647zM1 10H0V6h1zm2-9H1.5a.5.5 0 0 0-.5.5V3H0V1.5A1.5 1.5 0 0 1 1.5 0H3zm11.5-1A1.5 1.5 0 0 1 16 1.5V3h-1V1.5a.5.5 0 0 0-.5-.5H13V0zM10 1H6V0h4z"})}))),$M=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707zM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2z"})}))),WM=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"})}))),BM=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.455.858v6.484a1 1 0 0 1-.577.906L8.5 14.663V7.17z"})}))),VM=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8z"})}))),UM=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8zM8.5 4v8h-1V4z"})}))),GM=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7"})}))),YM=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"})}))),KM=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4zm12-4a1 1 0 0 1 .993.883L16 1v10a1 1 0 0 1-.883.993L15 12H5a1 1 0 0 1-.993-.883L4 11V1a1 1 0 0 1 .883-.993L5 0zm0 1H5v10h10zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28z"})}))),XM=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8l8-8zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})}))),JM=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})}))),ZM=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8h8V4zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})}))),QM=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"})})));let ek=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const tk="/qListObjectDef",rk=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:s,selectionActionsEnabledStatus:l,anchorRef:u,focusColumnAdjuster:c,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(r[ek.Sorting]){const{isActivelySorted:r,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:s}=(({isActivelySorted:e,sortDirection:t,isPivot:r,isSortedByFirstMeasure:n})=>{let o=!r&&!e||"D"===t,i=!r&&!e||"A"===t;return n&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"A")),n(!1)},icon:FM,enabled:a,isActive:!!r&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"D")),n(!1)},icon:WM,enabled:s,isActive:!!r&&"D"===i,autoFocus:!a&&s}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:GM,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:BM,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];r[ek.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:YM,enabled:!0}]}]),!e.isLocked&&r[ek.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:QM,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAll(tk))},icon:KM,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectPossible(tk))},icon:ZM,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAlternative(tk))},icon:XM,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectExcluded(tk))},icon:JM,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.clearSelections(tk))},icon:HM,enabled:l.canClearSelections}]}]]}]}]),p&&!p.alwaysFullyExpanded&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.expandCallback()},icon:UM,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:VM,enabled:!0}]}]),o.length>0&&f.push(...o)}return r[ek.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),c?.(u)},icon:$M,enabled:!0}]}]),f},nk=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,menuAvailabilityFlags:a,shouldShowMenuIcon:s=!0,sortRelatedArgs:l,searchRelatedArgs:u,selectionRelatedArgs:c,adjustHeaderSizeRelatedArgs:d,expandOrCollapseArgs:p,model:f,direction:h="ltr",isPagination:m,isAccessibleHeader:g,iconSize:b=ZC})=>{const v=A(null),y=XC({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:w}=n,C=c?.app,{fieldInstance:E,selectionActionsEnabledStatus:R}=zM({open:e,headerData:n,app:C,qStateName:c?.qStateName}),P=fM({model:f,headerData:n}),I=qM({qLibraryId:x,fieldId:S,searchRelatedArgs:u,selectionRelatedArgs:c,direction:h}),M=O((e=>{e.stopPropagation(),t(!1)}),[t]),k=O((e=>{e.stopPropagation(),t((e=>!e))}),[t]);return i.active?rr.jsxs(hM,{rightAligned:"right"===w,shouldShowMenuIcon:s,className:eE,onClick:!1===g?k:void 0,ref:v,isAccessibleHeader:g,children:[s?rr.jsx(mM,{height:b,className:QC,"data-testid":QC,isInteractionsActive:i.active??!1,children:rr.jsx(pM,{})}):null,rr.jsx(LM,{open:e,anchorEl:!1===g?v.current:r.current,onClose:M,menuGroups:rk({headerData:n,translator:y,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:I,interactions:i,fieldInstance:E,selectionActionsEnabledStatus:R,anchorRef:r,focusColumnAdjuster:d?.focusColumnAdjuster,setActiveFieldCallback:P,expandOrCollapseArgs:p}),direction:h,isPagination:m})]}):null},ok=e=>e.isDark?{background:e.color,borderColor:AC.DARK_MODE_BORDER,color:AC.DARK_MODE_TEXT,disabledColor:AC.DARK_MODE_DISABLED,iconColor:AC.DARK_MODE_TEXT}:{background:e.color,borderColor:AC.BORDER_MEDIUM,color:AC.TEXT,disabledColor:AC.DISABLED},ik=hc(op,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({height:40,display:"flex",justifyContent:"flex-end",alignItems:"center",padding:t.spacing(0,1,0,1),color:e.color,background:e.background,borderTop:`1px solid ${e.borderColor}`}))),ak=hc(Rh,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),sk=hc(hp,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:r})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:r.spacing(1)}))),lk=hc(xd)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),uk=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=R((()=>ok(n.background)),[n]);if(!r.active)return null;const a=o?rr.jsx(ik,{footerStyle:i,children:e}):null;return t?$.createPortal(e,t):a},ck=I({}),dk=()=>T(ck),pk=({children:e,direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:h,layout:m,visibilityThreshold:g})=>{const b=(e=>!e.enabled||e.active)(c)?0:-1,v=R((()=>ok(p.background)),[p]),y=o?o.getBoundingClientRect().width:h.width,x=XC({translator:d}),S=R((()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:x,theme:p,interactions:f,rect:h,layout:m,footerStyle:v,tabIndex:b,width:y,visibilityThreshold:g})),[t,r,n,o,i,a,s,l,u,c,x,p,f,h,m,v,b,y,g]);return rr.jsx(ck.Provider,{value:S,children:e})};let fk=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),hk=function(e){return e[e.DisplayedRowsLabel=250]="DisplayedRowsLabel",e[e.FirstPage=350]="FirstPage",e[e.LastPage=350]="LastPage",e[e.RowsPerPage=550]="RowsPerPage",e[e.SelectPage=700]="SelectPage",e}({});const mk=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))),gk=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})}))),bk=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})}))),vk={FirstPage:gk,PreviousPage:mk,NextPage:EM,LastPage:bk,FirstPageRTL:bk,PreviousPageRTL:EM,NextPageRTL:mk,LastPageRTL:gk},yk=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=dk(),u=r.concat("rtl"===n?"RTL":""),c=vk[u];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${r}`),title:s.passive?a.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:l,onClick:e?void 0:()=>{i(t)}},IconComponent:c}},xk=()=>{const{pageInfo:e,width:t,interactions:r,visibilityThreshold:n}=dk(),o=0===e.page,{IconComponent:i,styledProps:a}=yk({type:fk.FirstPage,disabledCondition:o,pageNumber:0});return t<=(n?.firstPage||hk.FirstPage)?null:rr.jsx(sk,{...a,disabled:!r.active,children:rr.jsx(i,{height:ZC})})},Sk=(e,t,r=!1)=>{r&&e.key===oE.Tab&&!e.shiftKey&&(LC(e),OC(e.target,t,!1))},wk=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i,visibilityThreshold:a}=dk(),s=e.page>=r-1,{IconComponent:l,styledProps:u}=yk({type:fk.LastPage,disabledCondition:s,pageNumber:r-1}),c=t.enabled?e=>{Sk(e,t,n)}:void 0;return o<=(a?.lastPage||hk.LastPage)?null:rr.jsx(sk,{...u,onKeyDown:c,disabled:!i.active,children:rr.jsx(l,{height:ZC})})},Ck=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=dk(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=yk({type:fk.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(o>hk.FirstPage&&o>hk.LastPage)&&t.enabled?e=>{Sk(e,t,n)}:void 0;return rr.jsx(sk,{...l,onKeyDown:u,disabled:!i.active,children:rr.jsx(s,{height:ZC})})},Ek=()=>{const{pageInfo:e,interactions:t}=dk(),r=0===e.page,{IconComponent:n,styledProps:o}=yk({type:fk.PreviousPage,disabledCondition:r,pageNumber:e.page-1});return rr.jsx(sk,{...o,disabled:!t.active,children:rr.jsx(n,{height:ZC})})},Rk=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n,visibilityThreshold:o}=dk(),{page:i,rowsPerPage:a}=r;if(t<=(o?.displayedRowsLabel||hk.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,n)}`,n.toString()]);return rr.jsx(lk,{variant:"caption",dir:"ltr",children:s})},Pk=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=dk(),u=o.qInfo.qId,c=a.get(`NebulaTableUtils.Pagination.${e}`),d=`${e}-dropdown`,p=`${d}-label-${u}`,f={tabIndex:s,id:`${d}-${u}`,"data-testid":d,"aria-labelledby":p};return rr.jsxs(rr.Fragment,{children:[rr.jsxs(lk,{variant:"caption",id:p,children:[c,":"]}),rr.jsx(ak,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:f,disabled:!l.active,children:r})]})},Ak=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:r,width:n,handleChangeRowsPerPage:o,visibilityThreshold:i}=dk();if(!(!!e.rowsPerPageOptions?.length&&!t&&n>(i?.rowsPerPage||hk.RowsPerPage)&&r<=100)||void 0===e.rowsPerPageOptions)return null;const a=rr.jsx(rr.Fragment,{children:e.rowsPerPageOptions.map((e=>rr.jsx("option",{value:e,children:e},e)))});return rr.jsx(Pk,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},Ik=1e3,Mk="…",kk=({totalPages:e,page:t})=>{const r=Math.min(e,Ik),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-Ik):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return rr.jsx("option",{value:t,children:t+1},t)}));return i>0&&a.unshift(rr.jsx("option",{value:Mk,disabled:!0,children:Mk},"startMoreOptions")),o<e-1&&a.push(rr.jsx("option",{value:Mk,disabled:!0,children:Mk},"endMoreOptions")),rr.jsx(rr.Fragment,{children:a})},Dk=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n,visibilityThreshold:o}=dk(),{page:i}=e;if(t<=(o?.selectPage||hk.SelectPage))return null;const a=rr.jsx(kk,{totalPages:r,page:i});return rr.jsx(Pk,{name:"SelectPage",value:i,options:a,handleChange:e=>{n(+e.target.value)}})};var Tk=N((e=>rr.jsxs(pk,{...e,children:[rr.jsx(Ak,{}),rr.jsx(Dk,{}),rr.jsx(Rk,{}),rr.jsx(xk,{}),rr.jsx(Ek,{}),rr.jsx(Ck,{}),rr.jsx(wk,{})]})));const Ok=e=>rr.jsx(uk,{...e,children:rr.jsx(Tk,{...e})});var Lk=Symbol.for("preact-signals");function qk(){if(Fk>1)Fk--;else{for(var e,t=!1;void 0!==zk;){var r=zk;for(zk=void 0,Hk++;void 0!==r;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&Uk(r))try{r.c()}catch(r){t||(e=r,t=!0)}r=n}}if(Hk=0,Fk--,t)throw e}}function Nk(e){if(Fk>0)return e();Fk++;try{return e()}finally{qk()}}var jk=void 0;function _k(e){var t=jk;jk=void 0;try{return e()}finally{jk=t}}var zk=void 0,Fk=0,Hk=0,$k=0;function Wk(e){if(void 0!==jk){var t=e.n;if(void 0===t||t.t!==jk)return t={i:0,S:e,p:jk.s,n:void 0,t:jk,e:void 0,x:void 0,r:t},void 0!==jk.s&&(jk.s.n=t),jk.s=t,e.n=t,32&jk.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=jk.s,t.n=void 0,jk.s.n=t,jk.s=t),t}}function Bk(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function Vk(e,t){return new Bk(e,t)}function Uk(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Gk(e){for(var t=e.s;void 0!==t;t=t.n){var r=t.S.n;if(void 0!==r&&(t.r=r),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function Yk(e){for(var t=e.s,r=void 0;void 0!==t;){var n=t.p;-1===t.i?(t.S.U(t),void 0!==n&&(n.n=t.n),void 0!==t.n&&(t.n.p=n)):r=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=n}e.s=r}function Kk(e,t){Bk.call(this,void 0),this.x=e,this.s=void 0,this.g=$k-1,this.f=4,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function Xk(e,t){return new Kk(e,t)}function Jk(e){var t=e.u;if(e.u=void 0,"function"==typeof t){Fk++;var r=jk;jk=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,Zk(e),t}finally{jk=r,qk()}}}function Zk(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Jk(e)}function Qk(e){if(jk!==this)throw new Error("Out-of-order effect");Yk(this),jk=e,this.f&=-2,8&this.f&&Zk(this),qk()}function eD(e,t){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=null==t?void 0:t.name}function tD(e,t){var r=new eD(e,t);try{r.c()}catch(e){throw r.d(),e}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}Bk.prototype.brand=Lk,Bk.prototype.h=function(){return!0},Bk.prototype.S=function(e){var t=this,r=this.t;r!==e&&void 0===e.e&&(e.x=r,this.t=e,void 0!==r?r.e=e:_k((function(){var e;null==(e=t.W)||e.call(t)})))},Bk.prototype.U=function(e){var t=this;if(void 0!==this.t){var r=e.e,n=e.x;void 0!==r&&(r.x=n,e.e=void 0),void 0!==n&&(n.e=r,e.x=void 0),e===this.t&&(this.t=n,void 0===n&&_k((function(){var e;null==(e=t.Z)||e.call(t)})))}},Bk.prototype.subscribe=function(e){var t=this;return tD((function(){var r=t.value,n=jk;jk=void 0;try{e(r)}finally{jk=n}}),{name:"sub"})},Bk.prototype.valueOf=function(){return this.value},Bk.prototype.toString=function(){return this.value+""},Bk.prototype.toJSON=function(){return this.value},Bk.prototype.peek=function(){var e=jk;jk=void 0;try{return this.value}finally{jk=e}},Object.defineProperty(Bk.prototype,"value",{get:function(){var e=Wk(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Hk>100)throw new Error("Cycle detected");this.v=e,this.i++,$k++,Fk++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{qk()}}}}),Kk.prototype=new Bk,Kk.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===$k)return!0;if(this.g=$k,this.f|=1,this.i>0&&!Uk(this))return this.f&=-2,!0;var e=jk;try{Gk(this),jk=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return jk=e,Yk(this),this.f&=-2,!0},Kk.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}Bk.prototype.S.call(this,e)},Kk.prototype.U=function(e){if(void 0!==this.t&&(Bk.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},Kk.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(Kk.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Wk(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),eD.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.u=t)}finally{e()}},eD.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Jk(this),Gk(this),Fk++;var e=jk;return jk=this,Qk.bind(this,e)},eD.prototype.N=function(){2&this.f||(this.f|=2,this.o=zk,zk=this)},eD.prototype.d=function(){this.f|=8,1&this.f||Zk(this)},eD.prototype.dispose=function(){this.d()};var rD,nD,oD,iD,aD,sD,lD,uD,cD,dD,pD,fD,hD,mD,gD,bD,vD,yD,xD,SD,wD=Object.create,CD=Object.defineProperty,ED=Object.defineProperties,RD=Object.getOwnPropertyDescriptor,PD=Object.getOwnPropertyDescriptors,AD=Object.getOwnPropertySymbols,ID=Object.prototype.hasOwnProperty,MD=Object.prototype.propertyIsEnumerable,kD=e=>{throw TypeError(e)},DD=(e,t,r)=>t in e?CD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,TD=(e,t)=>CD(e,"name",{value:t,configurable:!0}),OD=["class","method","getter","setter","accessor","field","value","get","set"],LD=e=>void 0!==e&&"function"!=typeof e?kD("Function expected"):e,qD=(e,t,r,n,o)=>({kind:OD[e],name:t,metadata:n,addInitializer:e=>r._?kD("Already initialized"):o.push(LD(e||null))}),ND=(e,t)=>{return DD(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n},jD=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},_D=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=OD[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&RD(d<4?o:{get[r](){return HD(this,i)},set[r](e){return WD(this,i,e)}},r));d?f&&d<4&&TD(i,(d>2?"set ":d>1?"get ":"")+r):TD(o,r);for(var y=n.length-1;y>=0;y--)u=qD(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>FD(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?HD:BD)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>WD(e,o,t,4^d?i:v.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,u),l._=1,4^d||void 0===s?LD(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?kD("Object expected"):(LD(a=s.get)&&(v.get=a),LD(a=s.set)&&(v.set=a),LD(a=s.init)&&g.unshift(a));return d||ND(e,o),v&&CD(o,r,v),f?4^d?i:v:o},zD=(e,t,r)=>t.has(e)||kD("Cannot "+r),FD=(e,t)=>Object(t)!==t?kD('Cannot use the "in" operator on this value'):e.has(t),HD=(e,t,r)=>(zD(e,t,"read from private field"),r?r.call(e):t.get(e)),$D=(e,t,r)=>t.has(e)?kD("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),WD=(e,t,r,n)=>(zD(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),BD=(e,t,r)=>(zD(e,t,"access private method"),r);function VD(e,t){if(t){let r;return Xk((()=>{const n=e();return n&&r&&t(r,n)?r:(r=n,n)}))}return Xk(e)}function UD(e,t){if(Object.is(e,t))return!0;if(null===e||null===t)return!1;if("function"==typeof e&&"function"==typeof t)return e===t;if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;return!e.some(((e,r)=>!UD(e,t[r])))}if("object"==typeof e&&"object"==typeof t){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;const o=r.some((r=>!UD(e[r],t[r])));return!o}return!1}function GD({get:e},t){return{init:e=>Vk(e),get(){return e.call(this).value},set(t){const r=e.call(this);r.peek()!==t&&(r.value=t)}}}function YD(e,t){const r=new WeakMap;return function(){let t=r.get(this);return t||(t=VD(e.bind(this)),r.set(this,t)),t.value}}function KD(e=!0){return function(t,r){r.addInitializer((function(){const t="field"===r.kind||r.static?this:Object.getPrototypeOf(this),n=Object.getOwnPropertyDescriptor(t,r.name);n&&Object.defineProperty(t,r.name,((e,t)=>ED(e,PD(t)))(((e,t)=>{for(var r in t||(t={}))ID.call(t,r)&&DD(e,r,t[r]);if(AD)for(var r of AD(t))MD.call(t,r)&&DD(e,r,t[r]);return e})({},n),{enumerable:e}))}))}}function XD(...e){const t=e.map((e=>tD(e)));return()=>t.forEach((e=>e()))}sD=[GD],aD=[GD],iD=[GD],oD=[KD()],nD=[KD()],rD=[KD()];var JD,ZD=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,jD(lD,5,this),$D(this,fD),$D(this,uD,jD(lD,8,this)),jD(lD,11,this),$D(this,hD,jD(lD,12,this)),jD(lD,15,this),$D(this,vD,jD(lD,16,this)),jD(lD,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return HD(this,fD,xD)}get initial(){return HD(this,fD,dD)}get previous(){return HD(this,fD,gD)}set current(e){const t=_k((()=>HD(this,fD,xD)));e&&t&&this.equals(t,e)||Nk((()=>{HD(this,fD,dD)||WD(this,fD,e,pD),WD(this,fD,t,bD),WD(this,fD,e,SD)}))}reset(e=this.defaultValue){Nk((()=>{WD(this,fD,void 0,bD),WD(this,fD,e,pD),WD(this,fD,e,SD)}))}};function QD(e){return _k((()=>{const t={};for(const r in e)t[r]=e[r];return t}))}lD=[,,,wD(null)],uD=new WeakMap,fD=new WeakSet,hD=new WeakMap,vD=new WeakMap,cD=_D(lD,20,"#initial",sD,fD,uD),dD=cD.get,pD=cD.set,mD=_D(lD,20,"#previous",aD,fD,hD),gD=mD.get,bD=mD.set,yD=_D(lD,20,"#current",iD,fD,vD),xD=yD.get,SD=yD.set,_D(lD,2,"current",oD,ZD),_D(lD,2,"initial",nD,ZD),_D(lD,2,"previous",rD,ZD),ND(lD,ZD);JD=new WeakMap;var eT,tT,rT,nT,oT,iT=Object.create,aT=Object.defineProperty,sT=Object.getOwnPropertyDescriptor,lT=Object.getOwnPropertySymbols,uT=Object.prototype.hasOwnProperty,cT=Object.prototype.propertyIsEnumerable,dT=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),pT=e=>{throw TypeError(e)},fT=Math.pow,hT=(e,t,r)=>t in e?aT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,mT=["class","method","getter","setter","accessor","field","value","get","set"],gT=e=>void 0!==e&&"function"!=typeof e?pT("Function expected"):e,bT=(e,t,r,n,o)=>({kind:mT[e],name:t,metadata:n,addInitializer:e=>r._?pT("Already initialized"):o.push(gT(e||null))}),vT=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=mT[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,sT(o,r)),h=n.length-1;h>=0;h--)(l=bT(c,r,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>r in e},u.get=e=>e[r],a=(0,n[h])(f[d],l),s._=1,gT(a)&&(f[d]=a);return f&&aT(o,r,f),o},yT=(e,t,r)=>t.has(e)||pT("Cannot "+r),xT=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,r){return new e(t.x-r.x,t.y-r.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:r}){return new e(t,r)}},ST=class e{constructor(e,t,r,n){this.left=e,this.top=t,this.width=r,this.height=n,this.scale={x:1,y:1}}get inverseScale(){return{x:1/this.scale.x,y:1/this.scale.y}}translate(t,r){const{top:n,left:o,width:i,height:a,scale:s}=this,l=new e(o+t,n+r,i,a);return l.scale=((e,t)=>{for(var r in t||(t={}))uT.call(t,r)&&hT(e,r,t[r]);if(lT)for(var r of lT(t))cT.call(t,r)&&hT(e,r,t[r]);return e})({},s),l}get boundingRectangle(){const{width:e,height:t,left:r,top:n,right:o,bottom:i}=this;return{width:e,height:t,left:r,top:n,right:o,bottom:i}}get center(){const{left:e,top:t,right:r,bottom:n}=this;return new xT((e+r)/2,(t+n)/2)}get area(){const{width:e,height:t}=this;return e*t}equals(t){if(!(t instanceof e))return!1;const{left:r,top:n,width:o,height:i}=this;return r===t.left&&n===t.top&&o===t.width&&i===t.height}containsPoint(e){const{top:t,left:r,bottom:n,right:o}=this;return t<=e.y&&e.y<=n&&r<=e.x&&e.x<=o}intersectionArea(t){return t instanceof e?function(e,t){const r=Math.max(t.top,e.top),n=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-n,s=i-r;if(n<o&&r<i){return a*s}return 0}(this,t):0}intersectionRatio(e){const{area:t}=this,r=this.intersectionArea(e);return r/(e.area+t-r)}get bottom(){const{top:e,height:t}=this;return e+t}get right(){const{left:e,width:t}=this;return e+t}get aspectRatio(){const{width:e,height:t}=this;return e/t}get corners(){return[{x:this.left,y:this.top},{x:this.right,y:this.top},{x:this.left,y:this.bottom},{x:this.right,y:this.bottom}]}static from({top:t,left:r,width:n,height:o}){return new e(r,t,n,o)}static delta(e,t,r={x:"center",y:"center"}){const n=(e,t)=>{const n=r[t],o="x"===t?e.left:e.top,i="x"===t?e.width:e.height;return"start"==n?o:"end"==n?o+i:o+i/2};return xT.delta({x:n(e,"x"),y:n(e,"y")},{x:n(t,"x"),y:n(t,"y")})}static intersectionRatio(t,r){return e.from(t).intersectionRatio(e.from(r))}};var wT,CT=class extends(rT=ZD,tT=[YD],eT=[YD],rT){constructor(e){var t,r,n;super(xT.from(e),((e,t)=>xT.equals(e,t))),((e,t,r)=>{for(var n=0,o=e[t>>1],i=o&&o.length;n<i;n++)o[n].call(r)})(oT,5,this),t=this,n=0,(r=nT).has(t)?pT("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,n),this.velocity={x:0,y:0}}get delta(){return xT.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const r={x:e.x-t.x,y:e.y-t.y};return r.x||r.y?Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,r=xT.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(yT(a=this,s=nT,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);Nk((()=>{((e,t,r)=>{yT(e,t,"write to private field"),t.set(e,r)})(this,nT,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r}))}reset(e=this.defaultValue){super.reset(xT.from(e)),this.velocity={x:0,y:0}}};function ET({x:e,y:t},r){const n=Math.abs(e),o=Math.abs(t);return"number"==typeof r?Math.sqrt(fT(n,2)+fT(o,2))>r:"x"in r&&"y"in r?n>r.x&&o>r.y:"x"in r?n>r.x:"y"in r&&o>r.y}oT=(e=>{var t;return[,,,iT(null!=(t=null==e?void 0:e[dT("metadata")])?t:null)]})(rT),nT=new WeakMap,vT(oT,2,"delta",tT,CT),vT(oT,2,"direction",eT,CT),wT=oT,hT(CT,dT("metadata"),wT[3]);var RT,PT,AT,IT,MT=(e=>(e.Horizontal="x",e.Vertical="y",e))(MT||{}),kT=Object.values(MT),DT=Object.create,TT=Object.defineProperty,OT=Object.defineProperties,LT=Object.getOwnPropertyDescriptor,qT=Object.getOwnPropertyDescriptors,NT=Object.getOwnPropertySymbols,jT=Object.prototype.hasOwnProperty,_T=Object.prototype.propertyIsEnumerable,zT=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),FT=e=>{throw TypeError(e)},HT=(e,t,r)=>t in e?TT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$T=(e,t)=>{for(var r in t||(t={}))jT.call(t,r)&&HT(e,r,t[r]);if(NT)for(var r of NT(t))_T.call(t,r)&&HT(e,r,t[r]);return e},WT=(e,t)=>OT(e,qT(t)),BT=(e,t)=>TT(e,"name",{value:t,configurable:!0}),VT=(e,t)=>{var r={};for(var n in e)jT.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&NT)for(var n of NT(e))t.indexOf(n)<0&&_T.call(e,n)&&(r[n]=e[n]);return r},UT=e=>{var t;return[,,,DT(null!=(t=null==e?void 0:e[zT("metadata")])?t:null)]},GT=["class","method","getter","setter","accessor","field","value","get","set"],YT=e=>void 0!==e&&"function"!=typeof e?FT("Function expected"):e,KT=(e,t,r,n,o)=>({kind:GT[e],name:t,metadata:n,addInitializer:e=>r._?FT("Already initialized"):o.push(YT(e||null))}),XT=(e,t)=>HT(t,zT("metadata"),e[3]),JT=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},ZT=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=GT[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&<(d<4?o:{get[r](){return tO(this,i)},set[r](e){return nO(this,i,e)}},r));d?f&&d<4&&BT(i,(d>2?"set ":d>1?"get ":"")+r):BT(o,r);for(var y=n.length-1;y>=0;y--)u=KT(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>eO(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?tO:oO)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>nO(e,o,t,4^d?i:v.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,u),l._=1,4^d||void 0===s?YT(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?FT("Object expected"):(YT(a=s.get)&&(v.get=a),YT(a=s.set)&&(v.set=a),YT(a=s.init)&&g.unshift(a));return d||XT(e,o),v&&TT(o,r,v),f?4^d?i:v:o},QT=(e,t,r)=>t.has(e)||FT("Cannot "+r),eO=(e,t)=>Object(t)!==t?FT('Cannot use the "in" operator on this value'):e.has(t),tO=(e,t,r)=>(QT(e,t,"read from private field"),r?r.call(e):t.get(e)),rO=(e,t,r)=>t.has(e)?FT("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),nO=(e,t,r,n)=>(QT(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),oO=(e,t,r)=>(QT(e,t,"access private method"),r);function iO(e,t){return{plugin:e,options:t}}function aO(e){return t=>iO(e,t)}function sO(e){return"function"==typeof e?{plugin:e,options:void 0}:e}RT=[GD];var lO=class{constructor(e,t){this.manager=e,this.options=t,rO(this,AT,JT(PT,8,this,!1)),JT(PT,11,this),rO(this,IT,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return _k((()=>this.disabled))}configure(e){this.options=e}registerEffect(e){const t=tD(e.bind(this));return tO(this,IT).add(t),t}destroy(){tO(this,IT).forEach((e=>e()))}static configure(e){return iO(this,e)}};PT=UT(null),AT=new WeakMap,IT=new WeakMap,ZT(PT,4,"disabled",RT,lO,AT),XT(PT,lO);var uO,cO=class extends lO{},dO=class{constructor(e){this.manager=e,this.instances=new Map,rO(this,uO,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(sO).reduceRight(((e,t)=>e.some((({plugin:e})=>e===t.plugin))?e:[t,...e]),[]),r=t.map((({plugin:e})=>e));for(const e of tO(this,uO))if(!r.includes(e)){if(e.prototype instanceof cO)continue;this.unregister(e)}for(const{plugin:e,options:r}of t)this.register(e,r);nO(this,uO,r)}get(e){return this.instances.get(e)}register(e,t){const r=this.instances.get(e);if(r)return r.options!==t&&(r.options=t),r;const n=new e(this.manager,t);return this.instances.set(e,n),n}unregister(e){const t=this.instances.get(e);t&&(t.destroy(),this.instances.delete(e))}destroy(){for(const e of this.instances.values())e.destroy();this.instances.clear()}};function pO(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}uO=new WeakMap;var fO,hO,mO=[],gO=class extends lO{constructor(e){super(e),rO(this,fO),rO(this,hO),this.computeCollisions=this.computeCollisions.bind(this),nO(this,hO,Vk(mO)),this.destroy=XD((()=>{const e=this.computeCollisions(),t=_k((()=>this.manager.dragOperation.position.current));if(e!==mO){const e=tO(this,fO);if(nO(this,fO,t),e&&t.x==e.x&&t.y==e.y)return}else nO(this,fO,void 0);tO(this,hO).value=e}),(()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()}))}forceUpdate(e=!0){_k((()=>{e?tO(this,hO).value=this.computeCollisions():nO(this,fO,void 0)}))}computeCollisions(e,t){const{registry:r,dragOperation:n}=this.manager,{source:o,shape:i,status:a}=n;if(!a.initialized||!i)return mO;const s=[],l=[];for(const i of null!=e?e:r.droppables){if(i.disabled)continue;if(o&&!i.accepts(o))continue;const e=null!=t?t:i.collisionDetector;if(!e)continue;l.push(i),i.shape;const r=_k((()=>e({droppable:i,dragOperation:n})));r&&(null!=i.collisionPriority&&(r.priority=i.collisionPriority),s.push(r))}return 0===l.length?mO:(s.sort(pO),s)}get collisions(){return tO(this,hO).value}};fO=new WeakMap,hO=new WeakMap;var bO=class{constructor(){this.registry=new Map}addEventListener(e,t){const{registry:r}=this,n=new Set(r.get(e));return n.add(t),r.set(e,n),()=>this.removeEventListener(e,t)}removeEventListener(e,t){const{registry:r}=this,n=new Set(r.get(e));n.delete(t),r.set(e,n)}dispatch(e,...t){const{registry:r}=this,n=r.get(e);if(n)for(const e of n)e(...t)}},vO=class extends bO{constructor(e){super(),this.manager=e}dispatch(e,t){const r=[t,this.manager];super.dispatch(e,...r)}};function yO(e,t=!0){let r=!1;return WT($T({},e),{cancelable:t,get defaultPrevented(){return r},preventDefault(){t&&(r=!0)}})}var xO,SO,wO,CO,EO,RO,PO,AO,IO,MO=class extends cO{constructor(e){super(e);let t=[];this.destroy=XD((()=>{const{dragOperation:r,collisionObserver:n}=e;r.status.initializing&&(t=[],n.enable())}),(()=>{const{collisionObserver:r,monitor:n}=e,{collisions:o}=r;if(r.isDisabled())return;const i=yO({collisions:o});if(n.dispatch("collision",i),i.defaultPrevented)return;if(((e,t)=>e.map((({id:e})=>e)).join("")===t.map((({id:e})=>e)).join(""))(o,t))return;t=o;const[a]=o;_k((()=>{var t;(null==a?void 0:a.id)!==(null==(t=e.dragOperation.target)?void 0:t.id)&&(r.disable(),e.actions.setDropTarget(null==a?void 0:a.id).then((()=>{r.enable()})))}))}))}},kO=(e=>(e[e.Lowest=0]="Lowest",e[e.Low=1]="Low",e[e.Normal=2]="Normal",e[e.High=3]="High",e[e.Highest=4]="Highest",e))(kO||{}),DO=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(DO||{});PO=[GD],RO=[YD],EO=[YD],CO=[YD],wO=[YD],SO=[YD],xO=[YD];var TO=class{constructor(){JT(AO,5,this),rO(this,IO,JT(AO,8,this,"idle")),JT(AO,11,this)}get current(){return this.value}get idle(){return"idle"===this.value}get initializing(){return"initializing"===this.value}get initialized(){const{value:e}=this;return"idle"!==e&&"initialization-pending"!==e}get dragging(){return"dragging"===this.value}get dropped(){return"dropped"===this.value}set(e){this.value=e}};AO=UT(null),IO=new WeakMap,ZT(AO,4,"value",PO,TO,IO),ZT(AO,2,"current",RO,TO),ZT(AO,2,"idle",EO,TO),ZT(AO,2,"initializing",CO,TO),ZT(AO,2,"initialized",wO,TO),ZT(AO,2,"dragging",SO,TO),ZT(AO,2,"dropped",xO,TO),XT(AO,TO);var OO,LO,qO,NO,jO,_O,zO,FO,HO,$O=class{constructor(e){this.manager=e}setDragSource(e){const{dragOperation:t}=this.manager;t.sourceIdentifier="string"==typeof e||"number"==typeof e?e:e.id}setDropTarget(e){return _k((()=>{const{dragOperation:t}=this.manager,r=null!=e?e:null;if(t.targetIdentifier===r)return Promise.resolve(!1);t.targetIdentifier=r;const n=yO({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",n),this.manager.renderer.rendering.then((()=>n.defaultPrevented))}))}start(e){return _k((()=>{const{dragOperation:t}=this.manager;null!=e.source&&this.setDragSource(e.source);if(!t.source)throw new Error("Cannot start a drag operation without a drag source");if(!t.status.idle)throw new Error("Cannot start a drag operation while another is active");const r=new AbortController,{event:n,coordinates:o}=e;Nk((()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=n?n:null,t.position.reset(o)}));const i=yO({operation:t.snapshot()});return this.manager.monitor.dispatch("beforedragstart",i),i.defaultPrevented?(t.reset(),r.abort(),r):(t.status.set("initializing"),t.controller=r,this.manager.renderer.rendering.then((()=>{if(r.signal.aborted)return;const{status:e}=t;"initializing"===e.current&&(t.status.set("dragging"),this.manager.monitor.dispatch("dragstart",{nativeEvent:n,operation:t.snapshot(),cancelable:!1}))})),r)}))}move(e){return _k((()=>{var t,r;const{dragOperation:n}=this.manager,{status:o,controller:i}=n;if(!o.dragging||!i||i.signal.aborted)return;const a=yO({nativeEvent:e.event,operation:n.snapshot(),by:e.by,to:e.to},null==(t=e.cancelable)||t);(null==(r=e.propagate)||r)&&this.manager.monitor.dispatch("dragmove",a),queueMicrotask((()=>{var t,r,o,i,s;if(a.defaultPrevented)return;const l=null!=(s=e.to)?s:{x:n.position.current.x+(null!=(r=null==(t=e.by)?void 0:t.x)?r:0),y:n.position.current.y+(null!=(i=null==(o=e.by)?void 0:o.y)?i:0)};n.position.current=l}))}))}stop(e={}){return _k((()=>{var t,r;const{dragOperation:n}=this.manager,{controller:o}=n;if(!o||o.signal.aborted)return;let i;o.abort();const a=()=>{this.manager.renderer.rendering.then((()=>{n.status.set("dropped");const e=_k((()=>{var e;return"dropping"===(null==(e=n.source)?void 0:e.status)})),t=()=>{n.controller===o&&(n.controller=void 0),n.reset()};if(e){const{source:e}=n,r=tD((()=>{"idle"===(null==e?void 0:e.status)&&(r(),t())}))}else this.manager.renderer.rendering.then(t)}))};n.canceled=null!=(t=e.canceled)&&t,this.manager.monitor.dispatch("dragend",{nativeEvent:e.event,operation:n.snapshot(),canceled:null!=(r=e.canceled)&&r,suspend:()=>{const e={resume:()=>{},abort:()=>{}};return i=new Promise(((t,r)=>{e.resume=t,e.abort=r})),e}}),i?i.then(a).catch((()=>n.reset())):a()}))}};NO=[GD],qO=[GD],LO=[GD],OO=[GD];var WO=class{constructor(e,t){rO(this,_O,JT(jO,8,this)),JT(jO,11,this),rO(this,zO,JT(jO,12,this)),JT(jO,15,this),rO(this,FO,JT(jO,16,this)),JT(jO,19,this),rO(this,HO,JT(jO,20,this)),JT(jO,23,this);const{effects:r,id:n,data:o={},disabled:i=!1,register:a=!0}=e;let s=n;this.manager=t,this.id=n,this.data=o,this.disabled=i,this.effects=()=>{var e;return[()=>{const{id:e,manager:t}=this;if(e!==s)return null==t||t.registry.register(this),()=>null==t?void 0:t.registry.unregister(this)},...null!=(e=null==r?void 0:r())?e:[]]},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this),this.destroy=this.destroy.bind(this),t&&a&&queueMicrotask(this.register)}register(){var e;return null==(e=this.manager)?void 0:e.registry.register(this)}unregister(){var e;null==(e=this.manager)||e.registry.unregister(this)}destroy(){var e;null==(e=this.manager)||e.registry.unregister(this)}};jO=UT(null),_O=new WeakMap,zO=new WeakMap,FO=new WeakMap,HO=new WeakMap,ZT(jO,4,"manager",NO,WO,_O),ZT(jO,4,"id",qO,WO,zO),ZT(jO,4,"data",LO,WO,FO),ZT(jO,4,"disabled",OO,WO,HO),XT(jO,WO);var BO,VO,UO,GO,YO,KO,XO,JO,ZO,QO,eL,tL,rL,nL,oL,iL,aL,sL,lL,uL,cL,dL,pL,fL,hL=class{constructor(){this.map=Vk(new Map),this.cleanupFunctions=new WeakMap,this.register=(e,t)=>{const r=this.map.peek(),n=r.get(e),o=()=>this.unregister(e,t);if(n===t)return o;if(n){const e=this.cleanupFunctions.get(n);null==e||e(),this.cleanupFunctions.delete(n)}const i=new Map(r);i.set(e,t),this.map.value=i;const a=XD(...t.effects());return this.cleanupFunctions.set(t,a),o},this.unregister=(e,t)=>{const r=this.map.peek();if(r.get(e)!==t)return;const n=this.cleanupFunctions.get(t);null==n||n(),this.cleanupFunctions.delete(t);const o=new Map(r);o.delete(e),this.map.value=o}}[Symbol.iterator](){return this.map.peek().values()}get value(){return this.map.value.values()}has(e){return this.map.value.has(e)}get(e){return this.map.value.get(e)}destroy(){for(const e of this){const t=this.cleanupFunctions.get(e);null==t||t(),e.destroy()}this.map.value=new Map}},mL=class extends(XO=WO,KO=[GD],YO=[GD],GO=[GD],UO=[YD],VO=[YD],BO=[YD],XO){constructor(e,t){var r=e,{modifiers:n,type:o,sensors:i}=r,a=VT(r,["modifiers","type","sensors"]);super(a,t),JT(JO,5,this),rO(this,ZO,JT(JO,8,this)),JT(JO,11,this),rO(this,QO,JT(JO,12,this)),JT(JO,15,this),rO(this,eL,JT(JO,16,this,this.isDragSource?"dragging":"idle")),JT(JO,19,this),this.type=o,this.sensors=i,this.modifiers=n,this.alignment=a.alignment}get isDropping(){return"dropping"===this.status&&this.isDragSource}get isDragging(){return"dragging"===this.status&&this.isDragSource}get isDragSource(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.source)?void 0:t.id)===this.id}};JO=UT(XO),ZO=new WeakMap,QO=new WeakMap,eL=new WeakMap,ZT(JO,4,"type",KO,mL,ZO),ZT(JO,4,"modifiers",YO,mL,QO),ZT(JO,4,"status",GO,mL,eL),ZT(JO,2,"isDropping",UO,mL),ZT(JO,2,"isDragging",VO,mL),ZT(JO,2,"isDragSource",BO,mL),XT(JO,mL);var gL=class extends(sL=WO,aL=[GD],iL=[GD],oL=[GD],nL=[GD],rL=[GD],tL=[YD],sL){constructor(e,t){var r=e,{accept:n,collisionDetector:o,collisionPriority:i,type:a}=r;super(VT(r,["accept","collisionDetector","collisionPriority","type"]),t),JT(lL,5,this),rO(this,uL,JT(lL,8,this)),JT(lL,11,this),rO(this,cL,JT(lL,12,this)),JT(lL,15,this),rO(this,dL,JT(lL,16,this)),JT(lL,19,this),rO(this,pL,JT(lL,20,this)),JT(lL,23,this),rO(this,fL,JT(lL,24,this)),JT(lL,27,this),this.accept=n,this.collisionDetector=o,this.collisionPriority=i,this.type=a}accepts(e){const{accept:t}=this;return!t||("function"==typeof t?t(e):!!e.type&&(Array.isArray(t)?t.includes(e.type):e.type===t))}get isDropTarget(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.target)?void 0:t.id)===this.id}};lL=UT(sL),uL=new WeakMap,cL=new WeakMap,dL=new WeakMap,pL=new WeakMap,fL=new WeakMap,ZT(lL,4,"accept",aL,gL,uL),ZT(lL,4,"type",iL,gL,cL),ZT(lL,4,"collisionDetector",oL,gL,dL),ZT(lL,4,"collisionPriority",nL,gL,pL),ZT(lL,4,"shape",rL,gL,fL),ZT(lL,2,"isDropTarget",tL,gL),XT(lL,gL);var bL,vL=class extends lO{constructor(e,t){super(e,t),this.manager=e,this.options=t}},yL=class extends AbortController{constructor(e,t){super(),this.constraints=e,this.onActivate=t,this.activated=!1;for(const t of null!=e?e:[])t.controller=this}onEvent(e){var t;if(!this.activated)if(null==(t=this.constraints)?void 0:t.length)for(const t of this.constraints)t.onEvent(e);else this.activate(e)}activate(e){this.activated||(this.activated=!0,this.onActivate(e))}abort(e){this.activated=!1,super.abort(e)}},xL=class{constructor(e){this.options=e,rO(this,bL)}set controller(e){nO(this,bL,e),e.signal.addEventListener("abort",(()=>this.abort()))}activate(e){var t;null==(t=tO(this,bL))||t.activate(e)}};bL=new WeakMap;var SL,wL,CL,EL,RL,PL,AL,IL,ML,kL,DL,TL,OL,LL,qL,NL,jL,_L,zL,FL=class extends lO{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},HL=class{constructor(e){this.draggables=new hL,this.droppables=new hL,this.plugins=new dO(e),this.sensors=new dO(e),this.modifiers=new dO(e)}register(e,t){if(e instanceof mL)return this.draggables.register(e.id,e);if(e instanceof gL)return this.droppables.register(e.id,e);if(e.prototype instanceof FL)return this.modifiers.register(e,t);if(e.prototype instanceof vL)return this.sensors.register(e,t);if(e.prototype instanceof lO)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof WO)return e instanceof mL?this.draggables.unregister(e.id,e):e instanceof gL?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof FL)return this.modifiers.unregister(e);if(e.prototype instanceof vL)return this.sensors.unregister(e);if(e.prototype instanceof lO)return this.plugins.unregister(e);throw new Error("Invalid instance type")}destroy(){this.draggables.destroy(),this.droppables.destroy(),this.plugins.destroy(),this.sensors.destroy(),this.modifiers.destroy()}};ML=[YD],IL=[GD],AL=[GD],PL=[GD],RL=[GD],EL=[GD],CL=[YD],wL=[YD],SL=[YD];var $L=class{constructor(e){JT(OL,5,this),rO(this,kL),rO(this,DL),rO(this,TL,new ZD(void 0,((e,t)=>e&&t?e.equals(t):e===t))),this.status=new TO,rO(this,LL,JT(OL,8,this,!1)),JT(OL,11,this),rO(this,qL,JT(OL,12,this,null)),JT(OL,15,this),rO(this,NL,JT(OL,16,this,null)),JT(OL,19,this),rO(this,jL,JT(OL,20,this,null)),JT(OL,23,this),rO(this,_L,JT(OL,24,this,[])),JT(OL,27,this),this.position=new CT({x:0,y:0}),rO(this,zL,{x:0,y:0}),nO(this,kL,e)}get shape(){const{current:e,initial:t,previous:r}=tO(this,TL);return e&&t?{current:e,initial:t,previous:r}:null}set shape(e){e?tO(this,TL).current=e:tO(this,TL).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const r=tO(this,kL).registry.draggables.get(t);return r&&nO(this,DL,r),null!=(e=null!=r?r:tO(this,DL))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=tO(this,kL).registry.droppables.get(t))?e:null}get transform(){const{x:e,y:t}=this.position.delta;let r={x:e,y:t};for(const e of this.modifiers)r=e.apply(WT($T({},this.snapshot()),{transform:r}));return nO(this,zL,r),r}snapshot(){return _k((()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:tO(this,zL),shape:this.shape?QD(this.shape):null,position:QD(this.position),status:QD(this.status),canceled:this.canceled})))}reset(){Nk((()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,tO(this,TL).reset(),this.position.reset({x:0,y:0}),nO(this,zL,{x:0,y:0}),this.modifiers=[]}))}};OL=UT(null),kL=new WeakMap,DL=new WeakMap,TL=new WeakMap,LL=new WeakMap,qL=new WeakMap,NL=new WeakMap,jL=new WeakMap,_L=new WeakMap,zL=new WeakMap,ZT(OL,2,"shape",ML,$L),ZT(OL,4,"canceled",IL,$L,LL),ZT(OL,4,"activatorEvent",AL,$L,qL),ZT(OL,4,"sourceIdentifier",PL,$L,NL),ZT(OL,4,"targetIdentifier",RL,$L,jL),ZT(OL,4,"modifiers",EL,$L,_L),ZT(OL,2,"source",CL,$L),ZT(OL,2,"target",wL,$L),ZT(OL,2,"transform",SL,$L),XT(OL,$L);var WL={get rendering(){return Promise.resolve()}};function BL(e,t){return"function"==typeof e?e(t):null!=e?e:t}var VL=class{constructor(e){var t;this.destroy=()=>{this.dragOperation.status.idle||this.actions.stop({canceled:!0}),this.dragOperation.modifiers.forEach((e=>e.destroy())),this.registry.destroy(),this.collisionObserver.destroy()};const r=null!=e?e:{},n=BL(r.plugins,[]),o=BL(r.sensors,[]),i=BL(r.modifiers,[]),a=null!=(t=r.renderer)?t:WL,s=new vO(this),l=new HL(this);this.registry=l,this.monitor=s,this.renderer=a,this.actions=new $O(this),this.dragOperation=new $L(this),this.collisionObserver=new gO(this),this.plugins=[MO,...n],this.modifiers=i,this.sensors=o;const{destroy:u}=this,c=XD((()=>{var e,t,r;const n=_k((()=>this.dragOperation.modifiers)),o=this.modifiers;n!==o&&n.forEach((e=>e.destroy())),this.dragOperation.modifiers=null!=(r=null==(t=null==(e=this.dragOperation.source)?void 0:e.modifiers)?void 0:t.map((e=>{const{plugin:t,options:r}=sO(e);return new t(this,r)})))?r:o}));this.destroy=()=>{c(),u()}}get plugins(){return this.registry.plugins.values}set plugins(e){this.registry.plugins.values=e}get modifiers(){return this.registry.modifiers.values}set modifiers(e){this.registry.modifiers.values=e}get sensors(){return this.registry.sensors.values}set sensors(e){this.registry.sensors.values=e}},UL=e=>{throw TypeError(e)},GL=(e,t,r)=>t.has(e)||UL("Cannot "+r),YL=(e,t,r)=>(GL(e,t,"read from private field"),t.get(e)),KL=(e,t,r)=>t.has(e)?UL("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),XL=(e,t,r,n)=>(GL(e,t,"write to private field"),t.set(e,r),r),JL=(e,t,r)=>(GL(e,t,"access private method"),r);function ZL(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function QL(e,t){const r=e.getAnimations();if(r.length>0)for(const e of r){if("running"!==e.playState)continue;const{effect:r}=e,n=(ZL(r)?r.getKeyframes():[]).filter(t);if(n.length>0)return[n[n.length-1],e]}return null}function eq(e){const{width:t,height:r,top:n,left:o,bottom:i,right:a}=e.getBoundingClientRect();return{width:t,height:r,top:n,left:o,bottom:i,right:a}}function tq(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function rq(e){return"nodeType"in e}function nq(e){var t,r,n;return e?tq(e)?e:rq(e)?"defaultView"in e?null!=(t=e.defaultView)?t:window:null!=(n=null==(r=e.ownerDocument)?void 0:r.defaultView)?n:window:window:window}function oq(e){const{Document:t}=nq(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function iq(e){return!(!e||tq(e))&&(e instanceof nq(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function aq(e){return e instanceof nq(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function sq(e){return e?tq(e)?e.document:rq(e)?oq(e)?e:iq(e)||aq(e)?e.ownerDocument:document:document:document}function lq(e,t){if(function(e){return"DETAILS"===e.tagName}(e)&&!1===e.open)return!1;const{overflow:r,overflowX:n,overflowY:o}=getComputedStyle(e);return"visible"===r&&"visible"===n&&"visible"===o}function uq(e,t=e.getBoundingClientRect(),r=0){var n,o,i,a,s;let l=t;const{ownerDocument:u}=e,c=null!=(n=u.defaultView)?n:window;let d=e.parentElement;for(;d&&d!==u.documentElement;){if(!lq(d)){const e=d.getBoundingClientRect(),t=r*(e.bottom-e.top),n=r*(e.right-e.left),o=r*(e.bottom-e.top),i=r*(e.right-e.left);l={top:Math.max(l.top,e.top-t),right:Math.min(l.right,e.right+n),bottom:Math.min(l.bottom,e.bottom+o),left:Math.max(l.left,e.left-i),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top}d=d.parentElement}const p=c.visualViewport,f=null!=(o=null==p?void 0:p.offsetTop)?o:0,h=null!=(i=null==p?void 0:p.offsetLeft)?i:0,m=null!=(a=null==p?void 0:p.width)?a:c.innerWidth,g=null!=(s=null==p?void 0:p.height)?s:c.innerHeight,b=r*g,v=r*m;return l={top:Math.max(l.top,f-b),right:Math.min(l.right,h+m+v),bottom:Math.min(l.bottom,f+g+b),left:Math.max(l.left,h-v),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top,l.width<0&&(l.width=0),l.height<0&&(l.height=0),l}function cq(e){return{x:e.clientX,y:e.clientY}}var dq="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function pq(e=document,t=new Set){if(t.has(e))return[];t.add(e);const r=[e];for(const n of Array.from(e.querySelectorAll("iframe, frame")))try{const e=n.contentDocument;e&&!t.has(e)&&r.push(...pq(e,t))}catch(e){}try{const n=e.defaultView;if(n&&n!==window.top){const o=n.parent;o&&o.document&&o.document!==e&&r.push(...pq(o.document,t))}}catch(e){}return r}function fq(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function hq(){var e,t;const r=fq()?window.visualViewport:null;return{x:null!=(e=null==r?void 0:r.offsetLeft)?e:0,y:null!=(t=null==r?void 0:r.offsetTop)?t:0}}function mq(e){return!(!e||!rq(e))&&e instanceof nq(e).ShadowRoot}function gq(e){if(e&&rq(e)){let t=e.getRootNode();if(mq(t))return t;if(t instanceof Document)return t}return sq(e)}function bq(e){return e.matchMedia("(prefers-reduced-motion: reduce)").matches}function vq(e){return"value"in e}function yq(e){return"CANVAS"===e.tagName}function xq(e,{x:t,y:r}){const n=e.elementFromPoint(t,r);if(function(e){return"IFRAME"===(null==e?void 0:e.tagName)}(n)){const{contentDocument:e}=n;if(e){const{left:o,top:i}=n.getBoundingClientRect();return xq(e,{x:t-o,y:r-i})}}return n}var Sq=new WeakMap;var wq=class{constructor(){this.entries=new Set,this.clear=()=>{for(const e of this.entries){const[t,{type:r,listener:n,options:o}]=e;t.removeEventListener(r,n,o)}this.entries.clear()}}bind(e,t){const r=Array.isArray(e)?e:[e],n=Array.isArray(t)?t:[t],o=[];for(const e of r)for(const t of n){const{type:r,listener:n,options:i}=t,a=[e,t];e.addEventListener(r,n,i),this.entries.add(a),o.push(a)}return function(){for(const[e,{type:t,listener:r,options:n}]of o)e.removeEventListener(t,r,n)}}};function Cq(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function Eq(e,t){const r=()=>performance.now();let n,o;return function(...i){const a=this;o?(null==n||n(),n=function(e,t){const r=setTimeout(e,t);return()=>clearTimeout(r)}((()=>{e.apply(a,i),o=r()}),t-(r()-o))):(e.apply(a,i),o=r())}}var Rq,Pq=dq?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},Aq=class extends Pq{constructor(e){super((t=>{YL(this,Rq)?e(t,this):XL(this,Rq,!0)})),KL(this,Rq,!1)}};Rq=new WeakMap;var Iq,Mq,kq,Dq,Tq,Oq,Lq,qq,Nq,jq,_q,zq=Array.from({length:100},((e,t)=>t/100)),Fq=class{constructor(e,t,r={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,KL(this,Nq),this.disconnect=()=>{var e,t,r;XL(this,Lq,!0),null==(e=YL(this,kq))||e.disconnect(),null==(t=YL(this,Dq))||t.disconnect(),YL(this,Tq).disconnect(),null==(r=YL(this,Oq))||r.remove()},KL(this,Iq,!0),KL(this,Mq),KL(this,kq),KL(this,Dq),KL(this,Tq),KL(this,Oq),KL(this,Lq,!1),KL(this,qq,Eq((()=>{var e,t,r;const{element:n}=this;if(null==(e=YL(this,Dq))||e.disconnect(),YL(this,Lq)||!YL(this,Iq)||!n.isConnected)return;const o=null!=(t=n.ownerDocument)?t:document,{innerHeight:i,innerWidth:a}=null!=(r=o.defaultView)?r:window,s=n.getBoundingClientRect(),l=uq(n,s),{top:u,left:c,bottom:d,right:p}=l,f=-Math.floor(u),h=-Math.floor(c),m=`${f}px ${-Math.floor(a-p)}px ${-Math.floor(i-d)}px ${h}px`;this.boundingClientRect=s,XL(this,Dq,new IntersectionObserver((e=>{const[t]=e,{intersectionRect:r}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:ST.intersectionRatio(r,uq(n)))&&YL(this,qq).call(this)}),{threshold:zq,rootMargin:m,root:o})),YL(this,Dq).observe(n),JL(this,Nq,jq).call(this)}),75)),this.boundingClientRect=e.getBoundingClientRect(),XL(this,Iq,function(e,t=e.getBoundingClientRect()){const{width:r,height:n}=uq(e,t);return r>0&&n>0}(e,this.boundingClientRect));let n=!0;this.callback=e=>{n&&(n=!1,r.skipInitial)||t(e)};const o=e.ownerDocument;(null==r?void 0:r.debug)&&(XL(this,Oq,document.createElement("div")),YL(this,Oq).style.background="rgba(0,0,0,0.15)",YL(this,Oq).style.position="fixed",YL(this,Oq).style.pointerEvents="none",o.body.appendChild(YL(this,Oq))),XL(this,Tq,new IntersectionObserver((t=>{var r,n;const o=t[t.length-1],{boundingClientRect:i,isIntersecting:a}=o,{width:s,height:l}=i,u=YL(this,Iq);XL(this,Iq,a),(s||l)&&(u&&!a?(null==(r=YL(this,Dq))||r.disconnect(),this.callback(null),null==(n=YL(this,kq))||n.disconnect(),XL(this,kq,void 0),YL(this,Oq)&&(YL(this,Oq).style.visibility="hidden")):YL(this,qq).call(this),a&&!YL(this,kq)&&(XL(this,kq,new Aq(YL(this,qq))),YL(this,kq).observe(e)))}),{threshold:zq,root:o})),YL(this,Iq)&&!r.skipInitial&&this.callback(this.boundingClientRect),YL(this,Tq).observe(e)}};Iq=new WeakMap,Mq=new WeakMap,kq=new WeakMap,Dq=new WeakMap,Tq=new WeakMap,Oq=new WeakMap,Lq=new WeakMap,qq=new WeakMap,Nq=new WeakSet,jq=function(){YL(this,Lq)||(JL(this,Nq,_q).call(this),function(e,t){return e===t||!(!e||!t)&&e.top==t.top&&e.left==t.left&&e.right==t.right&&e.bottom==t.bottom}(this.boundingClientRect,YL(this,Mq))||(this.callback(this.boundingClientRect),XL(this,Mq,this.boundingClientRect)))},_q=function(){if(YL(this,Oq)){const{top:e,left:t,width:r,height:n}=uq(this.element);YL(this,Oq).style.overflow="hidden",YL(this,Oq).style.visibility="visible",YL(this,Oq).style.top=`${Math.floor(e)}px`,YL(this,Oq).style.left=`${Math.floor(t)}px`,YL(this,Oq).style.width=`${Math.floor(r)}px`,YL(this,Oq).style.height=`${Math.floor(n)}px`}};var Hq,$q,Wq,Bq,Vq=new WeakMap,Uq=new WeakMap;function Gq(e,t){let r=Vq.get(e);if(!r){const t=new Fq(e,(t=>{const r=Vq.get(e);r&&r.callbacks.forEach((e=>e(t)))}),{skipInitial:!0});r={disconnect:t.disconnect,callbacks:new Set}}return r.callbacks.add(t),Vq.set(e,r),()=>{r.callbacks.delete(t),0===r.callbacks.size&&(Vq.delete(e),r.disconnect())}}var Yq=class{constructor(e,t,r){this.callback=t,KL(this,Hq),KL(this,$q,!1),KL(this,Wq),KL(this,Bq,Eq((e=>{if(!YL(this,$q)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of YL(this,Wq))if(e.target.contains(t)){this.callback(YL(this,Hq).boundingClientRect);break}}),75));const n=function(e){const t=new Set;let r=Cq(e);for(;r;)t.add(r),r=Cq(r);return t}(e),o=function(e,t){const r=new Set;for(const n of e){const e=Gq(n,t);r.add(e)}return()=>r.forEach((e=>e()))}(n,t),i=function(e,t){var r;const n=e.ownerDocument;if(!Uq.has(n)){const e=new AbortController,t=new Set;document.addEventListener("scroll",(e=>t.forEach((t=>t(e)))),{capture:!0,passive:!0,signal:e.signal}),Uq.set(n,{disconnect:()=>e.abort(),listeners:t})}const{listeners:o,disconnect:i}=null!=(r=Uq.get(n))?r:{};return o&&i?(o.add(t),()=>{o.delete(t),0===o.size&&(i(),Uq.delete(n))}):()=>{}}(e,YL(this,Bq));XL(this,Wq,n),XL(this,Hq,new Fq(e,t,r)),this.disconnect=()=>{YL(this,$q)||(XL(this,$q,!0),o(),i(),YL(this,Hq).disconnect())}}};function Kq(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function Xq(e){try{Kq(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function Jq(e){return!(!dq||!e)&&e===sq(e).scrollingElement}function Zq(e){var t,r;const n=nq(e),o=Jq(e)?function(e){var t,r,n,o;const{documentElement:i}=sq(e),a=nq(e).visualViewport,s=null!=(t=null==a?void 0:a.width)?t:i.clientWidth,l=null!=(r=null==a?void 0:a.height)?r:i.clientHeight,u=null!=(n=null==a?void 0:a.offsetTop)?n:0,c=null!=(o=null==a?void 0:a.offsetLeft)?o:0;return{top:u,left:c,right:c+s,bottom:u+l,width:s,height:l}}(e):eq(e),i=n.visualViewport,a=Jq(e)?{height:null!=(t=null==i?void 0:i.height)?t:n.innerHeight,width:null!=(r=null==i?void 0:i.width)?r:n.innerWidth}:{height:e.clientHeight,width:e.clientWidth},s={current:{x:e.scrollLeft,y:e.scrollTop},max:{x:e.scrollWidth-a.width,y:e.scrollHeight-a.height}};return{rect:o,position:s,isTop:s.current.y<=0,isLeft:s.current.x<=0,isBottom:s.current.y>=s.max.y,isRight:s.current.x>=s.max.x}}function Qq(e,t){const{isTop:r,isBottom:n,isLeft:o,isRight:i,position:a}=Zq(e),{x:s,y:l}=null!=t?t:{x:0,y:0},u=!r&&a.current.y+l>0,c=!n&&a.current.y+l<a.max.y,d=!o&&a.current.x+s>0,p=!i&&a.current.x+s<a.max.x;return{top:u,bottom:c,left:d,right:p,x:d||p,y:u||c}}Hq=new WeakMap,$q=new WeakMap,Wq=new WeakMap,Bq=new WeakMap;var eN=class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise((e=>this.resolvers.add(e)))}},tN=new eN((e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()})),rN=new eN((e=>setTimeout(e,50))),nN=new Map,oN=nN.clear.bind(nN);function iN(e,t=!1){if(!t)return aN(e);let r=nN.get(e);return r||(r=aN(e),nN.set(e,r),rN.schedule(oN),r)}function aN(e){return nq(e).getComputedStyle(e)}var sN={excludeElement:!0,escapeShadowDOM:!0};function lN(e,t=sN){const{limit:r,excludeElement:n,escapeShadowDOM:o}=t,i=new Set;return e?function t(a){if(null!=r&&i.size>=r)return i;if(!a)return i;if(oq(a)&&null!=a.scrollingElement&&!i.has(a.scrollingElement))return i.add(a.scrollingElement),i;if(o&&mq(a))return t(a.host);if(!iq(a))return aq(a)?t(a.parentElement):i;if(i.has(a))return i;const s=iN(a,!0);if(n&&a===e||function(e,t=iN(e,!0)){const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const n=t[e];return"string"==typeof n&&r.test(n)}))}(a,s)&&i.add(a),function(e,t=iN(e,!0)){return"fixed"===t.position||"sticky"===t.position}(a,s)){const{scrollingElement:e}=a.ownerDocument;return e&&i.add(e),i}return t(a.parentNode)}(e):i}function uN(e,t=window.frameElement){const r={x:0,y:0,scaleX:1,scaleY:1};if(!e)return r;let n=Cq(e);for(;n;){if(n===t)return r;const e=eq(n),{x:o,y:i}=cN(n,e);r.x=r.x+e.left,r.y=r.y+e.top,r.scaleX=r.scaleX*o,r.scaleY=r.scaleY*i,n=Cq(n)}return r}function cN(e,t=eq(e)){const r=Math.round(t.width),n=Math.round(t.height);if(iq(e))return{x:r/e.offsetWidth,y:n/e.offsetHeight};const o=iN(e,!0);return{x:(parseFloat(o.width)||r)/r,y:(parseFloat(o.height)||n)/n}}function dN(e){if("none"===e)return null;const[t,r,n="0"]=e.split(" "),o={x:parseFloat(t),y:parseFloat(r),z:parseInt(n,10)};return isNaN(o.x)&&isNaN(o.y)?null:{x:isNaN(o.x)?0:o.x,y:isNaN(o.y)?0:o.y,z:isNaN(o.z)?0:o.z}}function pN(e){var t,r,n,o,i,a,s,l,u;const{scale:c,transform:d,translate:p}=e,f=function(e){if("none"===e)return null;const t=e.split(" "),r=parseFloat(t[0]),n=parseFloat(t[1]);return isNaN(r)&&isNaN(n)?null:{x:isNaN(r)?n:r,y:isNaN(n)?r:n}}(c),h=dN(p),m=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(d);if(!m&&!f&&!h)return null;const g=null!=(t=null==f?void 0:f.x)?t:1,b=null!=(r=null==f?void 0:f.y)?r:1,v=null!=(n=null==h?void 0:h.x)?n:0,y=null!=(o=null==h?void 0:h.y)?o:0,x=null!=(i=null==m?void 0:m.x)?i:0,S=null!=(a=null==m?void 0:m.y)?a:0,w=null!=(s=null==m?void 0:m.scaleX)?s:1,C=null!=(l=null==m?void 0:m.scaleY)?l:1;return{x:v+x,y:y+S,z:null!=(u=null==h?void 0:h.z)?u:0,scaleX:g*w,scaleY:b*C}}var fN=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(fN||{}),hN={x:.2,y:.2},mN={x:10,y:10};function gN(e,t,r,n=25,o=hN,i=mN){const{x:a,y:s}=t,{rect:l,isTop:u,isBottom:c,isLeft:d,isRight:p}=Zq(e),f=uN(e),h=pN(iN(e,!0)),m=null!==h&&(null==h?void 0:h.scaleX)<0,g=null!==h&&(null==h?void 0:h.scaleY)<0,b=new ST(l.left*f.scaleX+f.x,l.top*f.scaleY+f.y,l.width*f.scaleX,l.height*f.scaleY),v={x:0,y:0},y={x:0,y:0},x=b.height*o.y,S=b.width*o.x;return(!u||g&&!c)&&s<=b.top+x&&1!==(null==r?void 0:r.y)&&a>=b.left-i.x&&a<=b.right+i.x?(v.y=g?1:-1,y.y=n*Math.abs((b.top+x-s)/x)):(!c||g&&!u)&&s>=b.bottom-x&&-1!==(null==r?void 0:r.y)&&a>=b.left-i.x&&a<=b.right+i.x&&(v.y=g?-1:1,y.y=n*Math.abs((b.bottom-x-s)/x)),(!p||m&&!d)&&a>=b.right-S&&-1!==(null==r?void 0:r.x)&&s>=b.top-i.y&&s<=b.bottom+i.y?(v.x=m?-1:1,y.x=n*Math.abs((b.right-S-a)/S)):(!d||m&&!p)&&a<=b.left+S&&1!==(null==r?void 0:r.x)&&s>=b.top-i.y&&s<=b.bottom+i.y&&(v.x=m?1:-1,y.x=n*Math.abs((b.left+S-a)/S)),{direction:v,speed:y}}function bN(e,t=!1){if("scrollIntoViewIfNeeded"in(r=e)&&"function"==typeof r.scrollIntoViewIfNeeded)return void e.scrollIntoViewIfNeeded(t);var r;if(!iq(e))return e.scrollIntoView();var n=function(e){const[t]=lN(e,{limit:1});return null!=t?t:null}(e);if(!iq(n))return;const o=iN(n,!0),i=parseInt(o.getPropertyValue("border-top-width")),a=parseInt(o.getPropertyValue("border-left-width")),s=e.offsetTop-n.offsetTop<n.scrollTop,l=e.offsetTop-n.offsetTop+e.clientHeight-i>n.scrollTop+n.clientHeight,u=e.offsetLeft-n.offsetLeft<n.scrollLeft,c=e.offsetLeft-n.offsetLeft+e.clientWidth-a>n.scrollLeft+n.clientWidth,d=s&&!l;(s||l)&&t&&(n.scrollTop=e.offsetTop-n.offsetTop-n.clientHeight/2-i+e.clientHeight/2),(u||c)&&t&&(n.scrollLeft=e.offsetLeft-n.offsetLeft-n.clientWidth/2-a+e.clientWidth/2),(s||l||u||c)&&!t&&e.scrollIntoView(d)}function vN({element:e,keyframes:t,options:r}){return e.animate(t,r).finished}function yN(e,t=iN(e).translate,r=!0){if(r){const t=QL(e,(e=>"translate"in e));if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=dN(e);if(t)return t}}}if(t){const e=dN(t);if(e)return e}return{x:0,y:0,z:0}}var xN=new eN((e=>setTimeout(e,0))),SN=new Map,wN=SN.clear.bind(SN);function CN(e,t){const r=function(e){const t=e.ownerDocument;let r=SN.get(t);if(r)return r;r=t.getAnimations(),SN.set(t,r),xN.schedule(wN);const n=r.filter((t=>ZL(t.effect)&&t.effect.target===e));return SN.set(e,n),r}(e).filter((e=>{var r,n;if(ZL(e.effect)){const{target:o}=e.effect;if(null==(n=o&&(null==(r=t.isValidTarget)?void 0:r.call(t,o)))||n)return e.effect.getKeyframes().some((e=>{for(const r of t.properties)if(e[r])return!0}))}})).map((e=>{const{effect:t,currentTime:r}=e,n=null==t?void 0:t.getComputedTiming().duration;if(!e.pending&&"finished"!==e.playState)return"number"==typeof n&&"number"==typeof r&&r<n?(e.currentTime=n,()=>{e.currentTime=r}):void 0}));if(r.length>0)return()=>r.forEach((e=>null==e?void 0:e()))}var EN=class extends ST{constructor(e,t={}){var r,n,o,i;const{frameTransform:a=uN(e),ignoreTransforms:s,getBoundingClientRect:l=eq}=t,u=CN(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||fq())&&t.contains(e)}),c=l(e);let d,{top:p,left:f,width:h,height:m}=c;const g=iN(e),b=pN(g),v={x:null!=(r=null==b?void 0:b.scaleX)?r:1,y:null!=(n=null==b?void 0:b.scaleY)?n:1},y=function(e,t){var r;const n=e.getAnimations();let o=null;if(!n.length)return null;for(const e of n){if("running"!==e.playState)continue;const n=ZL(e.effect)?e.effect.getKeyframes():[],i=n[n.length-1];if(!i)continue;const{transform:a,translate:s,scale:l}=i;if(a||s||l){const e=pN({transform:"string"==typeof a&&a?a:t.transform,translate:"string"==typeof s&&s?s:t.translate,scale:"string"==typeof l&&l?l:t.scale});e&&(o=o?{x:o.x+e.x,y:o.y+e.y,z:null!=(r=o.z)?r:e.z,scaleX:o.scaleX*e.scaleX,scaleY:o.scaleY*e.scaleY}:e)}}return o}(e,g);null==u||u(),b&&(d=function(e,t,r){const{scaleX:n,scaleY:o,x:i,y:a}=t,s=e.left-i-(1-n)*parseFloat(r),l=e.top-a-(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),u=n?e.width/n:e.width,c=o?e.height/o:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(c,b,g.transformOrigin),(s||y)&&(p=d.top,f=d.left,h=d.width,m=d.height));const x={width:null!=(o=null==d?void 0:d.width)?o:h,height:null!=(i=null==d?void 0:d.height)?i:m};if(y&&!s&&d){const e=function(e,t,r){const{scaleX:n,scaleY:o,x:i,y:a}=t,s=e.left+i+(1-n)*parseFloat(r),l=e.top+a+(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),u=n?e.width*n:e.width,c=o?e.height*o:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(d,y,g.transformOrigin);p=e.top,f=e.left,h=e.width,m=e.height,v.x=y.scaleX,v.y=y.scaleY}a&&(s||(f*=a.scaleX,h*=a.scaleX,p*=a.scaleY,m*=a.scaleY),f+=a.x,p+=a.y),super(f,p,h,m),this.scale=v,this.intrinsicWidth=x.width,this.intrinsicHeight=x.height}};function RN(e){return"style"in e&&"object"==typeof e.style&&null!==e.style&&"setProperty"in e.style&&"removeProperty"in e.style&&"function"==typeof e.style.setProperty&&"function"==typeof e.style.removeProperty}var PN=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:r}=this;if(RN(r))for(const[n,o]of Object.entries(e)){const e=`${t}${n}`;this.initial.has(e)||this.initial.set(e,r.style.getPropertyValue(e)),r.style.setProperty(e,"string"==typeof o?o:`${o}px`)}}remove(e,t=""){const{element:r}=this;if(RN(r))for(const n of e){const e=`${t}${n}`;r.style.removeProperty(e)}}reset(){const{element:e}=this;if(RN(e)){for(const[t,r]of this.initial)e.style.setProperty(t,r);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function AN(e){return!!e&&(e instanceof nq(e).Element||rq(e)&&e.nodeType===Node.ELEMENT_NODE)}function IN(e){if(!e)return!1;const{KeyboardEvent:t}=nq(e.target);return e instanceof t}var MN={};function kN(e){const t=null==MN[e]?0:MN[e]+1;return MN[e]=t,`${e}-${t}`}var DN=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const r=e.position.current;if(!r)return null;const{id:n}=t;if(!t.shape)return null;if(t.shape.containsPoint(r))return{id:n,value:1/xT.distance(t.shape.center,r),type:DO.PointerIntersection,priority:kO.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:r}=e;if(!t.shape||!(null==r?void 0:r.current))return null;const n=r.current.intersectionArea(t.shape);if(n){const{position:o}=e,i=xT.distance(t.shape.center,o.current),a=n/(r.current.area+t.shape.area-n)/i;return{id:t.id,value:a,type:DO.ShapeIntersection,priority:kO.Normal}}return null})(e)},TN=e=>{const{dragOperation:t,droppable:r}=e,{shape:n,position:o}=t;if(!r.shape)return null;const i=n?ST.from(n.current.boundingRectangle).corners:void 0,a=ST.from(r.shape.boundingRectangle).corners.reduce(((e,t,r)=>{var n;return e+xT.distance(xT.from(t),null!=(n=null==i?void 0:i[r])?n:o.current)}),0),s=a/4;return{id:r.id,value:1/s,type:DO.Collision,priority:kO.Normal}},ON=Object.create,LN=Object.defineProperty,qN=Object.defineProperties,NN=Object.getOwnPropertyDescriptor,jN=Object.getOwnPropertyDescriptors,_N=Object.getOwnPropertySymbols,zN=Object.prototype.hasOwnProperty,FN=Object.prototype.propertyIsEnumerable,HN=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),$N=e=>{throw TypeError(e)},WN=(e,t,r)=>t in e?LN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,BN=(e,t)=>{for(var r in t||(t={}))zN.call(t,r)&&WN(e,r,t[r]);if(_N)for(var r of _N(t))FN.call(t,r)&&WN(e,r,t[r]);return e},VN=(e,t)=>qN(e,jN(t)),UN=(e,t)=>LN(e,"name",{value:t,configurable:!0}),GN=(e,t)=>{var r={};for(var n in e)zN.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&_N)for(var n of _N(e))t.indexOf(n)<0&&FN.call(e,n)&&(r[n]=e[n]);return r},YN=e=>{var t;return[,,,ON(null!=(t=null==e?void 0:e[HN("metadata")])?t:null)]},KN=["class","method","getter","setter","accessor","field","value","get","set"],XN=e=>void 0!==e&&"function"!=typeof e?$N("Function expected"):e,JN=(e,t,r,n,o)=>({kind:KN[e],name:t,metadata:n,addInitializer:e=>r._?$N("Already initialized"):o.push(XN(e||null))}),ZN=(e,t)=>WN(t,HN("metadata"),e[3]),QN=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},ej=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=KN[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&NN(d<4?o:{get[r](){return nj(this,i)},set[r](e){return ij(this,i,e)}},r));d?f&&d<4&&UN(i,(d>2?"set ":d>1?"get ":"")+r):UN(o,r);for(var y=n.length-1;y>=0;y--)u=JN(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>rj(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?nj:aj)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>ij(e,o,t,4^d?i:v.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,u),l._=1,4^d||void 0===s?XN(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?$N("Object expected"):(XN(a=s.get)&&(v.get=a),XN(a=s.set)&&(v.set=a),XN(a=s.init)&&g.unshift(a));return d||ZN(e,o),v&&LN(o,r,v),f?4^d?i:v:o},tj=(e,t,r)=>t.has(e)||$N("Cannot "+r),rj=(e,t)=>Object(t)!==t?$N('Cannot use the "in" operator on this value'):e.has(t),nj=(e,t,r)=>(tj(e,t,"read from private field"),r?r.call(e):t.get(e)),oj=(e,t,r)=>t.has(e)?$N("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),ij=(e,t,r,n)=>(tj(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),aj=(e,t,r)=>(tj(e,t,"access private method"),r),sj="button",lj="draggable",uj="dnd-kit-description",cj="dnd-kit-announcement",dj={draggable:"To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item in a given direction. Press space again to drop the item in its new position, or press escape to cancel."},pj={dragstart({operation:{source:e}}){if(e)return`Picked up draggable item ${e.id}.`},dragover({operation:{source:e,target:t}}){if(e&&e.id!==(null==t?void 0:t.id))return t?`Draggable item ${e.id} was moved over droppable target ${t.id}.`:`Draggable item ${e.id} is no longer over a droppable target.`},dragend({operation:{source:e,target:t},canceled:r}){if(e)return r?`Dragging was cancelled. Draggable item ${e.id} was dropped.`:t?`Draggable item ${e.id} was dropped over droppable target ${t.id}`:`Draggable item ${e.id} was dropped.`}};function fj(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}var hj=["dragover","dragmove"],mj=class extends lO{constructor(e,t){super(e);const{id:r,idPrefix:{description:n=uj,announcement:o=cj}={},announcements:i=pj,screenReaderInstructions:a=dj,debounce:s=500}=null!=t?t:{},l=r?`${n}-${r}`:kN(n),u=r?`${o}-${r}`:kN(o);let c,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>tN.schedule(h),g=function(e,t){let r;const n=()=>{clearTimeout(r),r=setTimeout(e,t)};return n.cancel=()=>clearTimeout(r),n}(m,s),b=Object.entries(i).map((([e,t])=>this.manager.monitor.addEventListener(e,((r,n)=>{const o=p;if(!o)return;const i=null==t?void 0:t(r,n);i&&o.nodeValue!==i&&(f=i,hj.includes(e)?g():(m(),g.cancel()))})))),v=()=>{let e=[];(null==c?void 0:c.isConnected)||(c=function(e,t){const r=document.createElement("div");return r.id=e,r.style.setProperty("display","none"),r.textContent=t,r}(l,a.draggable),e.push(c)),(null==d?void 0:d.isConnected)||(d=function(e){const t=document.createElement("div");return t.id=e,t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),t.style.setProperty("position","fixed"),t.style.setProperty("width","1px"),t.style.setProperty("height","1px"),t.style.setProperty("margin","-1px"),t.style.setProperty("border","0"),t.style.setProperty("padding","0"),t.style.setProperty("overflow","hidden"),t.style.setProperty("clip","rect(0 0 0 0)"),t.style.setProperty("clip-path","inset(100%)"),t.style.setProperty("white-space","nowrap"),t}(u),p=document.createTextNode(""),d.appendChild(p),e.push(d)),e.length>0&&document.body.append(...e)},y=new Set;function x(){for(const e of y)e()}this.registerEffect((()=>{var e;y.clear();for(const t of this.manager.registry.draggables.value){const r=null!=(e=t.handle)?e:t.element;if(r){c&&d||y.add(v),fj(r)&&!fq()||r.hasAttribute("tabindex")||y.add((()=>r.setAttribute("tabindex","0"))),r.hasAttribute("role")||"button"===r.tagName.toLowerCase()||y.add((()=>r.setAttribute("role",sj))),r.hasAttribute("aria-roledescription")||y.add((()=>r.setAttribute("aria-roledescription",lj))),r.hasAttribute("aria-describedby")||y.add((()=>r.setAttribute("aria-describedby",l)));for(const e of["aria-pressed","aria-grabbed"]){const n=String(t.isDragging);r.getAttribute(e)!==n&&y.add((()=>r.setAttribute(e,n)))}const e=String(t.disabled);r.getAttribute("aria-disabled")!==e&&y.add((()=>r.setAttribute("aria-disabled",e)))}}y.size>0&&tN.schedule(x)})),this.destroy=()=>{super.destroy(),null==c||c.remove(),null==d||d.remove(),b.forEach((e=>e()))}}};var gj,bj,vj,yj,xj,Sj,wj,Cj,Ej,Rj,Pj,Aj=new Map,Ij=class extends(xj=cO,yj=[GD],vj=[YD],bj=[YD],gj=[YD],xj){constructor(e){super(e),QN(wj,5,this),oj(this,Ej),oj(this,Sj,new Set),oj(this,Cj,QN(wj,8,this,new Set)),QN(wj,11,this),this.registerEffect(aj(this,Ej,Rj))}register(e){return nj(this,Sj).add(e),()=>{nj(this,Sj).delete(e)}}addRoot(e){return _k((()=>{const t=new Set(this.additionalRoots);t.add(e),this.additionalRoots=t})),()=>{_k((()=>{const t=new Set(this.additionalRoots);t.delete(e),this.additionalRoots=t}))}}get sourceRoot(){var e;const{source:t}=this.manager.dragOperation;return gq(null!=(e=null==t?void 0:t.element)?e:null)}get targetRoot(){var e;const{target:t}=this.manager.dragOperation;return gq(null!=(e=null==t?void 0:t.element)?e:null)}get roots(){const{status:e}=this.manager.dragOperation;if(e.initializing||e.initialized){const e=[this.sourceRoot,this.targetRoot].filter((e=>null!=e));return new Set([...e,...this.additionalRoots])}return new Set}};wj=YN(xj),Sj=new WeakMap,Cj=new WeakMap,Ej=new WeakSet,Rj=function(){const{roots:e}=this,t=[];for(const r of e)for(const e of nj(this,Sj))t.push(aj(this,Ej,Pj).call(this,r,e));return()=>{for(const e of t)e()}},Pj=function(e,t){let r=Aj.get(e);r||(r=new Map,Aj.set(e,r));let n=r.get(t);if(!n){!("adoptedStyleSheets"in e)||Array.isArray(e.adoptedStyleSheets),0;const o=oq(e)?e.defaultView:e.ownerDocument.defaultView,{CSSStyleSheet:i}=null!=o?o:{};if(!i)return()=>{};const a=new i;a.replaceSync(t),e.adoptedStyleSheets.push(a),n={sheet:a,refCount:0,cleanup:()=>{var n;if(oq(e)||mq(e)&&(null==(n=e.host)?void 0:n.isConnected)){const t=e.adoptedStyleSheets.indexOf(a);-1!==t&&e.adoptedStyleSheets.splice(t,1)}r.delete(t),0===r.size&&Aj.delete(e)}},r.set(t,n)}n.refCount++;let o=!1;return()=>{o||(o=!0,n.refCount--,0===n.refCount&&n.cleanup())}},ej(wj,4,"additionalRoots",yj,Ij,Cj),ej(wj,2,"sourceRoot",vj,Ij),ej(wj,2,"targetRoot",bj,Ij),ej(wj,2,"roots",gj,Ij),ZN(wj,Ij);var Mj="data-dnd-",kj=`${Mj}dropping`,Dj="--dnd-",Tj=`${Mj}dragging`,Oj=`${Mj}placeholder`,Lj=[Tj,Oj,"popover","aria-pressed","aria-grabbing"],qj=["view-transition-name"],Nj=`\n :is(:root,:host) [${Tj}] {\n position: fixed !important;\n pointer-events: none !important;\n touch-action: none;\n z-index: calc(infinity);\n will-change: translate;\n top: var(${Dj}top, 0px) !important;\n left: var(${Dj}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${Dj}width, auto);\n max-width: var(${Dj}width, auto);\n height: var(${Dj}height, auto);\n max-height: var(${Dj}height, auto);\n transition: var(${Dj}transition) !important;\n }\n\n :is(:root,:host) [${Oj}] {\n transition: none;\n }\n\n :is(:root,:host) [${Oj}='hidden'] {\n visibility: hidden;\n }\n\n [${Tj}] * {\n pointer-events: none !important;\n }\n\n [${Tj}]:not([${kj}]) {\n translate: var(${Dj}translate) !important;\n }\n\n [${Tj}][style*='${Dj}scale'] {\n scale: var(${Dj}scale) !important;\n transform-origin: var(${Dj}transform-origin) !important;\n }\n\n @layer {\n :where([${Tj}][popover]) {\n overflow: visible;\n background: unset;\n border: unset;\n margin: unset;\n padding: unset;\n color: inherit;\n\n &:is(input, button) {\n border: revert;\n background: revert;\n }\n }\n }\n [${Tj}]::backdrop, [${Mj}overlay]:not([${Tj}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function jj(e,t="hidden"){return _k((()=>{const{element:r,manager:n}=e;if(!r||!n)return;const o=function(e,t){const r=new Map;for(const n of t)if(n.element&&(e===n.element||e.contains(n.element))){const e=`${Mj}${kN("dom-id")}`;n.element.setAttribute(e,""),r.set(n,e)}return r}(r,n.registry.droppables),i=[],a=function(e){const t="input, textarea, select, canvas, [contenteditable]",r=e.cloneNode(!0),n=Array.from(e.querySelectorAll(t));return Array.from(r.querySelectorAll(t)).forEach(((e,t)=>{const r=n[t];if(vq(e)&&vq(r)&&("file"!==e.type&&(e.value=r.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),yq(e)&&yq(r)&&r.width>0&&r.height>0){const t=e.getContext("2d");null==t||t.drawImage(r,0,0)}})),r}(r),{remove:s}=a;return function(e,t,r){for(const[n,o]of e){if(!n.element)continue;const e=`[${o}]`,i=t.matches(e)?t:t.querySelector(e);if(n.element.removeAttribute(o),!i)continue;const a=n.element;n.proxy=i,i.removeAttribute(o),Sq.set(a,i),r.push((()=>{Sq.delete(a),n.proxy=void 0}))}}(o,a,i),function(e,t="hidden"){e.setAttribute("inert","true"),e.setAttribute("tab-index","-1"),e.setAttribute("aria-hidden","true"),e.setAttribute(Oj,t)}(a,t),a.remove=()=>{i.forEach((e=>e())),s.call(a)},a}))}function _j(e,t){return e===t||Cq(e)===Cq(t)}function zj(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&AN(t)&&t.hasAttribute("popover")&&requestAnimationFrame((()=>Xq(t)))}function Fj(e){return"TR"===e.tagName}var Hj,$j,Wj,Bj,Vj,Uj,Gj,Yj=250,Kj="ease";var Xj=class extends($j=lO,Hj=[GD],$j){constructor(e,t){super(e,t),oj(this,Vj),oj(this,Bj,QN(Wj,8,this)),QN(Wj,11,this),this.state={initial:{},current:{}};const r=e.registry.plugins.get(Ij),n=null==r?void 0:r.register(Nj);if(n){const e=this.destroy.bind(this);this.destroy=()=>{n(),e()}}this.registerEffect(aj(this,Vj,Uj).bind(this,r)),this.registerEffect(aj(this,Vj,Gj))}};Wj=YN($j),Bj=new WeakMap,Vj=new WeakSet,Uj=function(e){const{overlay:t}=this;if(!t||!e)return;const r=gq(t);return r?e.addRoot(r):void 0},Gj=function(){var e,t,r;const{state:n,manager:o,options:i}=this,{dragOperation:a}=o,{position:s,source:l,status:u}=a;if(u.idle)return n.current={},void(n.initial={});if(!l)return;const{element:c,feedback:d}=l;if(!c||"none"===d||!u.initialized||u.initializing)return;const{initial:p}=n,f=null!=(e=this.overlay)?e:c,h=uN(f),m=uN(c),g=!_j(c,f),b=new EN(c,{frameTransform:g?m:null,ignoreTransforms:!g}),v=m.scaleX/h.scaleX,y=m.scaleY/h.scaleY;let{width:x,height:S,top:w,left:C}=b;g&&(x/=v,S/=y);const E=new PN(f),{transition:R,translate:P,boxSizing:A,paddingBlockStart:I,paddingBlockEnd:M,paddingInlineStart:k,paddingInlineEnd:D,borderInlineStartWidth:T,borderInlineEndWidth:O,borderBlockStartWidth:L,borderBlockEndWidth:q}=iN(c),N="clone"===d,j="content-box"===A,_=j?parseInt(k)+parseInt(D)+parseInt(T)+parseInt(O):0,z=j?parseInt(I)+parseInt(M)+parseInt(L)+parseInt(q):0,F="move"===d||this.overlay?null:jj(l,N?"clone":"hidden"),H=_k((()=>IN(o.dragOperation.activatorEvent)));if("none"!==P){const e=dN(P);e&&!p.translate&&(p.translate=e)}if(!p.transformOrigin){const e=_k((()=>s.current));p.transformOrigin={x:(e.x-C*h.scaleX-h.x)/(x*h.scaleX),y:(e.y-w*h.scaleY-h.y)/(S*h.scaleY)}}const{transformOrigin:$}=p,W=w*h.scaleY+h.y,B=C*h.scaleX+h.x;if(!p.coordinates&&(p.coordinates={x:B,y:W},1!==v||1!==y)){const{scaleX:e,scaleY:t}=m,{x:r,y:n}=$;p.coordinates.x+=(x*e-x)*r,p.coordinates.y+=(S*t-S)*n}p.dimensions||(p.dimensions={width:x,height:S}),p.frameTransform||(p.frameTransform=h);const V=p.coordinates.x-B,U=p.coordinates.y-W,G=(p.dimensions.width*p.frameTransform.scaleX-x*h.scaleX)*$.x,Y=(p.dimensions.height*p.frameTransform.scaleY-S*h.scaleY)*$.y,K={x:V/h.scaleX+G,y:U/h.scaleY+Y},X=C+K.x,J=w+K.y;f.setAttribute(Tj,"true");const Z=_k((()=>a.transform)),Q=null!=(t=p.translate)?t:{x:0,y:0},ee=Z.x*h.scaleX+Q.x,te=Z.y*h.scaleY+Q.y,re=hq();if(E.set({width:x-_,height:S-z,top:J+re.y,left:X+re.x,translate:`${ee}px ${te}px 0`,transition:R?`${R}, translate 0ms linear`:"",scale:g?`${v} ${y}`:"","transform-origin":`${100*$.x}% ${100*$.y}%`},Dj),F&&(c.insertAdjacentElement("afterend",F),null==i?void 0:i.rootElement)){("function"==typeof i.rootElement?i.rootElement(l):i.rootElement).appendChild(c)}let ne,oe,ie;Kq(f)&&(f.hasAttribute("popover")||f.setAttribute("popover","manual"),Xq(f),f.addEventListener("beforetoggle",zj));const ae=(se={placeholder:F,element:c,feedbackElement:f,frameTransform:h,transformOrigin:$,width:x,height:S,top:w,left:C,widthOffset:_,heightOffset:z,delta:K,styles:E,dragOperation:a,getElementMutationObserver:()=>ne,getSavedCellWidths:()=>ie,setSavedCellWidths:e=>{ie=e}},new ResizeObserver((()=>{var e,t;const r=new EN(se.placeholder,{frameTransform:se.frameTransform,ignoreTransforms:!0}),n=null!=(e=se.transformOrigin)?e:{x:1,y:1},o=(se.width-r.width)*n.x+se.delta.x,i=(se.height-r.height)*n.y+se.delta.y,a=hq();if(se.styles.set({width:r.width-se.widthOffset,height:r.height-se.heightOffset,top:se.top+i+a.y,left:se.left+o+a.x},Dj),null==(t=se.getElementMutationObserver())||t.takeRecords(),Fj(se.element)&&Fj(se.placeholder)){const e=Array.from(se.element.cells),t=Array.from(se.placeholder.cells);se.getSavedCellWidths()||se.setSavedCellWidths(e.map((e=>e.style.width)));for(const[r,n]of e.entries()){const e=t[r];n.style.width=`${e.getBoundingClientRect().width}px`}}se.dragOperation.shape=new EN(se.feedbackElement)})));var se;const le=new EN(f);_k((()=>a.shape=le));const ue=nq(f),ce=e=>{this.manager.actions.stop({event:e})},de=bq(ue);H&&ue.addEventListener("resize",ce),"idle"===_k((()=>l.status))&&requestAnimationFrame((()=>l.status="dragging")),F&&(ae.observe(F),ne=function(e,t,r){const n=new MutationObserver((n=>{let o=!1;for(const r of n){if(r.target!==e){o=!0;continue}if("attributes"!==r.type)continue;const n=r.attributeName;if(n.startsWith("aria-")||Lj.includes(n))continue;const i=e.getAttribute(n);if("style"===n){if(RN(e)&&RN(t)){const r=e.style;for(const e of Array.from(t.style))""===r.getPropertyValue(e)&&t.style.removeProperty(e);for(const e of Array.from(r)){if(qj.includes(e)||e.startsWith(Dj))continue;const n=r.getPropertyValue(e);t.style.setProperty(e,n)}}}else null!==i?t.setAttribute(n,i):t.removeAttribute(n)}o&&r&&(t.innerHTML=e.innerHTML)}));return n.observe(e,{attributes:!0,subtree:!0,childList:!0}),n}(c,F,N),oe=function(e,t,r){const n=new MutationObserver((n=>{for(const o of n)if(0!==o.addedNodes.length)for(const n of Array.from(o.addedNodes)){if(n.contains(e)&&e.nextElementSibling!==t)return e.insertAdjacentElement("afterend",t),void Xq(r);if(n.contains(t)&&t.previousElementSibling!==e)return t.insertAdjacentElement("beforebegin",e),void Xq(r)}}));return n.observe(e.ownerDocument.body,{childList:!0,subtree:!0}),n}(c,F,f));const pe=null==(r=o.dragOperation.source)?void 0:r.id,fe=()=>{var e;if(!H||null==pe)return;const t=o.registry.draggables.get(pe),r=null!=(e=null==t?void 0:t.handle)?e:null==t?void 0:t.element;iq(r)&&r.focus()},he=()=>{var e;if(null==ne||ne.disconnect(),null==oe||oe.disconnect(),ae.disconnect(),ue.removeEventListener("resize",ce),Kq(f)&&(f.removeEventListener("beforetoggle",zj),f.removeAttribute("popover")),f.removeAttribute(Tj),E.reset(),ie&&Fj(c)){const t=Array.from(c.cells);for(const[r,n]of t.entries())n.style.width=null!=(e=ie[r])?e:""}l.status="idle";const t=null!=n.current.translate;F&&(t||F.parentElement!==f.parentElement)&&f.isConnected&&F.replaceWith(f),null==F||F.remove()},me=null==i?void 0:i.dropAnimation,ge=this,be=XD((()=>{var e;const{transform:t,status:r}=a;if((t.x||t.y||n.current.translate)&&r.dragging){const r=null!=(e=p.translate)?e:{x:0,y:0},o={x:t.x/h.scaleX+r.x,y:t.y/h.scaleY+r.y},i=n.current.translate,s=_k((()=>a.modifiers)),l=_k((()=>{var e;return null==(e=a.shape)?void 0:e.current})),u=H&&!de?"250ms cubic-bezier(0.25, 1, 0.5, 1)":"0ms linear";if(E.set({transition:`${R}, translate ${u}`,translate:`${o.x}px ${o.y}px 0`},Dj),null==ne||ne.takeRecords(),l&&l!==le&&i&&!s.length){const e=xT.delta(o,i);a.shape=ST.from(l.boundingRectangle).translate(e.x*h.scaleX,e.y*h.scaleY)}else a.shape=new EN(f);n.current.translate=o}}),(function(){if(a.status.dropped){this.dispose(),l.status="dropping";const e=void 0!==ge.dropAnimation?ge.dropAnimation:me;let t=n.current.translate;const r=null!=t;if(t||c===f||(t={x:0,y:0}),!t||null===e)return void he();o.renderer.rendering.then((()=>{!function(e){var t,r,n,o;const{animation:i}=e;if("function"==typeof i){const t=i({element:e.element,feedbackElement:e.feedbackElement,placeholder:e.placeholder,translate:e.translate,moved:e.moved});return void Promise.resolve(t).then((()=>{e.cleanup(),requestAnimationFrame(e.restoreFocus)}))}const{duration:a=Yj,easing:s=Kj}=null!=i?i:{};Xq(e.feedbackElement);const[,l]=null!=(t=QL(e.feedbackElement,(e=>"translate"in e)))?t:[];null==l||l.pause();const u=null!=(r=e.placeholder)?r:e.element,c={frameTransform:_j(e.feedbackElement,u)?null:void 0},d=new EN(e.feedbackElement,c),p=null!=(n=dN(iN(e.feedbackElement).translate))?n:e.translate,f=new EN(u,c),h=ST.delta(d,f,e.alignment),m=p.x-h.x,g=p.y-h.y,b=Math.round(d.intrinsicHeight)!==Math.round(f.intrinsicHeight)?{minHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`],maxHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`]}:{},v=Math.round(d.intrinsicWidth)!==Math.round(f.intrinsicWidth)?{minWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`],maxWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`]}:{};e.styles.set({transition:e.transition},Dj),e.feedbackElement.setAttribute(kj,""),null==(o=e.getElementMutationObserver())||o.takeRecords(),vN({element:e.feedbackElement,keyframes:VN(BN(BN({},b),v),{translate:[`${p.x}px ${p.y}px 0`,`${m}px ${g}px 0`]}),options:{duration:bq(nq(e.feedbackElement))?0:e.moved||e.feedbackElement!==e.element?a:0,easing:s}}).then((()=>{e.feedbackElement.removeAttribute(kj),null==l||l.finish(),e.cleanup(),requestAnimationFrame(e.restoreFocus)}))}({element:c,feedbackElement:f,placeholder:F,translate:t,moved:r,transition:R,alignment:l.alignment,styles:E,animation:null!=e?e:void 0,getElementMutationObserver:()=>ne,cleanup:he,restoreFocus:fe})}))}}));return()=>{he(),be()}},ej(Wj,4,"overlay",Hj,Xj,Bj),ZN(Wj,Xj),Xj.configure=aO(Xj);var Jj,Zj,Qj,e_,t_,r_,n_,o_=Xj,i_=!0;Qj=[GD],e_=fN.Forward,Jj=[GD],Zj=fN.Reverse;var a_=class{constructor(){oj(this,r_,QN(t_,8,this,i_)),QN(t_,11,this),oj(this,n_,QN(t_,12,this,i_)),QN(t_,15,this)}isLocked(e){return e!==fN.Idle&&(null==e?this[fN.Forward]===i_&&this[fN.Reverse]===i_:this[e]===i_)}unlock(e){e!==fN.Idle&&(this[e]=false)}};t_=YN(null),r_=new WeakMap,n_=new WeakMap,ej(t_,4,e_,Qj,a_,r_),ej(t_,4,Zj,Jj,a_,n_),ZN(t_,a_);var s_,l_,u_,c_,d_,p_,f_=[fN.Forward,fN.Reverse],h_=class{constructor(){this.x=new a_,this.y=new a_}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},m_=class extends lO{constructor(e){super(e);const t=Vk(new h_);let r=null;this.signal=t,tD((()=>{const{status:n}=e.dragOperation;if(!n.initialized)return r=null,void(t.value=new h_);const{delta:o}=e.dragOperation.position;if(r){const e={x:g_(o.x,r.x),y:g_(o.y,r.y)},n=t.peek();Nk((()=>{for(const t of kT)for(const r of f_)e[t]===r&&n[t].unlock(r);t.value=n}))}r=o}))}get current(){return this.signal.peek()}};function g_(e,t){return Math.sign(e-t)}var b_=class extends(l_=cO,s_=[GD],l_){constructor(e){super(e),oj(this,c_,QN(u_,8,this,!1)),QN(u_,11,this),oj(this,d_),oj(this,p_,(()=>{if(!nj(this,d_))return;const{element:e,by:t}=nj(this,d_);t.y&&(e.scrollTop+=t.y),t.x&&(e.scrollLeft+=t.x)})),this.scroll=e=>{var t;if(this.disabled)return!1;const r=this.getScrollableElements();if(!r)return ij(this,d_,void 0),!1;const{position:n}=this.manager.dragOperation,o=null==n?void 0:n.current;if(o){const{by:n}=null!=e?e:{},i=n?{x:v_(n.x),y:v_(n.y)}:void 0,a=i?void 0:this.scrollIntentTracker.current;if(null==a?void 0:a.isLocked())return!1;for(const e of r){const r=Qq(e,n);if(r.x||r.y){const{speed:r,direction:s}=gN(e,o,i);if(a)for(const e of kT)a[e].isLocked(s[e])&&(r[e]=0,s[e]=0);if(s.x||s.y){const{x:o,y:i}=null!=n?n:s,a=o*r.x,l=i*r.y;if(a||l){const r=null==(t=nj(this,d_))?void 0:t.by;if(this.autoScrolling&&r){if(r.x&&!a||r.y&&!l)continue}return ij(this,d_,{element:e,by:{x:a,y:l}}),tN.schedule(nj(this,p_)),!0}}}}}return ij(this,d_,void 0),!1};let t=null,r=null;const n=VD((()=>{const{position:r,source:n}=e.dragOperation;if(!r)return null;const o=xq(gq(null==n?void 0:n.element),r.current);return o&&(t=o),null!=o?o:t})),o=VD((()=>{const t=n.value,{documentElement:o}=sq(t);if(!t||t===o){const{target:t}=e.dragOperation,n=null==t?void 0:t.element;if(n){const e=lN(n,{excludeElement:!1});return r=e,e}}if(t){const e=lN(t,{excludeElement:!1});return this.autoScrolling&&r&&e.size<(null==r?void 0:r.size)?r:(r=e,e)}return r=null,null}),UD);this.getScrollableElements=()=>o.value,this.scrollIntentTracker=new m_(e),this.destroy=e.monitor.addEventListener("dragmove",(t=>{!this.disabled&&!t.defaultPrevented&&IN(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()}))}};function v_(e){return e>0?fN.Forward:e<0?fN.Reverse:fN.Idle}u_=YN(l_),c_=new WeakMap,d_=new WeakMap,p_=new WeakMap,ej(u_,4,"autoScrolling",s_,b_,c_),ZN(u_,b_);var y_,x_=new class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise((e=>this.resolvers.add(e)))}}((e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()})),S_=class extends lO{constructor(e,t){super(e);const r=e.registry.plugins.get(b_);if(!r)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=tD((()=>{if(this.disabled)return;const{position:t,status:n}=e.dragOperation;if(n.dragging){if(r.scroll()){r.autoScrolling=!0;const e=setInterval((()=>x_.schedule(r.scroll)),10);return()=>{clearInterval(e)}}r.autoScrolling=!1}}))}},w_={capture:!0,passive:!0},C_=class extends cO{constructor(e){super(e),oj(this,y_),this.handleScroll=()=>{null==nj(this,y_)&&ij(this,y_,setTimeout((()=>{this.manager.collisionObserver.forceUpdate(!1),ij(this,y_,void 0)}),50))};const{dragOperation:t}=this.manager;this.destroy=tD((()=>{var e,r,n;if(t.status.dragging){const o=null!=(n=null==(r=null==(e=t.source)?void 0:e.element)?void 0:r.ownerDocument)?n:document;return o.addEventListener("scroll",this.handleScroll,w_),()=>{o.removeEventListener("scroll",this.handleScroll,w_)}}}))}};y_=new WeakMap;function E_(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var R_,P_=Object.freeze({offset:10,keyboardCodes:{start:["Space","Enter"],cancel:["Escape"],end:["Space","Enter","Tab"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},preventActivation(e,t){var r;const n=null!=(r=t.handle)?r:t.element;return e.target!==n}}),A_=class extends vL{constructor(e,t){super(e),this.manager=e,this.options=t,oj(this,R_,[]),this.listeners=new wq,this.handleSourceKeyDown=(e,t,r)=>{if(this.disabled||e.defaultPrevented)return;if(!AN(e.target))return;if(t.disabled)return;const{keyboardCodes:n=P_.keyboardCodes,preventActivation:o=P_.preventActivation}=null!=r?r:{};n.start.includes(e.code)&&this.manager.dragOperation.status.idle&&((null==o?void 0:o(e,t))||this.handleStart(e,t,r))}}bind(e,t=this.options){const r=tD((()=>{var r;const n=null!=(r=e.handle)?r:e.element,o=r=>{IN(r)&&this.handleSourceKeyDown(r,e,t)};if(n)return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}}));return r}handleStart(e,t,r){const{element:n}=t;if(!n)throw new Error("Source draggable does not have an associated element");e.preventDefault(),e.stopImmediatePropagation(),bN(n);const{center:o}=new EN(n);if(this.manager.actions.start({event:e,coordinates:{x:o.x,y:o.y},source:t}).signal.aborted)return this.cleanup();this.sideEffects();const i=sq(n),a=[this.listeners.bind(i,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,r),options:{capture:!0}}])];nj(this,R_).push(...a)}handleKeyDown(e,t,r){const{keyboardCodes:n=P_.keyboardCodes}=null!=r?r:{};if(k_(e,[...n.end,...n.cancel])){e.preventDefault();const t=k_(e,n.cancel);this.handleEnd(e,t)}else k_(e,n.up)?this.handleMove("up",e):k_(e,n.down)&&this.handleMove("down",e),k_(e,n.left)?this.handleMove("left",e):k_(e,n.right)&&this.handleMove("right",e)}handleEnd(e,t){this.manager.actions.stop({event:e,canceled:t}),this.cleanup()}handleMove(e,t){var r,n;const{shape:o}=this.manager.dragOperation,i=t.shiftKey?5:1;let a={x:0,y:0},s=null!=(n=null==(r=this.options)?void 0:r.offset)?n:P_.offset;if("number"==typeof s&&(s={x:s,y:s}),o){switch(e){case"up":a={x:0,y:-s.y*i};break;case"down":a={x:0,y:s.y*i};break;case"left":a={x:-s.x*i,y:0};break;case"right":a={x:s.x*i,y:0}}(a.x||a.y)&&(t.preventDefault(),this.manager.actions.move({event:t,by:a}))}}sideEffects(){const e=this.manager.registry.plugins.get(S_);!1===(null==e?void 0:e.disabled)&&(e.disable(),nj(this,R_).push((()=>{e.enable()})))}cleanup(){nj(this,R_).forEach((e=>e())),ij(this,R_,[])}destroy(){this.cleanup(),this.listeners.clear()}};R_=new WeakMap,A_.configure=aO(A_),A_.defaults=P_;var I_,M_=A_;function k_(e,t){return t.includes(e.code)}var D_,T_;I_=new WeakMap;D_=new WeakMap,T_=new WeakMap;var O_=class{};O_.Delay=class extends xL{constructor(){super(...arguments),oj(this,D_),oj(this,T_)}onEvent(e){switch(e.type){case"pointerdown":ij(this,T_,cq(e)),ij(this,D_,setTimeout((()=>this.activate(e)),this.options.value));break;case"pointermove":if(!nj(this,T_))return;const{x:t,y:r}=cq(e);ET({x:t-nj(this,T_).x,y:r-nj(this,T_).y},this.options.tolerance)&&this.abort();break;case"pointerup":this.abort()}}abort(){nj(this,D_)&&(clearTimeout(nj(this,D_)),ij(this,T_,void 0),ij(this,D_,void 0))}},O_.Distance=class extends xL{constructor(){super(...arguments),oj(this,I_)}onEvent(e){switch(e.type){case"pointerdown":ij(this,I_,cq(e));break;case"pointermove":if(!nj(this,I_))return;const{x:t,y:r}=cq(e),n={x:t-nj(this,I_).x,y:r-nj(this,I_).y},{tolerance:o}=this.options;if(o&&ET(n,o))return void this.abort();ET(n,this.options.value)&&this.activate(e);break;case"pointerup":this.abort()}}abort(){ij(this,I_,void 0)}};var L_,q_=Object.freeze({activationConstraints(e,t){var r;const{pointerType:n,target:o}=e;if("mouse"!==n||!AN(o)||t.handle!==o&&!(null==(r=t.handle)?void 0:r.contains(o)))return"touch"===n?[new O_.Delay({value:250,tolerance:5})]:function(e){if(!AN(e))return!1;const{tagName:t}=e;return"INPUT"===t||"TEXTAREA"===t||(r=e).hasAttribute("contenteditable")&&"false"!==r.getAttribute("contenteditable");var r}(o)&&!e.defaultPrevented?[new O_.Delay({value:200,tolerance:0})]:[new O_.Delay({value:200,tolerance:10}),new O_.Distance({value:5})]},preventActivation(e,t){var r;const{target:n}=e;return n!==t.element&&(n!==t.handle&&(!!AN(n)&&(!(null==(r=t.handle)?void 0:r.contains(n))&&Boolean(n.closest('\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n a[href],\n [contenteditable]:not([contenteditable="false"])\n ')))))}}),N_=class extends vL{constructor(e,t){super(e),this.manager=e,this.options=t,oj(this,L_,new Set),this.listeners=new wq,this.latest={event:void 0,coordinates:void 0},this.handleMove=()=>{const{event:e,coordinates:t}=this.latest;e&&t&&this.manager.actions.move({event:e,to:t})},this.handleCancel=this.handleCancel.bind(this),this.handlePointerUp=this.handlePointerUp.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}activationConstraints(e,t,r=this.options){const{activationConstraints:n=q_.activationConstraints}=null!=r?r:{};return"function"==typeof n?n(e,t):n}bind(e,t=this.options){const r=tD((()=>{var r;const n=new AbortController,{signal:o}=n,i=r=>{(function(e){if(!e)return!1;const{PointerEvent:t}=nq(e.target);return e instanceof t})(r)&&this.handlePointerDown(r,e,t)};let a=[null!=(r=e.handle)?r:e.element];(null==t?void 0:t.activatorElements)&&(a=Array.isArray(t.activatorElements)?t.activatorElements:t.activatorElements(e));for(const e of a)e&&(H_(e.ownerDocument.defaultView),e.addEventListener("pointerdown",i,{signal:o}));return()=>n.abort()}));return r}handlePointerDown(e,t,r){if(this.disabled||!e.isPrimary||0!==e.button||!AN(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{preventActivation:n=q_.preventActivation}=null!=r?r:{};if(null==n?void 0:n(e,t))return;const{target:o}=e,i=iq(o)&&o.draggable&&"true"===o.getAttribute("draggable"),a=uN(t.element),{x:s,y:l}=cq(e);this.initialCoordinates={x:s*a.scaleX+a.x,y:l*a.scaleY+a.y};const u=this.activationConstraints(e,t,r);e.sensor=this;const c=new yL(u,(e=>this.handleStart(t,e)));c.signal.onabort=()=>this.handleCancel(e),c.onEvent(e),this.controller=c;const d=pq(),p=this.listeners.bind(d,[{type:"pointermove",listener:e=>this.handlePointerMove(e,t)},{type:"pointerup",listener:this.handlePointerUp,options:{capture:!0}},{type:"pointercancel",listener:this.handleCancel},{type:"dragstart",listener:i?this.handleCancel:__,options:{capture:!0}}]);nj(this,L_).add((()=>{p(),this.initialCoordinates=void 0}))}handlePointerMove(e,t){var r,n;if(!1!==(null==(r=this.controller)?void 0:r.activated)){if(this.manager.dragOperation.status.dragging){const r=cq(e),n=uN(t.element);r.x=r.x*n.scaleX+n.x,r.y=r.y*n.scaleY+n.y,e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=r,tN.schedule(this.handleMove)}}else null==(n=this.controller)||n.onEvent(e)}handlePointerUp(e){const{status:t}=this.manager.dragOperation;if(!t.idle){e.preventDefault(),e.stopPropagation();const r=!t.initialized;this.manager.actions.stop({event:e,canceled:r})}this.cleanup()}handleKeyDown(e){"Escape"===e.key&&(e.preventDefault(),this.handleCancel(e))}handleStart(e,t){const{manager:r,initialCoordinates:n}=this;if(!n||!r.dragOperation.status.idle)return;if(t.defaultPrevented)return;if(r.actions.start({coordinates:n,event:t,source:e}).signal.aborted)return this.cleanup();t.preventDefault();const o=sq(t.target).body;o.setPointerCapture(t.pointerId);const i=AN(t.target)?[t.target,o]:o,a=this.listeners.bind(i,[{type:"touchmove",listener:__,options:{passive:!1}},{type:"click",listener:__},{type:"contextmenu",listener:__},{type:"keydown",listener:this.handleKeyDown}]);nj(this,L_).add(a)}handleCancel(e){const{dragOperation:t}=this.manager;t.status.initialized&&this.manager.actions.stop({event:e,canceled:!0}),this.cleanup()}cleanup(){this.latest={event:void 0,coordinates:void 0},nj(this,L_).forEach((e=>e())),nj(this,L_).clear()}destroy(){this.cleanup(),this.listeners.clear()}};L_=new WeakMap,N_.configure=aO(N_),N_.defaults=q_;var j_=N_;function __(e){e.preventDefault()}function z_(){}var F_=new WeakSet;function H_(e){e&&!F_.has(e)&&(e.addEventListener("touchmove",z_,{capture:!1,passive:!1}),F_.add(e))}var $_,W_,B_,V_,U_,G_,Y_,K_,X_,J_,Z_,Q_,ez,tz,rz,nz,oz,iz,az={modifiers:[],plugins:[mj,S_,class extends lO{constructor(e,t){super(e,t),this.manager=e;const r=VD((()=>{var e;return sq(null==(e=this.manager.dragOperation.source)?void 0:e.element)}));this.destroy=tD((()=>{var e;const{dragOperation:t}=this.manager,{cursor:n="grabbing",nonce:o}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=r.value,t=e.createElement("style");return o&&t.setAttribute("nonce",o),t.textContent=`* { cursor: ${n} !important; }`,e.head.appendChild(t),()=>t.remove()}}))}},o_,class extends lO{constructor(e,t){super(e,t),this.manager=e,this.destroy=tD((()=>{var e;const{dragOperation:t}=this.manager,{nonce:r}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=document.createElement("style");return r&&e.setAttribute("nonce",r),e.textContent="* { user-select: none !important; -webkit-user-select: none !important; }",document.head.appendChild(e),E_(),document.addEventListener("selectionchange",E_,{capture:!0}),()=>{document.removeEventListener("selectionchange",E_,{capture:!0}),e.remove()}}}))}}],sensors:[j_,M_]},sz=class extends VL{constructor(e={}){const t=BL(e.plugins,az.plugins),r=BL(e.sensors,az.sensors),n=BL(e.modifiers,az.modifiers);super(VN(BN({},e),{plugins:[C_,b_,Ij,...t],sensors:r,modifiers:n}))}},lz=class extends(V_=mL,B_=[GD],W_=[GD],$_=[GD],V_){constructor(e,t){var r=e,{element:n,effects:o=()=>[],handle:i,feedback:a="default"}=r,s=GN(r,["element","effects","handle","feedback"]);super(BN({effects:()=>[...o(),()=>{var e,t;const{manager:r}=this;if(!r)return;const n=(null!=(t=null==(e=this.sensors)?void 0:e.map(sO))?t:[...r.sensors]).map((e=>{const t=e instanceof vL?e:r.registry.register(e.plugin),n=e instanceof vL?void 0:e.options;return t.bind(this,n)}));return function(){n.forEach((e=>e()))}}]},s),t),oj(this,G_,QN(U_,8,this)),QN(U_,11,this),oj(this,Y_,QN(U_,12,this)),QN(U_,15,this),oj(this,K_,QN(U_,16,this)),QN(U_,19,this),this.element=n,this.handle=i,this.feedback=a}};U_=YN(V_),G_=new WeakMap,Y_=new WeakMap,K_=new WeakMap,ej(U_,4,"handle",B_,lz,G_),ej(U_,4,"element",W_,lz,Y_),ej(U_,4,"feedback",$_,lz,K_),ZN(U_,lz);var uz=class extends(Z_=gL,J_=[GD],X_=[GD],Z_){constructor(e,t){var r=e,{element:n,effects:o=()=>[]}=r,i=GN(r,["element","effects"]);const{collisionDetector:a=DN}=i,s=e=>{const{manager:t,element:r}=this;if(!r||null===e)return void(this.shape=void 0);if(!t)return;const n=new EN(r),o=_k((()=>this.shape));return n&&(null==o?void 0:o.equals(n))?o:(this.shape=n,n)},l=Vk(!1);super(VN(BN({},i),{collisionDetector:a,effects:()=>[...o(),()=>{const{element:e,manager:t}=this;if(!t)return;const{dragOperation:r}=t,{source:n}=r;l.value=Boolean(n&&r.status.initialized&&e&&!this.disabled&&this.accepts(n))},()=>{const{element:e}=this;if(l.value&&e){const t=new Yq(e,s);return()=>{t.disconnect(),this.shape=void 0}}},()=>{var e;if(null==(e=this.manager)?void 0:e.dragOperation.status.initialized)return()=>{this.shape=void 0}}]}),t),oj(this,oz),oj(this,ez,QN(Q_,8,this)),QN(Q_,11,this),oj(this,iz,QN(Q_,12,this)),QN(Q_,15,this),this.element=n,this.refreshShape=()=>s()}set element(e){ij(this,oz,e,nz)}get element(){var e;return null!=(e=this.proxy)?e:nj(this,oz,rz)}};function cz(e){var t;if(null!=e)return function(e){return null!=e&&"object"==typeof e&&"current"in e}(e)?null!=(t=e.current)?t:void 0:e}Q_=YN(Z_),ez=new WeakMap,oz=new WeakSet,iz=new WeakMap,tz=ej(Q_,20,"#element",J_,oz,ez),rz=tz.get,nz=tz.set,ej(Q_,4,"proxy",X_,uz,iz),ZN(Q_,uz);var dz="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?L:k;function pz(){const e=P(0)[1];return O((()=>{e((e=>e+1))}),[e])}function fz(e,t=[],r=!1){const n=A(e);return n.current=e,function(e,t=!1){const r=A(e.peek()),n=A(!1),o=pz();return dz((()=>tD((()=>{const i=r.current,a=e.value;if(i!==a){if(r.current=a,!n.current)return;t?W(o):o()}}))),[e,t,o]),{get value(){return n.current=!0,e.peek()}}}(R((()=>VD((()=>n.current()))),t),r)}function hz(e,t){const r=A(new Map),n=pz();return dz((()=>{if(e)return tD((()=>{var o;let i=!1,a=!1;for(const n of r.current){const[s]=n,l=_k((()=>n[1])),u=e[s];l!==u&&(i=!0,r.current.set(s,u),a=null!=(o=null==t?void 0:t(s,l,u))&&o)}i&&(a?W(n):n())}));r.current.clear()}),[e]),R((()=>e?new Proxy(e,{get(e,t){const n=e[t];return r.current.set(t,n),n}}):e),[e])}function mz(e,t){e()}function gz(e){const t=A(e);return dz((()=>{t.current=e}),[e]),t}function bz(e,t,r=k,n=Object.is){const o=A(e);r((()=>{const r=o.current;n(e,r)||(o.current=e,t(e,r))}),[t,e])}function vz(e,t){const r=A(cz(e));dz((()=>{const n=cz(e);n!==r.current&&(r.current=n,t(n))}))}var yz=Object.getOwnPropertySymbols,xz=Object.prototype.hasOwnProperty,Sz=Object.prototype.propertyIsEnumerable,wz=new sz,Cz=I(wz),Ez=N(q((({children:e},t)=>{const[r,n]=P(0),o=A(null),i=A(null),a=R((()=>({renderer:{get rendering(){var e;return null!=(e=o.current)?e:Promise.resolve()}},trackRendering(e){o.current||(o.current=new Promise((e=>{i.current=e}))),_((()=>{e(),n((e=>e+1))}))}})),[]);return dz((()=>{var e;null==(e=i.current)||e.call(i),o.current=null}),[e,r]),z(t,(()=>a)),null}))),Rz=[void 0,UD];function Pz(e){var t=e,{children:r,onCollision:n,onBeforeDragStart:o,onDragStart:i,onDragMove:a,onDragOver:s,onDragEnd:l}=t,u=((e,t)=>{var r={};for(var n in e)xz.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&yz)for(var n of yz(e))t.indexOf(n)<0&&Sz.call(e,n)&&(r[n]=e[n]);return r})(t,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);const c=A(null),{plugins:d,modifiers:p,sensors:f}=u,h=BL(d,az.plugins),m=BL(f,az.sensors),g=BL(p,az.modifiers),b=gz(o),v=gz(i),y=gz(s),x=gz(a),S=gz(l),w=gz(n),C=function(e){const t=A(null);t.current||(t.current=e());return j((()=>()=>{var e;return null==(e=t.current)?void 0:e.destroy()}),[]),t.current}((()=>{var e;return null!=(e=u.manager)?e:new sz(u)}));return k((()=>{if(!c.current)throw new Error("Renderer not found");const{renderer:e,trackRendering:t}=c.current,{monitor:r}=C;C.renderer=e;const n=[r.addEventListener("beforedragstart",(e=>{const r=b.current;r&&t((()=>r(e,C)))})),r.addEventListener("dragstart",(e=>{var t;return null==(t=v.current)?void 0:t.call(v,e,C)})),r.addEventListener("dragover",(e=>{const r=y.current;r&&t((()=>r(e,C)))})),r.addEventListener("dragmove",(e=>{const r=x.current;r&&t((()=>r(e,C)))})),r.addEventListener("dragend",(e=>{const r=S.current;r&&t((()=>r(e,C)))})),r.addEventListener("collision",(e=>{var t;return null==(t=w.current)?void 0:t.call(w,e,C)}))];return()=>n.forEach((e=>e()))}),[C]),bz(h,(()=>C&&(C.plugins=h)),...Rz),bz(m,(()=>C&&(C.sensors=m)),...Rz),bz(g,(()=>C&&(C.modifiers=g)),...Rz),rr.jsxs(Cz.Provider,{value:C,children:[rr.jsx(Ez,{ref:c,children:r}),r]})}function Az(){return T(Cz)}function Iz({children:e,className:t,dropAnimation:r,style:n,tag:o,disabled:i}){var a;const s=A(null),l=Az(),u=null!=(a=fz((()=>null==l?void 0:l.dragOperation.source),[l]).value)?a:null,c="function"==typeof i?i(u):i;k((()=>{if(!s.current||!l||c)return;const e=l.plugins.find((e=>e instanceof o_));return e?(e.overlay=s.current,()=>{e.overlay=void 0}):void 0}),[l,c]),k((()=>{if(!l)return;const e=l.plugins.find((e=>e instanceof o_));return e?(e.dropAnimation=r,()=>{e.dropAnimation=void 0}):void 0}),[l,r]);const d=R((()=>{if(!l)return null;const e=new Proxy(l.registry,{get:(e,t)=>"register"===t||"unregister"===t?Mz:e[t]});return new Proxy(l,{get:(t,r)=>"registry"===r?e:t[r]})}),[l]);return rr.jsx(Cz.Provider,{value:d,children:S(o||"div",{ref:s,className:t,style:n,"data-dnd-overlay":!0},function(){if(!u||c)return null;if("function"==typeof e)return rr.jsx(kz,{source:u,children:e});return e}())})}function Mz(){return()=>{}}function kz({children:e,source:t}){return e(hz(t))}var Dz,Tz,Oz,Lz,qz,Nz=Object.create,jz=Object.defineProperty,_z=Object.getOwnPropertyDescriptor,zz=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Fz=e=>{throw TypeError(e)},Hz=["class","method","getter","setter","accessor","field","value","get","set"],$z=e=>void 0!==e&&"function"!=typeof e?Fz("Function expected"):e,Wz=(e,t,r,n,o)=>({kind:Hz[e],name:t,metadata:n,addInitializer:e=>r._?Fz("Already initialized"):o.push($z(e||null))}),Bz=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=Hz[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,_z(o,r)),h=n.length-1;h>=0;h--)(l=Wz(c,r,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>r in e},u.get=e=>e[r],a=(0,n[h])(f[d],l),s._=1,$z(a)&&(f[d]=a);return f&&jz(o,r,f),o},Vz=(e,t,r)=>t.has(e)||Fz("Cannot "+r),Uz=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,r){return new e(t.x-r.x,t.y-r.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:r}){return new e(t,r)}},Gz=class extends(Oz=ZD,Tz=[YD],Dz=[YD],Oz){constructor(e){var t,r,n;super(Uz.from(e),((e,t)=>Uz.equals(e,t))),((e,t,r)=>{for(var n=0,o=e[t>>1],i=o&&o.length;n<i;n++)o[n].call(r)})(qz,5,this),t=this,n=0,(r=Lz).has(t)?Fz("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,n),this.velocity={x:0,y:0}}get delta(){return Uz.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const r={x:e.x-t.x,y:e.y-t.y};return r.x||r.y?Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,r=Uz.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(Vz(a=this,s=Lz,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);Nk((()=>{((e,t,r)=>{Vz(e,t,"write to private field"),t.set(e,r)})(this,Lz,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r}))}reset(e=this.defaultValue){super.reset(Uz.from(e)),this.velocity={x:0,y:0}}};qz=(e=>{var t;return[,,,Nz(null!=(t=null==e?void 0:e[zz("metadata")])?t:null)]})(Oz),Lz=new WeakMap,Bz(qz,2,"delta",Tz,Gz),Bz(qz,2,"direction",Dz,Gz),((e,t)=>{((e,t,r)=>{t in e?jz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(t,zz("metadata"),e[3])})(qz,Gz);var Yz=(e=>(e.Horizontal="x",e.Vertical="y",e))(Yz||{});function Kz(e){const t=Az();k((()=>{if(!t)return;const r=Object.entries(e).reduce(((e,[r,n])=>{if(n){const o=r.replace(/^on/,"").toLowerCase(),i=t.monitor.addEventListener(o,n);e.push(i)}return e}),[]);return()=>r.forEach((e=>null==e?void 0:e()))}),[t,e])}Object.values(Yz);const Xz=()=>{const[e,t]=P(!1);return Kz({onDragStart:()=>{t(!0)},onDragEnd:()=>{t(!1)}}),e?rr.jsx("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:100}}):null},Jz=()=>{const{flags:e}=aM(rM,(e=>e.env)),t=aM(rM,(e=>e.baseProps.layout));return!e.isEnabled("CLIENT_VNA_373_IMPROVE_TABLE_HEADERS")||void 0===t.accessibleHeader||t.accessibleHeader},Zz=(e,{atTop:t,atBottom:r},n)=>({borderLeftColor:e.grid.border,borderRightColor:e.grid.border,borderTopColor:!n&&r?e.grid.divider:e.grid.border,borderBottomColor:n&&!t||!n&&t?e.grid.divider:e.grid.border}),Qz=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n})=>(e>r?e--:t>r&&(t--,e=n),[t,e]),eF=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n,lastRowIdx:o})=>(e<n?e++:t<o&&(t++,e=r),[t,e]),tF=e=>e.atTop?2:1,rF=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],nF=e=>e?.setAttribute("tabIndex","0"),oF=e=>e?.setAttribute("tabIndex","-1"),iF=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(oF)},aF=e=>{e?.focus(),nF(e)},sF=e=>{setTimeout((()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${iE}`);aF(t)}),0)},lF=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o,direction:i})=>{iF(t);const a=((e,t,r,n,o={top:0,bottom:0})=>{const i=o.top>0,a=o.top,s=t.getElementsByClassName("sn-table-row").length-1-o.bottom,l=t.getElementsByClassName("sn-table-head-cell").length-1;let[u,c]=r;switch(e.key){case oE.Down:u<s&&u++;break;case oE.Up:u>a&&u--;break;case oE.Right:if(i)break;[u,c]="rtl"===n?Qz({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0}):eF({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case oE.Left:if(i)break;[u,c]="rtl"===n?eF({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):Qz({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0});break;case oE.Home:(RI(e)||i)&&(u=a),i||(c=0);break;case oE.End:(RI(e)||i)&&(u=s),i||(c=l);break;case oE.PageDown:u=Math.min(s,u+10);break;case oE.PageUp:u=Math.max(a,u-10)}return[u,c]})(e,t,r,i,o),s=rF(t,a);return aF(s),((e,t)=>{const r=t.getElementsByClassName("sn-table-container")[0];if(!r?.scrollTo)return;const[n,o]=e;if(n<2)r.scrollTo({top:0,behavior:"auto"});else{const e=t.getElementsByClassName("sn-table-head-cell")[0],i=t.getElementsByClassName("sn-table-row")[n].getElementsByClassName("sn-table-cell")[o];if(!i||!e)return;if(i.offsetTop-e.offsetHeight<r.scrollTop){const t=r.scrollTop-i.offsetHeight-e.offsetHeight;r.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})(a,t),n(a),{nextCell:s,nextCellCoord:a}},uF=(e,t,r,n)=>{iF(t),r(e),n.enabled&&!n.active?n.focus?.():aF(rF(t,e))},cF=(e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!!n?.contains(o),a=o?.closest(`.${tE}`);!r.enabled||i||a||t.current||!n||((e=>{const t=e.querySelector(`.${BA.First}`),r=e.querySelector(`.${BA.Second}`);t&&r&&(t.innerHTML="",r.innerHTML="")})(n),r.blur?.(!1))},dF=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10M3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0zM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0"})}))),pF=hc(Wh,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,interactions:t,hoverBackground:r,background:n})=>({...iI,...e,cursor:t.active?"pointer":"default",background:n,verticalAlign:"bottom",boxSizing:"border-box","&&:focus-visible, &&:hover:not(:has(button:hover))":{background:t.active?r:n}}))),fF=hc("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})((({align:e,dir:t})=>({minWidth:rI,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),hF=parseInt(rI,10)/2,mF=hc("div")({position:"absolute",bottom:-hF,left:`calc(50% - ${hF}px)`}),gF={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},bF=hc(op)({height:"100%"}),vF=hc("span",{shouldForwardProp:e=>"lineClamp"!==e&&"isHeadCell"!==e&&"isPagination"!==e&&"isNumeric"!==e})((({lineClamp:e,isHeadCell:t=!1,isPagination:r=!1,isNumeric:n=!1})=>n||1===e&&!t?{...gF,whiteSpace:"nowrap",display:r?"block":void 0}:{...gF,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"})),yF=hc("div")({display:"grid",gridAutoFlow:"column",width:"100%",gridAutoColumns:"1fr auto",gap:"4px"}),xF="cell-text",SF=({children:e,forwardRef:t,isNumeric:r=!1,isPagination:n=!1,isHeadCell:o=!1,lineClamp:i})=>{const{styleService:a}=aM(rM,(e=>e.baseProps));return o?rr.jsx(vF,{"data-testid":xF,ref:t,className:"sn-table-cell-text",lineClamp:a.grid.headerLineClamp,isPagination:n,isHeadCell:!0,style:{direction:r?"ltr":void 0},children:e}):rr.jsx(vF,{"data-testid":xF,ref:t,className:"sn-table-cell-text",isNumeric:r,lineClamp:i??a.grid.contentLineClamp,isPagination:n,style:{direction:r?"ltr":void 0},children:e})},wF=e=>{const{column:t,isInteractionEnabled:r,open:n,setOpen:o,isPagination:i,forwardRef:a}=e,{changeSortOrder:s,interactions:l,embed:u,styleService:c,layout:d,direction:p}=aM(rM,(e=>e.baseProps)),f=oR(sR),h=oR(aR),m=aM(rM,(e=>e.columnWidths[t.pageColIdx])),g=aM(rM,(e=>e.baseProps.model)),b=A(null),v=A(null),y=(({styleService:e,column:t,columnWidth:r})=>{const{measureText:n}=BC({fontSize:e.header.fontSize,fontFamily:e.header.fontFamily,fontWeight:nI});let o=!1,i=!1,a=!1;const s=t.isLocked,l=t.isActivelySorted,u=r-25,c=s?20:0,d=l?20:0;let p=n(t.label);return s&&p+c<=u&&(a=!0,p+=c,l&&p+d<=u&&(i=!0,p+=d)),!s&&l&&p+d<=u&&(i=!0,p+=d),p+24<=u&&(o=!0,p+=24),{shouldShowMenuIcon:o,shouldShowSortIcon:i,shouldShowLockIcon:a}})({styleService:c,column:t,columnWidth:m}),{StartIcon:x,EndIcon:S,LockIcon:w}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n},o)=>{const i="A"===e?rr.jsx(FM,{height:rI,"data-testid":"head-cell-sort-ascending-icon"}):rr.jsx(WM,{height:rI,"data-testid":"head-cell-sort-descending-icon"}),a=r?rr.jsx(fF,{align:t,dir:o,children:i}):void 0,s=n?rr.jsx(vI,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:rr.jsx(dF,{height:rI,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(t,y,p);return rr.jsxs(bI,{shouldShowMenuIcon:y.shouldShowMenuIcon,shouldShowLockIcon:y.shouldShowLockIcon,alignment:cI(t,i,p),children:[w,rr.jsxs(gI,{className:"sn-table-head-label",textAlign:t.headTextAlign,direction:p,isPagination:i,children:[x,rr.jsx(SF,{forwardRef:a,isPagination:i,isHeadCell:!0,children:t.label}),S]}),r?rr.jsxs(rr.Fragment,{children:[rr.jsx(nk,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:f,anchorRef:b,menuAvailabilityFlags:{[ek.Sorting]:!0,[ek.Searching]:!0,[ek.Selections]:!0,[ek.AdjusterHeaderSize]:!0},open:n,setOpen:o,interactions:l,sortRelatedArgs:{sortFromMenu:(e,r)=>(e.stopPropagation(),s(t,r))},searchRelatedArgs:{embed:u,listboxRef:v},selectionRelatedArgs:{app:h,qStateName:d.qStateName},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:sF},shouldShowMenuIcon:y.shouldShowMenuIcon,model:g,direction:p,isPagination:i,isAccessibleHeader:!0}),rr.jsx(mI,{ref:v,direction:p,isPagination:i}),rr.jsx(mI,{ref:b,direction:p})]}):null]})},CF=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M6 2h10V1H6zm5 5h5V6h-5zm5 5h-5v-1h5zM5 10h1v2.663a3.5 3.5 0 1 0-2.922.036l-.406.914A4.501 4.501 0 1 1 7.329 13H9v1H5z"})}))),EF=(e,t)=>e.isCyclic&&t,RF=({column:e})=>{const{direction:t,model:r,styleService:n}=aM(rM,(e=>e.baseProps)),o=x.useRef(null),[i,a]=x.useState(!1),s=fM({model:r,headerData:{...e,dimensionInfoIndex:e.colIdx}});return rr.jsxs(rr.Fragment,{children:[rr.jsx(xI,{hoverBackground:n.headerMenuHoverBackground,activeBackground:n.headerMenuActiveBackground,isActive:i,tabIndex:-1,onClick:e=>{e.stopPropagation(),a(!0)},children:rr.jsx(CF,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),rr.jsx(LM,{open:i,onClose:()=>{a(!1)},menuGroups:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),a(!1),s?.(r)},enabled:!0,icon:BM,isActive:e.groupDimensionPos===r})))}]],anchorEl:o.current,direction:t,isPagination:!1})]})},PF=e=>e.isLocked,AF=({column:e})=>{const t=oR(aR),r=aM(rM,(e=>e.baseProps.layout.qStateName)),n=aM(rM,(e=>e.baseProps.styleService));return rr.jsx(xI,{tabIndex:-1,hoverBackground:n.headerMenuHoverBackground,onClick:n=>{n.stopPropagation(),(async(e,t,r)=>{const n=NM(t??"$",r);let o;try{const t=await(e?.createSessionObject(n));o=t?.id,await(t?.unlock("/qListObjectDef"))}catch(e){console.error("Failed to unlock field from table header",e)}finally{o&&(await(e?.destroySessionObject(o))||console.error("Failed to destroy session object when unlocking field from table header"))}})(t,r,e)},children:rr.jsx(dF,{height:16,"data-testid":"head-cell-lock-icon"})})},IF=({column:e,open:t,setOpen:r,isPagination:n})=>{const{interactions:o,layout:i,direction:a,changeSortOrder:s,embed:l,styleService:u}=aM(rM,(e=>e.baseProps)),c=oR(sR),d=oR(aR),p=aM(rM,(e=>e.baseProps.model)),f=x.useRef(null),h=x.useRef(null);return rr.jsxs(xI,{tabIndex:-1,hoverBackground:u.headerMenuHoverBackground,activeBackground:u.headerMenuActiveBackground,isActive:t,order:e.isDim?void 0:-1,children:[rr.jsx(nk,{headerData:{...e,dimensionInfoIndex:e.colIdx},translator:c,anchorRef:f,menuAvailabilityFlags:{[ek.Sorting]:!0,[ek.Searching]:!0,[ek.Selections]:!0,[ek.AdjusterHeaderSize]:!0},open:t,setOpen:r,interactions:o,sortRelatedArgs:{sortFromMenu:(t,r)=>(t.stopPropagation(),s(e,r))},searchRelatedArgs:{embed:l,listboxRef:h},selectionRelatedArgs:{app:d,qStateName:i.qStateName},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:sF},shouldShowMenuIcon:!0,model:p,direction:a,isPagination:n,isAccessibleHeader:!1,iconSize:16}),rr.jsx(mI,{ref:h,direction:a,isPagination:n}),rr.jsx(mI,{ref:f,direction:a})]})},MF=e=>e.at(0)?.contentBoxSize.at(0)?.blockSize,kF=(e,t)=>{const r=A(t);r.current=t,L((()=>{if(!e.current)return()=>{};const t=new ResizeObserver((e=>{r.current(e)}));return t.observe(e.current),()=>{t.disconnect()}}),[e])},DF=hc(op)({display:"flex",alignItems:"center",justifyContent:"center",width:"100%",boxSizing:"border-box"}),TF=({children:e})=>{const t=x.useRef(null),[r,n]=P((()=>new Set(e.filter((({props:e})=>void 0!==e.prio&&e.children)).map((({key:e})=>e))))),o=R((()=>Array.from(e).sort(((e,t)=>(e.props.prio??-1/0)-(t.props.prio??-1/0)))),[e]),i=O((e=>{const t=new Set,r=e.at(0)?.contentBoxSize.at(0)?.inlineSize??0;let i=0;o.forEach((e=>{if(e.props.ignore||!e.props.children)return;const n=e.props.minWidth+1;void 0===e.props.prio||i+n<=r?i+=n:t.add(e.key)})),n((e=>e.size===t.size&&[...e].every((e=>t.has(e)))?e:t))}),[o]);return kF(t,i),rr.jsx(DF,{ref:t,"data-testid":"responsive-container",children:e.filter((e=>!r.has(e.key)))})},OF=({children:e})=>e,LF=(e,t)=>!e.isLocked&&e.isDim&&t,qF=({column:e,open:t,setOpen:r})=>{const{embed:n,direction:o,layout:i,styleService:a}=aM(rM,(e=>e.baseProps));oR(aR);const s=x.useRef(null),l=O((()=>{r(!1)}),[r]),u=qM({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:n,listboxRef:s},selectionRelatedArgs:{qStateName:i.qStateName},direction:o,onPopoverClose:l});return rr.jsx(xI,{tabIndex:-1,hoverBackground:a.headerMenuHoverBackground,activeBackground:a.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),u(),r(!0)},children:rr.jsx(YM,{ref:s,height:16,"data-testid":"head-cell-search-icon"})})},NF=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M2.4 4h11.2a.2.2 0 0 1 .16.32l-5.6 7.467a.2.2 0 0 1-.32 0L2.24 4.32A.2.2 0 0 1 2.4 4"})}))),jF=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M13.6 11H2.4a.2.2 0 0 1-.16-.32l5.6-7.467a.2.2 0 0 1 .32 0l5.6 7.467a.2.2 0 0 1-.16.32"})}))),_F=({column:e})=>{const{sortDirection:t,isActivelySorted:r}=e,n="A"===t?rr.jsx(jF,{height:rI,"data-testid":"head-cell-sort-ascending-icon"}):rr.jsx(NF,{height:rI,"data-testid":"head-cell-sort-descending-icon"});return r?rr.jsx(mF,{children:n}):void 0},zF=()=>{const e=aM(rM,(e=>e.baseProps.interactions.active)),t=aM(rM,(e=>e.baseProps.selectionsAPI?.isModal()));return!!e&&!t},FF=0,HF=1,$F=2,WF=3,BF=e=>{const{column:t,open:r,setOpen:n,isPagination:o,forwardRef:i}=e,{styleService:a}=aM(rM,(e=>e.baseProps)),s=zF(),{measureText:l}=BC(a.header),[u,c]=x.useState(!1);return rr.jsxs(TF,{children:[rr.jsx(OF,{prio:$F,minWidth:hI,children:PF(t)?rr.jsx(AF,{column:t}):null},"Lock"),rr.jsx(OF,{prio:HF,minWidth:hI,children:EF(t,s)?rr.jsx(RF,{column:t}):null},"Cyclic"),rr.jsx(OF,{ignore:!0,children:rr.jsx(_F,{column:t})},"Sort"),rr.jsx(OF,{minWidth:l(t.label)+8,children:rr.jsx(yI,{justifyContent:t.headTextAlign,children:rr.jsx(SF,{forwardRef:i,isPagination:o,isHeadCell:!0,children:t.label})})},"Text"),rr.jsx(OF,{prio:FF,minWidth:hI,children:u||LF(t,s)?rr.jsx(qF,{open:u,setOpen:c,column:t}):null},"Search"),rr.jsx(OF,{prio:WF,minWidth:hI,children:s?rr.jsx(IF,{column:t,open:r,setOpen:n,isPagination:o}):null},"Menu")]})},VF=hc("div",{shouldForwardProp:e=>"background"!==e&&"applicableStyle"!==e})((({background:e,applicableStyle:t})=>({...t,background:e}))),UF=()=>{},GF=({column:e,isPagination:t})=>{const{styleService:r,direction:n}=aM(rM,(e=>e.baseProps)),o=aM(rM,(e=>e.showRightBorder)),i=aM(rM,(e=>e.tableData.totalsPosition)),a=!1,s=Jz()?wF:BF;return rr.jsx(VF,{className:"sn-table-cell",applicableStyle:{...r.header,...Zz(r,i,!0)},style:{cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:pI(n,a,o),borderLeftWidth:fI(n,a,o),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:e.headTextAlign,boxSizing:"border-box",flexDirection:"right"===e.headTextAlign?"row-reverse":"row",userSelect:"none",width:"100%"},background:r.header.background,children:rr.jsx(s,{column:e,isInteractionEnabled:!1,isPagination:t,open:!1,setOpen:UF})})},YF=({isPagination:e})=>{const{columns:t}=aM(rM,(e=>e.tableData)),[r,n]=P();Kz({onDragStart:e=>{const t=e.operation.source?.id;n(t)},onDragEnd:()=>{}});const o=r?t.find((e=>e.id===r)):void 0;return o?rr.jsx(Iz,{children:rr.jsx("div",{style:{background:"white",height:"100%",display:"flex",position:"relative"},children:rr.jsx(GF,{column:o,isPagination:e})})}):null},KF=[j_.configure({activationConstraints:[new O_.Distance({value:5})],preventActivation:e=>{const t=e.target;return t instanceof HTMLElement&&t.classList.contains("nebula-table-utils-column-adjuster")}})],XF=az.plugins.filter((e=>e!==mj)),JF=({children:e})=>{const{model:t}=aM(rM,(e=>e.baseProps)),{columns:r}=aM(rM,(e=>e.tableData));return rr.jsx(Pz,{onDragOver:e=>{const n=e.operation.source?.id,o=e.operation.target?.id;void 0!==o&&n!==o&&(async(e,t,r,n)=>{if(!e||!("getEffectiveProperties"in e))return;const o=t.findIndex((e=>e.id===r)),i=t.findIndex((e=>e.id===n)),a=[...t],[s]=a.splice(o,1);a.splice(i,0,s);const l=[{qPath:"/qHyperCubeDef/qColumnOrder",qOp:"Replace",qValue:`[${a.map((e=>e.colIdx)).join(",")}]`}];e.applyPatches(l,!0)})(t,r,n,o)},sensors:KF,plugins:XF,children:e})};function ZF(e,t){const r=A(!1);k((()=>{r.current?e():r.current=!0}),t)}function QF(e,t){let r=null;const n=new Map,o=new Set;function i(t){let o;if(o=n.get(t),void 0!==o){if(!r?.(o[1],t))return o[0];i.remove(t)}const s=e(t);return n.set(t,[s,Date.now()]),a("CREATE",t,s),s}function a(e,t,r){for(const n of o)n({type:e,param:t,atom:r})}return i.unstable_listen=e=>(o.add(e),()=>{o.delete(e)}),i.getParams=()=>n.keys(),i.remove=e=>{{if(!n.has(e))return;const[t]=n.get(e);n.delete(e),a("REMOVE",e,t)}},i.setShouldRemove=e=>{if(r=e,r)for(const[e,[t,o]]of n)r(o,e)&&(n.delete(e),a("REMOVE",e,t))},i}const eH=UE(VA),tH=QF((e=>UE((t=>{const[r,n]=t(eH);return 0===r&&n===e})))),rH=()=>{const{downloadService:e}=aM(rM,(e=>e.baseProps));k((()=>{e.notifyIsDoneRendering()}))},nH=(e,t,r)=>{const{rootElement:n,keyboard:o}=aM(rM,(e=>e.baseProps)),{totalColumnCount:i,totalRowCount:a,rows:s,totalsPosition:l}=aM(rM,(e=>e.tableData)),[u,c]=function(e){return[oR(e),iR(e)]}(eH),d=aM(rM,(e=>e.baseProps.selectionsAPI?.isModal()));ZF((()=>{const r=((e,t,r=!1)=>{const n=[tF(t),e[1]];return r?n:VA})(u,l,d);(({resetCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(iF(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=rF(t,e);r.current?(aF(s),r.current=!1):nF(s),n&&(a({keys:[s?.textContent??""]}),EI(a,s,n))})({resetCellCoord:r,rootElement:n,shouldRefocus:e,setFocusedCellCoord:c,isSelectionMode:d,keyboard:o,announce:t})}),[s.length,a,i,r])},oH=(e,t,r)=>{k((()=>{const n=e.current;if(!n)return;const o=e=>{((e,t,r)=>{if(0===e.deltaX)return;e.stopPropagation();const n=r.scrollWidth-r.offsetWidth;let{scrollLeft:o}=r,i=o+e.deltaX;t&&(i=n+i),n>0&&(i<0||i>n+1)&&(e.preventDefault(),o=t?Math.min(0,Math.min(n,i)):Math.max(0,Math.min(n,i)))})(e,"rtl"===t,n)},i=e=>{r.scrollLeft=e.currentTarget?.scrollLeft||0};return n.addEventListener("wheel",o),n.addEventListener("scroll",i),()=>{n.removeEventListener("wheel",o),n.removeEventListener("scroll",i)}}),[e,t,r])},iH=e=>{LC(e),RI(e)&&fE(e.currentTarget)},aH=e=>{MI(e.evt)&&(LC(e.evt),lF(e))},sH=e=>{const{evt:t,totalsPosition:r,cell:n,isSelectionMode:o}=e;if(!MI(t))return;LC(t);const i=((e,t)=>[e.pageRowIdx+tF(t),e.pageColIdx])(n,r),a=((e,t)=>({top:e?tF(t):0,bottom:e&&t.atBottom?1:0}))(o,r),{nextCell:s,nextCellCoord:l}=lF({...e,cellCoord:i,allowedRows:a});l[0]!==i[0]&&(({evt:e,isSelectionsEnabled:t,cell:r,selectionDispatch:n,announce:o,isSelectionMode:i,nextCell:a})=>{e.shiftKey&&t&&r.isSelectable?n({type:$A.SelectMultiAdd,payload:{cell:r,evt:e,announce:o}}):EI(o,a,i)})({...e,nextCell:s})},lH=e=>{const{evt:t}=e;PI(t)?(({evt:e,totalRowCount:t,rowsPerPage:r,page:n,updateShouldRefocus:o,handleChangePage:i})=>{LC(e);const a=Math.ceil(t/r)-1;e.key===oE.Right&&n<a?(o(),i(n+1)):e.key===oE.Left&&n>0&&(o(),i(n-1))})(e):t.key===oE.Esc?(({evt:e,keyboard:t,isSelectionMode:r})=>{t.enabled&&!r&&(LC(e),t.blur?.(!0))})(e):AI(t.key)&&LC(t)},uH=e=>{const{evt:t,selectionsAPI:r}=e;if(t.currentTarget.classList.contains(HA.Disabled))return void LC(t);const n={...e,isSelectionMode:!!r?.isModal()};switch(t.key){case oE.Space:(({evt:e,cell:t,isSelectionsEnabled:r,selectionDispatch:n,announce:o})=>{LC(e),t.isSelectable&&r&&n({type:$A.Select,payload:{cell:t,evt:e,announce:o}})})(n);break;case oE.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{LC(r),e&&(t?.confirm(),n({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(n);break;case oE.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{e&&(LC(r),t?.cancel(),n({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(n);break;case oE.C:iH(t);break;case oE.Tab:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{const o=e.shiftKey||!n;t.enabled&&r&&o&&(LC(e),OC(e.currentTarget,t,e.shiftKey))})(n);break;default:sH(n)}},cH=e=>{const t=aM(rM,(e=>e.isAdjustingWidth)),r=aM(rM,(e=>e.setXScrollbarWidth)),n=aM(rM,(e=>e.setYScrollbarWidth)),o=aM(rM,(e=>e.eventEmitter)),i=A();kF(e,(a=>{const s=()=>{if(e.current){const e=a.at(0)?.borderBoxSize.at(0)?.inlineSize??0,t=a.at(0)?.borderBoxSize.at(0)?.blockSize??0,o=a.at(0)?.contentBoxSize.at(0)?.inlineSize??0,i=t-(a.at(0)?.contentBoxSize.at(0)?.blockSize??0);n(e-o),r(i)}};t?(i.current&&o.off("done-adjusting-column-width",i.current),o.once("done-adjusting-column-width",s),i.current=s):s()})),k((()=>{const e=o;return()=>{i.current&&e.off("done-adjusting-column-width",i.current)}}),[o])},dH=hc("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),pH=hc(Gh,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"}))),fH=hc(Dh,{shouldForwardProp:e=>"borderRight"!==e})((({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e}))),hH=()=>rr.jsxs(rr.Fragment,{children:[rr.jsx(dH,{className:BA.First,"data-testid":BA.First,"aria-live":"polite","aria-atomic":"true"}),rr.jsx(dH,{className:BA.Second,"data-testid":BA.Second,"aria-live":"polite","aria-atomic":"true"})]}),mH=e=>{const t=A(new Map),r=A(null);k((()=>{r.current=e(t.current),t.current.forEach(((e,t)=>{r.current?.observe(t)}));const n=t.current,o=r.current;return()=>{o.disconnect(),n.clear()}}),[e,r,t]);const n=O(((e,n)=>{t.current.set(e,n),r.current?.observe(e)}),[t,r]),o=O((e=>{t.current.delete(e),r.current?.unobserve(e)}),[r,t]);return R((()=>({addTask:n,removeTask:o})),[n,o])},gH=e=>new ResizeObserver((t=>{t.forEach((t=>{const r=e.get(t.target);r?.(t)}))})),bH=()=>mH(gH),vH=({selectionsAPI:e,selectionDispatch:t,updateShouldRefocus:r,keyboard:n,tableWrapperRef:o})=>{k((()=>{const i=()=>{t({type:$A.Reset})},a=()=>{t({type:$A.Clear})},s=()=>{o.current?.contains(document.activeElement)?r():n.enabled&&n.blur?.(!0),i()};return e?.on("deactivated",i),e?.on("canceled",i),e?.on("confirmed",s),e?.on("cleared",a),()=>{e?.removeListener("deactivated",i),e?.removeListener("canceled",i),e?.removeListener("confirmed",s),e?.removeListener("cleared",a)}}),[e,n,t,r,o])},yH=e=>{e.stopPropagation()},xH=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:yH,color:AC.LINK,style:{pointerEvents:r.active?"auto":"none",color:n??void 0,opacity:r.active&&r.passive||n?void 0:.4}}),SH=({href:e,text:t,interactions:r,color:n})=>rr.jsx(rf,{...xH({href:e,text:t,interactions:r,color:n}),children:t}),wH=window.requestIdleCallback??(e=>setTimeout((()=>{e({})}),0)),CH=window.cancelIdleCallback??(e=>{clearTimeout(e)}),EH="qDimensionInfo/0",RH="qMeasureInfo/0",PH="x",AH="y",IH=e=>({key:"bars",type:"box",data:{extract:{field:EH,props:{start:0,end:{field:RH}}}},settings:{major:{scale:PH},minor:{scale:AH},box:{maxWidthPx:8,fill:{fn:e}}}}),MH=e=>({key:"p",type:"point",data:{extract:{field:EH,props:{y:{field:RH}}}},settings:{x:{scale:PH},y:{scale:AH},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),kH=({qNum:e})=>void 0===e?0:Math.sign(e),DH=(e,t)=>{const{primary:r,nil:n,others:o}=e.getDataColorSpecials(),i=DC(e,t?.negative,r),a=DC(e,t?.positive,r);return{key:"pos-neg",type:"box",data:{extract:{field:EH,props:{start:0,end:{field:RH,value:kH}}}},settings:{major:{scale:PH},minor:{scale:AH},box:{maxWidthPx:8,fill:{fn:e=>-2===e.datum.value?n:-3===e.datum.value?o:0===e.datum.end.value?"#DDDDDD":Math.sign(e.datum.end.value)<0?i:a}}}}},TH=(e,{type:t,showDots:r,colors:n,colorMin:o,colorMax:i})=>{const a=((e,t,r,n)=>{const{primary:o,nil:i,others:a}=e.getDataColorSpecials(),s=DC(e,t?.main,o),l=DC(e,t?.max,s),u=DC(e,t?.min,s),c=DC(e,t?.first,s),d=DC(e,t?.last,s);return e=>{const t=AH in e.datum?AH:"end";return-2===e.datum.value?i:-3===e.datum.value?a:e.datum[t].value>=n?l:e.datum[t].value<=r?u:e.data.items.at(0)===e.datum?c:e.data.items.at(-1)===e.datum?d:s}})(e,n,o,i);switch(t){case"bars":return[IH(a)];case"dots":return[MH(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:EH,props:{v:{field:RH}}}},settings:{coordinates:{major:{scale:PH},minor:{scale:AH,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(DC(e,n?.main,e.getDataColorSpecials().primary));return r?[t,MH(a)]:[t]}case"posNeg":return[DH(e,n)];default:return[]}},OH=e=>({qDimensionInfo:[{qFallbackTitle:"",qCardinal:1}],qMeasureInfo:[{qFallbackTitle:""}],qDataPages:[{qArea:{qTop:0,qLeft:0,qHeight:e.length,qWidth:2},qMatrix:e}],qEffectiveInterColumnSortOrder:[0,1],qSize:{qcx:2,qcy:e.length},qMode:"S"}),LH=(e,t,r,n)=>({y:{data:{field:RH},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:r},x:{data:{extract:{field:EH}},paddingInner:.3,paddingOuter:0,invert:"rtl"===n,align:"rtl"===n?1:0,maxPxStep:12}}),qH=V();qH.use(B),qH.renderer.prio(["canvas"]);const NH={resolve:()=>{},promise:{}},jH=({chart:e,element:t,requestId:r,theme:n,isSnapshot:o,direction:i,miniChartData:a,downloadService:s})=>{const{resolveChartPromise:l,addChartPromiseToQueue:u}=(e=>{const t=A(e.isDownloadedAsPDForImage?Mt():NH);return{addChartPromiseToQueue:O((()=>{e.waitForPromise(t.current.promise)}),[e]),resolveChartPromise:t.current.resolve}})(s);return{renderChartWithRequestIdleCallback:O((()=>{if(null===t.current||null!==e.current)return;u();r.current=wH((()=>{t.current&&(e.current=(({element:e,theme:t,isSnapshot:r,miniChartData:n,onChartRendered:o,direction:i})=>{const{type:a,qMatrix:s,minY:l,maxY:u}=n;return qH.chart({element:e,data:{type:"q",key:"qHyperCube",data:OH(s)},settings:{scales:LH(a,l,u,i),components:TH(t,n),strategy:r?{size:{width:e.offsetWidth,height:e.offsetHeight}}:void 0},mounted:()=>{o()}})})({element:t.current,theme:n,isSnapshot:o,miniChartData:a,direction:i,onChartRendered:l}))}),{timeout:2e3})}),[t,e,u,r,n,o,a,i,l]),safeCancelIdleCallback:O((()=>{null!==r.current&&CH(r.current),r.current=null,l()}),[r,l])}},_H=e=>{const t=A(null),r=A(!1);return O((n=>{const o=n.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(CH(e.current),e.current=null)})(t),r.current?0!==o?null!==e.current&&(t.current=wH((()=>{e.current?.update()}),{timeout:2e3})):r.current=!1:r.current=!0}),[e])},zH=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:r,isSnapshot:n,miniChartData:o,downloadService:i,direction:a})=>{const s=A(null),l=A(null),u=A(null),{renderChartWithRequestIdleCallback:c,safeCancelIdleCallback:d}=jH({element:s,chart:l,requestId:u,theme:r,isSnapshot:n,direction:a,miniChartData:o,downloadService:i});return(({element:e,intersectionObserverTaskScheduler:t,safeCancelIdleCallback:r,renderChartWithRequestIdleCallback:n,chart:o})=>{const i=O((e=>{e.isIntersecting?n():r()}),[n,r]);k((()=>{if(!e.current||!t)return()=>{};const n=e.current;return t.addTask(n,i),()=>{t.removeTask(n),r(),o.current?.destroy(),o.current=null}}),[o,e,t,r,i])})({element:s,intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:l}),(({renderChartWithRequestIdleCallback:e,safeCancelIdleCallback:t,chart:r,intersectionObserverTaskScheduler:n})=>{k((()=>n?()=>{}:(e(),()=>{t(),r.current?.destroy(),r.current=null})),[n,t,e,r])})({intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:l}),(({element:e,chart:t,resizeObserverTaskScheduler:r})=>{const n=_H(t);k((()=>{const t=e.current;return t?(r.addTask(t,n),()=>{r.removeTask(t)}):()=>{}}),[e,n,r])})({element:s,chart:l,resizeObserverTaskScheduler:t}),s},FH=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=zH({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return rr.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},HH=e=>{let t="center",r="center";return"flex-start"===e?.vertical?t="top":"flex-end"===e?.vertical&&(t="bottom"),"flex-start"===e?.horizontal?r="left":"flex-end"===e?.horizontal&&(r="right"),`${r} ${t}`},$H=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},WH=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const{direction:o}=aM(rM,(e=>e.baseProps)),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,u="fitHeight"===s,c=rr.jsx("img",{src:i,alt:a,style:{...t,width:u?"auto":"100%",height:"100%",maxHeight:r,objectFit:$H(s),objectPosition:HH(l),overflow:"hidden"}});return n?rr.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:u?r:"100%",overflow:"hidden",display:"flex",justifyContent:u?sI(o,e):void 0},children:c}):c},BH=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})}))),VH=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})}))),UH=q(((e,t)=>rr.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[rr.jsx("path",{d:"M3 9v6.5a.5.5 0 1 1-1 0V.5a.5.5 0 0 1 1 0V1q2.441.639 3.667.639c1.225 0 1.774-.995 3.87-1.196q1.972-.19 3.297.47A.3.3 0 0 1 14 1.18v7.344a.3.3 0 0 1-.417.277q-1.338-.565-3.045-.416c-1.98.172-2.083 1.107-3.871 1.253Q4.879 9.785 3 9"}),rr.jsx("use",{fillRule:"evenodd"})]}))),GH=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M13.9 7.4c-1 1.3-.6 1.5-1.5 4.1-.5 1.8-1.2 2.9-1.7 3.6q-.45.6-.9.9H4.2c-1 0-1.6-.5-1.9-1-.2-.3-.3-.6-.3-1V4.2c0-.4.3-.7.7-.7s.7.3.7.7v3.6l.9-.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v5.1l1.1-.2V.7C6.7.3 7 0 7.4 0s.7.3.7.7v5.9l1.1.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v7.7s.1 0 .1-.2l.6-1.4c1.1-2.1 3.1-1.1 2.6-.3"})}))),YH=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M5 13h6v1.5c0 .3-.2.5-.5.5H10v.5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5V15h-.5c-.3 0-.5-.2-.5-.5zm0-1c0-2-3-3-3-7 0-3 3-5 6-5s6 2 6 5c0 4-3 4-3 7H5m-.5-7c.3 0 .5-.2.5-.5s.2-.7.5-1 .6-.5 1-.5c.3 0 .5-.2.5-.5S6.8 2 6.5 2c-.6 0-1.2.3-1.7.8S4 3.9 4 4.5c0 .3.2.5.5.5"})}))),KH=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8m4.5 9c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6h-9c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7z"})}))),XH=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M2 7.5h12v1H2z"})}))),JH=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M9 7h7a7.004 7.004 0 0 0-7-7zm1-5.917A6.005 6.005 0 0 1 14.917 6H10zM14 9H7V2a7.002 7.002 0 0 0 0 14 7 7 0 0 0 7-7m-8 1h6.917A6.002 6.002 0 0 1 1 9a6 6 0 0 1 5-5.917z"})}))),ZH=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M9 9h3.5c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6H9V3.5c0-.25-.3-.5-.6-.5h-.7c-.4 0-.7.25-.7.5V7H3.5c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7H7v3.5c0 .25.3.5.6.5h.8c.3 0 .6-.25.6-.5zM8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})}))),QH=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"m8.418 1.007.042.08 1.788 4.217 4.571.388a.5.5 0 0 1 .348.811l-.063.065-3.472 3.008 1.043 4.47a.5.5 0 0 1-.664.581l-.081-.04L8 12.217l-3.93 2.372a.5.5 0 0 1-.757-.453l.012-.089 1.043-4.47L.896 6.568a.5.5 0 0 1 .196-.86l.089-.016 4.571-.388L7.54 1.086a.5.5 0 0 1 .878-.08Z"})}))),e$=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M13 14H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1"})}))),t$={m:q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})}))),"ï":QH,R:jF,S:NF,T:q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M11 2.4v11.2a.2.2 0 0 1-.32.16l-7.467-5.6a.2.2 0 0 1 0-.32l7.467-5.6a.2.2 0 0 1 .32.16"})}))),U:q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M4 13.6V2.4a.2.2 0 0 1 .32-.16l7.467 5.6a.2.2 0 0 1 0 .32l-7.467 5.6A.2.2 0 0 1 4 13.6"})}))),P:ZH,Q:KH,"è":q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M14.98 15H1.04c-1.002 0-1.303-.7-.802-1.5l6.82-11.9c.5-.8 1.303-.8 1.804 0l6.92 11.9c.501.8.1 1.5-.803 1.5M8.5 5h-1c-.3 0-.5.2-.5.5V9c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5V5.5c0-.3-.2-.5-.5-.5m-1 6c-.3 0-.5.2-.5.5v1c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5v-1c0-.3-.2-.5-.5-.5z"})}))),"¢":GH,"©":UH,"23F4":YH,2013:e$,"&":JH,add:BH,"minus-2":XH,dot:VH},r$=({size:e,iconKey:t,color:r,pvStyle:n})=>{const o=t&&t$[t];return o&&rr.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n},children:rr.jsx(o,{style:{height:e}})})},n$=({representation:e,cellValue:t,paginationCellAlign:r})=>{const{styleService:n,theme:o,direction:i}=aM(rM,(e=>e.baseProps)),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=s??{},c=QA(e,t,i,o),d=(e=>parseInt(e||rI,10))(n.measure.values.fontSize),{color:p,iconKey:f,position:h}=c||{};return l?rr.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:r??"flex-end",alignItems:"center",gap:"2px",overflow:"hidden",color:u?p:void 0},children:["left"===h&&r$({size:d,iconKey:f,color:p}),rr.jsx(SF,{isNumeric:!0,children:a}),"right"===h&&r$({size:d,iconKey:f,color:p})]}):r$({size:d,iconKey:f,color:p})},o$=(e,t)=>e.contentStaticLineCount?e.contentLineHeight*(t??e.grid.contentLineClamp):e.contentLineHeight,i$=({forwardRef:e,cell:t,style:r,virtualizedCell:n,lineClamp:o,intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,paginationCellAlign:s})=>{const{interactions:l,styleService:u,theme:c,layout:d,downloadService:p,direction:f}=aM(rM,(e=>e.baseProps)),h=aM(rM,(e=>e.selectionState.api?.isActive()));let m=t.representation.text;if(t.representation.type!==OR.Link||h||(m=rr.jsx(SH,{href:t.representation.url,text:t.representation.text,interactions:l,color:r.cellForegroundColor})),t.representation.type===OR.Image)return rr.jsx(WH,{representation:t.representation,textStyle:r,maxImageHeight:o$(u,o),wrapInContainer:!n});const g="string"==typeof(b=t.qIsNull?t.representation.text:t.qNum)&&b.length>0||"number"==typeof b?+b:NaN;var b;return t.representation.type!==OR.Indicator||Number.isNaN(g)?t.representation.type===OR.MiniChart&&t.representation.miniChart&&!t.isNull?rr.jsx(FH,{height:o$(u,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:c,isSnapshot:!!d.snapshotData,direction:f,downloadService:p}):rr.jsx(SF,{forwardRef:e,isNumeric:t.isNumeric,lineClamp:o,isPagination:!n,children:m}):rr.jsx(n$,{representation:t.representation,cellValue:g,paginationCellAlign:n?void 0:s})},a$=()=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"0.75em",height:"0.75em",children:rr.jsx("path",{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"})}),s$=hc("div")({"& path":{stroke:"none !important"}}),l$=({children:e,cellSelectionState:t})=>t===HA.Selected?rr.jsxs(yF,{children:[e,rr.jsx(s$,{children:rr.jsx(a$,{})})]}):e,u$=e=>{const t=function(){const e=Az(),t=fz((()=>null==e?void 0:e.dragOperation.source),[e]),r=fz((()=>null==e?void 0:e.dragOperation.target),[e]);return{get source(){return t.value},get target(){return r.value}}}();return t.source&&t.source.id!==e?.5:1},c$=(e,t,r,n)=>({handleMouseDown:n=>{e?.(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{r({type:$A.SelectMultiEnd})};r({type:$A.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:$A.SelectMultiAdd,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:$A.SelectMouseUp,payload:{cell:t,evt:e,announce:n}})}}),d$=(e,t)=>{const{paginationNeeded:r,totalsPosition:n}=aM(rM,(e=>e.tableData)),{selectionsAPI:o,rootElement:i,keyboard:a,interactions:s,direction:l}=aM(rM,(e=>e.baseProps)),u=iR(eH),c=aM(rM,(e=>e.selectionDispatch)),d=!!s.active&&!!s.select,p=s=>{uH({evt:s,rootElement:i,selectionsAPI:o,cell:e,selectionDispatch:c,isSelectionsEnabled:d,setFocusedCellCoord:u,announce:t,keyboard:a,paginationNeeded:r,totalsPosition:n,direction:l})},f=e=>{((e,t)=>{e.key===oE.Shift&&t({type:$A.SelectMultiEnd})})(e,c)},h=()=>{((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;uF([s,a],t,r,n)})(e,i,u,a,n)};if(!d)return{onKeyDown:p,onKeyUp:f,onMouseDown:h};const{handleMouseDown:m,handleMouseOver:g,handleMouseUp:b}=c$(h,e,c,t);return{onKeyDown:p,onKeyUp:f,onMouseDown:m,onMouseUp:b,onMouseOver:g}},p$=(e,t)=>{const{colIdx:r,rows:n,api:o}=t;let i=HA.Inactive;return o?.isModal()&&(i=r!==e.selectionColIdx?HA.Disabled:n.has(e.qElemNumber)?HA.Selected:HA.Possible),i},f$=(e,t,r)=>{if(!r.isNull)return e;const n={...e,...t.nullValues};return t.grid.zebraStripes.show?(t.grid.zebraStripes.overrideNullValueColor&&(n.color=e.color),t.grid.zebraStripes.overrideNullValueBackground&&(n.background=e.background),n):n},h$=(e,t,r)=>{const{color:n,background:o}=e.grid.zebraStripes[r];return{...t,...n?{color:n}:void 0,...o?{background:o}:void 0}},m$=(e,t,r)=>{if(t.grid.zebraStripes.show){const n=(r.rowIdx+1)%2==0;return h$(t,e,n?"even":"odd")}return e},g$=(e,t)=>{const{styleService:r}=aM(rM,(e=>e.baseProps)),n=aM(rM,(t=>p$(e,t.selectionState)));let o=t.isDim?r.dimension.values:r.measure.values;o=m$(o,r,e),o=f$(o,r,e);const i=WI(o,e.qAttrExps,t.qAttrExprInfoIDs),a=function(e,t,r){return t===HA.Selected?{...e,...r}:t===HA.Disabled?{...e,background:`${eI}, ${e.background}`}:e}(R((()=>e.isNull?o:WI(o,e.qAttrExps,t.qAttrExprInfoIDs)),[o,e.qAttrExps,e.isNull,t.qAttrExprInfoIDs]),n,r.selectedColors);return{cellStyle:{...a,borderColor:r.grid.border},representationStyle:i,cellSelectionState:n}},b$=hc(_h,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),v$=hc(im,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e&&"height"!==e})((({hover:e,hoverColors:t,height:r})=>({height:r,"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}}))),y$=hc(Wh,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...iI,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",boxSizing:"border-box",width:"100%",height:"100%"}))),x$=hc(Wh,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})((({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...iI,...e,fontWeight:nI,position:"sticky",padding:n.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t?r:void 0,bottom:t?void 0:0,verticalAlign:t?"bottom":"top",boxSizing:"border-box",zIndex:t?1:void 0}))),S$=({cell:e,announce:t,column:r,columnIndex:n,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i})=>{const{interactions:a,direction:s}=aM(rM,(e=>e.baseProps)),{onKeyDown:l,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p}=d$(e,t),{cellStyle:f,representationStyle:h,cellSelectionState:m}=g$(e,r),g=u$(r.id);return rr.jsx(y$,{cellStyle:{...f,opacity:g},scope:0===n?"row":void 0,component:0===n?"th":void 0,align:e.align,tabIndex:-1,className:`sn-table-cell ${m} ${nE}`,title:a.passive?e.representation.text:void 0,onKeyDown:l,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p,children:rr.jsx(l$,{cellSelectionState:m,children:rr.jsx(i$,{cell:e,style:h,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i,paginationCellAlign:dI(s,e.align)})})})},w$=UE(0),C$=({column:e,totalsPosition:t,onKeyDown:r,onMouseDown:n})=>{const{styleService:o,interactions:i}=aM(rM,(e=>e.baseProps)),a=oR(w$),s=u$(e.id);return rr.jsx(x$,{totalsStyle:{...o.totalRow,...Zz(o,t,!1),opacity:s},headRowHeight:a,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${nE}`,tabIndex:-1,title:i.passive?e.totalInfo:void 0,onKeyDown:r,onMouseDown:n,children:rr.jsx(SF,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)},E$=()=>{const{columns:e,totalsPosition:t,rows:r}=aM(rM,(e=>e.tableData)),{rootElement:n,selectionsAPI:o,keyboard:i,interactions:a,direction:s}=aM(rM,(e=>e.baseProps)),l=iR(eH),u=!!o?.isModal(),c=!!a.active;return rr.jsx(im,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,o)=>{const a=[t.atTop?1:r.length+1,o];return rr.jsx(C$,{column:e,totalsPosition:t,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:r,isInteractionEnabled:n}=e;if(!t&&n)switch(r.key){case oE.C:iH(r);break;case oE.Space:r.preventDefault();break;default:aH(e)}else LC(r)})({evt:e,rootElement:n,cellCoord:a,setFocusedCellCoord:l,isSelectionMode:u,isInteractionEnabled:c,direction:s})},onMouseDown:()=>{uF(a,n,l,i)}},e.id)}))})};var R$=N(E$);const P$=({updateShouldRefocus:e,tableWrapperRef:t,announce:r})=>{const{rows:n,columns:o,totalsPosition:i}=aM(rM,(e=>e.tableData)),{selectionsAPI:a,keyboard:s,layout:l,styleService:u}=aM(rM,(e=>e.baseProps)),c=aM(rM,(e=>e.selectionDispatch)),d=!!zI(l)?.content?.hoverEffect;vH({keyboard:s,selectionDispatch:c,selectionsAPI:a,updateShouldRefocus:e,tableWrapperRef:t});const p=(e=>{const t=O((t=>new IntersectionObserver((e=>{e.forEach((e=>{const r=t.get(e.target);r?.(e)}))}),{root:e.current})),[e]);return mH(t)})(t),f=bH();return rr.jsxs(b$,{lastRowBottomBorder:u.grid.lastRowBottomBorder,children:[i.atTop?rr.jsx(R$,{}):void 0,n.map(((e,t)=>rr.jsx(v$,{hoverColors:u.grid.hoverColors,hover:d,tabIndex:-1,className:"sn-table-row sn-table-data-row",height:u.contentMinRowHeight,children:o.map(((t,n)=>{const{id:o}=t,i=e[n];return rr.jsx(S$,{columnIndex:n,cell:i,column:t,announce:r,intersectionObserverTaskScheduler:p,resizeObserverTaskScheduler:f},o)}))},`row-${t}`))),i.atBottom?rr.jsx(R$,{}):void 0]})};var A$=N(P$);const I$=(e,t)=>!!e.viewState?.skipHeader||!!t.hideHeader,M$=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,{applyColumnWidths:a,interactions:s,direction:l}=aM(rM,(e=>e.baseProps)),u=oR(sR),c=aM(rM,(e=>e.columnWidths)),d=aM(rM,(e=>e.setColumnWidths));if(!s.active)return null;return rr.jsx(dM,{columnWidth:c[o],isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{r?.();const t=[...c];t[o]=e,d(t)},confirmWidthCallback:t=>{a(t,e)},handleBlur:e=>{(e=>{oF(e);const t=e.closest(".sn-table-cell");aF(t)})(e.currentTarget)},setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:u,columnLabel:i},direction:l})},k$=e=>e.target?.getAttribute("class")?.includes(iE),D$=({isInteractionEnabled:e,column:t})=>{const[r,n]=P(!1),{changeSortOrder:o}=aM(rM,(e=>e.baseProps)),i=aM(rM,(e=>e.isAdjustingWidth)),a=aM(rM,(e=>e.setIsAdjustingWidth));return{open:r,setOpen:n,handleOpenMenu:t=>{!e||k$(t)||i||n(!0)},setIsAdjustingWidth:a,toggleSortOrder:r=>{e&&!k$(r)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(r)&&(r.stopPropagation(),o(t,"A"===t.sortDirection?"D":"A"))}}};var T$=Object.defineProperty,O$=Object.defineProperties,L$=Object.getOwnPropertyDescriptors,q$=Object.getOwnPropertySymbols,N$=Object.prototype.hasOwnProperty,j$=Object.prototype.propertyIsEnumerable,_$=(e,t,r)=>t in e?T$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,z$=(e,t)=>{for(var r in t||(t={}))N$.call(t,r)&&_$(e,r,t[r]);if(q$)for(var r of q$(t))j$.call(t,r)&&_$(e,r,t[r]);return e},F$=(e,t)=>O$(e,L$(t)),H$=class extends FL{apply({transform:e}){if(!this.options)return e;const{axis:t,value:r}=this.options;return F$(z$({},e),{[t]:r})}};H$.configure=aO(H$);var $$=H$;$$.configure({axis:"x",value:0}),$$.configure({axis:"y",value:0});var W$=class extends FL{apply({transform:e}){var t;const{size:r=20}=null!=(t=this.options)?t:{},n="number"==typeof r?r:r.x,o="number"==typeof r?r:r.y;return F$(z$({},e),{x:Math.ceil(e.x/n)*n,y:Math.ceil(e.y/o)*o})}};W$.configure=aO(W$);var B$=class extends FL{constructor(e,t){super(e,t),this.boundingRectangle=Vk(null),this.destroy=tD((()=>{if(!this.options)return;const{dragOperation:t}=e,{status:r}=t;if(r.initialized){const{element:e}=this.options,r="function"==typeof e?e(t):e;if(!r)return;let n;const o=()=>{this.boundingRectangle.value=eq(r)},i=()=>{n||(n=setTimeout((()=>{o(),n=void 0}),25))},a=new ResizeObserver(o);return a.observe(r),document.addEventListener("scroll",i,{passive:!0,capture:!0}),()=>{document.removeEventListener("scroll",i,{capture:!0}),a.disconnect(),this.boundingRectangle.value=null}}}))}apply(e){const{shape:t,transform:r}=e;if(!t)return r;const n=this.boundingRectangle.value;if(!n)return r;const{initial:o,current:i}=t,{height:a,width:s}=i.boundingRectangle,l=o.center.x-s/2,u=o.center.y-a/2,c=function(e,t,r){const n=z$({},t);return e.boundingRectangle.top+t.y<=r.top?n.y=r.top-e.boundingRectangle.top:e.boundingRectangle.bottom+t.y>=r.top+r.height&&(n.y=r.top+r.height-e.boundingRectangle.bottom),e.boundingRectangle.left+t.x<=r.left?n.x=r.left-e.boundingRectangle.left:e.boundingRectangle.right+t.x>=r.left+r.width&&(n.x=r.left+r.width-e.boundingRectangle.right),n}(new ST(l,u,s,a),r,n);return c}};B$.configure=aO(B$);var V$=B$,U$=Object.create,G$=Object.defineProperty,Y$=Object.defineProperties,K$=Object.getOwnPropertyDescriptor,X$=Object.getOwnPropertyDescriptors,J$=Object.getOwnPropertySymbols,Z$=Object.prototype.hasOwnProperty,Q$=Object.prototype.propertyIsEnumerable,eW=e=>{throw TypeError(e)},tW=(e,t,r)=>t in e?G$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rW=(e,t)=>{for(var r in t||(t={}))Z$.call(t,r)&&tW(e,r,t[r]);if(J$)for(var r of J$(t))Q$.call(t,r)&&tW(e,r,t[r]);return e},nW=(e,t)=>Y$(e,X$(t)),oW=["class","method","getter","setter","accessor","field","value","get","set"],iW=e=>void 0!==e&&"function"!=typeof e?eW("Function expected"):e,aW=(e,t,r,n,o)=>({kind:oW[e],name:t,metadata:n,addInitializer:e=>r._?eW("Already initialized"):o.push(iW(e||null))}),sW=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},lW=(e,t,r,n,o,i)=>{for(var a,s,l,u,c,d=7&t,p=e.length+1,f=oW[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(o=o.prototype,K$({get[r](){return cW(this,i)},set[r](e){return pW(this,i,e)}},r)),b=n.length-1;b>=0;b--)(u=aW(d,r,l={},e[3],m)).static=false,u.private=false,c=u.access={has:e=>r in e},c.get=e=>e[r],c.set=(e,t)=>e[r]=t,s=(0,n[b])({get:g.get,set:g.set},u),l._=1,void 0===s?iW(s)&&(g[f]=s):"object"!=typeof s||null===s?eW("Object expected"):(iW(a=s.get)&&(g.get=a),iW(a=s.set)&&(g.set=a),iW(a=s.init)&&h.unshift(a));return g&&G$(o,r,g),o},uW=(e,t,r)=>t.has(e)||eW("Cannot "+r),cW=(e,t,r)=>(uW(e,t,"read from private field"),t.get(e)),dW=(e,t,r)=>t.has(e)?eW("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),pW=(e,t,r,n)=>(uW(e,t,"write to private field"),t.set(e,r),r);function fW(e){return e instanceof WW||e instanceof $W}var hW=Object.defineProperty,mW=Object.defineProperties,gW=Object.getOwnPropertyDescriptors,bW=Object.getOwnPropertySymbols,vW=Object.prototype.hasOwnProperty,yW=Object.prototype.propertyIsEnumerable,xW=(e,t,r)=>t in e?hW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,SW=(e,t)=>{for(var r in t||(t={}))vW.call(t,r)&&xW(e,r,t[r]);if(bW)for(var r of bW(t))yW.call(t,r)&&xW(e,r,t[r]);return e},wW=(e,t)=>mW(e,gW(t));function CW(e,t,r){if(t===r)return e;const n=e.slice();return n.splice(r,0,n.splice(t,1)[0]),n}function EW(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function RW(e,t){return function(e,t,r){var n,o,i;const{source:a,target:s,canceled:l}=t.operation;if(!a||!s||l)return"preventDefault"in t&&t.preventDefault(),e;const u=(e,t)=>e===t||"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const n=e.findIndex((e=>u(e,a.id))),o=e.findIndex((e=>u(e,s.id)));if(-1===n||-1===o){if(EW(a)){const n=a.initialIndex,o=a.index;return n===o||n<0||n>=e.length?("preventDefault"in t&&t.preventDefault(),e):r(e,n,o)}return e}if(!l&&"index"in a&&"number"==typeof a.index){const t=a.index;if(t!==n)return r(e,n,t)}return r(e,n,o)}const c=Object.entries(e);let d,p,f=-1,h=-1;for(const[e,t]of c)if(-1===f&&(f=t.findIndex((e=>u(e,a.id))),-1!==f&&(d=e)),-1===h&&(h=t.findIndex((e=>u(e,s.id))),-1!==h&&(p=e)),-1!==f&&-1!==h)break;if(-1===f&&EW(a)){const n=a.initialGroup,o=a.initialIndex,i=a.group,s=a.index;if(null==n||null==i||!(n in e)||!(i in e))return"preventDefault"in t&&t.preventDefault(),e;if(n===i&&o===s)return"preventDefault"in t&&t.preventDefault(),e;if(n===i)return wW(SW({},e),{[n]:r(e[n],o,s)});const l=e[n][o];return wW(SW({},e),{[n]:[...e[n].slice(0,o),...e[n].slice(o+1)],[i]:[...e[i].slice(0,s),l,...e[i].slice(s)]})}if(!a.manager)return e;const{dragOperation:m}=a.manager,g=null!=(o=null==(n=m.shape)?void 0:n.current.center)?o:m.position.current;if(null==p&&s.id in e){const t=s.shape&&g.y>s.shape.center.y?e[s.id].length:0;p=s.id,h=t}if(null==d||null==p||d===p&&f===h){if(null!=d&&d===p&&f===h&&EW(a)){const t=null!=a.group&&a.group!==d,n=a.index!==f;if(t||n){const t=null!=(i=a.group)?i:d;if(t in e){if(d===t)return wW(SW({},e),{[d]:r(e[d],f,a.index)});const n=e[d][f];return wW(SW({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[t]:[...e[t].slice(0,a.index),n,...e[t].slice(a.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(d===p)return wW(SW({},e),{[d]:r(e[d],f,h)});const b=s.shape&&Math.round(g.y)>Math.round(s.shape.center.y)?1:0,v=e[d][f];return wW(SW({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[p]:[...e[p].slice(0,h+b),v,...e[p].slice(h+b)]})}(e,t,CW)}var PW="__default__";function AW(e,t,r,n){const o=n<t?"afterend":"beforebegin";r.insertAdjacentElement(o,e)}function IW(e,t){return e.index-t.index}function MW(e){return Array.from(e).sort(IW)}var kW,DW,TW,OW,LW,qW,NW,jW,_W=[class extends lO{constructor(e){super(e);const t=tD((()=>{const{dragOperation:t}=e;if(IN(t.activatorEvent)&&fW(t.source)&&t.status.initialized){const t=e.registry.plugins.get(b_);if(t)return t.disable(),()=>t.enable()}})),r=e.monitor.addEventListener("dragmove",((e,t)=>{queueMicrotask((()=>{if(this.disabled||e.defaultPrevented||!e.nativeEvent)return;const{dragOperation:r}=t;if(!IN(e.nativeEvent))return;if(!fW(r.source))return;if(!r.shape)return;const{actions:n,collisionObserver:o,registry:i}=t,{by:a}=e;if(!a)return;const s=function(e){const{x:t,y:r}=e;if(t>0)return"right";if(t<0)return"left";if(r>0)return"down";if(r<0)return"up"}(a),{source:l,target:u}=r,{center:c}=r.shape.current,d=[],p=[];Nk((()=>{for(const e of i.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==u?void 0:u.id)&&fW(e)||!e.element)continue;let r=e.shape;const n=new EN(e.element,{getBoundingClientRect:e=>uq(e,void 0,.2)});n.height&&n.width&&(("down"==s&&c.y+10<n.center.y||"up"==s&&c.y-10>n.center.y||"left"==s&&c.x-10>n.center.x||"right"==s&&c.x+10<n.center.x)&&(d.push(e),e.shape=n,p.push((()=>e.shape=r))))}})),e.preventDefault(),o.disable();const f=o.computeCollisions(d,TN);Nk((()=>p.forEach((e=>e()))));const[h]=f;if(!h)return;const{id:m}=h,{index:g,group:b}=l.sortable;n.setDropTarget(m).then((()=>{const{source:e,target:t,shape:i}=r;if(!e||!fW(e)||!i)return;const{index:a,group:s,target:l}=e.sortable,u=g!==a||b!==s,c=u?l:null==t?void 0:t.element;if(!c)return;bN(c);const d=new EN(c);if(!d)return;const p=ST.delta(d,ST.from(i.current.boundingRectangle),e.alignment);n.move({by:p}),u?n.setDropTarget(e.id).then((()=>o.enable())):o.enable()}))}))}));this.destroy=()=>{r(),t()}}},class extends lO{constructor(e){super(e);const t=()=>{const t=new Map;for(const r of e.registry.droppables)if(r instanceof WW){const{sortable:e}=r,{group:n}=e;let o=t.get(n);o||(o=new Set,t.set(n,o)),o.add(e)}for(const[e,r]of t)t.set(e,new Set(MW(r)));return t},r=[e.monitor.addEventListener("dragover",((e,r)=>{if(this.disabled)return;const{dragOperation:n}=r,{source:o,target:i}=n;if(!fW(o)||!fW(i))return;if(o.sortable===i.sortable)return;const a=t(),s=o.sortable.group===i.sortable.group,l=a.get(o.sortable.group),u=s?l:a.get(i.sortable.group);l&&u&&queueMicrotask((()=>{e.defaultPrevented||r.renderer.rendering.then((()=>{var n,c,d;const p=t();for(const[e,t]of a.entries()){const r=Array.from(t).entries();for(const[t,o]of r)if(o.index!==t||o.group!==e||!(null==(n=p.get(e))?void 0:n.has(o)))return}const f=o.sortable.element,h=i.sortable.element;if(!h||!f)return;if(!s&&i.id===o.sortable.group)return;const m=MW(l),g=s?m:MW(u),b=null!=(c=o.sortable.group)?c:PW,v=null!=(d=i.sortable.group)?d:PW,y={[b]:m,[v]:g},x=RW(y,e);if(y===x)return;const S=x[v].indexOf(o.sortable),w=x[v].indexOf(i.sortable);r.collisionObserver.disable(),AW(f,S,h,w),Nk((()=>{for(const[e,t]of x[b].entries())t.index=e;if(!s)for(const[e,t]of x[v].entries())t.group=i.sortable.group,t.index=e})),r.actions.setDropTarget(o.id).then((()=>r.collisionObserver.enable()))}))}))})),e.monitor.addEventListener("dragend",((e,r)=>{if(!e.canceled)return;const{dragOperation:n}=r,{source:o}=n;fW(o)&&(o.sortable.initialIndex===o.sortable.index&&o.sortable.initialGroup===o.sortable.group||queueMicrotask((()=>{const e=t(),n=e.get(o.sortable.initialGroup);n&&r.renderer.rendering.then((()=>{for(const[t,r]of e.entries()){const e=Array.from(r).entries();for(const[r,n]of e)if(n.index!==r||n.group!==t)return}const t=MW(n),r=o.sortable.element,i=t[o.sortable.initialIndex],a=null==i?void 0:i.element;i&&a&&r&&(AW(r,i.index,a,o.index),Nk((()=>{for(const[t,r]of e.entries()){const e=Array.from(r).values();for(const t of e)t.index=t.initialIndex,t.group=t.initialGroup}})))}))})))}))];this.destroy=()=>{for(const e of r)e()}}}],zW={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1},FW=new class{constructor(){$D(this,JD,new WeakMap)}get(e,t){var r;return e?null==(r=HD(this,JD).get(e))?void 0:r.get(t):void 0}set(e,t,r){var n;if(e)return HD(this,JD).has(e)||HD(this,JD).set(e,new Map),null==(n=HD(this,JD).get(e))?void 0:n.set(t,r)}clear(e){var t;return e?null==(t=HD(this,JD).get(e))?void 0:t.clear():void 0}};DW=[GD],kW=[GD];var HW=class{constructor(e,t){dW(this,OW,sW(TW,8,this)),sW(TW,11,this),dW(this,LW),dW(this,qW),dW(this,NW,sW(TW,12,this)),sW(TW,15,this),dW(this,jW),this.register=()=>(Nk((()=>{var e,t;null==(e=this.manager)||e.registry.register(this.droppable),null==(t=this.manager)||t.registry.register(this.draggable)})),()=>this.unregister()),this.unregister=()=>{Nk((()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)}))},this.destroy=()=>{Nk((()=>{this.droppable.destroy(),this.draggable.destroy()}))};var r=e,{effects:n=()=>[],group:o,index:i,sensors:a,type:s,transition:l=zW,plugins:u=_W}=r,c=((e,t)=>{var r={};for(var n in e)Z$.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&J$)for(var n of J$(e))t.indexOf(n)<0&&Q$.call(e,n)&&(r[n]=e[n]);return r})(r,["effects","group","index","sensors","type","transition","plugins"]);this.droppable=new WW(c,t,this),this.draggable=new $W(nW(rW({},c),{effects:()=>[()=>{var e,t,r;const n=null==(e=this.manager)?void 0:e.dragOperation.status;(null==n?void 0:n.initializing)&&this.id===(null==(r=null==(t=this.manager)?void 0:t.dragOperation.source)?void 0:r.id)&&FW.clear(this.manager),(null==n?void 0:n.dragging)&&FW.set(this.manager,this.id,_k((()=>({initialIndex:this.index,initialGroup:this.group}))))},()=>{const{index:e,group:t,manager:r}=this,n=cW(this,qW),o=cW(this,LW);e===n&&t===o||(pW(this,qW,e),pW(this,LW,t),this.animate())},()=>{const{target:e}=this,{feedback:t,isDragSource:r}=this.draggable;"move"==t&&r&&(this.droppable.disabled=!e)},()=>{const{manager:e}=this;for(const t of u)null==e||e.registry.register(t)},...n()],type:s,sensors:a}),t,this),pW(this,jW,c.element),this.manager=t,this.index=i,pW(this,qW,i),this.group=o,pW(this,LW,o),this.type=s,this.transition=l}get initialIndex(){var e,t;return null!=(t=null==(e=FW.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=FW.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){_k((()=>{const{manager:e,transition:t}=this,{shape:r}=this.droppable;if(!e)return;const{idle:n}=e.dragOperation.status;r&&t&&(!n||t.idle)&&e.renderer.rendering.then((()=>{const{element:n}=this;if(!n)return;const o=this.refreshShape();if(!o)return;const i=r.boundingRectangle.left-o.boundingRectangle.left,a=r.boundingRectangle.top-o.boundingRectangle.top,{translate:s}=iN(n),l=yN(n,s,!1),u=yN(n,s);if(i||a){const r=bq(nq(n))?nW(rW({},t),{duration:0}):t;vN({element:n,keyframes:{translate:[`${l.x+i}px ${l.y+a}px ${l.z}`,`${u.x}px ${u.y}px ${u.z}`]},options:r}).then((()=>{e.dragOperation.status.dragging||(this.droppable.shape=void 0)}))}}))}))}get manager(){return this.draggable.manager}set manager(e){Nk((()=>{this.draggable.manager=e,this.droppable.manager=e}))}set element(e){Nk((()=>{const t=cW(this,jW),r=this.droppable.element,n=this.draggable.element;r&&r!==t||(this.droppable.element=e),n&&n!==t||(this.draggable.element=e),pW(this,jW,e)}))}get element(){var e,t;const r=cW(this,jW);if(r)return null!=(t=null!=(e=Sq.get(r))?e:r)?t:this.droppable.element}set target(e){this.droppable.element=e}get target(){return this.droppable.element}set source(e){this.draggable.element=e}get source(){return this.draggable.element}get disabled(){return this.draggable.disabled&&this.droppable.disabled}set feedback(e){this.draggable.feedback=e}set disabled(e){Nk((()=>{this.droppable.disabled=e,this.draggable.disabled=e}))}set data(e){Nk((()=>{this.droppable.data=e,this.draggable.data=e}))}set handle(e){this.draggable.handle=e}set id(e){Nk((()=>{this.droppable.id=e,this.draggable.id=e}))}get id(){return this.droppable.id}set sensors(e){this.draggable.sensors=e}set modifiers(e){this.draggable.modifiers=e}set collisionPriority(e){this.droppable.collisionPriority=e}set collisionDetector(e){this.droppable.collisionDetector=null!=e?e:DN}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){Nk((()=>{this.droppable.type=e,this.draggable.type=e}))}get type(){return this.draggable.type}set accept(e){this.droppable.accept=e}get accept(){return this.droppable.accept}get isDropTarget(){return this.droppable.isDropTarget}get isDragSource(){return this.draggable.isDragSource}get isDragging(){return this.draggable.isDragging}get isDropping(){return this.draggable.isDropping}get status(){return this.draggable.status}refreshShape(){return this.droppable.refreshShape()}accepts(e){return this.droppable.accepts(e)}};TW=[,,,U$(null)],OW=new WeakMap,LW=new WeakMap,qW=new WeakMap,NW=new WeakMap,jW=new WeakMap,lW(TW,4,"index",DW,HW,OW),lW(TW,4,"group",kW,HW,NW),((e,t)=>{return tW(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n})(TW,HW);var $W=class extends lz{constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}get initialIndex(){return this.sortable.initialIndex}get group(){return this.sortable.group}get initialGroup(){return this.sortable.initialGroup}},WW=class extends uz{constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}get group(){return this.sortable.group}},BW=Object.defineProperty,VW=Object.defineProperties,UW=Object.getOwnPropertyDescriptors,GW=Object.getOwnPropertySymbols,YW=Object.prototype.hasOwnProperty,KW=Object.prototype.propertyIsEnumerable,XW=(e,t,r)=>t in e?BW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,JW=(e,t)=>{for(var r in t||(t={}))YW.call(t,r)&&XW(e,r,t[r]);if(GW)for(var r of GW(t))KW.call(t,r)&&XW(e,r,t[r]);return e};function ZW(e){const{accept:t,collisionDetector:r,collisionPriority:n,id:o,data:i,element:a,handle:s,index:l,group:u,disabled:c,feedback:d,modifiers:p,sensors:f,target:h,type:m}=e,g=JW(JW({},zW),e.transition),b=function(e){var t;const r=null!=(t=Az())?t:void 0,[n]=P((()=>e(r)));return n.manager!==r&&(n.manager=r),dz(n.register,[r,n]),n}((t=>new HW(((e,t)=>VW(e,UW(t)))(JW({},e),{transition:g,register:!1,handle:cz(s),element:cz(a),target:cz(h),feedback:d}),t))),v=hz(b,QW);return bz(o,(()=>b.id=o)),dz((()=>{Nk((()=>{b.group=u,b.index=l}))}),[b,u,l]),bz(m,(()=>b.type=m)),bz(t,(()=>b.accept=t),void 0,UD),bz(i,(()=>i&&(b.data=i))),bz(l,(()=>{var e;(null==(e=b.manager)?void 0:e.dragOperation.status.idle)&&(null==g?void 0:g.idle)&&b.refreshShape()}),mz),vz(s,(e=>b.handle=e)),vz(a,(e=>b.element=e)),vz(h,(e=>b.target=e)),bz(c,(()=>b.disabled=!0===c)),bz(f,(()=>b.sensors=f)),bz(r,(()=>b.collisionDetector=r)),bz(n,(()=>b.collisionPriority=n)),bz(d,(()=>b.feedback=null!=d?d:"default")),bz(g,(()=>b.transition=g),void 0,UD),bz(p,(()=>b.modifiers=p),void 0,UD),bz(e.alignment,(()=>b.alignment=e.alignment)),{sortable:v,get isDragging(){return v.isDragging},get isDropping(){return v.isDropping},get isDragSource(){return v.isDragSource},get isDropTarget(){return v.isDropTarget},handleRef:O((e=>{b.handle=null!=e?e:void 0}),[b]),ref:O((e=>{var t,r;(e||!(null==(t=b.element)?void 0:t.isConnected)||(null==(r=b.manager)?void 0:r.dragOperation.status.idle))&&(b.element=null!=e?e:void 0)}),[b]),sourceRef:O((e=>{var t,r;(e||!(null==(t=b.source)?void 0:t.isConnected)||(null==(r=b.manager)?void 0:r.dragOperation.status.idle))&&(b.source=null!=e?e:void 0)}),[b]),targetRef:O((e=>{var t,r;(e||!(null==(t=b.target)?void 0:t.isConnected)||(null==(r=b.manager)?void 0:r.dragOperation.status.idle))&&(b.target=null!=e?e:void 0)}),[b])}}function QW(e,t,r){return!("isDragSource"!==e||r||!t)}const eB=({invert:e})=>({dragOperation:t,droppable:r})=>{if(!r.shape)return null;const{shape:n}=t;if(!n)return null;const o=function(e){return e.sortable?.index}(r);if(void 0===o)return null;const i=function(e){return e.source.index}(t);if(void 0===i)return null;if(i===o)return null;const a=i<o!==e?"right":"left",{center:s,boundingRectangle:l}=n.current;return"left"===a&&l.left+.3*l.width<=r.shape.center.x||"right"===a&&l.right-.3*l.width>=r.shape.center.x?{id:r.id,value:1/xT.distance(r.shape.center,s),type:DO.Collision,priority:kO.Normal}:null},tB=[V$.configure({element:e=>{const t=e.activatorEvent?.target;return t instanceof HTMLElement?t.closest(".sn-table-head-row"):null}})],rB=(e,t)=>{const{direction:r}=aM(rM,(e=>e.baseProps)),{flags:n}=aM(rM,(e=>e.env)),o=!zF()||!n.isEnabled("TLV-1531_DRAG_AND_DROP_COLUMNS");return ZW({id:e.id,disabled:o,index:t,type:"item",accept:"item",group:"column",modifiers:tB,data:e,feedback:"clone",collisionDetector:eB({invert:"rtl"===r})})},nB=({column:e,columnIndex:t,columnsLength:r})=>{const{interactions:n,rootElement:o,keyboard:i,styleService:a,direction:s}=aM(rM,(e=>e.baseProps)),{columns:l,totalsPosition:u}=aM(rM,(e=>e.tableData)),c=aM(rM,(e=>e.columnWidths[t])),d=aM(rM,(e=>e.baseProps.selectionsAPI?.isModal())),p=iR(eH),f=oR(tH(t)),h=!!n.active&&!d,{open:m,setOpen:g,handleOpenMenu:b,setIsAdjustingWidth:v,toggleSortOrder:y}=D$({isInteractionEnabled:h,column:e}),{ref:x,isDragging:S}=rB(e,t),w=u$(e.id),C=Jz(),E=C?wF:BF,R=e.isActivelySorted?WA[e.sortDirection]:void 0,P=m?rE:void 0,A=m?"true":void 0,I=t===r-1,M=[0,e.pageColIdx],k={width:c,zIndex:l.length-t},D=f&&0===t&&!i.enabled&&h?0:-1;return rr.jsxs(pF,{"data-dragging":S,ref:x,headerStyle:{...a.header,...Zz(a,u,!0),opacity:w},background:C&&m?a.headerMenuActiveBackground:a.header.background,hoverBackground:a.headerMenuHoverBackground,interactions:n,style:k,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${nE}`,tabIndex:D,title:n.passive?e.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:r,handleOpenMenu:n}=e;if(t)switch(r.key){case oE.C:iH(r);break;case oE.Enter:case oE.Space:n?.(r);break;default:aH(e)}else LC(r)})({evt:e,rootElement:o,cellCoord:M,setFocusedCellCoord:p,isInteractionEnabled:h,handleOpenMenu:b,direction:s})},onMouseDown:e=>{(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,keyboard:o,isInteractionEnabled:i})=>{e.preventDefault(),i&&uF(r,t,n,o)})({evt:e,rootElement:o,cellCoord:M,setFocusedCellCoord:p,keyboard:i,isInteractionEnabled:h})},onClick:C?b:y,"aria-sort":R,"aria-controls":P,"aria-expanded":A,"aria-haspopup":"true",children:[rr.jsx(E,{column:e,isInteractionEnabled:h,open:m,setOpen:g,isPagination:!0}),rr.jsx(M$,{column:e,isLastColumn:I,setIsAdjustingWidth:v})]},e.id)},oB=()=>{const{columns:e}=aM(rM,(e=>e.tableData)),{styleService:t,viewService:r,layout:n}=aM(rM,(e=>e.baseProps)),o=iR(w$),i=aM(rM,(e=>e.columnWidths)),a=A(null),s=I$(r,n);return k((()=>{a.current&&o(a.current.getBoundingClientRect().height)}),[t.header.fontSize,i,o,s]),rr.jsx(Qh,{style:{visibility:s?"collapse":void 0},children:rr.jsx(im,{ref:a,className:"sn-table-row sn-table-head-row",style:{position:"sticky",top:0},children:e.map(((t,r)=>rr.jsx(nB,{column:t,columnIndex:r,columnsLength:e.length},t.id)))})})};var iB=N(oB);const aB=e=>{const{pageInfo:t,setPageInfo:r,footerContainer:n,announce:o}=e,{page:i,rowsPerPage:a}=t,{totalColumnCount:s,totalRowCount:l,totalPages:u,paginationNeeded:c,rows:d,columns:p}=aM(rM,(e=>e.tableData)),{rootElement:f,keyboard:h,theme:m,interactions:g,styleService:b,viewService:v,layout:y,rect:x,direction:S}=aM(rM,(e=>e.baseProps)),w=oR(sR),C=aM(rM,(e=>e.showRightBorder)),E=aM(rM,(e=>e.selectionDispatch)),R=aM(rM,(e=>e.baseProps.selectionsAPI?.isModal())),P=A(!1),I=A(null),M=A(null),D=`${w.get("SNTable.Accessibility.RowsAndColumns",[String(d.length),String(p.length)])} ${w.get("SNTable.Accessibility.NavigationInstructions")}`,T=qA(y,v),L=T?v.scrollLeft??0:0,q=T?v.rowPartialHeight??0:0,N=O((()=>{P.current=f.getElementsByTagName("table")[0].contains(document.activeElement)}),[f]),j=O((e=>{r({...t,page:e}),o({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),u.toString()]],politeness:"assertive"})}),[t,r,u,o]),_=O((e=>{r({...t,page:0,rowsPerPage:e}),o({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[o,t,r]);return oH(I,S,v),((e,t)=>{const{keyboard:r}=aM(rM,(e=>e.baseProps));k((()=>{const n=e.current;if(!n)return;const o=e=>{cF(e,t,r)};return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}}),[e,t,r])})(M,P),(()=>{const{rootElement:e,keyboard:t}=aM(rM,(e=>e.baseProps)),r=oR(eH);YC((()=>{const n=rF(e,r);t.active?aF(n):(n?.blur(),iF(e))}),[t.active,e])})(),nH(P,o,i),k((()=>{const e=I.current;e&&(e.scrollLeft=L,e.scrollTop=q)}),[t,l,L,q]),ZF((()=>{E({type:$A.UpdatePageRows,payload:{pageRows:d}})}),[d]),rH(),cH(I),rr.jsxs(JF,{children:[rr.jsxs(bF,{ref:M,dir:S,onKeyDown:e=>{lH({evt:e,totalRowCount:l,page:i,rowsPerPage:a,handleChangePage:j,updateShouldRefocus:N,keyboard:h,isSelectionMode:R})},"data-testid":"sn-table",children:[rr.jsx(hH,{}),rr.jsxs(pH,{ref:I,className:"sn-table-container",fullHeight:!!n||!g.active||!c,interactions:g,tabIndex:-1,role:"application","data-testid":"table-container",children:[rr.jsxs(fH,{stickyHeader:!0,"aria-label":D,borderRight:C?`1px solid ${b.grid.border}`:void 0,children:[rr.jsx(iB,{}),rr.jsx(A$,{...e,updateShouldRefocus:N,tableWrapperRef:M})]}),rr.jsx(Xz,{})]}),rr.jsx(Ok,{footerContainer:n,pageInfo:t,paginationNeeded:c,theme:m,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:h,translator:w,interactions:g,rect:x,layout:y,handleChangePage:j,handleChangeRowsPerPage:_,isSelectionMode:R,direction:S})]}),rr.jsx(YF,{isPagination:!0})]})};var sB=N(aB);function lB(){return lB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lB.apply(null,arguments)}function uB(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cB(e,t){return cB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cB(e,t)}function dB(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,cB(e,t)}var pB=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function fB(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(n=e[r],o=t[r],!(n===o||pB(n)&&pB(o)))return!1;var n,o;return!0}function hB(e,t){var r;void 0===t&&(t=fB);var n,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}function mB(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}var gB="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function bB(e){cancelAnimationFrame(e.id)}function vB(e,t){var r=gB();var n={id:requestAnimationFrame((function o(){gB()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var yB=-1;function xB(e){if(void 0===e&&(e=!1),-1===yB||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),yB=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return yB}var SB=null;function wB(e){if(void 0===e&&(e=!1),null===SB||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),o=n.style;return o.width="100px",o.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?SB="positive-descending":(t.scrollLeft=1,SB=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),SB}return SB}var CB=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function EB(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=h(n.props,uB(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:uB(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=hB((function(e,t,r,o,i,a,s,l){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})})),n._callOnScroll=void 0,n._callOnScroll=hB((function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,a=n.props,s=a.columnWidth,l=a.direction,u=a.rowHeight,p=n._getItemStyleCache(m&&s,m&&l,m&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=r(n.props,t,n._instanceProps),g="rtl"===l;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(n.props,e,n._instanceProps),height:c(n.props,e,n._instanceProps),width:i(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=hB((function(e,t,r){return{}})),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;n.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,u=i;if("rtl"===t)switch(wB()){case"negative":u=-i;break;case"positive-descending":u=l-o-i}u=Math.max(0,Math.min(u,l-o));var c=Math.max(0,Math.min(a,s-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&bB(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=vB(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}dB(t,e),t.getDerivedStateFromProps=function(e,t){return RB(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=xB();void 0!==n&&(n=Math.max(0,Math.min(n,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=s(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==n?l(this.props,n,r,m,this._instanceProps,x):m,scrollTop:void 0!==o?u(this.props,o,r,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(wB()){case"negative":o.scrollLeft=-r;break;case"positive-ascending":o.scrollLeft=r;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-r}else o.scrollLeft=Math.max(0,r);o.scrollTop=Math.max(0,n)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&bB(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,o=e.direction,i=e.height,l=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?CB:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,w=this._getHorizontalRangeToRender(),C=w[0],E=w[1],R=this._getVerticalRangeToRender(),P=R[0],A=R[1],I=[];if(n>0&&g)for(var M=P;M<=A;M++)for(var k=C;k<=E;k++)I.push(S(t,{columnIndex:k,data:d,isScrolling:v?x:void 0,key:f({columnIndex:k,data:d,rowIndex:M}),rowIndex:M,style:this._getItemStyle(M,k)}));var D=a(this.props,this._instanceProps),T=s(this.props,this._instanceProps);return S(h||m||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:lB({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},S(u||c||"div",{children:I,ref:l,style:{height:D,pointerEvents:x?"none":void 0,width:T}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],s=i[1],l=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],h=c[3];this._callOnItemsRendered(a,s,d,p,l,u,f,h)}if("function"==typeof n){var m=this.state,g=m.horizontalScrollDirection,b=m.scrollLeft,v=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,u=l.horizontalScrollDirection,c=l.isScrolling,d=l.scrollLeft,p=r||i||a||1;if(0===t||0===s)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),h=f(this.props,d,u,this._instanceProps),m=s&&"backward"!==l?1:Math.max(1,c),g=s&&"forward"!==l?1:Math.max(1,c);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,h+g)),d,h]},t}(F),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var RB=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},PB=function(e,t){var r=e.rowCount,n=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},AB=function(e,t){var r=e.columnCount,n=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},IB=function(e,t,r,n){var o,i,a;if("column"===e?(o=n.columnMetadataMap,i=t.columnWidth,a=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=t.rowHeight,a=n.lastMeasuredRowIndex),r>a){var s=0;if(a>=0){var l=o[a];s=l.offset+l.size}for(var u=a+1;u<=r;u++){var c=i(u);o[u]={offset:s,size:c},s+=c}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},MB=function(e,t,r,n){var o,i;return"column"===e?(o=r.columnMetadataMap,i=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=r.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=n?kB(e,t,r,i,0,n):DB(e,t,r,Math.max(0,i),n)},kB=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=IB(e,t,a,r).offset;if(s===i)return a;s<i?o=a+1:s>i&&(n=a-1)}return o>0?o-1:0},DB=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&IB(e,t,n,r).offset<o;)n+=a,a*=2;return kB(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},TB=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=IB(e,t,r,i),u="column"===e?AB(t,i):PB(t,i),c=Math.max(0,Math.min(u-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===n&&(n=o>=d-s&&o<=c+s?"auto":"center"),n){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},OB=EB({getColumnOffset:function(e,t,r){return IB("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return MB("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=IB("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=IB("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:PB,getEstimatedTotalWidth:AB,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return TB("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return TB("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return IB("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return MB("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=IB("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=IB("row",e,u,n).size;return u},initInstanceProps:function(e,t){var r=e,n={columnMetadataMap:{},estimatedColumnWidth:r.estimatedColumnWidth||50,estimatedRowHeight:r.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:r})},t.resetAfterRowIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:r})},t.resetAfterIndices=function(e){var r=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof r&&(n.lastMeasuredColumnIndex=Math.min(n.lastMeasuredColumnIndex,r-1)),"number"==typeof o&&(n.lastMeasuredRowIndex=Math.min(n.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),LB=function(e,t){return e};function qB(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=l(n.props,uB(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:uB(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=hB((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=hB((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,i=n.props,a=i.direction,s=i.itemSize,l=i.layout,c=n._getItemStyleCache(u&&s,u&&l,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=r(n.props,e,n._instanceProps),p=o(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===l,h="rtl"===a,m=f?d:0;c[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=hB((function(e,t,r){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,a=o;if("rtl"===t)switch(wB()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;n.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&bB(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=vB(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}dB(t,e),t.getDerivedStateFromProps=function(e,t){return NB(e,t),c(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?xB():0:l.scrollHeight>l.clientHeight?xB():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},d.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(wB()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&bB(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,r=e.className,o=e.direction,i=e.height,a=e.innerRef,s=e.innerElementType,l=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?LB:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,w=x?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),E=C[0],R=C[1],P=[];if(u>0)for(var A=E;A<=R;A++)P.push(S(t,{data:c,key:p(A,c),index:A,isScrolling:b?y:void 0,style:this._getItemStyle(A)}));var I=n(this.props,this._instanceProps);return S(h||m||"div",{className:r,onScroll:w,ref:this._outerRefSetter,style:lB({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},S(s||l||"div",{children:P,ref:a,style:{height:x?"100%":I,pointerEvents:y?"none":void 0,width:x?I:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,l=n.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,l,this._instanceProps),c=s(this.props,u,l,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(F),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var NB=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},jB=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=t;l++){var u=n(l);o[l]={offset:a,size:u},a+=u}r.lastMeasuredIndex=t}return o[t]},_B=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=jB(e,i,t).offset;if(a===o)return i;a<o?n=i+1:a>o&&(r=i-1)}return n>0?n-1:0},zB=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&jB(e,r,t).offset<n;)r+=i,i*=2;return _B(e,t,Math.min(r,o-1),Math.floor(r/2),n)},FB=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},HB=qB({getItemOffset:function(e,t,r){return jB(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:FB,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,s=e.height,l=e.layout,u=e.width,c="horizontal"===a||"horizontal"===l?u:s,d=jB(e,t,o),p=FB(e,o),f=Math.max(0,Math.min(p-c,d.offset)),h=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=h-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return n>=h&&n<=f?n:n<h?h:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?_B(e,t,o,0,r):zB(e,t,Math.max(0,o),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,l=e.width,u="horizontal"===o||"horizontal"===s?l:i,c=jB(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=jB(e,f,n).size;return f},initInstanceProps:function(e,t){var r={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,n){void 0===n&&(n=!0),r.lastMeasuredIndex=Math.min(r.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),n&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function $B(e,t){for(var r in e)if(!(r in t))return!0;for(var n in t)if(e[n]!==t[n])return!0;return!1}var WB=["style"],BB=["style"];function VB(e,t){var r=e.style,n=mB(e,WB),o=t.style,i=mB(t,BB);return!$B(r,o)&&!$B(n,i)}const UB=UE(-1),GB=QF((e=>UE((t=>t(UB)===e)))),YB=({style:e})=>rr.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var KB=x.memo(YB,VB);const XB=()=>{},JB=e=>{e.preventDefault()};const ZB=({columnIndex:e,rowIndex:t,style:r,data:n})=>{const{rowsInPage:o,columns:i,isHoverEnabled:a,setMeasuredCellHeight:s,lineClamp:l,resizeObserverTaskScheduler:u}=n,c=oR(GB(t)),d=iR(UB),{interactions:p,styleService:f,direction:h}=aM(rM,(e=>e.baseProps)),m=aM(rM,(e=>e.showRightBorder)),g=o[t]?.[e],{handleMouseDown:b,handleMouseOver:v,handleMouseUp:y,cellSelectionState:x}=function(e){const{interactions:t}=aM(rM,(e=>e.baseProps)),r=aM(rM,(e=>e.selectionDispatch)),n="object"==typeof e,o=aM(rM,(t=>n?p$(e,t.selectionState):HA.Inactive)),i=t.active&&t.select;if(n&&i){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=c$(JB,e,r,XB);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(g),S=((e,t,r,n)=>{const o=A(null),i=r&&!r.isNumeric,a=O((r=>{const o=MF(r);o&&i&&n(o,e,t)}),[t,n,e,i]);return kF(o,a),o})(t,e,g,s),w=i[e]?.isDim?f.dimension.values:f.measure.values,C=u$(i[e].id);if("object"==typeof g){const n=((e,t,r,n,o,i)=>{let a=m$(o,i,e);a=f$(a,i,e);const s=!e.isNull&&t.qAttrExprInfoIDs.length?WI(a,e.qAttrExps,t.qAttrExprInfoIDs):a;return n===HA.Selected?{...s,...i.selectedColors}:n===HA.Disabled?{...s,color:r?i.grid.hoverColors?.color:s.color,background:`${eI}, ${r?i.grid.hoverColors?.background:s.background}`}:r?{...s,...i.grid.hoverColors}:s})(g,i[e],a&&c,x,w,f),o={rowindex:t,columnindex:e};return rr.jsx("div",{className:`sn-table-cell ${x} ${nE}`,style:{...r,...n,display:"flex",alignItems:"start",borderColor:f.grid.border,borderTop:"0px",borderBottomWidth:g.isLastRow?"0px":"1px",borderRightWidth:pI(h,g.isLastColumn,m),borderLeftWidth:fI(h,g.isLastColumn,m),justifyContent:lI(g,h),borderStyle:"solid",padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden",textAlign:g.align,opacity:C},onMouseDown:b,onMouseUp:y,onMouseOver:v,onMouseEnter:a?()=>{d(t)}:void 0,onMouseLeave:a?()=>{d(-1)}:void 0,title:p.passive?g.representation.text:void 0,...o,children:rr.jsx(l$,{cellSelectionState:x,children:rr.jsx(i$,{forwardRef:f.contentStaticLineCount||1===l?void 0:S,cell:g,style:n,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:u})})})}return rr.jsx(KB,{style:{...r,...w,borderColor:f.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box",opacity:C}})};var QB=N(ZB,VB);const eV=e=>{const t=A(e);return t.current=e,t},tV=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,rV=(e,t,r,n,o)=>{const i=e[r];if(!i)return!0;for(let e=t;e<t+n;e++){const t=i[e];if(t?.rowIdx!==o)return!0}return!1},nV=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some((e=>!e[t]))},oV=(e,t,r,n,o,i,a,s)=>{e.forEach((e=>{e.qMatrix.forEach(((l,u)=>{const c=e.qArea.qTop-t.page*t.rowsPerPage,{row:d,pageRowIdx:p}=((e,t,r,n,o,i,a,s,l,u)=>{const{qSize:c}=a.qHyperCube,d=n.qTop+r,p=o+r,f=e[p]??[];return t.forEach(((e,t)=>{const r=t+n.qLeft;if(f.at(r))return;const{colIdx:o,isDim:h,isLocked:m,bodyTextAlign:g,selectionColIdx:b,qAttrExprInfoIndex:v,representation:y,conditionalColoring:x,qMiniChart:S}=i[r],w=PA(h,e,a),C=!h&&e.qIsNull,E=C?OP(w):TP(e);f[r]={id:MP(),...e,align:OA(E,g,u),rowIdx:d,colIdx:o,isSelectable:h&&!m,pageRowIdx:p,pageColIdx:r,selectionColIdx:b,isLastRow:d===c.qcy-1,isLastColumn:r===c.qcx-1,isNumeric:E,isNull:(!C||!E)&&RA(e,h),representation:EA({cell:e,representationProperties:y,attrExprInfoIndex:v,env:s,conditionalColoring:x,miniChartOnMeasure:S,getText:()=>C?w:e.qText,direction:u,enabledFeatures:{[OR.Image]:!0,[OR.Indicator]:!0,[OR.MiniChart]:!0}})},l(f[r],d,r)})),{row:f,pageRowIdx:p}})(r,l,u,e.qArea,c,n,o,i,a,s);r[p]=d}))}))},iV=({layout:e,model:t,theme:r,initialDataPages:n,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:s,columns:l,gridState:u,setEstimatedCellHeight:c})=>{const d=aM(rM,(e=>e.env)),{direction:p}=aM(rM,(e=>e.baseProps)),f=A([]),h=O(((t,r)=>{const n=Array.isArray(r)?r.slice(0,i):(e=>Array(e).fill(void 0))(i);return oV(t,o,n,l,e,d,c,p),f.current=n,n}),[i,o,l,e,d,c,p]),[m,g]=P((()=>h(n??[])));YC((()=>{g(h(n??[]))}),[n,p]);const b=((e,t)=>{const r=A(new Set),n=A(new Set),o=A(new Set),i=eV(e),a=eV(t),s=R((()=>({enqueue:e=>{const t=tV(e);o.current.has(t)||(r.current.add(e),o.current.add(t),1===r.current.size&&setTimeout((async()=>{const e=Array.from(r.current.values());if(0!==e.length){r.current.clear(),n.current.add(e);try{const t=(e=>{const t=[];return e.forEach((e=>{if(t.length>0){const r=t[t.length-1];((e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth)(r,e)?r.qHeight+=e.qHeight:((e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight)(r,e)?r.qWidth+=e.qWidth:t.push({...e})}else t.push({...e})})),t})(e),r=await i.current(t);n.current.has(e)&&a.current(r)}catch(t){e.forEach((e=>{o.current.delete(tV(e))})),console.error("Failed to fetch pages",t)}finally{n.current.delete(e)}}}),75))},clear:()=>{r.current.clear(),n.current.clear(),o.current.clear()}})),[i,a]);return s})((e=>t&&"getHyperCubeData"in t?t.getHyperCubeData("/qHyperCubeDef",e):Promise.resolve([])),(e=>{g((t=>h(e,t)))})),v=O(((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(nV(f.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};b.enqueue(e)}}),[f,b]),y=O(((e,t,r,n)=>{for(let i=t;i<t+n;i++){const t=Math.max(0,i-o.page*o.rowsPerPage);if(rV(f.current,e,t,r,i)){const t={qLeft:e,qTop:i,qHeight:1,qWidth:r};b.enqueue(t)}}}),[f,b,o]);return k((()=>{const{qcx:t,qcy:r}=e.qHyperCube.qSize,n=u.current.overscanRowStartIndex,i=u.current.overscanColumnStartIndex,l=n+o.page*o.rowsPerPage,c=t-i,d=o.rowsPerPage-n,p=Math.min(100,c,t,s+5),f=Math.min(100,d,r,a+25);return y(i,l,p,f),()=>{b.clear()}}),[e,a,s,o,b,y,u,r]),{rowsInPage:m,loadRows:y,loadColumns:v}},aV=e=>{let t=0;return e.forEach((e=>{e>t&&(t=e)})),t},sV=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,lV=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>{const o=aM(rM,(e=>e.baseProps.styleService)),i=aM(rM,(e=>e.columnWidths)),{estimateLineCount:a}=BC(o.dimension.values),s=JI(o.dimension.values.fontSize),l=e||t||1===r;return O(((e,t,o)=>{if(l||e.representation.type===OR.Image||e.isNumeric)return;const u=(e=>Math.max(0,e-24-1))(i[o]),c=e.representation.text?a({text:e.representation.text,maxWidth:u,isNumeric:!1}):1,d=Math.min(r,Math.max(1,c));n(d*s,t,o)}),[l,i,a,r,s,n])},uV=({isStaticNbrOfLines:e,minRowHeight:t,state:r,staticRowHeight:n=0,viewService:o})=>{L((()=>{const i=e?n:(e=>{let t=0;e.forEach((e=>{t+=e}));const r=0===e.size?0:t/e.size;return Math.ceil(r)})(r.rowHeights);o.estimatedRowHeight=Math.max(i,t)}),[e,t,r,n,o])},cV=({rowCount:e,isSnapshot:t,viewService:r,gridRef:n,pageInfo:o})=>{const{styleService:i}=aM(rM,(e=>e.baseProps)),[a,s]=P({rowHeights:new Map,cellHeightsInGrid:new Map}),l=i.contentLineHeight,u=i.contentMinRowHeight,c=!!i.contentStaticLineCount,d=Math.max(8e6/e,u)-9,p=d+9,f=Math.max(1,Math.min(i.grid.contentLineClamp,Math.round(d/l))),h=(({lineClamp:e,lineHeight:t,isStaticNbrOfLines:r})=>r?t*e+8+1:void 0)({lineClamp:f,lineHeight:l,isStaticNbrOfLines:c});(({gridRef:e,setState:t,pageInfo:r})=>{const{layout:n}=aM(rM,(e=>e.baseProps)),o=aM(rM,(e=>e.columnWidths)),i=n.multiline?.wrapTextInCells,a=n.nullValueRepresentation?.text;YC((()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map})}),[n.qHyperCube.qSize.qcx,n.qHyperCube.qSize.qcy,r.page,i,a]),YC((()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[o])})({gridRef:n,setState:s,pageInfo:o});const m=(({setState:e,maxCellHeight:t,minRowHeight:r,gridRef:n})=>O(((o,i,a)=>{_((()=>{e((e=>{const s=Math.max(r,o+9),l=Math.min(t,s),u=e.cellHeightsInGrid.get(i)??e.cellHeightsInGrid.set(i,new Map).get(i);if(!sV(u.get(a),l))return e;const c={...e};return u.set(a,l),c.rowHeights.set(i,aV(u)),n.current?.resetAfterIndices({columnIndex:a,rowIndex:i,shouldForceUpdate:!1}),c}))}))}),[e,r,t,n]))({maxCellHeight:p,minRowHeight:u,setState:s,gridRef:n}),g=(({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>O(((o,i,a)=>{e||t||1===r||n(o,i,a)}),[e,t,r,n]))({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:m}),b=lV({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:m}),v=O((e=>c?h??u:a.rowHeights.get(e)??u),[c,u,a.rowHeights,h]);return uV({isStaticNbrOfLines:c,minRowHeight:u,state:a,staticRowHeight:h,viewService:r}),{setMeasuredCellHeight:g,setEstimatedCellHeight:b,getRowHeight:v,lineClamp:f}},dV=(e,t)=>{L((()=>()=>{t(0)}),[e,t]);const r=O((e=>{const r=MF(e);void 0!==r&&t(r)}),[t]);kF(e,r)};let pV=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const fV=({layout:e,loadRows:t,loadColumns:r,rowCount:n,pageInfo:o,gridState:i,viewService:a})=>O((({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:u,overscanRowStopIndex:c,visibleColumnStartIndex:d,visibleColumnStopIndex:p,visibleRowStartIndex:f,visibleRowStopIndex:h})=>{const{verticalScrollDirection:m,horizontalScrollDirection:g}=(({overscanColumnStartIndex:e,overscanRowStartIndex:t},r,n)=>{let o=pV.None,i=pV.None;return o=n>t?pV.Down:n<t?pV.Up:pV.None,i=r>e?pV.Right:r<e?pV.Left:pV.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(i.current,s,u);if(i.current.overscanColumnStartIndex=s,i.current.overscanColumnStopIndex=l,i.current.overscanRowStartIndex=u,i.current.overscanRowStopIndex=c,u>n)return;const b=s,v=u+o.page*o.rowsPerPage,y=l-s+1,x=c-u+1;if(a.visibleLeft=d,a.visibleWidth=p-d+1,a.visibleTop=f+o.page*o.rowsPerPage,a.visibleHeight=h-f+1,a.page=o.page,a.rowsPerPage=o.rowsPerPage,m===pV.Down){const e=x+25;t(b,v,y,u+e>n?n-u:e)}else if(m===pV.Up){const e=x+25,r=o.page*o.rowsPerPage,n=Math.max(r,v-25);t(b,n,y,e)}if(g===pV.Right){const t=e.qHyperCube.qSize.qcx-b,n=y+5,o=Math.min(t,n);r(b,v,o,x)}else if(g===pV.Left){const t=Math.max(0,b-5),n=Math.min(e.qHyperCube.qSize.qcx,y+5);r(t,v,n,x)}}),[i,n,o.page,o.rowsPerPage,a,t,e.qHyperCube.qSize.qcx,r]),hV={enabled:!1},mV=()=>{},gV={current:null};const bV=(e,t,r,n,o)=>{const i=Math.min(t.rowsPerPage,e.qHyperCube.qSize.qcy-t.page*t.rowsPerPage),a=Math.min(i,Math.ceil(r.height/o)),s=R((()=>n.reduce(((e,t)=>e.width<r.width?{width:e.width+t,count:e.count+1}:e),{count:0,width:0})),[r,n]).count;return{rowCount:i,visibleRowCount:a,visibleColumnCount:s}},vV=({columnIndex:e,data:t,rowIndex:r})=>{const n=t.rowsInPage[r]?.[e];return n?.id??`${r}-${e}`},yV={overflow:"hidden",willChange:"auto"};var xV=N(q(((e,t)=>{const{rect:r,columns:n,pageInfo:o,setInnerBodyHeight:i,bodyHeight:a}=e,{layout:s,model:l,theme:u,viewService:c,styleService:d,direction:p}=aM(rM,(e=>e.baseProps)),f=aM(rM,(e=>e.columnWidths)),h=aM(rM,(e=>e.initialDataPages)),m=A(null),g=A(null),b=A({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),v=A(0),y=!!zI(s)?.content?.hoverEffect,{rowCount:x,visibleRowCount:S,visibleColumnCount:w}=bV(s,o,r,f,d.contentMinRowHeight),{setMeasuredCellHeight:C,setEstimatedCellHeight:E,getRowHeight:P,lineClamp:I}=cV({rowCount:x,isSnapshot:!!s.snapshotData,viewService:c,gridRef:m,pageInfo:o}),{rowsInPage:M,loadRows:D,loadColumns:T}=iV({layout:s,model:l,theme:u,initialDataPages:h,pageInfo:o,rowCount:x,visibleRowCount:S,visibleColumnCount:w,columns:n,gridState:b,setEstimatedCellHeight:E}),O=fV({layout:s,loadRows:D,loadColumns:T,rowCount:x,pageInfo:o,gridState:b,viewService:c}),q=bH(),N=R((()=>({rowsInPage:M,columns:n,isHoverEnabled:y,lineClamp:I,setMeasuredCellHeight:C,resizeObserverTaskScheduler:q})),[M,n,y,I,C,q]);return L((()=>{1===v.current&&m.current?.scrollToItem({rowIndex:x-1,align:"start"})})),function(e){const{selectionsAPI:t}=aM(rM,(e=>e.baseProps)),r=aM(rM,(e=>e.selectionDispatch));k((()=>{r({type:$A.UpdatePageRows,payload:{pageRows:e}})}),[r,e]),vH({selectionsAPI:t,selectionDispatch:r,updateShouldRefocus:mV,keyboard:hV,tableWrapperRef:gV})}(M),z(t,(()=>({interpolatedScrollTo:(e,t)=>{const r=(g.current?.clientHeight??a)-a,n=Math.round(r*e);v.current=e,1===v.current?(m.current?.scrollToItem({rowIndex:x-1,align:"start"}),m.current?.scrollTo({scrollLeft:t})):m.current?.scrollTo({scrollTop:n,scrollLeft:t})}})),[g,a,x]),dV(g,i),rr.jsx(OB,{"data-key":"body",ref:m,innerRef:g,style:yV,columnCount:s.qHyperCube.qSize.qcx,columnWidth:e=>f[e],height:a,rowCount:x,rowHeight:P,estimatedRowHeight:c.estimatedRowHeight,width:r.width,itemData:N,onItemsRendered:O,itemKey:vV,className:"sn-table-body",direction:p,children:QB})})));const SV=({width:e,height:t,children:r})=>rr.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:r}),wV=(e,t)=>{const r=A(null),n=aM(rM,(e=>e.columnWidths));L((()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)}),[t,r,e,n.length]);const o=O((r=>{const n=MF(r);n&&t(n+9,e)}),[e,t]);return kF(r,o),r},CV=hc("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e})((({interactions:e,hoverBackground:t,background:r,applicableStyle:n})=>({...n,background:r,"&&:hover:not(:has(button:hover))":{background:e.active?t:void 0}}))),EV=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,setMeasuredCellHeight:i}=r,{interactions:a,styleService:s,direction:l}=aM(rM,(e=>e.baseProps)),u=aM(rM,(e=>e.baseProps.selectionsAPI?.isModal())),c=aM(rM,(e=>e.showRightBorder)),d=aM(rM,(e=>e.tableData.totalsPosition)),p=!!a.active&&!u,f=n[e],{open:h,setOpen:m,handleOpenMenu:g,setIsAdjustingWidth:b,toggleSortOrder:v}=D$({isInteractionEnabled:p,column:f}),y=Jz(),x=wV(e,i),S=n.length-1===e,w=y?wF:BF,{ref:C,isDragging:E}=rB(f,e),R=u$(f.id);return rr.jsxs(CV,{"data-dragging":E,ref:C,className:`sn-table-cell ${nE}`,title:a.passive?f.label:void 0,onClick:y?g:v,applicableStyle:{...s.header,...Zz(s,d,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:pI(l,S,c),borderLeftWidth:fI(l,S,c),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:f.headTextAlign,boxSizing:"border-box",zIndex:n.length-e,flexDirection:"right"===f.headTextAlign?"row-reverse":"row",userSelect:"none",opacity:R},interactions:a,hoverBackground:s.headerMenuHoverBackground,background:y&&h?s.headerMenuActiveBackground:s.header.background,children:[rr.jsx(w,{forwardRef:x,column:f,isInteractionEnabled:p,open:h,setOpen:m}),rr.jsx(M$,{column:f,isLastColumn:S,onColumnResize:o,setIsAdjustingWidth:b})]})},RV=e=>{const[t,r]=P(new Map);YC((()=>{r(new Map)}),[e.length]);const n=O(((e,t)=>{r((r=>sV(r.get(t),e)?new Map(r).set(t,e):r))}),[]);return{rowHeight:R((()=>aV(t)),[t]),setMeasuredCellHeight:n}},PV=(e,t)=>{z(e,(()=>({scrollTo:e=>t.current?.scrollTo(e)})),[t])},AV=(e,t,r,n,o)=>{YC((()=>{e.current?.resetAfterIndex(0,!1)}),[t,r,e,n,o])},IV={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},MV=q(((e,t)=>{const{rect:r,columns:n,pageInfo:o,columResizeHandler:i,setHeaderRowHeight:a}=e,s=x.useRef(null),l=A(null),{layout:u,theme:c,styleService:d,direction:p,viewService:f}=aM(rM,(e=>e.baseProps)),h=aM(rM,(e=>e.columnWidths)),{rowHeight:m,setMeasuredCellHeight:g}=RV(n),b=I$(f,u);return PV(t,s),AV(s,u,o,h,c),dV(l,a),rr.jsx(HB,{className:"sn-table-head-row",ref:s,outerRef:l,layout:"horizontal",style:{...IV,...b?{display:"none"}:void 0},itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>h[e],height:Math.max(m+8,d.headerMinRowHeight),width:r.width,itemKey:e=>n[e].id,itemData:{columns:n,columResizeHandler:i,setMeasuredCellHeight:g},direction:p,children:EV})}));var kV=N(MV);const DV=q(((e,t)=>{const{children:r,width:n,height:o,onScroll:i}=e,{interactions:a,direction:s}=aM(rM,(e=>e.baseProps));return rr.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.scroll?"auto":"hidden",width:n,height:o},onScroll:i,dir:s,tabIndex:-1,children:r})})),TV=({children:e,rect:t})=>{const{direction:r}=aM(rM,(e=>e.baseProps));return rr.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"rtl"!==r?"0px":void 0,right:"rtl"===r?"0px":void 0,width:t.width,height:t.height},children:e})},OV=({index:e,style:t,data:r})=>{const{columns:n,totals:o,setMeasuredCellHeight:i}=r,{layout:a,interactions:s,styleService:l,direction:u}=aM(rM,(e=>e.baseProps)),c=aM(rM,(e=>e.showRightBorder)),d=wV(e,i),p=n[e].totalInfo,{totalsTextAlign:f,isTotalNumeric:h}=n[e],m=a.qHyperCube.qSize.qcx-1===e,g=u$(n[e].id);return rr.jsx("div",{className:`sn-table-cell ${nE}`,title:s.passive?p:void 0,style:{...t,...l.totalRow,...Zz(l,o,!1),background:l.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:pI(u,m,c),borderLeftWidth:fI(u,m,c),borderTopWidth:o.atBottom?"1px":"0px",borderBottomWidth:o.atTop?"1px":"0px",padding:"4px 12px",justifyContent:f,textAlign:f,boxSizing:"border-box",cursor:"default",opacity:g},children:rr.jsx(SF,{forwardRef:h?void 0:d,isNumeric:h,children:p})})},LV=q(((e,t)=>{const{rect:r,pageInfo:n,totals:o,columns:i,setTotalsRowHeight:a}=e,s=A(null),l=A(null),{layout:u,theme:c,styleService:d,direction:p}=aM(rM,(e=>e.baseProps)),f=aM(rM,(e=>e.columnWidths)),{rowHeight:h,setMeasuredCellHeight:m}=RV(i);return PV(t,s),AV(s,u,n,f,c),dV(l,a),rr.jsx(HB,{ref:s,outerRef:l,layout:"horizontal",style:IV,itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>f[e],height:Math.max(h,d.totalRowMinHeight),width:r.width,itemData:{columns:i,totals:o,setMeasuredCellHeight:m},direction:p,children:OV})}));var qV=N(LV);const NV=(e,t,r,n,o)=>O((i=>{const{scrollHeight:a,clientHeight:s,scrollTop:l}=i.currentTarget,u=((e,t)=>{const{scrollWidth:r,clientWidth:n,scrollLeft:o}=e,i=r-n;if("rtl"===t){if(o>i)return i;if(o<0)return Math.abs(o)}return o})(i.currentTarget,o),c=Math.max(0,Math.min(1,l/(a-s)));n.scrollTopRatio=c,n.scrollLeft=u,r.current?.interpolatedScrollTo(Number.isNaN(c)?0:c,u),e.current?.scrollTo(u),t.current?.scrollTo(u)}),[n,r,e,t,o]),jV=e=>{const{pageInfo:t}=e,{totalsPosition:r,columns:n,paginationNeeded:o}=aM(rM,(e=>e.tableData)),{layout:i,theme:a,rect:s,viewService:l,direction:u}=aM(rM,(e=>e.baseProps)),c=aM(rM,(e=>e.columnWidths)),d=A(null),p=A(null),f=A(null),h=A(null),m=R((()=>((e,t)=>{const r=e.height-(t?41:0);return{width:e.width,height:r}})(s,o)),[s,o]),g=aM(rM,(e=>e.yScrollbarWidth)),b=aM(rM,(e=>e.xScrollbarWidth)),v=R((()=>((e,t,r)=>({width:e.width-r,height:e.height-t}))(m,b,g)),[m,b,g]),{rowCount:y}=bV(i,t,v,c,0),{headerAndTotalsHeight:x,innerBodyHeight:S,setHeaderRowHeight:w,setTotalsRowHeight:C,setInnerBodyHeight:E}=(()=>{const[e,t]=P(0),[r,n]=P(0),[o,i]=P(0);return{headerAndTotalsHeight:e+r,innerBodyHeight:o,setHeaderRowHeight:t,setTotalsRowHeight:n,setInnerBodyHeight:i}})(),{width:I,height:M}=(({innerBodyHeight:e,headerAndTotalsHeight:t,rowCount:r,stickyContainerRect:n,columnWidths:o})=>{const{styleService:i}=aM(rM,(e=>e.baseProps)),a=e+t;let s=r*i.contentMinRowHeight+t;return a<2*n.height&&(s=a),{width:o.reduce(((e,t)=>e+t),0),height:s}})({innerBodyHeight:S,headerAndTotalsHeight:x,rowCount:y,stickyContainerRect:v,columnWidths:c}),k=NV(p,f,h,l,u),D=((e,t,r)=>Math.min(e.height-t,r))(v,x,S),T=O((()=>{d.current&&(d.current.scrollTop=0)}),[d]);rH(),L((()=>{d.current&&(d.current.scrollLeft=0,d.current.scrollTop=0)}),[n.length]),L((()=>{d.current&&(d.current.scrollTop=0)}),[t,y,a]),cH(d);const q=rr.jsx(qV,{rect:v,pageInfo:t,columns:n,ref:f,totals:r,setTotalsRowHeight:C},"totals");return rr.jsxs(JF,{children:[rr.jsx(DV,{ref:d,width:m.width,height:m.height,onScroll:k,children:rr.jsxs(SV,{width:I,height:M,children:[rr.jsxs(TV,{rect:v,children:[rr.jsx(kV,{rect:v,pageInfo:t,columns:n,ref:p,columResizeHandler:T,setHeaderRowHeight:w}),r.atTop?q:null,rr.jsx(xV,{ref:h,rect:v,pageInfo:t,columns:n,setInnerBodyHeight:E,bodyHeight:D}),r.atBottom?q:null]}),rr.jsx(Xz,{})]})}),rr.jsx(YF,{isPagination:!1})]})};var _V=N(jV);const zV=()=>{const{theme:e,keyboard:t,interactions:r,rect:n,layout:o}=aM(rM,(e=>e.baseProps)),{paginationNeeded:i,totalRowCount:a,totalColumnCount:s,totalPages:l}=aM(rM,(e=>e.tableData)),u=oR(sR),c=aM(rM,(e=>e.pageInfo)),d=aM(rM,(e=>e.setPage));return rr.jsxs(bF,{"data-testid":"sn-table",children:[rr.jsx(_V,{pageInfo:c}),rr.jsx(Ok,{paginationNeeded:i,handleChangePage:e=>{d(e)},pageInfo:c,totalRowCount:a,totalColumnCount:s,totalPages:l,keyboard:t,translator:u,theme:e,interactions:r,rect:n,layout:o})]})};var FV=N(zV);var HV={SNTable_Accessibility_Ascending:{id:"SNTable.Accessibility.Ascending",locale:{"de-DE":"Aufsteigend","en-US":"Ascending","es-ES":"Ascendente","fr-FR":"Croissant","it-IT":"Crescente","ja-JP":"昇順","ko-KR":"오름차순","nl-NL":"Oplopend","pl-PL":"Rosnąco","pt-BR":"Crescente","ru-RU":"По возрастанию","sv-SE":"Stigande","tr-TR":"Artan","zh-CN":"升序","zh-TW":"遞增"}},SNTable_Accessibility_ColumnOptions:{id:"SNTable.Accessibility.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбцов","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},SNTable_Accessibility_Descending:{id:"SNTable.Accessibility.Descending",locale:{"de-DE":"Absteigend","en-US":"Descending","es-ES":"Descendente","fr-FR":"Décroissant","it-IT":"Decrescente","ja-JP":"降順","ko-KR":"내림차순","nl-NL":"Aflopend","pl-PL":"Malejąco","pt-BR":"Decrescente","ru-RU":"По убыванию","sv-SE":"Fallande","tr-TR":"Azalan","zh-CN":"降序","zh-TW":"遞減"}},SNTable_Accessibility_NavigationInstructions:{id:"SNTable.Accessibility.NavigationInstructions",locale:{"de-DE":"Verwenden Sie die Pfeiltasten, um zwischen den Tabellenzellen zu navigieren, und die Tabulatortaste, um zu den Paginierungssteuerelementen zu wechseln. Drücken Sie die Leertaste in den Kopfzellen, um das Spaltenmenü zu öffnen, und drücken Sie die Leertaste in den Körperzellen, um eine Auswahl zu treffen. Duch die Auswahl wird der Seiteninhalt aktualisiert. Die vollständige Liste der Navigationssteuerungen finden Sie in der Dokumentation.","en-US":"Use arrow keys to navigate between table cells and tab to move to pagination controls. Press space on header cells to open the column menu, press space on body cells to make selections. Selections will cause content on the page to be updated. The full list of navigation controls can be found in the documentation.","es-ES":"Utilice las teclas de flecha para desplazarse entre las celdas de la tabla y la pestaña a fin de pasar a los controles de paginación. Pulse la barra espaciadora en las celdas del encabezado para abrir el menú de columnas; pulse la barra espaciadora en las celdas del cuerpo para realizar selecciones. Las selecciones harán que se actualice el contenido de la página. Encontrará la lista completa de controles de navegación en la documentación.","fr-FR":"Utilisez les touches fléchées pour naviguer parmi les cellules du tableau et la tabulation pour accéder aux commandes de pagination. Appuyez sur la touche Espace dans les cellules d'en-tête pour ouvrir le menu de la colonne. Appuyez sur Espace dans les cellules de corps pour effectuer une sélection. Les sélections actualiseront le contenu de la page. Vous pouvez consulter la liste complète des commandes de navigation dans la documentation.","it-IT":"Utilizzare i tasti freccia per navigare tra le celle della tabella e il tasto TAB per passare ai controlli di paginazione. Premere lo spazio nelle celle dell'intestazione per aprire il menu della colonna; premere lo spazio nelle celle del corpo per effettuare selezioni. Le selezioni determineranno l'aggiornamento del contenuto della pagina. È possibile trovare l'elenco completo dei controlli di navigazione nella documentazione.","ja-JP":"矢印キーで表のセル間を移動し、タブ キーでページネーション コントロールに移動します。ヘッダー セルでスペースを押すと列メニューが開き、ボディ セルでスペースを押すと選択ができます。選択によって、ページのコンテンツが更新されます。ナビゲーション コントロールの全リストは、ドキュメントをご覧ください。","ko-KR":"화살표 키를 사용하여 표 셀 사이를 탐색하고, 탭을 사용하여 페이지 번호 컨트롤로 이동하십시오. 헤더 셀에서 스페이스바를 눌러 열 메뉴를 열고, 본문 셀에서 스페이스바를 눌러 선택하십시오. 선택하면 페이지의 콘텐츠가 업데이트됩니다. 전체 탐색 컨트롤 목록은 설명서에서 확인할 수 있습니다.","nl-NL":"Gebruik de pijltjestoetsen om te navigeren tussen tabelcellen en de Tab-toets om naar besturingselementen voor paginering te gaan. Druk op de spatietoets in koptekstcellen om het kolommenu te openen, druk op de spatietoets in hoofdtekstcellen om selecties te maken. Door selecties te maken, wordt de inhoud op de pagina bijgewerkt. De volledige lijst met besturingselementen voor navigatie vindt u in de documentatie.","pl-PL":"Użyj klawiszy strzałek do poruszania się między komórkami tabeli oraz tabulatora do poruszania się po elementach sterujących stronami. Naciśnij klawisz spacji na komórkach nagłówka, aby otworzyć menu kolumny i naciśnij go na komórkach treści, aby dokonać wyborów. Wybory będą powodować aktualizację zawartości na stronie. Pełną listę nawigacyjnych elementów sterujących można znaleźć w dokumentacji.","pt-BR":"Use as teclas de seta para navegar entre as células da tabela e a tecla Tab para mover para os controles de paginação. Pressione espaço nas células do cabeçalho para abrir o menu da coluna, pressione espaço nas células do corpo para fazer seleções. As seleções farão com que o conteúdo da página seja atualizado. A lista completa de controles de navegação pode ser encontrada na documentação.","ru-RU":"Используйте клавиши со стрелками для перемещения между ячейками таблицы и клавишу табуляции для перехода к элементам управления разбивки на страницы. Нажмите пробел на ячейках заголовка, чтобы открыть меню столбца; нажмите пробел на ячейках тела, чтобы сделать выборки. Выборки приведут к обновлению содержимого страницы. Полный перечень элементов управления навигацией см. в документации.","sv-SE":"Använd piltangenterna för att navigera mellan tabellcellerna och tabbtangenten för att flytta till pagineringskontrollerna. Tryck på mellanslag på rubrikceller för att öppna kolumnmenyn och tryck på mellanslag på innehållsceller för att göra urval. Med urval kommer innehåll på sidan att uppdateras. Den fullständiga listan med navigeringsreglage.","tr-TR":"Tablo hücreleri arasında gezinmek için ok tuşlarını, sayfalandırma kontrollerine geçmek için sekmeyi kullanın. Sütun menüsünü açmak için başlık hücrelerinde boşluğa basın, seçim yapmak için gövde hücrelerinde boşluğa basın. Seçimler, sayfadaki içeriğin güncellenmesine neden olur. Navigasyon kontrollerinin tam listesi belgede bulunabilir.","zh-CN":"使用箭头键在表格单元格之间导航,使用 tab 键移动到分页控件。按标题单元格上的空间打开列菜单,按正文单元格上的空间进行选择。选择将导致页面上的内容更新。导航控件的完整列表可以在文档中找到。","zh-TW":"使用方向鍵以在表格儲存格之間導覽,並使用 Tab 以前往分頁控制。按下標頭儲存格的空白處可開啟欄功能表,按下正文儲存格的空白處可進行選取。選項將會造成更新頁面上的內容。導覽控制的完整清單可見於文件中。"}},SNTable_Accessibility_RowsAndColumns:{id:"SNTable.Accessibility.RowsAndColumns",locale:{"de-DE":"Es werden {0} Zeilen und {1} Spalten angezeigt.","en-US":"Showing {0} rows and {1} columns.","es-ES":"Mostrando {0} filas y {1} columnas.","fr-FR":"Affichage de {0} lignes et de {1} colonnes.","it-IT":"Visualizzazione di {0} righe e {1} colonne.","ja-JP":"{0} 行 {1} 列を表示しています。","ko-KR":"{0}개의 행과 {1}개의 열을 표시합니다.","nl-NL":"{0} rijen en {1} kolommen worden getoond.","pl-PL":"Wyświetlane wiersze: {0} i kolumny: {1}.","pt-BR":"Mostrando {0} linhas e {1} colunas.","ru-RU":"Показаны строки ({0}) и столбцы ({1}).","sv-SE":"Visar {0} rader och {1} kolumner.","tr-TR":"{0} satır ve {1} sütun gösteriliyor.","zh-CN":"正在显示 {0} 行,{1} 列。","zh-TW":"顯示 {0} 列和 {1} 欄。"}},SNTable_MenuItem_AdjustColumnSize:{id:"SNTable.MenuItem.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},SNTable_MenuItem_ClearSelections:{id:"SNTable.MenuItem.ClearSelections",locale:{"de-DE":"Auswahl löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Selecties wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},SNTable_MenuItem_Search:{id:"SNTable.MenuItem.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},SNTable_MenuItem_SelectAll:{id:"SNTable.MenuItem.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},SNTable_MenuItem_SelectAlternative:{id:"SNTable.MenuItem.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},SNTable_MenuItem_SelectExcluded:{id:"SNTable.MenuItem.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},SNTable_MenuItem_SelectPossible:{id:"SNTable.MenuItem.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},SNTable_MenuItem_Selections:{id:"SNTable.MenuItem.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},SNTable_MenuItem_SortAscending:{id:"SNTable.MenuItem.SortAscending",locale:{"de-DE":"Sortierung in aufsteigender Reihenfolge","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Tri par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},SNTable_MenuItem_SortDescending:{id:"SNTable.MenuItem.SortDescending",locale:{"de-DE":"Sortierung in absteigender Reihenfolge","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Tri par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},SNTable_Pagination_DisplayedRowsLabel:{id:"SNTable.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{1}의 {0}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},SNTable_Pagination_FirstPage:{id:"SNTable.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},SNTable_Pagination_LastPage:{id:"SNTable.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},SNTable_Pagination_NextPage:{id:"SNTable.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},SNTable_Pagination_PageStatusReport:{id:"SNTable.Pagination.PageStatusReport",locale:{"de-DE":"Die Seite wurde geändert. Seite {0} von {1} wird angezeigt.","en-US":"Page has changed. Showing page {0} of {1}.","es-ES":"La página ha cambiado. Mostrando página {0} de {1}.","fr-FR":"La page a changé. Affichage de la page {0} sur {1}.","it-IT":"La pagina è cambiata. Visualizzazione pagina {0} di {1}.","ja-JP":"ページが変更されました。{1} ページ中の {0} ページ目を表示しています。","ko-KR":"페이지가 변경되었습니다. {1}의 {0} 페이지를 보여 줍니다.","nl-NL":"Pagina is gewijzigd. Pagina {0} van {1} wordt weergeven.","pl-PL":"Strona się zmieniła Wyświetlanie strony {0} z {1}.","pt-BR":"A página mudou. Mostrando página {0} de {1}.","ru-RU":"Страница изменилась. Показана страница {0} из {1}.","sv-SE":"Sidan har ändrats. Visar sida {0} av {1}.","tr-TR":"Sayfa değişti. Sayfa {0} / {1} gösteriliyor.","zh-CN":"页面已更改。显示页面 {0} / {1}。","zh-TW":"頁面已變更。顯示第 {0} 頁,共 {1} 頁。"}},SNTable_Pagination_PreviousPage:{id:"SNTable.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},SNTable_Pagination_RowsPerPage:{id:"SNTable.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},SNTable_Pagination_RowsPerPageChange:{id:"SNTable.Pagination.RowsPerPageChange",locale:{"de-DE":"Zeilen pro Seite wurden in {0} geändert. Jetzt wird die erste Seite angezeigt.","en-US":"Rows per page has changed to {0}. Now showing the first page.","es-ES":"El número de filas por página ha cambiado a {0}. Mostrando ahora la primera página.","fr-FR":"Le nombre de lignes par page a été remplacé par {0}. Affichage en cours de la première page.","it-IT":"Le righe per pagina sono cambiate a {0}. Viene ora mostrata la prima pagina.","ja-JP":"ページあたりの行数が {0} に変更されました。現在、最初のページを表示しています。","ko-KR":"페이지당 행 수가 {0}(으)로 변경되었습니다. 이제 첫 페이지를 보여 줍니다.","nl-NL":"Aantal rijen per pagina is gewijzigd naar {0}. De eerste pagina wordt nu weergegeven.","pl-PL":"Liczba wierszy na stronę została zmieniona na {0}. Wyświetlana jest pierwsza strona.","pt-BR":"Linhas por página mudou para {0}. Agora mostrando a primeira página.","ru-RU":"Количество строк на странице изменилось на {0}. Теперь отображается первая страница.","sv-SE":"Rader per sida har ändrats till {0}. Nu visas första sidan.","tr-TR":"Sayfa başına satır sayısı {0} olarak değiştirildi. Şimdi ilk sayfa gösteriliyor.","zh-CN":"每页行数已更改为 {0}。现在显示第一页。","zh-TW":"每頁列數已變更為 {0}。現在顯示第一頁。"}},SNTable_Pagination_SelectPage:{id:"SNTable.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}},SNTable_SelectionLabel_DeselectedValue:{id:"SNTable.SelectionLabel.DeselectedValue",locale:{"de-DE":"Die Werteauswahl ist aufgehoben.","en-US":"Value is deselected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur est désélectionnée.","it-IT":"Il valore è deselezionato.","ja-JP":"値が選択解除されました。","ko-KR":"값이 선택 취소되었습니다.","nl-NL":"Selectie van waarde opgeheven.","pl-PL":"Wartość nie jest zaznaczona.","pt-BR":"O valor está desmarcado.","ru-RU":"Выбор значения отменен.","sv-SE":"Val av värde har tagits bort.","tr-TR":"Değer seçimi iptal edildi.","zh-CN":"值已取消选择。","zh-TW":"值已取消選取。"}},SNTable_SelectionLabel_ExitedSelectionMode:{id:"SNTable.SelectionLabel.ExitedSelectionMode",locale:{"de-DE":"Die Werteauswahl ist aufgehoben. Auswahlmodus beendet.","en-US":"Value is deselected. Exited selection mode.","es-ES":"El valor no está seleccionado. Salió del modo de selección.","fr-FR":"La valeur est désélectionnée. Mode de sélection désactivé.","it-IT":"Il valore è deselezionato. Uscita dalla modalità selezione.","ja-JP":"値が選択解除されました。選択モードを終了しました。","ko-KR":"값이 선택 취소되었습니다. 선택 모드를 종료했습니다.","nl-NL":"Selectie van waarde opgeheven. Selectiemodus afgesloten.","pl-PL":"Wartość nie jest zaznaczona. Zakończono tryb wyboru.","pt-BR":"O valor está desmarcado. Modo de seleção encerrado.","ru-RU":"Выбор значения отменен. Выполнен выход из режима выборки.","sv-SE":"Val av värde har tagits bort. Lämnade urvalsläge.","tr-TR":"Değer seçimi iptal edildi. Seçim modundan çıkıldı.","zh-CN":"值已取消选择。已退出选择模式。","zh-TW":"值已取消選取。輸入的選取模式。"}},SNTable_SelectionLabel_NotSelectedValue:{id:"SNTable.SelectionLabel.NotSelectedValue",locale:{"de-DE":"Wert ist nicht ausgewählt.","en-US":"Value is not selected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur n'est pas sélectionnée.","it-IT":"Il valore non è selezionato.","ja-JP":"値が選択されていません。","ko-KR":"값이 선택되지 않았습니다.","nl-NL":"Waarde is niet geselecteerd.","pl-PL":"Wartość nie jest wybrana.","pt-BR":"O valor não está selecionado.","ru-RU":"Значение не выбрано.","sv-SE":"Värdet är inte valt.","tr-TR":"Değer seçilmedi.","zh-CN":"未选择值。","zh-TW":"未選取值。"}},SNTable_SelectionLabel_OneSelectedValue:{id:"SNTable.SelectionLabel.OneSelectedValue",locale:{"de-DE":"Aktuell ist ein Wert ausgewählt.","en-US":"Currently there is one selected value.","es-ES":"Actualmente hay un valor seleccionado.","fr-FR":"Actuellement, une valeur est sélectionnée.","it-IT":"Attualmente è presente un solo valore selezionato.","ja-JP":"現在、値が 1 つ選択されています。","ko-KR":"현재 하나의 값이 선택되었습니다.","nl-NL":"Er is momenteel één waarde geselecteerd.","pl-PL":"Aktualnie jest jedna wybrana wartość.","pt-BR":"Atualmente, há um valor selecionado.","ru-RU":"В настоящее время выбрано одно значение.","sv-SE":"Just nu är ett värde valt.","tr-TR":"Şu anda seçili bir değer var.","zh-CN":"当前有一个已选择的值。","zh-TW":"目前有一個選取的值。"}},SNTable_SelectionLabel_SelectedValue:{id:"SNTable.SelectionLabel.SelectedValue",locale:{"de-DE":"Wert ist ausgewählt.","en-US":"Value is selected.","es-ES":"El valor está seleccionado.","fr-FR":"La valeur est sélectionnée.","it-IT":"Il valore è selezionato.","ja-JP":"値が選択されました。","ko-KR":"값이 선택되었습니다.","nl-NL":"Waarde is geselecteerd.","pl-PL":"Wartość jest wybrana.","pt-BR":"O valor está selecionado.","ru-RU":"Значение выбрано.","sv-SE":"Värdet är valt.","tr-TR":"Değer seçildi.","zh-CN":"已选择值。","zh-TW":"已選取值。"}},SNTable_SelectionLabel_SelectedValues:{id:"SNTable.SelectionLabel.SelectedValues",locale:{"de-DE":"Aktuell sind {0} Werte ausgewählt.","en-US":"Currently there are {0} selected values.","es-ES":"Actualmente hay {0} valores seleccionados.","fr-FR":"Actuellement, {0} valeurs sont sélectionnées.","it-IT":"Attualmente sono presenti {0} valori selezionati.","ja-JP":"現在、値が {0} つ選択されています。","ko-KR":"현재 {0}개의 값이 선택되었습니다.","nl-NL":"Er zijn momenteel {0} geselecteerde waarden.","pl-PL":"Liczba aktualnie wybranych wartości: {0}.","pt-BR":"Atualmente, há {0} valores selecionados.","ru-RU":"В настоящее время выбраны значения: {0}.","sv-SE":"Just nu är {0} värden valda.","tr-TR":"Şu anda seçili {0} değer var.","zh-CN":"当前有 {0} 个已选择的值。","zh-TW":"目前有 {0} 個選取的值。"}},SNTable_SelectionLabel_SelectionsConfirmed:{id:"SNTable.SelectionLabel.SelectionsConfirmed",locale:{"de-DE":"Auswahl bestätigt.","en-US":"Selections confirmed.","es-ES":"Confirmadas las selecciones.","fr-FR":"Sélections confirmées.","it-IT":"Selezioni confermate.","ja-JP":"選択が確定されました。","ko-KR":"선택 내용이 확인되었습니다.","nl-NL":"Selecties bevestigd.","pl-PL":"Potwierdzono wybory.","pt-BR":"Seleções confirmadas.","ru-RU":"Выборки подтверждены.","sv-SE":"Valen har bekräftats.","tr-TR":"Seçimler onaylandı.","zh-CN":"选择已确认。","zh-TW":"選項已確認。"}},SNTable_SelectionLabel_selected:{id:"SNTable.SelectionLabel.selected",locale:{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбрано","sv-SE":"Urval","tr-TR":"Seçildi","zh-CN":"已选择","zh-TW":"已選取"}},SNTable_SortLabel_PressSpaceToSort:{id:"SNTable.SortLabel.PressSpaceToSort",locale:{"de-DE":"Drücken Sie die Leertaste, um nach dieser Spalte zu sortieren","en-US":"Press space to sort on this column","es-ES":"Pulse la barra espaciadora para ordenar en esta columna.","fr-FR":"Appuyez sur Espace pour trier en fonction de cette colonne.","it-IT":"Premere la barra spaziatrice per ordinare questa colonna","ja-JP":"スペース キーを押して、この列をソートします","ko-KR":"이 열을 정렬하려면 스페이스바를 누르십시오.","nl-NL":"Druk op de spatiebalk om sorteren in deze kolom in te schakelen","pl-PL":"Naciśnij spację, aby posortować według tej kolumny","pt-BR":"Pressione espaço para classificar por esta coluna","ru-RU":"Нажмите пробел, чтобы отсортировать по этому столбцу","sv-SE":"Tryck på Blanksteg om du vill sortera efter den här kolumnen","tr-TR":"Bu sütunda sıralama yapmak için boşluk tuşuna basın.","zh-CN":"按下空格键以在该列上排序。","zh-TW":"在此欄按下空格鍵以進行排序"}},SNTable_SortLabel_SortedAscending:{id:"SNTable.SortLabel.SortedAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortiert.","en-US":"Sorted in ascending order.","es-ES":"Ordenado por orden ascendente.","fr-FR":"Tri dans l'ordre croissant.","it-IT":"Ordinato in ordine crescente.","ja-JP":"昇順で並べ替えられます。","ko-KR":"오름차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in oplopende volgorde.","pl-PL":"Posortowane rosnąco.","pt-BR":"Classificado em ordem crescente.","ru-RU":"Сортировка в порядке возрастания.","sv-SE":"Sorterat i stigande ordning.","tr-TR":"Artan düzende sıralanmıştır.","zh-CN":"已按升序排列。","zh-TW":"已依遞增順序排序。"}},SNTable_SortLabel_SortedDescending:{id:"SNTable.SortLabel.SortedDescending",locale:{"de-DE":"In absteigender Reihenfolge sortiert.","en-US":"Sorted in descending order.","es-ES":"Ordenado por orden descendente.","fr-FR":"Tri dans l'ordre décroissant.","it-IT":"Ordinato in ordine decrescente.","ja-JP":"降順で並べ替えられます。","ko-KR":"내림차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in aflopende volgorde.","pl-PL":"Posortowane malejąco.","pt-BR":"Classificado em ordem decrescente.","ru-RU":"Сортировка в порядке убывания.","sv-SE":"Sorterat i fallande ordning.","tr-TR":"Azalan düzende sıralanmıştır.","zh-CN":"已按降序排列。","zh-TW":"已依遞減順序排序。"}}};const $V=(t,r)=>{const n=r.get(sR);return e((()=>(function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(HV).forEach((t=>{e.add(HV[t])}))}(n),((e,t)=>{let r;return({keys:n,politeness:o="polite"})=>{const i=n.map((e=>{if(Array.isArray(e)){const[r,...n]=e;return t.get(r,n)}return t.get(e)})).join(" "),a=e.querySelector(`.${BA.First}`),s=e.querySelector(`.${BA.Second}`);if(!a||!s)return void console.error("could not find aria-live elements, which means accessibility is not working properly");let l;r===BA.First?(l=s,r=BA.Second):(l=a,r=BA.First),l.innerHTML=l.innerHTML.endsWith(" ")?i:`${i} `,l.setAttribute("aria-live",o)}})(t,n))),[t,n.language()])},WV={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},BV=(e,r)=>{const{model:i,rootElement:a,layout:s,reactRoot:l,isFontLoaded:u,viewService:c,env:d}=e,{direction:p,footerContainer:f}=t(),h=NA(s,c),m=$V(a,r),[g,b]=n(((e,t)=>qA(e,t)?{page:t.page||WV.page,rowsPerPage:t.rowsPerPage||WV.rowsPerPage,rowsPerPageOptions:WV.rowsPerPageOptions}:WV)(s,c)),[v,y]=HC((async()=>h?async function(e,t,r,n,o,i,a,s){const{page:l,rowsPerPage:u,rowsPerPageOptions:c}=r,d=t.qHyperCube.qSize.qcx,p=t.qHyperCube.qSize.qcy,f=Math.ceil(p/u),h=o.visibleTop??l*u,m=o.visibleHeight??Math.min(u,p-h);if(l>0&&h>=p)return n({...r,page:0}),null;if(m*d>AA)return n({...r,rowsPerPage:IA(d,c),page:0}),null;const g=p>10,b=MA(t,o),v=LA(t,a,s),y=!!t.snapshotData,x=await(async(e,t,r)=>{if(t.snapshotData)return t.qHyperCube.qDataPages;const n=t.qHyperCube.qDataPages.at(0),o=n?.qArea;return n&&o?.qLeft===r.qLeft&&o.qTop===r.qTop&&o.qWidth===r.qWidth&&o.qHeight>=r.qHeight?[{...n,qMatrix:n.qMatrix.slice(0,r.qHeight)}]:e&&"getHyperCubeData"in e?e.getHyperCubeData("/qHyperCubeDef",[r]):[]})(e,t,{qLeft:0,qTop:h,qHeight:m,qWidth:d});y||(o.qTop=h,o.qHeight=m,o.rowsPerPage=r.rowsPerPage,o.page=r.page);const S=x.at(0)?.qMatrix.map(((e,r)=>{const n=[];return v.forEach(((o,l)=>{const u=e[l],c=PA(o.isDim,u,t),d=!o.isDim&&u.qIsNull,p=d?OP(c):TP(u);n[l]={id:MP(),...u,align:OA(p,o.bodyTextAlign,s,a),rowIdx:r+h,colIdx:o.colIdx,pageRowIdx:r,pageColIdx:l,selectionColIdx:o.selectionColIdx,isSelectable:o.isDim&&!o.isLocked,isLastRow:r===m-1,isNumeric:p,isNull:(!d||!p)&&RA(u,o.isDim),representation:EA({cell:u,representationProperties:o.representation,attrExprInfoIndex:o.qAttrExprInfoIndex,env:i,conditionalColoring:o.conditionalColoring,miniChartOnMeasure:o.qMiniChart,getText:()=>d?c:u.qText,direction:s,enabledFeatures:{[OR.Image]:!0,[OR.Indicator]:!0,[OR.MiniChart]:!0}})}})),n}))??[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}(i,s,g,b,c,d,!0,p):null),[s,g,i,h,p]);o((()=>{h&&e.model&&e.changeSortOrder&&v&&u&&!y&&function(e,t,r){const{direction:n,...o}=e,i=sM(n);t.render(rr.jsx(mi,{stylisPlugins:"rtl"===n?[FA]:void 0,children:rr.jsx(gc,{theme:i,children:rr.jsx(ZE,{store:r,children:rr.jsx(iM,{...e,children:rr.jsx(sB,{...o})})})})}))}({...e,model:e.model,changeSortOrder:e.changeSortOrder,tableData:v,pageInfo:g,setPageInfo:b,direction:p,footerContainer:f,announce:m},l,r)}),[m,p,f,u,g,l,e,h,v,y,r])},VV=(t,r)=>e((()=>((e,t)=>{if(t)return async(r,n)=>{if(!("getEffectiveProperties"in t))return;const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:s,isActivelySorted:l}=r,u=o?i:i-e,c=await t.getEffectiveProperties(),d=c.qHyperCubeDef.qInterColumnSortOrder,p=[],f=n!==s||l;if(!o){const e=c.qHyperCubeDef.qMeasures.at(u)?.qSortBy;void 0===e?.qSortByNumeric&&p.push({qPath:`/qHyperCubeDef/qMeasures/${u}/qSortBy`,qOp:"Replace",qValue:JSON.stringify({...e,qSortByNumeric:"A"===s?1:-1})})}l||(d.splice(d.indexOf(i),1),d.unshift(i),p.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${d.join(",")}]`})),f&&p.push({qPath:`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${u}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),t.applyPatches(p,!0)}})(t.qDimensionInfo.length,r)),[t.qDimensionInfo.length,r]);const UV=({model:e,layout:t,shouldRender:r,page:n})=>{const[o,i]=HC((async()=>{if(r&&e)return(async(e,t,r)=>{const{qDataPages:n}=t.qHyperCube;if(0!==r||0===n.length){const n=r*Math.min(SI,t.qHyperCube.qSize.qcy);if(e&&"getHyperCubeData"in e)return e.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:n,qWidth:50,qHeight:100}])}return[...n]})(e,t,n)}),[e,t,n]);return{initialDataPages:o,isLoading:i}},GV=(t,r)=>{const{layout:i,model:a,keyboard:s,interactions:l,reactRoot:u,isFontLoaded:c,viewService:d,direction:p}=t,f=!NA(i,d),[h,m]=n(!1);h&&m(!1);const g=e((()=>function(e,t,r,n,o){const i=LA(e,o,n),a=MA(e,r),s=e.qHyperCube.qSize.qcy,l=Math.min(SI,s),u=s>SI&&!!t.active;return{totalsPosition:a,columns:i,rows:[],totalRowCount:s,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(s/l),paginationNeeded:u}}(i,l,d,p,h)),[i,l,d,p,h]),{pageInfo:b,setPage:v}=((t,r)=>{const[o,i]=n(0),a=Math.min(SI,t.qHyperCube.qSize.qcy),s=e((()=>({page:o,rowsPerPage:a,rowsPerPageOptions:[]})),[a,o]);if(r){const e=Math.floor(t.qHyperCube.qSize.qcy/SI);e<o&&i(e)}return{pageInfo:s,setPage:i}})(i,f),{initialDataPages:y,isLoading:S}=UV({model:a,layout:i,page:b.page,shouldRender:f});o((()=>{f&&s.active&&s.blur?.(!1)}),[s,f]),o((()=>{f&&t.model&&t.changeSortOrder&&y&&!S&&c&&function(e,t,r){const{direction:n}=e,o=sM(n);t.render(rr.jsx(x.StrictMode,{children:rr.jsx(gc,{theme:o,children:rr.jsx(ZE,{store:r,children:rr.jsx(iM,{...e,children:rr.jsx(FV,{})})})})}))}({...t,model:t.model,changeSortOrder:t.changeSortOrder,tableData:g,pageInfo:b,setPage:v,initialDataPages:y},u,r)}),[y,c,S,b,u,t,v,f,g,r])},YV={version:JSON.stringify("6.5.7"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals"},usePagination:!1,components:[]};function KV(e,t){const r=e.getElementsByClassName("sn-table-container")[0];if(!r)return{};const n=r.getBoundingClientRect(),o=e.getElementsByClassName("sn-table-head-row")[0],i=o?.getBoundingClientRect()??{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],s=a?.getBoundingClientRect()??{height:0},l=e.getElementsByClassName("sn-table-data-row"),u={top:n.y+i.height+(t.atTop?s.height:0),bottom:n.y+n.height-(t.atBottom?s.height:0)},c=((e,t)=>{if(!e)return-1;for(let r=0;r<e.length;r++)if(e[r].getBoundingClientRect().bottom>t.top)return r;return-1})(l,u),d=((e,t)=>{if(!e)return-1;for(let r=e.length-1;r>-1;r--){const n=e[r].getBoundingClientRect();if(t.bottom>n.top)return r}return-1})(l,u),p=((e,t,r)=>{if(!e||0===e.length||r<0)return 0;const n=e[r].getBoundingClientRect();return Math.max(t.top-n.top,0)})(l,u,c);return{visibleRowStartIndex:c,visibleRowEndIndex:d,rowPartialHeight:p}}const XV=(e,t)=>{if(t)for(let r=0;r<t.length;r++){const n=t[r].getAttribute("rowindex");if(n&&parseInt(n,10)===e)return t[r]}},JV=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const ZV=(e,t,r,n)=>{if(e<0)return 0;const o=r.qHyperCube.qSize.qcy,i=n.rowsPerPage||WV.rowsPerPage,a=n.viewState?.isMultiPage?0:3;return Math.min(o,i,e-t+1+a)},QV=(e,t,r)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const n=MA(e,t);if(NA(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=KV(r,n);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:ZV(i,o,e,t),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}}const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1}=function(e,t){const r=e.querySelector(".sn-table-body"),n=r?.getBoundingClientRect(),o=r?.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!n)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:s=0,page:l=0,rowsPerPage:u=0}=t,c=l*u,d=a-c,p=d+s-1,f=XV(d,o),h=f?.getBoundingClientRect();if(!f||!h)return{};const m=n.y;if(1-i<.001)return{visibleRowStartIndex:d+(h.y>=m-4?0:1)+c,visibleRowEndIndex:p+c};const g=n.y+n.height,b=(JV(h,m,g)?d:d+1)+c;let v=p+c;const y=XV(p,o),x=y?.getBoundingClientRect();return y&&x&&(JV(x,m,g)||(v=p-1+c)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(r,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:o,visibleHeight:ZV(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}},eU=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),tU=e=>e.getStyle("object","straightTableV2","backgroundColor");function rU(r){return{qae:{properties:{initial:YV},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:e=>PR({...e}),exportProperties:xR,exploration:AR},ext:SP(r),component(){const n=e((()=>KE()),[]),i=c(),y=(t=>{const r=e((()=>VC(t)),[t]);return o((()=>()=>{r.unmount()}),[r]),r})(i),x=d();n.set(aR,p());const S=f(),w=(e=>{const t=a();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}})(!!x.snapshotData);n.set(sR,h());const C=m(),E=g(),R=t(),{freeResize:P}=R,A=b(),I=e((()=>x.snapshotData?.content&&!P?{...A,...x.snapshotData.content.size}:A),[A,P,x.snapshotData?.content]),M=(r=>{const{viewState:n}=t();return e((()=>((e,t)=>({qTop:0,qHeight:0,rowPartialHeight:t?.content?.rowPartialHeight??0,visibleTop:t?.content?.visibleTop??e?.visibleTop,visibleHeight:t?.content?.visibleHeight??e?.visibleHeight,scrollLeft:t?.content?.scrollLeft??e?.scrollLeft??0,scrollTopRatio:t?.content?.scrollTopRatio??e?.scrollTopRatio,rowsPerPage:t?.content?.rowsPerPage??e?.rowsPerPage,page:t?.content?.page??e?.page,viewState:e,estimatedRowHeight:t?.content?.estimatedRowHeight??0}))(n,r.snapshotData)),[n,r.snapshotData,r.usePagination])})(x),k=v(),D=FC(x,i,eU,tU),T=R.direction,O=VV(x.qHyperCube,S),L=wP(x.qHyperCube,S),q=((e,t,r)=>{const[,n,o]=HC((async()=>{const t=ye(r.flags),n=e.getStyle("","","fontFamily"),o=e.getStyle("object","label.name","fontFamily"),i=e.getStyle("object","label.value","fontFamily"),a=e.getStyle("","","fontFamilies")??[];return Promise.all([...t,...a,n,o,i,GC].filter((e=>void 0!==e)).map((async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)})))}),[t,e,r]);return o?(console.warn("Failed to load fonts:",o),!0):!n})(D,x,r),N=Tt(),j=e((()=>new JC),[]),_={layout:x,model:S,rect:I,theme:D,keyboard:E,interactions:w,selectionsAPI:C,changeSortOrder:O,rootElement:i,embed:k,reactRoot:y,applyColumnWidths:L,isFontLoaded:q,downloadService:N,viewService:M,direction:T,env:r,eventEmitter:j};s?.(((e,t)=>{const r=t.target,n=r?.closest(`.${nE}`);n?.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",id:"copy-cell-context-item",select:async()=>{fE(n)}})})),(({layout:e,viewService:t,model:r,rootElement:n,contentRect:o})=>{l((async i=>{const a=i;if(!a.snapshotData||!r||a.snapshotData.content)return a;if("getHyperCubeData"in r){const{rowPartialHeight:i,scrollLeft:s,scrollTopRatio:l,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:h}=QV(e,t,n);a.qHyperCube.qDataPages=await r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:d,qWidth:e.qHyperCube.qSize.qcx,qHeight:p}]),a.snapshotData.content={rowPartialHeight:i,scrollLeft:s,scrollTopRatio:l,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:h,size:{width:o.width,height:o.height},estimatedRowHeight:t.estimatedRowHeight}}return a})),u((()=>({getViewState:()=>QV(e,t,n)})),[e,t,n])})({layout:x,viewService:M,model:S,rootElement:i,contentRect:A}),GV(_,n),BV(_,n)}}}export{rU as default};
|