@nebula.js/sn-table 6.22.0 → 6.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-specifications/properties.json +1 -1
- package/core/esm/index.js +11 -11
- package/dist/sn-table.js +14 -14
- package/dist/sn-table.systemjs.js +11 -11
- package/package.json +5 -5
- package/sn-table-ext/dist/sn-table.js +14 -14
- package/sn-table-ext/sn-table.qext +1 -1
package/core/esm/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-table v6.
|
|
2
|
+
* @nebula.js/sn-table v6.23.0
|
|
3
3
|
* Copyright (c) 2026 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import{useMemo as e,useOptions as t,usePromise as r,useState as n,useEffect as o,useTheme as i,onContextMenu as a,HyperCubeHandler as s,onTakeSnapshot as l,useImperativeHandle as u,useStaleLayout as c,useElement as d,useApp as p,useModel as f,useInteractionState as h,useTranslator as m,useSelections as g,useKeyboard as v,useRect as b,useEmbed as y}from"@nebula.js/stardust";import*as x from"react";import S,{createElement as w,isValidElement as C,cloneElement as E,Children as R,useMemo as A,useState as P,useRef as M,createContext as I,useReducer as k,useEffect as D,useDebugValue as T,useCallback as O,useContext as L,forwardRef as q,memo as N,useLayoutEffect as _,useInsertionEffect as j,startTransition as z,useImperativeHandle as F,PureComponent as $}from"react";import*as H from"react-dom";import B,{flushSync as W}from"react-dom";import V from"picasso-plugin-q";import U from"picasso.js";function G(e){return null!==e&&"object"==typeof e&&"r"in e&&"number"==typeof e.r&&"g"in e&&"number"==typeof e.g&&"b"in e&&"number"==typeof e.b&&("number"==typeof e.a||void 0===e.a)}function Y(e){if("object"==typeof e&&G(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,r=0,n=0;if("string"==typeof e){let o;(o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(o[1],10),r=parseInt(o[2],10),n=parseInt(o[3],10)):(o=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(o[1],16),r=parseInt(o[2],16),n=parseInt(o[3],16)):(o=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(o[1]+o[1],16),r=parseInt(o[2]+o[2],16),n=parseInt(o[3]+o[3],16))}return(t<<16)+(r<<8)+n}const K={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},X="qcm-color";function J(...e){const t={type:X,r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let r=0,n=0,o=0,i=1;if(null!==(a=e[0])&&"object"==typeof a&&"type"in a&&a.type===X)({r:r,g:n,b:o,a:i}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(G(e[0]))({r:r,g:n,b:o}=e[0]),"a"in e[0]&&({a:i}=e[0]);else if(e.length<3)if("string"==typeof e[0]){const a=e[0];let s;if(s=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))r=parseInt(s[1],10),n=parseInt(s[2],10),o=parseInt(s[3],10);else if(s=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a))r=parseInt(s[1],10),n=parseInt(s[2],10),o=parseInt(s[3],10),i=parseFloat(s[4]);else if(s=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))i=parseInt(s[1],10)/255,r=parseInt(s[2],10),n=parseInt(s[3],10),o=parseInt(s[4],10);else if(s=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(a))r=parseInt(s[1],16),n=parseInt(s[2],16),o=parseInt(s[3],16),i=1;else if(s=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(a))r=parseInt(s[1]+s[1],16),n=parseInt(s[2]+s[2],16),o=parseInt(s[3]+s[3],16),i=1;else if(s=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-.5*l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),o=Math.round(255*o),i=1}else if(s=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);i=parseFloat(s[7]),e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-.5*l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),o=Math.round(255*o)}else if(s=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),o=Math.round(255*o),i=1}else{const e=a.toLowerCase();if(function(e){return e in K}(e)){const t=K[e];({r:r,g:n,b:o}=t),i="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(i=(4278190080&e[0])>>>24,i/=255,r=(16711680&e[0])>>16,n=(65280&e[0])>>8,o=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(r=(16711680&e[0])>>16,n=(65280&e[0])>>8,o=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(r=e[0],n=e[1],o=e[2],i=4===e.length?e[3]:1):t.invalid=!0;var a;return Number.isNaN(+r+n+o+i)&&(t.invalid=!0),t.r=Math.floor(r),t.g=Math.floor(n),t.b=Math.floor(o),t.a=i,t}function Z(e){let t,r,n=0;const o="string"==typeof e?J(e):e,i=o.r/255,a=o.g/255,s=o.b/255,{a:l}=o,u=Math.max(i,a,s),c=Math.min(i,a,s),d=(u+c)/2;if(u===c)t=0,n=0;else{switch(r=u-c,t=d>.5?r/(2-u-c):r/(u+c),u){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return{h:360*n,s:100*t,l:100*d,a:l}}function Q(e){let t,r,n=0;const o="string"==typeof e?J(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),u=Math.min(i,a,s),c=l;if(l===u)t=0,n=0;else{switch(r=l-u,t=0===r?0:r/c,l){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return{h:360*n%360,s:100*t,v:100*c}}function ee(e){if(G(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?Y(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function te(e,t){return G(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:te(J(e))}function re(e){return G(e)?1===e.a?ee(e):te(e):re(J(e))}const ne=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function oe(e){return.2126*ne(e.r)+.7152*ne(e.g)+.0722*ne(e.b)}function ie(...e){const t=J(...e),r={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},n=()=>(r.spaces.hslaObject||(r.spaces.hslaObject=Z(r)),r.spaces.hslaObject),o=e=>{const t=n(),{h:r,s:o,l:i,a:a}=t;return`hsla(${r}, ${o}, ${Math.max(0,Math.min(i+e,100))}, ${a})`};return{get type(){return r.type},isInvalid:()=>r.invalid,get r(){return r.r},get g(){return r.g},get b(){return r.b},get a(){return r.a},getR:()=>r.r,getG:()=>r.g,getB:()=>r.b,getAlpha:()=>r.a,setAlpha:e=>{r.a=e,r.spaces={}},isEqualTo:e=>{let t;if("string"==typeof e)t=J(e);else{if(e.type!==r.type)return!1;t=e}return t.r===r.r&&t.g===r.g&&t.b===r.b&&t.a===r.a},isDark:()=>function(...e){const t=J(...e);return t.invalid||oe(t)<.4}(r),getRGB:()=>(r.spaces.rgb||(r.spaces.rgb=ee(r)),r.spaces.rgb),getRGBA:()=>(r.spaces.rgba||(r.spaces.rgba=te(r)),r.spaces.rgba),getString:()=>(r.spaces.string||(r.spaces.string=re(r)),r.spaces.string),getHex:()=>(r.spaces.hex||(r.spaces.hex=function(e){let t,r,n;if(G(e))return t=e.r.toString(16),r=e.g.toString(16),n=e.b.toString(16),1===t.length&&(t=`0${t}`),1===r.length&&(r=`0${r}`),1===n.length&&(n=`0${n}`),`#${[t,r,n].join("")}`;const o="string"==typeof e?Y(e):e;return t=((16711680&o)>>16).toString(16),r=((65280&o)>>8).toString(16),n=(255&o).toString(16),1===t.length&&(t=`0${t}`),1===r.length&&(r=`0${r}`),1===n.length&&(n=`0${n}`),`#${t}${r}${n}`}(r)),r.spaces.hex),getHSL:()=>(r.spaces.hsl||(r.spaces.hsl=function(e){let t,r,n=0;const o="string"==typeof e?J(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),u=Math.min(i,a,s),c=(l+u)/2;if(l===u)t=0,n=0;else{switch(r=l-u,t=c>.5?r/(2-l-u):r/(l+u),l){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return`hsl(${360*n}, ${100*t}, ${100*c})`}(r)),r.spaces.hsl),getHSLA:()=>(r.spaces.hsla||(r.spaces.hsla=function(e){const{h:t,s:r,l:n,a:o}=Z(e);return`hsla(${t}, ${r}, ${n}, ${o})`}(r)),r.spaces.hsla),getHSLAObject:n,getShiftedHSLA:o,getHSV:()=>(r.spaces.hsv||(r.spaces.hsv=function(e){const{h:t,s:r,v:n}=Q(e);return`hsv(${t}, ${r}, ${n})`}(r)),r.spaces.hsv),getHSVObject:()=>(r.spaces.hsvObject||(r.spaces.hsvObject=Q(r)),r.spaces.hsvObject),blend:(e,t)=>`rgba(${Math.floor(r.r+(e.r-r.r)*t)}, ${Math.floor(r.g+(e.g-r.g)*t)}, ${Math.floor(r.b+(e.b-r.b)*t)}, ${Math.floor(r.a+(e.getAlpha()-r.a)*t)})`,getBrightenedColor:(e=1)=>ie(o(18*e)),getDarkenedColor:(e=1)=>ie(o(18*-e))}}function ae(e,t){if(!e||!t)return;const r=oe(e),n=oe(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}const se="#FFFFFF";function le(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ue,ce="top",de="top-right",pe="right",fe="bottom-right",he="bottom",me="bottom-left",ge="left",ve="top-left";le(le(le(le(le(le(le(le(le(le(ue={},"equal-equal",[ce,he]),"equal-higher",[he,fe]),"equal-lower",[ce,de]),"equal-void",[ce,he]),"higher-equal",[ge,me,ce,de]),"higher-higher-acute",[he,me,ge,de]),"higher-higher-obtuse",[he,ce]),"higher-lower-negative",[ce,de,pe]),"higher-lower-positive",[he,me,ge]),"higher-void",[ce]),le(le(le(le(le(le(le(le(le(le(ue,"lower-equal",[ce]),"lower-higher-negative",[ce,ve]),"lower-higher-positive",[fe]),"lower-lower-acute",[ce,ve,ge,de,pe]),"lower-lower-obtuse",[ce,he]),"lower-void",[ce]),"void-equal",[ce]),"void-higher",[ce,he]),"void-lower",[ce,he,ge]),"void-void",[ce]),le(ue,"unclassified",[ce,he,pe,ge,de,fe,me,ve]);var be,ye,xe=["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"],Se=["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 we(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?Se:xe}var Ce=function(){if(ye)return be;ye=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return be=function e(){var t,r,n,l,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(l=s(t,r))&&(h&&l&&(i(l)||(u=o(l)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(h,c,l)})):void 0!==l&&a(d,{name:r,newValue:l}));return d},be}();function Ee(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Re(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Ae(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(Ce);var Pe=.7,Me=1/Pe,Ie="\\s*([+-]?\\d+)\\s*",ke="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",De="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Te=/^#([0-9a-f]{3,8})$/,Oe=new RegExp(`^rgb\\(${Ie},${Ie},${Ie}\\)$`),Le=new RegExp(`^rgb\\(${De},${De},${De}\\)$`),qe=new RegExp(`^rgba\\(${Ie},${Ie},${Ie},${ke}\\)$`),Ne=new RegExp(`^rgba\\(${De},${De},${De},${ke}\\)$`),_e=new RegExp(`^hsl\\(${ke},${De},${De}\\)$`),je=new RegExp(`^hsla\\(${ke},${De},${De},${ke}\\)$`),ze={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 Fe(){return this.rgb().formatHex()}function $e(){return this.rgb().formatRgb()}function He(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Te.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Be(t):3===r?new Ge(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?We(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?We(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=Oe.exec(e))?new Ge(t[1],t[2],t[3],1):(t=Le.exec(e))?new Ge(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=qe.exec(e))?We(t[1],t[2],t[3],t[4]):(t=Ne.exec(e))?We(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=_e.exec(e))?Qe(t[1],t[2]/100,t[3]/100,1):(t=je.exec(e))?Qe(t[1],t[2]/100,t[3]/100,t[4]):ze.hasOwnProperty(e)?Be(ze[e]):"transparent"===e?new Ge(NaN,NaN,NaN,0):null}function Be(e){return new Ge(e>>16&255,e>>8&255,255&e,1)}function We(e,t,r,n){return n<=0&&(e=t=r=NaN),new Ge(e,t,r,n)}function Ve(e){return e instanceof Ae||(e=He(e)),e?new Ge((e=e.rgb()).r,e.g,e.b,e.opacity):new Ge}function Ue(e,t,r,n){return 1===arguments.length?Ve(e):new Ge(e,t,r,null==n?1:n)}function Ge(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Ye(){return`#${Ze(this.r)}${Ze(this.g)}${Ze(this.b)}`}function Ke(){const e=Xe(this.opacity);return`${1===e?"rgb(":"rgba("}${Je(this.r)}, ${Je(this.g)}, ${Je(this.b)}${1===e?")":`, ${e})`}`}function Xe(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Je(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ze(e){return((e=Je(e))<16?"0":"")+e.toString(16)}function Qe(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new tt(e,t,r,n)}function et(e){if(e instanceof tt)return new tt(e.h,e.s,e.l,e.opacity);if(e instanceof Ae||(e=He(e)),!e)return new tt;if(e instanceof tt)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(r-n)/s+6*(r<n):r===i?(n-t)/s+2:(t-r)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new tt(a,s,l,e.opacity)}function tt(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function rt(e){return(e=(e||0)%360)<0?e+360:e}function nt(e){return Math.max(0,Math.min(1,e||0))}function ot(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Ee(Ae,He,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Fe,formatHex:Fe,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return et(this).formatHsl()},formatRgb:$e,toString:$e}),Ee(Ge,Ue,Re(Ae,{brighter(e){return e=null==e?Me:Math.pow(Me,e),new Ge(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Pe:Math.pow(Pe,e),new Ge(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ge(Je(this.r),Je(this.g),Je(this.b),Xe(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:Ye,formatHex:Ye,formatHex8:function(){return`#${Ze(this.r)}${Ze(this.g)}${Ze(this.b)}${Ze(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ke,toString:Ke})),Ee(tt,function(e,t,r,n){return 1===arguments.length?et(e):new tt(e,t,r,null==n?1:n)},Re(Ae,{brighter(e){return e=null==e?Me:Math.pow(Me,e),new tt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Pe:Math.pow(Pe,e),new tt(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new Ge(ot(e>=240?e-240:e+120,o,n),ot(e,o,n),ot(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new tt(rt(this.h),nt(this.s),nt(this.l),Xe(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=Xe(this.opacity);return`${1===e?"hsl(":"hsla("}${rt(this.h)}, ${100*nt(this.s)}%, ${100*nt(this.l)}%${1===e?")":`, ${e})`}`}}));const it=Math.PI/180,at=180/Math.PI,st=.96422,lt=.82521,ut=4/29,ct=6/29,dt=3*ct*ct,pt=ct*ct*ct;function ft(e){if(e instanceof ht)return new ht(e.l,e.a,e.b,e.opacity);if(e instanceof yt)return xt(e);e instanceof Ge||(e=Ve(e));var t,r,n=bt(e.r),o=bt(e.g),i=bt(e.b),a=mt((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=mt((.4360747*n+.3850649*o+.1430804*i)/st),r=mt((.0139322*n+.0971045*o+.7141733*i)/lt)),new ht(116*a-16,500*(t-a),200*(a-r),e.opacity)}function ht(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function mt(e){return e>pt?Math.pow(e,1/3):e/dt+ut}function gt(e){return e>ct?e*e*e:dt*(e-ut)}function vt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function bt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function yt(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function xt(e){if(isNaN(e.h))return new ht(e.l,0,0,e.opacity);var t=e.h*it;return new ht(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Ee(ht,function(e,t,r,n){return 1===arguments.length?ft(e):new ht(e,t,r,null==n?1:n)},Re(Ae,{brighter(e){return new ht(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new ht(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new Ge(vt(3.1338561*(t=st*gt(t))-1.6168667*(e=1*gt(e))-.4906146*(r=lt*gt(r))),vt(-.9787684*t+1.9161415*e+.033454*r),vt(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Ee(yt,function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof yt)return new yt(e.h,e.c,e.l,e.opacity);if(e instanceof ht||(e=ft(e)),0===e.a&&0===e.b)return new yt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*at;return new yt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new yt(e,t,r,null==n?1:n)},Re(Ae,{brighter(e){return new yt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new yt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return xt(this).rgb()}}));var St=e=>()=>e;function wt(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):St(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1===(e=+e)?wt:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):St(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=Ue(e)).r,(t=Ue(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=wt(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);var Ct="center",Et="bottom";[{key:"NoDataExist",alignment:Ct,condition:function(e){var t=e.layoutService;if(!t)return!1;var r=t.meta.size;return r.x*r.y===0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:Ct,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every(function(e){return"NaN"===e.qMin&&"NaN"===e.qMax})}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:Ct,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var r=t.getHyperCubeValue("qDimensionInfo.0");return r&&(r.qMax<r.qMin||"NaN"===r.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:Ct},{key:"DataRangeIncludingZero",alignment:Et},{key:"LimitedData",alignment:Et},{key:"NegativeOrZeroValues",alignment:Et}].reduce(function(e,t){return e[t.key]=t,e},{});var Rt,At=["__proto__","constructor"];function Pt(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!At.some(function(e){return n.includes(e)})){for(var i=e,a=0;a<n.length-1;++a){var s=n[a];void 0===i[s]&&(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r:delete i[o]}}}function Mt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},r=function(){var e={};return{get:function(t){return e[t]},set:function(t,r){return e[t]=r,r},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(n){var o=t(n);return r.has(o)?r.get(o):r.set(o,e(n))}}function It(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function kt(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Tt)):void 0===t&&(t=Dt);for(var r,n,o,i,a,s=new qt(e),l=[s];r=l.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)l.push(n=o[i]=new qt(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(Lt)}function Dt(e){return e.children}function Tt(e){return Array.isArray(e)?e[1]:null}function Ot(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Lt(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function qt(e){this.data=e,this.depth=this.height=0,this.parent=null}qt.prototype=kt.prototype={constructor:qt,count:function(){return this.eachAfter(It)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t},copy:function(){return kt(this).eachBefore(Ot)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},Rt=function(e){
|
|
7
|
+
import{useMemo as e,useOptions as t,usePromise as r,useState as n,useEffect as o,useTheme as i,onContextMenu as a,HyperCubeHandler as s,onTakeSnapshot as l,useImperativeHandle as u,useStaleLayout as c,useElement as d,useApp as p,useModel as f,useInteractionState as h,useTranslator as m,useSelections as g,useKeyboard as b,useRect as v,useEmbed as y}from"@nebula.js/stardust";import*as x from"react";import S,{createElement as w,isValidElement as C,cloneElement as E,Children as R,useMemo as A,useState as M,useRef as P,createContext as I,useReducer as k,useEffect as D,useDebugValue as T,useCallback as O,useContext as L,forwardRef as q,memo as N,useLayoutEffect as j,useInsertionEffect as _,startTransition as z,useImperativeHandle as F,PureComponent as $}from"react";import*as H from"react-dom";import B,{flushSync as W}from"react-dom";import V from"picasso-plugin-q";import U from"picasso.js";function G(e){return null!==e&&"object"==typeof e&&"r"in e&&"number"==typeof e.r&&"g"in e&&"number"==typeof e.g&&"b"in e&&"number"==typeof e.b&&("number"==typeof e.a||void 0===e.a)}function Y(e){if("object"==typeof e&&G(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,r=0,n=0;if("string"==typeof e){let o;(o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(o[1],10),r=parseInt(o[2],10),n=parseInt(o[3],10)):(o=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(o[1],16),r=parseInt(o[2],16),n=parseInt(o[3],16)):(o=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(o[1]+o[1],16),r=parseInt(o[2]+o[2],16),n=parseInt(o[3]+o[3],16))}return(t<<16)+(r<<8)+n}const K={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},X="qcm-color";function J(...e){const t={type:X,r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let r=0,n=0,o=0,i=1;if(null!==(a=e[0])&&"object"==typeof a&&"type"in a&&a.type===X)({r:r,g:n,b:o,a:i}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(G(e[0]))({r:r,g:n,b:o}=e[0]),"a"in e[0]&&({a:i}=e[0]);else if(e.length<3)if("string"==typeof e[0]){const a=e[0];let s;if(s=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))r=parseInt(s[1],10),n=parseInt(s[2],10),o=parseInt(s[3],10);else if(s=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a))r=parseInt(s[1],10),n=parseInt(s[2],10),o=parseInt(s[3],10),i=parseFloat(s[4]);else if(s=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))i=parseInt(s[1],10)/255,r=parseInt(s[2],10),n=parseInt(s[3],10),o=parseInt(s[4],10);else if(s=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(a))r=parseInt(s[1],16),n=parseInt(s[2],16),o=parseInt(s[3],16),i=1;else if(s=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(a))r=parseInt(s[1]+s[1],16),n=parseInt(s[2]+s[2],16),o=parseInt(s[3]+s[3],16),i=1;else if(s=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-.5*l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),o=Math.round(255*o),i=1}else if(s=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);i=parseFloat(s[7]),e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-.5*l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),o=Math.round(255*o)}else if(s=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),o=Math.round(255*o),i=1}else{const e=a.toLowerCase();if(function(e){return e in K}(e)){const t=K[e];({r:r,g:n,b:o}=t),i="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(i=(4278190080&e[0])>>>24,i/=255,r=(16711680&e[0])>>16,n=(65280&e[0])>>8,o=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(r=(16711680&e[0])>>16,n=(65280&e[0])>>8,o=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(r=e[0],n=e[1],o=e[2],i=4===e.length?e[3]:1):t.invalid=!0;var a;return Number.isNaN(+r+n+o+i)&&(t.invalid=!0),t.r=Math.floor(r),t.g=Math.floor(n),t.b=Math.floor(o),t.a=i,t}function Z(e){let t,r,n=0;const o="string"==typeof e?J(e):e,i=o.r/255,a=o.g/255,s=o.b/255,{a:l}=o,u=Math.max(i,a,s),c=Math.min(i,a,s),d=(u+c)/2;if(u===c)t=0,n=0;else{switch(r=u-c,t=d>.5?r/(2-u-c):r/(u+c),u){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return{h:360*n,s:100*t,l:100*d,a:l}}function Q(e){let t,r,n=0;const o="string"==typeof e?J(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),u=Math.min(i,a,s),c=l;if(l===u)t=0,n=0;else{switch(r=l-u,t=0===r?0:r/c,l){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return{h:360*n%360,s:100*t,v:100*c}}function ee(e){if(G(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?Y(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function te(e,t){return G(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:te(J(e))}function re(e){return G(e)?1===e.a?ee(e):te(e):re(J(e))}const ne=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function oe(e){return.2126*ne(e.r)+.7152*ne(e.g)+.0722*ne(e.b)}function ie(...e){const t=J(...e),r={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},n=()=>(r.spaces.hslaObject||(r.spaces.hslaObject=Z(r)),r.spaces.hslaObject),o=e=>{const t=n(),{h:r,s:o,l:i,a:a}=t;return`hsla(${r}, ${o}, ${Math.max(0,Math.min(i+e,100))}, ${a})`};return{get type(){return r.type},isInvalid:()=>r.invalid,get r(){return r.r},get g(){return r.g},get b(){return r.b},get a(){return r.a},getR:()=>r.r,getG:()=>r.g,getB:()=>r.b,getAlpha:()=>r.a,setAlpha:e=>{r.a=e,r.spaces={}},isEqualTo:e=>{let t;if("string"==typeof e)t=J(e);else{if(e.type!==r.type)return!1;t=e}return t.r===r.r&&t.g===r.g&&t.b===r.b&&t.a===r.a},isDark:()=>function(...e){const t=J(...e);return t.invalid||oe(t)<.4}(r),getRGB:()=>(r.spaces.rgb||(r.spaces.rgb=ee(r)),r.spaces.rgb),getRGBA:()=>(r.spaces.rgba||(r.spaces.rgba=te(r)),r.spaces.rgba),getString:()=>(r.spaces.string||(r.spaces.string=re(r)),r.spaces.string),getHex:()=>(r.spaces.hex||(r.spaces.hex=function(e){let t,r,n;if(G(e))return t=e.r.toString(16),r=e.g.toString(16),n=e.b.toString(16),1===t.length&&(t=`0${t}`),1===r.length&&(r=`0${r}`),1===n.length&&(n=`0${n}`),`#${[t,r,n].join("")}`;const o="string"==typeof e?Y(e):e;return t=((16711680&o)>>16).toString(16),r=((65280&o)>>8).toString(16),n=(255&o).toString(16),1===t.length&&(t=`0${t}`),1===r.length&&(r=`0${r}`),1===n.length&&(n=`0${n}`),`#${t}${r}${n}`}(r)),r.spaces.hex),getHSL:()=>(r.spaces.hsl||(r.spaces.hsl=function(e){let t,r,n=0;const o="string"==typeof e?J(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),u=Math.min(i,a,s),c=(l+u)/2;if(l===u)t=0,n=0;else{switch(r=l-u,t=c>.5?r/(2-l-u):r/(l+u),l){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return`hsl(${360*n}, ${100*t}, ${100*c})`}(r)),r.spaces.hsl),getHSLA:()=>(r.spaces.hsla||(r.spaces.hsla=function(e){const{h:t,s:r,l:n,a:o}=Z(e);return`hsla(${t}, ${r}, ${n}, ${o})`}(r)),r.spaces.hsla),getHSLAObject:n,getShiftedHSLA:o,getHSV:()=>(r.spaces.hsv||(r.spaces.hsv=function(e){const{h:t,s:r,v:n}=Q(e);return`hsv(${t}, ${r}, ${n})`}(r)),r.spaces.hsv),getHSVObject:()=>(r.spaces.hsvObject||(r.spaces.hsvObject=Q(r)),r.spaces.hsvObject),blend:(e,t)=>`rgba(${Math.floor(r.r+(e.r-r.r)*t)}, ${Math.floor(r.g+(e.g-r.g)*t)}, ${Math.floor(r.b+(e.b-r.b)*t)}, ${Math.floor(r.a+(e.getAlpha()-r.a)*t)})`,getBrightenedColor:(e=1)=>ie(o(18*e)),getDarkenedColor:(e=1)=>ie(o(18*-e))}}function ae(e,t){if(!e||!t)return;const r=oe(e),n=oe(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}const se="#FFFFFF";function le(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ue,ce="top",de="top-right",pe="right",fe="bottom-right",he="bottom",me="bottom-left",ge="left",be="top-left";le(le(le(le(le(le(le(le(le(le(ue={},"equal-equal",[ce,he]),"equal-higher",[he,fe]),"equal-lower",[ce,de]),"equal-void",[ce,he]),"higher-equal",[ge,me,ce,de]),"higher-higher-acute",[he,me,ge,de]),"higher-higher-obtuse",[he,ce]),"higher-lower-negative",[ce,de,pe]),"higher-lower-positive",[he,me,ge]),"higher-void",[ce]),le(le(le(le(le(le(le(le(le(le(ue,"lower-equal",[ce]),"lower-higher-negative",[ce,be]),"lower-higher-positive",[fe]),"lower-lower-acute",[ce,be,ge,de,pe]),"lower-lower-obtuse",[ce,he]),"lower-void",[ce]),"void-equal",[ce]),"void-higher",[ce,he]),"void-lower",[ce,he,ge]),"void-void",[ce]),le(ue,"unclassified",[ce,he,pe,ge,de,fe,me,be]);var ve,ye,xe=["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"],Se=["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 we(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?Se:xe}var Ce=function(){if(ye)return ve;ye=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return ve=function e(){var t,r,n,l,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(l=s(t,r))&&(h&&l&&(i(l)||(u=o(l)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(h,c,l)})):void 0!==l&&a(d,{name:r,newValue:l}));return d},ve}();function Ee(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Re(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Ae(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(Ce);var Me=.7,Pe=1/Me,Ie="\\s*([+-]?\\d+)\\s*",ke="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",De="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Te=/^#([0-9a-f]{3,8})$/,Oe=new RegExp(`^rgb\\(${Ie},${Ie},${Ie}\\)$`),Le=new RegExp(`^rgb\\(${De},${De},${De}\\)$`),qe=new RegExp(`^rgba\\(${Ie},${Ie},${Ie},${ke}\\)$`),Ne=new RegExp(`^rgba\\(${De},${De},${De},${ke}\\)$`),je=new RegExp(`^hsl\\(${ke},${De},${De}\\)$`),_e=new RegExp(`^hsla\\(${ke},${De},${De},${ke}\\)$`),ze={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 Fe(){return this.rgb().formatHex()}function $e(){return this.rgb().formatRgb()}function He(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Te.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Be(t):3===r?new Ge(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?We(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?We(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=Oe.exec(e))?new Ge(t[1],t[2],t[3],1):(t=Le.exec(e))?new Ge(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=qe.exec(e))?We(t[1],t[2],t[3],t[4]):(t=Ne.exec(e))?We(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=je.exec(e))?Qe(t[1],t[2]/100,t[3]/100,1):(t=_e.exec(e))?Qe(t[1],t[2]/100,t[3]/100,t[4]):ze.hasOwnProperty(e)?Be(ze[e]):"transparent"===e?new Ge(NaN,NaN,NaN,0):null}function Be(e){return new Ge(e>>16&255,e>>8&255,255&e,1)}function We(e,t,r,n){return n<=0&&(e=t=r=NaN),new Ge(e,t,r,n)}function Ve(e){return e instanceof Ae||(e=He(e)),e?new Ge((e=e.rgb()).r,e.g,e.b,e.opacity):new Ge}function Ue(e,t,r,n){return 1===arguments.length?Ve(e):new Ge(e,t,r,null==n?1:n)}function Ge(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Ye(){return`#${Ze(this.r)}${Ze(this.g)}${Ze(this.b)}`}function Ke(){const e=Xe(this.opacity);return`${1===e?"rgb(":"rgba("}${Je(this.r)}, ${Je(this.g)}, ${Je(this.b)}${1===e?")":`, ${e})`}`}function Xe(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Je(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ze(e){return((e=Je(e))<16?"0":"")+e.toString(16)}function Qe(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new tt(e,t,r,n)}function et(e){if(e instanceof tt)return new tt(e.h,e.s,e.l,e.opacity);if(e instanceof Ae||(e=He(e)),!e)return new tt;if(e instanceof tt)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(r-n)/s+6*(r<n):r===i?(n-t)/s+2:(t-r)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new tt(a,s,l,e.opacity)}function tt(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function rt(e){return(e=(e||0)%360)<0?e+360:e}function nt(e){return Math.max(0,Math.min(1,e||0))}function ot(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Ee(Ae,He,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Fe,formatHex:Fe,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return et(this).formatHsl()},formatRgb:$e,toString:$e}),Ee(Ge,Ue,Re(Ae,{brighter(e){return e=null==e?Pe:Math.pow(Pe,e),new Ge(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Me:Math.pow(Me,e),new Ge(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ge(Je(this.r),Je(this.g),Je(this.b),Xe(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:Ye,formatHex:Ye,formatHex8:function(){return`#${Ze(this.r)}${Ze(this.g)}${Ze(this.b)}${Ze(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ke,toString:Ke})),Ee(tt,function(e,t,r,n){return 1===arguments.length?et(e):new tt(e,t,r,null==n?1:n)},Re(Ae,{brighter(e){return e=null==e?Pe:Math.pow(Pe,e),new tt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Me:Math.pow(Me,e),new tt(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new Ge(ot(e>=240?e-240:e+120,o,n),ot(e,o,n),ot(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new tt(rt(this.h),nt(this.s),nt(this.l),Xe(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=Xe(this.opacity);return`${1===e?"hsl(":"hsla("}${rt(this.h)}, ${100*nt(this.s)}%, ${100*nt(this.l)}%${1===e?")":`, ${e})`}`}}));const it=Math.PI/180,at=180/Math.PI,st=.96422,lt=.82521,ut=4/29,ct=6/29,dt=3*ct*ct,pt=ct*ct*ct;function ft(e){if(e instanceof ht)return new ht(e.l,e.a,e.b,e.opacity);if(e instanceof yt)return xt(e);e instanceof Ge||(e=Ve(e));var t,r,n=vt(e.r),o=vt(e.g),i=vt(e.b),a=mt((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=mt((.4360747*n+.3850649*o+.1430804*i)/st),r=mt((.0139322*n+.0971045*o+.7141733*i)/lt)),new ht(116*a-16,500*(t-a),200*(a-r),e.opacity)}function ht(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function mt(e){return e>pt?Math.pow(e,1/3):e/dt+ut}function gt(e){return e>ct?e*e*e:dt*(e-ut)}function bt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function vt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function yt(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function xt(e){if(isNaN(e.h))return new ht(e.l,0,0,e.opacity);var t=e.h*it;return new ht(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Ee(ht,function(e,t,r,n){return 1===arguments.length?ft(e):new ht(e,t,r,null==n?1:n)},Re(Ae,{brighter(e){return new ht(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new ht(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new Ge(bt(3.1338561*(t=st*gt(t))-1.6168667*(e=1*gt(e))-.4906146*(r=lt*gt(r))),bt(-.9787684*t+1.9161415*e+.033454*r),bt(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Ee(yt,function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof yt)return new yt(e.h,e.c,e.l,e.opacity);if(e instanceof ht||(e=ft(e)),0===e.a&&0===e.b)return new yt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*at;return new yt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new yt(e,t,r,null==n?1:n)},Re(Ae,{brighter(e){return new yt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new yt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return xt(this).rgb()}}));var St=e=>()=>e;function wt(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):St(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1===(e=+e)?wt:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):St(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=Ue(e)).r,(t=Ue(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=wt(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);var Ct="center",Et="bottom";[{key:"NoDataExist",alignment:Ct,condition:function(e){var t=e.layoutService;if(!t)return!1;var r=t.meta.size;return r.x*r.y===0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:Ct,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every(function(e){return"NaN"===e.qMin&&"NaN"===e.qMax})}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:Ct,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var r=t.getHyperCubeValue("qDimensionInfo.0");return r&&(r.qMax<r.qMin||"NaN"===r.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:Ct},{key:"DataRangeIncludingZero",alignment:Et},{key:"LimitedData",alignment:Et},{key:"NegativeOrZeroValues",alignment:Et}].reduce(function(e,t){return e[t.key]=t,e},{});var Rt,At=["__proto__","constructor"];function Mt(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!At.some(function(e){return n.includes(e)})){for(var i=e,a=0;a<n.length-1;++a){var s=n[a];void 0===i[s]&&(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r:delete i[o]}}}function Pt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},r=function(){var e={};return{get:function(t){return e[t]},set:function(t,r){return e[t]=r,r},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(n){var o=t(n);return r.has(o)?r.get(o):r.set(o,e(n))}}function It(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function kt(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Tt)):void 0===t&&(t=Dt);for(var r,n,o,i,a,s=new qt(e),l=[s];r=l.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)l.push(n=o[i]=new qt(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(Lt)}function Dt(e){return e.children}function Tt(e){return Array.isArray(e)?e[1]:null}function Ot(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Lt(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function qt(e){this.data=e,this.depth=this.height=0,this.parent=null}qt.prototype=kt.prototype={constructor:qt,count:function(){return this.eachAfter(It)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t},copy:function(){return kt(this).eachBefore(Ot)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},Rt=function(e){
|
|
8
8
|
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
9
|
-
e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,s,l,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),v=p-g,b=e.substring(v,v+1),y=v+("."===b||","===b?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0===+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(m="",v=(d=t[0]).length%l,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-v+1)%l)&&y<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),h+(r?"-":"")+n+x}},Rt({exports:{}});const Nt=()=>{let e;return{promise:new Promise(t=>{e=t}),resolve:e}};function _t(t,r){return e(()=>t,r)}const jt={},zt=()=>{const{viewState:n}=t(),o=(t=>{const r=e(()=>({current:jt}),[]);return r.current=r.current===jt?t:r.current,r})(new Set),i=void 0!==window.qlikprinting,{promise:a,resolve:s}=e(()=>Nt(),[]),l=_t(e=>{o.current.add(e)},[o]),u=_t(function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var n=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout(function(){return e.apply(n,i)},r)}}(async()=>{await Promise.all(o.current),o.current.clear(),s()},1e3),[s,o]);return r(async()=>{await a},[a]),e(()=>({viewState:n,isDownloadedAsPDForImage:i,notifyIsDoneRendering:u,waitForPromise:l}),[u,i,n,l])},Ft={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"},$t={WHITE:"#FFFFFF",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...Ft,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},Ht=12,Bt=14,Wt=16,Vt=24,Ut=3,Gt=300,Yt=400,Kt=600,Xt=700,Jt={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function Zt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Qt(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var er={exports:{}},tr={},rr=S,nr=Symbol.for("react.element"),or=Symbol.for("react.fragment"),ir=Object.prototype.hasOwnProperty,ar=rr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,sr={key:!0,ref:!0,__self:!0,__source:!0};function lr(e,t,r){var n,o={},i=null,a=null;for(n in void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)ir.call(t,n)&&!sr.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:nr,type:e,key:i,ref:a,props:o,_owner:ar.current}}tr.Fragment=or,tr.jsx=lr,tr.jsxs=lr,er.exports=tr;var ur=er.exports;const cr={black:"#000",white:"#fff"},dr="#e57373",pr="#ef5350",fr="#f44336",hr="#d32f2f",mr="#c62828",gr="#f3e5f5",vr="#ce93d8",br="#ba68c8",yr="#ab47bc",xr="#9c27b0",Sr="#7b1fa2",wr="#e3f2fd",Cr="#90caf9",Er="#42a5f5",Rr="#1976d2",Ar="#1565c0",Pr="#4fc3f7",Mr="#29b6f6",Ir="#03a9f4",kr="#0288d1",Dr="#01579b",Tr="#81c784",Or="#66bb6a",Lr="#4caf50",qr="#388e3c",Nr="#2e7d32",_r="#1b5e20",jr="#ffb74d",zr="#ffa726",Fr="#ff9800",$r="#f57c00",Hr="#e65100",Br={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 Wr(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 Vr=Object.freeze({__proto__:null,default:Wr}),Ur="$$material";function Gr(){return Gr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gr.apply(null,arguments)}function Yr(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}var Kr=function(){return Kr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Kr.apply(this,arguments)};function Xr(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var Jr={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,scale: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},Zr="-ms-",Qr="-moz-",en="-webkit-",tn="comm",rn="rule",nn="decl",on="@import",an="@keyframes",sn=Math.abs,ln=String.fromCharCode,un=Object.assign;function cn(e){return e.trim()}function dn(e,t){return(e=t.exec(e))?e[0]:e}function pn(e,t,r){return e.replace(t,r)}function fn(e,t,r){return e.indexOf(t,r)}function hn(e,t){return 0|e.charCodeAt(t)}function mn(e,t,r){return e.slice(t,r)}function gn(e){return e.length}function vn(e){return e.length}function bn(e,t){return t.push(e),e}function yn(e,t){return e.filter(function(e){return!dn(e,t)})}var xn=1,Sn=1,wn=0,Cn=0,En=0,Rn="";function An(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:xn,column:Sn,length:a,return:"",siblings:s}}function Pn(e,t){return un(An("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Mn(e){for(;e.root;)e=Pn(e.root,{children:[e]});bn(e,e.siblings)}function In(){return En=Cn>0?hn(Rn,--Cn):0,Sn--,10===En&&(Sn=1,xn--),En}function kn(){return En=Cn<wn?hn(Rn,Cn++):0,Sn++,10===En&&(Sn=1,xn++),En}function Dn(){return hn(Rn,Cn)}function Tn(){return Cn}function On(e,t){return mn(Rn,e,t)}function Ln(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 qn(e){return cn(On(Cn-1,jn(91===e?e+2:40===e?e+1:e)))}function Nn(e){for(;(En=Dn())&&En<33;)kn();return Ln(e)>2||Ln(En)>3?"":" "}function _n(e,t){for(;--t&&kn()&&!(En<48||En>102||En>57&&En<65||En>70&&En<97););return On(e,Tn()+(t<6&&32==Dn()&&32==kn()))}function jn(e){for(;kn();)switch(En){case e:return Cn;case 34:case 39:34!==e&&39!==e&&jn(En);break;case 40:41===e&&jn(e);break;case 92:kn()}return Cn}function zn(e,t){for(;kn()&&e+En!==57&&(e+En!==84||47!==Dn()););return"/*"+On(t,Cn-1)+"*"+ln(47===e?e:kn())}function Fn(e){for(;!Ln(Dn());)kn();return On(e,Cn)}function $n(e){return function(e){return Rn="",e}(Hn("",null,null,null,[""],e=function(e){return xn=Sn=1,wn=gn(Rn=e),Cn=0,[]}(e),0,[0],e))}function Hn(e,t,r,n,o,i,a,s,l){for(var u=0,c=0,d=a,p=0,f=0,h=0,m=1,g=1,v=1,b=0,y="",x=o,S=i,w=n,C=y;g;)switch(h=b,b=kn()){case 40:if(108!=h&&58==hn(C,d-1)){-1!=fn(C+=pn(qn(b),"&","&\f"),"&\f",sn(u?s[u-1]:0))&&(v=-1);break}case 34:case 39:case 91:C+=qn(b);break;case 9:case 10:case 13:case 32:C+=Nn(h);break;case 92:C+=_n(Tn()-1,7);continue;case 47:switch(Dn()){case 42:case 47:bn(Wn(zn(kn(),Tn()),t,r,l),l),5!=Ln(h||1)&&5!=Ln(Dn()||1)||!gn(C)||" "===mn(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*m:s[u++]=gn(C)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+c:-1==v&&(C=pn(C,/\f/g,"")),f>0&&(gn(C)-d||0===m&&47===h)&&bn(f>32?Vn(C+";",n,r,d-1,l):Vn(pn(C," ","")+";",n,r,d-2,l),l);break;case 59:C+=";";default:if(bn(w=Bn(C,t,r,u,c,o,s,y,x=[],S=[],d,i),i),123===b)if(0===c)Hn(C,t,w,w,x,i,d,s,S);else{switch(p){case 99:if(110===hn(C,3))break;case 108:if(97===hn(C,2))break;default:c=0;case 100:case 109:case 115:}c?Hn(e,w,w,n&&bn(Bn(e,w,w,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S):Hn(C,w,w,w,[""],S,0,s,S)}}u=c=f=0,m=v=1,y=C="",d=a;break;case 58:d=1+gn(C),f=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==In())continue;switch(C+=ln(b),b*m){case 38:v=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(gn(C)-1)*v,v=1;break;case 64:45===Dn()&&(C+=qn(kn())),p=Dn(),c=d=gn(y=C+=Fn(Tn())),b++;break;case 45:45===h&&2==gn(C)&&(m=0)}}return i}function Bn(e,t,r,n,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],h=vn(f),m=0,g=0,v=0;m<n;++m)for(var b=0,y=mn(e,p+1,p=sn(g=a[m])),x=e;b<h;++b)(x=cn(g>0?f[b]+" "+y:pn(y,/&\f/g,f[b])))&&(l[v++]=x);return An(e,t,r,0===o?rn:s,l,u,c,d)}function Wn(e,t,r,n){return An(e,t,r,tn,ln(En),mn(e,2,-2),0,n)}function Vn(e,t,r,n,o){return An(e,t,r,nn,mn(e,0,n),mn(e,n+1,-1),n,o)}function Un(e,t,r){switch(function(e,t){return 45^hn(e,0)?(((t<<2^hn(e,0))<<2^hn(e,1))<<2^hn(e,2))<<2^hn(e,3):0}(e,t)){case 5103:return en+"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 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return en+e+e;case 4855:return en+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Qr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return en+e+Qr+e+Zr+e+e;case 5936:switch(hn(e,t+11)){case 114:return en+e+Zr+pn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return en+e+Zr+pn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return en+e+Zr+pn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return en+e+Zr+e+e;case 6165:return en+e+Zr+"flex-"+e+e;case 5187:return en+e+pn(e,/(\w+).+(:[^]+)/,en+"box-$1$2"+Zr+"flex-$1$2")+e;case 5443:return en+e+Zr+"flex-item-"+pn(e,/flex-|-self/g,"")+(dn(e,/flex-|baseline/)?"":Zr+"grid-row-"+pn(e,/flex-|-self/g,""))+e;case 4675:return en+e+Zr+"flex-line-pack"+pn(e,/align-content|flex-|-self/g,"")+e;case 5548:return en+e+Zr+pn(e,"shrink","negative")+e;case 5292:return en+e+Zr+pn(e,"basis","preferred-size")+e;case 6060:return en+"box-"+pn(e,"-grow","")+en+e+Zr+pn(e,"grow","positive")+e;case 4554:return en+pn(e,/([^-])(transform)/g,"$1"+en+"$2")+e;case 6187:return pn(pn(pn(e,/(zoom-|grab)/,en+"$1"),/(image-set)/,en+"$1"),e,"")+e;case 5495:case 3959:return pn(e,/(image-set\([^]*)/,en+"$1$`$1");case 4968:return pn(pn(e,/(.+:)(flex-)?(.*)/,en+"box-pack:$3"+Zr+"flex-pack:$3"),/space-between/,"justify")+en+e+e;case 4200:if(!dn(e,/flex-|baseline/))return Zr+"grid-column-align"+mn(e,t)+e;break;case 2592:case 3360:return Zr+pn(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(e,r){return t=r,dn(e.props,/grid-\w+-end/)})?~fn(e+(r=r[t].value),"span",0)?e:Zr+pn(e,"-start","")+e+Zr+"grid-row-span:"+(~fn(r,"span",0)?dn(r,/\d+/):+dn(r,/\d+/)-+dn(e,/\d+/))+";":Zr+pn(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(e){return dn(e.props,/grid-\w+-start/)})?e:Zr+pn(pn(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return pn(e,/(.+)-inline(.+)/,en+"$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(gn(e)-1-t>6)switch(hn(e,t+1)){case 109:if(45!==hn(e,t+4))break;case 102:return pn(e,/(.+:)(.+)-([^]+)/,"$1"+en+"$2-$3$1"+Qr+(108==hn(e,t+3)?"$3":"$2-$3"))+e;case 115:return~fn(e,"stretch",0)?Un(pn(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return pn(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,r,n,o,i,a,s){return Zr+r+":"+n+s+(o?Zr+r+"-span:"+(i?a:+a-+n)+s:"")+e});case 4949:if(121===hn(e,t+6))return pn(e,":",":"+en)+e;break;case 6444:switch(hn(e,45===hn(e,14)?18:11)){case 120:return pn(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+en+(45===hn(e,14)?"inline-":"")+"box$3$1"+en+"$2$3$1"+Zr+"$2box$3")+e;case 100:return pn(e,":",":"+Zr)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return pn(e,"scroll-","scroll-snap-")+e}return e}function Gn(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Yn(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case on:case"@namespace":case nn:return e.return=e.return||e.value;case tn:return"";case an:return e.return=e.value+"{"+Gn(e.children,n)+"}";case rn:if(!gn(e.value=e.props.join(",")))return""}return gn(r=Gn(e.children,n))?e.return=e.value+"{"+r+"}":""}function Kn(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case nn:return void(e.return=Un(e.value,e.length,r));case an:return Gn([Pn(e,{value:pn(e.value,"@","@"+en)})],n);case rn:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,function(t){switch(dn(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Mn(Pn(e,{props:[pn(t,/:(read-\w+)/,":-moz-$1")]})),Mn(Pn(e,{props:[t]})),un(e,{props:yn(r,n)});break;case"::placeholder":Mn(Pn(e,{props:[pn(t,/:(plac\w+)/,":"+en+"input-$1")]})),Mn(Pn(e,{props:[pn(t,/:(plac\w+)/,":-moz-$1")]})),Mn(Pn(e,{props:[pn(t,/:(plac\w+)/,Zr+"input-$1")]})),Mn(Pn(e,{props:[t]})),un(e,{props:yn(r,n)})}return""})}}var Xn="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Jn="active",Zn="data-styled-version",Qn="6.3.12",eo="/*!sc*/\n",to="undefined"!=typeof window&&"undefined"!=typeof document,ro=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)),no={};function oo(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];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 io=new Map,ao=new Map,so=1,lo=function(e){if(io.has(e))return io.get(e);for(;ao.has(so);)so++;var t=so++;return io.set(e,t),ao.set(t,e),t},uo=function(e,t){so=t+1,io.set(e,t),ao.set(t,e)},co=Object.freeze([]),po=Object.freeze({});function fo(e,t,r){return void 0===r&&(r=po),e.theme!==r.theme&&e.theme||t||r.theme}var ho=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","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","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]),mo=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,go=/(^-|-$)/g;function vo(e){return e.replace(mo,"-").replace(go,"")}var bo=/(a)(d)/gi,yo=function(e){return String.fromCharCode(e+(e>25?39:97))};function xo(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=yo(t%52)+r;return(yo(t%52)+r).replace(bo,"$1-$2")}var So,wo=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Co=function(e){return wo(5381,e)};function Eo(e){return xo(Co(e)>>>0)}function Ro(e){return"string"==typeof e&&!0}var Ao="function"==typeof Symbol&&Symbol.for,Po=Ao?Symbol.for("react.memo"):60115,Mo=Ao?Symbol.for("react.forward_ref"):60112,Io={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ko={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Do={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},To=((So={})[Mo]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},So[Po]=Do,So);function Oo(e){return("type"in(t=e)&&t.type.$$typeof)===Po?Do:"$$typeof"in e?To[e.$$typeof]:Io;var t}var Lo=Object.defineProperty,qo=Object.getOwnPropertyNames,No=Object.getOwnPropertySymbols,_o=Object.getOwnPropertyDescriptor,jo=Object.getPrototypeOf,zo=Object.prototype;function Fo(e,t,r){if("string"!=typeof t){if(zo){var n=jo(t);n&&n!==zo&&Fo(e,n,r)}var o=qo(t);No&&(o=o.concat(No(t)));for(var i=Oo(e),a=Oo(t),s=0;s<o.length;++s){var l=o[s];if(!(l in ko||r&&r[l]||a&&l in a||i&&l in i)){var u=_o(t,l);try{Lo(e,l,u)}catch(e){}}}}return e}function $o(e){return"function"==typeof e}function Ho(e){return"object"==typeof e&&"styledComponentId"in e}function Bo(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Wo(e,t){return e.join("")}function Vo(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Uo(e,t,r){if(void 0===r&&(r=!1),!r&&!Vo(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Uo(e[n],t[n]);else if(Vo(t))for(var n in t)e[n]=Uo(e[n],t[n]);return e}function Go(e,t){Object.defineProperty(e,"toString",{value:t})}var Yo=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}return e.prototype.indexOfGroup=function(e){if(e===this._cGroup)return this._cIndex;var t=this._cIndex;if(e>this._cGroup)for(var r=this._cGroup;r<e;r++)t+=this.groupSizes[r];else for(r=this._cGroup-1;r>=e;r--)t-=this.groupSizes[r];return this._cGroup=e,this._cIndex=t,t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)if((o<<=1)<0)throw oo(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=0,l=(i=0,t.length);i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++,s++);s>0&&this._cGroup>e&&(this._cIndex+=s)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r);t>0&&this._cGroup>e&&(this._cIndex-=t)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+=this.tag.getRule(i)+eo;return t},e}(),Ko="style[".concat(Xn,"][").concat(Zn,'="').concat(Qn,'"]'),Xo=new RegExp("^".concat(Xn,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Jo=function(e){return"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType},Zo=function(e){if(!e)return document;if(Jo(e))return e;if("getRootNode"in e){var t=e.getRootNode();if(Jo(t))return t}return document},Qo=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},ei=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(eo),o=[],i=0,a=n.length;i<a;i++){var s=n[i].trim();if(s){var l=s.match(Xo);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(uo(c,u),Qo(e,c,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(s)}}},ti=function(e){for(var t=Zo(e.options.target).querySelectorAll(Ko),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(Xn)!==Jn&&(ei(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var ri=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Xn,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(Xn,Jn),n.setAttribute(Zn,Qn);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},ni=function(){function e(e){this.element=ri(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){var t;if(e.sheet)return e.sheet;for(var r=null!==(t=e.getRootNode().styleSheets)&&void 0!==t?t:document.styleSheets,n=0,o=r.length;n<o;n++){var i=r[n];if(i.ownerNode===e)return i}throw oo(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}(),oi=function(){function e(e){this.element=ri(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,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}(),ii=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(e===this.length?this.rules.push(t):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}(),ai=to,si={isServer:!to,useCSSOMInjection:!ro},li=function(){function e(e,t,r){void 0===e&&(e=po),void 0===t&&(t={});var n=this;this.options=Kr(Kr({},si),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&to&&ai&&(ai=!1,ti(this)),Go(this,function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return ao.get(e)}(r);if(void 0===o)return"continue";var i=e.names.get(o);if(void 0===i||!i.size)return"continue";var a=t.getGroup(r);if(0===a.length)return"continue";var s=Xn+".g"+r+'[id="'+o+'"]',l="";i.forEach(function(e){e.length>0&&(l+=e+",")}),n+=a+s+'{content:"'+l+'"}'+eo},i=0;i<r;i++)o(i);return n}(n)})}return e.registerId=function(e){return lo(e)},e.prototype.rehydrate=function(){!this.server&&to&&ti(this)},e.prototype.reconstructWithOptions=function(t,r){void 0===r&&(r=!0);var n=new e(Kr(Kr({},this.options),t),this.gs,r&&this.names||void 0);return!this.server&&to&&t.target!==this.options.target&&Zo(this.options.target)!==Zo(t.target)&&ti(n),n},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,r=e.target;return e.isServer?new ii(r):t?new ni(r):new oi(r)}(this.options),new Yo(e)));var e},e.prototype.hasNameForId=function(e,t){var r,n;return null!==(n=null===(r=this.names.get(e))||void 0===r?void 0:r.has(t))&&void 0!==n&&n},e.prototype.registerName=function(e,t){lo(e);var r=this.names.get(e);r?r.add(t):this.names.set(e,new Set([t]))},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(lo(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(lo(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}();function ui(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in Jr||e.startsWith("--")?String(t).trim():"".concat(t,"px")}var ci=function(e){return e>="A"&&e<="Z"};function di(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;ci(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var pi=Symbol.for("sc-keyframes");var fi=function(e){return null==e||!1===e||""===e},hi=function(e){var t=[];for(var r in e){var n=e[r];e.hasOwnProperty(r)&&!fi(n)&&(Array.isArray(n)&&n.isCss||$o(n)?t.push("".concat(di(r),":"),n,";"):Vo(n)?t.push.apply(t,Xr(Xr(["".concat(r," {")],hi(n),!1),["}"],!1)):t.push("".concat(di(r),": ").concat(ui(r,n),";")))}return t};function mi(e,t,r,n,o){if(void 0===o&&(o=[]),"string"==typeof e)return e&&o.push(e),o;if(fi(e))return o;if(Ho(e))return o.push(".".concat(e.styledComponentId)),o;var i;if($o(e))return!$o(i=e)||i.prototype&&i.prototype.isReactComponent||!t?(o.push(e),o):mi(e(t),t,r,n,o);if(function(e){return"object"==typeof e&&null!==e&&pi in e}(e))return r?(e.inject(r,n),o.push(e.getName(n))):o.push(e),o;if(Vo(e)){for(var a=hi(e),s=0;s<a.length;s++)o.push(a[s]);return o}if(!Array.isArray(e))return o.push(e.toString()),o;for(s=0;s<e.length;s++)mi(e[s],t,r,n,o);return o}function gi(e){for(var t=0;t<e.length;t+=1){var r=e[t];if($o(r)&&!Ho(r))return!1}return!0}var vi=Co(Qn),bi=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&gi(e),this.componentId=t,this.baseHash=wo(vi,t),this.baseStyle=r,li.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r).className:"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=Bo(n,this.staticRulesId);else{var o=Wo(mi(this.rules,e,t,r)),i=xo(wo(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=r(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}n=Bo(n,i),this.staticRulesId=i}else{for(var s=wo(this.baseHash,r.hash),l="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)l+=c;else if(c){var d=Wo(mi(c,e,t,r));s=wo(wo(s,String(u)),d),l+=d}}if(l){var p=xo(s>>>0);if(!t.hasNameForId(this.componentId,p)){var f=r(l,".".concat(p),void 0,this.componentId);t.insertRules(this.componentId,p,f)}n=Bo(n,p)}}return{className:n,css:"undefined"==typeof window?t.getTag().getGroup(lo(this.componentId)):""}},e}(),yi=/&/g,xi=47,Si=42;function wi(e){if(-1===e.indexOf("}"))return!1;for(var t=e.length,r=0,n=0,o=!1,i=0;i<t;i++){var a=e.charCodeAt(i);if(0!==n||o||a!==xi||e.charCodeAt(i+1)!==Si)if(o)a===Si&&e.charCodeAt(i+1)===xi&&(o=!1,i++);else if(34!==a&&39!==a||0!==i&&92===e.charCodeAt(i-1)){if(0===n)if(123===a)r++;else if(125===a&&--r<0)return!0}else 0===n?n=a:n===a&&(n=0);else o=!0,i++}return 0!==r||0!==n}function Ci(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=Ci(e.children,t)),e})}function Ei(e){var t,r,n,o=void 0===e?po:e,i=o.options,a=void 0===i?po:i,s=o.plugins,l=void 0===s?co:s,u=function(e,n,o){return o.startsWith(r)&&o.endsWith(r)&&o.replaceAll(r,"").length>0?".".concat(t):e},c=l.slice();c.push(function(e){e.type===rn&&e.value.includes("&")&&(n||(n=new RegExp("\\".concat(r,"\\b"),"g")),e.props[0]=e.props[0].replace(yi,r).replace(n,u))}),a.prefix&&c.push(Kn),c.push(Yn);var d,p=[],f=function(e){var t=vn(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}(c.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)}))),h=function(e,o,i,s){void 0===o&&(o=""),void 0===i&&(i=""),void 0===s&&(s="&"),t=s,r=o,n=void 0;var l=function(e){if(!wi(e))return e;for(var t=e.length,r="",n=0,o=0,i=0,a=!1,s=0;s<t;s++){var l=e.charCodeAt(s);if(0!==i||a||l!==xi||e.charCodeAt(s+1)!==Si)if(a)l===Si&&e.charCodeAt(s+1)===xi&&(a=!1,s++);else if(34!==l&&39!==l||0!==s&&92===e.charCodeAt(s-1)){if(0===i)if(123===l)o++;else if(125===l){if(--o<0){for(var u=s+1;u<t;){var c=e.charCodeAt(u);if(59===c||10===c)break;u++}u<t&&59===e.charCodeAt(u)&&u++,o=0,s=u-1,n=u;continue}0===o&&(r+=e.substring(n,s+1),n=s+1)}else 59===l&&0===o&&(r+=e.substring(n,s+1),n=s+1)}else 0===i?i=l:i===l&&(i=0);else a=!0,s++}if(n<t){var d=e.substring(n);wi(d)||(r+=d)}return r}(function(e){if(-1===e.indexOf("//"))return e;for(var t=e.length,r=[],n=0,o=0,i=0,a=0;o<t;){var s=e.charCodeAt(o);if(34!==s&&39!==s||0!==o&&92===e.charCodeAt(o-1))if(0===i)if(s===xi&&o+1<t&&e.charCodeAt(o+1)===Si){for(o+=2;o+1<t&&(e.charCodeAt(o)!==Si||e.charCodeAt(o+1)!==xi);)o++;o+=2}else if(40===s&&o>=3&&108==(32|e.charCodeAt(o-1))&&114==(32|e.charCodeAt(o-2))&&117==(32|e.charCodeAt(o-3)))a=1,o++;else if(a>0)41===s?a--:40===s&&a++,o++;else if(s===Si&&o+1<t&&e.charCodeAt(o+1)===xi)o>n&&r.push(e.substring(n,o)),n=o+=2;else if(s===xi&&o+1<t&&e.charCodeAt(o+1)===xi){for(o>n&&r.push(e.substring(n,o));o<t&&10!==e.charCodeAt(o);)o++;n=o}else o++;else o++;else 0===i?i=s:i===s&&(i=0),o++}return 0===n?e:(n<t&&r.push(e.substring(n)),r.join(""))}(e)),u=$n(i||o?"".concat(i," ").concat(o," { ").concat(l," }"):l);return a.namespace&&(u=Ci(u,a.namespace)),p=[],Gn(u,f),p};return h.hash=l.length?l.reduce(function(e,t){return t.name||oo(15),wo(e,t.name)},5381).toString():"",h}var Ri=new li,Ai=Ei(),Pi=S.createContext({shouldForwardProp:void 0,styleSheet:Ri,stylis:Ai});Pi.Consumer;var Mi=S.createContext(void 0);function Ii(){return S.useContext(Pi)}function ki(e){if(!S.useMemo)return e.children;var t=Ii().styleSheet,r=S.useMemo(function(){var r=t;return e.sheet?r=e.sheet:e.target&&(r=r.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(r=r.reconstructWithOptions({useCSSOMInjection:!1})),r},[e.disableCSSOMInjection,e.sheet,e.target,t]),n=S.useMemo(function(){return Ei({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:e.stylisPlugins})},[e.enableVendorPrefixes,e.namespace,e.stylisPlugins]),o=S.useMemo(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:r,stylis:n}},[e.shouldForwardProp,r,n]);return S.createElement(Pi.Provider,{value:o},S.createElement(Mi.Provider,{value:n},e.children))}var Di=S.createContext(void 0);Di.Consumer;var Ti={};function Oi(e,t,r){var n=Ho(e),o=e,i=!Ro(e),a=t.attrs,s=void 0===a?co:a,l=t.componentId,u=void 0===l?function(e,t){var r="string"!=typeof e?"sc":vo(e);Ti[r]=(Ti[r]||0)+1;var n="".concat(r,"-").concat(Eo(Qn+r+Ti[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):l,c=t.displayName,d=void 0===c?function(e){return Ro(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(vo(t.displayName),"-").concat(t.componentId):t.componentId||u,f=n&&o.attrs?o.attrs.concat(s).filter(Boolean):s,h=t.shouldForwardProp;if(n&&o.shouldForwardProp){var m=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;h=function(e,t){return m(e,t)&&g(e,t)}}else h=m}var v=new bi(r,p,n?o.componentStyle:void 0);function b(e,t){return function(e,t,r){var n=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,s=e.styledComponentId,l=e.target,u=S.useContext(Di),c=Ii(),d=e.shouldForwardProp||c.shouldForwardProp,p=fo(t,u,i)||po,f=function(e,t,r){for(var n,o=Kr(Kr({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=$o(n=e[i])?n(o):n;for(var s in a)"className"===s?o.className=Bo(o.className,a[s]):"style"===s?o.style=Kr(Kr({},o.style),a[s]):s in t&&void 0===t[s]||(o[s]=a[s])}return"className"in t&&"string"==typeof t.className&&(o.className=Bo(o.className,t.className)),o}(n,t,p),h=f.as||l,m={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?m.as=f.forwardedAs:d&&!d(g,h)||(m[g]=f[g]));var v=function(e,t){var r=Ii();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(o,f),b=v.className,y=Bo(a,s);return b&&(y+=" "+b),f.className&&(y+=" "+f.className),m[Ro(h)&&!ho.has(h)?"class":"className"]=y,r&&(m.ref=r),w(h,m)}(y,e,t)}b.displayName=d;var y=S.forwardRef(b);return y.attrs=f,y.componentStyle=v,y.displayName=d,y.shouldForwardProp=h,y.foldedComponentIds=n?Bo(o.foldedComponentIds,o.styledComponentId):"",y.styledComponentId=p,y.target=n?o.target:e,Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=n?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,o=t;n<o.length;n++)Uo(e,o[n],!0);return e}({},o.defaultProps,e):e}}),Go(y,function(){return".".concat(y.styledComponentId)}),i&&Fo(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function Li(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var qi=function(e){return Object.assign(e,{isCss:!0})};function Ni(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if($o(e)||Vo(e))return qi(mi(Li(co,Xr([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?mi(n):qi(mi(Li(n,t)))}function _i(e,t,r){if(void 0===r&&(r=po),!t)throw oo(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,Ni.apply(void 0,Xr([n],o,!1)))};return n.attrs=function(n){return _i(e,t,Kr(Kr({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return _i(e,t,Kr(Kr({},r),n))},n}var ji=function(e){return _i(Oi,e)},zi=ji;ho.forEach(function(e){zi[e]=ji(e)});var Fi,$i=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=gi(e),li.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(Wo(mi(this.rules,t,r,n)),""),i=this.componentId+e;r.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,r,n){e>2&&li.registerId(this.componentId+e);var o=this.componentId+e;this.isStatic?r.hasNameForId(o,o)||this.createStyles(e,t,r,n):(this.removeStyles(e,r),this.createStyles(e,t,r,n))},e}();var Hi=function(){function e(e,t){var r=this;this[Fi]=!0,this.inject=function(e,t){void 0===t&&(t=Ai);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Go(this,function(){throw oo(12,String(r.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=Ai),this.name+e.hash},e}();function Bi(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Wo(Ni.apply(void 0,Xr([e],t,!1))),o=Eo(n);return new Hi(o,n)}Fi=pi;var Wi={exports:{}};function Vi(){}function Ui(){}Ui.resetWarningCache=Vi;Wi.exports=function(){function e(e,t,r,n,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 r={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:Ui,resetWarningCache:Vi};return r.PropTypes=r,r}();var Gi=Zt(Wi.exports);function Yi(e){const{injectFirst:t,children:r}=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 r}Yi.propTypes={children:Gi.node,injectFirst:Gi.bool};const Ki=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Ni.apply(void 0,Xr([e],t,!1)),o="sc-global-".concat(Eo(JSON.stringify(n))),i=new $i(n,o),a=new WeakMap,s=function(e){var t=Ii(),r=S.useContext(Di),n=a.get(t.styleSheet);return void 0===n&&(n=t.styleSheet.allocateGSInstance(o),a.set(t.styleSheet,n)),S.useLayoutEffect(function(){return t.styleSheet.server||function(e,t,r,n,o){if(i.isStatic)i.renderStyles(e,no,r,o);else{var a=Kr(Kr({},t),{theme:fo(t,n,s.defaultProps)});i.renderStyles(e,a,r,o)}}(n,e,t.styleSheet,r,t.stylis),function(){i.removeStyles(n,t.styleSheet)}},[n,e,t.styleSheet,r,t.stylis]),null};return S.memo(s)}(e=>{const{styles:t,defaultTheme:r={}}=e;return"function"==typeof t?t(null==(n=e.theme)||0===Object.keys(n).length?r:e.theme):t;var n});
|
|
9
|
+
e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,s,l,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0===+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(m="",b=(d=t[0]).length%l,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-b+1)%l)&&y<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),h+(r?"-":"")+n+x}},Rt({exports:{}});const Nt=()=>{let e;return{promise:new Promise(t=>{e=t}),resolve:e}};function jt(t,r){return e(()=>t,r)}const _t={},zt=()=>{const{viewState:n}=t(),o=(t=>{const r=e(()=>({current:_t}),[]);return r.current=r.current===_t?t:r.current,r})(new Set),i=void 0!==window.qlikprinting,{promise:a,resolve:s}=e(()=>Nt(),[]),l=jt(e=>{o.current.add(e)},[o]),u=jt(function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var n=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout(function(){return e.apply(n,i)},r)}}(async()=>{await Promise.all(o.current),o.current.clear(),s()},1e3),[s,o]);return r(async()=>{await a},[a]),e(()=>({viewState:n,isDownloadedAsPDForImage:i,notifyIsDoneRendering:u,waitForPromise:l}),[u,i,n,l])},Ft={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"},$t={WHITE:"#FFFFFF",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...Ft,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},Ht=12,Bt=14,Wt=16,Vt=24,Ut=3,Gt=300,Yt=400,Kt=600,Xt=700,Jt={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function Zt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Qt(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var er={exports:{}},tr={},rr=S,nr=Symbol.for("react.element"),or=Symbol.for("react.fragment"),ir=Object.prototype.hasOwnProperty,ar=rr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,sr={key:!0,ref:!0,__self:!0,__source:!0};function lr(e,t,r){var n,o={},i=null,a=null;for(n in void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)ir.call(t,n)&&!sr.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:nr,type:e,key:i,ref:a,props:o,_owner:ar.current}}tr.Fragment=or,tr.jsx=lr,tr.jsxs=lr,er.exports=tr;var ur=er.exports;const cr={black:"#000",white:"#fff"},dr="#e57373",pr="#ef5350",fr="#f44336",hr="#d32f2f",mr="#c62828",gr="#f3e5f5",br="#ce93d8",vr="#ba68c8",yr="#ab47bc",xr="#9c27b0",Sr="#7b1fa2",wr="#e3f2fd",Cr="#90caf9",Er="#42a5f5",Rr="#1976d2",Ar="#1565c0",Mr="#4fc3f7",Pr="#29b6f6",Ir="#03a9f4",kr="#0288d1",Dr="#01579b",Tr="#81c784",Or="#66bb6a",Lr="#4caf50",qr="#388e3c",Nr="#2e7d32",jr="#1b5e20",_r="#ffb74d",zr="#ffa726",Fr="#ff9800",$r="#f57c00",Hr="#e65100",Br={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 Wr(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 Vr=Object.freeze({__proto__:null,default:Wr}),Ur="$$material";function Gr(){return Gr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gr.apply(null,arguments)}function Yr(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}var Kr="-ms-",Xr="-moz-",Jr="-webkit-",Zr="comm",Qr="rule",en="decl",tn="@import",rn="@keyframes",nn=Math.abs,on=String.fromCharCode,an=Object.assign;function sn(e){return e.trim()}function ln(e,t){return(e=t.exec(e))?e[0]:e}function un(e,t,r){return e.replace(t,r)}function cn(e,t,r){return e.indexOf(t,r)}function dn(e,t){return 0|e.charCodeAt(t)}function pn(e,t,r){return e.slice(t,r)}function fn(e){return e.length}function hn(e){return e.length}function mn(e,t){return t.push(e),e}function gn(e,t){return e.filter(function(e){return!ln(e,t)})}var bn,vn,yn=1,xn=1,Sn=0,wn=0,Cn=0,En="";function Rn(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:yn,column:xn,length:a,return:"",siblings:s}}function An(e,t){return an(Rn("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Mn(e){for(;e.root;)e=An(e.root,{children:[e]});mn(e,e.siblings)}function Pn(){return Cn=wn>0?dn(En,--wn):0,xn--,10===Cn&&(xn=1,yn--),Cn}function In(){return Cn=wn<Sn?dn(En,wn++):0,xn++,10===Cn&&(xn=1,yn++),Cn}function kn(){return dn(En,wn)}function Dn(){return wn}function Tn(e,t){return pn(En,e,t)}function On(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 Ln(e){return sn(Tn(wn-1,jn(91===e?e+2:40===e?e+1:e)))}function qn(e){for(;(Cn=kn())&&Cn<33;)In();return On(e)>2||On(Cn)>3?"":" "}function Nn(e,t){for(;--t&&In()&&!(Cn<48||Cn>102||Cn>57&&Cn<65||Cn>70&&Cn<97););return Tn(e,Dn()+(t<6&&32==kn()&&32==In()))}function jn(e){for(;In();)switch(Cn){case e:return wn;case 34:case 39:34!==e&&39!==e&&jn(Cn);break;case 40:41===e&&jn(e);break;case 92:In()}return wn}function _n(e,t){for(;In()&&e+Cn!==57&&(e+Cn!==84||47!==kn()););return"/*"+Tn(t,wn-1)+"*"+on(47===e?e:In())}function zn(e){for(;!On(kn());)In();return Tn(e,wn)}function Fn(e){return function(e){return En="",e}($n("",null,null,null,[""],e=function(e){return yn=xn=1,Sn=fn(En=e),wn=0,[]}(e),0,[0],e))}function $n(e,t,r,n,o,i,a,s,l){for(var u=0,c=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,v=0,y="",x=o,S=i,w=n,C=y;g;)switch(h=v,v=In()){case 40:if(108!=h&&58==dn(C,d-1)){-1!=cn(C+=un(Ln(v),"&","&\f"),"&\f",nn(u?s[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=Ln(v);break;case 9:case 10:case 13:case 32:C+=qn(h);break;case 92:C+=Nn(Dn()-1,7);continue;case 47:switch(kn()){case 42:case 47:mn(Bn(_n(In(),Dn()),t,r,l),l),5!=On(h||1)&&5!=On(kn()||1)||!fn(C)||" "===pn(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*m:s[u++]=fn(C)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=un(C,/\f/g,"")),f>0&&(fn(C)-d||0===m&&47===h)&&mn(f>32?Wn(C+";",n,r,d-1,l):Wn(un(C," ","")+";",n,r,d-2,l),l);break;case 59:C+=";";default:if(mn(w=Hn(C,t,r,u,c,o,s,y,x=[],S=[],d,i),i),123===v)if(0===c)$n(C,t,w,w,x,i,d,s,S);else{switch(p){case 99:if(110===dn(C,3))break;case 108:if(97===dn(C,2))break;default:c=0;case 100:case 109:case 115:}c?$n(e,w,w,n&&mn(Hn(e,w,w,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S):$n(C,w,w,w,[""],S,0,s,S)}}u=c=f=0,m=b=1,y=C="",d=a;break;case 58:d=1+fn(C),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==Pn())continue;switch(C+=on(v),v*m){case 38:b=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(fn(C)-1)*b,b=1;break;case 64:45===kn()&&(C+=Ln(In())),p=kn(),c=d=fn(y=C+=zn(Dn())),v++;break;case 45:45===h&&2==fn(C)&&(m=0)}}return i}function Hn(e,t,r,n,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],h=hn(f),m=0,g=0,b=0;m<n;++m)for(var v=0,y=pn(e,p+1,p=nn(g=a[m])),x=e;v<h;++v)(x=sn(g>0?f[v]+" "+y:un(y,/&\f/g,f[v])))&&(l[b++]=x);return Rn(e,t,r,0===o?Qr:s,l,u,c,d)}function Bn(e,t,r,n){return Rn(e,t,r,Zr,on(Cn),pn(e,2,-2),0,n)}function Wn(e,t,r,n,o){return Rn(e,t,r,en,pn(e,0,n),pn(e,n+1,-1),n,o)}function Vn(e,t,r){switch(function(e,t){return 45^dn(e,0)?(((t<<2^dn(e,0))<<2^dn(e,1))<<2^dn(e,2))<<2^dn(e,3):0}(e,t)){case 5103:return Jr+"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 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return Jr+e+e;case 4855:return Jr+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Xr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Jr+e+Xr+e+Kr+e+e;case 5936:switch(dn(e,t+11)){case 114:return Jr+e+Kr+un(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Jr+e+Kr+un(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Jr+e+Kr+un(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Jr+e+Kr+e+e;case 6165:return Jr+e+Kr+"flex-"+e+e;case 5187:return Jr+e+un(e,/(\w+).+(:[^]+)/,Jr+"box-$1$2"+Kr+"flex-$1$2")+e;case 5443:return Jr+e+Kr+"flex-item-"+un(e,/flex-|-self/g,"")+(ln(e,/flex-|baseline/)?"":Kr+"grid-row-"+un(e,/flex-|-self/g,""))+e;case 4675:return Jr+e+Kr+"flex-line-pack"+un(e,/align-content|flex-|-self/g,"")+e;case 5548:return Jr+e+Kr+un(e,"shrink","negative")+e;case 5292:return Jr+e+Kr+un(e,"basis","preferred-size")+e;case 6060:return Jr+"box-"+un(e,"-grow","")+Jr+e+Kr+un(e,"grow","positive")+e;case 4554:return Jr+un(e,/([^-])(transform)/g,"$1"+Jr+"$2")+e;case 6187:return un(un(un(e,/(zoom-|grab)/,Jr+"$1"),/(image-set)/,Jr+"$1"),e,"")+e;case 5495:case 3959:return un(e,/(image-set\([^]*)/,Jr+"$1$`$1");case 4968:return un(un(e,/(.+:)(flex-)?(.*)/,Jr+"box-pack:$3"+Kr+"flex-pack:$3"),/space-between/,"justify")+Jr+e+e;case 4200:if(!ln(e,/flex-|baseline/))return Kr+"grid-column-align"+pn(e,t)+e;break;case 2592:case 3360:return Kr+un(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(e,r){return t=r,ln(e.props,/grid-\w+-end/)})?~cn(e+(r=r[t].value),"span",0)?e:Kr+un(e,"-start","")+e+Kr+"grid-row-span:"+(~cn(r,"span",0)?ln(r,/\d+/):+ln(r,/\d+/)-+ln(e,/\d+/))+";":Kr+un(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(e){return ln(e.props,/grid-\w+-start/)})?e:Kr+un(un(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return un(e,/(.+)-inline(.+)/,Jr+"$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(fn(e)-1-t>6)switch(dn(e,t+1)){case 109:if(45!==dn(e,t+4))break;case 102:return un(e,/(.+:)(.+)-([^]+)/,"$1"+Jr+"$2-$3$1"+Xr+(108==dn(e,t+3)?"$3":"$2-$3"))+e;case 115:return~cn(e,"stretch",0)?Vn(un(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return un(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,r,n,o,i,a,s){return Kr+r+":"+n+s+(o?Kr+r+"-span:"+(i?a:+a-+n)+s:"")+e});case 4949:if(121===dn(e,t+6))return un(e,":",":"+Jr)+e;break;case 6444:switch(dn(e,45===dn(e,14)?18:11)){case 120:return un(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Jr+(45===dn(e,14)?"inline-":"")+"box$3$1"+Jr+"$2$3$1"+Kr+"$2box$3")+e;case 100:return un(e,":",":"+Kr)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return un(e,"scroll-","scroll-snap-")+e}return e}function Un(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Gn(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case tn:case"@namespace":case en:return e.return=e.return||e.value;case Zr:return"";case rn:return e.return=e.value+"{"+Un(e.children,n)+"}";case Qr:if(!fn(e.value=e.props.join(",")))return""}return fn(r=Un(e.children,n))?e.return=e.value+"{"+r+"}":""}function Yn(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case en:return void(e.return=Vn(e.value,e.length,r));case rn:return Un([An(e,{value:un(e.value,"@","@"+Jr)})],n);case Qr:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,function(t){switch(ln(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Mn(An(e,{props:[un(t,/:(read-\w+)/,":-moz-$1")]})),Mn(An(e,{props:[t]})),an(e,{props:gn(r,n)});break;case"::placeholder":Mn(An(e,{props:[un(t,/:(plac\w+)/,":"+Jr+"input-$1")]})),Mn(An(e,{props:[un(t,/:(plac\w+)/,":-moz-$1")]})),Mn(An(e,{props:[un(t,/:(plac\w+)/,Kr+"input-$1")]})),Mn(An(e,{props:[t]})),an(e,{props:gn(r,n)})}return""})}}const Kn="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Xn="active",Jn="data-styled-version",Zn="6.4.0",Qn="/*!sc*/\n",eo="undefined"!=typeof window&&"undefined"!=typeof document;function to(e){if("undefined"!=typeof process&&void 0!==process.env){const t=process.env[e];if(void 0!==t&&""!==t)return"false"!==t}}const ro=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:null!==(vn=null!==(bn=to("REACT_APP_SC_DISABLE_SPEEDY"))&&void 0!==bn?bn:to("SC_DISABLE_SPEEDY"))&&void 0!==vn?vn:"undefined"==typeof process||void 0===process.env||!1),no="sc-keyframes-",oo={};function io(e,...t){return new Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e} for more information.${t.length>0?` Args: ${t.join(", ")}`:""}`)}let ao=new Map,so=new Map,lo=1;const uo=e=>{if(ao.has(e))return ao.get(e);for(;so.has(lo);)lo++;const t=lo++;return ao.set(e,t),so.set(t,e),t},co=e=>so.get(e),po=(e,t)=>{lo=t+1,ao.set(e,t),so.set(t,e)},fo=Object.freeze([]),ho=Object.freeze({});function mo(e,t,r=ho){return e.theme!==r.theme&&e.theme||t||r.theme}const go=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,bo=/(^-|-$)/g;function vo(e){return e.replace(go,"-").replace(bo,"")}const yo=/(a)(d)/gi,xo=e=>String.fromCharCode(e+(e>25?39:97));function So(e){let t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=xo(t%52)+r;return(xo(t%52)+r).replace(yo,"$1-$2")}const wo=5381,Co=(e,t)=>{let r=t.length;for(;r;)e=33*e^t.charCodeAt(--r);return e},Eo=e=>Co(wo,e);function Ro(e){return So(Eo(e)>>>0)}function Ao(e){return"string"==typeof e&&!0}function Mo(e){return Ao(e)?`styled.${e}`:`Styled(${function(e){return e.displayName||e.name||"Component"}(e)})`}const Po=Symbol.for("react.memo"),Io=Symbol.for("react.forward_ref"),ko={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},Do={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},To={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Oo={[Io]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[Po]:To};function Lo(e){return("type"in(t=e)&&t.type.$$typeof)===Po?To:"$$typeof"in e?Oo[e.$$typeof]:ko;var t}const qo=Object.defineProperty,No=Object.getOwnPropertyNames,jo=Object.getOwnPropertySymbols,_o=Object.getOwnPropertyDescriptor,zo=Object.getPrototypeOf,Fo=Object.prototype;function $o(e,t,r){if("string"!=typeof t){const n=zo(t);n&&n!==Fo&&$o(e,n,r);const o=No(t).concat(jo(t)),i=Lo(e),a=Lo(t);for(let n=0;n<o.length;++n){const s=o[n];if(!(s in Do||r&&r[s]||a&&s in a||i&&s in i)){const r=_o(t,s);try{qo(e,s,r)}catch(e){}}}}return e}function Ho(e){return"function"==typeof e}function Bo(e){return"object"==typeof e&&"styledComponentId"in e}function Wo(e,t){return e&&t?e+" "+t:e||t||""}function Vo(e,t){return e.join("")}function Uo(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Go(e,t,r=!1){if(!r&&!Uo(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let r=0;r<t.length;r++)e[r]=Go(e[r],t[r]);else if(Uo(t))for(const r in t)e[r]=Go(e[r],t[r]);return e}function Yo(e,t){Object.defineProperty(e,"toString",{value:t})}const Ko=class{constructor(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}indexOfGroup(e){if(e===this._cGroup)return this._cIndex;let t=this._cIndex;if(e>this._cGroup)for(let r=this._cGroup;r<e;r++)t+=this.groupSizes[r];else for(let r=this._cGroup-1;r>=e;r--)t-=this.groupSizes[r];return this._cGroup=e,this._cIndex=t,t}insertRules(e,t){if(e>=this.groupSizes.length){const t=this.groupSizes,r=t.length;let n=r;for(;e>=n;)if(n<<=1,n<0)throw io(16,`${e}`);this.groupSizes=new Uint32Array(n),this.groupSizes.set(t),this.length=n;for(let e=r;e<n;e++)this.groupSizes[e]=0}let r=this.indexOfGroup(e+1),n=0;for(let o=0,i=t.length;o<i;o++)this.tag.insertRule(r,t[o])&&(this.groupSizes[e]++,r++,n++);n>0&&this._cGroup>e&&(this._cIndex+=n)}clearGroup(e){if(e<this.length){const t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(let e=r;e<n;e++)this.tag.deleteRule(r);t>0&&this._cGroup>e&&(this._cIndex-=t)}}getGroup(e){let t="";if(e>=this.length||0===this.groupSizes[e])return t;const r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r;for(let e=n;e<o;e++)t+=this.tag.getRule(e)+Qn;return t}},Xo=`style[${Kn}][${Jn}="${Zn}"]`,Jo=new RegExp(`^${Kn}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),Zo=e=>"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType,Qo=e=>{if(!e)return document;if(Zo(e))return e;if("getRootNode"in e){const t=e.getRootNode();if(Zo(t))return t}return document},ei=(e,t,r)=>{const n=r.split(",");let o;for(let r=0,i=n.length;r<i;r++)(o=n[r])&&e.registerName(t,o)},ti=(e,t)=>{var r;const n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(Qn),o=[];for(let t=0,r=n.length;t<r;t++){const r=n[t].trim();if(!r)continue;const i=r.match(Jo);if(i){const t=0|parseInt(i[1],10),r=i[2];0!==t&&(po(r,t),ei(e,r,i[3]),e.getTag().insertRules(t,o)),o.length=0}else o.push(r)}},ri=e=>{const t=Qo(e.options.target).querySelectorAll(Xo);for(let r=0,n=t.length;r<n;r++){const n=t[r];n&&n.getAttribute(Kn)!==Xn&&(ti(e,n),n.parentNode&&n.parentNode.removeChild(n))}};let ni=!1;const oi=(e,t)=>{const r=document.head,n=e||r,o=document.createElement("style"),i=(e=>{const t=Array.from(e.querySelectorAll(`style[${Kn}]`));return t[t.length-1]})(n),a=void 0!==i?i.nextSibling:null;o.setAttribute(Kn,Xn),o.setAttribute(Jn,Zn);const s=t||function(){if(!1!==ni)return ni;if("undefined"!=typeof document){const e=document.head.querySelector('meta[property="csp-nonce"]');if(e)return ni=e.nonce||e.getAttribute("content")||void 0;const t=document.head.querySelector('meta[name="sc-nonce"]');if(t)return ni=t.getAttribute("content")||void 0}return ni="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0}();return s&&o.setAttribute("nonce",s),n.insertBefore(o,a),o},ii=class{constructor(e,t){this.element=oi(e,t),this.element.appendChild(document.createTextNode("")),this.sheet=(e=>{var t;if(e.sheet)return e.sheet;const r=null!==(t=e.getRootNode().styleSheets)&&void 0!==t?t:document.styleSheets;for(let t=0,n=r.length;t<n;t++){const n=r[t];if(n.ownerNode===e)return n}throw io(17)})(this.element),this.length=0}insertRule(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}}deleteRule(e){this.sheet.deleteRule(e),this.length--}getRule(e){const t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""}},ai=class{constructor(e,t){this.element=oi(e,t),this.nodes=this.element.childNodes,this.length=0}insertRule(e,t){if(e<=this.length&&e>=0){const r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1}deleteRule(e){this.element.removeChild(this.nodes[e]),this.length--}getRule(e){return e<this.length?this.nodes[e].textContent:""}};let si=eo;const li={isServer:!eo,useCSSOMInjection:!ro};class ui{static registerId(e){return uo(e)}constructor(e=ho,t={},r){this.options=Object.assign(Object.assign({},li),e),this.gs=t,this.keyframeIds=new Set,this.names=new Map(r),this.server=!!e.isServer,!this.server&&eo&&si&&(si=!1,ri(this)),Yo(this,()=>(e=>{const t=e.getTag(),{length:r}=t;let n="";for(let o=0;o<r;o++){const r=co(o);if(void 0===r)continue;const i=e.names.get(r);if(void 0===i||!i.size)continue;const a=t.getGroup(o);if(0===a.length)continue;const s=Kn+".g"+o+'[id="'+r+'"]';let l="";for(const e of i)e.length>0&&(l+=e+",");n+=a+s+'{content:"'+l+'"}'+Qn}return n})(this))}rehydrate(){!this.server&&eo&&ri(this)}reconstructWithOptions(e,t=!0){const r=new ui(Object.assign(Object.assign({},this.options),e),this.gs,t&&this.names||void 0);return r.keyframeIds=new Set(this.keyframeIds),!this.server&&eo&&e.target!==this.options.target&&Qo(this.options.target)!==Qo(e.target)&&ri(r),r}allocateGSInstance(e){return this.gs[e]=(this.gs[e]||0)+1}getTag(){return this.tag||(this.tag=(e=(({useCSSOMInjection:e,target:t,nonce:r})=>e?new ii(t,r):new ai(t,r))(this.options),new Ko(e)));var e}hasNameForId(e,t){var r,n;return null!==(n=null===(r=this.names.get(e))||void 0===r?void 0:r.has(t))&&void 0!==n&&n}registerName(e,t){uo(e),e.startsWith(no)&&this.keyframeIds.add(e);const r=this.names.get(e);r?r.add(t):this.names.set(e,new Set([t]))}insertRules(e,t,r){this.registerName(e,t),this.getTag().insertRules(uo(e),r)}clearNames(e){this.names.has(e)&&this.names.get(e).clear()}clearRules(e){this.getTag().clearGroup(uo(e)),this.clearNames(e)}clearTag(){this.tag=void 0}}const ci=new WeakSet,di={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale: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};function pi(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in di||e.startsWith("--")?String(t).trim():t+"px"}const fi=e=>e>="A"&&e<="Z";function hi(e){let t="";for(let r=0;r<e.length;r++){const n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;fi(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}const mi=Symbol.for("sc-keyframes");function gi(e){return Ho(e)&&!(e.prototype&&e.prototype.isReactComponent)}const bi=e=>null==e||!1===e||""===e,vi=Symbol.for("react.client.reference");function yi(e){return e.$$typeof===vi}const xi=e=>{const t=[];for(const r in e){const n=e[r];e.hasOwnProperty(r)&&!bi(n)&&(Array.isArray(n)&&ci.has(n)||Ho(n)?t.push(hi(r)+":",n,";"):Uo(n)?t.push(r+" {",...xi(n),"}"):t.push(hi(r)+": "+pi(r,n)+";"))}return t};function Si(e,t,r,n,o=[]){if(bi(e))return o;const i=typeof e;if("string"===i)return o.push(e),o;if("function"===i){if(yi(e))return o;if(gi(e)&&t){return Si(e(t),t,r,n,o)}return o.push(e),o}if(Array.isArray(e)){for(let i=0;i<e.length;i++)Si(e[i],t,r,n,o);return o}if(Bo(e))return o.push(`.${e.styledComponentId}`),o;if(function(e){return"object"==typeof e&&null!==e&&mi in e}(e))return r?(e.inject(r,n),o.push(e.getName(n))):o.push(e),o;if(yi(e))return o;if(Uo(e)){const t=xi(e);for(let e=0;e<t.length;e++)o.push(t[e]);return o}return o.push(e.toString()),o}const wi=Eo(Zn);class Ci{constructor(e,t,r){this.rules=e,this.componentId=t,this.baseHash=Co(wi,t),this.baseStyle=r,ui.registerId(t)}generateAndInjectStyles(e,t,r){let n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r):"";{let o="";for(let n=0;n<this.rules.length;n++){const i=this.rules[n];if("string"==typeof i)o+=i;else if(i)if(gi(i)){const n=i(e);"string"==typeof n?o+=n:null!=n&&!1!==n&&(o+=Vo(Si(n,e,t,r)))}else o+=Vo(Si(i,e,t,r))}if(o){this.dynamicNameCache||(this.dynamicNameCache=new Map);const e=r.hash?r.hash+o:o;let i=this.dynamicNameCache.get(e);if(!i){if(i=So(Co(Co(this.baseHash,r.hash),o)>>>0),this.dynamicNameCache.size>=200){const e=this.dynamicNameCache.keys().next().value;void 0!==e&&this.dynamicNameCache.delete(e)}this.dynamicNameCache.set(e,i)}if(!t.hasNameForId(this.componentId,i)){const e=r(o,"."+i,void 0,this.componentId);t.insertRules(this.componentId,i,e)}n=Wo(n,i)}}return n}}const Ei=/&/g,Ri=47;function Ai(e,t){let r=0;for(;--t>=0&&92===e.charCodeAt(t);)r++;return!(1&~r)}function Mi(e){const t=e.length;let r="",n=0,o=0,i=0,a=!1,s=!1;for(let l=0;l<t;l++){const u=e.charCodeAt(l);if(0!==i||a||u!==Ri||42!==e.charCodeAt(l+1))if(a)42===u&&e.charCodeAt(l+1)===Ri&&(a=!1,l++);else if(34!==u&&39!==u||Ai(e,l)){if(0===i)if(123===u)o++;else if(125===u){if(o--,o<0){s=!0;let r=l+1;for(;r<t;){const t=e.charCodeAt(r);if(59===t||10===t)break;r++}r<t&&59===e.charCodeAt(r)&&r++,o=0,l=r-1,n=r;continue}0===o&&(r+=e.substring(n,l+1),n=l+1)}else 59===u&&0===o&&(r+=e.substring(n,l+1),n=l+1)}else 0===i?i=u:i===u&&(i=0);else a=!0,l++}return s||0!==o||0!==i?(n<t&&0===o&&0===i&&(r+=e.substring(n)),r):e}function Pi(e,t){for(let r=0;r<e.length;r++){const n=e[r];if("rule"===n.type){n.value=t+" "+n.value,n.value=n.value.replaceAll(",",","+t+" ");const e=n.props,r=[];for(let n=0;n<e.length;n++)r[n]=t+" "+e[n];n.props=r}Array.isArray(n.children)&&"@keyframes"!==n.type&&(n.children=Pi(n.children,t))}return e}function Ii({options:e=ho,plugins:t=fo}=ho){let r,n,o;const i=(e,t,o)=>o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?`.${r}`:e,a=t.slice();a.push(e=>{e.type===Qr&&e.value.includes("&")&&(o||(o=new RegExp(`\\${n}\\b`,"g")),e.props[0]=e.props[0].replace(Ei,n).replace(o,i))}),e.prefix&&a.push(Yn),a.push(Gn);let s=[];const l=function(e){var t=hn(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}(a.concat((d=e=>s.push(e),function(e){e.root||(e=e.return)&&d(e)}))),u=(t,i="",a="",u="&")=>{r=u,n=i,o=void 0;const c=function(e){const t=-1!==e.indexOf("//"),r=-1!==e.indexOf("}");if(!t&&!r)return e;if(!t)return Mi(e);const n=e.length;let o="",i=0,a=0,s=0,l=0,u=0,c=!1;for(;a<n;){const t=e.charCodeAt(a);if(34!==t&&39!==t||Ai(e,a))if(0===s)if(t===Ri&&a+1<n&&42===e.charCodeAt(a+1)){for(a+=2;a+1<n&&(42!==e.charCodeAt(a)||e.charCodeAt(a+1)!==Ri);)a++;a+=2}else if(40!==t)if(41!==t)if(l>0)a++;else if(42===t&&a+1<n&&e.charCodeAt(a+1)===Ri)o+=e.substring(i,a),a+=2,i=a,c=!0;else if(t===Ri&&a+1<n&&e.charCodeAt(a+1)===Ri){for(o+=e.substring(i,a);a<n&&10!==e.charCodeAt(a);)a++;i=a,c=!0}else 123===t?u++:125===t&&u--,a++;else l>0&&l--,a++;else l++,a++;else a++;else 0===s?s=t:s===t&&(s=0),a++}return c?(i<n&&(o+=e.substring(i)),0===u?o:Mi(o)):0===u?e:Mi(e)}(t);let d=Fn(a||i?a+" "+i+" { "+c+" }":c);return e.namespace&&(d=Pi(d,e.namespace)),s=[],Un(d,l),s},c=e;var d;let p=wo;for(let e=0;e<t.length;e++)t[e].name||io(15),p=Co(p,t[e].name);return(null==c?void 0:c.namespace)&&(p=Co(p,c.namespace)),(null==c?void 0:c.prefix)&&(p=Co(p,"p")),u.hash=p!==wo?p.toString():"",u}const ki=new ui,Di=Ii(),Ti=S.createContext({shouldForwardProp:void 0,styleSheet:ki,stylis:Di,stylisPlugins:void 0});function Oi(){return S.useContext(Ti)}function Li(e){var t;const r=Oi(),{styleSheet:n}=r,o=S.useMemo(()=>{let t=n;return e.sheet?t=e.sheet:e.target?t=t.reconstructWithOptions(void 0!==e.nonce?{target:e.target,nonce:e.nonce}:{target:e.target},!1):void 0!==e.nonce&&(t=t.reconstructWithOptions({nonce:e.nonce})),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.nonce,e.sheet,e.target,n]),i=S.useMemo(()=>{var t;return void 0===e.stylisPlugins&&void 0===e.namespace&&void 0===e.enableVendorPrefixes?r.stylis:Ii({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:null!==(t=e.stylisPlugins)&&void 0!==t?t:r.stylisPlugins})},[e.enableVendorPrefixes,e.namespace,e.stylisPlugins,r.stylis,r.stylisPlugins]),a="shouldForwardProp"in e?e.shouldForwardProp:r.shouldForwardProp,s=null!==(t=e.stylisPlugins)&&void 0!==t?t:r.stylisPlugins,l=S.useMemo(()=>({shouldForwardProp:a,styleSheet:o,stylis:i,stylisPlugins:s}),[a,o,i,s]);return S.createElement(Ti.Provider,{value:l},e.children)}Ti.Consumer;const qi=S.createContext(void 0);qi.Consumer;const Ni=Object.prototype.hasOwnProperty,ji={};function _i(e,t){const r="string"!=typeof e?"sc":vo(e);ji[r]=(ji[r]||0)+1;const n=r+"-"+Ro(Zn+r+ji[r]);return t?t+"-"+n:n}function zi(e,t,r){const n=Bo(e),o=e,i=!Ao(e),{attrs:a=fo,componentId:s=_i(t.displayName,t.parentComponentId),displayName:l=Mo(e)}=t,u=t.displayName&&t.componentId?vo(t.displayName)+"-"+t.componentId:t.componentId||s,c=n&&o.attrs?o.attrs.concat(a).filter(Boolean):a;let{shouldForwardProp:d}=t;if(n&&o.shouldForwardProp){const e=o.shouldForwardProp;if(t.shouldForwardProp){const r=t.shouldForwardProp;d=(t,n)=>e(t,n)&&r(t,n)}else d=e}const p=new Ci(r,u,n?o.componentStyle:void 0);function f(e,t){return function(e,t,r){const{attrs:n,componentStyle:o,defaultProps:i,foldedComponentIds:a,styledComponentId:s,target:l}=e,u=S.useContext(qi),c=Oi(),d=e.shouldForwardProp||c.shouldForwardProp,p=mo(t,u,i)||ho;let f,h;{const e=S.useRef(null),r=e.current;if(null!==r&&r[1]===p&&r[2]===c.styleSheet&&r[3]===c.stylis&&r[7]===o&&function(e,t,r){const n=e,o=t;let i=0;for(const e in o)if(Ni.call(o,e)&&(i++,n[e]!==o[e]))return!1;return i===r}(r[0],t,r[4]))f=r[5],h=r[6];else{f=function(e,t,r){const n=Object.assign(Object.assign({},t),{className:void 0,theme:r}),o=e.length>1;for(let r=0;r<e.length;r++){const i=e[r],a=Ho(i)?i(o?Object.assign({},n):n):i;for(const e in a)"className"===e?n.className=Wo(n.className,a[e]):"style"===e?n.style=Object.assign(Object.assign({},n.style),a[e]):e in t&&void 0===t[e]||(n[e]=a[e])}return"className"in t&&"string"==typeof t.className&&(n.className=Wo(n.className,t.className)),n}(n,t,p),h=function(e,t,r,n){return e.generateAndInjectStyles(t,r,n)}(o,f,c.styleSheet,c.stylis);let r=0;for(const e in t)Ni.call(t,e)&&r++;e.current=[t,p,c.styleSheet,c.stylis,r,f,h,o]}}const m=f.as||l,g=function(e,t,r,n){const o={};for(const i in e)void 0===e[i]||"$"===i[0]||"as"===i||"theme"===i&&e.theme===r||("forwardedAs"===i?o.as=e.forwardedAs:n&&!n(i,t)||(o[i]=e[i]));return o}(f,m,p,d);let b=Wo(a,s);return h&&(b+=" "+h),f.className&&(b+=" "+f.className),g[Ao(m)&&m.includes("-")?"class":"className"]=b,r&&(g.ref=r),w(m,g)}(h,e,t)}f.displayName=l;let h=S.forwardRef(f);return h.attrs=c,h.componentStyle=p,h.displayName=l,h.shouldForwardProp=d,h.foldedComponentIds=n?Wo(o.foldedComponentIds,o.styledComponentId):"",h.styledComponentId=u,h.target=n?o.target:e,Object.defineProperty(h,"defaultProps",{get(){return this._foldedDefaultProps},set(e){this._foldedDefaultProps=n?function(e,...t){for(const r of t)Go(e,r,!0);return e}({},o.defaultProps,e):e}}),Yo(h,()=>`.${h.styledComponentId}`),i&&$o(h,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),h}var Fi=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","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","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]);function $i(e,t){const r=[e[0]];for(let n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}const Hi=e=>(ci.add(e),e);function Bi(e,...t){if(Ho(e)||Uo(e))return Hi(Si($i(fo,[e,...t])));const r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?Si(r):Hi(Si($i(r,t)))}function Wi(e,t,r=ho){if(!t)throw io(1,t);const n=(n,...o)=>e(t,r,Bi(n,...o));return n.attrs=n=>Wi(e,t,Object.assign(Object.assign({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)})),n.withConfig=n=>Wi(e,t,Object.assign(Object.assign({},r),n)),n}const Vi=e=>Wi(zi,e),Ui=Vi;Fi.forEach(e=>{Ui[e]=Vi(e)});class Gi{constructor(e,t){this.instanceRules=new Map,this.rules=e,this.componentId=t,this.isStatic=function(e){for(let t=0;t<e.length;t+=1){const r=e[t];if(Ho(r)&&!Bo(r))return!1}return!0}(e),ui.registerId(this.componentId)}removeStyles(e,t){this.instanceRules.delete(e),this.rebuildGroup(t)}renderStyles(e,t,r,n){const o=this.componentId;if(this.isStatic){if(r.hasNameForId(o,o+e))this.instanceRules.has(e)||this.computeRules(e,t,r,n);else{const i=this.computeRules(e,t,r,n);r.insertRules(o,i.name,i.rules)}return}const i=this.instanceRules.get(e);if(this.computeRules(e,t,r,n),!r.server&&i){const t=i.rules,r=this.instanceRules.get(e).rules;if(t.length===r.length){let e=!0;for(let n=0;n<t.length;n++)if(t[n]!==r[n]){e=!1;break}if(e)return}}this.rebuildGroup(r)}computeRules(e,t,r,n){const o=Vo(Si(this.rules,t,r,n)),i={name:this.componentId+e,rules:n(o,"")};return this.instanceRules.set(e,i),i}rebuildGroup(e){const t=this.componentId;e.clearRules(t);for(const r of this.instanceRules.values())e.insertRules(t,r.name,r.rules)}}var Yi;class Ki{constructor(e,t){this[Yi]=!0,this.inject=(e,t=Di)=>{const r=this.getName(t);if(!e.hasNameForId(this.id,r)){const n=t(this.rules,r,"@keyframes");e.insertRules(this.id,r,n)}},this.name=e,this.id=no+e,this.rules=t,uo(this.id),Yo(this,()=>{throw io(12,String(this.name))})}getName(e=Di){return e.hash?this.name+So(+e.hash>>>0):this.name}}function Xi(e,...t){const r=Vo(Bi(e,...t)),n=Ro(r);return new Ki(n,r)}Yi=mi;var Ji={exports:{}};function Zi(){}function Qi(){}Qi.resetWarningCache=Zi;Ji.exports=function(){function e(e,t,r,n,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 r={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:Qi,resetWarningCache:Zi};return r.PropTypes=r,r}();var ea=Zt(Ji.exports);function ta(e){const{injectFirst:t,children:r}=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 r}ta.propTypes={children:ea.node,injectFirst:ea.bool};const ra=function(e,...t){const r=Bi(e,...t),n=`sc-global-${Ro(JSON.stringify(r))}`,o=new Gi(r,n),i=e=>{const t=Oi(),r=S.useContext(qi);let i;{const e=S.useRef(null);null===e.current&&(e.current=t.styleSheet.allocateGSInstance(n)),i=e.current}t.styleSheet.server&&a(i,e,t.styleSheet,r,t.stylis);{const s=o.isStatic?[i,t.styleSheet,o]:[i,e,t.styleSheet,r,t.stylis,o],l=S.useRef(o);S.useLayoutEffect(()=>(t.styleSheet.server||(l.current!==o&&(t.styleSheet.clearRules(n),l.current=o),a(i,e,t.styleSheet,r,t.stylis)),()=>{o.removeStyles(i,t.styleSheet)}),s)}return t.styleSheet.server&&o.instanceRules.delete(i),null};function a(e,t,r,n,a){if(o.isStatic)o.renderStyles(e,oo,r,a);else{const s=Object.assign(Object.assign({},t),{theme:mo(t,n,i.defaultProps)});o.renderStyles(e,s,r,a)}}return S.memo(i)}(e=>{const{styles:t,defaultTheme:r={}}=e;return"function"==typeof t?t(null==(n=e.theme)||0===Object.keys(n).length?r:e.theme):t;var n});
|
|
10
10
|
/**
|
|
11
11
|
* @mui/styled-engine-sc v6.4.3
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,s,l,u,c,d,p=e.le
|
|
|
14
14
|
* This source code is licensed under the MIT license found in the
|
|
15
15
|
* LICENSE file in the root directory of this source tree.
|
|
16
16
|
*/
|
|
17
|
-
function Xi(e,t){let r;return r=t?zi(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):zi(e),r}function Ji(e,t){e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}function Zi(e){return e}Ki.propTypes={defaultTheme:Gi.object,styles:Gi.oneOfType([Gi.array,Gi.string,Gi.object,Gi.func])};var Qi=Object.freeze({__proto__:null,GlobalStyles:Ki,StyledEngineProvider:Yi,ThemeContext:Di,css:Ni,default:Xi,internal_mutateStyles:Ji,internal_processStyles:function(e,t){return Ji(e,t)},internal_serializeStyles:Zi,keyframes:Bi});function ea(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function ta(e){if(x.isValidElement(e)||!ea(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=ta(e[r])}),t}function ra(e,t,r={clone:!0}){const n=r.clone?Gr({},e):e;return ea(e)&&ea(t)&&Object.keys(t).forEach(o=>{x.isValidElement(t[o])?n[o]=t[o]:ea(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&ea(e[o])?n[o]=ra(e[o],t[o],r):r.clone?n[o]=ea(t[o])?ta(t[o]):t[o]:n[o]=t[o]}),n}var na=Object.freeze({__proto__:null,default:ra,isPlainObject:ea});const oa=["values","unit","step"];function ia(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Yr(e,oa),i=(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)=>Gr({},e,{[t.key]:t.val}),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return Gr({keys:a,values:i,up:s,down:l,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}const aa={borderRadius:4};function sa(e,t){return t?ra(e,t,{clone:!1}):e}const la={xs:0,sm:600,md:900,lg:1200,xl:1536},ua={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${la[e]}px)`};function ca(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||ua;return t.reduce((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n),{})}if("object"==typeof t){const e=n.breakpoints||ua;return Object.keys(t).reduce((n,o)=>{if(-1!==Object.keys(e.values||la).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n},{})}return r(t)}function da(e,t){return e.reduce((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e},t)}function pa(e){if("string"!=typeof e)throw new Error(Wr(7));return e.charAt(0).toUpperCase()+e.slice(1)}var fa=Object.freeze({__proto__:null,default:pa});function ha(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=r)return r}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function ma(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:ha(e,r)||n,t&&(o=t(o,n,e)),o}function ga(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=ha(e.theme,n)||{};return ca(e,i,e=>{let n=ma(a,o,e);return e===n&&"string"==typeof e&&(n=ma(a,o,`${t}${"default"===e?"":pa(e)}`,e)),!1===r?n:{[r]:n}})};return i.propTypes={},i.filterProps=[t],i}const va={m:"margin",p:"padding"},ba={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ya={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},xa=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}(e=>{if(e.length>2){if(!ya[e])return[e];e=ya[e]}const[t,r]=e.split(""),n=va[t],o=ba[r]||"";return Array.isArray(o)?o.map(e=>n+e):[n+o]}),Sa=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],wa=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Ca(e,t,r,n){var o;const i=null!=(o=ha(e,t,!1))?o:r;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 Ea(e){return Ca(e,"spacing",8)}function Ra(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function Aa(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce((e,n)=>(e[n]=Ra(t,r),e),{})}(xa(r),n);return ca(e,e[r],o)}function Pa(e,t){const r=Ea(e.theme);return Object.keys(e).map(n=>Aa(e,t,n,r)).reduce(sa,{})}function Ma(e){return Pa(e,Sa)}function Ia(e){return Pa(e,wa)}function ka(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(r=>{e[r]=t}),e),{}),r=e=>Object.keys(e).reduce((r,n)=>t[n]?sa(r,t[n](e)):r,{});return r.propTypes={},r.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),r}function Da(e){return"number"!=typeof e?e:`${e}px solid`}function Ta(e,t){return ga({prop:e,themeKey:"borders",transform:t})}Ma.propTypes={},Ma.filterProps=Sa,Ia.propTypes={},Ia.filterProps=wa;const Oa=Ta("border",Da),La=Ta("borderTop",Da),qa=Ta("borderRight",Da),Na=Ta("borderBottom",Da),_a=Ta("borderLeft",Da),ja=Ta("borderColor"),za=Ta("borderTopColor"),Fa=Ta("borderRightColor"),$a=Ta("borderBottomColor"),Ha=Ta("borderLeftColor"),Ba=Ta("outline",Da),Wa=Ta("outlineColor"),Va=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Ca(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Ra(t,e)});return ca(e,e.borderRadius,r)}return null};Va.propTypes={},Va.filterProps=["borderRadius"],ka(Oa,La,qa,Na,_a,ja,za,Fa,$a,Ha,Va,Ba,Wa);const Ua=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Ca(e.theme,"spacing",8),r=e=>({gap:Ra(t,e)});return ca(e,e.gap,r)}return null};Ua.propTypes={},Ua.filterProps=["gap"];const Ga=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Ca(e.theme,"spacing",8),r=e=>({columnGap:Ra(t,e)});return ca(e,e.columnGap,r)}return null};Ga.propTypes={},Ga.filterProps=["columnGap"];const Ya=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Ca(e.theme,"spacing",8),r=e=>({rowGap:Ra(t,e)});return ca(e,e.rowGap,r)}return null};Ya.propTypes={},Ya.filterProps=["rowGap"];function Ka(e,t){return"grey"===t?t:e}ka(Ua,Ga,Ya,ga({prop:"gridColumn"}),ga({prop:"gridRow"}),ga({prop:"gridAutoFlow"}),ga({prop:"gridAutoColumns"}),ga({prop:"gridAutoRows"}),ga({prop:"gridTemplateColumns"}),ga({prop:"gridTemplateRows"}),ga({prop:"gridTemplateAreas"}),ga({prop:"gridArea"}));function Xa(e){return e<=1&&0!==e?100*e+"%":e}ka(ga({prop:"color",themeKey:"palette",transform:Ka}),ga({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ka}),ga({prop:"backgroundColor",themeKey:"palette",transform:Ka}));const Ja=ga({prop:"width",transform:Xa}),Za=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||la[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Xa(t)}};return ca(e,e.maxWidth,t)}return null};Za.filterProps=["maxWidth"];const Qa=ga({prop:"minWidth",transform:Xa}),es=ga({prop:"height",transform:Xa}),ts=ga({prop:"maxHeight",transform:Xa}),rs=ga({prop:"minHeight",transform:Xa});ga({prop:"size",cssProperty:"width",transform:Xa}),ga({prop:"size",cssProperty:"height",transform:Xa});ka(Ja,Za,Qa,es,ts,rs,ga({prop:"boxSizing"}));const ns={border:{themeKey:"borders",transform:Da},borderTop:{themeKey:"borders",transform:Da},borderRight:{themeKey:"borders",transform:Da},borderBottom:{themeKey:"borders",transform:Da},borderLeft:{themeKey:"borders",transform:Da},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Da},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Va},color:{themeKey:"palette",transform:Ka},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ka},backgroundColor:{themeKey:"palette",transform:Ka},p:{style:Ia},pt:{style:Ia},pr:{style:Ia},pb:{style:Ia},pl:{style:Ia},px:{style:Ia},py:{style:Ia},padding:{style:Ia},paddingTop:{style:Ia},paddingRight:{style:Ia},paddingBottom:{style:Ia},paddingLeft:{style:Ia},paddingX:{style:Ia},paddingY:{style:Ia},paddingInline:{style:Ia},paddingInlineStart:{style:Ia},paddingInlineEnd:{style:Ia},paddingBlock:{style:Ia},paddingBlockStart:{style:Ia},paddingBlockEnd:{style:Ia},m:{style:Ma},mt:{style:Ma},mr:{style:Ma},mb:{style:Ma},ml:{style:Ma},mx:{style:Ma},my:{style:Ma},margin:{style:Ma},marginTop:{style:Ma},marginRight:{style:Ma},marginBottom:{style:Ma},marginLeft:{style:Ma},marginX:{style:Ma},marginY:{style:Ma},marginInline:{style:Ma},marginInlineStart:{style:Ma},marginInlineEnd:{style:Ma},marginBlock:{style:Ma},marginBlockStart:{style:Ma},marginBlockEnd:{style:Ma},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:Ua},rowGap:{style:Ya},columnGap:{style:Ga},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Xa},maxWidth:{style:Za},minWidth:{transform:Xa},height:{transform:Xa},maxHeight:{transform:Xa},minHeight:{transform:Xa},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function os(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:u}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=ha(r,s)||{};if(u)return u(o);return ca(o,t,t=>{let r=ma(c,l,t);return t===r&&"string"==typeof t&&(r=ma(c,l,`${e}${"default"===t?"":pa(t)}`,t)),!1===a?r:{[a]:r}})}return function t(r){var n;const{sx:o,theme:i={},nested:a}=r||{};if(!o)return null;const s=null!=(n=i.unstable_sxConfig)?n:ns;function l(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;const r=null==(t=e.keys)?void 0:t.reduce((t,r)=>(t[e.up(r)]={},t),{});return r||{}}(i.breakpoints),l=Object.keys(o);let u=o;return Object.keys(n).forEach(r=>{const o=(a=n[r],l=i,"function"==typeof a?a(l):a);var a,l;if(null!=o)if("object"==typeof o)if(s[r])u=sa(u,e(r,o,i,s));else{const e=ca({theme:i},o,e=>({[r]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),r=new Set(t);return e.every(e=>r.size===Object.keys(e).length)}(e,o)?u=sa(u,e):u[r]=t({sx:o,theme:i,nested:!0})}else u=sa(u,e(r,o,i,s))}),!a&&i.modularCssLayers?{"@layer sx":da(l,u)}:da(l,u)}return Array.isArray(o)?o.map(l):l(o)}}const is=os();function as(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:t}}return r.palette.mode===e?t:{}}is.filterProps=["sx"];const ss=["breakpoints","palette","spacing","shape"];function ls(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Yr(e,ss),s=ia(r),l=function(e=8){if(e.mui)return e;const t=Ea({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map(e=>{const r=t(e);return"number"==typeof r?`${r}px`:r}).join(" ");return r.mui=!0,r}(o);let u=ra({breakpoints:s,direction:"ltr",components:{},palette:Gr({mode:"light"},n),spacing:l,shape:Gr({},aa,i)},a);return u.applyStyles=as,u=t.reduce((e,t)=>ra(e,t),u),u.unstable_sxConfig=Gr({},ns,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return is({sx:e,theme:this})},u}var us=Object.freeze({__proto__:null,default:ls,private_createBreakpoints:ia,unstable_applyStyles:as});function cs(e=null){const t=x.useContext(Di);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const ds=ls();function ps(e=ds){return cs(e)}function fs(e){const t=e;return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function hs({styles:e,themeId:t,defaultTheme:r={}}){const n=ps(r),o=t&&n[t]||n;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map(e=>fs("function"==typeof e?e(o):e)):fs(i)),ur.jsx(Ki,{styles:i})}const ms=["sx"];function gs(e){const{sx:t}=e,r=Yr(e,ms),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:ns;return Object.keys(e).forEach(t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]}),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return ea(r)?Gr({},n,r):n}:Gr({},n,t),Gr({},o,{sx:i})}var vs=Object.freeze({__proto__:null,default:is,extendSxProp:gs,unstable_createStyleFunctionSx:os,unstable_defaultSxConfig:ns});const bs=e=>e,ys=(()=>{let e=bs;return{configure(t){e=t},generate:t=>e(t),reset(){e=bs}}})();function xs(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=xs(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Ss(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=xs(e))&&(n&&(n+=" "),n+=t);return n}const ws=["className","component"];const Cs={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Es(e,t,r="Mui"){const n=Cs[t];return n?`${r}-${n}`:`${ys.generate(e)}-${t}`}function Rs(e,t,r="Mui"){const n={};return t.forEach(t=>{n[t]=Es(e,t,r)}),n}var As={exports:{}},Ps={},Ms=Symbol.for("react.transitional.element"),Is=Symbol.for("react.portal"),ks=Symbol.for("react.fragment"),Ds=Symbol.for("react.strict_mode"),Ts=Symbol.for("react.profiler"),Os=Symbol.for("react.consumer"),Ls=Symbol.for("react.context"),qs=Symbol.for("react.forward_ref"),Ns=Symbol.for("react.suspense"),_s=Symbol.for("react.suspense_list"),js=Symbol.for("react.memo"),zs=Symbol.for("react.lazy"),Fs=Symbol.for("react.view_transition"),$s=Symbol.for("react.client.reference");function Hs(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ms:switch(e=e.type){case ks:case Ts:case Ds:case Ns:case _s:case Fs:return e;default:switch(e=e&&e.$$typeof){case Ls:case qs:case zs:case js:case Os:return e;default:return t}}case Is:return t}}}Ps.ContextConsumer=Os,Ps.ContextProvider=Ls,Ps.Element=Ms,Ps.ForwardRef=qs,Ps.Fragment=ks,Ps.Lazy=zs,Ps.Memo=js,Ps.Portal=Is,Ps.Profiler=Ts,Ps.StrictMode=Ds,Ps.Suspense=Ns,Ps.SuspenseList=_s,Ps.isContextConsumer=function(e){return Hs(e)===Os},Ps.isContextProvider=function(e){return Hs(e)===Ls},Ps.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ms},Ps.isForwardRef=function(e){return Hs(e)===qs},Ps.isFragment=function(e){return Hs(e)===ks},Ps.isLazy=function(e){return Hs(e)===zs},Ps.isMemo=function(e){return Hs(e)===js},Ps.isPortal=function(e){return Hs(e)===Is},Ps.isProfiler=function(e){return Hs(e)===Ts},Ps.isStrictMode=function(e){return Hs(e)===Ds},Ps.isSuspense=function(e){return Hs(e)===Ns},Ps.isSuspenseList=function(e){return Hs(e)===_s},Ps.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===ks||e===Ts||e===Ds||e===Ns||e===_s||"object"==typeof e&&null!==e&&(e.$$typeof===zs||e.$$typeof===js||e.$$typeof===Ls||e.$$typeof===Os||e.$$typeof===qs||e.$$typeof===$s||void 0!==e.getModuleId)},Ps.typeOf=Hs,As.exports=Ps;var Bs=As.exports;const Ws=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Vs(e){const t=`${e}`.match(Ws);return t&&t[1]||""}function Us(e,t=""){return e.displayName||e.name||Vs(e)||t}function Gs(e,t,r){const n=Us(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var Ys=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Us(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Bs.ForwardRef:return Gs(e,e.render,"ForwardRef");case Bs.Memo:return Gs(e,e.type,"memo");default:return}}},getFunctionName:Vs});function Ks(e,t){const r=Gr({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=Gr({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},i&&Object.keys(i)?o&&Object.keys(o)?(r[n]=Gr({},i),Object.keys(o).forEach(e=>{r[n][e]=Ks(o[e],i[e])})):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])}),r}const Xs="undefined"!=typeof window?x.useLayoutEffect:x.useEffect;function Js(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var Zs=Object.freeze({__proto__:null,default:Js});function Qs(e){if(e.type)return e;if("#"===e.charAt(0))return Qs(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map(e=>e+e)),r?`rgb${4===r.length?"a":""}(${r.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(Wr(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=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(n))throw new Error(Wr(10,n))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:r,values:o,colorSpace:n}}function el(e,t){return e=Qs(e),t=function(e,t=0,r=1){return Js(e,t,r)}(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:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}(e)}function tl(...e){return e.reduce((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)},()=>{})}function rl(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout(()=>{e.apply(this,n)},t)}return n.clear=()=>{clearTimeout(r)},n}function nl(e){return e&&e.ownerDocument||document}function ol(e){return nl(e).defaultView||window}function il(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let al=0;const sl=x["useId".toString()];function ll(e){if(void 0!==sl){return sl()}return function(e){const[t,r]=x.useState(e),n=t;return x.useEffect(()=>{null==t&&(al+=1,r(`mui-${al}`))},[t]),n}(e)}function ul({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=x.useRef(void 0!==e),[i,a]=x.useState(t);return[o?e:i,x.useCallback(e=>{o||a(e)},[])]}function cl(e){const t=x.useRef(e);return Xs(()=>{t.current=e}),x.useRef((...e)=>(0,t.current)(...e)).current}function dl(...e){return x.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{il(e,t)})},e)}const pl={};const fl=[];class hl{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new hl}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function ml(){const e=function(e,t){const r=x.useRef(pl);return r.current===pl&&(r.current=e(t)),r}(hl.create).current;return function(e){x.useEffect(e,fl)}(e.disposeEffect),e}let gl=!0,vl=!1;const bl=new hl,yl={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function xl(e){e.metaKey||e.altKey||e.ctrlKey||(gl=!0)}function Sl(){gl=!1}function wl(){"hidden"===this.visibilityState&&vl&&(gl=!0)}function Cl(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return gl||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!yl[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function El(){const e=x.useCallback(e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",xl,!0),t.addEventListener("mousedown",Sl,!0),t.addEventListener("pointerdown",Sl,!0),t.addEventListener("touchstart",Sl,!0),t.addEventListener("visibilitychange",wl,!0))},[]),t=x.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Cl(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(vl=!0,bl.start(100,()=>{vl=!1}),t.current=!1,!0)},ref:e}}function Rl(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Al(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e},[]).join(" ")}),n}function Pl(e){return"string"==typeof e}function Ml(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r)).forEach(t=>{r[t]=e[t]}),r}function Il(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(r=>{t[r]=e[r]}),t}const kl=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Dl(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Yr(e,kl),s=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:l,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=Ss(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=Gr({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=Gr({},r,o,n);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=Ml(Gr({},o,n)),s=Il(n),l=Il(o),u=t(a),c=Ss(null==u?void 0:u.className,null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),d=Gr({},null==u?void 0:u.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),p=Gr({},u,r,l,s);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(Gr({},a,{externalSlotProps:s})),c=function(e,t,r){return void 0===e||Pl(e)?t:Gr({},t,{ownerState:Gr({},t.ownerState,r)})}(r,Gr({},l,{ref:dl(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}function Tl(e){var t;return parseInt(x.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const Ol=x.createContext(null);function Ll(){return x.useContext(Ol)}var ql="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Nl(e){const{children:t,theme:r}=e,n=Ll(),o=x.useMemo(()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return Gr({},e,t)}(n,r);return null!=e&&(e[ql]=null!==n),e},[r,n]);return ur.jsx(Ol.Provider,{value:o,children:t})}const _l=["value"],jl=x.createContext();function zl(e){let{value:t}=e,r=Yr(e,_l);return ur.jsx(jl.Provider,Gr({value:null==t||t},r))}const Fl=x.createContext(void 0);function $l({value:e,children:t}){return ur.jsx(Fl.Provider,{value:e,children:t})}function Hl({props:e,name:t}){return function(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?Ks(o.defaultProps,n):o.styleOverrides||o.variants?n:Ks(o,n)}({props:e,name:t,theme:{components:x.useContext(Fl)}})}const Bl={};function Wl(e,t,r,n=!1){return x.useMemo(()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?Gr({},t,{[e]:i}):i;return n?()=>a:a}return Gr({},t,e?{[e]:r}:r)},[e,t,r,n])}function Vl(e){const{children:t,theme:r,themeId:n}=e,o=cs(Bl),i=Ll()||Bl,a=Wl(n,o,r),s=Wl(n,i,r,!0),l="rtl"===a.direction,u=function(e){const t=cs(),r=ll()||"",{modularCssLayers:n}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=n&&null===t?"string"==typeof n?n.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",Xs(()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){var n;if(t&&null!=(n=t.hasAttribute)&&n.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===r)return;const i=document.createElement("style");i.setAttribute("data-mui-layer-order",r),i.textContent=o,e.prepend(i)}else{var i;null==(i=e.querySelector(`style[data-mui-layer-order="${r}"]`))||i.remove()}},[o,r]),o?ur.jsx(hs,{styles:o}):null}(a);return ur.jsx(Nl,{theme:s,children:ur.jsx(Di.Provider,{value:a,children:ur.jsx(zl,{value:l,children:ur.jsxs($l,{value:null==a?void 0:a.components,children:[u,t]})})})})}function Ul(e){return Ul="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},Ul(e)}function Gl(e){var t=function(e,t){if("object"!=Ul(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=Ul(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Ul(t)?t:t+""}function Yl(e,t){return Gr({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Kl,Xl={},Jl={exports:{}};(Kl=Jl).exports=function(e){return e&&e.__esModule?e:{default:e}},Kl.exports.__esModule=!0,Kl.exports.default=Kl.exports;var Zl=Jl.exports,Ql=Qt(Vr),eu=Qt(Zs),tu=Zl;Object.defineProperty(Xl,"__esModule",{value:!0});var ru=Xl.alpha=mu;Xl.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=cu(e),a=cu(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return pu({type:"rgb",values:s})},Xl.colorChannel=void 0;var nu=Xl.darken=gu;Xl.decomposeColor=cu,Xl.emphasize=bu;var ou=Xl.getContrastRatio=function(e,t){const r=hu(e),n=hu(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};Xl.getLuminance=hu,Xl.hexToRgb=uu,Xl.hslToRgb=fu;var iu=Xl.lighten=vu;Xl.private_safeAlpha=function(e,t,r){try{return mu(e,t)}catch(t){return e}},Xl.private_safeColorChannel=void 0,Xl.private_safeDarken=function(e,t,r){try{return gu(e,t)}catch(t){return e}},Xl.private_safeEmphasize=function(e,t,r){try{return bu(e,t)}catch(t){return e}},Xl.private_safeLighten=function(e,t,r){try{return vu(e,t)}catch(t){return e}},Xl.recomposeColor=pu,Xl.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=cu(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 au=tu(Ql),su=tu(eu);function lu(e,t=0,r=1){return(0,su.default)(e,t,r)}function uu(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map(e=>e+e)),r?`rgb${4===r.length?"a":""}(${r.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}function cu(e){if(e.type)return e;if("#"===e.charAt(0))return cu(uu(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,au.default)(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=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(n))throw new Error((0,au.default)(10,n))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:r,values:o,colorSpace:n}}const du=e=>{const t=cu(e);return t.values.slice(0,3).map((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e).join(" ")};Xl.colorChannel=du;function pu(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function fu(e){e=cu(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),pu({type:s,values:l})}function hu(e){let t="hsl"===(e=cu(e)).type||"hsla"===e.type?cu(fu(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 mu(e,t){return e=cu(e),t=lu(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,pu(e)}function gu(e,t){if(e=cu(e),t=lu(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 r=0;r<3;r+=1)e.values[r]*=1-t;return pu(e)}function vu(e,t){if(e=cu(e),t=lu(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return pu(e)}function bu(e,t=.15){return hu(e)>.5?gu(e,t):vu(e,t)}Xl.private_safeColorChannel=(e,t)=>{try{return du(e)}catch(t){return e}};const yu=["mode","contrastThreshold","tonalOffset"],xu={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:cr.white,default:cr.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}},Su={text:{primary:cr.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:cr.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 wu(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=iu(e.main,o):"dark"===t&&(e.dark=nu(e.main,i)))}function Cu(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Yr(e,yu),i=e.primary||function(e="light"){return"dark"===e?{main:Cr,light:wr,dark:Er}:{main:Rr,light:Er,dark:Ar}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:vr,light:gr,dark:yr}:{main:xr,light:br,dark:Sr}}(t),s=e.error||function(e="light"){return"dark"===e?{main:fr,light:dr,dark:hr}:{main:hr,light:pr,dark:mr}}(t),l=e.info||function(e="light"){return"dark"===e?{main:Mr,light:Pr,dark:kr}:{main:kr,light:Ir,dark:Dr}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Or,light:Tr,dark:qr}:{main:Nr,light:Lr,dark:_r}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:zr,light:jr,dark:$r}:{main:"#ed6c02",light:Fr,dark:Hr}}(t);function d(e){return ou(e,Su.text.primary)>=r?Su.text.primary:xu.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Gr({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Wr(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Wr(12,t?` (${t})`:"",JSON.stringify(e.main)));return wu(e,"light",o,n),wu(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Su,light:xu};return ra(Gr({common:Gr({},cr),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:Br,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const Eu=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Ru={textTransform:"uppercase"},Au='"Roboto", "Helvetica", "Arial", sans-serif';function Pu(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=Au,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Yr(r,Eu),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,r,o,i)=>{return Gr({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===Au?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,Ru),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Ru),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ra(Gr({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function Mu(...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(",")}const Iu=["none",Mu(0,2,1,-1,0,1,1,0,0,1,3,0),Mu(0,3,1,-2,0,2,2,0,0,1,5,0),Mu(0,3,3,-2,0,3,4,0,0,1,8,0),Mu(0,2,4,-1,0,4,5,0,0,1,10,0),Mu(0,3,5,-1,0,5,8,0,0,1,14,0),Mu(0,3,5,-1,0,6,10,0,0,1,18,0),Mu(0,4,5,-2,0,7,10,1,0,2,16,1),Mu(0,5,5,-3,0,8,10,1,0,3,14,2),Mu(0,5,6,-3,0,9,12,1,0,3,16,2),Mu(0,6,6,-3,0,10,14,1,0,4,18,3),Mu(0,6,7,-4,0,11,15,1,0,4,20,3),Mu(0,7,8,-4,0,12,17,2,0,5,22,4),Mu(0,7,8,-4,0,13,19,2,0,5,24,4),Mu(0,7,9,-4,0,14,21,2,0,5,26,4),Mu(0,8,9,-5,0,15,22,2,0,6,28,5),Mu(0,8,10,-5,0,16,24,2,0,6,30,5),Mu(0,8,11,-5,0,17,26,2,0,6,32,5),Mu(0,9,11,-5,0,18,28,2,0,7,34,6),Mu(0,9,12,-6,0,19,29,2,0,7,36,6),Mu(0,10,13,-6,0,20,31,3,0,8,38,7),Mu(0,10,13,-6,0,21,33,3,0,8,40,7),Mu(0,10,14,-6,0,22,35,3,0,8,42,7),Mu(0,11,14,-7,0,23,36,3,0,9,44,8),Mu(0,11,15,-7,0,24,38,3,0,9,46,8)],ku=["duration","easing","delay"],Du={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)"},Tu={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ou(e){return`${Math.round(e)}ms`}function Lu(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function qu(e){const t=Gr({},Du,e.easing),r=Gr({},Tu,e.duration);return Gr({getAutoHeightDuration:Lu,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Yr(n,ku),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:Ou(o)} ${i} ${"string"==typeof a?a:Ou(a)}`).join(",")}},e,{easing:t,duration:r})}const Nu={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},_u=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function ju(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Yr(e,_u);if(e.vars&&void 0===e.generateCssVars)throw new Error(Wr(18));const s=Cu(n),l=ls(e);let u=ra(l,{mixins:Yl(l.breakpoints,r),palette:s,shadows:Iu.slice(),typography:Pu(s,i),transitions:qu(o),zIndex:Gr({},Nu)});return u=ra(u,a),u=t.reduce((e,t)=>ra(e,t),u),u.unstable_sxConfig=Gr({},ns,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return is({sx:e,theme:this})},u}const zu=ju();function Fu(){const e=ps(zu);return e[Ur]||e}var $u,Hu={},Bu={exports:{}};function Wu(){return $u||($u=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 r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}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}(Bu)),Bu.exports}var Vu,Uu={exports:{}};function Gu(){return Vu||(Vu=1,function(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}(Uu)),Uu.exports}var Yu=Qt(Qi),Ku=Qt(na),Xu=Qt(fa),Ju=Qt(Ys),Zu=Qt(us),Qu=Qt(vs),ec=Zl;Object.defineProperty(Hu,"__esModule",{value:!0});var tc=Hu.default=function(e={}){const{themeId:t,defaultTheme:r=hc,rootShouldForwardProp:n=pc,slotShouldForwardProp:o=pc}=e,i=e=>(0,sc.default)((0,rc.default)({},e,{theme:gc((0,rc.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,oc.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=vc(mc(l))}=a,p=(0,nc.default)(a,cc),f=s&&s.startsWith("Mui")||l?"components":"custom",h=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,m=c||!1;let g=pc;"Root"===l||"root"===l?g=n:l?g=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(g=void 0);const v=(0,oc.default)(e,(0,rc.default)({shouldForwardProp:g,label:void 0},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,ic.isPlainObject)(e)?n=>{const o=gc({theme:n.theme,defaultTheme:r,themeId:t});return bc(e,(0,rc.default)({},n,{theme:o}),o.modularCssLayers?f:void 0)}:e,y=(n,...o)=>{let a=b(n);const l=o?o.map(b):[];s&&d&&l.push(e=>{const n=gc((0,rc.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[s]||!n.components[s].styleOverrides)return null;const o=n.components[s].styleOverrides,i={};return Object.entries(o).forEach(([t,r])=>{i[t]=bc(r,(0,rc.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)}),d(e,i)}),s&&!h&&l.push(e=>{var n;const o=gc((0,rc.default)({},e,{defaultTheme:r,themeId:t}));return bc({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},(0,rc.default)({},e,{theme:o}),o.modularCssLayers?"theme":void 0)}),m||l.push(i);const u=l.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=v(a,...l);return e.muiName&&(c.muiName=e.muiName),c};return v.withConfig&&(y.withConfig=v.withConfig),y}};Hu.shouldForwardProp=pc,Hu.systemDefaultTheme=void 0;var rc=ec(Wu()),nc=ec(Gu()),oc=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=dc(t);if(r&&r.has(e))return r.get(e);var n={__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(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(Yu),ic=Ku;ec(Xu),ec(Ju);var ac=ec(Zu),sc=ec(Qu);const lc=["ownerState"],uc=["variants"],cc=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function dc(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(dc=function(e){return e?r:t})(e)}function pc(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function fc(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const hc=Hu.systemDefaultTheme=(0,ac.default)(),mc=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function gc({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function vc(e){return e?(t,r)=>r[e]:null}function bc(e,t,r){let{ownerState:n}=t,o=(0,nc.default)(t,lc);const i="function"==typeof e?e((0,rc.default)({ownerState:n},o)):e;if(Array.isArray(i))return i.flatMap(e=>bc(e,(0,rc.default)({ownerState:n},o),r));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,nc.default)(i,uc);return e.forEach(e=>{let i=!0;if("function"==typeof e.props?i=e.props((0,rc.default)({ownerState:n},o,n)):Object.keys(e.props).forEach(t=>{(null==n?void 0:n[t])!==e.props[t]&&o[t]!==e.props[t]&&(i=!1)}),i){Array.isArray(t)||(t=[t]);const i="function"==typeof e.style?e.style((0,rc.default)({ownerState:n},o,n)):e.style;t.push(r?fc((0,oc.internal_serializeStyles)(i),r):i)}}),t}return r?fc((0,oc.internal_serializeStyles)(i),r):i}function yc(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const xc=e=>yc(e)&&"classes"!==e,Sc=tc({themeId:Ur,defaultTheme:zu,rootShouldForwardProp:xc}),wc=["theme"];function Cc(e){let{theme:t}=e,r=Yr(e,wc);const n=t[Ur];let o=n||t;return"function"!=typeof t&&(n&&!n.vars?o=Gr({},n,{vars:null}):t&&!t.vars&&(o=Gr({},t,{vars:null}))),ur.jsx(Vl,Gr({},r,{themeId:n?Ur:void 0,theme:o}))}const Ec=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Rc(e){return Hl(e)}function Ac(e){return Es("MuiSvgIcon",e)}Rs("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Pc=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Mc=Sc("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${pa(r.color)}`],t[`fontSize${pa(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,i,a,s,l,u,c,d,p,f,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}}),Ic=x.forwardRef(function(e,t){const r=Rc({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=r,p=Yr(r,Pc),f=x.isValidElement(n)&&"svg"===n.type,h=Gr({},r,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),m={};u||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:r,classes:n}=e;return Al({root:["root","inherit"!==t&&`color${pa(t)}`,`fontSize${pa(r)}`]},Ac,n)})(h);return ur.jsxs(Mc,Gr({as:a,className:Ss(g.root,o),focusable:"false",color:l,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},m,p,f&&n.props,{ownerState:h,children:[f?n.props.children:n,c?ur.jsx("title",{children:c}):null]}))});function kc(e,t){return kc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},kc(e,t)}function Dc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,kc(e,t)}Ic.muiName="SvgIcon";var Tc=!1,Oc=S.createContext(null),Lc="unmounted",qc="exited",Nc="entering",_c="entered",jc="exiting",zc=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,i=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(o=qc,n.appearStatus=Nc):o=_c:o=t.unmountOnExit||t.mountOnEnter?Lc:qc,n.state={status:o},n.nextCallback=null,n}Dc(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Lc?{status:qc}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==Nc&&r!==_c&&(t=Nc):r!==Nc&&r!==_c||(t=jc)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Nc){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:B.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===qc&&this.setState({status:Lc})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[B.findDOMNode(this),n],i=o[0],a=o[1],s=this.getTimeouts(),l=n?s.appear:s.enter;!e&&!r||Tc?this.safeSetState({status:_c},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:Nc},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:_c},function(){t.props.onEntered(i,a)})})}))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:B.findDOMNode(this);t&&!Tc?(this.props.onExit(n),this.safeSetState({status:jc},function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,function(){e.safeSetState({status:qc},function(){e.props.onExited(n)})})})):this.safeSetState({status:qc},function(){e.props.onExited(n)})},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:B.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===Lc)return null;var t=this.props,r=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var n=Yr(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return S.createElement(Oc.Provider,{value:null},"function"==typeof r?r(e,n):S.cloneElement(S.Children.only(r),n))},t}(S.Component);function Fc(){}function $c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hc(e,t){var r=Object.create(null);return e&&R.map(e,function(e){return e}).forEach(function(e){r[e.key]=function(e){return t&&C(e)?t(e):e}(e)}),r}function Bc(e,t,r){return null!=r[t]?r[t]:e.props[t]}function Wc(e,t,r){var n=Hc(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(n=0;n<o[l].length;n++){var u=o[l][n];s[o[l][n]]=r(u)}s[l]=r(l)}for(n=0;n<i.length;n++)s[i[n]]=r(i[n]);return s}(t,n);return Object.keys(o).forEach(function(i){var a=o[i];if(C(a)){var s=i in t,l=i in n,u=t[i],c=C(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&C(u)&&(o[i]=E(a,{onExited:r.bind(null,a),in:u.props.in,exit:Bc(a,"exit",e),enter:Bc(a,"enter",e)})):o[i]=E(a,{in:!1}):o[i]=E(a,{onExited:r.bind(null,a),in:!0,exit:Bc(a,"exit",e),enter:Bc(a,"enter",e)})}}),o}zc.contextType=Oc,zc.propTypes={},zc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Fc,onEntering:Fc,onEntered:Fc,onExit:Fc,onExiting:Fc,onExited:Fc},zc.UNMOUNTED=Lc,zc.EXITED=qc,zc.ENTERING=Nc,zc.ENTERED=_c,zc.EXITING=jc;var Vc=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Uc=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind($c(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}Dc(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r,n,o=t.children,i=t.handleExited;return{children:t.firstRender?(r=e,n=i,Hc(r.children,function(e){return E(e,{onExited:n.bind(null,e),in:!0,appear:Bc(e,"appear",r),enter:Bc(e,"enter",r),exit:Bc(e,"exit",r)})})):Wc(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=Hc(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var r=Gr({},t.children);return delete r[e.key],{children:r}}))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=Yr(e,["component","childFactory"]),o=this.state.contextValue,i=Vc(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?S.createElement(Oc.Provider,{value:o},i):S.createElement(Oc.Provider,{value:o},S.createElement(t,n,i))},t}(S.Component);Uc.propTypes={},Uc.defaultProps={component:"div",childFactory:function(e){return e}};const Gc=e=>e.scrollTop;function Yc(e,t){var r,n;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(r=a.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=a.transitionTimingFunction)?n:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function Kc(e){return Es("MuiPaper",e)}Rs("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 Xc=["className","component","elevation","square","variant"],Jc=Sc("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return Gr({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&&Gr({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${ru("#fff",Ec(t.elevation))}, ${ru("#fff",Ec(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))}),Zc=x.forwardRef(function(e,t){const r=Rc({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=r,l=Yr(r,Xc),u=Gr({},r,{component:o,elevation:i,square:a,variant:s}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return Al({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},Kc,o)})(u);return ur.jsx(Jc,Gr({as:o,ownerState:u,className:Ss(c.root,n),ref:t},l))});const Qc=Rs("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ed=["center","classes","className"];let td,rd,nd,od,id=e=>e;const ad=Bi(td||(td=id`
|
|
17
|
+
function na(e,t){let r;return r=t?Ui(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Ui(e),r}function oa(e,t){e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}function ia(e){return e}ra.propTypes={defaultTheme:ea.object,styles:ea.oneOfType([ea.array,ea.string,ea.object,ea.func])};var aa=Object.freeze({__proto__:null,GlobalStyles:ra,StyledEngineProvider:ta,ThemeContext:qi,css:Bi,default:na,internal_mutateStyles:oa,internal_processStyles:function(e,t){return oa(e,t)},internal_serializeStyles:ia,keyframes:Xi});function sa(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function la(e){if(x.isValidElement(e)||!sa(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=la(e[r])}),t}function ua(e,t,r={clone:!0}){const n=r.clone?Gr({},e):e;return sa(e)&&sa(t)&&Object.keys(t).forEach(o=>{x.isValidElement(t[o])?n[o]=t[o]:sa(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&sa(e[o])?n[o]=ua(e[o],t[o],r):r.clone?n[o]=sa(t[o])?la(t[o]):t[o]:n[o]=t[o]}),n}var ca=Object.freeze({__proto__:null,default:ua,isPlainObject:sa});const da=["values","unit","step"];function pa(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Yr(e,da),i=(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)=>Gr({},e,{[t.key]:t.val}),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return Gr({keys:a,values:i,up:s,down:l,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}const fa={borderRadius:4};function ha(e,t){return t?ua(e,t,{clone:!1}):e}const ma={xs:0,sm:600,md:900,lg:1200,xl:1536},ga={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ma[e]}px)`};function ba(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||ga;return t.reduce((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n),{})}if("object"==typeof t){const e=n.breakpoints||ga;return Object.keys(t).reduce((n,o)=>{if(-1!==Object.keys(e.values||ma).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n},{})}return r(t)}function va(e,t){return e.reduce((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e},t)}function ya(e){if("string"!=typeof e)throw new Error(Wr(7));return e.charAt(0).toUpperCase()+e.slice(1)}var xa=Object.freeze({__proto__:null,default:ya});function Sa(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=r)return r}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function wa(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Sa(e,r)||n,t&&(o=t(o,n,e)),o}function Ca(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Sa(e.theme,n)||{};return ba(e,i,e=>{let n=wa(a,o,e);return e===n&&"string"==typeof e&&(n=wa(a,o,`${t}${"default"===e?"":ya(e)}`,e)),!1===r?n:{[r]:n}})};return i.propTypes={},i.filterProps=[t],i}const Ea={m:"margin",p:"padding"},Ra={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Aa={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ma=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}(e=>{if(e.length>2){if(!Aa[e])return[e];e=Aa[e]}const[t,r]=e.split(""),n=Ea[t],o=Ra[r]||"";return Array.isArray(o)?o.map(e=>n+e):[n+o]}),Pa=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ia=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function ka(e,t,r,n){var o;const i=null!=(o=Sa(e,t,!1))?o:r;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 Da(e){return ka(e,"spacing",8)}function Ta(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function Oa(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce((e,n)=>(e[n]=Ta(t,r),e),{})}(Ma(r),n);return ba(e,e[r],o)}function La(e,t){const r=Da(e.theme);return Object.keys(e).map(n=>Oa(e,t,n,r)).reduce(ha,{})}function qa(e){return La(e,Pa)}function Na(e){return La(e,Ia)}function ja(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(r=>{e[r]=t}),e),{}),r=e=>Object.keys(e).reduce((r,n)=>t[n]?ha(r,t[n](e)):r,{});return r.propTypes={},r.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),r}function _a(e){return"number"!=typeof e?e:`${e}px solid`}function za(e,t){return Ca({prop:e,themeKey:"borders",transform:t})}qa.propTypes={},qa.filterProps=Pa,Na.propTypes={},Na.filterProps=Ia;const Fa=za("border",_a),$a=za("borderTop",_a),Ha=za("borderRight",_a),Ba=za("borderBottom",_a),Wa=za("borderLeft",_a),Va=za("borderColor"),Ua=za("borderTopColor"),Ga=za("borderRightColor"),Ya=za("borderBottomColor"),Ka=za("borderLeftColor"),Xa=za("outline",_a),Ja=za("outlineColor"),Za=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=ka(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Ta(t,e)});return ba(e,e.borderRadius,r)}return null};Za.propTypes={},Za.filterProps=["borderRadius"],ja(Fa,$a,Ha,Ba,Wa,Va,Ua,Ga,Ya,Ka,Za,Xa,Ja);const Qa=e=>{if(void 0!==e.gap&&null!==e.gap){const t=ka(e.theme,"spacing",8),r=e=>({gap:Ta(t,e)});return ba(e,e.gap,r)}return null};Qa.propTypes={},Qa.filterProps=["gap"];const es=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=ka(e.theme,"spacing",8),r=e=>({columnGap:Ta(t,e)});return ba(e,e.columnGap,r)}return null};es.propTypes={},es.filterProps=["columnGap"];const ts=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=ka(e.theme,"spacing",8),r=e=>({rowGap:Ta(t,e)});return ba(e,e.rowGap,r)}return null};ts.propTypes={},ts.filterProps=["rowGap"];function rs(e,t){return"grey"===t?t:e}ja(Qa,es,ts,Ca({prop:"gridColumn"}),Ca({prop:"gridRow"}),Ca({prop:"gridAutoFlow"}),Ca({prop:"gridAutoColumns"}),Ca({prop:"gridAutoRows"}),Ca({prop:"gridTemplateColumns"}),Ca({prop:"gridTemplateRows"}),Ca({prop:"gridTemplateAreas"}),Ca({prop:"gridArea"}));function ns(e){return e<=1&&0!==e?100*e+"%":e}ja(Ca({prop:"color",themeKey:"palette",transform:rs}),Ca({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:rs}),Ca({prop:"backgroundColor",themeKey:"palette",transform:rs}));const os=Ca({prop:"width",transform:ns}),is=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||ma[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:ns(t)}};return ba(e,e.maxWidth,t)}return null};is.filterProps=["maxWidth"];const as=Ca({prop:"minWidth",transform:ns}),ss=Ca({prop:"height",transform:ns}),ls=Ca({prop:"maxHeight",transform:ns}),us=Ca({prop:"minHeight",transform:ns});Ca({prop:"size",cssProperty:"width",transform:ns}),Ca({prop:"size",cssProperty:"height",transform:ns});ja(os,is,as,ss,ls,us,Ca({prop:"boxSizing"}));const cs={border:{themeKey:"borders",transform:_a},borderTop:{themeKey:"borders",transform:_a},borderRight:{themeKey:"borders",transform:_a},borderBottom:{themeKey:"borders",transform:_a},borderLeft:{themeKey:"borders",transform:_a},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:_a},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Za},color:{themeKey:"palette",transform:rs},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:rs},backgroundColor:{themeKey:"palette",transform:rs},p:{style:Na},pt:{style:Na},pr:{style:Na},pb:{style:Na},pl:{style:Na},px:{style:Na},py:{style:Na},padding:{style:Na},paddingTop:{style:Na},paddingRight:{style:Na},paddingBottom:{style:Na},paddingLeft:{style:Na},paddingX:{style:Na},paddingY:{style:Na},paddingInline:{style:Na},paddingInlineStart:{style:Na},paddingInlineEnd:{style:Na},paddingBlock:{style:Na},paddingBlockStart:{style:Na},paddingBlockEnd:{style:Na},m:{style:qa},mt:{style:qa},mr:{style:qa},mb:{style:qa},ml:{style:qa},mx:{style:qa},my:{style:qa},margin:{style:qa},marginTop:{style:qa},marginRight:{style:qa},marginBottom:{style:qa},marginLeft:{style:qa},marginX:{style:qa},marginY:{style:qa},marginInline:{style:qa},marginInlineStart:{style:qa},marginInlineEnd:{style:qa},marginBlock:{style:qa},marginBlockStart:{style:qa},marginBlockEnd:{style:qa},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:Qa},rowGap:{style:ts},columnGap:{style:es},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ns},maxWidth:{style:is},minWidth:{transform:ns},height:{transform:ns},maxHeight:{transform:ns},minHeight:{transform:ns},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function ds(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:u}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=Sa(r,s)||{};if(u)return u(o);return ba(o,t,t=>{let r=wa(c,l,t);return t===r&&"string"==typeof t&&(r=wa(c,l,`${e}${"default"===t?"":ya(t)}`,t)),!1===a?r:{[a]:r}})}return function t(r){var n;const{sx:o,theme:i={},nested:a}=r||{};if(!o)return null;const s=null!=(n=i.unstable_sxConfig)?n:cs;function l(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;const r=null==(t=e.keys)?void 0:t.reduce((t,r)=>(t[e.up(r)]={},t),{});return r||{}}(i.breakpoints),l=Object.keys(o);let u=o;return Object.keys(n).forEach(r=>{const o=(a=n[r],l=i,"function"==typeof a?a(l):a);var a,l;if(null!=o)if("object"==typeof o)if(s[r])u=ha(u,e(r,o,i,s));else{const e=ba({theme:i},o,e=>({[r]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),r=new Set(t);return e.every(e=>r.size===Object.keys(e).length)}(e,o)?u=ha(u,e):u[r]=t({sx:o,theme:i,nested:!0})}else u=ha(u,e(r,o,i,s))}),!a&&i.modularCssLayers?{"@layer sx":va(l,u)}:va(l,u)}return Array.isArray(o)?o.map(l):l(o)}}const ps=ds();function fs(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:t}}return r.palette.mode===e?t:{}}ps.filterProps=["sx"];const hs=["breakpoints","palette","spacing","shape"];function ms(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Yr(e,hs),s=pa(r),l=function(e=8){if(e.mui)return e;const t=Da({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map(e=>{const r=t(e);return"number"==typeof r?`${r}px`:r}).join(" ");return r.mui=!0,r}(o);let u=ua({breakpoints:s,direction:"ltr",components:{},palette:Gr({mode:"light"},n),spacing:l,shape:Gr({},fa,i)},a);return u.applyStyles=fs,u=t.reduce((e,t)=>ua(e,t),u),u.unstable_sxConfig=Gr({},cs,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return ps({sx:e,theme:this})},u}var gs=Object.freeze({__proto__:null,default:ms,private_createBreakpoints:pa,unstable_applyStyles:fs});function bs(e=null){const t=x.useContext(qi);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const vs=ms();function ys(e=vs){return bs(e)}function xs(e){const t=e;return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Ss({styles:e,themeId:t,defaultTheme:r={}}){const n=ys(r),o=t&&n[t]||n;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map(e=>xs("function"==typeof e?e(o):e)):xs(i)),ur.jsx(ra,{styles:i})}const ws=["sx"];function Cs(e){const{sx:t}=e,r=Yr(e,ws),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:cs;return Object.keys(e).forEach(t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]}),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return sa(r)?Gr({},n,r):n}:Gr({},n,t),Gr({},o,{sx:i})}var Es=Object.freeze({__proto__:null,default:ps,extendSxProp:Cs,unstable_createStyleFunctionSx:ds,unstable_defaultSxConfig:cs});const Rs=e=>e,As=(()=>{let e=Rs;return{configure(t){e=t},generate:t=>e(t),reset(){e=Rs}}})();function Ms(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Ms(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Ps(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Ms(e))&&(n&&(n+=" "),n+=t);return n}const Is=["className","component"];const ks={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ds(e,t,r="Mui"){const n=ks[t];return n?`${r}-${n}`:`${As.generate(e)}-${t}`}function Ts(e,t,r="Mui"){const n={};return t.forEach(t=>{n[t]=Ds(e,t,r)}),n}var Os={exports:{}},Ls={},qs=Symbol.for("react.transitional.element"),Ns=Symbol.for("react.portal"),js=Symbol.for("react.fragment"),_s=Symbol.for("react.strict_mode"),zs=Symbol.for("react.profiler"),Fs=Symbol.for("react.consumer"),$s=Symbol.for("react.context"),Hs=Symbol.for("react.forward_ref"),Bs=Symbol.for("react.suspense"),Ws=Symbol.for("react.suspense_list"),Vs=Symbol.for("react.memo"),Us=Symbol.for("react.lazy"),Gs=Symbol.for("react.view_transition"),Ys=Symbol.for("react.client.reference");function Ks(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case qs:switch(e=e.type){case js:case zs:case _s:case Bs:case Ws:case Gs:return e;default:switch(e=e&&e.$$typeof){case $s:case Hs:case Us:case Vs:case Fs:return e;default:return t}}case Ns:return t}}}Ls.ContextConsumer=Fs,Ls.ContextProvider=$s,Ls.Element=qs,Ls.ForwardRef=Hs,Ls.Fragment=js,Ls.Lazy=Us,Ls.Memo=Vs,Ls.Portal=Ns,Ls.Profiler=zs,Ls.StrictMode=_s,Ls.Suspense=Bs,Ls.SuspenseList=Ws,Ls.isContextConsumer=function(e){return Ks(e)===Fs},Ls.isContextProvider=function(e){return Ks(e)===$s},Ls.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===qs},Ls.isForwardRef=function(e){return Ks(e)===Hs},Ls.isFragment=function(e){return Ks(e)===js},Ls.isLazy=function(e){return Ks(e)===Us},Ls.isMemo=function(e){return Ks(e)===Vs},Ls.isPortal=function(e){return Ks(e)===Ns},Ls.isProfiler=function(e){return Ks(e)===zs},Ls.isStrictMode=function(e){return Ks(e)===_s},Ls.isSuspense=function(e){return Ks(e)===Bs},Ls.isSuspenseList=function(e){return Ks(e)===Ws},Ls.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===js||e===zs||e===_s||e===Bs||e===Ws||"object"==typeof e&&null!==e&&(e.$$typeof===Us||e.$$typeof===Vs||e.$$typeof===$s||e.$$typeof===Fs||e.$$typeof===Hs||e.$$typeof===Ys||void 0!==e.getModuleId)},Ls.typeOf=Ks,Os.exports=Ls;var Xs=Os.exports;const Js=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Zs(e){const t=`${e}`.match(Js);return t&&t[1]||""}function Qs(e,t=""){return e.displayName||e.name||Zs(e)||t}function el(e,t,r){const n=Qs(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var tl=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Qs(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Xs.ForwardRef:return el(e,e.render,"ForwardRef");case Xs.Memo:return el(e,e.type,"memo");default:return}}},getFunctionName:Zs});function rl(e,t){const r=Gr({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=Gr({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},i&&Object.keys(i)?o&&Object.keys(o)?(r[n]=Gr({},i),Object.keys(o).forEach(e=>{r[n][e]=rl(o[e],i[e])})):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])}),r}const nl="undefined"!=typeof window?x.useLayoutEffect:x.useEffect;function ol(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var il=Object.freeze({__proto__:null,default:ol});function al(e){if(e.type)return e;if("#"===e.charAt(0))return al(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map(e=>e+e)),r?`rgb${4===r.length?"a":""}(${r.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(Wr(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=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(n))throw new Error(Wr(10,n))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:r,values:o,colorSpace:n}}function sl(e,t){return e=al(e),t=function(e,t=0,r=1){return ol(e,t,r)}(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:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}(e)}function ll(...e){return e.reduce((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)},()=>{})}function ul(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout(()=>{e.apply(this,n)},t)}return n.clear=()=>{clearTimeout(r)},n}function cl(e){return e&&e.ownerDocument||document}function dl(e){return cl(e).defaultView||window}function pl(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let fl=0;const hl=x["useId".toString()];function ml(e){if(void 0!==hl){return hl()}return function(e){const[t,r]=x.useState(e),n=t;return x.useEffect(()=>{null==t&&(fl+=1,r(`mui-${fl}`))},[t]),n}(e)}function gl({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=x.useRef(void 0!==e),[i,a]=x.useState(t);return[o?e:i,x.useCallback(e=>{o||a(e)},[])]}function bl(e){const t=x.useRef(e);return nl(()=>{t.current=e}),x.useRef((...e)=>(0,t.current)(...e)).current}function vl(...e){return x.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{pl(e,t)})},e)}const yl={};const xl=[];class Sl{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Sl}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function wl(){const e=function(e,t){const r=x.useRef(yl);return r.current===yl&&(r.current=e(t)),r}(Sl.create).current;return function(e){x.useEffect(e,xl)}(e.disposeEffect),e}let Cl=!0,El=!1;const Rl=new Sl,Al={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Ml(e){e.metaKey||e.altKey||e.ctrlKey||(Cl=!0)}function Pl(){Cl=!1}function Il(){"hidden"===this.visibilityState&&El&&(Cl=!0)}function kl(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Cl||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!Al[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function Dl(){const e=x.useCallback(e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Ml,!0),t.addEventListener("mousedown",Pl,!0),t.addEventListener("pointerdown",Pl,!0),t.addEventListener("touchstart",Pl,!0),t.addEventListener("visibilitychange",Il,!0))},[]),t=x.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!kl(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(El=!0,Rl.start(100,()=>{El=!1}),t.current=!1,!0)},ref:e}}function Tl(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Ol(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e},[]).join(" ")}),n}function Ll(e){return"string"==typeof e}function ql(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r)).forEach(t=>{r[t]=e[t]}),r}function Nl(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(r=>{t[r]=e[r]}),t}const jl=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function _l(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Yr(e,jl),s=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:l,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=Ps(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=Gr({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=Gr({},r,o,n);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=ql(Gr({},o,n)),s=Nl(n),l=Nl(o),u=t(a),c=Ps(null==u?void 0:u.className,null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),d=Gr({},null==u?void 0:u.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),p=Gr({},u,r,l,s);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(Gr({},a,{externalSlotProps:s})),c=function(e,t,r){return void 0===e||Ll(e)?t:Gr({},t,{ownerState:Gr({},t.ownerState,r)})}(r,Gr({},l,{ref:vl(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}function zl(e){var t;return parseInt(x.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const Fl=x.createContext(null);function $l(){return x.useContext(Fl)}var Hl="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Bl(e){const{children:t,theme:r}=e,n=$l(),o=x.useMemo(()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return Gr({},e,t)}(n,r);return null!=e&&(e[Hl]=null!==n),e},[r,n]);return ur.jsx(Fl.Provider,{value:o,children:t})}const Wl=["value"],Vl=x.createContext();function Ul(e){let{value:t}=e,r=Yr(e,Wl);return ur.jsx(Vl.Provider,Gr({value:null==t||t},r))}const Gl=x.createContext(void 0);function Yl({value:e,children:t}){return ur.jsx(Gl.Provider,{value:e,children:t})}function Kl({props:e,name:t}){return function(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?rl(o.defaultProps,n):o.styleOverrides||o.variants?n:rl(o,n)}({props:e,name:t,theme:{components:x.useContext(Gl)}})}const Xl={};function Jl(e,t,r,n=!1){return x.useMemo(()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?Gr({},t,{[e]:i}):i;return n?()=>a:a}return Gr({},t,e?{[e]:r}:r)},[e,t,r,n])}function Zl(e){const{children:t,theme:r,themeId:n}=e,o=bs(Xl),i=$l()||Xl,a=Jl(n,o,r),s=Jl(n,i,r,!0),l="rtl"===a.direction,u=function(e){const t=bs(),r=ml()||"",{modularCssLayers:n}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=n&&null===t?"string"==typeof n?n.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",nl(()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){var n;if(t&&null!=(n=t.hasAttribute)&&n.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===r)return;const i=document.createElement("style");i.setAttribute("data-mui-layer-order",r),i.textContent=o,e.prepend(i)}else{var i;null==(i=e.querySelector(`style[data-mui-layer-order="${r}"]`))||i.remove()}},[o,r]),o?ur.jsx(Ss,{styles:o}):null}(a);return ur.jsx(Bl,{theme:s,children:ur.jsx(qi.Provider,{value:a,children:ur.jsx(Ul,{value:l,children:ur.jsxs(Yl,{value:null==a?void 0:a.components,children:[u,t]})})})})}function Ql(e){return Ql="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},Ql(e)}function eu(e){var t=function(e,t){if("object"!=Ql(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=Ql(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Ql(t)?t:t+""}function tu(e,t){return Gr({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var ru,nu={},ou={exports:{}};(ru=ou).exports=function(e){return e&&e.__esModule?e:{default:e}},ru.exports.__esModule=!0,ru.exports.default=ru.exports;var iu=ou.exports,au=Qt(Vr),su=Qt(il),lu=iu;Object.defineProperty(nu,"__esModule",{value:!0});var uu=nu.alpha=wu;nu.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=bu(e),a=bu(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return yu({type:"rgb",values:s})},nu.colorChannel=void 0;var cu=nu.darken=Cu;nu.decomposeColor=bu,nu.emphasize=Ru;var du=nu.getContrastRatio=function(e,t){const r=Su(e),n=Su(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};nu.getLuminance=Su,nu.hexToRgb=gu,nu.hslToRgb=xu;var pu=nu.lighten=Eu;nu.private_safeAlpha=function(e,t,r){try{return wu(e,t)}catch(t){return e}},nu.private_safeColorChannel=void 0,nu.private_safeDarken=function(e,t,r){try{return Cu(e,t)}catch(t){return e}},nu.private_safeEmphasize=function(e,t,r){try{return Ru(e,t)}catch(t){return e}},nu.private_safeLighten=function(e,t,r){try{return Eu(e,t)}catch(t){return e}},nu.recomposeColor=yu,nu.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=bu(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 fu=lu(au),hu=lu(su);function mu(e,t=0,r=1){return(0,hu.default)(e,t,r)}function gu(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map(e=>e+e)),r?`rgb${4===r.length?"a":""}(${r.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}function bu(e){if(e.type)return e;if("#"===e.charAt(0))return bu(gu(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,fu.default)(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=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(n))throw new Error((0,fu.default)(10,n))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:r,values:o,colorSpace:n}}const vu=e=>{const t=bu(e);return t.values.slice(0,3).map((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e).join(" ")};nu.colorChannel=vu;function yu(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function xu(e){e=bu(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),yu({type:s,values:l})}function Su(e){let t="hsl"===(e=bu(e)).type||"hsla"===e.type?bu(xu(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 wu(e,t){return e=bu(e),t=mu(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,yu(e)}function Cu(e,t){if(e=bu(e),t=mu(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 r=0;r<3;r+=1)e.values[r]*=1-t;return yu(e)}function Eu(e,t){if(e=bu(e),t=mu(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return yu(e)}function Ru(e,t=.15){return Su(e)>.5?Cu(e,t):Eu(e,t)}nu.private_safeColorChannel=(e,t)=>{try{return vu(e)}catch(t){return e}};const Au=["mode","contrastThreshold","tonalOffset"],Mu={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:cr.white,default:cr.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}},Pu={text:{primary:cr.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:cr.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 Iu(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=pu(e.main,o):"dark"===t&&(e.dark=cu(e.main,i)))}function ku(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Yr(e,Au),i=e.primary||function(e="light"){return"dark"===e?{main:Cr,light:wr,dark:Er}:{main:Rr,light:Er,dark:Ar}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:br,light:gr,dark:yr}:{main:xr,light:vr,dark:Sr}}(t),s=e.error||function(e="light"){return"dark"===e?{main:fr,light:dr,dark:hr}:{main:hr,light:pr,dark:mr}}(t),l=e.info||function(e="light"){return"dark"===e?{main:Pr,light:Mr,dark:kr}:{main:kr,light:Ir,dark:Dr}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Or,light:Tr,dark:qr}:{main:Nr,light:Lr,dark:jr}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:zr,light:_r,dark:$r}:{main:"#ed6c02",light:Fr,dark:Hr}}(t);function d(e){return du(e,Pu.text.primary)>=r?Pu.text.primary:Mu.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Gr({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Wr(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Wr(12,t?` (${t})`:"",JSON.stringify(e.main)));return Iu(e,"light",o,n),Iu(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Pu,light:Mu};return ua(Gr({common:Gr({},cr),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:Br,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const Du=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Tu={textTransform:"uppercase"},Ou='"Roboto", "Helvetica", "Arial", sans-serif';function Lu(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=Ou,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Yr(r,Du),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,r,o,i)=>{return Gr({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===Ou?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,Tu),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Tu),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ua(Gr({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function qu(...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(",")}const Nu=["none",qu(0,2,1,-1,0,1,1,0,0,1,3,0),qu(0,3,1,-2,0,2,2,0,0,1,5,0),qu(0,3,3,-2,0,3,4,0,0,1,8,0),qu(0,2,4,-1,0,4,5,0,0,1,10,0),qu(0,3,5,-1,0,5,8,0,0,1,14,0),qu(0,3,5,-1,0,6,10,0,0,1,18,0),qu(0,4,5,-2,0,7,10,1,0,2,16,1),qu(0,5,5,-3,0,8,10,1,0,3,14,2),qu(0,5,6,-3,0,9,12,1,0,3,16,2),qu(0,6,6,-3,0,10,14,1,0,4,18,3),qu(0,6,7,-4,0,11,15,1,0,4,20,3),qu(0,7,8,-4,0,12,17,2,0,5,22,4),qu(0,7,8,-4,0,13,19,2,0,5,24,4),qu(0,7,9,-4,0,14,21,2,0,5,26,4),qu(0,8,9,-5,0,15,22,2,0,6,28,5),qu(0,8,10,-5,0,16,24,2,0,6,30,5),qu(0,8,11,-5,0,17,26,2,0,6,32,5),qu(0,9,11,-5,0,18,28,2,0,7,34,6),qu(0,9,12,-6,0,19,29,2,0,7,36,6),qu(0,10,13,-6,0,20,31,3,0,8,38,7),qu(0,10,13,-6,0,21,33,3,0,8,40,7),qu(0,10,14,-6,0,22,35,3,0,8,42,7),qu(0,11,14,-7,0,23,36,3,0,9,44,8),qu(0,11,15,-7,0,24,38,3,0,9,46,8)],ju=["duration","easing","delay"],_u={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)"},zu={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Fu(e){return`${Math.round(e)}ms`}function $u(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Hu(e){const t=Gr({},_u,e.easing),r=Gr({},zu,e.duration);return Gr({getAutoHeightDuration:$u,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Yr(n,ju),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:Fu(o)} ${i} ${"string"==typeof a?a:Fu(a)}`).join(",")}},e,{easing:t,duration:r})}const Bu={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Wu=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Vu(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Yr(e,Wu);if(e.vars&&void 0===e.generateCssVars)throw new Error(Wr(18));const s=ku(n),l=ms(e);let u=ua(l,{mixins:tu(l.breakpoints,r),palette:s,shadows:Nu.slice(),typography:Lu(s,i),transitions:Hu(o),zIndex:Gr({},Bu)});return u=ua(u,a),u=t.reduce((e,t)=>ua(e,t),u),u.unstable_sxConfig=Gr({},cs,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return ps({sx:e,theme:this})},u}const Uu=Vu();function Gu(){const e=ys(Uu);return e[Ur]||e}var Yu,Ku={},Xu={exports:{}};function Ju(){return Yu||(Yu=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 r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}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}(Xu)),Xu.exports}var Zu,Qu={exports:{}};function ec(){return Zu||(Zu=1,function(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}(Qu)),Qu.exports}var tc=Qt(aa),rc=Qt(ca),nc=Qt(xa),oc=Qt(tl),ic=Qt(gs),ac=Qt(Es),sc=iu;Object.defineProperty(Ku,"__esModule",{value:!0});var lc=Ku.default=function(e={}){const{themeId:t,defaultTheme:r=Sc,rootShouldForwardProp:n=yc,slotShouldForwardProp:o=yc}=e,i=e=>(0,hc.default)((0,uc.default)({},e,{theme:Cc((0,uc.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,dc.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Ec(wc(l))}=a,p=(0,cc.default)(a,bc),f=s&&s.startsWith("Mui")||l?"components":"custom",h=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,m=c||!1;let g=yc;"Root"===l||"root"===l?g=n:l?g=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(g=void 0);const b=(0,dc.default)(e,(0,uc.default)({shouldForwardProp:g,label:void 0},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,pc.isPlainObject)(e)?n=>{const o=Cc({theme:n.theme,defaultTheme:r,themeId:t});return Rc(e,(0,uc.default)({},n,{theme:o}),o.modularCssLayers?f:void 0)}:e,y=(n,...o)=>{let a=v(n);const l=o?o.map(v):[];s&&d&&l.push(e=>{const n=Cc((0,uc.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[s]||!n.components[s].styleOverrides)return null;const o=n.components[s].styleOverrides,i={};return Object.entries(o).forEach(([t,r])=>{i[t]=Rc(r,(0,uc.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)}),d(e,i)}),s&&!h&&l.push(e=>{var n;const o=Cc((0,uc.default)({},e,{defaultTheme:r,themeId:t}));return Rc({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},(0,uc.default)({},e,{theme:o}),o.modularCssLayers?"theme":void 0)}),m||l.push(i);const u=l.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=b(a,...l);return e.muiName&&(c.muiName=e.muiName),c};return b.withConfig&&(y.withConfig=b.withConfig),y}};Ku.shouldForwardProp=yc,Ku.systemDefaultTheme=void 0;var uc=sc(Ju()),cc=sc(ec()),dc=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=vc(t);if(r&&r.has(e))return r.get(e);var n={__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(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(tc),pc=rc;sc(nc),sc(oc);var fc=sc(ic),hc=sc(ac);const mc=["ownerState"],gc=["variants"],bc=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function vc(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(vc=function(e){return e?r:t})(e)}function yc(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function xc(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const Sc=Ku.systemDefaultTheme=(0,fc.default)(),wc=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Cc({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function Ec(e){return e?(t,r)=>r[e]:null}function Rc(e,t,r){let{ownerState:n}=t,o=(0,cc.default)(t,mc);const i="function"==typeof e?e((0,uc.default)({ownerState:n},o)):e;if(Array.isArray(i))return i.flatMap(e=>Rc(e,(0,uc.default)({ownerState:n},o),r));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,cc.default)(i,gc);return e.forEach(e=>{let i=!0;if("function"==typeof e.props?i=e.props((0,uc.default)({ownerState:n},o,n)):Object.keys(e.props).forEach(t=>{(null==n?void 0:n[t])!==e.props[t]&&o[t]!==e.props[t]&&(i=!1)}),i){Array.isArray(t)||(t=[t]);const i="function"==typeof e.style?e.style((0,uc.default)({ownerState:n},o,n)):e.style;t.push(r?xc((0,dc.internal_serializeStyles)(i),r):i)}}),t}return r?xc((0,dc.internal_serializeStyles)(i),r):i}function Ac(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Mc=e=>Ac(e)&&"classes"!==e,Pc=lc({themeId:Ur,defaultTheme:Uu,rootShouldForwardProp:Mc}),Ic=["theme"];function kc(e){let{theme:t}=e,r=Yr(e,Ic);const n=t[Ur];let o=n||t;return"function"!=typeof t&&(n&&!n.vars?o=Gr({},n,{vars:null}):t&&!t.vars&&(o=Gr({},t,{vars:null}))),ur.jsx(Zl,Gr({},r,{themeId:n?Ur:void 0,theme:o}))}const Dc=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Tc(e){return Kl(e)}function Oc(e){return Ds("MuiSvgIcon",e)}Ts("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Lc=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],qc=Pc("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${ya(r.color)}`],t[`fontSize${ya(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,i,a,s,l,u,c,d,p,f,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}}),Nc=x.forwardRef(function(e,t){const r=Tc({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=r,p=Yr(r,Lc),f=x.isValidElement(n)&&"svg"===n.type,h=Gr({},r,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),m={};u||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:r,classes:n}=e;return Ol({root:["root","inherit"!==t&&`color${ya(t)}`,`fontSize${ya(r)}`]},Oc,n)})(h);return ur.jsxs(qc,Gr({as:a,className:Ps(g.root,o),focusable:"false",color:l,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},m,p,f&&n.props,{ownerState:h,children:[f?n.props.children:n,c?ur.jsx("title",{children:c}):null]}))});function jc(e,t){return jc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jc(e,t)}function _c(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,jc(e,t)}Nc.muiName="SvgIcon";var zc=!1,Fc=S.createContext(null),$c="unmounted",Hc="exited",Bc="entering",Wc="entered",Vc="exiting",Uc=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,i=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(o=Hc,n.appearStatus=Bc):o=Wc:o=t.unmountOnExit||t.mountOnEnter?$c:Hc,n.state={status:o},n.nextCallback=null,n}_c(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===$c?{status:Hc}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==Bc&&r!==Wc&&(t=Bc):r!==Bc&&r!==Wc||(t=Vc)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Bc){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:B.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Hc&&this.setState({status:$c})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[B.findDOMNode(this),n],i=o[0],a=o[1],s=this.getTimeouts(),l=n?s.appear:s.enter;!e&&!r||zc?this.safeSetState({status:Wc},function(){t.props.onEntered(i)}):(this.props.onEnter(i,a),this.safeSetState({status:Bc},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:Wc},function(){t.props.onEntered(i,a)})})}))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:B.findDOMNode(this);t&&!zc?(this.props.onExit(n),this.safeSetState({status:Vc},function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,function(){e.safeSetState({status:Hc},function(){e.props.onExited(n)})})})):this.safeSetState({status:Hc},function(){e.props.onExited(n)})},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:B.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===$c)return null;var t=this.props,r=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var n=Yr(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return S.createElement(Fc.Provider,{value:null},"function"==typeof r?r(e,n):S.cloneElement(S.Children.only(r),n))},t}(S.Component);function Gc(){}function Yc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kc(e,t){var r=Object.create(null);return e&&R.map(e,function(e){return e}).forEach(function(e){r[e.key]=function(e){return t&&C(e)?t(e):e}(e)}),r}function Xc(e,t,r){return null!=r[t]?r[t]:e.props[t]}function Jc(e,t,r){var n=Kc(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(n=0;n<o[l].length;n++){var u=o[l][n];s[o[l][n]]=r(u)}s[l]=r(l)}for(n=0;n<i.length;n++)s[i[n]]=r(i[n]);return s}(t,n);return Object.keys(o).forEach(function(i){var a=o[i];if(C(a)){var s=i in t,l=i in n,u=t[i],c=C(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&C(u)&&(o[i]=E(a,{onExited:r.bind(null,a),in:u.props.in,exit:Xc(a,"exit",e),enter:Xc(a,"enter",e)})):o[i]=E(a,{in:!1}):o[i]=E(a,{onExited:r.bind(null,a),in:!0,exit:Xc(a,"exit",e),enter:Xc(a,"enter",e)})}}),o}Uc.contextType=Fc,Uc.propTypes={},Uc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Gc,onEntering:Gc,onEntered:Gc,onExit:Gc,onExiting:Gc,onExited:Gc},Uc.UNMOUNTED=$c,Uc.EXITED=Hc,Uc.ENTERING=Bc,Uc.ENTERED=Wc,Uc.EXITING=Vc;var Zc=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Qc=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(Yc(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}_c(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r,n,o=t.children,i=t.handleExited;return{children:t.firstRender?(r=e,n=i,Kc(r.children,function(e){return E(e,{onExited:n.bind(null,e),in:!0,appear:Xc(e,"appear",r),enter:Xc(e,"enter",r),exit:Xc(e,"exit",r)})})):Jc(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=Kc(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var r=Gr({},t.children);return delete r[e.key],{children:r}}))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=Yr(e,["component","childFactory"]),o=this.state.contextValue,i=Zc(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?S.createElement(Fc.Provider,{value:o},i):S.createElement(Fc.Provider,{value:o},S.createElement(t,n,i))},t}(S.Component);Qc.propTypes={},Qc.defaultProps={component:"div",childFactory:function(e){return e}};const ed=e=>e.scrollTop;function td(e,t){var r,n;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(r=a.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=a.transitionTimingFunction)?n:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function rd(e){return Ds("MuiPaper",e)}Ts("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 nd=["className","component","elevation","square","variant"],od=Pc("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return Gr({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&&Gr({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${uu("#fff",Dc(t.elevation))}, ${uu("#fff",Dc(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))}),id=x.forwardRef(function(e,t){const r=Tc({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=r,l=Yr(r,nd),u=Gr({},r,{component:o,elevation:i,square:a,variant:s}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return Ol({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},rd,o)})(u);return ur.jsx(od,Gr({as:o,ownerState:u,className:Ps(c.root,n),ref:t},l))});const ad=Ts("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),sd=["center","classes","className"];let ld,ud,cd,dd,pd=e=>e;const fd=Xi(ld||(ld=pd`
|
|
18
18
|
0% {
|
|
19
19
|
transform: scale(0);
|
|
20
20
|
opacity: 0.1;
|
|
@@ -24,7 +24,7 @@ function Xi(e,t){let r;return r=t?zi(e).withConfig({displayName:t.label,shouldFo
|
|
|
24
24
|
transform: scale(1);
|
|
25
25
|
opacity: 0.3;
|
|
26
26
|
}
|
|
27
|
-
`)),
|
|
27
|
+
`)),hd=Xi(ud||(ud=pd`
|
|
28
28
|
0% {
|
|
29
29
|
opacity: 1;
|
|
30
30
|
}
|
|
@@ -32,7 +32,7 @@ function Xi(e,t){let r;return r=t?zi(e).withConfig({displayName:t.label,shouldFo
|
|
|
32
32
|
100% {
|
|
33
33
|
opacity: 0;
|
|
34
34
|
}
|
|
35
|
-
`)),
|
|
35
|
+
`)),md=Xi(cd||(cd=pd`
|
|
36
36
|
0% {
|
|
37
37
|
transform: scale(1);
|
|
38
38
|
}
|
|
@@ -44,7 +44,7 @@ function Xi(e,t){let r;return r=t?zi(e).withConfig({displayName:t.label,shouldFo
|
|
|
44
44
|
100% {
|
|
45
45
|
transform: scale(1);
|
|
46
46
|
}
|
|
47
|
-
`)),
|
|
47
|
+
`)),gd=Pc("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),bd=Pc(function(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:u}=e,[c,d]=x.useState(!1),p=Ps(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},h=Ps(r.child,c&&r.childLeaving,n&&r.childPulsate);return s||c||d(!0),x.useEffect(()=>{if(!s&&null!=l){const e=setTimeout(l,u);return()=>{clearTimeout(e)}}},[l,s,u]),ur.jsx("span",{className:p,style:f,children:ur.jsx("span",{className:h})})},{name:"MuiTouchRipple",slot:"Ripple"})(dd||(dd=pd`
|
|
48
48
|
opacity: 0;
|
|
49
49
|
position: absolute;
|
|
50
50
|
|
|
@@ -87,19 +87,19 @@ function Xi(e,t){let r;return r=t?zi(e).withConfig({displayName:t.label,shouldFo
|
|
|
87
87
|
animation-iteration-count: infinite;
|
|
88
88
|
animation-delay: 200ms;
|
|
89
89
|
}
|
|
90
|
-
`),Qc.rippleVisible,ad,550,({theme:e})=>e.transitions.easing.easeInOut,Qc.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Qc.child,Qc.childLeaving,sd,550,({theme:e})=>e.transitions.easing.easeInOut,Qc.childPulsate,ld,({theme:e})=>e.transitions.easing.easeInOut),dd=x.forwardRef(function(e,t){const r=Rc({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=Yr(r,ed),[s,l]=x.useState([]),u=x.useRef(0),c=x.useRef(null);x.useEffect(()=>{c.current&&(c.current(),c.current=null)},[s]);const d=x.useRef(!1),p=ml(),f=x.useRef(null),h=x.useRef(null),m=x.useCallback(e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;l(e=>[...e,ur.jsx(cd,{classes:{ripple:Ss(o.ripple,Qc.ripple),rippleVisible:Ss(o.rippleVisible,Qc.rippleVisible),ripplePulsate:Ss(o.ripplePulsate,Qc.ripplePulsate),child:Ss(o.child,Qc.child),childLeaving:Ss(o.childLeaving,Qc.childLeaving),childPulsate:Ss(o.childPulsate,Qc.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)]),u.current+=1,c.current=a},[o]),g=x.useCallback((e={},t={},r=()=>{})=>{const{pulsate:o=!1,center:i=n||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 s=a?null:h.current,l=s?s.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(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(r-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.start(80,()=>{f.current&&(f.current(),f.current=null)})):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},[n,m,p]),v=x.useCallback(()=>{g({},{pulsate:!0})},[g]),b=x.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,l(e=>e.length>0?e.slice(1):e),c.current=t},[p]);return x.useImperativeHandle(t,()=>({pulsate:v,start:g,stop:b}),[v,g,b]),ur.jsx(ud,Gr({className:Ss(Qc.root,o.root,i),ref:h},a,{children:ur.jsx(Uc,{component:null,exit:!0,children:s})}))});function pd(e){return Es("MuiButtonBase",e)}const fd=Rs("MuiButtonBase",["root","disabled","focusVisible"]),hd=["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"],md=Sc("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"},[`&.${fd.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),gd=x.forwardRef(function(e,t){const r=Rc({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:S,onMouseDown:w,onMouseLeave:C,onMouseUp:E,onTouchEnd:R,onTouchMove:A,onTouchStart:P,tabIndex:M=0,TouchRippleProps:I,touchRippleRef:k,type:D}=r,T=Yr(r,hd),O=x.useRef(null),L=x.useRef(null),q=dl(L,k),{isFocusVisibleRef:N,onFocus:_,onBlur:j,ref:z}=El(),[F,$]=x.useState(!1);l&&F&&$(!1),x.useImperativeHandle(n,()=>({focusVisible:()=>{$(!0),O.current.focus()}}),[]);const[H,B]=x.useState(!1);x.useEffect(()=>{B(!0)},[]);const W=H&&!u&&!l;function V(e,t,r=c){return cl(n=>{t&&t(n);return!r&&L.current&&L.current[e](n),!0})}x.useEffect(()=>{F&&d&&!u&&H&&L.current.pulsate()},[u,d,F,H]);const U=V("start",w),G=V("stop",m),Y=V("stop",g),K=V("stop",E),X=V("stop",e=>{F&&e.preventDefault(),C&&C(e)}),J=V("start",P),Z=V("stop",R),Q=V("stop",A),ee=V("stop",e=>{j(e),!1===N.current&&$(!1),f&&f(e)},!1),te=cl(e=>{O.current||(O.current=e.currentTarget),_(e),!0===N.current&&($(!0),b&&b(e)),v&&v(e)}),re=()=>{const e=O.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=x.useRef(!1),oe=cl(e=>{d&&!ne.current&&F&&L.current&&" "===e.key&&(ne.current=!0,L.current.stop(e,()=>{L.current.start(e)})),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!l&&(e.preventDefault(),h&&h(e))}),ie=cl(e=>{d&&" "===e.key&&L.current&&F&&!e.defaultPrevented&&(ne.current=!1,L.current.stop(e,()=>{L.current.pulsate(e)})),S&&S(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)});let ae=s;"button"===ae&&(T.href||T.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===D?"button":D,se.disabled=l):(T.href||T.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=dl(t,z,O),ue=Gr({},r,{centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:M,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Al({root:["root",t&&"disabled",r&&"focusVisible"]},pd,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return ur.jsxs(md,Gr({as:ae,className:Ss(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:U,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:M,type:D},se,T,{children:[i,W?ur.jsx(dd,Gr({ref:q,center:o},I)):null]}))});function vd(e){return Es("MuiIconButton",e)}const bd=Rs("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),yd=["edge","children","className","color","disabled","disableFocusRipple","size"],xd=Sc(gd,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${pa(r.color)}`],r.edge&&t[`edge${pa(r.edge)}`],t[`size${pa(r.size)}`]]}})(({theme:e,ownerState:t})=>Gr({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ru(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=null==(r=(e.vars||e).palette)?void 0:r[t.color];return Gr({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&Gr({color:null==n?void 0:n.main},!t.disableRipple&&{"&:hover":Gr({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ru(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${bd.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Sd=x.forwardRef(function(e,t){const r=Rc({props:e,name:"MuiIconButton"}),{edge:n=!1,children:o,className:i,color:a="default",disabled:s=!1,disableFocusRipple:l=!1,size:u="medium"}=r,c=Yr(r,yd),d=Gr({},r,{edge:n,color:a,disabled:s,disableFocusRipple:l,size:u}),p=(e=>{const{classes:t,disabled:r,color:n,edge:o,size:i}=e;return Al({root:["root",r&&"disabled","default"!==n&&`color${pa(n)}`,o&&`edge${pa(o)}`,`size${pa(i)}`]},vd,t)})(d);return ur.jsx(xd,Gr({className:Ss(p.root,i),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},c,{ownerState:d,children:o}))});function wd(e){return Es("MuiTypography",e)}Rs("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Cd=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Ed=Sc("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${pa(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>Gr({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})),Rd={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Ad={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Pd=x.forwardRef(function(e,t){const r=Rc({props:e,name:"MuiTypography"}),n=(e=>Ad[e]||e)(r.color),o=gs(Gr({},r,{color:n})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=Rd}=o,f=Yr(o,Cd),h=Gr({},o,{align:i,color:n,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=s||(c?"p":p[d]||Rd[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return Al({root:["root",i,"inherit"!==e.align&&`align${pa(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},wd,a)})(h);return ur.jsx(Ed,Gr({as:m,ref:t,ownerState:h,className:Ss(g.root,a)},f))});const Md=x.forwardRef(function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=x.useState(null),s=dl(x.isValidElement(r)?Tl(r):null,t);if(Xs(()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)},[n,o]),Xs(()=>{if(i&&!o)return il(t,i),()=>{il(t,null)}},[t,i,o]),o){if(x.isValidElement(r)){const e={ref:s};return x.cloneElement(r,e)}return ur.jsx(x.Fragment,{children:r})}return ur.jsx(x.Fragment,{children:i?H.createPortal(r,i):i})}),Id=["onChange","maxRows","minRows","style","value"];function kd(e){return parseInt(e,10)||0}const Dd={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Td(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Od=x.forwardRef(function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,s=Yr(e,Id),{current:l}=x.useRef(null!=a),u=x.useRef(null),c=dl(t,u),d=x.useRef(null),p=x.useRef(null),f=x.useCallback(()=>{const t=u.current,r=p.current;if(!t||!r)return;const i=ol(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};r.style.width=i.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const a=i.boxSizing,s=kd(i.paddingBottom)+kd(i.paddingTop),l=kd(i.borderBottomWidth)+kd(i.borderTopWidth),c=r.scrollHeight;r.value="x";const d=r.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*d,f)),n&&(f=Math.min(Number(n)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===a?s+l:0),overflowing:Math.abs(f-c)<=1}},[n,o,e.placeholder]),h=cl(()=>{const e=u.current,t=f();if(!e||!t||Td(t))return!1;const r=t.outerHeightStyle;return null!=d.current&&d.current!==r}),m=x.useCallback(()=>{const e=u.current,t=f();if(!e||!t||Td(t))return;const r=t.outerHeightStyle;d.current!==r&&(d.current=r,e.style.height=`${r}px`),e.style.overflow=t.overflowing?"hidden":""},[f]),g=x.useRef(-1);Xs(()=>{const e=rl(m),t=null==u?void 0:u.current;if(!t)return;const r=ol(t);let n;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(()=>{h()&&(n.unobserve(t),cancelAnimationFrame(g.current),m(),g.current=requestAnimationFrame(()=>{n.observe(t)}))}),n.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),r.removeEventListener("resize",e),n&&n.disconnect()}},[f,m,h]),Xs(()=>{m()});return ur.jsxs(x.Fragment,{children:[ur.jsx("textarea",Gr({value:a,onChange:e=>{l||m(),r&&r(e)},ref:c,rows:o,style:i},s)),ur.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:Gr({},Dd,i,{paddingTop:0,paddingBottom:0})})]})});function Ld({props:e,states:t,muiFormControl:r}){return t.reduce((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t),{})}const qd=x.createContext(void 0);function Nd(){return x.useContext(qd)}function _d(e){return ur.jsx(hs,Gr({},e,{defaultTheme:zu,themeId:Ur}))}function jd(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function zd(e,t=!1){return e&&(jd(e.value)&&""!==e.value||t&&jd(e.defaultValue)&&""!==e.defaultValue)}function Fd(e){return Es("MuiInputBase",e)}const $d=Rs("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Hd=["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"],Bd=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${pa(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Wd=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Vd=Sc("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Bd})(({theme:e,ownerState:t})=>Gr({},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",[`&.${$d.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Gr({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Ud=Sc("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Wd})(({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=Gr({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.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:r?.42:.5};return Gr({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":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${$d.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},[`&.${$d.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"})}),Gd=ur.jsx(_d,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Yd=x.forwardRef(function(e,t){var r;const n=Rc({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,components:l={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:v={},inputRef:b,maxRows:y,minRows:S,multiline:w=!1,name:C,onBlur:E,onChange:R,onClick:A,onFocus:P,onKeyDown:M,onKeyUp:I,placeholder:k,readOnly:D,renderSuffix:T,rows:O,slotProps:L={},slots:q={},startAdornment:N,type:_="text",value:j}=n,z=Yr(n,Hd),F=null!=v.value?v.value:j,{current:$}=x.useRef(null!=F),H=x.useRef(),B=x.useCallback(e=>{},[]),W=dl(H,b,v.ref,B),[V,U]=x.useState(!1),G=Nd(),Y=Ld({props:n,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=G?G.focused:V,x.useEffect(()=>{!G&&d&&V&&(U(!1),E&&E())},[G,d,V,E]);const K=G&&G.onFilled,X=G&&G.onEmpty,J=x.useCallback(e=>{zd(e)?K&&K():X&&X()},[K,X]);Xs(()=>{$&&J({value:F})},[F,J,$]);x.useEffect(()=>{J(H.current)},[]);let Z=g,Q=v;w&&"input"===Z&&(Q=Gr(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:y,minRows:S},Q),Z=Od);x.useEffect(()=>{G&&G.setAdornedStart(Boolean(N))},[G,N]);const ee=Gr({},n,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:f,error:Y.error,focused:Y.focused,formControl:G,fullWidth:h,hiddenLabel:Y.hiddenLabel,multiline:w,size:Y.size,startAdornment:N,type:_}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e;return Al({root:["root",`color${pa(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${pa(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Fd,t)})(ee),re=q.root||l.Root||Vd,ne=L.root||u.root||{},oe=q.input||l.Input||Ud;return Q=Gr({},Q,null!=(r=L.input)?r:u.input),ur.jsxs(x.Fragment,{children:[!p&&Gd,ur.jsxs(re,Gr({},ne,!Pl(re)&&{ownerState:Gr({},ee,ne.ownerState)},{ref:t,onClick:e=>{H.current&&e.currentTarget===e.target&&H.current.focus(),A&&A(e)}},z,{className:Ss(te.root,ne.className,s,D&&"MuiInputBase-readOnly"),children:[N,ur.jsx(qd.Provider,{value:null,children:ur.jsx(oe,Gr({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:Y.disabled,id:m,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?H.current:{value:"x"})},name:C,placeholder:k,readOnly:D,required:Y.required,rows:O,value:F,onKeyDown:M,onKeyUp:I,type:_},Q,!Pl(oe)&&{as:Z,ownerState:Gr({},ee,Q.ownerState)},{ref:W,className:Ss(te.input,Q.className,D&&"MuiInputBase-readOnly"),onBlur:e=>{E&&E(e),v.onBlur&&v.onBlur(e),G&&G.onBlur?G.onBlur(e):U(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||H.current;if(null==t)throw new Error(Wr(1));J({value:t.value})}v.onChange&&v.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(P&&P(e),v.onFocus&&v.onFocus(e),G&&G.onFocus?G.onFocus(e):U(!0))}}))}),f,T?T(Gr({},Y,{startAdornment:N})):null]}))]})});function Kd(e){return Es("MuiInput",e)}const Xd=Gr({},$d,Rs("MuiInput",["root","underline","input"]));function Jd(e){return Es("MuiOutlinedInput",e)}const Zd=Gr({},$d,Rs("MuiOutlinedInput",["root","notchedOutline","input"]));function Qd(e){return Es("MuiFilledInput",e)}const ep=Gr({},$d,Rs("MuiFilledInput",["root","underline","input"]));var tp=function(e,t){function r(r,n){return ur.jsx(Ic,Gr({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=Ic.muiName,x.memo(x.forwardRef(r))}(ur.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const rp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],np={entering:{opacity:1},entered:{opacity:1}},op=x.forwardRef(function(e,t){const r=Fu(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=n,TransitionComponent:v=zc}=e,b=Yr(e,rp),y=x.useRef(null),S=dl(y,Tl(a),t),w=e=>t=>{if(e){const r=y.current;void 0===t?e(r):e(r,t)}},C=w(d),E=w((e,t)=>{Gc(e);const n=Yc({style:m,timeout:g,easing:s},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),u&&u(e,t)}),R=w(c),A=w(h),P=w(e=>{const t=Yc({style:m,timeout:g,easing:s},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)}),M=w(f);return ur.jsx(v,Gr({appear:i,in:l,nodeRef:y,onEnter:E,onEntered:R,onEntering:C,onExit:P,onExited:M,onExiting:A,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>x.cloneElement(a,Gr({style:Gr({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},np[e],m,a.props.style),ref:S},t))}))});function ip(e){return Es("MuiBackdrop",e)}Rs("MuiBackdrop",["root","invisible"]);const ap=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],sp=Sc("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>Gr({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"})),lp=x.forwardRef(function(e,t){var r,n,o;const i=Rc({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=op,transitionDuration:g}=i,v=Yr(i,ap),b=Gr({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return Al({root:["root",r&&"invisible"]},ip,t)})(b),x=null!=(r=f.root)?r:c.root;return ur.jsx(m,Gr({in:p,timeout:g},v,{children:ur.jsx(sp,Gr({"aria-hidden":!0},x,{as:null!=(n=null!=(o=h.root)?o:u.Root)?n:l,className:Ss(y.root,s,null==x?void 0:x.className),ownerState:Gr({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}),up=Rs("MuiBox",["root"]),cp=ju(),dp=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=Xi("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(is);return x.forwardRef(function(e,a){const s=ps(r),l=gs(e),{className:u,component:c="div"}=l,d=Yr(l,ws);return ur.jsx(i,Gr({as:c,ref:a,className:Ss(u,o?o(n):n),theme:t&&s[t]||s},d))})}({themeId:Ur,defaultTheme:cp,defaultClassName:up.root,generateClassName:ys.generate});function pp(e){return Es("MuiButton",e)}const fp=Rs("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","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),hp=x.createContext({}),mp=x.createContext(void 0),gp=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],vp=e=>Gr({},"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}}),bp=Sc(gd,{shouldForwardProp:e=>xc(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${pa(r.color)}`],t[`size${pa(r.size)}`],t[`${r.variant}Size${pa(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;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 Gr({},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":Gr({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ru(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})`:ru(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})`:ru(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":Gr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${fp.focusVisible}`]:Gr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${fp.disabled}`]:Gr({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 ${ru(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,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"},[`&.${fp.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${fp.disabled}`]:{boxShadow:"none"}}),yp=Sc("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${pa(r.size)}`]]}})(({ownerState:e})=>Gr({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},vp(e))),xp=Sc("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${pa(r.size)}`]]}})(({ownerState:e})=>Gr({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},vp(e))),Sp=x.forwardRef(function(e,t){const r=x.useContext(hp),n=x.useContext(mp),o=Rc({props:Ks(r,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:v,variant:b="text"}=o,y=Yr(o,gp),S=Gr({},o,{color:a,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:v,variant:b}),w=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return Gr({},a,Al({root:["root",i,`${i}${pa(t)}`,`size${pa(o)}`,`${i}Size${pa(o)}`,`color${pa(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${pa(o)}`],endIcon:["icon","endIcon",`iconSize${pa(o)}`]},pp,a))})(S),C=g&&ur.jsx(yp,{className:w.startIcon,ownerState:S,children:g}),E=p&&ur.jsx(xp,{className:w.endIcon,ownerState:S,children:p}),R=n||"";return ur.jsxs(bp,Gr({ownerState:S,className:Ss(r.className,w.root,l,R),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:Ss(w.focusVisible,f),ref:t,type:v},y,{classes:w,children:[C,i,E]}))});function wp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Cp(e){return parseInt(ol(e).getComputedStyle(e).paddingRight,10)||0}function Ep(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&wp(e,o)})}function Rp(e,t){let r=-1;return e.some((e,n)=>!!t(e)&&(r=n,!0)),r}function Ap(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=nl(e);return t.body===e?ol(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=Rl(nl(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Cp(n)+e}px`;const t=nl(n).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Cp(t)+e}px`})}let e;if(n.parentNode instanceof DocumentFragment)e=nl(n).body;else{const t=n.parentElement,r=ol(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.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()=>{r.forEach(({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)})}}const Pp=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Mp(e){const t=[],r=[];return Array.from(e.querySelectorAll(Pp)).forEach((e,n)=>{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 r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))}),r.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function Ip(){return!0}function kp(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=Mp,isEnabled:a=Ip,open:s}=e,l=x.useRef(!1),u=x.useRef(null),c=x.useRef(null),d=x.useRef(null),p=x.useRef(null),f=x.useRef(!1),h=x.useRef(null),m=dl(Tl(t),h),g=x.useRef(null);x.useEffect(()=>{s&&h.current&&(f.current=!r)},[r,s]),x.useEffect(()=>{if(!s||!h.current)return;const e=nl(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),x.useEffect(()=>{if(!s||!h.current)return;const e=nl(h.current),t=t=>{g.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(l.current=!0,c.current&&c.current.focus())},r=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(n&&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 r=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(r=i(h.current)),r.length>0){var o,s;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=g.current)?void 0:s.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()},50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}},[r,n,o,a,s,i]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return ur.jsxs(x.Fragment,{children:[ur.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),x.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),ur.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}const Dp=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&wp(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);Ep(t,e.mount,e.modalRef,n,!0);const o=Rp(this.containers,e=>e.container===t);return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=Rp(this.containers,t=>-1!==t.modals.indexOf(e)),n=this.containers[r];n.restore||(n.restore=Ap(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=Rp(this.containers,t=>-1!==t.modals.indexOf(e)),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&wp(e.modalRef,t),Ep(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&wp(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Tp(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=Dp,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:d}=e,p=x.useRef({}),f=x.useRef(null),h=x.useRef(null),m=dl(h,d),[g,v]=x.useState(!c),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const S=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),w=()=>{o.mount(S(),{disableScrollLock:n}),h.current&&(h.current.scrollTop=0)},C=cl(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||nl(f.current).body;o.add(S(),e),h.current&&w()}),E=x.useCallback(()=>o.isTopModal(S()),[o]),R=cl(e=>{f.current=e,e&&(c&&E()?w():h.current&&wp(h.current,y))}),A=x.useCallback(()=>{o.remove(S(),y)},[y,o]);x.useEffect(()=>()=>{A()},[A]),x.useEffect(()=>{c?C():b&&i||A()},[c,A,b,i,C]);const P=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&E()&&(r||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},M=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const r=Ml(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=Gr({},r,t);return Gr({role:"presentation"},n,{onKeyDown:P(n),ref:m})},getBackdropProps:(e={})=>Gr({"aria-hidden":!0},e,{onClick:M(e),open:c}),getTransitionProps:()=>({onEnter:tl(()=>{v(!1),a&&a()},null==l?void 0:l.props.onEnter),onExited:tl(()=>{v(!0),s&&s(),i&&A()},null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:R,isTopModal:E,exited:g,hasTransition:b}}function Op(e){return Es("MuiModal",e)}Rs("MuiModal",["root","hidden","backdrop"]);const Lp=["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"],qp=Sc("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>Gr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Np=Sc(lp,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),_p=x.forwardRef(function(e,t){var r,n,o,i,a,s;const l=Rc({name:"MuiModal",props:e}),{BackdropComponent:u=Np,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:S=!1,disablePortal:w=!1,disableRestoreFocus:C=!1,disableScrollLock:E=!1,hideBackdrop:R=!1,keepMounted:A=!1,onBackdropClick:P,open:M,slotProps:I,slots:k}=l,D=Yr(l,Lp),T=Gr({},l,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:C,disableScrollLock:E,hideBackdrop:R,keepMounted:A}),{getRootProps:O,getBackdropProps:L,getTransitionProps:q,portalRef:N,isTopModal:_,exited:j,hasTransition:z}=Tp(Gr({},T,{rootRef:t})),F=Gr({},T,{exited:j}),$=(e=>{const{open:t,exited:r,classes:n}=e;return Al({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Op,n)})(F),H={};if(void 0===f.props.tabIndex&&(H.tabIndex="-1"),z){const{onEnter:e,onExited:t}=q();H.onEnter=e,H.onExited=t}const B=null!=(r=null!=(n=null==k?void 0:k.root)?n:g.Root)?r:qp,W=null!=(o=null!=(i=null==k?void 0:k.backdrop)?i:g.Backdrop)?o:u,V=null!=(a=null==I?void 0:I.root)?a:v.root,U=null!=(s=null==I?void 0:I.backdrop)?s:v.backdrop,G=Dl({elementType:B,externalSlotProps:V,externalForwardedProps:D,getSlotProps:O,additionalProps:{ref:t,as:m},ownerState:F,className:Ss(d,null==V?void 0:V.className,null==$?void 0:$.root,!F.open&&F.exited&&(null==$?void 0:$.hidden))}),Y=Dl({elementType:W,externalSlotProps:U,additionalProps:c,getSlotProps:e=>L(Gr({},e,{onClick:t=>{P&&P(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Ss(null==U?void 0:U.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:F});return A||M||z&&!j?ur.jsx(Md,{ref:N,container:h,disablePortal:w,children:ur.jsxs(B,Gr({},G,{children:[!R&&u?ur.jsx(W,Gr({},Y)):null,ur.jsx(kp,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:C,isEnabled:_,open:M,children:x.cloneElement(f,H)})]}))}):null});function jp(e){return Es("MuiDivider",e)}const zp=Rs("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Fp=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],$p=Sc("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>Gr({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)`:ru(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})=>Gr({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>Gr({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>Gr({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>Gr({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Hp=Sc("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>Gr({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)`})),Bp=x.forwardRef(function(e,t){const r=Rc({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=Yr(r,Fp),h=Gr({},r,{absolute:n,component:a,flexItem:s,light:l,orientation:u,role:c,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return Al({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},jp,n)})(h);return ur.jsx($p,Gr({as:a,className:Ss(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?ur.jsx(Hp,{className:m.wrapper,ownerState:h,children:o}):null}))});Bp.muiSkipListHighlight=!0;const Wp=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Vp=Sc(Vd,{shouldForwardProp:e=>xc(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Bd(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Gr({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}},[`&.${ep.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${ep.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.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"},[`&.${ep.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ep.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(.${ep.disabled}, .${ep.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ep.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Gr({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}))}),Up=Sc(Ud,{name:"MuiFilledInput",slot:"Input",overridesResolver:Wd})(({theme:e,ownerState:t})=>Gr({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})),Gp=x.forwardRef(function(e,t){var r,n,o,i;const a=Rc({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:h="text"}=a,m=Yr(a,Wp),g=Gr({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),v=(e=>{const{classes:t,disableUnderline:r}=e;return Gr({},t,Al({root:["root",!r&&"underline"],input:["input"]},Qd,t))})(a),b={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:l)?ra(b,null!=p?p:l):b,x=null!=(r=null!=(n=f.root)?n:s.Root)?r:Vp,S=null!=(o=null!=(i=f.input)?i:s.Input)?o:Up;return ur.jsx(Yd,Gr({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:v}))});Gp.muiName="Input";const Yp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Kp(e){return`scale(${e}, ${e**2})`}const Xp={entering:{opacity:1,transform:Kp(1)},entered:{opacity:1,transform:"none"}},Jp="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Zp=x.forwardRef(function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=zc}=e,g=Yr(e,Yp),v=ml(),b=x.useRef(),y=Fu(),S=x.useRef(null),w=dl(S,Tl(o),t),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},E=C(u),R=C((e,t)=>{Gc(e);const{duration:r,delay:n,easing:o}=Yc({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=r,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:n}),y.transitions.create("transform",{duration:Jp?a:.666*a,delay:n,easing:o})].join(","),s&&s(e,t)}),A=C(l),P=C(p),M=C(e=>{const{duration:t,delay:r,easing:n}=Yc({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:r}),y.transitions.create("transform",{duration:Jp?o:.666*o,delay:Jp?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Kp(.75),c&&c(e)}),I=C(d);return ur.jsx(m,Gr({appear:n,in:a,nodeRef:S,onEnter:R,onEntered:A,onEntering:E,onExit:M,onExited:I,onExiting:P,addEndListener:e=>{"auto"===h&&v.start(b.current||0,e),r&&r(S.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>x.cloneElement(o,Gr({style:Gr({opacity:0,transform:Kp(.75),visibility:"exited"!==e||a?void 0:"hidden"},Xp[e],f,o.props.style),ref:w},t))}))});Zp.muiSupportAuto=!0;const Qp=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],ef=Sc(Vd,{shouldForwardProp:e=>xc(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Bd(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Gr({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"},[`&.${Xd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Xd.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,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(.${Xd.disabled}, .${Xd.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Xd.disabled}:before`]:{borderBottomStyle:"dotted"}})}),tf=Sc(Ud,{name:"MuiInput",slot:"Input",overridesResolver:Wd})({}),rf=x.forwardRef(function(e,t){var r,n,o,i;const a=Rc({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:h={},type:m="text"}=a,g=Yr(a,Qp),v=(e=>{const{classes:t,disableUnderline:r}=e;return Gr({},t,Al({root:["root",!r&&"underline"],input:["input"]},Kd,t))})(a),b={root:{ownerState:{disableUnderline:s}}},y=(null!=f?f:u)?ra(null!=f?f:u,b):b,x=null!=(r=null!=(n=h.root)?n:l.Root)?r:ef,S=null!=(o=null!=(i=h.input)?i:l.Input)?o:tf;return ur.jsx(Yd,Gr({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:v}))});function nf(e){return Es("MuiLink",e)}rf.muiName="Input";const of=Rs("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),af={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},sf=({theme:e,ownerState:t})=>{const r=(e=>af[e]||e)(t.color),n=ha(e,`palette.${r}`,!1)||t.color,o=ha(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:ru(n,.4)},lf=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],uf=Sc(Pd,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${pa(r.underline)}`],"button"===r.component&&t.button]}})(({theme:e,ownerState:t})=>Gr({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Gr({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:sf({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"},[`&.${of.focusVisible}`]:{outline:"auto"}})),cf=x.forwardRef(function(e,t){const r=Rc({props:e,name:"MuiLink"}),{className:n,color:o="primary",component:i="a",onBlur:a,onFocus:s,TypographyClasses:l,underline:u="always",variant:c="inherit",sx:d}=r,p=Yr(r,lf),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=El(),[v,b]=x.useState(!1),y=dl(t,g),S=Gr({},r,{color:o,component:i,focusVisible:v,underline:u,variant:c}),w=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return Al({root:["root",`underline${pa(o)}`,"button"===r&&"button",n&&"focusVisible"]},nf,t)})(S);return ur.jsx(uf,Gr({color:o,className:Ss(w.root,n),classes:l,component:i,onBlur:e=>{h(e),!1===f.current&&b(!1),a&&a(e)},onFocus:e=>{m(e),!0===f.current&&b(!0),s&&s(e)},ref:y,ownerState:S,variant:c,sx:[...Object.keys(af).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}),df=x.createContext({});function pf(e){return Es("MuiList",e)}Rs("MuiList",["root","padding","dense","subheader"]);const ff=["children","className","component","dense","disablePadding","subheader"],hf=Sc("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>Gr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),mf=x.forwardRef(function(e,t){const r=Rc({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=r,u=Yr(r,ff),c=x.useMemo(()=>({dense:a}),[a]),d=Gr({},r,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Al({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},pf,t)})(d);return ur.jsx(df.Provider,{value:c,children:ur.jsxs(hf,Gr({as:i,className:Ss(p.root,o),ref:t,ownerState:d},u,{children:[l,n]}))})});function gf(e){return Es("MuiListItemIcon",e)}const vf=Rs("MuiListItemIcon",["root","alignItemsFlexStart"]),bf=["className"],yf=Sc("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>Gr({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})),xf=x.forwardRef(function(e,t){const r=Rc({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=Yr(r,bf),i=Gr({},r,{alignItems:x.useContext(df).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return Al({root:["root","flex-start"===t&&"alignItemsFlexStart"]},gf,r)})(i);return ur.jsx(yf,Gr({className:Ss(a.root,n),ownerState:i,ref:t},o))}),Sf=Rs("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),wf=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Cf(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Ef(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Rf(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function Af(e,t,r,n,o,i){let a=!1,s=o(e,t,!!t&&r);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&Rf(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const Pf=x.forwardRef(function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=Yr(e,wf),p=x.useRef(null),f=x.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Xs(()=>{n&&p.current.focus()},[n]),x.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${Rl(nl(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}}),[]);const h=dl(p,t);let m=-1;x.Children.forEach(i,(e,t)=>{x.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))});const g=x.Children.map(i,(e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),x.cloneElement(e,t)}return e});return ur.jsx(mf,Gr({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=nl(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Af(t,n,l,s,Cf);else if("ArrowUp"===r)e.preventDefault(),Af(t,n,l,s,Ef);else if("Home"===r)e.preventDefault(),Af(t,null,l,s,Cf);else if("End"===r)e.preventDefault(),Af(t,null,l,s,Ef);else if(1===r.length){const o=f.current,i=r.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 l=n&&!o.repeating&&Rf(n,o);o.previousKeyMatched&&(l||Af(t,n,!1,s,Cf,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))});function Mf(e){return Es("MuiPopover",e)}Rs("MuiPopover",["root","paper"]);const If=["onEntering"],kf=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Df=["slotProps"];function Tf(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Of(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Lf(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function qf(e){return"function"==typeof e?e():e}const Nf=Sc(_p,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_f=Sc(Zc,{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}),jf=x.forwardRef(function(e,t){var r,n,o;const i=Rc({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:v={},slots:b,slotProps:y,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:w=Zp,transitionDuration:C="auto",TransitionProps:{onEntering:E}={},disableScrollLock:R=!1}=i,A=Yr(i.TransitionProps,If),P=Yr(i,kf),M=null!=(r=null==y?void 0:y.paper)?r:v,I=x.useRef(),k=dl(I,M.ref),D=Gr({},i,{anchorOrigin:l,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:M,transformOrigin:S,TransitionComponent:w,transitionDuration:C,TransitionProps:A}),T=(e=>{const{classes:t}=e;return Al({root:["root"],paper:["paper"]},Mf,t)})(D),O=x.useCallback(()=>{if("anchorPosition"===c)return u;const e=qf(s),t=(e&&1===e.nodeType?e:nl(I.current).body).getBoundingClientRect();return{top:t.top+Tf(t,l.vertical),left:t.left+Of(t,l.horizontal)}},[s,l.horizontal,l.vertical,u,c]),L=x.useCallback(e=>({vertical:Tf(e,S.vertical),horizontal:Of(e,S.horizontal)}),[S.horizontal,S.vertical]),q=x.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=L(t);if("none"===c)return{top:null,left:null,transformOrigin:Lf(r)};const n=O();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,u=ol(qf(s)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,r.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,r.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,r.horizontal+=e}else if(l>p){const e=l-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Lf(r)}},[s,c,O,L,m]),[N,_]=x.useState(g),j=x.useCallback(()=>{const e=I.current;if(!e)return;const t=q(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,_(!0)},[q]);x.useEffect(()=>(R&&window.addEventListener("scroll",j),()=>window.removeEventListener("scroll",j)),[s,R,j]);x.useEffect(()=>{g&&j()}),x.useImperativeHandle(a,()=>g?{updatePosition:()=>{j()}}:null,[g,j]),x.useEffect(()=>{if(!g)return;const e=rl(()=>{j()}),t=ol(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[s,g,j]);let z=C;"auto"!==C||w.muiSupportAuto||(z=void 0);const F=f||(s?nl(qf(s)).body:void 0),$=null!=(n=null==b?void 0:b.root)?n:Nf,H=null!=(o=null==b?void 0:b.paper)?o:_f,B=Dl({elementType:H,externalSlotProps:Gr({},M,{style:N?M.style:Gr({},M.style,{opacity:0})}),additionalProps:{elevation:h,ref:k},ownerState:D,className:Ss(T.paper,null==M?void 0:M.className)}),W=Dl({elementType:$,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:P,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:D,className:Ss(T.root,p)}),{slotProps:V}=W,U=Yr(W,Df);return ur.jsx($,Gr({},U,!Pl($)&&{slotProps:V,disableScrollLock:R},{children:ur.jsx(w,Gr({appear:!0,in:g,onEntering:(e,t)=>{E&&E(e,t),j()},onExited:()=>{_(!1)},timeout:z},A,{children:ur.jsx(H,Gr({},B,{children:d}))}))}))});function zf(e){return Es("MuiMenu",e)}Rs("MuiMenu",["root","paper","list"]);const Ff=["onEntering"],$f=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Hf={vertical:"top",horizontal:"right"},Bf={vertical:"top",horizontal:"left"},Wf=Sc(jf,{shouldForwardProp:e=>xc(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Vf=Sc(_f,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Uf=Sc(Pf,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Gf=x.forwardRef(function(e,t){var r,n;const o=Rc({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:v={},slotProps:b={}}=o,y=Yr(o.TransitionProps,Ff),S=Yr(o,$f),w=(()=>{const e=x.useContext(jl);return null!=e&&e})(),C=Gr({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:y,variant:g}),E=(e=>{const{classes:t}=e;return Al({root:["root"],paper:["paper"],list:["list"]},zf,t)})(C),R=i&&!l&&d,A=x.useRef(null);let P=-1;x.Children.map(a,(e,t)=>{x.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===P)&&(P=t))});const M=null!=(r=v.paper)?r:Vf,I=null!=(n=b.paper)?n:p,k=Dl({elementType:v.root,externalSlotProps:b.root,ownerState:C,className:[E.root,s]}),D=Dl({elementType:M,externalSlotProps:I,ownerState:C,className:E.paper});return ur.jsx(Wf,Gr({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?Hf:Bf,slots:{paper:M,root:v.root},slotProps:{root:k,paper:D},open:d,ref:t,transitionDuration:h,TransitionProps:Gr({onEntering:(e,t)=>{A.current&&A.current.adjustStyleForScrollbar(e,{direction:w?"rtl":"ltr"}),m&&m(e,t)}},y),ownerState:C},S,{classes:f,children:ur.jsx(Uf,Gr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:A,autoFocus:i&&(-1===P||l),autoFocusItem:R,variant:g},u,{className:Ss(E.list,u.className),children:a}))}))});function Yf(e){return Es("MuiMenuItem",e)}const Kf=Rs("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Xf=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Jf=Sc(gd,{shouldForwardProp:e=>xc(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>Gr({},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"}},[`&.${Kf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ru(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Kf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ru(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Kf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ru(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})`:ru(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Kf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Kf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${zp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${zp.inset}`]:{marginLeft:52},[`& .${Sf.root}`]:{marginTop:0,marginBottom:0},[`& .${Sf.inset}`]:{paddingLeft:36},[`& .${vf.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Gr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${vf.root} svg`]:{fontSize:"1.25rem"}}))),Zf=x.forwardRef(function(e,t){const r=Rc({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:u="menuitem",tabIndex:c,className:d}=r,p=Yr(r,Xf),f=x.useContext(df),h=x.useMemo(()=>({dense:i||f.dense||!1,disableGutters:s}),[f.dense,i,s]),m=x.useRef(null);Xs(()=>{n&&m.current&&m.current.focus()},[n]);const g=Gr({},r,{dense:h.dense,divider:a,disableGutters:s}),v=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return Gr({},a,Al({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},Yf,a))})(r),b=dl(m,t);let y;return r.disabled||(y=void 0!==c?c:-1),ur.jsx(df.Provider,{value:h,children:ur.jsx(Jf,Gr({ref:b,role:u,tabIndex:y,component:o,focusVisibleClassName:Ss(v.focusVisible,l),className:Ss(v.root,d)},p,{ownerState:g,classes:v}))})});function Qf(e){return Es("MuiNativeSelect",e)}const eh=Rs("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),th=["className","disabled","error","IconComponent","inputRef","variant"],rh=({ownerState:e,theme:t})=>Gr({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Gr({},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"},[`&.${eh.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}}),nh=Sc("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:xc,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${eh.multiple}`]:t.multiple}]}})(rh),oh=({ownerState:e,theme:t})=>Gr({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${eh.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),ih=Sc("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${pa(r.variant)}`],r.open&&t.iconOpen]}})(oh),ah=x.forwardRef(function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:s="standard"}=e,l=Yr(e,th),u=Gr({},e,{disabled:n,variant:s,error:o}),c=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return Al({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${pa(r)}`,i&&"iconOpen",n&&"disabled"]},Qf,t)})(u);return ur.jsxs(x.Fragment,{children:[ur.jsx(nh,Gr({ownerState:u,className:Ss(c.select,r),disabled:n,ref:a||t},l)),e.multiple?null:ur.jsx(ih,{as:i,ownerState:u,className:c.icon})]})});var sh;const lh=["children","classes","className","label","notched"],uh=Sc("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:xc})({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%"}),ch=Sc("legend",{name:"MuiNotchedOutlined",shouldForwardProp:xc})(({ownerState:e,theme:t})=>Gr({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&&Gr({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 dh=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],ph=Sc(Vd,{shouldForwardProp:e=>xc(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Bd})(({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Gr({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Zd.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Zd.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Zd.focused} .${Zd.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Zd.error} .${Zd.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Zd.disabled} .${Zd.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Gr({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))}),fh=Sc(function(e){const{className:t,label:r,notched:n}=e,o=Yr(e,lh),i=null!=r&&""!==r,a=Gr({},e,{notched:n,withLabel:i});return ur.jsx(uh,Gr({"aria-hidden":!0,className:t,ownerState:a},o,{children:ur.jsx(ch,{ownerState:a,children:i?ur.jsx("span",{children:r}):sh||(sh=ur.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}}),hh=Sc(Ud,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Wd})(({theme:e,ownerState:t})=>Gr({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})),mh=x.forwardRef(function(e,t){var r,n,o,i,a;const s=Rc({props:e,name:"MuiOutlinedInput"}),{components:l={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:h={},type:m="text"}=s,g=Yr(s,dh),v=(e=>{const{classes:t}=e;return Gr({},t,Al({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Jd,t))})(s),b=Nd(),y=Ld({props:s,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=Gr({},s,{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:m}),w=null!=(r=null!=(n=h.root)?n:l.Root)?r:ph,C=null!=(o=null!=(i=h.input)?i:l.Input)?o:hh;return ur.jsx(Yd,Gr({slots:{root:w,input:C},renderSuffix:e=>ur.jsx(fh,{ownerState:S,className:v.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=ur.jsxs(x.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:m},g,{classes:Gr({},v,{notchedOutline:null})}))});function gh(e){return Es("MuiSelect",e)}mh.muiName="Input";const vh=Rs("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var bh;const yh=["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"],xh=Sc("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${vh.select}`]:t.select},{[`&.${vh.select}`]:t[r.variant]},{[`&.${vh.error}`]:t.error},{[`&.${vh.multiple}`]:t.multiple}]}})(rh,{[`&.${vh.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Sh=Sc("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${pa(r.variant)}`],r.open&&t.iconOpen]}})(oh),wh=Sc("input",{shouldForwardProp:e=>yc(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 Ch(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Eh(e){return null==e||"string"==typeof e&&!e.trim()}const Rh=x.forwardRef(function(e,t){var r;const{"aria-describedby":n,"aria-label":o,autoFocus:i,autoWidth:a,children:s,className:l,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:h,inputRef:m,labelId:g,MenuProps:v={},multiple:b,name:y,onBlur:S,onChange:w,onClose:C,onFocus:E,onOpen:R,open:A,readOnly:P,renderValue:M,SelectDisplayProps:I={},tabIndex:k,value:D,variant:T="standard"}=e,O=Yr(e,yh),[L,q]=ul({controlled:D,default:c,name:"Select"}),[N,_]=ul({controlled:A,default:u,name:"Select"}),j=x.useRef(null),z=x.useRef(null),[F,$]=x.useState(null),{current:H}=x.useRef(null!=A),[B,W]=x.useState(),V=dl(t,m),U=x.useCallback(e=>{z.current=e,e&&$(e)},[]),G=null==F?void 0:F.parentNode;x.useImperativeHandle(V,()=>({focus:()=>{z.current.focus()},node:j.current,value:L}),[L]),x.useEffect(()=>{u&&N&&F&&!H&&(W(a?null:G.clientWidth),z.current.focus())},[F,a]),x.useEffect(()=>{i&&z.current.focus()},[i]),x.useEffect(()=>{if(!g)return;const e=nl(z.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}},[g]);const Y=(e,t)=>{e?R&&R(t):C&&C(t),H||(W(a?null:G.clientWidth),_(e))},K=x.Children.toArray(s),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(b){r=Array.isArray(L)?L.slice():[];const t=L.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),L!==r&&(q(r),w)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:y}}),w(o,e)}b||Y(!1,t)}},J=null!==F&&N;let Z,Q;delete O["aria-invalid"];const ee=[];let te=!1;(zd({value:L})||p)&&(M?Z=M(L):te=!0);const re=K.map(e=>{if(!x.isValidElement(e))return null;let t;if(b){if(!Array.isArray(L))throw new Error(Wr(2));t=L.some(t=>Ch(t,e.props.value)),t&&te&&ee.push(e.props.children)}else t=Ch(L,e.props.value),t&&te&&(Q=e.props.children);return x.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(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})});te&&(Z=b?0===ee.length?null:ee.reduce((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e),[]):Q);let ne,oe=B;!a&&H&&F&&(oe=G.clientWidth),ne=void 0!==k?k:d?null:0;const ie=I.id||(y?`mui-component-select-${y}`:void 0),ae=Gr({},e,{variant:T,value:L,open:J,error:f}),se=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return Al({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${pa(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},gh,t)})(ae),le=Gr({},v.PaperProps,null==(r=v.slotProps)?void 0:r.paper),ue=ll();return ur.jsxs(x.Fragment,{children:[ur.jsx(xh,Gr({ref:U,tabIndex:ne,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!P){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:d||P?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),Y(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:L,name:y}}),S(e))},onFocus:E},I,{ownerState:ae,className:Ss(I.className,se.select,l),id:ie,children:Eh(Z)?bh||(bh=ur.jsx("span",{className:"notranslate",children:""})):Z})),ur.jsx(wh,Gr({"aria-invalid":f,value:Array.isArray(L)?L.join(","):L,name:y,ref:j,"aria-hidden":!0,onChange:e=>{const t=K.find(t=>t.props.value===e.target.value);void 0!==t&&(q(t.props.value),w&&w(e,t))},tabIndex:-1,disabled:d,className:se.nativeInput,autoFocus:i,ownerState:ae},O)),ur.jsx(Sh,{as:h,className:se.icon,ownerState:ae}),ur.jsx(Gf,Gr({id:`menu-${y||""}`,anchorEl:G,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:Gr({"aria-labelledby":g,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:ue},v.MenuListProps),slotProps:Gr({},v.slotProps,{paper:Gr({},le,{style:Gr({minWidth:oe},null!=le?le.style:null)})}),children:re}))]})}),Ah=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Ph=["root"],Mh={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>xc(e)&&"variant"!==e,slot:"Root"},Ih=Sc(rf,Mh)(""),kh=Sc(mh,Mh)(""),Dh=Sc(Gp,Mh)(""),Th=x.forwardRef(function(e,t){const r=Rc({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:u=tp,id:c,input:d,inputProps:p,label:f,labelId:h,MenuProps:m,multiple:g=!1,native:v=!1,onClose:b,onOpen:y,open:S,renderValue:w,SelectDisplayProps:C,variant:E="outlined"}=r,R=Yr(r,Ah),A=v?ah:Rh,P=Ld({props:r,muiFormControl:Nd(),states:["variant","error"]}),M=P.variant||E,I=Gr({},r,{variant:M,classes:i}),k=(e=>{const{classes:t}=e;return t})(I),D=Yr(k,Ph),T=d||{standard:ur.jsx(Ih,{ownerState:I}),outlined:ur.jsx(kh,{label:f,ownerState:I}),filled:ur.jsx(Dh,{ownerState:I})}[M],O=dl(t,Tl(T));return ur.jsx(x.Fragment,{children:x.cloneElement(T,Gr({inputComponent:A,inputProps:Gr({children:o,error:P.error,IconComponent:u,variant:M,type:void 0,multiple:g},v?{id:c}:{autoWidth:n,defaultOpen:s,displayEmpty:l,labelId:h,MenuProps:m,onClose:b,onOpen:y,open:S,renderValue:w,SelectDisplayProps:Gr({id:c},C)},p,{classes:p?ra(D,p.classes):D},d?d.props.inputProps:{})},(g&&v||l)&&"outlined"===M?{notched:!0}:{},{ref:O,className:Ss(T.props.className,a,k.root)},!d&&{variant:M},R))})});Th.muiName="Select";const Oh=x.createContext();function Lh(e){return Es("MuiTable",e)}Rs("MuiTable",["root","stickyHeader"]);const qh=["className","component","padding","size","stickyHeader"],Nh=Sc("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>Gr({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Gr({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),_h="table",jh=x.forwardRef(function(e,t){const r=Rc({props:e,name:"MuiTable"}),{className:n,component:o=_h,padding:i="normal",size:a="medium",stickyHeader:s=!1}=r,l=Yr(r,qh),u=Gr({},r,{component:o,padding:i,size:a,stickyHeader:s}),c=(e=>{const{classes:t,stickyHeader:r}=e;return Al({root:["root",r&&"stickyHeader"]},Lh,t)})(u),d=x.useMemo(()=>({padding:i,size:a,stickyHeader:s}),[i,a,s]);return ur.jsx(Oh.Provider,{value:d,children:ur.jsx(Nh,Gr({as:o,role:o===_h?null:"table",ref:t,className:Ss(c.root,n),ownerState:u},l))})}),zh=x.createContext();function Fh(e){return Es("MuiTableBody",e)}Rs("MuiTableBody",["root"]);const $h=["className","component"],Hh=Sc("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Bh={variant:"body"},Wh="tbody",Vh=x.forwardRef(function(e,t){const r=Rc({props:e,name:"MuiTableBody"}),{className:n,component:o=Wh}=r,i=Yr(r,$h),a=Gr({},r,{component:o}),s=(e=>{const{classes:t}=e;return Al({root:["root"]},Fh,t)})(a);return ur.jsx(zh.Provider,{value:Bh,children:ur.jsx(Hh,Gr({className:Ss(s.root,n),as:o,ref:t,role:o===Wh?null:"rowgroup",ownerState:a},i))})});function Uh(e){return Es("MuiTableCell",e)}const Gh=Rs("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Yh=["align","className","component","padding","scope","size","sortDirection","variant"],Kh=Sc("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${pa(r.size)}`],"normal"!==r.padding&&t[`padding${pa(r.padding)}`],"inherit"!==r.align&&t[`align${pa(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>Gr({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?iu(ru(e.palette.divider,1),.88):nu(ru(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:(e.vars||e).palette.text.primary},"footer"===t.variant&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${Gh.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Xh=x.forwardRef(function(e,t){const r=Rc({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:i,padding:a,scope:s,size:l,sortDirection:u,variant:c}=r,d=Yr(r,Yh),p=x.useContext(Oh),f=x.useContext(zh),h=f&&"head"===f.variant;let m;m=i||(h?"th":"td");let g=s;"td"===m?g=void 0:!g&&h&&(g="col");const v=c||f&&f.variant,b=Gr({},r,{align:n,component:m,padding:a||(p&&p.padding?p.padding:"normal"),size:l||(p&&p.size?p.size:"medium"),sortDirection:u,stickyHeader:"head"===v&&p&&p.stickyHeader,variant:v}),y=(e=>{const{classes:t,variant:r,align:n,padding:o,size:i,stickyHeader:a}=e;return Al({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${pa(n)}`,"normal"!==o&&`padding${pa(o)}`,`size${pa(i)}`]},Uh,t)})(b);let S=null;return u&&(S="asc"===u?"ascending":"descending"),ur.jsx(Kh,Gr({as:m,ref:t,className:Ss(y.root,o),"aria-sort":S,scope:g,ownerState:b},d))});function Jh(e){return Es("MuiTableContainer",e)}Rs("MuiTableContainer",["root"]);const Zh=["className","component"],Qh=Sc("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),em=x.forwardRef(function(e,t){const r=Rc({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=Yr(r,Zh),a=Gr({},r,{component:o}),s=(e=>{const{classes:t}=e;return Al({root:["root"]},Jh,t)})(a);return ur.jsx(Qh,Gr({ref:t,as:o,className:Ss(s.root,n),ownerState:a},i))});function tm(e){return Es("MuiTableHead",e)}Rs("MuiTableHead",["root"]);const rm=["className","component"],nm=Sc("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),om={variant:"head"},im="thead",am=x.forwardRef(function(e,t){const r=Rc({props:e,name:"MuiTableHead"}),{className:n,component:o=im}=r,i=Yr(r,rm),a=Gr({},r,{component:o}),s=(e=>{const{classes:t}=e;return Al({root:["root"]},tm,t)})(a);return ur.jsx(zh.Provider,{value:om,children:ur.jsx(nm,Gr({as:o,className:Ss(s.root,n),ref:t,role:o===im?null:"rowgroup",ownerState:a},i))})});function sm(e){return Es("MuiTableRow",e)}const lm=Rs("MuiTableRow",["root","selected","hover","head","footer"]),um=["className","component","hover","selected"],cm=Sc("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${lm.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${lm.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ru(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ru(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),dm="tr",pm=x.forwardRef(function(e,t){const r=Rc({props:e,name:"MuiTableRow"}),{className:n,component:o=dm,hover:i=!1,selected:a=!1}=r,s=Yr(r,um),l=x.useContext(zh),u=Gr({},r,{component:o,hover:i,selected:a,head:l&&"head"===l.variant,footer:l&&"footer"===l.variant}),c=(e=>{const{classes:t,selected:r,hover:n,head:o,footer:i}=e;return Al({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},sm,t)})(u);return ur.jsx(cm,Gr({as:o,ref:t,className:Ss(c.root,n),role:o===dm?null:"row",ownerState:u},s))});function fm(e){return ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:ur.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}function hm({fontSize:e="medium",children:t=null,className:r=""}={}){return ur.jsx("i",{style:{fontSize:"small"===e?"16px":"20px",margin:"small"===e?"-2px 0":void 0,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r,children:t})}function mm(e={}){return ur.jsx(hm,{...e,children:ur.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[ur.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),ur.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function gm(e={}){return ur.jsx(hm,{fontSize:"medium",...e,children:ur.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ur.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),ur.jsx("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"})]})})}function vm(e){return ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:ur.jsx("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345L9.345 8Z"})})}function bm(e={}){return ur.jsx(hm,{...e,children:ur.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:ur.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[ur.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),ur.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function ym(e={}){return ur.jsx(hm,{fontSize:"medium",...e,children:ur.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:ur.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:ur.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function xm({className:e}){return ur.jsx(hm,{fontSize:"small",className:e,children:ur.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:ur.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:ur.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:ur.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[ur.jsx("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),ur.jsx("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})]})})})})})}function Sm(e={}){return ur.jsx(hm,{...e,children:ur.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:ur.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:ur.jsx("rect",{stroke:$t.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}var wm=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:$t.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:$t.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:ur.jsx(fm,{"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 ${$t.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:$t.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${$t.MISC_FOCUS_BORDER}`,borderRadius:Ut,backgroundColor:$t.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 ${$t.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:$t.WHITE,color:$t.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:Ut},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${$t.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:$t.GREYSCALE_0_15,backgroundColor:$t.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:$t.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${$t.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:$t.GREEN_PALE},"&:active":{backgroundColor:$t.GREEN_DARK},"&.Mui-focusVisible":{borderColor:$t.GREEN_PALE,boxShadow:`0 0 0 3px ${el($t.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:$t.BLUE_PALE},"&:active":{backgroundColor:$t.BLUE_DARK},"&.Mui-focusVisible":{borderColor:$t.BLUE_PALE,boxShadow:`0 0 0 3px ${el($t.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:Ut,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:$t.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${$t.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:$t.GREYSCALE_0_42,backgroundColor:$t.GREYSCALE_100_60,"&:active":{backgroundColor:$t.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:$t.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${$t.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:$t.PURPLE,"&.Mui-focusVisible":{borderColor:$t.PURPLE,boxShadow:`0 0 0 3px ${el($t.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:$t.GREEN,"&.Mui-focusVisible":{borderColor:$t.GREEN,boxShadow:`0 0 0 3px ${el($t.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:$t.BLUE,"&.Mui-focusVisible":{borderColor:$t.BLUE,boxShadow:`0 0 0 3px ${el($t.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:$t.ORANGE,"&.Mui-focusVisible":{borderColor:$t.ORANGE,boxShadow:`0 0 0 3px ${el($t.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:$t.RED,"&.Mui-focusVisible":{borderColor:$t.RED,boxShadow:`0 0 0 3px ${el($t.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:$t.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:$t.PURPLE_PALE},"&:active":{backgroundColor:$t.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:$t.PURPLE_PALE,boxShadow:`0 0 0 3px ${el($t.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:$t.GREEN_PALE},"&:active":{backgroundColor:$t.GREEN_DARK},"&.Mui-focusVisible":{borderColor:$t.GREEN_PALE,boxShadow:`0 0 0 3px ${el($t.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:$t.BLUE_PALE},"&:active":{backgroundColor:$t.BLUE_DARK},"&.Mui-focusVisible":{borderColor:$t.BLUE_PALE,boxShadow:`0 0 0 3px ${el($t.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:$t.ORANGE_PALE},"&:active":{backgroundColor:$t.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:$t.ORANGE_PALE,boxShadow:`0 0 0 3px ${el($t.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:$t.RED_PALE},"&:active":{backgroundColor:$t.RED_DARK},"&.Mui-focusVisible":{borderColor:$t.RED_PALE,boxShadow:`0 0 0 3px ${el($t.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:$t.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:$t.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Ut,boxShadow:`inset 0 0 0 2px ${$t.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:ur.jsx(vm,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Ht,borderRadius:Ut,color:$t.TEXT_PRIMARY,backgroundColor:$t.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:$t.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${$t.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:$t.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:$t.GREYSCALE_0_05,color:$t.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:$t.GREEN,borderColor:$t.GREEN},"&.MuiChip-outlinedInfo":{color:$t.BLUE,borderColor:$t.BLUE},"&.MuiChip-outlinedWarning":{color:$t.ORANGE,borderColor:$t.ORANGE},"&.MuiChip-outlinedError":{color:$t.RED,borderColor:$t.RED}},outlined:{border:`solid 1px ${$t.GREYSCALE_0_15}`,backgroundColor:$t.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Ut,boxShadow:"none",backgroundColor:$t.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:$t.GREEN,borderColor:$t.GREEN},outlinedSecondary:{color:$t.BLUE,borderColor:$t.BLUE},label:{fontFamily:Jt.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:ur.jsx(vm,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:ur.jsx(fm,{"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:Ut},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Ut,fontSize:Bt,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:$t.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${$t.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:$t.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:$t.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:$t.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Ut,border:`solid 1px ${$t.GREYSCALE_0_15}`,color:$t.GREYSCALE_0_60,marginRight:0,width:Vt,height:Vt},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${$t.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Ut,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:$t.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Bt}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Ht,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:$t.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:$t.GREYSCALE_25,fontSize:Ht,fontFamily:Jt.FONT_FAMILY,fontWeight:Kt,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:$t.TEXT_PRIMARY},"&.Mui-error":{color:$t.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:$t.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Yt,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:$t.TEXT_SECONDARY,content:"'(required)'",fontWeight:Yt,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Bt,lineHeight:"16px",backgroundColor:$t.WHITE,borderRadius:Ut,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${$t.GREYSCALE_0_05}`,borderColor:$t.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${$t.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${$t.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${$t.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${$t.RED}`,boxShadow:`0px 0px 0px 1px ${$t.RED}, inset 0 2px 0 0 ${$t.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${$t.GREYSCALE_0_10}`,borderColor:$t.GREYSCALE_0_10,backgroundColor:$t.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:$t.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:$t.GREYSCALE_0_15,borderRadius:Ut,boxShadow:`inset 0 2px 0 0 ${$t.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>ur.jsx(fm,{...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:$t.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:$t.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:$t.GREYSCALE_0_03},"&:active":{backgroundColor:$t.GREYSCALE_0_10},"&:focus":{backgroundColor:$t.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${$t.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${$t.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:$t.GREYSCALE_0_30,"&:hover":{backgroundColor:$t.GREYSCALE_0_0,borderColor:$t.GREYSCALE_0_15},"& ~svg":{color:$t.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${$t.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Ut}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:$t.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${$t.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:$t.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Bt,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Ht,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Ht,fontWeight:Kt,color:$t.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Kt}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${$t.GREYSCALE_0_15}, 0px 0px 0px 1px ${$t.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:ur.jsx(ym,{}),checkedIcon:ur.jsx(gm,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:$t.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${$t.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:$t.GREEN_PALE,boxShadow:`0 0 0 3px ${el($t.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:$t.BLUE_PALE,boxShadow:`0 0 0 3px ${el($t.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:$t.GREYSCALE_0_20}},"&.Mui-disabled":{fill:$t.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:ur.jsx(Sm,{}),checkedIcon:ur.jsx(mm,{}),indeterminateIcon:ur.jsx(bm,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Ut,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:$t.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:$t.GREYSCALE_0_55,color:$t.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:$t.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:$t.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:$t.GREYSCALE_0_55,"&:hover":{color:$t.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:$t.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:$t.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Bt,color:$t.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Kt},secondary:{fontSize:Ht,color:$t.GREYSCALE_45,fontWeight:Yt,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Bt,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Bt,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:$t.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Ht,borderBottom:`solid 1px ${$t.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Bt,color:$t.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:$t.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:$t.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:$t.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:'url(\'data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg width="8px" height="7px" viewBox="0 0 8 7" version="1.1"%0A xmlns="http://www.w3.org/2000/svg"%0A xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="Tick">%0A <g stroke="none" stroke-width="1" fill-rule="evenodd">%0A <g transform="translate(0.000000, -1.000000)">%0A <path d="M7.51662484,1.29325 C7.12545778,0.90225 6.49218732,0.90225 6.10202068,1.29325 L2.73658335,4.65725 L1.90722914,3.82925 C1.5170625,3.43825 0.883792042,3.43825 0.492624979,3.82925 C0.102458344,4.21925 0.102458344,4.85225 0.492624979,5.24325 L2.02928127,6.77825 C2.4194479,7.16925 3.05271836,7.16925 3.44388542,6.77825 L7.51662484,2.70725 C7.9077919,2.31725 7.9077919,1.68425 7.51662484,1.29325"></path>%0A </g>%0A </g>%0A</svg>%0A\')',fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:$t.RED}}},"&.Mui-focusVisible":{backgroundColor:$t.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:$t.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:$t.GREEN,height:"24px","&.Mui-disabled":{color:$t.GREYSCALE_0_15}},rail:{backgroundColor:$t.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${$t.GREYSCALE_0_05}`,borderRadius:Ut,boxShadow:`inset 0px 0px 0px 1px ${$t.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${$t.GREYSCALE_0_05}`,borderRadius:Ut},thumb:{height:"16px",width:"16px",borderRadius:Ut,backgroundColor:$t.WHITE,boxShadow:`0px 1px 2px 0px ${$t.GREYSCALE_0_15}, 0px 0px 0px 1px ${$t.GREYSCALE_0_05}`,"&:hover":{borderRadius:Ut,boxShadow:`0 2px 4px 0 ${$t.GREYSCALE_0_30}, 0 0 0 1px ${$t.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${$t.GREYSCALE_0_15}, 0 0 0 1px ${$t.GREYSCALE_0_06}, 0 0 0 2px ${$t.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${$t.GREYSCALE_0_15}, 0 0 0 1px ${$t.GREYSCALE_0_06}, 0 0 0 2px ${$t.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:$t.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:$t.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:$t.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:$t.GREYSCALE_0_15},markLabel:{color:$t.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:$t.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:$t.WHITE,color:$t.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:$t.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:$t.GREEN_PALE,boxShadow:`0 0 0 3px ${el($t.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:$t.BLUE_PALE,boxShadow:`0 0 0 3px ${el($t.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:$t.GREYSCALE_0_15,borderRadius:Ut},thumb:{height:"16px",width:"16px",borderRadius:Ut,backgroundColor:$t.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:Bt,fontWeight:Kt,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${$t.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${$t.MISC_FOCUS_BORDER}`,backgroundColor:$t.GREYSCALE_0_03,borderRadius:Ut},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:$t.GREYSCALE_25,"&.Mui-selected":{color:$t.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Bt,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:Ut,"&:hover":{backgroundColor:$t.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 ${$t.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${$t.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:Ut,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:$t.GREYSCALE_0_05},"&:hover":{backgroundColor:$t.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${$t.GREYSCALE_85}`,borderRight:`1px solid ${$t.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Kt,backgroundColor:$t.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:$t.GREYSCALE_98,borderBottom:`1px solid ${$t.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${$t.GREYSCALE_85}`,borderTop:`1px solid ${$t.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:$t.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:$t.GREYSCALE_0_05,"&:hover":{backgroundColor:$t.GREYSCALE_0_03}},"&&:hover":{backgroundColor:$t.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>ur.jsx(xm,{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 ${$t.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Bt,borderRadius:Ut,padding:"7px 16px",border:`1px solid ${$t.GREYSCALE_0_15}`,backgroundColor:$t.GREYSCALE_100_60,color:$t.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:$t.GREYSCALE_0_10,border:`1px solid ${$t.GREYSCALE_0_30}`},"&:hover":{backgroundColor:$t.GREYSCALE_0_03,border:`1px solid ${$t.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:$t.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${$t.MISC_FOCUS_BORDER}`,border:`1px solid ${$t.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:$t.GREYSCALE_25,backgroundColor:$t.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:$t.GREYSCALE_0_10,border:`1px solid ${$t.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Ht,height:24,width:24,padding:7},sizeLarge:{fontSize:Wt,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Bt,borderRadius:Ut}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0,enterNextDelay:300,enterDelay:400},styleOverrides:{arrow:{color:$t.GREYSCALE_20},tooltip:{backgroundColor:$t.GREYSCALE_20,fontSize:Ht,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}});const Cm=e=>({mode:"light",primary:{ultraLight:$t.GREEN_ULTRA_LIGHT,light:$t.GREEN_PALE,main:$t.GREEN,dark:$t.GREEN_DARK,extraDark:$t.GREEN_EXTRA_DARK,contrastText:$t.WHITE},secondary:{ultraLight:$t.BLUE_ULTRA_LIGHT,light:$t.BLUE_PALE,main:$t.BLUE,dark:$t.BLUE_DARK,extraDark:$t.BLUE_EXTRA_DARK,contrastText:$t.WHITE},error:{ultraLight:$t.RED_ULTRA_LIGHT,light:$t.RED_PALE,main:$t.RED,dark:$t.RED_DARK,extraDark:$t.RED_EXTRA_DARK,contrastText:$t.WHITE},warning:{ultraLight:$t.ORANGE_ULTRA_LIGHT,light:$t.ORANGE_PALE,main:$t.ORANGE,dark:$t.ORANGE_DARK,extraDark:$t.ORANGE_EXTRA_DARK,contrastText:$t.WHITE},success:{ultraLight:$t.GREEN_ULTRA_LIGHT,light:$t.GREEN_PALE,main:$t.GREEN,dark:$t.GREEN_DARK,extraDark:$t.GREEN_EXTRA_DARK,contrastText:$t.WHITE},info:{ultraLight:$t.BLUE_ULTRA_LIGHT,light:$t.BLUE_PALE,main:$t.BLUE,dark:$t.BLUE_DARK,extraDark:$t.BLUE_EXTRA_DARK,contrastText:$t.WHITE},text:{primary:$t.TEXT_PRIMARY,secondary:$t.TEXT_SECONDARY,disabled:$t.GREYSCALE_0_30},action:{hover:$t.GREYSCALE_0_03,hoverOpacity:.03,selected:$t.GREYSCALE_0_05,selectedOpacity:.05,focus:$t.MISC_FOCUS_BORDER},amethyst:{ultraLight:$t.WHITE,main:$t.PURPLE,light:$t.PURPLE_PALE,dark:$t.PURPLE_DARK,extraDark:$t.GREYSCALE_0_0,contrastText:$t.WHITE},background:{paper:$t.WHITE,default:$t.GREYSCALE_95},divider:$t.GREYSCALE_0_15}),Em={...Ft};var Rm={},Am={exports:{}},Pm={exports:{}};!function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Pm);var Mm=Pm.exports;!function(e){var t=Mm.default;function r(n,o){if("function"==typeof WeakMap)var i=new WeakMap,a=new WeakMap;return(e.exports=r=function(e,r){if(!r&&e&&e.__esModule)return e;var n,o,s={__proto__:null,default:e};if(null===e||"object"!=t(e)&&"function"!=typeof e)return s;if(n=r?a:i){if(n.has(e))return n.get(e);n.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?n(s,l,o):s[l]=e[l]);return s},e.exports.__esModule=!0,e.exports.default=e.exports)(n,o)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(Am);var Im=Am.exports,km={};function Dm(e,t){return function(){return null}}function Tm(e){return e&&"object"===Ul(e)&&e.constructor===Object}function Om(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},n=r.clone?Gr({},e):e;return Tm(e)&&Tm(t)&&Object.keys(t).forEach(function(o){"__proto__"!==o&&(Tm(t[o])&&o in e?n[o]=Om(e[o],t[o],r):n[o]=t[o])}),n}var Lm=(Gi.element,function(){return null});Lm.isRequired=(Gi.element.isRequired,function(){return null});var qm=function(){return null};var Nm={exports:{}},_m={},jm=60103,zm=60106,Fm=60107,$m=60108,Hm=60114,Bm=60109,Wm=60110,Vm=60112,Um=60113,Gm=60120,Ym=60115,Km=60116,Xm=60121,Jm=60122,Zm=60117,Qm=60129,eg=60131;if("function"==typeof Symbol&&Symbol.for){var tg=Symbol.for;jm=tg("react.element"),zm=tg("react.portal"),Fm=tg("react.fragment"),$m=tg("react.strict_mode"),Hm=tg("react.profiler"),Bm=tg("react.provider"),Wm=tg("react.context"),Vm=tg("react.forward_ref"),Um=tg("react.suspense"),Gm=tg("react.suspense_list"),Ym=tg("react.memo"),Km=tg("react.lazy"),Xm=tg("react.block"),Jm=tg("react.server.block"),Zm=tg("react.fundamental"),Qm=tg("react.debug_trace_mode"),eg=tg("react.legacy_hidden")}function rg(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case jm:switch(e=e.type){case Fm:case Hm:case $m:case Um:case Gm:return e;default:switch(e=e&&e.$$typeof){case Wm:case Vm:case Km:case Ym:case Bm:return e;default:return t}}case zm:return t}}}var ng=Bm,og=jm,ig=Vm,ag=Fm,sg=Km,lg=Ym,ug=zm,cg=Hm,dg=$m,pg=Um;_m.ContextConsumer=Wm,_m.ContextProvider=ng,_m.Element=og,_m.ForwardRef=ig,_m.Fragment=ag,_m.Lazy=sg,_m.Memo=lg,_m.Portal=ug,_m.Profiler=cg,_m.StrictMode=dg,_m.Suspense=pg,_m.isAsyncMode=function(){return!1},_m.isConcurrentMode=function(){return!1},_m.isContextConsumer=function(e){return rg(e)===Wm},_m.isContextProvider=function(e){return rg(e)===Bm},_m.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===jm},_m.isForwardRef=function(e){return rg(e)===Vm},_m.isFragment=function(e){return rg(e)===Fm},_m.isLazy=function(e){return rg(e)===Km},_m.isMemo=function(e){return rg(e)===Ym},_m.isPortal=function(e){return rg(e)===zm},_m.isProfiler=function(e){return rg(e)===Hm},_m.isStrictMode=function(e){return rg(e)===$m},_m.isSuspense=function(e){return rg(e)===Um},_m.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Fm||e===Hm||e===Qm||e===$m||e===Um||e===Gm||e===eg||"object"==typeof e&&null!==e&&(e.$$typeof===Km||e.$$typeof===Ym||e.$$typeof===Bm||e.$$typeof===Wm||e.$$typeof===Vm||e.$$typeof===Zm||e.$$typeof===Xm||e[0]===Jm)},_m.typeOf=rg,Nm.exports=_m;var fg=Nm.exports,hg=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function mg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(hg);return t&&t[1]||""}(e)||t}function gg(e,t,r){var n=mg(t);return e.displayName||(""!==n?"".concat(r,"(").concat(n,")"):r)}var vg="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),bg=Gi.oneOfType([Gi.func,Gi.object]),yg=Object.freeze({__proto__:null,HTMLElementType:function(e,t,r,n,o){return null},chainPropTypes:Dm,deepmerge:Om,elementAcceptingRef:Lm,elementTypeAcceptingRef:qm,exactProp:function(e){return e},formatMuiErrorMessage:function(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."},getDisplayName:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return mg(e,"Component");if("object"===Ul(e))switch(e.$$typeof){case fg.ForwardRef:return gg(e,e.render,"ForwardRef");case fg.Memo:return gg(e,e.type,"memo");default:return}}},ponyfillGlobal:vg,refType:bg}),xg=Qt(yg);Object.defineProperty(km,"__esModule",{value:!0}),km.hexToRgb=Cg,km.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=Rg(e),r=t.values;return"#".concat(r.map(function(e){return function(e){var t=e.toString(16);return 1===t.length?"0".concat(t):t}(e)}).join(""))},km.hslToRgb=Eg,km.decomposeColor=Rg,km.recomposeColor=Ag,km.getContrastRatio=function(e,t){var r=Pg(e),n=Pg(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},km.getLuminance=Pg,km.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return Pg(e)>.5?Ig(e,t):kg(e,t)},km.fade=function(e,t){return Mg(e,t)},km.alpha=Mg,km.darken=Ig,km.lighten=kg;var Sg=xg;function wg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}function Cg(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map(function(e){return e+e})),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map(function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3}).join(", "),")"):""}function Eg(e){var t=(e=Rg(e)).values,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+r/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),Ag({type:s,values:l})}function Rg(e){if(e.type)return e;if("#"===e.charAt(0))return Rg(Cg(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error((0,Sg.formatMuiErrorMessage)(3,e));var n=e.substring(t+1,e.length-1).split(",");return{type:r,values:n=n.map(function(e){return parseFloat(e)})}}function Ag(e){var t=e.type,r=e.values;return-1!==t.indexOf("rgb")?r=r.map(function(e,t){return t<3?parseInt(e,10):e}):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}function Pg(e){var t="hsl"===(e=Rg(e)).type?Rg(Eg(e)).values:e.values;return t=t.map(function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Mg(e,t){return e=Rg(e),t=wg(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,Ag(e)}function Ig(e,t){if(e=Rg(e),t=wg(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]*=1-t;return Ag(e)}function kg(e,t){if(e=Rg(e),t=wg(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;return Ag(e)}var Dg,Tg,Og,Lg={},qg={exports:{}},Ng={exports:{}},_g={exports:{}};function jg(){return Dg||(Dg=1,function(e){var t=Mm.default;e.exports=function(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(_g)),_g.exports}function zg(){return Tg||(Tg=1,function(e){var t=Mm.default,r=jg();e.exports=function(e){var n=r(e,"string");return"symbol"==t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports}(Ng)),Ng.exports}function Fg(){return Og||(Og=1,function(e){var t=zg();e.exports=function(e,r,n){return(r=t(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports}(qg)),qg.exports}var $g,Hg={exports:{}};function Bg(){return $g||($g=1,function(e){var t=Gu();e.exports=function(e,r){if(null==e)return{};var n,o,i=t(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],-1===r.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports}(Hg)),Hg.exports}var Wg,Vg={};var Ug,Gg={};var Yg,Kg={},Xg={};var Jg,Zg={};var Qg,ev={};var tv,rv={};var nv,ov={};var iv,av={};var sv,lv={};var uv,cv,dv={};function pv(){if(cv)return Kg;cv=1;var e=Zl;Object.defineProperty(Kg,"__esModule",{value:!0}),Kg.default=function(e){var g=e.primary,v=void 0===g?{light:a.default[300],main:a.default[500],dark:a.default[700]}:g,b=e.secondary,y=void 0===b?{light:s.default.A200,main:s.default.A400,dark:s.default.A700}:b,x=e.error,S=void 0===x?{light:l.default[300],main:l.default[500],dark:l.default[700]}:x,w=e.warning,C=void 0===w?{light:u.default[300],main:u.default[500],dark:u.default[700]}:w,E=e.info,R=void 0===E?{light:c.default[300],main:c.default[500],dark:c.default[700]}:E,A=e.success,P=void 0===A?{light:d.default[300],main:d.default[500],dark:d.default[700]}:A,M=e.type,I=void 0===M?"light":M,k=e.contrastThreshold,D=void 0===k?3:k,T=e.tonalOffset,O=void 0===T?.2:T,L=(0,r.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function q(e){return(0,p.getContrastRatio)(e,h.text.primary)>=D?h.text.primary:f.text.primary}var N=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,t.default)({},e)).main&&e[r]&&(e.main=e[r]),!e.main)throw new Error((0,n.formatMuiErrorMessage)(4,r));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return m(e,"light",o,O),m(e,"dark",i,O),e.contrastText||(e.contrastText=q(e.main)),e},_={dark:h,light:f},j=(0,n.deepmerge)((0,t.default)({common:o.default,type:I,primary:N(v),secondary:N(y,"A400","A200","A700"),error:N(S),warning:N(C),info:N(R),success:N(P),grey:i.default,contrastThreshold:D,getContrastText:q,augmentColor:N,tonalOffset:O},_[I]),L);return j},Kg.dark=Kg.light=void 0;var t=e(Wu()),r=e(Bg()),n=xg,o=e(function(){if(Yg)return Xg;Yg=1,Object.defineProperty(Xg,"__esModule",{value:!0}),Xg.default=void 0;var e={black:"#000",white:"#fff"};return Xg.default=e,Xg}()),i=e(function(){if(Jg)return Zg;Jg=1,Object.defineProperty(Zg,"__esModule",{value:!0}),Zg.default=void 0;var e={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};return Zg.default=e,Zg}()),a=e(function(){if(Qg)return ev;Qg=1,Object.defineProperty(ev,"__esModule",{value:!0}),ev.default=void 0;var e={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};return ev.default=e,ev}()),s=e(function(){if(tv)return rv;tv=1,Object.defineProperty(rv,"__esModule",{value:!0}),rv.default=void 0;var e={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};return rv.default=e,rv}()),l=e(function(){if(nv)return ov;nv=1,Object.defineProperty(ov,"__esModule",{value:!0}),ov.default=void 0;var e={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};return ov.default=e,ov}()),u=e(function(){if(iv)return av;iv=1,Object.defineProperty(av,"__esModule",{value:!0}),av.default=void 0;var e={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};return av.default=e,av}()),c=e(function(){if(sv)return lv;sv=1,Object.defineProperty(lv,"__esModule",{value:!0}),lv.default=void 0;var e={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};return lv.default=e,lv}()),d=e(function(){if(uv)return dv;uv=1,Object.defineProperty(dv,"__esModule",{value:!0}),dv.default=void 0;var e={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};return dv.default=e,dv}()),p=km,f={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:o.default.white,default:i.default[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}};Kg.light=f;var h={text:{primary:o.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:i.default[800],default:"#303030"},action:{active:o.default.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function m(e,t,r,n){var o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,p.lighten)(e.main,o):"dark"===t&&(e.dark=(0,p.darken)(e.main,i)))}return Kg.dark=h,Kg}var fv,hv={};var mv,gv={};var vv,bv={};var yv={};function xv(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Sv(e,t){if(e){if("string"==typeof e)return xv(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?xv(e,t):void 0}}function wv(e){return function(e){if(Array.isArray(e))return xv(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Sv(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Cv(e,t){return t?Om(e,t,{clone:!1}):e}var Ev={xs:0,sm:600,md:960,lg:1280,xl:1920},Rv={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(Ev[e],"px)")}};function Av(e,t,r){if(Array.isArray(t)){var n=e.theme.breakpoints||Rv;return t.reduce(function(e,o,i){return e[n.up(n.keys[i])]=r(t[i]),e},{})}if("object"===Ul(t)){var o=e.theme.breakpoints||Rv;return Object.keys(t).reduce(function(e,n){return e[o.up(n)]=r(t[n]),e},{})}return r(t)}function Pv(e,t){return t&&"string"==typeof t?t.split(".").reduce(function(e,t){return e&&e[t]?e[t]:null},e):null}function Mv(e){var t=e.prop,r=e.cssProperty,n=void 0===r?e.prop:r,o=e.themeKey,i=e.transform,a=function(e){if(null==e[t])return null;var r=e[t],a=Pv(e.theme,o)||{};return Av(e,r,function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=Pv(a,e)||e,i&&(t=i(t))),!1===n?t:function(e,t,r){return(t=Gl(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},n,t)})};return a.propTypes={},a.filterProps=[t],a}function Iv(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=function(e){return t.reduce(function(t,r){var n=r(e);return n?Cv(t,n):t},{})};return n.propTypes={},n.filterProps=t.reduce(function(e,t){return e.concat(t.filterProps)},[]),n}function kv(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var Dv=Mv({prop:"border",themeKey:"borders",transform:kv}),Tv=Mv({prop:"borderTop",themeKey:"borders",transform:kv}),Ov=Mv({prop:"borderRight",themeKey:"borders",transform:kv}),Lv=Mv({prop:"borderBottom",themeKey:"borders",transform:kv}),qv=Mv({prop:"borderLeft",themeKey:"borders",transform:kv}),Nv=Mv({prop:"borderColor",themeKey:"palette"}),_v=Mv({prop:"borderRadius",themeKey:"shape"}),jv=Iv(Dv,Tv,Ov,Lv,qv,Nv,_v);function zv(e,t){var r={};return Object.keys(e).forEach(function(n){-1===t.indexOf(n)&&(r[n]=e[n])}),r}function Fv(e){var t=function(t){var r=e(t);return t.css?Gr({},Cv(r,e(Gr({theme:t.theme},t.css))),zv(t.css,[e.filterProps])):t.sx?Gr({},Cv(r,e(Gr({theme:t.theme},t.sx))),zv(t.sx,[e.filterProps])):r};return t.propTypes={},t.filterProps=["css","sx"].concat(wv(e.filterProps)),t}var $v=Iv(Mv({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),Mv({prop:"display"}),Mv({prop:"overflow"}),Mv({prop:"textOverflow"}),Mv({prop:"visibility"}),Mv({prop:"whiteSpace"})),Hv=Mv({prop:"flexBasis"}),Bv=Mv({prop:"flexDirection"}),Wv=Mv({prop:"flexWrap"}),Vv=Mv({prop:"justifyContent"}),Uv=Mv({prop:"alignItems"}),Gv=Mv({prop:"alignContent"}),Yv=Mv({prop:"order"}),Kv=Mv({prop:"flex"}),Xv=Mv({prop:"flexGrow"}),Jv=Mv({prop:"flexShrink"}),Zv=Mv({prop:"alignSelf"}),Qv=Mv({prop:"justifyItems"}),eb=Mv({prop:"justifySelf"}),tb=Iv(Hv,Bv,Wv,Vv,Uv,Gv,Yv,Kv,Xv,Jv,Zv,Qv,eb),rb=Mv({prop:"gridGap"}),nb=Mv({prop:"gridColumnGap"}),ob=Mv({prop:"gridRowGap"}),ib=Mv({prop:"gridColumn"}),ab=Mv({prop:"gridRow"}),sb=Mv({prop:"gridAutoFlow"}),lb=Mv({prop:"gridAutoColumns"}),ub=Mv({prop:"gridAutoRows"}),cb=Mv({prop:"gridTemplateColumns"}),db=Mv({prop:"gridTemplateRows"}),pb=Mv({prop:"gridTemplateAreas"}),fb=Mv({prop:"gridArea"}),hb=Iv(rb,nb,ob,ib,ab,sb,lb,ub,cb,db,pb,fb),mb=Mv({prop:"color",themeKey:"palette"}),gb=Mv({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),vb=Iv(mb,gb),bb=Mv({prop:"position"}),yb=Mv({prop:"zIndex",themeKey:"zIndex"}),xb=Mv({prop:"top"}),Sb=Mv({prop:"right"}),wb=Mv({prop:"bottom"}),Cb=Mv({prop:"left"}),Eb=Iv(bb,yb,xb,Sb,wb,Cb),Rb=Mv({prop:"boxShadow",themeKey:"shadows"});function Ab(e){return e<=1?"".concat(100*e,"%"):e}var Pb=Mv({prop:"width",transform:Ab}),Mb=Mv({prop:"maxWidth",transform:Ab}),Ib=Mv({prop:"minWidth",transform:Ab}),kb=Mv({prop:"height",transform:Ab}),Db=Mv({prop:"maxHeight",transform:Ab}),Tb=Mv({prop:"minHeight",transform:Ab}),Ob=Mv({prop:"size",cssProperty:"width",transform:Ab}),Lb=Mv({prop:"size",cssProperty:"height",transform:Ab}),qb=Mv({prop:"boxSizing"}),Nb=Iv(Pb,Mb,Ib,kb,Db,Tb,qb);function _b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||Sv(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.")}()}var jb={m:"margin",p:"padding"},zb={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Fb={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},$b=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}(function(e){if(e.length>2){if(!Fb[e])return[e];e=Fb[e]}var t=_b(e.split(""),2),r=t[0],n=t[1],o=jb[r],i=zb[n]||"";return Array.isArray(i)?i.map(function(e){return o+e}):[o+i]}),Hb=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function Bb(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function Wb(e,t){return function(r){return e.reduce(function(e,n){return e[n]=function(e,t){if("string"==typeof t||null==t)return t;var r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:"-".concat(r)}(t,r),e},{})}}function Vb(e){var t=Bb(e.theme);return Object.keys(e).map(function(r){if(-1===Hb.indexOf(r))return null;var n=Wb($b(r),t),o=e[r];return Av(e,o,n)}).reduce(Cv,{})}Vb.propTypes={},Vb.filterProps=Hb;var Ub,Gb=Mv({prop:"fontFamily",themeKey:"typography"}),Yb=Mv({prop:"fontSize",themeKey:"typography"}),Kb=Mv({prop:"fontStyle",themeKey:"typography"}),Xb=Mv({prop:"fontWeight",themeKey:"typography"}),Jb=Mv({prop:"letterSpacing"}),Zb=Mv({prop:"lineHeight"}),Qb=Mv({prop:"textAlign"}),ey=Iv(Gb,Yb,Kb,Xb,Jb,Zb,Qb),ty=Object.freeze({__proto__:null,alignContent:Gv,alignItems:Uv,alignSelf:Zv,bgcolor:gb,border:Dv,borderBottom:Lv,borderColor:Nv,borderLeft:qv,borderRadius:_v,borderRight:Ov,borderTop:Tv,borders:jv,bottom:wb,boxSizing:qb,breakpoints:function(e){var t=function(t){var r=e(t),n=t.theme.breakpoints||Rv,o=n.keys.reduce(function(r,o){return t[o]&&((r=r||{})[n.up(o)]=e(Gr({theme:t.theme},t[o]))),r},null);return Cv(r,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(wv(e.filterProps)),t},color:mb,compose:Iv,createUnarySpacing:Bb,css:function(e){return Fv(e)},display:$v,flex:Kv,flexBasis:Hv,flexDirection:Bv,flexGrow:Xv,flexShrink:Jv,flexWrap:Wv,flexbox:tb,fontFamily:Gb,fontSize:Yb,fontStyle:Kb,fontWeight:Xb,grid:hb,gridArea:fb,gridAutoColumns:lb,gridAutoFlow:sb,gridAutoRows:ub,gridColumn:ib,gridColumnGap:nb,gridGap:rb,gridRow:ab,gridRowGap:ob,gridTemplateAreas:pb,gridTemplateColumns:cb,gridTemplateRows:db,height:kb,justifyContent:Vv,justifyItems:Qv,justifySelf:eb,left:Cb,letterSpacing:Jb,lineHeight:Zb,maxHeight:Db,maxWidth:Mb,minHeight:Tb,minWidth:Ib,order:Yv,palette:vb,position:bb,positions:Eb,right:Sb,shadows:Rb,sizeHeight:Lb,sizeWidth:Ob,sizing:Nb,spacing:Vb,style:Mv,styleFunctionSx:Fv,textAlign:Qb,top:xb,typography:ey,width:Pb,zIndex:yb}),ry=Qt(ty);var ny,oy={};function iy(){if(ny)return oy;ny=1;var e=Zl;Object.defineProperty(oy,"__esModule",{value:!0}),oy.default=oy.duration=oy.easing=void 0;var t=e(Bg()),r={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"};oy.easing=r;var n={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function o(e){return"".concat(Math.round(e),"ms")}oy.duration=n;var i={easing:r,duration:n,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.duration,s=void 0===a?n.standard:a,l=i.easing,u=void 0===l?r.easeInOut:l,c=i.delay,d=void 0===c?0:c;return(0,t.default)(i,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map(function(e){return"".concat(e," ").concat("string"==typeof s?s:o(s)," ").concat(u," ").concat("string"==typeof d?d:o(d))}).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};return oy.default=i,oy}var ay,sy,ly={};function uy(){if(sy)return Lg;sy=1;var e=Zl;Object.defineProperty(Lg,"__esModule",{value:!0}),Lg.createMuiTheme=function(){return p.apply(void 0,arguments)},Lg.default=void 0,e(Fg());var t=e(Bg()),r=xg,n=e(function(){if(Wg)return Vg;Wg=1;var e=Zl;Object.defineProperty(Vg,"__esModule",{value:!0}),Vg.default=function(e){var o=e.values,i=void 0===o?{xs:0,sm:600,md:960,lg:1280,xl:1920}:o,a=e.unit,s=void 0===a?"px":a,l=e.step,u=void 0===l?5:l,c=(0,r.default)(e,["values","unit","step"]);function d(e){var t="number"==typeof i[e]?i[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function p(e,t){var r=n.indexOf(t);return r===n.length-1?d(e):"@media (min-width:".concat("number"==typeof i[e]?i[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof i[n[r+1]]?i[n[r+1]]:t)-u/100).concat(s,")")}return(0,t.default)({keys:n,values:i,up:d,down:function(e){var t=n.indexOf(e)+1,r=i[n[t]];return t===n.length?d("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-u/100).concat(s,")")},between:p,only:function(e){return p(e,e)},width:function(e){return i[e]}},c)},Vg.keys=void 0;var t=e(Wu()),r=e(Bg()),n=["xs","sm","md","lg","xl"];return Vg.keys=n,Vg}()),o=e(function(){if(Ug)return Gg;Ug=1;var e=Zl;Object.defineProperty(Gg,"__esModule",{value:!0}),Gg.default=function(e,n,o){var i;return(0,r.default)({gutters:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,r.default)({paddingLeft:n(2),paddingRight:n(2)},o,(0,t.default)({},e.up("sm"),(0,r.default)({paddingLeft:n(3),paddingRight:n(3)},o[e.up("sm")])))},toolbar:(i={minHeight:56},(0,t.default)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,t.default)(i,e.up("sm"),{minHeight:64}),i)},o)};var t=e(Fg()),r=e(Wu());return Gg}()),i=e(pv()),a=e(function(){if(fv)return hv;fv=1;var e=Zl;Object.defineProperty(hv,"__esModule",{value:!0}),hv.default=function(e,l){var u="function"==typeof l?l(e):l,c=u.fontFamily,d=void 0===c?s:c,p=u.fontSize,f=void 0===p?14:p,h=u.fontWeightLight,m=void 0===h?300:h,g=u.fontWeightRegular,v=void 0===g?400:g,b=u.fontWeightMedium,y=void 0===b?500:b,x=u.fontWeightBold,S=void 0===x?700:x,w=u.htmlFontSize,C=void 0===w?16:w,E=u.allVariants,R=u.pxToRem,A=(0,r.default)(u,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),P=f/14,M=R||function(e){return"".concat(e/C*P,"rem")},I=function(e,r,n,i,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:M(r),lineHeight:n},d===s?{letterSpacing:"".concat(o(i/r),"em")}:{},a,E)},k={h1:I(m,96,1.167,-1.5),h2:I(m,60,1.2,-.5),h3:I(v,48,1.167,0),h4:I(v,34,1.235,.25),h5:I(v,24,1.334,0),h6:I(y,20,1.6,.15),subtitle1:I(v,16,1.75,.15),subtitle2:I(y,14,1.57,.1),body1:I(v,16,1.5,.15),body2:I(v,14,1.43,.15),button:I(y,14,1.75,.4,a),caption:I(v,12,1.66,.4),overline:I(v,12,2.66,1,a)};return(0,n.deepmerge)((0,t.default)({htmlFontSize:C,pxToRem:M,round:i,fontFamily:d,fontSize:f,fontWeightLight:m,fontWeightRegular:v,fontWeightMedium:y,fontWeightBold:S},k),A,{clone:!1})};var t=e(Wu()),r=e(Bg()),n=xg;function o(e){return Math.round(1e5*e)/1e5}function i(e){return o(e)}var a={textTransform:"uppercase"},s='"Roboto", "Helvetica", "Arial", sans-serif';return hv}()),s=e(function(){if(mv)return gv;function e(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}mv=1,Object.defineProperty(gv,"__esModule",{value:!0}),gv.default=void 0;var t=["none",e(0,2,1,-1,0,1,1,0,0,1,3,0),e(0,3,1,-2,0,2,2,0,0,1,5,0),e(0,3,3,-2,0,3,4,0,0,1,8,0),e(0,2,4,-1,0,4,5,0,0,1,10,0),e(0,3,5,-1,0,5,8,0,0,1,14,0),e(0,3,5,-1,0,6,10,0,0,1,18,0),e(0,4,5,-2,0,7,10,1,0,2,16,1),e(0,5,5,-3,0,8,10,1,0,3,14,2),e(0,5,6,-3,0,9,12,1,0,3,16,2),e(0,6,6,-3,0,10,14,1,0,4,18,3),e(0,6,7,-4,0,11,15,1,0,4,20,3),e(0,7,8,-4,0,12,17,2,0,5,22,4),e(0,7,8,-4,0,13,19,2,0,5,24,4),e(0,7,9,-4,0,14,21,2,0,5,26,4),e(0,8,9,-5,0,15,22,2,0,6,28,5),e(0,8,10,-5,0,16,24,2,0,6,30,5),e(0,8,11,-5,0,17,26,2,0,6,32,5),e(0,9,11,-5,0,18,28,2,0,7,34,6),e(0,9,12,-6,0,19,29,2,0,7,36,6),e(0,10,13,-6,0,20,31,3,0,8,38,7),e(0,10,13,-6,0,21,33,3,0,8,40,7),e(0,10,14,-6,0,22,35,3,0,8,42,7),e(0,11,14,-7,0,23,36,3,0,9,44,8),e(0,11,15,-7,0,24,38,3,0,9,46,8)];return gv.default=t,gv}()),l=e(function(){if(vv)return bv;vv=1,Object.defineProperty(bv,"__esModule",{value:!0}),bv.default=void 0;var e={borderRadius:4};return bv.default=e,bv}()),u=e(function(){if(Ub)return yv;Ub=1,Object.defineProperty(yv,"__esModule",{value:!0}),yv.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var r=(0,e.createUnarySpacing)({spacing:t}),n=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?r(1):1===t.length?r(t[0]):t.map(function(e){if("string"==typeof e)return e;var t=r(e);return"number"==typeof t?"".concat(t,"px"):t}).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return t}}),n.mui=!0,n};var e=ry;return yv}()),c=e(iy()),d=e(function(){if(ay)return ly;ay=1,Object.defineProperty(ly,"__esModule",{value:!0}),ly.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return ly.default=e,ly}());function p(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=e.breakpoints,f=void 0===p?{}:p,h=e.mixins,m=void 0===h?{}:h,g=e.palette,v=void 0===g?{}:g,b=e.spacing,y=e.typography,x=void 0===y?{}:y,S=(0,t.default)(e,["breakpoints","mixins","palette","spacing","typography"]),w=(0,i.default)(v),C=(0,n.default)(f),E=(0,u.default)(b),R=(0,r.deepmerge)({breakpoints:C,direction:"ltr",mixins:(0,o.default)(C,E,m),overrides:{},palette:w,props:{},shadows:s.default,typography:(0,a.default)(w,x),spacing:E,shape:l.default,transitions:c.default,zIndex:d.default},S),A=arguments.length,P=new Array(A>1?A-1:0),M=1;M<A;M++)P[M-1]=arguments[M];return R=P.reduce(function(e,t){return(0,r.deepmerge)(e,t)},R)}var f=p;return Lg.default=f,Lg}var cy,dy={};var py={},fy="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",hy=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function my(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,r=void 0!==t&&t,n=e.productionPrefix,o=void 0===n?"jss":n,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0,u=function(){return l+=1};return function(e,t){var n=t.options.name;if(n&&0===n.indexOf("Mui")&&!t.options.link&&!r){if(-1!==hy.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(n,"-").concat(e.key);return t.options.theme[fy]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}function gy(e){var t=e.theme,r=e.name,n=e.props;if(!t||!t.props||!t.props[r])return n;var o,i=t.props[r];for(o in i)void 0===n[o]&&(n[o]=i[o]);return n}var vy="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},by="object"===("undefined"==typeof window?"undefined":vy(window))&&"object"===("undefined"==typeof document?"undefined":vy(document))&&9===document.nodeType;function yy(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Gl(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var xy={}.constructor;function Sy(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(Sy);if(e.constructor!==xy)return e;var t={};for(var r in e)t[r]=Sy(e[r]);return t}function wy(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,o=Sy(t),i=n.plugins.onCreateRule(e,o,r);return i||(e[0],null)}var Cy=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},Ey=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)t&&(t+=", "),t+=Cy(e[r]," ");else t=Cy(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function Ry(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Ay(e,t){for(var r="",n=0;n<t;n++)r+=" ";return r+e}function Py(e,t,r){void 0===r&&(r={});var n="";if(!t)return n;var o=r.indent,i=void 0===o?0:o,a=t.fallbacks;!1===r.format&&(i=-1/0);var s=Ry(r),l=s.linebreak,u=s.space;if(e&&i++,a)if(Array.isArray(a))for(var c=0;c<a.length;c++){var d=a[c];for(var p in d){var f=d[p];null!=f&&(n&&(n+=l),n+=Ay(p+":"+u+Ey(f)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(n&&(n+=l),n+=Ay(h+":"+u+Ey(m)+";",i))}for(var g in t){var v=t[g];null!=v&&"fallbacks"!==g&&(n&&(n+=l),n+=Ay(g+":"+u+Ey(v)+";",i))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),Ay(""+e+u+"{"+n,--i)+Ay("}",i)):n}var My=/([[\].#*$><+~=|^:(),"'`\s])/g,Iy="undefined"!=typeof CSS&&CSS.escape,ky=function(e){return Iy?Iy(e):e.replace(My,"\\$1")},Dy=function(){function e(e,t,r){this.type="style",this.isProcessed=!1;var n=r.sheet,o=r.Renderer;this.key=e,this.options=r,this.style=t,n?this.renderer=n.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,r){if(void 0===t)return this.style[e];var n=!!r&&r.force;if(!n&&this.style[e]===t)return this;var o=t;r&&!1===r.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!n)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),Ty=function(e){function t(t,r,n){var o;o=e.call(this,t,r,n)||this;var i=n.selector,a=n.scoped,s=n.sheet,l=n.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l($c($c(o)),s),o.selectorText="."+ky(o.id)),o}Dc(t,e);var r=t.prototype;return r.applyTo=function(e){var t=this.renderer;if(t){var r=this.toJSON();for(var n in r)t.setProperty(e,n,r[n])}return this},r.toJSON=function(){var e={};for(var t in this.style){var r=this.style[t];"object"!=typeof r?e[t]=r:Array.isArray(r)&&(e[t]=Ey(r))}return e},r.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?Gr({},e,{allowEmpty:!0}):e;return Py(this.selectorText,this.style,r)},yy(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,r=this.renderable;if(r&&t)t.setSelector(r,e)||t.replaceRule(r,this)}},get:function(){return this.selectorText}}]),t}(Dy),Oy={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new Ty(e,t,r)}},Ly={indent:1,children:!0},qy=/@([\w-]+)/,Ny=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(qy);for(var o in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new ax(Gr({},r,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n?(this.options.jss.plugins.onProcessRule(n),n):null},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.toString=function(e){void 0===e&&(e=Ly);var t=Ry(e).linebreak;if(null==e.indent&&(e.indent=Ly.indent),null==e.children&&(e.children=Ly.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),_y=/@container|@media|@supports\s+/,jy={onCreateRule:function(e,t,r){return _y.test(e)?new Ny(e,t,r):null}},zy={indent:1,children:!0},Fy=/@keyframes\s+([\w-]+)/,$y=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(Fy);n&&n[1]?this.name=n[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=r;var o=r.scoped,i=r.sheet,a=r.generateId;for(var s in this.id=!1===o?this.name:ky(a(this,i)),this.rules=new ax(Gr({},r,{parent:this})),t)this.rules.add(s,t[s],Gr({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=zy);var t=Ry(e).linebreak;if(null==e.indent&&(e.indent=zy.indent),null==e.children&&(e.children=zy.children),!1===e.children)return this.at+" "+this.id+" {}";var r=this.rules.toString(e);return r&&(r=""+t+r+t),this.at+" "+this.id+" {"+r+"}"},e}(),Hy=/@keyframes\s+/,By=/\$([\w-]+)/g,Wy=function(e,t){return"string"==typeof e?e.replace(By,function(e,r){return r in t?t[r]:e}):e},Vy=function(e,t,r){var n=e[t],o=Wy(n,r);o!==n&&(e[t]=o)},Uy={onCreateRule:function(e,t,r){return"string"==typeof e&&Hy.test(e)?new $y(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&Vy(e,"animation-name",r.keyframes),"animation"in e&&Vy(e,"animation",r.keyframes),e):e},onChangeValue:function(e,t,r){var n=r.options.sheet;if(!n)return e;switch(t){case"animation":case"animation-name":return Wy(e,n.keyframes);default:return e}}},Gy=function(e){function t(){return e.apply(this,arguments)||this}return Dc(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?Gr({},e,{allowEmpty:!0}):e;return Py(this.key,this.style,r)},t}(Dy),Yy={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new Gy(e,t,r):null}},Ky=function(){function e(e,t,r){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){var t=Ry(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=Py(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return Py(this.at,this.style,e)},e}(),Xy=/@font-face/,Jy={onCreateRule:function(e,t,r){return Xy.test(e)?new Ky(e,t,r):null}},Zy=function(){function e(e,t,r){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){return Py(this.key,this.style,e)},e}(),Qy={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new Zy(e,t,r):null}},ex=function(){function e(e,t,r){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=r}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",r=0;r<this.value.length;r++)t+=this.key+" "+this.value[r]+";",this.value[r+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),tx={"@charset":!0,"@import":!0,"@namespace":!0},rx={onCreateRule:function(e,t,r){return e in tx?new ex(e,t,r):null}},nx=[Oy,jy,Uy,Yy,Jy,Qy,rx],ox={process:!0},ix={force:!0,process:!0},ax=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,r){var n=this.options,o=n.parent,i=n.sheet,a=n.jss,s=n.Renderer,l=n.generateId,u=n.scoped,c=Gr({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},r),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(c.selector="."+ky(this.classes[d]));var p=wy(d,t,c);if(!p)return null;this.register(p);var f=void 0===c.index?this.index.length:c.index;return this.index.splice(f,0,p),p},t.replace=function(e,t,r){var n=this.get(e),o=this.index.indexOf(n);n&&this.remove(n);var i=r;return-1!==o&&(i=Gr({},r,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof Ty?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof $y&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Ty?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof $y&&delete this.keyframes[e.name]},t.update=function(){var e,t,r;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],r=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],r=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,r);else for(var n=0;n<this.index.length;n++)this.updateOne(this.index[n],t,r)},t.updateOne=function(t,r,n){void 0===n&&(n=ox);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(r,n);else{var s=t.style;if(i.onUpdate(r,t,a,n),n.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var u=t.style[l];u!==s[l]&&t.prop(l,u,ix)}for(var c in s){var d=t.style[c],p=s[c];null==d&&d!==p&&t.prop(c,null,ix)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,o=Ry(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||n)&&(t&&(t+=o),t+=a)}return t},e}(),sx=function(){function e(e,t){for(var r in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Gr({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new ax(this.options),e)this.rules.add(r,e[r]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,r){var n=this.queue;this.attached&&!n&&(this.queue=[]);var o=this.rules.add(e,t,r);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(n?n.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,r){var n=this.rules.get(e);if(!n)return this.addRule(e,t,r);var o=this.rules.replace(e,t,r);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?n.renderable&&this.renderer.replaceRule(n.renderable,o):this.renderer.deleteRule(n)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var r=[];for(var n in e){var o=this.addRule(n,e[n],t);o&&r.push(o)}return r},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,r){return this.rules.updateOne(e,t,r),this},t.toString=function(e){return this.rules.toString(e)},e}(),lx=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,r){for(var n=0;n<this.registry.onCreateRule.length;n++){var o=this.registry.onCreateRule[n](e,t,r);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,r=0;r<this.registry.onProcessRule.length;r++)this.registry.onProcessRule[r](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,r){for(var n=0;n<this.registry.onProcessStyle.length;n++)t.style=this.registry.onProcessStyle[n](t.style,t,r)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,r,n){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,r,n)},t.onChangeValue=function(e,t,r){for(var n=e,o=0;o<this.registry.onChangeValue.length;o++)n=this.registry.onChangeValue[o](n,t,r);return n},t.use=function(e,t){void 0===t&&(t={queue:"external"});var r=this.plugins[t.queue];-1===r.indexOf(e)&&(r.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(e,t){for(var r in t)r in e&&e[r].push(t[r]);return e},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),ux=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,r=e.options.index;if(-1===t.indexOf(e))if(0===t.length||r>=this.index)t.push(e);else for(var n=0;n<t.length;n++)if(t[n].options.index>r)return void t.splice(n,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,r=t.attached,n=Yr(t,["attached"]),o=Ry(n).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=r&&s.attached!==r||(i&&(i+=o),i+=s.toString(n))}return i},yy(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),cx=new ux,dx="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),px="2f1acc6c3a606b082e5eef5e54414ffb";null==dx[px]&&(dx[px]=0);var fx=dx[px]++,hx=function(e){void 0===e&&(e={});var t=0;return function(r,n){t+=1;var o="",i="";return n&&(n.options.classNamePrefix&&(i=n.options.classNamePrefix),null!=n.options.jss.id&&(o=String(n.options.jss.id))),e.minify?""+(i||"c")+fx+o+t:i+r.key+"-"+fx+(o?"-"+o:"")+"-"+t}},mx=function(e){var t;return function(){return t||(t=e()),t}},gx=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},vx=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=Ey(r)),e.attributeStyleMap)e.attributeStyleMap.set(t,n);else{var o=n?n.indexOf("!important"):-1,i=o>-1?n.substr(0,o-1):n;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},bx=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},yx=function(e,t){return e.selectorText=t,e.selectorText===t},xx=mx(function(){return document.querySelector("head")});function Sx(e){var t=cx.registry;if(t.length>0){var r=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n.attached&&n.options.index>t.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&"string"==typeof n){var o=function(e){for(var t=xx(),r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];if(8===n.nodeType&&n.nodeValue.trim()===e)return n}return null}(n);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var wx=mx(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),Cx=function(e,t,r){try{"insertRule"in e?e.insertRule(t,r):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[r]},Ex=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},Rx=function(){function e(e){this.getPropertyValue=gx,this.setProperty=vx,this.removeProperty=bx,this.setSelector=yx,this.hasInsertedRules=!1,this.cssRules=[],e&&cx.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},r=t.media,n=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),n&&this.element.setAttribute("data-meta",n);var i=wx();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var r=t.insertionPoint,n=Sx(t);if(!1!==n&&n.parent)n.parent.insertBefore(e,n.node);else if(r&&"number"==typeof r.nodeType){var o=r,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else xx().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var r=0;r<e.index.length;r++)this.insertRule(e.index[r],r,t)},t.insertRule=function(e,t,r){if(void 0===r&&(r=this.element.sheet),e.rules){var n=e,o=r;if("conditional"===e.type||"keyframes"===e.type){var i=Ex(r,t);if(!1===(o=Cx(r,n.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(n.rules,o),o}var a=e.toString();if(!a)return!1;var s=Ex(r,t),l=Cx(r,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,r){e.renderable=r,e.options.parent instanceof sx&&this.cssRules.splice(t,0,r)},t.deleteRule=function(e){var t=this.element.sheet,r=this.indexOf(e);return-1!==r&&(t.deleteRule(r),this.cssRules.splice(r,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var r=this.indexOf(e);return-1!==r&&(this.element.sheet.deleteRule(r),this.cssRules.splice(r,1),this.insertRule(t,r))},t.getRules=function(){return this.element.sheet.cssRules},e}(),Ax=0,Px=function(){function e(e){this.id=Ax++,this.version="10.10.0",this.plugins=new lx,this.options={id:{minify:!1},createGenerateId:hx,Renderer:by?Rx:null,plugins:[]},this.generateId=hx({minify:!1});for(var t=0;t<nx.length;t++)this.plugins.use(nx[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=Gr({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var r=t.index;"number"!=typeof r&&(r=0===cx.index?0:cx.index+1);var n=new sx(e,Gr({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:r}));return this.plugins.onProcessSheet(n),n},t.removeStyleSheet=function(e){return e.detach(),cx.remove(e),this},t.createRule=function(e,t,r){if(void 0===t&&(t={}),void 0===r&&(r={}),"object"==typeof e)return this.createRule(void 0,e,t);var n=Gr({},r,{name:e,jss:this,Renderer:this.options.Renderer});n.generateId||(n.generateId=this.generateId),n.classes||(n.classes={}),n.keyframes||(n.keyframes={});var o=wy(e,t,n);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach(function(t){e.plugins.use(t)}),this},e}(),Mx=function(e){return new Px(e)},Ix="object"==typeof CSS&&null!=CSS&&"number"in CSS;function kx(e){var t=null;for(var r in e){var n=e[r],o=typeof n;if("function"===o)t||(t={}),t[r]=n;else if("object"===o&&null!==n&&!Array.isArray(n)){var i=kx(n);i&&(t||(t={}),t[r]=i)}}return t}
|
|
90
|
+
`),ad.rippleVisible,fd,550,({theme:e})=>e.transitions.easing.easeInOut,ad.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ad.child,ad.childLeaving,hd,550,({theme:e})=>e.transitions.easing.easeInOut,ad.childPulsate,md,({theme:e})=>e.transitions.easing.easeInOut),vd=x.forwardRef(function(e,t){const r=Tc({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=Yr(r,sd),[s,l]=x.useState([]),u=x.useRef(0),c=x.useRef(null);x.useEffect(()=>{c.current&&(c.current(),c.current=null)},[s]);const d=x.useRef(!1),p=wl(),f=x.useRef(null),h=x.useRef(null),m=x.useCallback(e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;l(e=>[...e,ur.jsx(bd,{classes:{ripple:Ps(o.ripple,ad.ripple),rippleVisible:Ps(o.rippleVisible,ad.rippleVisible),ripplePulsate:Ps(o.ripplePulsate,ad.ripplePulsate),child:Ps(o.child,ad.child),childLeaving:Ps(o.childLeaving,ad.childLeaving),childPulsate:Ps(o.childPulsate,ad.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)]),u.current+=1,c.current=a},[o]),g=x.useCallback((e={},t={},r=()=>{})=>{const{pulsate:o=!1,center:i=n||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 s=a?null:h.current,l=s?s.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(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(r-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.start(80,()=>{f.current&&(f.current(),f.current=null)})):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},[n,m,p]),b=x.useCallback(()=>{g({},{pulsate:!0})},[g]),v=x.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,()=>{v(e,t)});f.current=null,l(e=>e.length>0?e.slice(1):e),c.current=t},[p]);return x.useImperativeHandle(t,()=>({pulsate:b,start:g,stop:v}),[b,g,v]),ur.jsx(gd,Gr({className:Ps(ad.root,o.root,i),ref:h},a,{children:ur.jsx(Qc,{component:null,exit:!0,children:s})}))});function yd(e){return Ds("MuiButtonBase",e)}const xd=Ts("MuiButtonBase",["root","disabled","focusVisible"]),Sd=["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"],wd=Pc("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"},[`&.${xd.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Cd=x.forwardRef(function(e,t){const r=Tc({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:y,onKeyUp:S,onMouseDown:w,onMouseLeave:C,onMouseUp:E,onTouchEnd:R,onTouchMove:A,onTouchStart:M,tabIndex:P=0,TouchRippleProps:I,touchRippleRef:k,type:D}=r,T=Yr(r,Sd),O=x.useRef(null),L=x.useRef(null),q=vl(L,k),{isFocusVisibleRef:N,onFocus:j,onBlur:_,ref:z}=Dl(),[F,$]=x.useState(!1);l&&F&&$(!1),x.useImperativeHandle(n,()=>({focusVisible:()=>{$(!0),O.current.focus()}}),[]);const[H,B]=x.useState(!1);x.useEffect(()=>{B(!0)},[]);const W=H&&!u&&!l;function V(e,t,r=c){return bl(n=>{t&&t(n);return!r&&L.current&&L.current[e](n),!0})}x.useEffect(()=>{F&&d&&!u&&H&&L.current.pulsate()},[u,d,F,H]);const U=V("start",w),G=V("stop",m),Y=V("stop",g),K=V("stop",E),X=V("stop",e=>{F&&e.preventDefault(),C&&C(e)}),J=V("start",M),Z=V("stop",R),Q=V("stop",A),ee=V("stop",e=>{_(e),!1===N.current&&$(!1),f&&f(e)},!1),te=bl(e=>{O.current||(O.current=e.currentTarget),j(e),!0===N.current&&($(!0),v&&v(e)),b&&b(e)}),re=()=>{const e=O.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=x.useRef(!1),oe=bl(e=>{d&&!ne.current&&F&&L.current&&" "===e.key&&(ne.current=!0,L.current.stop(e,()=>{L.current.start(e)})),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!l&&(e.preventDefault(),h&&h(e))}),ie=bl(e=>{d&&" "===e.key&&L.current&&F&&!e.defaultPrevented&&(ne.current=!1,L.current.stop(e,()=>{L.current.pulsate(e)})),S&&S(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)});let ae=s;"button"===ae&&(T.href||T.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===D?"button":D,se.disabled=l):(T.href||T.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=vl(t,z,O),ue=Gr({},r,{centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:P,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Ol({root:["root",t&&"disabled",r&&"focusVisible"]},yd,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return ur.jsxs(wd,Gr({as:ae,className:Ps(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:U,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:P,type:D},se,T,{children:[i,W?ur.jsx(vd,Gr({ref:q,center:o},I)):null]}))});function Ed(e){return Ds("MuiIconButton",e)}const Rd=Ts("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Ad=["edge","children","className","color","disabled","disableFocusRipple","size"],Md=Pc(Cd,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${ya(r.color)}`],r.edge&&t[`edge${ya(r.edge)}`],t[`size${ya(r.size)}`]]}})(({theme:e,ownerState:t})=>Gr({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:uu(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=null==(r=(e.vars||e).palette)?void 0:r[t.color];return Gr({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&Gr({color:null==n?void 0:n.main},!t.disableRipple&&{"&:hover":Gr({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:uu(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${Rd.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Pd=x.forwardRef(function(e,t){const r=Tc({props:e,name:"MuiIconButton"}),{edge:n=!1,children:o,className:i,color:a="default",disabled:s=!1,disableFocusRipple:l=!1,size:u="medium"}=r,c=Yr(r,Ad),d=Gr({},r,{edge:n,color:a,disabled:s,disableFocusRipple:l,size:u}),p=(e=>{const{classes:t,disabled:r,color:n,edge:o,size:i}=e;return Ol({root:["root",r&&"disabled","default"!==n&&`color${ya(n)}`,o&&`edge${ya(o)}`,`size${ya(i)}`]},Ed,t)})(d);return ur.jsx(Md,Gr({className:Ps(p.root,i),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},c,{ownerState:d,children:o}))});function Id(e){return Ds("MuiTypography",e)}Ts("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const kd=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Dd=Pc("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${ya(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>Gr({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})),Td={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Od={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Ld=x.forwardRef(function(e,t){const r=Tc({props:e,name:"MuiTypography"}),n=(e=>Od[e]||e)(r.color),o=Cs(Gr({},r,{color:n})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=Td}=o,f=Yr(o,kd),h=Gr({},o,{align:i,color:n,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=s||(c?"p":p[d]||Td[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return Ol({root:["root",i,"inherit"!==e.align&&`align${ya(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},Id,a)})(h);return ur.jsx(Dd,Gr({as:m,ref:t,ownerState:h,className:Ps(g.root,a)},f))});const qd=x.forwardRef(function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=x.useState(null),s=vl(x.isValidElement(r)?zl(r):null,t);if(nl(()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)},[n,o]),nl(()=>{if(i&&!o)return pl(t,i),()=>{pl(t,null)}},[t,i,o]),o){if(x.isValidElement(r)){const e={ref:s};return x.cloneElement(r,e)}return ur.jsx(x.Fragment,{children:r})}return ur.jsx(x.Fragment,{children:i?H.createPortal(r,i):i})}),Nd=["onChange","maxRows","minRows","style","value"];function jd(e){return parseInt(e,10)||0}const _d={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function zd(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Fd=x.forwardRef(function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,s=Yr(e,Nd),{current:l}=x.useRef(null!=a),u=x.useRef(null),c=vl(t,u),d=x.useRef(null),p=x.useRef(null),f=x.useCallback(()=>{const t=u.current,r=p.current;if(!t||!r)return;const i=dl(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};r.style.width=i.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const a=i.boxSizing,s=jd(i.paddingBottom)+jd(i.paddingTop),l=jd(i.borderBottomWidth)+jd(i.borderTopWidth),c=r.scrollHeight;r.value="x";const d=r.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*d,f)),n&&(f=Math.min(Number(n)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===a?s+l:0),overflowing:Math.abs(f-c)<=1}},[n,o,e.placeholder]),h=bl(()=>{const e=u.current,t=f();if(!e||!t||zd(t))return!1;const r=t.outerHeightStyle;return null!=d.current&&d.current!==r}),m=x.useCallback(()=>{const e=u.current,t=f();if(!e||!t||zd(t))return;const r=t.outerHeightStyle;d.current!==r&&(d.current=r,e.style.height=`${r}px`),e.style.overflow=t.overflowing?"hidden":""},[f]),g=x.useRef(-1);nl(()=>{const e=ul(m),t=null==u?void 0:u.current;if(!t)return;const r=dl(t);let n;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(()=>{h()&&(n.unobserve(t),cancelAnimationFrame(g.current),m(),g.current=requestAnimationFrame(()=>{n.observe(t)}))}),n.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),r.removeEventListener("resize",e),n&&n.disconnect()}},[f,m,h]),nl(()=>{m()});return ur.jsxs(x.Fragment,{children:[ur.jsx("textarea",Gr({value:a,onChange:e=>{l||m(),r&&r(e)},ref:c,rows:o,style:i},s)),ur.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:Gr({},_d,i,{paddingTop:0,paddingBottom:0})})]})});function $d({props:e,states:t,muiFormControl:r}){return t.reduce((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t),{})}const Hd=x.createContext(void 0);function Bd(){return x.useContext(Hd)}function Wd(e){return ur.jsx(Ss,Gr({},e,{defaultTheme:Uu,themeId:Ur}))}function Vd(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Ud(e,t=!1){return e&&(Vd(e.value)&&""!==e.value||t&&Vd(e.defaultValue)&&""!==e.defaultValue)}function Gd(e){return Ds("MuiInputBase",e)}const Yd=Ts("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Kd=["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"],Xd=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${ya(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Jd=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Zd=Pc("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Xd})(({theme:e,ownerState:t})=>Gr({},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",[`&.${Yd.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Gr({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Qd=Pc("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Jd})(({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=Gr({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.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:r?.42:.5};return Gr({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":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Yd.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},[`&.${Yd.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"})}),ep=ur.jsx(Wd,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),tp=x.forwardRef(function(e,t){var r;const n=Tc({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,components:l={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:y,minRows:S,multiline:w=!1,name:C,onBlur:E,onChange:R,onClick:A,onFocus:M,onKeyDown:P,onKeyUp:I,placeholder:k,readOnly:D,renderSuffix:T,rows:O,slotProps:L={},slots:q={},startAdornment:N,type:j="text",value:_}=n,z=Yr(n,Kd),F=null!=b.value?b.value:_,{current:$}=x.useRef(null!=F),H=x.useRef(),B=x.useCallback(e=>{},[]),W=vl(H,v,b.ref,B),[V,U]=x.useState(!1),G=Bd(),Y=$d({props:n,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=G?G.focused:V,x.useEffect(()=>{!G&&d&&V&&(U(!1),E&&E())},[G,d,V,E]);const K=G&&G.onFilled,X=G&&G.onEmpty,J=x.useCallback(e=>{Ud(e)?K&&K():X&&X()},[K,X]);nl(()=>{$&&J({value:F})},[F,J,$]);x.useEffect(()=>{J(H.current)},[]);let Z=g,Q=b;w&&"input"===Z&&(Q=Gr(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:y,minRows:S},Q),Z=Fd);x.useEffect(()=>{G&&G.setAdornedStart(Boolean(N))},[G,N]);const ee=Gr({},n,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:f,error:Y.error,focused:Y.focused,formControl:G,fullWidth:h,hiddenLabel:Y.hiddenLabel,multiline:w,size:Y.size,startAdornment:N,type:j}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e;return Ol({root:["root",`color${ya(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${ya(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Gd,t)})(ee),re=q.root||l.Root||Zd,ne=L.root||u.root||{},oe=q.input||l.Input||Qd;return Q=Gr({},Q,null!=(r=L.input)?r:u.input),ur.jsxs(x.Fragment,{children:[!p&&ep,ur.jsxs(re,Gr({},ne,!Ll(re)&&{ownerState:Gr({},ee,ne.ownerState)},{ref:t,onClick:e=>{H.current&&e.currentTarget===e.target&&H.current.focus(),A&&A(e)}},z,{className:Ps(te.root,ne.className,s,D&&"MuiInputBase-readOnly"),children:[N,ur.jsx(Hd.Provider,{value:null,children:ur.jsx(oe,Gr({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:Y.disabled,id:m,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?H.current:{value:"x"})},name:C,placeholder:k,readOnly:D,required:Y.required,rows:O,value:F,onKeyDown:P,onKeyUp:I,type:j},Q,!Ll(oe)&&{as:Z,ownerState:Gr({},ee,Q.ownerState)},{ref:W,className:Ps(te.input,Q.className,D&&"MuiInputBase-readOnly"),onBlur:e=>{E&&E(e),b.onBlur&&b.onBlur(e),G&&G.onBlur?G.onBlur(e):U(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||H.current;if(null==t)throw new Error(Wr(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(M&&M(e),b.onFocus&&b.onFocus(e),G&&G.onFocus?G.onFocus(e):U(!0))}}))}),f,T?T(Gr({},Y,{startAdornment:N})):null]}))]})});function rp(e){return Ds("MuiInput",e)}const np=Gr({},Yd,Ts("MuiInput",["root","underline","input"]));function op(e){return Ds("MuiOutlinedInput",e)}const ip=Gr({},Yd,Ts("MuiOutlinedInput",["root","notchedOutline","input"]));function ap(e){return Ds("MuiFilledInput",e)}const sp=Gr({},Yd,Ts("MuiFilledInput",["root","underline","input"]));var lp=function(e,t){function r(r,n){return ur.jsx(Nc,Gr({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=Nc.muiName,x.memo(x.forwardRef(r))}(ur.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const up=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],cp={entering:{opacity:1},entered:{opacity:1}},dp=x.forwardRef(function(e,t){const r=Gu(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=n,TransitionComponent:b=Uc}=e,v=Yr(e,up),y=x.useRef(null),S=vl(y,zl(a),t),w=e=>t=>{if(e){const r=y.current;void 0===t?e(r):e(r,t)}},C=w(d),E=w((e,t)=>{ed(e);const n=td({style:m,timeout:g,easing:s},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),u&&u(e,t)}),R=w(c),A=w(h),M=w(e=>{const t=td({style:m,timeout:g,easing:s},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)}),P=w(f);return ur.jsx(b,Gr({appear:i,in:l,nodeRef:y,onEnter:E,onEntered:R,onEntering:C,onExit:M,onExited:P,onExiting:A,addEndListener:e=>{o&&o(y.current,e)},timeout:g},v,{children:(e,t)=>x.cloneElement(a,Gr({style:Gr({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},cp[e],m,a.props.style),ref:S},t))}))});function pp(e){return Ds("MuiBackdrop",e)}Ts("MuiBackdrop",["root","invisible"]);const fp=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],hp=Pc("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>Gr({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"})),mp=x.forwardRef(function(e,t){var r,n,o;const i=Tc({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=dp,transitionDuration:g}=i,b=Yr(i,fp),v=Gr({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return Ol({root:["root",r&&"invisible"]},pp,t)})(v),x=null!=(r=f.root)?r:c.root;return ur.jsx(m,Gr({in:p,timeout:g},b,{children:ur.jsx(hp,Gr({"aria-hidden":!0},x,{as:null!=(n=null!=(o=h.root)?o:u.Root)?n:l,className:Ps(y.root,s,null==x?void 0:x.className),ownerState:Gr({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}),gp=Ts("MuiBox",["root"]),bp=Vu(),vp=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=na("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(ps);return x.forwardRef(function(e,a){const s=ys(r),l=Cs(e),{className:u,component:c="div"}=l,d=Yr(l,Is);return ur.jsx(i,Gr({as:c,ref:a,className:Ps(u,o?o(n):n),theme:t&&s[t]||s},d))})}({themeId:Ur,defaultTheme:bp,defaultClassName:gp.root,generateClassName:As.generate});function yp(e){return Ds("MuiButton",e)}const xp=Ts("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","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Sp=x.createContext({}),wp=x.createContext(void 0),Cp=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Ep=e=>Gr({},"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}}),Rp=Pc(Cd,{shouldForwardProp:e=>Mc(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${ya(r.color)}`],t[`size${ya(r.size)}`],t[`${r.variant}Size${ya(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;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 Gr({},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":Gr({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:uu(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})`:uu(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})`:uu(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":Gr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${xp.focusVisible}`]:Gr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${xp.disabled}`]:Gr({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 ${uu(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,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"},[`&.${xp.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${xp.disabled}`]:{boxShadow:"none"}}),Ap=Pc("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${ya(r.size)}`]]}})(({ownerState:e})=>Gr({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Ep(e))),Mp=Pc("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${ya(r.size)}`]]}})(({ownerState:e})=>Gr({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Ep(e))),Pp=x.forwardRef(function(e,t){const r=x.useContext(Sp),n=x.useContext(wp),o=Tc({props:rl(r,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:b,variant:v="text"}=o,y=Yr(o,Cp),S=Gr({},o,{color:a,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:b,variant:v}),w=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return Gr({},a,Ol({root:["root",i,`${i}${ya(t)}`,`size${ya(o)}`,`${i}Size${ya(o)}`,`color${ya(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ya(o)}`],endIcon:["icon","endIcon",`iconSize${ya(o)}`]},yp,a))})(S),C=g&&ur.jsx(Ap,{className:w.startIcon,ownerState:S,children:g}),E=p&&ur.jsx(Mp,{className:w.endIcon,ownerState:S,children:p}),R=n||"";return ur.jsxs(Rp,Gr({ownerState:S,className:Ps(r.className,w.root,l,R),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:Ps(w.focusVisible,f),ref:t,type:b},y,{classes:w,children:[C,i,E]}))});function Ip(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function kp(e){return parseInt(dl(e).getComputedStyle(e).paddingRight,10)||0}function Dp(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&Ip(e,o)})}function Tp(e,t){let r=-1;return e.some((e,n)=>!!t(e)&&(r=n,!0)),r}function Op(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=cl(e);return t.body===e?dl(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=Tl(cl(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${kp(n)+e}px`;const t=cl(n).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${kp(t)+e}px`})}let e;if(n.parentNode instanceof DocumentFragment)e=cl(n).body;else{const t=n.parentElement,r=dl(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.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()=>{r.forEach(({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)})}}const Lp=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function qp(e){const t=[],r=[];return Array.from(e.querySelectorAll(Lp)).forEach((e,n)=>{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 r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))}),r.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function Np(){return!0}function jp(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=qp,isEnabled:a=Np,open:s}=e,l=x.useRef(!1),u=x.useRef(null),c=x.useRef(null),d=x.useRef(null),p=x.useRef(null),f=x.useRef(!1),h=x.useRef(null),m=vl(zl(t),h),g=x.useRef(null);x.useEffect(()=>{s&&h.current&&(f.current=!r)},[r,s]),x.useEffect(()=>{if(!s||!h.current)return;const e=cl(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),x.useEffect(()=>{if(!s||!h.current)return;const e=cl(h.current),t=t=>{g.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(l.current=!0,c.current&&c.current.focus())},r=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(n&&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 r=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(r=i(h.current)),r.length>0){var o,s;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=g.current)?void 0:s.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()},50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}},[r,n,o,a,s,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return ur.jsxs(x.Fragment,{children:[ur.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),x.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),ur.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const _p=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&Ip(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);Dp(t,e.mount,e.modalRef,n,!0);const o=Tp(this.containers,e=>e.container===t);return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=Tp(this.containers,t=>-1!==t.modals.indexOf(e)),n=this.containers[r];n.restore||(n.restore=Op(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=Tp(this.containers,t=>-1!==t.modals.indexOf(e)),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Ip(e.modalRef,t),Dp(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&Ip(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function zp(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=_p,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:d}=e,p=x.useRef({}),f=x.useRef(null),h=x.useRef(null),m=vl(h,d),[g,b]=x.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const S=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),w=()=>{o.mount(S(),{disableScrollLock:n}),h.current&&(h.current.scrollTop=0)},C=bl(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||cl(f.current).body;o.add(S(),e),h.current&&w()}),E=x.useCallback(()=>o.isTopModal(S()),[o]),R=bl(e=>{f.current=e,e&&(c&&E()?w():h.current&&Ip(h.current,y))}),A=x.useCallback(()=>{o.remove(S(),y)},[y,o]);x.useEffect(()=>()=>{A()},[A]),x.useEffect(()=>{c?C():v&&i||A()},[c,A,v,i,C]);const M=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&E()&&(r||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},P=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const r=ql(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=Gr({},r,t);return Gr({role:"presentation"},n,{onKeyDown:M(n),ref:m})},getBackdropProps:(e={})=>Gr({"aria-hidden":!0},e,{onClick:P(e),open:c}),getTransitionProps:()=>({onEnter:ll(()=>{b(!1),a&&a()},null==l?void 0:l.props.onEnter),onExited:ll(()=>{b(!0),s&&s(),i&&A()},null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:R,isTopModal:E,exited:g,hasTransition:v}}function Fp(e){return Ds("MuiModal",e)}Ts("MuiModal",["root","hidden","backdrop"]);const $p=["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"],Hp=Pc("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>Gr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Bp=Pc(mp,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Wp=x.forwardRef(function(e,t){var r,n,o,i,a,s;const l=Tc({name:"MuiModal",props:e}),{BackdropComponent:u=Bp,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:S=!1,disablePortal:w=!1,disableRestoreFocus:C=!1,disableScrollLock:E=!1,hideBackdrop:R=!1,keepMounted:A=!1,onBackdropClick:M,open:P,slotProps:I,slots:k}=l,D=Yr(l,$p),T=Gr({},l,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:C,disableScrollLock:E,hideBackdrop:R,keepMounted:A}),{getRootProps:O,getBackdropProps:L,getTransitionProps:q,portalRef:N,isTopModal:j,exited:_,hasTransition:z}=zp(Gr({},T,{rootRef:t})),F=Gr({},T,{exited:_}),$=(e=>{const{open:t,exited:r,classes:n}=e;return Ol({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Fp,n)})(F),H={};if(void 0===f.props.tabIndex&&(H.tabIndex="-1"),z){const{onEnter:e,onExited:t}=q();H.onEnter=e,H.onExited=t}const B=null!=(r=null!=(n=null==k?void 0:k.root)?n:g.Root)?r:Hp,W=null!=(o=null!=(i=null==k?void 0:k.backdrop)?i:g.Backdrop)?o:u,V=null!=(a=null==I?void 0:I.root)?a:b.root,U=null!=(s=null==I?void 0:I.backdrop)?s:b.backdrop,G=_l({elementType:B,externalSlotProps:V,externalForwardedProps:D,getSlotProps:O,additionalProps:{ref:t,as:m},ownerState:F,className:Ps(d,null==V?void 0:V.className,null==$?void 0:$.root,!F.open&&F.exited&&(null==$?void 0:$.hidden))}),Y=_l({elementType:W,externalSlotProps:U,additionalProps:c,getSlotProps:e=>L(Gr({},e,{onClick:t=>{M&&M(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Ps(null==U?void 0:U.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:F});return A||P||z&&!_?ur.jsx(qd,{ref:N,container:h,disablePortal:w,children:ur.jsxs(B,Gr({},G,{children:[!R&&u?ur.jsx(W,Gr({},Y)):null,ur.jsx(jp,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:j,open:P,children:x.cloneElement(f,H)})]}))}):null});function Vp(e){return Ds("MuiDivider",e)}const Up=Ts("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Gp=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Yp=Pc("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>Gr({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)`:uu(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})=>Gr({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>Gr({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>Gr({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>Gr({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Kp=Pc("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>Gr({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)`})),Xp=x.forwardRef(function(e,t){const r=Tc({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=Yr(r,Gp),h=Gr({},r,{absolute:n,component:a,flexItem:s,light:l,orientation:u,role:c,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return Ol({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},Vp,n)})(h);return ur.jsx(Yp,Gr({as:a,className:Ps(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?ur.jsx(Kp,{className:m.wrapper,ownerState:h,children:o}):null}))});Xp.muiSkipListHighlight=!0;const Jp=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Zp=Pc(Zd,{shouldForwardProp:e=>Mc(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Xd(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Gr({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}},[`&.${sp.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${sp.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.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"},[`&.${sp.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${sp.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(.${sp.disabled}, .${sp.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${sp.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Gr({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}))}),Qp=Pc(Qd,{name:"MuiFilledInput",slot:"Input",overridesResolver:Jd})(({theme:e,ownerState:t})=>Gr({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})),ef=x.forwardRef(function(e,t){var r,n,o,i;const a=Tc({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:h="text"}=a,m=Yr(a,Jp),g=Gr({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),b=(e=>{const{classes:t,disableUnderline:r}=e;return Gr({},t,Ol({root:["root",!r&&"underline"],input:["input"]},ap,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:l)?ua(v,null!=p?p:l):v,x=null!=(r=null!=(n=f.root)?n:s.Root)?r:Zp,S=null!=(o=null!=(i=f.input)?i:s.Input)?o:Qp;return ur.jsx(tp,Gr({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:b}))});ef.muiName="Input";const tf=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function rf(e){return`scale(${e}, ${e**2})`}const nf={entering:{opacity:1,transform:rf(1)},entered:{opacity:1,transform:"none"}},of="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),af=x.forwardRef(function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=Uc}=e,g=Yr(e,tf),b=wl(),v=x.useRef(),y=Gu(),S=x.useRef(null),w=vl(S,zl(o),t),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},E=C(u),R=C((e,t)=>{ed(e);const{duration:r,delay:n,easing:o}=td({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=r,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:n}),y.transitions.create("transform",{duration:of?a:.666*a,delay:n,easing:o})].join(","),s&&s(e,t)}),A=C(l),M=C(p),P=C(e=>{const{duration:t,delay:r,easing:n}=td({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:r}),y.transitions.create("transform",{duration:of?o:.666*o,delay:of?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=rf(.75),c&&c(e)}),I=C(d);return ur.jsx(m,Gr({appear:n,in:a,nodeRef:S,onEnter:R,onEntered:A,onEntering:E,onExit:P,onExited:I,onExiting:M,addEndListener:e=>{"auto"===h&&b.start(v.current||0,e),r&&r(S.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>x.cloneElement(o,Gr({style:Gr({opacity:0,transform:rf(.75),visibility:"exited"!==e||a?void 0:"hidden"},nf[e],f,o.props.style),ref:w},t))}))});af.muiSupportAuto=!0;const sf=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],lf=Pc(Zd,{shouldForwardProp:e=>Mc(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Xd(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Gr({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"},[`&.${np.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${np.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,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(.${np.disabled}, .${np.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${np.disabled}:before`]:{borderBottomStyle:"dotted"}})}),uf=Pc(Qd,{name:"MuiInput",slot:"Input",overridesResolver:Jd})({}),cf=x.forwardRef(function(e,t){var r,n,o,i;const a=Tc({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:h={},type:m="text"}=a,g=Yr(a,sf),b=(e=>{const{classes:t,disableUnderline:r}=e;return Gr({},t,Ol({root:["root",!r&&"underline"],input:["input"]},rp,t))})(a),v={root:{ownerState:{disableUnderline:s}}},y=(null!=f?f:u)?ua(null!=f?f:u,v):v,x=null!=(r=null!=(n=h.root)?n:l.Root)?r:lf,S=null!=(o=null!=(i=h.input)?i:l.Input)?o:uf;return ur.jsx(tp,Gr({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:b}))});function df(e){return Ds("MuiLink",e)}cf.muiName="Input";const pf=Ts("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),ff={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},hf=({theme:e,ownerState:t})=>{const r=(e=>ff[e]||e)(t.color),n=Sa(e,`palette.${r}`,!1)||t.color,o=Sa(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:uu(n,.4)},mf=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],gf=Pc(Ld,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${ya(r.underline)}`],"button"===r.component&&t.button]}})(({theme:e,ownerState:t})=>Gr({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Gr({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:hf({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"},[`&.${pf.focusVisible}`]:{outline:"auto"}})),bf=x.forwardRef(function(e,t){const r=Tc({props:e,name:"MuiLink"}),{className:n,color:o="primary",component:i="a",onBlur:a,onFocus:s,TypographyClasses:l,underline:u="always",variant:c="inherit",sx:d}=r,p=Yr(r,mf),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=Dl(),[b,v]=x.useState(!1),y=vl(t,g),S=Gr({},r,{color:o,component:i,focusVisible:b,underline:u,variant:c}),w=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return Ol({root:["root",`underline${ya(o)}`,"button"===r&&"button",n&&"focusVisible"]},df,t)})(S);return ur.jsx(gf,Gr({color:o,className:Ps(w.root,n),classes:l,component:i,onBlur:e=>{h(e),!1===f.current&&v(!1),a&&a(e)},onFocus:e=>{m(e),!0===f.current&&v(!0),s&&s(e)},ref:y,ownerState:S,variant:c,sx:[...Object.keys(ff).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}),vf=x.createContext({});function yf(e){return Ds("MuiList",e)}Ts("MuiList",["root","padding","dense","subheader"]);const xf=["children","className","component","dense","disablePadding","subheader"],Sf=Pc("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>Gr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),wf=x.forwardRef(function(e,t){const r=Tc({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=r,u=Yr(r,xf),c=x.useMemo(()=>({dense:a}),[a]),d=Gr({},r,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Ol({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},yf,t)})(d);return ur.jsx(vf.Provider,{value:c,children:ur.jsxs(Sf,Gr({as:i,className:Ps(p.root,o),ref:t,ownerState:d},u,{children:[l,n]}))})});function Cf(e){return Ds("MuiListItemIcon",e)}const Ef=Ts("MuiListItemIcon",["root","alignItemsFlexStart"]),Rf=["className"],Af=Pc("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>Gr({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})),Mf=x.forwardRef(function(e,t){const r=Tc({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=Yr(r,Rf),i=Gr({},r,{alignItems:x.useContext(vf).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return Ol({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Cf,r)})(i);return ur.jsx(Af,Gr({className:Ps(a.root,n),ownerState:i,ref:t},o))}),Pf=Ts("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),If=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function kf(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Df(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Tf(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function Of(e,t,r,n,o,i){let a=!1,s=o(e,t,!!t&&r);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&Tf(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const Lf=x.forwardRef(function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=Yr(e,If),p=x.useRef(null),f=x.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});nl(()=>{n&&p.current.focus()},[n]),x.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${Tl(cl(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}}),[]);const h=vl(p,t);let m=-1;x.Children.forEach(i,(e,t)=>{x.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))});const g=x.Children.map(i,(e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),x.cloneElement(e,t)}return e});return ur.jsx(wf,Gr({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=cl(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Of(t,n,l,s,kf);else if("ArrowUp"===r)e.preventDefault(),Of(t,n,l,s,Df);else if("Home"===r)e.preventDefault(),Of(t,null,l,s,kf);else if("End"===r)e.preventDefault(),Of(t,null,l,s,Df);else if(1===r.length){const o=f.current,i=r.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 l=n&&!o.repeating&&Tf(n,o);o.previousKeyMatched&&(l||Of(t,n,!1,s,kf,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))});function qf(e){return Ds("MuiPopover",e)}Ts("MuiPopover",["root","paper"]);const Nf=["onEntering"],jf=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],_f=["slotProps"];function zf(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Ff(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function $f(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function Hf(e){return"function"==typeof e?e():e}const Bf=Pc(Wp,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Wf=Pc(id,{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}),Vf=x.forwardRef(function(e,t){var r,n,o;const i=Tc({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:b={},slots:v,slotProps:y,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:w=af,transitionDuration:C="auto",TransitionProps:{onEntering:E}={},disableScrollLock:R=!1}=i,A=Yr(i.TransitionProps,Nf),M=Yr(i,jf),P=null!=(r=null==y?void 0:y.paper)?r:b,I=x.useRef(),k=vl(I,P.ref),D=Gr({},i,{anchorOrigin:l,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:P,transformOrigin:S,TransitionComponent:w,transitionDuration:C,TransitionProps:A}),T=(e=>{const{classes:t}=e;return Ol({root:["root"],paper:["paper"]},qf,t)})(D),O=x.useCallback(()=>{if("anchorPosition"===c)return u;const e=Hf(s),t=(e&&1===e.nodeType?e:cl(I.current).body).getBoundingClientRect();return{top:t.top+zf(t,l.vertical),left:t.left+Ff(t,l.horizontal)}},[s,l.horizontal,l.vertical,u,c]),L=x.useCallback(e=>({vertical:zf(e,S.vertical),horizontal:Ff(e,S.horizontal)}),[S.horizontal,S.vertical]),q=x.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=L(t);if("none"===c)return{top:null,left:null,transformOrigin:$f(r)};const n=O();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,u=dl(Hf(s)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,r.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,r.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,r.horizontal+=e}else if(l>p){const e=l-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:$f(r)}},[s,c,O,L,m]),[N,j]=x.useState(g),_=x.useCallback(()=>{const e=I.current;if(!e)return;const t=q(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,j(!0)},[q]);x.useEffect(()=>(R&&window.addEventListener("scroll",_),()=>window.removeEventListener("scroll",_)),[s,R,_]);x.useEffect(()=>{g&&_()}),x.useImperativeHandle(a,()=>g?{updatePosition:()=>{_()}}:null,[g,_]),x.useEffect(()=>{if(!g)return;const e=ul(()=>{_()}),t=dl(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[s,g,_]);let z=C;"auto"!==C||w.muiSupportAuto||(z=void 0);const F=f||(s?cl(Hf(s)).body:void 0),$=null!=(n=null==v?void 0:v.root)?n:Bf,H=null!=(o=null==v?void 0:v.paper)?o:Wf,B=_l({elementType:H,externalSlotProps:Gr({},P,{style:N?P.style:Gr({},P.style,{opacity:0})}),additionalProps:{elevation:h,ref:k},ownerState:D,className:Ps(T.paper,null==P?void 0:P.className)}),W=_l({elementType:$,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:M,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:D,className:Ps(T.root,p)}),{slotProps:V}=W,U=Yr(W,_f);return ur.jsx($,Gr({},U,!Ll($)&&{slotProps:V,disableScrollLock:R},{children:ur.jsx(w,Gr({appear:!0,in:g,onEntering:(e,t)=>{E&&E(e,t),_()},onExited:()=>{j(!1)},timeout:z},A,{children:ur.jsx(H,Gr({},B,{children:d}))}))}))});function Uf(e){return Ds("MuiMenu",e)}Ts("MuiMenu",["root","paper","list"]);const Gf=["onEntering"],Yf=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Kf={vertical:"top",horizontal:"right"},Xf={vertical:"top",horizontal:"left"},Jf=Pc(Vf,{shouldForwardProp:e=>Mc(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Zf=Pc(Wf,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Qf=Pc(Lf,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),eh=x.forwardRef(function(e,t){var r,n;const o=Tc({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,y=Yr(o.TransitionProps,Gf),S=Yr(o,Yf),w=(()=>{const e=x.useContext(Vl);return null!=e&&e})(),C=Gr({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:y,variant:g}),E=(e=>{const{classes:t}=e;return Ol({root:["root"],paper:["paper"],list:["list"]},Uf,t)})(C),R=i&&!l&&d,A=x.useRef(null);let M=-1;x.Children.map(a,(e,t)=>{x.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===M)&&(M=t))});const P=null!=(r=b.paper)?r:Zf,I=null!=(n=v.paper)?n:p,k=_l({elementType:b.root,externalSlotProps:v.root,ownerState:C,className:[E.root,s]}),D=_l({elementType:P,externalSlotProps:I,ownerState:C,className:E.paper});return ur.jsx(Jf,Gr({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?Kf:Xf,slots:{paper:P,root:b.root},slotProps:{root:k,paper:D},open:d,ref:t,transitionDuration:h,TransitionProps:Gr({onEntering:(e,t)=>{A.current&&A.current.adjustStyleForScrollbar(e,{direction:w?"rtl":"ltr"}),m&&m(e,t)}},y),ownerState:C},S,{classes:f,children:ur.jsx(Qf,Gr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:A,autoFocus:i&&(-1===M||l),autoFocusItem:R,variant:g},u,{className:Ps(E.list,u.className),children:a}))}))});function th(e){return Ds("MuiMenuItem",e)}const rh=Ts("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),nh=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],oh=Pc(Cd,{shouldForwardProp:e=>Mc(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>Gr({},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"}},[`&.${rh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:uu(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${rh.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:uu(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${rh.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:uu(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})`:uu(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${rh.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${rh.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Up.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Up.inset}`]:{marginLeft:52},[`& .${Pf.root}`]:{marginTop:0,marginBottom:0},[`& .${Pf.inset}`]:{paddingLeft:36},[`& .${Ef.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Gr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Ef.root} svg`]:{fontSize:"1.25rem"}}))),ih=x.forwardRef(function(e,t){const r=Tc({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:u="menuitem",tabIndex:c,className:d}=r,p=Yr(r,nh),f=x.useContext(vf),h=x.useMemo(()=>({dense:i||f.dense||!1,disableGutters:s}),[f.dense,i,s]),m=x.useRef(null);nl(()=>{n&&m.current&&m.current.focus()},[n]);const g=Gr({},r,{dense:h.dense,divider:a,disableGutters:s}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return Gr({},a,Ol({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},th,a))})(r),v=vl(m,t);let y;return r.disabled||(y=void 0!==c?c:-1),ur.jsx(vf.Provider,{value:h,children:ur.jsx(oh,Gr({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:Ps(b.focusVisible,l),className:Ps(b.root,d)},p,{ownerState:g,classes:b}))})});function ah(e){return Ds("MuiNativeSelect",e)}const sh=Ts("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),lh=["className","disabled","error","IconComponent","inputRef","variant"],uh=({ownerState:e,theme:t})=>Gr({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Gr({},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"},[`&.${sh.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}}),ch=Pc("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Mc,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${sh.multiple}`]:t.multiple}]}})(uh),dh=({ownerState:e,theme:t})=>Gr({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${sh.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),ph=Pc("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ya(r.variant)}`],r.open&&t.iconOpen]}})(dh),fh=x.forwardRef(function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:s="standard"}=e,l=Yr(e,lh),u=Gr({},e,{disabled:n,variant:s,error:o}),c=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return Ol({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ya(r)}`,i&&"iconOpen",n&&"disabled"]},ah,t)})(u);return ur.jsxs(x.Fragment,{children:[ur.jsx(ch,Gr({ownerState:u,className:Ps(c.select,r),disabled:n,ref:a||t},l)),e.multiple?null:ur.jsx(ph,{as:i,ownerState:u,className:c.icon})]})});var hh;const mh=["children","classes","className","label","notched"],gh=Pc("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Mc})({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%"}),bh=Pc("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Mc})(({ownerState:e,theme:t})=>Gr({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&&Gr({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 vh=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],yh=Pc(Zd,{shouldForwardProp:e=>Mc(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Xd})(({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Gr({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ip.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ip.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${ip.focused} .${ip.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ip.error} .${ip.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ip.disabled} .${ip.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Gr({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))}),xh=Pc(function(e){const{className:t,label:r,notched:n}=e,o=Yr(e,mh),i=null!=r&&""!==r,a=Gr({},e,{notched:n,withLabel:i});return ur.jsx(gh,Gr({"aria-hidden":!0,className:t,ownerState:a},o,{children:ur.jsx(bh,{ownerState:a,children:i?ur.jsx("span",{children:r}):hh||(hh=ur.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}}),Sh=Pc(Qd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Jd})(({theme:e,ownerState:t})=>Gr({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})),wh=x.forwardRef(function(e,t){var r,n,o,i,a;const s=Tc({props:e,name:"MuiOutlinedInput"}),{components:l={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:h={},type:m="text"}=s,g=Yr(s,vh),b=(e=>{const{classes:t}=e;return Gr({},t,Ol({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},op,t))})(s),v=Bd(),y=$d({props:s,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=Gr({},s,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:v,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:m}),w=null!=(r=null!=(n=h.root)?n:l.Root)?r:yh,C=null!=(o=null!=(i=h.input)?i:l.Input)?o:Sh;return ur.jsx(tp,Gr({slots:{root:w,input:C},renderSuffix:e=>ur.jsx(xh,{ownerState:S,className:b.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=ur.jsxs(x.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:m},g,{classes:Gr({},b,{notchedOutline:null})}))});function Ch(e){return Ds("MuiSelect",e)}wh.muiName="Input";const Eh=Ts("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Rh;const Ah=["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"],Mh=Pc("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Eh.select}`]:t.select},{[`&.${Eh.select}`]:t[r.variant]},{[`&.${Eh.error}`]:t.error},{[`&.${Eh.multiple}`]:t.multiple}]}})(uh,{[`&.${Eh.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Ph=Pc("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ya(r.variant)}`],r.open&&t.iconOpen]}})(dh),Ih=Pc("input",{shouldForwardProp:e=>Ac(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 kh(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Dh(e){return null==e||"string"==typeof e&&!e.trim()}const Th=x.forwardRef(function(e,t){var r;const{"aria-describedby":n,"aria-label":o,autoFocus:i,autoWidth:a,children:s,className:l,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:h,inputRef:m,labelId:g,MenuProps:b={},multiple:v,name:y,onBlur:S,onChange:w,onClose:C,onFocus:E,onOpen:R,open:A,readOnly:M,renderValue:P,SelectDisplayProps:I={},tabIndex:k,value:D,variant:T="standard"}=e,O=Yr(e,Ah),[L,q]=gl({controlled:D,default:c,name:"Select"}),[N,j]=gl({controlled:A,default:u,name:"Select"}),_=x.useRef(null),z=x.useRef(null),[F,$]=x.useState(null),{current:H}=x.useRef(null!=A),[B,W]=x.useState(),V=vl(t,m),U=x.useCallback(e=>{z.current=e,e&&$(e)},[]),G=null==F?void 0:F.parentNode;x.useImperativeHandle(V,()=>({focus:()=>{z.current.focus()},node:_.current,value:L}),[L]),x.useEffect(()=>{u&&N&&F&&!H&&(W(a?null:G.clientWidth),z.current.focus())},[F,a]),x.useEffect(()=>{i&&z.current.focus()},[i]),x.useEffect(()=>{if(!g)return;const e=cl(z.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}},[g]);const Y=(e,t)=>{e?R&&R(t):C&&C(t),H||(W(a?null:G.clientWidth),j(e))},K=x.Children.toArray(s),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(v){r=Array.isArray(L)?L.slice():[];const t=L.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),L!==r&&(q(r),w)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:y}}),w(o,e)}v||Y(!1,t)}},J=null!==F&&N;let Z,Q;delete O["aria-invalid"];const ee=[];let te=!1;(Ud({value:L})||p)&&(P?Z=P(L):te=!0);const re=K.map(e=>{if(!x.isValidElement(e))return null;let t;if(v){if(!Array.isArray(L))throw new Error(Wr(2));t=L.some(t=>kh(t,e.props.value)),t&&te&&ee.push(e.props.children)}else t=kh(L,e.props.value),t&&te&&(Q=e.props.children);return x.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(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})});te&&(Z=v?0===ee.length?null:ee.reduce((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e),[]):Q);let ne,oe=B;!a&&H&&F&&(oe=G.clientWidth),ne=void 0!==k?k:d?null:0;const ie=I.id||(y?`mui-component-select-${y}`:void 0),ae=Gr({},e,{variant:T,value:L,open:J,error:f}),se=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return Ol({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ya(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},Ch,t)})(ae),le=Gr({},b.PaperProps,null==(r=b.slotProps)?void 0:r.paper),ue=ml();return ur.jsxs(x.Fragment,{children:[ur.jsx(Mh,Gr({ref:U,tabIndex:ne,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!M){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:d||M?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),Y(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:L,name:y}}),S(e))},onFocus:E},I,{ownerState:ae,className:Ps(I.className,se.select,l),id:ie,children:Dh(Z)?Rh||(Rh=ur.jsx("span",{className:"notranslate",children:""})):Z})),ur.jsx(Ih,Gr({"aria-invalid":f,value:Array.isArray(L)?L.join(","):L,name:y,ref:_,"aria-hidden":!0,onChange:e=>{const t=K.find(t=>t.props.value===e.target.value);void 0!==t&&(q(t.props.value),w&&w(e,t))},tabIndex:-1,disabled:d,className:se.nativeInput,autoFocus:i,ownerState:ae},O)),ur.jsx(Ph,{as:h,className:se.icon,ownerState:ae}),ur.jsx(eh,Gr({id:`menu-${y||""}`,anchorEl:G,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:Gr({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:Gr({},b.slotProps,{paper:Gr({},le,{style:Gr({minWidth:oe},null!=le?le.style:null)})}),children:re}))]})}),Oh=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Lh=["root"],qh={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Mc(e)&&"variant"!==e,slot:"Root"},Nh=Pc(cf,qh)(""),jh=Pc(wh,qh)(""),_h=Pc(ef,qh)(""),zh=x.forwardRef(function(e,t){const r=Tc({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:u=lp,id:c,input:d,inputProps:p,label:f,labelId:h,MenuProps:m,multiple:g=!1,native:b=!1,onClose:v,onOpen:y,open:S,renderValue:w,SelectDisplayProps:C,variant:E="outlined"}=r,R=Yr(r,Oh),A=b?fh:Th,M=$d({props:r,muiFormControl:Bd(),states:["variant","error"]}),P=M.variant||E,I=Gr({},r,{variant:P,classes:i}),k=(e=>{const{classes:t}=e;return t})(I),D=Yr(k,Lh),T=d||{standard:ur.jsx(Nh,{ownerState:I}),outlined:ur.jsx(jh,{label:f,ownerState:I}),filled:ur.jsx(_h,{ownerState:I})}[P],O=vl(t,zl(T));return ur.jsx(x.Fragment,{children:x.cloneElement(T,Gr({inputComponent:A,inputProps:Gr({children:o,error:M.error,IconComponent:u,variant:P,type:void 0,multiple:g},b?{id:c}:{autoWidth:n,defaultOpen:s,displayEmpty:l,labelId:h,MenuProps:m,onClose:v,onOpen:y,open:S,renderValue:w,SelectDisplayProps:Gr({id:c},C)},p,{classes:p?ua(D,p.classes):D},d?d.props.inputProps:{})},(g&&b||l)&&"outlined"===P?{notched:!0}:{},{ref:O,className:Ps(T.props.className,a,k.root)},!d&&{variant:P},R))})});zh.muiName="Select";const Fh=x.createContext();function $h(e){return Ds("MuiTable",e)}Ts("MuiTable",["root","stickyHeader"]);const Hh=["className","component","padding","size","stickyHeader"],Bh=Pc("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>Gr({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Gr({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),Wh="table",Vh=x.forwardRef(function(e,t){const r=Tc({props:e,name:"MuiTable"}),{className:n,component:o=Wh,padding:i="normal",size:a="medium",stickyHeader:s=!1}=r,l=Yr(r,Hh),u=Gr({},r,{component:o,padding:i,size:a,stickyHeader:s}),c=(e=>{const{classes:t,stickyHeader:r}=e;return Ol({root:["root",r&&"stickyHeader"]},$h,t)})(u),d=x.useMemo(()=>({padding:i,size:a,stickyHeader:s}),[i,a,s]);return ur.jsx(Fh.Provider,{value:d,children:ur.jsx(Bh,Gr({as:o,role:o===Wh?null:"table",ref:t,className:Ps(c.root,n),ownerState:u},l))})}),Uh=x.createContext();function Gh(e){return Ds("MuiTableBody",e)}Ts("MuiTableBody",["root"]);const Yh=["className","component"],Kh=Pc("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Xh={variant:"body"},Jh="tbody",Zh=x.forwardRef(function(e,t){const r=Tc({props:e,name:"MuiTableBody"}),{className:n,component:o=Jh}=r,i=Yr(r,Yh),a=Gr({},r,{component:o}),s=(e=>{const{classes:t}=e;return Ol({root:["root"]},Gh,t)})(a);return ur.jsx(Uh.Provider,{value:Xh,children:ur.jsx(Kh,Gr({className:Ps(s.root,n),as:o,ref:t,role:o===Jh?null:"rowgroup",ownerState:a},i))})});function Qh(e){return Ds("MuiTableCell",e)}const em=Ts("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),tm=["align","className","component","padding","scope","size","sortDirection","variant"],rm=Pc("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ya(r.size)}`],"normal"!==r.padding&&t[`padding${ya(r.padding)}`],"inherit"!==r.align&&t[`align${ya(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>Gr({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?pu(uu(e.palette.divider,1),.88):cu(uu(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:(e.vars||e).palette.text.primary},"footer"===t.variant&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${em.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),nm=x.forwardRef(function(e,t){const r=Tc({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:i,padding:a,scope:s,size:l,sortDirection:u,variant:c}=r,d=Yr(r,tm),p=x.useContext(Fh),f=x.useContext(Uh),h=f&&"head"===f.variant;let m;m=i||(h?"th":"td");let g=s;"td"===m?g=void 0:!g&&h&&(g="col");const b=c||f&&f.variant,v=Gr({},r,{align:n,component:m,padding:a||(p&&p.padding?p.padding:"normal"),size:l||(p&&p.size?p.size:"medium"),sortDirection:u,stickyHeader:"head"===b&&p&&p.stickyHeader,variant:b}),y=(e=>{const{classes:t,variant:r,align:n,padding:o,size:i,stickyHeader:a}=e;return Ol({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${ya(n)}`,"normal"!==o&&`padding${ya(o)}`,`size${ya(i)}`]},Qh,t)})(v);let S=null;return u&&(S="asc"===u?"ascending":"descending"),ur.jsx(rm,Gr({as:m,ref:t,className:Ps(y.root,o),"aria-sort":S,scope:g,ownerState:v},d))});function om(e){return Ds("MuiTableContainer",e)}Ts("MuiTableContainer",["root"]);const im=["className","component"],am=Pc("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),sm=x.forwardRef(function(e,t){const r=Tc({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=Yr(r,im),a=Gr({},r,{component:o}),s=(e=>{const{classes:t}=e;return Ol({root:["root"]},om,t)})(a);return ur.jsx(am,Gr({ref:t,as:o,className:Ps(s.root,n),ownerState:a},i))});function lm(e){return Ds("MuiTableHead",e)}Ts("MuiTableHead",["root"]);const um=["className","component"],cm=Pc("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),dm={variant:"head"},pm="thead",fm=x.forwardRef(function(e,t){const r=Tc({props:e,name:"MuiTableHead"}),{className:n,component:o=pm}=r,i=Yr(r,um),a=Gr({},r,{component:o}),s=(e=>{const{classes:t}=e;return Ol({root:["root"]},lm,t)})(a);return ur.jsx(Uh.Provider,{value:dm,children:ur.jsx(cm,Gr({as:o,className:Ps(s.root,n),ref:t,role:o===pm?null:"rowgroup",ownerState:a},i))})});function hm(e){return Ds("MuiTableRow",e)}const mm=Ts("MuiTableRow",["root","selected","hover","head","footer"]),gm=["className","component","hover","selected"],bm=Pc("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${mm.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${mm.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:uu(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:uu(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),vm="tr",ym=x.forwardRef(function(e,t){const r=Tc({props:e,name:"MuiTableRow"}),{className:n,component:o=vm,hover:i=!1,selected:a=!1}=r,s=Yr(r,gm),l=x.useContext(Uh),u=Gr({},r,{component:o,hover:i,selected:a,head:l&&"head"===l.variant,footer:l&&"footer"===l.variant}),c=(e=>{const{classes:t,selected:r,hover:n,head:o,footer:i}=e;return Ol({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},hm,t)})(u);return ur.jsx(bm,Gr({as:o,ref:t,className:Ps(c.root,n),role:o===vm?null:"row",ownerState:u},s))});function xm(e){return ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:ur.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}function Sm({fontSize:e="medium",children:t=null,className:r=""}={}){return ur.jsx("i",{style:{fontSize:"small"===e?"16px":"20px",margin:"small"===e?"-2px 0":void 0,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r,children:t})}function wm(e={}){return ur.jsx(Sm,{...e,children:ur.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[ur.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),ur.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function Cm(e={}){return ur.jsx(Sm,{fontSize:"medium",...e,children:ur.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ur.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),ur.jsx("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"})]})})}function Em(e){return ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:ur.jsx("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345L9.345 8Z"})})}function Rm(e={}){return ur.jsx(Sm,{...e,children:ur.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:ur.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[ur.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),ur.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function Am(e={}){return ur.jsx(Sm,{fontSize:"medium",...e,children:ur.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:ur.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:ur.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function Mm({className:e}){return ur.jsx(Sm,{fontSize:"small",className:e,children:ur.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:ur.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:ur.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:ur.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[ur.jsx("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),ur.jsx("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})]})})})})})}function Pm(e={}){return ur.jsx(Sm,{...e,children:ur.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:ur.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:ur.jsx("rect",{stroke:$t.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}var Im=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:$t.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:$t.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:ur.jsx(xm,{"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 ${$t.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:$t.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${$t.MISC_FOCUS_BORDER}`,borderRadius:Ut,backgroundColor:$t.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 ${$t.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:$t.WHITE,color:$t.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:Ut},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${$t.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:$t.GREYSCALE_0_15,backgroundColor:$t.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:$t.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${$t.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:$t.GREEN_PALE},"&:active":{backgroundColor:$t.GREEN_DARK},"&.Mui-focusVisible":{borderColor:$t.GREEN_PALE,boxShadow:`0 0 0 3px ${sl($t.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:$t.BLUE_PALE},"&:active":{backgroundColor:$t.BLUE_DARK},"&.Mui-focusVisible":{borderColor:$t.BLUE_PALE,boxShadow:`0 0 0 3px ${sl($t.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:Ut,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:$t.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${$t.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:$t.GREYSCALE_0_42,backgroundColor:$t.GREYSCALE_100_60,"&:active":{backgroundColor:$t.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:$t.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${$t.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:$t.PURPLE,"&.Mui-focusVisible":{borderColor:$t.PURPLE,boxShadow:`0 0 0 3px ${sl($t.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:$t.GREEN,"&.Mui-focusVisible":{borderColor:$t.GREEN,boxShadow:`0 0 0 3px ${sl($t.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:$t.BLUE,"&.Mui-focusVisible":{borderColor:$t.BLUE,boxShadow:`0 0 0 3px ${sl($t.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:$t.ORANGE,"&.Mui-focusVisible":{borderColor:$t.ORANGE,boxShadow:`0 0 0 3px ${sl($t.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:$t.RED,"&.Mui-focusVisible":{borderColor:$t.RED,boxShadow:`0 0 0 3px ${sl($t.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:$t.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:$t.PURPLE_PALE},"&:active":{backgroundColor:$t.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:$t.PURPLE_PALE,boxShadow:`0 0 0 3px ${sl($t.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:$t.GREEN_PALE},"&:active":{backgroundColor:$t.GREEN_DARK},"&.Mui-focusVisible":{borderColor:$t.GREEN_PALE,boxShadow:`0 0 0 3px ${sl($t.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:$t.BLUE_PALE},"&:active":{backgroundColor:$t.BLUE_DARK},"&.Mui-focusVisible":{borderColor:$t.BLUE_PALE,boxShadow:`0 0 0 3px ${sl($t.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:$t.ORANGE_PALE},"&:active":{backgroundColor:$t.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:$t.ORANGE_PALE,boxShadow:`0 0 0 3px ${sl($t.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:$t.RED_PALE},"&:active":{backgroundColor:$t.RED_DARK},"&.Mui-focusVisible":{borderColor:$t.RED_PALE,boxShadow:`0 0 0 3px ${sl($t.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:$t.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:$t.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Ut,boxShadow:`inset 0 0 0 2px ${$t.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:ur.jsx(Em,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Ht,borderRadius:Ut,color:$t.TEXT_PRIMARY,backgroundColor:$t.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:$t.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${$t.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:$t.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:$t.GREYSCALE_0_05,color:$t.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:$t.GREEN,borderColor:$t.GREEN},"&.MuiChip-outlinedInfo":{color:$t.BLUE,borderColor:$t.BLUE},"&.MuiChip-outlinedWarning":{color:$t.ORANGE,borderColor:$t.ORANGE},"&.MuiChip-outlinedError":{color:$t.RED,borderColor:$t.RED}},outlined:{border:`solid 1px ${$t.GREYSCALE_0_15}`,backgroundColor:$t.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Ut,boxShadow:"none",backgroundColor:$t.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:$t.GREEN,borderColor:$t.GREEN},outlinedSecondary:{color:$t.BLUE,borderColor:$t.BLUE},label:{fontFamily:Jt.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:ur.jsx(Em,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:ur.jsx(xm,{"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:Ut},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Ut,fontSize:Bt,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:$t.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${$t.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:$t.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:$t.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:$t.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Ut,border:`solid 1px ${$t.GREYSCALE_0_15}`,color:$t.GREYSCALE_0_60,marginRight:0,width:Vt,height:Vt},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${$t.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Ut,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:$t.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Bt}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Ht,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:$t.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:$t.GREYSCALE_25,fontSize:Ht,fontFamily:Jt.FONT_FAMILY,fontWeight:Kt,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:$t.TEXT_PRIMARY},"&.Mui-error":{color:$t.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:$t.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Yt,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:$t.TEXT_SECONDARY,content:"'(required)'",fontWeight:Yt,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Bt,lineHeight:"16px",backgroundColor:$t.WHITE,borderRadius:Ut,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${$t.GREYSCALE_0_05}`,borderColor:$t.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${$t.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${$t.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${$t.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${$t.RED}`,boxShadow:`0px 0px 0px 1px ${$t.RED}, inset 0 2px 0 0 ${$t.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${$t.GREYSCALE_0_10}`,borderColor:$t.GREYSCALE_0_10,backgroundColor:$t.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:$t.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:$t.GREYSCALE_0_15,borderRadius:Ut,boxShadow:`inset 0 2px 0 0 ${$t.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>ur.jsx(xm,{...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:$t.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:$t.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:$t.GREYSCALE_0_03},"&:active":{backgroundColor:$t.GREYSCALE_0_10},"&:focus":{backgroundColor:$t.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${$t.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${$t.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:$t.GREYSCALE_0_30,"&:hover":{backgroundColor:$t.GREYSCALE_0_0,borderColor:$t.GREYSCALE_0_15},"& ~svg":{color:$t.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${$t.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Ut}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:$t.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${$t.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:$t.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Bt,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Ht,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Ht,fontWeight:Kt,color:$t.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Kt}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${$t.GREYSCALE_0_15}, 0px 0px 0px 1px ${$t.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:ur.jsx(Am,{}),checkedIcon:ur.jsx(Cm,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:$t.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${$t.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:$t.GREEN_PALE,boxShadow:`0 0 0 3px ${sl($t.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:$t.BLUE_PALE,boxShadow:`0 0 0 3px ${sl($t.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:$t.GREYSCALE_0_20}},"&.Mui-disabled":{fill:$t.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:ur.jsx(Pm,{}),checkedIcon:ur.jsx(wm,{}),indeterminateIcon:ur.jsx(Rm,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Ut,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:$t.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:$t.GREYSCALE_0_55,color:$t.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:$t.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:$t.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:$t.GREYSCALE_0_55,"&:hover":{color:$t.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:$t.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:$t.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Bt,color:$t.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Kt},secondary:{fontSize:Ht,color:$t.GREYSCALE_45,fontWeight:Yt,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Bt,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Bt,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:$t.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Ht,borderBottom:`solid 1px ${$t.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Bt,color:$t.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:$t.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:$t.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:$t.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:'url(\'data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg width="8px" height="7px" viewBox="0 0 8 7" version="1.1"%0A xmlns="http://www.w3.org/2000/svg"%0A xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="Tick">%0A <g stroke="none" stroke-width="1" fill-rule="evenodd">%0A <g transform="translate(0.000000, -1.000000)">%0A <path d="M7.51662484,1.29325 C7.12545778,0.90225 6.49218732,0.90225 6.10202068,1.29325 L2.73658335,4.65725 L1.90722914,3.82925 C1.5170625,3.43825 0.883792042,3.43825 0.492624979,3.82925 C0.102458344,4.21925 0.102458344,4.85225 0.492624979,5.24325 L2.02928127,6.77825 C2.4194479,7.16925 3.05271836,7.16925 3.44388542,6.77825 L7.51662484,2.70725 C7.9077919,2.31725 7.9077919,1.68425 7.51662484,1.29325"></path>%0A </g>%0A </g>%0A</svg>%0A\')',fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:$t.RED}}},"&.Mui-focusVisible":{backgroundColor:$t.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:$t.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:$t.GREEN,height:"24px","&.Mui-disabled":{color:$t.GREYSCALE_0_15}},rail:{backgroundColor:$t.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${$t.GREYSCALE_0_05}`,borderRadius:Ut,boxShadow:`inset 0px 0px 0px 1px ${$t.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${$t.GREYSCALE_0_05}`,borderRadius:Ut},thumb:{height:"16px",width:"16px",borderRadius:Ut,backgroundColor:$t.WHITE,boxShadow:`0px 1px 2px 0px ${$t.GREYSCALE_0_15}, 0px 0px 0px 1px ${$t.GREYSCALE_0_05}`,"&:hover":{borderRadius:Ut,boxShadow:`0 2px 4px 0 ${$t.GREYSCALE_0_30}, 0 0 0 1px ${$t.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${$t.GREYSCALE_0_15}, 0 0 0 1px ${$t.GREYSCALE_0_06}, 0 0 0 2px ${$t.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${$t.GREYSCALE_0_15}, 0 0 0 1px ${$t.GREYSCALE_0_06}, 0 0 0 2px ${$t.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:$t.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:$t.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:$t.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:$t.GREYSCALE_0_15},markLabel:{color:$t.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:$t.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:$t.WHITE,color:$t.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:$t.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:$t.GREEN_PALE,boxShadow:`0 0 0 3px ${sl($t.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:$t.BLUE_PALE,boxShadow:`0 0 0 3px ${sl($t.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:$t.GREYSCALE_0_15,borderRadius:Ut},thumb:{height:"16px",width:"16px",borderRadius:Ut,backgroundColor:$t.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:Bt,fontWeight:Kt,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${$t.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${$t.MISC_FOCUS_BORDER}`,backgroundColor:$t.GREYSCALE_0_03,borderRadius:Ut},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:$t.GREYSCALE_25,"&.Mui-selected":{color:$t.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Bt,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:Ut,"&:hover":{backgroundColor:$t.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 ${$t.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${$t.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:Ut,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:$t.GREYSCALE_0_05},"&:hover":{backgroundColor:$t.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${$t.GREYSCALE_85}`,borderRight:`1px solid ${$t.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Kt,backgroundColor:$t.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:$t.GREYSCALE_98,borderBottom:`1px solid ${$t.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${$t.GREYSCALE_85}`,borderTop:`1px solid ${$t.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:$t.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:$t.GREYSCALE_0_05,"&:hover":{backgroundColor:$t.GREYSCALE_0_03}},"&&:hover":{backgroundColor:$t.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>ur.jsx(Mm,{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 ${$t.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Bt,borderRadius:Ut,padding:"7px 16px",border:`1px solid ${$t.GREYSCALE_0_15}`,backgroundColor:$t.GREYSCALE_100_60,color:$t.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:$t.GREYSCALE_0_10,border:`1px solid ${$t.GREYSCALE_0_30}`},"&:hover":{backgroundColor:$t.GREYSCALE_0_03,border:`1px solid ${$t.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:$t.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${$t.MISC_FOCUS_BORDER}`,border:`1px solid ${$t.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:$t.GREYSCALE_25,backgroundColor:$t.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:$t.GREYSCALE_0_10,border:`1px solid ${$t.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Ht,height:24,width:24,padding:7},sizeLarge:{fontSize:Wt,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Bt,borderRadius:Ut}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0,enterNextDelay:300,enterDelay:400},styleOverrides:{arrow:{color:$t.GREYSCALE_20},tooltip:{backgroundColor:$t.GREYSCALE_20,fontSize:Ht,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}});const km=e=>({mode:"light",primary:{ultraLight:$t.GREEN_ULTRA_LIGHT,light:$t.GREEN_PALE,main:$t.GREEN,dark:$t.GREEN_DARK,extraDark:$t.GREEN_EXTRA_DARK,contrastText:$t.WHITE},secondary:{ultraLight:$t.BLUE_ULTRA_LIGHT,light:$t.BLUE_PALE,main:$t.BLUE,dark:$t.BLUE_DARK,extraDark:$t.BLUE_EXTRA_DARK,contrastText:$t.WHITE},error:{ultraLight:$t.RED_ULTRA_LIGHT,light:$t.RED_PALE,main:$t.RED,dark:$t.RED_DARK,extraDark:$t.RED_EXTRA_DARK,contrastText:$t.WHITE},warning:{ultraLight:$t.ORANGE_ULTRA_LIGHT,light:$t.ORANGE_PALE,main:$t.ORANGE,dark:$t.ORANGE_DARK,extraDark:$t.ORANGE_EXTRA_DARK,contrastText:$t.WHITE},success:{ultraLight:$t.GREEN_ULTRA_LIGHT,light:$t.GREEN_PALE,main:$t.GREEN,dark:$t.GREEN_DARK,extraDark:$t.GREEN_EXTRA_DARK,contrastText:$t.WHITE},info:{ultraLight:$t.BLUE_ULTRA_LIGHT,light:$t.BLUE_PALE,main:$t.BLUE,dark:$t.BLUE_DARK,extraDark:$t.BLUE_EXTRA_DARK,contrastText:$t.WHITE},text:{primary:$t.TEXT_PRIMARY,secondary:$t.TEXT_SECONDARY,disabled:$t.GREYSCALE_0_30},action:{hover:$t.GREYSCALE_0_03,hoverOpacity:.03,selected:$t.GREYSCALE_0_05,selectedOpacity:.05,focus:$t.MISC_FOCUS_BORDER},amethyst:{ultraLight:$t.WHITE,main:$t.PURPLE,light:$t.PURPLE_PALE,dark:$t.PURPLE_DARK,extraDark:$t.GREYSCALE_0_0,contrastText:$t.WHITE},background:{paper:$t.WHITE,default:$t.GREYSCALE_95},divider:$t.GREYSCALE_0_15}),Dm={...Ft};var Tm={},Om={exports:{}},Lm={exports:{}};!function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Lm);var qm=Lm.exports;!function(e){var t=qm.default;function r(n,o){if("function"==typeof WeakMap)var i=new WeakMap,a=new WeakMap;return(e.exports=r=function(e,r){if(!r&&e&&e.__esModule)return e;var n,o,s={__proto__:null,default:e};if(null===e||"object"!=t(e)&&"function"!=typeof e)return s;if(n=r?a:i){if(n.has(e))return n.get(e);n.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?n(s,l,o):s[l]=e[l]);return s},e.exports.__esModule=!0,e.exports.default=e.exports)(n,o)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(Om);var Nm=Om.exports,jm={};function _m(e,t){return function(){return null}}function zm(e){return e&&"object"===Ql(e)&&e.constructor===Object}function Fm(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},n=r.clone?Gr({},e):e;return zm(e)&&zm(t)&&Object.keys(t).forEach(function(o){"__proto__"!==o&&(zm(t[o])&&o in e?n[o]=Fm(e[o],t[o],r):n[o]=t[o])}),n}var $m=(ea.element,function(){return null});$m.isRequired=(ea.element.isRequired,function(){return null});var Hm=function(){return null};var Bm={exports:{}},Wm={},Vm=60103,Um=60106,Gm=60107,Ym=60108,Km=60114,Xm=60109,Jm=60110,Zm=60112,Qm=60113,eg=60120,tg=60115,rg=60116,ng=60121,og=60122,ig=60117,ag=60129,sg=60131;if("function"==typeof Symbol&&Symbol.for){var lg=Symbol.for;Vm=lg("react.element"),Um=lg("react.portal"),Gm=lg("react.fragment"),Ym=lg("react.strict_mode"),Km=lg("react.profiler"),Xm=lg("react.provider"),Jm=lg("react.context"),Zm=lg("react.forward_ref"),Qm=lg("react.suspense"),eg=lg("react.suspense_list"),tg=lg("react.memo"),rg=lg("react.lazy"),ng=lg("react.block"),og=lg("react.server.block"),ig=lg("react.fundamental"),ag=lg("react.debug_trace_mode"),sg=lg("react.legacy_hidden")}function ug(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Vm:switch(e=e.type){case Gm:case Km:case Ym:case Qm:case eg:return e;default:switch(e=e&&e.$$typeof){case Jm:case Zm:case rg:case tg:case Xm:return e;default:return t}}case Um:return t}}}var cg=Xm,dg=Vm,pg=Zm,fg=Gm,hg=rg,mg=tg,gg=Um,bg=Km,vg=Ym,yg=Qm;Wm.ContextConsumer=Jm,Wm.ContextProvider=cg,Wm.Element=dg,Wm.ForwardRef=pg,Wm.Fragment=fg,Wm.Lazy=hg,Wm.Memo=mg,Wm.Portal=gg,Wm.Profiler=bg,Wm.StrictMode=vg,Wm.Suspense=yg,Wm.isAsyncMode=function(){return!1},Wm.isConcurrentMode=function(){return!1},Wm.isContextConsumer=function(e){return ug(e)===Jm},Wm.isContextProvider=function(e){return ug(e)===Xm},Wm.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Vm},Wm.isForwardRef=function(e){return ug(e)===Zm},Wm.isFragment=function(e){return ug(e)===Gm},Wm.isLazy=function(e){return ug(e)===rg},Wm.isMemo=function(e){return ug(e)===tg},Wm.isPortal=function(e){return ug(e)===Um},Wm.isProfiler=function(e){return ug(e)===Km},Wm.isStrictMode=function(e){return ug(e)===Ym},Wm.isSuspense=function(e){return ug(e)===Qm},Wm.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Gm||e===Km||e===ag||e===Ym||e===Qm||e===eg||e===sg||"object"==typeof e&&null!==e&&(e.$$typeof===rg||e.$$typeof===tg||e.$$typeof===Xm||e.$$typeof===Jm||e.$$typeof===Zm||e.$$typeof===ig||e.$$typeof===ng||e[0]===og)},Wm.typeOf=ug,Bm.exports=Wm;var xg=Bm.exports,Sg=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function wg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(Sg);return t&&t[1]||""}(e)||t}function Cg(e,t,r){var n=wg(t);return e.displayName||(""!==n?"".concat(r,"(").concat(n,")"):r)}var Eg="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),Rg=ea.oneOfType([ea.func,ea.object]),Ag=Object.freeze({__proto__:null,HTMLElementType:function(e,t,r,n,o){return null},chainPropTypes:_m,deepmerge:Fm,elementAcceptingRef:$m,elementTypeAcceptingRef:Hm,exactProp:function(e){return e},formatMuiErrorMessage:function(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."},getDisplayName:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return wg(e,"Component");if("object"===Ql(e))switch(e.$$typeof){case xg.ForwardRef:return Cg(e,e.render,"ForwardRef");case xg.Memo:return Cg(e,e.type,"memo");default:return}}},ponyfillGlobal:Eg,refType:Rg}),Mg=Qt(Ag);Object.defineProperty(jm,"__esModule",{value:!0}),jm.hexToRgb=kg,jm.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=Tg(e),r=t.values;return"#".concat(r.map(function(e){return function(e){var t=e.toString(16);return 1===t.length?"0".concat(t):t}(e)}).join(""))},jm.hslToRgb=Dg,jm.decomposeColor=Tg,jm.recomposeColor=Og,jm.getContrastRatio=function(e,t){var r=Lg(e),n=Lg(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},jm.getLuminance=Lg,jm.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return Lg(e)>.5?Ng(e,t):jg(e,t)},jm.fade=function(e,t){return qg(e,t)},jm.alpha=qg,jm.darken=Ng,jm.lighten=jg;var Pg=Mg;function Ig(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}function kg(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map(function(e){return e+e})),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map(function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3}).join(", "),")"):""}function Dg(e){var t=(e=Tg(e)).values,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+r/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),Og({type:s,values:l})}function Tg(e){if(e.type)return e;if("#"===e.charAt(0))return Tg(kg(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error((0,Pg.formatMuiErrorMessage)(3,e));var n=e.substring(t+1,e.length-1).split(",");return{type:r,values:n=n.map(function(e){return parseFloat(e)})}}function Og(e){var t=e.type,r=e.values;return-1!==t.indexOf("rgb")?r=r.map(function(e,t){return t<3?parseInt(e,10):e}):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}function Lg(e){var t="hsl"===(e=Tg(e)).type?Tg(Dg(e)).values:e.values;return t=t.map(function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function qg(e,t){return e=Tg(e),t=Ig(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,Og(e)}function Ng(e,t){if(e=Tg(e),t=Ig(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]*=1-t;return Og(e)}function jg(e,t){if(e=Tg(e),t=Ig(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;return Og(e)}var _g,zg,Fg,$g={},Hg={exports:{}},Bg={exports:{}},Wg={exports:{}};function Vg(){return _g||(_g=1,function(e){var t=qm.default;e.exports=function(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(Wg)),Wg.exports}function Ug(){return zg||(zg=1,function(e){var t=qm.default,r=Vg();e.exports=function(e){var n=r(e,"string");return"symbol"==t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports}(Bg)),Bg.exports}function Gg(){return Fg||(Fg=1,function(e){var t=Ug();e.exports=function(e,r,n){return(r=t(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports}(Hg)),Hg.exports}var Yg,Kg={exports:{}};function Xg(){return Yg||(Yg=1,function(e){var t=ec();e.exports=function(e,r){if(null==e)return{};var n,o,i=t(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],-1===r.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports}(Kg)),Kg.exports}var Jg,Zg={};var Qg,eb={};var tb,rb={},nb={};var ob,ib={};var ab,sb={};var lb,ub={};var cb,db={};var pb,fb={};var hb,mb={};var gb,bb,vb={};function yb(){if(bb)return rb;bb=1;var e=iu;Object.defineProperty(rb,"__esModule",{value:!0}),rb.default=function(e){var g=e.primary,b=void 0===g?{light:a.default[300],main:a.default[500],dark:a.default[700]}:g,v=e.secondary,y=void 0===v?{light:s.default.A200,main:s.default.A400,dark:s.default.A700}:v,x=e.error,S=void 0===x?{light:l.default[300],main:l.default[500],dark:l.default[700]}:x,w=e.warning,C=void 0===w?{light:u.default[300],main:u.default[500],dark:u.default[700]}:w,E=e.info,R=void 0===E?{light:c.default[300],main:c.default[500],dark:c.default[700]}:E,A=e.success,M=void 0===A?{light:d.default[300],main:d.default[500],dark:d.default[700]}:A,P=e.type,I=void 0===P?"light":P,k=e.contrastThreshold,D=void 0===k?3:k,T=e.tonalOffset,O=void 0===T?.2:T,L=(0,r.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function q(e){return(0,p.getContrastRatio)(e,h.text.primary)>=D?h.text.primary:f.text.primary}var N=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,t.default)({},e)).main&&e[r]&&(e.main=e[r]),!e.main)throw new Error((0,n.formatMuiErrorMessage)(4,r));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return m(e,"light",o,O),m(e,"dark",i,O),e.contrastText||(e.contrastText=q(e.main)),e},j={dark:h,light:f},_=(0,n.deepmerge)((0,t.default)({common:o.default,type:I,primary:N(b),secondary:N(y,"A400","A200","A700"),error:N(S),warning:N(C),info:N(R),success:N(M),grey:i.default,contrastThreshold:D,getContrastText:q,augmentColor:N,tonalOffset:O},j[I]),L);return _},rb.dark=rb.light=void 0;var t=e(Ju()),r=e(Xg()),n=Mg,o=e(function(){if(tb)return nb;tb=1,Object.defineProperty(nb,"__esModule",{value:!0}),nb.default=void 0;var e={black:"#000",white:"#fff"};return nb.default=e,nb}()),i=e(function(){if(ob)return ib;ob=1,Object.defineProperty(ib,"__esModule",{value:!0}),ib.default=void 0;var e={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};return ib.default=e,ib}()),a=e(function(){if(ab)return sb;ab=1,Object.defineProperty(sb,"__esModule",{value:!0}),sb.default=void 0;var e={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};return sb.default=e,sb}()),s=e(function(){if(lb)return ub;lb=1,Object.defineProperty(ub,"__esModule",{value:!0}),ub.default=void 0;var e={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};return ub.default=e,ub}()),l=e(function(){if(cb)return db;cb=1,Object.defineProperty(db,"__esModule",{value:!0}),db.default=void 0;var e={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};return db.default=e,db}()),u=e(function(){if(pb)return fb;pb=1,Object.defineProperty(fb,"__esModule",{value:!0}),fb.default=void 0;var e={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};return fb.default=e,fb}()),c=e(function(){if(hb)return mb;hb=1,Object.defineProperty(mb,"__esModule",{value:!0}),mb.default=void 0;var e={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};return mb.default=e,mb}()),d=e(function(){if(gb)return vb;gb=1,Object.defineProperty(vb,"__esModule",{value:!0}),vb.default=void 0;var e={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};return vb.default=e,vb}()),p=jm,f={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:o.default.white,default:i.default[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}};rb.light=f;var h={text:{primary:o.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:i.default[800],default:"#303030"},action:{active:o.default.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function m(e,t,r,n){var o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,p.lighten)(e.main,o):"dark"===t&&(e.dark=(0,p.darken)(e.main,i)))}return rb.dark=h,rb}var xb,Sb={};var wb,Cb={};var Eb,Rb={};var Ab={};function Mb(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Pb(e,t){if(e){if("string"==typeof e)return Mb(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Mb(e,t):void 0}}function Ib(e){return function(e){if(Array.isArray(e))return Mb(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Pb(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kb(e,t){return t?Fm(e,t,{clone:!1}):e}var Db={xs:0,sm:600,md:960,lg:1280,xl:1920},Tb={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(Db[e],"px)")}};function Ob(e,t,r){if(Array.isArray(t)){var n=e.theme.breakpoints||Tb;return t.reduce(function(e,o,i){return e[n.up(n.keys[i])]=r(t[i]),e},{})}if("object"===Ql(t)){var o=e.theme.breakpoints||Tb;return Object.keys(t).reduce(function(e,n){return e[o.up(n)]=r(t[n]),e},{})}return r(t)}function Lb(e,t){return t&&"string"==typeof t?t.split(".").reduce(function(e,t){return e&&e[t]?e[t]:null},e):null}function qb(e){var t=e.prop,r=e.cssProperty,n=void 0===r?e.prop:r,o=e.themeKey,i=e.transform,a=function(e){if(null==e[t])return null;var r=e[t],a=Lb(e.theme,o)||{};return Ob(e,r,function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=Lb(a,e)||e,i&&(t=i(t))),!1===n?t:function(e,t,r){return(t=eu(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},n,t)})};return a.propTypes={},a.filterProps=[t],a}function Nb(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=function(e){return t.reduce(function(t,r){var n=r(e);return n?kb(t,n):t},{})};return n.propTypes={},n.filterProps=t.reduce(function(e,t){return e.concat(t.filterProps)},[]),n}function jb(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var _b=qb({prop:"border",themeKey:"borders",transform:jb}),zb=qb({prop:"borderTop",themeKey:"borders",transform:jb}),Fb=qb({prop:"borderRight",themeKey:"borders",transform:jb}),$b=qb({prop:"borderBottom",themeKey:"borders",transform:jb}),Hb=qb({prop:"borderLeft",themeKey:"borders",transform:jb}),Bb=qb({prop:"borderColor",themeKey:"palette"}),Wb=qb({prop:"borderRadius",themeKey:"shape"}),Vb=Nb(_b,zb,Fb,$b,Hb,Bb,Wb);function Ub(e,t){var r={};return Object.keys(e).forEach(function(n){-1===t.indexOf(n)&&(r[n]=e[n])}),r}function Gb(e){var t=function(t){var r=e(t);return t.css?Gr({},kb(r,e(Gr({theme:t.theme},t.css))),Ub(t.css,[e.filterProps])):t.sx?Gr({},kb(r,e(Gr({theme:t.theme},t.sx))),Ub(t.sx,[e.filterProps])):r};return t.propTypes={},t.filterProps=["css","sx"].concat(Ib(e.filterProps)),t}var Yb=Nb(qb({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),qb({prop:"display"}),qb({prop:"overflow"}),qb({prop:"textOverflow"}),qb({prop:"visibility"}),qb({prop:"whiteSpace"})),Kb=qb({prop:"flexBasis"}),Xb=qb({prop:"flexDirection"}),Jb=qb({prop:"flexWrap"}),Zb=qb({prop:"justifyContent"}),Qb=qb({prop:"alignItems"}),ev=qb({prop:"alignContent"}),tv=qb({prop:"order"}),rv=qb({prop:"flex"}),nv=qb({prop:"flexGrow"}),ov=qb({prop:"flexShrink"}),iv=qb({prop:"alignSelf"}),av=qb({prop:"justifyItems"}),sv=qb({prop:"justifySelf"}),lv=Nb(Kb,Xb,Jb,Zb,Qb,ev,tv,rv,nv,ov,iv,av,sv),uv=qb({prop:"gridGap"}),cv=qb({prop:"gridColumnGap"}),dv=qb({prop:"gridRowGap"}),pv=qb({prop:"gridColumn"}),fv=qb({prop:"gridRow"}),hv=qb({prop:"gridAutoFlow"}),mv=qb({prop:"gridAutoColumns"}),gv=qb({prop:"gridAutoRows"}),bv=qb({prop:"gridTemplateColumns"}),vv=qb({prop:"gridTemplateRows"}),yv=qb({prop:"gridTemplateAreas"}),xv=qb({prop:"gridArea"}),Sv=Nb(uv,cv,dv,pv,fv,hv,mv,gv,bv,vv,yv,xv),wv=qb({prop:"color",themeKey:"palette"}),Cv=qb({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),Ev=Nb(wv,Cv),Rv=qb({prop:"position"}),Av=qb({prop:"zIndex",themeKey:"zIndex"}),Mv=qb({prop:"top"}),Pv=qb({prop:"right"}),Iv=qb({prop:"bottom"}),kv=qb({prop:"left"}),Dv=Nb(Rv,Av,Mv,Pv,Iv,kv),Tv=qb({prop:"boxShadow",themeKey:"shadows"});function Ov(e){return e<=1?"".concat(100*e,"%"):e}var Lv=qb({prop:"width",transform:Ov}),qv=qb({prop:"maxWidth",transform:Ov}),Nv=qb({prop:"minWidth",transform:Ov}),jv=qb({prop:"height",transform:Ov}),_v=qb({prop:"maxHeight",transform:Ov}),zv=qb({prop:"minHeight",transform:Ov}),Fv=qb({prop:"size",cssProperty:"width",transform:Ov}),$v=qb({prop:"size",cssProperty:"height",transform:Ov}),Hv=qb({prop:"boxSizing"}),Bv=Nb(Lv,qv,Nv,jv,_v,zv,Hv);function Wv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||Pb(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.")}()}var Vv={m:"margin",p:"padding"},Uv={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Gv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Yv=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}(function(e){if(e.length>2){if(!Gv[e])return[e];e=Gv[e]}var t=Wv(e.split(""),2),r=t[0],n=t[1],o=Vv[r],i=Uv[n]||"";return Array.isArray(i)?i.map(function(e){return o+e}):[o+i]}),Kv=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function Xv(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function Jv(e,t){return function(r){return e.reduce(function(e,n){return e[n]=function(e,t){if("string"==typeof t||null==t)return t;var r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:"-".concat(r)}(t,r),e},{})}}function Zv(e){var t=Xv(e.theme);return Object.keys(e).map(function(r){if(-1===Kv.indexOf(r))return null;var n=Jv(Yv(r),t),o=e[r];return Ob(e,o,n)}).reduce(kb,{})}Zv.propTypes={},Zv.filterProps=Kv;var Qv,ey=qb({prop:"fontFamily",themeKey:"typography"}),ty=qb({prop:"fontSize",themeKey:"typography"}),ry=qb({prop:"fontStyle",themeKey:"typography"}),ny=qb({prop:"fontWeight",themeKey:"typography"}),oy=qb({prop:"letterSpacing"}),iy=qb({prop:"lineHeight"}),ay=qb({prop:"textAlign"}),sy=Nb(ey,ty,ry,ny,oy,iy,ay),ly=Object.freeze({__proto__:null,alignContent:ev,alignItems:Qb,alignSelf:iv,bgcolor:Cv,border:_b,borderBottom:$b,borderColor:Bb,borderLeft:Hb,borderRadius:Wb,borderRight:Fb,borderTop:zb,borders:Vb,bottom:Iv,boxSizing:Hv,breakpoints:function(e){var t=function(t){var r=e(t),n=t.theme.breakpoints||Tb,o=n.keys.reduce(function(r,o){return t[o]&&((r=r||{})[n.up(o)]=e(Gr({theme:t.theme},t[o]))),r},null);return kb(r,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(Ib(e.filterProps)),t},color:wv,compose:Nb,createUnarySpacing:Xv,css:function(e){return Gb(e)},display:Yb,flex:rv,flexBasis:Kb,flexDirection:Xb,flexGrow:nv,flexShrink:ov,flexWrap:Jb,flexbox:lv,fontFamily:ey,fontSize:ty,fontStyle:ry,fontWeight:ny,grid:Sv,gridArea:xv,gridAutoColumns:mv,gridAutoFlow:hv,gridAutoRows:gv,gridColumn:pv,gridColumnGap:cv,gridGap:uv,gridRow:fv,gridRowGap:dv,gridTemplateAreas:yv,gridTemplateColumns:bv,gridTemplateRows:vv,height:jv,justifyContent:Zb,justifyItems:av,justifySelf:sv,left:kv,letterSpacing:oy,lineHeight:iy,maxHeight:_v,maxWidth:qv,minHeight:zv,minWidth:Nv,order:tv,palette:Ev,position:Rv,positions:Dv,right:Pv,shadows:Tv,sizeHeight:$v,sizeWidth:Fv,sizing:Bv,spacing:Zv,style:qb,styleFunctionSx:Gb,textAlign:ay,top:Mv,typography:sy,width:Lv,zIndex:Av}),uy=Qt(ly);var cy,dy={};function py(){if(cy)return dy;cy=1;var e=iu;Object.defineProperty(dy,"__esModule",{value:!0}),dy.default=dy.duration=dy.easing=void 0;var t=e(Xg()),r={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"};dy.easing=r;var n={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function o(e){return"".concat(Math.round(e),"ms")}dy.duration=n;var i={easing:r,duration:n,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.duration,s=void 0===a?n.standard:a,l=i.easing,u=void 0===l?r.easeInOut:l,c=i.delay,d=void 0===c?0:c;return(0,t.default)(i,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map(function(e){return"".concat(e," ").concat("string"==typeof s?s:o(s)," ").concat(u," ").concat("string"==typeof d?d:o(d))}).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};return dy.default=i,dy}var fy,hy,my={};function gy(){if(hy)return $g;hy=1;var e=iu;Object.defineProperty($g,"__esModule",{value:!0}),$g.createMuiTheme=function(){return p.apply(void 0,arguments)},$g.default=void 0,e(Gg());var t=e(Xg()),r=Mg,n=e(function(){if(Jg)return Zg;Jg=1;var e=iu;Object.defineProperty(Zg,"__esModule",{value:!0}),Zg.default=function(e){var o=e.values,i=void 0===o?{xs:0,sm:600,md:960,lg:1280,xl:1920}:o,a=e.unit,s=void 0===a?"px":a,l=e.step,u=void 0===l?5:l,c=(0,r.default)(e,["values","unit","step"]);function d(e){var t="number"==typeof i[e]?i[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function p(e,t){var r=n.indexOf(t);return r===n.length-1?d(e):"@media (min-width:".concat("number"==typeof i[e]?i[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof i[n[r+1]]?i[n[r+1]]:t)-u/100).concat(s,")")}return(0,t.default)({keys:n,values:i,up:d,down:function(e){var t=n.indexOf(e)+1,r=i[n[t]];return t===n.length?d("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-u/100).concat(s,")")},between:p,only:function(e){return p(e,e)},width:function(e){return i[e]}},c)},Zg.keys=void 0;var t=e(Ju()),r=e(Xg()),n=["xs","sm","md","lg","xl"];return Zg.keys=n,Zg}()),o=e(function(){if(Qg)return eb;Qg=1;var e=iu;Object.defineProperty(eb,"__esModule",{value:!0}),eb.default=function(e,n,o){var i;return(0,r.default)({gutters:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,r.default)({paddingLeft:n(2),paddingRight:n(2)},o,(0,t.default)({},e.up("sm"),(0,r.default)({paddingLeft:n(3),paddingRight:n(3)},o[e.up("sm")])))},toolbar:(i={minHeight:56},(0,t.default)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,t.default)(i,e.up("sm"),{minHeight:64}),i)},o)};var t=e(Gg()),r=e(Ju());return eb}()),i=e(yb()),a=e(function(){if(xb)return Sb;xb=1;var e=iu;Object.defineProperty(Sb,"__esModule",{value:!0}),Sb.default=function(e,l){var u="function"==typeof l?l(e):l,c=u.fontFamily,d=void 0===c?s:c,p=u.fontSize,f=void 0===p?14:p,h=u.fontWeightLight,m=void 0===h?300:h,g=u.fontWeightRegular,b=void 0===g?400:g,v=u.fontWeightMedium,y=void 0===v?500:v,x=u.fontWeightBold,S=void 0===x?700:x,w=u.htmlFontSize,C=void 0===w?16:w,E=u.allVariants,R=u.pxToRem,A=(0,r.default)(u,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),M=f/14,P=R||function(e){return"".concat(e/C*M,"rem")},I=function(e,r,n,i,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:P(r),lineHeight:n},d===s?{letterSpacing:"".concat(o(i/r),"em")}:{},a,E)},k={h1:I(m,96,1.167,-1.5),h2:I(m,60,1.2,-.5),h3:I(b,48,1.167,0),h4:I(b,34,1.235,.25),h5:I(b,24,1.334,0),h6:I(y,20,1.6,.15),subtitle1:I(b,16,1.75,.15),subtitle2:I(y,14,1.57,.1),body1:I(b,16,1.5,.15),body2:I(b,14,1.43,.15),button:I(y,14,1.75,.4,a),caption:I(b,12,1.66,.4),overline:I(b,12,2.66,1,a)};return(0,n.deepmerge)((0,t.default)({htmlFontSize:C,pxToRem:P,round:i,fontFamily:d,fontSize:f,fontWeightLight:m,fontWeightRegular:b,fontWeightMedium:y,fontWeightBold:S},k),A,{clone:!1})};var t=e(Ju()),r=e(Xg()),n=Mg;function o(e){return Math.round(1e5*e)/1e5}function i(e){return o(e)}var a={textTransform:"uppercase"},s='"Roboto", "Helvetica", "Arial", sans-serif';return Sb}()),s=e(function(){if(wb)return Cb;function e(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}wb=1,Object.defineProperty(Cb,"__esModule",{value:!0}),Cb.default=void 0;var t=["none",e(0,2,1,-1,0,1,1,0,0,1,3,0),e(0,3,1,-2,0,2,2,0,0,1,5,0),e(0,3,3,-2,0,3,4,0,0,1,8,0),e(0,2,4,-1,0,4,5,0,0,1,10,0),e(0,3,5,-1,0,5,8,0,0,1,14,0),e(0,3,5,-1,0,6,10,0,0,1,18,0),e(0,4,5,-2,0,7,10,1,0,2,16,1),e(0,5,5,-3,0,8,10,1,0,3,14,2),e(0,5,6,-3,0,9,12,1,0,3,16,2),e(0,6,6,-3,0,10,14,1,0,4,18,3),e(0,6,7,-4,0,11,15,1,0,4,20,3),e(0,7,8,-4,0,12,17,2,0,5,22,4),e(0,7,8,-4,0,13,19,2,0,5,24,4),e(0,7,9,-4,0,14,21,2,0,5,26,4),e(0,8,9,-5,0,15,22,2,0,6,28,5),e(0,8,10,-5,0,16,24,2,0,6,30,5),e(0,8,11,-5,0,17,26,2,0,6,32,5),e(0,9,11,-5,0,18,28,2,0,7,34,6),e(0,9,12,-6,0,19,29,2,0,7,36,6),e(0,10,13,-6,0,20,31,3,0,8,38,7),e(0,10,13,-6,0,21,33,3,0,8,40,7),e(0,10,14,-6,0,22,35,3,0,8,42,7),e(0,11,14,-7,0,23,36,3,0,9,44,8),e(0,11,15,-7,0,24,38,3,0,9,46,8)];return Cb.default=t,Cb}()),l=e(function(){if(Eb)return Rb;Eb=1,Object.defineProperty(Rb,"__esModule",{value:!0}),Rb.default=void 0;var e={borderRadius:4};return Rb.default=e,Rb}()),u=e(function(){if(Qv)return Ab;Qv=1,Object.defineProperty(Ab,"__esModule",{value:!0}),Ab.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var r=(0,e.createUnarySpacing)({spacing:t}),n=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?r(1):1===t.length?r(t[0]):t.map(function(e){if("string"==typeof e)return e;var t=r(e);return"number"==typeof t?"".concat(t,"px"):t}).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return t}}),n.mui=!0,n};var e=uy;return Ab}()),c=e(py()),d=e(function(){if(fy)return my;fy=1,Object.defineProperty(my,"__esModule",{value:!0}),my.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return my.default=e,my}());function p(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=e.breakpoints,f=void 0===p?{}:p,h=e.mixins,m=void 0===h?{}:h,g=e.palette,b=void 0===g?{}:g,v=e.spacing,y=e.typography,x=void 0===y?{}:y,S=(0,t.default)(e,["breakpoints","mixins","palette","spacing","typography"]),w=(0,i.default)(b),C=(0,n.default)(f),E=(0,u.default)(v),R=(0,r.deepmerge)({breakpoints:C,direction:"ltr",mixins:(0,o.default)(C,E,m),overrides:{},palette:w,props:{},shadows:s.default,typography:(0,a.default)(w,x),spacing:E,shape:l.default,transitions:c.default,zIndex:d.default},S),A=arguments.length,M=new Array(A>1?A-1:0),P=1;P<A;P++)M[P-1]=arguments[P];return R=M.reduce(function(e,t){return(0,r.deepmerge)(e,t)},R)}var f=p;return $g.default=f,$g}var by,vy={};var yy={},xy="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",Sy=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function wy(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,r=void 0!==t&&t,n=e.productionPrefix,o=void 0===n?"jss":n,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0,u=function(){return l+=1};return function(e,t){var n=t.options.name;if(n&&0===n.indexOf("Mui")&&!t.options.link&&!r){if(-1!==Sy.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(n,"-").concat(e.key);return t.options.theme[xy]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}function Cy(e){var t=e.theme,r=e.name,n=e.props;if(!t||!t.props||!t.props[r])return n;var o,i=t.props[r];for(o in i)void 0===n[o]&&(n[o]=i[o]);return n}var Ey="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},Ry="object"===("undefined"==typeof window?"undefined":Ey(window))&&"object"===("undefined"==typeof document?"undefined":Ey(document))&&9===document.nodeType;function Ay(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,eu(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var My={}.constructor;function Py(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(Py);if(e.constructor!==My)return e;var t={};for(var r in e)t[r]=Py(e[r]);return t}function Iy(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,o=Py(t),i=n.plugins.onCreateRule(e,o,r);return i||(e[0],null)}var ky=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},Dy=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)t&&(t+=", "),t+=ky(e[r]," ");else t=ky(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function Ty(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Oy(e,t){for(var r="",n=0;n<t;n++)r+=" ";return r+e}function Ly(e,t,r){void 0===r&&(r={});var n="";if(!t)return n;var o=r.indent,i=void 0===o?0:o,a=t.fallbacks;!1===r.format&&(i=-1/0);var s=Ty(r),l=s.linebreak,u=s.space;if(e&&i++,a)if(Array.isArray(a))for(var c=0;c<a.length;c++){var d=a[c];for(var p in d){var f=d[p];null!=f&&(n&&(n+=l),n+=Oy(p+":"+u+Dy(f)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(n&&(n+=l),n+=Oy(h+":"+u+Dy(m)+";",i))}for(var g in t){var b=t[g];null!=b&&"fallbacks"!==g&&(n&&(n+=l),n+=Oy(g+":"+u+Dy(b)+";",i))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),Oy(""+e+u+"{"+n,--i)+Oy("}",i)):n}var qy=/([[\].#*$><+~=|^:(),"'`\s])/g,Ny="undefined"!=typeof CSS&&CSS.escape,jy=function(e){return Ny?Ny(e):e.replace(qy,"\\$1")},_y=function(){function e(e,t,r){this.type="style",this.isProcessed=!1;var n=r.sheet,o=r.Renderer;this.key=e,this.options=r,this.style=t,n?this.renderer=n.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,r){if(void 0===t)return this.style[e];var n=!!r&&r.force;if(!n&&this.style[e]===t)return this;var o=t;r&&!1===r.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!n)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),zy=function(e){function t(t,r,n){var o;o=e.call(this,t,r,n)||this;var i=n.selector,a=n.scoped,s=n.sheet,l=n.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(Yc(Yc(o)),s),o.selectorText="."+jy(o.id)),o}_c(t,e);var r=t.prototype;return r.applyTo=function(e){var t=this.renderer;if(t){var r=this.toJSON();for(var n in r)t.setProperty(e,n,r[n])}return this},r.toJSON=function(){var e={};for(var t in this.style){var r=this.style[t];"object"!=typeof r?e[t]=r:Array.isArray(r)&&(e[t]=Dy(r))}return e},r.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?Gr({},e,{allowEmpty:!0}):e;return Ly(this.selectorText,this.style,r)},Ay(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,r=this.renderable;if(r&&t)t.setSelector(r,e)||t.replaceRule(r,this)}},get:function(){return this.selectorText}}]),t}(_y),Fy={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new zy(e,t,r)}},$y={indent:1,children:!0},Hy=/@([\w-]+)/,By=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(Hy);for(var o in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new fx(Gr({},r,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n?(this.options.jss.plugins.onProcessRule(n),n):null},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.toString=function(e){void 0===e&&(e=$y);var t=Ty(e).linebreak;if(null==e.indent&&(e.indent=$y.indent),null==e.children&&(e.children=$y.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),Wy=/@container|@media|@supports\s+/,Vy={onCreateRule:function(e,t,r){return Wy.test(e)?new By(e,t,r):null}},Uy={indent:1,children:!0},Gy=/@keyframes\s+([\w-]+)/,Yy=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(Gy);n&&n[1]?this.name=n[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=r;var o=r.scoped,i=r.sheet,a=r.generateId;for(var s in this.id=!1===o?this.name:jy(a(this,i)),this.rules=new fx(Gr({},r,{parent:this})),t)this.rules.add(s,t[s],Gr({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Uy);var t=Ty(e).linebreak;if(null==e.indent&&(e.indent=Uy.indent),null==e.children&&(e.children=Uy.children),!1===e.children)return this.at+" "+this.id+" {}";var r=this.rules.toString(e);return r&&(r=""+t+r+t),this.at+" "+this.id+" {"+r+"}"},e}(),Ky=/@keyframes\s+/,Xy=/\$([\w-]+)/g,Jy=function(e,t){return"string"==typeof e?e.replace(Xy,function(e,r){return r in t?t[r]:e}):e},Zy=function(e,t,r){var n=e[t],o=Jy(n,r);o!==n&&(e[t]=o)},Qy={onCreateRule:function(e,t,r){return"string"==typeof e&&Ky.test(e)?new Yy(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&Zy(e,"animation-name",r.keyframes),"animation"in e&&Zy(e,"animation",r.keyframes),e):e},onChangeValue:function(e,t,r){var n=r.options.sheet;if(!n)return e;switch(t){case"animation":case"animation-name":return Jy(e,n.keyframes);default:return e}}},ex=function(e){function t(){return e.apply(this,arguments)||this}return _c(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?Gr({},e,{allowEmpty:!0}):e;return Ly(this.key,this.style,r)},t}(_y),tx={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new ex(e,t,r):null}},rx=function(){function e(e,t,r){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){var t=Ty(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=Ly(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return Ly(this.at,this.style,e)},e}(),nx=/@font-face/,ox={onCreateRule:function(e,t,r){return nx.test(e)?new rx(e,t,r):null}},ix=function(){function e(e,t,r){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){return Ly(this.key,this.style,e)},e}(),ax={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new ix(e,t,r):null}},sx=function(){function e(e,t,r){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=r}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",r=0;r<this.value.length;r++)t+=this.key+" "+this.value[r]+";",this.value[r+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),lx={"@charset":!0,"@import":!0,"@namespace":!0},ux={onCreateRule:function(e,t,r){return e in lx?new sx(e,t,r):null}},cx=[Fy,Vy,Qy,tx,ox,ax,ux],dx={process:!0},px={force:!0,process:!0},fx=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,r){var n=this.options,o=n.parent,i=n.sheet,a=n.jss,s=n.Renderer,l=n.generateId,u=n.scoped,c=Gr({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},r),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(c.selector="."+jy(this.classes[d]));var p=Iy(d,t,c);if(!p)return null;this.register(p);var f=void 0===c.index?this.index.length:c.index;return this.index.splice(f,0,p),p},t.replace=function(e,t,r){var n=this.get(e),o=this.index.indexOf(n);n&&this.remove(n);var i=r;return-1!==o&&(i=Gr({},r,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof zy?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Yy&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof zy?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Yy&&delete this.keyframes[e.name]},t.update=function(){var e,t,r;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],r=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],r=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,r);else for(var n=0;n<this.index.length;n++)this.updateOne(this.index[n],t,r)},t.updateOne=function(t,r,n){void 0===n&&(n=dx);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(r,n);else{var s=t.style;if(i.onUpdate(r,t,a,n),n.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var u=t.style[l];u!==s[l]&&t.prop(l,u,px)}for(var c in s){var d=t.style[c],p=s[c];null==d&&d!==p&&t.prop(c,null,px)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,o=Ty(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||n)&&(t&&(t+=o),t+=a)}return t},e}(),hx=function(){function e(e,t){for(var r in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Gr({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new fx(this.options),e)this.rules.add(r,e[r]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,r){var n=this.queue;this.attached&&!n&&(this.queue=[]);var o=this.rules.add(e,t,r);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(n?n.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,r){var n=this.rules.get(e);if(!n)return this.addRule(e,t,r);var o=this.rules.replace(e,t,r);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?n.renderable&&this.renderer.replaceRule(n.renderable,o):this.renderer.deleteRule(n)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var r=[];for(var n in e){var o=this.addRule(n,e[n],t);o&&r.push(o)}return r},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,r){return this.rules.updateOne(e,t,r),this},t.toString=function(e){return this.rules.toString(e)},e}(),mx=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,r){for(var n=0;n<this.registry.onCreateRule.length;n++){var o=this.registry.onCreateRule[n](e,t,r);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,r=0;r<this.registry.onProcessRule.length;r++)this.registry.onProcessRule[r](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,r){for(var n=0;n<this.registry.onProcessStyle.length;n++)t.style=this.registry.onProcessStyle[n](t.style,t,r)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,r,n){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,r,n)},t.onChangeValue=function(e,t,r){for(var n=e,o=0;o<this.registry.onChangeValue.length;o++)n=this.registry.onChangeValue[o](n,t,r);return n},t.use=function(e,t){void 0===t&&(t={queue:"external"});var r=this.plugins[t.queue];-1===r.indexOf(e)&&(r.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(e,t){for(var r in t)r in e&&e[r].push(t[r]);return e},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),gx=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,r=e.options.index;if(-1===t.indexOf(e))if(0===t.length||r>=this.index)t.push(e);else for(var n=0;n<t.length;n++)if(t[n].options.index>r)return void t.splice(n,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,r=t.attached,n=Yr(t,["attached"]),o=Ty(n).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=r&&s.attached!==r||(i&&(i+=o),i+=s.toString(n))}return i},Ay(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),bx=new gx,vx="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),yx="2f1acc6c3a606b082e5eef5e54414ffb";null==vx[yx]&&(vx[yx]=0);var xx=vx[yx]++,Sx=function(e){void 0===e&&(e={});var t=0;return function(r,n){t+=1;var o="",i="";return n&&(n.options.classNamePrefix&&(i=n.options.classNamePrefix),null!=n.options.jss.id&&(o=String(n.options.jss.id))),e.minify?""+(i||"c")+xx+o+t:i+r.key+"-"+xx+(o?"-"+o:"")+"-"+t}},wx=function(e){var t;return function(){return t||(t=e()),t}},Cx=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},Ex=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=Dy(r)),e.attributeStyleMap)e.attributeStyleMap.set(t,n);else{var o=n?n.indexOf("!important"):-1,i=o>-1?n.substr(0,o-1):n;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},Rx=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},Ax=function(e,t){return e.selectorText=t,e.selectorText===t},Mx=wx(function(){return document.querySelector("head")});function Px(e){var t=bx.registry;if(t.length>0){var r=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n.attached&&n.options.index>t.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&"string"==typeof n){var o=function(e){for(var t=Mx(),r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];if(8===n.nodeType&&n.nodeValue.trim()===e)return n}return null}(n);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var Ix=wx(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),kx=function(e,t,r){try{"insertRule"in e?e.insertRule(t,r):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[r]},Dx=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},Tx=function(){function e(e){this.getPropertyValue=Cx,this.setProperty=Ex,this.removeProperty=Rx,this.setSelector=Ax,this.hasInsertedRules=!1,this.cssRules=[],e&&bx.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},r=t.media,n=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),n&&this.element.setAttribute("data-meta",n);var i=Ix();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var r=t.insertionPoint,n=Px(t);if(!1!==n&&n.parent)n.parent.insertBefore(e,n.node);else if(r&&"number"==typeof r.nodeType){var o=r,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else Mx().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var r=0;r<e.index.length;r++)this.insertRule(e.index[r],r,t)},t.insertRule=function(e,t,r){if(void 0===r&&(r=this.element.sheet),e.rules){var n=e,o=r;if("conditional"===e.type||"keyframes"===e.type){var i=Dx(r,t);if(!1===(o=kx(r,n.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(n.rules,o),o}var a=e.toString();if(!a)return!1;var s=Dx(r,t),l=kx(r,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,r){e.renderable=r,e.options.parent instanceof hx&&this.cssRules.splice(t,0,r)},t.deleteRule=function(e){var t=this.element.sheet,r=this.indexOf(e);return-1!==r&&(t.deleteRule(r),this.cssRules.splice(r,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var r=this.indexOf(e);return-1!==r&&(this.element.sheet.deleteRule(r),this.cssRules.splice(r,1),this.insertRule(t,r))},t.getRules=function(){return this.element.sheet.cssRules},e}(),Ox=0,Lx=function(){function e(e){this.id=Ox++,this.version="10.10.0",this.plugins=new mx,this.options={id:{minify:!1},createGenerateId:Sx,Renderer:Ry?Tx:null,plugins:[]},this.generateId=Sx({minify:!1});for(var t=0;t<cx.length;t++)this.plugins.use(cx[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=Gr({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var r=t.index;"number"!=typeof r&&(r=0===bx.index?0:bx.index+1);var n=new hx(e,Gr({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:r}));return this.plugins.onProcessSheet(n),n},t.removeStyleSheet=function(e){return e.detach(),bx.remove(e),this},t.createRule=function(e,t,r){if(void 0===t&&(t={}),void 0===r&&(r={}),"object"==typeof e)return this.createRule(void 0,e,t);var n=Gr({},r,{name:e,jss:this,Renderer:this.options.Renderer});n.generateId||(n.generateId=this.generateId),n.classes||(n.classes={}),n.keyframes||(n.keyframes={});var o=Iy(e,t,n);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach(function(t){e.plugins.use(t)}),this},e}(),qx=function(e){return new Lx(e)},Nx="object"==typeof CSS&&null!=CSS&&"number"in CSS;function jx(e){var t=null;for(var r in e){var n=e[r],o=typeof n;if("function"===o)t||(t={}),t[r]=n;else if("object"===o&&null!==n&&!Array.isArray(n)){var i=jx(n);i&&(t||(t={}),t[r]=i)}}return t}
|
|
91
91
|
/**
|
|
92
92
|
* A better abstraction over CSS.
|
|
93
93
|
*
|
|
94
94
|
* @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
|
|
95
95
|
* @website https://github.com/cssinjs/jss
|
|
96
96
|
* @license MIT
|
|
97
|
-
*/Mx();var Dx=Date.now(),Tx="fnValues"+Dx,Ox="fnStyle"+ ++Dx,Lx="@global",qx="@global ",Nx=function(){function e(e,t,r){for(var n in this.type="global",this.at=Lx,this.isProcessed=!1,this.key=e,this.options=r,this.rules=new ax(Gr({},r,{parent:this})),t)this.rules.add(n,t[n]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),_x=function(){function e(e,t,r){this.type="global",this.at=Lx,this.isProcessed=!1,this.key=e,this.options=r;var n=e.substr(8);this.rule=r.jss.createRule(n,t,Gr({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),jx=/\s*,\s*/g;function zx(e,t){for(var r=e.split(jx),n="",o=0;o<r.length;o++)n+=t+" "+r[o].trim(),r[o+1]&&(n+=", ");return n}function Fx(){return{onCreateRule:function(e,t,r){if(!e)return null;if(e===Lx)return new Nx(e,t,r);if("@"===e[0]&&e.substr(0,8)===qx)return new _x(e,t,r);var n=r.parent;return n&&("global"===n.type||n.options.parent&&"global"===n.options.parent.type)&&(r.scoped=!1),r.selector||!1!==r.scoped||(r.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var r=e.options,n=e.style,o=n?n[Lx]:null;if(o){for(var i in o)t.addRule(i,o[i],Gr({},r,{selector:zx(i,e.selector)}));delete n[Lx]}}(e,t),function(e,t){var r=e.options,n=e.style;for(var o in n)if("@"===o[0]&&o.substr(0,7)===Lx){var i=zx(o.substr(7),e.selector);t.addRule(i,n[o],Gr({},r,{selector:i})),delete n[o]}}(e,t))}}}var $x=/\s*,\s*/g,Hx=/&/g,Bx=/\$([\w-]+)/g;function Wx(){function e(e,t){return function(r,n){var o=e.getRule(n)||t&&t.getRule(n);return o?o.selector:n}}function t(e,t){for(var r=t.split($x),n=e.split($x),o="",i=0;i<r.length;i++)for(var a=r[i],s=0;s<n.length;s++){var l=n[s];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace(Hx,a):a+" "+l}return o}function r(e,t,r){if(r)return Gr({},r,{index:r.index+1});var n=e.options.nestingLevel;n=void 0===n?1:n+1;var o=Gr({},e.options,{nestingLevel:n,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(n,o,i){if("style"!==o.type)return n;var a,s,l=o,u=l.options.parent;for(var c in n){var d=-1!==c.indexOf("&"),p="@"===c[0];if(d||p){if(a=r(l,u,a),d){var f=t(c,l.selector);s||(s=e(u,i)),f=f.replace(Bx,s);var h=l.key+"-"+c;"replaceRule"in u?u.replaceRule(h,n[c],Gr({},a,{selector:f})):u.addRule(h,n[c],Gr({},a,{selector:f}))}else p&&u.addRule(c,{},a).addRule(l.key,n[c],{selector:l.selector});delete n[c]}}return n}}}var Vx=/[A-Z]/g,Ux=/^ms-/,Gx={};function Yx(e){return"-"+e.toLowerCase()}function Kx(e){if(Gx.hasOwnProperty(e))return Gx[e];var t=e.replace(Vx,Yx);return Gx[e]=Ux.test(t)?"-"+t:t}function Xx(e){var t={};for(var r in e){t[0===r.indexOf("--")?r:Kx(r)]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Xx):t.fallbacks=Xx(e.fallbacks)),t}var Jx=Ix&&CSS?CSS.px:"px",Zx=Ix&&CSS?CSS.ms:"ms",Qx=Ix&&CSS?CSS.percent:"%";function eS(e){var t=/(-[a-z])/g,r=function(e){return e[1].toUpperCase()},n={};for(var o in e)n[o]=e[o],n[o.replace(t,r)]=e[o];return n}var tS=eS({"animation-delay":Zx,"animation-duration":Zx,"background-position":Jx,"background-position-x":Jx,"background-position-y":Jx,"background-size":Jx,border:Jx,"border-bottom":Jx,"border-bottom-left-radius":Jx,"border-bottom-right-radius":Jx,"border-bottom-width":Jx,"border-left":Jx,"border-left-width":Jx,"border-radius":Jx,"border-right":Jx,"border-right-width":Jx,"border-top":Jx,"border-top-left-radius":Jx,"border-top-right-radius":Jx,"border-top-width":Jx,"border-width":Jx,"border-block":Jx,"border-block-end":Jx,"border-block-end-width":Jx,"border-block-start":Jx,"border-block-start-width":Jx,"border-block-width":Jx,"border-inline":Jx,"border-inline-end":Jx,"border-inline-end-width":Jx,"border-inline-start":Jx,"border-inline-start-width":Jx,"border-inline-width":Jx,"border-start-start-radius":Jx,"border-start-end-radius":Jx,"border-end-start-radius":Jx,"border-end-end-radius":Jx,margin:Jx,"margin-bottom":Jx,"margin-left":Jx,"margin-right":Jx,"margin-top":Jx,"margin-block":Jx,"margin-block-end":Jx,"margin-block-start":Jx,"margin-inline":Jx,"margin-inline-end":Jx,"margin-inline-start":Jx,padding:Jx,"padding-bottom":Jx,"padding-left":Jx,"padding-right":Jx,"padding-top":Jx,"padding-block":Jx,"padding-block-end":Jx,"padding-block-start":Jx,"padding-inline":Jx,"padding-inline-end":Jx,"padding-inline-start":Jx,"mask-position-x":Jx,"mask-position-y":Jx,"mask-size":Jx,height:Jx,width:Jx,"min-height":Jx,"max-height":Jx,"min-width":Jx,"max-width":Jx,bottom:Jx,left:Jx,top:Jx,right:Jx,inset:Jx,"inset-block":Jx,"inset-block-end":Jx,"inset-block-start":Jx,"inset-inline":Jx,"inset-inline-end":Jx,"inset-inline-start":Jx,"box-shadow":Jx,"text-shadow":Jx,"column-gap":Jx,"column-rule":Jx,"column-rule-width":Jx,"column-width":Jx,"font-size":Jx,"font-size-delta":Jx,"letter-spacing":Jx,"text-decoration-thickness":Jx,"text-indent":Jx,"text-stroke":Jx,"text-stroke-width":Jx,"word-spacing":Jx,motion:Jx,"motion-offset":Jx,outline:Jx,"outline-offset":Jx,"outline-width":Jx,perspective:Jx,"perspective-origin-x":Qx,"perspective-origin-y":Qx,"transform-origin":Qx,"transform-origin-x":Qx,"transform-origin-y":Qx,"transform-origin-z":Qx,"transition-delay":Zx,"transition-duration":Zx,"vertical-align":Jx,"flex-basis":Jx,"shape-margin":Jx,size:Jx,gap:Jx,grid:Jx,"grid-gap":Jx,"row-gap":Jx,"grid-row-gap":Jx,"grid-column-gap":Jx,"grid-template-rows":Jx,"grid-template-columns":Jx,"grid-auto-rows":Jx,"grid-auto-columns":Jx,"box-shadow-x":Jx,"box-shadow-y":Jx,"box-shadow-blur":Jx,"box-shadow-spread":Jx,"font-line-height":Jx,"text-shadow-x":Jx,"text-shadow-y":Jx,"text-shadow-blur":Jx});function rS(e,t,r){if(null==t)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=rS(e,t[n],r);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=rS(o,t[o],r);else for(var i in t)t[i]=rS(e+"-"+i,t[i],r);else if("number"==typeof t&&!1===isNaN(t)){var a=r[e]||tS[e];return!a||0===t&&a===Jx?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function nS(e){void 0===e&&(e={});var t=eS(e);return{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n in e)e[n]=rS(n,e[n],t);return e},onChangeValue:function(e,r){return rS(r,e,t)}}}var oS="",iS="",aS="",sS="",lS=by&&"ontouchstart"in document.documentElement;if(by){var uS={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},cS=document.createElement("p").style;for(var dS in uS)if(dS+"Transform"in cS){oS=dS,iS=uS[dS];break}"Webkit"===oS&&"msHyphens"in cS&&(oS="ms",iS=uS.ms,sS="edge"),"Webkit"===oS&&"-apple-trailing-word"in cS&&(aS="apple")}var pS=oS,fS=iS,hS=aS,mS=sS,gS=lS;var vS={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===pS?"-webkit-"+e:fS+e)}},bS={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===pS?fS+"print-"+e:e)}},yS=/[-\s]+(.)?/g;function xS(e,t){return t?t.toUpperCase():""}function SS(e){return e.replace(yS,xS)}function wS(e){return SS("-"+e)}var CS,ES={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===pS){var r="mask-image";if(SS(r)in t)return e;if(pS+wS(r)in t)return fS+e}return e}},RS={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==hS||gS?e:fS+e)}},AS={noPrefill:["transform"],supportedProperty:function(e,t,r){return"transform"===e&&(r.transform?e:fS+e)}},PS={noPrefill:["transition"],supportedProperty:function(e,t,r){return"transition"===e&&(r.transition?e:fS+e)}},MS={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===pS||"ms"===pS&&"edge"!==mS?fS+e:e)}},IS={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===pS||"ms"===pS||"apple"===hS?fS+e:e)}},kS={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===pS?"WebkitColumn"+wS(e)in t&&fS+"column-"+e:"Moz"===pS&&("page"+wS(e)in t&&"page-"+e))}},DS={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===pS)return e;var r=e.replace("-inline","");return pS+wS(r)in t&&fS+r}},TS={supportedProperty:function(e,t){return SS(e)in t&&e}},OS={supportedProperty:function(e,t){var r=wS(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:pS+r in t?fS+e:"Webkit"!==pS&&"Webkit"+r in t&&"-webkit-"+e}},LS={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===pS?""+fS+e:e)}},qS={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===pS?fS+"scroll-chaining":e)}},NS={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},_S={supportedProperty:function(e,t){var r=NS[e];return!!r&&(pS+wS(r)in t&&fS+r)}},jS={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},zS=Object.keys(jS),FS=function(e){return fS+e},$S={supportedProperty:function(e,t,r){var n=r.multiple;if(zS.indexOf(e)>-1){var o=jS[e];if(!Array.isArray(o))return pS+wS(o)in t&&fS+o;if(!n)return!1;for(var i=0;i<o.length;i++)if(!(pS+wS(o[0])in t))return!1;return o.map(FS)}return!1}},HS=[vS,bS,ES,RS,AS,PS,MS,IS,kS,DS,TS,OS,LS,qS,_S,$S],BS=HS.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),WS=HS.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,wv(t.noPrefill)),e},[]),VS={};if(by){CS=document.createElement("p");var US=window.getComputedStyle(document.documentElement,"");for(var GS in US)isNaN(GS)||(VS[US[GS]]=US[GS]);WS.forEach(function(e){return delete VS[e]})}function YS(e,t){if(void 0===t&&(t={}),!CS)return e;if(null!=VS[e])return VS[e];"transition"!==e&&"transform"!==e||(t[e]=e in CS.style);for(var r=0;r<BS.length&&(VS[e]=BS[r](e,CS.style,t),!VS[e]);r++);try{CS.style[e]=""}catch(e){return!1}return VS[e]}var KS,XS={},JS={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},ZS=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function QS(e,t,r){if("var"===t)return"var";if("all"===t)return"all";if("all"===r)return", all";var n=t?YS(t):", "+YS(r);return n||(t||r)}function ew(e,t){var r=t;if(!KS||"content"===e)return t;if("string"!=typeof r||!isNaN(parseInt(r,10)))return r;var n=e+r;if(null!=XS[n])return XS[n];try{KS.style[e]=r}catch(e){return XS[n]=!1,!1}if(JS[e])r=r.replace(ZS,QS);else if(""===KS.style[e]&&("-ms-flex"===(r=fS+r)&&(KS.style[e]="-ms-flexbox"),KS.style[e]=r,""===KS.style[e]))return XS[n]=!1,!1;return KS.style[e]="",XS[n]=r,XS[n]}function tw(){function e(t){for(var r in t){var n=t[r];if("fallbacks"===r&&Array.isArray(n))t[r]=n.map(e);else{var o=!1,i=YS(r);i&&i!==r&&(o=!0);var a=!1,s=ew(i,Ey(n));s&&s!==n&&(a=!0),(o||a)&&(o&&delete t[r],t[i||r]=s||n)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===pS?e:"@"+fS+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,r){return"style"!==r.type?t:e(t)},onChangeValue:function(e,t){return ew(t,Ey(e))||e}}}function rw(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,r){if("style"!==r.type)return t;for(var n={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)n[o[i]]=t[o[i]];return n}}}function nw(){return{plugins:[{onCreateRule:function(e,t,r){if("function"!=typeof t)return null;var n=wy(e,{},r);return n[Ox]=t,n},onProcessStyle:function(e,t){if(Tx in t||Ox in t)return e;var r={};for(var n in e){var o=e[n];"function"==typeof o&&(delete e[n],r[n]=o)}return t[Tx]=r,e},onUpdate:function(e,t,r,n){var o=t,i=o[Ox];i&&(o.style=i(e)||{});var a=o[Tx];if(a)for(var s in a)o.prop(s,a[s](e),n)}},Fx(),Wx(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Xx(e[t]);return e}return Xx(e)},onChangeValue:function(e,t,r){if(0===t.indexOf("--"))return e;var n=Kx(t);return t===n?e:(r.prop(n,e),null)}},nS(),"undefined"==typeof window?null:tw(),rw()]}}function ow(e,t){if(null==e)return{};var r,n,o=Yr(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function iw(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,r=e.newClasses;if(e.Component,!r)return t;var n=Gr({},t);return Object.keys(r).forEach(function(e){r[e]&&(n[e]="".concat(t[e]," ").concat(r[e]))}),n}by&&(KS=document.createElement("p"));var aw=function(e,t,r,n){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(r,n)},sw=function(e,t,r){var n=e.get(t);return n?n.get(r):void 0},lw=function(e,t,r){e.get(t).delete(r)},uw=S.createContext(null);function cw(){return S.useContext(uw)}var dw,pw=Mx(nw()),fw=my(),hw=new Map,mw={disableGeneration:!1,generateClassName:fw,jss:pw,sheetsCache:null,sheetsManager:hw,sheetsRegistry:null},gw=S.createContext(mw);function vw(e){var t=e.children,r=e.injectFirst,n=void 0!==r&&r,o=e.disableGeneration,i=void 0!==o&&o,a=ow(e,["children","injectFirst","disableGeneration"]),s=Gr({},S.useContext(gw),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&n&&"undefined"!=typeof window){if(!dw){var l=document.head;dw=document.createComment("mui-inject-first"),l.insertBefore(dw,l.firstChild)}s.jss=Mx({plugins:nw().plugins,insertionPoint:dw})}return S.createElement(gw.Provider,{value:s},t)}var bw=-1e9;var yw={};function xw(e,t){var r=e.state,n=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=sw(o.sheetsManager,i,n);s||(s={refs:0,staticSheet:null,dynamicStyles:null},aw(o.sheetsManager,i,n,s));var l=Gr({},i.options,o,{theme:n,flip:"boolean"==typeof o.flip?o.flip:"rtl"===n.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var u=o.sheetsRegistry;if(0===s.refs){var c;o.sheetsCache&&(c=sw(o.sheetsCache,i,n));var d=i.create(n,a);c||((c=o.jss.createStyleSheet(d,Gr({link:!1},l))).attach(),o.sheetsCache&&aw(o.sheetsCache,i,n,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=kx(d)}if(s.dynamicStyles){var p=o.jss.createStyleSheet(s.dynamicStyles,Gr({link:!0},l));p.update(t),p.attach(),r.dynamicSheet=p,r.classes=iw({baseClasses:s.staticSheet.classes,newClasses:p.classes}),u&&u.add(p)}else r.classes=s.staticSheet.classes;s.refs+=1}}function Sw(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.name,n=t.classNamePrefix,o=t.Component,i=t.defaultTheme,a=void 0===i?yw:i,s=ow(t,["name","classNamePrefix","Component","defaultTheme"]),l=function(e){var t="function"==typeof e;return{create:function(r,n){var o;try{o=t?e(r):e}catch(e){throw e}if(!n||!r.overrides||!r.overrides[n])return o;var i=r.overrides[n],a=Gr({},o);return Object.keys(i).forEach(function(e){a[e]=Om(a[e],i[e])}),a},options:{}}}(e),u=r||n||"makeStyles";l.options={index:bw+=1,name:r,meta:u,classNamePrefix:u};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=cw()||a,n=Gr({},S.useContext(gw),s),i=S.useRef(),u=S.useRef();!function(e,t){var r,n=S.useRef([]),o=S.useMemo(function(){return{}},t);n.current!==o&&(n.current=o,r=e()),S.useEffect(function(){return function(){r&&r()}},[o])}(function(){var o={name:r,state:{},stylesCreator:l,stylesOptions:n,theme:t};return xw(o,e),u.current=!1,i.current=o,function(){!function(e){var t=e.state,r=e.theme,n=e.stylesOptions,o=e.stylesCreator;if(!n.disableGeneration){var i=sw(n.sheetsManager,o,r);i.refs-=1;var a=n.sheetsRegistry;0===i.refs&&(lw(n.sheetsManager,o,r),n.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(n.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(o)}},[t,l]),S.useEffect(function(){u.current&&function(e,t){var r=e.state;r.dynamicSheet&&r.dynamicSheet.update(t)}(i.current,e),u.current=!0});var c=function(e,t,r){var n=e.state;if(e.stylesOptions.disableGeneration)return t||{};n.cacheClasses||(n.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return n.classes!==n.cacheClasses.lastJSS&&(n.cacheClasses.lastJSS=n.classes,o=!0),t!==n.cacheClasses.lastProp&&(n.cacheClasses.lastProp=t,o=!0),o&&(n.cacheClasses.value=iw({baseClasses:n.cacheClasses.lastJSS,newClasses:t,Component:r})),n.cacheClasses.value}(i.current,e.classes,o);return c}}var ww=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t}return yy(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new ux;var r=my();return S.createElement(vw,Gr({sheetsManager:t,serverGenerateClassName:r,sheetsRegistry:this.sheetsRegistry},this.options),e)}},{key:"toString",value:function(){return this.sheetsRegistry?this.sheetsRegistry.toString():""}},{key:"getStyleElement",value:function(e){return S.createElement("style",Gr({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}();function Cw(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=Cw(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Ew(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=Cw(e))&&(n&&(n+=" "),n+=t);return n}var Rw={exports:{}},Aw={},Pw="function"==typeof Symbol&&Symbol.for,Mw=Pw?Symbol.for("react.element"):60103,Iw=Pw?Symbol.for("react.portal"):60106,kw=Pw?Symbol.for("react.fragment"):60107,Dw=Pw?Symbol.for("react.strict_mode"):60108,Tw=Pw?Symbol.for("react.profiler"):60114,Ow=Pw?Symbol.for("react.provider"):60109,Lw=Pw?Symbol.for("react.context"):60110,qw=Pw?Symbol.for("react.async_mode"):60111,Nw=Pw?Symbol.for("react.concurrent_mode"):60111,_w=Pw?Symbol.for("react.forward_ref"):60112,jw=Pw?Symbol.for("react.suspense"):60113,zw=Pw?Symbol.for("react.suspense_list"):60120,Fw=Pw?Symbol.for("react.memo"):60115,$w=Pw?Symbol.for("react.lazy"):60116,Hw=Pw?Symbol.for("react.block"):60121,Bw=Pw?Symbol.for("react.fundamental"):60117,Ww=Pw?Symbol.for("react.responder"):60118,Vw=Pw?Symbol.for("react.scope"):60119;function Uw(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Mw:switch(e=e.type){case qw:case Nw:case kw:case Tw:case Dw:case jw:return e;default:switch(e=e&&e.$$typeof){case Lw:case _w:case $w:case Fw:case Ow:return e;default:return t}}case Iw:return t}}}function Gw(e){return Uw(e)===Nw}Aw.AsyncMode=qw,Aw.ConcurrentMode=Nw,Aw.ContextConsumer=Lw,Aw.ContextProvider=Ow,Aw.Element=Mw,Aw.ForwardRef=_w,Aw.Fragment=kw,Aw.Lazy=$w,Aw.Memo=Fw,Aw.Portal=Iw,Aw.Profiler=Tw,Aw.StrictMode=Dw,Aw.Suspense=jw,Aw.isAsyncMode=function(e){return Gw(e)||Uw(e)===qw},Aw.isConcurrentMode=Gw,Aw.isContextConsumer=function(e){return Uw(e)===Lw},Aw.isContextProvider=function(e){return Uw(e)===Ow},Aw.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Mw},Aw.isForwardRef=function(e){return Uw(e)===_w},Aw.isFragment=function(e){return Uw(e)===kw},Aw.isLazy=function(e){return Uw(e)===$w},Aw.isMemo=function(e){return Uw(e)===Fw},Aw.isPortal=function(e){return Uw(e)===Iw},Aw.isProfiler=function(e){return Uw(e)===Tw},Aw.isStrictMode=function(e){return Uw(e)===Dw},Aw.isSuspense=function(e){return Uw(e)===jw},Aw.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===kw||e===Nw||e===Tw||e===Dw||e===jw||e===zw||"object"==typeof e&&null!==e&&(e.$$typeof===$w||e.$$typeof===Fw||e.$$typeof===Ow||e.$$typeof===Lw||e.$$typeof===_w||e.$$typeof===Bw||e.$$typeof===Ww||e.$$typeof===Vw||e.$$typeof===Hw)},Aw.typeOf=Uw,Rw.exports=Aw;var Yw=Rw.exports,Kw={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Xw={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Jw={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Zw={};function Qw(e){return Yw.isMemo(e)?Jw:Zw[e.$$typeof]||Kw}Zw[Yw.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Zw[Yw.Memo]=Jw;var eC=Object.defineProperty,tC=Object.getOwnPropertyNames,rC=Object.getOwnPropertySymbols,nC=Object.getOwnPropertyDescriptor,oC=Object.getPrototypeOf,iC=Object.prototype;var aC=function e(t,r,n){if("string"!=typeof r){if(iC){var o=oC(r);o&&o!==iC&&e(t,o,n)}var i=tC(r);rC&&(i=i.concat(rC(r)));for(var a=Qw(t),s=Qw(r),l=0;l<i.length;++l){var u=i[l];if(!(Xw[u]||n&&n[u]||s&&s[u]||a&&a[u])){var c=nC(r,u);try{eC(t,u,c)}catch(e){}}}}return t},sC=Zt(aC);function lC(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).defaultTheme;return function(t){var r=S.forwardRef(function(r,n){var o=r.innerRef,i=ow(r,["innerRef"]),a=cw()||e;return S.createElement(t,Gr({theme:a,ref:o||n},i))});return sC(r,t),r}}var uC,cC=lC(),dC=Object.freeze({__proto__:null,ServerStyleSheets:ww,StylesContext:gw,StylesProvider:vw,ThemeProvider:function(e){var t=e.children,r=e.theme,n=cw(),o=S.useMemo(function(){var e=null===n?r:function(e,t){return"function"==typeof t?t(e):Gr({},e,t)}(n,r);return null!=e&&(e[fy]=null!==n),e},[r,n]);return S.createElement(uw.Provider,{value:o},t)},createGenerateClassName:my,createStyles:function(e){return e},getThemeProps:gy,jssPreset:nw,makeStyles:Sw,mergeClasses:iw,sheetsManager:hw,styled:function(e){return function(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.name,i=ow(n,["name"]),a=o,s=Sw("function"==typeof t?function(e){return{root:function(r){return t(Gr({theme:e},r))}}}:{root:t},Gr({Component:e,name:o||e.displayName,classNamePrefix:a},i));t.filterProps&&(r=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var l=S.forwardRef(function(t,n){var o,i,a,l=t.children,u=t.className,c=t.clone,d=t.component,p=ow(t,["children","className","clone","component"]),f=Ew(s(t).root,u),h=p;if(r&&(o=h,i=r,a={},Object.keys(o).forEach(function(e){-1===i.indexOf(e)&&(a[e]=o[e])}),h=a),c)return S.cloneElement(l,Gr({className:Ew(l.props.className,f)},h));if("function"==typeof l)return l(Gr({className:f},h));var m=d||e;return S.createElement(m,Gr({ref:n,className:f},h),l)});return sC(l,e),l}},useTheme:cw,withStyles:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(r){var n=t.defaultTheme,o=t.withTheme,i=void 0!==o&&o,a=t.name,s=ow(t,["defaultTheme","withTheme","name"]),l=a,u=Sw(e,Gr({defaultTheme:n,Component:r,name:a||r.displayName,classNamePrefix:l},s)),c=S.forwardRef(function(e,t){e.classes;var o,s=e.innerRef,l=ow(e,["classes","innerRef"]),c=u(Gr({},r.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=cw()||n,a&&(d=gy({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),S.createElement(r,Gr({ref:s||t,classes:c},d))});return sC(c,r),c}},withTheme:cC,withThemeCreator:lC}),pC=Qt(dC);
|
|
97
|
+
*/qx();var _x=Date.now(),zx="fnValues"+_x,Fx="fnStyle"+ ++_x,$x="@global",Hx="@global ",Bx=function(){function e(e,t,r){for(var n in this.type="global",this.at=$x,this.isProcessed=!1,this.key=e,this.options=r,this.rules=new fx(Gr({},r,{parent:this})),t)this.rules.add(n,t[n]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Wx=function(){function e(e,t,r){this.type="global",this.at=$x,this.isProcessed=!1,this.key=e,this.options=r;var n=e.substr(8);this.rule=r.jss.createRule(n,t,Gr({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Vx=/\s*,\s*/g;function Ux(e,t){for(var r=e.split(Vx),n="",o=0;o<r.length;o++)n+=t+" "+r[o].trim(),r[o+1]&&(n+=", ");return n}function Gx(){return{onCreateRule:function(e,t,r){if(!e)return null;if(e===$x)return new Bx(e,t,r);if("@"===e[0]&&e.substr(0,8)===Hx)return new Wx(e,t,r);var n=r.parent;return n&&("global"===n.type||n.options.parent&&"global"===n.options.parent.type)&&(r.scoped=!1),r.selector||!1!==r.scoped||(r.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var r=e.options,n=e.style,o=n?n[$x]:null;if(o){for(var i in o)t.addRule(i,o[i],Gr({},r,{selector:Ux(i,e.selector)}));delete n[$x]}}(e,t),function(e,t){var r=e.options,n=e.style;for(var o in n)if("@"===o[0]&&o.substr(0,7)===$x){var i=Ux(o.substr(7),e.selector);t.addRule(i,n[o],Gr({},r,{selector:i})),delete n[o]}}(e,t))}}}var Yx=/\s*,\s*/g,Kx=/&/g,Xx=/\$([\w-]+)/g;function Jx(){function e(e,t){return function(r,n){var o=e.getRule(n)||t&&t.getRule(n);return o?o.selector:n}}function t(e,t){for(var r=t.split(Yx),n=e.split(Yx),o="",i=0;i<r.length;i++)for(var a=r[i],s=0;s<n.length;s++){var l=n[s];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace(Kx,a):a+" "+l}return o}function r(e,t,r){if(r)return Gr({},r,{index:r.index+1});var n=e.options.nestingLevel;n=void 0===n?1:n+1;var o=Gr({},e.options,{nestingLevel:n,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(n,o,i){if("style"!==o.type)return n;var a,s,l=o,u=l.options.parent;for(var c in n){var d=-1!==c.indexOf("&"),p="@"===c[0];if(d||p){if(a=r(l,u,a),d){var f=t(c,l.selector);s||(s=e(u,i)),f=f.replace(Xx,s);var h=l.key+"-"+c;"replaceRule"in u?u.replaceRule(h,n[c],Gr({},a,{selector:f})):u.addRule(h,n[c],Gr({},a,{selector:f}))}else p&&u.addRule(c,{},a).addRule(l.key,n[c],{selector:l.selector});delete n[c]}}return n}}}var Zx=/[A-Z]/g,Qx=/^ms-/,eS={};function tS(e){return"-"+e.toLowerCase()}function rS(e){if(eS.hasOwnProperty(e))return eS[e];var t=e.replace(Zx,tS);return eS[e]=Qx.test(t)?"-"+t:t}function nS(e){var t={};for(var r in e){t[0===r.indexOf("--")?r:rS(r)]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(nS):t.fallbacks=nS(e.fallbacks)),t}var oS=Nx&&CSS?CSS.px:"px",iS=Nx&&CSS?CSS.ms:"ms",aS=Nx&&CSS?CSS.percent:"%";function sS(e){var t=/(-[a-z])/g,r=function(e){return e[1].toUpperCase()},n={};for(var o in e)n[o]=e[o],n[o.replace(t,r)]=e[o];return n}var lS=sS({"animation-delay":iS,"animation-duration":iS,"background-position":oS,"background-position-x":oS,"background-position-y":oS,"background-size":oS,border:oS,"border-bottom":oS,"border-bottom-left-radius":oS,"border-bottom-right-radius":oS,"border-bottom-width":oS,"border-left":oS,"border-left-width":oS,"border-radius":oS,"border-right":oS,"border-right-width":oS,"border-top":oS,"border-top-left-radius":oS,"border-top-right-radius":oS,"border-top-width":oS,"border-width":oS,"border-block":oS,"border-block-end":oS,"border-block-end-width":oS,"border-block-start":oS,"border-block-start-width":oS,"border-block-width":oS,"border-inline":oS,"border-inline-end":oS,"border-inline-end-width":oS,"border-inline-start":oS,"border-inline-start-width":oS,"border-inline-width":oS,"border-start-start-radius":oS,"border-start-end-radius":oS,"border-end-start-radius":oS,"border-end-end-radius":oS,margin:oS,"margin-bottom":oS,"margin-left":oS,"margin-right":oS,"margin-top":oS,"margin-block":oS,"margin-block-end":oS,"margin-block-start":oS,"margin-inline":oS,"margin-inline-end":oS,"margin-inline-start":oS,padding:oS,"padding-bottom":oS,"padding-left":oS,"padding-right":oS,"padding-top":oS,"padding-block":oS,"padding-block-end":oS,"padding-block-start":oS,"padding-inline":oS,"padding-inline-end":oS,"padding-inline-start":oS,"mask-position-x":oS,"mask-position-y":oS,"mask-size":oS,height:oS,width:oS,"min-height":oS,"max-height":oS,"min-width":oS,"max-width":oS,bottom:oS,left:oS,top:oS,right:oS,inset:oS,"inset-block":oS,"inset-block-end":oS,"inset-block-start":oS,"inset-inline":oS,"inset-inline-end":oS,"inset-inline-start":oS,"box-shadow":oS,"text-shadow":oS,"column-gap":oS,"column-rule":oS,"column-rule-width":oS,"column-width":oS,"font-size":oS,"font-size-delta":oS,"letter-spacing":oS,"text-decoration-thickness":oS,"text-indent":oS,"text-stroke":oS,"text-stroke-width":oS,"word-spacing":oS,motion:oS,"motion-offset":oS,outline:oS,"outline-offset":oS,"outline-width":oS,perspective:oS,"perspective-origin-x":aS,"perspective-origin-y":aS,"transform-origin":aS,"transform-origin-x":aS,"transform-origin-y":aS,"transform-origin-z":aS,"transition-delay":iS,"transition-duration":iS,"vertical-align":oS,"flex-basis":oS,"shape-margin":oS,size:oS,gap:oS,grid:oS,"grid-gap":oS,"row-gap":oS,"grid-row-gap":oS,"grid-column-gap":oS,"grid-template-rows":oS,"grid-template-columns":oS,"grid-auto-rows":oS,"grid-auto-columns":oS,"box-shadow-x":oS,"box-shadow-y":oS,"box-shadow-blur":oS,"box-shadow-spread":oS,"font-line-height":oS,"text-shadow-x":oS,"text-shadow-y":oS,"text-shadow-blur":oS});function uS(e,t,r){if(null==t)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=uS(e,t[n],r);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=uS(o,t[o],r);else for(var i in t)t[i]=uS(e+"-"+i,t[i],r);else if("number"==typeof t&&!1===isNaN(t)){var a=r[e]||lS[e];return!a||0===t&&a===oS?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function cS(e){void 0===e&&(e={});var t=sS(e);return{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n in e)e[n]=uS(n,e[n],t);return e},onChangeValue:function(e,r){return uS(r,e,t)}}}var dS="",pS="",fS="",hS="",mS=Ry&&"ontouchstart"in document.documentElement;if(Ry){var gS={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},bS=document.createElement("p").style;for(var vS in gS)if(vS+"Transform"in bS){dS=vS,pS=gS[vS];break}"Webkit"===dS&&"msHyphens"in bS&&(dS="ms",pS=gS.ms,hS="edge"),"Webkit"===dS&&"-apple-trailing-word"in bS&&(fS="apple")}var yS=dS,xS=pS,SS=fS,wS=hS,CS=mS;var ES={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===yS?"-webkit-"+e:xS+e)}},RS={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===yS?xS+"print-"+e:e)}},AS=/[-\s]+(.)?/g;function MS(e,t){return t?t.toUpperCase():""}function PS(e){return e.replace(AS,MS)}function IS(e){return PS("-"+e)}var kS,DS={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===yS){var r="mask-image";if(PS(r)in t)return e;if(yS+IS(r)in t)return xS+e}return e}},TS={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==SS||CS?e:xS+e)}},OS={noPrefill:["transform"],supportedProperty:function(e,t,r){return"transform"===e&&(r.transform?e:xS+e)}},LS={noPrefill:["transition"],supportedProperty:function(e,t,r){return"transition"===e&&(r.transition?e:xS+e)}},qS={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===yS||"ms"===yS&&"edge"!==wS?xS+e:e)}},NS={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===yS||"ms"===yS||"apple"===SS?xS+e:e)}},jS={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===yS?"WebkitColumn"+IS(e)in t&&xS+"column-"+e:"Moz"===yS&&("page"+IS(e)in t&&"page-"+e))}},_S={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===yS)return e;var r=e.replace("-inline","");return yS+IS(r)in t&&xS+r}},zS={supportedProperty:function(e,t){return PS(e)in t&&e}},FS={supportedProperty:function(e,t){var r=IS(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:yS+r in t?xS+e:"Webkit"!==yS&&"Webkit"+r in t&&"-webkit-"+e}},$S={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===yS?""+xS+e:e)}},HS={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===yS?xS+"scroll-chaining":e)}},BS={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},WS={supportedProperty:function(e,t){var r=BS[e];return!!r&&(yS+IS(r)in t&&xS+r)}},VS={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},US=Object.keys(VS),GS=function(e){return xS+e},YS={supportedProperty:function(e,t,r){var n=r.multiple;if(US.indexOf(e)>-1){var o=VS[e];if(!Array.isArray(o))return yS+IS(o)in t&&xS+o;if(!n)return!1;for(var i=0;i<o.length;i++)if(!(yS+IS(o[0])in t))return!1;return o.map(GS)}return!1}},KS=[ES,RS,DS,TS,OS,LS,qS,NS,jS,_S,zS,FS,$S,HS,WS,YS],XS=KS.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),JS=KS.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,Ib(t.noPrefill)),e},[]),ZS={};if(Ry){kS=document.createElement("p");var QS=window.getComputedStyle(document.documentElement,"");for(var ew in QS)isNaN(ew)||(ZS[QS[ew]]=QS[ew]);JS.forEach(function(e){return delete ZS[e]})}function tw(e,t){if(void 0===t&&(t={}),!kS)return e;if(null!=ZS[e])return ZS[e];"transition"!==e&&"transform"!==e||(t[e]=e in kS.style);for(var r=0;r<XS.length&&(ZS[e]=XS[r](e,kS.style,t),!ZS[e]);r++);try{kS.style[e]=""}catch(e){return!1}return ZS[e]}var rw,nw={},ow={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},iw=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function aw(e,t,r){if("var"===t)return"var";if("all"===t)return"all";if("all"===r)return", all";var n=t?tw(t):", "+tw(r);return n||(t||r)}function sw(e,t){var r=t;if(!rw||"content"===e)return t;if("string"!=typeof r||!isNaN(parseInt(r,10)))return r;var n=e+r;if(null!=nw[n])return nw[n];try{rw.style[e]=r}catch(e){return nw[n]=!1,!1}if(ow[e])r=r.replace(iw,aw);else if(""===rw.style[e]&&("-ms-flex"===(r=xS+r)&&(rw.style[e]="-ms-flexbox"),rw.style[e]=r,""===rw.style[e]))return nw[n]=!1,!1;return rw.style[e]="",nw[n]=r,nw[n]}function lw(){function e(t){for(var r in t){var n=t[r];if("fallbacks"===r&&Array.isArray(n))t[r]=n.map(e);else{var o=!1,i=tw(r);i&&i!==r&&(o=!0);var a=!1,s=sw(i,Dy(n));s&&s!==n&&(a=!0),(o||a)&&(o&&delete t[r],t[i||r]=s||n)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===yS?e:"@"+xS+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,r){return"style"!==r.type?t:e(t)},onChangeValue:function(e,t){return sw(t,Dy(e))||e}}}function uw(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,r){if("style"!==r.type)return t;for(var n={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)n[o[i]]=t[o[i]];return n}}}function cw(){return{plugins:[{onCreateRule:function(e,t,r){if("function"!=typeof t)return null;var n=Iy(e,{},r);return n[Fx]=t,n},onProcessStyle:function(e,t){if(zx in t||Fx in t)return e;var r={};for(var n in e){var o=e[n];"function"==typeof o&&(delete e[n],r[n]=o)}return t[zx]=r,e},onUpdate:function(e,t,r,n){var o=t,i=o[Fx];i&&(o.style=i(e)||{});var a=o[zx];if(a)for(var s in a)o.prop(s,a[s](e),n)}},Gx(),Jx(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=nS(e[t]);return e}return nS(e)},onChangeValue:function(e,t,r){if(0===t.indexOf("--"))return e;var n=rS(t);return t===n?e:(r.prop(n,e),null)}},cS(),"undefined"==typeof window?null:lw(),uw()]}}function dw(e,t){if(null==e)return{};var r,n,o=Yr(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function pw(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,r=e.newClasses;if(e.Component,!r)return t;var n=Gr({},t);return Object.keys(r).forEach(function(e){r[e]&&(n[e]="".concat(t[e]," ").concat(r[e]))}),n}Ry&&(rw=document.createElement("p"));var fw=function(e,t,r,n){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(r,n)},hw=function(e,t,r){var n=e.get(t);return n?n.get(r):void 0},mw=function(e,t,r){e.get(t).delete(r)},gw=S.createContext(null);function bw(){return S.useContext(gw)}var vw,yw=qx(cw()),xw=wy(),Sw=new Map,ww={disableGeneration:!1,generateClassName:xw,jss:yw,sheetsCache:null,sheetsManager:Sw,sheetsRegistry:null},Cw=S.createContext(ww);function Ew(e){var t=e.children,r=e.injectFirst,n=void 0!==r&&r,o=e.disableGeneration,i=void 0!==o&&o,a=dw(e,["children","injectFirst","disableGeneration"]),s=Gr({},S.useContext(Cw),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&n&&"undefined"!=typeof window){if(!vw){var l=document.head;vw=document.createComment("mui-inject-first"),l.insertBefore(vw,l.firstChild)}s.jss=qx({plugins:cw().plugins,insertionPoint:vw})}return S.createElement(Cw.Provider,{value:s},t)}var Rw=-1e9;var Aw={};function Mw(e,t){var r=e.state,n=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=hw(o.sheetsManager,i,n);s||(s={refs:0,staticSheet:null,dynamicStyles:null},fw(o.sheetsManager,i,n,s));var l=Gr({},i.options,o,{theme:n,flip:"boolean"==typeof o.flip?o.flip:"rtl"===n.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var u=o.sheetsRegistry;if(0===s.refs){var c;o.sheetsCache&&(c=hw(o.sheetsCache,i,n));var d=i.create(n,a);c||((c=o.jss.createStyleSheet(d,Gr({link:!1},l))).attach(),o.sheetsCache&&fw(o.sheetsCache,i,n,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=jx(d)}if(s.dynamicStyles){var p=o.jss.createStyleSheet(s.dynamicStyles,Gr({link:!0},l));p.update(t),p.attach(),r.dynamicSheet=p,r.classes=pw({baseClasses:s.staticSheet.classes,newClasses:p.classes}),u&&u.add(p)}else r.classes=s.staticSheet.classes;s.refs+=1}}function Pw(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.name,n=t.classNamePrefix,o=t.Component,i=t.defaultTheme,a=void 0===i?Aw:i,s=dw(t,["name","classNamePrefix","Component","defaultTheme"]),l=function(e){var t="function"==typeof e;return{create:function(r,n){var o;try{o=t?e(r):e}catch(e){throw e}if(!n||!r.overrides||!r.overrides[n])return o;var i=r.overrides[n],a=Gr({},o);return Object.keys(i).forEach(function(e){a[e]=Fm(a[e],i[e])}),a},options:{}}}(e),u=r||n||"makeStyles";l.options={index:Rw+=1,name:r,meta:u,classNamePrefix:u};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=bw()||a,n=Gr({},S.useContext(Cw),s),i=S.useRef(),u=S.useRef();!function(e,t){var r,n=S.useRef([]),o=S.useMemo(function(){return{}},t);n.current!==o&&(n.current=o,r=e()),S.useEffect(function(){return function(){r&&r()}},[o])}(function(){var o={name:r,state:{},stylesCreator:l,stylesOptions:n,theme:t};return Mw(o,e),u.current=!1,i.current=o,function(){!function(e){var t=e.state,r=e.theme,n=e.stylesOptions,o=e.stylesCreator;if(!n.disableGeneration){var i=hw(n.sheetsManager,o,r);i.refs-=1;var a=n.sheetsRegistry;0===i.refs&&(mw(n.sheetsManager,o,r),n.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(n.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(o)}},[t,l]),S.useEffect(function(){u.current&&function(e,t){var r=e.state;r.dynamicSheet&&r.dynamicSheet.update(t)}(i.current,e),u.current=!0});var c=function(e,t,r){var n=e.state;if(e.stylesOptions.disableGeneration)return t||{};n.cacheClasses||(n.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return n.classes!==n.cacheClasses.lastJSS&&(n.cacheClasses.lastJSS=n.classes,o=!0),t!==n.cacheClasses.lastProp&&(n.cacheClasses.lastProp=t,o=!0),o&&(n.cacheClasses.value=pw({baseClasses:n.cacheClasses.lastJSS,newClasses:t,Component:r})),n.cacheClasses.value}(i.current,e.classes,o);return c}}var Iw=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t}return Ay(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new gx;var r=wy();return S.createElement(Ew,Gr({sheetsManager:t,serverGenerateClassName:r,sheetsRegistry:this.sheetsRegistry},this.options),e)}},{key:"toString",value:function(){return this.sheetsRegistry?this.sheetsRegistry.toString():""}},{key:"getStyleElement",value:function(e){return S.createElement("style",Gr({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}();function kw(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=kw(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Dw(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=kw(e))&&(n&&(n+=" "),n+=t);return n}var Tw={exports:{}},Ow={},Lw="function"==typeof Symbol&&Symbol.for,qw=Lw?Symbol.for("react.element"):60103,Nw=Lw?Symbol.for("react.portal"):60106,jw=Lw?Symbol.for("react.fragment"):60107,_w=Lw?Symbol.for("react.strict_mode"):60108,zw=Lw?Symbol.for("react.profiler"):60114,Fw=Lw?Symbol.for("react.provider"):60109,$w=Lw?Symbol.for("react.context"):60110,Hw=Lw?Symbol.for("react.async_mode"):60111,Bw=Lw?Symbol.for("react.concurrent_mode"):60111,Ww=Lw?Symbol.for("react.forward_ref"):60112,Vw=Lw?Symbol.for("react.suspense"):60113,Uw=Lw?Symbol.for("react.suspense_list"):60120,Gw=Lw?Symbol.for("react.memo"):60115,Yw=Lw?Symbol.for("react.lazy"):60116,Kw=Lw?Symbol.for("react.block"):60121,Xw=Lw?Symbol.for("react.fundamental"):60117,Jw=Lw?Symbol.for("react.responder"):60118,Zw=Lw?Symbol.for("react.scope"):60119;function Qw(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case qw:switch(e=e.type){case Hw:case Bw:case jw:case zw:case _w:case Vw:return e;default:switch(e=e&&e.$$typeof){case $w:case Ww:case Yw:case Gw:case Fw:return e;default:return t}}case Nw:return t}}}function eC(e){return Qw(e)===Bw}Ow.AsyncMode=Hw,Ow.ConcurrentMode=Bw,Ow.ContextConsumer=$w,Ow.ContextProvider=Fw,Ow.Element=qw,Ow.ForwardRef=Ww,Ow.Fragment=jw,Ow.Lazy=Yw,Ow.Memo=Gw,Ow.Portal=Nw,Ow.Profiler=zw,Ow.StrictMode=_w,Ow.Suspense=Vw,Ow.isAsyncMode=function(e){return eC(e)||Qw(e)===Hw},Ow.isConcurrentMode=eC,Ow.isContextConsumer=function(e){return Qw(e)===$w},Ow.isContextProvider=function(e){return Qw(e)===Fw},Ow.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===qw},Ow.isForwardRef=function(e){return Qw(e)===Ww},Ow.isFragment=function(e){return Qw(e)===jw},Ow.isLazy=function(e){return Qw(e)===Yw},Ow.isMemo=function(e){return Qw(e)===Gw},Ow.isPortal=function(e){return Qw(e)===Nw},Ow.isProfiler=function(e){return Qw(e)===zw},Ow.isStrictMode=function(e){return Qw(e)===_w},Ow.isSuspense=function(e){return Qw(e)===Vw},Ow.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===jw||e===Bw||e===zw||e===_w||e===Vw||e===Uw||"object"==typeof e&&null!==e&&(e.$$typeof===Yw||e.$$typeof===Gw||e.$$typeof===Fw||e.$$typeof===$w||e.$$typeof===Ww||e.$$typeof===Xw||e.$$typeof===Jw||e.$$typeof===Zw||e.$$typeof===Kw)},Ow.typeOf=Qw,Tw.exports=Ow;var tC=Tw.exports,rC={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},nC={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},oC={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},iC={};function aC(e){return tC.isMemo(e)?oC:iC[e.$$typeof]||rC}iC[tC.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},iC[tC.Memo]=oC;var sC=Object.defineProperty,lC=Object.getOwnPropertyNames,uC=Object.getOwnPropertySymbols,cC=Object.getOwnPropertyDescriptor,dC=Object.getPrototypeOf,pC=Object.prototype;var fC=function e(t,r,n){if("string"!=typeof r){if(pC){var o=dC(r);o&&o!==pC&&e(t,o,n)}var i=lC(r);uC&&(i=i.concat(uC(r)));for(var a=aC(t),s=aC(r),l=0;l<i.length;++l){var u=i[l];if(!(nC[u]||n&&n[u]||s&&s[u]||a&&a[u])){var c=cC(r,u);try{sC(t,u,c)}catch(e){}}}}return t},hC=Zt(fC);function mC(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).defaultTheme;return function(t){var r=S.forwardRef(function(r,n){var o=r.innerRef,i=dw(r,["innerRef"]),a=bw()||e;return S.createElement(t,Gr({theme:a,ref:o||n},i))});return hC(r,t),r}}var gC,bC=mC(),vC=Object.freeze({__proto__:null,ServerStyleSheets:Iw,StylesContext:Cw,StylesProvider:Ew,ThemeProvider:function(e){var t=e.children,r=e.theme,n=bw(),o=S.useMemo(function(){var e=null===n?r:function(e,t){return"function"==typeof t?t(e):Gr({},e,t)}(n,r);return null!=e&&(e[xy]=null!==n),e},[r,n]);return S.createElement(gw.Provider,{value:o},t)},createGenerateClassName:wy,createStyles:function(e){return e},getThemeProps:Cy,jssPreset:cw,makeStyles:Pw,mergeClasses:pw,sheetsManager:Sw,styled:function(e){return function(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.name,i=dw(n,["name"]),a=o,s=Pw("function"==typeof t?function(e){return{root:function(r){return t(Gr({theme:e},r))}}}:{root:t},Gr({Component:e,name:o||e.displayName,classNamePrefix:a},i));t.filterProps&&(r=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var l=S.forwardRef(function(t,n){var o,i,a,l=t.children,u=t.className,c=t.clone,d=t.component,p=dw(t,["children","className","clone","component"]),f=Dw(s(t).root,u),h=p;if(r&&(o=h,i=r,a={},Object.keys(o).forEach(function(e){-1===i.indexOf(e)&&(a[e]=o[e])}),h=a),c)return S.cloneElement(l,Gr({className:Dw(l.props.className,f)},h));if("function"==typeof l)return l(Gr({className:f},h));var m=d||e;return S.createElement(m,Gr({ref:n,className:f},h),l)});return hC(l,e),l}},useTheme:bw,withStyles:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(r){var n=t.defaultTheme,o=t.withTheme,i=void 0!==o&&o,a=t.name,s=dw(t,["defaultTheme","withTheme","name"]),l=a,u=Pw(e,Gr({defaultTheme:n,Component:r,name:a||r.displayName,classNamePrefix:l},s)),c=S.forwardRef(function(e,t){e.classes;var o,s=e.innerRef,l=dw(e,["classes","innerRef"]),c=u(Gr({},r.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=bw()||n,a&&(d=Cy({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),S.createElement(r,Gr({ref:s||t,classes:c},d))});return hC(c,r),c}},withTheme:bC,withThemeCreator:mC}),yC=Qt(vC);
|
|
98
98
|
/** @license Material-UI v4.11.5
|
|
99
99
|
*
|
|
100
100
|
* This source code is licensed under the MIT license found in the
|
|
101
101
|
* LICENSE file in the root directory of this source tree.
|
|
102
|
-
*/var fC,hC,mC={},gC={};function vC(){if(fC)return gC;fC=1;var e=Zl;Object.defineProperty(gC,"__esModule",{value:!0}),gC.default=void 0;var t=(0,e(uy()).default)();return gC.default=t,gC}var bC,yC,xC={},SC={};function wC(){if(yC)return xC;yC=1;var e=Zl;Object.defineProperty(xC,"__esModule",{value:!0}),xC.default=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.breakpoints,a=void 0===i?["sm","md","lg"]:i,s=o.disableAlign,l=void 0!==s&&s,u=o.factor,c=void 0===u?2:u,d=o.variants,p=void 0===d?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:d,f=(0,t.default)({},e);f.typography=(0,t.default)({},f.typography);var h=f.typography,m=(0,n.convertLength)(h.htmlFontSize),g=a.map(function(e){return f.breakpoints.values[e]});return p.forEach(function(e){var o=h[e],i=parseFloat(m(o.fontSize,"rem"));if(!(i<=1)){var a=i,s=1+(a-1)/c,u=o.lineHeight;if(!(0,n.isUnitless)(u)&&!l)throw new Error((0,r.formatMuiErrorMessage)(6));(0,n.isUnitless)(u)||(u=parseFloat(m(u,"rem"))/parseFloat(i));var d=null;l||(d=function(e){return(0,n.alignProperty)({size:e,grid:(0,n.fontGrid)({pixels:4,lineHeight:u,htmlFontSize:h.htmlFontSize})})}),h[e]=(0,t.default)({},o,(0,n.responsiveProperty)({cssProperty:"fontSize",min:s,max:a,unit:"rem",breakpoints:g,transform:d}))}}),f};var t=e(Wu()),r=xg,n=function(){if(bC)return SC;bC=1;var e=Zl;Object.defineProperty(SC,"__esModule",{value:!0}),SC.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},SC.getUnit=r,SC.toUnitless=n,SC.convertLength=function(e){return function(t,o){var i=r(t);if(i===o)return t;var a=n(t);if("px"!==i)if("em"===i)a=n(t)*n(e);else if("rem"===i)return a=n(t)*n(e),t;var s=a;if("px"!==o)if("em"===o)s=a/n(e);else{if("rem"!==o)return t;s=a/n(e)}return parseFloat(s.toFixed(5))+o}},SC.alignProperty=function(e){var t=e.size,r=e.grid,n=t-t%r,o=n+r;return t-n<o-t?n:o},SC.fontGrid=function(e){var t=e.lineHeight;return e.pixels/(t*e.htmlFontSize)},SC.responsiveProperty=function(e){var r=e.cssProperty,n=e.min,o=e.max,i=e.unit,a=void 0===i?"rem":i,s=e.breakpoints,l=void 0===s?[600,960,1280]:s,u=e.transform,c=void 0===u?null:u,d=(0,t.default)({},r,"".concat(n).concat(a)),p=(o-n)/l[l.length-1];return l.forEach(function(e){var o=n+p*e;null!==c&&(o=c(o)),d["@media (min-width:".concat(e,"px)")]=(0,t.default)({},r,"".concat(Math.round(1e4*o)/1e4).concat(a))}),d};var t=e(Fg());function r(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function n(e){return parseFloat(e)}return SC}();return xC}var CC,EC={};var RC,AC={};var PC,MC={};var IC,kC={};!function(e){var t=Zl,r=Im;Object.defineProperty(e,"__esModule",{value:!0});var n={createTheme:!0,createMuiTheme:!0,unstable_createMuiStrictModeTheme:!0,createStyles:!0,makeStyles:!0,responsiveFontSizes:!0,styled:!0,useTheme:!0,withStyles:!0,withTheme:!0,createGenerateClassName:!0,jssPreset:!0,ServerStyleSheets:!0,StylesProvider:!0,MuiThemeProvider:!0,ThemeProvider:!0};Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"createMuiTheme",{enumerable:!0,get:function(){return i.createMuiTheme}}),Object.defineProperty(e,"unstable_createMuiStrictModeTheme",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"createStyles",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"makeStyles",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"responsiveFontSizes",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"styled",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"useTheme",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"withStyles",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"withTheme",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"createGenerateClassName",{enumerable:!0,get:function(){return m.createGenerateClassName}}),Object.defineProperty(e,"jssPreset",{enumerable:!0,get:function(){return m.jssPreset}}),Object.defineProperty(e,"ServerStyleSheets",{enumerable:!0,get:function(){return m.ServerStyleSheets}}),Object.defineProperty(e,"StylesProvider",{enumerable:!0,get:function(){return m.StylesProvider}}),Object.defineProperty(e,"MuiThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}});var o=km;Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(n,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))});var i=r(uy()),a=t(function(){if(cy)return dy;cy=1;var e=Zl;Object.defineProperty(dy,"__esModule",{value:!0}),dy.default=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.default.apply(void 0,[(0,t.deepmerge)({unstable_strictMode:!0},e)].concat(o))};var t=xg,r=e(uy());return dy}()),s=t(function(){if(uC)return py;uC=1,Object.defineProperty(py,"__esModule",{value:!0}),py.default=function(t){return(0,e.createStyles)(t)};var e=pC;return py}()),l=t(function(){if(hC)return mC;hC=1;var e=Zl;Object.defineProperty(mC,"__esModule",{value:!0}),mC.default=void 0;var t=e(Wu()),r=pC,n=e(vC()),o=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,r.makeStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return mC.default=o,mC}()),u=t(wC()),c=t(function(){if(CC)return EC;CC=1;var e=Zl;Object.defineProperty(EC,"__esModule",{value:!0}),EC.default=void 0;var t=e(Wu()),r=pC,n=e(vC()),o=function(e){var o=(0,r.styled)(e);return function(e,r){return o(e,(0,t.default)({defaultTheme:n.default},r))}};return EC.default=o,EC}()),d=iy();Object.keys(d).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(n,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return d[t]}}))});var p=t(function(){if(RC)return AC;RC=1;var e=Zl;Object.defineProperty(AC,"__esModule",{value:!0}),AC.default=function(){return(0,t.useTheme)()||r.default};var t=pC;e(S);var r=e(vC());return AC}()),f=t(function(){if(PC)return MC;PC=1;var e=Zl;Object.defineProperty(MC,"__esModule",{value:!0}),MC.default=void 0;var t=e(Wu()),r=pC,n=e(vC()),o=function(e,o){return(0,r.withStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return MC.default=o,MC}()),h=t(function(){if(IC)return kC;IC=1;var e=Zl;Object.defineProperty(kC,"__esModule",{value:!0}),kC.default=void 0;var t=pC,r=e(vC()),n=(0,t.withThemeCreator)({defaultTheme:r.default});return kC.default=n,kC}()),m=pC}(Rm),Rm.alpha($t.GREYSCALE_0,.05),Rm.alpha($t.GREEN_PALE,.5),Rm.alpha($t.BLUE_PALE,.5),Rm.alpha($t.GREEN_PALE,.5),Rm.alpha($t.BLUE_PALE,.5),Rm.alpha($t.GREEN_PALE,.5),Rm.alpha($t.BLUE_PALE,.5),Rm.alpha($t.GREEN_PALE,.5),Rm.alpha($t.BLUE_PALE,.5),Rm.alpha($t.GREEN_PALE,.5),Rm.alpha($t.BLUE_PALE,.5);const DC=(e="light")=>({components:wm(),palette:Cm(),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:Bt,fontWeightLight:Gt,fontWeightRegular:Yt,fontWeightMedium:Kt,fontWeightBold:Xt,htmlFontSize:Bt,fontFamily:Jt.FONT_FAMILY,button:{fontWeight:Kt,fontSize:Bt,textTransform:"none"},body1:{fontSize:Wt,lineHeight:"24px"},body2:{fontSize:Bt,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Vt,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Wt,fontWeight:Kt,lineHeight:"16px"},h6:{fontSize:Bt,fontWeight:Kt,lineHeight:"16px"},caption:{color:$t.TEXT_SECONDARY},subtitle1:{fontSize:Bt,color:$t.TEXT_SECONDARY},subtitle2:{fontSize:Ht,color:$t.TEXT_SECONDARY}},shape:{borderRadius:Ut}}),TC=DC().palette,OC={TEXT:TC.text.primary,DISABLED:TC.text.disabled,HOVER:TC.action.hover,WHITE:Em.GREYSCALE_100,BORDER_LIGHT:Em.GREYSCALE_90,BORDER_MEDIUM:Em.GREYSCALE_85,BORDER_HEAVY:Em.GREYSCALE_50,DARK_MODE_TEXT:Em.GREYSCALE_95,DARK_MODE_BORDER:Em.GREYSCALE_95,DARK_MODE_DISABLED:Em.GREYSCALE_70,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:Em.GREYSCALE_95,SELECTED:TC.primary.main,LINK:TC.info.main,ERROR:TC.error.main},LC=(e,t=OC.TEXT,r=OC.WHITE)=>{const n=ie(e??""),o=ie(t),i=ie(r);return n.isInvalid()?t:function(e,t,r){const n=ae(e,t),o=ae(e,r);if(void 0!==n&&void 0!==o)return n>o?t:r}(n,i,o).getRGB()},qC=e=>{const t=e.getStyle("","","dataColors.selected")||OC.SELECTED,r=function(e,t){const r=ie(se),n=ie(e),o=ie(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;const i=ae(r,n),a=ae(o,n),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?se:"#000000"}(t,OC.TEXT);return{background:t,color:r}},NC=(e,t)=>{const r=ie(e);return 0===r.a?(r.setAlpha(t.opacity),r.getString()):r.isDark()?r.getBrightenedColor(t.brighter).getString():r.getDarkenedColor(t.darker).getString()},_C=(e,t,r)=>{const n=t?e.getColorPickerColor(t):"none";return"none"===n?r:n},jC=e=>{const t=ie(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},zC=(e,t,r)=>{const n=e.closest(".qv-object-wrapper")?.querySelector(".sel-toolbar-confirm")?.parentElement??document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm")?.parentElement;n?n.focus():t.focusSelection?.(r)},FC=e=>{e.stopPropagation(),e.preventDefault()},$C=e=>!!e&&0===ie(e).a,HC="#grid",BC=(e,t,r,n=OC.WHITE)=>e&&!$C(e)?e:$C(t)?r&&!$C(r)?r:n:t,WC=(e,t)=>{const r=t?.closest(e);return r&&window.getComputedStyle(r).backgroundColor},VC=(e,t,r,n,o)=>{const i=WC(".qv-object .qv-inner-object",r),a=WC(".qv-panel-sheet",r),s=WC(HC,r)??a,l=(e=>{const t=e.components?.find(e=>"general"===e.key),r=t?.bgColor?.colorExpression,n=t?.bgColor?.color?.color,o=t?.bgColor?.useColorExpression;if(o&&r)return jC(r);if("none"===n)return"transparent";if(void 0===n)return;const i=ie(n);return i.setAlpha(t?.bgColor?.color?.alpha??i.a),i.getRGBA()})(e),u=n?.(t),c=o?.(t),d=l||u||i||c,p=$C(d),f=!$C(h=p?s:d)&&LC(h,OC.TEXT,OC.DARK_MODE_TEXT)===ee(OC.DARK_MODE_TEXT);var h;return{color:d,headerColor:BC(l,d,s),isDark:f}},UC=(t,r,a,s)=>{const l=i(),u=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,i]=n([]);return o(()=>{let r;return e&&(r=new MutationObserver(e=>{i(e)}),r.observe(e,t)),()=>{r?.disconnect()}},[e,t]),r})(r.closest(HC),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter(({oldValue:e})=>e?.includes("background")).map(({oldValue:e})=>e).join(",");return e(()=>({...l,background:VC(t,l,r,a,s)}),[l.name(),r,a,s,t,u])};const GC=3,YC=/\n/g;function KC(e,t,r){let n=0,o=e.length;if(Number.isNaN(t))return null;if(e.length<=1)return null;if(r(e)<=t)return null;for(;n<=o;){const i=Math.floor((n+o)/2),a=e.slice(0,i),s=e.slice(0,i-1),l=r(a),u=r(s);if(l>t&&u<=t)return e.slice(i-1)||null;if(l===t)return e.slice(i)||null;l<t?n=i+1:o=i}return null}const XC=({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o)=>{const{maxNbrLinesOfText:i=GC,allowLineBreaks:a=!0}=o??{};return()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const s=o.measureText.bind(o),l=Mt(e=>{if(void 0===e)return 0;if(a){const t=e.split(YC).map(e=>s(e).width);return t.reduce((e,t)=>t>e?t:e,0)}const t=e.replace(YC," ");return s(t).width}),u=e=>+l(e).toFixed(2),c=Mt(({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;const n=a?e.split(YC):[e];let o=0;for(const e of n){let r=e;do{o+=1,r=KC(r,t,u)}while(null!==r&&o<i);if(o>=i)break}return o},({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`);return{measureText:e=>l(e),estimateWidth:e=>l("N")*e,estimateLineCount:c}}};function JC({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=GC,allowLineBreaks:a=!0}={},{estimateWidth:s,measureText:l,estimateLineCount:u}=A(()=>XC({fontStyle:r,fontWeight:n,fontSize:e,fontFamily:t},{maxNbrLinesOfText:i,allowLineBreaks:a})(),[r,n,e,t,i,a]);return{estimateWidth:s,measureText:l,estimateLineCount:u}}var ZC,QC=B;ZC=QC.createRoot,QC.hydrateRoot;const eE="Source Sans Pro, sans-serif",tE=(t,n,o)=>{const[,i,a]=function(t,n){const o=e(()=>({isLoading:!0}),n),[i,a]=r(async()=>{try{return await t()}finally{o.isLoading=!1}},n);return[i,o.isLoading,a]}(async()=>{const e=we(o.flags),r=t.getStyle("","","fontFamily"),n=t.getStyle("object","label.name","fontFamily"),i=t.getStyle("object","label.value","fontFamily"),a=t.getStyle("","","fontFamilies")??[];return Promise.all([...e,...a,r,n,i,eE].filter(e=>void 0!==e).map(async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)}))},[n,t,o]);return a?(console.warn("Failed to load fonts:",a),!0):!i};function rE(e,t){const[r,n]=P(t);r.some((e,r)=>e!==t[r])&&(n(t),e())}var nE={NebulaTableUtils_ColumnAdjuster_ColumnNameLabel:{id:"NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",locale:{"de-DE":"Breite von {0}","en-US":"Width of {0}","es-ES":"Ancho de {0}","fr-FR":"Largeur de {0}","it-IT":"Larghezza di {0}","ja-JP":"{0} の幅","ko-KR":"{0}의 너비","nl-NL":"Breedte van {0}","pl-PL":"Szerokość kolumny {0}","pt-BR":"Comprimento de {0}","ru-RU":'Ширина столбца "{0}"',"sv-SE":"Bredd på {0}","tr-TR":"{0} genişliği","zh-CN":"{0} 的宽度","zh-TW":"{0} 的寬度"}},NebulaTableUtils_MenuGroupLabel_Sorting:{id:"NebulaTableUtils.MenuGroupLabel.Sorting",locale:{"de-DE":"Sortierung","en-US":"Sorting","es-ES":"Ordenación","fr-FR":"Tri","it-IT":"Ordinamento","ja-JP":"ソート","ko-KR":"정렬","nl-NL":"Sorteren","pl-PL":"Sortowanie","pt-BR":"Classificação","ru-RU":"Сортировка","sv-SE":"Sortering","tr-TR":"Sıralama","zh-CN":"排序","zh-TW":"排序"}},NebulaTableUtils_MenuItemLabel_AdjustColumnSize:{id:"NebulaTableUtils.MenuItemLabel.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},NebulaTableUtils_MenuItemLabel_ClearSelections:{id:"NebulaTableUtils.MenuItemLabel.ClearSelections",locale:{"de-DE":"Auswahlen löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Geselecteerde waarden wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},NebulaTableUtils_MenuItemLabel_Collapse:{id:"NebulaTableUtils.MenuItemLabel.Collapse",locale:{"de-DE":"Reduzieren","en-US":"Collapse","es-ES":"Contraer","fr-FR":"Réduire","it-IT":"Comprimi","ja-JP":"折りたたむ","ko-KR":"축소","nl-NL":"Samenvouwen","pl-PL":"Zwiń","pt-BR":"Recolher","ru-RU":"Свернуть","sv-SE":"Dölj","tr-TR":"Daralt","zh-CN":"折叠","zh-TW":"收合"}},NebulaTableUtils_MenuItemLabel_ColumnOptions:{id:"NebulaTableUtils.MenuItemLabel.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбца","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},NebulaTableUtils_MenuItemLabel_Expand:{id:"NebulaTableUtils.MenuItemLabel.Expand",locale:{"de-DE":"Erweitern","en-US":"Expand","es-ES":"Expandir","fr-FR":"Développer","it-IT":"Espandi","ja-JP":"展開","ko-KR":"확장","nl-NL":"Uitvouwen","pl-PL":"Rozwiń","pt-BR":"Expandir","ru-RU":"Развернуть","sv-SE":"Utöka","tr-TR":"Genişlet","zh-CN":"展开","zh-TW":"展開"}},NebulaTableUtils_MenuItemLabel_Search:{id:"NebulaTableUtils.MenuItemLabel.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},NebulaTableUtils_MenuItemLabel_SelectAll:{id:"NebulaTableUtils.MenuItemLabel.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},NebulaTableUtils_MenuItemLabel_SelectAlternative:{id:"NebulaTableUtils.MenuItemLabel.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대체 가능 값 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},NebulaTableUtils_MenuItemLabel_SelectExcluded:{id:"NebulaTableUtils.MenuItemLabel.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},NebulaTableUtils_MenuItemLabel_SelectPossible:{id:"NebulaTableUtils.MenuItemLabel.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},NebulaTableUtils_MenuItemLabel_Selections:{id:"NebulaTableUtils.MenuItemLabel.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택 내용","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},NebulaTableUtils_MenuItemLabel_SortAscending:{id:"NebulaTableUtils.MenuItemLabel.SortAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortieren","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Trier par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},NebulaTableUtils_MenuItemLabel_SortDescending:{id:"NebulaTableUtils.MenuItemLabel.SortDescending",locale:{"de-DE":"In absteigender Reihenfolge sortieren","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Trier par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},NebulaTableUtils_Pagination_DisplayedRowsLabel:{id:"NebulaTableUtils.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{0}/{1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},NebulaTableUtils_Pagination_FirstPage:{id:"NebulaTableUtils.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},NebulaTableUtils_Pagination_LastPage:{id:"NebulaTableUtils.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},NebulaTableUtils_Pagination_NextPage:{id:"NebulaTableUtils.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},NebulaTableUtils_Pagination_PreviousPage:{id:"NebulaTableUtils.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},NebulaTableUtils_Pagination_RowsPerPage:{id:"NebulaTableUtils.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},NebulaTableUtils_Pagination_SelectPage:{id:"NebulaTableUtils.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}}};const oE=({translator:e})=>(A(()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(nE).forEach(t=>{e.add(nE[t])})}}(e)},[e]),e),iE="12px",aE="nebula-table-utils-head-menu-button",sE="nebula-table-utils-head-menu-wrapper",lE="nebula-table-utils-head-menu",uE="nebula-table-utils-head-menu-list-id",cE="sn-copy-cell";let dE=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.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.F2="F2",e}({});const pE="nebula-table-utils-column-adjuster";let fE=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}({}),hE=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const mE={darker:.15,brighter:.3,opacity:.03},gE={darker:.3,brighter:.5,opacity:.05};let vE=function(e){return e.Cyclic="C",e}({});const bE=document.createElement("textarea");function yE(e){bE.value=e,document.body.appendChild(bE),bE.select(),bE.setSelectionRange(0,bE.value.length),document.execCommand("copy"),document.body.removeChild(bE)}bE.style.position="absolute",bE.style.left="-9999px",bE.setAttribute("readonly","");const xE=e=>{const t=e.title;t&&(navigator.clipboard?.writeText?navigator.clipboard.writeText(t).catch(()=>{yE(t)}):yE(t))};function SE(e){return"init"in e}function wE(e){return!!e.write}function CE(e){return"v"in e||"e"in e}function EE(e){if("e"in e)throw e.e;if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}function RE(e){return"function"==typeof(null==e?void 0:e.then)}function AE(e,t,r){if(!r.p.has(e)){r.p.add(e);const n=()=>r.p.delete(e);t.then(n,n)}}function PE(e,t,r){var n;const o=new Set;for(const t of(null==(n=r.get(e))?void 0:n.t)||[])o.add(t);for(const e of t.p)o.add(e);return o}const ME=()=>{const e={},t=new WeakMap,r=r=>{var n,o;null==(n=t.get(e))||n.forEach(e=>e(r)),null==(o=t.get(r))||o.forEach(e=>e())};return r.add=(r,n)=>{const o=r||e;let i=t.get(o);return i||(i=new Set,t.set(o,i)),i.add(n),()=>{i.delete(n),i.size||t.delete(o)}},r};function IE(e){return e.i||(e.i=ME()),e.r||(e.r=ME()),e.c||(e.c=ME()),e.m||(e.m=ME()),e.u||(e.u=ME()),e.f||(e.f=(()=>{const e=new Set,t=()=>e.forEach(e=>e());return t.add=t=>(e.add(t),()=>e.delete(t)),t})()),e}const kE=(e,t,...r)=>t.read(...r),DE=(e,t,...r)=>t.write(...r),TE=(e,t)=>{var r;return null==(r=t.INTERNAL_onInit)?void 0:r.call(t,e)},OE=(e,t,r)=>{var n;return null==(n=t.onMount)?void 0:n.call(t,r)},LE=(e,t)=>{var r;const n=JE(e),o=n[0],i=n[6],a=n[9];if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&!t)throw new Error("Atom is undefined or null");let s=o.get(t);return s||(s={d:new Map,p:new Set,n:0},o.set(t,s),null==(r=i.i)||r.call(i,t),null==a||a(e,t)),s},qE=e=>{const t=JE(e),r=t[1],n=t[3],o=t[4],i=t[5],a=t[6],s=t[13],l=[],u=e=>{try{e()}catch(e){l.push(e)}};do{a.f&&u(a.f);const t=new Set,l=t.add.bind(t);n.forEach(e=>{var t;return null==(t=r.get(e))?void 0:t.l.forEach(l)}),n.clear(),i.forEach(l),i.clear(),o.forEach(l),o.clear(),t.forEach(u),n.size&&s(e)}while(n.size||i.size||o.size);if(l.length)throw new AggregateError(l)},NE=e=>{const t=JE(e),r=t[1],n=t[2],o=t[3],i=t[11],a=t[14],s=t[17],l=[],u=new WeakSet,c=new WeakSet,d=Array.from(o);for(;d.length;){const t=d[d.length-1],o=i(e,t);if(c.has(t))d.pop();else if(u.has(t)){if(n.get(t)===o.n)l.push([t,o]);else if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&n.has(t))throw new Error("[Bug] invalidated atom exists");c.add(t),d.pop()}else{u.add(t);for(const e of PE(t,o,r))u.has(e)||d.push(e)}}for(let t=l.length-1;t>=0;--t){const[r,i]=l[t];let u=!1;for(const e of i.d.keys())if(e!==r&&o.has(e)){u=!0;break}u&&(n.set(r,i.n),a(e,r),s(e,r)),n.delete(r)}},_E=new WeakSet,jE=(e,t)=>{var r,n;const o=JE(e),i=o[1],a=o[2],s=o[3],l=o[6],u=o[7],c=o[11],d=o[12],p=o[13],f=o[14],h=o[16],m=o[17],g=o[20],v=o[26],b=o[28],y=c(e,t),x=b[0];if(CE(y)){if(i.has(t)&&a.get(t)!==y.n||y.m===x)return y.m=x,y;let r=!1;for(const[t,n]of y.d)if(f(e,t).n!==n){r=!0;break}if(!r)return y.m=x,y}let S=!0;const w=new Set(y.d.keys()),C=new Map,E=()=>{for(const e of w)C.has(e)||y.d.delete(e)},R=()=>{if(i.has(t)){const r=!s.size;m(e,t),r&&(p(e),d(e))}},A=r=>{var n;if(r===t){const t=c(e,r);if(!CE(t)){if(!SE(r))throw new Error("no atom init");g(e,r,r.init)}return EE(t)}const o=f(e,r);try{return EE(o)}finally{C.set(r,o.n),y.d.set(r,o.n),RE(y.v)&&AE(t,y.v,o),i.has(t)&&(null==(n=i.get(r))||n.t.add(t)),S||R()}};let P,M;const I={get signal(){return P||(P=new AbortController),P.signal},get setSelf(){return"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&console.warn("[DEPRECATED] setSelf is deprecated and will be removed in v3."),"production"===(import.meta.env?import.meta.env.MODE:void 0)||wE(t)||console.warn("setSelf function cannot be used with read-only atom"),!M&&wE(t)&&(M=(...r)=>{if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&S&&console.warn("setSelf function cannot be called in sync"),!S)try{return h(e,t,...r)}finally{p(e),d(e)}}),M}},k=y.n,D=a.get(t)===k;try{"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&_E.delete(e);const n=u(e,t,A,I);if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&_E.has(e)&&console.warn("Detected store mutation during atom read. This is not supported."),g(e,t,n),RE(n)){v(e,n,()=>null==P?void 0:P.abort());const t=()=>{E(),R()};n.then(t,t)}else E();return null==(r=l.r)||r.call(l,t),y.m=x,y}catch(e){return delete y.v,y.e=e,++y.n,y.m=x,y}finally{S=!1,y.n!==k&&D&&(a.set(t,y.n),s.add(t),null==(n=l.c)||n.call(l,t))}},zE=(e,t)=>{const r=JE(e),n=r[1],o=r[2],i=r[11],a=[t];for(;a.length;){const t=a.pop(),r=i(e,t);for(const s of PE(t,r,n)){const t=i(e,s);o.get(s)!==t.n&&(o.set(s,t.n),a.push(s))}}},FE=(e,t,...r)=>{const n=JE(e),o=n[3],i=n[6],a=n[8],s=n[11],l=n[12],u=n[13],c=n[14],d=n[15],p=n[16],f=n[17],h=n[20],m=n[28];let g=!0;const v=t=>EE(c(e,t)),b=(r,...n)=>{var a;const c=s(e,r);try{if(r===t){if(!SE(r))throw new Error("atom not writable");"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&_E.add(e);const t=c.n,s=n[0];return h(e,r,s),f(e,r),void(t!==c.n&&(++m[0],o.add(r),d(e,r),null==(a=i.c)||a.call(i,r)))}return p(e,r,...n)}finally{g||(u(e),l(e))}};try{return a(e,t,v,b,...r)}finally{g=!1}},$E=(e,t)=>{var r;const n=JE(e),o=n[1],i=n[3],a=n[6],s=n[11],l=n[15],u=n[18],c=n[19],d=s(e,t),p=o.get(t);if(p){for(const[n,o]of d.d)if(!p.d.has(n)){const c=s(e,n);u(e,n).t.add(t),p.d.add(n),o!==c.n&&(i.add(n),l(e,n),null==(r=a.c)||r.call(a,n))}for(const r of p.d)if(!d.d.has(r)){p.d.delete(r);const n=c(e,r);null==n||n.t.delete(t)}}},HE=(e,t)=>{var r;const n=JE(e),o=n[1],i=n[4],a=n[6],s=n[10],l=n[11],u=n[12],c=n[13],d=n[14],p=n[16],f=n[18],h=l(e,t);let m=o.get(t);if(!m){d(e,t);for(const r of h.d.keys()){f(e,r).t.add(t)}if(m={l:new Set,d:new Set(h.d.keys()),t:new Set},o.set(t,m),wE(t)){const r=()=>{let r=!0;const n=(...n)=>{try{return p(e,t,...n)}finally{r||(c(e),u(e))}};try{const o=s(e,t,n);o&&(m.u=()=>{r=!0;try{o()}finally{r=!1}})}finally{r=!1}};i.add(r)}null==(r=a.m)||r.call(a,t)}return m},BE=(e,t)=>{var r,n;const o=JE(e),i=o[1],a=o[5],s=o[6],l=o[11],u=o[19],c=l(e,t);let d=i.get(t);if(!d||d.l.size)return d;let p=!1;for(const e of d.t)if(null==(r=i.get(e))?void 0:r.d.has(t)){p=!0;break}if(p)return d;d.u&&a.add(d.u),d=void 0,i.delete(t);for(const r of c.d.keys()){const n=u(e,r);null==n||n.t.delete(t)}null==(n=s.u)||n.call(s,t)},WE=(e,t,r)=>{const n=JE(e),o=n[11],i=n[27],a=o(e,t),s="v"in a,l=a.v;if(RE(r))for(const n of a.d.keys())AE(t,r,o(e,n));a.v=r,delete a.e,s&&Object.is(l,a.v)||(++a.n,RE(l)&&i(e,l))},VE=(e,t)=>EE((0,JE(e)[14])(e,t)),UE=(e,t,...r)=>{const n=JE(e),o=n[3],i=n[12],a=n[13],s=n[16],l=o.size;try{return s(e,t,...r)}finally{o.size!==l&&(a(e),i(e))}},GE=(e,t,r)=>{const n=JE(e),o=n[12],i=n[18],a=n[19],s=i(e,t).l;return s.add(r),o(e),()=>{s.delete(r),a(e,t),o(e)}},YE=(e,t,r)=>{const n=JE(e)[25];let o=n.get(t);if(!o){o=new Set,n.set(t,o);const e=()=>n.delete(t);t.then(e,e)}o.add(r)},KE=(e,t)=>{const r=JE(e)[25].get(t);null==r||r.forEach(e=>e())},XE=new WeakMap,JE=e=>{const t=XE.get(e);if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&!t)throw new Error("Store must be created by buildStore to read its building blocks");return t};function ZE(e){const t=JE(e),r=t[24];return r?r(t):t}let QE,eR=0;function tR(e,t){const r="atom"+ ++eR,n={toString(){return"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&this.debugLabel?r+":"+this.debugLabel:r}};return"function"==typeof e?n.read=e:(n.init=e,n.read=rR,n.write=nR),t&&(n.write=t),n}function rR(e){return e(this)}function nR(e,t,r){return t(this,"function"==typeof r?r(e(this)):r)}function oR(){return function(...e){const t={get:e=>(0,JE(t)[21])(t,e),set:(e,...r)=>(0,JE(t)[22])(t,e,...r),sub:(e,r)=>(0,JE(t)[23])(t,e,r)},r=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},kE,DE,TE,OE,LE,qE,NE,jE,zE,FE,$E,HE,BE,WE,VE,UE,GE,void 0,new WeakMap,YE,KE,[0]].map((t,r)=>e[r]||t);return XE.set(t,Object.freeze(r)),t}()}const iR=I(void 0);function aR(e){return L(iR)||(QE||(QE=oR(),"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=QE),globalThis.__JOTAI_DEFAULT_STORE__!==QE&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),QE)}function sR({children:e,store:t}){const r=M(null);return t?w(iR.Provider,{value:t},e):(null===r.current&&(r.current=oR()),w(iR.Provider,{value:r.current},e))}const lR=e=>"function"==typeof(null==e?void 0:e.then),uR=e=>{e.status||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}))},cR=S.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(uR(e),e)}),dR=new WeakMap,pR=(e,t,r)=>{const n=ZE(e)[26];let o=dR.get(t);return o||(o=new Promise((i,a)=>{let s=t;const l=e=>t=>{s===e&&i(t)},u=e=>t=>{s===e&&a(t)},c=()=>{try{const t=r();lR(t)?(dR.set(t,o),s=t,t.then(l(t),u(t)),n(e,t,c)):i(t)}catch(e){a(e)}};t.then(l(t),u(t)),n(e,t,c)}),dR.set(t,o)),o};function fR(e,t){const{delay:r,unstable_promiseStatus:n=!S.use}={},o=aR(),[[i,a,s],l]=k(t=>{const r=o.get(e);return Object.is(t[0],r)&&t[1]===o&&t[2]===e?t:[r,o,e]},void 0,()=>[o.get(e),o,e]);let u=i;if(a===o&&s===e||(l(),u=o.get(e)),D(()=>{const t=o.sub(e,()=>{if(n)try{const t=o.get(e);lR(t)&&uR(pR(o,t,()=>o.get(e)))}catch(e){}if("number"==typeof r)return console.warn("[DEPRECATED] delay option is deprecated and will be removed in v3.\n\nMigration guide:\n\nCreate a custom hook like the following.\n\nfunction useAtomValueWithDelay<Value>(\n atom: Atom<Value>,\n options: { delay: number },\n): Value {\n const { delay } = options\n const store = useStore(options)\n const [value, setValue] = useState(() => store.get(atom))\n useEffect(() => {\n const unsub = store.sub(atom, () => {\n setTimeout(() => setValue(store.get(atom)), delay)\n })\n return unsub\n }, [store, atom, delay])\n return value\n}\n"),void setTimeout(l,r);l()});return l(),t},[o,e,r,n]),T(u),lR(u)){const t=pR(o,u,()=>o.get(e));return n&&uR(t),cR(t)}return u}function hR(e,t){const r=aR();return O((...t)=>{if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&!("write"in e))throw new Error("not writable atom");return r.set(e,...t)},[r,e])}function mR(e,t){return[fR(e),hR(e)]}const gR=tR(void 0),vR=tR({viewState:void 0,isDownloadedAsPDForImage:!1,waitForPromise:()=>{},notifyIsDoneRendering:()=>Promise.resolve()}),bR=tR({}),yR=tR({}),xR=tR(e=>{const t=e(yR);return e=>t.flags.isEnabled(e)}),SR=tR(!1),wR=tR({qHyperCube:{qDimensionInfo:[],qSize:{qcx:0,qcy:0}}}),CR=tR(e=>e(wR).qHyperCube.qSize.qcy),ER=tR(e=>!!e(wR).snapshotData),RR=tR(e=>e(wR).qHyperCube.qDimensionInfo.length),AR=tR(e=>e(wR).qStateName),PR=tR(e=>e(wR).snapshotData),MR=tR(e=>!1!==e(wR).usePagination),IR=tR(e=>!e(xR)("CLIENT_VNA_373_IMPROVE_TABLE_HEADERS")||!1!==e(wR).accessibleHeader),kR=tR(),DR=tR(!1),TR=tR(e=>e(kR),(e,t,r)=>{t(kR,r),t(DR,r.isModal())}),OR=tR(),LR=tR(e=>{const t=e(OR),r=e(ER);return{...t,select:!!t?.active&&!!t.select&&!r,active:!!t?.active&&!r,scroll:!!t?.active}},(e,t,r)=>{t(OR,r)}),qR=tR(e=>!!e(LR).active),NR=tR(e=>!!e(LR).passive),_R=tR(e=>!!e(LR).select),jR=tR(e=>!!e(LR).scroll),zR=tR(e=>{const t=e(qR),r=e(DR);return t&&!r}),FR=(e,t)=>!(!e.snapshotData&&!t?.visibleHeight),$R=tR(),HR=tR(e=>e($R)?.direction),BR=tR(e=>e($R)?.footerContainer),WR=tR(e=>e($R)?.viewState),VR=tR(e=>e($R)?.freeResize),UR=tR(e=>{const t=e(wR),r=e(WR),n=e(MR);return void 0!==r?.usePagination?r.usePagination:n||FR(t,r)}),GR=tR({active:!1,enabled:!1,blur:()=>{},focus:()=>{},focusSelection:()=>{}}),YR=tR(e=>e(GR),(e,t,r)=>{e(UR)&&t(GR,r)}),KR=tR(),XR=tR(e=>{const t=e(KR);if(t&&"getEffectiveProperties"in t)return t}),JR={width:0,height:0,top:0,left:0},ZR=tR(JR),QR=tR(JR),eA=tR(e=>e(ZR),(e,t,r)=>{const n=e(wR),o=e(VR),i=e(ZR),a=n.snapshotData?.content&&!o;(i.width!==r.width||i.height!==r.height||i.top!==r.top||i.left!==r.left||a)&&(t(QR,r),t(ZR,a?{...r,...n.snapshotData?.content?.size}:r))}),tA=tR({}),rA=new WeakMap,nA=tR(e=>{const t=e(tA),r=rA.get(t);if(r)return r;const n=ZC(t);return rA.set(t,n),n}),oA=tR({getColorPickerColor:()=>{},name:()=>{},getStyle:()=>{},background:{isDark:!1}}),iA=tR({get:e=>e,add:()=>{},language:()=>"en"});var aA={exports:{}};self,aA.exports=(()=>{var e={909:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}},8:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>De});var e=n(229),t=n.n(e);const r=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var s=a[i];return a[i]=r,{updated:r,previous:s}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function u(e){return s+e+l}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function h(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function v(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function b(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(v("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(v("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=b(c(n[0],o),h(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=h(0),m=h(1),g=b(d,f),v=b(p,m);return"".concat(a,"({1<").concat(g,",").concat(v,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const w={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var s=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var c=h(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var d=h(0),p=h(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return m(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=h(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(s);if(-1!==r){var n=t.indexOf(l);if(-1!==n)return t.substring(r+s.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach(function(r){void 0===e[r]&&(e[r]=t[r])})},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var s=S({properties:t,layout:r});return s>=o&&s<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(s),r=e.indexOf(l);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:h,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find(function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null});o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find(function(t){return t.value===e.decomposition});return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find(function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r}),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}var R=t().bind(null,!0),A={},P=Array.isArray;function M(e){return null!=e&&!Array.isArray(e)&&"object"===E(e)}function I(e){return void 0===e}function k(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function D(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach(function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=I(e[r||t])?i:e[t],e=e[r||t]}}),e}function T(e,t){var r=!0;if(M(e)&&M(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(function(n){T(e[n],t[n])||(r=!1)}),r);if(P(e)&&P(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!T(e[n],t[n]))return!1;return!0}return e===t}A.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach(function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);T(i,a)||k(t,o)||(I(a)?n.push({op:"add",path:s,value:i}):M(i)&&M(a)?n=n.concat(A.generate(a,i,s)):P(i)&&P(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&I(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(T(t,o))return n;if(!I(t[0])&&I(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(n.push({op:"remove",path:"".concat(r,"/").concat(s)}),o.splice(s,1)):n=n.concat(A.generate(o[s],t[i],"".concat(r,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return n}(a,i,s)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))}),Object.keys(e).forEach(function(o){I(t[o])&&!k(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})}),n},A.apply=function(e,t){t.forEach(function(t){var r,n,o=D(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(P(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(P(a)&&P(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return C(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(M(a)&&M(t.value))r=a,Object.keys(r).forEach(function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!k(r,e)&&delete r[e]}),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=D(e,t.from);P(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(P(o)?o.splice(+i,1):delete o[i])})},A.clone=function(e){return R({},e)},A.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},A.updateObject=function(e,t){Object.keys(e).length?A.apply(e,A.generate(e,t)):R(e,t)};const O=A,L=function(e,r,n){if(!e)return Promise.resolve();var o=O.generate(r,n);return t()(!0,r,n),o&&o.length?(o=o.map(function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}}),e.applyPatches(o,!0)):Promise.resolve()};var q="accumulation";function N(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===q)return r[n]}function _(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===q)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var j={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=w.getNumStepComp(r,l),p=w.getAboveComp(r,l,c,d),f=w.getRangeComp("RangeSum",p);if(w.needDimension({modifier:r,properties:n,layout:o})){var h=w.getDimComp(u,1),m=w.getDimComp(u,0),g=w.getAggrComp(f,h,m);f=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,valueComp:g}):g}return f},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,j)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(_(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(_(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(_(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(_(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=N(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=N(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(_(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(q))return!1;var i=N(t,e);return i&&!i.disabled}};return r}};var F="movingAverage";function $(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===F)return r[n]}function H(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===F)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var u=s;void 0===u&&(u=w.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=w.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=w.getNumStepComp(n,u),h=w.getAboveComp(n,u,p,f);if(n.nullSuppression)t=w.getRangeComp("RangeAvg",h);else{var m=w.getRangeComp("RangeSum",h),g=function(e,t){var r=w.getRowNoComp(e,t);if(!w.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(m," / ").concat(g)}var v=t;if(w.needDimension({modifier:n,properties:o,layout:a})){var b=w.getDimComp(c,1),y=w.getDimComp(c,0),x=w.getAggrComp(v,b,y);v=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return v},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,B)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(H(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(H(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(H(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(H(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=$(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=$(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(H(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(H(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(F))return!1;var i=$(t,e);return i&&!i.disabled}};return r}};var V="timeSeriesDecomposition";function U(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===V)return r[n]}function G(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===V)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?w.generateTSDExpression(r,t,n):t},extractInputExpression:w.extractInputExpression,initModifier:function(e,t){w.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=w.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(G(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(G(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=U(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map(function(e){return e.qDef.modifiers.map(function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e}),e})}},show:function(t){var r=U(t,e);return r&&!r.fullRange}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(V))return!1;var i=U(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=w.getAboveComp(r,l,c),p="".concat(c," - ").concat(d);if(w.needDimension({modifier:r,properties:n,layout:o})){var f=w.getDimComp(u,1),h=w.getDimComp(u,0),m=w.getAggrComp(p,f,h);p=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,funcComp:"Only",valueComp:m}):m}return p},initModifier:function(e){Object.keys(Q).forEach(function(t){void 0===e[t]&&(e[t]=Q[t])})},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,r){return 1===e?"{$<".concat(w.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(w.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var s=ae(t),l=se(t,r,n),u=""===s&&""===l?"":s||l,c=le(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=w.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,l,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach(function(t){void 0===e[t]&&(e[t]=ie[t])})},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then(function(e){return e.map(function(e){return{label:e.qName,value:e.qName}})})},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",he="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,me)?me:he},getLibraryId:function(e){return i(e,me)||i(e,he)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var ve="qDef.qDef",be="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",we="qDef.qLabelExpression",Ce="qDef.base.qLabel",Ee="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",Pe={initBase:function(e,t){(t||Pe.isValid(e))&&(r(e,be,i(e,ve)),r(e,xe,i(e,ye)),r(e,Ce,i(e,Se)),r(e,Ee,i(e,we)))},restoreBase:function(e){Pe.isValid(e)&&(r(e,ve,i(e,be)),r(e,ye,i(e,xe)),r(e,Se,i(e,Ce)),r(e,we,i(e,Ee)),i(e,Re)&&i(e,Ae)&&r(e,Re,i(e,Ae)),delete e.qDef.base)},isValid:function(e){var t=i(e,be),r=i(e,xe);return void 0!==t||void 0!==r}};const Me=Pe;function Ie(e){return Ie="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},Ie(e)}var ke={accumulation:z,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const De={modifiers:ke,apply:Oe,applyModifiers:Le,cleanUpMeasure:qe,destroy:function(e){e&&Te[e.id]&&Te[e.id].masterItemSubscriber&&(Te[e.id].masterItemSubscriber&&Te[e.id].masterItemSubscriber.unsubscribe(),delete Te[e.id])},hasActiveModifiers:Ne,getActiveModifier:_e,initBase:Me.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some(function(e){return ke[e]})},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some(function(e){return ke[e]&&ke[e].isApplicable({properties:r,layout:n})})},measureBase:ge,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach(function(e){var t=Fe(e);Ge({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))}),o&&!i},ifEnableTotalsFunction:je};var Te={};function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,s=e.masterItem,l=!1;Te[r.id]=Te[r.id]||{isFirstTime:!0};var u=Te[r.id].isFirstTime;if(Te[r.id].isFirstTime=!1,n&&"object"===Ie(n))return Le({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var p=i(c,"qHyperCube.qMeasureInfo"),f=Te[r.id].lastReloadTime;if(Te[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),Ne({measures:p,layout:c})){var h=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Ue({measure:e,properties:r,layout:n})})}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return h||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some(function(e){return function(e){var t=e.measure,r=e.layout;return Ge({modifiers:Fe(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})}))}({measures:p,layout:c,masterItem:s,isFirstTime:u})?r.getEffectiveProperties().then(function(e){var n=t()(!0,{},e);He(n);var o=Qe(n);return Ye({model:r}).then(function(t){return Ke({libraryIds:o,model:r}).then(function(o){return h&&function(e){var t=e.properties;ze(t).forEach(function(e){return function(e){var t=e.measure;if(Ue({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach(function(e){if("object"===Ie(e)&&!e.disabled){if(r++,"object"!==Ie(ke[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=ke[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&We(t)&&w.simplifyExpression(t.qDef.base.qDef)!==w.simplifyExpression(n)&&(t.qDef.base.qDef=n)}})}}({measure:e,properties:t})})}({properties:n}),Le({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:o,dimensionAndFieldList:t})})})}):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some(function(e){return"object"===Ie(e.base)})}(p)?r.getEffectiveProperties().then(function(e){return function(e){var r=e.model,n=e.properties,o=Qe(n);return et({model:r,libraryIds:o}).then(function(){var e=t()(!0,{},n);return ze(n).forEach(function(e){return qe(e)}),Je({oldProperties:e,newProperties:n,model:r})})}({model:r,properties:e})}):Promise.resolve(l)}function Le(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=l?t()(!0,{},o):o),He(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then(function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(r||(r=ze(n)),!r.length)return Promise.resolve();if(!Ne({measures:r,properties:n}))return r.forEach(function(e){return qe(e)}),Promise.resolve();var l=a?void 0:Qe(n);return Ye({model:o,dimensionAndFieldList:s}).then(function(e){return Ke({libraryIds:l,model:o,libraryItemsProps:a}).then(function(o){r.forEach(function(r){Ge({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;Me.isValid(r)||Me.initBase(r,!0);var l=r.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach(function(e){if("object"===Ie(e)&&!e.disabled){if(s++,"object"!==Ie(ke[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");ke[e.type].initModifier(e,r);var l=r.qLibraryId||c&&c.qLibraryId;l?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:ke[n.type].generateExpression({expression:s,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,(r.qDef.qLabel||a.qMeasure.qLabel)&&(r.qDef.qLabel=a.qMeasure.qLabel),(r.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(r.qDef.qLabelExpression=a.qMeasure.qLabelExpression),r.qDef.quarantine&&r.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(r.qDef.qNumFormat=a.qMeasure.qNumFormat,r.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete r.qLibraryId,r.qDef.coloring=a.qMeasure.coloring,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,libraryId:l,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof ke[n.type].updateModifier&&ke[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),s=""===a?a:ke[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||je(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&je(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}})}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),Be(r)):qe(r)})})})}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then(function(){return l?Je({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)})})}function qe(e){!function(e){var t=Fe(e);return Array.isArray(t)&&t.some(function(e){return"object"===Ie(e)&&!e.disabled&&!ke[e.type]})}(e)?Me.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Be(e)}function Ne(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Ge({modifiers:Fe(e),properties:r,layout:n})})}function _e(e){var t=Fe(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(ke[n.type]&&!n.disabled)return n}}function je(e){var t=_e(e);return!t||ke[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function Fe(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function He(e){ze(e).forEach(function(e){return function(e){var r=_e(e);r&&(void 0!==r.outputExpression&&$e(r)!==e.qDef.qDef?delete e.qDef.base:!Me.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)})}function Be(e){var t=Fe(e);Array.isArray(t)&&t.forEach(function(t){"object"===Ie(t)&&(t.disabled||!ke[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)})}function We(e){return e.base||e.qDef&&e.qDef.base}function Ve(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ue(e){var t=e.measure,r=e.properties,n=e.layout;return!Ve(t)&&Ge({modifiers:Fe(t),properties:r,layout:n})}function Ge(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some(function(e){return!("object"!==Ie(e)||e.disabled||!ke[e.type])&&(void 0===o[e.type]&&(o[e.type]=ke[e.type].isApplicable({properties:r,layout:n})),o[e.type])})}function Ye(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then(function(e){o.dimensionList=e});n.push(i);var a=t.app.getFieldList().then(function(e){o.fieldList=e});return n.push(a),Promise.all(n).then(function(){return o})}function Ke(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach(function(e){var t=r.app.getMeasure(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),i.forEach(function(e){var t=r.app.getDimension(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),Promise.all(s).then(function(){return a})}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):L(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then(function(){return o}):Promise.resolve(o)}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some(function(e){return"object"===Ie(e)&&!e.disabled&&ke[e.type]&&ke[e.type].needDimension({modifier:e,properties:r,layout:n})})}function Qe(e){var t=ze(e),r=[],n=[],o=!1;return t.forEach(function(t){var n=Fe(t);if(Ge({modifiers:n,properties:e})){var i=Ve(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}}),i(e,"qHyperCubeDef.qDimensions",[]).forEach(function(e){var t=e.qLibraryId;t&&n.push(t)}),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(Te[t.id].masterItemSubscriber=Te[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},r=i(e,"qInfo.qType");return r&&s[r]&&s[r].forEach(function(r){t[r]=i(e,r)}),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=l(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(e,r){return t.app[r](e).then(function(t){n[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:l(t.layout)}})}return{subscribe:function(e){var r=e.measureLibraryIds,i=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach(function(e){o[e]=!0}),a={},t.forEach(function(e){a[e]=!0})}({measureLibraryIds:r,dimensionLibraryIds:i}),Object.keys(n).forEach(function(e){o[e]||a[e]||(n[e].listener.dispose(),delete n[e])}),t.app&&(Object.keys(o).forEach(function(e){o[e]&&!n[e]&&s.push(c(e,"getMeasure"))}),Object.keys(a).forEach(function(e){a[e]&&!n[e]&&s.push(c(e,"getDimension"))})),Promise.all(s)},unsubscribe:function(){Object.keys(n).forEach(function(e){n[e].listener.dispose()}),n={}}}}({model:t,callback:function(e){return Oe({model:t,masterItem:e}).then(function(){return t.app.clearUndoBuffer()})}}),Te[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{function e(t){var r,n=t;return n>9?(r=65+n-10)>90&&(r+=6):n="".concat(n).charCodeAt(0),[48,111,79,105,73,108].indexOf(r)>-1?e(n+1):String.fromCharCode(r)}function t(r){var n=e(r%62),o=Math.floor(r/62);return o>0?t(o)+n:n}function o(e){return o="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},o(e)}r.d(n,{default:()=>He});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var s=n[a];void 0!==i[s]&&null!==i[s]||(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c};var p=r(8),f=r.n(p);const h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var s,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=o.excludedDimensions).push.apply(s,a(l))},m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,l(n.qMeasures));var a,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=o.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},v=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach(function(e){t.properties[e]=r[e]})},b=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach(function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])}),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach(function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)})}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},y=function(e){e.forEach(function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)})};function x(e,t,r){var n,o,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=i.getValue(e,t);if(!i.isAtomicValue(s))try{if((o=(o=(n=JSON.stringify(s)).match(/:\{/g))?o.length:0)>2&&!a)return;s=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[r]||(l[r]={}),l[r][t]=s}var S=r(909),w=r.n(S);function C(e,t){var r=w()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function E(e,t){return w()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var A=Math.pow(2,53)-1;function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const I=function(e,t,r){var n="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(r,"qInfo.qType");i.setValue(e,"qInfo.qType",n),e.visualization=r.visualization},k=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},D=function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},T=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},O=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},L=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,s=r.data[0];for(t=0;t<s.dimensions.length;++t){var l=C(s.dimensions[t],a);i.qDimensions.length<n?i.qDimensions.push(l):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var u=C(s.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},q=function(e){var t,r=e.exportFormat,n=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,s=r.data[0];for(t=0;t<s.measures.length;++t){var l=E(s.measures[t],a);i.qMeasures.length<n?i.qMeasures.push(l):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var u=E(s.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},N=function(e){var t=e.exportFormat,r=e.dataDefinition,n=void 0===r?{}:r,o=t.data[0],i=n.dimensions||{max:0},a=n.measures||{max:0},s=R(a.max,o.dimensions.length,A),l=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,s,A),minDimensions:R(i.min,l,0),maxMeasures:s,minMeasures:l}},_=function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var i=r.qInterColumnSortOrder.length;if(i!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(r.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(r.qInterColumnSortOrder,i))},j=function(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach(function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=w()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?i.setValue(o,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some(function(e){return"general"===e.key})}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]}),null===(o=w()(!0,{},r,o)).components&&(o.components=[]),o},z=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>r&&r>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>n||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!r&&a.dimensions.length>0},F=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>r&&r>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>n)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>o&&o>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return P(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return P(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?P(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],s.forEach(function(e){a.qDimensions.push(e),n.dimensions.added(e,r)})}},H=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return M(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return M(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?M(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],s.forEach(function(e){a.qMeasures.push(e),n.measures.added(e,r)})}},B=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach(function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store})};function W(e,t){var r=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!r&&(Object.keys(r).forEach(function(t){i.setValue(e,t,r[t])}),delete e.qLayoutExclude.quarantine[t],!0)}const V={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=i.getValue(a,r||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),h({exportFormat:o,qHyperCubeDef:l}),m({exportFormat:o,qHyperCubeDef:l}),g({exportFormat:o,qHyperCubeDef:l}),delete l.qLayoutExclude,v({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),b({exportFormat:o,properties:a}),n||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters",!0),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,s=e.defaultPropertyValues,l=void 0===s?{}:s,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,h=void 0===f||f,m={qChildren:[]},g=j({exportFormat:t,initialProperties:n,hypercubePath:u}),v=i.getValue(n,u||"").qHyperCubeDef,b=i.getValue(g,u||"").qHyperCubeDef,y=N({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,w=y.maxMeasures,C=y.minMeasures,E=l.defaultDimension,R=void 0===E?T():E,A=l.defaultMeasure,P=void 0===A?O():A;b.qDimensions.length=0,b.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C})&&F({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C,newHyperCubeDef:b}),L({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:b,defaultDimension:R}),q({exportFormat:t,maxMeasures:w,minMeasures:C,newHyperCubeDef:b,defaultMeasure:P}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),H({newProperties:g,dataDefinition:a,hypercubePath:u}),_({exportFormat:t,newHyperCubeDef:b}),k("qMaxStackedCells",v,b),k("qNoOfLeftDims",v,b),D("qInitialDataFetch",v,b,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),D("qMode",v,b,"S"),D("qReductionMode",v,b,"N"),D("qSortbyYValue",v,b),D("qIndentMode",v,b),D("qShowTotalsAbove",v,b),I(g,t,n),m.qProperty=g;var M=i.getValue(c||{},"support.modifiers");return B({measures:b.qMeasures,modifierTypes:M}),p&&W(m.qProperty,"storedFilters"),"S"===b.qMode&&h&&W(m.qProperty,"dynamicScript"),m}};var U={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function G(e,t,r,n){t=t||[];var o=c(e,n,r),i=c(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!U[e])throw new Error("Attribute Expressions Util: ID required");var r={};return t&&Object.keys(t).forEach(function(e){r[e]=t[e]}),r.id=e,r.qAttribute=!0,r},moveByIdFromGroup:function(e,t,r,n,o){r=r||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][r],s=t.length;if(G(a,t,n,o),Y(t,s))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,r){if(Array.isArray(e[t])){var n=d.findIndexByPropertyValue(e[t],"id",r);n>=0&&e[t].splice(n,1)}else e[t]=[]}function te(e,t){var r=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach(function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)}),t.forEach(function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)})}function re(e,t){if(t){var r="="===t.charAt(0);e.color.altLabel=r?{qStringExpression:{qExpr:t.substr(1)}}:t}}function ne(e){var t=e.properties,r=e.isDimension,n=e.dimensions,o=e.excludedDimensions,a=e.measures,s=e.label;te(n,o);var l=n[n.length-1];if(l){var u=r?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,r=e.label,n=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=r||n.label,o?t.qDef=n.key:(t.qExpression=n.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=n.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:s,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,r=e.measures,n=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(r,"qLibraryId",n.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==n.expression?t.qExpression=n.expression:t.qLibraryId=n.key,t.colorMapRef=n.key}({attributeExpression:f,measures:a,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p})}r?(f.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(f)):l.qAttributeExpressions.push(f)}}}function oe(e,t,r,n){var o,i,a,s={};switch(e){case"dimension":r.qLibraryId?(s.type="dimension",s.name=r.qLibraryId,s.id=r.qLibraryId):(s.type="field",t?(s.name=r.label||r.qDef,s.id=r.qDef):(s.name=r.qDef.qFieldDefs[0],s.label=(a=r.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(r,t),o?(s.type="measure",s.name=o,s.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(r,n),i&&(s.expression=i)):(s.type="expression",t?(s.name=r.label||r.qExpression,s.id=r.qExpression):(s.name=r.qDef.qDef,s.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(r)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return s}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,r,n){var o=t.type,i=e.color,a=i.mode,s=X.getItemLabel(t);switch(re(e,s||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:s,key:t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}i.auto=!1,i.mode=a}function se(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"color.byDimDef");n.activeDimensionIndex=Math.min(n.activeDimensionIndex,r.length-1);var o=oe("dimension",!1,r[n.activeDimensionIndex]);o.activeDimensionIndex=n.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=r[function(e,t,r){var n=i.getValue(t,"visualization"),o=r.split("."),a=Number(o[1]),s=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===s}(r,e,t)?0:r.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(n.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||n)),!!a}(e,t))return;ne({properties:e,isDimension:!0,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byDimDef.label")})}const le=function(e,t,r){i.setValue(e,t,r),i.isAtomicValue(r)&&function(e,t,r){var n=e.qLayoutExclude;n&&(n.changed||(n.changed={}),n.changed[t]={from:i.getValue(e,t),to:r})}(e,t,r)},ue=function(e,t){var r={primary:!0};if(e){var n=(Q[t]||J).colorModeOptions||J.colorModeOptions;r.byDimension=n.dimension(e),r.byMeasure=n.measure(e),r.byMultiple=n.multiColor(e),r.byExpression=n.expression(e)}return r},ce=function(e){var t=e.canColorBy,r=e.autoColor,n=e.colorMode,o=e.dimensions;return!(t[n]&&!r&&("byDimension"!==n&&"byMeasure"!==n||!o.length))},de=function(e,t){var r,n=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),s=i.getValue(e,"".concat(t,"qMeasures"),[]),l=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,l):!(r={auto:o,colorMode:n,dimensions:a}).auto&&"byDimension"===r.colorMode&&r.dimensions.length>0?se(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,o=e.measures,a=e.properties,s=i.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==s&&!o.length)}({auto:o,colorMode:n,dimensions:a,measures:s,properties:e})?function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qMeasures"),[]),n=i.getValue(e,"color.byMeasureDef");if(n.activeMeasureIndex=Math.min(n.activeMeasureIndex,r.length-1),n.activeMeasureIndex>-1){var o=oe("measure",!1,r[n.activeMeasureIndex],!0);o.activeMeasureIndex=n.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,n)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=r[r.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!s,s||n[0])),!!s}(e,t))return;ne({properties:e,isDimension:!1,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&o.length<2&&i.setValue(e,"color.mode","primary"),te(n,a)}(e,t)},pe=function(e){e.forEach(function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode})},fe=function(e){var t=e.shouldUpdateColorBy,r=e.properties,n=i.getValue(r,"qHyperCubeDef.qMeasures",[]),o=i.getValue(r,"color.mode","");return!t&&"byExpression"===o&&n.length>0},he=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},ve={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=V.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),s=i.measures.concat(i.excludedMeasures),l=K.IDMAP,u=l.COLOR_BY_ALTERNATIVE,c=l.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(s,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=V.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),h=i.getValue(d,"color.mode",""),m=i.getValue(d,"color.auto",""),g=ue(d,p),v=ce({canColorBy:g,autoColor:m,colorMode:h,dimensions:f});return g[h]?fe({shouldUpdateColorBy:v,properties:d})&&he(d):me(d),v&&de(d,"qHyperCubeDef."),ge(d)&&le(d,"color.persistent",!0),pe(f),c}};var be=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?W(r,"unsupportedAutoMinMax")||w()(r.measureAxis,t.measureAxis):W(r,"supportedAutoMinMax")||w()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,s=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach(function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),be.includes(n)&&t[o].type[n]++,t[o].type.total++}}),t}(a);l.length?(i&&(t=l.filter(function(e){return e.type[i]>0}).sort(function(e,t){return t.type[i]-e.type[i]})),t&&t.length||(t=l.sort(function(e,t){return t.type.total-e.type.total})),t&&t[0]&&w()(s,r.properties.measureAxes[t[0].axis])):w()(s,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},we={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=ve.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),s=a.properties;return i?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=ve.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function Ee(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach(function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,a);if(void 0!==s){var l=i.getValue(o,"qDef.cId");l||(l=i.generateId(),i.setValue(o,"qDef.cId",l));var u=Ce(r,n,l);i.setValue(t,u,s),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})})}function Re(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach(function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,"qDef.cId");if(s){var l=Ce(r,n,s),u=i.getValue(t,l);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,l,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})})}var Ae="qHyperCubeDef.qMeasures",Pe="conditionalColoring",Me="measures",Ie="qDef.conditionalColoring";const ke={quarantine:function(e){Ee({properties:e,arrayPath:Ae,quarantineName:Pe,arrayName:Me,itemPath:Ie})},unquarantine:function(e){Re({properties:e,arrayPath:Ae,itemPath:Ie,arrayName:Me,quarantineName:Pe})}};var De="qHyperCubeDef.qMeasures",Te="measures",Oe="qHyperCubeDef.qDimensions",Le="dimensions",qe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ne="alternativeMeasures",_e="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",je="alternativeDimensions",ze="qCalcCondition",Fe="conditionalShowHide";const $e={quarantine:function(e){Ee({properties:e,arrayPath:De,quarantineName:Fe,arrayName:Te,itemPath:ze}),Ee({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:Le,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:De,quarantineName:Fe,arrayName:Te,itemPath:ze}),Re({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:Le,itemPath:ze})},quarantineAlternative:function(e){Ee({properties:e,arrayPath:qe,quarantineName:Fe,arrayName:Ne,itemPath:ze}),Ee({properties:e,arrayPath:_e,quarantineName:Fe,arrayName:je,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:qe,quarantineName:Fe,arrayName:Ne,itemPath:ze}),Re({properties:e,arrayPath:_e,quarantineName:Fe,arrayName:je,itemPath:ze})}},He={hypercube:V,colorChart:ve,axisChart:we,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:Ee,unquarantineArrayProp:Re,conditionalColoring:ke,conditionalShow:$e}})(),n.default})();var sA=Zt(aA.exports);const lA="qHyperCubeDef.qMeasures",uA="measures",cA="qHyperCubeDef.qDimensions",dA="dimensions",pA="qDef.representation",fA="tableRepresentation",hA="qDef.conditionalColoring",mA="conditionalColoring",gA="qMiniChartDef",vA="miniChartDef",bA=({propertyTree:e,hyperCubePath:t})=>{const r=sA.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),{qHyperCubeDef:{qColumnOrder:n,qDimensions:o,qMeasures:i}}=r.properties,a=((e,t,r)=>{const n=e.length+t.length,o=(r?.length===n?r:Array.from(Array(n).keys())).map(r=>((e,t,r)=>{const n=t.length,o=e<n?t[e]:r[e-n],{columnWidth:i}=o.qDef;return i||-1})(r,e,t));return o})(o,i,n);return Pt(r,"properties.qHyperCubeDef",{...r.properties.qHyperCubeDef,columnWidths:a}),sA.quarantineProperty(r.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),sA.quarantineProperty(r.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),sA.quarantineProperty(r.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{sA.quarantineArrayProp({properties:e,arrayPath:cA,itemPath:pA,arrayName:dA,quarantineName:fA}),sA.quarantineArrayProp({properties:e,arrayPath:lA,itemPath:pA,arrayName:uA,quarantineName:fA}),sA.quarantineArrayProp({properties:e,arrayPath:lA,itemPath:hA,arrayName:uA,quarantineName:mA}),sA.quarantineArrayProp({properties:e,arrayPath:lA,itemPath:gA,arrayName:uA,quarantineName:vA})})(r.properties),r};const yA=/^q[A-Z]/,xA=[/\bqnDec\b/,/\bqv\b/,/\bcId\b/,/^title$/,/^subtitle$/,/^footnote$/,/^qLayoutExclude\b.+/],SA=e=>"object"==typeof e&&null!==e,wA=(e,t)=>(Object.entries(e).forEach(([r,n])=>{const o=void 0===t?r:`${t}.${r}`;((e,t)=>!yA.test(e)&&!xA.some(e=>e.test(t)))(r,o)?delete e[r]:Array.isArray(n)?e[r]=n.map((e,t)=>SA(e)?wA(e,`${o}.${t}`):e):SA(n)&&(e[r]=wA(n,o))}),e),CA=(e,t,r,n)=>{let o=t;n&&(o=t-n);const i=JSON.parse(JSON.stringify(e[o]));if(Array.isArray(r)&&r.length>0){const e=r[t];null===e||Array.isArray(e)||"object"!=typeof e?i.qDef.columnWidth="number"==typeof e&&e>0?{type:hE.Pixels,pixels:e}:{type:hE.FitToContent}:i.qDef.columnWidth=e}return i},EA=({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:o,viewDataMode:i})=>{if(i){try{e=structuredClone(e)}catch(e){console.error("Failed to copy source properties",e)}wA(e.properties)}const a=sA.hypercube.importProperties({exportFormat:e,initialProperties:t,dataDefinition:{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}},defaultPropertyValues:o,hypercubePath:n,extension:r});if(sA.conditionalShow.unquarantine(a.qProperty),i)Pt(a,"qProperty.totals.show",!1),Pt(a,"qProperty.usePagination",!0),Pt(a,"qProperty.accessibleHeader",!0);else{sA.unquarantineProperty(a.qProperty,"straightTableColumnOrder"),(e=>{sA.unquarantineArrayProp({properties:e,arrayPath:cA,itemPath:pA,arrayName:dA,quarantineName:fA}),sA.unquarantineArrayProp({properties:e,arrayPath:lA,itemPath:pA,arrayName:uA,quarantineName:fA}),sA.unquarantineArrayProp({properties:e,arrayPath:lA,itemPath:hA,arrayName:uA,quarantineName:mA}),sA.unquarantineArrayProp({properties:e,arrayPath:lA,itemPath:gA,arrayName:uA,quarantineName:vA})})(a.qProperty);const{qHyperCubeDef:{qDimensions:e,qMeasures:t,qColumnOrder:r,columnWidths:n}}=a.qProperty,{dimensions:o,measures:i}=((e,t,r,n)=>{const o=e.length,i=o+t.length,a=r?.length===i?r:Array.from(Array(i).keys());return{dimensions:a.filter(e=>e<o).map(t=>CA(e,t,n)),measures:a.filter(e=>e>=o).map(e=>CA(t,e,n,o))}})(e,t,r,n);Array.isArray(n)&&n.length>0&&(Pt(a,"qProperty.qHyperCubeDef.qDimensions",o),Pt(a,"qProperty.qHyperCubeDef.qMeasures",i))}return a};var RA={component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}},AA=function(e){return e.CONTAINS="contains",e.MATCHES_EXACTLY="matches_exactly",e.STARTS_WITH="starts_with",e.ENDS_WITH="ends_with",e.BEGINNING_OF_WORD="beginning_of_word",e}(AA||{}),PA=function(e){return e.COMPARE="compare",e.GENERAL="general",e}(PA||{}),MA=function(e){return e.VALUES="values",e.CONDITION="condition",e.SEARCH="search",e.CLEAR_SELECTION="clear_selection",e.TOP_BOTTOM="top_bottom",e}(MA||{}),IA=function(e){return e.FIXED_VALUE="fixed_value",e.CALCULATED_VALUE="calculated_value",e}(IA||{});const kA=e=>e&&"]"!==e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)||(e=>{if(!e)return!1;if("["===e[0]&&"]"===e[e.length-1]){let t=e.substring(1,e.length-1);if(/^[A-Za-z][A-Za-z0-9_]*$/.test(t))return!0;if(t=t.replace(/\]\]/g,"]"),e===`[${t.replace(/\]/g,"]]")}]`)return!0}return!1})(e)?e:`[${e.replace(/\]/g,"]]")}]`:e,DA=e=>{if(!Array.isArray(e))return"";let t="{<";const r=[];if(e.forEach(e=>{let t=`[${e.field}]${e.exclude?"-":""}={`,n="}",o="";switch(e.type){case MA.SEARCH:o=(e=>{let t="",r="";const n=e.options?.mode;if(!n)return"";switch(n){case AA.BEGINNING_OF_WORD:t="*^",r="*";break;case AA.ENDS_WITH:t="*";break;case AA.STARTS_WITH:r="*";break;case AA.MATCHES_EXACTLY:break;case AA.CONTAINS:default:t="*",r="*"}const o=e.options.values?.[0]??"";return""!==o?`"${t}${o}${r}"`:""})(e);break;case MA.CONDITION:o=(e=>{const{options:t}=e,r=t?.mode===PA.GENERAL,n=t?.modifier?.type===IA.FIXED_VALUE,o=t?.modifier?.operator?t.modifier.operator.split(" "):[];if(0===o.length||!n&&(!t.firstValue?.aggregator||!t.firstValue?.field)||n&&!t.firstValue?.fixedValue||r&&(!t.conditionField?.aggregator||!t.conditionField?.field))return"";let i,a,s="=";r&&n?(i=`${t.conditionField?.aggregator}(${kA(t.conditionField?.field)})`,a=`${t.firstValue?.fixedValue}`):!r&&n?(i="",a=`${t.firstValue?.fixedValue}`,s=""):r||n?(i=`${t.conditionField?.aggregator}(${kA(t.conditionField?.field)})`,a=`${t.firstValue?.aggregator}(${kA(t.firstValue?.field)})`):(i=`${kA(e.field)}`,a=`${t.firstValue?.aggregator}(total ${kA(t.firstValue?.field)})`);const l=`${s}${i}${o[0]}${a}`;let u="";if(o.length>1){if(!n&&(!t.secondValue?.aggregator||!t.secondValue?.field)||n&&!t.secondValue?.fixedValue)return"";let e,a;r&&n?(e=`${t.secondValue?.fixedValue}`,a=` and ${i}`):!r&&n?(e=`${t.secondValue?.fixedValue}`,a=""):r||n?(e=`${t.secondValue?.aggregator}(${kA(t.secondValue?.field)})`,a=` and ${i}`):(e=`${t.secondValue?.aggregator}(total ${kA(t.secondValue?.field)})`,a=` and ${i}`),u=`${a}${o[1]}${e}`}return`"${l}${u}"`})(e);break;case MA.CLEAR_SELECTION:o=`[${e.field}]=`,t="",n="";break;case MA.VALUES:default:o=e.options?.values?e.options.values.map(e=>`'${e.replace(/'/g,"''")}'`).join(","):""}""!==o&&r.push(`${t}${o}${n}`)}),0===r.length)return;return t+=`${r.join(",")}>}`,t},TA=[];for(let e=0;e<256;++e)TA.push((e+256).toString(16).slice(1));let OA;const LA=new Uint8Array(16);var qA={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function NA(e,t,r){const n=(e=e||{}).random??e.rng?.()??function(){if(!OA){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");OA=crypto.getRandomValues.bind(crypto)}return OA(LA)}();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=15&n[6]|64,n[8]=63&n[8]|128,function(e,t=0){return(TA[e[t+0]]+TA[e[t+1]]+TA[e[t+2]]+TA[e[t+3]]+"-"+TA[e[t+4]]+TA[e[t+5]]+"-"+TA[e[t+6]]+TA[e[t+7]]+"-"+TA[e[t+8]]+TA[e[t+9]]+"-"+TA[e[t+10]]+TA[e[t+11]]+TA[e[t+12]]+TA[e[t+13]]+TA[e[t+14]]+TA[e[t+15]]).toLowerCase()}(n)}const _A=()=>crypto?.randomUUID?.()??function(e){return qA.randomUUID&&!e?qA.randomUUID():NA(e)}();class jA extends s{#e;constructor(e,t){super(e),this.#e=t}#t(e){const t=this.hcProperties.qLayoutExclude.allColumnOrder??{},r=Object.keys(t).length;this.hcProperties.qLayoutExclude.allColumnOrder={...t,...Object.fromEntries(e.map((e,t)=>[e,r+t]))}}#r(e){const t=this.hcProperties.qLayoutExclude.allColumnOrder??{},r=Object.entries(t).filter(([t])=>!e.includes(t));this.hcProperties.qLayoutExclude.allColumnOrder=Object.fromEntries(r.map(([e],t)=>[e,t]))}#n(e,t){const r=this.hcProperties.qLayoutExclude.allColumnOrder??{},n={};for(const[o,i]of Object.entries(r))n[o===e?t:o]=i;this.hcProperties.qLayoutExclude.allColumnOrder=n}async addDimension(e,t=!1){const r=await this.addDimensions([e],t);return 0===r.length?void 0:r[0]}async addDimensions(e,t=!1){const r=await super.addDimensions(e,t);return this.#t(r.map(e=>e.qDef.cId)),r}async removeDimension(e,t=!1){const r=await this.removeDimensions([e],t);return 0===r.length?void 0:r[0]}async removeDimensions(e,t=!1){const r=await super.removeDimensions(e,t);return this.#r(r.map(e=>e.qDef.cId)),r}async replaceDimension(e,t){const r=this.getDimensions()[e].qDef.cId,n=await super.replaceDimension(e,t),o=n.qDef.cId;return this.#n(r,o),n}async addMeasure(e,t=!1){const r=await this.addMeasures([e],t);return 0===r.length?void 0:r[0]}async addMeasures(e,t=!1){const r=await super.addMeasures(e,t);return this.#t(r.map(e=>e.qDef.cId)),r}async removeMeasure(e,t=!1){const r=await this.removeMeasures([e],t);return 0===r.length?void 0:r[0]}async removeMeasures(e,t=!1){const r=await super.removeMeasures(e,t);return this.#r(r.map(e=>e.qDef.cId)),r}async replaceMeasure(e,t){const r=this.getMeasures()[e].qDef.cId,n=await super.replaceMeasure(e,t),o=n.qDef.cId;return this.#n(r,o),n}async#o(e){const t=this.getMeasure(e);if(t){const r=this.getAlternativeMeasures().findIndex(t=>t.qDef.cId===e);await super.removeMeasure(r,!0),await super.addMeasure(t,!1,this.getMeasures().length)}}async#i(e){const t=this.getMeasure(e);if(t){const r=this.getMeasures().findIndex(t=>t.qDef.cId===e);await super.removeMeasure(r,!1),await super.addMeasure(t,!0,this.getAlternativeMeasures().length)}}async#a(e){const t=this.getDimension(e);if(t){const r=this.getAlternativeDimensions().findIndex(t=>t.qDef.cId===e);await super.removeDimension(r,!0),await super.reinsertDimension(t,!1,this.getDimensions().length)}}async#s(e){const t=this.getDimension(e);if(t){const r=this.getDimensions().findIndex(t=>t.qDef.cId===e);await super.removeDimension(r,!1),await super.addDimension(t,!0,this.getDimensions().length)}}#l(e){const{qDimensions:t,qMeasures:r}=this.hcProperties,n=new Map([...t,...r].map((e,t)=>[e.qDef.cId,t]));this.hcProperties.qColumnOrder=e.reduce((e,t)=>{const r=n.get(t);return void 0!==r?[...e,r]:e},[])}async toggleAlternatives(e,t){await Promise.all(e.map(e=>"dimension"===e.type?e.isAlternative?this.#a(e.id):this.#s(e.id):e.isAlternative?this.#o(e.id):this.#i(e.id))),this.#l(t)}setAllColumnOrderForColumnIds(e){const t=e.reduce((e,t,r)=>(e[t]=r,e),{});this.hcProperties.qLayoutExclude.allColumnOrder=t}updateColumnOrders(e){this.setAllColumnOrderForColumnIds(e),this.#l(e)}getFilters(){return this.properties.filters??[]}getFilter(e){return this.getFilters().find(t=>t.id===e)}addFilterField(e){const t=e.qTags??e.tags,r=Array.isArray(t)&&t.includes("$numeric"),n=e.isDerived,o=Array.isArray(this.properties.filters)?this.properties.filters:[],i={type:"values",field:n?e.value??e.fullname:e.name??e.label??e.field,options:{values:[]},exclude:!1,id:_A(),qTags:Array.isArray(t)?t:[],isNumeric:r};return o.push(i),this.properties.filters=o,this.properties.qHyperCubeDef.qContextSetExpression=DA(o),i}addFilters(e){const t=[];for(const r of e)t.push(this.addFilterField(r));return t}#u(e){const t=this.getFilters();return t.splice(e,1),this.properties.qHyperCubeDef.qContextSetExpression=DA(t),t}removeFilters(e){if(0===e.length)return[];let t=[];const r=[...e].sort((e,t)=>t-e);t=this.getFilters().filter((t,r)=>e.includes(r));for(const e of r)this.#u(e);return t}getLabels(){return this.getMeasures().reduce((e,t)=>(!t.qLibraryId&&t.qDef.qLabel&&e.push(t.qDef.qLabel),e),[])}getAddDimensionLabel(){return this.#e.get("Visualization.Requirements.AddDimension")}canColorBy(){return!1}}const zA=(e,t)=>{if(!e)return-1;const r=e.indexOf(t);if(-1===r)return-1;for(let r=0;r<e.length;++r)e[r]>t&&e[r]--;return e.splice(r,1),r};function FA(e,t){let r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)}function $A(e){return e>0?0:1}function HA(e){return e.translator.get("Visualizations.Descriptions.Column")}function BA(e){return{measures:{min:$A,max:1e3,description:()=>HA(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;FA(n,r.getDimensions().length+r.getMeasures().length-1)},remove(e,t,r,n){const{qColumnOrder:o}=r.hcProperties,i=(r.hcProperties.qDimensions?r.hcProperties.qDimensions.length:0)+n;zA(o,i)}},dimensions:{min:$A,max:1e3,description:()=>HA(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;return FA(n,r.getDimensions().length-1),e},remove(e,t,r,n){if(e?.isAlternative)return;const{qColumnOrder:o}=r.hcProperties;zA(o,n)}}}}let WA=function(e){return e.Text="text",e.Link="link",e.Image="image",e.ImagesInIndentMode="imagesInIndentMode",e.Indicator="indicator",e.MiniChart="miniChart",e.EditableText="editableText",e.EditableSelector="editableSelector",e}({}),VA=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const UA=e=>{switch(e?.type){case"url":return WA.Link;case"image":return WA.Image;case"indicator":return WA.Indicator;case"miniChart":return WA.MiniChart;default:return WA.Text}},GA=({isImagesEnabled:e})=>({uses:"dimensionRepresentationItems.representationType",options(t,r,n){const{qIndentMode:o}=n.properties.qHyperCubeDef,i=[{value:"text",translation:"Object.Table.Representation.Text"},{value:"url",translation:"Object.Table.Representation.Link"}];return(!o&&e||o)&&i.push({value:"image",translation:"Object.Table.Representation.Image"}),i}}),YA=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>UA(e.qDef.representation)===WA.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]},imageBoxWidth:{ref:"qDef.representation.imageBox.width",translation:"properties.pivot.representation.image.imageBox.width",type:"number",expression:"optional",defaultValue:24,show:(e,t,r)=>{if(!r.properties.qHyperCubeDef)return!1;const{qInterColumnSortOrder:n,qNoOfLeftDims:o,qDimensions:i,qIndentMode:a}=r.properties.qHyperCubeDef;let s=!1;n?.indexOf(-1);const l=i?.indexOf(e)??1/0;return(n?.slice(0,o)??[]).indexOf(l)>-1&&(s=!0),s&&a}}}}}},KA=e=>{const{anything:t}=e,r=!t.sense?.isUnsupportedFeature?.("tableImages");return{representationType:GA({isImagesEnabled:r}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>UA(e.qDef.representation)===WA.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>UA(e.qDef.representation)===WA.Link&&e.qDef.representation?.urlPosition===VA.Dimension},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>UA(e.qDef.representation)===WA.Link&&e.qDef.representation?.urlPosition===VA.Attribute},...YA(r)}},XA=(e,t)=>{const{anything:r}=e,n=r.sense?.isUnsupportedFeature,o=!n?.("tableImages")&&t[WA.Image],i=!n?.("qMiniChartDef")&&t[WA.MiniChart],a=!n?.("tableIndicators")&&t[WA.Indicator],s=o&&t[WA.ImagesInIndentMode];return{representationType:{uses:"measureRepresentationItems.representationType",options:(e,t,r)=>(e=>{const{qIndentMode:t}=e.properties.qHyperCubeDef??{},r=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!t&&o||t&&s)&&r.push({value:"image",translation:"Object.Table.Representation.Image"}),a&&r.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),i&&r.push({value:"miniChart",translation:"Common.MiniChart"}),r})(r)},representationImage:o?{uses:"measureRepresentationItems.representationImage",show:e=>UA(e.qDef.representation)===WA.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0,representationIndicator:a?{uses:"measureRepresentationItems.representationIndicator"}:void 0,representationMiniChart:i?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}};var JA,ZA={};JA=ZA,(()=>{var e={370:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};r.r(n),r.d(n,{default:()=>Me});var o=r(370),i=r.n(o);const a=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var s=a[i];return a[i]=r,{updated:r,previous:s}}return delete a[i],!1},s=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},l={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var u="".concat(" ","(").concat(" "),c="".concat(" ",")").concat(" ");function d(e){return u+e+c}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function f(e){return!(!e.fullAccumulation&&!e.fullRange)}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function m(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function g(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function v(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function b(e){return void 0===e?")":", 0, ".concat(e,")")}function y(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function x(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(y("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(y("MaxString(".concat(t,")")),")'\"}")}function S(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=x(p(n[0],o),g(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(n&&2===n.length){var c=p(n[0],o),d=p(n[1],o),f=g(0),h=g(1),m=x(c,f),v=x(d,h);return"".concat(a,"({1<").concat(m,",").concat(v,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function w(e){return"".concat(e,"(")}function C(e){var t=e.properties,r=e.layout;return s(t,"qHyperCubeDef.qDimensions",s(r,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:f,getNumDimensions:C,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=d(m(t));if(!r.showExcludedValues)return a;var s=S({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var u=g(0);return"If(Count(".concat(u,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var c=g(0),p=g(1);return"If(Count(".concat(c,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:h,getNumStepComp:function(e,t){if(!f(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return h(e,t)},getAboveCompPrefix:v,getAboveCompSuffix:b,getAboveComp:function(e,t,r,n){return v(e,t)+r+b(n)},getFunctionPrefix:w,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return w(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:S,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout;return 0===function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t)&&2===C({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=g(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:m,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(u);if(-1!==r){var n=t.indexOf(c);if(-1!==n)return t.substring(r+u.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach(function(r){void 0===e[r]&&(e[r]=t[r])})},isNumeric:p,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var s=C({properties:t,layout:r});return s>=o&&s<=a},getExpressionWithMarkers:d,canExtract:function(e){var t=e.indexOf(u),r=e.indexOf(c);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:g,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find(function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null});o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=l.OPTIONS.find(function(t){return t.value===e.decomposition});return t?l.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(l.EXPRESSIONS).find(function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return l.EXPRESSIONS[r]&&n.includes(l.EXPRESSIONS[r].toLowerCase())&&(t=r),r}),t}};function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function A(e){return A="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},A(e)}var P=i().bind(null,!0),M={},I=Array.isArray;function k(e){return null!=e&&!Array.isArray(e)&&"object"===A(e)}function D(e){return void 0===e}function T(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function O(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach(function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=D(e[r||t])?i:e[t],e=e[r||t]}}),e}function L(e,t){var r=!0;if(k(e)&&k(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(function(n){L(e[n],t[n])||(r=!1)}),r);if(I(e)&&I(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!L(e[n],t[n]))return!1;return!0}return e===t}M.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach(function(o){var i=function(e){return e?P({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);L(i,a)||T(t,o)||(D(a)?n.push({op:"add",path:s,value:i}):k(i)&&k(a)?n=n.concat(M.generate(a,i,s)):I(i)&&I(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&D(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(L(t,o))return n;if(!D(t[0])&&D(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(n.push({op:"remove",path:"".concat(r,"/").concat(s)}),o.splice(s,1)):n=n.concat(M.generate(o[s],t[i],"".concat(r,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return n}(a,i,s)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))}),Object.keys(e).forEach(function(o){D(t[o])&&!T(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})}),n},M.apply=function(e,t){t.forEach(function(t){var r,n,o=O(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(I(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(I(a)&&I(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return R(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return R(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?R(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(k(a)&&k(t.value))r=a,Object.keys(r).forEach(function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!T(r,e)&&delete r[e]}),P(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=O(e,t.from);I(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(I(o)?o.splice(+i,1):delete o[i])})},M.clone=function(e){return P({},e)},M.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},M.updateObject=function(e,t){Object.keys(e).length?M.apply(e,M.generate(e,t)):P(e,t)};const q=M;var N="accumulation";function _(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===N)return r[n]}function j(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===N)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var z={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const F={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var l=i;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=s(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=E.getNumStepComp(r,l),p=E.getAboveComp(r,l,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:r,properties:n,layout:o})){var h=E.getDimComp(u,1),m=E.getDimComp(u,0),g=E.getAggrComp(f,h,m);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:a,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,z)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(j(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(j(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(j(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(j(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=_(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=_(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(j(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(N))return!1;var i=_(t,e);return i&&!i.disabled}}}};var $="movingAverage";function H(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===$)return r[n]}function B(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===$)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var W={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const V={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,i=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var u=a;void 0===u&&(u=E.getNumDimensions({properties:o,layout:i}));var c=s(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=E.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=E.getNumStepComp(n,u),h=E.getAboveComp(n,u,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",h);else{var m=E.getRangeComp("RangeSum",h),g=function(e,t){var r=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(m," / ").concat(g)}var v=t;if(E.needDimension({modifier:n,properties:o,layout:i})){var b=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(v,b,y);v=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return v},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,W)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=H(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=H(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf($))return!1;var i=H(t,e);return i&&!i.disabled}}}};var U="timeSeriesDecomposition";function G(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===U)return r[n]}function Y(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===U)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var K={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const X={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?E.generateTSDExpression(r,t,n):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,K),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(Y(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:l.OPTIONS},steps:{refFn:function(t){return"".concat(Y(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=G(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map(function(e){return e.qDef.modifiers.map(function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e}),e})}},show:function(t){var r=G(t,e);return r&&!r.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(U))return!1;var i=G(t,e);return i&&!i.disabled}}}};var J="difference";function Z(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===J)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var l=i;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=s(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=E.getAboveComp(r,l,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:r,properties:n,layout:o})){var f=E.getDimComp(u,1),h=E.getDimComp(u,0),m=E.getAggrComp(p,f,h);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:a,funcComp:"Only",valueComp:m}):m}return p},initModifier:function(e){Object.keys(Q).forEach(function(t){void 0===e[t]&&(e[t]=Q[t])})},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(J))return!1;var i=function(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===J)return r[n]}(t,e);return i&&!i.disabled}}}};var te="normalization";function re(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,r){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var l=i;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=s(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a,s){var l=ae(t),u=se(t,r,n),c=""===l&&""===u?"":l||u,d=le(o,i),p=ue(o,i,a),f=function(e){for(var t=[],r=0;r<e;r++)t[r]=E.getDimDefWithWrapper(r);return t.join(", ")}(i);return s?"(If(".concat(e," < 0, null(), ").concat(e,"))/ Sum(").concat(c," ").concat(d).concat(p," Aggr(").concat(c," RangeMax( 0, ").concat(e,"), ").concat(f,"))"):"".concat(e,"/ Sum(").concat(c," ").concat(d).concat(p," Aggr(").concat(c," ").concat(e,", ").concat(f,"))")}(c,d,r.field,r.value,p,l,r.primaryDimension,r.ignoreNegative)},initModifier:function(e){Object.keys(ie).forEach(function(t){void 0===e[t]&&(e[t]=ie[t])})},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then(function(e){return e.map(function(e){return{label:e.qName,value:e.qName}})})},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}}},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ue};var de="library id deleted",pe="qDef.qDef",fe="qDef.base.qDef",he="qLibraryId",me="qDef.base.qLibraryId",ge="qDef.qLabel",ve="qDef.qLabelExpression",be="qDef.base.qLabel",ye="qDef.base.qLabelExpression",xe="qDef.qAggrFunc",Se="qDef.base.qAggrFunc",we="qDef.base";const Ce={getExpression:function(e){var t=s(e,fe);return void 0!==t?t:s(e,pe)},getExpressionRef:function(e){return void 0!==s(e,fe)?fe:pe},getLibraryIdRef:function(e){return s(e,me)?me:he},getLibraryId:function(e){return s(e,me)||s(e,he)},getLabelRef:function(e){return s(e,we)?be:ge},getLabelExpressionRef:function(e){return s(e,we)?ye:ve}};var Ee={initBase:function(e,t){(t||Ee.isValid(e))&&(a(e,fe,s(e,pe)),a(e,me,s(e,he)),a(e,be,s(e,ge)),a(e,ye,s(e,ve)))},restoreBase:function(e){Ee.isValid(e)&&(a(e,pe,s(e,fe)),a(e,he,s(e,me)),a(e,ge,s(e,be)),a(e,ve,s(e,ye)),s(e,xe)&&s(e,Se)&&a(e,xe,s(e,Se)),delete e.qDef.base)},isValid:function(e){var t=s(e,fe),r=s(e,me);return void 0!==t||void 0!==r}};const Re=Ee;function Ae(e){return Ae="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},Ae(e)}var Pe={accumulation:F,movingAverage:V,difference:ee,normalization:ce,timeSeriesDecomposition:X};const Me={modifiers:Pe,apply:ke,applyModifiers:De,cleanUpMeasure:Te,destroy:function(e){e&&Ie[e.id]&&Ie[e.id].masterItemSubscriber&&(Ie[e.id].masterItemSubscriber&&Ie[e.id].masterItemSubscriber.unsubscribe(),delete Ie[e.id])},hasActiveModifiers:Oe,getActiveModifier:Le,initBase:Re.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some(function(e){return Pe[e]})},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some(function(e){return Pe[e]&&Pe[e].isApplicable({properties:r,layout:n})})},measureBase:Ce,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach(function(e){var t=_e(e);We({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ke({modifiers:t,properties:r,layout:n}))}),o&&!i},ifEnableTotalsFunction:qe};var Ie={};function ke(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.model,r=e.properties,n=e.isSnapshot,o=void 0!==n&&n,a=e.masterItem,l=!1;Ie[t.id]=Ie[t.id]||{isFirstTime:!0};var u=Ie[t.id].isFirstTime;if(Ie[t.id].isFirstTime=!1,r&&"object"===Ae(r))return De({model:t,properties:r});var c=t?t.layout:void 0,d=s(c,"qSelectionInfo.qInSelections");if(o||d)return Promise.resolve(l);var p=s(c,"qHyperCube.qMeasureInfo"),f=Ie[t.id].lastReloadTime;if(Ie[t.id].lastReloadTime=s(t,"app.layout.qLastReloadTime"),Oe({measures:p,layout:c})){var h=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return s(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Be({measure:e,properties:r,layout:n})})}({measures:t,layout:r})}({measures:p,layout:c,model:t,lastReloadTime:f});return h||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some(function(e){return function(e){var t=e.measure,r=e.layout;return We({modifiers:_e(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})}))}({measures:p,layout:c,masterItem:a,isFirstTime:u})?t.getEffectiveProperties().then(function(e){var r=i()(!0,{},e);ze(r);var n=Xe(r);return Ve({model:t}).then(function(o){return Ue({libraryIds:n,model:t}).then(function(n){return h&&function(e){var t=e.properties;Ne(t).forEach(function(e){return function(e){var t=e.measure;if(Be({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach(function(e){if("object"===Ae(e)&&!e.disabled){if(r++,"object"!==Ae(Pe[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=Pe[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&$e(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}})}}({measure:e,properties:t})})}({properties:r}),De({model:t,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:a,libraryItemsProps:n,dimensionAndFieldList:o})})}).catch(function(){return Promise.resolve(l)})}):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some(function(e){return"object"===Ae(e.base)})}(p)?t.getEffectiveProperties().then(function(e){return function(e){var t=e.model,r=e.properties,n=Xe(r);return Je({model:t,libraryIds:n}).then(function(){var e=i()(!0,{},r);return Ne(r).forEach(function(e){return Te(e)}),Ye({oldProperties:e,newProperties:r,model:t})})}({model:t,properties:e})}):Promise.resolve(l)}function De(e){var t=e.model,r=e.oldProperties,n=e.properties,o=e.measures,a=e.runUpdateIfChange,l=void 0!==a&&a,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=l?i()(!0,{},n):n),ze(n);var p=Xe(n);return Je({model:t,libraryIds:p,masterItem:u}).then(function(){return function(e){var t=e.measures,r=e.properties,n=e.model,o=e.libraryItemsProps,a=e.dimensionAndFieldList;if(t||(t=Ne(r)),!t.length)return Promise.resolve();if(!o&&!Oe({measures:t,properties:r}))return t.forEach(function(e){return Te(e)}),Promise.resolve();var l=o?void 0:Xe(r);return Ve({model:n,dimensionAndFieldList:a}).then(function(e){return Ue({libraryIds:l,model:n,libraryItemsProps:o}).then(function(n){t.forEach(function(t){var o=t.qDef.modifiers;n&&We({modifiers:o,properties:r})?(function(e){var t=e.measure,r=e.properties,n=e.libraryItemsProps,o=e.dimensionAndFieldList,a=0;Re.isValid(t)||Re.initBase(t,!0);var l=t.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach(function(e){if("object"===Ae(e)&&!e.disabled){if(a++,"object"!==Ae(Pe[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(a>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Pe[e.type].initModifier(e,t);var l=t.qLibraryId||c&&c.qLibraryId;l?function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Pe[r.type].generateExpression({expression:s,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=l,t.qDef.qDef=r.outputExpression,(t.qDef.qLabel||a.qMeasure.qLabel)&&(t.qDef.qLabel=t.qDef.base.qLabel||a.qMeasure.qLabel),(t.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(t.qDef.qLabelExpression=a.qMeasure.qLabelExpression),t.qDef.quarantine&&t.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(t.qDef.qNumFormat=t.qDef.base.qNumFormat||a.qMeasure.qNumFormat,t.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete t.qLibraryId,t.qDef.coloring=a.qMeasure.coloring,r.base=i()(!0,{},t.qDef.base)}({measure:t,modifier:e,libraryId:l,properties:r,libraryItemsProps:n,dimensionAndFieldList:o}):function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList;"function"==typeof Pe[r.type].updateModifier&&Pe[r.type].updateModifier(r,n.qHyperCubeDef);var a=Ce.getExpression(t),s=""===a?a:Pe[r.type].generateExpression({expression:a,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=s,t.qDef.qDef=r.outputExpression,t.qDef.base.qLabelExpression?t.qDef.qLabelExpression=t.qDef.base.qLabelExpression:t.qDef.qLabel=t.qDef.base.qLabel||a,r.base=i()(!0,{},t.qDef.base)}({measure:t,modifier:e,properties:r,dimensionAndFieldList:o}),function(e){var t=s(e,"qDef.qAggrFunc");"Expr"!==t||qe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&qe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(t)}})}({measure:t,properties:r,libraryItemsProps:n,dimensionAndFieldList:e}),Fe(t)):Te(t)})})})}({measures:o,properties:n,model:t,libraryItemsProps:c,dimensionAndFieldList:d}).then(function(){return l?Ye({oldProperties:r,newProperties:n,model:t}):Promise.resolve(!1)})}).catch(function(){return Promise.resolve(!1)})}function Te(e){!function(e){var t=_e(e);return Array.isArray(t)&&t.some(function(e){return"object"===Ae(e)&&!e.disabled&&!Pe[e.type]})}(e)?Re.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Fe(e)}function Oe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some(function(e){return We({modifiers:_e(e),properties:r,layout:n})})}function Le(e){var t=_e(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Pe[n.type]&&!n.disabled)return n}}function qe(e){var t=Le(e);return!t||Pe[t.type].enableTotalsFunction(e)}function Ne(e){return s(e,"qHyperCubeDef.qMeasures",[]).concat(s(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function _e(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function je(e){return s(e,"outputExpression.qValueExpression.qExpr")||s(e,"outputExpression")}function ze(e){Ne(e).forEach(function(e){return function(e){var t=Le(e);t&&(void 0!==t.outputExpression&&je(t)!==e.qDef.qDef?delete e.qDef.base:!Re.isValid(e)&&t.base&&(e.qDef.base=i()(!0,{},t.base)))}(e)})}function Fe(e){var t=_e(e);Array.isArray(t)&&t.forEach(function(t){"object"===Ae(t)&&(t.disabled||!Pe[t.type]&&je(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)})}function $e(e){return e.base||e.qDef&&e.qDef.base}function He(e){var t=$e(e);return e.qLibraryId||t&&t.qLibraryId}function Be(e){var t=e.measure,r=e.properties,n=e.layout;return!He(t)&&We({modifiers:_e(t),properties:r,layout:n})}function We(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some(function(e){return!("object"!==Ae(e)||e.disabled||!Pe[e.type])&&(void 0===o[e.type]&&(o[e.type]=Pe[e.type].isApplicable({properties:r,layout:n})),o[e.type])})}function Ve(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then(function(e){o.dimensionList=e});n.push(i);var a=t.app.getFieldList().then(function(e){o.fieldList=e});return n.push(a),Promise.all(n).then(function(){return o})}function Ue(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach(function(e){var t=r.app.getMeasure(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),i.forEach(function(e){var t=r.app.getDimension(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),Promise.all(s).then(function(){return a}).catch(function(){return null})}function Ge(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Ye(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(s(t,"qHyperCubeDef.qMeasures"),Ge)!==JSON.stringify(s(r,"qHyperCubeDef.qMeasures"),Ge)||JSON.stringify(s(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ge)!==JSON.stringify(s(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ge);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&s(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):function(e,t,r){if(!e)return Promise.resolve();var n=q.generate(t,r);return i()(!0,t,r),n&&n.length?(n=n.map(function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}}),e.applyPatches(n,!0)):Promise.resolve()}(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then(function(){return o}):Promise.resolve(o)}function Ke(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some(function(e){return"object"===Ae(e)&&!e.disabled&&Pe[e.type]&&Pe[e.type].needDimension({modifier:e,properties:r,layout:n})})}function Xe(e){var t=Ne(e),r=[],n=[],o=!1;return t.forEach(function(t){var n=_e(t);if(We({modifiers:n,properties:e})){var i=He(t);i&&r.push(i),o=o||Ke({modifiers:n,properties:e})}}),s(e,"qHyperCubeDef.qDimensions",[]).forEach(function(e){var t=e.qLibraryId;t&&n.push(t)}),{measureLibraryIds:r,dimensionLibraryIds:n}}function Je(e){var t=e.model,r=e.libraryIds,n=e.masterItem;return!n&&n!==de&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(Ie[t.id].masterItemSubscriber=Ie[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},i={},a={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},r=s(e,"qInfo.qType");return r&&a[r]&&a[r].forEach(function(r){t[r]=s(e,r)}),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=l(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(){Object.keys(n).forEach(function(e){o[e]||i[e]||(n[e].listener.dispose(),n[e].unbindCloseListnener(),delete n[e])})}var d=function(e,t){return e.once("closed",t),function(){return e.removeListener("closed",t)}};function p(e,o){return t.app[o](e).then(function(t){n[e]={listener:t.layoutSubscribe(u),unbindCloseListnener:d(t,function(){return e=t.id,r(de),delete n[e],void c();var e}),enabled:!1,properties:l(t.layout)}}).catch(function(){})}return{subscribe:function(e){var r=e.measureLibraryIds,a=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach(function(e){o[e]=!0}),i={},t.forEach(function(e){i[e]=!0})}({measureLibraryIds:r,dimensionLibraryIds:a}),c(),t.app&&(Object.keys(o).forEach(function(e){o[e]&&!n[e]&&s.push(p(e,"getMeasure"))}),Object.keys(i).forEach(function(e){i[e]&&!n[e]&&s.push(p(e,"getDimension"))})),Promise.all(s)},unsubscribe:function(){Object.keys(n).forEach(function(e){n[e].listener.dispose(),n[e].unbindCloseListnener()}),n={}}}}({model:t,callback:function(e){return ke({model:t,masterItem:e}).then(function(){return t.app.clearUndoBuffer()})}}),Ie[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}for(var Ze in JA.default=n.default,n)-1===["default"].indexOf(Ze)&&(JA[Ze]=n[Ze]);Object.defineProperty(JA,"__esModule",{value:!0})})();var QA=Zt(ZA);const eP={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},tP={textAlignAuto:{ref:"qDef.textAlign.auto",type:"boolean",component:"switch",translation:"Common.Text.TextAlignment",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},textAlign:{ref:"qDef.textAlign.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:e=>void 0!==e.qDef.textAlign&&!e.qDef.textAlign.auto}},rP=e=>({type:"items",grouped:!0,items:{totalsAggrGroup:{type:"items",items:{totalsAggrFunc:{type:"string",component:"dropdown",ref:"qDef.qAggrFunc",translation:"Object.Table.AggrFunc",options:(e,t)=>(!QA.hasActiveModifiers({measures:[e],properties:t.properties})||QA.ifEnableTotalsFunction(e)?[{value:""===e.qDef.qAggrFunc?"":"Expr",translation:"Common.Auto"}]:[]).concat([{value:"Avg",translation:"Object.Table.AggrFunc.Avg"},{value:"Count",translation:"Object.Table.AggrFunc.Count"},{value:"Max",translation:"Object.Table.AggrFunc.Max"},{value:"Min",translation:"Object.Table.AggrFunc.Min"},{value:"Sum",translation:"Object.Table.AggrFunc.Sum"},{value:"None",translation:"Object.Table.AggrFunc.None"}]),defaultValue:e.anything.sense?.isUnsupportedFeature?.("totals")?"None":"Expr"}}}},show:!e.anything.sense?.isUnsupportedFeature?.("totals")}),nP={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:hE.Auto,translation:"Common.Auto"},{value:hE.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:hE.Pixels,translation:"Object.Table.Column.Pixels"},{value:hE.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:hE.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:"200",show:e=>e.qDef.columnWidth?.type===hE.Pixels},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:"20",show:e=>e.qDef.columnWidth?.type===hE.Percentage}},oP=e=>({...eP,...e.flags.isEnabled("VNA-626-TABLE_HEADER_COLOR_BY_EXPRESSION")?{columnExpression:{type:"items",grouped:!0,items:[{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},{type:"items",items:[{component:"text",translation:"properties.Header",style:"sHeader"},{ref:"qDef.headerColor.background",translation:"Object.Table.Measure.BackgroundExpression",component:"expression",expressionType:"StringExpression",defaultValue:""},{ref:"qDef.headerColor.foreground",translation:"Object.Table.Measure.ForegroundExpression",component:"expression",expressionType:"StringExpression",defaultValue:""}]},{type:"items",items:[{component:"text",translation:"properties.Content",style:"sHeader"},{component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:"cellBackgroundColor",tid:"tableColorBgByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"cellForegroundColor",tid:"tableColorByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.TextStyleExpression",defaultValue:"",id:"textStyleExpression",tid:"tableTextStyleByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"urlLabel",tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"url",tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageLabel",tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageUrl",tid:"ImageUrlByExpression",show:!1}]}]}]}}:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},tableCellStyling:{component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:"cellBackgroundColor",tid:"tableColorBgByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"cellForegroundColor",tid:"tableColorByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.TextStyleExpression",defaultValue:"",id:"textStyleExpression",tid:"tableTextStyleByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"urlLabel",tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"url",tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageLabel",tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageUrl",tid:"ImageUrlByExpression",show:!1}]}},...tP,...nP}),iP={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},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},createMasterItemButton:{},divider:{uses:"divider"},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"}},aP=e=>{const t=e.anything.sense?.isUnsupportedFeature?.("modifiers");return{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>t?!!e.qLibraryId:!(!e.qLibraryId&&!e.qDef.base?.qLibraryId)},inlineMeasure:{component:"inline-measure",show:e=>t?!e.qLibraryId:!(e.qLibraryId||e.qDef.base?.qLibraryId)},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:rP(e)}},sP=e=>({dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:iP},presentation:{type:"items",translation:"properties.presentation",items:{...oP(e),...KA(e)}}}}}),lP=e=>({measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:aP(e)},presentation:{type:"items",translation:"properties.presentation",items:{...oP(e),...XA(e,{[WA.Image]:!0,[WA.Indicator]:!0,[WA.MiniChart]:!0})}}}}}),uP=e=>({...sP(e),...lP(e)}),cP=e=>({type:"items",translation:"Common.Data",component:"tabs-component",items:{columns:{component:"data-assets-panel",ref:"columns",tabName:"properties.DataAssetPanel.Columns",items:{...uP(e)},highlightSelected:!0},filters:{type:"items",component:"filters-assets-panel",ref:"filters",tabName:"SimpleProperties.Filters.Filters",items:{filter:{type:"object",component:"filter-item-react",ref:"filter"}},highlightSelected:!0}}}),dP={chartExploration:{type:"items",translation:"properties.chartExploration",items:{chartExplorationToggler:{type:"items",component:"chart-exploration-toggler",translation:"properties.enableChartExploration",ref:"enableChartExploration"},visibilityToggler:{show:e=>e.enableChartExploration,component:"buttongroup",translation:"properties.ChartExploration.VisibilityOption",ref:"chartExploration.menuVisibility",options:[{value:"auto",translation:"Common.Auto"},{value:"minimized",translation:"properties.ChartExploration.Minimized"}]}},show:e=>!e.insideContainer}},pP=({flags:e})=>{const t={ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",defaultValue:!1};return e.isEnabled("CLIENT_VNA_373_IMPROVE_TABLE_HEADERS")?{type:"items",items:[{component:"text",translation:"properties.accessibilityOptions"},t,{ref:"accessibleHeader",translation:"properties.increaseAccessibility",type:"boolean",component:"checkbox",undefinedValue:!0,defaultValue:!1}]}:t},fP=e=>({type:"items",items:[{ref:"totals.show",type:"boolean",translation:"properties.totals",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},{ref:"totals.position",translation:"Common.Position",type:"string",component:"dropdown",options:[{value:"noTotals",translation:"Common.None"},{value:"top",translation:"Common.Top"},{value:"bottom",translation:"Common.Bottom"}],defaultValue:"noTotals",show:e=>!e.totals?.show},{ref:"totals.label",translation:"properties.totals.label",type:"string",expression:"optional",defaultValue:()=>e.translator.get("Object.Table.Totals")}],show:!e.anything.sense?.isUnsupportedFeature?.("totals")}),hP=(e,t,r,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:n??!1,defaultValue(e,t,o){const i=n?.(e,t,o)??!1,a=o.theme.current(),s=r(a,i);return{color:"transparent"===s?"none":s}}}),mP=(e,t=!1)=>{return{value:e,label:t?(r=e,r.charAt(0).toUpperCase()+r.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var r},gP=({ref:e,themeAccessor:t,translator:r,flags:n})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,r,n)=>{const o=t.fontFamily??"Source Sans Pro, sans-serif",i=t.fontFamilies??[],a=Array.from(new Set([e,o,...i])),s=[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0},...a.sort().map(e=>mP(e,!0))],l=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...we(n).filter(e=>!a.includes(e)).map(e=>mP(e,!0))];return[...s,...l.length>1?l:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),vP=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],bP=({ref:e,themeAccessor:t,translator:r})=>({component:"dropdown",ref:e,options:(e,n,o)=>{const i=o.theme.current();return((e,t,r)=>{const n=t.fontSize,o=t.fontSizes??[],i=Array.from(new Set([e,n,...o])),a=[{value:"ThemeHeader",label:r.get("properties.themeFontSizes"),metaText:r.get("properties.theme"),groupHeader:!0},...i.sort((e,t)=>parseInt(e,10)-parseInt(t,10)).map(e=>mP(e,!1))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...vP.filter(e=>!i.includes(e)).map(e=>mP(e,!1))];return[...a,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),yP=({section:e,defaultFontStyle:t,translator:r,flags:n,getThemeValue:o,translation:i,disableNoneCallback:a})=>({component:"panel-section",translation:i??`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:gP({ref:`${e}.fontFamily`,themeAccessor:t=>o(t,e,"fontFamily")??t.fontFamily,translator:r,flags:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:t??[]},fontSize:bP({ref:`${e}.fontSize`,themeAccessor:t=>o(t,e,"fontSize")??t.fontSize,translator:r}),fontColor:hP(`${e}.fontColor`,void 0,t=>o(t,e,"color")??t.color)}},background:hP(`${e}.background`,"properties.background",(t,r)=>{const n=r?OC.WHITE:OC.TRANSPARENT;return o(t,e,"backgroundColor")??n},a)}}}}),xP=({section:e,defaultFontStyle:t,fallbackBackground:r,getThemeValue:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:t??[]},fontColor:hP(`${e}.fontColor`,void 0,t=>n(t,e,"color")??t.color)}},background:hP(`${e}.background`,"properties.background",t=>n(t,e,"backgroundColor")??r??"transparent")}}}}),SP=(e,t,r)=>{switch(t){case"header":return e.object?.straightTableV2?.dimension?.label?.name?.[r];case"dimensionValues":return e.object?.straightTableV2?.dimension?.label?.value?.[r];case"measureValues":return e.object?.straightTableV2?.measure?.label?.value?.[r];case"totalValues":return e.object?.straightTableV2?.total?.label?.value?.[r];case"nullValues":return e.object?.straightTableV2?.null?.label?.value?.[r];default:return}},wP=e=>e.grid?.zebraStripes?.show,CP={ref:"content.rowHeight",component:"integer",placeholder:1,maxlength:4,translation:"ThemeStyleEditor.style.rowHeight",change(e){null!=e?.content?.rowHeight&&""!==e.content.rowHeight?e.content.rowHeight=Math.max(1,Math.min(50,Math.floor(e.content.rowHeight))):void 0!==e?.content&&(e.content.rowHeight=void 0)}},EP=e=>e?.content?.hoverEffect,RP={translation:"properties.RowHover",component:"panel-section",items:{hoverEffectItem:{component:"items",ref:"components",key:"theme",items:{hoverEffectSwitch:{ref:"content.hoverEffect",translation:"ThemeStyleEditor.style.hoverEffect",type:"boolean",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1},hoverEffectColorItem:{show:EP,ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show:EP,ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}},AP=(e,t,{properties:r})=>"sn-table"===r.visualization&&!0===r.usePagination,PP=({flags:e,translator:t})=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.StraightTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,items:{headerSection:yP({section:"header",defaultFontStyle:["bold"],translator:t,flags:e,getThemeValue:SP,disableNoneCallback:AP}),dimensionValueSection:yP({section:"dimensionValues",translator:t,flags:e,getThemeValue:SP}),measureValueSection:yP({section:"measureValues",translator:t,flags:e,getThemeValue:SP}),totalRowSection:yP({section:"totalValues",defaultFontStyle:["bold"],translation:"properties.totals",translator:t,flags:e,getThemeValue:SP,disableNoneCallback:AP}),nullValues:xP({section:"nullValues",fallbackBackground:OC.NULL_VALUE_BACKGROUND,getThemeValue:SP}),grid:{translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{rowHeight:{show:()=>!0,...CP},border:hP("grid.border","properties.border",e=>e.object?.straightTableV2?.grid?.borderColor??OC.BORDER_MEDIUM),divider:hP("grid.divider","properties.pivot.divider",e=>e.object?.straightTableV2?.grid?.divider?.borderColor??OC.BORDER_HEAVY)}}}},hoverEffectSection:RP,zebraStripes:{translation:"properties.zebraStripes",component:"panel-section",items:{hoverEffectItem:{component:"items",ref:"components",key:"theme",items:{zebraStripesEnable:{ref:"grid.zebraStripes.show",translation:"properties.zebraStripes.enable",type:"boolean",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1},zebraStripesColorOdd:{show:wP,ref:"grid.zebraStripes.color.odd",translation:"properties.zebraStripes.color.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundrOdd:{show:wP,ref:"grid.zebraStripes.background.odd",translation:"properties.zebraStripes.background.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1},zebraStripesColorEven:{show:wP,ref:"grid.zebraStripes.color.even",translation:"properties.zebraStripes.color.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundEven:{show:wP,ref:"grid.zebraStripes.background.even",translation:"properties.zebraStripes.background.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1}}}}}}}]}),MP=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[PP(e),fP(e),pP(e),{type:"items",translation:"Object.Table.WrapText",items:[{component:"text",translation:"Object.Table.Multiline"},{ref:"multiline.wrapTextInHeaders",type:"boolean",translation:"Object.Table.Multiline.WrapTextInHeaders",component:"checkbox",defaultValue:!0},{ref:"multiline.wrapTextInCells",type:"boolean",translation:"Object.Table.Multiline.WrapTextInCells",component:"checkbox",defaultValue:!0}]},{ref:"hideHeader",translation:"properties.hideHeader",type:"boolean",component:"checkbox",defaultValue:!1},{ref:"nullValueRepresentation.text",type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"}]},...dP}}),IP={uses:"sorting"},kP={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},DP=e=>({type:"items",component:"accordion",items:{data:cP(e),sorting:IP,addOns:kP,settings:MP(e)}});function TP(e){return{definition:DP(e),exploration:RA,data:BA(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1,exploration:!0,cssScaling:!0,modifiers:e.anything.sense?.isUnsupportedFeature?.("modifiers")?void 0:["accumulation","movingAverage","difference","normalization"]},importProperties(e,t,r,n,o){const i={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()};return EA({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:i,viewDataMode:o})},exportProperties:(e,t)=>bA({propertyTree:e,hyperCubePath:t}),...e.flags.isEnabled("VNA-505_toggle_field_visibility")&&{propertyHandler:t=>new jA(t,e.translator),usePropertyHandler:"sn-table-data"}}}var OP={exports:{}};
|
|
102
|
+
*/var xC,SC,wC={},CC={};function EC(){if(xC)return CC;xC=1;var e=iu;Object.defineProperty(CC,"__esModule",{value:!0}),CC.default=void 0;var t=(0,e(gy()).default)();return CC.default=t,CC}var RC,AC,MC={},PC={};function IC(){if(AC)return MC;AC=1;var e=iu;Object.defineProperty(MC,"__esModule",{value:!0}),MC.default=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.breakpoints,a=void 0===i?["sm","md","lg"]:i,s=o.disableAlign,l=void 0!==s&&s,u=o.factor,c=void 0===u?2:u,d=o.variants,p=void 0===d?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:d,f=(0,t.default)({},e);f.typography=(0,t.default)({},f.typography);var h=f.typography,m=(0,n.convertLength)(h.htmlFontSize),g=a.map(function(e){return f.breakpoints.values[e]});return p.forEach(function(e){var o=h[e],i=parseFloat(m(o.fontSize,"rem"));if(!(i<=1)){var a=i,s=1+(a-1)/c,u=o.lineHeight;if(!(0,n.isUnitless)(u)&&!l)throw new Error((0,r.formatMuiErrorMessage)(6));(0,n.isUnitless)(u)||(u=parseFloat(m(u,"rem"))/parseFloat(i));var d=null;l||(d=function(e){return(0,n.alignProperty)({size:e,grid:(0,n.fontGrid)({pixels:4,lineHeight:u,htmlFontSize:h.htmlFontSize})})}),h[e]=(0,t.default)({},o,(0,n.responsiveProperty)({cssProperty:"fontSize",min:s,max:a,unit:"rem",breakpoints:g,transform:d}))}}),f};var t=e(Ju()),r=Mg,n=function(){if(RC)return PC;RC=1;var e=iu;Object.defineProperty(PC,"__esModule",{value:!0}),PC.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},PC.getUnit=r,PC.toUnitless=n,PC.convertLength=function(e){return function(t,o){var i=r(t);if(i===o)return t;var a=n(t);if("px"!==i)if("em"===i)a=n(t)*n(e);else if("rem"===i)return a=n(t)*n(e),t;var s=a;if("px"!==o)if("em"===o)s=a/n(e);else{if("rem"!==o)return t;s=a/n(e)}return parseFloat(s.toFixed(5))+o}},PC.alignProperty=function(e){var t=e.size,r=e.grid,n=t-t%r,o=n+r;return t-n<o-t?n:o},PC.fontGrid=function(e){var t=e.lineHeight;return e.pixels/(t*e.htmlFontSize)},PC.responsiveProperty=function(e){var r=e.cssProperty,n=e.min,o=e.max,i=e.unit,a=void 0===i?"rem":i,s=e.breakpoints,l=void 0===s?[600,960,1280]:s,u=e.transform,c=void 0===u?null:u,d=(0,t.default)({},r,"".concat(n).concat(a)),p=(o-n)/l[l.length-1];return l.forEach(function(e){var o=n+p*e;null!==c&&(o=c(o)),d["@media (min-width:".concat(e,"px)")]=(0,t.default)({},r,"".concat(Math.round(1e4*o)/1e4).concat(a))}),d};var t=e(Gg());function r(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function n(e){return parseFloat(e)}return PC}();return MC}var kC,DC={};var TC,OC={};var LC,qC={};var NC,jC={};!function(e){var t=iu,r=Nm;Object.defineProperty(e,"__esModule",{value:!0});var n={createTheme:!0,createMuiTheme:!0,unstable_createMuiStrictModeTheme:!0,createStyles:!0,makeStyles:!0,responsiveFontSizes:!0,styled:!0,useTheme:!0,withStyles:!0,withTheme:!0,createGenerateClassName:!0,jssPreset:!0,ServerStyleSheets:!0,StylesProvider:!0,MuiThemeProvider:!0,ThemeProvider:!0};Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"createMuiTheme",{enumerable:!0,get:function(){return i.createMuiTheme}}),Object.defineProperty(e,"unstable_createMuiStrictModeTheme",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"createStyles",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"makeStyles",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"responsiveFontSizes",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"styled",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"useTheme",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"withStyles",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"withTheme",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"createGenerateClassName",{enumerable:!0,get:function(){return m.createGenerateClassName}}),Object.defineProperty(e,"jssPreset",{enumerable:!0,get:function(){return m.jssPreset}}),Object.defineProperty(e,"ServerStyleSheets",{enumerable:!0,get:function(){return m.ServerStyleSheets}}),Object.defineProperty(e,"StylesProvider",{enumerable:!0,get:function(){return m.StylesProvider}}),Object.defineProperty(e,"MuiThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}});var o=jm;Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(n,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))});var i=r(gy()),a=t(function(){if(by)return vy;by=1;var e=iu;Object.defineProperty(vy,"__esModule",{value:!0}),vy.default=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.default.apply(void 0,[(0,t.deepmerge)({unstable_strictMode:!0},e)].concat(o))};var t=Mg,r=e(gy());return vy}()),s=t(function(){if(gC)return yy;gC=1,Object.defineProperty(yy,"__esModule",{value:!0}),yy.default=function(t){return(0,e.createStyles)(t)};var e=yC;return yy}()),l=t(function(){if(SC)return wC;SC=1;var e=iu;Object.defineProperty(wC,"__esModule",{value:!0}),wC.default=void 0;var t=e(Ju()),r=yC,n=e(EC()),o=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,r.makeStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return wC.default=o,wC}()),u=t(IC()),c=t(function(){if(kC)return DC;kC=1;var e=iu;Object.defineProperty(DC,"__esModule",{value:!0}),DC.default=void 0;var t=e(Ju()),r=yC,n=e(EC()),o=function(e){var o=(0,r.styled)(e);return function(e,r){return o(e,(0,t.default)({defaultTheme:n.default},r))}};return DC.default=o,DC}()),d=py();Object.keys(d).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(n,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return d[t]}}))});var p=t(function(){if(TC)return OC;TC=1;var e=iu;Object.defineProperty(OC,"__esModule",{value:!0}),OC.default=function(){return(0,t.useTheme)()||r.default};var t=yC;e(S);var r=e(EC());return OC}()),f=t(function(){if(LC)return qC;LC=1;var e=iu;Object.defineProperty(qC,"__esModule",{value:!0}),qC.default=void 0;var t=e(Ju()),r=yC,n=e(EC()),o=function(e,o){return(0,r.withStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return qC.default=o,qC}()),h=t(function(){if(NC)return jC;NC=1;var e=iu;Object.defineProperty(jC,"__esModule",{value:!0}),jC.default=void 0;var t=yC,r=e(EC()),n=(0,t.withThemeCreator)({defaultTheme:r.default});return jC.default=n,jC}()),m=yC}(Tm),Tm.alpha($t.GREYSCALE_0,.05),Tm.alpha($t.GREEN_PALE,.5),Tm.alpha($t.BLUE_PALE,.5),Tm.alpha($t.GREEN_PALE,.5),Tm.alpha($t.BLUE_PALE,.5),Tm.alpha($t.GREEN_PALE,.5),Tm.alpha($t.BLUE_PALE,.5),Tm.alpha($t.GREEN_PALE,.5),Tm.alpha($t.BLUE_PALE,.5),Tm.alpha($t.GREEN_PALE,.5),Tm.alpha($t.BLUE_PALE,.5);const _C=(e="light")=>({components:Im(),palette:km(),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:Bt,fontWeightLight:Gt,fontWeightRegular:Yt,fontWeightMedium:Kt,fontWeightBold:Xt,htmlFontSize:Bt,fontFamily:Jt.FONT_FAMILY,button:{fontWeight:Kt,fontSize:Bt,textTransform:"none"},body1:{fontSize:Wt,lineHeight:"24px"},body2:{fontSize:Bt,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Vt,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Wt,fontWeight:Kt,lineHeight:"16px"},h6:{fontSize:Bt,fontWeight:Kt,lineHeight:"16px"},caption:{color:$t.TEXT_SECONDARY},subtitle1:{fontSize:Bt,color:$t.TEXT_SECONDARY},subtitle2:{fontSize:Ht,color:$t.TEXT_SECONDARY}},shape:{borderRadius:Ut}}),zC=_C().palette,FC={TEXT:zC.text.primary,DISABLED:zC.text.disabled,HOVER:zC.action.hover,WHITE:Dm.GREYSCALE_100,BORDER_LIGHT:Dm.GREYSCALE_90,BORDER_MEDIUM:Dm.GREYSCALE_85,BORDER_HEAVY:Dm.GREYSCALE_50,DARK_MODE_TEXT:Dm.GREYSCALE_95,DARK_MODE_BORDER:Dm.GREYSCALE_95,DARK_MODE_DISABLED:Dm.GREYSCALE_70,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:Dm.GREYSCALE_95,SELECTED:zC.primary.main,LINK:zC.info.main,ERROR:zC.error.main},$C=(e,t=FC.TEXT,r=FC.WHITE)=>{const n=ie(e??""),o=ie(t),i=ie(r);return n.isInvalid()?t:function(e,t,r){const n=ae(e,t),o=ae(e,r);if(void 0!==n&&void 0!==o)return n>o?t:r}(n,i,o).getRGB()},HC=e=>{const t=e.getStyle("","","dataColors.selected")||FC.SELECTED,r=function(e,t){const r=ie(se),n=ie(e),o=ie(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;const i=ae(r,n),a=ae(o,n),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?se:"#000000"}(t,FC.TEXT);return{background:t,color:r}},BC=(e,t)=>{const r=ie(e);return 0===r.a?(r.setAlpha(t.opacity),r.getString()):r.isDark()?r.getBrightenedColor(t.brighter).getString():r.getDarkenedColor(t.darker).getString()},WC=(e,t,r)=>{const n=t?e.getColorPickerColor(t):"none";return"none"===n?r:n},VC=e=>{const t=ie(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},UC=(e,t,r)=>{const n=e.closest(".qv-object-wrapper")?.querySelector(".sel-toolbar-confirm")?.parentElement??document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm")?.parentElement;n?n.focus():t.focusSelection?.(r)},GC=e=>{e.stopPropagation(),e.preventDefault()},YC=e=>!!e&&0===ie(e).a,KC="#grid",XC=(e,t,r,n=FC.WHITE)=>e&&!YC(e)?e:YC(t)?r&&!YC(r)?r:n:t,JC=(e,t)=>{const r=t?.closest(e);return r&&window.getComputedStyle(r).backgroundColor},ZC=(e,t,r,n,o)=>{const i=JC(".qv-object .qv-inner-object",r),a=JC(".qv-panel-sheet",r),s=JC(KC,r)??a,l=(e=>{const t=e.components?.find(e=>"general"===e.key),r=t?.bgColor?.colorExpression,n=t?.bgColor?.color?.color,o=t?.bgColor?.useColorExpression;if(o&&r)return VC(r);if("none"===n)return"transparent";if(void 0===n)return;const i=ie(n);return i.setAlpha(t?.bgColor?.color?.alpha??i.a),i.getRGBA()})(e),u=n?.(t),c=o?.(t),d=l||u||i||c,p=YC(d),f=!YC(h=p?s:d)&&$C(h,FC.TEXT,FC.DARK_MODE_TEXT)===ee(FC.DARK_MODE_TEXT);var h;return{color:d,headerColor:XC(l,d,s),isDark:f}},QC=(t,r,a,s)=>{const l=i(),u=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,i]=n([]);return o(()=>{let r;return e&&(r=new MutationObserver(e=>{i(e)}),r.observe(e,t)),()=>{r?.disconnect()}},[e,t]),r})(r.closest(KC),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter(({oldValue:e})=>e?.includes("background")).map(({oldValue:e})=>e).join(",");return e(()=>({...l,background:ZC(t,l,r,a,s)}),[l.name(),r,a,s,t,u])};const eE=3,tE=/\n/g;function rE(e,t,r){let n=0,o=e.length;if(Number.isNaN(t))return null;if(e.length<=1)return null;if(r(e)<=t)return null;for(;n<=o;){const i=Math.floor((n+o)/2),a=e.slice(0,i),s=e.slice(0,i-1),l=r(a),u=r(s);if(l>t&&u<=t)return e.slice(i-1)||null;if(l===t)return e.slice(i)||null;l<t?n=i+1:o=i}return null}const nE=({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o)=>{const{maxNbrLinesOfText:i=eE,allowLineBreaks:a=!0}=o??{};return()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const s=o.measureText.bind(o),l=Pt(e=>{if(void 0===e)return 0;if(a){const t=e.split(tE).map(e=>s(e).width);return t.reduce((e,t)=>t>e?t:e,0)}const t=e.replace(tE," ");return s(t).width}),u=e=>+l(e).toFixed(2),c=Pt(({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;const n=a?e.split(tE):[e];let o=0;for(const e of n){let r=e;do{o+=1,r=rE(r,t,u)}while(null!==r&&o<i);if(o>=i)break}return o},({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`);return{measureText:e=>l(e),estimateWidth:e=>l("N")*e,estimateLineCount:c}}};function oE({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=eE,allowLineBreaks:a=!0}={},{estimateWidth:s,measureText:l,estimateLineCount:u}=A(()=>nE({fontStyle:r,fontWeight:n,fontSize:e,fontFamily:t},{maxNbrLinesOfText:i,allowLineBreaks:a})(),[r,n,e,t,i,a]);return{estimateWidth:s,measureText:l,estimateLineCount:u}}var iE,aE=B;iE=aE.createRoot,aE.hydrateRoot;const sE="Source Sans Pro, sans-serif",lE=(t,n,o)=>{const[,i,a]=function(t,n){const o=e(()=>({isLoading:!0}),n),[i,a]=r(async()=>{try{return await t()}finally{o.isLoading=!1}},n);return[i,o.isLoading,a]}(async()=>{const e=we(o.flags),r=t.getStyle("","","fontFamily"),n=t.getStyle("object","label.name","fontFamily"),i=t.getStyle("object","label.value","fontFamily"),a=t.getStyle("","","fontFamilies")??[];return Promise.all([...e,...a,r,n,i,sE].filter(e=>void 0!==e).map(async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)}))},[n,t,o]);return a?(console.warn("Failed to load fonts:",a),!0):!i};function uE(e,t){const[r,n]=M(t);r.some((e,r)=>e!==t[r])&&(n(t),e())}var cE={NebulaTableUtils_ColumnAdjuster_ColumnNameLabel:{id:"NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",locale:{"de-DE":"Breite von {0}","en-US":"Width of {0}","es-ES":"Ancho de {0}","fr-FR":"Largeur de {0}","it-IT":"Larghezza di {0}","ja-JP":"{0} の幅","ko-KR":"{0}의 너비","nl-NL":"Breedte van {0}","pl-PL":"Szerokość kolumny {0}","pt-BR":"Comprimento de {0}","ru-RU":'Ширина столбца "{0}"',"sv-SE":"Bredd på {0}","tr-TR":"{0} genişliği","zh-CN":"{0} 的宽度","zh-TW":"{0} 的寬度"}},NebulaTableUtils_MenuGroupLabel_Sorting:{id:"NebulaTableUtils.MenuGroupLabel.Sorting",locale:{"de-DE":"Sortierung","en-US":"Sorting","es-ES":"Ordenación","fr-FR":"Tri","it-IT":"Ordinamento","ja-JP":"ソート","ko-KR":"정렬","nl-NL":"Sorteren","pl-PL":"Sortowanie","pt-BR":"Classificação","ru-RU":"Сортировка","sv-SE":"Sortering","tr-TR":"Sıralama","zh-CN":"排序","zh-TW":"排序"}},NebulaTableUtils_MenuItemLabel_AdjustColumnSize:{id:"NebulaTableUtils.MenuItemLabel.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},NebulaTableUtils_MenuItemLabel_ClearSelections:{id:"NebulaTableUtils.MenuItemLabel.ClearSelections",locale:{"de-DE":"Auswahlen löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Geselecteerde waarden wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},NebulaTableUtils_MenuItemLabel_Collapse:{id:"NebulaTableUtils.MenuItemLabel.Collapse",locale:{"de-DE":"Reduzieren","en-US":"Collapse","es-ES":"Contraer","fr-FR":"Réduire","it-IT":"Comprimi","ja-JP":"折りたたむ","ko-KR":"축소","nl-NL":"Samenvouwen","pl-PL":"Zwiń","pt-BR":"Recolher","ru-RU":"Свернуть","sv-SE":"Dölj","tr-TR":"Daralt","zh-CN":"折叠","zh-TW":"收合"}},NebulaTableUtils_MenuItemLabel_ColumnOptions:{id:"NebulaTableUtils.MenuItemLabel.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбца","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},NebulaTableUtils_MenuItemLabel_Expand:{id:"NebulaTableUtils.MenuItemLabel.Expand",locale:{"de-DE":"Erweitern","en-US":"Expand","es-ES":"Expandir","fr-FR":"Développer","it-IT":"Espandi","ja-JP":"展開","ko-KR":"확장","nl-NL":"Uitvouwen","pl-PL":"Rozwiń","pt-BR":"Expandir","ru-RU":"Развернуть","sv-SE":"Utöka","tr-TR":"Genişlet","zh-CN":"展开","zh-TW":"展開"}},NebulaTableUtils_MenuItemLabel_Search:{id:"NebulaTableUtils.MenuItemLabel.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},NebulaTableUtils_MenuItemLabel_SelectAll:{id:"NebulaTableUtils.MenuItemLabel.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},NebulaTableUtils_MenuItemLabel_SelectAlternative:{id:"NebulaTableUtils.MenuItemLabel.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대체 가능 값 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},NebulaTableUtils_MenuItemLabel_SelectExcluded:{id:"NebulaTableUtils.MenuItemLabel.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},NebulaTableUtils_MenuItemLabel_SelectPossible:{id:"NebulaTableUtils.MenuItemLabel.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},NebulaTableUtils_MenuItemLabel_Selections:{id:"NebulaTableUtils.MenuItemLabel.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택 내용","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},NebulaTableUtils_MenuItemLabel_SortAscending:{id:"NebulaTableUtils.MenuItemLabel.SortAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortieren","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Trier par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},NebulaTableUtils_MenuItemLabel_SortDescending:{id:"NebulaTableUtils.MenuItemLabel.SortDescending",locale:{"de-DE":"In absteigender Reihenfolge sortieren","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Trier par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},NebulaTableUtils_Pagination_DisplayedRowsLabel:{id:"NebulaTableUtils.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{0}/{1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},NebulaTableUtils_Pagination_FirstPage:{id:"NebulaTableUtils.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},NebulaTableUtils_Pagination_LastPage:{id:"NebulaTableUtils.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},NebulaTableUtils_Pagination_NextPage:{id:"NebulaTableUtils.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},NebulaTableUtils_Pagination_PreviousPage:{id:"NebulaTableUtils.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},NebulaTableUtils_Pagination_RowsPerPage:{id:"NebulaTableUtils.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},NebulaTableUtils_Pagination_SelectPage:{id:"NebulaTableUtils.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}}};const dE=({translator:e})=>(A(()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(cE).forEach(t=>{e.add(cE[t])})}}(e)},[e]),e),pE="12px",fE="nebula-table-utils-head-menu-button",hE="nebula-table-utils-head-menu-wrapper",mE="nebula-table-utils-head-menu",gE="nebula-table-utils-head-menu-list-id",bE="sn-copy-cell";let vE=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.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.F2="F2",e}({});const yE="nebula-table-utils-column-adjuster";let xE=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}({}),SE=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const wE={darker:.15,brighter:.3,opacity:.03},CE={darker:.3,brighter:.5,opacity:.05};let EE=function(e){return e.Cyclic="C",e}({});const RE=document.createElement("textarea");function AE(e){RE.value=e,document.body.appendChild(RE),RE.select(),RE.setSelectionRange(0,RE.value.length),document.execCommand("copy"),document.body.removeChild(RE)}RE.style.position="absolute",RE.style.left="-9999px",RE.setAttribute("readonly","");const ME=e=>{const t=e.title;t&&(navigator.clipboard?.writeText?navigator.clipboard.writeText(t).catch(()=>{AE(t)}):AE(t))};function PE(e){return"init"in e}function IE(e){return!!e.write}function kE(e){return"v"in e||"e"in e}function DE(e){if("e"in e)throw e.e;if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}function TE(e){return"function"==typeof(null==e?void 0:e.then)}function OE(e,t,r){if(!r.p.has(e)){r.p.add(e);const n=()=>r.p.delete(e);t.then(n,n)}}function LE(e,t,r){const n=r.get(e),o=null==n?void 0:n.t,i=t.p;if(!(null==o?void 0:o.size))return i;if(!i.size)return o;const a=new Set(o);for(const e of i)a.add(e);return a}const qE=()=>{const e={},t=new WeakMap,r=r=>{var n,o;null==(n=t.get(e))||n.forEach(e=>e(r)),null==(o=t.get(r))||o.forEach(e=>e())};return r.add=(r,n)=>{const o=r||e;let i=t.get(o);return i||(i=new Set,t.set(o,i)),i.add(n),()=>{i.delete(n),i.size||t.delete(o)}},r};function NE(e){return e.i||(e.i=qE()),e.r||(e.r=qE()),e.c||(e.c=qE()),e.m||(e.m=qE()),e.u||(e.u=qE()),e.f||(e.f=(()=>{const e=new Set,t=()=>e.forEach(e=>e());return t.add=t=>(e.add(t),()=>e.delete(t)),t})()),e}const jE=(e,t,...r)=>t.read(...r),_E=(e,t,...r)=>t.write(...r),zE=(e,t)=>{var r;return null==(r=t.INTERNAL_onInit)?void 0:r.call(t,e)},FE=(e,t,r)=>{var n;return null==(n=t.onMount)?void 0:n.call(t,r)},$E=(e,t)=>{var r;const n=oR(e),o=n[0],i=n[6],a=n[9];if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&!t)throw new Error("Atom is undefined or null");let s=o.get(t);return s||(s={d:new Map,p:new Set,n:0},o.set(t,s),null==(r=i.i)||r.call(i,t),null==a||a(e,t)),s},HE=e=>{var t;const r=oR(e),n=r[1],o=r[3],i=r[4],a=r[5],s=r[6],l=r[13];if(!(s.f||o.size||i.size||a.size))return;const u=[],c=e=>{try{e()}catch(e){u.push(e)}};do{s.f&&c(s.f);const r=new Set;for(const e of o){const o=null==(t=n.get(e))?void 0:t.l;if(o)for(const e of o)r.add(e)}o.clear();for(const e of a)r.add(e);a.clear();for(const e of i)r.add(e);i.clear();for(const e of r)c(e);o.size&&l(e)}while(o.size||a.size||i.size);if(u.length)throw new AggregateError(u)},BE=e=>{const t=oR(e),r=t[1],n=t[2],o=t[3],i=t[11],a=t[14],s=t[17];if(!o.size)return;const l=[],u=[],c=new WeakSet,d=new WeakSet,p=[],f=[];for(const t of o)p.push(t),f.push(i(e,t));for(;p.length;){const t=p.length-1,o=p[t],a=f[t];if(d.has(o))p.pop(),f.pop();else if(c.has(o)){if(n.get(o)===a.n)l.push(o),u.push(a);else if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&n.has(o))throw new Error("[Bug] invalidated atom exists");d.add(o),p.pop(),f.pop()}else{c.add(o);for(const t of LE(o,a,r))c.has(t)||(p.push(t),f.push(i(e,t)))}}for(let t=l.length-1;t>=0;--t){const r=l[t],i=u[t];let c=!1;for(const e of i.d.keys())if(e!==r&&o.has(e)){c=!0;break}c&&(n.set(r,i.n),a(e,r),s(e,r)),n.delete(r)}},WE=new WeakSet,VE=(e,t)=>{var r,n;const o=oR(e),i=o[1],a=o[2],s=o[3],l=o[6],u=o[7],c=o[11],d=o[12],p=o[13],f=o[14],h=o[16],m=o[17],g=o[20],b=o[26],v=o[28],y=c(e,t),x=v[0];if(kE(y)){if(i.has(t)&&a.get(t)!==y.n||y.m===x)return y.m=x,y;let r=!1;for(const[t,n]of y.d)if(f(e,t).n!==n){r=!0;break}if(!r)return y.m=x,y}let S=!0;const w=new Set(y.d.keys()),C=()=>{for(const e of w)y.d.delete(e)},E=()=>{if(i.has(t)){const r=!s.size;m(e,t),r&&(p(e),d(e))}},R=r=>{var n;if(r===t){const t=c(e,r);if(!kE(t)){if(!PE(r))throw new Error("no atom init");g(e,r,r.init)}return DE(t)}const o=f(e,r);try{return DE(o)}finally{w.delete(r),y.d.set(r,o.n),TE(y.v)&&OE(t,y.v,o),i.has(t)&&(null==(n=i.get(r))||n.t.add(t)),S||E()}};let A,M;const P={get signal(){return A||(A=new AbortController),A.signal},get setSelf(){return"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&console.warn("[DEPRECATED] setSelf is deprecated and will be removed in v3."),"production"===(import.meta.env?import.meta.env.MODE:void 0)||IE(t)||console.warn("setSelf function cannot be used with read-only atom"),!M&&IE(t)&&(M=(...r)=>{if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&S&&console.warn("setSelf function cannot be called in sync"),!S)try{return h(e,t,...r)}finally{p(e),d(e)}}),M}},I=y.n,k=a.get(t)===I;try{"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&WE.delete(e);const n=u(e,t,R,P);if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&WE.has(e)&&console.warn("Detected store mutation during atom read. This is not supported."),g(e,t,n),TE(n)){b(e,n,()=>null==A?void 0:A.abort());const t=()=>{C(),E()};n.then(t,t)}else C();return null==(r=l.r)||r.call(l,t),y.m=x,y}catch(e){return delete y.v,y.e=e,++y.n,y.m=x,y}finally{S=!1,y.n!==I&&k&&(a.set(t,y.n),s.add(t),null==(n=l.c)||n.call(l,t))}},UE=(e,t)=>{const r=oR(e),n=r[1],o=r[2],i=r[11],a=[t];for(;a.length;){const t=a.pop(),r=i(e,t);for(const s of LE(t,r,n)){const t=i(e,s);o.get(s)!==t.n&&(o.set(s,t.n),a.push(s))}}},GE=(e,t,...r)=>{const n=oR(e),o=n[3],i=n[6],a=n[8],s=n[11],l=n[12],u=n[13],c=n[14],d=n[15],p=n[16],f=n[17],h=n[20],m=n[28];let g=!0;const b=t=>DE(c(e,t)),v=(r,...n)=>{var a;const c=s(e,r);try{if(r===t){if(!PE(r))throw new Error("atom not writable");"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&WE.add(e);const t=c.n,s=n[0];return h(e,r,s),f(e,r),void(t!==c.n&&(++m[0],o.add(r),d(e,r),null==(a=i.c)||a.call(i,r)))}return p(e,r,...n)}finally{g||(u(e),l(e))}};try{return a(e,t,b,v,...r)}finally{g=!1}},YE=(e,t)=>{var r;const n=oR(e),o=n[1],i=n[3],a=n[6],s=n[11],l=n[15],u=n[18],c=n[19],d=s(e,t),p=o.get(t);if(p&&d.d.size>0){for(const[n,o]of d.d)if(!p.d.has(n)){const c=s(e,n);u(e,n).t.add(t),p.d.add(n),o!==c.n&&(i.add(n),l(e,n),null==(r=a.c)||r.call(a,n))}for(const r of p.d)if(!d.d.has(r)){p.d.delete(r);const n=c(e,r);null==n||n.t.delete(t)}}},KE=(e,t)=>{var r;const n=oR(e),o=n[1],i=n[4],a=n[6],s=n[10],l=n[11],u=n[12],c=n[13],d=n[14],p=n[16],f=n[18],h=l(e,t);let m=o.get(t);if(!m){d(e,t);for(const r of h.d.keys()){f(e,r).t.add(t)}if(m={l:new Set,d:new Set(h.d.keys()),t:new Set},o.set(t,m),IE(t)&&function(e){return!!e.onMount}(t)){const r=()=>{let r=!0;const n=(...n)=>{try{return p(e,t,...n)}finally{r||(c(e),u(e))}};try{const o=s(e,t,n);o&&(m.u=()=>{r=!0;try{o()}finally{r=!1}})}finally{r=!1}};i.add(r)}null==(r=a.m)||r.call(a,t)}return m},XE=(e,t)=>{var r,n;const o=oR(e),i=o[1],a=o[5],s=o[6],l=o[11],u=o[19],c=l(e,t);let d=i.get(t);if(!d||d.l.size)return d;let p=!1;for(const e of d.t)if(null==(r=i.get(e))?void 0:r.d.has(t)){p=!0;break}if(p)return d;d.u&&a.add(d.u),d=void 0,i.delete(t);for(const r of c.d.keys()){const n=u(e,r);null==n||n.t.delete(t)}null==(n=s.u)||n.call(s,t)},JE=(e,t,r)=>{const n=oR(e),o=n[11],i=n[27],a=o(e,t),s="v"in a,l=a.v;if(TE(r))for(const n of a.d.keys())OE(t,r,o(e,n));a.v=r,delete a.e,s&&Object.is(l,a.v)||(++a.n,TE(l)&&i(e,l))},ZE=(e,t)=>DE((0,oR(e)[14])(e,t)),QE=(e,t,...r)=>{const n=oR(e),o=n[3],i=n[12],a=n[13],s=n[16],l=o.size;try{return s(e,t,...r)}finally{o.size!==l&&(a(e),i(e))}},eR=(e,t,r)=>{const n=oR(e),o=n[12],i=n[18],a=n[19],s=i(e,t).l;return s.add(r),o(e),()=>{s.delete(r),a(e,t),o(e)}},tR=(e,t,r)=>{const n=oR(e)[25];let o=n.get(t);if(!o){o=new Set,n.set(t,o);const e=()=>n.delete(t);t.then(e,e)}o.add(r)},rR=(e,t)=>{const r=oR(e)[25].get(t);null==r||r.forEach(e=>e())},nR=new WeakMap,oR=e=>{const t=nR.get(e);if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&!t)throw new Error("Store must be created by buildStore to read its building blocks");return t};function iR(e){const t=oR(e),r=t[24];return r?r(t):t}let aR,sR=0;function lR(e,t){const r="atom"+ ++sR,n={toString(){return"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&this.debugLabel?r+":"+this.debugLabel:r}};return"function"==typeof e?n.read=e:(n.init=e,n.read=uR,n.write=cR),t&&(n.write=t),n}function uR(e){return e(this)}function cR(e,t,r){return t(this,"function"==typeof r?r(e(this)):r)}function dR(){return function(...e){const t={get:e=>(0,oR(t)[21])(t,e),set:(e,...r)=>(0,oR(t)[22])(t,e,...r),sub:(e,r)=>(0,oR(t)[23])(t,e,r)},r=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},jE,_E,zE,FE,$E,HE,BE,VE,UE,GE,YE,KE,XE,JE,ZE,QE,eR,void 0,new WeakMap,tR,rR,[0]].map((t,r)=>e[r]||t);return nR.set(t,Object.freeze(r)),t}()}const pR=I(void 0);function fR(e){return L(pR)||(aR||(aR=dR(),"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=aR),globalThis.__JOTAI_DEFAULT_STORE__!==aR&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),aR)}function hR({children:e,store:t}){const r=P(null);return t?w(pR.Provider,{value:t},e):(null===r.current&&(r.current=dR()),w(pR.Provider,{value:r.current},e))}const mR=e=>"function"==typeof(null==e?void 0:e.then),gR=e=>{e.status||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}))},bR=S.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(gR(e),e)}),vR=new WeakMap,yR=(e,t,r)=>{const n=iR(e)[26];let o=vR.get(t);return o||(o=new Promise((i,a)=>{let s=t;const l=e=>t=>{s===e&&i(t)},u=e=>t=>{s===e&&a(t)},c=()=>{try{const t=r();mR(t)?(vR.set(t,o),s=t,t.then(l(t),u(t)),n(e,t,c)):i(t)}catch(e){a(e)}};t.then(l(t),u(t)),n(e,t,c)}),vR.set(t,o)),o};function xR(e,t){const{delay:r,unstable_promiseStatus:n=!S.use}={},o=fR(),[[i,a,s],l]=k(t=>{const r=o.get(e);return Object.is(t[0],r)&&t[1]===o&&t[2]===e?t:[r,o,e]},void 0,()=>[o.get(e),o,e]);let u=i;if(a===o&&s===e||(l(),u=o.get(e)),D(()=>{const t=o.sub(e,()=>{if(n)try{const t=o.get(e);mR(t)&&gR(yR(o,t,()=>o.get(e)))}catch(e){}if("number"==typeof r)return console.warn("[DEPRECATED] delay option is deprecated and will be removed in v3.\n\nMigration guide:\n\nCreate a custom hook like the following.\n\nfunction useAtomValueWithDelay<Value>(\n atom: Atom<Value>,\n options: { delay: number },\n): Value {\n const { delay } = options\n const store = useStore(options)\n const [value, setValue] = useState(() => store.get(atom))\n useEffect(() => {\n const unsub = store.sub(atom, () => {\n setTimeout(() => setValue(store.get(atom)), delay)\n })\n return unsub\n }, [store, atom, delay])\n return value\n}\n"),void setTimeout(l,r);l()});return l(),t},[o,e,r,n]),T(u),mR(u)){const t=yR(o,u,()=>o.get(e));return n&&gR(t),bR(t)}return u}function SR(e,t){const r=fR();return O((...t)=>{if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&!("write"in e))throw new Error("not writable atom");return r.set(e,...t)},[r,e])}function wR(e,t){return[xR(e),SR(e)]}const CR=lR(void 0),ER=lR({viewState:void 0,isDownloadedAsPDForImage:!1,waitForPromise:()=>{},notifyIsDoneRendering:()=>Promise.resolve()}),RR=lR({}),AR=lR({}),MR=lR(e=>{const t=e(AR);return e=>t.flags.isEnabled(e)}),PR=lR(!1),IR=lR({qHyperCube:{qDimensionInfo:[],qSize:{qcx:0,qcy:0}}}),kR=lR(e=>e(IR).qHyperCube.qSize.qcy),DR=lR(e=>!!e(IR).snapshotData),TR=lR(e=>e(IR).qHyperCube.qDimensionInfo.length),OR=lR(e=>e(IR).qStateName),LR=lR(e=>e(IR).snapshotData),qR=lR(e=>!1!==e(IR).usePagination),NR=lR(e=>!1!==e(IR).accessibleHeader),jR=lR(),_R=lR(!1),zR=lR(e=>e(jR),(e,t,r)=>{t(jR,r),t(_R,r.isModal())}),FR=lR(),$R=lR(e=>{const t=e(FR),r=e(DR);return{...t,select:!!t?.active&&!!t.select&&!r,active:!!t?.active&&!r,scroll:!!t?.active}},(e,t,r)=>{t(FR,r)}),HR=lR(e=>!!e($R).active),BR=lR(e=>!!e($R).passive),WR=lR(e=>!!e($R).select),VR=lR(e=>!!e($R).scroll),UR=lR(e=>{const t=e(HR),r=e(_R);return t&&!r}),GR=(e,t)=>!(!e.snapshotData&&!t?.visibleHeight),YR=lR(),KR=lR(e=>e(YR)?.direction),XR=lR(e=>e(YR)?.footerContainer),JR=lR(e=>e(YR)?.viewState),ZR=lR(e=>e(YR)?.freeResize),QR=lR(e=>{const t=e(IR),r=e(JR),n=e(qR);return void 0!==r?.usePagination?r.usePagination:n||GR(t,r)}),eA=lR({active:!1,enabled:!1,blur:()=>{},focus:()=>{},focusSelection:()=>{}}),tA=lR(e=>e(eA),(e,t,r)=>{e(QR)&&t(eA,r)}),rA=lR(),nA=lR(e=>{const t=e(rA);if(t&&"getEffectiveProperties"in t)return t}),oA={width:0,height:0,top:0,left:0},iA=lR(oA),aA=lR(oA),sA=lR(e=>e(iA),(e,t,r)=>{const n=e(IR),o=e(ZR),i=e(iA),a=n.snapshotData?.content&&!o;(i.width!==r.width||i.height!==r.height||i.top!==r.top||i.left!==r.left||a)&&(t(aA,r),t(iA,a?{...r,...n.snapshotData?.content?.size}:r))}),lA=lR({}),uA=new WeakMap,cA=lR(e=>{const t=e(lA),r=uA.get(t);if(r)return r;const n=iE(t);return uA.set(t,n),n}),dA=lR({getColorPickerColor:()=>{},name:()=>{},getStyle:()=>{},background:{isDark:!1}}),pA=lR({get:e=>e,add:()=>{},language:()=>"en"});var fA={exports:{}};self,fA.exports=(()=>{var e={909:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}},8:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>De});var e=n(229),t=n.n(e);const r=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var s=a[i];return a[i]=r,{updated:r,previous:s}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function u(e){return s+e+l}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function h(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=v(c(n[0],o),h(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=h(0),m=h(1),g=v(d,f),b=v(p,m);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const w={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var s=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var c=h(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var d=h(0),p=h(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return m(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=h(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(s);if(-1!==r){var n=t.indexOf(l);if(-1!==n)return t.substring(r+s.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach(function(r){void 0===e[r]&&(e[r]=t[r])})},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var s=S({properties:t,layout:r});return s>=o&&s<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(s),r=e.indexOf(l);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:h,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find(function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null});o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find(function(t){return t.value===e.decomposition});return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find(function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r}),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}var R=t().bind(null,!0),A={},M=Array.isArray;function P(e){return null!=e&&!Array.isArray(e)&&"object"===E(e)}function I(e){return void 0===e}function k(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function D(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach(function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=I(e[r||t])?i:e[t],e=e[r||t]}}),e}function T(e,t){var r=!0;if(P(e)&&P(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(function(n){T(e[n],t[n])||(r=!1)}),r);if(M(e)&&M(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!T(e[n],t[n]))return!1;return!0}return e===t}A.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach(function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);T(i,a)||k(t,o)||(I(a)?n.push({op:"add",path:s,value:i}):P(i)&&P(a)?n=n.concat(A.generate(a,i,s)):M(i)&&M(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&I(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(T(t,o))return n;if(!I(t[0])&&I(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(n.push({op:"remove",path:"".concat(r,"/").concat(s)}),o.splice(s,1)):n=n.concat(A.generate(o[s],t[i],"".concat(r,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return n}(a,i,s)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))}),Object.keys(e).forEach(function(o){I(t[o])&&!k(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})}),n},A.apply=function(e,t){t.forEach(function(t){var r,n,o=D(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(M(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(M(a)&&M(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return C(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(P(a)&&P(t.value))r=a,Object.keys(r).forEach(function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!k(r,e)&&delete r[e]}),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=D(e,t.from);M(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(M(o)?o.splice(+i,1):delete o[i])})},A.clone=function(e){return R({},e)},A.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},A.updateObject=function(e,t){Object.keys(e).length?A.apply(e,A.generate(e,t)):R(e,t)};const O=A,L=function(e,r,n){if(!e)return Promise.resolve();var o=O.generate(r,n);return t()(!0,r,n),o&&o.length?(o=o.map(function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}}),e.applyPatches(o,!0)):Promise.resolve()};var q="accumulation";function N(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===q)return r[n]}function j(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===q)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var _={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=w.getNumStepComp(r,l),p=w.getAboveComp(r,l,c,d),f=w.getRangeComp("RangeSum",p);if(w.needDimension({modifier:r,properties:n,layout:o})){var h=w.getDimComp(u,1),m=w.getDimComp(u,0),g=w.getAggrComp(f,h,m);f=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,valueComp:g}):g}return f},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,_)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(j(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(j(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(j(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(j(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=N(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=N(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(j(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(q))return!1;var i=N(t,e);return i&&!i.disabled}};return r}};var F="movingAverage";function $(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===F)return r[n]}function H(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===F)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var u=s;void 0===u&&(u=w.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=w.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=w.getNumStepComp(n,u),h=w.getAboveComp(n,u,p,f);if(n.nullSuppression)t=w.getRangeComp("RangeAvg",h);else{var m=w.getRangeComp("RangeSum",h),g=function(e,t){var r=w.getRowNoComp(e,t);if(!w.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(m," / ").concat(g)}var b=t;if(w.needDimension({modifier:n,properties:o,layout:a})){var v=w.getDimComp(c,1),y=w.getDimComp(c,0),x=w.getAggrComp(b,v,y);b=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,B)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(H(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(H(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(H(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(H(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=$(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=$(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(H(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(H(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(F))return!1;var i=$(t,e);return i&&!i.disabled}};return r}};var V="timeSeriesDecomposition";function U(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===V)return r[n]}function G(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===V)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?w.generateTSDExpression(r,t,n):t},extractInputExpression:w.extractInputExpression,initModifier:function(e,t){w.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=w.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(G(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(G(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=U(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map(function(e){return e.qDef.modifiers.map(function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e}),e})}},show:function(t){var r=U(t,e);return r&&!r.fullRange}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(V))return!1;var i=U(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=w.getAboveComp(r,l,c),p="".concat(c," - ").concat(d);if(w.needDimension({modifier:r,properties:n,layout:o})){var f=w.getDimComp(u,1),h=w.getDimComp(u,0),m=w.getAggrComp(p,f,h);p=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,funcComp:"Only",valueComp:m}):m}return p},initModifier:function(e){Object.keys(Q).forEach(function(t){void 0===e[t]&&(e[t]=Q[t])})},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,r){return 1===e?"{$<".concat(w.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(w.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var s=ae(t),l=se(t,r,n),u=""===s&&""===l?"":s||l,c=le(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=w.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,l,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach(function(t){void 0===e[t]&&(e[t]=ie[t])})},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then(function(e){return e.map(function(e){return{label:e.qName,value:e.qName}})})},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",he="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,me)?me:he},getLibraryId:function(e){return i(e,me)||i(e,he)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",we="qDef.qLabelExpression",Ce="qDef.base.qLabel",Ee="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",Me={initBase:function(e,t){(t||Me.isValid(e))&&(r(e,ve,i(e,be)),r(e,xe,i(e,ye)),r(e,Ce,i(e,Se)),r(e,Ee,i(e,we)))},restoreBase:function(e){Me.isValid(e)&&(r(e,be,i(e,ve)),r(e,ye,i(e,xe)),r(e,Se,i(e,Ce)),r(e,we,i(e,Ee)),i(e,Re)&&i(e,Ae)&&r(e,Re,i(e,Ae)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),r=i(e,xe);return void 0!==t||void 0!==r}};const Pe=Me;function Ie(e){return Ie="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},Ie(e)}var ke={accumulation:z,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const De={modifiers:ke,apply:Oe,applyModifiers:Le,cleanUpMeasure:qe,destroy:function(e){e&&Te[e.id]&&Te[e.id].masterItemSubscriber&&(Te[e.id].masterItemSubscriber&&Te[e.id].masterItemSubscriber.unsubscribe(),delete Te[e.id])},hasActiveModifiers:Ne,getActiveModifier:je,initBase:Pe.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some(function(e){return ke[e]})},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some(function(e){return ke[e]&&ke[e].isApplicable({properties:r,layout:n})})},measureBase:ge,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach(function(e){var t=Fe(e);Ge({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))}),o&&!i},ifEnableTotalsFunction:_e};var Te={};function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,s=e.masterItem,l=!1;Te[r.id]=Te[r.id]||{isFirstTime:!0};var u=Te[r.id].isFirstTime;if(Te[r.id].isFirstTime=!1,n&&"object"===Ie(n))return Le({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var p=i(c,"qHyperCube.qMeasureInfo"),f=Te[r.id].lastReloadTime;if(Te[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),Ne({measures:p,layout:c})){var h=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Ue({measure:e,properties:r,layout:n})})}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return h||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some(function(e){return function(e){var t=e.measure,r=e.layout;return Ge({modifiers:Fe(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})}))}({measures:p,layout:c,masterItem:s,isFirstTime:u})?r.getEffectiveProperties().then(function(e){var n=t()(!0,{},e);He(n);var o=Qe(n);return Ye({model:r}).then(function(t){return Ke({libraryIds:o,model:r}).then(function(o){return h&&function(e){var t=e.properties;ze(t).forEach(function(e){return function(e){var t=e.measure;if(Ue({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach(function(e){if("object"===Ie(e)&&!e.disabled){if(r++,"object"!==Ie(ke[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=ke[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&We(t)&&w.simplifyExpression(t.qDef.base.qDef)!==w.simplifyExpression(n)&&(t.qDef.base.qDef=n)}})}}({measure:e,properties:t})})}({properties:n}),Le({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:o,dimensionAndFieldList:t})})})}):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some(function(e){return"object"===Ie(e.base)})}(p)?r.getEffectiveProperties().then(function(e){return function(e){var r=e.model,n=e.properties,o=Qe(n);return et({model:r,libraryIds:o}).then(function(){var e=t()(!0,{},n);return ze(n).forEach(function(e){return qe(e)}),Je({oldProperties:e,newProperties:n,model:r})})}({model:r,properties:e})}):Promise.resolve(l)}function Le(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=l?t()(!0,{},o):o),He(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then(function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(r||(r=ze(n)),!r.length)return Promise.resolve();if(!Ne({measures:r,properties:n}))return r.forEach(function(e){return qe(e)}),Promise.resolve();var l=a?void 0:Qe(n);return Ye({model:o,dimensionAndFieldList:s}).then(function(e){return Ke({libraryIds:l,model:o,libraryItemsProps:a}).then(function(o){r.forEach(function(r){Ge({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;Pe.isValid(r)||Pe.initBase(r,!0);var l=r.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach(function(e){if("object"===Ie(e)&&!e.disabled){if(s++,"object"!==Ie(ke[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");ke[e.type].initModifier(e,r);var l=r.qLibraryId||c&&c.qLibraryId;l?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:ke[n.type].generateExpression({expression:s,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,(r.qDef.qLabel||a.qMeasure.qLabel)&&(r.qDef.qLabel=a.qMeasure.qLabel),(r.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(r.qDef.qLabelExpression=a.qMeasure.qLabelExpression),r.qDef.quarantine&&r.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(r.qDef.qNumFormat=a.qMeasure.qNumFormat,r.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete r.qLibraryId,r.qDef.coloring=a.qMeasure.coloring,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,libraryId:l,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof ke[n.type].updateModifier&&ke[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),s=""===a?a:ke[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||_e(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&_e(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}})}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),Be(r)):qe(r)})})})}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then(function(){return l?Je({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)})})}function qe(e){!function(e){var t=Fe(e);return Array.isArray(t)&&t.some(function(e){return"object"===Ie(e)&&!e.disabled&&!ke[e.type]})}(e)?Pe.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Be(e)}function Ne(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Ge({modifiers:Fe(e),properties:r,layout:n})})}function je(e){var t=Fe(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(ke[n.type]&&!n.disabled)return n}}function _e(e){var t=je(e);return!t||ke[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function Fe(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function He(e){ze(e).forEach(function(e){return function(e){var r=je(e);r&&(void 0!==r.outputExpression&&$e(r)!==e.qDef.qDef?delete e.qDef.base:!Pe.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)})}function Be(e){var t=Fe(e);Array.isArray(t)&&t.forEach(function(t){"object"===Ie(t)&&(t.disabled||!ke[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)})}function We(e){return e.base||e.qDef&&e.qDef.base}function Ve(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ue(e){var t=e.measure,r=e.properties,n=e.layout;return!Ve(t)&&Ge({modifiers:Fe(t),properties:r,layout:n})}function Ge(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some(function(e){return!("object"!==Ie(e)||e.disabled||!ke[e.type])&&(void 0===o[e.type]&&(o[e.type]=ke[e.type].isApplicable({properties:r,layout:n})),o[e.type])})}function Ye(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then(function(e){o.dimensionList=e});n.push(i);var a=t.app.getFieldList().then(function(e){o.fieldList=e});return n.push(a),Promise.all(n).then(function(){return o})}function Ke(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach(function(e){var t=r.app.getMeasure(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),i.forEach(function(e){var t=r.app.getDimension(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),Promise.all(s).then(function(){return a})}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):L(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then(function(){return o}):Promise.resolve(o)}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some(function(e){return"object"===Ie(e)&&!e.disabled&&ke[e.type]&&ke[e.type].needDimension({modifier:e,properties:r,layout:n})})}function Qe(e){var t=ze(e),r=[],n=[],o=!1;return t.forEach(function(t){var n=Fe(t);if(Ge({modifiers:n,properties:e})){var i=Ve(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}}),i(e,"qHyperCubeDef.qDimensions",[]).forEach(function(e){var t=e.qLibraryId;t&&n.push(t)}),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(Te[t.id].masterItemSubscriber=Te[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},r=i(e,"qInfo.qType");return r&&s[r]&&s[r].forEach(function(r){t[r]=i(e,r)}),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=l(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(e,r){return t.app[r](e).then(function(t){n[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:l(t.layout)}})}return{subscribe:function(e){var r=e.measureLibraryIds,i=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach(function(e){o[e]=!0}),a={},t.forEach(function(e){a[e]=!0})}({measureLibraryIds:r,dimensionLibraryIds:i}),Object.keys(n).forEach(function(e){o[e]||a[e]||(n[e].listener.dispose(),delete n[e])}),t.app&&(Object.keys(o).forEach(function(e){o[e]&&!n[e]&&s.push(c(e,"getMeasure"))}),Object.keys(a).forEach(function(e){a[e]&&!n[e]&&s.push(c(e,"getDimension"))})),Promise.all(s)},unsubscribe:function(){Object.keys(n).forEach(function(e){n[e].listener.dispose()}),n={}}}}({model:t,callback:function(e){return Oe({model:t,masterItem:e}).then(function(){return t.app.clearUndoBuffer()})}}),Te[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{function e(t){var r,n=t;return n>9?(r=65+n-10)>90&&(r+=6):n="".concat(n).charCodeAt(0),[48,111,79,105,73,108].indexOf(r)>-1?e(n+1):String.fromCharCode(r)}function t(r){var n=e(r%62),o=Math.floor(r/62);return o>0?t(o)+n:n}function o(e){return o="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},o(e)}r.d(n,{default:()=>He});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var s=n[a];void 0!==i[s]&&null!==i[s]||(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c};var p=r(8),f=r.n(p);const h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var s,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=o.excludedDimensions).push.apply(s,a(l))},m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,l(n.qMeasures));var a,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=o.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach(function(e){t.properties[e]=r[e]})},v=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach(function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])}),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach(function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)})}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},y=function(e){e.forEach(function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)})};function x(e,t,r){var n,o,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=i.getValue(e,t);if(!i.isAtomicValue(s))try{if((o=(o=(n=JSON.stringify(s)).match(/:\{/g))?o.length:0)>2&&!a)return;s=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[r]||(l[r]={}),l[r][t]=s}var S=r(909),w=r.n(S);function C(e,t){var r=w()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function E(e,t){return w()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var A=Math.pow(2,53)-1;function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const I=function(e,t,r){var n="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(r,"qInfo.qType");i.setValue(e,"qInfo.qType",n),e.visualization=r.visualization},k=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},D=function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},T=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},O=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},L=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,s=r.data[0];for(t=0;t<s.dimensions.length;++t){var l=C(s.dimensions[t],a);i.qDimensions.length<n?i.qDimensions.push(l):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var u=C(s.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},q=function(e){var t,r=e.exportFormat,n=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,s=r.data[0];for(t=0;t<s.measures.length;++t){var l=E(s.measures[t],a);i.qMeasures.length<n?i.qMeasures.push(l):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var u=E(s.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},N=function(e){var t=e.exportFormat,r=e.dataDefinition,n=void 0===r?{}:r,o=t.data[0],i=n.dimensions||{max:0},a=n.measures||{max:0},s=R(a.max,o.dimensions.length,A),l=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,s,A),minDimensions:R(i.min,l,0),maxMeasures:s,minMeasures:l}},j=function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var i=r.qInterColumnSortOrder.length;if(i!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(r.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(r.qInterColumnSortOrder,i))},_=function(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach(function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=w()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?i.setValue(o,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some(function(e){return"general"===e.key})}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]}),null===(o=w()(!0,{},r,o)).components&&(o.components=[]),o},z=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>r&&r>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>n||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!r&&a.dimensions.length>0},F=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>r&&r>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>n)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>o&&o>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return M(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return M(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?M(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],s.forEach(function(e){a.qDimensions.push(e),n.dimensions.added(e,r)})}},H=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return P(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return P(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?P(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],s.forEach(function(e){a.qMeasures.push(e),n.measures.added(e,r)})}},B=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach(function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store})};function W(e,t){var r=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!r&&(Object.keys(r).forEach(function(t){i.setValue(e,t,r[t])}),delete e.qLayoutExclude.quarantine[t],!0)}const V={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=i.getValue(a,r||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),h({exportFormat:o,qHyperCubeDef:l}),m({exportFormat:o,qHyperCubeDef:l}),g({exportFormat:o,qHyperCubeDef:l}),delete l.qLayoutExclude,b({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),v({exportFormat:o,properties:a}),n||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters",!0),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,s=e.defaultPropertyValues,l=void 0===s?{}:s,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,h=void 0===f||f,m={qChildren:[]},g=_({exportFormat:t,initialProperties:n,hypercubePath:u}),b=i.getValue(n,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=N({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,w=y.maxMeasures,C=y.minMeasures,E=l.defaultDimension,R=void 0===E?T():E,A=l.defaultMeasure,M=void 0===A?O():A;v.qDimensions.length=0,v.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C})&&F({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C,newHyperCubeDef:v}),L({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),q({exportFormat:t,maxMeasures:w,minMeasures:C,newHyperCubeDef:v,defaultMeasure:M}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),H({newProperties:g,dataDefinition:a,hypercubePath:u}),j({exportFormat:t,newHyperCubeDef:v}),k("qMaxStackedCells",b,v),k("qNoOfLeftDims",b,v),D("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),D("qMode",b,v,"S"),D("qReductionMode",b,v,"N"),D("qSortbyYValue",b,v),D("qIndentMode",b,v),D("qShowTotalsAbove",b,v),I(g,t,n),m.qProperty=g;var P=i.getValue(c||{},"support.modifiers");return B({measures:v.qMeasures,modifierTypes:P}),p&&W(m.qProperty,"storedFilters"),"S"===v.qMode&&h&&W(m.qProperty,"dynamicScript"),m}};var U={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function G(e,t,r,n){t=t||[];var o=c(e,n,r),i=c(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!U[e])throw new Error("Attribute Expressions Util: ID required");var r={};return t&&Object.keys(t).forEach(function(e){r[e]=t[e]}),r.id=e,r.qAttribute=!0,r},moveByIdFromGroup:function(e,t,r,n,o){r=r||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][r],s=t.length;if(G(a,t,n,o),Y(t,s))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,r){if(Array.isArray(e[t])){var n=d.findIndexByPropertyValue(e[t],"id",r);n>=0&&e[t].splice(n,1)}else e[t]=[]}function te(e,t){var r=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach(function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)}),t.forEach(function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)})}function re(e,t){if(t){var r="="===t.charAt(0);e.color.altLabel=r?{qStringExpression:{qExpr:t.substr(1)}}:t}}function ne(e){var t=e.properties,r=e.isDimension,n=e.dimensions,o=e.excludedDimensions,a=e.measures,s=e.label;te(n,o);var l=n[n.length-1];if(l){var u=r?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,r=e.label,n=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=r||n.label,o?t.qDef=n.key:(t.qExpression=n.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=n.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:s,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,r=e.measures,n=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(r,"qLibraryId",n.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==n.expression?t.qExpression=n.expression:t.qLibraryId=n.key,t.colorMapRef=n.key}({attributeExpression:f,measures:a,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p})}r?(f.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(f)):l.qAttributeExpressions.push(f)}}}function oe(e,t,r,n){var o,i,a,s={};switch(e){case"dimension":r.qLibraryId?(s.type="dimension",s.name=r.qLibraryId,s.id=r.qLibraryId):(s.type="field",t?(s.name=r.label||r.qDef,s.id=r.qDef):(s.name=r.qDef.qFieldDefs[0],s.label=(a=r.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(r,t),o?(s.type="measure",s.name=o,s.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(r,n),i&&(s.expression=i)):(s.type="expression",t?(s.name=r.label||r.qExpression,s.id=r.qExpression):(s.name=r.qDef.qDef,s.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(r)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return s}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,r,n){var o=t.type,i=e.color,a=i.mode,s=X.getItemLabel(t);switch(re(e,s||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:s,key:t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}i.auto=!1,i.mode=a}function se(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"color.byDimDef");n.activeDimensionIndex=Math.min(n.activeDimensionIndex,r.length-1);var o=oe("dimension",!1,r[n.activeDimensionIndex]);o.activeDimensionIndex=n.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=r[function(e,t,r){var n=i.getValue(t,"visualization"),o=r.split("."),a=Number(o[1]),s=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===s}(r,e,t)?0:r.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(n.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||n)),!!a}(e,t))return;ne({properties:e,isDimension:!0,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byDimDef.label")})}const le=function(e,t,r){i.setValue(e,t,r),i.isAtomicValue(r)&&function(e,t,r){var n=e.qLayoutExclude;n&&(n.changed||(n.changed={}),n.changed[t]={from:i.getValue(e,t),to:r})}(e,t,r)},ue=function(e,t){var r={primary:!0};if(e){var n=(Q[t]||J).colorModeOptions||J.colorModeOptions;r.byDimension=n.dimension(e),r.byMeasure=n.measure(e),r.byMultiple=n.multiColor(e),r.byExpression=n.expression(e)}return r},ce=function(e){var t=e.canColorBy,r=e.autoColor,n=e.colorMode,o=e.dimensions;return!(t[n]&&!r&&("byDimension"!==n&&"byMeasure"!==n||!o.length))},de=function(e,t){var r,n=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),s=i.getValue(e,"".concat(t,"qMeasures"),[]),l=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,l):!(r={auto:o,colorMode:n,dimensions:a}).auto&&"byDimension"===r.colorMode&&r.dimensions.length>0?se(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,o=e.measures,a=e.properties,s=i.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==s&&!o.length)}({auto:o,colorMode:n,dimensions:a,measures:s,properties:e})?function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qMeasures"),[]),n=i.getValue(e,"color.byMeasureDef");if(n.activeMeasureIndex=Math.min(n.activeMeasureIndex,r.length-1),n.activeMeasureIndex>-1){var o=oe("measure",!1,r[n.activeMeasureIndex],!0);o.activeMeasureIndex=n.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,n)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=r[r.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!s,s||n[0])),!!s}(e,t))return;ne({properties:e,isDimension:!1,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&o.length<2&&i.setValue(e,"color.mode","primary"),te(n,a)}(e,t)},pe=function(e){e.forEach(function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode})},fe=function(e){var t=e.shouldUpdateColorBy,r=e.properties,n=i.getValue(r,"qHyperCubeDef.qMeasures",[]),o=i.getValue(r,"color.mode","");return!t&&"byExpression"===o&&n.length>0},he=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},be={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=V.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),s=i.measures.concat(i.excludedMeasures),l=K.IDMAP,u=l.COLOR_BY_ALTERNATIVE,c=l.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(s,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=V.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),h=i.getValue(d,"color.mode",""),m=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:m,colorMode:h,dimensions:f});return g[h]?fe({shouldUpdateColorBy:b,properties:d})&&he(d):me(d),b&&de(d,"qHyperCubeDef."),ge(d)&&le(d,"color.persistent",!0),pe(f),c}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?W(r,"unsupportedAutoMinMax")||w()(r.measureAxis,t.measureAxis):W(r,"supportedAutoMinMax")||w()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,s=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach(function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(n)&&t[o].type[n]++,t[o].type.total++}}),t}(a);l.length?(i&&(t=l.filter(function(e){return e.type[i]>0}).sort(function(e,t){return t.type[i]-e.type[i]})),t&&t.length||(t=l.sort(function(e,t){return t.type.total-e.type.total})),t&&t[0]&&w()(s,r.properties.measureAxes[t[0].axis])):w()(s,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},we={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),s=a.properties;return i?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function Ee(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach(function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,a);if(void 0!==s){var l=i.getValue(o,"qDef.cId");l||(l=i.generateId(),i.setValue(o,"qDef.cId",l));var u=Ce(r,n,l);i.setValue(t,u,s),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})})}function Re(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach(function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,"qDef.cId");if(s){var l=Ce(r,n,s),u=i.getValue(t,l);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,l,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})})}var Ae="qHyperCubeDef.qMeasures",Me="conditionalColoring",Pe="measures",Ie="qDef.conditionalColoring";const ke={quarantine:function(e){Ee({properties:e,arrayPath:Ae,quarantineName:Me,arrayName:Pe,itemPath:Ie})},unquarantine:function(e){Re({properties:e,arrayPath:Ae,itemPath:Ie,arrayName:Pe,quarantineName:Me})}};var De="qHyperCubeDef.qMeasures",Te="measures",Oe="qHyperCubeDef.qDimensions",Le="dimensions",qe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ne="alternativeMeasures",je="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",_e="alternativeDimensions",ze="qCalcCondition",Fe="conditionalShowHide";const $e={quarantine:function(e){Ee({properties:e,arrayPath:De,quarantineName:Fe,arrayName:Te,itemPath:ze}),Ee({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:Le,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:De,quarantineName:Fe,arrayName:Te,itemPath:ze}),Re({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:Le,itemPath:ze})},quarantineAlternative:function(e){Ee({properties:e,arrayPath:qe,quarantineName:Fe,arrayName:Ne,itemPath:ze}),Ee({properties:e,arrayPath:je,quarantineName:Fe,arrayName:_e,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:qe,quarantineName:Fe,arrayName:Ne,itemPath:ze}),Re({properties:e,arrayPath:je,quarantineName:Fe,arrayName:_e,itemPath:ze})}},He={hypercube:V,colorChart:be,axisChart:we,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:Ee,unquarantineArrayProp:Re,conditionalColoring:ke,conditionalShow:$e}})(),n.default})();var hA=Zt(fA.exports);const mA="qHyperCubeDef.qMeasures",gA="measures",bA="qHyperCubeDef.qDimensions",vA="dimensions",yA="qDef.representation",xA="tableRepresentation",SA="qDef.conditionalColoring",wA="conditionalColoring",CA="qMiniChartDef",EA="miniChartDef",RA=({propertyTree:e,hyperCubePath:t})=>{const r=hA.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),{qHyperCubeDef:{qColumnOrder:n,qDimensions:o,qMeasures:i}}=r.properties,a=((e,t,r)=>{const n=e.length+t.length,o=(r?.length===n?r:Array.from(Array(n).keys())).map(r=>((e,t,r)=>{const n=t.length,o=e<n?t[e]:r[e-n],{columnWidth:i}=o.qDef;return i||-1})(r,e,t));return o})(o,i,n);return Mt(r,"properties.qHyperCubeDef",{...r.properties.qHyperCubeDef,columnWidths:a}),hA.quarantineProperty(r.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),hA.quarantineProperty(r.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),hA.quarantineProperty(r.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{hA.quarantineArrayProp({properties:e,arrayPath:bA,itemPath:yA,arrayName:vA,quarantineName:xA}),hA.quarantineArrayProp({properties:e,arrayPath:mA,itemPath:yA,arrayName:gA,quarantineName:xA}),hA.quarantineArrayProp({properties:e,arrayPath:mA,itemPath:SA,arrayName:gA,quarantineName:wA}),hA.quarantineArrayProp({properties:e,arrayPath:mA,itemPath:CA,arrayName:gA,quarantineName:EA})})(r.properties),r};const AA=/^q[A-Z]/,MA=[/\bqnDec\b/,/\bqv\b/,/\bcId\b/,/^title$/,/^subtitle$/,/^footnote$/,/^qLayoutExclude\b.+/],PA=e=>"object"==typeof e&&null!==e,IA=(e,t)=>(Object.entries(e).forEach(([r,n])=>{const o=void 0===t?r:`${t}.${r}`;((e,t)=>!AA.test(e)&&!MA.some(e=>e.test(t)))(r,o)?delete e[r]:Array.isArray(n)?e[r]=n.map((e,t)=>PA(e)?IA(e,`${o}.${t}`):e):PA(n)&&(e[r]=IA(n,o))}),e),kA=(e,t,r,n)=>{let o=t;n&&(o=t-n);const i=JSON.parse(JSON.stringify(e[o]));if(Array.isArray(r)&&r.length>0){const e=r[t];null===e||Array.isArray(e)||"object"!=typeof e?i.qDef.columnWidth="number"==typeof e&&e>0?{type:SE.Pixels,pixels:e}:{type:SE.FitToContent}:i.qDef.columnWidth=e}return i},DA=({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:o,viewDataMode:i})=>{if(i){try{e=structuredClone(e)}catch(e){console.error("Failed to copy source properties",e)}IA(e.properties)}const a=hA.hypercube.importProperties({exportFormat:e,initialProperties:t,dataDefinition:{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}},defaultPropertyValues:o,hypercubePath:n,extension:r});if(hA.conditionalShow.unquarantine(a.qProperty),i)Mt(a,"qProperty.totals.show",!1),Mt(a,"qProperty.usePagination",!0),Mt(a,"qProperty.accessibleHeader",!0);else{hA.unquarantineProperty(a.qProperty,"straightTableColumnOrder"),(e=>{hA.unquarantineArrayProp({properties:e,arrayPath:bA,itemPath:yA,arrayName:vA,quarantineName:xA}),hA.unquarantineArrayProp({properties:e,arrayPath:mA,itemPath:yA,arrayName:gA,quarantineName:xA}),hA.unquarantineArrayProp({properties:e,arrayPath:mA,itemPath:SA,arrayName:gA,quarantineName:wA}),hA.unquarantineArrayProp({properties:e,arrayPath:mA,itemPath:CA,arrayName:gA,quarantineName:EA})})(a.qProperty);const{qHyperCubeDef:{qDimensions:e,qMeasures:t,qColumnOrder:r,columnWidths:n}}=a.qProperty,{dimensions:o,measures:i}=((e,t,r,n)=>{const o=e.length,i=o+t.length,a=r?.length===i?r:Array.from(Array(i).keys());return{dimensions:a.filter(e=>e<o).map(t=>kA(e,t,n)),measures:a.filter(e=>e>=o).map(e=>kA(t,e,n,o))}})(e,t,r,n);Array.isArray(n)&&n.length>0&&(Mt(a,"qProperty.qHyperCubeDef.qDimensions",o),Mt(a,"qProperty.qHyperCubeDef.qMeasures",i))}return a};var TA={component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}},OA=function(e){return e.CONTAINS="contains",e.MATCHES_EXACTLY="matches_exactly",e.STARTS_WITH="starts_with",e.ENDS_WITH="ends_with",e.BEGINNING_OF_WORD="beginning_of_word",e}(OA||{}),LA=function(e){return e.COMPARE="compare",e.GENERAL="general",e}(LA||{}),qA=function(e){return e.VALUES="values",e.CONDITION="condition",e.SEARCH="search",e.CLEAR_SELECTION="clear_selection",e.TOP_BOTTOM="top_bottom",e}(qA||{}),NA=function(e){return e.FIXED_VALUE="fixed_value",e.CALCULATED_VALUE="calculated_value",e}(NA||{});const jA=e=>e&&"]"!==e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)||(e=>{if(!e)return!1;if("["===e[0]&&"]"===e[e.length-1]){let t=e.substring(1,e.length-1);if(/^[A-Za-z][A-Za-z0-9_]*$/.test(t))return!0;if(t=t.replace(/\]\]/g,"]"),e===`[${t.replace(/\]/g,"]]")}]`)return!0}return!1})(e)?e:`[${e.replace(/\]/g,"]]")}]`:e,_A=e=>{if(!Array.isArray(e))return"";let t="{<";const r=[];if(e.forEach(e=>{let t=`[${e.field}]${e.exclude?"-":""}={`,n="}",o="";switch(e.type){case qA.SEARCH:o=(e=>{let t="",r="";const n=e.options?.mode;if(!n)return"";switch(n){case OA.BEGINNING_OF_WORD:t="*^",r="*";break;case OA.ENDS_WITH:t="*";break;case OA.STARTS_WITH:r="*";break;case OA.MATCHES_EXACTLY:break;case OA.CONTAINS:default:t="*",r="*"}const o=e.options.values?.[0]??"";return""!==o?`"${t}${o}${r}"`:""})(e);break;case qA.CONDITION:o=(e=>{const{options:t}=e,r=t?.mode===LA.GENERAL,n=t?.modifier?.type===NA.FIXED_VALUE,o=t?.modifier?.operator?t.modifier.operator.split(" "):[];if(0===o.length||!n&&(!t.firstValue?.aggregator||!t.firstValue?.field)||n&&!t.firstValue?.fixedValue||r&&(!t.conditionField?.aggregator||!t.conditionField?.field))return"";let i,a,s="=";r&&n?(i=`${t.conditionField?.aggregator}(${jA(t.conditionField?.field)})`,a=`${t.firstValue?.fixedValue}`):!r&&n?(i="",a=`${t.firstValue?.fixedValue}`,s=""):r||n?(i=`${t.conditionField?.aggregator}(${jA(t.conditionField?.field)})`,a=`${t.firstValue?.aggregator}(${jA(t.firstValue?.field)})`):(i=`${jA(e.field)}`,a=`${t.firstValue?.aggregator}(total ${jA(t.firstValue?.field)})`);const l=`${s}${i}${o[0]}${a}`;let u="";if(o.length>1){if(!n&&(!t.secondValue?.aggregator||!t.secondValue?.field)||n&&!t.secondValue?.fixedValue)return"";let e,a;r&&n?(e=`${t.secondValue?.fixedValue}`,a=` and ${i}`):!r&&n?(e=`${t.secondValue?.fixedValue}`,a=""):r||n?(e=`${t.secondValue?.aggregator}(${jA(t.secondValue?.field)})`,a=` and ${i}`):(e=`${t.secondValue?.aggregator}(total ${jA(t.secondValue?.field)})`,a=` and ${i}`),u=`${a}${o[1]}${e}`}return`"${l}${u}"`})(e);break;case qA.CLEAR_SELECTION:o=`[${e.field}]=`,t="",n="";break;case qA.VALUES:default:o=e.options?.values?e.options.values.map(e=>`'${e.replace(/'/g,"''")}'`).join(","):""}""!==o&&r.push(`${t}${o}${n}`)}),0===r.length)return;return t+=`${r.join(",")}>}`,t},zA=[];for(let e=0;e<256;++e)zA.push((e+256).toString(16).slice(1));let FA;const $A=new Uint8Array(16);var HA={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function BA(e,t,r){const n=(e=e||{}).random??e.rng?.()??function(){if(!FA){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");FA=crypto.getRandomValues.bind(crypto)}return FA($A)}();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=15&n[6]|64,n[8]=63&n[8]|128,function(e,t=0){return(zA[e[t+0]]+zA[e[t+1]]+zA[e[t+2]]+zA[e[t+3]]+"-"+zA[e[t+4]]+zA[e[t+5]]+"-"+zA[e[t+6]]+zA[e[t+7]]+"-"+zA[e[t+8]]+zA[e[t+9]]+"-"+zA[e[t+10]]+zA[e[t+11]]+zA[e[t+12]]+zA[e[t+13]]+zA[e[t+14]]+zA[e[t+15]]).toLowerCase()}(n)}const WA=()=>crypto?.randomUUID?.()??function(e){return HA.randomUUID&&!e?HA.randomUUID():BA(e)}();class VA extends s{#e;constructor(e,t){super(e),this.#e=t}#t(e){const t=this.hcProperties.qLayoutExclude.allColumnOrder??{},r=Object.keys(t).length;this.hcProperties.qLayoutExclude.allColumnOrder={...t,...Object.fromEntries(e.map((e,t)=>[e,r+t]))}}#r(e){const t=this.hcProperties.qLayoutExclude.allColumnOrder??{},r=Object.entries(t).filter(([t])=>!e.includes(t));this.hcProperties.qLayoutExclude.allColumnOrder=Object.fromEntries(r.map(([e],t)=>[e,t]))}#n(e,t){const r=this.hcProperties.qLayoutExclude.allColumnOrder??{},n={};for(const[o,i]of Object.entries(r))n[o===e?t:o]=i;this.hcProperties.qLayoutExclude.allColumnOrder=n}async addDimension(e,t=!1){const r=await this.addDimensions([e],t);return 0===r.length?void 0:r[0]}async addDimensions(e,t=!1){const r=await super.addDimensions(e,t);return this.#t(r.map(e=>e.qDef.cId)),r}async removeDimension(e,t=!1){const r=await this.removeDimensions([e],t);return 0===r.length?void 0:r[0]}async removeDimensions(e,t=!1){const r=await super.removeDimensions(e,t);return this.#r(r.map(e=>e.qDef.cId)),r}async replaceDimension(e,t){const r=this.getDimensions()[e].qDef.cId,n=await super.replaceDimension(e,t),o=n.qDef.cId;return this.#n(r,o),n}async addMeasure(e,t=!1){const r=await this.addMeasures([e],t);return 0===r.length?void 0:r[0]}async addMeasures(e,t=!1){const r=await super.addMeasures(e,t);return this.#t(r.map(e=>e.qDef.cId)),r}async removeMeasure(e,t=!1){const r=await this.removeMeasures([e],t);return 0===r.length?void 0:r[0]}async removeMeasures(e,t=!1){const r=await super.removeMeasures(e,t);return this.#r(r.map(e=>e.qDef.cId)),r}async replaceMeasure(e,t){const r=this.getMeasures()[e].qDef.cId,n=await super.replaceMeasure(e,t),o=n.qDef.cId;return this.#n(r,o),n}async#o(e){const t=this.getMeasure(e);if(t){const r=this.getAlternativeMeasures().findIndex(t=>t.qDef.cId===e);await super.removeMeasure(r,!0),await super.addMeasure(t,!1,this.getMeasures().length)}}async#i(e){const t=this.getMeasure(e);if(t){const r=this.getMeasures().findIndex(t=>t.qDef.cId===e);await super.removeMeasure(r,!1),await super.addMeasure(t,!0,this.getAlternativeMeasures().length)}}async#a(e){const t=this.getDimension(e);if(t){const r=this.getAlternativeDimensions().findIndex(t=>t.qDef.cId===e);await super.removeDimension(r,!0),await super.reinsertDimension(t,!1,this.getDimensions().length)}}async#s(e){const t=this.getDimension(e);if(t){const r=this.getDimensions().findIndex(t=>t.qDef.cId===e);await super.removeDimension(r,!1),await super.addDimension(t,!0,this.getDimensions().length)}}#l(e){const{qDimensions:t,qMeasures:r}=this.hcProperties,n=new Map([...t,...r].map((e,t)=>[e.qDef.cId,t]));this.hcProperties.qColumnOrder=e.reduce((e,t)=>{const r=n.get(t);return void 0!==r?[...e,r]:e},[])}async toggleAlternatives(e,t){await Promise.all(e.map(e=>"dimension"===e.type?e.isAlternative?this.#a(e.id):this.#s(e.id):e.isAlternative?this.#o(e.id):this.#i(e.id))),this.#l(t)}setAllColumnOrderForColumnIds(e){const t=e.reduce((e,t,r)=>(e[t]=r,e),{});this.hcProperties.qLayoutExclude.allColumnOrder=t}updateColumnOrders(e){this.setAllColumnOrderForColumnIds(e),this.#l(e)}getFilters(){return this.properties.filters??[]}getFilter(e){return this.getFilters().find(t=>t.id===e)}addFilterField(e){const t=e.qTags??e.tags,r=Array.isArray(t)&&t.includes("$numeric"),n=e.isDerived,o=Array.isArray(this.properties.filters)?this.properties.filters:[],i={type:"values",field:n?e.value??e.fullname:e.name??e.label??e.field,options:{values:[]},exclude:!1,id:WA(),qTags:Array.isArray(t)?t:[],isNumeric:r};return o.push(i),this.properties.filters=o,this.properties.qHyperCubeDef.qContextSetExpression=_A(o),i}addFilters(e){const t=[];for(const r of e)t.push(this.addFilterField(r));return t}#u(e){const t=this.getFilters();return t.splice(e,1),this.properties.qHyperCubeDef.qContextSetExpression=_A(t),t}removeFilters(e){if(0===e.length)return[];let t=[];const r=[...e].sort((e,t)=>t-e);t=this.getFilters().filter((t,r)=>e.includes(r));for(const e of r)this.#u(e);return t}getLabels(){return this.getMeasures().reduce((e,t)=>(!t.qLibraryId&&t.qDef.qLabel&&e.push(t.qDef.qLabel),e),[])}getAddDimensionLabel(){return this.#e.get("Visualization.Requirements.AddDimension")}canColorBy(){return!1}}const UA=(e,t)=>{if(!e)return-1;const r=e.indexOf(t);if(-1===r)return-1;for(let r=0;r<e.length;++r)e[r]>t&&e[r]--;return e.splice(r,1),r};function GA(e,t){let r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)}function YA(e){return e>0?0:1}function KA(e){return e.translator.get("Visualizations.Descriptions.Column")}function XA(e){return{measures:{min:YA,max:1e3,description:()=>KA(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;GA(n,r.getDimensions().length+r.getMeasures().length-1)},remove(e,t,r,n){const{qColumnOrder:o}=r.hcProperties,i=(r.hcProperties.qDimensions?r.hcProperties.qDimensions.length:0)+n;UA(o,i)}},dimensions:{min:YA,max:1e3,description:()=>KA(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;return GA(n,r.getDimensions().length-1),e},remove(e,t,r,n){if(e?.isAlternative)return;const{qColumnOrder:o}=r.hcProperties;UA(o,n)}}}}let JA=function(e){return e.Text="text",e.Link="link",e.Image="image",e.ImagesInIndentMode="imagesInIndentMode",e.Indicator="indicator",e.MiniChart="miniChart",e.EditableText="editableText",e.EditableSelector="editableSelector",e}({}),ZA=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const QA=e=>{switch(e?.type){case"url":return JA.Link;case"image":return JA.Image;case"indicator":return JA.Indicator;case"miniChart":return JA.MiniChart;default:return JA.Text}},eM=({isImagesEnabled:e})=>({uses:"dimensionRepresentationItems.representationType",options(t,r,n){const{qIndentMode:o}=n.properties.qHyperCubeDef,i=[{value:"text",translation:"Object.Table.Representation.Text"},{value:"url",translation:"Object.Table.Representation.Link"}];return(!o&&e||o)&&i.push({value:"image",translation:"Object.Table.Representation.Image"}),i}}),tM=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>QA(e.qDef.representation)===JA.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]},imageBoxWidth:{ref:"qDef.representation.imageBox.width",translation:"properties.pivot.representation.image.imageBox.width",type:"number",expression:"optional",defaultValue:24,show:(e,t,r)=>{if(!r.properties.qHyperCubeDef)return!1;const{qInterColumnSortOrder:n,qNoOfLeftDims:o,qDimensions:i,qIndentMode:a}=r.properties.qHyperCubeDef;let s=!1;n?.indexOf(-1);const l=i?.indexOf(e)??1/0;return(n?.slice(0,o)??[]).indexOf(l)>-1&&(s=!0),s&&a}}}}}},rM=e=>{const{anything:t}=e,r=!t.sense?.isUnsupportedFeature?.("tableImages");return{representationType:eM({isImagesEnabled:r}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>QA(e.qDef.representation)===JA.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>QA(e.qDef.representation)===JA.Link&&e.qDef.representation?.urlPosition===ZA.Dimension},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>QA(e.qDef.representation)===JA.Link&&e.qDef.representation?.urlPosition===ZA.Attribute},...tM(r)}},nM=(e,t)=>{const{anything:r}=e,n=r.sense?.isUnsupportedFeature,o=!n?.("tableImages")&&t[JA.Image],i=!n?.("qMiniChartDef")&&t[JA.MiniChart],a=!n?.("tableIndicators")&&t[JA.Indicator],s=o&&t[JA.ImagesInIndentMode];return{representationType:{uses:"measureRepresentationItems.representationType",options:(e,t,r)=>(e=>{const{qIndentMode:t}=e.properties.qHyperCubeDef??{},r=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!t&&o||t&&s)&&r.push({value:"image",translation:"Object.Table.Representation.Image"}),a&&r.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),i&&r.push({value:"miniChart",translation:"Common.MiniChart"}),r})(r)},representationImage:o?{uses:"measureRepresentationItems.representationImage",show:e=>QA(e.qDef.representation)===JA.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0,representationIndicator:a?{uses:"measureRepresentationItems.representationIndicator"}:void 0,representationMiniChart:i?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}};var oM,iM={};oM=iM,(()=>{var e={370:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};r.r(n),r.d(n,{default:()=>Pe});var o=r(370),i=r.n(o);const a=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var s=a[i];return a[i]=r,{updated:r,previous:s}}return delete a[i],!1},s=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},l={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var u="".concat(" ","(").concat(" "),c="".concat(" ",")").concat(" ");function d(e){return u+e+c}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function f(e){return!(!e.fullAccumulation&&!e.fullRange)}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function m(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function g(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function b(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function v(e){return void 0===e?")":", 0, ".concat(e,")")}function y(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function x(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(y("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(y("MaxString(".concat(t,")")),")'\"}")}function S(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=x(p(n[0],o),g(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(n&&2===n.length){var c=p(n[0],o),d=p(n[1],o),f=g(0),h=g(1),m=x(c,f),b=x(d,h);return"".concat(a,"({1<").concat(m,",").concat(b,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function w(e){return"".concat(e,"(")}function C(e){var t=e.properties,r=e.layout;return s(t,"qHyperCubeDef.qDimensions",s(r,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:f,getNumDimensions:C,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=d(m(t));if(!r.showExcludedValues)return a;var s=S({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var u=g(0);return"If(Count(".concat(u,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var c=g(0),p=g(1);return"If(Count(".concat(c,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:h,getNumStepComp:function(e,t){if(!f(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return h(e,t)},getAboveCompPrefix:b,getAboveCompSuffix:v,getAboveComp:function(e,t,r,n){return b(e,t)+r+v(n)},getFunctionPrefix:w,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return w(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:S,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout;return 0===function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t)&&2===C({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=g(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:m,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(u);if(-1!==r){var n=t.indexOf(c);if(-1!==n)return t.substring(r+u.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach(function(r){void 0===e[r]&&(e[r]=t[r])})},isNumeric:p,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var s=C({properties:t,layout:r});return s>=o&&s<=a},getExpressionWithMarkers:d,canExtract:function(e){var t=e.indexOf(u),r=e.indexOf(c);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:g,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find(function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null});o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=l.OPTIONS.find(function(t){return t.value===e.decomposition});return t?l.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(l.EXPRESSIONS).find(function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return l.EXPRESSIONS[r]&&n.includes(l.EXPRESSIONS[r].toLowerCase())&&(t=r),r}),t}};function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function A(e){return A="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},A(e)}var M=i().bind(null,!0),P={},I=Array.isArray;function k(e){return null!=e&&!Array.isArray(e)&&"object"===A(e)}function D(e){return void 0===e}function T(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function O(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach(function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=D(e[r||t])?i:e[t],e=e[r||t]}}),e}function L(e,t){var r=!0;if(k(e)&&k(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(function(n){L(e[n],t[n])||(r=!1)}),r);if(I(e)&&I(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!L(e[n],t[n]))return!1;return!0}return e===t}P.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach(function(o){var i=function(e){return e?M({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);L(i,a)||T(t,o)||(D(a)?n.push({op:"add",path:s,value:i}):k(i)&&k(a)?n=n.concat(P.generate(a,i,s)):I(i)&&I(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&D(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(L(t,o))return n;if(!D(t[0])&&D(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(n.push({op:"remove",path:"".concat(r,"/").concat(s)}),o.splice(s,1)):n=n.concat(P.generate(o[s],t[i],"".concat(r,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return n}(a,i,s)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))}),Object.keys(e).forEach(function(o){D(t[o])&&!T(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})}),n},P.apply=function(e,t){t.forEach(function(t){var r,n,o=O(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(I(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(I(a)&&I(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return R(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return R(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?R(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(k(a)&&k(t.value))r=a,Object.keys(r).forEach(function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!T(r,e)&&delete r[e]}),M(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=O(e,t.from);I(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(I(o)?o.splice(+i,1):delete o[i])})},P.clone=function(e){return M({},e)},P.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},P.updateObject=function(e,t){Object.keys(e).length?P.apply(e,P.generate(e,t)):M(e,t)};const q=P;var N="accumulation";function j(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===N)return r[n]}function _(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===N)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var z={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const F={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var l=i;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=s(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=E.getNumStepComp(r,l),p=E.getAboveComp(r,l,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:r,properties:n,layout:o})){var h=E.getDimComp(u,1),m=E.getDimComp(u,0),g=E.getAggrComp(f,h,m);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:a,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,z)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(_(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(_(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(_(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(_(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=j(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=j(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(_(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(N))return!1;var i=j(t,e);return i&&!i.disabled}}}};var $="movingAverage";function H(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===$)return r[n]}function B(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===$)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var W={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const V={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,i=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var u=a;void 0===u&&(u=E.getNumDimensions({properties:o,layout:i}));var c=s(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=E.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=E.getNumStepComp(n,u),h=E.getAboveComp(n,u,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",h);else{var m=E.getRangeComp("RangeSum",h),g=function(e,t){var r=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(m," / ").concat(g)}var b=t;if(E.needDimension({modifier:n,properties:o,layout:i})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,W)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=H(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=H(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf($))return!1;var i=H(t,e);return i&&!i.disabled}}}};var U="timeSeriesDecomposition";function G(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===U)return r[n]}function Y(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===U)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var K={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const X={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?E.generateTSDExpression(r,t,n):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,K),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(Y(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:l.OPTIONS},steps:{refFn:function(t){return"".concat(Y(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=G(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map(function(e){return e.qDef.modifiers.map(function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e}),e})}},show:function(t){var r=G(t,e);return r&&!r.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(U))return!1;var i=G(t,e);return i&&!i.disabled}}}};var J="difference";function Z(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===J)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var l=i;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=s(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=E.getAboveComp(r,l,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:r,properties:n,layout:o})){var f=E.getDimComp(u,1),h=E.getDimComp(u,0),m=E.getAggrComp(p,f,h);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:a,funcComp:"Only",valueComp:m}):m}return p},initModifier:function(e){Object.keys(Q).forEach(function(t){void 0===e[t]&&(e[t]=Q[t])})},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(J))return!1;var i=function(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===J)return r[n]}(t,e);return i&&!i.disabled}}}};var te="normalization";function re(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,r){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var l=i;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=s(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a,s){var l=ae(t),u=se(t,r,n),c=""===l&&""===u?"":l||u,d=le(o,i),p=ue(o,i,a),f=function(e){for(var t=[],r=0;r<e;r++)t[r]=E.getDimDefWithWrapper(r);return t.join(", ")}(i);return s?"(If(".concat(e," < 0, null(), ").concat(e,"))/ Sum(").concat(c," ").concat(d).concat(p," Aggr(").concat(c," RangeMax( 0, ").concat(e,"), ").concat(f,"))"):"".concat(e,"/ Sum(").concat(c," ").concat(d).concat(p," Aggr(").concat(c," ").concat(e,", ").concat(f,"))")}(c,d,r.field,r.value,p,l,r.primaryDimension,r.ignoreNegative)},initModifier:function(e){Object.keys(ie).forEach(function(t){void 0===e[t]&&(e[t]=ie[t])})},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then(function(e){return e.map(function(e){return{label:e.qName,value:e.qName}})})},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}}},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ue};var de="library id deleted",pe="qDef.qDef",fe="qDef.base.qDef",he="qLibraryId",me="qDef.base.qLibraryId",ge="qDef.qLabel",be="qDef.qLabelExpression",ve="qDef.base.qLabel",ye="qDef.base.qLabelExpression",xe="qDef.qAggrFunc",Se="qDef.base.qAggrFunc",we="qDef.base";const Ce={getExpression:function(e){var t=s(e,fe);return void 0!==t?t:s(e,pe)},getExpressionRef:function(e){return void 0!==s(e,fe)?fe:pe},getLibraryIdRef:function(e){return s(e,me)?me:he},getLibraryId:function(e){return s(e,me)||s(e,he)},getLabelRef:function(e){return s(e,we)?ve:ge},getLabelExpressionRef:function(e){return s(e,we)?ye:be}};var Ee={initBase:function(e,t){(t||Ee.isValid(e))&&(a(e,fe,s(e,pe)),a(e,me,s(e,he)),a(e,ve,s(e,ge)),a(e,ye,s(e,be)))},restoreBase:function(e){Ee.isValid(e)&&(a(e,pe,s(e,fe)),a(e,he,s(e,me)),a(e,ge,s(e,ve)),a(e,be,s(e,ye)),s(e,xe)&&s(e,Se)&&a(e,xe,s(e,Se)),delete e.qDef.base)},isValid:function(e){var t=s(e,fe),r=s(e,me);return void 0!==t||void 0!==r}};const Re=Ee;function Ae(e){return Ae="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},Ae(e)}var Me={accumulation:F,movingAverage:V,difference:ee,normalization:ce,timeSeriesDecomposition:X};const Pe={modifiers:Me,apply:ke,applyModifiers:De,cleanUpMeasure:Te,destroy:function(e){e&&Ie[e.id]&&Ie[e.id].masterItemSubscriber&&(Ie[e.id].masterItemSubscriber&&Ie[e.id].masterItemSubscriber.unsubscribe(),delete Ie[e.id])},hasActiveModifiers:Oe,getActiveModifier:Le,initBase:Re.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some(function(e){return Me[e]})},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some(function(e){return Me[e]&&Me[e].isApplicable({properties:r,layout:n})})},measureBase:Ce,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach(function(e){var t=je(e);We({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ke({modifiers:t,properties:r,layout:n}))}),o&&!i},ifEnableTotalsFunction:qe};var Ie={};function ke(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.model,r=e.properties,n=e.isSnapshot,o=void 0!==n&&n,a=e.masterItem,l=!1;Ie[t.id]=Ie[t.id]||{isFirstTime:!0};var u=Ie[t.id].isFirstTime;if(Ie[t.id].isFirstTime=!1,r&&"object"===Ae(r))return De({model:t,properties:r});var c=t?t.layout:void 0,d=s(c,"qSelectionInfo.qInSelections");if(o||d)return Promise.resolve(l);var p=s(c,"qHyperCube.qMeasureInfo"),f=Ie[t.id].lastReloadTime;if(Ie[t.id].lastReloadTime=s(t,"app.layout.qLastReloadTime"),Oe({measures:p,layout:c})){var h=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return s(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Be({measure:e,properties:r,layout:n})})}({measures:t,layout:r})}({measures:p,layout:c,model:t,lastReloadTime:f});return h||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some(function(e){return function(e){var t=e.measure,r=e.layout;return We({modifiers:je(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})}))}({measures:p,layout:c,masterItem:a,isFirstTime:u})?t.getEffectiveProperties().then(function(e){var r=i()(!0,{},e);ze(r);var n=Xe(r);return Ve({model:t}).then(function(o){return Ue({libraryIds:n,model:t}).then(function(n){return h&&function(e){var t=e.properties;Ne(t).forEach(function(e){return function(e){var t=e.measure;if(Be({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach(function(e){if("object"===Ae(e)&&!e.disabled){if(r++,"object"!==Ae(Me[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=Me[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&$e(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}})}}({measure:e,properties:t})})}({properties:r}),De({model:t,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:a,libraryItemsProps:n,dimensionAndFieldList:o})})}).catch(function(){return Promise.resolve(l)})}):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some(function(e){return"object"===Ae(e.base)})}(p)?t.getEffectiveProperties().then(function(e){return function(e){var t=e.model,r=e.properties,n=Xe(r);return Je({model:t,libraryIds:n}).then(function(){var e=i()(!0,{},r);return Ne(r).forEach(function(e){return Te(e)}),Ye({oldProperties:e,newProperties:r,model:t})})}({model:t,properties:e})}):Promise.resolve(l)}function De(e){var t=e.model,r=e.oldProperties,n=e.properties,o=e.measures,a=e.runUpdateIfChange,l=void 0!==a&&a,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=l?i()(!0,{},n):n),ze(n);var p=Xe(n);return Je({model:t,libraryIds:p,masterItem:u}).then(function(){return function(e){var t=e.measures,r=e.properties,n=e.model,o=e.libraryItemsProps,a=e.dimensionAndFieldList;if(t||(t=Ne(r)),!t.length)return Promise.resolve();if(!o&&!Oe({measures:t,properties:r}))return t.forEach(function(e){return Te(e)}),Promise.resolve();var l=o?void 0:Xe(r);return Ve({model:n,dimensionAndFieldList:a}).then(function(e){return Ue({libraryIds:l,model:n,libraryItemsProps:o}).then(function(n){t.forEach(function(t){var o=t.qDef.modifiers;n&&We({modifiers:o,properties:r})?(function(e){var t=e.measure,r=e.properties,n=e.libraryItemsProps,o=e.dimensionAndFieldList,a=0;Re.isValid(t)||Re.initBase(t,!0);var l=t.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach(function(e){if("object"===Ae(e)&&!e.disabled){if(a++,"object"!==Ae(Me[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(a>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Me[e.type].initModifier(e,t);var l=t.qLibraryId||c&&c.qLibraryId;l?function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Me[r.type].generateExpression({expression:s,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=l,t.qDef.qDef=r.outputExpression,(t.qDef.qLabel||a.qMeasure.qLabel)&&(t.qDef.qLabel=t.qDef.base.qLabel||a.qMeasure.qLabel),(t.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(t.qDef.qLabelExpression=a.qMeasure.qLabelExpression),t.qDef.quarantine&&t.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(t.qDef.qNumFormat=t.qDef.base.qNumFormat||a.qMeasure.qNumFormat,t.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete t.qLibraryId,t.qDef.coloring=a.qMeasure.coloring,r.base=i()(!0,{},t.qDef.base)}({measure:t,modifier:e,libraryId:l,properties:r,libraryItemsProps:n,dimensionAndFieldList:o}):function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList;"function"==typeof Me[r.type].updateModifier&&Me[r.type].updateModifier(r,n.qHyperCubeDef);var a=Ce.getExpression(t),s=""===a?a:Me[r.type].generateExpression({expression:a,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=s,t.qDef.qDef=r.outputExpression,t.qDef.base.qLabelExpression?t.qDef.qLabelExpression=t.qDef.base.qLabelExpression:t.qDef.qLabel=t.qDef.base.qLabel||a,r.base=i()(!0,{},t.qDef.base)}({measure:t,modifier:e,properties:r,dimensionAndFieldList:o}),function(e){var t=s(e,"qDef.qAggrFunc");"Expr"!==t||qe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&qe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(t)}})}({measure:t,properties:r,libraryItemsProps:n,dimensionAndFieldList:e}),Fe(t)):Te(t)})})})}({measures:o,properties:n,model:t,libraryItemsProps:c,dimensionAndFieldList:d}).then(function(){return l?Ye({oldProperties:r,newProperties:n,model:t}):Promise.resolve(!1)})}).catch(function(){return Promise.resolve(!1)})}function Te(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some(function(e){return"object"===Ae(e)&&!e.disabled&&!Me[e.type]})}(e)?Re.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Fe(e)}function Oe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some(function(e){return We({modifiers:je(e),properties:r,layout:n})})}function Le(e){var t=je(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Me[n.type]&&!n.disabled)return n}}function qe(e){var t=Le(e);return!t||Me[t.type].enableTotalsFunction(e)}function Ne(e){return s(e,"qHyperCubeDef.qMeasures",[]).concat(s(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function _e(e){return s(e,"outputExpression.qValueExpression.qExpr")||s(e,"outputExpression")}function ze(e){Ne(e).forEach(function(e){return function(e){var t=Le(e);t&&(void 0!==t.outputExpression&&_e(t)!==e.qDef.qDef?delete e.qDef.base:!Re.isValid(e)&&t.base&&(e.qDef.base=i()(!0,{},t.base)))}(e)})}function Fe(e){var t=je(e);Array.isArray(t)&&t.forEach(function(t){"object"===Ae(t)&&(t.disabled||!Me[t.type]&&_e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)})}function $e(e){return e.base||e.qDef&&e.qDef.base}function He(e){var t=$e(e);return e.qLibraryId||t&&t.qLibraryId}function Be(e){var t=e.measure,r=e.properties,n=e.layout;return!He(t)&&We({modifiers:je(t),properties:r,layout:n})}function We(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some(function(e){return!("object"!==Ae(e)||e.disabled||!Me[e.type])&&(void 0===o[e.type]&&(o[e.type]=Me[e.type].isApplicable({properties:r,layout:n})),o[e.type])})}function Ve(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then(function(e){o.dimensionList=e});n.push(i);var a=t.app.getFieldList().then(function(e){o.fieldList=e});return n.push(a),Promise.all(n).then(function(){return o})}function Ue(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach(function(e){var t=r.app.getMeasure(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),i.forEach(function(e){var t=r.app.getDimension(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),Promise.all(s).then(function(){return a}).catch(function(){return null})}function Ge(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Ye(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(s(t,"qHyperCubeDef.qMeasures"),Ge)!==JSON.stringify(s(r,"qHyperCubeDef.qMeasures"),Ge)||JSON.stringify(s(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ge)!==JSON.stringify(s(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ge);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&s(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):function(e,t,r){if(!e)return Promise.resolve();var n=q.generate(t,r);return i()(!0,t,r),n&&n.length?(n=n.map(function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}}),e.applyPatches(n,!0)):Promise.resolve()}(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then(function(){return o}):Promise.resolve(o)}function Ke(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some(function(e){return"object"===Ae(e)&&!e.disabled&&Me[e.type]&&Me[e.type].needDimension({modifier:e,properties:r,layout:n})})}function Xe(e){var t=Ne(e),r=[],n=[],o=!1;return t.forEach(function(t){var n=je(t);if(We({modifiers:n,properties:e})){var i=He(t);i&&r.push(i),o=o||Ke({modifiers:n,properties:e})}}),s(e,"qHyperCubeDef.qDimensions",[]).forEach(function(e){var t=e.qLibraryId;t&&n.push(t)}),{measureLibraryIds:r,dimensionLibraryIds:n}}function Je(e){var t=e.model,r=e.libraryIds,n=e.masterItem;return!n&&n!==de&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(Ie[t.id].masterItemSubscriber=Ie[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},i={},a={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},r=s(e,"qInfo.qType");return r&&a[r]&&a[r].forEach(function(r){t[r]=s(e,r)}),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=l(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(){Object.keys(n).forEach(function(e){o[e]||i[e]||(n[e].listener.dispose(),n[e].unbindCloseListnener(),delete n[e])})}var d=function(e,t){return e.once("closed",t),function(){return e.removeListener("closed",t)}};function p(e,o){return t.app[o](e).then(function(t){n[e]={listener:t.layoutSubscribe(u),unbindCloseListnener:d(t,function(){return e=t.id,r(de),delete n[e],void c();var e}),enabled:!1,properties:l(t.layout)}}).catch(function(){})}return{subscribe:function(e){var r=e.measureLibraryIds,a=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach(function(e){o[e]=!0}),i={},t.forEach(function(e){i[e]=!0})}({measureLibraryIds:r,dimensionLibraryIds:a}),c(),t.app&&(Object.keys(o).forEach(function(e){o[e]&&!n[e]&&s.push(p(e,"getMeasure"))}),Object.keys(i).forEach(function(e){i[e]&&!n[e]&&s.push(p(e,"getDimension"))})),Promise.all(s)},unsubscribe:function(){Object.keys(n).forEach(function(e){n[e].listener.dispose(),n[e].unbindCloseListnener()}),n={}}}}({model:t,callback:function(e){return ke({model:t,masterItem:e}).then(function(){return t.app.clearUndoBuffer()})}}),Ie[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}for(var Ze in oM.default=n.default,n)-1===["default"].indexOf(Ze)&&(oM[Ze]=n[Ze]);Object.defineProperty(oM,"__esModule",{value:!0})})();var aM=Zt(iM);const sM={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},lM={textAlignAuto:{ref:"qDef.textAlign.auto",type:"boolean",component:"switch",translation:"Common.Text.TextAlignment",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},textAlign:{ref:"qDef.textAlign.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:e=>void 0!==e.qDef.textAlign&&!e.qDef.textAlign.auto}},uM=e=>({type:"items",grouped:!0,items:{totalsAggrGroup:{type:"items",items:{totalsAggrFunc:{type:"string",component:"dropdown",ref:"qDef.qAggrFunc",translation:"Object.Table.AggrFunc",options:(e,t)=>(!aM.hasActiveModifiers({measures:[e],properties:t.properties})||aM.ifEnableTotalsFunction(e)?[{value:""===e.qDef.qAggrFunc?"":"Expr",translation:"Common.Auto"}]:[]).concat([{value:"Avg",translation:"Object.Table.AggrFunc.Avg"},{value:"Count",translation:"Object.Table.AggrFunc.Count"},{value:"Max",translation:"Object.Table.AggrFunc.Max"},{value:"Min",translation:"Object.Table.AggrFunc.Min"},{value:"Sum",translation:"Object.Table.AggrFunc.Sum"},{value:"None",translation:"Object.Table.AggrFunc.None"}]),defaultValue:e.anything.sense?.isUnsupportedFeature?.("totals")?"None":"Expr"}}}},show:!e.anything.sense?.isUnsupportedFeature?.("totals")}),cM={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:SE.Auto,translation:"Common.Auto"},{value:SE.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:SE.Pixels,translation:"Object.Table.Column.Pixels"},{value:SE.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:SE.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:"200",show:e=>e.qDef.columnWidth?.type===SE.Pixels},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:"20",show:e=>e.qDef.columnWidth?.type===SE.Percentage}},dM=e=>({...sM,...e.flags.isEnabled("VNA-626-TABLE_HEADER_COLOR_BY_EXPRESSION")?{columnExpression:{type:"items",grouped:!0,items:[{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},{type:"items",items:[{component:"text",translation:"properties.Header",style:"sHeader"},{ref:"qDef.headerColor.background",translation:"Object.Table.Measure.BackgroundExpression",component:"expression",expressionType:"StringExpression",defaultValue:""},{ref:"qDef.headerColor.foreground",translation:"Object.Table.Measure.ForegroundExpression",component:"expression",expressionType:"StringExpression",defaultValue:""}]},{type:"items",items:[{component:"text",translation:"properties.Content",style:"sHeader"},{component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:"cellBackgroundColor",tid:"tableColorBgByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"cellForegroundColor",tid:"tableColorByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.TextStyleExpression",defaultValue:"",id:"textStyleExpression",tid:"tableTextStyleByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"urlLabel",tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"url",tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageLabel",tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageUrl",tid:"ImageUrlByExpression",show:!1}]}]}]}}:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},tableCellStyling:{component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:"cellBackgroundColor",tid:"tableColorBgByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"cellForegroundColor",tid:"tableColorByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.TextStyleExpression",defaultValue:"",id:"textStyleExpression",tid:"tableTextStyleByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"urlLabel",tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"url",tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageLabel",tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageUrl",tid:"ImageUrlByExpression",show:!1}]}},...lM,...cM}),pM={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},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},createMasterItemButton:{},divider:{uses:"divider"},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"}},fM=e=>{const t=e.anything.sense?.isUnsupportedFeature?.("modifiers");return{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>t?!!e.qLibraryId:!(!e.qLibraryId&&!e.qDef.base?.qLibraryId)},inlineMeasure:{component:"inline-measure",show:e=>t?!e.qLibraryId:!(e.qLibraryId||e.qDef.base?.qLibraryId)},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:uM(e)}},hM=e=>({dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:pM},presentation:{type:"items",translation:"properties.presentation",items:{...dM(e),...rM(e)}}}}}),mM=e=>({measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:fM(e)},presentation:{type:"items",translation:"properties.presentation",items:{...dM(e),...nM(e,{[JA.Image]:!0,[JA.Indicator]:!0,[JA.MiniChart]:!0})}}}}}),gM=e=>({...hM(e),...mM(e)}),bM=e=>({type:"items",translation:"Common.Data",component:"tabs-component",items:{columns:{component:"data-assets-panel",ref:"columns",tabName:"properties.DataAssetPanel.Columns",items:{...gM(e)},highlightSelected:!0},filters:{type:"items",component:"filters-assets-panel",ref:"filters",tabName:"SimpleProperties.Filters.Filters",items:{filter:{type:"object",component:"filter-item-react",ref:"filter"}},highlightSelected:!0}}}),vM={chartExploration:{type:"items",translation:"properties.chartExploration",items:{chartExplorationToggler:{type:"items",component:"chart-exploration-toggler",translation:"properties.enableChartExploration",ref:"enableChartExploration"},visibilityToggler:{show:e=>e.enableChartExploration,component:"buttongroup",translation:"properties.ChartExploration.VisibilityOption",ref:"chartExploration.menuVisibility",options:[{value:"auto",translation:"Common.Auto"},{value:"minimized",translation:"properties.ChartExploration.Minimized"}]}},show:e=>!e.insideContainer}},yM=e=>({type:"items",items:[{ref:"totals.show",type:"boolean",translation:"properties.totals",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},{ref:"totals.position",translation:"Common.Position",type:"string",component:"dropdown",options:[{value:"noTotals",translation:"Common.None"},{value:"top",translation:"Common.Top"},{value:"bottom",translation:"Common.Bottom"}],defaultValue:"noTotals",show:e=>!e.totals?.show},{ref:"totals.label",translation:"properties.totals.label",type:"string",expression:"optional",defaultValue:()=>e.translator.get("Object.Table.Totals")}],show:!e.anything.sense?.isUnsupportedFeature?.("totals")}),xM=(e,t,r,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:n??!1,defaultValue(e,t,o){const i=n?.(e,t,o)??!1,a=o.theme.current(),s=r(a,i);return{color:"transparent"===s?"none":s}}}),SM=(e,t=!1)=>{return{value:e,label:t?(r=e,r.charAt(0).toUpperCase()+r.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var r},wM=({ref:e,themeAccessor:t,translator:r,flags:n})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,r,n)=>{const o=t.fontFamily??"Source Sans Pro, sans-serif",i=t.fontFamilies??[],a=Array.from(new Set([e,o,...i])),s=[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0},...a.sort().map(e=>SM(e,!0))],l=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...we(n).filter(e=>!a.includes(e)).map(e=>SM(e,!0))];return[...s,...l.length>1?l:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),CM=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],EM=({ref:e,themeAccessor:t,translator:r})=>({component:"dropdown",ref:e,options:(e,n,o)=>{const i=o.theme.current();return((e,t,r)=>{const n=t.fontSize,o=t.fontSizes??[],i=Array.from(new Set([e,n,...o])),a=[{value:"ThemeHeader",label:r.get("properties.themeFontSizes"),metaText:r.get("properties.theme"),groupHeader:!0},...i.sort((e,t)=>parseInt(e,10)-parseInt(t,10)).map(e=>SM(e,!1))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...CM.filter(e=>!i.includes(e)).map(e=>SM(e,!1))];return[...a,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),RM=({section:e,defaultFontStyle:t,translator:r,flags:n,getThemeValue:o,translation:i,disableNoneCallback:a})=>({component:"panel-section",translation:i??`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:wM({ref:`${e}.fontFamily`,themeAccessor:t=>o(t,e,"fontFamily")??t.fontFamily,translator:r,flags:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:t??[]},fontSize:EM({ref:`${e}.fontSize`,themeAccessor:t=>o(t,e,"fontSize")??t.fontSize,translator:r}),fontColor:xM(`${e}.fontColor`,void 0,t=>o(t,e,"color")??t.color)}},background:xM(`${e}.background`,"properties.background",(t,r)=>{const n=r?FC.WHITE:FC.TRANSPARENT;return o(t,e,"backgroundColor")??n},a)}}}}),AM=({section:e,defaultFontStyle:t,fallbackBackground:r,getThemeValue:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:t??[]},fontColor:xM(`${e}.fontColor`,void 0,t=>n(t,e,"color")??t.color)}},background:xM(`${e}.background`,"properties.background",t=>n(t,e,"backgroundColor")??r??"transparent")}}}}),MM=(e,t,r)=>{switch(t){case"header":return e.object?.straightTableV2?.dimension?.label?.name?.[r];case"dimensionValues":return e.object?.straightTableV2?.dimension?.label?.value?.[r];case"measureValues":return e.object?.straightTableV2?.measure?.label?.value?.[r];case"totalValues":return e.object?.straightTableV2?.total?.label?.value?.[r];case"nullValues":return e.object?.straightTableV2?.null?.label?.value?.[r];default:return}},PM=e=>e.grid?.zebraStripes?.show,IM={ref:"content.rowHeight",component:"integer",placeholder:1,maxlength:4,translation:"ThemeStyleEditor.style.rowHeight",change(e){null!=e?.content?.rowHeight&&""!==e.content.rowHeight?e.content.rowHeight=Math.max(1,Math.min(50,Math.floor(e.content.rowHeight))):void 0!==e?.content&&(e.content.rowHeight=void 0)}},kM=e=>e?.content?.hoverEffect,DM={translation:"properties.RowHover",component:"panel-section",items:{hoverEffectItem:{component:"items",ref:"components",key:"theme",items:{hoverEffectSwitch:{ref:"content.hoverEffect",translation:"ThemeStyleEditor.style.hoverEffect",type:"boolean",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1},hoverEffectColorItem:{show:kM,ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show:kM,ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}},TM=(e,t,{properties:r})=>"sn-table"===r.visualization&&!0===r.usePagination,OM=({flags:e,translator:t})=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.StraightTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,items:{headerSection:RM({section:"header",defaultFontStyle:["bold"],translator:t,flags:e,getThemeValue:MM,disableNoneCallback:TM}),dimensionValueSection:RM({section:"dimensionValues",translator:t,flags:e,getThemeValue:MM}),measureValueSection:RM({section:"measureValues",translator:t,flags:e,getThemeValue:MM}),totalRowSection:RM({section:"totalValues",defaultFontStyle:["bold"],translation:"properties.totals",translator:t,flags:e,getThemeValue:MM,disableNoneCallback:TM}),nullValues:AM({section:"nullValues",fallbackBackground:FC.NULL_VALUE_BACKGROUND,getThemeValue:MM}),grid:{translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{rowHeight:{show:()=>!0,...IM},border:xM("grid.border","properties.border",e=>e.object?.straightTableV2?.grid?.borderColor??FC.BORDER_MEDIUM),divider:xM("grid.divider","properties.pivot.divider",e=>e.object?.straightTableV2?.grid?.divider?.borderColor??FC.BORDER_HEAVY)}}}},hoverEffectSection:DM,zebraStripes:{translation:"properties.zebraStripes",component:"panel-section",items:{hoverEffectItem:{component:"items",ref:"components",key:"theme",items:{zebraStripesEnable:{ref:"grid.zebraStripes.show",translation:"properties.zebraStripes.enable",type:"boolean",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1},zebraStripesColorOdd:{show:PM,ref:"grid.zebraStripes.color.odd",translation:"properties.zebraStripes.color.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundrOdd:{show:PM,ref:"grid.zebraStripes.background.odd",translation:"properties.zebraStripes.background.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1},zebraStripesColorEven:{show:PM,ref:"grid.zebraStripes.color.even",translation:"properties.zebraStripes.color.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundEven:{show:PM,ref:"grid.zebraStripes.background.even",translation:"properties.zebraStripes.background.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1}}}}}}}]}),LM=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[OM(e),yM(e),{type:"items",items:[{component:"text",translation:"properties.accessibilityOptions"},{ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",defaultValue:!1},{ref:"accessibleHeader",translation:"properties.increaseAccessibility",type:"boolean",component:"checkbox",undefinedValue:!0,defaultValue:!1}]},{type:"items",translation:"Object.Table.WrapText",items:[{component:"text",translation:"Object.Table.Multiline"},{ref:"multiline.wrapTextInHeaders",type:"boolean",translation:"Object.Table.Multiline.WrapTextInHeaders",component:"checkbox",defaultValue:!0},{ref:"multiline.wrapTextInCells",type:"boolean",translation:"Object.Table.Multiline.WrapTextInCells",component:"checkbox",defaultValue:!0}]},{ref:"hideHeader",translation:"properties.hideHeader",type:"boolean",component:"checkbox",defaultValue:!1},{ref:"nullValueRepresentation.text",type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"}]},...vM}}),qM={uses:"sorting"},NM={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},jM=e=>({type:"items",component:"accordion",items:{data:bM(e),sorting:qM,addOns:NM,settings:LM(e)}});function _M(e){return{definition:jM(e),exploration:TA,data:XA(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1,exploration:!0,cssScaling:!0,modifiers:e.anything.sense?.isUnsupportedFeature?.("modifiers")?void 0:["accumulation","movingAverage","difference","normalization"]},importProperties(e,t,r,n,o){const i={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()};return DA({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:i,viewDataMode:o})},exportProperties:(e,t)=>RA({propertyTree:e,hyperCubePath:t}),...e.flags.isEnabled("VNA-505_toggle_field_visibility")&&{propertyHandler:t=>new VA(t,e.translator),usePropertyHandler:"sn-table-data"}}}var zM={exports:{}};
|
|
103
103
|
/*!
|
|
104
104
|
* CSSJanus. https://www.mediawiki.org/wiki/CSSJanus
|
|
105
105
|
*
|
|
@@ -118,4 +118,4 @@ function Xi(e,t){let r;return r=t?zi(e).withConfig({displayName:t.label,shouldFo
|
|
|
118
118
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
119
119
|
* See the License for the specific language governing permissions and
|
|
120
120
|
* limitations under the License.
|
|
121
|
-
*/!function(e,t){var r;function n(e,t){var r=[],n=0;function o(e){return r.push(e),t}function i(){return r[n++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}r=new function(){var e="`TMP`",t="`COMMENT`",r="[^\\u0020-\\u007e]",o="(?:[0-9]*\\.[0-9]+|[0-9]+)",i="(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)",a="direction\\s*:\\s*",s="['\"]?\\s*",l="(^|[^a-zA-Z])",u="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",c="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",d="(?:[_a-z0-9-]|"+r+"|"+c+")",p=o+"(?:\\s*"+i+"|"+("-?"+("(?:[_a-z]|"+r+"|"+c+")")+d+"*")+")?",f="((?:-?"+p+")|(?:inherit|auto))",h="((?:-?"+p+")|(?:inherit|auto)|"+("(?:calc\\((?:"+("(?:(?:\\(|\\)|\\t| )|"+("(?:-?"+o+"(?:\\s*"+i+")?)")+"|(?:\\+|\\-|\\*|\\/)){3,}")+")\\))")+")",m="(#?"+d+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",g="(?:[!#$%&*-~]|"+r+"|"+c+")*?",v="(?![a-zA-Z])",b="(?!("+d+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",y="(?!"+g+s+"\\))",x="(?="+g+s+"\\))",S="(\\s*(?:!important\\s*)?[;}])",w=/`TMP`/g,C=/`TMPLTR`/g,E=/`TMPRTL`/g,R=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),A=new RegExp("("+u+b+"[^;}]+;?)","gi"),P=new RegExp("("+u+"[^\\}]*?})","gi"),M=new RegExp("("+a+")ltr","gi"),I=new RegExp("("+a+")rtl","gi"),k=new RegExp(l+"(left)"+v+y+b,"gi"),D=new RegExp(l+"(right)"+v+y+b,"gi"),T=new RegExp(l+"(left)"+x,"gi"),O=new RegExp(l+"(right)"+x,"gi"),L=/(:dir\( *)ltr( *\))/g,q=/(:dir\( *)rtl( *\))/g,N=new RegExp(l+"(ltr)"+x,"gi"),_=new RegExp(l+"(rtl)"+x,"gi"),j=new RegExp(l+"([ns]?)e-resize","gi"),z=new RegExp(l+"([ns]?)w-resize","gi"),F=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+h+"(\\s+)"+h+"(\\s+)"+h+"(\\s+)"+h+S,"gi"),$=new RegExp("((?:-color|border-style)\\s*:\\s*)"+m+"(\\s+)"+m+"(\\s+)"+m+"(\\s+)"+m+S,"gi"),H=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+p+")","gi"),B=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),W=new RegExp("(border-radius\\s*:\\s*)"+f+"(?:(?:\\s+"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?)?(?:(?:(?:\\s*\\/\\s*)"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?(?:\\s+"+f+")?)?"+S,"gi"),V=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+f,"gi"),U=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+m,"gi"),G=new RegExp("(text-shadow\\s*:\\s*)"+m+"(\\s*)"+f,"gi"),Y=new RegExp("(text-shadow\\s*:\\s*)"+f,"gi"),K=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+f+"(\\s*\\))","gi"),X=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+f+"((?:\\s*,\\s*"+f+"){0,2}\\s*\\))","gi");function J(e,t,r){var n,o;return"%"===r.slice(-1)&&(-1!==(n=r.indexOf("."))?(o=r.length-n-2,r=(r=100-parseFloat(r)).toFixed(o)+"%"):r=100-parseFloat(r)+"%"),t+r}function Z(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function Q(e,t){var r=[].slice.call(arguments),n=r.slice(2,6).filter(function(e){return e}),o=r.slice(6,10).filter(function(e){return e}),i=r[10]||"";return t+(o.length?Z(n)+" / "+Z(o):Z(n))+i}function ee(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function te(e,t,r){return t+ee(r)}function re(e,t,r,n,o){return t+r+ee(n)+o}function ne(e,t,r,n,o){return t+r+n+ee(o)}return{transform:function(r,o){var i=new n(A,"`NOFLIP_SINGLE`"),a=new n(P,"`NOFLIP_CLASS`"),s=new n(R,t);return r=s.tokenize(a.tokenize(i.tokenize(r.replace("`","%60")))),o.transformDirInUrl&&(r=r.replace(L,"$1`TMPLTR`$2").replace(q,"$1`TMPRTL`$2").replace(N,"$1"+e).replace(_,"$1ltr").replace(w,"rtl").replace(C,"ltr").replace(E,"rtl")),o.transformEdgeInUrl&&(r=r.replace(T,"$1"+e).replace(O,"$1left").replace(w,"right")),r=r.replace(M,"$1"+e).replace(I,"$1ltr").replace(w,"rtl").replace(k,"$1"+e).replace(D,"$1left").replace(w,"right").replace(j,"$1$2"+e).replace(z,"$1$2e-resize").replace(w,"w-resize").replace(W,Q).replace(V,te).replace(U,ne).replace(G,ne).replace(Y,te).replace(K,re).replace(X,re).replace(F,"$1$2$3$8$5$6$7$4$9").replace($,"$1$2$3$8$5$6$7$4$9").replace(H,J).replace(B,J),r=i.detokenize(a.detokenize(s.detokenize(r)))}}},e.exports?t.transform=function(e,t,n){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof n&&(o.transformEdgeInUrl=n)),r.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=r)}(OP,OP.exports);var LP=Zt(OP.exports);function qP(e,t,r){switch(e.type){case on:case nn:case tn:return e.return=e.return||e.value;case rn:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach(function(e){e.type===tn&&(e.children=e.value)})}var n=Gn(Array.prototype.concat(e.children),qP);return gn(n)?e.return=e.value+"{"+n+"}":""}function NP(e,t,r,n){if(e.type===an||"@supports"===e.type||e.type===rn&&(!e.parent||"@media"===e.parent.type||e.parent.type===rn)){var o=LP.transform(qP(e));e.children=o?$n(o)[0].children:[],e.return=""}}function _P(e,t){let r=null;const n=new Map,o=new Set;function i(o){let s;if(void 0===t)s=n.get(o);else for(const[e,r]of n)if(t(e,o)){s=r;break}if(void 0!==s){if(!r?.(s[1],o))return s[0];i.remove(o)}const l=e(o);return n.set(o,[l,Date.now()]),a("CREATE",o,l),l}function a(e,t,r){for(const n of o)n({type:e,param:t,atom:r})}return i.unstable_listen=e=>(o.add(e),()=>{o.delete(e)}),i.getParams=()=>n.keys(),i.remove=e=>{if(void 0===t){if(!n.has(e))return;const[t]=n.get(e);n.delete(e),a("REMOVE",e,t)}else for(const[r,[o]]of n)if(t(r,e)){n.delete(r),a("REMOVE",r,o);break}},i.setShouldRemove=e=>{if(r=e,r)for(const[e,[t,o]]of n)r(o,e)&&(n.delete(e),a("REMOVE",e,t))},i}Object.defineProperty(NP,"name",{value:"stylisRTLPlugin"});const jP=_P(({options:e,...t})=>tR(XC(t,e)()),(e,t)=>e.fontSize===t.fontSize&&e.fontFamily===t.fontFamily&&e.fontStyle===t.fontStyle&&e.fontWeight===t.fontWeight&&e.options?.maxNbrLinesOfText===t.options?.maxNbrLinesOfText&&e.options?.allowLineBreaks===t.options?.allowLineBreaks);function zP(){return Boolean("undefined"!=typeof process&&process.env?.NODE_ENV&&!1)}function FP(e){const t=tR(()=>[]),r=tR(function(e){const[n,o,i]=e(t);i.has(r)&&(n.forEach(e),++o.n)});return r.effect=e,r.INTERNAL_onInit=e=>{const n=new Set;let o,i=0,a=!1,s=!1,l=!1;function u(){if(i)return;n.clear();let t=!0;const c=o=>{if(l)return e.get(o);if(o===r){const t=h(e,o);if(!CE(t)){if(!SE(o))throw new Error("no atom init");S(e,o,o.init)}return EE(t)}const i=v(e,o);try{return EE(i)}finally{C.d.set(o,i.n),d.get(o)?.t.add(r),t?n.add(o):d.has(o)&&(x(e,r),g(e),m(e))}};c.peek=e.get;const w=(n,...o)=>{const a=h(e,n);try{if(++i,n===r){if(!SE(n))throw new Error("atom not writable");const t=a.n,r=o[0];return S(e,n,r),x(e,n),void(t!==a.n&&(p.add(n),f.c?.(n),b(e,n)))}return y(e,n,...o)}finally{t||(g(e),m(e)),--i}};w.recurse=(t,...n)=>{if(l){if(zP())throw new Error("set.recurse is not allowed in cleanup")}else try{return a=!0,x(e,r),w(t,...n)}finally{g(e),a=!1,s&&(s=!1,u())}};try{o?.();const e=r.effect(c,w);if("function"!=typeof e)return;o=()=>{if(!i)try{return t=!0,l=!0,e()}finally{t=!1,l=!1,o=void 0}}}finally{t=!1,n.forEach(t=>{C.d.set(t,h(e,t).n)}),x(e,r),g(e)}}const c=ZE(e),d=c[1],p=c[3],f=IE(c[6]),h=c[11],m=c[12],g=c[13],v=c[14],b=c[15],y=c[16],x=c[17],S=c[20],w=function(e,t){let r=$P.get(e);r||(r=new Set,$P.set(e,r),t.f.add(function(){for(const e of r)r.delete(e),e()}));return r}(e,f),C=h(e,r);C.v=void 0,Object.assign(e.get(t),[n,C,d]),f.c.add(r,function(){p.delete(r)}),f.m.add(r,function(){w.add(u),o&&w.delete(o)}),f.u.add(r,function(){w.delete(u),o&&w.add(o)}),f.c.add(r,function(){a?s=!0:w.add(u)})},zP()&&(Object.defineProperty(t,"debugLabel",{get:()=>r.debugLabel?`${r.debugLabel}:ref`:void 0,configurable:!0,enumerable:!0}),t.debugPrivate=!0),r}const $P=new WeakMap;class HP{#c={on:new Map,once:new Map};#d=10;#p(e){this.listenerCount(e)>this.#d&&console.warn(`Possible EventEmitter memory leak detected. ${this.listenerCount(e)} listeners added to "${String(e)}".`)}#f(e,t,r){const n=this.#c[e].get(t)??new Set;n.add(r),this.#c[e].set(t,n),this.#p(t)}setMaxListeners(e){this.#d=e}on(e,t){this.#f("on",e,t)}once(e,t){this.#f("once",e,t)}off(e,t){this.#c.on.get(e)?.delete(t),this.#c.once.get(e)?.delete(t)}emit(e,...t){this.#c.on.get(e)?.forEach(e=>{e(...t)}),this.#c.once.get(e)?.forEach(e=>{e(...t)}),this.#c.once.delete(e)}listenerCount(e){return(this.#c.on.get(e)?.size??0)+(this.#c.once.get(e)?.size??0)}removeAllListeners(e){void 0===e?(this.#c.on.clear(),this.#c.once.clear()):(this.#c.on.delete(e),this.#c.once.delete(e))}}const BP=tR(()=>new HP);let WP=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),VP=function(e){return e.Select="Select",e.SelectMouseDown="SelectMouseDown",e.SelectMouseUp="SelectMouseUp",e.SelectMultiAdd="SelectMultiAdd",e.SelectMultiEnd="SelectMultiEnd",e.Reset="Reset",e.Clear="Clear",e.UpdatePageRows="UpdatePageRows",e}({}),UP=function(e){return e.A="ascending",e.D="descending",e}({}),GP=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const YP=[0,0],KP=e=>"number"==typeof e&&!Number.isNaN(+e),XP=e=>KP(e.qNum),JP=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e),ZP=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),QP=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},eM=(e,t,r)=>{const n={previousColor:(o=e.localPaletteColors)[(i=t)-(i>0?1:0)],nextColor:o[i+(i<o.length-1?1:0)]};var o,i;const a=((e,t)=>{const r=e.limits&&e.limits.concat().sort((e,t)=>e.value-t.value);return{lowerLimit:r&&t>0?r[t-1]:{value:0,gradient:!1},upperLimit:r&&r[t]?r[t]:{value:1,gradient:!1}}})(e,t),s=((e,t,r,n,o)=>{const{upperLimit:i,lowerLimit:a}=e,{previousColor:s,nextColor:l}=t,u=n===i.value?1:(n-a.value)/(i.value-a.value);return a.gradient&&i.gradient?n-a.value<i.value-n?{color:s.color,t:.5-u}:{color:l.color,t:u-.5}:a.gradient?{color:s.color,t:1-(.5+u/2)}:i.gradient?{color:l.color,t:u/2}:{color:o.localPaletteColors[r].color,t:n}})(a,n,t,r,e);return ie(e.localPaletteColors[t].color??"").blend(ie(s.color??""),s.t)},tM=(e,t,r)=>{const n=((e,t)=>{const{limits:r}=e;return r&&(e.limits=r.sort((e,t)=>e.value-t.value),e.limits=r.map(e=>({...e,value:ZP(t,e.value)}))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map((e,t)=>({color:QP(n,t,r)}))),n},rM=(e,t,r,n)=>{const o=tM(e,r,n),{localPaletteColors:i}=o;if(t<=0)return i[0].color;if(t>=1)return i[i.length-1].color;const a=((e,t)=>{let r="",n=0;const{limits:o,localPaletteColors:i}=e;for(let a=0;a<i.length;a++){const i=o&&o[a]?o[a].value:1;if(t>=n&&t<i){r=eM(e,a,t);break}n=i}return r})(o,t);return a},nM=(e,t)=>{const r=(e=>e.map(e=>e.value??e).sort((e,t)=>e-t))(e),n=r.some(e=>!KP(e));return 0===r.length||n?(e=>{const t=0===e?0:.5*e;return{min:e-t,max:e+t}})(t):1===r.length?((e,t)=>{const r=e[0]-t;if(0===r||!KP(r)){const e=0===t?.5:Math.abs(.5*t);return{min:t-e,max:t+e}}return r>0?{min:t-.5*Math.abs(t),max:e[0]+2*r}:{min:e[0]+2*r,max:t+.5*Math.abs(t)}})(r,t):((e,t)=>{let r=e[e.length-1]-e[0];return r=r>0?r:1,{min:Math.min(t,e[0])-r/2,max:Math.max(t,e[e.length-1])+r/2}})(r,t)},oM=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=nM(e,t),o=Math.abs(t);return{min:r??t-o,max:n??t+o}})(r,t),o=((e,t,r)=>{const{limits:n,paletteColors:o,localPaletteColors:i}=e.segments;if(!n||!KP(t))return 0;let a=r&&KP(r)?Math.min(r,t):0;const s=n.sort((e,t)=>e.value-t.value),l=o||i;for(let e=0;e<l.length;e++){if(e===l.length-1||t<s[e].value&&t>=a)return e;a=s[e].value}return 0})(e,t,n.min);return{limitRange:n,limitPaletteColorIndex:o}},iM=(e,t,r,n)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=oM(o,t),a=((e,t,r,n)=>{const{segments:o}=e;if(!o||!r)return;const{limits:i}=o;if(!i?.length||!((e,t)=>!(!e||0===e.length||!(e[t]?.gradient??e[t-1]?.gradient)))(i,r.limitPaletteColorIndex))return QP(o,r.limitPaletteColorIndex,n);const a=ZP(r.limitRange,t);return rM(o,a,r.limitRange,n)})(o,t,i,n),s=o.segments.paletteColors[i?.limitPaletteColorIndex||0].icon,{indicator:l}=e;let u=l?.position||"right";return"rtl"===r&&(u="right"===u?"left":"right"),{color:a,iconKey:s,position:u}},aM=(DC().palette.primary.light,"repeating-linear-gradient(-45deg, rgba(200,200,200,0.08), rgba(200,200,200,0.08) 2px, rgba(200,200,200,0.3) 2.5px, rgba(200,200,200,0.08) 3px, rgba(200,200,200,0.08) 5px)"),sM=4/3,lM="12px",uM="600",cM="Source Sans Pro, sans-serif",dM={height:"auto",fontSize:lM,lineHeight:"unset",padding:"4px",borderStyle:"solid",borderWidth:"0px 1px 1px 0px",userSelect:"none",outline:"none","&:focus-visible":{boxShadow:"0 0 0 2px #177fe6 inset, 0 0 0 3px #fff inset"},"&:focus:not(:focus-visible)":{boxShadow:"none"},"&:last-child":{borderRightWidth:"0px"}},pM={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:uM},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},fM=(e,t)=>"rtl"===e&&"center"!==t.resolvedImagePosition?.horizontal?t.resolvedImagePosition?.horizontal&&(e=>"flex-start"===e?"flex-end":"flex-start")(t.resolvedImagePosition?.horizontal):t.resolvedImagePosition?.horizontal,hM=(e,t)=>e.representation.type===WA.Image&&"fitHeight"===e.representation.imageSize?fM(t,e.representation):e.align,mM=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",gM=(e,t,r)=>{if(!t&&"rtl"===r){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},vM=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,bM=(e,t,r)=>"rtl"===e||t&&!r?"0px":"1px",yM=(e,t,r)=>"rtl"===e?t&&!r?"0px":"1px":"0px",xM=24,SM=Sc("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0})),wM=Sc(dp,{shouldForwardProp:e=>!["textAlign","direction","isPagination"].includes(e)})(({textAlign:e,theme:t,direction:r,isPagination:n})=>({textAlign:e,height:"auto",padding:t.spacing(.5,1),display:"flex",alignItems:"flex-end",justifySelf:e,alignSelf:"center",flexDirection:"rtl"===r?mM(e,n):void 0})),CM=Sc(dp,{shouldForwardProp:e=>"shouldShowMenuIcon"!==e&&"shouldShowLockIcon"!==e&&"alignment"!==e})(({shouldShowMenuIcon:e,shouldShowLockIcon:t,alignment:r})=>{const n=e?"24px":"";let o;switch(r){case"left":o={gridTemplateColumns:t?`20px 2fr ${n}`:`1fr ${n}`};break;case"center":{const r=e||t;o={gridTemplateColumns:r?"24px 2fr 24px":"1fr","& .sn-table-lock-icon":{gridColumn:1},"& .sn-table-head-label":{gridColumn:r?2:1},[`& .${sE}`]:{gridColumn:3}};break}case"right":o={gridTemplateColumns:t?`${n} 2fr 20px`:`${n} 1fr`,"& .sn-table-lock-icon":{gridColumn:t?3:"unset"},"& .sn-table-head-label":{gridColumn:e?2:"span 2"},[`& .${sE}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}}),EM=Sc(dp,{shouldForwardProp:e=>"rightAligned"!==e})(({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})),RM=Sc(dp,{shouldForwardProp:e=>"justifyContent"!==e})(({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"})),AM=Sc(Sd,{shouldForwardProp:e=>"hoverBackground"!==e&&"activeBackground"!==e&&"isActive"!==e&&"order"!==e})(({hoverBackground:e,activeBackground:t,isActive:r,order:n})=>({padding:"4px !important",width:"fit-content",height:"auto",background:r?t:void 0,"&:hover":{background:e},color:"inherit",order:n})),PM=tR(),MM=tR(0),IM=tR(0),kM=4/3,DM=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function TM(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const OM=(e,t)=>e?{borderBottomColor:OC.DARK_MODE_BORDER,borderRightColor:OC.DARK_MODE_BORDER,borderLeftColor:OC.DARK_MODE_BORDER,borderTopColor:OC.DARK_MODE_BORDER}:{borderLeftColor:OC.BORDER_MEDIUM,borderRightColor:OC.BORDER_MEDIUM,borderTopColor:OC.BORDER_HEAVY,borderBottomColor:t?OC.BORDER_HEAVY:OC.BORDER_LIGHT},LM=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*kM+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},qM=e=>e.components?.find(e=>"theme"===e.key),NM=(e,t,r,n=!1)=>{const o=t.getStyle("object",`straightTableV2.${e}`,"fontFamily"),i=t.getStyle("object",`straightTableV2.${e}`,"color"),a=t.getStyle("object",`straightTableV2.${e}`,"fontSize"),s={fontFamily:o,color:DM(r?.fontColor)?TM(OC.TEXT,t,r?.fontColor):i||OC.TEXT,fontSize:r?.fontSize&&`${r.fontSize}px`||a,padding:r&&"padding"in r?r.padding:void 0,...OM(t.background.isDark,n)};return Object.keys(s).forEach(e=>{const t=e;null==s[t]&&delete s[t]}),s};function _M(e,t,r){const n=qM(e)?.header,o=NM("header",t,n,r);return o.background=(e=>{if(void 0===e)return;const t=ie(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),o.hoverBackground=NC(o.background??OC.WHITE,mE),o.activeBackground=NC(o.background??OC.WHITE,gE),o}const jM=(e,t)=>{const r=e.toLowerCase().match(/<[^>]+>/g)??[];return r.forEach(e=>(e=>e in pM)(e)&&Object.assign(t,pM[e])),t};function zM(e,t,r){const n={};let o={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return t?.qValues?.forEach((e,t)=>{const i=e.qText,a=i&&jC(i);a&&(n[r[t]]=a),o=i?jM(i,o):o}),n.cellBackgroundColor&&!n.cellForegroundColor&&(n.cellForegroundColor=LC(n.cellBackgroundColor)),{...e,...n,color:n.cellForegroundColor||e.color,background:n.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}}var FM={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));const t=[];return e.split("&").forEach(e=>{if(!e)return;const r=e.indexOf("=");let n,o="",i=!1;-1===r?n=e:(n=e.slice(0,r),o=e.slice(r+1),i=!0),t.push(function(e,t,r){return{key:HM(e),value:HM(t.replace(/%2B/g,"shouldNotDecodePlus")),useEqualSign:r}}(n,o,i))}),t}},$M=FM;function HM(e){try{return decodeURIComponent(e)}catch{return e}}function BM(e){if(!(this instanceof BM))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");const t=function(e){const t={authorityAndPath:"",search:"",hash:""};let r=e.indexOf("#");-1!==r&&(t.hash=e.substr(r),e=e.substr(0,r));r=e.indexOf("?"),-1!==r&&(t.search=e.substr(r),e=e.substr(0,r));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:()=>$M.fromSearchString(t.search)}})}function WM(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/shouldNotDecodePlus/gi,"%2B")}BM.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},BM.encodeSearchParams=function(e){let t,r="";for(let n=0;n<e.length;n++)t=e[n],r+=0===n?"?":"&",r+=WM(t.key),t.value?r+=`=${WM(t.value)}`:r+=t.useEqualSign?"=":"";return r};var VM=BM;var UM,GM=class{_hasNext(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}constructor(e){this._input=e,this._pushback=null,this._temp=null,this._index=0,this._mark=0}pushback(e){this._pushback=e}index(){return this._index}hasNext(){return null!=this._pushback||this._hasNext()}next(){if(null!=this._pushback){const e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}nextHex(){const e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}peek(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}mark(){this._temp=this._pushback,this._mark=this._index}reset(){this._pushback=this._temp,this._index=this._mark}remainder(){let e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}},YM=class{decode(e){let t="";const r=new GM(e);let n;for(;r.hasNext();)n=this.decodeCharacter(r),t+=null!=n?n:r.next();return t}decodeCharacter(e){return e.next()}},KM=e=>e>=0&&e<=1114111,XM=e=>e.match(/[\s]/),JM=class extends YM{decodeCharacter(e){e.mark();const t=e.next();let r,n,o;if(null==t||"\\"!==t)return e.reset(),null;const 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(r=i,n=0;n<5&&(o=e.next(),null!=o&&!XM(o));n++){if("NaN"===parseInt(o,16)){e.pushback(o);break}r+=o}const a=parseInt(r,16);return KM(a)?String.fromCharCode(a):"�"}},ZM=class e{constructor(e,t){this._key=e,this._value=t}getKey(){return this._key}getValue(){return this._value}equals(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}static newInstanceIfNeeded(){let t,r,n=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],r=n.length):(r=arguments[1],t=arguments[2]),t&&n?(n.length>r&&(n=n.substr(0,r)),new e(n,t)):null}},QM=class e{setValue(e){this._nextMap=null,this._value=e}getNextNode(e){return this._nextMap?this._nextMap[e]:null}put(t,r,n){let o,i;if(t.length===r)return i=this._value,this.setValue(n),i;const a=t.charAt(r);return this._nextMap?(o=this._nextMap[a],o||(o=new e,this._nextMap[a]=o)):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,r+1,n)}get(e,t){if(e.length<=t)return this._value;const r=this.getNextNode(e.charAt(t));return r?r.get(e,t+1):null}getLongestMatch(e,t){if(e.length<=t)return ZM.newInstanceIfNeeded(e,this._value);const r=this.getNextNode(e.charAt(t));if(!r)return ZM.newInstanceIfNeeded(e,t,this._value);const n=r.getLongestMatch(e,t+1);return n||ZM.newInstanceIfNeeded(e,t,this._value)}},eI=class{constructor(){this.clear()}getLongestMatch(e){return this.root&&e?this.root.getLongestMatch(e,0):null}getMaxKeyLength(){return this.maxKeyLen}clear(){this.root=null,this.maxKeyLen=0,this.size=0}put(e,t){this.root||(this.root=new QM);const r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}},tI=(()=>{const e=[],t=[],r=new eI;let n,o,i;for(n in e["""]="34",e["&"]="38",e["<"]="60",e[">"]="62",e[" "]="160",e["¡"]="161",e["¢"]="162",e["£"]="163",e["¤"]="164",e["¥"]="165",e["¦"]="166",e["§"]="167",e["¨"]="168",e["©"]="169",e["ª"]="170",e["«"]="171",e["¬"]="172",e["­"]="173",e["®"]="174",e["¯"]="175",e["°"]="176",e["±"]="177",e["²"]="178",e["³"]="179",e["´"]="180",e["µ"]="181",e["¶"]="182",e["·"]="183",e["¸"]="184",e["¹"]="185",e["º"]="186",e["»"]="187",e["¼"]="188",e["½"]="189",e["¾"]="190",e["¿"]="191",e["À"]="192",e["Á"]="193",e["Â"]="194",e["Ã"]="195",e["Ä"]="196",e["Å"]="197",e["Æ"]="198",e["Ç"]="199",e["È"]="200",e["É"]="201",e["Ê"]="202",e["Ë"]="203",e["Ì"]="204",e["Í"]="205",e["Î"]="206",e["Ï"]="207",e["Ð"]="208",e["Ñ"]="209",e["Ò"]="210",e["Ó"]="211",e["Ô"]="212",e["Õ"]="213",e["Ö"]="214",e["×"]="215",e["Ø"]="216",e["Ù"]="217",e["Ú"]="218",e["Û"]="219",e["Ü"]="220",e["Ý"]="221",e["Þ"]="222",e["ß"]="223",e["à"]="224",e["á"]="225",e["â"]="226",e["ã"]="227",e["ä"]="228",e["å"]="229",e["æ"]="230",e["ç"]="231",e["è"]="232",e["é"]="233",e["ê"]="234",e["ë"]="235",e["ì"]="236",e["í"]="237",e["î"]="238",e["ï"]="239",e["ð"]="240",e["ñ"]="241",e["ò"]="242",e["ó"]="243",e["ô"]="244",e["õ"]="245",e["ö"]="246",e["÷"]="247",e["ø"]="248",e["ù"]="249",e["ú"]="250",e["û"]="251",e["ü"]="252",e["ý"]="253",e["þ"]="254",e["ÿ"]="255",e["&OElig"]="338",e["&oelig"]="339",e["&Scaron"]="352",e["&scaron"]="353",e["&Yuml"]="376",e["&fnof"]="402",e["&circ"]="710",e["&tilde"]="732",e["&Alpha"]="913",e["&Beta"]="914",e["&Gamma"]="915",e["&Delta"]="916",e["&Epsilon"]="917",e["&Zeta"]="918",e["&Eta"]="919",e["&Theta"]="920",e["&Iota"]="921",e["&Kappa"]="922",e["&Lambda"]="923",e["&Mu"]="924",e["&Nu"]="925",e["&Xi"]="926",e["&Omicron"]="927",e["&Pi"]="928",e["&Rho"]="929",e["&Sigma"]="931",e["&Tau"]="932",e["&Upsilon"]="933",e["&Phi"]="934",e["&Chi"]="935",e["&Psi"]="936",e["&Omega"]="937",e["&alpha"]="945",e["&beta"]="946",e["&gamma"]="947",e["&delta"]="948",e["&epsilon"]="949",e["&zeta"]="950",e["&eta"]="951",e["&theta"]="952",e["&iota"]="953",e["&kappa"]="954",e["&lambda"]="955",e["&mu"]="956",e["&nu"]="957",e["&xi"]="958",e["&omicron"]="959",e["&pi"]="960",e["&rho"]="961",e["&sigmaf"]="962",e["&sigma"]="963",e["&tau"]="964",e["&upsilon"]="965",e["&phi"]="966",e["&chi"]="967",e["&psi"]="968",e["&omega"]="969",e["&thetasym"]="977",e["&upsih"]="978",e["&piv"]="982",e["&ensp"]="8194",e["&emsp"]="8195",e["&thinsp"]="8201",e["&zwnj"]="8204",e["&zwj"]="8205",e["&lrm"]="8206",e["&rlm"]="8207",e["&ndash"]="8211",e["&mdash"]="8212",e["&lsquo"]="8216",e["&rsquo"]="8217",e["&sbquo"]="8218",e["&ldquo"]="8220",e["&rdquo"]="8221",e["&bdquo"]="8222",e["&dagger"]="8224",e["&Dagger"]="8225",e["&bull"]="8226",e["&hellip"]="8230",e["&permil"]="8240",e["&prime"]="8242",e["&Prime"]="8243",e["&lsaquo"]="8249",e["&rsaquo"]="8250",e["&oline"]="8254",e["&frasl"]="8260",e["&euro"]="8364",e["&image"]="8365",e["&weierp"]="8472",e["&real"]="8476",e["&trade"]="8482",e["&alefsym"]="8501",e["&larr"]="8592",e["&uarr"]="8593",e["&rarr"]="8594",e["&darr"]="8595",e["&harr"]="8596",e["&crarr"]="8629",e["&lArr"]="8656",e["&uArr"]="8657",e["&rArr"]="8658",e["&dArr"]="8659",e["&hArr"]="8660",e["&forall"]="8704",e["&part"]="8706",e["&exist"]="8707",e["&empty"]="8709",e["&nabla"]="8711",e["&isin"]="8712",e["¬in"]="8713",e["&ni"]="8715",e["&prod"]="8719",e["&sum"]="8721",e["&minus"]="8722",e["&lowast"]="8727",e["&radic"]="8730",e["&prop"]="8733",e["&infin"]="8734",e["&ang"]="8736",e["&and"]="8743",e["&or"]="8744",e["&cap"]="8745",e["&cup"]="8746",e["&int"]="8747",e["&there4"]="8756",e["&sim"]="8764",e["&cong"]="8773",e["&asymp"]="8776",e["&ne"]="8800",e["&equiv"]="8801",e["&le"]="8804",e["&ge"]="8805",e["&sub"]="8834",e["&sup"]="8835",e["&nsub"]="8836",e["&sube"]="8838",e["&supe"]="8839",e["&oplus"]="8853",e["&otimes"]="8855",e["&perp"]="8869",e["&sdot"]="8901",e["&lceil"]="8968",e["&rceil"]="8969",e["&lfloor"]="8970",e["&rfloor"]="8971",e["&lang"]="9001",e["&rang"]="9002",e["&loz"]="9674",e["&spades"]="9824",e["&clubs"]="9827",e["&hearts"]="9829",e["&diams"]="9830",e)"function"!=typeof e[n]&&e.hasOwnProperty(n)&&(t[e[n]]=n);for(o in t)"function"!=typeof t[o]&&t.hasOwnProperty(o)&&(i=t[o].toLowerCase().substr(1),r.put(i,String.fromCharCode(o)));return r})(),rI=class extends YM{decodeCharacter(e){let t;e.mark();const r=e.next();if(null==r||"&"!==r)return e.reset(),null;const n=e.next();if(null==n)return e.reset(),null;if("#"===n){if(t=this._getNumericEntity(e),null!=t)return t}else if(n.match(/[A-Za-z]/)&&(e.pushback(n),t=this._getNamedEntity(e),null!=t))return t;return e.reset(),null}_getNamedEntity(e){let t,r,n,o="";for(t=Math.min(e.remainder().length,tI.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();const i=tI.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,r=0;r<t;r++)e.next();return e.peek(";")&&e.next(),i.getValue()}_getNumericEntity(e){const t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}_parseHex(e){let t,r="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}r+=t,e.next()}const n=parseInt(r,16);return!Number.isNaN(+n)&&KM(n)?String.fromCharCode(n):null}_parseNumber(e){let t,r="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}r+=t,e.next()}const n=parseInt(r,10);return!Number.isNaN(+n)&&KM(n)?String.fromCharCode(n):null}},nI=class extends YM{decodeCharacter(e){e.mark();const t=e.next();let r,n,o,i;if(null==t)return e.reset(),null;if("%"!==t)return e.reset(),null;for(r="",n=0;n<2;n++)o=e.nextHex(),null!=o&&(r+=o);return 2===r.length&&(i=parseInt(r,16),KM(i))?String.fromCharCode(i):(e.reset(),null)}},oI=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,iI=5e6,aI=5e5,sI=(e,t)=>{const{maxByteSizeSvg:r=aI,maxByteSizeImage:n=iI}=t??{},{mimeType:o,encoding:i,data:a}=(e=>{const[,t,r,n]=oI.exec(e.trim())??[];return{encoding:r,data:n,mimeType:t?.toLocaleLowerCase()}})(e);if(!a)return!0;const s=((e,t,r)=>{const n={type:e};if(t?.includes(";base64"))try{return new Blob([atob(r)],n).size}catch{return new Blob([r],n).size}return"image/svg+xml"===e?new Blob([r],n).size:0})(o,i,a);return"image/svg+xml"===o?s<=r:s<=n};"undefined"!=typeof document&&(UM=document.createElement("div"));var lI=Array.prototype.indexOf,uI=[",",".","_"," "],cI=[",",".","-","_"," "],dI={width:["%"],height:["%"]},pI={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},fI={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":pI.image,"background-color":pI.color,"border-color":pI.color,"border-image":pI.image,color:pI.color,icon:pI.image,"list-style-image":pI.image,"outline-color":pI.color},hI={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function mI(e,t,r){let n;if(t){if(lI)return lI.call(t,e,r);for(n=t.length,r=r?r<0?Math.max(0,n+r):r:0;r<n;r++)if(r in t&&t[r]===e)return r}return-1}function gI(e){if(null==e)return"";let t="";const r=document.createTextNode(e);return UM.appendChild(r),t=UM.innerHTML,UM.removeChild(r),t}function vI(e,t,r){let n,o,i,a,s,l,u,c,d;for(e=yI(e).toLowerCase(),t=yI(t),i=0;i<hI.attr_name.length;i++)if(e.match(hI.attr_name[i]))throw new Error(`Unsafe attribute name used: ${e}`);for(i=0;i<hI.attr_val.length;i++)if(t.toLowerCase().match(hI.attr_val[i]))throw new Error(`Unsafe attribute value used: ${t}`);if(n=dI[e],n||(n=cI),o="",!r){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=s}o+='="'}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&mI(u,n)<0?(d=c.toString(16),o+=`&#x${d};`):o+=u;return r||(o+='"'),o}function bI(e,t,r){let n,o,i,a,s,l,u,c,d,p;if(e=yI(e).toLowerCase(),t=yI(t),mI(e,hI.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(n=0;n<hI.css_val.length;n++)if(t.toLowerCase().indexOf(hI.css_val[n])>=0)throw new Error(`Unsafe property value used: ${t}`);if(o=fI[e],o||(o=pI.default),i="",!r){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=s}i+=": "}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&mI(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+=`\\${p}${d}`):i+=u;return i}function yI(e,t){let r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;const s=[new rI,new nI,new JM];for(;!a;){n=r;for(let e=0;e<s.length;e++)i=s[e].decode(r),i!==r&&(o++,r=i);n!==r||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return r}var xI=[];for(let e=0;e<255;e++)xI[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);var SI={html:e=>gI(e.unsafe),css(e){let t,r=[];const n=[],o={};let i="";for(t in e.map?r=e.map:r[e.name]=e.unsafe,r)"function"!=typeof r[t]&&r.hasOwnProperty(t)&&(n[t]=bI(t,r[t],!0),i+=bI(t,r[t],!0),o[t]=n[t]);return e.map?o:i},attr(e){let t=[];const r=[],n={};let o="";e.map?t=e.map:t[e.name]=e.unsafe;for(const e in t)"function"!=typeof t[e]&&t.hasOwnProperty(e)&&(r[e]=vI(e,t[e],!0),o+=vI(e,t[e],!0),n[e]=r[e]);return e.map?n:o}};function wI(e,t){throw new Error(t)}var CI={canonicalize:yI,encode:function(){const e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"==typeof arguments[0]?function(){let e,t,r;const n=arguments[0]||{};let o=1;const i=arguments.length;for(;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(r=e[t],n===r)continue;void 0!==r&&(n[t]=r)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?SI.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&wI(this,"Invalid parameter type"),SI.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&wI(this,"Invalid parameter type"),SI.attr(e)):void wI(this,"Invalid parameter type")},encodeForAttr:vI,encodeForAttr2:function(e){return vI("nonsens",e,!0)},encodeForCSS:bI,encodeForHref:function(e){yI(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new VM(e),r=VM.encodeAuthorityAndPath(t.authorityAndPath),n=t.searchParams;e=r+VM.encodeSearchParams(n)+t.hash;const o=decodeURI(e).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){let r,n,o,i,a,s;for(t||(t=uI),s="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),mI(o,t)>=0||null==xI[i]?s+=o:(n=i.toString(16),i<256?(a="00".substr(n.length),s+=`\\x${a}${n.toUpperCase()}`):(a="0000".substr(n.length),s+=`\\u${a}${n.toUpperCase()}`));return s},encodeForHTML:gI,encodeForURL:function(e,t){let r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=yI(t).toLowerCase():wI(this,"Illegal Attribute Name Specified"),r+='="'),r+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),r+=t?'"':"",r},isSafeDataURL:sI,validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch{return!1}}(e))return!1;const t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;const r=function(e){let t=e,r="";for(;t.length>0;)if(t.startsWith("../")||t.startsWith("./"))t=t.replace(/^\.\.?\//,"");else if(t.startsWith("/./"))t=t.replace(/^\/\.\//,"/");else if("/."===t)t="/";else if(t.startsWith("/../")){t=t.replace(/^\/\.\.\//,"/");const e=r.lastIndexOf("/");-1!==e&&(r=r.slice(0,e))}else if("/.."===t){t="/";const e=r.lastIndexOf("/");-1!==e&&(r=r.slice(0,e))}else if("."===t||".."===t)t="";else{const e=t.match(/^\/?[^/]*/),n=e?e[0]:"";t=t.slice(n.length),r+=n}return r}(t);return""!==r&&"/"!==r&&r}};const EI=(e,t)=>t.qAttrExps?.qValues?.[e],RI=(e,t)=>{switch(e){case"topLeft":default:return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"center"};case"topRight":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-end"}}},AI=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:o,imageBox:i,direction:a})=>!n||t&&(t.toLowerCase().includes("javascript:")||!CI.isSafeDataURL(t))?{type:WA.Text,url:void 0,text:e,labelStructure:o}:{type:WA.Image,url:t||"",text:e,imageSize:r,resolvedImagePosition:RI(n,a),labelStructure:o,imageBox:i},PI=(e,t,r,n)=>{if(!e.qMiniChart||!t?.miniChart||!r)return{type:WA.Text,text:n};const{minY:o,maxY:i}=((e,t,r)=>{const n="global"===t.yAxis?.scale,o="zeroCenter"===t.yAxis?.position,i=n?r.qYMin:e.qMiniChart.qMin,a=n?r.qYMax:e.qMiniChart.qMax;if(o){const e=Math.max(Math.abs(i),Math.abs(a));return{minY:-e,maxY:e}}return(e=>"zeroBaseline"===e.yAxis?.position||"bars"===e.type&&"auto"===e.yAxis?.position)(t)?{minY:Math.min(0,i),maxY:Math.max(0,a)}:{minY:i,maxY:a}})(e,t.miniChart,r),a={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:o,maxY:i,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:WA.MiniChart,text:n,miniChart:a}},MI=(e,t,r)=>{const n=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,o=n?.qValues?.[e];if(o){const e=Number.isNaN(+o.qNum)?void 0:`${o.qNum}`;return o.qText||e}return r?.urlPosition===VA.Attribute?void 0:r?.urlLabel},II=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:WA.Link,url:CI.encodeForHref(r),text:t,labelStructure:e}}catch{return{type:WA.Text,url:void 0,text:t,labelStructure:e}}},kI=({cell:e,representationProperties:t,attrExprInfoIndex:r,env:n,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:s=e=>e.qText,direction:l,enabledFeatures:u})=>{const c=UA(t),d=s(e);return c===WA.Image&&u[WA.Image]&&!n.anything.sense?.isUnsupportedFeature?.("tableImages")?((e,t,r,n,o,i)=>{const{imageSize:a,imagePosition:s,imageSetting:l,imageLabel:u,imageBox:c}=t??{};if("url"===l){const t=EI(r.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),AI({text:n,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}if("label"===l){const t=i?i.originalValue:n;if(-1===r.imageLabel)return AI({text:u||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o});const l=EI(r.imageLabel??-1,e)?.qText??n;return AI({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}return{type:WA.Text,url:void 0,labelStructure:i,text:n}})(e,t,r,d,l,a):c===WA.Link?((e,t,r,n,o)=>{const{urlPosition:i}=t??{};if(i===VA.Attribute){const i=MI(r.url??-1,e,t);return II({labelStructure:n,text:o||i||"",url:i})}if(i===VA.Dimension){const i=MI(r.urlLabel??-1,e,t)||o;return n&&(n.maskedValue=i),II({text:i,labelStructure:n,url:n?.originalValue??o})}return{type:WA.Text,url:void 0,text:o,labelStructure:n}})(e,t,r,a,d):c===WA.Indicator&&u[WA.Indicator]&&!n.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,r)=>{const{indicator:n}=e??{};return{type:WA.Indicator,url:void 0,text:r,indicator:{applySegmentColors:n?.applySegmentColors,position:n?.position,showTextValues:n?.showTextValues},indicatorConditionalColoring:t}})(t,o,d):c===WA.MiniChart&&u[WA.MiniChart]&&!n.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?PI(e,t,i,d):{type:WA.Text,url:void 0,text:d,labelStructure:a}};import.meta.env&&import.meta.env.MODE;!function(e=()=>{try{return window.localStorage}catch(e){return void("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&"undefined"!=typeof window&&console.warn(e))}},t){var r;let n,o;const i={getItem:(r,i)=>{var a,s;const l=e=>{if(n!==(e=e||"")){try{o=JSON.parse(e,null==t?void 0:t.reviver)}catch(e){return i}n=e}return o},u=null!=(s=null==(a=e())?void 0:a.getItem(r))?s:null;return(e=>"function"==typeof(null==e?void 0:e.then))(u)?u.then(l):l(u)},setItem:(t,r)=>{var n;return null==(n=e())?void 0:n.setItem(t,JSON.stringify(r,void 0))},removeItem:t=>{var r;return null==(r=e())?void 0:r.removeItem(t)}};let a;try{a=null==(r=e())?void 0:r.subscribe}catch(e){}var s;!a&&"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(a=(t,r)=>{if(!(e()instanceof window.Storage))return()=>{};const n=n=>{n.storageArea===e()&&n.key===t&&r(n.newValue)};return window.addEventListener("storage",n),()=>{window.removeEventListener("storage",n)}}),a&&(i.subscribe=(s=a,(e,t,r)=>s(e,e=>{let n;try{n=JSON.parse(e||"")}catch(e){n=r}t(n)})))}();const DI=(e,t,r)=>(t.has(r)?t:t.set(r,e())).get(r),TI=new WeakMap,OI=()=>{};function LI(e,t=OI){return((e,t,r)=>{const n=DI(()=>new WeakMap,TI,t);return DI(e,n,r)})(()=>{const r=new WeakMap,n=new WeakMap,o=tR(0),i=tR([]);i.INTERNAL_onInit=e=>{e.set(i,[()=>e.set(o,e=>e+1)])},"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&(o.debugPrivate=!0,i.debugPrivate=!0);const a=tR(s=>{let l;s(o);try{l=s(a)}catch(e){}const u=s(e);if(!(e=>"function"==typeof(null==e?void 0:e.then))(u))return{v:u};if(u!==(null==l?void 0:l.p)&&u.then(e=>{n.set(u,e);const[t]=s(i);t()},e=>{r.set(u,e);const[t]=s(i);t()}),r.has(u))throw r.get(u);return n.has(u)?{p:u,v:n.get(u)}:l&&"v"in l?{p:u,f:t(l.v),v:l.v}:{p:u,f:t()}});return a.init=void 0,"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&(a.debugPrivate=!0),tR(e=>{const t=e(a);return"f"in t?t.f:t.v},(t,r,...n)=>r(e,...n))},e,t)}const qI=tR(e=>{const t=e(WR),r=e(PR);return e(MR),{qTop:0,qHeight:0,rowPartialHeight:r?.content?.rowPartialHeight??0,visibleTop:r?.content?.visibleTop??t?.visibleTop,visibleHeight:r?.content?.visibleHeight??t?.visibleHeight,scrollLeft:r?.content?.scrollLeft??t?.scrollLeft??0,scrollTopRatio:r?.content?.scrollTopRatio??t?.scrollTopRatio,rowsPerPage:r?.content?.rowsPerPage??t?.rowsPerPage,page:r?.content?.page??t?.page,estimatedRowHeight:r?.content?.estimatedRowHeight??0}}),NI=e=>-1===e?{}:e.qAttrExprInfo.reduce((e,{id:t},r)=>(e[t]=r,e),{}),_I=({cId:e})=>e??_A(),jI=1e4;function zI(e,t){return[...t].reverse().find(t=>t*e<=jI)||Math.floor(jI/e)}function FI(e,t){if(t?.skipTotals)return{atTop:!1,atBottom:!1};const r=e.qHyperCube.qDimensionInfo.length>0,n=e.qHyperCube.qMeasureInfo.length>0,o=e.qHyperCube.qGrandTotalRow.length>0,i=e.totals?.show,a=e.totals?.position;if(o&&(r&&n||!i&&!r)){if(i||"top"===a)return{atTop:!0,atBottom:!1};if("bottom"===a)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function $I(e,t,r,n){return t?0===r?e.totals?.label??"":"":e.qHyperCube.qGrandTotalRow.at(n)?.qText??""}function HI(e,t){const r=e.qHyperCube.qGrandTotalRow.at(t);return KP(r?.qNum)}function BI(e,t,r,n,o){return e&&!e.auto?n&&"rtl"===o&&"center"!==e.align?{headTextAlign:"right"===e.align?"left":"right",totalsTextAlign:"right"===e.align?"left":"right",bodyTextAlign:"right"===e.align?"left":"right"}:{headTextAlign:e.align,totalsTextAlign:e.align,bodyTextAlign:e.align}:n||"rtl"!==o?{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:r?"left":"right",bodyTextAlign:"auto"}:{headTextAlign:"N"===t||void 0===t?"left":"right",totalsTextAlign:r?"right":"left",bodyTextAlign:"auto"}}const WI=(e,t,r,n)=>"auto"!==t?t:n||"rtl"!==r?e?"right":"left":e?"left":"right",VI=(e,t)=>{if(!e)return;const{background:r,foreground:n}=e,o=ie(r??""),i=ie(n??""),a=t?"getRGB":"getRGBA",s=o.isInvalid()?void 0:o[a](),l=s?NC(s,mE):void 0,u=s?NC(s,gE):void 0;return i.isInvalid()&&void 0!==s?{background:s,color:LC(s),headerMenuHoverBackground:l,headerMenuActiveBackground:u}:{background:s,color:i.isInvalid()?void 0:i.getRGBA(),headerMenuHoverBackground:l,headerMenuActiveBackground:u}};const UI=(e,t,r,n=()=>!1)=>{const{qHyperCube:{qColumnOrder:o,qDimensionInfo:i,qMeasureInfo:a}}=e,s=i.length+a.length,l=((e,t,r)=>{const n=t.length,{visible:o,hiddenDim:i,hiddenMea:a}=e.reduce((e,o)=>{const i=o<n,{qError:a}=i?t[o]:r[o-n];return 7005===a?.qErrorCode?i?e.hiddenDim.push(o):e.hiddenMea.push(o):e.visible.push(o),e},{visible:[],hiddenDim:[],hiddenMea:[]});return o.map((e,t)=>{const r=e<n,o=(r?i:a).filter(t=>t<e).length,s=e-o;return{colIdx:e,pageColIdx:t,visibleDimInfoIdx:r?s:void 0,visibleMeasureInfoIdx:r?void 0:s-n}})})(o.length===s?o:Array.from(Array(s).keys()),i,a);return l.map(o=>function(e,t,r,n,o=()=>!1){const{qDimensionInfo:i,qMeasureInfo:a,qEffectiveInterColumnSortOrder:s}=e.qHyperCube,{colIdx:l,pageColIdx:u,visibleDimInfoIdx:c,visibleMeasureInfoIdx:d}=t,p=i.length,f=l<p,h=f?i[l]:a[l-p],m=f&&i[l].qGrouping===vE.Cyclic,g=l===s[0];let v,b,y="",x=!1,S=-1,w=0,C=[];const{representation:E,conditionalColoring:R}=h;if(f&&void 0!==c){const e=h;y=e.qGroupFieldDefs[e.qGroupPos],w=e.qGroupPos,C=e.qGroupFallbackTitles,x=e.qLocked??!1,S=c,({qDimensionType:v}=e)}else({qMiniChart:b}=h);const{qFallbackTitle:A,textAlign:P,qAttrExprInfo:M,qSortIndicator:I,qReverseSort:k,qApprMaxGlyphCount:D,columnWidth:T,qLibraryId:O,headerColor:L}=h;return{isDim:f,isCyclic:m,isLocked:x,fieldId:y,colIdx:l,qLibraryId:O,pageColIdx:u,qApprMaxGlyphCount:D,qReverseSort:k,columnWidth:T??{type:hE.Auto},selectionColIdx:S,isActivelySorted:g,id:_I(h),label:A??"",groupDimensionPos:w,groupDimensionLabels:C,qAttrExprInfoIDs:M.map(e=>e.id),qAttrExprInfoIndex:NI(h),sortDirection:I&&"N"!==I?I:"A",totalInfo:$I(e,f,u,d??-1),...!f&&{isTotalNumeric:HI(e,d??-1)},...BI(P,v,f,r,n),representation:E,conditionalColoring:f?void 0:R,qMiniChart:b,headerColor:o("VNA-626-TABLE_HEADER_COLOR_BY_EXPRESSION")?VI(L,r):void 0}}(e,o,t,r,n))},GI=(e,t,r)=>(e?void 0:r.nullValueRepresentation?.text)??t.qText??"-",YI=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,KI={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},XI=tR(e=>{const t=e(JI),r=e(wR),n=e(qI),o=r.qHyperCube.qSize.qcy,i=n.visibleHeight??t.rowsPerPage,a=n.visibleTop??t.page*i,s=n.visibleHeight??Math.min(i,o-a),l=r.qHyperCube.qSize.qcx;return t.page>0&&a>=o?{...t,page:0}:s*l>jI?{...t,rowsPerPage:zI(l,t.rowsPerPageOptions),page:0}:t}),JI=tR(KI),ZI=tR(e=>{const t=e(wR),r=e(WR),n=e(qI);return FR(t,r)?{page:n.page||KI.page,rowsPerPage:n.rowsPerPage||KI.rowsPerPage,rowsPerPageOptions:KI.rowsPerPageOptions}:e(XI)},(e,t,r)=>{t(JI,e=>({...e,...r}))}),QI=!0,ek=tR(async e=>{const t=e(wR),r=e(WR),n=e(HR),{page:o,rowsPerPage:i}=e(ZI),a=e(qI),s=e(KR),l=e(yR),u=e(ER),c=e(xR),d=t.qHyperCube.qSize.qcx,p=t.qHyperCube.qSize.qcy,f=Math.ceil(p/i),h=a.visibleTop??o*i,m=a.visibleHeight??Math.min(i,p-h),g=p>10,v=FI(t,r),b=UI(t,QI,n,c),y=await(async(e,t,r)=>{if(t.snapshotData)return t.qHyperCube.qDataPages;const n=t.qHyperCube.qDataPages.at(0),o=n?.qArea;return n&&o?.qLeft===r.qLeft&&o.qTop===r.qTop&&o.qWidth===r.qWidth&&o.qHeight>=r.qHeight?[{...n,qMatrix:n.qMatrix.slice(0,r.qHeight)}]:e&&"getHyperCubeData"in e?e.getHyperCubeData("/qHyperCubeDef",[r]):[]})(s,t,{qLeft:0,qTop:h,qHeight:m,qWidth:d});u||(a.qTop=h,a.qHeight=m,a.rowsPerPage=i,a.page=o);const x=y.at(0)?.qMatrix.map((e,r)=>{const o=[];return b.forEach((i,a)=>{const s=e[a],u=GI(i.isDim,s,t),c=!i.isDim&&s.qIsNull,d=c?JP(u):XP(s);o[a]={id:_A(),...s,align:WI(d,i.bodyTextAlign,n,QI),rowIdx:r+h,colIdx:i.colIdx,pageRowIdx:r,pageColIdx:a,selectionColIdx:i.selectionColIdx,isSelectable:i.isDim&&!i.isLocked,isLastRow:r===m-1,isNumeric:d,isNull:(!c||!d)&&YI(s,i.isDim),representation:kI({cell:s,representationProperties:i.representation,attrExprInfoIndex:i.qAttrExprInfoIndex,env:l,conditionalColoring:i.conditionalColoring,miniChartOnMeasure:i.qMiniChart,getText:()=>c?u:s.qText,direction:n,enabledFeatures:{[WA.Image]:!0,[WA.Indicator]:!0,[WA.MiniChart]:!0}})}}),o})??[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:v,columns:b,rows:x}}),tk=LI(ek,e=>e),rk=25e4,nk=tR(e=>{const t=e(wR),r=e(WR),n=e(LR),o=e(HR),i=e(xR),a=UI(t,false,o,i),s=FI(t,r),l=t.qHyperCube.qSize.qcy,u=Math.min(rk,l),c=l>rk&&!!n.active;return{totalsPosition:s,columns:a,rows:[],totalRowCount:l,totalColumnCount:t.qHyperCube.qSize.qcx,totalPages:Math.ceil(l/u),paginationNeeded:c}}),ok={totalsPosition:{atTop:!1,atBottom:!1},columns:[],rows:[],totalRowCount:0,totalColumnCount:0,totalPages:0,paginationNeeded:!1},ik=tR(),ak=tR(e=>{const t=e(UR),r=e(ik);return r||(t?e(tk)??ok:e(nk))}),sk=tR(e=>e(ak).totalsPosition),lk=tR(e=>e(ak).columns),uk=tR(e=>e(lk).length),ck=tR(e=>e(ak).rows),dk=tR(e=>e(ak).totalRowCount),pk=tR(e=>e(ak).totalColumnCount),fk=tR(e=>e(ak).paginationNeeded),hk=tR(e=>{const t=e(tA),r=e(oA),n=e(wR),o=e(sk),i=e(ck),a=o.atTop,s=function(e,t,r,n){const o=qM(e)?.content,i=NM("content",t,o);i.background=t.background.color;const a=LM(i.fontSize,r,n),s=o?.hoverColor,l=o?.hoverFontColor,u=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),c=t.getStyle("object","","straightTableV2.content.hover.color"),d=DM(l)||!!c,p=DM(s)||!!u,f=d||p;let h;h=DM(s)?TM(OC.HOVER,t,s):u||(d?"":OC.HOVER);const m=f?TM(LC(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(n,r,i.length,t),l=_M(n,r,!a),u=function(e,t,r){const n=qM(e)?.content,o=NM("content",t,n),{borderBottomColor:i,borderTopColor:a,background:s}=_M(e,t,r);return{...o,borderBottomColor:i,background:s,borderTopColor:a}}(n,r,a);return{body:s,head:l,totals:u}}),mk=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},gk=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=mk(e,t?.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},vk=(e,t,r,n=OC.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=gk(e,t,r);return BC(i,o,a,n)??n},bk=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return lM}},yk=e=>e?.some(e=>"italic"===e)?"italic":"normal",xk=(e,t)=>void 0===e?t:e.some(e=>"bold"===e)?uM:"normal",Sk=e=>!1===e?1:3,wk=e=>parseInt(e??dM.fontSize,10)*sM,Ck=e=>e?.some(e=>"underline"===e)?"underline":"none",Ek=tR(e=>{const t=e(WR),r=e(UR),n=e(oA),o=e(wR),i=e(hk),{header:a,dimensionValues:s,measureValues:l,totalValues:u,nullValues:c,grid:d,content:p}=qM(o)??{},f=r?OC.WHITE:OC.TRANSPARENT,h=vk(n,a,"object.straightTableV2.dimension.label.name.backgroundColor",f),m=t?.maxLineCount??p?.rowHeight??n.getStyle("object.straightTableV2","grid","lineClamp"),g={header:{fontFamily:a?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.name","fontFamily")??i.head.fontFamily??cM,fontSize:bk(a?.fontSize??n.getStyle("object.straightTableV2.dimension","label.name","fontSize")??i.head.fontSize),fontStyle:yk(a?.fontStyle),fontWeight:xk(a?.fontStyle,uM),textDecoration:Ck(a?.fontStyle),color:mk(n,a?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.name","color")??i.head.color??OC.TEXT,background:h},headerMenuHoverBackground:NC(h,mE),headerMenuActiveBackground:NC(h,gE),dimension:{values:{fontFamily:s?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??i.body.fontFamily??cM,fontSize:bk(s?.fontSize??p?.fontSize??n.getStyle("object.straightTableV2.dimension","label.value","fontSize")??i.body.fontSize),fontStyle:yk(s?.fontStyle),fontWeight:xk(s?.fontStyle,"normal"),textDecoration:Ck(s?.fontStyle),color:mk(n,s?.fontColor)??mk(n,p?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.value","color")??i.body.color??OC.TEXT,background:gk(n,s,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??i.body.background??OC.TRANSPARENT}},measure:{values:{fontFamily:l?.fontFamily??n.getStyle("object.straightTableV2.measure","label.value","fontFamily")??i.body.fontFamily??cM,fontSize:bk(l?.fontSize??p?.fontSize??n.getStyle("object.straightTableV2.measure","label.value","fontSize")??i.body.fontSize),fontStyle:yk(l?.fontStyle),fontWeight:xk(l?.fontStyle,"normal"),textDecoration:Ck(l?.fontStyle),color:mk(n,l?.fontColor)??mk(n,p?.fontColor)??n.getStyle("object.straightTableV2.measure","label.value","color")??i.body.color??OC.TEXT,background:gk(n,l,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??i.body.background??OC.TRANSPARENT}},totalRow:{fontFamily:u?.fontFamily??n.getStyle("object.straightTableV2.total","label.value","fontFamily")??i.totals.fontFamily??cM,fontSize:bk(u?.fontSize??p?.fontSize??n.getStyle("object.straightTableV2.total","label.value","fontSize")??i.totals.fontSize),fontStyle:yk(u?.fontStyle),fontWeight:xk(u?.fontStyle,uM),textDecoration:Ck(u?.fontStyle),color:mk(n,u?.fontColor)??mk(n,p?.fontColor)??n.getStyle("object.straightTableV2.total","label.value","color")??i.totals.color??OC.TEXT,background:vk(n,u,"object.straightTableV2.total.label.value.backgroundColor",f)},nullValues:{fontStyle:yk(c?.fontStyle),fontWeight:xk(c?.fontStyle,"normal"),textDecoration:Ck(c?.fontStyle),color:mk(n,c?.fontColor)??mk(n,p?.fontColor)??n.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??OC.TEXT,background:mk(n,c?.background)??n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??OC.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:m??Sk(o.multiline?.wrapTextInCells),headerLineClamp:Sk(o.multiline?.wrapTextInHeaders),border:mk(n,d?.border)??n.getStyle("object.straightTableV2","grid","borderColor")??(n.background.isDark?OC.DARK_MODE_BORDER:OC.BORDER_MEDIUM),divider:mk(n,d?.divider)??n.getStyle("object.straightTableV2.grid","","divider.borderColor")??OC.BORDER_HEAVY,hoverColors:{color:mk(n,p?.hoverFontColor)??n.getStyle("object.straightTableV2","","grid.hover.color")??i.body.hoverColors?.color,background:mk(n,p?.hoverColor)??n.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??i.body.hoverColors?.background},zebraStripes:{show:!!d?.zebraStripes?.show,odd:{color:mk(n,d?.zebraStripes?.color?.odd),background:mk(n,d?.zebraStripes?.background?.odd)},even:{color:mk(n,d?.zebraStripes?.color?.even),background:mk(n,d?.zebraStripes?.background?.even)},overrideNullValueBackground:void 0===mk(n,c?.background),overrideNullValueColor:void 0===mk(n,c?.fontColor)},lastRowBottomBorder:i.body.lastRowBottomBorder},selectedColors:qC(n),headerMinRowHeight:0,totalRowLineHeight:0,totalRowMinHeight:0,contentLineHeight:0,contentMinRowHeight:0,contentStaticLineCount:m},{headerMinRowHeight:v,totalRowLineHeight:b,totalRowMinHeight:y,contentLineHeight:x,contentMinRowHeight:S}=(e=>{const t=Math.max(wk(e.header.fontSize)+8,32),r=wk(e.totalRow.fontSize),n=Math.max(r+8+1,24),o=Math.max(wk(e.dimension.values.fontSize),wk(e.measure.values.fontSize)),i=(e.contentStaticLineCount||1)*o;return{headerMinRowHeight:t,totalRowLineHeight:r,totalRowMinHeight:n,contentLineHeight:o,contentMinRowHeight:Math.max(i+8+1,24)}})(g);return g.headerMinRowHeight=v,g.totalRowLineHeight=b,g.totalRowMinHeight=y,g.contentLineHeight=x,g.contentMinRowHeight=S,g}),Rk=(e,t,r)=>{if(!e.length)return[];const n=[],o=[];let i=t;if(e.forEach((e,a)=>{const{columnWidth:{type:s,pixels:l,percentage:u},label:c,qApprMaxGlyphCount:d,totalInfo:p}=e;let f=0;const h=()=>{n[a]=Math.min(fE.PixelsMax,Math.max(fE.PixelsMin,f)),i-=n[a]};switch(s){case hE.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?fE.PixelsDefault:+e)(l),h();break;case hE.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?fE.PercentageDefault:+e)(u)/100*t,h();break;case hE.FitToContent:e.representation?.type===WA.Image?o.push(a):(f=r(c,p,d,e.isLocked,e.isActivelySorted,e.isDim,e.isCyclic),h());break;case hE.Auto:o.push(a);break;default:throw new Error(`${s} is not a valid column width type`)}}),o.length){const e=i/o.length;o.forEach(t=>{n[t]=Math.max(fE.AutoMinTable,e)})}return n},Ak=tR(e=>{const t=e(Ek),r=e(ak).totalsPosition,n=e(IR),{measureText:o}=e(jP({...t.header,fontWeight:uM})),{measureText:i}=e(jP({...t.totalRow,fontWeight:uM})),{estimateWidth:a}=e(jP(t.dimension.values)),{estimateWidth:s}=e(jP(t.measure.values)),l=r.atBottom||r.atTop;return(e,t,r,u,c,d,p)=>{let f=0;if(n){const t=4;let r=25;r+=t+24,u&&(r+=20+t),c&&(r+=20),f=o(e)+r}else{let t=9;t+=16,p&&(t+=xM),t+=xM,t+=xM,f=o(e)+t}const h=d?a:s;return Math.max(f,l?i(t)+24+1:0,h(r))}}),Pk=tR(null),Mk=tR(e=>{const t=e(ak),r=e(eA).width,n=e(IM),o=e(Ak);return Rk(t.columns,r-n,o)}),Ik=tR(e=>e(Pk)??e(Mk),(e,t,r)=>{t(Pk,r)}),kk=FP(e=>{const t=e(BP);!1===e(PM)&&t.emit("done-adjusting-column-width")}),Dk=FP((e,t)=>{e(wR),t(Pk,null)}),Tk=({children:e})=>(fR(Dk),fR(kk),e);function Ok(e){const t=DC();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),ju({...t,direction:e})}const Lk={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},qk={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},Nk=Sc("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})(({isLastColumn:e,hoverColor:t,dir:r})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===r?"-4px":void 0,touchAction:"none",cursor:"col-resize",pointerEvents:"auto",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",outline:"none",appearance:"none",WebkitAppearance:"none",backgroundColor:"transparent","&::-webkit-slider-runnable-track":{...Lk},"&::-moz-range-track":{...Lk},"&::-ms-track":{...Lk},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...qk},"&::-moz-range-thumb":{...qk},"&::-ms-thumb":{...qk},"&:hover:not(:focus, :active)":{"&::after":{backgroundColor:t||"#D9D9D9","@media (hover: none)":{backgroundColor:"none"}}},"&:focus-visible, &:active":{"&::after":{backgroundColor:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}},"&::after":{content:'""',height:"100%",width:"3px",position:"absolute"}})),_k=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:s,setIsAdjustingWidth:l,isLeftColumn:u,accessibilityRelatedArgs:c,direction:d="ltr"})=>{const p=oE({translator:c.translator}),f=M({initWidth:e,columnWidth:e,initX:0}),h=r?0:1,m=n&&!u,g=()=>m?f.current.columnWidth-h:"100%",v={left:"rtl"!==d?g():void 0,right:"rtl"===d?g():void 0},b=t=>{f.current={initWidth:e,columnWidth:e,initX:t??f.current.initX}};rE(()=>{m&&b()},[e]);const y=e=>{const t=Math.max(e,fE.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:hE.Pixels,pixels:f.current.columnWidth};a(e)}l?.(!1)},S=e=>{const t="rtl"===d?f.current.initWidth+f.current.initX-e.clientX:f.current.initWidth+e.clientX-f.current.initX;y(t)},w=e=>{FC(e),document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",w),x()},C=e=>{const t="rtl"===d?f.current.initWidth+-f.current.initX-e.touches[0].clientX:f.current.initWidth+e.touches[0].clientX-f.current.initX;y(t)},E=e=>{FC(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E),x()},R=!n&&s?e=>{if(e.key===dE.Left||e.key===dE.Right){FC(e);const t=5,r=e.key===dE.Left?t:-t,n="rtl"===d?r:-r;l?.(!0),y(f.current.columnWidth+n)}else e.key===dE.Space||e.key===dE.Enter?(FC(e),s(e),l?.(!1),x()):e.key===dE.Esc&&(FC(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,A=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return ur.jsx(Nk,{style:v,hoverColor:o,isLastColumn:r,className:pE,"data-testid":pE,onMouseDown:e=>{FC(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),l?.(!0),b(e.clientX)},onDoubleClick:()=>{a({type:hE.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(FC(e),document.addEventListener("touchmove",C),document.addEventListener("touchend",E),l?.(!0),b(e.touches[0].clientX))},onKeyDown:R,onBlur:s,onFocus:()=>{b()},type:"range",tabIndex:-1,"aria-label":A,"aria-valuemin":fE.PixelsMin,"aria-valuemax":fE.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},jk=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})})),zk=({model:e,headerData:t})=>{if(e&&"setActiveField"in e&&void 0!==t.dimensionInfoIndex){const r=t.dimensionInfoIndex;return async t=>{try{await e.setActiveField("/qHyperCubeDef",r,t)}catch(e){console.error(e)}}}return null},Fk=Sc(dp,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e&&"isAccessibleHeader"!==e})(({rightAligned:e,shouldShowMenuIcon:t,isAccessibleHeader:r})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:r?24:void 0,display:t?"flex":"none",fontWeight:"bold",width:r?"100%":void 0,alignItems:"center",justifyContent:"center"})),$k=Sc(jk,{shouldForwardProp:e=>"isInteractionsActive"!==e})(({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"})),Hk=Sc(Gf)(({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}})),Bk=Sc(Bp)(({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}})),Wk=Sc(Zf)(({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)})),Vk=Sc(Zf,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})(({theme:e,isSubMenu:t,isActive:r})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden",boxSizing:"border-box !important",background:r?"rgba(0, 0, 0, 0.05)":"transparent"})),Uk=Sc("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:r})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:r||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"})),Gk=Sc("div")(()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"})),Yk=Sc(Pd)(()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"})),Kk=Sc(xf,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:r})=>({width:16,minWidth:"unset !important",marginRight:r||"rtl"!==t?e.spacing(1.5):0,marginLeft:r||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0})),Xk=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})})),Jk=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?Jk(t):t:e.parentElement?.children?.[0]},Zk=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?Zk(t):t},Qk=e=>{const{key:t,currentTarget:r}=e,n=document.activeElement??r;if(t===dE.Down||t===dE.Up){const r=e=>t===dE.Down?Jk(e):Zk(e);e.preventDefault(),e.stopPropagation();let o=r(n);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=r(o)}}},eD=(e,t)=>e.map(e=>e.map(e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map(({onClick:e,...r})=>({...r,...e?{onClick:async r=>{Object.entries(t).forEach(([,e])=>{e(!1)}),await e(r)}}:{}}))})));let tD={};const rD=({autoFocus:e,id:t,onClick:r,itemTitle:n,icon:o,enabled:i,subMenus:a,isSubMenu:s,isActive:l,direction:u,isPagination:c})=>{const[d,p]=P(!1),f=S.useRef(null),h=O(e=>{e.stopPropagation(),p(!1)},[p]);return ur.jsxs(ur.Fragment,{children:[ur.jsxs(Vk,{ref:a?f:null,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(r&&(await r(e),tD={}),a?.length&&(p(!0),tD[n]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:Qk,children:[l?ur.jsx(Uk,{direction:u,isPagination:c}):null,ur.jsxs(Gk,{children:[ur.jsx(Kk,{direction:u,isPagination:c,children:ur.jsx(o,{})}),ur.jsx(Yk,{variant:"body2",children:n})]}),a?.length?ur.jsx(Xk,{}):null]},t),a?.length?ur.jsx(aD,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:h,menuGroups:eD(a,tD),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:u,isPagination:c}):null]})},nD=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(e=>[[e.groupHeading&&ur.jsx(Wk,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map(e=>ur.jsx(rD,{...e,isSubMenu:t,direction:r,isPagination:n},e.id))].filter(Boolean)]),oD=({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((o,i)=>[nD({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?ur.jsx(Bk,{"data-testid":"group-divider",variant:"middle"}):void 0]),iD={appear:0,enter:0,exit:0},aD=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?ur.jsx(Hk,{className:lE,open:t,anchorEl:e,onClose:r,transitionDuration:iD,MenuListProps:{id:uE},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:oD({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})}):null,sD=({qLibraryId:e,fieldId:t,searchRelatedArgs:r,selectionRelatedArgs:n,direction:o,onPopoverClose:i})=>O(()=>{const a=e?{qLibraryId:e,type:"dimension"}:t;if(r?.embed){const{embed:e,listboxRef:t}=r;e.__DO_NOT_USE__.popover(t.current,a,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===o?"right":"left"},sortCriteria:r.sortCriteria,stateName:n?.qStateName,direction:o,onPopoverClose:i})}},[e,t,r,n?.qStateName,o,i]),lD=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),uD=(e,t)=>e.some(e=>t[e]>0),cD={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},dD=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=P(null),[a,s]=P(cD);return rE(()=>{e||(s(cD),i(null))},[e]),D(()=>{if(!n?.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{const e=lD(t,r),u=await n.createSessionObject(e),c=await u.getLayout(),{qStateCounts:d}=c.qListObject?.qDimensionInfo??{};o=c.qInfo?.qId,a?l():(i(u),d&&s((e=>({canSelectAll:uD(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:uD(["qSelected"],e),canSelectPossible:uD(["qOption"],e),canSelectAlternative:uD(["qAlternative"],e),canSelectExcluded:uD(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}},[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},pD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"})})),fD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm9 1.5H6v-1h4zm5.354-8.646L12.707 10l2.646 2.646-.707.707L12 10.708l-2.646 2.646-.708-.707L11.293 10 8.646 7.354l.708-.708L12 9.293l2.646-2.647zM1 10H0V6h1zm2-9H1.5a.5.5 0 0 0-.5.5V3H0V1.5A1.5 1.5 0 0 1 1.5 0H3zm11.5-1A1.5 1.5 0 0 1 16 1.5V3h-1V1.5a.5.5 0 0 0-.5-.5H13V0zM10 1H6V0h4z"})})),hD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707zM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2z"})})),mD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"})})),gD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.455.858v6.484a1 1 0 0 1-.577.906L8.5 14.663V7.17z"})})),vD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8z"})})),bD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8zM8.5 4v8h-1V4z"})})),yD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7"})})),xD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"})})),SD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4zm12-4a1 1 0 0 1 .993.883L16 1v10a1 1 0 0 1-.883.993L15 12H5a1 1 0 0 1-.993-.883L4 11V1a1 1 0 0 1 .883-.993L5 0zm0 1H5v10h10zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28z"})})),wD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8l8-8zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})})),CD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})})),ED=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8h8V4zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})})),RD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"})}));let AD=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const PD="/qListObjectDef",MD=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:s,selectionActionsEnabledStatus:l,anchorRef:u,focusColumnAdjuster:c,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(r[AD.Sorting]){const{isActivelySorted:r,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:s}=(({isActivelySorted:e,sortDirection:t,isPivot:r,isSortedByFirstMeasure:n})=>{let o=!r&&!e||"D"===t,i=!r&&!e||"A"===t;return n&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"A")),n(!1)},icon:pD,enabled:a,isActive:!!r&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"D")),n(!1)},icon:mD,enabled:s,isActive:!!r&&"D"===i,autoFocus:!a&&s}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:yD,subMenus:[[{items:e.groupDimensionLabels.map((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:gD,isActive:e.groupDimensionPos===r}))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];r[AD.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:xD,enabled:!0}]}]),!e.isLocked&&r[AD.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:RD,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAll(PD))},icon:SD,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectPossible(PD))},icon:ED,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAlternative(PD))},icon:wD,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectExcluded(PD))},icon:CD,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.clearSelections(PD))},icon:fD,enabled:l.canClearSelections}]}]]}]}]),p&&!p.alwaysFullyExpanded&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.expandCallback()},icon:bD,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:vD,enabled:!0}]}]),o.length>0&&f.push(...o)}return r[AD.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),c?.(u)},icon:hD,enabled:!0}]}]),f},ID=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,menuAvailabilityFlags:a,shouldShowMenuIcon:s=!0,sortRelatedArgs:l,searchRelatedArgs:u,selectionRelatedArgs:c,adjustHeaderSizeRelatedArgs:d,expandOrCollapseArgs:p,model:f,direction:h="ltr",isPagination:m,isAccessibleHeader:g,iconSize:v=iE})=>{const b=M(null),y=oE({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:w}=n,C=c?.app,{fieldInstance:E,selectionActionsEnabledStatus:R}=dD({open:e,headerData:n,app:C,qStateName:c?.qStateName}),A=zk({model:f,headerData:n}),P=sD({qLibraryId:x,fieldId:S,searchRelatedArgs:u,selectionRelatedArgs:c,direction:h}),I=O(e=>{e.stopPropagation(),t(!1)},[t]),k=O(e=>{e.stopPropagation(),t(e=>!e)},[t]);return i.active?ur.jsxs(Fk,{rightAligned:"right"===w,shouldShowMenuIcon:s,className:sE,onClick:!1===g?k:void 0,ref:b,isAccessibleHeader:g,children:[s?ur.jsx($k,{height:v,className:aE,"data-testid":aE,isInteractionsActive:i.active??!1,children:ur.jsx(jk,{})}):null,ur.jsx(aD,{open:e,anchorEl:!1===g?b.current:r.current,onClose:I,menuGroups:MD({headerData:n,translator:y,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:P,interactions:i,fieldInstance:E,selectionActionsEnabledStatus:R,anchorRef:r,focusColumnAdjuster:d?.focusColumnAdjuster,setActiveFieldCallback:A,expandOrCollapseArgs:p}),direction:h,isPagination:m})]}):null},kD=e=>e.isDark?{background:e.color,borderColor:OC.DARK_MODE_BORDER,color:OC.DARK_MODE_TEXT,disabledColor:OC.DARK_MODE_DISABLED,iconColor:OC.DARK_MODE_TEXT}:{background:e.color,borderColor:OC.BORDER_MEDIUM,color:OC.TEXT,disabledColor:OC.DISABLED},DD=Sc(dp,{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}`})),TD=Sc(Th,{shouldForwardProp:e=>"footerStyle"!==e})(({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}})),OD=Sc(Sp,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})(({disabledCondition:e,footerStyle:t,theme:r})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:r.spacing(1)})),LD=Sc(Pd)(({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)})),qD=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=A(()=>kD(n.background),[n]);if(!r.active)return null;const a=o?ur.jsx(DD,{footerStyle:i,children:e}):null;return t?B.createPortal(e,t):a},ND=I({}),_D=()=>L(ND),jD=({children:e,direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:h,layout:m,visibilityThreshold:g})=>{const v=(e=>!e.enabled||e.active)(c)?0:-1,b=A(()=>kD(p.background),[p]),y=o?o.getBoundingClientRect().width:h.width,x=oE({translator:d}),S=A(()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:x,theme:p,interactions:f,rect:h,layout:m,footerStyle:b,tabIndex:v,width:y,visibilityThreshold:g}),[t,r,n,o,i,a,s,l,u,c,x,p,f,h,m,b,v,y,g]);return ur.jsx(ND.Provider,{value:S,children:e})};let zD=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),FD=function(e){return e[e.DisplayedRowsLabel=250]="DisplayedRowsLabel",e[e.FirstPage=350]="FirstPage",e[e.LastPage=350]="LastPage",e[e.RowsPerPage=550]="RowsPerPage",e[e.SelectPage=700]="SelectPage",e}({});const $D=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})})),HD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})})),BD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})})),WD={FirstPage:HD,PreviousPage:$D,NextPage:Xk,LastPage:BD,FirstPageRTL:BD,PreviousPageRTL:Xk,NextPageRTL:$D,LastPageRTL:HD},VD=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=_D(),u=r.concat("rtl"===n?"RTL":""),c=WD[u];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${r}`),title:s.passive?a.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:l,onClick:e?void 0:()=>{i(t)}},IconComponent:c}},UD=()=>{const{pageInfo:e,width:t,interactions:r,visibilityThreshold:n}=_D(),o=0===e.page,{IconComponent:i,styledProps:a}=VD({type:zD.FirstPage,disabledCondition:o,pageNumber:0});return t<=(n?.firstPage||FD.FirstPage)?null:ur.jsx(OD,{...a,disabled:!r.active,children:ur.jsx(i,{height:iE})})},GD=(e,t,r=!1)=>{r&&e.key===dE.Tab&&!e.shiftKey&&(FC(e),zC(e.target,t,!1))},YD=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i,visibilityThreshold:a}=_D(),s=e.page>=r-1,{IconComponent:l,styledProps:u}=VD({type:zD.LastPage,disabledCondition:s,pageNumber:r-1}),c=t.enabled?e=>{GD(e,t,n)}:void 0;return o<=(a?.lastPage||FD.LastPage)?null:ur.jsx(OD,{...u,onKeyDown:c,disabled:!i.active,children:ur.jsx(l,{height:iE})})},KD=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=_D(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=VD({type:zD.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(o>FD.FirstPage&&o>FD.LastPage)&&t.enabled?e=>{GD(e,t,n)}:void 0;return ur.jsx(OD,{...l,onKeyDown:u,disabled:!i.active,children:ur.jsx(s,{height:iE})})},XD=()=>{const{pageInfo:e,interactions:t}=_D(),r=0===e.page,{IconComponent:n,styledProps:o}=VD({type:zD.PreviousPage,disabledCondition:r,pageNumber:e.page-1});return ur.jsx(OD,{...o,disabled:!t.active,children:ur.jsx(n,{height:iE})})},JD=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n,visibilityThreshold:o}=_D(),{page:i,rowsPerPage:a}=r;if(t<=(o?.displayedRowsLabel||FD.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,n)}`,n.toString()]);return ur.jsx(LD,{variant:"caption",dir:"ltr",children:s})},ZD=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=_D(),u=o.qInfo.qId,c=a.get(`NebulaTableUtils.Pagination.${e}`),d=`${e}-dropdown`,p=`${d}-label-${u}`,f={tabIndex:s,id:`${d}-${u}`,"data-testid":d,"aria-labelledby":p};return ur.jsxs(ur.Fragment,{children:[ur.jsxs(LD,{variant:"caption",id:p,children:[c,":"]}),ur.jsx(TD,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:f,disabled:!l.active,children:r})]})},QD=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:r,width:n,handleChangeRowsPerPage:o,visibilityThreshold:i}=_D();if(!(!!e.rowsPerPageOptions?.length&&!t&&n>(i?.rowsPerPage||FD.RowsPerPage)&&r<=100)||void 0===e.rowsPerPageOptions)return null;const a=ur.jsx(ur.Fragment,{children:e.rowsPerPageOptions.map(e=>ur.jsx("option",{value:e,children:e},e))});return ur.jsx(ZD,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},eT=1e3,tT="…",rT=({totalPages:e,page:t})=>{const r=Math.min(e,eT),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-eT):0,a=Array.from(Array(r).keys()).map(e=>{const t=e+i;return ur.jsx("option",{value:t,children:t+1},t)});return i>0&&a.unshift(ur.jsx("option",{value:tT,disabled:!0,children:tT},"startMoreOptions")),o<e-1&&a.push(ur.jsx("option",{value:tT,disabled:!0,children:tT},"endMoreOptions")),ur.jsx(ur.Fragment,{children:a})},nT=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n,visibilityThreshold:o}=_D(),{page:i}=e;if(t<=(o?.selectPage||FD.SelectPage))return null;const a=ur.jsx(rT,{totalPages:r,page:i});return ur.jsx(ZD,{name:"SelectPage",value:i,options:a,handleChange:e=>{n(+e.target.value)}})};var oT=N(e=>ur.jsxs(jD,{...e,children:[ur.jsx(QD,{}),ur.jsx(nT,{}),ur.jsx(JD,{}),ur.jsx(UD,{}),ur.jsx(XD,{}),ur.jsx(KD,{}),ur.jsx(YD,{})]}));const iT=e=>ur.jsx(qD,{...e,children:ur.jsx(oT,{...e})}),aT=(e,t,r)=>{const n=r.size,o=n>=t.size;if(n){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===n?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",n.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},sT=(e,t,r)=>{r&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},lT=e=>e.ctrlKey||e.metaKey,uT=e=>e.shiftKey&&lT(e),cT=e=>[dE.Left,dE.Right,dE.Up,dE.Down].includes(e),dT=e=>e.shiftKey&&cT(e.key),pT=e=>(e=>cT(e)||[dE.Home,dE.End,dE.PageUp,dE.PageDown].includes(e))(e.key)&&!uT(e),fT=(e,t)=>{const{api:r,rows:n,colIdx:o}=e,{cell:i,announce:a,evt:s}=t;let l=new Map;if(-1===o)r?.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;l=new Map(n)}return l=((e,t,r)=>{const{qElemNumber:n,rowIdx:o}=t;return r.ctrlKey||r.metaKey?(new Map).set(n,o):(e.has(n)?e.delete(n):e.set(n,o),new Map(e))})(l,i,s),aT(a,n,l),l.size?(r?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(l.values()),[i.selectionColIdx]]}),{...e,rows:l,colIdx:i.selectionColIdx}):(r?.cancel(),{...e,rows:l,colIdx:-1})},hT=(e,t)=>{const{api:r,rows:n,colIdx:o,pageRows:i,firstCell:a}=e,{cell:s,announce:l,evt:u}=t;if(!(a||"key"in u&&dT(u)))return e;-1===o&&r?.begin(["/qHyperCubeDef"]);const c=((e,t,r,n,o)=>{const i=new Map(t);if("key"in n&&dT(n)){i.set(r.qElemNumber,r.rowIdx);const t=n.key===dE.Down?1:-1,o=e[r.pageRowIdx+t][r.pageColIdx];return i.set(o.qElemNumber,r.rowIdx+t),i}if(!o)return t;const a=Math.min(o.pageRowIdx,r.pageRowIdx),s=Math.max(o.pageRowIdx,r.pageRowIdx);for(let t=a;t<=s;t++){const r=e[t][o.pageColIdx];i.set(r.qElemNumber,r.rowIdx)}return i})(i,n,s,u,a);return aT(l,n,c),{...e,rows:c,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},mT=e=>{const{api:t,rows:r,colIdx:n,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&t?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(r.values()),[n]]}),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},gT=(e,t)=>{switch(t.type){case VP.Select:return fT(e,t.payload);case VP.SelectMouseDown:return((e,{cell:t,mouseupOutsideCallback:r})=>!r||-1!==e.colIdx&&e.colIdx!==t.selectionColIdx?e:(document.addEventListener("mouseup",r),{...e,firstCell:t,mouseupOutsideCallback:r}))(e,t.payload);case VP.SelectMouseUp:return((e,t)=>mT(e.isSelectMultiValues||e.firstCell!==t.cell?e:fT(e,t)))(e,t.payload);case VP.SelectMultiAdd:return hT(e,t.payload);case VP.SelectMultiEnd:return mT(e);case VP.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case VP.Clear:return e.rows.size?{...e,rows:new Map}:e;case VP.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},vT=tR(e=>{const t=e(TR);return function(e,t){return tR(e,function(e,r,n){r(this,t(e(this),n))})}({pageRows:e(ak).rows,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1},gT)}),bT=tR(e=>e(e(vT)),(e,t,r)=>{t(e(vT),r)}),yT=_P(e=>tR(t=>{const{colIdx:r,rows:n,api:o}=t(bT);return"object"==typeof e&&o?.isModal()?r!==e.selectionColIdx?WP.Disabled:n.has(e.qElemNumber)?WP.Selected:WP.Possible:WP.Inactive}),(e,t)=>"object"!=typeof e||"object"!=typeof t?e===t:e.qElemNumber===t.qElemNumber&&e.selectionColIdx===t.selectionColIdx),xT=tR(e=>{const t=e(Ik),r=e(eA).width,n=e(IM);return t.length>0&&t.reduce((e,t)=>e+t)+n<r});var ST=Symbol.for("preact-signals");function wT(){if(PT>1)PT--;else{var e,t=!1;for(!function(){var e=DT;for(DT=void 0;void 0!==e;)e.S.v===e.v&&(e.S.i=e.i),e=e.o}();void 0!==AT;){var r=AT;for(AT=void 0,MT++;void 0!==r;){var n=r.u;if(r.u=void 0,r.f&=-3,!(8&r.f)&&NT(r))try{r.c()}catch(r){t||(e=r,t=!0)}r=n}}if(MT=0,PT--,t)throw e}}function CT(e){if(PT>0)return e();kT=++IT,PT++;try{return e()}finally{wT()}}var ET=void 0;function RT(e){var t=ET;ET=void 0;try{return e()}finally{ET=t}}var AT=void 0,PT=0,MT=0,IT=0,kT=0,DT=void 0,TT=0;function OT(e){if(void 0!==ET){var t=e.n;if(void 0===t||t.t!==ET)return t={i:0,S:e,p:ET.s,n:void 0,t:ET,e:void 0,x:void 0,r:t},void 0!==ET.s&&(ET.s.n=t),ET.s=t,e.n=t,32&ET.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=ET.s,t.n=void 0,ET.s.n=t,ET.s=t),t}}function LT(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function qT(e,t){return new LT(e,t)}function NT(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function _T(e){for(var t=e.s;void 0!==t;t=t.n){var r=t.S.n;if(void 0!==r&&(t.r=r),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function jT(e){for(var t=e.s,r=void 0;void 0!==t;){var n=t.p;-1===t.i?(t.S.U(t),void 0!==n&&(n.n=t.n),void 0!==t.n&&(t.n.p=n)):r=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=n}e.s=r}function zT(e,t){LT.call(this,void 0),this.x=e,this.s=void 0,this.g=TT-1,this.f=4,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function FT(e,t){return new zT(e,t)}function $T(e){var t=e.m;if(e.m=void 0,"function"==typeof t){PT++;var r=ET;ET=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,HT(e),t}finally{ET=r,wT()}}}function HT(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,$T(e)}function BT(e){if(ET!==this)throw new Error("Out-of-order effect");jT(this),ET=e,this.f&=-2,8&this.f&&HT(this),wT()}function WT(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=null==t?void 0:t.name}function VT(e,t){var r=new WT(e,t);try{r.c()}catch(e){throw r.d(),e}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}LT.prototype.brand=ST,LT.prototype.h=function(){return!0},LT.prototype.S=function(e){var t=this,r=this.t;r!==e&&void 0===e.e&&(e.x=r,this.t=e,void 0!==r?r.e=e:RT(function(){var e;null==(e=t.W)||e.call(t)}))},LT.prototype.U=function(e){var t=this;if(void 0!==this.t){var r=e.e,n=e.x;void 0!==r&&(r.x=n,e.e=void 0),void 0!==n&&(n.e=r,e.x=void 0),e===this.t&&(this.t=n,void 0===n&&RT(function(){var e;null==(e=t.Z)||e.call(t)}))}},LT.prototype.subscribe=function(e){var t=this;return VT(function(){var r=t.value,n=ET;ET=void 0;try{e(r)}finally{ET=n}},{name:"sub"})},LT.prototype.valueOf=function(){return this.value},LT.prototype.toString=function(){return this.value+""},LT.prototype.toJSON=function(){return this.value},LT.prototype.peek=function(){var e=ET;ET=void 0;try{return this.value}finally{ET=e}},Object.defineProperty(LT.prototype,"value",{get:function(){var e=OT(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(MT>100)throw new Error("Cycle detected");!function(e){0!==PT&&0===MT&&e.l!==kT&&(e.l=kT,DT={S:e,v:e.v,i:e.i,o:DT})}(this),this.v=e,this.i++,TT++,PT++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{wT()}}}}),zT.prototype=new LT,zT.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===TT)return!0;if(this.g=TT,this.f|=1,this.i>0&&!NT(this))return this.f&=-2,!0;var e=ET;try{_T(this),ET=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return ET=e,jT(this),this.f&=-2,!0},zT.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}LT.prototype.S.call(this,e)},zT.prototype.U=function(e){if(void 0!==this.t&&(LT.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},zT.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(zT.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=OT(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),WT.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.m=t)}finally{e()}},WT.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,$T(this),_T(this),PT++;var e=ET;return ET=this,BT.bind(this,e)},WT.prototype.N=function(){2&this.f||(this.f|=2,this.u=AT,AT=this)},WT.prototype.d=function(){this.f|=8,1&this.f||HT(this)},WT.prototype.dispose=function(){this.d()};var UT,GT,YT,KT,XT,JT,ZT,QT,eO,tO,rO,nO,oO,iO,aO,sO,lO,uO,cO,dO,pO=Object.create,fO=Object.defineProperty,hO=Object.defineProperties,mO=Object.getOwnPropertyDescriptor,gO=Object.getOwnPropertyDescriptors,vO=Object.getOwnPropertySymbols,bO=Object.prototype.hasOwnProperty,yO=Object.prototype.propertyIsEnumerable,xO=e=>{throw TypeError(e)},SO=(e,t,r)=>t in e?fO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wO=(e,t)=>fO(e,"name",{value:t,configurable:!0}),CO=["class","method","getter","setter","accessor","field","value","get","set"],EO=e=>void 0!==e&&"function"!=typeof e?xO("Function expected"):e,RO=(e,t,r,n,o)=>({kind:CO[e],name:t,metadata:n,addInitializer:e=>r._?xO("Already initialized"):o.push(EO(e||null))}),AO=(e,t)=>{return SO(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n},PO=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},MO=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=CO[d+5],g=d>3&&(e[h-1]=[]),v=e[h]||(e[h]=[]),b=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&mO(d<4?o:{get[r](){return DO(this,i)},set[r](e){return OO(this,i,e)}},r));d?f&&d<4&&wO(i,(d>2?"set ":d>1?"get ":"")+r):wO(o,r);for(var y=n.length-1;y>=0;y--)u=RO(d,r,l={},e[3],v),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>kO(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?DO:LO)(e,o,4^d?i:b.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>OO(e,o,t,4^d?i:b.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:b[m]:d>4?void 0:{get:b.get,set:b.set}:o,u),l._=1,4^d||void 0===s?EO(s)&&(d>4?g.unshift(s):d?f?i=s:b[m]=s:o=s):"object"!=typeof s||null===s?xO("Object expected"):(EO(a=s.get)&&(b.get=a),EO(a=s.set)&&(b.set=a),EO(a=s.init)&&g.unshift(a));return d||AO(e,o),b&&fO(o,r,b),f?4^d?i:b:o},IO=(e,t,r)=>t.has(e)||xO("Cannot "+r),kO=(e,t)=>Object(t)!==t?xO('Cannot use the "in" operator on this value'):e.has(t),DO=(e,t,r)=>(IO(e,t,"read from private field"),r?r.call(e):t.get(e)),TO=(e,t,r)=>t.has(e)?xO("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),OO=(e,t,r,n)=>(IO(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),LO=(e,t,r)=>(IO(e,t,"access private method"),r);function qO(e,t){if(t){let r;return FT(()=>{const n=e();return n&&r&&t(r,n)?r:(r=n,n)})}return FT(e)}function NO(e,t){if(Object.is(e,t))return!0;if(null===e||null===t)return!1;if("function"==typeof e&&"function"==typeof t)return e===t;if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;return!e.some((e,r)=>!NO(e,t[r]))}if("object"==typeof e&&"object"==typeof t){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;const o=r.some(r=>!NO(e[r],t[r]));return!o}return!1}function _O({get:e},t){return{init:e=>qT(e),get(){return e.call(this).value},set(t){const r=e.call(this);r.peek()!==t&&(r.value=t)}}}function jO(e,t){const r=new WeakMap;return function(){let t=r.get(this);return t||(t=qO(e.bind(this)),r.set(this,t)),t.value}}function zO(e=!0){return function(t,r){r.addInitializer(function(){const t="field"===r.kind||r.static?this:Object.getPrototypeOf(this),n=Object.getOwnPropertyDescriptor(t,r.name);n&&Object.defineProperty(t,r.name,((e,t)=>hO(e,gO(t)))(((e,t)=>{for(var r in t||(t={}))bO.call(t,r)&&SO(e,r,t[r]);if(vO)for(var r of vO(t))yO.call(t,r)&&SO(e,r,t[r]);return e})({},n),{enumerable:e}))})}}function FO(...e){const t=e.map(e=>VT(e));return()=>t.forEach(e=>e())}JT=[_O],XT=[_O],KT=[_O],YT=[zO()],GT=[zO()],UT=[zO()];var $O,HO=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,PO(ZT,5,this),TO(this,nO),TO(this,QT,PO(ZT,8,this)),PO(ZT,11,this),TO(this,oO,PO(ZT,12,this)),PO(ZT,15,this),TO(this,lO,PO(ZT,16,this)),PO(ZT,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return DO(this,nO,cO)}get initial(){return DO(this,nO,tO)}get previous(){return DO(this,nO,aO)}set current(e){const t=RT(()=>DO(this,nO,cO));e&&t&&this.equals(t,e)||CT(()=>{DO(this,nO,tO)||OO(this,nO,e,rO),OO(this,nO,t,sO),OO(this,nO,e,dO)})}reset(e=this.defaultValue){CT(()=>{OO(this,nO,void 0,sO),OO(this,nO,e,rO),OO(this,nO,e,dO)})}};function BO(e){return RT(()=>{const t={};for(const r in e)t[r]=e[r];return t})}ZT=[,,,pO(null)],QT=new WeakMap,nO=new WeakSet,oO=new WeakMap,lO=new WeakMap,eO=MO(ZT,20,"#initial",JT,nO,QT),tO=eO.get,rO=eO.set,iO=MO(ZT,20,"#previous",XT,nO,oO),aO=iO.get,sO=iO.set,uO=MO(ZT,20,"#current",KT,nO,lO),cO=uO.get,dO=uO.set,MO(ZT,2,"current",YT,HO),MO(ZT,2,"initial",GT,HO),MO(ZT,2,"previous",UT,HO),AO(ZT,HO);$O=new WeakMap;var WO,VO,UO,GO,YO,KO=Object.create,XO=Object.defineProperty,JO=Object.getOwnPropertyDescriptor,ZO=Object.getOwnPropertySymbols,QO=Object.prototype.hasOwnProperty,eL=Object.prototype.propertyIsEnumerable,tL=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),rL=e=>{throw TypeError(e)},nL=Math.pow,oL=(e,t,r)=>t in e?XO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,iL=["class","method","getter","setter","accessor","field","value","get","set"],aL=e=>void 0!==e&&"function"!=typeof e?rL("Function expected"):e,sL=(e,t,r,n,o)=>({kind:iL[e],name:t,metadata:n,addInitializer:e=>r._?rL("Already initialized"):o.push(aL(e||null))}),lL=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=iL[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,JO(o,r)),h=n.length-1;h>=0;h--)(l=sL(c,r,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>r in e},u.get=e=>e[r],a=(0,n[h])(f[d],l),s._=1,aL(a)&&(f[d]=a);return f&&XO(o,r,f),o},uL=(e,t,r)=>t.has(e)||rL("Cannot "+r),cL=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,r){return new e(t.x-r.x,t.y-r.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:r}){return new e(t,r)}},dL=class e{constructor(e,t,r,n){this.left=e,this.top=t,this.width=r,this.height=n,this.scale={x:1,y:1}}get inverseScale(){return{x:1/this.scale.x,y:1/this.scale.y}}translate(t,r){const{top:n,left:o,width:i,height:a,scale:s}=this,l=new e(o+t,n+r,i,a);return l.scale=((e,t)=>{for(var r in t||(t={}))QO.call(t,r)&&oL(e,r,t[r]);if(ZO)for(var r of ZO(t))eL.call(t,r)&&oL(e,r,t[r]);return e})({},s),l}get boundingRectangle(){const{width:e,height:t,left:r,top:n,right:o,bottom:i}=this;return{width:e,height:t,left:r,top:n,right:o,bottom:i}}get center(){const{left:e,top:t,right:r,bottom:n}=this;return new cL((e+r)/2,(t+n)/2)}get area(){const{width:e,height:t}=this;return e*t}equals(t){if(!(t instanceof e))return!1;const{left:r,top:n,width:o,height:i}=this;return r===t.left&&n===t.top&&o===t.width&&i===t.height}containsPoint(e){const{top:t,left:r,bottom:n,right:o}=this;return t<=e.y&&e.y<=n&&r<=e.x&&e.x<=o}intersectionArea(t){return t instanceof e?function(e,t){const r=Math.max(t.top,e.top),n=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-n,s=i-r;if(n<o&&r<i){return a*s}return 0}(this,t):0}intersectionRatio(e){const{area:t}=this,r=this.intersectionArea(e);return r/(e.area+t-r)}get bottom(){const{top:e,height:t}=this;return e+t}get right(){const{left:e,width:t}=this;return e+t}get aspectRatio(){const{width:e,height:t}=this;return e/t}get corners(){return[{x:this.left,y:this.top},{x:this.right,y:this.top},{x:this.left,y:this.bottom},{x:this.right,y:this.bottom}]}static from({top:t,left:r,width:n,height:o}){return new e(r,t,n,o)}static delta(e,t,r={x:"center",y:"center"}){const n=(e,t)=>{const n=r[t],o="x"===t?e.left:e.top,i="x"===t?e.width:e.height;return"start"==n?o:"end"==n?o+i:o+i/2};return cL.delta({x:n(e,"x"),y:n(e,"y")},{x:n(t,"x"),y:n(t,"y")})}static intersectionRatio(t,r){return e.from(t).intersectionRatio(e.from(r))}};var pL,fL=class extends(UO=HO,VO=[jO],WO=[jO],UO){constructor(e){var t,r,n;super(cL.from(e),(e,t)=>cL.equals(e,t)),((e,t,r)=>{for(var n=0,o=e[t>>1],i=o&&o.length;n<i;n++)o[n].call(r)})(YO,5,this),t=this,n=0,(r=GO).has(t)?rL("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,n),this.velocity={x:0,y:0}}get delta(){return cL.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const r={x:e.x-t.x,y:e.y-t.y};return r.x||r.y?Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,r=cL.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(uL(a=this,s=GO,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);CT(()=>{((e,t,r)=>{uL(e,t,"write to private field"),t.set(e,r)})(this,GO,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r})}reset(e=this.defaultValue){super.reset(cL.from(e)),this.velocity={x:0,y:0}}};function hL({x:e,y:t},r){const n=Math.abs(e),o=Math.abs(t);return"number"==typeof r?Math.sqrt(nL(n,2)+nL(o,2))>r:"x"in r&&"y"in r?n>r.x&&o>r.y:"x"in r?n>r.x:"y"in r&&o>r.y}YO=(e=>{var t;return[,,,KO(null!=(t=null==e?void 0:e[tL("metadata")])?t:null)]})(UO),GO=new WeakMap,lL(YO,2,"delta",VO,fL),lL(YO,2,"direction",WO,fL),pL=YO,oL(fL,tL("metadata"),pL[3]);var mL,gL,vL,bL,yL=(e=>(e.Horizontal="x",e.Vertical="y",e))(yL||{}),xL=Object.values(yL),SL=Object.create,wL=Object.defineProperty,CL=Object.defineProperties,EL=Object.getOwnPropertyDescriptor,RL=Object.getOwnPropertyDescriptors,AL=Object.getOwnPropertySymbols,PL=Object.prototype.hasOwnProperty,ML=Object.prototype.propertyIsEnumerable,IL=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),kL=e=>{throw TypeError(e)},DL=(e,t,r)=>t in e?wL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,TL=(e,t)=>{for(var r in t||(t={}))PL.call(t,r)&&DL(e,r,t[r]);if(AL)for(var r of AL(t))ML.call(t,r)&&DL(e,r,t[r]);return e},OL=(e,t)=>CL(e,RL(t)),LL=(e,t)=>wL(e,"name",{value:t,configurable:!0}),qL=(e,t)=>{var r={};for(var n in e)PL.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&AL)for(var n of AL(e))t.indexOf(n)<0&&ML.call(e,n)&&(r[n]=e[n]);return r},NL=e=>{var t;return[,,,SL(null!=(t=null==e?void 0:e[IL("metadata")])?t:null)]},_L=["class","method","getter","setter","accessor","field","value","get","set"],jL=e=>void 0!==e&&"function"!=typeof e?kL("Function expected"):e,zL=(e,t,r,n,o)=>({kind:_L[e],name:t,metadata:n,addInitializer:e=>r._?kL("Already initialized"):o.push(jL(e||null))}),FL=(e,t)=>DL(t,IL("metadata"),e[3]),$L=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},HL=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=_L[d+5],g=d>3&&(e[h-1]=[]),v=e[h]||(e[h]=[]),b=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&EL(d<4?o:{get[r](){return VL(this,i)},set[r](e){return GL(this,i,e)}},r));d?f&&d<4&&LL(i,(d>2?"set ":d>1?"get ":"")+r):LL(o,r);for(var y=n.length-1;y>=0;y--)u=zL(d,r,l={},e[3],v),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>WL(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?VL:YL)(e,o,4^d?i:b.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>GL(e,o,t,4^d?i:b.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:b[m]:d>4?void 0:{get:b.get,set:b.set}:o,u),l._=1,4^d||void 0===s?jL(s)&&(d>4?g.unshift(s):d?f?i=s:b[m]=s:o=s):"object"!=typeof s||null===s?kL("Object expected"):(jL(a=s.get)&&(b.get=a),jL(a=s.set)&&(b.set=a),jL(a=s.init)&&g.unshift(a));return d||FL(e,o),b&&wL(o,r,b),f?4^d?i:b:o},BL=(e,t,r)=>t.has(e)||kL("Cannot "+r),WL=(e,t)=>Object(t)!==t?kL('Cannot use the "in" operator on this value'):e.has(t),VL=(e,t,r)=>(BL(e,t,"read from private field"),r?r.call(e):t.get(e)),UL=(e,t,r)=>t.has(e)?kL("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),GL=(e,t,r,n)=>(BL(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),YL=(e,t,r)=>(BL(e,t,"access private method"),r);function KL(e,t){return{plugin:e,options:t}}function XL(e){return t=>KL(e,t)}function JL(e){return"function"==typeof e?{plugin:e,options:void 0}:e}mL=[_O];var ZL=class{constructor(e,t){this.manager=e,this.options=t,UL(this,vL,$L(gL,8,this,!1)),$L(gL,11,this),UL(this,bL,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return RT(()=>this.disabled)}configure(e){this.options=e}registerEffect(e){const t=VT(e.bind(this));return VL(this,bL).add(t),t}destroy(){VL(this,bL).forEach(e=>e())}static configure(e){return KL(this,e)}};gL=NL(null),vL=new WeakMap,bL=new WeakMap,HL(gL,4,"disabled",mL,ZL,vL),FL(gL,ZL);var QL,eq=class extends ZL{},tq=class{constructor(e){this.manager=e,this.instances=new Map,UL(this,QL,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(JL).reduceRight((e,t)=>e.some(({plugin:e})=>e===t.plugin)?e:[t,...e],[]),r=t.map(({plugin:e})=>e);for(const e of VL(this,QL))if(!r.includes(e)){if(e.prototype instanceof eq)continue;this.unregister(e)}for(const{plugin:e,options:r}of t)this.register(e,r);GL(this,QL,r)}get(e){return this.instances.get(e)}register(e,t){const r=this.instances.get(e);if(r)return r.options!==t&&(r.options=t),r;const n=new e(this.manager,t);return this.instances.set(e,n),n}unregister(e){const t=this.instances.get(e);t&&(t.destroy(),this.instances.delete(e))}destroy(){for(const e of this.instances.values())e.destroy();this.instances.clear()}};function rq(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}QL=new WeakMap;var nq,oq,iq=[],aq=class extends ZL{constructor(e){super(e),UL(this,nq),UL(this,oq),this.computeCollisions=this.computeCollisions.bind(this),GL(this,oq,qT(iq)),this.destroy=FO(()=>{const e=this.computeCollisions(),t=RT(()=>this.manager.dragOperation.position.current);if(e!==iq){const e=VL(this,nq);if(GL(this,nq,t),e&&t.x==e.x&&t.y==e.y)return}else GL(this,nq,void 0);VL(this,oq).value=e},()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()})}forceUpdate(e=!0){RT(()=>{e?VL(this,oq).value=this.computeCollisions():GL(this,nq,void 0)})}computeCollisions(e,t){const{registry:r,dragOperation:n}=this.manager,{source:o,shape:i,status:a}=n;if(!a.initialized||!i)return iq;const s=[],l=[];for(const i of null!=e?e:r.droppables){if(i.disabled)continue;if(o&&!i.accepts(o))continue;const e=null!=t?t:i.collisionDetector;if(!e)continue;l.push(i),i.shape;const r=RT(()=>e({droppable:i,dragOperation:n}));r&&(null!=i.collisionPriority&&(r.priority=i.collisionPriority),s.push(r))}return 0===l.length?iq:(s.sort(rq),s)}get collisions(){return VL(this,oq).value}};nq=new WeakMap,oq=new WeakMap;var sq=class{constructor(){this.registry=new Map}addEventListener(e,t){const{registry:r}=this,n=new Set(r.get(e));return n.add(t),r.set(e,n),()=>this.removeEventListener(e,t)}removeEventListener(e,t){const{registry:r}=this,n=new Set(r.get(e));n.delete(t),r.set(e,n)}dispatch(e,...t){const{registry:r}=this,n=r.get(e);if(n)for(const e of n)e(...t)}},lq=class extends sq{constructor(e){super(),this.manager=e}dispatch(e,t){const r=[t,this.manager];super.dispatch(e,...r)}};function uq(e,t=!0){let r=!1;return OL(TL({},e),{cancelable:t,get defaultPrevented(){return r},preventDefault(){t&&(r=!0)}})}var cq,dq,pq,fq,hq,mq,gq,vq,bq,yq=class extends eq{constructor(e){super(e);let t=[];this.destroy=FO(()=>{const{dragOperation:r,collisionObserver:n}=e;r.status.initializing&&(t=[],n.enable())},()=>{const{collisionObserver:r,monitor:n}=e,{collisions:o}=r;if(r.isDisabled())return;const i=uq({collisions:o});if(n.dispatch("collision",i),i.defaultPrevented)return;if(((e,t)=>e.map(({id:e})=>e).join("")===t.map(({id:e})=>e).join(""))(o,t))return;t=o;const[a]=o;RT(()=>{var t;(null==a?void 0:a.id)!==(null==(t=e.dragOperation.target)?void 0:t.id)&&(r.disable(),e.actions.setDropTarget(null==a?void 0:a.id).then(()=>{r.enable()}))})})}},xq=(e=>(e[e.Lowest=0]="Lowest",e[e.Low=1]="Low",e[e.Normal=2]="Normal",e[e.High=3]="High",e[e.Highest=4]="Highest",e))(xq||{}),Sq=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(Sq||{});gq=[_O],mq=[jO],hq=[jO],fq=[jO],pq=[jO],dq=[jO],cq=[jO];var wq=class{constructor(){$L(vq,5,this),UL(this,bq,$L(vq,8,this,"idle")),$L(vq,11,this)}get current(){return this.value}get idle(){return"idle"===this.value}get initializing(){return"initializing"===this.value}get initialized(){const{value:e}=this;return"idle"!==e&&"initialization-pending"!==e}get dragging(){return"dragging"===this.value}get dropped(){return"dropped"===this.value}set(e){this.value=e}};vq=NL(null),bq=new WeakMap,HL(vq,4,"value",gq,wq,bq),HL(vq,2,"current",mq,wq),HL(vq,2,"idle",hq,wq),HL(vq,2,"initializing",fq,wq),HL(vq,2,"initialized",pq,wq),HL(vq,2,"dragging",dq,wq),HL(vq,2,"dropped",cq,wq),FL(vq,wq);var Cq,Eq,Rq,Aq,Pq,Mq,Iq,kq,Dq,Tq=class{constructor(e){this.manager=e}setDragSource(e){const{dragOperation:t}=this.manager;t.sourceIdentifier="string"==typeof e||"number"==typeof e?e:e.id}setDropTarget(e){return RT(()=>{const{dragOperation:t}=this.manager,r=null!=e?e:null;if(t.targetIdentifier===r)return Promise.resolve(!1);t.targetIdentifier=r;const n=uq({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",n),this.manager.renderer.rendering.then(()=>n.defaultPrevented)})}start(e){return RT(()=>{const{dragOperation:t}=this.manager;null!=e.source&&this.setDragSource(e.source);if(!t.source)throw new Error("Cannot start a drag operation without a drag source");if(!t.status.idle)throw new Error("Cannot start a drag operation while another is active");const r=new AbortController,{event:n,coordinates:o}=e;CT(()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=n?n:null,t.position.reset(o)});const i=uq({operation:t.snapshot()});return this.manager.monitor.dispatch("beforedragstart",i),i.defaultPrevented?(t.reset(),r.abort(),r):(t.status.set("initializing"),t.controller=r,this.manager.renderer.rendering.then(()=>{if(r.signal.aborted)return;const{status:e}=t;"initializing"===e.current&&(t.status.set("dragging"),this.manager.monitor.dispatch("dragstart",{nativeEvent:n,operation:t.snapshot(),cancelable:!1}))}),r)})}move(e){return RT(()=>{var t,r;const{dragOperation:n}=this.manager,{status:o,controller:i}=n;if(!o.dragging||!i||i.signal.aborted)return;const a=uq({nativeEvent:e.event,operation:n.snapshot(),by:e.by,to:e.to},null==(t=e.cancelable)||t);(null==(r=e.propagate)||r)&&this.manager.monitor.dispatch("dragmove",a),queueMicrotask(()=>{var t,r,o,i,s;if(a.defaultPrevented)return;const l=null!=(s=e.to)?s:{x:n.position.current.x+(null!=(r=null==(t=e.by)?void 0:t.x)?r:0),y:n.position.current.y+(null!=(i=null==(o=e.by)?void 0:o.y)?i:0)};n.position.current=l})})}stop(e={}){return RT(()=>{var t,r;const{dragOperation:n}=this.manager,{controller:o}=n;if(!o||o.signal.aborted)return;let i;o.abort();const a=()=>{this.manager.renderer.rendering.then(()=>{n.status.set("dropped");const e=RT(()=>{var e;return"dropping"===(null==(e=n.source)?void 0:e.status)}),t=()=>{n.controller===o&&(n.controller=void 0),n.reset()};if(e){const{source:e}=n,r=VT(()=>{"idle"===(null==e?void 0:e.status)&&(r(),t())})}else this.manager.renderer.rendering.then(t)})};n.canceled=null!=(t=e.canceled)&&t,this.manager.monitor.dispatch("dragend",{nativeEvent:e.event,operation:n.snapshot(),canceled:null!=(r=e.canceled)&&r,suspend:()=>{const e={resume:()=>{},abort:()=>{}};return i=new Promise((t,r)=>{e.resume=t,e.abort=r}),e}}),i?i.then(a).catch(()=>n.reset()):a()})}};Aq=[_O],Rq=[_O],Eq=[_O],Cq=[_O];var Oq=class{constructor(e,t){UL(this,Mq,$L(Pq,8,this)),$L(Pq,11,this),UL(this,Iq,$L(Pq,12,this)),$L(Pq,15,this),UL(this,kq,$L(Pq,16,this)),$L(Pq,19,this),UL(this,Dq,$L(Pq,20,this)),$L(Pq,23,this);const{effects:r,id:n,data:o={},disabled:i=!1,register:a=!0}=e;let s=n;this.manager=t,this.id=n,this.data=o,this.disabled=i,this.effects=()=>{var e;return[()=>{const{id:e,manager:t}=this;if(e!==s)return null==t||t.registry.register(this),()=>null==t?void 0:t.registry.unregister(this)},...null!=(e=null==r?void 0:r())?e:[]]},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this),this.destroy=this.destroy.bind(this),t&&a&&queueMicrotask(this.register)}register(){var e;return null==(e=this.manager)?void 0:e.registry.register(this)}unregister(){var e;null==(e=this.manager)||e.registry.unregister(this)}destroy(){var e;null==(e=this.manager)||e.registry.unregister(this)}};Pq=NL(null),Mq=new WeakMap,Iq=new WeakMap,kq=new WeakMap,Dq=new WeakMap,HL(Pq,4,"manager",Aq,Oq,Mq),HL(Pq,4,"id",Rq,Oq,Iq),HL(Pq,4,"data",Eq,Oq,kq),HL(Pq,4,"disabled",Cq,Oq,Dq),FL(Pq,Oq);var Lq,qq,Nq,_q,jq,zq,Fq,$q,Hq,Bq,Wq,Vq,Uq,Gq,Yq,Kq,Xq,Jq,Zq,Qq,eN,tN,rN,nN,oN=class{constructor(){this.map=qT(new Map),this.cleanupFunctions=new WeakMap,this.register=(e,t)=>{const r=this.map.peek(),n=r.get(e),o=()=>this.unregister(e,t);if(n===t)return o;if(n){const e=this.cleanupFunctions.get(n);null==e||e(),this.cleanupFunctions.delete(n)}const i=new Map(r);i.set(e,t),this.map.value=i;const a=FO(...t.effects());return this.cleanupFunctions.set(t,a),o},this.unregister=(e,t)=>{const r=this.map.peek();if(r.get(e)!==t)return;const n=this.cleanupFunctions.get(t);null==n||n(),this.cleanupFunctions.delete(t);const o=new Map(r);o.delete(e),this.map.value=o}}[Symbol.iterator](){return this.map.peek().values()}get value(){return this.map.value.values()}has(e){return this.map.value.has(e)}get(e){return this.map.value.get(e)}destroy(){for(const e of this){const t=this.cleanupFunctions.get(e);null==t||t(),e.destroy()}this.map.value=new Map}},iN=class extends(Fq=Oq,zq=[_O],jq=[_O],_q=[_O],Nq=[jO],qq=[jO],Lq=[jO],Fq){constructor(e,t){var r=e,{modifiers:n,type:o,sensors:i}=r,a=qL(r,["modifiers","type","sensors"]);super(a,t),$L($q,5,this),UL(this,Hq,$L($q,8,this)),$L($q,11,this),UL(this,Bq,$L($q,12,this)),$L($q,15,this),UL(this,Wq,$L($q,16,this,this.isDragSource?"dragging":"idle")),$L($q,19,this),this.type=o,this.sensors=i,this.modifiers=n,this.alignment=a.alignment}get isDropping(){return"dropping"===this.status&&this.isDragSource}get isDragging(){return"dragging"===this.status&&this.isDragSource}get isDragSource(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.source)?void 0:t.id)===this.id}};$q=NL(Fq),Hq=new WeakMap,Bq=new WeakMap,Wq=new WeakMap,HL($q,4,"type",zq,iN,Hq),HL($q,4,"modifiers",jq,iN,Bq),HL($q,4,"status",_q,iN,Wq),HL($q,2,"isDropping",Nq,iN),HL($q,2,"isDragging",qq,iN),HL($q,2,"isDragSource",Lq,iN),FL($q,iN);var aN=class extends(Jq=Oq,Xq=[_O],Kq=[_O],Yq=[_O],Gq=[_O],Uq=[_O],Vq=[jO],Jq){constructor(e,t){var r=e,{accept:n,collisionDetector:o,collisionPriority:i,type:a}=r;super(qL(r,["accept","collisionDetector","collisionPriority","type"]),t),$L(Zq,5,this),UL(this,Qq,$L(Zq,8,this)),$L(Zq,11,this),UL(this,eN,$L(Zq,12,this)),$L(Zq,15,this),UL(this,tN,$L(Zq,16,this)),$L(Zq,19,this),UL(this,rN,$L(Zq,20,this)),$L(Zq,23,this),UL(this,nN,$L(Zq,24,this)),$L(Zq,27,this),this.accept=n,this.collisionDetector=o,this.collisionPriority=i,this.type=a}accepts(e){const{accept:t}=this;return!t||("function"==typeof t?t(e):!!e.type&&(Array.isArray(t)?t.includes(e.type):e.type===t))}get isDropTarget(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.target)?void 0:t.id)===this.id}};Zq=NL(Jq),Qq=new WeakMap,eN=new WeakMap,tN=new WeakMap,rN=new WeakMap,nN=new WeakMap,HL(Zq,4,"accept",Xq,aN,Qq),HL(Zq,4,"type",Kq,aN,eN),HL(Zq,4,"collisionDetector",Yq,aN,tN),HL(Zq,4,"collisionPriority",Gq,aN,rN),HL(Zq,4,"shape",Uq,aN,nN),HL(Zq,2,"isDropTarget",Vq,aN),FL(Zq,aN);var sN,lN=class extends ZL{constructor(e,t){super(e,t),this.manager=e,this.options=t}},uN=class extends AbortController{constructor(e,t){super(),this.constraints=e,this.onActivate=t,this.activated=!1;for(const t of null!=e?e:[])t.controller=this}onEvent(e){var t;if(!this.activated)if(null==(t=this.constraints)?void 0:t.length)for(const t of this.constraints)t.onEvent(e);else this.activate(e)}activate(e){this.activated||(this.activated=!0,this.onActivate(e))}abort(e){this.activated=!1,super.abort(e)}},cN=class{constructor(e){this.options=e,UL(this,sN)}set controller(e){GL(this,sN,e),e.signal.addEventListener("abort",()=>this.abort())}activate(e){var t;null==(t=VL(this,sN))||t.activate(e)}};sN=new WeakMap;var dN,pN,fN,hN,mN,gN,vN,bN,yN,xN,SN,wN,CN,EN,RN,AN,PN,MN,IN,kN=class extends ZL{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},DN=class{constructor(e){this.draggables=new oN,this.droppables=new oN,this.plugins=new tq(e),this.sensors=new tq(e),this.modifiers=new tq(e)}register(e,t){if(e instanceof iN)return this.draggables.register(e.id,e);if(e instanceof aN)return this.droppables.register(e.id,e);if(e.prototype instanceof kN)return this.modifiers.register(e,t);if(e.prototype instanceof lN)return this.sensors.register(e,t);if(e.prototype instanceof ZL)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof Oq)return e instanceof iN?this.draggables.unregister(e.id,e):e instanceof aN?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof kN)return this.modifiers.unregister(e);if(e.prototype instanceof lN)return this.sensors.unregister(e);if(e.prototype instanceof ZL)return this.plugins.unregister(e);throw new Error("Invalid instance type")}destroy(){this.draggables.destroy(),this.droppables.destroy(),this.plugins.destroy(),this.sensors.destroy(),this.modifiers.destroy()}};yN=[jO],bN=[_O],vN=[_O],gN=[_O],mN=[_O],hN=[_O],fN=[jO],pN=[jO],dN=[jO];var TN=class{constructor(e){$L(CN,5,this),UL(this,xN),UL(this,SN),UL(this,wN,new HO(void 0,(e,t)=>e&&t?e.equals(t):e===t)),this.status=new wq,UL(this,EN,$L(CN,8,this,!1)),$L(CN,11,this),UL(this,RN,$L(CN,12,this,null)),$L(CN,15,this),UL(this,AN,$L(CN,16,this,null)),$L(CN,19,this),UL(this,PN,$L(CN,20,this,null)),$L(CN,23,this),UL(this,MN,$L(CN,24,this,[])),$L(CN,27,this),this.position=new fL({x:0,y:0}),UL(this,IN,{x:0,y:0}),GL(this,xN,e)}get shape(){const{current:e,initial:t,previous:r}=VL(this,wN);return e&&t?{current:e,initial:t,previous:r}:null}set shape(e){e?VL(this,wN).current=e:VL(this,wN).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const r=VL(this,xN).registry.draggables.get(t);return r&&GL(this,SN,r),null!=(e=null!=r?r:VL(this,SN))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=VL(this,xN).registry.droppables.get(t))?e:null}get transform(){const{x:e,y:t}=this.position.delta;let r={x:e,y:t};for(const e of this.modifiers)r=e.apply(OL(TL({},this.snapshot()),{transform:r}));return GL(this,IN,r),r}snapshot(){return RT(()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:VL(this,IN),shape:this.shape?BO(this.shape):null,position:BO(this.position),status:BO(this.status),canceled:this.canceled}))}reset(){CT(()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,VL(this,wN).reset(),this.position.reset({x:0,y:0}),GL(this,IN,{x:0,y:0}),this.modifiers=[]})}};CN=NL(null),xN=new WeakMap,SN=new WeakMap,wN=new WeakMap,EN=new WeakMap,RN=new WeakMap,AN=new WeakMap,PN=new WeakMap,MN=new WeakMap,IN=new WeakMap,HL(CN,2,"shape",yN,TN),HL(CN,4,"canceled",bN,TN,EN),HL(CN,4,"activatorEvent",vN,TN,RN),HL(CN,4,"sourceIdentifier",gN,TN,AN),HL(CN,4,"targetIdentifier",mN,TN,PN),HL(CN,4,"modifiers",hN,TN,MN),HL(CN,2,"source",fN,TN),HL(CN,2,"target",pN,TN),HL(CN,2,"transform",dN,TN),FL(CN,TN);var ON={get rendering(){return Promise.resolve()}};function LN(e,t){return"function"==typeof e?e(t):null!=e?e:t}var qN=class{constructor(e){var t;this.destroy=()=>{this.dragOperation.status.idle||this.actions.stop({canceled:!0}),this.dragOperation.modifiers.forEach(e=>e.destroy()),this.registry.destroy(),this.collisionObserver.destroy()};const r=null!=e?e:{},n=LN(r.plugins,[]),o=LN(r.sensors,[]),i=LN(r.modifiers,[]),a=null!=(t=r.renderer)?t:ON,s=new lq(this),l=new DN(this);this.registry=l,this.monitor=s,this.renderer=a,this.actions=new Tq(this),this.dragOperation=new TN(this),this.collisionObserver=new aq(this),this.plugins=[yq,...n],this.modifiers=i,this.sensors=o;const{destroy:u}=this,c=FO(()=>{var e,t,r;const n=RT(()=>this.dragOperation.modifiers),o=this.modifiers;for(const e of n)o.includes(e)||e.destroy();this.dragOperation.modifiers=null!=(r=null==(t=null==(e=this.dragOperation.source)?void 0:e.modifiers)?void 0:t.map(e=>{const{plugin:t,options:r}=JL(e);return new t(this,r)}))?r:o});this.destroy=()=>{c(),u()}}get plugins(){return this.registry.plugins.values}set plugins(e){this.registry.plugins.values=e}get modifiers(){return this.registry.modifiers.values}set modifiers(e){this.registry.modifiers.values=e}get sensors(){return this.registry.sensors.values}set sensors(e){this.registry.sensors.values=e}},NN=e=>{throw TypeError(e)},_N=(e,t,r)=>t.has(e)||NN("Cannot "+r),jN=(e,t,r)=>(_N(e,t,"read from private field"),t.get(e)),zN=(e,t,r)=>t.has(e)?NN("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),FN=(e,t,r,n)=>(_N(e,t,"write to private field"),t.set(e,r),r),$N=(e,t,r)=>(_N(e,t,"access private method"),r);function HN(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function BN(e,t){const r=e.getAnimations();if(r.length>0)for(const e of r){if("running"!==e.playState)continue;const{effect:r}=e,n=(HN(r)?r.getKeyframes():[]).filter(t);if(n.length>0)return[n[n.length-1],e]}return null}function WN(e){const{width:t,height:r,top:n,left:o,bottom:i,right:a}=e.getBoundingClientRect();return{width:t,height:r,top:n,left:o,bottom:i,right:a}}function VN(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function UN(e){return"nodeType"in e}function GN(e){var t,r,n;return e?VN(e)?e:UN(e)?"defaultView"in e?null!=(t=e.defaultView)?t:window:null!=(n=null==(r=e.ownerDocument)?void 0:r.defaultView)?n:window:window:window}function YN(e){const{Document:t}=GN(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function KN(e){return!(!e||VN(e))&&(e instanceof GN(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function XN(e){return e instanceof GN(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function JN(e){return e?VN(e)?e.document:UN(e)?YN(e)?e:KN(e)||XN(e)?e.ownerDocument:document:document:document}function ZN(e,t){if(function(e){return"DETAILS"===e.tagName}(e)&&!1===e.open)return!1;const{overflow:r,overflowX:n,overflowY:o}=getComputedStyle(e);return"visible"===r&&"visible"===n&&"visible"===o}function QN(e,t=e.getBoundingClientRect(),r=0){var n,o,i,a,s;let l=t;const{ownerDocument:u}=e,c=null!=(n=u.defaultView)?n:window;let d=e.parentElement;for(;d&&d!==u.documentElement;){if(!ZN(d)){const e=d.getBoundingClientRect(),t=r*(e.bottom-e.top),n=r*(e.right-e.left),o=r*(e.bottom-e.top),i=r*(e.right-e.left);l={top:Math.max(l.top,e.top-t),right:Math.min(l.right,e.right+n),bottom:Math.min(l.bottom,e.bottom+o),left:Math.max(l.left,e.left-i),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top}d=d.parentElement}const p=c.visualViewport,f=null!=(o=null==p?void 0:p.offsetTop)?o:0,h=null!=(i=null==p?void 0:p.offsetLeft)?i:0,m=null!=(a=null==p?void 0:p.width)?a:c.innerWidth,g=null!=(s=null==p?void 0:p.height)?s:c.innerHeight,v=r*g,b=r*m;return l={top:Math.max(l.top,f-v),right:Math.min(l.right,h+m+b),bottom:Math.min(l.bottom,f+g+v),left:Math.max(l.left,h-b),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top,l.width<0&&(l.width=0),l.height<0&&(l.height=0),l}function e_(e){return{x:e.clientX,y:e.clientY}}var t_="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function r_(e=document,t=new Set){if(t.has(e))return[];t.add(e);const r=[e];for(const n of Array.from(e.querySelectorAll("iframe, frame")))try{const e=n.contentDocument;e&&!t.has(e)&&r.push(...r_(e,t))}catch(e){}try{const n=e.defaultView;if(n&&n!==window.top){const o=n.parent;o&&o.document&&o.document!==e&&r.push(...r_(o.document,t))}}catch(e){}return r}function n_(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function o_(){var e,t;const r=n_()?window.visualViewport:null;return{x:null!=(e=null==r?void 0:r.offsetLeft)?e:0,y:null!=(t=null==r?void 0:r.offsetTop)?t:0}}function i_(e){return!(!e||!UN(e))&&e instanceof GN(e).ShadowRoot}function a_(e){if(e&&UN(e)){let t=e.getRootNode();if(i_(t))return t;if(t instanceof Document)return t}return JN(e)}function s_(e){return e.matchMedia("(prefers-reduced-motion: reduce)").matches}function l_(e){return"value"in e}function u_(e){return"CANVAS"===e.tagName}function c_(e,{x:t,y:r}){const n=e.elementFromPoint(t,r);if(function(e){return"IFRAME"===(null==e?void 0:e.tagName)}(n)){const{contentDocument:e}=n;if(e){const{left:o,top:i}=n.getBoundingClientRect();return c_(e,{x:t-o,y:r-i})}}return n}var d_=new WeakMap;var p_=class{constructor(){this.entries=new Set,this.clear=()=>{for(const e of this.entries){const[t,{type:r,listener:n,options:o}]=e;t.removeEventListener(r,n,o)}this.entries.clear()}}bind(e,t){const r=Array.isArray(e)?e:[e],n=Array.isArray(t)?t:[t],o=[];for(const e of r)for(const t of n){const{type:r,listener:n,options:i}=t,a=[e,t];e.addEventListener(r,n,i),this.entries.add(a),o.push(a)}return function(){for(const[e,{type:t,listener:r,options:n}]of o)e.removeEventListener(t,r,n)}}};function f_(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function h_(e,t){const r=()=>performance.now();let n,o;return function(...i){const a=this;o?(null==n||n(),n=function(e,t){const r=setTimeout(e,t);return()=>clearTimeout(r)}(()=>{e.apply(a,i),o=r()},t-(r()-o))):(e.apply(a,i),o=r())}}var m_,g_=t_?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},v_=class extends g_{constructor(e){super(t=>{jN(this,m_)?e(t,this):FN(this,m_,!0)}),zN(this,m_,!1)}};m_=new WeakMap;var b_,y_,x_,S_,w_,C_,E_,R_,A_,P_,M_,I_=Array.from({length:100},(e,t)=>t/100),k_=class{constructor(e,t,r={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,zN(this,A_),this.disconnect=()=>{var e,t,r;FN(this,E_,!0),null==(e=jN(this,x_))||e.disconnect(),null==(t=jN(this,S_))||t.disconnect(),jN(this,w_).disconnect(),null==(r=jN(this,C_))||r.remove()},zN(this,b_,!0),zN(this,y_),zN(this,x_),zN(this,S_),zN(this,w_),zN(this,C_),zN(this,E_,!1),zN(this,R_,h_(()=>{var e,t,r;const{element:n}=this;if(null==(e=jN(this,S_))||e.disconnect(),jN(this,E_)||!jN(this,b_)||!n.isConnected)return;const o=null!=(t=n.ownerDocument)?t:document,{innerHeight:i,innerWidth:a}=null!=(r=o.defaultView)?r:window,s=n.getBoundingClientRect(),l=QN(n,s),{top:u,left:c,bottom:d,right:p}=l,f=-Math.floor(u),h=-Math.floor(c),m=`${f}px ${-Math.floor(a-p)}px ${-Math.floor(i-d)}px ${h}px`;this.boundingClientRect=s,FN(this,S_,new IntersectionObserver(e=>{const[t]=e,{intersectionRect:r}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:dL.intersectionRatio(r,QN(n)))&&jN(this,R_).call(this)},{threshold:I_,rootMargin:m,root:o})),jN(this,S_).observe(n),$N(this,A_,P_).call(this)},75)),this.boundingClientRect=e.getBoundingClientRect(),FN(this,b_,function(e,t=e.getBoundingClientRect()){const{width:r,height:n}=QN(e,t);return r>0&&n>0}(e,this.boundingClientRect));let n=!0;this.callback=e=>{n&&(n=!1,r.skipInitial)||t(e)};const o=e.ownerDocument;(null==r?void 0:r.debug)&&(FN(this,C_,document.createElement("div")),jN(this,C_).style.background="rgba(0,0,0,0.15)",jN(this,C_).style.position="fixed",jN(this,C_).style.pointerEvents="none",o.body.appendChild(jN(this,C_))),FN(this,w_,new IntersectionObserver(t=>{var r,n;const o=t[t.length-1],{boundingClientRect:i,isIntersecting:a}=o,{width:s,height:l}=i,u=jN(this,b_);FN(this,b_,a),(s||l)&&(u&&!a?(null==(r=jN(this,S_))||r.disconnect(),this.callback(null),null==(n=jN(this,x_))||n.disconnect(),FN(this,x_,void 0),jN(this,C_)&&(jN(this,C_).style.visibility="hidden")):jN(this,R_).call(this),a&&!jN(this,x_)&&(FN(this,x_,new v_(jN(this,R_))),jN(this,x_).observe(e)))},{threshold:I_,root:o})),jN(this,b_)&&!r.skipInitial&&this.callback(this.boundingClientRect),jN(this,w_).observe(e)}};b_=new WeakMap,y_=new WeakMap,x_=new WeakMap,S_=new WeakMap,w_=new WeakMap,C_=new WeakMap,E_=new WeakMap,R_=new WeakMap,A_=new WeakSet,P_=function(){jN(this,E_)||($N(this,A_,M_).call(this),function(e,t){return e===t||!(!e||!t)&&e.top==t.top&&e.left==t.left&&e.right==t.right&&e.bottom==t.bottom}(this.boundingClientRect,jN(this,y_))||(this.callback(this.boundingClientRect),FN(this,y_,this.boundingClientRect)))},M_=function(){if(jN(this,C_)){const{top:e,left:t,width:r,height:n}=QN(this.element);jN(this,C_).style.overflow="hidden",jN(this,C_).style.visibility="visible",jN(this,C_).style.top=`${Math.floor(e)}px`,jN(this,C_).style.left=`${Math.floor(t)}px`,jN(this,C_).style.width=`${Math.floor(r)}px`,jN(this,C_).style.height=`${Math.floor(n)}px`}};var D_,T_,O_,L_,q_=new WeakMap,N_=new WeakMap;function __(e,t){let r=q_.get(e);if(!r){const t=new k_(e,t=>{const r=q_.get(e);r&&r.callbacks.forEach(e=>e(t))},{skipInitial:!0});r={disconnect:t.disconnect,callbacks:new Set}}return r.callbacks.add(t),q_.set(e,r),()=>{r.callbacks.delete(t),0===r.callbacks.size&&(q_.delete(e),r.disconnect())}}var j_=class{constructor(e,t,r){this.callback=t,zN(this,D_),zN(this,T_,!1),zN(this,O_),zN(this,L_,h_(e=>{if(!jN(this,T_)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of jN(this,O_))if(e.target.contains(t)){this.callback(jN(this,D_).boundingClientRect);break}},75));const n=function(e){const t=new Set;let r=f_(e);for(;r;)t.add(r),r=f_(r);return t}(e),o=function(e,t){const r=new Set;for(const n of e){const e=__(n,t);r.add(e)}return()=>r.forEach(e=>e())}(n,t),i=function(e,t){var r;const n=e.ownerDocument;if(!N_.has(n)){const e=new AbortController,t=new Set;document.addEventListener("scroll",e=>t.forEach(t=>t(e)),{capture:!0,passive:!0,signal:e.signal}),N_.set(n,{disconnect:()=>e.abort(),listeners:t})}const{listeners:o,disconnect:i}=null!=(r=N_.get(n))?r:{};return o&&i?(o.add(t),()=>{o.delete(t),0===o.size&&(i(),N_.delete(n))}):()=>{}}(e,jN(this,L_));FN(this,O_,n),FN(this,D_,new k_(e,t,r)),this.disconnect=()=>{jN(this,T_)||(FN(this,T_,!0),o(),i(),jN(this,D_).disconnect())}}};function z_(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function F_(e){try{z_(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function $_(e){return!(!t_||!e)&&e===JN(e).scrollingElement}function H_(e){var t,r;const n=GN(e),o=$_(e)?function(e){var t,r,n,o;const{documentElement:i}=JN(e),a=GN(e).visualViewport,s=null!=(t=null==a?void 0:a.width)?t:i.clientWidth,l=null!=(r=null==a?void 0:a.height)?r:i.clientHeight,u=null!=(n=null==a?void 0:a.offsetTop)?n:0,c=null!=(o=null==a?void 0:a.offsetLeft)?o:0;return{top:u,left:c,right:c+s,bottom:u+l,width:s,height:l}}(e):WN(e),i=n.visualViewport,a=$_(e)?{height:null!=(t=null==i?void 0:i.height)?t:n.innerHeight,width:null!=(r=null==i?void 0:i.width)?r:n.innerWidth}:{height:e.clientHeight,width:e.clientWidth},s={current:{x:e.scrollLeft,y:e.scrollTop},max:{x:e.scrollWidth-a.width,y:e.scrollHeight-a.height}};return{rect:o,position:s,isTop:s.current.y<=0,isLeft:s.current.x<=0,isBottom:s.current.y>=s.max.y,isRight:s.current.x>=s.max.x}}function B_(e,t){const{isTop:r,isBottom:n,isLeft:o,isRight:i,position:a}=H_(e),{x:s,y:l}=null!=t?t:{x:0,y:0},u=!r&&a.current.y+l>0,c=!n&&a.current.y+l<a.max.y,d=!o&&a.current.x+s>0,p=!i&&a.current.x+s<a.max.x;return{top:u,bottom:c,left:d,right:p,x:d||p,y:u||c}}D_=new WeakMap,T_=new WeakMap,O_=new WeakMap,L_=new WeakMap;var W_=class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(e=>this.resolvers.add(e))}},V_=new W_(e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()}),U_=new W_(e=>setTimeout(e,50)),G_=new Map,Y_=G_.clear.bind(G_);function K_(e,t=!1){if(!t)return X_(e);let r=G_.get(e);return r||(r=X_(e),G_.set(e,r),U_.schedule(Y_),r)}function X_(e){return GN(e).getComputedStyle(e)}var J_={excludeElement:!0,escapeShadowDOM:!0};function Z_(e,t=J_){const{limit:r,excludeElement:n,escapeShadowDOM:o}=t,i=new Set;return e?function t(a){if(null!=r&&i.size>=r)return i;if(!a)return i;if(YN(a)&&null!=a.scrollingElement&&!i.has(a.scrollingElement))return i.add(a.scrollingElement),i;if(o&&i_(a))return t(a.host);if(!KN(a))return XN(a)?t(a.parentElement):i;if(i.has(a))return i;const s=K_(a,!0);if(n&&a===e||function(e,t=K_(e,!0)){const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const n=t[e];return"string"==typeof n&&r.test(n)})}(a,s)&&i.add(a),function(e,t=K_(e,!0)){return"fixed"===t.position||"sticky"===t.position}(a,s)){const{scrollingElement:e}=a.ownerDocument;return e&&i.add(e),i}return t(a.parentNode)}(e):i}function Q_(e,t=window.frameElement){const r={x:0,y:0,scaleX:1,scaleY:1};if(!e)return r;let n=f_(e);for(;n;){if(n===t)return r;const e=WN(n),{x:o,y:i}=ej(n,e);r.x=r.x+e.left,r.y=r.y+e.top,r.scaleX=r.scaleX*o,r.scaleY=r.scaleY*i,n=f_(n)}return r}function ej(e,t=WN(e)){const r=Math.round(t.width),n=Math.round(t.height);if(KN(e))return{x:r/e.offsetWidth,y:n/e.offsetHeight};const o=K_(e,!0);return{x:(parseFloat(o.width)||r)/r,y:(parseFloat(o.height)||n)/n}}function tj(e){if("none"===e)return null;const[t,r,n="0"]=e.split(" "),o={x:parseFloat(t),y:parseFloat(r),z:parseInt(n,10)};return isNaN(o.x)&&isNaN(o.y)?null:{x:isNaN(o.x)?0:o.x,y:isNaN(o.y)?0:o.y,z:isNaN(o.z)?0:o.z}}function rj(e){var t,r,n,o,i,a,s,l,u;const{scale:c,transform:d,translate:p}=e,f=function(e){if("none"===e)return null;const t=e.split(" "),r=parseFloat(t[0]),n=parseFloat(t[1]);return isNaN(r)&&isNaN(n)?null:{x:isNaN(r)?n:r,y:isNaN(n)?r:n}}(c),h=tj(p),m=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(d);if(!m&&!f&&!h)return null;const g=null!=(t=null==f?void 0:f.x)?t:1,v=null!=(r=null==f?void 0:f.y)?r:1,b=null!=(n=null==h?void 0:h.x)?n:0,y=null!=(o=null==h?void 0:h.y)?o:0,x=null!=(i=null==m?void 0:m.x)?i:0,S=null!=(a=null==m?void 0:m.y)?a:0,w=null!=(s=null==m?void 0:m.scaleX)?s:1,C=null!=(l=null==m?void 0:m.scaleY)?l:1;return{x:b+x,y:y+S,z:null!=(u=null==h?void 0:h.z)?u:0,scaleX:g*w,scaleY:v*C}}var nj=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(nj||{}),oj={x:.2,y:.2},ij={x:10,y:10};function aj(e,t,r,n=25,o=oj,i=ij){const{x:a,y:s}=t,{rect:l,isTop:u,isBottom:c,isLeft:d,isRight:p}=H_(e),f=Q_(e),h=rj(K_(e,!0)),m=null!==h&&(null==h?void 0:h.scaleX)<0,g=null!==h&&(null==h?void 0:h.scaleY)<0,v=new dL(l.left*f.scaleX+f.x,l.top*f.scaleY+f.y,l.width*f.scaleX,l.height*f.scaleY),b={x:0,y:0},y={x:0,y:0},x=v.height*o.y,S=v.width*o.x;return(!u||g&&!c)&&s<=v.top+x&&1!==(null==r?void 0:r.y)&&a>=v.left-i.x&&a<=v.right+i.x?(b.y=g?1:-1,y.y=n*Math.abs((v.top+x-s)/x)):(!c||g&&!u)&&s>=v.bottom-x&&-1!==(null==r?void 0:r.y)&&a>=v.left-i.x&&a<=v.right+i.x&&(b.y=g?-1:1,y.y=n*Math.abs((v.bottom-x-s)/x)),(!p||m&&!d)&&a>=v.right-S&&-1!==(null==r?void 0:r.x)&&s>=v.top-i.y&&s<=v.bottom+i.y?(b.x=m?-1:1,y.x=n*Math.abs((v.right-S-a)/S)):(!d||m&&!p)&&a<=v.left+S&&1!==(null==r?void 0:r.x)&&s>=v.top-i.y&&s<=v.bottom+i.y&&(b.x=m?1:-1,y.x=n*Math.abs((v.left+S-a)/S)),{direction:b,speed:y}}function sj(e,t=!1){if("scrollIntoViewIfNeeded"in(r=e)&&"function"==typeof r.scrollIntoViewIfNeeded)return void e.scrollIntoViewIfNeeded(t);var r;if(!KN(e))return e.scrollIntoView();var n=function(e){const[t]=Z_(e,{limit:1});return null!=t?t:null}(e);if(!KN(n))return;const o=K_(n,!0),i=parseInt(o.getPropertyValue("border-top-width")),a=parseInt(o.getPropertyValue("border-left-width")),s=e.offsetTop-n.offsetTop<n.scrollTop,l=e.offsetTop-n.offsetTop+e.clientHeight-i>n.scrollTop+n.clientHeight,u=e.offsetLeft-n.offsetLeft<n.scrollLeft,c=e.offsetLeft-n.offsetLeft+e.clientWidth-a>n.scrollLeft+n.clientWidth,d=s&&!l;(s||l)&&t&&(n.scrollTop=e.offsetTop-n.offsetTop-n.clientHeight/2-i+e.clientHeight/2),(u||c)&&t&&(n.scrollLeft=e.offsetLeft-n.offsetLeft-n.clientWidth/2-a+e.clientWidth/2),(s||l||u||c)&&!t&&e.scrollIntoView(d)}function lj({element:e,keyframes:t,options:r}){return e.animate(t,r).finished}function uj(e,t=K_(e).translate,r=!0){if(r){const t=BN(e,e=>"translate"in e);if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=tj(e);if(t)return t}}}if(t){const e=tj(t);if(e)return e}return{x:0,y:0,z:0}}var cj=new W_(e=>setTimeout(e,0)),dj=new Map,pj=dj.clear.bind(dj);function fj(e,t){const r=function(e){const t=e.ownerDocument;let r=dj.get(t);if(r)return r;r=t.getAnimations(),dj.set(t,r),cj.schedule(pj);const n=r.filter(t=>HN(t.effect)&&t.effect.target===e);return dj.set(e,n),r}(e).filter(e=>{var r,n;if(HN(e.effect)){const{target:o}=e.effect;if(null==(n=o&&(null==(r=t.isValidTarget)?void 0:r.call(t,o)))||n)return e.effect.getKeyframes().some(e=>{for(const r of t.properties)if(e[r])return!0})}}).map(e=>{const{effect:t,currentTime:r}=e,n=null==t?void 0:t.getComputedTiming().duration;if(!e.pending&&"finished"!==e.playState)return"number"==typeof n&&"number"==typeof r&&r<n?(e.currentTime=n,()=>{e.currentTime=r}):void 0});if(r.length>0)return()=>r.forEach(e=>null==e?void 0:e())}var hj=class extends dL{constructor(e,t={}){var r,n,o,i;const{frameTransform:a=Q_(e),ignoreTransforms:s,getBoundingClientRect:l=WN}=t,u=fj(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||n_())&&t.contains(e)}),c=l(e);let d,{top:p,left:f,width:h,height:m}=c;const g=K_(e),v=rj(g),b={x:null!=(r=null==v?void 0:v.scaleX)?r:1,y:null!=(n=null==v?void 0:v.scaleY)?n:1},y=function(e,t){var r;const n=e.getAnimations();let o=null;if(!n.length)return null;for(const e of n){if("running"!==e.playState)continue;const n=HN(e.effect)?e.effect.getKeyframes():[],i=n[n.length-1];if(!i)continue;const{transform:a,translate:s,scale:l}=i;if(a||s||l){const e=rj({transform:"string"==typeof a&&a?a:t.transform,translate:"string"==typeof s&&s?s:t.translate,scale:"string"==typeof l&&l?l:t.scale});e&&(o=o?{x:o.x+e.x,y:o.y+e.y,z:null!=(r=o.z)?r:e.z,scaleX:o.scaleX*e.scaleX,scaleY:o.scaleY*e.scaleY}:e)}}return o}(e,g);null==u||u(),v&&(d=function(e,t,r){const{scaleX:n,scaleY:o,x:i,y:a}=t,s=e.left-i-(1-n)*parseFloat(r),l=e.top-a-(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),u=n?e.width/n:e.width,c=o?e.height/o:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(c,v,g.transformOrigin),(s||y)&&(p=d.top,f=d.left,h=d.width,m=d.height));const x={width:null!=(o=null==d?void 0:d.width)?o:h,height:null!=(i=null==d?void 0:d.height)?i:m};if(y&&!s&&d){const e=function(e,t,r){const{scaleX:n,scaleY:o,x:i,y:a}=t,s=e.left+i+(1-n)*parseFloat(r),l=e.top+a+(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),u=n?e.width*n:e.width,c=o?e.height*o:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(d,y,g.transformOrigin);p=e.top,f=e.left,h=e.width,m=e.height,b.x=y.scaleX,b.y=y.scaleY}a&&(s||(f*=a.scaleX,h*=a.scaleX,p*=a.scaleY,m*=a.scaleY),f+=a.x,p+=a.y),super(f,p,h,m),this.scale=b,this.intrinsicWidth=x.width,this.intrinsicHeight=x.height}};function mj(e){return"style"in e&&"object"==typeof e.style&&null!==e.style&&"setProperty"in e.style&&"removeProperty"in e.style&&"function"==typeof e.style.setProperty&&"function"==typeof e.style.removeProperty}var gj=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:r}=this;if(mj(r))for(const[n,o]of Object.entries(e)){const e=`${t}${n}`;this.initial.has(e)||this.initial.set(e,r.style.getPropertyValue(e)),r.style.setProperty(e,"string"==typeof o?o:`${o}px`)}}remove(e,t=""){const{element:r}=this;if(mj(r))for(const n of e){const e=`${t}${n}`;r.style.removeProperty(e)}}reset(){const{element:e}=this;if(mj(e)){for(const[t,r]of this.initial)e.style.setProperty(t,r);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function vj(e){return!!e&&(e instanceof GN(e).Element||UN(e)&&e.nodeType===Node.ELEMENT_NODE)}function bj(e){if(!e)return!1;const{KeyboardEvent:t}=GN(e.target);return e instanceof t}var yj={};function xj(e){const t=null==yj[e]?0:yj[e]+1;return yj[e]=t,`${e}-${t}`}var Sj=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const r=e.position.current;if(!r)return null;const{id:n}=t;if(!t.shape)return null;if(t.shape.containsPoint(r))return{id:n,value:1/cL.distance(t.shape.center,r),type:Sq.PointerIntersection,priority:xq.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:r}=e;if(!t.shape||!(null==r?void 0:r.current))return null;const n=r.current.intersectionArea(t.shape);if(n){const{position:o}=e,i=cL.distance(t.shape.center,o.current),a=n/(r.current.area+t.shape.area-n)/i;return{id:t.id,value:a,type:Sq.ShapeIntersection,priority:xq.Normal}}return null})(e)},wj=e=>{const{dragOperation:t,droppable:r}=e,{shape:n,position:o}=t;if(!r.shape)return null;const i=n?dL.from(n.current.boundingRectangle).corners:void 0,a=dL.from(r.shape.boundingRectangle).corners.reduce((e,t,r)=>{var n;return e+cL.distance(cL.from(t),null!=(n=null==i?void 0:i[r])?n:o.current)},0),s=a/4;return{id:r.id,value:1/s,type:Sq.Collision,priority:xq.Normal}},Cj=Object.create,Ej=Object.defineProperty,Rj=Object.defineProperties,Aj=Object.getOwnPropertyDescriptor,Pj=Object.getOwnPropertyDescriptors,Mj=Object.getOwnPropertySymbols,Ij=Object.prototype.hasOwnProperty,kj=Object.prototype.propertyIsEnumerable,Dj=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Tj=e=>{throw TypeError(e)},Oj=(e,t,r)=>t in e?Ej(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Lj=(e,t)=>{for(var r in t||(t={}))Ij.call(t,r)&&Oj(e,r,t[r]);if(Mj)for(var r of Mj(t))kj.call(t,r)&&Oj(e,r,t[r]);return e},qj=(e,t)=>Rj(e,Pj(t)),Nj=(e,t)=>Ej(e,"name",{value:t,configurable:!0}),_j=(e,t)=>{var r={};for(var n in e)Ij.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&Mj)for(var n of Mj(e))t.indexOf(n)<0&&kj.call(e,n)&&(r[n]=e[n]);return r},jj=e=>{var t;return[,,,Cj(null!=(t=null==e?void 0:e[Dj("metadata")])?t:null)]},zj=["class","method","getter","setter","accessor","field","value","get","set"],Fj=e=>void 0!==e&&"function"!=typeof e?Tj("Function expected"):e,$j=(e,t,r,n,o)=>({kind:zj[e],name:t,metadata:n,addInitializer:e=>r._?Tj("Already initialized"):o.push(Fj(e||null))}),Hj=(e,t)=>Oj(t,Dj("metadata"),e[3]),Bj=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},Wj=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=zj[d+5],g=d>3&&(e[h-1]=[]),v=e[h]||(e[h]=[]),b=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&Aj(d<4?o:{get[r](){return Gj(this,i)},set[r](e){return Kj(this,i,e)}},r));d?f&&d<4&&Nj(i,(d>2?"set ":d>1?"get ":"")+r):Nj(o,r);for(var y=n.length-1;y>=0;y--)u=$j(d,r,l={},e[3],v),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>Uj(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?Gj:Xj)(e,o,4^d?i:b.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>Kj(e,o,t,4^d?i:b.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:b[m]:d>4?void 0:{get:b.get,set:b.set}:o,u),l._=1,4^d||void 0===s?Fj(s)&&(d>4?g.unshift(s):d?f?i=s:b[m]=s:o=s):"object"!=typeof s||null===s?Tj("Object expected"):(Fj(a=s.get)&&(b.get=a),Fj(a=s.set)&&(b.set=a),Fj(a=s.init)&&g.unshift(a));return d||Hj(e,o),b&&Ej(o,r,b),f?4^d?i:b:o},Vj=(e,t,r)=>t.has(e)||Tj("Cannot "+r),Uj=(e,t)=>Object(t)!==t?Tj('Cannot use the "in" operator on this value'):e.has(t),Gj=(e,t,r)=>(Vj(e,t,"read from private field"),r?r.call(e):t.get(e)),Yj=(e,t,r)=>t.has(e)?Tj("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Kj=(e,t,r,n)=>(Vj(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Xj=(e,t,r)=>(Vj(e,t,"access private method"),r),Jj="button",Zj="draggable",Qj="dnd-kit-description",ez="dnd-kit-announcement",tz={draggable:"To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item in a given direction. Press space again to drop the item in its new position, or press escape to cancel."},rz={dragstart({operation:{source:e}}){if(e)return`Picked up draggable item ${e.id}.`},dragover({operation:{source:e,target:t}}){if(e&&e.id!==(null==t?void 0:t.id))return t?`Draggable item ${e.id} was moved over droppable target ${t.id}.`:`Draggable item ${e.id} is no longer over a droppable target.`},dragend({operation:{source:e,target:t},canceled:r}){if(e)return r?`Dragging was cancelled. Draggable item ${e.id} was dropped.`:t?`Draggable item ${e.id} was dropped over droppable target ${t.id}`:`Draggable item ${e.id} was dropped.`}};function nz(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}var oz=["dragover","dragmove"],iz=class extends ZL{constructor(e,t){super(e);const{id:r,idPrefix:{description:n=Qj,announcement:o=ez}={},announcements:i=rz,screenReaderInstructions:a=tz,debounce:s=500}=null!=t?t:{},l=r?`${n}-${r}`:xj(n),u=r?`${o}-${r}`:xj(o);let c,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>V_.schedule(h),g=function(e,t){let r;const n=()=>{clearTimeout(r),r=setTimeout(e,t)};return n.cancel=()=>clearTimeout(r),n}(m,s),v=Object.entries(i).map(([e,t])=>this.manager.monitor.addEventListener(e,(r,n)=>{const o=p;if(!o)return;const i=null==t?void 0:t(r,n);i&&o.nodeValue!==i&&(f=i,oz.includes(e)?g():(m(),g.cancel()))})),b=()=>{let e=[];(null==c?void 0:c.isConnected)||(c=function(e,t){const r=document.createElement("div");return r.id=e,r.style.setProperty("display","none"),r.textContent=t,r}(l,a.draggable),e.push(c)),(null==d?void 0:d.isConnected)||(d=function(e){const t=document.createElement("div");return t.id=e,t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),t.style.setProperty("position","fixed"),t.style.setProperty("width","1px"),t.style.setProperty("height","1px"),t.style.setProperty("margin","-1px"),t.style.setProperty("border","0"),t.style.setProperty("padding","0"),t.style.setProperty("overflow","hidden"),t.style.setProperty("clip","rect(0 0 0 0)"),t.style.setProperty("clip-path","inset(100%)"),t.style.setProperty("white-space","nowrap"),t}(u),p=document.createTextNode(""),d.appendChild(p),e.push(d)),e.length>0&&document.body.append(...e)},y=new Set;function x(){for(const e of y)e()}this.registerEffect(()=>{var e;y.clear();for(const t of this.manager.registry.draggables.value){const r=null!=(e=t.handle)?e:t.element;if(r){c&&d||y.add(b),nz(r)&&!n_()||r.hasAttribute("tabindex")||y.add(()=>r.setAttribute("tabindex","0")),r.hasAttribute("role")||"button"===r.tagName.toLowerCase()||y.add(()=>r.setAttribute("role",Jj)),r.hasAttribute("aria-roledescription")||y.add(()=>r.setAttribute("aria-roledescription",Zj)),r.hasAttribute("aria-describedby")||y.add(()=>r.setAttribute("aria-describedby",l));for(const e of["aria-pressed","aria-grabbed"]){const n=String(t.isDragging);r.getAttribute(e)!==n&&y.add(()=>r.setAttribute(e,n))}const e=String(t.disabled);r.getAttribute("aria-disabled")!==e&&y.add(()=>r.setAttribute("aria-disabled",e))}}y.size>0&&V_.schedule(x)}),this.destroy=()=>{super.destroy(),null==c||c.remove(),null==d||d.remove(),v.forEach(e=>e())}}};var az,sz,lz,uz,cz,dz,pz,fz,hz,mz,gz,vz,bz,yz=new Map,xz=class extends(cz=eq,uz=[_O],lz=[jO],sz=[jO],az=[jO],cz){constructor(e){super(e),Bj(pz,5,this),Yj(this,hz),Yj(this,dz,new Set),Yj(this,fz,Bj(pz,8,this,new Set)),Bj(pz,11,this),this.registerEffect(Xj(this,hz,mz))}register(e){return Gj(this,dz).add(e),()=>{Gj(this,dz).delete(e)}}addRoot(e){return RT(()=>{const t=new Set(this.additionalRoots);t.add(e),this.additionalRoots=t}),()=>{RT(()=>{const t=new Set(this.additionalRoots);t.delete(e),this.additionalRoots=t})}}get sourceRoot(){var e;const{source:t}=this.manager.dragOperation;return a_(null!=(e=null==t?void 0:t.element)?e:null)}get targetRoot(){var e;const{target:t}=this.manager.dragOperation;return a_(null!=(e=null==t?void 0:t.element)?e:null)}get roots(){const{status:e}=this.manager.dragOperation;if(e.initializing||e.initialized){const e=[this.sourceRoot,this.targetRoot].filter(e=>null!=e);return new Set([...e,...this.additionalRoots])}return new Set}};pz=jj(cz),dz=new WeakMap,fz=new WeakMap,hz=new WeakSet,mz=function(){const{roots:e}=this,t=[];for(const r of e)for(const e of Gj(this,dz))t.push(Xj(this,hz,gz).call(this,r,e));return()=>{for(const e of t)e()}},gz=function(e,t){let r=yz.get(e);r||(r=new Map,yz.set(e,r));let n=r.get(t);if(!n){const o=YN(e)?Xj(this,hz,vz).call(this,e,r,t):Xj(this,hz,bz).call(this,e,r,t);if(!o)return()=>{};n=o,r.set(t,n)}n.refCount++;let o=!1;return()=>{o||(o=!0,n.refCount--,0===n.refCount&&n.cleanup())}},vz=function(e,t,r){const n=e.createElement("style");n.textContent=r,e.head.prepend(n);const o=new MutationObserver(t=>{for(const r of t)for(const t of Array.from(r.removedNodes))if(t===n)return void e.head.prepend(n)});return o.observe(e.head,{childList:!0}),{refCount:0,cleanup:()=>{o.disconnect(),n.remove(),t.delete(r),0===t.size&&yz.delete(e)}}},bz=function(e,t,r){!("adoptedStyleSheets"in e)||Array.isArray(e.adoptedStyleSheets);const n=e.ownerDocument.defaultView,{CSSStyleSheet:o}=null!=n?n:{};if(!o)return null;const i=new o;return i.replaceSync(r),e.adoptedStyleSheets.push(i),{refCount:0,cleanup:()=>{var n;if(i_(e)&&(null==(n=e.host)?void 0:n.isConnected)){const t=e.adoptedStyleSheets.indexOf(i);-1!==t&&e.adoptedStyleSheets.splice(t,1)}t.delete(r),0===t.size&&yz.delete(e)}}},Wj(pz,4,"additionalRoots",uz,xz,fz),Wj(pz,2,"sourceRoot",lz,xz),Wj(pz,2,"targetRoot",sz,xz),Wj(pz,2,"roots",az,xz),Hj(pz,xz);var Sz="data-dnd-",wz=`${Sz}dropping`,Cz="--dnd-",Ez=`${Sz}dragging`,Rz=`${Sz}placeholder`,Az=[Ez,Rz,"popover","aria-pressed","aria-grabbing"],Pz=["view-transition-name"],Mz=`\n :is(:root,:host) [${Ez}] {\n position: fixed !important;\n pointer-events: none !important;\n touch-action: none;\n z-index: calc(infinity);\n will-change: translate;\n top: var(${Cz}top, 0px) !important;\n left: var(${Cz}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${Cz}width, auto);\n max-width: var(${Cz}width, auto);\n height: var(${Cz}height, auto);\n max-height: var(${Cz}height, auto);\n transition: var(${Cz}transition) !important;\n }\n\n :is(:root,:host) [${Rz}] {\n transition: none;\n }\n\n :is(:root,:host) [${Rz}='hidden'] {\n visibility: hidden;\n }\n\n [${Ez}] * {\n pointer-events: none !important;\n }\n\n [${Ez}]:not([${wz}]) {\n translate: var(${Cz}translate) !important;\n }\n\n [${Ez}][style*='${Cz}scale'] {\n scale: var(${Cz}scale) !important;\n transform-origin: var(${Cz}transform-origin) !important;\n }\n\n @layer dnd-kit {\n :where([${Ez}][popover]) {\n overflow: visible;\n background: unset;\n border: unset;\n margin: unset;\n padding: unset;\n color: inherit;\n\n &:is(input, button) {\n border: revert;\n background: revert;\n }\n }\n }\n [${Ez}]::backdrop, [${Sz}overlay]:not([${Ez}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function Iz(e,t="hidden"){return RT(()=>{const{element:r,manager:n}=e;if(!r||!n)return;const o=function(e,t){const r=new Map;for(const n of t)if(n.element&&(e===n.element||e.contains(n.element))){const e=`${Sz}${xj("dom-id")}`;n.element.setAttribute(e,""),r.set(n,e)}return r}(r,n.registry.droppables),i=[],a=function(e){const t="input, textarea, select, canvas, [contenteditable]",r=e.cloneNode(!0),n=Array.from(e.querySelectorAll(t));return Array.from(r.querySelectorAll(t)).forEach((e,t)=>{const r=n[t];if(l_(e)&&l_(r)&&("file"!==e.type&&(e.value=r.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),u_(e)&&u_(r)&&r.width>0&&r.height>0){const t=e.getContext("2d");null==t||t.drawImage(r,0,0)}}),r}(r),{remove:s}=a;return function(e,t,r){for(const[n,o]of e){if(!n.element)continue;const e=`[${o}]`,i=t.matches(e)?t:t.querySelector(e);if(n.element.removeAttribute(o),!i)continue;const a=n.element;n.proxy=i,i.removeAttribute(o),d_.set(a,i),r.push(()=>{d_.delete(a),n.proxy=void 0})}}(o,a,i),function(e,t="hidden"){e.setAttribute("inert","true"),e.setAttribute("tab-index","-1"),e.setAttribute("aria-hidden","true"),e.setAttribute(Rz,t)}(a,t),a.remove=()=>{i.forEach(e=>e()),s.call(a)},a})}function kz(e,t){return e===t||f_(e)===f_(t)}function Dz(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&vj(t)&&t.hasAttribute("popover")&&requestAnimationFrame(()=>F_(t))}function Tz(e){return"TR"===e.tagName}var Oz,Lz,qz,Nz,_z,jz,zz,Fz=250,$z="ease";var Hz=class extends(Lz=ZL,Oz=[_O],Lz){constructor(e,t){super(e,t),Yj(this,_z),Yj(this,Nz,Bj(qz,8,this)),Bj(qz,11,this),this.state={initial:{},current:{}};const r=e.registry.plugins.get(xz),n=null==r?void 0:r.register(Mz);if(n){const e=this.destroy.bind(this);this.destroy=()=>{n(),e()}}this.registerEffect(Xj(this,_z,jz).bind(this,r)),this.registerEffect(Xj(this,_z,zz))}};qz=jj(Lz),Nz=new WeakMap,_z=new WeakSet,jz=function(e){const{overlay:t}=this;if(!t||!e)return;const r=a_(t);return r?e.addRoot(r):void 0},zz=function(){var e,t,r;const{state:n,manager:o,options:i}=this,{dragOperation:a}=o,{position:s,source:l,status:u}=a;if(u.idle)return n.current={},void(n.initial={});if(!l)return;const{element:c,feedback:d}=l;if(!c||"none"===d||!u.initialized||u.initializing)return;const{initial:p}=n,f=null!=(e=this.overlay)?e:c,h=Q_(f),m=Q_(c),g=!kz(c,f),v=new hj(c,{frameTransform:g?m:null,ignoreTransforms:!g}),b=m.scaleX/h.scaleX,y=m.scaleY/h.scaleY;let{width:x,height:S,top:w,left:C}=v;g&&(x/=b,S/=y);const E=new gj(f),{transition:R,translate:A,boxSizing:P,paddingBlockStart:M,paddingBlockEnd:I,paddingInlineStart:k,paddingInlineEnd:D,borderInlineStartWidth:T,borderInlineEndWidth:O,borderBlockStartWidth:L,borderBlockEndWidth:q}=K_(c),N="clone"===d,_="content-box"===P,j=_?parseInt(k)+parseInt(D)+parseInt(T)+parseInt(O):0,z=_?parseInt(M)+parseInt(I)+parseInt(L)+parseInt(q):0,F="move"===d||this.overlay?null:Iz(l,N?"clone":"hidden"),$=RT(()=>bj(o.dragOperation.activatorEvent));if("none"!==A){const e=tj(A);e&&!p.translate&&(p.translate=e)}if(!p.transformOrigin){const e=RT(()=>s.current);p.transformOrigin={x:(e.x-C*h.scaleX-h.x)/(x*h.scaleX),y:(e.y-w*h.scaleY-h.y)/(S*h.scaleY)}}const{transformOrigin:H}=p,B=w*h.scaleY+h.y,W=C*h.scaleX+h.x;if(!p.coordinates&&(p.coordinates={x:W,y:B},1!==b||1!==y)){const{scaleX:e,scaleY:t}=m,{x:r,y:n}=H;p.coordinates.x+=(x*e-x)*r,p.coordinates.y+=(S*t-S)*n}p.dimensions||(p.dimensions={width:x,height:S}),p.frameTransform||(p.frameTransform=h);const V=p.coordinates.x-W,U=p.coordinates.y-B,G=(p.dimensions.width*p.frameTransform.scaleX-x*h.scaleX)*H.x,Y=(p.dimensions.height*p.frameTransform.scaleY-S*h.scaleY)*H.y,K={x:V/h.scaleX+G,y:U/h.scaleY+Y},X=C+K.x,J=w+K.y;f.setAttribute(Ez,"true");const Z=RT(()=>a.transform),Q=null!=(t=p.translate)?t:{x:0,y:0},ee=Z.x*h.scaleX+Q.x,te=Z.y*h.scaleY+Q.y,re=o_();if(E.set({width:x-j,height:S-z,top:J+re.y,left:X+re.x,translate:`${ee}px ${te}px 0`,transition:R?`${R}, translate 0ms linear`:"",scale:g?`${b} ${y}`:"","transform-origin":`${100*H.x}% ${100*H.y}%`},Cz),F&&(c.insertAdjacentElement("afterend",F),null==i?void 0:i.rootElement)){("function"==typeof i.rootElement?i.rootElement(l):i.rootElement).appendChild(c)}let ne,oe,ie;z_(f)&&(f.hasAttribute("popover")||f.setAttribute("popover","manual"),F_(f),f.addEventListener("beforetoggle",Dz));const ae=(se={placeholder:F,element:c,feedbackElement:f,frameTransform:h,transformOrigin:H,width:x,height:S,top:w,left:C,widthOffset:j,heightOffset:z,delta:K,styles:E,dragOperation:a,getElementMutationObserver:()=>ne,getSavedCellWidths:()=>ie,setSavedCellWidths:e=>{ie=e}},new ResizeObserver(()=>{var e,t;const r=new hj(se.placeholder,{frameTransform:se.frameTransform,ignoreTransforms:!0}),n=null!=(e=se.transformOrigin)?e:{x:1,y:1},o=(se.width-r.width)*n.x+se.delta.x,i=(se.height-r.height)*n.y+se.delta.y,a=o_();if(se.styles.set({width:r.width-se.widthOffset,height:r.height-se.heightOffset,top:se.top+i+a.y,left:se.left+o+a.x},Cz),null==(t=se.getElementMutationObserver())||t.takeRecords(),Tz(se.element)&&Tz(se.placeholder)){const e=Array.from(se.element.cells),t=Array.from(se.placeholder.cells);se.getSavedCellWidths()||se.setSavedCellWidths(e.map(e=>e.style.width));for(const[r,n]of e.entries()){const e=t[r];n.style.width=`${e.getBoundingClientRect().width}px`}}se.dragOperation.shape=new hj(se.feedbackElement)}));var se;const le=new hj(f);RT(()=>a.shape=le);const ue=GN(f),ce=e=>{this.manager.actions.stop({event:e})},de=s_(ue);$&&ue.addEventListener("resize",ce),"idle"===RT(()=>l.status)&&requestAnimationFrame(()=>l.status="dragging"),F&&(ae.observe(F),ne=function(e,t,r){const n=new MutationObserver(n=>{let o=!1;for(const r of n){if(r.target!==e){o=!0;continue}if("attributes"!==r.type)continue;const n=r.attributeName;if(n.startsWith("aria-")||Az.includes(n))continue;const i=e.getAttribute(n);if("style"===n){if(mj(e)&&mj(t)){const r=e.style;for(const e of Array.from(t.style))""===r.getPropertyValue(e)&&t.style.removeProperty(e);for(const e of Array.from(r)){if(Pz.includes(e)||e.startsWith(Cz))continue;const n=r.getPropertyValue(e);t.style.setProperty(e,n)}}}else null!==i?t.setAttribute(n,i):t.removeAttribute(n)}o&&r&&(t.innerHTML=e.innerHTML)});return n.observe(e,{attributes:!0,subtree:!0,childList:!0}),n}(c,F,N),oe=function(e,t,r){const n=new MutationObserver(n=>{for(const o of n)if(0!==o.addedNodes.length)for(const n of Array.from(o.addedNodes)){if(n.contains(e)&&e.nextElementSibling!==t)return e.insertAdjacentElement("afterend",t),void F_(r);if(n.contains(t)&&t.previousElementSibling!==e)return t.insertAdjacentElement("beforebegin",e),void F_(r)}});return n.observe(e.ownerDocument.body,{childList:!0,subtree:!0}),n}(c,F,f));const pe=null==(r=o.dragOperation.source)?void 0:r.id,fe=()=>{var e;if(!$||null==pe)return;const t=o.registry.draggables.get(pe),r=null!=(e=null==t?void 0:t.handle)?e:null==t?void 0:t.element;KN(r)&&r.focus()},he=()=>{var e;if(null==ne||ne.disconnect(),null==oe||oe.disconnect(),ae.disconnect(),ue.removeEventListener("resize",ce),z_(f)&&(f.removeEventListener("beforetoggle",Dz),f.removeAttribute("popover")),f.removeAttribute(Ez),E.reset(),ie&&Tz(c)){const t=Array.from(c.cells);for(const[r,n]of t.entries())n.style.width=null!=(e=ie[r])?e:""}l.status="idle";const t=null!=n.current.translate;F&&(t||F.parentElement!==f.parentElement)&&f.isConnected&&F.replaceWith(f),null==F||F.remove()},me=null==i?void 0:i.dropAnimation,ge=this,ve=FO(()=>{var e;const{transform:t,status:r}=a;if((t.x||t.y||n.current.translate)&&r.dragging){const r=null!=(e=p.translate)?e:{x:0,y:0},o={x:t.x/h.scaleX+r.x,y:t.y/h.scaleY+r.y},i=n.current.translate,s=RT(()=>a.modifiers),l=RT(()=>{var e;return null==(e=a.shape)?void 0:e.current}),u=$&&!de?"250ms cubic-bezier(0.25, 1, 0.5, 1)":"0ms linear";if(E.set({transition:`${R}, translate ${u}`,translate:`${o.x}px ${o.y}px 0`},Cz),null==ne||ne.takeRecords(),l&&l!==le&&i&&!s.length){const e=cL.delta(o,i);a.shape=dL.from(l.boundingRectangle).translate(e.x*h.scaleX,e.y*h.scaleY)}else a.shape=new hj(f);n.current.translate=o}},function(){if(a.status.dropped){this.dispose(),l.status="dropping";const e=void 0!==ge.dropAnimation?ge.dropAnimation:me;let t=n.current.translate;const r=null!=t;if(t||c===f||(t={x:0,y:0}),!t||null===e)return void he();o.renderer.rendering.then(()=>{!function(e){var t,r,n,o;const{animation:i}=e;if("function"==typeof i){const t=i({element:e.element,feedbackElement:e.feedbackElement,placeholder:e.placeholder,translate:e.translate,moved:e.moved});return void Promise.resolve(t).then(()=>{e.cleanup(),requestAnimationFrame(e.restoreFocus)})}const{duration:a=Fz,easing:s=$z}=null!=i?i:{};F_(e.feedbackElement);const[,l]=null!=(t=BN(e.feedbackElement,e=>"translate"in e))?t:[];null==l||l.pause();const u=null!=(r=e.placeholder)?r:e.element,c={frameTransform:kz(e.feedbackElement,u)?null:void 0},d=new hj(e.feedbackElement,c),p=null!=(n=tj(K_(e.feedbackElement).translate))?n:e.translate,f=new hj(u,c),h=dL.delta(d,f,e.alignment),m=p.x-h.x,g=p.y-h.y,v=Math.round(d.intrinsicHeight)!==Math.round(f.intrinsicHeight)?{minHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`],maxHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`]}:{},b=Math.round(d.intrinsicWidth)!==Math.round(f.intrinsicWidth)?{minWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`],maxWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`]}:{};e.styles.set({transition:e.transition},Cz),e.feedbackElement.setAttribute(wz,""),null==(o=e.getElementMutationObserver())||o.takeRecords(),lj({element:e.feedbackElement,keyframes:qj(Lj(Lj({},v),b),{translate:[`${p.x}px ${p.y}px 0`,`${m}px ${g}px 0`]}),options:{duration:s_(GN(e.feedbackElement))?0:e.moved||e.feedbackElement!==e.element?a:0,easing:s}}).then(()=>{e.feedbackElement.removeAttribute(wz),null==l||l.finish(),e.cleanup(),requestAnimationFrame(e.restoreFocus)})}({element:c,feedbackElement:f,placeholder:F,translate:t,moved:r,transition:R,alignment:l.alignment,styles:E,animation:null!=e?e:void 0,getElementMutationObserver:()=>ne,cleanup:he,restoreFocus:fe})})}});return()=>{he(),ve()}},Wj(qz,4,"overlay",Oz,Hz,Nz),Hj(qz,Hz),Hz.configure=XL(Hz);var Bz,Wz,Vz,Uz,Gz,Yz,Kz,Xz=Hz,Jz=!0;Vz=[_O],Uz=nj.Forward,Bz=[_O],Wz=nj.Reverse;var Zz=class{constructor(){Yj(this,Yz,Bj(Gz,8,this,Jz)),Bj(Gz,11,this),Yj(this,Kz,Bj(Gz,12,this,Jz)),Bj(Gz,15,this)}isLocked(e){return e!==nj.Idle&&(null==e?this[nj.Forward]===Jz&&this[nj.Reverse]===Jz:this[e]===Jz)}unlock(e){e!==nj.Idle&&(this[e]=false)}};Gz=jj(null),Yz=new WeakMap,Kz=new WeakMap,Wj(Gz,4,Uz,Vz,Zz,Yz),Wj(Gz,4,Wz,Bz,Zz,Kz),Hj(Gz,Zz);var Qz,eF,tF,rF,nF,oF,iF=[nj.Forward,nj.Reverse],aF=class{constructor(){this.x=new Zz,this.y=new Zz}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},sF=class extends ZL{constructor(e){super(e);const t=qT(new aF);let r=null;this.signal=t,VT(()=>{const{status:n}=e.dragOperation;if(!n.initialized)return r=null,void(t.value=new aF);const{delta:o}=e.dragOperation.position;if(r){const e={x:lF(o.x,r.x),y:lF(o.y,r.y)},n=t.peek();CT(()=>{for(const t of xL)for(const r of iF)e[t]===r&&n[t].unlock(r);t.value=n})}r=o})}get current(){return this.signal.peek()}};function lF(e,t){return Math.sign(e-t)}var uF=class extends(eF=eq,Qz=[_O],eF){constructor(e){super(e),Yj(this,rF,Bj(tF,8,this,!1)),Bj(tF,11,this),Yj(this,nF),Yj(this,oF,()=>{if(!Gj(this,nF))return;const{element:e,by:t}=Gj(this,nF);t.y&&(e.scrollTop+=t.y),t.x&&(e.scrollLeft+=t.x)}),this.scroll=e=>{var t;if(this.disabled)return!1;const r=this.getScrollableElements();if(!r)return Kj(this,nF,void 0),!1;const{position:n}=this.manager.dragOperation,o=null==n?void 0:n.current;if(o){const{by:n}=null!=e?e:{},i=n?{x:cF(n.x),y:cF(n.y)}:void 0,a=i?void 0:this.scrollIntentTracker.current;if(null==a?void 0:a.isLocked())return!1;for(const e of r){const r=B_(e,n);if(r.x||r.y){const{speed:r,direction:s}=aj(e,o,i);if(a)for(const e of xL)a[e].isLocked(s[e])&&(r[e]=0,s[e]=0);if(s.x||s.y){const{x:o,y:i}=null!=n?n:s,a=o*r.x,l=i*r.y;if(a||l){const r=null==(t=Gj(this,nF))?void 0:t.by;if(this.autoScrolling&&r){if(r.x&&!a||r.y&&!l)continue}return Kj(this,nF,{element:e,by:{x:a,y:l}}),V_.schedule(Gj(this,oF)),!0}}}}}return Kj(this,nF,void 0),!1};let t=null,r=null;const n=qO(()=>{const{position:r,source:n}=e.dragOperation;if(!r)return null;const o=c_(a_(null==n?void 0:n.element),r.current);return o&&(t=o),null!=o?o:t}),o=qO(()=>{const t=n.value,{documentElement:o}=JN(t);if(!t||t===o){const{target:t}=e.dragOperation,n=null==t?void 0:t.element;if(n){const e=Z_(n,{excludeElement:!1});return r=e,e}}if(t){const e=Z_(t,{excludeElement:!1});return this.autoScrolling&&r&&e.size<(null==r?void 0:r.size)?r:(r=e,e)}return r=null,null},NO);this.getScrollableElements=()=>o.value,this.scrollIntentTracker=new sF(e),this.destroy=e.monitor.addEventListener("dragmove",t=>{!this.disabled&&!t.defaultPrevented&&bj(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()})}};function cF(e){return e>0?nj.Forward:e<0?nj.Reverse:nj.Idle}tF=jj(eF),rF=new WeakMap,nF=new WeakMap,oF=new WeakMap,Wj(tF,4,"autoScrolling",Qz,uF,rF),Hj(tF,uF);var dF,pF=new class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(e=>this.resolvers.add(e))}}(e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()}),fF=class extends ZL{constructor(e,t){super(e);const r=e.registry.plugins.get(uF);if(!r)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=VT(()=>{if(this.disabled)return;const{position:t,status:n}=e.dragOperation;if(n.dragging){if(r.scroll()){r.autoScrolling=!0;const e=setInterval(()=>pF.schedule(r.scroll),10);return()=>{clearInterval(e)}}r.autoScrolling=!1}})}},hF={capture:!0,passive:!0},mF=class extends eq{constructor(e){super(e),Yj(this,dF),this.handleScroll=()=>{null==Gj(this,dF)&&Kj(this,dF,setTimeout(()=>{this.manager.collisionObserver.forceUpdate(!1),Kj(this,dF,void 0)},50))};const{dragOperation:t}=this.manager;this.destroy=VT(()=>{var e,r,n;if(t.status.dragging){const o=null!=(n=null==(r=null==(e=t.source)?void 0:e.element)?void 0:r.ownerDocument)?n:document;return o.addEventListener("scroll",this.handleScroll,hF),()=>{o.removeEventListener("scroll",this.handleScroll,hF)}}})}};dF=new WeakMap;function gF(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var vF,bF=Object.freeze({offset:10,keyboardCodes:{start:["Space","Enter"],cancel:["Escape"],end:["Space","Enter","Tab"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},preventActivation(e,t){var r;const n=null!=(r=t.handle)?r:t.element;return e.target!==n}}),yF=class extends lN{constructor(e,t){super(e),this.manager=e,this.options=t,Yj(this,vF,[]),this.listeners=new p_,this.handleSourceKeyDown=(e,t,r)=>{if(this.disabled||e.defaultPrevented)return;if(!vj(e.target))return;if(t.disabled)return;const{keyboardCodes:n=bF.keyboardCodes,preventActivation:o=bF.preventActivation}=null!=r?r:{};n.start.includes(e.code)&&this.manager.dragOperation.status.idle&&((null==o?void 0:o(e,t))||this.handleStart(e,t,r))}}bind(e,t=this.options){const r=VT(()=>{var r;const n=null!=(r=e.handle)?r:e.element,o=r=>{bj(r)&&this.handleSourceKeyDown(r,e,t)};if(n)return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}});return r}handleStart(e,t,r){const{element:n}=t;if(!n)throw new Error("Source draggable does not have an associated element");e.preventDefault(),e.stopImmediatePropagation(),sj(n);const{center:o}=new hj(n);if(this.manager.actions.start({event:e,coordinates:{x:o.x,y:o.y},source:t}).signal.aborted)return this.cleanup();this.sideEffects();const i=JN(n),a=[this.listeners.bind(i,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,r),options:{capture:!0}}])];Gj(this,vF).push(...a)}handleKeyDown(e,t,r){const{keyboardCodes:n=bF.keyboardCodes}=null!=r?r:{};if(wF(e,[...n.end,...n.cancel])){e.preventDefault();const t=wF(e,n.cancel);return void this.handleEnd(e,t)}wF(e,n.up)?this.handleMove("up",e):wF(e,n.down)&&this.handleMove("down",e),wF(e,n.left)?this.handleMove("left",e):wF(e,n.right)&&this.handleMove("right",e)}handleEnd(e,t){this.manager.actions.stop({event:e,canceled:t}),this.cleanup()}handleMove(e,t){var r,n;const{shape:o}=this.manager.dragOperation,i=t.shiftKey?5:1;let a={x:0,y:0},s=null!=(n=null==(r=this.options)?void 0:r.offset)?n:bF.offset;if("number"==typeof s&&(s={x:s,y:s}),o){switch(e){case"up":a={x:0,y:-s.y*i};break;case"down":a={x:0,y:s.y*i};break;case"left":a={x:-s.x*i,y:0};break;case"right":a={x:s.x*i,y:0}}(a.x||a.y)&&(t.preventDefault(),this.manager.actions.move({event:t,by:a}))}}sideEffects(){const e=this.manager.registry.plugins.get(fF);!1===(null==e?void 0:e.disabled)&&(e.disable(),Gj(this,vF).push(()=>{e.enable()}))}cleanup(){Gj(this,vF).forEach(e=>e()),Kj(this,vF,[])}destroy(){this.cleanup(),this.listeners.clear()}};vF=new WeakMap,yF.configure=XL(yF),yF.defaults=bF;var xF,SF=yF;function wF(e,t){return t.includes(e.code)}var CF,EF;xF=new WeakMap;CF=new WeakMap,EF=new WeakMap;var RF=class{};RF.Delay=class extends cN{constructor(){super(...arguments),Yj(this,CF),Yj(this,EF)}onEvent(e){switch(e.type){case"pointerdown":Kj(this,EF,e_(e)),Kj(this,CF,setTimeout(()=>this.activate(e),this.options.value));break;case"pointermove":if(!Gj(this,EF))return;const{x:t,y:r}=e_(e);hL({x:t-Gj(this,EF).x,y:r-Gj(this,EF).y},this.options.tolerance)&&this.abort();break;case"pointerup":this.abort()}}abort(){Gj(this,CF)&&(clearTimeout(Gj(this,CF)),Kj(this,EF,void 0),Kj(this,CF,void 0))}},RF.Distance=class extends cN{constructor(){super(...arguments),Yj(this,xF)}onEvent(e){switch(e.type){case"pointerdown":Kj(this,xF,e_(e));break;case"pointermove":if(!Gj(this,xF))return;const{x:t,y:r}=e_(e),n={x:t-Gj(this,xF).x,y:r-Gj(this,xF).y},{tolerance:o}=this.options;if(o&&hL(n,o))return void this.abort();hL(n,this.options.value)&&this.activate(e);break;case"pointerup":this.abort()}}abort(){Kj(this,xF,void 0)}};var AF,PF=Object.freeze({activationConstraints(e,t){var r;const{pointerType:n,target:o}=e;if("mouse"!==n||!vj(o)||t.handle!==o&&!(null==(r=t.handle)?void 0:r.contains(o)))return"touch"===n?[new RF.Delay({value:250,tolerance:5})]:function(e){if(!vj(e))return!1;const{tagName:t}=e;return"INPUT"===t||"TEXTAREA"===t||(r=e).hasAttribute("contenteditable")&&"false"!==r.getAttribute("contenteditable");var r}(o)&&!e.defaultPrevented?[new RF.Delay({value:200,tolerance:0})]:[new RF.Delay({value:200,tolerance:10}),new RF.Distance({value:5})]},preventActivation(e,t){var r;const{target:n}=e;return n!==t.element&&(n!==t.handle&&(!!vj(n)&&(!(null==(r=t.handle)?void 0:r.contains(n))&&Boolean(n.closest('\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n a[href],\n [contenteditable]:not([contenteditable="false"])\n ')))))}}),MF=class extends lN{constructor(e,t){super(e),this.manager=e,this.options=t,Yj(this,AF,new Set),this.listeners=new p_,this.latest={event:void 0,coordinates:void 0},this.handleMove=()=>{const{event:e,coordinates:t}=this.latest;e&&t&&this.manager.actions.move({event:e,to:t})},this.handleCancel=this.handleCancel.bind(this),this.handlePointerUp=this.handlePointerUp.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}activationConstraints(e,t,r=this.options){const{activationConstraints:n=PF.activationConstraints}=null!=r?r:{};return"function"==typeof n?n(e,t):n}bind(e,t=this.options){const r=VT(()=>{var r;const n=new AbortController,{signal:o}=n,i=r=>{(function(e){if(!e)return!1;const{PointerEvent:t}=GN(e.target);return e instanceof t})(r)&&this.handlePointerDown(r,e,t)};let a=[null!=(r=e.handle)?r:e.element];(null==t?void 0:t.activatorElements)&&(a=Array.isArray(t.activatorElements)?t.activatorElements:t.activatorElements(e));for(const e of a)e&&(OF(e.ownerDocument.defaultView),e.addEventListener("pointerdown",i,{signal:o}));return()=>n.abort()});return r}handlePointerDown(e,t,r){if(this.disabled||!e.isPrimary||0!==e.button||!vj(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{preventActivation:n=PF.preventActivation}=null!=r?r:{};if(null==n?void 0:n(e,t))return;const{target:o}=e,i=KN(o)&&o.draggable&&"true"===o.getAttribute("draggable"),a=Q_(t.element),{x:s,y:l}=e_(e);this.initialCoordinates={x:s*a.scaleX+a.x,y:l*a.scaleY+a.y};const u=this.activationConstraints(e,t,r);e.sensor=this;const c=new uN(u,e=>this.handleStart(t,e));c.signal.onabort=()=>this.handleCancel(e),c.onEvent(e),this.controller=c;const d=r_(),p=this.listeners.bind(d,[{type:"pointermove",listener:e=>this.handlePointerMove(e,t)},{type:"pointerup",listener:this.handlePointerUp,options:{capture:!0}},{type:"pointercancel",listener:this.handleCancel},{type:"dragstart",listener:i?this.handleCancel:kF,options:{capture:!0}}]);Gj(this,AF).add(()=>{p(),this.initialCoordinates=void 0})}handlePointerMove(e,t){var r,n;if(!1!==(null==(r=this.controller)?void 0:r.activated)){if(this.manager.dragOperation.status.dragging){const r=e_(e),n=Q_(t.element);r.x=r.x*n.scaleX+n.x,r.y=r.y*n.scaleY+n.y,e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=r,V_.schedule(this.handleMove)}}else null==(n=this.controller)||n.onEvent(e)}handlePointerUp(e){const{status:t}=this.manager.dragOperation;if(!t.idle){e.preventDefault(),e.stopPropagation();const r=!t.initialized;this.manager.actions.stop({event:e,canceled:r})}this.cleanup()}handleKeyDown(e){"Escape"===e.key&&(e.preventDefault(),this.handleCancel(e))}handleStart(e,t){const{manager:r,initialCoordinates:n}=this;if(!n||!r.dragOperation.status.idle)return;if(t.defaultPrevented)return;if(r.actions.start({coordinates:n,event:t,source:e}).signal.aborted)return this.cleanup();t.preventDefault();const o=JN(t.target).body;o.setPointerCapture(t.pointerId);const i=vj(t.target)?[t.target,o]:o,a=this.listeners.bind(i,[{type:"touchmove",listener:kF,options:{passive:!1}},{type:"click",listener:kF},{type:"contextmenu",listener:kF},{type:"keydown",listener:this.handleKeyDown}]);Gj(this,AF).add(a)}handleCancel(e){const{dragOperation:t}=this.manager;t.status.initialized&&this.manager.actions.stop({event:e,canceled:!0}),this.cleanup()}cleanup(){this.latest={event:void 0,coordinates:void 0},Gj(this,AF).forEach(e=>e()),Gj(this,AF).clear()}destroy(){this.cleanup(),this.listeners.clear()}};AF=new WeakMap,MF.configure=XL(MF),MF.defaults=PF;var IF=MF;function kF(e){e.preventDefault()}function DF(){}var TF=new WeakSet;function OF(e){e&&!TF.has(e)&&(e.addEventListener("touchmove",DF,{capture:!1,passive:!1}),TF.add(e))}var LF,qF,NF,_F,jF,zF,FF,$F,HF,BF,WF,VF,UF,GF,YF,KF,XF,JF,ZF={modifiers:[],plugins:[iz,fF,class extends ZL{constructor(e,t){super(e,t),this.manager=e;const r=qO(()=>{var e;return JN(null==(e=this.manager.dragOperation.source)?void 0:e.element)});this.destroy=VT(()=>{var e;const{dragOperation:t}=this.manager,{cursor:n="grabbing",nonce:o}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=r.value,t=e.createElement("style");return o&&t.setAttribute("nonce",o),t.textContent=`* { cursor: ${n} !important; }`,e.head.appendChild(t),()=>t.remove()}})}},Xz,class extends ZL{constructor(e,t){super(e,t),this.manager=e,this.destroy=VT(()=>{var e;const{dragOperation:t}=this.manager,{nonce:r}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=document.createElement("style");return r&&e.setAttribute("nonce",r),e.textContent="* { user-select: none !important; -webkit-user-select: none !important; }",document.head.appendChild(e),gF(),document.addEventListener("selectionchange",gF,{capture:!0}),()=>{document.removeEventListener("selectionchange",gF,{capture:!0}),e.remove()}}})}}],sensors:[IF,SF]},QF=class extends qN{constructor(e={}){const t=LN(e.plugins,ZF.plugins),r=LN(e.sensors,ZF.sensors),n=LN(e.modifiers,ZF.modifiers);super(qj(Lj({},e),{plugins:[mF,uF,xz,...t],sensors:r,modifiers:n}))}},e$=class extends(_F=iN,NF=[_O],qF=[_O],LF=[_O],_F){constructor(e,t){var r=e,{element:n,effects:o=()=>[],handle:i,feedback:a="default"}=r,s=_j(r,["element","effects","handle","feedback"]);super(Lj({effects:()=>[...o(),()=>{var e,t;const{manager:r}=this;if(!r)return;const n=(null!=(t=null==(e=this.sensors)?void 0:e.map(JL))?t:[...r.sensors]).map(e=>{const t=e instanceof lN?e:r.registry.register(e.plugin),n=e instanceof lN?void 0:e.options;return t.bind(this,n)});return function(){n.forEach(e=>e())}}]},s),t),Yj(this,zF,Bj(jF,8,this)),Bj(jF,11,this),Yj(this,FF,Bj(jF,12,this)),Bj(jF,15,this),Yj(this,$F,Bj(jF,16,this)),Bj(jF,19,this),this.element=n,this.handle=i,this.feedback=a}};jF=jj(_F),zF=new WeakMap,FF=new WeakMap,$F=new WeakMap,Wj(jF,4,"handle",NF,e$,zF),Wj(jF,4,"element",qF,e$,FF),Wj(jF,4,"feedback",LF,e$,$F),Hj(jF,e$);var t$=class extends(WF=aN,BF=[_O],HF=[_O],WF){constructor(e,t){var r=e,{element:n,effects:o=()=>[]}=r,i=_j(r,["element","effects"]);const{collisionDetector:a=Sj}=i,s=e=>{const{manager:t,element:r}=this;if(!r||null===e)return void(this.shape=void 0);if(!t)return;const n=new hj(r),o=RT(()=>this.shape);return n&&(null==o?void 0:o.equals(n))?o:(this.shape=n,n)},l=qT(!1);super(qj(Lj({},i),{collisionDetector:a,effects:()=>[...o(),()=>{const{element:e,manager:t}=this;if(!t)return;const{dragOperation:r}=t,{source:n}=r;l.value=Boolean(n&&r.status.initialized&&e&&!this.disabled&&this.accepts(n))},()=>{const{element:e}=this;if(l.value&&e){const t=new j_(e,s);return()=>{t.disconnect(),this.shape=void 0}}},()=>{var e;if(null==(e=this.manager)?void 0:e.dragOperation.status.initialized)return()=>{this.shape=void 0}}]}),t),Yj(this,XF),Yj(this,UF,Bj(VF,8,this)),Bj(VF,11,this),Yj(this,JF,Bj(VF,12,this)),Bj(VF,15,this),this.element=n,this.refreshShape=()=>s()}set element(e){Kj(this,XF,e,KF)}get element(){var e;return null!=(e=this.proxy)?e:Gj(this,XF,YF)}};function r$(e){var t;if(null!=e)return function(e){return null!=e&&"object"==typeof e&&"current"in e}(e)?null!=(t=e.current)?t:void 0:e}VF=jj(WF),UF=new WeakMap,XF=new WeakSet,JF=new WeakMap,GF=Wj(VF,20,"#element",BF,XF,UF),YF=GF.get,KF=GF.set,Wj(VF,4,"proxy",HF,t$,JF),Hj(VF,t$);var n$="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?_:D;function o$(){const e=P(0)[1];return O(()=>{e(e=>e+1)},[e])}function i$(e,t=[],r=!1){const n=M(e);return n.current=e,function(e,t=!1){const r=M(e.peek()),n=M(!1),o=o$();return n$(()=>VT(()=>{const i=r.current,a=e.value;if(i!==a){if(r.current=a,!n.current)return;t?W(o):o()}}),[e,t,o]),{get value(){return n.current=!0,e.peek()}}}(A(()=>qO(()=>n.current()),t),r)}function a$(e,t){const r=M(new Map),n=o$();return n$(()=>{if(e)return VT(()=>{var o;let i=!1,a=!1;for(const n of r.current){const[s]=n,l=RT(()=>n[1]),u=e[s];l!==u&&(i=!0,r.current.set(s,u),a=null!=(o=null==t?void 0:t(s,l,u))&&o)}i&&(a?W(n):n())});r.current.clear()},[e]),A(()=>e?new Proxy(e,{get(e,t){const n=e[t];return r.current.set(t,n),n}}):e,[e])}function s$(e,t){e()}function l$(e){const t=M(e);return n$(()=>{t.current=e},[e]),t}function u$(e,t,r=D,n=Object.is){const o=M(e);r(()=>{const r=o.current;n(e,r)||(o.current=e,t(e,r))},[t,e])}function c$(e,t){const r=M(r$(e));n$(()=>{const n=r$(e);n!==r.current&&(r.current=n,t(n))})}var d$=Object.getOwnPropertySymbols,p$=Object.prototype.hasOwnProperty,f$=Object.prototype.propertyIsEnumerable,h$=I(new QF),m$=N(q(({children:e},t)=>{const[r,n]=P(0),o=M(null),i=M(null),a=A(()=>({renderer:{get rendering(){var e;return null!=(e=o.current)?e:Promise.resolve()}},trackRendering(e){o.current||(o.current=new Promise(e=>{i.current=e})),z(()=>{e(),n(e=>e+1)})}}),[]);return n$(()=>{var e;null==(e=i.current)||e.call(i),o.current=null},[e,r]),F(t,()=>a),null})),g$=[void 0,NO];function v$(e){var t=e,{children:r,onCollision:n,onBeforeDragStart:o,onDragStart:i,onDragMove:a,onDragOver:s,onDragEnd:l}=t,u=((e,t)=>{var r={};for(var n in e)p$.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&d$)for(var n of d$(e))t.indexOf(n)<0&&f$.call(e,n)&&(r[n]=e[n]);return r})(t,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);const c=M(null),{plugins:d,modifiers:p,sensors:f}=u,h=LN(d,ZF.plugins),m=LN(f,ZF.sensors),g=LN(p,ZF.modifiers),v=l$(o),b=l$(i),y=l$(s),x=l$(a),S=l$(l),w=l$(n),C=function(e){const t=M(null);t.current||(t.current=e());return j(()=>()=>{var e;return null==(e=t.current)?void 0:e.destroy()},[]),t.current}(()=>{var e;return null!=(e=u.manager)?e:new QF(u)});return D(()=>{if(!c.current)throw new Error("Renderer not found");const{renderer:e,trackRendering:t}=c.current,{monitor:r}=C;C.renderer=e;const n=[r.addEventListener("beforedragstart",e=>{const r=v.current;r&&t(()=>r(e,C))}),r.addEventListener("dragstart",e=>{var t;return null==(t=b.current)?void 0:t.call(b,e,C)}),r.addEventListener("dragover",e=>{const r=y.current;r&&t(()=>r(e,C))}),r.addEventListener("dragmove",e=>{const r=x.current;r&&t(()=>r(e,C))}),r.addEventListener("dragend",e=>{const r=S.current;r&&t(()=>r(e,C))}),r.addEventListener("collision",e=>{var t;return null==(t=w.current)?void 0:t.call(w,e,C)})];return()=>n.forEach(e=>e())},[C]),u$(h,()=>C&&(C.plugins=h),...g$),u$(m,()=>C&&(C.sensors=m),...g$),u$(g,()=>C&&(C.modifiers=g),...g$),ur.jsxs(h$.Provider,{value:C,children:[ur.jsx(m$,{ref:c,children:r}),r]})}function b$(){return L(h$)}function y$({children:e,className:t,dropAnimation:r,style:n,tag:o,disabled:i}){var a;const s=M(null),l=b$(),u=null!=(a=i$(()=>null==l?void 0:l.dragOperation.source,[l]).value)?a:null,c="function"==typeof i?i(u):i;D(()=>{if(!s.current||!l||c)return;const e=l.plugins.find(e=>e instanceof Xz);return e?(e.overlay=s.current,()=>{e.overlay=void 0}):void 0},[l,c]),D(()=>{if(!l)return;const e=l.plugins.find(e=>e instanceof Xz);return e?(e.dropAnimation=r,()=>{e.dropAnimation=void 0}):void 0},[l,r]);const d=A(()=>{if(!l)return null;const e=new Proxy(l.registry,{get:(e,t)=>"register"===t||"unregister"===t?x$:e[t]});return new Proxy(l,{get:(t,r)=>"registry"===r?e:t[r]})},[l]);return ur.jsx(h$.Provider,{value:d,children:w(o||"div",{ref:s,className:t,style:n,"data-dnd-overlay":!0},function(){if(!u||c)return null;if("function"==typeof e)return ur.jsx(S$,{source:u,children:e});return e}())})}function x$(){return()=>{}}function S$({children:e,source:t}){return e(a$(t))}var w$,C$,E$,R$,A$,P$=Object.create,M$=Object.defineProperty,I$=Object.getOwnPropertyDescriptor,k$=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),D$=e=>{throw TypeError(e)},T$=["class","method","getter","setter","accessor","field","value","get","set"],O$=e=>void 0!==e&&"function"!=typeof e?D$("Function expected"):e,L$=(e,t,r,n,o)=>({kind:T$[e],name:t,metadata:n,addInitializer:e=>r._?D$("Already initialized"):o.push(O$(e||null))}),q$=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=T$[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,I$(o,r)),h=n.length-1;h>=0;h--)(l=L$(c,r,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>r in e},u.get=e=>e[r],a=(0,n[h])(f[d],l),s._=1,O$(a)&&(f[d]=a);return f&&M$(o,r,f),o},N$=(e,t,r)=>t.has(e)||D$("Cannot "+r),_$=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,r){return new e(t.x-r.x,t.y-r.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:r}){return new e(t,r)}},j$=class extends(E$=HO,C$=[jO],w$=[jO],E$){constructor(e){var t,r,n;super(_$.from(e),(e,t)=>_$.equals(e,t)),((e,t,r)=>{for(var n=0,o=e[t>>1],i=o&&o.length;n<i;n++)o[n].call(r)})(A$,5,this),t=this,n=0,(r=R$).has(t)?D$("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,n),this.velocity={x:0,y:0}}get delta(){return _$.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const r={x:e.x-t.x,y:e.y-t.y};return r.x||r.y?Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,r=_$.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(N$(a=this,s=R$,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);CT(()=>{((e,t,r)=>{N$(e,t,"write to private field"),t.set(e,r)})(this,R$,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r})}reset(e=this.defaultValue){super.reset(_$.from(e)),this.velocity={x:0,y:0}}};A$=(e=>{var t;return[,,,P$(null!=(t=null==e?void 0:e[k$("metadata")])?t:null)]})(E$),R$=new WeakMap,q$(A$,2,"delta",C$,j$),q$(A$,2,"direction",w$,j$),((e,t)=>{((e,t,r)=>{t in e?M$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(t,k$("metadata"),e[3])})(A$,j$);var z$=(e=>(e.Horizontal="x",e.Vertical="y",e))(z$||{});function F$(e){const t=b$();D(()=>{if(!t)return;const r=Object.entries(e).reduce((e,[r,n])=>{if(n){const o=r.replace(/^on/,"").toLowerCase(),i=t.monitor.addEventListener(o,n);e.push(i)}return e},[]);return()=>r.forEach(e=>null==e?void 0:e())},[t,e])}Object.values(z$);const $$=()=>{const[e,t]=P(!1);return F$({onDragStart:()=>{t(!0)},onDragEnd:()=>{t(!1)}}),e?ur.jsx("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:100}}):null},H$=(e,{atTop:t,atBottom:r},n)=>({borderLeftColor:e.grid.border,borderRightColor:e.grid.border,borderTopColor:!n&&r?e.grid.divider:e.grid.border,borderBottomColor:n&&!t||!n&&t?e.grid.divider:e.grid.border}),B$=tR(e=>{const t=e(RR),r=e(XR);if(void 0!==r)return async(e,n)=>{const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:s,isActivelySorted:l}=e,u=o?i:i-t,c=await r.getEffectiveProperties(),d=c.qHyperCubeDef.qInterColumnSortOrder,p=[],f=n!==s||l;if(!o){const e=c.qHyperCubeDef.qMeasures.at(u)?.qSortBy;void 0===e?.qSortByNumeric&&p.push({qPath:`/qHyperCubeDef/qMeasures/${u}/qSortBy`,qOp:"Replace",qValue:JSON.stringify({...e,qSortByNumeric:"A"===s?1:-1})})}l||(d.splice(d.indexOf(i),1),d.unshift(i),p.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${d.join(",")}]`})),f&&p.push({qPath:`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${u}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),r.applyPatches(p,!0)}}),W$=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n})=>(e>r?e--:t>r&&(t--,e=n),[t,e]),V$=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n,lastRowIdx:o})=>(e<n?e++:t<o&&(t++,e=r),[t,e]),U$=e=>e.atTop?2:1,G$=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],Y$=e=>e?.setAttribute("tabIndex","0"),K$=e=>e?.setAttribute("tabIndex","-1"),X$=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(K$)},J$=e=>{e?.focus(),Y$(e)},Z$=e=>{setTimeout(()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${pE}`);J$(t)},0)},Q$=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o,direction:i})=>{X$(t);const a=((e,t,r,n,o={top:0,bottom:0})=>{const i=o.top>0,a=o.top,s=t.getElementsByClassName("sn-table-row").length-1-o.bottom,l=t.getElementsByClassName("sn-table-head-cell").length-1;let[u,c]=r;switch(e.key){case dE.Down:u<s&&u++;break;case dE.Up:u>a&&u--;break;case dE.Right:if(i)break;[u,c]="rtl"===n?W$({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0}):V$({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case dE.Left:if(i)break;[u,c]="rtl"===n?V$({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):W$({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0});break;case dE.Home:(lT(e)||i)&&(u=a),i||(c=0);break;case dE.End:(lT(e)||i)&&(u=s),i||(c=l);break;case dE.PageDown:u=Math.min(s,u+10);break;case dE.PageUp:u=Math.max(a,u-10)}return[u,c]})(e,t,r,i,o),s=G$(t,a);return J$(s),((e,t)=>{const r=t.getElementsByClassName("sn-table-container")[0];if(!r?.scrollTo)return;const[n,o]=e;if(n<2)r.scrollTo({top:0,behavior:"auto"});else{const e=t.getElementsByClassName("sn-table-head-cell")[0],i=t.getElementsByClassName("sn-table-row")[n].getElementsByClassName("sn-table-cell")[o];if(!i||!e)return;if(i.offsetTop-e.offsetHeight<r.scrollTop){const t=r.scrollTop-i.offsetHeight-e.offsetHeight;r.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})(a,t),n(a),{nextCell:s,nextCellCoord:a}},eH=(e,t,r,n)=>{X$(t),r(e),n.enabled&&!n.active?n.focus?.():J$(G$(t,e))},tH=(e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!!n?.contains(o),a=o?.closest(`.${lE}`);!r.enabled||i||a||t.current||!n||((e=>{const t=e.querySelector(`.${GP.First}`),r=e.querySelector(`.${GP.Second}`);t&&r&&(t.innerHTML="",r.innerHTML="")})(n),r.blur?.(!1))},rH=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10M3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0zM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0"})})),nH=Sc(Xh,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"color"!==e})(({headerStyle:e,interactions:t,hoverBackground:r,background:n,color:o})=>({...dM,...e,cursor:t.active?"pointer":"default",background:n,color:o,verticalAlign:"bottom",boxSizing:"border-box","&&:focus-visible, &&:hover:not(:has(button:hover))":{background:t.active?r:n}})),oH=Sc("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})(({align:e,dir:t})=>({minWidth:lM,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}})),iH=parseInt(lM,10)/2,aH=Sc("div")({position:"absolute",bottom:-iH,left:`calc(50% - ${iH}px)`}),sH=Sc(pm)({position:"sticky",top:0,zIndex:1}),lH={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},uH=Sc(dp)({height:"100%"}),cH=Sc("span",{shouldForwardProp:e=>"lineClamp"!==e&&"isHeadCell"!==e&&"isPagination"!==e&&"isNumeric"!==e})(({lineClamp:e,isHeadCell:t=!1,isPagination:r=!1,isNumeric:n=!1})=>n||1===e&&!t?{...lH,whiteSpace:"nowrap",display:r?"block":void 0}:{...lH,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"}),dH=Sc("div")({display:"grid",gridAutoFlow:"column",width:"100%",gridAutoColumns:"1fr auto",gap:"4px"}),pH="cell-text",fH=({children:e,forwardRef:t,isNumeric:r=!1,isPagination:n=!1,isHeadCell:o=!1,lineClamp:i})=>{const a=fR(Ek);return o?ur.jsx(cH,{"data-testid":pH,ref:t,className:"sn-table-cell-text",lineClamp:a.grid.headerLineClamp,isPagination:n,isHeadCell:!0,style:{direction:r?"ltr":void 0},children:e}):ur.jsx(cH,{"data-testid":pH,ref:t,className:"sn-table-cell-text",isNumeric:r,lineClamp:i??a.grid.contentLineClamp,isPagination:n,style:{direction:r?"ltr":void 0},children:e})},hH=e=>{const{column:t,isInteractionEnabled:r,open:n,setOpen:o,isPagination:i,forwardRef:a}=e,s=fR(AR),l=fR(B$),u=fR(HR),c=fR(LR),d=fR(bR),p=fR(iA),f=fR(gR),h=fR(Ik)[t.pageColIdx],m=fR(KR),g=M(null),v=M(null),b=(({column:e,columnWidth:t})=>{const r=fR(Ek),{measureText:n}=JC({fontSize:r.header.fontSize,fontFamily:r.header.fontFamily,fontWeight:uM});let o=!1,i=!1,a=!1;const s=e.isLocked,l=e.isActivelySorted,u=t-25,c=s?20:0,d=l?20:0;let p=n(e.label);return s&&p+c<=u&&(a=!0,p+=c,l&&p+d<=u&&(i=!0,p+=d)),!s&&l&&p+d<=u&&(i=!0,p+=d),p+24<=u&&(o=!0,p+=24),{shouldShowMenuIcon:o,shouldShowSortIcon:i,shouldShowLockIcon:a}})({column:t,columnWidth:h}),{StartIcon:y,EndIcon:x,LockIcon:S}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n},o)=>{const i="A"===e?ur.jsx(pD,{height:lM,"data-testid":"head-cell-sort-ascending-icon"}):ur.jsx(mD,{height:lM,"data-testid":"head-cell-sort-descending-icon"}),a=r?ur.jsx(oH,{align:t,dir:o,children:i}):void 0,s=n?ur.jsx(EM,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:ur.jsx(rH,{height:lM,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(t,b,u);return ur.jsxs(CM,{shouldShowMenuIcon:b.shouldShowMenuIcon,shouldShowLockIcon:b.shouldShowLockIcon,alignment:gM(t,i,u),children:[S,ur.jsxs(wM,{className:"sn-table-head-label",textAlign:t.headTextAlign,direction:u,isPagination:i,children:[y,ur.jsx(fH,{forwardRef:a,isPagination:i,isHeadCell:!0,children:t.label}),x]}),r?ur.jsxs(ur.Fragment,{children:[ur.jsx(ID,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:g,menuAvailabilityFlags:{[AD.Sorting]:!0,[AD.Searching]:!0,[AD.Selections]:!0,[AD.AdjusterHeaderSize]:!0},open:n,setOpen:o,interactions:c,sortRelatedArgs:{sortFromMenu:(e,r)=>(e.stopPropagation(),l?.(t,r)??Promise.resolve())},searchRelatedArgs:{embed:d,listboxRef:v},selectionRelatedArgs:{app:f,qStateName:s},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:Z$},shouldShowMenuIcon:b.shouldShowMenuIcon,model:m,direction:u,isPagination:i,isAccessibleHeader:!0}),ur.jsx(SM,{ref:v,direction:u,isPagination:i}),ur.jsx(SM,{ref:g,direction:u})]}):null]})},mH=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M6 2h10V1H6zm5 5h5V6h-5zm5 5h-5v-1h5zM5 10h1v2.663a3.5 3.5 0 1 0-2.922.036l-.406.914A4.501 4.501 0 1 1 7.329 13H9v1H5z"})})),gH=(e,t)=>e.isCyclic&&t,vH=({column:e})=>{const t=fR(Ek),r=fR(HR),n=fR(KR),o=S.useRef(null),[i,a]=S.useState(!1),s=zk({model:n,headerData:{...e,dimensionInfoIndex:e.colIdx}});return ur.jsxs(ur.Fragment,{children:[ur.jsx(AM,{hoverBackground:e.headerColor?.headerMenuHoverBackground??t.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??t.headerMenuActiveBackground,isActive:i,tabIndex:-1,onClick:e=>{e.stopPropagation(),a(!0)},children:ur.jsx(mH,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),ur.jsx(aD,{open:i,onClose:()=>{a(!1)},menuGroups:[[{items:e.groupDimensionLabels.map((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),a(!1),s?.(r)},enabled:!0,icon:gD,isActive:e.groupDimensionPos===r}))}]],anchorEl:o.current,direction:r,isPagination:!1})]})},bH=e=>e.isLocked,yH=({column:e})=>{const t=fR(gR),r=fR(AR),n=fR(Ek);return ur.jsx(AM,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??n.headerMenuHoverBackground,onClick:n=>{n.stopPropagation(),(async(e,t,r)=>{const n=lD(t??"$",r);let o;try{const t=await(e?.createSessionObject(n));o=t?.id,await(t?.unlock("/qListObjectDef"))}catch(e){console.error("Failed to unlock field from table header",e)}finally{o&&(await(e?.destroySessionObject(o))||console.error("Failed to destroy session object when unlocking field from table header"))}})(t,r,e)},children:ur.jsx(rH,{height:16,"data-testid":"head-cell-lock-icon"})})},xH=({column:e,menuIconRef:t,open:r,setOpen:n})=>{const o=fR(Ek);return ur.jsx(AM,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??o.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??o.headerMenuActiveBackground,isActive:r,order:e.isDim?void 0:-1,onClick:e=>{e.stopPropagation(),n(e=>!e)},ref:t,children:ur.jsx(jk,{height:16})})},SH=({anchorRef:e,column:t,isPagination:r,listboxRef:n,open:o,setOpen:i})=>{const a=fR(gR),s=fR(HR),l=fR(bR),u=fR(LR),c=fR(KR),d=fR(AR),p=fR(iA),f=fR(B$);return ur.jsx(ID,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:e,menuAvailabilityFlags:{[AD.Sorting]:!0,[AD.Searching]:!0,[AD.Selections]:!0,[AD.AdjusterHeaderSize]:!0},open:o,setOpen:i,interactions:u,sortRelatedArgs:{sortFromMenu:(e,r)=>(e.stopPropagation(),f?.(t,r)??Promise.resolve())},searchRelatedArgs:{embed:l,listboxRef:n},selectionRelatedArgs:{app:a,qStateName:d},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:Z$},shouldShowMenuIcon:!1,model:c,direction:s,isPagination:r})},wH=tR();wH.onMount=e=>{const t=new Map,r=new ResizeObserver(e=>{for(const r of e){const e=t.get(r.target);e&&e.current(r)}});return e({callbacks:t,observer:r}),()=>{t.clear(),r.disconnect()}};const CH=({ref:e,callback:t})=>{const r=fR(wH),n=M(t);n.current=t,_(()=>{const t=e.current;return void 0===r?()=>{}:(t&&(r.callbacks.set(t,n),r.observer.observe(t)),()=>{t&&(r.callbacks.delete(t),r.observer.unobserve(t))})},[e,n,r])},EH=Sc(dp)({display:"flex",alignItems:"center",justifyContent:"center",width:"100%",boxSizing:"border-box"}),RH=({children:e})=>{const t=S.useRef(null),[r,n]=P(()=>new Set(e.filter(({props:e})=>void 0!==e.prio&&e.children).map(({key:e})=>e))),o=A(()=>Array.from(e).sort((e,t)=>(e.props.prio??-1/0)-(t.props.prio??-1/0)),[e]),i=O(e=>{const t=new Set,r=e.contentBoxSize.at(0)?.inlineSize??0;let i=0;o.forEach(e=>{if(e.props.ignore||!e.props.children)return;const n=e.props.minWidth+1;void 0===e.props.prio||i+n<=r?i+=n:t.add(e.key)}),n(e=>e.size===t.size&&[...e].every(e=>t.has(e))?e:t)},[o]);return CH({ref:t,callback:i}),ur.jsx(EH,{ref:t,"data-testid":"responsive-container",children:e.filter(e=>!r.has(e.key))})},AH=({children:e})=>e,PH=(e,t)=>!e.isLocked&&e.isDim&&t,MH=({column:e,open:t,setOpen:r})=>{const n=fR(Ek),o=fR(AR),i=fR(HR),a=fR(bR);fR(gR);const s=S.useRef(null),l=O(()=>{r(!1)},[r]),u=sD({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:a,listboxRef:s},selectionRelatedArgs:{qStateName:o},direction:i,onPopoverClose:l});return ur.jsx(AM,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??n.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??n.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),u(),r(!0)},children:ur.jsx(xD,{ref:s,height:16,"data-testid":"head-cell-search-icon"})})},IH=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M2.4 4h11.2a.2.2 0 0 1 .16.32l-5.6 7.467a.2.2 0 0 1-.32 0L2.24 4.32A.2.2 0 0 1 2.4 4"})})),kH=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M13.6 11H2.4a.2.2 0 0 1-.16-.32l5.6-7.467a.2.2 0 0 1 .32 0l5.6 7.467a.2.2 0 0 1-.16.32"})})),DH=({column:e})=>{const{sortDirection:t,isActivelySorted:r}=e,n="A"===t?ur.jsx(kH,{height:lM,"data-testid":"head-cell-sort-ascending-icon"}):ur.jsx(IH,{height:lM,"data-testid":"head-cell-sort-descending-icon"});return r?ur.jsx(aH,{children:n}):void 0},TH=0,OH=1,LH=2,qH=3,NH=e=>{const{column:t,open:r,setOpen:n,isPagination:o,forwardRef:i,columnWidth:a,isInteractionEnabled:s}=e,l=fR(Ek),u=fR(HR),{measureText:c}=JC(l.header),[d,p]=P(!1),f=M(null),h=M(null),m=M(null),g="number"==typeof a&&a>fE.PixelsMin+18;return ur.jsxs(ur.Fragment,{children:[ur.jsxs(RH,{children:[ur.jsx(AH,{prio:LH,minWidth:xM,children:bH(t)?ur.jsx(yH,{column:t}):null},"Lock"),ur.jsx(AH,{prio:OH,minWidth:xM,children:gH(t,s)?ur.jsx(vH,{column:t}):null},"Cyclic"),ur.jsx(AH,{ignore:!0,children:ur.jsx(DH,{column:t})},"Sort"),ur.jsx(AH,{minWidth:c(t.label)+8,children:ur.jsx(RM,{justifyContent:t.headTextAlign,children:ur.jsx(fH,{forwardRef:i,isPagination:o,isHeadCell:!0,children:t.label})})},"Text"),ur.jsx(AH,{prio:g?void 0:TH,minWidth:xM,children:d||PH(t,s)?ur.jsx(MH,{open:d,setOpen:p,column:t}):null},"Search"),ur.jsx(AH,{prio:qH,minWidth:xM,children:s?ur.jsx(xH,{menuIconRef:m,column:t,open:r,setOpen:n}):null},"Menu")]}),s?ur.jsxs(ur.Fragment,{children:[ur.jsx(SM,{ref:h,direction:u,isPagination:o}),ur.jsx(SM,{ref:f,direction:u}),ur.jsx(SH,{anchorRef:m.current?m:f,column:t,isPagination:o,listboxRef:h,open:r,setOpen:n})]}):null]})},_H=Sc("div",{shouldForwardProp:e=>"background"!==e&&"applicableStyle"!==e&&"color"!==e})(({background:e,applicableStyle:t,color:r})=>({...t,background:e,color:r})),jH=()=>{},zH=({column:e,isPagination:t})=>{const r=fR(Ek),n=fR(HR),o=fR(xT),i=fR(sk),a=!1,s=fR(IR)?hH:NH;return ur.jsx(_H,{className:"sn-table-cell",applicableStyle:{...r.header,...H$(r,i,!0)},style:{cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:bM(n,a,o),borderLeftWidth:yM(n,a,o),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:e.headTextAlign,boxSizing:"border-box",flexDirection:"right"===e.headTextAlign?"row-reverse":"row",userSelect:"none",width:"100%"},background:e.headerColor?.background??r.header.background,color:e.headerColor?.color??r.header.color,children:ur.jsx(s,{column:e,isInteractionEnabled:!1,isPagination:t,open:!1,setOpen:jH})})},FH=({isPagination:e})=>{const t=fR(lk),[r,n]=P();F$({onDragStart:e=>{const t=e.operation.source?.id;n(t)},onDragEnd:()=>{}});const o=r?t.find(e=>e.id===r):void 0;return o?ur.jsx(y$,{children:ur.jsx("div",{style:{background:"white",height:"100%",display:"flex",position:"relative"},children:ur.jsx(zH,{column:o,isPagination:e})})}):null},$H=[IF.configure({activationConstraints:[new RF.Distance({value:5})],preventActivation:e=>{const t=e.target;return t instanceof HTMLElement&&t.classList.contains("nebula-table-utils-column-adjuster")}})],HH=ZF.plugins.filter(e=>e!==iz),BH=({children:e})=>{const t=fR(XR),r=fR(lk);return ur.jsx(v$,{onDragOver:e=>{const n=e.operation.source?.id,o=e.operation.target?.id;void 0!==o&&n!==o&&(async(e,t,r,n)=>{if(!e)return;const o=t.findIndex(e=>e.id===r),i=t.findIndex(e=>e.id===n),a=[...t],[s]=a.splice(o,1);a.splice(i,0,s);const l=[{qPath:"/qHyperCubeDef/qColumnOrder",qOp:"Replace",qValue:`[${a.map(e=>e.colIdx).join(",")}]`}];e.applyPatches(l,!0)})(t,r,n,o)},sensors:$H,plugins:HH,children:e})};function WH(e,t){const r=M(!1);D(()=>{r.current?e():r.current=!0},t)}const VH=tR(YP),UH=_P(e=>tR(t=>{const[r,n]=t(VH);return 0===r&&n===e})),GH=()=>{const e=fR(vR);D(()=>{e.notifyIsDoneRendering()})};var YH={SNTable_Accessibility_Ascending:{id:"SNTable.Accessibility.Ascending",locale:{"de-DE":"Aufsteigend","en-US":"Ascending","es-ES":"Ascendente","fr-FR":"Croissant","it-IT":"Crescente","ja-JP":"昇順","ko-KR":"오름차순","nl-NL":"Oplopend","pl-PL":"Rosnąco","pt-BR":"Crescente","ru-RU":"По возрастанию","sv-SE":"Stigande","tr-TR":"Artan","zh-CN":"升序","zh-TW":"遞增"}},SNTable_Accessibility_ColumnOptions:{id:"SNTable.Accessibility.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбцов","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},SNTable_Accessibility_Descending:{id:"SNTable.Accessibility.Descending",locale:{"de-DE":"Absteigend","en-US":"Descending","es-ES":"Descendente","fr-FR":"Décroissant","it-IT":"Decrescente","ja-JP":"降順","ko-KR":"내림차순","nl-NL":"Aflopend","pl-PL":"Malejąco","pt-BR":"Decrescente","ru-RU":"По убыванию","sv-SE":"Fallande","tr-TR":"Azalan","zh-CN":"降序","zh-TW":"遞減"}},SNTable_Accessibility_NavigationInstructions:{id:"SNTable.Accessibility.NavigationInstructions",locale:{"de-DE":"Verwenden Sie die Pfeiltasten, um zwischen den Tabellenzellen zu navigieren, und die Tabulatortaste, um zu den Paginierungssteuerelementen zu wechseln. Drücken Sie die Leertaste in den Kopfzellen, um das Spaltenmenü zu öffnen, und drücken Sie die Leertaste in den Körperzellen, um eine Auswahl zu treffen. Duch die Auswahl wird der Seiteninhalt aktualisiert. Die vollständige Liste der Navigationssteuerungen finden Sie in der Dokumentation.","en-US":"Use arrow keys to navigate between table cells and tab to move to pagination controls. Press space on header cells to open the column menu, press space on body cells to make selections. Selections will cause content on the page to be updated. The full list of navigation controls can be found in the documentation.","es-ES":"Utilice las teclas de flecha para desplazarse entre las celdas de la tabla y la pestaña a fin de pasar a los controles de paginación. Pulse la barra espaciadora en las celdas del encabezado para abrir el menú de columnas; pulse la barra espaciadora en las celdas del cuerpo para realizar selecciones. Las selecciones harán que se actualice el contenido de la página. Encontrará la lista completa de controles de navegación en la documentación.","fr-FR":"Utilisez les touches fléchées pour naviguer parmi les cellules du tableau et la tabulation pour accéder aux commandes de pagination. Appuyez sur la touche Espace dans les cellules d'en-tête pour ouvrir le menu de la colonne. Appuyez sur Espace dans les cellules de corps pour effectuer une sélection. Les sélections actualiseront le contenu de la page. Vous pouvez consulter la liste complète des commandes de navigation dans la documentation.","it-IT":"Utilizzare i tasti freccia per navigare tra le celle della tabella e il tasto TAB per passare ai controlli di paginazione. Premere lo spazio nelle celle dell'intestazione per aprire il menu della colonna; premere lo spazio nelle celle del corpo per effettuare selezioni. Le selezioni determineranno l'aggiornamento del contenuto della pagina. È possibile trovare l'elenco completo dei controlli di navigazione nella documentazione.","ja-JP":"矢印キーで表のセル間を移動し、タブ キーでページネーション コントロールに移動します。ヘッダー セルでスペースを押すと列メニューが開き、ボディ セルでスペースを押すと選択ができます。選択によって、ページのコンテンツが更新されます。ナビゲーション コントロールの全リストは、ドキュメントをご覧ください。","ko-KR":"화살표 키를 사용하여 표 셀 사이를 탐색하고, 탭을 사용하여 페이지 번호 컨트롤로 이동하십시오. 헤더 셀에서 스페이스바를 눌러 열 메뉴를 열고, 본문 셀에서 스페이스바를 눌러 선택하십시오. 선택하면 페이지의 콘텐츠가 업데이트됩니다. 전체 탐색 컨트롤 목록은 설명서에서 확인할 수 있습니다.","nl-NL":"Gebruik de pijltjestoetsen om te navigeren tussen tabelcellen en de Tab-toets om naar besturingselementen voor paginering te gaan. Druk op de spatietoets in koptekstcellen om het kolommenu te openen, druk op de spatietoets in hoofdtekstcellen om selecties te maken. Door selecties te maken, wordt de inhoud op de pagina bijgewerkt. De volledige lijst met besturingselementen voor navigatie vindt u in de documentatie.","pl-PL":"Użyj klawiszy strzałek do poruszania się między komórkami tabeli oraz tabulatora do poruszania się po elementach sterujących stronami. Naciśnij klawisz spacji na komórkach nagłówka, aby otworzyć menu kolumny i naciśnij go na komórkach treści, aby dokonać wyborów. Wybory będą powodować aktualizację zawartości na stronie. Pełną listę nawigacyjnych elementów sterujących można znaleźć w dokumentacji.","pt-BR":"Use as teclas de seta para navegar entre as células da tabela e a tecla Tab para mover para os controles de paginação. Pressione espaço nas células do cabeçalho para abrir o menu da coluna, pressione espaço nas células do corpo para fazer seleções. As seleções farão com que o conteúdo da página seja atualizado. A lista completa de controles de navegação pode ser encontrada na documentação.","ru-RU":"Используйте клавиши со стрелками для перемещения между ячейками таблицы и клавишу табуляции для перехода к элементам управления разбивки на страницы. Нажмите пробел на ячейках заголовка, чтобы открыть меню столбца; нажмите пробел на ячейках тела, чтобы сделать выборки. Выборки приведут к обновлению содержимого страницы. Полный перечень элементов управления навигацией см. в документации.","sv-SE":"Använd piltangenterna för att navigera mellan tabellcellerna och tabbtangenten för att flytta till pagineringskontrollerna. Tryck på mellanslag på rubrikceller för att öppna kolumnmenyn och tryck på mellanslag på innehållsceller för att göra urval. Med urval kommer innehåll på sidan att uppdateras. Den fullständiga listan med navigeringsreglage.","tr-TR":"Tablo hücreleri arasında gezinmek için ok tuşlarını, sayfalandırma kontrollerine geçmek için sekmeyi kullanın. Sütun menüsünü açmak için başlık hücrelerinde boşluğa basın, seçim yapmak için gövde hücrelerinde boşluğa basın. Seçimler, sayfadaki içeriğin güncellenmesine neden olur. Navigasyon kontrollerinin tam listesi belgede bulunabilir.","zh-CN":"使用箭头键在表格单元格之间导航,使用 tab 键移动到分页控件。按标题单元格上的空间打开列菜单,按正文单元格上的空间进行选择。选择将导致页面上的内容更新。导航控件的完整列表可以在文档中找到。","zh-TW":"使用方向鍵以在表格儲存格之間導覽,並使用 Tab 以前往分頁控制。按下標頭儲存格的空白處可開啟欄功能表,按下正文儲存格的空白處可進行選取。選項將會造成更新頁面上的內容。導覽控制的完整清單可見於文件中。"}},SNTable_Accessibility_RowsAndColumns:{id:"SNTable.Accessibility.RowsAndColumns",locale:{"de-DE":"Es werden {0} Zeilen und {1} Spalten angezeigt.","en-US":"Showing {0} rows and {1} columns.","es-ES":"Mostrando {0} filas y {1} columnas.","fr-FR":"Affichage de {0} lignes et de {1} colonnes.","it-IT":"Visualizzazione di {0} righe e {1} colonne.","ja-JP":"{0} 行 {1} 列を表示しています。","ko-KR":"{0}개의 행과 {1}개의 열을 표시합니다.","nl-NL":"{0} rijen en {1} kolommen worden getoond.","pl-PL":"Wyświetlane wiersze: {0} i kolumny: {1}.","pt-BR":"Mostrando {0} linhas e {1} colunas.","ru-RU":"Показаны строки ({0}) и столбцы ({1}).","sv-SE":"Visar {0} rader och {1} kolumner.","tr-TR":"{0} satır ve {1} sütun gösteriliyor.","zh-CN":"正在显示 {0} 行,{1} 列。","zh-TW":"顯示 {0} 列和 {1} 欄。"}},SNTable_MenuItem_AdjustColumnSize:{id:"SNTable.MenuItem.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},SNTable_MenuItem_ClearSelections:{id:"SNTable.MenuItem.ClearSelections",locale:{"de-DE":"Auswahl löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Selecties wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},SNTable_MenuItem_Search:{id:"SNTable.MenuItem.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},SNTable_MenuItem_SelectAll:{id:"SNTable.MenuItem.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},SNTable_MenuItem_SelectAlternative:{id:"SNTable.MenuItem.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},SNTable_MenuItem_SelectExcluded:{id:"SNTable.MenuItem.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},SNTable_MenuItem_SelectPossible:{id:"SNTable.MenuItem.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},SNTable_MenuItem_Selections:{id:"SNTable.MenuItem.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},SNTable_MenuItem_SortAscending:{id:"SNTable.MenuItem.SortAscending",locale:{"de-DE":"Sortierung in aufsteigender Reihenfolge","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Tri par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},SNTable_MenuItem_SortDescending:{id:"SNTable.MenuItem.SortDescending",locale:{"de-DE":"Sortierung in absteigender Reihenfolge","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Tri par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},SNTable_Pagination_DisplayedRowsLabel:{id:"SNTable.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{1}의 {0}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},SNTable_Pagination_FirstPage:{id:"SNTable.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},SNTable_Pagination_LastPage:{id:"SNTable.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},SNTable_Pagination_NextPage:{id:"SNTable.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},SNTable_Pagination_PageStatusReport:{id:"SNTable.Pagination.PageStatusReport",locale:{"de-DE":"Die Seite wurde geändert. Seite {0} von {1} wird angezeigt.","en-US":"Page has changed. Showing page {0} of {1}.","es-ES":"La página ha cambiado. Mostrando página {0} de {1}.","fr-FR":"La page a changé. Affichage de la page {0} sur {1}.","it-IT":"La pagina è cambiata. Visualizzazione pagina {0} di {1}.","ja-JP":"ページが変更されました。{1} ページ中の {0} ページ目を表示しています。","ko-KR":"페이지가 변경되었습니다. {1}의 {0} 페이지를 보여 줍니다.","nl-NL":"Pagina is gewijzigd. Pagina {0} van {1} wordt weergeven.","pl-PL":"Strona się zmieniła Wyświetlanie strony {0} z {1}.","pt-BR":"A página mudou. Mostrando página {0} de {1}.","ru-RU":"Страница изменилась. Показана страница {0} из {1}.","sv-SE":"Sidan har ändrats. Visar sida {0} av {1}.","tr-TR":"Sayfa değişti. Sayfa {0} / {1} gösteriliyor.","zh-CN":"页面已更改。显示页面 {0} / {1}。","zh-TW":"頁面已變更。顯示第 {0} 頁,共 {1} 頁。"}},SNTable_Pagination_PreviousPage:{id:"SNTable.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},SNTable_Pagination_RowsPerPage:{id:"SNTable.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},SNTable_Pagination_RowsPerPageChange:{id:"SNTable.Pagination.RowsPerPageChange",locale:{"de-DE":"Zeilen pro Seite wurden in {0} geändert. Jetzt wird die erste Seite angezeigt.","en-US":"Rows per page has changed to {0}. Now showing the first page.","es-ES":"El número de filas por página ha cambiado a {0}. Mostrando ahora la primera página.","fr-FR":"Le nombre de lignes par page a été remplacé par {0}. Affichage en cours de la première page.","it-IT":"Le righe per pagina sono cambiate a {0}. Viene ora mostrata la prima pagina.","ja-JP":"ページあたりの行数が {0} に変更されました。現在、最初のページを表示しています。","ko-KR":"페이지당 행 수가 {0}(으)로 변경되었습니다. 이제 첫 페이지를 보여 줍니다.","nl-NL":"Aantal rijen per pagina is gewijzigd naar {0}. De eerste pagina wordt nu weergegeven.","pl-PL":"Liczba wierszy na stronę została zmieniona na {0}. Wyświetlana jest pierwsza strona.","pt-BR":"Linhas por página mudou para {0}. Agora mostrando a primeira página.","ru-RU":"Количество строк на странице изменилось на {0}. Теперь отображается первая страница.","sv-SE":"Rader per sida har ändrats till {0}. Nu visas första sidan.","tr-TR":"Sayfa başına satır sayısı {0} olarak değiştirildi. Şimdi ilk sayfa gösteriliyor.","zh-CN":"每页行数已更改为 {0}。现在显示第一页。","zh-TW":"每頁列數已變更為 {0}。現在顯示第一頁。"}},SNTable_Pagination_SelectPage:{id:"SNTable.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}},SNTable_SelectionLabel_DeselectedValue:{id:"SNTable.SelectionLabel.DeselectedValue",locale:{"de-DE":"Die Werteauswahl ist aufgehoben.","en-US":"Value is deselected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur est désélectionnée.","it-IT":"Il valore è deselezionato.","ja-JP":"値が選択解除されました。","ko-KR":"값이 선택 취소되었습니다.","nl-NL":"Selectie van waarde opgeheven.","pl-PL":"Wartość nie jest zaznaczona.","pt-BR":"O valor está desmarcado.","ru-RU":"Выбор значения отменен.","sv-SE":"Val av värde har tagits bort.","tr-TR":"Değer seçimi iptal edildi.","zh-CN":"值已取消选择。","zh-TW":"值已取消選取。"}},SNTable_SelectionLabel_ExitedSelectionMode:{id:"SNTable.SelectionLabel.ExitedSelectionMode",locale:{"de-DE":"Die Werteauswahl ist aufgehoben. Auswahlmodus beendet.","en-US":"Value is deselected. Exited selection mode.","es-ES":"El valor no está seleccionado. Salió del modo de selección.","fr-FR":"La valeur est désélectionnée. Mode de sélection désactivé.","it-IT":"Il valore è deselezionato. Uscita dalla modalità selezione.","ja-JP":"値が選択解除されました。選択モードを終了しました。","ko-KR":"값이 선택 취소되었습니다. 선택 모드를 종료했습니다.","nl-NL":"Selectie van waarde opgeheven. Selectiemodus afgesloten.","pl-PL":"Wartość nie jest zaznaczona. Zakończono tryb wyboru.","pt-BR":"O valor está desmarcado. Modo de seleção encerrado.","ru-RU":"Выбор значения отменен. Выполнен выход из режима выборки.","sv-SE":"Val av värde har tagits bort. Lämnade urvalsläge.","tr-TR":"Değer seçimi iptal edildi. Seçim modundan çıkıldı.","zh-CN":"值已取消选择。已退出选择模式。","zh-TW":"值已取消選取。輸入的選取模式。"}},SNTable_SelectionLabel_NotSelectedValue:{id:"SNTable.SelectionLabel.NotSelectedValue",locale:{"de-DE":"Wert ist nicht ausgewählt.","en-US":"Value is not selected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur n'est pas sélectionnée.","it-IT":"Il valore non è selezionato.","ja-JP":"値が選択されていません。","ko-KR":"값이 선택되지 않았습니다.","nl-NL":"Waarde is niet geselecteerd.","pl-PL":"Wartość nie jest wybrana.","pt-BR":"O valor não está selecionado.","ru-RU":"Значение не выбрано.","sv-SE":"Värdet är inte valt.","tr-TR":"Değer seçilmedi.","zh-CN":"未选择值。","zh-TW":"未選取值。"}},SNTable_SelectionLabel_OneSelectedValue:{id:"SNTable.SelectionLabel.OneSelectedValue",locale:{"de-DE":"Aktuell ist ein Wert ausgewählt.","en-US":"Currently there is one selected value.","es-ES":"Actualmente hay un valor seleccionado.","fr-FR":"Actuellement, une valeur est sélectionnée.","it-IT":"Attualmente è presente un solo valore selezionato.","ja-JP":"現在、値が 1 つ選択されています。","ko-KR":"현재 하나의 값이 선택되었습니다.","nl-NL":"Er is momenteel één waarde geselecteerd.","pl-PL":"Aktualnie jest jedna wybrana wartość.","pt-BR":"Atualmente, há um valor selecionado.","ru-RU":"В настоящее время выбрано одно значение.","sv-SE":"Just nu är ett värde valt.","tr-TR":"Şu anda seçili bir değer var.","zh-CN":"当前有一个已选择的值。","zh-TW":"目前有一個選取的值。"}},SNTable_SelectionLabel_SelectedValue:{id:"SNTable.SelectionLabel.SelectedValue",locale:{"de-DE":"Wert ist ausgewählt.","en-US":"Value is selected.","es-ES":"El valor está seleccionado.","fr-FR":"La valeur est sélectionnée.","it-IT":"Il valore è selezionato.","ja-JP":"値が選択されました。","ko-KR":"값이 선택되었습니다.","nl-NL":"Waarde is geselecteerd.","pl-PL":"Wartość jest wybrana.","pt-BR":"O valor está selecionado.","ru-RU":"Значение выбрано.","sv-SE":"Värdet är valt.","tr-TR":"Değer seçildi.","zh-CN":"已选择值。","zh-TW":"已選取值。"}},SNTable_SelectionLabel_SelectedValues:{id:"SNTable.SelectionLabel.SelectedValues",locale:{"de-DE":"Aktuell sind {0} Werte ausgewählt.","en-US":"Currently there are {0} selected values.","es-ES":"Actualmente hay {0} valores seleccionados.","fr-FR":"Actuellement, {0} valeurs sont sélectionnées.","it-IT":"Attualmente sono presenti {0} valori selezionati.","ja-JP":"現在、値が {0} つ選択されています。","ko-KR":"현재 {0}개의 값이 선택되었습니다.","nl-NL":"Er zijn momenteel {0} geselecteerde waarden.","pl-PL":"Liczba aktualnie wybranych wartości: {0}.","pt-BR":"Atualmente, há {0} valores selecionados.","ru-RU":"В настоящее время выбраны значения: {0}.","sv-SE":"Just nu är {0} värden valda.","tr-TR":"Şu anda seçili {0} değer var.","zh-CN":"当前有 {0} 个已选择的值。","zh-TW":"目前有 {0} 個選取的值。"}},SNTable_SelectionLabel_SelectionsConfirmed:{id:"SNTable.SelectionLabel.SelectionsConfirmed",locale:{"de-DE":"Auswahl bestätigt.","en-US":"Selections confirmed.","es-ES":"Confirmadas las selecciones.","fr-FR":"Sélections confirmées.","it-IT":"Selezioni confermate.","ja-JP":"選択が確定されました。","ko-KR":"선택 내용이 확인되었습니다.","nl-NL":"Selecties bevestigd.","pl-PL":"Potwierdzono wybory.","pt-BR":"Seleções confirmadas.","ru-RU":"Выборки подтверждены.","sv-SE":"Valen har bekräftats.","tr-TR":"Seçimler onaylandı.","zh-CN":"选择已确认。","zh-TW":"選項已確認。"}},SNTable_SelectionLabel_selected:{id:"SNTable.SelectionLabel.selected",locale:{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбрано","sv-SE":"Urval","tr-TR":"Seçildi","zh-CN":"已选择","zh-TW":"已選取"}},SNTable_SortLabel_PressSpaceToSort:{id:"SNTable.SortLabel.PressSpaceToSort",locale:{"de-DE":"Drücken Sie die Leertaste, um nach dieser Spalte zu sortieren","en-US":"Press space to sort on this column","es-ES":"Pulse la barra espaciadora para ordenar en esta columna.","fr-FR":"Appuyez sur Espace pour trier en fonction de cette colonne.","it-IT":"Premere la barra spaziatrice per ordinare questa colonna","ja-JP":"スペース キーを押して、この列をソートします","ko-KR":"이 열을 정렬하려면 스페이스바를 누르십시오.","nl-NL":"Druk op de spatiebalk om sorteren in deze kolom in te schakelen","pl-PL":"Naciśnij spację, aby posortować według tej kolumny","pt-BR":"Pressione espaço para classificar por esta coluna","ru-RU":"Нажмите пробел, чтобы отсортировать по этому столбцу","sv-SE":"Tryck på Blanksteg om du vill sortera efter den här kolumnen","tr-TR":"Bu sütunda sıralama yapmak için boşluk tuşuna basın.","zh-CN":"按下空格键以在该列上排序。","zh-TW":"在此欄按下空格鍵以進行排序"}},SNTable_SortLabel_SortedAscending:{id:"SNTable.SortLabel.SortedAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortiert.","en-US":"Sorted in ascending order.","es-ES":"Ordenado por orden ascendente.","fr-FR":"Tri dans l'ordre croissant.","it-IT":"Ordinato in ordine crescente.","ja-JP":"昇順で並べ替えられます。","ko-KR":"오름차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in oplopende volgorde.","pl-PL":"Posortowane rosnąco.","pt-BR":"Classificado em ordem crescente.","ru-RU":"Сортировка в порядке возрастания.","sv-SE":"Sorterat i stigande ordning.","tr-TR":"Artan düzende sıralanmıştır.","zh-CN":"已按升序排列。","zh-TW":"已依遞增順序排序。"}},SNTable_SortLabel_SortedDescending:{id:"SNTable.SortLabel.SortedDescending",locale:{"de-DE":"In absteigender Reihenfolge sortiert.","en-US":"Sorted in descending order.","es-ES":"Ordenado por orden descendente.","fr-FR":"Tri dans l'ordre décroissant.","it-IT":"Ordinato in ordine decrescente.","ja-JP":"降順で並べ替えられます。","ko-KR":"내림차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in aflopende volgorde.","pl-PL":"Posortowane malejąco.","pt-BR":"Classificado em ordem decrescente.","ru-RU":"Сортировка в порядке убывания.","sv-SE":"Sorterat i fallande ordning.","tr-TR":"Azalan düzende sıralanmıştır.","zh-CN":"已按降序排列。","zh-TW":"已依遞減順序排序。"}}};const KH=tR(e=>{const t=e(iA),r=e(tA);let n;return function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(YH).forEach(t=>{e.add(YH[t])})}(t),({keys:e,politeness:o="polite"})=>{const i=e.map(e=>{if(Array.isArray(e)){const[r,...n]=e;return t.get(r,n)}return t.get(e)}).join(" "),a=r.querySelector(`.${GP.First}`),s=r.querySelector(`.${GP.Second}`);if(!a||!s)return void console.error("could not find aria-live elements, which means accessibility is not working properly");let l;n===GP.First?(l=s,n=GP.Second):(l=a,n=GP.First),l.innerHTML=l.innerHTML.endsWith(" ")?i:`${i} `,l.setAttribute("aria-live",o)}}),XH=(e,t)=>{const r=fR(KH),n=fR(tA),o=fR(pk),i=fR(dk),a=fR(ck),s=fR(sk),[l,u]=mR(VH),c=fR(DR),d=fR(YR);WH(()=>{const t=((e,t,r=!1)=>{const n=[U$(t),e[1]];return r?n:YP})(l,s,c);(({resetCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(X$(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=G$(t,e);r.current?(J$(s),r.current=!1):Y$(s),n&&(a({keys:[s?.textContent??""]}),sT(a,s,n))})({resetCellCoord:t,rootElement:n,shouldRefocus:e,setFocusedCellCoord:u,isSelectionMode:c,keyboard:d,announce:r})},[a.length,i,o,t])},JH=e=>{const t=fR(HR),r=fR(qI);D(()=>{const n=e.current;if(!n)return;const o=e=>{((e,t,r)=>{if(0===e.deltaX)return;e.stopPropagation();const n=r.scrollWidth-r.offsetWidth;let{scrollLeft:o}=r,i=o+e.deltaX;t&&(i=n+i),n>0&&(i<0||i>n+1)&&(e.preventDefault(),o=t?Math.min(0,Math.min(n,i)):Math.max(0,Math.min(n,i)))})(e,"rtl"===t,n)},i=e=>{r.scrollLeft=e.currentTarget?.scrollLeft||0};return n.addEventListener("wheel",o),n.addEventListener("scroll",i),()=>{n.removeEventListener("wheel",o),n.removeEventListener("scroll",i)}},[e,t,r])},ZH=e=>{FC(e),lT(e)&&xE(e.currentTarget)},QH=e=>{pT(e.evt)&&(FC(e.evt),Q$(e))},eB=e=>{const{evt:t,totalsPosition:r,cell:n,isSelectionMode:o}=e;if(!pT(t))return;FC(t);const i=((e,t)=>[e.pageRowIdx+U$(t),e.pageColIdx])(n,r),a=((e,t)=>({top:e?U$(t):0,bottom:e&&t.atBottom?1:0}))(o,r),{nextCell:s,nextCellCoord:l}=Q$({...e,cellCoord:i,allowedRows:a});l[0]!==i[0]&&(({evt:e,isSelectionsEnabled:t,cell:r,selectionDispatch:n,announce:o,isSelectionMode:i,nextCell:a})=>{e.shiftKey&&t&&r.isSelectable?n({type:VP.SelectMultiAdd,payload:{cell:r,evt:e,announce:o}}):sT(o,a,i)})({...e,nextCell:s})},tB=e=>{const{evt:t}=e;uT(t)?(({evt:e,totalRowCount:t,rowsPerPage:r,page:n,updateShouldRefocus:o,handleChangePage:i})=>{FC(e);const a=Math.ceil(t/r)-1;e.key===dE.Right&&n<a?(o(),i(n+1)):e.key===dE.Left&&n>0&&(o(),i(n-1))})(e):t.key===dE.Esc?(({evt:e,keyboard:t,isSelectionMode:r})=>{t.enabled&&!r&&(FC(e),t.blur?.(!0))})(e):cT(t.key)&&FC(t)},rB=e=>{const{evt:t,selectionsAPI:r}=e;if(t.currentTarget.classList.contains(WP.Disabled))return void FC(t);const n={...e,isSelectionMode:!!r?.isModal()};switch(t.key){case dE.Space:(({evt:e,cell:t,isSelectionsEnabled:r,selectionDispatch:n,announce:o})=>{FC(e),t.isSelectable&&r&&n({type:VP.Select,payload:{cell:t,evt:e,announce:o}})})(n);break;case dE.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{FC(r),e&&(t?.confirm(),n({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(n);break;case dE.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{e&&(FC(r),t?.cancel(),n({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(n);break;case dE.C:ZH(t);break;case dE.Tab:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{const o=e.shiftKey||!n;t.enabled&&r&&o&&(FC(e),zC(e.currentTarget,t,e.shiftKey))})(n);break;default:eB(n)}},nB=e=>{const t=fR(PM),r=hR(MM),n=hR(IM),o=fR(BP),i=M();CH({ref:e,callback:a=>{const s=()=>{if(e.current){const e=a.borderBoxSize.at(0)?.inlineSize??0,t=a.borderBoxSize.at(0)?.blockSize??0,o=a.contentBoxSize.at(0)?.inlineSize??0,i=t-(a.contentBoxSize.at(0)?.blockSize??0);n(e-o),r(i)}};t?(i.current&&o.off("done-adjusting-column-width",i.current),o.once("done-adjusting-column-width",s),i.current=s):s()}}),D(()=>{const e=o;return()=>{i.current&&e.off("done-adjusting-column-width",i.current)}},[o])},oB=Sc("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),iB=Sc(em,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})(({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"})),aB=Sc(jh,{shouldForwardProp:e=>"borderRight"!==e})(({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e})),sB=()=>ur.jsxs(ur.Fragment,{children:[ur.jsx(oB,{className:GP.First,"data-testid":GP.First,"aria-live":"polite","aria-atomic":"true"}),ur.jsx(oB,{className:GP.Second,"data-testid":GP.Second,"aria-live":"polite","aria-atomic":"true"})]}),lB=e=>{const t=M(new Map),r=M(null);D(()=>{r.current=e(t.current),t.current.forEach((e,t)=>{r.current?.observe(t)});const n=t.current,o=r.current;return()=>{o.disconnect(),n.clear()}},[e,r,t]);const n=O((e,n)=>{t.current.set(e,n),r.current?.observe(e)},[t,r]),o=O(e=>{t.current.delete(e),r.current?.unobserve(e)},[r,t]);return A(()=>({addTask:n,removeTask:o}),[n,o])},uB=e=>new ResizeObserver(t=>{t.forEach(t=>{const r=e.get(t.target);r?.(t)})}),cB=()=>lB(uB),dB=({updateShouldRefocus:e,tableWrapperRef:t})=>{const r=fR(TR),n=fR(YR),o=hR(bT);D(()=>{const i=()=>{o({type:VP.Reset})},a=()=>{o({type:VP.Clear})},s=()=>{t.current?.contains(document.activeElement)?e():n.enabled&&n.blur?.(!0),i()};return r?.on("deactivated",i),r?.on("canceled",i),r?.on("confirmed",s),r?.on("cleared",a),()=>{r?.removeListener("deactivated",i),r?.removeListener("canceled",i),r?.removeListener("confirmed",s),r?.removeListener("cleared",a)}},[r,n,o,e,t])},pB=e=>{e.stopPropagation()},fB=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:pB,color:OC.LINK,style:{pointerEvents:r.active?"auto":"none",color:n??void 0,opacity:r.active&&r.passive||n?void 0:.4}}),hB=({href:e,text:t,interactions:r,color:n})=>ur.jsx(cf,{...fB({href:e,text:t,interactions:r,color:n}),children:t}),mB=window.requestIdleCallback??(e=>setTimeout(()=>{e({})},0)),gB=window.cancelIdleCallback??(e=>{clearTimeout(e)}),vB="qDimensionInfo/0",bB="qMeasureInfo/0",yB="x",xB="y",SB=e=>({key:"bars",type:"box",data:{extract:{field:vB,props:{start:0,end:{field:bB}}}},settings:{major:{scale:yB},minor:{scale:xB},box:{maxWidthPx:8,fill:{fn:e}}}}),wB=e=>({key:"p",type:"point",data:{extract:{field:vB,props:{y:{field:bB}}}},settings:{x:{scale:yB},y:{scale:xB},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),CB=({qNum:e})=>void 0===e?0:Math.sign(e),EB=(e,t)=>{const{primary:r,nil:n,others:o}=e.getDataColorSpecials(),i=_C(e,t?.negative,r),a=_C(e,t?.positive,r);return{key:"pos-neg",type:"box",data:{extract:{field:vB,props:{start:0,end:{field:bB,value:CB}}}},settings:{major:{scale:yB},minor:{scale:xB},box:{maxWidthPx:8,fill:{fn:e=>-2===e.datum.value?n:-3===e.datum.value?o:0===e.datum.end.value?"#DDDDDD":Math.sign(e.datum.end.value)<0?i:a}}}}},RB=(e,{type:t,showDots:r,colors:n,colorMin:o,colorMax:i})=>{const a=((e,t,r,n)=>{const{primary:o,nil:i,others:a}=e.getDataColorSpecials(),s=_C(e,t?.main,o),l=_C(e,t?.max,s),u=_C(e,t?.min,s),c=_C(e,t?.first,s),d=_C(e,t?.last,s);return e=>{const t=xB in e.datum?xB:"end";return-2===e.datum.value?i:-3===e.datum.value?a:e.datum[t].value>=n?l:e.datum[t].value<=r?u:e.data.items.at(0)===e.datum?c:e.data.items.at(-1)===e.datum?d:s}})(e,n,o,i);switch(t){case"bars":return[SB(a)];case"dots":return[wB(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:vB,props:{v:{field:bB}}}},settings:{coordinates:{major:{scale:yB},minor:{scale:xB,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(_C(e,n?.main,e.getDataColorSpecials().primary));return r?[t,wB(a)]:[t]}case"posNeg":return[EB(e,n)];default:return[]}},AB=e=>({qDimensionInfo:[{qFallbackTitle:"",qCardinal:1}],qMeasureInfo:[{qFallbackTitle:""}],qDataPages:[{qArea:{qTop:0,qLeft:0,qHeight:e.length,qWidth:2},qMatrix:e}],qEffectiveInterColumnSortOrder:[0,1],qSize:{qcx:2,qcy:e.length},qMode:"S"}),PB=(e,t,r,n)=>({y:{data:{field:bB},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:r},x:{data:{extract:{field:vB}},paddingInner:.3,paddingOuter:0,invert:"rtl"===n,align:"rtl"===n?1:0,maxPxStep:12}}),MB=U();MB.use(V),MB.renderer.prio(["canvas"]);const IB={resolve:()=>{},promise:{}},kB=({chart:e,element:t,requestId:r,theme:n,isSnapshot:o,direction:i,miniChartData:a,downloadService:s})=>{const{resolveChartPromise:l,addChartPromiseToQueue:u}=(e=>{const t=M(e.isDownloadedAsPDForImage?Nt():IB);return{addChartPromiseToQueue:O(()=>{e.waitForPromise(t.current.promise)},[e]),resolveChartPromise:t.current.resolve}})(s);return{renderChartWithRequestIdleCallback:O(()=>{if(null===t.current||null!==e.current)return;u();r.current=mB(()=>{t.current&&(e.current=(({element:e,theme:t,isSnapshot:r,miniChartData:n,onChartRendered:o,direction:i})=>{const{type:a,qMatrix:s,minY:l,maxY:u}=n;return MB.chart({element:e,data:{type:"q",key:"qHyperCube",data:AB(s)},settings:{scales:PB(a,l,u,i),components:RB(t,n),strategy:r?{size:{width:e.offsetWidth,height:e.offsetHeight}}:void 0},mounted:()=>{o()}})})({element:t.current,theme:n,isSnapshot:o,miniChartData:a,direction:i,onChartRendered:l}))},{timeout:2e3})},[t,e,u,r,n,o,a,i,l]),safeCancelIdleCallback:O(()=>{null!==r.current&&gB(r.current),r.current=null,l()},[r,l])}},DB=e=>{const t=M(null),r=M(!1);return O(n=>{const o=n.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(gB(e.current),e.current=null)})(t),r.current?0!==o?null!==e.current&&(t.current=mB(()=>{e.current?.update()},{timeout:2e3})):r.current=!1:r.current=!0},[e])},TB=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:r,isSnapshot:n,miniChartData:o,downloadService:i,direction:a})=>{const s=M(null),l=M(null),u=M(null),{renderChartWithRequestIdleCallback:c,safeCancelIdleCallback:d}=kB({element:s,chart:l,requestId:u,theme:r,isSnapshot:n,direction:a,miniChartData:o,downloadService:i});return(({element:e,intersectionObserverTaskScheduler:t,safeCancelIdleCallback:r,renderChartWithRequestIdleCallback:n,chart:o})=>{const i=O(e=>{e.isIntersecting?n():r()},[n,r]);D(()=>{if(!e.current||!t)return()=>{};const n=e.current;return t.addTask(n,i),()=>{t.removeTask(n),r(),o.current?.destroy(),o.current=null}},[o,e,t,r,i])})({element:s,intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:l}),(({renderChartWithRequestIdleCallback:e,safeCancelIdleCallback:t,chart:r,intersectionObserverTaskScheduler:n})=>{D(()=>n?()=>{}:(e(),()=>{t(),r.current?.destroy(),r.current=null}),[n,t,e,r])})({intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:l}),(({element:e,chart:t,resizeObserverTaskScheduler:r})=>{const n=DB(t);D(()=>{const t=e.current;return t?(r.addTask(t,n),()=>{r.removeTask(t)}):()=>{}},[e,n,r])})({element:s,chart:l,resizeObserverTaskScheduler:t}),s},OB=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=TB({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return ur.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},LB=e=>{let t="center",r="center";return"flex-start"===e?.vertical?t="top":"flex-end"===e?.vertical&&(t="bottom"),"flex-start"===e?.horizontal?r="left":"flex-end"===e?.horizontal&&(r="right"),`${r} ${t}`},qB=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},NB=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const o=fR(HR),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,u="fitHeight"===s,c=ur.jsx("img",{src:i,alt:a,style:{...t,width:u?"auto":"100%",height:"100%",maxHeight:r,objectFit:qB(s),objectPosition:LB(l),overflow:"hidden"}});return n?ur.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:u?r:"100%",overflow:"hidden",display:"flex",justifyContent:u?fM(o,e):void 0},children:c}):c},_B=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})})),jB=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})})),zB=q((e,t)=>ur.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[ur.jsx("path",{d:"M3 9v6.5a.5.5 0 1 1-1 0V.5a.5.5 0 0 1 1 0V1q2.441.639 3.667.639c1.225 0 1.774-.995 3.87-1.196q1.972-.19 3.297.47A.3.3 0 0 1 14 1.18v7.344a.3.3 0 0 1-.417.277q-1.338-.565-3.045-.416c-1.98.172-2.083 1.107-3.871 1.253Q4.879 9.785 3 9"}),ur.jsx("use",{fillRule:"evenodd"})]})),FB=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M13.9 7.4c-1 1.3-.6 1.5-1.5 4.1-.5 1.8-1.2 2.9-1.7 3.6q-.45.6-.9.9H4.2c-1 0-1.6-.5-1.9-1-.2-.3-.3-.6-.3-1V4.2c0-.4.3-.7.7-.7s.7.3.7.7v3.6l.9-.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v5.1l1.1-.2V.7C6.7.3 7 0 7.4 0s.7.3.7.7v5.9l1.1.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v7.7s.1 0 .1-.2l.6-1.4c1.1-2.1 3.1-1.1 2.6-.3"})})),$B=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M5 13h6v1.5c0 .3-.2.5-.5.5H10v.5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5V15h-.5c-.3 0-.5-.2-.5-.5zm0-1c0-2-3-3-3-7 0-3 3-5 6-5s6 2 6 5c0 4-3 4-3 7H5m-.5-7c.3 0 .5-.2.5-.5s.2-.7.5-1 .6-.5 1-.5c.3 0 .5-.2.5-.5S6.8 2 6.5 2c-.6 0-1.2.3-1.7.8S4 3.9 4 4.5c0 .3.2.5.5.5"})})),HB=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8m4.5 9c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6h-9c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7z"})})),BB=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M2 7.5h12v1H2z"})})),WB=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M9 7h7a7.004 7.004 0 0 0-7-7zm1-5.917A6.005 6.005 0 0 1 14.917 6H10zM14 9H7V2a7.002 7.002 0 0 0 0 14 7 7 0 0 0 7-7m-8 1h6.917A6.002 6.002 0 0 1 1 9a6 6 0 0 1 5-5.917z"})})),VB=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M9 9h3.5c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6H9V3.5c0-.25-.3-.5-.6-.5h-.7c-.4 0-.7.25-.7.5V7H3.5c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7H7v3.5c0 .25.3.5.6.5h.8c.3 0 .6-.25.6-.5zM8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})})),UB=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"m8.418 1.007.042.08 1.788 4.217 4.571.388a.5.5 0 0 1 .348.811l-.063.065-3.472 3.008 1.043 4.47a.5.5 0 0 1-.664.581l-.081-.04L8 12.217l-3.93 2.372a.5.5 0 0 1-.757-.453l.012-.089 1.043-4.47L.896 6.568a.5.5 0 0 1 .196-.86l.089-.016 4.571-.388L7.54 1.086a.5.5 0 0 1 .878-.08Z"})})),GB=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M13 14H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1"})})),YB={m:q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})})),"ï":UB,R:kH,S:IH,T:q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M11 2.4v11.2a.2.2 0 0 1-.32.16l-7.467-5.6a.2.2 0 0 1 0-.32l7.467-5.6a.2.2 0 0 1 .32.16"})})),U:q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M4 13.6V2.4a.2.2 0 0 1 .32-.16l7.467 5.6a.2.2 0 0 1 0 .32l-7.467 5.6A.2.2 0 0 1 4 13.6"})})),P:VB,Q:HB,"è":q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M14.98 15H1.04c-1.002 0-1.303-.7-.802-1.5l6.82-11.9c.5-.8 1.303-.8 1.804 0l6.92 11.9c.501.8.1 1.5-.803 1.5M8.5 5h-1c-.3 0-.5.2-.5.5V9c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5V5.5c0-.3-.2-.5-.5-.5m-1 6c-.3 0-.5.2-.5.5v1c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5v-1c0-.3-.2-.5-.5-.5z"})})),"¢":FB,"©":zB,"23F4":$B,2013:GB,"&":WB,add:_B,"minus-2":BB,dot:jB},KB=({size:e,iconKey:t,color:r,pvStyle:n})=>{const o=t&&YB[t];return o&&ur.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n},children:ur.jsx(o,{style:{height:e}})})},XB=({representation:e,cellValue:t,paginationCellAlign:r})=>{const n=fR(Ek),o=fR(HR),i=fR(oA),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=s??{},c=iM(e,t,o,i),d=(e=>parseInt(e||lM,10))(n.measure.values.fontSize),{color:p,iconKey:f,position:h}=c||{};return l?ur.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:r??"flex-end",alignItems:"center",gap:"2px",overflow:"hidden",color:u?p:void 0},children:["left"===h&&KB({size:d,iconKey:f,color:p}),ur.jsx(fH,{isNumeric:!0,children:a}),"right"===h&&KB({size:d,iconKey:f,color:p})]}):KB({size:d,iconKey:f,color:p})},JB=(e,t)=>e.contentStaticLineCount?e.contentLineHeight*(t??e.grid.contentLineClamp):e.contentLineHeight,ZB=({forwardRef:e,cell:t,style:r,virtualizedCell:n,lineClamp:o,intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,paginationCellAlign:s})=>{const l=fR(Ek),u=fR(vR),c=fR(wR),d=fR(oA),p=fR(HR),f=fR(LR),h=fR(DR);if(t.representation.type===WA.Image&&!t.representation.url?.trim())return null;if(t.representation.type===WA.Image)return ur.jsx(NB,{representation:t.representation,textStyle:r,maxImageHeight:JB(l,o),wrapInContainer:!n});let m=t.representation.text;t.representation.type!==WA.Link||h||(m=ur.jsx(hB,{href:t.representation.url,text:t.representation.text,interactions:f,color:r.cellForegroundColor}));const g="string"==typeof(v=t.qIsNull?t.representation.text:t.qNum)&&v.length>0||"number"==typeof v?+v:NaN;var v;return t.representation.type!==WA.Indicator||Number.isNaN(g)?t.representation.type===WA.MiniChart&&t.representation.miniChart&&!t.isNull?ur.jsx(OB,{height:JB(l,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:d,isSnapshot:!!c.snapshotData,direction:p,downloadService:u}):ur.jsx(fH,{forwardRef:e,isNumeric:t.isNumeric,lineClamp:o,isPagination:!n,children:m}):ur.jsx(XB,{representation:t.representation,cellValue:g,paginationCellAlign:n?void 0:s})},QB=()=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"0.75em",height:"0.75em",children:ur.jsx("path",{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"})}),eW=Sc("div")({"& path":{stroke:"none !important"}}),tW=({children:e,cellSelectionState:t})=>t===WP.Selected?ur.jsxs(dH,{children:[e,ur.jsx(eW,{children:ur.jsx(QB,{})})]}):e,rW=e=>{const t=function(){const e=b$(),t=i$(()=>null==e?void 0:e.dragOperation.source,[e]),r=i$(()=>null==e?void 0:e.dragOperation.target,[e]);return{get source(){return t.value},get target(){return r.value}}}();return t.source&&t.source.id!==e?.5:1},nW=(e,t,r,n)=>({handleMouseDown:n=>{e?.(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{r({type:VP.SelectMultiEnd})};r({type:VP.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:VP.SelectMultiAdd,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:VP.SelectMouseUp,payload:{cell:t,evt:e,announce:n}})}}),oW=e=>{const t=fR(fk),r=fR(sk),n=fR(KH),o=fR(tA),i=fR(HR),a=hR(VH),s=hR(bT),l=fR(YR),u=fR(_R),c=fR(TR),d=d=>{rB({evt:d,rootElement:o,selectionsAPI:c,cell:e,selectionDispatch:s,isSelectionsEnabled:u,setFocusedCellCoord:a,announce:n,keyboard:l,paginationNeeded:t,totalsPosition:r,direction:i})},p=e=>{((e,t)=>{e.key===dE.Shift&&t({type:VP.SelectMultiEnd})})(e,s)},f=()=>{((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;eH([s,a],t,r,n)})(e,o,a,l,r)};if(!u)return{onKeyDown:d,onKeyUp:p,onMouseDown:f};const{handleMouseDown:h,handleMouseOver:m,handleMouseUp:g}=nW(f,e,s,n);return{onKeyDown:d,onKeyUp:p,onMouseDown:h,onMouseUp:g,onMouseOver:m}},iW=e=>{D(()=>()=>{yT.remove(e)},[e])},aW=(e,t,r)=>{if(!r.isNull)return e;const n={...e,...t.nullValues};return t.grid.zebraStripes.show?(t.grid.zebraStripes.overrideNullValueColor&&(n.color=e.color),t.grid.zebraStripes.overrideNullValueBackground&&(n.background=e.background),n):n},sW=(e,t,r)=>{const{color:n,background:o}=e.grid.zebraStripes[r];return{...t,...n?{color:n}:void 0,...o?{background:o}:void 0}},lW=(e,t,r)=>{if(t.grid.zebraStripes.show){const n=(r.rowIdx+1)%2==0;return sW(t,e,n?"even":"odd")}return e},uW=(e,t)=>{const r=fR(Ek),n=fR(yT(e));iW(e);let o=t.isDim?r.dimension.values:r.measure.values;o=lW(o,r,e),o=aW(o,r,e);const i=zM(o,e.qAttrExps,t.qAttrExprInfoIDs),a=function(e,t,r){return t===WP.Selected?{...e,...r}:t===WP.Disabled?{...e,background:`${aM}, ${e.background}`}:e}(A(()=>e.isNull?o:zM(o,e.qAttrExps,t.qAttrExprInfoIDs),[o,e.qAttrExps,e.isNull,t.qAttrExprInfoIDs]),n,r.selectedColors);return{cellStyle:{...a,borderColor:r.grid.border},representationStyle:i,cellSelectionState:n}},cW=Sc(Vh,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})(({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}})),dW=Sc(pm,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e&&"height"!==e})(({hover:e,hoverColors:t,height:r})=>({height:r,"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}})),pW=Sc(Xh,{shouldForwardProp:e=>"cellStyle"!==e})(({cellStyle:e,theme:t})=>({...dM,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",boxSizing:"border-box",width:"100%",height:"100%"})),fW=Sc(Xh,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})(({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...dM,...e,fontWeight:uM,position:"sticky",padding:n.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t?r:void 0,bottom:t?void 0:0,verticalAlign:t?"bottom":"top",boxSizing:"border-box",zIndex:t?1:void 0})),hW=({cell:e,column:t,columnIndex:r,intersectionObserverTaskScheduler:n,resizeObserverTaskScheduler:o})=>{const i=fR(HR),a=fR(LR),{onKeyDown:s,onKeyUp:l,onMouseDown:u,onMouseUp:c,onMouseOver:d}=oW(e),{cellStyle:p,representationStyle:f,cellSelectionState:h}=uW(e,t),m=rW(t.id);return ur.jsx(pW,{cellStyle:{...p,opacity:m},scope:0===r?"row":void 0,component:0===r?"th":void 0,align:e.align,tabIndex:-1,className:`sn-table-cell ${h} ${cE}`,title:a.passive?e.representation.text:void 0,onKeyDown:s,onKeyUp:l,onMouseDown:u,onMouseUp:c,onMouseOver:d,children:ur.jsx(tW,{cellSelectionState:h,children:ur.jsx(ZB,{cell:e,style:f,intersectionObserverTaskScheduler:n,resizeObserverTaskScheduler:o,paginationCellAlign:vM(i,e.align)})})})},mW=tR(0),gW=({column:e,totalsPosition:t,onKeyDown:r,onMouseDown:n})=>{const o=fR(Ek),i=fR(NR),a=fR(mW),s=rW(e.id);return ur.jsx(fW,{totalsStyle:{...o.totalRow,...H$(o,t,!1),opacity:s},headRowHeight:a,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${cE}`,tabIndex:-1,title:i?e.totalInfo:void 0,onKeyDown:r,onMouseDown:n,children:ur.jsx(fH,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)},vW=()=>{const e=fR(sk),t=fR(lk),r=fR(ck),n=fR(tA),o=fR(qR),i=fR(HR),a=hR(VH),s=fR(DR),l=fR(YR);return ur.jsx(pm,{className:"sn-table-row sn-table-totals-row",children:t.map((t,u)=>{const c=[e.atTop?1:r.length+1,u];return ur.jsx(gW,{column:t,totalsPosition:e,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:r,isInteractionEnabled:n}=e;if(!t&&n)switch(r.key){case dE.C:ZH(r);break;case dE.Space:r.preventDefault();break;default:QH(e)}else FC(r)})({evt:e,rootElement:n,cellCoord:c,setFocusedCellCoord:a,isSelectionMode:s,isInteractionEnabled:o,direction:i})},onMouseDown:()=>{eH(c,n,a,l)}},t.id)})})};var bW=N(vW);const yW=({updateShouldRefocus:e,tableWrapperRef:t})=>{const r=fR(ck),n=fR(sk),o=fR(lk),i=fR(Ek),a=fR(wR),s=!!qM(a)?.content?.hoverEffect;dB({updateShouldRefocus:e,tableWrapperRef:t});const l=(e=>{const t=O(t=>new IntersectionObserver(e=>{e.forEach(e=>{const r=t.get(e.target);r?.(e)})},{root:e.current}),[e]);return lB(t)})(t),u=cB();return ur.jsxs(cW,{lastRowBottomBorder:i.grid.lastRowBottomBorder,children:[n.atTop?ur.jsx(bW,{}):void 0,r.map((e,t)=>ur.jsx(dW,{hoverColors:i.grid.hoverColors,hover:s,tabIndex:-1,className:"sn-table-row sn-table-data-row",height:i.contentMinRowHeight,children:o.map((t,r)=>{const{id:n}=t,o=e[r];return ur.jsx(hW,{columnIndex:r,cell:o,column:t,intersectionObserverTaskScheduler:l,resizeObserverTaskScheduler:u},n)})},`row-${t}`)),n.atBottom?ur.jsx(bW,{}):void 0]})};var xW=N(yW);const SW=(e,t)=>!!e?.skipHeader||!!t.hideHeader,wW=tR(e=>{const t=e(wR),r=e(KR);if(r)return(e,{isDim:n,colIdx:o})=>{const i=n?o:o-t.qHyperCube.qDimensionInfo.length,a=`/qHyperCubeDef/${n?"qDimensions":"qMeasures"}/${i}/qDef/columnWidth`,s=t.qHyperCube[n?"qDimensionInfo":"qMeasureInfo"].at(i)?.columnWidth,l=s?{qPath:a,qOp:"Replace",qValue:JSON.stringify({...s,...e})}:{qPath:a,qOp:"Add",qValue:JSON.stringify(e)};r.applyPatches([l],!0)}}),CW=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,a=fR(wW),s=fR(HR),l=fR(qR),u=fR(iA),[c,d]=mR(Ik);if(!l)return null;return ur.jsx(_k,{columnWidth:c.at(o)??0,isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{r?.();const t=[...c];t[o]=e,d(t)},confirmWidthCallback:t=>{a?.(t,e)},handleBlur:e=>{(e=>{K$(e);const t=e.closest(".sn-table-cell");J$(t)})(e.currentTarget)},setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:u,columnLabel:i},direction:s})},EW=e=>e.target?.getAttribute("class")?.includes(pE),RW=({isInteractionEnabled:e,column:t})=>{const[r,n]=P(!1),o=fR(B$),i=fR(PM);return{open:r,setOpen:n,handleOpenMenu:t=>{!e||EW(t)||i||n(!0)},toggleSortOrder:r=>{e&&!EW(r)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(r)&&(r.stopPropagation(),o?.(t,"A"===t.sortDirection?"D":"A"))}}};var AW=Object.defineProperty,PW=Object.defineProperties,MW=Object.getOwnPropertyDescriptors,IW=Object.getOwnPropertySymbols,kW=Object.prototype.hasOwnProperty,DW=Object.prototype.propertyIsEnumerable,TW=(e,t,r)=>t in e?AW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,OW=(e,t)=>{for(var r in t||(t={}))kW.call(t,r)&&TW(e,r,t[r]);if(IW)for(var r of IW(t))DW.call(t,r)&&TW(e,r,t[r]);return e},LW=(e,t)=>PW(e,MW(t)),qW=class extends kN{apply({transform:e}){if(!this.options)return e;const{axis:t,value:r}=this.options;return LW(OW({},e),{[t]:r})}};qW.configure=XL(qW);var NW=qW;NW.configure({axis:"x",value:0}),NW.configure({axis:"y",value:0});var _W=class extends kN{apply({transform:e}){var t;const{size:r=20}=null!=(t=this.options)?t:{},n="number"==typeof r?r:r.x,o="number"==typeof r?r:r.y;return LW(OW({},e),{x:Math.ceil(e.x/n)*n,y:Math.ceil(e.y/o)*o})}};_W.configure=XL(_W);var jW=class extends kN{constructor(e,t){super(e,t),this.boundingRectangle=qT(null),this.destroy=VT(()=>{if(!this.options)return;const{dragOperation:t}=e,{status:r}=t;if(r.initialized){const{element:e}=this.options,r="function"==typeof e?e(t):e;if(!r)return;let n;const o=()=>{this.boundingRectangle.value=WN(r)},i=()=>{n||(n=setTimeout(()=>{o(),n=void 0},25))},a=new ResizeObserver(o);return a.observe(r),document.addEventListener("scroll",i,{passive:!0,capture:!0}),()=>{document.removeEventListener("scroll",i,{capture:!0}),a.disconnect(),this.boundingRectangle.value=null}}})}apply(e){const{shape:t,transform:r}=e;if(!t)return r;const n=this.boundingRectangle.value;if(!n)return r;const{initial:o,current:i}=t,{height:a,width:s}=i.boundingRectangle,l=o.center.x-s/2,u=o.center.y-a/2,c=function(e,t,r){const n=OW({},t);return e.boundingRectangle.top+t.y<=r.top?n.y=r.top-e.boundingRectangle.top:e.boundingRectangle.bottom+t.y>=r.top+r.height&&(n.y=r.top+r.height-e.boundingRectangle.bottom),e.boundingRectangle.left+t.x<=r.left?n.x=r.left-e.boundingRectangle.left:e.boundingRectangle.right+t.x>=r.left+r.width&&(n.x=r.left+r.width-e.boundingRectangle.right),n}(new dL(l,u,s,a),r,n);return c}};jW.configure=XL(jW);var zW=jW,FW=Object.create,$W=Object.defineProperty,HW=Object.defineProperties,BW=Object.getOwnPropertyDescriptor,WW=Object.getOwnPropertyDescriptors,VW=Object.getOwnPropertySymbols,UW=Object.prototype.hasOwnProperty,GW=Object.prototype.propertyIsEnumerable,YW=e=>{throw TypeError(e)},KW=(e,t,r)=>t in e?$W(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,XW=(e,t)=>{for(var r in t||(t={}))UW.call(t,r)&&KW(e,r,t[r]);if(VW)for(var r of VW(t))GW.call(t,r)&&KW(e,r,t[r]);return e},JW=(e,t)=>HW(e,WW(t)),ZW=["class","method","getter","setter","accessor","field","value","get","set"],QW=e=>void 0!==e&&"function"!=typeof e?YW("Function expected"):e,eV=(e,t,r,n,o)=>({kind:ZW[e],name:t,metadata:n,addInitializer:e=>r._?YW("Already initialized"):o.push(QW(e||null))}),tV=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},rV=(e,t,r,n,o,i)=>{for(var a,s,l,u,c,d=7&t,p=e.length+1,f=ZW[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(o=o.prototype,BW({get[r](){return oV(this,i)},set[r](e){return aV(this,i,e)}},r)),v=n.length-1;v>=0;v--)(u=eV(d,r,l={},e[3],m)).static=false,u.private=false,c=u.access={has:e=>r in e},c.get=e=>e[r],c.set=(e,t)=>e[r]=t,s=(0,n[v])({get:g.get,set:g.set},u),l._=1,void 0===s?QW(s)&&(g[f]=s):"object"!=typeof s||null===s?YW("Object expected"):(QW(a=s.get)&&(g.get=a),QW(a=s.set)&&(g.set=a),QW(a=s.init)&&h.unshift(a));return g&&$W(o,r,g),o},nV=(e,t,r)=>t.has(e)||YW("Cannot "+r),oV=(e,t,r)=>(nV(e,t,"read from private field"),t.get(e)),iV=(e,t,r)=>t.has(e)?YW("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),aV=(e,t,r,n)=>(nV(e,t,"write to private field"),t.set(e,r),r);function sV(e){return e instanceof _V||e instanceof NV}var lV=Object.defineProperty,uV=Object.defineProperties,cV=Object.getOwnPropertyDescriptors,dV=Object.getOwnPropertySymbols,pV=Object.prototype.hasOwnProperty,fV=Object.prototype.propertyIsEnumerable,hV=(e,t,r)=>t in e?lV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,mV=(e,t)=>{for(var r in t||(t={}))pV.call(t,r)&&hV(e,r,t[r]);if(dV)for(var r of dV(t))fV.call(t,r)&&hV(e,r,t[r]);return e},gV=(e,t)=>uV(e,cV(t));function vV(e,t,r){if(t===r)return e;const n=e.slice();return n.splice(r,0,n.splice(t,1)[0]),n}function bV(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function yV(e,t){return function(e,t,r){var n,o,i;const{source:a,target:s,canceled:l}=t.operation;if(!a||!s||l)return"preventDefault"in t&&t.preventDefault(),e;const u=(e,t)=>e===t||"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const n=e.findIndex(e=>u(e,a.id)),o=e.findIndex(e=>u(e,s.id));if(-1===n||-1===o){if(bV(a)){const n=a.initialIndex,o=a.index;return n===o||n<0||n>=e.length?("preventDefault"in t&&t.preventDefault(),e):r(e,n,o)}return e}if(!l&&"index"in a&&"number"==typeof a.index){const t=a.index;if(t!==n)return r(e,n,t)}return r(e,n,o)}const c=Object.entries(e);let d,p,f=-1,h=-1;for(const[e,t]of c)if(-1===f&&(f=t.findIndex(e=>u(e,a.id)),-1!==f&&(d=e)),-1===h&&(h=t.findIndex(e=>u(e,s.id)),-1!==h&&(p=e)),-1!==f&&-1!==h)break;if(-1===f&&bV(a)){const n=a.initialGroup,o=a.initialIndex,i=a.group,s=a.index;if(null==n||null==i||!(n in e)||!(i in e))return"preventDefault"in t&&t.preventDefault(),e;if(n===i&&o===s)return"preventDefault"in t&&t.preventDefault(),e;if(n===i)return gV(mV({},e),{[n]:r(e[n],o,s)});const l=e[n][o];return gV(mV({},e),{[n]:[...e[n].slice(0,o),...e[n].slice(o+1)],[i]:[...e[i].slice(0,s),l,...e[i].slice(s)]})}if(!a.manager)return e;const{dragOperation:m}=a.manager,g=null!=(o=null==(n=m.shape)?void 0:n.current.center)?o:m.position.current;if(null==p&&s.id in e){const t=s.shape&&g.y>s.shape.center.y?e[s.id].length:0;p=s.id,h=t}if(null==d||null==p||d===p&&f===h){if(null!=d&&d===p&&f===h&&bV(a)){const t=null!=a.group&&a.group!==d,n=a.index!==f;if(t||n){const t=null!=(i=a.group)?i:d;if(t in e){if(d===t)return gV(mV({},e),{[d]:r(e[d],f,a.index)});const n=e[d][f];return gV(mV({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[t]:[...e[t].slice(0,a.index),n,...e[t].slice(a.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(d===p)return gV(mV({},e),{[d]:r(e[d],f,h)});const v=s.shape&&Math.round(g.y)>Math.round(s.shape.center.y)?1:0,b=e[d][f];return gV(mV({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[p]:[...e[p].slice(0,h+v),b,...e[p].slice(h+v)]})}(e,t,vV)}var xV="__default__";function SV(e,t,r,n){const o=n<t?"afterend":"beforebegin";r.insertAdjacentElement(o,e)}function wV(e,t){return e.index-t.index}function CV(e){return Array.from(e).sort(wV)}var EV,RV,AV,PV,MV,IV,kV,DV,TV=[class extends ZL{constructor(e){super(e);const t=VT(()=>{const{dragOperation:t}=e;if(bj(t.activatorEvent)&&sV(t.source)&&t.status.initialized){const t=e.registry.plugins.get(uF);if(t)return t.disable(),()=>t.enable()}}),r=e.monitor.addEventListener("dragmove",(e,t)=>{queueMicrotask(()=>{if(this.disabled||e.defaultPrevented||!e.nativeEvent)return;const{dragOperation:r}=t;if(!bj(e.nativeEvent))return;if(!sV(r.source))return;if(!r.shape)return;const{actions:n,collisionObserver:o,registry:i}=t,{by:a}=e;if(!a)return;const s=function(e){const{x:t,y:r}=e;if(t>0)return"right";if(t<0)return"left";if(r>0)return"down";if(r<0)return"up"}(a),{source:l,target:u}=r,{center:c}=r.shape.current,d=[],p=[];CT(()=>{for(const e of i.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==u?void 0:u.id)&&sV(e)||!e.element)continue;let r=e.shape;const n=new hj(e.element,{getBoundingClientRect:e=>QN(e,void 0,.2)});n.height&&n.width&&(("down"==s&&c.y+10<n.center.y||"up"==s&&c.y-10>n.center.y||"left"==s&&c.x-10>n.center.x||"right"==s&&c.x+10<n.center.x)&&(d.push(e),e.shape=n,p.push(()=>e.shape=r)))}}),e.preventDefault(),o.disable();const f=o.computeCollisions(d,wj);CT(()=>p.forEach(e=>e()));const[h]=f;if(!h)return;const{id:m}=h,{index:g,group:v}=l.sortable;n.setDropTarget(m).then(()=>{const{source:e,target:t,shape:i}=r;if(!e||!sV(e)||!i)return;const{index:a,group:s,target:l}=e.sortable,u=g!==a||v!==s,c=u?l:null==t?void 0:t.element;if(!c)return;sj(c);const d=new hj(c);if(!d)return;const p=dL.delta(d,dL.from(i.current.boundingRectangle),e.alignment);n.move({by:p}),u?n.setDropTarget(e.id).then(()=>o.enable()):o.enable()})})});this.destroy=()=>{r(),t()}}},class extends ZL{constructor(e){super(e);const t=()=>{const t=new Map;for(const r of e.registry.droppables)if(r instanceof _V){const{sortable:e}=r,{group:n}=e;let o=t.get(n);o||(o=new Set,t.set(n,o)),o.add(e)}for(const[e,r]of t)t.set(e,new Set(CV(r)));return t},r=[e.monitor.addEventListener("dragover",(e,r)=>{if(this.disabled)return;const{dragOperation:n}=r,{source:o,target:i}=n;if(!sV(o)||!sV(i))return;if(o.sortable===i.sortable)return;const a=t(),s=o.sortable.group===i.sortable.group,l=a.get(o.sortable.group),u=s?l:a.get(i.sortable.group);l&&u&&queueMicrotask(()=>{e.defaultPrevented||r.renderer.rendering.then(()=>{var n,c,d;const p=t();for(const[e,t]of a.entries()){const r=Array.from(t).entries();for(const[t,o]of r)if(o.index!==t||o.group!==e||!(null==(n=p.get(e))?void 0:n.has(o)))return}const f=o.sortable.element,h=i.sortable.element;if(!h||!f)return;if(!s&&i.id===o.sortable.group)return;const m=CV(l),g=s?m:CV(u),v=null!=(c=o.sortable.group)?c:xV,b=null!=(d=i.sortable.group)?d:xV,y={[v]:m,[b]:g},x=yV(y,e);if(y===x)return;const S=x[b].indexOf(o.sortable),w=x[b].indexOf(i.sortable);r.collisionObserver.disable(),SV(f,S,h,w),CT(()=>{for(const[e,t]of x[v].entries())t.index=e;if(!s)for(const[e,t]of x[b].entries())t.group=i.sortable.group,t.index=e}),r.actions.setDropTarget(o.id).then(()=>r.collisionObserver.enable())})})}),e.monitor.addEventListener("dragend",(e,r)=>{if(!e.canceled)return;const{dragOperation:n}=r,{source:o}=n;sV(o)&&(o.sortable.initialIndex===o.sortable.index&&o.sortable.initialGroup===o.sortable.group||queueMicrotask(()=>{const e=t(),n=e.get(o.sortable.initialGroup);n&&r.renderer.rendering.then(()=>{for(const[t,r]of e.entries()){const e=Array.from(r).entries();for(const[r,n]of e)if(n.index!==r||n.group!==t)return}const t=CV(n),r=o.sortable.element,i=t[o.sortable.initialIndex],a=null==i?void 0:i.element;i&&a&&r&&(SV(r,i.index,a,o.index),CT(()=>{for(const[t,r]of e.entries()){const e=Array.from(r).values();for(const t of e)t.index=t.initialIndex,t.group=t.initialGroup}}))})}))})];this.destroy=()=>{for(const e of r)e()}}}],OV={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1},LV=new class{constructor(){TO(this,$O,new WeakMap)}get(e,t){var r;return e?null==(r=DO(this,$O).get(e))?void 0:r.get(t):void 0}set(e,t,r){var n;if(e)return DO(this,$O).has(e)||DO(this,$O).set(e,new Map),null==(n=DO(this,$O).get(e))?void 0:n.set(t,r)}clear(e){var t;return e?null==(t=DO(this,$O).get(e))?void 0:t.clear():void 0}};RV=[_O],EV=[_O];var qV=class{constructor(e,t){iV(this,PV,tV(AV,8,this)),tV(AV,11,this),iV(this,MV),iV(this,IV),iV(this,kV,tV(AV,12,this)),tV(AV,15,this),iV(this,DV),this.register=()=>(CT(()=>{var e,t;null==(e=this.manager)||e.registry.register(this.droppable),null==(t=this.manager)||t.registry.register(this.draggable)}),()=>this.unregister()),this.unregister=()=>{CT(()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)})},this.destroy=()=>{CT(()=>{this.droppable.destroy(),this.draggable.destroy()})};var r=e,{effects:n=()=>[],group:o,index:i,sensors:a,type:s,transition:l=OV,plugins:u=TV}=r,c=((e,t)=>{var r={};for(var n in e)UW.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&VW)for(var n of VW(e))t.indexOf(n)<0&&GW.call(e,n)&&(r[n]=e[n]);return r})(r,["effects","group","index","sensors","type","transition","plugins"]);this.droppable=new _V(c,t,this),this.draggable=new NV(JW(XW({},c),{effects:()=>[()=>{var e,t,r;const n=null==(e=this.manager)?void 0:e.dragOperation.status;(null==n?void 0:n.initializing)&&this.id===(null==(r=null==(t=this.manager)?void 0:t.dragOperation.source)?void 0:r.id)&&LV.clear(this.manager),(null==n?void 0:n.dragging)&&LV.set(this.manager,this.id,RT(()=>({initialIndex:this.index,initialGroup:this.group})))},()=>{const{index:e,group:t,manager:r}=this,n=oV(this,IV),o=oV(this,MV);e===n&&t===o||(aV(this,IV,e),aV(this,MV,t),this.animate())},()=>{const{target:e}=this,{feedback:t,isDragSource:r}=this.draggable;"move"==t&&r&&(this.droppable.disabled=!e)},()=>{const{manager:e}=this;for(const t of u)null==e||e.registry.register(t)},...n()],type:s,sensors:a}),t,this),aV(this,DV,c.element),this.manager=t,this.index=i,aV(this,IV,i),this.group=o,aV(this,MV,o),this.type=s,this.transition=l}get initialIndex(){var e,t;return null!=(t=null==(e=LV.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=LV.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){RT(()=>{const{manager:e,transition:t}=this,{shape:r}=this.droppable;if(!e)return;const{idle:n}=e.dragOperation.status;r&&t&&(!n||t.idle)&&e.renderer.rendering.then(()=>{const{element:n}=this;if(!n)return;const o=this.refreshShape();if(!o)return;const i=r.boundingRectangle.left-o.boundingRectangle.left,a=r.boundingRectangle.top-o.boundingRectangle.top,{translate:s}=K_(n),l=uj(n,s,!1),u=uj(n,s);if(i||a){const r=s_(GN(n))?JW(XW({},t),{duration:0}):t;lj({element:n,keyframes:{translate:[`${l.x+i}px ${l.y+a}px ${l.z}`,`${u.x}px ${u.y}px ${u.z}`]},options:r}).then(()=>{e.dragOperation.status.dragging||(this.droppable.shape=void 0)})}})})}get manager(){return this.draggable.manager}set manager(e){CT(()=>{this.draggable.manager=e,this.droppable.manager=e})}set element(e){CT(()=>{const t=oV(this,DV),r=this.droppable.element,n=this.draggable.element;r&&r!==t||(this.droppable.element=e),n&&n!==t||(this.draggable.element=e),aV(this,DV,e)})}get element(){var e,t;const r=oV(this,DV);if(r)return null!=(t=null!=(e=d_.get(r))?e:r)?t:this.droppable.element}set target(e){this.droppable.element=e}get target(){return this.droppable.element}set source(e){this.draggable.element=e}get source(){return this.draggable.element}get disabled(){return this.draggable.disabled&&this.droppable.disabled}set feedback(e){this.draggable.feedback=e}set disabled(e){CT(()=>{this.droppable.disabled=e,this.draggable.disabled=e})}set data(e){CT(()=>{this.droppable.data=e,this.draggable.data=e})}set handle(e){this.draggable.handle=e}set id(e){CT(()=>{this.droppable.id=e,this.draggable.id=e})}get id(){return this.droppable.id}set sensors(e){this.draggable.sensors=e}set modifiers(e){this.draggable.modifiers=e}set collisionPriority(e){this.droppable.collisionPriority=e}set collisionDetector(e){this.droppable.collisionDetector=null!=e?e:Sj}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){CT(()=>{this.droppable.type=e,this.draggable.type=e})}get type(){return this.draggable.type}set accept(e){this.droppable.accept=e}get accept(){return this.droppable.accept}get isDropTarget(){return this.droppable.isDropTarget}get isDragSource(){return this.draggable.isDragSource}get isDragging(){return this.draggable.isDragging}get isDropping(){return this.draggable.isDropping}get status(){return this.draggable.status}refreshShape(){return this.droppable.refreshShape()}accepts(e){return this.droppable.accepts(e)}};AV=[,,,FW(null)],PV=new WeakMap,MV=new WeakMap,IV=new WeakMap,kV=new WeakMap,DV=new WeakMap,rV(AV,4,"index",RV,qV,PV),rV(AV,4,"group",EV,qV,kV),((e,t)=>{return KW(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n})(AV,qV);var NV=class extends e${constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}get initialIndex(){return this.sortable.initialIndex}get group(){return this.sortable.group}get initialGroup(){return this.sortable.initialGroup}},_V=class extends t${constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}get group(){return this.sortable.group}},jV=Object.defineProperty,zV=Object.defineProperties,FV=Object.getOwnPropertyDescriptors,$V=Object.getOwnPropertySymbols,HV=Object.prototype.hasOwnProperty,BV=Object.prototype.propertyIsEnumerable,WV=(e,t,r)=>t in e?jV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,VV=(e,t)=>{for(var r in t||(t={}))HV.call(t,r)&&WV(e,r,t[r]);if($V)for(var r of $V(t))BV.call(t,r)&&WV(e,r,t[r]);return e};function UV(e){const{accept:t,collisionDetector:r,collisionPriority:n,id:o,data:i,element:a,handle:s,index:l,group:u,disabled:c,feedback:d,modifiers:p,sensors:f,target:h,type:m}=e,g=VV(VV({},OV),e.transition),v=function(e){var t;const r=null!=(t=b$())?t:void 0,[n]=P(()=>e(r));return n.manager!==r&&(n.manager=r),n$(n.register,[r,n]),n}(t=>new qV(((e,t)=>zV(e,FV(t)))(VV({},e),{transition:g,register:!1,handle:r$(s),element:r$(a),target:r$(h),feedback:d}),t)),b=a$(v,GV);return u$(o,()=>v.id=o),n$(()=>{CT(()=>{v.group=u,v.index=l})},[v,u,l]),u$(m,()=>v.type=m),u$(t,()=>v.accept=t,void 0,NO),u$(i,()=>i&&(v.data=i)),u$(l,()=>{var e;(null==(e=v.manager)?void 0:e.dragOperation.status.idle)&&(null==g?void 0:g.idle)&&v.refreshShape()},s$),c$(s,e=>v.handle=e),c$(a,e=>v.element=e),c$(h,e=>v.target=e),u$(c,()=>v.disabled=!0===c),u$(f,()=>v.sensors=f),u$(r,()=>v.collisionDetector=r),u$(n,()=>v.collisionPriority=n),u$(d,()=>v.feedback=null!=d?d:"default"),u$(g,()=>v.transition=g,void 0,NO),u$(p,()=>v.modifiers=p,void 0,NO),u$(e.alignment,()=>v.alignment=e.alignment),{sortable:b,get isDragging(){return b.isDragging},get isDropping(){return b.isDropping},get isDragSource(){return b.isDragSource},get isDropTarget(){return b.isDropTarget},handleRef:O(e=>{v.handle=null!=e?e:void 0},[v]),ref:O(e=>{var t,r;(e||!(null==(t=v.element)?void 0:t.isConnected)||(null==(r=v.manager)?void 0:r.dragOperation.status.idle))&&(v.element=null!=e?e:void 0)},[v]),sourceRef:O(e=>{var t,r;(e||!(null==(t=v.source)?void 0:t.isConnected)||(null==(r=v.manager)?void 0:r.dragOperation.status.idle))&&(v.source=null!=e?e:void 0)},[v]),targetRef:O(e=>{var t,r;(e||!(null==(t=v.target)?void 0:t.isConnected)||(null==(r=v.manager)?void 0:r.dragOperation.status.idle))&&(v.target=null!=e?e:void 0)},[v])}}function GV(e,t,r){return!("isDragSource"!==e||r||!t)}const YV=({invert:e})=>({dragOperation:t,droppable:r})=>{if(!r.shape)return null;const{shape:n}=t;if(!n)return null;const o=function(e){return e.sortable?.index}(r);if(void 0===o)return null;const i=function(e){return e.source.index}(t);if(void 0===i)return null;if(i===o)return null;const a=i<o!==e?"right":"left",{center:s,boundingRectangle:l}=n.current;return"left"===a&&l.left+.3*l.width<=r.shape.center.x||"right"===a&&l.right-.3*l.width>=r.shape.center.x?{id:r.id,value:1/cL.distance(r.shape.center,s),type:Sq.Collision,priority:xq.Normal}:null},KV=[zW.configure({element:e=>{const t=e.activatorEvent?.target;return t instanceof HTMLElement?t.closest(".sn-table-head-row"):null}})],XV=(e,t)=>{const r=fR(HR),n=fR(xR),o=!fR(zR)||!n("TLV-1531_DRAG_AND_DROP_COLUMNS");return UV({id:e.id,disabled:o,index:t,type:"item",accept:"item",group:"column",modifiers:KV,data:e,feedback:"clone",collisionDetector:YV({invert:"rtl"===r})})},JV=({column:e,columnIndex:t,columnsLength:r})=>{const n=fR(Ek),o=fR(tA),i=fR(HR),a=fR(LR),s=fR(lk),l=fR(sk),u=fR(Ik)[t],c=hR(VH),d=fR(UH(t)),p=fR(zR),f=fR(YR),{open:h,setOpen:m,handleOpenMenu:g,toggleSortOrder:v}=RW({isInteractionEnabled:p,column:e}),b=hR(PM),{ref:y,isDragging:x}=XV(e,t),S=rW(e.id),w=fR(IR),C=w?hH:NH,E=e.isActivelySorted?UP[e.sortDirection]:void 0,R=h?uE:void 0,A=h?"true":void 0,P=t===r-1,M=[0,e.pageColIdx],I={width:u,zIndex:s.length-t},k=d&&0===t&&!f.enabled&&p?0:-1;return ur.jsxs(nH,{"data-dragging":x,ref:y,headerStyle:{...n.header,...H$(n,l,!0),opacity:S},background:w&&h?e.headerColor?.headerMenuActiveBackground??n.headerMenuActiveBackground:e.headerColor?.background??n.header.background,hoverBackground:e.headerColor?.headerMenuHoverBackground??n.headerMenuHoverBackground,color:e.headerColor?.color??n.header.color,interactions:a,style:I,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${cE}`,tabIndex:k,title:a.passive?e.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:r,handleOpenMenu:n}=e;if(t)switch(r.key){case dE.C:ZH(r);break;case dE.Enter:case dE.Space:n?.(r);break;default:QH(e)}else FC(r)})({evt:e,rootElement:o,cellCoord:M,setFocusedCellCoord:c,isInteractionEnabled:p,handleOpenMenu:g,direction:i})},onMouseDown:e=>{(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,keyboard:o,isInteractionEnabled:i})=>{e.preventDefault(),i&&eH(r,t,n,o)})({evt:e,rootElement:o,cellCoord:M,setFocusedCellCoord:c,keyboard:f,isInteractionEnabled:p})},onClick:w?g:v,"aria-sort":E,"aria-controls":R,"aria-expanded":A,"aria-haspopup":"true",children:[ur.jsx(C,{column:e,isInteractionEnabled:p,open:h,setOpen:m,isPagination:!0,columnWidth:u}),ur.jsx(CW,{column:e,isLastColumn:P,setIsAdjustingWidth:b})]},e.id)},ZV=()=>{const e=fR(lk),t=fR(Ek),r=fR(wR),n=fR(WR),o=hR(mW),i=fR(Ik),a=M(null),s=SW(n,r);return D(()=>{a.current&&o(a.current.getBoundingClientRect().height)},[t.header.fontSize,i,o,s]),ur.jsx(am,{style:{visibility:s?"collapse":void 0},children:ur.jsx(sH,{ref:a,className:"sn-table-row sn-table-head-row",children:e.map((t,r)=>ur.jsx(JV,{column:t,columnIndex:r,columnsLength:e.length},t.id))})})};var QV=N(ZV);const eU=()=>{const e=fR(KH),[t,r]=mR(ZI),{page:n,rowsPerPage:o}=t,i=fR(BR),{totalColumnCount:a,totalRowCount:s,totalPages:l,paginationNeeded:u,rows:c,columns:d}=fR(ak),p=fR(Ek),f=fR(qI),h=fR(wR),m=fR(oA),g=fR(eA),v=fR(tA),b=fR(WR),y=fR(HR),x=fR(LR),S=fR(iA),w=fR(xT),C=hR(bT),E=fR(DR),R=fR(YR),A=M(!1),P=M(null),I=M(null),k=`${S.get("SNTable.Accessibility.RowsAndColumns",[String(c.length),String(d.length)])} ${S.get("SNTable.Accessibility.NavigationInstructions")}`,T=FR(h,b),L=T?f.scrollLeft??0:0,q=T?f.rowPartialHeight??0:0,N=O(()=>{A.current=v.getElementsByTagName("table")[0].contains(document.activeElement)},[v]),_=O(n=>{r({...t,page:n}),e({keys:[["SNTable.Pagination.PageStatusReport",(n+1).toString(),l.toString()]],politeness:"assertive"})},[t,r,l,e]),j=O(n=>{r({...t,page:0,rowsPerPage:n}),e({keys:[["SNTable.Pagination.RowsPerPageChange",n.toString()]],politeness:"assertive"})},[e,t,r]);return JH(P),((e,t)=>{const r=fR(YR);D(()=>{const n=e.current;if(!n)return;const o=e=>{tH(e,t,r)};return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}},[e,t,r])})(I,A),(()=>{const e=fR(tA),t=fR(YR),r=fR(VH);rE(()=>{const n=G$(e,r);t.active?J$(n):(n?.blur(),X$(e))},[t.active,e])})(),XH(A,n),D(()=>{const e=P.current;e&&(e.scrollLeft=L,e.scrollTop=q)},[t,s,L,q]),WH(()=>{C({type:VP.UpdatePageRows,payload:{pageRows:c}})},[c]),GH(),nB(P),ur.jsxs(BH,{children:[ur.jsxs(uH,{ref:I,dir:y,onKeyDown:e=>{tB({evt:e,totalRowCount:s,page:n,rowsPerPage:o,handleChangePage:_,updateShouldRefocus:N,keyboard:R,isSelectionMode:E})},"data-testid":"sn-table",children:[ur.jsx(sB,{}),ur.jsxs(iB,{ref:P,className:"sn-table-container",fullHeight:!!i||!x.active||!u,interactions:x,tabIndex:-1,role:"application","data-testid":"table-container",children:[ur.jsxs(aB,{stickyHeader:!0,"aria-label":k,borderRight:w?`1px solid ${p.grid.border}`:void 0,children:[ur.jsx(QV,{}),ur.jsx(xW,{updateShouldRefocus:N,tableWrapperRef:I})]}),ur.jsx($$,{})]}),ur.jsx(iT,{footerContainer:i,pageInfo:t,paginationNeeded:u,theme:m,totalRowCount:s,totalColumnCount:a,totalPages:l,keyboard:R,translator:S,interactions:x,rect:g,layout:h,handleChangePage:_,handleChangeRowsPerPage:j,isSelectionMode:E,direction:y})]}),ur.jsx(FH,{isPagination:!0})]})};var tU=N(eU);const rU=tR(0),nU=tR(e=>{const t=e(CR);return Math.min(rk,t)}),oU=tR(e=>{const t=e(CR);return t===rk?0:Math.floor(t/rk)}),iU=tR(e=>{const t=e(rU),r=e(oU);return Math.min(t,r)}),aU=tR(e=>({page:e(iU),rowsPerPage:e(nU),rowsPerPageOptions:[]}),(e,t,r)=>{const n=e(oU);t(rU,Math.max(0,Math.min(r,n)))});var sU=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function lU(e,t){return e===t||!(!sU(e)||!sU(t))}function uU(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!lU(e[r],t[r]))return!1;return!0}function cU(e,t){var r;void 0===t&&(t=uU);var n,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}var dU="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function pU(e){cancelAnimationFrame(e.id)}function fU(e,t){var r=dU();var n={id:requestAnimationFrame(function o(){dU()-r>=t?e.call(null):n.id=requestAnimationFrame(o)})};return n}var hU=-1;function mU(e){if(void 0===e&&(e=!1),-1===hU||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),hU=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return hU}var gU=null;function vU(e){if(void 0===e&&(e=!1),null===gU||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),o=n.style;return o.width="100px",o.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?gU="positive-descending":(t.scrollLeft=1,gU=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),gU}return gU}var bU=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function yU(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=h(n.props,$c(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:$c(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=cU(function(e,t,r,o,i,a,s,l){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})}),n._callOnScroll=void 0,n._callOnScroll=cU(function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})}),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,a=n.props,s=a.columnWidth,l=a.direction,u=a.rowHeight,p=n._getItemStyleCache(m&&s,m&&l,m&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=r(n.props,t,n._instanceProps),g="rtl"===l;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(n.props,e,n._instanceProps),height:c(n.props,e,n._instanceProps),width:i(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=cU(function(e,t,r){return{}}),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;n.setState(function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,u=i;if("rtl"===t)switch(vU()){case"negative":u=-i;break;case"positive-descending":u=l-o-i}u=Math.max(0,Math.min(u,l-o));var c=Math.max(0,Math.min(a,s-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&pU(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=fU(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},function(){n._getItemStyleCache(-1)})},n}Dc(t,e),t.getDerivedStateFromProps=function(e,t){return xU(e,t),g(e),null};var v=t.prototype;return v.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState(function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}},this._resetIsScrollingDebounced)},v.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,v=mU();void 0!==n&&(n=Math.max(0,Math.min(n,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var b=a(this.props,this._instanceProps),y=s(this.props,this._instanceProps)>f?v:0,x=b>d?v:0;this.scrollTo({scrollLeft:void 0!==n?l(this.props,n,r,m,this._instanceProps,x):m,scrollTop:void 0!==o?u(this.props,o,r,g,this._instanceProps,y):g})},v.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},v.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(vU()){case"negative":o.scrollLeft=-r;break;case"positive-ascending":o.scrollLeft=r;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-r}else o.scrollLeft=Math.max(0,r);o.scrollTop=Math.max(0,n)}this._callPropsCallbacks()},v.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&pU(this._resetIsScrollingTimeoutId)},v.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,o=e.direction,i=e.height,l=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?bU:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,v=e.style,b=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),C=S[0],E=S[1],R=this._getVerticalRangeToRender(),A=R[0],P=R[1],M=[];if(n>0&&g)for(var I=A;I<=P;I++)for(var k=C;k<=E;k++)M.push(w(t,{columnIndex:k,data:d,isScrolling:b?x:void 0,key:f({columnIndex:k,data:d,rowIndex:I}),rowIndex:I,style:this._getItemStyle(I,k)}));var D=a(this.props,this._instanceProps),T=s(this.props,this._instanceProps);return w(h||m||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:Gr({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},w(u||c||"div",{children:M,ref:l,style:{height:D,pointerEvents:x?"none":void 0,width:T}}))},v._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],s=i[1],l=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],h=c[3];this._callOnItemsRendered(a,s,d,p,l,u,f,h)}if("function"==typeof n){var m=this.state,g=m.horizontalScrollDirection,v=m.scrollLeft,b=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(v,b,g,x,y)}},v._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,u=l.horizontalScrollDirection,c=l.isScrolling,d=l.scrollLeft,p=r||i||a||1;if(0===t||0===s)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},v._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),h=f(this.props,d,u,this._instanceProps),m=s&&"backward"!==l?1:Math.max(1,c),g=s&&"forward"!==l?1:Math.max(1,c);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,h+g)),d,h]},t}($),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var xU=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},SU=function(e,t){var r=e.rowCount,n=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},wU=function(e,t){var r=e.columnCount,n=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},CU=function(e,t,r,n){var o,i,a;if("column"===e?(o=n.columnMetadataMap,i=t.columnWidth,a=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=t.rowHeight,a=n.lastMeasuredRowIndex),r>a){var s=0;if(a>=0){var l=o[a];s=l.offset+l.size}for(var u=a+1;u<=r;u++){var c=i(u);o[u]={offset:s,size:c},s+=c}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},EU=function(e,t,r,n){var o,i;return"column"===e?(o=r.columnMetadataMap,i=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=r.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=n?RU(e,t,r,i,0,n):AU(e,t,r,Math.max(0,i),n)},RU=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=CU(e,t,a,r).offset;if(s===i)return a;s<i?o=a+1:s>i&&(n=a-1)}return o>0?o-1:0},AU=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&CU(e,t,n,r).offset<o;)n+=a,a*=2;return RU(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},PU=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=CU(e,t,r,i),u="column"===e?wU(t,i):SU(t,i),c=Math.max(0,Math.min(u-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===n&&(n=o>=d-s&&o<=c+s?"auto":"center"),n){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},MU=yU({getColumnOffset:function(e,t,r){return CU("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return EU("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=CU("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=CU("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:SU,getEstimatedTotalWidth:wU,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return PU("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return PU("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return CU("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return EU("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=CU("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=CU("row",e,u,n).size;return u},initInstanceProps:function(e,t){var r=e,n={columnMetadataMap:{},estimatedColumnWidth:r.estimatedColumnWidth||50,estimatedRowHeight:r.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:r})},t.resetAfterRowIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:r})},t.resetAfterIndices=function(e){var r=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof r&&(n.lastMeasuredColumnIndex=Math.min(n.lastMeasuredColumnIndex,r-1)),"number"==typeof o&&(n.lastMeasuredRowIndex=Math.min(n.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),IU=function(e,t){return e};function kU(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=l(n.props,$c(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:$c(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=cU(function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})}),n._callOnScroll=void 0,n._callOnScroll=cU(function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})}),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,i=n.props,a=i.direction,s=i.itemSize,l=i.layout,c=n._getItemStyleCache(u&&s,u&&l,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=r(n.props,e,n._instanceProps),p=o(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===l,h="rtl"===a,m=f?d:0;c[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=cU(function(e,t,r){return{}}),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;n.setState(function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,a=o;if("rtl"===t)switch(vU()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;n.setState(function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&pU(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=fU(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},function(){n._getItemStyleCache(-1,null)})},n}Dc(t,e),t.getDerivedStateFromProps=function(e,t){return DU(e,t),c(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState(function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?mU():0:l.scrollHeight>l.clientHeight?mU():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},d.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(vU()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&pU(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,r=e.className,o=e.direction,i=e.height,a=e.innerRef,s=e.innerElementType,l=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?IU:d,f=e.layout,h=e.outerElementType,m=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,C=this._getRangeToRender(),E=C[0],R=C[1],A=[];if(u>0)for(var P=E;P<=R;P++)A.push(w(t,{data:c,key:p(P,c),index:P,isScrolling:v?y:void 0,style:this._getItemStyle(P)}));var M=n(this.props,this._instanceProps);return w(h||m||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:Gr({position:"relative",height:i,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},w(s||l||"div",{children:A,ref:a,style:{height:x?"100%":M,pointerEvents:y?"none":void 0,width:x?M:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,l=n.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,l,this._instanceProps),c=s(this.props,u,l,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}($),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var DU=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},TU=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=t;l++){var u=n(l);o[l]={offset:a,size:u},a+=u}r.lastMeasuredIndex=t}return o[t]},OU=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=TU(e,i,t).offset;if(a===o)return i;a<o?n=i+1:a>o&&(r=i-1)}return n>0?n-1:0},LU=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&TU(e,r,t).offset<n;)r+=i,i*=2;return OU(e,t,Math.min(r,o-1),Math.floor(r/2),n)},qU=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},NU=kU({getItemOffset:function(e,t,r){return TU(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:qU,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,s=e.height,l=e.layout,u=e.width,c="horizontal"===a||"horizontal"===l?u:s,d=TU(e,t,o),p=qU(e,o),f=Math.max(0,Math.min(p-c,d.offset)),h=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=h-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return n>=h&&n<=f?n:n<h?h:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?OU(e,t,o,0,r):LU(e,t,Math.max(0,o),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,l=e.width,u="horizontal"===o||"horizontal"===s?l:i,c=TU(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=TU(e,f,n).size;return f},initInstanceProps:function(e,t){var r={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,n){void 0===n&&(n=!0),r.lastMeasuredIndex=Math.min(r.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),n&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function _U(e,t){for(var r in e)if(!(r in t))return!0;for(var n in t)if(e[n]!==t[n])return!0;return!1}var jU=["style"],zU=["style"];function FU(e,t){var r=e.style,n=Yr(e,jU),o=t.style,i=Yr(t,zU);return!_U(r,o)&&!_U(n,i)}const $U=tR(0),HU=tR(0),BU=tR(0),WU=tR(e=>e($U)+e(HU)),VU=tR(e=>{const t=e(eA),r=e(fk),n=t.height-(r?41:0);return{width:t.width,height:n}}),UU=tR(e=>{const t=e(VU),r=e(MM),n=e(IM);return{width:t.width-n,height:t.height-r}}),GU=tR(e=>{const t=e(UU),r=e(WU),n=e(BU);return Math.min(t.height-r,n)}),YU=tR(e=>{const t=e(aU),r=e(CR);return Math.min(t.rowsPerPage,r-t.page*t.rowsPerPage)}),KU=tR(-1),XU=_P(e=>tR(t=>t(KU)===e)),JU=({style:e})=>ur.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var ZU=S.memo(JU,FU);const QU=()=>{},eG=e=>{e.preventDefault()};const tG=({columnIndex:e,rowIndex:t,style:r,data:n})=>{const{rowsInPage:o,columns:i,isHoverEnabled:a,setMeasuredCellHeight:s,lineClamp:l,resizeObserverTaskScheduler:u}=n,c=fR(XU(t)),d=hR(KU),p=fR(Ek),f=fR(HR),h=fR(NR),m=fR(xT),g=o[t]?.[e],{handleMouseDown:v,handleMouseOver:b,handleMouseUp:y,cellSelectionState:x}=function(e){const t="object"==typeof e,r=fR(_R),n=hR(bT),o=fR(yT(e));if(iW(e),t&&r){const{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i}=nW(eG,e,n,QU);return{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(g),S=((e,t,r,n)=>{const o=M(null),i=r&&!r.isNumeric,a=O(r=>{const o=r.contentBoxSize.at(0)?.blockSize;o&&i&&n(o,e,t)},[t,n,e,i]);return CH({ref:o,callback:a}),o})(t,e,g,s),w=i[e]?.isDim?p.dimension.values:p.measure.values,C=rW(i[e].id);if("object"==typeof g){const n=((e,t,r,n,o,i)=>{let a=lW(o,i,e);a=aW(a,i,e);const s=!e.isNull&&t.qAttrExprInfoIDs.length?zM(a,e.qAttrExps,t.qAttrExprInfoIDs):a;return n===WP.Selected?{...s,...i.selectedColors}:n===WP.Disabled?{...s,color:r?i.grid.hoverColors?.color:s.color,background:`${aM}, ${r?i.grid.hoverColors?.background:s.background}`}:r?{...s,...i.grid.hoverColors}:s})(g,i[e],a&&c,x,w,p),o={rowindex:t,columnindex:e};return ur.jsx("div",{className:`sn-table-cell ${x} ${cE}`,style:{...r,...n,display:"flex",alignItems:"start",borderColor:p.grid.border,borderTop:"0px",borderBottomWidth:g.isLastRow?"0px":"1px",borderRightWidth:bM(f,g.isLastColumn,m),borderLeftWidth:yM(f,g.isLastColumn,m),justifyContent:hM(g,f),borderStyle:"solid",padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden",textAlign:g.align,opacity:C},onMouseDown:v,onMouseUp:y,onMouseOver:b,onMouseEnter:a?()=>{d(t)}:void 0,onMouseLeave:a?()=>{d(-1)}:void 0,title:h?g.representation.text:void 0,...o,children:ur.jsx(tW,{cellSelectionState:x,children:ur.jsx(ZB,{forwardRef:p.contentStaticLineCount||1===l?void 0:S,cell:g,style:n,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:u})})})}return ur.jsx(ZU,{style:{...r,...w,borderColor:p.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box",opacity:C}})};var rG=N(tG,FU);const nG=LI(tR(async e=>{const t=e(wR),r=e(KR),n=e(aU).page,{qDataPages:o}=t.qHyperCube;if(0!==n||0===o.length){const e=n*Math.min(rk,t.qHyperCube.qSize.qcy);if(r&&"getHyperCubeData"in r)return r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:e,qWidth:50,qHeight:100}])}return[...o]})),oG=e=>{const t=M(e);return t.current=e,t},iG=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,aG=(e,t,r,n,o)=>{const i=e[r];if(!i)return!0;for(let e=t;e<t+n;e++){const t=i[e];if(t?.rowIdx!==o)return!0}return!1},sG=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some(e=>!e[t])},lG=(e,t,r,n,o,i,a,s)=>{e.forEach(e=>{e.qMatrix.forEach((l,u)=>{const c=e.qArea.qTop-t.page*t.rowsPerPage,{row:d,pageRowIdx:p}=((e,t,r,n,o,i,a,s,l,u)=>{const{qSize:c}=a.qHyperCube,d=n.qTop+r,p=o+r,f=e[p]??[];return t.forEach((e,t)=>{const r=t+n.qLeft;if(f.at(r))return;const{colIdx:o,isDim:h,isLocked:m,bodyTextAlign:g,selectionColIdx:v,qAttrExprInfoIndex:b,representation:y,conditionalColoring:x,qMiniChart:S}=i[r],w=GI(h,e,a),C=!h&&e.qIsNull,E=C?JP(w):XP(e);f[r]={id:_A(),...e,align:WI(E,g,u),rowIdx:d,colIdx:o,isSelectable:h&&!m,pageRowIdx:p,pageColIdx:r,selectionColIdx:v,isLastRow:d===c.qcy-1,isLastColumn:r===c.qcx-1,isNumeric:E,isNull:(!C||!E)&&YI(e,h),representation:kI({cell:e,representationProperties:y,attrExprInfoIndex:b,env:s,conditionalColoring:x,miniChartOnMeasure:S,getText:()=>C?w:e.qText,direction:u,enabledFeatures:{[WA.Image]:!0,[WA.Indicator]:!0,[WA.MiniChart]:!0}})},l(f[r],d,r)}),{row:f,pageRowIdx:p}})(r,l,u,e.qArea,c,n,o,i,a,s);r[p]=d})})},uG=({visibleRowCount:e,visibleColumnCount:t,gridState:r,setEstimatedCellHeight:n})=>{const o=fR(wR),i=fR(oA),a=fR(KR),s=fR(yR),l=fR(HR),u=fR(aU),c=fR(nG),d=fR(lk),p=fR(YU),f=M([]),h=O((e,t)=>{const r=Array.isArray(t)?t.slice(0,p):(e=>Array(e).fill(void 0))(p);return lG(e,u,r,d,o,s,n,l),f.current=r,r},[p,u,d,o,s,n,l]),[m,g]=P(()=>h(c??[]));rE(()=>{g(h(c??[]))},[c,l]);const v=((e,t)=>{const r=M(new Set),n=M(new Set),o=M(new Set),i=oG(e),a=oG(t),s=A(()=>({enqueue:e=>{const t=iG(e);o.current.has(t)||(r.current.add(e),o.current.add(t),1===r.current.size&&setTimeout(async()=>{const e=Array.from(r.current.values());if(0!==e.length){r.current.clear(),n.current.add(e);try{const t=(e=>{const t=[];return e.forEach(e=>{if(t.length>0){const r=t[t.length-1];((e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth)(r,e)?r.qHeight+=e.qHeight:((e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight)(r,e)?r.qWidth+=e.qWidth:t.push({...e})}else t.push({...e})}),t})(e),r=await i.current(t);n.current.has(e)&&a.current(r)}catch(t){e.forEach(e=>{o.current.delete(iG(e))}),console.error("Failed to fetch pages",t)}finally{n.current.delete(e)}}},75))},clear:()=>{r.current.clear(),n.current.clear(),o.current.clear()}}),[i,a]);return s})(e=>a&&"getHyperCubeData"in a?a.getHyperCubeData("/qHyperCubeDef",e):Promise.resolve([]),e=>{g(t=>h(e,t))}),b=O((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(sG(f.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};v.enqueue(e)}},[f,v]),y=O((e,t,r,n)=>{for(let o=t;o<t+n;o++){const t=Math.max(0,o-u.page*u.rowsPerPage);if(aG(f.current,e,t,r,o)){const t={qLeft:e,qTop:o,qHeight:1,qWidth:r};v.enqueue(t)}}},[f,v,u]);return D(()=>{const{qcx:n,qcy:i}=o.qHyperCube.qSize,a=r.current.overscanRowStartIndex,s=r.current.overscanColumnStartIndex,l=a+u.page*u.rowsPerPage,c=n-s,d=u.rowsPerPage-a,p=Math.min(100,c,n,t+5),f=Math.min(100,d,i,e+25);return y(s,l,p,f),()=>{v.clear()}},[o,e,t,u,v,y,r,i]),{rowsInPage:m,loadRows:y,loadColumns:b}},cG=e=>{let t=0;return e.forEach(e=>{e>t&&(t=e)}),t},dG=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,pG=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>{const o=fR(Ek),i=fR(Ik),{estimateLineCount:a}=JC(o.dimension.values),s=wk(o.dimension.values.fontSize),l=e||t||1===r;return O((e,t,o)=>{if(l||e.representation.type===WA.Image||e.isNumeric)return;const u=(e=>Math.max(0,e-24-1))(i[o]),c=e.representation.text?a({text:e.representation.text,maxWidth:u,isNumeric:!1}):1,d=Math.min(r,Math.max(1,c));n(d*s,t,o)},[l,i,a,r,s,n])},fG=({isStaticNbrOfLines:e,minRowHeight:t,state:r,staticRowHeight:n=0})=>{const o=fR(qI);_(()=>{const i=e?n:((e,t)=>{const r=0===t?0:e/t;return Math.ceil(r)})(r.sumHeight,r.rowHeights.size);o.estimatedRowHeight=Math.max(i,t)},[e,t,r,n,o])},hG=({isSnapshot:e,gridRef:t})=>{const r=fR(Ek),n=fR(YU),[o,i]=P({rowHeights:new Map,cellHeightsInGrid:new Map,sumHeight:0}),a=r.contentLineHeight,s=r.contentMinRowHeight,l=!!r.contentStaticLineCount,u=Math.max(8e6/n,s)-9,c=u+9,d=Math.max(1,Math.min(r.grid.contentLineClamp,Math.round(u/a))),p=(({lineClamp:e,lineHeight:t,isStaticNbrOfLines:r})=>r?t*e+8+1:void 0)({lineClamp:d,lineHeight:a,isStaticNbrOfLines:l});(({gridRef:e,setState:t})=>{const r=fR(wR),n=fR(aU),o=fR(Ik),i=r.multiline?.wrapTextInCells,a=r.nullValueRepresentation?.text;rE(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map,sumHeight:0})},[r.qHyperCube.qSize.qcx,r.qHyperCube.qSize.qcy,n.page,i,a]),rE(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})},[o])})({gridRef:t,setState:i});const f=(({setState:e,maxCellHeight:t,minRowHeight:r,gridRef:n})=>O((o,i,a)=>{z(()=>{e(e=>{const s=Math.max(r,o+9),l=Math.min(t,s),u=e.cellHeightsInGrid.get(i)??e.cellHeightsInGrid.set(i,new Map).get(i);if(!dG(u.get(a),l))return e;const c={...e},d=e.rowHeights.get(i);u.set(a,l);const p=void 0===d||l>=d?l:cG(u);return c.rowHeights.set(i,p),c.sumHeight=e.sumHeight-(d??0)+p,n.current?.resetAfterIndices({columnIndex:a,rowIndex:i,shouldForceUpdate:!1}),c})})},[e,r,t,n]))({maxCellHeight:c,minRowHeight:s,setState:i,gridRef:t}),h=(({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>O((o,i,a)=>{e||t||1===r||n(o,i,a)},[e,t,r,n]))({isSnapshot:e,isStaticNbrOfLines:l,lineClamp:d,setCellHeight:f}),m=pG({isSnapshot:e,isStaticNbrOfLines:l,lineClamp:d,setCellHeight:f}),g=O(e=>l?p??s:o.rowHeights.get(e)??s,[l,s,o.rowHeights,p]);return fG({isStaticNbrOfLines:l,minRowHeight:s,state:o,staticRowHeight:p}),{setMeasuredCellHeight:h,setEstimatedCellHeight:m,getRowHeight:g,lineClamp:d}},mG=(e,t)=>{_(()=>()=>{t(0)},[e,t]);const r=O(e=>{const r=e.contentBoxSize.at(0)?.blockSize;void 0!==r&&t(r)},[t]);CH({ref:e,callback:r})};let gG=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const vG=({loadRows:e,loadColumns:t,gridState:r})=>{const n=fR(qI),o=fR(wR),i=fR(aU),a=fR(YU);return O(({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:u,overscanRowStopIndex:c,visibleColumnStartIndex:d,visibleColumnStopIndex:p,visibleRowStartIndex:f,visibleRowStopIndex:h})=>{const{verticalScrollDirection:m,horizontalScrollDirection:g}=(({overscanColumnStartIndex:e,overscanRowStartIndex:t},r,n)=>{let o=gG.None,i=gG.None;return o=n>t?gG.Down:n<t?gG.Up:gG.None,i=r>e?gG.Right:r<e?gG.Left:gG.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(r.current,s,u);if(r.current.overscanColumnStartIndex=s,r.current.overscanColumnStopIndex=l,r.current.overscanRowStartIndex=u,r.current.overscanRowStopIndex=c,u>a)return;const v=s,b=u+i.page*i.rowsPerPage,y=l-s+1,x=c-u+1;if(n.visibleLeft=d,n.visibleWidth=p-d+1,n.visibleTop=f+i.page*i.rowsPerPage,n.visibleHeight=h-f+1,n.page=i.page,n.rowsPerPage=i.rowsPerPage,m===gG.Down){const t=x+25;e(v,b,y,u+t>a?a-u:t)}else if(m===gG.Up){const t=x+25,r=i.page*i.rowsPerPage,n=Math.max(r,b-25);e(v,n,y,t)}if(g===gG.Right){const e=o.qHyperCube.qSize.qcx-v,r=y+5,n=Math.min(e,r);t(v,b,n,x)}else if(g===gG.Left){const e=Math.max(0,v-5),r=Math.min(o.qHyperCube.qSize.qcx,y+5);t(e,b,r,x)}},[r,a,i.page,i.rowsPerPage,n,e,o.qHyperCube.qSize.qcx,t])},bG=()=>{},yG={current:null};const xG=({columnIndex:e,data:t,rowIndex:r})=>{const n=t.rowsInPage[r]?.[e];return n?.id??`${r}-${e}`},SG={overflow:"hidden",willChange:"auto"},wG=q((e,t)=>{const r=fR(lk),n=fR(UU),o=hR(BU),i=fR(GU),a=fR(Ek),s=fR(qI),l=fR(wR),u=fR(HR),c=fR(Ik),d=fR(YU),p=M(null),f=M(null),h=M({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),m=M(0),g=!!qM(l)?.content?.hoverEffect,{visibleRowCount:v,visibleColumnCount:b}=(e=>{const t=fR(Ik),r=fR(UU),n=fR(YU),o=Math.min(n,Math.ceil(r.height/e)),i=A(()=>t.reduce((e,t)=>e.width<r.width?{width:e.width+t,count:e.count+1}:e,{count:0,width:0}),[r,t]).count;return{visibleRowCount:o,visibleColumnCount:i}})(a.contentMinRowHeight),{setMeasuredCellHeight:y,setEstimatedCellHeight:x,getRowHeight:S,lineClamp:w}=hG({isSnapshot:!!l.snapshotData,gridRef:p}),{rowsInPage:C,loadRows:E,loadColumns:R}=uG({visibleRowCount:v,visibleColumnCount:b,gridState:h,setEstimatedCellHeight:x}),P=vG({loadRows:E,loadColumns:R,gridState:h}),I=cB(),k=A(()=>({rowsInPage:C,columns:r,isHoverEnabled:g,lineClamp:w,setMeasuredCellHeight:y,resizeObserverTaskScheduler:I}),[C,r,g,w,y,I]);return _(()=>{1===m.current&&p.current?.scrollToItem({rowIndex:d-1,align:"start"})}),function(e){const t=hR(bT);D(()=>{t({type:VP.UpdatePageRows,payload:{pageRows:e}})},[t,e]),dB({updateShouldRefocus:bG,tableWrapperRef:yG})}(C),F(t,()=>({interpolatedScrollTo:(e,t)=>{const r=(f.current?.clientHeight??i)-i,n=Math.round(r*e);m.current=e,1===m.current?(p.current?.scrollToItem({rowIndex:d-1,align:"start"}),p.current?.scrollTo({scrollLeft:t})):p.current?.scrollTo({scrollTop:n,scrollLeft:t})}}),[f,i,d]),mG(f,o),ur.jsx(MU,{"data-key":"body",ref:p,innerRef:f,style:SG,columnCount:r.length,columnWidth:e=>c[e],height:i,rowCount:d,rowHeight:S,estimatedRowHeight:s.estimatedRowHeight,width:n.width,itemData:k,onItemsRendered:P,itemKey:xG,className:"sn-table-body",direction:u,children:rG})});var CG=N(wG);const EG=({children:e})=>{const{width:t,height:r}=(()=>{const e=fR(UU),t=fR(Ek),r=fR(Ik),n=fR(WU),o=fR(BU)+n;let i=fR(YU)*t.contentMinRowHeight+n;return o<2*e.height&&(i=o),{width:r.reduce((e,t)=>e+t,0),height:i}})();return ur.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:t,height:r},children:e})},RG=(e,t)=>{const r=M(null),n=fR(Ik);_(()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)},[t,r,e,n.length]);const o=O(r=>{const n=r.contentBoxSize.at(0)?.blockSize;n&&t(n+9,e)},[e,t]);return CH({ref:r,callback:o}),r},AG=Sc("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e&&"color"!==e})(({interactions:e,hoverBackground:t,background:r,applicableStyle:n,color:o})=>({...n,background:r,color:o,"&&:hover:not(:has(button:hover))":{background:e.active?t:void 0}})),PG=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,setMeasuredCellHeight:i}=r,a=fR(Ek),s=fR(HR),l=fR(LR),u=fR(xT),c=hR(PM),d=fR(sk),p=fR(zR),f=fR(Ik)[e],h=n[e],{open:m,setOpen:g,handleOpenMenu:v,toggleSortOrder:b}=RW({isInteractionEnabled:p,column:h}),y=fR(IR),x=RG(e,i),S=n.length-1===e,w=y?hH:NH,{ref:C,isDragging:E}=XV(h,e),R=rW(h.id);return ur.jsxs(AG,{"data-dragging":E,ref:C,className:`sn-table-cell ${cE}`,title:l.passive?h.label:void 0,onClick:y?v:b,applicableStyle:{...a.header,...H$(a,d,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:bM(s,S,u),borderLeftWidth:yM(s,S,u),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:h.headTextAlign,boxSizing:"border-box",zIndex:n.length-e,flexDirection:"right"===h.headTextAlign?"row-reverse":"row",userSelect:"none",opacity:R},interactions:l,hoverBackground:h.headerColor?.headerMenuHoverBackground??a.headerMenuHoverBackground,background:y&&m?h.headerColor?.headerMenuActiveBackground??a.headerMenuActiveBackground:h.headerColor?.background??a.header.background,color:h.headerColor?.color??a.header.color,children:[ur.jsx(w,{forwardRef:x,column:h,isInteractionEnabled:p,open:m,setOpen:g,columnWidth:f}),ur.jsx(CW,{column:h,isLastColumn:S,onColumnResize:o,setIsAdjustingWidth:c})]})},MG=e=>{const[t,r]=P(new Map);rE(()=>{r(new Map)},[e.length]);const n=O((e,t)=>{r(r=>dG(r.get(t),e)?new Map(r).set(t,e):r)},[]);return{rowHeight:A(()=>cG(t),[t]),setMeasuredCellHeight:n}},IG=(e,t)=>{F(e,()=>({scrollTo:e=>t.current?.scrollTo(e)}),[t])},kG=e=>{const t=fR(oA),r=fR(wR),n=fR(aU),o=fR(Ik);rE(()=>{e.current?.resetAfterIndex(0,!1)},[r,n,e,o,t])},DG={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},TG=q((e,t)=>{const{columResizeHandler:r}=e,n=fR(lk),o=fR(UU),i=hR($U),a=S.useRef(null),s=M(null),l=fR(Ek),u=fR(wR),c=fR(WR),d=fR(HR),p=fR(Ik),{rowHeight:f,setMeasuredCellHeight:h}=MG(n),m=SW(c,u);return IG(t,a),kG(a),mG(s,i),ur.jsx(NU,{className:"sn-table-head-row",ref:a,outerRef:s,layout:"horizontal",style:{...DG,...m?{display:"none"}:void 0},itemCount:n.length,itemSize:e=>p[e],height:Math.max(f+8,l.headerMinRowHeight),width:o.width,itemKey:e=>n[e].id,itemData:{columns:n,columResizeHandler:r,setMeasuredCellHeight:h},direction:d,children:PG})});var OG=N(TG);const LG=q((e,t)=>{const{children:r,onScroll:n}=e,o=fR(HR),i=fR(jR),{width:a,height:s}=fR(VU);return ur.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:i?"auto":"hidden",width:a,height:s},onScroll:n,dir:o,tabIndex:-1,children:r})}),qG=({children:e})=>{const t=fR(HR),r=fR(UU);return ur.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"rtl"!==t?"0px":void 0,right:"rtl"===t?"0px":void 0,width:r.width,height:r.height},children:e})},NG=({index:e,style:t,data:r})=>{const{columns:n,totals:o,setMeasuredCellHeight:i}=r,a=fR(Ek),s=fR(wR),l=fR(HR),u=fR(NR),c=fR(xT),d=RG(e,i),p=n[e].totalInfo,{totalsTextAlign:f,isTotalNumeric:h}=n[e],m=s.qHyperCube.qSize.qcx-1===e,g=rW(n[e].id);return ur.jsx("div",{className:`sn-table-cell ${cE}`,title:u?p:void 0,style:{...t,...a.totalRow,...H$(a,o,!1),background:a.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:bM(l,m,c),borderLeftWidth:yM(l,m,c),borderTopWidth:o.atBottom?"1px":"0px",borderBottomWidth:o.atTop?"1px":"0px",padding:"4px 12px",justifyContent:f,textAlign:f,boxSizing:"border-box",cursor:"default",opacity:g},children:ur.jsx(fH,{forwardRef:h?void 0:d,isNumeric:h,children:p})})},_G=q((e,t)=>{const{totals:r}=e,n=fR(lk),o=fR(UU),i=hR(HU),a=M(null),s=M(null),l=fR(Ek),u=fR(HR),c=fR(wR),d=fR(Ik),{rowHeight:p,setMeasuredCellHeight:f}=MG(n);return IG(t,a),kG(a),mG(s,i),ur.jsx(NU,{ref:a,outerRef:s,layout:"horizontal",style:DG,itemCount:c.qHyperCube.qSize.qcx,itemSize:e=>d[e],height:Math.max(p,l.totalRowMinHeight),width:o.width,itemData:{columns:n,totals:r,setMeasuredCellHeight:f},direction:u,children:NG})});var jG=N(_G);const zG=(e,t,r)=>{const n=fR(HR),o=fR(qI);return O(i=>{const{scrollHeight:a,clientHeight:s,scrollTop:l}=i.currentTarget,u=((e,t)=>{const{scrollWidth:r,clientWidth:n,scrollLeft:o}=e,i=r-n;if("rtl"===t){if(o>i)return i;if(o<0)return Math.abs(o)}return o})(i.currentTarget,n),c=Math.max(0,Math.min(1,l/(a-s)));o.scrollTopRatio=c,o.scrollLeft=u,r.current?.interpolatedScrollTo(Number.isNaN(c)?0:c,u),e.current?.scrollTo(u),t.current?.scrollTo(u)},[o,r,e,t,n])};var FG=N(()=>{const e=fR(sk),t=M(null),r=M(null),n=M(null),o=M(null),i=zG(r,n,o),a=O(()=>{t.current&&(t.current.scrollTop=0)},[t]);GH(),(e=>{const t=fR(uk),r=fR(aU),n=fR(oA),o=fR(YU);D(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollLeft=0,e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[t,e]),D(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[r,o,n,e])})(t),nB(t);const s=ur.jsx(jG,{ref:n,totals:e},"totals");return ur.jsxs(BH,{children:[ur.jsx(LG,{ref:t,onScroll:i,children:ur.jsxs(EG,{children:[ur.jsxs(qG,{children:[ur.jsx(OG,{ref:r,columResizeHandler:a}),e.atTop?s:null,ur.jsx(CG,{ref:o}),e.atBottom?s:null]}),ur.jsx($$,{})]})}),ur.jsx(FH,{isPagination:!1})]})});var $G=N(()=>{const e=fR(wR),t=fR(eA),r=fR(LR),{paginationNeeded:n,totalRowCount:o,totalColumnCount:i,totalPages:a}=fR(ak),s=fR(oA),l=fR(iA),u=fR(YR),[c,d]=mR(aU);return ur.jsxs(uH,{"data-testid":"sn-table",children:[ur.jsx(FG,{}),ur.jsx(iT,{paginationNeeded:n,handleChangePage:e=>{d(e)},pageInfo:c,totalRowCount:o,totalColumnCount:i,totalPages:a,keyboard:u,translator:l,theme:s,interactions:r,rect:t,layout:e})]})});const HG=e=>{const t=e.get(KR),r=e.get(UR),n=e.get(SR),i=e.get(HR);o(()=>{n&&t&&(r?function(e){const t=e.get(HR),r=e.get(nA),n=Ok(t);r.render(ur.jsx(ki,{stylisPlugins:"rtl"===t?[NP]:void 0,children:ur.jsx(Cc,{theme:n,children:ur.jsx(sR,{store:e,children:ur.jsx(Tk,{children:ur.jsx(tU,{})})})})}))}(e):function(e){const t=e.get(HR),r=e.get(nA),n=Ok(t);r.render(ur.jsx(S.StrictMode,{children:ur.jsx(Cc,{theme:n,children:ur.jsx(sR,{store:e,children:ur.jsx(Tk,{children:ur.jsx($G,{})})})})}))}(e))},[n,r,e,t,i])};function BG(e,t){const r=e.getElementsByClassName("sn-table-container")[0];if(!r)return{};const n=r.getBoundingClientRect(),o=e.getElementsByClassName("sn-table-head-row")[0],i=o?.getBoundingClientRect()??{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],s=a?.getBoundingClientRect()??{height:0},l=e.getElementsByClassName("sn-table-data-row"),u={top:n.y+i.height+(t.atTop?s.height:0),bottom:n.y+n.height-(t.atBottom?s.height:0)},c=((e,t)=>{if(!e)return-1;for(let r=0;r<e.length;r++)if(e[r].getBoundingClientRect().bottom>t.top)return r;return-1})(l,u),d=((e,t)=>{if(!e)return-1;for(let r=e.length-1;r>-1;r--){const n=e[r].getBoundingClientRect();if(t.bottom>n.top)return r}return-1})(l,u),p=((e,t,r)=>{if(!e||0===e.length||r<0)return 0;const n=e[r].getBoundingClientRect();return Math.max(t.top-n.top,0)})(l,u,c);return{visibleRowStartIndex:c,visibleRowEndIndex:d,rowPartialHeight:p}}const WG=(e,t)=>{if(t)for(let r=0;r<t.length;r++){const n=t[r].getAttribute("rowindex");if(n&&parseInt(n,10)===e)return t[r]}},VG=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const UG=(e,t,r,n,o)=>{if(e<0)return 0;const i=r.qHyperCube.qSize.qcy,a=n.rowsPerPage||KI.rowsPerPage,s=o?.isMultiPage?0:3;return Math.min(i,a,e-t+1+s)},GG=(e,t,r,n,o)=>{if(n&&!n.isMultiPage)return n;const i=FI(e,n);if(o){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:a=-1,rowPartialHeight:s}=BG(r,i);return{rowPartialHeight:s,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:UG(a,o,e,t,n),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}}const{visibleRowStartIndex:a=-1,visibleRowEndIndex:s=-1}=function(e,t){const r=e.querySelector(".sn-table-body"),n=r?.getBoundingClientRect(),o=r?.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!n)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:s=0,page:l=0,rowsPerPage:u=0}=t,c=l*u,d=a-c,p=d+s-1,f=WG(d,o),h=f?.getBoundingClientRect();if(!f||!h)return{};const m=n.y;if(1-i<.001)return{visibleRowStartIndex:d+(h.y>=m-4?0:1)+c,visibleRowEndIndex:p+c};const g=n.y+n.height,v=(VG(h,m,g)?d:d+1)+c;let b=p+c;const y=WG(p,o),x=y?.getBoundingClientRect();return y&&x&&(VG(x,m,g)||(b=p-1+c)),{visibleRowStartIndex:v,visibleRowEndIndex:b}}(r,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:a,visibleHeight:UG(s,a,e,t,n),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}},YG={version:JSON.stringify("6.22.0"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals"},usePagination:!1,components:[]};const KG=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),XG=e=>e.getStyle("object","straightTableV2","backgroundColor");function JG(r){return{qae:{properties:{initial:YG},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:e=>EA({...e}),exportProperties:bA,exploration:RA},ext:TP(r),component(){const n=c(),i=e(()=>oR(),[!1!==n.usePagination]);i.set(yR,r);const s=d();i.set(tA,s),i.set(wR,n),i.set(gR,p()),i.set(KR,f()),i.set(LR,h()),i.set(iA,m()),i.set(TR,g()),i.set($R,t()),i.set(YR,v()),i.set(eA,b()),i.set(bR,y());const x=UC(n,s,KG,XG);i.set(oA,x),i.set(SR,tE(x,n,r)),i.set(vR,zt()),(e=>{const t=e.get(nA);o(()=>()=>{t.unmount()},[t])})(i),a?.((e,t)=>{const r=t.target,n=r?.closest(`.${cE}`);n?.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",id:"copy-cell-context-item",select:async()=>{xE(n)}})}),(({store:e})=>{const t=e.get(wR),r=e.get(KR),n=e.get(tA),o=e.get(QR),i=e.get(WR),a=e.get(UR);l(async s=>{const l=s;if(!l.snapshotData||!r||l.snapshotData.content)return l;if("getHyperCubeData"in r){const s=e.get(qI),{rowPartialHeight:u,scrollLeft:c,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:v}=GG(t,s,n,i,a);l.qHyperCube.qDataPages=await r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:h,qWidth:t.qHyperCube.qSize.qcx,qHeight:m}]),l.snapshotData.content={rowPartialHeight:u,scrollLeft:c,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:v,size:{width:o.width,height:o.height},estimatedRowHeight:s.estimatedRowHeight}}return l}),u(()=>({getViewState:()=>GG(t,e.get(qI),n,i,a)}),[t,e,n,a])})({store:i}),HG(i)}}}export{JG as default};
|
|
121
|
+
*/!function(e,t){var r;function n(e,t){var r=[],n=0;function o(e){return r.push(e),t}function i(){return r[n++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}r=new function(){var e="`TMP`",t="`COMMENT`",r="[^\\u0020-\\u007e]",o="(?:[0-9]*\\.[0-9]+|[0-9]+)",i="(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)",a="direction\\s*:\\s*",s="['\"]?\\s*",l="(^|[^a-zA-Z])",u="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",c="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",d="(?:[_a-z0-9-]|"+r+"|"+c+")",p=o+"(?:\\s*"+i+"|"+("-?"+("(?:[_a-z]|"+r+"|"+c+")")+d+"*")+")?",f="((?:-?"+p+")|(?:inherit|auto))",h="((?:-?"+p+")|(?:inherit|auto)|"+("(?:calc\\((?:"+("(?:(?:\\(|\\)|\\t| )|"+("(?:-?"+o+"(?:\\s*"+i+")?)")+"|(?:\\+|\\-|\\*|\\/)){3,}")+")\\))")+")",m="(#?"+d+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",g="(?:[!#$%&*-~]|"+r+"|"+c+")*?",b="(?![a-zA-Z])",v="(?!("+d+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",y="(?!"+g+s+"\\))",x="(?="+g+s+"\\))",S="(\\s*(?:!important\\s*)?[;}])",w=/`TMP`/g,C=/`TMPLTR`/g,E=/`TMPRTL`/g,R=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),A=new RegExp("("+u+v+"[^;}]+;?)","gi"),M=new RegExp("("+u+"[^\\}]*?})","gi"),P=new RegExp("("+a+")ltr","gi"),I=new RegExp("("+a+")rtl","gi"),k=new RegExp(l+"(left)"+b+y+v,"gi"),D=new RegExp(l+"(right)"+b+y+v,"gi"),T=new RegExp(l+"(left)"+x,"gi"),O=new RegExp(l+"(right)"+x,"gi"),L=/(:dir\( *)ltr( *\))/g,q=/(:dir\( *)rtl( *\))/g,N=new RegExp(l+"(ltr)"+x,"gi"),j=new RegExp(l+"(rtl)"+x,"gi"),_=new RegExp(l+"([ns]?)e-resize","gi"),z=new RegExp(l+"([ns]?)w-resize","gi"),F=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+h+"(\\s+)"+h+"(\\s+)"+h+"(\\s+)"+h+S,"gi"),$=new RegExp("((?:-color|border-style)\\s*:\\s*)"+m+"(\\s+)"+m+"(\\s+)"+m+"(\\s+)"+m+S,"gi"),H=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+p+")","gi"),B=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),W=new RegExp("(border-radius\\s*:\\s*)"+f+"(?:(?:\\s+"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?)?(?:(?:(?:\\s*\\/\\s*)"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?(?:\\s+"+f+")?)?"+S,"gi"),V=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+f,"gi"),U=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+m,"gi"),G=new RegExp("(text-shadow\\s*:\\s*)"+m+"(\\s*)"+f,"gi"),Y=new RegExp("(text-shadow\\s*:\\s*)"+f,"gi"),K=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+f+"(\\s*\\))","gi"),X=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+f+"((?:\\s*,\\s*"+f+"){0,2}\\s*\\))","gi");function J(e,t,r){var n,o;return"%"===r.slice(-1)&&(-1!==(n=r.indexOf("."))?(o=r.length-n-2,r=(r=100-parseFloat(r)).toFixed(o)+"%"):r=100-parseFloat(r)+"%"),t+r}function Z(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function Q(e,t){var r=[].slice.call(arguments),n=r.slice(2,6).filter(function(e){return e}),o=r.slice(6,10).filter(function(e){return e}),i=r[10]||"";return t+(o.length?Z(n)+" / "+Z(o):Z(n))+i}function ee(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function te(e,t,r){return t+ee(r)}function re(e,t,r,n,o){return t+r+ee(n)+o}function ne(e,t,r,n,o){return t+r+n+ee(o)}return{transform:function(r,o){var i=new n(A,"`NOFLIP_SINGLE`"),a=new n(M,"`NOFLIP_CLASS`"),s=new n(R,t);return r=s.tokenize(a.tokenize(i.tokenize(r.replace("`","%60")))),o.transformDirInUrl&&(r=r.replace(L,"$1`TMPLTR`$2").replace(q,"$1`TMPRTL`$2").replace(N,"$1"+e).replace(j,"$1ltr").replace(w,"rtl").replace(C,"ltr").replace(E,"rtl")),o.transformEdgeInUrl&&(r=r.replace(T,"$1"+e).replace(O,"$1left").replace(w,"right")),r=r.replace(P,"$1"+e).replace(I,"$1ltr").replace(w,"rtl").replace(k,"$1"+e).replace(D,"$1left").replace(w,"right").replace(_,"$1$2"+e).replace(z,"$1$2e-resize").replace(w,"w-resize").replace(W,Q).replace(V,te).replace(U,ne).replace(G,ne).replace(Y,te).replace(K,re).replace(X,re).replace(F,"$1$2$3$8$5$6$7$4$9").replace($,"$1$2$3$8$5$6$7$4$9").replace(H,J).replace(B,J),r=i.detokenize(a.detokenize(s.detokenize(r)))}}},e.exports?t.transform=function(e,t,n){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof n&&(o.transformEdgeInUrl=n)),r.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=r)}(zM,zM.exports);var FM=Zt(zM.exports);function $M(e,t,r){switch(e.type){case tn:case en:case Zr:return e.return=e.return||e.value;case Qr:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach(function(e){e.type===Zr&&(e.children=e.value)})}var n=Un(Array.prototype.concat(e.children),$M);return fn(n)?e.return=e.value+"{"+n+"}":""}function HM(e,t,r,n){if(e.type===rn||"@supports"===e.type||e.type===Qr&&(!e.parent||"@media"===e.parent.type||e.parent.type===Qr)){var o=FM.transform($M(e));e.children=o?Fn(o)[0].children:[],e.return=""}}function BM(e,t){let r=null;const n=new Map,o=new Set;function i(o){let s;if(void 0===t)s=n.get(o);else for(const[e,r]of n)if(t(e,o)){s=r;break}if(void 0!==s){if(!r?.(s[1],o))return s[0];i.remove(o)}const l=e(o);return n.set(o,[l,Date.now()]),a("CREATE",o,l),l}function a(e,t,r){for(const n of o)n({type:e,param:t,atom:r})}return i.unstable_listen=e=>(o.add(e),()=>{o.delete(e)}),i.getParams=()=>n.keys(),i.remove=e=>{if(void 0===t){if(!n.has(e))return;const[t]=n.get(e);n.delete(e),a("REMOVE",e,t)}else for(const[r,[o]]of n)if(t(r,e)){n.delete(r),a("REMOVE",r,o);break}},i.setShouldRemove=e=>{if(r=e,r)for(const[e,[t,o]]of n)r(o,e)&&(n.delete(e),a("REMOVE",e,t))},i}Object.defineProperty(HM,"name",{value:"stylisRTLPlugin"});const WM=BM(({options:e,...t})=>lR(nE(t,e)()),(e,t)=>e.fontSize===t.fontSize&&e.fontFamily===t.fontFamily&&e.fontStyle===t.fontStyle&&e.fontWeight===t.fontWeight&&e.options?.maxNbrLinesOfText===t.options?.maxNbrLinesOfText&&e.options?.allowLineBreaks===t.options?.allowLineBreaks);function VM(){return Boolean("undefined"!=typeof process&&process.env?.NODE_ENV&&!1)}function UM(e){const t=lR(()=>[]),r=lR(function(e){const[n,o,i]=e(t);i.has(r)&&(n.forEach(e),++o.n)});return r.effect=e,r.INTERNAL_onInit=e=>{const n=new Set;let o,i=0,a=!1,s=!1,l=!1;function u(){if(i)return;n.clear();let t=!0;const c=o=>{if(l)return e.get(o);if(o===r){const t=h(e,o);if(!kE(t)){if(!PE(o))throw new Error("no atom init");S(e,o,o.init)}return DE(t)}const i=b(e,o);try{return DE(i)}finally{C.d.set(o,i.n),d.get(o)?.t.add(r),t?n.add(o):d.has(o)&&(x(e,r),g(e),m(e))}};c.peek=e.get;const w=(n,...o)=>{const a=h(e,n);try{if(++i,n===r){if(!PE(n))throw new Error("atom not writable");const t=a.n,r=o[0];return S(e,n,r),x(e,n),void(t!==a.n&&(p.add(n),f.c?.(n),v(e,n)))}return y(e,n,...o)}finally{t||(g(e),m(e)),--i}};w.recurse=(t,...n)=>{if(l){if(VM())throw new Error("set.recurse is not allowed in cleanup")}else try{return a=!0,x(e,r),w(t,...n)}finally{g(e),a=!1,s&&(s=!1,u())}};try{o?.();const e=r.effect(c,w);if("function"!=typeof e)return;o=()=>{if(!i)try{return t=!0,l=!0,e()}finally{t=!1,l=!1,o=void 0}}}finally{t=!1,n.forEach(t=>{C.d.set(t,h(e,t).n)}),x(e,r),g(e)}}const c=iR(e),d=c[1],p=c[3],f=NE(c[6]),h=c[11],m=c[12],g=c[13],b=c[14],v=c[15],y=c[16],x=c[17],S=c[20],w=function(e,t){let r=GM.get(e);r||(r=new Set,GM.set(e,r),t.f.add(function(){for(const e of r)r.delete(e),e()}));return r}(e,f),C=h(e,r);C.v=void 0,Object.assign(e.get(t),[n,C,d]),f.c.add(r,function(){p.delete(r)}),f.m.add(r,function(){w.add(u),o&&w.delete(o)}),f.u.add(r,function(){w.delete(u),o&&w.add(o)}),f.c.add(r,function(){a?s=!0:w.add(u)})},VM()&&(Object.defineProperty(t,"debugLabel",{get:()=>r.debugLabel?`${r.debugLabel}:ref`:void 0,configurable:!0,enumerable:!0}),t.debugPrivate=!0),r}const GM=new WeakMap;class YM{#c={on:new Map,once:new Map};#d=10;#p(e){this.listenerCount(e)>this.#d&&console.warn(`Possible EventEmitter memory leak detected. ${this.listenerCount(e)} listeners added to "${String(e)}".`)}#f(e,t,r){const n=this.#c[e].get(t)??new Set;n.add(r),this.#c[e].set(t,n),this.#p(t)}setMaxListeners(e){this.#d=e}on(e,t){this.#f("on",e,t)}once(e,t){this.#f("once",e,t)}off(e,t){this.#c.on.get(e)?.delete(t),this.#c.once.get(e)?.delete(t)}emit(e,...t){this.#c.on.get(e)?.forEach(e=>{e(...t)}),this.#c.once.get(e)?.forEach(e=>{e(...t)}),this.#c.once.delete(e)}listenerCount(e){return(this.#c.on.get(e)?.size??0)+(this.#c.once.get(e)?.size??0)}removeAllListeners(e){void 0===e?(this.#c.on.clear(),this.#c.once.clear()):(this.#c.on.delete(e),this.#c.once.delete(e))}}const KM=lR(()=>new YM);let XM=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),JM=function(e){return e.Select="Select",e.SelectMouseDown="SelectMouseDown",e.SelectMouseUp="SelectMouseUp",e.SelectMultiAdd="SelectMultiAdd",e.SelectMultiEnd="SelectMultiEnd",e.Reset="Reset",e.Clear="Clear",e.UpdatePageRows="UpdatePageRows",e}({}),ZM=function(e){return e.A="ascending",e.D="descending",e}({}),QM=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const eP=[0,0],tP=e=>"number"==typeof e&&!Number.isNaN(+e),rP=e=>tP(e.qNum),nP=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e),oP=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),iP=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},aP=(e,t,r)=>{const n={previousColor:(o=e.localPaletteColors)[(i=t)-(i>0?1:0)],nextColor:o[i+(i<o.length-1?1:0)]};var o,i;const a=((e,t)=>{const r=e.limits&&e.limits.concat().sort((e,t)=>e.value-t.value);return{lowerLimit:r&&t>0?r[t-1]:{value:0,gradient:!1},upperLimit:r&&r[t]?r[t]:{value:1,gradient:!1}}})(e,t),s=((e,t,r,n,o)=>{const{upperLimit:i,lowerLimit:a}=e,{previousColor:s,nextColor:l}=t,u=n===i.value?1:(n-a.value)/(i.value-a.value);return a.gradient&&i.gradient?n-a.value<i.value-n?{color:s.color,t:.5-u}:{color:l.color,t:u-.5}:a.gradient?{color:s.color,t:1-(.5+u/2)}:i.gradient?{color:l.color,t:u/2}:{color:o.localPaletteColors[r].color,t:n}})(a,n,t,r,e);return ie(e.localPaletteColors[t].color??"").blend(ie(s.color??""),s.t)},sP=(e,t,r)=>{const n=((e,t)=>{const{limits:r}=e;return r&&(e.limits=r.sort((e,t)=>e.value-t.value),e.limits=r.map(e=>({...e,value:oP(t,e.value)}))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map((e,t)=>({color:iP(n,t,r)}))),n},lP=(e,t,r,n)=>{const o=sP(e,r,n),{localPaletteColors:i}=o;if(t<=0)return i[0].color;if(t>=1)return i[i.length-1].color;const a=((e,t)=>{let r="",n=0;const{limits:o,localPaletteColors:i}=e;for(let a=0;a<i.length;a++){const i=o&&o[a]?o[a].value:1;if(t>=n&&t<i){r=aP(e,a,t);break}n=i}return r})(o,t);return a},uP=(e,t)=>{const r=(e=>e.map(e=>e.value??e).sort((e,t)=>e-t))(e),n=r.some(e=>!tP(e));return 0===r.length||n?(e=>{const t=0===e?0:.5*e;return{min:e-t,max:e+t}})(t):1===r.length?((e,t)=>{const r=e[0]-t;if(0===r||!tP(r)){const e=0===t?.5:Math.abs(.5*t);return{min:t-e,max:t+e}}return r>0?{min:t-.5*Math.abs(t),max:e[0]+2*r}:{min:e[0]+2*r,max:t+.5*Math.abs(t)}})(r,t):((e,t)=>{let r=e[e.length-1]-e[0];return r=r>0?r:1,{min:Math.min(t,e[0])-r/2,max:Math.max(t,e[e.length-1])+r/2}})(r,t)},cP=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=uP(e,t),o=Math.abs(t);return{min:r??t-o,max:n??t+o}})(r,t),o=((e,t,r)=>{const{limits:n,paletteColors:o,localPaletteColors:i}=e.segments;if(!n||!tP(t))return 0;let a=r&&tP(r)?Math.min(r,t):0;const s=n.sort((e,t)=>e.value-t.value),l=o||i;for(let e=0;e<l.length;e++){if(e===l.length-1||t<s[e].value&&t>=a)return e;a=s[e].value}return 0})(e,t,n.min);return{limitRange:n,limitPaletteColorIndex:o}},dP=(e,t,r,n)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=cP(o,t),a=((e,t,r,n)=>{const{segments:o}=e;if(!o||!r)return;const{limits:i}=o;if(!i?.length||!((e,t)=>!(!e||0===e.length||!(e[t]?.gradient??e[t-1]?.gradient)))(i,r.limitPaletteColorIndex))return iP(o,r.limitPaletteColorIndex,n);const a=oP(r.limitRange,t);return lP(o,a,r.limitRange,n)})(o,t,i,n),s=o.segments.paletteColors[i?.limitPaletteColorIndex||0].icon,{indicator:l}=e;let u=l?.position||"right";return"rtl"===r&&(u="right"===u?"left":"right"),{color:a,iconKey:s,position:u}},pP=(_C().palette.primary.light,"repeating-linear-gradient(-45deg, rgba(200,200,200,0.08), rgba(200,200,200,0.08) 2px, rgba(200,200,200,0.3) 2.5px, rgba(200,200,200,0.08) 3px, rgba(200,200,200,0.08) 5px)"),fP=4/3,hP="12px",mP="600",gP="Source Sans Pro, sans-serif",bP={height:"auto",fontSize:hP,lineHeight:"unset",padding:"4px",borderStyle:"solid",borderWidth:"0px 1px 1px 0px",userSelect:"none",outline:"none","&:focus-visible":{boxShadow:"0 0 0 2px #177fe6 inset, 0 0 0 3px #fff inset"},"&:focus:not(:focus-visible)":{boxShadow:"none"},"&:last-child":{borderRightWidth:"0px"}},vP={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:mP},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},yP=(e,t)=>"rtl"===e&&"center"!==t.resolvedImagePosition?.horizontal?t.resolvedImagePosition?.horizontal&&(e=>"flex-start"===e?"flex-end":"flex-start")(t.resolvedImagePosition?.horizontal):t.resolvedImagePosition?.horizontal,xP=(e,t)=>e.representation.type===JA.Image&&"fitHeight"===e.representation.imageSize?yP(t,e.representation):e.align,SP=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",wP=(e,t,r)=>{if(!t&&"rtl"===r){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},CP=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,EP=(e,t,r)=>"rtl"===e||t&&!r?"0px":"1px",RP=(e,t,r)=>"rtl"===e?t&&!r?"0px":"1px":"0px",AP=24,MP=Pc("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0})),PP=Pc(vp,{shouldForwardProp:e=>!["textAlign","direction","isPagination"].includes(e)})(({textAlign:e,theme:t,direction:r,isPagination:n})=>({textAlign:e,height:"auto",padding:t.spacing(.5,1),display:"flex",alignItems:"flex-end",justifySelf:e,alignSelf:"center",flexDirection:"rtl"===r?SP(e,n):void 0})),IP=Pc(vp,{shouldForwardProp:e=>"shouldShowMenuIcon"!==e&&"shouldShowLockIcon"!==e&&"alignment"!==e})(({shouldShowMenuIcon:e,shouldShowLockIcon:t,alignment:r})=>{const n=e?"24px":"";let o;switch(r){case"left":o={gridTemplateColumns:t?`20px 2fr ${n}`:`1fr ${n}`};break;case"center":{const r=e||t;o={gridTemplateColumns:r?"24px 2fr 24px":"1fr","& .sn-table-lock-icon":{gridColumn:1},"& .sn-table-head-label":{gridColumn:r?2:1},[`& .${hE}`]:{gridColumn:3}};break}case"right":o={gridTemplateColumns:t?`${n} 2fr 20px`:`${n} 1fr`,"& .sn-table-lock-icon":{gridColumn:t?3:"unset"},"& .sn-table-head-label":{gridColumn:e?2:"span 2"},[`& .${hE}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}}),kP=Pc(vp,{shouldForwardProp:e=>"rightAligned"!==e})(({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})),DP=Pc(vp,{shouldForwardProp:e=>"justifyContent"!==e})(({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"})),TP=Pc(Pd,{shouldForwardProp:e=>"hoverBackground"!==e&&"activeBackground"!==e&&"isActive"!==e&&"order"!==e})(({hoverBackground:e,activeBackground:t,isActive:r,order:n})=>({padding:"4px !important",width:"fit-content",height:"auto",background:r?t:void 0,"&:hover":{background:e},color:"inherit",order:n})),OP=lR(),LP=lR(0),qP=lR(0),NP=4/3,jP=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function _P(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const zP=(e,t)=>e?{borderBottomColor:FC.DARK_MODE_BORDER,borderRightColor:FC.DARK_MODE_BORDER,borderLeftColor:FC.DARK_MODE_BORDER,borderTopColor:FC.DARK_MODE_BORDER}:{borderLeftColor:FC.BORDER_MEDIUM,borderRightColor:FC.BORDER_MEDIUM,borderTopColor:FC.BORDER_HEAVY,borderBottomColor:t?FC.BORDER_HEAVY:FC.BORDER_LIGHT},FP=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*NP+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},$P=e=>e.components?.find(e=>"theme"===e.key),HP=(e,t,r,n=!1)=>{const o=t.getStyle("object",`straightTableV2.${e}`,"fontFamily"),i=t.getStyle("object",`straightTableV2.${e}`,"color"),a=t.getStyle("object",`straightTableV2.${e}`,"fontSize"),s={fontFamily:o,color:jP(r?.fontColor)?_P(FC.TEXT,t,r?.fontColor):i||FC.TEXT,fontSize:r?.fontSize&&`${r.fontSize}px`||a,padding:r&&"padding"in r?r.padding:void 0,...zP(t.background.isDark,n)};return Object.keys(s).forEach(e=>{const t=e;null==s[t]&&delete s[t]}),s};function BP(e,t,r){const n=$P(e)?.header,o=HP("header",t,n,r);return o.background=(e=>{if(void 0===e)return;const t=ie(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),o.hoverBackground=BC(o.background??FC.WHITE,wE),o.activeBackground=BC(o.background??FC.WHITE,CE),o}const WP=(e,t)=>{const r=e.toLowerCase().match(/<[^>]+>/g)??[];return r.forEach(e=>(e=>e in vP)(e)&&Object.assign(t,vP[e])),t};function VP(e,t,r){const n={};let o={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return t?.qValues?.forEach((e,t)=>{const i=e.qText,a=i&&VC(i);a&&(n[r[t]]=a),o=i?WP(i,o):o}),n.cellBackgroundColor&&!n.cellForegroundColor&&(n.cellForegroundColor=$C(n.cellBackgroundColor)),{...e,...n,color:n.cellForegroundColor||e.color,background:n.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}}var UP={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));const t=[];return e.split("&").forEach(e=>{if(!e)return;const r=e.indexOf("=");let n,o="",i=!1;-1===r?n=e:(n=e.slice(0,r),o=e.slice(r+1),i=!0),t.push(function(e,t,r){return{key:YP(e),value:YP(t.replace(/%2B/g,"shouldNotDecodePlus")),useEqualSign:r}}(n,o,i))}),t}},GP=UP;function YP(e){try{return decodeURIComponent(e)}catch{return e}}function KP(e){if(!(this instanceof KP))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");const t=function(e){const t={authorityAndPath:"",search:"",hash:""};let r=e.indexOf("#");-1!==r&&(t.hash=e.substr(r),e=e.substr(0,r));r=e.indexOf("?"),-1!==r&&(t.search=e.substr(r),e=e.substr(0,r));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:()=>GP.fromSearchString(t.search)}})}function XP(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/shouldNotDecodePlus/gi,"%2B")}KP.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},KP.encodeSearchParams=function(e){let t,r="";for(let n=0;n<e.length;n++)t=e[n],r+=0===n?"?":"&",r+=XP(t.key),t.value?r+=`=${XP(t.value)}`:r+=t.useEqualSign?"=":"";return r};var JP=KP;var ZP,QP=class{_hasNext(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}constructor(e){this._input=e,this._pushback=null,this._temp=null,this._index=0,this._mark=0}pushback(e){this._pushback=e}index(){return this._index}hasNext(){return null!=this._pushback||this._hasNext()}next(){if(null!=this._pushback){const e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}nextHex(){const e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}peek(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}mark(){this._temp=this._pushback,this._mark=this._index}reset(){this._pushback=this._temp,this._index=this._mark}remainder(){let e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}},eI=class{decode(e){let t="";const r=new QP(e);let n;for(;r.hasNext();)n=this.decodeCharacter(r),t+=null!=n?n:r.next();return t}decodeCharacter(e){return e.next()}},tI=e=>e>=0&&e<=1114111,rI=e=>e.match(/[\s]/),nI=class extends eI{decodeCharacter(e){e.mark();const t=e.next();let r,n,o;if(null==t||"\\"!==t)return e.reset(),null;const 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(r=i,n=0;n<5&&(o=e.next(),null!=o&&!rI(o));n++){if("NaN"===parseInt(o,16)){e.pushback(o);break}r+=o}const a=parseInt(r,16);return tI(a)?String.fromCharCode(a):"�"}},oI=class e{constructor(e,t){this._key=e,this._value=t}getKey(){return this._key}getValue(){return this._value}equals(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}static newInstanceIfNeeded(){let t,r,n=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],r=n.length):(r=arguments[1],t=arguments[2]),t&&n?(n.length>r&&(n=n.substr(0,r)),new e(n,t)):null}},iI=class e{setValue(e){this._nextMap=null,this._value=e}getNextNode(e){return this._nextMap?this._nextMap[e]:null}put(t,r,n){let o,i;if(t.length===r)return i=this._value,this.setValue(n),i;const a=t.charAt(r);return this._nextMap?(o=this._nextMap[a],o||(o=new e,this._nextMap[a]=o)):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,r+1,n)}get(e,t){if(e.length<=t)return this._value;const r=this.getNextNode(e.charAt(t));return r?r.get(e,t+1):null}getLongestMatch(e,t){if(e.length<=t)return oI.newInstanceIfNeeded(e,this._value);const r=this.getNextNode(e.charAt(t));if(!r)return oI.newInstanceIfNeeded(e,t,this._value);const n=r.getLongestMatch(e,t+1);return n||oI.newInstanceIfNeeded(e,t,this._value)}},aI=class{constructor(){this.clear()}getLongestMatch(e){return this.root&&e?this.root.getLongestMatch(e,0):null}getMaxKeyLength(){return this.maxKeyLen}clear(){this.root=null,this.maxKeyLen=0,this.size=0}put(e,t){this.root||(this.root=new iI);const r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}},sI=(()=>{const e=[],t=[],r=new aI;let n,o,i;for(n in e["""]="34",e["&"]="38",e["<"]="60",e[">"]="62",e[" "]="160",e["¡"]="161",e["¢"]="162",e["£"]="163",e["¤"]="164",e["¥"]="165",e["¦"]="166",e["§"]="167",e["¨"]="168",e["©"]="169",e["ª"]="170",e["«"]="171",e["¬"]="172",e["­"]="173",e["®"]="174",e["¯"]="175",e["°"]="176",e["±"]="177",e["²"]="178",e["³"]="179",e["´"]="180",e["µ"]="181",e["¶"]="182",e["·"]="183",e["¸"]="184",e["¹"]="185",e["º"]="186",e["»"]="187",e["¼"]="188",e["½"]="189",e["¾"]="190",e["¿"]="191",e["À"]="192",e["Á"]="193",e["Â"]="194",e["Ã"]="195",e["Ä"]="196",e["Å"]="197",e["Æ"]="198",e["Ç"]="199",e["È"]="200",e["É"]="201",e["Ê"]="202",e["Ë"]="203",e["Ì"]="204",e["Í"]="205",e["Î"]="206",e["Ï"]="207",e["Ð"]="208",e["Ñ"]="209",e["Ò"]="210",e["Ó"]="211",e["Ô"]="212",e["Õ"]="213",e["Ö"]="214",e["×"]="215",e["Ø"]="216",e["Ù"]="217",e["Ú"]="218",e["Û"]="219",e["Ü"]="220",e["Ý"]="221",e["Þ"]="222",e["ß"]="223",e["à"]="224",e["á"]="225",e["â"]="226",e["ã"]="227",e["ä"]="228",e["å"]="229",e["æ"]="230",e["ç"]="231",e["è"]="232",e["é"]="233",e["ê"]="234",e["ë"]="235",e["ì"]="236",e["í"]="237",e["î"]="238",e["ï"]="239",e["ð"]="240",e["ñ"]="241",e["ò"]="242",e["ó"]="243",e["ô"]="244",e["õ"]="245",e["ö"]="246",e["÷"]="247",e["ø"]="248",e["ù"]="249",e["ú"]="250",e["û"]="251",e["ü"]="252",e["ý"]="253",e["þ"]="254",e["ÿ"]="255",e["&OElig"]="338",e["&oelig"]="339",e["&Scaron"]="352",e["&scaron"]="353",e["&Yuml"]="376",e["&fnof"]="402",e["&circ"]="710",e["&tilde"]="732",e["&Alpha"]="913",e["&Beta"]="914",e["&Gamma"]="915",e["&Delta"]="916",e["&Epsilon"]="917",e["&Zeta"]="918",e["&Eta"]="919",e["&Theta"]="920",e["&Iota"]="921",e["&Kappa"]="922",e["&Lambda"]="923",e["&Mu"]="924",e["&Nu"]="925",e["&Xi"]="926",e["&Omicron"]="927",e["&Pi"]="928",e["&Rho"]="929",e["&Sigma"]="931",e["&Tau"]="932",e["&Upsilon"]="933",e["&Phi"]="934",e["&Chi"]="935",e["&Psi"]="936",e["&Omega"]="937",e["&alpha"]="945",e["&beta"]="946",e["&gamma"]="947",e["&delta"]="948",e["&epsilon"]="949",e["&zeta"]="950",e["&eta"]="951",e["&theta"]="952",e["&iota"]="953",e["&kappa"]="954",e["&lambda"]="955",e["&mu"]="956",e["&nu"]="957",e["&xi"]="958",e["&omicron"]="959",e["&pi"]="960",e["&rho"]="961",e["&sigmaf"]="962",e["&sigma"]="963",e["&tau"]="964",e["&upsilon"]="965",e["&phi"]="966",e["&chi"]="967",e["&psi"]="968",e["&omega"]="969",e["&thetasym"]="977",e["&upsih"]="978",e["&piv"]="982",e["&ensp"]="8194",e["&emsp"]="8195",e["&thinsp"]="8201",e["&zwnj"]="8204",e["&zwj"]="8205",e["&lrm"]="8206",e["&rlm"]="8207",e["&ndash"]="8211",e["&mdash"]="8212",e["&lsquo"]="8216",e["&rsquo"]="8217",e["&sbquo"]="8218",e["&ldquo"]="8220",e["&rdquo"]="8221",e["&bdquo"]="8222",e["&dagger"]="8224",e["&Dagger"]="8225",e["&bull"]="8226",e["&hellip"]="8230",e["&permil"]="8240",e["&prime"]="8242",e["&Prime"]="8243",e["&lsaquo"]="8249",e["&rsaquo"]="8250",e["&oline"]="8254",e["&frasl"]="8260",e["&euro"]="8364",e["&image"]="8365",e["&weierp"]="8472",e["&real"]="8476",e["&trade"]="8482",e["&alefsym"]="8501",e["&larr"]="8592",e["&uarr"]="8593",e["&rarr"]="8594",e["&darr"]="8595",e["&harr"]="8596",e["&crarr"]="8629",e["&lArr"]="8656",e["&uArr"]="8657",e["&rArr"]="8658",e["&dArr"]="8659",e["&hArr"]="8660",e["&forall"]="8704",e["&part"]="8706",e["&exist"]="8707",e["&empty"]="8709",e["&nabla"]="8711",e["&isin"]="8712",e["¬in"]="8713",e["&ni"]="8715",e["&prod"]="8719",e["&sum"]="8721",e["&minus"]="8722",e["&lowast"]="8727",e["&radic"]="8730",e["&prop"]="8733",e["&infin"]="8734",e["&ang"]="8736",e["&and"]="8743",e["&or"]="8744",e["&cap"]="8745",e["&cup"]="8746",e["&int"]="8747",e["&there4"]="8756",e["&sim"]="8764",e["&cong"]="8773",e["&asymp"]="8776",e["&ne"]="8800",e["&equiv"]="8801",e["&le"]="8804",e["&ge"]="8805",e["&sub"]="8834",e["&sup"]="8835",e["&nsub"]="8836",e["&sube"]="8838",e["&supe"]="8839",e["&oplus"]="8853",e["&otimes"]="8855",e["&perp"]="8869",e["&sdot"]="8901",e["&lceil"]="8968",e["&rceil"]="8969",e["&lfloor"]="8970",e["&rfloor"]="8971",e["&lang"]="9001",e["&rang"]="9002",e["&loz"]="9674",e["&spades"]="9824",e["&clubs"]="9827",e["&hearts"]="9829",e["&diams"]="9830",e)"function"!=typeof e[n]&&e.hasOwnProperty(n)&&(t[e[n]]=n);for(o in t)"function"!=typeof t[o]&&t.hasOwnProperty(o)&&(i=t[o].toLowerCase().substr(1),r.put(i,String.fromCharCode(o)));return r})(),lI=class extends eI{decodeCharacter(e){let t;e.mark();const r=e.next();if(null==r||"&"!==r)return e.reset(),null;const n=e.next();if(null==n)return e.reset(),null;if("#"===n){if(t=this._getNumericEntity(e),null!=t)return t}else if(n.match(/[A-Za-z]/)&&(e.pushback(n),t=this._getNamedEntity(e),null!=t))return t;return e.reset(),null}_getNamedEntity(e){let t,r,n,o="";for(t=Math.min(e.remainder().length,sI.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();const i=sI.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,r=0;r<t;r++)e.next();return e.peek(";")&&e.next(),i.getValue()}_getNumericEntity(e){const t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}_parseHex(e){let t,r="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}r+=t,e.next()}const n=parseInt(r,16);return!Number.isNaN(+n)&&tI(n)?String.fromCharCode(n):null}_parseNumber(e){let t,r="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}r+=t,e.next()}const n=parseInt(r,10);return!Number.isNaN(+n)&&tI(n)?String.fromCharCode(n):null}},uI=class extends eI{decodeCharacter(e){e.mark();const t=e.next();let r,n,o,i;if(null==t)return e.reset(),null;if("%"!==t)return e.reset(),null;for(r="",n=0;n<2;n++)o=e.nextHex(),null!=o&&(r+=o);return 2===r.length&&(i=parseInt(r,16),tI(i))?String.fromCharCode(i):(e.reset(),null)}},cI=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,dI=5e6,pI=5e5,fI=(e,t)=>{const{maxByteSizeSvg:r=pI,maxByteSizeImage:n=dI}=t??{},{mimeType:o,encoding:i,data:a}=(e=>{const[,t,r,n]=cI.exec(e.trim())??[];return{encoding:r,data:n,mimeType:t?.toLocaleLowerCase()}})(e);if(!a)return!0;const s=((e,t,r)=>{const n={type:e};if(t?.includes(";base64"))try{return new Blob([atob(r)],n).size}catch{return new Blob([r],n).size}return"image/svg+xml"===e?new Blob([r],n).size:0})(o,i,a);return"image/svg+xml"===o?s<=r:s<=n};"undefined"!=typeof document&&(ZP=document.createElement("div"));var hI=Array.prototype.indexOf,mI=[",",".","_"," "],gI=[",",".","-","_"," "],bI={width:["%"],height:["%"]},vI={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},yI={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":vI.image,"background-color":vI.color,"border-color":vI.color,"border-image":vI.image,color:vI.color,icon:vI.image,"list-style-image":vI.image,"outline-color":vI.color},xI={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function SI(e,t,r){let n;if(t){if(hI)return hI.call(t,e,r);for(n=t.length,r=r?r<0?Math.max(0,n+r):r:0;r<n;r++)if(r in t&&t[r]===e)return r}return-1}function wI(e){if(null==e)return"";let t="";const r=document.createTextNode(e);return ZP.appendChild(r),t=ZP.innerHTML,ZP.removeChild(r),t}function CI(e,t,r){let n,o,i,a,s,l,u,c,d;for(e=RI(e).toLowerCase(),t=RI(t),i=0;i<xI.attr_name.length;i++)if(e.match(xI.attr_name[i]))throw new Error(`Unsafe attribute name used: ${e}`);for(i=0;i<xI.attr_val.length;i++)if(t.toLowerCase().match(xI.attr_val[i]))throw new Error(`Unsafe attribute value used: ${t}`);if(n=bI[e],n||(n=gI),o="",!r){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=s}o+='="'}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&SI(u,n)<0?(d=c.toString(16),o+=`&#x${d};`):o+=u;return r||(o+='"'),o}function EI(e,t,r){let n,o,i,a,s,l,u,c,d,p;if(e=RI(e).toLowerCase(),t=RI(t),SI(e,xI.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(n=0;n<xI.css_val.length;n++)if(t.toLowerCase().indexOf(xI.css_val[n])>=0)throw new Error(`Unsafe property value used: ${t}`);if(o=yI[e],o||(o=vI.default),i="",!r){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=s}i+=": "}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&SI(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+=`\\${p}${d}`):i+=u;return i}function RI(e,t){let r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;const s=[new lI,new uI,new nI];for(;!a;){n=r;for(let e=0;e<s.length;e++)i=s[e].decode(r),i!==r&&(o++,r=i);n!==r||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return r}var AI=[];for(let e=0;e<255;e++)AI[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);var MI={html:e=>wI(e.unsafe),css(e){let t,r=[];const n=[],o={};let i="";for(t in e.map?r=e.map:r[e.name]=e.unsafe,r)"function"!=typeof r[t]&&r.hasOwnProperty(t)&&(n[t]=EI(t,r[t],!0),i+=EI(t,r[t],!0),o[t]=n[t]);return e.map?o:i},attr(e){let t=[];const r=[],n={};let o="";e.map?t=e.map:t[e.name]=e.unsafe;for(const e in t)"function"!=typeof t[e]&&t.hasOwnProperty(e)&&(r[e]=CI(e,t[e],!0),o+=CI(e,t[e],!0),n[e]=r[e]);return e.map?n:o}};function PI(e,t){throw new Error(t)}var II={canonicalize:RI,encode:function(){const e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"==typeof arguments[0]?function(){let e,t,r;const n=arguments[0]||{};let o=1;const i=arguments.length;for(;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(r=e[t],n===r)continue;void 0!==r&&(n[t]=r)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?MI.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&PI(this,"Invalid parameter type"),MI.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&PI(this,"Invalid parameter type"),MI.attr(e)):void PI(this,"Invalid parameter type")},encodeForAttr:CI,encodeForAttr2:function(e){return CI("nonsens",e,!0)},encodeForCSS:EI,encodeForHref:function(e){RI(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new JP(e),r=JP.encodeAuthorityAndPath(t.authorityAndPath),n=t.searchParams;e=r+JP.encodeSearchParams(n)+t.hash;const o=decodeURI(e).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){let r,n,o,i,a,s;for(t||(t=mI),s="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),SI(o,t)>=0||null==AI[i]?s+=o:(n=i.toString(16),i<256?(a="00".substr(n.length),s+=`\\x${a}${n.toUpperCase()}`):(a="0000".substr(n.length),s+=`\\u${a}${n.toUpperCase()}`));return s},encodeForHTML:wI,encodeForURL:function(e,t){let r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=RI(t).toLowerCase():PI(this,"Illegal Attribute Name Specified"),r+='="'),r+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),r+=t?'"':"",r},isSafeDataURL:fI,validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch{return!1}}(e))return!1;const t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;const r=function(e){let t=e,r="";for(;t.length>0;)if(t.startsWith("../")||t.startsWith("./"))t=t.replace(/^\.\.?\//,"");else if(t.startsWith("/./"))t=t.replace(/^\/\.\//,"/");else if("/."===t)t="/";else if(t.startsWith("/../")){t=t.replace(/^\/\.\.\//,"/");const e=r.lastIndexOf("/");-1!==e&&(r=r.slice(0,e))}else if("/.."===t){t="/";const e=r.lastIndexOf("/");-1!==e&&(r=r.slice(0,e))}else if("."===t||".."===t)t="";else{const e=t.match(/^\/?[^/]*/),n=e?e[0]:"";t=t.slice(n.length),r+=n}return r}(t);return""!==r&&"/"!==r&&r}};const kI=(e,t)=>t.qAttrExps?.qValues?.[e],DI=(e,t)=>{switch(e){case"topLeft":default:return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"center"};case"topRight":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-end"}}},TI=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:o,imageBox:i,direction:a})=>!n||t&&(t.toLowerCase().includes("javascript:")||!II.isSafeDataURL(t))?{type:JA.Text,url:void 0,text:e,labelStructure:o}:{type:JA.Image,url:t||"",text:e,imageSize:r,resolvedImagePosition:DI(n,a),labelStructure:o,imageBox:i},OI=(e,t,r,n)=>{if(!e.qMiniChart||!t?.miniChart||!r)return{type:JA.Text,text:n};const{minY:o,maxY:i}=((e,t,r)=>{const n="global"===t.yAxis?.scale,o="zeroCenter"===t.yAxis?.position,i=n?r.qYMin:e.qMiniChart.qMin,a=n?r.qYMax:e.qMiniChart.qMax;if(o){const e=Math.max(Math.abs(i),Math.abs(a));return{minY:-e,maxY:e}}return(e=>"zeroBaseline"===e.yAxis?.position||"bars"===e.type&&"auto"===e.yAxis?.position)(t)?{minY:Math.min(0,i),maxY:Math.max(0,a)}:{minY:i,maxY:a}})(e,t.miniChart,r),a={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:o,maxY:i,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:JA.MiniChart,text:n,miniChart:a}},LI=(e,t,r)=>{const n=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,o=n?.qValues?.[e];if(o){const e=Number.isNaN(+o.qNum)?void 0:`${o.qNum}`;return o.qText||e}return r?.urlPosition===ZA.Attribute?void 0:r?.urlLabel},qI=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:JA.Link,url:II.encodeForHref(r),text:t,labelStructure:e}}catch{return{type:JA.Text,url:void 0,text:t,labelStructure:e}}},NI=({cell:e,representationProperties:t,attrExprInfoIndex:r,env:n,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:s=e=>e.qText,direction:l,enabledFeatures:u})=>{const c=QA(t),d=s(e);return c===JA.Image&&u[JA.Image]&&!n.anything.sense?.isUnsupportedFeature?.("tableImages")?((e,t,r,n,o,i)=>{const{imageSize:a,imagePosition:s,imageSetting:l,imageLabel:u,imageBox:c}=t??{};if("url"===l){const t=kI(r.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),TI({text:n,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}if("label"===l){const t=i?i.originalValue:n;if(-1===r.imageLabel)return TI({text:u||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o});const l=kI(r.imageLabel??-1,e)?.qText??n;return TI({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}return{type:JA.Text,url:void 0,labelStructure:i,text:n}})(e,t,r,d,l,a):c===JA.Link?((e,t,r,n,o)=>{const{urlPosition:i}=t??{};if(i===ZA.Attribute){const i=LI(r.url??-1,e,t);return qI({labelStructure:n,text:o||i||"",url:i})}if(i===ZA.Dimension){const i=LI(r.urlLabel??-1,e,t)||o;return n&&(n.maskedValue=i),qI({text:i,labelStructure:n,url:n?.originalValue??o})}return{type:JA.Text,url:void 0,text:o,labelStructure:n}})(e,t,r,a,d):c===JA.Indicator&&u[JA.Indicator]&&!n.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,r)=>{const{indicator:n}=e??{};return{type:JA.Indicator,url:void 0,text:r,indicator:{applySegmentColors:n?.applySegmentColors,position:n?.position,showTextValues:n?.showTextValues},indicatorConditionalColoring:t}})(t,o,d):c===JA.MiniChart&&u[JA.MiniChart]&&!n.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?OI(e,t,i,d):{type:JA.Text,url:void 0,text:d,labelStructure:a}};import.meta.env&&import.meta.env.MODE;!function(e=()=>{try{return window.localStorage}catch(e){return void("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&"undefined"!=typeof window&&console.warn(e))}},t){var r;let n,o;const i={getItem:(r,i)=>{var a,s;const l=e=>{if(n!==(e=e||"")){try{o=JSON.parse(e,null==t?void 0:t.reviver)}catch(e){return i}n=e}return o},u=null!=(s=null==(a=e())?void 0:a.getItem(r))?s:null;return(e=>"function"==typeof(null==e?void 0:e.then))(u)?u.then(l):l(u)},setItem:(t,r)=>{var n;return null==(n=e())?void 0:n.setItem(t,JSON.stringify(r,void 0))},removeItem:t=>{var r;return null==(r=e())?void 0:r.removeItem(t)}};let a;try{a=null==(r=e())?void 0:r.subscribe}catch(e){}var s;!a&&"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(a=(t,r)=>{if(!(e()instanceof window.Storage))return()=>{};const n=n=>{n.storageArea===e()&&n.key===t&&r(n.newValue)};return window.addEventListener("storage",n),()=>{window.removeEventListener("storage",n)}}),a&&(i.subscribe=(s=a,(e,t,r)=>s(e,e=>{let n;try{n=JSON.parse(e||"")}catch(e){n=r}t(n)})))}();const jI=(e,t,r)=>(t.has(r)?t:t.set(r,e())).get(r),_I=new WeakMap,zI=()=>{};function FI(e,t=zI){return((e,t,r)=>{const n=jI(()=>new WeakMap,_I,t);return jI(e,n,r)})(()=>{const r=new WeakMap,n=new WeakMap,o=lR(0),i=lR([]);i.INTERNAL_onInit=e=>{e.set(i,[()=>e.set(o,e=>e+1)])},"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&(o.debugPrivate=!0,i.debugPrivate=!0);const a=lR(s=>{let l;s(o);try{l=s(a)}catch(e){}const u=s(e);if(!(e=>"function"==typeof(null==e?void 0:e.then))(u))return{v:u};if(u!==(null==l?void 0:l.p)&&u.then(e=>{n.set(u,e);const[t]=s(i);t()},e=>{r.set(u,e);const[t]=s(i);t()}),r.has(u))throw r.get(u);return n.has(u)?{p:u,v:n.get(u)}:l&&"v"in l?{p:u,f:t(l.v),v:l.v}:{p:u,f:t()}});return a.init=void 0,"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&(a.debugPrivate=!0),lR(e=>{const t=e(a);return"f"in t?t.f:t.v},(t,r,...n)=>r(e,...n))},e,t)}const $I=lR(e=>{const t=e(JR),r=e(LR);return e(qR),{qTop:0,qHeight:0,rowPartialHeight:r?.content?.rowPartialHeight??0,visibleTop:r?.content?.visibleTop??t?.visibleTop,visibleHeight:r?.content?.visibleHeight??t?.visibleHeight,scrollLeft:r?.content?.scrollLeft??t?.scrollLeft??0,scrollTopRatio:r?.content?.scrollTopRatio??t?.scrollTopRatio,rowsPerPage:r?.content?.rowsPerPage??t?.rowsPerPage,page:r?.content?.page??t?.page,estimatedRowHeight:r?.content?.estimatedRowHeight??0}}),HI=e=>-1===e?{}:e.qAttrExprInfo.reduce((e,{id:t},r)=>(e[t]=r,e),{}),BI=({cId:e})=>e??WA(),WI=1e4;function VI(e,t){return[...t].reverse().find(t=>t*e<=WI)||Math.floor(WI/e)}function UI(e,t){if(t?.skipTotals)return{atTop:!1,atBottom:!1};const r=e.qHyperCube.qDimensionInfo.length>0,n=e.qHyperCube.qMeasureInfo.length>0,o=e.qHyperCube.qGrandTotalRow.length>0,i=e.totals?.show,a=e.totals?.position;if(o&&(r&&n||!i&&!r)){if(i||"top"===a)return{atTop:!0,atBottom:!1};if("bottom"===a)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function GI(e,t,r,n){return t?0===r?e.totals?.label??"":"":e.qHyperCube.qGrandTotalRow.at(n)?.qText??""}function YI(e,t){const r=e.qHyperCube.qGrandTotalRow.at(t);return tP(r?.qNum)}function KI(e,t,r,n,o){return e&&!e.auto?n&&"rtl"===o&&"center"!==e.align?{headTextAlign:"right"===e.align?"left":"right",totalsTextAlign:"right"===e.align?"left":"right",bodyTextAlign:"right"===e.align?"left":"right"}:{headTextAlign:e.align,totalsTextAlign:e.align,bodyTextAlign:e.align}:n||"rtl"!==o?{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:r?"left":"right",bodyTextAlign:"auto"}:{headTextAlign:"N"===t||void 0===t?"left":"right",totalsTextAlign:r?"right":"left",bodyTextAlign:"auto"}}const XI=(e,t,r,n)=>"auto"!==t?t:n||"rtl"!==r?e?"right":"left":e?"left":"right",JI=(e,t)=>{if(!e)return;const{background:r,foreground:n}=e,o=ie(r??""),i=ie(n??""),a=t?"getRGB":"getRGBA",s=o.isInvalid()?void 0:o[a](),l=s?BC(s,wE):void 0,u=s?BC(s,CE):void 0;return i.isInvalid()&&void 0!==s?{background:s,color:$C(s),headerMenuHoverBackground:l,headerMenuActiveBackground:u}:{background:s,color:i.isInvalid()?void 0:i.getRGBA(),headerMenuHoverBackground:l,headerMenuActiveBackground:u}};const ZI=(e,t,r,n=()=>!1)=>{const{qHyperCube:{qColumnOrder:o,qDimensionInfo:i,qMeasureInfo:a}}=e,s=i.length+a.length,l=((e,t,r)=>{const n=t.length,{visible:o,hiddenDim:i,hiddenMea:a}=e.reduce((e,o)=>{const i=o<n,{qError:a}=i?t[o]:r[o-n];return 7005===a?.qErrorCode?i?e.hiddenDim.push(o):e.hiddenMea.push(o):e.visible.push(o),e},{visible:[],hiddenDim:[],hiddenMea:[]});return o.map((e,t)=>{const r=e<n,o=(r?i:a).filter(t=>t<e).length,s=e-o;return{colIdx:e,pageColIdx:t,visibleDimInfoIdx:r?s:void 0,visibleMeasureInfoIdx:r?void 0:s-n}})})(o.length===s?o:Array.from(Array(s).keys()),i,a);return l.map(o=>function(e,t,r,n,o=()=>!1){const{qDimensionInfo:i,qMeasureInfo:a,qEffectiveInterColumnSortOrder:s}=e.qHyperCube,{colIdx:l,pageColIdx:u,visibleDimInfoIdx:c,visibleMeasureInfoIdx:d}=t,p=i.length,f=l<p,h=f?i[l]:a[l-p],m=f&&i[l].qGrouping===EE.Cyclic,g=l===s[0];let b,v,y="",x=!1,S=-1,w=0,C=[];const{representation:E,conditionalColoring:R}=h;if(f&&void 0!==c){const e=h;y=e.qGroupFieldDefs[e.qGroupPos],w=e.qGroupPos,C=e.qGroupFallbackTitles,x=e.qLocked??!1,S=c,({qDimensionType:b}=e)}else({qMiniChart:v}=h);const{qFallbackTitle:A,textAlign:M,qAttrExprInfo:P,qSortIndicator:I,qReverseSort:k,qApprMaxGlyphCount:D,columnWidth:T,qLibraryId:O,headerColor:L}=h;return{isDim:f,isCyclic:m,isLocked:x,fieldId:y,colIdx:l,qLibraryId:O,pageColIdx:u,qApprMaxGlyphCount:D,qReverseSort:k,columnWidth:T??{type:SE.Auto},selectionColIdx:S,isActivelySorted:g,id:BI(h),label:A??"",groupDimensionPos:w,groupDimensionLabels:C,qAttrExprInfoIDs:P.map(e=>e.id),qAttrExprInfoIndex:HI(h),sortDirection:I&&"N"!==I?I:"A",totalInfo:GI(e,f,u,d??-1),...!f&&{isTotalNumeric:YI(e,d??-1)},...KI(M,b,f,r,n),representation:E,conditionalColoring:f?void 0:R,qMiniChart:v,headerColor:o("VNA-626-TABLE_HEADER_COLOR_BY_EXPRESSION")?JI(L,r):void 0}}(e,o,t,r,n))},QI=(e,t,r)=>(e?void 0:r.nullValueRepresentation?.text)??t.qText??"-",ek=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,tk={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},rk=lR(e=>{const t=e(nk),r=e(IR),n=e($I),o=r.qHyperCube.qSize.qcy,i=n.visibleHeight??t.rowsPerPage,a=n.visibleTop??t.page*i,s=n.visibleHeight??Math.min(i,o-a),l=r.qHyperCube.qSize.qcx;return t.page>0&&a>=o?{...t,page:0}:s*l>WI?{...t,rowsPerPage:VI(l,t.rowsPerPageOptions),page:0}:t}),nk=lR(tk),ok=lR(e=>{const t=e(IR),r=e(JR),n=e($I);return GR(t,r)?{page:n.page||tk.page,rowsPerPage:n.rowsPerPage||tk.rowsPerPage,rowsPerPageOptions:tk.rowsPerPageOptions}:e(rk)},(e,t,r)=>{t(nk,e=>({...e,...r}))}),ik=!0,ak=lR(async e=>{const t=e(IR),r=e(JR),n=e(KR),{page:o,rowsPerPage:i}=e(ok),a=e($I),s=e(rA),l=e(AR),u=e(DR),c=e(MR),d=t.qHyperCube.qSize.qcx,p=t.qHyperCube.qSize.qcy,f=Math.ceil(p/i),h=a.visibleTop??o*i,m=a.visibleHeight??Math.min(i,p-h),g=p>10,b=UI(t,r),v=ZI(t,ik,n,c),y=await(async(e,t,r)=>{if(t.snapshotData)return t.qHyperCube.qDataPages;const n=t.qHyperCube.qDataPages.at(0),o=n?.qArea;return n&&o?.qLeft===r.qLeft&&o.qTop===r.qTop&&o.qWidth===r.qWidth&&o.qHeight>=r.qHeight?[{...n,qMatrix:n.qMatrix.slice(0,r.qHeight)}]:e&&"getHyperCubeData"in e?e.getHyperCubeData("/qHyperCubeDef",[r]):[]})(s,t,{qLeft:0,qTop:h,qHeight:m,qWidth:d});u||(a.qTop=h,a.qHeight=m,a.rowsPerPage=i,a.page=o);const x=y.at(0)?.qMatrix.map((e,r)=>{const o=[];return v.forEach((i,a)=>{const s=e[a],u=QI(i.isDim,s,t),c=!i.isDim&&s.qIsNull,d=c?nP(u):rP(s);o[a]={id:WA(),...s,align:XI(d,i.bodyTextAlign,n,ik),rowIdx:r+h,colIdx:i.colIdx,pageRowIdx:r,pageColIdx:a,selectionColIdx:i.selectionColIdx,isSelectable:i.isDim&&!i.isLocked,isLastRow:r===m-1,isNumeric:d,isNull:(!c||!d)&&ek(s,i.isDim),representation:NI({cell:s,representationProperties:i.representation,attrExprInfoIndex:i.qAttrExprInfoIndex,env:l,conditionalColoring:i.conditionalColoring,miniChartOnMeasure:i.qMiniChart,getText:()=>c?u:s.qText,direction:n,enabledFeatures:{[JA.Image]:!0,[JA.Indicator]:!0,[JA.MiniChart]:!0}})}}),o})??[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:x}}),sk=FI(ak,e=>e),lk=25e4,uk=lR(e=>{const t=e(IR),r=e(JR),n=e($R),o=e(KR),i=e(MR),a=ZI(t,false,o,i),s=UI(t,r),l=t.qHyperCube.qSize.qcy,u=Math.min(lk,l),c=l>lk&&!!n.active;return{totalsPosition:s,columns:a,rows:[],totalRowCount:l,totalColumnCount:t.qHyperCube.qSize.qcx,totalPages:Math.ceil(l/u),paginationNeeded:c}}),ck={totalsPosition:{atTop:!1,atBottom:!1},columns:[],rows:[],totalRowCount:0,totalColumnCount:0,totalPages:0,paginationNeeded:!1},dk=lR(),pk=lR(e=>{const t=e(QR),r=e(dk);return r||(t?e(sk)??ck:e(uk))}),fk=lR(e=>e(pk).totalsPosition),hk=lR(e=>e(pk).columns),mk=lR(e=>e(hk).length),gk=lR(e=>e(pk).rows),bk=lR(e=>e(pk).totalRowCount),vk=lR(e=>e(pk).totalColumnCount),yk=lR(e=>e(pk).paginationNeeded),xk=lR(e=>{const t=e(lA),r=e(dA),n=e(IR),o=e(fk),i=e(gk),a=o.atTop,s=function(e,t,r,n){const o=$P(e)?.content,i=HP("content",t,o);i.background=t.background.color;const a=FP(i.fontSize,r,n),s=o?.hoverColor,l=o?.hoverFontColor,u=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),c=t.getStyle("object","","straightTableV2.content.hover.color"),d=jP(l)||!!c,p=jP(s)||!!u,f=d||p;let h;h=jP(s)?_P(FC.HOVER,t,s):u||(d?"":FC.HOVER);const m=f?_P($C(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(n,r,i.length,t),l=BP(n,r,!a),u=function(e,t,r){const n=$P(e)?.content,o=HP("content",t,n),{borderBottomColor:i,borderTopColor:a,background:s}=BP(e,t,r);return{...o,borderBottomColor:i,background:s,borderTopColor:a}}(n,r,a);return{body:s,head:l,totals:u}}),Sk=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},wk=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=Sk(e,t?.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},Ck=(e,t,r,n=FC.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=wk(e,t,r);return XC(i,o,a,n)??n},Ek=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return hP}},Rk=e=>e?.some(e=>"italic"===e)?"italic":"normal",Ak=(e,t)=>void 0===e?t:e.some(e=>"bold"===e)?mP:"normal",Mk=e=>!1===e?1:3,Pk=e=>parseInt(e??bP.fontSize,10)*fP,Ik=e=>e?.some(e=>"underline"===e)?"underline":"none",kk=lR(e=>{const t=e(JR),r=e(QR),n=e(dA),o=e(IR),i=e(xk),{header:a,dimensionValues:s,measureValues:l,totalValues:u,nullValues:c,grid:d,content:p}=$P(o)??{},f=r?FC.WHITE:FC.TRANSPARENT,h=Ck(n,a,"object.straightTableV2.dimension.label.name.backgroundColor",f),m=t?.maxLineCount??p?.rowHeight??n.getStyle("object.straightTableV2","grid","lineClamp"),g={header:{fontFamily:a?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.name","fontFamily")??i.head.fontFamily??gP,fontSize:Ek(a?.fontSize??n.getStyle("object.straightTableV2.dimension","label.name","fontSize")??i.head.fontSize),fontStyle:Rk(a?.fontStyle),fontWeight:Ak(a?.fontStyle,mP),textDecoration:Ik(a?.fontStyle),color:Sk(n,a?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.name","color")??i.head.color??FC.TEXT,background:h},headerMenuHoverBackground:BC(h,wE),headerMenuActiveBackground:BC(h,CE),dimension:{values:{fontFamily:s?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??i.body.fontFamily??gP,fontSize:Ek(s?.fontSize??p?.fontSize??n.getStyle("object.straightTableV2.dimension","label.value","fontSize")??i.body.fontSize),fontStyle:Rk(s?.fontStyle),fontWeight:Ak(s?.fontStyle,"normal"),textDecoration:Ik(s?.fontStyle),color:Sk(n,s?.fontColor)??Sk(n,p?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.value","color")??i.body.color??FC.TEXT,background:wk(n,s,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??i.body.background??FC.TRANSPARENT}},measure:{values:{fontFamily:l?.fontFamily??n.getStyle("object.straightTableV2.measure","label.value","fontFamily")??i.body.fontFamily??gP,fontSize:Ek(l?.fontSize??p?.fontSize??n.getStyle("object.straightTableV2.measure","label.value","fontSize")??i.body.fontSize),fontStyle:Rk(l?.fontStyle),fontWeight:Ak(l?.fontStyle,"normal"),textDecoration:Ik(l?.fontStyle),color:Sk(n,l?.fontColor)??Sk(n,p?.fontColor)??n.getStyle("object.straightTableV2.measure","label.value","color")??i.body.color??FC.TEXT,background:wk(n,l,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??i.body.background??FC.TRANSPARENT}},totalRow:{fontFamily:u?.fontFamily??n.getStyle("object.straightTableV2.total","label.value","fontFamily")??i.totals.fontFamily??gP,fontSize:Ek(u?.fontSize??p?.fontSize??n.getStyle("object.straightTableV2.total","label.value","fontSize")??i.totals.fontSize),fontStyle:Rk(u?.fontStyle),fontWeight:Ak(u?.fontStyle,mP),textDecoration:Ik(u?.fontStyle),color:Sk(n,u?.fontColor)??Sk(n,p?.fontColor)??n.getStyle("object.straightTableV2.total","label.value","color")??i.totals.color??FC.TEXT,background:Ck(n,u,"object.straightTableV2.total.label.value.backgroundColor",f)},nullValues:{fontStyle:Rk(c?.fontStyle),fontWeight:Ak(c?.fontStyle,"normal"),textDecoration:Ik(c?.fontStyle),color:Sk(n,c?.fontColor)??Sk(n,p?.fontColor)??n.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??FC.TEXT,background:Sk(n,c?.background)??n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??FC.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:m??Mk(o.multiline?.wrapTextInCells),headerLineClamp:Mk(o.multiline?.wrapTextInHeaders),border:Sk(n,d?.border)??n.getStyle("object.straightTableV2","grid","borderColor")??(n.background.isDark?FC.DARK_MODE_BORDER:FC.BORDER_MEDIUM),divider:Sk(n,d?.divider)??n.getStyle("object.straightTableV2.grid","","divider.borderColor")??FC.BORDER_HEAVY,hoverColors:{color:Sk(n,p?.hoverFontColor)??n.getStyle("object.straightTableV2","","grid.hover.color")??i.body.hoverColors?.color,background:Sk(n,p?.hoverColor)??n.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??i.body.hoverColors?.background},zebraStripes:{show:!!d?.zebraStripes?.show,odd:{color:Sk(n,d?.zebraStripes?.color?.odd),background:Sk(n,d?.zebraStripes?.background?.odd)},even:{color:Sk(n,d?.zebraStripes?.color?.even),background:Sk(n,d?.zebraStripes?.background?.even)},overrideNullValueBackground:void 0===Sk(n,c?.background),overrideNullValueColor:void 0===Sk(n,c?.fontColor)},lastRowBottomBorder:i.body.lastRowBottomBorder},selectedColors:HC(n),headerMinRowHeight:0,totalRowLineHeight:0,totalRowMinHeight:0,contentLineHeight:0,contentMinRowHeight:0,contentStaticLineCount:m},{headerMinRowHeight:b,totalRowLineHeight:v,totalRowMinHeight:y,contentLineHeight:x,contentMinRowHeight:S}=(e=>{const t=Math.max(Pk(e.header.fontSize)+8,32),r=Pk(e.totalRow.fontSize),n=Math.max(r+8+1,24),o=Math.max(Pk(e.dimension.values.fontSize),Pk(e.measure.values.fontSize)),i=(e.contentStaticLineCount||1)*o;return{headerMinRowHeight:t,totalRowLineHeight:r,totalRowMinHeight:n,contentLineHeight:o,contentMinRowHeight:Math.max(i+8+1,24)}})(g);return g.headerMinRowHeight=b,g.totalRowLineHeight=v,g.totalRowMinHeight=y,g.contentLineHeight=x,g.contentMinRowHeight=S,g}),Dk=(e,t,r)=>{if(!e.length)return[];const n=[],o=[];let i=t;if(e.forEach((e,a)=>{const{columnWidth:{type:s,pixels:l,percentage:u},label:c,qApprMaxGlyphCount:d,totalInfo:p}=e;let f=0;const h=()=>{n[a]=Math.min(xE.PixelsMax,Math.max(xE.PixelsMin,f)),i-=n[a]};switch(s){case SE.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?xE.PixelsDefault:+e)(l),h();break;case SE.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?xE.PercentageDefault:+e)(u)/100*t,h();break;case SE.FitToContent:e.representation?.type===JA.Image?o.push(a):(f=r(c,p,d,e.isLocked,e.isActivelySorted,e.isDim,e.isCyclic),h());break;case SE.Auto:o.push(a);break;default:throw new Error(`${s} is not a valid column width type`)}}),o.length){const e=i/o.length;o.forEach(t=>{n[t]=Math.max(xE.AutoMinTable,e)})}return n},Tk=lR(e=>{const t=e(kk),r=e(pk).totalsPosition,n=e(NR),{measureText:o}=e(WM({...t.header,fontWeight:mP})),{measureText:i}=e(WM({...t.totalRow,fontWeight:mP})),{estimateWidth:a}=e(WM(t.dimension.values)),{estimateWidth:s}=e(WM(t.measure.values)),l=r.atBottom||r.atTop;return(e,t,r,u,c,d,p)=>{let f=0;if(n){const t=4;let r=25;r+=t+24,u&&(r+=20+t),c&&(r+=20),f=o(e)+r}else{let t=9;t+=16,p&&(t+=AP),t+=AP,t+=AP,f=o(e)+t}const h=d?a:s;return Math.max(f,l?i(t)+24+1:0,h(r))}}),Ok=lR(null),Lk=lR(e=>{const t=e(pk),r=e(sA).width,n=e(qP),o=e(Tk);return Dk(t.columns,r-n,o)}),qk=lR(e=>e(Ok)??e(Lk),(e,t,r)=>{t(Ok,r)}),Nk=UM(e=>{const t=e(KM);!1===e(OP)&&t.emit("done-adjusting-column-width")}),jk=UM((e,t)=>{e(IR),t(Ok,null)}),_k=({children:e})=>(xR(jk),xR(Nk),e);function zk(e){const t=_C();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),Vu({...t,direction:e})}const Fk={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},$k={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},Hk=Pc("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})(({isLastColumn:e,hoverColor:t,dir:r})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===r?"-4px":void 0,touchAction:"none",cursor:"col-resize",pointerEvents:"auto",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",outline:"none",appearance:"none",WebkitAppearance:"none",backgroundColor:"transparent","&::-webkit-slider-runnable-track":{...Fk},"&::-moz-range-track":{...Fk},"&::-ms-track":{...Fk},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...$k},"&::-moz-range-thumb":{...$k},"&::-ms-thumb":{...$k},"&:hover:not(:focus, :active)":{"&::after":{backgroundColor:t||"#D9D9D9","@media (hover: none)":{backgroundColor:"none"}}},"&:focus-visible, &:active":{"&::after":{backgroundColor:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}},"&::after":{content:'""',height:"100%",width:"3px",position:"absolute"}})),Bk=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:s,setIsAdjustingWidth:l,isLeftColumn:u,accessibilityRelatedArgs:c,direction:d="ltr"})=>{const p=dE({translator:c.translator}),f=P({initWidth:e,columnWidth:e,initX:0}),h=r?0:1,m=n&&!u,g=()=>m?f.current.columnWidth-h:"100%",b={left:"rtl"!==d?g():void 0,right:"rtl"===d?g():void 0},v=t=>{f.current={initWidth:e,columnWidth:e,initX:t??f.current.initX}};uE(()=>{m&&v()},[e]);const y=e=>{const t=Math.max(e,xE.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:SE.Pixels,pixels:f.current.columnWidth};a(e)}l?.(!1)},S=e=>{const t="rtl"===d?f.current.initWidth+f.current.initX-e.clientX:f.current.initWidth+e.clientX-f.current.initX;y(t)},w=e=>{GC(e),document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",w),x()},C=e=>{const t="rtl"===d?f.current.initWidth+-f.current.initX-e.touches[0].clientX:f.current.initWidth+e.touches[0].clientX-f.current.initX;y(t)},E=e=>{GC(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E),x()},R=!n&&s?e=>{if(e.key===vE.Left||e.key===vE.Right){GC(e);const t=5,r=e.key===vE.Left?t:-t,n="rtl"===d?r:-r;l?.(!0),y(f.current.columnWidth+n)}else e.key===vE.Space||e.key===vE.Enter?(GC(e),s(e),l?.(!1),x()):e.key===vE.Esc&&(GC(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,A=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return ur.jsx(Hk,{style:b,hoverColor:o,isLastColumn:r,className:yE,"data-testid":yE,onMouseDown:e=>{GC(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),l?.(!0),v(e.clientX)},onDoubleClick:()=>{a({type:SE.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(GC(e),document.addEventListener("touchmove",C),document.addEventListener("touchend",E),l?.(!0),v(e.touches[0].clientX))},onKeyDown:R,onBlur:s,onFocus:()=>{v()},type:"range",tabIndex:-1,"aria-label":A,"aria-valuemin":xE.PixelsMin,"aria-valuemax":xE.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},Wk=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})})),Vk=({model:e,headerData:t})=>{if(e&&"setActiveField"in e&&void 0!==t.dimensionInfoIndex){const r=t.dimensionInfoIndex;return async t=>{try{await e.setActiveField("/qHyperCubeDef",r,t)}catch(e){console.error(e)}}}return null},Uk=Pc(vp,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e&&"isAccessibleHeader"!==e})(({rightAligned:e,shouldShowMenuIcon:t,isAccessibleHeader:r})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:r?24:void 0,display:t?"flex":"none",fontWeight:"bold",width:r?"100%":void 0,alignItems:"center",justifyContent:"center"})),Gk=Pc(Wk,{shouldForwardProp:e=>"isInteractionsActive"!==e})(({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"})),Yk=Pc(eh)(({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}})),Kk=Pc(Xp)(({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}})),Xk=Pc(ih)(({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)})),Jk=Pc(ih,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})(({theme:e,isSubMenu:t,isActive:r})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden",boxSizing:"border-box !important",background:r?"rgba(0, 0, 0, 0.05)":"transparent"})),Zk=Pc("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:r})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:r||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"})),Qk=Pc("div")(()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"})),eD=Pc(Ld)(()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"})),tD=Pc(Mf,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:r})=>({width:16,minWidth:"unset !important",marginRight:r||"rtl"!==t?e.spacing(1.5):0,marginLeft:r||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0})),rD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})})),nD=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?nD(t):t:e.parentElement?.children?.[0]},oD=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?oD(t):t},iD=e=>{const{key:t,currentTarget:r}=e,n=document.activeElement??r;if(t===vE.Down||t===vE.Up){const r=e=>t===vE.Down?nD(e):oD(e);e.preventDefault(),e.stopPropagation();let o=r(n);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=r(o)}}},aD=(e,t)=>e.map(e=>e.map(e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map(({onClick:e,...r})=>({...r,...e?{onClick:async r=>{Object.entries(t).forEach(([,e])=>{e(!1)}),await e(r)}}:{}}))})));let sD={};const lD=({autoFocus:e,id:t,onClick:r,itemTitle:n,icon:o,enabled:i,subMenus:a,isSubMenu:s,isActive:l,direction:u,isPagination:c})=>{const[d,p]=M(!1),f=S.useRef(null),h=O(e=>{e.stopPropagation(),p(!1)},[p]);return ur.jsxs(ur.Fragment,{children:[ur.jsxs(Jk,{ref:a?f:null,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(r&&(await r(e),sD={}),a?.length&&(p(!0),sD[n]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:iD,children:[l?ur.jsx(Zk,{direction:u,isPagination:c}):null,ur.jsxs(Qk,{children:[ur.jsx(tD,{direction:u,isPagination:c,children:ur.jsx(o,{})}),ur.jsx(eD,{variant:"body2",children:n})]}),a?.length?ur.jsx(rD,{}):null]},t),a?.length?ur.jsx(pD,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:h,menuGroups:aD(a,sD),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:u,isPagination:c}):null]})},uD=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(e=>[[e.groupHeading&&ur.jsx(Xk,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map(e=>ur.jsx(lD,{...e,isSubMenu:t,direction:r,isPagination:n},e.id))].filter(Boolean)]),cD=({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((o,i)=>[uD({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?ur.jsx(Kk,{"data-testid":"group-divider",variant:"middle"}):void 0]),dD={appear:0,enter:0,exit:0},pD=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?ur.jsx(Yk,{className:mE,open:t,anchorEl:e,onClose:r,transitionDuration:dD,MenuListProps:{id:gE},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:cD({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})}):null,fD=({qLibraryId:e,fieldId:t,searchRelatedArgs:r,selectionRelatedArgs:n,direction:o,onPopoverClose:i})=>O(()=>{const a=e?{qLibraryId:e,type:"dimension"}:t;if(r?.embed){const{embed:e,listboxRef:t}=r;e.__DO_NOT_USE__.popover(t.current,a,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===o?"right":"left"},sortCriteria:r.sortCriteria,stateName:n?.qStateName,direction:o,onPopoverClose:i})}},[e,t,r,n?.qStateName,o,i]),hD=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),mD=(e,t)=>e.some(e=>t[e]>0),gD={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},bD=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=M(null),[a,s]=M(gD);return uE(()=>{e||(s(gD),i(null))},[e]),D(()=>{if(!n?.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{const e=hD(t,r),u=await n.createSessionObject(e),c=await u.getLayout(),{qStateCounts:d}=c.qListObject?.qDimensionInfo??{};o=c.qInfo?.qId,a?l():(i(u),d&&s((e=>({canSelectAll:mD(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:mD(["qSelected"],e),canSelectPossible:mD(["qOption"],e),canSelectAlternative:mD(["qAlternative"],e),canSelectExcluded:mD(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}},[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},vD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"})})),yD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm9 1.5H6v-1h4zm5.354-8.646L12.707 10l2.646 2.646-.707.707L12 10.708l-2.646 2.646-.708-.707L11.293 10 8.646 7.354l.708-.708L12 9.293l2.646-2.647zM1 10H0V6h1zm2-9H1.5a.5.5 0 0 0-.5.5V3H0V1.5A1.5 1.5 0 0 1 1.5 0H3zm11.5-1A1.5 1.5 0 0 1 16 1.5V3h-1V1.5a.5.5 0 0 0-.5-.5H13V0zM10 1H6V0h4z"})})),xD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707zM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2z"})})),SD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"})})),wD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.455.858v6.484a1 1 0 0 1-.577.906L8.5 14.663V7.17z"})})),CD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8z"})})),ED=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8zM8.5 4v8h-1V4z"})})),RD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7"})})),AD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"})})),MD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4zm12-4a1 1 0 0 1 .993.883L16 1v10a1 1 0 0 1-.883.993L15 12H5a1 1 0 0 1-.993-.883L4 11V1a1 1 0 0 1 .883-.993L5 0zm0 1H5v10h10zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28z"})})),PD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8l8-8zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})})),ID=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})})),kD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8h8V4zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})})),DD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"})}));let TD=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const OD="/qListObjectDef",LD=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:s,selectionActionsEnabledStatus:l,anchorRef:u,focusColumnAdjuster:c,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(r[TD.Sorting]){const{isActivelySorted:r,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:s}=(({isActivelySorted:e,sortDirection:t,isPivot:r,isSortedByFirstMeasure:n})=>{let o=!r&&!e||"D"===t,i=!r&&!e||"A"===t;return n&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"A")),n(!1)},icon:vD,enabled:a,isActive:!!r&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"D")),n(!1)},icon:SD,enabled:s,isActive:!!r&&"D"===i,autoFocus:!a&&s}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:RD,subMenus:[[{items:e.groupDimensionLabels.map((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:wD,isActive:e.groupDimensionPos===r}))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];r[TD.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:AD,enabled:!0}]}]),!e.isLocked&&r[TD.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:DD,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAll(OD))},icon:MD,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectPossible(OD))},icon:kD,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAlternative(OD))},icon:PD,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectExcluded(OD))},icon:ID,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.clearSelections(OD))},icon:yD,enabled:l.canClearSelections}]}]]}]}]),p&&!p.alwaysFullyExpanded&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.expandCallback()},icon:ED,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:CD,enabled:!0}]}]),o.length>0&&f.push(...o)}return r[TD.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),c?.(u)},icon:xD,enabled:!0}]}]),f},qD=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,menuAvailabilityFlags:a,shouldShowMenuIcon:s=!0,sortRelatedArgs:l,searchRelatedArgs:u,selectionRelatedArgs:c,adjustHeaderSizeRelatedArgs:d,expandOrCollapseArgs:p,model:f,direction:h="ltr",isPagination:m,isAccessibleHeader:g,iconSize:b=pE})=>{const v=P(null),y=dE({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:w}=n,C=c?.app,{fieldInstance:E,selectionActionsEnabledStatus:R}=bD({open:e,headerData:n,app:C,qStateName:c?.qStateName}),A=Vk({model:f,headerData:n}),M=fD({qLibraryId:x,fieldId:S,searchRelatedArgs:u,selectionRelatedArgs:c,direction:h}),I=O(e=>{e.stopPropagation(),t(!1)},[t]),k=O(e=>{e.stopPropagation(),t(e=>!e)},[t]);return i.active?ur.jsxs(Uk,{rightAligned:"right"===w,shouldShowMenuIcon:s,className:hE,onClick:!1===g?k:void 0,ref:v,isAccessibleHeader:g,children:[s?ur.jsx(Gk,{height:b,className:fE,"data-testid":fE,isInteractionsActive:i.active??!1,children:ur.jsx(Wk,{})}):null,ur.jsx(pD,{open:e,anchorEl:!1===g?v.current:r.current,onClose:I,menuGroups:LD({headerData:n,translator:y,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:M,interactions:i,fieldInstance:E,selectionActionsEnabledStatus:R,anchorRef:r,focusColumnAdjuster:d?.focusColumnAdjuster,setActiveFieldCallback:A,expandOrCollapseArgs:p}),direction:h,isPagination:m})]}):null},ND=e=>e.isDark?{background:e.color,borderColor:FC.DARK_MODE_BORDER,color:FC.DARK_MODE_TEXT,disabledColor:FC.DARK_MODE_DISABLED,iconColor:FC.DARK_MODE_TEXT}:{background:e.color,borderColor:FC.BORDER_MEDIUM,color:FC.TEXT,disabledColor:FC.DISABLED},jD=Pc(vp,{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}`})),_D=Pc(zh,{shouldForwardProp:e=>"footerStyle"!==e})(({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}})),zD=Pc(Pp,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})(({disabledCondition:e,footerStyle:t,theme:r})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:r.spacing(1)})),FD=Pc(Ld)(({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)})),$D=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=A(()=>ND(n.background),[n]);if(!r.active)return null;const a=o?ur.jsx(jD,{footerStyle:i,children:e}):null;return t?B.createPortal(e,t):a},HD=I({}),BD=()=>L(HD),WD=({children:e,direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:h,layout:m,visibilityThreshold:g})=>{const b=(e=>!e.enabled||e.active)(c)?0:-1,v=A(()=>ND(p.background),[p]),y=o?o.getBoundingClientRect().width:h.width,x=dE({translator:d}),S=A(()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:x,theme:p,interactions:f,rect:h,layout:m,footerStyle:v,tabIndex:b,width:y,visibilityThreshold:g}),[t,r,n,o,i,a,s,l,u,c,x,p,f,h,m,v,b,y,g]);return ur.jsx(HD.Provider,{value:S,children:e})};let VD=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),UD=function(e){return e[e.DisplayedRowsLabel=250]="DisplayedRowsLabel",e[e.FirstPage=350]="FirstPage",e[e.LastPage=350]="LastPage",e[e.RowsPerPage=550]="RowsPerPage",e[e.SelectPage=700]="SelectPage",e}({});const GD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})})),YD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})})),KD=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})})),XD={FirstPage:YD,PreviousPage:GD,NextPage:rD,LastPage:KD,FirstPageRTL:KD,PreviousPageRTL:rD,NextPageRTL:GD,LastPageRTL:YD},JD=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=BD(),u=r.concat("rtl"===n?"RTL":""),c=XD[u];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${r}`),title:s.passive?a.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:l,onClick:e?void 0:()=>{i(t)}},IconComponent:c}},ZD=()=>{const{pageInfo:e,width:t,interactions:r,visibilityThreshold:n}=BD(),o=0===e.page,{IconComponent:i,styledProps:a}=JD({type:VD.FirstPage,disabledCondition:o,pageNumber:0});return t<=(n?.firstPage||UD.FirstPage)?null:ur.jsx(zD,{...a,disabled:!r.active,children:ur.jsx(i,{height:pE})})},QD=(e,t,r=!1)=>{r&&e.key===vE.Tab&&!e.shiftKey&&(GC(e),UC(e.target,t,!1))},eT=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i,visibilityThreshold:a}=BD(),s=e.page>=r-1,{IconComponent:l,styledProps:u}=JD({type:VD.LastPage,disabledCondition:s,pageNumber:r-1}),c=t.enabled?e=>{QD(e,t,n)}:void 0;return o<=(a?.lastPage||UD.LastPage)?null:ur.jsx(zD,{...u,onKeyDown:c,disabled:!i.active,children:ur.jsx(l,{height:pE})})},tT=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=BD(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=JD({type:VD.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(o>UD.FirstPage&&o>UD.LastPage)&&t.enabled?e=>{QD(e,t,n)}:void 0;return ur.jsx(zD,{...l,onKeyDown:u,disabled:!i.active,children:ur.jsx(s,{height:pE})})},rT=()=>{const{pageInfo:e,interactions:t}=BD(),r=0===e.page,{IconComponent:n,styledProps:o}=JD({type:VD.PreviousPage,disabledCondition:r,pageNumber:e.page-1});return ur.jsx(zD,{...o,disabled:!t.active,children:ur.jsx(n,{height:pE})})},nT=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n,visibilityThreshold:o}=BD(),{page:i,rowsPerPage:a}=r;if(t<=(o?.displayedRowsLabel||UD.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,n)}`,n.toString()]);return ur.jsx(FD,{variant:"caption",dir:"ltr",children:s})},oT=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=BD(),u=o.qInfo.qId,c=a.get(`NebulaTableUtils.Pagination.${e}`),d=`${e}-dropdown`,p=`${d}-label-${u}`,f={tabIndex:s,id:`${d}-${u}`,"data-testid":d,"aria-labelledby":p};return ur.jsxs(ur.Fragment,{children:[ur.jsxs(FD,{variant:"caption",id:p,children:[c,":"]}),ur.jsx(_D,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:f,disabled:!l.active,children:r})]})},iT=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:r,width:n,handleChangeRowsPerPage:o,visibilityThreshold:i}=BD();if(!(!!e.rowsPerPageOptions?.length&&!t&&n>(i?.rowsPerPage||UD.RowsPerPage)&&r<=100)||void 0===e.rowsPerPageOptions)return null;const a=ur.jsx(ur.Fragment,{children:e.rowsPerPageOptions.map(e=>ur.jsx("option",{value:e,children:e},e))});return ur.jsx(oT,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},aT=1e3,sT="…",lT=({totalPages:e,page:t})=>{const r=Math.min(e,aT),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-aT):0,a=Array.from(Array(r).keys()).map(e=>{const t=e+i;return ur.jsx("option",{value:t,children:t+1},t)});return i>0&&a.unshift(ur.jsx("option",{value:sT,disabled:!0,children:sT},"startMoreOptions")),o<e-1&&a.push(ur.jsx("option",{value:sT,disabled:!0,children:sT},"endMoreOptions")),ur.jsx(ur.Fragment,{children:a})},uT=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n,visibilityThreshold:o}=BD(),{page:i}=e;if(t<=(o?.selectPage||UD.SelectPage))return null;const a=ur.jsx(lT,{totalPages:r,page:i});return ur.jsx(oT,{name:"SelectPage",value:i,options:a,handleChange:e=>{n(+e.target.value)}})};var cT=N(e=>ur.jsxs(WD,{...e,children:[ur.jsx(iT,{}),ur.jsx(uT,{}),ur.jsx(nT,{}),ur.jsx(ZD,{}),ur.jsx(rT,{}),ur.jsx(tT,{}),ur.jsx(eT,{})]}));const dT=e=>ur.jsx($D,{...e,children:ur.jsx(cT,{...e})}),pT=(e,t,r)=>{const n=r.size,o=n>=t.size;if(n){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===n?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",n.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},fT=(e,t,r)=>{r&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},hT=e=>e.ctrlKey||e.metaKey,mT=e=>e.shiftKey&&hT(e),gT=e=>[vE.Left,vE.Right,vE.Up,vE.Down].includes(e),bT=e=>e.shiftKey&&gT(e.key),vT=e=>(e=>gT(e)||[vE.Home,vE.End,vE.PageUp,vE.PageDown].includes(e))(e.key)&&!mT(e),yT=(e,t)=>{const{api:r,rows:n,colIdx:o}=e,{cell:i,announce:a,evt:s}=t;let l=new Map;if(-1===o)r?.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;l=new Map(n)}return l=((e,t,r)=>{const{qElemNumber:n,rowIdx:o}=t;return r.ctrlKey||r.metaKey?(new Map).set(n,o):(e.has(n)?e.delete(n):e.set(n,o),new Map(e))})(l,i,s),pT(a,n,l),l.size?(r?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(l.values()),[i.selectionColIdx]]}),{...e,rows:l,colIdx:i.selectionColIdx}):(r?.cancel(),{...e,rows:l,colIdx:-1})},xT=(e,t)=>{const{api:r,rows:n,colIdx:o,pageRows:i,firstCell:a}=e,{cell:s,announce:l,evt:u}=t;if(!(a||"key"in u&&bT(u)))return e;-1===o&&r?.begin(["/qHyperCubeDef"]);const c=((e,t,r,n,o)=>{const i=new Map(t);if("key"in n&&bT(n)){i.set(r.qElemNumber,r.rowIdx);const t=n.key===vE.Down?1:-1,o=e[r.pageRowIdx+t][r.pageColIdx];return i.set(o.qElemNumber,r.rowIdx+t),i}if(!o)return t;const a=Math.min(o.pageRowIdx,r.pageRowIdx),s=Math.max(o.pageRowIdx,r.pageRowIdx);for(let t=a;t<=s;t++){const r=e[t][o.pageColIdx];i.set(r.qElemNumber,r.rowIdx)}return i})(i,n,s,u,a);return pT(l,n,c),{...e,rows:c,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},ST=e=>{const{api:t,rows:r,colIdx:n,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&t?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(r.values()),[n]]}),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},wT=(e,t)=>{switch(t.type){case JM.Select:return yT(e,t.payload);case JM.SelectMouseDown:return((e,{cell:t,mouseupOutsideCallback:r})=>!r||-1!==e.colIdx&&e.colIdx!==t.selectionColIdx?e:(document.addEventListener("mouseup",r),{...e,firstCell:t,mouseupOutsideCallback:r}))(e,t.payload);case JM.SelectMouseUp:return((e,t)=>ST(e.isSelectMultiValues||e.firstCell!==t.cell?e:yT(e,t)))(e,t.payload);case JM.SelectMultiAdd:return xT(e,t.payload);case JM.SelectMultiEnd:return ST(e);case JM.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case JM.Clear:return e.rows.size?{...e,rows:new Map}:e;case JM.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},CT=lR(e=>{const t=e(zR);return function(e,t){return lR(e,function(e,r,n){r(this,t(e(this),n))})}({pageRows:e(pk).rows,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1},wT)}),ET=lR(e=>e(e(CT)),(e,t,r)=>{t(e(CT),r)}),RT=BM(e=>lR(t=>{const{colIdx:r,rows:n,api:o}=t(ET);return"object"==typeof e&&o?.isModal()?r!==e.selectionColIdx?XM.Disabled:n.has(e.qElemNumber)?XM.Selected:XM.Possible:XM.Inactive}),(e,t)=>"object"!=typeof e||"object"!=typeof t?e===t:e.qElemNumber===t.qElemNumber&&e.selectionColIdx===t.selectionColIdx),AT=lR(e=>{const t=e(qk),r=e(sA).width,n=e(qP);return t.length>0&&t.reduce((e,t)=>e+t)+n<r});var MT=Symbol.for("preact-signals");function PT(){if(OT>1)OT--;else{var e,t=!1;for(!function(){var e=jT;for(jT=void 0;void 0!==e;)e.S.v===e.v&&(e.S.i=e.i),e=e.o}();void 0!==TT;){var r=TT;for(TT=void 0,LT++;void 0!==r;){var n=r.u;if(r.u=void 0,r.f&=-3,!(8&r.f)&&HT(r))try{r.c()}catch(r){t||(e=r,t=!0)}r=n}}if(LT=0,OT--,t)throw e}}function IT(e){if(OT>0)return e();NT=++qT,OT++;try{return e()}finally{PT()}}var kT=void 0;function DT(e){var t=kT;kT=void 0;try{return e()}finally{kT=t}}var TT=void 0,OT=0,LT=0,qT=0,NT=0,jT=void 0,_T=0;function zT(e){if(void 0!==kT){var t=e.n;if(void 0===t||t.t!==kT)return t={i:0,S:e,p:kT.s,n:void 0,t:kT,e:void 0,x:void 0,r:t},void 0!==kT.s&&(kT.s.n=t),kT.s=t,e.n=t,32&kT.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=kT.s,t.n=void 0,kT.s.n=t,kT.s=t),t}}function FT(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function $T(e,t){return new FT(e,t)}function HT(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function BT(e){for(var t=e.s;void 0!==t;t=t.n){var r=t.S.n;if(void 0!==r&&(t.r=r),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function WT(e){for(var t=e.s,r=void 0;void 0!==t;){var n=t.p;-1===t.i?(t.S.U(t),void 0!==n&&(n.n=t.n),void 0!==t.n&&(t.n.p=n)):r=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=n}e.s=r}function VT(e,t){FT.call(this,void 0),this.x=e,this.s=void 0,this.g=_T-1,this.f=4,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function UT(e,t){return new VT(e,t)}function GT(e){var t=e.m;if(e.m=void 0,"function"==typeof t){OT++;var r=kT;kT=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,YT(e),t}finally{kT=r,PT()}}}function YT(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,GT(e)}function KT(e){if(kT!==this)throw new Error("Out-of-order effect");WT(this),kT=e,this.f&=-2,8&this.f&&YT(this),PT()}function XT(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=null==t?void 0:t.name}function JT(e,t){var r=new XT(e,t);try{r.c()}catch(e){throw r.d(),e}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}FT.prototype.brand=MT,FT.prototype.h=function(){return!0},FT.prototype.S=function(e){var t=this,r=this.t;r!==e&&void 0===e.e&&(e.x=r,this.t=e,void 0!==r?r.e=e:DT(function(){var e;null==(e=t.W)||e.call(t)}))},FT.prototype.U=function(e){var t=this;if(void 0!==this.t){var r=e.e,n=e.x;void 0!==r&&(r.x=n,e.e=void 0),void 0!==n&&(n.e=r,e.x=void 0),e===this.t&&(this.t=n,void 0===n&&DT(function(){var e;null==(e=t.Z)||e.call(t)}))}},FT.prototype.subscribe=function(e){var t=this;return JT(function(){var r=t.value,n=kT;kT=void 0;try{e(r)}finally{kT=n}},{name:"sub"})},FT.prototype.valueOf=function(){return this.value},FT.prototype.toString=function(){return this.value+""},FT.prototype.toJSON=function(){return this.value},FT.prototype.peek=function(){var e=kT;kT=void 0;try{return this.value}finally{kT=e}},Object.defineProperty(FT.prototype,"value",{get:function(){var e=zT(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(LT>100)throw new Error("Cycle detected");!function(e){0!==OT&&0===LT&&e.l!==NT&&(e.l=NT,jT={S:e,v:e.v,i:e.i,o:jT})}(this),this.v=e,this.i++,_T++,OT++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{PT()}}}}),VT.prototype=new FT,VT.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===_T)return!0;if(this.g=_T,this.f|=1,this.i>0&&!HT(this))return this.f&=-2,!0;var e=kT;try{BT(this),kT=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return kT=e,WT(this),this.f&=-2,!0},VT.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}FT.prototype.S.call(this,e)},VT.prototype.U=function(e){if(void 0!==this.t&&(FT.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},VT.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(VT.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=zT(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),XT.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.m=t)}finally{e()}},XT.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,GT(this),BT(this),OT++;var e=kT;return kT=this,KT.bind(this,e)},XT.prototype.N=function(){2&this.f||(this.f|=2,this.u=TT,TT=this)},XT.prototype.d=function(){this.f|=8,1&this.f||YT(this)},XT.prototype.dispose=function(){this.d()};var ZT,QT,eO,tO,rO,nO,oO,iO,aO,sO,lO,uO,cO,dO,pO,fO,hO,mO,gO,bO,vO=Object.create,yO=Object.defineProperty,xO=Object.defineProperties,SO=Object.getOwnPropertyDescriptor,wO=Object.getOwnPropertyDescriptors,CO=Object.getOwnPropertySymbols,EO=Object.prototype.hasOwnProperty,RO=Object.prototype.propertyIsEnumerable,AO=e=>{throw TypeError(e)},MO=(e,t,r)=>t in e?yO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,PO=(e,t)=>yO(e,"name",{value:t,configurable:!0}),IO=["class","method","getter","setter","accessor","field","value","get","set"],kO=e=>void 0!==e&&"function"!=typeof e?AO("Function expected"):e,DO=(e,t,r,n,o)=>({kind:IO[e],name:t,metadata:n,addInitializer:e=>r._?AO("Already initialized"):o.push(kO(e||null))}),TO=(e,t)=>{return MO(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n},OO=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},LO=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=IO[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&SO(d<4?o:{get[r](){return jO(this,i)},set[r](e){return zO(this,i,e)}},r));d?f&&d<4&&PO(i,(d>2?"set ":d>1?"get ":"")+r):PO(o,r);for(var y=n.length-1;y>=0;y--)u=DO(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>NO(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?jO:FO)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>zO(e,o,t,4^d?i:v.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,u),l._=1,4^d||void 0===s?kO(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?AO("Object expected"):(kO(a=s.get)&&(v.get=a),kO(a=s.set)&&(v.set=a),kO(a=s.init)&&g.unshift(a));return d||TO(e,o),v&&yO(o,r,v),f?4^d?i:v:o},qO=(e,t,r)=>t.has(e)||AO("Cannot "+r),NO=(e,t)=>Object(t)!==t?AO('Cannot use the "in" operator on this value'):e.has(t),jO=(e,t,r)=>(qO(e,t,"read from private field"),r?r.call(e):t.get(e)),_O=(e,t,r)=>t.has(e)?AO("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),zO=(e,t,r,n)=>(qO(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),FO=(e,t,r)=>(qO(e,t,"access private method"),r);function $O(e,t){if(t){let r;return UT(()=>{const n=e();return n&&r&&t(r,n)?r:(r=n,n)})}return UT(e)}function HO(e,t){if(Object.is(e,t))return!0;if(null===e||null===t)return!1;if("function"==typeof e&&"function"==typeof t)return e===t;if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;return!e.some((e,r)=>!HO(e,t[r]))}if("object"==typeof e&&"object"==typeof t){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;const o=r.some(r=>!HO(e[r],t[r]));return!o}return!1}function BO({get:e},t){return{init:e=>$T(e),get(){return e.call(this).value},set(t){const r=e.call(this);r.peek()!==t&&(r.value=t)}}}function WO(e,t){const r=new WeakMap;return function(){let t=r.get(this);return t||(t=$O(e.bind(this)),r.set(this,t)),t.value}}function VO(e=!0){return function(t,r){r.addInitializer(function(){const t="field"===r.kind||r.static?this:Object.getPrototypeOf(this),n=Object.getOwnPropertyDescriptor(t,r.name);n&&Object.defineProperty(t,r.name,((e,t)=>xO(e,wO(t)))(((e,t)=>{for(var r in t||(t={}))EO.call(t,r)&&MO(e,r,t[r]);if(CO)for(var r of CO(t))RO.call(t,r)&&MO(e,r,t[r]);return e})({},n),{enumerable:e}))})}}function UO(...e){const t=e.map(e=>JT(e));return()=>t.forEach(e=>e())}nO=[BO],rO=[BO],tO=[BO],eO=[VO()],QT=[VO()],ZT=[VO()];var GO,YO=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,OO(oO,5,this),_O(this,uO),_O(this,iO,OO(oO,8,this)),OO(oO,11,this),_O(this,cO,OO(oO,12,this)),OO(oO,15,this),_O(this,hO,OO(oO,16,this)),OO(oO,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return jO(this,uO,gO)}get initial(){return jO(this,uO,sO)}get previous(){return jO(this,uO,pO)}set current(e){const t=DT(()=>jO(this,uO,gO));e&&t&&this.equals(t,e)||IT(()=>{jO(this,uO,sO)||zO(this,uO,e,lO),zO(this,uO,t,fO),zO(this,uO,e,bO)})}reset(e=this.defaultValue){IT(()=>{zO(this,uO,void 0,fO),zO(this,uO,e,lO),zO(this,uO,e,bO)})}};function KO(e){return DT(()=>{const t={};for(const r in e)t[r]=e[r];return t})}oO=[,,,vO(null)],iO=new WeakMap,uO=new WeakSet,cO=new WeakMap,hO=new WeakMap,aO=LO(oO,20,"#initial",nO,uO,iO),sO=aO.get,lO=aO.set,dO=LO(oO,20,"#previous",rO,uO,cO),pO=dO.get,fO=dO.set,mO=LO(oO,20,"#current",tO,uO,hO),gO=mO.get,bO=mO.set,LO(oO,2,"current",eO,YO),LO(oO,2,"initial",QT,YO),LO(oO,2,"previous",ZT,YO),TO(oO,YO);GO=new WeakMap;var XO,JO,ZO,QO,eL,tL=Object.create,rL=Object.defineProperty,nL=Object.getOwnPropertyDescriptor,oL=Object.getOwnPropertySymbols,iL=Object.prototype.hasOwnProperty,aL=Object.prototype.propertyIsEnumerable,sL=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),lL=e=>{throw TypeError(e)},uL=Math.pow,cL=(e,t,r)=>t in e?rL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,dL=["class","method","getter","setter","accessor","field","value","get","set"],pL=e=>void 0!==e&&"function"!=typeof e?lL("Function expected"):e,fL=(e,t,r,n,o)=>({kind:dL[e],name:t,metadata:n,addInitializer:e=>r._?lL("Already initialized"):o.push(pL(e||null))}),hL=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=dL[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,nL(o,r)),h=n.length-1;h>=0;h--)(l=fL(c,r,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>r in e},u.get=e=>e[r],a=(0,n[h])(f[d],l),s._=1,pL(a)&&(f[d]=a);return f&&rL(o,r,f),o},mL=(e,t,r)=>t.has(e)||lL("Cannot "+r),gL=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,r){return new e(t.x-r.x,t.y-r.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:r}){return new e(t,r)}},bL=class e{constructor(e,t,r,n){this.left=e,this.top=t,this.width=r,this.height=n,this.scale={x:1,y:1}}get inverseScale(){return{x:1/this.scale.x,y:1/this.scale.y}}translate(t,r){const{top:n,left:o,width:i,height:a,scale:s}=this,l=new e(o+t,n+r,i,a);return l.scale=((e,t)=>{for(var r in t||(t={}))iL.call(t,r)&&cL(e,r,t[r]);if(oL)for(var r of oL(t))aL.call(t,r)&&cL(e,r,t[r]);return e})({},s),l}get boundingRectangle(){const{width:e,height:t,left:r,top:n,right:o,bottom:i}=this;return{width:e,height:t,left:r,top:n,right:o,bottom:i}}get center(){const{left:e,top:t,right:r,bottom:n}=this;return new gL((e+r)/2,(t+n)/2)}get area(){const{width:e,height:t}=this;return e*t}equals(t){if(!(t instanceof e))return!1;const{left:r,top:n,width:o,height:i}=this;return r===t.left&&n===t.top&&o===t.width&&i===t.height}containsPoint(e){const{top:t,left:r,bottom:n,right:o}=this;return t<=e.y&&e.y<=n&&r<=e.x&&e.x<=o}intersectionArea(t){return t instanceof e?function(e,t){const r=Math.max(t.top,e.top),n=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-n,s=i-r;if(n<o&&r<i){return a*s}return 0}(this,t):0}intersectionRatio(e){const{area:t}=this,r=this.intersectionArea(e);return r/(e.area+t-r)}get bottom(){const{top:e,height:t}=this;return e+t}get right(){const{left:e,width:t}=this;return e+t}get aspectRatio(){const{width:e,height:t}=this;return e/t}get corners(){return[{x:this.left,y:this.top},{x:this.right,y:this.top},{x:this.left,y:this.bottom},{x:this.right,y:this.bottom}]}static from({top:t,left:r,width:n,height:o}){return new e(r,t,n,o)}static delta(e,t,r={x:"center",y:"center"}){const n=(e,t)=>{const n=r[t],o="x"===t?e.left:e.top,i="x"===t?e.width:e.height;return"start"==n?o:"end"==n?o+i:o+i/2};return gL.delta({x:n(e,"x"),y:n(e,"y")},{x:n(t,"x"),y:n(t,"y")})}static intersectionRatio(t,r){return e.from(t).intersectionRatio(e.from(r))}};var vL,yL=class extends(ZO=YO,JO=[WO],XO=[WO],ZO){constructor(e){var t,r,n;super(gL.from(e),(e,t)=>gL.equals(e,t)),((e,t,r)=>{for(var n=0,o=e[t>>1],i=o&&o.length;n<i;n++)o[n].call(r)})(eL,5,this),t=this,n=0,(r=QO).has(t)?lL("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,n),this.velocity={x:0,y:0}}get delta(){return gL.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const r={x:e.x-t.x,y:e.y-t.y};return r.x||r.y?Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,r=gL.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(mL(a=this,s=QO,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);IT(()=>{((e,t,r)=>{mL(e,t,"write to private field"),t.set(e,r)})(this,QO,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r})}reset(e=this.defaultValue){super.reset(gL.from(e)),this.velocity={x:0,y:0}}};function xL({x:e,y:t},r){const n=Math.abs(e),o=Math.abs(t);return"number"==typeof r?Math.sqrt(uL(n,2)+uL(o,2))>r:"x"in r&&"y"in r?n>r.x&&o>r.y:"x"in r?n>r.x:"y"in r&&o>r.y}eL=(e=>{var t;return[,,,tL(null!=(t=null==e?void 0:e[sL("metadata")])?t:null)]})(ZO),QO=new WeakMap,hL(eL,2,"delta",JO,yL),hL(eL,2,"direction",XO,yL),vL=eL,cL(yL,sL("metadata"),vL[3]);var SL,wL,CL,EL,RL=(e=>(e.Horizontal="x",e.Vertical="y",e))(RL||{}),AL=Object.values(RL),ML=Object.create,PL=Object.defineProperty,IL=Object.defineProperties,kL=Object.getOwnPropertyDescriptor,DL=Object.getOwnPropertyDescriptors,TL=Object.getOwnPropertySymbols,OL=Object.prototype.hasOwnProperty,LL=Object.prototype.propertyIsEnumerable,qL=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),NL=e=>{throw TypeError(e)},jL=(e,t,r)=>t in e?PL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_L=(e,t)=>{for(var r in t||(t={}))OL.call(t,r)&&jL(e,r,t[r]);if(TL)for(var r of TL(t))LL.call(t,r)&&jL(e,r,t[r]);return e},zL=(e,t)=>IL(e,DL(t)),FL=(e,t)=>PL(e,"name",{value:t,configurable:!0}),$L=(e,t)=>{var r={};for(var n in e)OL.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&TL)for(var n of TL(e))t.indexOf(n)<0&&LL.call(e,n)&&(r[n]=e[n]);return r},HL=e=>{var t;return[,,,ML(null!=(t=null==e?void 0:e[qL("metadata")])?t:null)]},BL=["class","method","getter","setter","accessor","field","value","get","set"],WL=e=>void 0!==e&&"function"!=typeof e?NL("Function expected"):e,VL=(e,t,r,n,o)=>({kind:BL[e],name:t,metadata:n,addInitializer:e=>r._?NL("Already initialized"):o.push(WL(e||null))}),UL=(e,t)=>jL(t,qL("metadata"),e[3]),GL=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},YL=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=BL[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&kL(d<4?o:{get[r](){return JL(this,i)},set[r](e){return QL(this,i,e)}},r));d?f&&d<4&&FL(i,(d>2?"set ":d>1?"get ":"")+r):FL(o,r);for(var y=n.length-1;y>=0;y--)u=VL(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>XL(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?JL:eq)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>QL(e,o,t,4^d?i:v.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,u),l._=1,4^d||void 0===s?WL(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?NL("Object expected"):(WL(a=s.get)&&(v.get=a),WL(a=s.set)&&(v.set=a),WL(a=s.init)&&g.unshift(a));return d||UL(e,o),v&&PL(o,r,v),f?4^d?i:v:o},KL=(e,t,r)=>t.has(e)||NL("Cannot "+r),XL=(e,t)=>Object(t)!==t?NL('Cannot use the "in" operator on this value'):e.has(t),JL=(e,t,r)=>(KL(e,t,"read from private field"),r?r.call(e):t.get(e)),ZL=(e,t,r)=>t.has(e)?NL("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),QL=(e,t,r,n)=>(KL(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),eq=(e,t,r)=>(KL(e,t,"access private method"),r);function tq(e,t){return{plugin:e,options:t}}function rq(e){return t=>tq(e,t)}function nq(e){return"function"==typeof e?{plugin:e,options:void 0}:e}SL=[BO];var oq=class{constructor(e,t){this.manager=e,this.options=t,ZL(this,CL,GL(wL,8,this,!1)),GL(wL,11,this),ZL(this,EL,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return DT(()=>this.disabled)}configure(e){this.options=e}registerEffect(e){const t=JT(e.bind(this));return JL(this,EL).add(t),t}destroy(){JL(this,EL).forEach(e=>e())}static configure(e){return tq(this,e)}};wL=HL(null),CL=new WeakMap,EL=new WeakMap,YL(wL,4,"disabled",SL,oq,CL),UL(wL,oq);var iq,aq=class extends oq{},sq=class{constructor(e){this.manager=e,this.instances=new Map,ZL(this,iq,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(nq).reduceRight((e,t)=>e.some(({plugin:e})=>e===t.plugin)?e:[t,...e],[]),r=t.map(({plugin:e})=>e);for(const e of JL(this,iq))if(!r.includes(e)){if(e.prototype instanceof aq)continue;this.unregister(e)}for(const{plugin:e,options:r}of t)this.register(e,r);QL(this,iq,r)}get(e){return this.instances.get(e)}register(e,t){const r=this.instances.get(e);if(r)return r.options!==t&&(r.options=t),r;const n=new e(this.manager,t);return this.instances.set(e,n),n}unregister(e){const t=this.instances.get(e);t&&(t.destroy(),this.instances.delete(e))}destroy(){for(const e of this.instances.values())e.destroy();this.instances.clear()}};function lq(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}iq=new WeakMap;var uq,cq,dq=[],pq=class extends oq{constructor(e){super(e),ZL(this,uq),ZL(this,cq),this.computeCollisions=this.computeCollisions.bind(this),QL(this,cq,$T(dq)),this.destroy=UO(()=>{const e=this.computeCollisions(),t=DT(()=>this.manager.dragOperation.position.current);if(e!==dq){const e=JL(this,uq);if(QL(this,uq,t),e&&t.x==e.x&&t.y==e.y)return}else QL(this,uq,void 0);JL(this,cq).value=e},()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()})}forceUpdate(e=!0){DT(()=>{e?JL(this,cq).value=this.computeCollisions():QL(this,uq,void 0)})}computeCollisions(e,t){const{registry:r,dragOperation:n}=this.manager,{source:o,shape:i,status:a}=n;if(!a.initialized||!i)return dq;const s=[],l=[];for(const i of null!=e?e:r.droppables){if(i.disabled)continue;if(o&&!i.accepts(o))continue;const e=null!=t?t:i.collisionDetector;if(!e)continue;l.push(i),i.shape;const r=DT(()=>e({droppable:i,dragOperation:n}));r&&(null!=i.collisionPriority&&(r.priority=i.collisionPriority),s.push(r))}return 0===l.length?dq:(s.sort(lq),s)}get collisions(){return JL(this,cq).value}};uq=new WeakMap,cq=new WeakMap;var fq=class{constructor(){this.registry=new Map}addEventListener(e,t){const{registry:r}=this,n=new Set(r.get(e));return n.add(t),r.set(e,n),()=>this.removeEventListener(e,t)}removeEventListener(e,t){const{registry:r}=this,n=new Set(r.get(e));n.delete(t),r.set(e,n)}dispatch(e,...t){const{registry:r}=this,n=r.get(e);if(n)for(const e of n)e(...t)}},hq=class extends fq{constructor(e){super(),this.manager=e}dispatch(e,t){const r=[t,this.manager];super.dispatch(e,...r)}};function mq(e,t=!0){let r=!1;return zL(_L({},e),{cancelable:t,get defaultPrevented(){return r},preventDefault(){t&&(r=!0)}})}var gq,bq,vq,yq,xq,Sq,wq,Cq,Eq,Rq=class extends aq{constructor(e){super(e);let t=[];this.destroy=UO(()=>{const{dragOperation:r,collisionObserver:n}=e;r.status.initializing&&(t=[],n.enable())},()=>{const{collisionObserver:r,monitor:n}=e,{collisions:o}=r;if(r.isDisabled())return;const i=mq({collisions:o});if(n.dispatch("collision",i),i.defaultPrevented)return;if(((e,t)=>e.map(({id:e})=>e).join("")===t.map(({id:e})=>e).join(""))(o,t))return;t=o;const[a]=o;DT(()=>{var t;(null==a?void 0:a.id)!==(null==(t=e.dragOperation.target)?void 0:t.id)&&(r.disable(),e.actions.setDropTarget(null==a?void 0:a.id).then(()=>{r.enable()}))})})}},Aq=(e=>(e[e.Lowest=0]="Lowest",e[e.Low=1]="Low",e[e.Normal=2]="Normal",e[e.High=3]="High",e[e.Highest=4]="Highest",e))(Aq||{}),Mq=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(Mq||{});wq=[BO],Sq=[WO],xq=[WO],yq=[WO],vq=[WO],bq=[WO],gq=[WO];var Pq=class{constructor(){GL(Cq,5,this),ZL(this,Eq,GL(Cq,8,this,"idle")),GL(Cq,11,this)}get current(){return this.value}get idle(){return"idle"===this.value}get initializing(){return"initializing"===this.value}get initialized(){const{value:e}=this;return"idle"!==e&&"initialization-pending"!==e}get dragging(){return"dragging"===this.value}get dropped(){return"dropped"===this.value}set(e){this.value=e}};Cq=HL(null),Eq=new WeakMap,YL(Cq,4,"value",wq,Pq,Eq),YL(Cq,2,"current",Sq,Pq),YL(Cq,2,"idle",xq,Pq),YL(Cq,2,"initializing",yq,Pq),YL(Cq,2,"initialized",vq,Pq),YL(Cq,2,"dragging",bq,Pq),YL(Cq,2,"dropped",gq,Pq),UL(Cq,Pq);var Iq,kq,Dq,Tq,Oq,Lq,qq,Nq,jq,_q=class{constructor(e){this.manager=e}setDragSource(e){const{dragOperation:t}=this.manager;t.sourceIdentifier="string"==typeof e||"number"==typeof e?e:e.id}setDropTarget(e){return DT(()=>{const{dragOperation:t}=this.manager,r=null!=e?e:null;if(t.targetIdentifier===r)return Promise.resolve(!1);t.targetIdentifier=r;const n=mq({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",n),this.manager.renderer.rendering.then(()=>n.defaultPrevented)})}start(e){return DT(()=>{const{dragOperation:t}=this.manager;null!=e.source&&this.setDragSource(e.source);if(!t.source)throw new Error("Cannot start a drag operation without a drag source");if(!t.status.idle)throw new Error("Cannot start a drag operation while another is active");const r=new AbortController,{event:n,coordinates:o}=e;IT(()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=n?n:null,t.position.reset(o)});const i=mq({operation:t.snapshot()});return this.manager.monitor.dispatch("beforedragstart",i),i.defaultPrevented?(t.reset(),r.abort(),r):(t.status.set("initializing"),t.controller=r,this.manager.renderer.rendering.then(()=>{if(r.signal.aborted)return;const{status:e}=t;"initializing"===e.current&&(t.status.set("dragging"),this.manager.monitor.dispatch("dragstart",{nativeEvent:n,operation:t.snapshot(),cancelable:!1}))}),r)})}move(e){return DT(()=>{var t,r;const{dragOperation:n}=this.manager,{status:o,controller:i}=n;if(!o.dragging||!i||i.signal.aborted)return;const a=mq({nativeEvent:e.event,operation:n.snapshot(),by:e.by,to:e.to},null==(t=e.cancelable)||t);(null==(r=e.propagate)||r)&&this.manager.monitor.dispatch("dragmove",a),queueMicrotask(()=>{var t,r,o,i,s;if(a.defaultPrevented)return;const l=null!=(s=e.to)?s:{x:n.position.current.x+(null!=(r=null==(t=e.by)?void 0:t.x)?r:0),y:n.position.current.y+(null!=(i=null==(o=e.by)?void 0:o.y)?i:0)};n.position.current=l})})}stop(e={}){return DT(()=>{var t,r;const{dragOperation:n}=this.manager,{controller:o}=n;if(!o||o.signal.aborted)return;let i;o.abort();const a=()=>{this.manager.renderer.rendering.then(()=>{n.status.set("dropped");const e=DT(()=>{var e;return"dropping"===(null==(e=n.source)?void 0:e.status)}),t=()=>{n.controller===o&&(n.controller=void 0),n.reset()};if(e){const{source:e}=n,r=JT(()=>{"idle"===(null==e?void 0:e.status)&&(r(),t())})}else this.manager.renderer.rendering.then(t)})};n.canceled=null!=(t=e.canceled)&&t,this.manager.monitor.dispatch("dragend",{nativeEvent:e.event,operation:n.snapshot(),canceled:null!=(r=e.canceled)&&r,suspend:()=>{const e={resume:()=>{},abort:()=>{}};return i=new Promise((t,r)=>{e.resume=t,e.abort=r}),e}}),i?i.then(a).catch(()=>n.reset()):a()})}};Tq=[BO],Dq=[BO],kq=[BO],Iq=[BO];var zq=class{constructor(e,t){ZL(this,Lq,GL(Oq,8,this)),GL(Oq,11,this),ZL(this,qq,GL(Oq,12,this)),GL(Oq,15,this),ZL(this,Nq,GL(Oq,16,this)),GL(Oq,19,this),ZL(this,jq,GL(Oq,20,this)),GL(Oq,23,this);const{effects:r,id:n,data:o={},disabled:i=!1,register:a=!0}=e;let s=n;this.manager=t,this.id=n,this.data=o,this.disabled=i,this.effects=()=>{var e;return[()=>{const{id:e,manager:t}=this;if(e!==s)return null==t||t.registry.register(this),()=>null==t?void 0:t.registry.unregister(this)},...null!=(e=null==r?void 0:r())?e:[]]},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this),this.destroy=this.destroy.bind(this),t&&a&&queueMicrotask(this.register)}register(){var e;return null==(e=this.manager)?void 0:e.registry.register(this)}unregister(){var e;null==(e=this.manager)||e.registry.unregister(this)}destroy(){var e;null==(e=this.manager)||e.registry.unregister(this)}};Oq=HL(null),Lq=new WeakMap,qq=new WeakMap,Nq=new WeakMap,jq=new WeakMap,YL(Oq,4,"manager",Tq,zq,Lq),YL(Oq,4,"id",Dq,zq,qq),YL(Oq,4,"data",kq,zq,Nq),YL(Oq,4,"disabled",Iq,zq,jq),UL(Oq,zq);var Fq,$q,Hq,Bq,Wq,Vq,Uq,Gq,Yq,Kq,Xq,Jq,Zq,Qq,eN,tN,rN,nN,oN,iN,aN,sN,lN,uN,cN=class{constructor(){this.map=$T(new Map),this.cleanupFunctions=new WeakMap,this.register=(e,t)=>{const r=this.map.peek(),n=r.get(e),o=()=>this.unregister(e,t);if(n===t)return o;if(n){const e=this.cleanupFunctions.get(n);null==e||e(),this.cleanupFunctions.delete(n)}const i=new Map(r);i.set(e,t),this.map.value=i;const a=UO(...t.effects());return this.cleanupFunctions.set(t,a),o},this.unregister=(e,t)=>{const r=this.map.peek();if(r.get(e)!==t)return;const n=this.cleanupFunctions.get(t);null==n||n(),this.cleanupFunctions.delete(t);const o=new Map(r);o.delete(e),this.map.value=o}}[Symbol.iterator](){return this.map.peek().values()}get value(){return this.map.value.values()}has(e){return this.map.value.has(e)}get(e){return this.map.value.get(e)}destroy(){for(const e of this){const t=this.cleanupFunctions.get(e);null==t||t(),e.destroy()}this.map.value=new Map}},dN=class extends(Uq=zq,Vq=[BO],Wq=[BO],Bq=[BO],Hq=[WO],$q=[WO],Fq=[WO],Uq){constructor(e,t){var r=e,{modifiers:n,type:o,sensors:i}=r,a=$L(r,["modifiers","type","sensors"]);super(a,t),GL(Gq,5,this),ZL(this,Yq,GL(Gq,8,this)),GL(Gq,11,this),ZL(this,Kq,GL(Gq,12,this)),GL(Gq,15,this),ZL(this,Xq,GL(Gq,16,this,this.isDragSource?"dragging":"idle")),GL(Gq,19,this),this.type=o,this.sensors=i,this.modifiers=n,this.alignment=a.alignment}get isDropping(){return"dropping"===this.status&&this.isDragSource}get isDragging(){return"dragging"===this.status&&this.isDragSource}get isDragSource(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.source)?void 0:t.id)===this.id}};Gq=HL(Uq),Yq=new WeakMap,Kq=new WeakMap,Xq=new WeakMap,YL(Gq,4,"type",Vq,dN,Yq),YL(Gq,4,"modifiers",Wq,dN,Kq),YL(Gq,4,"status",Bq,dN,Xq),YL(Gq,2,"isDropping",Hq,dN),YL(Gq,2,"isDragging",$q,dN),YL(Gq,2,"isDragSource",Fq,dN),UL(Gq,dN);var pN=class extends(nN=zq,rN=[BO],tN=[BO],eN=[BO],Qq=[BO],Zq=[BO],Jq=[WO],nN){constructor(e,t){var r=e,{accept:n,collisionDetector:o,collisionPriority:i,type:a}=r;super($L(r,["accept","collisionDetector","collisionPriority","type"]),t),GL(oN,5,this),ZL(this,iN,GL(oN,8,this)),GL(oN,11,this),ZL(this,aN,GL(oN,12,this)),GL(oN,15,this),ZL(this,sN,GL(oN,16,this)),GL(oN,19,this),ZL(this,lN,GL(oN,20,this)),GL(oN,23,this),ZL(this,uN,GL(oN,24,this)),GL(oN,27,this),this.accept=n,this.collisionDetector=o,this.collisionPriority=i,this.type=a}accepts(e){const{accept:t}=this;return!t||("function"==typeof t?t(e):!!e.type&&(Array.isArray(t)?t.includes(e.type):e.type===t))}get isDropTarget(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.target)?void 0:t.id)===this.id}};oN=HL(nN),iN=new WeakMap,aN=new WeakMap,sN=new WeakMap,lN=new WeakMap,uN=new WeakMap,YL(oN,4,"accept",rN,pN,iN),YL(oN,4,"type",tN,pN,aN),YL(oN,4,"collisionDetector",eN,pN,sN),YL(oN,4,"collisionPriority",Qq,pN,lN),YL(oN,4,"shape",Zq,pN,uN),YL(oN,2,"isDropTarget",Jq,pN),UL(oN,pN);var fN,hN=class extends oq{constructor(e,t){super(e,t),this.manager=e,this.options=t}},mN=class extends AbortController{constructor(e,t){super(),this.constraints=e,this.onActivate=t,this.activated=!1;for(const t of null!=e?e:[])t.controller=this}onEvent(e){var t;if(!this.activated)if(null==(t=this.constraints)?void 0:t.length)for(const t of this.constraints)t.onEvent(e);else this.activate(e)}activate(e){this.activated||(this.activated=!0,this.onActivate(e))}abort(e){this.activated=!1,super.abort(e)}},gN=class{constructor(e){this.options=e,ZL(this,fN)}set controller(e){QL(this,fN,e),e.signal.addEventListener("abort",()=>this.abort())}activate(e){var t;null==(t=JL(this,fN))||t.activate(e)}};fN=new WeakMap;var bN,vN,yN,xN,SN,wN,CN,EN,RN,AN,MN,PN,IN,kN,DN,TN,ON,LN,qN,NN=class extends oq{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},jN=class{constructor(e){this.draggables=new cN,this.droppables=new cN,this.plugins=new sq(e),this.sensors=new sq(e),this.modifiers=new sq(e)}register(e,t){if(e instanceof dN)return this.draggables.register(e.id,e);if(e instanceof pN)return this.droppables.register(e.id,e);if(e.prototype instanceof NN)return this.modifiers.register(e,t);if(e.prototype instanceof hN)return this.sensors.register(e,t);if(e.prototype instanceof oq)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof zq)return e instanceof dN?this.draggables.unregister(e.id,e):e instanceof pN?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof NN)return this.modifiers.unregister(e);if(e.prototype instanceof hN)return this.sensors.unregister(e);if(e.prototype instanceof oq)return this.plugins.unregister(e);throw new Error("Invalid instance type")}destroy(){this.draggables.destroy(),this.droppables.destroy(),this.plugins.destroy(),this.sensors.destroy(),this.modifiers.destroy()}};RN=[WO],EN=[BO],CN=[BO],wN=[BO],SN=[BO],xN=[BO],yN=[WO],vN=[WO],bN=[WO];var _N=class{constructor(e){GL(IN,5,this),ZL(this,AN),ZL(this,MN),ZL(this,PN,new YO(void 0,(e,t)=>e&&t?e.equals(t):e===t)),this.status=new Pq,ZL(this,kN,GL(IN,8,this,!1)),GL(IN,11,this),ZL(this,DN,GL(IN,12,this,null)),GL(IN,15,this),ZL(this,TN,GL(IN,16,this,null)),GL(IN,19,this),ZL(this,ON,GL(IN,20,this,null)),GL(IN,23,this),ZL(this,LN,GL(IN,24,this,[])),GL(IN,27,this),this.position=new yL({x:0,y:0}),ZL(this,qN,{x:0,y:0}),QL(this,AN,e)}get shape(){const{current:e,initial:t,previous:r}=JL(this,PN);return e&&t?{current:e,initial:t,previous:r}:null}set shape(e){e?JL(this,PN).current=e:JL(this,PN).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const r=JL(this,AN).registry.draggables.get(t);return r&&QL(this,MN,r),null!=(e=null!=r?r:JL(this,MN))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=JL(this,AN).registry.droppables.get(t))?e:null}get transform(){const{x:e,y:t}=this.position.delta;let r={x:e,y:t};for(const e of this.modifiers)r=e.apply(zL(_L({},this.snapshot()),{transform:r}));return QL(this,qN,r),r}snapshot(){return DT(()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:JL(this,qN),shape:this.shape?KO(this.shape):null,position:KO(this.position),status:KO(this.status),canceled:this.canceled}))}reset(){IT(()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,JL(this,PN).reset(),this.position.reset({x:0,y:0}),QL(this,qN,{x:0,y:0}),this.modifiers=[]})}};IN=HL(null),AN=new WeakMap,MN=new WeakMap,PN=new WeakMap,kN=new WeakMap,DN=new WeakMap,TN=new WeakMap,ON=new WeakMap,LN=new WeakMap,qN=new WeakMap,YL(IN,2,"shape",RN,_N),YL(IN,4,"canceled",EN,_N,kN),YL(IN,4,"activatorEvent",CN,_N,DN),YL(IN,4,"sourceIdentifier",wN,_N,TN),YL(IN,4,"targetIdentifier",SN,_N,ON),YL(IN,4,"modifiers",xN,_N,LN),YL(IN,2,"source",yN,_N),YL(IN,2,"target",vN,_N),YL(IN,2,"transform",bN,_N),UL(IN,_N);var zN={get rendering(){return Promise.resolve()}};function FN(e,t){return"function"==typeof e?e(t):null!=e?e:t}var $N=class{constructor(e){var t;this.destroy=()=>{this.dragOperation.status.idle||this.actions.stop({canceled:!0}),this.dragOperation.modifiers.forEach(e=>e.destroy()),this.registry.destroy(),this.collisionObserver.destroy()};const r=null!=e?e:{},n=FN(r.plugins,[]),o=FN(r.sensors,[]),i=FN(r.modifiers,[]),a=null!=(t=r.renderer)?t:zN,s=new hq(this),l=new jN(this);this.registry=l,this.monitor=s,this.renderer=a,this.actions=new _q(this),this.dragOperation=new _N(this),this.collisionObserver=new pq(this),this.plugins=[Rq,...n],this.modifiers=i,this.sensors=o;const{destroy:u}=this,c=UO(()=>{var e,t,r;const n=DT(()=>this.dragOperation.modifiers),o=this.modifiers;for(const e of n)o.includes(e)||e.destroy();this.dragOperation.modifiers=null!=(r=null==(t=null==(e=this.dragOperation.source)?void 0:e.modifiers)?void 0:t.map(e=>{const{plugin:t,options:r}=nq(e);return new t(this,r)}))?r:o});this.destroy=()=>{c(),u()}}get plugins(){return this.registry.plugins.values}set plugins(e){this.registry.plugins.values=e}get modifiers(){return this.registry.modifiers.values}set modifiers(e){this.registry.modifiers.values=e}get sensors(){return this.registry.sensors.values}set sensors(e){this.registry.sensors.values=e}},HN=e=>{throw TypeError(e)},BN=(e,t,r)=>t.has(e)||HN("Cannot "+r),WN=(e,t,r)=>(BN(e,t,"read from private field"),t.get(e)),VN=(e,t,r)=>t.has(e)?HN("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),UN=(e,t,r,n)=>(BN(e,t,"write to private field"),t.set(e,r),r),GN=(e,t,r)=>(BN(e,t,"access private method"),r);function YN(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function KN(e,t){const r=e.getAnimations();if(r.length>0)for(const e of r){if("running"!==e.playState)continue;const{effect:r}=e,n=(YN(r)?r.getKeyframes():[]).filter(t);if(n.length>0)return[n[n.length-1],e]}return null}function XN(e){const{width:t,height:r,top:n,left:o,bottom:i,right:a}=e.getBoundingClientRect();return{width:t,height:r,top:n,left:o,bottom:i,right:a}}function JN(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function ZN(e){return"nodeType"in e}function QN(e){var t,r,n;return e?JN(e)?e:ZN(e)?"defaultView"in e?null!=(t=e.defaultView)?t:window:null!=(n=null==(r=e.ownerDocument)?void 0:r.defaultView)?n:window:window:window}function ej(e){const{Document:t}=QN(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function tj(e){return!(!e||JN(e))&&(e instanceof QN(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function rj(e){return e instanceof QN(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function nj(e){return e?JN(e)?e.document:ZN(e)?ej(e)?e:tj(e)||rj(e)?e.ownerDocument:document:document:document}function oj(e,t){if(function(e){return"DETAILS"===e.tagName}(e)&&!1===e.open)return!1;const{overflow:r,overflowX:n,overflowY:o}=getComputedStyle(e);return"visible"===r&&"visible"===n&&"visible"===o}function ij(e,t=e.getBoundingClientRect(),r=0){var n,o,i,a,s;let l=t;const{ownerDocument:u}=e,c=null!=(n=u.defaultView)?n:window;let d=e.parentElement;for(;d&&d!==u.documentElement;){if(!oj(d)){const e=d.getBoundingClientRect(),t=r*(e.bottom-e.top),n=r*(e.right-e.left),o=r*(e.bottom-e.top),i=r*(e.right-e.left);l={top:Math.max(l.top,e.top-t),right:Math.min(l.right,e.right+n),bottom:Math.min(l.bottom,e.bottom+o),left:Math.max(l.left,e.left-i),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top}d=d.parentElement}const p=c.visualViewport,f=null!=(o=null==p?void 0:p.offsetTop)?o:0,h=null!=(i=null==p?void 0:p.offsetLeft)?i:0,m=null!=(a=null==p?void 0:p.width)?a:c.innerWidth,g=null!=(s=null==p?void 0:p.height)?s:c.innerHeight,b=r*g,v=r*m;return l={top:Math.max(l.top,f-b),right:Math.min(l.right,h+m+v),bottom:Math.min(l.bottom,f+g+b),left:Math.max(l.left,h-v),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top,l.width<0&&(l.width=0),l.height<0&&(l.height=0),l}function aj(e){return{x:e.clientX,y:e.clientY}}var sj="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function lj(e=document,t=new Set){if(t.has(e))return[];t.add(e);const r=[e];for(const n of Array.from(e.querySelectorAll("iframe, frame")))try{const e=n.contentDocument;e&&!t.has(e)&&r.push(...lj(e,t))}catch(e){}try{const n=e.defaultView;if(n&&n!==window.top){const o=n.parent;o&&o.document&&o.document!==e&&r.push(...lj(o.document,t))}}catch(e){}return r}function uj(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function cj(){var e,t;const r=uj()?window.visualViewport:null;return{x:null!=(e=null==r?void 0:r.offsetLeft)?e:0,y:null!=(t=null==r?void 0:r.offsetTop)?t:0}}function dj(e){return!(!e||!ZN(e))&&e instanceof QN(e).ShadowRoot}function pj(e){if(e&&ZN(e)){let t=e.getRootNode();if(dj(t))return t;if(t instanceof Document)return t}return nj(e)}function fj(e){return e.matchMedia("(prefers-reduced-motion: reduce)").matches}function hj(e){return"value"in e}function mj(e){return"CANVAS"===e.tagName}function gj(e,{x:t,y:r}){const n=e.elementFromPoint(t,r);if(function(e){return"IFRAME"===(null==e?void 0:e.tagName)}(n)){const{contentDocument:e}=n;if(e){const{left:o,top:i}=n.getBoundingClientRect();return gj(e,{x:t-o,y:r-i})}}return n}var bj=new WeakMap;var vj=class{constructor(){this.entries=new Set,this.clear=()=>{for(const e of this.entries){const[t,{type:r,listener:n,options:o}]=e;t.removeEventListener(r,n,o)}this.entries.clear()}}bind(e,t){const r=Array.isArray(e)?e:[e],n=Array.isArray(t)?t:[t],o=[];for(const e of r)for(const t of n){const{type:r,listener:n,options:i}=t,a=[e,t];e.addEventListener(r,n,i),this.entries.add(a),o.push(a)}return function(){for(const[e,{type:t,listener:r,options:n}]of o)e.removeEventListener(t,r,n)}}};function yj(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function xj(e,t){const r=()=>performance.now();let n,o;return function(...i){const a=this;o?(null==n||n(),n=function(e,t){const r=setTimeout(e,t);return()=>clearTimeout(r)}(()=>{e.apply(a,i),o=r()},t-(r()-o))):(e.apply(a,i),o=r())}}var Sj,wj=sj?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},Cj=class extends wj{constructor(e){super(t=>{WN(this,Sj)?e(t,this):UN(this,Sj,!0)}),VN(this,Sj,!1)}};Sj=new WeakMap;var Ej,Rj,Aj,Mj,Pj,Ij,kj,Dj,Tj,Oj,Lj,qj=Array.from({length:100},(e,t)=>t/100),Nj=class{constructor(e,t,r={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,VN(this,Tj),this.disconnect=()=>{var e,t,r;UN(this,kj,!0),null==(e=WN(this,Aj))||e.disconnect(),null==(t=WN(this,Mj))||t.disconnect(),WN(this,Pj).disconnect(),null==(r=WN(this,Ij))||r.remove()},VN(this,Ej,!0),VN(this,Rj),VN(this,Aj),VN(this,Mj),VN(this,Pj),VN(this,Ij),VN(this,kj,!1),VN(this,Dj,xj(()=>{var e,t,r;const{element:n}=this;if(null==(e=WN(this,Mj))||e.disconnect(),WN(this,kj)||!WN(this,Ej)||!n.isConnected)return;const o=null!=(t=n.ownerDocument)?t:document,{innerHeight:i,innerWidth:a}=null!=(r=o.defaultView)?r:window,s=n.getBoundingClientRect(),l=ij(n,s),{top:u,left:c,bottom:d,right:p}=l,f=-Math.floor(u),h=-Math.floor(c),m=`${f}px ${-Math.floor(a-p)}px ${-Math.floor(i-d)}px ${h}px`;this.boundingClientRect=s,UN(this,Mj,new IntersectionObserver(e=>{const[t]=e,{intersectionRect:r}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:bL.intersectionRatio(r,ij(n)))&&WN(this,Dj).call(this)},{threshold:qj,rootMargin:m,root:o})),WN(this,Mj).observe(n),GN(this,Tj,Oj).call(this)},75)),this.boundingClientRect=e.getBoundingClientRect(),UN(this,Ej,function(e,t=e.getBoundingClientRect()){const{width:r,height:n}=ij(e,t);return r>0&&n>0}(e,this.boundingClientRect));let n=!0;this.callback=e=>{n&&(n=!1,r.skipInitial)||t(e)};const o=e.ownerDocument;(null==r?void 0:r.debug)&&(UN(this,Ij,document.createElement("div")),WN(this,Ij).style.background="rgba(0,0,0,0.15)",WN(this,Ij).style.position="fixed",WN(this,Ij).style.pointerEvents="none",o.body.appendChild(WN(this,Ij))),UN(this,Pj,new IntersectionObserver(t=>{var r,n;const o=t[t.length-1],{boundingClientRect:i,isIntersecting:a}=o,{width:s,height:l}=i,u=WN(this,Ej);UN(this,Ej,a),(s||l)&&(u&&!a?(null==(r=WN(this,Mj))||r.disconnect(),this.callback(null),null==(n=WN(this,Aj))||n.disconnect(),UN(this,Aj,void 0),WN(this,Ij)&&(WN(this,Ij).style.visibility="hidden")):WN(this,Dj).call(this),a&&!WN(this,Aj)&&(UN(this,Aj,new Cj(WN(this,Dj))),WN(this,Aj).observe(e)))},{threshold:qj,root:o})),WN(this,Ej)&&!r.skipInitial&&this.callback(this.boundingClientRect),WN(this,Pj).observe(e)}};Ej=new WeakMap,Rj=new WeakMap,Aj=new WeakMap,Mj=new WeakMap,Pj=new WeakMap,Ij=new WeakMap,kj=new WeakMap,Dj=new WeakMap,Tj=new WeakSet,Oj=function(){WN(this,kj)||(GN(this,Tj,Lj).call(this),function(e,t){return e===t||!(!e||!t)&&e.top==t.top&&e.left==t.left&&e.right==t.right&&e.bottom==t.bottom}(this.boundingClientRect,WN(this,Rj))||(this.callback(this.boundingClientRect),UN(this,Rj,this.boundingClientRect)))},Lj=function(){if(WN(this,Ij)){const{top:e,left:t,width:r,height:n}=ij(this.element);WN(this,Ij).style.overflow="hidden",WN(this,Ij).style.visibility="visible",WN(this,Ij).style.top=`${Math.floor(e)}px`,WN(this,Ij).style.left=`${Math.floor(t)}px`,WN(this,Ij).style.width=`${Math.floor(r)}px`,WN(this,Ij).style.height=`${Math.floor(n)}px`}};var jj,_j,zj,Fj,$j=new WeakMap,Hj=new WeakMap;function Bj(e,t){let r=$j.get(e);if(!r){const t=new Nj(e,t=>{const r=$j.get(e);r&&r.callbacks.forEach(e=>e(t))},{skipInitial:!0});r={disconnect:t.disconnect,callbacks:new Set}}return r.callbacks.add(t),$j.set(e,r),()=>{r.callbacks.delete(t),0===r.callbacks.size&&($j.delete(e),r.disconnect())}}var Wj=class{constructor(e,t,r){this.callback=t,VN(this,jj),VN(this,_j,!1),VN(this,zj),VN(this,Fj,xj(e=>{if(!WN(this,_j)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of WN(this,zj))if(e.target.contains(t)){this.callback(WN(this,jj).boundingClientRect);break}},75));const n=function(e){const t=new Set;let r=yj(e);for(;r;)t.add(r),r=yj(r);return t}(e),o=function(e,t){const r=new Set;for(const n of e){const e=Bj(n,t);r.add(e)}return()=>r.forEach(e=>e())}(n,t),i=function(e,t){var r;const n=e.ownerDocument;if(!Hj.has(n)){const e=new AbortController,t=new Set;document.addEventListener("scroll",e=>t.forEach(t=>t(e)),{capture:!0,passive:!0,signal:e.signal}),Hj.set(n,{disconnect:()=>e.abort(),listeners:t})}const{listeners:o,disconnect:i}=null!=(r=Hj.get(n))?r:{};return o&&i?(o.add(t),()=>{o.delete(t),0===o.size&&(i(),Hj.delete(n))}):()=>{}}(e,WN(this,Fj));UN(this,zj,n),UN(this,jj,new Nj(e,t,r)),this.disconnect=()=>{WN(this,_j)||(UN(this,_j,!0),o(),i(),WN(this,jj).disconnect())}}};function Vj(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function Uj(e){try{Vj(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function Gj(e){return!(!sj||!e)&&e===nj(e).scrollingElement}function Yj(e){var t,r;const n=QN(e),o=Gj(e)?function(e){var t,r,n,o;const{documentElement:i}=nj(e),a=QN(e).visualViewport,s=null!=(t=null==a?void 0:a.width)?t:i.clientWidth,l=null!=(r=null==a?void 0:a.height)?r:i.clientHeight,u=null!=(n=null==a?void 0:a.offsetTop)?n:0,c=null!=(o=null==a?void 0:a.offsetLeft)?o:0;return{top:u,left:c,right:c+s,bottom:u+l,width:s,height:l}}(e):XN(e),i=n.visualViewport,a=Gj(e)?{height:null!=(t=null==i?void 0:i.height)?t:n.innerHeight,width:null!=(r=null==i?void 0:i.width)?r:n.innerWidth}:{height:e.clientHeight,width:e.clientWidth},s={current:{x:e.scrollLeft,y:e.scrollTop},max:{x:e.scrollWidth-a.width,y:e.scrollHeight-a.height}};return{rect:o,position:s,isTop:s.current.y<=0,isLeft:s.current.x<=0,isBottom:s.current.y>=s.max.y,isRight:s.current.x>=s.max.x}}function Kj(e,t){const{isTop:r,isBottom:n,isLeft:o,isRight:i,position:a}=Yj(e),{x:s,y:l}=null!=t?t:{x:0,y:0},u=!r&&a.current.y+l>0,c=!n&&a.current.y+l<a.max.y,d=!o&&a.current.x+s>0,p=!i&&a.current.x+s<a.max.x;return{top:u,bottom:c,left:d,right:p,x:d||p,y:u||c}}jj=new WeakMap,_j=new WeakMap,zj=new WeakMap,Fj=new WeakMap;var Xj=class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(e=>this.resolvers.add(e))}},Jj=new Xj(e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()}),Zj=new Xj(e=>setTimeout(e,50)),Qj=new Map,e_=Qj.clear.bind(Qj);function t_(e,t=!1){if(!t)return r_(e);let r=Qj.get(e);return r||(r=r_(e),Qj.set(e,r),Zj.schedule(e_),r)}function r_(e){return QN(e).getComputedStyle(e)}var n_={excludeElement:!0,escapeShadowDOM:!0};function o_(e,t=n_){const{limit:r,excludeElement:n,escapeShadowDOM:o}=t,i=new Set;return e?function t(a){if(null!=r&&i.size>=r)return i;if(!a)return i;if(ej(a)&&null!=a.scrollingElement&&!i.has(a.scrollingElement))return i.add(a.scrollingElement),i;if(o&&dj(a))return t(a.host);if(!tj(a))return rj(a)?t(a.parentElement):i;if(i.has(a))return i;const s=t_(a,!0);if(n&&a===e||function(e,t=t_(e,!0)){const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const n=t[e];return"string"==typeof n&&r.test(n)})}(a,s)&&i.add(a),function(e,t=t_(e,!0)){return"fixed"===t.position||"sticky"===t.position}(a,s)){const{scrollingElement:e}=a.ownerDocument;return e&&i.add(e),i}return t(a.parentNode)}(e):i}function i_(e,t=window.frameElement){const r={x:0,y:0,scaleX:1,scaleY:1};if(!e)return r;let n=yj(e);for(;n;){if(n===t)return r;const e=XN(n),{x:o,y:i}=a_(n,e);r.x=r.x+e.left,r.y=r.y+e.top,r.scaleX=r.scaleX*o,r.scaleY=r.scaleY*i,n=yj(n)}return r}function a_(e,t=XN(e)){const r=Math.round(t.width),n=Math.round(t.height);if(tj(e))return{x:r/e.offsetWidth,y:n/e.offsetHeight};const o=t_(e,!0);return{x:(parseFloat(o.width)||r)/r,y:(parseFloat(o.height)||n)/n}}function s_(e){if("none"===e)return null;const[t,r,n="0"]=e.split(" "),o={x:parseFloat(t),y:parseFloat(r),z:parseInt(n,10)};return isNaN(o.x)&&isNaN(o.y)?null:{x:isNaN(o.x)?0:o.x,y:isNaN(o.y)?0:o.y,z:isNaN(o.z)?0:o.z}}function l_(e){var t,r,n,o,i,a,s,l,u;const{scale:c,transform:d,translate:p}=e,f=function(e){if("none"===e)return null;const t=e.split(" "),r=parseFloat(t[0]),n=parseFloat(t[1]);return isNaN(r)&&isNaN(n)?null:{x:isNaN(r)?n:r,y:isNaN(n)?r:n}}(c),h=s_(p),m=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(d);if(!m&&!f&&!h)return null;const g=null!=(t=null==f?void 0:f.x)?t:1,b=null!=(r=null==f?void 0:f.y)?r:1,v=null!=(n=null==h?void 0:h.x)?n:0,y=null!=(o=null==h?void 0:h.y)?o:0,x=null!=(i=null==m?void 0:m.x)?i:0,S=null!=(a=null==m?void 0:m.y)?a:0,w=null!=(s=null==m?void 0:m.scaleX)?s:1,C=null!=(l=null==m?void 0:m.scaleY)?l:1;return{x:v+x,y:y+S,z:null!=(u=null==h?void 0:h.z)?u:0,scaleX:g*w,scaleY:b*C}}var u_=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(u_||{}),c_={x:.2,y:.2},d_={x:10,y:10};function p_(e,t,r,n=25,o=c_,i=d_){const{x:a,y:s}=t,{rect:l,isTop:u,isBottom:c,isLeft:d,isRight:p}=Yj(e),f=i_(e),h=l_(t_(e,!0)),m=null!==h&&(null==h?void 0:h.scaleX)<0,g=null!==h&&(null==h?void 0:h.scaleY)<0,b=new bL(l.left*f.scaleX+f.x,l.top*f.scaleY+f.y,l.width*f.scaleX,l.height*f.scaleY),v={x:0,y:0},y={x:0,y:0},x=b.height*o.y,S=b.width*o.x;return(!u||g&&!c)&&s<=b.top+x&&1!==(null==r?void 0:r.y)&&a>=b.left-i.x&&a<=b.right+i.x?(v.y=g?1:-1,y.y=n*Math.abs((b.top+x-s)/x)):(!c||g&&!u)&&s>=b.bottom-x&&-1!==(null==r?void 0:r.y)&&a>=b.left-i.x&&a<=b.right+i.x&&(v.y=g?-1:1,y.y=n*Math.abs((b.bottom-x-s)/x)),(!p||m&&!d)&&a>=b.right-S&&-1!==(null==r?void 0:r.x)&&s>=b.top-i.y&&s<=b.bottom+i.y?(v.x=m?-1:1,y.x=n*Math.abs((b.right-S-a)/S)):(!d||m&&!p)&&a<=b.left+S&&1!==(null==r?void 0:r.x)&&s>=b.top-i.y&&s<=b.bottom+i.y&&(v.x=m?1:-1,y.x=n*Math.abs((b.left+S-a)/S)),{direction:v,speed:y}}function f_(e,t=!1){if("scrollIntoViewIfNeeded"in(r=e)&&"function"==typeof r.scrollIntoViewIfNeeded)return void e.scrollIntoViewIfNeeded(t);var r;if(!tj(e))return e.scrollIntoView();var n=function(e){const[t]=o_(e,{limit:1});return null!=t?t:null}(e);if(!tj(n))return;const o=t_(n,!0),i=parseInt(o.getPropertyValue("border-top-width")),a=parseInt(o.getPropertyValue("border-left-width")),s=e.offsetTop-n.offsetTop<n.scrollTop,l=e.offsetTop-n.offsetTop+e.clientHeight-i>n.scrollTop+n.clientHeight,u=e.offsetLeft-n.offsetLeft<n.scrollLeft,c=e.offsetLeft-n.offsetLeft+e.clientWidth-a>n.scrollLeft+n.clientWidth,d=s&&!l;(s||l)&&t&&(n.scrollTop=e.offsetTop-n.offsetTop-n.clientHeight/2-i+e.clientHeight/2),(u||c)&&t&&(n.scrollLeft=e.offsetLeft-n.offsetLeft-n.clientWidth/2-a+e.clientWidth/2),(s||l||u||c)&&!t&&e.scrollIntoView(d)}function h_({element:e,keyframes:t,options:r}){return e.animate(t,r).finished}function m_(e,t=t_(e).translate,r=!0){if(r){const t=KN(e,e=>"translate"in e);if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=s_(e);if(t)return t}}}if(t){const e=s_(t);if(e)return e}return{x:0,y:0,z:0}}var g_=new Xj(e=>setTimeout(e,0)),b_=new Map,v_=b_.clear.bind(b_);function y_(e,t){const r=function(e){const t=e.ownerDocument;let r=b_.get(t);if(r)return r;r=t.getAnimations(),b_.set(t,r),g_.schedule(v_);const n=r.filter(t=>YN(t.effect)&&t.effect.target===e);return b_.set(e,n),r}(e).filter(e=>{var r,n;if(YN(e.effect)){const{target:o}=e.effect;if(null==(n=o&&(null==(r=t.isValidTarget)?void 0:r.call(t,o)))||n)return e.effect.getKeyframes().some(e=>{for(const r of t.properties)if(e[r])return!0})}}).map(e=>{const{effect:t,currentTime:r}=e,n=null==t?void 0:t.getComputedTiming().duration;if(!e.pending&&"finished"!==e.playState)return"number"==typeof n&&"number"==typeof r&&r<n?(e.currentTime=n,()=>{e.currentTime=r}):void 0});if(r.length>0)return()=>r.forEach(e=>null==e?void 0:e())}var x_=class extends bL{constructor(e,t={}){var r,n,o,i;const{frameTransform:a=i_(e),ignoreTransforms:s,getBoundingClientRect:l=XN}=t,u=y_(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||uj())&&t.contains(e)}),c=l(e);let d,{top:p,left:f,width:h,height:m}=c;const g=t_(e),b=l_(g),v={x:null!=(r=null==b?void 0:b.scaleX)?r:1,y:null!=(n=null==b?void 0:b.scaleY)?n:1},y=function(e,t){var r;const n=e.getAnimations();let o=null;if(!n.length)return null;for(const e of n){if("running"!==e.playState)continue;const n=YN(e.effect)?e.effect.getKeyframes():[],i=n[n.length-1];if(!i)continue;const{transform:a,translate:s,scale:l}=i;if(a||s||l){const e=l_({transform:"string"==typeof a&&a?a:t.transform,translate:"string"==typeof s&&s?s:t.translate,scale:"string"==typeof l&&l?l:t.scale});e&&(o=o?{x:o.x+e.x,y:o.y+e.y,z:null!=(r=o.z)?r:e.z,scaleX:o.scaleX*e.scaleX,scaleY:o.scaleY*e.scaleY}:e)}}return o}(e,g);null==u||u(),b&&(d=function(e,t,r){const{scaleX:n,scaleY:o,x:i,y:a}=t,s=e.left-i-(1-n)*parseFloat(r),l=e.top-a-(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),u=n?e.width/n:e.width,c=o?e.height/o:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(c,b,g.transformOrigin),(s||y)&&(p=d.top,f=d.left,h=d.width,m=d.height));const x={width:null!=(o=null==d?void 0:d.width)?o:h,height:null!=(i=null==d?void 0:d.height)?i:m};if(y&&!s&&d){const e=function(e,t,r){const{scaleX:n,scaleY:o,x:i,y:a}=t,s=e.left+i+(1-n)*parseFloat(r),l=e.top+a+(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),u=n?e.width*n:e.width,c=o?e.height*o:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(d,y,g.transformOrigin);p=e.top,f=e.left,h=e.width,m=e.height,v.x=y.scaleX,v.y=y.scaleY}a&&(s||(f*=a.scaleX,h*=a.scaleX,p*=a.scaleY,m*=a.scaleY),f+=a.x,p+=a.y),super(f,p,h,m),this.scale=v,this.intrinsicWidth=x.width,this.intrinsicHeight=x.height}};function S_(e){return"style"in e&&"object"==typeof e.style&&null!==e.style&&"setProperty"in e.style&&"removeProperty"in e.style&&"function"==typeof e.style.setProperty&&"function"==typeof e.style.removeProperty}var w_=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:r}=this;if(S_(r))for(const[n,o]of Object.entries(e)){const e=`${t}${n}`;this.initial.has(e)||this.initial.set(e,r.style.getPropertyValue(e)),r.style.setProperty(e,"string"==typeof o?o:`${o}px`)}}remove(e,t=""){const{element:r}=this;if(S_(r))for(const n of e){const e=`${t}${n}`;r.style.removeProperty(e)}}reset(){const{element:e}=this;if(S_(e)){for(const[t,r]of this.initial)e.style.setProperty(t,r);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function C_(e){return!!e&&(e instanceof QN(e).Element||ZN(e)&&e.nodeType===Node.ELEMENT_NODE)}function E_(e){if(!e)return!1;const{KeyboardEvent:t}=QN(e.target);return e instanceof t}var R_={};function A_(e){const t=null==R_[e]?0:R_[e]+1;return R_[e]=t,`${e}-${t}`}var M_=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const r=e.position.current;if(!r)return null;const{id:n}=t;if(!t.shape)return null;if(t.shape.containsPoint(r))return{id:n,value:1/gL.distance(t.shape.center,r),type:Mq.PointerIntersection,priority:Aq.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:r}=e;if(!t.shape||!(null==r?void 0:r.current))return null;const n=r.current.intersectionArea(t.shape);if(n){const{position:o}=e,i=gL.distance(t.shape.center,o.current),a=n/(r.current.area+t.shape.area-n)/i;return{id:t.id,value:a,type:Mq.ShapeIntersection,priority:Aq.Normal}}return null})(e)},P_=e=>{const{dragOperation:t,droppable:r}=e,{shape:n,position:o}=t;if(!r.shape)return null;const i=n?bL.from(n.current.boundingRectangle).corners:void 0,a=bL.from(r.shape.boundingRectangle).corners.reduce((e,t,r)=>{var n;return e+gL.distance(gL.from(t),null!=(n=null==i?void 0:i[r])?n:o.current)},0),s=a/4;return{id:r.id,value:1/s,type:Mq.Collision,priority:Aq.Normal}},I_=Object.create,k_=Object.defineProperty,D_=Object.defineProperties,T_=Object.getOwnPropertyDescriptor,O_=Object.getOwnPropertyDescriptors,L_=Object.getOwnPropertySymbols,q_=Object.prototype.hasOwnProperty,N_=Object.prototype.propertyIsEnumerable,j_=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),__=e=>{throw TypeError(e)},z_=(e,t,r)=>t in e?k_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,F_=(e,t)=>{for(var r in t||(t={}))q_.call(t,r)&&z_(e,r,t[r]);if(L_)for(var r of L_(t))N_.call(t,r)&&z_(e,r,t[r]);return e},$_=(e,t)=>D_(e,O_(t)),H_=(e,t)=>k_(e,"name",{value:t,configurable:!0}),B_=(e,t)=>{var r={};for(var n in e)q_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&L_)for(var n of L_(e))t.indexOf(n)<0&&N_.call(e,n)&&(r[n]=e[n]);return r},W_=e=>{var t;return[,,,I_(null!=(t=null==e?void 0:e[j_("metadata")])?t:null)]},V_=["class","method","getter","setter","accessor","field","value","get","set"],U_=e=>void 0!==e&&"function"!=typeof e?__("Function expected"):e,G_=(e,t,r,n,o)=>({kind:V_[e],name:t,metadata:n,addInitializer:e=>r._?__("Already initialized"):o.push(U_(e||null))}),Y_=(e,t)=>z_(t,j_("metadata"),e[3]),K_=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},X_=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=V_[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&T_(d<4?o:{get[r](){return Q_(this,i)},set[r](e){return tz(this,i,e)}},r));d?f&&d<4&&H_(i,(d>2?"set ":d>1?"get ":"")+r):H_(o,r);for(var y=n.length-1;y>=0;y--)u=G_(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>Z_(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?Q_:rz)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>tz(e,o,t,4^d?i:v.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,u),l._=1,4^d||void 0===s?U_(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?__("Object expected"):(U_(a=s.get)&&(v.get=a),U_(a=s.set)&&(v.set=a),U_(a=s.init)&&g.unshift(a));return d||Y_(e,o),v&&k_(o,r,v),f?4^d?i:v:o},J_=(e,t,r)=>t.has(e)||__("Cannot "+r),Z_=(e,t)=>Object(t)!==t?__('Cannot use the "in" operator on this value'):e.has(t),Q_=(e,t,r)=>(J_(e,t,"read from private field"),r?r.call(e):t.get(e)),ez=(e,t,r)=>t.has(e)?__("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),tz=(e,t,r,n)=>(J_(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),rz=(e,t,r)=>(J_(e,t,"access private method"),r),nz="button",oz="draggable",iz="dnd-kit-description",az="dnd-kit-announcement",sz={draggable:"To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item in a given direction. Press space again to drop the item in its new position, or press escape to cancel."},lz={dragstart({operation:{source:e}}){if(e)return`Picked up draggable item ${e.id}.`},dragover({operation:{source:e,target:t}}){if(e&&e.id!==(null==t?void 0:t.id))return t?`Draggable item ${e.id} was moved over droppable target ${t.id}.`:`Draggable item ${e.id} is no longer over a droppable target.`},dragend({operation:{source:e,target:t},canceled:r}){if(e)return r?`Dragging was cancelled. Draggable item ${e.id} was dropped.`:t?`Draggable item ${e.id} was dropped over droppable target ${t.id}`:`Draggable item ${e.id} was dropped.`}};function uz(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}var cz=["dragover","dragmove"],dz=class extends oq{constructor(e,t){super(e);const{id:r,idPrefix:{description:n=iz,announcement:o=az}={},announcements:i=lz,screenReaderInstructions:a=sz,debounce:s=500}=null!=t?t:{},l=r?`${n}-${r}`:A_(n),u=r?`${o}-${r}`:A_(o);let c,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>Jj.schedule(h),g=function(e,t){let r;const n=()=>{clearTimeout(r),r=setTimeout(e,t)};return n.cancel=()=>clearTimeout(r),n}(m,s),b=Object.entries(i).map(([e,t])=>this.manager.monitor.addEventListener(e,(r,n)=>{const o=p;if(!o)return;const i=null==t?void 0:t(r,n);i&&o.nodeValue!==i&&(f=i,cz.includes(e)?g():(m(),g.cancel()))})),v=()=>{let e=[];(null==c?void 0:c.isConnected)||(c=function(e,t){const r=document.createElement("div");return r.id=e,r.style.setProperty("display","none"),r.textContent=t,r}(l,a.draggable),e.push(c)),(null==d?void 0:d.isConnected)||(d=function(e){const t=document.createElement("div");return t.id=e,t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),t.style.setProperty("position","fixed"),t.style.setProperty("width","1px"),t.style.setProperty("height","1px"),t.style.setProperty("margin","-1px"),t.style.setProperty("border","0"),t.style.setProperty("padding","0"),t.style.setProperty("overflow","hidden"),t.style.setProperty("clip","rect(0 0 0 0)"),t.style.setProperty("clip-path","inset(100%)"),t.style.setProperty("white-space","nowrap"),t}(u),p=document.createTextNode(""),d.appendChild(p),e.push(d)),e.length>0&&document.body.append(...e)},y=new Set;function x(){for(const e of y)e()}this.registerEffect(()=>{var e;y.clear();for(const t of this.manager.registry.draggables.value){const r=null!=(e=t.handle)?e:t.element;if(r){c&&d||y.add(v),uz(r)&&!uj()||r.hasAttribute("tabindex")||y.add(()=>r.setAttribute("tabindex","0")),r.hasAttribute("role")||"button"===r.tagName.toLowerCase()||y.add(()=>r.setAttribute("role",nz)),r.hasAttribute("aria-roledescription")||y.add(()=>r.setAttribute("aria-roledescription",oz)),r.hasAttribute("aria-describedby")||y.add(()=>r.setAttribute("aria-describedby",l));for(const e of["aria-pressed","aria-grabbed"]){const n=String(t.isDragging);r.getAttribute(e)!==n&&y.add(()=>r.setAttribute(e,n))}const e=String(t.disabled);r.getAttribute("aria-disabled")!==e&&y.add(()=>r.setAttribute("aria-disabled",e))}}y.size>0&&Jj.schedule(x)}),this.destroy=()=>{super.destroy(),null==c||c.remove(),null==d||d.remove(),b.forEach(e=>e())}}};var pz,fz,hz,mz,gz,bz,vz,yz,xz,Sz,wz,Cz,Ez,Rz=new Map,Az=class extends(gz=aq,mz=[BO],hz=[WO],fz=[WO],pz=[WO],gz){constructor(e){super(e),K_(vz,5,this),ez(this,xz),ez(this,bz,new Set),ez(this,yz,K_(vz,8,this,new Set)),K_(vz,11,this),this.registerEffect(rz(this,xz,Sz))}register(e){return Q_(this,bz).add(e),()=>{Q_(this,bz).delete(e)}}addRoot(e){return DT(()=>{const t=new Set(this.additionalRoots);t.add(e),this.additionalRoots=t}),()=>{DT(()=>{const t=new Set(this.additionalRoots);t.delete(e),this.additionalRoots=t})}}get sourceRoot(){var e;const{source:t}=this.manager.dragOperation;return pj(null!=(e=null==t?void 0:t.element)?e:null)}get targetRoot(){var e;const{target:t}=this.manager.dragOperation;return pj(null!=(e=null==t?void 0:t.element)?e:null)}get roots(){const{status:e}=this.manager.dragOperation;if(e.initializing||e.initialized){const e=[this.sourceRoot,this.targetRoot].filter(e=>null!=e);return new Set([...e,...this.additionalRoots])}return new Set}};vz=W_(gz),bz=new WeakMap,yz=new WeakMap,xz=new WeakSet,Sz=function(){const{roots:e}=this,t=[];for(const r of e)for(const e of Q_(this,bz))t.push(rz(this,xz,wz).call(this,r,e));return()=>{for(const e of t)e()}},wz=function(e,t){let r=Rz.get(e);r||(r=new Map,Rz.set(e,r));let n=r.get(t);if(!n){const o=ej(e)?rz(this,xz,Cz).call(this,e,r,t):rz(this,xz,Ez).call(this,e,r,t);if(!o)return()=>{};n=o,r.set(t,n)}n.refCount++;let o=!1;return()=>{o||(o=!0,n.refCount--,0===n.refCount&&n.cleanup())}},Cz=function(e,t,r){const n=e.createElement("style");n.textContent=r,e.head.prepend(n);const o=new MutationObserver(t=>{for(const r of t)for(const t of Array.from(r.removedNodes))if(t===n)return void e.head.prepend(n)});return o.observe(e.head,{childList:!0}),{refCount:0,cleanup:()=>{o.disconnect(),n.remove(),t.delete(r),0===t.size&&Rz.delete(e)}}},Ez=function(e,t,r){!("adoptedStyleSheets"in e)||Array.isArray(e.adoptedStyleSheets);const n=e.ownerDocument.defaultView,{CSSStyleSheet:o}=null!=n?n:{};if(!o)return null;const i=new o;return i.replaceSync(r),e.adoptedStyleSheets.push(i),{refCount:0,cleanup:()=>{var n;if(dj(e)&&(null==(n=e.host)?void 0:n.isConnected)){const t=e.adoptedStyleSheets.indexOf(i);-1!==t&&e.adoptedStyleSheets.splice(t,1)}t.delete(r),0===t.size&&Rz.delete(e)}}},X_(vz,4,"additionalRoots",mz,Az,yz),X_(vz,2,"sourceRoot",hz,Az),X_(vz,2,"targetRoot",fz,Az),X_(vz,2,"roots",pz,Az),Y_(vz,Az);var Mz="data-dnd-",Pz=`${Mz}dropping`,Iz="--dnd-",kz=`${Mz}dragging`,Dz=`${Mz}placeholder`,Tz=[kz,Dz,"popover","aria-pressed","aria-grabbing"],Oz=["view-transition-name"],Lz=`\n :is(:root,:host) [${kz}] {\n position: fixed !important;\n pointer-events: none !important;\n touch-action: none;\n z-index: calc(infinity);\n will-change: translate;\n top: var(${Iz}top, 0px) !important;\n left: var(${Iz}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${Iz}width, auto);\n max-width: var(${Iz}width, auto);\n height: var(${Iz}height, auto);\n max-height: var(${Iz}height, auto);\n transition: var(${Iz}transition) !important;\n }\n\n :is(:root,:host) [${Dz}] {\n transition: none;\n }\n\n :is(:root,:host) [${Dz}='hidden'] {\n visibility: hidden;\n }\n\n [${kz}] * {\n pointer-events: none !important;\n }\n\n [${kz}]:not([${Pz}]) {\n translate: var(${Iz}translate) !important;\n }\n\n [${kz}][style*='${Iz}scale'] {\n scale: var(${Iz}scale) !important;\n transform-origin: var(${Iz}transform-origin) !important;\n }\n\n @layer dnd-kit {\n :where([${kz}][popover]) {\n overflow: visible;\n background: unset;\n border: unset;\n margin: unset;\n padding: unset;\n color: inherit;\n\n &:is(input, button) {\n border: revert;\n background: revert;\n }\n }\n }\n [${kz}]::backdrop, [${Mz}overlay]:not([${kz}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function qz(e,t="hidden"){return DT(()=>{const{element:r,manager:n}=e;if(!r||!n)return;const o=function(e,t){const r=new Map;for(const n of t)if(n.element&&(e===n.element||e.contains(n.element))){const e=`${Mz}${A_("dom-id")}`;n.element.setAttribute(e,""),r.set(n,e)}return r}(r,n.registry.droppables),i=[],a=function(e){const t="input, textarea, select, canvas, [contenteditable]",r=e.cloneNode(!0),n=Array.from(e.querySelectorAll(t));return Array.from(r.querySelectorAll(t)).forEach((e,t)=>{const r=n[t];if(hj(e)&&hj(r)&&("file"!==e.type&&(e.value=r.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),mj(e)&&mj(r)&&r.width>0&&r.height>0){const t=e.getContext("2d");null==t||t.drawImage(r,0,0)}}),r}(r),{remove:s}=a;return function(e,t,r){for(const[n,o]of e){if(!n.element)continue;const e=`[${o}]`,i=t.matches(e)?t:t.querySelector(e);if(n.element.removeAttribute(o),!i)continue;const a=n.element;n.proxy=i,i.removeAttribute(o),bj.set(a,i),r.push(()=>{bj.delete(a),n.proxy=void 0})}}(o,a,i),function(e,t="hidden"){e.setAttribute("inert","true"),e.setAttribute("tab-index","-1"),e.setAttribute("aria-hidden","true"),e.setAttribute(Dz,t)}(a,t),a.remove=()=>{i.forEach(e=>e()),s.call(a)},a})}function Nz(e,t){return e===t||yj(e)===yj(t)}function jz(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&C_(t)&&t.hasAttribute("popover")&&requestAnimationFrame(()=>Uj(t))}function _z(e){return"TR"===e.tagName}var zz,Fz,$z,Hz,Bz,Wz,Vz,Uz=250,Gz="ease";var Yz=class extends(Fz=oq,zz=[BO],Fz){constructor(e,t){super(e,t),ez(this,Bz),ez(this,Hz,K_($z,8,this)),K_($z,11,this),this.state={initial:{},current:{}};const r=e.registry.plugins.get(Az),n=null==r?void 0:r.register(Lz);if(n){const e=this.destroy.bind(this);this.destroy=()=>{n(),e()}}this.registerEffect(rz(this,Bz,Wz).bind(this,r)),this.registerEffect(rz(this,Bz,Vz))}};$z=W_(Fz),Hz=new WeakMap,Bz=new WeakSet,Wz=function(e){const{overlay:t}=this;if(!t||!e)return;const r=pj(t);return r?e.addRoot(r):void 0},Vz=function(){var e,t,r;const{state:n,manager:o,options:i}=this,{dragOperation:a}=o,{position:s,source:l,status:u}=a;if(u.idle)return n.current={},void(n.initial={});if(!l)return;const{element:c,feedback:d}=l;if(!c||"none"===d||!u.initialized||u.initializing)return;const{initial:p}=n,f=null!=(e=this.overlay)?e:c,h=i_(f),m=i_(c),g=!Nz(c,f),b=new x_(c,{frameTransform:g?m:null,ignoreTransforms:!g}),v=m.scaleX/h.scaleX,y=m.scaleY/h.scaleY;let{width:x,height:S,top:w,left:C}=b;g&&(x/=v,S/=y);const E=new w_(f),{transition:R,translate:A,boxSizing:M,paddingBlockStart:P,paddingBlockEnd:I,paddingInlineStart:k,paddingInlineEnd:D,borderInlineStartWidth:T,borderInlineEndWidth:O,borderBlockStartWidth:L,borderBlockEndWidth:q}=t_(c),N="clone"===d,j="content-box"===M,_=j?parseInt(k)+parseInt(D)+parseInt(T)+parseInt(O):0,z=j?parseInt(P)+parseInt(I)+parseInt(L)+parseInt(q):0,F="move"===d||this.overlay?null:qz(l,N?"clone":"hidden"),$=DT(()=>E_(o.dragOperation.activatorEvent));if("none"!==A){const e=s_(A);e&&!p.translate&&(p.translate=e)}if(!p.transformOrigin){const e=DT(()=>s.current);p.transformOrigin={x:(e.x-C*h.scaleX-h.x)/(x*h.scaleX),y:(e.y-w*h.scaleY-h.y)/(S*h.scaleY)}}const{transformOrigin:H}=p,B=w*h.scaleY+h.y,W=C*h.scaleX+h.x;if(!p.coordinates&&(p.coordinates={x:W,y:B},1!==v||1!==y)){const{scaleX:e,scaleY:t}=m,{x:r,y:n}=H;p.coordinates.x+=(x*e-x)*r,p.coordinates.y+=(S*t-S)*n}p.dimensions||(p.dimensions={width:x,height:S}),p.frameTransform||(p.frameTransform=h);const V=p.coordinates.x-W,U=p.coordinates.y-B,G=(p.dimensions.width*p.frameTransform.scaleX-x*h.scaleX)*H.x,Y=(p.dimensions.height*p.frameTransform.scaleY-S*h.scaleY)*H.y,K={x:V/h.scaleX+G,y:U/h.scaleY+Y},X=C+K.x,J=w+K.y;f.setAttribute(kz,"true");const Z=DT(()=>a.transform),Q=null!=(t=p.translate)?t:{x:0,y:0},ee=Z.x*h.scaleX+Q.x,te=Z.y*h.scaleY+Q.y,re=cj();if(E.set({width:x-_,height:S-z,top:J+re.y,left:X+re.x,translate:`${ee}px ${te}px 0`,transition:R?`${R}, translate 0ms linear`:"",scale:g?`${v} ${y}`:"","transform-origin":`${100*H.x}% ${100*H.y}%`},Iz),F&&(c.insertAdjacentElement("afterend",F),null==i?void 0:i.rootElement)){("function"==typeof i.rootElement?i.rootElement(l):i.rootElement).appendChild(c)}let ne,oe,ie;Vj(f)&&(f.hasAttribute("popover")||f.setAttribute("popover","manual"),Uj(f),f.addEventListener("beforetoggle",jz));const ae=(se={placeholder:F,element:c,feedbackElement:f,frameTransform:h,transformOrigin:H,width:x,height:S,top:w,left:C,widthOffset:_,heightOffset:z,delta:K,styles:E,dragOperation:a,getElementMutationObserver:()=>ne,getSavedCellWidths:()=>ie,setSavedCellWidths:e=>{ie=e}},new ResizeObserver(()=>{var e,t;const r=new x_(se.placeholder,{frameTransform:se.frameTransform,ignoreTransforms:!0}),n=null!=(e=se.transformOrigin)?e:{x:1,y:1},o=(se.width-r.width)*n.x+se.delta.x,i=(se.height-r.height)*n.y+se.delta.y,a=cj();if(se.styles.set({width:r.width-se.widthOffset,height:r.height-se.heightOffset,top:se.top+i+a.y,left:se.left+o+a.x},Iz),null==(t=se.getElementMutationObserver())||t.takeRecords(),_z(se.element)&&_z(se.placeholder)){const e=Array.from(se.element.cells),t=Array.from(se.placeholder.cells);se.getSavedCellWidths()||se.setSavedCellWidths(e.map(e=>e.style.width));for(const[r,n]of e.entries()){const e=t[r];n.style.width=`${e.getBoundingClientRect().width}px`}}se.dragOperation.shape=new x_(se.feedbackElement)}));var se;const le=new x_(f);DT(()=>a.shape=le);const ue=QN(f),ce=e=>{this.manager.actions.stop({event:e})},de=fj(ue);$&&ue.addEventListener("resize",ce),"idle"===DT(()=>l.status)&&requestAnimationFrame(()=>l.status="dragging"),F&&(ae.observe(F),ne=function(e,t,r){const n=new MutationObserver(n=>{let o=!1;for(const r of n){if(r.target!==e){o=!0;continue}if("attributes"!==r.type)continue;const n=r.attributeName;if(n.startsWith("aria-")||Tz.includes(n))continue;const i=e.getAttribute(n);if("style"===n){if(S_(e)&&S_(t)){const r=e.style;for(const e of Array.from(t.style))""===r.getPropertyValue(e)&&t.style.removeProperty(e);for(const e of Array.from(r)){if(Oz.includes(e)||e.startsWith(Iz))continue;const n=r.getPropertyValue(e);t.style.setProperty(e,n)}}}else null!==i?t.setAttribute(n,i):t.removeAttribute(n)}o&&r&&(t.innerHTML=e.innerHTML)});return n.observe(e,{attributes:!0,subtree:!0,childList:!0}),n}(c,F,N),oe=function(e,t,r){const n=new MutationObserver(n=>{for(const o of n)if(0!==o.addedNodes.length)for(const n of Array.from(o.addedNodes)){if(n.contains(e)&&e.nextElementSibling!==t)return e.insertAdjacentElement("afterend",t),void Uj(r);if(n.contains(t)&&t.previousElementSibling!==e)return t.insertAdjacentElement("beforebegin",e),void Uj(r)}});return n.observe(e.ownerDocument.body,{childList:!0,subtree:!0}),n}(c,F,f));const pe=null==(r=o.dragOperation.source)?void 0:r.id,fe=()=>{var e;if(!$||null==pe)return;const t=o.registry.draggables.get(pe),r=null!=(e=null==t?void 0:t.handle)?e:null==t?void 0:t.element;tj(r)&&r.focus()},he=()=>{var e;if(null==ne||ne.disconnect(),null==oe||oe.disconnect(),ae.disconnect(),ue.removeEventListener("resize",ce),Vj(f)&&(f.removeEventListener("beforetoggle",jz),f.removeAttribute("popover")),f.removeAttribute(kz),E.reset(),ie&&_z(c)){const t=Array.from(c.cells);for(const[r,n]of t.entries())n.style.width=null!=(e=ie[r])?e:""}l.status="idle";const t=null!=n.current.translate;F&&(t||F.parentElement!==f.parentElement)&&f.isConnected&&F.replaceWith(f),null==F||F.remove()},me=null==i?void 0:i.dropAnimation,ge=this,be=UO(()=>{var e;const{transform:t,status:r}=a;if((t.x||t.y||n.current.translate)&&r.dragging){const r=null!=(e=p.translate)?e:{x:0,y:0},o={x:t.x/h.scaleX+r.x,y:t.y/h.scaleY+r.y},i=n.current.translate,s=DT(()=>a.modifiers),l=DT(()=>{var e;return null==(e=a.shape)?void 0:e.current}),u=$&&!de?"250ms cubic-bezier(0.25, 1, 0.5, 1)":"0ms linear";if(E.set({transition:`${R}, translate ${u}`,translate:`${o.x}px ${o.y}px 0`},Iz),null==ne||ne.takeRecords(),l&&l!==le&&i&&!s.length){const e=gL.delta(o,i);a.shape=bL.from(l.boundingRectangle).translate(e.x*h.scaleX,e.y*h.scaleY)}else a.shape=new x_(f);n.current.translate=o}},function(){if(a.status.dropped){this.dispose(),l.status="dropping";const e=void 0!==ge.dropAnimation?ge.dropAnimation:me;let t=n.current.translate;const r=null!=t;if(t||c===f||(t={x:0,y:0}),!t||null===e)return void he();o.renderer.rendering.then(()=>{!function(e){var t,r,n,o;const{animation:i}=e;if("function"==typeof i){const t=i({element:e.element,feedbackElement:e.feedbackElement,placeholder:e.placeholder,translate:e.translate,moved:e.moved});return void Promise.resolve(t).then(()=>{e.cleanup(),requestAnimationFrame(e.restoreFocus)})}const{duration:a=Uz,easing:s=Gz}=null!=i?i:{};Uj(e.feedbackElement);const[,l]=null!=(t=KN(e.feedbackElement,e=>"translate"in e))?t:[];null==l||l.pause();const u=null!=(r=e.placeholder)?r:e.element,c={frameTransform:Nz(e.feedbackElement,u)?null:void 0},d=new x_(e.feedbackElement,c),p=null!=(n=s_(t_(e.feedbackElement).translate))?n:e.translate,f=new x_(u,c),h=bL.delta(d,f,e.alignment),m=p.x-h.x,g=p.y-h.y,b=Math.round(d.intrinsicHeight)!==Math.round(f.intrinsicHeight)?{minHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`],maxHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`]}:{},v=Math.round(d.intrinsicWidth)!==Math.round(f.intrinsicWidth)?{minWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`],maxWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`]}:{};e.styles.set({transition:e.transition},Iz),e.feedbackElement.setAttribute(Pz,""),null==(o=e.getElementMutationObserver())||o.takeRecords(),h_({element:e.feedbackElement,keyframes:$_(F_(F_({},b),v),{translate:[`${p.x}px ${p.y}px 0`,`${m}px ${g}px 0`]}),options:{duration:fj(QN(e.feedbackElement))?0:e.moved||e.feedbackElement!==e.element?a:0,easing:s}}).then(()=>{e.feedbackElement.removeAttribute(Pz),null==l||l.finish(),e.cleanup(),requestAnimationFrame(e.restoreFocus)})}({element:c,feedbackElement:f,placeholder:F,translate:t,moved:r,transition:R,alignment:l.alignment,styles:E,animation:null!=e?e:void 0,getElementMutationObserver:()=>ne,cleanup:he,restoreFocus:fe})})}});return()=>{he(),be()}},X_($z,4,"overlay",zz,Yz,Hz),Y_($z,Yz),Yz.configure=rq(Yz);var Kz,Xz,Jz,Zz,Qz,eF,tF,rF=Yz,nF=!0;Jz=[BO],Zz=u_.Forward,Kz=[BO],Xz=u_.Reverse;var oF=class{constructor(){ez(this,eF,K_(Qz,8,this,nF)),K_(Qz,11,this),ez(this,tF,K_(Qz,12,this,nF)),K_(Qz,15,this)}isLocked(e){return e!==u_.Idle&&(null==e?this[u_.Forward]===nF&&this[u_.Reverse]===nF:this[e]===nF)}unlock(e){e!==u_.Idle&&(this[e]=false)}};Qz=W_(null),eF=new WeakMap,tF=new WeakMap,X_(Qz,4,Zz,Jz,oF,eF),X_(Qz,4,Xz,Kz,oF,tF),Y_(Qz,oF);var iF,aF,sF,lF,uF,cF,dF=[u_.Forward,u_.Reverse],pF=class{constructor(){this.x=new oF,this.y=new oF}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},fF=class extends oq{constructor(e){super(e);const t=$T(new pF);let r=null;this.signal=t,JT(()=>{const{status:n}=e.dragOperation;if(!n.initialized)return r=null,void(t.value=new pF);const{delta:o}=e.dragOperation.position;if(r){const e={x:hF(o.x,r.x),y:hF(o.y,r.y)},n=t.peek();IT(()=>{for(const t of AL)for(const r of dF)e[t]===r&&n[t].unlock(r);t.value=n})}r=o})}get current(){return this.signal.peek()}};function hF(e,t){return Math.sign(e-t)}var mF=class extends(aF=aq,iF=[BO],aF){constructor(e){super(e),ez(this,lF,K_(sF,8,this,!1)),K_(sF,11,this),ez(this,uF),ez(this,cF,()=>{if(!Q_(this,uF))return;const{element:e,by:t}=Q_(this,uF);t.y&&(e.scrollTop+=t.y),t.x&&(e.scrollLeft+=t.x)}),this.scroll=e=>{var t;if(this.disabled)return!1;const r=this.getScrollableElements();if(!r)return tz(this,uF,void 0),!1;const{position:n}=this.manager.dragOperation,o=null==n?void 0:n.current;if(o){const{by:n}=null!=e?e:{},i=n?{x:gF(n.x),y:gF(n.y)}:void 0,a=i?void 0:this.scrollIntentTracker.current;if(null==a?void 0:a.isLocked())return!1;for(const e of r){const r=Kj(e,n);if(r.x||r.y){const{speed:r,direction:s}=p_(e,o,i);if(a)for(const e of AL)a[e].isLocked(s[e])&&(r[e]=0,s[e]=0);if(s.x||s.y){const{x:o,y:i}=null!=n?n:s,a=o*r.x,l=i*r.y;if(a||l){const r=null==(t=Q_(this,uF))?void 0:t.by;if(this.autoScrolling&&r){if(r.x&&!a||r.y&&!l)continue}return tz(this,uF,{element:e,by:{x:a,y:l}}),Jj.schedule(Q_(this,cF)),!0}}}}}return tz(this,uF,void 0),!1};let t=null,r=null;const n=$O(()=>{const{position:r,source:n}=e.dragOperation;if(!r)return null;const o=gj(pj(null==n?void 0:n.element),r.current);return o&&(t=o),null!=o?o:t}),o=$O(()=>{const t=n.value,{documentElement:o}=nj(t);if(!t||t===o){const{target:t}=e.dragOperation,n=null==t?void 0:t.element;if(n){const e=o_(n,{excludeElement:!1});return r=e,e}}if(t){const e=o_(t,{excludeElement:!1});return this.autoScrolling&&r&&e.size<(null==r?void 0:r.size)?r:(r=e,e)}return r=null,null},HO);this.getScrollableElements=()=>o.value,this.scrollIntentTracker=new fF(e),this.destroy=e.monitor.addEventListener("dragmove",t=>{!this.disabled&&!t.defaultPrevented&&E_(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()})}};function gF(e){return e>0?u_.Forward:e<0?u_.Reverse:u_.Idle}sF=W_(aF),lF=new WeakMap,uF=new WeakMap,cF=new WeakMap,X_(sF,4,"autoScrolling",iF,mF,lF),Y_(sF,mF);var bF,vF=new class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(e=>this.resolvers.add(e))}}(e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()}),yF=class extends oq{constructor(e,t){super(e);const r=e.registry.plugins.get(mF);if(!r)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=JT(()=>{if(this.disabled)return;const{position:t,status:n}=e.dragOperation;if(n.dragging){if(r.scroll()){r.autoScrolling=!0;const e=setInterval(()=>vF.schedule(r.scroll),10);return()=>{clearInterval(e)}}r.autoScrolling=!1}})}},xF={capture:!0,passive:!0},SF=class extends aq{constructor(e){super(e),ez(this,bF),this.handleScroll=()=>{null==Q_(this,bF)&&tz(this,bF,setTimeout(()=>{this.manager.collisionObserver.forceUpdate(!1),tz(this,bF,void 0)},50))};const{dragOperation:t}=this.manager;this.destroy=JT(()=>{var e,r,n;if(t.status.dragging){const o=null!=(n=null==(r=null==(e=t.source)?void 0:e.element)?void 0:r.ownerDocument)?n:document;return o.addEventListener("scroll",this.handleScroll,xF),()=>{o.removeEventListener("scroll",this.handleScroll,xF)}}})}};bF=new WeakMap;function wF(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var CF,EF=Object.freeze({offset:10,keyboardCodes:{start:["Space","Enter"],cancel:["Escape"],end:["Space","Enter","Tab"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},preventActivation(e,t){var r;const n=null!=(r=t.handle)?r:t.element;return e.target!==n}}),RF=class extends hN{constructor(e,t){super(e),this.manager=e,this.options=t,ez(this,CF,[]),this.listeners=new vj,this.handleSourceKeyDown=(e,t,r)=>{if(this.disabled||e.defaultPrevented)return;if(!C_(e.target))return;if(t.disabled)return;const{keyboardCodes:n=EF.keyboardCodes,preventActivation:o=EF.preventActivation}=null!=r?r:{};n.start.includes(e.code)&&this.manager.dragOperation.status.idle&&((null==o?void 0:o(e,t))||this.handleStart(e,t,r))}}bind(e,t=this.options){const r=JT(()=>{var r;const n=null!=(r=e.handle)?r:e.element,o=r=>{E_(r)&&this.handleSourceKeyDown(r,e,t)};if(n)return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}});return r}handleStart(e,t,r){const{element:n}=t;if(!n)throw new Error("Source draggable does not have an associated element");e.preventDefault(),e.stopImmediatePropagation(),f_(n);const{center:o}=new x_(n);if(this.manager.actions.start({event:e,coordinates:{x:o.x,y:o.y},source:t}).signal.aborted)return this.cleanup();this.sideEffects();const i=nj(n),a=[this.listeners.bind(i,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,r),options:{capture:!0}}])];Q_(this,CF).push(...a)}handleKeyDown(e,t,r){const{keyboardCodes:n=EF.keyboardCodes}=null!=r?r:{};if(PF(e,[...n.end,...n.cancel])){e.preventDefault();const t=PF(e,n.cancel);return void this.handleEnd(e,t)}PF(e,n.up)?this.handleMove("up",e):PF(e,n.down)&&this.handleMove("down",e),PF(e,n.left)?this.handleMove("left",e):PF(e,n.right)&&this.handleMove("right",e)}handleEnd(e,t){this.manager.actions.stop({event:e,canceled:t}),this.cleanup()}handleMove(e,t){var r,n;const{shape:o}=this.manager.dragOperation,i=t.shiftKey?5:1;let a={x:0,y:0},s=null!=(n=null==(r=this.options)?void 0:r.offset)?n:EF.offset;if("number"==typeof s&&(s={x:s,y:s}),o){switch(e){case"up":a={x:0,y:-s.y*i};break;case"down":a={x:0,y:s.y*i};break;case"left":a={x:-s.x*i,y:0};break;case"right":a={x:s.x*i,y:0}}(a.x||a.y)&&(t.preventDefault(),this.manager.actions.move({event:t,by:a}))}}sideEffects(){const e=this.manager.registry.plugins.get(yF);!1===(null==e?void 0:e.disabled)&&(e.disable(),Q_(this,CF).push(()=>{e.enable()}))}cleanup(){Q_(this,CF).forEach(e=>e()),tz(this,CF,[])}destroy(){this.cleanup(),this.listeners.clear()}};CF=new WeakMap,RF.configure=rq(RF),RF.defaults=EF;var AF,MF=RF;function PF(e,t){return t.includes(e.code)}var IF,kF;AF=new WeakMap;IF=new WeakMap,kF=new WeakMap;var DF=class{};DF.Delay=class extends gN{constructor(){super(...arguments),ez(this,IF),ez(this,kF)}onEvent(e){switch(e.type){case"pointerdown":tz(this,kF,aj(e)),tz(this,IF,setTimeout(()=>this.activate(e),this.options.value));break;case"pointermove":if(!Q_(this,kF))return;const{x:t,y:r}=aj(e);xL({x:t-Q_(this,kF).x,y:r-Q_(this,kF).y},this.options.tolerance)&&this.abort();break;case"pointerup":this.abort()}}abort(){Q_(this,IF)&&(clearTimeout(Q_(this,IF)),tz(this,kF,void 0),tz(this,IF,void 0))}},DF.Distance=class extends gN{constructor(){super(...arguments),ez(this,AF)}onEvent(e){switch(e.type){case"pointerdown":tz(this,AF,aj(e));break;case"pointermove":if(!Q_(this,AF))return;const{x:t,y:r}=aj(e),n={x:t-Q_(this,AF).x,y:r-Q_(this,AF).y},{tolerance:o}=this.options;if(o&&xL(n,o))return void this.abort();xL(n,this.options.value)&&this.activate(e);break;case"pointerup":this.abort()}}abort(){tz(this,AF,void 0)}};var TF,OF=Object.freeze({activationConstraints(e,t){var r;const{pointerType:n,target:o}=e;if("mouse"!==n||!C_(o)||t.handle!==o&&!(null==(r=t.handle)?void 0:r.contains(o)))return"touch"===n?[new DF.Delay({value:250,tolerance:5})]:function(e){if(!C_(e))return!1;const{tagName:t}=e;return"INPUT"===t||"TEXTAREA"===t||(r=e).hasAttribute("contenteditable")&&"false"!==r.getAttribute("contenteditable");var r}(o)&&!e.defaultPrevented?[new DF.Delay({value:200,tolerance:0})]:[new DF.Delay({value:200,tolerance:10}),new DF.Distance({value:5})]},preventActivation(e,t){var r;const{target:n}=e;return n!==t.element&&(n!==t.handle&&(!!C_(n)&&(!(null==(r=t.handle)?void 0:r.contains(n))&&Boolean(n.closest('\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n a[href],\n [contenteditable]:not([contenteditable="false"])\n ')))))}}),LF=class extends hN{constructor(e,t){super(e),this.manager=e,this.options=t,ez(this,TF,new Set),this.listeners=new vj,this.latest={event:void 0,coordinates:void 0},this.handleMove=()=>{const{event:e,coordinates:t}=this.latest;e&&t&&this.manager.actions.move({event:e,to:t})},this.handleCancel=this.handleCancel.bind(this),this.handlePointerUp=this.handlePointerUp.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}activationConstraints(e,t,r=this.options){const{activationConstraints:n=OF.activationConstraints}=null!=r?r:{};return"function"==typeof n?n(e,t):n}bind(e,t=this.options){const r=JT(()=>{var r;const n=new AbortController,{signal:o}=n,i=r=>{(function(e){if(!e)return!1;const{PointerEvent:t}=QN(e.target);return e instanceof t})(r)&&this.handlePointerDown(r,e,t)};let a=[null!=(r=e.handle)?r:e.element];(null==t?void 0:t.activatorElements)&&(a=Array.isArray(t.activatorElements)?t.activatorElements:t.activatorElements(e));for(const e of a)e&&(zF(e.ownerDocument.defaultView),e.addEventListener("pointerdown",i,{signal:o}));return()=>n.abort()});return r}handlePointerDown(e,t,r){if(this.disabled||!e.isPrimary||0!==e.button||!C_(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{preventActivation:n=OF.preventActivation}=null!=r?r:{};if(null==n?void 0:n(e,t))return;const{target:o}=e,i=tj(o)&&o.draggable&&"true"===o.getAttribute("draggable"),a=i_(t.element),{x:s,y:l}=aj(e);this.initialCoordinates={x:s*a.scaleX+a.x,y:l*a.scaleY+a.y};const u=this.activationConstraints(e,t,r);e.sensor=this;const c=new mN(u,e=>this.handleStart(t,e));c.signal.onabort=()=>this.handleCancel(e),c.onEvent(e),this.controller=c;const d=lj(),p=this.listeners.bind(d,[{type:"pointermove",listener:e=>this.handlePointerMove(e,t)},{type:"pointerup",listener:this.handlePointerUp,options:{capture:!0}},{type:"pointercancel",listener:this.handleCancel},{type:"dragstart",listener:i?this.handleCancel:NF,options:{capture:!0}}]);Q_(this,TF).add(()=>{p(),this.initialCoordinates=void 0})}handlePointerMove(e,t){var r,n;if(!1!==(null==(r=this.controller)?void 0:r.activated)){if(this.manager.dragOperation.status.dragging){const r=aj(e),n=i_(t.element);r.x=r.x*n.scaleX+n.x,r.y=r.y*n.scaleY+n.y,e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=r,Jj.schedule(this.handleMove)}}else null==(n=this.controller)||n.onEvent(e)}handlePointerUp(e){const{status:t}=this.manager.dragOperation;if(!t.idle){e.preventDefault(),e.stopPropagation();const r=!t.initialized;this.manager.actions.stop({event:e,canceled:r})}this.cleanup()}handleKeyDown(e){"Escape"===e.key&&(e.preventDefault(),this.handleCancel(e))}handleStart(e,t){const{manager:r,initialCoordinates:n}=this;if(!n||!r.dragOperation.status.idle)return;if(t.defaultPrevented)return;if(r.actions.start({coordinates:n,event:t,source:e}).signal.aborted)return this.cleanup();t.preventDefault();const o=nj(t.target).body;o.setPointerCapture(t.pointerId);const i=C_(t.target)?[t.target,o]:o,a=this.listeners.bind(i,[{type:"touchmove",listener:NF,options:{passive:!1}},{type:"click",listener:NF},{type:"contextmenu",listener:NF},{type:"keydown",listener:this.handleKeyDown}]);Q_(this,TF).add(a)}handleCancel(e){const{dragOperation:t}=this.manager;t.status.initialized&&this.manager.actions.stop({event:e,canceled:!0}),this.cleanup()}cleanup(){this.latest={event:void 0,coordinates:void 0},Q_(this,TF).forEach(e=>e()),Q_(this,TF).clear()}destroy(){this.cleanup(),this.listeners.clear()}};TF=new WeakMap,LF.configure=rq(LF),LF.defaults=OF;var qF=LF;function NF(e){e.preventDefault()}function jF(){}var _F=new WeakSet;function zF(e){e&&!_F.has(e)&&(e.addEventListener("touchmove",jF,{capture:!1,passive:!1}),_F.add(e))}var FF,$F,HF,BF,WF,VF,UF,GF,YF,KF,XF,JF,ZF,QF,e$,t$,r$,n$,o$={modifiers:[],plugins:[dz,yF,class extends oq{constructor(e,t){super(e,t),this.manager=e;const r=$O(()=>{var e;return nj(null==(e=this.manager.dragOperation.source)?void 0:e.element)});this.destroy=JT(()=>{var e;const{dragOperation:t}=this.manager,{cursor:n="grabbing",nonce:o}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=r.value,t=e.createElement("style");return o&&t.setAttribute("nonce",o),t.textContent=`* { cursor: ${n} !important; }`,e.head.appendChild(t),()=>t.remove()}})}},rF,class extends oq{constructor(e,t){super(e,t),this.manager=e,this.destroy=JT(()=>{var e;const{dragOperation:t}=this.manager,{nonce:r}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=document.createElement("style");return r&&e.setAttribute("nonce",r),e.textContent="* { user-select: none !important; -webkit-user-select: none !important; }",document.head.appendChild(e),wF(),document.addEventListener("selectionchange",wF,{capture:!0}),()=>{document.removeEventListener("selectionchange",wF,{capture:!0}),e.remove()}}})}}],sensors:[qF,MF]},i$=class extends $N{constructor(e={}){const t=FN(e.plugins,o$.plugins),r=FN(e.sensors,o$.sensors),n=FN(e.modifiers,o$.modifiers);super($_(F_({},e),{plugins:[SF,mF,Az,...t],sensors:r,modifiers:n}))}},a$=class extends(BF=dN,HF=[BO],$F=[BO],FF=[BO],BF){constructor(e,t){var r=e,{element:n,effects:o=()=>[],handle:i,feedback:a="default"}=r,s=B_(r,["element","effects","handle","feedback"]);super(F_({effects:()=>[...o(),()=>{var e,t;const{manager:r}=this;if(!r)return;const n=(null!=(t=null==(e=this.sensors)?void 0:e.map(nq))?t:[...r.sensors]).map(e=>{const t=e instanceof hN?e:r.registry.register(e.plugin),n=e instanceof hN?void 0:e.options;return t.bind(this,n)});return function(){n.forEach(e=>e())}}]},s),t),ez(this,VF,K_(WF,8,this)),K_(WF,11,this),ez(this,UF,K_(WF,12,this)),K_(WF,15,this),ez(this,GF,K_(WF,16,this)),K_(WF,19,this),this.element=n,this.handle=i,this.feedback=a}};WF=W_(BF),VF=new WeakMap,UF=new WeakMap,GF=new WeakMap,X_(WF,4,"handle",HF,a$,VF),X_(WF,4,"element",$F,a$,UF),X_(WF,4,"feedback",FF,a$,GF),Y_(WF,a$);var s$=class extends(XF=pN,KF=[BO],YF=[BO],XF){constructor(e,t){var r=e,{element:n,effects:o=()=>[]}=r,i=B_(r,["element","effects"]);const{collisionDetector:a=M_}=i,s=e=>{const{manager:t,element:r}=this;if(!r||null===e)return void(this.shape=void 0);if(!t)return;const n=new x_(r),o=DT(()=>this.shape);return n&&(null==o?void 0:o.equals(n))?o:(this.shape=n,n)},l=$T(!1);super($_(F_({},i),{collisionDetector:a,effects:()=>[...o(),()=>{const{element:e,manager:t}=this;if(!t)return;const{dragOperation:r}=t,{source:n}=r;l.value=Boolean(n&&r.status.initialized&&e&&!this.disabled&&this.accepts(n))},()=>{const{element:e}=this;if(l.value&&e){const t=new Wj(e,s);return()=>{t.disconnect(),this.shape=void 0}}},()=>{var e;if(null==(e=this.manager)?void 0:e.dragOperation.status.initialized)return()=>{this.shape=void 0}}]}),t),ez(this,r$),ez(this,ZF,K_(JF,8,this)),K_(JF,11,this),ez(this,n$,K_(JF,12,this)),K_(JF,15,this),this.element=n,this.refreshShape=()=>s()}set element(e){tz(this,r$,e,t$)}get element(){var e;return null!=(e=this.proxy)?e:Q_(this,r$,e$)}};function l$(e){var t;if(null!=e)return function(e){return null!=e&&"object"==typeof e&&"current"in e}(e)?null!=(t=e.current)?t:void 0:e}JF=W_(XF),ZF=new WeakMap,r$=new WeakSet,n$=new WeakMap,QF=X_(JF,20,"#element",KF,r$,ZF),e$=QF.get,t$=QF.set,X_(JF,4,"proxy",YF,s$,n$),Y_(JF,s$);var u$="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?j:D;function c$(){const e=M(0)[1];return O(()=>{e(e=>e+1)},[e])}function d$(e,t=[],r=!1){const n=P(e);return n.current=e,function(e,t=!1){const r=P(e.peek()),n=P(!1),o=c$();return u$(()=>JT(()=>{const i=r.current,a=e.value;if(i!==a){if(r.current=a,!n.current)return;t?W(o):o()}}),[e,t,o]),{get value(){return n.current=!0,e.peek()}}}(A(()=>$O(()=>n.current()),t),r)}function p$(e,t){const r=P(new Map),n=c$();return u$(()=>{if(e)return JT(()=>{var o;let i=!1,a=!1;for(const n of r.current){const[s]=n,l=DT(()=>n[1]),u=e[s];l!==u&&(i=!0,r.current.set(s,u),a=null!=(o=null==t?void 0:t(s,l,u))&&o)}i&&(a?W(n):n())});r.current.clear()},[e]),A(()=>e?new Proxy(e,{get(e,t){const n=e[t];return r.current.set(t,n),n}}):e,[e])}function f$(e,t){e()}function h$(e){const t=P(e);return u$(()=>{t.current=e},[e]),t}function m$(e,t,r=D,n=Object.is){const o=P(e);r(()=>{const r=o.current;n(e,r)||(o.current=e,t(e,r))},[t,e])}function g$(e,t){const r=P(l$(e));u$(()=>{const n=l$(e);n!==r.current&&(r.current=n,t(n))})}var b$=Object.getOwnPropertySymbols,v$=Object.prototype.hasOwnProperty,y$=Object.prototype.propertyIsEnumerable,x$=I(new i$),S$=N(q(({children:e},t)=>{const[r,n]=M(0),o=P(null),i=P(null),a=A(()=>({renderer:{get rendering(){var e;return null!=(e=o.current)?e:Promise.resolve()}},trackRendering(e){o.current||(o.current=new Promise(e=>{i.current=e})),z(()=>{e(),n(e=>e+1)})}}),[]);return u$(()=>{var e;null==(e=i.current)||e.call(i),o.current=null},[e,r]),F(t,()=>a),null})),w$=[void 0,HO];function C$(e){var t=e,{children:r,onCollision:n,onBeforeDragStart:o,onDragStart:i,onDragMove:a,onDragOver:s,onDragEnd:l}=t,u=((e,t)=>{var r={};for(var n in e)v$.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&b$)for(var n of b$(e))t.indexOf(n)<0&&y$.call(e,n)&&(r[n]=e[n]);return r})(t,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);const c=P(null),{plugins:d,modifiers:p,sensors:f}=u,h=FN(d,o$.plugins),m=FN(f,o$.sensors),g=FN(p,o$.modifiers),b=h$(o),v=h$(i),y=h$(s),x=h$(a),S=h$(l),w=h$(n),C=function(e){const t=P(null);t.current||(t.current=e());return _(()=>()=>{var e;return null==(e=t.current)?void 0:e.destroy()},[]),t.current}(()=>{var e;return null!=(e=u.manager)?e:new i$(u)});return D(()=>{if(!c.current)throw new Error("Renderer not found");const{renderer:e,trackRendering:t}=c.current,{monitor:r}=C;C.renderer=e;const n=[r.addEventListener("beforedragstart",e=>{const r=b.current;r&&t(()=>r(e,C))}),r.addEventListener("dragstart",e=>{var t;return null==(t=v.current)?void 0:t.call(v,e,C)}),r.addEventListener("dragover",e=>{const r=y.current;r&&t(()=>r(e,C))}),r.addEventListener("dragmove",e=>{const r=x.current;r&&t(()=>r(e,C))}),r.addEventListener("dragend",e=>{const r=S.current;r&&t(()=>r(e,C))}),r.addEventListener("collision",e=>{var t;return null==(t=w.current)?void 0:t.call(w,e,C)})];return()=>n.forEach(e=>e())},[C]),m$(h,()=>C&&(C.plugins=h),...w$),m$(m,()=>C&&(C.sensors=m),...w$),m$(g,()=>C&&(C.modifiers=g),...w$),ur.jsxs(x$.Provider,{value:C,children:[ur.jsx(S$,{ref:c,children:r}),r]})}function E$(){return L(x$)}function R$({children:e,className:t,dropAnimation:r,style:n,tag:o,disabled:i}){var a;const s=P(null),l=E$(),u=null!=(a=d$(()=>null==l?void 0:l.dragOperation.source,[l]).value)?a:null,c="function"==typeof i?i(u):i;D(()=>{if(!s.current||!l||c)return;const e=l.plugins.find(e=>e instanceof rF);return e?(e.overlay=s.current,()=>{e.overlay=void 0}):void 0},[l,c]),D(()=>{if(!l)return;const e=l.plugins.find(e=>e instanceof rF);return e?(e.dropAnimation=r,()=>{e.dropAnimation=void 0}):void 0},[l,r]);const d=A(()=>{if(!l)return null;const e=new Proxy(l.registry,{get:(e,t)=>"register"===t||"unregister"===t?A$:e[t]});return new Proxy(l,{get:(t,r)=>"registry"===r?e:t[r]})},[l]);return ur.jsx(x$.Provider,{value:d,children:w(o||"div",{ref:s,className:t,style:n,"data-dnd-overlay":!0},function(){if(!u||c)return null;if("function"==typeof e)return ur.jsx(M$,{source:u,children:e});return e}())})}function A$(){return()=>{}}function M$({children:e,source:t}){return e(p$(t))}var P$,I$,k$,D$,T$,O$=Object.create,L$=Object.defineProperty,q$=Object.getOwnPropertyDescriptor,N$=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),j$=e=>{throw TypeError(e)},_$=["class","method","getter","setter","accessor","field","value","get","set"],z$=e=>void 0!==e&&"function"!=typeof e?j$("Function expected"):e,F$=(e,t,r,n,o)=>({kind:_$[e],name:t,metadata:n,addInitializer:e=>r._?j$("Already initialized"):o.push(z$(e||null))}),$$=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=_$[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,q$(o,r)),h=n.length-1;h>=0;h--)(l=F$(c,r,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>r in e},u.get=e=>e[r],a=(0,n[h])(f[d],l),s._=1,z$(a)&&(f[d]=a);return f&&L$(o,r,f),o},H$=(e,t,r)=>t.has(e)||j$("Cannot "+r),B$=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,r){return new e(t.x-r.x,t.y-r.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:r}){return new e(t,r)}},W$=class extends(k$=YO,I$=[WO],P$=[WO],k$){constructor(e){var t,r,n;super(B$.from(e),(e,t)=>B$.equals(e,t)),((e,t,r)=>{for(var n=0,o=e[t>>1],i=o&&o.length;n<i;n++)o[n].call(r)})(T$,5,this),t=this,n=0,(r=D$).has(t)?j$("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,n),this.velocity={x:0,y:0}}get delta(){return B$.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const r={x:e.x-t.x,y:e.y-t.y};return r.x||r.y?Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,r=B$.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(H$(a=this,s=D$,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);IT(()=>{((e,t,r)=>{H$(e,t,"write to private field"),t.set(e,r)})(this,D$,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r})}reset(e=this.defaultValue){super.reset(B$.from(e)),this.velocity={x:0,y:0}}};T$=(e=>{var t;return[,,,O$(null!=(t=null==e?void 0:e[N$("metadata")])?t:null)]})(k$),D$=new WeakMap,$$(T$,2,"delta",I$,W$),$$(T$,2,"direction",P$,W$),((e,t)=>{((e,t,r)=>{t in e?L$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(t,N$("metadata"),e[3])})(T$,W$);var V$=(e=>(e.Horizontal="x",e.Vertical="y",e))(V$||{});function U$(e){const t=E$();D(()=>{if(!t)return;const r=Object.entries(e).reduce((e,[r,n])=>{if(n){const o=r.replace(/^on/,"").toLowerCase(),i=t.monitor.addEventListener(o,n);e.push(i)}return e},[]);return()=>r.forEach(e=>null==e?void 0:e())},[t,e])}Object.values(V$);const G$=()=>{const[e,t]=M(!1);return U$({onDragStart:()=>{t(!0)},onDragEnd:()=>{t(!1)}}),e?ur.jsx("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:100}}):null},Y$=(e,{atTop:t,atBottom:r},n)=>({borderLeftColor:e.grid.border,borderRightColor:e.grid.border,borderTopColor:!n&&r?e.grid.divider:e.grid.border,borderBottomColor:n&&!t||!n&&t?e.grid.divider:e.grid.border}),K$=lR(e=>{const t=e(TR),r=e(nA);if(void 0!==r)return async(e,n)=>{const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:s,isActivelySorted:l}=e,u=o?i:i-t,c=await r.getEffectiveProperties(),d=c.qHyperCubeDef.qInterColumnSortOrder,p=[],f=n!==s||l;if(!o){const e=c.qHyperCubeDef.qMeasures.at(u)?.qSortBy;void 0===e?.qSortByNumeric&&p.push({qPath:`/qHyperCubeDef/qMeasures/${u}/qSortBy`,qOp:"Replace",qValue:JSON.stringify({...e,qSortByNumeric:"A"===s?1:-1})})}l||(d.splice(d.indexOf(i),1),d.unshift(i),p.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${d.join(",")}]`})),f&&p.push({qPath:`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${u}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),r.applyPatches(p,!0)}}),X$=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n})=>(e>r?e--:t>r&&(t--,e=n),[t,e]),J$=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n,lastRowIdx:o})=>(e<n?e++:t<o&&(t++,e=r),[t,e]),Z$=e=>e.atTop?2:1,Q$=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],eH=e=>e?.setAttribute("tabIndex","0"),tH=e=>e?.setAttribute("tabIndex","-1"),rH=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(tH)},nH=e=>{e?.focus(),eH(e)},oH=e=>{setTimeout(()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${yE}`);nH(t)},0)},iH=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o,direction:i})=>{rH(t);const a=((e,t,r,n,o={top:0,bottom:0})=>{const i=o.top>0,a=o.top,s=t.getElementsByClassName("sn-table-row").length-1-o.bottom,l=t.getElementsByClassName("sn-table-head-cell").length-1;let[u,c]=r;switch(e.key){case vE.Down:u<s&&u++;break;case vE.Up:u>a&&u--;break;case vE.Right:if(i)break;[u,c]="rtl"===n?X$({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0}):J$({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case vE.Left:if(i)break;[u,c]="rtl"===n?J$({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):X$({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0});break;case vE.Home:(hT(e)||i)&&(u=a),i||(c=0);break;case vE.End:(hT(e)||i)&&(u=s),i||(c=l);break;case vE.PageDown:u=Math.min(s,u+10);break;case vE.PageUp:u=Math.max(a,u-10)}return[u,c]})(e,t,r,i,o),s=Q$(t,a);return nH(s),((e,t)=>{const r=t.getElementsByClassName("sn-table-container")[0];if(!r?.scrollTo)return;const[n,o]=e;if(n<2)r.scrollTo({top:0,behavior:"auto"});else{const e=t.getElementsByClassName("sn-table-head-cell")[0],i=t.getElementsByClassName("sn-table-row")[n].getElementsByClassName("sn-table-cell")[o];if(!i||!e)return;if(i.offsetTop-e.offsetHeight<r.scrollTop){const t=r.scrollTop-i.offsetHeight-e.offsetHeight;r.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})(a,t),n(a),{nextCell:s,nextCellCoord:a}},aH=(e,t,r,n)=>{rH(t),r(e),n.enabled&&!n.active?n.focus?.():nH(Q$(t,e))},sH=(e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!!n?.contains(o),a=o?.closest(`.${mE}`);!r.enabled||i||a||t.current||!n||((e=>{const t=e.querySelector(`.${QM.First}`),r=e.querySelector(`.${QM.Second}`);t&&r&&(t.innerHTML="",r.innerHTML="")})(n),r.blur?.(!1))},lH=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10M3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0zM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0"})})),uH=Pc(nm,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"color"!==e})(({headerStyle:e,interactions:t,hoverBackground:r,background:n,color:o})=>({...bP,...e,cursor:t.active?"pointer":"default",background:n,color:o,verticalAlign:"bottom",boxSizing:"border-box","&&:focus-visible, &&:hover:not(:has(button:hover))":{background:t.active?r:n}})),cH=Pc("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})(({align:e,dir:t})=>({minWidth:hP,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}})),dH=parseInt(hP,10)/2,pH=Pc("div")({position:"absolute",bottom:-dH,left:`calc(50% - ${dH}px)`}),fH=Pc(ym)({position:"sticky",top:0,zIndex:1}),hH={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},mH=Pc(vp)({height:"100%"}),gH=Pc("span",{shouldForwardProp:e=>"lineClamp"!==e&&"isHeadCell"!==e&&"isPagination"!==e&&"isNumeric"!==e})(({lineClamp:e,isHeadCell:t=!1,isPagination:r=!1,isNumeric:n=!1})=>n||1===e&&!t?{...hH,whiteSpace:"nowrap",display:r?"block":void 0}:{...hH,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"}),bH=Pc("div")({display:"grid",gridAutoFlow:"column",width:"100%",gridAutoColumns:"1fr auto",gap:"4px"}),vH="cell-text",yH=({children:e,forwardRef:t,isNumeric:r=!1,isPagination:n=!1,isHeadCell:o=!1,lineClamp:i})=>{const a=xR(kk);return o?ur.jsx(gH,{"data-testid":vH,ref:t,className:"sn-table-cell-text",lineClamp:a.grid.headerLineClamp,isPagination:n,isHeadCell:!0,style:{direction:r?"ltr":void 0},children:e}):ur.jsx(gH,{"data-testid":vH,ref:t,className:"sn-table-cell-text",isNumeric:r,lineClamp:i??a.grid.contentLineClamp,isPagination:n,style:{direction:r?"ltr":void 0},children:e})},xH=e=>{const{column:t,isInteractionEnabled:r,open:n,setOpen:o,isPagination:i,forwardRef:a}=e,s=xR(OR),l=xR(K$),u=xR(KR),c=xR($R),d=xR(RR),p=xR(pA),f=xR(CR),h=xR(qk)[t.pageColIdx],m=xR(rA),g=P(null),b=P(null),v=(({column:e,columnWidth:t})=>{const r=xR(kk),{measureText:n}=oE({fontSize:r.header.fontSize,fontFamily:r.header.fontFamily,fontWeight:mP});let o=!1,i=!1,a=!1;const s=e.isLocked,l=e.isActivelySorted,u=t-25,c=s?20:0,d=l?20:0;let p=n(e.label);return s&&p+c<=u&&(a=!0,p+=c,l&&p+d<=u&&(i=!0,p+=d)),!s&&l&&p+d<=u&&(i=!0,p+=d),p+24<=u&&(o=!0,p+=24),{shouldShowMenuIcon:o,shouldShowSortIcon:i,shouldShowLockIcon:a}})({column:t,columnWidth:h}),{StartIcon:y,EndIcon:x,LockIcon:S}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n},o)=>{const i="A"===e?ur.jsx(vD,{height:hP,"data-testid":"head-cell-sort-ascending-icon"}):ur.jsx(SD,{height:hP,"data-testid":"head-cell-sort-descending-icon"}),a=r?ur.jsx(cH,{align:t,dir:o,children:i}):void 0,s=n?ur.jsx(kP,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:ur.jsx(lH,{height:hP,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(t,v,u);return ur.jsxs(IP,{shouldShowMenuIcon:v.shouldShowMenuIcon,shouldShowLockIcon:v.shouldShowLockIcon,alignment:wP(t,i,u),children:[S,ur.jsxs(PP,{className:"sn-table-head-label",textAlign:t.headTextAlign,direction:u,isPagination:i,children:[y,ur.jsx(yH,{forwardRef:a,isPagination:i,isHeadCell:!0,children:t.label}),x]}),r?ur.jsxs(ur.Fragment,{children:[ur.jsx(qD,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:g,menuAvailabilityFlags:{[TD.Sorting]:!0,[TD.Searching]:!0,[TD.Selections]:!0,[TD.AdjusterHeaderSize]:!0},open:n,setOpen:o,interactions:c,sortRelatedArgs:{sortFromMenu:(e,r)=>(e.stopPropagation(),l?.(t,r)??Promise.resolve())},searchRelatedArgs:{embed:d,listboxRef:b},selectionRelatedArgs:{app:f,qStateName:s},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:oH},shouldShowMenuIcon:v.shouldShowMenuIcon,model:m,direction:u,isPagination:i,isAccessibleHeader:!0}),ur.jsx(MP,{ref:b,direction:u,isPagination:i}),ur.jsx(MP,{ref:g,direction:u})]}):null]})},SH=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M6 2h10V1H6zm5 5h5V6h-5zm5 5h-5v-1h5zM5 10h1v2.663a3.5 3.5 0 1 0-2.922.036l-.406.914A4.501 4.501 0 1 1 7.329 13H9v1H5z"})})),wH=(e,t)=>e.isCyclic&&t,CH=({column:e})=>{const t=xR(kk),r=xR(KR),n=xR(rA),o=S.useRef(null),[i,a]=S.useState(!1),s=Vk({model:n,headerData:{...e,dimensionInfoIndex:e.colIdx}});return ur.jsxs(ur.Fragment,{children:[ur.jsx(TP,{hoverBackground:e.headerColor?.headerMenuHoverBackground??t.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??t.headerMenuActiveBackground,isActive:i,tabIndex:-1,onClick:e=>{e.stopPropagation(),a(!0)},children:ur.jsx(SH,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),ur.jsx(pD,{open:i,onClose:()=>{a(!1)},menuGroups:[[{items:e.groupDimensionLabels.map((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),a(!1),s?.(r)},enabled:!0,icon:wD,isActive:e.groupDimensionPos===r}))}]],anchorEl:o.current,direction:r,isPagination:!1})]})},EH=e=>e.isLocked,RH=({column:e})=>{const t=xR(CR),r=xR(OR),n=xR(kk);return ur.jsx(TP,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??n.headerMenuHoverBackground,onClick:n=>{n.stopPropagation(),(async(e,t,r)=>{const n=hD(t??"$",r);let o;try{const t=await(e?.createSessionObject(n));o=t?.id,await(t?.unlock("/qListObjectDef"))}catch(e){console.error("Failed to unlock field from table header",e)}finally{o&&(await(e?.destroySessionObject(o))||console.error("Failed to destroy session object when unlocking field from table header"))}})(t,r,e)},children:ur.jsx(lH,{height:16,"data-testid":"head-cell-lock-icon"})})},AH=({column:e,menuIconRef:t,open:r,setOpen:n})=>{const o=xR(kk);return ur.jsx(TP,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??o.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??o.headerMenuActiveBackground,isActive:r,order:e.isDim?void 0:-1,onClick:e=>{e.stopPropagation(),n(e=>!e)},ref:t,children:ur.jsx(Wk,{height:16})})},MH=({anchorRef:e,column:t,isPagination:r,listboxRef:n,open:o,setOpen:i})=>{const a=xR(CR),s=xR(KR),l=xR(RR),u=xR($R),c=xR(rA),d=xR(OR),p=xR(pA),f=xR(K$);return ur.jsx(qD,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:e,menuAvailabilityFlags:{[TD.Sorting]:!0,[TD.Searching]:!0,[TD.Selections]:!0,[TD.AdjusterHeaderSize]:!0},open:o,setOpen:i,interactions:u,sortRelatedArgs:{sortFromMenu:(e,r)=>(e.stopPropagation(),f?.(t,r)??Promise.resolve())},searchRelatedArgs:{embed:l,listboxRef:n},selectionRelatedArgs:{app:a,qStateName:d},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:oH},shouldShowMenuIcon:!1,model:c,direction:s,isPagination:r})},PH=lR();PH.onMount=e=>{const t=new Map,r=new ResizeObserver(e=>{for(const r of e){const e=t.get(r.target);e&&e.current(r)}});return e({callbacks:t,observer:r}),()=>{t.clear(),r.disconnect()}};const IH=({ref:e,callback:t})=>{const r=xR(PH),n=P(t);n.current=t,j(()=>{const t=e.current;return void 0===r?()=>{}:(t&&(r.callbacks.set(t,n),r.observer.observe(t)),()=>{t&&(r.callbacks.delete(t),r.observer.unobserve(t))})},[e,n,r])},kH=Pc(vp)({display:"flex",alignItems:"center",justifyContent:"center",width:"100%",boxSizing:"border-box"}),DH=({children:e})=>{const t=S.useRef(null),[r,n]=M(()=>new Set(e.filter(({props:e})=>void 0!==e.prio&&e.children).map(({key:e})=>e))),o=A(()=>Array.from(e).sort((e,t)=>(e.props.prio??-1/0)-(t.props.prio??-1/0)),[e]),i=O(e=>{const t=new Set,r=e.contentBoxSize.at(0)?.inlineSize??0;let i=0;o.forEach(e=>{if(e.props.ignore||!e.props.children)return;const n=e.props.minWidth+1;void 0===e.props.prio||i+n<=r?i+=n:t.add(e.key)}),n(e=>e.size===t.size&&[...e].every(e=>t.has(e))?e:t)},[o]);return IH({ref:t,callback:i}),ur.jsx(kH,{ref:t,"data-testid":"responsive-container",children:e.filter(e=>!r.has(e.key))})},TH=({children:e})=>e,OH=(e,t)=>!e.isLocked&&e.isDim&&t,LH=({column:e,open:t,setOpen:r})=>{const n=xR(kk),o=xR(OR),i=xR(KR),a=xR(RR);xR(CR);const s=S.useRef(null),l=O(()=>{r(!1)},[r]),u=fD({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:a,listboxRef:s},selectionRelatedArgs:{qStateName:o},direction:i,onPopoverClose:l});return ur.jsx(TP,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??n.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??n.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),u(),r(!0)},children:ur.jsx(AD,{ref:s,height:16,"data-testid":"head-cell-search-icon"})})},qH=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M2.4 4h11.2a.2.2 0 0 1 .16.32l-5.6 7.467a.2.2 0 0 1-.32 0L2.24 4.32A.2.2 0 0 1 2.4 4"})})),NH=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M13.6 11H2.4a.2.2 0 0 1-.16-.32l5.6-7.467a.2.2 0 0 1 .32 0l5.6 7.467a.2.2 0 0 1-.16.32"})})),jH=({column:e})=>{const{sortDirection:t,isActivelySorted:r}=e,n="A"===t?ur.jsx(NH,{height:hP,"data-testid":"head-cell-sort-ascending-icon"}):ur.jsx(qH,{height:hP,"data-testid":"head-cell-sort-descending-icon"});return r?ur.jsx(pH,{children:n}):void 0},_H=0,zH=1,FH=2,$H=3,HH=e=>{const{column:t,open:r,setOpen:n,isPagination:o,forwardRef:i,columnWidth:a,isInteractionEnabled:s}=e,l=xR(kk),u=xR(KR),{measureText:c}=oE(l.header),[d,p]=M(!1),f=P(null),h=P(null),m=P(null),g="number"==typeof a&&a>xE.PixelsMin+18;return ur.jsxs(ur.Fragment,{children:[ur.jsxs(DH,{children:[ur.jsx(TH,{prio:FH,minWidth:AP,children:EH(t)?ur.jsx(RH,{column:t}):null},"Lock"),ur.jsx(TH,{prio:zH,minWidth:AP,children:wH(t,s)?ur.jsx(CH,{column:t}):null},"Cyclic"),ur.jsx(TH,{ignore:!0,children:ur.jsx(jH,{column:t})},"Sort"),ur.jsx(TH,{minWidth:c(t.label)+8,children:ur.jsx(DP,{justifyContent:t.headTextAlign,children:ur.jsx(yH,{forwardRef:i,isPagination:o,isHeadCell:!0,children:t.label})})},"Text"),ur.jsx(TH,{prio:g?void 0:_H,minWidth:AP,children:d||OH(t,s)?ur.jsx(LH,{open:d,setOpen:p,column:t}):null},"Search"),ur.jsx(TH,{prio:$H,minWidth:AP,children:s?ur.jsx(AH,{menuIconRef:m,column:t,open:r,setOpen:n}):null},"Menu")]}),s?ur.jsxs(ur.Fragment,{children:[ur.jsx(MP,{ref:h,direction:u,isPagination:o}),ur.jsx(MP,{ref:f,direction:u}),ur.jsx(MH,{anchorRef:m.current?m:f,column:t,isPagination:o,listboxRef:h,open:r,setOpen:n})]}):null]})},BH=Pc("div",{shouldForwardProp:e=>"background"!==e&&"applicableStyle"!==e&&"color"!==e})(({background:e,applicableStyle:t,color:r})=>({...t,background:e,color:r})),WH=()=>{},VH=({column:e,isPagination:t})=>{const r=xR(kk),n=xR(KR),o=xR(AT),i=xR(fk),a=!1,s=xR(NR)?xH:HH;return ur.jsx(BH,{className:"sn-table-cell",applicableStyle:{...r.header,...Y$(r,i,!0)},style:{cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:EP(n,a,o),borderLeftWidth:RP(n,a,o),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:e.headTextAlign,boxSizing:"border-box",flexDirection:"right"===e.headTextAlign?"row-reverse":"row",userSelect:"none",width:"100%"},background:e.headerColor?.background??r.header.background,color:e.headerColor?.color??r.header.color,children:ur.jsx(s,{column:e,isInteractionEnabled:!1,isPagination:t,open:!1,setOpen:WH})})},UH=({isPagination:e})=>{const t=xR(hk),[r,n]=M();U$({onDragStart:e=>{const t=e.operation.source?.id;n(t)},onDragEnd:()=>{}});const o=r?t.find(e=>e.id===r):void 0;return o?ur.jsx(R$,{children:ur.jsx("div",{style:{background:"white",height:"100%",display:"flex",position:"relative"},children:ur.jsx(VH,{column:o,isPagination:e})})}):null},GH=[qF.configure({activationConstraints:[new DF.Distance({value:5})],preventActivation:e=>{const t=e.target;return t instanceof HTMLElement&&t.classList.contains("nebula-table-utils-column-adjuster")}})],YH=o$.plugins.filter(e=>e!==dz),KH=({children:e})=>{const t=xR(nA),r=xR(hk);return ur.jsx(C$,{onDragOver:e=>{const n=e.operation.source?.id,o=e.operation.target?.id;void 0!==o&&n!==o&&(async(e,t,r,n)=>{if(!e)return;const o=t.findIndex(e=>e.id===r),i=t.findIndex(e=>e.id===n),a=[...t],[s]=a.splice(o,1);a.splice(i,0,s);const l=[{qPath:"/qHyperCubeDef/qColumnOrder",qOp:"Replace",qValue:`[${a.map(e=>e.colIdx).join(",")}]`}];e.applyPatches(l,!0)})(t,r,n,o)},sensors:GH,plugins:YH,children:e})};function XH(e,t){const r=P(!1);D(()=>{r.current?e():r.current=!0},t)}const JH=lR(eP),ZH=BM(e=>lR(t=>{const[r,n]=t(JH);return 0===r&&n===e})),QH=()=>{const e=xR(ER);D(()=>{e.notifyIsDoneRendering()})};var eB={SNTable_Accessibility_Ascending:{id:"SNTable.Accessibility.Ascending",locale:{"de-DE":"Aufsteigend","en-US":"Ascending","es-ES":"Ascendente","fr-FR":"Croissant","it-IT":"Crescente","ja-JP":"昇順","ko-KR":"오름차순","nl-NL":"Oplopend","pl-PL":"Rosnąco","pt-BR":"Crescente","ru-RU":"По возрастанию","sv-SE":"Stigande","tr-TR":"Artan","zh-CN":"升序","zh-TW":"遞增"}},SNTable_Accessibility_ColumnOptions:{id:"SNTable.Accessibility.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбцов","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},SNTable_Accessibility_Descending:{id:"SNTable.Accessibility.Descending",locale:{"de-DE":"Absteigend","en-US":"Descending","es-ES":"Descendente","fr-FR":"Décroissant","it-IT":"Decrescente","ja-JP":"降順","ko-KR":"내림차순","nl-NL":"Aflopend","pl-PL":"Malejąco","pt-BR":"Decrescente","ru-RU":"По убыванию","sv-SE":"Fallande","tr-TR":"Azalan","zh-CN":"降序","zh-TW":"遞減"}},SNTable_Accessibility_NavigationInstructions:{id:"SNTable.Accessibility.NavigationInstructions",locale:{"de-DE":"Verwenden Sie die Pfeiltasten, um zwischen den Tabellenzellen zu navigieren, und die Tabulatortaste, um zu den Paginierungssteuerelementen zu wechseln. Drücken Sie die Leertaste in den Kopfzellen, um das Spaltenmenü zu öffnen, und drücken Sie die Leertaste in den Körperzellen, um eine Auswahl zu treffen. Duch die Auswahl wird der Seiteninhalt aktualisiert. Die vollständige Liste der Navigationssteuerungen finden Sie in der Dokumentation.","en-US":"Use arrow keys to navigate between table cells and tab to move to pagination controls. Press space on header cells to open the column menu, press space on body cells to make selections. Selections will cause content on the page to be updated. The full list of navigation controls can be found in the documentation.","es-ES":"Utilice las teclas de flecha para desplazarse entre las celdas de la tabla y la pestaña a fin de pasar a los controles de paginación. Pulse la barra espaciadora en las celdas del encabezado para abrir el menú de columnas; pulse la barra espaciadora en las celdas del cuerpo para realizar selecciones. Las selecciones harán que se actualice el contenido de la página. Encontrará la lista completa de controles de navegación en la documentación.","fr-FR":"Utilisez les touches fléchées pour naviguer parmi les cellules du tableau et la tabulation pour accéder aux commandes de pagination. Appuyez sur la touche Espace dans les cellules d'en-tête pour ouvrir le menu de la colonne. Appuyez sur Espace dans les cellules de corps pour effectuer une sélection. Les sélections actualiseront le contenu de la page. Vous pouvez consulter la liste complète des commandes de navigation dans la documentation.","it-IT":"Utilizzare i tasti freccia per navigare tra le celle della tabella e il tasto TAB per passare ai controlli di paginazione. Premere lo spazio nelle celle dell'intestazione per aprire il menu della colonna; premere lo spazio nelle celle del corpo per effettuare selezioni. Le selezioni determineranno l'aggiornamento del contenuto della pagina. È possibile trovare l'elenco completo dei controlli di navigazione nella documentazione.","ja-JP":"矢印キーで表のセル間を移動し、タブ キーでページネーション コントロールに移動します。ヘッダー セルでスペースを押すと列メニューが開き、ボディ セルでスペースを押すと選択ができます。選択によって、ページのコンテンツが更新されます。ナビゲーション コントロールの全リストは、ドキュメントをご覧ください。","ko-KR":"화살표 키를 사용하여 표 셀 사이를 탐색하고, 탭을 사용하여 페이지 번호 컨트롤로 이동하십시오. 헤더 셀에서 스페이스바를 눌러 열 메뉴를 열고, 본문 셀에서 스페이스바를 눌러 선택하십시오. 선택하면 페이지의 콘텐츠가 업데이트됩니다. 전체 탐색 컨트롤 목록은 설명서에서 확인할 수 있습니다.","nl-NL":"Gebruik de pijltjestoetsen om te navigeren tussen tabelcellen en de Tab-toets om naar besturingselementen voor paginering te gaan. Druk op de spatietoets in koptekstcellen om het kolommenu te openen, druk op de spatietoets in hoofdtekstcellen om selecties te maken. Door selecties te maken, wordt de inhoud op de pagina bijgewerkt. De volledige lijst met besturingselementen voor navigatie vindt u in de documentatie.","pl-PL":"Użyj klawiszy strzałek do poruszania się między komórkami tabeli oraz tabulatora do poruszania się po elementach sterujących stronami. Naciśnij klawisz spacji na komórkach nagłówka, aby otworzyć menu kolumny i naciśnij go na komórkach treści, aby dokonać wyborów. Wybory będą powodować aktualizację zawartości na stronie. Pełną listę nawigacyjnych elementów sterujących można znaleźć w dokumentacji.","pt-BR":"Use as teclas de seta para navegar entre as células da tabela e a tecla Tab para mover para os controles de paginação. Pressione espaço nas células do cabeçalho para abrir o menu da coluna, pressione espaço nas células do corpo para fazer seleções. As seleções farão com que o conteúdo da página seja atualizado. A lista completa de controles de navegação pode ser encontrada na documentação.","ru-RU":"Используйте клавиши со стрелками для перемещения между ячейками таблицы и клавишу табуляции для перехода к элементам управления разбивки на страницы. Нажмите пробел на ячейках заголовка, чтобы открыть меню столбца; нажмите пробел на ячейках тела, чтобы сделать выборки. Выборки приведут к обновлению содержимого страницы. Полный перечень элементов управления навигацией см. в документации.","sv-SE":"Använd piltangenterna för att navigera mellan tabellcellerna och tabbtangenten för att flytta till pagineringskontrollerna. Tryck på mellanslag på rubrikceller för att öppna kolumnmenyn och tryck på mellanslag på innehållsceller för att göra urval. Med urval kommer innehåll på sidan att uppdateras. Den fullständiga listan med navigeringsreglage.","tr-TR":"Tablo hücreleri arasında gezinmek için ok tuşlarını, sayfalandırma kontrollerine geçmek için sekmeyi kullanın. Sütun menüsünü açmak için başlık hücrelerinde boşluğa basın, seçim yapmak için gövde hücrelerinde boşluğa basın. Seçimler, sayfadaki içeriğin güncellenmesine neden olur. Navigasyon kontrollerinin tam listesi belgede bulunabilir.","zh-CN":"使用箭头键在表格单元格之间导航,使用 tab 键移动到分页控件。按标题单元格上的空间打开列菜单,按正文单元格上的空间进行选择。选择将导致页面上的内容更新。导航控件的完整列表可以在文档中找到。","zh-TW":"使用方向鍵以在表格儲存格之間導覽,並使用 Tab 以前往分頁控制。按下標頭儲存格的空白處可開啟欄功能表,按下正文儲存格的空白處可進行選取。選項將會造成更新頁面上的內容。導覽控制的完整清單可見於文件中。"}},SNTable_Accessibility_RowsAndColumns:{id:"SNTable.Accessibility.RowsAndColumns",locale:{"de-DE":"Es werden {0} Zeilen und {1} Spalten angezeigt.","en-US":"Showing {0} rows and {1} columns.","es-ES":"Mostrando {0} filas y {1} columnas.","fr-FR":"Affichage de {0} lignes et de {1} colonnes.","it-IT":"Visualizzazione di {0} righe e {1} colonne.","ja-JP":"{0} 行 {1} 列を表示しています。","ko-KR":"{0}개의 행과 {1}개의 열을 표시합니다.","nl-NL":"{0} rijen en {1} kolommen worden getoond.","pl-PL":"Wyświetlane wiersze: {0} i kolumny: {1}.","pt-BR":"Mostrando {0} linhas e {1} colunas.","ru-RU":"Показаны строки ({0}) и столбцы ({1}).","sv-SE":"Visar {0} rader och {1} kolumner.","tr-TR":"{0} satır ve {1} sütun gösteriliyor.","zh-CN":"正在显示 {0} 行,{1} 列。","zh-TW":"顯示 {0} 列和 {1} 欄。"}},SNTable_MenuItem_AdjustColumnSize:{id:"SNTable.MenuItem.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},SNTable_MenuItem_ClearSelections:{id:"SNTable.MenuItem.ClearSelections",locale:{"de-DE":"Auswahl löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Selecties wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},SNTable_MenuItem_Search:{id:"SNTable.MenuItem.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},SNTable_MenuItem_SelectAll:{id:"SNTable.MenuItem.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},SNTable_MenuItem_SelectAlternative:{id:"SNTable.MenuItem.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},SNTable_MenuItem_SelectExcluded:{id:"SNTable.MenuItem.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},SNTable_MenuItem_SelectPossible:{id:"SNTable.MenuItem.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},SNTable_MenuItem_Selections:{id:"SNTable.MenuItem.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},SNTable_MenuItem_SortAscending:{id:"SNTable.MenuItem.SortAscending",locale:{"de-DE":"Sortierung in aufsteigender Reihenfolge","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Tri par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},SNTable_MenuItem_SortDescending:{id:"SNTable.MenuItem.SortDescending",locale:{"de-DE":"Sortierung in absteigender Reihenfolge","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Tri par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},SNTable_Pagination_DisplayedRowsLabel:{id:"SNTable.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{1}의 {0}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},SNTable_Pagination_FirstPage:{id:"SNTable.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},SNTable_Pagination_LastPage:{id:"SNTable.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},SNTable_Pagination_NextPage:{id:"SNTable.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},SNTable_Pagination_PageStatusReport:{id:"SNTable.Pagination.PageStatusReport",locale:{"de-DE":"Die Seite wurde geändert. Seite {0} von {1} wird angezeigt.","en-US":"Page has changed. Showing page {0} of {1}.","es-ES":"La página ha cambiado. Mostrando página {0} de {1}.","fr-FR":"La page a changé. Affichage de la page {0} sur {1}.","it-IT":"La pagina è cambiata. Visualizzazione pagina {0} di {1}.","ja-JP":"ページが変更されました。{1} ページ中の {0} ページ目を表示しています。","ko-KR":"페이지가 변경되었습니다. {1}의 {0} 페이지를 보여 줍니다.","nl-NL":"Pagina is gewijzigd. Pagina {0} van {1} wordt weergeven.","pl-PL":"Strona się zmieniła Wyświetlanie strony {0} z {1}.","pt-BR":"A página mudou. Mostrando página {0} de {1}.","ru-RU":"Страница изменилась. Показана страница {0} из {1}.","sv-SE":"Sidan har ändrats. Visar sida {0} av {1}.","tr-TR":"Sayfa değişti. Sayfa {0} / {1} gösteriliyor.","zh-CN":"页面已更改。显示页面 {0} / {1}。","zh-TW":"頁面已變更。顯示第 {0} 頁,共 {1} 頁。"}},SNTable_Pagination_PreviousPage:{id:"SNTable.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},SNTable_Pagination_RowsPerPage:{id:"SNTable.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},SNTable_Pagination_RowsPerPageChange:{id:"SNTable.Pagination.RowsPerPageChange",locale:{"de-DE":"Zeilen pro Seite wurden in {0} geändert. Jetzt wird die erste Seite angezeigt.","en-US":"Rows per page has changed to {0}. Now showing the first page.","es-ES":"El número de filas por página ha cambiado a {0}. Mostrando ahora la primera página.","fr-FR":"Le nombre de lignes par page a été remplacé par {0}. Affichage en cours de la première page.","it-IT":"Le righe per pagina sono cambiate a {0}. Viene ora mostrata la prima pagina.","ja-JP":"ページあたりの行数が {0} に変更されました。現在、最初のページを表示しています。","ko-KR":"페이지당 행 수가 {0}(으)로 변경되었습니다. 이제 첫 페이지를 보여 줍니다.","nl-NL":"Aantal rijen per pagina is gewijzigd naar {0}. De eerste pagina wordt nu weergegeven.","pl-PL":"Liczba wierszy na stronę została zmieniona na {0}. Wyświetlana jest pierwsza strona.","pt-BR":"Linhas por página mudou para {0}. Agora mostrando a primeira página.","ru-RU":"Количество строк на странице изменилось на {0}. Теперь отображается первая страница.","sv-SE":"Rader per sida har ändrats till {0}. Nu visas första sidan.","tr-TR":"Sayfa başına satır sayısı {0} olarak değiştirildi. Şimdi ilk sayfa gösteriliyor.","zh-CN":"每页行数已更改为 {0}。现在显示第一页。","zh-TW":"每頁列數已變更為 {0}。現在顯示第一頁。"}},SNTable_Pagination_SelectPage:{id:"SNTable.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}},SNTable_SelectionLabel_DeselectedValue:{id:"SNTable.SelectionLabel.DeselectedValue",locale:{"de-DE":"Die Werteauswahl ist aufgehoben.","en-US":"Value is deselected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur est désélectionnée.","it-IT":"Il valore è deselezionato.","ja-JP":"値が選択解除されました。","ko-KR":"값이 선택 취소되었습니다.","nl-NL":"Selectie van waarde opgeheven.","pl-PL":"Wartość nie jest zaznaczona.","pt-BR":"O valor está desmarcado.","ru-RU":"Выбор значения отменен.","sv-SE":"Val av värde har tagits bort.","tr-TR":"Değer seçimi iptal edildi.","zh-CN":"值已取消选择。","zh-TW":"值已取消選取。"}},SNTable_SelectionLabel_ExitedSelectionMode:{id:"SNTable.SelectionLabel.ExitedSelectionMode",locale:{"de-DE":"Die Werteauswahl ist aufgehoben. Auswahlmodus beendet.","en-US":"Value is deselected. Exited selection mode.","es-ES":"El valor no está seleccionado. Salió del modo de selección.","fr-FR":"La valeur est désélectionnée. Mode de sélection désactivé.","it-IT":"Il valore è deselezionato. Uscita dalla modalità selezione.","ja-JP":"値が選択解除されました。選択モードを終了しました。","ko-KR":"값이 선택 취소되었습니다. 선택 모드를 종료했습니다.","nl-NL":"Selectie van waarde opgeheven. Selectiemodus afgesloten.","pl-PL":"Wartość nie jest zaznaczona. Zakończono tryb wyboru.","pt-BR":"O valor está desmarcado. Modo de seleção encerrado.","ru-RU":"Выбор значения отменен. Выполнен выход из режима выборки.","sv-SE":"Val av värde har tagits bort. Lämnade urvalsläge.","tr-TR":"Değer seçimi iptal edildi. Seçim modundan çıkıldı.","zh-CN":"值已取消选择。已退出选择模式。","zh-TW":"值已取消選取。輸入的選取模式。"}},SNTable_SelectionLabel_NotSelectedValue:{id:"SNTable.SelectionLabel.NotSelectedValue",locale:{"de-DE":"Wert ist nicht ausgewählt.","en-US":"Value is not selected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur n'est pas sélectionnée.","it-IT":"Il valore non è selezionato.","ja-JP":"値が選択されていません。","ko-KR":"값이 선택되지 않았습니다.","nl-NL":"Waarde is niet geselecteerd.","pl-PL":"Wartość nie jest wybrana.","pt-BR":"O valor não está selecionado.","ru-RU":"Значение не выбрано.","sv-SE":"Värdet är inte valt.","tr-TR":"Değer seçilmedi.","zh-CN":"未选择值。","zh-TW":"未選取值。"}},SNTable_SelectionLabel_OneSelectedValue:{id:"SNTable.SelectionLabel.OneSelectedValue",locale:{"de-DE":"Aktuell ist ein Wert ausgewählt.","en-US":"Currently there is one selected value.","es-ES":"Actualmente hay un valor seleccionado.","fr-FR":"Actuellement, une valeur est sélectionnée.","it-IT":"Attualmente è presente un solo valore selezionato.","ja-JP":"現在、値が 1 つ選択されています。","ko-KR":"현재 하나의 값이 선택되었습니다.","nl-NL":"Er is momenteel één waarde geselecteerd.","pl-PL":"Aktualnie jest jedna wybrana wartość.","pt-BR":"Atualmente, há um valor selecionado.","ru-RU":"В настоящее время выбрано одно значение.","sv-SE":"Just nu är ett värde valt.","tr-TR":"Şu anda seçili bir değer var.","zh-CN":"当前有一个已选择的值。","zh-TW":"目前有一個選取的值。"}},SNTable_SelectionLabel_SelectedValue:{id:"SNTable.SelectionLabel.SelectedValue",locale:{"de-DE":"Wert ist ausgewählt.","en-US":"Value is selected.","es-ES":"El valor está seleccionado.","fr-FR":"La valeur est sélectionnée.","it-IT":"Il valore è selezionato.","ja-JP":"値が選択されました。","ko-KR":"값이 선택되었습니다.","nl-NL":"Waarde is geselecteerd.","pl-PL":"Wartość jest wybrana.","pt-BR":"O valor está selecionado.","ru-RU":"Значение выбрано.","sv-SE":"Värdet är valt.","tr-TR":"Değer seçildi.","zh-CN":"已选择值。","zh-TW":"已選取值。"}},SNTable_SelectionLabel_SelectedValues:{id:"SNTable.SelectionLabel.SelectedValues",locale:{"de-DE":"Aktuell sind {0} Werte ausgewählt.","en-US":"Currently there are {0} selected values.","es-ES":"Actualmente hay {0} valores seleccionados.","fr-FR":"Actuellement, {0} valeurs sont sélectionnées.","it-IT":"Attualmente sono presenti {0} valori selezionati.","ja-JP":"現在、値が {0} つ選択されています。","ko-KR":"현재 {0}개의 값이 선택되었습니다.","nl-NL":"Er zijn momenteel {0} geselecteerde waarden.","pl-PL":"Liczba aktualnie wybranych wartości: {0}.","pt-BR":"Atualmente, há {0} valores selecionados.","ru-RU":"В настоящее время выбраны значения: {0}.","sv-SE":"Just nu är {0} värden valda.","tr-TR":"Şu anda seçili {0} değer var.","zh-CN":"当前有 {0} 个已选择的值。","zh-TW":"目前有 {0} 個選取的值。"}},SNTable_SelectionLabel_SelectionsConfirmed:{id:"SNTable.SelectionLabel.SelectionsConfirmed",locale:{"de-DE":"Auswahl bestätigt.","en-US":"Selections confirmed.","es-ES":"Confirmadas las selecciones.","fr-FR":"Sélections confirmées.","it-IT":"Selezioni confermate.","ja-JP":"選択が確定されました。","ko-KR":"선택 내용이 확인되었습니다.","nl-NL":"Selecties bevestigd.","pl-PL":"Potwierdzono wybory.","pt-BR":"Seleções confirmadas.","ru-RU":"Выборки подтверждены.","sv-SE":"Valen har bekräftats.","tr-TR":"Seçimler onaylandı.","zh-CN":"选择已确认。","zh-TW":"選項已確認。"}},SNTable_SelectionLabel_selected:{id:"SNTable.SelectionLabel.selected",locale:{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбрано","sv-SE":"Urval","tr-TR":"Seçildi","zh-CN":"已选择","zh-TW":"已選取"}},SNTable_SortLabel_PressSpaceToSort:{id:"SNTable.SortLabel.PressSpaceToSort",locale:{"de-DE":"Drücken Sie die Leertaste, um nach dieser Spalte zu sortieren","en-US":"Press space to sort on this column","es-ES":"Pulse la barra espaciadora para ordenar en esta columna.","fr-FR":"Appuyez sur Espace pour trier en fonction de cette colonne.","it-IT":"Premere la barra spaziatrice per ordinare questa colonna","ja-JP":"スペース キーを押して、この列をソートします","ko-KR":"이 열을 정렬하려면 스페이스바를 누르십시오.","nl-NL":"Druk op de spatiebalk om sorteren in deze kolom in te schakelen","pl-PL":"Naciśnij spację, aby posortować według tej kolumny","pt-BR":"Pressione espaço para classificar por esta coluna","ru-RU":"Нажмите пробел, чтобы отсортировать по этому столбцу","sv-SE":"Tryck på Blanksteg om du vill sortera efter den här kolumnen","tr-TR":"Bu sütunda sıralama yapmak için boşluk tuşuna basın.","zh-CN":"按下空格键以在该列上排序。","zh-TW":"在此欄按下空格鍵以進行排序"}},SNTable_SortLabel_SortedAscending:{id:"SNTable.SortLabel.SortedAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortiert.","en-US":"Sorted in ascending order.","es-ES":"Ordenado por orden ascendente.","fr-FR":"Tri dans l'ordre croissant.","it-IT":"Ordinato in ordine crescente.","ja-JP":"昇順で並べ替えられます。","ko-KR":"오름차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in oplopende volgorde.","pl-PL":"Posortowane rosnąco.","pt-BR":"Classificado em ordem crescente.","ru-RU":"Сортировка в порядке возрастания.","sv-SE":"Sorterat i stigande ordning.","tr-TR":"Artan düzende sıralanmıştır.","zh-CN":"已按升序排列。","zh-TW":"已依遞增順序排序。"}},SNTable_SortLabel_SortedDescending:{id:"SNTable.SortLabel.SortedDescending",locale:{"de-DE":"In absteigender Reihenfolge sortiert.","en-US":"Sorted in descending order.","es-ES":"Ordenado por orden descendente.","fr-FR":"Tri dans l'ordre décroissant.","it-IT":"Ordinato in ordine decrescente.","ja-JP":"降順で並べ替えられます。","ko-KR":"내림차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in aflopende volgorde.","pl-PL":"Posortowane malejąco.","pt-BR":"Classificado em ordem decrescente.","ru-RU":"Сортировка в порядке убывания.","sv-SE":"Sorterat i fallande ordning.","tr-TR":"Azalan düzende sıralanmıştır.","zh-CN":"已按降序排列。","zh-TW":"已依遞減順序排序。"}}};const tB=lR(e=>{const t=e(pA),r=e(lA);let n;return function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(eB).forEach(t=>{e.add(eB[t])})}(t),({keys:e,politeness:o="polite"})=>{const i=e.map(e=>{if(Array.isArray(e)){const[r,...n]=e;return t.get(r,n)}return t.get(e)}).join(" "),a=r.querySelector(`.${QM.First}`),s=r.querySelector(`.${QM.Second}`);if(!a||!s)return void console.error("could not find aria-live elements, which means accessibility is not working properly");let l;n===QM.First?(l=s,n=QM.Second):(l=a,n=QM.First),l.innerHTML=l.innerHTML.endsWith(" ")?i:`${i} `,l.setAttribute("aria-live",o)}}),rB=(e,t)=>{const r=xR(tB),n=xR(lA),o=xR(vk),i=xR(bk),a=xR(gk),s=xR(fk),[l,u]=wR(JH),c=xR(_R),d=xR(tA);XH(()=>{const t=((e,t,r=!1)=>{const n=[Z$(t),e[1]];return r?n:eP})(l,s,c);(({resetCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(rH(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=Q$(t,e);r.current?(nH(s),r.current=!1):eH(s),n&&(a({keys:[s?.textContent??""]}),fT(a,s,n))})({resetCellCoord:t,rootElement:n,shouldRefocus:e,setFocusedCellCoord:u,isSelectionMode:c,keyboard:d,announce:r})},[a.length,i,o,t])},nB=e=>{const t=xR(KR),r=xR($I);D(()=>{const n=e.current;if(!n)return;const o=e=>{((e,t,r)=>{if(0===e.deltaX)return;e.stopPropagation();const n=r.scrollWidth-r.offsetWidth;let{scrollLeft:o}=r,i=o+e.deltaX;t&&(i=n+i),n>0&&(i<0||i>n+1)&&(e.preventDefault(),o=t?Math.min(0,Math.min(n,i)):Math.max(0,Math.min(n,i)))})(e,"rtl"===t,n)},i=e=>{r.scrollLeft=e.currentTarget?.scrollLeft||0};return n.addEventListener("wheel",o),n.addEventListener("scroll",i),()=>{n.removeEventListener("wheel",o),n.removeEventListener("scroll",i)}},[e,t,r])},oB=e=>{GC(e),hT(e)&&ME(e.currentTarget)},iB=e=>{vT(e.evt)&&(GC(e.evt),iH(e))},aB=e=>{const{evt:t,totalsPosition:r,cell:n,isSelectionMode:o}=e;if(!vT(t))return;GC(t);const i=((e,t)=>[e.pageRowIdx+Z$(t),e.pageColIdx])(n,r),a=((e,t)=>({top:e?Z$(t):0,bottom:e&&t.atBottom?1:0}))(o,r),{nextCell:s,nextCellCoord:l}=iH({...e,cellCoord:i,allowedRows:a});l[0]!==i[0]&&(({evt:e,isSelectionsEnabled:t,cell:r,selectionDispatch:n,announce:o,isSelectionMode:i,nextCell:a})=>{e.shiftKey&&t&&r.isSelectable?n({type:JM.SelectMultiAdd,payload:{cell:r,evt:e,announce:o}}):fT(o,a,i)})({...e,nextCell:s})},sB=e=>{const{evt:t}=e;mT(t)?(({evt:e,totalRowCount:t,rowsPerPage:r,page:n,updateShouldRefocus:o,handleChangePage:i})=>{GC(e);const a=Math.ceil(t/r)-1;e.key===vE.Right&&n<a?(o(),i(n+1)):e.key===vE.Left&&n>0&&(o(),i(n-1))})(e):t.key===vE.Esc?(({evt:e,keyboard:t,isSelectionMode:r})=>{t.enabled&&!r&&(GC(e),t.blur?.(!0))})(e):gT(t.key)&&GC(t)},lB=e=>{const{evt:t,selectionsAPI:r}=e;if(t.currentTarget.classList.contains(XM.Disabled))return void GC(t);const n={...e,isSelectionMode:!!r?.isModal()};switch(t.key){case vE.Space:(({evt:e,cell:t,isSelectionsEnabled:r,selectionDispatch:n,announce:o})=>{GC(e),t.isSelectable&&r&&n({type:JM.Select,payload:{cell:t,evt:e,announce:o}})})(n);break;case vE.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{GC(r),e&&(t?.confirm(),n({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(n);break;case vE.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{e&&(GC(r),t?.cancel(),n({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(n);break;case vE.C:oB(t);break;case vE.Tab:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{const o=e.shiftKey||!n;t.enabled&&r&&o&&(GC(e),UC(e.currentTarget,t,e.shiftKey))})(n);break;default:aB(n)}},uB=e=>{const t=xR(OP),r=SR(LP),n=SR(qP),o=xR(KM),i=P();IH({ref:e,callback:a=>{const s=()=>{if(e.current){const e=a.borderBoxSize.at(0)?.inlineSize??0,t=a.borderBoxSize.at(0)?.blockSize??0,o=a.contentBoxSize.at(0)?.inlineSize??0,i=t-(a.contentBoxSize.at(0)?.blockSize??0);n(e-o),r(i)}};t?(i.current&&o.off("done-adjusting-column-width",i.current),o.once("done-adjusting-column-width",s),i.current=s):s()}}),D(()=>{const e=o;return()=>{i.current&&e.off("done-adjusting-column-width",i.current)}},[o])},cB=Pc("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),dB=Pc(sm,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})(({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"})),pB=Pc(Vh,{shouldForwardProp:e=>"borderRight"!==e})(({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e})),fB=()=>ur.jsxs(ur.Fragment,{children:[ur.jsx(cB,{className:QM.First,"data-testid":QM.First,"aria-live":"polite","aria-atomic":"true"}),ur.jsx(cB,{className:QM.Second,"data-testid":QM.Second,"aria-live":"polite","aria-atomic":"true"})]}),hB=e=>{const t=P(new Map),r=P(null);D(()=>{r.current=e(t.current),t.current.forEach((e,t)=>{r.current?.observe(t)});const n=t.current,o=r.current;return()=>{o.disconnect(),n.clear()}},[e,r,t]);const n=O((e,n)=>{t.current.set(e,n),r.current?.observe(e)},[t,r]),o=O(e=>{t.current.delete(e),r.current?.unobserve(e)},[r,t]);return A(()=>({addTask:n,removeTask:o}),[n,o])},mB=e=>new ResizeObserver(t=>{t.forEach(t=>{const r=e.get(t.target);r?.(t)})}),gB=()=>hB(mB),bB=({updateShouldRefocus:e,tableWrapperRef:t})=>{const r=xR(zR),n=xR(tA),o=SR(ET);D(()=>{const i=()=>{o({type:JM.Reset})},a=()=>{o({type:JM.Clear})},s=()=>{t.current?.contains(document.activeElement)?e():n.enabled&&n.blur?.(!0),i()};return r?.on("deactivated",i),r?.on("canceled",i),r?.on("confirmed",s),r?.on("cleared",a),()=>{r?.removeListener("deactivated",i),r?.removeListener("canceled",i),r?.removeListener("confirmed",s),r?.removeListener("cleared",a)}},[r,n,o,e,t])},vB=e=>{e.stopPropagation()},yB=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:vB,color:FC.LINK,style:{pointerEvents:r.active?"auto":"none",color:n??void 0,opacity:r.active&&r.passive||n?void 0:.4}}),xB=({href:e,text:t,interactions:r,color:n})=>ur.jsx(bf,{...yB({href:e,text:t,interactions:r,color:n}),children:t}),SB=window.requestIdleCallback??(e=>setTimeout(()=>{e({})},0)),wB=window.cancelIdleCallback??(e=>{clearTimeout(e)}),CB="qDimensionInfo/0",EB="qMeasureInfo/0",RB="x",AB="y",MB=e=>({key:"bars",type:"box",data:{extract:{field:CB,props:{start:0,end:{field:EB}}}},settings:{major:{scale:RB},minor:{scale:AB},box:{maxWidthPx:8,fill:{fn:e}}}}),PB=e=>({key:"p",type:"point",data:{extract:{field:CB,props:{y:{field:EB}}}},settings:{x:{scale:RB},y:{scale:AB},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),IB=({qNum:e})=>void 0===e?0:Math.sign(e),kB=(e,t)=>{const{primary:r,nil:n,others:o}=e.getDataColorSpecials(),i=WC(e,t?.negative,r),a=WC(e,t?.positive,r);return{key:"pos-neg",type:"box",data:{extract:{field:CB,props:{start:0,end:{field:EB,value:IB}}}},settings:{major:{scale:RB},minor:{scale:AB},box:{maxWidthPx:8,fill:{fn:e=>-2===e.datum.value?n:-3===e.datum.value?o:0===e.datum.end.value?"#DDDDDD":Math.sign(e.datum.end.value)<0?i:a}}}}},DB=(e,{type:t,showDots:r,colors:n,colorMin:o,colorMax:i})=>{const a=((e,t,r,n)=>{const{primary:o,nil:i,others:a}=e.getDataColorSpecials(),s=WC(e,t?.main,o),l=WC(e,t?.max,s),u=WC(e,t?.min,s),c=WC(e,t?.first,s),d=WC(e,t?.last,s);return e=>{const t=AB in e.datum?AB:"end";return-2===e.datum.value?i:-3===e.datum.value?a:e.datum[t].value>=n?l:e.datum[t].value<=r?u:e.data.items.at(0)===e.datum?c:e.data.items.at(-1)===e.datum?d:s}})(e,n,o,i);switch(t){case"bars":return[MB(a)];case"dots":return[PB(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:CB,props:{v:{field:EB}}}},settings:{coordinates:{major:{scale:RB},minor:{scale:AB,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(WC(e,n?.main,e.getDataColorSpecials().primary));return r?[t,PB(a)]:[t]}case"posNeg":return[kB(e,n)];default:return[]}},TB=e=>({qDimensionInfo:[{qFallbackTitle:"",qCardinal:1}],qMeasureInfo:[{qFallbackTitle:""}],qDataPages:[{qArea:{qTop:0,qLeft:0,qHeight:e.length,qWidth:2},qMatrix:e}],qEffectiveInterColumnSortOrder:[0,1],qSize:{qcx:2,qcy:e.length},qMode:"S"}),OB=(e,t,r,n)=>({y:{data:{field:EB},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:r},x:{data:{extract:{field:CB}},paddingInner:.3,paddingOuter:0,invert:"rtl"===n,align:"rtl"===n?1:0,maxPxStep:12}}),LB=U();LB.use(V),LB.renderer.prio(["canvas"]);const qB={resolve:()=>{},promise:{}},NB=({chart:e,element:t,requestId:r,theme:n,isSnapshot:o,direction:i,miniChartData:a,downloadService:s})=>{const{resolveChartPromise:l,addChartPromiseToQueue:u}=(e=>{const t=P(e.isDownloadedAsPDForImage?Nt():qB);return{addChartPromiseToQueue:O(()=>{e.waitForPromise(t.current.promise)},[e]),resolveChartPromise:t.current.resolve}})(s);return{renderChartWithRequestIdleCallback:O(()=>{if(null===t.current||null!==e.current)return;u();r.current=SB(()=>{t.current&&(e.current=(({element:e,theme:t,isSnapshot:r,miniChartData:n,onChartRendered:o,direction:i})=>{const{type:a,qMatrix:s,minY:l,maxY:u}=n;return LB.chart({element:e,data:{type:"q",key:"qHyperCube",data:TB(s)},settings:{scales:OB(a,l,u,i),components:DB(t,n),strategy:r?{size:{width:e.offsetWidth,height:e.offsetHeight}}:void 0},mounted:()=>{o()}})})({element:t.current,theme:n,isSnapshot:o,miniChartData:a,direction:i,onChartRendered:l}))},{timeout:2e3})},[t,e,u,r,n,o,a,i,l]),safeCancelIdleCallback:O(()=>{null!==r.current&&wB(r.current),r.current=null,l()},[r,l])}},jB=e=>{const t=P(null),r=P(!1);return O(n=>{const o=n.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(wB(e.current),e.current=null)})(t),r.current?0!==o?null!==e.current&&(t.current=SB(()=>{e.current?.update()},{timeout:2e3})):r.current=!1:r.current=!0},[e])},_B=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:r,isSnapshot:n,miniChartData:o,downloadService:i,direction:a})=>{const s=P(null),l=P(null),u=P(null),{renderChartWithRequestIdleCallback:c,safeCancelIdleCallback:d}=NB({element:s,chart:l,requestId:u,theme:r,isSnapshot:n,direction:a,miniChartData:o,downloadService:i});return(({element:e,intersectionObserverTaskScheduler:t,safeCancelIdleCallback:r,renderChartWithRequestIdleCallback:n,chart:o})=>{const i=O(e=>{e.isIntersecting?n():r()},[n,r]);D(()=>{if(!e.current||!t)return()=>{};const n=e.current;return t.addTask(n,i),()=>{t.removeTask(n),r(),o.current?.destroy(),o.current=null}},[o,e,t,r,i])})({element:s,intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:l}),(({renderChartWithRequestIdleCallback:e,safeCancelIdleCallback:t,chart:r,intersectionObserverTaskScheduler:n})=>{D(()=>n?()=>{}:(e(),()=>{t(),r.current?.destroy(),r.current=null}),[n,t,e,r])})({intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:l}),(({element:e,chart:t,resizeObserverTaskScheduler:r})=>{const n=jB(t);D(()=>{const t=e.current;return t?(r.addTask(t,n),()=>{r.removeTask(t)}):()=>{}},[e,n,r])})({element:s,chart:l,resizeObserverTaskScheduler:t}),s},zB=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=_B({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return ur.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},FB=e=>{let t="center",r="center";return"flex-start"===e?.vertical?t="top":"flex-end"===e?.vertical&&(t="bottom"),"flex-start"===e?.horizontal?r="left":"flex-end"===e?.horizontal&&(r="right"),`${r} ${t}`},$B=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},HB=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const o=xR(KR),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,u="fitHeight"===s,c=ur.jsx("img",{src:i,alt:a,style:{...t,width:u?"auto":"100%",height:"100%",maxHeight:r,objectFit:$B(s),objectPosition:FB(l),overflow:"hidden"}});return n?ur.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:u?r:"100%",overflow:"hidden",display:"flex",justifyContent:u?yP(o,e):void 0},children:c}):c},BB=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})})),WB=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})})),VB=q((e,t)=>ur.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[ur.jsx("path",{d:"M3 9v6.5a.5.5 0 1 1-1 0V.5a.5.5 0 0 1 1 0V1q2.441.639 3.667.639c1.225 0 1.774-.995 3.87-1.196q1.972-.19 3.297.47A.3.3 0 0 1 14 1.18v7.344a.3.3 0 0 1-.417.277q-1.338-.565-3.045-.416c-1.98.172-2.083 1.107-3.871 1.253Q4.879 9.785 3 9"}),ur.jsx("use",{fillRule:"evenodd"})]})),UB=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M13.9 7.4c-1 1.3-.6 1.5-1.5 4.1-.5 1.8-1.2 2.9-1.7 3.6q-.45.6-.9.9H4.2c-1 0-1.6-.5-1.9-1-.2-.3-.3-.6-.3-1V4.2c0-.4.3-.7.7-.7s.7.3.7.7v3.6l.9-.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v5.1l1.1-.2V.7C6.7.3 7 0 7.4 0s.7.3.7.7v5.9l1.1.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v7.7s.1 0 .1-.2l.6-1.4c1.1-2.1 3.1-1.1 2.6-.3"})})),GB=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M5 13h6v1.5c0 .3-.2.5-.5.5H10v.5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5V15h-.5c-.3 0-.5-.2-.5-.5zm0-1c0-2-3-3-3-7 0-3 3-5 6-5s6 2 6 5c0 4-3 4-3 7H5m-.5-7c.3 0 .5-.2.5-.5s.2-.7.5-1 .6-.5 1-.5c.3 0 .5-.2.5-.5S6.8 2 6.5 2c-.6 0-1.2.3-1.7.8S4 3.9 4 4.5c0 .3.2.5.5.5"})})),YB=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8m4.5 9c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6h-9c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7z"})})),KB=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M2 7.5h12v1H2z"})})),XB=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M9 7h7a7.004 7.004 0 0 0-7-7zm1-5.917A6.005 6.005 0 0 1 14.917 6H10zM14 9H7V2a7.002 7.002 0 0 0 0 14 7 7 0 0 0 7-7m-8 1h6.917A6.002 6.002 0 0 1 1 9a6 6 0 0 1 5-5.917z"})})),JB=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M9 9h3.5c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6H9V3.5c0-.25-.3-.5-.6-.5h-.7c-.4 0-.7.25-.7.5V7H3.5c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7H7v3.5c0 .25.3.5.6.5h.8c.3 0 .6-.25.6-.5zM8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})})),ZB=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"m8.418 1.007.042.08 1.788 4.217 4.571.388a.5.5 0 0 1 .348.811l-.063.065-3.472 3.008 1.043 4.47a.5.5 0 0 1-.664.581l-.081-.04L8 12.217l-3.93 2.372a.5.5 0 0 1-.757-.453l.012-.089 1.043-4.47L.896 6.568a.5.5 0 0 1 .196-.86l.089-.016 4.571-.388L7.54 1.086a.5.5 0 0 1 .878-.08Z"})})),QB=q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M13 14H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1"})})),eW={m:q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})})),"ï":ZB,R:NH,S:qH,T:q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M11 2.4v11.2a.2.2 0 0 1-.32.16l-7.467-5.6a.2.2 0 0 1 0-.32l7.467-5.6a.2.2 0 0 1 .32.16"})})),U:q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M4 13.6V2.4a.2.2 0 0 1 .32-.16l7.467 5.6a.2.2 0 0 1 0 .32l-7.467 5.6A.2.2 0 0 1 4 13.6"})})),P:JB,Q:YB,"è":q((e,t)=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:ur.jsx("path",{d:"M14.98 15H1.04c-1.002 0-1.303-.7-.802-1.5l6.82-11.9c.5-.8 1.303-.8 1.804 0l6.92 11.9c.501.8.1 1.5-.803 1.5M8.5 5h-1c-.3 0-.5.2-.5.5V9c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5V5.5c0-.3-.2-.5-.5-.5m-1 6c-.3 0-.5.2-.5.5v1c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5v-1c0-.3-.2-.5-.5-.5z"})})),"¢":UB,"©":VB,"23F4":GB,2013:QB,"&":XB,add:BB,"minus-2":KB,dot:WB},tW=({size:e,iconKey:t,color:r,pvStyle:n})=>{const o=t&&eW[t];return o&&ur.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n},children:ur.jsx(o,{style:{height:e}})})},rW=({representation:e,cellValue:t,paginationCellAlign:r})=>{const n=xR(kk),o=xR(KR),i=xR(dA),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=s??{},c=dP(e,t,o,i),d=(e=>parseInt(e||hP,10))(n.measure.values.fontSize),{color:p,iconKey:f,position:h}=c||{};return l?ur.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:r??"flex-end",alignItems:"center",gap:"2px",overflow:"hidden",color:u?p:void 0},children:["left"===h&&tW({size:d,iconKey:f,color:p}),ur.jsx(yH,{isNumeric:!0,children:a}),"right"===h&&tW({size:d,iconKey:f,color:p})]}):tW({size:d,iconKey:f,color:p})},nW=(e,t)=>e.contentStaticLineCount?e.contentLineHeight*(t??e.grid.contentLineClamp):e.contentLineHeight,oW=({forwardRef:e,cell:t,style:r,virtualizedCell:n,lineClamp:o,intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,paginationCellAlign:s})=>{const l=xR(kk),u=xR(ER),c=xR(IR),d=xR(dA),p=xR(KR),f=xR($R),h=xR(_R);if(t.representation.type===JA.Image&&!t.representation.url?.trim())return null;if(t.representation.type===JA.Image)return ur.jsx(HB,{representation:t.representation,textStyle:r,maxImageHeight:nW(l,o),wrapInContainer:!n});let m=t.representation.text;t.representation.type!==JA.Link||h||(m=ur.jsx(xB,{href:t.representation.url,text:t.representation.text,interactions:f,color:r.cellForegroundColor}));const g="string"==typeof(b=t.qIsNull?t.representation.text:t.qNum)&&b.length>0||"number"==typeof b?+b:NaN;var b;return t.representation.type!==JA.Indicator||Number.isNaN(g)?t.representation.type===JA.MiniChart&&t.representation.miniChart&&!t.isNull?ur.jsx(zB,{height:nW(l,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:d,isSnapshot:!!c.snapshotData,direction:p,downloadService:u}):ur.jsx(yH,{forwardRef:e,isNumeric:t.isNumeric,lineClamp:o,isPagination:!n,children:m}):ur.jsx(rW,{representation:t.representation,cellValue:g,paginationCellAlign:n?void 0:s})},iW=()=>ur.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"0.75em",height:"0.75em",children:ur.jsx("path",{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"})}),aW=Pc("div")({"& path":{stroke:"none !important"}}),sW=({children:e,cellSelectionState:t})=>t===XM.Selected?ur.jsxs(bH,{children:[e,ur.jsx(aW,{children:ur.jsx(iW,{})})]}):e,lW=e=>{const t=function(){const e=E$(),t=d$(()=>null==e?void 0:e.dragOperation.source,[e]),r=d$(()=>null==e?void 0:e.dragOperation.target,[e]);return{get source(){return t.value},get target(){return r.value}}}();return t.source&&t.source.id!==e?.5:1},uW=(e,t,r,n)=>({handleMouseDown:n=>{e?.(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{r({type:JM.SelectMultiEnd})};r({type:JM.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:JM.SelectMultiAdd,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:JM.SelectMouseUp,payload:{cell:t,evt:e,announce:n}})}}),cW=e=>{const t=xR(yk),r=xR(fk),n=xR(tB),o=xR(lA),i=xR(KR),a=SR(JH),s=SR(ET),l=xR(tA),u=xR(WR),c=xR(zR),d=d=>{lB({evt:d,rootElement:o,selectionsAPI:c,cell:e,selectionDispatch:s,isSelectionsEnabled:u,setFocusedCellCoord:a,announce:n,keyboard:l,paginationNeeded:t,totalsPosition:r,direction:i})},p=e=>{((e,t)=>{e.key===vE.Shift&&t({type:JM.SelectMultiEnd})})(e,s)},f=()=>{((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;aH([s,a],t,r,n)})(e,o,a,l,r)};if(!u)return{onKeyDown:d,onKeyUp:p,onMouseDown:f};const{handleMouseDown:h,handleMouseOver:m,handleMouseUp:g}=uW(f,e,s,n);return{onKeyDown:d,onKeyUp:p,onMouseDown:h,onMouseUp:g,onMouseOver:m}},dW=e=>{D(()=>()=>{RT.remove(e)},[e])},pW=(e,t,r)=>{if(!r.isNull)return e;const n={...e,...t.nullValues};return t.grid.zebraStripes.show?(t.grid.zebraStripes.overrideNullValueColor&&(n.color=e.color),t.grid.zebraStripes.overrideNullValueBackground&&(n.background=e.background),n):n},fW=(e,t,r)=>{const{color:n,background:o}=e.grid.zebraStripes[r];return{...t,...n?{color:n}:void 0,...o?{background:o}:void 0}},hW=(e,t,r)=>{if(t.grid.zebraStripes.show){const n=(r.rowIdx+1)%2==0;return fW(t,e,n?"even":"odd")}return e},mW=(e,t)=>{const r=xR(kk),n=xR(RT(e));dW(e);let o=t.isDim?r.dimension.values:r.measure.values;o=hW(o,r,e),o=pW(o,r,e);const i=VP(o,e.qAttrExps,t.qAttrExprInfoIDs),a=function(e,t,r){return t===XM.Selected?{...e,...r}:t===XM.Disabled?{...e,background:`${pP}, ${e.background}`}:e}(A(()=>e.isNull?o:VP(o,e.qAttrExps,t.qAttrExprInfoIDs),[o,e.qAttrExps,e.isNull,t.qAttrExprInfoIDs]),n,r.selectedColors);return{cellStyle:{...a,borderColor:r.grid.border},representationStyle:i,cellSelectionState:n}},gW=Pc(Zh,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})(({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}})),bW=Pc(ym,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e&&"height"!==e})(({hover:e,hoverColors:t,height:r})=>({height:r,"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}})),vW=Pc(nm,{shouldForwardProp:e=>"cellStyle"!==e})(({cellStyle:e,theme:t})=>({...bP,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",boxSizing:"border-box",width:"100%",height:"100%"})),yW=Pc(nm,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})(({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...bP,...e,fontWeight:mP,position:"sticky",padding:n.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t?r:void 0,bottom:t?void 0:0,verticalAlign:t?"bottom":"top",boxSizing:"border-box",zIndex:t?1:void 0})),xW=({cell:e,column:t,columnIndex:r,intersectionObserverTaskScheduler:n,resizeObserverTaskScheduler:o})=>{const i=xR(KR),a=xR($R),{onKeyDown:s,onKeyUp:l,onMouseDown:u,onMouseUp:c,onMouseOver:d}=cW(e),{cellStyle:p,representationStyle:f,cellSelectionState:h}=mW(e,t),m=lW(t.id);return ur.jsx(vW,{cellStyle:{...p,opacity:m},scope:0===r?"row":void 0,component:0===r?"th":void 0,align:e.align,tabIndex:-1,className:`sn-table-cell ${h} ${bE}`,title:a.passive?e.representation.text:void 0,onKeyDown:s,onKeyUp:l,onMouseDown:u,onMouseUp:c,onMouseOver:d,children:ur.jsx(sW,{cellSelectionState:h,children:ur.jsx(oW,{cell:e,style:f,intersectionObserverTaskScheduler:n,resizeObserverTaskScheduler:o,paginationCellAlign:CP(i,e.align)})})})},SW=lR(0),wW=({column:e,totalsPosition:t,onKeyDown:r,onMouseDown:n})=>{const o=xR(kk),i=xR(BR),a=xR(SW),s=lW(e.id);return ur.jsx(yW,{totalsStyle:{...o.totalRow,...Y$(o,t,!1),opacity:s},headRowHeight:a,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${bE}`,tabIndex:-1,title:i?e.totalInfo:void 0,onKeyDown:r,onMouseDown:n,children:ur.jsx(yH,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)},CW=()=>{const e=xR(fk),t=xR(hk),r=xR(gk),n=xR(lA),o=xR(HR),i=xR(KR),a=SR(JH),s=xR(_R),l=xR(tA);return ur.jsx(ym,{className:"sn-table-row sn-table-totals-row",children:t.map((t,u)=>{const c=[e.atTop?1:r.length+1,u];return ur.jsx(wW,{column:t,totalsPosition:e,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:r,isInteractionEnabled:n}=e;if(!t&&n)switch(r.key){case vE.C:oB(r);break;case vE.Space:r.preventDefault();break;default:iB(e)}else GC(r)})({evt:e,rootElement:n,cellCoord:c,setFocusedCellCoord:a,isSelectionMode:s,isInteractionEnabled:o,direction:i})},onMouseDown:()=>{aH(c,n,a,l)}},t.id)})})};var EW=N(CW);const RW=({updateShouldRefocus:e,tableWrapperRef:t})=>{const r=xR(gk),n=xR(fk),o=xR(hk),i=xR(kk),a=xR(IR),s=!!$P(a)?.content?.hoverEffect;bB({updateShouldRefocus:e,tableWrapperRef:t});const l=(e=>{const t=O(t=>new IntersectionObserver(e=>{e.forEach(e=>{const r=t.get(e.target);r?.(e)})},{root:e.current}),[e]);return hB(t)})(t),u=gB();return ur.jsxs(gW,{lastRowBottomBorder:i.grid.lastRowBottomBorder,children:[n.atTop?ur.jsx(EW,{}):void 0,r.map((e,t)=>ur.jsx(bW,{hoverColors:i.grid.hoverColors,hover:s,tabIndex:-1,className:"sn-table-row sn-table-data-row",height:i.contentMinRowHeight,children:o.map((t,r)=>{const{id:n}=t,o=e[r];return ur.jsx(xW,{columnIndex:r,cell:o,column:t,intersectionObserverTaskScheduler:l,resizeObserverTaskScheduler:u},n)})},`row-${t}`)),n.atBottom?ur.jsx(EW,{}):void 0]})};var AW=N(RW);const MW=(e,t)=>!!e?.skipHeader||!!t.hideHeader,PW=lR(e=>{const t=e(IR),r=e(rA);if(r)return(e,{isDim:n,colIdx:o})=>{const i=n?o:o-t.qHyperCube.qDimensionInfo.length,a=`/qHyperCubeDef/${n?"qDimensions":"qMeasures"}/${i}/qDef/columnWidth`,s=t.qHyperCube[n?"qDimensionInfo":"qMeasureInfo"].at(i)?.columnWidth,l=s?{qPath:a,qOp:"Replace",qValue:JSON.stringify({...s,...e})}:{qPath:a,qOp:"Add",qValue:JSON.stringify(e)};r.applyPatches([l],!0)}}),IW=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,a=xR(PW),s=xR(KR),l=xR(HR),u=xR(pA),[c,d]=wR(qk);if(!l)return null;return ur.jsx(Bk,{columnWidth:c.at(o)??0,isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{r?.();const t=[...c];t[o]=e,d(t)},confirmWidthCallback:t=>{a?.(t,e)},handleBlur:e=>{(e=>{tH(e);const t=e.closest(".sn-table-cell");nH(t)})(e.currentTarget)},setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:u,columnLabel:i},direction:s})},kW=e=>e.target?.getAttribute("class")?.includes(yE),DW=({isInteractionEnabled:e,column:t})=>{const[r,n]=M(!1),o=xR(K$),i=xR(OP);return{open:r,setOpen:n,handleOpenMenu:t=>{!e||kW(t)||i||n(!0)},toggleSortOrder:r=>{e&&!kW(r)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(r)&&(r.stopPropagation(),o?.(t,"A"===t.sortDirection?"D":"A"))}}};var TW=Object.defineProperty,OW=Object.defineProperties,LW=Object.getOwnPropertyDescriptors,qW=Object.getOwnPropertySymbols,NW=Object.prototype.hasOwnProperty,jW=Object.prototype.propertyIsEnumerable,_W=(e,t,r)=>t in e?TW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,zW=(e,t)=>{for(var r in t||(t={}))NW.call(t,r)&&_W(e,r,t[r]);if(qW)for(var r of qW(t))jW.call(t,r)&&_W(e,r,t[r]);return e},FW=(e,t)=>OW(e,LW(t)),$W=class extends NN{apply({transform:e}){if(!this.options)return e;const{axis:t,value:r}=this.options;return FW(zW({},e),{[t]:r})}};$W.configure=rq($W);var HW=$W;HW.configure({axis:"x",value:0}),HW.configure({axis:"y",value:0});var BW=class extends NN{apply({transform:e}){var t;const{size:r=20}=null!=(t=this.options)?t:{},n="number"==typeof r?r:r.x,o="number"==typeof r?r:r.y;return FW(zW({},e),{x:Math.ceil(e.x/n)*n,y:Math.ceil(e.y/o)*o})}};BW.configure=rq(BW);var WW=class extends NN{constructor(e,t){super(e,t),this.boundingRectangle=$T(null),this.destroy=JT(()=>{if(!this.options)return;const{dragOperation:t}=e,{status:r}=t;if(r.initialized){const{element:e}=this.options,r="function"==typeof e?e(t):e;if(!r)return;let n;const o=()=>{this.boundingRectangle.value=XN(r)},i=()=>{n||(n=setTimeout(()=>{o(),n=void 0},25))},a=new ResizeObserver(o);return a.observe(r),document.addEventListener("scroll",i,{passive:!0,capture:!0}),()=>{document.removeEventListener("scroll",i,{capture:!0}),a.disconnect(),this.boundingRectangle.value=null}}})}apply(e){const{shape:t,transform:r}=e;if(!t)return r;const n=this.boundingRectangle.value;if(!n)return r;const{initial:o,current:i}=t,{height:a,width:s}=i.boundingRectangle,l=o.center.x-s/2,u=o.center.y-a/2,c=function(e,t,r){const n=zW({},t);return e.boundingRectangle.top+t.y<=r.top?n.y=r.top-e.boundingRectangle.top:e.boundingRectangle.bottom+t.y>=r.top+r.height&&(n.y=r.top+r.height-e.boundingRectangle.bottom),e.boundingRectangle.left+t.x<=r.left?n.x=r.left-e.boundingRectangle.left:e.boundingRectangle.right+t.x>=r.left+r.width&&(n.x=r.left+r.width-e.boundingRectangle.right),n}(new bL(l,u,s,a),r,n);return c}};WW.configure=rq(WW);var VW=WW,UW=Object.create,GW=Object.defineProperty,YW=Object.defineProperties,KW=Object.getOwnPropertyDescriptor,XW=Object.getOwnPropertyDescriptors,JW=Object.getOwnPropertySymbols,ZW=Object.prototype.hasOwnProperty,QW=Object.prototype.propertyIsEnumerable,eV=e=>{throw TypeError(e)},tV=(e,t,r)=>t in e?GW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rV=(e,t)=>{for(var r in t||(t={}))ZW.call(t,r)&&tV(e,r,t[r]);if(JW)for(var r of JW(t))QW.call(t,r)&&tV(e,r,t[r]);return e},nV=(e,t)=>YW(e,XW(t)),oV=["class","method","getter","setter","accessor","field","value","get","set"],iV=e=>void 0!==e&&"function"!=typeof e?eV("Function expected"):e,aV=(e,t,r,n,o)=>({kind:oV[e],name:t,metadata:n,addInitializer:e=>r._?eV("Already initialized"):o.push(iV(e||null))}),sV=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},lV=(e,t,r,n,o,i)=>{for(var a,s,l,u,c,d=7&t,p=e.length+1,f=oV[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(o=o.prototype,KW({get[r](){return cV(this,i)},set[r](e){return pV(this,i,e)}},r)),b=n.length-1;b>=0;b--)(u=aV(d,r,l={},e[3],m)).static=false,u.private=false,c=u.access={has:e=>r in e},c.get=e=>e[r],c.set=(e,t)=>e[r]=t,s=(0,n[b])({get:g.get,set:g.set},u),l._=1,void 0===s?iV(s)&&(g[f]=s):"object"!=typeof s||null===s?eV("Object expected"):(iV(a=s.get)&&(g.get=a),iV(a=s.set)&&(g.set=a),iV(a=s.init)&&h.unshift(a));return g&&GW(o,r,g),o},uV=(e,t,r)=>t.has(e)||eV("Cannot "+r),cV=(e,t,r)=>(uV(e,t,"read from private field"),t.get(e)),dV=(e,t,r)=>t.has(e)?eV("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),pV=(e,t,r,n)=>(uV(e,t,"write to private field"),t.set(e,r),r);function fV(e){return e instanceof BV||e instanceof HV}var hV=Object.defineProperty,mV=Object.defineProperties,gV=Object.getOwnPropertyDescriptors,bV=Object.getOwnPropertySymbols,vV=Object.prototype.hasOwnProperty,yV=Object.prototype.propertyIsEnumerable,xV=(e,t,r)=>t in e?hV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,SV=(e,t)=>{for(var r in t||(t={}))vV.call(t,r)&&xV(e,r,t[r]);if(bV)for(var r of bV(t))yV.call(t,r)&&xV(e,r,t[r]);return e},wV=(e,t)=>mV(e,gV(t));function CV(e,t,r){if(t===r)return e;const n=e.slice();return n.splice(r,0,n.splice(t,1)[0]),n}function EV(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function RV(e,t){return function(e,t,r){var n,o,i;const{source:a,target:s,canceled:l}=t.operation;if(!a||!s||l)return"preventDefault"in t&&t.preventDefault(),e;const u=(e,t)=>e===t||"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const n=e.findIndex(e=>u(e,a.id)),o=e.findIndex(e=>u(e,s.id));if(-1===n||-1===o){if(EV(a)){const n=a.initialIndex,o=a.index;return n===o||n<0||n>=e.length?("preventDefault"in t&&t.preventDefault(),e):r(e,n,o)}return e}if(!l&&"index"in a&&"number"==typeof a.index){const t=a.index;if(t!==n)return r(e,n,t)}return r(e,n,o)}const c=Object.entries(e);let d,p,f=-1,h=-1;for(const[e,t]of c)if(-1===f&&(f=t.findIndex(e=>u(e,a.id)),-1!==f&&(d=e)),-1===h&&(h=t.findIndex(e=>u(e,s.id)),-1!==h&&(p=e)),-1!==f&&-1!==h)break;if(-1===f&&EV(a)){const n=a.initialGroup,o=a.initialIndex,i=a.group,s=a.index;if(null==n||null==i||!(n in e)||!(i in e))return"preventDefault"in t&&t.preventDefault(),e;if(n===i&&o===s)return"preventDefault"in t&&t.preventDefault(),e;if(n===i)return wV(SV({},e),{[n]:r(e[n],o,s)});const l=e[n][o];return wV(SV({},e),{[n]:[...e[n].slice(0,o),...e[n].slice(o+1)],[i]:[...e[i].slice(0,s),l,...e[i].slice(s)]})}if(!a.manager)return e;const{dragOperation:m}=a.manager,g=null!=(o=null==(n=m.shape)?void 0:n.current.center)?o:m.position.current;if(null==p&&s.id in e){const t=s.shape&&g.y>s.shape.center.y?e[s.id].length:0;p=s.id,h=t}if(null==d||null==p||d===p&&f===h){if(null!=d&&d===p&&f===h&&EV(a)){const t=null!=a.group&&a.group!==d,n=a.index!==f;if(t||n){const t=null!=(i=a.group)?i:d;if(t in e){if(d===t)return wV(SV({},e),{[d]:r(e[d],f,a.index)});const n=e[d][f];return wV(SV({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[t]:[...e[t].slice(0,a.index),n,...e[t].slice(a.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(d===p)return wV(SV({},e),{[d]:r(e[d],f,h)});const b=s.shape&&Math.round(g.y)>Math.round(s.shape.center.y)?1:0,v=e[d][f];return wV(SV({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[p]:[...e[p].slice(0,h+b),v,...e[p].slice(h+b)]})}(e,t,CV)}var AV="__default__";function MV(e,t,r,n){const o=n<t?"afterend":"beforebegin";r.insertAdjacentElement(o,e)}function PV(e,t){return e.index-t.index}function IV(e){return Array.from(e).sort(PV)}var kV,DV,TV,OV,LV,qV,NV,jV,_V=[class extends oq{constructor(e){super(e);const t=JT(()=>{const{dragOperation:t}=e;if(E_(t.activatorEvent)&&fV(t.source)&&t.status.initialized){const t=e.registry.plugins.get(mF);if(t)return t.disable(),()=>t.enable()}}),r=e.monitor.addEventListener("dragmove",(e,t)=>{queueMicrotask(()=>{if(this.disabled||e.defaultPrevented||!e.nativeEvent)return;const{dragOperation:r}=t;if(!E_(e.nativeEvent))return;if(!fV(r.source))return;if(!r.shape)return;const{actions:n,collisionObserver:o,registry:i}=t,{by:a}=e;if(!a)return;const s=function(e){const{x:t,y:r}=e;if(t>0)return"right";if(t<0)return"left";if(r>0)return"down";if(r<0)return"up"}(a),{source:l,target:u}=r,{center:c}=r.shape.current,d=[],p=[];IT(()=>{for(const e of i.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==u?void 0:u.id)&&fV(e)||!e.element)continue;let r=e.shape;const n=new x_(e.element,{getBoundingClientRect:e=>ij(e,void 0,.2)});n.height&&n.width&&(("down"==s&&c.y+10<n.center.y||"up"==s&&c.y-10>n.center.y||"left"==s&&c.x-10>n.center.x||"right"==s&&c.x+10<n.center.x)&&(d.push(e),e.shape=n,p.push(()=>e.shape=r)))}}),e.preventDefault(),o.disable();const f=o.computeCollisions(d,P_);IT(()=>p.forEach(e=>e()));const[h]=f;if(!h)return;const{id:m}=h,{index:g,group:b}=l.sortable;n.setDropTarget(m).then(()=>{const{source:e,target:t,shape:i}=r;if(!e||!fV(e)||!i)return;const{index:a,group:s,target:l}=e.sortable,u=g!==a||b!==s,c=u?l:null==t?void 0:t.element;if(!c)return;f_(c);const d=new x_(c);if(!d)return;const p=bL.delta(d,bL.from(i.current.boundingRectangle),e.alignment);n.move({by:p}),u?n.setDropTarget(e.id).then(()=>o.enable()):o.enable()})})});this.destroy=()=>{r(),t()}}},class extends oq{constructor(e){super(e);const t=()=>{const t=new Map;for(const r of e.registry.droppables)if(r instanceof BV){const{sortable:e}=r,{group:n}=e;let o=t.get(n);o||(o=new Set,t.set(n,o)),o.add(e)}for(const[e,r]of t)t.set(e,new Set(IV(r)));return t},r=[e.monitor.addEventListener("dragover",(e,r)=>{if(this.disabled)return;const{dragOperation:n}=r,{source:o,target:i}=n;if(!fV(o)||!fV(i))return;if(o.sortable===i.sortable)return;const a=t(),s=o.sortable.group===i.sortable.group,l=a.get(o.sortable.group),u=s?l:a.get(i.sortable.group);l&&u&&queueMicrotask(()=>{e.defaultPrevented||r.renderer.rendering.then(()=>{var n,c,d;const p=t();for(const[e,t]of a.entries()){const r=Array.from(t).entries();for(const[t,o]of r)if(o.index!==t||o.group!==e||!(null==(n=p.get(e))?void 0:n.has(o)))return}const f=o.sortable.element,h=i.sortable.element;if(!h||!f)return;if(!s&&i.id===o.sortable.group)return;const m=IV(l),g=s?m:IV(u),b=null!=(c=o.sortable.group)?c:AV,v=null!=(d=i.sortable.group)?d:AV,y={[b]:m,[v]:g},x=RV(y,e);if(y===x)return;const S=x[v].indexOf(o.sortable),w=x[v].indexOf(i.sortable);r.collisionObserver.disable(),MV(f,S,h,w),IT(()=>{for(const[e,t]of x[b].entries())t.index=e;if(!s)for(const[e,t]of x[v].entries())t.group=i.sortable.group,t.index=e}),r.actions.setDropTarget(o.id).then(()=>r.collisionObserver.enable())})})}),e.monitor.addEventListener("dragend",(e,r)=>{if(!e.canceled)return;const{dragOperation:n}=r,{source:o}=n;fV(o)&&(o.sortable.initialIndex===o.sortable.index&&o.sortable.initialGroup===o.sortable.group||queueMicrotask(()=>{const e=t(),n=e.get(o.sortable.initialGroup);n&&r.renderer.rendering.then(()=>{for(const[t,r]of e.entries()){const e=Array.from(r).entries();for(const[r,n]of e)if(n.index!==r||n.group!==t)return}const t=IV(n),r=o.sortable.element,i=t[o.sortable.initialIndex],a=null==i?void 0:i.element;i&&a&&r&&(MV(r,i.index,a,o.index),IT(()=>{for(const[t,r]of e.entries()){const e=Array.from(r).values();for(const t of e)t.index=t.initialIndex,t.group=t.initialGroup}}))})}))})];this.destroy=()=>{for(const e of r)e()}}}],zV={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1},FV=new class{constructor(){_O(this,GO,new WeakMap)}get(e,t){var r;return e?null==(r=jO(this,GO).get(e))?void 0:r.get(t):void 0}set(e,t,r){var n;if(e)return jO(this,GO).has(e)||jO(this,GO).set(e,new Map),null==(n=jO(this,GO).get(e))?void 0:n.set(t,r)}clear(e){var t;return e?null==(t=jO(this,GO).get(e))?void 0:t.clear():void 0}};DV=[BO],kV=[BO];var $V=class{constructor(e,t){dV(this,OV,sV(TV,8,this)),sV(TV,11,this),dV(this,LV),dV(this,qV),dV(this,NV,sV(TV,12,this)),sV(TV,15,this),dV(this,jV),this.register=()=>(IT(()=>{var e,t;null==(e=this.manager)||e.registry.register(this.droppable),null==(t=this.manager)||t.registry.register(this.draggable)}),()=>this.unregister()),this.unregister=()=>{IT(()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)})},this.destroy=()=>{IT(()=>{this.droppable.destroy(),this.draggable.destroy()})};var r=e,{effects:n=()=>[],group:o,index:i,sensors:a,type:s,transition:l=zV,plugins:u=_V}=r,c=((e,t)=>{var r={};for(var n in e)ZW.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&JW)for(var n of JW(e))t.indexOf(n)<0&&QW.call(e,n)&&(r[n]=e[n]);return r})(r,["effects","group","index","sensors","type","transition","plugins"]);this.droppable=new BV(c,t,this),this.draggable=new HV(nV(rV({},c),{effects:()=>[()=>{var e,t,r;const n=null==(e=this.manager)?void 0:e.dragOperation.status;(null==n?void 0:n.initializing)&&this.id===(null==(r=null==(t=this.manager)?void 0:t.dragOperation.source)?void 0:r.id)&&FV.clear(this.manager),(null==n?void 0:n.dragging)&&FV.set(this.manager,this.id,DT(()=>({initialIndex:this.index,initialGroup:this.group})))},()=>{const{index:e,group:t,manager:r}=this,n=cV(this,qV),o=cV(this,LV);e===n&&t===o||(pV(this,qV,e),pV(this,LV,t),this.animate())},()=>{const{target:e}=this,{feedback:t,isDragSource:r}=this.draggable;"move"==t&&r&&(this.droppable.disabled=!e)},()=>{const{manager:e}=this;for(const t of u)null==e||e.registry.register(t)},...n()],type:s,sensors:a}),t,this),pV(this,jV,c.element),this.manager=t,this.index=i,pV(this,qV,i),this.group=o,pV(this,LV,o),this.type=s,this.transition=l}get initialIndex(){var e,t;return null!=(t=null==(e=FV.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=FV.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){DT(()=>{const{manager:e,transition:t}=this,{shape:r}=this.droppable;if(!e)return;const{idle:n}=e.dragOperation.status;r&&t&&(!n||t.idle)&&e.renderer.rendering.then(()=>{const{element:n}=this;if(!n)return;const o=this.refreshShape();if(!o)return;const i=r.boundingRectangle.left-o.boundingRectangle.left,a=r.boundingRectangle.top-o.boundingRectangle.top,{translate:s}=t_(n),l=m_(n,s,!1),u=m_(n,s);if(i||a){const r=fj(QN(n))?nV(rV({},t),{duration:0}):t;h_({element:n,keyframes:{translate:[`${l.x+i}px ${l.y+a}px ${l.z}`,`${u.x}px ${u.y}px ${u.z}`]},options:r}).then(()=>{e.dragOperation.status.dragging||(this.droppable.shape=void 0)})}})})}get manager(){return this.draggable.manager}set manager(e){IT(()=>{this.draggable.manager=e,this.droppable.manager=e})}set element(e){IT(()=>{const t=cV(this,jV),r=this.droppable.element,n=this.draggable.element;r&&r!==t||(this.droppable.element=e),n&&n!==t||(this.draggable.element=e),pV(this,jV,e)})}get element(){var e,t;const r=cV(this,jV);if(r)return null!=(t=null!=(e=bj.get(r))?e:r)?t:this.droppable.element}set target(e){this.droppable.element=e}get target(){return this.droppable.element}set source(e){this.draggable.element=e}get source(){return this.draggable.element}get disabled(){return this.draggable.disabled&&this.droppable.disabled}set feedback(e){this.draggable.feedback=e}set disabled(e){IT(()=>{this.droppable.disabled=e,this.draggable.disabled=e})}set data(e){IT(()=>{this.droppable.data=e,this.draggable.data=e})}set handle(e){this.draggable.handle=e}set id(e){IT(()=>{this.droppable.id=e,this.draggable.id=e})}get id(){return this.droppable.id}set sensors(e){this.draggable.sensors=e}set modifiers(e){this.draggable.modifiers=e}set collisionPriority(e){this.droppable.collisionPriority=e}set collisionDetector(e){this.droppable.collisionDetector=null!=e?e:M_}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){IT(()=>{this.droppable.type=e,this.draggable.type=e})}get type(){return this.draggable.type}set accept(e){this.droppable.accept=e}get accept(){return this.droppable.accept}get isDropTarget(){return this.droppable.isDropTarget}get isDragSource(){return this.draggable.isDragSource}get isDragging(){return this.draggable.isDragging}get isDropping(){return this.draggable.isDropping}get status(){return this.draggable.status}refreshShape(){return this.droppable.refreshShape()}accepts(e){return this.droppable.accepts(e)}};TV=[,,,UW(null)],OV=new WeakMap,LV=new WeakMap,qV=new WeakMap,NV=new WeakMap,jV=new WeakMap,lV(TV,4,"index",DV,$V,OV),lV(TV,4,"group",kV,$V,NV),((e,t)=>{return tV(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n})(TV,$V);var HV=class extends a${constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}get initialIndex(){return this.sortable.initialIndex}get group(){return this.sortable.group}get initialGroup(){return this.sortable.initialGroup}},BV=class extends s${constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}get group(){return this.sortable.group}},WV=Object.defineProperty,VV=Object.defineProperties,UV=Object.getOwnPropertyDescriptors,GV=Object.getOwnPropertySymbols,YV=Object.prototype.hasOwnProperty,KV=Object.prototype.propertyIsEnumerable,XV=(e,t,r)=>t in e?WV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,JV=(e,t)=>{for(var r in t||(t={}))YV.call(t,r)&&XV(e,r,t[r]);if(GV)for(var r of GV(t))KV.call(t,r)&&XV(e,r,t[r]);return e};function ZV(e){const{accept:t,collisionDetector:r,collisionPriority:n,id:o,data:i,element:a,handle:s,index:l,group:u,disabled:c,feedback:d,modifiers:p,sensors:f,target:h,type:m}=e,g=JV(JV({},zV),e.transition),b=function(e){var t;const r=null!=(t=E$())?t:void 0,[n]=M(()=>e(r));return n.manager!==r&&(n.manager=r),u$(n.register,[r,n]),n}(t=>new $V(((e,t)=>VV(e,UV(t)))(JV({},e),{transition:g,register:!1,handle:l$(s),element:l$(a),target:l$(h),feedback:d}),t)),v=p$(b,QV);return m$(o,()=>b.id=o),u$(()=>{IT(()=>{b.group=u,b.index=l})},[b,u,l]),m$(m,()=>b.type=m),m$(t,()=>b.accept=t,void 0,HO),m$(i,()=>i&&(b.data=i)),m$(l,()=>{var e;(null==(e=b.manager)?void 0:e.dragOperation.status.idle)&&(null==g?void 0:g.idle)&&b.refreshShape()},f$),g$(s,e=>b.handle=e),g$(a,e=>b.element=e),g$(h,e=>b.target=e),m$(c,()=>b.disabled=!0===c),m$(f,()=>b.sensors=f),m$(r,()=>b.collisionDetector=r),m$(n,()=>b.collisionPriority=n),m$(d,()=>b.feedback=null!=d?d:"default"),m$(g,()=>b.transition=g,void 0,HO),m$(p,()=>b.modifiers=p,void 0,HO),m$(e.alignment,()=>b.alignment=e.alignment),{sortable:v,get isDragging(){return v.isDragging},get isDropping(){return v.isDropping},get isDragSource(){return v.isDragSource},get isDropTarget(){return v.isDropTarget},handleRef:O(e=>{b.handle=null!=e?e:void 0},[b]),ref:O(e=>{var t,r;(e||!(null==(t=b.element)?void 0:t.isConnected)||(null==(r=b.manager)?void 0:r.dragOperation.status.idle))&&(b.element=null!=e?e:void 0)},[b]),sourceRef:O(e=>{var t,r;(e||!(null==(t=b.source)?void 0:t.isConnected)||(null==(r=b.manager)?void 0:r.dragOperation.status.idle))&&(b.source=null!=e?e:void 0)},[b]),targetRef:O(e=>{var t,r;(e||!(null==(t=b.target)?void 0:t.isConnected)||(null==(r=b.manager)?void 0:r.dragOperation.status.idle))&&(b.target=null!=e?e:void 0)},[b])}}function QV(e,t,r){return!("isDragSource"!==e||r||!t)}const eU=({invert:e})=>({dragOperation:t,droppable:r})=>{if(!r.shape)return null;const{shape:n}=t;if(!n)return null;const o=function(e){return e.sortable?.index}(r);if(void 0===o)return null;const i=function(e){return e.source.index}(t);if(void 0===i)return null;if(i===o)return null;const a=i<o!==e?"right":"left",{center:s,boundingRectangle:l}=n.current;return"left"===a&&l.left+.3*l.width<=r.shape.center.x||"right"===a&&l.right-.3*l.width>=r.shape.center.x?{id:r.id,value:1/gL.distance(r.shape.center,s),type:Mq.Collision,priority:Aq.Normal}:null},tU=[VW.configure({element:e=>{const t=e.activatorEvent?.target;return t instanceof HTMLElement?t.closest(".sn-table-head-row"):null}})],rU=(e,t)=>{const r=xR(KR),n=xR(MR),o=!xR(UR)||!n("TLV-1531_DRAG_AND_DROP_COLUMNS");return ZV({id:e.id,disabled:o,index:t,type:"item",accept:"item",group:"column",modifiers:tU,data:e,feedback:"clone",collisionDetector:eU({invert:"rtl"===r})})},nU=({column:e,columnIndex:t,columnsLength:r})=>{const n=xR(kk),o=xR(lA),i=xR(KR),a=xR($R),s=xR(hk),l=xR(fk),u=xR(qk)[t],c=SR(JH),d=xR(ZH(t)),p=xR(UR),f=xR(tA),{open:h,setOpen:m,handleOpenMenu:g,toggleSortOrder:b}=DW({isInteractionEnabled:p,column:e}),v=SR(OP),{ref:y,isDragging:x}=rU(e,t),S=lW(e.id),w=xR(NR),C=w?xH:HH,E=e.isActivelySorted?ZM[e.sortDirection]:void 0,R=h?gE:void 0,A=h?"true":void 0,M=t===r-1,P=[0,e.pageColIdx],I={width:u,zIndex:s.length-t},k=d&&0===t&&!f.enabled&&p?0:-1;return ur.jsxs(uH,{"data-dragging":x,ref:y,headerStyle:{...n.header,...Y$(n,l,!0),opacity:S},background:w&&h?e.headerColor?.headerMenuActiveBackground??n.headerMenuActiveBackground:e.headerColor?.background??n.header.background,hoverBackground:e.headerColor?.headerMenuHoverBackground??n.headerMenuHoverBackground,color:e.headerColor?.color??n.header.color,interactions:a,style:I,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${bE}`,tabIndex:k,title:a.passive?e.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:r,handleOpenMenu:n}=e;if(t)switch(r.key){case vE.C:oB(r);break;case vE.Enter:case vE.Space:n?.(r);break;default:iB(e)}else GC(r)})({evt:e,rootElement:o,cellCoord:P,setFocusedCellCoord:c,isInteractionEnabled:p,handleOpenMenu:g,direction:i})},onMouseDown:e=>{(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,keyboard:o,isInteractionEnabled:i})=>{e.preventDefault(),i&&aH(r,t,n,o)})({evt:e,rootElement:o,cellCoord:P,setFocusedCellCoord:c,keyboard:f,isInteractionEnabled:p})},onClick:w?g:b,"aria-sort":E,"aria-controls":R,"aria-expanded":A,"aria-haspopup":"true",children:[ur.jsx(C,{column:e,isInteractionEnabled:p,open:h,setOpen:m,isPagination:!0,columnWidth:u}),ur.jsx(IW,{column:e,isLastColumn:M,setIsAdjustingWidth:v})]},e.id)},oU=()=>{const e=xR(hk),t=xR(kk),r=xR(IR),n=xR(JR),o=SR(SW),i=xR(qk),a=P(null),s=MW(n,r);return D(()=>{a.current&&o(a.current.getBoundingClientRect().height)},[t.header.fontSize,i,o,s]),ur.jsx(fm,{style:{visibility:s?"collapse":void 0},children:ur.jsx(fH,{ref:a,className:"sn-table-row sn-table-head-row",children:e.map((t,r)=>ur.jsx(nU,{column:t,columnIndex:r,columnsLength:e.length},t.id))})})};var iU=N(oU);const aU=()=>{const e=xR(tB),[t,r]=wR(ok),{page:n,rowsPerPage:o}=t,i=xR(XR),{totalColumnCount:a,totalRowCount:s,totalPages:l,paginationNeeded:u,rows:c,columns:d}=xR(pk),p=xR(kk),f=xR($I),h=xR(IR),m=xR(dA),g=xR(sA),b=xR(lA),v=xR(JR),y=xR(KR),x=xR($R),S=xR(pA),w=xR(AT),C=SR(ET),E=xR(_R),R=xR(tA),A=P(!1),M=P(null),I=P(null),k=`${S.get("SNTable.Accessibility.RowsAndColumns",[String(c.length),String(d.length)])} ${S.get("SNTable.Accessibility.NavigationInstructions")}`,T=GR(h,v),L=T?f.scrollLeft??0:0,q=T?f.rowPartialHeight??0:0,N=O(()=>{A.current=b.getElementsByTagName("table")[0].contains(document.activeElement)},[b]),j=O(n=>{r({...t,page:n}),e({keys:[["SNTable.Pagination.PageStatusReport",(n+1).toString(),l.toString()]],politeness:"assertive"})},[t,r,l,e]),_=O(n=>{r({...t,page:0,rowsPerPage:n}),e({keys:[["SNTable.Pagination.RowsPerPageChange",n.toString()]],politeness:"assertive"})},[e,t,r]);return nB(M),((e,t)=>{const r=xR(tA);D(()=>{const n=e.current;if(!n)return;const o=e=>{sH(e,t,r)};return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}},[e,t,r])})(I,A),(()=>{const e=xR(lA),t=xR(tA),r=xR(JH);uE(()=>{const n=Q$(e,r);t.active?nH(n):(n?.blur(),rH(e))},[t.active,e])})(),rB(A,n),D(()=>{const e=M.current;e&&(e.scrollLeft=L,e.scrollTop=q)},[t,s,L,q]),XH(()=>{C({type:JM.UpdatePageRows,payload:{pageRows:c}})},[c]),QH(),uB(M),ur.jsxs(KH,{children:[ur.jsxs(mH,{ref:I,dir:y,onKeyDown:e=>{sB({evt:e,totalRowCount:s,page:n,rowsPerPage:o,handleChangePage:j,updateShouldRefocus:N,keyboard:R,isSelectionMode:E})},"data-testid":"sn-table",children:[ur.jsx(fB,{}),ur.jsxs(dB,{ref:M,className:"sn-table-container",fullHeight:!!i||!x.active||!u,interactions:x,tabIndex:-1,role:"application","data-testid":"table-container",children:[ur.jsxs(pB,{stickyHeader:!0,"aria-label":k,borderRight:w?`1px solid ${p.grid.border}`:void 0,children:[ur.jsx(iU,{}),ur.jsx(AW,{updateShouldRefocus:N,tableWrapperRef:I})]}),ur.jsx(G$,{})]}),ur.jsx(dT,{footerContainer:i,pageInfo:t,paginationNeeded:u,theme:m,totalRowCount:s,totalColumnCount:a,totalPages:l,keyboard:R,translator:S,interactions:x,rect:g,layout:h,handleChangePage:j,handleChangeRowsPerPage:_,isSelectionMode:E,direction:y})]}),ur.jsx(UH,{isPagination:!0})]})};var sU=N(aU);const lU=lR(0),uU=lR(e=>{const t=e(kR);return Math.min(lk,t)}),cU=lR(e=>{const t=e(kR);return t===lk?0:Math.floor(t/lk)}),dU=lR(e=>{const t=e(lU),r=e(cU);return Math.min(t,r)}),pU=lR(e=>({page:e(dU),rowsPerPage:e(uU),rowsPerPageOptions:[]}),(e,t,r)=>{const n=e(cU);t(lU,Math.max(0,Math.min(r,n)))});var fU=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function hU(e,t){return e===t||!(!fU(e)||!fU(t))}function mU(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!hU(e[r],t[r]))return!1;return!0}function gU(e,t){var r;void 0===t&&(t=mU);var n,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}var bU="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function vU(e){cancelAnimationFrame(e.id)}function yU(e,t){var r=bU();var n={id:requestAnimationFrame(function o(){bU()-r>=t?e.call(null):n.id=requestAnimationFrame(o)})};return n}var xU=-1;function SU(e){if(void 0===e&&(e=!1),-1===xU||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),xU=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return xU}var wU=null;function CU(e){if(void 0===e&&(e=!1),null===wU||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),o=n.style;return o.width="100px",o.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?wU="positive-descending":(t.scrollLeft=1,wU=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),wU}return wU}var EU=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function RU(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=h(n.props,Yc(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:Yc(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=gU(function(e,t,r,o,i,a,s,l){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})}),n._callOnScroll=void 0,n._callOnScroll=gU(function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})}),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,a=n.props,s=a.columnWidth,l=a.direction,u=a.rowHeight,p=n._getItemStyleCache(m&&s,m&&l,m&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=r(n.props,t,n._instanceProps),g="rtl"===l;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(n.props,e,n._instanceProps),height:c(n.props,e,n._instanceProps),width:i(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=gU(function(e,t,r){return{}}),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;n.setState(function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,u=i;if("rtl"===t)switch(CU()){case"negative":u=-i;break;case"positive-descending":u=l-o-i}u=Math.max(0,Math.min(u,l-o));var c=Math.max(0,Math.min(a,s-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&vU(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=yU(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},function(){n._getItemStyleCache(-1)})},n}_c(t,e),t.getDerivedStateFromProps=function(e,t){return AU(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState(function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}},this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=SU();void 0!==n&&(n=Math.max(0,Math.min(n,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=s(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==n?l(this.props,n,r,m,this._instanceProps,x):m,scrollTop:void 0!==o?u(this.props,o,r,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(CU()){case"negative":o.scrollLeft=-r;break;case"positive-ascending":o.scrollLeft=r;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-r}else o.scrollLeft=Math.max(0,r);o.scrollTop=Math.max(0,n)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&vU(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,o=e.direction,i=e.height,l=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?EU:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),C=S[0],E=S[1],R=this._getVerticalRangeToRender(),A=R[0],M=R[1],P=[];if(n>0&&g)for(var I=A;I<=M;I++)for(var k=C;k<=E;k++)P.push(w(t,{columnIndex:k,data:d,isScrolling:v?x:void 0,key:f({columnIndex:k,data:d,rowIndex:I}),rowIndex:I,style:this._getItemStyle(I,k)}));var D=a(this.props,this._instanceProps),T=s(this.props,this._instanceProps);return w(h||m||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:Gr({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},w(u||c||"div",{children:P,ref:l,style:{height:D,pointerEvents:x?"none":void 0,width:T}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],s=i[1],l=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],h=c[3];this._callOnItemsRendered(a,s,d,p,l,u,f,h)}if("function"==typeof n){var m=this.state,g=m.horizontalScrollDirection,b=m.scrollLeft,v=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,u=l.horizontalScrollDirection,c=l.isScrolling,d=l.scrollLeft,p=r||i||a||1;if(0===t||0===s)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),h=f(this.props,d,u,this._instanceProps),m=s&&"backward"!==l?1:Math.max(1,c),g=s&&"forward"!==l?1:Math.max(1,c);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,h+g)),d,h]},t}($),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var AU=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},MU=function(e,t){var r=e.rowCount,n=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},PU=function(e,t){var r=e.columnCount,n=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},IU=function(e,t,r,n){var o,i,a;if("column"===e?(o=n.columnMetadataMap,i=t.columnWidth,a=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=t.rowHeight,a=n.lastMeasuredRowIndex),r>a){var s=0;if(a>=0){var l=o[a];s=l.offset+l.size}for(var u=a+1;u<=r;u++){var c=i(u);o[u]={offset:s,size:c},s+=c}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},kU=function(e,t,r,n){var o,i;return"column"===e?(o=r.columnMetadataMap,i=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=r.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=n?DU(e,t,r,i,0,n):TU(e,t,r,Math.max(0,i),n)},DU=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=IU(e,t,a,r).offset;if(s===i)return a;s<i?o=a+1:s>i&&(n=a-1)}return o>0?o-1:0},TU=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&IU(e,t,n,r).offset<o;)n+=a,a*=2;return DU(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},OU=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=IU(e,t,r,i),u="column"===e?PU(t,i):MU(t,i),c=Math.max(0,Math.min(u-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===n&&(n=o>=d-s&&o<=c+s?"auto":"center"),n){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},LU=RU({getColumnOffset:function(e,t,r){return IU("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return kU("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=IU("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=IU("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:MU,getEstimatedTotalWidth:PU,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return OU("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return OU("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return IU("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return kU("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=IU("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=IU("row",e,u,n).size;return u},initInstanceProps:function(e,t){var r=e,n={columnMetadataMap:{},estimatedColumnWidth:r.estimatedColumnWidth||50,estimatedRowHeight:r.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:r})},t.resetAfterRowIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:r})},t.resetAfterIndices=function(e){var r=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof r&&(n.lastMeasuredColumnIndex=Math.min(n.lastMeasuredColumnIndex,r-1)),"number"==typeof o&&(n.lastMeasuredRowIndex=Math.min(n.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),qU=function(e,t){return e};function NU(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=l(n.props,Yc(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Yc(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=gU(function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})}),n._callOnScroll=void 0,n._callOnScroll=gU(function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})}),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,i=n.props,a=i.direction,s=i.itemSize,l=i.layout,c=n._getItemStyleCache(u&&s,u&&l,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=r(n.props,e,n._instanceProps),p=o(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===l,h="rtl"===a,m=f?d:0;c[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=gU(function(e,t,r){return{}}),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;n.setState(function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,a=o;if("rtl"===t)switch(CU()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;n.setState(function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&vU(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=yU(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},function(){n._getItemStyleCache(-1,null)})},n}_c(t,e),t.getDerivedStateFromProps=function(e,t){return jU(e,t),c(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState(function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?SU():0:l.scrollHeight>l.clientHeight?SU():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},d.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(CU()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&vU(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,r=e.className,o=e.direction,i=e.height,a=e.innerRef,s=e.innerElementType,l=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?qU:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),E=C[0],R=C[1],A=[];if(u>0)for(var M=E;M<=R;M++)A.push(w(t,{data:c,key:p(M,c),index:M,isScrolling:b?y:void 0,style:this._getItemStyle(M)}));var P=n(this.props,this._instanceProps);return w(h||m||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:Gr({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},w(s||l||"div",{children:A,ref:a,style:{height:x?"100%":P,pointerEvents:y?"none":void 0,width:x?P:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,l=n.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,l,this._instanceProps),c=s(this.props,u,l,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}($),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var jU=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},_U=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=t;l++){var u=n(l);o[l]={offset:a,size:u},a+=u}r.lastMeasuredIndex=t}return o[t]},zU=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=_U(e,i,t).offset;if(a===o)return i;a<o?n=i+1:a>o&&(r=i-1)}return n>0?n-1:0},FU=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&_U(e,r,t).offset<n;)r+=i,i*=2;return zU(e,t,Math.min(r,o-1),Math.floor(r/2),n)},$U=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},HU=NU({getItemOffset:function(e,t,r){return _U(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:$U,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,s=e.height,l=e.layout,u=e.width,c="horizontal"===a||"horizontal"===l?u:s,d=_U(e,t,o),p=$U(e,o),f=Math.max(0,Math.min(p-c,d.offset)),h=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=h-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return n>=h&&n<=f?n:n<h?h:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?zU(e,t,o,0,r):FU(e,t,Math.max(0,o),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,l=e.width,u="horizontal"===o||"horizontal"===s?l:i,c=_U(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=_U(e,f,n).size;return f},initInstanceProps:function(e,t){var r={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,n){void 0===n&&(n=!0),r.lastMeasuredIndex=Math.min(r.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),n&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function BU(e,t){for(var r in e)if(!(r in t))return!0;for(var n in t)if(e[n]!==t[n])return!0;return!1}var WU=["style"],VU=["style"];function UU(e,t){var r=e.style,n=Yr(e,WU),o=t.style,i=Yr(t,VU);return!BU(r,o)&&!BU(n,i)}const GU=lR(0),YU=lR(0),KU=lR(0),XU=lR(e=>e(GU)+e(YU)),JU=lR(e=>{const t=e(sA),r=e(yk),n=t.height-(r?41:0);return{width:t.width,height:n}}),ZU=lR(e=>{const t=e(JU),r=e(LP),n=e(qP);return{width:t.width-n,height:t.height-r}}),QU=lR(e=>{const t=e(ZU),r=e(XU),n=e(KU);return Math.min(t.height-r,n)}),eG=lR(e=>{const t=e(pU),r=e(kR);return Math.min(t.rowsPerPage,r-t.page*t.rowsPerPage)}),tG=lR(-1),rG=BM(e=>lR(t=>t(tG)===e)),nG=({style:e})=>ur.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var oG=S.memo(nG,UU);const iG=()=>{},aG=e=>{e.preventDefault()};const sG=({columnIndex:e,rowIndex:t,style:r,data:n})=>{const{rowsInPage:o,columns:i,isHoverEnabled:a,setMeasuredCellHeight:s,lineClamp:l,resizeObserverTaskScheduler:u}=n,c=xR(rG(t)),d=SR(tG),p=xR(kk),f=xR(KR),h=xR(BR),m=xR(AT),g=o[t]?.[e],{handleMouseDown:b,handleMouseOver:v,handleMouseUp:y,cellSelectionState:x}=function(e){const t="object"==typeof e,r=xR(WR),n=SR(ET),o=xR(RT(e));if(dW(e),t&&r){const{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i}=uW(aG,e,n,iG);return{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(g),S=((e,t,r,n)=>{const o=P(null),i=r&&!r.isNumeric,a=O(r=>{const o=r.contentBoxSize.at(0)?.blockSize;o&&i&&n(o,e,t)},[t,n,e,i]);return IH({ref:o,callback:a}),o})(t,e,g,s),w=i[e]?.isDim?p.dimension.values:p.measure.values,C=lW(i[e].id);if("object"==typeof g){const n=((e,t,r,n,o,i)=>{let a=hW(o,i,e);a=pW(a,i,e);const s=!e.isNull&&t.qAttrExprInfoIDs.length?VP(a,e.qAttrExps,t.qAttrExprInfoIDs):a;return n===XM.Selected?{...s,...i.selectedColors}:n===XM.Disabled?{...s,color:r?i.grid.hoverColors?.color:s.color,background:`${pP}, ${r?i.grid.hoverColors?.background:s.background}`}:r?{...s,...i.grid.hoverColors}:s})(g,i[e],a&&c,x,w,p),o={rowindex:t,columnindex:e};return ur.jsx("div",{className:`sn-table-cell ${x} ${bE}`,style:{...r,...n,display:"flex",alignItems:"start",borderColor:p.grid.border,borderTop:"0px",borderBottomWidth:g.isLastRow?"0px":"1px",borderRightWidth:EP(f,g.isLastColumn,m),borderLeftWidth:RP(f,g.isLastColumn,m),justifyContent:xP(g,f),borderStyle:"solid",padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden",textAlign:g.align,opacity:C},onMouseDown:b,onMouseUp:y,onMouseOver:v,onMouseEnter:a?()=>{d(t)}:void 0,onMouseLeave:a?()=>{d(-1)}:void 0,title:h?g.representation.text:void 0,...o,children:ur.jsx(sW,{cellSelectionState:x,children:ur.jsx(oW,{forwardRef:p.contentStaticLineCount||1===l?void 0:S,cell:g,style:n,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:u})})})}return ur.jsx(oG,{style:{...r,...w,borderColor:p.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box",opacity:C}})};var lG=N(sG,UU);const uG=FI(lR(async e=>{const t=e(IR),r=e(rA),n=e(pU).page,{qDataPages:o}=t.qHyperCube;if(0!==n||0===o.length){const e=n*Math.min(lk,t.qHyperCube.qSize.qcy);if(r&&"getHyperCubeData"in r)return r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:e,qWidth:50,qHeight:100}])}return[...o]})),cG=e=>{const t=P(e);return t.current=e,t},dG=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,pG=(e,t,r,n,o)=>{const i=e[r];if(!i)return!0;for(let e=t;e<t+n;e++){const t=i[e];if(t?.rowIdx!==o)return!0}return!1},fG=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some(e=>!e[t])},hG=(e,t,r,n,o,i,a,s)=>{e.forEach(e=>{e.qMatrix.forEach((l,u)=>{const c=e.qArea.qTop-t.page*t.rowsPerPage,{row:d,pageRowIdx:p}=((e,t,r,n,o,i,a,s,l,u)=>{const{qSize:c}=a.qHyperCube,d=n.qTop+r,p=o+r,f=e[p]??[];return t.forEach((e,t)=>{const r=t+n.qLeft;if(f.at(r))return;const{colIdx:o,isDim:h,isLocked:m,bodyTextAlign:g,selectionColIdx:b,qAttrExprInfoIndex:v,representation:y,conditionalColoring:x,qMiniChart:S}=i[r],w=QI(h,e,a),C=!h&&e.qIsNull,E=C?nP(w):rP(e);f[r]={id:WA(),...e,align:XI(E,g,u),rowIdx:d,colIdx:o,isSelectable:h&&!m,pageRowIdx:p,pageColIdx:r,selectionColIdx:b,isLastRow:d===c.qcy-1,isLastColumn:r===c.qcx-1,isNumeric:E,isNull:(!C||!E)&&ek(e,h),representation:NI({cell:e,representationProperties:y,attrExprInfoIndex:v,env:s,conditionalColoring:x,miniChartOnMeasure:S,getText:()=>C?w:e.qText,direction:u,enabledFeatures:{[JA.Image]:!0,[JA.Indicator]:!0,[JA.MiniChart]:!0}})},l(f[r],d,r)}),{row:f,pageRowIdx:p}})(r,l,u,e.qArea,c,n,o,i,a,s);r[p]=d})})},mG=({visibleRowCount:e,visibleColumnCount:t,gridState:r,setEstimatedCellHeight:n})=>{const o=xR(IR),i=xR(dA),a=xR(rA),s=xR(AR),l=xR(KR),u=xR(pU),c=xR(uG),d=xR(hk),p=xR(eG),f=P([]),h=O((e,t)=>{const r=Array.isArray(t)?t.slice(0,p):(e=>Array(e).fill(void 0))(p);return hG(e,u,r,d,o,s,n,l),f.current=r,r},[p,u,d,o,s,n,l]),[m,g]=M(()=>h(c??[]));uE(()=>{g(h(c??[]))},[c,l]);const b=((e,t)=>{const r=P(new Set),n=P(new Set),o=P(new Set),i=cG(e),a=cG(t),s=A(()=>({enqueue:e=>{const t=dG(e);o.current.has(t)||(r.current.add(e),o.current.add(t),1===r.current.size&&setTimeout(async()=>{const e=Array.from(r.current.values());if(0!==e.length){r.current.clear(),n.current.add(e);try{const t=(e=>{const t=[];return e.forEach(e=>{if(t.length>0){const r=t[t.length-1];((e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth)(r,e)?r.qHeight+=e.qHeight:((e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight)(r,e)?r.qWidth+=e.qWidth:t.push({...e})}else t.push({...e})}),t})(e),r=await i.current(t);n.current.has(e)&&a.current(r)}catch(t){e.forEach(e=>{o.current.delete(dG(e))}),console.error("Failed to fetch pages",t)}finally{n.current.delete(e)}}},75))},clear:()=>{r.current.clear(),n.current.clear(),o.current.clear()}}),[i,a]);return s})(e=>a&&"getHyperCubeData"in a?a.getHyperCubeData("/qHyperCubeDef",e):Promise.resolve([]),e=>{g(t=>h(e,t))}),v=O((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(fG(f.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};b.enqueue(e)}},[f,b]),y=O((e,t,r,n)=>{for(let o=t;o<t+n;o++){const t=Math.max(0,o-u.page*u.rowsPerPage);if(pG(f.current,e,t,r,o)){const t={qLeft:e,qTop:o,qHeight:1,qWidth:r};b.enqueue(t)}}},[f,b,u]);return D(()=>{const{qcx:n,qcy:i}=o.qHyperCube.qSize,a=r.current.overscanRowStartIndex,s=r.current.overscanColumnStartIndex,l=a+u.page*u.rowsPerPage,c=n-s,d=u.rowsPerPage-a,p=Math.min(100,c,n,t+5),f=Math.min(100,d,i,e+25);return y(s,l,p,f),()=>{b.clear()}},[o,e,t,u,b,y,r,i]),{rowsInPage:m,loadRows:y,loadColumns:v}},gG=e=>{let t=0;return e.forEach(e=>{e>t&&(t=e)}),t},bG=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,vG=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>{const o=xR(kk),i=xR(qk),{estimateLineCount:a}=oE(o.dimension.values),s=Pk(o.dimension.values.fontSize),l=e||t||1===r;return O((e,t,o)=>{if(l||e.representation.type===JA.Image||e.isNumeric)return;const u=(e=>Math.max(0,e-24-1))(i[o]),c=e.representation.text?a({text:e.representation.text,maxWidth:u,isNumeric:!1}):1,d=Math.min(r,Math.max(1,c));n(d*s,t,o)},[l,i,a,r,s,n])},yG=({isStaticNbrOfLines:e,minRowHeight:t,state:r,staticRowHeight:n=0})=>{const o=xR($I);j(()=>{const i=e?n:((e,t)=>{const r=0===t?0:e/t;return Math.ceil(r)})(r.sumHeight,r.rowHeights.size);o.estimatedRowHeight=Math.max(i,t)},[e,t,r,n,o])},xG=({isSnapshot:e,gridRef:t})=>{const r=xR(kk),n=xR(eG),[o,i]=M({rowHeights:new Map,cellHeightsInGrid:new Map,sumHeight:0}),a=r.contentLineHeight,s=r.contentMinRowHeight,l=!!r.contentStaticLineCount,u=Math.max(8e6/n,s)-9,c=u+9,d=Math.max(1,Math.min(r.grid.contentLineClamp,Math.round(u/a))),p=(({lineClamp:e,lineHeight:t,isStaticNbrOfLines:r})=>r?t*e+8+1:void 0)({lineClamp:d,lineHeight:a,isStaticNbrOfLines:l});(({gridRef:e,setState:t})=>{const r=xR(IR),n=xR(pU),o=xR(qk),i=r.multiline?.wrapTextInCells,a=r.nullValueRepresentation?.text;uE(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map,sumHeight:0})},[r.qHyperCube.qSize.qcx,r.qHyperCube.qSize.qcy,n.page,i,a]),uE(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})},[o])})({gridRef:t,setState:i});const f=(({setState:e,maxCellHeight:t,minRowHeight:r,gridRef:n})=>O((o,i,a)=>{z(()=>{e(e=>{const s=Math.max(r,o+9),l=Math.min(t,s),u=e.cellHeightsInGrid.get(i)??e.cellHeightsInGrid.set(i,new Map).get(i);if(!bG(u.get(a),l))return e;const c={...e},d=e.rowHeights.get(i);u.set(a,l);const p=void 0===d||l>=d?l:gG(u);return c.rowHeights.set(i,p),c.sumHeight=e.sumHeight-(d??0)+p,n.current?.resetAfterIndices({columnIndex:a,rowIndex:i,shouldForceUpdate:!1}),c})})},[e,r,t,n]))({maxCellHeight:c,minRowHeight:s,setState:i,gridRef:t}),h=(({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>O((o,i,a)=>{e||t||1===r||n(o,i,a)},[e,t,r,n]))({isSnapshot:e,isStaticNbrOfLines:l,lineClamp:d,setCellHeight:f}),m=vG({isSnapshot:e,isStaticNbrOfLines:l,lineClamp:d,setCellHeight:f}),g=O(e=>l?p??s:o.rowHeights.get(e)??s,[l,s,o.rowHeights,p]);return yG({isStaticNbrOfLines:l,minRowHeight:s,state:o,staticRowHeight:p}),{setMeasuredCellHeight:h,setEstimatedCellHeight:m,getRowHeight:g,lineClamp:d}},SG=(e,t)=>{j(()=>()=>{t(0)},[e,t]);const r=O(e=>{const r=e.contentBoxSize.at(0)?.blockSize;void 0!==r&&t(r)},[t]);IH({ref:e,callback:r})};let wG=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const CG=({loadRows:e,loadColumns:t,gridState:r})=>{const n=xR($I),o=xR(IR),i=xR(pU),a=xR(eG);return O(({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:u,overscanRowStopIndex:c,visibleColumnStartIndex:d,visibleColumnStopIndex:p,visibleRowStartIndex:f,visibleRowStopIndex:h})=>{const{verticalScrollDirection:m,horizontalScrollDirection:g}=(({overscanColumnStartIndex:e,overscanRowStartIndex:t},r,n)=>{let o=wG.None,i=wG.None;return o=n>t?wG.Down:n<t?wG.Up:wG.None,i=r>e?wG.Right:r<e?wG.Left:wG.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(r.current,s,u);if(r.current.overscanColumnStartIndex=s,r.current.overscanColumnStopIndex=l,r.current.overscanRowStartIndex=u,r.current.overscanRowStopIndex=c,u>a)return;const b=s,v=u+i.page*i.rowsPerPage,y=l-s+1,x=c-u+1;if(n.visibleLeft=d,n.visibleWidth=p-d+1,n.visibleTop=f+i.page*i.rowsPerPage,n.visibleHeight=h-f+1,n.page=i.page,n.rowsPerPage=i.rowsPerPage,m===wG.Down){const t=x+25;e(b,v,y,u+t>a?a-u:t)}else if(m===wG.Up){const t=x+25,r=i.page*i.rowsPerPage,n=Math.max(r,v-25);e(b,n,y,t)}if(g===wG.Right){const e=o.qHyperCube.qSize.qcx-b,r=y+5,n=Math.min(e,r);t(b,v,n,x)}else if(g===wG.Left){const e=Math.max(0,b-5),r=Math.min(o.qHyperCube.qSize.qcx,y+5);t(e,v,r,x)}},[r,a,i.page,i.rowsPerPage,n,e,o.qHyperCube.qSize.qcx,t])},EG=()=>{},RG={current:null};const AG=({columnIndex:e,data:t,rowIndex:r})=>{const n=t.rowsInPage[r]?.[e];return n?.id??`${r}-${e}`},MG={overflow:"hidden",willChange:"auto"},PG=q((e,t)=>{const r=xR(hk),n=xR(ZU),o=SR(KU),i=xR(QU),a=xR(kk),s=xR($I),l=xR(IR),u=xR(KR),c=xR(qk),d=xR(eG),p=P(null),f=P(null),h=P({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),m=P(0),g=!!$P(l)?.content?.hoverEffect,{visibleRowCount:b,visibleColumnCount:v}=(e=>{const t=xR(qk),r=xR(ZU),n=xR(eG),o=Math.min(n,Math.ceil(r.height/e)),i=A(()=>t.reduce((e,t)=>e.width<r.width?{width:e.width+t,count:e.count+1}:e,{count:0,width:0}),[r,t]).count;return{visibleRowCount:o,visibleColumnCount:i}})(a.contentMinRowHeight),{setMeasuredCellHeight:y,setEstimatedCellHeight:x,getRowHeight:S,lineClamp:w}=xG({isSnapshot:!!l.snapshotData,gridRef:p}),{rowsInPage:C,loadRows:E,loadColumns:R}=mG({visibleRowCount:b,visibleColumnCount:v,gridState:h,setEstimatedCellHeight:x}),M=CG({loadRows:E,loadColumns:R,gridState:h}),I=gB(),k=A(()=>({rowsInPage:C,columns:r,isHoverEnabled:g,lineClamp:w,setMeasuredCellHeight:y,resizeObserverTaskScheduler:I}),[C,r,g,w,y,I]);return j(()=>{1===m.current&&p.current?.scrollToItem({rowIndex:d-1,align:"start"})}),function(e){const t=SR(ET);D(()=>{t({type:JM.UpdatePageRows,payload:{pageRows:e}})},[t,e]),bB({updateShouldRefocus:EG,tableWrapperRef:RG})}(C),F(t,()=>({interpolatedScrollTo:(e,t)=>{const r=(f.current?.clientHeight??i)-i,n=Math.round(r*e);m.current=e,1===m.current?(p.current?.scrollToItem({rowIndex:d-1,align:"start"}),p.current?.scrollTo({scrollLeft:t})):p.current?.scrollTo({scrollTop:n,scrollLeft:t})}}),[f,i,d]),SG(f,o),ur.jsx(LU,{"data-key":"body",ref:p,innerRef:f,style:MG,columnCount:r.length,columnWidth:e=>c[e],height:i,rowCount:d,rowHeight:S,estimatedRowHeight:s.estimatedRowHeight,width:n.width,itemData:k,onItemsRendered:M,itemKey:AG,className:"sn-table-body",direction:u,children:lG})});var IG=N(PG);const kG=({children:e})=>{const{width:t,height:r}=(()=>{const e=xR(ZU),t=xR(kk),r=xR(qk),n=xR(XU),o=xR(KU)+n;let i=xR(eG)*t.contentMinRowHeight+n;return o<2*e.height&&(i=o),{width:r.reduce((e,t)=>e+t,0),height:i}})();return ur.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:t,height:r},children:e})},DG=(e,t)=>{const r=P(null),n=xR(qk);j(()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)},[t,r,e,n.length]);const o=O(r=>{const n=r.contentBoxSize.at(0)?.blockSize;n&&t(n+9,e)},[e,t]);return IH({ref:r,callback:o}),r},TG=Pc("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e&&"color"!==e})(({interactions:e,hoverBackground:t,background:r,applicableStyle:n,color:o})=>({...n,background:r,color:o,"&&:hover:not(:has(button:hover))":{background:e.active?t:void 0}})),OG=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,setMeasuredCellHeight:i}=r,a=xR(kk),s=xR(KR),l=xR($R),u=xR(AT),c=SR(OP),d=xR(fk),p=xR(UR),f=xR(qk)[e],h=n[e],{open:m,setOpen:g,handleOpenMenu:b,toggleSortOrder:v}=DW({isInteractionEnabled:p,column:h}),y=xR(NR),x=DG(e,i),S=n.length-1===e,w=y?xH:HH,{ref:C,isDragging:E}=rU(h,e),R=lW(h.id);return ur.jsxs(TG,{"data-dragging":E,ref:C,className:`sn-table-cell ${bE}`,title:l.passive?h.label:void 0,onClick:y?b:v,applicableStyle:{...a.header,...Y$(a,d,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:EP(s,S,u),borderLeftWidth:RP(s,S,u),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:h.headTextAlign,boxSizing:"border-box",zIndex:n.length-e,flexDirection:"right"===h.headTextAlign?"row-reverse":"row",userSelect:"none",opacity:R},interactions:l,hoverBackground:h.headerColor?.headerMenuHoverBackground??a.headerMenuHoverBackground,background:y&&m?h.headerColor?.headerMenuActiveBackground??a.headerMenuActiveBackground:h.headerColor?.background??a.header.background,color:h.headerColor?.color??a.header.color,children:[ur.jsx(w,{forwardRef:x,column:h,isInteractionEnabled:p,open:m,setOpen:g,columnWidth:f}),ur.jsx(IW,{column:h,isLastColumn:S,onColumnResize:o,setIsAdjustingWidth:c})]})},LG=e=>{const[t,r]=M(new Map);uE(()=>{r(new Map)},[e.length]);const n=O((e,t)=>{r(r=>bG(r.get(t),e)?new Map(r).set(t,e):r)},[]);return{rowHeight:A(()=>gG(t),[t]),setMeasuredCellHeight:n}},qG=(e,t)=>{F(e,()=>({scrollTo:e=>t.current?.scrollTo(e)}),[t])},NG=e=>{const t=xR(dA),r=xR(IR),n=xR(pU),o=xR(qk);uE(()=>{e.current?.resetAfterIndex(0,!1)},[r,n,e,o,t])},jG={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},_G=q((e,t)=>{const{columResizeHandler:r}=e,n=xR(hk),o=xR(ZU),i=SR(GU),a=S.useRef(null),s=P(null),l=xR(kk),u=xR(IR),c=xR(JR),d=xR(KR),p=xR(qk),{rowHeight:f,setMeasuredCellHeight:h}=LG(n),m=MW(c,u);return qG(t,a),NG(a),SG(s,i),ur.jsx(HU,{className:"sn-table-head-row",ref:a,outerRef:s,layout:"horizontal",style:{...jG,...m?{display:"none"}:void 0},itemCount:n.length,itemSize:e=>p[e],height:Math.max(f+8,l.headerMinRowHeight),width:o.width,itemKey:e=>n[e].id,itemData:{columns:n,columResizeHandler:r,setMeasuredCellHeight:h},direction:d,children:OG})});var zG=N(_G);const FG=q((e,t)=>{const{children:r,onScroll:n}=e,o=xR(KR),i=xR(VR),{width:a,height:s}=xR(JU);return ur.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:i?"auto":"hidden",width:a,height:s},onScroll:n,dir:o,tabIndex:-1,children:r})}),$G=({children:e})=>{const t=xR(KR),r=xR(ZU);return ur.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"rtl"!==t?"0px":void 0,right:"rtl"===t?"0px":void 0,width:r.width,height:r.height},children:e})},HG=({index:e,style:t,data:r})=>{const{columns:n,totals:o,setMeasuredCellHeight:i}=r,a=xR(kk),s=xR(IR),l=xR(KR),u=xR(BR),c=xR(AT),d=DG(e,i),p=n[e].totalInfo,{totalsTextAlign:f,isTotalNumeric:h}=n[e],m=s.qHyperCube.qSize.qcx-1===e,g=lW(n[e].id);return ur.jsx("div",{className:`sn-table-cell ${bE}`,title:u?p:void 0,style:{...t,...a.totalRow,...Y$(a,o,!1),background:a.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:EP(l,m,c),borderLeftWidth:RP(l,m,c),borderTopWidth:o.atBottom?"1px":"0px",borderBottomWidth:o.atTop?"1px":"0px",padding:"4px 12px",justifyContent:f,textAlign:f,boxSizing:"border-box",cursor:"default",opacity:g},children:ur.jsx(yH,{forwardRef:h?void 0:d,isNumeric:h,children:p})})},BG=q((e,t)=>{const{totals:r}=e,n=xR(hk),o=xR(ZU),i=SR(YU),a=P(null),s=P(null),l=xR(kk),u=xR(KR),c=xR(IR),d=xR(qk),{rowHeight:p,setMeasuredCellHeight:f}=LG(n);return qG(t,a),NG(a),SG(s,i),ur.jsx(HU,{ref:a,outerRef:s,layout:"horizontal",style:jG,itemCount:c.qHyperCube.qSize.qcx,itemSize:e=>d[e],height:Math.max(p,l.totalRowMinHeight),width:o.width,itemData:{columns:n,totals:r,setMeasuredCellHeight:f},direction:u,children:HG})});var WG=N(BG);const VG=(e,t,r)=>{const n=xR(KR),o=xR($I);return O(i=>{const{scrollHeight:a,clientHeight:s,scrollTop:l}=i.currentTarget,u=((e,t)=>{const{scrollWidth:r,clientWidth:n,scrollLeft:o}=e,i=r-n;if("rtl"===t){if(o>i)return i;if(o<0)return Math.abs(o)}return o})(i.currentTarget,n),c=Math.max(0,Math.min(1,l/(a-s)));o.scrollTopRatio=c,o.scrollLeft=u,r.current?.interpolatedScrollTo(Number.isNaN(c)?0:c,u),e.current?.scrollTo(u),t.current?.scrollTo(u)},[o,r,e,t,n])};var UG=N(()=>{const e=xR(fk),t=P(null),r=P(null),n=P(null),o=P(null),i=VG(r,n,o),a=O(()=>{t.current&&(t.current.scrollTop=0)},[t]);QH(),(e=>{const t=xR(mk),r=xR(pU),n=xR(dA),o=xR(eG);D(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollLeft=0,e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[t,e]),D(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[r,o,n,e])})(t),uB(t);const s=ur.jsx(WG,{ref:n,totals:e},"totals");return ur.jsxs(KH,{children:[ur.jsx(FG,{ref:t,onScroll:i,children:ur.jsxs(kG,{children:[ur.jsxs($G,{children:[ur.jsx(zG,{ref:r,columResizeHandler:a}),e.atTop?s:null,ur.jsx(IG,{ref:o}),e.atBottom?s:null]}),ur.jsx(G$,{})]})}),ur.jsx(UH,{isPagination:!1})]})});var GG=N(()=>{const e=xR(IR),t=xR(sA),r=xR($R),{paginationNeeded:n,totalRowCount:o,totalColumnCount:i,totalPages:a}=xR(pk),s=xR(dA),l=xR(pA),u=xR(tA),[c,d]=wR(pU);return ur.jsxs(mH,{"data-testid":"sn-table",children:[ur.jsx(UG,{}),ur.jsx(dT,{paginationNeeded:n,handleChangePage:e=>{d(e)},pageInfo:c,totalRowCount:o,totalColumnCount:i,totalPages:a,keyboard:u,translator:l,theme:s,interactions:r,rect:t,layout:e})]})});const YG=e=>{const t=e.get(rA),r=e.get(QR),n=e.get(PR),i=e.get(KR);o(()=>{n&&t&&(r?function(e){const t=e.get(KR),r=e.get(cA),n=zk(t);r.render(ur.jsx(Li,{stylisPlugins:"rtl"===t?[HM]:void 0,children:ur.jsx(kc,{theme:n,children:ur.jsx(hR,{store:e,children:ur.jsx(_k,{children:ur.jsx(sU,{})})})})}))}(e):function(e){const t=e.get(KR),r=e.get(cA),n=zk(t);r.render(ur.jsx(S.StrictMode,{children:ur.jsx(kc,{theme:n,children:ur.jsx(hR,{store:e,children:ur.jsx(_k,{children:ur.jsx(GG,{})})})})}))}(e))},[n,r,e,t,i])};function KG(e,t){const r=e.getElementsByClassName("sn-table-container")[0];if(!r)return{};const n=r.getBoundingClientRect(),o=e.getElementsByClassName("sn-table-head-row")[0],i=o?.getBoundingClientRect()??{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],s=a?.getBoundingClientRect()??{height:0},l=e.getElementsByClassName("sn-table-data-row"),u={top:n.y+i.height+(t.atTop?s.height:0),bottom:n.y+n.height-(t.atBottom?s.height:0)},c=((e,t)=>{if(!e)return-1;for(let r=0;r<e.length;r++)if(e[r].getBoundingClientRect().bottom>t.top)return r;return-1})(l,u),d=((e,t)=>{if(!e)return-1;for(let r=e.length-1;r>-1;r--){const n=e[r].getBoundingClientRect();if(t.bottom>n.top)return r}return-1})(l,u),p=((e,t,r)=>{if(!e||0===e.length||r<0)return 0;const n=e[r].getBoundingClientRect();return Math.max(t.top-n.top,0)})(l,u,c);return{visibleRowStartIndex:c,visibleRowEndIndex:d,rowPartialHeight:p}}const XG=(e,t)=>{if(t)for(let r=0;r<t.length;r++){const n=t[r].getAttribute("rowindex");if(n&&parseInt(n,10)===e)return t[r]}},JG=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const ZG=(e,t,r,n,o)=>{if(e<0)return 0;const i=r.qHyperCube.qSize.qcy,a=n.rowsPerPage||tk.rowsPerPage,s=o?.isMultiPage?0:3;return Math.min(i,a,e-t+1+s)},QG=(e,t,r,n,o)=>{if(n&&!n.isMultiPage)return n;const i=UI(e,n);if(o){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:a=-1,rowPartialHeight:s}=KG(r,i);return{rowPartialHeight:s,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:ZG(a,o,e,t,n),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}}const{visibleRowStartIndex:a=-1,visibleRowEndIndex:s=-1}=function(e,t){const r=e.querySelector(".sn-table-body"),n=r?.getBoundingClientRect(),o=r?.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!n)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:s=0,page:l=0,rowsPerPage:u=0}=t,c=l*u,d=a-c,p=d+s-1,f=XG(d,o),h=f?.getBoundingClientRect();if(!f||!h)return{};const m=n.y;if(1-i<.001)return{visibleRowStartIndex:d+(h.y>=m-4?0:1)+c,visibleRowEndIndex:p+c};const g=n.y+n.height,b=(JG(h,m,g)?d:d+1)+c;let v=p+c;const y=XG(p,o),x=y?.getBoundingClientRect();return y&&x&&(JG(x,m,g)||(v=p-1+c)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(r,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:a,visibleHeight:ZG(s,a,e,t,n),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}},eY={version:JSON.stringify("6.23.0"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals"},usePagination:!1,components:[]};const tY=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),rY=e=>e.getStyle("object","straightTableV2","backgroundColor");function nY(r){return{qae:{properties:{initial:eY},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:e=>DA({...e}),exportProperties:RA,exploration:TA},ext:_M(r),component(){const n=c(),i=e(()=>dR(),[!1!==n.usePagination]);i.set(AR,r);const s=d();i.set(lA,s),i.set(IR,n),i.set(CR,p()),i.set(rA,f()),i.set($R,h()),i.set(pA,m()),i.set(zR,g()),i.set(YR,t()),i.set(tA,b()),i.set(sA,v()),i.set(RR,y());const x=QC(n,s,tY,rY);i.set(dA,x),i.set(PR,lE(x,n,r)),i.set(ER,zt()),(e=>{const t=e.get(cA);o(()=>()=>{t.unmount()},[t])})(i),a?.((e,t)=>{const r=t.target,n=r?.closest(`.${bE}`);n?.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",id:"copy-cell-context-item",select:async()=>{ME(n)}})}),(({store:e})=>{const t=e.get(IR),r=e.get(rA),n=e.get(lA),o=e.get(aA),i=e.get(JR),a=e.get(QR);l(async s=>{const l=s;if(!l.snapshotData||!r||l.snapshotData.content)return l;if("getHyperCubeData"in r){const s=e.get($I),{rowPartialHeight:u,scrollLeft:c,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:b}=QG(t,s,n,i,a);l.qHyperCube.qDataPages=await r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:h,qWidth:t.qHyperCube.qSize.qcx,qHeight:m}]),l.snapshotData.content={rowPartialHeight:u,scrollLeft:c,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:b,size:{width:o.width,height:o.height},estimatedRowHeight:s.estimatedRowHeight}}return l}),u(()=>({getViewState:()=>QG(t,e.get($I),n,i,a)}),[t,e,n,a])})({store:i}),YG(i)}}}export{nY as default};
|