@nebula.js/sn-pivot-table 6.1.0 → 6.1.2

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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * @nebula.js/sn-pivot-table v6.1.0
2
+ * @nebula.js/sn-pivot-table v6.1.2
3
3
  * Copyright (c) 2025 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
@@ -174,4 +174,4 @@ function En(e,t){let r;return r=t?mn(e).withConfig({displayName:t.label,shouldFo
174
174
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
175
175
  e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,s,l,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(m="",b=(d=t[0]).length%l,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-b+1)%l)&&y<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),h+(r?"-":"")+n+x}},Mz({exports:{}});const jz="qHyperCubeDef.qDimensions",Nz="dimensions",Fz="qOtherTotalSpec.qTotalMode",zz="totalMode",$z={quarantine(e){HN.quarantineArrayProp({properties:e,arrayPath:jz,quarantineName:zz,arrayName:Nz,itemPath:Fz})},unquarantine(e){HN.unquarantineArrayProp({properties:e,arrayPath:jz,quarantineName:zz,arrayName:Nz,itemPath:Fz})}};function Wz(e){const t=qz(e);return(e,r,n,o)=>{const i=HN.hypercube.importProperties({exportFormat:e,initialProperties:r,dataDefinition:t.targets[0],hypercubePath:o}),a=i.qProperty.qHyperCubeDef.qDimensions.length,s=i.qProperty.qHyperCubeDef.qMeasures.length;let l,u=i.qProperty.qHyperCubeDef.qInterColumnSortOrder,c=!0;a+s===u.length&&Iz(i,"qProperty.qLayoutExclude.quarantine.interColSortOrder",u.concat());const d=i.qProperty.qLayoutExclude.quarantine?.pivotInterColSortOrder;d?(u=d,l=[...d],Iz(i,"qProperty.qHyperCubeDef.qInterColumnSortOrder",u),i.qProperty.qLayoutExclude.quarantine&&delete i.qProperty.qLayoutExclude.quarantine.pivotInterColSortOrder):u.length=0;const p=+(u.indexOf(-1)>-1),f=a+p;if(f>u.length)for(let e=u.length;e<f;e++)u.indexOf(e)<0&&u.push(e-p);for(let e=u.length-1;e>=0;e--)u[e]>=a&&u.splice(e,1);s>1&&u.indexOf(-1)<0?u.push(-1):s<2&&u.indexOf(-1)>-1&&u.splice(u.indexOf(-1),1);const h=i.qProperty.qHyperCubeDef.qNoOfLeftDims??-1;if(a>0&&-1===h&&Iz(i,"qProperty.qHyperCubeDef.qNoOfLeftDims",a),l?.length===u.length){for(let e=0;e<l.length;e++)if(l[e]!==u[e]){c=!1;break}c&&(HN.unquarantineProperty(i.qProperty,"noOfLeftDims"),HN.unquarantineProperty(i.qProperty,"exludedNoOfLeftDims"))}return HN.conditionalShow.unquarantine(i.qProperty),$z.unquarantine(i.qProperty),rF(i.qProperty),HN.unquarantineProperty(i.qProperty,"pivotTableIndentMode"),i}}function Bz(e,t){const r=e.qProperty.qHyperCubeDef.qInterColumnSortOrder,n=r.slice(),o=r.indexOf(-1);o>-1&&r.splice(o,1);const i=HN.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),a=i.properties.qHyperCubeDef,s=a.qDimensions.length,l=a.qMeasures.length;let u=a.qInterColumnSortOrder;Iz(i,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",n),HN.quarantineProperty(i.properties,"qHyperCubeDef.qNoOfLeftDims","noOfLeftDims"),delete i.properties.qHyperCubeDef.qNoOfLeftDims;const c=i.properties.qLayoutExclude.quarantine?.interColSortOrder;c&&(u=c,Iz(i,"properties.qHyperCubeDef.qInterColumnSortOrder",u),Iz(i,"data.0.interColumnSortOrder",u),i.properties.qLayoutExclude.quarantine&&delete i.properties.qLayoutExclude.quarantine.interColSortOrder);for(let e=u.length;e<s+l;e++)u.length<=e&&u.push(e);return HN.quarantineProperty(i.properties,"qHyperCubeDef.qIndentMode","pivotTableIndentMode"),HN.quarantineProperty(i.properties,"qHyperCubeDef.exludedNoOfLeftDims","exludedNoOfLeftDims"),HN.conditionalShow.quarantine(i.properties),$z.quarantine(i.properties),nF(i.properties),i}const Gz={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}};let Hz=function(e){return e.Text="text",e.Link="link",e.Image="image",e.ImagesInIndentMode="imagesInIndentMode",e.Indicator="indicator",e.MiniChart="miniChart",e.EditableText="editableText",e.EditableSelector="editableSelector",e}({}),Vz=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const Uz=e=>{switch(e?.type){case"url":return Hz.Link;case"image":return Hz.Image;case"indicator":return Hz.Indicator;case"miniChart":return Hz.MiniChart;default:return Hz.Text}},Yz=({isImagesEnabled:e})=>({uses:"dimensionRepresentationItems.representationType",options(t,r,n){const{qIndentMode:o}=n.properties.qHyperCubeDef,i=[{value:"text",translation:"Object.Table.Representation.Text"},{value:"url",translation:"Object.Table.Representation.Link"}];return(!o&&e||o)&&i.push({value:"image",translation:"Object.Table.Representation.Image"}),i}}),Kz=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>Uz(e.qDef.representation)===Hz.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]},imageBoxWidth:{ref:"qDef.representation.imageBox.width",translation:"properties.pivot.representation.image.imageBox.width",type:"number",expression:"optional",defaultValue:24,show:(e,t,r)=>{if(!r.properties.qHyperCubeDef)return!1;const{qInterColumnSortOrder:n,qNoOfLeftDims:o,qDimensions:i,qIndentMode:a}=r.properties.qHyperCubeDef;let s=!1;n?.indexOf(-1);const l=i?.indexOf(e)??1/0;return(n?.slice(0,o)??[]).indexOf(l)>-1&&(s=!0),s&&a}}}}}},Xz=e=>{const{anything:t}=e,r=!t.sense?.isUnsupportedFeature?.("tableImages");return{representationType:Yz({isImagesEnabled:r}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>Uz(e.qDef.representation)===Hz.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>Uz(e.qDef.representation)===Hz.Link&&e.qDef.representation?.urlPosition===Vz.Dimension},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>Uz(e.qDef.representation)===Hz.Link&&e.qDef.representation?.urlPosition===Vz.Attribute},...Kz(r)}},Jz=(e,t)=>{const{anything:r}=e,n=r.sense?.isUnsupportedFeature,o=!n?.("tableImages")&&t[Hz.Image],i=!n?.("qMiniChartDef")&&t[Hz.MiniChart],a=!n?.("tableIndicators")&&t[Hz.Indicator],s=o&&t[Hz.ImagesInIndentMode];return{representationType:{uses:"measureRepresentationItems.representationType",options:(e,t,r)=>(e=>{const{qIndentMode:t}=e.properties.qHyperCubeDef??{},r=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!t&&o||t&&s)&&r.push({value:"image",translation:"Object.Table.Representation.Image"}),a&&r.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),i&&r.push({value:"miniChart",translation:"Common.MiniChart"}),r})(r)},representationImage:o?{uses:"measureRepresentationItems.representationImage",show:e=>Uz(e.qDef.representation)===Hz.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0,representationIndicator:a?{uses:"measureRepresentationItems.representationIndicator"}:void 0,representationMiniChart:i?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}};let Zz=function(e){return e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot",e}({}),Qz=function(e){return e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.ImageLabel="imageLabel",e.Link="url",e.LinkLabel="urlLabel",e}({}),e$=function(e){return e.TopGrid="topGrid",e.LeftGrid="leftGrid",e.DataGrid="dataGrid",e}({}),t$=function(e){return e.Forward="forward",e.Backward="backward",e.None="none",e}({});const r$="image",n$=(e,t,r)=>{if(!r.properties.qHyperCubeDef.qIndentMode)return!0;const n=r.properties.qHyperCubeDef.qInterColumnSortOrder?.indexOf(-1)??-1;let o=r.properties.qHyperCubeDef.qNoOfLeftDims??-1;n>-1&&n<o&&(o-=1);const i=r.properties.qHyperCubeDef.qDimensions.indexOf(e);return 0===i||i>=o},o$=()=>({type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:uN.Auto,translation:"Common.Auto"},{value:uN.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:uN.Pixels,translation:"Object.Table.Column.Pixels"},{value:uN.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:uN.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:lN.PixelsDefault,show:e=>e.qDef.columnWidth?.type===uN.Pixels},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:lN.PercentageDefault,show:e=>e.qDef.columnWidth?.type===uN.Percentage}}),i$=({key:e,translation:t,env:r})=>{const n=!r.anything.sense?.isUnsupportedFeature?.("tableImages");return{[`${e}Auto`]:{ref:`qDef.${e}.auto`,type:"boolean",component:"switch",translation:t,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0,show:t=>!n||"labelTextAlign"===e||t.qDef.representation?.type!==r$},[e]:{ref:`qDef.${e}.align`,type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"align_left",labelPlacement:"bottom",value:"left",translation:"properties.dock.left"},{component:"icon-item",icon:"align_center",labelPlacement:"bottom",value:"center",translation:"Common.Center"},{component:"icon-item",icon:"align_right",labelPlacement:"bottom",value:"right",translation:"properties.dock.right"}],defaultValue:"left",show:t=>void 0!==t.qDef[e]&&!t.qDef[e].auto&&(!n||"labelTextAlign"===e||t.qDef.representation?.type!==r$)}}},a$="TOTAL_OFF",s$={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Qz.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Qz.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Qz.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Qz.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Qz.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Qz.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},l$="TOTAL_OFF",u$={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Qz.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Qz.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Qz.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Qz.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Qz.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Qz.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},c$=e=>{const{translator:t,anything:r,flags:n}=e,o=(e=>{const{translator:t,anything:r}=e;return{type:"items",component:"data-assets-panel-pivot",translation:"Common.Data",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:a$,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:a$,translation:"properties.off"},show:!r.sense?.isUnsupportedFeature?.("totals")&&n$},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>t.get("Object.Table.Totals"),show:(e,t,n)=>!r.sense?.isUnsupportedFeature?.("totals")&&e.qOtherTotalSpec?.qTotalMode!==a$&&n$(e,0,n)},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"},globalGrouping:{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show:e=>"OTHER_OFF"!==e.qOtherTotalSpec?.qOtherMode}}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:s$,...i$({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...i$({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Xz(e),...o$()}}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:{uses:"measures.items.numberFormatting"}}},presentation:{type:"items",translation:"properties.presentation",items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:s$,...i$({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...i$({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Jz(e,{[Hz.Image]:!0,[Hz.Indicator]:!0}),...o$()}}}}}}})(e);return n.isEnabled("CLIENT_IM5974_PIVOT_DATA_PROPERTIES")?o:{type:"items",component:"pivot-data",translation:"properties.data",addTranslation:"Property.AddData",items:{dimensions:{type:"array",component:"dimensions",translation:"Common.Dimensions",alternativeTranslation:"properties.alternative.dimensions",ref:"qHyperCubeDef.qDimensions",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.dimensions.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>!!e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},totalMode:{type:"string",component:"switch",translation:"properties.showTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:l$,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:l$,translation:"properties.off"},show:!r.sense?.isUnsupportedFeature?.("totals")&&n$},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>t.get("Object.Table.Totals"),show:(e,t,n)=>!r.sense?.isUnsupportedFeature?.("totals")&&e.qOtherTotalSpec?.qTotalMode!==l$&&n$(e,0,n)},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"},globalGrouping:{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show:e=>"OTHER_OFF"!==e.qOtherTotalSpec?.qOtherMode},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:u$,...i$({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...i$({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Xz(e),...o$()}},measures:{type:"array",component:"measures",translation:"Common.Measures",ref:"qHyperCubeDef.qMeasures",disabledRef:"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",min:1,allowAdd:!0,allowRemove:!0,allowMove:!0,addTranslation:"properties.measures.add",grouped:!0,items:{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>!!e.qLibraryId},inlineMeasure:{component:"inline-measure",show:e=>!e.qLibraryId},autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},cId:{ref:"qDef.cId",type:"string",show:!1},numberFormatting:{uses:"measures.items.numberFormatting"},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},isExpression:e=>"string"==typeof e&&e.trim().length>0},cellColoring:u$,...i$({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...i$({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Jz(e,{[Hz.Image]:!0,[Hz.ImagesInIndentMode]:!0,[Hz.Indicator]:!0}),...o$()}},filters:{type:"items",translation:"SimpleProperties.Filters.Filters",ref:"filters",allowAdd:!0,allowRemove:!0,allowMove:!1,addTranslation:"properties.filters.add",grouped:!0,items:{filter:{type:"object",component:"filter-item",ref:"filter"}}}}}},d$=((e="light",t=!1)=>Ny(0,t))().palette,p$={TEXT:d$.text.primary,DISABLED:d$.text.disabled,HOVER:d$.action.hover,WHITE:Fy.GREYSCALE_100,BORDER_LIGHT:Fy.GREYSCALE_90,BORDER_MEDIUM:Fy.GREYSCALE_85,BORDER_HEAVY:Fy.GREYSCALE_50,DARK_MODE_TEXT:Fy.GREYSCALE_95,DARK_MODE_BORDER:Fy.GREYSCALE_95,DARK_MODE_DISABLED:Fy.GREYSCALE_70,DARK_MODE_BACKGROUND:Fy.GREYSCALE_20,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:Fy.GREYSCALE_95,SELECTED:d$.primary.main,LINK:d$.info.main};function f$(e){return null!==e&&"object"==typeof e&&"r"in e&&"number"==typeof e.r&&"g"in e&&"number"==typeof e.g&&"b"in e&&"number"==typeof e.b&&("number"==typeof e.a||void 0===e.a)}function h$(e){if("object"==typeof e&&f$(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,r=0,n=0;if("string"==typeof e){let o;(o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(o[1],10),r=parseInt(o[2],10),n=parseInt(o[3],10)):(o=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(o[1],16),r=parseInt(o[2],16),n=parseInt(o[3],16)):(o=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(o[1]+o[1],16),r=parseInt(o[2]+o[2],16),n=parseInt(o[3]+o[3],16))}return(t<<16)+(r<<8)+n}const m$={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}};function g$(...e){const t={type:"qcm-color",r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let r=0,n=0,o=0,i=1;if(null!==(a=e[0])&&"object"==typeof a&&"type"in a&&"qcm-color"===a.type)({r:r,g:n,b:o,a:i}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(f$(e[0]))({r:r,g:n,b:o}=e[0]),"a"in e[0]&&({a:i}=e[0]);else if(e.length<3)if("string"==typeof e[0]){const a=e[0];let s;if(s=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))r=parseInt(s[1],10),n=parseInt(s[2],10),o=parseInt(s[3],10);else if(s=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a))r=parseInt(s[1],10),n=parseInt(s[2],10),o=parseInt(s[3],10),i=parseFloat(s[4]);else if(s=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))i=parseInt(s[1],10)/255,r=parseInt(s[2],10),n=parseInt(s[3],10),o=parseInt(s[4],10);else if(s=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(a))r=parseInt(s[1],16),n=parseInt(s[2],16),o=parseInt(s[3],16),i=1;else if(s=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(a))r=parseInt(s[1]+s[1],16),n=parseInt(s[2]+s[2],16),o=parseInt(s[3]+s[3],16),i=1;else if(s=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-.5*l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),o=Math.round(255*o),i=1}else if(s=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);i=parseFloat(s[7]),e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-.5*l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),o=Math.round(255*o)}else if(s=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),o=Math.round(255*o),i=1}else{const e=a.toLowerCase();if(function(e){return e in m$}(e)){const t=m$[e];({r:r,g:n,b:o}=t),i="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(i=(4278190080&e[0])>>>24,i/=255,r=(16711680&e[0])>>16,n=(65280&e[0])>>8,o=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(r=(16711680&e[0])>>16,n=(65280&e[0])>>8,o=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(r=e[0],n=e[1],o=e[2],i=4===e.length?e[3]:1):t.invalid=!0;var a;return Number.isNaN(+r+n+o+i)&&(t.invalid=!0),t.r=Math.floor(r),t.g=Math.floor(n),t.b=Math.floor(o),t.a=i,t}function b$(e){let t,r,n;if(f$(e))return t=e.r.toString(16),r=e.g.toString(16),n=e.b.toString(16),1===t.length&&(t=`0${t}`),1===r.length&&(r=`0${r}`),1===n.length&&(n=`0${n}`),`#${[t,r,n].join("")}`;const o="string"==typeof e?h$(e):e;return t=((16711680&o)>>16).toString(16),r=((65280&o)>>8).toString(16),n=(255&o).toString(16),1===t.length&&(t=`0${t}`),1===r.length&&(r=`0${r}`),1===n.length&&(n=`0${n}`),`#${t}${r}${n}`}function v$(e){let t,r,n=0;const o="string"==typeof e?g$(e):e,i=o.r/255,a=o.g/255,s=o.b/255,{a:l}=o,u=Math.max(i,a,s),c=Math.min(i,a,s),d=(u+c)/2;if(u===c)t=0,n=0;else{switch(r=u-c,t=d>.5?r/(2-u-c):r/(u+c),u){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return{h:360*n,s:100*t,l:100*d,a:l}}function y$(e){let t,r,n=0;const o="string"==typeof e?g$(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),u=Math.min(i,a,s),c=l;if(l===u)t=0,n=0;else{switch(r=l-u,t=0===r?0:r/c,l){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return{h:360*n%360,s:100*t,v:100*c}}function x$(e){if(f$(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?h$(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function S$(e,t){return f$(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:S$(g$(e))}function w$(e){return f$(e)?1===e.a?x$(e):S$(e):w$(g$(e))}const C$=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function E$(e){return.2126*C$(e.r)+.7152*C$(e.g)+.0722*C$(e.b)}function R$(...e){const t=g$(...e);return t.invalid||E$(t)<.4}function M$(...e){const t=g$(...e),r={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},n=()=>(r.spaces.hslaObject||(r.spaces.hslaObject=v$(r)),r.spaces.hslaObject),o=e=>{const t=n(),{h:r,s:o,l:i,a:a}=t;return`hsla(${r}, ${o}, ${Math.max(0,Math.min(i+e,100))}, ${a})`};return{get type(){return r.type},isInvalid:()=>r.invalid,get r(){return r.r},get g(){return r.g},get b(){return r.b},get a(){return r.a},getR:()=>r.r,getG:()=>r.g,getB:()=>r.b,getAlpha:()=>r.a,setAlpha:e=>{r.a=e,r.spaces={}},isEqualTo:e=>{let t;if("string"==typeof e)t=g$(e);else{if(e.type!==r.type)return!1;t=e}return t.r===r.r&&t.g===r.g&&t.b===r.b&&t.a===r.a},isDark:()=>R$(r),getRGB:()=>(r.spaces.rgb||(r.spaces.rgb=x$(r)),r.spaces.rgb),getRGBA:()=>(r.spaces.rgba||(r.spaces.rgba=S$(r)),r.spaces.rgba),getString:()=>(r.spaces.string||(r.spaces.string=w$(r)),r.spaces.string),getHex:()=>(r.spaces.hex||(r.spaces.hex=b$(r)),r.spaces.hex),getHSL:()=>(r.spaces.hsl||(r.spaces.hsl=function(e){let t,r,n=0;const o="string"==typeof e?g$(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),u=Math.min(i,a,s),c=(l+u)/2;if(l===u)t=0,n=0;else{switch(r=l-u,t=c>.5?r/(2-l-u):r/(l+u),l){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return`hsl(${360*n}, ${100*t}, ${100*c})`}(r)),r.spaces.hsl),getHSLA:()=>(r.spaces.hsla||(r.spaces.hsla=function(e){const{h:t,s:r,l:n,a:o}=v$(e);return`hsla(${t}, ${r}, ${n}, ${o})`}(r)),r.spaces.hsla),getHSLAObject:n,getShiftedHSLA:o,getHSV:()=>(r.spaces.hsv||(r.spaces.hsv=function(e){const{h:t,s:r,v:n}=y$(e);return`hsv(${t}, ${r}, ${n})`}(r)),r.spaces.hsv),getHSVObject:()=>(r.spaces.hsvObject||(r.spaces.hsvObject=y$(r)),r.spaces.hsvObject),blend:(e,t)=>`rgba(${Math.floor(r.r+(e.r-r.r)*t)}, ${Math.floor(r.g+(e.g-r.g)*t)}, ${Math.floor(r.b+(e.b-r.b)*t)}, ${Math.floor(r.a+(e.getAlpha()-r.a)*t)})`,getBrightenedColor:(e=1)=>M$(o(18*e)),getDarkenedColor:(e=1)=>M$(o(18*-e))}}function A$(e,t){if(!e||!t)return;const r=E$(e),n=E$(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}var I$,k$,L$=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],P$=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];function D$(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?P$:L$}var _$=function(){if(k$)return I$;k$=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return I$=function e(){var t,r,n,l,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(l=s(t,r))&&(h&&l&&(i(l)||(u=o(l)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(h,c,l)})):void 0!==l&&a(d,{name:r,newValue:l}));return d},I$}();function O$(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function T$(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function q$(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(_$);var j$=1/.7,N$="\\s*([+-]?\\d+)\\s*",F$="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",z$="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",$$=/^#([0-9a-f]{3,8})$/,W$=new RegExp(`^rgb\\(${N$},${N$},${N$}\\)$`),B$=new RegExp(`^rgb\\(${z$},${z$},${z$}\\)$`),G$=new RegExp(`^rgba\\(${N$},${N$},${N$},${F$}\\)$`),H$=new RegExp(`^rgba\\(${z$},${z$},${z$},${F$}\\)$`),V$=new RegExp(`^hsl\\(${F$},${z$},${z$}\\)$`),U$=new RegExp(`^hsla\\(${F$},${z$},${z$},${F$}\\)$`),Y$={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function K$(){return this.rgb().formatHex()}function X$(){return this.rgb().formatRgb()}function J$(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=$$.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Z$(t):3===r?new rW(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Q$(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Q$(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=W$.exec(e))?new rW(t[1],t[2],t[3],1):(t=B$.exec(e))?new rW(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=G$.exec(e))?Q$(t[1],t[2],t[3],t[4]):(t=H$.exec(e))?Q$(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=V$.exec(e))?lW(t[1],t[2]/100,t[3]/100,1):(t=U$.exec(e))?lW(t[1],t[2]/100,t[3]/100,t[4]):Y$.hasOwnProperty(e)?Z$(Y$[e]):"transparent"===e?new rW(NaN,NaN,NaN,0):null}function Z$(e){return new rW(e>>16&255,e>>8&255,255&e,1)}function Q$(e,t,r,n){return n<=0&&(e=t=r=NaN),new rW(e,t,r,n)}function eW(e){return e instanceof q$||(e=J$(e)),e?new rW((e=e.rgb()).r,e.g,e.b,e.opacity):new rW}function tW(e,t,r,n){return 1===arguments.length?eW(e):new rW(e,t,r,null==n?1:n)}function rW(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function nW(){return`#${sW(this.r)}${sW(this.g)}${sW(this.b)}`}function oW(){const e=iW(this.opacity);return`${1===e?"rgb(":"rgba("}${aW(this.r)}, ${aW(this.g)}, ${aW(this.b)}${1===e?")":`, ${e})`}`}function iW(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function aW(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function sW(e){return((e=aW(e))<16?"0":"")+e.toString(16)}function lW(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new cW(e,t,r,n)}function uW(e){if(e instanceof cW)return new cW(e.h,e.s,e.l,e.opacity);if(e instanceof q$||(e=J$(e)),!e)return new cW;if(e instanceof cW)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(r-n)/s+6*(r<n):r===i?(n-t)/s+2:(t-r)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new cW(a,s,l,e.opacity)}function cW(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function dW(e){return(e=(e||0)%360)<0?e+360:e}function pW(e){return Math.max(0,Math.min(1,e||0))}function fW(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}O$(q$,J$,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:K$,formatHex:K$,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return uW(this).formatHsl()},formatRgb:X$,toString:X$}),O$(rW,tW,T$(q$,{brighter(e){return e=null==e?j$:Math.pow(j$,e),new rW(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new rW(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new rW(aW(this.r),aW(this.g),aW(this.b),iW(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:nW,formatHex:nW,formatHex8:function(){return`#${sW(this.r)}${sW(this.g)}${sW(this.b)}${sW(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:oW,toString:oW})),O$(cW,(function(e,t,r,n){return 1===arguments.length?uW(e):new cW(e,t,r,null==n?1:n)}),T$(q$,{brighter(e){return e=null==e?j$:Math.pow(j$,e),new cW(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new cW(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new rW(fW(e>=240?e-240:e+120,o,n),fW(e,o,n),fW(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new cW(dW(this.h),pW(this.s),pW(this.l),iW(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=iW(this.opacity);return`${1===e?"hsl(":"hsla("}${dW(this.h)}, ${100*pW(this.s)}%, ${100*pW(this.l)}%${1===e?")":`, ${e})`}`}}));const hW=Math.PI/180,mW=180/Math.PI,gW=4/29,bW=6/29,vW=3*bW*bW;function yW(e){if(e instanceof xW)return new xW(e.l,e.a,e.b,e.opacity);if(e instanceof RW)return MW(e);e instanceof rW||(e=eW(e));var t,r,n=EW(e.r),o=EW(e.g),i=EW(e.b),a=SW((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=SW((.4360747*n+.3850649*o+.1430804*i)/.96422),r=SW((.0139322*n+.0971045*o+.7141733*i)/.82521)),new xW(116*a-16,500*(t-a),200*(a-r),e.opacity)}function xW(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function SW(e){return e>.008856451679035631?Math.pow(e,1/3):e/vW+gW}function wW(e){return e>bW?e*e*e:vW*(e-gW)}function CW(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function EW(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function RW(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function MW(e){if(isNaN(e.h))return new xW(e.l,0,0,e.opacity);var t=e.h*hW;return new xW(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}O$(xW,(function(e,t,r,n){return 1===arguments.length?yW(e):new xW(e,t,r,null==n?1:n)}),T$(q$,{brighter(e){return new xW(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new xW(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new rW(CW(3.1338561*(t=.96422*wW(t))-1.6168667*(e=1*wW(e))-.4906146*(r=.82521*wW(r))),CW(-.9787684*t+1.9161415*e+.033454*r),CW(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),O$(RW,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof RW)return new RW(e.h,e.c,e.l,e.opacity);if(e instanceof xW||(e=yW(e)),0===e.a&&0===e.b)return new RW(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*mW;return new RW(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new RW(e,t,r,null==n?1:n)}),T$(q$,{brighter(e){return new RW(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new RW(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return MW(this).rgb()}}));var AW=e=>()=>e;function IW(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):AW(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?IW:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):AW(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=tW(e)).r,(t=tW(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=IW(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);var kW,LW="center",PW="bottom";function DW(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},r=function(){var e={};return{get:function(t){return e[t]},set:function(t,r){return e[t]=r,r},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(n){var o=t(n);return r.has(o)?r.get(o):r.set(o,e(n))}}function _W(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function OW(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=qW)):void 0===t&&(t=TW);for(var r,n,o,i,a,s=new FW(e),l=[s];r=l.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)l.push(n=o[i]=new FW(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(NW)}function TW(e){return e.children}function qW(e){return Array.isArray(e)?e[1]:null}function jW(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function NW(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function FW(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:LW,condition:function(e){var t=e.layoutService;if(!t)return!1;var r=t.meta.size;return r.x*r.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:LW,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:LW,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var r=t.getHyperCubeValue("qDimensionInfo.0");return r&&(r.qMax<r.qMin||"NaN"===r.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:LW},{key:"DataRangeIncludingZero",alignment:PW},{key:"LimitedData",alignment:PW},{key:"NegativeOrZeroValues",alignment:PW}].reduce((function(e,t){return e[t.key]=t,e}),{}),FW.prototype=OW.prototype={constructor:FW,count:function(){return this.eachAfter(_W)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return OW(this).eachBefore(jW)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},kW=function(e){
176
176
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
177
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,s,l,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(m="",b=(d=t[0]).length%l,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-b+1)%l)&&y<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),h+(r?"-":"")+n+x}},kW({exports:{}});const zW=(e,t=p$.TEXT,r=p$.WHITE)=>{const n=M$(e),o=M$(t),i=M$(r);return n.isInvalid()?t:function(e,t,r){const n=A$(e,t),o=A$(e,r);if(void 0!==n&&void 0!==o)return n>o?t:r}(n,i,o).getRGB()},$W=e=>{const t=e.getStyle("","","dataColors.selected")||p$.SELECTED,r=function(e,t){const r=M$("#FFFFFF"),n=M$(e),o=M$(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;const i=A$(r,n),a=A$(o,n),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?"#FFFFFF":"#000000"}(t,p$.TEXT);return{background:t,color:r}},WW=(e,t)=>{const r=M$(e);return 0===r.a?(r.setAlpha(t.opacity),r.getString()):r.isDark()?r.getBrightenedColor(t.brighter).getString():r.getDarkenedColor(t.darker).getString()},BW=e=>{const t=M$(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},GW=e=>{e.stopPropagation(),e.preventDefault()},HW=(e,t,r,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:n??!1,defaultValue(e,t,o){const i=n?.(e,t,o)??!1,a=o.theme.current(),s=r(a,i);return{color:"transparent"===s?"none":s}}}),VW=(e,t=!1)=>{return{value:e,label:t?(r=e,r.charAt(0).toUpperCase()+r.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var r},UW=({ref:e,themeAccessor:t,translator:r,flags:n})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,r,n)=>{const o=t.fontFamily??"Source Sans Pro, sans-serif",i=t.fontFamilies??[],a=Array.from(new Set([e,o,...i])),s=[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0},...a.sort().map((e=>VW(e,!0)))],l=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...D$(n).filter((e=>!a.includes(e))).map((e=>VW(e,!0)))];return[...s,...l.length>1?l:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),YW=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],KW=({ref:e,themeAccessor:t,translator:r})=>({component:"dropdown",ref:e,options:(e,n,o)=>{const i=o.theme.current();return((e,t,r)=>{const n=t.fontSize,o=t.fontSizes??[],i=Array.from(new Set([e,n,...o])),a=[{value:"ThemeHeader",label:r.get("properties.themeFontSizes"),metaText:r.get("properties.theme"),groupHeader:!0},...i.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>VW(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...YW.filter((e=>!i.includes(e))).map((e=>VW(e,!1)))];return[...a,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),XW=({section:e,defaultFontStyle:t,translator:r,flags:n,getThemeValue:o,translation:i,disableNoneCallback:a})=>({component:"panel-section",translation:i??`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:UW({ref:`${e}.fontFamily`,themeAccessor:t=>o(t,e,"fontFamily")??t.fontFamily,translator:r,flags:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:t??[]},fontSize:KW({ref:`${e}.fontSize`,themeAccessor:t=>o(t,e,"fontSize")??t.fontSize,translator:r}),fontColor:HW(`${e}.fontColor`,void 0,(t=>o(t,e,"color")??t.color))}},background:HW(`${e}.background`,"properties.background",((t,r)=>{const n=r?p$.WHITE:p$.TRANSPARENT;return o(t,e,"backgroundColor")??n}),a)}}}}),JW=({section:e,defaultFontStyle:t,fallbackBackground:r,getThemeValue:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:t??[]},fontColor:HW(`${e}.fontColor`,void 0,(t=>n(t,e,"color")??t.color))}},background:HW(`${e}.background`,"properties.background",(t=>n(t,e,"backgroundColor")??r??"transparent"))}}}}),ZW=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}),QW="12px",eB="Source Sans Pro, sans-serif",tB="600",rB=15e3,nB=4/3;let oB=function(e){return e.Transparent="transparent",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2",e}({}),iB=function(e){return e.Solid="solid",e.None="none",e}({});const aB={display:"flex",justifyContent:"center",alignItems:"center"},sB={borderStyle:"solid"},lB={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},uB={lineHeight:nB,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},cB=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),dB=(e,t)=>e>0?`${e}px ${iB.Solid} ${t}`:iB.None,pB=(e,t,r,n,o)=>{const i=Number(!t||o?.right),a=Number(!e||o?.bottom);return{borderRight:"rtl"!==n?dB(i,r):iB.None,borderBottom:dB(a,r),borderLeft:"rtl"===n?dB(i,r):iB.None,borderTop:iB.None}},fB=(e,t,r,n,o,i,a)=>{const s=pB(t,n,o,i,a);return e.isLeftDimension||(e.isLastDimension&&!t&&(s.borderBottom=dB(2,o)),r||(s.borderLeft="rtl"!==i?dB(1,o):"none",s.borderRight="rtl"===i?dB(1,o):"none")),s},hB=({bottomDivider:e,rightDivider:t,borderColor:r})=>{const n={};return e&&(n.borderBottom=dB(1,r)),t&&(n.borderRight=dB(1,r)),n},mB=(e,t,r)=>{switch(t){case"header":return e.object?.pivotTableV2?.dimension?.label?.name?.[r];case"dimensionValues":return e.object?.pivotTableV2?.dimension?.label?.value?.[r];case"measureLabels":return e.object?.pivotTableV2?.measure?.label?.name?.[r];case"measureValues":return e.object?.pivotTableV2?.measure?.label?.value?.[r];case"totalValues":return e.object?.pivotTableV2?.total?.label?.value?.[r];case"nullValues":return e.object?.pivotTableV2?.null?.label?.value?.[r];default:return}},gB=(e,t)=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.PivotTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,defaultValue:[],items:{headerSection:XW({section:"header",defaultFontStyle:["bold"],translator:e,flags:t,getThemeValue:mB}),dimensionValueSection:XW({section:"dimensionValues",translator:e,flags:t,getThemeValue:mB}),measureValueSection:XW({section:"measureValues",translator:e,flags:t,getThemeValue:mB}),measureLabelSection:JW({section:"measureLabels",getThemeValue:mB}),totalValuesSection:JW({section:"totalValues",defaultFontStyle:["bold"],getThemeValue:mB}),nullValuesSection:JW({section:"nullValues",fallbackBackground:oB.NullValueBackground,getThemeValue:mB}),gridSection:{translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:ZW("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:ZW("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"),border:HW("grid.border","properties.border",(e=>e.object?.pivotTableV2?.grid?.borderColor??oB.DividerLight)),divider:HW("grid.divider","properties.pivot.divider",(e=>e.object?.pivotTableV2?.grid?.divider?.borderColor??oB.DividerDark)),background:HW("grid.background","properties.background",(e=>e.object?.pivotTableV2?.grid?.backgroundColor??oB.Transparent))}}}}}}]}),bB=e=>{if(e.isEnabled("CLIENT_IM_5973_PIVOT_TABLE_EXPLORATION"))return{chartExploration:{type:"items",translation:"properties.chartExploration",items:{chartExplorationToggler:{type:"items",component:"chart-exploration-toggler",translation:"properties.enableChartExploration",ref:"enableChartExploration"},visibilityToggler:{show:e=>e.enableChartExploration,component:"buttongroup",translation:"properties.ChartExploration.VisibilityOption",ref:"chartExploration.menuVisibility",options:[{value:"auto",translation:"Common.Auto"},{value:"minimized",translation:"properties.ChartExploration.Minimized"}]}},show:e=>!e.insideContainer}}},vB=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[gB(e,t),{type:"items",items:{nullValueText:{ref:"nullValueRepresentation.text",type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"},alwaysFullyExpanded:{ref:"qHyperCubeDef.qAlwaysFullyExpanded",type:"boolean",translation:"properties.pivot.fullyExpanded",defaultValue:!1},indentMode:{ref:"qHyperCubeDef.qIndentMode",type:"boolean",translation:"properties.pivot.indentMode",defaultValue:!1,change(e){e.qHyperCubeDef.qShowTotalsAbove=!0}},type:{type:"string",component:"dropdown",ref:"qHyperCubeDef.indentModeColumnWidth.type",translation:"Object.Table.Column.Width",options:[{value:uN.Auto,translation:"Common.Auto"},{value:uN.Pixels,translation:"Object.Table.Column.Pixels"},{value:uN.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:uN.Auto,show:e=>!!e.qHyperCubeDef.qIndentMode},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:lN.PixelsDefault,show:e=>{const t=e.qHyperCubeDef;return t.qIndentMode&&t.indentModeColumnWidth?.type===uN.Pixels}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",component:"expression",expressionType:"ValueExpression",expression:"optional",defaultValue:lN.PercentageDefault,show:e=>{const t=e.qHyperCubeDef;return t.qIndentMode&&t.indentModeColumnWidth?.type===uN.Percentage}},showTotalsAbove:{ref:"qHyperCubeDef.qShowTotalsAbove",type:"boolean",translation:"properties.pivot.showTotalsAbove",defaultValue:!0,show(e){const{qIndentMode:t}=e.qHyperCubeDef;return!t&&!!e.qHyperCubeDef.qDimensions.some((e=>"TOTAL_EXPR"===e.qOtherTotalSpec?.qTotalMode))}},resetProperties:{type:"object",component:"button",translation:"properties.pivot.resetExpansionButton",disabled:e=>!!e.qHyperCubeDef.qAlwaysFullyExpanded,action(e,t,r,n){e.qHyperCubeDef.qExpansionState=[],n.$emit("saveProperties",e)}}}}]},...bB(t)}}),yB="auto",xB={type:"items",translation:"properties.sorting",items:{sortbyY:{type:"items",items:{sortbyYToggle:{ref:"qHyperCubeDef.qSortbyYValue",type:"boolean",component:"switch",translation:"properties.sorting.sortByY.label",convertFunctions:{get:e=>!!e("integer"),set:(e,t)=>{t("integer",e?-1:0)}},options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},sortbyYOrder:{ref:"qHyperCubeDef.qSortbyYValue",type:"string",component:"dropdown",defaultValue:0,options:[{value:1,translation:"properties.sorting.ascending"},{value:-1,translation:"properties.sorting.descending"}],show:e=>!!e.qHyperCubeDef.qSortbyYValue}}},defaultSorting:{uses:"sorting",items:{dimensions:{showPriority:!1,allowMove:!1},measures:{included:!1}}},searchSorting:{ref:"search.sorting",type:"string",component:"dropdown",defaultValue:yB,translation:"Object.Table.SortingInSearch",options:[{value:yB,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function SB(e){const{translator:t,flags:r}=e;return{type:"items",component:"accordion",items:{data:c$(e),sorting:xB,addons:Gz,settings:vB(t,r)}}}function wB(e){return{support:{cssScaling:!0,snapshot:!0,export:!0,exploration:e.flags.isEnabled("CLIENT_IM_5973_PIVOT_TABLE_EXPLORATION"),sharing:!1,exportData:!0,viewData:!0},usePropertyHandler:"pivot-data",definition:SB(e),importProperties:Wz(e),exportProperties:Bz,exploration:BN(e)}}const CB=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function EB(e,t){return A((()=>e),t)}const RB={},MB=e=>{const t=A((()=>({current:RB})),[]);return t.current=t.current===RB?e:t.current,t},AB=()=>{const{viewState:e}=I(),t=MB(new Set),r=void 0!==window.qlikprinting,{promise:n,resolve:o}=A((()=>CB()),[]),i=EB((e=>{r&&t.current.add(e)}),[t]),a=EB(function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var n=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(n,i)}),r)}}((async()=>{await Promise.all(t.current),t.current.clear(),o()}),1e3),[o,t]);return k((async()=>{r&&await n}),[n,r]),A((()=>({viewState:e,isDownloadedAsPDForImage:r,notifyIsDoneRendering:a,waitForPromise:i})),[a,r,e,i])},IB=e=>!!e&&0===M$(e).a,kB="#grid",LB=(e,t)=>{const r=t?.closest(e);return r&&window.getComputedStyle(r).backgroundColor},PB=(e,t,r,n,o)=>{const i=LB(".qv-object .qv-inner-object",r),a=LB(".qv-panel-sheet",r),s=LB(kB,r)??a,l=(e=>{const t=e.components?.find((e=>"general"===e.key)),r=t?.bgColor?.colorExpression,n=t?.bgColor?.color?.color,o=t?.bgColor?.useColorExpression;if(o&&r)return BW(r);if("none"===n)return"transparent";if(void 0===n)return;const i=M$(n);return i.setAlpha(t?.bgColor?.color?.alpha??i.a),i.getRGBA()})(e),u=n?.(t),c=o?.(t),d=l||u||i||c,p=IB(d),f=!IB(h=p?s:d)&&zW(h,p$.TEXT,p$.DARK_MODE_TEXT)===x$(p$.DARK_MODE_TEXT);var h;const m=((e,t,r,n=p$.WHITE)=>e&&!IB(e)?e:IB(t)?r&&!IB(r)?r:n:t)(l,d,s);return{color:d,headerColor:m,isDark:f}},DB=(e,t,r,n)=>{const o=D(),i=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,n]=L([]);return P((()=>{let r;return e&&(r=new MutationObserver((e=>{n(e)})),r.observe(e,t)),()=>{r?.disconnect()}}),[e,t]),r})(t.closest(kB),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>e?.includes("background"))).map((({oldValue:e})=>e)).join(",");return A((()=>({...o,background:PB(e,o,t,r,n)})),[o.name(),t,r,n,e,i])};function _B(e,t){const r=A((()=>({isLoading:!0})),t),[n,o]=k((async()=>{try{return await e()}finally{r.isLoading=!1}}),t);return[n,r.isLoading,o]}const OB=3;function TB(e,t,r){let n=0,o=e.length;if(e.length<=1)return null;if(r(e)<=t)return null;for(;n<=o;){const i=Math.floor((n+o)/2),a=e.slice(0,i),s=e.slice(0,i-1),l=r(a),u=r(s);if(l>t&&u<=t)return e.slice(i-1)||null;if(l===t)return e.slice(i)||null;l<t?n=i+1:o=i}return null}function qB({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=OB}={},{estimateWidth:a,measureText:s,estimateLineCount:l}=g((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const a=DW(o.measureText.bind(o)),s=e=>+a(e).width.toFixed(2),l=DW((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=TB(o,t,s)}while(null!==o&&n<i);return n}),(({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a("N").width*e,estimateLineCount:l}}),[r,n,e,t,i]);return{estimateWidth:a,measureText:s,estimateLineCount:l}}var jB,NB=C;jB=NB.createRoot,NB.hydrateRoot;const FB="Source Sans Pro, sans-serif";function zB(e,t){const[r,n]=b(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}var $B={NebulaTableUtils_ColumnAdjuster_ColumnNameLabel:{id:"NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",locale:{"de-DE":"Breite von {0}","en-US":"Width of {0}","es-ES":"Ancho de {0}","fr-FR":"Largeur de {0}","it-IT":"Larghezza di {0}","ja-JP":"{0} の幅","ko-KR":"{0}의 너비","nl-NL":"Breedte van {0}","pl-PL":"Szerokość kolumny {0}","pt-BR":"Comprimento de {0}","ru-RU":'Ширина столбца "{0}"',"sv-SE":"Bredd på {0}","tr-TR":"{0} genişliği","zh-CN":"{0} 的宽度","zh-TW":"{0} 的寬度"}},NebulaTableUtils_MenuGroupLabel_Sorting:{id:"NebulaTableUtils.MenuGroupLabel.Sorting",locale:{"de-DE":"Sortierung","en-US":"Sorting","es-ES":"Ordenación","fr-FR":"Tri","it-IT":"Ordinamento","ja-JP":"ソート","ko-KR":"정렬","nl-NL":"Sorteren","pl-PL":"Sortowanie","pt-BR":"Classificação","ru-RU":"Сортировка","sv-SE":"Sortering","tr-TR":"Sıralama","zh-CN":"排序","zh-TW":"排序"}},NebulaTableUtils_MenuItemLabel_AdjustColumnSize:{id:"NebulaTableUtils.MenuItemLabel.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":"調整欄大小"}},NebulaTableUtils_MenuItemLabel_ClearSelections:{id:"NebulaTableUtils.MenuItemLabel.ClearSelections",locale:{"de-DE":"Auswahlen 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":"Geselecteerde waarden 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":"清除選項"}},NebulaTableUtils_MenuItemLabel_Collapse:{id:"NebulaTableUtils.MenuItemLabel.Collapse",locale:{"de-DE":"Reduzieren","en-US":"Collapse","es-ES":"Contraer","fr-FR":"Réduire","it-IT":"Comprimi","ja-JP":"折りたたむ","ko-KR":"축소","nl-NL":"Samenvouwen","pl-PL":"Zwiń","pt-BR":"Recolher","ru-RU":"Свернуть","sv-SE":"Dölj","tr-TR":"Daralt","zh-CN":"折叠","zh-TW":"收合"}},NebulaTableUtils_MenuItemLabel_ColumnOptions:{id:"NebulaTableUtils.MenuItemLabel.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":"欄選項"}},NebulaTableUtils_MenuItemLabel_Expand:{id:"NebulaTableUtils.MenuItemLabel.Expand",locale:{"de-DE":"Erweitern","en-US":"Expand","es-ES":"Expandir","fr-FR":"Développer","it-IT":"Espandi","ja-JP":"展開","ko-KR":"확장","nl-NL":"Uitvouwen","pl-PL":"Rozwiń","pt-BR":"Expandir","ru-RU":"Развернуть","sv-SE":"Utöka","tr-TR":"Genişlet","zh-CN":"展开","zh-TW":"展開"}},NebulaTableUtils_MenuItemLabel_Search:{id:"NebulaTableUtils.MenuItemLabel.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":"搜尋"}},NebulaTableUtils_MenuItemLabel_SelectAll:{id:"NebulaTableUtils.MenuItemLabel.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":"全選"}},NebulaTableUtils_MenuItemLabel_SelectAlternative:{id:"NebulaTableUtils.MenuItemLabel.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":"選取替代選項"}},NebulaTableUtils_MenuItemLabel_SelectExcluded:{id:"NebulaTableUtils.MenuItemLabel.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":"選取排除值"}},NebulaTableUtils_MenuItemLabel_SelectPossible:{id:"NebulaTableUtils.MenuItemLabel.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":"選取可能值"}},NebulaTableUtils_MenuItemLabel_Selections:{id:"NebulaTableUtils.MenuItemLabel.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":"選項"}},NebulaTableUtils_MenuItemLabel_SortAscending:{id:"NebulaTableUtils.MenuItemLabel.SortAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortieren","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Trier 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":"以遞增方式排序"}},NebulaTableUtils_MenuItemLabel_SortDescending:{id:"NebulaTableUtils.MenuItemLabel.SortDescending",locale:{"de-DE":"In absteigender Reihenfolge sortieren","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Trier 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":"以遞減方式排序"}},NebulaTableUtils_Pagination_DisplayedRowsLabel:{id:"NebulaTableUtils.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":"{0}/{1}","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}"}},NebulaTableUtils_Pagination_FirstPage:{id:"NebulaTableUtils.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":"移至第一頁"}},NebulaTableUtils_Pagination_LastPage:{id:"NebulaTableUtils.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":"移至最後一頁"}},NebulaTableUtils_Pagination_NextPage:{id:"NebulaTableUtils.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":"移至下一頁"}},NebulaTableUtils_Pagination_PreviousPage:{id:"NebulaTableUtils.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":"移至上一頁"}},NebulaTableUtils_Pagination_RowsPerPage:{id:"NebulaTableUtils.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":"每頁列數"}},NebulaTableUtils_Pagination_SelectPage:{id:"NebulaTableUtils.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":"選取頁面"}}};const WB=({translator:e})=>(g((()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys($B).forEach((t=>{e.add($B[t])}))}}(e)}),[e]),e),BB={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},GB={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},HB=rl("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":{...BB},"&::-moz-range-track":{...BB},"&::-ms-track":{...BB},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...GB},"&::-moz-range-thumb":{...GB},"&::-ms-thumb":{...GB},"&: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"}}))),VB=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:s,setIsAdjustingWidth:l,isLeftColumn:c,accessibilityRelatedArgs:d,direction:p="ltr"})=>{const f=WB({translator:d.translator}),h=u({initWidth:e,columnWidth:e,initX:0}),m=r?0:1,g=n&&!c,b=()=>g?h.current.columnWidth-m:"100%",v={left:"rtl"!==p?b():void 0,right:"rtl"===p?b():void 0},y=t=>{h.current={initWidth:e,columnWidth:e,initX:t??h.current.initX}};zB((()=>{g&&y()}),[e]);const x=e=>{const t=Math.max(e,lN.PixelsMin);h.current.columnWidth=t,i(t)},S=()=>{if(h.current.columnWidth!==h.current.initWidth){const e={type:uN.Pixels,pixels:h.current.columnWidth};a(e)}else l?.(!1)},w=e=>{const t="rtl"===p?h.current.initWidth+h.current.initX-e.clientX:h.current.initWidth+e.clientX-h.current.initX;x(t)},C=e=>{GW(e),document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",C),S()},E=e=>{const t="rtl"===p?h.current.initWidth+-h.current.initX-e.touches[0].clientX:h.current.initWidth+e.touches[0].clientX-h.current.initX;x(t)},R=e=>{GW(e),document.removeEventListener("touchmove",E),document.removeEventListener("touchend",R),S()},M=!n&&s?e=>{if(e.key===aN.Left||e.key===aN.Right){GW(e);const t=5,r=e.key===aN.Left?t:-t,n="rtl"===p?r:-r;x(h.current.columnWidth+n)}else e.key===aN.Space||e.key===aN.Enter?(GW(e),s(e),S()):e.key===aN.Esc&&(GW(e),s(e),x(h.current.initWidth))}:void 0,A=f.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(d.columnLabel)]);return Zo.jsx(HB,{style:v,hoverColor:o,isLastColumn:r,className:sN,"data-testid":sN,onMouseDown:e=>{GW(e),document.addEventListener("mousemove",w),document.addEventListener("mouseup",C),l?.(!0),y(e.clientX)},onDoubleClick:()=>{a({type:uN.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(GW(e),document.addEventListener("touchmove",E),document.addEventListener("touchend",R),l?.(!0),y(e.touches[0].clientX))},onKeyDown:M,onBlur:s,onFocus:()=>{y()},type:"range",tabIndex:-1,"aria-label":A,"aria-valuemin":lN.PixelsMin,"aria-valuemax":lN.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:p},t)},UB=x(((e,t)=>Zo.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:Zo.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})}))),YB=rl(Gu,{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"}))),KB=rl(UB,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),XB=rl(Ud)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),JB=rl(Nc)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),ZB=rl(Zd)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),QB=rl(Zd,{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"}))),eG=rl("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"}))),tG=rl("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),rG=rl(au)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),nG=rl(xd,{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}))),oG=x(((e,t)=>Zo.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:Zo.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})}))),iG=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?iG(t):t:e.parentElement?.children?.[0]},aG=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?aG(t):t},sG=e=>{const{key:t,currentTarget:r}=e,n=document.activeElement??r;if(t===aN.Down||t===aN.Up){const r=e=>t===aN.Down?iG(e):aG(e);e.preventDefault(),e.stopPropagation();let o=r(n);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=r(o)}}},lG=(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 uG={};const cG=({autoFocus:e,id:t,onClick:r,itemTitle:n,icon:o,enabled:i,subMenus:a,isSubMenu:s,isActive:l,direction:c,isPagination:d})=>{const[p,f]=b(!1),m=u(null),g=h((e=>{e.stopPropagation(),f(!1)}),[f]);return Zo.jsxs(Zo.Fragment,{children:[Zo.jsxs(QB,{ref:a?m:null,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(r&&(await r(e),uG={}),a?.length&&(f(!0),uG[n]=f))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:sG,children:[l?Zo.jsx(eG,{direction:c,isPagination:d}):null,Zo.jsxs(tG,{children:[Zo.jsx(nG,{direction:c,isPagination:d,children:Zo.jsx(o,{})}),Zo.jsx(rG,{variant:"body2",children:n})]}),a?.length?Zo.jsx(oG,{}):null]},t),a?.length?Zo.jsx(hG,{isSubMenu:!0,open:p,anchorEl:m.current,onClose:g,menuGroups:lG(a,uG),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:c,isPagination:d}):null]})},dG=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((e=>[[e.groupHeading&&Zo.jsx(ZB,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map((e=>Zo.jsx(cG,{...e,isSubMenu:t,direction:r,isPagination:n},e.id)))].filter(Boolean)])),pG=({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(((o,i)=>[dG({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?Zo.jsx(JB,{"data-testid":"group-divider",variant:"middle"}):void 0])),fG={appear:0,enter:0,exit:0},hG=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?Zo.jsx(XB,{className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:r,transitionDuration:fG,MenuListProps:{id:"nebula-table-utils-head-menu-list-id"},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:pG({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})}):null,mG=(e,t)=>e.some((e=>t[e]>0)),gG={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},bG=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=b(null),[a,s]=b(gG);return zB((()=>{e||(s(gG),i(null))}),[e]),p((()=>{if(!n?.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{const e=((e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}))(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:mG(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:mG(["qSelected"],e),canSelectPossible:mG(["qOption"],e),canSelectAlternative:mG(["qAlternative"],e),canSelectExcluded:mG(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},vG=x(((e,t)=>Zo.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:Zo.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"})}))),yG=x(((e,t)=>Zo.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:Zo.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 0m0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m-1-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 0M9.166 6.166c1.555-1.555 4.113-1.555 5.668 0s1.555 4.113 0 5.668-4.113 1.555-5.668 0-1.555-4.063 0-5.668m4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304z"})}))),xG=x(((e,t)=>Zo.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:Zo.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"})}))),SG=x(((e,t)=>Zo.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:Zo.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"})}))),wG=x(((e,t)=>Zo.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:Zo.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"})}))),CG=x(((e,t)=>Zo.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:Zo.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"})}))),EG=x(((e,t)=>Zo.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:Zo.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"})}))),RG=x(((e,t)=>Zo.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:Zo.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"})}))),MG=x(((e,t)=>Zo.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:Zo.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"})}))),AG=x(((e,t)=>Zo.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:Zo.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"})}))),IG=x(((e,t)=>Zo.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:Zo.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"})}))),kG=x(((e,t)=>Zo.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:Zo.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"})}))),LG=x(((e,t)=>Zo.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:Zo.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 PG=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const DG="/qListObjectDef",_G=({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[PG.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:vG,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:SG,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:EG,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:RN,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const e=[];r[PG.Searching]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:RG,enabled:!0}]}]),r[PG.Selections]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:LG,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAll(DG))},icon:MG,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectPossible(DG))},icon:kG,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAlternative(DG))},icon:AG,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectExcluded(DG))},icon:IG,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.clearSelections(DG))},icon:yG,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:CG,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:wG,enabled:!0}]}]),e.length>0&&f.push(...e)}return r[PG.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),c?.(u)},icon:xG,enabled:!0}]}]),f},OG=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,menuAvailabilityFlags:a,shouldShowMenuIcon:s=!0,sortRelatedArgs:l,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p,expandOrCollapseArgs:f,model:m,direction:g="ltr",isPagination:b,isAccessibleHeader:v,iconSize:y=rN})=>{const x=u(null),S=WB({translator:o}),{qLibraryId:w,fieldId:C,headTextAlign:E}=n,R=d?.app,{fieldInstance:M,selectionActionsEnabledStatus:A}=bG({open:e,headerData:n,app:R,qStateName:d?.qStateName});let I=null;if(m&&"setActiveField"in m&&void 0!==n.dimensionInfoIndex){const e=n.dimensionInfoIndex;I=async t=>{try{await m.setActiveField("/qHyperCubeDef",e,t)}catch(e){console.error(e)}}}const k=h((()=>{const e=w?{qLibraryId:w,type:"dimension"}:C;if(c?.embed){const{embed:t,listboxRef:r}=c;t.__DO_NOT_USE__.popover(r.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===g?"right":"left"},sortCriteria:c.sortCriteria,stateName:d?.qStateName,direction:g})}}),[w,C,c,d?.qStateName,g]),L=h((e=>{e.stopPropagation(),t(!1)}),[t]),P=h((e=>{e.stopPropagation(),t((e=>!e))}),[t]);return i.active?Zo.jsxs(YB,{rightAligned:"right"===E,shouldShowMenuIcon:s,className:"nebula-table-utils-head-menu-wrapper",onClick:!1===v?P:void 0,ref:x,isAccessibleHeader:v,children:[s?Zo.jsx(KB,{height:y,className:nN,"data-testid":nN,isInteractionsActive:i.active??!1,children:Zo.jsx(UB,{})}):null,Zo.jsx(hG,{open:e,anchorEl:!1===v?x.current:r.current,onClose:L,menuGroups:_G({headerData:n,translator:S,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:k,interactions:i,fieldInstance:M,selectionActionsEnabledStatus:A,anchorRef:r,focusColumnAdjuster:p?.focusColumnAdjuster,setActiveFieldCallback:I,expandOrCollapseArgs:f}),direction:g,isPagination:b})]}):null},TG=e=>e.isDark?{background:e.color,borderColor:p$.DARK_MODE_BORDER,color:p$.DARK_MODE_TEXT,disabledColor:p$.DARK_MODE_DISABLED,iconColor:p$.DARK_MODE_TEXT}:{background:e.color,borderColor:p$.BORDER_MEDIUM,color:p$.TEXT,disabledColor:p$.DISABLED},qG=rl(Gu,{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}`}))),jG=rl(Dp,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),NG=rl(ec,{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)}))),FG=rl(au)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),zG=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=g((()=>TG(n.background)),[n]);if(!r.active)return null;const a=o?Zo.jsx(qG,{footerStyle:i,children:e}):null;return t?C.createPortal(e,t):a},$G=c({}),WG=()=>n($G),BG=({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})=>{const b=(e=>!e.enabled||e.active)(c)?0:-1,v=g((()=>TG(p.background)),[p]),y=o?o.getBoundingClientRect().width:h.width,x=WB({translator:d}),S=g((()=>({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})),[t,r,n,o,i,a,s,l,u,c,x,p,f,h,m,v,b,y]);return Zo.jsx($G.Provider,{value:S,children:e})};let GG=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),HG=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 VG=x(((e,t)=>Zo.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:Zo.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))),UG=x(((e,t)=>Zo.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:Zo.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})}))),YG=x(((e,t)=>Zo.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:Zo.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})}))),KG={FirstPage:UG,PreviousPage:VG,NextPage:oG,LastPage:YG,FirstPageRTL:YG,PreviousPageRTL:oG,NextPageRTL:VG,LastPageRTL:UG},XG=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=WG(),u=r.concat("rtl"===n?"RTL":""),c=KG[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}},JG=()=>{const{pageInfo:e,width:t,interactions:r}=WG(),n=0===e.page,{IconComponent:o,styledProps:i}=XG({type:GG.FirstPage,disabledCondition:n,pageNumber:0});return t<=HG.FirstPage?null:Zo.jsx(NG,{...i,disabled:!r.active,children:Zo.jsx(o,{height:rN})})},ZG=(e,t,r=!1)=>{r&&e.key===aN.Tab&&!e.shiftKey&&(GW(e),((e,t,r)=>{const n=e.closest(".qv-object-wrapper")?.querySelector(".sel-toolbar-confirm")?.parentElement??document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm")?.parentElement;n?n.focus():t.focusSelection?.(r)})(e.target,t,!1))},QG=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=WG(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=XG({type:GG.LastPage,disabledCondition:a,pageNumber:r-1}),u=t.enabled?e=>{ZG(e,t,n)}:void 0;return o<=HG.LastPage?null:Zo.jsx(NG,{...l,onKeyDown:u,disabled:!i.active,children:Zo.jsx(s,{height:rN})})},eH=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=WG(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=XG({type:GG.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(o>HG.FirstPage&&o>HG.LastPage)&&t.enabled?e=>{ZG(e,t,n)}:void 0;return Zo.jsx(NG,{...l,onKeyDown:u,disabled:!i.active,children:Zo.jsx(s,{height:rN})})},tH=()=>{const{pageInfo:e,interactions:t}=WG(),r=0===e.page,{IconComponent:n,styledProps:o}=XG({type:GG.PreviousPage,disabledCondition:r,pageNumber:e.page-1});return Zo.jsx(NG,{...o,disabled:!t.active,children:Zo.jsx(n,{height:rN})})},rH=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n}=WG(),{page:o,rowsPerPage:i}=r;if(t<=HG.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,n)}`,n.toString()]);return Zo.jsx(FG,{variant:"caption",dir:"ltr",children:a})},nH=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=WG(),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 Zo.jsxs(Zo.Fragment,{children:[Zo.jsxs(FG,{variant:"caption",id:p,children:[c,":"]}),Zo.jsx(jG,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:f,disabled:!l.active,children:r})]})},oH=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:r,width:n,handleChangeRowsPerPage:o}=WG();if(!(!!e.rowsPerPageOptions?.length&&!t&&n>HG.RowsPerPage&&r<=100)||void 0===e.rowsPerPageOptions)return null;const i=Zo.jsx(Zo.Fragment,{children:e.rowsPerPageOptions.map((e=>Zo.jsx("option",{value:e,children:e},e)))});return Zo.jsx(nH,{name:"RowsPerPage",value:e.rowsPerPage,options:i,handleChange:e=>{o?.(+e.target.value)}})},iH=1e3,aH="…",sH=({totalPages:e,page:t})=>{const r=Math.min(e,iH),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-iH):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return Zo.jsx("option",{value:t,children:t+1},t)}));return i>0&&a.unshift(Zo.jsx("option",{value:aH,disabled:!0,children:aH},"startMoreOptions")),o<e-1&&a.push(Zo.jsx("option",{value:aH,disabled:!0,children:aH},"endMoreOptions")),Zo.jsx(Zo.Fragment,{children:a})},lH=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n}=WG(),{page:o}=e;if(t<=HG.SelectPage)return null;const i=Zo.jsx(sH,{totalPages:r,page:o});return Zo.jsx(nH,{name:"SelectPage",value:o,options:i,handleChange:e=>{n(+e.target.value)}})};var uH=y((e=>Zo.jsxs(BG,{...e,children:[Zo.jsx(oH,{}),Zo.jsx(lH,{}),Zo.jsx(rH,{}),Zo.jsx(JG,{}),Zo.jsx(tH,{}),Zo.jsx(eH,{}),Zo.jsx(QG,{})]})));const cH=e=>Zo.jsx(zG,{...e,children:Zo.jsx(uH,{...e})}),dH=c({}),pH=()=>n(dH),fH=({rect:e,pageInfo:t,qPivotDataPages:r,updatePageInfo:n,direction:o,children:i})=>{const a=g((()=>({rect:e,pageInfo:t,qPivotDataPages:r,updatePageInfo:n,direction:o})),[e,t,r,n,o]);return Zo.jsx(dH.Provider,{value:a,children:i})},hH=c({}),mH=()=>n(hH),gH=({app:e,model:t,theme:r,embed:n,keyboard:o,translator:i,interactions:a,env:s,children:l})=>{const u=g((()=>({model:t,app:e,interactions:a,embed:n,theme:r,keyboard:o,env:s,translator:i})),[e,a,t,n,r,o,s,i]);return Zo.jsx(hH.Provider,{value:u,children:l})},bH=c({}),vH=()=>n(bH),yH=({children:e,...t})=>Zo.jsx(bH.Provider,{value:t,children:e}),xH=()=>{const{text:e,fontFamily:t,fontSize:r,justifyContent:n,alignItems:o,height:i}=(()=>{const{theme:e,translator:t}=mH(),{layoutService:r}=vH(),n=e.getStyle("","","fontFamily")??eB;return r.hasData?r.hasLimitedData?{text:t.get("SNPivotTable.LimitedData"),fontSize:"13px",fontFamily:n,alignItems:"center",height:"22px"}:{}:{text:t.get("SNPivotTable.NoData"),fontSize:"16px",fontFamily:n,justifyContent:"center",alignItems:"center",height:"100%"}})();return void 0===e?null:Zo.jsx("div",{style:{display:"flex",justifyContent:n,alignItems:o,width:"100%",height:i},children:Zo.jsx("span",{style:{...uB,fontFamily:t,fontSize:r,fontStyle:"italic",color:"#7b7a78"},children:e})})},SH="/qHyperCubeDef",wH=-1,CH="PSEUDO-DIM",EH=[];for(let e=0;e<256;++e)EH.push((e+256).toString(16).slice(1));let RH;const MH=new Uint8Array(16);var AH={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function IH(e,t,r){const n=(e=e||{}).random??e.rng?.()??function(){if(!RH){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");RH=crypto.getRandomValues.bind(crypto)}return RH(MH)}();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=15&n[6]|64,n[8]=63&n[8]|128,function(e,t=0){return(EH[e[t+0]]+EH[e[t+1]]+EH[e[t+2]]+EH[e[t+3]]+"-"+EH[e[t+4]]+EH[e[t+5]]+"-"+EH[e[t+6]]+EH[e[t+7]]+"-"+EH[e[t+8]]+EH[e[t+9]]+"-"+EH[e[t+10]]+EH[e[t+11]]+EH[e[t+12]]+EH[e[t+13]]+EH[e[t+14]]+EH[e[t+15]]).toLowerCase()}(n)}const kH=()=>crypto?.randomUUID?.()??function(e){return AH.randomUUID&&!e?AH.randomUUID():IH(e)}(),LH=e=>e===wH?CH:(({qLibraryId:e,cId:t})=>e??t??kH())(e),PH=({layoutService:e,visibleLeftDimensionInfos:t,cell:r,colIdx:n})=>{r&&(r.canBeResized=!0,r.colIdx=r.colIdx||n,r.dimensionInfoIndex===wH?r.columnWidthLocation=Zz.Measures:r.isLeftDimension?r.columnWidthLocation=Zz.Dimension:t.at(-1)===wH?r.columnWidthLocation=Zz.Measures:e.hasPseudoDimOnLeft&&(r.columnWidthLocation=Zz.Pivot))},DH=(e,t,r,n)=>{const o=LH(r),i=e.getDimensionInfoIndex(r),a=e.isLeftDimension(i);return r===wH?{id:o,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isLocked:!1,isDim:!1,isCyclic:!1,groupDimensionPos:0,groupDimensionLabels:[],headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:Zz.Measures,isPivot:!0,qEffectiveDimensionName:void 0}:{id:o,colIdx:0,label:r.qFallbackTitle,qReverseSort:r.qReverseSort,sortDirection:r.qSortIndicator&&"N"!==r.qSortIndicator?r.qSortIndicator:"A",qLibraryId:r.qLibraryId,fieldId:r.qGroupFieldDefs[r.qGroupPos],isLocked:r.qLocked??!1,columnWidth:r.columnWidth,qApprMaxGlyphCount:r.qApprMaxGlyphCount,isDim:!0,isCyclic:r.qGrouping===pN.Cyclic,groupDimensionPos:r.qGroupPos,groupDimensionLabels:r.qGroupFallbackTitles,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:Zz.Dimension,isPivot:!0,isSortedByFirstMeasure:t.isSortedByFirstMeasure,qEffectiveDimensionName:r.qEffectiveDimensionName}},_H=({layoutService:e,effectivePropertiesService:t,lastRow:r,lastCol:n})=>{let o=n;var i;r.length>0&&(o=(i=n).at(-1)===wH?i.slice(0,-1):i);const a=o.length+(r.length?1:0),s=Math.max(1,r.length),l=((e,t)=>Array(e).fill(null).map((()=>Array.from({length:t},(()=>null)))))(a,s);return r.forEach(((r,n,o)=>{const i=n===o.length-1;l[a-1][n]=DH(e,t,r,i)})),o.forEach(((r,n,o)=>{const i=n===o.length-1;l[n][s-1]=DH(e,t,r,i)})),l},OH=(e,t,r,n)=>{const o=((e,t,r,n)=>{let o;return o=0===r.length||r.includes(wH)?_H({layoutService:e,effectivePropertiesService:t,lastRow:n,lastCol:r}):(e=>e[0].map(((t,r)=>e.map((e=>e[r])))))(_H({layoutService:e,effectivePropertiesService:t,lastRow:r,lastCol:n})),e.isIndentModeEnabled&&o[o.length-1].length>1&&(o[o.length-1]=[o.at(-1),...new Array(o[0]?o[0].length-1:0).fill(null)]),o.length&&o.at(-1)?.forEach(((t,r)=>{Array.isArray(t)?t.forEach(((t,r)=>{PH({layoutService:e,visibleLeftDimensionInfos:n,cell:t,colIdx:r})})):PH({layoutService:e,visibleLeftDimensionInfos:n,cell:t,colIdx:r})})),o})(e,t,r,n);return{data:o,size:{x:o[0]?.length??0,y:o.length}}};function TH(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function qH(e,t,r){return t=zH(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,WH()?Reflect.construct(t,r||[],zH(e).constructor):t.apply(e,r))}function jH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NH(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,HH(n.key),n)}}function FH(e,t,r){return t&&NH(e.prototype,t),r&&NH(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function zH(e){return zH=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zH(e)}function $H(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&BH(e,t)}function WH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(WH=function(){return!!e})()}function BH(e,t){return BH=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},BH(e,t)}function GH(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return TH(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?TH(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function HH(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}function VH(e){return VH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},VH(e)}var UH={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));var t=[];return e.split("&").forEach((function(e){if(e){var r,n=e.indexOf("="),o="",i=!1;-1===n?r=e:(r=e.slice(0,n),o=e.slice(n+1),i=!0),t.push(function(e,t,r){return{key:YH(e),value:YH(t),useEqualSign:r}}(r,o,i))}})),t}};function YH(e){try{return decodeURIComponent(e)}catch(t){return e}}function KH(e){if(!(this instanceof KH))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");var t=function(e){var t={authorityAndPath:"",search:"",hash:""},r=e.indexOf("#");-1!==r&&(t.hash=e.substr(r),e=e.substr(0,r));r=e.indexOf("?"),-1!==r&&(t.search=e.substr(r),e=e.substr(0,r));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:function(){return UH.fromSearchString(t.search)}}})}function XH(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}KH.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},KH.encodeSearchParams=function(e){for(var t,r="",n=0;n<e.length;n++)r+=0===n?"?":"&",r+=XH((t=e[n]).key),t.value?r+="=".concat(XH(t.value)):r+=t.useEqualSign?"=":"";return r};var JH,ZH=function(){return FH((function e(t){jH(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}),[{key:"_hasNext",value:function(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}},{key:"pushback",value:function(e){this._pushback=e}},{key:"index",value:function(){return this._index}},{key:"hasNext",value:function(){return null!=this._pushback||this._hasNext()}},{key:"next",value:function(){if(null!=this._pushback){var e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}},{key:"nextHex",value:function(){var e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}},{key:"peek",value:function(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}},{key:"mark",value:function(){this._temp=this._pushback,this._mark=this._index}},{key:"reset",value:function(){this._pushback=this._temp,this._index=this._mark}},{key:"remainder",value:function(){var e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}}])}(),QH=function(){return FH((function e(){jH(this,e)}),[{key:"decode",value:function(e){for(var t,r="",n=new ZH(e);n.hasNext();)r+=null!=(t=this.decodeCharacter(n))?t:n.next();return r}},{key:"decodeCharacter",value:function(e){return e.next()}}])}(),eV=function(e){return e>=0&&e<=1114111},tV=function(e){return e.match(/[\s]/)},rV=function(e){function t(){return jH(this,t),qH(this,t,arguments)}return $H(t,e),FH(t,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o=e.next();if(null==o||"\\"!==o)return e.reset(),null;var i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(t=i,r=0;r<5&&(null!=(n=e.next())&&!tV(n));r++){if("NaN"===parseInt(n,16)){e.pushback(n);break}t+=n}var a=parseInt(t,16);return eV(a)?String.fromCharCode(a):"�"}}])}(QH),nV=function(){function e(t,r){jH(this,e),this._key=t,this._value=r}return FH(e,[{key:"getKey",value:function(){return this._key}},{key:"getValue",value:function(){return this._value}},{key:"equals",value:function(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}}],[{key:"newInstanceIfNeeded",value:function(){var t,r,n=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],r=n.length):(r=arguments[1],t=arguments[2]),t&&n?(n.length>r&&(n=n.substr(0,r)),new e(n,t)):null}}])}(),oV=function(){function e(){jH(this,e)}return FH(e,[{key:"setValue",value:function(e){this._nextMap=null,this._value=e}},{key:"getNextNode",value:function(e){return this._nextMap?this._nextMap[e]:null}},{key:"put",value:function(t,r,n){var o,i;if(t.length===r)return i=this._value,this.setValue(n),i;var a=t.charAt(r);return this._nextMap?(o=this._nextMap[a])||(o=new e,this._nextMap[a]=o):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,r+1,n)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var r=this.getNextNode(e.charAt(t));return r?r.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return nV.newInstanceIfNeeded(e,this._value);var r=this.getNextNode(e.charAt(t));if(!r)return nV.newInstanceIfNeeded(e,t,this._value);var n=r.getLongestMatch(e,t+1);return n||nV.newInstanceIfNeeded(e,t,this._value)}}])}(),iV=function(){return FH((function e(){jH(this,e),this.clear()}),[{key:"getLongestMatch",value:function(e){return this.root&&e?this.root.getLongestMatch(e,0):null}},{key:"getMaxKeyLength",value:function(){return this.maxKeyLen}},{key:"clear",value:function(){this.root=null,this.maxKeyLen=0,this.size=0}},{key:"put",value:function(e,t){this.root||(this.root=new oV);var r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}])}(),aV=function(){var e,t,r,n=[],o=[],i=new iV;for(e in n["&quot"]="34",n["&amp"]="38",n["&lt"]="60",n["&gt"]="62",n["&nbsp"]="160",n["&iexcl"]="161",n["&cent"]="162",n["&pound"]="163",n["&curren"]="164",n["&yen"]="165",n["&brvbar"]="166",n["&sect"]="167",n["&uml"]="168",n["&copy"]="169",n["&ordf"]="170",n["&laquo"]="171",n["&not"]="172",n["&shy"]="173",n["&reg"]="174",n["&macr"]="175",n["&deg"]="176",n["&plusmn"]="177",n["&sup2"]="178",n["&sup3"]="179",n["&acute"]="180",n["&micro"]="181",n["&para"]="182",n["&middot"]="183",n["&cedil"]="184",n["&sup1"]="185",n["&ordm"]="186",n["&raquo"]="187",n["&frac14"]="188",n["&frac12"]="189",n["&frac34"]="190",n["&iquest"]="191",n["&Agrave"]="192",n["&Aacute"]="193",n["&Acirc"]="194",n["&Atilde"]="195",n["&Auml"]="196",n["&Aring"]="197",n["&AElig"]="198",n["&Ccedil"]="199",n["&Egrave"]="200",n["&Eacute"]="201",n["&Ecirc"]="202",n["&Euml"]="203",n["&Igrave"]="204",n["&Iacute"]="205",n["&Icirc"]="206",n["&Iuml"]="207",n["&ETH"]="208",n["&Ntilde"]="209",n["&Ograve"]="210",n["&Oacute"]="211",n["&Ocirc"]="212",n["&Otilde"]="213",n["&Ouml"]="214",n["&times"]="215",n["&Oslash"]="216",n["&Ugrave"]="217",n["&Uacute"]="218",n["&Ucirc"]="219",n["&Uuml"]="220",n["&Yacute"]="221",n["&THORN"]="222",n["&szlig"]="223",n["&agrave"]="224",n["&aacute"]="225",n["&acirc"]="226",n["&atilde"]="227",n["&auml"]="228",n["&aring"]="229",n["&aelig"]="230",n["&ccedil"]="231",n["&egrave"]="232",n["&eacute"]="233",n["&ecirc"]="234",n["&euml"]="235",n["&igrave"]="236",n["&iacute"]="237",n["&icirc"]="238",n["&iuml"]="239",n["&eth"]="240",n["&ntilde"]="241",n["&ograve"]="242",n["&oacute"]="243",n["&ocirc"]="244",n["&otilde"]="245",n["&ouml"]="246",n["&divide"]="247",n["&oslash"]="248",n["&ugrave"]="249",n["&uacute"]="250",n["&ucirc"]="251",n["&uuml"]="252",n["&yacute"]="253",n["&thorn"]="254",n["&yuml"]="255",n["&OElig"]="338",n["&oelig"]="339",n["&Scaron"]="352",n["&scaron"]="353",n["&Yuml"]="376",n["&fnof"]="402",n["&circ"]="710",n["&tilde"]="732",n["&Alpha"]="913",n["&Beta"]="914",n["&Gamma"]="915",n["&Delta"]="916",n["&Epsilon"]="917",n["&Zeta"]="918",n["&Eta"]="919",n["&Theta"]="920",n["&Iota"]="921",n["&Kappa"]="922",n["&Lambda"]="923",n["&Mu"]="924",n["&Nu"]="925",n["&Xi"]="926",n["&Omicron"]="927",n["&Pi"]="928",n["&Rho"]="929",n["&Sigma"]="931",n["&Tau"]="932",n["&Upsilon"]="933",n["&Phi"]="934",n["&Chi"]="935",n["&Psi"]="936",n["&Omega"]="937",n["&alpha"]="945",n["&beta"]="946",n["&gamma"]="947",n["&delta"]="948",n["&epsilon"]="949",n["&zeta"]="950",n["&eta"]="951",n["&theta"]="952",n["&iota"]="953",n["&kappa"]="954",n["&lambda"]="955",n["&mu"]="956",n["&nu"]="957",n["&xi"]="958",n["&omicron"]="959",n["&pi"]="960",n["&rho"]="961",n["&sigmaf"]="962",n["&sigma"]="963",n["&tau"]="964",n["&upsilon"]="965",n["&phi"]="966",n["&chi"]="967",n["&psi"]="968",n["&omega"]="969",n["&thetasym"]="977",n["&upsih"]="978",n["&piv"]="982",n["&ensp"]="8194",n["&emsp"]="8195",n["&thinsp"]="8201",n["&zwnj"]="8204",n["&zwj"]="8205",n["&lrm"]="8206",n["&rlm"]="8207",n["&ndash"]="8211",n["&mdash"]="8212",n["&lsquo"]="8216",n["&rsquo"]="8217",n["&sbquo"]="8218",n["&ldquo"]="8220",n["&rdquo"]="8221",n["&bdquo"]="8222",n["&dagger"]="8224",n["&Dagger"]="8225",n["&bull"]="8226",n["&hellip"]="8230",n["&permil"]="8240",n["&prime"]="8242",n["&Prime"]="8243",n["&lsaquo"]="8249",n["&rsaquo"]="8250",n["&oline"]="8254",n["&frasl"]="8260",n["&euro"]="8364",n["&image"]="8365",n["&weierp"]="8472",n["&real"]="8476",n["&trade"]="8482",n["&alefsym"]="8501",n["&larr"]="8592",n["&uarr"]="8593",n["&rarr"]="8594",n["&darr"]="8595",n["&harr"]="8596",n["&crarr"]="8629",n["&lArr"]="8656",n["&uArr"]="8657",n["&rArr"]="8658",n["&dArr"]="8659",n["&hArr"]="8660",n["&forall"]="8704",n["&part"]="8706",n["&exist"]="8707",n["&empty"]="8709",n["&nabla"]="8711",n["&isin"]="8712",n["&notin"]="8713",n["&ni"]="8715",n["&prod"]="8719",n["&sum"]="8721",n["&minus"]="8722",n["&lowast"]="8727",n["&radic"]="8730",n["&prop"]="8733",n["&infin"]="8734",n["&ang"]="8736",n["&and"]="8743",n["&or"]="8744",n["&cap"]="8745",n["&cup"]="8746",n["&int"]="8747",n["&there4"]="8756",n["&sim"]="8764",n["&cong"]="8773",n["&asymp"]="8776",n["&ne"]="8800",n["&equiv"]="8801",n["&le"]="8804",n["&ge"]="8805",n["&sub"]="8834",n["&sup"]="8835",n["&nsub"]="8836",n["&sube"]="8838",n["&supe"]="8839",n["&oplus"]="8853",n["&otimes"]="8855",n["&perp"]="8869",n["&sdot"]="8901",n["&lceil"]="8968",n["&rceil"]="8969",n["&lfloor"]="8970",n["&rfloor"]="8971",n["&lang"]="9001",n["&rang"]="9002",n["&loz"]="9674",n["&spades"]="9824",n["&clubs"]="9827",n["&hearts"]="9829",n["&diams"]="9830",n)"function"!=typeof n[e]&&n.hasOwnProperty(e)&&(o[n[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(r=o[t].toLowerCase().substr(1),i.put(r,String.fromCharCode(t)));return i}(),sV=function(e){function t(){return jH(this,t),qH(this,t,arguments)}return $H(t,e),FH(t,[{key:"decodeCharacter",value:function(e){var t;e.mark();var r=e.next();if(null==r||"&"!==r)return e.reset(),null;var n=e.next();if(null==n)return e.reset(),null;if("#"===n){if(null!=(t=this._getNumericEntity(e)))return t}else if(n.match(/[A-Za-z]/)&&(e.pushback(n),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,r,n,o="";for(t=Math.min(e.remainder().length,aV.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();var i=aV.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,r=0;r<t;r++)e.next();return e.peek(";")&&e.next(),i.getValue()}},{key:"_getNumericEntity",value:function(e){var t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}},{key:"_parseHex",value:function(e){for(var t,r="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}r+=t,e.next()}var n=parseInt(r,16);return!Number.isNaN(+n)&&eV(n)?String.fromCharCode(n):null}},{key:"_parseNumber",value:function(e){for(var t,r="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}r+=t,e.next()}var n=parseInt(r,10);return!Number.isNaN(+n)&&eV(n)?String.fromCharCode(n):null}}])}(QH),lV=function(e){function t(){return jH(this,t),qH(this,t,arguments)}return $H(t,e),FH(t,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",r=0;r<2;r++)null!=(n=e.nextHex())&&(t+=n);return 2===t.length&&(o=parseInt(t,16),eV(o))?String.fromCharCode(o):(e.reset(),null)}}])}(QH),uV=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(JH=document.createElement("div"));var cV=Array.prototype.indexOf,dV=[",",".","_"," "],pV=[",",".","-","_"," "],fV={width:["%"],height:["%"]},hV={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},mV={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":hV.image,"background-color":hV.color,"border-color":hV.color,"border-image":hV.image,color:hV.color,icon:hV.image,"list-style-image":hV.image,"outline-color":hV.color},gV={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function bV(e,t,r){var n;if(t){if(cV)return cV.call(t,e,r);for(n=t.length,r=r?r<0?Math.max(0,n+r):r:0;r<n;r++)if(r in t&&t[r]===e)return r}return-1}function vV(e){if(null==e)return"";var t,r=document.createTextNode(e);return JH.appendChild(r),t=JH.innerHTML,JH.removeChild(r),t}function yV(e,t,r){var n,o,i,a,s,l,u,c,d;for(e=SV(e).toLowerCase(),t=SV(t),i=0;i<gV.attr_name.length;i++)if(e.match(gV.attr_name[i]))throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<gV.attr_val.length;i++)if(t.toLowerCase().match(gV.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((n=fV[e])||(n=pV),o="",!r){for(a=0;a<e.length;a++){if(!(s=e.charAt(a)).match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=s}o+='="'}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&bV(u,n)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return r||(o+='"'),o}function xV(e,t,r){var n,o,i,a,s,l,u,c,d,p;if(e=SV(e).toLowerCase(),t=SV(t),bV(e,gV.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(n=0;n<gV.css_val.length;n++)if(t.toLowerCase().indexOf(gV.css_val[n])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=mV[e])||(o=hV.default),i="",!r){for(a=0;a<e.length;a++){if(!(s=e.charAt(a)).match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=s}i+=": "}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&bV(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function SV(e,t){var r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;for(var s=[new sV,new lV,new rV];!a;){n=r;for(var l=0;l<s.length;l++)(i=s[l].decode(r))!==r&&(o++,r=i);n!==r||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return r}for(var wV=[],CV=0;CV<255;CV++)wV[CV]=CV>=48&&CV<=57||CV>=65&&CV<=90||CV>=97&&CV<=122?null:CV.toString(16);var EV=function(e){return vV(e.unsafe)},RV=function(e){var t,r=[],n=[],o={},i="";for(t in e.map?r=e.map:r[e.name]=e.unsafe,r)"function"!=typeof r[t]&&r.hasOwnProperty(t)&&(n[t]=xV(t,r[t],!0),i+=xV(t,r[t],!0),o[t]=n[t]);return e.map?o:i},MV=function(e){var t=[],r=[],n={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(r[i]=yV(i,t[i],!0),o+=yV(i,t[i],!0),n[i]=r[i]);return e.map?n:o};function AV(e,t){throw new Error(t)}var IV={canonicalize:SV,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===VH(arguments[0])?function(){for(var e,t,r,n=arguments[0]||{},o=1,i=arguments.length;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(n===(r=e[t]))continue;void 0!==r&&(n[t]=r)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?EV(e):"css"===e.context?(null!=e.map&&"object"!==VH(e.map)&&AV(this,"Invalid parameter type"),RV(e)):"attr"===e.context?(null!=e.map&&"object"!==VH(e.map)&&AV(this,"Invalid parameter type"),MV(e)):void AV(this,"Invalid parameter type")},encodeForAttr:yV,encodeForAttr2:function(e){return yV("nonsens",e,!0)},encodeForCSS:xV,encodeForHref:function(e){SV(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new KH(e),r=KH.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),n=t.searchParams,o=(e=r+KH.encodeSearchParams(n)+t.hash).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){var r,n,o,i,a,s;for(t||(t=dV),s="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),bV(o,t)>=0||null==wV[i]?s+=o:(n=i.toString(16),i<256?(a="00".substr(n.length),s+="\\x".concat(a).concat(n.toUpperCase())):(a="0000".substr(n.length),s+="\\u".concat(a).concat(n.toUpperCase())));return s},encodeForHTML:vV,encodeForURL:function(e,t){var r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=SV(t).toLowerCase():AV(this,"Illegal Attribute Name Specified"),r+='="'),r+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),r+=t?'"':""},isSafeDataURL:function(e,t){var r=null!=t?t:{},n=r.maxByteSizeSvg,o=void 0===n?5e5:n,i=r.maxByteSizeImage,a=void 0===i?5e6:i,s=function(e){var t,r=GH(null!==(t=uV.exec(e.trim()))&&void 0!==t?t:[],4),n=r[1];return{encoding:r[2],data:r[3],mimeType:null==n?void 0:n.toLocaleLowerCase()}}(e),l=s.mimeType,u=s.encoding,c=s.data;if(!c)return!0;var d=function(e,t,r){var n={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(r)],n).size}catch(e){return new Blob([r],n).size}return"image/svg+xml"===e?new Blob([r],n).size:0}(l,u,c);return"image/svg+xml"===l?d<=o:d<=a},validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch(e){return!1}}(e))return!1;var t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;var r=function(e){for(var t=e,r="";t.length>0;)if(t.startsWith("../")||t.startsWith("./"))t=t.replace(/^\.\.?\//,"");else if(t.startsWith("/./"))t=t.replace(/^\/\.\//,"/");else if("/."===t)t="/";else if(t.startsWith("/../")){t=t.replace(/^\/\.\.\//,"/");var n=r.lastIndexOf("/");-1!==n&&(r=r.slice(0,n))}else if("/.."===t){t="/";var o=r.lastIndexOf("/");-1!==o&&(r=r.slice(0,o))}else if("."===t||".."===t)t="";else{var i=t.match(/^\/?[^/]*/),a=i?i[0]:"";t=t.slice(a.length),r+=a}return r}(t);return""!==r&&"/"!==r&&r}};const kV=(e,t)=>t.qAttrExps?.qValues?.[e],LV=(e,t)=>{switch(e){case"topLeft":default:return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"center"};case"topRight":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-end"}}},PV=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:o,imageBox:i,direction:a})=>n&&t&&!t.toLowerCase().includes("javascript:")&&IV.isSafeDataURL(t)?{type:Hz.Image,url:t,text:e,imageSize:r,resolvedImagePosition:LV(n,a),labelStructure:o,imageBox:i}:{type:Hz.Text,url:void 0,text:e,labelStructure:o},DV=(e,t,r,n)=>{if(!e.qMiniChart||!t?.miniChart||!r)return{type:Hz.Text,text:n};const{minY:o,maxY:i}=((e,t,r)=>{const n="global"===t.yAxis?.scale,o="zeroCenter"===t.yAxis?.position,i=n?r.qYMin:e.qMiniChart.qMin,a=n?r.qYMax:e.qMiniChart.qMax;if(o){const e=Math.max(Math.abs(i),Math.abs(a));return{minY:-e,maxY:e}}return(e=>"zeroBaseline"===e.yAxis?.position||"bars"===e.type&&"auto"===e.yAxis?.position)(t)?{minY:Math.min(0,i),maxY:Math.max(0,a)}:{minY:i,maxY:a}})(e,t.miniChart,r),a={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:o,maxY:i,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:Hz.MiniChart,text:n,miniChart:a}},_V=(e,t,r)=>{const n=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,o=n?.qValues?.[e];if(o){const e=Number.isNaN(+o.qNum)?void 0:`${o.qNum}`;return o.qText||e}return r?.urlPosition===Vz.Attribute?void 0:r?.urlLabel},OV=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:Hz.Link,url:IV.encodeForHref(r),text:t,labelStructure:e}}catch{return{type:Hz.Text,url:void 0,text:t,labelStructure:e}}},TV=({cell:e,representationProperties:t,attrExprInfoIndex:r,env:n,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:s=e=>e.qText,direction:l,enabledFeatures:u})=>{const c=Uz(t),d=s(e);return c===Hz.Image&&u[Hz.Image]&&!n.anything.sense?.isUnsupportedFeature?.("tableImages")?((e,t,r,n,o,i)=>{const{imageSize:a,imagePosition:s,imageSetting:l,imageLabel:u,imageBox:c}=t??{};if("url"===l){const t=kV(r.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),PV({text:n,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}if("label"===l){const t=i?i.originalValue:n;if(-1===r.imageLabel)return PV({text:u||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o});const l=kV(r.imageLabel??-1,e)?.qText??n;return PV({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}return{type:Hz.Text,url:void 0,labelStructure:i,text:n}})(e,t,r,d,l,a):c===Hz.Link?((e,t,r,n,o)=>{const{urlPosition:i}=t??{};if(i===Vz.Attribute){const i=_V(r.url??-1,e,t);return OV({labelStructure:n,text:o||i||"",url:i})}if(i===Vz.Dimension){const i=_V(r.urlLabel??-1,e,t)||o;return n&&(n.maskedValue=i),OV({text:i,labelStructure:n,url:n?.originalValue??o})}return{type:Hz.Text,url:void 0,text:o,labelStructure:n}})(e,t,r,a,d):c===Hz.Indicator&&u[Hz.Indicator]&&!n.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,r)=>{const{indicator:n}=e??{};return{type:Hz.Indicator,url:void 0,text:r,indicator:{applySegmentColors:n?.applySegmentColors,position:n?.position,showTextValues:n?.showTextValues},indicatorConditionalColoring:t}})(t,o,d):c===Hz.MiniChart&&u[Hz.MiniChart]&&!n.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?DV(e,t,i,d):{type:Hz.Text,url:void 0,text:d,labelStructure:a}},qV=(e,t)=>{const r=t.qAttrExps,n=r?.qValues?.[e?.cellForegroundColor??-1]?.qText,o=r?.qValues?.[e?.cellBackgroundColor??-1]?.qText,i=o?BW(o):null,a=n?BW(n):null,s=((e,t)=>e||!t?null:zW(t))(a,i);return{color:s??a,background:i}},jV=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:jV(e,t)),e),NV=(e,t,r,n,o,i)=>{const a=o?i.rowsPerPage-r:rB-n;let s=e.qUp+e.qDown;if(o&&0===r){const r=(t+e.qUp)%i.rowsPerPage;s=e.qDown+r}return Math.min(a,jV(s,e))},FV=({node:e,parent:t,root:r,x:n,y:o,pageY:i,layoutService:a,dimensionInfo:s,attrExprInfoIndex:l,isLeftColumn:u=!0,isIndentModeEnabled:c=!1,indentLevel:d,labelStructure:p,env:f,pageInfo:h,direction:m="ltr"})=>{const g=(!c||!u)&&"P"===e.qType,b=((e,t)=>{if(e!==wH){if(t){const t=Uz(e.representation);return t===Hz.Link||t===Hz.Image?e.representation:{type:Hz.Text}}return e.representation}})(s,c),v=(({node:e,isLeftColumn:t,isIndentModeEnabled:r,labelStructure:n,representationType:o,parentOrRootOriginalValue:i})=>{let a=e.qText;if(t&&r&&n){const{originalValue:t,delimeter:r,suffix:s}=n;a=o===Hz.Link?"P"===e.qType?i:t:`${t} ${!s||!t&&s?"":r} ${s}`.trim()}return a})({node:e,isLeftColumn:u,isIndentModeEnabled:c,labelStructure:p,representationType:Uz(b),parentOrRootOriginalValue:(t||r)?.representation?.labelStructure?.originalValue??""}),y=TV({cell:{...e,qText:v},representationProperties:b,attrExprInfoIndex:l,env:f,labelStructure:p,direction:m,enabledFeatures:{[Hz.Image]:!0,[Hz.Indicator]:!0}}),x={id:kH(),ref:e,x:n,y:o,pageX:n,pageY:i,mainAxisPageCoord:u?i:n,isLeftColumn:u,parent:t,root:r,children:[],isLeafNode:0===e.qSubNodes.length,leafCount:NV(e,o,i,n,u,h),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof s||!s.qLocked),isTotal:"T"===e.qType||!!t?.isTotal,isEmpty:"E"===e.qType||-4===e.qElemNo,isNull:"U"===e.qType,isPseudoDimension:g,expressionColor:qV(l,e),selectionCellType:u?"L":"T",dimensionInfoIndex:a.getDimensionInfoIndex(s),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:g?e.qElemNo:t?.visibleMeasureInfoIndex,representation:y,...void 0!==d&&{indentLevel:d}};return t&&(t.children[x.mainAxisPageCoord-t.mainAxisPageCoord]=x),x},zV=(e,t,r,n,o,i,a,s,l)=>{const{isIndentModeEnabled:u}=o;if(!t.length)return e;let c=0;return function t(d,p,f,h=0,m=-1){e[h]||(e[h]={}),u&&m++;const g=o.leftDimensionInfoIndexes.indexOf(wH);f.forEach(((f,b)=>{const v={originalValue:f.qText??"",maskedValue:"",delimeter:"-",suffix:""};c+=0===b?0:1;const y=r.qTop-n.page*n.rowsPerPage,x=Math.max(0,y+c-f.qUp),S=r.qTop+c-f.qUp;if(u){if(o.hasPseudoDimOnLeft&&m<=g)if(v.originalValue=f.qText??"",v.maskedValue=f.qText??"","N"===f.qType||"U"===f.qType||"T"===f.qType)"U"===f.qType&&(v.originalValue=o.getNullValueText()),m<g&&(v.suffix=o.visibleMeasureInfo[0].qFallbackTitle);else if("P"===f.qType){v.originalValue=(p||d)?.representation.labelStructure?.originalValue??"",v.maskedValue=(p||d)?.representation.labelStructure?.originalValue??"",v.suffix=f.qText??"";const e=f.qSubNodes;f={...(p||d)?.ref,...f.qText?{qText:f.qText}:{},qSubNodes:e},m=(p||d)?.indentLevel??0}"U"===f.qType&&(v.originalValue=o.getNullValueText())}let w=h;u&&(w=g>=1&&m>=g?m+1:m,0===m&&0===g&&0===f.qSubNodes.length&&(w=0));const C=e.at(h)?.[x],E=u&&void 0===C?.ref.qText||!C?FV({node:f,parent:p,root:d,x:w,y:S,pageY:x,layoutService:o,dimensionInfo:i[w],attrExprInfoIndex:a[w],isLeftColumn:!0,...u&&{isIndentModeEnabled:u,indentLevel:m},env:s,pageInfo:n,labelStructure:v,direction:l}):e[h][x];if(e[h][x]=E,f.qSubNodes.length){const e=u?0:h+1;t(d||E,E,f.qSubNodes,e,m)}}))}(null,null,t,0,-1),e},$V=(e,t)=>{e.slice(0,-1).forEach((e=>{Object.values(e).forEach(((e,r,n)=>{const o=n.at(r+1);e.distanceToNextCell=o?o.mainAxisPageCoord-(e.mainAxisPageCoord+e.leafCount):t-(e.mainAxisPageCoord+e.leafCount)}))}))},WV=(e,t)=>{const r=e[0],n=r?Object.values(r):[],o=t?.isIndentModeEnabled&&t.hasPseudoDimOnLeft?t.visibleMeasureInfo.length-1:0,i=r?.[o],a=n.at(-1);return i?.isTotal?i.isLeafNode?i.mainAxisPageCoord:i.mainAxisPageCoord+i.leafCount-1:a?.isTotal?a.mainAxisPageCoord-1:-1},BV=({prevData:e,nextDataPage:t,pageInfo:r,layoutService:n,visibleLeftDimensionInfo:o,attrExprInfoIndexes:i,env:a,direction:s})=>{const{qLeft:l,qArea:u}=t;if(!l.length)return e;const c=zV(e.grid,l,u,r,n,o,i,a,s);$V(c,r.rowsOnCurrentPage);const d=WV(c,n);return{...e,grid:c,columnCount:c.length,totalDividerIndex:d}},GV=({qArea:e,prevData:t,pivotValuePoints:r,pageInfo:n})=>{const o=[...t];return r.forEach(((t,r)=>{t.forEach(((t,i)=>{const a=e.qTop-n.page*n.rowsPerPage+r,s=e.qLeft+i;Array.isArray(o[a])||(o[a]=[]);const l="U"===t.qType;o[a][s]=o[a][s]??{id:kH(),ref:t,isNull:l}}))})),o},HV=({prevData:e,dataPage:t,pageInfo:r})=>{const{qData:n,qArea:o}=t;return n?.length?GV({qArea:o,prevData:e,pivotValuePoints:n,pageInfo:r}):e},VV=(e,t,r,n,o,i,a,s,l,u)=>{const{isIndentModeEnabled:c}=n;if(!t.length)return e;let d=0;!function t(a,p,f,h=0){e[h]||(e[h]={}),f.forEach(((f,m)=>{d+=0===m?0:1;const g=r.qLeft+d-f.qUp,b=e[h][g]??FV({node:f,parent:p,root:a,x:g,y:h,pageY:h,layoutService:n,dimensionInfo:o[h],attrExprInfoIndex:i[h],isLeftColumn:!1,...c&&{isIndentModeEnabled:c},env:s,pageInfo:l,direction:u});e[h][g]=b,f.qSubNodes.length&&t(a||b,b,f.qSubNodes,h+1)}))}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},UV=({prevData:e,nextDataPage:t,layoutService:r,visibleTopDimensionInfo:n,attrExprInfoIndexes:o,headerRows:i,env:a,pageInfo:s,direction:l})=>{const{qTop:u,qArea:c}=t;if(!u.length)return e;const d=VV(e.grid,u,c,r,n,o,i,a,s,l);$V(d,r.size.x);const p=WV(d);return{...e,grid:d,rowCount:d.length,totalDividerIndex:p}},YV=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{}),KV=(e,t)=>{const{env:r}=mH(),{direction:n}=pH(),{layoutService:o,effectivePropertiesService:i}=vH(),{qPivotDataPages:a,pageInfo:s}=pH(),[l,u]=b(null),c=((e,t,r)=>g((()=>({left:e.map(YV),top:t.map(YV),measures:r.map(YV)})),[r,e,t]))(e,t,o.visibleMeasureInfo),d=g((()=>OH(o,i,t,e)),[o,i,t,e]),p=h((()=>a.slice(1).reduce(((e,t)=>HV({prevData:e,dataPage:t,pageInfo:s})),((e,t)=>{const{qData:r,qArea:n}=e;return GV({qArea:n,prevData:[],pivotValuePoints:r,pageInfo:t})})(a[0],s))),[a,s]),f=h((()=>a.slice(1).reduce(((e,i)=>UV({prevData:e,nextDataPage:i,layoutService:o,visibleTopDimensionInfo:t,attrExprInfoIndexes:c.top,headerRows:d.size.y,env:r,pageInfo:s,direction:n})),((e,t,r,n,o,i,a,s)=>{const{qArea:l,qTop:u}=e,c=VV([],u,l,t,r,n,o,i,a,s);$V(c,t.size.x);const d=WV(c);return{grid:c,rowCount:c.length,layoutSize:t.size,totalDividerIndex:d}})(a[0],o,t,c.top,d.size.y,r,s,n))),[a,o,t,c.top,d.size.y,r,s,n]),m=h((()=>a.slice(1).reduce(((t,i)=>BV({prevData:t,nextDataPage:i,pageInfo:s,layoutService:o,visibleLeftDimensionInfo:e,attrExprInfoIndexes:c.left,env:r,direction:n})),((e,t,r,n,o,i,a)=>{const{qArea:s,qLeft:l}=e,u=zV([],l,s,r,t,n,o,i,a);$V(u,r.rowsOnCurrentPage);const c=WV(u,t);return{grid:u,columnCount:u.length,layoutSize:t.size,totalDividerIndex:c}})(a[0],o,s,e,c.left,r,n))),[a,o,s,e,c,r,n]),[v,y]=b((()=>p())),[x,S]=b((()=>f())),[w,C]=b((()=>m()));zB((()=>{y(p())}),[p]),zB((()=>{S(f())}),[f]),zB((()=>{C(m())}),[m]),zB((()=>{l&&l.forEach((i=>{y((e=>HV({prevData:e,dataPage:i,pageInfo:s}))),S((e=>UV({prevData:e,nextDataPage:i,layoutService:o,visibleTopDimensionInfo:t,attrExprInfoIndexes:c.top,headerRows:d.size.y,env:r,pageInfo:s,direction:n}))),C((t=>BV({prevData:t,nextDataPage:i,pageInfo:s,layoutService:o,visibleLeftDimensionInfo:e,attrExprInfoIndexes:c.left,env:r,direction:n})))}))}),[l]);const E=h((e=>{u(e)}),[]);return{headersData:d,measureData:v,topDimensionData:x,leftDimensionData:w,attrExprInfoIndexes:c,nextPageHandler:E}},XV=Math.sqrt(1e4),JV=e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/lN.PixelsMin)}),ZV=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],r=Math.ceil(e.qWidth/XV),n=Math.ceil(e.qHeight/XV);for(let o=0;o<r;o++)for(let r=0;r<n;r++)t.push({qLeft:e.qLeft+o*XV,qTop:e.qTop+r*XV,qWidth:Math.min(XV,e.qWidth-o*XV),qHeight:Math.min(XV,e.qHeight-r*XV)});return t};function QV({nextPageHandler:e}){const{model:t}=mH(),{pageInfo:r}=pH(),{layoutService:n}=vH(),o=(e=>{const t=u(e);return t.current=e,t})(r.page),i=t,a=h((async(e,t)=>{await(i?.collapseLeft(SH,e,t,!1))}),[i]),s=h((async(e,t)=>{await(i?.collapseTop(SH,e,t,!1))}),[i]),l=h((async(e,t)=>{await(i?.expandLeft(SH,e,t,!1))}),[i]),c=h((async(e,t)=>{await(i?.expandTop(SH,e,t,!1))}),[i]),d=h((async t=>{if(i?.getHyperCubePivotData&&0!==t.length)try{const n=await i.getHyperCubePivotData(SH,t.reduce(((e,t)=>[...e,...ZV(t)]),[]));o.current===r.page&&e(n)}catch(e){console.error(e)}}),[i,e,r,o]),p=h(((e,{dimensionInfoIndex:r,isLeftColumn:o,x:i=0,columnWidthLocation:a})=>{const{qMeasureInfo:s,qDimensionInfo:l,topHeadersColumnWidth:u}=n.layout.qHyperCube;let c=[];switch(a){case Zz.Dimension:c=[{qPath:`${SH}/qDimensions/${r}/qDef/columnWidth`,oldValue:l[r].columnWidth}];break;case Zz.Measures:if(o)c=s.map(((e,t)=>({qPath:`${SH}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=n.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${SH}/qMeasures/${e}/qDef/columnWidth`,oldValue:s[e].columnWidth}]}break;case Zz.Pivot:c=[{qPath:`${SH}/topHeadersColumnWidth`,oldValue:u}]}const d=c.map((t=>{const{qPath:r,oldValue:n}=t;return{qPath:r,qOp:n?"Replace":"Add",qValue:JSON.stringify({...n,...e})}}));t?.applyPatches(d,!0)}),[t,n]),f=h((async e=>{await(i?.applyPatches([{qPath:`${SH}/indentModeColumnWidth`,qOp:n.layout.qHyperCube.indentModeColumnWidth?"Replace":"Add",qValue:JSON.stringify({...n.indentModeColumnWidth,...e})}],!0))}),[i,n]);return g((()=>({collapseLeft:a,collapseTop:s,expandLeft:l,expandTop:c,applyColumnWidth:p,applyIndentModeColumnWidth:f,fetchPages:d})),[a,s,l,c,p,f,d])}const eU=(e,t,r)=>(n,o)=>{if("P"===n)return wH;const i=t[r+o];return e[i]},tU=e=>{const t=[],r=(e,n=0)=>{e.slice(0,1).forEach((e=>{t[n]=e.qType,e.qSubNodes.length&&r(e.qSubNodes,n+1)}))};return r(e),t},rU=c({}),nU=()=>n(rU),oU=({children:e})=>{const{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:r}=(()=>{const{layoutService:{layout:{qHyperCube:{qNoOfLeftDims:e,qEffectiveInterColumnSortOrder:t,qDimensionInfo:r}}}}=vH(),{qPivotDataPages:n}=pH();return g((()=>{const o=tU(n[0]?.qLeft??[]),i=tU(n[0]?.qTop??[]);return{visibleLeftDimensionInfo:o.map(eU(r,t,0)),visibleTopDimensionInfo:i.map(eU(r,t,e))}}),[r,t,e,n])})(),{headersData:n,measureData:o,topDimensionData:i,leftDimensionData:a,attrExprInfoIndexes:s,nextPageHandler:l}=KV(t,r),u=QV({nextPageHandler:l}),c=g((()=>({gridSectionsData:{headersData:n,topDimensionData:i,leftDimensionData:a,measureData:o},visibleDimensionsInfo:{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:r},attrExprInfoIndexes:s,dataModel:u})),[t,r,n,o,i,a,s,u]);return Zo.jsx(rU.Provider,{value:c,children:e})},iU=20,aU=18,sU=.75,lU=e=>-1!==e&&e?.representation?.type===Hz.Image,uU=({isLeftColumn:e,layoutService:t,representation:r})=>Boolean(e)&&t.isIndentModeEnabled&&r.type===Hz.Image,cU=e=>void 0===e?tB:e,dU=(e,t)=>void 0===e||Number.isNaN(+e)?t:+e,pU=e=>dU(e,lN.PixelsDefault),fU=(e,t)=>dU(e,lN.PercentageDefault)*t/100,hU=(e,t,r)=>{switch(t?.type){case uN.Pixels:return pU(t.pixels);case uN.Percentage:return fU(t.percentage,e);case uN.FitToContent:case uN.Auto:default:return r}},mU=({headers:e,layoutService:t,effectivePropertiesService:r,estimateWidthForDimensionValue:n,shouldConsiderCombinatedLength:o,measureTextForHeader:i,longestMeasureValuePossible:a})=>e.reduce(((e,s,l)=>{const{layout:{qHyperCube:{qNoOfLeftDims:u,qDimensionInfo:c}}}=t,{id:d,colIdx:p,qApprMaxGlyphCount:f,isLeftDimension:h}=s,m=c.find((e=>e.cId===d)),g={width:24,...m?.representation?.imageBox};if(!h)return e+0;if(d===CH)return e+0;const b=uU({isLeftColumn:h,layoutService:t,representation:m?.representation||{type:Hz.Text}})?g.width+8+4:n(f),v=!r.qAlwaysFullyExpanded&&p<u-1?21:0;let y=0;if(o&&i&&a){y=i("- ")+a}return Math.max(e,24*l+aU+v+b+y)}),0),gU=(e,t,r)=>e.reduce(((e,n)=>{const o=(r?0:1)*aU;return Math.max(e,o+t(n.qFallbackTitle))}),0),bU=(e,t,r,n)=>{const o=100*e/t,i=n*sU*(o/100),a=o/100*+r;return Math.min(a,i)},vU=(e,t,r,n)=>n*(+r/100)*(100*e/t/100),yU=(e,t)=>e.some((e=>e>=t*sU)),xU=({layoutService:e,effectivePropertiesService:t,headersData:r,columnWidths:n,tableWidth:o,widthOverride:i,measureTextForHeader:a,estimateWidthForDimensionValue:s,measureTextWidthForMeasuresCombinedWithDimensions:l,translator:u})=>{let c=[];const d=o*sU,p=r.data[r.data.length-1][0];if(!Array.isArray(p))return{leftGridWidth:0,leftGridColumnWidths:[],leftGridFullWidth:0};const f=Math.min(d,n.at(-1)),h=Math.min(d,mU({headers:p,layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:s})),m=Math.min(d,gU(e.visibleMeasureInfo,a));let g=0;const b=p.findIndex((e=>e.id===CH)),v=(({layoutService:e,measureTextForHeader:t,translator:r,headersData:n})=>{const{type:o}=e.indentModeColumnWidth;return o===uN.Auto&&n.size.y<=1?t(r.get("SNPivotTable.IndentMode.Rows"))+8+aU+16:24})({layoutService:e,measureTextForHeader:a,translator:u,headersData:r});if(e.hasPseudoDimOnLeft)if(0===b){const e=Math.max(f,h,m);c=[Math.max(v,e-f),f]}else{const r=Math.min(d,gU(e.visibleMeasureInfo,l,!0));g=Math.min(d,mU({headers:p.slice(0,b),layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:s,shouldConsiderCombinatedLength:!0,measureTextForHeader:a,longestMeasureValuePossible:r}));const n=Math.max(f,h,g);c=[Math.max(v,n-f),f]}else c=[Math.max(v,h-f),f];const y=Math.min(d,c.reduce(((e,t)=>e+t),0)),{indentModeColumnWidth:x}=e;i&&i<=d&&(x.type=uN.Pixels,x.pixels=i);return[uN.Pixels,uN.Percentage].includes(x.type)||yU(c,o)?((e,t,r,n)=>{let o=e[0],i=e[1],a=[];const s=e.reduce(((e,t)=>e+t),0),{type:l,pixels:u,percentage:c}=t,d=yU(e,r);l===uN.Auto&&d&&(o>i?o-=i:i-=o),l===uN.Pixels&&u&&(o=bU(e[0],s,u,r),i=bU(e[1],s,u,r)),l===uN.Percentage&&c&&(o=vU(e[0],s,c,r),i=vU(e[1],s,c,r));let p=0;i<=n&&(p=o-5,p>0&&(o-=p,i+=p)),p=i-n,p>0&&(o+=p,i-=p),a=[o,i];const f=a.reduce(((e,t)=>e+t),0);return{leftGridColumnWidths:a,leftGridWidth:f,leftGridFullWidth:f}})(c,x,o,f):{leftGridWidth:y,leftGridColumnWidths:c,leftGridFullWidth:y}};function SU({tableWidth:e}){const t=e*sU,{styleService:r,layoutService:n,effectivePropertiesService:o}=vH(),{translator:i}=mH(),{gridSectionsData:{headersData:a}}=nU(),{measureText:s}=qB(r.header),{estimateWidth:l,measureText:u}=qB({...r.dimensionValues,fontWeight:cU(r.dimensionValues.fontWeight)}),{measureText:c}=qB({...r.dimensionValues,...r.measureLabels}),d=h(((r,d)=>{const{layout:{qHyperCube:{qNoOfLeftDims:p,topHeadersColumnWidth:f}},visibleMeasureInfo:h,isIndentModeEnabled:m,hasPseudoDimOnLeft:g}=n,b=(t=0)=>h.reduce(((r,{qFallbackTitle:n,columnWidth:o})=>{const i=c(n)+aU,a=Math.max(i,t);return Math.max(r,m?a:hU(e,o,a))}),0),v=e=>a.data.reduce(((t,r)=>{const n=r.at(e);if(!n||Array.isArray(n))return t;if(n.id===CH)return t;const o=(e=>{const{label:t,isLocked:r}=e,n=r?iU:0;return aU+s(t)+iU+n})(n);return Math.max(o,t)}),0);let y=0,x=a.data.at(-1);m&&a.size.x>1&&x&&x[0]&&(x=x[0]);const S=x.map(((i,s)=>{let u=aU;if(m&&1!==a.size.x||!r||void 0===d||d!==i.colIdx){let t;i.columnWidthLocation===Zz.Pivot?t=m?void 0:f:i.columnWidthLocation===Zz.Dimension&&({columnWidth:t}=i);let r=0;if(i.isLeftDimension)if(i.id===CH)r=b();else{const e=v(s),t=((e,t)=>{const{qApprMaxGlyphCount:r,isLeftDimension:i,dimensionInfoIndex:a}=e,s=n.getDimensionInfo(a);if(lU(s))return lN.PixelsDefault;const u=!o.qAlwaysFullyExpanded&&i&&t<p-1?21:0;return aU+l(r)+u})(i,s);r=Math.max(e,t),m&&!g&&s+1===p&&i.columnWidthLocation===Zz.Dimension&&a.size.x>1&&(r=e)}else r=v(s),i.columnWidthLocation===Zz.Measures&&(r=b(r));m&&1===a.size.x&&(t=n.indentModeColumnWidth),u=m&&!g&&a.size.x>1?r:hU(e,t,r)}else u=m?Math.min(t,r):r;return y+=u,u}));return m&&a.size.x>1?xU({layoutService:n,effectivePropertiesService:o,headersData:a,columnWidths:S,tableWidth:e,widthOverride:r,measureTextForHeader:s,estimateWidthForDimensionValue:l,measureTextWidthForMeasuresCombinedWithDimensions:u,translator:i}):{leftGridWidth:Math.min(t,y),leftGridColumnWidths:S,leftGridFullWidth:y}}),[e,a,n,t,s,c,l,u,i,o]),[p,f]=b(d);zB((()=>{f(d())}),[d]);const m=h(((e,t)=>{f(d(e,t))}),[d]);return{...p,overrideLeftGridWidth:m}}function wU({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:r}){const{styleService:n,layoutService:o}=vH(),{visibleDimensionsInfo:{visibleTopDimensionInfo:i}}=nU(),{layout:{qHyperCube:{qNoOfLeftDims:a,qEffectiveInterColumnSortOrder:s}},size:l,visibleMeasureInfo:u}=o,{estimateWidth:c,measureText:d}=qB(n.measureValues),{estimateWidth:p}=qB({...n.dimensionValues,fontWeight:cU(n.dimensionValues.fontWeight)}),f=e-r-1,m=i.at(-1),b=m===wH,v=s.length-a>i.length?21:0,y=g((()=>{const e=b?u:[m],t=l.x/e.length,r=[],n=[];let o=f;const i=(e,n)=>{r[e]=Math.min(lN.PixelsMax,Math.max(lN.PixelsMin,n)),o-=r[e]*t};if(e.forEach(((e,t)=>{if(e?.columnWidth){const{columnWidth:{type:r,pixels:o,percentage:a},qApprMaxGlyphCount:s,qFallbackTitle:l}=e;switch(r){case uN.Pixels:i(t,pU(o));break;case uN.Percentage:i(t,fU(a,f));break;case uN.FitToContent:i(t,((e,t,r)=>r?lN.PixelsDefault:aU+(b?Math.max(c(e),d(t)):Math.max(Math.max(...u.map((e=>c(e.qApprMaxGlyphCount)))),p(e)+v)))(s,l,lU(e)));break;case uN.Auto:default:n.push(t)}}else n.push(t)})),n.length){const e=n.length*t,i=o/e;n.forEach((e=>{r[e]=Math.max(lN.AutoMinPivot,i)}))}return r}),[b,u,m,l.x,f,c,d,p,v]),x=g((()=>{if(b){return u.reduce(((e,t,r)=>e+y[r]),0)/u.length}return y[0]}),[b,y,u]),S=parseFloat((t/o.size.x).toFixed(12)),w=h((e=>(b&&void 0!==e?y[o.getMeasureInfoIndexFromCellIndex(e,!0)]:x)-S),[b,y,o,x,S]),C=l.x*x;return{rightGridFullWidth:C,rightGridWidth:Math.min(C,f),getRightGridColumnWidth:w}}const CU=`scrollable-container--${e$.TopGrid}`,EU=`scrollable-container--${e$.LeftGrid}`,RU=`scrollable-container--${e$.DataGrid}`,MU=e=>e&&e instanceof HTMLDivElement?{width:e.offsetWidth-e.clientWidth,height:e.offsetHeight-e.clientHeight}:{width:0,height:0},AU=(e,t)=>e>t?t$.Forward:e<t?t$.Backward:t$.None,IU=({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:r},getWrapperElements:n,updateViewService:o,trackScrollDirection:i,interactions:a})=>{const{direction:s}=pH();p((()=>{const{headerGridWrapperElement:l,topGridWrapperElement:u,leftGridWrapperElement:c,dataGridWrapperElement:d}=n(),p=e=>{const t=e.target;l.scrollLeft=t.scrollLeft,i(e),o?.(e)},f=e=>{const t=e.target;l.scrollTop=t.scrollTop,i(e),o?.(e)},h=n=>{const a=n.target,l=((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})(a,s);r.current?.scrollTo({scrollLeft:l,scrollTop:a.scrollTop}),u.scrollLeft=l,e.current?.forEach((e=>{e?.scrollTo(l)})),c.scrollTop=d.scrollTop,t.current?.forEach((e=>{e?.scrollTo(a.scrollTop)})),i(n),o?.(n)};return c.addEventListener("scroll",p),u.addEventListener("scroll",f),d.addEventListener("scroll",h),a.scroll||setTimeout((()=>{c.removeEventListener("scroll",p),u.removeEventListener("scroll",f),d.removeEventListener("scroll",h)}),0),()=>{c.removeEventListener("scroll",p),u.removeEventListener("scroll",f),d.removeEventListener("scroll",h)}}),[i,o,a,e,t,r,n,s])},kU=()=>{const{interactions:e}=mH(),t=u(null),r=u(null),n=u(null),o=u(null),i=u([]),a=u([]),s=u(null),{scrollbarsDimensions:{verticalScrollbarWidth:l,horizontalScrollbarHeight:c},resetHorizontalScrollbarHeight:d}=(({topGridWrapperRef:e,leftGridWrapperRef:t,dataGridWrapperRef:r})=>{const[n,o]=b(0),[i,a]=b(0);return m((()=>{(e.current||r.current)&&o(Math.max(MU(e.current).width,MU(r.current).width))})),m((()=>{(t.current||r.current)&&a(Math.max(MU(t.current).height,MU(r.current).height))})),{scrollbarsDimensions:{verticalScrollbarWidth:n,horizontalScrollbarHeight:i},resetHorizontalScrollbarHeight:()=>{a(0)}}})({topGridWrapperRef:r,leftGridWrapperRef:n,dataGridWrapperRef:o});(({gridSectionsWrapperRefs:{headerGridWrapperRef:e,topGridWrapperRef:t,leftGridWrapperRef:r,dataGridWrapperRef:n},gridRefs:{topGridRef:o,leftGridRef:i,dataGridRef:a}})=>{const{pageInfo:s}=pH(),{downloadService:l,viewService:u,layoutService:c}=vH(),d=h((()=>{const o={left:0,top:0};e.current?.scrollTo(o),t.current?.scrollTo(o),r.current?.scrollTo(o),n.current?.scrollTo(o)}),[e,t,r,n]);m((()=>{d()}),[s.page,d]),m((()=>{c.triggerdByExpandOrCollapse||d()}),[c,d]),m((()=>{if(c.triggerdByExpandOrCollapse){const e=n.current?.scrollLeft??0,t=n.current?.scrollTop??0;i.current?.forEach((e=>{e?.scrollTo(t)})),o.current?.forEach((t=>{t?.scrollTo(e)})),a.current?.scrollTo({scrollTop:t,scrollLeft:e})}}),[c,n,a,i,o]),m((()=>{(l.isDownloadedAsPDForImage||c.isSnapshot)&&n.current&&r.current&&t.current&&(n.current.scrollTop=u.scrollTop,n.current.scrollLeft=u.scrollLeft,r.current.scrollLeft=u.leftGridScrollLeft,t.current.scrollTop=u.topGridScrollTop)}),[u,l,c,n,r,t])})({gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:r,leftGridWrapperRef:n,dataGridWrapperRef:o},gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:s}});const{trackScrollDirection:f,scrollDirectionRefs:{verticalScrollDirection:g,horizontalScrollDirection:v}}=(()=>{const e=u(t$.None),t=u(t$.None),r=u({prevScrollTop:0,prevScrollLeft:0}),n=h((n=>{if(n instanceof WheelEvent&&(e.current=AU(n.deltaY,0),t.current=AU(n.deltaX,0)),n instanceof Event&&!(n instanceof WheelEvent)){const o=n.target;e.current=AU(o.scrollTop,r.current.prevScrollTop),r.current.prevScrollTop=o.scrollTop,t.current=AU(o.scrollLeft,r.current.prevScrollLeft),r.current.prevScrollLeft=o.scrollLeft}}),[e,t,r]);return{trackScrollDirection:n,scrollDirectionRefs:{verticalScrollDirection:e,horizontalScrollDirection:t}}})(),y=(()=>{const{viewService:e}=vH();return h((t=>{const r=t.target,n=t.currentTarget,o=r.dataset.key;o===EU&&(e.leftGridScrollLeft=n.scrollLeft),o===RU&&(e.scrollLeft=n.scrollLeft),o===CU&&(e.topGridScrollTop=n.scrollTop),o!==EU&&o!==RU||(e.scrollTop=n.scrollTop)}),[e])})(),x={gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:s},getWrapperElements:h((()=>({headerGridWrapperElement:t.current,topGridWrapperElement:r.current,leftGridWrapperElement:n.current,dataGridWrapperElement:o.current})),[t,r,n,o]),updateViewService:y,trackScrollDirection:f,interactions:e};return(({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:r},getWrapperElements:n,updateViewService:o,trackScrollDirection:i,interactions:a})=>{p((()=>{const{headerGridWrapperElement:o,topGridWrapperElement:s,leftGridWrapperElement:l,dataGridWrapperElement:u}=n(),c=e=>{o.scrollLeft+=e.deltaX,o.scrollTop+=e.deltaY,l.scrollLeft=o.scrollLeft,s.scrollTop=o.scrollTop,i(e)},d=e=>{l.scrollTop+=e.deltaY,t.current?.forEach((e=>{e?.scrollTo(l.scrollTop)})),o.scrollLeft+=e.deltaX,l.scrollLeft=o.scrollLeft,u.scrollTop=l.scrollTop,r.current?.scrollTo({scrollTop:l.scrollTop}),i(e)},p=t=>{s.scrollLeft+=t.deltaX,e.current?.forEach((e=>{e?.scrollTo(s.scrollLeft)})),o.scrollTop+=t.deltaY,s.scrollTop=o.scrollTop,u.scrollLeft=s.scrollLeft,r.current?.scrollTo({scrollLeft:s.scrollLeft}),i(t)},f=n=>{u.scrollLeft+=n.deltaX,u.scrollTop+=n.deltaY,r.current?.scrollTo({scrollLeft:u.scrollLeft,scrollTop:u.scrollTop}),s.scrollLeft=u.scrollLeft,e.current?.forEach((e=>{e?.scrollTo(u.scrollLeft)})),l.scrollTop=u.scrollTop,t.current?.forEach((e=>{e?.scrollTo(u.scrollTop)})),i(n)};return o.addEventListener("wheel",c),l.addEventListener("wheel",d),s.addEventListener("wheel",p),u.addEventListener("wheel",f),a.scroll||setTimeout((()=>{o.removeEventListener("wheel",c),l.removeEventListener("wheel",d),s.removeEventListener("wheel",p),u.removeEventListener("wheel",f)}),0),()=>{o.removeEventListener("wheel",c),l.removeEventListener("wheel",d),s.removeEventListener("wheel",p),u.removeEventListener("wheel",f)}}),[i,o,a,e,t,r,n])})(x),IU(x),{gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:r,leftGridWrapperRef:n,dataGridWrapperRef:o},gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:s},scrollDirectionRefs:{verticalScrollDirection:g,horizontalScrollDirection:v},scrollbarsDimensions:{verticalScrollbarWidth:l,horizontalScrollbarHeight:c,resetHorizontalScrollbarHeight:d}}},LU=()=>{const{layoutService:e}=vH(),{rect:t,pageInfo:r}=pH();return g((()=>{let{height:n}=t;return e.hasLimitedData&&(n-=22),r.shouldShowPagination&&(n-=41),{...t,height:n}}),[t,e,r.shouldShowPagination])},PU=({children:e,style:t})=>Zo.jsx("div",{"data-testid":"fullSize",style:t,children:e}),DU=({children:e,style:t})=>{const{direction:r}=pH();return Zo.jsx("div",{"data-section-id":"GRID",style:{direction:r,display:"grid",...t},children:e})},_U=e=>e&&`scrollable-container--${e}`,OU=({children:e,style:t,origin:r},n)=>{const{interactions:o}=mH(),i=o.scroll?t:{overflow:"hidden"};return Zo.jsx("div",{"data-testid":"scrollable","data-key":_U(r),style:i,ref:n,children:e})};var TU=r.forwardRef(OU);const qU=({children:e,style:t})=>{const{direction:r}=pH();return Zo.jsx("div",{"data-testid":"sticky",style:{position:"sticky",top:0,["rtl"===r?"right":"left"]:0,...t},children:e})};var jU=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function NU(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||jU(n)&&jU(o)))return!1;var n,o;return!0}function FU(e,t){var r;void 0===t&&(t=NU);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}}var zU="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function $U(e){cancelAnimationFrame(e.id)}function WU(e,t){var r=zU();var n={id:requestAnimationFrame((function o(){zU()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var BU=-1;function GU(e){if(void 0===e&&(e=!1),-1===BU||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),BU=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return BU}var HU=null;function VU(e){if(void 0===e&&(e=!1),null===HU||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?HU="positive-descending":(t.scrollLeft=1,HU=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),HU}return HU}var UU=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function YU(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,i=e.getColumnStopIndexForStartIndex,a=e.getColumnWidth,s=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,u=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,d=e.getRowHeight,p=e.getRowOffset,f=e.getRowStartIndexForOffset,h=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,g=e.shouldResetStyleCacheOnItemSizeChange,b=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=m(n.props,Rl(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:Rl(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=FU((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=FU((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,i=n.props,s=i.columnWidth,l=i.direction,u=i.rowHeight,c=n._getItemStyleCache(g&&s,g&&l,g&&u),f=e+":"+t;if(c.hasOwnProperty(f))o=c[f];else{var h=r(n.props,t,n._instanceProps),m="rtl"===l;c[f]=o={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:p(n.props,e,n._instanceProps),height:d(n.props,e,n._instanceProps),width:a(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=FU((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(VU()){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&&$U(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=WU(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}ml(t,e),t.getDerivedStateFromProps=function(e,t){return KU(e,t),b(e),null};var v=t.prototype;return v.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)},v.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,a=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=GU();void 0!==n&&(n=Math.max(0,Math.min(n,a-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=s(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==n?u(this.props,n,r,m,this._instanceProps,x):m,scrollTop:void 0!==o?c(this.props,o,r,g,this._instanceProps,y):g})},v.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()},v.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(VU()){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()},v.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&$U(this._resetIsScrollingTimeoutId)},v.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,i=e.direction,a=e.height,u=e.innerRef,c=e.innerElementType,d=e.innerTagName,p=e.itemData,f=e.itemKey,h=void 0===f?UU:f,m=e.outerElementType,g=e.outerTagName,b=e.rowCount,v=e.style,y=e.useIsScrolling,x=e.width,S=this.state.isScrolling,w=this._getHorizontalRangeToRender(),C=w[0],E=w[1],R=this._getVerticalRangeToRender(),M=R[0],A=R[1],I=[];if(n>0&&b)for(var k=M;k<=A;k++)for(var L=C;L<=E;L++)I.push(o(t,{columnIndex:L,data:p,isScrolling:y?S:void 0,key:h({columnIndex:L,data:p,rowIndex:k}),rowIndex:k,style:this._getItemStyle(k,L)}));var P=s(this.props,this._instanceProps),D=l(this.props,this._instanceProps);return o(m||g||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:In({position:"relative",height:a,width:x,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},v)},o(c||d||"div",{children:I,ref:u,style:{height:P,pointerEvents:S?"none":void 0,width:D}}))},v._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)}},v._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,o=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,u=l.horizontalScrollDirection,c=l.isScrolling,d=l.scrollLeft,p=r||o||a||1;if(0===t||0===s)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),h=i(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]},v._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=f(this.props,u,this._instanceProps),p=h(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,p+g)),d,p]},t}(w),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var KU=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},XU=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},JU=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},ZU=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]},QU=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?eY(e,t,r,i,0,n):tY(e,t,r,Math.max(0,i),n)},eY=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=ZU(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},tY=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&ZU(e,t,n,r).offset<o;)n+=a,a*=2;return eY(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},rY=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=ZU(e,t,r,i),u="column"===e?JU(t,i):XU(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}},nY=YU({getColumnOffset:function(e,t,r){return ZU("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return QU("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=ZU("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=ZU("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:XU,getEstimatedTotalWidth:JU,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return rY("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return rY("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return ZU("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return QU("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=ZU("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=ZU("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}}),oY=function(e,t){return e};function iY(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,i=e.getItemSize,a=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,u=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=u(n.props,Rl(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Rl(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=FU((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=FU((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,o=n.props,a=o.direction,s=o.itemSize,l=o.layout,u=n._getItemStyleCache(c&&s,c&&l,c&&a);if(u.hasOwnProperty(e))t=u[e];else{var d=r(n.props,e,n._instanceProps),p=i(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===l,h="rtl"===a,m=f?d:0;u[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=FU((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(VU()){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&&$U(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=WU(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}ml(t,e),t.getDerivedStateFromProps=function(e,t){return aY(e,t),d(e),null};var p=t.prototype;return p.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)},p.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,i=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?GU():0:l.scrollHeight>l.clientHeight?GU():0}this.scrollTo(a(this.props,e,t,i,this._instanceProps,s))},p.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()},p.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(VU()){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()},p.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&$U(this._resetIsScrollingTimeoutId)},p.render=function(){var e=this.props,t=e.children,r=e.className,i=e.direction,a=e.height,s=e.innerRef,l=e.innerElementType,u=e.innerTagName,c=e.itemCount,d=e.itemData,p=e.itemKey,f=void 0===p?oY:p,h=e.layout,m=e.outerElementType,g=e.outerTagName,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S="horizontal"===i||"horizontal"===h,w=S?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),E=C[0],R=C[1],M=[];if(c>0)for(var A=E;A<=R;A++)M.push(o(t,{data:d,key:f(A,d),index:A,isScrolling:v?x:void 0,style:this._getItemStyle(A)}));var I=n(this.props,this._instanceProps);return o(m||g||"div",{className:r,onScroll:w,ref:this._outerRefSetter,style:In({position:"relative",height:a,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},b)},o(l||u||"div",{children:M,ref:s,style:{height:S?"100%":I,pointerEvents:x?"none":void 0,width:S?I:"100%"}}))},p._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)}},p._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,a=n.scrollOffset;if(0===t)return[0,0,0,0];var u=s(this.props,a,this._instanceProps),c=l(this.props,u,a,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}(w),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var aY=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},sY=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]},lY=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=sY(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},uY=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&sY(e,r,t).offset<n;)r+=i,i*=2;return lY(e,t,Math.min(r,o-1),Math.floor(r/2),n)},cY=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},dY=iY({getItemOffset:function(e,t,r){return sY(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:cY,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=sY(e,t,o),p=cY(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?lY(e,t,o,0,r):uY(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=sY(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=sY(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 pY(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 fY=["style"],hY=["style"];function mY(e,t){var r=e.style,n=kn(e,fY),o=t.style,i=kn(t,hY);return!pY(r,o)&&!pY(n,i)}const gY=10,bY=(e,t)=>e.current===t$.Backward?t:0,vY=(e,t,r,n)=>{for(let o=r;o<r+n;o++){const r=e.at(o);if(void 0===r||void 0===r.at(t))return!0}return!1},yY=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,xY=({pageInfo:e,measureData:t,pageTop:r,qHeight:n,startLeft:o,endLeft:i})=>{const a=[],s=e.page*e.rowsPerPage;for(let e=o;e<i;e++)if(vY(t,e,r,n)){const t=a[a.length-1],o={qLeft:e,qTop:r+s,qWidth:1,qHeight:n};void 0!==t&&yY(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},SY=({pageInfo:e,measureData:t,scrollDirection:r,viewService:n,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:s,gridHeight:l}=n,u=r.current===t$.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return xY({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:s,qHeight:l})},wY=({pageInfo:e,measureData:t,scrollDirection:r,layoutService:n,viewService:o})=>{const{startLeft:i,endLeft:a,pageTop:s,qHeight:l}=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,s=e.size.x,l=bY(r,gY),u=Math.max(n-l,0);return{startLeft:u,endLeft:u+Math.min(i+gY,s-u),pageTop:o,qHeight:a}})(n,o,r),u=xY({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:s,qHeight:l});return u.length>0?[...u,...SY({pageInfo:e,measureData:t,scrollDirection:r,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:n.size.x})]:u},CY=(e,t,r,n)=>{const o=e[r];if(void 0===o)return!0;for(let e=t;e<t+n;e++){if(void 0===o[e])return!0}return!1},EY=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,RY=({startTop:e,endTop:t,qLeft:r,qWidth:n,measureData:o,pageInfo:i})=>{const a=[],s=i.page*i.rowsPerPage;for(let i=e;i<t;i++)if(CY(o,r,i,n)){const e=a.at(-1),t={qLeft:r,qTop:i+s,qWidth:n,qHeight:1};void 0!==e&&EY(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},MY=({pageInfo:e,measureData:t,scrollDirection:r,viewService:n})=>{const{startTop:o,endTop:i,qLeft:a,qWidth:s}=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,s=bY(r,gY),l=Math.max(o-s,0);return{startTop:l,endTop:l+Math.min(a+gY,e.rowsOnCurrentPage-l),qLeft:n,qWidth:i}})(e,n,r),l=RY({startTop:o,endTop:i,qLeft:a,qWidth:s,measureData:t,pageInfo:e});if(l.length>0){const n=r.current===t$.Backward?Math.max(0,o-25):i,u=Math.min(n+25,e.rowsOnCurrentPage),c=RY({startTop:n,endTop:u,qLeft:a,qWidth:s,measureData:t,pageInfo:e});return[...l,...c]}return l},AY=async(e,t,r,n,o,i,a,s)=>{const{gridColumnStartIndex:l,gridRowStartIndex:u,gridWidth:c,gridHeight:d}=o;let p=[],f=[];i.current!==t$.None&&(p=MY({pageInfo:n,measureData:r,scrollDirection:i,viewService:o})),a.current!==t$.None&&(f=wY({pageInfo:n,measureData:r,scrollDirection:a,layoutService:t,viewService:o})),i.current===t$.None&&a.current===t$.None&&(p=RY({measureData:r,pageInfo:n,qLeft:l,qWidth:c,startTop:u,endTop:u+d}));const h=e.fetchPages([...p,...f]);s.isDownloadedAsPDForImage&&s.waitForPromise(h)},IY=function(e){var t,r,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,i=0;return function(){t=this;for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];r=s;var u=Date.now()-i,c=function(){i=Date.now(),n=0,e.apply(t,r)};n||(u>=o?c():n=setTimeout(c,o-u))}}(AY,100),kY=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var n=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(n,i)}),r)}}(AY,75),LY=(e,t,r=!1)=>void 0!==e&&(e.isLeafNode||r&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),PY=({style:e,index:t,isLastRow:r,isLastColumn:n,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{direction:s}=pH(),{styleService:{grid:{border:l,divider:u}}}=vH();return Zo.jsx("div",{style:{...e,...lB,...pB(r,n,l,s,o),...hB({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:u})},"data-testid":"empty-cell","data-index":t})},DY=({children:e,verticalAlign:t,width:r,right:n,isLeftColumn:o})=>{const{layoutService:{isIndentModeEnabled:i}}=vH(),a=o&&i;return Zo.jsx("div",{"data-key":"sticky-cell-container",style:{display:"flex",flexDirection:"row",width:r,maxWidth:"100%",maxHeight:"100%",position:"sticky",left:4,top:0,bottom:0,right:n,...!a&&{alignItems:t,alignSelf:t,overflow:"hidden"}},children:e})},_Y=e=>{const{type:t,imageSize:r}=e;return t!==Hz.Image||"fill"!==r&&"fitWidth"!==r?"fit-content":"100%"},OY=e=>"number"==typeof e&&!Number.isNaN(+e),TY=e=>"string"==typeof e&&e.length>0||"number"==typeof e?+e:NaN,qY=x(((e,t)=>Zo.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:Zo.jsx("path",{d:"M9 7V2H7v5H2v2h5v5h2V9h5V7z"})}))),jY=x(((e,t)=>Zo.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:Zo.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"})}))),NY=x(((e,t)=>Zo.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:[Zo.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"}),Zo.jsx("use",{fillRule:"evenodd"})]}))),FY=x(((e,t)=>Zo.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:Zo.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"})}))),zY=x(((e,t)=>Zo.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:Zo.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"})}))),$Y=x(((e,t)=>Zo.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:Zo.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"})}))),WY=x(((e,t)=>Zo.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:Zo.jsx("path",{d:"M2 7h12v2H2z"})}))),BY=x(((e,t)=>Zo.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:Zo.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"})}))),GY=x(((e,t)=>Zo.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:Zo.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"})}))),HY=x(((e,t)=>Zo.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:Zo.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"})}))),VY=x(((e,t)=>Zo.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:Zo.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"})}))),UY=x(((e,t)=>Zo.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:Zo.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})}))),YY=x(((e,t)=>Zo.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:Zo.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"})}))),KY=x(((e,t)=>Zo.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:Zo.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"})}))),XY=x(((e,t)=>Zo.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:Zo.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"})}))),JY={m:UY,"ï":HY,R:x(((e,t)=>Zo.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:Zo.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"})}))),S:YY,T:KY,U:XY,P:GY,Q:$Y,"è":x(((e,t)=>Zo.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:Zo.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"})}))),"¢":FY,"©":NY,"23F4":zY,2013:VY,"&":BY,add:qY,"minus-2":WY,dot:jY},ZY=({size:e,iconKey:t,color:r,pvStyle:n})=>{const o=t&&JY[t];return o&&Zo.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n},children:Zo.jsx(o,{style:{height:e}})})},QY=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),eK=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},tK=(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&&M$(e.localPaletteColors[t].color).blend(M$(s.color),s.t)},rK=(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:QY(t,e.value)})))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map(((e,t)=>({color:eK(n,t,r)})))),n},nK=(e,t,r,n)=>{const o=rK(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=tK(e,a,t);break}n=i}return r})(o,t);return a},oK=(e,t)=>{const r=(e=>e.map((e=>e.value??e)).sort(((e,t)=>e-t)))(e),n=r.some((e=>!OY(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||!OY(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)},iK=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=oK(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||!OY(t))return 0;let a=r&&OY(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}},aK=e=>"flex-start"===e?"flex-end":"flex-start",sK=(e,t,r,n)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=iK(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 eK(o,r.limitPaletteColorIndex,n);const a=QY(r.limitRange,t);return nK(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}},lK=({representation:e,cellValue:t,textStyle:r})=>{const{styleService:n}=vH(),{theme:o}=mH(),{direction:i}=pH(),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=s??{},c=sK(e,t,i,o),{fontSize:d,fontFamily:p,fontStyle:f,fontWeight:h,textDecoration:m}=n.measureValues,g={fontSize:d,fontFamily:p,fontStyle:f,fontWeight:h,textDecoration:m},b=parseInt(d||QW,10),{iconKey:v,color:y,position:x}=c||{},S={display:"flex",paddingTop:2};return l?Zo.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"4px",overflow:r?.overflow,color:u?y:r?.color},children:["left"===x&&ZY({size:b,iconKey:v,color:y,pvStyle:S}),Zo.jsx("span",{style:{paddingTop:4,overflow:r?.overflow,textOverflow:r?.textOverflow,whiteSpace:"nowrap",direction:t<0?"ltr":void 0,...g},children:a}),"right"===x&&ZY({size:b,iconKey:v,color:y,pvStyle:S})]}):(S.paddingTop=5,ZY({size:b,iconKey:v,color:y,pvStyle:S}))},uK=x(((e,t)=>Zo.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:Zo.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"})}))),cK=x(((e,t)=>Zo.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:Zo.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"})}))),dK=e=>!!e.target?.getAttribute("class")?.includes(sN),pK=(e,t)=>{switch(t.type){case"clearSelections":return{engineSelectedCells:null,activeSelection:null,selectedField:null};case"mouseup":return{...e,activeSelection:null,engineSelectedCells:t.payload.engineSelectedCells};case"mousedown":return{...e,activeSelection:t.payload.activeSelection,selectedField:t.payload.selectedField};case"mouseover":{if(!e.activeSelection)return e;const{index:r}=t.payload,n=Math.min(r,e.activeSelection.startIndex),o=Math.max(r,e.activeSelection.endIndex);if(n===e.activeSelection.startIndex&&o===e.activeSelection.endIndex)return e;const i={...e.activeSelection,startIndex:n,endIndex:o};return i.clientSelectedCells=(e=>{const{getCellFromIndex:t,startIndex:r,endIndex:n,clientSelectedCells:o}=e,i=new Map(o);for(let e=r;e<=n;e++){const r=t(e);"N"===r?.ref.qType&&i.set(r.ref.qElemNo,r)}return i})(i),{...e,activeSelection:i}}default:return e}},fK=e=>null!==e.target?.closest("[data-prevent-selection]"),hK=e=>"A"===e.target?.tagName,mK=({startIndex:e,getCellFromIndex:t,cell:r})=>({type:"mousedown",payload:{activeSelection:{startIndex:e,endIndex:e,getCellFromIndex:t,clientSelectedCells:(new Map).set(r.ref.qElemNo,r)},selectedField:{selectionCellType:r.selectionCellType,index:"L"===r.selectionCellType?r.x:r.y}}});const gK=c({createMouseDownHandler:()=>()=>{},createMouseOverHandler:()=>()=>{},createPointerUpHandler:()=>()=>{},isSelected:()=>!1,isActive:!1,isLocked:()=>!1}),bK=()=>n(gK),vK=({children:e,selections:t})=>{const r=function(e){const{updatePageInfo:t}=pH(),r=e.isActive(),[n,o]=d(pK,{engineSelectedCells:null,selectedField:null,activeSelection:null});p((()=>{const r=()=>{o({type:"clearSelections"})},n=()=>{r(),t({page:0})};return e.on("deactivated",r),e.on("canceled",r),e.on("confirmed",n),e.on("cleared",r),()=>{e.removeListener("deactivated",r),e.removeListener("canceled",r),e.removeListener("confirmed",n),e.removeListener("cleared",r)}}),[e,t]);const i=h((async()=>{if(!n.activeSelection)return;var t,r;1===n.activeSelection.clientSelectedCells.size&&(t=n.engineSelectedCells,(r=n.activeSelection).clientSelectedCells.forEach(((e,n)=>{t?.has(n)&&(r.clientSelectedCells.delete(n),t.delete(n))})));const i=new Map([...n.engineSelectedCells??new Map,...n.activeSelection.clientSelectedCells]);try{o({type:"mouseup",payload:{engineSelectedCells:i}}),await e.select({method:"selectPivotCells",params:[SH,Array.from(i,(([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x})))]})}catch(e){console.error(e),o({type:"mouseup",payload:{engineSelectedCells:n.engineSelectedCells}})}}),[n,e]);p((()=>{if(n.activeSelection)return document.addEventListener("mouseup",i),()=>{document.removeEventListener("mouseup",i)}}),[i,n.activeSelection]);const a=h(((e,t)=>r=>{const n=t(e);dK(r)||fK(r)||hK(r)||!(e=>1===e.buttons)(r)||!n||o(mK({startIndex:e,getCellFromIndex:t,cell:n}))}),[]),s=h((t=>async()=>{n.activeSelection&&(e.isActive()||await e.begin([SH]),o({type:"mouseover",payload:{index:t}}))}),[n.activeSelection,e]),l=h(((e,t)=>r=>{if("touch"!==r.pointerType)return;const n=t(e);dK(r)||fK(r)||hK(r)||!n||(o(mK({startIndex:e,getCellFromIndex:t,cell:n})),i())}),[i]),u=h((e=>!(!n.engineSelectedCells?.size&&!n.activeSelection?.clientSelectedCells.size||!n.selectedField||e.selectionCellType===n.selectedField.selectionCellType&&("L"===e.selectionCellType?n.selectedField.index===e.x:n.selectedField.index===e.y))),[n.activeSelection?.clientSelectedCells.size,n.engineSelectedCells?.size,n.selectedField]),c=h((e=>!u(e)&&(n.engineSelectedCells?.has(e.ref.qElemNo)||!!n.activeSelection?.clientSelectedCells.has(e.ref.qElemNo))),[u,n.activeSelection?.clientSelectedCells,n.engineSelectedCells]);return g((()=>({isSelected:c,isActive:r,isLocked:u,createMouseDownHandler:a,createMouseOverHandler:s,createPointerUpHandler:l})),[c,r,u,a,s,l])}(t);return Zo.jsx(gK.Provider,{value:r,children:e})},yK=e=>"fill"===e.representation.imageSize,xK=(e,t)=>{let r=e.isLeftColumn?"flex-start":"center";return e.isLeftColumn&&yK(e)&&t&&(r="center"),e.representation.type!==Hz.Image||yK(e)?r:e.representation.resolvedImagePosition?.vertical};var SK=function(e){return e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration",e}(SK||{});const wK={brighter:.5,darker:.3,opacity:.03},CK=(e,{cell:t,styleService:r})=>{if(e===SK.Background||e===SK.Color){const r=t.expressionColor[e];if(r)return r}return t.isNull?r.nullValues[e]:t.isPseudoDimension?r.measureLabels[e]:t.isTotal?r.totalValues[e]:r.dimensionValues[e]},EK=({styleService:e,isCellSelected:t,cell:r,isCellLocked:n})=>{if(t)return e.selectedColors.background;const o=CK(SK.Background,{cell:r,styleService:e});return!n||!o||r.isPseudoDimension||r.isEmpty||r.isNull||r.isTotal?CK(SK.Background,{cell:r,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${WW(i=o,wK)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},RK=({cell:e,styleService:t,isCellSelected:r})=>r?t.selectedColors.color:CK(SK.Color,{cell:e,styleService:t}),MK=({cell:e,styleService:t})=>{const{qCanCollapse:r,qCanExpand:n}=e.ref,o=CK(SK.FontWeight,{cell:e,styleService:t});return void 0===o&&(n||r)?tB:o},AK=({cell:e,styleService:t})=>CK(SK.FontStyle,{cell:e,styleService:t}),IK=({cell:e,styleService:t})=>CK(SK.TextDecoration,{cell:e,styleService:t}),kK=e=>e?"pointer":"default",LK=({expandOrCollapse:e,cell:t})=>r=>{e?.(t.y,t.x),r.stopPropagation()},PK=(e,t)=>{if(!e.isLeftColumn||e.representation.type===Hz.Image)return{padding:4};return{padding:4,marginTop:t.dimensionValueTextHeight/2-6.5-4}},DK=({cell:e,isLeftColumn:t,isCellSelected:r})=>{const{styleService:n,layoutService:o}=vH(),{interactions:i}=mH(),{isActive:a}=bK(),{dataModel:s}=nU();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!i.active||a||!s,u=RK({cell:e,styleService:n,isCellSelected:r}),c=a?.4:1,d=e.ref.qCanExpand?cK:uK;let p;p=e.ref.qCanExpand?t?s.expandLeft:s.expandTop:t?s.collapseLeft:s.collapseTop;const f=uU({isLeftColumn:t,layoutService:o,representation:e.representation});return Zo.jsx(d,{opacity:c,color:u,"data-prevent-selection":!l||void 0,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:l?"default":"pointer",position:"sticky",top:0,...PK(e,n),...f&&{alignSelf:xK(e)}},onClick:l?void 0:LK({cell:e,expandOrCollapse:p})})},_K=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},OK=(e,t,r)=>{if("alwaysFit"===e&&t&&!r)return"fit-content";switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";case"alwaysFit":return r?"unset":"100%";default:return"100%"}},TK=(e,t)=>{if("alwaysFit"===e)switch(t?.vertical){case"flex-start":return"center top";case"flex-end":return"center bottom";default:return"center center"}},qK=({representation:e,canExpandOrCollapse:t,leafCount:r,isLeftColumn:n,styleService:o,layoutService:i,isMeasureCell:a})=>{const{isIndentModeEnabled:s}=i,l=uU({isLeftColumn:n,layoutService:i,representation:e}),u=t?21:0,c=e.imageBox?.width??24;let d=`calc(100% - ${u}px)`,p=o.headerCellHeight;n&&l&&(d=c),(a||n)&&(p=o.contentCellHeight);let f=p;switch(n&&void 0!==r&&!s&&(f=p*Math.max(r,1)),e.imageSize){case"originalSize":return{maxWidth:d,maxHeight:f,...l?{width:d}:{}};case"fitWidth":return{width:d,maxHeight:f};case"fitHeight":return{height:f,maxWidth:d,...l?{width:d}:{}};case"fill":return{height:f,width:d};default:return{width:d,height:p}}},jK=e=>{if("alwaysFit"===e)return"contain"},NK=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`.trim(),FK=({imageSize:e,resolvedImagePosition:t,isImagesInIndentModeEnabled:r,isMeasureCell:n})=>({width:OK(e,r,n),height:_K(e),objectFit:jK(e),objectPosition:TK(e,t),...r&&"alwaysFit"===e?{"max-width":"100%"}:{}}),zK=({representation:e,textStyle:t,isMeasureCell:r})=>{const{imageRef:n,onLoad:o}=(()=>{const{downloadService:e}=vH(),t=u(null),{promise:r,resolve:n}=g((()=>CB()),[]);return p((()=>(e.isDownloadedAsPDForImage&&(e.waitForPromise(r),t.current?.complete&&n()),()=>{n()})),[t,e,r,n]),{onLoad:h((()=>{n()}),[n]),imageRef:t}})(),{layoutService:{isIndentModeEnabled:i}}=vH(),{url:a,text:s,imageSize:l,resolvedImagePosition:c}=e,{overflow:d,...f}=t;return Zo.jsx("img",{src:a,alt:s,style:{...FK({imageSize:l,resolvedImagePosition:c,isImagesInIndentModeEnabled:i,isMeasureCell:r}),...f},onLoad:o,ref:n})},$K=({representation:e,textStyle:t,canExpandOrCollapse:r,leafCount:n,isLeftColumn:o=!1,imageContainerHorizontalAlignment:i,isMeasureCell:a})=>{const{styleService:s,layoutService:l}=vH(),{resolvedImagePosition:u}=e;return Zo.jsx("div",{"data-key":"image-container--image",style:{display:"flex",flexDirection:"column",justifyContent:u?.vertical,alignItems:i,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",...qK({representation:e,canExpandOrCollapse:r,leafCount:n,styleService:s,layoutService:l,isLeftColumn:o,isMeasureCell:a})},children:Zo.jsx(zK,{representation:e,textStyle:t,isMeasureCell:!0})})},WK=(e,t,r)=>{if(e?.auto)return t;switch(e?.align){case"center":return"center";case"left":return"rtl"===r?"flex-end":"flex-start";case"right":return"rtl"===r?"flex-start":"flex-end";default:return t}},BK=(e,t)=>{let{textAlign:r}=t.getDimensionInfo(e.dimensionInfoIndex)??{};return e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex&&({labelTextAlign:r}=t.visibleMeasureInfo.at(e.visibleMeasureInfoIndex)??{}),r?.auto||void 0===r?"left":r.align},GK={display:"flex",flexDirection:"row",alignItems:"center"},HK={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},VK=(e,t,r,n)=>t?{...HK,...e.nullValues}:r?{...GK,color:e.totalValues.color,background:n??e.totalValues.background}:{...GK,color:e.measureValues.color,background:n??e.measureValues.background},UK=(e,t,r,n,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,s={...uB,...!r&&cB(e.grid.lineClamp),...t&&{color:t},fontFamily:i,fontSize:a};if(o){const{fontWeight:t,fontStyle:r,textDecoration:n}=e.nullValues;return{...s,fontWeight:t,fontStyle:r,textDecoration:n}}if(n){const{fontWeight:t,fontStyle:r,textDecoration:n}=e.totalValues;return{...s,fontWeight:t,fontStyle:r,textDecoration:n}}const{fontWeight:l,fontStyle:u,textDecoration:c}=e.measureValues;return{...s,fontWeight:void 0===l?tB:l,fontStyle:u,textDecoration:c}},YK=({cell:e,representation:t,color:r,isTotalValueCell:n,cellHorizontalAlignment:o})=>{const{layoutService:i,styleService:a}=vH(),{isIndentModeEnabled:s}=i,l=e.isNull?i.getNullValueText():t.text,u=t.type===Hz.Image,c=t.type===Hz.Indicator,d=OY(TY(l)),p=UK(a,r,d,n,e.isNull);if(!s&&u&&!e.isNull||s&&u&&!e.isNull)return Zo.jsx($K,{isMeasureCell:!0,textStyle:p,representation:t,imageContainerHorizontalAlignment:o});const f=TY(e.isNull?t.text:e.ref.qNum);return c&&OY(f)?Zo.jsx(lK,{representation:t,cellValue:f,textStyle:p}):Zo.jsx("span",{style:{padding:4,direction:d?"ltr":void 0,...p},children:l})},KK=(e,t)=>e?.[t]?.visibleMeasureInfoIndex??0,XK="flex-start",JK=(e,t)=>e.isNull?XK:t.type===Hz.Image&&"fill"!==t.imageSize?t.resolvedImagePosition?.vertical:XK,ZK=({columnIndex:e,rowIndex:t,style:r,data:n})=>{const{env:o}=mH(),{pageInfo:i,direction:a}=pH(),{styleService:s,layoutService:l}=vH(),{attrExprInfoIndexes:u,gridSectionsData:{measureData:c,leftDimensionData:d,topDimensionData:p},visibleDimensionsInfo:{visibleLeftDimensionInfo:f,visibleTopDimensionInfo:m}}=nU(),g=(()=>{const{layoutService:{isIndentModeEnabled:e}}=vH(),{gridSectionsData:{leftDimensionData:t,topDimensionData:r},visibleDimensionsInfo:{visibleLeftDimensionInfo:n,visibleTopDimensionInfo:o}}=nU(),i=n.length,a=o.length;return h(((n,o)=>!(!r.grid.at(a-1)?.[n]?.isTotal&&!t.grid.at(e?0:i-1)?.[o]?.isTotal)),[r,t,i,a,e])})(),b=(()=>{const{gridSectionsData:{topDimensionData:e},visibleDimensionsInfo:{visibleTopDimensionInfo:t}}=nU(),r=t.length;return h((t=>{const n=e.grid.at(r-1)?.[t];return LY(n,e.totalDividerIndex)}),[e,r])})(),v=(()=>{const{layoutService:{isIndentModeEnabled:e}}=vH(),{gridSectionsData:{leftDimensionData:t},visibleDimensionsInfo:{visibleLeftDimensionInfo:r}}=nU(),n=r.length;return h((r=>{const o=e?0:n-1,i=t.grid.at(o)?.[r];return LY(i,t.totalDividerIndex,e)}),[t,e,n])})(),{showLastBorder:y}=n,x=p.grid.at(m.length-1),S=d.grid.at(f.length-1),{background:w}=s.measureValues,C=c[t]?.[e],E=t===i.rowsOnCurrentPage-1,R=e===l.size.x-1;if(!C)return Zo.jsx(PY,{style:{...r,background:w},isLastRow:E,isLastColumn:R,showLastBorder:y,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const M=l.hasPseudoDimOnLeft?KK(S,t):KK(x,e),A=l.visibleMeasureInfo[M],I=TV({cell:C.ref,representationProperties:A.representation,attrExprInfoIndex:u.measures[M],env:o,direction:a,conditionalColoring:A.conditionalColoring,enabledFeatures:{[Hz.Image]:!0,[Hz.Indicator]:!0}}),k=!C.isNull&&g(e,t),L=C.isNull?l.getNullValueText():I.text,P=!C.isNull||!Number.isNaN(+L),D=qV(u.measures[M],C.ref),_=((e,t,r,n,o)=>{const{textAlign:i}=t,a=n?"flex-end":"center";return e.isNull||r.type!==Hz.Image?WK(i,a,o):r.resolvedImagePosition?.horizontal??"center"})(C,A,I,P,a),O={...VK(s,C.isNull,k,D.background),...pB(E,R,s.grid.border,a,y),...hB({bottomDivider:v(t),rightDivider:b(e),borderColor:s.grid.divider}),...lB,padding:"0px 4px",display:"flex",justifyContent:_};return Zo.jsx("div",{className:oN,title:L,style:{...O,...r},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:Zo.jsx(DY,{width:_Y(I),verticalAlign:JK(C,I),children:Zo.jsx(YK,{cell:C,representation:I,isTotalValueCell:k,color:D.color,cellHorizontalAlignment:_})})})};var QK=r.memo(ZK,mY);const eX=(e,t)=>t.list[e]?.id??e.toString(),tX=({columnIndex:e,rowIndex:t,data:r})=>r.grid[t]?.[e]?.id??`${t}-${e}`,rX=e=>({...sB,overflow:"hidden",boxSizing:"content-box",borderWidth:"rtl"===e?"1px 1px 0px 0px":"1px 0px 0px 1px"}),nX=({dataGridRef:e,height:t,rowHightCallback:r,width:n,showLastBorder:o,getRightGridColumnWidth:i,verticalScrollDirection:a,horizontalScrollDirection:s})=>{const{pageInfo:l,direction:u}=pH(),{layoutService:c,styleService:{grid:{divider:d},contentCellHeight:p}}=vH(),{dataModel:f,gridSectionsData:{measureData:g}}=nU(),b={...rX(u),borderColor:d,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},v=(({verticalScrollDirection:e,horizontalScrollDirection:t})=>{const{pageInfo:r}=pH(),{downloadService:n,viewService:o,layoutService:i}=vH(),{dataModel:a,gridSectionsData:{leftDimensionData:s,topDimensionData:l,measureData:u}}=nU(),c=s.columnCount,d=l.rowCount;return h((async({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:p,overscanRowStopIndex:f})=>{o.gridColumnStartIndex=s,o.gridRowStartIndex=p,o.gridWidth=l-s+1,o.gridHeight=f-p+1;const h=o.gridWidth+c+(t.current===t$.None?0:gY),m=o.gridHeight+d+(e.current===t$.None?0:gY);let g=IY;m*h>1500&&(g=kY),g(a,i,u,r,o,e,t,n)}),[o,i,a,u,e,t,r,c,d,n])})({verticalScrollDirection:a,horizontalScrollDirection:s});return zB((()=>{e.current&&e.current.resetAfterColumnIndex(0,!1)}),[e,f,g]),m((()=>{e.current&&e.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[n,t,e,p,u]),0===c.size.x?null:Zo.jsx(nY,{"data-section-id":"DATA_GRID",ref:e,style:b,columnCount:c.size.x,columnWidth:i,height:t,rowCount:l.rowsOnCurrentPage,rowHeight:r,width:n,itemData:{showLastBorder:o,grid:g},onItemsRendered:v,estimatedRowHeight:r(),estimatedColumnWidth:i(),itemKey:tX,direction:u,children:QK})};var oX=y(nX);const iX=x(((e,t)=>Zo.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:[Zo.jsx("path",{d:"M13 7H8zV4.982C13 2.23 10.761 0 8 0S3 2.23 3 4.982V7h.75H3h1.5V5.332C4.5 3.216 5.549 1.5 8 1.5s3.5 1.716 3.5 3.832V7h.75H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H3z"}),Zo.jsx("use",{fillRule:"evenodd"})]}))),aX=e=>{const[t,r]=b(!1);return zB((()=>{r(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:r}},sX=()=>{const[e,t]=b(!1),{dataModel:r}=nU(),{interactions:n}=mH(),{isAdjustingWidth:o,setIsAdjustingWidth:i}=aX([r]);return{open:e,setOpen:t,handleOpenMenu:e=>{!n.active||dK(e)||o||t(!0)},setIsAdjustingWidth:i}};function lX(e,t){const r=t.expressionColor?.background??e.dimensionValues.background,n=t.isLeftColumn?e.header.background:r,o=n===oB.Transparent?p$.WHITE:n,i=mF(e.grid.border),a=mF(o);return a.isInvalid()||i.isInvalid()||1===i.a?e.grid.border:function(e,t,r){return mF(e.r+(t.r-e.r)*r,e.g+(t.g-e.g)*r,e.b+(t.b-e.b)*r,e.a+(t.a-e.a)*r)}(a,i,i.a).getRGB()}const uX=({cellInfo:e,columnWidth:t,isLastColumn:r,overrideLeftGridWidth:n,setIsAdjustingWidth:o,shouldApplyIndentModeColumnWidth:i,tableWidth:a})=>{const{direction:s}=pH(),{interactions:l,translator:u}=mH(),{isActive:c}=bK(),{dataModel:d}=nU(),{styleService:p}=vH(),[,f]=b({});if(!(e.canBeResized&&!!l.active&&!c))return null;const h=lX(p,e);return Zo.jsx(VB,{isPivot:!0,columnWidth:t,isLastColumn:r,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:h,updateWidthCallback:t=>{f({}),n&&void 0!==e.colIdx&&n(t,e.colIdx)},confirmWidthCallback:t=>{i?d.applyIndentModeColumnWidth({...t,pixels:Math.min((a??0)*sU,t.pixels??0)}):d.applyColumnWidth(t,e)},setIsAdjustingWidth:o,isLeftColumn:e.isLeftColumn,accessibilityRelatedArgs:{translator:u,columnLabel:e.label??""},direction:s})},cX=CO(hT,{shouldForwardProp:e=>!["interactions","hoverBackground","background","shouldShowMenuIcon","isDimension"].includes(e)})((({interactions:e,background:t,hoverBackground:r,shouldShowMenuIcon:n,isDimension:o})=>({pointerEvents:o?"all":"none",position:"relative",display:"grid",gridTemplateColumns:n?"1fr 12px":"1fr",gap:8,alignItems:"center",cursor:e.active?"pointer":"default",background:t,"&&:hover":{background:e.active&&o?r:t}}))),dX=CO("div",{shouldForwardProp:e=>!["direction"].includes(e)})((({direction:e})=>({position:"absolute",left:"rtl"!==e?0:void 0,bottom:0}))),pX=CO("div",{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({...aB,justifyContent:e??aB.justifyContent,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}))),fX=CO("div")((()=>({...aB}))),hX=CO("div",{shouldForwardProp:e=>!["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","justifyContent"].includes(e)})((({fontSize:e,fontFamily:t,fontWeight:r,fontStyle:n,textDecoration:o,justifyContent:i})=>({display:"flex",justifyContent:i,alignSelf:"center",flexGrow:1,maxWidth:"100%",fontWeight:r,fontSize:e,fontFamily:t,fontStyle:n,textDecoration:o}))),mX=CO(Fq)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),gX=CO(Gq,{shouldForwardProp:e=>!["isActive"].includes(e)})((({theme:e,isActive:t})=>({width:220,maxHeight:32,borderRadius:e.spacing(.5),margin:e.spacing(.25,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between",position:"relative",overflow:"hidden ",boxSizing:"border-box",background:t?"rgba(0, 0, 0, 0.05)":"transparent","&:hover":{".indent-mode-dropdown-more":{opacity:1}}}))),bX=CO("span")({textOverflow:"ellipsis",overflow:"hidden"}),vX=CO("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:iU,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"}))),yX=CO("span",{shouldForwardProp:e=>!["padding","alignSelf"].includes(e)})((({padding:e,alignSelf:t})=>({padding:e,alignSelf:t,position:"sticky",top:0})));let xX=function(e){return e.Expand="Expand",e.Collapse="Collapse",e}({});const SX=(e,t)=>({qExcludeList:t===xX.Expand,qPos:{qDimName:e,qElemNo:[]}}),wX=`${SH}/qExpansionState`,CX=({model:e,qExpansionState:t,qEffectiveDimensionName:r,action:n})=>async()=>{const o=(({qEffectiveDimensionName:e,oldExpansionState:t,action:r})=>{const n=t?.findIndex((t=>t.qPos?.qDimName===e));return{expansionData:SX(e,r),index:n}})({qEffectiveDimensionName:r,oldExpansionState:t,action:n});await(async({model:e,newExpansionState:t,errorMsg:r})=>{const{index:n,expansionData:o}=t;try{let t,r=wX,i="Add";void 0===n?t=JSON.stringify([o]):-1===n?(r=`${wX}/-`,t=JSON.stringify(o)):(r=`${wX}/${n}`,i="Replace",t=JSON.stringify(o)),await e.applyPatches([{qPath:r,qOp:i,qValue:t}],!0)}catch(e){console.error(r,e)}})({model:e,newExpansionState:o,errorMsg:`Failed to ${n} dimension`})},EX=({model:e,effectivePropertiesService:t,cell:r})=>{if(void 0===r.qEffectiveDimensionName)return;const n={model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r.qEffectiveDimensionName};return{expandCallback:CX({...n,action:xX.Expand}),collapseCallback:CX({...n,action:xX.Collapse}),alwaysFullyExpanded:t.qAlwaysFullyExpanded}},RX={[PG.Sorting]:!0,[PG.Selections]:!0,[PG.Searching]:!0},MX=({cell:e,style:t,isFirstColumn:r,isLastColumn:n,isLastRow:o,changeSortOrder:i,iconsVisibilityStatus:a,columnWidth:s,overrideLeftGridWidth:l,shouldApplyIndentModeColumnWidth:c,tableWidth:d})=>{const p=u(null),{styleService:f,layoutService:h,effectivePropertiesService:m}=vH(),{app:g,interactions:b,embed:v,translator:y,model:x}=mH(),{fontSize:S,fontFamily:w,fontStyle:C,fontWeight:E,textDecoration:R,color:M,background:A,hoverBackground:I,activeBackground:k}=f.header,L=u(null),{shouldShowLockIcon:P,shouldShowMenuIcon:D}=a,{open:_,setOpen:O,handleOpenMenu:T,setIsAdjustingWidth:q}=sX(),{direction:j}=pH(),N={sortFromMenu:async(t,r)=>{t.stopPropagation(),await i(e,r)}},F={embed:v,listboxRef:p,sortCriteria:h.searchSortFromDimension&&e.isDim?m.getSortCriteriaForDimension(e.dimensionInfoIndex):void 0},z={app:g,qStateName:h.layout.qStateName},{labelTextAlign:$}=h.getDimensionInfo(e.dimensionInfoIndex)??{},W=WK($,"flex-start",j);return Zo.jsxs(cX,{className:oN,title:e.label,interactions:b,background:_?k:A,hoverBackground:I,shouldShowMenuIcon:D,isDimension:e.isDim,style:{...t,...lB,...fB(e,o,r,n,f.grid.border,j),color:M},"data-testid":"title-cell",onClick:T,children:[Zo.jsxs(pX,{children:[P?Zo.jsx(fX,{children:Zo.jsx(iX,{height:12})}):null,Zo.jsx(hX,{fontFamily:w,fontSize:S,fontStyle:C,fontWeight:E,textDecoration:R,justifyContent:W,children:Zo.jsx("span",{style:uB,children:e.label})})]}),e.isDim?Zo.jsxs(Zo.Fragment,{children:[Zo.jsx(OG,{headerData:e,translator:y,anchorRef:L,open:_,setOpen:O,interactions:b,menuAvailabilityFlags:RX,sortRelatedArgs:N,searchRelatedArgs:F,selectionRelatedArgs:z,expandOrCollapseArgs:EX({model:x,effectivePropertiesService:m,cell:e}),shouldShowMenuIcon:D,model:x&&"setActiveField"in x?x:void 0,direction:j,isAccessibleHeader:!0}),Zo.jsx(dX,{ref:p,direction:j}),Zo.jsx(dX,{ref:L,direction:j})]}):null,Zo.jsx(uX,{cellInfo:{...e,isLeftColumn:!0},columnWidth:s,isLastColumn:n,overrideLeftGridWidth:l,setIsAdjustingWidth:q,shouldApplyIndentModeColumnWidth:c,tableWidth:d})]})},AX=({rowSpan:e,columnSpan:t})=>{const{styleService:r}=vH(),{direction:n}=pH();return e>0&&t>0?Zo.jsx("div",{style:{...sB,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"rtl"===n?"0px 0px 0px 1px":"0px 1px 0px 0px",borderColor:r.grid.border,background:r.grid.background},"data-testid":"empty-header-cell"}):null},IX=x(((e,t)=>Zo.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:Zo.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})}))),kX=x(((e,t)=>Zo.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:[Zo.jsx("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),Zo.jsx("use",{fillRule:"evenodd"})]}))),LX=({tableWidth:e,leftGridWidth:t,overrideLeftGridWidth:r})=>{const{direction:n}=pH(),{styleService:o}=vH(),{interactions:i,translator:a}=mH(),{isActive:s}=bK(),{dataModel:l}=nU(),{setIsAdjustingWidth:u}=aX([l]);if(!(!!i.active&&!s))return null;const c=lX(o,{isLeftColumn:!0});return Zo.jsx(VB,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:c,columnWidth:t,updateWidthCallback:t=>{r(Math.min(t,e*sU))},confirmWidthCallback:n=>{if(n.type===uN.FitToContent)return void l.applyIndentModeColumnWidth({type:uN.Auto});const o=Math.min(n.pixels??t,e*sU);r(o),l.applyIndentModeColumnWidth({type:uN.Pixels,pixels:o})},setIsAdjustingWidth:u,accessibilityRelatedArgs:{translator:a,columnLabel:a.get("SNPivotTable.IndentMode.Rows")},direction:n})},PX=x(((e,t)=>Zo.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:Zo.jsx("path",{d:"M3 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0m6 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0m5 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})}))),DX=({cell:e,changeSortOrder:t})=>{const r=u(null),n=u(null),{app:o,interactions:i,embed:a,translator:s,model:l}=mH(),{layoutService:c,effectivePropertiesService:d}=vH(),{open:p,setOpen:f,handleOpenMenu:h}=sX();return Zo.jsxs(gX,{onClick:h,isActive:p,children:[Zo.jsx(bX,{children:e.label}),Zo.jsxs(vX,{className:"indent-mode-dropdown-more",visible:p,children:[Zo.jsx(PX,{}),e.isDim?Zo.jsxs(Zo.Fragment,{children:[Zo.jsx(OG,{headerData:e,translator:s,anchorRef:r,open:p,setOpen:f,interactions:i,menuAvailabilityFlags:RX,sortRelatedArgs:{sortFromMenu:async(r,n)=>{r.stopPropagation(),await t(e,n)}},searchRelatedArgs:{embed:a,listboxRef:n},selectionRelatedArgs:{app:o,qStateName:c.layout.qStateName},expandOrCollapseArgs:EX({model:l,effectivePropertiesService:d,cell:e}),shouldShowMenuIcon:!1,model:l&&"setActiveField"in l?l:void 0}),Zo.jsx(dX,{ref:n}),Zo.jsx(dX,{ref:r})]}):null]})]})},_X=({idx:e,menu:t,menuItems:r,isOnlyOneRow:n})=>{const o=r.at(-1)?.id===CH,i=e+1<r.length&&r[e+1]?.id===CH;return!(n&&o&&i)&&(t?.id!==CH&&e<r.length-1)},OX=({menuItems:e,changeSortOrder:t,overrideLeftGridWidth:r,leftGridWidth:n,tableWidth:o})=>{const{styleService:i}=vH(),{interactions:a,translator:s}=mH(),{dataModel:l,gridSectionsData:{headersData:c}}=nU(),[d,p]=b(!1),f=u(null),{headerCellHeight:h}=i,{color:m,background:g,hoverBackground:v,activeBackground:y,fontFamily:x,fontSize:S,fontStyle:w,fontWeight:C,textDecoration:E}=i.header,{isAdjustingWidth:R}=aX([l]),M=e=>{e.stopPropagation()},A={height:h,gridColumn:`1 / span ${c.size.x}`,gridRow:c.size.y,zIndex:c.size.x-0};return Zo.jsxs(cX,{isDimension:!0,background:d?y:g,interactions:a,hoverBackground:v,style:{...A,...lB,color:m},onClick:e=>{!a.active||dK(e)||R||p(!d)},"data-testid":"indentModeHeaderCellWrapper",children:[Zo.jsxs(pX,{justifyContent:"flex-start",children:[Zo.jsx(hX,{fontFamily:x,fontSize:S,fontStyle:w,fontWeight:C,textDecoration:E,justifyContent:"flex-start",children:Zo.jsx("span",{style:uB,children:s.get("SNPivotTable.IndentMode.Rows")})}),d?Zo.jsx(kX,{}):Zo.jsx(IX,{}),Zo.jsx(dX,{ref:f})]}),Zo.jsx(mX,{open:d,anchorEl:f.current,disableEnforceFocus:!0,children:e.map(((r,n)=>[r&&r.id!==CH&&Zo.jsx("li",{role:"presentation",onClick:M,onKeyDown:M,children:Zo.jsx(DX,{cell:r,changeSortOrder:t})}),_X({idx:n,menu:r,menuItems:e,isOnlyOneRow:1===c.size.y})&&Zo.jsx(JB,{"data-testid":"group-divider",variant:"middle"})]))}),Zo.jsx(LX,{tableWidth:o,leftGridWidth:n,overrideLeftGridWidth:r})]})},TX=({layoutService:e,headersData:t,topRowIndex:r})=>e.isIndentModeEnabled&&t.size.x>1&&r+1===t.size.y,qX={display:"grid",width:"fit-content"},jX=({tableWidth:e,leftGridWidth:t,columnWidths:r,rowHight:n,changeSortOrder:o,getHeaderCellsIconsVisibilityStatus:i,height:a,overrideLeftGridWidth:s})=>{const{layoutService:l}=vH(),{gridSectionsData:{headersData:u}}=nU();return Zo.jsxs("div",{"data-testid":"HEADER_GRID",style:{...qX,gridTemplateColumns:r.map((e=>`${e}px`)).join(" "),gridTemplateRows:u.data.map((()=>`${n}px`)).join(" "),height:a},children:[u.size.y>1&&Zo.jsx(AX,{columnSpan:u.size.x-1,rowSpan:u.size.y-1}),u.data.map(((a,c)=>{let d=[];if(TX({layoutService:l,headersData:u,topRowIndex:c})){const r=a.at(0);return Array.isArray(r)&&d.push(Zo.jsx(OX,{menuItems:r,changeSortOrder:o,overrideLeftGridWidth:s,leftGridWidth:t,tableWidth:e},r.at(0)?.id)),d}return d=a.reduce(((t,a,d)=>{if(a&&!Array.isArray(a)){const p=i(d,a.isLocked,a.label),f=l.isIndentModeEnabled&&1===u.size.x;t.push(Zo.jsx(MX,{style:{width:r[d],height:n,gridColumn:l.isIndentModeEnabled&&u.size.x>1?2:d+1,gridRow:c+1,zIndex:u.size.x-d},isLastRow:c===u.size.y-1,isFirstColumn:0===d,isLastColumn:d===u.size.x-1,changeSortOrder:o,cell:a,iconsVisibilityStatus:p,columnWidth:r[d],overrideLeftGridWidth:s,shouldApplyIndentModeColumnWidth:f,tableWidth:e},a.id))}return t}),[]),d}))]})};var NX=y(jX);const FX=(e,t,r,n)=>{const{layoutService:o}=vH();m((()=>{e.current?.forEach((e=>e?.resetAfterIndex(0,!0)))}),[e,t,r,n,o])},zX=(e,t)=>{zB((()=>{e.current?.forEach((e=>e?.resetAfterIndex(0,!1)))}),[e,t])},$X=(e,t)=>{const{isLast:r,list:n,listValues:o}=t;return r?n[e]:o[e]},WX=(e,t,r,n,o)=>{if(o)return;const i=e.representation,a=uU({isLeftColumn:r,layoutService:t,representation:i}),s=r?"flex-start":"center",l=e.representation.resolvedImagePosition?.horizontal;if(e.representation.type===Hz.Image)return a&&l&&"center"!==l&&"rtl"===n?aK(l):l??s;if(e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex){const{labelTextAlign:r}=t.visibleMeasureInfo[e.visibleMeasureInfoIndex]??{};return WK(r,s,n)}const{textAlign:u}=t.getDimensionInfo(e.dimensionInfoIndex)??{};return WK(u,s,n)},BX=()=>{},GX=({children:e,reactWindowStyle:t,cell:r,data:n,showTotalCellDivider:o,isLastRow:i,isLastColumn:a,isLeftColumn:s,isCellSelected:l,isAdjustingWidth:u,index:c})=>{const{styleService:d,layoutService:p}=vH(),{interactions:f}=mH(),{direction:h}=pH(),{isLocked:m,createMouseDownHandler:g,createMouseOverHandler:b,createPointerUpHandler:v}=bK(),{showLastBorder:y}=n,x=m(r)||r.isLockedByDimension,S=!(x||!f.active||!f.select||r.isEmpty||r.isNull||r.isPseudoDimension||r.isTotal||u),w=S?g(c,(e=>$X(e,n))):void 0,C=S?b(c):void 0,E=S?v(c,(e=>$X(e,n))):void 0,R=uU({isLeftColumn:s,layoutService:p,representation:r.representation});return Zo.jsx("div",{className:oN,title:f.passive?r.representation.text:void 0,style:{...t,...pB(i,a,d.grid.border,h,y),...hB({bottomDivider:o&&s,rightDivider:o&&!s,borderColor:d.grid.divider}),...lB,padding:"rtl"===h?"0px 0px 0px 4px":"0px 4px",cursor:kK(S),background:EK({styleService:d,isCellSelected:l,cell:r,isCellLocked:x}),zIndex:s?void 0:p.size.x-r.x,justifyContent:WX(r,p,s,h,R),display:"flex",...p.isIndentModeEnabled&&s&&{["rtl"===h?"paddingRight":"paddingLeft"]:Math.max(4,24*(r.indentLevel??0))},textAlign:BK(r,p)},"aria-hidden":"true",onMouseDown:w,onMouseOver:C,onPointerUp:E,onKeyUp:BX,role:"button",tabIndex:-1,"data-testid":"dimension-cell","data-x":r.x,"data-page-x":r.pageX,"data-y":r.y,"data-page-y":r.pageY,"data-cell-type":r.ref.qType,"data-dimension-info-index":r.dimensionInfoIndex,children:e})},HX=e=>{e.stopPropagation()},VX=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:HX,color:p$.LINK,style:{pointerEvents:r.active?"auto":"none",color:n??void 0,opacity:r.active&&r.passive||n?void 0:.4}}),UX=({href:e,text:t,interactions:r,color:n})=>Zo.jsx(cd,{...VX({href:e,text:t,interactions:r,color:n}),children:t}),YX=U();YX.use(V),YX.renderer.prio(["canvas"]);const KX=(e,t)=>e&&"center"!==e&&"rtl"===t?aK(e):e,XX=({cell:e,representation:t,textStyle:r,imageContainerHorizontalAlignment:n})=>{const{imageBox:o}=t,{styleService:{grid:{lineClamp:i}}}=vH(),{direction:a}=pH();return Zo.jsxs("div",{style:{display:"grid",gridTemplateColumns:`${o?.width??24}px 1fr`,maxHeight:"fit-content",alignItems:"center",justifyContent:"flex-start",boxSizing:"border-box"},children:[Zo.jsx("div",{"data-key":"image-container--partial-image",style:{display:"flex",flexDirection:"column",justifyContent:xK(e),alignItems:KX(n,a),overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",width:o?.width??24,height:"100%"},children:Zo.jsx(zK,{representation:t,textStyle:r})}),Zo.jsx(yX,{padding:4/(i<=2?2:1),alignSelf:xK(e,!0),children:!!t.labelStructure&&NK(t.labelStructure)})]})},JX=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`,ZX=({href:e,text:t,labelStructure:r,interactions:n,color:o})=>Zo.jsxs("span",{children:[Zo.jsx(YT,{...VX({href:e,text:t,interactions:n,color:o}),children:r?.maskedValue?r.maskedValue:r?.originalValue}),!!r&&JX(r)]}),QX=({children:e,textStyle:t,shouldEnableStickyText:r})=>Zo.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box",...r&&{alignSelf:"flex-start",position:"sticky",top:0}},children:e}),eJ=({cell:e,isCellSelected:t,isLeftColumn:r})=>{const{direction:n}=pH(),{isActive:o}=bK(),{layoutService:i,styleService:a}=vH(),{interactions:s}=mH(),l=r&&i.isIndentModeEnabled;let u=r&&!e.isNull?(e=>{const{representation:{text:t,labelStructure:r}}=e;if(!r||!r.originalValue)return t;const{originalValue:n,maskedValue:o,suffix:i,delimeter:a}=r;return`${0!==o.length?o:n} ${i?a:""} ${i}`.trim()})(e):e.representation.text;if(e.isEmpty)return null;const c=(({cell:e,styleService:t,isCellSelected:r,isLeftColumn:n})=>({...uB,...cB(n?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:RK({cell:e,styleService:t,isCellSelected:r}),fontWeight:MK({cell:e,styleService:t}),fontStyle:AK({cell:e,styleService:t}),textDecoration:IK({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:a,isCellSelected:t,isLeftColumn:r});if(e.representation.type===Hz.Image&&!e.isTotal&&!e.isNull){const{labelStructure:t}=e.representation,o=r&&t&&t.suffix?XX:$K;return Zo.jsx(o,{cell:e,representation:e.representation,leafCount:e.leafCount,textStyle:c,isLeftColumn:r,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand,imageContainerHorizontalAlignment:WX(e,i,r,n)})}if(e.representation.type===Hz.Link&&!o&&!e.isTotal){const t=r&&e.representation.labelStructure?ZX:UX;u=Zo.jsx(t,{text:e.representation.text,labelStructure:e.representation.labelStructure,href:e.representation.url,interactions:s,color:e.expressionColor.color})}return Zo.jsx(QX,{shouldEnableStickyText:l,textStyle:{...c,...e.representation.type===Hz.Image&&e.isNull?{alignSelf:xK(e)}:{}},children:u})},tJ=({index:e,style:t,data:r})=>{const{styleService:n,layoutService:o}=vH(),{isSelected:i}=bK(),{isLeftColumn:a=!1,showLastBorder:s,itemCount:l,isLast:u,totalDividerIndex:c}=r,{isAdjustingWidth:d,setIsAdjustingWidth:p}=aX([r]),f=$X(e,r),h=a?e===l-1:u,m=a?u:e===l-1,g=LY(f,c,o.isIndentModeEnabled);if(void 0===f){const{background:r}=n.dimensionValues;return Zo.jsx(PY,{style:{...t,background:r},index:e,isLastRow:h,isLastColumn:m,showLastBorder:s,isLeftColumn:a,showTotalCellDivider:g})}const b=i(f);return Zo.jsxs(GX,{reactWindowStyle:t,isLeftColumn:a,isLastRow:h,isLastColumn:m,isCellSelected:b,showTotalCellDivider:g,cell:f,data:r,isAdjustingWidth:d,index:e,children:[Zo.jsxs(DY,{verticalAlign:xK(f),width:_Y(f.representation),right:f.isLeftColumn?void 0:4,isLeftColumn:a,children:[Zo.jsx(DK,{isLeftColumn:a,isCellSelected:b,cell:f}),Zo.jsx(eJ,{isLeftColumn:a,isCellSelected:b,cell:f})]}),Zo.jsx(uX,{cellInfo:{...f,columnWidthLocation:f.isPseudoDimension?Zz.Measures:Zz.Dimension},columnWidth:t.width,isLastColumn:m,setIsAdjustingWidth:p})]})};var rJ=r.memo(tJ,mY);const nJ=({list:e,listValues:t,isLastRow:r,getRightGridColumnWidth:n})=>o=>{const i=r?e[o]:t.at(o);return i&&0===o&&i.x>0?(i.leafCount+i.x+i.distanceToNextCell)*n():!r&&i?(i.leafCount+i.distanceToNextCell)*n():n(i?.x??o)},oJ=(e,t,r,n)=>{const o=Object.values(e);let i,a=o.length;return n&&(a=r,i=t/a),{itemCount:a,estimatedItemSize:i,listValues:o}},iJ=(e,t)=>r=>{e.current&&(e.current[t]=r)},aJ={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...sB},sJ={overflow:"hidden",willChange:"auto",flexShrink:0},lJ=({leftGridRef:e,width:t,height:r,columnWidths:n,showLastBorder:o})=>{const{pageInfo:i,direction:a}=pH(),{layoutService:s,styleService:{contentCellHeight:l,grid:{divider:u}}}=vH(),{qSize:c}=s.layout.qHyperCube,{gridSectionsData:{leftDimensionData:d},visibleDimensionsInfo:{visibleLeftDimensionInfo:p}}=nU();zX(e,d),FX(e,t,r,l);const f=i.rowsOnCurrentPage*l,h={...aJ,borderColor:u,width:n.reduce(((e,t)=>e+t),0)};return Zo.jsx("div",{style:h,"data-section-id":"LEFT_GRID",children:d.grid.map(((t,u)=>{const h=u===d.columnCount-1,m=LH(p[u]),{itemCount:g,estimatedItemSize:b,listValues:v}=oJ(t,f,i.rowsOnCurrentPage,h),y=s.isIndentModeEnabled?()=>l:((e,t,r,n,o)=>i=>{const a=n?e[i]:t.at(i);if(a&&0===i&&a.pageY>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*r;if(a&&a.leafCount>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*r}return r})(t,v,l,h,c.qcy);return Zo.jsx(dY,{ref:iJ(e,u),style:{...sJ,flexGrow:h?1:0,direction:a},height:r,width:n[u],itemCount:g,itemSize:y,layout:"vertical",itemData:{list:t,isLeftColumn:!0,isLast:h,itemCount:g,showLastBorder:o,listValues:v,totalDividerIndex:d.totalDividerIndex},itemKey:eX,estimatedItemSize:b,children:rJ},m)}))})};var uJ=y(lJ);const cJ={overflow:"hidden",willChange:"auto"},dJ=e=>({...sB,borderWidth:"rtl"===e?"0px 1px 0px 0px":"0px 0px 0px 1px"}),pJ=({topGridRef:e,rowHightCallback:t,width:r,height:n,showLastBorder:o,getRightGridColumnWidth:i})=>{const{direction:a}=pH(),{layoutService:s,styleService:{grid:{divider:l},headerCellHeight:u}}=vH(),{gridSectionsData:{headersData:c,topDimensionData:d}}=nU(),p={...dJ(a),borderColor:l,height:n};zX(e,d),FX(e,r,n,u);const f=s.size.x*i();return 0===d.rowCount?Zo.jsx("div",{style:{width:r,height:n,...dJ(a)}}):Zo.jsx("div",{style:p,"data-section-id":"TOP_GRID",children:d.grid.map(((n,l)=>{const u=l===d.rowCount-1,{itemCount:p,estimatedItemSize:h,listValues:m}=oJ(n,f,s.size.x,u),g=(({layoutService:e,headersData:t,topRowIndex:r})=>{const n=t.data.at(r);if(void 0===n)return;const o=t.size.x-1,i=TX({layoutService:e,headersData:t,topRowIndex:r})?0:o,a=n.at(i),s=Array.isArray(a)?a.at(o):a;return s?e.getDimensionInfo(s.dimensionInfoIndex):void 0})({layoutService:s,headersData:c,topRowIndex:l}),b=g?LH(g):`empty ${l}`;return Zo.jsx(dY,{ref:iJ(e,l),style:cJ,height:t(),width:r,itemCount:p,itemSize:nJ({list:n,listValues:m,isLastRow:u,getRightGridColumnWidth:i}),layout:"horizontal",itemData:{list:n,isLast:u,itemCount:p,showLastBorder:o,listValues:m,totalDividerIndex:d.totalDividerIndex},itemKey:eX,estimatedItemSize:h,direction:a,children:rJ},b)}))})};var fJ=y(pJ);const hJ=()=>{const{styleService:{headerCellHeight:e,contentCellHeight:t}}=vH(),r=LU(),n=(()=>{const{model:e}=mH(),t=h((async(t,r)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:n,dimensionInfoIndex:o,sortDirection:i}=t,a=[];if(r===i)return!1;a.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!n).toString()});try{return await e.applyPatches(a,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}),[e]);return t})(),{gridSectionsWrapperRefs:{headerGridWrapperRef:o,topGridWrapperRef:i,leftGridWrapperRef:a,dataGridWrapperRef:s},gridRefs:{topGridRef:l,leftGridRef:u,dataGridRef:c},scrollDirectionRefs:{verticalScrollDirection:d,horizontalScrollDirection:f},scrollbarsDimensions:{verticalScrollbarWidth:m,horizontalScrollbarHeight:g,resetHorizontalScrollbarHeight:b}}=kU(),{leftGridWidth:v,leftGridFullWidth:y,leftGridColumnWidths:x,rightGridFullWidth:S,showLastRightBorder:w,getRightGridColumnWidth:C,getHeaderCellsIconsVisibilityStatus:E,overrideLeftGridWidth:R}=function({tableWidth:e,verticalScrollbarWidth:t,resetHorizontalScrollbarHeight:r}){const{layoutService:n,styleService:o}=vH(),{gridSectionsData:{headersData:i}}=nU(),{measureText:a}=qB(o.header),s=SU({tableWidth:e}),l=wU({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:s.leftGridWidth}),u=s.leftGridWidth+l.rightGridFullWidth+1<e,c=h(((e,t,r="")=>{let o=e;n.isIndentModeEnabled&&(o=1,1===i.size.x&&(o=0));const l=s.leftGridColumnWidths[o];let u=!1,c=!1,d=a(r)+aU;return t&&d+iU<=l&&(c=!0,d+=iU),d+iU<=l&&(u=!0),{shouldShowMenuIcon:u,shouldShowLockIcon:c}}),[s.leftGridColumnWidths,a,n.isIndentModeEnabled,i.size.x]);return p((()=>{const e=s.leftGridWidth===s.leftGridFullWidth,t=l.rightGridWidth===l.rightGridFullWidth;e&&t&&r()}),[r,s.leftGridWidth,s.leftGridFullWidth,l.rightGridWidth,l.rightGridFullWidth]),{...s,...l,showLastRightBorder:u,getHeaderCellsIconsVisibilityStatus:c}}({tableWidth:r.width,verticalScrollbarWidth:m,resetHorizontalScrollbarHeight:b}),{gridScaffoldDimensions:M,headerGridDims:A,topGridDims:I,leftGridDims:k,dataGridDims:L,metadata:{everyThingFitsInTableRectHeight:P,scrollbarsVisibilityStatus:D}}=(({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:r,leftGridOriginalWidth:n,rightGridOriginalWidth:o},scrollBarsDimensions:{verticalScrollbarWidth:i,horizontalScrollbarHeight:a}})=>{const s=LU(),{pageInfo:l}=pH(),{gridSectionsData:{headersData:u,topDimensionData:c}}=nU(),d=Math.min(s.height*sU,Math.max(s.height*sU-25,s.height-t-a)),p=s.width*sU,f=l.rowsOnCurrentPage*t,h=Math.max(u.size.y,c.rowCount,1),m=e*h,g=e*h,b=Math.min(p,r),v=s.width-p,y=Math.max(v,s.width-b),x=Math.min(d,m,g),{availableHeight:S,everyThingFitsInTableRectHeight:w,everyThingFitsInTableRectWidth:C}=((e,t,r)=>{const n=t+1+r+i<=s.width,o=e+1+f+a,l=o-s.height<a||o<=s.height;return{availableHeight:l?o:s.height,everyThingFitsInTableRectHeight:l,everyThingFitsInTableRectWidth:n}})(x,b,y),E=S-d,R=Math.max(E,S-x),M=Math.min(R,f),A=Math.min(R,f),I=m+1+f,{visibilityStatus:k,metadata:{hasLeftGridOverflowX:L,hasDataGridOverflowX:P}}=(e=>{const{gridScaffold:{X_AXIS:{leftSectionWidth:t,rightSectionWidth:r},Y_AXIS:{topSectionHeight:n,bottomSectionHeight:o}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:i,rightSectionFullWidth:a},Y_AXIS:{topSectionFullHeight:s,bottomSectionFullHeight:l}}}=e,u=s>n,c=i>t,d=a>r,p=l>o;return{visibilityStatus:{topGrid:{overflowX:"hidden",overflowY:u?"scroll":"hidden"},leftGrid:{overflowX:c?"scroll":"hidden",overflowY:"hidden"},dataGrid:{overflowX:d?"scroll":"hidden",overflowY:p?"scroll":"hidden"}},metadata:{hasTopGridOverflowY:u,hasLeftGridOverflowX:c,hasDataGridOverflowX:d,hasDataGridOverflowY:p}}})({gridScaffold:{X_AXIS:{leftSectionWidth:b,rightSectionWidth:y},Y_AXIS:{topSectionHeight:x,bottomSectionHeight:R}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:n,rightSectionFullWidth:o},Y_AXIS:{topSectionFullHeight:g,bottomSectionFullHeight:I-g}}});return{gridScaffoldDimensions:{width:s.width,height:s.height,gridTemplateColumns:`${b}px ${y}px`,gridTemplateRows:`${x}px ${R}px`},headerGridDims:{width:-1,height:x},topGridDims:{fullSizeWrapper:{width:o-i+(P?i:0),height:g},stickyWrapper:{width:y-1-i,height:-1},self:{width:Math.min(o,y)-(C?1:0)-i,height:g}},leftGridDims:{fullSizeWrapper:{width:b,height:I-g+(!L&&P?a:0)},stickyWrapper:{width:b,height:R-1-a},self:{width:b,height:Math.max(t,M-(w?0:a-1))}},dataGridDims:{fullSizeWrapper:{width:o-i+(P?i:0),height:I-g+(!P&&L?a:0)},stickyWrapper:{width:y-1-i,height:R-1-a},self:{width:Math.min(o,y)-(C?1:0)-i,height:Math.max(t,A-(w?0:a-1))}},metadata:{everyThingFitsInTableRectHeight:w,scrollbarsVisibilityStatus:k}}})({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:v,leftGridOriginalWidth:y,rightGridOriginalWidth:S},scrollBarsDimensions:{verticalScrollbarWidth:m,horizontalScrollbarHeight:g}}),_=h((()=>e),[e]),O=h((()=>t),[t]);return(()=>{const{downloadService:e}=vH();p((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))})(),Zo.jsxs(DU,{style:M,children:[Zo.jsx("div",{style:{overflow:"hidden"},ref:o,children:Zo.jsx(NX,{tableWidth:r.width,leftGridWidth:v,columnWidths:x,getHeaderCellsIconsVisibilityStatus:E,rowHight:e,height:A.height,changeSortOrder:n,overrideLeftGridWidth:R})}),Zo.jsx(TU,{style:D.topGrid,origin:e$.TopGrid,ref:i,children:Zo.jsx(PU,{style:I.fullSizeWrapper,children:Zo.jsx(qU,{style:I.stickyWrapper,children:Zo.jsx(fJ,{topGridRef:l,rowHightCallback:_,...I.self,showLastBorder:{right:w,bottom:!1},getRightGridColumnWidth:C})})})}),Zo.jsx(TU,{style:D.leftGrid,origin:e$.LeftGrid,ref:a,children:Zo.jsx(PU,{style:k.fullSizeWrapper,children:Zo.jsx(qU,{style:k.stickyWrapper,children:Zo.jsx(uJ,{leftGridRef:u,...k.self,columnWidths:x,showLastBorder:{right:!1,bottom:P}})})})}),Zo.jsx(TU,{style:D.dataGrid,origin:e$.DataGrid,ref:s,children:Zo.jsx(PU,{style:L.fullSizeWrapper,children:Zo.jsx(qU,{style:L.stickyWrapper,children:Zo.jsx(oX,{dataGridRef:c,rowHightCallback:O,...L.self,showLastBorder:{right:w,bottom:P},getRightGridColumnWidth:C,verticalScrollDirection:d,horizontalScrollDirection:f})})})})]})},mJ=()=>{const{keyboard:e,theme:t,interactions:r,translator:n}=mH(),{pageInfo:o,updatePageInfo:i,rect:a}=pH(),{layoutService:s}=vH(),{layout:l,hasData:u}=s;return Zo.jsxs(Zo.Fragment,{children:[u?Zo.jsx(hJ,{}):null,Zo.jsx(xH,{}),Zo.jsx(cH,{paginationNeeded:o.shouldShowPagination,handleChangePage:e=>{i({page:e})},pageInfo:o,totalRowCount:o.totalRowCount,totalColumnCount:0,totalPages:o.totalPages,keyboard:e,translator:n,theme:t,interactions:r,rect:a,layout:l})]})},gJ={WHITE:"#FFFFFF",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF",GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},bJ=12,vJ=14,yJ=16,xJ=24,SJ=3,wJ=300,CJ=400,EJ=600,RJ=700,MJ={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function AJ(e){return Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Zo.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}var IJ=function({fontSize:e="medium",children:t=null,className:r=""}={}){return Zo.jsx("i",{style:{fontSize:"small"===e?"16px":"20px",margin:"small"===e?"-2px 0":void 0,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r,children:t})};function kJ(e={}){return Zo.jsx(IJ,{...e,children:Zo.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Zo.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Zo.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function LJ(e={}){return Zo.jsx(IJ,{fontSize:"medium",...e,children:Zo.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Zo.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Zo.jsx("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"})]})})}function PJ(e){return Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Zo.jsx("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345L9.345 8Z"})})}function DJ(e={}){return Zo.jsx(IJ,{...e,children:Zo.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Zo.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Zo.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Zo.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function _J(e={}){return Zo.jsx(IJ,{fontSize:"medium",...e,children:Zo.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Zo.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Zo.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function OJ({className:e}){return Zo.jsx(IJ,{fontSize:"small",className:e,children:Zo.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Zo.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Zo.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Zo.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Zo.jsx("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),Zo.jsx("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})]})})})})})}function TJ(e={}){return Zo.jsx(IJ,{...e,children:Zo.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Zo.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Zo.jsx("rect",{stroke:gJ.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const qJ={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:SJ,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]}};var jJ=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:gJ.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:gJ.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Zo.jsx(AJ,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${gJ.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:gJ.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${gJ.MISC_FOCUS_BORDER}`,borderRadius:SJ,backgroundColor:gJ.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${gJ.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:gJ.WHITE,color:gJ.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:SJ},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${gJ.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:gJ.GREYSCALE_0_15,backgroundColor:gJ.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:gJ.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${gJ.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:gJ.GREEN_PALE},"&:active":{backgroundColor:gJ.GREEN_DARK},"&.Mui-focusVisible":{borderColor:gJ.GREEN_PALE,boxShadow:`0 0 0 3px ${YD(gJ.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:gJ.BLUE_PALE},"&:active":{backgroundColor:gJ.BLUE_DARK},"&.Mui-focusVisible":{borderColor:gJ.BLUE_PALE,boxShadow:`0 0 0 3px ${YD(gJ.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:SJ,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:gJ.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${gJ.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:gJ.GREYSCALE_0_15,backgroundColor:gJ.GREYSCALE_100_60,"&:active":{backgroundColor:gJ.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:gJ.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${gJ.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:gJ.PURPLE,"&.Mui-focusVisible":{borderColor:gJ.PURPLE,boxShadow:`0 0 0 3px ${YD(gJ.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:gJ.GREEN,"&.Mui-focusVisible":{borderColor:gJ.GREEN,boxShadow:`0 0 0 3px ${YD(gJ.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:gJ.BLUE,"&.Mui-focusVisible":{borderColor:gJ.BLUE,boxShadow:`0 0 0 3px ${YD(gJ.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:gJ.ORANGE,"&.Mui-focusVisible":{borderColor:gJ.ORANGE,boxShadow:`0 0 0 3px ${YD(gJ.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:gJ.RED,"&.Mui-focusVisible":{borderColor:gJ.RED,boxShadow:`0 0 0 3px ${YD(gJ.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:gJ.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:gJ.PURPLE_PALE},"&:active":{backgroundColor:gJ.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:gJ.PURPLE_PALE,boxShadow:`0 0 0 3px ${YD(gJ.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:gJ.GREEN_PALE},"&:active":{backgroundColor:gJ.GREEN_DARK},"&.Mui-focusVisible":{borderColor:gJ.GREEN_PALE,boxShadow:`0 0 0 3px ${YD(gJ.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:gJ.BLUE_PALE},"&:active":{backgroundColor:gJ.BLUE_DARK},"&.Mui-focusVisible":{borderColor:gJ.BLUE_PALE,boxShadow:`0 0 0 3px ${YD(gJ.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:gJ.ORANGE_PALE},"&:active":{backgroundColor:gJ.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:gJ.ORANGE_PALE,boxShadow:`0 0 0 3px ${YD(gJ.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:gJ.RED_PALE},"&:active":{backgroundColor:gJ.RED_DARK},"&.Mui-focusVisible":{borderColor:gJ.RED_PALE,boxShadow:`0 0 0 3px ${YD(gJ.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:gJ.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:gJ.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:SJ,boxShadow:`inset 0 0 0 2px ${gJ.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Zo.jsx(PJ,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:bJ,borderRadius:SJ,color:gJ.TEXT_PRIMARY,backgroundColor:gJ.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:gJ.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${gJ.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:gJ.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:gJ.GREYSCALE_0_05,color:gJ.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:gJ.GREEN,borderColor:gJ.GREEN},"&.MuiChip-outlinedInfo":{color:gJ.BLUE,borderColor:gJ.BLUE},"&.MuiChip-outlinedWarning":{color:gJ.ORANGE,borderColor:gJ.ORANGE},"&.MuiChip-outlinedError":{color:gJ.RED,borderColor:gJ.RED}},outlined:{border:`solid 1px ${gJ.GREYSCALE_0_15}`,backgroundColor:gJ.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:SJ,boxShadow:"none",backgroundColor:gJ.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:gJ.GREEN,borderColor:gJ.GREEN},outlinedSecondary:{color:gJ.BLUE,borderColor:gJ.BLUE},label:{fontFamily:MJ.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Zo.jsx(PJ,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Zo.jsx(AJ,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:SJ},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:SJ,fontSize:vJ,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:gJ.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${gJ.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:gJ.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:gJ.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:gJ.GREYSCALE_0_05}}},popupIndicator:{borderRadius:SJ,border:`solid 1px ${gJ.GREYSCALE_0_15}`,color:gJ.GREYSCALE_0_60,marginRight:0,width:xJ,height:xJ},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${gJ.GREYSCALE_0_15}`},clearIndicator:{borderRadius:SJ,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:gJ.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:vJ}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:bJ,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:gJ.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:gJ.GREYSCALE_25,fontSize:bJ,fontFamily:MJ.FONT_FAMILY,fontWeight:EJ,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:gJ.TEXT_PRIMARY},"&.Mui-error":{color:gJ.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:gJ.TEXT_SECONDARY,content:"'(optional)'",fontWeight:CJ,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:gJ.TEXT_SECONDARY,content:"'(required)'",fontWeight:CJ,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:vJ,lineHeight:"16px",backgroundColor:gJ.WHITE,borderRadius:SJ,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${gJ.GREYSCALE_0_05}`,borderColor:gJ.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${gJ.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${gJ.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${gJ.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${gJ.RED}`,boxShadow:`0px 0px 0px 1px ${gJ.RED}, inset 0 2px 0 0 ${gJ.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${gJ.GREYSCALE_0_10}`,borderColor:gJ.GREYSCALE_0_10,backgroundColor:gJ.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:gJ.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:gJ.GREYSCALE_0_15,borderRadius:SJ,boxShadow:`inset 0 2px 0 0 ${gJ.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Zo.jsx(AJ,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:gJ.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:gJ.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:gJ.GREYSCALE_0_03},"&:active":{backgroundColor:gJ.GREYSCALE_0_10},"&:focus":{backgroundColor:gJ.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${gJ.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${gJ.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:gJ.GREYSCALE_0_30,"&:hover":{backgroundColor:gJ.GREYSCALE_0_0,borderColor:gJ.GREYSCALE_0_15},"& ~svg":{color:gJ.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${gJ.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:SJ}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:gJ.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${gJ.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:gJ.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:vJ,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:bJ,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:bJ,fontWeight:EJ,color:gJ.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:EJ}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${gJ.GREYSCALE_0_15}, 0px 0px 0px 1px ${gJ.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Zo.jsx(_J,{}),checkedIcon:Zo.jsx(LJ,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:gJ.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${gJ.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:gJ.GREEN_PALE,boxShadow:`0 0 0 3px ${YD(gJ.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:gJ.BLUE_PALE,boxShadow:`0 0 0 3px ${YD(gJ.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:gJ.GREYSCALE_0_20}},"&.Mui-disabled":{fill:gJ.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Zo.jsx(TJ,{}),checkedIcon:Zo.jsx(kJ,{}),indeterminateIcon:Zo.jsx(DJ,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:SJ,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:gJ.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:gJ.GREYSCALE_0_55,color:gJ.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:gJ.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:gJ.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:gJ.GREYSCALE_0_55,"&:hover":{color:gJ.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:gJ.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:gJ.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:vJ,color:gJ.TEXT_PRIMARY,lineHeight:"16px",fontWeight:EJ},secondary:{fontSize:bJ,color:gJ.GREYSCALE_45,fontWeight:CJ,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:vJ,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:vJ,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:gJ.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:bJ,borderBottom:`solid 1px ${gJ.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:vJ,color:gJ.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:gJ.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:gJ.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:gJ.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:'url(\'data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg width="8px" height="7px" viewBox="0 0 8 7" version="1.1"%0A xmlns="http://www.w3.org/2000/svg"%0A xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="Tick">%0A <g stroke="none" stroke-width="1" fill-rule="evenodd">%0A <g transform="translate(0.000000, -1.000000)">%0A <path d="M7.51662484,1.29325 C7.12545778,0.90225 6.49218732,0.90225 6.10202068,1.29325 L2.73658335,4.65725 L1.90722914,3.82925 C1.5170625,3.43825 0.883792042,3.43825 0.492624979,3.82925 C0.102458344,4.21925 0.102458344,4.85225 0.492624979,5.24325 L2.02928127,6.77825 C2.4194479,7.16925 3.05271836,7.16925 3.44388542,6.77825 L7.51662484,2.70725 C7.9077919,2.31725 7.9077919,1.68425 7.51662484,1.29325"></path>%0A </g>%0A </g>%0A</svg>%0A\')',fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:gJ.RED}}},"&.Mui-focusVisible":{backgroundColor:gJ.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:gJ.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:gJ.GREEN,height:"24px","&.Mui-disabled":{color:gJ.GREYSCALE_0_15}},rail:{backgroundColor:gJ.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${gJ.GREYSCALE_0_05}`,borderRadius:SJ,boxShadow:`inset 0px 0px 0px 1px ${gJ.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${gJ.GREYSCALE_0_05}`,borderRadius:SJ},thumb:{height:"16px",width:"16px",borderRadius:SJ,backgroundColor:gJ.WHITE,boxShadow:`0px 1px 2px 0px ${gJ.GREYSCALE_0_15}, 0px 0px 0px 1px ${gJ.GREYSCALE_0_05}`,"&:hover":{borderRadius:SJ,boxShadow:`0 2px 4px 0 ${gJ.GREYSCALE_0_30}, 0 0 0 1px ${gJ.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${gJ.GREYSCALE_0_15}, 0 0 0 1px ${gJ.GREYSCALE_0_06}, 0 0 0 2px ${gJ.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${gJ.GREYSCALE_0_15}, 0 0 0 1px ${gJ.GREYSCALE_0_06}, 0 0 0 2px ${gJ.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:gJ.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:gJ.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:gJ.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:gJ.GREYSCALE_0_15},markLabel:{color:gJ.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:gJ.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:gJ.WHITE,color:gJ.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:gJ.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:gJ.GREEN_PALE,boxShadow:`0 0 0 3px ${YD(gJ.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:gJ.BLUE_PALE,boxShadow:`0 0 0 3px ${YD(gJ.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:gJ.GREYSCALE_0_15,borderRadius:SJ},thumb:{height:"16px",width:"16px",borderRadius:SJ,backgroundColor:gJ.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:vJ,fontWeight:EJ,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${gJ.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${gJ.MISC_FOCUS_BORDER}`,backgroundColor:gJ.GREYSCALE_0_03,borderRadius:SJ},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:gJ.GREYSCALE_25,"&.Mui-selected":{color:gJ.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:vJ,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:SJ,"&:hover":{backgroundColor:gJ.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${gJ.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${gJ.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:SJ,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:gJ.GREYSCALE_0_05},"&:hover":{backgroundColor:gJ.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${gJ.GREYSCALE_85}`,borderRight:`1px solid ${gJ.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:EJ,backgroundColor:gJ.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:gJ.GREYSCALE_98,borderBottom:`1px solid ${gJ.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${gJ.GREYSCALE_85}`,borderTop:`1px solid ${gJ.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:gJ.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:gJ.GREYSCALE_0_05,"&:hover":{backgroundColor:gJ.GREYSCALE_0_03}},"&&:hover":{backgroundColor:gJ.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Zo.jsx(OJ,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${gJ.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:vJ,borderRadius:SJ,padding:"7px 16px",border:`1px solid ${gJ.GREYSCALE_0_15}`,backgroundColor:gJ.GREYSCALE_100_60,color:gJ.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:gJ.GREYSCALE_0_10,border:`1px solid ${gJ.GREYSCALE_0_30}`},"&:hover":{backgroundColor:gJ.GREYSCALE_0_03,border:`1px solid ${gJ.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:gJ.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${gJ.MISC_FOCUS_BORDER}`,border:`1px solid ${gJ.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:gJ.GREYSCALE_25,backgroundColor:gJ.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:gJ.GREYSCALE_0_10,border:`1px solid ${gJ.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:bJ,height:24,width:24,padding:7},sizeLarge:{fontSize:yJ,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:vJ,borderRadius:SJ}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0,enterNextDelay:300,enterDelay:400},styleOverrides:{arrow:{color:gJ.GREYSCALE_20},tooltip:{backgroundColor:gJ.GREYSCALE_20,fontSize:bJ,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...qJ}:{}}),NJ=(e,t)=>jJ(t);var FJ=()=>({mode:"light",primary:{ultraLight:gJ.GREEN_ULTRA_LIGHT,light:gJ.GREEN_PALE,main:gJ.GREEN,dark:gJ.GREEN_DARK,extraDark:gJ.GREEN_EXTRA_DARK,contrastText:gJ.WHITE},secondary:{ultraLight:gJ.BLUE_ULTRA_LIGHT,light:gJ.BLUE_PALE,main:gJ.BLUE,dark:gJ.BLUE_DARK,extraDark:gJ.BLUE_EXTRA_DARK,contrastText:gJ.WHITE},error:{ultraLight:gJ.RED_ULTRA_LIGHT,light:gJ.RED_PALE,main:gJ.RED,dark:gJ.RED_DARK,extraDark:gJ.RED_EXTRA_DARK,contrastText:gJ.WHITE},warning:{ultraLight:gJ.ORANGE_ULTRA_LIGHT,light:gJ.ORANGE_PALE,main:gJ.ORANGE,dark:gJ.ORANGE_DARK,extraDark:gJ.ORANGE_EXTRA_DARK,contrastText:gJ.WHITE},success:{ultraLight:gJ.GREEN_ULTRA_LIGHT,light:gJ.GREEN_PALE,main:gJ.GREEN,dark:gJ.GREEN_DARK,extraDark:gJ.GREEN_EXTRA_DARK,contrastText:gJ.WHITE},info:{ultraLight:gJ.BLUE_ULTRA_LIGHT,light:gJ.BLUE_PALE,main:gJ.BLUE,dark:gJ.BLUE_DARK,extraDark:gJ.BLUE_EXTRA_DARK,contrastText:gJ.WHITE},text:{primary:gJ.TEXT_PRIMARY,secondary:gJ.TEXT_SECONDARY,disabled:gJ.GREYSCALE_0_30},action:{hover:gJ.GREYSCALE_0_03,hoverOpacity:.03,selected:gJ.GREYSCALE_0_05,selectedOpacity:.05,focus:gJ.MISC_FOCUS_BORDER},amethyst:{ultraLight:gJ.WHITE,main:gJ.PURPLE,light:gJ.PURPLE_PALE,dark:gJ.PURPLE_DARK,extraDark:gJ.GREYSCALE_0_0,contrastText:gJ.WHITE},background:{paper:gJ.WHITE,default:gJ.GREYSCALE_95},divider:gJ.GREYSCALE_0_15});var zJ=e=>FJ();var $J=(e,t=!1)=>({components:NJ(0,t),palette:zJ(e),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:vJ,fontWeightLight:wJ,fontWeightRegular:CJ,fontWeightMedium:EJ,fontWeightBold:RJ,htmlFontSize:vJ,fontFamily:MJ.FONT_FAMILY,button:{fontWeight:EJ,fontSize:vJ,textTransform:"none"},body1:{fontSize:yJ,lineHeight:"24px"},body2:{fontSize:vJ,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:xJ,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:yJ,fontWeight:EJ,lineHeight:"16px"},h6:{fontSize:vJ,fontWeight:EJ,lineHeight:"16px"},caption:{color:gJ.TEXT_SECONDARY},subtitle1:{fontSize:vJ,color:gJ.TEXT_SECONDARY},subtitle2:{fontSize:bJ,color:gJ.TEXT_SECONDARY}},shape:{borderRadius:SJ}}),WJ={},BJ={exports:{}},GJ={exports:{}};!function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(GJ);var HJ=GJ.exports;!function(e){var t=HJ.default;function r(n,o){if("function"==typeof WeakMap)var i=new WeakMap,a=new WeakMap;return(e.exports=r=function(e,r){if(!r&&e&&e.__esModule)return e;var n,o,s={__proto__:null,default:e};if(null===e||"object"!=t(e)&&"function"!=typeof e)return s;if(n=r?a:i){if(n.has(e))return n.get(e);n.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?n(s,l,o):s[l]=e[l]);return s},e.exports.__esModule=!0,e.exports.default=e.exports)(n,o)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(BJ);var VJ=BJ.exports,UJ={},YJ=qe(Mf);Object.defineProperty(UJ,"__esModule",{value:!0}),UJ.hexToRgb=JJ,UJ.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=QJ(e),r=t.values;return"#".concat(r.map((function(e){return function(e){var t=e.toString(16);return 1===t.length?"0".concat(t):t}(e)})).join(""))},UJ.hslToRgb=ZJ,UJ.decomposeColor=QJ,UJ.recomposeColor=eZ,UJ.getContrastRatio=function(e,t){var r=tZ(e),n=tZ(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},UJ.getLuminance=tZ,UJ.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return tZ(e)>.5?nZ(e,t):oZ(e,t)},UJ.fade=function(e,t){return rZ(e,t)},UJ.alpha=rZ,UJ.darken=nZ,UJ.lighten=oZ;var KJ=YJ;function XJ(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}function JJ(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map((function(e){return e+e}))),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}function ZJ(e){var t=(e=QJ(e)).values,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+r/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),eZ({type:s,values:l})}function QJ(e){if(e.type)return e;if("#"===e.charAt(0))return QJ(JJ(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error((0,KJ.formatMuiErrorMessage)(3,e));var n=e.substring(t+1,e.length-1).split(",");return{type:r,values:n=n.map((function(e){return parseFloat(e)}))}}function eZ(e){var t=e.type,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}function tZ(e){var t="hsl"===(e=QJ(e)).type?QJ(ZJ(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function rZ(e,t){return e=QJ(e),t=XJ(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,eZ(e)}function nZ(e,t){if(e=QJ(e),t=XJ(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]*=1-t;return eZ(e)}function oZ(e,t){if(e=QJ(e),t=XJ(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;return eZ(e)}var iZ,aZ,sZ,lZ={},uZ={exports:{}},cZ={exports:{}},dZ={exports:{}};function pZ(){return iZ||(iZ=1,function(e){var t=HJ.default;e.exports=function(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(dZ)),dZ.exports}function fZ(){return aZ||(aZ=1,function(e){var t=HJ.default,r=pZ();e.exports=function(e){var n=r(e,"string");return"symbol"==t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports}(cZ)),cZ.exports}function hZ(){return sZ||(sZ=1,function(e){var t=fZ();e.exports=function(e,r,n){return(r=t(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports}(uZ)),uZ.exports}var mZ,gZ={exports:{}};function bZ(){return mZ||(mZ=1,function(e){var t=eO();e.exports=function(e,r){if(null==e)return{};var n,o,i=t(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],-1===r.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports}(gZ)),gZ.exports}var vZ,yZ={};var xZ,SZ={};var wZ,CZ={},EZ={};var RZ,MZ={};var AZ,IZ={};var kZ,LZ={};var PZ,DZ={};var _Z,OZ={};var TZ,qZ={};var jZ,NZ,FZ={};function zZ(){if(NZ)return CZ;NZ=1;var e=s_;Object.defineProperty(CZ,"__esModule",{value:!0}),CZ.default=function(e){var g=e.primary,b=void 0===g?{light:a.default[300],main:a.default[500],dark:a.default[700]}:g,v=e.secondary,y=void 0===v?{light:s.default.A200,main:s.default.A400,dark:s.default.A700}:v,x=e.error,S=void 0===x?{light:l.default[300],main:l.default[500],dark:l.default[700]}:x,w=e.warning,C=void 0===w?{light:u.default[300],main:u.default[500],dark:u.default[700]}:w,E=e.info,R=void 0===E?{light:c.default[300],main:c.default[500],dark:c.default[700]}:E,M=e.success,A=void 0===M?{light:d.default[300],main:d.default[500],dark:d.default[700]}:M,I=e.type,k=void 0===I?"light":I,L=e.contrastThreshold,P=void 0===L?3:L,D=e.tonalOffset,_=void 0===D?.2:D,O=(0,r.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function T(e){return(0,p.getContrastRatio)(e,h.text.primary)>=P?h.text.primary:f.text.primary}var q=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,t.default)({},e)).main&&e[r]&&(e.main=e[r]),!e.main)throw new Error((0,n.formatMuiErrorMessage)(4,r));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return m(e,"light",o,_),m(e,"dark",i,_),e.contrastText||(e.contrastText=T(e.main)),e},j={dark:h,light:f},N=(0,n.deepmerge)((0,t.default)({common:o.default,type:k,primary:q(b),secondary:q(y,"A400","A200","A700"),error:q(S),warning:q(C),info:q(R),success:q(A),grey:i.default,contrastThreshold:P,getContrastText:T,augmentColor:q,tonalOffset:_},j[k]),O);return N},CZ.dark=CZ.light=void 0;var t=e(J_()),r=e(bZ()),n=YJ,o=e(function(){if(wZ)return EZ;wZ=1,Object.defineProperty(EZ,"__esModule",{value:!0}),EZ.default=void 0;var e={black:"#000",white:"#fff"};return EZ.default=e,EZ}()),i=e(function(){if(RZ)return MZ;RZ=1,Object.defineProperty(MZ,"__esModule",{value:!0}),MZ.default=void 0;var e={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};return MZ.default=e,MZ}()),a=e(function(){if(AZ)return IZ;AZ=1,Object.defineProperty(IZ,"__esModule",{value:!0}),IZ.default=void 0;var e={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};return IZ.default=e,IZ}()),s=e(function(){if(kZ)return LZ;kZ=1,Object.defineProperty(LZ,"__esModule",{value:!0}),LZ.default=void 0;var e={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};return LZ.default=e,LZ}()),l=e(function(){if(PZ)return DZ;PZ=1,Object.defineProperty(DZ,"__esModule",{value:!0}),DZ.default=void 0;var e={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};return DZ.default=e,DZ}()),u=e(function(){if(_Z)return OZ;_Z=1,Object.defineProperty(OZ,"__esModule",{value:!0}),OZ.default=void 0;var e={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};return OZ.default=e,OZ}()),c=e(function(){if(TZ)return qZ;TZ=1,Object.defineProperty(qZ,"__esModule",{value:!0}),qZ.default=void 0;var e={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};return qZ.default=e,qZ}()),d=e(function(){if(jZ)return FZ;jZ=1,Object.defineProperty(FZ,"__esModule",{value:!0}),FZ.default=void 0;var e={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};return FZ.default=e,FZ}()),p=UJ,f={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:o.default.white,default:i.default[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}};CZ.light=f;var h={text:{primary:o.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:i.default[800],default:"#303030"},action:{active:o.default.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function m(e,t,r,n){var o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,p.lighten)(e.main,o):"dark"===t&&(e.dark=(0,p.darken)(e.main,i)))}return CZ.dark=h,CZ}var $Z,WZ={};var BZ,GZ={};var HZ,VZ={};var UZ,YZ={},KZ=qe(dm);var XZ,JZ={};function ZZ(){if(XZ)return JZ;XZ=1;var e=s_;Object.defineProperty(JZ,"__esModule",{value:!0}),JZ.default=JZ.duration=JZ.easing=void 0;var t=e(bZ()),r={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"};JZ.easing=r;var n={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function o(e){return"".concat(Math.round(e),"ms")}JZ.duration=n;var i={easing:r,duration:n,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.duration,s=void 0===a?n.standard:a,l=i.easing,u=void 0===l?r.easeInOut:l,c=i.delay,d=void 0===c?0:c;return(0,t.default)(i,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof s?s:o(s)," ").concat(u," ").concat("string"==typeof d?d:o(d))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};return JZ.default=i,JZ}var QZ,eQ,tQ={};function rQ(){if(eQ)return lZ;eQ=1;var e=s_;Object.defineProperty(lZ,"__esModule",{value:!0}),lZ.createMuiTheme=function(){return p.apply(void 0,arguments)},lZ.default=void 0,e(hZ());var t=e(bZ()),r=YJ,n=e(function(){if(vZ)return yZ;vZ=1;var e=s_;Object.defineProperty(yZ,"__esModule",{value:!0}),yZ.default=function(e){var o=e.values,i=void 0===o?{xs:0,sm:600,md:960,lg:1280,xl:1920}:o,a=e.unit,s=void 0===a?"px":a,l=e.step,u=void 0===l?5:l,c=(0,r.default)(e,["values","unit","step"]);function d(e){var t="number"==typeof i[e]?i[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function p(e,t){var r=n.indexOf(t);return r===n.length-1?d(e):"@media (min-width:".concat("number"==typeof i[e]?i[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof i[n[r+1]]?i[n[r+1]]:t)-u/100).concat(s,")")}return(0,t.default)({keys:n,values:i,up:d,down:function(e){var t=n.indexOf(e)+1,r=i[n[t]];return t===n.length?d("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-u/100).concat(s,")")},between:p,only:function(e){return p(e,e)},width:function(e){return i[e]}},c)},yZ.keys=void 0;var t=e(J_()),r=e(bZ()),n=["xs","sm","md","lg","xl"];return yZ.keys=n,yZ}()),o=e(function(){if(xZ)return SZ;xZ=1;var e=s_;Object.defineProperty(SZ,"__esModule",{value:!0}),SZ.default=function(e,n,o){var i;return(0,r.default)({gutters:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,r.default)({paddingLeft:n(2),paddingRight:n(2)},o,(0,t.default)({},e.up("sm"),(0,r.default)({paddingLeft:n(3),paddingRight:n(3)},o[e.up("sm")])))},toolbar:(i={minHeight:56},(0,t.default)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,t.default)(i,e.up("sm"),{minHeight:64}),i)},o)};var t=e(hZ()),r=e(J_());return SZ}()),i=e(zZ()),a=e(function(){if($Z)return WZ;$Z=1;var e=s_;Object.defineProperty(WZ,"__esModule",{value:!0}),WZ.default=function(e,l){var u="function"==typeof l?l(e):l,c=u.fontFamily,d=void 0===c?s:c,p=u.fontSize,f=void 0===p?14:p,h=u.fontWeightLight,m=void 0===h?300:h,g=u.fontWeightRegular,b=void 0===g?400:g,v=u.fontWeightMedium,y=void 0===v?500:v,x=u.fontWeightBold,S=void 0===x?700:x,w=u.htmlFontSize,C=void 0===w?16:w,E=u.allVariants,R=u.pxToRem,M=(0,r.default)(u,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),A=f/14,I=R||function(e){return"".concat(e/C*A,"rem")},k=function(e,r,n,i,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:I(r),lineHeight:n},d===s?{letterSpacing:"".concat(o(i/r),"em")}:{},a,E)},L={h1:k(m,96,1.167,-1.5),h2:k(m,60,1.2,-.5),h3:k(b,48,1.167,0),h4:k(b,34,1.235,.25),h5:k(b,24,1.334,0),h6:k(y,20,1.6,.15),subtitle1:k(b,16,1.75,.15),subtitle2:k(y,14,1.57,.1),body1:k(b,16,1.5,.15),body2:k(b,14,1.43,.15),button:k(y,14,1.75,.4,a),caption:k(b,12,1.66,.4),overline:k(b,12,2.66,1,a)};return(0,n.deepmerge)((0,t.default)({htmlFontSize:C,pxToRem:I,round:i,fontFamily:d,fontSize:f,fontWeightLight:m,fontWeightRegular:b,fontWeightMedium:y,fontWeightBold:S},L),M,{clone:!1})};var t=e(J_()),r=e(bZ()),n=YJ;function o(e){return Math.round(1e5*e)/1e5}function i(e){return o(e)}var a={textTransform:"uppercase"},s='"Roboto", "Helvetica", "Arial", sans-serif';return WZ}()),s=e(function(){if(BZ)return GZ;function e(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}BZ=1,Object.defineProperty(GZ,"__esModule",{value:!0}),GZ.default=void 0;var t=["none",e(0,2,1,-1,0,1,1,0,0,1,3,0),e(0,3,1,-2,0,2,2,0,0,1,5,0),e(0,3,3,-2,0,3,4,0,0,1,8,0),e(0,2,4,-1,0,4,5,0,0,1,10,0),e(0,3,5,-1,0,5,8,0,0,1,14,0),e(0,3,5,-1,0,6,10,0,0,1,18,0),e(0,4,5,-2,0,7,10,1,0,2,16,1),e(0,5,5,-3,0,8,10,1,0,3,14,2),e(0,5,6,-3,0,9,12,1,0,3,16,2),e(0,6,6,-3,0,10,14,1,0,4,18,3),e(0,6,7,-4,0,11,15,1,0,4,20,3),e(0,7,8,-4,0,12,17,2,0,5,22,4),e(0,7,8,-4,0,13,19,2,0,5,24,4),e(0,7,9,-4,0,14,21,2,0,5,26,4),e(0,8,9,-5,0,15,22,2,0,6,28,5),e(0,8,10,-5,0,16,24,2,0,6,30,5),e(0,8,11,-5,0,17,26,2,0,6,32,5),e(0,9,11,-5,0,18,28,2,0,7,34,6),e(0,9,12,-6,0,19,29,2,0,7,36,6),e(0,10,13,-6,0,20,31,3,0,8,38,7),e(0,10,13,-6,0,21,33,3,0,8,40,7),e(0,10,14,-6,0,22,35,3,0,8,42,7),e(0,11,14,-7,0,23,36,3,0,9,44,8),e(0,11,15,-7,0,24,38,3,0,9,46,8)];return GZ.default=t,GZ}()),l=e(function(){if(HZ)return VZ;HZ=1,Object.defineProperty(VZ,"__esModule",{value:!0}),VZ.default=void 0;var e={borderRadius:4};return VZ.default=e,VZ}()),u=e(function(){if(UZ)return YZ;UZ=1,Object.defineProperty(YZ,"__esModule",{value:!0}),YZ.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var r=(0,e.createUnarySpacing)({spacing:t}),n=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?r(1):1===t.length?r(t[0]):t.map((function(e){if("string"==typeof e)return e;var t=r(e);return"number"==typeof t?"".concat(t,"px"):t})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return t}}),n.mui=!0,n};var e=KZ;return YZ}()),c=e(ZZ()),d=e(function(){if(QZ)return tQ;QZ=1,Object.defineProperty(tQ,"__esModule",{value:!0}),tQ.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return tQ.default=e,tQ}());function p(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=e.breakpoints,f=void 0===p?{}:p,h=e.mixins,m=void 0===h?{}:h,g=e.palette,b=void 0===g?{}:g,v=e.spacing,y=e.typography,x=void 0===y?{}:y,S=(0,t.default)(e,["breakpoints","mixins","palette","spacing","typography"]),w=(0,i.default)(b),C=(0,n.default)(f),E=(0,u.default)(v),R=(0,r.deepmerge)({breakpoints:C,direction:"ltr",mixins:(0,o.default)(C,E,m),overrides:{},palette:w,props:{},shadows:s.default,typography:(0,a.default)(w,x),spacing:E,shape:l.default,transitions:c.default,zIndex:d.default},S),M=arguments.length,A=new Array(M>1?M-1:0),I=1;I<M;I++)A[I-1]=arguments[I];return R=A.reduce((function(e,t){return(0,r.deepmerge)(e,t)}),R)}var f=p;return lZ.default=f,lZ}var nQ,oQ={};var iQ,aQ={},sQ=qe(uy);var lQ,uQ,cQ={},dQ={};function pQ(){if(lQ)return dQ;lQ=1;var e=s_;Object.defineProperty(dQ,"__esModule",{value:!0}),dQ.default=void 0;var t=(0,e(rQ()).default)();return dQ.default=t,dQ}var fQ,hQ,mQ={},gQ={};function bQ(){if(hQ)return mQ;hQ=1;var e=s_;Object.defineProperty(mQ,"__esModule",{value:!0}),mQ.default=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.breakpoints,a=void 0===i?["sm","md","lg"]:i,s=o.disableAlign,l=void 0!==s&&s,u=o.factor,c=void 0===u?2:u,d=o.variants,p=void 0===d?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:d,f=(0,t.default)({},e);f.typography=(0,t.default)({},f.typography);var h=f.typography,m=(0,n.convertLength)(h.htmlFontSize),g=a.map((function(e){return f.breakpoints.values[e]}));return p.forEach((function(e){var o=h[e],i=parseFloat(m(o.fontSize,"rem"));if(!(i<=1)){var a=i,s=1+(a-1)/c,u=o.lineHeight;if(!(0,n.isUnitless)(u)&&!l)throw new Error((0,r.formatMuiErrorMessage)(6));(0,n.isUnitless)(u)||(u=parseFloat(m(u,"rem"))/parseFloat(i));var d=null;l||(d=function(e){return(0,n.alignProperty)({size:e,grid:(0,n.fontGrid)({pixels:4,lineHeight:u,htmlFontSize:h.htmlFontSize})})}),h[e]=(0,t.default)({},o,(0,n.responsiveProperty)({cssProperty:"fontSize",min:s,max:a,unit:"rem",breakpoints:g,transform:d}))}})),f};var t=e(J_()),r=YJ,n=function(){if(fQ)return gQ;fQ=1;var e=s_;Object.defineProperty(gQ,"__esModule",{value:!0}),gQ.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},gQ.getUnit=r,gQ.toUnitless=n,gQ.convertLength=function(e){return function(t,o){var i=r(t);if(i===o)return t;var a=n(t);if("px"!==i)if("em"===i)a=n(t)*n(e);else if("rem"===i)return a=n(t)*n(e),t;var s=a;if("px"!==o)if("em"===o)s=a/n(e);else{if("rem"!==o)return t;s=a/n(e)}return parseFloat(s.toFixed(5))+o}},gQ.alignProperty=function(e){var t=e.size,r=e.grid,n=t-t%r,o=n+r;return t-n<o-t?n:o},gQ.fontGrid=function(e){var t=e.lineHeight;return e.pixels/(t*e.htmlFontSize)},gQ.responsiveProperty=function(e){var r=e.cssProperty,n=e.min,o=e.max,i=e.unit,a=void 0===i?"rem":i,s=e.breakpoints,l=void 0===s?[600,960,1280]:s,u=e.transform,c=void 0===u?null:u,d=(0,t.default)({},r,"".concat(n).concat(a)),p=(o-n)/l[l.length-1];return l.forEach((function(e){var o=n+p*e;null!==c&&(o=c(o)),d["@media (min-width:".concat(e,"px)")]=(0,t.default)({},r,"".concat(Math.round(1e4*o)/1e4).concat(a))})),d};var t=e(hZ());function r(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function n(e){return parseFloat(e)}return gQ}();return mQ}var vQ,yQ={};var xQ,SQ={};var wQ,CQ={};var EQ,RQ={};!function(e){var t=s_,n=VJ;Object.defineProperty(e,"__esModule",{value:!0});var o={createTheme:!0,createMuiTheme:!0,unstable_createMuiStrictModeTheme:!0,createStyles:!0,makeStyles:!0,responsiveFontSizes:!0,styled:!0,useTheme:!0,withStyles:!0,withTheme:!0,createGenerateClassName:!0,jssPreset:!0,ServerStyleSheets:!0,StylesProvider:!0,MuiThemeProvider:!0,ThemeProvider:!0};Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"createMuiTheme",{enumerable:!0,get:function(){return a.createMuiTheme}}),Object.defineProperty(e,"unstable_createMuiStrictModeTheme",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"createStyles",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"makeStyles",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"responsiveFontSizes",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"styled",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"useTheme",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"withStyles",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"withTheme",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"createGenerateClassName",{enumerable:!0,get:function(){return g.createGenerateClassName}}),Object.defineProperty(e,"jssPreset",{enumerable:!0,get:function(){return g.jssPreset}}),Object.defineProperty(e,"ServerStyleSheets",{enumerable:!0,get:function(){return g.ServerStyleSheets}}),Object.defineProperty(e,"StylesProvider",{enumerable:!0,get:function(){return g.StylesProvider}}),Object.defineProperty(e,"MuiThemeProvider",{enumerable:!0,get:function(){return g.ThemeProvider}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return g.ThemeProvider}});var i=UJ;Object.keys(i).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(o,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}}))}));var a=n(rQ()),s=t(function(){if(nQ)return oQ;nQ=1;var e=s_;Object.defineProperty(oQ,"__esModule",{value:!0}),oQ.default=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.default.apply(void 0,[(0,t.deepmerge)({unstable_strictMode:!0},e)].concat(o))};var t=YJ,r=e(rQ());return oQ}()),l=t(function(){if(iQ)return aQ;iQ=1,Object.defineProperty(aQ,"__esModule",{value:!0}),aQ.default=function(t){return(0,e.createStyles)(t)};var e=sQ;return aQ}()),u=t(function(){if(uQ)return cQ;uQ=1;var e=s_;Object.defineProperty(cQ,"__esModule",{value:!0}),cQ.default=void 0;var t=e(J_()),r=sQ,n=e(pQ()),o=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,r.makeStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return cQ.default=o,cQ}()),c=t(bQ()),d=t(function(){if(vQ)return yQ;vQ=1;var e=s_;Object.defineProperty(yQ,"__esModule",{value:!0}),yQ.default=void 0;var t=e(J_()),r=sQ,n=e(pQ()),o=function(e){var o=(0,r.styled)(e);return function(e,r){return o(e,(0,t.default)({defaultTheme:n.default},r))}};return yQ.default=o,yQ}()),p=ZZ();Object.keys(p).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(o,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[t]}}))}));var f=t(function(){if(xQ)return SQ;xQ=1;var e=s_;Object.defineProperty(SQ,"__esModule",{value:!0}),SQ.default=function(){return(0,t.useTheme)()||n.default};var t=sQ;e(r);var n=e(pQ());return SQ}()),h=t(function(){if(wQ)return CQ;wQ=1;var e=s_;Object.defineProperty(CQ,"__esModule",{value:!0}),CQ.default=void 0;var t=e(J_()),r=sQ,n=e(pQ()),o=function(e,o){return(0,r.withStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return CQ.default=o,CQ}()),m=t(function(){if(EQ)return RQ;EQ=1;var e=s_;Object.defineProperty(RQ,"__esModule",{value:!0}),RQ.default=void 0;var t=sQ,r=e(pQ()),n=(0,t.withThemeCreator)({defaultTheme:r.default});return RQ.default=n,RQ}()),g=sQ}(WJ),WJ.alpha(gJ.GREYSCALE_0,.05),WJ.alpha(gJ.GREEN_PALE,.5),WJ.alpha(gJ.BLUE_PALE,.5),WJ.alpha(gJ.GREEN_PALE,.5),WJ.alpha(gJ.BLUE_PALE,.5),WJ.alpha(gJ.GREEN_PALE,.5),WJ.alpha(gJ.BLUE_PALE,.5),WJ.alpha(gJ.GREEN_PALE,.5),WJ.alpha(gJ.BLUE_PALE,.5),WJ.alpha(gJ.GREEN_PALE,.5),WJ.alpha(gJ.BLUE_PALE,.5);function MQ(e){const t=((e="light",t=!1)=>$J(e,t))();return t?.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),H_({...t,direction:e})}var AQ=function(e){return e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="fontColor",e.FontStyle="fontStyle",e.Background="background",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.Border="border",e.Divider="divider",e}(AQ||{}),IQ=function(e){return e.Dimension="object.pivotTableV2.dimension",e.Measure="object.pivotTableV2.measure",e.Total="object.pivotTableV2.total",e.Null="object.pivotTableV2.null",e.Grid="object.pivotTableV2",e}(IQ||{}),kQ=function(e){return e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value",e}(kQ||{}),LQ=function(e){return e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor",e}(LQ||{});const PQ=e=>e?`${parseInt(e,10)}px`:void 0,DQ=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?oB.Transparent:r}},_Q=(e,t)=>+(parseInt(e,10)*nB*t+8).toFixed(2),OQ=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?tB:"normal",TQ=e=>e?.some((e=>"italic"===e))?"italic":"normal",qQ=e=>e?.some((e=>"underline"===e))?"underline":"none",jQ=document.createElement("textarea");function NQ(e){jQ.value=e,document.body.appendChild(jQ),jQ.select(),jQ.setSelectionRange(0,jQ.value.length),document.execCommand("copy"),document.body.removeChild(jQ)}jQ.style.position="absolute",jQ.style.left="-9999px",jQ.setAttribute("readonly","");function FQ(e){O?.(((t,r)=>{const n=r.target,o=n?.closest(`.${oN}`);o?.title&&t.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",id:"copy-cell-context-item",select:async()=>{(e=>{const t=e.title;t&&(navigator.clipboard?.writeText?navigator.clipboard.writeText(t).catch((()=>{NQ(t)})):NQ(t))})(o)}}),e?.forEach((e=>{e(t,r,o)}))}))}const zQ=({model:e,layoutService:t,effectivePropertiesService:r,translator:n})=>EB(((o,i,a)=>{if(!e||r.qAlwaysFullyExpanded)return;const s=e,l=o.addItem({translation:"Object.PivotTable.ContextMenu.ExpandCollapse",tid:"expand-collapse-group",id:"expand-collapse-group"}),{qEffectiveDimensionName:u,label:c}=((e,t)=>{const r=((e,t)=>{const r=e?.getAttribute("data-dimension-info-index");if("string"==typeof r)return t.getDimensionInfo(+r)})(e,t);return"object"==typeof r?{qEffectiveDimensionName:r.qEffectiveDimensionName,label:r.qFallbackTitle}:{qEffectiveDimensionName:void 0,label:void 0}})(a,t);l.addItem((e=>({icon:"lui-icon lui-icon--plus",translation:"Object.PivotTable.ContextMenu.ExpandAll",tid:"expand-all",select:async()=>{try{await e.expandTop(SH,0,0,!0),await e.expandLeft(SH,0,0,!0)}catch(e){console.error("Failed to expand all",e)}}}))(s)),"string"==typeof u&&l.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:r,label:n,translator:o})=>({icon:"lui-icon lui-icon--plus",translation:o.get("SNPivotTable.ContextMenu.ExpandDimension",[n??""]),tid:"expand-dimension",id:"expand-dimension",select:CX({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r,action:xX.Expand})}))({model:s,effectivePropertiesService:r,qEffectiveDimensionName:u,label:c,translator:n})),l.addItem((e=>({icon:"lui-icon lui-icon--minus",translation:"Object.PivotTable.ContextMenu.CollapseAll",tid:"collapse-all",select:async()=>{try{await e.collapseTop(SH,0,0,!0),await e.collapseLeft(SH,0,0,!0)}catch(e){console.error("Failed to collapse all",e)}}}))(s)),"string"==typeof u&&l.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:r,label:n,translator:o})=>({icon:"lui-icon lui-icon--minus",translation:o.get("SNPivotTable.ContextMenu.CollapseDimension",[n??""]),tid:"collapse-dimension",id:"collapse-dimension",select:CX({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r,action:xX.Collapse})}))({model:s,effectivePropertiesService:r,qEffectiveDimensionName:u,label:c,translator:n}))}),[e,t,r]),$Q=(e,t)=>A((()=>(({layout:e})=>{const{qHyperCube:t,nullValueRepresentation:r,snapshotData:n}=e,{qNoOfLeftDims:o,qEffectiveInterColumnSortOrder:i,qMeasureInfo:a,qDimensionInfo:s}=t,l=!!n,u=n?.content?.rowsPerPage??15e3,c={x:Math.min(e.qHyperCube.qSize.qcx,rB),y:Math.min(e.qHyperCube.qSize.qcy,u)},d=i.slice(0,o),p=e=>d.some((t=>t===e)),f=p(wH),h=new Map(i.map((e=>[s[e]??wH,e]))),m=a.filter((e=>7005!==e.qError?.qErrorCode));return{layout:e,getNullValueText:()=>r?.text??"-",getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(f)return 0;const r=e%m.length;return t?r:a.findIndex((e=>e===m[r]))},getDimensionInfo:e=>e===wH?void 0:s.at(e),getDimensionInfoIndex:e=>h.get(e)??-1,size:c,isSnapshot:l,hasLimitedData:!l&&c.x<e.qHyperCube.qSize.qcx,hasData:c.x>0&&c.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,hasPseudoDimOnLeft:f,leftDimensionInfoIndexes:d,isLeftDimension:p,triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:m,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode),indentModeColumnWidth:e.qHyperCube.indentModeColumnWidth??{type:uN.Auto,pixels:lN.PixelsDefault,percentage:lN.PercentageDefault},searchSortFromDimension:"inherit"===e.search?.sorting}})({layout:e})),[e,t]),WQ=({model:e,layoutService:t,viewService:r,pageInfo:n,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:s}=t,l=(e=>{const t=MB(e);return t.current=e,t})(JV(o));return _B((async()=>{const{qHyperCube:t}=i,{maxNumberOfVisibleRows:o,maxNumberOfVisibleColumns:u}=l.current;if(a)return i.snapshotData?.content?.qPivotDataPages??[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,r,n)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=n||t.gridRowStartIndex+t.gridHeight>=r))(s,r,o,u)||((e,t,r,n)=>{const{qHyperCube:{qPivotDataPages:o,qSize:i}}=e,{qTop:a,qWidth:s,qHeight:l}=o[0]?.qArea??{qTop:0,qWidth:0,qHeight:0};return a<t.page*t.rowsPerPage||s<Math.min(n,i.qcx)||l<Math.min(r,i.qcy)})(i,n,o,u))){const t=((e,t,r,n,o,i)=>{const a=n.page*n.rowsPerPage,s=Math.min(a+n.rowsPerPage,r.qcy),l=Math.min(rB,r.qcx);if(r.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,r=t.gridColumnStartIndex+t.gridWidth;e>s&&(c=Math.max(0,s-o)),r>l&&(u=Math.max(0,l-i))}return{qLeft:u,qTop:c,qWidth:Math.min(l-u,i),qHeight:Math.min(s-c,o)}})(s,r,i.qHyperCube.qSize,n,o,u);return t?e.getHyperCubePivotData(SH,ZV(t)):[]}return t.qPivotDataPages}),[i,a,e,r,n.page,n.rowsPerPage,l,s])},BQ=({rowsPerPage:e,totalRowCount:t,page:r})=>Math.min(e,t-r*e),GQ=(e,t,r=15e3)=>({rowsPerPage:r,totalPages:Math.max(1,Math.ceil(e/r)),totalRowCount:e,rowsOnCurrentPage:BQ({rowsPerPage:r,totalRowCount:e,page:t})}),HQ=15,VQ=({layoutService:e,viewService:t,rect:r,model:n,pageInfo:o})=>(T((async e=>{const i=e;if(!i.snapshotData||!n||i.snapshotData.content)return i;if("getHyperCubePivotData"in n){const{scrollTop:e,scrollLeft:a,leftGridScrollLeft:s,topGridScrollTop:l}=t,u=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=e,s=t.page*t.rowsPerPage,l=Math.max(n-HQ,0),u=Math.max(s+o-HQ,s,0),c=rB-l,d=s+t.rowsOnCurrentPage-u;if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=JV(r);return{qLeft:l,qTop:u,qWidth:Math.min(c,e+30),qHeight:Math.min(d,t+30)}}return{qLeft:l,qTop:u,qWidth:Math.min(c,i+30),qHeight:Math.min(d,a+30)}})(t,o,r),c=ZV(u),d={qLeft:0,qTop:o.page*o.rowsPerPage,qWidth:1,qHeight:1};i.snapshotData.content={qPivotDataPages:await n.getHyperCubePivotData(SH,[d,...c]),scrollTop:e,scrollLeft:a,leftGridScrollLeft:s,topGridScrollTop:l,page:o.page,rowsPerPage:o.rowsPerPage},i.snapshotData.object.size.w=r.width,i.snapshotData.object.size.h=r.height}return i})),q((()=>({getViewState:()=>((e,t)=>({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,topGridScrollTop:e.topGridScrollTop,renderPage:t.page}))(t,o)})),[t]),e.layout.snapshotData?.content?{left:r.left,top:r.top,width:e.layout.snapshotData.object.size.w,height:e.layout.snapshotData.object.size.h}:r);var UQ={SNPivotTable_ContextMenu_CollapseDimension:{id:"SNPivotTable.ContextMenu.CollapseDimension",locale:{"de-DE":"{0} reduzieren","en-US":"Collapse {0}","es-ES":"Contraer {0}","fr-FR":"Réduire {0}","it-IT":"Comprimi {0}","ja-JP":"{0} を折りたたむ","ko-KR":"{0} 축소","nl-NL":"{0} samenvouwen","pl-PL":"Zwiń {0}","pt-BR":"Recolher {0}","ru-RU":"Свернуть {0}","sv-SE":"Dölj {0}","tr-TR":"{0} öğelerini daralt","zh-CN":"折叠 {0}","zh-TW":"收合 {0}"}},SNPivotTable_ContextMenu_ExpandDimension:{id:"SNPivotTable.ContextMenu.ExpandDimension",locale:{"de-DE":"{0} erweitern","en-US":"Expand {0}","es-ES":"Expandir {0}","fr-FR":"Développer {0}","it-IT":"Espandi {0}","ja-JP":"{0} を展開","ko-KR":"{0} 확장","nl-NL":"{0} uitvouwen","pl-PL":"Rozwiń {0}","pt-BR":"Expandir {0}","ru-RU":"Развернуть {0}","sv-SE":"Visa {0}","tr-TR":"{0} öğelerini genişlet","zh-CN":"展开 {0}","zh-TW":"展開 {0}"}},SNPivotTable_IndentMode_Rows:{id:"SNPivotTable.IndentMode.Rows",locale:{"de-DE":"Zeilen","en-US":"Rows","es-ES":"Filas","fr-FR":"Lignes","it-IT":"Righe","ja-JP":"行","ko-KR":"행","nl-NL":"Rijen","pl-PL":"Wiersze","pt-BR":"Linhas","ru-RU":"Строки","sv-SE":"Rader","tr-TR":"Satırlar","zh-CN":"行","zh-TW":"列"}},SNPivotTable_LimitedData:{id:"SNPivotTable.LimitedData",locale:{"de-DE":"* Derzeit wird eine begrenzte Anzahl Spalten angezeigt","en-US":"* Currently showing a limited number of columns","es-ES":"* Actualmente mostrando un número limitado de columnas","fr-FR":"*Affichage actuel d'un nombre limité de colonnes","it-IT":"* Attualmente visualizzato un numero limitato di colonne","ja-JP":"* 現在、限られた列の数を表示","ko-KR":"* 현재 제한된 수의 열만 표시","nl-NL":"* Op dit moment wordt slechts een beperkt aantal kolommen getoond","pl-PL":"* Obecnie wyświetlana jest ograniczona liczba kolumn","pt-BR":"* Atualmente mostrando um número limitado de colunas","ru-RU":"* В настоящее время отображается ограниченное количество столбцов","sv-SE":"* Visar för närvarande ett begränsat antal kolumner","tr-TR":"*Şu anda sınırlı sayıda sütun gösteriliyor","zh-CN":"* 当前显示的列数有限","zh-TW":"* 目前顯示有限欄數"}},SNPivotTable_NoData:{id:"SNPivotTable.NoData",locale:{"de-DE":"Das Diagramm wird nicht angezeigt, weil es keine Werte enthält.","en-US":"The chart is not displayed because it contains no values.","es-ES":"El gráfico no se muestra porque no contiene valores.","fr-FR":"Le graphique n'est pas affiché, car il ne contient aucune valeur.","it-IT":"Il grafico non è visualizzato poiché non contiene alcun valore.","ja-JP":"チャートには値が含まれていないため、チャートは表示されません。","ko-KR":"차트에 값이 없으므로 차트가 표시되지 않습니다.","nl-NL":"Het diagram wordt niet weergegeven omdat deze geen waarden bevat.","pl-PL":"Wykres nie jest wyświetlany, ponieważ nie zawiera wartości.","pt-BR":"O gráfico não foi exibido porque não contém valores.","ru-RU":"Диаграмма не отображается, так как не содержит значений.","sv-SE":"Diagrammet visas inte eftersom det inte innehåller några värden.","tr-TR":"Değer içermemesi nedeniyle grafik görüntülenmiyor.","zh-CN":"图表未显示,因为它不包含任何值。","zh-TW":"系統不會顯示圖表,因為這沒有包含任何值。"}}};const YQ=()=>{const e=j(),t=e.language();return A((()=>{!function(e){const t="SNPivotTable_LimitedData";e.get(t)===t&&Object.keys(UQ).forEach((t=>{e.add(UQ[t])}))}(e)}),[e]),{translator:e,language:t}},KQ=e=>{const{flags:t}=e,n=N(),o=(e=>{const t=A((()=>jB(e)),[e]);return P((()=>()=>{t.unmount()}),[t]),t})(n),i=F(),a=z(),s=$(),l=W(),u=B(),c=AB(),d=((e,t)=>{const[r]=_B((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return{...await e.getEffectiveProperties()}}),[e,t]);return A((()=>{const e=void 0!==r?.qHyperCubeDef.qSortbyYValue&&1===Math.abs(r.qHyperCubeDef.qSortbyYValue),t=r?.qHyperCubeDef.qDimensions.map((e=>e.qDef.qSortCriterias))??[];return{qAlwaysFullyExpanded:r?.qHyperCubeDef.qAlwaysFullyExpanded??!1,qExpansionState:r?.qHyperCubeDef.qExpansionState,isSortedByFirstMeasure:e,getSortCriteriaForDimension:e=>t[e]}}),[r])})(a,i),p=$Q(i,t),f=(e=>{const t=_();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}})(p.isSnapshot),h=G(),m=DB(i,n),{translator:g,language:b}=YQ(),{pageInfo:v,updatePageInfo:y}=((e,t)=>{const{size:r,layout:{qHyperCube:{qSize:n}}}=e,o=t.isDownloadedAsPDForImage||e.isSnapshot,i=(e=>e.layout.snapshotData?.content?.rowsPerPage)(e),[a,s]=L((()=>{const a=((e,t)=>t.isDownloadedAsPDForImage?t.viewState?.renderPage??0:e.isSnapshot?e.layout.snapshotData?.content?.page??0:0)(e,t);return{page:a,shouldShowPagination:n.qcy>r.y&&!o,...GQ(n.qcy,a,i)}})),l=e.layout.qHyperCube.qSize.qcy;return P((()=>{s((t=>({...t,...GQ(l,t.page,i),shouldShowPagination:l>e.size.y&&!o})))}),[l,e.size.y,s,o,i]),P((()=>{const{page:e,totalPages:t}=a;if(e+1>t){const e=t-1,r=BQ({...a,page:e});s({...a,page:e,rowsOnCurrentPage:r})}}),[a]),{pageInfo:a,updatePageInfo:e=>{s({...a,...e,rowsOnCurrentPage:BQ({...a,...e})})}}})(p,c),x=((e,t,r)=>A((()=>((e,t)=>{if(e.isDownloadedAsPDForImage){const{viewState:t}=e;return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:t?.scrollTop??0,scrollLeft:t?.scrollLeft??0,leftGridScrollLeft:t?.leftGridScrollLeft??0,topGridScrollTop:t?.topGridScrollTop??0}}return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:t?.content?.scrollTop??0,scrollLeft:t?.content?.scrollLeft??0,leftGridScrollLeft:t?.content?.leftGridScrollLeft??0,topGridScrollTop:t?.content?.topGridScrollTop??0}})(r,t.snapshotData)),[r,e.page,t.snapshotData]))(v,i,c),S=VQ({rect:H(),layoutService:p,viewService:x,model:a,pageInfo:v}),[w,C]=WQ({model:a,layoutService:p,viewService:x,pageInfo:v,rect:S}),E=A((()=>((e,t)=>{const r=t.layout.components?.find((e=>"theme"===e.key)),n=r?.header,o=r?.dimensionValues,i=r?.measureValues,a=r?.measureLabels,s=r?.totalValues,l=r?.nullValues,u=r?.grid,c=(t,r,n)=>e.getStyle(t,r,n),d=+(u?.[AQ.LineClamp]??c(IQ.Grid,kQ.Grid,LQ.LineClamp)??1),p=+(u?.[AQ.ColumnLineClamp]??c(IQ.Grid,kQ.Grid,LQ.ColumnLineClamp)??1),f=DQ(e,n?.[AQ.Background])??c(IQ.Dimension,kQ.LabelName,LQ.BackgroundColor)??oB.Transparent,h={header:{fontSize:PQ(n?.[AQ.FontSize])??c(IQ.Dimension,kQ.LabelName,LQ.FontSize)??QW,fontFamily:n?.[AQ.FontFamily]??c(IQ.Dimension,kQ.LabelName,LQ.FontFamily)??eB,fontWeight:OQ(n?.[AQ.FontStyle],tB),fontStyle:TQ(n?.[AQ.FontStyle]),textDecoration:qQ(n?.[AQ.FontStyle]),color:DQ(e,n?.[AQ.FontColor])??c(IQ.Dimension,kQ.LabelName,LQ.FontColor)??p$.TEXT,background:f,hoverBackground:WW(f,cN),activeBackground:WW(f,dN)},dimensionValues:{fontSize:PQ(o?.[AQ.FontSize])??c(IQ.Dimension,kQ.LabelValue,LQ.FontSize)??QW,fontFamily:o?.[AQ.FontFamily]??c(IQ.Dimension,kQ.LabelValue,LQ.FontFamily)??eB,fontWeight:OQ(o?.[AQ.FontStyle],void 0),fontStyle:TQ(o?.[AQ.FontStyle]),textDecoration:qQ(o?.[AQ.FontStyle]),color:DQ(e,o?.[AQ.FontColor])??c(IQ.Dimension,kQ.LabelValue,LQ.FontColor)??p$.TEXT,background:DQ(e,o?.[AQ.Background])??c(IQ.Dimension,kQ.LabelValue,LQ.BackgroundColor)??oB.Transparent},measureValues:{fontSize:PQ(i?.[AQ.FontSize])??c(IQ.Measure,kQ.LabelValue,LQ.FontSize)??QW,fontFamily:i?.[AQ.FontFamily]??c(IQ.Measure,kQ.LabelValue,LQ.FontFamily)??eB,fontWeight:OQ(i?.[AQ.FontStyle],"normal"),fontStyle:TQ(i?.[AQ.FontStyle]),textDecoration:qQ(i?.[AQ.FontStyle]),color:DQ(e,i?.[AQ.FontColor])??c(IQ.Measure,kQ.LabelValue,LQ.FontColor)??oB.FontSecondary,background:DQ(e,i?.[AQ.Background])??c(IQ.Measure,kQ.LabelValue,LQ.BackgroundColor)??oB.Transparent},measureLabels:{fontWeight:OQ(a?.[AQ.FontStyle],"normal"),fontStyle:TQ(a?.[AQ.FontStyle]),textDecoration:qQ(a?.[AQ.FontStyle]),color:DQ(e,a?.[AQ.FontColor])??c(IQ.Measure,kQ.LabelName,LQ.FontColor)??oB.FontSecondary,background:DQ(e,a?.[AQ.Background])??c(IQ.Measure,kQ.LabelName,LQ.BackgroundColor)??oB.Transparent},totalValues:{fontWeight:OQ(s?.[AQ.FontStyle],tB),fontStyle:TQ(s?.[AQ.FontStyle]),textDecoration:qQ(s?.[AQ.FontStyle]),color:DQ(e,s?.[AQ.FontColor])??c(IQ.Total,kQ.LabelValue,LQ.FontColor)??p$.TEXT,background:DQ(e,s?.[AQ.Background])??c(IQ.Total,kQ.LabelValue,LQ.BackgroundColor)??oB.Transparent},nullValues:{fontWeight:OQ(l?.[AQ.FontStyle],"normal"),fontStyle:TQ(l?.[AQ.FontStyle]),textDecoration:qQ(l?.[AQ.FontStyle]),color:DQ(e,l?.[AQ.FontColor])??c(IQ.Null,kQ.LabelValue,LQ.FontColor)??p$.TEXT,background:DQ(e,l?.[AQ.Background])??c(IQ.Null,kQ.LabelValue,LQ.BackgroundColor)??oB.NullValueBackground},grid:{columnLineClamp:p,lineClamp:d,border:DQ(e,u?.[AQ.Border])??c(IQ.Grid,kQ.Grid,LQ.BorderColor)??oB.DividerLight,divider:DQ(e,u?.[AQ.Divider])??c(IQ.Grid,kQ.Divider,LQ.BorderColor)??oB.DividerDark,background:DQ(e,u?.[AQ.Background])??c(IQ.Grid,kQ.Grid,LQ.BackgroundColor)??oB.Transparent},selectedColors:$W(e)};return h.headerCellHeight=Math.max(_Q(h.header.fontSize,p),_Q(h.dimensionValues.fontSize,p),32),h.contentCellHeight=Math.max(_Q(h.measureValues.fontSize,d),_Q(h.dimensionValues.fontSize,d),24),h.dimensionValueTextHeight=_Q(h.dimensionValues.fontSize,1),h})(m,p)),[m,p]),R=((e,t,r)=>{const[,n,o]=_B((async()=>{const t=D$(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,FB].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})(m,i,e),M=I(),k=e.flags.isEnabled("CLIENT_IM_6225_PIVOT_TABLE_RTL")?M.direction:"ltr";FQ([zQ({model:a,layoutService:p,effectivePropertiesService:d,translator:g})]),P((()=>{!C&&a&&!!w&&R&&((e,{selections:t,baseObjects:n,coreServices:o,nebulaObjects:i})=>{const a=MQ(n.direction);e.render(Zo.jsx(r.StrictMode,{children:Zo.jsx(RO,{theme:a,children:Zo.jsx(gH,{...i,children:Zo.jsx(fH,{...n,children:Zo.jsx(vK,{selections:t,children:Zo.jsx(yH,{...o,children:Zo.jsx(oU,{children:Zo.jsx(mJ,{})})})})})})})}))})(o,{selections:h,baseObjects:{rect:S,pageInfo:v,qPivotDataPages:w,updatePageInfo:y,direction:k},nebulaObjects:{env:e,app:s,model:a,embed:l,theme:m,keyboard:u,translator:g,interactions:f},coreServices:{styleService:E,viewService:x,layoutService:p,downloadService:c,effectivePropertiesService:d}})}),[a,s,S,f,h,x,p,c,C,w,E,o,R,g,b,v,y,d,l,u,m,e,k])},XQ={version:"6.1.0",qHyperCubeDef:{qAlwaysFullyExpanded:!1,qDimensions:[],qMeasures:[],qMode:"P",qSuppressMissing:!0,qSuppressZero:!1,qShowTotalsAbove:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:50,qHeight:50}],qIndentMode:!1},showTitles:!0,title:"",subtitle:"",footnote:"",nullValueRepresentation:{text:"-"},components:[]},JQ=()=>({...XQ,qHyperCubeDef:{...XQ.qHyperCubeDef,qIndentMode:!1}})}}}));
177
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,s,l,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(m="",b=(d=t[0]).length%l,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-b+1)%l)&&y<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),h+(r?"-":"")+n+x}},kW({exports:{}});const zW=(e,t=p$.TEXT,r=p$.WHITE)=>{const n=M$(e),o=M$(t),i=M$(r);return n.isInvalid()?t:function(e,t,r){const n=A$(e,t),o=A$(e,r);if(void 0!==n&&void 0!==o)return n>o?t:r}(n,i,o).getRGB()},$W=e=>{const t=e.getStyle("","","dataColors.selected")||p$.SELECTED,r=function(e,t){const r=M$("#FFFFFF"),n=M$(e),o=M$(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;const i=A$(r,n),a=A$(o,n),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?"#FFFFFF":"#000000"}(t,p$.TEXT);return{background:t,color:r}},WW=(e,t)=>{const r=M$(e);return 0===r.a?(r.setAlpha(t.opacity),r.getString()):r.isDark()?r.getBrightenedColor(t.brighter).getString():r.getDarkenedColor(t.darker).getString()},BW=e=>{const t=M$(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},GW=e=>{e.stopPropagation(),e.preventDefault()},HW=(e,t,r,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:n??!1,defaultValue(e,t,o){const i=n?.(e,t,o)??!1,a=o.theme.current(),s=r(a,i);return{color:"transparent"===s?"none":s}}}),VW=(e,t=!1)=>{return{value:e,label:t?(r=e,r.charAt(0).toUpperCase()+r.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var r},UW=({ref:e,themeAccessor:t,translator:r,flags:n})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,r,n)=>{const o=t.fontFamily??"Source Sans Pro, sans-serif",i=t.fontFamilies??[],a=Array.from(new Set([e,o,...i])),s=[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0},...a.sort().map((e=>VW(e,!0)))],l=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...D$(n).filter((e=>!a.includes(e))).map((e=>VW(e,!0)))];return[...s,...l.length>1?l:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),YW=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],KW=({ref:e,themeAccessor:t,translator:r})=>({component:"dropdown",ref:e,options:(e,n,o)=>{const i=o.theme.current();return((e,t,r)=>{const n=t.fontSize,o=t.fontSizes??[],i=Array.from(new Set([e,n,...o])),a=[{value:"ThemeHeader",label:r.get("properties.themeFontSizes"),metaText:r.get("properties.theme"),groupHeader:!0},...i.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>VW(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...YW.filter((e=>!i.includes(e))).map((e=>VW(e,!1)))];return[...a,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),XW=({section:e,defaultFontStyle:t,translator:r,flags:n,getThemeValue:o,translation:i,disableNoneCallback:a})=>({component:"panel-section",translation:i??`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:UW({ref:`${e}.fontFamily`,themeAccessor:t=>o(t,e,"fontFamily")??t.fontFamily,translator:r,flags:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:t??[]},fontSize:KW({ref:`${e}.fontSize`,themeAccessor:t=>o(t,e,"fontSize")??t.fontSize,translator:r}),fontColor:HW(`${e}.fontColor`,void 0,(t=>o(t,e,"color")??t.color))}},background:HW(`${e}.background`,"properties.background",((t,r)=>{const n=r?p$.WHITE:p$.TRANSPARENT;return o(t,e,"backgroundColor")??n}),a)}}}}),JW=({section:e,defaultFontStyle:t,fallbackBackground:r,getThemeValue:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:t??[]},fontColor:HW(`${e}.fontColor`,void 0,(t=>n(t,e,"color")??t.color))}},background:HW(`${e}.background`,"properties.background",(t=>n(t,e,"backgroundColor")??r??"transparent"))}}}}),ZW=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}),QW="12px",eB="Source Sans Pro, sans-serif",tB="600",rB=15e3,nB=4/3;let oB=function(e){return e.Transparent="transparent",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2",e}({}),iB=function(e){return e.Solid="solid",e.None="none",e}({});const aB={display:"flex",justifyContent:"center",alignItems:"center"},sB={borderStyle:"solid"},lB={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},uB={lineHeight:nB,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},cB=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),dB=(e,t)=>e>0?`${e}px ${iB.Solid} ${t}`:iB.None,pB=(e,t,r,n,o)=>{const i=Number(!t||o?.right),a=Number(!e||o?.bottom);return{borderRight:"rtl"!==n?dB(i,r):iB.None,borderBottom:dB(a,r),borderLeft:"rtl"===n?dB(i,r):iB.None,borderTop:iB.None}},fB=(e,t,r,n,o,i,a)=>{const s=pB(t,n,o,i,a);return e.isLeftDimension||(e.isLastDimension&&!t&&(s.borderBottom=dB(2,o)),r||(s.borderLeft="rtl"!==i?dB(1,o):"none",s.borderRight="rtl"===i?dB(1,o):"none")),s},hB=({bottomDivider:e,rightDivider:t,borderColor:r})=>{const n={};return e&&(n.borderBottom=dB(1,r)),t&&(n.borderRight=dB(1,r)),n},mB=(e,t,r)=>{switch(t){case"header":return e.object?.pivotTableV2?.dimension?.label?.name?.[r];case"dimensionValues":return e.object?.pivotTableV2?.dimension?.label?.value?.[r];case"measureLabels":return e.object?.pivotTableV2?.measure?.label?.name?.[r];case"measureValues":return e.object?.pivotTableV2?.measure?.label?.value?.[r];case"totalValues":return e.object?.pivotTableV2?.total?.label?.value?.[r];case"nullValues":return e.object?.pivotTableV2?.null?.label?.value?.[r];default:return}},gB=(e,t)=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.PivotTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,defaultValue:[],items:{headerSection:XW({section:"header",defaultFontStyle:["bold"],translator:e,flags:t,getThemeValue:mB}),dimensionValueSection:XW({section:"dimensionValues",translator:e,flags:t,getThemeValue:mB}),measureValueSection:XW({section:"measureValues",translator:e,flags:t,getThemeValue:mB}),measureLabelSection:JW({section:"measureLabels",getThemeValue:mB}),totalValuesSection:JW({section:"totalValues",defaultFontStyle:["bold"],getThemeValue:mB}),nullValuesSection:JW({section:"nullValues",fallbackBackground:oB.NullValueBackground,getThemeValue:mB}),gridSection:{translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:ZW("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:ZW("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"),border:HW("grid.border","properties.border",(e=>e.object?.pivotTableV2?.grid?.borderColor??oB.DividerLight)),divider:HW("grid.divider","properties.pivot.divider",(e=>e.object?.pivotTableV2?.grid?.divider?.borderColor??oB.DividerDark)),background:HW("grid.background","properties.background",(e=>e.object?.pivotTableV2?.grid?.backgroundColor??oB.Transparent))}}}}}}]}),bB=e=>{if(e.isEnabled("CLIENT_IM_5973_PIVOT_TABLE_EXPLORATION"))return{chartExploration:{type:"items",translation:"properties.chartExploration",items:{chartExplorationToggler:{type:"items",component:"chart-exploration-toggler",translation:"properties.enableChartExploration",ref:"enableChartExploration"},visibilityToggler:{show:e=>e.enableChartExploration,component:"buttongroup",translation:"properties.ChartExploration.VisibilityOption",ref:"chartExploration.menuVisibility",options:[{value:"auto",translation:"Common.Auto"},{value:"minimized",translation:"properties.ChartExploration.Minimized"}]}},show:e=>!e.insideContainer}}},vB=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[gB(e,t),{type:"items",items:{nullValueText:{ref:"nullValueRepresentation.text",type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"},alwaysFullyExpanded:{ref:"qHyperCubeDef.qAlwaysFullyExpanded",type:"boolean",translation:"properties.pivot.fullyExpanded",defaultValue:!1},indentMode:{ref:"qHyperCubeDef.qIndentMode",type:"boolean",translation:"properties.pivot.indentMode",defaultValue:!1,change(e){e.qHyperCubeDef.qShowTotalsAbove=!0}},type:{type:"string",component:"dropdown",ref:"qHyperCubeDef.indentModeColumnWidth.type",translation:"Object.Table.Column.Width",options:[{value:uN.Auto,translation:"Common.Auto"},{value:uN.Pixels,translation:"Object.Table.Column.Pixels"},{value:uN.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:uN.Auto,show:e=>!!e.qHyperCubeDef.qIndentMode},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:lN.PixelsDefault,show:e=>{const t=e.qHyperCubeDef;return t.qIndentMode&&t.indentModeColumnWidth?.type===uN.Pixels}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",component:"expression",expressionType:"ValueExpression",expression:"optional",defaultValue:lN.PercentageDefault,show:e=>{const t=e.qHyperCubeDef;return t.qIndentMode&&t.indentModeColumnWidth?.type===uN.Percentage}},showTotalsAbove:{ref:"qHyperCubeDef.qShowTotalsAbove",type:"boolean",translation:"properties.pivot.showTotalsAbove",defaultValue:!0,show(e){const{qIndentMode:t}=e.qHyperCubeDef;return!t&&!!e.qHyperCubeDef.qDimensions.some((e=>"TOTAL_EXPR"===e.qOtherTotalSpec?.qTotalMode))}},resetProperties:{type:"object",component:"button",translation:"properties.pivot.resetExpansionButton",disabled:e=>!!e.qHyperCubeDef.qAlwaysFullyExpanded,action(e,t,r,n){e.qHyperCubeDef.qExpansionState=[],n.$emit("saveProperties",e)}}}}]},...bB(t)}}),yB="auto",xB={type:"items",translation:"properties.sorting",items:{sortbyY:{type:"items",items:{sortbyYToggle:{ref:"qHyperCubeDef.qSortbyYValue",type:"boolean",component:"switch",translation:"properties.sorting.sortByY.label",convertFunctions:{get:e=>!!e("integer"),set:(e,t)=>{t("integer",e?-1:0)}},options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},sortbyYOrder:{ref:"qHyperCubeDef.qSortbyYValue",type:"string",component:"dropdown",defaultValue:0,options:[{value:1,translation:"properties.sorting.ascending"},{value:-1,translation:"properties.sorting.descending"}],show:e=>!!e.qHyperCubeDef.qSortbyYValue}}},defaultSorting:{uses:"sorting",items:{dimensions:{showPriority:!1,allowMove:!1},measures:{included:!1}}},searchSorting:{ref:"search.sorting",type:"string",component:"dropdown",defaultValue:yB,translation:"Object.Table.SortingInSearch",options:[{value:yB,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function SB(e){const{translator:t,flags:r}=e;return{type:"items",component:"accordion",items:{data:c$(e),sorting:xB,addons:Gz,settings:vB(t,r)}}}function wB(e){return{support:{cssScaling:!0,snapshot:!0,export:!0,exploration:e.flags.isEnabled("CLIENT_IM_5973_PIVOT_TABLE_EXPLORATION"),sharing:!1,exportData:!0,viewData:!0},usePropertyHandler:"pivot-data",definition:SB(e),importProperties:Wz(e),exportProperties:Bz,exploration:BN(e)}}const CB=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function EB(e,t){return A((()=>e),t)}const RB={},MB=e=>{const t=A((()=>({current:RB})),[]);return t.current=t.current===RB?e:t.current,t},AB=()=>{const{viewState:e}=I(),t=MB(new Set),r=void 0!==window.qlikprinting,{promise:n,resolve:o}=A((()=>CB()),[]),i=EB((e=>{r&&t.current.add(e)}),[t]),a=EB(function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var n=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(n,i)}),r)}}((async()=>{await Promise.all(t.current),t.current.clear(),o()}),1e3),[o,t]);return k((async()=>{r&&await n}),[n,r]),A((()=>({viewState:e,isDownloadedAsPDForImage:r,notifyIsDoneRendering:a,waitForPromise:i})),[a,r,e,i])},IB=e=>!!e&&0===M$(e).a,kB="#grid",LB=(e,t)=>{const r=t?.closest(e);return r&&window.getComputedStyle(r).backgroundColor},PB=(e,t,r,n,o)=>{const i=LB(".qv-object .qv-inner-object",r),a=LB(".qv-panel-sheet",r),s=LB(kB,r)??a,l=(e=>{const t=e.components?.find((e=>"general"===e.key)),r=t?.bgColor?.colorExpression,n=t?.bgColor?.color?.color,o=t?.bgColor?.useColorExpression;if(o&&r)return BW(r);if("none"===n)return"transparent";if(void 0===n)return;const i=M$(n);return i.setAlpha(t?.bgColor?.color?.alpha??i.a),i.getRGBA()})(e),u=n?.(t),c=o?.(t),d=l||u||i||c,p=IB(d),f=!IB(h=p?s:d)&&zW(h,p$.TEXT,p$.DARK_MODE_TEXT)===x$(p$.DARK_MODE_TEXT);var h;const m=((e,t,r,n=p$.WHITE)=>e&&!IB(e)?e:IB(t)?r&&!IB(r)?r:n:t)(l,d,s);return{color:d,headerColor:m,isDark:f}},DB=(e,t,r,n)=>{const o=D(),i=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,n]=L([]);return P((()=>{let r;return e&&(r=new MutationObserver((e=>{n(e)})),r.observe(e,t)),()=>{r?.disconnect()}}),[e,t]),r})(t.closest(kB),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>e?.includes("background"))).map((({oldValue:e})=>e)).join(",");return A((()=>({...o,background:PB(e,o,t,r,n)})),[o.name(),t,r,n,e,i])};function _B(e,t){const r=A((()=>({isLoading:!0})),t),[n,o]=k((async()=>{try{return await e()}finally{r.isLoading=!1}}),t);return[n,r.isLoading,o]}const OB=3;function TB(e,t,r){let n=0,o=e.length;if(e.length<=1)return null;if(r(e)<=t)return null;for(;n<=o;){const i=Math.floor((n+o)/2),a=e.slice(0,i),s=e.slice(0,i-1),l=r(a),u=r(s);if(l>t&&u<=t)return e.slice(i-1)||null;if(l===t)return e.slice(i)||null;l<t?n=i+1:o=i}return null}function qB({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=OB}={},{estimateWidth:a,measureText:s,estimateLineCount:l}=g((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const a=DW(o.measureText.bind(o)),s=e=>+a(e).width.toFixed(2),l=DW((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=TB(o,t,s)}while(null!==o&&n<i);return n}),(({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a("N").width*e,estimateLineCount:l}}),[r,n,e,t,i]);return{estimateWidth:a,measureText:s,estimateLineCount:l}}var jB,NB=C;jB=NB.createRoot,NB.hydrateRoot;const FB="Source Sans Pro, sans-serif";function zB(e,t){const[r,n]=b(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}var $B={NebulaTableUtils_ColumnAdjuster_ColumnNameLabel:{id:"NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",locale:{"de-DE":"Breite von {0}","en-US":"Width of {0}","es-ES":"Ancho de {0}","fr-FR":"Largeur de {0}","it-IT":"Larghezza di {0}","ja-JP":"{0} の幅","ko-KR":"{0}의 너비","nl-NL":"Breedte van {0}","pl-PL":"Szerokość kolumny {0}","pt-BR":"Comprimento de {0}","ru-RU":'Ширина столбца "{0}"',"sv-SE":"Bredd på {0}","tr-TR":"{0} genişliği","zh-CN":"{0} 的宽度","zh-TW":"{0} 的寬度"}},NebulaTableUtils_MenuGroupLabel_Sorting:{id:"NebulaTableUtils.MenuGroupLabel.Sorting",locale:{"de-DE":"Sortierung","en-US":"Sorting","es-ES":"Ordenación","fr-FR":"Tri","it-IT":"Ordinamento","ja-JP":"ソート","ko-KR":"정렬","nl-NL":"Sorteren","pl-PL":"Sortowanie","pt-BR":"Classificação","ru-RU":"Сортировка","sv-SE":"Sortering","tr-TR":"Sıralama","zh-CN":"排序","zh-TW":"排序"}},NebulaTableUtils_MenuItemLabel_AdjustColumnSize:{id:"NebulaTableUtils.MenuItemLabel.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":"調整欄大小"}},NebulaTableUtils_MenuItemLabel_ClearSelections:{id:"NebulaTableUtils.MenuItemLabel.ClearSelections",locale:{"de-DE":"Auswahlen 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":"Geselecteerde waarden 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":"清除選項"}},NebulaTableUtils_MenuItemLabel_Collapse:{id:"NebulaTableUtils.MenuItemLabel.Collapse",locale:{"de-DE":"Reduzieren","en-US":"Collapse","es-ES":"Contraer","fr-FR":"Réduire","it-IT":"Comprimi","ja-JP":"折りたたむ","ko-KR":"축소","nl-NL":"Samenvouwen","pl-PL":"Zwiń","pt-BR":"Recolher","ru-RU":"Свернуть","sv-SE":"Dölj","tr-TR":"Daralt","zh-CN":"折叠","zh-TW":"收合"}},NebulaTableUtils_MenuItemLabel_ColumnOptions:{id:"NebulaTableUtils.MenuItemLabel.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":"欄選項"}},NebulaTableUtils_MenuItemLabel_Expand:{id:"NebulaTableUtils.MenuItemLabel.Expand",locale:{"de-DE":"Erweitern","en-US":"Expand","es-ES":"Expandir","fr-FR":"Développer","it-IT":"Espandi","ja-JP":"展開","ko-KR":"확장","nl-NL":"Uitvouwen","pl-PL":"Rozwiń","pt-BR":"Expandir","ru-RU":"Развернуть","sv-SE":"Utöka","tr-TR":"Genişlet","zh-CN":"展开","zh-TW":"展開"}},NebulaTableUtils_MenuItemLabel_Search:{id:"NebulaTableUtils.MenuItemLabel.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":"搜尋"}},NebulaTableUtils_MenuItemLabel_SelectAll:{id:"NebulaTableUtils.MenuItemLabel.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":"全選"}},NebulaTableUtils_MenuItemLabel_SelectAlternative:{id:"NebulaTableUtils.MenuItemLabel.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":"選取替代選項"}},NebulaTableUtils_MenuItemLabel_SelectExcluded:{id:"NebulaTableUtils.MenuItemLabel.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":"選取排除值"}},NebulaTableUtils_MenuItemLabel_SelectPossible:{id:"NebulaTableUtils.MenuItemLabel.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":"選取可能值"}},NebulaTableUtils_MenuItemLabel_Selections:{id:"NebulaTableUtils.MenuItemLabel.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":"選項"}},NebulaTableUtils_MenuItemLabel_SortAscending:{id:"NebulaTableUtils.MenuItemLabel.SortAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortieren","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Trier 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":"以遞增方式排序"}},NebulaTableUtils_MenuItemLabel_SortDescending:{id:"NebulaTableUtils.MenuItemLabel.SortDescending",locale:{"de-DE":"In absteigender Reihenfolge sortieren","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Trier 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":"以遞減方式排序"}},NebulaTableUtils_Pagination_DisplayedRowsLabel:{id:"NebulaTableUtils.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":"{0}/{1}","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}"}},NebulaTableUtils_Pagination_FirstPage:{id:"NebulaTableUtils.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":"移至第一頁"}},NebulaTableUtils_Pagination_LastPage:{id:"NebulaTableUtils.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":"移至最後一頁"}},NebulaTableUtils_Pagination_NextPage:{id:"NebulaTableUtils.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":"移至下一頁"}},NebulaTableUtils_Pagination_PreviousPage:{id:"NebulaTableUtils.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":"移至上一頁"}},NebulaTableUtils_Pagination_RowsPerPage:{id:"NebulaTableUtils.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":"每頁列數"}},NebulaTableUtils_Pagination_SelectPage:{id:"NebulaTableUtils.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":"選取頁面"}}};const WB=({translator:e})=>(g((()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys($B).forEach((t=>{e.add($B[t])}))}}(e)}),[e]),e),BB={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},GB={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},HB=rl("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":{...BB},"&::-moz-range-track":{...BB},"&::-ms-track":{...BB},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...GB},"&::-moz-range-thumb":{...GB},"&::-ms-thumb":{...GB},"&: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"}}))),VB=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:s,setIsAdjustingWidth:l,isLeftColumn:c,accessibilityRelatedArgs:d,direction:p="ltr"})=>{const f=WB({translator:d.translator}),h=u({initWidth:e,columnWidth:e,initX:0}),m=r?0:1,g=n&&!c,b=()=>g?h.current.columnWidth-m:"100%",v={left:"rtl"!==p?b():void 0,right:"rtl"===p?b():void 0},y=t=>{h.current={initWidth:e,columnWidth:e,initX:t??h.current.initX}};zB((()=>{g&&y()}),[e]);const x=e=>{const t=Math.max(e,lN.PixelsMin);h.current.columnWidth=t,i(t)},S=()=>{if(h.current.columnWidth!==h.current.initWidth){const e={type:uN.Pixels,pixels:h.current.columnWidth};a(e)}else l?.(!1)},w=e=>{const t="rtl"===p?h.current.initWidth+h.current.initX-e.clientX:h.current.initWidth+e.clientX-h.current.initX;x(t)},C=e=>{GW(e),document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",C),S()},E=e=>{const t="rtl"===p?h.current.initWidth+-h.current.initX-e.touches[0].clientX:h.current.initWidth+e.touches[0].clientX-h.current.initX;x(t)},R=e=>{GW(e),document.removeEventListener("touchmove",E),document.removeEventListener("touchend",R),S()},M=!n&&s?e=>{if(e.key===aN.Left||e.key===aN.Right){GW(e);const t=5,r=e.key===aN.Left?t:-t,n="rtl"===p?r:-r;l?.(!0),x(h.current.columnWidth+n)}else e.key===aN.Space||e.key===aN.Enter?(GW(e),s(e),l?.(!1),S()):e.key===aN.Esc&&(GW(e),s(e),l?.(!1),x(h.current.initWidth))}:void 0,A=f.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(d.columnLabel)]);return Zo.jsx(HB,{style:v,hoverColor:o,isLastColumn:r,className:sN,"data-testid":sN,onMouseDown:e=>{GW(e),document.addEventListener("mousemove",w),document.addEventListener("mouseup",C),l?.(!0),y(e.clientX)},onDoubleClick:()=>{a({type:uN.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(GW(e),document.addEventListener("touchmove",E),document.addEventListener("touchend",R),l?.(!0),y(e.touches[0].clientX))},onKeyDown:M,onBlur:s,onFocus:()=>{y()},type:"range",tabIndex:-1,"aria-label":A,"aria-valuemin":lN.PixelsMin,"aria-valuemax":lN.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:p},t)},UB=x(((e,t)=>Zo.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:Zo.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})}))),YB=rl(Gu,{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"}))),KB=rl(UB,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),XB=rl(Ud)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),JB=rl(Nc)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),ZB=rl(Zd)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),QB=rl(Zd,{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"}))),eG=rl("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"}))),tG=rl("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),rG=rl(au)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),nG=rl(xd,{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}))),oG=x(((e,t)=>Zo.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:Zo.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})}))),iG=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?iG(t):t:e.parentElement?.children?.[0]},aG=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?aG(t):t},sG=e=>{const{key:t,currentTarget:r}=e,n=document.activeElement??r;if(t===aN.Down||t===aN.Up){const r=e=>t===aN.Down?iG(e):aG(e);e.preventDefault(),e.stopPropagation();let o=r(n);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=r(o)}}},lG=(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 uG={};const cG=({autoFocus:e,id:t,onClick:n,itemTitle:o,icon:i,enabled:a,subMenus:s,isSubMenu:l,isActive:u,direction:c,isPagination:d})=>{const[p,f]=b(!1),m=r.useRef(null),g=h((e=>{e.stopPropagation(),f(!1)}),[f]);return Zo.jsxs(Zo.Fragment,{children:[Zo.jsxs(QB,{ref:s?m:null,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),uG={}),s?.length&&(f(!0),uG[o]=f,e.stopPropagation()))},disabled:!a,autoFocus:e,isSubMenu:!!l,isActive:!!u,onKeyDown:sG,children:[u?Zo.jsx(eG,{direction:c,isPagination:d}):null,Zo.jsxs(tG,{children:[Zo.jsx(nG,{direction:c,isPagination:d,children:Zo.jsx(i,{})}),Zo.jsx(rG,{variant:"body2",children:o})]}),s?.length?Zo.jsx(oG,{}):null]},t),s?.length?Zo.jsx(hG,{isSubMenu:!0,open:p,anchorEl:m.current,onClose:g,menuGroups:lG(s,uG),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:c,isPagination:d}):null]})},dG=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((e=>[[e.groupHeading&&Zo.jsx(ZB,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map((e=>Zo.jsx(cG,{...e,isSubMenu:t,direction:r,isPagination:n},e.id)))].filter(Boolean)])),pG=({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(((o,i)=>[dG({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?Zo.jsx(JB,{"data-testid":"group-divider",variant:"middle"}):void 0])),fG={appear:0,enter:0,exit:0},hG=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?Zo.jsx(XB,{className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:r,transitionDuration:fG,MenuListProps:{id:"nebula-table-utils-head-menu-list-id"},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:pG({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})}):null,mG=(e,t)=>e.some((e=>t[e]>0)),gG={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},bG=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=b(null),[a,s]=b(gG);return zB((()=>{e||(s(gG),i(null))}),[e]),p((()=>{if(!n?.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{const e=((e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}))(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:mG(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:mG(["qSelected"],e),canSelectPossible:mG(["qOption"],e),canSelectAlternative:mG(["qAlternative"],e),canSelectExcluded:mG(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},vG=x(((e,t)=>Zo.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:Zo.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"})}))),yG=x(((e,t)=>Zo.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:Zo.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 0m0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m-1-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 0M9.166 6.166c1.555-1.555 4.113-1.555 5.668 0s1.555 4.113 0 5.668-4.113 1.555-5.668 0-1.555-4.063 0-5.668m4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304z"})}))),xG=x(((e,t)=>Zo.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:Zo.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"})}))),SG=x(((e,t)=>Zo.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:Zo.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"})}))),wG=x(((e,t)=>Zo.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:Zo.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"})}))),CG=x(((e,t)=>Zo.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:Zo.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"})}))),EG=x(((e,t)=>Zo.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:Zo.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"})}))),RG=x(((e,t)=>Zo.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:Zo.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"})}))),MG=x(((e,t)=>Zo.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:Zo.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"})}))),AG=x(((e,t)=>Zo.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:Zo.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"})}))),IG=x(((e,t)=>Zo.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:Zo.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"})}))),kG=x(((e,t)=>Zo.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:Zo.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"})}))),LG=x(((e,t)=>Zo.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:Zo.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 PG=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const DG="/qListObjectDef",_G=({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[PG.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:vG,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:SG,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:EG,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:RN,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];r[PG.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:RG,enabled:!0}]}]),!e.isLocked&&r[PG.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:LG,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAll(DG))},icon:MG,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectPossible(DG))},icon:kG,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAlternative(DG))},icon:AG,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectExcluded(DG))},icon:IG,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.clearSelections(DG))},icon:yG,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:CG,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:wG,enabled:!0}]}]),o.length>0&&f.push(...o)}return r[PG.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),c?.(u)},icon:xG,enabled:!0}]}]),f},OG=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,menuAvailabilityFlags:a,shouldShowMenuIcon:s=!0,sortRelatedArgs:l,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p,expandOrCollapseArgs:f,model:m,direction:g="ltr",isPagination:b,isAccessibleHeader:v,iconSize:y=rN})=>{const x=u(null),S=WB({translator:o}),{qLibraryId:w,fieldId:C,headTextAlign:E}=n,R=d?.app,{fieldInstance:M,selectionActionsEnabledStatus:A}=bG({open:e,headerData:n,app:R,qStateName:d?.qStateName}),I=(({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})({model:m,headerData:n}),k=(({qLibraryId:e,fieldId:t,searchRelatedArgs:r,selectionRelatedArgs:n,direction:o,onPopoverClose:i})=>h((()=>{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]))({qLibraryId:w,fieldId:C,searchRelatedArgs:c,selectionRelatedArgs:d,direction:g}),L=h((e=>{e.stopPropagation(),t(!1)}),[t]),P=h((e=>{e.stopPropagation(),t((e=>!e))}),[t]);return i.active?Zo.jsxs(YB,{rightAligned:"right"===E,shouldShowMenuIcon:s,className:"nebula-table-utils-head-menu-wrapper",onClick:!1===v?P:void 0,ref:x,isAccessibleHeader:v,children:[s?Zo.jsx(KB,{height:y,className:nN,"data-testid":nN,isInteractionsActive:i.active??!1,children:Zo.jsx(UB,{})}):null,Zo.jsx(hG,{open:e,anchorEl:!1===v?x.current:r.current,onClose:L,menuGroups:_G({headerData:n,translator:S,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:k,interactions:i,fieldInstance:M,selectionActionsEnabledStatus:A,anchorRef:r,focusColumnAdjuster:p?.focusColumnAdjuster,setActiveFieldCallback:I,expandOrCollapseArgs:f}),direction:g,isPagination:b})]}):null},TG=e=>e.isDark?{background:e.color,borderColor:p$.DARK_MODE_BORDER,color:p$.DARK_MODE_TEXT,disabledColor:p$.DARK_MODE_DISABLED,iconColor:p$.DARK_MODE_TEXT}:{background:e.color,borderColor:p$.BORDER_MEDIUM,color:p$.TEXT,disabledColor:p$.DISABLED},qG=rl(Gu,{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}`}))),jG=rl(Dp,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),NG=rl(ec,{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)}))),FG=rl(au)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),zG=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=g((()=>TG(n.background)),[n]);if(!r.active)return null;const a=o?Zo.jsx(qG,{footerStyle:i,children:e}):null;return t?C.createPortal(e,t):a},$G=c({}),WG=()=>n($G),BG=({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})=>{const b=(e=>!e.enabled||e.active)(c)?0:-1,v=g((()=>TG(p.background)),[p]),y=o?o.getBoundingClientRect().width:h.width,x=WB({translator:d}),S=g((()=>({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})),[t,r,n,o,i,a,s,l,u,c,x,p,f,h,m,v,b,y]);return Zo.jsx($G.Provider,{value:S,children:e})};let GG=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),HG=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 VG=x(((e,t)=>Zo.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:Zo.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))),UG=x(((e,t)=>Zo.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:Zo.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})}))),YG=x(((e,t)=>Zo.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:Zo.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})}))),KG={FirstPage:UG,PreviousPage:VG,NextPage:oG,LastPage:YG,FirstPageRTL:YG,PreviousPageRTL:oG,NextPageRTL:VG,LastPageRTL:UG},XG=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=WG(),u=r.concat("rtl"===n?"RTL":""),c=KG[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}},JG=()=>{const{pageInfo:e,width:t,interactions:r}=WG(),n=0===e.page,{IconComponent:o,styledProps:i}=XG({type:GG.FirstPage,disabledCondition:n,pageNumber:0});return t<=HG.FirstPage?null:Zo.jsx(NG,{...i,disabled:!r.active,children:Zo.jsx(o,{height:rN})})},ZG=(e,t,r=!1)=>{r&&e.key===aN.Tab&&!e.shiftKey&&(GW(e),((e,t,r)=>{const n=e.closest(".qv-object-wrapper")?.querySelector(".sel-toolbar-confirm")?.parentElement??document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm")?.parentElement;n?n.focus():t.focusSelection?.(r)})(e.target,t,!1))},QG=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=WG(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=XG({type:GG.LastPage,disabledCondition:a,pageNumber:r-1}),u=t.enabled?e=>{ZG(e,t,n)}:void 0;return o<=HG.LastPage?null:Zo.jsx(NG,{...l,onKeyDown:u,disabled:!i.active,children:Zo.jsx(s,{height:rN})})},eH=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=WG(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=XG({type:GG.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(o>HG.FirstPage&&o>HG.LastPage)&&t.enabled?e=>{ZG(e,t,n)}:void 0;return Zo.jsx(NG,{...l,onKeyDown:u,disabled:!i.active,children:Zo.jsx(s,{height:rN})})},tH=()=>{const{pageInfo:e,interactions:t}=WG(),r=0===e.page,{IconComponent:n,styledProps:o}=XG({type:GG.PreviousPage,disabledCondition:r,pageNumber:e.page-1});return Zo.jsx(NG,{...o,disabled:!t.active,children:Zo.jsx(n,{height:rN})})},rH=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n}=WG(),{page:o,rowsPerPage:i}=r;if(t<=HG.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,n)}`,n.toString()]);return Zo.jsx(FG,{variant:"caption",dir:"ltr",children:a})},nH=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=WG(),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 Zo.jsxs(Zo.Fragment,{children:[Zo.jsxs(FG,{variant:"caption",id:p,children:[c,":"]}),Zo.jsx(jG,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:f,disabled:!l.active,children:r})]})},oH=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:r,width:n,handleChangeRowsPerPage:o}=WG();if(!(!!e.rowsPerPageOptions?.length&&!t&&n>HG.RowsPerPage&&r<=100)||void 0===e.rowsPerPageOptions)return null;const i=Zo.jsx(Zo.Fragment,{children:e.rowsPerPageOptions.map((e=>Zo.jsx("option",{value:e,children:e},e)))});return Zo.jsx(nH,{name:"RowsPerPage",value:e.rowsPerPage,options:i,handleChange:e=>{o?.(+e.target.value)}})},iH=1e3,aH="…",sH=({totalPages:e,page:t})=>{const r=Math.min(e,iH),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-iH):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return Zo.jsx("option",{value:t,children:t+1},t)}));return i>0&&a.unshift(Zo.jsx("option",{value:aH,disabled:!0,children:aH},"startMoreOptions")),o<e-1&&a.push(Zo.jsx("option",{value:aH,disabled:!0,children:aH},"endMoreOptions")),Zo.jsx(Zo.Fragment,{children:a})},lH=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n}=WG(),{page:o}=e;if(t<=HG.SelectPage)return null;const i=Zo.jsx(sH,{totalPages:r,page:o});return Zo.jsx(nH,{name:"SelectPage",value:o,options:i,handleChange:e=>{n(+e.target.value)}})};var uH=y((e=>Zo.jsxs(BG,{...e,children:[Zo.jsx(oH,{}),Zo.jsx(lH,{}),Zo.jsx(rH,{}),Zo.jsx(JG,{}),Zo.jsx(tH,{}),Zo.jsx(eH,{}),Zo.jsx(QG,{})]})));const cH=e=>Zo.jsx(zG,{...e,children:Zo.jsx(uH,{...e})}),dH=c({}),pH=()=>n(dH),fH=({rect:e,pageInfo:t,qPivotDataPages:r,updatePageInfo:n,direction:o,children:i})=>{const a=g((()=>({rect:e,pageInfo:t,qPivotDataPages:r,updatePageInfo:n,direction:o})),[e,t,r,n,o]);return Zo.jsx(dH.Provider,{value:a,children:i})},hH=c({}),mH=()=>n(hH),gH=({app:e,model:t,theme:r,embed:n,keyboard:o,translator:i,interactions:a,env:s,children:l})=>{const u=g((()=>({model:t,app:e,interactions:a,embed:n,theme:r,keyboard:o,env:s,translator:i})),[e,a,t,n,r,o,s,i]);return Zo.jsx(hH.Provider,{value:u,children:l})},bH=c({}),vH=()=>n(bH),yH=({children:e,...t})=>Zo.jsx(bH.Provider,{value:t,children:e}),xH=()=>{const{text:e,fontFamily:t,fontSize:r,justifyContent:n,alignItems:o,height:i}=(()=>{const{theme:e,translator:t}=mH(),{layoutService:r}=vH(),n=e.getStyle("","","fontFamily")??eB;return r.hasData?r.hasLimitedData?{text:t.get("SNPivotTable.LimitedData"),fontSize:"13px",fontFamily:n,alignItems:"center",height:"22px"}:{}:{text:t.get("SNPivotTable.NoData"),fontSize:"16px",fontFamily:n,justifyContent:"center",alignItems:"center",height:"100%"}})();return void 0===e?null:Zo.jsx("div",{style:{display:"flex",justifyContent:n,alignItems:o,width:"100%",height:i},children:Zo.jsx("span",{style:{...uB,fontFamily:t,fontSize:r,fontStyle:"italic",color:"#7b7a78"},children:e})})},SH="/qHyperCubeDef",wH=-1,CH="PSEUDO-DIM",EH=[];for(let e=0;e<256;++e)EH.push((e+256).toString(16).slice(1));let RH;const MH=new Uint8Array(16);var AH={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function IH(e,t,r){const n=(e=e||{}).random??e.rng?.()??function(){if(!RH){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");RH=crypto.getRandomValues.bind(crypto)}return RH(MH)}();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=15&n[6]|64,n[8]=63&n[8]|128,function(e,t=0){return(EH[e[t+0]]+EH[e[t+1]]+EH[e[t+2]]+EH[e[t+3]]+"-"+EH[e[t+4]]+EH[e[t+5]]+"-"+EH[e[t+6]]+EH[e[t+7]]+"-"+EH[e[t+8]]+EH[e[t+9]]+"-"+EH[e[t+10]]+EH[e[t+11]]+EH[e[t+12]]+EH[e[t+13]]+EH[e[t+14]]+EH[e[t+15]]).toLowerCase()}(n)}const kH=()=>crypto?.randomUUID?.()??function(e){return AH.randomUUID&&!e?AH.randomUUID():IH(e)}(),LH=e=>e===wH?CH:(({qLibraryId:e,cId:t})=>e??t??kH())(e),PH=({layoutService:e,visibleLeftDimensionInfos:t,cell:r,colIdx:n})=>{r&&(r.canBeResized=!0,r.colIdx=r.colIdx||n,r.dimensionInfoIndex===wH?r.columnWidthLocation=Zz.Measures:r.isLeftDimension?r.columnWidthLocation=Zz.Dimension:t.at(-1)===wH?r.columnWidthLocation=Zz.Measures:e.hasPseudoDimOnLeft&&(r.columnWidthLocation=Zz.Pivot))},DH=(e,t,r,n)=>{const o=LH(r),i=e.getDimensionInfoIndex(r),a=e.isLeftDimension(i);return r===wH?{id:o,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isLocked:!1,isDim:!1,isCyclic:!1,groupDimensionPos:0,groupDimensionLabels:[],headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:Zz.Measures,isPivot:!0,qEffectiveDimensionName:void 0}:{id:o,colIdx:0,label:r.qFallbackTitle,qReverseSort:r.qReverseSort,sortDirection:r.qSortIndicator&&"N"!==r.qSortIndicator?r.qSortIndicator:"A",qLibraryId:r.qLibraryId,fieldId:r.qGroupFieldDefs[r.qGroupPos],isLocked:r.qLocked??!1,columnWidth:r.columnWidth,qApprMaxGlyphCount:r.qApprMaxGlyphCount,isDim:!0,isCyclic:r.qGrouping===pN.Cyclic,groupDimensionPos:r.qGroupPos,groupDimensionLabels:r.qGroupFallbackTitles,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:Zz.Dimension,isPivot:!0,isSortedByFirstMeasure:t.isSortedByFirstMeasure,qEffectiveDimensionName:r.qEffectiveDimensionName}},_H=({layoutService:e,effectivePropertiesService:t,lastRow:r,lastCol:n})=>{let o=n;var i;r.length>0&&(o=(i=n).at(-1)===wH?i.slice(0,-1):i);const a=o.length+(r.length?1:0),s=Math.max(1,r.length),l=((e,t)=>Array(e).fill(null).map((()=>Array.from({length:t},(()=>null)))))(a,s);return r.forEach(((r,n,o)=>{const i=n===o.length-1;l[a-1][n]=DH(e,t,r,i)})),o.forEach(((r,n,o)=>{const i=n===o.length-1;l[n][s-1]=DH(e,t,r,i)})),l},OH=(e,t,r,n)=>{const o=((e,t,r,n)=>{let o;return o=0===r.length||r.includes(wH)?_H({layoutService:e,effectivePropertiesService:t,lastRow:n,lastCol:r}):(e=>e[0].map(((t,r)=>e.map((e=>e[r])))))(_H({layoutService:e,effectivePropertiesService:t,lastRow:r,lastCol:n})),e.isIndentModeEnabled&&o[o.length-1].length>1&&(o[o.length-1]=[o.at(-1),...new Array(o[0]?o[0].length-1:0).fill(null)]),o.length&&o.at(-1)?.forEach(((t,r)=>{Array.isArray(t)?t.forEach(((t,r)=>{PH({layoutService:e,visibleLeftDimensionInfos:n,cell:t,colIdx:r})})):PH({layoutService:e,visibleLeftDimensionInfos:n,cell:t,colIdx:r})})),o})(e,t,r,n);return{data:o,size:{x:o[0]?.length??0,y:o.length}}};function TH(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function qH(e,t,r){return t=zH(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,WH()?Reflect.construct(t,r||[],zH(e).constructor):t.apply(e,r))}function jH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NH(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,HH(n.key),n)}}function FH(e,t,r){return t&&NH(e.prototype,t),r&&NH(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function zH(e){return zH=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zH(e)}function $H(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&BH(e,t)}function WH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(WH=function(){return!!e})()}function BH(e,t){return BH=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},BH(e,t)}function GH(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return TH(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?TH(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function HH(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}function VH(e){return VH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},VH(e)}var UH={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));var t=[];return e.split("&").forEach((function(e){if(e){var r,n=e.indexOf("="),o="",i=!1;-1===n?r=e:(r=e.slice(0,n),o=e.slice(n+1),i=!0),t.push(function(e,t,r){return{key:YH(e),value:YH(t),useEqualSign:r}}(r,o,i))}})),t}};function YH(e){try{return decodeURIComponent(e)}catch(t){return e}}function KH(e){if(!(this instanceof KH))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");var t=function(e){var t={authorityAndPath:"",search:"",hash:""},r=e.indexOf("#");-1!==r&&(t.hash=e.substr(r),e=e.substr(0,r));r=e.indexOf("?"),-1!==r&&(t.search=e.substr(r),e=e.substr(0,r));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:function(){return UH.fromSearchString(t.search)}}})}function XH(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}KH.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},KH.encodeSearchParams=function(e){for(var t,r="",n=0;n<e.length;n++)r+=0===n?"?":"&",r+=XH((t=e[n]).key),t.value?r+="=".concat(XH(t.value)):r+=t.useEqualSign?"=":"";return r};var JH,ZH=function(){return FH((function e(t){jH(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}),[{key:"_hasNext",value:function(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}},{key:"pushback",value:function(e){this._pushback=e}},{key:"index",value:function(){return this._index}},{key:"hasNext",value:function(){return null!=this._pushback||this._hasNext()}},{key:"next",value:function(){if(null!=this._pushback){var e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}},{key:"nextHex",value:function(){var e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}},{key:"peek",value:function(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}},{key:"mark",value:function(){this._temp=this._pushback,this._mark=this._index}},{key:"reset",value:function(){this._pushback=this._temp,this._index=this._mark}},{key:"remainder",value:function(){var e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}}])}(),QH=function(){return FH((function e(){jH(this,e)}),[{key:"decode",value:function(e){for(var t,r="",n=new ZH(e);n.hasNext();)r+=null!=(t=this.decodeCharacter(n))?t:n.next();return r}},{key:"decodeCharacter",value:function(e){return e.next()}}])}(),eV=function(e){return e>=0&&e<=1114111},tV=function(e){return e.match(/[\s]/)},rV=function(e){function t(){return jH(this,t),qH(this,t,arguments)}return $H(t,e),FH(t,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o=e.next();if(null==o||"\\"!==o)return e.reset(),null;var i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(t=i,r=0;r<5&&(null!=(n=e.next())&&!tV(n));r++){if("NaN"===parseInt(n,16)){e.pushback(n);break}t+=n}var a=parseInt(t,16);return eV(a)?String.fromCharCode(a):"�"}}])}(QH),nV=function(){function e(t,r){jH(this,e),this._key=t,this._value=r}return FH(e,[{key:"getKey",value:function(){return this._key}},{key:"getValue",value:function(){return this._value}},{key:"equals",value:function(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}}],[{key:"newInstanceIfNeeded",value:function(){var t,r,n=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],r=n.length):(r=arguments[1],t=arguments[2]),t&&n?(n.length>r&&(n=n.substr(0,r)),new e(n,t)):null}}])}(),oV=function(){function e(){jH(this,e)}return FH(e,[{key:"setValue",value:function(e){this._nextMap=null,this._value=e}},{key:"getNextNode",value:function(e){return this._nextMap?this._nextMap[e]:null}},{key:"put",value:function(t,r,n){var o,i;if(t.length===r)return i=this._value,this.setValue(n),i;var a=t.charAt(r);return this._nextMap?(o=this._nextMap[a])||(o=new e,this._nextMap[a]=o):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,r+1,n)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var r=this.getNextNode(e.charAt(t));return r?r.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return nV.newInstanceIfNeeded(e,this._value);var r=this.getNextNode(e.charAt(t));if(!r)return nV.newInstanceIfNeeded(e,t,this._value);var n=r.getLongestMatch(e,t+1);return n||nV.newInstanceIfNeeded(e,t,this._value)}}])}(),iV=function(){return FH((function e(){jH(this,e),this.clear()}),[{key:"getLongestMatch",value:function(e){return this.root&&e?this.root.getLongestMatch(e,0):null}},{key:"getMaxKeyLength",value:function(){return this.maxKeyLen}},{key:"clear",value:function(){this.root=null,this.maxKeyLen=0,this.size=0}},{key:"put",value:function(e,t){this.root||(this.root=new oV);var r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}])}(),aV=function(){var e,t,r,n=[],o=[],i=new iV;for(e in n["&quot"]="34",n["&amp"]="38",n["&lt"]="60",n["&gt"]="62",n["&nbsp"]="160",n["&iexcl"]="161",n["&cent"]="162",n["&pound"]="163",n["&curren"]="164",n["&yen"]="165",n["&brvbar"]="166",n["&sect"]="167",n["&uml"]="168",n["&copy"]="169",n["&ordf"]="170",n["&laquo"]="171",n["&not"]="172",n["&shy"]="173",n["&reg"]="174",n["&macr"]="175",n["&deg"]="176",n["&plusmn"]="177",n["&sup2"]="178",n["&sup3"]="179",n["&acute"]="180",n["&micro"]="181",n["&para"]="182",n["&middot"]="183",n["&cedil"]="184",n["&sup1"]="185",n["&ordm"]="186",n["&raquo"]="187",n["&frac14"]="188",n["&frac12"]="189",n["&frac34"]="190",n["&iquest"]="191",n["&Agrave"]="192",n["&Aacute"]="193",n["&Acirc"]="194",n["&Atilde"]="195",n["&Auml"]="196",n["&Aring"]="197",n["&AElig"]="198",n["&Ccedil"]="199",n["&Egrave"]="200",n["&Eacute"]="201",n["&Ecirc"]="202",n["&Euml"]="203",n["&Igrave"]="204",n["&Iacute"]="205",n["&Icirc"]="206",n["&Iuml"]="207",n["&ETH"]="208",n["&Ntilde"]="209",n["&Ograve"]="210",n["&Oacute"]="211",n["&Ocirc"]="212",n["&Otilde"]="213",n["&Ouml"]="214",n["&times"]="215",n["&Oslash"]="216",n["&Ugrave"]="217",n["&Uacute"]="218",n["&Ucirc"]="219",n["&Uuml"]="220",n["&Yacute"]="221",n["&THORN"]="222",n["&szlig"]="223",n["&agrave"]="224",n["&aacute"]="225",n["&acirc"]="226",n["&atilde"]="227",n["&auml"]="228",n["&aring"]="229",n["&aelig"]="230",n["&ccedil"]="231",n["&egrave"]="232",n["&eacute"]="233",n["&ecirc"]="234",n["&euml"]="235",n["&igrave"]="236",n["&iacute"]="237",n["&icirc"]="238",n["&iuml"]="239",n["&eth"]="240",n["&ntilde"]="241",n["&ograve"]="242",n["&oacute"]="243",n["&ocirc"]="244",n["&otilde"]="245",n["&ouml"]="246",n["&divide"]="247",n["&oslash"]="248",n["&ugrave"]="249",n["&uacute"]="250",n["&ucirc"]="251",n["&uuml"]="252",n["&yacute"]="253",n["&thorn"]="254",n["&yuml"]="255",n["&OElig"]="338",n["&oelig"]="339",n["&Scaron"]="352",n["&scaron"]="353",n["&Yuml"]="376",n["&fnof"]="402",n["&circ"]="710",n["&tilde"]="732",n["&Alpha"]="913",n["&Beta"]="914",n["&Gamma"]="915",n["&Delta"]="916",n["&Epsilon"]="917",n["&Zeta"]="918",n["&Eta"]="919",n["&Theta"]="920",n["&Iota"]="921",n["&Kappa"]="922",n["&Lambda"]="923",n["&Mu"]="924",n["&Nu"]="925",n["&Xi"]="926",n["&Omicron"]="927",n["&Pi"]="928",n["&Rho"]="929",n["&Sigma"]="931",n["&Tau"]="932",n["&Upsilon"]="933",n["&Phi"]="934",n["&Chi"]="935",n["&Psi"]="936",n["&Omega"]="937",n["&alpha"]="945",n["&beta"]="946",n["&gamma"]="947",n["&delta"]="948",n["&epsilon"]="949",n["&zeta"]="950",n["&eta"]="951",n["&theta"]="952",n["&iota"]="953",n["&kappa"]="954",n["&lambda"]="955",n["&mu"]="956",n["&nu"]="957",n["&xi"]="958",n["&omicron"]="959",n["&pi"]="960",n["&rho"]="961",n["&sigmaf"]="962",n["&sigma"]="963",n["&tau"]="964",n["&upsilon"]="965",n["&phi"]="966",n["&chi"]="967",n["&psi"]="968",n["&omega"]="969",n["&thetasym"]="977",n["&upsih"]="978",n["&piv"]="982",n["&ensp"]="8194",n["&emsp"]="8195",n["&thinsp"]="8201",n["&zwnj"]="8204",n["&zwj"]="8205",n["&lrm"]="8206",n["&rlm"]="8207",n["&ndash"]="8211",n["&mdash"]="8212",n["&lsquo"]="8216",n["&rsquo"]="8217",n["&sbquo"]="8218",n["&ldquo"]="8220",n["&rdquo"]="8221",n["&bdquo"]="8222",n["&dagger"]="8224",n["&Dagger"]="8225",n["&bull"]="8226",n["&hellip"]="8230",n["&permil"]="8240",n["&prime"]="8242",n["&Prime"]="8243",n["&lsaquo"]="8249",n["&rsaquo"]="8250",n["&oline"]="8254",n["&frasl"]="8260",n["&euro"]="8364",n["&image"]="8365",n["&weierp"]="8472",n["&real"]="8476",n["&trade"]="8482",n["&alefsym"]="8501",n["&larr"]="8592",n["&uarr"]="8593",n["&rarr"]="8594",n["&darr"]="8595",n["&harr"]="8596",n["&crarr"]="8629",n["&lArr"]="8656",n["&uArr"]="8657",n["&rArr"]="8658",n["&dArr"]="8659",n["&hArr"]="8660",n["&forall"]="8704",n["&part"]="8706",n["&exist"]="8707",n["&empty"]="8709",n["&nabla"]="8711",n["&isin"]="8712",n["&notin"]="8713",n["&ni"]="8715",n["&prod"]="8719",n["&sum"]="8721",n["&minus"]="8722",n["&lowast"]="8727",n["&radic"]="8730",n["&prop"]="8733",n["&infin"]="8734",n["&ang"]="8736",n["&and"]="8743",n["&or"]="8744",n["&cap"]="8745",n["&cup"]="8746",n["&int"]="8747",n["&there4"]="8756",n["&sim"]="8764",n["&cong"]="8773",n["&asymp"]="8776",n["&ne"]="8800",n["&equiv"]="8801",n["&le"]="8804",n["&ge"]="8805",n["&sub"]="8834",n["&sup"]="8835",n["&nsub"]="8836",n["&sube"]="8838",n["&supe"]="8839",n["&oplus"]="8853",n["&otimes"]="8855",n["&perp"]="8869",n["&sdot"]="8901",n["&lceil"]="8968",n["&rceil"]="8969",n["&lfloor"]="8970",n["&rfloor"]="8971",n["&lang"]="9001",n["&rang"]="9002",n["&loz"]="9674",n["&spades"]="9824",n["&clubs"]="9827",n["&hearts"]="9829",n["&diams"]="9830",n)"function"!=typeof n[e]&&n.hasOwnProperty(e)&&(o[n[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(r=o[t].toLowerCase().substr(1),i.put(r,String.fromCharCode(t)));return i}(),sV=function(e){function t(){return jH(this,t),qH(this,t,arguments)}return $H(t,e),FH(t,[{key:"decodeCharacter",value:function(e){var t;e.mark();var r=e.next();if(null==r||"&"!==r)return e.reset(),null;var n=e.next();if(null==n)return e.reset(),null;if("#"===n){if(null!=(t=this._getNumericEntity(e)))return t}else if(n.match(/[A-Za-z]/)&&(e.pushback(n),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,r,n,o="";for(t=Math.min(e.remainder().length,aV.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();var i=aV.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,r=0;r<t;r++)e.next();return e.peek(";")&&e.next(),i.getValue()}},{key:"_getNumericEntity",value:function(e){var t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}},{key:"_parseHex",value:function(e){for(var t,r="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}r+=t,e.next()}var n=parseInt(r,16);return!Number.isNaN(+n)&&eV(n)?String.fromCharCode(n):null}},{key:"_parseNumber",value:function(e){for(var t,r="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}r+=t,e.next()}var n=parseInt(r,10);return!Number.isNaN(+n)&&eV(n)?String.fromCharCode(n):null}}])}(QH),lV=function(e){function t(){return jH(this,t),qH(this,t,arguments)}return $H(t,e),FH(t,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",r=0;r<2;r++)null!=(n=e.nextHex())&&(t+=n);return 2===t.length&&(o=parseInt(t,16),eV(o))?String.fromCharCode(o):(e.reset(),null)}}])}(QH),uV=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(JH=document.createElement("div"));var cV=Array.prototype.indexOf,dV=[",",".","_"," "],pV=[",",".","-","_"," "],fV={width:["%"],height:["%"]},hV={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},mV={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":hV.image,"background-color":hV.color,"border-color":hV.color,"border-image":hV.image,color:hV.color,icon:hV.image,"list-style-image":hV.image,"outline-color":hV.color},gV={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function bV(e,t,r){var n;if(t){if(cV)return cV.call(t,e,r);for(n=t.length,r=r?r<0?Math.max(0,n+r):r:0;r<n;r++)if(r in t&&t[r]===e)return r}return-1}function vV(e){if(null==e)return"";var t,r=document.createTextNode(e);return JH.appendChild(r),t=JH.innerHTML,JH.removeChild(r),t}function yV(e,t,r){var n,o,i,a,s,l,u,c,d;for(e=SV(e).toLowerCase(),t=SV(t),i=0;i<gV.attr_name.length;i++)if(e.match(gV.attr_name[i]))throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<gV.attr_val.length;i++)if(t.toLowerCase().match(gV.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((n=fV[e])||(n=pV),o="",!r){for(a=0;a<e.length;a++){if(!(s=e.charAt(a)).match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=s}o+='="'}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&bV(u,n)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return r||(o+='"'),o}function xV(e,t,r){var n,o,i,a,s,l,u,c,d,p;if(e=SV(e).toLowerCase(),t=SV(t),bV(e,gV.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(n=0;n<gV.css_val.length;n++)if(t.toLowerCase().indexOf(gV.css_val[n])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=mV[e])||(o=hV.default),i="",!r){for(a=0;a<e.length;a++){if(!(s=e.charAt(a)).match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=s}i+=": "}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&bV(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function SV(e,t){var r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;for(var s=[new sV,new lV,new rV];!a;){n=r;for(var l=0;l<s.length;l++)(i=s[l].decode(r))!==r&&(o++,r=i);n!==r||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return r}for(var wV=[],CV=0;CV<255;CV++)wV[CV]=CV>=48&&CV<=57||CV>=65&&CV<=90||CV>=97&&CV<=122?null:CV.toString(16);var EV=function(e){return vV(e.unsafe)},RV=function(e){var t,r=[],n=[],o={},i="";for(t in e.map?r=e.map:r[e.name]=e.unsafe,r)"function"!=typeof r[t]&&r.hasOwnProperty(t)&&(n[t]=xV(t,r[t],!0),i+=xV(t,r[t],!0),o[t]=n[t]);return e.map?o:i},MV=function(e){var t=[],r=[],n={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(r[i]=yV(i,t[i],!0),o+=yV(i,t[i],!0),n[i]=r[i]);return e.map?n:o};function AV(e,t){throw new Error(t)}var IV={canonicalize:SV,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===VH(arguments[0])?function(){for(var e,t,r,n=arguments[0]||{},o=1,i=arguments.length;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(n===(r=e[t]))continue;void 0!==r&&(n[t]=r)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?EV(e):"css"===e.context?(null!=e.map&&"object"!==VH(e.map)&&AV(this,"Invalid parameter type"),RV(e)):"attr"===e.context?(null!=e.map&&"object"!==VH(e.map)&&AV(this,"Invalid parameter type"),MV(e)):void AV(this,"Invalid parameter type")},encodeForAttr:yV,encodeForAttr2:function(e){return yV("nonsens",e,!0)},encodeForCSS:xV,encodeForHref:function(e){SV(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new KH(e),r=KH.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),n=t.searchParams,o=(e=r+KH.encodeSearchParams(n)+t.hash).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){var r,n,o,i,a,s;for(t||(t=dV),s="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),bV(o,t)>=0||null==wV[i]?s+=o:(n=i.toString(16),i<256?(a="00".substr(n.length),s+="\\x".concat(a).concat(n.toUpperCase())):(a="0000".substr(n.length),s+="\\u".concat(a).concat(n.toUpperCase())));return s},encodeForHTML:vV,encodeForURL:function(e,t){var r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=SV(t).toLowerCase():AV(this,"Illegal Attribute Name Specified"),r+='="'),r+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),r+=t?'"':""},isSafeDataURL:function(e,t){var r=null!=t?t:{},n=r.maxByteSizeSvg,o=void 0===n?5e5:n,i=r.maxByteSizeImage,a=void 0===i?5e6:i,s=function(e){var t,r=GH(null!==(t=uV.exec(e.trim()))&&void 0!==t?t:[],4),n=r[1];return{encoding:r[2],data:r[3],mimeType:null==n?void 0:n.toLocaleLowerCase()}}(e),l=s.mimeType,u=s.encoding,c=s.data;if(!c)return!0;var d=function(e,t,r){var n={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(r)],n).size}catch(e){return new Blob([r],n).size}return"image/svg+xml"===e?new Blob([r],n).size:0}(l,u,c);return"image/svg+xml"===l?d<=o:d<=a},validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch(e){return!1}}(e))return!1;var t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;var r=function(e){for(var t=e,r="";t.length>0;)if(t.startsWith("../")||t.startsWith("./"))t=t.replace(/^\.\.?\//,"");else if(t.startsWith("/./"))t=t.replace(/^\/\.\//,"/");else if("/."===t)t="/";else if(t.startsWith("/../")){t=t.replace(/^\/\.\.\//,"/");var n=r.lastIndexOf("/");-1!==n&&(r=r.slice(0,n))}else if("/.."===t){t="/";var o=r.lastIndexOf("/");-1!==o&&(r=r.slice(0,o))}else if("."===t||".."===t)t="";else{var i=t.match(/^\/?[^/]*/),a=i?i[0]:"";t=t.slice(a.length),r+=a}return r}(t);return""!==r&&"/"!==r&&r}};const kV=(e,t)=>t.qAttrExps?.qValues?.[e],LV=(e,t)=>{switch(e){case"topLeft":default:return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"center"};case"topRight":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-end"}}},PV=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:o,imageBox:i,direction:a})=>n&&t&&!t.toLowerCase().includes("javascript:")&&IV.isSafeDataURL(t)?{type:Hz.Image,url:t,text:e,imageSize:r,resolvedImagePosition:LV(n,a),labelStructure:o,imageBox:i}:{type:Hz.Text,url:void 0,text:e,labelStructure:o},DV=(e,t,r,n)=>{if(!e.qMiniChart||!t?.miniChart||!r)return{type:Hz.Text,text:n};const{minY:o,maxY:i}=((e,t,r)=>{const n="global"===t.yAxis?.scale,o="zeroCenter"===t.yAxis?.position,i=n?r.qYMin:e.qMiniChart.qMin,a=n?r.qYMax:e.qMiniChart.qMax;if(o){const e=Math.max(Math.abs(i),Math.abs(a));return{minY:-e,maxY:e}}return(e=>"zeroBaseline"===e.yAxis?.position||"bars"===e.type&&"auto"===e.yAxis?.position)(t)?{minY:Math.min(0,i),maxY:Math.max(0,a)}:{minY:i,maxY:a}})(e,t.miniChart,r),a={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:o,maxY:i,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:Hz.MiniChart,text:n,miniChart:a}},_V=(e,t,r)=>{const n=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,o=n?.qValues?.[e];if(o){const e=Number.isNaN(+o.qNum)?void 0:`${o.qNum}`;return o.qText||e}return r?.urlPosition===Vz.Attribute?void 0:r?.urlLabel},OV=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:Hz.Link,url:IV.encodeForHref(r),text:t,labelStructure:e}}catch{return{type:Hz.Text,url:void 0,text:t,labelStructure:e}}},TV=({cell:e,representationProperties:t,attrExprInfoIndex:r,env:n,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:s=e=>e.qText,direction:l,enabledFeatures:u})=>{const c=Uz(t),d=s(e);return c===Hz.Image&&u[Hz.Image]&&!n.anything.sense?.isUnsupportedFeature?.("tableImages")?((e,t,r,n,o,i)=>{const{imageSize:a,imagePosition:s,imageSetting:l,imageLabel:u,imageBox:c}=t??{};if("url"===l){const t=kV(r.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),PV({text:n,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}if("label"===l){const t=i?i.originalValue:n;if(-1===r.imageLabel)return PV({text:u||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o});const l=kV(r.imageLabel??-1,e)?.qText??n;return PV({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}return{type:Hz.Text,url:void 0,labelStructure:i,text:n}})(e,t,r,d,l,a):c===Hz.Link?((e,t,r,n,o)=>{const{urlPosition:i}=t??{};if(i===Vz.Attribute){const i=_V(r.url??-1,e,t);return OV({labelStructure:n,text:o||i||"",url:i})}if(i===Vz.Dimension){const i=_V(r.urlLabel??-1,e,t)||o;return n&&(n.maskedValue=i),OV({text:i,labelStructure:n,url:n?.originalValue??o})}return{type:Hz.Text,url:void 0,text:o,labelStructure:n}})(e,t,r,a,d):c===Hz.Indicator&&u[Hz.Indicator]&&!n.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,r)=>{const{indicator:n}=e??{};return{type:Hz.Indicator,url:void 0,text:r,indicator:{applySegmentColors:n?.applySegmentColors,position:n?.position,showTextValues:n?.showTextValues},indicatorConditionalColoring:t}})(t,o,d):c===Hz.MiniChart&&u[Hz.MiniChart]&&!n.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?DV(e,t,i,d):{type:Hz.Text,url:void 0,text:d,labelStructure:a}},qV=(e,t)=>{const r=t.qAttrExps,n=r?.qValues?.[e?.cellForegroundColor??-1]?.qText,o=r?.qValues?.[e?.cellBackgroundColor??-1]?.qText,i=o?BW(o):null,a=n?BW(n):null,s=((e,t)=>e||!t?null:zW(t))(a,i);return{color:s??a,background:i}},jV=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:jV(e,t)),e),NV=(e,t,r,n,o,i)=>{const a=o?i.rowsPerPage-r:rB-n;let s=e.qUp+e.qDown;if(o&&0===r){const r=(t+e.qUp)%i.rowsPerPage;s=e.qDown+r}return Math.min(a,jV(s,e))},FV=({node:e,parent:t,root:r,x:n,y:o,pageY:i,layoutService:a,dimensionInfo:s,attrExprInfoIndex:l,isLeftColumn:u=!0,isIndentModeEnabled:c=!1,indentLevel:d,labelStructure:p,env:f,pageInfo:h,direction:m="ltr"})=>{const g=(!c||!u)&&"P"===e.qType,b=((e,t)=>{if(e!==wH){if(t){const t=Uz(e.representation);return t===Hz.Link||t===Hz.Image?e.representation:{type:Hz.Text}}return e.representation}})(s,c),v=(({node:e,isLeftColumn:t,isIndentModeEnabled:r,labelStructure:n,representationType:o,parentOrRootOriginalValue:i})=>{let a=e.qText;if(t&&r&&n){const{originalValue:t,delimeter:r,suffix:s}=n;a=o===Hz.Link?"P"===e.qType?i:t:`${t} ${!s||!t&&s?"":r} ${s}`.trim()}return a})({node:e,isLeftColumn:u,isIndentModeEnabled:c,labelStructure:p,representationType:Uz(b),parentOrRootOriginalValue:(t||r)?.representation?.labelStructure?.originalValue??""}),y=TV({cell:{...e,qText:v},representationProperties:b,attrExprInfoIndex:l,env:f,labelStructure:p,direction:m,enabledFeatures:{[Hz.Image]:!0,[Hz.Indicator]:!0}}),x={id:kH(),ref:e,x:n,y:o,pageX:n,pageY:i,mainAxisPageCoord:u?i:n,isLeftColumn:u,parent:t,root:r,children:[],isLeafNode:0===e.qSubNodes.length,leafCount:NV(e,o,i,n,u,h),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof s||!s.qLocked),isTotal:"T"===e.qType||!!t?.isTotal,isEmpty:"E"===e.qType||-4===e.qElemNo,isNull:"U"===e.qType,isPseudoDimension:g,expressionColor:qV(l,e),selectionCellType:u?"L":"T",dimensionInfoIndex:a.getDimensionInfoIndex(s),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:g?e.qElemNo:t?.visibleMeasureInfoIndex,representation:y,...void 0!==d&&{indentLevel:d}};return t&&(t.children[x.mainAxisPageCoord-t.mainAxisPageCoord]=x),x},zV=(e,t,r,n,o,i,a,s,l)=>{const{isIndentModeEnabled:u}=o;if(!t.length)return e;let c=0;return function t(d,p,f,h=0,m=-1){e[h]||(e[h]={}),u&&m++;const g=o.leftDimensionInfoIndexes.indexOf(wH);f.forEach(((f,b)=>{const v={originalValue:f.qText??"",maskedValue:"",delimeter:"-",suffix:""};c+=0===b?0:1;const y=r.qTop-n.page*n.rowsPerPage,x=Math.max(0,y+c-f.qUp),S=r.qTop+c-f.qUp;if(u){if(o.hasPseudoDimOnLeft&&m<=g)if(v.originalValue=f.qText??"",v.maskedValue=f.qText??"","N"===f.qType||"U"===f.qType||"T"===f.qType)"U"===f.qType&&(v.originalValue=o.getNullValueText()),m<g&&(v.suffix=o.visibleMeasureInfo[0].qFallbackTitle);else if("P"===f.qType){v.originalValue=(p||d)?.representation.labelStructure?.originalValue??"",v.maskedValue=(p||d)?.representation.labelStructure?.originalValue??"",v.suffix=f.qText??"";const e=f.qSubNodes;f={...(p||d)?.ref,...f.qText?{qText:f.qText}:{},qSubNodes:e},m=(p||d)?.indentLevel??0}"U"===f.qType&&(v.originalValue=o.getNullValueText())}let w=h;u&&(w=g>=1&&m>=g?m+1:m,0===m&&0===g&&0===f.qSubNodes.length&&(w=0));const C=e.at(h)?.[x],E=u&&void 0===C?.ref.qText||!C?FV({node:f,parent:p,root:d,x:w,y:S,pageY:x,layoutService:o,dimensionInfo:i[w],attrExprInfoIndex:a[w],isLeftColumn:!0,...u&&{isIndentModeEnabled:u,indentLevel:m},env:s,pageInfo:n,labelStructure:v,direction:l}):e[h][x];if(e[h][x]=E,f.qSubNodes.length){const e=u?0:h+1;t(d||E,E,f.qSubNodes,e,m)}}))}(null,null,t,0,-1),e},$V=(e,t)=>{e.slice(0,-1).forEach((e=>{Object.values(e).forEach(((e,r,n)=>{const o=n.at(r+1);e.distanceToNextCell=o?o.mainAxisPageCoord-(e.mainAxisPageCoord+e.leafCount):t-(e.mainAxisPageCoord+e.leafCount)}))}))},WV=(e,t)=>{const r=e[0],n=r?Object.values(r):[],o=t?.isIndentModeEnabled&&t.hasPseudoDimOnLeft?t.visibleMeasureInfo.length-1:0,i=r?.[o],a=n.at(-1);return i?.isTotal?i.isLeafNode?i.mainAxisPageCoord:i.mainAxisPageCoord+i.leafCount-1:a?.isTotal?a.mainAxisPageCoord-1:-1},BV=({prevData:e,nextDataPage:t,pageInfo:r,layoutService:n,visibleLeftDimensionInfo:o,attrExprInfoIndexes:i,env:a,direction:s})=>{const{qLeft:l,qArea:u}=t;if(!l.length)return e;const c=zV(e.grid,l,u,r,n,o,i,a,s);$V(c,r.rowsOnCurrentPage);const d=WV(c,n);return{...e,grid:c,columnCount:c.length,totalDividerIndex:d}},GV=({qArea:e,prevData:t,pivotValuePoints:r,pageInfo:n})=>{const o=[...t];return r.forEach(((t,r)=>{t.forEach(((t,i)=>{const a=e.qTop-n.page*n.rowsPerPage+r,s=e.qLeft+i;Array.isArray(o[a])||(o[a]=[]);const l="U"===t.qType;o[a][s]=o[a][s]??{id:kH(),ref:t,isNull:l}}))})),o},HV=({prevData:e,dataPage:t,pageInfo:r})=>{const{qData:n,qArea:o}=t;return n?.length?GV({qArea:o,prevData:e,pivotValuePoints:n,pageInfo:r}):e},VV=(e,t,r,n,o,i,a,s,l,u)=>{const{isIndentModeEnabled:c}=n;if(!t.length)return e;let d=0;!function t(a,p,f,h=0){e[h]||(e[h]={}),f.forEach(((f,m)=>{d+=0===m?0:1;const g=r.qLeft+d-f.qUp,b=e[h][g]??FV({node:f,parent:p,root:a,x:g,y:h,pageY:h,layoutService:n,dimensionInfo:o[h],attrExprInfoIndex:i[h],isLeftColumn:!1,...c&&{isIndentModeEnabled:c},env:s,pageInfo:l,direction:u});e[h][g]=b,f.qSubNodes.length&&t(a||b,b,f.qSubNodes,h+1)}))}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},UV=({prevData:e,nextDataPage:t,layoutService:r,visibleTopDimensionInfo:n,attrExprInfoIndexes:o,headerRows:i,env:a,pageInfo:s,direction:l})=>{const{qTop:u,qArea:c}=t;if(!u.length)return e;const d=VV(e.grid,u,c,r,n,o,i,a,s,l);$V(d,r.size.x);const p=WV(d);return{...e,grid:d,rowCount:d.length,totalDividerIndex:p}},YV=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{}),KV=(e,t)=>{const{env:r}=mH(),{direction:n}=pH(),{layoutService:o,effectivePropertiesService:i}=vH(),{qPivotDataPages:a,pageInfo:s}=pH(),[l,u]=b(null),c=((e,t,r)=>g((()=>({left:e.map(YV),top:t.map(YV),measures:r.map(YV)})),[r,e,t]))(e,t,o.visibleMeasureInfo),d=g((()=>OH(o,i,t,e)),[o,i,t,e]),p=h((()=>a.slice(1).reduce(((e,t)=>HV({prevData:e,dataPage:t,pageInfo:s})),((e,t)=>{const{qData:r,qArea:n}=e;return GV({qArea:n,prevData:[],pivotValuePoints:r,pageInfo:t})})(a[0],s))),[a,s]),f=h((()=>a.slice(1).reduce(((e,i)=>UV({prevData:e,nextDataPage:i,layoutService:o,visibleTopDimensionInfo:t,attrExprInfoIndexes:c.top,headerRows:d.size.y,env:r,pageInfo:s,direction:n})),((e,t,r,n,o,i,a,s)=>{const{qArea:l,qTop:u}=e,c=VV([],u,l,t,r,n,o,i,a,s);$V(c,t.size.x);const d=WV(c);return{grid:c,rowCount:c.length,layoutSize:t.size,totalDividerIndex:d}})(a[0],o,t,c.top,d.size.y,r,s,n))),[a,o,t,c.top,d.size.y,r,s,n]),m=h((()=>a.slice(1).reduce(((t,i)=>BV({prevData:t,nextDataPage:i,pageInfo:s,layoutService:o,visibleLeftDimensionInfo:e,attrExprInfoIndexes:c.left,env:r,direction:n})),((e,t,r,n,o,i,a)=>{const{qArea:s,qLeft:l}=e,u=zV([],l,s,r,t,n,o,i,a);$V(u,r.rowsOnCurrentPage);const c=WV(u,t);return{grid:u,columnCount:u.length,layoutSize:t.size,totalDividerIndex:c}})(a[0],o,s,e,c.left,r,n))),[a,o,s,e,c,r,n]),[v,y]=b((()=>p())),[x,S]=b((()=>f())),[w,C]=b((()=>m()));zB((()=>{y(p())}),[p]),zB((()=>{S(f())}),[f]),zB((()=>{C(m())}),[m]),zB((()=>{l&&l.forEach((i=>{y((e=>HV({prevData:e,dataPage:i,pageInfo:s}))),S((e=>UV({prevData:e,nextDataPage:i,layoutService:o,visibleTopDimensionInfo:t,attrExprInfoIndexes:c.top,headerRows:d.size.y,env:r,pageInfo:s,direction:n}))),C((t=>BV({prevData:t,nextDataPage:i,pageInfo:s,layoutService:o,visibleLeftDimensionInfo:e,attrExprInfoIndexes:c.left,env:r,direction:n})))}))}),[l]);const E=h((e=>{u(e)}),[]);return{headersData:d,measureData:v,topDimensionData:x,leftDimensionData:w,attrExprInfoIndexes:c,nextPageHandler:E}},XV=Math.sqrt(1e4),JV=e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/lN.PixelsMin)}),ZV=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],r=Math.ceil(e.qWidth/XV),n=Math.ceil(e.qHeight/XV);for(let o=0;o<r;o++)for(let r=0;r<n;r++)t.push({qLeft:e.qLeft+o*XV,qTop:e.qTop+r*XV,qWidth:Math.min(XV,e.qWidth-o*XV),qHeight:Math.min(XV,e.qHeight-r*XV)});return t};function QV({nextPageHandler:e}){const{model:t}=mH(),{pageInfo:r}=pH(),{layoutService:n}=vH(),o=(e=>{const t=u(e);return t.current=e,t})(r.page),i=t,a=h((async(e,t)=>{await(i?.collapseLeft(SH,e,t,!1))}),[i]),s=h((async(e,t)=>{await(i?.collapseTop(SH,e,t,!1))}),[i]),l=h((async(e,t)=>{await(i?.expandLeft(SH,e,t,!1))}),[i]),c=h((async(e,t)=>{await(i?.expandTop(SH,e,t,!1))}),[i]),d=h((async t=>{if(i?.getHyperCubePivotData&&0!==t.length)try{const n=await i.getHyperCubePivotData(SH,t.reduce(((e,t)=>[...e,...ZV(t)]),[]));o.current===r.page&&e(n)}catch(e){console.error(e)}}),[i,e,r,o]),p=h(((e,{dimensionInfoIndex:r,isLeftColumn:o,x:i=0,columnWidthLocation:a})=>{const{qMeasureInfo:s,qDimensionInfo:l,topHeadersColumnWidth:u}=n.layout.qHyperCube;let c=[];switch(a){case Zz.Dimension:c=[{qPath:`${SH}/qDimensions/${r}/qDef/columnWidth`,oldValue:l[r].columnWidth}];break;case Zz.Measures:if(o)c=s.map(((e,t)=>({qPath:`${SH}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=n.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${SH}/qMeasures/${e}/qDef/columnWidth`,oldValue:s[e].columnWidth}]}break;case Zz.Pivot:c=[{qPath:`${SH}/topHeadersColumnWidth`,oldValue:u}]}const d=c.map((t=>{const{qPath:r,oldValue:n}=t;return{qPath:r,qOp:n?"Replace":"Add",qValue:JSON.stringify({...n,...e})}}));t?.applyPatches(d,!0)}),[t,n]),f=h((async e=>{await(i?.applyPatches([{qPath:`${SH}/indentModeColumnWidth`,qOp:n.layout.qHyperCube.indentModeColumnWidth?"Replace":"Add",qValue:JSON.stringify({...n.indentModeColumnWidth,...e})}],!0))}),[i,n]);return g((()=>({collapseLeft:a,collapseTop:s,expandLeft:l,expandTop:c,applyColumnWidth:p,applyIndentModeColumnWidth:f,fetchPages:d})),[a,s,l,c,p,f,d])}const eU=(e,t,r)=>(n,o)=>{if("P"===n)return wH;const i=t[r+o];return e[i]},tU=e=>{const t=[],r=(e,n=0)=>{e.slice(0,1).forEach((e=>{t[n]=e.qType,e.qSubNodes.length&&r(e.qSubNodes,n+1)}))};return r(e),t},rU=c({}),nU=()=>n(rU),oU=({children:e})=>{const{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:r}=(()=>{const{layoutService:{layout:{qHyperCube:{qNoOfLeftDims:e,qEffectiveInterColumnSortOrder:t,qDimensionInfo:r}}}}=vH(),{qPivotDataPages:n}=pH();return g((()=>{const o=tU(n[0]?.qLeft??[]),i=tU(n[0]?.qTop??[]);return{visibleLeftDimensionInfo:o.map(eU(r,t,0)),visibleTopDimensionInfo:i.map(eU(r,t,e))}}),[r,t,e,n])})(),{headersData:n,measureData:o,topDimensionData:i,leftDimensionData:a,attrExprInfoIndexes:s,nextPageHandler:l}=KV(t,r),u=QV({nextPageHandler:l}),c=g((()=>({gridSectionsData:{headersData:n,topDimensionData:i,leftDimensionData:a,measureData:o},visibleDimensionsInfo:{visibleLeftDimensionInfo:t,visibleTopDimensionInfo:r},attrExprInfoIndexes:s,dataModel:u})),[t,r,n,o,i,a,s,u]);return Zo.jsx(rU.Provider,{value:c,children:e})},iU=20,aU=18,sU=.75,lU=e=>-1!==e&&e?.representation?.type===Hz.Image,uU=({isLeftColumn:e,layoutService:t,representation:r})=>Boolean(e)&&t.isIndentModeEnabled&&r.type===Hz.Image,cU=e=>void 0===e?tB:e,dU=(e,t)=>void 0===e||Number.isNaN(+e)?t:+e,pU=e=>dU(e,lN.PixelsDefault),fU=(e,t)=>dU(e,lN.PercentageDefault)*t/100,hU=(e,t,r)=>{switch(t?.type){case uN.Pixels:return pU(t.pixels);case uN.Percentage:return fU(t.percentage,e);case uN.FitToContent:case uN.Auto:default:return r}},mU=({headers:e,layoutService:t,effectivePropertiesService:r,estimateWidthForDimensionValue:n,shouldConsiderCombinatedLength:o,measureTextForHeader:i,longestMeasureValuePossible:a})=>e.reduce(((e,s,l)=>{const{layout:{qHyperCube:{qNoOfLeftDims:u,qDimensionInfo:c}}}=t,{id:d,colIdx:p,qApprMaxGlyphCount:f,isLeftDimension:h}=s,m=c.find((e=>e.cId===d)),g={width:24,...m?.representation?.imageBox};if(!h)return e+0;if(d===CH)return e+0;const b=uU({isLeftColumn:h,layoutService:t,representation:m?.representation||{type:Hz.Text}})?g.width+8+4:n(f),v=!r.qAlwaysFullyExpanded&&p<u-1?21:0;let y=0;if(o&&i&&a){y=i("- ")+a}return Math.max(e,24*l+aU+v+b+y)}),0),gU=(e,t,r)=>e.reduce(((e,n)=>{const o=(r?0:1)*aU;return Math.max(e,o+t(n.qFallbackTitle))}),0),bU=(e,t,r,n)=>{const o=100*e/t,i=n*sU*(o/100),a=o/100*+r;return Math.min(a,i)},vU=(e,t,r,n)=>n*(+r/100)*(100*e/t/100),yU=(e,t)=>e.some((e=>e>=t*sU)),xU=({layoutService:e,effectivePropertiesService:t,headersData:r,columnWidths:n,tableWidth:o,widthOverride:i,measureTextForHeader:a,estimateWidthForDimensionValue:s,measureTextWidthForMeasuresCombinedWithDimensions:l,translator:u})=>{let c=[];const d=o*sU,p=r.data[r.data.length-1][0];if(!Array.isArray(p))return{leftGridWidth:0,leftGridColumnWidths:[],leftGridFullWidth:0};const f=Math.min(d,n.at(-1)),h=Math.min(d,mU({headers:p,layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:s})),m=Math.min(d,gU(e.visibleMeasureInfo,a));let g=0;const b=p.findIndex((e=>e.id===CH)),v=(({layoutService:e,measureTextForHeader:t,translator:r,headersData:n})=>{const{type:o}=e.indentModeColumnWidth;return o===uN.Auto&&n.size.y<=1?t(r.get("SNPivotTable.IndentMode.Rows"))+8+aU+16:24})({layoutService:e,measureTextForHeader:a,translator:u,headersData:r});if(e.hasPseudoDimOnLeft)if(0===b){const e=Math.max(f,h,m);c=[Math.max(v,e-f),f]}else{const r=Math.min(d,gU(e.visibleMeasureInfo,l,!0));g=Math.min(d,mU({headers:p.slice(0,b),layoutService:e,effectivePropertiesService:t,estimateWidthForDimensionValue:s,shouldConsiderCombinatedLength:!0,measureTextForHeader:a,longestMeasureValuePossible:r}));const n=Math.max(f,h,g);c=[Math.max(v,n-f),f]}else c=[Math.max(v,h-f),f];const y=Math.min(d,c.reduce(((e,t)=>e+t),0)),{indentModeColumnWidth:x}=e;i&&i<=d&&(x.type=uN.Pixels,x.pixels=i);return[uN.Pixels,uN.Percentage].includes(x.type)||yU(c,o)?((e,t,r,n)=>{let o=e[0],i=e[1],a=[];const s=e.reduce(((e,t)=>e+t),0),{type:l,pixels:u,percentage:c}=t,d=yU(e,r);l===uN.Auto&&d&&(o>i?o-=i:i-=o),l===uN.Pixels&&u&&(o=bU(e[0],s,u,r),i=bU(e[1],s,u,r)),l===uN.Percentage&&c&&(o=vU(e[0],s,c,r),i=vU(e[1],s,c,r));let p=0;i<=n&&(p=o-5,p>0&&(o-=p,i+=p)),p=i-n,p>0&&(o+=p,i-=p),a=[o,i];const f=a.reduce(((e,t)=>e+t),0);return{leftGridColumnWidths:a,leftGridWidth:f,leftGridFullWidth:f}})(c,x,o,f):{leftGridWidth:y,leftGridColumnWidths:c,leftGridFullWidth:y}};function SU({tableWidth:e}){const t=e*sU,{styleService:r,layoutService:n,effectivePropertiesService:o}=vH(),{translator:i}=mH(),{gridSectionsData:{headersData:a}}=nU(),{measureText:s}=qB(r.header),{estimateWidth:l,measureText:u}=qB({...r.dimensionValues,fontWeight:cU(r.dimensionValues.fontWeight)}),{measureText:c}=qB({...r.dimensionValues,...r.measureLabels}),d=h(((r,d)=>{const{layout:{qHyperCube:{qNoOfLeftDims:p,topHeadersColumnWidth:f}},visibleMeasureInfo:h,isIndentModeEnabled:m,hasPseudoDimOnLeft:g}=n,b=(t=0)=>h.reduce(((r,{qFallbackTitle:n,columnWidth:o})=>{const i=c(n)+aU,a=Math.max(i,t);return Math.max(r,m?a:hU(e,o,a))}),0),v=e=>a.data.reduce(((t,r)=>{const n=r.at(e);if(!n||Array.isArray(n))return t;if(n.id===CH)return t;const o=(e=>{const{label:t,isLocked:r}=e,n=r?iU:0;return aU+s(t)+iU+n})(n);return Math.max(o,t)}),0);let y=0,x=a.data.at(-1);m&&a.size.x>1&&x&&x[0]&&(x=x[0]);const S=x.map(((i,s)=>{let u=aU;if(m&&1!==a.size.x||!r||void 0===d||d!==i.colIdx){let t;i.columnWidthLocation===Zz.Pivot?t=m?void 0:f:i.columnWidthLocation===Zz.Dimension&&({columnWidth:t}=i);let r=0;if(i.isLeftDimension)if(i.id===CH)r=b();else{const e=v(s),t=((e,t)=>{const{qApprMaxGlyphCount:r,isLeftDimension:i,dimensionInfoIndex:a}=e,s=n.getDimensionInfo(a);if(lU(s))return lN.PixelsDefault;const u=!o.qAlwaysFullyExpanded&&i&&t<p-1?21:0;return aU+l(r)+u})(i,s);r=Math.max(e,t),m&&!g&&s+1===p&&i.columnWidthLocation===Zz.Dimension&&a.size.x>1&&(r=e)}else r=v(s),i.columnWidthLocation===Zz.Measures&&(r=b(r));m&&1===a.size.x&&(t=n.indentModeColumnWidth),u=m&&!g&&a.size.x>1?r:hU(e,t,r)}else u=m?Math.min(t,r):r;return y+=u,u}));return m&&a.size.x>1?xU({layoutService:n,effectivePropertiesService:o,headersData:a,columnWidths:S,tableWidth:e,widthOverride:r,measureTextForHeader:s,estimateWidthForDimensionValue:l,measureTextWidthForMeasuresCombinedWithDimensions:u,translator:i}):{leftGridWidth:Math.min(t,y),leftGridColumnWidths:S,leftGridFullWidth:y}}),[e,a,n,t,s,c,l,u,i,o]),[p,f]=b(d);zB((()=>{f(d())}),[d]);const m=h(((e,t)=>{f(d(e,t))}),[d]);return{...p,overrideLeftGridWidth:m}}function wU({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:r}){const{styleService:n,layoutService:o}=vH(),{visibleDimensionsInfo:{visibleTopDimensionInfo:i}}=nU(),{layout:{qHyperCube:{qNoOfLeftDims:a,qEffectiveInterColumnSortOrder:s}},size:l,visibleMeasureInfo:u}=o,{estimateWidth:c,measureText:d}=qB(n.measureValues),{estimateWidth:p}=qB({...n.dimensionValues,fontWeight:cU(n.dimensionValues.fontWeight)}),f=e-r-1,m=i.at(-1),b=m===wH,v=s.length-a>i.length?21:0,y=g((()=>{const e=b?u:[m],t=l.x/e.length,r=[],n=[];let o=f;const i=(e,n)=>{r[e]=Math.min(lN.PixelsMax,Math.max(lN.PixelsMin,n)),o-=r[e]*t};if(e.forEach(((e,t)=>{if(e?.columnWidth){const{columnWidth:{type:r,pixels:o,percentage:a},qApprMaxGlyphCount:s,qFallbackTitle:l}=e;switch(r){case uN.Pixels:i(t,pU(o));break;case uN.Percentage:i(t,fU(a,f));break;case uN.FitToContent:i(t,((e,t,r)=>r?lN.PixelsDefault:aU+(b?Math.max(c(e),d(t)):Math.max(Math.max(...u.map((e=>c(e.qApprMaxGlyphCount)))),p(e)+v)))(s,l,lU(e)));break;case uN.Auto:default:n.push(t)}}else n.push(t)})),n.length){const e=n.length*t,i=o/e;n.forEach((e=>{r[e]=Math.max(lN.AutoMinPivot,i)}))}return r}),[b,u,m,l.x,f,c,d,p,v]),x=g((()=>{if(b){return u.reduce(((e,t,r)=>e+y[r]),0)/u.length}return y[0]}),[b,y,u]),S=parseFloat((t/o.size.x).toFixed(12)),w=h((e=>(b&&void 0!==e?y[o.getMeasureInfoIndexFromCellIndex(e,!0)]:x)-S),[b,y,o,x,S]),C=l.x*x;return{rightGridFullWidth:C,rightGridWidth:Math.min(C,f),getRightGridColumnWidth:w}}const CU=`scrollable-container--${e$.TopGrid}`,EU=`scrollable-container--${e$.LeftGrid}`,RU=`scrollable-container--${e$.DataGrid}`,MU=e=>e&&e instanceof HTMLDivElement?{width:e.offsetWidth-e.clientWidth,height:e.offsetHeight-e.clientHeight}:{width:0,height:0},AU=(e,t)=>e>t?t$.Forward:e<t?t$.Backward:t$.None,IU=({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:r},getWrapperElements:n,updateViewService:o,trackScrollDirection:i,interactions:a})=>{const{direction:s}=pH();p((()=>{const{headerGridWrapperElement:l,topGridWrapperElement:u,leftGridWrapperElement:c,dataGridWrapperElement:d}=n(),p=e=>{const t=e.target;l.scrollLeft=t.scrollLeft,i(e),o?.(e)},f=e=>{const t=e.target;l.scrollTop=t.scrollTop,i(e),o?.(e)},h=n=>{const a=n.target,l=((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})(a,s);r.current?.scrollTo({scrollLeft:l,scrollTop:a.scrollTop}),u.scrollLeft=l,e.current?.forEach((e=>{e?.scrollTo(l)})),c.scrollTop=d.scrollTop,t.current?.forEach((e=>{e?.scrollTo(a.scrollTop)})),i(n),o?.(n)};return c.addEventListener("scroll",p),u.addEventListener("scroll",f),d.addEventListener("scroll",h),a.scroll||setTimeout((()=>{c.removeEventListener("scroll",p),u.removeEventListener("scroll",f),d.removeEventListener("scroll",h)}),0),()=>{c.removeEventListener("scroll",p),u.removeEventListener("scroll",f),d.removeEventListener("scroll",h)}}),[i,o,a,e,t,r,n,s])},kU=()=>{const{interactions:e}=mH(),t=u(null),r=u(null),n=u(null),o=u(null),i=u([]),a=u([]),s=u(null),{scrollbarsDimensions:{verticalScrollbarWidth:l,horizontalScrollbarHeight:c},resetHorizontalScrollbarHeight:d}=(({topGridWrapperRef:e,leftGridWrapperRef:t,dataGridWrapperRef:r})=>{const[n,o]=b(0),[i,a]=b(0);return m((()=>{(e.current||r.current)&&o(Math.max(MU(e.current).width,MU(r.current).width))})),m((()=>{(t.current||r.current)&&a(Math.max(MU(t.current).height,MU(r.current).height))})),{scrollbarsDimensions:{verticalScrollbarWidth:n,horizontalScrollbarHeight:i},resetHorizontalScrollbarHeight:()=>{a(0)}}})({topGridWrapperRef:r,leftGridWrapperRef:n,dataGridWrapperRef:o});(({gridSectionsWrapperRefs:{headerGridWrapperRef:e,topGridWrapperRef:t,leftGridWrapperRef:r,dataGridWrapperRef:n},gridRefs:{topGridRef:o,leftGridRef:i,dataGridRef:a}})=>{const{pageInfo:s}=pH(),{downloadService:l,viewService:u,layoutService:c}=vH(),d=h((()=>{const o={left:0,top:0};e.current?.scrollTo(o),t.current?.scrollTo(o),r.current?.scrollTo(o),n.current?.scrollTo(o)}),[e,t,r,n]);m((()=>{d()}),[s.page,d]),m((()=>{c.triggerdByExpandOrCollapse||d()}),[c,d]),m((()=>{if(c.triggerdByExpandOrCollapse){const e=n.current?.scrollLeft??0,t=n.current?.scrollTop??0;i.current?.forEach((e=>{e?.scrollTo(t)})),o.current?.forEach((t=>{t?.scrollTo(e)})),a.current?.scrollTo({scrollTop:t,scrollLeft:e})}}),[c,n,a,i,o]),m((()=>{(l.isDownloadedAsPDForImage||c.isSnapshot)&&n.current&&r.current&&t.current&&(n.current.scrollTop=u.scrollTop,n.current.scrollLeft=u.scrollLeft,r.current.scrollLeft=u.leftGridScrollLeft,t.current.scrollTop=u.topGridScrollTop)}),[u,l,c,n,r,t])})({gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:r,leftGridWrapperRef:n,dataGridWrapperRef:o},gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:s}});const{trackScrollDirection:f,scrollDirectionRefs:{verticalScrollDirection:g,horizontalScrollDirection:v}}=(()=>{const e=u(t$.None),t=u(t$.None),r=u({prevScrollTop:0,prevScrollLeft:0}),n=h((n=>{if(n instanceof WheelEvent&&(e.current=AU(n.deltaY,0),t.current=AU(n.deltaX,0)),n instanceof Event&&!(n instanceof WheelEvent)){const o=n.target;e.current=AU(o.scrollTop,r.current.prevScrollTop),r.current.prevScrollTop=o.scrollTop,t.current=AU(o.scrollLeft,r.current.prevScrollLeft),r.current.prevScrollLeft=o.scrollLeft}}),[e,t,r]);return{trackScrollDirection:n,scrollDirectionRefs:{verticalScrollDirection:e,horizontalScrollDirection:t}}})(),y=(()=>{const{viewService:e}=vH();return h((t=>{const r=t.target,n=t.currentTarget,o=r.dataset.key;o===EU&&(e.leftGridScrollLeft=n.scrollLeft),o===RU&&(e.scrollLeft=n.scrollLeft),o===CU&&(e.topGridScrollTop=n.scrollTop),o!==EU&&o!==RU||(e.scrollTop=n.scrollTop)}),[e])})(),x={gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:s},getWrapperElements:h((()=>({headerGridWrapperElement:t.current,topGridWrapperElement:r.current,leftGridWrapperElement:n.current,dataGridWrapperElement:o.current})),[t,r,n,o]),updateViewService:y,trackScrollDirection:f,interactions:e};return(({gridRefs:{topGridRef:e,leftGridRef:t,dataGridRef:r},getWrapperElements:n,updateViewService:o,trackScrollDirection:i,interactions:a})=>{p((()=>{const{headerGridWrapperElement:o,topGridWrapperElement:s,leftGridWrapperElement:l,dataGridWrapperElement:u}=n(),c=e=>{o.scrollLeft+=e.deltaX,o.scrollTop+=e.deltaY,l.scrollLeft=o.scrollLeft,s.scrollTop=o.scrollTop,i(e)},d=e=>{l.scrollTop+=e.deltaY,t.current?.forEach((e=>{e?.scrollTo(l.scrollTop)})),o.scrollLeft+=e.deltaX,l.scrollLeft=o.scrollLeft,u.scrollTop=l.scrollTop,r.current?.scrollTo({scrollTop:l.scrollTop}),i(e)},p=t=>{s.scrollLeft+=t.deltaX,e.current?.forEach((e=>{e?.scrollTo(s.scrollLeft)})),o.scrollTop+=t.deltaY,s.scrollTop=o.scrollTop,u.scrollLeft=s.scrollLeft,r.current?.scrollTo({scrollLeft:s.scrollLeft}),i(t)},f=n=>{u.scrollLeft+=n.deltaX,u.scrollTop+=n.deltaY,r.current?.scrollTo({scrollLeft:u.scrollLeft,scrollTop:u.scrollTop}),s.scrollLeft=u.scrollLeft,e.current?.forEach((e=>{e?.scrollTo(u.scrollLeft)})),l.scrollTop=u.scrollTop,t.current?.forEach((e=>{e?.scrollTo(u.scrollTop)})),i(n)};return o.addEventListener("wheel",c),l.addEventListener("wheel",d),s.addEventListener("wheel",p),u.addEventListener("wheel",f),a.scroll||setTimeout((()=>{o.removeEventListener("wheel",c),l.removeEventListener("wheel",d),s.removeEventListener("wheel",p),u.removeEventListener("wheel",f)}),0),()=>{o.removeEventListener("wheel",c),l.removeEventListener("wheel",d),s.removeEventListener("wheel",p),u.removeEventListener("wheel",f)}}),[i,o,a,e,t,r,n])})(x),IU(x),{gridSectionsWrapperRefs:{headerGridWrapperRef:t,topGridWrapperRef:r,leftGridWrapperRef:n,dataGridWrapperRef:o},gridRefs:{topGridRef:i,leftGridRef:a,dataGridRef:s},scrollDirectionRefs:{verticalScrollDirection:g,horizontalScrollDirection:v},scrollbarsDimensions:{verticalScrollbarWidth:l,horizontalScrollbarHeight:c,resetHorizontalScrollbarHeight:d}}},LU=()=>{const{layoutService:e}=vH(),{rect:t,pageInfo:r}=pH();return g((()=>{let{height:n}=t;return e.hasLimitedData&&(n-=22),r.shouldShowPagination&&(n-=41),{...t,height:n}}),[t,e,r.shouldShowPagination])},PU=({children:e,style:t})=>Zo.jsx("div",{"data-testid":"fullSize",style:t,children:e}),DU=({children:e,style:t})=>{const{direction:r}=pH();return Zo.jsx("div",{"data-section-id":"GRID",style:{direction:r,display:"grid",...t},children:e})},_U=e=>e&&`scrollable-container--${e}`,OU=({children:e,style:t,origin:r},n)=>{const{interactions:o}=mH(),i=o.scroll?t:{overflow:"hidden"};return Zo.jsx("div",{"data-testid":"scrollable","data-key":_U(r),style:i,ref:n,children:e})};var TU=r.forwardRef(OU);const qU=({children:e,style:t})=>{const{direction:r}=pH();return Zo.jsx("div",{"data-testid":"sticky",style:{position:"sticky",top:0,["rtl"===r?"right":"left"]:0,...t},children:e})};var jU=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function NU(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||jU(n)&&jU(o)))return!1;var n,o;return!0}function FU(e,t){var r;void 0===t&&(t=NU);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}}var zU="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function $U(e){cancelAnimationFrame(e.id)}function WU(e,t){var r=zU();var n={id:requestAnimationFrame((function o(){zU()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var BU=-1;function GU(e){if(void 0===e&&(e=!1),-1===BU||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),BU=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return BU}var HU=null;function VU(e){if(void 0===e&&(e=!1),null===HU||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?HU="positive-descending":(t.scrollLeft=1,HU=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),HU}return HU}var UU=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function YU(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,i=e.getColumnStopIndexForStartIndex,a=e.getColumnWidth,s=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,u=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,d=e.getRowHeight,p=e.getRowOffset,f=e.getRowStartIndexForOffset,h=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,g=e.shouldResetStyleCacheOnItemSizeChange,b=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=m(n.props,Rl(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:Rl(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=FU((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=FU((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,i=n.props,s=i.columnWidth,l=i.direction,u=i.rowHeight,c=n._getItemStyleCache(g&&s,g&&l,g&&u),f=e+":"+t;if(c.hasOwnProperty(f))o=c[f];else{var h=r(n.props,t,n._instanceProps),m="rtl"===l;c[f]=o={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:p(n.props,e,n._instanceProps),height:d(n.props,e,n._instanceProps),width:a(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=FU((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(VU()){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&&$U(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=WU(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}ml(t,e),t.getDerivedStateFromProps=function(e,t){return KU(e,t),b(e),null};var v=t.prototype;return v.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)},v.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,a=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=GU();void 0!==n&&(n=Math.max(0,Math.min(n,a-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=s(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==n?u(this.props,n,r,m,this._instanceProps,x):m,scrollTop:void 0!==o?c(this.props,o,r,g,this._instanceProps,y):g})},v.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()},v.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(VU()){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()},v.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&$U(this._resetIsScrollingTimeoutId)},v.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,i=e.direction,a=e.height,u=e.innerRef,c=e.innerElementType,d=e.innerTagName,p=e.itemData,f=e.itemKey,h=void 0===f?UU:f,m=e.outerElementType,g=e.outerTagName,b=e.rowCount,v=e.style,y=e.useIsScrolling,x=e.width,S=this.state.isScrolling,w=this._getHorizontalRangeToRender(),C=w[0],E=w[1],R=this._getVerticalRangeToRender(),M=R[0],A=R[1],I=[];if(n>0&&b)for(var k=M;k<=A;k++)for(var L=C;L<=E;L++)I.push(o(t,{columnIndex:L,data:p,isScrolling:y?S:void 0,key:h({columnIndex:L,data:p,rowIndex:k}),rowIndex:k,style:this._getItemStyle(k,L)}));var P=s(this.props,this._instanceProps),D=l(this.props,this._instanceProps);return o(m||g||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:In({position:"relative",height:a,width:x,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},v)},o(c||d||"div",{children:I,ref:u,style:{height:P,pointerEvents:S?"none":void 0,width:D}}))},v._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)}},v._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,o=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,u=l.horizontalScrollDirection,c=l.isScrolling,d=l.scrollLeft,p=r||o||a||1;if(0===t||0===s)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),h=i(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]},v._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=f(this.props,u,this._instanceProps),p=h(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,p+g)),d,p]},t}(w),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var KU=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},XU=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},JU=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},ZU=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]},QU=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?eY(e,t,r,i,0,n):tY(e,t,r,Math.max(0,i),n)},eY=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=ZU(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},tY=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&ZU(e,t,n,r).offset<o;)n+=a,a*=2;return eY(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},rY=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=ZU(e,t,r,i),u="column"===e?JU(t,i):XU(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}},nY=YU({getColumnOffset:function(e,t,r){return ZU("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return QU("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=ZU("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=ZU("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:XU,getEstimatedTotalWidth:JU,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return rY("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return rY("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return ZU("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return QU("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=ZU("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=ZU("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}}),oY=function(e,t){return e};function iY(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,i=e.getItemSize,a=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,u=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=u(n.props,Rl(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Rl(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=FU((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=FU((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,o=n.props,a=o.direction,s=o.itemSize,l=o.layout,u=n._getItemStyleCache(c&&s,c&&l,c&&a);if(u.hasOwnProperty(e))t=u[e];else{var d=r(n.props,e,n._instanceProps),p=i(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===l,h="rtl"===a,m=f?d:0;u[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=FU((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(VU()){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&&$U(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=WU(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}ml(t,e),t.getDerivedStateFromProps=function(e,t){return aY(e,t),d(e),null};var p=t.prototype;return p.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)},p.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,i=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?GU():0:l.scrollHeight>l.clientHeight?GU():0}this.scrollTo(a(this.props,e,t,i,this._instanceProps,s))},p.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()},p.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(VU()){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()},p.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&$U(this._resetIsScrollingTimeoutId)},p.render=function(){var e=this.props,t=e.children,r=e.className,i=e.direction,a=e.height,s=e.innerRef,l=e.innerElementType,u=e.innerTagName,c=e.itemCount,d=e.itemData,p=e.itemKey,f=void 0===p?oY:p,h=e.layout,m=e.outerElementType,g=e.outerTagName,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S="horizontal"===i||"horizontal"===h,w=S?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),E=C[0],R=C[1],M=[];if(c>0)for(var A=E;A<=R;A++)M.push(o(t,{data:d,key:f(A,d),index:A,isScrolling:v?x:void 0,style:this._getItemStyle(A)}));var I=n(this.props,this._instanceProps);return o(m||g||"div",{className:r,onScroll:w,ref:this._outerRefSetter,style:In({position:"relative",height:a,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},b)},o(l||u||"div",{children:M,ref:s,style:{height:S?"100%":I,pointerEvents:x?"none":void 0,width:S?I:"100%"}}))},p._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)}},p._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,a=n.scrollOffset;if(0===t)return[0,0,0,0];var u=s(this.props,a,this._instanceProps),c=l(this.props,u,a,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}(w),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var aY=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},sY=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]},lY=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=sY(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},uY=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&sY(e,r,t).offset<n;)r+=i,i*=2;return lY(e,t,Math.min(r,o-1),Math.floor(r/2),n)},cY=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},dY=iY({getItemOffset:function(e,t,r){return sY(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:cY,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=sY(e,t,o),p=cY(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?lY(e,t,o,0,r):uY(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=sY(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=sY(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 pY(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 fY=["style"],hY=["style"];function mY(e,t){var r=e.style,n=kn(e,fY),o=t.style,i=kn(t,hY);return!pY(r,o)&&!pY(n,i)}const gY=10,bY=(e,t)=>e.current===t$.Backward?t:0,vY=(e,t,r,n)=>{for(let o=r;o<r+n;o++){const r=e.at(o);if(void 0===r||void 0===r.at(t))return!0}return!1},yY=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,xY=({pageInfo:e,measureData:t,pageTop:r,qHeight:n,startLeft:o,endLeft:i})=>{const a=[],s=e.page*e.rowsPerPage;for(let e=o;e<i;e++)if(vY(t,e,r,n)){const t=a[a.length-1],o={qLeft:e,qTop:r+s,qWidth:1,qHeight:n};void 0!==t&&yY(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},SY=({pageInfo:e,measureData:t,scrollDirection:r,viewService:n,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:s,gridHeight:l}=n,u=r.current===t$.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return xY({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:s,qHeight:l})},wY=({pageInfo:e,measureData:t,scrollDirection:r,layoutService:n,viewService:o})=>{const{startLeft:i,endLeft:a,pageTop:s,qHeight:l}=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,s=e.size.x,l=bY(r,gY),u=Math.max(n-l,0);return{startLeft:u,endLeft:u+Math.min(i+gY,s-u),pageTop:o,qHeight:a}})(n,o,r),u=xY({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:s,qHeight:l});return u.length>0?[...u,...SY({pageInfo:e,measureData:t,scrollDirection:r,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:n.size.x})]:u},CY=(e,t,r,n)=>{const o=e[r];if(void 0===o)return!0;for(let e=t;e<t+n;e++){if(void 0===o[e])return!0}return!1},EY=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,RY=({startTop:e,endTop:t,qLeft:r,qWidth:n,measureData:o,pageInfo:i})=>{const a=[],s=i.page*i.rowsPerPage;for(let i=e;i<t;i++)if(CY(o,r,i,n)){const e=a.at(-1),t={qLeft:r,qTop:i+s,qWidth:n,qHeight:1};void 0!==e&&EY(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},MY=({pageInfo:e,measureData:t,scrollDirection:r,viewService:n})=>{const{startTop:o,endTop:i,qLeft:a,qWidth:s}=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,s=bY(r,gY),l=Math.max(o-s,0);return{startTop:l,endTop:l+Math.min(a+gY,e.rowsOnCurrentPage-l),qLeft:n,qWidth:i}})(e,n,r),l=RY({startTop:o,endTop:i,qLeft:a,qWidth:s,measureData:t,pageInfo:e});if(l.length>0){const n=r.current===t$.Backward?Math.max(0,o-25):i,u=Math.min(n+25,e.rowsOnCurrentPage),c=RY({startTop:n,endTop:u,qLeft:a,qWidth:s,measureData:t,pageInfo:e});return[...l,...c]}return l},AY=async(e,t,r,n,o,i,a,s)=>{const{gridColumnStartIndex:l,gridRowStartIndex:u,gridWidth:c,gridHeight:d}=o;let p=[],f=[];i.current!==t$.None&&(p=MY({pageInfo:n,measureData:r,scrollDirection:i,viewService:o})),a.current!==t$.None&&(f=wY({pageInfo:n,measureData:r,scrollDirection:a,layoutService:t,viewService:o})),i.current===t$.None&&a.current===t$.None&&(p=RY({measureData:r,pageInfo:n,qLeft:l,qWidth:c,startTop:u,endTop:u+d}));const h=e.fetchPages([...p,...f]);s.isDownloadedAsPDForImage&&s.waitForPromise(h)},IY=function(e){var t,r,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,i=0;return function(){t=this;for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];r=s;var u=Date.now()-i,c=function(){i=Date.now(),n=0,e.apply(t,r)};n||(u>=o?c():n=setTimeout(c,o-u))}}(AY,100),kY=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var n=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(n,i)}),r)}}(AY,75),LY=(e,t,r=!1)=>void 0!==e&&(e.isLeafNode||r&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),PY=({style:e,index:t,isLastRow:r,isLastColumn:n,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{direction:s}=pH(),{styleService:{grid:{border:l,divider:u}}}=vH();return Zo.jsx("div",{style:{...e,...lB,...pB(r,n,l,s,o),...hB({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:u})},"data-testid":"empty-cell","data-index":t})},DY=({children:e,verticalAlign:t,width:r,right:n,isLeftColumn:o})=>{const{layoutService:{isIndentModeEnabled:i}}=vH(),a=o&&i;return Zo.jsx("div",{"data-key":"sticky-cell-container",style:{display:"flex",flexDirection:"row",width:r,maxWidth:"100%",maxHeight:"100%",position:"sticky",left:4,top:0,bottom:0,right:n,...!a&&{alignItems:t,alignSelf:t,overflow:"hidden"}},children:e})},_Y=e=>{const{type:t,imageSize:r}=e;return t!==Hz.Image||"fill"!==r&&"fitWidth"!==r?"fit-content":"100%"},OY=e=>"number"==typeof e&&!Number.isNaN(+e),TY=e=>"string"==typeof e&&e.length>0||"number"==typeof e?+e:NaN,qY=x(((e,t)=>Zo.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:Zo.jsx("path",{d:"M9 7V2H7v5H2v2h5v5h2V9h5V7z"})}))),jY=x(((e,t)=>Zo.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:Zo.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"})}))),NY=x(((e,t)=>Zo.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:[Zo.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"}),Zo.jsx("use",{fillRule:"evenodd"})]}))),FY=x(((e,t)=>Zo.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:Zo.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"})}))),zY=x(((e,t)=>Zo.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:Zo.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"})}))),$Y=x(((e,t)=>Zo.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:Zo.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"})}))),WY=x(((e,t)=>Zo.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:Zo.jsx("path",{d:"M2 7h12v2H2z"})}))),BY=x(((e,t)=>Zo.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:Zo.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"})}))),GY=x(((e,t)=>Zo.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:Zo.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"})}))),HY=x(((e,t)=>Zo.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:Zo.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"})}))),VY=x(((e,t)=>Zo.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:Zo.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"})}))),UY=x(((e,t)=>Zo.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:Zo.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})}))),YY=x(((e,t)=>Zo.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:Zo.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"})}))),KY=x(((e,t)=>Zo.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:Zo.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"})}))),XY=x(((e,t)=>Zo.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:Zo.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"})}))),JY={m:UY,"ï":HY,R:x(((e,t)=>Zo.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:Zo.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"})}))),S:YY,T:KY,U:XY,P:GY,Q:$Y,"è":x(((e,t)=>Zo.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:Zo.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"})}))),"¢":FY,"©":NY,"23F4":zY,2013:VY,"&":BY,add:qY,"minus-2":WY,dot:jY},ZY=({size:e,iconKey:t,color:r,pvStyle:n})=>{const o=t&&JY[t];return o&&Zo.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n},children:Zo.jsx(o,{style:{height:e}})})},QY=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),eK=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},tK=(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&&M$(e.localPaletteColors[t].color).blend(M$(s.color),s.t)},rK=(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:QY(t,e.value)})))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map(((e,t)=>({color:eK(n,t,r)})))),n},nK=(e,t,r,n)=>{const o=rK(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=tK(e,a,t);break}n=i}return r})(o,t);return a},oK=(e,t)=>{const r=(e=>e.map((e=>e.value??e)).sort(((e,t)=>e-t)))(e),n=r.some((e=>!OY(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||!OY(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)},iK=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=oK(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||!OY(t))return 0;let a=r&&OY(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}},aK=e=>"flex-start"===e?"flex-end":"flex-start",sK=(e,t,r,n)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=iK(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 eK(o,r.limitPaletteColorIndex,n);const a=QY(r.limitRange,t);return nK(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}},lK=({representation:e,cellValue:t,textStyle:r})=>{const{styleService:n}=vH(),{theme:o}=mH(),{direction:i}=pH(),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=s??{},c=sK(e,t,i,o),{fontSize:d,fontFamily:p,fontStyle:f,fontWeight:h,textDecoration:m}=n.measureValues,g={fontSize:d,fontFamily:p,fontStyle:f,fontWeight:h,textDecoration:m},b=parseInt(d||QW,10),{iconKey:v,color:y,position:x}=c||{},S={display:"flex",paddingTop:2};return l?Zo.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"4px",overflow:r?.overflow,color:u?y:r?.color},children:["left"===x&&ZY({size:b,iconKey:v,color:y,pvStyle:S}),Zo.jsx("span",{style:{paddingTop:4,overflow:r?.overflow,textOverflow:r?.textOverflow,whiteSpace:"nowrap",direction:t<0?"ltr":void 0,...g},children:a}),"right"===x&&ZY({size:b,iconKey:v,color:y,pvStyle:S})]}):(S.paddingTop=5,ZY({size:b,iconKey:v,color:y,pvStyle:S}))},uK=(e,t,r)=>{if(e?.auto)return t;switch(e?.align){case"center":return"center";case"left":return"rtl"===r?"flex-end":"flex-start";case"right":return"rtl"===r?"flex-start":"flex-end";default:return t}},cK=(e,t)=>{let{textAlign:r}=t.getDimensionInfo(e.dimensionInfoIndex)??{};return e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex&&({labelTextAlign:r}=t.visibleMeasureInfo.at(e.visibleMeasureInfoIndex)??{}),r?.auto||void 0===r?"left":r.align},dK=(e,t,r,n,o)=>{if(o)return;const i=e.representation,a=uU({isLeftColumn:r,layoutService:t,representation:i}),s=r?"flex-start":"center",l=e.representation.resolvedImagePosition?.horizontal;if(e.representation.type===Hz.Image)return a&&l&&"center"!==l&&"rtl"===n?aK(l):l??s;if(e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex){const{labelTextAlign:r}=t.visibleMeasureInfo[e.visibleMeasureInfoIndex]??{};return uK(r,s,n)}const{textAlign:u}=t.getDimensionInfo(e.dimensionInfoIndex)??{};return uK(u,s,n)},pK=x(((e,t)=>Zo.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:Zo.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"})}))),fK=x(((e,t)=>Zo.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:Zo.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"})}))),hK=e=>!!e.target?.getAttribute("class")?.includes(sN),mK=(e,t)=>{switch(t.type){case"clearSelections":return{engineSelectedCells:null,activeSelection:null,selectedField:null};case"mouseup":return{...e,activeSelection:null,engineSelectedCells:t.payload.engineSelectedCells};case"mousedown":return{...e,activeSelection:t.payload.activeSelection,selectedField:t.payload.selectedField};case"mouseover":{if(!e.activeSelection)return e;const{index:r}=t.payload,n=Math.min(r,e.activeSelection.startIndex),o=Math.max(r,e.activeSelection.endIndex);if(n===e.activeSelection.startIndex&&o===e.activeSelection.endIndex)return e;const i={...e.activeSelection,startIndex:n,endIndex:o};return i.clientSelectedCells=(e=>{const{getCellFromIndex:t,startIndex:r,endIndex:n,clientSelectedCells:o}=e,i=new Map(o);for(let e=r;e<=n;e++){const r=t(e);"N"===r?.ref.qType&&i.set(r.ref.qElemNo,r)}return i})(i),{...e,activeSelection:i}}default:return e}},gK=e=>null!==e.target?.closest("[data-prevent-selection]"),bK=e=>"A"===e.target?.tagName,vK=({startIndex:e,getCellFromIndex:t,cell:r})=>({type:"mousedown",payload:{activeSelection:{startIndex:e,endIndex:e,getCellFromIndex:t,clientSelectedCells:(new Map).set(r.ref.qElemNo,r)},selectedField:{selectionCellType:r.selectionCellType,index:"L"===r.selectionCellType?r.x:r.y}}});const yK=c({createMouseDownHandler:()=>()=>{},createMouseOverHandler:()=>()=>{},createPointerUpHandler:()=>()=>{},isSelected:()=>!1,isActive:!1,isLocked:()=>!1}),xK=()=>n(yK),SK=({children:e,selections:t})=>{const r=function(e){const{updatePageInfo:t}=pH(),r=e.isActive(),[n,o]=d(mK,{engineSelectedCells:null,selectedField:null,activeSelection:null});p((()=>{const r=()=>{o({type:"clearSelections"})},n=()=>{r(),t({page:0})};return e.on("deactivated",r),e.on("canceled",r),e.on("confirmed",n),e.on("cleared",r),()=>{e.removeListener("deactivated",r),e.removeListener("canceled",r),e.removeListener("confirmed",n),e.removeListener("cleared",r)}}),[e,t]);const i=h((async()=>{if(!n.activeSelection)return;var t,r;1===n.activeSelection.clientSelectedCells.size&&(t=n.engineSelectedCells,(r=n.activeSelection).clientSelectedCells.forEach(((e,n)=>{t?.has(n)&&(r.clientSelectedCells.delete(n),t.delete(n))})));const i=new Map([...n.engineSelectedCells??new Map,...n.activeSelection.clientSelectedCells]);try{o({type:"mouseup",payload:{engineSelectedCells:i}}),await e.select({method:"selectPivotCells",params:[SH,Array.from(i,(([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x})))]})}catch(e){console.error(e),o({type:"mouseup",payload:{engineSelectedCells:n.engineSelectedCells}})}}),[n,e]);p((()=>{if(n.activeSelection)return document.addEventListener("mouseup",i),()=>{document.removeEventListener("mouseup",i)}}),[i,n.activeSelection]);const a=h(((e,t)=>r=>{const n=t(e);hK(r)||gK(r)||bK(r)||!(e=>1===e.buttons)(r)||!n||o(vK({startIndex:e,getCellFromIndex:t,cell:n}))}),[]),s=h((t=>async()=>{n.activeSelection&&(e.isActive()||await e.begin([SH]),o({type:"mouseover",payload:{index:t}}))}),[n.activeSelection,e]),l=h(((e,t)=>r=>{if("touch"!==r.pointerType)return;const n=t(e);hK(r)||gK(r)||bK(r)||!n||(o(vK({startIndex:e,getCellFromIndex:t,cell:n})),i())}),[i]),u=h((e=>!(!n.engineSelectedCells?.size&&!n.activeSelection?.clientSelectedCells.size||!n.selectedField||e.selectionCellType===n.selectedField.selectionCellType&&("L"===e.selectionCellType?n.selectedField.index===e.x:n.selectedField.index===e.y))),[n.activeSelection?.clientSelectedCells.size,n.engineSelectedCells?.size,n.selectedField]),c=h((e=>!u(e)&&(n.engineSelectedCells?.has(e.ref.qElemNo)||!!n.activeSelection?.clientSelectedCells.has(e.ref.qElemNo))),[u,n.activeSelection?.clientSelectedCells,n.engineSelectedCells]);return g((()=>({isSelected:c,isActive:r,isLocked:u,createMouseDownHandler:a,createMouseOverHandler:s,createPointerUpHandler:l})),[c,r,u,a,s,l])}(t);return Zo.jsx(yK.Provider,{value:r,children:e})},wK=e=>"fill"===e.representation.imageSize,CK=(e,t)=>{let r=e.isLeftColumn?"flex-start":"center";return e.isLeftColumn&&wK(e)&&t&&(r="center"),e.representation.type!==Hz.Image||wK(e)?r:e.representation.resolvedImagePosition?.vertical};var EK=function(e){return e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration",e}(EK||{});const RK={brighter:.5,darker:.3,opacity:.03},MK=(e,{cell:t,styleService:r})=>{if(e===EK.Background||e===EK.Color){const r=t.expressionColor[e];if(r)return r}return t.isNull?r.nullValues[e]:t.isPseudoDimension?r.measureLabels[e]:t.isTotal?r.totalValues[e]:r.dimensionValues[e]},AK=({styleService:e,isCellSelected:t,cell:r,isCellLocked:n})=>{if(t)return e.selectedColors.background;const o=MK(EK.Background,{cell:r,styleService:e});return!n||!o||r.isPseudoDimension||r.isEmpty||r.isNull||r.isTotal?MK(EK.Background,{cell:r,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${WW(i=o,RK)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},IK=({cell:e,styleService:t,isCellSelected:r})=>r?t.selectedColors.color:MK(EK.Color,{cell:e,styleService:t}),kK=({cell:e,styleService:t})=>{const{qCanCollapse:r,qCanExpand:n}=e.ref,o=MK(EK.FontWeight,{cell:e,styleService:t});return void 0===o&&(n||r)?tB:o},LK=({cell:e,styleService:t})=>MK(EK.FontStyle,{cell:e,styleService:t}),PK=({cell:e,styleService:t})=>MK(EK.TextDecoration,{cell:e,styleService:t}),DK=e=>e?"pointer":"default",_K=({expandOrCollapse:e,cell:t})=>r=>{e?.(t.y,t.x),r.stopPropagation()},OK=(e,t)=>{if(!e.isLeftColumn||e.representation.type===Hz.Image)return{padding:4};return{padding:4,marginTop:t.dimensionValueTextHeight/2-6.5-4}},TK=({cell:e,isLeftColumn:t,isCellSelected:r})=>{const{styleService:n,layoutService:o}=vH(),{interactions:i}=mH(),{isActive:a}=xK(),{dataModel:s}=nU();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!i.active||a||!s,u=IK({cell:e,styleService:n,isCellSelected:r}),c=a?.4:1,d=e.ref.qCanExpand?fK:pK;let p;p=e.ref.qCanExpand?t?s.expandLeft:s.expandTop:t?s.collapseLeft:s.collapseTop;const f=uU({isLeftColumn:t,layoutService:o,representation:e.representation});return Zo.jsx(d,{opacity:c,color:u,"data-prevent-selection":!l||void 0,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:l?"default":"pointer",position:"sticky",top:0,...OK(e,n),...f&&{alignSelf:CK(e)}},onClick:l?void 0:_K({cell:e,expandOrCollapse:p})})},qK=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},jK=(e,t,r)=>{if("alwaysFit"===e&&t&&!r)return"fit-content";switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";case"alwaysFit":return r?"unset":"100%";default:return"100%"}},NK=(e,t)=>{if("alwaysFit"===e)switch(t?.vertical){case"flex-start":return"center top";case"flex-end":return"center bottom";default:return"center center"}},FK=({representation:e,canExpandOrCollapse:t,leafCount:r,isLeftColumn:n,styleService:o,layoutService:i,isMeasureCell:a})=>{const{isIndentModeEnabled:s}=i,l=uU({isLeftColumn:n,layoutService:i,representation:e}),u=t?21:0,c=e.imageBox?.width??24;let d=`calc(100% - ${u}px)`,p=o.headerCellHeight;n&&l&&(d=c),(a||n)&&(p=o.contentCellHeight);let f=p;switch(n&&void 0!==r&&!s&&(f=p*Math.max(r,1)),e.imageSize){case"originalSize":return{maxWidth:d,maxHeight:f,...l?{width:d}:{}};case"fitWidth":return{width:d,maxHeight:f};case"fitHeight":return{height:f,maxWidth:d,...l?{width:d}:{}};case"fill":return{height:f,width:d};default:return{width:d,height:p}}},zK=e=>{if("alwaysFit"===e)return"contain"},$K=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`.trim(),WK=({imageSize:e,resolvedImagePosition:t,isImagesInIndentModeEnabled:r,isMeasureCell:n})=>({width:jK(e,r,n),height:qK(e),objectFit:zK(e),objectPosition:NK(e,t),...r&&"alwaysFit"===e?{"max-width":"100%"}:{}}),BK=({representation:e,textStyle:t,isMeasureCell:r})=>{const{imageRef:n,onLoad:o}=(()=>{const{downloadService:e}=vH(),t=u(null),{promise:r,resolve:n}=g((()=>CB()),[]);return p((()=>(e.isDownloadedAsPDForImage&&(e.waitForPromise(r),t.current?.complete&&n()),()=>{n()})),[t,e,r,n]),{onLoad:h((()=>{n()}),[n]),imageRef:t}})(),{layoutService:{isIndentModeEnabled:i}}=vH(),{url:a,text:s,imageSize:l,resolvedImagePosition:c}=e,{overflow:d,...f}=t;return Zo.jsx("img",{src:a,alt:s,style:{...WK({imageSize:l,resolvedImagePosition:c,isImagesInIndentModeEnabled:i,isMeasureCell:r}),...f},onLoad:o,ref:n})},GK=({representation:e,textStyle:t,canExpandOrCollapse:r,leafCount:n,isLeftColumn:o=!1,imageContainerHorizontalAlignment:i,isMeasureCell:a})=>{const{styleService:s,layoutService:l}=vH(),{resolvedImagePosition:u}=e;return Zo.jsx("div",{"data-key":"image-container--image",style:{display:"flex",flexDirection:"column",justifyContent:u?.vertical,alignItems:i,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",...FK({representation:e,canExpandOrCollapse:r,leafCount:n,styleService:s,layoutService:l,isLeftColumn:o,isMeasureCell:a})},children:Zo.jsx(BK,{representation:e,textStyle:t,isMeasureCell:!0})})},HK={display:"flex",flexDirection:"row",alignItems:"center"},VK={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},UK=(e,t,r,n)=>t?{...VK,...e.nullValues}:r?{...HK,color:e.totalValues.color,background:n??e.totalValues.background}:{...HK,color:e.measureValues.color,background:n??e.measureValues.background},YK=(e,t,r,n,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,s={...uB,...!r&&cB(e.grid.lineClamp),...t&&{color:t},fontFamily:i,fontSize:a};if(o){const{fontWeight:t,fontStyle:r,textDecoration:n}=e.nullValues;return{...s,fontWeight:t,fontStyle:r,textDecoration:n}}if(n){const{fontWeight:t,fontStyle:r,textDecoration:n}=e.totalValues;return{...s,fontWeight:t,fontStyle:r,textDecoration:n}}const{fontWeight:l,fontStyle:u,textDecoration:c}=e.measureValues;return{...s,fontWeight:void 0===l?tB:l,fontStyle:u,textDecoration:c}},KK=({cell:e,representation:t,color:r,isTotalValueCell:n,cellHorizontalAlignment:o})=>{const{layoutService:i,styleService:a}=vH(),{isIndentModeEnabled:s}=i,l=e.isNull?i.getNullValueText():t.text,u=t.type===Hz.Image,c=t.type===Hz.Indicator,d=OY(TY(l)),p=YK(a,r,d,n,e.isNull);if(!s&&u&&!e.isNull||s&&u&&!e.isNull)return Zo.jsx(GK,{isMeasureCell:!0,textStyle:p,representation:t,imageContainerHorizontalAlignment:o});const f=TY(e.isNull?t.text:e.ref.qNum);return c&&OY(f)?Zo.jsx(lK,{representation:t,cellValue:f,textStyle:p}):Zo.jsx("span",{style:{padding:4,direction:d?"ltr":void 0,...p},children:l})},XK=(e,t)=>e?.[t]?.visibleMeasureInfoIndex??0,JK="flex-start",ZK=(e,t)=>e.isNull?JK:t.type===Hz.Image&&"fill"!==t.imageSize?t.resolvedImagePosition?.vertical:JK,QK=({columnIndex:e,rowIndex:t,style:r,data:n})=>{const{env:o}=mH(),{pageInfo:i,direction:a}=pH(),{styleService:s,layoutService:l}=vH(),{attrExprInfoIndexes:u,gridSectionsData:{measureData:c,leftDimensionData:d,topDimensionData:p},visibleDimensionsInfo:{visibleLeftDimensionInfo:f,visibleTopDimensionInfo:m}}=nU(),g=(()=>{const{layoutService:{isIndentModeEnabled:e}}=vH(),{gridSectionsData:{leftDimensionData:t,topDimensionData:r},visibleDimensionsInfo:{visibleLeftDimensionInfo:n,visibleTopDimensionInfo:o}}=nU(),i=n.length,a=o.length;return h(((n,o)=>!(!r.grid.at(a-1)?.[n]?.isTotal&&!t.grid.at(e?0:i-1)?.[o]?.isTotal)),[r,t,i,a,e])})(),b=(()=>{const{gridSectionsData:{topDimensionData:e},visibleDimensionsInfo:{visibleTopDimensionInfo:t}}=nU(),r=t.length;return h((t=>{const n=e.grid.at(r-1)?.[t];return LY(n,e.totalDividerIndex)}),[e,r])})(),v=(()=>{const{layoutService:{isIndentModeEnabled:e}}=vH(),{gridSectionsData:{leftDimensionData:t},visibleDimensionsInfo:{visibleLeftDimensionInfo:r}}=nU(),n=r.length;return h((r=>{const o=e?0:n-1,i=t.grid.at(o)?.[r];return LY(i,t.totalDividerIndex,e)}),[t,e,n])})(),{showLastBorder:y}=n,x=p.grid.at(m.length-1),S=d.grid.at(f.length-1),{background:w}=s.measureValues,C=c[t]?.[e],E=t===i.rowsOnCurrentPage-1,R=e===l.size.x-1;if(!C)return Zo.jsx(PY,{style:{...r,background:w},isLastRow:E,isLastColumn:R,showLastBorder:y,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const M=l.hasPseudoDimOnLeft?XK(S,t):XK(x,e),A=l.visibleMeasureInfo[M],I=TV({cell:C.ref,representationProperties:A.representation,attrExprInfoIndex:u.measures[M],env:o,direction:a,conditionalColoring:A.conditionalColoring,enabledFeatures:{[Hz.Image]:!0,[Hz.Indicator]:!0}}),k=!C.isNull&&g(e,t),L=C.isNull?l.getNullValueText():I.text,P=!C.isNull||!Number.isNaN(+L),D=qV(u.measures[M],C.ref),_=((e,t,r,n,o)=>{const{textAlign:i}=t,a=n?"flex-end":"center";return e.isNull||r.type!==Hz.Image?uK(i,a,o):r.resolvedImagePosition?.horizontal??"center"})(C,A,I,P,a),O={...UK(s,C.isNull,k,D.background),...pB(E,R,s.grid.border,a,y),...hB({bottomDivider:v(t),rightDivider:b(e),borderColor:s.grid.divider}),...lB,padding:"0px 4px",display:"flex",justifyContent:_};return Zo.jsx("div",{className:oN,title:L,style:{...O,...r},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:Zo.jsx(DY,{width:_Y(I),verticalAlign:ZK(C,I),children:Zo.jsx(KK,{cell:C,representation:I,isTotalValueCell:k,color:D.color,cellHorizontalAlignment:_})})})};var eX=r.memo(QK,mY);const tX=(e,t)=>t.list[e]?.id??e.toString(),rX=({columnIndex:e,rowIndex:t,data:r})=>r.grid[t]?.[e]?.id??`${t}-${e}`,nX=e=>({...sB,overflow:"hidden",boxSizing:"content-box",borderWidth:"rtl"===e?"1px 1px 0px 0px":"1px 0px 0px 1px"}),oX=({dataGridRef:e,height:t,rowHightCallback:r,width:n,showLastBorder:o,getRightGridColumnWidth:i,verticalScrollDirection:a,horizontalScrollDirection:s})=>{const{pageInfo:l,direction:u}=pH(),{layoutService:c,styleService:{grid:{divider:d},contentCellHeight:p}}=vH(),{dataModel:f,gridSectionsData:{measureData:g}}=nU(),b={...nX(u),borderColor:d,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},v=(({verticalScrollDirection:e,horizontalScrollDirection:t})=>{const{pageInfo:r}=pH(),{downloadService:n,viewService:o,layoutService:i}=vH(),{dataModel:a,gridSectionsData:{leftDimensionData:s,topDimensionData:l,measureData:u}}=nU(),c=s.columnCount,d=l.rowCount;return h((async({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:p,overscanRowStopIndex:f})=>{o.gridColumnStartIndex=s,o.gridRowStartIndex=p,o.gridWidth=l-s+1,o.gridHeight=f-p+1;const h=o.gridWidth+c+(t.current===t$.None?0:gY),m=o.gridHeight+d+(e.current===t$.None?0:gY);let g=IY;m*h>1500&&(g=kY),g(a,i,u,r,o,e,t,n)}),[o,i,a,u,e,t,r,c,d,n])})({verticalScrollDirection:a,horizontalScrollDirection:s});return zB((()=>{e.current&&e.current.resetAfterColumnIndex(0,!1)}),[e,f,g]),m((()=>{e.current&&e.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[n,t,e,p,u]),0===c.size.x?null:Zo.jsx(nY,{"data-section-id":"DATA_GRID",ref:e,style:b,columnCount:c.size.x,columnWidth:i,height:t,rowCount:l.rowsOnCurrentPage,rowHeight:r,width:n,itemData:{showLastBorder:o,grid:g},onItemsRendered:v,estimatedRowHeight:r(),estimatedColumnWidth:i(),itemKey:rX,direction:u,children:eX})};var iX=y(oX);const aX=x(((e,t)=>Zo.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:[Zo.jsx("path",{d:"M13 7H8zV4.982C13 2.23 10.761 0 8 0S3 2.23 3 4.982V7h.75H3h1.5V5.332C4.5 3.216 5.549 1.5 8 1.5s3.5 1.716 3.5 3.832V7h.75H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H3z"}),Zo.jsx("use",{fillRule:"evenodd"})]}))),sX=e=>{const[t,r]=b(!1);return zB((()=>{r(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:r}},lX=()=>{const[e,t]=b(!1),{dataModel:r}=nU(),{interactions:n}=mH(),{isAdjustingWidth:o,setIsAdjustingWidth:i}=sX([r]);return{open:e,setOpen:t,handleOpenMenu:e=>{!n.active||hK(e)||o||t(!0)},setIsAdjustingWidth:i}};function uX(e,t){const r=t.expressionColor?.background??e.dimensionValues.background,n=t.isLeftColumn?e.header.background:r,o=n===oB.Transparent?p$.WHITE:n,i=mF(e.grid.border),a=mF(o);return a.isInvalid()||i.isInvalid()||1===i.a?e.grid.border:function(e,t,r){return mF(e.r+(t.r-e.r)*r,e.g+(t.g-e.g)*r,e.b+(t.b-e.b)*r,e.a+(t.a-e.a)*r)}(a,i,i.a).getRGB()}const cX=({cellInfo:e,columnWidth:t,isLastColumn:r,overrideLeftGridWidth:n,setIsAdjustingWidth:o,shouldApplyIndentModeColumnWidth:i,tableWidth:a})=>{const{direction:s}=pH(),{interactions:l,translator:u}=mH(),{isActive:c}=xK(),{dataModel:d}=nU(),{styleService:p}=vH(),[,f]=b({});if(!(e.canBeResized&&!!l.active&&!c))return null;const h=uX(p,e);return Zo.jsx(VB,{isPivot:!0,columnWidth:t,isLastColumn:r,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:h,updateWidthCallback:t=>{f({}),n&&void 0!==e.colIdx&&n(t,e.colIdx)},confirmWidthCallback:t=>{i?d.applyIndentModeColumnWidth({...t,pixels:Math.min((a??0)*sU,t.pixels??0)}):d.applyColumnWidth(t,e)},setIsAdjustingWidth:o,isLeftColumn:e.isLeftColumn,accessibilityRelatedArgs:{translator:u,columnLabel:e.label??""},direction:s})},dX=CO(hT,{shouldForwardProp:e=>!["interactions","hoverBackground","background","shouldShowMenuIcon","isDimension"].includes(e)})((({interactions:e,background:t,hoverBackground:r,shouldShowMenuIcon:n,isDimension:o})=>({pointerEvents:o?"all":"none",position:"relative",display:"grid",gridTemplateColumns:n?"1fr 12px":"1fr",gap:8,alignItems:"center",cursor:e.active?"pointer":"default",background:t,"&&:hover":{background:e.active&&o?r:t}}))),pX=CO("div",{shouldForwardProp:e=>!["direction"].includes(e)})((({direction:e})=>({position:"absolute",left:"rtl"!==e?0:void 0,bottom:0}))),fX=CO("div",{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({...aB,justifyContent:e??aB.justifyContent,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}))),hX=CO("div")((()=>({...aB}))),mX=CO("div",{shouldForwardProp:e=>!["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","justifyContent"].includes(e)})((({fontSize:e,fontFamily:t,fontWeight:r,fontStyle:n,textDecoration:o,justifyContent:i})=>({display:"flex",justifyContent:i,alignSelf:"center",flexGrow:1,maxWidth:"100%",fontWeight:r,fontSize:e,fontFamily:t,fontStyle:n,textDecoration:o}))),gX=CO(Fq)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),bX=CO(Gq,{shouldForwardProp:e=>!["isActive"].includes(e)})((({theme:e,isActive:t})=>({width:220,maxHeight:32,borderRadius:e.spacing(.5),margin:e.spacing(.25,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between",position:"relative",overflow:"hidden ",boxSizing:"border-box",background:t?"rgba(0, 0, 0, 0.05)":"transparent","&:hover":{".indent-mode-dropdown-more":{opacity:1}}}))),vX=CO("span")({textOverflow:"ellipsis",overflow:"hidden"}),yX=CO("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:iU,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"}))),xX=CO("span",{shouldForwardProp:e=>!["padding","alignSelf"].includes(e)})((({padding:e,alignSelf:t})=>({padding:e,alignSelf:t,position:"sticky",top:0})));let SX=function(e){return e.Expand="Expand",e.Collapse="Collapse",e}({});const wX=(e,t)=>({qExcludeList:t===SX.Expand,qPos:{qDimName:e,qElemNo:[]}}),CX=`${SH}/qExpansionState`,EX=({model:e,qExpansionState:t,qEffectiveDimensionName:r,action:n})=>async()=>{const o=(({qEffectiveDimensionName:e,oldExpansionState:t,action:r})=>{const n=t?.findIndex((t=>t.qPos?.qDimName===e));return{expansionData:wX(e,r),index:n}})({qEffectiveDimensionName:r,oldExpansionState:t,action:n});await(async({model:e,newExpansionState:t,errorMsg:r})=>{const{index:n,expansionData:o}=t;try{let t,r=CX,i="Add";void 0===n?t=JSON.stringify([o]):-1===n?(r=`${CX}/-`,t=JSON.stringify(o)):(r=`${CX}/${n}`,i="Replace",t=JSON.stringify(o)),await e.applyPatches([{qPath:r,qOp:i,qValue:t}],!0)}catch(e){console.error(r,e)}})({model:e,newExpansionState:o,errorMsg:`Failed to ${n} dimension`})},RX=({model:e,effectivePropertiesService:t,cell:r})=>{if(void 0===r.qEffectiveDimensionName)return;const n={model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r.qEffectiveDimensionName};return{expandCallback:EX({...n,action:SX.Expand}),collapseCallback:EX({...n,action:SX.Collapse}),alwaysFullyExpanded:t.qAlwaysFullyExpanded}},MX={[PG.Sorting]:!0,[PG.Selections]:!0,[PG.Searching]:!0},AX=({cell:e,style:t,isFirstColumn:r,isLastColumn:n,isLastRow:o,changeSortOrder:i,iconsVisibilityStatus:a,columnWidth:s,overrideLeftGridWidth:l,shouldApplyIndentModeColumnWidth:c,tableWidth:d})=>{const p=u(null),{styleService:f,layoutService:h,effectivePropertiesService:m}=vH(),{app:g,interactions:b,embed:v,translator:y,model:x}=mH(),{fontSize:S,fontFamily:w,fontStyle:C,fontWeight:E,textDecoration:R,color:M,background:A,hoverBackground:I,activeBackground:k}=f.header,L=u(null),{shouldShowLockIcon:P,shouldShowMenuIcon:D}=a,{open:_,setOpen:O,handleOpenMenu:T,setIsAdjustingWidth:q}=lX(),{direction:j}=pH(),N={sortFromMenu:async(t,r)=>{t.stopPropagation(),await i(e,r)}},F={embed:v,listboxRef:p,sortCriteria:h.searchSortFromDimension&&e.isDim?m.getSortCriteriaForDimension(e.dimensionInfoIndex):void 0},z={app:g,qStateName:h.layout.qStateName},{labelTextAlign:$}=h.getDimensionInfo(e.dimensionInfoIndex)??{},W=uK($,"flex-start",j);return Zo.jsxs(dX,{className:oN,title:e.label,interactions:b,background:_?k:A,hoverBackground:I,shouldShowMenuIcon:D,isDimension:e.isDim,style:{...t,...lB,...fB(e,o,r,n,f.grid.border,j),color:M},"data-testid":"title-cell",onClick:T,children:[Zo.jsxs(fX,{children:[P?Zo.jsx(hX,{children:Zo.jsx(aX,{height:12})}):null,Zo.jsx(mX,{fontFamily:w,fontSize:S,fontStyle:C,fontWeight:E,textDecoration:R,justifyContent:W,children:Zo.jsx("span",{style:uB,children:e.label})})]}),e.isDim?Zo.jsxs(Zo.Fragment,{children:[Zo.jsx(OG,{headerData:e,translator:y,anchorRef:L,open:_,setOpen:O,interactions:b,menuAvailabilityFlags:MX,sortRelatedArgs:N,searchRelatedArgs:F,selectionRelatedArgs:z,expandOrCollapseArgs:RX({model:x,effectivePropertiesService:m,cell:e}),shouldShowMenuIcon:D,model:x&&"setActiveField"in x?x:void 0,direction:j,isAccessibleHeader:!0}),Zo.jsx(pX,{ref:p,direction:j}),Zo.jsx(pX,{ref:L,direction:j})]}):null,Zo.jsx(cX,{cellInfo:{...e,isLeftColumn:!0},columnWidth:s,isLastColumn:n,overrideLeftGridWidth:l,setIsAdjustingWidth:q,shouldApplyIndentModeColumnWidth:c,tableWidth:d})]})},IX=({rowSpan:e,columnSpan:t})=>{const{styleService:r}=vH(),{direction:n}=pH();return e>0&&t>0?Zo.jsx("div",{style:{...sB,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"rtl"===n?"0px 0px 0px 1px":"0px 1px 0px 0px",borderColor:r.grid.border,background:r.grid.background},"data-testid":"empty-header-cell"}):null},kX=x(((e,t)=>Zo.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:Zo.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})}))),LX=x(((e,t)=>Zo.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:[Zo.jsx("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),Zo.jsx("use",{fillRule:"evenodd"})]}))),PX=({tableWidth:e,leftGridWidth:t,overrideLeftGridWidth:r})=>{const{direction:n}=pH(),{styleService:o}=vH(),{interactions:i,translator:a}=mH(),{isActive:s}=xK(),{dataModel:l}=nU(),{setIsAdjustingWidth:u}=sX([l]);if(!(!!i.active&&!s))return null;const c=uX(o,{isLeftColumn:!0});return Zo.jsx(VB,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:c,columnWidth:t,updateWidthCallback:t=>{r(Math.min(t,e*sU))},confirmWidthCallback:n=>{if(n.type===uN.FitToContent)return void l.applyIndentModeColumnWidth({type:uN.Auto});const o=Math.min(n.pixels??t,e*sU);r(o),l.applyIndentModeColumnWidth({type:uN.Pixels,pixels:o})},setIsAdjustingWidth:u,accessibilityRelatedArgs:{translator:a,columnLabel:a.get("SNPivotTable.IndentMode.Rows")},direction:n})},DX=x(((e,t)=>Zo.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:Zo.jsx("path",{d:"M3 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0m6 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0m5 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})}))),_X=({cell:e,changeSortOrder:t})=>{const r=u(null),n=u(null),{app:o,interactions:i,embed:a,translator:s,model:l}=mH(),{layoutService:c,effectivePropertiesService:d}=vH(),{open:p,setOpen:f,handleOpenMenu:h}=lX();return Zo.jsxs(bX,{onClick:h,isActive:p,children:[Zo.jsx(vX,{children:e.label}),Zo.jsxs(yX,{className:"indent-mode-dropdown-more",visible:p,children:[Zo.jsx(DX,{}),e.isDim?Zo.jsxs(Zo.Fragment,{children:[Zo.jsx(OG,{headerData:e,translator:s,anchorRef:r,open:p,setOpen:f,interactions:i,menuAvailabilityFlags:MX,sortRelatedArgs:{sortFromMenu:async(r,n)=>{r.stopPropagation(),await t(e,n)}},searchRelatedArgs:{embed:a,listboxRef:n},selectionRelatedArgs:{app:o,qStateName:c.layout.qStateName},expandOrCollapseArgs:RX({model:l,effectivePropertiesService:d,cell:e}),shouldShowMenuIcon:!1,model:l&&"setActiveField"in l?l:void 0}),Zo.jsx(pX,{ref:n}),Zo.jsx(pX,{ref:r})]}):null]})]})},OX=({idx:e,menu:t,menuItems:r,isOnlyOneRow:n})=>{const o=r.at(-1)?.id===CH,i=e+1<r.length&&r[e+1]?.id===CH;return!(n&&o&&i)&&(t?.id!==CH&&e<r.length-1)},TX=({menuItems:e,changeSortOrder:t,overrideLeftGridWidth:r,leftGridWidth:n,tableWidth:o})=>{const{styleService:i}=vH(),{interactions:a,translator:s}=mH(),{dataModel:l,gridSectionsData:{headersData:c}}=nU(),[d,p]=b(!1),f=u(null),{headerCellHeight:h}=i,{color:m,background:g,hoverBackground:v,activeBackground:y,fontFamily:x,fontSize:S,fontStyle:w,fontWeight:C,textDecoration:E}=i.header,{isAdjustingWidth:R}=sX([l]),M=e=>{e.stopPropagation()},A={height:h,gridColumn:`1 / span ${c.size.x}`,gridRow:c.size.y,zIndex:c.size.x-0};return Zo.jsxs(dX,{isDimension:!0,background:d?y:g,interactions:a,hoverBackground:v,style:{...A,...lB,color:m},onClick:e=>{!a.active||hK(e)||R||p(!d)},"data-testid":"indentModeHeaderCellWrapper",children:[Zo.jsxs(fX,{justifyContent:"flex-start",children:[Zo.jsx(mX,{fontFamily:x,fontSize:S,fontStyle:w,fontWeight:C,textDecoration:E,justifyContent:"flex-start",children:Zo.jsx("span",{style:uB,children:s.get("SNPivotTable.IndentMode.Rows")})}),d?Zo.jsx(LX,{}):Zo.jsx(kX,{}),Zo.jsx(pX,{ref:f})]}),Zo.jsx(gX,{open:d,anchorEl:f.current,disableEnforceFocus:!0,children:e.map(((r,n)=>[r&&r.id!==CH&&Zo.jsx("li",{role:"presentation",onClick:M,onKeyDown:M,children:Zo.jsx(_X,{cell:r,changeSortOrder:t})}),OX({idx:n,menu:r,menuItems:e,isOnlyOneRow:1===c.size.y})&&Zo.jsx(JB,{"data-testid":"group-divider",variant:"middle"})]))}),Zo.jsx(PX,{tableWidth:o,leftGridWidth:n,overrideLeftGridWidth:r})]})},qX=({layoutService:e,headersData:t,topRowIndex:r})=>e.isIndentModeEnabled&&t.size.x>1&&r+1===t.size.y,jX={display:"grid",width:"fit-content"},NX=({tableWidth:e,leftGridWidth:t,columnWidths:r,rowHight:n,changeSortOrder:o,getHeaderCellsIconsVisibilityStatus:i,height:a,overrideLeftGridWidth:s})=>{const{layoutService:l}=vH(),{gridSectionsData:{headersData:u}}=nU();return Zo.jsxs("div",{"data-testid":"HEADER_GRID",style:{...jX,gridTemplateColumns:r.map((e=>`${e}px`)).join(" "),gridTemplateRows:u.data.map((()=>`${n}px`)).join(" "),height:a},children:[u.size.y>1&&Zo.jsx(IX,{columnSpan:u.size.x-1,rowSpan:u.size.y-1}),u.data.map(((a,c)=>{let d=[];if(qX({layoutService:l,headersData:u,topRowIndex:c})){const r=a.at(0);return Array.isArray(r)&&d.push(Zo.jsx(TX,{menuItems:r,changeSortOrder:o,overrideLeftGridWidth:s,leftGridWidth:t,tableWidth:e},r.at(0)?.id)),d}return d=a.reduce(((t,a,d)=>{if(a&&!Array.isArray(a)){const p=i(d,a.isLocked,a.label),f=l.isIndentModeEnabled&&1===u.size.x;t.push(Zo.jsx(AX,{style:{width:r[d],height:n,gridColumn:l.isIndentModeEnabled&&u.size.x>1?2:d+1,gridRow:c+1,zIndex:u.size.x-d},isLastRow:c===u.size.y-1,isFirstColumn:0===d,isLastColumn:d===u.size.x-1,changeSortOrder:o,cell:a,iconsVisibilityStatus:p,columnWidth:r[d],overrideLeftGridWidth:s,shouldApplyIndentModeColumnWidth:f,tableWidth:e},a.id))}return t}),[]),d}))]})};var FX=y(NX);const zX=(e,t,r,n)=>{const{layoutService:o}=vH();m((()=>{e.current?.forEach((e=>e?.resetAfterIndex(0,!0)))}),[e,t,r,n,o])},$X=(e,t)=>{zB((()=>{e.current?.forEach((e=>e?.resetAfterIndex(0,!1)))}),[e,t])},WX=(e,t)=>{const{isLast:r,list:n,listValues:o}=t;return r?n[e]:o[e]},BX=()=>{},GX=({children:e,reactWindowStyle:t,cell:r,data:n,showTotalCellDivider:o,isLastRow:i,isLastColumn:a,isLeftColumn:s,isCellSelected:l,isAdjustingWidth:u,index:c})=>{const{styleService:d,layoutService:p}=vH(),{interactions:f}=mH(),{direction:h}=pH(),{isLocked:m,createMouseDownHandler:g,createMouseOverHandler:b,createPointerUpHandler:v}=xK(),{showLastBorder:y}=n,x=m(r)||r.isLockedByDimension,S=!(x||!f.active||!f.select||r.isEmpty||r.isNull||r.isPseudoDimension||r.isTotal||u),w=S?g(c,(e=>WX(e,n))):void 0,C=S?b(c):void 0,E=S?v(c,(e=>WX(e,n))):void 0,R=uU({isLeftColumn:s,layoutService:p,representation:r.representation});return Zo.jsx("div",{className:oN,title:f.passive?r.representation.text:void 0,style:{...t,...pB(i,a,d.grid.border,h,y),...hB({bottomDivider:o&&s,rightDivider:o&&!s,borderColor:d.grid.divider}),...lB,padding:"rtl"===h?"0px 0px 0px 4px":"0px 4px",cursor:DK(S),background:AK({styleService:d,isCellSelected:l,cell:r,isCellLocked:x}),zIndex:s?void 0:p.size.x-r.x,justifyContent:dK(r,p,s,h,R),display:"flex",...p.isIndentModeEnabled&&s&&{["rtl"===h?"paddingRight":"paddingLeft"]:Math.max(4,24*(r.indentLevel??0))},textAlign:cK(r,p)},"aria-hidden":"true",onMouseDown:w,onMouseOver:C,onPointerUp:E,onKeyUp:BX,role:"button",tabIndex:-1,"data-testid":"dimension-cell","data-x":r.x,"data-page-x":r.pageX,"data-y":r.y,"data-page-y":r.pageY,"data-cell-type":r.ref.qType,"data-dimension-info-index":r.dimensionInfoIndex,children:e})},HX=e=>{e.stopPropagation()},VX=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:HX,color:p$.LINK,style:{pointerEvents:r.active?"auto":"none",color:n??void 0,opacity:r.active&&r.passive||n?void 0:.4}}),UX=({href:e,text:t,interactions:r,color:n})=>Zo.jsx(cd,{...VX({href:e,text:t,interactions:r,color:n}),children:t}),YX=U();YX.use(V),YX.renderer.prio(["canvas"]);const KX=(e,t)=>e&&"center"!==e&&"rtl"===t?aK(e):e,XX=({cell:e,representation:t,textStyle:r,imageContainerHorizontalAlignment:n})=>{const{imageBox:o}=t,{styleService:{grid:{lineClamp:i}}}=vH(),{direction:a}=pH();return Zo.jsxs("div",{style:{display:"grid",gridTemplateColumns:`${o?.width??24}px 1fr`,maxHeight:"fit-content",alignItems:"center",justifyContent:"flex-start",boxSizing:"border-box"},children:[Zo.jsx("div",{"data-key":"image-container--partial-image",style:{display:"flex",flexDirection:"column",justifyContent:CK(e),alignItems:KX(n,a),overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",width:o?.width??24,height:"100%"},children:Zo.jsx(BK,{representation:t,textStyle:r})}),Zo.jsx(xX,{padding:4/(i<=2?2:1),alignSelf:CK(e,!0),children:!!t.labelStructure&&$K(t.labelStructure)})]})},JX=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`,ZX=({href:e,text:t,labelStructure:r,interactions:n,color:o})=>Zo.jsxs("span",{children:[Zo.jsx(YT,{...VX({href:e,text:t,interactions:n,color:o}),children:r?.maskedValue?r.maskedValue:r?.originalValue}),!!r&&JX(r)]}),QX=({children:e,textStyle:t,shouldEnableStickyText:r})=>Zo.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box",...r&&{alignSelf:"flex-start",position:"sticky",top:0}},children:e}),eJ=({cell:e,isCellSelected:t,isLeftColumn:r})=>{const{direction:n}=pH(),{isActive:o}=xK(),{layoutService:i,styleService:a}=vH(),{interactions:s}=mH(),l=r&&i.isIndentModeEnabled;let u=r&&!e.isNull?(e=>{const{representation:{text:t,labelStructure:r}}=e;if(!r||!r.originalValue)return t;const{originalValue:n,maskedValue:o,suffix:i,delimeter:a}=r;return`${0!==o.length?o:n} ${i?a:""} ${i}`.trim()})(e):e.representation.text;if(e.isEmpty)return null;const c=(({cell:e,styleService:t,isCellSelected:r,isLeftColumn:n})=>({...uB,...cB(n?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:IK({cell:e,styleService:t,isCellSelected:r}),fontWeight:kK({cell:e,styleService:t}),fontStyle:LK({cell:e,styleService:t}),textDecoration:PK({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:a,isCellSelected:t,isLeftColumn:r});if(e.representation.type===Hz.Image&&!e.isTotal&&!e.isNull){const{labelStructure:t}=e.representation,o=r&&t&&t.suffix?XX:GK;return Zo.jsx(o,{cell:e,representation:e.representation,leafCount:e.leafCount,textStyle:c,isLeftColumn:r,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand,imageContainerHorizontalAlignment:dK(e,i,r,n)})}if(e.representation.type===Hz.Link&&!o&&!e.isTotal){const t=r&&e.representation.labelStructure?ZX:UX;u=Zo.jsx(t,{text:e.representation.text,labelStructure:e.representation.labelStructure,href:e.representation.url,interactions:s,color:e.expressionColor.color})}return Zo.jsx(QX,{shouldEnableStickyText:l,textStyle:{...c,...e.representation.type===Hz.Image&&e.isNull?{alignSelf:CK(e)}:{}},children:u})},tJ=({index:e,style:t,data:r})=>{const{styleService:n,layoutService:o}=vH(),{isSelected:i}=xK(),{isLeftColumn:a=!1,showLastBorder:s,itemCount:l,isLast:u,totalDividerIndex:c}=r,{isAdjustingWidth:d,setIsAdjustingWidth:p}=sX([r]),f=WX(e,r),h=a?e===l-1:u,m=a?u:e===l-1,g=LY(f,c,o.isIndentModeEnabled);if(void 0===f){const{background:r}=n.dimensionValues;return Zo.jsx(PY,{style:{...t,background:r},index:e,isLastRow:h,isLastColumn:m,showLastBorder:s,isLeftColumn:a,showTotalCellDivider:g})}const b=i(f);return Zo.jsxs(GX,{reactWindowStyle:t,isLeftColumn:a,isLastRow:h,isLastColumn:m,isCellSelected:b,showTotalCellDivider:g,cell:f,data:r,isAdjustingWidth:d,index:e,children:[Zo.jsxs(DY,{verticalAlign:CK(f),width:_Y(f.representation),right:f.isLeftColumn?void 0:4,isLeftColumn:a,children:[Zo.jsx(TK,{isLeftColumn:a,isCellSelected:b,cell:f}),Zo.jsx(eJ,{isLeftColumn:a,isCellSelected:b,cell:f})]}),Zo.jsx(cX,{cellInfo:{...f,columnWidthLocation:f.isPseudoDimension?Zz.Measures:Zz.Dimension},columnWidth:t.width,isLastColumn:m,setIsAdjustingWidth:p})]})};var rJ=r.memo(tJ,mY);const nJ=({list:e,listValues:t,isLastRow:r,getRightGridColumnWidth:n})=>o=>{const i=r?e[o]:t.at(o);return i&&0===o&&i.x>0?(i.leafCount+i.x+i.distanceToNextCell)*n():!r&&i?(i.leafCount+i.distanceToNextCell)*n():n(i?.x??o)},oJ=(e,t,r,n)=>{const o=Object.values(e);let i,a=o.length;return n&&(a=r,i=t/a),{itemCount:a,estimatedItemSize:i,listValues:o}},iJ=(e,t)=>r=>{e.current&&(e.current[t]=r)},aJ={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...sB},sJ={overflow:"hidden",willChange:"auto",flexShrink:0},lJ=({leftGridRef:e,width:t,height:r,columnWidths:n,showLastBorder:o})=>{const{pageInfo:i,direction:a}=pH(),{layoutService:s,styleService:{contentCellHeight:l,grid:{divider:u}}}=vH(),{qSize:c}=s.layout.qHyperCube,{gridSectionsData:{leftDimensionData:d},visibleDimensionsInfo:{visibleLeftDimensionInfo:p}}=nU();$X(e,d),zX(e,t,r,l);const f=i.rowsOnCurrentPage*l,h={...aJ,borderColor:u,width:n.reduce(((e,t)=>e+t),0)};return Zo.jsx("div",{style:h,"data-section-id":"LEFT_GRID",children:d.grid.map(((t,u)=>{const h=u===d.columnCount-1,m=LH(p[u]),{itemCount:g,estimatedItemSize:b,listValues:v}=oJ(t,f,i.rowsOnCurrentPage,h),y=s.isIndentModeEnabled?()=>l:((e,t,r,n,o)=>i=>{const a=n?e[i]:t.at(i);if(a&&0===i&&a.pageY>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*r;if(a&&a.leafCount>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*r}return r})(t,v,l,h,c.qcy);return Zo.jsx(dY,{ref:iJ(e,u),style:{...sJ,flexGrow:h?1:0,direction:a},height:r,width:n[u],itemCount:g,itemSize:y,layout:"vertical",itemData:{list:t,isLeftColumn:!0,isLast:h,itemCount:g,showLastBorder:o,listValues:v,totalDividerIndex:d.totalDividerIndex},itemKey:tX,estimatedItemSize:b,children:rJ},m)}))})};var uJ=y(lJ);const cJ={overflow:"hidden",willChange:"auto"},dJ=e=>({...sB,borderWidth:"rtl"===e?"0px 1px 0px 0px":"0px 0px 0px 1px"}),pJ=({topGridRef:e,rowHightCallback:t,width:r,height:n,showLastBorder:o,getRightGridColumnWidth:i})=>{const{direction:a}=pH(),{layoutService:s,styleService:{grid:{divider:l},headerCellHeight:u}}=vH(),{gridSectionsData:{headersData:c,topDimensionData:d}}=nU(),p={...dJ(a),borderColor:l,height:n};$X(e,d),zX(e,r,n,u);const f=s.size.x*i();return 0===d.rowCount?Zo.jsx("div",{style:{width:r,height:n,...dJ(a)}}):Zo.jsx("div",{style:p,"data-section-id":"TOP_GRID",children:d.grid.map(((n,l)=>{const u=l===d.rowCount-1,{itemCount:p,estimatedItemSize:h,listValues:m}=oJ(n,f,s.size.x,u),g=(({layoutService:e,headersData:t,topRowIndex:r})=>{const n=t.data.at(r);if(void 0===n)return;const o=t.size.x-1,i=qX({layoutService:e,headersData:t,topRowIndex:r})?0:o,a=n.at(i),s=Array.isArray(a)?a.at(o):a;return s?e.getDimensionInfo(s.dimensionInfoIndex):void 0})({layoutService:s,headersData:c,topRowIndex:l}),b=g?LH(g):`empty ${l}`;return Zo.jsx(dY,{ref:iJ(e,l),style:cJ,height:t(),width:r,itemCount:p,itemSize:nJ({list:n,listValues:m,isLastRow:u,getRightGridColumnWidth:i}),layout:"horizontal",itemData:{list:n,isLast:u,itemCount:p,showLastBorder:o,listValues:m,totalDividerIndex:d.totalDividerIndex},itemKey:tX,estimatedItemSize:h,direction:a,children:rJ},b)}))})};var fJ=y(pJ);const hJ=()=>{const{styleService:{headerCellHeight:e,contentCellHeight:t}}=vH(),r=LU(),n=(()=>{const{model:e}=mH(),t=h((async(t,r)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:n,dimensionInfoIndex:o,sortDirection:i}=t,a=[];if(r===i)return!1;a.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!n).toString()});try{return await e.applyPatches(a,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}),[e]);return t})(),{gridSectionsWrapperRefs:{headerGridWrapperRef:o,topGridWrapperRef:i,leftGridWrapperRef:a,dataGridWrapperRef:s},gridRefs:{topGridRef:l,leftGridRef:u,dataGridRef:c},scrollDirectionRefs:{verticalScrollDirection:d,horizontalScrollDirection:f},scrollbarsDimensions:{verticalScrollbarWidth:m,horizontalScrollbarHeight:g,resetHorizontalScrollbarHeight:b}}=kU(),{leftGridWidth:v,leftGridFullWidth:y,leftGridColumnWidths:x,rightGridFullWidth:S,showLastRightBorder:w,getRightGridColumnWidth:C,getHeaderCellsIconsVisibilityStatus:E,overrideLeftGridWidth:R}=function({tableWidth:e,verticalScrollbarWidth:t,resetHorizontalScrollbarHeight:r}){const{layoutService:n,styleService:o}=vH(),{gridSectionsData:{headersData:i}}=nU(),{measureText:a}=qB(o.header),s=SU({tableWidth:e}),l=wU({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:s.leftGridWidth}),u=s.leftGridWidth+l.rightGridFullWidth+1<e,c=h(((e,t,r="")=>{let o=e;n.isIndentModeEnabled&&(o=1,1===i.size.x&&(o=0));const l=s.leftGridColumnWidths[o];let u=!1,c=!1,d=a(r)+aU;return t&&d+iU<=l&&(c=!0,d+=iU),d+iU<=l&&(u=!0),{shouldShowMenuIcon:u,shouldShowLockIcon:c}}),[s.leftGridColumnWidths,a,n.isIndentModeEnabled,i.size.x]);return p((()=>{const e=s.leftGridWidth===s.leftGridFullWidth,t=l.rightGridWidth===l.rightGridFullWidth;e&&t&&r()}),[r,s.leftGridWidth,s.leftGridFullWidth,l.rightGridWidth,l.rightGridFullWidth]),{...s,...l,showLastRightBorder:u,getHeaderCellsIconsVisibilityStatus:c}}({tableWidth:r.width,verticalScrollbarWidth:m,resetHorizontalScrollbarHeight:b}),{gridScaffoldDimensions:M,headerGridDims:A,topGridDims:I,leftGridDims:k,dataGridDims:L,metadata:{everyThingFitsInTableRectHeight:P,scrollbarsVisibilityStatus:D}}=(({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:r,leftGridOriginalWidth:n,rightGridOriginalWidth:o},scrollBarsDimensions:{verticalScrollbarWidth:i,horizontalScrollbarHeight:a}})=>{const s=LU(),{pageInfo:l}=pH(),{gridSectionsData:{headersData:u,topDimensionData:c}}=nU(),d=Math.min(s.height*sU,Math.max(s.height*sU-25,s.height-t-a)),p=s.width*sU,f=l.rowsOnCurrentPage*t,h=Math.max(u.size.y,c.rowCount,1),m=e*h,g=e*h,b=Math.min(p,r),v=s.width-p,y=Math.max(v,s.width-b),x=Math.min(d,m,g),{availableHeight:S,everyThingFitsInTableRectHeight:w,everyThingFitsInTableRectWidth:C}=((e,t,r)=>{const n=t+1+r+i<=s.width,o=e+1+f+a,l=o-s.height<a||o<=s.height;return{availableHeight:l?o:s.height,everyThingFitsInTableRectHeight:l,everyThingFitsInTableRectWidth:n}})(x,b,y),E=S-d,R=Math.max(E,S-x),M=Math.min(R,f),A=Math.min(R,f),I=m+1+f,{visibilityStatus:k,metadata:{hasLeftGridOverflowX:L,hasDataGridOverflowX:P}}=(e=>{const{gridScaffold:{X_AXIS:{leftSectionWidth:t,rightSectionWidth:r},Y_AXIS:{topSectionHeight:n,bottomSectionHeight:o}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:i,rightSectionFullWidth:a},Y_AXIS:{topSectionFullHeight:s,bottomSectionFullHeight:l}}}=e,u=s>n,c=i>t,d=a>r,p=l>o;return{visibilityStatus:{topGrid:{overflowX:"hidden",overflowY:u?"scroll":"hidden"},leftGrid:{overflowX:c?"scroll":"hidden",overflowY:"hidden"},dataGrid:{overflowX:d?"scroll":"hidden",overflowY:p?"scroll":"hidden"}},metadata:{hasTopGridOverflowY:u,hasLeftGridOverflowX:c,hasDataGridOverflowX:d,hasDataGridOverflowY:p}}})({gridScaffold:{X_AXIS:{leftSectionWidth:b,rightSectionWidth:y},Y_AXIS:{topSectionHeight:x,bottomSectionHeight:R}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:n,rightSectionFullWidth:o},Y_AXIS:{topSectionFullHeight:g,bottomSectionFullHeight:I-g}}});return{gridScaffoldDimensions:{width:s.width,height:s.height,gridTemplateColumns:`${b}px ${y}px`,gridTemplateRows:`${x}px ${R}px`},headerGridDims:{width:-1,height:x},topGridDims:{fullSizeWrapper:{width:o-i+(P?i:0),height:g},stickyWrapper:{width:y-1-i,height:-1},self:{width:Math.min(o,y)-(C?1:0)-i,height:g}},leftGridDims:{fullSizeWrapper:{width:b,height:I-g+(!L&&P?a:0)},stickyWrapper:{width:b,height:R-1-a},self:{width:b,height:Math.max(t,M-(w?0:a-1))}},dataGridDims:{fullSizeWrapper:{width:o-i+(P?i:0),height:I-g+(!P&&L?a:0)},stickyWrapper:{width:y-1-i,height:R-1-a},self:{width:Math.min(o,y)-(C?1:0)-i,height:Math.max(t,A-(w?0:a-1))}},metadata:{everyThingFitsInTableRectHeight:w,scrollbarsVisibilityStatus:k}}})({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:v,leftGridOriginalWidth:y,rightGridOriginalWidth:S},scrollBarsDimensions:{verticalScrollbarWidth:m,horizontalScrollbarHeight:g}}),_=h((()=>e),[e]),O=h((()=>t),[t]);return(()=>{const{downloadService:e}=vH();p((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))})(),Zo.jsxs(DU,{style:M,children:[Zo.jsx("div",{style:{overflow:"hidden"},ref:o,children:Zo.jsx(FX,{tableWidth:r.width,leftGridWidth:v,columnWidths:x,getHeaderCellsIconsVisibilityStatus:E,rowHight:e,height:A.height,changeSortOrder:n,overrideLeftGridWidth:R})}),Zo.jsx(TU,{style:D.topGrid,origin:e$.TopGrid,ref:i,children:Zo.jsx(PU,{style:I.fullSizeWrapper,children:Zo.jsx(qU,{style:I.stickyWrapper,children:Zo.jsx(fJ,{topGridRef:l,rowHightCallback:_,...I.self,showLastBorder:{right:w,bottom:!1},getRightGridColumnWidth:C})})})}),Zo.jsx(TU,{style:D.leftGrid,origin:e$.LeftGrid,ref:a,children:Zo.jsx(PU,{style:k.fullSizeWrapper,children:Zo.jsx(qU,{style:k.stickyWrapper,children:Zo.jsx(uJ,{leftGridRef:u,...k.self,columnWidths:x,showLastBorder:{right:!1,bottom:P}})})})}),Zo.jsx(TU,{style:D.dataGrid,origin:e$.DataGrid,ref:s,children:Zo.jsx(PU,{style:L.fullSizeWrapper,children:Zo.jsx(qU,{style:L.stickyWrapper,children:Zo.jsx(iX,{dataGridRef:c,rowHightCallback:O,...L.self,showLastBorder:{right:w,bottom:P},getRightGridColumnWidth:C,verticalScrollDirection:d,horizontalScrollDirection:f})})})})]})},mJ=()=>{const{keyboard:e,theme:t,interactions:r,translator:n}=mH(),{pageInfo:o,updatePageInfo:i,rect:a}=pH(),{layoutService:s}=vH(),{layout:l,hasData:u}=s;return Zo.jsxs(Zo.Fragment,{children:[u?Zo.jsx(hJ,{}):null,Zo.jsx(xH,{}),Zo.jsx(cH,{paginationNeeded:o.shouldShowPagination,handleChangePage:e=>{i({page:e})},pageInfo:o,totalRowCount:o.totalRowCount,totalColumnCount:0,totalPages:o.totalPages,keyboard:e,translator:n,theme:t,interactions:r,rect:a,layout:l})]})},gJ={WHITE:"#FFFFFF",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF",GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},bJ=12,vJ=14,yJ=16,xJ=24,SJ=3,wJ=300,CJ=400,EJ=600,RJ=700,MJ={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function AJ(e){return Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Zo.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}var IJ=function({fontSize:e="medium",children:t=null,className:r=""}={}){return Zo.jsx("i",{style:{fontSize:"small"===e?"16px":"20px",margin:"small"===e?"-2px 0":void 0,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r,children:t})};function kJ(e={}){return Zo.jsx(IJ,{...e,children:Zo.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Zo.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Zo.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function LJ(e={}){return Zo.jsx(IJ,{fontSize:"medium",...e,children:Zo.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Zo.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Zo.jsx("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"})]})})}function PJ(e){return Zo.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Zo.jsx("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345L9.345 8Z"})})}function DJ(e={}){return Zo.jsx(IJ,{...e,children:Zo.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Zo.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Zo.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Zo.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function _J(e={}){return Zo.jsx(IJ,{fontSize:"medium",...e,children:Zo.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Zo.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Zo.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function OJ({className:e}){return Zo.jsx(IJ,{fontSize:"small",className:e,children:Zo.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Zo.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Zo.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Zo.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Zo.jsx("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),Zo.jsx("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})]})})})})})}function TJ(e={}){return Zo.jsx(IJ,{...e,children:Zo.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Zo.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Zo.jsx("rect",{stroke:gJ.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const qJ={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:SJ,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]}};var jJ=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:gJ.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:gJ.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Zo.jsx(AJ,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${gJ.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:gJ.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${gJ.MISC_FOCUS_BORDER}`,borderRadius:SJ,backgroundColor:gJ.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${gJ.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:gJ.WHITE,color:gJ.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:SJ},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${gJ.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:gJ.GREYSCALE_0_15,backgroundColor:gJ.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:gJ.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${gJ.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:gJ.GREEN_PALE},"&:active":{backgroundColor:gJ.GREEN_DARK},"&.Mui-focusVisible":{borderColor:gJ.GREEN_PALE,boxShadow:`0 0 0 3px ${YD(gJ.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:gJ.BLUE_PALE},"&:active":{backgroundColor:gJ.BLUE_DARK},"&.Mui-focusVisible":{borderColor:gJ.BLUE_PALE,boxShadow:`0 0 0 3px ${YD(gJ.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:SJ,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:gJ.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${gJ.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:gJ.GREYSCALE_0_15,backgroundColor:gJ.GREYSCALE_100_60,"&:active":{backgroundColor:gJ.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:gJ.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${gJ.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:gJ.PURPLE,"&.Mui-focusVisible":{borderColor:gJ.PURPLE,boxShadow:`0 0 0 3px ${YD(gJ.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:gJ.GREEN,"&.Mui-focusVisible":{borderColor:gJ.GREEN,boxShadow:`0 0 0 3px ${YD(gJ.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:gJ.BLUE,"&.Mui-focusVisible":{borderColor:gJ.BLUE,boxShadow:`0 0 0 3px ${YD(gJ.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:gJ.ORANGE,"&.Mui-focusVisible":{borderColor:gJ.ORANGE,boxShadow:`0 0 0 3px ${YD(gJ.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:gJ.RED,"&.Mui-focusVisible":{borderColor:gJ.RED,boxShadow:`0 0 0 3px ${YD(gJ.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:gJ.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:gJ.PURPLE_PALE},"&:active":{backgroundColor:gJ.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:gJ.PURPLE_PALE,boxShadow:`0 0 0 3px ${YD(gJ.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:gJ.GREEN_PALE},"&:active":{backgroundColor:gJ.GREEN_DARK},"&.Mui-focusVisible":{borderColor:gJ.GREEN_PALE,boxShadow:`0 0 0 3px ${YD(gJ.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:gJ.BLUE_PALE},"&:active":{backgroundColor:gJ.BLUE_DARK},"&.Mui-focusVisible":{borderColor:gJ.BLUE_PALE,boxShadow:`0 0 0 3px ${YD(gJ.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:gJ.ORANGE_PALE},"&:active":{backgroundColor:gJ.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:gJ.ORANGE_PALE,boxShadow:`0 0 0 3px ${YD(gJ.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:gJ.RED_PALE},"&:active":{backgroundColor:gJ.RED_DARK},"&.Mui-focusVisible":{borderColor:gJ.RED_PALE,boxShadow:`0 0 0 3px ${YD(gJ.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:gJ.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:gJ.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:SJ,boxShadow:`inset 0 0 0 2px ${gJ.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Zo.jsx(PJ,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:bJ,borderRadius:SJ,color:gJ.TEXT_PRIMARY,backgroundColor:gJ.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:gJ.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${gJ.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:gJ.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:gJ.GREYSCALE_0_05,color:gJ.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:gJ.GREEN,borderColor:gJ.GREEN},"&.MuiChip-outlinedInfo":{color:gJ.BLUE,borderColor:gJ.BLUE},"&.MuiChip-outlinedWarning":{color:gJ.ORANGE,borderColor:gJ.ORANGE},"&.MuiChip-outlinedError":{color:gJ.RED,borderColor:gJ.RED}},outlined:{border:`solid 1px ${gJ.GREYSCALE_0_15}`,backgroundColor:gJ.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:SJ,boxShadow:"none",backgroundColor:gJ.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:gJ.GREEN,borderColor:gJ.GREEN},outlinedSecondary:{color:gJ.BLUE,borderColor:gJ.BLUE},label:{fontFamily:MJ.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Zo.jsx(PJ,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Zo.jsx(AJ,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:SJ},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:SJ,fontSize:vJ,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:gJ.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${gJ.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:gJ.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:gJ.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:gJ.GREYSCALE_0_05}}},popupIndicator:{borderRadius:SJ,border:`solid 1px ${gJ.GREYSCALE_0_15}`,color:gJ.GREYSCALE_0_60,marginRight:0,width:xJ,height:xJ},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${gJ.GREYSCALE_0_15}`},clearIndicator:{borderRadius:SJ,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:gJ.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:vJ}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:bJ,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:gJ.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:gJ.GREYSCALE_25,fontSize:bJ,fontFamily:MJ.FONT_FAMILY,fontWeight:EJ,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:gJ.TEXT_PRIMARY},"&.Mui-error":{color:gJ.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:gJ.TEXT_SECONDARY,content:"'(optional)'",fontWeight:CJ,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:gJ.TEXT_SECONDARY,content:"'(required)'",fontWeight:CJ,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:vJ,lineHeight:"16px",backgroundColor:gJ.WHITE,borderRadius:SJ,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${gJ.GREYSCALE_0_05}`,borderColor:gJ.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${gJ.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${gJ.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${gJ.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${gJ.RED}`,boxShadow:`0px 0px 0px 1px ${gJ.RED}, inset 0 2px 0 0 ${gJ.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${gJ.GREYSCALE_0_10}`,borderColor:gJ.GREYSCALE_0_10,backgroundColor:gJ.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:gJ.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:gJ.GREYSCALE_0_15,borderRadius:SJ,boxShadow:`inset 0 2px 0 0 ${gJ.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Zo.jsx(AJ,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:gJ.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:gJ.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:gJ.GREYSCALE_0_03},"&:active":{backgroundColor:gJ.GREYSCALE_0_10},"&:focus":{backgroundColor:gJ.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${gJ.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${gJ.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:gJ.GREYSCALE_0_30,"&:hover":{backgroundColor:gJ.GREYSCALE_0_0,borderColor:gJ.GREYSCALE_0_15},"& ~svg":{color:gJ.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${gJ.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:SJ}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:gJ.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${gJ.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:gJ.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:vJ,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:bJ,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:bJ,fontWeight:EJ,color:gJ.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:EJ}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${gJ.GREYSCALE_0_15}, 0px 0px 0px 1px ${gJ.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Zo.jsx(_J,{}),checkedIcon:Zo.jsx(LJ,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:gJ.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${gJ.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:gJ.GREEN_PALE,boxShadow:`0 0 0 3px ${YD(gJ.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:gJ.BLUE_PALE,boxShadow:`0 0 0 3px ${YD(gJ.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:gJ.GREYSCALE_0_20}},"&.Mui-disabled":{fill:gJ.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Zo.jsx(TJ,{}),checkedIcon:Zo.jsx(kJ,{}),indeterminateIcon:Zo.jsx(DJ,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:SJ,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:gJ.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:gJ.GREYSCALE_0_55,color:gJ.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:gJ.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:gJ.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:gJ.GREYSCALE_0_55,"&:hover":{color:gJ.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:gJ.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:gJ.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:vJ,color:gJ.TEXT_PRIMARY,lineHeight:"16px",fontWeight:EJ},secondary:{fontSize:bJ,color:gJ.GREYSCALE_45,fontWeight:CJ,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:vJ,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:vJ,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:gJ.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:bJ,borderBottom:`solid 1px ${gJ.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:vJ,color:gJ.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:gJ.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:gJ.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:gJ.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:'url(\'data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg width="8px" height="7px" viewBox="0 0 8 7" version="1.1"%0A xmlns="http://www.w3.org/2000/svg"%0A xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="Tick">%0A <g stroke="none" stroke-width="1" fill-rule="evenodd">%0A <g transform="translate(0.000000, -1.000000)">%0A <path d="M7.51662484,1.29325 C7.12545778,0.90225 6.49218732,0.90225 6.10202068,1.29325 L2.73658335,4.65725 L1.90722914,3.82925 C1.5170625,3.43825 0.883792042,3.43825 0.492624979,3.82925 C0.102458344,4.21925 0.102458344,4.85225 0.492624979,5.24325 L2.02928127,6.77825 C2.4194479,7.16925 3.05271836,7.16925 3.44388542,6.77825 L7.51662484,2.70725 C7.9077919,2.31725 7.9077919,1.68425 7.51662484,1.29325"></path>%0A </g>%0A </g>%0A</svg>%0A\')',fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:gJ.RED}}},"&.Mui-focusVisible":{backgroundColor:gJ.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:gJ.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:gJ.GREEN,height:"24px","&.Mui-disabled":{color:gJ.GREYSCALE_0_15}},rail:{backgroundColor:gJ.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${gJ.GREYSCALE_0_05}`,borderRadius:SJ,boxShadow:`inset 0px 0px 0px 1px ${gJ.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${gJ.GREYSCALE_0_05}`,borderRadius:SJ},thumb:{height:"16px",width:"16px",borderRadius:SJ,backgroundColor:gJ.WHITE,boxShadow:`0px 1px 2px 0px ${gJ.GREYSCALE_0_15}, 0px 0px 0px 1px ${gJ.GREYSCALE_0_05}`,"&:hover":{borderRadius:SJ,boxShadow:`0 2px 4px 0 ${gJ.GREYSCALE_0_30}, 0 0 0 1px ${gJ.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${gJ.GREYSCALE_0_15}, 0 0 0 1px ${gJ.GREYSCALE_0_06}, 0 0 0 2px ${gJ.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${gJ.GREYSCALE_0_15}, 0 0 0 1px ${gJ.GREYSCALE_0_06}, 0 0 0 2px ${gJ.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:gJ.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:gJ.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:gJ.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:gJ.GREYSCALE_0_15},markLabel:{color:gJ.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:gJ.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:gJ.WHITE,color:gJ.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:gJ.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:gJ.GREEN_PALE,boxShadow:`0 0 0 3px ${YD(gJ.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:gJ.BLUE_PALE,boxShadow:`0 0 0 3px ${YD(gJ.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:gJ.GREYSCALE_0_15,borderRadius:SJ},thumb:{height:"16px",width:"16px",borderRadius:SJ,backgroundColor:gJ.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:vJ,fontWeight:EJ,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${gJ.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${gJ.MISC_FOCUS_BORDER}`,backgroundColor:gJ.GREYSCALE_0_03,borderRadius:SJ},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:gJ.GREYSCALE_25,"&.Mui-selected":{color:gJ.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:vJ,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:SJ,"&:hover":{backgroundColor:gJ.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${gJ.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${gJ.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:SJ,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:gJ.GREYSCALE_0_05},"&:hover":{backgroundColor:gJ.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${gJ.GREYSCALE_85}`,borderRight:`1px solid ${gJ.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:EJ,backgroundColor:gJ.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:gJ.GREYSCALE_98,borderBottom:`1px solid ${gJ.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${gJ.GREYSCALE_85}`,borderTop:`1px solid ${gJ.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:gJ.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:gJ.GREYSCALE_0_05,"&:hover":{backgroundColor:gJ.GREYSCALE_0_03}},"&&:hover":{backgroundColor:gJ.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Zo.jsx(OJ,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${gJ.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:vJ,borderRadius:SJ,padding:"7px 16px",border:`1px solid ${gJ.GREYSCALE_0_15}`,backgroundColor:gJ.GREYSCALE_100_60,color:gJ.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:gJ.GREYSCALE_0_10,border:`1px solid ${gJ.GREYSCALE_0_30}`},"&:hover":{backgroundColor:gJ.GREYSCALE_0_03,border:`1px solid ${gJ.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:gJ.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${gJ.MISC_FOCUS_BORDER}`,border:`1px solid ${gJ.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:gJ.GREYSCALE_25,backgroundColor:gJ.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:gJ.GREYSCALE_0_10,border:`1px solid ${gJ.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:bJ,height:24,width:24,padding:7},sizeLarge:{fontSize:yJ,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:vJ,borderRadius:SJ}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0,enterNextDelay:300,enterDelay:400},styleOverrides:{arrow:{color:gJ.GREYSCALE_20},tooltip:{backgroundColor:gJ.GREYSCALE_20,fontSize:bJ,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...qJ}:{}}),NJ=(e,t)=>jJ(t);var FJ=()=>({mode:"light",primary:{ultraLight:gJ.GREEN_ULTRA_LIGHT,light:gJ.GREEN_PALE,main:gJ.GREEN,dark:gJ.GREEN_DARK,extraDark:gJ.GREEN_EXTRA_DARK,contrastText:gJ.WHITE},secondary:{ultraLight:gJ.BLUE_ULTRA_LIGHT,light:gJ.BLUE_PALE,main:gJ.BLUE,dark:gJ.BLUE_DARK,extraDark:gJ.BLUE_EXTRA_DARK,contrastText:gJ.WHITE},error:{ultraLight:gJ.RED_ULTRA_LIGHT,light:gJ.RED_PALE,main:gJ.RED,dark:gJ.RED_DARK,extraDark:gJ.RED_EXTRA_DARK,contrastText:gJ.WHITE},warning:{ultraLight:gJ.ORANGE_ULTRA_LIGHT,light:gJ.ORANGE_PALE,main:gJ.ORANGE,dark:gJ.ORANGE_DARK,extraDark:gJ.ORANGE_EXTRA_DARK,contrastText:gJ.WHITE},success:{ultraLight:gJ.GREEN_ULTRA_LIGHT,light:gJ.GREEN_PALE,main:gJ.GREEN,dark:gJ.GREEN_DARK,extraDark:gJ.GREEN_EXTRA_DARK,contrastText:gJ.WHITE},info:{ultraLight:gJ.BLUE_ULTRA_LIGHT,light:gJ.BLUE_PALE,main:gJ.BLUE,dark:gJ.BLUE_DARK,extraDark:gJ.BLUE_EXTRA_DARK,contrastText:gJ.WHITE},text:{primary:gJ.TEXT_PRIMARY,secondary:gJ.TEXT_SECONDARY,disabled:gJ.GREYSCALE_0_30},action:{hover:gJ.GREYSCALE_0_03,hoverOpacity:.03,selected:gJ.GREYSCALE_0_05,selectedOpacity:.05,focus:gJ.MISC_FOCUS_BORDER},amethyst:{ultraLight:gJ.WHITE,main:gJ.PURPLE,light:gJ.PURPLE_PALE,dark:gJ.PURPLE_DARK,extraDark:gJ.GREYSCALE_0_0,contrastText:gJ.WHITE},background:{paper:gJ.WHITE,default:gJ.GREYSCALE_95},divider:gJ.GREYSCALE_0_15});var zJ=e=>FJ();var $J=(e,t=!1)=>({components:NJ(0,t),palette:zJ(e),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:vJ,fontWeightLight:wJ,fontWeightRegular:CJ,fontWeightMedium:EJ,fontWeightBold:RJ,htmlFontSize:vJ,fontFamily:MJ.FONT_FAMILY,button:{fontWeight:EJ,fontSize:vJ,textTransform:"none"},body1:{fontSize:yJ,lineHeight:"24px"},body2:{fontSize:vJ,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:xJ,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:yJ,fontWeight:EJ,lineHeight:"16px"},h6:{fontSize:vJ,fontWeight:EJ,lineHeight:"16px"},caption:{color:gJ.TEXT_SECONDARY},subtitle1:{fontSize:vJ,color:gJ.TEXT_SECONDARY},subtitle2:{fontSize:bJ,color:gJ.TEXT_SECONDARY}},shape:{borderRadius:SJ}}),WJ={},BJ={exports:{}},GJ={exports:{}};!function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(GJ);var HJ=GJ.exports;!function(e){var t=HJ.default;function r(n,o){if("function"==typeof WeakMap)var i=new WeakMap,a=new WeakMap;return(e.exports=r=function(e,r){if(!r&&e&&e.__esModule)return e;var n,o,s={__proto__:null,default:e};if(null===e||"object"!=t(e)&&"function"!=typeof e)return s;if(n=r?a:i){if(n.has(e))return n.get(e);n.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?n(s,l,o):s[l]=e[l]);return s},e.exports.__esModule=!0,e.exports.default=e.exports)(n,o)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(BJ);var VJ=BJ.exports,UJ={},YJ=qe(Mf);Object.defineProperty(UJ,"__esModule",{value:!0}),UJ.hexToRgb=JJ,UJ.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=QJ(e),r=t.values;return"#".concat(r.map((function(e){return function(e){var t=e.toString(16);return 1===t.length?"0".concat(t):t}(e)})).join(""))},UJ.hslToRgb=ZJ,UJ.decomposeColor=QJ,UJ.recomposeColor=eZ,UJ.getContrastRatio=function(e,t){var r=tZ(e),n=tZ(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},UJ.getLuminance=tZ,UJ.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return tZ(e)>.5?nZ(e,t):oZ(e,t)},UJ.fade=function(e,t){return rZ(e,t)},UJ.alpha=rZ,UJ.darken=nZ,UJ.lighten=oZ;var KJ=YJ;function XJ(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}function JJ(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map((function(e){return e+e}))),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}function ZJ(e){var t=(e=QJ(e)).values,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+r/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),eZ({type:s,values:l})}function QJ(e){if(e.type)return e;if("#"===e.charAt(0))return QJ(JJ(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error((0,KJ.formatMuiErrorMessage)(3,e));var n=e.substring(t+1,e.length-1).split(",");return{type:r,values:n=n.map((function(e){return parseFloat(e)}))}}function eZ(e){var t=e.type,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}function tZ(e){var t="hsl"===(e=QJ(e)).type?QJ(ZJ(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function rZ(e,t){return e=QJ(e),t=XJ(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,eZ(e)}function nZ(e,t){if(e=QJ(e),t=XJ(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]*=1-t;return eZ(e)}function oZ(e,t){if(e=QJ(e),t=XJ(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;return eZ(e)}var iZ,aZ,sZ,lZ={},uZ={exports:{}},cZ={exports:{}},dZ={exports:{}};function pZ(){return iZ||(iZ=1,function(e){var t=HJ.default;e.exports=function(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(dZ)),dZ.exports}function fZ(){return aZ||(aZ=1,function(e){var t=HJ.default,r=pZ();e.exports=function(e){var n=r(e,"string");return"symbol"==t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports}(cZ)),cZ.exports}function hZ(){return sZ||(sZ=1,function(e){var t=fZ();e.exports=function(e,r,n){return(r=t(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports}(uZ)),uZ.exports}var mZ,gZ={exports:{}};function bZ(){return mZ||(mZ=1,function(e){var t=eO();e.exports=function(e,r){if(null==e)return{};var n,o,i=t(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],-1===r.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports}(gZ)),gZ.exports}var vZ,yZ={};var xZ,SZ={};var wZ,CZ={},EZ={};var RZ,MZ={};var AZ,IZ={};var kZ,LZ={};var PZ,DZ={};var _Z,OZ={};var TZ,qZ={};var jZ,NZ,FZ={};function zZ(){if(NZ)return CZ;NZ=1;var e=s_;Object.defineProperty(CZ,"__esModule",{value:!0}),CZ.default=function(e){var g=e.primary,b=void 0===g?{light:a.default[300],main:a.default[500],dark:a.default[700]}:g,v=e.secondary,y=void 0===v?{light:s.default.A200,main:s.default.A400,dark:s.default.A700}:v,x=e.error,S=void 0===x?{light:l.default[300],main:l.default[500],dark:l.default[700]}:x,w=e.warning,C=void 0===w?{light:u.default[300],main:u.default[500],dark:u.default[700]}:w,E=e.info,R=void 0===E?{light:c.default[300],main:c.default[500],dark:c.default[700]}:E,M=e.success,A=void 0===M?{light:d.default[300],main:d.default[500],dark:d.default[700]}:M,I=e.type,k=void 0===I?"light":I,L=e.contrastThreshold,P=void 0===L?3:L,D=e.tonalOffset,_=void 0===D?.2:D,O=(0,r.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function T(e){return(0,p.getContrastRatio)(e,h.text.primary)>=P?h.text.primary:f.text.primary}var q=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,t.default)({},e)).main&&e[r]&&(e.main=e[r]),!e.main)throw new Error((0,n.formatMuiErrorMessage)(4,r));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return m(e,"light",o,_),m(e,"dark",i,_),e.contrastText||(e.contrastText=T(e.main)),e},j={dark:h,light:f},N=(0,n.deepmerge)((0,t.default)({common:o.default,type:k,primary:q(b),secondary:q(y,"A400","A200","A700"),error:q(S),warning:q(C),info:q(R),success:q(A),grey:i.default,contrastThreshold:P,getContrastText:T,augmentColor:q,tonalOffset:_},j[k]),O);return N},CZ.dark=CZ.light=void 0;var t=e(J_()),r=e(bZ()),n=YJ,o=e(function(){if(wZ)return EZ;wZ=1,Object.defineProperty(EZ,"__esModule",{value:!0}),EZ.default=void 0;var e={black:"#000",white:"#fff"};return EZ.default=e,EZ}()),i=e(function(){if(RZ)return MZ;RZ=1,Object.defineProperty(MZ,"__esModule",{value:!0}),MZ.default=void 0;var e={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};return MZ.default=e,MZ}()),a=e(function(){if(AZ)return IZ;AZ=1,Object.defineProperty(IZ,"__esModule",{value:!0}),IZ.default=void 0;var e={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};return IZ.default=e,IZ}()),s=e(function(){if(kZ)return LZ;kZ=1,Object.defineProperty(LZ,"__esModule",{value:!0}),LZ.default=void 0;var e={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};return LZ.default=e,LZ}()),l=e(function(){if(PZ)return DZ;PZ=1,Object.defineProperty(DZ,"__esModule",{value:!0}),DZ.default=void 0;var e={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};return DZ.default=e,DZ}()),u=e(function(){if(_Z)return OZ;_Z=1,Object.defineProperty(OZ,"__esModule",{value:!0}),OZ.default=void 0;var e={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};return OZ.default=e,OZ}()),c=e(function(){if(TZ)return qZ;TZ=1,Object.defineProperty(qZ,"__esModule",{value:!0}),qZ.default=void 0;var e={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};return qZ.default=e,qZ}()),d=e(function(){if(jZ)return FZ;jZ=1,Object.defineProperty(FZ,"__esModule",{value:!0}),FZ.default=void 0;var e={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};return FZ.default=e,FZ}()),p=UJ,f={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:o.default.white,default:i.default[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}};CZ.light=f;var h={text:{primary:o.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:i.default[800],default:"#303030"},action:{active:o.default.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function m(e,t,r,n){var o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,p.lighten)(e.main,o):"dark"===t&&(e.dark=(0,p.darken)(e.main,i)))}return CZ.dark=h,CZ}var $Z,WZ={};var BZ,GZ={};var HZ,VZ={};var UZ,YZ={},KZ=qe(dm);var XZ,JZ={};function ZZ(){if(XZ)return JZ;XZ=1;var e=s_;Object.defineProperty(JZ,"__esModule",{value:!0}),JZ.default=JZ.duration=JZ.easing=void 0;var t=e(bZ()),r={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"};JZ.easing=r;var n={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function o(e){return"".concat(Math.round(e),"ms")}JZ.duration=n;var i={easing:r,duration:n,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.duration,s=void 0===a?n.standard:a,l=i.easing,u=void 0===l?r.easeInOut:l,c=i.delay,d=void 0===c?0:c;return(0,t.default)(i,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof s?s:o(s)," ").concat(u," ").concat("string"==typeof d?d:o(d))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};return JZ.default=i,JZ}var QZ,eQ,tQ={};function rQ(){if(eQ)return lZ;eQ=1;var e=s_;Object.defineProperty(lZ,"__esModule",{value:!0}),lZ.createMuiTheme=function(){return p.apply(void 0,arguments)},lZ.default=void 0,e(hZ());var t=e(bZ()),r=YJ,n=e(function(){if(vZ)return yZ;vZ=1;var e=s_;Object.defineProperty(yZ,"__esModule",{value:!0}),yZ.default=function(e){var o=e.values,i=void 0===o?{xs:0,sm:600,md:960,lg:1280,xl:1920}:o,a=e.unit,s=void 0===a?"px":a,l=e.step,u=void 0===l?5:l,c=(0,r.default)(e,["values","unit","step"]);function d(e){var t="number"==typeof i[e]?i[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function p(e,t){var r=n.indexOf(t);return r===n.length-1?d(e):"@media (min-width:".concat("number"==typeof i[e]?i[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof i[n[r+1]]?i[n[r+1]]:t)-u/100).concat(s,")")}return(0,t.default)({keys:n,values:i,up:d,down:function(e){var t=n.indexOf(e)+1,r=i[n[t]];return t===n.length?d("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-u/100).concat(s,")")},between:p,only:function(e){return p(e,e)},width:function(e){return i[e]}},c)},yZ.keys=void 0;var t=e(J_()),r=e(bZ()),n=["xs","sm","md","lg","xl"];return yZ.keys=n,yZ}()),o=e(function(){if(xZ)return SZ;xZ=1;var e=s_;Object.defineProperty(SZ,"__esModule",{value:!0}),SZ.default=function(e,n,o){var i;return(0,r.default)({gutters:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,r.default)({paddingLeft:n(2),paddingRight:n(2)},o,(0,t.default)({},e.up("sm"),(0,r.default)({paddingLeft:n(3),paddingRight:n(3)},o[e.up("sm")])))},toolbar:(i={minHeight:56},(0,t.default)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,t.default)(i,e.up("sm"),{minHeight:64}),i)},o)};var t=e(hZ()),r=e(J_());return SZ}()),i=e(zZ()),a=e(function(){if($Z)return WZ;$Z=1;var e=s_;Object.defineProperty(WZ,"__esModule",{value:!0}),WZ.default=function(e,l){var u="function"==typeof l?l(e):l,c=u.fontFamily,d=void 0===c?s:c,p=u.fontSize,f=void 0===p?14:p,h=u.fontWeightLight,m=void 0===h?300:h,g=u.fontWeightRegular,b=void 0===g?400:g,v=u.fontWeightMedium,y=void 0===v?500:v,x=u.fontWeightBold,S=void 0===x?700:x,w=u.htmlFontSize,C=void 0===w?16:w,E=u.allVariants,R=u.pxToRem,M=(0,r.default)(u,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),A=f/14,I=R||function(e){return"".concat(e/C*A,"rem")},k=function(e,r,n,i,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:I(r),lineHeight:n},d===s?{letterSpacing:"".concat(o(i/r),"em")}:{},a,E)},L={h1:k(m,96,1.167,-1.5),h2:k(m,60,1.2,-.5),h3:k(b,48,1.167,0),h4:k(b,34,1.235,.25),h5:k(b,24,1.334,0),h6:k(y,20,1.6,.15),subtitle1:k(b,16,1.75,.15),subtitle2:k(y,14,1.57,.1),body1:k(b,16,1.5,.15),body2:k(b,14,1.43,.15),button:k(y,14,1.75,.4,a),caption:k(b,12,1.66,.4),overline:k(b,12,2.66,1,a)};return(0,n.deepmerge)((0,t.default)({htmlFontSize:C,pxToRem:I,round:i,fontFamily:d,fontSize:f,fontWeightLight:m,fontWeightRegular:b,fontWeightMedium:y,fontWeightBold:S},L),M,{clone:!1})};var t=e(J_()),r=e(bZ()),n=YJ;function o(e){return Math.round(1e5*e)/1e5}function i(e){return o(e)}var a={textTransform:"uppercase"},s='"Roboto", "Helvetica", "Arial", sans-serif';return WZ}()),s=e(function(){if(BZ)return GZ;function e(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}BZ=1,Object.defineProperty(GZ,"__esModule",{value:!0}),GZ.default=void 0;var t=["none",e(0,2,1,-1,0,1,1,0,0,1,3,0),e(0,3,1,-2,0,2,2,0,0,1,5,0),e(0,3,3,-2,0,3,4,0,0,1,8,0),e(0,2,4,-1,0,4,5,0,0,1,10,0),e(0,3,5,-1,0,5,8,0,0,1,14,0),e(0,3,5,-1,0,6,10,0,0,1,18,0),e(0,4,5,-2,0,7,10,1,0,2,16,1),e(0,5,5,-3,0,8,10,1,0,3,14,2),e(0,5,6,-3,0,9,12,1,0,3,16,2),e(0,6,6,-3,0,10,14,1,0,4,18,3),e(0,6,7,-4,0,11,15,1,0,4,20,3),e(0,7,8,-4,0,12,17,2,0,5,22,4),e(0,7,8,-4,0,13,19,2,0,5,24,4),e(0,7,9,-4,0,14,21,2,0,5,26,4),e(0,8,9,-5,0,15,22,2,0,6,28,5),e(0,8,10,-5,0,16,24,2,0,6,30,5),e(0,8,11,-5,0,17,26,2,0,6,32,5),e(0,9,11,-5,0,18,28,2,0,7,34,6),e(0,9,12,-6,0,19,29,2,0,7,36,6),e(0,10,13,-6,0,20,31,3,0,8,38,7),e(0,10,13,-6,0,21,33,3,0,8,40,7),e(0,10,14,-6,0,22,35,3,0,8,42,7),e(0,11,14,-7,0,23,36,3,0,9,44,8),e(0,11,15,-7,0,24,38,3,0,9,46,8)];return GZ.default=t,GZ}()),l=e(function(){if(HZ)return VZ;HZ=1,Object.defineProperty(VZ,"__esModule",{value:!0}),VZ.default=void 0;var e={borderRadius:4};return VZ.default=e,VZ}()),u=e(function(){if(UZ)return YZ;UZ=1,Object.defineProperty(YZ,"__esModule",{value:!0}),YZ.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var r=(0,e.createUnarySpacing)({spacing:t}),n=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?r(1):1===t.length?r(t[0]):t.map((function(e){if("string"==typeof e)return e;var t=r(e);return"number"==typeof t?"".concat(t,"px"):t})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return t}}),n.mui=!0,n};var e=KZ;return YZ}()),c=e(ZZ()),d=e(function(){if(QZ)return tQ;QZ=1,Object.defineProperty(tQ,"__esModule",{value:!0}),tQ.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return tQ.default=e,tQ}());function p(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=e.breakpoints,f=void 0===p?{}:p,h=e.mixins,m=void 0===h?{}:h,g=e.palette,b=void 0===g?{}:g,v=e.spacing,y=e.typography,x=void 0===y?{}:y,S=(0,t.default)(e,["breakpoints","mixins","palette","spacing","typography"]),w=(0,i.default)(b),C=(0,n.default)(f),E=(0,u.default)(v),R=(0,r.deepmerge)({breakpoints:C,direction:"ltr",mixins:(0,o.default)(C,E,m),overrides:{},palette:w,props:{},shadows:s.default,typography:(0,a.default)(w,x),spacing:E,shape:l.default,transitions:c.default,zIndex:d.default},S),M=arguments.length,A=new Array(M>1?M-1:0),I=1;I<M;I++)A[I-1]=arguments[I];return R=A.reduce((function(e,t){return(0,r.deepmerge)(e,t)}),R)}var f=p;return lZ.default=f,lZ}var nQ,oQ={};var iQ,aQ={},sQ=qe(uy);var lQ,uQ,cQ={},dQ={};function pQ(){if(lQ)return dQ;lQ=1;var e=s_;Object.defineProperty(dQ,"__esModule",{value:!0}),dQ.default=void 0;var t=(0,e(rQ()).default)();return dQ.default=t,dQ}var fQ,hQ,mQ={},gQ={};function bQ(){if(hQ)return mQ;hQ=1;var e=s_;Object.defineProperty(mQ,"__esModule",{value:!0}),mQ.default=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.breakpoints,a=void 0===i?["sm","md","lg"]:i,s=o.disableAlign,l=void 0!==s&&s,u=o.factor,c=void 0===u?2:u,d=o.variants,p=void 0===d?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:d,f=(0,t.default)({},e);f.typography=(0,t.default)({},f.typography);var h=f.typography,m=(0,n.convertLength)(h.htmlFontSize),g=a.map((function(e){return f.breakpoints.values[e]}));return p.forEach((function(e){var o=h[e],i=parseFloat(m(o.fontSize,"rem"));if(!(i<=1)){var a=i,s=1+(a-1)/c,u=o.lineHeight;if(!(0,n.isUnitless)(u)&&!l)throw new Error((0,r.formatMuiErrorMessage)(6));(0,n.isUnitless)(u)||(u=parseFloat(m(u,"rem"))/parseFloat(i));var d=null;l||(d=function(e){return(0,n.alignProperty)({size:e,grid:(0,n.fontGrid)({pixels:4,lineHeight:u,htmlFontSize:h.htmlFontSize})})}),h[e]=(0,t.default)({},o,(0,n.responsiveProperty)({cssProperty:"fontSize",min:s,max:a,unit:"rem",breakpoints:g,transform:d}))}})),f};var t=e(J_()),r=YJ,n=function(){if(fQ)return gQ;fQ=1;var e=s_;Object.defineProperty(gQ,"__esModule",{value:!0}),gQ.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},gQ.getUnit=r,gQ.toUnitless=n,gQ.convertLength=function(e){return function(t,o){var i=r(t);if(i===o)return t;var a=n(t);if("px"!==i)if("em"===i)a=n(t)*n(e);else if("rem"===i)return a=n(t)*n(e),t;var s=a;if("px"!==o)if("em"===o)s=a/n(e);else{if("rem"!==o)return t;s=a/n(e)}return parseFloat(s.toFixed(5))+o}},gQ.alignProperty=function(e){var t=e.size,r=e.grid,n=t-t%r,o=n+r;return t-n<o-t?n:o},gQ.fontGrid=function(e){var t=e.lineHeight;return e.pixels/(t*e.htmlFontSize)},gQ.responsiveProperty=function(e){var r=e.cssProperty,n=e.min,o=e.max,i=e.unit,a=void 0===i?"rem":i,s=e.breakpoints,l=void 0===s?[600,960,1280]:s,u=e.transform,c=void 0===u?null:u,d=(0,t.default)({},r,"".concat(n).concat(a)),p=(o-n)/l[l.length-1];return l.forEach((function(e){var o=n+p*e;null!==c&&(o=c(o)),d["@media (min-width:".concat(e,"px)")]=(0,t.default)({},r,"".concat(Math.round(1e4*o)/1e4).concat(a))})),d};var t=e(hZ());function r(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function n(e){return parseFloat(e)}return gQ}();return mQ}var vQ,yQ={};var xQ,SQ={};var wQ,CQ={};var EQ,RQ={};!function(e){var t=s_,n=VJ;Object.defineProperty(e,"__esModule",{value:!0});var o={createTheme:!0,createMuiTheme:!0,unstable_createMuiStrictModeTheme:!0,createStyles:!0,makeStyles:!0,responsiveFontSizes:!0,styled:!0,useTheme:!0,withStyles:!0,withTheme:!0,createGenerateClassName:!0,jssPreset:!0,ServerStyleSheets:!0,StylesProvider:!0,MuiThemeProvider:!0,ThemeProvider:!0};Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"createMuiTheme",{enumerable:!0,get:function(){return a.createMuiTheme}}),Object.defineProperty(e,"unstable_createMuiStrictModeTheme",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"createStyles",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"makeStyles",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"responsiveFontSizes",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"styled",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"useTheme",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"withStyles",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"withTheme",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"createGenerateClassName",{enumerable:!0,get:function(){return g.createGenerateClassName}}),Object.defineProperty(e,"jssPreset",{enumerable:!0,get:function(){return g.jssPreset}}),Object.defineProperty(e,"ServerStyleSheets",{enumerable:!0,get:function(){return g.ServerStyleSheets}}),Object.defineProperty(e,"StylesProvider",{enumerable:!0,get:function(){return g.StylesProvider}}),Object.defineProperty(e,"MuiThemeProvider",{enumerable:!0,get:function(){return g.ThemeProvider}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return g.ThemeProvider}});var i=UJ;Object.keys(i).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(o,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}}))}));var a=n(rQ()),s=t(function(){if(nQ)return oQ;nQ=1;var e=s_;Object.defineProperty(oQ,"__esModule",{value:!0}),oQ.default=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.default.apply(void 0,[(0,t.deepmerge)({unstable_strictMode:!0},e)].concat(o))};var t=YJ,r=e(rQ());return oQ}()),l=t(function(){if(iQ)return aQ;iQ=1,Object.defineProperty(aQ,"__esModule",{value:!0}),aQ.default=function(t){return(0,e.createStyles)(t)};var e=sQ;return aQ}()),u=t(function(){if(uQ)return cQ;uQ=1;var e=s_;Object.defineProperty(cQ,"__esModule",{value:!0}),cQ.default=void 0;var t=e(J_()),r=sQ,n=e(pQ()),o=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,r.makeStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return cQ.default=o,cQ}()),c=t(bQ()),d=t(function(){if(vQ)return yQ;vQ=1;var e=s_;Object.defineProperty(yQ,"__esModule",{value:!0}),yQ.default=void 0;var t=e(J_()),r=sQ,n=e(pQ()),o=function(e){var o=(0,r.styled)(e);return function(e,r){return o(e,(0,t.default)({defaultTheme:n.default},r))}};return yQ.default=o,yQ}()),p=ZZ();Object.keys(p).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(o,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[t]}}))}));var f=t(function(){if(xQ)return SQ;xQ=1;var e=s_;Object.defineProperty(SQ,"__esModule",{value:!0}),SQ.default=function(){return(0,t.useTheme)()||n.default};var t=sQ;e(r);var n=e(pQ());return SQ}()),h=t(function(){if(wQ)return CQ;wQ=1;var e=s_;Object.defineProperty(CQ,"__esModule",{value:!0}),CQ.default=void 0;var t=e(J_()),r=sQ,n=e(pQ()),o=function(e,o){return(0,r.withStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return CQ.default=o,CQ}()),m=t(function(){if(EQ)return RQ;EQ=1;var e=s_;Object.defineProperty(RQ,"__esModule",{value:!0}),RQ.default=void 0;var t=sQ,r=e(pQ()),n=(0,t.withThemeCreator)({defaultTheme:r.default});return RQ.default=n,RQ}()),g=sQ}(WJ),WJ.alpha(gJ.GREYSCALE_0,.05),WJ.alpha(gJ.GREEN_PALE,.5),WJ.alpha(gJ.BLUE_PALE,.5),WJ.alpha(gJ.GREEN_PALE,.5),WJ.alpha(gJ.BLUE_PALE,.5),WJ.alpha(gJ.GREEN_PALE,.5),WJ.alpha(gJ.BLUE_PALE,.5),WJ.alpha(gJ.GREEN_PALE,.5),WJ.alpha(gJ.BLUE_PALE,.5),WJ.alpha(gJ.GREEN_PALE,.5),WJ.alpha(gJ.BLUE_PALE,.5);function MQ(e){const t=((e="light",t=!1)=>$J(e,t))();return t?.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),H_({...t,direction:e})}var AQ=function(e){return e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="fontColor",e.FontStyle="fontStyle",e.Background="background",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.Border="border",e.Divider="divider",e}(AQ||{}),IQ=function(e){return e.Dimension="object.pivotTableV2.dimension",e.Measure="object.pivotTableV2.measure",e.Total="object.pivotTableV2.total",e.Null="object.pivotTableV2.null",e.Grid="object.pivotTableV2",e}(IQ||{}),kQ=function(e){return e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value",e}(kQ||{}),LQ=function(e){return e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor",e}(LQ||{});const PQ=e=>e?`${parseInt(e,10)}px`:void 0,DQ=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?oB.Transparent:r}},_Q=(e,t)=>+(parseInt(e,10)*nB*t+8).toFixed(2),OQ=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?tB:"normal",TQ=e=>e?.some((e=>"italic"===e))?"italic":"normal",qQ=e=>e?.some((e=>"underline"===e))?"underline":"none",jQ=document.createElement("textarea");function NQ(e){jQ.value=e,document.body.appendChild(jQ),jQ.select(),jQ.setSelectionRange(0,jQ.value.length),document.execCommand("copy"),document.body.removeChild(jQ)}jQ.style.position="absolute",jQ.style.left="-9999px",jQ.setAttribute("readonly","");function FQ(e){O?.(((t,r)=>{const n=r.target,o=n?.closest(`.${oN}`);o?.title&&t.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",id:"copy-cell-context-item",select:async()=>{(e=>{const t=e.title;t&&(navigator.clipboard?.writeText?navigator.clipboard.writeText(t).catch((()=>{NQ(t)})):NQ(t))})(o)}}),e?.forEach((e=>{e(t,r,o)}))}))}const zQ=({model:e,layoutService:t,effectivePropertiesService:r,translator:n})=>EB(((o,i,a)=>{if(!e||r.qAlwaysFullyExpanded)return;const s=e,l=o.addItem({translation:"Object.PivotTable.ContextMenu.ExpandCollapse",tid:"expand-collapse-group",id:"expand-collapse-group"}),{qEffectiveDimensionName:u,label:c}=((e,t)=>{const r=((e,t)=>{const r=e?.getAttribute("data-dimension-info-index");if("string"==typeof r)return t.getDimensionInfo(+r)})(e,t);return"object"==typeof r?{qEffectiveDimensionName:r.qEffectiveDimensionName,label:r.qFallbackTitle}:{qEffectiveDimensionName:void 0,label:void 0}})(a,t);l.addItem((e=>({icon:"lui-icon lui-icon--plus",translation:"Object.PivotTable.ContextMenu.ExpandAll",tid:"expand-all",select:async()=>{try{await e.expandTop(SH,0,0,!0),await e.expandLeft(SH,0,0,!0)}catch(e){console.error("Failed to expand all",e)}}}))(s)),"string"==typeof u&&l.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:r,label:n,translator:o})=>({icon:"lui-icon lui-icon--plus",translation:o.get("SNPivotTable.ContextMenu.ExpandDimension",[n??""]),tid:"expand-dimension",id:"expand-dimension",select:EX({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r,action:SX.Expand})}))({model:s,effectivePropertiesService:r,qEffectiveDimensionName:u,label:c,translator:n})),l.addItem((e=>({icon:"lui-icon lui-icon--minus",translation:"Object.PivotTable.ContextMenu.CollapseAll",tid:"collapse-all",select:async()=>{try{await e.collapseTop(SH,0,0,!0),await e.collapseLeft(SH,0,0,!0)}catch(e){console.error("Failed to collapse all",e)}}}))(s)),"string"==typeof u&&l.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:r,label:n,translator:o})=>({icon:"lui-icon lui-icon--minus",translation:o.get("SNPivotTable.ContextMenu.CollapseDimension",[n??""]),tid:"collapse-dimension",id:"collapse-dimension",select:EX({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r,action:SX.Collapse})}))({model:s,effectivePropertiesService:r,qEffectiveDimensionName:u,label:c,translator:n}))}),[e,t,r]),$Q=(e,t)=>A((()=>(({layout:e})=>{const{qHyperCube:t,nullValueRepresentation:r,snapshotData:n}=e,{qNoOfLeftDims:o,qEffectiveInterColumnSortOrder:i,qMeasureInfo:a,qDimensionInfo:s}=t,l=!!n,u=n?.content?.rowsPerPage??15e3,c={x:Math.min(e.qHyperCube.qSize.qcx,rB),y:Math.min(e.qHyperCube.qSize.qcy,u)},d=i.slice(0,o),p=e=>d.some((t=>t===e)),f=p(wH),h=new Map(i.map((e=>[s[e]??wH,e]))),m=a.filter((e=>7005!==e.qError?.qErrorCode));return{layout:e,getNullValueText:()=>r?.text??"-",getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(f)return 0;const r=e%m.length;return t?r:a.findIndex((e=>e===m[r]))},getDimensionInfo:e=>e===wH?void 0:s.at(e),getDimensionInfoIndex:e=>h.get(e)??-1,size:c,isSnapshot:l,hasLimitedData:!l&&c.x<e.qHyperCube.qSize.qcx,hasData:c.x>0&&c.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,hasPseudoDimOnLeft:f,leftDimensionInfoIndexes:d,isLeftDimension:p,triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:m,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode),indentModeColumnWidth:e.qHyperCube.indentModeColumnWidth??{type:uN.Auto,pixels:lN.PixelsDefault,percentage:lN.PercentageDefault},searchSortFromDimension:"inherit"===e.search?.sorting}})({layout:e})),[e,t]),WQ=({model:e,layoutService:t,viewService:r,pageInfo:n,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:s}=t,l=(e=>{const t=MB(e);return t.current=e,t})(JV(o));return _B((async()=>{const{qHyperCube:t}=i,{maxNumberOfVisibleRows:o,maxNumberOfVisibleColumns:u}=l.current;if(a)return i.snapshotData?.content?.qPivotDataPages??[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,r,n)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=n||t.gridRowStartIndex+t.gridHeight>=r))(s,r,o,u)||((e,t,r,n)=>{const{qHyperCube:{qPivotDataPages:o,qSize:i}}=e,{qTop:a,qWidth:s,qHeight:l}=o[0]?.qArea??{qTop:0,qWidth:0,qHeight:0};return a<t.page*t.rowsPerPage||s<Math.min(n,i.qcx)||l<Math.min(r,i.qcy)})(i,n,o,u))){const t=((e,t,r,n,o,i)=>{const a=n.page*n.rowsPerPage,s=Math.min(a+n.rowsPerPage,r.qcy),l=Math.min(rB,r.qcx);if(r.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,r=t.gridColumnStartIndex+t.gridWidth;e>s&&(c=Math.max(0,s-o)),r>l&&(u=Math.max(0,l-i))}return{qLeft:u,qTop:c,qWidth:Math.min(l-u,i),qHeight:Math.min(s-c,o)}})(s,r,i.qHyperCube.qSize,n,o,u);return t?e.getHyperCubePivotData(SH,ZV(t)):[]}return t.qPivotDataPages}),[i,a,e,r,n.page,n.rowsPerPage,l,s])},BQ=({rowsPerPage:e,totalRowCount:t,page:r})=>Math.min(e,t-r*e),GQ=(e,t,r=15e3)=>({rowsPerPage:r,totalPages:Math.max(1,Math.ceil(e/r)),totalRowCount:e,rowsOnCurrentPage:BQ({rowsPerPage:r,totalRowCount:e,page:t})}),HQ=15,VQ=({layoutService:e,viewService:t,rect:r,model:n,pageInfo:o})=>(T((async e=>{const i=e;if(!i.snapshotData||!n||i.snapshotData.content)return i;if("getHyperCubePivotData"in n){const{scrollTop:e,scrollLeft:a,leftGridScrollLeft:s,topGridScrollTop:l}=t,u=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=e,s=t.page*t.rowsPerPage,l=Math.max(n-HQ,0),u=Math.max(s+o-HQ,s,0),c=rB-l,d=s+t.rowsOnCurrentPage-u;if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=JV(r);return{qLeft:l,qTop:u,qWidth:Math.min(c,e+30),qHeight:Math.min(d,t+30)}}return{qLeft:l,qTop:u,qWidth:Math.min(c,i+30),qHeight:Math.min(d,a+30)}})(t,o,r),c=ZV(u),d={qLeft:0,qTop:o.page*o.rowsPerPage,qWidth:1,qHeight:1};i.snapshotData.content={qPivotDataPages:await n.getHyperCubePivotData(SH,[d,...c]),scrollTop:e,scrollLeft:a,leftGridScrollLeft:s,topGridScrollTop:l,page:o.page,rowsPerPage:o.rowsPerPage},i.snapshotData.object.size.w=r.width,i.snapshotData.object.size.h=r.height}return i})),q((()=>({getViewState:()=>((e,t)=>({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,topGridScrollTop:e.topGridScrollTop,renderPage:t.page}))(t,o)})),[t]),e.layout.snapshotData?.content?{left:r.left,top:r.top,width:e.layout.snapshotData.object.size.w,height:e.layout.snapshotData.object.size.h}:r);var UQ={SNPivotTable_ContextMenu_CollapseDimension:{id:"SNPivotTable.ContextMenu.CollapseDimension",locale:{"de-DE":"{0} reduzieren","en-US":"Collapse {0}","es-ES":"Contraer {0}","fr-FR":"Réduire {0}","it-IT":"Comprimi {0}","ja-JP":"{0} を折りたたむ","ko-KR":"{0} 축소","nl-NL":"{0} samenvouwen","pl-PL":"Zwiń {0}","pt-BR":"Recolher {0}","ru-RU":"Свернуть {0}","sv-SE":"Dölj {0}","tr-TR":"{0} öğelerini daralt","zh-CN":"折叠 {0}","zh-TW":"收合 {0}"}},SNPivotTable_ContextMenu_ExpandDimension:{id:"SNPivotTable.ContextMenu.ExpandDimension",locale:{"de-DE":"{0} erweitern","en-US":"Expand {0}","es-ES":"Expandir {0}","fr-FR":"Développer {0}","it-IT":"Espandi {0}","ja-JP":"{0} を展開","ko-KR":"{0} 확장","nl-NL":"{0} uitvouwen","pl-PL":"Rozwiń {0}","pt-BR":"Expandir {0}","ru-RU":"Развернуть {0}","sv-SE":"Visa {0}","tr-TR":"{0} öğelerini genişlet","zh-CN":"展开 {0}","zh-TW":"展開 {0}"}},SNPivotTable_IndentMode_Rows:{id:"SNPivotTable.IndentMode.Rows",locale:{"de-DE":"Zeilen","en-US":"Rows","es-ES":"Filas","fr-FR":"Lignes","it-IT":"Righe","ja-JP":"行","ko-KR":"행","nl-NL":"Rijen","pl-PL":"Wiersze","pt-BR":"Linhas","ru-RU":"Строки","sv-SE":"Rader","tr-TR":"Satırlar","zh-CN":"行","zh-TW":"列"}},SNPivotTable_LimitedData:{id:"SNPivotTable.LimitedData",locale:{"de-DE":"* Derzeit wird eine begrenzte Anzahl Spalten angezeigt","en-US":"* Currently showing a limited number of columns","es-ES":"* Actualmente mostrando un número limitado de columnas","fr-FR":"*Affichage actuel d'un nombre limité de colonnes","it-IT":"* Attualmente visualizzato un numero limitato di colonne","ja-JP":"* 現在、限られた列の数を表示","ko-KR":"* 현재 제한된 수의 열만 표시","nl-NL":"* Op dit moment wordt slechts een beperkt aantal kolommen getoond","pl-PL":"* Obecnie wyświetlana jest ograniczona liczba kolumn","pt-BR":"* Atualmente mostrando um número limitado de colunas","ru-RU":"* В настоящее время отображается ограниченное количество столбцов","sv-SE":"* Visar för närvarande ett begränsat antal kolumner","tr-TR":"*Şu anda sınırlı sayıda sütun gösteriliyor","zh-CN":"* 当前显示的列数有限","zh-TW":"* 目前顯示有限欄數"}},SNPivotTable_NoData:{id:"SNPivotTable.NoData",locale:{"de-DE":"Das Diagramm wird nicht angezeigt, weil es keine Werte enthält.","en-US":"The chart is not displayed because it contains no values.","es-ES":"El gráfico no se muestra porque no contiene valores.","fr-FR":"Le graphique n'est pas affiché, car il ne contient aucune valeur.","it-IT":"Il grafico non è visualizzato poiché non contiene alcun valore.","ja-JP":"チャートには値が含まれていないため、チャートは表示されません。","ko-KR":"차트에 값이 없으므로 차트가 표시되지 않습니다.","nl-NL":"Het diagram wordt niet weergegeven omdat deze geen waarden bevat.","pl-PL":"Wykres nie jest wyświetlany, ponieważ nie zawiera wartości.","pt-BR":"O gráfico não foi exibido porque não contém valores.","ru-RU":"Диаграмма не отображается, так как не содержит значений.","sv-SE":"Diagrammet visas inte eftersom det inte innehåller några värden.","tr-TR":"Değer içermemesi nedeniyle grafik görüntülenmiyor.","zh-CN":"图表未显示,因为它不包含任何值。","zh-TW":"系統不會顯示圖表,因為這沒有包含任何值。"}}};const YQ=()=>{const e=j(),t=e.language();return A((()=>{!function(e){const t="SNPivotTable_LimitedData";e.get(t)===t&&Object.keys(UQ).forEach((t=>{e.add(UQ[t])}))}(e)}),[e]),{translator:e,language:t}},KQ=e=>{const{flags:t}=e,n=N(),o=(e=>{const t=A((()=>jB(e)),[e]);return P((()=>()=>{t.unmount()}),[t]),t})(n),i=F(),a=z(),s=$(),l=W(),u=B(),c=AB(),d=((e,t)=>{const[r]=_B((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return{...await e.getEffectiveProperties()}}),[e,t]);return A((()=>{const e=void 0!==r?.qHyperCubeDef.qSortbyYValue&&1===Math.abs(r.qHyperCubeDef.qSortbyYValue),t=r?.qHyperCubeDef.qDimensions.map((e=>e.qDef.qSortCriterias))??[];return{qAlwaysFullyExpanded:r?.qHyperCubeDef.qAlwaysFullyExpanded??!1,qExpansionState:r?.qHyperCubeDef.qExpansionState,isSortedByFirstMeasure:e,getSortCriteriaForDimension:e=>t[e]}}),[r])})(a,i),p=$Q(i,t),f=(e=>{const t=_();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}})(p.isSnapshot),h=G(),m=DB(i,n),{translator:g,language:b}=YQ(),{pageInfo:v,updatePageInfo:y}=((e,t)=>{const{size:r,layout:{qHyperCube:{qSize:n}}}=e,o=t.isDownloadedAsPDForImage||e.isSnapshot,i=(e=>e.layout.snapshotData?.content?.rowsPerPage)(e),[a,s]=L((()=>{const a=((e,t)=>t.isDownloadedAsPDForImage?t.viewState?.renderPage??0:e.isSnapshot?e.layout.snapshotData?.content?.page??0:0)(e,t);return{page:a,shouldShowPagination:n.qcy>r.y&&!o,...GQ(n.qcy,a,i)}})),l=e.layout.qHyperCube.qSize.qcy;return P((()=>{s((t=>({...t,...GQ(l,t.page,i),shouldShowPagination:l>e.size.y&&!o})))}),[l,e.size.y,s,o,i]),P((()=>{const{page:e,totalPages:t}=a;if(e+1>t){const e=t-1,r=BQ({...a,page:e});s({...a,page:e,rowsOnCurrentPage:r})}}),[a]),{pageInfo:a,updatePageInfo:e=>{s({...a,...e,rowsOnCurrentPage:BQ({...a,...e})})}}})(p,c),x=((e,t,r)=>A((()=>((e,t)=>{if(e.isDownloadedAsPDForImage){const{viewState:t}=e;return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:t?.scrollTop??0,scrollLeft:t?.scrollLeft??0,leftGridScrollLeft:t?.leftGridScrollLeft??0,topGridScrollTop:t?.topGridScrollTop??0}}return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:t?.content?.scrollTop??0,scrollLeft:t?.content?.scrollLeft??0,leftGridScrollLeft:t?.content?.leftGridScrollLeft??0,topGridScrollTop:t?.content?.topGridScrollTop??0}})(r,t.snapshotData)),[r,e.page,t.snapshotData]))(v,i,c),S=VQ({rect:H(),layoutService:p,viewService:x,model:a,pageInfo:v}),[w,C]=WQ({model:a,layoutService:p,viewService:x,pageInfo:v,rect:S}),E=A((()=>((e,t)=>{const r=t.layout.components?.find((e=>"theme"===e.key)),n=r?.header,o=r?.dimensionValues,i=r?.measureValues,a=r?.measureLabels,s=r?.totalValues,l=r?.nullValues,u=r?.grid,c=(t,r,n)=>e.getStyle(t,r,n),d=+(u?.[AQ.LineClamp]??c(IQ.Grid,kQ.Grid,LQ.LineClamp)??1),p=+(u?.[AQ.ColumnLineClamp]??c(IQ.Grid,kQ.Grid,LQ.ColumnLineClamp)??1),f=DQ(e,n?.[AQ.Background])??c(IQ.Dimension,kQ.LabelName,LQ.BackgroundColor)??oB.Transparent,h={header:{fontSize:PQ(n?.[AQ.FontSize])??c(IQ.Dimension,kQ.LabelName,LQ.FontSize)??QW,fontFamily:n?.[AQ.FontFamily]??c(IQ.Dimension,kQ.LabelName,LQ.FontFamily)??eB,fontWeight:OQ(n?.[AQ.FontStyle],tB),fontStyle:TQ(n?.[AQ.FontStyle]),textDecoration:qQ(n?.[AQ.FontStyle]),color:DQ(e,n?.[AQ.FontColor])??c(IQ.Dimension,kQ.LabelName,LQ.FontColor)??p$.TEXT,background:f,hoverBackground:WW(f,cN),activeBackground:WW(f,dN)},dimensionValues:{fontSize:PQ(o?.[AQ.FontSize])??c(IQ.Dimension,kQ.LabelValue,LQ.FontSize)??QW,fontFamily:o?.[AQ.FontFamily]??c(IQ.Dimension,kQ.LabelValue,LQ.FontFamily)??eB,fontWeight:OQ(o?.[AQ.FontStyle],void 0),fontStyle:TQ(o?.[AQ.FontStyle]),textDecoration:qQ(o?.[AQ.FontStyle]),color:DQ(e,o?.[AQ.FontColor])??c(IQ.Dimension,kQ.LabelValue,LQ.FontColor)??p$.TEXT,background:DQ(e,o?.[AQ.Background])??c(IQ.Dimension,kQ.LabelValue,LQ.BackgroundColor)??oB.Transparent},measureValues:{fontSize:PQ(i?.[AQ.FontSize])??c(IQ.Measure,kQ.LabelValue,LQ.FontSize)??QW,fontFamily:i?.[AQ.FontFamily]??c(IQ.Measure,kQ.LabelValue,LQ.FontFamily)??eB,fontWeight:OQ(i?.[AQ.FontStyle],"normal"),fontStyle:TQ(i?.[AQ.FontStyle]),textDecoration:qQ(i?.[AQ.FontStyle]),color:DQ(e,i?.[AQ.FontColor])??c(IQ.Measure,kQ.LabelValue,LQ.FontColor)??oB.FontSecondary,background:DQ(e,i?.[AQ.Background])??c(IQ.Measure,kQ.LabelValue,LQ.BackgroundColor)??oB.Transparent},measureLabels:{fontWeight:OQ(a?.[AQ.FontStyle],"normal"),fontStyle:TQ(a?.[AQ.FontStyle]),textDecoration:qQ(a?.[AQ.FontStyle]),color:DQ(e,a?.[AQ.FontColor])??c(IQ.Measure,kQ.LabelName,LQ.FontColor)??oB.FontSecondary,background:DQ(e,a?.[AQ.Background])??c(IQ.Measure,kQ.LabelName,LQ.BackgroundColor)??oB.Transparent},totalValues:{fontWeight:OQ(s?.[AQ.FontStyle],tB),fontStyle:TQ(s?.[AQ.FontStyle]),textDecoration:qQ(s?.[AQ.FontStyle]),color:DQ(e,s?.[AQ.FontColor])??c(IQ.Total,kQ.LabelValue,LQ.FontColor)??p$.TEXT,background:DQ(e,s?.[AQ.Background])??c(IQ.Total,kQ.LabelValue,LQ.BackgroundColor)??oB.Transparent},nullValues:{fontWeight:OQ(l?.[AQ.FontStyle],"normal"),fontStyle:TQ(l?.[AQ.FontStyle]),textDecoration:qQ(l?.[AQ.FontStyle]),color:DQ(e,l?.[AQ.FontColor])??c(IQ.Null,kQ.LabelValue,LQ.FontColor)??p$.TEXT,background:DQ(e,l?.[AQ.Background])??c(IQ.Null,kQ.LabelValue,LQ.BackgroundColor)??oB.NullValueBackground},grid:{columnLineClamp:p,lineClamp:d,border:DQ(e,u?.[AQ.Border])??c(IQ.Grid,kQ.Grid,LQ.BorderColor)??oB.DividerLight,divider:DQ(e,u?.[AQ.Divider])??c(IQ.Grid,kQ.Divider,LQ.BorderColor)??oB.DividerDark,background:DQ(e,u?.[AQ.Background])??c(IQ.Grid,kQ.Grid,LQ.BackgroundColor)??oB.Transparent},selectedColors:$W(e)};return h.headerCellHeight=Math.max(_Q(h.header.fontSize,p),_Q(h.dimensionValues.fontSize,p),32),h.contentCellHeight=Math.max(_Q(h.measureValues.fontSize,d),_Q(h.dimensionValues.fontSize,d),24),h.dimensionValueTextHeight=_Q(h.dimensionValues.fontSize,1),h})(m,p)),[m,p]),R=((e,t,r)=>{const[,n,o]=_B((async()=>{const t=D$(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,FB].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})(m,i,e),M=I().direction;FQ([zQ({model:a,layoutService:p,effectivePropertiesService:d,translator:g})]),P((()=>{!C&&a&&!!w&&R&&((e,{selections:t,baseObjects:n,coreServices:o,nebulaObjects:i})=>{const a=MQ(n.direction);e.render(Zo.jsx(r.StrictMode,{children:Zo.jsx(RO,{theme:a,children:Zo.jsx(gH,{...i,children:Zo.jsx(fH,{...n,children:Zo.jsx(SK,{selections:t,children:Zo.jsx(yH,{...o,children:Zo.jsx(oU,{children:Zo.jsx(mJ,{})})})})})})})}))})(o,{selections:h,baseObjects:{rect:S,pageInfo:v,qPivotDataPages:w,updatePageInfo:y,direction:M},nebulaObjects:{env:e,app:s,model:a,embed:l,theme:m,keyboard:u,translator:g,interactions:f},coreServices:{styleService:E,viewService:x,layoutService:p,downloadService:c,effectivePropertiesService:d}})}),[a,s,S,f,h,x,p,c,C,w,E,o,R,g,b,v,y,d,l,u,m,e,M])},XQ={version:"6.1.2",qHyperCubeDef:{qAlwaysFullyExpanded:!1,qDimensions:[],qMeasures:[],qMode:"P",qSuppressMissing:!0,qSuppressZero:!1,qShowTotalsAbove:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:50,qHeight:50}],qIndentMode:!1},showTitles:!0,title:"",subtitle:"",footnote:"",nullValueRepresentation:{text:"-"},components:[]},JQ=()=>({...XQ,qHyperCubeDef:{...XQ.qHyperCubeDef,qIndentMode:!1}})}}}));