@nebula.js/sn-pivot-table 3.9.0 → 3.9.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 v3.9.0
2
+ * @nebula.js/sn-pivot-table v3.9.2
3
3
  * Copyright (c) 2024 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
@@ -8,7 +8,7 @@
8
8
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
9
9
  e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),v=p-g,b=e.substring(v,v+1),y=v+("."===b||","===b?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+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],s=c[1]&&c[c.length-1].length){for(h="",v=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-v+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),m+(n?"-":"")+r+x}},ve({exports:{}});const Me="qHyperCubeDef.qDimensions",_e="dimensions",Pe="qOtherTotalSpec.qTotalMode",Ae="totalMode",De={quarantine(e){i.quarantineArrayProp({properties:e,arrayPath:Me,quarantineName:Ae,arrayName:_e,itemPath:Pe})},unquarantine(e){i.unquarantineArrayProp({properties:e,arrayPath:Me,quarantineName:Ae,arrayName:_e,itemPath:Pe})}};function Te(e){const t=Ie(e);return(e,n,r,o)=>{var a,l,s,u,d,p;const f=i.hypercube.importProperties({exportFormat:e,initialProperties:n,dataDefinition:t.targets[0],hypercubePath:o}),m=((null===(a=f.qProperty)||void 0===a||null===(a=a.qHyperCubeDef)||void 0===a?void 0:a.qDimensions)||[]).length,h=(null===(l=f.qProperty)||void 0===l||null===(l=l.qHyperCubeDef)||void 0===l||null===(l=l.qMeasures)||void 0===l?void 0:l.length)||0;let g,v=(null===(s=f.qProperty)||void 0===s||null===(s=s.qHyperCubeDef)||void 0===s?void 0:s.qInterColumnSortOrder)||[],b=!0;m+h===v.length&&ye(f,"qProperty.qLayoutExclude.quarantine.interColSortOrder",v.concat());const y=(null==f||null===(u=f.qProperty)||void 0===u||null===(u=u.qLayoutExclude)||void 0===u||null===(u=u.quarantine)||void 0===u?void 0:u.pivotInterColSortOrder)||void 0;y?(v=y,g=[...y],ye(f,"qProperty.qHyperCubeDef.qInterColumnSortOrder",v),delete f.qProperty.qLayoutExclude.quarantine.pivotInterColSortOrder):v.length=0;const x=+(v.indexOf(-1)>-1),S=m+x;if(S>v.length)for(let e=v.length;e<S;e++)v.indexOf(e)<0&&v.push(e-x);for(let e=v.length-1;e>=0;e--)v[e]>=m&&v.splice(e,1);h>1&&v.indexOf(-1)<0?v.push(-1):h<2&&v.indexOf(-1)>-1&&v.splice(v.indexOf(-1),1);const E=null!==(d=null==f||null===(p=f.qProperty)||void 0===p||null===(p=p.qHyperCubeDef)||void 0===p?void 0:p.qNoOfLeftDims)&&void 0!==d?d:-1;if(m>0&&-1===E&&ye(f,"qProperty.qHyperCubeDef.qNoOfLeftDims",m),g&&v&&g.length===v.length){for(let e=0;e<g.length;e++)if(g[e]!==v[e]){b=!1;break}b&&i.unquarantineProperty(f.qProperty,"noOfLeftDims")}return i.conditionalShow.unquarantine(f.qProperty),De.unquarantine(f.qProperty),c(f.qProperty),i.unquarantineProperty(f.qProperty,"pivotTableIndentMode"),f}}function Oe(e,t){var n,r,o;const a=null!==(n=null==e||null===(r=e.qProperty)||void 0===r||null===(r=r.qHyperCubeDef)||void 0===r?void 0:r.qInterColumnSortOrder)&&void 0!==n?n:[],l=a.slice(),s=a.indexOf(-1);s>-1&&a.splice(s,1);const u=i.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),c=u.properties.qHyperCubeDef,p=c.qDimensions.length,f=c.qMeasures.length;let m=c.qInterColumnSortOrder;ye(u,"properties.qLayoutExclude.quarantine.pivotInterColSortOrder",l),i.quarantineProperty(u.properties,"qHyperCubeDef.qNoOfLeftDims","noOfLeftDims"),delete u.properties.qHyperCubeDef.qNoOfLeftDims;const h=null==u||null===(o=u.properties)||void 0===o||null===(o=o.qLayoutExclude)||void 0===o||null===(o=o.quarantine)||void 0===o?void 0:o.interColSortOrder;h&&(m=h,ye(u,"properties.qHyperCubeDef.qInterColumnSortOrder",m),ye(u,"data.0.interColumnSortOrder",m),delete u.properties.qLayoutExclude.quarantine.interColSortOrder);for(let e=m.length;e<p+f;e++)m.length<=e&&m.push(e);return i.quarantineProperty(u.properties,"qHyperCubeDef.qIndentMode","pivotTableIndentMode"),i.conditionalShow.quarantine(u.properties),De.quarantine(u.properties),d(u.properties),u}const Ne={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}};let qe=function(e){return e.Text="text",e.Link="link",e.Image="image",e}({}),Fe=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const ze=e=>{switch(null==e?void 0:e.type){case"url":return qe.Link;case"image":return qe.Image;default:return qe.Text}},je=(e,t)=>!e.properties.qHyperCubeDef.qIndentMode||!t,$e=(e,t,n)=>{if(e||t)return{uses:"dimensionRepresentationItems.representationType",show:(e,t,r)=>je(r,n),options(){const n=[{value:"text",translation:"Object.Table.Representation.Text"}];return t&&n.push({value:"url",translation:"Object.Table.Representation.Link"}),e&&n.push({value:"image",translation:"Object.Table.Representation.Image"}),n}}},Be=(e,t)=>{if(e)return{representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:(e,n,r)=>ze(e.qDef.representation)===qe.Link&&je(r,t)},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:(e,n,r)=>{var o;return ze(e.qDef.representation)===qe.Link&&(null===(o=e.qDef.representation)||void 0===o?void 0:o.urlPosition)===Fe.Dimension&&je(r,t)}},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:(e,n,r)=>{var o;return ze(e.qDef.representation)===qe.Link&&(null===(o=e.qDef.representation)||void 0===o?void 0:o.urlPosition)===Fe.Attribute&&je(r,t)}}}},He=(e,t)=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:(e,n,r)=>ze(e.qDef.representation)===qe.Image&&je(r,t),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"}]}}}}},We=e=>{var t,n;const{anything:r,flags:o}=e,i=o.isEnabled("CLIENT_IM_5975_INDENT_MODE"),a=o.isEnabled("CLIENT_IM_5715_LINKS"),l=o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=r&&null!==(t=r.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"tableImages"));return{representationType:$e(l,a,i),...Be(a,i),...He(l,i)}},Ge=e=>{var t,n;const{flags:r,anything:o}=e,i=r.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=o&&null!==(t=o.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"tableImages")),a=r.isEnabled("CLIENT_IM_5975_INDENT_MODE");return{representationType:i?{uses:"measureRepresentationItems.representationType",show:(e,t,n)=>je(n,a),options:[{value:"text",translation:"Object.Table.Representation.Text"},{value:"image",translation:"Object.Table.Representation.Image"}]}:void 0,representationImage:i?{uses:"measureRepresentationItems.representationImage",show:(e,t,n)=>ze(e.qDef.representation)===qe.Image&&je(n,a),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}};var Ve,Ue,Ye,Ke;!function(e){e.Dimension="dimensions",e.Measures="measures",e.Pivot="pivot"}(Ve||(Ve={})),function(e){e.CellForegroundColor="cellForegroundColor",e.CellBackgroundColor="cellBackgroundColor",e.ImageUrl="imageUrl",e.ImageLabel="imageLabel",e.Link="url",e.LinkLabel="urlLabel"}(Ue||(Ue={})),function(e){e.LEFT_GRID="leftGrid",e.DATA_GRID="dataGrid",e.CONTAINER_GRID="containerGrid"}(Ye||(Ye={})),function(e){e.Forward="forward",e.Backward="backward",e.None="none"}(Ke||(Ke={}));const Xe="12px",Qe="nebula-table-utils-head-menu-button",Je="sn-copy-cell";let Ze=function(e){return e.ENTER="Enter",e.SPACE=" ",e.ESC="Escape",e.TAB="Tab",e.SHIFT="Shift",e.LEFT="ArrowLeft",e.RIGHT="ArrowRight",e.UP="ArrowUp",e.DOWN="ArrowDown",e.C="c",e}({});const et="nebula-table-utils-column-adjuster",tt=`${et}-border`;let nt=function(e){return e[e.PixelsMin=30]="PixelsMin",e[e.PixelsMax=7680]="PixelsMax",e[e.PixelsDefault=200]="PixelsDefault",e[e.PercentageMin=1]="PercentageMin",e[e.PercentageMax=100]="PercentageMax",e[e.PercentageDefault=20]="PercentageDefault",e[e.PercentageMaxInIndentMode=75]="PercentageMaxInIndentMode",e[e.AutoMinPivot=80]="AutoMinPivot",e[e.AutoMinTable=120]="AutoMinTable",e}({}),rt=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const ot={darker:.15,brighter:.3,opacity:.03},it={darker:.3,brighter:.5,opacity:.05};var at,lt;!function(e){e.NX_DIM_CELL_VALUE="V",e.NX_DIM_CELL_EMPTY="E",e.NX_DIM_CELL_NORMAL="N",e.NX_DIM_CELL_TOTAL="T",e.NX_DIM_CELL_OTHER="O",e.NX_DIM_CELL_AGGR="A",e.NX_DIM_CELL_PSEUDO="P",e.NX_DIM_CELL_ROOT="R",e.NX_DIM_CELL_NULL="U",e.NX_DIM_CELL_GENERATED="G"}(at||(at={})),function(e){e.NX_CELL_DATA="D",e.NX_CELL_TOP="T",e.NX_CELL_LEFT="L"}(lt||(lt={}));var st=at;const ut="image",ct=(e,t,n)=>{if(!n.properties.qHyperCubeDef.qIndentMode)return!0;const r=n.properties.qHyperCubeDef.qInterColumnSortOrder.indexOf(-1);let o=n.properties.qHyperCubeDef.qNoOfLeftDims;r>-1&&r<o&&(o-=1);const i=n.properties.qHyperCubeDef.qDimensions.indexOf(e);return 0===i||i>=o},dt=()=>({type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:rt.Auto,translation:"Common.Auto"},{value:rt.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:rt.Pixels,translation:"Object.Table.Column.Pixels"},{value:rt.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:rt.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:nt.PixelsDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===rt.Pixels},change(e){void 0!==e.qDef.columnWidth.pixels&&(e.qDef.columnWidth.pixels=Math.max(nt.PixelsMin,Math.min(nt.PixelsMax,e.qDef.columnWidth.pixels)))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:nt.PercentageDefault,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===rt.Percentage},change:e=>{void 0!==e.qDef.columnWidth.percentage&&(e.qDef.columnWidth.percentage=Math.max(nt.PercentageMin,Math.min(nt.PercentageMax,e.qDef.columnWidth.percentage)))}}}),pt=({key:e,translation:t,env:n})=>{var r,o;if(!n.flags.isEnabled("CLIENT_IM_5863_PVT_TEXT_ALIGN"))return;const i=n.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!==(r=n.anything)&&void 0!==r&&null!==(r=r.sense)&&void 0!==r&&null!==(o=r.isUnsupportedFeature)&&void 0!==o&&o.call(r,"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=>{var n;if(!i||"labelTextAlign"===e)return!0;return(null==t||null===(n=t.qDef)||void 0===n||null===(n=n.representation)||void 0===n?void 0:n.type)!==ut}},[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=>{var n,r;return!(void 0===t.qDef[e]||null!==(n=t.qDef[e])&&void 0!==n&&n.auto)&&(!i||"labelTextAlign"===e||(null===(r=t.qDef)||void 0===r||null===(r=r.representation)||void 0===r?void 0:r.type)!==ut)}}}},ft="TOTAL_OFF",mt={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Ue.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Ue.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ue.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ue.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ue.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ue.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},ht="TOTAL_OFF",gt={component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:Ue.CellBackgroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:Ue.CellForegroundColor},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ue.LinkLabel,tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ue.Link,tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ue.ImageLabel,tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:Ue.ImageUrl,tid:"ImageUrlByExpression",show:!1}]},vt=e=>{var t,n;const{translator:r,anything:o,flags:i}=e,a=(e=>{var t,n;const{translator:r,anything:o,flags:i}=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:ft,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:ft,translation:"properties.off"},show:(null==o||null===(t=o.sense)||void 0===t||null===(n=t.isUnsupportedFeature)||void 0===n||!n.call(t,"totals"))&&ct},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>r.get("Object.Table.Totals"),show(e,t,n){var r,i,a;return!(null!=o&&null!==(r=o.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==ft&&ct(e,0,n)}},dimensionLimits:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.dimensionLimits"}:void 0,showOthers:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.others"}:void 0,globalGrouping:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null==e||null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}}:void 0}},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:mt,...pt({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...pt({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...We(e),...dt()}}}},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:i.isEnabled("CLIENT_IM_5851_MEASURE_FORMATTING")?{uses:"measures.items.numberFormatting"}:void 0}},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:mt,...pt({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...pt({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Ge(e),...dt()}}}}}}})(e);return i.isEnabled("CLIENT_IM5974_PIVOT_DATA_PROPERTIES")?a:{type:"items",component:"pivot-data",translation:"properties.data",addTranslation:"Properties.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:ht,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:ht,translation:"properties.off"},show:(null==o||null===(t=o.sense)||void 0===t||null===(n=t.isUnsupportedFeature)||void 0===n||!n.call(t,"totals"))&&ct},totalsLabel:{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"properties.totals.label",defaultValue:()=>r.get("Object.Table.Totals"),show(e,t,n){var r,i,a;return!(null!=o&&null!==(r=o.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"totals"))&&(null===(a=e.qOtherTotalSpec)||void 0===a?void 0:a.qTotalMode)!==ht&&ct(e,0,n)}},dimensionLimits:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.dimensionLimits"}:void 0,showOthers:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{uses:"dimensions.items.others"}:void 0,globalGrouping:i.isEnabled("CLIENT_IM5847_PIVOT_LIMITATION")?{type:"boolean",translation:"properties.dimensionLimits.globalGrouping",ref:"qOtherTotalSpec.qGlobalOtherGrouping",defaultValue:!1,show(e){var t;return"OTHER_OFF"!==(null==e||null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qOtherMode)}}:void 0,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:gt,...pt({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...pt({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...We(e),...dt()}},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:i.isEnabled("CLIENT_IM_5851_MEASURE_FORMATTING")?{uses:"measures.items.numberFormatting"}:void 0,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:gt,...pt({env:e,key:"labelTextAlign",translation:"Common.Text.LabelTextAlignment"}),...pt({env:e,key:"textAlign",translation:"Common.Text.TextAlignment"}),...Ge(e),...dt()}}}}},bt=(e,t,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:!1,defaultValue(e,t,r){const o=r.theme.current(),i=n(o);return{color:"transparent"===i?"none":i}}});var yt=Object.prototype.hasOwnProperty,xt=Object.prototype.toString,St=Object.defineProperty,Et=Object.getOwnPropertyDescriptor,Ct=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===xt.call(e)},wt=function(e){if(!e||"[object Object]"!==xt.call(e))return!1;var t,n=yt.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&yt.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||yt.call(e,t)},Rt=function(e,t){St&&"__proto__"===t.name?St(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Lt=function(e,t){if("__proto__"===t){if(!yt.call(e,t))return;if(Et)return Et(e,t).value}return e[t]};function kt(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function It(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Mt(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(n in t)r=Lt(l,n),l!==(o=Lt(t,n))&&(c&&o&&(wt(o)||(i=Ct(o)))?(i?(i=!1,a=r&&Ct(r)?r:[]):a=r&&wt(r)?r:{},Rt(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&Rt(l,{name:n,newValue:o}));return l}));var _t=1/.7,Pt="\\s*([+-]?\\d+)\\s*",At="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Dt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Tt=/^#([0-9a-f]{3,8})$/,Ot=new RegExp(`^rgb\\(${Pt},${Pt},${Pt}\\)$`),Nt=new RegExp(`^rgb\\(${Dt},${Dt},${Dt}\\)$`),qt=new RegExp(`^rgba\\(${Pt},${Pt},${Pt},${At}\\)$`),Ft=new RegExp(`^rgba\\(${Dt},${Dt},${Dt},${At}\\)$`),zt=new RegExp(`^hsl\\(${At},${Dt},${Dt}\\)$`),jt=new RegExp(`^hsla\\(${At},${Dt},${Dt},${At}\\)$`),$t={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 Bt(){return this.rgb().formatHex()}function Ht(){return this.rgb().formatRgb()}function Wt(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Tt.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Gt(t):3===n?new Kt(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Vt(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Vt(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=Ot.exec(e))?new Kt(t[1],t[2],t[3],1):(t=Nt.exec(e))?new Kt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=qt.exec(e))?Vt(t[1],t[2],t[3],t[4]):(t=Ft.exec(e))?Vt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=zt.exec(e))?tn(t[1],t[2]/100,t[3]/100,1):(t=jt.exec(e))?tn(t[1],t[2]/100,t[3]/100,t[4]):$t.hasOwnProperty(e)?Gt($t[e]):"transparent"===e?new Kt(NaN,NaN,NaN,0):null}function Gt(e){return new Kt(e>>16&255,e>>8&255,255&e,1)}function Vt(e,t,n,r){return r<=0&&(e=t=n=NaN),new Kt(e,t,n,r)}function Ut(e){return e instanceof Mt||(e=Wt(e)),e?new Kt((e=e.rgb()).r,e.g,e.b,e.opacity):new Kt}function Yt(e,t,n,r){return 1===arguments.length?Ut(e):new Kt(e,t,n,null==r?1:r)}function Kt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Xt(){return`#${en(this.r)}${en(this.g)}${en(this.b)}`}function Qt(){const e=Jt(this.opacity);return`${1===e?"rgb(":"rgba("}${Zt(this.r)}, ${Zt(this.g)}, ${Zt(this.b)}${1===e?")":`, ${e})`}`}function Jt(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Zt(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function en(e){return((e=Zt(e))<16?"0":"")+e.toString(16)}function tn(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new rn(e,t,n,r)}function nn(e){if(e instanceof rn)return new rn(e.h,e.s,e.l,e.opacity);if(e instanceof Mt||(e=Wt(e)),!e)return new rn;if(e instanceof rn)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new rn(a,l,s,e.opacity)}function rn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function on(e){return(e=(e||0)%360)<0?e+360:e}function an(e){return Math.max(0,Math.min(1,e||0))}function ln(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}kt(Mt,Wt,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Bt,formatHex:Bt,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return nn(this).formatHsl()},formatRgb:Ht,toString:Ht}),kt(Kt,Yt,It(Mt,{brighter(e){return e=null==e?_t:Math.pow(_t,e),new Kt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Kt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Kt(Zt(this.r),Zt(this.g),Zt(this.b),Jt(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:Xt,formatHex:Xt,formatHex8:function(){return`#${en(this.r)}${en(this.g)}${en(this.b)}${en(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Qt,toString:Qt})),kt(rn,(function(e,t,n,r){return 1===arguments.length?nn(e):new rn(e,t,n,null==r?1:r)}),It(Mt,{brighter(e){return e=null==e?_t:Math.pow(_t,e),new rn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new rn(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,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Kt(ln(e>=240?e-240:e+120,o,r),ln(e,o,r),ln(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new rn(on(this.h),an(this.s),an(this.l),Jt(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=Jt(this.opacity);return`${1===e?"hsl(":"hsla("}${on(this.h)}, ${100*an(this.s)}%, ${100*an(this.l)}%${1===e?")":`, ${e})`}`}}));const sn=Math.PI/180,un=180/Math.PI,cn=4/29,dn=6/29,pn=3*dn*dn;function fn(e){if(e instanceof mn)return new mn(e.l,e.a,e.b,e.opacity);if(e instanceof yn)return xn(e);e instanceof Kt||(e=Ut(e));var t,n,r=bn(e.r),o=bn(e.g),i=bn(e.b),a=hn((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=hn((.4360747*r+.3850649*o+.1430804*i)/.96422),n=hn((.0139322*r+.0971045*o+.7141733*i)/.82521)),new mn(116*a-16,500*(t-a),200*(a-n),e.opacity)}function mn(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function hn(e){return e>.008856451679035631?Math.pow(e,1/3):e/pn+cn}function gn(e){return e>dn?e*e*e:pn*(e-cn)}function vn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function bn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function yn(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function xn(e){if(isNaN(e.h))return new mn(e.l,0,0,e.opacity);var t=e.h*sn;return new mn(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}kt(mn,(function(e,t,n,r){return 1===arguments.length?fn(e):new mn(e,t,n,null==r?1:r)}),It(Mt,{brighter(e){return new mn(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new mn(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,n=isNaN(this.b)?e:e-this.b/200;return new Kt(vn(3.1338561*(t=.96422*gn(t))-1.6168667*(e=1*gn(e))-.4906146*(n=.82521*gn(n))),vn(-.9787684*t+1.9161415*e+.033454*n),vn(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),kt(yn,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof yn)return new yn(e.h,e.c,e.l,e.opacity);if(e instanceof mn||(e=fn(e)),0===e.a&&0===e.b)return new yn(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*un;return new yn(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new yn(e,t,n,null==r?1:r)}),It(Mt,{brighter(e){return new yn(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new yn(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return xn(this).rgb()}}));var Sn,En=e=>()=>e;function Cn(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):En(isNaN(e)?t:e)}function wn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=function(){var e={};return{get:function(t){return e[t]},set:function(t,n){return e[t]=n,n},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(r){var o=t(r);return n.has(o)?n.get(o):n.set(o,e(r))}}function Rn(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Ln(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=In)):void 0===t&&(t=kn);for(var n,r,o,i,a,l=new Pn(e),s=[l];n=s.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)s.push(r=o[i]=new Pn(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(_n)}function kn(e){return e.children}function In(e){return Array.isArray(e)?e[1]:null}function Mn(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function _n(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Pn(e){this.data=e,this.depth=this.height=0,this.parent=null}!function e(t){var n=function(e){return 1==(e=+e)?Cn:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):En(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Yt(e)).r,(t=Yt(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Cn(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1),Pn.prototype=Ln.prototype={constructor:Pn,count:function(){return this.eachAfter(Rn)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},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(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return Ln(this).eachBefore(Mn)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},Sn=function(e){
10
10
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
11
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),v=p-g,b=e.substring(v,v+1),y=v+("."===b||","===b?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+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],s=c[1]&&c[c.length-1].length){for(h="",v=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-v+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),m+(n?"-":"")+r+x}},Sn({exports:{}});var An=["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"],Dn=["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 Tn(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?Dn:An}const On=(e,t=!1)=>{return{value:e,label:t?(n=e,n.charAt(0).toUpperCase()+n.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var n},Nn=({ref:e,themeAccessor:t,translator:n,flags:r})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,n,r)=>{var o,i;const a=null!==(o=t.fontFamily)&&void 0!==o?o:"Source Sans Pro, sans-serif",l=null!==(i=t.fontFamilies)&&void 0!==i?i:[],s=Array.from(new Set([e,a,...l])),u=[{value:"ThemeHeader",label:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0},...s.sort().map((e=>On(e,!0)))],c=[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0},...Tn(r).filter((e=>!s.includes(e))).map((e=>On(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,n,r)},defaultValue:(e,n,r)=>t(r.theme.current())}),qn=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],Fn=({ref:e,themeAccessor:t,translator:n})=>({component:"dropdown",ref:e,options:(e,r,o)=>{const i=o.theme.current();return((e,t,n)=>{var r;const o=t.fontSize,i=null!==(r=t.fontSizes)&&void 0!==r?r:[],a=Array.from(new Set([e,o,...i])),l=[{value:"ThemeHeader",label:n.get("properties.themeFontSizes"),metaText:n.get("properties.theme"),groupHeader:!0},...a.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>On(e,!1)))],s=[{value:"DefaultHeader",label:n.get("properties.allFontSizes"),metaText:n.get("properties.default"),groupHeader:!0},...qn.filter((e=>!a.includes(e))).map((e=>On(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,n)},defaultValue:(e,n,r)=>t(r.theme.current())}),zn=({section:e,defaultFontStyle:t,translator:n,flags:r,getThemeValue:o,translation:i})=>({component:"panel-section",translation:null!=i?i:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:Nn({ref:`${e}.fontFamily`,themeAccessor:t=>{var n;return null!==(n=o(t,e,"fontFamily"))&&void 0!==n?n:t.fontFamily},translator:n,flags:r}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:Fn({ref:`${e}.fontSize`,themeAccessor:t=>{var n;return null!==(n=o(t,e,"fontSize"))&&void 0!==n?n:t.fontSize},translator:n}),fontColor:bt(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=o(t,e,"color"))&&void 0!==n?n:t.color}))}},background:bt(`${e}.background`,"properties.background",(t=>{var n;return null!==(n=o(t,e,"backgroundColor"))&&void 0!==n?n:"transparent"}))}}}}),jn=({section:e,defaultFontStyle:t,fallbackBackground:n,getThemeValue:r})=>({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:null!=t?t:[]},fontColor:bt(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=r(t,e,"color"))&&void 0!==n?n:t.color}))}},background:bt(`${e}.background`,"properties.background",(t=>{var o,i;return null!==(o=null!==(i=r(t,e,"backgroundColor"))&&void 0!==i?i:n)&&void 0!==o?o:"transparent"}))}}}}),$n=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}),Bn="12px",Hn="Source Sans Pro, sans-serif",Wn="600",Gn=15e3,Vn=4/3,Un=1;var Yn,Kn;!function(e){e.Transparent="transparent",e.FontPrimary="#404040",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2"}(Yn||(Yn={})),function(e){e.Solid="solid",e.None="none"}(Kn||(Kn={}));const Xn={display:"flex",justifyContent:"center",alignItems:"center"},Qn={borderStyle:"solid"},Jn={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},Zn={lineHeight:Vn,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},er=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),tr=(e,t)=>e>0?`${e}px ${Kn.Solid} ${t}`:Kn.None,nr=(e,t,n,r)=>{const o=Number(!t||(null==r?void 0:r.right)),i=Number(!e||(null==r?void 0:r.bottom));return{borderRight:tr(o,n),borderBottom:tr(i,n),borderLeft:Kn.None,borderTop:Kn.None}},rr=(e,t,n,r,o,i)=>{const a=nr(t,r,o,i);return e.isLeftDimension||(e.isLastDimension&&!t&&(a.borderBottom=tr(2,o)),n||(a.borderLeft=tr(1,o))),a},or=({bottomDivider:e,rightDivider:t,borderColor:n})=>{const r={};return e&&(r.borderBottom=tr(1,n)),t&&(r.borderRight=tr(1,n)),r},ir=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:$n("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:e.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?$n("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"):void 0,border:bt("grid.border","properties.border",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n?void 0:n.borderColor)&&void 0!==t?t:Yn.DividerLight})),divider:bt("grid.divider","properties.pivot.divider",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n||null===(n=n.divider)||void 0===n?void 0:n.borderColor)&&void 0!==t?t:Yn.DividerDark})),background:bt("grid.background","properties.background",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n?void 0:n.backgroundColor)&&void 0!==t?t:Yn.Transparent}))}}}}),ar=(e,t,n)=>{var r,o,i,a,l,s;switch(t){case"header":return null==e||null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.dimension)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.name)||void 0===r?void 0:r[n];case"dimensionValues":return null==e||null===(o=e.object)||void 0===o||null===(o=o.pivotTableV2)||void 0===o||null===(o=o.dimension)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o[n];case"measureLabels":return null==e||null===(i=e.object)||void 0===i||null===(i=i.pivotTableV2)||void 0===i||null===(i=i.measure)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.name)||void 0===i?void 0:i[n];case"measureValues":return null==e||null===(a=e.object)||void 0===a||null===(a=a.pivotTableV2)||void 0===a||null===(a=a.measure)||void 0===a||null===(a=a.label)||void 0===a||null===(a=a.value)||void 0===a?void 0:a[n];case"totalValues":return null==e||null===(l=e.object)||void 0===l||null===(l=l.pivotTableV2)||void 0===l||null===(l=l.total)||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.value)||void 0===l?void 0:l[n];case"nullValues":return null==e||null===(s=e.object)||void 0===s||null===(s=s.pivotTableV2)||void 0===s||null===(s=s.null)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s[n];default:return}},lr=(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:zn({section:"header",defaultFontStyle:["bold"],translator:e,flags:t,getThemeValue:ar}),dimensionValueSection:zn({section:"dimensionValues",translator:e,flags:t,getThemeValue:ar}),measureValueSection:zn({section:"measureValues",translator:e,flags:t,getThemeValue:ar}),measureLabelSection:jn({section:"measureLabels",getThemeValue:ar}),totalValuesSection:jn({section:"totalValues",defaultFontStyle:["bold"],getThemeValue:ar}),nullValuesSection:jn({section:"nullValues",fallbackBackground:Yn.NullValueBackground,getThemeValue:ar}),gridSection:ir(t)}}]}),sr=e=>({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},...e.isEnabled("CLIENT_IM_5975_INDENT_MODE")&&{indentMode:{ref:"qHyperCubeDef.qIndentMode",type:"boolean",translation:"properties.pivot.indentMode",defaultValue:!0,change(e){e.qHyperCubeDef.qShowTotalsAbove=!0}},type:{type:"string",component:"dropdown",ref:"qHyperCubeDef.indentModeColumnWidth.type",translation:"Object.Table.Column.Width",options:[{value:rt.Auto,translation:"Common.Auto"},{value:rt.Pixels,translation:"Object.Table.Column.Pixels"},{value:rt.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:rt.Auto,show:e=>e.qHyperCubeDef.qIndentMode},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:nt.PixelsDefault,show:e=>{var t;const n=e.qHyperCubeDef;return n.qIndentMode&&(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.type)===rt.Pixels},change:e=>{var t;const n=e.qHyperCubeDef;void 0!==(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.pixels)&&(n.indentModeColumnWidth.pixels=Math.max(nt.PixelsMin,Math.min(nt.PixelsMax,n.indentModeColumnWidth.pixels)))}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:nt.PercentageDefault,show:e=>{var t;const n=e.qHyperCubeDef;return n.qIndentMode&&(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.type)===rt.Percentage},change:e=>{var t;const n=e.qHyperCubeDef;void 0!==(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.percentage)&&(n.indentModeColumnWidth.percentage=Math.max(nt.PercentageMin,Math.min(nt.PercentageMaxInIndentMode,n.indentModeColumnWidth.percentage)))}}},showTotalsAbove:{ref:"qHyperCubeDef.qShowTotalsAbove",type:"boolean",translation:"properties.pivot.showTotalsAbove",defaultValue:!0,show(t){var n;const{qIndentMode:r}=t.qHyperCubeDef;return(!r||r&&!e.isEnabled("CLIENT_IM_5975_INDENT_MODE"))&&(null===(n=t.qHyperCubeDef)||void 0===n||null===(n=n.qDimensions)||void 0===n?void 0:n.some((e=>{var t;return"TOTAL_EXPR"===(null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qTotalMode)})))}},resetProperties:{type:"object",component:"button",translation:"properties.pivot.resetExpansionButton",disabled:e=>e.qHyperCubeDef.qAlwaysFullyExpanded,action(e,t,n,r){e.qHyperCubeDef.qExpansionState=[],r.$emit("saveProperties",e)}}}}),ur=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[lr(e,t),sr(t)]}}}),cr="auto",dr={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=>{var t;return!(null==e||null===(t=e.qHyperCubeDef)||void 0===t||!t.qSortbyYValue)}}}},defaultSorting:{uses:"sorting",items:{dimensions:{showPriority:!1,allowMove:!1},measures:{included:!1}}},searchSorting:{ref:"search.sorting",type:"string",component:"dropdown",defaultValue:cr,translation:"Object.Table.SortingInSearch",options:[{value:cr,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function pr(e){const{translator:t,flags:n}=e;return{type:"items",component:"accordion",items:{data:vt(e),sorting:dr,addons:Ne,settings:ur(t,n)}}}function fr(e){return{support:{cssScaling:e.flags.isEnabled("CLIENT_IM5878_PIVOT_SNAPSHOT"),snapshot:e.flags.isEnabled("CLIENT_IM5878_PIVOT_SNAPSHOT"),export:e.flags.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD"),sharing:!1,exportData:!0,viewData:!0},usePropertyHandler:"pivot-data",definition:pr(e),importProperties:Te(e),exportProperties:Oe}}function mr(){return mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mr.apply(null,arguments)}var hr={exports:{}};function gr(){}function vr(){}vr.resetWarningCache=gr;hr.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:vr,resetWarningCache:gr};return n.PropTypes=n,n}();var br=n(hr.exports);function yr(e){if(e.type)return e;if("#"===e.charAt(0))return yr(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(function(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function xr(e,t){return e=yr(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}(e)}function Sr(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function Er(e,t){return Er=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Er(e,t)}function Cr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Er(e,t)}var wr={exports:{}},Rr={},Lr=Symbol.for("react.element"),kr=Symbol.for("react.portal"),Ir=Symbol.for("react.fragment"),Mr=Symbol.for("react.strict_mode"),_r=Symbol.for("react.profiler"),Pr=Symbol.for("react.provider"),Ar=Symbol.for("react.context"),Dr=Symbol.for("react.forward_ref"),Tr=Symbol.for("react.suspense"),Or=Symbol.for("react.memo"),Nr=Symbol.for("react.lazy"),qr=Symbol.iterator;var Fr={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},zr=Object.assign,jr={};function $r(e,t,n){this.props=e,this.context=t,this.refs=jr,this.updater=n||Fr}function Br(){}function Hr(e,t,n){this.props=e,this.context=t,this.refs=jr,this.updater=n||Fr}$r.prototype.isReactComponent={},$r.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},$r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},Br.prototype=$r.prototype;var Wr=Hr.prototype=new Br;Wr.constructor=Hr,zr(Wr,$r.prototype),Wr.isPureReactComponent=!0;var Gr=Array.isArray,Vr=Object.prototype.hasOwnProperty,Ur={current:null},Yr={key:!0,ref:!0,__self:!0,__source:!0};function Kr(e,t,n){var r,o={},i=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)Vr.call(t,r)&&!Yr.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:Lr,type:e,key:i,ref:a,props:o,_owner:Ur.current}}function Xr(e){return"object"==typeof e&&null!==e&&e.$$typeof===Lr}var Qr=/\/+/g;function Jr(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function Zr(e,t,n,r,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a=!1;if(null===e)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Lr:case kr:a=!0}}if(a)return o=o(a=e),e=""===r?"."+Jr(a,0):r,Gr(o)?(n="",null!=e&&(n=e.replace(Qr,"$&/")+"/"),Zr(o,t,n,"",(function(e){return e}))):null!=o&&(Xr(o)&&(o=function(e,t){return{$$typeof:Lr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(Qr,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=""===r?".":r+":",Gr(e))for(var l=0;l<e.length;l++){var s=r+Jr(i=e[l],l);a+=Zr(i,t,n,s,o)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=qr&&e[qr]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),l=0;!(i=e.next()).done;)a+=Zr(i=i.value,t,n,s=r+Jr(i,l++),o);else if("object"===i)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function eo(e,t,n){if(null==e)return e;var r=[],o=0;return Zr(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function to(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var no={current:null},ro={transition:null},oo={ReactCurrentDispatcher:no,ReactCurrentBatchConfig:ro,ReactCurrentOwner:Ur};function io(){throw Error("act(...) is not supported in production builds of React.")}Rr.Children={map:eo,forEach:function(e,t,n){eo(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return eo(e,(function(){t++})),t},toArray:function(e){return eo(e,(function(e){return e}))||[]},only:function(e){if(!Xr(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},Rr.Component=$r,Rr.Fragment=Ir,Rr.Profiler=_r,Rr.PureComponent=Hr,Rr.StrictMode=Mr,Rr.Suspense=Tr,Rr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oo,Rr.act=io,Rr.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=zr({},e.props),o=e.key,i=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,a=Ur.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)Vr.call(t,s)&&!Yr.hasOwnProperty(s)&&(r[s]=void 0===t[s]&&void 0!==l?l[s]:t[s])}var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){l=Array(s);for(var u=0;u<s;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:Lr,type:e.type,key:o,ref:i,props:r,_owner:a}},Rr.createContext=function(e){return(e={$$typeof:Ar,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:Pr,_context:e},e.Consumer=e},Rr.createElement=Kr,Rr.createFactory=function(e){var t=Kr.bind(null,e);return t.type=e,t},Rr.createRef=function(){return{current:null}},Rr.forwardRef=function(e){return{$$typeof:Dr,render:e}},Rr.isValidElement=Xr,Rr.lazy=function(e){return{$$typeof:Nr,_payload:{_status:-1,_result:e},_init:to}},Rr.memo=function(e,t){return{$$typeof:Or,type:e,compare:void 0===t?null:t}},Rr.startTransition=function(e){var t=ro.transition;ro.transition={};try{e()}finally{ro.transition=t}},Rr.unstable_act=io,Rr.useCallback=function(e,t){return no.current.useCallback(e,t)},Rr.useContext=function(e){return no.current.useContext(e)},Rr.useDebugValue=function(){},Rr.useDeferredValue=function(e){return no.current.useDeferredValue(e)},Rr.useEffect=function(e,t){return no.current.useEffect(e,t)},Rr.useId=function(){return no.current.useId()},Rr.useImperativeHandle=function(e,t,n){return no.current.useImperativeHandle(e,t,n)},Rr.useInsertionEffect=function(e,t){return no.current.useInsertionEffect(e,t)},Rr.useLayoutEffect=function(e,t){return no.current.useLayoutEffect(e,t)},Rr.useMemo=function(e,t){return no.current.useMemo(e,t)},Rr.useReducer=function(e,t,n){return no.current.useReducer(e,t,n)},Rr.useRef=function(e){return no.current.useRef(e)},Rr.useState=function(e){return no.current.useState(e)},Rr.useSyncExternalStore=function(e,t,n){return no.current.useSyncExternalStore(e,t,n)},Rr.useTransition=function(){return no.current.useTransition()},Rr.version="18.3.1",wr.exports=Rr;var ao=wr.exports,lo=n(ao),so=t({__proto__:null,default:lo},[ao]);const uo={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"},co={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN:"#00873D",GREEN_PALE:"#0AAF54",GREEN_DARK:"#0D6932",BLUE:"#3F8AB3",BLUE_PALE:"#469DCD",BLUE_DARK:"#2F607B",RED:"#DC373F",RED_PALE:"#F05551",RED_DARK:"#97322F",ORANGE:"#EF960F",ORANGE_PALE:"#FFC629",ORANGE_DARK:"#A4681C",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...uo,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_25:"rgba(0, 0, 0, 0.25)",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_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#177FE6",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},po=12,fo=14,mo=16,ho=24,go=3,vo=300,bo=400,yo=600,xo=700,So={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};xr(co.GREYSCALE_0,.05),xr(co.GREEN_PALE,.5),xr(co.BLUE_PALE,.5),xr(co.GREEN_PALE,.5),xr(co.BLUE_PALE,.5),xr(co.GREEN_PALE,.5),xr(co.BLUE_PALE,.5);var Eo;function Co(){return Co=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Co.apply(this,arguments)}xr(co.GREEN_PALE,.5),xr(co.BLUE_PALE,.5),xr(co.GREEN_PALE,.5),xr(co.BLUE_PALE,.5);var wo,Ro=function(e){return ao.createElement("svg",Co({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),Eo||(Eo=ao.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function Lo(){return Lo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lo.apply(this,arguments)}var ko=function(e){return ao.createElement("svg",Lo({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),wo||(wo=ao.createElement("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.345z"})))};function Io({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return lo.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var Mo=(e={})=>lo.createElement(Io,{...e},lo.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},lo.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),lo.createElement("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"}))),_o=(e={})=>lo.createElement(Io,{...e},lo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},lo.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},lo.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),lo.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),Po=(e={})=>lo.createElement(Io,{fontSize:"medium",...e},lo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},lo.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},lo.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),Ao=(e={})=>lo.createElement(Io,{fontSize:"medium",...e},lo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},lo.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),lo.createElement("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"}))),Do=({className:e})=>lo.createElement(Io,{fontSize:"small",className:e},lo.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},lo.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},lo.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},lo.createElement("g",{transform:"translate(4.324187, 1.300372)"},lo.createElement("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"}),lo.createElement("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"}))))));var To={black:"#000",white:"#fff"};var Oo={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"};var No={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var qo={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"};var Fo={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var zo={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"};var jo={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"};var $o={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Bo(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var Ho="$$material";function Wo(){return Wo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wo.apply(this,arguments)}function Go(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Vo(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var Uo=Object.freeze({__proto__:null,default:Vo}),Yo=function(){return Yo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Yo.apply(this,arguments)};function Ko(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var Xo="-ms-",Qo="-moz-",Jo="-webkit-",Zo="comm",ei="rule",ti="decl",ni="@import",ri="@keyframes",oi="@layer",ii=Math.abs,ai=String.fromCharCode,li=Object.assign;function si(e){return e.trim()}function ui(e,t){return(e=t.exec(e))?e[0]:e}function ci(e,t,n){return e.replace(t,n)}function di(e,t,n){return e.indexOf(t,n)}function pi(e,t){return 0|e.charCodeAt(t)}function fi(e,t,n){return e.slice(t,n)}function mi(e){return e.length}function hi(e){return e.length}function gi(e,t){return t.push(e),e}function vi(e,t){return e.filter((function(e){return!ui(e,t)}))}var bi=1,yi=1,xi=0,Si=0,Ei=0,Ci="";function wi(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:bi,column:yi,length:a,return:"",siblings:l}}function Ri(e,t){return li(wi("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Li(e){for(;e.root;)e=Ri(e.root,{children:[e]});gi(e,e.siblings)}function ki(){return Ei=Si>0?pi(Ci,--Si):0,yi--,10===Ei&&(yi=1,bi--),Ei}function Ii(){return Ei=Si<xi?pi(Ci,Si++):0,yi++,10===Ei&&(yi=1,bi++),Ei}function Mi(){return pi(Ci,Si)}function _i(){return Si}function Pi(e,t){return fi(Ci,e,t)}function Ai(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Di(e){return si(Pi(Si-1,Ni(91===e?e+2:40===e?e+1:e)))}function Ti(e){for(;(Ei=Mi())&&Ei<33;)Ii();return Ai(e)>2||Ai(Ei)>3?"":" "}function Oi(e,t){for(;--t&&Ii()&&!(Ei<48||Ei>102||Ei>57&&Ei<65||Ei>70&&Ei<97););return Pi(e,_i()+(t<6&&32==Mi()&&32==Ii()))}function Ni(e){for(;Ii();)switch(Ei){case e:return Si;case 34:case 39:34!==e&&39!==e&&Ni(Ei);break;case 40:41===e&&Ni(e);break;case 92:Ii()}return Si}function qi(e,t){for(;Ii()&&e+Ei!==57&&(e+Ei!==84||47!==Mi()););return"/*"+Pi(t,Si-1)+"*"+ai(47===e?e:Ii())}function Fi(e){for(;!Ai(Mi());)Ii();return Pi(e,Si)}function zi(e){return function(e){return Ci="",e}(ji("",null,null,null,[""],e=function(e){return bi=yi=1,xi=mi(Ci=e),Si=0,[]}(e),0,[0],e))}function ji(e,t,n,r,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,v=1,b=0,y="",x=o,S=i,E=r,C=y;g;)switch(m=b,b=Ii()){case 40:if(108!=m&&58==pi(C,d-1)){-1!=di(C+=ci(Di(b),"&","&\f"),"&\f",ii(u?l[u-1]:0))&&(v=-1);break}case 34:case 39:case 91:C+=Di(b);break;case 9:case 10:case 13:case 32:C+=Ti(m);break;case 92:C+=Oi(_i()-1,7);continue;case 47:switch(Mi()){case 42:case 47:gi(Bi(qi(Ii(),_i()),t,n,s),s);break;default:C+="/"}break;case 123*h:l[u++]=mi(C)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+c:-1==v&&(C=ci(C,/\f/g,"")),f>0&&mi(C)-d&&gi(f>32?Hi(C+";",r,n,d-1,s):Hi(ci(C," ","")+";",r,n,d-2,s),s);break;case 59:C+=";";default:if(gi(E=$i(C,t,n,u,c,o,l,y,x=[],S=[],d,i),i),123===b)if(0===c)ji(C,t,E,E,x,i,d,l,S);else switch(99===p&&110===pi(C,3)?100:p){case 100:case 108:case 109:case 115:ji(e,E,E,r&&gi($i(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,r?x:S);break;default:ji(C,E,E,E,[""],S,0,l,S)}}u=c=f=0,h=v=1,y=C="",d=a;break;case 58:d=1+mi(C),f=m;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==ki())continue;switch(C+=ai(b),b*h){case 38:v=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(mi(C)-1)*v,v=1;break;case 64:45===Mi()&&(C+=Di(Ii())),p=Mi(),c=d=mi(y=C+=Fi(_i())),b++;break;case 45:45===m&&2==mi(C)&&(h=0)}}return i}function $i(e,t,n,r,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],m=hi(f),h=0,g=0,v=0;h<r;++h)for(var b=0,y=fi(e,p+1,p=ii(g=a[h])),x=e;b<m;++b)(x=si(g>0?f[b]+" "+y:ci(y,/&\f/g,f[b])))&&(s[v++]=x);return wi(e,t,n,0===o?ei:l,s,u,c,d)}function Bi(e,t,n,r){return wi(e,t,n,Zo,ai(Ei),fi(e,2,-2),0,r)}function Hi(e,t,n,r,o){return wi(e,t,n,ti,fi(e,0,r),fi(e,r+1,-1),r,o)}function Wi(e,t,n){switch(function(e,t){return 45^pi(e,0)?(((t<<2^pi(e,0))<<2^pi(e,1))<<2^pi(e,2))<<2^pi(e,3):0}(e,t)){case 5103:return Jo+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Jo+e+e;case 4789:return Qo+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Jo+e+Qo+e+Xo+e+e;case 5936:switch(pi(e,t+11)){case 114:return Jo+e+Xo+ci(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Jo+e+Xo+ci(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Jo+e+Xo+ci(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Jo+e+Xo+e+e;case 6165:return Jo+e+Xo+"flex-"+e+e;case 5187:return Jo+e+ci(e,/(\w+).+(:[^]+)/,Jo+"box-$1$2"+Xo+"flex-$1$2")+e;case 5443:return Jo+e+Xo+"flex-item-"+ci(e,/flex-|-self/g,"")+(ui(e,/flex-|baseline/)?"":Xo+"grid-row-"+ci(e,/flex-|-self/g,""))+e;case 4675:return Jo+e+Xo+"flex-line-pack"+ci(e,/align-content|flex-|-self/g,"")+e;case 5548:return Jo+e+Xo+ci(e,"shrink","negative")+e;case 5292:return Jo+e+Xo+ci(e,"basis","preferred-size")+e;case 6060:return Jo+"box-"+ci(e,"-grow","")+Jo+e+Xo+ci(e,"grow","positive")+e;case 4554:return Jo+ci(e,/([^-])(transform)/g,"$1"+Jo+"$2")+e;case 6187:return ci(ci(ci(e,/(zoom-|grab)/,Jo+"$1"),/(image-set)/,Jo+"$1"),e,"")+e;case 5495:case 3959:return ci(e,/(image-set\([^]*)/,Jo+"$1$`$1");case 4968:return ci(ci(e,/(.+:)(flex-)?(.*)/,Jo+"box-pack:$3"+Xo+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Jo+e+e;case 4200:if(!ui(e,/flex-|baseline/))return Xo+"grid-column-align"+fi(e,t)+e;break;case 2592:case 3360:return Xo+ci(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,ui(e.props,/grid-\w+-end/)}))?~di(e+(n=n[t].value),"span",0)?e:Xo+ci(e,"-start","")+e+Xo+"grid-row-span:"+(~di(n,"span",0)?ui(n,/\d+/):+ui(n,/\d+/)-+ui(e,/\d+/))+";":Xo+ci(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return ui(e.props,/grid-\w+-start/)}))?e:Xo+ci(ci(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return ci(e,/(.+)-inline(.+)/,Jo+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(mi(e)-1-t>6)switch(pi(e,t+1)){case 109:if(45!==pi(e,t+4))break;case 102:return ci(e,/(.+:)(.+)-([^]+)/,"$1"+Jo+"$2-$3$1"+Qo+(108==pi(e,t+3)?"$3":"$2-$3"))+e;case 115:return~di(e,"stretch",0)?Wi(ci(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return ci(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,i,a,l){return Xo+n+":"+r+l+(o?Xo+n+"-span:"+(i?a:+a-+r)+l:"")+e}));case 4949:if(121===pi(e,t+6))return ci(e,":",":"+Jo)+e;break;case 6444:switch(pi(e,45===pi(e,14)?18:11)){case 120:return ci(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Jo+(45===pi(e,14)?"inline-":"")+"box$3$1"+Jo+"$2$3$1"+Xo+"$2box$3")+e;case 100:return ci(e,":",":"+Xo)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return ci(e,"scroll-","scroll-snap-")+e}return e}function Gi(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Vi(e,t,n,r){switch(e.type){case oi:if(e.children.length)break;case ni:case ti:return e.return=e.return||e.value;case Zo:return"";case ri:return e.return=e.value+"{"+Gi(e.children,r)+"}";case ei:if(!mi(e.value=e.props.join(",")))return""}return mi(n=Gi(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ui(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ti:return void(e.return=Wi(e.value,e.length,n));case ri:return Gi([Ri(e,{value:ci(e.value,"@","@"+Jo)})],r);case ei:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(ui(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Li(Ri(e,{props:[ci(t,/:(read-\w+)/,":"+Qo+"$1")]})),Li(Ri(e,{props:[t]})),li(e,{props:vi(n,r)});break;case"::placeholder":Li(Ri(e,{props:[ci(t,/:(plac\w+)/,":"+Jo+"input-$1")]})),Li(Ri(e,{props:[ci(t,/:(plac\w+)/,":"+Qo+"$1")]})),Li(Ri(e,{props:[ci(t,/:(plac\w+)/,Xo+"input-$1")]})),Li(Ri(e,{props:[t]})),li(e,{props:vi(n,r)})}return""}))}}var Yi={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ki="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Xi="active",Qi="data-styled-version",Ji="6.1.12",Zi="/*!sc*/\n",ea="undefined"!=typeof window&&"HTMLElement"in window,ta=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY)),na={},ra=Object.freeze([]),oa=Object.freeze({});function ia(e,t,n){return void 0===n&&(n=oa),e.theme!==n.theme&&e.theme||t||n.theme}var aa=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),la=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,sa=/(^-|-$)/g;function ua(e){return e.replace(la,"-").replace(sa,"")}var ca=/(a)(d)/gi,da=52,pa=function(e){return String.fromCharCode(e+(e>25?39:97))};function fa(e){var t,n="";for(t=Math.abs(e);t>da;t=t/da|0)n=pa(t%da)+n;return(pa(t%da)+n).replace(ca,"$1-$2")}var ma,ha=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},ga=function(e){return ha(5381,e)};function va(e){return fa(ga(e)>>>0)}function ba(e){return"string"==typeof e&&!0}var ya="function"==typeof Symbol&&Symbol.for,xa=ya?Symbol.for("react.memo"):60115,Sa=ya?Symbol.for("react.forward_ref"):60112,Ea={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ca={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},wa={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ra=((ma={})[Sa]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ma[xa]=wa,ma);function La(e){return("type"in(t=e)&&t.type.$$typeof)===xa?wa:"$$typeof"in e?Ra[e.$$typeof]:Ea;var t}var ka=Object.defineProperty,Ia=Object.getOwnPropertyNames,Ma=Object.getOwnPropertySymbols,_a=Object.getOwnPropertyDescriptor,Pa=Object.getPrototypeOf,Aa=Object.prototype;function Da(e,t,n){if("string"!=typeof t){if(Aa){var r=Pa(t);r&&r!==Aa&&Da(e,r,n)}var o=Ia(t);Ma&&(o=o.concat(Ma(t)));for(var i=La(e),a=La(t),l=0;l<o.length;++l){var s=o[l];if(!(s in Ca||n&&n[s]||a&&s in a||i&&s in i)){var u=_a(t,s);try{ka(e,s,u)}catch(e){}}}}return e}function Ta(e){return"function"==typeof e}function Oa(e){return"object"==typeof e&&"styledComponentId"in e}function Na(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function qa(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function Fa(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function za(e,t,n){if(void 0===n&&(n=!1),!n&&!Fa(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=za(e[r],t[r]);else if(Fa(t))for(var r in t)e[r]=za(e[r],t[r]);return e}function ja(e,t){Object.defineProperty(e,"toString",{value:t})}function $a(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var Ba=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw $a(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=(i=0,t.length);i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(Zi);return t},e}(),Ha=new Map,Wa=new Map,Ga=1,Va=function(e){if(Ha.has(e))return Ha.get(e);for(;Wa.has(Ga);)Ga++;var t=Ga++;return Ha.set(e,t),Wa.set(t,e),t},Ua=function(e,t){Ga=t+1,Ha.set(e,t),Wa.set(t,e)},Ya="style[".concat(Ki,"][").concat(Qi,'="').concat(Ji,'"]'),Ka=new RegExp("^".concat(Ki,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Xa=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},Qa=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(Zi),o=[],i=0,a=r.length;i<a;i++){var l=r[i].trim();if(l){var s=l.match(Ka);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(Ua(c,u),Xa(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}},Ja=function(e){for(var t=document.querySelectorAll(Ya),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(Ki)!==Xi&&(Qa(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var Za=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Ki,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(Ki,Xi),r.setAttribute(Qi,Ji);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},el=function(){function e(e){this.element=Za(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw $a(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),tl=function(){function e(e){this.element=Za(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),nl=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),rl=ea,ol={isServer:!ea,useCSSOMInjection:!ta},il=function(){function e(e,t,n){void 0===e&&(e=oa),void 0===t&&(t={});var r=this;this.options=Yo(Yo({},ol),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&ea&&rl&&(rl=!1,Ja(this)),ja(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return Wa.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(n);if(void 0===i||!i.size||0===a.length)return"continue";var l="".concat(Ki,".g").concat(n,'[id="').concat(o,'"]'),s="";void 0!==i&&i.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),r+="".concat(a).concat(l,'{content:"').concat(s,'"}').concat(Zi)},i=0;i<n;i++)o(i);return r}(r)}))}return e.registerId=function(e){return Va(e)},e.prototype.rehydrate=function(){!this.server&&ea&&Ja(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(Yo(Yo({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new nl(n):t?new el(n):new tl(n)}(this.options),new Ba(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(Va(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Va(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Va(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),al=/&/g,ll=/^\s*\/\/.*$/gm;function sl(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=sl(e.children,t)),e}))}var ul=new il,cl=function(e){var t,n,r,o=void 0===e?oa:e,i=o.options,a=void 0===i?oa:i,l=o.plugins,s=void 0===l?ra:l,u=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},c=s.slice();c.push((function(e){e.type===ei&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(al,n).replace(r,u))})),a.prefix&&c.push(Ui),c.push(Vi);var d=function(e,o,i,l){void 0===o&&(o=""),void 0===i&&(i=""),void 0===l&&(l="&"),t=l,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var s=e.replace(ll,""),u=zi(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=sl(u,a.namespace));var d,p=[];return Gi(u,function(e){var t=hi(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}(c.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return d.hash=s.length?s.reduce((function(e,t){return t.name||$a(15),ha(e,t.name)}),5381).toString():"",d}(),dl=lo.createContext({shouldForwardProp:void 0,styleSheet:ul,stylis:cl});function pl(){return ao.useContext(dl)}dl.Consumer;var fl=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=cl);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,ja(this,(function(){throw $a(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=cl),this.name+e.hash},e}(),ml=function(e){return e>="A"&&e<="Z"};function hl(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;ml(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var gl=function(e){return null==e||!1===e||""===e},vl=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!gl(i)&&(Array.isArray(i)&&i.isCss||Ta(i)?r.push("".concat(hl(o),":"),i,";"):Fa(i)?r.push.apply(r,Ko(Ko(["".concat(o," {")],vl(i),!1),["}"],!1)):r.push("".concat(hl(o),": ").concat((t=o,null==(n=i)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in Yi||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function bl(e,t,n,r){return gl(e)?[]:Oa(e)?[".".concat(e.styledComponentId)]:Ta(e)?!Ta(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:bl(e(t),t,n,r):e instanceof fl?n?(e.inject(n,r),[e.getName(r)]):[e]:Fa(e)?vl(e):Array.isArray(e)?Array.prototype.concat.apply(ra,e.map((function(e){return bl(e,t,n,r)}))):[e.toString()];var o}function yl(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Ta(n)&&!Oa(n))return!1}return!0}var xl=ga(Ji),Sl=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&yl(e),this.componentId=t,this.baseHash=ha(xl,t),this.baseStyle=n,il.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=Na(r,this.staticRulesId);else{var o=qa(bl(this.rules,e,t,n)),i=fa(ha(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=n(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}r=Na(r,i),this.staticRulesId=i}else{for(var l=ha(this.baseHash,n.hash),s="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)s+=c;else if(c){var d=qa(bl(c,e,t,n));l=ha(l,d+u),s+=d}}if(s){var p=fa(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,n(s,".".concat(p),void 0,this.componentId)),r=Na(r,p)}}return r},e}(),El=lo.createContext(void 0);El.Consumer;var Cl={};new Set;function wl(e,t,n){var r=Oa(e),o=e,i=!ba(e),a=t.attrs,l=void 0===a?ra:a,s=t.componentId,u=void 0===s?function(e,t){var n="string"!=typeof e?"sc":ua(e);Cl[n]=(Cl[n]||0)+1;var r="".concat(n,"-").concat(va(Ji+n+Cl[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):s,c=t.displayName,d=void 0===c?function(e){return ba(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(ua(t.displayName),"-").concat(t.componentId):t.componentId||u,f=r&&o.attrs?o.attrs.concat(l).filter(Boolean):l,m=t.shouldForwardProp;if(r&&o.shouldForwardProp){var h=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;m=function(e,t){return h(e,t)&&g(e,t)}}else m=h}var v=new Sl(n,p,r?o.componentStyle:void 0);function b(e,t){return function(e,t,n){var r=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,l=e.styledComponentId,s=e.target,u=lo.useContext(El),c=pl(),d=e.shouldForwardProp||c.shouldForwardProp,p=ia(t,u,i)||oa,f=function(e,t,n){for(var r,o=Yo(Yo({},t),{className:void 0,theme:n}),i=0;i<e.length;i+=1){var a=Ta(r=e[i])?r(o):r;for(var l in a)o[l]="className"===l?Na(o[l],a[l]):"style"===l?Yo(Yo({},o[l]),a[l]):a[l]}return t.className&&(o.className=Na(o.className,t.className)),o}(r,t,p),m=f.as||s,h={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?h.as=f.forwardedAs:d&&!d(g,m)||(h[g]=f[g]));var v=function(e,t){var n=pl();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(o,f),b=Na(a,l);return v&&(b+=" "+v),f.className&&(b+=" "+f.className),h[ba(m)&&!aa.has(m)?"class":"className"]=b,h.ref=n,ao.createElement(m,h)}(y,e,t)}b.displayName=d;var y=lo.forwardRef(b);return y.attrs=f,y.componentStyle=v,y.displayName=d,y.shouldForwardProp=m,y.foldedComponentIds=r?Na(o.foldedComponentIds,o.styledComponentId):"",y.styledComponentId=p,y.target=r?o.target:e,Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=r?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)za(e,o[r],!0);return e}({},o.defaultProps,e):e}}),ja(y,(function(){return".".concat(y.styledComponentId)})),i&&Da(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function Rl(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var Ll=function(e){return Object.assign(e,{isCss:!0})};function kl(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Ta(e)||Fa(e))return Ll(bl(Rl(ra,Ko([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?bl(r):Ll(bl(Rl(r,t)))}function Il(e,t,n){if(void 0===n&&(n=oa),!t)throw $a(1,t);var r=function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,n,kl.apply(void 0,Ko([r],o,!1)))};return r.attrs=function(r){return Il(e,t,Yo(Yo({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return Il(e,t,Yo(Yo({},n),r))},r}var Ml=function(e){return Il(wl,e)},_l=Ml;aa.forEach((function(e){_l[e]=Ml(e)}));var Pl=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=yl(e),il.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(qa(bl(this.rules,t,n,r)),""),i=this.componentId+e;n.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&il.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function Al(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=qa(kl.apply(void 0,Ko([e],t,!1))),o=va(r);return new fl(o,r)}function Dl(e){const{injectFirst:t,children:n}=e;if(t&&"undefined"!=typeof window){const e=document.head;if(!e.querySelector('[data-styled="active"]')){const t=document.createElement("style");t.setAttribute("data-styled","active"),e.insertBefore(t,e.firstChild)}}return n}Dl.propTypes={children:br.node,injectFirst:br.bool};const Tl=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=kl.apply(void 0,Ko([e],t,!1)),o="sc-global-".concat(va(JSON.stringify(r))),i=new Pl(r,o),a=function(e){var t=pl(),n=lo.useContext(El),r=lo.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&function(e,t,n,r,o){if(i.isStatic)i.renderStyles(e,na,n,o);else{var l=Yo(Yo({},t),{theme:ia(t,r,a.defaultProps)});i.renderStyles(e,l,n,o)}}(r,e,t.styleSheet,n,t.stylis),null};return lo.memo(a)}((e=>{const{styles:t,defaultTheme:n={}}=e;return"function"==typeof t?t(null==(r=e.theme)||0===Object.keys(r).length?n:e.theme):t;var r}));var Ol=Tl;
11
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),v=p-g,b=e.substring(v,v+1),y=v+("."===b||","===b?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+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],s=c[1]&&c[c.length-1].length){for(h="",v=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-v+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),m+(n?"-":"")+r+x}},Sn({exports:{}});var An=["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"],Dn=["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 Tn(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?Dn:An}const On=(e,t=!1)=>{return{value:e,label:t?(n=e,n.charAt(0).toUpperCase()+n.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var n},Nn=({ref:e,themeAccessor:t,translator:n,flags:r})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,n,r)=>{var o,i;const a=null!==(o=t.fontFamily)&&void 0!==o?o:"Source Sans Pro, sans-serif",l=null!==(i=t.fontFamilies)&&void 0!==i?i:[],s=Array.from(new Set([e,a,...l])),u=[{value:"ThemeHeader",label:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0},...s.sort().map((e=>On(e,!0)))],c=[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0},...Tn(r).filter((e=>!s.includes(e))).map((e=>On(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,n,r)},defaultValue:(e,n,r)=>t(r.theme.current())}),qn=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],Fn=({ref:e,themeAccessor:t,translator:n})=>({component:"dropdown",ref:e,options:(e,r,o)=>{const i=o.theme.current();return((e,t,n)=>{var r;const o=t.fontSize,i=null!==(r=t.fontSizes)&&void 0!==r?r:[],a=Array.from(new Set([e,o,...i])),l=[{value:"ThemeHeader",label:n.get("properties.themeFontSizes"),metaText:n.get("properties.theme"),groupHeader:!0},...a.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>On(e,!1)))],s=[{value:"DefaultHeader",label:n.get("properties.allFontSizes"),metaText:n.get("properties.default"),groupHeader:!0},...qn.filter((e=>!a.includes(e))).map((e=>On(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,n)},defaultValue:(e,n,r)=>t(r.theme.current())}),zn=({section:e,defaultFontStyle:t,translator:n,flags:r,getThemeValue:o,translation:i})=>({component:"panel-section",translation:null!=i?i:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:Nn({ref:`${e}.fontFamily`,themeAccessor:t=>{var n;return null!==(n=o(t,e,"fontFamily"))&&void 0!==n?n:t.fontFamily},translator:n,flags:r}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:Fn({ref:`${e}.fontSize`,themeAccessor:t=>{var n;return null!==(n=o(t,e,"fontSize"))&&void 0!==n?n:t.fontSize},translator:n}),fontColor:bt(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=o(t,e,"color"))&&void 0!==n?n:t.color}))}},background:bt(`${e}.background`,"properties.background",(t=>{var n;return null!==(n=o(t,e,"backgroundColor"))&&void 0!==n?n:"transparent"}))}}}}),jn=({section:e,defaultFontStyle:t,fallbackBackground:n,getThemeValue:r})=>({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:null!=t?t:[]},fontColor:bt(`${e}.fontColor`,void 0,(t=>{var n;return null!==(n=r(t,e,"color"))&&void 0!==n?n:t.color}))}},background:bt(`${e}.background`,"properties.background",(t=>{var o,i;return null!==(o=null!==(i=r(t,e,"backgroundColor"))&&void 0!==i?i:n)&&void 0!==o?o:"transparent"}))}}}}),$n=(e,t)=>({component:"dropdown",ref:e,translation:t,options:[...Array(10).keys()].map((e=>({value:e+1,translation:e+1}))),defaultValue:1}),Bn="12px",Hn="Source Sans Pro, sans-serif",Wn="600",Gn=15e3,Vn=4/3,Un=1;var Yn,Kn;!function(e){e.Transparent="transparent",e.FontPrimary="#404040",e.FontSecondary="#737373",e.DividerDark="#595959",e.DividerLight="#D9D9D9",e.NullValueBackground="#F2F2F2"}(Yn||(Yn={})),function(e){e.Solid="solid",e.None="none"}(Kn||(Kn={}));const Xn={display:"flex",justifyContent:"center",alignItems:"center"},Qn={borderStyle:"solid"},Jn={boxSizing:"border-box",padding:"4px 8px",userSelect:"none",WebkitUserSelect:"none"},Zn={lineHeight:Vn,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},er=e=>({whiteSpace:"unset",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:e>1?"break-word":"break-all"}),tr=(e,t)=>e>0?`${e}px ${Kn.Solid} ${t}`:Kn.None,nr=(e,t,n,r)=>{const o=Number(!t||(null==r?void 0:r.right)),i=Number(!e||(null==r?void 0:r.bottom));return{borderRight:tr(o,n),borderBottom:tr(i,n),borderLeft:Kn.None,borderTop:Kn.None}},rr=(e,t,n,r,o,i)=>{const a=nr(t,r,o,i);return e.isLeftDimension||(e.isLastDimension&&!t&&(a.borderBottom=tr(2,o)),n||(a.borderLeft=tr(1,o))),a},or=({bottomDivider:e,rightDivider:t,borderColor:n})=>{const r={};return e&&(r.borderBottom=tr(1,n)),t&&(r.borderRight=tr(1,n)),r},ir=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{lineClamp:$n("grid.lineClamp","ThemeStyleEditor.style.rowHeight"),columnLineClamp:e.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?$n("grid.columnLineClamp","ThemeStyleEditor.style.columnHeight"):void 0,border:bt("grid.border","properties.border",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n?void 0:n.borderColor)&&void 0!==t?t:Yn.DividerLight})),divider:bt("grid.divider","properties.pivot.divider",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n||null===(n=n.divider)||void 0===n?void 0:n.borderColor)&&void 0!==t?t:Yn.DividerDark})),background:bt("grid.background","properties.background",(e=>{var t,n;return null!==(t=null===(n=e.object)||void 0===n||null===(n=n.pivotTableV2)||void 0===n||null===(n=n.grid)||void 0===n?void 0:n.backgroundColor)&&void 0!==t?t:Yn.Transparent}))}}}}),ar=(e,t,n)=>{var r,o,i,a,l,s;switch(t){case"header":return null==e||null===(r=e.object)||void 0===r||null===(r=r.pivotTableV2)||void 0===r||null===(r=r.dimension)||void 0===r||null===(r=r.label)||void 0===r||null===(r=r.name)||void 0===r?void 0:r[n];case"dimensionValues":return null==e||null===(o=e.object)||void 0===o||null===(o=o.pivotTableV2)||void 0===o||null===(o=o.dimension)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o[n];case"measureLabels":return null==e||null===(i=e.object)||void 0===i||null===(i=i.pivotTableV2)||void 0===i||null===(i=i.measure)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.name)||void 0===i?void 0:i[n];case"measureValues":return null==e||null===(a=e.object)||void 0===a||null===(a=a.pivotTableV2)||void 0===a||null===(a=a.measure)||void 0===a||null===(a=a.label)||void 0===a||null===(a=a.value)||void 0===a?void 0:a[n];case"totalValues":return null==e||null===(l=e.object)||void 0===l||null===(l=l.pivotTableV2)||void 0===l||null===(l=l.total)||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.value)||void 0===l?void 0:l[n];case"nullValues":return null==e||null===(s=e.object)||void 0===s||null===(s=s.pivotTableV2)||void 0===s||null===(s=s.null)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s[n];default:return}},lr=(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:zn({section:"header",defaultFontStyle:["bold"],translator:e,flags:t,getThemeValue:ar}),dimensionValueSection:zn({section:"dimensionValues",translator:e,flags:t,getThemeValue:ar}),measureValueSection:zn({section:"measureValues",translator:e,flags:t,getThemeValue:ar}),measureLabelSection:jn({section:"measureLabels",getThemeValue:ar}),totalValuesSection:jn({section:"totalValues",defaultFontStyle:["bold"],getThemeValue:ar}),nullValuesSection:jn({section:"nullValues",fallbackBackground:Yn.NullValueBackground,getThemeValue:ar}),gridSection:ir(t)}}]}),sr=e=>({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},...e.isEnabled("CLIENT_IM_5975_INDENT_MODE")&&{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:rt.Auto,translation:"Common.Auto"},{value:rt.Pixels,translation:"Object.Table.Column.Pixels"},{value:rt.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:rt.Auto,show:e=>e.qHyperCubeDef.qIndentMode},sizePixels:{ref:"qHyperCubeDef.indentModeColumnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:nt.PixelsDefault,show:e=>{var t;const n=e.qHyperCubeDef;return n.qIndentMode&&(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.type)===rt.Pixels},change:e=>{var t;const n=e.qHyperCubeDef;void 0!==(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.pixels)&&(n.indentModeColumnWidth.pixels=Math.max(nt.PixelsMin,Math.min(nt.PixelsMax,n.indentModeColumnWidth.pixels)))}},sizePercentage:{ref:"qHyperCubeDef.indentModeColumnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:nt.PercentageDefault,show:e=>{var t;const n=e.qHyperCubeDef;return n.qIndentMode&&(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.type)===rt.Percentage},change:e=>{var t;const n=e.qHyperCubeDef;void 0!==(null===(t=n.indentModeColumnWidth)||void 0===t?void 0:t.percentage)&&(n.indentModeColumnWidth.percentage=Math.max(nt.PercentageMin,Math.min(nt.PercentageMaxInIndentMode,n.indentModeColumnWidth.percentage)))}}},showTotalsAbove:{ref:"qHyperCubeDef.qShowTotalsAbove",type:"boolean",translation:"properties.pivot.showTotalsAbove",defaultValue:!0,show(t){var n;const{qIndentMode:r}=t.qHyperCubeDef;return(!r||r&&!e.isEnabled("CLIENT_IM_5975_INDENT_MODE"))&&(null===(n=t.qHyperCubeDef)||void 0===n||null===(n=n.qDimensions)||void 0===n?void 0:n.some((e=>{var t;return"TOTAL_EXPR"===(null===(t=e.qOtherTotalSpec)||void 0===t?void 0:t.qTotalMode)})))}},resetProperties:{type:"object",component:"button",translation:"properties.pivot.resetExpansionButton",disabled:e=>e.qHyperCubeDef.qAlwaysFullyExpanded,action(e,t,n,r){e.qHyperCubeDef.qExpansionState=[],r.$emit("saveProperties",e)}}}}),ur=(e,t)=>({uses:"settings",items:{presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:[lr(e,t),sr(t)]}}}),cr="auto",dr={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=>{var t;return!(null==e||null===(t=e.qHyperCubeDef)||void 0===t||!t.qSortbyYValue)}}}},defaultSorting:{uses:"sorting",items:{dimensions:{showPriority:!1,allowMove:!1},measures:{included:!1}}},searchSorting:{ref:"search.sorting",type:"string",component:"dropdown",defaultValue:cr,translation:"Object.Table.SortingInSearch",options:[{value:cr,translation:"Common.Auto"},{value:"inherit",translation:"Object.Table.SortingInSearch.InheritFromDimension"}]}}};function pr(e){const{translator:t,flags:n}=e;return{type:"items",component:"accordion",items:{data:vt(e),sorting:dr,addons:Ne,settings:ur(t,n)}}}function fr(e){return{support:{cssScaling:e.flags.isEnabled("CLIENT_IM5878_PIVOT_SNAPSHOT"),snapshot:e.flags.isEnabled("CLIENT_IM5878_PIVOT_SNAPSHOT"),export:e.flags.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD"),sharing:!1,exportData:!0,viewData:!0},usePropertyHandler:"pivot-data",definition:pr(e),importProperties:Te(e),exportProperties:Oe}}function mr(){return mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mr.apply(null,arguments)}var hr={exports:{}};function gr(){}function vr(){}vr.resetWarningCache=gr;hr.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:vr,resetWarningCache:gr};return n.PropTypes=n,n}();var br=n(hr.exports);function yr(e){if(e.type)return e;if("#"===e.charAt(0))return yr(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(function(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function xr(e,t){return e=yr(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}(e)}function Sr(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function Er(e,t){return Er=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Er(e,t)}function Cr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Er(e,t)}var wr={exports:{}},Rr={},Lr=Symbol.for("react.element"),kr=Symbol.for("react.portal"),Ir=Symbol.for("react.fragment"),Mr=Symbol.for("react.strict_mode"),_r=Symbol.for("react.profiler"),Pr=Symbol.for("react.provider"),Ar=Symbol.for("react.context"),Dr=Symbol.for("react.forward_ref"),Tr=Symbol.for("react.suspense"),Or=Symbol.for("react.memo"),Nr=Symbol.for("react.lazy"),qr=Symbol.iterator;var Fr={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},zr=Object.assign,jr={};function $r(e,t,n){this.props=e,this.context=t,this.refs=jr,this.updater=n||Fr}function Br(){}function Hr(e,t,n){this.props=e,this.context=t,this.refs=jr,this.updater=n||Fr}$r.prototype.isReactComponent={},$r.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},$r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},Br.prototype=$r.prototype;var Wr=Hr.prototype=new Br;Wr.constructor=Hr,zr(Wr,$r.prototype),Wr.isPureReactComponent=!0;var Gr=Array.isArray,Vr=Object.prototype.hasOwnProperty,Ur={current:null},Yr={key:!0,ref:!0,__self:!0,__source:!0};function Kr(e,t,n){var r,o={},i=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)Vr.call(t,r)&&!Yr.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:Lr,type:e,key:i,ref:a,props:o,_owner:Ur.current}}function Xr(e){return"object"==typeof e&&null!==e&&e.$$typeof===Lr}var Qr=/\/+/g;function Jr(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function Zr(e,t,n,r,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a=!1;if(null===e)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Lr:case kr:a=!0}}if(a)return o=o(a=e),e=""===r?"."+Jr(a,0):r,Gr(o)?(n="",null!=e&&(n=e.replace(Qr,"$&/")+"/"),Zr(o,t,n,"",(function(e){return e}))):null!=o&&(Xr(o)&&(o=function(e,t){return{$$typeof:Lr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(Qr,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=""===r?".":r+":",Gr(e))for(var l=0;l<e.length;l++){var s=r+Jr(i=e[l],l);a+=Zr(i,t,n,s,o)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=qr&&e[qr]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),l=0;!(i=e.next()).done;)a+=Zr(i=i.value,t,n,s=r+Jr(i,l++),o);else if("object"===i)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function eo(e,t,n){if(null==e)return e;var r=[],o=0;return Zr(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function to(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var no={current:null},ro={transition:null},oo={ReactCurrentDispatcher:no,ReactCurrentBatchConfig:ro,ReactCurrentOwner:Ur};function io(){throw Error("act(...) is not supported in production builds of React.")}Rr.Children={map:eo,forEach:function(e,t,n){eo(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return eo(e,(function(){t++})),t},toArray:function(e){return eo(e,(function(e){return e}))||[]},only:function(e){if(!Xr(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},Rr.Component=$r,Rr.Fragment=Ir,Rr.Profiler=_r,Rr.PureComponent=Hr,Rr.StrictMode=Mr,Rr.Suspense=Tr,Rr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oo,Rr.act=io,Rr.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=zr({},e.props),o=e.key,i=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,a=Ur.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)Vr.call(t,s)&&!Yr.hasOwnProperty(s)&&(r[s]=void 0===t[s]&&void 0!==l?l[s]:t[s])}var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){l=Array(s);for(var u=0;u<s;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:Lr,type:e.type,key:o,ref:i,props:r,_owner:a}},Rr.createContext=function(e){return(e={$$typeof:Ar,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:Pr,_context:e},e.Consumer=e},Rr.createElement=Kr,Rr.createFactory=function(e){var t=Kr.bind(null,e);return t.type=e,t},Rr.createRef=function(){return{current:null}},Rr.forwardRef=function(e){return{$$typeof:Dr,render:e}},Rr.isValidElement=Xr,Rr.lazy=function(e){return{$$typeof:Nr,_payload:{_status:-1,_result:e},_init:to}},Rr.memo=function(e,t){return{$$typeof:Or,type:e,compare:void 0===t?null:t}},Rr.startTransition=function(e){var t=ro.transition;ro.transition={};try{e()}finally{ro.transition=t}},Rr.unstable_act=io,Rr.useCallback=function(e,t){return no.current.useCallback(e,t)},Rr.useContext=function(e){return no.current.useContext(e)},Rr.useDebugValue=function(){},Rr.useDeferredValue=function(e){return no.current.useDeferredValue(e)},Rr.useEffect=function(e,t){return no.current.useEffect(e,t)},Rr.useId=function(){return no.current.useId()},Rr.useImperativeHandle=function(e,t,n){return no.current.useImperativeHandle(e,t,n)},Rr.useInsertionEffect=function(e,t){return no.current.useInsertionEffect(e,t)},Rr.useLayoutEffect=function(e,t){return no.current.useLayoutEffect(e,t)},Rr.useMemo=function(e,t){return no.current.useMemo(e,t)},Rr.useReducer=function(e,t,n){return no.current.useReducer(e,t,n)},Rr.useRef=function(e){return no.current.useRef(e)},Rr.useState=function(e){return no.current.useState(e)},Rr.useSyncExternalStore=function(e,t,n){return no.current.useSyncExternalStore(e,t,n)},Rr.useTransition=function(){return no.current.useTransition()},Rr.version="18.3.1",wr.exports=Rr;var ao=wr.exports,lo=n(ao),so=t({__proto__:null,default:lo},[ao]);const uo={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"},co={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN:"#00873D",GREEN_PALE:"#0AAF54",GREEN_DARK:"#0D6932",BLUE:"#3F8AB3",BLUE_PALE:"#469DCD",BLUE_DARK:"#2F607B",RED:"#DC373F",RED_PALE:"#F05551",RED_DARK:"#97322F",ORANGE:"#EF960F",ORANGE_PALE:"#FFC629",ORANGE_DARK:"#A4681C",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...uo,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_25:"rgba(0, 0, 0, 0.25)",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_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#177FE6",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},po=12,fo=14,mo=16,ho=24,go=3,vo=300,bo=400,yo=600,xo=700,So={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};xr(co.GREYSCALE_0,.05),xr(co.GREEN_PALE,.5),xr(co.BLUE_PALE,.5),xr(co.GREEN_PALE,.5),xr(co.BLUE_PALE,.5),xr(co.GREEN_PALE,.5),xr(co.BLUE_PALE,.5);var Eo;function Co(){return Co=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Co.apply(this,arguments)}xr(co.GREEN_PALE,.5),xr(co.BLUE_PALE,.5),xr(co.GREEN_PALE,.5),xr(co.BLUE_PALE,.5);var wo,Ro=function(e){return ao.createElement("svg",Co({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),Eo||(Eo=ao.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function Lo(){return Lo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lo.apply(this,arguments)}var ko=function(e){return ao.createElement("svg",Lo({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),wo||(wo=ao.createElement("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.345z"})))};function Io({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return lo.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var Mo=(e={})=>lo.createElement(Io,{...e},lo.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},lo.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),lo.createElement("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"}))),_o=(e={})=>lo.createElement(Io,{...e},lo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},lo.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},lo.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),lo.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),Po=(e={})=>lo.createElement(Io,{fontSize:"medium",...e},lo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},lo.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},lo.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),Ao=(e={})=>lo.createElement(Io,{fontSize:"medium",...e},lo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},lo.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),lo.createElement("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"}))),Do=({className:e})=>lo.createElement(Io,{fontSize:"small",className:e},lo.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},lo.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},lo.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},lo.createElement("g",{transform:"translate(4.324187, 1.300372)"},lo.createElement("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"}),lo.createElement("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"}))))));var To={black:"#000",white:"#fff"};var Oo={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"};var No={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var qo={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"};var Fo={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var zo={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"};var jo={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"};var $o={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Bo(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var Ho="$$material";function Wo(){return Wo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wo.apply(this,arguments)}function Go(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Vo(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var Uo=Object.freeze({__proto__:null,default:Vo}),Yo=function(){return Yo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Yo.apply(this,arguments)};function Ko(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var Xo="-ms-",Qo="-moz-",Jo="-webkit-",Zo="comm",ei="rule",ti="decl",ni="@import",ri="@keyframes",oi="@layer",ii=Math.abs,ai=String.fromCharCode,li=Object.assign;function si(e){return e.trim()}function ui(e,t){return(e=t.exec(e))?e[0]:e}function ci(e,t,n){return e.replace(t,n)}function di(e,t,n){return e.indexOf(t,n)}function pi(e,t){return 0|e.charCodeAt(t)}function fi(e,t,n){return e.slice(t,n)}function mi(e){return e.length}function hi(e){return e.length}function gi(e,t){return t.push(e),e}function vi(e,t){return e.filter((function(e){return!ui(e,t)}))}var bi=1,yi=1,xi=0,Si=0,Ei=0,Ci="";function wi(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:bi,column:yi,length:a,return:"",siblings:l}}function Ri(e,t){return li(wi("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Li(e){for(;e.root;)e=Ri(e.root,{children:[e]});gi(e,e.siblings)}function ki(){return Ei=Si>0?pi(Ci,--Si):0,yi--,10===Ei&&(yi=1,bi--),Ei}function Ii(){return Ei=Si<xi?pi(Ci,Si++):0,yi++,10===Ei&&(yi=1,bi++),Ei}function Mi(){return pi(Ci,Si)}function _i(){return Si}function Pi(e,t){return fi(Ci,e,t)}function Ai(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Di(e){return si(Pi(Si-1,Ni(91===e?e+2:40===e?e+1:e)))}function Ti(e){for(;(Ei=Mi())&&Ei<33;)Ii();return Ai(e)>2||Ai(Ei)>3?"":" "}function Oi(e,t){for(;--t&&Ii()&&!(Ei<48||Ei>102||Ei>57&&Ei<65||Ei>70&&Ei<97););return Pi(e,_i()+(t<6&&32==Mi()&&32==Ii()))}function Ni(e){for(;Ii();)switch(Ei){case e:return Si;case 34:case 39:34!==e&&39!==e&&Ni(Ei);break;case 40:41===e&&Ni(e);break;case 92:Ii()}return Si}function qi(e,t){for(;Ii()&&e+Ei!==57&&(e+Ei!==84||47!==Mi()););return"/*"+Pi(t,Si-1)+"*"+ai(47===e?e:Ii())}function Fi(e){for(;!Ai(Mi());)Ii();return Pi(e,Si)}function zi(e){return function(e){return Ci="",e}(ji("",null,null,null,[""],e=function(e){return bi=yi=1,xi=mi(Ci=e),Si=0,[]}(e),0,[0],e))}function ji(e,t,n,r,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,v=1,b=0,y="",x=o,S=i,E=r,C=y;g;)switch(m=b,b=Ii()){case 40:if(108!=m&&58==pi(C,d-1)){-1!=di(C+=ci(Di(b),"&","&\f"),"&\f",ii(u?l[u-1]:0))&&(v=-1);break}case 34:case 39:case 91:C+=Di(b);break;case 9:case 10:case 13:case 32:C+=Ti(m);break;case 92:C+=Oi(_i()-1,7);continue;case 47:switch(Mi()){case 42:case 47:gi(Bi(qi(Ii(),_i()),t,n,s),s);break;default:C+="/"}break;case 123*h:l[u++]=mi(C)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+c:-1==v&&(C=ci(C,/\f/g,"")),f>0&&mi(C)-d&&gi(f>32?Hi(C+";",r,n,d-1,s):Hi(ci(C," ","")+";",r,n,d-2,s),s);break;case 59:C+=";";default:if(gi(E=$i(C,t,n,u,c,o,l,y,x=[],S=[],d,i),i),123===b)if(0===c)ji(C,t,E,E,x,i,d,l,S);else switch(99===p&&110===pi(C,3)?100:p){case 100:case 108:case 109:case 115:ji(e,E,E,r&&gi($i(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,r?x:S);break;default:ji(C,E,E,E,[""],S,0,l,S)}}u=c=f=0,h=v=1,y=C="",d=a;break;case 58:d=1+mi(C),f=m;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==ki())continue;switch(C+=ai(b),b*h){case 38:v=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(mi(C)-1)*v,v=1;break;case 64:45===Mi()&&(C+=Di(Ii())),p=Mi(),c=d=mi(y=C+=Fi(_i())),b++;break;case 45:45===m&&2==mi(C)&&(h=0)}}return i}function $i(e,t,n,r,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],m=hi(f),h=0,g=0,v=0;h<r;++h)for(var b=0,y=fi(e,p+1,p=ii(g=a[h])),x=e;b<m;++b)(x=si(g>0?f[b]+" "+y:ci(y,/&\f/g,f[b])))&&(s[v++]=x);return wi(e,t,n,0===o?ei:l,s,u,c,d)}function Bi(e,t,n,r){return wi(e,t,n,Zo,ai(Ei),fi(e,2,-2),0,r)}function Hi(e,t,n,r,o){return wi(e,t,n,ti,fi(e,0,r),fi(e,r+1,-1),r,o)}function Wi(e,t,n){switch(function(e,t){return 45^pi(e,0)?(((t<<2^pi(e,0))<<2^pi(e,1))<<2^pi(e,2))<<2^pi(e,3):0}(e,t)){case 5103:return Jo+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Jo+e+e;case 4789:return Qo+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Jo+e+Qo+e+Xo+e+e;case 5936:switch(pi(e,t+11)){case 114:return Jo+e+Xo+ci(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Jo+e+Xo+ci(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Jo+e+Xo+ci(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Jo+e+Xo+e+e;case 6165:return Jo+e+Xo+"flex-"+e+e;case 5187:return Jo+e+ci(e,/(\w+).+(:[^]+)/,Jo+"box-$1$2"+Xo+"flex-$1$2")+e;case 5443:return Jo+e+Xo+"flex-item-"+ci(e,/flex-|-self/g,"")+(ui(e,/flex-|baseline/)?"":Xo+"grid-row-"+ci(e,/flex-|-self/g,""))+e;case 4675:return Jo+e+Xo+"flex-line-pack"+ci(e,/align-content|flex-|-self/g,"")+e;case 5548:return Jo+e+Xo+ci(e,"shrink","negative")+e;case 5292:return Jo+e+Xo+ci(e,"basis","preferred-size")+e;case 6060:return Jo+"box-"+ci(e,"-grow","")+Jo+e+Xo+ci(e,"grow","positive")+e;case 4554:return Jo+ci(e,/([^-])(transform)/g,"$1"+Jo+"$2")+e;case 6187:return ci(ci(ci(e,/(zoom-|grab)/,Jo+"$1"),/(image-set)/,Jo+"$1"),e,"")+e;case 5495:case 3959:return ci(e,/(image-set\([^]*)/,Jo+"$1$`$1");case 4968:return ci(ci(e,/(.+:)(flex-)?(.*)/,Jo+"box-pack:$3"+Xo+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Jo+e+e;case 4200:if(!ui(e,/flex-|baseline/))return Xo+"grid-column-align"+fi(e,t)+e;break;case 2592:case 3360:return Xo+ci(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,ui(e.props,/grid-\w+-end/)}))?~di(e+(n=n[t].value),"span",0)?e:Xo+ci(e,"-start","")+e+Xo+"grid-row-span:"+(~di(n,"span",0)?ui(n,/\d+/):+ui(n,/\d+/)-+ui(e,/\d+/))+";":Xo+ci(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return ui(e.props,/grid-\w+-start/)}))?e:Xo+ci(ci(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return ci(e,/(.+)-inline(.+)/,Jo+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(mi(e)-1-t>6)switch(pi(e,t+1)){case 109:if(45!==pi(e,t+4))break;case 102:return ci(e,/(.+:)(.+)-([^]+)/,"$1"+Jo+"$2-$3$1"+Qo+(108==pi(e,t+3)?"$3":"$2-$3"))+e;case 115:return~di(e,"stretch",0)?Wi(ci(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return ci(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,i,a,l){return Xo+n+":"+r+l+(o?Xo+n+"-span:"+(i?a:+a-+r)+l:"")+e}));case 4949:if(121===pi(e,t+6))return ci(e,":",":"+Jo)+e;break;case 6444:switch(pi(e,45===pi(e,14)?18:11)){case 120:return ci(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Jo+(45===pi(e,14)?"inline-":"")+"box$3$1"+Jo+"$2$3$1"+Xo+"$2box$3")+e;case 100:return ci(e,":",":"+Xo)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return ci(e,"scroll-","scroll-snap-")+e}return e}function Gi(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Vi(e,t,n,r){switch(e.type){case oi:if(e.children.length)break;case ni:case ti:return e.return=e.return||e.value;case Zo:return"";case ri:return e.return=e.value+"{"+Gi(e.children,r)+"}";case ei:if(!mi(e.value=e.props.join(",")))return""}return mi(n=Gi(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ui(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ti:return void(e.return=Wi(e.value,e.length,n));case ri:return Gi([Ri(e,{value:ci(e.value,"@","@"+Jo)})],r);case ei:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(ui(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Li(Ri(e,{props:[ci(t,/:(read-\w+)/,":"+Qo+"$1")]})),Li(Ri(e,{props:[t]})),li(e,{props:vi(n,r)});break;case"::placeholder":Li(Ri(e,{props:[ci(t,/:(plac\w+)/,":"+Jo+"input-$1")]})),Li(Ri(e,{props:[ci(t,/:(plac\w+)/,":"+Qo+"$1")]})),Li(Ri(e,{props:[ci(t,/:(plac\w+)/,Xo+"input-$1")]})),Li(Ri(e,{props:[t]})),li(e,{props:vi(n,r)})}return""}))}}var Yi={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ki="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Xi="active",Qi="data-styled-version",Ji="6.1.12",Zi="/*!sc*/\n",ea="undefined"!=typeof window&&"HTMLElement"in window,ta=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY)),na={},ra=Object.freeze([]),oa=Object.freeze({});function ia(e,t,n){return void 0===n&&(n=oa),e.theme!==n.theme&&e.theme||t||n.theme}var aa=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),la=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,sa=/(^-|-$)/g;function ua(e){return e.replace(la,"-").replace(sa,"")}var ca=/(a)(d)/gi,da=52,pa=function(e){return String.fromCharCode(e+(e>25?39:97))};function fa(e){var t,n="";for(t=Math.abs(e);t>da;t=t/da|0)n=pa(t%da)+n;return(pa(t%da)+n).replace(ca,"$1-$2")}var ma,ha=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},ga=function(e){return ha(5381,e)};function va(e){return fa(ga(e)>>>0)}function ba(e){return"string"==typeof e&&!0}var ya="function"==typeof Symbol&&Symbol.for,xa=ya?Symbol.for("react.memo"):60115,Sa=ya?Symbol.for("react.forward_ref"):60112,Ea={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ca={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},wa={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ra=((ma={})[Sa]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ma[xa]=wa,ma);function La(e){return("type"in(t=e)&&t.type.$$typeof)===xa?wa:"$$typeof"in e?Ra[e.$$typeof]:Ea;var t}var ka=Object.defineProperty,Ia=Object.getOwnPropertyNames,Ma=Object.getOwnPropertySymbols,_a=Object.getOwnPropertyDescriptor,Pa=Object.getPrototypeOf,Aa=Object.prototype;function Da(e,t,n){if("string"!=typeof t){if(Aa){var r=Pa(t);r&&r!==Aa&&Da(e,r,n)}var o=Ia(t);Ma&&(o=o.concat(Ma(t)));for(var i=La(e),a=La(t),l=0;l<o.length;++l){var s=o[l];if(!(s in Ca||n&&n[s]||a&&s in a||i&&s in i)){var u=_a(t,s);try{ka(e,s,u)}catch(e){}}}}return e}function Ta(e){return"function"==typeof e}function Oa(e){return"object"==typeof e&&"styledComponentId"in e}function Na(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function qa(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function Fa(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function za(e,t,n){if(void 0===n&&(n=!1),!n&&!Fa(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=za(e[r],t[r]);else if(Fa(t))for(var r in t)e[r]=za(e[r],t[r]);return e}function ja(e,t){Object.defineProperty(e,"toString",{value:t})}function $a(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var Ba=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw $a(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=(i=0,t.length);i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(Zi);return t},e}(),Ha=new Map,Wa=new Map,Ga=1,Va=function(e){if(Ha.has(e))return Ha.get(e);for(;Wa.has(Ga);)Ga++;var t=Ga++;return Ha.set(e,t),Wa.set(t,e),t},Ua=function(e,t){Ga=t+1,Ha.set(e,t),Wa.set(t,e)},Ya="style[".concat(Ki,"][").concat(Qi,'="').concat(Ji,'"]'),Ka=new RegExp("^".concat(Ki,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Xa=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},Qa=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(Zi),o=[],i=0,a=r.length;i<a;i++){var l=r[i].trim();if(l){var s=l.match(Ka);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(Ua(c,u),Xa(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}},Ja=function(e){for(var t=document.querySelectorAll(Ya),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(Ki)!==Xi&&(Qa(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var Za=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Ki,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(Ki,Xi),r.setAttribute(Qi,Ji);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},el=function(){function e(e){this.element=Za(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw $a(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),tl=function(){function e(e){this.element=Za(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),nl=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),rl=ea,ol={isServer:!ea,useCSSOMInjection:!ta},il=function(){function e(e,t,n){void 0===e&&(e=oa),void 0===t&&(t={});var r=this;this.options=Yo(Yo({},ol),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&ea&&rl&&(rl=!1,Ja(this)),ja(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return Wa.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(n);if(void 0===i||!i.size||0===a.length)return"continue";var l="".concat(Ki,".g").concat(n,'[id="').concat(o,'"]'),s="";void 0!==i&&i.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),r+="".concat(a).concat(l,'{content:"').concat(s,'"}').concat(Zi)},i=0;i<n;i++)o(i);return r}(r)}))}return e.registerId=function(e){return Va(e)},e.prototype.rehydrate=function(){!this.server&&ea&&Ja(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(Yo(Yo({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new nl(n):t?new el(n):new tl(n)}(this.options),new Ba(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(Va(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Va(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Va(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),al=/&/g,ll=/^\s*\/\/.*$/gm;function sl(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=sl(e.children,t)),e}))}var ul=new il,cl=function(e){var t,n,r,o=void 0===e?oa:e,i=o.options,a=void 0===i?oa:i,l=o.plugins,s=void 0===l?ra:l,u=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},c=s.slice();c.push((function(e){e.type===ei&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(al,n).replace(r,u))})),a.prefix&&c.push(Ui),c.push(Vi);var d=function(e,o,i,l){void 0===o&&(o=""),void 0===i&&(i=""),void 0===l&&(l="&"),t=l,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var s=e.replace(ll,""),u=zi(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=sl(u,a.namespace));var d,p=[];return Gi(u,function(e){var t=hi(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}(c.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return d.hash=s.length?s.reduce((function(e,t){return t.name||$a(15),ha(e,t.name)}),5381).toString():"",d}(),dl=lo.createContext({shouldForwardProp:void 0,styleSheet:ul,stylis:cl});function pl(){return ao.useContext(dl)}dl.Consumer;var fl=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=cl);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,ja(this,(function(){throw $a(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=cl),this.name+e.hash},e}(),ml=function(e){return e>="A"&&e<="Z"};function hl(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;ml(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var gl=function(e){return null==e||!1===e||""===e},vl=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!gl(i)&&(Array.isArray(i)&&i.isCss||Ta(i)?r.push("".concat(hl(o),":"),i,";"):Fa(i)?r.push.apply(r,Ko(Ko(["".concat(o," {")],vl(i),!1),["}"],!1)):r.push("".concat(hl(o),": ").concat((t=o,null==(n=i)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in Yi||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function bl(e,t,n,r){return gl(e)?[]:Oa(e)?[".".concat(e.styledComponentId)]:Ta(e)?!Ta(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:bl(e(t),t,n,r):e instanceof fl?n?(e.inject(n,r),[e.getName(r)]):[e]:Fa(e)?vl(e):Array.isArray(e)?Array.prototype.concat.apply(ra,e.map((function(e){return bl(e,t,n,r)}))):[e.toString()];var o}function yl(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Ta(n)&&!Oa(n))return!1}return!0}var xl=ga(Ji),Sl=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&yl(e),this.componentId=t,this.baseHash=ha(xl,t),this.baseStyle=n,il.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=Na(r,this.staticRulesId);else{var o=qa(bl(this.rules,e,t,n)),i=fa(ha(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=n(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}r=Na(r,i),this.staticRulesId=i}else{for(var l=ha(this.baseHash,n.hash),s="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)s+=c;else if(c){var d=qa(bl(c,e,t,n));l=ha(l,d+u),s+=d}}if(s){var p=fa(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,n(s,".".concat(p),void 0,this.componentId)),r=Na(r,p)}}return r},e}(),El=lo.createContext(void 0);El.Consumer;var Cl={};new Set;function wl(e,t,n){var r=Oa(e),o=e,i=!ba(e),a=t.attrs,l=void 0===a?ra:a,s=t.componentId,u=void 0===s?function(e,t){var n="string"!=typeof e?"sc":ua(e);Cl[n]=(Cl[n]||0)+1;var r="".concat(n,"-").concat(va(Ji+n+Cl[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):s,c=t.displayName,d=void 0===c?function(e){return ba(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(ua(t.displayName),"-").concat(t.componentId):t.componentId||u,f=r&&o.attrs?o.attrs.concat(l).filter(Boolean):l,m=t.shouldForwardProp;if(r&&o.shouldForwardProp){var h=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;m=function(e,t){return h(e,t)&&g(e,t)}}else m=h}var v=new Sl(n,p,r?o.componentStyle:void 0);function b(e,t){return function(e,t,n){var r=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,l=e.styledComponentId,s=e.target,u=lo.useContext(El),c=pl(),d=e.shouldForwardProp||c.shouldForwardProp,p=ia(t,u,i)||oa,f=function(e,t,n){for(var r,o=Yo(Yo({},t),{className:void 0,theme:n}),i=0;i<e.length;i+=1){var a=Ta(r=e[i])?r(o):r;for(var l in a)o[l]="className"===l?Na(o[l],a[l]):"style"===l?Yo(Yo({},o[l]),a[l]):a[l]}return t.className&&(o.className=Na(o.className,t.className)),o}(r,t,p),m=f.as||s,h={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?h.as=f.forwardedAs:d&&!d(g,m)||(h[g]=f[g]));var v=function(e,t){var n=pl();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(o,f),b=Na(a,l);return v&&(b+=" "+v),f.className&&(b+=" "+f.className),h[ba(m)&&!aa.has(m)?"class":"className"]=b,h.ref=n,ao.createElement(m,h)}(y,e,t)}b.displayName=d;var y=lo.forwardRef(b);return y.attrs=f,y.componentStyle=v,y.displayName=d,y.shouldForwardProp=m,y.foldedComponentIds=r?Na(o.foldedComponentIds,o.styledComponentId):"",y.styledComponentId=p,y.target=r?o.target:e,Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=r?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)za(e,o[r],!0);return e}({},o.defaultProps,e):e}}),ja(y,(function(){return".".concat(y.styledComponentId)})),i&&Da(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function Rl(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var Ll=function(e){return Object.assign(e,{isCss:!0})};function kl(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Ta(e)||Fa(e))return Ll(bl(Rl(ra,Ko([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?bl(r):Ll(bl(Rl(r,t)))}function Il(e,t,n){if(void 0===n&&(n=oa),!t)throw $a(1,t);var r=function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,n,kl.apply(void 0,Ko([r],o,!1)))};return r.attrs=function(r){return Il(e,t,Yo(Yo({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return Il(e,t,Yo(Yo({},n),r))},r}var Ml=function(e){return Il(wl,e)},_l=Ml;aa.forEach((function(e){_l[e]=Ml(e)}));var Pl=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=yl(e),il.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(qa(bl(this.rules,t,n,r)),""),i=this.componentId+e;n.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&il.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function Al(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=qa(kl.apply(void 0,Ko([e],t,!1))),o=va(r);return new fl(o,r)}function Dl(e){const{injectFirst:t,children:n}=e;if(t&&"undefined"!=typeof window){const e=document.head;if(!e.querySelector('[data-styled="active"]')){const t=document.createElement("style");t.setAttribute("data-styled","active"),e.insertBefore(t,e.firstChild)}}return n}Dl.propTypes={children:br.node,injectFirst:br.bool};const Tl=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=kl.apply(void 0,Ko([e],t,!1)),o="sc-global-".concat(va(JSON.stringify(r))),i=new Pl(r,o),a=function(e){var t=pl(),n=lo.useContext(El),r=lo.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&function(e,t,n,r,o){if(i.isStatic)i.renderStyles(e,na,n,o);else{var l=Yo(Yo({},t),{theme:ia(t,r,a.defaultProps)});i.renderStyles(e,l,n,o)}}(r,e,t.styleSheet,n,t.stylis),null};return lo.memo(a)}((e=>{const{styles:t,defaultTheme:n={}}=e;return"function"==typeof t?t(null==(r=e.theme)||0===Object.keys(r).length?n:e.theme):t;var r}));var Ol=Tl;
12
12
  /**
13
13
  * @mui/styled-engine-sc v6.0.0-alpha.24
14
14
  *
@@ -117,7 +117,7 @@ function Nl(e,t){let n;return n=t?_l(e).withConfig({displayName:t.label,shouldFo
117
117
  animation-iteration-count: infinite;
118
118
  animation-delay: 200ms;
119
119
  }
120
- `),$C.rippleVisible,YC,550,(({theme:e})=>e.transitions.easing.easeInOut),$C.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),$C.child,$C.childLeaving,KC,550,(({theme:e})=>e.transitions.easing.easeInOut),$C.childPulsate,XC,(({theme:e})=>e.transitions.easing.easeInOut)),ZC=ao.forwardRef((function(e,t){const n=Pd({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=Go(n,BC),[l,s]=ao.useState([]),u=ao.useRef(0),c=ao.useRef(null);ao.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=ao.useRef(!1),p=ao.useRef(0),f=ao.useRef(null),m=ao.useRef(null);ao.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const h=ao.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,fc.jsx(JC,{classes:{ripple:Fd(o.ripple,$C.ripple),rippleVisible:Fd(o.rippleVisible,$C.rippleVisible),ripplePulsate:Fd(o.ripplePulsate,$C.ripplePulsate),child:Fd(o.child,$C.child),childLeaving:Fd(o.childLeaving,$C.childLeaving),childPulsate:Fd(o.childPulsate,$C.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=ao.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,h]),v=ao.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=ao.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{b(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return ao.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),fc.jsx(QC,Wo({className:Fd($C.root,o.root,i),ref:m},a,{children:fc.jsx(MC,{component:null,exit:!0,children:l})}))}));var ew=ZC;function tw(e){return ld("MuiButtonBase",e)}var nw=sd("MuiButtonBase",["root","disabled","focusVisible"]);const rw=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],ow=Od("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${nw.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),iw=ao.forwardRef((function(e,t){const n=Pd({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:C,onTouchEnd:w,onTouchMove:R,onTouchStart:L,tabIndex:k=0,TouchRippleProps:I,touchRippleRef:M,type:_}=n,P=Go(n,rw),A=ao.useRef(null),D=ao.useRef(null),T=Vc(D,M),{isFocusVisibleRef:O,onFocus:N,onBlur:q,ref:F}=nd(),[z,j]=ao.useState(!1);s&&z&&j(!1),ao.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),A.current.focus()}})),[]);const[$,B]=ao.useState(!1);ao.useEffect((()=>{B(!0)}),[]);const H=$&&!u&&!s;function W(e,t,n=c){return Gc((r=>{t&&t(r);return!n&&D.current&&D.current[e](r),!0}))}ao.useEffect((()=>{z&&d&&!u&&$&&D.current.pulsate()}),[u,d,z,$]);const G=W("start",S),V=W("stop",h),U=W("stop",g),Y=W("stop",C),K=W("stop",(e=>{z&&e.preventDefault(),E&&E(e)})),X=W("start",L),Q=W("stop",w),J=W("stop",R),Z=W("stop",(e=>{q(e),!1===O.current&&j(!1),f&&f(e)}),!1),ee=Gc((e=>{A.current||(A.current=e.currentTarget),N(e),!0===O.current&&(j(!0),b&&b(e)),v&&v(e)})),te=()=>{const e=A.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=ao.useRef(!1),re=Gc((e=>{d&&!ne.current&&z&&D.current&&" "===e.key&&(ne.current=!0,D.current.stop(e,(()=>{D.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),oe=Gc((e=>{d&&" "===e.key&&D.current&&z&&!e.defaultPrevented&&(ne.current=!1,D.current.stop(e,(()=>{D.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ie=l;"button"===ie&&(P.href||P.to)&&(ie=p);const ae={};"button"===ie?(ae.type=void 0===_?"button":_,ae.disabled=s):(P.href||P.to||(ae.role="button"),s&&(ae["aria-disabled"]=s));const le=Vc(t,F,A),se=Wo({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:k,focusVisible:z}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Fs({root:["root",t&&"disabled",n&&"focusVisible"]},tw,o);return n&&r&&(i.root+=` ${r}`),i})(se);return fc.jsxs(ow,Wo({as:ie,className:Fd(ue.root,a),ownerState:se,onBlur:Z,onClick:m,onContextMenu:V,onFocus:ee,onKeyDown:re,onKeyUp:oe,onMouseDown:G,onMouseLeave:K,onMouseUp:Y,onDragLeave:U,onTouchEnd:Q,onTouchMove:J,onTouchStart:X,ref:le,tabIndex:s?-1:k,type:_},ae,P,{children:[i,H?fc.jsx(ew,Wo({ref:T,center:o},I)):null]}))}));var aw=iw;function lw(e){return ld("MuiTypography",e)}sd("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const sw=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],uw=Od("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${qc(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Wo({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),cw={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},dw={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},pw=ao.forwardRef((function(e,t){const n=Pd({props:e,name:"MuiTypography"}),r=(e=>dw[e]||e)(n.color),o=vc(Wo({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=cw}=o,f=Go(o,sw),m=Wo({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||cw[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return Fs({root:["root",i,"inherit"!==e.align&&`align${qc(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},lw,a)})(m);return fc.jsx(uw,Wo({as:h,ref:t,ownerState:m,className:Fd(g.root,a)},f))}));var fw=pw;const mw=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function hw(e){const t=[],n=[];return Array.from(e.querySelectorAll(mw)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function gw(){return!0}function vw(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=hw,isEnabled:a=gw,open:l}=e,s=ao.useRef(!1),u=ao.useRef(null),c=ao.useRef(null),d=ao.useRef(null),p=ao.useRef(null),f=ao.useRef(!1),m=ao.useRef(null),h=Es(t.ref,m),g=ao.useRef(null);ao.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),ao.useEffect((()=>{if(!l||!m.current)return;const e=vs(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),ao.useEffect((()=>{if(!l||!m.current)return;const e=vs(m.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(m.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return fc.jsxs(ao.Fragment,{children:[fc.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),ao.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),fc.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}const bw=ao.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=ao.useState(null),l=Es(ao.isValidElement(n)?n.ref:null,t);if(xs((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),xs((()=>{if(i&&!o)return ys(t,i),()=>{ys(t,null)}}),[t,i,o]),o){if(ao.isValidElement(n)){const e={ref:l};return ao.cloneElement(n,e)}return fc.jsx(ao.Fragment,{children:n})}return fc.jsx(ao.Fragment,{children:i?pC.createPortal(n,i):i})}));function yw(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function xw(e){return parseInt(bs(e).getComputedStyle(e).paddingRight,10)||0}function Sw(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&yw(e,o)}))}function Ew(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function Cw(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=vs(e);return t.body===e?bs(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Ns(vs(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${xw(r)+e}px`;const t=vs(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${xw(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=vs(r).body;else{const t=r.parentElement,n=bs(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const ww=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&yw(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Sw(t,e.mount,e.modalRef,r,!0);const o=Ew(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=Ew(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=Cw(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Ew(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&yw(e.modalRef,t),Sw(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&yw(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Rw(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=ww,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=ao.useRef({}),f=ao.useRef(null),m=ao.useRef(null),h=Es(m,d),[g,v]=ao.useState(!c),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},E=Ss((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||vs(f.current).body;o.add(x(),e),m.current&&S()})),C=ao.useCallback((()=>o.isTopModal(x())),[o]),w=Ss((e=>{f.current=e,e&&(c&&C()?S():m.current&&yw(m.current,y))})),R=ao.useCallback((()=>{o.remove(x(),y)}),[y,o]);ao.useEffect((()=>()=>{R()}),[R]),ao.useEffect((()=>{c?E():b&&i||R()}),[c,R,b,i,E]);const L=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},k=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=qC(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=mr({},n,t);return mr({role:"presentation"},r,{onKeyDown:L(r),ref:h})},getBackdropProps:(e={})=>mr({"aria-hidden":!0},e,{onClick:k(e),open:c}),getTransitionProps:()=>({onEnter:hs((()=>{v(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:hs((()=>{v(!0),l&&l(),i&&R()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:w,isTopModal:C,exited:g,hasTransition:b}}const Lw=["onChange","maxRows","minRows","style","value"];function kw(e){return parseInt(e,10)||0}const Iw={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Mw(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const _w=ao.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=Sr(e,Lw),{current:s}=ao.useRef(null!=a),u=ao.useRef(null),c=Es(t,u),d=ao.useRef(null),p=ao.useRef(0),[f,m]=ao.useState({outerHeightStyle:0}),h=ao.useCallback((()=>{const t=u.current,n=bs(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0};const i=d.current;i.style.width=n.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=n.boxSizing,l=kw(n.paddingBottom)+kw(n.paddingTop),s=kw(n.borderBottomWidth)+kw(n.borderTopWidth),c=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*p,f)),r&&(f=Math.min(Number(r)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-c)<=1}}),[r,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return p.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(p.current+=1,{overflow:r,outerHeightStyle:n}):e},v=ao.useCallback((()=>{const e=h();Mw(e)||m((t=>g(t,e)))}),[h]);xs((()=>{const e=()=>{p.current=0,(()=>{const e=h();Mw(e)||pC.flushSync((()=>{m((t=>g(t,e)))}))})()};const t=gs(e),n=u.current,r=bs(n);let o;return r.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(n)),()=>{t.clear(),cancelAnimationFrame(undefined),r.removeEventListener("resize",t),o&&o.disconnect()}}),[h]),xs((()=>{v()})),ao.useEffect((()=>{p.current=0}),[a]);return fc.jsxs(ao.Fragment,{children:[fc.jsx("textarea",mr({value:a,onChange:e=>{p.current=0,s||v(),n&&n(e)},ref:c,rows:o,style:mr({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),fc.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:mr({},Iw,i,{paddingTop:0,paddingBottom:0})})]})}));function Pw({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}var Aw=ao.createContext(void 0);function Dw(){return ao.useContext(Aw)}function Tw(e){return fc.jsx(mc,Wo({},e,{defaultTheme:Md,themeId:Ho}))}function Ow(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Nw(e,t=!1){return e&&(Ow(e.value)&&""!==e.value||t&&Ow(e.defaultValue)&&""!==e.defaultValue)}function qw(e){return ld("MuiInputBase",e)}var Fw=sd("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const zw=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],jw=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${qc(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},$w=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Bw=Od("div",{name:"MuiInputBase",slot:"Root",overridesResolver:jw})((({theme:e,ownerState:t})=>Wo({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Fw.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Wo({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Hw=Od("input",{name:"MuiInputBase",slot:"Input",overridesResolver:$w})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=Wo({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return Wo({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Fw.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Fw.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),Ww=fc.jsx(Tw,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Gw=ao.forwardRef((function(e,t){var n;const r=Pd({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:m=!1,id:h,inputComponent:g="input",inputProps:v={},inputRef:b,maxRows:y,minRows:x,multiline:S=!1,name:E,onBlur:C,onChange:w,onClick:R,onFocus:L,onKeyDown:k,onKeyUp:I,placeholder:M,readOnly:_,renderSuffix:P,rows:A,slotProps:D={},slots:T={},startAdornment:O,type:N="text",value:q}=r,F=Go(r,zw),z=null!=v.value?v.value:q,{current:j}=ao.useRef(null!=z),$=ao.useRef(),B=ao.useCallback((e=>{}),[]),H=Vc($,b,v.ref,B),[W,G]=ao.useState(!1),V=Dw(),U=Pw({props:r,muiFormControl:V,states:["color","disabled","error","hiddenLabel","size","required","filled"]});U.focused=V?V.focused:W,ao.useEffect((()=>{!V&&d&&W&&(G(!1),C&&C())}),[V,d,W,C]);const Y=V&&V.onFilled,K=V&&V.onEmpty,X=ao.useCallback((e=>{Nw(e)?Y&&Y():K&&K()}),[Y,K]);jc((()=>{j&&X({value:z})}),[z,X,j]);ao.useEffect((()=>{X($.current)}),[]);let Q=g,J=v;S&&"input"===Q&&(J=Wo(A?{type:void 0,minRows:A,maxRows:A}:{type:void 0,maxRows:y,minRows:x},J),Q=_w);ao.useEffect((()=>{V&&V.setAdornedStart(Boolean(O))}),[V,O]);const Z=Wo({},r,{color:U.color||"primary",disabled:U.disabled,endAdornment:f,error:U.error,focused:U.focused,formControl:V,fullWidth:m,hiddenLabel:U.hiddenLabel,multiline:S,size:U.size,startAdornment:O,type:N}),ee=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e;return Fs({root:["root",`color${qc(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${qc(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},qw,t)})(Z),te=T.root||s.Root||Bw,ne=D.root||u.root||{},re=T.input||s.Input||Hw;return J=Wo({},J,null!=(n=D.input)?n:u.input),fc.jsxs(ao.Fragment,{children:[!p&&Ww,fc.jsxs(te,Wo({},ne,!NC(te)&&{ownerState:Wo({},Z,ne.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),R&&R(e)}},F,{className:Fd(ee.root,ne.className,l,_&&"MuiInputBase-readOnly"),children:[O,fc.jsx(Aw.Provider,{value:null,children:fc.jsx(re,Wo({ownerState:Z,"aria-invalid":U.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:U.disabled,id:h,onAnimationStart:e=>{X("mui-auto-fill-cancel"===e.animationName?$.current:{value:"x"})},name:E,placeholder:M,readOnly:_,required:U.required,rows:A,value:z,onKeyDown:k,onKeyUp:I,type:N},J,!NC(re)&&{as:Q,ownerState:Wo({},Z,J.ownerState)},{ref:H,className:Fd(ee.input,J.className,_&&"MuiInputBase-readOnly"),onBlur:e=>{C&&C(e),v.onBlur&&v.onBlur(e),V&&V.onBlur?V.onBlur(e):G(!1)},onChange:(e,...t)=>{if(!j){const t=e.target||$.current;if(null==t)throw new Error(Bo(1));X({value:t.value})}v.onChange&&v.onChange(e,...t),w&&w(e,...t)},onFocus:e=>{U.disabled?e.stopPropagation():(L&&L(e),v.onFocus&&v.onFocus(e),V&&V.onFocus?V.onFocus(e):G(!0))}}))}),f,P?P(Wo({},U,{startAdornment:O})):null]}))]})}));var Vw=Gw;function Uw(e){return ld("MuiInput",e)}var Yw=Wo({},Fw,sd("MuiInput",["root","underline","input"]));function Kw(e){return ld("MuiOutlinedInput",e)}var Xw=Wo({},Fw,sd("MuiOutlinedInput",["root","notchedOutline","input"]));function Qw(e){return ld("MuiFilledInput",e)}var Jw=Wo({},Fw,sd("MuiFilledInput",["root","underline","input"])),Zw=function(e,t){function n(n,r){return fc.jsx(Hd,Wo({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=Hd.muiName,ao.memo(ao.forwardRef(n))}(fc.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const eR=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],tR={entering:{opacity:1},entered:{opacity:1}},nR=ao.forwardRef((function(e,t){const n=_d(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=r,TransitionComponent:v=CC}=e,b=Go(e,eR),y=ao.useRef(null),x=Vc(y,a.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},E=S(d),C=S(((e,t)=>{_C(e);const r=PC({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),w=S(c),R=S(m),L=S((e=>{const t=PC({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),k=S(f);return fc.jsx(v,Wo({appear:i,in:s,nodeRef:y,onEnter:C,onEntered:w,onEntering:E,onExit:L,onExited:k,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>ao.cloneElement(a,Wo({style:Wo({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},tR[e],h,a.props.style),ref:x},t))}))}));var rR=nR;function oR(e){return ld("MuiBackdrop",e)}sd("MuiBackdrop",["root","invisible"]);const iR=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],aR=Od("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Wo({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),lR=ao.forwardRef((function(e,t){var n,r,o;const i=Pd({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=rR,transitionDuration:g}=i,v=Go(i,iR),b=Wo({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return Fs({root:["root",n&&"invisible"]},oR,t)})(b),x=null!=(n=f.root)?n:c.root;return fc.jsx(h,Wo({in:p,timeout:g},v,{children:fc.jsx(aR,Wo({"aria-hidden":!0},x,{as:null!=(r=null!=(o=m.root)?o:u.Root)?r:s,className:Fd(y.root,l,null==x?void 0:x.className),ownerState:Wo({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var sR=lR;var uR=sd("MuiBox",["root"]);const cR=Id(),dR=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Nl("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Qu);return ao.forwardRef((function(e,a){const l=rc(n),s=vc(e),{className:u,component:c="div"}=s,d=Sr(s,bc);return fc.jsx(i,mr({as:c,ref:a,className:Ys(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:Ho,defaultTheme:cR,defaultClassName:uR.root,generateClassName:id.generate});var pR=dR;function fR(e){return ld("MuiButton",e)}var mR=sd("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var hR=ao.createContext({});var gR=ao.createContext(void 0);const vR=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],bR=e=>Wo({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),yR=Od(aw,{shouldForwardProp:e=>Ad(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${qc(n.color)}`],t[`size${qc(n.size)}`],t[`${n.variant}Size${qc(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return Wo({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":Wo({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Dc(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Dc(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Dc(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":Wo({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${mR.focusVisible}`]:Wo({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${mR.disabled}`]:Wo({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Dc(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${mR.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${mR.disabled}`]:{boxShadow:"none"}})),xR=Od("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${qc(n.size)}`]]}})((({ownerState:e})=>Wo({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},bR(e)))),SR=Od("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${qc(n.size)}`]]}})((({ownerState:e})=>Wo({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},bR(e)))),ER=ao.forwardRef((function(e,t){const n=ao.useContext(hR),r=ao.useContext(gR),o=Pd({props:rd(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:m=!1,size:h="medium",startIcon:g,type:v,variant:b="text"}=o,y=Go(o,vR),x=Wo({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:v,variant:b}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return Wo({},a,Fs({root:["root",i,`${i}${qc(t)}`,`size${qc(o)}`,`${i}Size${qc(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${qc(o)}`],endIcon:["endIcon",`iconSize${qc(o)}`]},fR,a))})(x),E=g&&fc.jsx(xR,{className:S.startIcon,ownerState:x,children:g}),C=p&&fc.jsx(SR,{className:S.endIcon,ownerState:x,children:p}),w=r||"";return fc.jsxs(yR,Wo({ownerState:x,className:Fd(n.className,S.root,s,w),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:Fd(S.focusVisible,f),ref:t,type:v},y,{classes:S,children:[E,i,C]}))}));var CR=ER;function wR(e){return ld("MuiModal",e)}sd("MuiModal",["root","hidden","backdrop"]);const RR=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],LR=Od("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Wo({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),kR=Od(sR,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),IR=ao.forwardRef((function(e,t){var n,r,o,i,a,l;const s=Pd({name:"MuiModal",props:e}),{BackdropComponent:u=kR,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:C=!1,hideBackdrop:w=!1,keepMounted:R=!1,onBackdropClick:L,open:k,slotProps:I,slots:M}=s,_=Go(s,RR),P=Wo({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:E,disableScrollLock:C,hideBackdrop:w,keepMounted:R}),{getRootProps:A,getBackdropProps:D,getTransitionProps:T,portalRef:O,isTopModal:N,exited:q,hasTransition:F}=Rw(Wo({},P,{rootRef:t})),z=Wo({},P,{exited:q}),j=(e=>{const{open:t,exited:n,classes:r}=e;return Fs({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},wR,r)})(z),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),F){const{onEnter:e,onExited:t}=T();$.onEnter=e,$.onExited=t}const B=null!=(n=null!=(r=null==M?void 0:M.root)?r:g.Root)?n:LR,H=null!=(o=null!=(i=null==M?void 0:M.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==I?void 0:I.root)?a:v.root,G=null!=(l=null==I?void 0:I.backdrop)?l:v.backdrop,V=jC({elementType:B,externalSlotProps:W,externalForwardedProps:_,getSlotProps:A,additionalProps:{ref:t,as:h},ownerState:z,className:Fd(d,null==W?void 0:W.className,null==j?void 0:j.root,!z.open&&z.exited&&(null==j?void 0:j.hidden))}),U=jC({elementType:H,externalSlotProps:G,additionalProps:c,getSlotProps:e=>D(Wo({},e,{onClick:t=>{L&&L(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Fd(null==G?void 0:G.className,null==c?void 0:c.className,null==j?void 0:j.backdrop),ownerState:z});return R||k||F&&!q?fc.jsx(bw,{ref:O,container:m,disablePortal:S,children:fc.jsxs(B,Wo({},V,{children:[!w&&u?fc.jsx(H,Wo({},U)):null,fc.jsx(vw,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:N,open:k,children:ao.cloneElement(f,$)})]}))}):null}));var MR=IR;function _R(e){return ld("MuiDivider",e)}var PR=sd("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const AR=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],DR=Od("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>Wo({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Dc(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>Wo({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Wo({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>Wo({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>Wo({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),TR=Od("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Wo({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),OR=ao.forwardRef((function(e,t){const n=Pd({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=Go(n,AR),m=Wo({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return Fs({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},_R,r)})(m);return fc.jsx(DR,Wo({as:a,className:Fd(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?fc.jsx(TR,{className:h.wrapper,ownerState:m,children:o}):null}))}));OR.muiSkipListHighlight=!0;var NR=OR;const qR=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],FR=Od(Bw,{shouldForwardProp:e=>Ad(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...jw(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Wo({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${Jw.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Jw.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Jw.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Jw.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Jw.disabled}, .${Jw.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Jw.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Wo({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))})),zR=Od(Hw,{name:"MuiFilledInput",slot:"Input",overridesResolver:$w})((({theme:e,ownerState:t})=>Wo({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}))),jR=ao.forwardRef((function(e,t){var n,r,o,i;const a=Pd({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:s,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:m="text"}=a,h=Go(a,qR),g=Wo({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),v=(e=>{const{classes:t,disableUnderline:n}=e;return Wo({},t,Fs({root:["root",!n&&"underline"],input:["input"]},Qw,t))})(a),b={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?Nc(b,null!=p?p:s):b,x=null!=(n=null!=(r=f.root)?r:l.Root)?n:FR,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:zR;return fc.jsx(Vw,Wo({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:v}))}));jR.muiName="Input";var $R=jR;const BR=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function HR(e){return`scale(${e}, ${e**2})`}const WR={entering:{opacity:1,transform:HR(1)},entered:{opacity:1,transform:"none"}},GR="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),VR=ao.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=CC}=e,g=Go(e,BR),v=ao.useRef(),b=ao.useRef(),y=_d(),x=ao.useRef(null),S=Vc(x,o.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=E(u),w=E(((e,t)=>{_C(e);const{duration:n,delay:r,easing:o}=PC({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:GR?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),R=E(s),L=E(p),k=E((e=>{const{duration:t,delay:n,easing:r}=PC({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:GR?o:.666*o,delay:GR?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=HR(.75),c&&c(e)})),I=E(d);return ao.useEffect((()=>()=>{clearTimeout(v.current)}),[]),fc.jsx(h,Wo({appear:r,in:a,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:k,onExited:I,onExiting:L,addEndListener:e=>{"auto"===m&&(v.current=setTimeout(e,b.current||0)),n&&n(x.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>ao.cloneElement(o,Wo({style:Wo({opacity:0,transform:HR(.75),visibility:"exited"!==e||a?void 0:"hidden"},WR[e],f,o.props.style),ref:S},t))}))}));VR.muiSupportAuto=!0;var UR=VR;const YR=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],KR=Od(Bw,{shouldForwardProp:e=>Ad(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...jw(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Wo({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Yw.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Yw.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Yw.disabled}, .${Yw.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Yw.disabled}:before`]:{borderBottomStyle:"dotted"}})})),XR=Od(Hw,{name:"MuiInput",slot:"Input",overridesResolver:$w})({}),QR=ao.forwardRef((function(e,t){var n,r,o,i;const a=Pd({props:e,name:"MuiInput"}),{disableUnderline:l,components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:m={},type:h="text"}=a,g=Go(a,YR),v=(e=>{const{classes:t,disableUnderline:n}=e;return Wo({},t,Fs({root:["root",!n&&"underline"],input:["input"]},Uw,t))})(a),b={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?Nc(null!=f?f:u,b):b,x=null!=(n=null!=(r=m.root)?r:s.Root)?n:KR,S=null!=(o=null!=(i=m.input)?i:s.Input)?o:XR;return fc.jsx(Vw,Wo({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:v}))}));QR.muiName="Input";var JR=QR;function ZR(e){return ld("MuiLink",e)}var eL=sd("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const tL={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var nL=({theme:e,ownerState:t})=>{const n=(e=>tL[e]||e)(t.color),r=au(e,`palette.${n}`,!1)||t.color,o=au(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Dc(r,.4)};const rL=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],oL=Od(fw,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${qc(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>Wo({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Wo({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:nL({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${eL.focusVisible}`]:{outline:"auto"}}))),iL=ao.forwardRef((function(e,t){const n=Pd({props:e,name:"MuiLink"}),{className:r,color:o="primary",component:i="a",onBlur:a,onFocus:l,TypographyClasses:s,underline:u="always",variant:c="inherit",sx:d}=n,p=Go(n,rL),{isFocusVisibleRef:f,onBlur:m,onFocus:h,ref:g}=nd(),[v,b]=ao.useState(!1),y=Vc(t,g),x=Wo({},n,{color:o,component:i,focusVisible:v,underline:u,variant:c}),S=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return Fs({root:["root",`underline${qc(o)}`,"button"===n&&"button",r&&"focusVisible"]},ZR,t)})(x);return fc.jsx(oL,Wo({color:o,className:Fd(S.root,r),classes:s,component:i,onBlur:e=>{m(e),!1===f.current&&b(!1),a&&a(e)},onFocus:e=>{h(e),!0===f.current&&b(!0),l&&l(e)},ref:y,ownerState:x,variant:c,sx:[...Object.keys(tL).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var aL=iL;var lL=ao.createContext({});function sL(e){return ld("MuiList",e)}sd("MuiList",["root","padding","dense","subheader"]);const uL=["children","className","component","dense","disablePadding","subheader"],cL=Od("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>Wo({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var dL=ao.forwardRef((function(e,t){const n=Pd({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=Go(n,uL),c=ao.useMemo((()=>({dense:a})),[a]),d=Wo({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Fs({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},sL,t)})(d);return fc.jsx(lL.Provider,{value:c,children:fc.jsxs(cL,Wo({as:i,className:Fd(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function pL(e){return ld("MuiListItemIcon",e)}var fL=sd("MuiListItemIcon",["root","alignItemsFlexStart"]);const mL=["className"],hL=Od("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>Wo({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var gL=ao.forwardRef((function(e,t){const n=Pd({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Go(n,mL),i=Wo({},n,{alignItems:ao.useContext(lL).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return Fs({root:["root","flex-start"===t&&"alignItemsFlexStart"]},pL,n)})(i);return fc.jsx(hL,Wo({className:Fd(a.root,r),ownerState:i,ref:t},o))}));var vL=sd("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const bL=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function yL(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function xL(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function SL(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function EL(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&SL(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var CL=ao.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=Go(e,bL),p=ao.useRef(null),f=ao.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});jc((()=>{r&&p.current.focus()}),[r]),ao.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(Fc(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=Vc(p,t);let h=-1;ao.Children.forEach(i,((e,t)=>{ao.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=ao.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),ao.cloneElement(e,t)}return e}));return fc.jsx(dL,Wo({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=Fc(t).activeElement;if("ArrowDown"===n)e.preventDefault(),EL(t,r,s,l,yL);else if("ArrowUp"===n)e.preventDefault(),EL(t,r,s,l,xL);else if("Home"===n)e.preventDefault(),EL(t,null,s,l,yL);else if("End"===n)e.preventDefault(),EL(t,null,s,l,xL);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&SL(r,o);o.previousKeyMatched&&(s||EL(t,r,!1,l,yL,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function wL(e){return ld("MuiPopover",e)}sd("MuiPopover",["root","paper"]);const RL=["onEntering"],LL=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],kL=["slotProps"];function IL(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function ML(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function _L(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function PL(e){return"function"==typeof e?e():e}const AL=Od(MR,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),DL=Od(OC,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0});var TL=ao.forwardRef((function(e,t){var n,r,o;const i=Pd({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:v={},slots:b,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=UR,transitionDuration:E="auto",TransitionProps:{onEntering:C}={},disableScrollLock:w=!1}=i,R=Go(i.TransitionProps,RL),L=Go(i,LL),k=null!=(n=null==y?void 0:y.paper)?n:v,I=ao.useRef(),M=Vc(I,k.ref),_=Wo({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:k,transformOrigin:x,TransitionComponent:S,transitionDuration:E,TransitionProps:R}),P=(e=>{const{classes:t}=e;return Fs({root:["root"],paper:["paper"]},wL,t)})(_),A=ao.useCallback((()=>{if("anchorPosition"===c)return u;const e=PL(l),t=(e&&1===e.nodeType?e:Fc(I.current).body).getBoundingClientRect();return{top:t.top+IL(t,s.vertical),left:t.left+ML(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),D=ao.useCallback((e=>({vertical:IL(e,x.vertical),horizontal:ML(e,x.horizontal)})),[x.horizontal,x.vertical]),T=ao.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if("none"===c)return{top:null,left:null,transformOrigin:_L(n)};const r=A();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=zc(PL(l)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,n.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:_L(n)}}),[l,c,A,D,h]),[O,N]=ao.useState(g),q=ao.useCallback((()=>{const e=I.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[T]);ao.useEffect((()=>(w&&window.addEventListener("scroll",q),()=>window.removeEventListener("scroll",q))),[l,w,q]);ao.useEffect((()=>{g&&q()})),ao.useImperativeHandle(a,(()=>g?{updatePosition:()=>{q()}}:null),[g,q]),ao.useEffect((()=>{if(!g)return;const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}((()=>{q()})),t=zc(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,q]);let F=E;"auto"!==E||S.muiSupportAuto||(F=void 0);const z=f||(l?Fc(PL(l)).body:void 0),j=null!=(r=null==b?void 0:b.root)?r:AL,$=null!=(o=null==b?void 0:b.paper)?o:DL,B=jC({elementType:$,externalSlotProps:Wo({},k,{style:O?k.style:Wo({},k.style,{opacity:0})}),additionalProps:{elevation:m,ref:M},ownerState:_,className:Fd(P.paper,null==k?void 0:k.className)}),H=jC({elementType:j,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:L,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:_,className:Fd(P.root,p)}),{slotProps:W}=H,G=Go(H,kL);return fc.jsx(j,Wo({},G,!NC(j)&&{slotProps:W,disableScrollLock:w},{children:fc.jsx(S,Wo({appear:!0,in:g,onEntering:(e,t)=>{C&&C(e,t),q()},onExited:()=>{N(!1)},timeout:F},R,{children:fc.jsx($,Wo({},B,{children:d}))}))}))}));function OL(e){return ld("MuiMenu",e)}sd("MuiMenu",["root","paper","list"]);const NL=["onEntering"],qL=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],FL={vertical:"top",horizontal:"right"},zL={vertical:"top",horizontal:"left"},jL=Od(TL,{shouldForwardProp:e=>Ad(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),$L=Od(DL,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),BL=Od(CL,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var HL=ao.forwardRef((function(e,t){var n,r;const o=Pd({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:v={},slotProps:b={}}=o,y=Go(o.TransitionProps,NL),x=Go(o,qL),S=_d(),E="rtl"===S.direction,C=Wo({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:y,variant:g}),w=(e=>{const{classes:t}=e;return Fs({root:["root"],paper:["paper"],list:["list"]},OL,t)})(C),R=i&&!s&&d,L=ao.useRef(null);let k=-1;ao.Children.map(a,((e,t)=>{ao.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===k)&&(k=t))}));const I=null!=(n=v.paper)?n:$L,M=null!=(r=b.paper)?r:p,_=jC({elementType:v.root,externalSlotProps:b.root,ownerState:C,className:[w.root,l]}),P=jC({elementType:I,externalSlotProps:M,ownerState:C,className:w.paper});return fc.jsx(jL,Wo({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?FL:zL,slots:{paper:I,root:v.root},slotProps:{root:_,paper:P},open:d,ref:t,transitionDuration:m,TransitionProps:Wo({onEntering:(e,t)=>{L.current&&L.current.adjustStyleForScrollbar(e,S),h&&h(e,t)}},y),ownerState:C},x,{classes:f,children:fc.jsx(BL,Wo({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:L,autoFocus:i&&(-1===k||s),autoFocusItem:R,variant:g},u,{className:Fd(w.list,u.className),children:a}))}))}));function WL(e){return ld("MuiMenuItem",e)}var GL=sd("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const VL=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],UL=Od(aw,{shouldForwardProp:e=>Ad(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Wo({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${GL.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Dc(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${GL.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Dc(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${GL.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Dc(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Dc(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${GL.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${GL.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${PR.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${PR.inset}`]:{marginLeft:52},[`& .${vL.root}`]:{marginTop:0,marginBottom:0},[`& .${vL.inset}`]:{paddingLeft:36},[`& .${fL.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Wo({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${fL.root} svg`]:{fontSize:"1.25rem"}}))));var YL=ao.forwardRef((function(e,t){const n=Pd({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=Go(n,VL),f=ao.useContext(lL),m=ao.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=ao.useRef(null);jc((()=>{r&&h.current&&h.current.focus()}),[r]);const g=Wo({},n,{dense:m.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return Wo({},a,Fs({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},WL,a))})(n),b=Vc(h,t);let y;return n.disabled||(y=void 0!==c?c:-1),fc.jsx(lL.Provider,{value:m,children:fc.jsx(UL,Wo({ref:b,role:u,tabIndex:y,component:o,focusVisibleClassName:Fd(v.focusVisible,s),className:Fd(v.root,d)},p,{ownerState:g,classes:v}))})}));function KL(e){return ld("MuiNativeSelect",e)}var XL=sd("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const QL=["className","disabled","error","IconComponent","inputRef","variant"],JL=({ownerState:e,theme:t})=>Wo({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Wo({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${XL.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),ZL=Od("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ad,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${XL.multiple}`]:t.multiple}]}})(JL),ek=({ownerState:e,theme:t})=>Wo({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${XL.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),tk=Od("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${qc(n.variant)}`],n.open&&t.iconOpen]}})(ek),nk=ao.forwardRef((function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=Go(e,QL),u=Wo({},e,{disabled:r,variant:l,error:o}),c=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return Fs({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${qc(n)}`,i&&"iconOpen",r&&"disabled"]},KL,t)})(u);return fc.jsxs(ao.Fragment,{children:[fc.jsx(ZL,Wo({ownerState:u,className:Fd(c.select,n),disabled:r,ref:a||t},s)),e.multiple?null:fc.jsx(tk,{as:i,ownerState:u,className:c.icon})]})}));var rk,ok=nk;const ik=["children","classes","className","label","notched"],ak=Od("fieldset",{shouldForwardProp:Ad})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),lk=Od("legend",{shouldForwardProp:Ad})((({ownerState:e,theme:t})=>Wo({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&Wo({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));const sk=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],uk=Od(Bw,{shouldForwardProp:e=>Ad(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:jw})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Wo({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Xw.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Xw.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Xw.focused} .${Xw.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Xw.error} .${Xw.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Xw.disabled} .${Xw.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Wo({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),ck=Od((function(e){const{className:t,label:n,notched:r}=e,o=Go(e,ik),i=null!=n&&""!==n,a=Wo({},e,{notched:r,withLabel:i});return fc.jsx(ak,Wo({"aria-hidden":!0,className:t,ownerState:a},o,{children:fc.jsx(lk,{ownerState:a,children:i?fc.jsx("span",{children:n}):rk||(rk=fc.jsx("span",{className:"notranslate",children:"​"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),dk=Od(Hw,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:$w})((({theme:e,ownerState:t})=>Wo({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),pk=ao.forwardRef((function(e,t){var n,r,o,i,a;const l=Pd({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:m={},type:h="text"}=l,g=Go(l,sk),v=(e=>{const{classes:t}=e;return Wo({},t,Fs({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Kw,t))})(l),b=Dw(),y=Pw({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=Wo({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:b,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:h}),S=null!=(n=null!=(r=m.root)?r:s.Root)?n:uk,E=null!=(o=null!=(i=m.input)?i:s.Input)?o:dk;return fc.jsx(Vw,Wo({slots:{root:S,input:E},renderSuffix:e=>fc.jsx(ck,{ownerState:x,className:v.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=fc.jsxs(ao.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:h},g,{classes:Wo({},v,{notchedOutline:null})}))}));pk.muiName="Input";var fk=pk;function mk(e){return ld("MuiSelect",e)}var hk,gk=sd("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const vk=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],bk=Od("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${gk.select}`]:t.select},{[`&.${gk.select}`]:t[n.variant]},{[`&.${gk.error}`]:t.error},{[`&.${gk.multiple}`]:t.multiple}]}})(JL,{[`&.${gk.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),yk=Od("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${qc(n.variant)}`],n.open&&t.iconOpen]}})(ek),xk=Od("input",{shouldForwardProp:e=>Dd(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Sk(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Ek(e){return null==e||"string"==typeof e&&!e.trim()}const Ck=ao.forwardRef((function(e,t){var n;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:m,inputRef:h,labelId:g,MenuProps:v={},multiple:b,name:y,onBlur:x,onChange:S,onClose:E,onFocus:C,onOpen:w,open:R,readOnly:L,renderValue:k,SelectDisplayProps:I={},tabIndex:M,value:_,variant:P="standard"}=e,A=Go(e,vk),[D,T]=Wc({controlled:_,default:c,name:"Select"}),[O,N]=Wc({controlled:R,default:u,name:"Select"}),q=ao.useRef(null),F=ao.useRef(null),[z,j]=ao.useState(null),{current:$}=ao.useRef(null!=R),[B,H]=ao.useState(),W=Vc(t,h),G=ao.useCallback((e=>{F.current=e,e&&j(e)}),[]),V=null==z?void 0:z.parentNode;ao.useImperativeHandle(W,(()=>({focus:()=>{F.current.focus()},node:q.current,value:D})),[D]),ao.useEffect((()=>{u&&O&&z&&!$&&(H(a?null:V.clientWidth),F.current.focus())}),[z,a]),ao.useEffect((()=>{i&&F.current.focus()}),[i]),ao.useEffect((()=>{if(!g)return;const e=Fc(F.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&F.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const U=(e,t)=>{e?w&&w(t):E&&E(t),$||(H(a?null:V.clientWidth),N(e))},Y=ao.Children.toArray(l),K=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(b){n=Array.isArray(D)?D.slice():[];const t=D.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),D!==n&&(T(n),S)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:y}}),S(o,e)}b||U(!1,t)}},X=null!==z&&O;let Q,J;delete A["aria-invalid"];const Z=[];let ee=!1;(Nw({value:D})||p)&&(k?Q=k(D):ee=!0);const te=Y.map((e=>{if(!ao.isValidElement(e))return null;let t;if(b){if(!Array.isArray(D))throw new Error(Bo(2));t=D.some((t=>Sk(t,e.props.value))),t&&ee&&Z.push(e.props.children)}else t=Sk(D,e.props.value),t&&ee&&(J=e.props.children);return ao.cloneElement(e,{"aria-selected":t?"true":"false",onClick:K(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));ee&&(Q=b?0===Z.length?null:Z.reduce(((e,t,n)=>(e.push(t),n<Z.length-1&&e.push(", "),e)),[]):J);let ne,re=B;!a&&$&&z&&(re=V.clientWidth),ne=void 0!==M?M:d?null:0;const oe=I.id||(y?`mui-component-select-${y}`:void 0),ie=Wo({},e,{variant:P,value:D,open:X,error:f}),ae=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return Fs({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${qc(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},mk,t)})(ie),le=Wo({},v.PaperProps,null==(n=v.slotProps)?void 0:n.paper),se=Hc();return fc.jsxs(ao.Fragment,{children:[fc.jsx(bk,Wo({ref:G,tabIndex:ne,role:"combobox","aria-controls":se,"aria-disabled":d?"true":void 0,"aria-expanded":X?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,oe].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!L){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),U(!0,e))}},onMouseDown:d||L?null:e=>{0===e.button&&(e.preventDefault(),F.current.focus(),U(!0,e))},onBlur:e=>{!X&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:D,name:y}}),x(e))},onFocus:C},I,{ownerState:ie,className:Fd(I.className,ae.select,s),id:oe,children:Ek(Q)?hk||(hk=fc.jsx("span",{className:"notranslate",children:"​"})):Q})),fc.jsx(xk,Wo({"aria-invalid":f,value:Array.isArray(D)?D.join(","):D,name:y,ref:q,"aria-hidden":!0,onChange:e=>{const t=Y.find((t=>t.props.value===e.target.value));void 0!==t&&(T(t.props.value),S&&S(e,t))},tabIndex:-1,disabled:d,className:ae.nativeInput,autoFocus:i,ownerState:ie},A)),fc.jsx(yk,{as:m,className:ae.icon,ownerState:ie}),fc.jsx(HL,Wo({id:`menu-${y||""}`,anchorEl:V,open:X,onClose:e=>{U(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:Wo({"aria-labelledby":g,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:se},v.MenuListProps),slotProps:Wo({},v.slotProps,{paper:Wo({},le,{style:Wo({minWidth:re},null!=le?le.style:null)})}),children:te}))]})}));var wk=Ck;const Rk=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Lk=["root"],kk={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ad(e)&&"variant"!==e,slot:"Root"},Ik=Od(JR,kk)(""),Mk=Od(fk,kk)(""),_k=Od($R,kk)(""),Pk=ao.forwardRef((function(e,t){const n=Pd({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=Zw,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:v=!1,onClose:b,onOpen:y,open:x,renderValue:S,SelectDisplayProps:E,variant:C="outlined"}=n,w=Go(n,Rk),R=v?ok:wk,L=Pw({props:n,muiFormControl:Dw(),states:["variant","error"]}),k=L.variant||C,I=Wo({},n,{variant:k,classes:i}),M=(e=>{const{classes:t}=e;return t})(I),_=Go(M,Lk),P=d||{standard:fc.jsx(Ik,{ownerState:I}),outlined:fc.jsx(Mk,{label:f,ownerState:I}),filled:fc.jsx(_k,{ownerState:I})}[k],A=Vc(t,P.ref);return fc.jsx(ao.Fragment,{children:ao.cloneElement(P,Wo({inputComponent:R,inputProps:Wo({children:o,error:L.error,IconComponent:u,variant:k,type:void 0,multiple:g},v?{id:c}:{autoWidth:r,defaultOpen:l,displayEmpty:s,labelId:m,MenuProps:h,onClose:b,onOpen:y,open:x,renderValue:S,SelectDisplayProps:Wo({id:c},E)},p,{classes:p?Nc(_,p.classes):_},d?d.props.inputProps:{})},g&&v&&"outlined"===k?{notched:!0}:{},{ref:A,className:Fd(P.props.className,a,M.root)},!d&&{variant:k},w))})}));Pk.muiName="Select";var Ak=Pk,Dk=(e={})=>lo.createElement(Io,{...e},lo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},lo.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},lo.createElement("rect",{stroke:co.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const Tk={MuiAccordion:{styleOverrides:{root:{backgroundColor:co.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:co.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:lo.createElement(Ro,{"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 ${co.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:co.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${co.MISC_FOCUS_BORDER}`,borderRadius:go,backgroundColor:co.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 ${co.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:co.WHITE,color:co.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:go},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${co.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:co.GREYSCALE_0_15,backgroundColor:co.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:co.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${co.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:co.GREEN_PALE},"&:active":{backgroundColor:co.GREEN_DARK},"&.Mui-focusVisible":{borderColor:co.GREEN_PALE,boxShadow:`0 0 0 3px ${Dc(co.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:co.BLUE_PALE},"&:active":{backgroundColor:co.BLUE_DARK},"&.Mui-focusVisible":{borderColor:co.BLUE_PALE,boxShadow:`0 0 0 3px ${Dc(co.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:go,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:co.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${co.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:co.GREYSCALE_0_15,backgroundColor:co.GREYSCALE_100_60,"&:active":{backgroundColor:co.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:co.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${co.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:co.PURPLE,"&.Mui-focusVisible":{borderColor:co.PURPLE,boxShadow:`0 0 0 3px ${Dc(co.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:co.GREEN,"&.Mui-focusVisible":{borderColor:co.GREEN,boxShadow:`0 0 0 3px ${Dc(co.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:co.BLUE,"&.Mui-focusVisible":{borderColor:co.BLUE,boxShadow:`0 0 0 3px ${Dc(co.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:co.ORANGE,"&.Mui-focusVisible":{borderColor:co.ORANGE,boxShadow:`0 0 0 3px ${Dc(co.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:co.RED,"&.Mui-focusVisible":{borderColor:co.RED,boxShadow:`0 0 0 3px ${Dc(co.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:co.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:co.PURPLE_PALE},"&:active":{backgroundColor:co.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:co.PURPLE_PALE,boxShadow:`0 0 0 3px ${Dc(co.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:co.GREEN_PALE},"&:active":{backgroundColor:co.GREEN_DARK},"&.Mui-focusVisible":{borderColor:co.GREEN_PALE,boxShadow:`0 0 0 3px ${Dc(co.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:co.BLUE_PALE},"&:active":{backgroundColor:co.BLUE_DARK},"&.Mui-focusVisible":{borderColor:co.BLUE_PALE,boxShadow:`0 0 0 3px ${Dc(co.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:co.ORANGE_PALE},"&:active":{backgroundColor:co.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:co.ORANGE_PALE,boxShadow:`0 0 0 3px ${Dc(co.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:co.RED_PALE},"&:active":{backgroundColor:co.RED_DARK},"&.Mui-focusVisible":{borderColor:co.RED_PALE,boxShadow:`0 0 0 3px ${Dc(co.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:co.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:co.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:go,boxShadow:`inset 0 0 0 2px ${co.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:lo.createElement(ko,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:po,borderRadius:go,color:co.TEXT_PRIMARY,backgroundColor:co.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:co.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${co.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:co.GREYSCALE_0_05,color:co.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:co.GREEN,borderColor:co.GREEN},"&.MuiChip-outlinedInfo":{color:co.BLUE,borderColor:co.BLUE},"&.MuiChip-outlinedWarning":{color:co.ORANGE,borderColor:co.ORANGE},"&.MuiChip-outlinedError":{color:co.RED,borderColor:co.RED}},outlined:{border:`solid 1px ${co.GREYSCALE_0_15}`,backgroundColor:co.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:go,boxShadow:"none",backgroundColor:co.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:co.GREEN,borderColor:co.GREEN},outlinedSecondary:{color:co.BLUE,borderColor:co.BLUE},label:{fontFamily:So.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:lo.createElement(ko,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:lo.createElement(Ro,{"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:go},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:go,fontSize:fo,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:co.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${co.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:co.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:co.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:co.GREYSCALE_0_05}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:go,border:`solid 1px ${co.GREYSCALE_0_15}`,color:co.GREYSCALE_0_60,marginRight:0,width:ho,height:ho},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${co.GREYSCALE_0_15}`},clearIndicator:{borderRadius:go,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:co.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:fo}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:po,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:co.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:co.GREYSCALE_25,fontSize:po,fontFamily:So.FONT_FAMILY,fontWeight:yo,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:co.TEXT_PRIMARY},"&.Mui-error":{color:co.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:co.TEXT_SECONDARY,content:"'(optional)'",fontWeight:bo,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:co.TEXT_SECONDARY,content:"'(required)'",fontWeight:bo,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:fo,lineHeight:"16px",backgroundColor:co.WHITE,borderRadius:go,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${co.GREYSCALE_0_05}`,borderColor:co.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${co.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${co.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${co.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${co.RED}`,boxShadow:`0px 0px 0px 1px ${co.RED}, inset 0 2px 0 0 ${co.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${co.GREYSCALE_0_10}`,borderColor:co.GREYSCALE_0_10,backgroundColor:co.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:co.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:co.GREYSCALE_0_15,borderRadius:go,boxShadow:`inset 0 2px 0 0 ${co.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>lo.createElement(Ro,{...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:co.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:co.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:co.GREYSCALE_0_03},"&:active":{backgroundColor:co.GREYSCALE_0_10},"&:focus":{backgroundColor:co.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${co.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${co.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:co.GREYSCALE_0_30,"&:hover":{backgroundColor:co.GREYSCALE_0_0,borderColor:co.GREYSCALE_0_15},"& ~svg":{color:co.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${co.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:go}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:co.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${co.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:co.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:fo,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:po,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:po,fontWeight:yo,color:co.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:yo}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${co.GREYSCALE_0_15}, 0px 0px 0px 1px ${co.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:lo.createElement(Po,null),checkedIcon:lo.createElement(Ao,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:co.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${co.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:co.GREEN_PALE,boxShadow:`0 0 0 3px ${Dc(co.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:co.BLUE_PALE,boxShadow:`0 0 0 3px ${Dc(co.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:co.GREYSCALE_0_20}},"&.Mui-disabled":{fill:co.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:lo.createElement(Dk,null),checkedIcon:lo.createElement(Mo,null),indeterminateIcon:lo.createElement(_o,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:go,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:co.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:co.GREYSCALE_0_55,color:co.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:co.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:co.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:co.GREYSCALE_0_55,"&:hover":{color:co.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:co.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:co.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:fo,color:co.TEXT_PRIMARY,lineHeight:"16px",fontWeight:yo},secondary:{fontSize:po,color:co.GREYSCALE_45,fontWeight:bo,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:fo,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:co.GREYSCALE_0_03},"&:active":{backgroundColor:co.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:fo,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:co.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:po,borderBottom:`solid 1px ${co.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:fo,color:co.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:co.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:co.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:co.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:co.RED}}},"&.Mui-focusVisible":{backgroundColor:co.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:co.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:co.GREEN,height:"24px","&.Mui-disabled":{color:co.GREYSCALE_0_15}},rail:{backgroundColor:co.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${co.GREYSCALE_0_05}`,borderRadius:go,boxShadow:`inset 0px 0px 0px 1px ${co.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${co.GREYSCALE_0_05}`,borderRadius:go},thumb:{height:"16px",width:"16px",borderRadius:go,backgroundColor:co.WHITE,boxShadow:`0px 1px 2px 0px ${co.GREYSCALE_0_15}, 0px 0px 0px 1px ${co.GREYSCALE_0_05}`,"&:hover":{borderRadius:go,boxShadow:`0 2px 4px 0 ${co.GREYSCALE_0_30}, 0 0 0 1px ${co.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${co.GREYSCALE_0_15}, 0 0 0 1px ${co.GREYSCALE_0_06}, 0 0 0 2px ${co.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${co.GREYSCALE_0_15}, 0 0 0 1px ${co.GREYSCALE_0_06}, 0 0 0 2px ${co.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:co.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:co.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:co.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:co.GREYSCALE_0_15},markLabel:{color:co.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:co.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:co.WHITE,color:co.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:co.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:co.GREEN_PALE,boxShadow:`0 0 0 3px ${Dc(co.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:co.BLUE_PALE,boxShadow:`0 0 0 3px ${Dc(co.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:co.GREYSCALE_0_15,borderRadius:go},thumb:{height:"16px",width:"16px",borderRadius:go,backgroundColor:co.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:fo,fontWeight:yo,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${co.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${co.MISC_FOCUS_BORDER}`,backgroundColor:co.GREYSCALE_0_03,borderRadius:go},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:co.GREYSCALE_25,"&.Mui-selected":{color:co.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:fo,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${co.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${co.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${co.GREYSCALE_85}`,borderRight:`1px solid ${co.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:yo,backgroundColor:co.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:co.GREYSCALE_98,borderBottom:`1px solid ${co.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${co.GREYSCALE_85}`,borderTop:`1px solid ${co.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:co.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:co.GREYSCALE_0_05,"&:hover":{backgroundColor:co.GREYSCALE_0_03}},"&&:hover":{backgroundColor:co.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>lo.createElement(Do,{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 ${co.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:fo,borderRadius:go,padding:"7px 16px",border:`1px solid ${co.GREYSCALE_0_15}`,backgroundColor:co.GREYSCALE_100_60,color:co.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:co.GREYSCALE_0_10,border:`1px solid ${co.GREYSCALE_0_30}`},"&:hover":{backgroundColor:co.GREYSCALE_0_03,border:`1px solid ${co.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:co.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${co.MISC_FOCUS_BORDER}`,border:`1px solid ${co.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:co.GREYSCALE_25,backgroundColor:co.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:co.GREYSCALE_0_10,border:`1px solid ${co.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:po,height:24,width:24,padding:7},sizeLarge:{fontSize:mo,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:fo,borderRadius:go}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:co.GREYSCALE_20},tooltip:{backgroundColor:co.GREYSCALE_20,fontSize:po,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const Ok={mode:"light",primary:{light:co.GREEN_PALE,main:co.GREEN,dark:co.GREEN_DARK,contrastText:co.WHITE},secondary:{light:co.BLUE_PALE,main:co.BLUE,dark:co.BLUE_DARK,contrastText:co.WHITE},error:{light:co.RED_PALE,main:co.RED,dark:co.RED_DARK,contrastText:co.WHITE},warning:{light:co.ORANGE_PALE,main:co.ORANGE,dark:co.ORANGE_DARK,contrastText:co.WHITE},success:{light:co.GREEN_PALE,main:co.GREEN,dark:co.GREEN_DARK,contrastText:co.WHITE},info:{light:co.BLUE_PALE,main:co.BLUE,dark:co.BLUE_DARK,contrastText:co.WHITE},text:{primary:co.TEXT_PRIMARY,secondary:co.TEXT_SECONDARY,disabled:co.GREYSCALE_0_30},action:{hover:co.GREYSCALE_0_03,hoverOpacity:.05,selected:co.GREYSCALE_0_05,focus:co.MISC_FOCUS_BORDER},amethyst:{main:co.PURPLE,light:co.PURPLE_PALE,dark:co.PURPLE_DARK,contrastText:co.WHITE},background:{paper:co.WHITE,default:co.GREYSCALE_95},divider:co.GREYSCALE_0_15},Nk=e=>({components:Tk,palette:Ok,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:fo,fontWeightLight:vo,fontWeightRegular:bo,fontWeightMedium:yo,fontWeightBold:xo,htmlFontSize:fo,fontFamily:So.FONT_FAMILY,button:{fontWeight:yo,fontSize:fo,textTransform:"none"},body1:{fontSize:mo,lineHeight:"24px"},body2:{fontSize:fo,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:ho,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:mo,fontWeight:yo,lineHeight:"16px"},h6:{fontSize:fo,fontWeight:yo,lineHeight:"16px"},caption:{color:co.TEXT_SECONDARY},subtitle1:{fontSize:fo,color:co.TEXT_SECONDARY},subtitle2:{fontSize:po,color:co.TEXT_SECONDARY}},shape:{borderRadius:go}}),qk={...uo,MISC_FOCUS_BORDER:co.MISC_FOCUS_BORDER},Fk=Nk().palette,zk={TEXT:Fk.text.primary,DISABLED:Fk.text.disabled,HOVER:Fk.action.hover,WHITE:qk.GREYSCALE_100,BORDER_LIGHT:qk.GREYSCALE_90,BORDER_MEDIUM:qk.GREYSCALE_85,BORDER_HEAVY:qk.GREYSCALE_50,DARK_MODE_TEXT:qk.GREYSCALE_95,DARK_MODE_BORDER:qk.GREYSCALE_95,DARK_MODE_DISABLED:qk.GREYSCALE_70,DARK_MODE_BACKGROUND:qk.GREYSCALE_20,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:qk.GREYSCALE_95};function jk(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function $k(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Bk(){}var Hk=.7,Wk=1/Hk,Gk="\\s*([+-]?\\d+)\\s*",Vk="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Uk="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Yk=/^#([0-9a-f]{3,8})$/,Kk=new RegExp(`^rgb\\(${Gk},${Gk},${Gk}\\)$`),Xk=new RegExp(`^rgb\\(${Uk},${Uk},${Uk}\\)$`),Qk=new RegExp(`^rgba\\(${Gk},${Gk},${Gk},${Vk}\\)$`),Jk=new RegExp(`^rgba\\(${Uk},${Uk},${Uk},${Vk}\\)$`),Zk=new RegExp(`^hsl\\(${Vk},${Uk},${Uk}\\)$`),eI=new RegExp(`^hsla\\(${Vk},${Uk},${Uk},${Vk}\\)$`),tI={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 nI(){return this.rgb().formatHex()}function rI(){return this.rgb().formatRgb()}function oI(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Yk.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?iI(t):3===n?new uI(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?aI(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?aI(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=Kk.exec(e))?new uI(t[1],t[2],t[3],1):(t=Xk.exec(e))?new uI(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Qk.exec(e))?aI(t[1],t[2],t[3],t[4]):(t=Jk.exec(e))?aI(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Zk.exec(e))?hI(t[1],t[2]/100,t[3]/100,1):(t=eI.exec(e))?hI(t[1],t[2]/100,t[3]/100,t[4]):tI.hasOwnProperty(e)?iI(tI[e]):"transparent"===e?new uI(NaN,NaN,NaN,0):null}function iI(e){return new uI(e>>16&255,e>>8&255,255&e,1)}function aI(e,t,n,r){return r<=0&&(e=t=n=NaN),new uI(e,t,n,r)}function lI(e){return e instanceof Bk||(e=oI(e)),e?new uI((e=e.rgb()).r,e.g,e.b,e.opacity):new uI}function sI(e,t,n,r){return 1===arguments.length?lI(e):new uI(e,t,n,null==r?1:r)}function uI(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function cI(){return`#${mI(this.r)}${mI(this.g)}${mI(this.b)}`}function dI(){const e=pI(this.opacity);return`${1===e?"rgb(":"rgba("}${fI(this.r)}, ${fI(this.g)}, ${fI(this.b)}${1===e?")":`, ${e})`}`}function pI(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function fI(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function mI(e){return((e=fI(e))<16?"0":"")+e.toString(16)}function hI(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new vI(e,t,n,r)}function gI(e){if(e instanceof vI)return new vI(e.h,e.s,e.l,e.opacity);if(e instanceof Bk||(e=oI(e)),!e)return new vI;if(e instanceof vI)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new vI(a,l,s,e.opacity)}function vI(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function bI(e){return(e=(e||0)%360)<0?e+360:e}function yI(e){return Math.max(0,Math.min(1,e||0))}function xI(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}jk(Bk,oI,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:nI,formatHex:nI,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return gI(this).formatHsl()},formatRgb:rI,toString:rI}),jk(uI,sI,$k(Bk,{brighter(e){return e=null==e?Wk:Math.pow(Wk,e),new uI(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Hk:Math.pow(Hk,e),new uI(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new uI(fI(this.r),fI(this.g),fI(this.b),pI(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:cI,formatHex:cI,formatHex8:function(){return`#${mI(this.r)}${mI(this.g)}${mI(this.b)}${mI(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:dI,toString:dI})),jk(vI,(function(e,t,n,r){return 1===arguments.length?gI(e):new vI(e,t,n,null==r?1:r)}),$k(Bk,{brighter(e){return e=null==e?Wk:Math.pow(Wk,e),new vI(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Hk:Math.pow(Hk,e),new vI(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,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new uI(xI(e>=240?e-240:e+120,o,r),xI(e,o,r),xI(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new vI(bI(this.h),yI(this.s),yI(this.l),pI(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=pI(this.opacity);return`${1===e?"hsl(":"hsla("}${bI(this.h)}, ${100*yI(this.s)}%, ${100*yI(this.l)}%${1===e?")":`, ${e})`}`}}));const SI=Math.PI/180,EI=180/Math.PI,CI=.96422,wI=1,RI=.82521,LI=4/29,kI=6/29,II=3*kI*kI,MI=kI*kI*kI;function _I(e){if(e instanceof PI)return new PI(e.l,e.a,e.b,e.opacity);if(e instanceof qI)return FI(e);e instanceof uI||(e=lI(e));var t,n,r=OI(e.r),o=OI(e.g),i=OI(e.b),a=AI((.2225045*r+.7168786*o+.0606169*i)/wI);return r===o&&o===i?t=n=a:(t=AI((.4360747*r+.3850649*o+.1430804*i)/CI),n=AI((.0139322*r+.0971045*o+.7141733*i)/RI)),new PI(116*a-16,500*(t-a),200*(a-n),e.opacity)}function PI(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function AI(e){return e>MI?Math.pow(e,1/3):e/II+LI}function DI(e){return e>kI?e*e*e:II*(e-LI)}function TI(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function OI(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function NI(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof qI)return new qI(e.h,e.c,e.l,e.opacity);if(e instanceof PI||(e=_I(e)),0===e.a&&0===e.b)return new qI(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*EI;return new qI(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new qI(e,t,n,null==r?1:r)}function qI(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function FI(e){if(isNaN(e.h))return new PI(e.l,0,0,e.opacity);var t=e.h*SI;return new PI(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}jk(PI,(function(e,t,n,r){return 1===arguments.length?_I(e):new PI(e,t,n,null==r?1:r)}),$k(Bk,{brighter(e){return new PI(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new PI(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,n=isNaN(this.b)?e:e-this.b/200;return new uI(TI(3.1338561*(t=CI*DI(t))-1.6168667*(e=wI*DI(e))-.4906146*(n=RI*DI(n))),TI(-.9787684*t+1.9161415*e+.033454*n),TI(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),jk(qI,NI,$k(Bk,{brighter(e){return new qI(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new qI(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return FI(this).rgb()}}));const zI=(e,t)=>{const n=NI(e),r=n.l<70;return 0===n.opacity?(n.opacity=t.opacity,n.toString()):r?n.brighter(t.brighter).toString():n.darker(t.darker).toString()},jI=e=>{if(e){const t=sI(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},$I=e=>!!e&&0===sI(e).opacity,BI=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,HI=e=>{const t=BI.exec(e);if(t){const[,e,n,r,o]=t;return sI(+n,+r,+o,+e/255)}return sI(e)},WI=e=>{const t=HI(e);return Number.isNaN(t.r)?null:t.toString()},GI=e=>{e.stopPropagation(),e.preventDefault()},VI="#grid",UI=(e,t)=>{const n=null==t?void 0:t.closest(e);return n&&window.getComputedStyle(n).backgroundColor},YI=(e,t,n,r,o)=>{const i=UI(".qv-object .qv-inner-object",n),a=UI(".qv-panel-sheet",n),l=UI(VI,n),s=null!=l?l:a,u=(e=>{var t,n,r,o,i,a;const l=null===(t=e.components)||void 0===t?void 0:t.find((e=>"general"===e.key)),s=null==l||null===(n=l.bgColor)||void 0===n?void 0:n.colorExpression,u=null==l||null===(r=l.bgColor)||void 0===r||null===(r=r.color)||void 0===r?void 0:r.color;if((null==l||null===(o=l.bgColor)||void 0===o?void 0:o.useColorExpression)&&s)return WI(s);if("none"===u)return"transparent";if(void 0===u)return;const c=HI(u);return c.opacity=null!==(i=null==l||null===(a=l.bgColor)||void 0===a||null===(a=a.color)||void 0===a?void 0:a.alpha)&&void 0!==i?i:c.opacity,c.toString()})(e),c=null==r?void 0:r(t),d=null==o?void 0:o(t),p=c||i||d,f=$I(p),m=jI(f?s:p),h=((e,t,n)=>e&&!$I(e)?e:$I(t)?n&&!$I(n)?n:zk.WHITE:t)(u,p,s);return{color:p,headerColor:h,isDark:m}},KI=(t,n,r,o)=>{const i=e.useTheme(),a=((t,n={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,o]=e.useState([]);return e.useEffect((()=>{let e;return t&&(e=new MutationObserver((e=>{o(e)})),e.observe(t,n)),()=>{var t;null===(t=e)||void 0===t||t.disconnect()}}),[t,n]),r})(null==n?void 0:n.closest(VI),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>null==e?void 0:e.includes("background"))).map((({oldValue:e})=>e)).join(",");return e.useMemo((()=>({...i,background:YI(t,i,n,r,o)})),[i.name(),n,r,o,t,a])};function XI(t,n){const r=e.useMemo((()=>({isLoading:!0})),n),[o,i]=e.usePromise((async()=>{try{return await t()}finally{r.isLoading=!1}}),n);return[o,r.isLoading,i]}const QI=3,JI="N";function ZI(e,t,n){let r=0,o=e.length;if(e.length<=1)return null;if(n(e)<=t)return null;for(;r<=o;){const i=Math.floor((r+o)/2),a=e.slice(0,i),l=e.slice(0,i-1),s=n(a),u=n(l);if(s>t&&u<=t)return e.slice(i-1)||null;if(s===t)return e.slice(i)||null;s<t?r=i+1:o=i}return null}function eM({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},o){const{maxNbrLinesOfText:i=QI}=null!=o?o:{},{estimateWidth:a,measureText:l,estimateLineCount:s}=ao.useMemo((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${n} ${r} ${e} ${t}`;const a=wn(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=wn((({text:e,maxWidth:t,isNumeric:n=!1})=>{if(n)return 1;let r=0,o=e;do{r+=1,o=ZI(o,t,l)}while(null!==o&&r<i);return r}),(({text:e,maxWidth:t,isNumeric:n})=>`${e}-${t}-${n?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a(JI).width*e,estimateLineCount:s}}),[n,r,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:s}}var tM,nM=pC;tM=nM.createRoot,nM.hydrateRoot;function rM(e,t){const[n,r]=ao.useState(t);n.some(((e,n)=>e!==t[n]))&&(r(t),e())}var oM={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_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_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 iM=({translator:e})=>(ao.useMemo((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(oM).forEach((t=>{e.add(oM[t])}))}}(e)),[e]),e),aM=document.createElement("textarea");function lM(e){aM.value=e,document.body.appendChild(aM),aM.select(),aM.setSelectionRange(0,aM.value.length),document.execCommand("copy"),document.body.removeChild(aM)}aM.style.position="absolute",aM.style.left="-9999px",aM.setAttribute("readonly","");function sM(){null===e.onContextMenu||void 0===e.onContextMenu||e.onContextMenu(((e,t)=>{const n=t.target,r=null==n?void 0:n.closest(`.${Je}`);null!=r&&r.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{(e=>{var t;const n=e.title;n&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(n).catch((()=>lM(n))):lM(n))})(r)}})}))}var uM="$$material";const cM=["values","unit","step"],dM=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>mr({},e,{[t.key]:t.val})),{})};function pM(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Sr(e,cM),i=dM(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return mr({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}var fM={borderRadius:4};function mM(e,t){return t?$l(e,t,{clone:!1}):e}const hM={xs:0,sm:600,md:900,lg:1200,xl:1536},gM={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${hM[e]}px)`};function vM(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||gM;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||gM;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||hM).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function bM(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function yM(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:bM(e,n)||r,t&&(o=t(o,r,e)),o}function xM(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=bM(e.theme,r)||{};return vM(e,i,(e=>{let r=yM(a,o,e);return e===r&&"string"==typeof e&&(r=yM(a,o,`${t}${"default"===e?"":fs(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const SM={m:"margin",p:"padding"},EM={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},CM={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},wM=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!CM[e])return[e];e=CM[e]}const[t,n]=e.split(""),r=SM[t],o=EM[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),RM=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],LM=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function kM(e,t,n,r){var o;const i=null!=(o=bM(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function IM(e){return kM(e,"spacing",8)}function MM(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function _M(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=MM(t,n),e)),{})}(wM(n),r);return vM(e,e[n],o)}function PM(e,t){const n=IM(e.theme);return Object.keys(e).map((r=>_M(e,t,r,n))).reduce(mM,{})}function AM(e){return PM(e,RM)}function DM(e){return PM(e,LM)}function TM(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?mM(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function OM(e){return"number"!=typeof e?e:`${e}px solid`}function NM(e,t){return xM({prop:e,themeKey:"borders",transform:t})}AM.propTypes={},AM.filterProps=RM,DM.propTypes={},DM.filterProps=LM;const qM=NM("border",OM),FM=NM("borderTop",OM),zM=NM("borderRight",OM),jM=NM("borderBottom",OM),$M=NM("borderLeft",OM),BM=NM("borderColor"),HM=NM("borderTopColor"),WM=NM("borderRightColor"),GM=NM("borderBottomColor"),VM=NM("borderLeftColor"),UM=NM("outline",OM),YM=NM("outlineColor"),KM=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=kM(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:MM(t,e)});return vM(e,e.borderRadius,n)}return null};KM.propTypes={},KM.filterProps=["borderRadius"],TM(qM,FM,zM,jM,$M,BM,HM,WM,GM,VM,KM,UM,YM);const XM=e=>{if(void 0!==e.gap&&null!==e.gap){const t=kM(e.theme,"spacing",8),n=e=>({gap:MM(t,e)});return vM(e,e.gap,n)}return null};XM.propTypes={},XM.filterProps=["gap"];const QM=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=kM(e.theme,"spacing",8),n=e=>({columnGap:MM(t,e)});return vM(e,e.columnGap,n)}return null};QM.propTypes={},QM.filterProps=["columnGap"];const JM=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=kM(e.theme,"spacing",8),n=e=>({rowGap:MM(t,e)});return vM(e,e.rowGap,n)}return null};JM.propTypes={},JM.filterProps=["rowGap"];function ZM(e,t){return"grey"===t?t:e}TM(XM,QM,JM,xM({prop:"gridColumn"}),xM({prop:"gridRow"}),xM({prop:"gridAutoFlow"}),xM({prop:"gridAutoColumns"}),xM({prop:"gridAutoRows"}),xM({prop:"gridTemplateColumns"}),xM({prop:"gridTemplateRows"}),xM({prop:"gridTemplateAreas"}),xM({prop:"gridArea"}));function e_(e){return e<=1&&0!==e?100*e+"%":e}TM(xM({prop:"color",themeKey:"palette",transform:ZM}),xM({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ZM}),xM({prop:"backgroundColor",themeKey:"palette",transform:ZM}));const t_=xM({prop:"width",transform:e_}),n_=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||hM[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:e_(t)}};return vM(e,e.maxWidth,t)}return null};n_.filterProps=["maxWidth"];const r_=xM({prop:"minWidth",transform:e_}),o_=xM({prop:"height",transform:e_}),i_=xM({prop:"maxHeight",transform:e_}),a_=xM({prop:"minHeight",transform:e_});xM({prop:"size",cssProperty:"width",transform:e_}),xM({prop:"size",cssProperty:"height",transform:e_});TM(t_,n_,r_,o_,i_,a_,xM({prop:"boxSizing"}));var l_={border:{themeKey:"borders",transform:OM},borderTop:{themeKey:"borders",transform:OM},borderRight:{themeKey:"borders",transform:OM},borderBottom:{themeKey:"borders",transform:OM},borderLeft:{themeKey:"borders",transform:OM},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:OM},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:KM},color:{themeKey:"palette",transform:ZM},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ZM},backgroundColor:{themeKey:"palette",transform:ZM},p:{style:DM},pt:{style:DM},pr:{style:DM},pb:{style:DM},pl:{style:DM},px:{style:DM},py:{style:DM},padding:{style:DM},paddingTop:{style:DM},paddingRight:{style:DM},paddingBottom:{style:DM},paddingLeft:{style:DM},paddingX:{style:DM},paddingY:{style:DM},paddingInline:{style:DM},paddingInlineStart:{style:DM},paddingInlineEnd:{style:DM},paddingBlock:{style:DM},paddingBlockStart:{style:DM},paddingBlockEnd:{style:DM},m:{style:AM},mt:{style:AM},mr:{style:AM},mb:{style:AM},ml:{style:AM},mx:{style:AM},my:{style:AM},margin:{style:AM},marginTop:{style:AM},marginRight:{style:AM},marginBottom:{style:AM},marginLeft:{style:AM},marginX:{style:AM},marginY:{style:AM},marginInline:{style:AM},marginInlineStart:{style:AM},marginInlineEnd:{style:AM},marginBlock:{style:AM},marginBlockStart:{style:AM},marginBlockEnd:{style:AM},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:XM},rowGap:{style:JM},columnGap:{style:QM},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:e_},maxWidth:{style:n_},minWidth:{transform:e_},height:{transform:e_},maxHeight:{transform:e_},minHeight:{transform:e_},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function s_(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=bM(n,l)||{};if(u)return u(o);return vM(o,t,(t=>{let n=yM(c,s,t);return t===n&&"string"==typeof t&&(n=yM(c,s,`${e}${"default"===t?"":fs(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:l_;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[n])s=mM(s,e(n,o,i,a));else{const e=vM({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=mM(s,e):s[n]=t({sx:o,theme:i})}else s=mM(s,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const u_=s_();u_.filterProps=["sx"];var c_=u_;function d_(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}const p_=["breakpoints","palette","spacing","shape"];function f_(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Sr(e,p_),l=pM(n),s=function(e=8){if(e.mui)return e;const t=IM({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(o);let u=$l({breakpoints:l,direction:"ltr",components:{},palette:mr({mode:"light"},r),spacing:s,shape:mr({},fM,i)},a);return u.applyStyles=d_,u=t.reduce(((e,t)=>$l(e,t)),u),u.unstable_sxConfig=mr({},l_,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return c_({sx:e,theme:this})},u}var m_=Object.freeze({__proto__:null,default:f_,private_createBreakpoints:pM,unstable_applyStyles:d_});function h_(e=null){const t=ao.useContext(El);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const g_=f_();function v_(e=g_){return h_(e)}const b_=["sx"],y_=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:l_;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function x_(e){const{sx:t}=e,n=Sr(e,b_),{systemProps:r,otherProps:o}=y_(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return zl(n)?mr({},r,n):r}:mr({},r,t),mr({},o,{sx:i})}var S_=Object.freeze({__proto__:null,default:c_,extendSxProp:x_,unstable_createStyleFunctionSx:s_,unstable_defaultSxConfig:l_});const E_=["className","component"];function C_(e){if(e.type)return e;if("#"===e.charAt(0))return C_(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Vo(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(Vo(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function w_(e,t){return e=C_(e),t=function(e,t=0,n=1){return Ws(e,t,n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}(e)}var R_=ao.createContext(null);function L_(){return ao.useContext(R_)}var k_="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function I_(e){const{children:t,theme:n}=e,r=L_(),o=ao.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return mr({},e,t)}(r,n);return null!=e&&(e[k_]=null!==r),e}),[n,r]);return fc.jsx(R_.Provider,{value:o,children:t})}const M_=["value"],__=ao.createContext();function P_(e){let{value:t}=e,n=Sr(e,M_);return fc.jsx(__.Provider,mr({value:null==t||t},n))}const A_=ao.createContext(void 0);function D_({value:e,children:t}){return fc.jsx(A_.Provider,{value:e,children:t})}function T_({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?qs(o.defaultProps,r):o.styleOverrides||o.variants?r:qs(o,r)}({props:e,name:t,theme:{components:ao.useContext(A_)}})}const O_={};function N_(e,t,n,r=!1){return ao.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?mr({},t,{[e]:i}):i;return r?()=>a:a}return mr({},t,e?{[e]:n}:n)}),[e,t,n,r])}function q_(e){const{children:t,theme:n,themeId:r}=e,o=h_(O_),i=L_()||O_,a=N_(r,o,n),l=N_(r,i,n,!0),s="rtl"===a.direction;return fc.jsx(I_,{theme:l,children:fc.jsx(El.Provider,{value:a,children:fc.jsx(P_,{value:s,children:fc.jsx(D_,{value:null==a?void 0:a.components,children:t})})})})}var F_={},z_={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(z_);var j_=z_.exports,$_=r(Uo),B_=r(Gs),H_=j_;Object.defineProperty(F_,"__esModule",{value:!0});var W_=F_.alpha=rP;F_.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=J_(e),a=J_(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return eP({type:"rgb",values:l})},F_.colorChannel=void 0;var G_=F_.darken=oP;F_.decomposeColor=J_,F_.emphasize=aP;var V_=F_.getContrastRatio=function(e,t){const n=nP(e),r=nP(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};F_.getLuminance=nP,F_.hexToRgb=Q_,F_.hslToRgb=tP;var U_=F_.lighten=iP;F_.private_safeAlpha=function(e,t,n){try{return rP(e,t)}catch(t){return e}},F_.private_safeColorChannel=void 0,F_.private_safeDarken=function(e,t,n){try{return oP(e,t)}catch(t){return e}},F_.private_safeEmphasize=function(e,t,n){try{return aP(e,t)}catch(t){return e}},F_.private_safeLighten=function(e,t,n){try{return iP(e,t)}catch(t){return e}},F_.recomposeColor=eP,F_.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=J_(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var Y_=H_($_),K_=H_(B_);function X_(e,t=0,n=1){return(0,K_.default)(e,t,n)}function Q_(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function J_(e){if(e.type)return e;if("#"===e.charAt(0))return J_(Q_(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,Y_.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,Y_.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const Z_=e=>{const t=J_(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};F_.colorChannel=Z_;function eP(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function tP(e){e=J_(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),eP({type:l,values:s})}function nP(e){let t="hsl"===(e=J_(e)).type||"hsla"===e.type?J_(tP(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function rP(e,t){return e=J_(e),t=X_(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,eP(e)}function oP(e,t){if(e=J_(e),t=X_(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return eP(e)}function iP(e,t){if(e=J_(e),t=X_(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return eP(e)}function aP(e,t=.15){return nP(e)>.5?oP(e,t):iP(e,t)}F_.private_safeColorChannel=(e,t)=>{try{return Z_(e)}catch(t){return e}};var lP={black:"#000",white:"#fff"};var sP={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};var uP={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var cP={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"};var dP={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"};var pP={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"};var fP={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var mP={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"};const hP=["mode","contrastThreshold","tonalOffset"],gP={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:lP.white,default:lP.white},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}},vP={text:{primary:lP.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:lP.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 bP(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=U_(e.main,o):"dark"===t&&(e.dark=G_(e.main,i)))}function yP(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Sr(e,hP),i=e.primary||function(e="light"){return"dark"===e?{main:pP[200],light:pP[50],dark:pP[400]}:{main:pP[700],light:pP[400],dark:pP[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:uP[200],light:uP[50],dark:uP[400]}:{main:uP[500],light:uP[300],dark:uP[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:cP[500],light:cP[300],dark:cP[700]}:{main:cP[700],light:cP[400],dark:cP[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:fP[400],light:fP[300],dark:fP[700]}:{main:fP[700],light:fP[500],dark:fP[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:mP[400],light:mP[300],dark:mP[700]}:{main:mP[800],light:mP[500],dark:mP[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:dP[400],light:dP[300],dark:dP[700]}:{main:"#ed6c02",light:dP[500],dark:dP[900]}}(t);function d(e){return V_(e,vP.text.primary)>=n?vP.text.primary:gP.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=mr({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Vo(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Vo(12,t?` (${t})`:"",JSON.stringify(e.main)));return bP(e,"light",o,r),bP(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:vP,light:gP};return $l(mr({common:mr({},lP),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:sP,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const xP=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const SP={textTransform:"uppercase"},EP='"Roboto", "Helvetica", "Arial", sans-serif';function CP(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=EP,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=Sr(n,xP),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,n,o,i)=>{return mr({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===EP?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,SP),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,SP),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return $l(mr({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function wP(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var RP=["none",wP(0,2,1,-1,0,1,1,0,0,1,3,0),wP(0,3,1,-2,0,2,2,0,0,1,5,0),wP(0,3,3,-2,0,3,4,0,0,1,8,0),wP(0,2,4,-1,0,4,5,0,0,1,10,0),wP(0,3,5,-1,0,5,8,0,0,1,14,0),wP(0,3,5,-1,0,6,10,0,0,1,18,0),wP(0,4,5,-2,0,7,10,1,0,2,16,1),wP(0,5,5,-3,0,8,10,1,0,3,14,2),wP(0,5,6,-3,0,9,12,1,0,3,16,2),wP(0,6,6,-3,0,10,14,1,0,4,18,3),wP(0,6,7,-4,0,11,15,1,0,4,20,3),wP(0,7,8,-4,0,12,17,2,0,5,22,4),wP(0,7,8,-4,0,13,19,2,0,5,24,4),wP(0,7,9,-4,0,14,21,2,0,5,26,4),wP(0,8,9,-5,0,15,22,2,0,6,28,5),wP(0,8,10,-5,0,16,24,2,0,6,30,5),wP(0,8,11,-5,0,17,26,2,0,6,32,5),wP(0,9,11,-5,0,18,28,2,0,7,34,6),wP(0,9,12,-6,0,19,29,2,0,7,36,6),wP(0,10,13,-6,0,20,31,3,0,8,38,7),wP(0,10,13,-6,0,21,33,3,0,8,40,7),wP(0,10,14,-6,0,22,35,3,0,8,42,7),wP(0,11,14,-7,0,23,36,3,0,9,44,8),wP(0,11,15,-7,0,24,38,3,0,9,46,8)];const LP=["duration","easing","delay"],kP={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)"},IP={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function MP(e){return`${Math.round(e)}ms`}function _P(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function PP(e){const t=mr({},kP,e.easing),n=mr({},IP,e.duration);return mr({getAutoHeightDuration:_P,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return Sr(r,LP),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:MP(o)} ${i} ${"string"==typeof a?a:MP(a)}`)).join(",")}},e,{easing:t,duration:n})}var AP={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const DP=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function TP(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Sr(e,DP);if(e.vars)throw new Error(Vo(18));const l=yP(r),s=f_(e);let u=$l(s,{mixins:(c=s.breakpoints,d=n,mr({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:RP.slice(),typography:CP(l,i),transitions:PP(o),zIndex:mr({},AP)});var c,d;return u=$l(u,a),u=t.reduce(((e,t)=>$l(e,t)),u),u.unstable_sxConfig=mr({},l_,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return c_({sx:e,theme:this})},u}var OP=TP();function NP(){const e=v_(OP);return e[uM]||e}var qP,FP={},zP={exports:{}};var jP,$P={exports:{}};var BP=r(Fl),HP=r(Hl),WP=r(ms),GP=r(ps),VP=r(m_),UP=r(S_),YP=j_;Object.defineProperty(FP,"__esModule",{value:!0});var KP=FP.default=function(e={}){const{themeId:t,defaultTheme:n=lA,rootShouldForwardProp:r=aA,slotShouldForwardProp:o=aA}=e,i=e=>(0,tA.default)((0,XP.default)({},e,{theme:uA((0,XP.default)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,JP.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=cA(sA(s))}=a,p=(0,QP.default)(a,oA),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=aA;"Root"===s||"root"===s?h=r:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=(0,JP.default)(e,(0,XP.default)({shouldForwardProp:h,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,ZP.isPlainObject)(e)?r=>dA(e,(0,XP.default)({},r,{theme:uA({theme:r.theme,defaultTheme:n,themeId:t})})):e,b=(r,...o)=>{let a=v(r);const s=o?o.map(v):[];l&&d&&s.push((e=>{const r=uA((0,XP.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=dA(n,(0,XP.default)({},e,{theme:r}))})),d(e,i)})),l&&!f&&s.push((e=>{var r;const o=uA((0,XP.default)({},e,{defaultTheme:n,themeId:t}));return dA({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},(0,XP.default)({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(b.withConfig=g.withConfig),b}};FP.shouldForwardProp=aA,FP.systemDefaultTheme=void 0;var XP=YP((qP||(qP=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(zP)),zP.exports)),QP=YP((jP||(jP=1,function(e){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports}($P)),$P.exports)),JP=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=iA(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(BP),ZP=HP;YP(WP),YP(GP);var eA=YP(VP),tA=YP(UP);const nA=["ownerState"],rA=["variants"],oA=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function iA(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(iA=function(e){return e?n:t})(e)}function aA(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const lA=FP.systemDefaultTheme=(0,eA.default)(),sA=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function uA({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function cA(e){return e?(t,n)=>n[e]:null}function dA(e,t){let{ownerState:n}=t,r=(0,QP.default)(t,nA);const o="function"==typeof e?e((0,XP.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>dA(e,(0,XP.default)({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,QP.default)(o,rA);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,XP.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,XP.default)({ownerState:n},r,n)):e.style))})),t}return o}var pA=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var fA=KP({themeId:uM,defaultTheme:OP,rootShouldForwardProp:pA});const mA=["theme"];function hA(e){let{theme:t}=e,n=Sr(e,mA);const r=t[uM];return fc.jsx(q_,mr({},n,{themeId:r?uM:void 0,theme:r||t}))}var gA=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};const vA=Od(pR,{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t})=>({pointerEvents:"auto",touchAction:"none",display:"flex",position:"absolute",height:"100%",top:0,cursor:"col-resize",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",marginLeft:"-4px","&:hover:not(:focus, :active)":{[`& .${tt}`]:{background:t||"#D9D9D9","@media (hover: none)":{background:"none"}}},"&:focus-visible, &:active":{outline:"none",[`& .${tt}`]:{background:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}}}))),bA=Od(pR)({position:"absolute",height:"100%",width:"3px"}),yA=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:l,setIsAdjustingWidth:s,isLeftColumn:u})=>{const c=ao.useRef({initWidth:e,columnWidth:e,initX:0}),d=n?0:1,p=r&&!u,f={left:p?c.current.columnWidth-d:"100%"},m=t=>{c.current={initWidth:e,columnWidth:e,initX:null!=t?t:c.current.initX}};rM((()=>p&&m()),[e]);const h=e=>{const t=Math.max(e,nt.PixelsMin);c.current.columnWidth=t,i(t)},g=()=>{if(c.current.columnWidth!==c.current.initWidth){const e={type:rt.Pixels,pixels:c.current.columnWidth};a(e)}else null==s||s(!1)},v=e=>{const t=c.current.initWidth+e.clientX-c.current.initX;h(t)},b=e=>{GI(e),document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",b),g()},y=e=>{const t=c.current.initWidth+e.touches[0].clientX-c.current.initX;h(t)},x=e=>{GI(e),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",x),g()},S=!r&&l?e=>{if(e.key===Ze.LEFT||e.key===Ze.RIGHT){GI(e);const t=5,n=e.key===Ze.LEFT?-t:t;h(c.current.columnWidth+n)}else e.key===Ze.SPACE||e.key===Ze.ENTER?(GI(e),l(e),g()):e.key===Ze.ESC&&(GI(e),l(e),h(c.current.initWidth))}:void 0;return lo.createElement(vA,{className:et,isLastColumn:n,hoverColor:o,style:f,key:t,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",v),document.addEventListener("mouseup",b),null==s||s(!0),m(e.clientX)},onDoubleClick:()=>a({type:rt.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",y),document.addEventListener("touchend",x),null==s||s(!0),m(e.touches[0].clientX))},onKeyDown:S,onBlur:l,onFocus:()=>m(),"data-testid":et},lo.createElement(bA,{className:tt}))};function xA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const SA=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){xA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})),EA=ao.forwardRef(SA);function CA(){return CA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CA.apply(null,arguments)}const wA=Od(pR,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e})((({rightAligned:e,shouldShowMenuIcon:t})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:24,display:t?"flex":"none",fontWeight:"bold",width:"100%",alignItems:"center",justifyContent:"center"}))),RA=Od(EA,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),LA=Od(HL)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),kA=Od(NR)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),IA=Od(YL)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),MA=Od(YL,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:n})=>({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:""+(n?"rgba(0, 0, 0, 0.05)":"transparent")}))),_A=Od("div")((({theme:e})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),PA=Od("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),AA=Od(fw)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),DA=Od(gL)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function TA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const OA=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){TA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})),NA=ao.forwardRef(OA);let qA={};const FA=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=ao.useState(!1),p=ao.useRef(null),f=ao.useCallback((e=>{e.stopPropagation(),d(!1)}),[d]);return lo.createElement(lo.Fragment,null,lo.createElement(MA,{ref:a?p:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),qA={}),null!=a&&a.length&&(d(!0),qA[r]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&lo.createElement(_A,null),lo.createElement(PA,null,lo.createElement(DA,null,lo.createElement(o,null)),lo.createElement(AA,{variant:"body2"},r)),null!=a&&a.length?lo.createElement(NA,null):null),(null==a?void 0:a.length)&&lo.createElement($A,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(m=a,h=qA,m.map((e=>e.map((e=>{var t;return{...e.groupHeading?{groupHeading:e.groupHeading}:{},items:null===(t=e.items)||void 0===t?void 0:t.map((({onClick:e,...t})=>({...t,...e?{onClick:async t=>{Object.entries(h).map((([,e])=>e(!1))),await e(t)}}:{}})))}}))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},handleHeadCellMenuKeyDown:u}));var m,h},zA=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map((e=>{var r;return[[e.groupHeading&&lo.createElement(IA,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(r=e.items)||void 0===r?void 0:r.map((e=>lo.createElement(FA,CA({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:n}))))].filter(Boolean)]})),jA={appear:200,enter:200,exit:100},$A=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:o,anchorOrigin:i,isSubMenu:a,handleHeadCellMenuKeyDown:l})=>r.length?lo.createElement(LA,CA({className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:n,transitionDuration:jA,MenuListProps:{id:"nebula-table-utils-head-menu-list-id"}},i?{anchorOrigin:i}:{},o?{transformOrigin:o}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map(((r,o)=>[zA({menuGroup:r,isSubMenu:t,handleHeadCellMenuKeyDown:n}),o<e.length-1?lo.createElement(kA,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:r,isSubMenu:a,handleHeadCellMenuKeyDown:l})):null,BA={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},HA=(e,t)=>e.some((e=>t[e]>0));function WA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const GA=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){WA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("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"})),VA=ao.forwardRef(GA);function UA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const YA=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){UA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("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"})),KA=ao.forwardRef(YA);function XA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const QA=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){XA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("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"})),JA=ao.forwardRef(QA);function ZA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const eD=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ZA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("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"})),tD=ao.forwardRef(eD);function nD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const rD=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){nD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("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"})),oD=ao.forwardRef(rD);function iD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const aD=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){iD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("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"})),lD=ao.forwardRef(aD);function sD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const uD=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){sD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("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"})),cD=ao.forwardRef(uD);function dD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const pD=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){dD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("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"})),fD=ao.forwardRef(pD);function mD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const hD=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){mD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("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"})),gD=ao.forwardRef(hD);function vD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const bD=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){vD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("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"})),yD=ao.forwardRef(bD);let xD=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const SD=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:l,selectionActionsEnabledStatus:s,anchorRef:u,setFocusOnColumnAdjuster:c})=>{const d=[];if(n[xD.SORTING]){const{isActivelySorted:n,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:l}=(({isActivelySorted:e,sortDirection:t,isPivot:n,isSortedByFirstMeasure:r})=>{let o=!n&&!e||"D"===t,i=!n&&!e||"A"===t;return r&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);d.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"A")),r(!1)},icon:VA,enabled:a,isActive:!!n&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"D")),r(!1)},icon:tD,enabled:l,isActive:!!n&&"D"===i,autoFocus:!a&&l}]}])}if(e.isDim&&null!=i&&i.select){const e=[];n[xD.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),a()},icon:oD,enabled:!0}]}]),n[xD.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:yD,enabled:!0,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectAll())},icon:lD,enabled:s.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectPossible())},icon:gD,enabled:s.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectAlternative())},icon:cD,enabled:s.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectExcluded())},icon:fD,enabled:s.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.clear())},icon:KA,enabled:s.canClearSelections}]}]]}]}]),e.length>0&&d.push(...e)}return n[xD.ADJUST_HEADER_SIZE]&&d.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),null==c||c(u)},icon:JA,enabled:!0}]}]),d},ED=({open:e,setOpen:t,anchorRef:n,headerData:r,translator:o,interactions:i,handleHeadCellMenuKeyDown:a,menuAvailabilityFlags:l,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p})=>{var f;const m=iM({translator:o}),{headTextAlign:h,qLibraryId:g,fieldId:v}=r,{fieldInstance:b,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:x,updateSelectionActionsEnabledStatus:S}=(({headerData:e,app:t})=>{const[n,r]=ao.useState(null),[o,i]=ao.useState(BA);return ao.useEffect((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(r).catch(console.error)}),[t,e]),{fieldInstance:n,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:ao.useCallback((()=>i(BA)),[]),updateSelectionActionsEnabledStatus:ao.useCallback((t=>{const n=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));n&&i({canSelectAll:HA(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:HA(["qSelected"],n.qStateCounts),canSelectPossible:HA(["qOption"],n.qStateCounts),canSelectAlternative:HA(["qAlternative"],n.qStateCounts),canSelectExcluded:HA(["qAlternative","qExcluded"],n.qStateCounts)})}),[e.label,i])}})({headerData:r,app:null==d?void 0:d.app}),E=ao.useCallback((()=>{const e=g?{qLibraryId:g,type:"dimension"}:v;if(null!=c&&c.embed&&c.listboxRef){const{embed:t,listboxRef:n}=c;t.__DO_NOT_USE__.popover(n.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},sortCriteria:c.sortCriteria})}}),[c,v,g]);ao.useEffect((()=>{e||(x(),null!=d&&d.model&&d.model.getLayout().then((e=>{S(e)})).catch((e=>console.error(e))))}),[e,x,S,null==d?void 0:d.model]);const C=ao.useCallback((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?lo.createElement(wA,{rightAligned:"right"===h,shouldShowMenuIcon:s,className:"nebula-table-utils-head-menu-wrapper"},s&&lo.createElement(RA,{height:Xe,className:Qe,"data-testid":Qe,isInteractionsActive:null!==(f=i.active)&&void 0!==f&&f},lo.createElement(EA,null)),lo.createElement($A,{open:e,anchorEl:n.current,onClose:C,menuGroups:SD({headerData:r,translator:m,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:E,interactions:i,fieldInstance:b,selectionActionsEnabledStatus:y,anchorRef:n,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster}),handleHeadCellMenuKeyDown:a})):null},CD=e=>e.isDark?{background:e.color,borderColor:zk.DARK_MODE_BORDER,color:zk.DARK_MODE_TEXT,disabledColor:zk.DARK_MODE_DISABLED,iconColor:zk.DARK_MODE_TEXT}:{background:e.color,borderColor:zk.BORDER_MEDIUM,color:zk.TEXT,disabledColor:zk.DISABLED},wD=Od(pR,{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}`}))),RD=Od(Ak,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),LD=Od(CR,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:n})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:n.spacing(1)}))),kD=Od(fw)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),ID=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=ao.useMemo((()=>CD(r.background)),[r]);if(!n.active)return null;const a=o?lo.createElement(wD,{footerStyle:i},e):null;return t?fC.createPortal(e,t):a},MD={},_D=ao.createContext(MD),PD=()=>ao.useContext(_D),AD=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:m,layout:h})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,v=ao.useMemo((()=>CD(p.background)),[p]),b=o?o.getBoundingClientRect().width:m.width,y=iM({translator:d}),x=ao.useMemo((()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:y,theme:p,interactions:f,rect:m,layout:h,footerStyle:v,tabIndex:g,width:b})),[t,n,r,o,i,a,l,s,u,c,y,p,f,m,h,v,g,b]);return lo.createElement(_D.Provider,{value:x},e)};let DD=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),TD=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}({});function OD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ND=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){OD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),qD=ao.forwardRef(ND);function FD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const zD=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){FD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})),jD=ao.forwardRef(zD);function $D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const BD=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){$D(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})),HD=ao.forwardRef(BD),WD={FirstPage:jD,PreviousPage:qD,NextPage:NA,LastPage:HD,FirstPageRTL:HD,PreviousPageRTL:NA,NextPageRTL:qD,LastPageRTL:jD},GD=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=PD(),u=WD[`${n}${"rtl"===r?"RTL":""}`];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${n}`),title:l.passive?a.get(`NebulaTableUtils.Pagination.${n}`):void 0,tabIndex:s,onClick:e?null:()=>i(t)},IconComponent:u}},VD=()=>{const{pageInfo:e,width:t}=PD(),n=0===e.page,{IconComponent:r,styledProps:o}=GD({type:DD.FirstPage,disabledCondition:n,pageNumber:0});return t<=TD.FirstPage?null:lo.createElement(LD,o,lo.createElement(r,{height:Xe}))},UD=(e,t,n=!1)=>{n&&e.key===Ze.TAB&&!e.shiftKey&&(GI(e),((e,t,n)=>{var r,o,i,a;const l=null!==(r=null===(o=e.closest(".qv-object-wrapper"))||void 0===o||null===(o=o.querySelector(".sel-toolbar-confirm"))||void 0===o?void 0:o.parentElement)&&void 0!==r?r:null===(i=document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm"))||void 0===i?void 0:i.parentElement;l?l.focus():null===(a=t.focusSelection)||void 0===a||a.call(t,n)})(e.target,t,!1))},YD=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=PD(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=GD({type:DD.LastPage,disabledCondition:i,pageNumber:n-1}),s=t.enabled?e=>UD(e,t,r):null;return o<=TD.LastPage?null:lo.createElement(LD,CA({},l,{onKeyDown:s}),lo.createElement(a,{height:Xe}))},KD=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=PD(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=GD({type:DD.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>TD.FirstPage&&o>TD.LastPage)&&t.enabled?e=>UD(e,t,r):null;return lo.createElement(LD,CA({},l,{onKeyDown:s}),lo.createElement(a,{height:Xe}))},XD=()=>{const{pageInfo:e}=PD(),t=0===e.page,{IconComponent:n,styledProps:r}=GD({type:DD.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return lo.createElement(LD,r,lo.createElement(n,{height:Xe}))},QD=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r}=PD(),{page:o,rowsPerPage:i}=n;if(t<=TD.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,r)}`,r.toString()]);return lo.createElement(kD,{variant:"caption"},a)},JD=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=PD(),s=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),c=`${e}-dropdown`,d=`${c}-label-${s}`,p={tabIndex:l,id:`${c}-${s}`,"data-testid":c,"aria-labelledby":d};return lo.createElement(lo.Fragment,null,lo.createElement(kD,{variant:"caption",id:d},u,":"),lo.createElement(RD,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:p},n))},ZD=()=>{var e;const{pageInfo:t,isSelectionMode:n,totalColumnCount:r,width:o,handleChangeRowsPerPage:i}=PD();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&o>TD.RowsPerPage&&r<=100)||void 0===t.rowsPerPageOptions)return null;const a=lo.createElement(lo.Fragment,null,t.rowsPerPageOptions.map((e=>lo.createElement("option",{key:e,value:e},e))));return lo.createElement(JD,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},eT=1e3,tT="…",nT=({totalPages:e,page:t})=>{const n=Math.min(e,eT),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-eT):0,a=Array.from(Array(n).keys()).map((e=>{const t=e+i;return lo.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(lo.createElement("option",{key:"startMoreOptions",value:tT,disabled:!0},tT)),o<e-1&&a.push(lo.createElement("option",{key:"endMoreOptions",value:tT,disabled:!0},tT)),lo.createElement(lo.Fragment,null,a)},rT=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r}=PD(),{page:o}=e;if(t<=TD.SelectPage)return null;const i=lo.createElement(nT,{totalPages:n,page:o});return lo.createElement(JD,{name:"SelectPage",value:o,options:i,handleChange:e=>r(+e.target.value)})},oT=e=>lo.createElement(AD,e,lo.createElement(ZD,null),lo.createElement(rT,null),lo.createElement(QD,null),lo.createElement(VD,null),lo.createElement(XD,null),lo.createElement(KD,null),lo.createElement(YD,null));var iT=ao.memo(oT);const aT=e=>lo.createElement(ID,e,lo.createElement(iT,e)),lT={},sT=ao.createContext(lT),uT=()=>ao.useContext(sT),cT=({children:e,model:t,app:n,interactions:r,embed:o,theme:i,keyboard:a,env:l,downloadService:s})=>{const u=ao.useMemo((()=>({model:t,app:n,interactions:r,embed:o,theme:i,keyboard:a,env:l,downloadService:s})),[n,r,t,o,i,a,l,s]);return fc.jsx(sT.Provider,{value:u,children:e})},dT=e=>{const{text:t,fontFamily:n,fontSize:r,justifyContent:o,alignItems:i,height:a}=(({translator:e,layoutService:t})=>{var n;const{theme:r}=uT(),o=null!==(n=r.getStyle("","","fontFamily"))&&void 0!==n?n:Hn;return t.hasData?t.hasLimitedData?{text:e.get("SNPivotTable.LimitedData"),fontSize:"13px",fontFamily:o,alignItems:"center",height:"22px"}:{}:{text:e.get("SNPivotTable.NoData"),fontSize:"16px",fontFamily:o,justifyContent:"center",alignItems:"center",height:"100%"}})(e);return void 0===t?null:fc.jsx("div",{style:{display:"flex",justifyContent:o,alignItems:i,width:"100%",height:a},children:fc.jsx("span",{style:{...Zn,fontFamily:n,fontSize:r,fontStyle:"italic",color:"#7b7a78"},children:t})})},pT={},fT=ao.createContext(pT),mT=()=>ao.useContext(fT),hT=({children:e,styleService:t})=>fc.jsx(fT.Provider,{value:t,children:e}),gT=21,vT=20,bT=vT,yT=16+Un+1,xT=.75,ST=e=>{var t;return-1!==e&&(null==e||null===(t=e.representation)||void 0===t?void 0:t.type)===qe.Image},ET="/qHyperCubeDef",CT=-1,wT="PSEUDO-DIM",RT=e=>void 0===e?Wn:e,LT=(e,t)=>e&&"number"==typeof e&&!Number.isNaN(e)?e:t,kT=e=>LT(e,nt.PixelsDefault),IT=(e,t)=>LT(e,nt.PercentageDefault)*t/100,MT=(e,t,n)=>{switch(null==t?void 0:t.type){case rt.Pixels:return kT(t.pixels);case rt.Percentage:return IT(t.percentage,e);case rt.FitToContent:case rt.Auto:default:return n}},_T=({headers:e,layoutService:t,estimateWidthForDimensionValue:n,shouldConsiderCombinatedLength:r,measureTextForHeader:o,longestMeasureValuePossible:i})=>e.reduce(((e,a,l)=>{const{layout:{qHyperCube:{qNoOfLeftDims:s}},isFullyExpanded:u}=t,{id:c,colIdx:d,qApprMaxGlyphCount:p,isLeftDimension:f}=a;if(!f)return e+0;if(c===wT)return e+0;const m=n(p),h=!u&&f&&d<s-1?gT:0;let g=0;if(r&&o&&i){g=o("-")+i}return Math.max(e,24*l+yT+h+m+g)}),0),PT=(e,t,n)=>e.reduce(((e,r)=>{const o=(n?0:1)*yT;return Math.max(e,o+t(r.qFallbackTitle))}),0),AT=(e,t,n,r)=>{const o=100*e/t,i=r*xT*(o/100),a=n*(o/100);return Math.min(a,i)},DT=(e,t,n,r)=>r*(n/100)*(100*e/t/100),TT=(e,t)=>e.some((e=>e>=t*xT)),OT=({layoutService:e,headersData:t,columnWidths:n,tableWidth:r,widthOverride:o,measureTextForHeader:i,estimateWidthForDimensionValue:a,measureTextWidthForMeasuresCombinedWithDimensions:l,translator:s})=>{let u=[];const c=r*xT,d=t.data[t.data.length-1][0],p=Math.min(c,n.at(-1)),f=Math.min(c,_T({headers:d,layoutService:e,estimateWidthForDimensionValue:a})),m=Math.min(c,PT(e.visibleMeasureInfo,i));let h=0;const g=d.findIndex((e=>e.id===wT)),v=(({layoutService:e,measureTextForHeader:t,translator:n,headersData:r})=>{const{type:o}=e.indentModeColumnWidth;return o===rt.Auto&&r.size.y<=1?t(n.get("SNPivotTable.IndentMode.Rows"))+8+yT+16:24})({layoutService:e,measureTextForHeader:i,translator:s,headersData:t});if(e.hasPseudoDimOnLeft)if(0===g){const e=Math.max(p,f,m);u=[Math.max(v,e-p),p]}else{const t=Math.min(c,PT(e.visibleMeasureInfo,l,!0));h=Math.min(c,_T({headers:d.slice(0,g),layoutService:e,estimateWidthForDimensionValue:a,shouldConsiderCombinatedLength:!0,measureTextForHeader:i,longestMeasureValuePossible:t}));const n=Math.max(p,f,h);u=[Math.max(v,n-p),p]}else u=[Math.max(v,f-p),p];const b=Math.min(c,u.reduce(((e,t)=>e+t),0)),{indentModeColumnWidth:y}=e;o&&o<=c&&(y.type=rt.Pixels,y.pixels=o);return[rt.Pixels,rt.Percentage].includes(y.type)||TT(u,r)?((e,t,n,r)=>{let o=e[0],i=e[1],a=[];const l=e.reduce(((e,t)=>e+t),0),{type:s,pixels:u,percentage:c}=t,d=TT(e,n);s===rt.Auto&&d&&(o>i?o-=i:i-=o),s===rt.Pixels&&u&&(o=AT(e[0],l,u,n),i=AT(e[1],l,u,n)),s===rt.Percentage&&c&&(o=DT(e[0],l,c,n),i=DT(e[1],l,c,n));const p=i-r;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}})(u,y,r,p):{leftGridWidth:b,leftGridColumnWidths:u,leftGridFullWidth:b}};function NT({layoutService:e,tableWidth:t,headersData:n,translator:r}){const o=t*xT,i=mT(),{measureText:a}=eM(i.header),{estimateWidth:l,measureText:s}=eM({...i.dimensionValues,fontWeight:RT(i.dimensionValues.fontWeight)}),{measureText:u}=eM({...i.dimensionValues,...i.measureLabels}),c=ao.useCallback(((i,c)=>{const{layout:{qHyperCube:{qNoOfLeftDims:d,topHeadersColumnWidth:p}},visibleMeasureInfo:f,isFullyExpanded:m,isIndentModeEnabled:h}=e,g=(e=0)=>f.reduce(((n,{qFallbackTitle:r,columnWidth:o})=>{const i=u(r)+yT,a=Math.max(i,e);return Math.max(n,h?a:MT(t,o,a))}),0),v=e=>n.data.reduce(((t,n)=>{const r=n[e];if(!r)return t;if(r.id===wT)return t;const o=(e=>{const{label:t,isLocked:n}=e,r=n?bT:0;return yT+a(t)+vT+r})(r);return Math.max(o,t)}),0);let b=0,y=n.data.at(-1);h&&n.size.x>1&&y&&y[0]&&(y=y[0]);const x=y.map(((r,a)=>{let s=yT;if((!h||h&&1===n.size.x)&&i&&void 0!==c&&c===r.colIdx)s=h?Math.min(o,i):i;else{let o;r.columnWidthLocation===Ve.Pivot?o=h?void 0:p:r.columnWidthLocation===Ve.Dimension&&({columnWidth:o}=r);let i=0;r.isLeftDimension?i=r.id===wT?g():Math.max(v(a),((t,n)=>{const{qApprMaxGlyphCount:r,isLeftDimension:o,dimensionInfoIndex:i}=t,a=e.getDimensionInfo(i);if(ST(a))return nt.PixelsDefault;const s=!m&&o&&n<d-1?gT:0;return yT+l(r)+s})(r,a)):r.isLeftDimension||(i=v(a),r.columnWidthLocation===Ve.Measures&&(i=g(i))),h&&1===n.size.x&&(o=e.indentModeColumnWidth),s=MT(t,o,i)}return b+=s,s}));return h&&n.size.x>1?OT({layoutService:e,headersData:n,columnWidths:x,tableWidth:t,widthOverride:i,measureTextForHeader:a,estimateWidthForDimensionValue:l,measureTextWidthForMeasuresCombinedWithDimensions:s,translator:r}):{leftGridWidth:Math.min(o,b),leftGridColumnWidths:x,leftGridFullWidth:b}}),[t,n,e,o,a,u,l,s,r]),[d,p]=ao.useState(c);rM((()=>{p(c())}),[c]);const f=ao.useCallback(((e,t)=>{p(c(e,t))}),[c]);return{...d,overrideLeftGridWidth:f}}function qT({layoutService:e,tableWidth:t,visibleTopDimensionInfo:n,verticalScrollbarWidth:r,leftGridWidth:o}){const{layout:{qHyperCube:{qNoOfLeftDims:i,qEffectiveInterColumnSortOrder:a}},size:l,visibleMeasureInfo:s}=e,u=mT(),{estimateWidth:c,measureText:d}=eM(u.measureValues),{estimateWidth:p}=eM({...u.dimensionValues,fontWeight:RT(u.dimensionValues.fontWeight)}),f=t-o-Un,m=n.at(-1),h=m===CT,g=a.length-i>n.length?gT:0,v=ao.useMemo((()=>{const e=h?s:[m],t=l.x/e.length,n=[],r=[];let o=f;const i=(e,r)=>{n[e]=Math.min(nt.PixelsMax,Math.max(nt.PixelsMin,r)),o-=n[e]*t};if(e.forEach(((e,t)=>{if(null!=e&&e.columnWidth){const{columnWidth:{type:n,pixels:o,percentage:a},qApprMaxGlyphCount:l,qFallbackTitle:u}=e;switch(n){case rt.Pixels:i(t,kT(o));break;case rt.Percentage:i(t,IT(a,f));break;case rt.FitToContent:i(t,((e,t,n)=>n?nt.PixelsDefault:yT+(h?Math.max(c(e),d(t)):Math.max(Math.max(...s.map((e=>c(e.qApprMaxGlyphCount)))),p(e)+g)))(l,u,ST(e)));break;case rt.Auto:default:r.push(t)}}else r.push(t)})),r.length){const e=r.length*t,i=o/e;r.forEach((e=>{n[e]=Math.max(nt.AutoMinPivot,i)}))}return n}),[h,s,m,l.x,f,c,d,p,g]),b=ao.useMemo((()=>{if(h){return s.reduce(((e,t,n)=>e+v[n]),0)/s.length}return v[0]}),[h,v,s]),y=parseFloat((r/e.size.x).toFixed(12)),x=ao.useCallback((t=>h&&void 0!==t?v[e.getMeasureInfoIndexFromCellIndex(t,!0)]-y:b-y),[h,v,e,b,y]),S=l.x*b;return{rightGridFullWidth:S,rightGridWidth:Math.min(S,f),getRightGridColumnWidth:x}}let FT;const zT=new Uint8Array(16);function jT(){if(!FT&&(FT="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!FT))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return FT(zT)}const $T=[];for(let e=0;e<256;++e)$T.push((e+256).toString(16).slice(1));var BT={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function HT(e,t,n){if(BT.randomUUID&&!t&&!e)return BT.randomUUID();const r=(e=e||{}).random||(e.rng||jT)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return $T[e[t+0]]+$T[e[t+1]]+$T[e[t+2]]+$T[e[t+3]]+"-"+$T[e[t+4]]+$T[e[t+5]]+"-"+$T[e[t+6]]+$T[e[t+7]]+"-"+$T[e[t+8]]+$T[e[t+9]]+"-"+$T[e[t+10]]+$T[e[t+11]]+$T[e[t+12]]+$T[e[t+13]]+$T[e[t+14]]+$T[e[t+15]]}(r)}const WT=()=>{var e,t,n;return null!==(e=null===(t=crypto)||void 0===t||null===(n=t.randomUUID)||void 0===n?void 0:n.call(t))&&void 0!==e?e:HT()},GT=e=>e===CT?wT:(({qLibraryId:e,cId:t})=>{var n;return null!==(n=null!=e?e:t)&&void 0!==n?n:WT()})(e),VT=({layoutService:e,visibleLeftDimensionInfos:t,cell:n,colIdx:r})=>{n&&(n.canBeResized=!0,n.colIdx=n.colIdx||r,n.dimensionInfoIndex===CT?n.columnWidthLocation=Ve.Measures:n.isLeftDimension?n.columnWidthLocation=Ve.Dimension:t.at(-1)===CT?n.columnWidthLocation=Ve.Measures:e.hasPseudoDimOnLeft&&(n.columnWidthLocation=Ve.Pivot))},UT=(e,t,n)=>{var r;const o=GT(t),i=e.getDimensionInfoIndex(t),a=e.isLeftDimension(i);return t===CT?{id:o,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isLocked:!1,isDim:!1,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:Ve.Measures,isPivot:!0}:{id:o,colIdx:0,label:t.qFallbackTitle,qReverseSort:t.qReverseSort,sortDirection:t.qSortIndicator&&"N"!==t.qSortIndicator?t.qSortIndicator:"A",qLibraryId:t.qLibraryId,fieldId:t.qGroupFieldDefs[t.qGroupPos],isLocked:null!==(r=t.qLocked)&&void 0!==r&&r,columnWidth:t.columnWidth,qApprMaxGlyphCount:t.qApprMaxGlyphCount,isDim:!0,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:Ve.Dimension,isPivot:!0,isSortedByFirstMeasure:e.isSortedByFirstMeasure}},YT=({layoutService:e,lastRow:t,lastCol:n})=>{let r=n;var o;t.length>0&&(r=(o=n).at(-1)===CT?o.slice(0,-1):o);const i=r.length+(t.length?1:0),a=Math.max(1,t.length),l=((e,t)=>Array(e).fill(null).map((()=>Array.from({length:t},(()=>null)))))(i,a);return t.forEach(((t,n,r)=>{const o=n===r.length-1;l[i-1][n]=UT(e,t,o)})),r.forEach(((t,n,r)=>{const o=n===r.length-1;l[n][a-1]=UT(e,t,o)})),l},KT=(e,t,n)=>{var r,o;const i=((e,t,n)=>{let r;var o;return r=0===t.length||t.includes(CT)?YT({layoutService:e,lastRow:n,lastCol:t}):(e=>e[0].map(((t,n)=>e.map((e=>e[n])))))(YT({layoutService:e,lastRow:t,lastCol:n})),e.isIndentModeEnabled&&r[r.length-1].length>1&&(r[r.length-1]=[r.at(-1),...new Array(r[0]?r[0].length-1:0).fill(null)]),r.length&&(null===(o=r.at(-1))||void 0===o||o.forEach(((t,r)=>{if(Array.isArray(t)){const r=t;for(let t=0;t<r.length;t++)VT({layoutService:e,visibleLeftDimensionInfos:n,cell:r[t],colIdx:t})}else VT({layoutService:e,visibleLeftDimensionInfos:n,cell:t,colIdx:r})}))),r})(e,t,n);return{data:i,size:{x:null!==(r=null===(o=i[0])||void 0===o?void 0:o.length)&&void 0!==r?r:0,y:i.length}}};function XT(e){return XT="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},XT(e)}function QT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?i:String(i)),r)}var o,i}function ZT(e,t,n){return t&&JT(e.prototype,t),n&&JT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function eO(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&&nO(e,t)}function tO(e){return tO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tO(e)}function nO(e,t){return nO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nO(e,t)}function rO(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)}function oO(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=tO(e);if(t){var o=tO(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return rO(this,n)}}function iO(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return aO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aO(e,t)}(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 aO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var lO={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));var t=[];return e.split("&").forEach((function(e){if(e){var n,r=e.indexOf("="),o="",i=!1;-1===r?n=e:(n=e.slice(0,r),o=e.slice(r+1),i=!0),t.push(function(e,t,n){return{key:sO(e),value:sO(t),useEqualSign:n}}(n,o,i))}})),t}};function sO(e){try{return decodeURIComponent(e)}catch(t){return e}}function uO(e){if(!(this instanceof uO))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:""},n=e.indexOf("#");-1!==n&&(t.hash=e.substr(n),e=e.substr(0,n));n=e.indexOf("?"),-1!==n&&(t.search=e.substr(n),e=e.substr(0,n));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 lO.fromSearchString(t.search)}}})}function cO(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}uO.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},uO.encodeSearchParams=function(e){for(var t,n="",r=0;r<e.length;r++)n+=0===r?"?":"&",n+=cO((t=e[r]).key),t.value?n+="=".concat(cO(t.value)):n+=t.useEqualSign?"=":"";return n};var dO,pO=function(){function e(t){QT(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}return ZT(e,[{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}}]),e}(),fO=function(){function e(){QT(this,e)}return ZT(e,[{key:"decode",value:function(e){for(var t,n="",r=new pO(e);r.hasNext();)n+=null!=(t=this.decodeCharacter(r))?t:r.next();return n}},{key:"decodeCharacter",value:function(e){return e.next()}}]),e}(),mO=function(e){return e>=0&&e<=1114111},hO=function(e){return e.match(/[\s]/)},gO=function(e){eO(n,e);var t=oO(n);function n(){return QT(this,n),t.apply(this,arguments)}return ZT(n,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,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,n=0;n<5&&(null!=(r=e.next())&&!hO(r));n++){if("NaN"===parseInt(r,16)){e.pushback(r);break}t+=r}var a=parseInt(t,16);return mO(a)?String.fromCharCode(a):"�"}}]),n}(fO),vO=function(){function e(t,n){QT(this,e),this._key=t,this._value=n}return ZT(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,n,r=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],n=r.length):(n=arguments[1],t=arguments[2]),t&&r?(r.length>n&&(r=r.substr(0,n)),new e(r,t)):null}}]),e}(),bO=function(){function e(){QT(this,e)}return ZT(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,n,r){var o,i;if(t.length===n)return i=this._value,this.setValue(r),i;var a=t.charAt(n);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,n+1,r)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var n=this.getNextNode(e.charAt(t));return n?n.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return vO.newInstanceIfNeeded(e,this._value);var n=this.getNextNode(e.charAt(t));if(!n)return vO.newInstanceIfNeeded(e,t,this._value);var r=n.getLongestMatch(e,t+1);return r||vO.newInstanceIfNeeded(e,t,this._value)}}]),e}(),yO=function(){function e(){QT(this,e),this.clear()}return ZT(e,[{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 bO);var n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}]),e}(),xO=function(){var e,t,n,r=[],o=[],i=new yO;for(e in r["&quot"]="34",r["&amp"]="38",r["&lt"]="60",r["&gt"]="62",r["&nbsp"]="160",r["&iexcl"]="161",r["&cent"]="162",r["&pound"]="163",r["&curren"]="164",r["&yen"]="165",r["&brvbar"]="166",r["&sect"]="167",r["&uml"]="168",r["&copy"]="169",r["&ordf"]="170",r["&laquo"]="171",r["&not"]="172",r["&shy"]="173",r["&reg"]="174",r["&macr"]="175",r["&deg"]="176",r["&plusmn"]="177",r["&sup2"]="178",r["&sup3"]="179",r["&acute"]="180",r["&micro"]="181",r["&para"]="182",r["&middot"]="183",r["&cedil"]="184",r["&sup1"]="185",r["&ordm"]="186",r["&raquo"]="187",r["&frac14"]="188",r["&frac12"]="189",r["&frac34"]="190",r["&iquest"]="191",r["&Agrave"]="192",r["&Aacute"]="193",r["&Acirc"]="194",r["&Atilde"]="195",r["&Auml"]="196",r["&Aring"]="197",r["&AElig"]="198",r["&Ccedil"]="199",r["&Egrave"]="200",r["&Eacute"]="201",r["&Ecirc"]="202",r["&Euml"]="203",r["&Igrave"]="204",r["&Iacute"]="205",r["&Icirc"]="206",r["&Iuml"]="207",r["&ETH"]="208",r["&Ntilde"]="209",r["&Ograve"]="210",r["&Oacute"]="211",r["&Ocirc"]="212",r["&Otilde"]="213",r["&Ouml"]="214",r["&times"]="215",r["&Oslash"]="216",r["&Ugrave"]="217",r["&Uacute"]="218",r["&Ucirc"]="219",r["&Uuml"]="220",r["&Yacute"]="221",r["&THORN"]="222",r["&szlig"]="223",r["&agrave"]="224",r["&aacute"]="225",r["&acirc"]="226",r["&atilde"]="227",r["&auml"]="228",r["&aring"]="229",r["&aelig"]="230",r["&ccedil"]="231",r["&egrave"]="232",r["&eacute"]="233",r["&ecirc"]="234",r["&euml"]="235",r["&igrave"]="236",r["&iacute"]="237",r["&icirc"]="238",r["&iuml"]="239",r["&eth"]="240",r["&ntilde"]="241",r["&ograve"]="242",r["&oacute"]="243",r["&ocirc"]="244",r["&otilde"]="245",r["&ouml"]="246",r["&divide"]="247",r["&oslash"]="248",r["&ugrave"]="249",r["&uacute"]="250",r["&ucirc"]="251",r["&uuml"]="252",r["&yacute"]="253",r["&thorn"]="254",r["&yuml"]="255",r["&OElig"]="338",r["&oelig"]="339",r["&Scaron"]="352",r["&scaron"]="353",r["&Yuml"]="376",r["&fnof"]="402",r["&circ"]="710",r["&tilde"]="732",r["&Alpha"]="913",r["&Beta"]="914",r["&Gamma"]="915",r["&Delta"]="916",r["&Epsilon"]="917",r["&Zeta"]="918",r["&Eta"]="919",r["&Theta"]="920",r["&Iota"]="921",r["&Kappa"]="922",r["&Lambda"]="923",r["&Mu"]="924",r["&Nu"]="925",r["&Xi"]="926",r["&Omicron"]="927",r["&Pi"]="928",r["&Rho"]="929",r["&Sigma"]="931",r["&Tau"]="932",r["&Upsilon"]="933",r["&Phi"]="934",r["&Chi"]="935",r["&Psi"]="936",r["&Omega"]="937",r["&alpha"]="945",r["&beta"]="946",r["&gamma"]="947",r["&delta"]="948",r["&epsilon"]="949",r["&zeta"]="950",r["&eta"]="951",r["&theta"]="952",r["&iota"]="953",r["&kappa"]="954",r["&lambda"]="955",r["&mu"]="956",r["&nu"]="957",r["&xi"]="958",r["&omicron"]="959",r["&pi"]="960",r["&rho"]="961",r["&sigmaf"]="962",r["&sigma"]="963",r["&tau"]="964",r["&upsilon"]="965",r["&phi"]="966",r["&chi"]="967",r["&psi"]="968",r["&omega"]="969",r["&thetasym"]="977",r["&upsih"]="978",r["&piv"]="982",r["&ensp"]="8194",r["&emsp"]="8195",r["&thinsp"]="8201",r["&zwnj"]="8204",r["&zwj"]="8205",r["&lrm"]="8206",r["&rlm"]="8207",r["&ndash"]="8211",r["&mdash"]="8212",r["&lsquo"]="8216",r["&rsquo"]="8217",r["&sbquo"]="8218",r["&ldquo"]="8220",r["&rdquo"]="8221",r["&bdquo"]="8222",r["&dagger"]="8224",r["&Dagger"]="8225",r["&bull"]="8226",r["&hellip"]="8230",r["&permil"]="8240",r["&prime"]="8242",r["&Prime"]="8243",r["&lsaquo"]="8249",r["&rsaquo"]="8250",r["&oline"]="8254",r["&frasl"]="8260",r["&euro"]="8364",r["&image"]="8365",r["&weierp"]="8472",r["&real"]="8476",r["&trade"]="8482",r["&alefsym"]="8501",r["&larr"]="8592",r["&uarr"]="8593",r["&rarr"]="8594",r["&darr"]="8595",r["&harr"]="8596",r["&crarr"]="8629",r["&lArr"]="8656",r["&uArr"]="8657",r["&rArr"]="8658",r["&dArr"]="8659",r["&hArr"]="8660",r["&forall"]="8704",r["&part"]="8706",r["&exist"]="8707",r["&empty"]="8709",r["&nabla"]="8711",r["&isin"]="8712",r["&notin"]="8713",r["&ni"]="8715",r["&prod"]="8719",r["&sum"]="8721",r["&minus"]="8722",r["&lowast"]="8727",r["&radic"]="8730",r["&prop"]="8733",r["&infin"]="8734",r["&ang"]="8736",r["&and"]="8743",r["&or"]="8744",r["&cap"]="8745",r["&cup"]="8746",r["&int"]="8747",r["&there4"]="8756",r["&sim"]="8764",r["&cong"]="8773",r["&asymp"]="8776",r["&ne"]="8800",r["&equiv"]="8801",r["&le"]="8804",r["&ge"]="8805",r["&sub"]="8834",r["&sup"]="8835",r["&nsub"]="8836",r["&sube"]="8838",r["&supe"]="8839",r["&oplus"]="8853",r["&otimes"]="8855",r["&perp"]="8869",r["&sdot"]="8901",r["&lceil"]="8968",r["&rceil"]="8969",r["&lfloor"]="8970",r["&rfloor"]="8971",r["&lang"]="9001",r["&rang"]="9002",r["&loz"]="9674",r["&spades"]="9824",r["&clubs"]="9827",r["&hearts"]="9829",r["&diams"]="9830",r)"function"!=typeof r[e]&&r.hasOwnProperty(e)&&(o[r[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(n=o[t].toLowerCase().substr(1),i.put(n,String.fromCharCode(t)));return i}(),SO=function(e){eO(n,e);var t=oO(n);function n(){return QT(this,n),t.apply(this,arguments)}return ZT(n,[{key:"decodeCharacter",value:function(e){var t;e.mark();var n=e.next();if(null==n||"&"!==n)return e.reset(),null;var r=e.next();if(null==r)return e.reset(),null;if("#"===r){if(null!=(t=this._getNumericEntity(e)))return t}else if(r.match(/[A-Za-z]/)&&(e.pushback(r),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,n,r,o="";for(t=Math.min(e.remainder().length,xO.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();var i=xO.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,n=0;n<t;n++)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,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,16);return!Number.isNaN(+r)&&mO(r)?String.fromCharCode(r):null}},{key:"_parseNumber",value:function(e){for(var t,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,10);return!Number.isNaN(+r)&&mO(r)?String.fromCharCode(r):null}}]),n}(fO),EO=function(e){eO(n,e);var t=oO(n);function n(){return QT(this,n),t.apply(this,arguments)}return ZT(n,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",n=0;n<2;n++)null!=(r=e.nextHex())&&(t+=r);return 2===t.length&&(o=parseInt(t,16),mO(o))?String.fromCharCode(o):(e.reset(),null)}}]),n}(fO),CO=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(dO=document.createElement("div"));var wO=Array.prototype.indexOf,RO=[",",".","_"," "],LO={default:[",",".","-","_"," "]},kO={width:["%"],height:["%"]},IO={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},MO={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":IO.image,"background-color":IO.color,"border-color":IO.color,"border-image":IO.image,color:IO.color,icon:IO.image,"list-style-image":IO.image,"outline-color":IO.color},_O={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function PO(e,t,n){var r;if(t){if(wO)return wO.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1}function AO(e){if(null==e)return"";var t,n=document.createTextNode(e);return dO.appendChild(n),t=dO.innerHTML,dO.removeChild(n),t}function DO(e,t,n){var r,o,i,a,l,s,u,c,d;if(e=OO(e).toLowerCase(),t=OO(t),PO(e,_O.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<_O.attr_val;i++)if(t.toLowerCase().match(_O.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((r=kO[e])||(r=LO.default),o="",!n){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=l}o+='="'}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&PO(u,r)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return n||(o+='"'),o}function TO(e,t,n){var r,o,i,a,l,s,u,c,d,p;if(e=OO(e).toLowerCase(),t=OO(t),PO(e,_O.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(r=0;r<_O.css_val.length;r++)if(t.toLowerCase().indexOf(_O.css_val[r])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=MO[e])||(o=IO.default),i="",!n){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=l}i+=": "}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&PO(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function OO(e,t){var n,r,o,i,a=!1;if(null===e)return null;n=e,r=e,o=0;for(var l=[new SO,new EO,new gO];!a;){r=n;for(var s=0;s<l.length;s++)(i=l[s].decode(n))!==n&&(o++,n=i);r!==n||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return n}for(var NO=[],qO=0;qO<255;qO++)NO[qO]=qO>=48&&qO<=57||qO>=65&&qO<=90||qO>=97&&qO<=122?null:qO.toString(16);var FO=function(e){return AO(e.unsafe)},zO=function(e){var t,n=[],r=[],o={},i="";for(t in e.map?n=e.map:n[e.name]=e.unsafe,n)"function"!=typeof n[t]&&n.hasOwnProperty(t)&&(r[t]=TO(t,n[t],!0),i+=TO(t,n[t],!0),o[t]=r[t]);return e.map?o:i},jO=function(e){var t=[],n=[],r={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(n[i]=DO(i,t[i],!0),o+=DO(i,t[i],!0),r[i]=n[i]);return e.map?r:o};function $O(e,t){throw new Error(t)}var BO={canonicalize:OO,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===XT(arguments[0])?function(){for(var e,t,n,r=arguments[0]||{},o=1,i=arguments.length;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(r===(n=e[t]))continue;void 0!==n&&(r[t]=n)}}(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?FO(e):"css"===e.context?(null!=e.map&&"object"!==XT(e.map)&&$O(this,"Invalid parameter type"),zO(e)):"attr"===e.context?(null!=e.map&&"object"!==XT(e.map)&&$O(this,"Invalid parameter type"),jO(e)):void $O(this,"Invalid parameter type")},encodeForAttr:DO,encodeForAttr2:function(e){return DO("nonsens",e,!0)},encodeForCSS:TO,encodeForHref:function(e){OO(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new uO(e),n=uO.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),r=t.searchParams,o=(e=n+uO.encodeSearchParams(r)+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 n,r,o,i,a,l;for(t||(t=RO),l="",n=0;n<e.length;n++)o=e.charAt(n),i=e.charCodeAt(n),PO(o,t)>=0||null==NO[i]?l+=o:(r=i.toString(16),i<256?(a="00".substr(r.length),l+="\\x".concat(a).concat(r.toUpperCase())):(a="0000".substr(r.length),l+="\\u".concat(a).concat(r.toUpperCase())));return l},encodeForHTML:AO,encodeForURL:function(e,t){var n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=OO(t).toLowerCase():$O(this,"Illegal Attribute Name Specified"),n+='="'),n+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),n+=t?'"':""},isSafeDataURL:function(e,t){var n=null!=t?t:{},r=n.maxByteSizeSvg,o=void 0===r?5e5:r,i=n.maxByteSizeImage,a=void 0===i?5e6:i,l=function(e){var t,n=iO(null!==(t=CO.exec(e.trim()))&&void 0!==t?t:[],4),r=n[1];return{encoding:n[2],data:n[3],mimeType:null==r?void 0:r.toLocaleLowerCase()}}(e),s=l.mimeType,u=l.encoding,c=l.data;if(!c)return!0;var d=function(e,t,n){var r={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(n)],r).size}catch(e){return new Blob([n],r).size}return"image/svg+xml"===e?new Blob([n],r).size:0}(s,u,c);return"image/svg+xml"===s?d<=o:d<=a}};const HO=(e,t)=>{var n;const r=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps;return null==r||null===(n=r.qValues)||void 0===n?void 0:n[e]},WO=e=>{switch(e){case"topLeft":default:return{horizontal:"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"flex-end",vertical:"center"};case"topRight":return{horizontal:"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"flex-end",vertical:"flex-end"}}},GO=({text:e,url:t,imageSize:n,imagePosition:r})=>r&&t&&!t.toLowerCase().includes("javascript:")&&BO.isSafeDataURL(t)?{type:qe.Image,url:t,text:e,imageSize:n,resolvedImagePosition:WO(r)}:{type:qe.Text,url:void 0,text:e},VO=(e,t,n)=>{var r;const o=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=null==o||null===(r=o.qValues)||void 0===r?void 0:r[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return(null==n?void 0:n.urlPosition)===Fe.Attribute||null==n?void 0:n.urlLabel},UO=({text:e,url:t})=>{try{if(!t)throw Error("Invalid url");return{type:qe.Link,url:BO.encodeForHref(t),text:e}}catch(t){return{type:qe.Text,url:void 0,text:e}}},YO=(e,t,n,r)=>{var o,i;const a=ze(t);return a!==qe.Image||!r.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")||null!==(o=r.anything.sense)&&void 0!==o&&null!==(i=o.isUnsupportedFeature)&&void 0!==i&&i.call(o,"tableImages")?a===qe.Link&&r.flags.isEnabled("CLIENT_IM_5715_LINKS")?((e,t,n)=>{const{urlPosition:r}=null!=t?t:{};if(r===Fe.Attribute){var o;const r=VO(null!==(o=n.url)&&void 0!==o?o:-1,e,t),i=e.qText||r||"";return UO({text:i,url:r})}if(r===Fe.Dimension){var i;const r=VO(null!==(i=n.urlLabel)&&void 0!==i?i:-1,e,t)||e.qText;return UO({text:r,url:e.qText})}return{type:qe.Text,url:void 0,text:e.qText}})(e,t,n):{type:qe.Text,url:void 0,text:e.qText}:((e,t,n)=>{const{imageSize:r,imagePosition:o,imageSetting:i,imageLabel:a}=null!=t?t:{};if("url"===i){var l,s;const t=e.qText,i=null===(l=HO(null!==(s=n.imageUrl)&&void 0!==s?s:-1,e))||void 0===l?void 0:l.qText;return GO({text:t,url:i,imageSize:r,imagePosition:o})}if("label"===i){var u,c,d;const t=e.qText;if(-1===n.imageLabel)return GO({text:a||t||"",url:t,imageSize:r,imagePosition:o});const i=null!==(u=null===(c=HO(null!==(d=n.imageLabel)&&void 0!==d?d:-1,e))||void 0===c?void 0:c.qText)&&void 0!==u?u:e.qText;return GO({text:i,url:t,imageSize:r,imagePosition:o})}return{type:qe.Text,url:void 0,text:e.qText}})(e,t,n)},KO=(e,t)=>{var n,r,o,i;const a=t.qAttrExps,l=null==a||null===(n=a.qValues)||void 0===n||null===(n=n[null!==(r=null==e?void 0:e.cellForegroundColor)&&void 0!==r?r:-1])||void 0===n?void 0:n.qText,s=null==a||null===(o=a.qValues)||void 0===o||null===(o=o[null!==(i=null==e?void 0:e.cellBackgroundColor)&&void 0!==i?i:-1])||void 0===o?void 0:o.qText,u=s?WI(s):null,c=l?WI(l):null,d=((e,t)=>e||!t?null:jI(t)?zk.WHITE:zk.TEXT)(c,u);return{color:null!=d?d:c,background:u}},XO=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:XO(e,t)),e),QO=(e,t,n,r,o,i)=>{const a=o?i.rowsPerPage-n:Gn-r;let l=e.qUp+e.qDown;if(o&&0===n){const n=(t+e.qUp)%i.rowsPerPage;l=e.qDown+n}return Math.min(a,XO(l,e))},JO=(e,t)=>{if(e!==CT)return t?{type:qe.Text}:e.representation},ZO=({node:e,parent:t,root:n,x:r,y:o,pageY:i,layoutService:a,dimensionInfo:l,attrExprInfoIndex:s,isLeftColumn:u=!0,isIndentModeEnabled:c=!1,indentLevel:d,env:p,pageInfo:f})=>{const m=(!c||!u)&&e.qType===st.NX_DIM_CELL_PSEUDO;let h="";if(u&&e.indentLabel){const{label:t,delimeter:n,suffix:r}=e.indentLabel;h=`${t} ${!r||!t&&r?"":n} ${r}`.trim()}else h=e.qText;const g={id:WT(),ref:e,x:r,y:o,pageX:r,pageY:i,mainAxisPageCoord:u?i:r,isLeftColumn:u,parent:t,root:n,children:[],isLeafNode:0===e.qSubNodes.length,leafCount:QO(e,o,i,r,u,f),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof l||!l.qLocked),isTotal:e.qType===st.NX_DIM_CELL_TOTAL||!(null==t||!t.isTotal),isEmpty:e.qType===st.NX_DIM_CELL_EMPTY||-4===e.qElemNo,isNull:e.qType===st.NX_DIM_CELL_NULL,isPseudoDimension:m,expressionColor:KO(s,e),selectionCellType:u?lt.NX_CELL_LEFT:lt.NX_CELL_TOP,dimensionInfoIndex:a.getDimensionInfoIndex(l),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:m?e.qElemNo:null==t?void 0:t.visibleMeasureInfoIndex,representation:YO({...e,qText:h},JO(l,c),s,p),...void 0!==d&&{indentLevel:d}};return t&&(t.children[g.mainAxisPageCoord-t.mainAxisPageCoord]=g),g},eN=(e,t,n,r,o,i,a,l)=>{const{isIndentModeEnabled:s}=o;if(!t.length)return e;let u=0;return function t(c,d,p,f=0,m=-1){e[f]||(e[f]={}),s&&m++;const h=o.leftDimensionInfoIndexes.indexOf(CT);p.forEach(((p,g)=>{var v;u+=0===g?0:1;const b=n.qTop-r.page*r.rowsPerPage,y=Math.max(0,b+u-p.qUp),x=n.qTop+u-p.qUp;if(s&&o.hasPseudoDimOnLeft&&m<=h){const e={label:p.qText,suffix:"",delimeter:"-"};if(p.qType===st.NX_DIM_CELL_NORMAL||p.qType===st.NX_DIM_CELL_NULL||p.qType===st.NX_DIM_CELL_TOTAL)m<h&&(e.suffix=`${o.visibleMeasureInfo[0].qFallbackTitle}`),p={...p,indentLabel:e};else if(p.qType===st.NX_DIM_CELL_PSEUDO){var S,E,C,w,R;e.label=null!==(S=null===(E=d||c)||void 0===E||null===(E=E.ref)||void 0===E||null===(E=E.indentLabel)||void 0===E?void 0:E.label)&&void 0!==S?S:"",e.suffix=p.qText;const t=p.qSubNodes;p={...null===(C=d||c)||void 0===C?void 0:C.ref,...p.qText?{qText:p.qText}:{},qSubNodes:t,indentLabel:e},m=null!==(w=null===(R=d||c)||void 0===R?void 0:R.indentLevel)&&void 0!==w?w:0}}let L=f;s&&(L=h>=1&&m>=h?m+1:m,0===m&&0===h&&0===p.qSubNodes.length&&(L=0));const k=s&&void 0===(null===(v=e[f][y])||void 0===v?void 0:v.ref.qText)||!e[f][y]?ZO({node:p,parent:d,root:c,x:L,y:x,pageY:y,layoutService:o,dimensionInfo:i[L],attrExprInfoIndex:a[L],isLeftColumn:!0,...s&&{isIndentModeEnabled:s,indentLevel:m},env:l,pageInfo:r}):e[f][y];if(e[f][y]=k,p.qSubNodes.length){const e=s?0:f+1;t(c||k,k,p.qSubNodes,e,m)}}))}(null,null,t,0,-1),e},tN=(e,t)=>{e.slice(0,-1).forEach((e=>{Object.values(e).forEach(((e,n,r)=>{const o=r[n+1];e.distanceToNextCell=o?o.mainAxisPageCoord-(e.mainAxisPageCoord+e.leafCount):t-(e.mainAxisPageCoord+e.leafCount)}))}))},nN=(e,t)=>{const n=e[0],r=n?Object.values(n):[],o=null!=t&&t.isIndentModeEnabled&&null!=t&&t.hasPseudoDimOnLeft?t.visibleMeasureInfo.length-1:0,i=null==n?void 0:n[o],a=r.at(-1);return null!=i&&i.isTotal?i.isLeafNode?i.mainAxisPageCoord:i.mainAxisPageCoord+i.leafCount-1:null!=a&&a.isTotal?a.mainAxisPageCoord-1:-1},rN=({prevData:e,nextDataPage:t,pageInfo:n,layoutService:r,visibleLeftDimensionInfo:o,attrExprInfoIndexes:i,env:a})=>{const{qLeft:l,qArea:s}=t;if(!l.length)return e;const u=eN(e.grid,l,s,n,r,o,i,a);tN(u,n.rowsOnCurrentPage);const c=nN(u,r);return{...e,grid:u,columnCount:u.length,totalDividerIndex:c}},oN=({qArea:e,prevData:t,pivotValuePoints:n,pageInfo:r})=>{const o=[...t];return n.forEach(((t,n)=>{t.forEach(((t,i)=>{var a;const l=e.qTop-r.page*r.rowsPerPage+n,s=e.qLeft+i;Array.isArray(o[l])||(o[l]=[]);const u=t.qType===st.NX_DIM_CELL_NULL;o[l][s]=null!==(a=o[l][s])&&void 0!==a?a:{id:WT(),ref:t,isNull:u}}))})),o},iN=({prevData:e,dataPage:t,pageInfo:n})=>{const{qData:r,qArea:o}=t;return r.length?oN({qArea:o,prevData:e,pivotValuePoints:r,pageInfo:n}):e},aN=(e,t,n,r,o,i,a,l,s)=>{if(!t.length)return e;let u=0;!function t(a,c,d,p=0){e[p]||(e[p]={}),d.forEach(((d,f)=>{var m;u+=0===f?0:1;const h=n.qLeft+u-d.qUp,g=null!==(m=e[p][h])&&void 0!==m?m:ZO({node:d,parent:c,root:a,x:h,y:p,pageY:p,layoutService:r,dimensionInfo:o[p],attrExprInfoIndex:i[p],isLeftColumn:!1,...r.isIndentModeEnabled&&{isIndentModeEnabled:r.isIndentModeEnabled},env:l,pageInfo:s});e[p][h]=g,d.qSubNodes.length&&t(a||g,g,d.qSubNodes,p+1)}))}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},lN=({prevData:e,nextDataPage:t,layoutService:n,visibleTopDimensionInfo:r,attrExprInfoIndexes:o,headerRows:i,env:a,pageInfo:l})=>{const{qTop:s,qArea:u}=t;if(!s.length)return e;const c=aN(e.grid,s,u,n,r,o,i,a,l);tN(c,n.size.x);const d=nN(c);return{...e,grid:c,rowCount:c.length,totalDividerIndex:d}},sN=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},n)=>(e[t]=n,e)),{}),uN=(e,t,n,r,o)=>{const{env:i}=uT(),[a,l]=ao.useState(null),s=((e,t,n)=>ao.useMemo((()=>({left:e.map(sN),top:t.map(sN),measures:n.map(sN)})),[n,e,t]))(r,o,t.visibleMeasureInfo),u=ao.useMemo((()=>KT(t,o,r)),[t,o,r]),c=ao.useCallback((()=>e.slice(1).reduce(((e,t)=>iN({prevData:e,dataPage:t,pageInfo:n})),((e,t)=>{const{qData:n,qArea:r}=e;return oN({qArea:r,prevData:[],pivotValuePoints:n,pageInfo:t})})(e[0],n))),[e,n]),d=ao.useCallback((()=>e.slice(1).reduce(((e,r)=>lN({prevData:e,nextDataPage:r,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:s.top,headerRows:u.size.y,env:i,pageInfo:n})),((e,t,n,r,o,i,a)=>{const{qArea:l,qTop:s}=e,u=aN([],s,l,t,n,r,o,i,a);tN(u,t.size.x);const c=nN(u);return{grid:u,rowCount:u.length,layoutSize:t.size,totalDividerIndex:c}})(e[0],t,o,s.top,u.size.y,i,n))),[e,t,o,s.top,u.size.y,i,n]),p=ao.useCallback((()=>e.slice(1).reduce(((e,o)=>rN({prevData:e,nextDataPage:o,pageInfo:n,layoutService:t,visibleLeftDimensionInfo:r,attrExprInfoIndexes:s.left,env:i})),((e,t,n,r,o,i)=>{const{qArea:a,qLeft:l}=e,s=eN([],l,a,n,t,r,o,i);tN(s,n.rowsOnCurrentPage);const u=nN(s,t);return{grid:s,columnCount:s.length,layoutSize:t.size,totalDividerIndex:u}})(e[0],t,n,r,s.left,i))),[e,t,n,r,s,i]),[f,m]=ao.useState((()=>c())),[h,g]=ao.useState((()=>d())),[v,b]=ao.useState((()=>p()));rM((()=>{m(c())}),[c]),rM((()=>{g(d())}),[d]),rM((()=>{b(p())}),[p]),rM((()=>{a&&a.forEach((e=>{m((t=>iN({prevData:t,dataPage:e,pageInfo:n}))),g((r=>lN({prevData:r,nextDataPage:e,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:s.top,headerRows:u.size.y,env:i,pageInfo:n}))),b((o=>rN({prevData:o,nextDataPage:e,pageInfo:n,layoutService:t,visibleLeftDimensionInfo:r,attrExprInfoIndexes:s.left,env:i})))}))}),[a]);const y=ao.useCallback((e=>{l(e)}),[]);return{headersData:u,measureData:f,topDimensionData:h,leftDimensionData:v,attrExprInfoIndexes:s,nextPageHandler:y}},cN=Math.sqrt(1e4),dN=e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/nt.PixelsMin)}),pN=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],n=Math.ceil(e.qWidth/cN),r=Math.ceil(e.qHeight/cN);for(let o=0;o<n;o++)for(let n=0;n<r;n++)t.push({qLeft:e.qLeft+o*cN,qTop:e.qTop+n*cN,qWidth:Math.min(cN,e.qWidth-o*cN),qHeight:Math.min(cN,e.qHeight-n*cN)});return t};function fN({model:e,nextPageHandler:t,pageInfo:n,layoutService:r}){const o=(e=>{const t=ao.useRef(e);return t.current=e,t})(n.page),i=e,a=ao.useCallback((async(e,t)=>{var n;await(null==i||null===(n=i.collapseLeft)||void 0===n?void 0:n.call(i,ET,e,t,!1))}),[i]),l=ao.useCallback((async(e,t)=>{await(null==i?void 0:i.collapseTop(ET,e,t,!1))}),[i]),s=ao.useCallback((async(e,t)=>{await(null==i?void 0:i.expandLeft(ET,e,t,!1))}),[i]),u=ao.useCallback((async(e,t)=>{await(null==i?void 0:i.expandTop(ET,e,t,!1))}),[i]),c=ao.useCallback((async e=>{if(null!=i&&i.getHyperCubePivotData&&0!==e.length)try{const r=await i.getHyperCubePivotData(ET,e.reduce(((e,t)=>[...e,...pN(t)]),[]));o.current===n.page&&t(r)}catch(e){console.error(e)}}),[i,t,n,o]),d=ao.useCallback(((t,{dimensionInfoIndex:n,isLeftColumn:o,x:i=0,columnWidthLocation:a})=>{const{qMeasureInfo:l,qDimensionInfo:s,topHeadersColumnWidth:u}=r.layout.qHyperCube;let c=[];switch(a){case Ve.Dimension:c=[{qPath:`${ET}/qDimensions/${n}/qDef/columnWidth`,oldValue:s[n].columnWidth}];break;case Ve.Measures:if(o)c=l.map(((e,t)=>({qPath:`${ET}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=r.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${ET}/qMeasures/${e}/qDef/columnWidth`,oldValue:l[e].columnWidth}]}break;case Ve.Pivot:c=[{qPath:`${ET}/topHeadersColumnWidth`,oldValue:u}]}const d=c.map((e=>{const{qPath:n,oldValue:r}=e;return{qPath:n,qOp:r?"Replace":"Add",qValue:JSON.stringify({...r,...t})}}));null==e||e.applyPatches(d,!0)}),[e,r]),p=ao.useCallback((async e=>{var t;await(null==i?void 0:i.applyPatches([{qPath:`${ET}/indentModeColumnWidth`,qOp:null!==(t=r.layout.qHyperCube)&&void 0!==t&&t.indentModeColumnWidth?"Replace":"Add",qValue:JSON.stringify({...r.indentModeColumnWidth,...e})}],!0))}),[i,r]);return ao.useMemo((()=>({collapseLeft:a,collapseTop:l,expandLeft:s,expandTop:u,applyColumnWidth:d,applyIndentModeColumnWidth:p,fetchPages:c})),[a,l,s,u,d,p,c])}const mN=(e,t)=>e>t?Ke.Forward:e<t?Ke.Backward:Ke.None,hN=(e,t,n)=>(r,o)=>{if(r===st.NX_DIM_CELL_PSEUDO)return CT;const i=t[n+o];return e[i]},gN=e=>{const t=[],n=(e,r=0)=>{e.slice(0,1).forEach((e=>{t[r]=e.qType,e.qSubNodes.length&&n(e.qSubNodes,r+1)}))};return n(e),t},vN=({width:e,height:t,children:n,isLeftGrid:r})=>fc.jsx("div",{"data-testid":"full-size-container",style:{display:"block",width:r?"fit-content":e,height:t+Un},children:n}),bN=e=>`scrollable-container--${e}`,yN=(e,t)=>{const{width:n,height:r,children:o,onScroll:i,style:a,showVerticalScrollbar:l,showHorizontalScrollbar:s,origin:u}=e,{interactions:c}=uT();return fc.jsx("div",{ref:t,"data-key":bN(u),style:{width:n,height:r,overscrollBehaviorX:"contain",overflowX:c.active&&s?"auto":"hidden",overflowY:c.active&&l?"auto":"hidden",...a},onScroll:i,children:o})};var xN=lo.forwardRef(yN);const SN=({width:e,height:t,children:n,style:r,isLeftGrid:o})=>fc.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:0,left:0,width:o?"fit-content":e,height:t,...r},children:n});function EN(){return EN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},EN.apply(this,arguments)}function CN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wN(e,t){return wN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wN(e,t)}function RN(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,wN(e,t)}var LN=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function kN(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||LN(r)&&LN(o)))return!1;var r,o;return!0}function IN(e,t){var n;void 0===t&&(t=kN);var r,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}function MN(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var _N="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function PN(e){cancelAnimationFrame(e.id)}function AN(e,t){var n=_N();var r={id:requestAnimationFrame((function o(){_N()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var DN=-1;function TN(e){if(void 0===e&&(e=!1),-1===DN||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),DN=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return DN}var ON=null;function NN(e){if(void 0===e&&(e=!1),null===ON||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?ON="positive-descending":(t.scrollLeft=1,ON=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),ON}return ON}var qN=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function FN(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,h=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=m(r.props,CN(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:CN(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=IN((function(e,t,n,o,i,a,l,s){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),r._callOnScroll=void 0,r._callOnScroll=IN((function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=r._getItemStyleCache(h&&l,h&&s,h&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var m=n(r.props,t,r._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:m,right:g?m:void 0,top:d(r.props,e,r._instanceProps),height:c(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=IN((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,u=i;if("rtl"===t)switch(NN()){case"negative":u=-i;break;case"positive-descending":u=s-o-i}u=Math.max(0,Math.min(u,s-o));var c=Math.max(0,Math.min(a,l-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&PN(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=AN(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}RN(t,e),t.getDerivedStateFromProps=function(e,t){return zN(e,t),g(e),null};var v=t.prototype;return v.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},v.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,m=this.state,h=m.scrollLeft,g=m.scrollTop,v=TN();void 0!==r&&(r=Math.max(0,Math.min(r,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var b=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?v:0,x=b>d?v:0;this.scrollTo({scrollLeft:void 0!==r?s(this.props,r,n,h,this._instanceProps,x):h,scrollTop:void 0!==o?u(this.props,o,n,g,this._instanceProps,y):g})},v.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},v.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(NN()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},v.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&PN(this._resetIsScrollingTimeoutId)},v.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?qN:p,m=e.outerElementType,h=e.outerTagName,g=e.rowCount,v=e.style,b=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),E=S[0],C=S[1],w=this._getVerticalRangeToRender(),R=w[0],L=w[1],k=[];if(r>0&&g)for(var I=R;I<=L;I++)for(var M=E;M<=C;M++)k.push(ao.createElement(t,{columnIndex:M,data:d,isScrolling:b?x:void 0,key:f({columnIndex:M,data:d,rowIndex:I}),rowIndex:I,style:this._getItemStyle(I,M)}));var _=a(this.props,this._instanceProps),P=l(this.props,this._instanceProps);return ao.createElement(m||h||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:EN({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},ao.createElement(u||c||"div",{children:k,ref:s,style:{height:_,pointerEvents:x?"none":void 0,width:P}}))},v._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],m=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,m)}if("function"==typeof r){var h=this.state,g=h.horizontalScrollDirection,v=h.scrollLeft,b=h.scrollTop,y=h.scrollUpdateWasRequested,x=h.verticalScrollDirection;this._callOnScroll(v,b,g,x,y)}},v._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=n||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),m=o(this.props,f,d,this._instanceProps),h=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-h),Math.max(0,Math.min(t-1,m+g)),f,m]},v._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),m=f(this.props,d,u,this._instanceProps),h=l&&"backward"!==s?1:Math.max(1,c),g=l&&"forward"!==s?1:Math.max(1,c);return[Math.max(0,d-h),Math.max(0,Math.min(i-1,m+g)),d,m]},t}(ao.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var zN=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},jN=function(e,t){var n=e.rowCount,r=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},$N=function(e,t){var n=e.columnCount,r=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},BN=function(e,t,n,r){var o,i,a;if("column"===e?(o=r.columnMetadataMap,i=t.columnWidth,a=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=t.rowHeight,a=r.lastMeasuredRowIndex),n>a){var l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=n;u++){var c=i(u);o[u]={offset:l,size:c},l+=c}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return o[n]},HN=function(e,t,n,r){var o,i;return"column"===e?(o=n.columnMetadataMap,i=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=n.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=r?WN(e,t,n,i,0,r):GN(e,t,n,Math.max(0,i),r)},WN=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),l=BN(e,t,a,n).offset;if(l===i)return a;l<i?o=a+1:l>i&&(r=a-1)}return o>0?o-1:0},GN=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&BN(e,t,r,n).offset<o;)r+=a,a*=2;return WN(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},VN=function(e,t,n,r,o,i,a){var l="column"===e?t.width:t.height,s=BN(e,t,n,i),u="column"===e?$N(t,i):jN(t,i),c=Math.max(0,Math.min(u-l,s.offset)),d=Math.max(0,s.offset-l+a+s.size);switch("smart"===r&&(r=o>=d-l&&o<=c+l?"auto":"center"),r){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}},UN=FN({getColumnOffset:function(e,t,n){return BN("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return HN("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=BN("column",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=BN("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:jN,getEstimatedTotalWidth:$N,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return VN("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return VN("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return BN("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return HN("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=BN("row",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=BN("row",e,u,r).size;return u},initInstanceProps:function(e,t){var n=e,r={columnMetadataMap:{},estimatedColumnWidth:n.estimatedColumnWidth||50,estimatedRowHeight:n.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:n})},t.resetAfterRowIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:n})},t.resetAfterIndices=function(e){var n=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof n&&(r.lastMeasuredColumnIndex=Math.min(r.lastMeasuredColumnIndex,n-1)),"number"==typeof o&&(r.lastMeasuredRowIndex=Math.min(r.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),YN=function(e,t){return e};function KN(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=s(r.props,CN(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:CN(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=IN((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=IN((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,l=i.itemSize,s=i.layout,c=r._getItemStyleCache(u&&l,u&&s,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===s,m="rtl"===a,h=f?d:0;c[e]=t={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=IN((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(NN()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&PN(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=AN(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}RN(t,e),t.getDerivedStateFromProps=function(e,t){return XN(e,t),c(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?TN():0:s.scrollHeight>s.clientHeight?TN():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(NN()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&PN(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?YN:d,f=e.layout,m=e.outerElementType,h=e.outerTagName,g=e.style,v=e.useIsScrolling,b=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),C=E[0],w=E[1],R=[];if(u>0)for(var L=C;L<=w;L++)R.push(ao.createElement(t,{data:c,key:p(L,c),index:L,isScrolling:v?y:void 0,style:this._getItemStyle(L)}));var k=r(this.props,this._instanceProps);return ao.createElement(m||h||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:EN({position:"relative",height:i,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},ao.createElement(l||s||"div",{children:R,ref:a,style:{height:x?"100%":k,pointerEvents:y?"none":void 0,width:x?k:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,s=r.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,s,this._instanceProps),c=l(this.props,u,s,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(ao.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var XN=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},QN=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var l=o[i];a=l.offset+l.size}for(var s=i+1;s<=t;s++){var u=r(s);o[s]={offset:a,size:u},a+=u}n.lastMeasuredIndex=t}return o[t]},JN=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=QN(e,i,t).offset;if(a===o)return i;a<o?r=i+1:a>o&&(n=i-1)}return r>0?r-1:0},ZN=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&QN(e,n,t).offset<r;)n+=i,i*=2;return JN(e,t,Math.min(n,o-1),Math.floor(n/2),r)},eq=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},tq=KN({getItemOffset:function(e,t,n){return QN(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:eq,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,c="horizontal"===a||"horizontal"===s?u:l,d=QN(e,t,o),p=eq(e,o),f=Math.max(0,Math.min(p-c,d.offset)),m=Math.max(0,d.offset-c+d.size+i);switch("smart"===n&&(n=r>=m-c&&r<=f+c?"auto":"center"),n){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return r>=m&&r<=f?r:r<m?m:f}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?JN(e,t,o,0,n):ZN(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var o=e.direction,i=e.height,a=e.itemCount,l=e.layout,s=e.width,u="horizontal"===o||"horizontal"===l?s:i,c=QN(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=QN(e,f,r).size;return f},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function nq(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}var rq=["style"],oq=["style"];function iq(e,t){var n=e.style,r=MN(e,rq),o=t.style,i=MN(t,oq);return!nq(n,o)&&!nq(r,i)}const aq=(e,t,n=!1)=>void 0!==e&&(e.isLeafNode||n&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),lq=10,sq=(e,t)=>e.current===Ke.Backward?t:0,uq=(e,t,n,r)=>{for(let o=n;o<n+r;o++){const n=e[o];if(void 0===n||void 0===n[t])return!0}return!1},cq=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,dq=({pageInfo:e,measureData:t,pageTop:n,qHeight:r,startLeft:o,endLeft:i})=>{const a=[],l=e.page*e.rowsPerPage;for(let e=o;e<i;e++)if(uq(t,e,n,r)){const t=a[a.length-1],o={qLeft:e,qTop:n+l,qWidth:1,qHeight:r};void 0!==t&&cq(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},pq=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:l,gridHeight:s}=r,u=n.current===Ke.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return dq({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:l,qHeight:s})},fq=({pageInfo:e,measureData:t,scrollDirection:n,layoutService:r,viewService:o})=>{const{startLeft:i,endLeft:a,pageTop:l,qHeight:s}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=e.size.x,s=sq(n,lq),u=Math.max(r-s,0);return{startLeft:u,endLeft:u+Math.min(i+lq,l-u),pageTop:o,qHeight:a}})(r,o,n),u=dq({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:l,qHeight:s});return u.length>0?[...u,...pq({pageInfo:e,measureData:t,scrollDirection:n,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:r.size.x})]:u},mq=(e,t,n,r)=>{const o=e[n];if(void 0===o)return!0;for(let e=t;e<t+r;e++){if(void 0===o[e])return!0}return!1},hq=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,gq=({startTop:e,endTop:t,qLeft:n,qWidth:r,measureData:o,pageInfo:i})=>{const a=[],l=i.page*i.rowsPerPage;for(let i=e;i<t;i++)if(mq(o,n,i,r)){const e=a.at(-1),t={qLeft:n,qTop:i+l,qWidth:r,qHeight:1};void 0!==e&&hq(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},vq=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r})=>{const{startTop:o,endTop:i,qLeft:a,qWidth:l}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=sq(n,lq),s=Math.max(o-l,0);return{startTop:s,endTop:s+Math.min(a+lq,e.rowsOnCurrentPage-s),qLeft:r,qWidth:i}})(e,r,n),s=gq({startTop:o,endTop:i,qLeft:a,qWidth:l,measureData:t,pageInfo:e});if(s.length>0){const r=n.current===Ke.Backward?Math.max(0,o-25):i,u=Math.min(r+25,e.rowsOnCurrentPage),c=gq({startTop:r,endTop:u,qLeft:a,qWidth:l,measureData:t,pageInfo:e});return[...s,...c]}return s},bq=async(e,t,n,r,o,i,a,l)=>{const{gridColumnStartIndex:s,gridRowStartIndex:u,gridWidth:c,gridHeight:d}=o;let p=[],f=[];i.current!==Ke.None&&(p=vq({pageInfo:r,measureData:n,scrollDirection:i,viewService:o})),a.current!==Ke.None&&(f=fq({pageInfo:r,measureData:n,scrollDirection:a,layoutService:t,viewService:o})),i.current===Ke.None&&a.current===Ke.None&&(p=gq({measureData:n,pageInfo:r,qLeft:s,qWidth:c,startTop:u,endTop:u+d}));const m=e.fetchPages([...p,...f]);l.isDownloadedAsPDForImage&&l.waitForPromise(m)},yq=function(e){var t,n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,i=0;return function(){t=this;for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];n=l;var u=Date.now()-i,c=function(){i=Date.now(),r=0,e.apply(t,n)};r||(u>=o?c():r=setTimeout(c,o-u))}}(bq,100),xq=xe(bq,75),Sq=({style:e,index:t,isLastRow:n,isLastColumn:r,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{grid:{border:l,divider:s}}=mT();return fc.jsx("div",{style:{...e,...Jn,...nr(n,r,l,o),...or({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:s})},"data-testid":"empty-cell","data-index":t})},Eq=({children:e,verticalAlign:t,width:n,right:r})=>fc.jsx("div",{"data-key":"sticky-cell-container",style:{display:"flex",overflow:"hidden",flexDirection:"row",alignItems:t,width:n,maxWidth:"100%",maxHeight:"100%",position:"sticky",left:4,top:0,bottom:0,right:r,alignSelf:t},children:e}),Cq=e=>{const{type:t,imageSize:n}=e;return t!==qe.Image||"fill"!==n&&"fitWidth"!==n?"fit-content":"100%"},wq=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function Rq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Lq=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Rq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("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"})),kq=ao.forwardRef(Lq);function Iq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Mq=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Iq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("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"})),_q=ao.forwardRef(Mq),Pq=e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(et)};function Aq(e,t){const n=e.isActive(),[r,o]=ao.useState(new Map),[i,a]=ao.useState(null);ao.useEffect((()=>{const n=()=>{a(null),o(new Map)},r=()=>{n(),t({page:0})};return e.on("deactivated",n),e.on("canceled",n),e.on("confirmed",r),e.on("cleared",n),()=>{e.removeListener("deactivated",n),e.removeListener("canceled",n),e.removeListener("confirmed",r),e.removeListener("cleared",n)}}),[e,t]);const l=ao.useCallback((e=>0!==r.size&&null!==i&&(e.selectionCellType!==i.selectionCellType||(e.selectionCellType===lt.NX_CELL_LEFT?i.coord!==e.x:i.coord!==e.y))),[r,i]),s=ao.useCallback((t=>async n=>{if(Pq(n))return;if(e.isActive()||await e.begin([ET]),l(t))return;const{nextSelectedPivotCells:s,nextSelectedField:u}=((e,t,n)=>{const r=new Map(t);return r.has(e.ref.qElemNo)?(r.delete(e.ref.qElemNo),{nextSelectedPivotCells:r,nextSelectedField:0===r.size?null:n}):(r.set(e.ref.qElemNo,e),{nextSelectedPivotCells:r,nextSelectedField:{selectionCellType:e.selectionCellType,coord:e.selectionCellType===lt.NX_CELL_LEFT?e.x:e.y}})})(t,r,i);try{await e.select({method:"selectPivotCells",params:[ET,Array.from(s,(([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x})))]}),o(s),a(u)}catch(e){console.error(e)}}),[e,l,r,i]),u=ao.useCallback((e=>n&&!l(e)&&r.has(e.ref.qElemNo)),[r,l,n]);return ao.useMemo((()=>({select:s,isSelected:u,isActive:n,isLocked:l})),[s,u,n,l])}const Dq={select:()=>()=>Promise.resolve(),isSelected:()=>!1,isActive:!1,isLocked:()=>!1},Tq=ao.createContext(Dq),Oq=()=>ao.useContext(Tq),Nq=({children:e,selections:t,updatePageInfo:n})=>{const r=Aq(t,n);return fc.jsx(Tq.Provider,{value:r,children:e})};var qq;!function(e){e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration"}(qq||(qq={}));const Fq={brighter:.5,darker:.3,opacity:.03},zq=(e,{cell:t,styleService:n})=>{if(e===qq.Background||e===qq.Color){const n=t.expressionColor[e];if(n)return n}return t.isNull?n.nullValues[e]:t.isPseudoDimension?n.measureLabels[e]:t.isTotal?n.totalValues[e]:n.dimensionValues[e]},jq=({styleService:e,isCellSelected:t,cell:n,isCellLocked:r})=>{if(t)return"#0aaf54";const o=zq(qq.Background,{cell:n,styleService:e});return!r||!o||n.isPseudoDimension||n.isEmpty||n.isNull||n.isTotal?zq(qq.Background,{cell:n,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${zI(i=o,Fq)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},$q=({cell:e,styleService:t,isCellSelected:n})=>n?"white":zq(qq.Color,{cell:e,styleService:t}),Bq=({cell:e,styleService:t})=>{const{qCanCollapse:n,qCanExpand:r}=e.ref,o=zq(qq.FontWeight,{cell:e,styleService:t});return void 0===o&&(r||n)?Wn:o},Hq=({cell:e,styleService:t})=>zq(qq.FontStyle,{cell:e,styleService:t}),Wq=({cell:e,styleService:t})=>zq(qq.TextDecoration,{cell:e,styleService:t}),Gq=e=>e?"pointer":"default",Vq=({expandOrCollapse:e,cell:t})=>n=>{null==e||e(t.y,t.x),n.stopPropagation()},Uq=(e,t)=>{if(!e.isLeftColumn||e.representation.type===qe.Image)return{padding:4};return{padding:4,marginTop:t.dimensionValueTextHeight/2-6.5-4}},Yq=({cell:e,dataModel:t,isLeftColumn:n,isCellSelected:r})=>{const o=mT(),{interactions:i}=uT(),{isActive:a}=Oq();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!i.active||a||!t,s=$q({cell:e,styleService:o,isCellSelected:r}),u=a?.4:1,c=e.ref.qCanExpand?_q:kq;let d;return d=e.ref.qCanExpand?n?null==t?void 0:t.expandLeft:null==t?void 0:t.expandTop:n?null==t?void 0:t.collapseLeft:null==t?void 0:t.collapseTop,fc.jsx(c,{opacity:u,color:s,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:l?"default":"pointer",...Uq(e,o)},onClick:l?void 0:Vq({cell:e,expandOrCollapse:d})})},Kq=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},Xq=e=>{switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";default:return"100%"}},Qq=({representation:e,styleService:t,canExpandOrCollapse:n,leafCount:r,isLeftColumn:o})=>{const i=`calc(100% - ${n?21:0}px)`,a=o?t.contentCellHeight:t.headerCellHeight,l=o&&void 0!==r?a*Math.max(r,1):a;switch(e.imageSize){case"originalSize":return{maxWidth:i,maxHeight:l};case"fitWidth":return{width:i,maxHeight:l};case"fitHeight":return{height:l,maxWidth:i};case"fill":return{height:l,width:i};default:return{width:i,height:a}}},Jq=(e,t)=>{if("alwaysFit"===e)switch(null==t?void 0:t.vertical){case"flex-start":return"center top";case"flex-end":return"center bottom";default:return"center center"}},Zq=e=>{if("alwaysFit"===e)return"contain"},eF=({representation:e,styleService:t,textStyle:n,canExpandOrCollapse:r,leafCount:o,isLeftColumn:i})=>{const{imageRef:a,onLoad:l}=(()=>{const{downloadService:e}=uT(),t=ao.useRef(null),{promise:n,resolve:r}=ao.useMemo((()=>wq()),[]);return ao.useEffect((()=>{var o;return e.isDownloadedAsPDForImage&&(e.waitForPromise(n),null!==(o=t.current)&&void 0!==o&&o.complete&&r()),()=>r()}),[t,e,n,r]),{onLoad:ao.useCallback((()=>{r()}),[r]),imageRef:t}})(),{url:s,text:u,imageSize:c,resolvedImagePosition:d}=e,{overflow:p,...f}=n;return fc.jsx("div",{"data-key":"image-container",style:{display:"flex",flexDirection:"column",justifyContent:null==d?void 0:d.vertical,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",...Qq({representation:e,styleService:t,canExpandOrCollapse:r,leafCount:o,isLeftColumn:i})},children:fc.jsx("img",{src:s,alt:u,style:{width:Xq(c),height:Kq(c),objectFit:Zq(c),objectPosition:Jq(c,d),...f},onLoad:l,ref:a})})},tF=(e,t,n)=>{if(!n.isEnabled("CLIENT_IM_5863_PVT_TEXT_ALIGN")||null!=e&&e.auto)return t;switch(null==e?void 0:e.align){case"center":return"center";case"left":return"flex-start";case"right":return"flex-end";default:return t}},nF={display:"flex",flexDirection:"row",alignItems:"center"},rF={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},oF=(e,t,n,r)=>t?{...rF,...e.nullValues}:n?{...nF,color:e.totalValues.color,background:null!=r?r:e.totalValues.background}:{...nF,color:e.measureValues.color,background:null!=r?r:e.measureValues.background},iF=(e,t,n,r,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,l={...Zn,...!n&&er(e.grid.lineClamp),...t&&{color:t},fontFamily:i,fontSize:a};if(o){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.nullValues;return{...l,fontWeight:t,fontStyle:n,textDecoration:r}}if(r){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.totalValues;return{...l,fontWeight:t,fontStyle:n,textDecoration:r}}const{fontWeight:s,fontStyle:u,textDecoration:c}=e.measureValues;return{...l,fontWeight:void 0===s?Wn:s,fontStyle:u,textDecoration:c}},aF=(e,t,n,r,o)=>{const{textAlign:i}=t,a=r?"flex-end":"center";var l,s;return e.isNull||n.type!==qe.Image?tF(i,a,o):null!==(l=null===(s=n.resolvedImagePosition)||void 0===s?void 0:s.horizontal)&&void 0!==l?l:"center"},lF=({cell:e,layoutService:t,styleService:n,representation:r,color:o,isNumeric:i,isTotalValueCell:a})=>{const l=e.isNull?t.getNullValueText():r.text,s=iF(n,o,i,a,e.isNull);return r.type!==qe.Image||e.isNull?fc.jsx("span",{style:{padding:4,...s},children:l}):fc.jsx(eF,{representation:r,styleService:n,textStyle:s,isLeftColumn:!0})},sF=(e,t)=>{var n,r;return null!==(n=null==e||null===(r=e[t])||void 0===r?void 0:r.visibleMeasureInfoIndex)&&void 0!==n?n:0},uF="flex-start",cF=(e,t)=>{return e.isNull?uF:t.type===qe.Image&&"fill"!==t.imageSize?null===(n=t.resolvedImagePosition)||void 0===n?void 0:n.vertical:uF;var n},dF=({columnIndex:e,rowIndex:t,style:n,data:r})=>{var o;const i=mT(),{env:a}=uT(),{background:l}=i.measureValues,{grid:s,layoutService:u,showLastBorder:c,shouldShowTotalCellBottomDivider:d,shouldShowTotalCellRightDivider:p,isTotalValue:f,pageInfo:m,lastRow:h,lastColumn:g,attrExprInfoIndexes:v}=r,b=null===(o=s[t])||void 0===o?void 0:o[e],y=t===m.rowsOnCurrentPage-1,x=e===u.size.x-1;if(!b)return fc.jsx(Sq,{style:{...n,background:l},isLastRow:y,isLastColumn:x,showLastBorder:c,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const S=u.hasPseudoDimOnLeft?sF(g,t):sF(h,e),E=u.visibleMeasureInfo[S],C=YO(b.ref,u.isIndentModeEnabled?{type:qe.Text}:E.representation,v[S],a),w=!b.isNull&&f(e,t),R=b.isNull?u.getNullValueText():C.text,L=!b.isNull||!Number.isNaN(+R),k=KO(v[S],b.ref),I={...oF(i,b.isNull,w,k.background),...nr(y,x,i.grid.border,c),...or({bottomDivider:d(t),rightDivider:p(e),borderColor:i.grid.divider}),...Jn,padding:"0px 4px",display:"flex",justifyContent:aF(b,E,C,L,a.flags)};return fc.jsx("div",{className:Je,title:R,style:{...I,...n},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:fc.jsx(Eq,{width:Cq(C),verticalAlign:cF(b,C),children:fc.jsx(lF,{cell:b,layoutService:u,styleService:i,representation:C,isNumeric:L,isTotalValueCell:w,color:k.color})})})};var pF=lo.memo(dF,iq);const fF=(e,t)=>{var n,r;return null!==(n=null===(r=t.list[e])||void 0===r?void 0:r.id)&&void 0!==n?n:e.toString()},mF=({columnIndex:e,rowIndex:t,data:n})=>{var r,o;return null!==(r=null===(o=n.grid[t])||void 0===o||null===(o=o[e])||void 0===o?void 0:o.id)&&void 0!==r?r:`${t}-${e}`},hF={...Qn,overflow:"hidden",boxSizing:"content-box",borderWidth:"1px 0px 0px 1px"},gF=({dataModel:e,dataGridRef:t,height:n,rowHightCallback:r,width:o,viewService:i,layoutService:a,measureData:l,leftDimensionData:s,topDimensionData:u,visibleTopDimensionInfo:c,visibleLeftDimensionInfo:d,attrExprInfoIndexes:p,showLastBorder:f,getRightGridColumnWidth:m,pageInfo:h,verticalScrollDirection:g,horizontalScrollDirection:v})=>{const{grid:{divider:b},contentCellHeight:y}=mT(),x={...hF,borderColor:b,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},S=((e,t,n=!1)=>ao.useCallback((r=>{var o;const i=n?0:t-1,a=null===(o=e.grid.at(i))||void 0===o?void 0:o[r];return aq(a,e.totalDividerIndex,n)}),[e,n,t]))(s,d.length,a.isIndentModeEnabled),E=((e,t)=>ao.useCallback((n=>{var r;const o=null===(r=e.grid.at(t-1))||void 0===r?void 0:r[n];return aq(o,e.totalDividerIndex)}),[e,t]))(u,c.length),C=((e,t,n,r,o)=>ao.useCallback(((i,a)=>{var l,s;return!!(null!==(l=t.grid.at(r-1))&&void 0!==l&&null!==(l=l[i])&&void 0!==l&&l.isTotal||null!==(s=e.grid.at(o?0:n-1))&&void 0!==s&&null!==(s=s[a])&&void 0!==s&&s.isTotal)}),[t,e,n,r,o]))(s,u,d.length,c.length,a.isIndentModeEnabled),w=(({viewService:e,dataModel:t,measureData:n,layoutService:r,pageInfo:o,leftColumnCount:i,topRowCount:a,verticalScrollDirection:l,horizontalScrollDirection:s})=>{const{downloadService:u}=uT();return ao.useCallback((async({overscanColumnStartIndex:c,overscanColumnStopIndex:d,overscanRowStartIndex:p,overscanRowStopIndex:f})=>{e.gridColumnStartIndex=c,e.gridRowStartIndex=p,e.gridWidth=d-c+1,e.gridHeight=f-p+1;const m=e.gridWidth+i+(s.current===Ke.None?0:lq),h=e.gridHeight+a+(l.current===Ke.None?0:lq);let g=yq;h*m>1500&&(g=xq),g(t,r,n,o,e,l,s,u)}),[e,r,t,n,l,s,o,i,a,u])})({viewService:i,layoutService:a,dataModel:e,measureData:l,pageInfo:h,leftColumnCount:s.columnCount,topRowCount:u.rowCount,verticalScrollDirection:g,horizontalScrollDirection:v});return rM((()=>{t.current&&t.current.resetAfterColumnIndex(0,!1)}),[t,e,l]),ao.useLayoutEffect((()=>{t.current&&t.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[o,n,t,y]),0===a.size.x?null:fc.jsx(UN,{ref:t,style:x,columnCount:a.size.x,columnWidth:m,height:n,rowCount:h.rowsOnCurrentPage,rowHeight:r,width:o,itemData:{layoutService:a,grid:l,dataModel:e,showLastBorder:f,isTotalValue:C,shouldShowTotalCellBottomDivider:S,shouldShowTotalCellRightDivider:E,pageInfo:h,lastRow:u.grid.at(c.length-1),lastColumn:s.grid.at(d.length-1),attrExprInfoIndexes:p},onItemsRendered:w,estimatedRowHeight:r(),estimatedColumnWidth:m(),itemKey:mF,children:pF})};var vF=ao.memo(gF);function bF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const yF=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){bF(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("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"}),lo.createElement("use",{fillRule:"evenodd"})),xF=ao.forwardRef(yF),SF=e=>{const[t,n]=ao.useState(!1);return rM((()=>{n(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:n}},EF=({interactions:e,dataModel:t})=>{const[n,r]=ao.useState(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=SF([t]);return{open:n,setOpen:r,handleOpenMenu:t=>e.active&&!Pq(t)&&!o&&r(!0),setIsAdjustingWidth:i}};function CF(e,t){var n,r,o,i;const a=null!==(n=null===(r=t.expressionColor)||void 0===r?void 0:r.background)&&void 0!==n?n:e.dimensionValues.background,l=t.isLeftColumn?e.header.background:a,s=l===Yn.Transparent?zk.WHITE:l,u=null===(o=oI(e.grid.border))||void 0===o?void 0:o.rgb(),c=null===(i=oI(s))||void 0===i?void 0:i.rgb();if(c&&u&&u.opacity<1){const e=1-u.opacity;return`rgb(${u.opacity*u.r+e*c.r}, ${u.opacity*u.g+e*c.g}, ${u.opacity*u.b+e*c.g})`}return e.grid.border}const wF=({cellInfo:e,columnWidth:t,dataModel:n,isLastColumn:r,overrideLeftGridWidth:o,setIsAdjustingWidth:i,shouldApplyIndentModeColumnWidth:a,tableWidth:l})=>{const{interactions:s}=uT(),{isActive:u}=Oq(),c=mT(),[,d]=ao.useState({});if(!(e.canBeResized&&!!s.active&&!u))return null;const p=CF(c,e);return fc.jsx(yA,{isPivot:!0,columnWidth:t,isLastColumn:r,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:p,updateWidthCallback:t=>{d({}),o&&void 0!==e.colIdx&&o(t,e.colIdx)},confirmWidthCallback:t=>{var r;a?null==n||n.applyIndentModeColumnWidth({...t,pixels:Math.min((null!=l?l:0)*xT,null!==(r=t.pixels)&&void 0!==r?r:0)}):null==n||n.applyColumnWidth(t,e)},setIsAdjustingWidth:i,isLeftColumn:e.isLeftColumn})};function RF(e){return T_(e)}const LF=e=>e.scrollTop;function kF(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function IF(e){return Bs("MuiPaper",e)}Hs("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const MF=["className","component","elevation","square","variant"],_F=fA("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return mr({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&mr({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${W_("#fff",gA(t.elevation))}, ${W_("#fff",gA(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var PF=ao.forwardRef((function(e,t){const n=RF({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=Sr(n,MF),u=mr({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Fs({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},IF,o)})(u);return fc.jsx(_F,mr({as:o,ownerState:u,className:Ys(c.root,r),ref:t},s))}));var AF=Hs("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const DF=["center","classes","className"];let TF,OF,NF,qF,FF=e=>e;const zF=Al(TF||(TF=FF`
120
+ `),$C.rippleVisible,YC,550,(({theme:e})=>e.transitions.easing.easeInOut),$C.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),$C.child,$C.childLeaving,KC,550,(({theme:e})=>e.transitions.easing.easeInOut),$C.childPulsate,XC,(({theme:e})=>e.transitions.easing.easeInOut)),ZC=ao.forwardRef((function(e,t){const n=Pd({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=Go(n,BC),[l,s]=ao.useState([]),u=ao.useRef(0),c=ao.useRef(null);ao.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=ao.useRef(!1),p=ao.useRef(0),f=ao.useRef(null),m=ao.useRef(null);ao.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const h=ao.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,fc.jsx(JC,{classes:{ripple:Fd(o.ripple,$C.ripple),rippleVisible:Fd(o.rippleVisible,$C.rippleVisible),ripplePulsate:Fd(o.ripplePulsate,$C.ripplePulsate),child:Fd(o.child,$C.child),childLeaving:Fd(o.childLeaving,$C.childLeaving),childPulsate:Fd(o.childPulsate,$C.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=ao.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,h]),v=ao.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=ao.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{b(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return ao.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),fc.jsx(QC,Wo({className:Fd($C.root,o.root,i),ref:m},a,{children:fc.jsx(MC,{component:null,exit:!0,children:l})}))}));var ew=ZC;function tw(e){return ld("MuiButtonBase",e)}var nw=sd("MuiButtonBase",["root","disabled","focusVisible"]);const rw=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],ow=Od("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${nw.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),iw=ao.forwardRef((function(e,t){const n=Pd({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:C,onTouchEnd:w,onTouchMove:R,onTouchStart:L,tabIndex:k=0,TouchRippleProps:I,touchRippleRef:M,type:_}=n,P=Go(n,rw),A=ao.useRef(null),D=ao.useRef(null),T=Vc(D,M),{isFocusVisibleRef:O,onFocus:N,onBlur:q,ref:F}=nd(),[z,j]=ao.useState(!1);s&&z&&j(!1),ao.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),A.current.focus()}})),[]);const[$,B]=ao.useState(!1);ao.useEffect((()=>{B(!0)}),[]);const H=$&&!u&&!s;function W(e,t,n=c){return Gc((r=>{t&&t(r);return!n&&D.current&&D.current[e](r),!0}))}ao.useEffect((()=>{z&&d&&!u&&$&&D.current.pulsate()}),[u,d,z,$]);const G=W("start",S),V=W("stop",h),U=W("stop",g),Y=W("stop",C),K=W("stop",(e=>{z&&e.preventDefault(),E&&E(e)})),X=W("start",L),Q=W("stop",w),J=W("stop",R),Z=W("stop",(e=>{q(e),!1===O.current&&j(!1),f&&f(e)}),!1),ee=Gc((e=>{A.current||(A.current=e.currentTarget),N(e),!0===O.current&&(j(!0),b&&b(e)),v&&v(e)})),te=()=>{const e=A.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=ao.useRef(!1),re=Gc((e=>{d&&!ne.current&&z&&D.current&&" "===e.key&&(ne.current=!0,D.current.stop(e,(()=>{D.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),oe=Gc((e=>{d&&" "===e.key&&D.current&&z&&!e.defaultPrevented&&(ne.current=!1,D.current.stop(e,(()=>{D.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ie=l;"button"===ie&&(P.href||P.to)&&(ie=p);const ae={};"button"===ie?(ae.type=void 0===_?"button":_,ae.disabled=s):(P.href||P.to||(ae.role="button"),s&&(ae["aria-disabled"]=s));const le=Vc(t,F,A),se=Wo({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:k,focusVisible:z}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Fs({root:["root",t&&"disabled",n&&"focusVisible"]},tw,o);return n&&r&&(i.root+=` ${r}`),i})(se);return fc.jsxs(ow,Wo({as:ie,className:Fd(ue.root,a),ownerState:se,onBlur:Z,onClick:m,onContextMenu:V,onFocus:ee,onKeyDown:re,onKeyUp:oe,onMouseDown:G,onMouseLeave:K,onMouseUp:Y,onDragLeave:U,onTouchEnd:Q,onTouchMove:J,onTouchStart:X,ref:le,tabIndex:s?-1:k,type:_},ae,P,{children:[i,H?fc.jsx(ew,Wo({ref:T,center:o},I)):null]}))}));var aw=iw;function lw(e){return ld("MuiTypography",e)}sd("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const sw=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],uw=Od("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${qc(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Wo({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),cw={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},dw={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},pw=ao.forwardRef((function(e,t){const n=Pd({props:e,name:"MuiTypography"}),r=(e=>dw[e]||e)(n.color),o=vc(Wo({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=cw}=o,f=Go(o,sw),m=Wo({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||cw[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return Fs({root:["root",i,"inherit"!==e.align&&`align${qc(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},lw,a)})(m);return fc.jsx(uw,Wo({as:h,ref:t,ownerState:m,className:Fd(g.root,a)},f))}));var fw=pw;const mw=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function hw(e){const t=[],n=[];return Array.from(e.querySelectorAll(mw)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function gw(){return!0}function vw(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=hw,isEnabled:a=gw,open:l}=e,s=ao.useRef(!1),u=ao.useRef(null),c=ao.useRef(null),d=ao.useRef(null),p=ao.useRef(null),f=ao.useRef(!1),m=ao.useRef(null),h=Es(t.ref,m),g=ao.useRef(null);ao.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),ao.useEffect((()=>{if(!l||!m.current)return;const e=vs(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),ao.useEffect((()=>{if(!l||!m.current)return;const e=vs(m.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(m.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return fc.jsxs(ao.Fragment,{children:[fc.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),ao.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),fc.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}const bw=ao.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=ao.useState(null),l=Es(ao.isValidElement(n)?n.ref:null,t);if(xs((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),xs((()=>{if(i&&!o)return ys(t,i),()=>{ys(t,null)}}),[t,i,o]),o){if(ao.isValidElement(n)){const e={ref:l};return ao.cloneElement(n,e)}return fc.jsx(ao.Fragment,{children:n})}return fc.jsx(ao.Fragment,{children:i?pC.createPortal(n,i):i})}));function yw(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function xw(e){return parseInt(bs(e).getComputedStyle(e).paddingRight,10)||0}function Sw(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&yw(e,o)}))}function Ew(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function Cw(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=vs(e);return t.body===e?bs(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Ns(vs(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${xw(r)+e}px`;const t=vs(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${xw(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=vs(r).body;else{const t=r.parentElement,n=bs(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const ww=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&yw(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Sw(t,e.mount,e.modalRef,r,!0);const o=Ew(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=Ew(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=Cw(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Ew(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&yw(e.modalRef,t),Sw(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&yw(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Rw(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=ww,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=ao.useRef({}),f=ao.useRef(null),m=ao.useRef(null),h=Es(m,d),[g,v]=ao.useState(!c),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},E=Ss((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||vs(f.current).body;o.add(x(),e),m.current&&S()})),C=ao.useCallback((()=>o.isTopModal(x())),[o]),w=Ss((e=>{f.current=e,e&&(c&&C()?S():m.current&&yw(m.current,y))})),R=ao.useCallback((()=>{o.remove(x(),y)}),[y,o]);ao.useEffect((()=>()=>{R()}),[R]),ao.useEffect((()=>{c?E():b&&i||R()}),[c,R,b,i,E]);const L=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},k=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=qC(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=mr({},n,t);return mr({role:"presentation"},r,{onKeyDown:L(r),ref:h})},getBackdropProps:(e={})=>mr({"aria-hidden":!0},e,{onClick:k(e),open:c}),getTransitionProps:()=>({onEnter:hs((()=>{v(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:hs((()=>{v(!0),l&&l(),i&&R()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:w,isTopModal:C,exited:g,hasTransition:b}}const Lw=["onChange","maxRows","minRows","style","value"];function kw(e){return parseInt(e,10)||0}const Iw={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Mw(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const _w=ao.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=Sr(e,Lw),{current:s}=ao.useRef(null!=a),u=ao.useRef(null),c=Es(t,u),d=ao.useRef(null),p=ao.useRef(0),[f,m]=ao.useState({outerHeightStyle:0}),h=ao.useCallback((()=>{const t=u.current,n=bs(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0};const i=d.current;i.style.width=n.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=n.boxSizing,l=kw(n.paddingBottom)+kw(n.paddingTop),s=kw(n.borderBottomWidth)+kw(n.borderTopWidth),c=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*p,f)),r&&(f=Math.min(Number(r)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-c)<=1}}),[r,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return p.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(p.current+=1,{overflow:r,outerHeightStyle:n}):e},v=ao.useCallback((()=>{const e=h();Mw(e)||m((t=>g(t,e)))}),[h]);xs((()=>{const e=()=>{p.current=0,(()=>{const e=h();Mw(e)||pC.flushSync((()=>{m((t=>g(t,e)))}))})()};const t=gs(e),n=u.current,r=bs(n);let o;return r.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(n)),()=>{t.clear(),cancelAnimationFrame(undefined),r.removeEventListener("resize",t),o&&o.disconnect()}}),[h]),xs((()=>{v()})),ao.useEffect((()=>{p.current=0}),[a]);return fc.jsxs(ao.Fragment,{children:[fc.jsx("textarea",mr({value:a,onChange:e=>{p.current=0,s||v(),n&&n(e)},ref:c,rows:o,style:mr({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),fc.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:mr({},Iw,i,{paddingTop:0,paddingBottom:0})})]})}));function Pw({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}var Aw=ao.createContext(void 0);function Dw(){return ao.useContext(Aw)}function Tw(e){return fc.jsx(mc,Wo({},e,{defaultTheme:Md,themeId:Ho}))}function Ow(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Nw(e,t=!1){return e&&(Ow(e.value)&&""!==e.value||t&&Ow(e.defaultValue)&&""!==e.defaultValue)}function qw(e){return ld("MuiInputBase",e)}var Fw=sd("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const zw=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],jw=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${qc(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},$w=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Bw=Od("div",{name:"MuiInputBase",slot:"Root",overridesResolver:jw})((({theme:e,ownerState:t})=>Wo({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Fw.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Wo({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Hw=Od("input",{name:"MuiInputBase",slot:"Input",overridesResolver:$w})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=Wo({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return Wo({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Fw.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Fw.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),Ww=fc.jsx(Tw,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Gw=ao.forwardRef((function(e,t){var n;const r=Pd({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:m=!1,id:h,inputComponent:g="input",inputProps:v={},inputRef:b,maxRows:y,minRows:x,multiline:S=!1,name:E,onBlur:C,onChange:w,onClick:R,onFocus:L,onKeyDown:k,onKeyUp:I,placeholder:M,readOnly:_,renderSuffix:P,rows:A,slotProps:D={},slots:T={},startAdornment:O,type:N="text",value:q}=r,F=Go(r,zw),z=null!=v.value?v.value:q,{current:j}=ao.useRef(null!=z),$=ao.useRef(),B=ao.useCallback((e=>{}),[]),H=Vc($,b,v.ref,B),[W,G]=ao.useState(!1),V=Dw(),U=Pw({props:r,muiFormControl:V,states:["color","disabled","error","hiddenLabel","size","required","filled"]});U.focused=V?V.focused:W,ao.useEffect((()=>{!V&&d&&W&&(G(!1),C&&C())}),[V,d,W,C]);const Y=V&&V.onFilled,K=V&&V.onEmpty,X=ao.useCallback((e=>{Nw(e)?Y&&Y():K&&K()}),[Y,K]);jc((()=>{j&&X({value:z})}),[z,X,j]);ao.useEffect((()=>{X($.current)}),[]);let Q=g,J=v;S&&"input"===Q&&(J=Wo(A?{type:void 0,minRows:A,maxRows:A}:{type:void 0,maxRows:y,minRows:x},J),Q=_w);ao.useEffect((()=>{V&&V.setAdornedStart(Boolean(O))}),[V,O]);const Z=Wo({},r,{color:U.color||"primary",disabled:U.disabled,endAdornment:f,error:U.error,focused:U.focused,formControl:V,fullWidth:m,hiddenLabel:U.hiddenLabel,multiline:S,size:U.size,startAdornment:O,type:N}),ee=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e;return Fs({root:["root",`color${qc(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${qc(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},qw,t)})(Z),te=T.root||s.Root||Bw,ne=D.root||u.root||{},re=T.input||s.Input||Hw;return J=Wo({},J,null!=(n=D.input)?n:u.input),fc.jsxs(ao.Fragment,{children:[!p&&Ww,fc.jsxs(te,Wo({},ne,!NC(te)&&{ownerState:Wo({},Z,ne.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),R&&R(e)}},F,{className:Fd(ee.root,ne.className,l,_&&"MuiInputBase-readOnly"),children:[O,fc.jsx(Aw.Provider,{value:null,children:fc.jsx(re,Wo({ownerState:Z,"aria-invalid":U.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:U.disabled,id:h,onAnimationStart:e=>{X("mui-auto-fill-cancel"===e.animationName?$.current:{value:"x"})},name:E,placeholder:M,readOnly:_,required:U.required,rows:A,value:z,onKeyDown:k,onKeyUp:I,type:N},J,!NC(re)&&{as:Q,ownerState:Wo({},Z,J.ownerState)},{ref:H,className:Fd(ee.input,J.className,_&&"MuiInputBase-readOnly"),onBlur:e=>{C&&C(e),v.onBlur&&v.onBlur(e),V&&V.onBlur?V.onBlur(e):G(!1)},onChange:(e,...t)=>{if(!j){const t=e.target||$.current;if(null==t)throw new Error(Bo(1));X({value:t.value})}v.onChange&&v.onChange(e,...t),w&&w(e,...t)},onFocus:e=>{U.disabled?e.stopPropagation():(L&&L(e),v.onFocus&&v.onFocus(e),V&&V.onFocus?V.onFocus(e):G(!0))}}))}),f,P?P(Wo({},U,{startAdornment:O})):null]}))]})}));var Vw=Gw;function Uw(e){return ld("MuiInput",e)}var Yw=Wo({},Fw,sd("MuiInput",["root","underline","input"]));function Kw(e){return ld("MuiOutlinedInput",e)}var Xw=Wo({},Fw,sd("MuiOutlinedInput",["root","notchedOutline","input"]));function Qw(e){return ld("MuiFilledInput",e)}var Jw=Wo({},Fw,sd("MuiFilledInput",["root","underline","input"])),Zw=function(e,t){function n(n,r){return fc.jsx(Hd,Wo({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=Hd.muiName,ao.memo(ao.forwardRef(n))}(fc.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const eR=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],tR={entering:{opacity:1},entered:{opacity:1}},nR=ao.forwardRef((function(e,t){const n=_d(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=r,TransitionComponent:v=CC}=e,b=Go(e,eR),y=ao.useRef(null),x=Vc(y,a.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},E=S(d),C=S(((e,t)=>{_C(e);const r=PC({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),w=S(c),R=S(m),L=S((e=>{const t=PC({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),k=S(f);return fc.jsx(v,Wo({appear:i,in:s,nodeRef:y,onEnter:C,onEntered:w,onEntering:E,onExit:L,onExited:k,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>ao.cloneElement(a,Wo({style:Wo({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},tR[e],h,a.props.style),ref:x},t))}))}));var rR=nR;function oR(e){return ld("MuiBackdrop",e)}sd("MuiBackdrop",["root","invisible"]);const iR=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],aR=Od("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Wo({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),lR=ao.forwardRef((function(e,t){var n,r,o;const i=Pd({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=rR,transitionDuration:g}=i,v=Go(i,iR),b=Wo({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return Fs({root:["root",n&&"invisible"]},oR,t)})(b),x=null!=(n=f.root)?n:c.root;return fc.jsx(h,Wo({in:p,timeout:g},v,{children:fc.jsx(aR,Wo({"aria-hidden":!0},x,{as:null!=(r=null!=(o=m.root)?o:u.Root)?r:s,className:Fd(y.root,l,null==x?void 0:x.className),ownerState:Wo({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var sR=lR;var uR=sd("MuiBox",["root"]);const cR=Id(),dR=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Nl("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Qu);return ao.forwardRef((function(e,a){const l=rc(n),s=vc(e),{className:u,component:c="div"}=s,d=Sr(s,bc);return fc.jsx(i,mr({as:c,ref:a,className:Ys(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:Ho,defaultTheme:cR,defaultClassName:uR.root,generateClassName:id.generate});var pR=dR;function fR(e){return ld("MuiButton",e)}var mR=sd("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var hR=ao.createContext({});var gR=ao.createContext(void 0);const vR=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],bR=e=>Wo({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),yR=Od(aw,{shouldForwardProp:e=>Ad(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${qc(n.color)}`],t[`size${qc(n.size)}`],t[`${n.variant}Size${qc(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return Wo({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":Wo({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Dc(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Dc(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Dc(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":Wo({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${mR.focusVisible}`]:Wo({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${mR.disabled}`]:Wo({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Dc(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${mR.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${mR.disabled}`]:{boxShadow:"none"}})),xR=Od("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${qc(n.size)}`]]}})((({ownerState:e})=>Wo({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},bR(e)))),SR=Od("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${qc(n.size)}`]]}})((({ownerState:e})=>Wo({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},bR(e)))),ER=ao.forwardRef((function(e,t){const n=ao.useContext(hR),r=ao.useContext(gR),o=Pd({props:rd(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:m=!1,size:h="medium",startIcon:g,type:v,variant:b="text"}=o,y=Go(o,vR),x=Wo({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:v,variant:b}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return Wo({},a,Fs({root:["root",i,`${i}${qc(t)}`,`size${qc(o)}`,`${i}Size${qc(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${qc(o)}`],endIcon:["endIcon",`iconSize${qc(o)}`]},fR,a))})(x),E=g&&fc.jsx(xR,{className:S.startIcon,ownerState:x,children:g}),C=p&&fc.jsx(SR,{className:S.endIcon,ownerState:x,children:p}),w=r||"";return fc.jsxs(yR,Wo({ownerState:x,className:Fd(n.className,S.root,s,w),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:Fd(S.focusVisible,f),ref:t,type:v},y,{classes:S,children:[E,i,C]}))}));var CR=ER;function wR(e){return ld("MuiModal",e)}sd("MuiModal",["root","hidden","backdrop"]);const RR=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],LR=Od("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Wo({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),kR=Od(sR,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),IR=ao.forwardRef((function(e,t){var n,r,o,i,a,l;const s=Pd({name:"MuiModal",props:e}),{BackdropComponent:u=kR,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:C=!1,hideBackdrop:w=!1,keepMounted:R=!1,onBackdropClick:L,open:k,slotProps:I,slots:M}=s,_=Go(s,RR),P=Wo({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:E,disableScrollLock:C,hideBackdrop:w,keepMounted:R}),{getRootProps:A,getBackdropProps:D,getTransitionProps:T,portalRef:O,isTopModal:N,exited:q,hasTransition:F}=Rw(Wo({},P,{rootRef:t})),z=Wo({},P,{exited:q}),j=(e=>{const{open:t,exited:n,classes:r}=e;return Fs({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},wR,r)})(z),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),F){const{onEnter:e,onExited:t}=T();$.onEnter=e,$.onExited=t}const B=null!=(n=null!=(r=null==M?void 0:M.root)?r:g.Root)?n:LR,H=null!=(o=null!=(i=null==M?void 0:M.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==I?void 0:I.root)?a:v.root,G=null!=(l=null==I?void 0:I.backdrop)?l:v.backdrop,V=jC({elementType:B,externalSlotProps:W,externalForwardedProps:_,getSlotProps:A,additionalProps:{ref:t,as:h},ownerState:z,className:Fd(d,null==W?void 0:W.className,null==j?void 0:j.root,!z.open&&z.exited&&(null==j?void 0:j.hidden))}),U=jC({elementType:H,externalSlotProps:G,additionalProps:c,getSlotProps:e=>D(Wo({},e,{onClick:t=>{L&&L(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Fd(null==G?void 0:G.className,null==c?void 0:c.className,null==j?void 0:j.backdrop),ownerState:z});return R||k||F&&!q?fc.jsx(bw,{ref:O,container:m,disablePortal:S,children:fc.jsxs(B,Wo({},V,{children:[!w&&u?fc.jsx(H,Wo({},U)):null,fc.jsx(vw,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:N,open:k,children:ao.cloneElement(f,$)})]}))}):null}));var MR=IR;function _R(e){return ld("MuiDivider",e)}var PR=sd("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const AR=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],DR=Od("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>Wo({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Dc(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>Wo({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Wo({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>Wo({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>Wo({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),TR=Od("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Wo({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),OR=ao.forwardRef((function(e,t){const n=Pd({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=Go(n,AR),m=Wo({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return Fs({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},_R,r)})(m);return fc.jsx(DR,Wo({as:a,className:Fd(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?fc.jsx(TR,{className:h.wrapper,ownerState:m,children:o}):null}))}));OR.muiSkipListHighlight=!0;var NR=OR;const qR=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],FR=Od(Bw,{shouldForwardProp:e=>Ad(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...jw(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Wo({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${Jw.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Jw.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Jw.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Jw.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Jw.disabled}, .${Jw.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Jw.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Wo({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))})),zR=Od(Hw,{name:"MuiFilledInput",slot:"Input",overridesResolver:$w})((({theme:e,ownerState:t})=>Wo({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}))),jR=ao.forwardRef((function(e,t){var n,r,o,i;const a=Pd({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:s,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:m="text"}=a,h=Go(a,qR),g=Wo({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),v=(e=>{const{classes:t,disableUnderline:n}=e;return Wo({},t,Fs({root:["root",!n&&"underline"],input:["input"]},Qw,t))})(a),b={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?Nc(b,null!=p?p:s):b,x=null!=(n=null!=(r=f.root)?r:l.Root)?n:FR,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:zR;return fc.jsx(Vw,Wo({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:v}))}));jR.muiName="Input";var $R=jR;const BR=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function HR(e){return`scale(${e}, ${e**2})`}const WR={entering:{opacity:1,transform:HR(1)},entered:{opacity:1,transform:"none"}},GR="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),VR=ao.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=CC}=e,g=Go(e,BR),v=ao.useRef(),b=ao.useRef(),y=_d(),x=ao.useRef(null),S=Vc(x,o.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=E(u),w=E(((e,t)=>{_C(e);const{duration:n,delay:r,easing:o}=PC({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:GR?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),R=E(s),L=E(p),k=E((e=>{const{duration:t,delay:n,easing:r}=PC({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:GR?o:.666*o,delay:GR?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=HR(.75),c&&c(e)})),I=E(d);return ao.useEffect((()=>()=>{clearTimeout(v.current)}),[]),fc.jsx(h,Wo({appear:r,in:a,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:k,onExited:I,onExiting:L,addEndListener:e=>{"auto"===m&&(v.current=setTimeout(e,b.current||0)),n&&n(x.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>ao.cloneElement(o,Wo({style:Wo({opacity:0,transform:HR(.75),visibility:"exited"!==e||a?void 0:"hidden"},WR[e],f,o.props.style),ref:S},t))}))}));VR.muiSupportAuto=!0;var UR=VR;const YR=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],KR=Od(Bw,{shouldForwardProp:e=>Ad(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...jw(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Wo({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Yw.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Yw.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Yw.disabled}, .${Yw.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Yw.disabled}:before`]:{borderBottomStyle:"dotted"}})})),XR=Od(Hw,{name:"MuiInput",slot:"Input",overridesResolver:$w})({}),QR=ao.forwardRef((function(e,t){var n,r,o,i;const a=Pd({props:e,name:"MuiInput"}),{disableUnderline:l,components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:m={},type:h="text"}=a,g=Go(a,YR),v=(e=>{const{classes:t,disableUnderline:n}=e;return Wo({},t,Fs({root:["root",!n&&"underline"],input:["input"]},Uw,t))})(a),b={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?Nc(null!=f?f:u,b):b,x=null!=(n=null!=(r=m.root)?r:s.Root)?n:KR,S=null!=(o=null!=(i=m.input)?i:s.Input)?o:XR;return fc.jsx(Vw,Wo({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:v}))}));QR.muiName="Input";var JR=QR;function ZR(e){return ld("MuiLink",e)}var eL=sd("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const tL={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var nL=({theme:e,ownerState:t})=>{const n=(e=>tL[e]||e)(t.color),r=au(e,`palette.${n}`,!1)||t.color,o=au(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Dc(r,.4)};const rL=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],oL=Od(fw,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${qc(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>Wo({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Wo({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:nL({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${eL.focusVisible}`]:{outline:"auto"}}))),iL=ao.forwardRef((function(e,t){const n=Pd({props:e,name:"MuiLink"}),{className:r,color:o="primary",component:i="a",onBlur:a,onFocus:l,TypographyClasses:s,underline:u="always",variant:c="inherit",sx:d}=n,p=Go(n,rL),{isFocusVisibleRef:f,onBlur:m,onFocus:h,ref:g}=nd(),[v,b]=ao.useState(!1),y=Vc(t,g),x=Wo({},n,{color:o,component:i,focusVisible:v,underline:u,variant:c}),S=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return Fs({root:["root",`underline${qc(o)}`,"button"===n&&"button",r&&"focusVisible"]},ZR,t)})(x);return fc.jsx(oL,Wo({color:o,className:Fd(S.root,r),classes:s,component:i,onBlur:e=>{m(e),!1===f.current&&b(!1),a&&a(e)},onFocus:e=>{h(e),!0===f.current&&b(!0),l&&l(e)},ref:y,ownerState:x,variant:c,sx:[...Object.keys(tL).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var aL=iL;var lL=ao.createContext({});function sL(e){return ld("MuiList",e)}sd("MuiList",["root","padding","dense","subheader"]);const uL=["children","className","component","dense","disablePadding","subheader"],cL=Od("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>Wo({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var dL=ao.forwardRef((function(e,t){const n=Pd({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=Go(n,uL),c=ao.useMemo((()=>({dense:a})),[a]),d=Wo({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Fs({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},sL,t)})(d);return fc.jsx(lL.Provider,{value:c,children:fc.jsxs(cL,Wo({as:i,className:Fd(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function pL(e){return ld("MuiListItemIcon",e)}var fL=sd("MuiListItemIcon",["root","alignItemsFlexStart"]);const mL=["className"],hL=Od("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>Wo({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var gL=ao.forwardRef((function(e,t){const n=Pd({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Go(n,mL),i=Wo({},n,{alignItems:ao.useContext(lL).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return Fs({root:["root","flex-start"===t&&"alignItemsFlexStart"]},pL,n)})(i);return fc.jsx(hL,Wo({className:Fd(a.root,r),ownerState:i,ref:t},o))}));var vL=sd("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const bL=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function yL(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function xL(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function SL(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function EL(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&SL(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var CL=ao.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=Go(e,bL),p=ao.useRef(null),f=ao.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});jc((()=>{r&&p.current.focus()}),[r]),ao.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(Fc(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=Vc(p,t);let h=-1;ao.Children.forEach(i,((e,t)=>{ao.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=ao.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),ao.cloneElement(e,t)}return e}));return fc.jsx(dL,Wo({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=Fc(t).activeElement;if("ArrowDown"===n)e.preventDefault(),EL(t,r,s,l,yL);else if("ArrowUp"===n)e.preventDefault(),EL(t,r,s,l,xL);else if("Home"===n)e.preventDefault(),EL(t,null,s,l,yL);else if("End"===n)e.preventDefault(),EL(t,null,s,l,xL);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&SL(r,o);o.previousKeyMatched&&(s||EL(t,r,!1,l,yL,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function wL(e){return ld("MuiPopover",e)}sd("MuiPopover",["root","paper"]);const RL=["onEntering"],LL=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],kL=["slotProps"];function IL(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function ML(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function _L(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function PL(e){return"function"==typeof e?e():e}const AL=Od(MR,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),DL=Od(OC,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0});var TL=ao.forwardRef((function(e,t){var n,r,o;const i=Pd({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:v={},slots:b,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=UR,transitionDuration:E="auto",TransitionProps:{onEntering:C}={},disableScrollLock:w=!1}=i,R=Go(i.TransitionProps,RL),L=Go(i,LL),k=null!=(n=null==y?void 0:y.paper)?n:v,I=ao.useRef(),M=Vc(I,k.ref),_=Wo({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:k,transformOrigin:x,TransitionComponent:S,transitionDuration:E,TransitionProps:R}),P=(e=>{const{classes:t}=e;return Fs({root:["root"],paper:["paper"]},wL,t)})(_),A=ao.useCallback((()=>{if("anchorPosition"===c)return u;const e=PL(l),t=(e&&1===e.nodeType?e:Fc(I.current).body).getBoundingClientRect();return{top:t.top+IL(t,s.vertical),left:t.left+ML(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),D=ao.useCallback((e=>({vertical:IL(e,x.vertical),horizontal:ML(e,x.horizontal)})),[x.horizontal,x.vertical]),T=ao.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if("none"===c)return{top:null,left:null,transformOrigin:_L(n)};const r=A();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=zc(PL(l)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,n.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:_L(n)}}),[l,c,A,D,h]),[O,N]=ao.useState(g),q=ao.useCallback((()=>{const e=I.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[T]);ao.useEffect((()=>(w&&window.addEventListener("scroll",q),()=>window.removeEventListener("scroll",q))),[l,w,q]);ao.useEffect((()=>{g&&q()})),ao.useImperativeHandle(a,(()=>g?{updatePosition:()=>{q()}}:null),[g,q]),ao.useEffect((()=>{if(!g)return;const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}((()=>{q()})),t=zc(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,q]);let F=E;"auto"!==E||S.muiSupportAuto||(F=void 0);const z=f||(l?Fc(PL(l)).body:void 0),j=null!=(r=null==b?void 0:b.root)?r:AL,$=null!=(o=null==b?void 0:b.paper)?o:DL,B=jC({elementType:$,externalSlotProps:Wo({},k,{style:O?k.style:Wo({},k.style,{opacity:0})}),additionalProps:{elevation:m,ref:M},ownerState:_,className:Fd(P.paper,null==k?void 0:k.className)}),H=jC({elementType:j,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:L,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:_,className:Fd(P.root,p)}),{slotProps:W}=H,G=Go(H,kL);return fc.jsx(j,Wo({},G,!NC(j)&&{slotProps:W,disableScrollLock:w},{children:fc.jsx(S,Wo({appear:!0,in:g,onEntering:(e,t)=>{C&&C(e,t),q()},onExited:()=>{N(!1)},timeout:F},R,{children:fc.jsx($,Wo({},B,{children:d}))}))}))}));function OL(e){return ld("MuiMenu",e)}sd("MuiMenu",["root","paper","list"]);const NL=["onEntering"],qL=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],FL={vertical:"top",horizontal:"right"},zL={vertical:"top",horizontal:"left"},jL=Od(TL,{shouldForwardProp:e=>Ad(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),$L=Od(DL,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),BL=Od(CL,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var HL=ao.forwardRef((function(e,t){var n,r;const o=Pd({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:v={},slotProps:b={}}=o,y=Go(o.TransitionProps,NL),x=Go(o,qL),S=_d(),E="rtl"===S.direction,C=Wo({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:y,variant:g}),w=(e=>{const{classes:t}=e;return Fs({root:["root"],paper:["paper"],list:["list"]},OL,t)})(C),R=i&&!s&&d,L=ao.useRef(null);let k=-1;ao.Children.map(a,((e,t)=>{ao.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===k)&&(k=t))}));const I=null!=(n=v.paper)?n:$L,M=null!=(r=b.paper)?r:p,_=jC({elementType:v.root,externalSlotProps:b.root,ownerState:C,className:[w.root,l]}),P=jC({elementType:I,externalSlotProps:M,ownerState:C,className:w.paper});return fc.jsx(jL,Wo({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?FL:zL,slots:{paper:I,root:v.root},slotProps:{root:_,paper:P},open:d,ref:t,transitionDuration:m,TransitionProps:Wo({onEntering:(e,t)=>{L.current&&L.current.adjustStyleForScrollbar(e,S),h&&h(e,t)}},y),ownerState:C},x,{classes:f,children:fc.jsx(BL,Wo({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:L,autoFocus:i&&(-1===k||s),autoFocusItem:R,variant:g},u,{className:Fd(w.list,u.className),children:a}))}))}));function WL(e){return ld("MuiMenuItem",e)}var GL=sd("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const VL=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],UL=Od(aw,{shouldForwardProp:e=>Ad(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Wo({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${GL.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Dc(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${GL.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Dc(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${GL.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Dc(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Dc(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${GL.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${GL.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${PR.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${PR.inset}`]:{marginLeft:52},[`& .${vL.root}`]:{marginTop:0,marginBottom:0},[`& .${vL.inset}`]:{paddingLeft:36},[`& .${fL.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Wo({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${fL.root} svg`]:{fontSize:"1.25rem"}}))));var YL=ao.forwardRef((function(e,t){const n=Pd({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=Go(n,VL),f=ao.useContext(lL),m=ao.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=ao.useRef(null);jc((()=>{r&&h.current&&h.current.focus()}),[r]);const g=Wo({},n,{dense:m.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return Wo({},a,Fs({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},WL,a))})(n),b=Vc(h,t);let y;return n.disabled||(y=void 0!==c?c:-1),fc.jsx(lL.Provider,{value:m,children:fc.jsx(UL,Wo({ref:b,role:u,tabIndex:y,component:o,focusVisibleClassName:Fd(v.focusVisible,s),className:Fd(v.root,d)},p,{ownerState:g,classes:v}))})}));function KL(e){return ld("MuiNativeSelect",e)}var XL=sd("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const QL=["className","disabled","error","IconComponent","inputRef","variant"],JL=({ownerState:e,theme:t})=>Wo({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Wo({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${XL.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),ZL=Od("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ad,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${XL.multiple}`]:t.multiple}]}})(JL),ek=({ownerState:e,theme:t})=>Wo({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${XL.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),tk=Od("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${qc(n.variant)}`],n.open&&t.iconOpen]}})(ek),nk=ao.forwardRef((function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=Go(e,QL),u=Wo({},e,{disabled:r,variant:l,error:o}),c=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return Fs({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${qc(n)}`,i&&"iconOpen",r&&"disabled"]},KL,t)})(u);return fc.jsxs(ao.Fragment,{children:[fc.jsx(ZL,Wo({ownerState:u,className:Fd(c.select,n),disabled:r,ref:a||t},s)),e.multiple?null:fc.jsx(tk,{as:i,ownerState:u,className:c.icon})]})}));var rk,ok=nk;const ik=["children","classes","className","label","notched"],ak=Od("fieldset",{shouldForwardProp:Ad})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),lk=Od("legend",{shouldForwardProp:Ad})((({ownerState:e,theme:t})=>Wo({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&Wo({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));const sk=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],uk=Od(Bw,{shouldForwardProp:e=>Ad(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:jw})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Wo({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Xw.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Xw.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Xw.focused} .${Xw.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Xw.error} .${Xw.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Xw.disabled} .${Xw.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Wo({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),ck=Od((function(e){const{className:t,label:n,notched:r}=e,o=Go(e,ik),i=null!=n&&""!==n,a=Wo({},e,{notched:r,withLabel:i});return fc.jsx(ak,Wo({"aria-hidden":!0,className:t,ownerState:a},o,{children:fc.jsx(lk,{ownerState:a,children:i?fc.jsx("span",{children:n}):rk||(rk=fc.jsx("span",{className:"notranslate",children:"​"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),dk=Od(Hw,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:$w})((({theme:e,ownerState:t})=>Wo({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),pk=ao.forwardRef((function(e,t){var n,r,o,i,a;const l=Pd({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:m={},type:h="text"}=l,g=Go(l,sk),v=(e=>{const{classes:t}=e;return Wo({},t,Fs({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Kw,t))})(l),b=Dw(),y=Pw({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=Wo({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:b,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:h}),S=null!=(n=null!=(r=m.root)?r:s.Root)?n:uk,E=null!=(o=null!=(i=m.input)?i:s.Input)?o:dk;return fc.jsx(Vw,Wo({slots:{root:S,input:E},renderSuffix:e=>fc.jsx(ck,{ownerState:x,className:v.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=fc.jsxs(ao.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:h},g,{classes:Wo({},v,{notchedOutline:null})}))}));pk.muiName="Input";var fk=pk;function mk(e){return ld("MuiSelect",e)}var hk,gk=sd("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const vk=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],bk=Od("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${gk.select}`]:t.select},{[`&.${gk.select}`]:t[n.variant]},{[`&.${gk.error}`]:t.error},{[`&.${gk.multiple}`]:t.multiple}]}})(JL,{[`&.${gk.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),yk=Od("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${qc(n.variant)}`],n.open&&t.iconOpen]}})(ek),xk=Od("input",{shouldForwardProp:e=>Dd(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Sk(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Ek(e){return null==e||"string"==typeof e&&!e.trim()}const Ck=ao.forwardRef((function(e,t){var n;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:m,inputRef:h,labelId:g,MenuProps:v={},multiple:b,name:y,onBlur:x,onChange:S,onClose:E,onFocus:C,onOpen:w,open:R,readOnly:L,renderValue:k,SelectDisplayProps:I={},tabIndex:M,value:_,variant:P="standard"}=e,A=Go(e,vk),[D,T]=Wc({controlled:_,default:c,name:"Select"}),[O,N]=Wc({controlled:R,default:u,name:"Select"}),q=ao.useRef(null),F=ao.useRef(null),[z,j]=ao.useState(null),{current:$}=ao.useRef(null!=R),[B,H]=ao.useState(),W=Vc(t,h),G=ao.useCallback((e=>{F.current=e,e&&j(e)}),[]),V=null==z?void 0:z.parentNode;ao.useImperativeHandle(W,(()=>({focus:()=>{F.current.focus()},node:q.current,value:D})),[D]),ao.useEffect((()=>{u&&O&&z&&!$&&(H(a?null:V.clientWidth),F.current.focus())}),[z,a]),ao.useEffect((()=>{i&&F.current.focus()}),[i]),ao.useEffect((()=>{if(!g)return;const e=Fc(F.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&F.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const U=(e,t)=>{e?w&&w(t):E&&E(t),$||(H(a?null:V.clientWidth),N(e))},Y=ao.Children.toArray(l),K=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(b){n=Array.isArray(D)?D.slice():[];const t=D.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),D!==n&&(T(n),S)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:y}}),S(o,e)}b||U(!1,t)}},X=null!==z&&O;let Q,J;delete A["aria-invalid"];const Z=[];let ee=!1;(Nw({value:D})||p)&&(k?Q=k(D):ee=!0);const te=Y.map((e=>{if(!ao.isValidElement(e))return null;let t;if(b){if(!Array.isArray(D))throw new Error(Bo(2));t=D.some((t=>Sk(t,e.props.value))),t&&ee&&Z.push(e.props.children)}else t=Sk(D,e.props.value),t&&ee&&(J=e.props.children);return ao.cloneElement(e,{"aria-selected":t?"true":"false",onClick:K(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));ee&&(Q=b?0===Z.length?null:Z.reduce(((e,t,n)=>(e.push(t),n<Z.length-1&&e.push(", "),e)),[]):J);let ne,re=B;!a&&$&&z&&(re=V.clientWidth),ne=void 0!==M?M:d?null:0;const oe=I.id||(y?`mui-component-select-${y}`:void 0),ie=Wo({},e,{variant:P,value:D,open:X,error:f}),ae=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return Fs({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${qc(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},mk,t)})(ie),le=Wo({},v.PaperProps,null==(n=v.slotProps)?void 0:n.paper),se=Hc();return fc.jsxs(ao.Fragment,{children:[fc.jsx(bk,Wo({ref:G,tabIndex:ne,role:"combobox","aria-controls":se,"aria-disabled":d?"true":void 0,"aria-expanded":X?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,oe].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!L){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),U(!0,e))}},onMouseDown:d||L?null:e=>{0===e.button&&(e.preventDefault(),F.current.focus(),U(!0,e))},onBlur:e=>{!X&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:D,name:y}}),x(e))},onFocus:C},I,{ownerState:ie,className:Fd(I.className,ae.select,s),id:oe,children:Ek(Q)?hk||(hk=fc.jsx("span",{className:"notranslate",children:"​"})):Q})),fc.jsx(xk,Wo({"aria-invalid":f,value:Array.isArray(D)?D.join(","):D,name:y,ref:q,"aria-hidden":!0,onChange:e=>{const t=Y.find((t=>t.props.value===e.target.value));void 0!==t&&(T(t.props.value),S&&S(e,t))},tabIndex:-1,disabled:d,className:ae.nativeInput,autoFocus:i,ownerState:ie},A)),fc.jsx(yk,{as:m,className:ae.icon,ownerState:ie}),fc.jsx(HL,Wo({id:`menu-${y||""}`,anchorEl:V,open:X,onClose:e=>{U(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:Wo({"aria-labelledby":g,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:se},v.MenuListProps),slotProps:Wo({},v.slotProps,{paper:Wo({},le,{style:Wo({minWidth:re},null!=le?le.style:null)})}),children:te}))]})}));var wk=Ck;const Rk=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Lk=["root"],kk={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ad(e)&&"variant"!==e,slot:"Root"},Ik=Od(JR,kk)(""),Mk=Od(fk,kk)(""),_k=Od($R,kk)(""),Pk=ao.forwardRef((function(e,t){const n=Pd({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=Zw,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:v=!1,onClose:b,onOpen:y,open:x,renderValue:S,SelectDisplayProps:E,variant:C="outlined"}=n,w=Go(n,Rk),R=v?ok:wk,L=Pw({props:n,muiFormControl:Dw(),states:["variant","error"]}),k=L.variant||C,I=Wo({},n,{variant:k,classes:i}),M=(e=>{const{classes:t}=e;return t})(I),_=Go(M,Lk),P=d||{standard:fc.jsx(Ik,{ownerState:I}),outlined:fc.jsx(Mk,{label:f,ownerState:I}),filled:fc.jsx(_k,{ownerState:I})}[k],A=Vc(t,P.ref);return fc.jsx(ao.Fragment,{children:ao.cloneElement(P,Wo({inputComponent:R,inputProps:Wo({children:o,error:L.error,IconComponent:u,variant:k,type:void 0,multiple:g},v?{id:c}:{autoWidth:r,defaultOpen:l,displayEmpty:s,labelId:m,MenuProps:h,onClose:b,onOpen:y,open:x,renderValue:S,SelectDisplayProps:Wo({id:c},E)},p,{classes:p?Nc(_,p.classes):_},d?d.props.inputProps:{})},g&&v&&"outlined"===k?{notched:!0}:{},{ref:A,className:Fd(P.props.className,a,M.root)},!d&&{variant:k},w))})}));Pk.muiName="Select";var Ak=Pk,Dk=(e={})=>lo.createElement(Io,{...e},lo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},lo.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},lo.createElement("rect",{stroke:co.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const Tk={MuiAccordion:{styleOverrides:{root:{backgroundColor:co.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:co.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:lo.createElement(Ro,{"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 ${co.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:co.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${co.MISC_FOCUS_BORDER}`,borderRadius:go,backgroundColor:co.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 ${co.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:co.WHITE,color:co.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:go},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${co.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:co.GREYSCALE_0_15,backgroundColor:co.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:co.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${co.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:co.GREEN_PALE},"&:active":{backgroundColor:co.GREEN_DARK},"&.Mui-focusVisible":{borderColor:co.GREEN_PALE,boxShadow:`0 0 0 3px ${Dc(co.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:co.BLUE_PALE},"&:active":{backgroundColor:co.BLUE_DARK},"&.Mui-focusVisible":{borderColor:co.BLUE_PALE,boxShadow:`0 0 0 3px ${Dc(co.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:go,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:co.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${co.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:co.GREYSCALE_0_15,backgroundColor:co.GREYSCALE_100_60,"&:active":{backgroundColor:co.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:co.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${co.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:co.PURPLE,"&.Mui-focusVisible":{borderColor:co.PURPLE,boxShadow:`0 0 0 3px ${Dc(co.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:co.GREEN,"&.Mui-focusVisible":{borderColor:co.GREEN,boxShadow:`0 0 0 3px ${Dc(co.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:co.BLUE,"&.Mui-focusVisible":{borderColor:co.BLUE,boxShadow:`0 0 0 3px ${Dc(co.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:co.ORANGE,"&.Mui-focusVisible":{borderColor:co.ORANGE,boxShadow:`0 0 0 3px ${Dc(co.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:co.RED,"&.Mui-focusVisible":{borderColor:co.RED,boxShadow:`0 0 0 3px ${Dc(co.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:co.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:co.PURPLE_PALE},"&:active":{backgroundColor:co.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:co.PURPLE_PALE,boxShadow:`0 0 0 3px ${Dc(co.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:co.GREEN_PALE},"&:active":{backgroundColor:co.GREEN_DARK},"&.Mui-focusVisible":{borderColor:co.GREEN_PALE,boxShadow:`0 0 0 3px ${Dc(co.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:co.BLUE_PALE},"&:active":{backgroundColor:co.BLUE_DARK},"&.Mui-focusVisible":{borderColor:co.BLUE_PALE,boxShadow:`0 0 0 3px ${Dc(co.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:co.ORANGE_PALE},"&:active":{backgroundColor:co.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:co.ORANGE_PALE,boxShadow:`0 0 0 3px ${Dc(co.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:co.RED_PALE},"&:active":{backgroundColor:co.RED_DARK},"&.Mui-focusVisible":{borderColor:co.RED_PALE,boxShadow:`0 0 0 3px ${Dc(co.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:co.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:co.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:go,boxShadow:`inset 0 0 0 2px ${co.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:lo.createElement(ko,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:po,borderRadius:go,color:co.TEXT_PRIMARY,backgroundColor:co.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:co.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${co.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:co.GREYSCALE_0_05,color:co.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:co.GREEN,borderColor:co.GREEN},"&.MuiChip-outlinedInfo":{color:co.BLUE,borderColor:co.BLUE},"&.MuiChip-outlinedWarning":{color:co.ORANGE,borderColor:co.ORANGE},"&.MuiChip-outlinedError":{color:co.RED,borderColor:co.RED}},outlined:{border:`solid 1px ${co.GREYSCALE_0_15}`,backgroundColor:co.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:go,boxShadow:"none",backgroundColor:co.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:co.GREEN,borderColor:co.GREEN},outlinedSecondary:{color:co.BLUE,borderColor:co.BLUE},label:{fontFamily:So.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:lo.createElement(ko,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:lo.createElement(Ro,{"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:go},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:go,fontSize:fo,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:co.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${co.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:co.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:co.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:co.GREYSCALE_0_05}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:go,border:`solid 1px ${co.GREYSCALE_0_15}`,color:co.GREYSCALE_0_60,marginRight:0,width:ho,height:ho},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${co.GREYSCALE_0_15}`},clearIndicator:{borderRadius:go,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:co.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:fo}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:po,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:co.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:co.GREYSCALE_25,fontSize:po,fontFamily:So.FONT_FAMILY,fontWeight:yo,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:co.TEXT_PRIMARY},"&.Mui-error":{color:co.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:co.TEXT_SECONDARY,content:"'(optional)'",fontWeight:bo,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:co.TEXT_SECONDARY,content:"'(required)'",fontWeight:bo,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:fo,lineHeight:"16px",backgroundColor:co.WHITE,borderRadius:go,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${co.GREYSCALE_0_05}`,borderColor:co.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${co.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${co.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${co.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${co.RED}`,boxShadow:`0px 0px 0px 1px ${co.RED}, inset 0 2px 0 0 ${co.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${co.GREYSCALE_0_10}`,borderColor:co.GREYSCALE_0_10,backgroundColor:co.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:co.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:co.GREYSCALE_0_15,borderRadius:go,boxShadow:`inset 0 2px 0 0 ${co.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>lo.createElement(Ro,{...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:co.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:co.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:co.GREYSCALE_0_03},"&:active":{backgroundColor:co.GREYSCALE_0_10},"&:focus":{backgroundColor:co.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${co.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${co.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:co.GREYSCALE_0_30,"&:hover":{backgroundColor:co.GREYSCALE_0_0,borderColor:co.GREYSCALE_0_15},"& ~svg":{color:co.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${co.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:go}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:co.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${co.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:co.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:fo,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:po,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:po,fontWeight:yo,color:co.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:yo}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${co.GREYSCALE_0_15}, 0px 0px 0px 1px ${co.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:lo.createElement(Po,null),checkedIcon:lo.createElement(Ao,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:co.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${co.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:co.GREEN_PALE,boxShadow:`0 0 0 3px ${Dc(co.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:co.BLUE_PALE,boxShadow:`0 0 0 3px ${Dc(co.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:co.GREYSCALE_0_20}},"&.Mui-disabled":{fill:co.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:lo.createElement(Dk,null),checkedIcon:lo.createElement(Mo,null),indeterminateIcon:lo.createElement(_o,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:go,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:co.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:co.GREYSCALE_0_55,color:co.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:co.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:co.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:co.GREYSCALE_0_55,"&:hover":{color:co.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:co.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:co.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:fo,color:co.TEXT_PRIMARY,lineHeight:"16px",fontWeight:yo},secondary:{fontSize:po,color:co.GREYSCALE_45,fontWeight:bo,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:fo,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:co.GREYSCALE_0_03},"&:active":{backgroundColor:co.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:fo,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:co.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:po,borderBottom:`solid 1px ${co.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:fo,color:co.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:co.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:co.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:co.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:co.RED}}},"&.Mui-focusVisible":{backgroundColor:co.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:co.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:co.GREEN,height:"24px","&.Mui-disabled":{color:co.GREYSCALE_0_15}},rail:{backgroundColor:co.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${co.GREYSCALE_0_05}`,borderRadius:go,boxShadow:`inset 0px 0px 0px 1px ${co.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${co.GREYSCALE_0_05}`,borderRadius:go},thumb:{height:"16px",width:"16px",borderRadius:go,backgroundColor:co.WHITE,boxShadow:`0px 1px 2px 0px ${co.GREYSCALE_0_15}, 0px 0px 0px 1px ${co.GREYSCALE_0_05}`,"&:hover":{borderRadius:go,boxShadow:`0 2px 4px 0 ${co.GREYSCALE_0_30}, 0 0 0 1px ${co.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${co.GREYSCALE_0_15}, 0 0 0 1px ${co.GREYSCALE_0_06}, 0 0 0 2px ${co.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${co.GREYSCALE_0_15}, 0 0 0 1px ${co.GREYSCALE_0_06}, 0 0 0 2px ${co.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:co.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:co.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:co.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:co.GREYSCALE_0_15},markLabel:{color:co.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:co.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:co.WHITE,color:co.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:co.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:co.GREEN_PALE,boxShadow:`0 0 0 3px ${Dc(co.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:co.BLUE_PALE,boxShadow:`0 0 0 3px ${Dc(co.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:co.GREYSCALE_0_15,borderRadius:go},thumb:{height:"16px",width:"16px",borderRadius:go,backgroundColor:co.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:fo,fontWeight:yo,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${co.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${co.MISC_FOCUS_BORDER}`,backgroundColor:co.GREYSCALE_0_03,borderRadius:go},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:co.GREYSCALE_25,"&.Mui-selected":{color:co.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:fo,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${co.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${co.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${co.GREYSCALE_85}`,borderRight:`1px solid ${co.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:yo,backgroundColor:co.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:co.GREYSCALE_98,borderBottom:`1px solid ${co.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${co.GREYSCALE_85}`,borderTop:`1px solid ${co.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:co.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:co.GREYSCALE_0_05,"&:hover":{backgroundColor:co.GREYSCALE_0_03}},"&&:hover":{backgroundColor:co.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>lo.createElement(Do,{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 ${co.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:fo,borderRadius:go,padding:"7px 16px",border:`1px solid ${co.GREYSCALE_0_15}`,backgroundColor:co.GREYSCALE_100_60,color:co.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:co.GREYSCALE_0_10,border:`1px solid ${co.GREYSCALE_0_30}`},"&:hover":{backgroundColor:co.GREYSCALE_0_03,border:`1px solid ${co.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:co.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${co.MISC_FOCUS_BORDER}`,border:`1px solid ${co.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:co.GREYSCALE_25,backgroundColor:co.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:co.GREYSCALE_0_10,border:`1px solid ${co.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:po,height:24,width:24,padding:7},sizeLarge:{fontSize:mo,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:fo,borderRadius:go}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:co.GREYSCALE_20},tooltip:{backgroundColor:co.GREYSCALE_20,fontSize:po,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const Ok={mode:"light",primary:{light:co.GREEN_PALE,main:co.GREEN,dark:co.GREEN_DARK,contrastText:co.WHITE},secondary:{light:co.BLUE_PALE,main:co.BLUE,dark:co.BLUE_DARK,contrastText:co.WHITE},error:{light:co.RED_PALE,main:co.RED,dark:co.RED_DARK,contrastText:co.WHITE},warning:{light:co.ORANGE_PALE,main:co.ORANGE,dark:co.ORANGE_DARK,contrastText:co.WHITE},success:{light:co.GREEN_PALE,main:co.GREEN,dark:co.GREEN_DARK,contrastText:co.WHITE},info:{light:co.BLUE_PALE,main:co.BLUE,dark:co.BLUE_DARK,contrastText:co.WHITE},text:{primary:co.TEXT_PRIMARY,secondary:co.TEXT_SECONDARY,disabled:co.GREYSCALE_0_30},action:{hover:co.GREYSCALE_0_03,hoverOpacity:.05,selected:co.GREYSCALE_0_05,focus:co.MISC_FOCUS_BORDER},amethyst:{main:co.PURPLE,light:co.PURPLE_PALE,dark:co.PURPLE_DARK,contrastText:co.WHITE},background:{paper:co.WHITE,default:co.GREYSCALE_95},divider:co.GREYSCALE_0_15},Nk=e=>({components:Tk,palette:Ok,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:fo,fontWeightLight:vo,fontWeightRegular:bo,fontWeightMedium:yo,fontWeightBold:xo,htmlFontSize:fo,fontFamily:So.FONT_FAMILY,button:{fontWeight:yo,fontSize:fo,textTransform:"none"},body1:{fontSize:mo,lineHeight:"24px"},body2:{fontSize:fo,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:ho,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:mo,fontWeight:yo,lineHeight:"16px"},h6:{fontSize:fo,fontWeight:yo,lineHeight:"16px"},caption:{color:co.TEXT_SECONDARY},subtitle1:{fontSize:fo,color:co.TEXT_SECONDARY},subtitle2:{fontSize:po,color:co.TEXT_SECONDARY}},shape:{borderRadius:go}}),qk={...uo,MISC_FOCUS_BORDER:co.MISC_FOCUS_BORDER},Fk=Nk().palette,zk={TEXT:Fk.text.primary,DISABLED:Fk.text.disabled,HOVER:Fk.action.hover,WHITE:qk.GREYSCALE_100,BORDER_LIGHT:qk.GREYSCALE_90,BORDER_MEDIUM:qk.GREYSCALE_85,BORDER_HEAVY:qk.GREYSCALE_50,DARK_MODE_TEXT:qk.GREYSCALE_95,DARK_MODE_BORDER:qk.GREYSCALE_95,DARK_MODE_DISABLED:qk.GREYSCALE_70,DARK_MODE_BACKGROUND:qk.GREYSCALE_20,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:qk.GREYSCALE_95};function jk(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function $k(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Bk(){}var Hk=.7,Wk=1/Hk,Gk="\\s*([+-]?\\d+)\\s*",Vk="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Uk="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Yk=/^#([0-9a-f]{3,8})$/,Kk=new RegExp(`^rgb\\(${Gk},${Gk},${Gk}\\)$`),Xk=new RegExp(`^rgb\\(${Uk},${Uk},${Uk}\\)$`),Qk=new RegExp(`^rgba\\(${Gk},${Gk},${Gk},${Vk}\\)$`),Jk=new RegExp(`^rgba\\(${Uk},${Uk},${Uk},${Vk}\\)$`),Zk=new RegExp(`^hsl\\(${Vk},${Uk},${Uk}\\)$`),eI=new RegExp(`^hsla\\(${Vk},${Uk},${Uk},${Vk}\\)$`),tI={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 nI(){return this.rgb().formatHex()}function rI(){return this.rgb().formatRgb()}function oI(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Yk.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?iI(t):3===n?new uI(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?aI(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?aI(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=Kk.exec(e))?new uI(t[1],t[2],t[3],1):(t=Xk.exec(e))?new uI(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Qk.exec(e))?aI(t[1],t[2],t[3],t[4]):(t=Jk.exec(e))?aI(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Zk.exec(e))?hI(t[1],t[2]/100,t[3]/100,1):(t=eI.exec(e))?hI(t[1],t[2]/100,t[3]/100,t[4]):tI.hasOwnProperty(e)?iI(tI[e]):"transparent"===e?new uI(NaN,NaN,NaN,0):null}function iI(e){return new uI(e>>16&255,e>>8&255,255&e,1)}function aI(e,t,n,r){return r<=0&&(e=t=n=NaN),new uI(e,t,n,r)}function lI(e){return e instanceof Bk||(e=oI(e)),e?new uI((e=e.rgb()).r,e.g,e.b,e.opacity):new uI}function sI(e,t,n,r){return 1===arguments.length?lI(e):new uI(e,t,n,null==r?1:r)}function uI(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function cI(){return`#${mI(this.r)}${mI(this.g)}${mI(this.b)}`}function dI(){const e=pI(this.opacity);return`${1===e?"rgb(":"rgba("}${fI(this.r)}, ${fI(this.g)}, ${fI(this.b)}${1===e?")":`, ${e})`}`}function pI(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function fI(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function mI(e){return((e=fI(e))<16?"0":"")+e.toString(16)}function hI(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new vI(e,t,n,r)}function gI(e){if(e instanceof vI)return new vI(e.h,e.s,e.l,e.opacity);if(e instanceof Bk||(e=oI(e)),!e)return new vI;if(e instanceof vI)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new vI(a,l,s,e.opacity)}function vI(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function bI(e){return(e=(e||0)%360)<0?e+360:e}function yI(e){return Math.max(0,Math.min(1,e||0))}function xI(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}jk(Bk,oI,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:nI,formatHex:nI,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return gI(this).formatHsl()},formatRgb:rI,toString:rI}),jk(uI,sI,$k(Bk,{brighter(e){return e=null==e?Wk:Math.pow(Wk,e),new uI(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Hk:Math.pow(Hk,e),new uI(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new uI(fI(this.r),fI(this.g),fI(this.b),pI(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:cI,formatHex:cI,formatHex8:function(){return`#${mI(this.r)}${mI(this.g)}${mI(this.b)}${mI(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:dI,toString:dI})),jk(vI,(function(e,t,n,r){return 1===arguments.length?gI(e):new vI(e,t,n,null==r?1:r)}),$k(Bk,{brighter(e){return e=null==e?Wk:Math.pow(Wk,e),new vI(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Hk:Math.pow(Hk,e),new vI(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,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new uI(xI(e>=240?e-240:e+120,o,r),xI(e,o,r),xI(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new vI(bI(this.h),yI(this.s),yI(this.l),pI(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=pI(this.opacity);return`${1===e?"hsl(":"hsla("}${bI(this.h)}, ${100*yI(this.s)}%, ${100*yI(this.l)}%${1===e?")":`, ${e})`}`}}));const SI=Math.PI/180,EI=180/Math.PI,CI=.96422,wI=1,RI=.82521,LI=4/29,kI=6/29,II=3*kI*kI,MI=kI*kI*kI;function _I(e){if(e instanceof PI)return new PI(e.l,e.a,e.b,e.opacity);if(e instanceof qI)return FI(e);e instanceof uI||(e=lI(e));var t,n,r=OI(e.r),o=OI(e.g),i=OI(e.b),a=AI((.2225045*r+.7168786*o+.0606169*i)/wI);return r===o&&o===i?t=n=a:(t=AI((.4360747*r+.3850649*o+.1430804*i)/CI),n=AI((.0139322*r+.0971045*o+.7141733*i)/RI)),new PI(116*a-16,500*(t-a),200*(a-n),e.opacity)}function PI(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function AI(e){return e>MI?Math.pow(e,1/3):e/II+LI}function DI(e){return e>kI?e*e*e:II*(e-LI)}function TI(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function OI(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function NI(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof qI)return new qI(e.h,e.c,e.l,e.opacity);if(e instanceof PI||(e=_I(e)),0===e.a&&0===e.b)return new qI(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*EI;return new qI(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new qI(e,t,n,null==r?1:r)}function qI(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function FI(e){if(isNaN(e.h))return new PI(e.l,0,0,e.opacity);var t=e.h*SI;return new PI(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}jk(PI,(function(e,t,n,r){return 1===arguments.length?_I(e):new PI(e,t,n,null==r?1:r)}),$k(Bk,{brighter(e){return new PI(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new PI(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,n=isNaN(this.b)?e:e-this.b/200;return new uI(TI(3.1338561*(t=CI*DI(t))-1.6168667*(e=wI*DI(e))-.4906146*(n=RI*DI(n))),TI(-.9787684*t+1.9161415*e+.033454*n),TI(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),jk(qI,NI,$k(Bk,{brighter(e){return new qI(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new qI(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return FI(this).rgb()}}));const zI=(e,t)=>{const n=NI(e),r=n.l<70;return 0===n.opacity?(n.opacity=t.opacity,n.toString()):r?n.brighter(t.brighter).toString():n.darker(t.darker).toString()},jI=e=>{if(e){const t=sI(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},$I=e=>!!e&&0===sI(e).opacity,BI=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,HI=e=>{const t=BI.exec(e);if(t){const[,e,n,r,o]=t;return sI(+n,+r,+o,+e/255)}return sI(e)},WI=e=>{const t=HI(e);return Number.isNaN(t.r)?null:t.toString()},GI=e=>{e.stopPropagation(),e.preventDefault()},VI="#grid",UI=(e,t)=>{const n=null==t?void 0:t.closest(e);return n&&window.getComputedStyle(n).backgroundColor},YI=(e,t,n,r,o)=>{const i=UI(".qv-object .qv-inner-object",n),a=UI(".qv-panel-sheet",n),l=UI(VI,n),s=null!=l?l:a,u=(e=>{var t,n,r,o,i,a;const l=null===(t=e.components)||void 0===t?void 0:t.find((e=>"general"===e.key)),s=null==l||null===(n=l.bgColor)||void 0===n?void 0:n.colorExpression,u=null==l||null===(r=l.bgColor)||void 0===r||null===(r=r.color)||void 0===r?void 0:r.color;if((null==l||null===(o=l.bgColor)||void 0===o?void 0:o.useColorExpression)&&s)return WI(s);if("none"===u)return"transparent";if(void 0===u)return;const c=HI(u);return c.opacity=null!==(i=null==l||null===(a=l.bgColor)||void 0===a||null===(a=a.color)||void 0===a?void 0:a.alpha)&&void 0!==i?i:c.opacity,c.toString()})(e),c=null==r?void 0:r(t),d=null==o?void 0:o(t),p=c||i||d,f=$I(p),m=jI(f?s:p),h=((e,t,n)=>e&&!$I(e)?e:$I(t)?n&&!$I(n)?n:zk.WHITE:t)(u,p,s);return{color:p,headerColor:h,isDark:m}},KI=(t,n,r,o)=>{const i=e.useTheme(),a=((t,n={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,o]=e.useState([]);return e.useEffect((()=>{let e;return t&&(e=new MutationObserver((e=>{o(e)})),e.observe(t,n)),()=>{var t;null===(t=e)||void 0===t||t.disconnect()}}),[t,n]),r})(null==n?void 0:n.closest(VI),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>null==e?void 0:e.includes("background"))).map((({oldValue:e})=>e)).join(",");return e.useMemo((()=>({...i,background:YI(t,i,n,r,o)})),[i.name(),n,r,o,t,a])};function XI(t,n){const r=e.useMemo((()=>({isLoading:!0})),n),[o,i]=e.usePromise((async()=>{try{return await t()}finally{r.isLoading=!1}}),n);return[o,r.isLoading,i]}const QI=3,JI="N";function ZI(e,t,n){let r=0,o=e.length;if(e.length<=1)return null;if(n(e)<=t)return null;for(;r<=o;){const i=Math.floor((r+o)/2),a=e.slice(0,i),l=e.slice(0,i-1),s=n(a),u=n(l);if(s>t&&u<=t)return e.slice(i-1)||null;if(s===t)return e.slice(i)||null;s<t?r=i+1:o=i}return null}function eM({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},o){const{maxNbrLinesOfText:i=QI}=null!=o?o:{},{estimateWidth:a,measureText:l,estimateLineCount:s}=ao.useMemo((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${n} ${r} ${e} ${t}`;const a=wn(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=wn((({text:e,maxWidth:t,isNumeric:n=!1})=>{if(n)return 1;let r=0,o=e;do{r+=1,o=ZI(o,t,l)}while(null!==o&&r<i);return r}),(({text:e,maxWidth:t,isNumeric:n})=>`${e}-${t}-${n?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a(JI).width*e,estimateLineCount:s}}),[n,r,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:s}}var tM,nM=pC;tM=nM.createRoot,nM.hydrateRoot;function rM(e,t){const[n,r]=ao.useState(t);n.some(((e,n)=>e!==t[n]))&&(r(t),e())}var oM={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_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_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 iM=({translator:e})=>(ao.useMemo((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(oM).forEach((t=>{e.add(oM[t])}))}}(e)),[e]),e),aM=document.createElement("textarea");function lM(e){aM.value=e,document.body.appendChild(aM),aM.select(),aM.setSelectionRange(0,aM.value.length),document.execCommand("copy"),document.body.removeChild(aM)}aM.style.position="absolute",aM.style.left="-9999px",aM.setAttribute("readonly","");function sM(){null===e.onContextMenu||void 0===e.onContextMenu||e.onContextMenu(((e,t)=>{const n=t.target,r=null==n?void 0:n.closest(`.${Je}`);null!=r&&r.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{(e=>{var t;const n=e.title;n&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(n).catch((()=>lM(n))):lM(n))})(r)}})}))}var uM="$$material";function cM(){return cM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cM.apply(null,arguments)}function dM(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}const pM=["values","unit","step"],fM=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>mr({},e,{[t.key]:t.val})),{})};function mM(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Sr(e,pM),i=fM(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return mr({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}var hM={borderRadius:4};function gM(e,t){return t?$l(e,t,{clone:!1}):e}const vM={xs:0,sm:600,md:900,lg:1200,xl:1536},bM={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${vM[e]}px)`};function yM(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||bM;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||bM;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||vM).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function xM(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function SM(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:xM(e,n)||r,t&&(o=t(o,r,e)),o}function EM(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=xM(e.theme,r)||{};return yM(e,i,(e=>{let r=SM(a,o,e);return e===r&&"string"==typeof e&&(r=SM(a,o,`${t}${"default"===e?"":fs(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const CM={m:"margin",p:"padding"},wM={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},RM={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},LM=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!RM[e])return[e];e=RM[e]}const[t,n]=e.split(""),r=CM[t],o=wM[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),kM=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],IM=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function MM(e,t,n,r){var o;const i=null!=(o=xM(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function _M(e){return MM(e,"spacing",8)}function PM(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function AM(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=PM(t,n),e)),{})}(LM(n),r);return yM(e,e[n],o)}function DM(e,t){const n=_M(e.theme);return Object.keys(e).map((r=>AM(e,t,r,n))).reduce(gM,{})}function TM(e){return DM(e,kM)}function OM(e){return DM(e,IM)}function NM(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?gM(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function qM(e){return"number"!=typeof e?e:`${e}px solid`}function FM(e,t){return EM({prop:e,themeKey:"borders",transform:t})}TM.propTypes={},TM.filterProps=kM,OM.propTypes={},OM.filterProps=IM;const zM=FM("border",qM),jM=FM("borderTop",qM),$M=FM("borderRight",qM),BM=FM("borderBottom",qM),HM=FM("borderLeft",qM),WM=FM("borderColor"),GM=FM("borderTopColor"),VM=FM("borderRightColor"),UM=FM("borderBottomColor"),YM=FM("borderLeftColor"),KM=FM("outline",qM),XM=FM("outlineColor"),QM=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=MM(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:PM(t,e)});return yM(e,e.borderRadius,n)}return null};QM.propTypes={},QM.filterProps=["borderRadius"],NM(zM,jM,$M,BM,HM,WM,GM,VM,UM,YM,QM,KM,XM);const JM=e=>{if(void 0!==e.gap&&null!==e.gap){const t=MM(e.theme,"spacing",8),n=e=>({gap:PM(t,e)});return yM(e,e.gap,n)}return null};JM.propTypes={},JM.filterProps=["gap"];const ZM=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=MM(e.theme,"spacing",8),n=e=>({columnGap:PM(t,e)});return yM(e,e.columnGap,n)}return null};ZM.propTypes={},ZM.filterProps=["columnGap"];const e_=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=MM(e.theme,"spacing",8),n=e=>({rowGap:PM(t,e)});return yM(e,e.rowGap,n)}return null};e_.propTypes={},e_.filterProps=["rowGap"];function t_(e,t){return"grey"===t?t:e}NM(JM,ZM,e_,EM({prop:"gridColumn"}),EM({prop:"gridRow"}),EM({prop:"gridAutoFlow"}),EM({prop:"gridAutoColumns"}),EM({prop:"gridAutoRows"}),EM({prop:"gridTemplateColumns"}),EM({prop:"gridTemplateRows"}),EM({prop:"gridTemplateAreas"}),EM({prop:"gridArea"}));function n_(e){return e<=1&&0!==e?100*e+"%":e}NM(EM({prop:"color",themeKey:"palette",transform:t_}),EM({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:t_}),EM({prop:"backgroundColor",themeKey:"palette",transform:t_}));const r_=EM({prop:"width",transform:n_}),o_=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||vM[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:n_(t)}};return yM(e,e.maxWidth,t)}return null};o_.filterProps=["maxWidth"];const i_=EM({prop:"minWidth",transform:n_}),a_=EM({prop:"height",transform:n_}),l_=EM({prop:"maxHeight",transform:n_}),s_=EM({prop:"minHeight",transform:n_});EM({prop:"size",cssProperty:"width",transform:n_}),EM({prop:"size",cssProperty:"height",transform:n_});NM(r_,o_,i_,a_,l_,s_,EM({prop:"boxSizing"}));var u_={border:{themeKey:"borders",transform:qM},borderTop:{themeKey:"borders",transform:qM},borderRight:{themeKey:"borders",transform:qM},borderBottom:{themeKey:"borders",transform:qM},borderLeft:{themeKey:"borders",transform:qM},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:qM},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:QM},color:{themeKey:"palette",transform:t_},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:t_},backgroundColor:{themeKey:"palette",transform:t_},p:{style:OM},pt:{style:OM},pr:{style:OM},pb:{style:OM},pl:{style:OM},px:{style:OM},py:{style:OM},padding:{style:OM},paddingTop:{style:OM},paddingRight:{style:OM},paddingBottom:{style:OM},paddingLeft:{style:OM},paddingX:{style:OM},paddingY:{style:OM},paddingInline:{style:OM},paddingInlineStart:{style:OM},paddingInlineEnd:{style:OM},paddingBlock:{style:OM},paddingBlockStart:{style:OM},paddingBlockEnd:{style:OM},m:{style:TM},mt:{style:TM},mr:{style:TM},mb:{style:TM},ml:{style:TM},mx:{style:TM},my:{style:TM},margin:{style:TM},marginTop:{style:TM},marginRight:{style:TM},marginBottom:{style:TM},marginLeft:{style:TM},marginX:{style:TM},marginY:{style:TM},marginInline:{style:TM},marginInlineStart:{style:TM},marginInlineEnd:{style:TM},marginBlock:{style:TM},marginBlockStart:{style:TM},marginBlockEnd:{style:TM},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:JM},rowGap:{style:e_},columnGap:{style:ZM},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:n_},maxWidth:{style:o_},minWidth:{transform:n_},height:{transform:n_},maxHeight:{transform:n_},minHeight:{transform:n_},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function c_(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=xM(n,l)||{};if(u)return u(o);return yM(o,t,(t=>{let n=SM(c,s,t);return t===n&&"string"==typeof t&&(n=SM(c,s,`${e}${"default"===t?"":fs(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:u_;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[n])s=gM(s,e(n,o,i,a));else{const e=yM({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=gM(s,e):s[n]=t({sx:o,theme:i})}else s=gM(s,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const d_=c_();d_.filterProps=["sx"];var p_=d_;function f_(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}const m_=["breakpoints","palette","spacing","shape"];function h_(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Sr(e,m_),l=mM(n),s=function(e=8){if(e.mui)return e;const t=_M({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(o);let u=$l({breakpoints:l,direction:"ltr",components:{},palette:mr({mode:"light"},r),spacing:s,shape:mr({},hM,i)},a);return u.applyStyles=f_,u=t.reduce(((e,t)=>$l(e,t)),u),u.unstable_sxConfig=mr({},u_,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return p_({sx:e,theme:this})},u}var g_=Object.freeze({__proto__:null,default:h_,private_createBreakpoints:mM,unstable_applyStyles:f_});function v_(e=null){const t=ao.useContext(El);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const b_=h_();function y_(e=b_){return v_(e)}const x_=["sx"],S_=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:u_;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function E_(e){const{sx:t}=e,n=Sr(e,x_),{systemProps:r,otherProps:o}=S_(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return zl(n)?mr({},r,n):r}:mr({},r,t),mr({},o,{sx:i})}var C_=Object.freeze({__proto__:null,default:p_,extendSxProp:E_,unstable_createStyleFunctionSx:c_,unstable_defaultSxConfig:u_});const w_=["className","component"];function R_(e){if(e.type)return e;if("#"===e.charAt(0))return R_(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Vo(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(Vo(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function L_(e,t){return e=R_(e),t=function(e,t=0,n=1){return Ws(e,t,n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}(e)}var k_=ao.createContext(null);function I_(){return ao.useContext(k_)}var M_="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function __(e){const{children:t,theme:n}=e,r=I_(),o=ao.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return mr({},e,t)}(r,n);return null!=e&&(e[M_]=null!==r),e}),[n,r]);return fc.jsx(k_.Provider,{value:o,children:t})}const P_=["value"],A_=ao.createContext();function D_(e){let{value:t}=e,n=Sr(e,P_);return fc.jsx(A_.Provider,mr({value:null==t||t},n))}const T_=ao.createContext(void 0);function O_({value:e,children:t}){return fc.jsx(T_.Provider,{value:e,children:t})}function N_({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?qs(o.defaultProps,r):o.styleOverrides||o.variants?r:qs(o,r)}({props:e,name:t,theme:{components:ao.useContext(T_)}})}const q_={};function F_(e,t,n,r=!1){return ao.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?mr({},t,{[e]:i}):i;return r?()=>a:a}return mr({},t,e?{[e]:n}:n)}),[e,t,n,r])}function z_(e){const{children:t,theme:n,themeId:r}=e,o=v_(q_),i=I_()||q_,a=F_(r,o,n),l=F_(r,i,n,!0),s="rtl"===a.direction;return fc.jsx(__,{theme:l,children:fc.jsx(El.Provider,{value:a,children:fc.jsx(D_,{value:s,children:fc.jsx(O_,{value:null==a?void 0:a.components,children:t})})})})}var j_={},$_={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}($_);var B_=$_.exports,H_=r(Uo),W_=r(Gs),G_=B_;Object.defineProperty(j_,"__esModule",{value:!0});var V_=j_.alpha=iP;j_.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=eP(e),a=eP(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return nP({type:"rgb",values:l})},j_.colorChannel=void 0;var U_=j_.darken=aP;j_.decomposeColor=eP,j_.emphasize=sP;var Y_=j_.getContrastRatio=function(e,t){const n=oP(e),r=oP(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};j_.getLuminance=oP,j_.hexToRgb=Z_,j_.hslToRgb=rP;var K_=j_.lighten=lP;j_.private_safeAlpha=function(e,t,n){try{return iP(e,t)}catch(t){return e}},j_.private_safeColorChannel=void 0,j_.private_safeDarken=function(e,t,n){try{return aP(e,t)}catch(t){return e}},j_.private_safeEmphasize=function(e,t,n){try{return sP(e,t)}catch(t){return e}},j_.private_safeLighten=function(e,t,n){try{return lP(e,t)}catch(t){return e}},j_.recomposeColor=nP,j_.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=eP(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var X_=G_(H_),Q_=G_(W_);function J_(e,t=0,n=1){return(0,Q_.default)(e,t,n)}function Z_(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function eP(e){if(e.type)return e;if("#"===e.charAt(0))return eP(Z_(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,X_.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,X_.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const tP=e=>{const t=eP(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};j_.colorChannel=tP;function nP(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function rP(e){e=eP(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),nP({type:l,values:s})}function oP(e){let t="hsl"===(e=eP(e)).type||"hsla"===e.type?eP(rP(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function iP(e,t){return e=eP(e),t=J_(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,nP(e)}function aP(e,t){if(e=eP(e),t=J_(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return nP(e)}function lP(e,t){if(e=eP(e),t=J_(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return nP(e)}function sP(e,t=.15){return oP(e)>.5?aP(e,t):lP(e,t)}j_.private_safeColorChannel=(e,t)=>{try{return tP(e)}catch(t){return e}};var uP={black:"#000",white:"#fff"};var cP={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};var dP={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var pP={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"};var fP={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"};var mP={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"};var hP={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var gP={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"};const vP=["mode","contrastThreshold","tonalOffset"],bP={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:uP.white,default:uP.white},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}},yP={text:{primary:uP.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:uP.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 xP(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=K_(e.main,o):"dark"===t&&(e.dark=U_(e.main,i)))}function SP(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=dM(e,vP),i=e.primary||function(e="light"){return"dark"===e?{main:mP[200],light:mP[50],dark:mP[400]}:{main:mP[700],light:mP[400],dark:mP[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:dP[200],light:dP[50],dark:dP[400]}:{main:dP[500],light:dP[300],dark:dP[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:pP[500],light:pP[300],dark:pP[700]}:{main:pP[700],light:pP[400],dark:pP[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:hP[400],light:hP[300],dark:hP[700]}:{main:hP[700],light:hP[500],dark:hP[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:gP[400],light:gP[300],dark:gP[700]}:{main:gP[800],light:gP[500],dark:gP[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:fP[400],light:fP[300],dark:fP[700]}:{main:"#ed6c02",light:fP[500],dark:fP[900]}}(t);function d(e){return Y_(e,yP.text.primary)>=n?yP.text.primary:bP.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=cM({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Vo(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Vo(12,t?` (${t})`:"",JSON.stringify(e.main)));return xP(e,"light",o,r),xP(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:yP,light:bP};return $l(cM({common:cM({},uP),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:cP,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const EP=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const CP={textTransform:"uppercase"},wP='"Roboto", "Helvetica", "Arial", sans-serif';function RP(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=wP,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=dM(n,EP),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,n,o,i)=>{return cM({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===wP?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,CP),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,CP),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return $l(cM({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function LP(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var kP=["none",LP(0,2,1,-1,0,1,1,0,0,1,3,0),LP(0,3,1,-2,0,2,2,0,0,1,5,0),LP(0,3,3,-2,0,3,4,0,0,1,8,0),LP(0,2,4,-1,0,4,5,0,0,1,10,0),LP(0,3,5,-1,0,5,8,0,0,1,14,0),LP(0,3,5,-1,0,6,10,0,0,1,18,0),LP(0,4,5,-2,0,7,10,1,0,2,16,1),LP(0,5,5,-3,0,8,10,1,0,3,14,2),LP(0,5,6,-3,0,9,12,1,0,3,16,2),LP(0,6,6,-3,0,10,14,1,0,4,18,3),LP(0,6,7,-4,0,11,15,1,0,4,20,3),LP(0,7,8,-4,0,12,17,2,0,5,22,4),LP(0,7,8,-4,0,13,19,2,0,5,24,4),LP(0,7,9,-4,0,14,21,2,0,5,26,4),LP(0,8,9,-5,0,15,22,2,0,6,28,5),LP(0,8,10,-5,0,16,24,2,0,6,30,5),LP(0,8,11,-5,0,17,26,2,0,6,32,5),LP(0,9,11,-5,0,18,28,2,0,7,34,6),LP(0,9,12,-6,0,19,29,2,0,7,36,6),LP(0,10,13,-6,0,20,31,3,0,8,38,7),LP(0,10,13,-6,0,21,33,3,0,8,40,7),LP(0,10,14,-6,0,22,35,3,0,8,42,7),LP(0,11,14,-7,0,23,36,3,0,9,44,8),LP(0,11,15,-7,0,24,38,3,0,9,46,8)];const IP=["duration","easing","delay"],MP={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)"},_P={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function PP(e){return`${Math.round(e)}ms`}function AP(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function DP(e){const t=cM({},MP,e.easing),n=cM({},_P,e.duration);return cM({getAutoHeightDuration:AP,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return dM(r,IP),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:PP(o)} ${i} ${"string"==typeof a?a:PP(a)}`)).join(",")}},e,{easing:t,duration:n})}var TP={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const OP=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function NP(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=dM(e,OP);if(e.vars)throw new Error(Vo(18));const l=SP(r),s=h_(e);let u=$l(s,{mixins:(c=s.breakpoints,d=n,cM({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:kP.slice(),typography:RP(l,i),transitions:DP(o),zIndex:cM({},TP)});var c,d;return u=$l(u,a),u=t.reduce(((e,t)=>$l(e,t)),u),u.unstable_sxConfig=cM({},u_,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return p_({sx:e,theme:this})},u}var qP=NP();function FP(){const e=y_(qP);return e[uM]||e}var zP,jP={},$P={exports:{}};var BP,HP={exports:{}};var WP=r(Fl),GP=r(Hl),VP=r(ms),UP=r(ps),YP=r(g_),KP=r(C_),XP=B_;Object.defineProperty(jP,"__esModule",{value:!0});var QP=jP.default=function(e={}){const{themeId:t,defaultTheme:n=uA,rootShouldForwardProp:r=sA,slotShouldForwardProp:o=sA}=e,i=e=>(0,rA.default)((0,JP.default)({},e,{theme:dA((0,JP.default)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,eA.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=pA(cA(s))}=a,p=(0,ZP.default)(a,aA),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=sA;"Root"===s||"root"===s?h=r:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=(0,eA.default)(e,(0,JP.default)({shouldForwardProp:h,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,tA.isPlainObject)(e)?r=>fA(e,(0,JP.default)({},r,{theme:dA({theme:r.theme,defaultTheme:n,themeId:t})})):e,b=(r,...o)=>{let a=v(r);const s=o?o.map(v):[];l&&d&&s.push((e=>{const r=dA((0,JP.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=fA(n,(0,JP.default)({},e,{theme:r}))})),d(e,i)})),l&&!f&&s.push((e=>{var r;const o=dA((0,JP.default)({},e,{defaultTheme:n,themeId:t}));return fA({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},(0,JP.default)({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(b.withConfig=g.withConfig),b}};jP.shouldForwardProp=sA,jP.systemDefaultTheme=void 0;var JP=XP((zP||(zP=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}($P)),$P.exports)),ZP=XP((BP||(BP=1,function(e){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports}(HP)),HP.exports)),eA=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=lA(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(WP),tA=GP;XP(VP),XP(UP);var nA=XP(YP),rA=XP(KP);const oA=["ownerState"],iA=["variants"],aA=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function lA(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(lA=function(e){return e?n:t})(e)}function sA(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const uA=jP.systemDefaultTheme=(0,nA.default)(),cA=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function dA({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function pA(e){return e?(t,n)=>n[e]:null}function fA(e,t){let{ownerState:n}=t,r=(0,ZP.default)(t,oA);const o="function"==typeof e?e((0,JP.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>fA(e,(0,JP.default)({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,ZP.default)(o,iA);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,JP.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,JP.default)({ownerState:n},r,n)):e.style))})),t}return o}var mA=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var hA=QP({themeId:uM,defaultTheme:qP,rootShouldForwardProp:mA});const gA=["theme"];function vA(e){let{theme:t}=e,n=dM(e,gA);const r=t[uM];return fc.jsx(z_,cM({},n,{themeId:r?uM:void 0,theme:r||t}))}var bA=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};const yA=Od(pR,{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t})=>({pointerEvents:"auto",touchAction:"none",display:"flex",position:"absolute",height:"100%",top:0,cursor:"col-resize",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",marginLeft:"-4px","&:hover:not(:focus, :active)":{[`& .${tt}`]:{background:t||"#D9D9D9","@media (hover: none)":{background:"none"}}},"&:focus-visible, &:active":{outline:"none",[`& .${tt}`]:{background:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}}}))),xA=Od(pR)({position:"absolute",height:"100%",width:"3px"}),SA=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:l,setIsAdjustingWidth:s,isLeftColumn:u})=>{const c=ao.useRef({initWidth:e,columnWidth:e,initX:0}),d=n?0:1,p=r&&!u,f={left:p?c.current.columnWidth-d:"100%"},m=t=>{c.current={initWidth:e,columnWidth:e,initX:null!=t?t:c.current.initX}};rM((()=>p&&m()),[e]);const h=e=>{const t=Math.max(e,nt.PixelsMin);c.current.columnWidth=t,i(t)},g=()=>{if(c.current.columnWidth!==c.current.initWidth){const e={type:rt.Pixels,pixels:c.current.columnWidth};a(e)}else null==s||s(!1)},v=e=>{const t=c.current.initWidth+e.clientX-c.current.initX;h(t)},b=e=>{GI(e),document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",b),g()},y=e=>{const t=c.current.initWidth+e.touches[0].clientX-c.current.initX;h(t)},x=e=>{GI(e),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",x),g()},S=!r&&l?e=>{if(e.key===Ze.LEFT||e.key===Ze.RIGHT){GI(e);const t=5,n=e.key===Ze.LEFT?-t:t;h(c.current.columnWidth+n)}else e.key===Ze.SPACE||e.key===Ze.ENTER?(GI(e),l(e),g()):e.key===Ze.ESC&&(GI(e),l(e),h(c.current.initWidth))}:void 0;return lo.createElement(yA,{className:et,isLastColumn:n,hoverColor:o,style:f,key:t,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",v),document.addEventListener("mouseup",b),null==s||s(!0),m(e.clientX)},onDoubleClick:()=>a({type:rt.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",y),document.addEventListener("touchend",x),null==s||s(!0),m(e.touches[0].clientX))},onKeyDown:S,onBlur:l,onFocus:()=>m(),"data-testid":et},lo.createElement(xA,{className:tt}))};function EA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const CA=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){EA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})),wA=ao.forwardRef(CA);function RA(){return RA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},RA.apply(null,arguments)}const LA=Od(pR,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e})((({rightAligned:e,shouldShowMenuIcon:t})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:24,display:t?"flex":"none",fontWeight:"bold",width:"100%",alignItems:"center",justifyContent:"center"}))),kA=Od(wA,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),IA=Od(HL)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),MA=Od(NR)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),_A=Od(YL)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),PA=Od(YL,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:n})=>({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:""+(n?"rgba(0, 0, 0, 0.05)":"transparent")}))),AA=Od("div")((({theme:e})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),DA=Od("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),TA=Od(fw)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),OA=Od(gL)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function NA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const qA=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){NA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})),FA=ao.forwardRef(qA);let zA={};const jA=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=ao.useState(!1),p=ao.useRef(null),f=ao.useCallback((e=>{e.stopPropagation(),d(!1)}),[d]);return lo.createElement(lo.Fragment,null,lo.createElement(PA,{ref:a?p:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),zA={}),null!=a&&a.length&&(d(!0),zA[r]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&lo.createElement(AA,null),lo.createElement(DA,null,lo.createElement(OA,null,lo.createElement(o,null)),lo.createElement(TA,{variant:"body2"},r)),null!=a&&a.length?lo.createElement(FA,null):null),(null==a?void 0:a.length)&&lo.createElement(HA,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(m=a,h=zA,m.map((e=>e.map((e=>{var t;return{...e.groupHeading?{groupHeading:e.groupHeading}:{},items:null===(t=e.items)||void 0===t?void 0:t.map((({onClick:e,...t})=>({...t,...e?{onClick:async t=>{Object.entries(h).map((([,e])=>e(!1))),await e(t)}}:{}})))}}))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},handleHeadCellMenuKeyDown:u}));var m,h},$A=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map((e=>{var r;return[[e.groupHeading&&lo.createElement(_A,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(r=e.items)||void 0===r?void 0:r.map((e=>lo.createElement(jA,RA({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:n}))))].filter(Boolean)]})),BA={appear:200,enter:200,exit:100},HA=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:o,anchorOrigin:i,isSubMenu:a,handleHeadCellMenuKeyDown:l})=>r.length?lo.createElement(IA,RA({className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:n,transitionDuration:BA,MenuListProps:{id:"nebula-table-utils-head-menu-list-id"}},i?{anchorOrigin:i}:{},o?{transformOrigin:o}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map(((r,o)=>[$A({menuGroup:r,isSubMenu:t,handleHeadCellMenuKeyDown:n}),o<e.length-1?lo.createElement(MA,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:r,isSubMenu:a,handleHeadCellMenuKeyDown:l})):null,WA={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},GA=(e,t)=>e.some((e=>t[e]>0));function VA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const UA=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){VA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("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"})),YA=ao.forwardRef(UA);function KA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const XA=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){KA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("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"})),QA=ao.forwardRef(XA);function JA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ZA=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){JA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("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"})),eD=ao.forwardRef(ZA);function tD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const nD=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){tD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("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"})),rD=ao.forwardRef(nD);function oD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const iD=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){oD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("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"})),aD=ao.forwardRef(iD);function lD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const sD=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){lD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("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"})),uD=ao.forwardRef(sD);function cD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const dD=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){cD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("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"})),pD=ao.forwardRef(dD);function fD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const mD=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){fD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("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"})),hD=ao.forwardRef(mD);function gD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const vD=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){gD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("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"})),bD=ao.forwardRef(vD);function yD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const xD=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){yD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("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"})),SD=ao.forwardRef(xD);let ED=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const CD=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:l,selectionActionsEnabledStatus:s,anchorRef:u,setFocusOnColumnAdjuster:c})=>{const d=[];if(n[ED.SORTING]){const{isActivelySorted:n,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:l}=(({isActivelySorted:e,sortDirection:t,isPivot:n,isSortedByFirstMeasure:r})=>{let o=!n&&!e||"D"===t,i=!n&&!e||"A"===t;return r&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);d.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"A")),r(!1)},icon:YA,enabled:a,isActive:!!n&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"D")),r(!1)},icon:rD,enabled:l,isActive:!!n&&"D"===i,autoFocus:!a&&l}]}])}if(e.isDim&&null!=i&&i.select){const e=[];n[ED.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),a()},icon:aD,enabled:!0}]}]),n[ED.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:SD,enabled:!0,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectAll())},icon:uD,enabled:s.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectPossible())},icon:bD,enabled:s.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectAlternative())},icon:pD,enabled:s.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectExcluded())},icon:hD,enabled:s.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.clear())},icon:QA,enabled:s.canClearSelections}]}]]}]}]),e.length>0&&d.push(...e)}return n[ED.ADJUST_HEADER_SIZE]&&d.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),null==c||c(u)},icon:eD,enabled:!0}]}]),d},wD=({open:e,setOpen:t,anchorRef:n,headerData:r,translator:o,interactions:i,handleHeadCellMenuKeyDown:a,menuAvailabilityFlags:l,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p})=>{var f;const m=iM({translator:o}),{headTextAlign:h,qLibraryId:g,fieldId:v}=r,{fieldInstance:b,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:x,updateSelectionActionsEnabledStatus:S}=(({headerData:e,app:t})=>{const[n,r]=ao.useState(null),[o,i]=ao.useState(WA);return ao.useEffect((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(r).catch(console.error)}),[t,e]),{fieldInstance:n,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:ao.useCallback((()=>i(WA)),[]),updateSelectionActionsEnabledStatus:ao.useCallback((t=>{const n=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));n&&i({canSelectAll:GA(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:GA(["qSelected"],n.qStateCounts),canSelectPossible:GA(["qOption"],n.qStateCounts),canSelectAlternative:GA(["qAlternative"],n.qStateCounts),canSelectExcluded:GA(["qAlternative","qExcluded"],n.qStateCounts)})}),[e.label,i])}})({headerData:r,app:null==d?void 0:d.app}),E=ao.useCallback((()=>{const e=g?{qLibraryId:g,type:"dimension"}:v;if(null!=c&&c.embed&&c.listboxRef){const{embed:t,listboxRef:n}=c;t.__DO_NOT_USE__.popover(n.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},sortCriteria:c.sortCriteria})}}),[c,v,g]);ao.useEffect((()=>{e||(x(),null!=d&&d.model&&d.model.getLayout().then((e=>{S(e)})).catch((e=>console.error(e))))}),[e,x,S,null==d?void 0:d.model]);const C=ao.useCallback((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?lo.createElement(LA,{rightAligned:"right"===h,shouldShowMenuIcon:s,className:"nebula-table-utils-head-menu-wrapper"},s&&lo.createElement(kA,{height:Xe,className:Qe,"data-testid":Qe,isInteractionsActive:null!==(f=i.active)&&void 0!==f&&f},lo.createElement(wA,null)),lo.createElement(HA,{open:e,anchorEl:n.current,onClose:C,menuGroups:CD({headerData:r,translator:m,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:E,interactions:i,fieldInstance:b,selectionActionsEnabledStatus:y,anchorRef:n,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster}),handleHeadCellMenuKeyDown:a})):null},RD=e=>e.isDark?{background:e.color,borderColor:zk.DARK_MODE_BORDER,color:zk.DARK_MODE_TEXT,disabledColor:zk.DARK_MODE_DISABLED,iconColor:zk.DARK_MODE_TEXT}:{background:e.color,borderColor:zk.BORDER_MEDIUM,color:zk.TEXT,disabledColor:zk.DISABLED},LD=Od(pR,{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}`}))),kD=Od(Ak,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),ID=Od(CR,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:n})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:n.spacing(1)}))),MD=Od(fw)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),_D=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=ao.useMemo((()=>RD(r.background)),[r]);if(!n.active)return null;const a=o?lo.createElement(LD,{footerStyle:i},e):null;return t?fC.createPortal(e,t):a},PD={},AD=ao.createContext(PD),DD=()=>ao.useContext(AD),TD=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:m,layout:h})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,v=ao.useMemo((()=>RD(p.background)),[p]),b=o?o.getBoundingClientRect().width:m.width,y=iM({translator:d}),x=ao.useMemo((()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:y,theme:p,interactions:f,rect:m,layout:h,footerStyle:v,tabIndex:g,width:b})),[t,n,r,o,i,a,l,s,u,c,y,p,f,m,h,v,g,b]);return lo.createElement(AD.Provider,{value:x},e)};let OD=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),ND=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}({});function qD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const FD=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){qD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),zD=ao.forwardRef(FD);function jD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const $D=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){jD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})),BD=ao.forwardRef($D);function HD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const WD=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){HD(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})),GD=ao.forwardRef(WD),VD={FirstPage:BD,PreviousPage:zD,NextPage:FA,LastPage:GD,FirstPageRTL:GD,PreviousPageRTL:FA,NextPageRTL:zD,LastPageRTL:BD},UD=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=DD(),u=VD[`${n}${"rtl"===r?"RTL":""}`];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${n}`),title:l.passive?a.get(`NebulaTableUtils.Pagination.${n}`):void 0,tabIndex:s,onClick:e?null:()=>i(t)},IconComponent:u}},YD=()=>{const{pageInfo:e,width:t}=DD(),n=0===e.page,{IconComponent:r,styledProps:o}=UD({type:OD.FirstPage,disabledCondition:n,pageNumber:0});return t<=ND.FirstPage?null:lo.createElement(ID,o,lo.createElement(r,{height:Xe}))},KD=(e,t,n=!1)=>{n&&e.key===Ze.TAB&&!e.shiftKey&&(GI(e),((e,t,n)=>{var r,o,i,a;const l=null!==(r=null===(o=e.closest(".qv-object-wrapper"))||void 0===o||null===(o=o.querySelector(".sel-toolbar-confirm"))||void 0===o?void 0:o.parentElement)&&void 0!==r?r:null===(i=document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm"))||void 0===i?void 0:i.parentElement;l?l.focus():null===(a=t.focusSelection)||void 0===a||a.call(t,n)})(e.target,t,!1))},XD=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=DD(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=UD({type:OD.LastPage,disabledCondition:i,pageNumber:n-1}),s=t.enabled?e=>KD(e,t,r):null;return o<=ND.LastPage?null:lo.createElement(ID,RA({},l,{onKeyDown:s}),lo.createElement(a,{height:Xe}))},QD=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=DD(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=UD({type:OD.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>ND.FirstPage&&o>ND.LastPage)&&t.enabled?e=>KD(e,t,r):null;return lo.createElement(ID,RA({},l,{onKeyDown:s}),lo.createElement(a,{height:Xe}))},JD=()=>{const{pageInfo:e}=DD(),t=0===e.page,{IconComponent:n,styledProps:r}=UD({type:OD.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return lo.createElement(ID,r,lo.createElement(n,{height:Xe}))},ZD=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r}=DD(),{page:o,rowsPerPage:i}=n;if(t<=ND.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,r)}`,r.toString()]);return lo.createElement(MD,{variant:"caption"},a)},eT=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=DD(),s=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),c=`${e}-dropdown`,d=`${c}-label-${s}`,p={tabIndex:l,id:`${c}-${s}`,"data-testid":c,"aria-labelledby":d};return lo.createElement(lo.Fragment,null,lo.createElement(MD,{variant:"caption",id:d},u,":"),lo.createElement(kD,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:p},n))},tT=()=>{var e;const{pageInfo:t,isSelectionMode:n,totalColumnCount:r,width:o,handleChangeRowsPerPage:i}=DD();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&o>ND.RowsPerPage&&r<=100)||void 0===t.rowsPerPageOptions)return null;const a=lo.createElement(lo.Fragment,null,t.rowsPerPageOptions.map((e=>lo.createElement("option",{key:e,value:e},e))));return lo.createElement(eT,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},nT=1e3,rT="…",oT=({totalPages:e,page:t})=>{const n=Math.min(e,nT),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-nT):0,a=Array.from(Array(n).keys()).map((e=>{const t=e+i;return lo.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(lo.createElement("option",{key:"startMoreOptions",value:rT,disabled:!0},rT)),o<e-1&&a.push(lo.createElement("option",{key:"endMoreOptions",value:rT,disabled:!0},rT)),lo.createElement(lo.Fragment,null,a)},iT=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r}=DD(),{page:o}=e;if(t<=ND.SelectPage)return null;const i=lo.createElement(oT,{totalPages:n,page:o});return lo.createElement(eT,{name:"SelectPage",value:o,options:i,handleChange:e=>r(+e.target.value)})},aT=e=>lo.createElement(TD,e,lo.createElement(tT,null),lo.createElement(iT,null),lo.createElement(ZD,null),lo.createElement(YD,null),lo.createElement(JD,null),lo.createElement(QD,null),lo.createElement(XD,null));var lT=ao.memo(aT);const sT=e=>lo.createElement(_D,e,lo.createElement(lT,e)),uT={},cT=ao.createContext(uT),dT=()=>ao.useContext(cT),pT=({children:e,model:t,app:n,interactions:r,embed:o,theme:i,keyboard:a,env:l,downloadService:s})=>{const u=ao.useMemo((()=>({model:t,app:n,interactions:r,embed:o,theme:i,keyboard:a,env:l,downloadService:s})),[n,r,t,o,i,a,l,s]);return fc.jsx(cT.Provider,{value:u,children:e})},fT=e=>{const{text:t,fontFamily:n,fontSize:r,justifyContent:o,alignItems:i,height:a}=(({translator:e,layoutService:t})=>{var n;const{theme:r}=dT(),o=null!==(n=r.getStyle("","","fontFamily"))&&void 0!==n?n:Hn;return t.hasData?t.hasLimitedData?{text:e.get("SNPivotTable.LimitedData"),fontSize:"13px",fontFamily:o,alignItems:"center",height:"22px"}:{}:{text:e.get("SNPivotTable.NoData"),fontSize:"16px",fontFamily:o,justifyContent:"center",alignItems:"center",height:"100%"}})(e);return void 0===t?null:fc.jsx("div",{style:{display:"flex",justifyContent:o,alignItems:i,width:"100%",height:a},children:fc.jsx("span",{style:{...Zn,fontFamily:n,fontSize:r,fontStyle:"italic",color:"#7b7a78"},children:t})})},mT={},hT=ao.createContext(mT),gT=()=>ao.useContext(hT),vT=({children:e,styleService:t})=>fc.jsx(hT.Provider,{value:t,children:e}),bT=21,yT=20,xT=yT,ST=16+Un+1,ET=.75,CT=e=>{var t;return-1!==e&&(null==e||null===(t=e.representation)||void 0===t?void 0:t.type)===qe.Image},wT="/qHyperCubeDef",RT=-1,LT="PSEUDO-DIM",kT=e=>void 0===e?Wn:e,IT=(e,t)=>e&&"number"==typeof e&&!Number.isNaN(e)?e:t,MT=e=>IT(e,nt.PixelsDefault),_T=(e,t)=>IT(e,nt.PercentageDefault)*t/100,PT=(e,t,n)=>{switch(null==t?void 0:t.type){case rt.Pixels:return MT(t.pixels);case rt.Percentage:return _T(t.percentage,e);case rt.FitToContent:case rt.Auto:default:return n}},AT=({headers:e,layoutService:t,estimateWidthForDimensionValue:n,shouldConsiderCombinatedLength:r,measureTextForHeader:o,longestMeasureValuePossible:i})=>e.reduce(((e,a,l)=>{const{layout:{qHyperCube:{qNoOfLeftDims:s}},isFullyExpanded:u}=t,{id:c,colIdx:d,qApprMaxGlyphCount:p,isLeftDimension:f}=a;if(!f)return e+0;if(c===LT)return e+0;const m=n(p),h=!u&&f&&d<s-1?bT:0;let g=0;if(r&&o&&i){g=o("-")+i}return Math.max(e,24*l+ST+h+m+g)}),0),DT=(e,t,n)=>e.reduce(((e,r)=>{const o=(n?0:1)*ST;return Math.max(e,o+t(r.qFallbackTitle))}),0),TT=(e,t,n,r)=>{const o=100*e/t,i=r*ET*(o/100),a=n*(o/100);return Math.min(a,i)},OT=(e,t,n,r)=>r*(n/100)*(100*e/t/100),NT=(e,t)=>e.some((e=>e>=t*ET)),qT=({layoutService:e,headersData:t,columnWidths:n,tableWidth:r,widthOverride:o,measureTextForHeader:i,estimateWidthForDimensionValue:a,measureTextWidthForMeasuresCombinedWithDimensions:l,translator:s})=>{let u=[];const c=r*ET,d=t.data[t.data.length-1][0],p=Math.min(c,n.at(-1)),f=Math.min(c,AT({headers:d,layoutService:e,estimateWidthForDimensionValue:a})),m=Math.min(c,DT(e.visibleMeasureInfo,i));let h=0;const g=d.findIndex((e=>e.id===LT)),v=(({layoutService:e,measureTextForHeader:t,translator:n,headersData:r})=>{const{type:o}=e.indentModeColumnWidth;return o===rt.Auto&&r.size.y<=1?t(n.get("SNPivotTable.IndentMode.Rows"))+8+ST+16:24})({layoutService:e,measureTextForHeader:i,translator:s,headersData:t});if(e.hasPseudoDimOnLeft)if(0===g){const e=Math.max(p,f,m);u=[Math.max(v,e-p),p]}else{const t=Math.min(c,DT(e.visibleMeasureInfo,l,!0));h=Math.min(c,AT({headers:d.slice(0,g),layoutService:e,estimateWidthForDimensionValue:a,shouldConsiderCombinatedLength:!0,measureTextForHeader:i,longestMeasureValuePossible:t}));const n=Math.max(p,f,h);u=[Math.max(v,n-p),p]}else u=[Math.max(v,f-p),p];const b=Math.min(c,u.reduce(((e,t)=>e+t),0)),{indentModeColumnWidth:y}=e;o&&o<=c&&(y.type=rt.Pixels,y.pixels=o);return[rt.Pixels,rt.Percentage].includes(y.type)||NT(u,r)?((e,t,n,r)=>{let o=e[0],i=e[1],a=[];const l=e.reduce(((e,t)=>e+t),0),{type:s,pixels:u,percentage:c}=t,d=NT(e,n);s===rt.Auto&&d&&(o>i?o-=i:i-=o),s===rt.Pixels&&u&&(o=TT(e[0],l,u,n),i=TT(e[1],l,u,n)),s===rt.Percentage&&c&&(o=OT(e[0],l,c,n),i=OT(e[1],l,c,n));let p=0;i<=r&&(p=o-5,p>0&&(o-=p,i+=p)),p=i-r,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}})(u,y,r,p):{leftGridWidth:b,leftGridColumnWidths:u,leftGridFullWidth:b}};function FT({layoutService:e,tableWidth:t,headersData:n,translator:r}){const o=t*ET,i=gT(),{measureText:a}=eM(i.header),{estimateWidth:l,measureText:s}=eM({...i.dimensionValues,fontWeight:kT(i.dimensionValues.fontWeight)}),{measureText:u}=eM({...i.dimensionValues,...i.measureLabels}),c=ao.useCallback(((i,c)=>{const{layout:{qHyperCube:{qNoOfLeftDims:d,topHeadersColumnWidth:p}},visibleMeasureInfo:f,isFullyExpanded:m,isIndentModeEnabled:h,hasPseudoDimOnLeft:g}=e,v=(e=0)=>f.reduce(((n,{qFallbackTitle:r,columnWidth:o})=>{const i=u(r)+ST,a=Math.max(i,e);return Math.max(n,h?a:PT(t,o,a))}),0),b=e=>n.data.reduce(((t,n)=>{const r=n[e];if(!r)return t;if(r.id===LT)return t;const o=(e=>{const{label:t,isLocked:n}=e,r=n?xT:0;return ST+a(t)+yT+r})(r);return Math.max(o,t)}),0);let y=0,x=n.data.at(-1);h&&n.size.x>1&&x&&x[0]&&(x=x[0]);const S=x.map(((r,a)=>{let s=ST;if((!h||h&&1===n.size.x)&&i&&void 0!==c&&c===r.colIdx)s=h?Math.min(o,i):i;else{let o;r.columnWidthLocation===Ve.Pivot?o=h?void 0:p:r.columnWidthLocation===Ve.Dimension&&({columnWidth:o}=r);let i=0;if(r.isLeftDimension)if(r.id===LT)i=v();else{const t=b(a),o=((t,n)=>{const{qApprMaxGlyphCount:r,isLeftDimension:o,dimensionInfoIndex:i}=t,a=e.getDimensionInfo(i);if(CT(a))return nt.PixelsDefault;const s=!m&&o&&n<d-1?bT:0;return ST+l(r)+s})(r,a);i=Math.max(t,o),h&&!g&&a+1===d&&r.columnWidthLocation===Ve.Dimension&&n.size.x>1&&(i=t)}else r.isLeftDimension||(i=b(a),r.columnWidthLocation===Ve.Measures&&(i=v(i)));h&&1===n.size.x&&(o=e.indentModeColumnWidth),s=h&&!g&&n.size.x>1?i:PT(t,o,i)}return y+=s,s}));return h&&n.size.x>1?qT({layoutService:e,headersData:n,columnWidths:S,tableWidth:t,widthOverride:i,measureTextForHeader:a,estimateWidthForDimensionValue:l,measureTextWidthForMeasuresCombinedWithDimensions:s,translator:r}):{leftGridWidth:Math.min(o,y),leftGridColumnWidths:S,leftGridFullWidth:y}}),[t,n,e,o,a,u,l,s,r]),[d,p]=ao.useState(c);rM((()=>{p(c())}),[c]);const f=ao.useCallback(((e,t)=>{p(c(e,t))}),[c]);return{...d,overrideLeftGridWidth:f}}function zT({layoutService:e,tableWidth:t,visibleTopDimensionInfo:n,verticalScrollbarWidth:r,leftGridWidth:o}){const{layout:{qHyperCube:{qNoOfLeftDims:i,qEffectiveInterColumnSortOrder:a}},size:l,visibleMeasureInfo:s}=e,u=gT(),{estimateWidth:c,measureText:d}=eM(u.measureValues),{estimateWidth:p}=eM({...u.dimensionValues,fontWeight:kT(u.dimensionValues.fontWeight)}),f=t-o-Un,m=n.at(-1),h=m===RT,g=a.length-i>n.length?bT:0,v=ao.useMemo((()=>{const e=h?s:[m],t=l.x/e.length,n=[],r=[];let o=f;const i=(e,r)=>{n[e]=Math.min(nt.PixelsMax,Math.max(nt.PixelsMin,r)),o-=n[e]*t};if(e.forEach(((e,t)=>{if(null!=e&&e.columnWidth){const{columnWidth:{type:n,pixels:o,percentage:a},qApprMaxGlyphCount:l,qFallbackTitle:u}=e;switch(n){case rt.Pixels:i(t,MT(o));break;case rt.Percentage:i(t,_T(a,f));break;case rt.FitToContent:i(t,((e,t,n)=>n?nt.PixelsDefault:ST+(h?Math.max(c(e),d(t)):Math.max(Math.max(...s.map((e=>c(e.qApprMaxGlyphCount)))),p(e)+g)))(l,u,CT(e)));break;case rt.Auto:default:r.push(t)}}else r.push(t)})),r.length){const e=r.length*t,i=o/e;r.forEach((e=>{n[e]=Math.max(nt.AutoMinPivot,i)}))}return n}),[h,s,m,l.x,f,c,d,p,g]),b=ao.useMemo((()=>{if(h){return s.reduce(((e,t,n)=>e+v[n]),0)/s.length}return v[0]}),[h,v,s]),y=parseFloat((r/e.size.x).toFixed(12)),x=ao.useCallback((t=>h&&void 0!==t?v[e.getMeasureInfoIndexFromCellIndex(t,!0)]-y:b-y),[h,v,e,b,y]),S=l.x*b;return{rightGridFullWidth:S,rightGridWidth:Math.min(S,f),getRightGridColumnWidth:x}}let jT;const $T=new Uint8Array(16);function BT(){if(!jT&&(jT="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!jT))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return jT($T)}const HT=[];for(let e=0;e<256;++e)HT.push((e+256).toString(16).slice(1));var WT={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function GT(e,t,n){if(WT.randomUUID&&!t&&!e)return WT.randomUUID();const r=(e=e||{}).random||(e.rng||BT)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return HT[e[t+0]]+HT[e[t+1]]+HT[e[t+2]]+HT[e[t+3]]+"-"+HT[e[t+4]]+HT[e[t+5]]+"-"+HT[e[t+6]]+HT[e[t+7]]+"-"+HT[e[t+8]]+HT[e[t+9]]+"-"+HT[e[t+10]]+HT[e[t+11]]+HT[e[t+12]]+HT[e[t+13]]+HT[e[t+14]]+HT[e[t+15]]}(r)}const VT=()=>{var e,t,n;return null!==(e=null===(t=crypto)||void 0===t||null===(n=t.randomUUID)||void 0===n?void 0:n.call(t))&&void 0!==e?e:GT()},UT=e=>e===RT?LT:(({qLibraryId:e,cId:t})=>{var n;return null!==(n=null!=e?e:t)&&void 0!==n?n:VT()})(e),YT=({layoutService:e,visibleLeftDimensionInfos:t,cell:n,colIdx:r})=>{n&&(n.canBeResized=!0,n.colIdx=n.colIdx||r,n.dimensionInfoIndex===RT?n.columnWidthLocation=Ve.Measures:n.isLeftDimension?n.columnWidthLocation=Ve.Dimension:t.at(-1)===RT?n.columnWidthLocation=Ve.Measures:e.hasPseudoDimOnLeft&&(n.columnWidthLocation=Ve.Pivot))},KT=(e,t,n)=>{var r;const o=UT(t),i=e.getDimensionInfoIndex(t),a=e.isLeftDimension(i);return t===RT?{id:o,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isLocked:!1,isDim:!1,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:Ve.Measures,isPivot:!0}:{id:o,colIdx:0,label:t.qFallbackTitle,qReverseSort:t.qReverseSort,sortDirection:t.qSortIndicator&&"N"!==t.qSortIndicator?t.qSortIndicator:"A",qLibraryId:t.qLibraryId,fieldId:t.qGroupFieldDefs[t.qGroupPos],isLocked:null!==(r=t.qLocked)&&void 0!==r&&r,columnWidth:t.columnWidth,qApprMaxGlyphCount:t.qApprMaxGlyphCount,isDim:!0,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:Ve.Dimension,isPivot:!0,isSortedByFirstMeasure:e.isSortedByFirstMeasure}},XT=({layoutService:e,lastRow:t,lastCol:n})=>{let r=n;var o;t.length>0&&(r=(o=n).at(-1)===RT?o.slice(0,-1):o);const i=r.length+(t.length?1:0),a=Math.max(1,t.length),l=((e,t)=>Array(e).fill(null).map((()=>Array.from({length:t},(()=>null)))))(i,a);return t.forEach(((t,n,r)=>{const o=n===r.length-1;l[i-1][n]=KT(e,t,o)})),r.forEach(((t,n,r)=>{const o=n===r.length-1;l[n][a-1]=KT(e,t,o)})),l},QT=(e,t,n)=>{var r,o;const i=((e,t,n)=>{let r;var o;return r=0===t.length||t.includes(RT)?XT({layoutService:e,lastRow:n,lastCol:t}):(e=>e[0].map(((t,n)=>e.map((e=>e[n])))))(XT({layoutService:e,lastRow:t,lastCol:n})),e.isIndentModeEnabled&&r[r.length-1].length>1&&(r[r.length-1]=[r.at(-1),...new Array(r[0]?r[0].length-1:0).fill(null)]),r.length&&(null===(o=r.at(-1))||void 0===o||o.forEach(((t,r)=>{if(Array.isArray(t)){const r=t;for(let t=0;t<r.length;t++)YT({layoutService:e,visibleLeftDimensionInfos:n,cell:r[t],colIdx:t})}else YT({layoutService:e,visibleLeftDimensionInfos:n,cell:t,colIdx:r})}))),r})(e,t,n);return{data:i,size:{x:null!==(r=null===(o=i[0])||void 0===o?void 0:o.length)&&void 0!==r?r:0,y:i.length}}};function JT(e){return JT="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},JT(e)}function ZT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?i:String(i)),r)}var o,i}function tO(e,t,n){return t&&eO(e.prototype,t),n&&eO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function nO(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&&oO(e,t)}function rO(e){return rO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rO(e)}function oO(e,t){return oO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},oO(e,t)}function iO(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)}function aO(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=rO(e);if(t){var o=rO(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return iO(this,n)}}function lO(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return sO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sO(e,t)}(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 sO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var uO={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));var t=[];return e.split("&").forEach((function(e){if(e){var n,r=e.indexOf("="),o="",i=!1;-1===r?n=e:(n=e.slice(0,r),o=e.slice(r+1),i=!0),t.push(function(e,t,n){return{key:cO(e),value:cO(t),useEqualSign:n}}(n,o,i))}})),t}};function cO(e){try{return decodeURIComponent(e)}catch(t){return e}}function dO(e){if(!(this instanceof dO))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:""},n=e.indexOf("#");-1!==n&&(t.hash=e.substr(n),e=e.substr(0,n));n=e.indexOf("?"),-1!==n&&(t.search=e.substr(n),e=e.substr(0,n));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 uO.fromSearchString(t.search)}}})}function pO(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}dO.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},dO.encodeSearchParams=function(e){for(var t,n="",r=0;r<e.length;r++)n+=0===r?"?":"&",n+=pO((t=e[r]).key),t.value?n+="=".concat(pO(t.value)):n+=t.useEqualSign?"=":"";return n};var fO,mO=function(){function e(t){ZT(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}return tO(e,[{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}}]),e}(),hO=function(){function e(){ZT(this,e)}return tO(e,[{key:"decode",value:function(e){for(var t,n="",r=new mO(e);r.hasNext();)n+=null!=(t=this.decodeCharacter(r))?t:r.next();return n}},{key:"decodeCharacter",value:function(e){return e.next()}}]),e}(),gO=function(e){return e>=0&&e<=1114111},vO=function(e){return e.match(/[\s]/)},bO=function(e){nO(n,e);var t=aO(n);function n(){return ZT(this,n),t.apply(this,arguments)}return tO(n,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,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,n=0;n<5&&(null!=(r=e.next())&&!vO(r));n++){if("NaN"===parseInt(r,16)){e.pushback(r);break}t+=r}var a=parseInt(t,16);return gO(a)?String.fromCharCode(a):"�"}}]),n}(hO),yO=function(){function e(t,n){ZT(this,e),this._key=t,this._value=n}return tO(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,n,r=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],n=r.length):(n=arguments[1],t=arguments[2]),t&&r?(r.length>n&&(r=r.substr(0,n)),new e(r,t)):null}}]),e}(),xO=function(){function e(){ZT(this,e)}return tO(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,n,r){var o,i;if(t.length===n)return i=this._value,this.setValue(r),i;var a=t.charAt(n);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,n+1,r)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var n=this.getNextNode(e.charAt(t));return n?n.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return yO.newInstanceIfNeeded(e,this._value);var n=this.getNextNode(e.charAt(t));if(!n)return yO.newInstanceIfNeeded(e,t,this._value);var r=n.getLongestMatch(e,t+1);return r||yO.newInstanceIfNeeded(e,t,this._value)}}]),e}(),SO=function(){function e(){ZT(this,e),this.clear()}return tO(e,[{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 xO);var n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}]),e}(),EO=function(){var e,t,n,r=[],o=[],i=new SO;for(e in r["&quot"]="34",r["&amp"]="38",r["&lt"]="60",r["&gt"]="62",r["&nbsp"]="160",r["&iexcl"]="161",r["&cent"]="162",r["&pound"]="163",r["&curren"]="164",r["&yen"]="165",r["&brvbar"]="166",r["&sect"]="167",r["&uml"]="168",r["&copy"]="169",r["&ordf"]="170",r["&laquo"]="171",r["&not"]="172",r["&shy"]="173",r["&reg"]="174",r["&macr"]="175",r["&deg"]="176",r["&plusmn"]="177",r["&sup2"]="178",r["&sup3"]="179",r["&acute"]="180",r["&micro"]="181",r["&para"]="182",r["&middot"]="183",r["&cedil"]="184",r["&sup1"]="185",r["&ordm"]="186",r["&raquo"]="187",r["&frac14"]="188",r["&frac12"]="189",r["&frac34"]="190",r["&iquest"]="191",r["&Agrave"]="192",r["&Aacute"]="193",r["&Acirc"]="194",r["&Atilde"]="195",r["&Auml"]="196",r["&Aring"]="197",r["&AElig"]="198",r["&Ccedil"]="199",r["&Egrave"]="200",r["&Eacute"]="201",r["&Ecirc"]="202",r["&Euml"]="203",r["&Igrave"]="204",r["&Iacute"]="205",r["&Icirc"]="206",r["&Iuml"]="207",r["&ETH"]="208",r["&Ntilde"]="209",r["&Ograve"]="210",r["&Oacute"]="211",r["&Ocirc"]="212",r["&Otilde"]="213",r["&Ouml"]="214",r["&times"]="215",r["&Oslash"]="216",r["&Ugrave"]="217",r["&Uacute"]="218",r["&Ucirc"]="219",r["&Uuml"]="220",r["&Yacute"]="221",r["&THORN"]="222",r["&szlig"]="223",r["&agrave"]="224",r["&aacute"]="225",r["&acirc"]="226",r["&atilde"]="227",r["&auml"]="228",r["&aring"]="229",r["&aelig"]="230",r["&ccedil"]="231",r["&egrave"]="232",r["&eacute"]="233",r["&ecirc"]="234",r["&euml"]="235",r["&igrave"]="236",r["&iacute"]="237",r["&icirc"]="238",r["&iuml"]="239",r["&eth"]="240",r["&ntilde"]="241",r["&ograve"]="242",r["&oacute"]="243",r["&ocirc"]="244",r["&otilde"]="245",r["&ouml"]="246",r["&divide"]="247",r["&oslash"]="248",r["&ugrave"]="249",r["&uacute"]="250",r["&ucirc"]="251",r["&uuml"]="252",r["&yacute"]="253",r["&thorn"]="254",r["&yuml"]="255",r["&OElig"]="338",r["&oelig"]="339",r["&Scaron"]="352",r["&scaron"]="353",r["&Yuml"]="376",r["&fnof"]="402",r["&circ"]="710",r["&tilde"]="732",r["&Alpha"]="913",r["&Beta"]="914",r["&Gamma"]="915",r["&Delta"]="916",r["&Epsilon"]="917",r["&Zeta"]="918",r["&Eta"]="919",r["&Theta"]="920",r["&Iota"]="921",r["&Kappa"]="922",r["&Lambda"]="923",r["&Mu"]="924",r["&Nu"]="925",r["&Xi"]="926",r["&Omicron"]="927",r["&Pi"]="928",r["&Rho"]="929",r["&Sigma"]="931",r["&Tau"]="932",r["&Upsilon"]="933",r["&Phi"]="934",r["&Chi"]="935",r["&Psi"]="936",r["&Omega"]="937",r["&alpha"]="945",r["&beta"]="946",r["&gamma"]="947",r["&delta"]="948",r["&epsilon"]="949",r["&zeta"]="950",r["&eta"]="951",r["&theta"]="952",r["&iota"]="953",r["&kappa"]="954",r["&lambda"]="955",r["&mu"]="956",r["&nu"]="957",r["&xi"]="958",r["&omicron"]="959",r["&pi"]="960",r["&rho"]="961",r["&sigmaf"]="962",r["&sigma"]="963",r["&tau"]="964",r["&upsilon"]="965",r["&phi"]="966",r["&chi"]="967",r["&psi"]="968",r["&omega"]="969",r["&thetasym"]="977",r["&upsih"]="978",r["&piv"]="982",r["&ensp"]="8194",r["&emsp"]="8195",r["&thinsp"]="8201",r["&zwnj"]="8204",r["&zwj"]="8205",r["&lrm"]="8206",r["&rlm"]="8207",r["&ndash"]="8211",r["&mdash"]="8212",r["&lsquo"]="8216",r["&rsquo"]="8217",r["&sbquo"]="8218",r["&ldquo"]="8220",r["&rdquo"]="8221",r["&bdquo"]="8222",r["&dagger"]="8224",r["&Dagger"]="8225",r["&bull"]="8226",r["&hellip"]="8230",r["&permil"]="8240",r["&prime"]="8242",r["&Prime"]="8243",r["&lsaquo"]="8249",r["&rsaquo"]="8250",r["&oline"]="8254",r["&frasl"]="8260",r["&euro"]="8364",r["&image"]="8365",r["&weierp"]="8472",r["&real"]="8476",r["&trade"]="8482",r["&alefsym"]="8501",r["&larr"]="8592",r["&uarr"]="8593",r["&rarr"]="8594",r["&darr"]="8595",r["&harr"]="8596",r["&crarr"]="8629",r["&lArr"]="8656",r["&uArr"]="8657",r["&rArr"]="8658",r["&dArr"]="8659",r["&hArr"]="8660",r["&forall"]="8704",r["&part"]="8706",r["&exist"]="8707",r["&empty"]="8709",r["&nabla"]="8711",r["&isin"]="8712",r["&notin"]="8713",r["&ni"]="8715",r["&prod"]="8719",r["&sum"]="8721",r["&minus"]="8722",r["&lowast"]="8727",r["&radic"]="8730",r["&prop"]="8733",r["&infin"]="8734",r["&ang"]="8736",r["&and"]="8743",r["&or"]="8744",r["&cap"]="8745",r["&cup"]="8746",r["&int"]="8747",r["&there4"]="8756",r["&sim"]="8764",r["&cong"]="8773",r["&asymp"]="8776",r["&ne"]="8800",r["&equiv"]="8801",r["&le"]="8804",r["&ge"]="8805",r["&sub"]="8834",r["&sup"]="8835",r["&nsub"]="8836",r["&sube"]="8838",r["&supe"]="8839",r["&oplus"]="8853",r["&otimes"]="8855",r["&perp"]="8869",r["&sdot"]="8901",r["&lceil"]="8968",r["&rceil"]="8969",r["&lfloor"]="8970",r["&rfloor"]="8971",r["&lang"]="9001",r["&rang"]="9002",r["&loz"]="9674",r["&spades"]="9824",r["&clubs"]="9827",r["&hearts"]="9829",r["&diams"]="9830",r)"function"!=typeof r[e]&&r.hasOwnProperty(e)&&(o[r[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(n=o[t].toLowerCase().substr(1),i.put(n,String.fromCharCode(t)));return i}(),CO=function(e){nO(n,e);var t=aO(n);function n(){return ZT(this,n),t.apply(this,arguments)}return tO(n,[{key:"decodeCharacter",value:function(e){var t;e.mark();var n=e.next();if(null==n||"&"!==n)return e.reset(),null;var r=e.next();if(null==r)return e.reset(),null;if("#"===r){if(null!=(t=this._getNumericEntity(e)))return t}else if(r.match(/[A-Za-z]/)&&(e.pushback(r),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,n,r,o="";for(t=Math.min(e.remainder().length,EO.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();var i=EO.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,n=0;n<t;n++)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,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,16);return!Number.isNaN(+r)&&gO(r)?String.fromCharCode(r):null}},{key:"_parseNumber",value:function(e){for(var t,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,10);return!Number.isNaN(+r)&&gO(r)?String.fromCharCode(r):null}}]),n}(hO),wO=function(e){nO(n,e);var t=aO(n);function n(){return ZT(this,n),t.apply(this,arguments)}return tO(n,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",n=0;n<2;n++)null!=(r=e.nextHex())&&(t+=r);return 2===t.length&&(o=parseInt(t,16),gO(o))?String.fromCharCode(o):(e.reset(),null)}}]),n}(hO),RO=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(fO=document.createElement("div"));var LO=Array.prototype.indexOf,kO=[",",".","_"," "],IO={default:[",",".","-","_"," "]},MO={width:["%"],height:["%"]},_O={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},PO={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":_O.image,"background-color":_O.color,"border-color":_O.color,"border-image":_O.image,color:_O.color,icon:_O.image,"list-style-image":_O.image,"outline-color":_O.color},AO={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function DO(e,t,n){var r;if(t){if(LO)return LO.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1}function TO(e){if(null==e)return"";var t,n=document.createTextNode(e);return fO.appendChild(n),t=fO.innerHTML,fO.removeChild(n),t}function OO(e,t,n){var r,o,i,a,l,s,u,c,d;if(e=qO(e).toLowerCase(),t=qO(t),DO(e,AO.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<AO.attr_val;i++)if(t.toLowerCase().match(AO.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((r=MO[e])||(r=IO.default),o="",!n){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=l}o+='="'}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&DO(u,r)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return n||(o+='"'),o}function NO(e,t,n){var r,o,i,a,l,s,u,c,d,p;if(e=qO(e).toLowerCase(),t=qO(t),DO(e,AO.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(r=0;r<AO.css_val.length;r++)if(t.toLowerCase().indexOf(AO.css_val[r])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=PO[e])||(o=_O.default),i="",!n){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=l}i+=": "}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&DO(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function qO(e,t){var n,r,o,i,a=!1;if(null===e)return null;n=e,r=e,o=0;for(var l=[new CO,new wO,new bO];!a;){r=n;for(var s=0;s<l.length;s++)(i=l[s].decode(n))!==n&&(o++,n=i);r!==n||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return n}for(var FO=[],zO=0;zO<255;zO++)FO[zO]=zO>=48&&zO<=57||zO>=65&&zO<=90||zO>=97&&zO<=122?null:zO.toString(16);var jO=function(e){return TO(e.unsafe)},$O=function(e){var t,n=[],r=[],o={},i="";for(t in e.map?n=e.map:n[e.name]=e.unsafe,n)"function"!=typeof n[t]&&n.hasOwnProperty(t)&&(r[t]=NO(t,n[t],!0),i+=NO(t,n[t],!0),o[t]=r[t]);return e.map?o:i},BO=function(e){var t=[],n=[],r={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(n[i]=OO(i,t[i],!0),o+=OO(i,t[i],!0),r[i]=n[i]);return e.map?r:o};function HO(e,t){throw new Error(t)}var WO={canonicalize:qO,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===JT(arguments[0])?function(){for(var e,t,n,r=arguments[0]||{},o=1,i=arguments.length;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(r===(n=e[t]))continue;void 0!==n&&(r[t]=n)}}(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?jO(e):"css"===e.context?(null!=e.map&&"object"!==JT(e.map)&&HO(this,"Invalid parameter type"),$O(e)):"attr"===e.context?(null!=e.map&&"object"!==JT(e.map)&&HO(this,"Invalid parameter type"),BO(e)):void HO(this,"Invalid parameter type")},encodeForAttr:OO,encodeForAttr2:function(e){return OO("nonsens",e,!0)},encodeForCSS:NO,encodeForHref:function(e){qO(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new dO(e),n=dO.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),r=t.searchParams,o=(e=n+dO.encodeSearchParams(r)+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 n,r,o,i,a,l;for(t||(t=kO),l="",n=0;n<e.length;n++)o=e.charAt(n),i=e.charCodeAt(n),DO(o,t)>=0||null==FO[i]?l+=o:(r=i.toString(16),i<256?(a="00".substr(r.length),l+="\\x".concat(a).concat(r.toUpperCase())):(a="0000".substr(r.length),l+="\\u".concat(a).concat(r.toUpperCase())));return l},encodeForHTML:TO,encodeForURL:function(e,t){var n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=qO(t).toLowerCase():HO(this,"Illegal Attribute Name Specified"),n+='="'),n+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),n+=t?'"':""},isSafeDataURL:function(e,t){var n=null!=t?t:{},r=n.maxByteSizeSvg,o=void 0===r?5e5:r,i=n.maxByteSizeImage,a=void 0===i?5e6:i,l=function(e){var t,n=lO(null!==(t=RO.exec(e.trim()))&&void 0!==t?t:[],4),r=n[1];return{encoding:n[2],data:n[3],mimeType:null==r?void 0:r.toLocaleLowerCase()}}(e),s=l.mimeType,u=l.encoding,c=l.data;if(!c)return!0;var d=function(e,t,n){var r={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(n)],r).size}catch(e){return new Blob([n],r).size}return"image/svg+xml"===e?new Blob([n],r).size:0}(s,u,c);return"image/svg+xml"===s?d<=o:d<=a}};const GO=(e,t)=>{var n;const r=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps;return null==r||null===(n=r.qValues)||void 0===n?void 0:n[e]},VO=e=>{switch(e){case"topLeft":default:return{horizontal:"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"flex-end",vertical:"center"};case"topRight":return{horizontal:"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"flex-end",vertical:"flex-end"}}},UO=({text:e,url:t,imageSize:n,imagePosition:r})=>r&&t&&!t.toLowerCase().includes("javascript:")&&WO.isSafeDataURL(t)?{type:qe.Image,url:t,text:e,imageSize:n,resolvedImagePosition:VO(r)}:{type:qe.Text,url:void 0,text:e},YO=(e,t,n)=>{var r;const o=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=null==o||null===(r=o.qValues)||void 0===r?void 0:r[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return(null==n?void 0:n.urlPosition)===Fe.Attribute||null==n?void 0:n.urlLabel},KO=({text:e,url:t})=>{try{if(!t)throw Error("Invalid url");return{type:qe.Link,url:WO.encodeForHref(t),text:e}}catch(t){return{type:qe.Text,url:void 0,text:e}}},XO=(e,t,n,r)=>{var o,i;const a=ze(t);return a!==qe.Image||!r.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")||null!==(o=r.anything.sense)&&void 0!==o&&null!==(i=o.isUnsupportedFeature)&&void 0!==i&&i.call(o,"tableImages")?a===qe.Link&&r.flags.isEnabled("CLIENT_IM_5715_LINKS")?((e,t,n)=>{const{urlPosition:r}=null!=t?t:{};if(r===Fe.Attribute){var o;const r=YO(null!==(o=n.url)&&void 0!==o?o:-1,e,t),i=e.qText||r||"";return KO({text:i,url:r})}if(r===Fe.Dimension){var i;const r=YO(null!==(i=n.urlLabel)&&void 0!==i?i:-1,e,t)||e.qText;return KO({text:r,url:e.qText})}return{type:qe.Text,url:void 0,text:e.qText}})(e,t,n):{type:qe.Text,url:void 0,text:e.qText}:((e,t,n)=>{const{imageSize:r,imagePosition:o,imageSetting:i,imageLabel:a}=null!=t?t:{};if("url"===i){var l,s;const t=e.qText,i=null===(l=GO(null!==(s=n.imageUrl)&&void 0!==s?s:-1,e))||void 0===l?void 0:l.qText;return UO({text:t,url:i,imageSize:r,imagePosition:o})}if("label"===i){var u,c,d;const t=e.qText;if(-1===n.imageLabel)return UO({text:a||t||"",url:t,imageSize:r,imagePosition:o});const i=null!==(u=null===(c=GO(null!==(d=n.imageLabel)&&void 0!==d?d:-1,e))||void 0===c?void 0:c.qText)&&void 0!==u?u:e.qText;return UO({text:i,url:t,imageSize:r,imagePosition:o})}return{type:qe.Text,url:void 0,text:e.qText}})(e,t,n)},QO=(e,t)=>{var n,r,o,i;const a=t.qAttrExps,l=null==a||null===(n=a.qValues)||void 0===n||null===(n=n[null!==(r=null==e?void 0:e.cellForegroundColor)&&void 0!==r?r:-1])||void 0===n?void 0:n.qText,s=null==a||null===(o=a.qValues)||void 0===o||null===(o=o[null!==(i=null==e?void 0:e.cellBackgroundColor)&&void 0!==i?i:-1])||void 0===o?void 0:o.qText,u=s?WI(s):null,c=l?WI(l):null,d=((e,t)=>e||!t?null:jI(t)?zk.WHITE:zk.TEXT)(c,u);return{color:null!=d?d:c,background:u}},JO=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:JO(e,t)),e),ZO=(e,t,n,r,o,i)=>{const a=o?i.rowsPerPage-n:Gn-r;let l=e.qUp+e.qDown;if(o&&0===n){const n=(t+e.qUp)%i.rowsPerPage;l=e.qDown+n}return Math.min(a,JO(l,e))},eN=(e,t)=>{if(e!==RT)return t?{type:qe.Text}:e.representation},tN=({node:e,parent:t,root:n,x:r,y:o,pageY:i,layoutService:a,dimensionInfo:l,attrExprInfoIndex:s,isLeftColumn:u=!0,isIndentModeEnabled:c=!1,indentLevel:d,env:p,pageInfo:f})=>{const m=(!c||!u)&&e.qType===st.NX_DIM_CELL_PSEUDO;let h="";if(u&&e.indentLabel){const{label:t,delimeter:n,suffix:r}=e.indentLabel;h=`${t} ${!r||!t&&r?"":n} ${r}`.trim()}else h=e.qText;const g={id:VT(),ref:e,x:r,y:o,pageX:r,pageY:i,mainAxisPageCoord:u?i:r,isLeftColumn:u,parent:t,root:n,children:[],isLeafNode:0===e.qSubNodes.length,leafCount:ZO(e,o,i,r,u,f),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof l||!l.qLocked),isTotal:e.qType===st.NX_DIM_CELL_TOTAL||!(null==t||!t.isTotal),isEmpty:e.qType===st.NX_DIM_CELL_EMPTY||-4===e.qElemNo,isNull:e.qType===st.NX_DIM_CELL_NULL,isPseudoDimension:m,expressionColor:QO(s,e),selectionCellType:u?lt.NX_CELL_LEFT:lt.NX_CELL_TOP,dimensionInfoIndex:a.getDimensionInfoIndex(l),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:m?e.qElemNo:null==t?void 0:t.visibleMeasureInfoIndex,representation:XO({...e,qText:h},eN(l,c),s,p),...void 0!==d&&{indentLevel:d}};return t&&(t.children[g.mainAxisPageCoord-t.mainAxisPageCoord]=g),g},nN=(e,t,n,r,o,i,a,l)=>{const{isIndentModeEnabled:s}=o;if(!t.length)return e;let u=0;return function t(c,d,p,f=0,m=-1){e[f]||(e[f]={}),s&&m++;const h=o.leftDimensionInfoIndexes.indexOf(RT);p.forEach(((p,g)=>{var v;u+=0===g?0:1;const b=n.qTop-r.page*r.rowsPerPage,y=Math.max(0,b+u-p.qUp),x=n.qTop+u-p.qUp;if(s&&o.hasPseudoDimOnLeft&&m<=h){const e={label:p.qText,suffix:"",delimeter:"-"};if(p.qType===st.NX_DIM_CELL_NORMAL||p.qType===st.NX_DIM_CELL_NULL||p.qType===st.NX_DIM_CELL_TOTAL)m<h&&(e.suffix=`${o.visibleMeasureInfo[0].qFallbackTitle}`),p={...p,indentLabel:e};else if(p.qType===st.NX_DIM_CELL_PSEUDO){var S,E,C,w,R;e.label=null!==(S=null===(E=d||c)||void 0===E||null===(E=E.ref)||void 0===E||null===(E=E.indentLabel)||void 0===E?void 0:E.label)&&void 0!==S?S:"",e.suffix=p.qText;const t=p.qSubNodes;p={...null===(C=d||c)||void 0===C?void 0:C.ref,...p.qText?{qText:p.qText}:{},qSubNodes:t,indentLabel:e},m=null!==(w=null===(R=d||c)||void 0===R?void 0:R.indentLevel)&&void 0!==w?w:0}}let L=f;s&&(L=h>=1&&m>=h?m+1:m,0===m&&0===h&&0===p.qSubNodes.length&&(L=0));const k=s&&void 0===(null===(v=e[f][y])||void 0===v?void 0:v.ref.qText)||!e[f][y]?tN({node:p,parent:d,root:c,x:L,y:x,pageY:y,layoutService:o,dimensionInfo:i[L],attrExprInfoIndex:a[L],isLeftColumn:!0,...s&&{isIndentModeEnabled:s,indentLevel:m},env:l,pageInfo:r}):e[f][y];if(e[f][y]=k,p.qSubNodes.length){const e=s?0:f+1;t(c||k,k,p.qSubNodes,e,m)}}))}(null,null,t,0,-1),e},rN=(e,t)=>{e.slice(0,-1).forEach((e=>{Object.values(e).forEach(((e,n,r)=>{const o=r[n+1];e.distanceToNextCell=o?o.mainAxisPageCoord-(e.mainAxisPageCoord+e.leafCount):t-(e.mainAxisPageCoord+e.leafCount)}))}))},oN=(e,t)=>{const n=e[0],r=n?Object.values(n):[],o=null!=t&&t.isIndentModeEnabled&&null!=t&&t.hasPseudoDimOnLeft?t.visibleMeasureInfo.length-1:0,i=null==n?void 0:n[o],a=r.at(-1);return null!=i&&i.isTotal?i.isLeafNode?i.mainAxisPageCoord:i.mainAxisPageCoord+i.leafCount-1:null!=a&&a.isTotal?a.mainAxisPageCoord-1:-1},iN=({prevData:e,nextDataPage:t,pageInfo:n,layoutService:r,visibleLeftDimensionInfo:o,attrExprInfoIndexes:i,env:a})=>{const{qLeft:l,qArea:s}=t;if(!l.length)return e;const u=nN(e.grid,l,s,n,r,o,i,a);rN(u,n.rowsOnCurrentPage);const c=oN(u,r);return{...e,grid:u,columnCount:u.length,totalDividerIndex:c}},aN=({qArea:e,prevData:t,pivotValuePoints:n,pageInfo:r})=>{const o=[...t];return n.forEach(((t,n)=>{t.forEach(((t,i)=>{var a;const l=e.qTop-r.page*r.rowsPerPage+n,s=e.qLeft+i;Array.isArray(o[l])||(o[l]=[]);const u=t.qType===st.NX_DIM_CELL_NULL;o[l][s]=null!==(a=o[l][s])&&void 0!==a?a:{id:VT(),ref:t,isNull:u}}))})),o},lN=({prevData:e,dataPage:t,pageInfo:n})=>{const{qData:r,qArea:o}=t;return r.length?aN({qArea:o,prevData:e,pivotValuePoints:r,pageInfo:n}):e},sN=(e,t,n,r,o,i,a,l,s)=>{if(!t.length)return e;let u=0;!function t(a,c,d,p=0){e[p]||(e[p]={}),d.forEach(((d,f)=>{var m;u+=0===f?0:1;const h=n.qLeft+u-d.qUp,g=null!==(m=e[p][h])&&void 0!==m?m:tN({node:d,parent:c,root:a,x:h,y:p,pageY:p,layoutService:r,dimensionInfo:o[p],attrExprInfoIndex:i[p],isLeftColumn:!1,...r.isIndentModeEnabled&&{isIndentModeEnabled:r.isIndentModeEnabled},env:l,pageInfo:s});e[p][h]=g,d.qSubNodes.length&&t(a||g,g,d.qSubNodes,p+1)}))}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},uN=({prevData:e,nextDataPage:t,layoutService:n,visibleTopDimensionInfo:r,attrExprInfoIndexes:o,headerRows:i,env:a,pageInfo:l})=>{const{qTop:s,qArea:u}=t;if(!s.length)return e;const c=sN(e.grid,s,u,n,r,o,i,a,l);rN(c,n.size.x);const d=oN(c);return{...e,grid:c,rowCount:c.length,totalDividerIndex:d}},cN=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},n)=>(e[t]=n,e)),{}),dN=(e,t,n,r,o)=>{const{env:i}=dT(),[a,l]=ao.useState(null),s=((e,t,n)=>ao.useMemo((()=>({left:e.map(cN),top:t.map(cN),measures:n.map(cN)})),[n,e,t]))(r,o,t.visibleMeasureInfo),u=ao.useMemo((()=>QT(t,o,r)),[t,o,r]),c=ao.useCallback((()=>e.slice(1).reduce(((e,t)=>lN({prevData:e,dataPage:t,pageInfo:n})),((e,t)=>{const{qData:n,qArea:r}=e;return aN({qArea:r,prevData:[],pivotValuePoints:n,pageInfo:t})})(e[0],n))),[e,n]),d=ao.useCallback((()=>e.slice(1).reduce(((e,r)=>uN({prevData:e,nextDataPage:r,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:s.top,headerRows:u.size.y,env:i,pageInfo:n})),((e,t,n,r,o,i,a)=>{const{qArea:l,qTop:s}=e,u=sN([],s,l,t,n,r,o,i,a);rN(u,t.size.x);const c=oN(u);return{grid:u,rowCount:u.length,layoutSize:t.size,totalDividerIndex:c}})(e[0],t,o,s.top,u.size.y,i,n))),[e,t,o,s.top,u.size.y,i,n]),p=ao.useCallback((()=>e.slice(1).reduce(((e,o)=>iN({prevData:e,nextDataPage:o,pageInfo:n,layoutService:t,visibleLeftDimensionInfo:r,attrExprInfoIndexes:s.left,env:i})),((e,t,n,r,o,i)=>{const{qArea:a,qLeft:l}=e,s=nN([],l,a,n,t,r,o,i);rN(s,n.rowsOnCurrentPage);const u=oN(s,t);return{grid:s,columnCount:s.length,layoutSize:t.size,totalDividerIndex:u}})(e[0],t,n,r,s.left,i))),[e,t,n,r,s,i]),[f,m]=ao.useState((()=>c())),[h,g]=ao.useState((()=>d())),[v,b]=ao.useState((()=>p()));rM((()=>{m(c())}),[c]),rM((()=>{g(d())}),[d]),rM((()=>{b(p())}),[p]),rM((()=>{a&&a.forEach((e=>{m((t=>lN({prevData:t,dataPage:e,pageInfo:n}))),g((r=>uN({prevData:r,nextDataPage:e,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:s.top,headerRows:u.size.y,env:i,pageInfo:n}))),b((o=>iN({prevData:o,nextDataPage:e,pageInfo:n,layoutService:t,visibleLeftDimensionInfo:r,attrExprInfoIndexes:s.left,env:i})))}))}),[a]);const y=ao.useCallback((e=>{l(e)}),[]);return{headersData:u,measureData:f,topDimensionData:h,leftDimensionData:v,attrExprInfoIndexes:s,nextPageHandler:y}},pN=Math.sqrt(1e4),fN=e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/nt.PixelsMin)}),mN=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],n=Math.ceil(e.qWidth/pN),r=Math.ceil(e.qHeight/pN);for(let o=0;o<n;o++)for(let n=0;n<r;n++)t.push({qLeft:e.qLeft+o*pN,qTop:e.qTop+n*pN,qWidth:Math.min(pN,e.qWidth-o*pN),qHeight:Math.min(pN,e.qHeight-n*pN)});return t};function hN({model:e,nextPageHandler:t,pageInfo:n,layoutService:r}){const o=(e=>{const t=ao.useRef(e);return t.current=e,t})(n.page),i=e,a=ao.useCallback((async(e,t)=>{var n;await(null==i||null===(n=i.collapseLeft)||void 0===n?void 0:n.call(i,wT,e,t,!1))}),[i]),l=ao.useCallback((async(e,t)=>{await(null==i?void 0:i.collapseTop(wT,e,t,!1))}),[i]),s=ao.useCallback((async(e,t)=>{await(null==i?void 0:i.expandLeft(wT,e,t,!1))}),[i]),u=ao.useCallback((async(e,t)=>{await(null==i?void 0:i.expandTop(wT,e,t,!1))}),[i]),c=ao.useCallback((async e=>{if(null!=i&&i.getHyperCubePivotData&&0!==e.length)try{const r=await i.getHyperCubePivotData(wT,e.reduce(((e,t)=>[...e,...mN(t)]),[]));o.current===n.page&&t(r)}catch(e){console.error(e)}}),[i,t,n,o]),d=ao.useCallback(((t,{dimensionInfoIndex:n,isLeftColumn:o,x:i=0,columnWidthLocation:a})=>{const{qMeasureInfo:l,qDimensionInfo:s,topHeadersColumnWidth:u}=r.layout.qHyperCube;let c=[];switch(a){case Ve.Dimension:c=[{qPath:`${wT}/qDimensions/${n}/qDef/columnWidth`,oldValue:s[n].columnWidth}];break;case Ve.Measures:if(o)c=l.map(((e,t)=>({qPath:`${wT}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=r.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${wT}/qMeasures/${e}/qDef/columnWidth`,oldValue:l[e].columnWidth}]}break;case Ve.Pivot:c=[{qPath:`${wT}/topHeadersColumnWidth`,oldValue:u}]}const d=c.map((e=>{const{qPath:n,oldValue:r}=e;return{qPath:n,qOp:r?"Replace":"Add",qValue:JSON.stringify({...r,...t})}}));null==e||e.applyPatches(d,!0)}),[e,r]),p=ao.useCallback((async e=>{var t;await(null==i?void 0:i.applyPatches([{qPath:`${wT}/indentModeColumnWidth`,qOp:null!==(t=r.layout.qHyperCube)&&void 0!==t&&t.indentModeColumnWidth?"Replace":"Add",qValue:JSON.stringify({...r.indentModeColumnWidth,...e})}],!0))}),[i,r]);return ao.useMemo((()=>({collapseLeft:a,collapseTop:l,expandLeft:s,expandTop:u,applyColumnWidth:d,applyIndentModeColumnWidth:p,fetchPages:c})),[a,l,s,u,d,p,c])}const gN=(e,t)=>e>t?Ke.Forward:e<t?Ke.Backward:Ke.None,vN=(e,t,n)=>(r,o)=>{if(r===st.NX_DIM_CELL_PSEUDO)return RT;const i=t[n+o];return e[i]},bN=e=>{const t=[],n=(e,r=0)=>{e.slice(0,1).forEach((e=>{t[r]=e.qType,e.qSubNodes.length&&n(e.qSubNodes,r+1)}))};return n(e),t},yN=({width:e,height:t,children:n,isLeftGrid:r})=>fc.jsx("div",{"data-testid":"full-size-container",style:{display:"block",width:r?"fit-content":e,height:t+Un},children:n}),xN=e=>`scrollable-container--${e}`,SN=(e,t)=>{const{width:n,height:r,children:o,onScroll:i,style:a,showVerticalScrollbar:l,showHorizontalScrollbar:s,origin:u}=e,{interactions:c}=dT();return fc.jsx("div",{ref:t,"data-key":xN(u),style:{width:n,height:r,overscrollBehaviorX:"contain",overflowX:c.active&&s?"auto":"hidden",overflowY:c.active&&l?"auto":"hidden",...a},onScroll:i,children:o})};var EN=lo.forwardRef(SN);const CN=({width:e,height:t,children:n,style:r,isLeftGrid:o})=>fc.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:0,left:0,width:o?"fit-content":e,height:t,...r},children:n});function wN(){return wN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wN.apply(this,arguments)}function RN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LN(e,t){return LN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},LN(e,t)}function kN(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,LN(e,t)}var IN=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function MN(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||IN(r)&&IN(o)))return!1;var r,o;return!0}function _N(e,t){var n;void 0===t&&(t=MN);var r,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}function PN(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var AN="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function DN(e){cancelAnimationFrame(e.id)}function TN(e,t){var n=AN();var r={id:requestAnimationFrame((function o(){AN()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var ON=-1;function NN(e){if(void 0===e&&(e=!1),-1===ON||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),ON=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return ON}var qN=null;function FN(e){if(void 0===e&&(e=!1),null===qN||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?qN="positive-descending":(t.scrollLeft=1,qN=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),qN}return qN}var zN=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function jN(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,h=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=m(r.props,RN(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:RN(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=_N((function(e,t,n,o,i,a,l,s){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),r._callOnScroll=void 0,r._callOnScroll=_N((function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=r._getItemStyleCache(h&&l,h&&s,h&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var m=n(r.props,t,r._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:m,right:g?m:void 0,top:d(r.props,e,r._instanceProps),height:c(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=_N((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,u=i;if("rtl"===t)switch(FN()){case"negative":u=-i;break;case"positive-descending":u=s-o-i}u=Math.max(0,Math.min(u,s-o));var c=Math.max(0,Math.min(a,l-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&DN(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=TN(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}kN(t,e),t.getDerivedStateFromProps=function(e,t){return $N(e,t),g(e),null};var v=t.prototype;return v.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},v.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,m=this.state,h=m.scrollLeft,g=m.scrollTop,v=NN();void 0!==r&&(r=Math.max(0,Math.min(r,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var b=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?v:0,x=b>d?v:0;this.scrollTo({scrollLeft:void 0!==r?s(this.props,r,n,h,this._instanceProps,x):h,scrollTop:void 0!==o?u(this.props,o,n,g,this._instanceProps,y):g})},v.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},v.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(FN()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},v.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&DN(this._resetIsScrollingTimeoutId)},v.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?zN:p,m=e.outerElementType,h=e.outerTagName,g=e.rowCount,v=e.style,b=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),E=S[0],C=S[1],w=this._getVerticalRangeToRender(),R=w[0],L=w[1],k=[];if(r>0&&g)for(var I=R;I<=L;I++)for(var M=E;M<=C;M++)k.push(ao.createElement(t,{columnIndex:M,data:d,isScrolling:b?x:void 0,key:f({columnIndex:M,data:d,rowIndex:I}),rowIndex:I,style:this._getItemStyle(I,M)}));var _=a(this.props,this._instanceProps),P=l(this.props,this._instanceProps);return ao.createElement(m||h||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:wN({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},ao.createElement(u||c||"div",{children:k,ref:s,style:{height:_,pointerEvents:x?"none":void 0,width:P}}))},v._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],m=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,m)}if("function"==typeof r){var h=this.state,g=h.horizontalScrollDirection,v=h.scrollLeft,b=h.scrollTop,y=h.scrollUpdateWasRequested,x=h.verticalScrollDirection;this._callOnScroll(v,b,g,x,y)}},v._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=n||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),m=o(this.props,f,d,this._instanceProps),h=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-h),Math.max(0,Math.min(t-1,m+g)),f,m]},v._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),m=f(this.props,d,u,this._instanceProps),h=l&&"backward"!==s?1:Math.max(1,c),g=l&&"forward"!==s?1:Math.max(1,c);return[Math.max(0,d-h),Math.max(0,Math.min(i-1,m+g)),d,m]},t}(ao.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var $N=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},BN=function(e,t){var n=e.rowCount,r=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},HN=function(e,t){var n=e.columnCount,r=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},WN=function(e,t,n,r){var o,i,a;if("column"===e?(o=r.columnMetadataMap,i=t.columnWidth,a=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=t.rowHeight,a=r.lastMeasuredRowIndex),n>a){var l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=n;u++){var c=i(u);o[u]={offset:l,size:c},l+=c}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return o[n]},GN=function(e,t,n,r){var o,i;return"column"===e?(o=n.columnMetadataMap,i=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=n.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=r?VN(e,t,n,i,0,r):UN(e,t,n,Math.max(0,i),r)},VN=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),l=WN(e,t,a,n).offset;if(l===i)return a;l<i?o=a+1:l>i&&(r=a-1)}return o>0?o-1:0},UN=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&WN(e,t,r,n).offset<o;)r+=a,a*=2;return VN(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},YN=function(e,t,n,r,o,i,a){var l="column"===e?t.width:t.height,s=WN(e,t,n,i),u="column"===e?HN(t,i):BN(t,i),c=Math.max(0,Math.min(u-l,s.offset)),d=Math.max(0,s.offset-l+a+s.size);switch("smart"===r&&(r=o>=d-l&&o<=c+l?"auto":"center"),r){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}},KN=jN({getColumnOffset:function(e,t,n){return WN("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return GN("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=WN("column",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=WN("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:BN,getEstimatedTotalWidth:HN,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return YN("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return YN("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return WN("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return GN("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=WN("row",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=WN("row",e,u,r).size;return u},initInstanceProps:function(e,t){var n=e,r={columnMetadataMap:{},estimatedColumnWidth:n.estimatedColumnWidth||50,estimatedRowHeight:n.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:n})},t.resetAfterRowIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:n})},t.resetAfterIndices=function(e){var n=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof n&&(r.lastMeasuredColumnIndex=Math.min(r.lastMeasuredColumnIndex,n-1)),"number"==typeof o&&(r.lastMeasuredRowIndex=Math.min(r.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),XN=function(e,t){return e};function QN(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=s(r.props,RN(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:RN(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=_N((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=_N((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,l=i.itemSize,s=i.layout,c=r._getItemStyleCache(u&&l,u&&s,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===s,m="rtl"===a,h=f?d:0;c[e]=t={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=_N((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(FN()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&DN(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=TN(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}kN(t,e),t.getDerivedStateFromProps=function(e,t){return JN(e,t),c(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?NN():0:s.scrollHeight>s.clientHeight?NN():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(FN()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&DN(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?XN:d,f=e.layout,m=e.outerElementType,h=e.outerTagName,g=e.style,v=e.useIsScrolling,b=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),C=E[0],w=E[1],R=[];if(u>0)for(var L=C;L<=w;L++)R.push(ao.createElement(t,{data:c,key:p(L,c),index:L,isScrolling:v?y:void 0,style:this._getItemStyle(L)}));var k=r(this.props,this._instanceProps);return ao.createElement(m||h||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:wN({position:"relative",height:i,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},ao.createElement(l||s||"div",{children:R,ref:a,style:{height:x?"100%":k,pointerEvents:y?"none":void 0,width:x?k:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,s=r.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,s,this._instanceProps),c=l(this.props,u,s,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(ao.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var JN=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},ZN=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var l=o[i];a=l.offset+l.size}for(var s=i+1;s<=t;s++){var u=r(s);o[s]={offset:a,size:u},a+=u}n.lastMeasuredIndex=t}return o[t]},eq=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=ZN(e,i,t).offset;if(a===o)return i;a<o?r=i+1:a>o&&(n=i-1)}return r>0?r-1:0},tq=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&ZN(e,n,t).offset<r;)n+=i,i*=2;return eq(e,t,Math.min(n,o-1),Math.floor(n/2),r)},nq=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},rq=QN({getItemOffset:function(e,t,n){return ZN(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:nq,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,c="horizontal"===a||"horizontal"===s?u:l,d=ZN(e,t,o),p=nq(e,o),f=Math.max(0,Math.min(p-c,d.offset)),m=Math.max(0,d.offset-c+d.size+i);switch("smart"===n&&(n=r>=m-c&&r<=f+c?"auto":"center"),n){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return r>=m&&r<=f?r:r<m?m:f}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?eq(e,t,o,0,n):tq(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var o=e.direction,i=e.height,a=e.itemCount,l=e.layout,s=e.width,u="horizontal"===o||"horizontal"===l?s:i,c=ZN(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=ZN(e,f,r).size;return f},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function oq(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}var iq=["style"],aq=["style"];function lq(e,t){var n=e.style,r=PN(e,iq),o=t.style,i=PN(t,aq);return!oq(n,o)&&!oq(r,i)}const sq=(e,t,n=!1)=>void 0!==e&&(e.isLeafNode||n&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),uq=10,cq=(e,t)=>e.current===Ke.Backward?t:0,dq=(e,t,n,r)=>{for(let o=n;o<n+r;o++){const n=e[o];if(void 0===n||void 0===n[t])return!0}return!1},pq=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,fq=({pageInfo:e,measureData:t,pageTop:n,qHeight:r,startLeft:o,endLeft:i})=>{const a=[],l=e.page*e.rowsPerPage;for(let e=o;e<i;e++)if(dq(t,e,n,r)){const t=a[a.length-1],o={qLeft:e,qTop:n+l,qWidth:1,qHeight:r};void 0!==t&&pq(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},mq=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:l,gridHeight:s}=r,u=n.current===Ke.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return fq({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:l,qHeight:s})},hq=({pageInfo:e,measureData:t,scrollDirection:n,layoutService:r,viewService:o})=>{const{startLeft:i,endLeft:a,pageTop:l,qHeight:s}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=e.size.x,s=cq(n,uq),u=Math.max(r-s,0);return{startLeft:u,endLeft:u+Math.min(i+uq,l-u),pageTop:o,qHeight:a}})(r,o,n),u=fq({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:l,qHeight:s});return u.length>0?[...u,...mq({pageInfo:e,measureData:t,scrollDirection:n,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:r.size.x})]:u},gq=(e,t,n,r)=>{const o=e[n];if(void 0===o)return!0;for(let e=t;e<t+r;e++){if(void 0===o[e])return!0}return!1},vq=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,bq=({startTop:e,endTop:t,qLeft:n,qWidth:r,measureData:o,pageInfo:i})=>{const a=[],l=i.page*i.rowsPerPage;for(let i=e;i<t;i++)if(gq(o,n,i,r)){const e=a.at(-1),t={qLeft:n,qTop:i+l,qWidth:r,qHeight:1};void 0!==e&&vq(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},yq=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r})=>{const{startTop:o,endTop:i,qLeft:a,qWidth:l}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=cq(n,uq),s=Math.max(o-l,0);return{startTop:s,endTop:s+Math.min(a+uq,e.rowsOnCurrentPage-s),qLeft:r,qWidth:i}})(e,r,n),s=bq({startTop:o,endTop:i,qLeft:a,qWidth:l,measureData:t,pageInfo:e});if(s.length>0){const r=n.current===Ke.Backward?Math.max(0,o-25):i,u=Math.min(r+25,e.rowsOnCurrentPage),c=bq({startTop:r,endTop:u,qLeft:a,qWidth:l,measureData:t,pageInfo:e});return[...s,...c]}return s},xq=async(e,t,n,r,o,i,a,l)=>{const{gridColumnStartIndex:s,gridRowStartIndex:u,gridWidth:c,gridHeight:d}=o;let p=[],f=[];i.current!==Ke.None&&(p=yq({pageInfo:r,measureData:n,scrollDirection:i,viewService:o})),a.current!==Ke.None&&(f=hq({pageInfo:r,measureData:n,scrollDirection:a,layoutService:t,viewService:o})),i.current===Ke.None&&a.current===Ke.None&&(p=bq({measureData:n,pageInfo:r,qLeft:s,qWidth:c,startTop:u,endTop:u+d}));const m=e.fetchPages([...p,...f]);l.isDownloadedAsPDForImage&&l.waitForPromise(m)},Sq=function(e){var t,n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,i=0;return function(){t=this;for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];n=l;var u=Date.now()-i,c=function(){i=Date.now(),r=0,e.apply(t,n)};r||(u>=o?c():r=setTimeout(c,o-u))}}(xq,100),Eq=xe(xq,75),Cq=({style:e,index:t,isLastRow:n,isLastColumn:r,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{grid:{border:l,divider:s}}=gT();return fc.jsx("div",{style:{...e,...Jn,...nr(n,r,l,o),...or({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:s})},"data-testid":"empty-cell","data-index":t})},wq=({children:e,verticalAlign:t,width:n,right:r})=>fc.jsx("div",{"data-key":"sticky-cell-container",style:{display:"flex",overflow:"hidden",flexDirection:"row",alignItems:t,width:n,maxWidth:"100%",maxHeight:"100%",position:"sticky",left:4,top:0,bottom:0,right:r,alignSelf:t},children:e}),Rq=e=>{const{type:t,imageSize:n}=e;return t!==qe.Image||"fill"!==n&&"fitWidth"!==n?"fit-content":"100%"},Lq=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function kq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Iq=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){kq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("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"})),Mq=ao.forwardRef(Iq);function _q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Pq=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){_q(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("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"})),Aq=ao.forwardRef(Pq),Dq=e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(et)};function Tq(e,t){const n=e.isActive(),[r,o]=ao.useState(new Map),[i,a]=ao.useState(null);ao.useEffect((()=>{const n=()=>{a(null),o(new Map)},r=()=>{n(),t({page:0})};return e.on("deactivated",n),e.on("canceled",n),e.on("confirmed",r),e.on("cleared",n),()=>{e.removeListener("deactivated",n),e.removeListener("canceled",n),e.removeListener("confirmed",r),e.removeListener("cleared",n)}}),[e,t]);const l=ao.useCallback((e=>0!==r.size&&null!==i&&(e.selectionCellType!==i.selectionCellType||(e.selectionCellType===lt.NX_CELL_LEFT?i.coord!==e.x:i.coord!==e.y))),[r,i]),s=ao.useCallback((t=>async n=>{if(Dq(n))return;if(e.isActive()||await e.begin([wT]),l(t))return;const{nextSelectedPivotCells:s,nextSelectedField:u}=((e,t,n)=>{const r=new Map(t);return r.has(e.ref.qElemNo)?(r.delete(e.ref.qElemNo),{nextSelectedPivotCells:r,nextSelectedField:0===r.size?null:n}):(r.set(e.ref.qElemNo,e),{nextSelectedPivotCells:r,nextSelectedField:{selectionCellType:e.selectionCellType,coord:e.selectionCellType===lt.NX_CELL_LEFT?e.x:e.y}})})(t,r,i);try{await e.select({method:"selectPivotCells",params:[wT,Array.from(s,(([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x})))]}),o(s),a(u)}catch(e){console.error(e)}}),[e,l,r,i]),u=ao.useCallback((e=>n&&!l(e)&&r.has(e.ref.qElemNo)),[r,l,n]);return ao.useMemo((()=>({select:s,isSelected:u,isActive:n,isLocked:l})),[s,u,n,l])}const Oq={select:()=>()=>Promise.resolve(),isSelected:()=>!1,isActive:!1,isLocked:()=>!1},Nq=ao.createContext(Oq),qq=()=>ao.useContext(Nq),Fq=({children:e,selections:t,updatePageInfo:n})=>{const r=Tq(t,n);return fc.jsx(Nq.Provider,{value:r,children:e})};var zq;!function(e){e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration"}(zq||(zq={}));const jq={brighter:.5,darker:.3,opacity:.03},$q=(e,{cell:t,styleService:n})=>{if(e===zq.Background||e===zq.Color){const n=t.expressionColor[e];if(n)return n}return t.isNull?n.nullValues[e]:t.isPseudoDimension?n.measureLabels[e]:t.isTotal?n.totalValues[e]:n.dimensionValues[e]},Bq=({styleService:e,isCellSelected:t,cell:n,isCellLocked:r})=>{if(t)return"#0aaf54";const o=$q(zq.Background,{cell:n,styleService:e});return!r||!o||n.isPseudoDimension||n.isEmpty||n.isNull||n.isTotal?$q(zq.Background,{cell:n,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${zI(i=o,jq)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},Hq=({cell:e,styleService:t,isCellSelected:n})=>n?"white":$q(zq.Color,{cell:e,styleService:t}),Wq=({cell:e,styleService:t})=>{const{qCanCollapse:n,qCanExpand:r}=e.ref,o=$q(zq.FontWeight,{cell:e,styleService:t});return void 0===o&&(r||n)?Wn:o},Gq=({cell:e,styleService:t})=>$q(zq.FontStyle,{cell:e,styleService:t}),Vq=({cell:e,styleService:t})=>$q(zq.TextDecoration,{cell:e,styleService:t}),Uq=e=>e?"pointer":"default",Yq=({expandOrCollapse:e,cell:t})=>n=>{null==e||e(t.y,t.x),n.stopPropagation()},Kq=(e,t)=>{if(!e.isLeftColumn||e.representation.type===qe.Image)return{padding:4};return{padding:4,marginTop:t.dimensionValueTextHeight/2-6.5-4}},Xq=({cell:e,dataModel:t,isLeftColumn:n,isCellSelected:r})=>{const o=gT(),{interactions:i}=dT(),{isActive:a}=qq();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!i.active||a||!t,s=Hq({cell:e,styleService:o,isCellSelected:r}),u=a?.4:1,c=e.ref.qCanExpand?Aq:Mq;let d;return d=e.ref.qCanExpand?n?null==t?void 0:t.expandLeft:null==t?void 0:t.expandTop:n?null==t?void 0:t.collapseLeft:null==t?void 0:t.collapseTop,fc.jsx(c,{opacity:u,color:s,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:l?"default":"pointer",...Kq(e,o)},onClick:l?void 0:Yq({cell:e,expandOrCollapse:d})})},Qq=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},Jq=e=>{switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";default:return"100%"}},Zq=({representation:e,styleService:t,canExpandOrCollapse:n,leafCount:r,isLeftColumn:o})=>{const i=`calc(100% - ${n?21:0}px)`,a=o?t.contentCellHeight:t.headerCellHeight,l=o&&void 0!==r?a*Math.max(r,1):a;switch(e.imageSize){case"originalSize":return{maxWidth:i,maxHeight:l};case"fitWidth":return{width:i,maxHeight:l};case"fitHeight":return{height:l,maxWidth:i};case"fill":return{height:l,width:i};default:return{width:i,height:a}}},eF=(e,t)=>{if("alwaysFit"===e)switch(null==t?void 0:t.vertical){case"flex-start":return"center top";case"flex-end":return"center bottom";default:return"center center"}},tF=e=>{if("alwaysFit"===e)return"contain"},nF=({representation:e,styleService:t,textStyle:n,canExpandOrCollapse:r,leafCount:o,isLeftColumn:i})=>{const{imageRef:a,onLoad:l}=(()=>{const{downloadService:e}=dT(),t=ao.useRef(null),{promise:n,resolve:r}=ao.useMemo((()=>Lq()),[]);return ao.useEffect((()=>{var o;return e.isDownloadedAsPDForImage&&(e.waitForPromise(n),null!==(o=t.current)&&void 0!==o&&o.complete&&r()),()=>r()}),[t,e,n,r]),{onLoad:ao.useCallback((()=>{r()}),[r]),imageRef:t}})(),{url:s,text:u,imageSize:c,resolvedImagePosition:d}=e,{overflow:p,...f}=n;return fc.jsx("div",{"data-key":"image-container",style:{display:"flex",flexDirection:"column",justifyContent:null==d?void 0:d.vertical,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",...Zq({representation:e,styleService:t,canExpandOrCollapse:r,leafCount:o,isLeftColumn:i})},children:fc.jsx("img",{src:s,alt:u,style:{width:Jq(c),height:Qq(c),objectFit:tF(c),objectPosition:eF(c,d),...f},onLoad:l,ref:a})})},rF=(e,t,n)=>{if(!n.isEnabled("CLIENT_IM_5863_PVT_TEXT_ALIGN")||null!=e&&e.auto)return t;switch(null==e?void 0:e.align){case"center":return"center";case"left":return"flex-start";case"right":return"flex-end";default:return t}},oF={display:"flex",flexDirection:"row",alignItems:"center"},iF={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},aF=(e,t,n,r)=>t?{...iF,...e.nullValues}:n?{...oF,color:e.totalValues.color,background:null!=r?r:e.totalValues.background}:{...oF,color:e.measureValues.color,background:null!=r?r:e.measureValues.background},lF=(e,t,n,r,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,l={...Zn,...!n&&er(e.grid.lineClamp),...t&&{color:t},fontFamily:i,fontSize:a};if(o){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.nullValues;return{...l,fontWeight:t,fontStyle:n,textDecoration:r}}if(r){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.totalValues;return{...l,fontWeight:t,fontStyle:n,textDecoration:r}}const{fontWeight:s,fontStyle:u,textDecoration:c}=e.measureValues;return{...l,fontWeight:void 0===s?Wn:s,fontStyle:u,textDecoration:c}},sF=(e,t,n,r,o)=>{const{textAlign:i}=t,a=r?"flex-end":"center";var l,s;return e.isNull||n.type!==qe.Image?rF(i,a,o):null!==(l=null===(s=n.resolvedImagePosition)||void 0===s?void 0:s.horizontal)&&void 0!==l?l:"center"},uF=({cell:e,layoutService:t,styleService:n,representation:r,color:o,isNumeric:i,isTotalValueCell:a})=>{const l=e.isNull?t.getNullValueText():r.text,s=lF(n,o,i,a,e.isNull);return r.type!==qe.Image||e.isNull?fc.jsx("span",{style:{padding:4,...s},children:l}):fc.jsx(nF,{representation:r,styleService:n,textStyle:s,isLeftColumn:!0})},cF=(e,t)=>{var n,r;return null!==(n=null==e||null===(r=e[t])||void 0===r?void 0:r.visibleMeasureInfoIndex)&&void 0!==n?n:0},dF="flex-start",pF=(e,t)=>{return e.isNull?dF:t.type===qe.Image&&"fill"!==t.imageSize?null===(n=t.resolvedImagePosition)||void 0===n?void 0:n.vertical:dF;var n},fF=({columnIndex:e,rowIndex:t,style:n,data:r})=>{var o;const i=gT(),{env:a}=dT(),{background:l}=i.measureValues,{grid:s,layoutService:u,showLastBorder:c,shouldShowTotalCellBottomDivider:d,shouldShowTotalCellRightDivider:p,isTotalValue:f,pageInfo:m,lastRow:h,lastColumn:g,attrExprInfoIndexes:v}=r,b=null===(o=s[t])||void 0===o?void 0:o[e],y=t===m.rowsOnCurrentPage-1,x=e===u.size.x-1;if(!b)return fc.jsx(Cq,{style:{...n,background:l},isLastRow:y,isLastColumn:x,showLastBorder:c,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const S=u.hasPseudoDimOnLeft?cF(g,t):cF(h,e),E=u.visibleMeasureInfo[S],C=XO(b.ref,u.isIndentModeEnabled?{type:qe.Text}:E.representation,v[S],a),w=!b.isNull&&f(e,t),R=b.isNull?u.getNullValueText():C.text,L=!b.isNull||!Number.isNaN(+R),k=QO(v[S],b.ref),I={...aF(i,b.isNull,w,k.background),...nr(y,x,i.grid.border,c),...or({bottomDivider:d(t),rightDivider:p(e),borderColor:i.grid.divider}),...Jn,padding:"0px 4px",display:"flex",justifyContent:sF(b,E,C,L,a.flags)};return fc.jsx("div",{className:Je,title:R,style:{...I,...n},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:fc.jsx(wq,{width:Rq(C),verticalAlign:pF(b,C),children:fc.jsx(uF,{cell:b,layoutService:u,styleService:i,representation:C,isNumeric:L,isTotalValueCell:w,color:k.color})})})};var mF=lo.memo(fF,lq);const hF=(e,t)=>{var n,r;return null!==(n=null===(r=t.list[e])||void 0===r?void 0:r.id)&&void 0!==n?n:e.toString()},gF=({columnIndex:e,rowIndex:t,data:n})=>{var r,o;return null!==(r=null===(o=n.grid[t])||void 0===o||null===(o=o[e])||void 0===o?void 0:o.id)&&void 0!==r?r:`${t}-${e}`},vF={...Qn,overflow:"hidden",boxSizing:"content-box",borderWidth:"1px 0px 0px 1px"},bF=({dataModel:e,dataGridRef:t,height:n,rowHightCallback:r,width:o,viewService:i,layoutService:a,measureData:l,leftDimensionData:s,topDimensionData:u,visibleTopDimensionInfo:c,visibleLeftDimensionInfo:d,attrExprInfoIndexes:p,showLastBorder:f,getRightGridColumnWidth:m,pageInfo:h,verticalScrollDirection:g,horizontalScrollDirection:v})=>{const{grid:{divider:b},contentCellHeight:y}=gT(),x={...vF,borderColor:b,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},S=((e,t,n=!1)=>ao.useCallback((r=>{var o;const i=n?0:t-1,a=null===(o=e.grid.at(i))||void 0===o?void 0:o[r];return sq(a,e.totalDividerIndex,n)}),[e,n,t]))(s,d.length,a.isIndentModeEnabled),E=((e,t)=>ao.useCallback((n=>{var r;const o=null===(r=e.grid.at(t-1))||void 0===r?void 0:r[n];return sq(o,e.totalDividerIndex)}),[e,t]))(u,c.length),C=((e,t,n,r,o)=>ao.useCallback(((i,a)=>{var l,s;return!!(null!==(l=t.grid.at(r-1))&&void 0!==l&&null!==(l=l[i])&&void 0!==l&&l.isTotal||null!==(s=e.grid.at(o?0:n-1))&&void 0!==s&&null!==(s=s[a])&&void 0!==s&&s.isTotal)}),[t,e,n,r,o]))(s,u,d.length,c.length,a.isIndentModeEnabled),w=(({viewService:e,dataModel:t,measureData:n,layoutService:r,pageInfo:o,leftColumnCount:i,topRowCount:a,verticalScrollDirection:l,horizontalScrollDirection:s})=>{const{downloadService:u}=dT();return ao.useCallback((async({overscanColumnStartIndex:c,overscanColumnStopIndex:d,overscanRowStartIndex:p,overscanRowStopIndex:f})=>{e.gridColumnStartIndex=c,e.gridRowStartIndex=p,e.gridWidth=d-c+1,e.gridHeight=f-p+1;const m=e.gridWidth+i+(s.current===Ke.None?0:uq),h=e.gridHeight+a+(l.current===Ke.None?0:uq);let g=Sq;h*m>1500&&(g=Eq),g(t,r,n,o,e,l,s,u)}),[e,r,t,n,l,s,o,i,a,u])})({viewService:i,layoutService:a,dataModel:e,measureData:l,pageInfo:h,leftColumnCount:s.columnCount,topRowCount:u.rowCount,verticalScrollDirection:g,horizontalScrollDirection:v});return rM((()=>{t.current&&t.current.resetAfterColumnIndex(0,!1)}),[t,e,l]),ao.useLayoutEffect((()=>{t.current&&t.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[o,n,t,y]),0===a.size.x?null:fc.jsx(KN,{ref:t,style:x,columnCount:a.size.x,columnWidth:m,height:n,rowCount:h.rowsOnCurrentPage,rowHeight:r,width:o,itemData:{layoutService:a,grid:l,dataModel:e,showLastBorder:f,isTotalValue:C,shouldShowTotalCellBottomDivider:S,shouldShowTotalCellRightDivider:E,pageInfo:h,lastRow:u.grid.at(c.length-1),lastColumn:s.grid.at(d.length-1),attrExprInfoIndexes:p},onItemsRendered:w,estimatedRowHeight:r(),estimatedColumnWidth:m(),itemKey:gF,children:mF})};var yF=ao.memo(bF);function xF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const SF=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){xF(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("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"}),lo.createElement("use",{fillRule:"evenodd"})),EF=ao.forwardRef(SF),CF=e=>{const[t,n]=ao.useState(!1);return rM((()=>{n(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:n}},wF=({interactions:e,dataModel:t})=>{const[n,r]=ao.useState(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=CF([t]);return{open:n,setOpen:r,handleOpenMenu:t=>e.active&&!Dq(t)&&!o&&r(!0),setIsAdjustingWidth:i}};function RF(e,t){var n,r,o,i;const a=null!==(n=null===(r=t.expressionColor)||void 0===r?void 0:r.background)&&void 0!==n?n:e.dimensionValues.background,l=t.isLeftColumn?e.header.background:a,s=l===Yn.Transparent?zk.WHITE:l,u=null===(o=oI(e.grid.border))||void 0===o?void 0:o.rgb(),c=null===(i=oI(s))||void 0===i?void 0:i.rgb();if(c&&u&&u.opacity<1){const e=1-u.opacity;return`rgb(${u.opacity*u.r+e*c.r}, ${u.opacity*u.g+e*c.g}, ${u.opacity*u.b+e*c.g})`}return e.grid.border}const LF=({cellInfo:e,columnWidth:t,dataModel:n,isLastColumn:r,overrideLeftGridWidth:o,setIsAdjustingWidth:i,shouldApplyIndentModeColumnWidth:a,tableWidth:l})=>{const{interactions:s}=dT(),{isActive:u}=qq(),c=gT(),[,d]=ao.useState({});if(!(e.canBeResized&&!!s.active&&!u))return null;const p=RF(c,e);return fc.jsx(SA,{isPivot:!0,columnWidth:t,isLastColumn:r,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:p,updateWidthCallback:t=>{d({}),o&&void 0!==e.colIdx&&o(t,e.colIdx)},confirmWidthCallback:t=>{var r;a?null==n||n.applyIndentModeColumnWidth({...t,pixels:Math.min((null!=l?l:0)*ET,null!==(r=t.pixels)&&void 0!==r?r:0)}):null==n||n.applyColumnWidth(t,e)},setIsAdjustingWidth:i,isLeftColumn:e.isLeftColumn})};function kF(e){return N_(e)}const IF=e=>e.scrollTop;function MF(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function _F(e){return Bs("MuiPaper",e)}Hs("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const PF=["className","component","elevation","square","variant"],AF=hA("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return cM({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&cM({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${V_("#fff",bA(t.elevation))}, ${V_("#fff",bA(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var DF=ao.forwardRef((function(e,t){const n=kF({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=dM(n,PF),u=cM({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Fs({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},_F,o)})(u);return fc.jsx(AF,cM({as:o,ownerState:u,className:Ys(c.root,r),ref:t},s))}));var TF=Hs("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const OF=["center","classes","className"];let NF,qF,FF,zF,jF=e=>e;const $F=Al(NF||(NF=jF`
121
121
  0% {
122
122
  transform: scale(0);
123
123
  opacity: 0.1;
@@ -127,7 +127,7 @@ function Nl(e,t){let n;return n=t?_l(e).withConfig({displayName:t.label,shouldFo
127
127
  transform: scale(1);
128
128
  opacity: 0.3;
129
129
  }
130
- `)),jF=Al(OF||(OF=FF`
130
+ `)),BF=Al(qF||(qF=jF`
131
131
  0% {
132
132
  opacity: 1;
133
133
  }
@@ -135,7 +135,7 @@ function Nl(e,t){let n;return n=t?_l(e).withConfig({displayName:t.label,shouldFo
135
135
  100% {
136
136
  opacity: 0;
137
137
  }
138
- `)),$F=Al(NF||(NF=FF`
138
+ `)),HF=Al(FF||(FF=jF`
139
139
  0% {
140
140
  transform: scale(1);
141
141
  }
@@ -147,7 +147,7 @@ function Nl(e,t){let n;return n=t?_l(e).withConfig({displayName:t.label,shouldFo
147
147
  100% {
148
148
  transform: scale(1);
149
149
  }
150
- `)),BF=fA("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),HF=fA((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=ao.useState(!1),p=Ys(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=Ys(n.child,c&&n.childLeaving,r&&n.childPulsate);return l||c||d(!0),ao.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),fc.jsx("span",{className:p,style:f,children:fc.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(qF||(qF=FF`
150
+ `)),WF=hA("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),GF=hA((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=ao.useState(!1),p=Ys(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=Ys(n.child,c&&n.childLeaving,r&&n.childPulsate);return l||c||d(!0),ao.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),fc.jsx("span",{className:p,style:f,children:fc.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(zF||(zF=jF`
151
151
  opacity: 0;
152
152
  position: absolute;
153
153
 
@@ -190,4 +190,4 @@ function Nl(e,t){let n;return n=t?_l(e).withConfig({displayName:t.label,shouldFo
190
190
  animation-iteration-count: infinite;
191
191
  animation-delay: 200ms;
192
192
  }
193
- `),AF.rippleVisible,zF,550,(({theme:e})=>e.transitions.easing.easeInOut),AF.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),AF.child,AF.childLeaving,jF,550,(({theme:e})=>e.transitions.easing.easeInOut),AF.childPulsate,$F,(({theme:e})=>e.transitions.easing.easeInOut)),WF=ao.forwardRef((function(e,t){const n=RF({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=Sr(n,DF),[l,s]=ao.useState([]),u=ao.useRef(0),c=ao.useRef(null);ao.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=ao.useRef(!1),p=Ls(),f=ao.useRef(null),m=ao.useRef(null),h=ao.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,fc.jsx(HF,{classes:{ripple:Ys(o.ripple,AF.ripple),rippleVisible:Ys(o.rippleVisible,AF.rippleVisible),ripplePulsate:Ys(o.ripplePulsate,AF.ripplePulsate),child:Ys(o.child,AF.child),childLeaving:Ys(o.childLeaving,AF.childLeaving),childPulsate:Ys(o.childPulsate,AF.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=ao.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,h,p]),v=ao.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=ao.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{b(e,t)}));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return ao.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),fc.jsx(BF,mr({className:Ys(AF.root,o.root,i),ref:m},a,{children:fc.jsx(MC,{component:null,exit:!0,children:l})}))}));var GF=WF;function VF(e){return Bs("MuiButtonBase",e)}var UF=Hs("MuiButtonBase",["root","disabled","focusVisible"]);const YF=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],KF=fA("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${UF.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),XF=ao.forwardRef((function(e,t){const n=RF({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:C,onTouchEnd:w,onTouchMove:R,onTouchStart:L,tabIndex:k=0,TouchRippleProps:I,touchRippleRef:M,type:_}=n,P=Sr(n,YF),A=ao.useRef(null),D=ao.useRef(null),T=Es(D,M),{isFocusVisibleRef:O,onFocus:N,onBlur:q,ref:F}=Os(),[z,j]=ao.useState(!1);s&&z&&j(!1),ao.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),A.current.focus()}})),[]);const[$,B]=ao.useState(!1);ao.useEffect((()=>{B(!0)}),[]);const H=$&&!u&&!s;function W(e,t,n=c){return Ss((r=>{t&&t(r);return!n&&D.current&&D.current[e](r),!0}))}ao.useEffect((()=>{z&&d&&!u&&$&&D.current.pulsate()}),[u,d,z,$]);const G=W("start",S),V=W("stop",h),U=W("stop",g),Y=W("stop",C),K=W("stop",(e=>{z&&e.preventDefault(),E&&E(e)})),X=W("start",L),Q=W("stop",w),J=W("stop",R),Z=W("stop",(e=>{q(e),!1===O.current&&j(!1),f&&f(e)}),!1),ee=Ss((e=>{A.current||(A.current=e.currentTarget),N(e),!0===O.current&&(j(!0),b&&b(e)),v&&v(e)})),te=()=>{const e=A.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=ao.useRef(!1),re=Ss((e=>{d&&!ne.current&&z&&D.current&&" "===e.key&&(ne.current=!0,D.current.stop(e,(()=>{D.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),oe=Ss((e=>{d&&" "===e.key&&D.current&&z&&!e.defaultPrevented&&(ne.current=!1,D.current.stop(e,(()=>{D.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ie=l;"button"===ie&&(P.href||P.to)&&(ie=p);const ae={};"button"===ie?(ae.type=void 0===_?"button":_,ae.disabled=s):(P.href||P.to||(ae.role="button"),s&&(ae["aria-disabled"]=s));const le=Es(t,F,A),se=mr({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:k,focusVisible:z}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Fs({root:["root",t&&"disabled",n&&"focusVisible"]},VF,o);return n&&r&&(i.root+=` ${r}`),i})(se);return fc.jsxs(KF,mr({as:ie,className:Ys(ue.root,a),ownerState:se,onBlur:Z,onClick:m,onContextMenu:V,onFocus:ee,onKeyDown:re,onKeyUp:oe,onMouseDown:G,onMouseLeave:K,onMouseUp:Y,onDragLeave:U,onTouchEnd:Q,onTouchMove:J,onTouchStart:X,ref:le,tabIndex:s?-1:k,type:_},ae,P,{children:[i,H?fc.jsx(GF,mr({ref:T,center:o},I)):null]}))}));var QF=XF;var JF=ao.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=ao.useState(null),l=Es(ao.isValidElement(n)?n.ref:null,t);if(xs((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),xs((()=>{if(i&&!o)return ys(t,i),()=>{ys(t,null)}}),[t,i,o]),o){if(ao.isValidElement(n)){const e={ref:l};return ao.cloneElement(n,e)}return fc.jsx(ao.Fragment,{children:n})}return fc.jsx(ao.Fragment,{children:i?pC.createPortal(n,i):i})}));const ZF=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],ez={entering:{opacity:1},entered:{opacity:1}},tz=ao.forwardRef((function(e,t){const n=NP(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=r,TransitionComponent:v=CC}=e,b=Sr(e,ZF),y=ao.useRef(null),x=Es(y,a.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},E=S(d),C=S(((e,t)=>{LF(e);const r=kF({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),w=S(c),R=S(m),L=S((e=>{const t=kF({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),k=S(f);return fc.jsx(v,mr({appear:i,in:s,nodeRef:y,onEnter:C,onEntered:w,onEntering:E,onExit:L,onExited:k,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>ao.cloneElement(a,mr({style:mr({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},ez[e],h,a.props.style),ref:x},t))}))}));var nz=tz;function rz(e){return Bs("MuiBackdrop",e)}Hs("MuiBackdrop",["root","invisible"]);const oz=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],iz=fA("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>mr({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),az=ao.forwardRef((function(e,t){var n,r,o;const i=RF({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=nz,transitionDuration:g}=i,v=Sr(i,oz),b=mr({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return Fs({root:["root",n&&"invisible"]},rz,t)})(b),x=null!=(n=f.root)?n:c.root;return fc.jsx(h,mr({in:p,timeout:g},v,{children:fc.jsx(iz,mr({"aria-hidden":!0},x,{as:null!=(r=null!=(o=m.root)?o:u.Root)?r:s,className:Ys(y.root,l,null==x?void 0:x.className),ownerState:mr({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var lz=az;var sz=Hs("MuiBox",["root"]);const uz=TP(),cz=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Nl("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(c_);return ao.forwardRef((function(e,a){const l=v_(n),s=x_(e),{className:u,component:c="div"}=s,d=Sr(s,E_);return fc.jsx(i,mr({as:c,ref:a,className:Ys(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:uM,defaultTheme:uz,defaultClassName:sz.root,generateClassName:js.generate});var dz=cz;function pz(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function fz(e){return parseInt(bs(e).getComputedStyle(e).paddingRight,10)||0}function mz(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&pz(e,o)}))}function hz(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function gz(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=vs(e);return t.body===e?bs(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Ns(vs(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${fz(r)+e}px`;const t=vs(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${fz(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=vs(r).body;else{const t=r.parentElement,n=bs(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const vz=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function bz(e){const t=[],n=[];return Array.from(e.querySelectorAll(vz)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function yz(){return!0}function xz(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=bz,isEnabled:a=yz,open:l}=e,s=ao.useRef(!1),u=ao.useRef(null),c=ao.useRef(null),d=ao.useRef(null),p=ao.useRef(null),f=ao.useRef(!1),m=ao.useRef(null),h=Es(t.ref,m),g=ao.useRef(null);ao.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),ao.useEffect((()=>{if(!l||!m.current)return;const e=vs(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),ao.useEffect((()=>{if(!l||!m.current)return;const e=vs(m.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(m.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return fc.jsxs(ao.Fragment,{children:[fc.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),ao.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),fc.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}const Sz=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&pz(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);mz(t,e.mount,e.modalRef,r,!0);const o=hz(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=hz(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=gz(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=hz(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&pz(e.modalRef,t),mz(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&pz(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Ez(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=Sz,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=ao.useRef({}),f=ao.useRef(null),m=ao.useRef(null),h=Es(m,d),[g,v]=ao.useState(!c),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},E=Ss((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||vs(f.current).body;o.add(x(),e),m.current&&S()})),C=ao.useCallback((()=>o.isTopModal(x())),[o]),w=Ss((e=>{f.current=e,e&&(c&&C()?S():m.current&&pz(m.current,y))})),R=ao.useCallback((()=>{o.remove(x(),y)}),[y,o]);ao.useEffect((()=>()=>{R()}),[R]),ao.useEffect((()=>{c?E():b&&i||R()}),[c,R,b,i,E]);const L=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},k=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=Ks(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=mr({},n,t);return mr({role:"presentation"},r,{onKeyDown:L(r),ref:h})},getBackdropProps:(e={})=>mr({"aria-hidden":!0},e,{onClick:k(e),open:c}),getTransitionProps:()=>({onEnter:hs((()=>{v(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:hs((()=>{v(!0),l&&l(),i&&R()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:w,isTopModal:C,exited:g,hasTransition:b}}function Cz(e){return Bs("MuiModal",e)}Hs("MuiModal",["root","hidden","backdrop"]);const wz=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Rz=fA("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>mr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Lz=fA(lz,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),kz=ao.forwardRef((function(e,t){var n,r,o,i,a,l;const s=RF({name:"MuiModal",props:e}),{BackdropComponent:u=Lz,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:C=!1,hideBackdrop:w=!1,keepMounted:R=!1,onBackdropClick:L,open:k,slotProps:I,slots:M}=s,_=Sr(s,wz),P=mr({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:E,disableScrollLock:C,hideBackdrop:w,keepMounted:R}),{getRootProps:A,getBackdropProps:D,getTransitionProps:T,portalRef:O,isTopModal:N,exited:q,hasTransition:F}=Ez(mr({},P,{rootRef:t})),z=mr({},P,{exited:q}),j=(e=>{const{open:t,exited:n,classes:r}=e;return Fs({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Cz,r)})(z),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),F){const{onEnter:e,onExited:t}=T();$.onEnter=e,$.onExited=t}const B=null!=(n=null!=(r=null==M?void 0:M.root)?r:g.Root)?n:Rz,H=null!=(o=null!=(i=null==M?void 0:M.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==I?void 0:I.root)?a:v.root,G=null!=(l=null==I?void 0:I.backdrop)?l:v.backdrop,V=Js({elementType:B,externalSlotProps:W,externalForwardedProps:_,getSlotProps:A,additionalProps:{ref:t,as:h},ownerState:z,className:Ys(d,null==W?void 0:W.className,null==j?void 0:j.root,!z.open&&z.exited&&(null==j?void 0:j.hidden))}),U=Js({elementType:H,externalSlotProps:G,additionalProps:c,getSlotProps:e=>D(mr({},e,{onClick:t=>{L&&L(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Ys(null==G?void 0:G.className,null==c?void 0:c.className,null==j?void 0:j.backdrop),ownerState:z});return R||k||F&&!q?fc.jsx(JF,{ref:O,container:m,disablePortal:S,children:fc.jsxs(B,mr({},V,{children:[!w&&u?fc.jsx(H,mr({},U)):null,fc.jsx(xz,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:N,open:k,children:ao.cloneElement(f,$)})]}))}):null}));var Iz=kz;var Mz=Hs("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const _z=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Pz(e){return`scale(${e}, ${e**2})`}const Az={entering:{opacity:1,transform:Pz(1)},entered:{opacity:1,transform:"none"}},Dz="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Tz=ao.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=CC}=e,g=Sr(e,_z),v=Ls(),b=ao.useRef(),y=NP(),x=ao.useRef(null),S=Es(x,o.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=E(u),w=E(((e,t)=>{LF(e);const{duration:n,delay:r,easing:o}=kF({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:Dz?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),R=E(s),L=E(p),k=E((e=>{const{duration:t,delay:n,easing:r}=kF({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:Dz?o:.666*o,delay:Dz?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Pz(.75),c&&c(e)})),I=E(d);return fc.jsx(h,mr({appear:r,in:a,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:k,onExited:I,onExiting:L,addEndListener:e=>{"auto"===m&&v.start(b.current||0,e),n&&n(x.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>ao.cloneElement(o,mr({style:mr({opacity:0,transform:Pz(.75),visibility:"exited"!==e||a?void 0:"hidden"},Az[e],f,o.props.style),ref:S},t))}))}));Tz.muiSupportAuto=!0;var Oz=Tz;var Nz=ao.createContext({});function qz(e){return Bs("MuiList",e)}Hs("MuiList",["root","padding","dense","subheader"]);const Fz=["children","className","component","dense","disablePadding","subheader"],zz=fA("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>mr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var jz=ao.forwardRef((function(e,t){const n=RF({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=Sr(n,Fz),c=ao.useMemo((()=>({dense:a})),[a]),d=mr({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Fs({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},qz,t)})(d);return fc.jsx(Nz.Provider,{value:c,children:fc.jsxs(zz,mr({as:i,className:Ys(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));var $z=Hs("MuiListItemIcon",["root","alignItemsFlexStart"]);var Bz=Hs("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const Hz=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Wz(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Gz(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Vz(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function Uz(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&Vz(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var Yz=ao.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=Sr(e,Hz),p=ao.useRef(null),f=ao.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});xs((()=>{r&&p.current.focus()}),[r]),ao.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${Ns(vs(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=Es(p,t);let h=-1;ao.Children.forEach(i,((e,t)=>{ao.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=ao.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),ao.cloneElement(e,t)}return e}));return fc.jsx(jz,mr({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=vs(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Uz(t,r,s,l,Wz);else if("ArrowUp"===n)e.preventDefault(),Uz(t,r,s,l,Gz);else if("Home"===n)e.preventDefault(),Uz(t,null,s,l,Wz);else if("End"===n)e.preventDefault(),Uz(t,null,s,l,Gz);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&Vz(r,o);o.previousKeyMatched&&(s||Uz(t,r,!1,l,Wz,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function Kz(e){return Bs("MuiPopover",e)}Hs("MuiPopover",["root","paper"]);const Xz=["onEntering"],Qz=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Jz=["slotProps"];function Zz(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function ej(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function tj(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function nj(e){return"function"==typeof e?e():e}const rj=fA(Iz,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),oj=fA(PF,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0});var ij=ao.forwardRef((function(e,t){var n,r,o;const i=RF({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:v={},slots:b,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=Oz,transitionDuration:E="auto",TransitionProps:{onEntering:C}={},disableScrollLock:w=!1}=i,R=Sr(i.TransitionProps,Xz),L=Sr(i,Qz),k=null!=(n=null==y?void 0:y.paper)?n:v,I=ao.useRef(),M=Es(I,k.ref),_=mr({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:k,transformOrigin:x,TransitionComponent:S,transitionDuration:E,TransitionProps:R}),P=(e=>{const{classes:t}=e;return Fs({root:["root"],paper:["paper"]},Kz,t)})(_),A=ao.useCallback((()=>{if("anchorPosition"===c)return u;const e=nj(l),t=(e&&1===e.nodeType?e:vs(I.current).body).getBoundingClientRect();return{top:t.top+Zz(t,s.vertical),left:t.left+ej(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),D=ao.useCallback((e=>({vertical:Zz(e,x.vertical),horizontal:ej(e,x.horizontal)})),[x.horizontal,x.vertical]),T=ao.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if("none"===c)return{top:null,left:null,transformOrigin:tj(n)};const r=A();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=bs(nj(l)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,n.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:tj(n)}}),[l,c,A,D,h]),[O,N]=ao.useState(g),q=ao.useCallback((()=>{const e=I.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[T]);ao.useEffect((()=>(w&&window.addEventListener("scroll",q),()=>window.removeEventListener("scroll",q))),[l,w,q]);ao.useEffect((()=>{g&&q()})),ao.useImperativeHandle(a,(()=>g?{updatePosition:()=>{q()}}:null),[g,q]),ao.useEffect((()=>{if(!g)return;const e=gs((()=>{q()})),t=bs(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,q]);let F=E;"auto"!==E||S.muiSupportAuto||(F=void 0);const z=f||(l?vs(nj(l)).body:void 0),j=null!=(r=null==b?void 0:b.root)?r:rj,$=null!=(o=null==b?void 0:b.paper)?o:oj,B=Js({elementType:$,externalSlotProps:mr({},k,{style:O?k.style:mr({},k.style,{opacity:0})}),additionalProps:{elevation:m,ref:M},ownerState:_,className:Ys(P.paper,null==k?void 0:k.className)}),H=Js({elementType:j,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:L,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:_,className:Ys(P.root,p)}),{slotProps:W}=H,G=Sr(H,Jz);return fc.jsx(j,mr({},G,!Vs(j)&&{slotProps:W,disableScrollLock:w},{children:fc.jsx(S,mr({appear:!0,in:g,onEntering:(e,t)=>{C&&C(e,t),q()},onExited:()=>{N(!1)},timeout:F},R,{children:fc.jsx($,mr({},B,{children:d}))}))}))}));function aj(e){return Bs("MuiMenu",e)}Hs("MuiMenu",["root","paper","list"]);const lj=["onEntering"],sj=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],uj={vertical:"top",horizontal:"right"},cj={vertical:"top",horizontal:"left"},dj=fA(ij,{shouldForwardProp:e=>pA(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),pj=fA(oj,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),fj=fA(Yz,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var mj=ao.forwardRef((function(e,t){var n,r;const o=RF({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:v={},slotProps:b={}}=o,y=Sr(o.TransitionProps,lj),x=Sr(o,sj),S=(()=>{const e=ao.useContext(__);return null!=e&&e})(),E=mr({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:y,variant:g}),C=(e=>{const{classes:t}=e;return Fs({root:["root"],paper:["paper"],list:["list"]},aj,t)})(E),w=i&&!s&&d,R=ao.useRef(null);let L=-1;ao.Children.map(a,((e,t)=>{ao.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===L)&&(L=t))}));const k=null!=(n=v.paper)?n:pj,I=null!=(r=b.paper)?r:p,M=Js({elementType:v.root,externalSlotProps:b.root,ownerState:E,className:[C.root,l]}),_=Js({elementType:k,externalSlotProps:I,ownerState:E,className:C.paper});return fc.jsx(dj,mr({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?uj:cj,slots:{paper:k,root:v.root},slotProps:{root:M,paper:_},open:d,ref:t,transitionDuration:m,TransitionProps:mr({onEntering:(e,t)=>{R.current&&R.current.adjustStyleForScrollbar(e,{direction:S?"rtl":"ltr"}),h&&h(e,t)}},y),ownerState:E},x,{classes:f,children:fc.jsx(fj,mr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:R,autoFocus:i&&(-1===L||s),autoFocusItem:w,variant:g},u,{className:Ys(C.list,u.className),children:a}))}))}));function hj(e){return Bs("MuiMenuItem",e)}var gj=Hs("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const vj=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],bj=fA(QF,{shouldForwardProp:e=>pA(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>mr({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${gj.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:W_(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${gj.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:W_(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${gj.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:W_(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:W_(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${gj.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${gj.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Mz.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Mz.inset}`]:{marginLeft:52},[`& .${Bz.root}`]:{marginTop:0,marginBottom:0},[`& .${Bz.inset}`]:{paddingLeft:36},[`& .${$z.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&mr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${$z.root} svg`]:{fontSize:"1.25rem"}}))));var yj=ao.forwardRef((function(e,t){const n=RF({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=Sr(n,vj),f=ao.useContext(Nz),m=ao.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=ao.useRef(null);xs((()=>{r&&h.current&&h.current.focus()}),[r]);const g=mr({},n,{dense:m.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return mr({},a,Fs({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},hj,a))})(n),b=Es(h,t);let y;return n.disabled||(y=void 0!==c?c:-1),fc.jsx(Nz.Provider,{value:m,children:fc.jsx(bj,mr({ref:b,role:u,tabIndex:y,component:o,focusVisibleClassName:Ys(v.focusVisible,s),className:Ys(v.root,d)},p,{ownerState:g,classes:v}))})}));const xj=fA(dz,{shouldForwardProp:e=>!["interactions","hoverBackground","background","shouldShowMenuIcon","isDimension"].includes(e)})((({interactions:e,background:t,hoverBackground:n,shouldShowMenuIcon:r,isDimension:o})=>({pointerEvents:o?"all":"none",position:"relative",display:"grid",gridTemplateColumns:r?"1fr 12px":"1fr",gap:8,alignItems:"center",cursor:e.active?"pointer":"default",background:t,"&&:hover":{background:e.active&&o?n:t}}))),Sj=fA("div")({position:"absolute",left:0,bottom:0}),Ej=fA("div",{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({...Xn,justifyContent:null!=e?e:Xn.justifyContent,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}))),Cj=fA("div")((()=>({...Xn}))),wj=fA("div",{shouldForwardProp:e=>!["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","justifyContent"].includes(e)})((({fontSize:e,fontFamily:t,fontWeight:n,fontStyle:r,textDecoration:o,justifyContent:i})=>({display:"flex",justifyContent:i,alignSelf:"center",flexGrow:1,maxWidth:"100%",fontWeight:n,fontSize:e,fontFamily:t,fontStyle:r,textDecoration:o}))),Rj=fA(mj)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),Lj=fA(yj,{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}}}))),kj=fA("span")({textOverflow:"ellipsis",overflow:"hidden"}),Ij=fA("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:vT,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"}))),Mj={[xD.SORTING]:!0,[xD.SELECTIONS]:!0,[xD.SEARCHING]:!0},_j=({dataModel:e,cell:t,style:n,isFirstColumn:r,isLastColumn:o,isLastRow:i,translator:a,changeSortOrder:l,iconsVisibilityStatus:s,columnWidth:u,overrideLeftGridWidth:c,layoutService:d,shouldApplyIndentModeColumnWidth:p,tableWidth:f})=>{var m;const h=ao.useRef(null),g=mT(),{app:v,model:b,interactions:y,embed:x,env:{flags:S}}=uT(),{fontSize:E,fontFamily:C,fontStyle:w,fontWeight:R,textDecoration:L,color:k,background:I,hoverBackground:M,activeBackground:_}=g.header,P=ao.useRef(null),{shouldShowLockIcon:A,shouldShowMenuIcon:D}=s,{open:T,setOpen:O,handleOpenMenu:N,setIsAdjustingWidth:q}=EF({interactions:y,dataModel:e}),F={sortFromMenu:async(e,n)=>{e.stopPropagation(),await l(t,n)}},z={embed:x,listboxRef:h,sortCriteria:d.searchSortFromDimension&&t.isDim?d.getSortCriteriaForDimension(t.dimensionInfoIndex):void 0},j={model:b,app:v},{labelTextAlign:$}=null!==(m=d.getDimensionInfo(t.dimensionInfoIndex))&&void 0!==m?m:{},B=tF($,"flex-start",S);return fc.jsxs(xj,{className:Je,title:t.label,interactions:y,background:T?_:I,hoverBackground:M,shouldShowMenuIcon:D,isDimension:t.isDim,style:{...n,...Jn,...rr(t,i,r,o,g.grid.border),color:k},"data-testid":"title-cell",onClick:N,children:[fc.jsxs(Ej,{children:[A&&fc.jsx(Cj,{children:fc.jsx(xF,{height:12})}),fc.jsx(wj,{fontFamily:C,fontSize:E,fontStyle:w,fontWeight:R,textDecoration:L,justifyContent:B,children:fc.jsx("span",{style:Zn,children:t.label})})]}),t.isDim&&fc.jsxs(fc.Fragment,{children:[fc.jsx(ED,{headerData:t,translator:a,anchorRef:P,open:T,setOpen:O,interactions:y,menuAvailabilityFlags:Mj,sortRelatedArgs:F,searchRelatedArgs:z,selectionRelatedArgs:j,shouldShowMenuIcon:D}),fc.jsx(Sj,{ref:h}),fc.jsx(Sj,{ref:P})]}),fc.jsx(wF,{cellInfo:{...t,isLeftColumn:!0},columnWidth:u,dataModel:e,isLastColumn:o,overrideLeftGridWidth:c,setIsAdjustingWidth:q,shouldApplyIndentModeColumnWidth:p,tableWidth:f})]})},Pj=({rowSpan:e,columnSpan:t})=>{const n=mT();return e>0&&t>0?fc.jsx("div",{style:{...Qn,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"0px 1px 0px 0px",borderColor:n.grid.border,background:n.grid.background},"data-testid":"empty-header-cell"}):null};function Aj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Dj=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Aj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})),Tj=ao.forwardRef(Dj);function Oj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Nj=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Oj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),lo.createElement("use",{fillRule:"evenodd"})),qj=ao.forwardRef(Nj),Fj=({dataModel:e,tableWidth:t,leftGridWidth:n,overrideLeftGridWidth:r})=>{const o=mT(),{interactions:i}=uT(),{isActive:a}=Oq(),{setIsAdjustingWidth:l}=SF([e]);if(!(!!i.active&&!a))return null;const s=CF(o,{isLeftColumn:!0});return fc.jsx(yA,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:s,columnWidth:n,updateWidthCallback:e=>{r(Math.min(e,t*xT))},confirmWidthCallback:o=>{var i;if(o.type===rt.FitToContent)return void e.applyIndentModeColumnWidth({type:rt.Auto});const a=Math.min(null!==(i=o.pixels)&&void 0!==i?i:n,t*xT);r(a),e.applyIndentModeColumnWidth({type:rt.Pixels,pixels:a})},setIsAdjustingWidth:l})};function zj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const jj=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){zj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("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"})),$j=ao.forwardRef(jj),Bj=({cell:e,translator:t,dataModel:n,changeSortOrder:r})=>{const o=ao.useRef(null),i=ao.useRef(null),{app:a,model:l,interactions:s,embed:u}=uT(),{open:c,setOpen:d,handleOpenMenu:p}=EF({interactions:s,dataModel:n});return fc.jsxs(Lj,{component:"div",onClick:p,isActive:c,children:[fc.jsx(kj,{children:e.label}),fc.jsxs(Ij,{className:"indent-mode-dropdown-more",visible:c,children:[fc.jsx($j,{}),e.isDim&&fc.jsxs(fc.Fragment,{children:[fc.jsx(ED,{headerData:e,translator:t,anchorRef:o,open:c,setOpen:d,interactions:s,menuAvailabilityFlags:Mj,sortRelatedArgs:{sortFromMenu:async(t,n)=>{t.stopPropagation(),await r(e,n)}},searchRelatedArgs:{embed:u,listboxRef:i},selectionRelatedArgs:{model:l,app:a},shouldShowMenuIcon:!1}),fc.jsx(Sj,{ref:i}),fc.jsx(Sj,{ref:o})]})]})]})},Hj=({idx:e,menu:t,menuItems:n,isOnlyOneRow:r})=>{var o,i;const a=(null===(o=n.at(-1))||void 0===o?void 0:o.id)===wT,l=e+1<n.length&&(null===(i=n[e+1])||void 0===i?void 0:i.id)===wT;return!(r&&a&&l)&&((null==t?void 0:t.id)!==wT&&e<n.length-1)},Wj=({headersData:e,menuItems:t,dataModel:n,translator:r,changeSortOrder:o,overrideLeftGridWidth:i,leftGridWidth:a,tableWidth:l})=>{const s=mT(),{interactions:u}=uT(),[c,d]=ao.useState(!1),p=ao.useRef(null),{headerCellHeight:f}=s,{color:m,background:h,hoverBackground:g,activeBackground:v,fontFamily:b,fontSize:y,fontStyle:x,fontWeight:S,textDecoration:E}=s.header,{isAdjustingWidth:C}=SF([n]),w=e=>e.stopPropagation(),R={height:f,gridColumn:`1 / span ${e.size.x}`,gridRow:e.size.y,zIndex:e.size.x-0};return fc.jsxs(xj,{isDimension:!0,background:c?v:h,interactions:u,hoverBackground:g,style:{...R,...Jn,color:m},onClick:e=>u.active&&!Pq(e)&&!C&&d(!c),"data-testid":"indentModeHeaderCellWrapper",children:[fc.jsxs(Ej,{justifyContent:"flex-start",children:[fc.jsx(wj,{fontFamily:b,fontSize:y,fontStyle:x,fontWeight:S,textDecoration:E,justifyContent:"flex-start",children:fc.jsx("span",{style:Zn,children:r.get("SNPivotTable.IndentMode.Rows")})}),c?fc.jsx(qj,{}):fc.jsx(Tj,{}),fc.jsx(Sj,{ref:p})]}),fc.jsx(Rj,{open:c,anchorEl:p.current,children:t.map(((i,a)=>[i&&(null==i?void 0:i.id)!==wT&&fc.jsx("li",{role:"presentation",onClick:w,onKeyDown:w,children:fc.jsx(Bj,{cell:i,translator:r,dataModel:n,changeSortOrder:o})}),Hj({idx:a,menu:i,menuItems:t,isOnlyOneRow:1===e.size.y})&&fc.jsx(kA,{"data-testid":"group-divider",variant:"middle"},"divider")]))}),fc.jsx(Fj,{dataModel:n,tableWidth:l,leftGridWidth:a,overrideLeftGridWidth:i})]})},Gj={display:"grid",width:"fit-content"},Vj=({dataModel:e,tableWidth:t,leftGridWidth:n,columnWidths:r,rowHight:o,headersData:i,translator:a,changeSortOrder:l,getHeaderCellsIconsVisibilityStatus:s,height:u,overrideLeftGridWidth:c,layoutService:d})=>fc.jsxs("div",{style:{...Gj,gridTemplateColumns:r.map((e=>`${e}px`)).join(" "),gridTemplateRows:i.data.map((()=>`${o}px`)).join(" "),height:u},children:[i.size.y>1&&fc.jsx(Pj,{columnSpan:i.size.x-1,rowSpan:i.size.y-1}),i.data.map(((u,p)=>{let f=[];if(d.isIndentModeEnabled&&i.size.x>1&&p+1===i.size.y){const r=i.data.at(-1);return f.push(fc.jsx(Wj,{headersData:i,menuItems:r[0],dataModel:e,translator:a,changeSortOrder:l,overrideLeftGridWidth:c,leftGridWidth:n,tableWidth:t},r[0][0].id)),f}return f=u.reduce(((n,u,f)=>{if(u){const m=s(f,u.isLocked,u.label),h=d.isIndentModeEnabled&&1===i.size.x;n.push(fc.jsx(_j,{dataModel:e,style:{width:r[f],height:o,gridColumn:d.isIndentModeEnabled&&i.size.x>1?2:f+1,gridRow:p+1,zIndex:i.size.x-f},isLastRow:p===i.size.y-1,isFirstColumn:0===f,isLastColumn:f===i.size.x-1,translator:a,changeSortOrder:l,cell:u,iconsVisibilityStatus:m,columnWidth:r[f],overrideLeftGridWidth:c,layoutService:d,shouldApplyIndentModeColumnWidth:h,tableWidth:t},u.id))}return n}),[]),f}))]});var Uj=ao.memo(Vj);const Yj=(e,t,n,r,o)=>{ao.useLayoutEffect((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!0)))}),[e,t,n,r,o])},Kj=(e,t)=>{rM((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},Xj=(e,t,n,r)=>{var o;const i=n?"flex-start":"center";var a,l;if(e.representation.type===qe.Image)return null!==(a=null===(l=e.representation.resolvedImagePosition)||void 0===l?void 0:l.horizontal)&&void 0!==a?a:i;if(e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex){var s;const{labelTextAlign:n}=null!==(s=t.visibleMeasureInfo[e.visibleMeasureInfoIndex])&&void 0!==s?s:{};return tF(n,i,r)}const{textAlign:u}=null!==(o=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==o?o:{};return tF(u,i,r)},Qj=()=>{},Jj=({children:e,text:t,reactWindowStyle:n,cell:r,data:o,showTotalCellDivider:i,isLastRow:a,isLastColumn:l,isLeftColumn:s,isCellSelected:u,isAdjustingWidth:c})=>{var d;const p=mT(),{interactions:f,env:{flags:m}}=uT(),{select:h,isLocked:g}=Oq(),{layoutService:v,showLastBorder:b}=o,y=g(r)||r.isLockedByDimension,x=!(y||!f.active||!f.select||r.isEmpty||r.isNull||r.isPseudoDimension||r.isTotal||c),S=x?h(r):void 0;return fc.jsx("div",{className:Je,title:f.passive?t:void 0,style:{...n,...nr(a,l,p.grid.border,b),...or({bottomDivider:i&&s,rightDivider:i&&!s,borderColor:p.grid.divider}),...Jn,padding:"0px 4px",cursor:Gq(x),background:jq({styleService:p,isCellSelected:u,cell:r,isCellLocked:y}),zIndex:s?void 0:v.size.x-r.x,justifyContent:Xj(r,v,s,m),display:"flex",...v.isIndentModeEnabled&&s&&{paddingLeft:Math.max(4,24*(null!==(d=r.indentLevel)&&void 0!==d?d:0))}},"aria-hidden":"true",onClick:S,onKeyUp:Qj,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,children:e})},Zj=e=>e.stopPropagation(),e$=({href:e,text:t,interactions:n,color:r})=>lo.createElement(aL,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:Zj,style:{pointerEvents:n.active?"auto":"none",color:null!=r?r:void 0,opacity:n.active&&n.passive||r?void 0:.4}},t),t$=({children:e,textStyle:t})=>fc.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box"},children:e}),n$=({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>{const{isActive:o}=Oq(),{interactions:i}=uT();let a=e.representation.text;if(e.isEmpty)return null;const l=(({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>({...Zn,...er(r?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:$q({cell:e,styleService:t,isCellSelected:n}),fontWeight:Bq({cell:e,styleService:t}),fontStyle:Hq({cell:e,styleService:t}),textDecoration:Wq({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r});return e.representation.type!==qe.Image||e.isTotal?(e.representation.type!==qe.Link||o||e.isTotal||(a=fc.jsx(e$,{text:e.representation.text,href:e.representation.url,interactions:i,color:e.expressionColor.color})),fc.jsx(t$,{textStyle:l,children:a})):fc.jsx(eF,{representation:e.representation,isLeftColumn:r,styleService:t,textStyle:l,leafCount:e.leafCount,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand})},r$=e=>{const t=e.isLeftColumn?"flex-start":"center";var n;return e.representation.type!==qe.Image||(e=>"fill"===e.representation.imageSize)(e)?t:null===(n=e.representation.resolvedImagePosition)||void 0===n?void 0:n.vertical},o$=({index:e,style:t,data:n})=>{const r=mT(),{isSelected:o}=Oq(),{isAdjustingWidth:i,setIsAdjustingWidth:a}=SF([n]),{dataModel:l,isLeftColumn:s=!1,showLastBorder:u,itemCount:c,isLast:d,totalDividerIndex:p,layoutService:f}=n,m=((e,t)=>{const{isLast:n,list:r,listValues:o}=t;return n?r[e]:o[e]})(e,n),h=s?e===c-1:d,g=s?d:e===c-1,v=aq(m,p,f.isIndentModeEnabled);if(void 0===m){const{background:n}=r.dimensionValues;return fc.jsx(Sq,{style:{...t,background:n},index:e,isLastRow:h,isLastColumn:g,showLastBorder:u,isLeftColumn:s,showTotalCellDivider:v})}const b=o(m);return fc.jsxs(Jj,{text:m.representation.text,reactWindowStyle:t,isLeftColumn:s,isLastRow:h,isLastColumn:g,isCellSelected:b,showTotalCellDivider:v,cell:m,data:n,isAdjustingWidth:i,children:[fc.jsxs(Eq,{verticalAlign:r$(m),width:Cq(m.representation),right:m.isLeftColumn?void 0:4,children:[fc.jsx(Yq,{isLeftColumn:s,isCellSelected:b,cell:m,dataModel:l}),fc.jsx(n$,{isLeftColumn:s,isCellSelected:b,cell:m,styleService:r})]}),fc.jsx(wF,{cellInfo:{...m,columnWidthLocation:m.isPseudoDimension?Ve.Measures:Ve.Dimension},columnWidth:t.width,dataModel:l,isLastColumn:g,setIsAdjustingWidth:a})]})};var i$=lo.memo(o$,iq);const a$=({list:e,listValues:t,isLastRow:n,getRightGridColumnWidth:r})=>o=>{var i;const a=n?e[o]:t[o];return 0===o&&(null==a?void 0:a.x)>0?(a.leafCount+a.x+a.distanceToNextCell)*r():n||void 0===a?r(null!==(i=null==a?void 0:a.x)&&void 0!==i?i:o):(a.leafCount+a.distanceToNextCell)*r()},l$=(e,t,n,r)=>{const o=Object.values(e);let i,a=o.length;return r&&(a=n,i=t/a),{itemCount:a,estimatedItemSize:i,listValues:o}},s$=(e,t)=>n=>{e.current&&(e.current[t]=n)},u$={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...Qn},c$={overflow:"hidden",willChange:"auto",flexShrink:0},d$=({dataModel:e,leftGridRef:t,width:n,columnWidths:r,height:o,layoutService:i,leftDimensionData:a,showLastBorder:l,visibleLeftDimensionInfo:s,pageInfo:u})=>{const{qSize:c}=i.layout.qHyperCube,{contentCellHeight:d,grid:{divider:p}}=mT();Kj(t,a),Yj(t,n,o,d,i);const f=u.rowsOnCurrentPage*d;return fc.jsx("div",{style:{...u$,borderColor:p},children:a.grid.map(((n,p)=>{const m=p===a.columnCount-1,h=GT(s[p]),{itemCount:g,estimatedItemSize:v,listValues:b}=l$(n,f,u.rowsOnCurrentPage,m),y=i.isIndentModeEnabled?()=>d:((e,t,n,r,o)=>i=>{const a=r?e[i]:t[i];if(0===i&&(null==a?void 0:a.pageY)>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*n;if((null==a?void 0:a.leafCount)>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*n}return n})(n,b,d,m,c.qcy);return fc.jsx(tq,{ref:s$(t,p),style:{...c$,flexGrow:m?1:0},height:o,width:r[p],itemCount:g,itemSize:y,layout:"vertical",itemData:{layoutService:i,dataModel:e,list:n,isLeftColumn:!0,isLast:m,itemCount:g,showLastBorder:l,listValues:b,totalDividerIndex:a.totalDividerIndex},itemKey:fF,estimatedItemSize:v,children:i$},h)}))})};var p$=ao.memo(d$);const f$={overflow:"hidden",willChange:"auto"},m$={...Qn,borderWidth:"0px 0px 0px 1px"},h$=({dataModel:e,topGridRef:t,rowHightCallback:n,width:r,height:o,layoutService:i,topDimensionData:a,showLastBorder:l,getRightGridColumnWidth:s,headersData:u})=>{const{grid:{divider:c},headerCellHeight:d}=mT(),p={...m$,borderColor:c,height:o};Kj(t,a),Yj(t,r,o,d,i);const f=i.size.x*s();return 0===a.rowCount?fc.jsx("div",{style:{width:r,height:o,...m$}}):fc.jsx("div",{style:p,children:a.grid.map(((o,c)=>{const d=c===a.rowCount-1,{itemCount:p,estimatedItemSize:m,listValues:h}=l$(o,f,i.size.x,d),g=(({layoutService:e,headersData:t,topRowIndex:n})=>{var r;const o=t.data[n],i=t.size.x-1,a=e.isIndentModeEnabled&&t.size.x>1&&n+1===t.size.y?null===(r=o[0][i])||void 0===r?void 0:r.dimensionInfoIndex:null==o?void 0:o[i].dimensionInfoIndex;return void 0!==a?e.getDimensionInfo(a):void 0})({layoutService:i,headersData:u,topRowIndex:c}),v=g?GT(g):`empty ${c}`;return fc.jsx(tq,{ref:s$(t,c),style:f$,height:n(),width:r,itemCount:p,itemSize:a$({list:o,listValues:h,isLastRow:d,getRightGridColumnWidth:s}),layout:"horizontal",itemData:{layoutService:i,dataModel:e,list:o,isLast:d,itemCount:p,showLastBorder:l,listValues:h,totalDividerIndex:a.totalDividerIndex},itemKey:fF,estimatedItemSize:m,children:i$},v)}))})};var g$=ao.memo(h$);const v$=({model:e,rect:t,viewService:n,layoutService:r,qPivotDataPages:o,pageInfo:i,translator:a})=>{const{headerCellHeight:l,contentCellHeight:s}=mT(),u=((e,t,n)=>ao.useMemo((()=>{let{height:r}=e;return t.hasLimitedData&&(r-=22),n&&(r-=41),{...e,height:r}}),[e,t,n]))(t,r,i.shouldShowPagination),{visibleLeftDimensionInfo:c,visibleTopDimensionInfo:d}=((e,t)=>{const{qHyperCube:n}=e.layout,{qNoOfLeftDims:r,qEffectiveInterColumnSortOrder:o,qDimensionInfo:i}=n;return ao.useMemo((()=>{var e,n,a,l;const s=gN(null!==(e=null===(n=t[0])||void 0===n?void 0:n.qLeft)&&void 0!==e?e:[]),u=gN(null!==(a=null===(l=t[0])||void 0===l?void 0:l.qTop)&&void 0!==a?a:[]);return{visibleLeftDimensionInfo:s.map(hN(i,o,0)),visibleTopDimensionInfo:u.map(hN(i,o,r))}}),[i,o,r,t])})(r,o),p=(e=>{const t=ao.useCallback((async(t,n)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:r,dimensionInfoIndex:o,sortDirection:i}=t,a=[];if(n===i)return!1;a.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!r).toString()});try{return await e.applyPatches(a,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}),[e]);return t})(e),{headersData:f,measureData:m,topDimensionData:h,leftDimensionData:g,attrExprInfoIndexes:v,nextPageHandler:b}=uN(o,r,i,c,d),y=fN({model:e,nextPageHandler:b,pageInfo:i,layoutService:r}),{onHorizontalScrollHandler:x,onVerticalScrollHandler:S,verticalScrollableContainerRef:E,leftGridHorizontalScrollableContainerRef:C,dataGridHorizontalScrollableContainerRef:w,dataGridRef:R,leftGridRef:L,topGridRef:k,verticalScrollbarWidth:I,horizontalScrollbarHeight:M,horizontalScrollbarHeightSetter:_,verticalScrollDirection:P,horizontalScrollDirection:A}=(({layoutService:e,viewService:t,pageInfo:n,tableRect:r,mockedRefs:o})=>{var i,a,l,s,u,c;const{theme:d,downloadService:p}=uT(),f=ao.useRef(null!==(i=null==o?void 0:o.verticalScrollableContainerRef)&&void 0!==i?i:null),m=ao.useRef(null!==(a=null==o?void 0:o.leftGridHorizontalScrollableContainerRef)&&void 0!==a?a:null),h=ao.useRef(null!==(l=null==o?void 0:o.dataGridHorizontalScrollableContainerRef)&&void 0!==l?l:null),g=ao.useRef(null!==(s=null==o?void 0:o.topGridRef)&&void 0!==s?s:[]),v=ao.useRef(null!==(u=null==o?void 0:o.leftGridRef)&&void 0!==u?u:[]),b=ao.useRef(null!==(c=null==o?void 0:o.dataGridRef)&&void 0!==c?c:null),y=ao.useRef(0),x=ao.useRef(0),S=ao.useRef(Ke.None),E=ao.useRef(Ke.None),[C,w]=ao.useState(0),[R,L]=ao.useState(0),k=e=>{E.current=mN(e.currentTarget.scrollLeft,y.current),y.current=e.currentTarget.scrollLeft,S.current=mN(e.currentTarget.scrollTop,x.current),x.current=e.currentTarget.scrollTop};ao.useLayoutEffect((()=>{e.triggerdByExpandOrCollapse||(m.current&&(m.current.scrollLeft=0),h.current&&(h.current.scrollLeft=0),f.current&&(f.current.scrollTop=0))}),[e]),ao.useLayoutEffect((()=>{if(e.triggerdByExpandOrCollapse){var t,n,r,o,i,a;const e=null!==(t=null===(n=h.current)||void 0===n?void 0:n.scrollLeft)&&void 0!==t?t:0,l=null!==(r=null===(o=f.current)||void 0===o?void 0:o.scrollTop)&&void 0!==r?r:0;null===(i=v.current)||void 0===i||i.forEach((e=>null==e?void 0:e.scrollTo(l))),null===(a=g.current)||void 0===a||a.forEach((t=>null==t?void 0:t.scrollTo(e)))}}),[e]),ao.useLayoutEffect((()=>{m.current&&(m.current.scrollLeft=0),h.current&&(h.current.scrollLeft=0),f.current&&(f.current.scrollTop=0)}),[n.page]);const I=ao.useCallback((e=>{if(e)return void L(0);let t=0;if(m.current){const e=m.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}if(h.current){const e=h.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}L(t)}),[L]);return ao.useLayoutEffect((()=>{if(f.current){const e=f.current,t=e.offsetWidth-e.clientWidth;w(t)}I()}),[I,e,t,r.width,r.height,d,p]),ao.useLayoutEffect((()=>{(p.isDownloadedAsPDForImage||e.isSnapshot)&&f.current&&h.current&&m.current&&(f.current.scrollTop=t.scrollTop,h.current.scrollLeft=t.scrollLeft,m.current.scrollLeft=t.leftGridScrollLeft)}),[t,f,h,m,p,e]),{onHorizontalScrollHandler:e=>{var n,r;e.target instanceof HTMLDivElement&&(e.target.dataset.key===`scrollable-container--${Ye.LEFT_GRID}`&&(t.leftGridScrollLeft=e.currentTarget.scrollLeft),e.target.dataset.key===`scrollable-container--${Ye.DATA_GRID}`&&(k(e),null===(n=g.current)||void 0===n||n.forEach((t=>null==t?void 0:t.scrollTo(e.currentTarget.scrollLeft))),null===(r=b.current)||void 0===r||r.scrollTo({scrollLeft:e.currentTarget.scrollLeft}),t.scrollLeft=e.currentTarget.scrollLeft))},onVerticalScrollHandler:e=>{var n,r;e.target instanceof HTMLDivElement&&(k(e),null===(n=v.current)||void 0===n||n.filter(Boolean).forEach((t=>t.scrollTo(e.currentTarget.scrollTop))),null===(r=b.current)||void 0===r||r.scrollTo({scrollTop:e.currentTarget.scrollTop}),t.scrollTop=e.currentTarget.scrollTop)},verticalScrollableContainerRef:f,leftGridHorizontalScrollableContainerRef:m,dataGridHorizontalScrollableContainerRef:h,dataGridRef:b,leftGridRef:v,topGridRef:g,verticalScrollbarWidth:C,horizontalScrollbarHeight:R,horizontalScrollbarHeightSetter:I,verticalScrollDirection:S,horizontalScrollDirection:E}})({layoutService:r,viewService:n,pageInfo:i,tableRect:u}),{containerHeight:D,headerGridHeight:T,topGridHeight:O,leftGridHeight:N,dataGridHeight:q,allRowsVisible:F}=function({pageInfo:e,headersData:t,topDimensionData:n,tableRect:r,horizontalScrollbarHeight:o}){const{headerCellHeight:i,contentCellHeight:a}=mT(),l=e.rowsOnCurrentPage*a,s=i*t.size.y,u=l+s,c=i*Math.max(t.size.y,n.rowCount,1);return{containerHeight:u,headerGridHeight:s,topGridHeight:c,leftGridHeight:Math.min(r.height-s-Un,l),dataGridHeight:Math.min(r.height-c-Un,l),allRowsVisible:c+Un+l+o<=r.height}}({pageInfo:i,headersData:f,topDimensionData:h,tableRect:u,horizontalScrollbarHeight:M}),{leftGridWidth:z,leftGridColumnWidths:j,rightGridWidth:$,totalWidth:B,showLastRightBorder:H,getRightGridColumnWidth:W,getHeaderCellsIconsVisibilityStatus:G,overrideLeftGridWidth:V}=function({layoutService:e,tableWidth:t,headersData:n,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,horizontalScrollbarHeightSetter:i,translator:a}){const l=mT(),{measureText:s}=eM(l.header),u=NT({layoutService:e,tableWidth:t,headersData:n,translator:a}),c=qT({layoutService:e,tableWidth:t,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,leftGridWidth:u.leftGridWidth}),d=u.leftGridWidth+c.rightGridFullWidth+Un,p=d<t,f=ao.useCallback(((t,r,o="")=>{let i=t;e.isIndentModeEnabled&&(i=1,1===n.size.x&&(i=0));const a=u.leftGridColumnWidths[i];let l=!1,c=!1,d=s(o)+yT;return r&&d+bT<=a&&(c=!0,d+=bT),d+vT<=a&&(l=!0),{shouldShowMenuIcon:l,shouldShowLockIcon:c}}),[u.leftGridColumnWidths,s,e.isIndentModeEnabled,n.size.x]);return ao.useEffect((()=>{const e=u.leftGridWidth===u.leftGridFullWidth,t=c.rightGridWidth===c.rightGridFullWidth;i(e&&t)}),[i,u.leftGridWidth,u.leftGridFullWidth,c.rightGridWidth,c.rightGridFullWidth]),{...u,...c,totalWidth:d,showLastRightBorder:p,getHeaderCellsIconsVisibilityStatus:f}}({layoutService:r,tableWidth:u.width,headersData:f,visibleTopDimensionInfo:d,verticalScrollbarWidth:I,horizontalScrollbarHeightSetter:_,translator:a}),{rootWrapper:U,leftWrapper:Y,rightWrapper:K}=(({tableRect:e,containerHeight:t,headerGridHeight:n,leftGridHeight:r,topGridHeight:o,dataGridHeight:i,allRowsVisible:a,totalWidth:l,leftGridWidth:s,rightGridWidth:u,verticalScrollbarWidth:c,horizontalScrollbarHeight:d})=>{const p=o+i+Un,f=a?0:Math.max(0,e.height-p),m=c*(a?0:1),h=d*(a?0:1),g=a?p+d:e.height,v=e.height-h,b=l-s-m,y=e.width-s-m;return{rootWrapper:{scrollable:e,fullSize:{width:l-m,height:t+h},sticky:{width:e.width-m,height:e.height}},leftWrapper:{containers:{scrollable:{width:s,height:g},fullSize:{width:s,height:t},sticky:{width:s,height:v}},headerGrid:{width:-1,height:n},leftGrid:{width:s,height:r-h+f}},rightWrapper:{containers:{scrollable:{width:u+Un-m,height:g},fullSize:{width:b,height:t},sticky:{width:b<y?b:y,height:v}},topGrid:{width:u-m,height:o},dataGrid:{width:u-m,height:i-h+f}}}})({tableRect:u,containerHeight:D,headerGridHeight:T,leftGridHeight:N,topGridHeight:O,dataGridHeight:q,allRowsVisible:F,totalWidth:B,leftGridWidth:z,rightGridWidth:$,verticalScrollbarWidth:I,horizontalScrollbarHeight:M}),X=ao.useCallback((()=>l),[l]),Q=ao.useCallback((()=>s),[s]);return(()=>{const{downloadService:e}=uT();ao.useEffect((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))})(),fc.jsx(xN,{ref:E,...U.scrollable,onScroll:S,showVerticalScrollbar:!0,showHorizontalScrollbar:!1,origin:Ye.CONTAINER_GRID,children:fc.jsx(vN,{...U.fullSize,children:fc.jsxs(SN,{...U.sticky,style:{display:"grid",gridTemplateColumns:z?`${Y.containers.scrollable.width}px ${K.containers.scrollable.width}px`:`${K.containers.scrollable.width}px`},children:[Boolean(z)&&fc.jsx(xN,{ref:C,...Y.containers.scrollable,onScroll:x,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Ye.LEFT_GRID,children:fc.jsx(vN,{isLeftGrid:!0,...Y.containers.fullSize,children:fc.jsxs(SN,{isLeftGrid:!0,...Y.containers.sticky,children:[fc.jsx(Uj,{dataModel:y,tableWidth:u.width,leftGridWidth:z,columnWidths:j,getHeaderCellsIconsVisibilityStatus:G,rowHight:l,height:Y.headerGrid.height,headersData:f,translator:a,changeSortOrder:p,overrideLeftGridWidth:V,layoutService:r}),fc.jsx(p$,{dataModel:y,leftGridRef:L,...Y.leftGrid,columnWidths:j,layoutService:r,leftDimensionData:g,showLastBorder:{right:!1,bottom:F},visibleLeftDimensionInfo:c,pageInfo:i})]})})}),fc.jsx(xN,{ref:w,...K.containers.scrollable,onScroll:x,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Ye.DATA_GRID,children:fc.jsx(vN,{...K.containers.fullSize,children:fc.jsxs(SN,{...K.containers.sticky,children:[fc.jsx(g$,{dataModel:y,topGridRef:k,rowHightCallback:X,...K.topGrid,layoutService:r,topDimensionData:h,showLastBorder:{right:H,bottom:!1},getRightGridColumnWidth:W,headersData:f}),fc.jsx(vF,{dataModel:y,dataGridRef:R,rowHightCallback:Q,...K.dataGrid,viewService:n,layoutService:r,measureData:m,leftDimensionData:g,topDimensionData:h,visibleTopDimensionInfo:d,visibleLeftDimensionInfo:c,attrExprInfoIndexes:v.measures,showLastBorder:{right:H,bottom:F},getRightGridColumnWidth:W,pageInfo:i,verticalScrollDirection:P,horizontalScrollDirection:A})]})})})]})})})},b$=e=>{const{layoutService:t,translator:n,pageInfo:r,updatePageInfo:o,rect:i}=e,{keyboard:a,theme:l,interactions:s}=uT(),{layout:u,hasData:c}=t;return fc.jsxs(fc.Fragment,{children:[c&&fc.jsx(v$,{...e}),fc.jsx(dT,{translator:n,layoutService:t}),fc.jsx(aT,{paginationNeeded:r.shouldShowPagination,handleChangePage:e=>o({page:e}),pageInfo:r,totalRowCount:r.totalRowCount,totalColumnCount:0,totalPages:r.totalPages,keyboard:a,translator:n,theme:l,interactions:s,rect:i,layout:u})]})},y$={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",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_25:"rgba(0, 0, 0, 0.25)",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_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",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)"},x$=12,S$=14,E$=16,C$=24,w$=3,R$=300,L$=400,k$=600,I$=700,M$={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};xr(y$.GREYSCALE_0,.05),xr(y$.GREEN_PALE,.5),xr(y$.BLUE_PALE,.5),xr(y$.GREEN_PALE,.5),xr(y$.BLUE_PALE,.5),xr(y$.GREEN_PALE,.5),xr(y$.BLUE_PALE,.5);var _$;function P$(){return P$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},P$.apply(null,arguments)}xr(y$.GREEN_PALE,.5),xr(y$.BLUE_PALE,.5),xr(y$.GREEN_PALE,.5),xr(y$.BLUE_PALE,.5);var A$,D$=function(e){return ao.createElement("svg",P$({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),_$||(_$=ao.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function T$(){return T$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T$.apply(null,arguments)}var O$=function(e){return ao.createElement("svg",T$({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),A$||(A$=ao.createElement("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.345z"})))};function N$({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return lo.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var q$=(e={})=>lo.createElement(N$,{...e},lo.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},lo.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),lo.createElement("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"}))),F$=(e={})=>lo.createElement(N$,{...e},lo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},lo.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},lo.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),lo.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),z$=(e={})=>lo.createElement(N$,{fontSize:"medium",...e},lo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},lo.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},lo.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),j$=(e={})=>lo.createElement(N$,{fontSize:"medium",...e},lo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},lo.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),lo.createElement("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"}))),$$=({className:e})=>lo.createElement(N$,{fontSize:"small",className:e},lo.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},lo.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},lo.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},lo.createElement("g",{transform:"translate(4.324187, 1.300372)"},lo.createElement("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"}),lo.createElement("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"})))))),B$=(e={})=>lo.createElement(N$,{...e},lo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},lo.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},lo.createElement("rect",{stroke:y$.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const H$={MuiAccordion:{styleOverrides:{root:{backgroundColor:y$.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:y$.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:lo.createElement(D$,{"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 ${y$.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:y$.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${y$.MISC_FOCUS_BORDER}`,borderRadius:w$,backgroundColor:y$.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 ${y$.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:y$.WHITE,color:y$.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:w$},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${y$.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:y$.GREYSCALE_0_15,backgroundColor:y$.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:y$.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${y$.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:y$.GREEN_PALE},"&:active":{backgroundColor:y$.GREEN_DARK},"&.Mui-focusVisible":{borderColor:y$.GREEN_PALE,boxShadow:`0 0 0 3px ${w_(y$.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:y$.BLUE_PALE},"&:active":{backgroundColor:y$.BLUE_DARK},"&.Mui-focusVisible":{borderColor:y$.BLUE_PALE,boxShadow:`0 0 0 3px ${w_(y$.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:w$,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:y$.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${y$.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:y$.GREYSCALE_0_15,backgroundColor:y$.GREYSCALE_100_60,"&:active":{backgroundColor:y$.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:y$.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${y$.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:y$.PURPLE,"&.Mui-focusVisible":{borderColor:y$.PURPLE,boxShadow:`0 0 0 3px ${w_(y$.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:y$.GREEN,"&.Mui-focusVisible":{borderColor:y$.GREEN,boxShadow:`0 0 0 3px ${w_(y$.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:y$.BLUE,"&.Mui-focusVisible":{borderColor:y$.BLUE,boxShadow:`0 0 0 3px ${w_(y$.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:y$.ORANGE,"&.Mui-focusVisible":{borderColor:y$.ORANGE,boxShadow:`0 0 0 3px ${w_(y$.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:y$.RED,"&.Mui-focusVisible":{borderColor:y$.RED,boxShadow:`0 0 0 3px ${w_(y$.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:y$.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:y$.PURPLE_PALE},"&:active":{backgroundColor:y$.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:y$.PURPLE_PALE,boxShadow:`0 0 0 3px ${w_(y$.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:y$.GREEN_PALE},"&:active":{backgroundColor:y$.GREEN_DARK},"&.Mui-focusVisible":{borderColor:y$.GREEN_PALE,boxShadow:`0 0 0 3px ${w_(y$.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:y$.BLUE_PALE},"&:active":{backgroundColor:y$.BLUE_DARK},"&.Mui-focusVisible":{borderColor:y$.BLUE_PALE,boxShadow:`0 0 0 3px ${w_(y$.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:y$.ORANGE_PALE},"&:active":{backgroundColor:y$.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:y$.ORANGE_PALE,boxShadow:`0 0 0 3px ${w_(y$.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:y$.RED_PALE},"&:active":{backgroundColor:y$.RED_DARK},"&.Mui-focusVisible":{borderColor:y$.RED_PALE,boxShadow:`0 0 0 3px ${w_(y$.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:y$.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:y$.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:w$,boxShadow:`inset 0 0 0 2px ${y$.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:lo.createElement(O$,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:x$,borderRadius:w$,color:y$.TEXT_PRIMARY,backgroundColor:y$.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:y$.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${y$.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:y$.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:y$.GREYSCALE_0_05,color:y$.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:y$.GREEN,borderColor:y$.GREEN},"&.MuiChip-outlinedInfo":{color:y$.BLUE,borderColor:y$.BLUE},"&.MuiChip-outlinedWarning":{color:y$.ORANGE,borderColor:y$.ORANGE},"&.MuiChip-outlinedError":{color:y$.RED,borderColor:y$.RED}},outlined:{border:`solid 1px ${y$.GREYSCALE_0_15}`,backgroundColor:y$.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:w$,boxShadow:"none",backgroundColor:y$.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:y$.GREEN,borderColor:y$.GREEN},outlinedSecondary:{color:y$.BLUE,borderColor:y$.BLUE},label:{fontFamily:M$.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:lo.createElement(O$,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:lo.createElement(D$,{"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:w$},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:w$,fontSize:S$,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:y$.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${y$.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:y$.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:y$.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:y$.GREYSCALE_0_05}}},popupIndicator:{borderRadius:w$,border:`solid 1px ${y$.GREYSCALE_0_15}`,color:y$.GREYSCALE_0_60,marginRight:0,width:C$,height:C$},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${y$.GREYSCALE_0_15}`},clearIndicator:{borderRadius:w$,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:y$.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:S$}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:x$,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:y$.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:y$.GREYSCALE_25,fontSize:x$,fontFamily:M$.FONT_FAMILY,fontWeight:k$,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:y$.TEXT_PRIMARY},"&.Mui-error":{color:y$.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:y$.TEXT_SECONDARY,content:"'(optional)'",fontWeight:L$,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:y$.TEXT_SECONDARY,content:"'(required)'",fontWeight:L$,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:S$,lineHeight:"16px",backgroundColor:y$.WHITE,borderRadius:w$,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${y$.GREYSCALE_0_05}`,borderColor:y$.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${y$.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${y$.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${y$.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${y$.RED}`,boxShadow:`0px 0px 0px 1px ${y$.RED}, inset 0 2px 0 0 ${y$.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${y$.GREYSCALE_0_10}`,borderColor:y$.GREYSCALE_0_10,backgroundColor:y$.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:y$.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:y$.GREYSCALE_0_15,borderRadius:w$,boxShadow:`inset 0 2px 0 0 ${y$.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>lo.createElement(D$,{...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:y$.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:y$.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:y$.GREYSCALE_0_03},"&:active":{backgroundColor:y$.GREYSCALE_0_10},"&:focus":{backgroundColor:y$.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${y$.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${y$.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:y$.GREYSCALE_0_30,"&:hover":{backgroundColor:y$.GREYSCALE_0_0,borderColor:y$.GREYSCALE_0_15},"& ~svg":{color:y$.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${y$.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:w$}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:y$.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${y$.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:y$.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:S$,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:x$,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:x$,fontWeight:k$,color:y$.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:k$}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${y$.GREYSCALE_0_15}, 0px 0px 0px 1px ${y$.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:lo.createElement(z$,null),checkedIcon:lo.createElement(j$,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:y$.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${y$.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:y$.GREEN_PALE,boxShadow:`0 0 0 3px ${w_(y$.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:y$.BLUE_PALE,boxShadow:`0 0 0 3px ${w_(y$.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:y$.GREYSCALE_0_20}},"&.Mui-disabled":{fill:y$.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:lo.createElement(B$,null),checkedIcon:lo.createElement(q$,null),indeterminateIcon:lo.createElement(F$,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:w$,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:y$.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:y$.GREYSCALE_0_55,color:y$.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:y$.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:y$.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:y$.GREYSCALE_0_55,"&:hover":{color:y$.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:y$.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:y$.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:S$,color:y$.TEXT_PRIMARY,lineHeight:"16px",fontWeight:k$},secondary:{fontSize:x$,color:y$.GREYSCALE_45,fontWeight:L$,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:S$,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:y$.GREYSCALE_0_03},"&:active":{backgroundColor:y$.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:S$,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:y$.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:x$,borderBottom:`solid 1px ${y$.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:S$,color:y$.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:y$.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:y$.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:y$.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:y$.RED}}},"&.Mui-focusVisible":{backgroundColor:y$.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:y$.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:y$.GREEN,height:"24px","&.Mui-disabled":{color:y$.GREYSCALE_0_15}},rail:{backgroundColor:y$.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${y$.GREYSCALE_0_05}`,borderRadius:w$,boxShadow:`inset 0px 0px 0px 1px ${y$.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${y$.GREYSCALE_0_05}`,borderRadius:w$},thumb:{height:"16px",width:"16px",borderRadius:w$,backgroundColor:y$.WHITE,boxShadow:`0px 1px 2px 0px ${y$.GREYSCALE_0_15}, 0px 0px 0px 1px ${y$.GREYSCALE_0_05}`,"&:hover":{borderRadius:w$,boxShadow:`0 2px 4px 0 ${y$.GREYSCALE_0_30}, 0 0 0 1px ${y$.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${y$.GREYSCALE_0_15}, 0 0 0 1px ${y$.GREYSCALE_0_06}, 0 0 0 2px ${y$.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${y$.GREYSCALE_0_15}, 0 0 0 1px ${y$.GREYSCALE_0_06}, 0 0 0 2px ${y$.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:y$.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:y$.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:y$.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:y$.GREYSCALE_0_15},markLabel:{color:y$.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:y$.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:y$.WHITE,color:y$.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:y$.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:y$.GREEN_PALE,boxShadow:`0 0 0 3px ${w_(y$.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:y$.BLUE_PALE,boxShadow:`0 0 0 3px ${w_(y$.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:y$.GREYSCALE_0_15,borderRadius:w$},thumb:{height:"16px",width:"16px",borderRadius:w$,backgroundColor:y$.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:S$,fontWeight:k$,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${y$.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${y$.MISC_FOCUS_BORDER}`,backgroundColor:y$.GREYSCALE_0_03,borderRadius:w$},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:y$.GREYSCALE_25,"&.Mui-selected":{color:y$.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:S$,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:w$,"&:hover":{backgroundColor:`${y$.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 ${y$.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${y$.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:w$,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:y$.GREYSCALE_0_05},"&:hover":{backgroundColor:`${y$.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${y$.GREYSCALE_85}`,borderRight:`1px solid ${y$.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:k$,backgroundColor:y$.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:y$.GREYSCALE_98,borderBottom:`1px solid ${y$.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${y$.GREYSCALE_85}`,borderTop:`1px solid ${y$.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:y$.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:y$.GREYSCALE_0_05,"&:hover":{backgroundColor:y$.GREYSCALE_0_03}},"&&:hover":{backgroundColor:y$.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>lo.createElement($$,{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 ${y$.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:S$,borderRadius:w$,padding:"7px 16px",border:`1px solid ${y$.GREYSCALE_0_15}`,backgroundColor:y$.GREYSCALE_100_60,color:y$.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:y$.GREYSCALE_0_10,border:`1px solid ${y$.GREYSCALE_0_30}`},"&:hover":{backgroundColor:y$.GREYSCALE_0_03,border:`1px solid ${y$.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:y$.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${y$.MISC_FOCUS_BORDER}`,border:`1px solid ${y$.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:y$.GREYSCALE_25,backgroundColor:y$.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:y$.GREYSCALE_0_10,border:`1px solid ${y$.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:x$,height:24,width:24,padding:7},sizeLarge:{fontSize:E$,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:S$,borderRadius:w$}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:y$.GREYSCALE_20},tooltip:{backgroundColor:y$.GREYSCALE_20,fontSize:x$,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var W$=e=>H$;const G$={mode:"light",primary:{ultraLight:y$.GREEN_ULTRA_LIGHT,light:y$.GREEN_PALE,main:y$.GREEN,dark:y$.GREEN_DARK,extraDark:y$.GREEN_EXTRA_DARK,contrastText:y$.WHITE},secondary:{ultraLight:y$.BLUE_ULTRA_LIGHT,light:y$.BLUE_PALE,main:y$.BLUE,dark:y$.BLUE_DARK,extraDark:y$.BLUE_EXTRA_DARK,contrastText:y$.WHITE},error:{ultraLight:y$.RED_ULTRA_LIGHT,light:y$.RED_PALE,main:y$.RED,dark:y$.RED_DARK,extraDark:y$.RED_EXTRA_DARK,contrastText:y$.WHITE},warning:{ultraLight:y$.ORANGE_ULTRA_LIGHT,light:y$.ORANGE_PALE,main:y$.ORANGE,dark:y$.ORANGE_DARK,extraDark:y$.ORANGE_EXTRA_DARK,contrastText:y$.WHITE},success:{ultraLight:y$.GREEN_ULTRA_LIGHT,light:y$.GREEN_PALE,main:y$.GREEN,dark:y$.GREEN_DARK,extraDark:y$.GREEN_EXTRA_DARK,contrastText:y$.WHITE},info:{ultraLight:y$.BLUE_ULTRA_LIGHT,light:y$.BLUE_PALE,main:y$.BLUE,dark:y$.BLUE_DARK,extraDark:y$.BLUE_EXTRA_DARK,contrastText:y$.WHITE},text:{primary:y$.TEXT_PRIMARY,secondary:y$.TEXT_SECONDARY,disabled:y$.GREYSCALE_0_30},action:{hover:y$.GREYSCALE_0_03,hoverOpacity:.03,selected:y$.GREYSCALE_0_05,selectedOpacity:.05,focus:y$.MISC_FOCUS_BORDER},amethyst:{ultraLight:y$.WHITE,main:y$.PURPLE,light:y$.PURPLE_PALE,dark:y$.PURPLE_DARK,extraDark:y$.GREYSCALE_0_0,contrastText:y$.WHITE},background:{paper:y$.WHITE,default:y$.GREYSCALE_95},divider:y$.GREYSCALE_0_15},V$=e=>G$,U$=(e="light")=>({components:W$(),palette:V$(),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:S$,fontWeightLight:R$,fontWeightRegular:L$,fontWeightMedium:k$,fontWeightBold:I$,htmlFontSize:S$,fontFamily:M$.FONT_FAMILY,button:{fontWeight:k$,fontSize:S$,textTransform:"none"},body1:{fontSize:E$,lineHeight:"24px"},body2:{fontSize:S$,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:C$,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:E$,fontWeight:k$,lineHeight:"16px"},h6:{fontSize:S$,fontWeight:k$,lineHeight:"16px"},caption:{color:y$.TEXT_SECONDARY},subtitle1:{fontSize:S$,color:y$.TEXT_SECONDARY},subtitle2:{fontSize:x$,color:y$.TEXT_SECONDARY}},shape:{borderRadius:w$}});const Y$=(e,t)=>{const{selections:n,styleService:r,app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,env:c,downloadService:d}=t,p=function(e){var t;const n=U$();return null!=n&&null!==(t=n.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(n.components.MuiTable.styleOverrides.root={}),TP({...n,direction:e})}("ltr");e.render(fc.jsx(lo.StrictMode,{children:fc.jsx(hA,{theme:p,children:fc.jsx(cT,{app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,env:c,downloadService:d,children:fc.jsx(Nq,{selections:n,updatePageInfo:t.updatePageInfo,children:fc.jsx(hT,{styleService:r,children:fc.jsx(b$,{...t})})})})})}))};var K$,X$,Q$,J$;!function(e){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"}(K$||(K$={})),function(e){e.Dimension="object.pivotTableV2.dimension",e.Measure="object.pivotTableV2.measure",e.Total="object.pivotTableV2.total",e.Null="object.pivotTableV2.null",e.Grid="object.pivotTableV2"}(X$||(X$={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(Q$||(Q$={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.Color="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor"}(J$||(J$={}));const Z$=e=>e?`${parseInt(e,10)}px`:void 0,eB=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?Yn.Transparent:n}},tB=(e,t)=>+(parseInt(e,10)*Vn*t+8).toFixed(2),nB=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?Wn:"normal",rB=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",oB=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none";function iB(t,n){return e.useMemo((()=>t),n)}const aB={},lB=t=>{const n=e.useMemo((()=>({current:aB})),[]);return n.current=n.current===aB?t:n.current,n},sB=({fontStyle:e,fontWeight:t,fontSize:n,fontFamily:r})=>t?`${e} ${t} ${n} ${r}`:`${e} ${n} ${r}`,uB=(t,n,r)=>{var o,i;const a=null!==(o=null==r?void 0:r.qHyperCubeDef.qShowTotalsAbove)&&void 0!==o&&o,l=null!==(i=null==r?void 0:r.qHyperCubeDef.qAlwaysFullyExpanded)&&void 0!==i&&i,s=void 0!==(null==r?void 0:r.qHyperCubeDef.qSortbyYValue)&&1===Math.abs(null==r?void 0:r.qHyperCubeDef.qSortbyYValue),u=e.useMemo((()=>{var e;return null==r||null===(e=r.qHyperCubeDef.qDimensions)||void 0===e?void 0:e.map((e=>e.qDef.qSortCriterias))}),[r]);return e.useMemo((()=>(({layout:e,flags:t,qShowTotalsAbove:n,qAlwaysFullyExpanded:r,isSortedByFirstMeasure:o,qSortCriterias:i})=>{var a,l,s,u;const{qHyperCube:c,nullValueRepresentation:d,snapshotData:p}=e,{qNoOfLeftDims:f,qEffectiveInterColumnSortOrder:m,qMeasureInfo:h,qDimensionInfo:g}=c,v=!!p,b=null!==(a=null==p||null===(l=p.content)||void 0===l?void 0:l.rowsPerPage)&&void 0!==a?a:15e3,y={x:Math.min(e.qHyperCube.qSize.qcx,Gn),y:Math.min(e.qHyperCube.qSize.qcy,b)},x=m.slice(0,f),S=e=>x.some((t=>t===e)),E=S(CT),C=new Map(m.map((e=>{var t;return[null!==(t=g[e])&&void 0!==t?t:CT,e]}))),w=h.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}));return{layout:e,getNullValueText:()=>{var e;return null!==(e=null==d?void 0:d.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(E)return 0;const n=e%w.length;return t?n:h.findIndex((e=>e===w[n]))},getDimensionInfo:e=>e===CT?CT:g[e],getDimensionInfoIndex:e=>{var t;return null!==(t=C.get(e))&&void 0!==t?t:-1},getSortCriteriaForDimension:e=>null==i?void 0:i[e],size:y,isSnapshot:v,hasLimitedData:!v&&y.x<e.qHyperCube.qSize.qcx,hasData:y.x>0&&y.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,showTotalsAbove:n,hasPseudoDimOnLeft:E,leftDimensionInfoIndexes:x,isLeftDimension:S,isFullyExpanded:r,triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:w,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode)&&t.isEnabled("CLIENT_IM_5975_INDENT_MODE"),indentModeColumnWidth:null!==(s=e.qHyperCube.indentModeColumnWidth)&&void 0!==s?s:{type:rt.Auto,pixels:nt.PixelsDefault,percentage:nt.PercentageDefault},isSortedByFirstMeasure:o,searchSortFromDimension:"inherit"===(null===(u=e.search)||void 0===u?void 0:u.sorting)}})({layout:t,flags:n,qShowTotalsAbove:a,qAlwaysFullyExpanded:l,isSortedByFirstMeasure:s,qSortCriterias:u})),[t,a,l,s,n,u])},cB=({model:e,layoutService:t,viewService:n,pageInfo:r,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=(e=>{const t=lB(e);return t.current=e,t})(dN(o));return XI((async()=>{var t;const{qHyperCube:o}=i,{maxNumberOfVisibleRows:u,maxNumberOfVisibleColumns:c}=s.current;var d,p;if(a)return null!==(d=null===(p=i.snapshotData)||void 0===p||null===(p=p.content)||void 0===p?void 0:p.qPivotDataPages)&&void 0!==d?d:[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,n,r)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=r||t.gridRowStartIndex+t.gridHeight>=n))(l,n,u,c)||((e,t,n,r)=>{var o,i;const{qHyperCube:{qPivotDataPages:a,qSize:l}}=e,{qTop:s,qWidth:u,qHeight:c}=null!==(o=null===(i=a[0])||void 0===i?void 0:i.qArea)&&void 0!==o?o:{qTop:0,qWidth:0,qHeight:0};return s<t.page*t.rowsPerPage||u<Math.min(r,l.qcx)||c<Math.min(n,l.qcy)})(i,r,u,c))){const t=((e,t,n,r,o,i)=>{const a=r.page*r.rowsPerPage,l=Math.min(a+r.rowsPerPage,n.qcy),s=Math.min(Gn,n.qcx);if(n.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,n=t.gridColumnStartIndex+t.gridWidth;e>l&&(c=Math.max(0,l-o)),n>s&&(u=Math.max(0,s-i))}return{qLeft:u,qTop:c,qWidth:Math.min(s-u,i),qHeight:Math.min(l-c,o)}})(l,n,i.qHyperCube.qSize,r,u,c);return t?e.getHyperCubePivotData(ET,pN(t)):[]}return null!==(t=o.qPivotDataPages)&&void 0!==t?t:[]}),[i,a,e,n,r.page,r.rowsPerPage,s,l])},dB=({rowsPerPage:e,totalRowCount:t,page:n})=>Math.min(e,t-n*e),pB=(e,t,n=15e3)=>({rowsPerPage:n,totalPages:Math.max(1,Math.ceil(e/n)),totalRowCount:e,rowsOnCurrentPage:dB({rowsPerPage:n,totalRowCount:e,page:t})}),fB=15,mB=({layoutService:t,viewService:n,rect:r,model:o,pageInfo:i})=>{var a;return e.onTakeSnapshot((async e=>{if(!e.snapshotData||!o||e.snapshotData.content)return e;if(null!=o&&o.getHyperCubePivotData){const{scrollTop:t,scrollLeft:a,leftGridScrollLeft:l}=n,s=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=e,l=t.page*t.rowsPerPage,s=Math.max(r-fB,0),u=Math.max(l+o-fB,l,0);if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=dN(n);return{qLeft:s,qTop:u,qWidth:e+30,qHeight:t+30}}return{qLeft:s,qTop:u,qWidth:i+30,qHeight:a+30}})(n,i,r),u=pN(s),c={qLeft:0,qTop:i.page*i.rowsPerPage,qWidth:1,qHeight:1};e.snapshotData.content={qPivotDataPages:await o.getHyperCubePivotData(ET,[c,...u]),scrollTop:t,scrollLeft:a,leftGridScrollLeft:l,page:i.page,rowsPerPage:i.rowsPerPage},e.snapshotData.object.size.w=r.width,e.snapshotData.object.size.h=r.height}return e})),e.useImperativeHandle((()=>({getViewState:()=>((e,t)=>({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,renderPage:t.page}))(n,i)})),[n]),null!==(a=t.layout.snapshotData)&&void 0!==a&&a.content?{left:r.left,top:r.top,width:t.layout.snapshotData.object.size.w,height:t.layout.snapshotData.object.size.h}:r};var hB={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 gB=()=>{const t=e.useTranslator(),n=t.language();return e.useMemo((()=>function(e){if(e.get&&e.add){const t="SNPivotTable_LimitedData";if(e.get(t)!==t)return;Object.keys(hB).forEach((t=>{e.add(hB[t])}))}}(t)),[t]),{translator:t,language:n}},vB=t=>{const{flags:n}=t,r=e.useElement(),o=(t=>{const n=e.useMemo((()=>tM(t)),[t]);return e.useEffect((()=>()=>n.unmount()),[n]),n})(r),i=e.useStaleLayout(),a=e.useModel(),l=e.useApp(),s=e.useEmbed(),u=e.useKeyboard(),c=e.useInteractionState(),d=(t=>{const{viewState:n}=e.useOptions(),r=lB(new Set),o=void 0!==n&&t.flags.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD"),{promise:i,resolve:a}=e.useMemo((()=>wq()),[]),l=iB((e=>{r.current.add(e)}),[r]),s=iB(xe((async()=>{await Promise.all(r.current),a()}),1e3),[a,r]);return e.usePromise((async()=>{o&&await i}),[i,o]),e.useMemo((()=>({viewState:n,isDownloadedAsPDForImage:o,notifyIsDoneRendering:s,waitForPromise:l})),[s,o,n,l])})(t),[p,f]=((e,t)=>XI((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return e.getEffectiveProperties()}),[e,t]))(a,i),m=uB(i,n,p),h=e.useSelections(),g=KI(i,r),{translator:v,language:b}=gB(),{pageInfo:y,updatePageInfo:x}=((t,n)=>{const{size:r,layout:{qHyperCube:{qSize:o}}}=t,i=n.isDownloadedAsPDForImage||t.isSnapshot,a=(e=>{var t;return null===(t=e.layout.snapshotData)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.rowsPerPage})(t),[l,s]=e.useState((()=>{const e=((e,t)=>{var n,r,o,i;return t.isDownloadedAsPDForImage?null!==(n=null===(r=t.viewState)||void 0===r?void 0:r.renderPage)&&void 0!==n?n:0:e.isSnapshot&&null!==(o=null===(i=e.layout.snapshotData)||void 0===i||null===(i=i.content)||void 0===i?void 0:i.page)&&void 0!==o?o:0})(t,n);return{page:e,shouldShowPagination:o.qcy>r.y&&!i,...pB(o.qcy,e,a)}}));return e.useEffect((()=>{s((e=>({...e,...pB(t.layout.qHyperCube.qSize.qcy,e.page,a),shouldShowPagination:t.layout.qHyperCube.qSize.qcy>t.size.y&&!i})))}),[t.layout.qHyperCube.qSize.qcy,t.size.y,s,i,a]),e.useEffect((()=>{const{page:e,totalPages:t}=l;if(e+1>t){const e=t-1,n=dB({...l,page:e});s({...l,page:e,rowsOnCurrentPage:n})}}),[l]),{pageInfo:l,updatePageInfo:e=>s({...l,...e,rowsOnCurrentPage:dB({...l,...e})})}})(m,d),S=((t,n,r)=>e.useMemo((()=>((e,t)=>{var n,r,o,i,a,l;if(e.isDownloadedAsPDForImage){var s,u,c;const{viewState:t}=e;return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(s=null==t?void 0:t.scrollTop)&&void 0!==s?s:0,scrollLeft:null!==(u=null==t?void 0:t.scrollLeft)&&void 0!==u?u:0,leftGridScrollLeft:null!==(c=null==t?void 0:t.leftGridScrollLeft)&&void 0!==c?c:0}}return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(n=null==t||null===(r=t.content)||void 0===r?void 0:r.scrollTop)&&void 0!==n?n:0,scrollLeft:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.scrollLeft)&&void 0!==o?o:0,leftGridScrollLeft:null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.leftGridScrollLeft)&&void 0!==a?a:0}})(r,n.snapshotData)),[r,t.page,n.snapshotData]))(y,i,d),E=mB({rect:e.useRect(),layoutService:m,viewService:S,model:a,pageInfo:y}),[C,w]=cB({model:a,layoutService:m,viewService:S,pageInfo:y,rect:E}),R=e.useMemo((()=>((e,t,n)=>{var r,o,i,a,l,s,u,c,d,p,f,m,h,g,v,b,y,x,S,E,C,w,R,L,k,I,M,_,P,A,D,T,O,N,q,F,z,j,$,B,H,W,G,V,U,Y,K;const X=null===(r=t.layout.components)||void 0===r?void 0:r.find((e=>"theme"===e.key)),Q=null==X?void 0:X.header,J=null==X?void 0:X.dimensionValues,Z=null==X?void 0:X.measureValues,ee=null==X?void 0:X.measureLabels,te=null==X?void 0:X.totalValues,ne=null==X?void 0:X.nullValues,re=null==X?void 0:X.grid,oe=(t,n,r)=>e.getStyle(t,n,r),ie=+(null!==(o=null!==(i=null==re?void 0:re[K$.LineClamp])&&void 0!==i?i:oe(X$.Grid,Q$.Grid,J$.LineClamp))&&void 0!==o?o:1),ae=n.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?+(null!==(a=null!==(l=null==re?void 0:re[K$.ColumnLineClamp])&&void 0!==l?l:oe(X$.Grid,Q$.Grid,J$.ColumnLineClamp))&&void 0!==a?a:1):1,le=null!==(s=null!==(u=eB(e,null==Q?void 0:Q[K$.Background]))&&void 0!==u?u:oe(X$.Dimension,Q$.LabelName,J$.BackgroundColor))&&void 0!==s?s:Yn.Transparent,se={header:{fontSize:null!==(c=null!==(d=Z$(null==Q?void 0:Q[K$.FontSize]))&&void 0!==d?d:oe(X$.Dimension,Q$.LabelName,J$.FontSize))&&void 0!==c?c:Bn,fontFamily:null!==(p=null!==(f=null==Q?void 0:Q[K$.FontFamily])&&void 0!==f?f:oe(X$.Dimension,Q$.LabelName,J$.FontFamily))&&void 0!==p?p:Hn,fontWeight:nB(null==Q?void 0:Q[K$.FontStyle],Wn),fontStyle:rB(null==Q?void 0:Q[K$.FontStyle]),textDecoration:oB(null==Q?void 0:Q[K$.FontStyle]),color:null!==(m=null!==(h=eB(e,null==Q?void 0:Q[K$.FontColor]))&&void 0!==h?h:oe(X$.Dimension,Q$.LabelName,J$.Color))&&void 0!==m?m:zk.TEXT,background:le,hoverBackground:zI(le,ot),activeBackground:zI(le,it)},dimensionValues:{fontSize:null!==(g=null!==(v=Z$(null==J?void 0:J[K$.FontSize]))&&void 0!==v?v:oe(X$.Dimension,Q$.LabelValue,J$.FontSize))&&void 0!==g?g:Bn,fontFamily:null!==(b=null!==(y=null==J?void 0:J[K$.FontFamily])&&void 0!==y?y:oe(X$.Dimension,Q$.LabelValue,J$.FontFamily))&&void 0!==b?b:Hn,fontWeight:nB(null==J?void 0:J[K$.FontStyle],void 0),fontStyle:rB(null==J?void 0:J[K$.FontStyle]),textDecoration:oB(null==J?void 0:J[K$.FontStyle]),color:null!==(x=null!==(S=eB(e,null==J?void 0:J[K$.FontColor]))&&void 0!==S?S:oe(X$.Dimension,Q$.LabelValue,J$.Color))&&void 0!==x?x:zk.TEXT,background:null!==(E=null!==(C=eB(e,null==J?void 0:J[K$.Background]))&&void 0!==C?C:oe(X$.Dimension,Q$.LabelValue,J$.BackgroundColor))&&void 0!==E?E:Yn.Transparent},measureValues:{fontSize:null!==(w=null!==(R=Z$(null==Z?void 0:Z[K$.FontSize]))&&void 0!==R?R:oe(X$.Measure,Q$.LabelValue,J$.FontSize))&&void 0!==w?w:Bn,fontFamily:null!==(L=null!==(k=null==Z?void 0:Z[K$.FontFamily])&&void 0!==k?k:oe(X$.Measure,Q$.LabelValue,J$.FontFamily))&&void 0!==L?L:Hn,fontWeight:nB(null==Z?void 0:Z[K$.FontStyle],"normal"),fontStyle:rB(null==Z?void 0:Z[K$.FontStyle]),textDecoration:oB(null==Z?void 0:Z[K$.FontStyle]),color:null!==(I=null!==(M=eB(e,null==Z?void 0:Z[K$.FontColor]))&&void 0!==M?M:oe(X$.Measure,Q$.LabelValue,J$.Color))&&void 0!==I?I:Yn.FontSecondary,background:null!==(_=null!==(P=eB(e,null==Z?void 0:Z[K$.Background]))&&void 0!==P?P:oe(X$.Measure,Q$.LabelValue,J$.BackgroundColor))&&void 0!==_?_:Yn.Transparent},measureLabels:{fontWeight:nB(null==ee?void 0:ee[K$.FontStyle],"normal"),fontStyle:rB(null==ee?void 0:ee[K$.FontStyle]),textDecoration:oB(null==ee?void 0:ee[K$.FontStyle]),color:null!==(A=null!==(D=eB(e,null==ee?void 0:ee[K$.FontColor]))&&void 0!==D?D:oe(X$.Measure,Q$.LabelName,J$.Color))&&void 0!==A?A:Yn.FontSecondary,background:null!==(T=null!==(O=eB(e,null==ee?void 0:ee[K$.Background]))&&void 0!==O?O:oe(X$.Measure,Q$.LabelName,J$.BackgroundColor))&&void 0!==T?T:Yn.Transparent},totalValues:{fontWeight:nB(null==te?void 0:te[K$.FontStyle],Wn),fontStyle:rB(null==te?void 0:te[K$.FontStyle]),textDecoration:oB(null==te?void 0:te[K$.FontStyle]),color:null!==(N=null!==(q=eB(e,null==te?void 0:te[K$.FontColor]))&&void 0!==q?q:oe(X$.Total,Q$.LabelValue,J$.Color))&&void 0!==N?N:zk.TEXT,background:null!==(F=null!==(z=eB(e,null==te?void 0:te[K$.Background]))&&void 0!==z?z:oe(X$.Total,Q$.LabelValue,J$.BackgroundColor))&&void 0!==F?F:Yn.Transparent},nullValues:{fontWeight:nB(null==ne?void 0:ne[K$.FontStyle],"normal"),fontStyle:rB(null==ne?void 0:ne[K$.FontStyle]),textDecoration:oB(null==ne?void 0:ne[K$.FontStyle]),color:null!==(j=null!==($=eB(e,null==ne?void 0:ne[K$.FontColor]))&&void 0!==$?$:oe(X$.Null,Q$.LabelValue,J$.Color))&&void 0!==j?j:zk.TEXT,background:null!==(B=null!==(H=eB(e,null==ne?void 0:ne[K$.Background]))&&void 0!==H?H:oe(X$.Null,Q$.LabelValue,J$.BackgroundColor))&&void 0!==B?B:Yn.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(W=null!==(G=eB(e,null==re?void 0:re[K$.Border]))&&void 0!==G?G:oe(X$.Grid,Q$.Grid,J$.BorderColor))&&void 0!==W?W:Yn.DividerLight,divider:null!==(V=null!==(U=eB(e,null==re?void 0:re[K$.Divider]))&&void 0!==U?U:oe(X$.Grid,Q$.Divider,J$.BorderColor))&&void 0!==V?V:Yn.DividerDark,background:null!==(Y=null!==(K=eB(e,null==re?void 0:re[K$.Background]))&&void 0!==K?K:oe(X$.Grid,Q$.Grid,J$.BackgroundColor))&&void 0!==Y?Y:Yn.Transparent}};return se.headerCellHeight=Math.max(tB(se.header.fontSize,ae),tB(se.dimensionValues.fontSize,ae),32),se.contentCellHeight=Math.max(tB(se.measureValues.fontSize,ie),tB(se.dimensionValues.fontSize,ie),24),se.dimensionValueTextHeight=tB(se.dimensionValues.fontSize,1),se})(g,m,n)),[g,m,n]),L=(t=>e.useMemo((()=>[...new Set([sB(t.header),sB(t.dimensionValues),sB({...t.dimensionValues,...t.measureLabels}),sB({...t.dimensionValues,...t.nullValues}),sB({...t.dimensionValues,...t.totalValues}),sB(t.measureValues),sB({...t.measureValues,...t.nullValues}),sB({...t.measureValues,...t.totalValues})])]),[t]))(R),k=(t=>{const[n,r]=e.usePromise((()=>Promise.all(t.map((e=>document.fonts.load(e))))),[t]);return r?(console.warn("Failed to load font:",r),!0):!!n})(L);n.isEnabled("CLIENT_IM6278_PIVOT_COPYCELL")&&sM(),e.useEffect((()=>{!w&&a&&(null==E?void 0:E.width)&&(null==E?void 0:E.height)&&h&&S&&m&&R&&!!C&&!f&&k&&Y$(o,{model:a,app:l,rect:E,selections:h,viewService:S,layoutService:m,downloadService:d,qPivotDataPages:C,styleService:R,translator:v,pageInfo:y,updatePageInfo:x,interactions:c,embed:s,keyboard:u,theme:g,env:t})}),[a,l,E,null==E?void 0:E.width,null==E?void 0:E.height,c,h,S,m,d,w,C,R,o,k,v,b,y,x,p,f,s,u,g,t])},bB={version:"3.9.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:[]},yB=e=>({...bB,qHyperCubeDef:{...bB.qHyperCubeDef,qIndentMode:e.flags.isEnabled("CLIENT_IM_5975_INDENT_MODE")}});return function(e){return{qae:{properties:{initial:yB(e)},data:Ie(e)},ext:fr(e),component(){vB(e)}}}}));
193
+ `),TF.rippleVisible,$F,550,(({theme:e})=>e.transitions.easing.easeInOut),TF.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),TF.child,TF.childLeaving,BF,550,(({theme:e})=>e.transitions.easing.easeInOut),TF.childPulsate,HF,(({theme:e})=>e.transitions.easing.easeInOut)),VF=ao.forwardRef((function(e,t){const n=kF({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=dM(n,OF),[l,s]=ao.useState([]),u=ao.useRef(0),c=ao.useRef(null);ao.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=ao.useRef(!1),p=Ls(),f=ao.useRef(null),m=ao.useRef(null),h=ao.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,fc.jsx(GF,{classes:{ripple:Ys(o.ripple,TF.ripple),rippleVisible:Ys(o.rippleVisible,TF.rippleVisible),ripplePulsate:Ys(o.ripplePulsate,TF.ripplePulsate),child:Ys(o.child,TF.child),childLeaving:Ys(o.childLeaving,TF.childLeaving),childPulsate:Ys(o.childPulsate,TF.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=ao.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,h,p]),v=ao.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=ao.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{b(e,t)}));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return ao.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),fc.jsx(WF,cM({className:Ys(TF.root,o.root,i),ref:m},a,{children:fc.jsx(MC,{component:null,exit:!0,children:l})}))}));var UF=VF;function YF(e){return Bs("MuiButtonBase",e)}var KF=Hs("MuiButtonBase",["root","disabled","focusVisible"]);const XF=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],QF=hA("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${KF.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),JF=ao.forwardRef((function(e,t){const n=kF({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:C,onTouchEnd:w,onTouchMove:R,onTouchStart:L,tabIndex:k=0,TouchRippleProps:I,touchRippleRef:M,type:_}=n,P=dM(n,XF),A=ao.useRef(null),D=ao.useRef(null),T=Es(D,M),{isFocusVisibleRef:O,onFocus:N,onBlur:q,ref:F}=Os(),[z,j]=ao.useState(!1);s&&z&&j(!1),ao.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),A.current.focus()}})),[]);const[$,B]=ao.useState(!1);ao.useEffect((()=>{B(!0)}),[]);const H=$&&!u&&!s;function W(e,t,n=c){return Ss((r=>{t&&t(r);return!n&&D.current&&D.current[e](r),!0}))}ao.useEffect((()=>{z&&d&&!u&&$&&D.current.pulsate()}),[u,d,z,$]);const G=W("start",S),V=W("stop",h),U=W("stop",g),Y=W("stop",C),K=W("stop",(e=>{z&&e.preventDefault(),E&&E(e)})),X=W("start",L),Q=W("stop",w),J=W("stop",R),Z=W("stop",(e=>{q(e),!1===O.current&&j(!1),f&&f(e)}),!1),ee=Ss((e=>{A.current||(A.current=e.currentTarget),N(e),!0===O.current&&(j(!0),b&&b(e)),v&&v(e)})),te=()=>{const e=A.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=ao.useRef(!1),re=Ss((e=>{d&&!ne.current&&z&&D.current&&" "===e.key&&(ne.current=!0,D.current.stop(e,(()=>{D.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),oe=Ss((e=>{d&&" "===e.key&&D.current&&z&&!e.defaultPrevented&&(ne.current=!1,D.current.stop(e,(()=>{D.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ie=l;"button"===ie&&(P.href||P.to)&&(ie=p);const ae={};"button"===ie?(ae.type=void 0===_?"button":_,ae.disabled=s):(P.href||P.to||(ae.role="button"),s&&(ae["aria-disabled"]=s));const le=Es(t,F,A),se=cM({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:k,focusVisible:z}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Fs({root:["root",t&&"disabled",n&&"focusVisible"]},YF,o);return n&&r&&(i.root+=` ${r}`),i})(se);return fc.jsxs(QF,cM({as:ie,className:Ys(ue.root,a),ownerState:se,onBlur:Z,onClick:m,onContextMenu:V,onFocus:ee,onKeyDown:re,onKeyUp:oe,onMouseDown:G,onMouseLeave:K,onMouseUp:Y,onDragLeave:U,onTouchEnd:Q,onTouchMove:J,onTouchStart:X,ref:le,tabIndex:s?-1:k,type:_},ae,P,{children:[i,H?fc.jsx(UF,cM({ref:T,center:o},I)):null]}))}));var ZF=JF;var ez=ao.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=ao.useState(null),l=Es(ao.isValidElement(n)?n.ref:null,t);if(xs((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),xs((()=>{if(i&&!o)return ys(t,i),()=>{ys(t,null)}}),[t,i,o]),o){if(ao.isValidElement(n)){const e={ref:l};return ao.cloneElement(n,e)}return fc.jsx(ao.Fragment,{children:n})}return fc.jsx(ao.Fragment,{children:i?pC.createPortal(n,i):i})}));const tz=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],nz={entering:{opacity:1},entered:{opacity:1}},rz=ao.forwardRef((function(e,t){const n=FP(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=r,TransitionComponent:v=CC}=e,b=dM(e,tz),y=ao.useRef(null),x=Es(y,a.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},E=S(d),C=S(((e,t)=>{IF(e);const r=MF({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),w=S(c),R=S(m),L=S((e=>{const t=MF({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),k=S(f);return fc.jsx(v,cM({appear:i,in:s,nodeRef:y,onEnter:C,onEntered:w,onEntering:E,onExit:L,onExited:k,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>ao.cloneElement(a,cM({style:cM({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},nz[e],h,a.props.style),ref:x},t))}))}));var oz=rz;function iz(e){return Bs("MuiBackdrop",e)}Hs("MuiBackdrop",["root","invisible"]);const az=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],lz=hA("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>cM({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),sz=ao.forwardRef((function(e,t){var n,r,o;const i=kF({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=oz,transitionDuration:g}=i,v=dM(i,az),b=cM({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return Fs({root:["root",n&&"invisible"]},iz,t)})(b),x=null!=(n=f.root)?n:c.root;return fc.jsx(h,cM({in:p,timeout:g},v,{children:fc.jsx(lz,cM({"aria-hidden":!0},x,{as:null!=(r=null!=(o=m.root)?o:u.Root)?r:s,className:Ys(y.root,l,null==x?void 0:x.className),ownerState:cM({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var uz=sz;var cz=Hs("MuiBox",["root"]);const dz=NP(),pz=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Nl("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(p_);return ao.forwardRef((function(e,a){const l=y_(n),s=E_(e),{className:u,component:c="div"}=s,d=Sr(s,w_);return fc.jsx(i,mr({as:c,ref:a,className:Ys(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:uM,defaultTheme:dz,defaultClassName:cz.root,generateClassName:js.generate});var fz=pz;function mz(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function hz(e){return parseInt(bs(e).getComputedStyle(e).paddingRight,10)||0}function gz(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&mz(e,o)}))}function vz(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function bz(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=vs(e);return t.body===e?bs(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Ns(vs(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${hz(r)+e}px`;const t=vs(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${hz(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=vs(r).body;else{const t=r.parentElement,n=bs(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const yz=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function xz(e){const t=[],n=[];return Array.from(e.querySelectorAll(yz)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function Sz(){return!0}function Ez(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=xz,isEnabled:a=Sz,open:l}=e,s=ao.useRef(!1),u=ao.useRef(null),c=ao.useRef(null),d=ao.useRef(null),p=ao.useRef(null),f=ao.useRef(!1),m=ao.useRef(null),h=Es(t.ref,m),g=ao.useRef(null);ao.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),ao.useEffect((()=>{if(!l||!m.current)return;const e=vs(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),ao.useEffect((()=>{if(!l||!m.current)return;const e=vs(m.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(m.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return fc.jsxs(ao.Fragment,{children:[fc.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),ao.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),fc.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}const Cz=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&mz(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);gz(t,e.mount,e.modalRef,r,!0);const o=vz(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=vz(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=bz(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=vz(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&mz(e.modalRef,t),gz(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&mz(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function wz(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=Cz,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=ao.useRef({}),f=ao.useRef(null),m=ao.useRef(null),h=Es(m,d),[g,v]=ao.useState(!c),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},E=Ss((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||vs(f.current).body;o.add(x(),e),m.current&&S()})),C=ao.useCallback((()=>o.isTopModal(x())),[o]),w=Ss((e=>{f.current=e,e&&(c&&C()?S():m.current&&mz(m.current,y))})),R=ao.useCallback((()=>{o.remove(x(),y)}),[y,o]);ao.useEffect((()=>()=>{R()}),[R]),ao.useEffect((()=>{c?E():b&&i||R()}),[c,R,b,i,E]);const L=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},k=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=Ks(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=cM({},n,t);return cM({role:"presentation"},r,{onKeyDown:L(r),ref:h})},getBackdropProps:(e={})=>cM({"aria-hidden":!0},e,{onClick:k(e),open:c}),getTransitionProps:()=>({onEnter:hs((()=>{v(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:hs((()=>{v(!0),l&&l(),i&&R()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:w,isTopModal:C,exited:g,hasTransition:b}}function Rz(e){return Bs("MuiModal",e)}Hs("MuiModal",["root","hidden","backdrop"]);const Lz=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],kz=hA("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>cM({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Iz=hA(uz,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Mz=ao.forwardRef((function(e,t){var n,r,o,i,a,l;const s=kF({name:"MuiModal",props:e}),{BackdropComponent:u=Iz,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:C=!1,hideBackdrop:w=!1,keepMounted:R=!1,onBackdropClick:L,open:k,slotProps:I,slots:M}=s,_=dM(s,Lz),P=cM({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:E,disableScrollLock:C,hideBackdrop:w,keepMounted:R}),{getRootProps:A,getBackdropProps:D,getTransitionProps:T,portalRef:O,isTopModal:N,exited:q,hasTransition:F}=wz(cM({},P,{rootRef:t})),z=cM({},P,{exited:q}),j=(e=>{const{open:t,exited:n,classes:r}=e;return Fs({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Rz,r)})(z),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),F){const{onEnter:e,onExited:t}=T();$.onEnter=e,$.onExited=t}const B=null!=(n=null!=(r=null==M?void 0:M.root)?r:g.Root)?n:kz,H=null!=(o=null!=(i=null==M?void 0:M.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==I?void 0:I.root)?a:v.root,G=null!=(l=null==I?void 0:I.backdrop)?l:v.backdrop,V=Js({elementType:B,externalSlotProps:W,externalForwardedProps:_,getSlotProps:A,additionalProps:{ref:t,as:h},ownerState:z,className:Ys(d,null==W?void 0:W.className,null==j?void 0:j.root,!z.open&&z.exited&&(null==j?void 0:j.hidden))}),U=Js({elementType:H,externalSlotProps:G,additionalProps:c,getSlotProps:e=>D(cM({},e,{onClick:t=>{L&&L(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Ys(null==G?void 0:G.className,null==c?void 0:c.className,null==j?void 0:j.backdrop),ownerState:z});return R||k||F&&!q?fc.jsx(ez,{ref:O,container:m,disablePortal:S,children:fc.jsxs(B,cM({},V,{children:[!w&&u?fc.jsx(H,cM({},U)):null,fc.jsx(Ez,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:N,open:k,children:ao.cloneElement(f,$)})]}))}):null}));var _z=Mz;var Pz=Hs("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Az=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Dz(e){return`scale(${e}, ${e**2})`}const Tz={entering:{opacity:1,transform:Dz(1)},entered:{opacity:1,transform:"none"}},Oz="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Nz=ao.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=CC}=e,g=dM(e,Az),v=Ls(),b=ao.useRef(),y=FP(),x=ao.useRef(null),S=Es(x,o.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=E(u),w=E(((e,t)=>{IF(e);const{duration:n,delay:r,easing:o}=MF({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:Oz?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),R=E(s),L=E(p),k=E((e=>{const{duration:t,delay:n,easing:r}=MF({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:Oz?o:.666*o,delay:Oz?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Dz(.75),c&&c(e)})),I=E(d);return fc.jsx(h,cM({appear:r,in:a,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:k,onExited:I,onExiting:L,addEndListener:e=>{"auto"===m&&v.start(b.current||0,e),n&&n(x.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>ao.cloneElement(o,cM({style:cM({opacity:0,transform:Dz(.75),visibility:"exited"!==e||a?void 0:"hidden"},Tz[e],f,o.props.style),ref:S},t))}))}));Nz.muiSupportAuto=!0;var qz=Nz;var Fz=ao.createContext({});function zz(e){return Bs("MuiList",e)}Hs("MuiList",["root","padding","dense","subheader"]);const jz=["children","className","component","dense","disablePadding","subheader"],$z=hA("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>cM({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var Bz=ao.forwardRef((function(e,t){const n=kF({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=dM(n,jz),c=ao.useMemo((()=>({dense:a})),[a]),d=cM({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Fs({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},zz,t)})(d);return fc.jsx(Fz.Provider,{value:c,children:fc.jsxs($z,cM({as:i,className:Ys(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));var Hz=Hs("MuiListItemIcon",["root","alignItemsFlexStart"]);var Wz=Hs("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const Gz=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Vz(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Uz(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Yz(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function Kz(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&Yz(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var Xz=ao.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=dM(e,Gz),p=ao.useRef(null),f=ao.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});xs((()=>{r&&p.current.focus()}),[r]),ao.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${Ns(vs(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=Es(p,t);let h=-1;ao.Children.forEach(i,((e,t)=>{ao.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=ao.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),ao.cloneElement(e,t)}return e}));return fc.jsx(Bz,cM({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=vs(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Kz(t,r,s,l,Vz);else if("ArrowUp"===n)e.preventDefault(),Kz(t,r,s,l,Uz);else if("Home"===n)e.preventDefault(),Kz(t,null,s,l,Vz);else if("End"===n)e.preventDefault(),Kz(t,null,s,l,Uz);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&Yz(r,o);o.previousKeyMatched&&(s||Kz(t,r,!1,l,Vz,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function Qz(e){return Bs("MuiPopover",e)}Hs("MuiPopover",["root","paper"]);const Jz=["onEntering"],Zz=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],ej=["slotProps"];function tj(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function nj(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function rj(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function oj(e){return"function"==typeof e?e():e}const ij=hA(_z,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),aj=hA(DF,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0});var lj=ao.forwardRef((function(e,t){var n,r,o;const i=kF({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:v={},slots:b,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=qz,transitionDuration:E="auto",TransitionProps:{onEntering:C}={},disableScrollLock:w=!1}=i,R=dM(i.TransitionProps,Jz),L=dM(i,Zz),k=null!=(n=null==y?void 0:y.paper)?n:v,I=ao.useRef(),M=Es(I,k.ref),_=cM({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:k,transformOrigin:x,TransitionComponent:S,transitionDuration:E,TransitionProps:R}),P=(e=>{const{classes:t}=e;return Fs({root:["root"],paper:["paper"]},Qz,t)})(_),A=ao.useCallback((()=>{if("anchorPosition"===c)return u;const e=oj(l),t=(e&&1===e.nodeType?e:vs(I.current).body).getBoundingClientRect();return{top:t.top+tj(t,s.vertical),left:t.left+nj(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),D=ao.useCallback((e=>({vertical:tj(e,x.vertical),horizontal:nj(e,x.horizontal)})),[x.horizontal,x.vertical]),T=ao.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if("none"===c)return{top:null,left:null,transformOrigin:rj(n)};const r=A();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=bs(oj(l)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,n.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:rj(n)}}),[l,c,A,D,h]),[O,N]=ao.useState(g),q=ao.useCallback((()=>{const e=I.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[T]);ao.useEffect((()=>(w&&window.addEventListener("scroll",q),()=>window.removeEventListener("scroll",q))),[l,w,q]);ao.useEffect((()=>{g&&q()})),ao.useImperativeHandle(a,(()=>g?{updatePosition:()=>{q()}}:null),[g,q]),ao.useEffect((()=>{if(!g)return;const e=gs((()=>{q()})),t=bs(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,q]);let F=E;"auto"!==E||S.muiSupportAuto||(F=void 0);const z=f||(l?vs(oj(l)).body:void 0),j=null!=(r=null==b?void 0:b.root)?r:ij,$=null!=(o=null==b?void 0:b.paper)?o:aj,B=Js({elementType:$,externalSlotProps:cM({},k,{style:O?k.style:cM({},k.style,{opacity:0})}),additionalProps:{elevation:m,ref:M},ownerState:_,className:Ys(P.paper,null==k?void 0:k.className)}),H=Js({elementType:j,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:L,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:_,className:Ys(P.root,p)}),{slotProps:W}=H,G=dM(H,ej);return fc.jsx(j,cM({},G,!Vs(j)&&{slotProps:W,disableScrollLock:w},{children:fc.jsx(S,cM({appear:!0,in:g,onEntering:(e,t)=>{C&&C(e,t),q()},onExited:()=>{N(!1)},timeout:F},R,{children:fc.jsx($,cM({},B,{children:d}))}))}))}));function sj(e){return Bs("MuiMenu",e)}Hs("MuiMenu",["root","paper","list"]);const uj=["onEntering"],cj=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],dj={vertical:"top",horizontal:"right"},pj={vertical:"top",horizontal:"left"},fj=hA(lj,{shouldForwardProp:e=>mA(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),mj=hA(aj,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),hj=hA(Xz,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var gj=ao.forwardRef((function(e,t){var n,r;const o=kF({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:v={},slotProps:b={}}=o,y=dM(o.TransitionProps,uj),x=dM(o,cj),S=(()=>{const e=ao.useContext(A_);return null!=e&&e})(),E=cM({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:y,variant:g}),C=(e=>{const{classes:t}=e;return Fs({root:["root"],paper:["paper"],list:["list"]},sj,t)})(E),w=i&&!s&&d,R=ao.useRef(null);let L=-1;ao.Children.map(a,((e,t)=>{ao.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===L)&&(L=t))}));const k=null!=(n=v.paper)?n:mj,I=null!=(r=b.paper)?r:p,M=Js({elementType:v.root,externalSlotProps:b.root,ownerState:E,className:[C.root,l]}),_=Js({elementType:k,externalSlotProps:I,ownerState:E,className:C.paper});return fc.jsx(fj,cM({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?dj:pj,slots:{paper:k,root:v.root},slotProps:{root:M,paper:_},open:d,ref:t,transitionDuration:m,TransitionProps:cM({onEntering:(e,t)=>{R.current&&R.current.adjustStyleForScrollbar(e,{direction:S?"rtl":"ltr"}),h&&h(e,t)}},y),ownerState:E},x,{classes:f,children:fc.jsx(hj,cM({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:R,autoFocus:i&&(-1===L||s),autoFocusItem:w,variant:g},u,{className:Ys(C.list,u.className),children:a}))}))}));function vj(e){return Bs("MuiMenuItem",e)}var bj=Hs("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const yj=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],xj=hA(ZF,{shouldForwardProp:e=>mA(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>cM({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${bj.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:V_(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${bj.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:V_(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${bj.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:V_(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:V_(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${bj.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${bj.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Pz.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Pz.inset}`]:{marginLeft:52},[`& .${Wz.root}`]:{marginTop:0,marginBottom:0},[`& .${Wz.inset}`]:{paddingLeft:36},[`& .${Hz.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&cM({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Hz.root} svg`]:{fontSize:"1.25rem"}}))));var Sj=ao.forwardRef((function(e,t){const n=kF({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=dM(n,yj),f=ao.useContext(Fz),m=ao.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=ao.useRef(null);xs((()=>{r&&h.current&&h.current.focus()}),[r]);const g=cM({},n,{dense:m.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return cM({},a,Fs({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},vj,a))})(n),b=Es(h,t);let y;return n.disabled||(y=void 0!==c?c:-1),fc.jsx(Fz.Provider,{value:m,children:fc.jsx(xj,cM({ref:b,role:u,tabIndex:y,component:o,focusVisibleClassName:Ys(v.focusVisible,s),className:Ys(v.root,d)},p,{ownerState:g,classes:v}))})}));const Ej=hA(fz,{shouldForwardProp:e=>!["interactions","hoverBackground","background","shouldShowMenuIcon","isDimension"].includes(e)})((({interactions:e,background:t,hoverBackground:n,shouldShowMenuIcon:r,isDimension:o})=>({pointerEvents:o?"all":"none",position:"relative",display:"grid",gridTemplateColumns:r?"1fr 12px":"1fr",gap:8,alignItems:"center",cursor:e.active?"pointer":"default",background:t,"&&:hover":{background:e.active&&o?n:t}}))),Cj=hA("div")({position:"absolute",left:0,bottom:0}),wj=hA("div",{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({...Xn,justifyContent:null!=e?e:Xn.justifyContent,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}))),Rj=hA("div")((()=>({...Xn}))),Lj=hA("div",{shouldForwardProp:e=>!["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","justifyContent"].includes(e)})((({fontSize:e,fontFamily:t,fontWeight:n,fontStyle:r,textDecoration:o,justifyContent:i})=>({display:"flex",justifyContent:i,alignSelf:"center",flexGrow:1,maxWidth:"100%",fontWeight:n,fontSize:e,fontFamily:t,fontStyle:r,textDecoration:o}))),kj=hA(gj)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),Ij=hA(Sj,{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}}}))),Mj=hA("span")({textOverflow:"ellipsis",overflow:"hidden"}),_j=hA("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:yT,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"}))),Pj={[ED.SORTING]:!0,[ED.SELECTIONS]:!0,[ED.SEARCHING]:!0},Aj=({dataModel:e,cell:t,style:n,isFirstColumn:r,isLastColumn:o,isLastRow:i,translator:a,changeSortOrder:l,iconsVisibilityStatus:s,columnWidth:u,overrideLeftGridWidth:c,layoutService:d,shouldApplyIndentModeColumnWidth:p,tableWidth:f})=>{var m;const h=ao.useRef(null),g=gT(),{app:v,model:b,interactions:y,embed:x,env:{flags:S}}=dT(),{fontSize:E,fontFamily:C,fontStyle:w,fontWeight:R,textDecoration:L,color:k,background:I,hoverBackground:M,activeBackground:_}=g.header,P=ao.useRef(null),{shouldShowLockIcon:A,shouldShowMenuIcon:D}=s,{open:T,setOpen:O,handleOpenMenu:N,setIsAdjustingWidth:q}=wF({interactions:y,dataModel:e}),F={sortFromMenu:async(e,n)=>{e.stopPropagation(),await l(t,n)}},z={embed:x,listboxRef:h,sortCriteria:d.searchSortFromDimension&&t.isDim?d.getSortCriteriaForDimension(t.dimensionInfoIndex):void 0},j={model:b,app:v},{labelTextAlign:$}=null!==(m=d.getDimensionInfo(t.dimensionInfoIndex))&&void 0!==m?m:{},B=rF($,"flex-start",S);return fc.jsxs(Ej,{className:Je,title:t.label,interactions:y,background:T?_:I,hoverBackground:M,shouldShowMenuIcon:D,isDimension:t.isDim,style:{...n,...Jn,...rr(t,i,r,o,g.grid.border),color:k},"data-testid":"title-cell",onClick:N,children:[fc.jsxs(wj,{children:[A&&fc.jsx(Rj,{children:fc.jsx(EF,{height:12})}),fc.jsx(Lj,{fontFamily:C,fontSize:E,fontStyle:w,fontWeight:R,textDecoration:L,justifyContent:B,children:fc.jsx("span",{style:Zn,children:t.label})})]}),t.isDim&&fc.jsxs(fc.Fragment,{children:[fc.jsx(wD,{headerData:t,translator:a,anchorRef:P,open:T,setOpen:O,interactions:y,menuAvailabilityFlags:Pj,sortRelatedArgs:F,searchRelatedArgs:z,selectionRelatedArgs:j,shouldShowMenuIcon:D}),fc.jsx(Cj,{ref:h}),fc.jsx(Cj,{ref:P})]}),fc.jsx(LF,{cellInfo:{...t,isLeftColumn:!0},columnWidth:u,dataModel:e,isLastColumn:o,overrideLeftGridWidth:c,setIsAdjustingWidth:q,shouldApplyIndentModeColumnWidth:p,tableWidth:f})]})},Dj=({rowSpan:e,columnSpan:t})=>{const n=gT();return e>0&&t>0?fc.jsx("div",{style:{...Qn,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"0px 1px 0px 0px",borderColor:n.grid.border,background:n.grid.background},"data-testid":"empty-header-cell"}):null};function Tj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Oj=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Tj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})),Nj=ao.forwardRef(Oj);function qj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Fj=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){qj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),lo.createElement("use",{fillRule:"evenodd"})),zj=ao.forwardRef(Fj),jj=({dataModel:e,tableWidth:t,leftGridWidth:n,overrideLeftGridWidth:r})=>{const o=gT(),{interactions:i}=dT(),{isActive:a}=qq(),{setIsAdjustingWidth:l}=CF([e]);if(!(!!i.active&&!a))return null;const s=RF(o,{isLeftColumn:!0});return fc.jsx(SA,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:s,columnWidth:n,updateWidthCallback:e=>{r(Math.min(e,t*ET))},confirmWidthCallback:o=>{var i;if(o.type===rt.FitToContent)return void e.applyIndentModeColumnWidth({type:rt.Auto});const a=Math.min(null!==(i=o.pixels)&&void 0!==i?i:n,t*ET);r(a),e.applyIndentModeColumnWidth({type:rt.Pixels,pixels:a})},setIsAdjustingWidth:l})};function $j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Bj=(e,t)=>lo.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){$j(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),lo.createElement("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"})),Hj=ao.forwardRef(Bj),Wj=({cell:e,translator:t,dataModel:n,changeSortOrder:r})=>{const o=ao.useRef(null),i=ao.useRef(null),{app:a,model:l,interactions:s,embed:u}=dT(),{open:c,setOpen:d,handleOpenMenu:p}=wF({interactions:s,dataModel:n});return fc.jsxs(Ij,{component:"div",onClick:p,isActive:c,children:[fc.jsx(Mj,{children:e.label}),fc.jsxs(_j,{className:"indent-mode-dropdown-more",visible:c,children:[fc.jsx(Hj,{}),e.isDim&&fc.jsxs(fc.Fragment,{children:[fc.jsx(wD,{headerData:e,translator:t,anchorRef:o,open:c,setOpen:d,interactions:s,menuAvailabilityFlags:Pj,sortRelatedArgs:{sortFromMenu:async(t,n)=>{t.stopPropagation(),await r(e,n)}},searchRelatedArgs:{embed:u,listboxRef:i},selectionRelatedArgs:{model:l,app:a},shouldShowMenuIcon:!1}),fc.jsx(Cj,{ref:i}),fc.jsx(Cj,{ref:o})]})]})]})},Gj=({idx:e,menu:t,menuItems:n,isOnlyOneRow:r})=>{var o,i;const a=(null===(o=n.at(-1))||void 0===o?void 0:o.id)===LT,l=e+1<n.length&&(null===(i=n[e+1])||void 0===i?void 0:i.id)===LT;return!(r&&a&&l)&&((null==t?void 0:t.id)!==LT&&e<n.length-1)},Vj=({headersData:e,menuItems:t,dataModel:n,translator:r,changeSortOrder:o,overrideLeftGridWidth:i,leftGridWidth:a,tableWidth:l})=>{const s=gT(),{interactions:u}=dT(),[c,d]=ao.useState(!1),p=ao.useRef(null),{headerCellHeight:f}=s,{color:m,background:h,hoverBackground:g,activeBackground:v,fontFamily:b,fontSize:y,fontStyle:x,fontWeight:S,textDecoration:E}=s.header,{isAdjustingWidth:C}=CF([n]),w=e=>e.stopPropagation(),R={height:f,gridColumn:`1 / span ${e.size.x}`,gridRow:e.size.y,zIndex:e.size.x-0};return fc.jsxs(Ej,{isDimension:!0,background:c?v:h,interactions:u,hoverBackground:g,style:{...R,...Jn,color:m},onClick:e=>u.active&&!Dq(e)&&!C&&d(!c),"data-testid":"indentModeHeaderCellWrapper",children:[fc.jsxs(wj,{justifyContent:"flex-start",children:[fc.jsx(Lj,{fontFamily:b,fontSize:y,fontStyle:x,fontWeight:S,textDecoration:E,justifyContent:"flex-start",children:fc.jsx("span",{style:Zn,children:r.get("SNPivotTable.IndentMode.Rows")})}),c?fc.jsx(zj,{}):fc.jsx(Nj,{}),fc.jsx(Cj,{ref:p})]}),fc.jsx(kj,{open:c,anchorEl:p.current,children:t.map(((i,a)=>[i&&(null==i?void 0:i.id)!==LT&&fc.jsx("li",{role:"presentation",onClick:w,onKeyDown:w,children:fc.jsx(Wj,{cell:i,translator:r,dataModel:n,changeSortOrder:o})}),Gj({idx:a,menu:i,menuItems:t,isOnlyOneRow:1===e.size.y})&&fc.jsx(MA,{"data-testid":"group-divider",variant:"middle"},"divider")]))}),fc.jsx(jj,{dataModel:n,tableWidth:l,leftGridWidth:a,overrideLeftGridWidth:i})]})},Uj={display:"grid",width:"fit-content"},Yj=({dataModel:e,tableWidth:t,leftGridWidth:n,columnWidths:r,rowHight:o,headersData:i,translator:a,changeSortOrder:l,getHeaderCellsIconsVisibilityStatus:s,height:u,overrideLeftGridWidth:c,layoutService:d})=>fc.jsxs("div",{style:{...Uj,gridTemplateColumns:r.map((e=>`${e}px`)).join(" "),gridTemplateRows:i.data.map((()=>`${o}px`)).join(" "),height:u},children:[i.size.y>1&&fc.jsx(Dj,{columnSpan:i.size.x-1,rowSpan:i.size.y-1}),i.data.map(((u,p)=>{let f=[];if(d.isIndentModeEnabled&&i.size.x>1&&p+1===i.size.y){const r=i.data.at(-1);return f.push(fc.jsx(Vj,{headersData:i,menuItems:r[0],dataModel:e,translator:a,changeSortOrder:l,overrideLeftGridWidth:c,leftGridWidth:n,tableWidth:t},r[0][0].id)),f}return f=u.reduce(((n,u,f)=>{if(u){const m=s(f,u.isLocked,u.label),h=d.isIndentModeEnabled&&1===i.size.x;n.push(fc.jsx(Aj,{dataModel:e,style:{width:r[f],height:o,gridColumn:d.isIndentModeEnabled&&i.size.x>1?2:f+1,gridRow:p+1,zIndex:i.size.x-f},isLastRow:p===i.size.y-1,isFirstColumn:0===f,isLastColumn:f===i.size.x-1,translator:a,changeSortOrder:l,cell:u,iconsVisibilityStatus:m,columnWidth:r[f],overrideLeftGridWidth:c,layoutService:d,shouldApplyIndentModeColumnWidth:h,tableWidth:t},u.id))}return n}),[]),f}))]});var Kj=ao.memo(Yj);const Xj=(e,t,n,r,o)=>{ao.useLayoutEffect((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!0)))}),[e,t,n,r,o])},Qj=(e,t)=>{rM((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},Jj=(e,t,n,r)=>{var o;const i=n?"flex-start":"center";var a,l;if(e.representation.type===qe.Image)return null!==(a=null===(l=e.representation.resolvedImagePosition)||void 0===l?void 0:l.horizontal)&&void 0!==a?a:i;if(e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex){var s;const{labelTextAlign:n}=null!==(s=t.visibleMeasureInfo[e.visibleMeasureInfoIndex])&&void 0!==s?s:{};return rF(n,i,r)}const{textAlign:u}=null!==(o=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==o?o:{};return rF(u,i,r)},Zj=()=>{},e$=({children:e,text:t,reactWindowStyle:n,cell:r,data:o,showTotalCellDivider:i,isLastRow:a,isLastColumn:l,isLeftColumn:s,isCellSelected:u,isAdjustingWidth:c})=>{var d;const p=gT(),{interactions:f,env:{flags:m}}=dT(),{select:h,isLocked:g}=qq(),{layoutService:v,showLastBorder:b}=o,y=g(r)||r.isLockedByDimension,x=!(y||!f.active||!f.select||r.isEmpty||r.isNull||r.isPseudoDimension||r.isTotal||c),S=x?h(r):void 0;return fc.jsx("div",{className:Je,title:f.passive?t:void 0,style:{...n,...nr(a,l,p.grid.border,b),...or({bottomDivider:i&&s,rightDivider:i&&!s,borderColor:p.grid.divider}),...Jn,padding:"0px 4px",cursor:Uq(x),background:Bq({styleService:p,isCellSelected:u,cell:r,isCellLocked:y}),zIndex:s?void 0:v.size.x-r.x,justifyContent:Jj(r,v,s,m),display:"flex",...v.isIndentModeEnabled&&s&&{paddingLeft:Math.max(4,24*(null!==(d=r.indentLevel)&&void 0!==d?d:0))}},"aria-hidden":"true",onClick:S,onKeyUp:Zj,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,children:e})},t$=e=>e.stopPropagation(),n$=({href:e,text:t,interactions:n,color:r})=>lo.createElement(aL,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:t$,style:{pointerEvents:n.active?"auto":"none",color:null!=r?r:void 0,opacity:n.active&&n.passive||r?void 0:.4}},t),r$=({children:e,textStyle:t})=>fc.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box"},children:e}),o$=({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>{const{isActive:o}=qq(),{interactions:i}=dT();let a=e.representation.text;if(e.isEmpty)return null;const l=(({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>({...Zn,...er(r?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:Hq({cell:e,styleService:t,isCellSelected:n}),fontWeight:Wq({cell:e,styleService:t}),fontStyle:Gq({cell:e,styleService:t}),textDecoration:Vq({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r});return e.representation.type!==qe.Image||e.isTotal?(e.representation.type!==qe.Link||o||e.isTotal||(a=fc.jsx(n$,{text:e.representation.text,href:e.representation.url,interactions:i,color:e.expressionColor.color})),fc.jsx(r$,{textStyle:l,children:a})):fc.jsx(nF,{representation:e.representation,isLeftColumn:r,styleService:t,textStyle:l,leafCount:e.leafCount,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand})},i$=e=>{const t=e.isLeftColumn?"flex-start":"center";var n;return e.representation.type!==qe.Image||(e=>"fill"===e.representation.imageSize)(e)?t:null===(n=e.representation.resolvedImagePosition)||void 0===n?void 0:n.vertical},a$=({index:e,style:t,data:n})=>{const r=gT(),{isSelected:o}=qq(),{isAdjustingWidth:i,setIsAdjustingWidth:a}=CF([n]),{dataModel:l,isLeftColumn:s=!1,showLastBorder:u,itemCount:c,isLast:d,totalDividerIndex:p,layoutService:f}=n,m=((e,t)=>{const{isLast:n,list:r,listValues:o}=t;return n?r[e]:o[e]})(e,n),h=s?e===c-1:d,g=s?d:e===c-1,v=sq(m,p,f.isIndentModeEnabled);if(void 0===m){const{background:n}=r.dimensionValues;return fc.jsx(Cq,{style:{...t,background:n},index:e,isLastRow:h,isLastColumn:g,showLastBorder:u,isLeftColumn:s,showTotalCellDivider:v})}const b=o(m);return fc.jsxs(e$,{text:m.representation.text,reactWindowStyle:t,isLeftColumn:s,isLastRow:h,isLastColumn:g,isCellSelected:b,showTotalCellDivider:v,cell:m,data:n,isAdjustingWidth:i,children:[fc.jsxs(wq,{verticalAlign:i$(m),width:Rq(m.representation),right:m.isLeftColumn?void 0:4,children:[fc.jsx(Xq,{isLeftColumn:s,isCellSelected:b,cell:m,dataModel:l}),fc.jsx(o$,{isLeftColumn:s,isCellSelected:b,cell:m,styleService:r})]}),fc.jsx(LF,{cellInfo:{...m,columnWidthLocation:m.isPseudoDimension?Ve.Measures:Ve.Dimension},columnWidth:t.width,dataModel:l,isLastColumn:g,setIsAdjustingWidth:a})]})};var l$=lo.memo(a$,lq);const s$=({list:e,listValues:t,isLastRow:n,getRightGridColumnWidth:r})=>o=>{var i;const a=n?e[o]:t[o];return 0===o&&(null==a?void 0:a.x)>0?(a.leafCount+a.x+a.distanceToNextCell)*r():n||void 0===a?r(null!==(i=null==a?void 0:a.x)&&void 0!==i?i:o):(a.leafCount+a.distanceToNextCell)*r()},u$=(e,t,n,r)=>{const o=Object.values(e);let i,a=o.length;return r&&(a=n,i=t/a),{itemCount:a,estimatedItemSize:i,listValues:o}},c$=(e,t)=>n=>{e.current&&(e.current[t]=n)},d$={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...Qn},p$={overflow:"hidden",willChange:"auto",flexShrink:0},f$=({dataModel:e,leftGridRef:t,width:n,columnWidths:r,height:o,layoutService:i,leftDimensionData:a,showLastBorder:l,visibleLeftDimensionInfo:s,pageInfo:u})=>{const{qSize:c}=i.layout.qHyperCube,{contentCellHeight:d,grid:{divider:p}}=gT();Qj(t,a),Xj(t,n,o,d,i);const f=u.rowsOnCurrentPage*d;return fc.jsx("div",{style:{...d$,borderColor:p},children:a.grid.map(((n,p)=>{const m=p===a.columnCount-1,h=UT(s[p]),{itemCount:g,estimatedItemSize:v,listValues:b}=u$(n,f,u.rowsOnCurrentPage,m),y=i.isIndentModeEnabled?()=>d:((e,t,n,r,o)=>i=>{const a=r?e[i]:t[i];if(0===i&&(null==a?void 0:a.pageY)>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*n;if((null==a?void 0:a.leafCount)>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*n}return n})(n,b,d,m,c.qcy);return fc.jsx(rq,{ref:c$(t,p),style:{...p$,flexGrow:m?1:0},height:o,width:r[p],itemCount:g,itemSize:y,layout:"vertical",itemData:{layoutService:i,dataModel:e,list:n,isLeftColumn:!0,isLast:m,itemCount:g,showLastBorder:l,listValues:b,totalDividerIndex:a.totalDividerIndex},itemKey:hF,estimatedItemSize:v,children:l$},h)}))})};var m$=ao.memo(f$);const h$={overflow:"hidden",willChange:"auto"},g$={...Qn,borderWidth:"0px 0px 0px 1px"},v$=({dataModel:e,topGridRef:t,rowHightCallback:n,width:r,height:o,layoutService:i,topDimensionData:a,showLastBorder:l,getRightGridColumnWidth:s,headersData:u})=>{const{grid:{divider:c},headerCellHeight:d}=gT(),p={...g$,borderColor:c,height:o};Qj(t,a),Xj(t,r,o,d,i);const f=i.size.x*s();return 0===a.rowCount?fc.jsx("div",{style:{width:r,height:o,...g$}}):fc.jsx("div",{style:p,children:a.grid.map(((o,c)=>{const d=c===a.rowCount-1,{itemCount:p,estimatedItemSize:m,listValues:h}=u$(o,f,i.size.x,d),g=(({layoutService:e,headersData:t,topRowIndex:n})=>{var r;const o=t.data[n],i=t.size.x-1,a=e.isIndentModeEnabled&&t.size.x>1&&n+1===t.size.y?null===(r=o[0][i])||void 0===r?void 0:r.dimensionInfoIndex:null==o?void 0:o[i].dimensionInfoIndex;return void 0!==a?e.getDimensionInfo(a):void 0})({layoutService:i,headersData:u,topRowIndex:c}),v=g?UT(g):`empty ${c}`;return fc.jsx(rq,{ref:c$(t,c),style:h$,height:n(),width:r,itemCount:p,itemSize:s$({list:o,listValues:h,isLastRow:d,getRightGridColumnWidth:s}),layout:"horizontal",itemData:{layoutService:i,dataModel:e,list:o,isLast:d,itemCount:p,showLastBorder:l,listValues:h,totalDividerIndex:a.totalDividerIndex},itemKey:hF,estimatedItemSize:m,children:l$},v)}))})};var b$=ao.memo(v$);const y$=({model:e,rect:t,viewService:n,layoutService:r,qPivotDataPages:o,pageInfo:i,translator:a})=>{const{headerCellHeight:l,contentCellHeight:s}=gT(),u=((e,t,n)=>ao.useMemo((()=>{let{height:r}=e;return t.hasLimitedData&&(r-=22),n&&(r-=41),{...e,height:r}}),[e,t,n]))(t,r,i.shouldShowPagination),{visibleLeftDimensionInfo:c,visibleTopDimensionInfo:d}=((e,t)=>{const{qHyperCube:n}=e.layout,{qNoOfLeftDims:r,qEffectiveInterColumnSortOrder:o,qDimensionInfo:i}=n;return ao.useMemo((()=>{var e,n,a,l;const s=bN(null!==(e=null===(n=t[0])||void 0===n?void 0:n.qLeft)&&void 0!==e?e:[]),u=bN(null!==(a=null===(l=t[0])||void 0===l?void 0:l.qTop)&&void 0!==a?a:[]);return{visibleLeftDimensionInfo:s.map(vN(i,o,0)),visibleTopDimensionInfo:u.map(vN(i,o,r))}}),[i,o,r,t])})(r,o),p=(e=>{const t=ao.useCallback((async(t,n)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:r,dimensionInfoIndex:o,sortDirection:i}=t,a=[];if(n===i)return!1;a.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!r).toString()});try{return await e.applyPatches(a,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}),[e]);return t})(e),{headersData:f,measureData:m,topDimensionData:h,leftDimensionData:g,attrExprInfoIndexes:v,nextPageHandler:b}=dN(o,r,i,c,d),y=hN({model:e,nextPageHandler:b,pageInfo:i,layoutService:r}),{onHorizontalScrollHandler:x,onVerticalScrollHandler:S,verticalScrollableContainerRef:E,leftGridHorizontalScrollableContainerRef:C,dataGridHorizontalScrollableContainerRef:w,dataGridRef:R,leftGridRef:L,topGridRef:k,verticalScrollbarWidth:I,horizontalScrollbarHeight:M,horizontalScrollbarHeightSetter:_,verticalScrollDirection:P,horizontalScrollDirection:A}=(({layoutService:e,viewService:t,pageInfo:n,tableRect:r,mockedRefs:o})=>{var i,a,l,s,u,c;const{theme:d,downloadService:p}=dT(),f=ao.useRef(null!==(i=null==o?void 0:o.verticalScrollableContainerRef)&&void 0!==i?i:null),m=ao.useRef(null!==(a=null==o?void 0:o.leftGridHorizontalScrollableContainerRef)&&void 0!==a?a:null),h=ao.useRef(null!==(l=null==o?void 0:o.dataGridHorizontalScrollableContainerRef)&&void 0!==l?l:null),g=ao.useRef(null!==(s=null==o?void 0:o.topGridRef)&&void 0!==s?s:[]),v=ao.useRef(null!==(u=null==o?void 0:o.leftGridRef)&&void 0!==u?u:[]),b=ao.useRef(null!==(c=null==o?void 0:o.dataGridRef)&&void 0!==c?c:null),y=ao.useRef(0),x=ao.useRef(0),S=ao.useRef(Ke.None),E=ao.useRef(Ke.None),[C,w]=ao.useState(0),[R,L]=ao.useState(0),k=e=>{E.current=gN(e.currentTarget.scrollLeft,y.current),y.current=e.currentTarget.scrollLeft,S.current=gN(e.currentTarget.scrollTop,x.current),x.current=e.currentTarget.scrollTop};ao.useLayoutEffect((()=>{e.triggerdByExpandOrCollapse||(m.current&&(m.current.scrollLeft=0),h.current&&(h.current.scrollLeft=0),f.current&&(f.current.scrollTop=0))}),[e]),ao.useLayoutEffect((()=>{if(e.triggerdByExpandOrCollapse){var t,n,r,o,i,a;const e=null!==(t=null===(n=h.current)||void 0===n?void 0:n.scrollLeft)&&void 0!==t?t:0,l=null!==(r=null===(o=f.current)||void 0===o?void 0:o.scrollTop)&&void 0!==r?r:0;null===(i=v.current)||void 0===i||i.forEach((e=>null==e?void 0:e.scrollTo(l))),null===(a=g.current)||void 0===a||a.forEach((t=>null==t?void 0:t.scrollTo(e)))}}),[e]),ao.useLayoutEffect((()=>{m.current&&(m.current.scrollLeft=0),h.current&&(h.current.scrollLeft=0),f.current&&(f.current.scrollTop=0)}),[n.page]);const I=ao.useCallback((e=>{if(e)return void L(0);let t=0;if(m.current){const e=m.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}if(h.current){const e=h.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}L(t)}),[L]);return ao.useLayoutEffect((()=>{if(f.current){const e=f.current,t=e.offsetWidth-e.clientWidth;w(t)}I()}),[I,e,t,r.width,r.height,d,p]),ao.useLayoutEffect((()=>{(p.isDownloadedAsPDForImage||e.isSnapshot)&&f.current&&h.current&&m.current&&(f.current.scrollTop=t.scrollTop,h.current.scrollLeft=t.scrollLeft,m.current.scrollLeft=t.leftGridScrollLeft)}),[t,f,h,m,p,e]),{onHorizontalScrollHandler:e=>{var n,r;e.target instanceof HTMLDivElement&&(e.target.dataset.key===`scrollable-container--${Ye.LEFT_GRID}`&&(t.leftGridScrollLeft=e.currentTarget.scrollLeft),e.target.dataset.key===`scrollable-container--${Ye.DATA_GRID}`&&(k(e),null===(n=g.current)||void 0===n||n.forEach((t=>null==t?void 0:t.scrollTo(e.currentTarget.scrollLeft))),null===(r=b.current)||void 0===r||r.scrollTo({scrollLeft:e.currentTarget.scrollLeft}),t.scrollLeft=e.currentTarget.scrollLeft))},onVerticalScrollHandler:e=>{var n,r;e.target instanceof HTMLDivElement&&(k(e),null===(n=v.current)||void 0===n||n.filter(Boolean).forEach((t=>t.scrollTo(e.currentTarget.scrollTop))),null===(r=b.current)||void 0===r||r.scrollTo({scrollTop:e.currentTarget.scrollTop}),t.scrollTop=e.currentTarget.scrollTop)},verticalScrollableContainerRef:f,leftGridHorizontalScrollableContainerRef:m,dataGridHorizontalScrollableContainerRef:h,dataGridRef:b,leftGridRef:v,topGridRef:g,verticalScrollbarWidth:C,horizontalScrollbarHeight:R,horizontalScrollbarHeightSetter:I,verticalScrollDirection:S,horizontalScrollDirection:E}})({layoutService:r,viewService:n,pageInfo:i,tableRect:u}),{containerHeight:D,headerGridHeight:T,topGridHeight:O,leftGridHeight:N,dataGridHeight:q,allRowsVisible:F}=function({pageInfo:e,headersData:t,topDimensionData:n,tableRect:r,horizontalScrollbarHeight:o}){const{headerCellHeight:i,contentCellHeight:a}=gT(),l=e.rowsOnCurrentPage*a,s=i*t.size.y,u=l+s,c=i*Math.max(t.size.y,n.rowCount,1);return{containerHeight:u,headerGridHeight:s,topGridHeight:c,leftGridHeight:Math.min(r.height-s-Un,l),dataGridHeight:Math.min(r.height-c-Un,l),allRowsVisible:c+Un+l+o<=r.height}}({pageInfo:i,headersData:f,topDimensionData:h,tableRect:u,horizontalScrollbarHeight:M}),{leftGridWidth:z,leftGridColumnWidths:j,rightGridWidth:$,totalWidth:B,showLastRightBorder:H,getRightGridColumnWidth:W,getHeaderCellsIconsVisibilityStatus:G,overrideLeftGridWidth:V}=function({layoutService:e,tableWidth:t,headersData:n,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,horizontalScrollbarHeightSetter:i,translator:a}){const l=gT(),{measureText:s}=eM(l.header),u=FT({layoutService:e,tableWidth:t,headersData:n,translator:a}),c=zT({layoutService:e,tableWidth:t,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,leftGridWidth:u.leftGridWidth}),d=u.leftGridWidth+c.rightGridFullWidth+Un,p=d<t,f=ao.useCallback(((t,r,o="")=>{let i=t;e.isIndentModeEnabled&&(i=1,1===n.size.x&&(i=0));const a=u.leftGridColumnWidths[i];let l=!1,c=!1,d=s(o)+ST;return r&&d+xT<=a&&(c=!0,d+=xT),d+yT<=a&&(l=!0),{shouldShowMenuIcon:l,shouldShowLockIcon:c}}),[u.leftGridColumnWidths,s,e.isIndentModeEnabled,n.size.x]);return ao.useEffect((()=>{const e=u.leftGridWidth===u.leftGridFullWidth,t=c.rightGridWidth===c.rightGridFullWidth;i(e&&t)}),[i,u.leftGridWidth,u.leftGridFullWidth,c.rightGridWidth,c.rightGridFullWidth]),{...u,...c,totalWidth:d,showLastRightBorder:p,getHeaderCellsIconsVisibilityStatus:f}}({layoutService:r,tableWidth:u.width,headersData:f,visibleTopDimensionInfo:d,verticalScrollbarWidth:I,horizontalScrollbarHeightSetter:_,translator:a}),{rootWrapper:U,leftWrapper:Y,rightWrapper:K}=(({tableRect:e,containerHeight:t,headerGridHeight:n,leftGridHeight:r,topGridHeight:o,dataGridHeight:i,allRowsVisible:a,totalWidth:l,leftGridWidth:s,rightGridWidth:u,verticalScrollbarWidth:c,horizontalScrollbarHeight:d})=>{const p=o+i+Un,f=a?0:Math.max(0,e.height-p),m=c*(a?0:1),h=d*(a?0:1),g=a?p+d:e.height,v=e.height-h,b=l-s-m,y=e.width-s-m;return{rootWrapper:{scrollable:e,fullSize:{width:l-m,height:t+h},sticky:{width:e.width-m,height:e.height}},leftWrapper:{containers:{scrollable:{width:s,height:g},fullSize:{width:s,height:t},sticky:{width:s,height:v}},headerGrid:{width:-1,height:n},leftGrid:{width:s,height:r-h+f}},rightWrapper:{containers:{scrollable:{width:u+Un-m,height:g},fullSize:{width:b,height:t},sticky:{width:b<y?b:y,height:v}},topGrid:{width:u-m,height:o},dataGrid:{width:u-m,height:i-h+f}}}})({tableRect:u,containerHeight:D,headerGridHeight:T,leftGridHeight:N,topGridHeight:O,dataGridHeight:q,allRowsVisible:F,totalWidth:B,leftGridWidth:z,rightGridWidth:$,verticalScrollbarWidth:I,horizontalScrollbarHeight:M}),X=ao.useCallback((()=>l),[l]),Q=ao.useCallback((()=>s),[s]);return(()=>{const{downloadService:e}=dT();ao.useEffect((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))})(),fc.jsx(EN,{ref:E,...U.scrollable,onScroll:S,showVerticalScrollbar:!0,showHorizontalScrollbar:!1,origin:Ye.CONTAINER_GRID,children:fc.jsx(yN,{...U.fullSize,children:fc.jsxs(CN,{...U.sticky,style:{display:"grid",gridTemplateColumns:z?`${Y.containers.scrollable.width}px ${K.containers.scrollable.width}px`:`${K.containers.scrollable.width}px`},children:[Boolean(z)&&fc.jsx(EN,{ref:C,...Y.containers.scrollable,onScroll:x,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Ye.LEFT_GRID,children:fc.jsx(yN,{isLeftGrid:!0,...Y.containers.fullSize,children:fc.jsxs(CN,{isLeftGrid:!0,...Y.containers.sticky,children:[fc.jsx(Kj,{dataModel:y,tableWidth:u.width,leftGridWidth:z,columnWidths:j,getHeaderCellsIconsVisibilityStatus:G,rowHight:l,height:Y.headerGrid.height,headersData:f,translator:a,changeSortOrder:p,overrideLeftGridWidth:V,layoutService:r}),fc.jsx(m$,{dataModel:y,leftGridRef:L,...Y.leftGrid,columnWidths:j,layoutService:r,leftDimensionData:g,showLastBorder:{right:!1,bottom:F},visibleLeftDimensionInfo:c,pageInfo:i})]})})}),fc.jsx(EN,{ref:w,...K.containers.scrollable,onScroll:x,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Ye.DATA_GRID,children:fc.jsx(yN,{...K.containers.fullSize,children:fc.jsxs(CN,{...K.containers.sticky,children:[fc.jsx(b$,{dataModel:y,topGridRef:k,rowHightCallback:X,...K.topGrid,layoutService:r,topDimensionData:h,showLastBorder:{right:H,bottom:!1},getRightGridColumnWidth:W,headersData:f}),fc.jsx(yF,{dataModel:y,dataGridRef:R,rowHightCallback:Q,...K.dataGrid,viewService:n,layoutService:r,measureData:m,leftDimensionData:g,topDimensionData:h,visibleTopDimensionInfo:d,visibleLeftDimensionInfo:c,attrExprInfoIndexes:v.measures,showLastBorder:{right:H,bottom:F},getRightGridColumnWidth:W,pageInfo:i,verticalScrollDirection:P,horizontalScrollDirection:A})]})})})]})})})},x$=e=>{const{layoutService:t,translator:n,pageInfo:r,updatePageInfo:o,rect:i}=e,{keyboard:a,theme:l,interactions:s}=dT(),{layout:u,hasData:c}=t;return fc.jsxs(fc.Fragment,{children:[c&&fc.jsx(y$,{...e}),fc.jsx(fT,{translator:n,layoutService:t}),fc.jsx(sT,{paginationNeeded:r.shouldShowPagination,handleChangePage:e=>o({page:e}),pageInfo:r,totalRowCount:r.totalRowCount,totalColumnCount:0,totalPages:r.totalPages,keyboard:a,translator:n,theme:l,interactions:s,rect:i,layout:u})]})},S$={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",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_25:"rgba(0, 0, 0, 0.25)",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_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",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)"},E$=12,C$=14,w$=16,R$=24,L$=3,k$=300,I$=400,M$=600,_$=700,P$={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};xr(S$.GREYSCALE_0,.05),xr(S$.GREEN_PALE,.5),xr(S$.BLUE_PALE,.5),xr(S$.GREEN_PALE,.5),xr(S$.BLUE_PALE,.5),xr(S$.GREEN_PALE,.5),xr(S$.BLUE_PALE,.5);var A$;function D$(){return D$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},D$.apply(null,arguments)}xr(S$.GREEN_PALE,.5),xr(S$.BLUE_PALE,.5),xr(S$.GREEN_PALE,.5),xr(S$.BLUE_PALE,.5);var T$,O$=function(e){return ao.createElement("svg",D$({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),A$||(A$=ao.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function N$(){return N$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N$.apply(null,arguments)}var q$=function(e){return ao.createElement("svg",N$({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),T$||(T$=ao.createElement("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.345z"})))};function F$({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return lo.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var z$=(e={})=>lo.createElement(F$,{...e},lo.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},lo.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),lo.createElement("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"}))),j$=(e={})=>lo.createElement(F$,{...e},lo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},lo.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},lo.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),lo.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),$$=(e={})=>lo.createElement(F$,{fontSize:"medium",...e},lo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},lo.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},lo.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),B$=(e={})=>lo.createElement(F$,{fontSize:"medium",...e},lo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},lo.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),lo.createElement("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"}))),H$=({className:e})=>lo.createElement(F$,{fontSize:"small",className:e},lo.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},lo.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},lo.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},lo.createElement("g",{transform:"translate(4.324187, 1.300372)"},lo.createElement("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"}),lo.createElement("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"})))))),W$=(e={})=>lo.createElement(F$,{...e},lo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},lo.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},lo.createElement("rect",{stroke:S$.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const G$={MuiAccordion:{styleOverrides:{root:{backgroundColor:S$.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:S$.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:lo.createElement(O$,{"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 ${S$.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:S$.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${S$.MISC_FOCUS_BORDER}`,borderRadius:L$,backgroundColor:S$.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 ${S$.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:S$.WHITE,color:S$.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:L$},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${S$.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:S$.GREYSCALE_0_15,backgroundColor:S$.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:S$.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${S$.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:S$.GREEN_PALE},"&:active":{backgroundColor:S$.GREEN_DARK},"&.Mui-focusVisible":{borderColor:S$.GREEN_PALE,boxShadow:`0 0 0 3px ${L_(S$.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:S$.BLUE_PALE},"&:active":{backgroundColor:S$.BLUE_DARK},"&.Mui-focusVisible":{borderColor:S$.BLUE_PALE,boxShadow:`0 0 0 3px ${L_(S$.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:L$,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:S$.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${S$.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:S$.GREYSCALE_0_15,backgroundColor:S$.GREYSCALE_100_60,"&:active":{backgroundColor:S$.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:S$.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${S$.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:S$.PURPLE,"&.Mui-focusVisible":{borderColor:S$.PURPLE,boxShadow:`0 0 0 3px ${L_(S$.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:S$.GREEN,"&.Mui-focusVisible":{borderColor:S$.GREEN,boxShadow:`0 0 0 3px ${L_(S$.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:S$.BLUE,"&.Mui-focusVisible":{borderColor:S$.BLUE,boxShadow:`0 0 0 3px ${L_(S$.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:S$.ORANGE,"&.Mui-focusVisible":{borderColor:S$.ORANGE,boxShadow:`0 0 0 3px ${L_(S$.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:S$.RED,"&.Mui-focusVisible":{borderColor:S$.RED,boxShadow:`0 0 0 3px ${L_(S$.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:S$.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:S$.PURPLE_PALE},"&:active":{backgroundColor:S$.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:S$.PURPLE_PALE,boxShadow:`0 0 0 3px ${L_(S$.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:S$.GREEN_PALE},"&:active":{backgroundColor:S$.GREEN_DARK},"&.Mui-focusVisible":{borderColor:S$.GREEN_PALE,boxShadow:`0 0 0 3px ${L_(S$.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:S$.BLUE_PALE},"&:active":{backgroundColor:S$.BLUE_DARK},"&.Mui-focusVisible":{borderColor:S$.BLUE_PALE,boxShadow:`0 0 0 3px ${L_(S$.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:S$.ORANGE_PALE},"&:active":{backgroundColor:S$.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:S$.ORANGE_PALE,boxShadow:`0 0 0 3px ${L_(S$.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:S$.RED_PALE},"&:active":{backgroundColor:S$.RED_DARK},"&.Mui-focusVisible":{borderColor:S$.RED_PALE,boxShadow:`0 0 0 3px ${L_(S$.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:S$.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:S$.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:L$,boxShadow:`inset 0 0 0 2px ${S$.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:lo.createElement(q$,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:E$,borderRadius:L$,color:S$.TEXT_PRIMARY,backgroundColor:S$.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:S$.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${S$.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:S$.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:S$.GREYSCALE_0_05,color:S$.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:S$.GREEN,borderColor:S$.GREEN},"&.MuiChip-outlinedInfo":{color:S$.BLUE,borderColor:S$.BLUE},"&.MuiChip-outlinedWarning":{color:S$.ORANGE,borderColor:S$.ORANGE},"&.MuiChip-outlinedError":{color:S$.RED,borderColor:S$.RED}},outlined:{border:`solid 1px ${S$.GREYSCALE_0_15}`,backgroundColor:S$.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:L$,boxShadow:"none",backgroundColor:S$.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:S$.GREEN,borderColor:S$.GREEN},outlinedSecondary:{color:S$.BLUE,borderColor:S$.BLUE},label:{fontFamily:P$.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:lo.createElement(q$,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:lo.createElement(O$,{"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:L$},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:L$,fontSize:C$,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:S$.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${S$.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:S$.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:S$.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:S$.GREYSCALE_0_05}}},popupIndicator:{borderRadius:L$,border:`solid 1px ${S$.GREYSCALE_0_15}`,color:S$.GREYSCALE_0_60,marginRight:0,width:R$,height:R$},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${S$.GREYSCALE_0_15}`},clearIndicator:{borderRadius:L$,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:S$.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:C$}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:E$,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:S$.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:S$.GREYSCALE_25,fontSize:E$,fontFamily:P$.FONT_FAMILY,fontWeight:M$,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:S$.TEXT_PRIMARY},"&.Mui-error":{color:S$.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:S$.TEXT_SECONDARY,content:"'(optional)'",fontWeight:I$,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:S$.TEXT_SECONDARY,content:"'(required)'",fontWeight:I$,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:C$,lineHeight:"16px",backgroundColor:S$.WHITE,borderRadius:L$,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${S$.GREYSCALE_0_05}`,borderColor:S$.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${S$.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${S$.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${S$.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${S$.RED}`,boxShadow:`0px 0px 0px 1px ${S$.RED}, inset 0 2px 0 0 ${S$.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${S$.GREYSCALE_0_10}`,borderColor:S$.GREYSCALE_0_10,backgroundColor:S$.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:S$.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:S$.GREYSCALE_0_15,borderRadius:L$,boxShadow:`inset 0 2px 0 0 ${S$.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>lo.createElement(O$,{...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:S$.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:S$.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:S$.GREYSCALE_0_03},"&:active":{backgroundColor:S$.GREYSCALE_0_10},"&:focus":{backgroundColor:S$.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${S$.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${S$.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:S$.GREYSCALE_0_30,"&:hover":{backgroundColor:S$.GREYSCALE_0_0,borderColor:S$.GREYSCALE_0_15},"& ~svg":{color:S$.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${S$.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:L$}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:S$.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${S$.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:S$.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:C$,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:E$,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:E$,fontWeight:M$,color:S$.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:M$}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${S$.GREYSCALE_0_15}, 0px 0px 0px 1px ${S$.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:lo.createElement($$,null),checkedIcon:lo.createElement(B$,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:S$.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${S$.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:S$.GREEN_PALE,boxShadow:`0 0 0 3px ${L_(S$.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:S$.BLUE_PALE,boxShadow:`0 0 0 3px ${L_(S$.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:S$.GREYSCALE_0_20}},"&.Mui-disabled":{fill:S$.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:lo.createElement(W$,null),checkedIcon:lo.createElement(z$,null),indeterminateIcon:lo.createElement(j$,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:L$,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:S$.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:S$.GREYSCALE_0_55,color:S$.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:S$.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:S$.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:S$.GREYSCALE_0_55,"&:hover":{color:S$.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:S$.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:S$.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:C$,color:S$.TEXT_PRIMARY,lineHeight:"16px",fontWeight:M$},secondary:{fontSize:E$,color:S$.GREYSCALE_45,fontWeight:I$,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:C$,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:S$.GREYSCALE_0_03},"&:active":{backgroundColor:S$.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:C$,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:S$.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:E$,borderBottom:`solid 1px ${S$.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:C$,color:S$.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:S$.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:S$.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:S$.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:S$.RED}}},"&.Mui-focusVisible":{backgroundColor:S$.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:S$.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:S$.GREEN,height:"24px","&.Mui-disabled":{color:S$.GREYSCALE_0_15}},rail:{backgroundColor:S$.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${S$.GREYSCALE_0_05}`,borderRadius:L$,boxShadow:`inset 0px 0px 0px 1px ${S$.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${S$.GREYSCALE_0_05}`,borderRadius:L$},thumb:{height:"16px",width:"16px",borderRadius:L$,backgroundColor:S$.WHITE,boxShadow:`0px 1px 2px 0px ${S$.GREYSCALE_0_15}, 0px 0px 0px 1px ${S$.GREYSCALE_0_05}`,"&:hover":{borderRadius:L$,boxShadow:`0 2px 4px 0 ${S$.GREYSCALE_0_30}, 0 0 0 1px ${S$.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${S$.GREYSCALE_0_15}, 0 0 0 1px ${S$.GREYSCALE_0_06}, 0 0 0 2px ${S$.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${S$.GREYSCALE_0_15}, 0 0 0 1px ${S$.GREYSCALE_0_06}, 0 0 0 2px ${S$.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:S$.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:S$.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:S$.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:S$.GREYSCALE_0_15},markLabel:{color:S$.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:S$.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:S$.WHITE,color:S$.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:S$.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:S$.GREEN_PALE,boxShadow:`0 0 0 3px ${L_(S$.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:S$.BLUE_PALE,boxShadow:`0 0 0 3px ${L_(S$.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:S$.GREYSCALE_0_15,borderRadius:L$},thumb:{height:"16px",width:"16px",borderRadius:L$,backgroundColor:S$.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:C$,fontWeight:M$,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${S$.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${S$.MISC_FOCUS_BORDER}`,backgroundColor:S$.GREYSCALE_0_03,borderRadius:L$},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:S$.GREYSCALE_25,"&.Mui-selected":{color:S$.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:C$,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:L$,"&:hover":{backgroundColor:`${S$.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 ${S$.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${S$.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:L$,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:S$.GREYSCALE_0_05},"&:hover":{backgroundColor:`${S$.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${S$.GREYSCALE_85}`,borderRight:`1px solid ${S$.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:M$,backgroundColor:S$.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:S$.GREYSCALE_98,borderBottom:`1px solid ${S$.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${S$.GREYSCALE_85}`,borderTop:`1px solid ${S$.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:S$.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:S$.GREYSCALE_0_05,"&:hover":{backgroundColor:S$.GREYSCALE_0_03}},"&&:hover":{backgroundColor:S$.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>lo.createElement(H$,{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 ${S$.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:C$,borderRadius:L$,padding:"7px 16px",border:`1px solid ${S$.GREYSCALE_0_15}`,backgroundColor:S$.GREYSCALE_100_60,color:S$.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:S$.GREYSCALE_0_10,border:`1px solid ${S$.GREYSCALE_0_30}`},"&:hover":{backgroundColor:S$.GREYSCALE_0_03,border:`1px solid ${S$.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:S$.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${S$.MISC_FOCUS_BORDER}`,border:`1px solid ${S$.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:S$.GREYSCALE_25,backgroundColor:S$.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:S$.GREYSCALE_0_10,border:`1px solid ${S$.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:E$,height:24,width:24,padding:7},sizeLarge:{fontSize:w$,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:C$,borderRadius:L$}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:S$.GREYSCALE_20},tooltip:{backgroundColor:S$.GREYSCALE_20,fontSize:E$,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var V$=e=>G$;const U$={mode:"light",primary:{ultraLight:S$.GREEN_ULTRA_LIGHT,light:S$.GREEN_PALE,main:S$.GREEN,dark:S$.GREEN_DARK,extraDark:S$.GREEN_EXTRA_DARK,contrastText:S$.WHITE},secondary:{ultraLight:S$.BLUE_ULTRA_LIGHT,light:S$.BLUE_PALE,main:S$.BLUE,dark:S$.BLUE_DARK,extraDark:S$.BLUE_EXTRA_DARK,contrastText:S$.WHITE},error:{ultraLight:S$.RED_ULTRA_LIGHT,light:S$.RED_PALE,main:S$.RED,dark:S$.RED_DARK,extraDark:S$.RED_EXTRA_DARK,contrastText:S$.WHITE},warning:{ultraLight:S$.ORANGE_ULTRA_LIGHT,light:S$.ORANGE_PALE,main:S$.ORANGE,dark:S$.ORANGE_DARK,extraDark:S$.ORANGE_EXTRA_DARK,contrastText:S$.WHITE},success:{ultraLight:S$.GREEN_ULTRA_LIGHT,light:S$.GREEN_PALE,main:S$.GREEN,dark:S$.GREEN_DARK,extraDark:S$.GREEN_EXTRA_DARK,contrastText:S$.WHITE},info:{ultraLight:S$.BLUE_ULTRA_LIGHT,light:S$.BLUE_PALE,main:S$.BLUE,dark:S$.BLUE_DARK,extraDark:S$.BLUE_EXTRA_DARK,contrastText:S$.WHITE},text:{primary:S$.TEXT_PRIMARY,secondary:S$.TEXT_SECONDARY,disabled:S$.GREYSCALE_0_30},action:{hover:S$.GREYSCALE_0_03,hoverOpacity:.03,selected:S$.GREYSCALE_0_05,selectedOpacity:.05,focus:S$.MISC_FOCUS_BORDER},amethyst:{ultraLight:S$.WHITE,main:S$.PURPLE,light:S$.PURPLE_PALE,dark:S$.PURPLE_DARK,extraDark:S$.GREYSCALE_0_0,contrastText:S$.WHITE},background:{paper:S$.WHITE,default:S$.GREYSCALE_95},divider:S$.GREYSCALE_0_15},Y$=e=>U$,K$=(e="light")=>({components:V$(),palette:Y$(),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:C$,fontWeightLight:k$,fontWeightRegular:I$,fontWeightMedium:M$,fontWeightBold:_$,htmlFontSize:C$,fontFamily:P$.FONT_FAMILY,button:{fontWeight:M$,fontSize:C$,textTransform:"none"},body1:{fontSize:w$,lineHeight:"24px"},body2:{fontSize:C$,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:R$,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:w$,fontWeight:M$,lineHeight:"16px"},h6:{fontSize:C$,fontWeight:M$,lineHeight:"16px"},caption:{color:S$.TEXT_SECONDARY},subtitle1:{fontSize:C$,color:S$.TEXT_SECONDARY},subtitle2:{fontSize:E$,color:S$.TEXT_SECONDARY}},shape:{borderRadius:L$}});const X$=(e,t)=>{const{selections:n,styleService:r,app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,env:c,downloadService:d}=t,p=function(e){var t;const n=K$();return null!=n&&null!==(t=n.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(n.components.MuiTable.styleOverrides.root={}),NP({...n,direction:e})}("ltr");e.render(fc.jsx(lo.StrictMode,{children:fc.jsx(vA,{theme:p,children:fc.jsx(pT,{app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,env:c,downloadService:d,children:fc.jsx(Fq,{selections:n,updatePageInfo:t.updatePageInfo,children:fc.jsx(vT,{styleService:r,children:fc.jsx(x$,{...t})})})})})}))};var Q$,J$,Z$,eB;!function(e){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"}(Q$||(Q$={})),function(e){e.Dimension="object.pivotTableV2.dimension",e.Measure="object.pivotTableV2.measure",e.Total="object.pivotTableV2.total",e.Null="object.pivotTableV2.null",e.Grid="object.pivotTableV2"}(J$||(J$={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(Z$||(Z$={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.Color="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor"}(eB||(eB={}));const tB=e=>e?`${parseInt(e,10)}px`:void 0,nB=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?Yn.Transparent:n}},rB=(e,t)=>+(parseInt(e,10)*Vn*t+8).toFixed(2),oB=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?Wn:"normal",iB=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",aB=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none";function lB(t,n){return e.useMemo((()=>t),n)}const sB={},uB=t=>{const n=e.useMemo((()=>({current:sB})),[]);return n.current=n.current===sB?t:n.current,n},cB=({fontStyle:e,fontWeight:t,fontSize:n,fontFamily:r})=>t?`${e} ${t} ${n} ${r}`:`${e} ${n} ${r}`,dB=(t,n,r)=>{var o,i;const a=null!==(o=null==r?void 0:r.qHyperCubeDef.qShowTotalsAbove)&&void 0!==o&&o,l=null!==(i=null==r?void 0:r.qHyperCubeDef.qAlwaysFullyExpanded)&&void 0!==i&&i,s=void 0!==(null==r?void 0:r.qHyperCubeDef.qSortbyYValue)&&1===Math.abs(null==r?void 0:r.qHyperCubeDef.qSortbyYValue),u=e.useMemo((()=>{var e;return null==r||null===(e=r.qHyperCubeDef.qDimensions)||void 0===e?void 0:e.map((e=>e.qDef.qSortCriterias))}),[r]);return e.useMemo((()=>(({layout:e,flags:t,qShowTotalsAbove:n,qAlwaysFullyExpanded:r,isSortedByFirstMeasure:o,qSortCriterias:i})=>{var a,l,s,u;const{qHyperCube:c,nullValueRepresentation:d,snapshotData:p}=e,{qNoOfLeftDims:f,qEffectiveInterColumnSortOrder:m,qMeasureInfo:h,qDimensionInfo:g}=c,v=!!p,b=null!==(a=null==p||null===(l=p.content)||void 0===l?void 0:l.rowsPerPage)&&void 0!==a?a:15e3,y={x:Math.min(e.qHyperCube.qSize.qcx,Gn),y:Math.min(e.qHyperCube.qSize.qcy,b)},x=m.slice(0,f),S=e=>x.some((t=>t===e)),E=S(RT),C=new Map(m.map((e=>{var t;return[null!==(t=g[e])&&void 0!==t?t:RT,e]}))),w=h.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}));return{layout:e,getNullValueText:()=>{var e;return null!==(e=null==d?void 0:d.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(E)return 0;const n=e%w.length;return t?n:h.findIndex((e=>e===w[n]))},getDimensionInfo:e=>e===RT?RT:g[e],getDimensionInfoIndex:e=>{var t;return null!==(t=C.get(e))&&void 0!==t?t:-1},getSortCriteriaForDimension:e=>null==i?void 0:i[e],size:y,isSnapshot:v,hasLimitedData:!v&&y.x<e.qHyperCube.qSize.qcx,hasData:y.x>0&&y.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,showTotalsAbove:n,hasPseudoDimOnLeft:E,leftDimensionInfoIndexes:x,isLeftDimension:S,isFullyExpanded:r,triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:w,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode)&&t.isEnabled("CLIENT_IM_5975_INDENT_MODE"),indentModeColumnWidth:null!==(s=e.qHyperCube.indentModeColumnWidth)&&void 0!==s?s:{type:rt.Auto,pixels:nt.PixelsDefault,percentage:nt.PercentageDefault},isSortedByFirstMeasure:o,searchSortFromDimension:"inherit"===(null===(u=e.search)||void 0===u?void 0:u.sorting)}})({layout:t,flags:n,qShowTotalsAbove:a,qAlwaysFullyExpanded:l,isSortedByFirstMeasure:s,qSortCriterias:u})),[t,a,l,s,n,u])},pB=({model:e,layoutService:t,viewService:n,pageInfo:r,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=(e=>{const t=uB(e);return t.current=e,t})(fN(o));return XI((async()=>{var t;const{qHyperCube:o}=i,{maxNumberOfVisibleRows:u,maxNumberOfVisibleColumns:c}=s.current;var d,p;if(a)return null!==(d=null===(p=i.snapshotData)||void 0===p||null===(p=p.content)||void 0===p?void 0:p.qPivotDataPages)&&void 0!==d?d:[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,n,r)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=r||t.gridRowStartIndex+t.gridHeight>=n))(l,n,u,c)||((e,t,n,r)=>{var o,i;const{qHyperCube:{qPivotDataPages:a,qSize:l}}=e,{qTop:s,qWidth:u,qHeight:c}=null!==(o=null===(i=a[0])||void 0===i?void 0:i.qArea)&&void 0!==o?o:{qTop:0,qWidth:0,qHeight:0};return s<t.page*t.rowsPerPage||u<Math.min(r,l.qcx)||c<Math.min(n,l.qcy)})(i,r,u,c))){const t=((e,t,n,r,o,i)=>{const a=r.page*r.rowsPerPage,l=Math.min(a+r.rowsPerPage,n.qcy),s=Math.min(Gn,n.qcx);if(n.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,n=t.gridColumnStartIndex+t.gridWidth;e>l&&(c=Math.max(0,l-o)),n>s&&(u=Math.max(0,s-i))}return{qLeft:u,qTop:c,qWidth:Math.min(s-u,i),qHeight:Math.min(l-c,o)}})(l,n,i.qHyperCube.qSize,r,u,c);return t?e.getHyperCubePivotData(wT,mN(t)):[]}return null!==(t=o.qPivotDataPages)&&void 0!==t?t:[]}),[i,a,e,n,r.page,r.rowsPerPage,s,l])},fB=({rowsPerPage:e,totalRowCount:t,page:n})=>Math.min(e,t-n*e),mB=(e,t,n=15e3)=>({rowsPerPage:n,totalPages:Math.max(1,Math.ceil(e/n)),totalRowCount:e,rowsOnCurrentPage:fB({rowsPerPage:n,totalRowCount:e,page:t})}),hB=15,gB=({layoutService:t,viewService:n,rect:r,model:o,pageInfo:i})=>{var a;return e.onTakeSnapshot((async e=>{if(!e.snapshotData||!o||e.snapshotData.content)return e;if(null!=o&&o.getHyperCubePivotData){const{scrollTop:t,scrollLeft:a,leftGridScrollLeft:l}=n,s=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=e,l=t.page*t.rowsPerPage,s=Math.max(r-hB,0),u=Math.max(l+o-hB,l,0);if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=fN(n);return{qLeft:s,qTop:u,qWidth:e+30,qHeight:t+30}}return{qLeft:s,qTop:u,qWidth:i+30,qHeight:a+30}})(n,i,r),u=mN(s),c={qLeft:0,qTop:i.page*i.rowsPerPage,qWidth:1,qHeight:1};e.snapshotData.content={qPivotDataPages:await o.getHyperCubePivotData(wT,[c,...u]),scrollTop:t,scrollLeft:a,leftGridScrollLeft:l,page:i.page,rowsPerPage:i.rowsPerPage},e.snapshotData.object.size.w=r.width,e.snapshotData.object.size.h=r.height}return e})),e.useImperativeHandle((()=>({getViewState:()=>((e,t)=>({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,renderPage:t.page}))(n,i)})),[n]),null!==(a=t.layout.snapshotData)&&void 0!==a&&a.content?{left:r.left,top:r.top,width:t.layout.snapshotData.object.size.w,height:t.layout.snapshotData.object.size.h}:r};var vB={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 bB=()=>{const t=e.useTranslator(),n=t.language();return e.useMemo((()=>function(e){if(e.get&&e.add){const t="SNPivotTable_LimitedData";if(e.get(t)!==t)return;Object.keys(vB).forEach((t=>{e.add(vB[t])}))}}(t)),[t]),{translator:t,language:n}},yB=t=>{const{flags:n}=t,r=e.useElement(),o=(t=>{const n=e.useMemo((()=>tM(t)),[t]);return e.useEffect((()=>()=>n.unmount()),[n]),n})(r),i=e.useStaleLayout(),a=e.useModel(),l=e.useApp(),s=e.useEmbed(),u=e.useKeyboard(),c=e.useInteractionState(),d=(t=>{const{viewState:n}=e.useOptions(),r=uB(new Set),o=void 0!==n&&t.flags.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD"),{promise:i,resolve:a}=e.useMemo((()=>Lq()),[]),l=lB((e=>{r.current.add(e)}),[r]),s=lB(xe((async()=>{await Promise.all(r.current),a()}),1e3),[a,r]);return e.usePromise((async()=>{o&&await i}),[i,o]),e.useMemo((()=>({viewState:n,isDownloadedAsPDForImage:o,notifyIsDoneRendering:s,waitForPromise:l})),[s,o,n,l])})(t),[p,f]=((e,t)=>XI((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return e.getEffectiveProperties()}),[e,t]))(a,i),m=dB(i,n,p),h=e.useSelections(),g=KI(i,r),{translator:v,language:b}=bB(),{pageInfo:y,updatePageInfo:x}=((t,n)=>{const{size:r,layout:{qHyperCube:{qSize:o}}}=t,i=n.isDownloadedAsPDForImage||t.isSnapshot,a=(e=>{var t;return null===(t=e.layout.snapshotData)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.rowsPerPage})(t),[l,s]=e.useState((()=>{const e=((e,t)=>{var n,r,o,i;return t.isDownloadedAsPDForImage?null!==(n=null===(r=t.viewState)||void 0===r?void 0:r.renderPage)&&void 0!==n?n:0:e.isSnapshot&&null!==(o=null===(i=e.layout.snapshotData)||void 0===i||null===(i=i.content)||void 0===i?void 0:i.page)&&void 0!==o?o:0})(t,n);return{page:e,shouldShowPagination:o.qcy>r.y&&!i,...mB(o.qcy,e,a)}}));return e.useEffect((()=>{s((e=>({...e,...mB(t.layout.qHyperCube.qSize.qcy,e.page,a),shouldShowPagination:t.layout.qHyperCube.qSize.qcy>t.size.y&&!i})))}),[t.layout.qHyperCube.qSize.qcy,t.size.y,s,i,a]),e.useEffect((()=>{const{page:e,totalPages:t}=l;if(e+1>t){const e=t-1,n=fB({...l,page:e});s({...l,page:e,rowsOnCurrentPage:n})}}),[l]),{pageInfo:l,updatePageInfo:e=>s({...l,...e,rowsOnCurrentPage:fB({...l,...e})})}})(m,d),S=((t,n,r)=>e.useMemo((()=>((e,t)=>{var n,r,o,i,a,l;if(e.isDownloadedAsPDForImage){var s,u,c;const{viewState:t}=e;return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(s=null==t?void 0:t.scrollTop)&&void 0!==s?s:0,scrollLeft:null!==(u=null==t?void 0:t.scrollLeft)&&void 0!==u?u:0,leftGridScrollLeft:null!==(c=null==t?void 0:t.leftGridScrollLeft)&&void 0!==c?c:0}}return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(n=null==t||null===(r=t.content)||void 0===r?void 0:r.scrollTop)&&void 0!==n?n:0,scrollLeft:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.scrollLeft)&&void 0!==o?o:0,leftGridScrollLeft:null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.leftGridScrollLeft)&&void 0!==a?a:0}})(r,n.snapshotData)),[r,t.page,n.snapshotData]))(y,i,d),E=gB({rect:e.useRect(),layoutService:m,viewService:S,model:a,pageInfo:y}),[C,w]=pB({model:a,layoutService:m,viewService:S,pageInfo:y,rect:E}),R=e.useMemo((()=>((e,t,n)=>{var r,o,i,a,l,s,u,c,d,p,f,m,h,g,v,b,y,x,S,E,C,w,R,L,k,I,M,_,P,A,D,T,O,N,q,F,z,j,$,B,H,W,G,V,U,Y,K;const X=null===(r=t.layout.components)||void 0===r?void 0:r.find((e=>"theme"===e.key)),Q=null==X?void 0:X.header,J=null==X?void 0:X.dimensionValues,Z=null==X?void 0:X.measureValues,ee=null==X?void 0:X.measureLabels,te=null==X?void 0:X.totalValues,ne=null==X?void 0:X.nullValues,re=null==X?void 0:X.grid,oe=(t,n,r)=>e.getStyle(t,n,r),ie=+(null!==(o=null!==(i=null==re?void 0:re[Q$.LineClamp])&&void 0!==i?i:oe(J$.Grid,Z$.Grid,eB.LineClamp))&&void 0!==o?o:1),ae=n.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?+(null!==(a=null!==(l=null==re?void 0:re[Q$.ColumnLineClamp])&&void 0!==l?l:oe(J$.Grid,Z$.Grid,eB.ColumnLineClamp))&&void 0!==a?a:1):1,le=null!==(s=null!==(u=nB(e,null==Q?void 0:Q[Q$.Background]))&&void 0!==u?u:oe(J$.Dimension,Z$.LabelName,eB.BackgroundColor))&&void 0!==s?s:Yn.Transparent,se={header:{fontSize:null!==(c=null!==(d=tB(null==Q?void 0:Q[Q$.FontSize]))&&void 0!==d?d:oe(J$.Dimension,Z$.LabelName,eB.FontSize))&&void 0!==c?c:Bn,fontFamily:null!==(p=null!==(f=null==Q?void 0:Q[Q$.FontFamily])&&void 0!==f?f:oe(J$.Dimension,Z$.LabelName,eB.FontFamily))&&void 0!==p?p:Hn,fontWeight:oB(null==Q?void 0:Q[Q$.FontStyle],Wn),fontStyle:iB(null==Q?void 0:Q[Q$.FontStyle]),textDecoration:aB(null==Q?void 0:Q[Q$.FontStyle]),color:null!==(m=null!==(h=nB(e,null==Q?void 0:Q[Q$.FontColor]))&&void 0!==h?h:oe(J$.Dimension,Z$.LabelName,eB.Color))&&void 0!==m?m:zk.TEXT,background:le,hoverBackground:zI(le,ot),activeBackground:zI(le,it)},dimensionValues:{fontSize:null!==(g=null!==(v=tB(null==J?void 0:J[Q$.FontSize]))&&void 0!==v?v:oe(J$.Dimension,Z$.LabelValue,eB.FontSize))&&void 0!==g?g:Bn,fontFamily:null!==(b=null!==(y=null==J?void 0:J[Q$.FontFamily])&&void 0!==y?y:oe(J$.Dimension,Z$.LabelValue,eB.FontFamily))&&void 0!==b?b:Hn,fontWeight:oB(null==J?void 0:J[Q$.FontStyle],void 0),fontStyle:iB(null==J?void 0:J[Q$.FontStyle]),textDecoration:aB(null==J?void 0:J[Q$.FontStyle]),color:null!==(x=null!==(S=nB(e,null==J?void 0:J[Q$.FontColor]))&&void 0!==S?S:oe(J$.Dimension,Z$.LabelValue,eB.Color))&&void 0!==x?x:zk.TEXT,background:null!==(E=null!==(C=nB(e,null==J?void 0:J[Q$.Background]))&&void 0!==C?C:oe(J$.Dimension,Z$.LabelValue,eB.BackgroundColor))&&void 0!==E?E:Yn.Transparent},measureValues:{fontSize:null!==(w=null!==(R=tB(null==Z?void 0:Z[Q$.FontSize]))&&void 0!==R?R:oe(J$.Measure,Z$.LabelValue,eB.FontSize))&&void 0!==w?w:Bn,fontFamily:null!==(L=null!==(k=null==Z?void 0:Z[Q$.FontFamily])&&void 0!==k?k:oe(J$.Measure,Z$.LabelValue,eB.FontFamily))&&void 0!==L?L:Hn,fontWeight:oB(null==Z?void 0:Z[Q$.FontStyle],"normal"),fontStyle:iB(null==Z?void 0:Z[Q$.FontStyle]),textDecoration:aB(null==Z?void 0:Z[Q$.FontStyle]),color:null!==(I=null!==(M=nB(e,null==Z?void 0:Z[Q$.FontColor]))&&void 0!==M?M:oe(J$.Measure,Z$.LabelValue,eB.Color))&&void 0!==I?I:Yn.FontSecondary,background:null!==(_=null!==(P=nB(e,null==Z?void 0:Z[Q$.Background]))&&void 0!==P?P:oe(J$.Measure,Z$.LabelValue,eB.BackgroundColor))&&void 0!==_?_:Yn.Transparent},measureLabels:{fontWeight:oB(null==ee?void 0:ee[Q$.FontStyle],"normal"),fontStyle:iB(null==ee?void 0:ee[Q$.FontStyle]),textDecoration:aB(null==ee?void 0:ee[Q$.FontStyle]),color:null!==(A=null!==(D=nB(e,null==ee?void 0:ee[Q$.FontColor]))&&void 0!==D?D:oe(J$.Measure,Z$.LabelName,eB.Color))&&void 0!==A?A:Yn.FontSecondary,background:null!==(T=null!==(O=nB(e,null==ee?void 0:ee[Q$.Background]))&&void 0!==O?O:oe(J$.Measure,Z$.LabelName,eB.BackgroundColor))&&void 0!==T?T:Yn.Transparent},totalValues:{fontWeight:oB(null==te?void 0:te[Q$.FontStyle],Wn),fontStyle:iB(null==te?void 0:te[Q$.FontStyle]),textDecoration:aB(null==te?void 0:te[Q$.FontStyle]),color:null!==(N=null!==(q=nB(e,null==te?void 0:te[Q$.FontColor]))&&void 0!==q?q:oe(J$.Total,Z$.LabelValue,eB.Color))&&void 0!==N?N:zk.TEXT,background:null!==(F=null!==(z=nB(e,null==te?void 0:te[Q$.Background]))&&void 0!==z?z:oe(J$.Total,Z$.LabelValue,eB.BackgroundColor))&&void 0!==F?F:Yn.Transparent},nullValues:{fontWeight:oB(null==ne?void 0:ne[Q$.FontStyle],"normal"),fontStyle:iB(null==ne?void 0:ne[Q$.FontStyle]),textDecoration:aB(null==ne?void 0:ne[Q$.FontStyle]),color:null!==(j=null!==($=nB(e,null==ne?void 0:ne[Q$.FontColor]))&&void 0!==$?$:oe(J$.Null,Z$.LabelValue,eB.Color))&&void 0!==j?j:zk.TEXT,background:null!==(B=null!==(H=nB(e,null==ne?void 0:ne[Q$.Background]))&&void 0!==H?H:oe(J$.Null,Z$.LabelValue,eB.BackgroundColor))&&void 0!==B?B:Yn.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(W=null!==(G=nB(e,null==re?void 0:re[Q$.Border]))&&void 0!==G?G:oe(J$.Grid,Z$.Grid,eB.BorderColor))&&void 0!==W?W:Yn.DividerLight,divider:null!==(V=null!==(U=nB(e,null==re?void 0:re[Q$.Divider]))&&void 0!==U?U:oe(J$.Grid,Z$.Divider,eB.BorderColor))&&void 0!==V?V:Yn.DividerDark,background:null!==(Y=null!==(K=nB(e,null==re?void 0:re[Q$.Background]))&&void 0!==K?K:oe(J$.Grid,Z$.Grid,eB.BackgroundColor))&&void 0!==Y?Y:Yn.Transparent}};return se.headerCellHeight=Math.max(rB(se.header.fontSize,ae),rB(se.dimensionValues.fontSize,ae),32),se.contentCellHeight=Math.max(rB(se.measureValues.fontSize,ie),rB(se.dimensionValues.fontSize,ie),24),se.dimensionValueTextHeight=rB(se.dimensionValues.fontSize,1),se})(g,m,n)),[g,m,n]),L=(t=>e.useMemo((()=>[...new Set([cB(t.header),cB(t.dimensionValues),cB({...t.dimensionValues,...t.measureLabels}),cB({...t.dimensionValues,...t.nullValues}),cB({...t.dimensionValues,...t.totalValues}),cB(t.measureValues),cB({...t.measureValues,...t.nullValues}),cB({...t.measureValues,...t.totalValues})])]),[t]))(R),k=(t=>{const[n,r]=e.usePromise((()=>Promise.all(t.map((e=>document.fonts.load(e))))),[t]);return r?(console.warn("Failed to load font:",r),!0):!!n})(L);n.isEnabled("CLIENT_IM6278_PIVOT_COPYCELL")&&sM(),e.useEffect((()=>{!w&&a&&(null==E?void 0:E.width)&&(null==E?void 0:E.height)&&h&&S&&m&&R&&!!C&&!f&&k&&X$(o,{model:a,app:l,rect:E,selections:h,viewService:S,layoutService:m,downloadService:d,qPivotDataPages:C,styleService:R,translator:v,pageInfo:y,updatePageInfo:x,interactions:c,embed:s,keyboard:u,theme:g,env:t})}),[a,l,E,null==E?void 0:E.width,null==E?void 0:E.height,c,h,S,m,d,w,C,R,o,k,v,b,y,x,p,f,s,u,g,t])},xB={version:"3.9.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:[]};return function(e){return{qae:{properties:{initial:{...xB,qHyperCubeDef:{...xB.qHyperCubeDef,qIndentMode:!1}}},data:Ie(e)},ext:fr(e),component(){yB(e)}}}}));