@drayman/elements 1.60.0 → 1.61.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.
@@ -98,4 +98,4 @@ var h8=Object.defineProperty,Uk=Object.getOwnPropertySymbols,H3=Object.prototype
98
98
  animation: ${0} 1.4s linear infinite;
99
99
  `),nb)),dm=He("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(i,o)=>o.svg})({display:"block"}),UR=He("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(i,o)=>{const{ownerState:a}=i;return[o.circle,o[`circle${Ze(a.variant)}`],a.disableShrink&&o.circleDisableShrink]}})(({ownerState:i,theme:o})=>fe({stroke:"currentColor"},"determinate"===i.variant&&{transition:o.transitions.create("stroke-dashoffset")},"indeterminate"===i.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:i})=>"indeterminate"===i.variant&&!i.disableShrink&&vg(zS||(zS=Eh`
100
100
  animation: ${0} 1.4s ease-in-out infinite;
101
- `),rb)),fm=z.forwardRef(function(i,o){const a=Fn({props:i,name:"MuiCircularProgress"}),{className:u,color:f="primary",disableShrink:p=!1,size:g=40,style:y,thickness:b=3.6,value:x=0,variant:_="indeterminate"}=a,E=Ft(a,tb),D=fe({},a,{color:f,disableShrink:p,size:g,thickness:b,value:x,variant:_}),I=(T=>{const{classes:O,variant:L,color:F,disableShrink:P}=T;return Mn({root:["root",L,`color${Ze(F)}`],svg:["svg"],circle:["circle",`circle${Ze(L)}`,P&&"circleDisableShrink"]},Ed,O)})(D),C={},A={},M={};if("determinate"===_){const T=2*Math.PI*((44-b)/2);C.strokeDasharray=T.toFixed(3),M["aria-valuenow"]=Math.round(x),C.strokeDashoffset=`${((100-x)/100*T).toFixed(3)}px`,A.transform="rotate(-90deg)"}return Ie.jsx(qS,fe({className:At(I.root,u),style:fe({width:g,height:g},A,y),ownerState:D,ref:o,role:"progressbar"},M,E,{children:Ie.jsx(dm,{className:I.svg,ownerState:D,viewBox:"22 22 44 44",children:Ie.jsx(UR,{className:I.circle,style:C,ownerState:D,cx:44,cy:44,r:(44-b)/2,fill:"none",strokeWidth:b})})}))});function hm(i,o){o?i.setAttribute("aria-hidden","true"):i.removeAttribute("aria-hidden")}function ib(i){return parseInt(go(i).getComputedStyle(i).paddingRight,10)||0}function ob(i,o,a,u,f){const p=[o,a,...u];[].forEach.call(i.children,g=>{const y=-1===p.indexOf(g),b=!function(x){const _=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(x.tagName),E="INPUT"===x.tagName&&"hidden"===x.getAttribute("type");return _||E}(g);y&&b&&hm(g,f)})}function sb(i,o){let a=-1;return i.some((u,f)=>!!o(u)&&(a=f,!0)),a}const WR=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function KR(i){const o=[],a=[];return Array.from(i.querySelectorAll(WR)).forEach((u,f)=>{const p=function(g){const y=parseInt(g.getAttribute("tabindex")||"",10);return Number.isNaN(y)?"true"===g.contentEditable||("AUDIO"===g.nodeName||"VIDEO"===g.nodeName||"DETAILS"===g.nodeName)&&null===g.getAttribute("tabindex")?0:g.tabIndex:y}(u);var g;-1!==p&&!((g=u).disabled||"INPUT"===g.tagName&&"hidden"===g.type||function(y){if("INPUT"!==y.tagName||"radio"!==y.type||!y.name)return!1;const b=_=>y.ownerDocument.querySelector(`input[type="radio"]${_}`);let x=b(`[name="${y.name}"]:checked`);return x||(x=b(`[name="${y.name}"]`)),x!==y}(g))&&(0===p?o.push(u):a.push({documentOrder:f,tabIndex:p,node:u}))}),a.sort((u,f)=>u.tabIndex===f.tabIndex?u.documentOrder-f.documentOrder:u.tabIndex-f.tabIndex).map(u=>u.node).concat(o)}function Eo(){return!0}function QR(i){const{children:o,disableAutoFocus:a=!1,disableEnforceFocus:u=!1,disableRestoreFocus:f=!1,getTabbable:p=KR,isEnabled:g=Eo,open:y}=i,b=z.useRef(!1),x=z.useRef(null),_=z.useRef(null),E=z.useRef(null),D=z.useRef(null),I=z.useRef(!1),C=z.useRef(null),A=ti(ni(o),C),M=z.useRef(null);z.useEffect(()=>{y&&C.current&&(I.current=!a)},[a,y]),z.useEffect(()=>{if(!y||!C.current)return;const O=jr(C.current);return C.current.contains(O.activeElement)||(C.current.hasAttribute("tabIndex")||C.current.setAttribute("tabIndex","-1"),I.current&&C.current.focus()),()=>{f||(E.current&&E.current.focus&&(b.current=!0,E.current.focus()),E.current=null)}},[y]),z.useEffect(()=>{if(!y||!C.current)return;const O=jr(C.current),L=q=>{M.current=q,!u&&g()&&"Tab"===q.key&&O.activeElement===C.current&&q.shiftKey&&(b.current=!0,_.current&&_.current.focus())},F=()=>{const q=C.current;if(null===q)return;if(!O.hasFocus()||!g()||b.current)return void(b.current=!1);if(q.contains(O.activeElement)||u&&O.activeElement!==x.current&&O.activeElement!==_.current)return;if(O.activeElement!==D.current)D.current=null;else if(null!==D.current)return;if(!I.current)return;let $=[];if(O.activeElement!==x.current&&O.activeElement!==_.current||($=p(C.current)),$.length>0){var Q,X;const ae=Boolean((null==(Q=M.current)?void 0:Q.shiftKey)&&"Tab"===(null==(X=M.current)?void 0:X.key)),le=$[0],oe=$[$.length-1];"string"!=typeof le&&"string"!=typeof oe&&(ae?oe.focus():le.focus())}else q.focus()};O.addEventListener("focusin",F),O.addEventListener("keydown",L,!0);const P=setInterval(()=>{O.activeElement&&"BODY"===O.activeElement.tagName&&F()},50);return()=>{clearInterval(P),O.removeEventListener("focusin",F),O.removeEventListener("keydown",L,!0)}},[a,u,f,g,y,p]);const T=O=>{null===E.current&&(E.current=O.relatedTarget),I.current=!0};return Ie.jsxs(z.Fragment,{children:[Ie.jsx("div",{tabIndex:y?0:-1,onFocus:T,ref:x,"data-testid":"sentinelStart"}),z.cloneElement(o,{ref:A,onFocus:O=>{null===E.current&&(E.current=O.relatedTarget),I.current=!0,D.current=O.target;const L=o.props.onFocus;L&&L(O)}}),Ie.jsx("div",{tabIndex:y?0:-1,onFocus:T,ref:_,"data-testid":"sentinelEnd"})]})}const YR=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(i,o){let a=this.modals.indexOf(i);if(-1!==a)return a;a=this.modals.length,this.modals.push(i),i.modalRef&&hm(i.modalRef,!1);const u=function(p){const g=[];return[].forEach.call(p.children,y=>{"true"===y.getAttribute("aria-hidden")&&g.push(y)}),g}(o);ob(o,i.mount,i.modalRef,u,!0);const f=sb(this.containers,p=>p.container===o);return-1!==f?(this.containers[f].modals.push(i),a):(this.containers.push({modals:[i],container:o,restore:null,hiddenSiblings:u}),a)}mount(i,o){const a=sb(this.containers,f=>-1!==f.modals.indexOf(i)),u=this.containers[a];u.restore||(u.restore=function VS(i,o){const a=[],u=i.container;if(!o.disableScrollLock){if(function(p){const g=jr(p);return g.body===p?go(p).innerWidth>g.documentElement.clientWidth:p.scrollHeight>p.clientHeight}(u)){const p=mo(jr(u));a.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${ib(u)+p}px`;const g=jr(u).querySelectorAll(".mui-fixed");[].forEach.call(g,y=>{a.push({value:y.style.paddingRight,property:"padding-right",el:y}),y.style.paddingRight=`${ib(y)+p}px`})}let f;if(u.parentNode instanceof DocumentFragment)f=jr(u).body;else{const p=u.parentElement,g=go(u);f="HTML"===(null==p?void 0:p.nodeName)&&"scroll"===g.getComputedStyle(p).overflowY?p:u}a.push({value:f.style.overflow,property:"overflow",el:f},{value:f.style.overflowX,property:"overflow-x",el:f},{value:f.style.overflowY,property:"overflow-y",el:f}),f.style.overflow="hidden"}return()=>{a.forEach(({value:f,el:p,property:g})=>{f?p.style.setProperty(g,f):p.style.removeProperty(g)})}}(u,o))}remove(i,o=!0){const a=this.modals.indexOf(i);if(-1===a)return a;const u=sb(this.containers,p=>-1!==p.modals.indexOf(i)),f=this.containers[u];if(f.modals.splice(f.modals.indexOf(i),1),this.modals.splice(a,1),0===f.modals.length)f.restore&&f.restore(),i.modalRef&&hm(i.modalRef,o),ob(f.container,i.mount,i.modalRef,f.hiddenSiblings,!1),this.containers.splice(u,1);else{const p=f.modals[f.modals.length-1];p.modalRef&&hm(p.modalRef,!1)}return a}isTopModal(i){return this.modals.length>0&&this.modals[this.modals.length-1]===i}};function xL(i){return kn("MuiModal",i)}wn("MuiModal",["root","hidden","backdrop"]);const $S=["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"],_L=He("div",{name:"MuiModal",slot:"Root",overridesResolver:(i,o)=>{const{ownerState:a}=i;return[o.root,!a.open&&a.exited&&o.hidden]}})(({theme:i,ownerState:o})=>fe({position:"fixed",zIndex:(i.vars||i).zIndex.modal,right:0,bottom:0,top:0,left:0},!o.open&&o.exited&&{visibility:"hidden"})),ZR=He(fL,{name:"MuiModal",slot:"Backdrop",overridesResolver:(i,o)=>o.backdrop})({zIndex:-1}),ab=z.forwardRef(function(i,o){var a,u,f,p,g,y;const b=Fn({name:"MuiModal",props:i}),{BackdropComponent:x=ZR,BackdropProps:_,className:E,closeAfterTransition:D=!1,children:I,container:C,component:A,components:M={},componentsProps:T={},disableAutoFocus:O=!1,disableEnforceFocus:L=!1,disableEscapeKeyDown:F=!1,disablePortal:P=!1,disableRestoreFocus:q=!1,disableScrollLock:$=!1,hideBackdrop:Q=!1,keepMounted:X=!1,onBackdropClick:ae,open:le,slotProps:oe,slots:K}=b,U=Ft(b,$S),ne=fe({},b,{closeAfterTransition:D,disableAutoFocus:O,disableEnforceFocus:L,disableEscapeKeyDown:F,disablePortal:P,disableRestoreFocus:q,disableScrollLock:$,hideBackdrop:Q,keepMounted:X}),{getRootProps:se,getBackdropProps:he,getTransitionProps:B,portalRef:G,isTopModal:Z,exited:re,hasTransition:te}=function wL(i){const{container:o,disableEscapeKeyDown:a=!1,disableScrollLock:u=!1,manager:f=YR,closeAfterTransition:p=!1,onTransitionEnter:g,onTransitionExited:y,children:b,onClose:x,open:_,rootRef:E}=i,D=z.useRef({}),I=z.useRef(null),C=z.useRef(null),A=ti(C,E),[M,T]=z.useState(!_),O=!!(oe=b)&&oe.props.hasOwnProperty("in");var oe;let L=!0;"false"!==i["aria-hidden"]&&!1!==i["aria-hidden"]||(L=!1);const F=()=>(D.current.modalRef=C.current,D.current.mount=I.current,D.current),P=()=>{f.mount(F(),{disableScrollLock:u}),C.current&&(C.current.scrollTop=0)},q=Ot(()=>{const oe=("function"==typeof(K=o)?K():K)||jr(I.current).body;var K;f.add(F(),oe),C.current&&P()}),$=z.useCallback(()=>f.isTopModal(F()),[f]),Q=Ot(oe=>{I.current=oe,oe&&(_&&$()?P():C.current&&hm(C.current,L))}),X=z.useCallback(()=>{f.remove(F(),L)},[L,f]);z.useEffect(()=>()=>{X()},[X]),z.useEffect(()=>{_?q():O&&p||X()},[_,X,O,p,q]);const ae=oe=>K=>{var U;null==(U=oe.onKeyDown)||U.call(oe,K),"Escape"===K.key&&229!==K.which&&$()&&(a||(K.stopPropagation(),x&&x(K,"escapeKeyDown")))},le=oe=>K=>{var U;null==(U=oe.onClick)||U.call(oe,K),K.target===K.currentTarget&&x&&x(K,"backdropClick")};return{getRootProps:(oe={})=>{const K=L_(i);delete K.onTransitionEnter,delete K.onTransitionExited;const U=fe({},K,oe);return fe({role:"presentation"},U,{onKeyDown:ae(U),ref:A})},getBackdropProps:(oe={})=>fe({"aria-hidden":!0},oe,{onClick:le(oe),open:_}),getTransitionProps:()=>({onEnter:rd(()=>{T(!1),g&&g()},null==b?void 0:b.props.onEnter),onExited:rd(()=>{T(!0),y&&y(),p&&X()},null==b?void 0:b.props.onExited)}),rootRef:A,portalRef:Q,isTopModal:$,exited:M,hasTransition:O}}(fe({},ne,{rootRef:o})),ce=fe({},ne,{exited:re}),ye=(nt=>{const{open:Ge,exited:yt,classes:Rt}=nt;return Mn({root:["root",!Ge&&yt&&"hidden"],backdrop:["backdrop"]},xL,Rt)})(ce),Se={};if(void 0===I.props.tabIndex&&(Se.tabIndex="-1"),te){const{onEnter:nt,onExited:Ge}=B();Se.onEnter=nt,Se.onExited=Ge}const Ae=null!=(a=null!=(u=null==K?void 0:K.root)?u:M.Root)?a:_L,Le=null!=(f=null!=(p=null==K?void 0:K.backdrop)?p:M.Backdrop)?f:x,Ne=null!=(g=null==oe?void 0:oe.root)?g:T.root,Ve=null!=(y=null==oe?void 0:oe.backdrop)?y:T.backdrop,Re=Il({elementType:Ae,externalSlotProps:Ne,externalForwardedProps:U,getSlotProps:se,additionalProps:{ref:o,as:A},ownerState:ce,className:At(E,null==Ne?void 0:Ne.className,null==ye?void 0:ye.root,!ce.open&&ce.exited&&(null==ye?void 0:ye.hidden))}),Me=Il({elementType:Le,externalSlotProps:Ve,additionalProps:_,getSlotProps:nt=>he(fe({},nt,{onClick:Ge=>{ae&&ae(Ge),null!=nt&&nt.onClick&&nt.onClick(Ge)}})),className:At(null==Ve?void 0:Ve.className,null==_?void 0:_.className,null==ye?void 0:ye.backdrop),ownerState:ce});return X||le||te&&!re?Ie.jsx(DS,{ref:G,container:C,disablePortal:P,children:Ie.jsxs(Ae,fe({},Re,{children:[!Q&&x?Ie.jsx(Le,fe({},Me)):null,Ie.jsx(QR,{disableEnforceFocus:L,disableAutoFocus:O,disableRestoreFocus:q,isEnabled:Z,open:le,children:z.cloneElement(I,Se)})]}))}):null});function HS(i){return kn("MuiDivider",i)}const GS=wn("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),XR=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],JR=He("div",{name:"MuiDivider",slot:"Root",overridesResolver:(i,o)=>{const{ownerState:a}=i;return[o.root,a.absolute&&o.absolute,o[a.variant],a.light&&o.light,"vertical"===a.orientation&&o.vertical,a.flexItem&&o.flexItem,a.children&&o.withChildren,a.children&&"vertical"===a.orientation&&o.withChildrenVertical,"right"===a.textAlign&&"vertical"!==a.orientation&&o.textAlignRight,"left"===a.textAlign&&"vertical"!==a.orientation&&o.textAlignLeft]}})(({theme:i,ownerState:o})=>fe({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(i.vars||i).palette.divider,borderBottomWidth:"thin"},o.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},o.light&&{borderColor:i.vars?`rgba(${i.vars.palette.dividerChannel} / 0.08)`:or.alpha(i.palette.divider,.08)},"inset"===o.variant&&{marginLeft:72},"middle"===o.variant&&"horizontal"===o.orientation&&{marginLeft:i.spacing(2),marginRight:i.spacing(2)},"middle"===o.variant&&"vertical"===o.orientation&&{marginTop:i.spacing(1),marginBottom:i.spacing(1)},"vertical"===o.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},o.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:i})=>fe({},i.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:i,ownerState:o})=>fe({},o.children&&"vertical"!==o.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(i.vars||i).palette.divider}`,borderTopStyle:"inherit"}}),({theme:i,ownerState:o})=>fe({},o.children&&"vertical"===o.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(i.vars||i).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:i})=>fe({},"right"===i.textAlign&&"vertical"!==i.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===i.textAlign&&"vertical"!==i.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),US=He("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(i,o)=>{const{ownerState:a}=i;return[o.wrapper,"vertical"===a.orientation&&o.wrapperVertical]}})(({theme:i,ownerState:o})=>fe({display:"inline-block",paddingLeft:`calc(${i.spacing(1)} * 1.2)`,paddingRight:`calc(${i.spacing(1)} * 1.2)`},"vertical"===o.orientation&&{paddingTop:`calc(${i.spacing(1)} * 1.2)`,paddingBottom:`calc(${i.spacing(1)} * 1.2)`})),WS=z.forwardRef(function(i,o){const a=Fn({props:i,name:"MuiDivider"}),{absolute:u=!1,children:f,className:p,component:g=(f?"div":"hr"),flexItem:y=!1,light:b=!1,orientation:x="horizontal",role:_=("hr"!==g?"separator":void 0),textAlign:E="center",variant:D="fullWidth"}=a,I=Ft(a,XR),C=fe({},a,{absolute:u,component:g,flexItem:y,light:b,orientation:x,role:_,textAlign:E,variant:D}),A=(M=>{const{absolute:T,children:O,classes:L,flexItem:F,light:P,orientation:q,textAlign:$,variant:Q}=M;return Mn({root:["root",T&&"absolute",Q,P&&"light","vertical"===q&&"vertical",F&&"flexItem",O&&"withChildren",O&&"vertical"===q&&"withChildrenVertical","right"===$&&"vertical"!==q&&"textAlignRight","left"===$&&"vertical"!==q&&"textAlignLeft"],wrapper:["wrapper","vertical"===q&&"wrapperVertical"]},HS,L)})(C);return Ie.jsx(JR,fe({as:g,className:At(A.root,p),role:_,ref:o,ownerState:C},I,{children:f?Ie.jsx(US,{className:A.wrapper,ownerState:C,children:f}):null}))});WS.muiSkipListHighlight=!0;const KS=function(i={}){const{createStyledComponent:o=Hg,useThemeProps:a=HA,componentName:u="MuiStack"}=i,f=o(UA);return z.forwardRef(function(g,y){const b=ed(a(g)),{component:x="div",direction:_="column",spacing:E=0,divider:D,children:I,className:C,useFlexGap:A=!1}=b,M=Hs(b,sh),T={direction:_,spacing:E,useFlexGap:A},O=Mn({root:["root"]},L=>kn(u,L),{});return Ie.jsx(f,dn({as:x,ownerState:T,ref:y,className:At(O.root,C)},M,{children:D?GA(I,D):I}))})}({createStyledComponent:He("div",{name:"MuiStack",slot:"Root",overridesResolver:(i,o)=>o.root}),useThemeProps:i=>Fn({props:i,name:"MuiStack"})});function eI(i){return kn("MuiFormControlLabel",i)}const Dh=wn("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),QS=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],YS=He("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(i,o)=>{const{ownerState:a}=i;return[{[`& .${Dh.label}`]:o.label},o.root,o[`labelPlacement${Ze(a.labelPlacement)}`]]}})(({theme:i,ownerState:o})=>fe({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Dh.disabled}`]:{cursor:"default"}},"start"===o.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===o.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===o.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${Dh.label}`]:{[`&.${Dh.disabled}`]:{color:(i.vars||i).palette.text.disabled}}})),tI=He("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(i,o)=>o.asterisk})(({theme:i})=>({[`&.${Dh.error}`]:{color:(i.vars||i).palette.error.main}})),Zs=z.forwardRef(function(i,o){var a,u;const f=Fn({props:i,name:"MuiFormControlLabel"}),{className:p,componentsProps:g={},control:y,disabled:b,disableTypography:x,label:_,labelPlacement:E="end",required:D,slotProps:I={}}=f,C=Ft(f,QS),A=cm(),M=null!=(a=null!=b?b:y.props.disabled)?a:null==A?void 0:A.disabled,T=null!=D?D:y.props.required,O={disabled:M,required:T};["checked","name","onChange","value","inputRef"].forEach(Q=>{void 0===y.props[Q]&&void 0!==f[Q]&&(O[Q]=f[Q])});const L=IS({props:f,muiFormControl:A,states:["error"]}),F=fe({},f,{disabled:M,labelPlacement:E,required:T,error:L.error}),P=(Q=>{const{classes:X,disabled:ae,labelPlacement:le,error:oe,required:K}=Q;return Mn({root:["root",ae&&"disabled",`labelPlacement${Ze(le)}`,oe&&"error",K&&"required"],label:["label",ae&&"disabled"],asterisk:["asterisk",oe&&"error"]},eI,X)})(F),q=null!=(u=I.typography)?u:g.typography;let $=_;return null==$||$.type===Gn||x||($=Ie.jsx(Gn,fe({component:"span"},q,{className:At(P.label,null==q?void 0:q.className),children:$}))),Ie.jsxs(YS,fe({className:At(P.root,p),ownerState:F,ref:o},C,{children:[z.cloneElement(y,O),T?Ie.jsxs(KS,{display:"block",children:[$,Ie.jsxs(tI,{ownerState:F,"aria-hidden":!0,className:P.asterisk,children:["\u2009","*"]})]}):$]}))}),pm=z.createContext();function nI(i){return kn("MuiGrid",i)}const kh=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],gm=wn("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map(i=>`spacing-xs-${i}`),...["column-reverse","column","row-reverse","row"].map(i=>`direction-xs-${i}`),...["nowrap","wrap-reverse","wrap"].map(i=>`wrap-xs-${i}`),...kh.map(i=>`grid-xs-${i}`),...kh.map(i=>`grid-sm-${i}`),...kh.map(i=>`grid-md-${i}`),...kh.map(i=>`grid-lg-${i}`),...kh.map(i=>`grid-xl-${i}`)]),ZS=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Dd(i){const o=parseFloat(i);return`${o}${String(i).replace(String(o),"")||"px"}`}function XS({breakpoints:i,values:o}){let a="";Object.keys(o).forEach(f=>{""===a&&0!==o[f]&&(a=f)});const u=Object.keys(i).sort((f,p)=>i[f]-i[p]);return u.slice(0,u.indexOf(a))}const rI=He("div",{name:"MuiGrid",slot:"Root",overridesResolver:(i,o)=>{const{ownerState:a}=i,{container:u,direction:f,item:p,spacing:g,wrap:y,zeroMinWidth:b,breakpoints:x}=a;let _=[];u&&(_=function(D,I,C={}){if(!D||D<=0)return[];if("string"==typeof D&&!Number.isNaN(Number(D))||"number"==typeof D)return[C[`spacing-xs-${String(D)}`]];const A=[];return I.forEach(M=>{const T=D[M];Number(T)>0&&A.push(C[`spacing-${M}-${String(T)}`])}),A}(g,x,o));const E=[];return x.forEach(D=>{const I=a[D];I&&E.push(o[`grid-${D}-${String(I)}`])}),[o.root,u&&o.container,p&&o.item,b&&o.zeroMinWidth,..._,"row"!==f&&o[`direction-xs-${String(f)}`],"wrap"!==y&&o[`wrap-xs-${String(y)}`],...E]}})(({ownerState:i})=>fe({boxSizing:"border-box"},i.container&&{display:"flex",flexWrap:"wrap",width:"100%"},i.item&&{margin:0},i.zeroMinWidth&&{minWidth:0},"wrap"!==i.wrap&&{flexWrap:i.wrap}),function({theme:i,ownerState:o}){return Wi({theme:i},is({values:o.direction,breakpoints:i.breakpoints.values}),a=>{const u={flexDirection:a};return 0===a.indexOf("column")&&(u[`& > .${gm.item}`]={maxWidth:"none"}),u})},function({theme:i,ownerState:o}){const{container:a,rowSpacing:u}=o;let f={};if(a&&0!==u){const p=is({values:u,breakpoints:i.breakpoints.values});let g;"object"==typeof p&&(g=XS({breakpoints:i.breakpoints.values,values:p})),f=Wi({theme:i},p,(y,b)=>{var x;const _=i.spacing(y);return"0px"!==_?{marginTop:`-${Dd(_)}`,[`& > .${gm.item}`]:{paddingTop:Dd(_)}}:null!=(x=g)&&x.includes(b)?{}:{marginTop:0,[`& > .${gm.item}`]:{paddingTop:0}}})}return f},function({theme:i,ownerState:o}){const{container:a,columnSpacing:u}=o;let f={};if(a&&0!==u){const p=is({values:u,breakpoints:i.breakpoints.values});let g;"object"==typeof p&&(g=XS({breakpoints:i.breakpoints.values,values:p})),f=Wi({theme:i},p,(y,b)=>{var x;const _=i.spacing(y);return"0px"!==_?{width:`calc(100% + ${Dd(_)})`,marginLeft:`-${Dd(_)}`,[`& > .${gm.item}`]:{paddingLeft:Dd(_)}}:null!=(x=g)&&x.includes(b)?{}:{width:"100%",marginLeft:0,[`& > .${gm.item}`]:{paddingLeft:0}}})}return f},function({theme:i,ownerState:o}){let a;return i.breakpoints.keys.reduce((u,f)=>{let p={};if(o[f]&&(a=o[f]),!a)return u;if(!0===a)p={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===a)p={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const g=is({values:o.columns,breakpoints:i.breakpoints.values}),y="object"==typeof g?g[f]:g;if(null==y)return u;const b=Math.round(a/y*1e8)/1e6+"%";let x={};if(o.container&&o.item&&0!==o.columnSpacing){const _=i.spacing(o.columnSpacing);if("0px"!==_){const E=`calc(${b} + ${Dd(_)})`;x={flexBasis:E,maxWidth:E}}}p=fe({flexBasis:b,flexGrow:0,maxWidth:b},x)}return 0===i.breakpoints.values[f]?Object.assign(u,p):u[i.breakpoints.up(f)]=p,u},{})}),tt=z.forwardRef(function(i,o){const a=Fn({props:i,name:"MuiGrid"}),{breakpoints:u}=ri(),f=ed(a),{className:p,columns:g,columnSpacing:y,component:b="div",container:x=!1,direction:_="row",item:E=!1,rowSpacing:D,spacing:I=0,wrap:C="wrap",zeroMinWidth:A=!1}=f,M=Ft(f,ZS),T=D||I,O=y||I,L=z.useContext(pm),F=x?g||12:L,P={},q=fe({},M);u.keys.forEach(X=>{null!=M[X]&&(P[X]=M[X],delete q[X])});const $=fe({},f,{columns:F,container:x,direction:_,item:E,rowSpacing:T,columnSpacing:O,wrap:C,zeroMinWidth:A,spacing:I},P,{breakpoints:u.keys}),Q=(i=>{const{classes:o,container:a,direction:u,item:f,spacing:p,wrap:g,zeroMinWidth:y,breakpoints:b}=i;let x=[];a&&(x=function(E,D){if(!E||E<=0)return[];if("string"==typeof E&&!Number.isNaN(Number(E))||"number"==typeof E)return[`spacing-xs-${String(E)}`];const I=[];return D.forEach(C=>{const A=E[C];if(Number(A)>0){const M=`spacing-${C}-${String(A)}`;I.push(M)}}),I}(p,b));const _=[];return b.forEach(E=>{const D=i[E];D&&_.push(`grid-${E}-${String(D)}`)}),Mn({root:["root",a&&"container",f&&"item",y&&"zeroMinWidth",...x,"row"!==u&&`direction-xs-${String(u)}`,"wrap"!==g&&`wrap-xs-${String(g)}`,..._]},nI,o)})($);return Ie.jsx(pm.Provider,{value:F,children:Ie.jsx(rI,fe({ownerState:$,className:At(Q.root,p),as:b,ref:o},q))})}),iI=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function kd(i){return`scale(${i}, ${Zo(i,2)})`}const cb={entering:{opacity:1,transform:kd(1)},entered:{opacity:1,transform:"none"}},ub="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ad=z.forwardRef(function(i,o){const{addEndListener:a,appear:u=!0,children:f,easing:p,in:g,onEnter:y,onEntered:b,onEntering:x,onExit:_,onExited:E,onExiting:D,style:I,timeout:C="auto",TransitionComponent:A=Ws}=i,M=Ft(i,iI),T=th(),O=z.useRef(),L=ri(),F=z.useRef(null),P=ti(F,ni(f),o),q=K=>U=>{if(K){const ne=F.current;void 0===U?K(ne):K(ne,U)}},$=q(x),Q=q((K,U)=>{Ki(K);const{duration:ne,delay:se,easing:he}=wo({style:I,timeout:C,easing:p},{mode:"enter"});let B;"auto"===C?(B=L.transitions.getAutoHeightDuration(K.clientHeight),O.current=B):B=ne,K.style.transition=[L.transitions.create("opacity",{duration:B,delay:se}),L.transitions.create("transform",{duration:ub?B:.666*B,delay:se,easing:he})].join(","),y&&y(K,U)}),X=q(b),ae=q(D),le=q(K=>{const{duration:U,delay:ne,easing:se}=wo({style:I,timeout:C,easing:p},{mode:"exit"});let he;"auto"===C?(he=L.transitions.getAutoHeightDuration(K.clientHeight),O.current=he):he=U,K.style.transition=[L.transitions.create("opacity",{duration:he,delay:ne}),L.transitions.create("transform",{duration:ub?he:.666*he,delay:ub?ne:ne||.333*he,easing:se})].join(","),K.style.opacity=0,K.style.transform=kd(.75),_&&_(K)}),oe=q(E);return Ie.jsx(A,fe({appear:u,in:g,nodeRef:F,onEnter:Q,onEntered:X,onEntering:$,onExit:le,onExited:oe,onExiting:ae,addEndListener:K=>{"auto"===C&&T.start(O.current||0,K),a&&a(F.current,K)},timeout:"auto"===C?null:C},M,{children:(K,U)=>z.cloneElement(f,fe({style:fe({opacity:0,transform:kd(.75),visibility:"exited"!==K||g?void 0:"hidden"},cb[K],I,f.props.style),ref:P},U))}))});function db(i){return kn("MuiIcon",i)}Ad.muiSupportAuto=!0,wn("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const JS=["baseClassName","className","color","component","fontSize"],SL=He("span",{name:"MuiIcon",slot:"Root",overridesResolver:(i,o)=>{const{ownerState:a}=i;return[o.root,"inherit"!==a.color&&o[`color${Ze(a.color)}`],o[`fontSize${Ze(a.fontSize)}`]]}})(({theme:i,ownerState:o})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:i.typography.pxToRem(20),medium:i.typography.pxToRem(24),large:i.typography.pxToRem(36)}[o.fontSize],color:{primary:(i.vars||i).palette.primary.main,secondary:(i.vars||i).palette.secondary.main,info:(i.vars||i).palette.info.main,success:(i.vars||i).palette.success.main,warning:(i.vars||i).palette.warning.main,action:(i.vars||i).palette.action.active,error:(i.vars||i).palette.error.main,disabled:(i.vars||i).palette.action.disabled,inherit:void 0}[o.color]})),oI=z.forwardRef(function(i,o){const a=Fn({props:i,name:"MuiIcon"}),{baseClassName:u="material-icons",className:f,color:p="inherit",component:g="span",fontSize:y="medium"}=a,b=Ft(a,JS),x=fe({},a,{baseClassName:u,color:p,component:g,fontSize:y}),_=(E=>{const{color:D,fontSize:I,classes:C}=E;return Mn({root:["root","inherit"!==D&&`color${Ze(D)}`,`fontSize${Ze(I)}`]},db,C)})(x);return Ie.jsx(SL,fe({as:g,className:At(u,"notranslate",_.root,f),ownerState:x,"aria-hidden":!0,ref:o},b))});function fb(i){return kn("MuiInputAdornment",i)}oI.muiName="Icon";const sI=wn("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var eE;const tE=["children","className","component","disablePointerEvents","disableTypography","position","variant"],nE=He("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(i,o)=>{const{ownerState:a}=i;return[o.root,o[`position${Ze(a.position)}`],!0===a.disablePointerEvents&&o.disablePointerEvents,o[a.variant]]}})(({theme:i,ownerState:o})=>fe({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(i.vars||i).palette.action.active},"filled"===o.variant&&{[`&.${sI.positionStart}&:not(.${sI.hiddenLabel})`]:{marginTop:16}},"start"===o.position&&{marginRight:8},"end"===o.position&&{marginLeft:8},!0===o.disablePointerEvents&&{pointerEvents:"none"})),hb=z.forwardRef(function(i,o){const a=Fn({props:i,name:"MuiInputAdornment"}),{children:u,className:f,component:p="div",disablePointerEvents:g=!1,disableTypography:y=!1,position:b,variant:x}=a,_=Ft(a,tE),E=cm()||{};let D=x;E&&!D&&(D=E.variant);const I=fe({},a,{hiddenLabel:E.hiddenLabel,size:E.size,disablePointerEvents:g,position:b,variant:D}),C=(A=>{const{classes:M,disablePointerEvents:T,hiddenLabel:O,position:L,size:F,variant:P}=A;return Mn({root:["root",T&&"disablePointerEvents",L&&`position${Ze(L)}`,P,O&&"hiddenLabel",F&&`size${Ze(F)}`]},fb,M)})(I);return Ie.jsx(lm.Provider,{value:null,children:Ie.jsx(nE,fe({as:p,ownerState:I,className:At(C.root,f),ref:o},_,{children:"string"!=typeof u||y?Ie.jsxs(z.Fragment,{children:["start"===b?eE||(eE=Ie.jsx("span",{className:"notranslate",children:"\u200b"})):null,u]}):Ie.jsx(Gn,{color:"text.secondary",children:u})}))})}),Wa=z.createContext({});function rE(i){return kn("MuiList",i)}wn("MuiList",["root","padding","dense","subheader"]);const Ka=["children","className","component","dense","disablePadding","subheader"],mm=He("ul",{name:"MuiList",slot:"Root",overridesResolver:(i,o)=>{const{ownerState:a}=i;return[o.root,!a.disablePadding&&o.padding,a.dense&&o.dense,a.subheader&&o.subheader]}})(({ownerState:i})=>fe({listStyle:"none",margin:0,padding:0,position:"relative"},!i.disablePadding&&{paddingTop:8,paddingBottom:8},i.subheader&&{paddingTop:0})),pb=z.forwardRef(function(i,o){const a=Fn({props:i,name:"MuiList"}),{children:u,className:f,component:p="ul",dense:g=!1,disablePadding:y=!1,subheader:b}=a,x=Ft(a,Ka),_=z.useMemo(()=>({dense:g}),[g]),E=fe({},a,{component:p,dense:g,disablePadding:y}),D=(I=>{const{classes:C,disablePadding:A,dense:M,subheader:T}=I;return Mn({root:["root",!A&&"padding",M&&"dense",T&&"subheader"]},rE,C)})(E);return Ie.jsx(Wa.Provider,{value:_,children:Ie.jsxs(mm,fe({as:p,className:At(D.root,f),ref:o,ownerState:E},x,{children:[b,u]}))})});function aI(i){return kn("MuiListItem",i)}const Ah=wn("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),gb=wn("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function iE(i){return kn("MuiListItemSecondaryAction",i)}wn("MuiListItemSecondaryAction",["root","disableGutters"]);const mb=["className"],Rh=He("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(i,o)=>{const{ownerState:a}=i;return[o.root,a.disableGutters&&o.disableGutters]}})(({ownerState:i})=>fe({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},i.disableGutters&&{right:0})),oE=z.forwardRef(function(i,o){const a=Fn({props:i,name:"MuiListItemSecondaryAction"}),{className:u}=a,f=Ft(a,mb),p=fe({},a,{disableGutters:z.useContext(Wa).disableGutters}),g=(y=>{const{disableGutters:b,classes:x}=y;return Mn({root:["root",b&&"disableGutters"]},iE,x)})(p);return Ie.jsx(Rh,fe({className:At(g.root,u),ownerState:p,ref:o},f))});oE.muiName="ListItemSecondaryAction";const yb=["className"],sE=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],aE=He("div",{name:"MuiListItem",slot:"Root",overridesResolver:(i,o)=>{const{ownerState:a}=i;return[o.root,a.dense&&o.dense,"flex-start"===a.alignItems&&o.alignItemsFlexStart,a.divider&&o.divider,!a.disableGutters&&o.gutters,!a.disablePadding&&o.padding,a.button&&o.button,a.hasSecondaryAction&&o.secondaryAction]}})(({theme:i,ownerState:o})=>fe({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!o.disablePadding&&fe({paddingTop:8,paddingBottom:8},o.dense&&{paddingTop:4,paddingBottom:4},!o.disableGutters&&{paddingLeft:16,paddingRight:16},!!o.secondaryAction&&{paddingRight:48}),!!o.secondaryAction&&{[`& > .${gb.root}`]:{paddingRight:48}},{[`&.${Ah.focusVisible}`]:{backgroundColor:(i.vars||i).palette.action.focus},[`&.${Ah.selected}`]:{backgroundColor:i.vars?`rgba(${i.vars.palette.primary.mainChannel} / ${i.vars.palette.action.selectedOpacity})`:or.alpha(i.palette.primary.main,i.palette.action.selectedOpacity),[`&.${Ah.focusVisible}`]:{backgroundColor:i.vars?`rgba(${i.vars.palette.primary.mainChannel} / calc(${i.vars.palette.action.selectedOpacity} + ${i.vars.palette.action.focusOpacity}))`:or.alpha(i.palette.primary.main,i.palette.action.selectedOpacity+i.palette.action.focusOpacity)}},[`&.${Ah.disabled}`]:{opacity:(i.vars||i).palette.action.disabledOpacity}},"flex-start"===o.alignItems&&{alignItems:"flex-start"},o.divider&&{borderBottom:`1px solid ${(i.vars||i).palette.divider}`,backgroundClip:"padding-box"},o.button&&{transition:i.transitions.create("background-color",{duration:i.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(i.vars||i).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ah.selected}:hover`]:{backgroundColor:i.vars?`rgba(${i.vars.palette.primary.mainChannel} / calc(${i.vars.palette.action.selectedOpacity} + ${i.vars.palette.action.hoverOpacity}))`:or.alpha(i.palette.primary.main,i.palette.action.selectedOpacity+i.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:i.vars?`rgba(${i.vars.palette.primary.mainChannel} / ${i.vars.palette.action.selectedOpacity})`:or.alpha(i.palette.primary.main,i.palette.action.selectedOpacity)}}},o.hasSecondaryAction&&{paddingRight:48})),lE=He("li",{name:"MuiListItem",slot:"Container",overridesResolver:(i,o)=>o.container})({position:"relative"}),vb=z.forwardRef(function(i,o){const a=Fn({props:i,name:"MuiListItem"}),{alignItems:u="center",autoFocus:f=!1,button:p=!1,children:g,className:y,component:b,components:x={},componentsProps:_={},ContainerComponent:E="li",ContainerProps:{className:D}={},dense:I=!1,disabled:C=!1,disableGutters:A=!1,disablePadding:M=!1,divider:T=!1,focusVisibleClassName:O,secondaryAction:L,selected:F=!1,slotProps:P={},slots:q={}}=a,$=Ft(a.ContainerProps,yb),Q=Ft(a,sE),X=z.useContext(Wa),ae=z.useMemo(()=>({dense:I||X.dense||!1,alignItems:u,disableGutters:A}),[u,X.dense,I,A]),le=z.useRef(null);po(()=>{f&&le.current&&le.current.focus()},[f]);const oe=z.Children.toArray(g),K=oe.length&&Rc(oe[oe.length-1],["ListItemSecondaryAction"]),U=fe({},a,{alignItems:u,autoFocus:f,button:p,dense:ae.dense,disabled:C,disableGutters:A,disablePadding:M,divider:T,hasSecondaryAction:K,selected:F}),ne=(re=>{const{alignItems:te,button:ce,classes:ye,dense:Se,disabled:Ae,disableGutters:Le,disablePadding:Ne,divider:Ve,hasSecondaryAction:Re,selected:Me}=re;return Mn({root:["root",Se&&"dense",!Le&&"gutters",!Ne&&"padding",Ve&&"divider",Ae&&"disabled",ce&&"button","flex-start"===te&&"alignItemsFlexStart",Re&&"secondaryAction",Me&&"selected"],container:["container"]},aI,ye)})(U),se=ti(le,o),he=q.root||x.Root||aE,B=P.root||_.root||{},G=fe({className:At(ne.root,B.className,y),disabled:C},Q);let Z=b||"li";return p&&(G.component=b||"div",G.focusVisibleClassName=At(Ah.focusVisible,O),Z=Va),K?(Z=G.component||b?Z:"div","li"===E&&("li"===Z?Z="div":"li"===G.component&&(G.component="div")),Ie.jsx(Wa.Provider,{value:ae,children:Ie.jsxs(lE,fe({as:E,className:At(ne.container,D),ref:se,ownerState:U},$,{children:[Ie.jsx(he,fe({},B,!Fa(he)&&{as:Z,ownerState:fe({},U,B.ownerState)},G,{children:oe})),oe.pop()]}))})):Ie.jsx(Wa.Provider,{value:ae,children:Ie.jsxs(he,fe({},B,{as:Z,ref:se},!Fa(he)&&{ownerState:fe({},U,B.ownerState)},G,{children:[oe,L&&Ie.jsx(oE,{children:L})]}))})});function bb(i){return kn("MuiListItemIcon",i)}const cE=wn("MuiListItemIcon",["root","alignItemsFlexStart"]),lI=["className"],uE=He("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(i,o)=>{const{ownerState:a}=i;return[o.root,"flex-start"===a.alignItems&&o.alignItemsFlexStart]}})(({theme:i,ownerState:o})=>fe({minWidth:56,color:(i.vars||i).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===o.alignItems&&{marginTop:8})),Rd=z.forwardRef(function(i,o){const a=Fn({props:i,name:"MuiListItemIcon"}),{className:u}=a,f=Ft(a,lI),p=fe({},a,{alignItems:z.useContext(Wa).alignItems}),g=(y=>{const{alignItems:b,classes:x}=y;return Mn({root:["root","flex-start"===b&&"alignItemsFlexStart"]},bb,x)})(p);return Ie.jsx(uE,fe({className:At(g.root,u),ownerState:p,ref:o},f))}),wb=wn("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),cI=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function xb(i,o,a){return i===o?i.firstChild:o&&o.nextElementSibling?o.nextElementSibling:a?null:i.firstChild}function zc(i,o,a){return i===o?a?i.firstChild:i.lastChild:o&&o.previousElementSibling?o.previousElementSibling:a?null:i.lastChild}function dE(i,o){if(void 0===o)return!0;let a=i.innerText;return void 0===a&&(a=i.textContent),a=a.trim().toLowerCase(),0!==a.length&&(o.repeating?a[0]===o.keys[0]:0===a.indexOf(o.keys.join("")))}function Ih(i,o,a,u,f,p){let g=!1,y=f(i,o,!!o&&a);for(;y;){if(y===i.firstChild){if(g)return!1;g=!0}const b=!u&&(y.disabled||"true"===y.getAttribute("aria-disabled"));if(y.hasAttribute("tabindex")&&dE(y,p)&&!b)return y.focus(),!0;y=f(i,y,a)}return!1}const uI=z.forwardRef(function(i,o){const{actions:a,autoFocus:u=!1,autoFocusItem:f=!1,children:p,className:g,disabledItemsFocusable:y=!1,disableListWrap:b=!1,onKeyDown:x,variant:_="selectedMenu"}=i,E=Ft(i,cI),D=z.useRef(null),I=z.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});po(()=>{u&&D.current.focus()},[u]),z.useImperativeHandle(a,()=>({adjustStyleForScrollbar:(T,{direction:O})=>{if(T.clientHeight<D.current.clientHeight&&!D.current.style.width){const F=`${mo(jr(T))}px`;D.current.style["rtl"===O?"paddingLeft":"paddingRight"]=F,D.current.style.width=`calc(100% + ${F})`}return D.current}}),[]);const C=ti(D,o);let A=-1;z.Children.forEach(p,(T,O)=>{z.isValidElement(T)?(T.props.disabled||("selectedMenu"===_&&T.props.selected||-1===A)&&(A=O),A===O&&(T.props.disabled||T.props.muiSkipListHighlight||T.type.muiSkipListHighlight)&&(A+=1,A>=p.length&&(A=-1))):A===O&&(A+=1,A>=p.length&&(A=-1))});const M=z.Children.map(p,(T,O)=>{if(O===A){const L={};return f&&(L.autoFocus=!0),void 0===T.props.tabIndex&&"selectedMenu"===_&&(L.tabIndex=0),z.cloneElement(T,L)}return T});return Ie.jsx(pb,fe({role:"menu",ref:C,className:g,onKeyDown:T=>{const O=D.current,L=T.key,F=jr(O).activeElement;if("ArrowDown"===L)T.preventDefault(),Ih(O,F,b,y,xb);else if("ArrowUp"===L)T.preventDefault(),Ih(O,F,b,y,zc);else if("Home"===L)T.preventDefault(),Ih(O,null,b,y,xb);else if("End"===L)T.preventDefault(),Ih(O,null,b,y,zc);else if(1===L.length){const P=I.current,q=L.toLowerCase(),$=performance.now();P.keys.length>0&&($-P.lastTime>500?(P.keys=[],P.repeating=!0,P.previousKeyMatched=!0):P.repeating&&q!==P.keys[0]&&(P.repeating=!1)),P.lastTime=$,P.keys.push(q);const Q=F&&!P.repeating&&dE(F,P);P.previousKeyMatched&&(Q||Ih(O,F,!1,y,xb,P))?T.preventDefault():P.previousKeyMatched=!1}x&&x(T)},tabIndex:u?0:-1},E,{children:M}))});function dI(i){return kn("MuiPopover",i)}wn("MuiPopover",["root","paper"]);const Yi=["onEntering"],_b=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],fE=["slotProps"];function Sb(i,o){let a=0;return"number"==typeof o?a=o:"center"===o?a=i.height/2:"bottom"===o&&(a=i.height),a}function Eb(i,o){let a=0;return"number"==typeof o?a=o:"center"===o?a=i.width/2:"right"===o&&(a=i.width),a}function Cb(i){return[i.horizontal,i.vertical].map(o=>"number"==typeof o?`${o}px`:o).join(" ")}function Db(i){return"function"==typeof i?i():i}const fI=He(ab,{name:"MuiPopover",slot:"Root",overridesResolver:(i,o)=>o.root})({}),hI=He(j0,{name:"MuiPopover",slot:"Paper",overridesResolver:(i,o)=>o.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Mh=z.forwardRef(function(i,o){var a,u,f;const p=Fn({props:i,name:"MuiPopover"}),{action:g,anchorEl:y,anchorOrigin:b={vertical:"top",horizontal:"left"},anchorPosition:x,anchorReference:_="anchorEl",children:E,className:D,container:I,elevation:C=8,marginThreshold:A=16,open:M,PaperProps:T={},slots:O,slotProps:L,transformOrigin:F={vertical:"top",horizontal:"left"},TransitionComponent:P=Ad,transitionDuration:q="auto",TransitionProps:{onEntering:$}={},disableScrollLock:Q=!1}=p,X=Ft(p.TransitionProps,Yi),ae=Ft(p,_b),le=null!=(a=null==L?void 0:L.paper)?a:T,oe=z.useRef(),K=ti(oe,le.ref),U=fe({},p,{anchorOrigin:b,anchorReference:_,elevation:C,marginThreshold:A,externalPaperSlotProps:le,transformOrigin:F,TransitionComponent:P,transitionDuration:q,TransitionProps:X}),ne=(Re=>{const{classes:Me}=Re;return Mn({root:["root"],paper:["paper"]},dI,Me)})(U),se=z.useCallback(()=>{if("anchorPosition"===_)return x;const Re=Db(y),Me=(Re&&1===Re.nodeType?Re:jr(oe.current).body).getBoundingClientRect();return{top:Me.top+Sb(Me,b.vertical),left:Me.left+Eb(Me,b.horizontal)}},[y,b.horizontal,b.vertical,x,_]),he=z.useCallback(Re=>({vertical:Sb(Re,F.vertical),horizontal:Eb(Re,F.horizontal)}),[F.horizontal,F.vertical]),B=z.useCallback(Re=>{const Me={width:Re.offsetWidth,height:Re.offsetHeight},nt=he(Me);if("none"===_)return{top:null,left:null,transformOrigin:Cb(nt)};const Ge=se();let yt=Ge.top-nt.vertical,Rt=Ge.left-nt.horizontal;const Bt=yt+Me.height,ze=Rt+Me.width,It=go(Db(y)),ct=It.innerHeight-A,Ht=It.innerWidth-A;if(null!==A&&yt<A){const xt=yt-A;yt-=xt,nt.vertical+=xt}else if(null!==A&&Bt>ct){const xt=Bt-ct;yt-=xt,nt.vertical+=xt}if(null!==A&&Rt<A){const xt=Rt-A;Rt-=xt,nt.horizontal+=xt}else if(ze>Ht){const xt=ze-Ht;Rt-=xt,nt.horizontal+=xt}return{top:`${Math.round(yt)}px`,left:`${Math.round(Rt)}px`,transformOrigin:Cb(nt)}},[y,_,se,he,A]),[G,Z]=z.useState(M),re=z.useCallback(()=>{const Re=oe.current;if(!Re)return;const Me=B(Re);null!==Me.top&&(Re.style.top=Me.top),null!==Me.left&&(Re.style.left=Me.left),Re.style.transformOrigin=Me.transformOrigin,Z(!0)},[B]);z.useEffect(()=>(Q&&window.addEventListener("scroll",re),()=>window.removeEventListener("scroll",re)),[y,Q,re]),z.useEffect(()=>{M&&re()}),z.useImperativeHandle(g,()=>M?{updatePosition:()=>{re()}}:null,[M,re]),z.useEffect(()=>{if(!M)return;const Re=Jf(()=>{re()}),Me=go(y);return Me.addEventListener("resize",Re),()=>{Re.clear(),Me.removeEventListener("resize",Re)}},[y,M,re]);let te=q;"auto"!==q||P.muiSupportAuto||(te=void 0);const ce=I||(y?jr(Db(y)).body:void 0),ye=null!=(u=null==O?void 0:O.root)?u:fI,Se=null!=(f=null==O?void 0:O.paper)?f:hI,Ae=Il({elementType:Se,externalSlotProps:fe({},le,{style:G?le.style:fe({},le.style,{opacity:0})}),additionalProps:{elevation:C,ref:K},ownerState:U,className:At(ne.paper,null==le?void 0:le.className)}),Le=Il({elementType:ye,externalSlotProps:(null==L?void 0:L.root)||{},externalForwardedProps:ae,additionalProps:{ref:o,slotProps:{backdrop:{invisible:!0}},container:ce,open:M},ownerState:U,className:At(ne.root,D)}),{slotProps:Ne}=Le,Ve=Ft(Le,fE);return Ie.jsx(ye,fe({},Ve,!Fa(ye)&&{slotProps:Ne,disableScrollLock:Q},{children:Ie.jsx(P,fe({appear:!0,in:M,onEntering:(Re,Me)=>{$&&$(Re,Me),re()},onExited:()=>{Z(!1)},timeout:te},X,{children:Ie.jsx(Se,fe({},Ae,{children:E}))}))}))});function hE(i){return kn("MuiMenuItem",i)}const ym=wn("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),pE=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],pI=He(Va,{shouldForwardProp:i=>ss(i)||"classes"===i,name:"MuiMenuItem",slot:"Root",overridesResolver:(i,o)=>{const{ownerState:a}=i;return[o.root,a.dense&&o.dense,a.divider&&o.divider,!a.disableGutters&&o.gutters]}})(({theme:i,ownerState:o})=>fe({},i.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!o.disableGutters&&{paddingLeft:16,paddingRight:16},o.divider&&{borderBottom:`1px solid ${(i.vars||i).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(i.vars||i).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ym.selected}`]:{backgroundColor:i.vars?`rgba(${i.vars.palette.primary.mainChannel} / ${i.vars.palette.action.selectedOpacity})`:or.alpha(i.palette.primary.main,i.palette.action.selectedOpacity),[`&.${ym.focusVisible}`]:{backgroundColor:i.vars?`rgba(${i.vars.palette.primary.mainChannel} / calc(${i.vars.palette.action.selectedOpacity} + ${i.vars.palette.action.focusOpacity}))`:or.alpha(i.palette.primary.main,i.palette.action.selectedOpacity+i.palette.action.focusOpacity)}},[`&.${ym.selected}:hover`]:{backgroundColor:i.vars?`rgba(${i.vars.palette.primary.mainChannel} / calc(${i.vars.palette.action.selectedOpacity} + ${i.vars.palette.action.hoverOpacity}))`:or.alpha(i.palette.primary.main,i.palette.action.selectedOpacity+i.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:i.vars?`rgba(${i.vars.palette.primary.mainChannel} / ${i.vars.palette.action.selectedOpacity})`:or.alpha(i.palette.primary.main,i.palette.action.selectedOpacity)}},[`&.${ym.focusVisible}`]:{backgroundColor:(i.vars||i).palette.action.focus},[`&.${ym.disabled}`]:{opacity:(i.vars||i).palette.action.disabledOpacity},[`& + .${GS.root}`]:{marginTop:i.spacing(1),marginBottom:i.spacing(1)},[`& + .${GS.inset}`]:{marginLeft:52},[`& .${wb.root}`]:{marginTop:0,marginBottom:0},[`& .${wb.inset}`]:{paddingLeft:36},[`& .${cE.root}`]:{minWidth:36}},!o.dense&&{[i.breakpoints.up("sm")]:{minHeight:"auto"}},o.dense&&fe({minHeight:32,paddingTop:4,paddingBottom:4},i.typography.body2,{[`& .${cE.root} svg`]:{fontSize:"1.25rem"}}))),gI=z.forwardRef(function(i,o){const a=Fn({props:i,name:"MuiMenuItem"}),{autoFocus:u=!1,component:f="li",dense:p=!1,divider:g=!1,disableGutters:y=!1,focusVisibleClassName:b,role:x="menuitem",tabIndex:_,className:E}=a,D=Ft(a,pE),I=z.useContext(Wa),C=z.useMemo(()=>({dense:p||I.dense||!1,disableGutters:y}),[I.dense,p,y]),A=z.useRef(null);po(()=>{u&&A.current&&A.current.focus()},[u]);const M=fe({},a,{dense:C.dense,divider:g,disableGutters:y}),T=(F=>{const{disabled:P,dense:q,divider:$,disableGutters:Q,selected:X,classes:ae}=F;return fe({},ae,Mn({root:["root",q&&"dense",P&&"disabled",!Q&&"gutters",$&&"divider",X&&"selected"]},hE,ae))})(a),O=ti(A,o);let L;return a.disabled||(L=void 0!==_?_:-1),Ie.jsx(Wa.Provider,{value:C,children:Ie.jsx(pI,fe({ref:O,role:x,tabIndex:L,component:f,focusVisibleClassName:At(T.focusVisible,b),className:At(T.root,E)},D,{ownerState:M,classes:T}))})});var mI;const EL=["children","classes","className","label","notched"],kb=He("fieldset",{shouldForwardProp:ss})({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%"}),yI=He("legend",{shouldForwardProp:ss})(({ownerState:i,theme:o})=>fe({float:"unset",width:"auto",overflow:"hidden"},!i.withLabel&&{padding:0,lineHeight:"11px",transition:o.transitions.create("width",{duration:150,easing:o.transitions.easing.easeOut})},i.withLabel&&fe({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:o.transitions.create("max-width",{duration:50,easing:o.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},i.notched&&{maxWidth:"100%",transition:o.transitions.create("max-width",{duration:100,easing:o.transitions.easing.easeOut,delay:50})}))),gE=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],mE=He(TS,{shouldForwardProp:i=>ss(i)||"classes"===i,name:"MuiOutlinedInput",slot:"Root",overridesResolver:jR})(({theme:i,ownerState:o})=>fe({position:"relative",borderRadius:(i.vars||i).shape.borderRadius,[`&:hover .${Nl.notchedOutline}`]:{borderColor:(i.vars||i).palette.text.primary},"@media (hover: none)":{[`&:hover .${Nl.notchedOutline}`]:{borderColor:i.vars?`rgba(${i.vars.palette.common.onBackgroundChannel} / 0.23)`:"light"===i.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}},[`&.${Nl.focused} .${Nl.notchedOutline}`]:{borderColor:(i.vars||i).palette[o.color].main,borderWidth:2},[`&.${Nl.error} .${Nl.notchedOutline}`]:{borderColor:(i.vars||i).palette.error.main},[`&.${Nl.disabled} .${Nl.notchedOutline}`]:{borderColor:(i.vars||i).palette.action.disabled}},o.startAdornment&&{paddingLeft:14},o.endAdornment&&{paddingRight:14},o.multiline&&fe({padding:"16.5px 14px"},"small"===o.size&&{padding:"8.5px 14px"}))),CL=He(function(i){const{className:o,label:a,notched:u}=i,f=Ft(i,EL),p=null!=a&&""!==a,g=fe({},i,{notched:u,withLabel:p});return Ie.jsx(kb,fe({"aria-hidden":!0,className:o,ownerState:g},f,{children:Ie.jsx(yI,{ownerState:g,children:p?Ie.jsx("span",{children:a}):mI||(mI=Ie.jsx("span",{className:"notranslate",children:"\u200b"}))})}))},{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(i,o)=>o.notchedOutline})(({theme:i})=>({borderColor:i.vars?`rgba(${i.vars.palette.common.onBackgroundChannel} / 0.23)`:"light"===i.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"})),fs=He(OS,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:MS})(({theme:i,ownerState:o})=>fe({padding:"16.5px 14px"},!i.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===i.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===i.palette.mode?null:"#fff",caretColor:"light"===i.palette.mode?null:"#fff",borderRadius:"inherit"}},i.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[i.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===o.size&&{padding:"8.5px 14px"},o.multiline&&{padding:0},o.startAdornment&&{paddingLeft:0},o.endAdornment&&{paddingRight:0})),vI=z.forwardRef(function(i,o){var a,u,f,p,g;const y=Fn({props:i,name:"MuiOutlinedInput"}),{components:b={},fullWidth:x=!1,inputComponent:_="input",label:E,multiline:D=!1,notched:I,slots:C={},type:A="text"}=y,M=Ft(y,gE),T=($=>{const{classes:Q}=$;return fe({},Q,Mn({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},cL,Q))})(y),O=cm(),L=IS({props:y,muiFormControl:O,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),F=fe({},y,{color:L.color||"primary",disabled:L.disabled,error:L.error,focused:L.focused,formControl:O,fullWidth:x,hiddenLabel:L.hiddenLabel,multiline:D,size:L.size,type:A}),P=null!=(a=null!=(u=C.root)?u:b.Root)?a:mE,q=null!=(f=null!=(p=C.input)?p:b.Input)?f:fs;return Ie.jsx(LS,fe({slots:{root:P,input:q},renderSuffix:$=>Ie.jsx(CL,{ownerState:F,className:T.notchedOutline,label:null!=E&&""!==E&&L.required?g||(g=Ie.jsxs(z.Fragment,{children:[E,"\u2009","*"]})):E,notched:void 0!==I?I:Boolean($.startAdornment||$.filled||$.focused)}),fullWidth:x,inputComponent:_,multiline:D,ref:o,type:A},M,{classes:fe({},T,{notchedOutline:null})}))});vI.muiName="Input";var DL=md(Ie.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),yE=md(Ie.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked");const vE=He("span",{shouldForwardProp:ss})({position:"relative",display:"flex"}),bE=He(DL)({transform:"scale(1)"}),bI=He(yE)(({theme:i,ownerState:o})=>fe({left:0,position:"absolute",transform:"scale(0)",transition:i.transitions.create("transform",{easing:i.transitions.easing.easeIn,duration:i.transitions.duration.shortest})},o.checked&&{transform:"scale(1)",transition:i.transitions.create("transform",{easing:i.transitions.easing.easeOut,duration:i.transitions.duration.shortest})}));function wI(i){const{checked:o=!1,classes:a={},fontSize:u}=i,f=fe({},i,{checked:o});return Ie.jsxs(vE,{className:a.root,ownerState:f,children:[Ie.jsx(bE,{fontSize:u,className:a.background,ownerState:f}),Ie.jsx(bI,{fontSize:u,className:a.dot,ownerState:f})]})}const wE=z.createContext(void 0);function jt(i){return kn("MuiRadio",i)}const xE=wn("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),Ab=["checked","checkedIcon","color","icon","name","onChange","size","className"],xI=He(Z0,{shouldForwardProp:i=>ss(i)||"classes"===i,name:"MuiRadio",slot:"Root",overridesResolver:(i,o)=>{const{ownerState:a}=i;return[o.root,"medium"!==a.size&&o[`size${Ze(a.size)}`],o[`color${Ze(a.color)}`]]}})(({theme:i,ownerState:o})=>fe({color:(i.vars||i).palette.text.secondary},!o.disableRipple&&{"&:hover":{backgroundColor:i.vars?`rgba(${"default"===o.color?i.vars.palette.action.activeChannel:i.vars.palette[o.color].mainChannel} / ${i.vars.palette.action.hoverOpacity})`:or.alpha("default"===o.color?i.palette.action.active:i.palette[o.color].main,i.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==o.color&&{[`&.${xE.checked}`]:{color:(i.vars||i).palette[o.color].main}},{[`&.${xE.disabled}`]:{color:(i.vars||i).palette.action.disabled}})),_E=Ie.jsx(wI,{checked:!0}),SE=Ie.jsx(wI,{}),_I=z.forwardRef(function(i,o){var a,u;const f=Fn({props:i,name:"MuiRadio"}),{checked:p,checkedIcon:g=_E,color:y="primary",icon:b=SE,name:x,onChange:_,size:E="medium",className:D}=f,I=Ft(f,Ab),C=fe({},f,{color:y,size:E}),A=(F=>{const{classes:P,color:q,size:$}=F;return fe({},P,Mn({root:["root",`color${Ze(q)}`,"medium"!==$&&`size${Ze($)}`]},jt,P))})(C),M=z.useContext(wE);let T=p;const O=rd(_,M&&M.onChange);let L=x;return M&&(void 0===T&&(F=M.value,T="object"==typeof(P=f.value)&&null!==P?F===P:String(F)===String(P)),void 0===L&&(L=M.name)),Ie.jsx(xI,fe({type:"radio",icon:z.cloneElement(b,{fontSize:null!=(a=SE.props.fontSize)?a:E}),checkedIcon:z.cloneElement(g,{fontSize:null!=(u=_E.props.fontSize)?u:E}),ownerState:C,classes:A,name:L,checked:T,onChange:O,ref:o,className:At(A.root,D)},I));var F,P});function SI(i){return kn("MuiTooltip",i)}const Bl=wn("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),vm=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"],Id=He(am,{name:"MuiTooltip",slot:"Popper",overridesResolver:(i,o)=>{const{ownerState:a}=i;return[o.popper,!a.disableInteractive&&o.popperInteractive,a.arrow&&o.popperArrow,!a.open&&o.popperClose]}})(({theme:i,ownerState:o,open:a})=>fe({zIndex:(i.vars||i).zIndex.tooltip,pointerEvents:"none"},!o.disableInteractive&&{pointerEvents:"auto"},!a&&{pointerEvents:"none"},o.arrow&&{[`&[data-popper-placement*="bottom"] .${Bl.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Bl.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Bl.arrow}`]:fe({},o.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Bl.arrow}`]:fe({},o.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),EI=He("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(i,o)=>{const{ownerState:a}=i;return[o.tooltip,a.touch&&o.touch,a.arrow&&o.tooltipArrow,o[`tooltipPlacement${Ze(a.placement.split("-")[0])}`]]}})(({theme:i,ownerState:o})=>fe({backgroundColor:i.vars?i.vars.palette.Tooltip.bg:or.alpha(i.palette.grey[700],.92),borderRadius:(i.vars||i).shape.borderRadius,color:(i.vars||i).palette.common.white,fontFamily:i.typography.fontFamily,padding:"4px 8px",fontSize:i.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:i.typography.fontWeightMedium},o.arrow&&{position:"relative",margin:0},o.touch&&{padding:"8px 16px",fontSize:i.typography.pxToRem(14),lineHeight:(16/14,Math.round(114285.71428571428)/1e5+"em"),fontWeight:i.typography.fontWeightRegular},{[`.${Bl.popper}[data-popper-placement*="left"] &`]:fe({transformOrigin:"right center"},o.isRtl?fe({marginLeft:"14px"},o.touch&&{marginLeft:"24px"}):fe({marginRight:"14px"},o.touch&&{marginRight:"24px"})),[`.${Bl.popper}[data-popper-placement*="right"] &`]:fe({transformOrigin:"left center"},o.isRtl?fe({marginRight:"14px"},o.touch&&{marginRight:"24px"}):fe({marginLeft:"14px"},o.touch&&{marginLeft:"24px"})),[`.${Bl.popper}[data-popper-placement*="top"] &`]:fe({transformOrigin:"center bottom",marginBottom:"14px"},o.touch&&{marginBottom:"24px"}),[`.${Bl.popper}[data-popper-placement*="bottom"] &`]:fe({transformOrigin:"center top",marginTop:"14px"},o.touch&&{marginTop:"24px"})})),Th=He("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(i,o)=>o.arrow})(({theme:i})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:i.vars?i.vars.palette.Tooltip.bg:or.alpha(i.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let bm=!1;const EE=new qg;let qc={x:0,y:0};function Co(i,o){return(a,...u)=>{o&&o(a,...u),i(a,...u)}}const zl=z.forwardRef(function(i,o){var a,u,f,p,g,y,b,x,_,E,D,I,C,A,M,T,O,L,F;const P=Fn({props:i,name:"MuiTooltip"}),{arrow:q=!1,children:$,components:Q={},componentsProps:X={},describeChild:ae=!1,disableFocusListener:le=!1,disableHoverListener:oe=!1,disableInteractive:K=!1,disableTouchListener:U=!1,enterDelay:ne=100,enterNextDelay:se=0,enterTouchDelay:he=700,followCursor:B=!1,id:G,leaveDelay:Z=0,leaveTouchDelay:re=1500,onClose:te,onOpen:ce,open:ye,placement:Se="bottom",PopperComponent:Ae,PopperProps:Le={},slotProps:Ne={},slots:Ve={},title:Re,TransitionComponent:Me=Ad,TransitionProps:nt}=P,Ge=Ft(P,vm),yt=z.isValidElement($)?$:Ie.jsx("span",{children:$}),Rt=ri(),Bt=(()=>{const Lt=z.useContext(F_);return null!=Lt&&Lt})(),[ze,It]=z.useState(),[ct,Ht]=z.useState(null),xt=z.useRef(!1),st=K||B,ft=th(),ht=th(),at=th(),gt=th(),[$e,Ke]=f0({controlled:ye,default:!1,name:"Tooltip",state:"open"});let hn=$e;const zn=jA(G),qn=z.useRef(),gr=Ot(()=>{void 0!==qn.current&&(document.body.style.WebkitUserSelect=qn.current,qn.current=void 0),gt.clear()});z.useEffect(()=>gr,[gr]);const Ir=Lt=>{EE.clear(),bm=!0,Ke(!0),ce&&!hn&&ce(Lt)},Mr=Ot(Lt=>{EE.start(800+Z,()=>{bm=!1}),Ke(!1),te&&hn&&te(Lt),ft.start(Rt.transitions.duration.shortest,()=>{xt.current=!1})}),pn=Lt=>{xt.current&&"touchstart"!==Lt.type||(ze&&ze.removeAttribute("title"),ht.clear(),at.clear(),ne||bm&&se?ht.start(bm?se:ne,()=>{Ir(Lt)}):Ir(Lt))},nn=Lt=>{ht.clear(),at.start(Z,()=>{Mr(Lt)})},{isFocusVisibleRef:Jt,onBlur:mn,onFocus:gn,ref:yn}=p0(),[,rt]=z.useState(!1),_t=Lt=>{mn(Lt),!1===Jt.current&&(rt(!1),nn(Lt))},Gt=Lt=>{ze||It(Lt.currentTarget),gn(Lt),!0===Jt.current&&(rt(!0),pn(Lt))},bt=Lt=>{xt.current=!0;const Pt=yt.props;Pt.onTouchStart&&Pt.onTouchStart(Lt)};z.useEffect(()=>{if(hn)return document.addEventListener("keydown",Lt),()=>{document.removeEventListener("keydown",Lt)};function Lt(Pt){"Escape"!==Pt.key&&"Esc"!==Pt.key||Mr(Pt)}},[Mr,hn]);const Un=ti(ni(yt),yn,It,o);Re||0===Re||(hn=!1);const Tn=z.useRef(),jn={},zt="string"==typeof Re;ae?(jn.title=hn||!zt||oe?null:Re,jn["aria-describedby"]=hn?zn:null):(jn["aria-label"]=zt?Re:null,jn["aria-labelledby"]=hn&&!zt?zn:null);const vn=fe({},jn,Ge,yt.props,{className:At(Ge.className,yt.props.className),onTouchStart:bt,ref:Un},B?{onMouseMove:Lt=>{const Pt=yt.props;Pt.onMouseMove&&Pt.onMouseMove(Lt),qc={x:Lt.clientX,y:Lt.clientY},Tn.current&&Tn.current.update()}}:{}),Bn={};U||(vn.onTouchStart=Lt=>{bt(Lt),at.clear(),ft.clear(),gr(),qn.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",gt.start(he,()=>{document.body.style.WebkitUserSelect=qn.current,pn(Lt)})},vn.onTouchEnd=Lt=>{yt.props.onTouchEnd&&yt.props.onTouchEnd(Lt),gr(),at.start(re,()=>{Mr(Lt)})}),oe||(vn.onMouseOver=Co(pn,vn.onMouseOver),vn.onMouseLeave=Co(nn,vn.onMouseLeave),st||(Bn.onMouseOver=pn,Bn.onMouseLeave=nn)),le||(vn.onFocus=Co(Gt,vn.onFocus),vn.onBlur=Co(_t,vn.onBlur),st||(Bn.onFocus=Gt,Bn.onBlur=_t));const cn=z.useMemo(()=>{var Lt;let Pt=[{name:"arrow",enabled:Boolean(ct),options:{element:ct,padding:4}}];return null!=(Lt=Le.popperOptions)&&Lt.modifiers&&(Pt=Pt.concat(Le.popperOptions.modifiers)),fe({},Le.popperOptions,{modifiers:Pt})},[ct,Le]),On=fe({},P,{isRtl:Bt,arrow:q,disableInteractive:st,placement:Se,PopperComponentProp:Ae,touch:xt.current}),Wn=(Lt=>{const{classes:Pt,disableInteractive:gp,arrow:Vn,touch:Xa,placement:Sn}=Lt;return Mn({popper:["popper",!gp&&"popperInteractive",Vn&&"popperArrow"],tooltip:["tooltip",Vn&&"tooltipArrow",Xa&&"touch",`tooltipPlacement${Ze(Sn.split("-")[0])}`],arrow:["arrow"]},SI,Pt)})(On),Qn=null!=(a=null!=(u=Ve.popper)?u:Q.Popper)?a:Id,vr=null!=(f=null!=(p=null!=(g=Ve.transition)?g:Q.Transition)?p:Me)?f:Ad,un=null!=(y=null!=(b=Ve.tooltip)?b:Q.Tooltip)?y:EI,lt=null!=(x=null!=(_=Ve.arrow)?_:Q.Arrow)?x:Th,St=Na(Qn,fe({},Le,null!=(E=Ne.popper)?E:X.popper,{className:At(Wn.popper,null==Le?void 0:Le.className,null==(D=null!=(I=Ne.popper)?I:X.popper)?void 0:D.className)}),On),Zi=Na(vr,fe({},nt,null!=(C=Ne.transition)?C:X.transition),On),Hr=Na(un,fe({},null!=(A=Ne.tooltip)?A:X.tooltip,{className:At(Wn.tooltip,null==(M=null!=(T=Ne.tooltip)?T:X.tooltip)?void 0:M.className)}),On),ai=Na(lt,fe({},null!=(O=Ne.arrow)?O:X.arrow,{className:At(Wn.arrow,null==(L=null!=(F=Ne.arrow)?F:X.arrow)?void 0:L.className)}),On);return Ie.jsxs(z.Fragment,{children:[z.cloneElement(yt,vn),Ie.jsx(Qn,fe({as:null!=Ae?Ae:am,placement:Se,anchorEl:B?{getBoundingClientRect:()=>({top:qc.y,left:qc.x,right:qc.x,bottom:qc.y,width:0,height:0})}:ze,popperRef:Tn,open:!!ze&&hn,id:zn,transition:!0},Bn,St,{popperOptions:cn,children:({TransitionProps:Lt})=>Ie.jsx(vr,fe({timeout:Rt.transitions.duration.shorter},Lt,Zi,{children:Ie.jsxs(un,fe({},Hr,{children:[Re,q?Ie.jsx(lt,fe({},ai,{ref:Ht})):null]}))}))}))]})});function oi(){const{useModelStore:i}=z.useContext(sr).modelStore;return i()}function Qa(i,o){const a=o?"".concat(o.id,"/").concat(JSON.stringify(i)):null,[u]=oi(),[f]=function(){const{useRpcRequestSessionModelStore:_}=z.useContext(sr).modelStore;return _()}(),[p,g]=z.useState();for(var y=arguments.length,b=new Array(y>2?y-2:0),x=2;x<y;x++)b[x-2]=arguments[x];return z.useEffect(()=>{!o||qe(function*(){let _=f.get(a);_||(_=o.createSessionObject(i),f.set(a,_));const E=yield _;u.set(a,E),g(E)})()},[o,...b]),[p]}const wm={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function Do(i){return Qa(wm,i)}const Md=(i,o)=>{const{rpcResultStore:a,key:u,method:f}=o;let p;switch(o.type){case"INVALID":p=de(de({},i),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":p={result:de({},o.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":p=de(de({},i),{},{invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1});break;default:throw new Error("Undefined action")}let g=a.get(u);return g||(g={}),g[f]=p,a.set(u,g),p};function Vc(i,o){const a=i?"".concat(i.id):null,[u]=function(){const{useRpcResultStore:E}=z.useContext(sr).modelStore;return E()}(),[f,p]=z.useReducer(Md,a?u.get(a):null),[g]=function(){const{useModelChangedStore:E}=z.useContext(sr).modelStore;return E()}(),[y]=function(){const{useRpcRequestStore:E}=z.useContext(sr).modelStore;return E()}();let b;a&&(b=y.get(a),b||(b={},y.set(a,b)));const x=function(){var E=qe(function*(D){let I=b[o];(!I||I&&I.rpcRetry)&&(I={rpc:i[o](),rpcRetry:!1},b[o]=I,p({type:"INVALID",method:o,key:a,model:i,rpcResultStore:u,canCancel:!0}));try{yield(i=>new Promise(o=>{setTimeout(o,i)}))(0);const C=yield I.rpc;p({type:"VALID",result:C,key:a,method:o,model:i,rpcResultStore:u})}catch(C){15!==C.code||D||(I.rpcRetry||(I.rpcRetry=!0),x(!0))}});return function(I){return E.apply(this,arguments)}}(),_={cancel:(E=qe(function*(){yield i.session.getObjectApi({handle:-1}).cancelRequest(b[o].rpc.requestId),p({type:"CANCELLED",key:a,method:o,model:i,rpcResultStore:u})}),function(){return E.apply(this,arguments)}),retry:()=>{b[o].rpcRetry=!0,x()}};var E;return z.useEffect(()=>{i&&x()},[i,g.get(i&&i.id),a,o]),[f&&f.result,{validating:f&&f.validating,canCancel:f&&f.canCancel,canRetry:f&&f.canRetry},_]}function Vo(i){return Vc(i,"getLayout")}function $c(i){return Vc(i,"getAppLayout")}function hs(){const[i,o]=z.useState(),[a,u]=z.useState(),f=z.useCallback(g=>{g&&o(g)},[]),p=()=>{const{left:g,top:y,width:b,height:x}=i.getBoundingClientRect();u({left:g,top:y,width:b,height:x})};return z.useLayoutEffect(()=>{if(i){if("function"==typeof ResizeObserver){let g=new ResizeObserver(p);return g.observe(i),()=>{g.unobserve(i),g.disconnect(i),g=null}}return p(),window.addEventListener("resize",p),()=>{window.removeEventListener("resize",p)}}},[i]),[f,a,i]}function Td(i){return"large"===i?"20px":"small"===i?"12px":"16px"}function kr(i){let{size:o,style:a={},viewBox:u="0 0 16 16",shapes:f=[]}=i;const p=de({fontSize:Td(o),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},a);return Y.createElement("i",{style:p},Y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:u,fill:"currentColor"},f.map((g,y)=>{let{type:b,attrs:x}=g;return Y.createElement(b,Er({key:y},x))})))}var Od=i=>kr((o=>de(de({},o),{},{shapes:[{type:"path",attrs:{d:"M9.41421356,8 L11.8890873,5.52512627 C12.065864,5.34834957 12.0305087,4.95944084 11.8183766,4.74730881 L11.2526912,4.18162338 C11.0405592,3.96949135 10.6516504,3.93413601 10.4748737,4.1109127 L8,6.58578644 L5.52512627,4.1109127 C5.34834957,3.93413601 4.95944084,3.96949135 4.74730881,4.18162338 L4.25233406,4.67659813 C3.96949135,4.95944084 3.93413601,5.34834957 4.1109127,5.52512627 L6.58578644,8 L4.1109127,10.4748737 C3.93413601,10.6516504 3.96949135,11.0405592 4.18162338,11.2526912 L4.67659813,11.7476659 C4.95944084,12.0305087 5.34834957,12.065864 5.52512627,11.8890873 L8,9.41421356 L10.4748737,11.8890873 C10.6516504,12.065864 11.0405592,12.0305087 11.2526912,11.8183766 L11.8183766,11.2526912 C12.0305087,11.0405592 12.065864,10.6516504 11.8890873,10.4748737 L9.41421356,8 Z M8,0 C12.4,0 16,3.6 16,8 C16,12.4 12.4,16 8,16 C3.6,16 0,12.4 0,8 C0,3.6 3.6,0 8,0 Z"}}]}))(i)),Xs=i=>kr((o=>de(de({},o),{},{shapes:[{type:"path",attrs:{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10ZM3.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 0v1.652ZM3 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-1V9Zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0Z"}}]}))(i));const Rb=i=>de(de({},i),{},{viewBox:"0 0 12 16",shapes:[{type:"path",attrs:{d:"M2.5,7 L11,7 C11.5522847,7 12,7.44771525 12,8 L12,15 C12,15.5522847 11.5522847,16 11,16 L1,16 C0.44771525,16 0,15.5522847 0,15 L0,8 C0,7.44771525 0.44771525,7 1,7 L1,4.98151367 C1,2.23029964 3.23857625,0 6,0 C8.4241995,0 10.4454541,1.71883353 10.9029715,4 L9.34209114,4 C8.9671727,2.54028848 7.9088888,1.5 6,1.5 C3.54860291,1.5 2.5,3.21561511 2.5,5.33193359 L2.5,7 Z"}}]});var DE=i=>kr(Rb(i)),kE=function(){function i(o,a){for(var u=0;u<a.length;u++){var f=a[u];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(o,f.key,f)}}return function(o,a,u){return a&&i(o.prototype,a),u&&i(o,u),o}}(),Ib=function(i,o){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!o||"object"!=typeof o&&"function"!=typeof o?i:o},AE=function(i){function o(){var a,u,f;!function(b,x){if(!(b instanceof x))throw new TypeError("Cannot call a class as a function")}(this,o);for(var p=arguments.length,g=Array(p),y=0;y<p;y++)g[y]=arguments[y];return u=f=Ib(this,(a=o.__proto__||Object.getPrototypeOf(o)).call.apply(a,[this].concat(g))),f._lastRenderedStartIndex=-1,f._lastRenderedStopIndex=-1,f._memoizedUnloadedRanges=[],f._onItemsRendered=function(b){var x=b.visibleStartIndex,_=b.visibleStopIndex;f._lastRenderedStartIndex=x,f._lastRenderedStopIndex=_,f._ensureRowsLoaded(x,_)},f._setRef=function(b){f._listRef=b},Ib(f,u)}return function(a,u){if("function"!=typeof u&&null!==u)throw new TypeError("Super expression must either be null or a function, not "+typeof u);a.prototype=Object.create(u&&u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(a,u):a.__proto__=u)}(o,i),kE(o,[{key:"resetloadMoreItemsCache",value:function(){var a=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._memoizedUnloadedRanges=[],a&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){return(0,this.props.children)({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(a,u){var f=this.props,g=f.itemCount,y=f.minimumBatchSize,x=f.threshold,_=void 0===x?15:x,E=function(D){for(var I=D.isItemLoaded,C=D.itemCount,A=D.minimumBatchSize,T=D.stopIndex,O=[],L=null,F=null,P=D.startIndex;P<=T;P++)I(P)?null!==F&&(O.push(L,F),L=F=null):(F=P,null===L&&(L=P));if(null!==F){for(var q=Math.min(Math.max(F,L+A-1),C-1),$=F+1;$<=q&&!I($);$++)F=$;O.push(L,F)}if(O.length)for(;O[1]-O[0]+1<A&&O[0]>0;){var Q=O[0]-1;if(I(Q))break;O[0]=Q}return O}({isItemLoaded:f.isItemLoaded,itemCount:g,minimumBatchSize:void 0===y?10:y,startIndex:Math.max(0,a-_),stopIndex:Math.min(g-1,u+_)});(this._memoizedUnloadedRanges.length!==E.length||this._memoizedUnloadedRanges.some(function(D,I){return E[I]!==D}))&&(this._memoizedUnloadedRanges=E,this._loadUnloadedRanges(E))}},{key:"_loadUnloadedRanges",value:function(a){for(var u=this,f=this.props.loadMoreItems||this.props.loadMoreRows,p=function(y){var b=a[y],x=a[y+1],_=f(b,x);null!=_&&_.then(function(){if(!((E={lastRenderedStartIndex:u._lastRenderedStartIndex,lastRenderedStopIndex:u._lastRenderedStopIndex,startIndex:b,stopIndex:x}).startIndex>E.lastRenderedStopIndex||E.stopIndex<E.lastRenderedStartIndex)){if(null==u._listRef)return;"function"==typeof u._listRef.resetAfterIndex?u._listRef.resetAfterIndex(b,!0):("function"==typeof u._listRef._getItemStyleCache&&u._listRef._getItemStyleCache(-1),u._listRef.forceUpdate())}var E})},g=0;g<a.length;g+=2)p(g)}}]),o}(z.PureComponent);const RE=["S","XS"],Mb=i=>i.reduce((o,a)=>o.concat(a));function IE(i){if(!i||!i.length)return[];const o=i.map(a=>a.qMatrix.map(u=>{const[f]=u;return!!RE.includes(f.qState)&&f.qElemNumber}).filter(u=>!1!==u));return Mb(o)}function Tb(i){return Ob.apply(this,arguments)}function Ob(){return Ob=qe(function*(i){let{selections:o,elemNumbers:a,toggle:u,isSingleSelect:f}=i;if(0===a.length)return!1;let p=!1;if(!a.some(g=>Number.isNaN(g))){const g=a;try{p=!1!==(yield o.select({method:"selectListObjectValues",params:["/qListObjectDef",g,u]}))}catch(y){p=!1}p||(f?o.cancel():o.clear())}return p}),Ob.apply(this,arguments)}const Ar="RowColumn",Et={row:"".concat(Ar,"-row"),rowBorderBottom:"".concat(Ar,"-rowBorderBottom"),column:"".concat(Ar,"-column"),fieldRoot:"".concat(Ar,"-fieldRoot"),cell:"".concat(Ar,"-cell"),labelText:"".concat(Ar,"-labelText"),labelDense:"".concat(Ar,"-labelDense"),highlighted:"".concat(Ar,"-highlighted"),checkboxLabel:"".concat(Ar,"-checkboxLabel"),icon:"".concat(Ar,"-icon"),S:"".concat(Ar,"-S"),XS:"".concat(Ar,"-XS"),A:"".concat(Ar,"-A"),X:"".concat(Ar,"-X"),frequencyCount:"".concat(Ar,"-frequencyCount"),barContainer:"".concat(Ar,"-barContainer"),bar:"".concat(Ar,"-bar"),barSelected:"".concat(Ar,"-barSelected"),barWithCheckbox:"".concat(Ar,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(Ar,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(Ar,"-excludedTextWithCheckbox")},ME=".".concat(Et.fieldRoot),xm=i=>!(null!=i&&i.metaKey||null!=i&&i.ctrlKey);const TE=i=>de(de({},i),{},{shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]});var Lb=i=>kr(TE(i));const OE=i=>i?"X"===i.qState||"XS"===i.qState||"XL"===i.qState:null,Pb=i=>{let{cell:o,checkboxes:a}=i;return(((u=o)?"A"===u.qState:null)||OE(o))&&a;var u},Ph=i=>i.filter(o=>!!o).join(" ").trim(),BE=i=>i||"-",zE=["backgroundColor"],Sm=i=>{let{sizes:o,frequencyMode:a,isGridMode:u,freqHitsValue:f}=i;return"P"===a?"".concat(o.freqMinWidth,"px"):u&&!f?"max-content":"25%"},kI=i=>{let{sizes:o,frequencyMode:a,isGridMode:u}=i;return u?"max-content":"P"===a?o.freqMinWidth:o.freqMaxWidth},Fh=i=>{let{theme:o,checkboxes:a,styles:u,selectionState:f}=i;if(a)return"selected"===f?{["& .".concat(Et.labelText)]:{color:u.selections.selected}}:{};const p=u.selections,g=p[f],y=p["".concat(f,"Contrast")];return{background:g,color:y,"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(o.palette.custom.focusBorder),outline:"none"},"& $cell":{paddingRight:0},["& .".concat(Et.labelText)]:{color:y},["& .".concat(Et.icon)]:{color:y}}},Nb={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},AI=He("div",{shouldForwardProp:i=>!["checkboxes","isGridMode","isGridCol","dense","direction","sizes","frequencyMode","freqHitsValue","layout","styles"].includes(i)})(i=>{let{theme:o,checkboxes:a,isGridMode:u,isGridCol:f,dense:p,direction:g,sizes:y,frequencyMode:b,freqHitsValue:x,styles:_}=i;const I=gl(_.content,zE),C=Fh({theme:o,styles:_,checkboxes:a,selectionState:"selected"}),A=Fh({theme:o,styles:_,checkboxes:a,selectionState:"excluded"}),M={height:"100%",transition:"width 0.2s",border:"".concat(1,"px solid"),borderColor:"#D9D9D9",backgroundColor:"#FAFAFA"},T={opacity:"30%"};return{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(o.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"},"& .value":{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(o.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"}},["& .".concat(Et.row)]:de({flexWrap:"nowrap"},_.content),["& .".concat(Et.rowBorderBottom)]:{borderBottom:f?"none":"1px solid ".concat(o.palette.divider),borderLeft:f?"1px solid ".concat(o.palette.divider):"none"},["& .".concat(Et.column)]:de({flexWrap:"nowrap",borderRight:"1px solid ".concat(o.palette.divider)},_.content),["& .".concat(Et.cell)]:{zIndex:2,display:"flex",alignItems:"center",flexGrow:1,minWidth:a?"52px":"26px",flexBasis:a?"auto":"max-content",paddingLeft:"".concat(9,"px"),paddingRight:0},["& .".concat(Et.labelText)]:de(de({lineHeight:"16px",userSelect:"none",paddingRight:"1px"},Nb),I),["& .".concat(Et.labelDense)]:{fontSize:12},["& .".concat(Et.highlighted)]:{backgroundColor:"#FFC72A"},["& .".concat(Et.checkboxLabel)]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":de(de({},Nb),{},{display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"})},["& .".concat(Et.icon)]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24,color:I.color},["& .".concat(Et.S)]:de(de({},C),{},{border:u?"none":void 0}),["& .".concat(Et.XS)]:de(de({},Fh({theme:o,styles:_,checkboxes:a,selectionState:"selectedExcluded"})),{},{border:u?"none":void 0}),["& .".concat(Et.A)]:de(de({},Fh({theme:o,styles:_,checkboxes:a,selectionState:"alternative"})),{},{border:u?"none":void 0}),["& .".concat(Et.X)]:de(de({},A),{},{border:u?"none":void 0}),["& .".concat(Et.X,", & .").concat(Et.XS)]:{border:u?"none":void 0,["& .".concat(Et.barSelected," .bar-filled")]:de({},M)},["& .".concat(Et.frequencyCount)]:de(de({zIndex:3,justifyContent:"flex-end"},Nb),{},{flex:"0 0 ".concat(Sm({sizes:y,frequencyMode:b,isGridMode:u,freqHitsValue:x})),minWidth:!u&&"P"!==b&&x?y.freqMinWidth:"max-content",maxWidth:kI({sizes:y,frequencyMode:b,isGridMode:u}),textAlign:"rtl"===g?"left":"right",paddingLeft:"rtl"!==g?"8px":0}),["&.".concat(Et.barContainer)]:{height:"100%",display:"flex",alignItems:"center"},["& .".concat(Et.bar)]:{height:p?"16px":"20px",position:"absolute",zIndex:1,alignSelf:"center",left:4,width:"calc(100% - ".concat(8,"px)"),display:"flex",alignItems:"center","& .bar-filled":de({},M)},["& .".concat(Et.barSelected)]:{"& .bar-filled":de({},T)},["& .".concat(Et.barWithCheckbox)]:{left:"rtl"===g?4:29,width:"calc(100% - ".concat(33,"px)")},["& .".concat(Et.barSelectedWithCheckbox)]:{"& .bar-filled":de(de({},T),{},{backgroundColor:_.selections.selected||"#BFE5D0",borderColor:_.selections.selected})},["& .".concat(Et.excludedTextWithCheckbox)]:{color:_.content.color,fontStyle:"italic"}}});var RI=Y.memo(AI);const Ld="ListBoxCheckbox",Js={cbIcon:"".concat(Ld,"-cbIcon"),cbIconChecked:"".concat(Ld,"-cbIconChecked"),cbIconExcluded:"".concat(Ld,"-cbIconExcluded"),cbIconAlternative:"".concat(Ld,"-cbIconAlternative"),checkbox:"".concat(Ld,"-checkbox"),dense:"".concat(Ld,"-dense")},qE=He(Sh,{shouldForwardProp:i=>"styles"!==i})(i=>{let{styles:o}=i;return{["& .".concat(Js.cbIcon)]:{borderRadius:3,width:16,height:16,boxShadow:"inset 0 0 0 1px rgba(16,22,26,.2), inset 0 -1px 0 rgba(16,22,26,.1)",backgroundColor:"#f5f8fa",backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.8),hsla(0,0%,100%,0))",display:"flex",alignItems:"center",justifyContent:"center"},["& .".concat(Js.cbIconChecked)]:{borderRadius:3,backgroundColor:o.selections.selected,backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))","&:before":{display:"block",width:16,height:16,backgroundImage:"url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='%23fff'/%3E%3C/svg%3E\")",content:'""'}},["& .".concat(Js.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:o.selections.excluded},["& .".concat(Js.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:o.selections.alternative},["&.".concat(Js.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(Js.dense)]:{padding:"4px 8px"}}}),II=function(i){let a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Y.createElement("span",{className:i.cbIcon},a&&Y.createElement("span",{className:arguments.length>1&&void 0!==arguments[1]&&!arguments[1]||!a?"":i.cbIconExcluded}))};function VE(i){let{onChange:o,checked:a,label:u,dense:f,excluded:p,styles:g,showGray:y=!0,dataN:b}=i;return Y.createElement(qE,{edge:"start",onChange:o,checked:a,disableRipple:!0,className:[Js.checkbox,f&&Js.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":u,"data-n":b},name:u,icon:II(Js,y,p),checkedIcon:Y.createElement("span",{className:Js.cbIconChecked}),styles:g})}const jb={radioButton:"".concat("ListBoxRadioButton","-radioButton")},Bb=He(_I,{shouldForwardProp:i=>!["dense","styles"].includes(i)})(i=>{let{checked:o,styles:a,dense:u}=i;return{["&.".concat(jb.radioButton)]:{right:"5px",color:o?a.selections.selected:a.content.color,padding:u?"0px 0px 0px 12px":void 0,backgroundColor:"transparent"}}});function ML(i){let{onChange:o,checked:a,label:u,dense:f,dataN:p,styles:g}=i;return Y.createElement(Bb,{checked:a,onChange:o,value:u,name:u,className:jb.radioButton,inputProps:{"data-n":p},disableRipple:!0,size:f?"small":"medium",dense:f,styles:g})}function Nh(i){let{label:o,dense:a,showGray:u=!0,checkboxes:f,cell:p,valueTextAlign:g}=i;return Y.createElement(Gn,{component:"span",variant:"body2",className:Ph([Et.labelText,a&&Et.labelDense,u&&Pb({cell:p,checkboxes:f})&&Et.excludedTextWithCheckbox]),align:g,dir:"auto"},Y.createElement("span",null,o))}function MI(i){let{label:o,color:a,dense:u,showGray:f,checkboxes:p,cell:g,valueTextAlign:y}=i;return"string"==typeof o?Y.createElement(Nh,{label:o,color:a,dense:u,showGray:f,checkboxes:p,cell:g,valueTextAlign:y}):o}function TI(i){let{onChange:o,label:a,qElemNumber:u,isSelected:f,dense:p,cell:g,isGridCol:y,showGray:b,isSingleSelect:x,checkboxes:_,valueTextAlign:E,styles:D}=i;const I=Y.createElement(VE,{onChange:o,label:a,checked:f,dense:p,excluded:OE(g),isGridCol:y,showGray:b,dataN:u,styles:D}),C=Y.createElement(ML,{onChange:o,label:a,checked:f,dense:p,dataN:u,styles:D});return Y.createElement(Zs,{control:x?C:I,className:Et.checkboxLabel,label:Y.createElement(MI,{label:a,dense:p,showGray:b,checkboxes:_,cell:g,valueTextAlign:E}),key:u})}function be(i){let{labels:o,dense:a,showGray:u,checkboxes:f}=i;const p=o.map((g,y)=>{let[b,x]=g;return Y.createElement("span",{id:y,className:x?Et.highlighted:""},b)});return Y.createElement(Nh,{label:p,dense:a,showGray:u,checkboxes:f})}function OI(i){let{onChange:o,labels:a,checkboxes:u,dense:f,showGray:p,qElemNumber:g,isSelected:y,cell:b,isGridCol:x,isSingleSelect:_,valueTextAlign:E,styles:D}=i;const I=Y.createElement(be,{labels:a,dense:f,showGray:p,checkboxes:u});return u?Y.createElement(TI,{onChange:o,label:I,qElemNumber:g,isSelected:y,dense:f,cell:b,isGridCol:x,showGray:p,isSingleSelect:_,checkboxes:u,valueTextAlign:E,styles:D}):I}var $E=Y.memo(function(i){let{onChange:o,label:a,qElemNumber:u,isSelected:f,dense:p,cell:g,isGridCol:y,showGray:b,isSingleSelect:x,checkboxes:_,valueTextAlign:E,styles:D}=i;return _?Y.createElement(TI,{onChange:o,label:a,qElemNumber:u,isSelected:f,dense:p,cell:g,isGridCol:y,showGray:b,isSingleSelect:x,checkboxes:_,valueTextAlign:E,styles:D}):Y.createElement(Nh,{label:a,dense:p,showGray:!0,checkboxes:_,cell:g,valueTextAlign:E})});function zb(i){let{qFrequency:o,histogram:a,checkboxes:u,isSelected:f,frequencyMax:p}=i;if(!o||!a||"-"===BE(o))return;const g=(i=>{let{qFrequency:o,frequencyMax:a}=i;const u=String(o),f="%"===u.substring(u.length-1),p=parseFloat(f?u:o);return"".concat(f?p:p/a*100,"%")})({qFrequency:o,frequencyMax:p});return Y.createElement(qo,{className:Ph([Et.bar,u&&Et.barWithCheckbox,f&&(u?Et.barSelectedWithCheckbox:Et.barSelected)])},Y.createElement(qo,{className:"bar-filled",width:g}))}function LI(i){let{cell:o,checkboxes:a,dense:u,showGray:f}=i;const p=BE(null==o?void 0:o.qFrequency);return Y.createElement(tt,{item:!0,style:{display:"flex",alignItems:"center"},className:Et.frequencyCount,"aria-label":p,title:p},Y.createElement(Gn,{noWrap:!0,color:"inherit",variant:"body2",className:Ph([u&&Et.labelDense,Et.labelText,f&&Pb({cell:o,checkboxes:a})&&Et.excludedTextWithCheckbox])},p))}function Em(i){let{dataLayout:o,layoutOrder:a,itemPadding:u,fillHeight:f}=i;if("singleColumn"===o)return{height:"100%",width:"100%"};switch(a){case"row":case"column":return{height:f?"100%":"calc(100% - ".concat(u,"px)"),width:"calc(100% - ".concat(2*u,"px)"),position:"absolute",left:4};default:return{}}}const Cm=He(tt,{shouldForwardProp:i=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction","fillHeight"].includes(i)})(i=>{let{dataLayout:o,layoutOrder:a,itemPadding:u,cellPaddingRight:f,direction:p,fillHeight:g}=i;const y="padding".concat("rtl"===p?"Left":"Right");return{["&.".concat(Et.fieldRoot)]:de(de({},Em({dataLayout:o,layoutOrder:a,itemPadding:u,fillHeight:g})),{},{[y]:f?"8px":void 0})}}),Kt=Object.freeze({ENTER:13,ESCAPE:27,SPACE:32,TAB:9,BACKSPACE:8,DELETE:46,ALT:18,CTRL:17,SHIFT:16,ARROW_UP:38,ARROW_DOWN:40,ARROW_LEFT:37,ARROW_RIGHT:39,PAGE_DOWN:34,PAGE_UP:33,HOME:36,END:35,F10:121,A:65,F:70,ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,SUBTRACTION:189,DECIMAL:190,NUMPAD_DECIMAL:110,isArrow:i=>i===Kt.ARROW_UP||i===Kt.ARROW_DOWN||i===Kt.ARROW_LEFT||i===Kt.ARROW_RIGHT});function HE(i){null==i||i.querySelectorAll(".last-focused").forEach(o=>{o.classList.remove("last-focused")})}function GE(i){return(null==i?void 0:i.closest(".njs-cell"))||(null==i?void 0:i.closest(".qv-gridcell"))||(null==i?void 0:i.closest(".qv-gs-listbox"))}function Dm(i){let{containerRef:o,enabled:a}=i;const[u,f]=z.useState(!1);return{enabled:a,active:u,innerTabStops:!a||u,blur(p){var g;if(!a)return;f(!1);const y=GE(o.current)||(null===(g=o.current)||void 0===g?void 0:g.parentElement);var b;null==(b=o.current)||b.querySelectorAll('[tabIndex="0"]').forEach(x=>{x.setAttribute("tabIndex",-1)}),HE(o.current),p&&y&&(y.setAttribute("tabIndex",0),o.current.setAttribute("tabIndex",-1),y.focus())},focus(){if(!a)return;f(!0);const p=o.current,g=null==p?void 0:p.querySelector(".search input"),y=null==p?void 0:p.querySelector(".value.last-focused"),b=null==p?void 0:p.querySelector(".value.selector, .value"),x=null==p?void 0:p.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),_=null==p?void 0:p.querySelector("#listbox-unlock-button"),E=(null==p?void 0:p.querySelector(".listbox-cyclic-button"))||g||y||b||_||x;null==E||E.setAttribute("tabIndex",0),null==E||E.focus()},focusSelection(){const p=document.querySelector("#listbox-unlock-button"),g=document.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm:not(:disabled)"),y=p||g;return null==y||y.setAttribute("tabIndex",0),null==y||y.focus(),y}}}const Gc=i=>+i.getAttribute("data-n"),Pd=i=>{const o=null==i?void 0:i.querySelector(".search input");return null==o||o.focus(),o},Uc=i=>{const o=null==i?void 0:i.querySelector(".value.last-focused"),a=null==i?void 0:i.querySelector(".value.selector"),u=null==i?void 0:i.querySelector(".value"),f=o||a||u;return null==f||f.setAttribute("tabIndex",0),null==f||f.focus(),HE(i),f},Fd=i=>{const o=null==i?void 0:i.querySelector(".listbox-cyclic-button:not(:disabled)");return null==o||o.setAttribute("tabIndex",0),null==o||o.focus(),o},Nd=(i,o)=>{if(!o.enabled)return;const{currentTarget:a,target:u}=i,f=u.classList.contains("listbox-container"),p=a.closest(".listbox-container"),g=GE(p),y=1===(null==g?void 0:g.querySelectorAll(".listbox-container").length);if(f||y)o.blur(!0);else{HE(p),a.classList.add("last-focused"),o.blur();const b=a.closest(".listbox-container");b.setAttribute("tabIndex",-1),null==b||b.focus()}},PI=i=>{let{rowIndex:o,columnIndex:a,rowCount:u,columnCount:f,layoutOrder:p,keyCode:g,numCells:y}=i;const b=D=>{let I;return"row"===p?(I=y%f,D<I?u:u-1):(I=y%u,D<f-1?u:I)};let x=o,_=a;if(g===Kt.ARROW_DOWN)if(o>=b(a)-1){if(a===f-1)return-1;x=0,_=a+1}else x=o+1;else if(0===o){if(0===a)return-1;x=b(a-1)-1,_=a-1}else x=o-1;if("row"===p)return x*f+_;const E=y%u;return 0===E||x<E?x*f+_:(x-E)*(f-1)+_+E*f},UE={S:"Object.Listbox.Selected",A:"Object.Listbox.Alternative",O:"Object.Listbox.Optional",XS:"Object.Listbox.SelectedExcluded",L:"Object.Listbox.Locked",X:"Object.Listbox.Excluded",XL:"Object.Listbox.ExcludedLock"};function qb(i){var o,a;let{index:u,rowIndex:f,columnIndex:p,style:g,data:y}=i;const{onChange:b,onClick:x,onMouseDown:_,onMouseUp:E,onMouseEnter:D,onTouchStart:I,onTouchEnd:C,pages:A,isLocked:M,column:T=!1,checkboxes:O=!1,textAlign:L,direction:F,layoutOptions:P={},freqIsAllowed:q,isSingleSelect:$,actions:Q,frequencyMax:X="",histogram:ae=!1,keyboard:le,showGray:oe=!0,showTick:K=!0,columnCount:U=1,rowCount:ne=1,dataOffset:se,deducedFrequencyMode:he,focusListItems:B,listCount:G,sizes:Z,translator:re,showSearch:te,isModal:ce,contentFontStyle:ye,styles:Se,fillHeight:Ae}=y,{dense:Le=!1,dataLayout:Ne="singleColumn",layoutOrder:Ve}=P,{itemPadding:Re}=Z;let Me,nt;const Ge={max:null,currentIndex:null};if("number"==typeof f&&"number"==typeof p){"row"===Ve?(Me=f*U+p,Ge.max=ne,Ge.currentIndex=f):(Me=p*ne+f,Ge.max=U,Ge.currentIndex=p);const pn=0;nt=de(de({},g),{},{height:Ae?"100%":g.height,left:pn+(0===p?g.left:Number(g.left)+p*pn),top:0===f?g.top:Number(g.top)+f*pn})}else Me=u,Ge.max=G,Ge.currentIndex=u,nt=de({},g);Me+=se;const[yt,Rt]=z.useState(null);z.useEffect(()=>{null!==yt&&(0===Ge.currentIndex&&B.first&&(yt.focus(),B.setFirst(!1)),Ge.currentIndex===Ge.max-1&&B.last&&(yt.focus(),B.setLast(!1)))},[yt,B.first,B.last]);const Bt=z.useCallback(function(pn){let{select:nn,selectAll:Jt,onCtrlF:mn,confirm:gn,cancel:yn,setScrollPosition:rt,focusListItems:_t,keyboard:Gt,isModal:bt,rowCount:Ct,columnCount:on,rowIndex:Un,columnIndex:Tn,layoutOrder:jn}=pn;const zt=function(cn,On){if(cn===Kt.ARROW_LEFT||cn===Kt.ARROW_RIGHT||"number"!=typeof Un||"number"!=typeof Tn){const un=null==On?void 0:On.parentElement[arguments.length>2&&void 0!==arguments[2]&&arguments[2]?"nextElementSibling":"previousElementSibling"];return null==un?void 0:un.querySelector("[role]")}const Qn=null==On?void 0:On.parentElement.parentElement,vr=null==Qn?void 0:Qn.childElementCount;if(vr){const un=PI({rowIndex:Un,columnIndex:Tn,rowCount:Ct,columnCount:on,layoutOrder:jn,keyCode:cn,numCells:vr}),lt=null==On?void 0:On.parentElement.parentElement.children[un];return null==lt?void 0:lt.querySelector("[role]")}};let vn=!1;const Bn=cn=>{vn=cn};return cn=>{let On;const{currentTarget:Wn,nativeEvent:Qn}=cn,{keyCode:vr,shiftKey:un=!1,ctrlKey:lt=!1,metaKey:St=!1}=Qn;switch(vr){case Kt.TAB:{const Zi=Wn.closest(".listbox-container"),Hr=void 0!==bt?bt():void 0;if(Wn.classList.add("last-focused"),null==Gt||!Gt.enabled)return Hr?(Gt.focusSelection(),cn.preventDefault(),void cn.stopPropagation()):void 0;if(un){Pd(Zi)||Fd(Zi)||(Hr?Gt.focusSelection():Nd(cn,Gt));break}Gt.focusSelection()||Fd(Zi)||Pd(Zi)||(Wn.blur(),Nd(cn,Gt));break}case Kt.SHIFT:Bn(!0);break;case Kt.SPACE:nn([Gc(Wn)],!1,cn);break;case Kt.ARROW_DOWN:case Kt.ARROW_RIGHT:On=zt(vr,Wn,!0),un&&On&&(vn&&(nn([Gc(Wn)],!0),Bn(!1)),nn([Gc(On)],!0));break;case Kt.ARROW_UP:case Kt.ARROW_LEFT:On=zt(vr,Wn,!1),un&&On&&(vn&&(nn([Gc(Wn)],!0),Bn(!1)),nn([Gc(On)],!0));break;case Kt.ENTER:if(gn(),void 0===bt)return;break;case Kt.ESCAPE:if(void 0===bt)return void yn();if(!bt())return;yn();break;case Kt.HOME:if(_t.setFirst(!0),lt){null==rt||rt("overflowStart");break}null==rt||rt("start");break;case Kt.END:if(_t.setLast(!0),lt){null==rt||rt("overflowEnd");break}null==rt||rt("end");break;case Kt.A:if(lt||St){Jt();break}return;case Kt.F:if(lt||St){mn();break}return;default:return}On&&On.focus(),cn.preventDefault(),cn.stopPropagation()}}(de(de({},Q),{},{focusListItems:B,keyboard:le,isModal:ce,rowCount:ne,columnCount:U,rowIndex:f,columnIndex:p,layoutOrder:Ve})),[Q,null==le?void 0:le.innerTabStops,ne,U,f,p,Ve]),ze=z.useMemo(()=>function(pn){let nn,{pages:Jt,cellIndex:mn}=pn;const gn=Jt.filter(yn=>yn.qArea.qTop<=mn&&mn<yn.qArea.qTop+yn.qArea.qHeight)[0];if(gn){const yn=gn.qArea;mn>=yn.qTop&&mn<yn.qTop+yn.qHeight&&([nn]=gn.qMatrix[mn-yn.qTop])}return nn}({pages:A,cellIndex:Me}),[A,Me]),It="S"===(null==ze?void 0:ze.qState)||"XS"===(null==ze?void 0:ze.qState)||"L"===(null==ze?void 0:ze.qState)||"XL"===(null==ze?void 0:ze.qState),ct=z.useMemo(()=>(i=>{let{column:o,histogram:a,cell:u,showGray:f}=i;if(!u)return[];const p=[o?Et.column:Et.row];a||p.push(Et.rowBorderBottom);const g=function(y){let b,{cell:x,showGray:_}=y;switch(x.qState){case"XS":b=_?Et.XS:Et.S;break;case"S":case"L":b=Et.S;break;case"A":b=!!_&&Et.A;break;case"X":case"XL":b=!!_&&Et.X;break;default:b=!1}return b}({cell:u,showGray:f});return g&&p.push(g),p})({column:T,histogram:ae,cell:ze,showGray:oe}),[null==ze?void 0:ze.qState,ae,Le]),Ht=z.useCallback(pn=>{pn.preventDefault()},[O]),xt=z.useMemo(()=>ze&&function(pn){let{direction:nn,cell:Jt,textAlign:mn}=pn;const gn=!["NaN",void 0].includes(null==Jt?void 0:Jt.qNum);let yn;return yn=!mn||mn.auto?gn?"rtl"===nn?"left":"right":{rtl:"right",ltr:"left"}[nn]:(null==mn?void 0:mn.align)||"left",["left","center","right"].includes(yn)?yn:"left"}({direction:F,cell:ze,textAlign:L}),[F,ze,L]);if(!ze)return null;const st="grid"===Ne&&"column"===Ve,ft=null!==(o=null==ze?void 0:ze.qText)&&void 0!==o?o:"";let ht;if(null!==(a=ze.qHighlightRanges)&&void 0!==a&&null!==(a=a.qRanges)&&void 0!==a&&a.length){const pn=ze.qHighlightRanges.qRanges.sort((nn,Jt)=>nn.qCharPos-Jt.qCharPos)||[];nn=ft,ht=(Jt=pn).length?Jt.reduce((gn,yn,rt)=>{gn.push(...function(Ct,on){let Un=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const{qCharPos:Tn,qCharCount:jn}=on,zt=[];return Tn>Un&&zt.push([Ct.slice(Un,Tn),!1]),zt.push([Ct.slice(Tn,Tn+jn),!0]),zt}(nn,yn,0===rt?0:Jt[rt-1].qCharPos+Jt[rt-1].qCharCount));const bt=Jt[rt].qCharPos+Jt[rt].qCharCount;return rt===Jt.length-1&&bt<nn.length&&gn.push([nn.slice(bt),!1]),gn},[]):[]}var nn,Jt;const at={alignItems:"center",display:"flex",fontSize:"8px"},gt="rtl"===F,$e={display:"flex",alignItems:"center",flexGrow:1,paddingLeft:gt?8:O?0:void 0,paddingRight:O?0:gt?8:0,justifyContent:xt,textAlign:xt},Ke=0===u,hn=It&&M,zn=!O&&It&&!M,qn=!O&&K,gr=O||!K,Ir=function(pn){let{translator:nn,label:Jt,qState:mn,isSelected:gn,currentIndex:yn,maxIndex:rt,showSearch:_t}=pn;const bt=nn.get(UE[mn]),Ct=[];if(gn){const jn=nn.get(_t?"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu":"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu");Ct.push(jn)}const on="".concat(Jt," ").concat(bt),Un=nn.get("CurrentSelections.Of",[yn+1,rt+1]);return Ct.unshift(on,Un),Ct.join(". ").trim()}({translator:re,label:ft,qState:ze.qState,currentIndex:Ge.currentIndex,maxIndex:Ge.max,showSearch:te});return Y.createElement(RI,{className:Et.barContainer,checkboxes:O,style:nt,styles:Se,isGridCol:st,isGridMode:"grid"===Ne,dense:Le,direction:F,sizes:Z,frequencyMode:he,freqHitsValue:!gt&&"right"===xt||gt&&"left"===xt,contentFontStyle:ye,"data-testid":"listbox.item"},Y.createElement(Cm,{role:"row","aria-label":Ir,"aria-selected":It,"aria-setsize":Ge.max,"aria-rowindex":Ge.currentIndex,ref:Rt,container:!0,dataLayout:Ne,cellPaddingRight:gr,layoutOrder:Ve,itemPadding:Re,gap:0,className:Ph(["value",...ct]),classes:{root:Et.fieldRoot},onClick:x,onMouseDown:_,onMouseUp:E,onMouseEnter:D,onKeyDown:Bt,onTouchStart:I,onTouchEnd:C,onContextMenu:Ht,tabIndex:Ke&&le.innerTabStops?0:-1,"data-n":null==ze?void 0:ze.qElemNumber,direction:F,fillHeight:Ae},(null==ze?void 0:ze.qFrequency)&&Y.createElement(zb,{qFrequency:null==ze?void 0:ze.qFrequency,histogram:ae,checkboxes:O,isSelected:It,frequencyMax:X}),Y.createElement(tt,{item:!0,style:$e,className:Ph([Et.cell,Et.selectedCell]),title:"".concat(ft)},ht?Y.createElement(OI,{onChange:b,labels:ht,checkboxes:O,dense:Le,showGray:oe,qElemNumber:ze.qElemNumber,isSelected:It,cell:ze,isGridCol:st,isSingleSelect:$,valueTextAlign:xt,styles:Se}):Y.createElement($E,{onChange:b,label:ft,qElemNumber:ze.qElemNumber,isSelected:It,dense:Le,cell:ze,isGridCol:st,showGray:oe,isSingleSelect:$,checkboxes:O,valueTextAlign:xt,styles:Se})),q&&Y.createElement(LI,{cell:ze,checkboxes:O,dense:Le,showGray:oe}),qn&&Y.createElement(tt,{item:!0,className:Et.icon},hn&&Y.createElement(Xs,{style:at,size:"small"}),zn&&Y.createElement(Lb,{style:at,size:"small"}))))}var WE=Number.isNaN||function(i){return"number"==typeof i&&i!=i};function KE(i,o){if(i.length!==o.length)return!1;for(var a=0;a<i.length;a++)if(!((u=i[a])===(f=o[a])||WE(u)&&WE(f)))return!1;var u,f;return!0}function Wc(i,o){var a;void 0===o&&(o=KE);var u,f=[],p=!1;return function(){for(var g=[],y=0;y<arguments.length;y++)g[y]=arguments[y];return p&&a===this&&o(g,f)||(u=i.apply(this,g),p=!0,a=this,f=g),u}}var km="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function Am(i){cancelAnimationFrame(i.id)}function QE(i,o){var a=km(),u={id:requestAnimationFrame(function f(){km()-a>=o?i.call(null):u.id=requestAnimationFrame(f)})};return u}var Vb=-1;function $b(i){if(void 0===i&&(i=!1),-1===Vb||i){var o=document.createElement("div"),a=o.style;a.width="50px",a.height="50px",a.overflow="scroll",document.body.appendChild(o),Vb=o.offsetWidth-o.clientWidth,document.body.removeChild(o)}return Vb}var jd=null;function Bd(i){if(void 0===i&&(i=!1),null===jd||i){var o=document.createElement("div"),a=o.style;a.width="50px",a.height="50px",a.overflow="scroll",a.direction="rtl";var u=document.createElement("div"),f=u.style;return f.width="100px",f.height="100px",o.appendChild(u),document.body.appendChild(o),o.scrollLeft>0?jd="positive-descending":(o.scrollLeft=1,jd=0===o.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(o),jd}return jd}var YE=function(i){return i.rowIndex+":"+i.columnIndex};var XE=function(i,o){},JE=function(i,o){return i};var tC=function(i,o){},nC=function ZE(i){var o,a=i.getColumnOffset,u=i.getColumnStartIndexForOffset,f=i.getColumnStopIndexForStartIndex,p=i.getColumnWidth,g=i.getEstimatedTotalHeight,y=i.getEstimatedTotalWidth,b=i.getOffsetForColumnAndAlignment,x=i.getOffsetForRowAndAlignment,_=i.getRowHeight,E=i.getRowOffset,D=i.getRowStartIndexForOffset,I=i.getRowStopIndexForStartIndex,C=i.initInstanceProps,A=i.shouldResetStyleCacheOnItemSizeChange,M=i.validateProps;return(o=function(T){function O(F){var P;return(P=T.call(this,F)||this)._instanceProps=C(P.props,fh(P)),P._resetIsScrollingTimeoutId=null,P._outerRef=void 0,P.state={instance:fh(P),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof P.props.initialScrollLeft?P.props.initialScrollLeft:0,scrollTop:"number"==typeof P.props.initialScrollTop?P.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},P._callOnItemsRendered=void 0,P._callOnItemsRendered=Wc(function(q,$,Q,X,ae,le,oe,K){return P.props.onItemsRendered({overscanColumnStartIndex:q,overscanColumnStopIndex:$,overscanRowStartIndex:Q,overscanRowStopIndex:X,visibleColumnStartIndex:ae,visibleColumnStopIndex:le,visibleRowStartIndex:oe,visibleRowStopIndex:K})}),P._callOnScroll=void 0,P._callOnScroll=Wc(function(q,$,Q,X,ae){return P.props.onScroll({horizontalScrollDirection:Q,scrollLeft:q,scrollTop:$,verticalScrollDirection:X,scrollUpdateWasRequested:ae})}),P._getItemStyle=void 0,P._getItemStyle=function(q,$){var Q,X=P.props,le=X.direction,K=P._getItemStyleCache(A&&X.columnWidth,A&&le,A&&X.rowHeight),U=q+":"+$;if(K.hasOwnProperty(U))Q=K[U];else{var ne=a(P.props,$,P._instanceProps),se="rtl"===le;K[U]=Q={position:"absolute",left:se?void 0:ne,right:se?ne:void 0,top:E(P.props,q,P._instanceProps),height:_(P.props,q,P._instanceProps),width:p(P.props,$,P._instanceProps)}}return Q},P._getItemStyleCache=void 0,P._getItemStyleCache=Wc(function(q,$,Q){return{}}),P._onScroll=function(q){var $=q.currentTarget,Q=$.clientHeight,X=$.clientWidth,ae=$.scrollLeft,le=$.scrollTop,oe=$.scrollHeight,K=$.scrollWidth;P.setState(function(U){if(U.scrollLeft===ae&&U.scrollTop===le)return null;var se=ae;if("rtl"===P.props.direction)switch(Bd()){case"negative":se=-ae;break;case"positive-descending":se=K-X-ae}se=Math.max(0,Math.min(se,K-X));var he=Math.max(0,Math.min(le,oe-Q));return{isScrolling:!0,horizontalScrollDirection:U.scrollLeft<ae?"forward":"backward",scrollLeft:se,scrollTop:he,verticalScrollDirection:U.scrollTop<le?"forward":"backward",scrollUpdateWasRequested:!1}},P._resetIsScrollingDebounced)},P._outerRefSetter=function(q){var $=P.props.outerRef;P._outerRef=q,"function"==typeof $?$(q):null!=$&&"object"==typeof $&&$.hasOwnProperty("current")&&($.current=q)},P._resetIsScrollingDebounced=function(){null!==P._resetIsScrollingTimeoutId&&Am(P._resetIsScrollingTimeoutId),P._resetIsScrollingTimeoutId=QE(P._resetIsScrolling,150)},P._resetIsScrolling=function(){P._resetIsScrollingTimeoutId=null,P.setState({isScrolling:!1},function(){P._getItemStyleCache(-1)})},P}uh(O,T),O.getDerivedStateFromProps=function(F,P){return XE(F,P),M(F),null};var L=O.prototype;return L.scrollTo=function(F){var P=F.scrollLeft,q=F.scrollTop;void 0!==P&&(P=Math.max(0,P)),void 0!==q&&(q=Math.max(0,q)),this.setState(function($){return void 0===P&&(P=$.scrollLeft),void 0===q&&(q=$.scrollTop),$.scrollLeft===P&&$.scrollTop===q?null:{horizontalScrollDirection:$.scrollLeft<P?"forward":"backward",scrollLeft:P,scrollTop:q,scrollUpdateWasRequested:!0,verticalScrollDirection:$.scrollTop<q?"forward":"backward"}},this._resetIsScrollingDebounced)},L.scrollToItem=function(F){var P=F.align,q=void 0===P?"auto":P,$=F.columnIndex,Q=F.rowIndex,X=this.props,ae=X.columnCount,le=X.height,oe=X.rowCount,K=X.width,U=this.state,ne=U.scrollLeft,se=U.scrollTop,he=$b();void 0!==$&&($=Math.max(0,Math.min($,ae-1))),void 0!==Q&&(Q=Math.max(0,Math.min(Q,oe-1)));var B=g(this.props,this._instanceProps),G=y(this.props,this._instanceProps)>K?he:0;this.scrollTo({scrollLeft:void 0!==$?b(this.props,$,q,ne,this._instanceProps,B>le?he:0):ne,scrollTop:void 0!==Q?x(this.props,Q,q,se,this._instanceProps,G):se})},L.componentDidMount=function(){var F=this.props,P=F.initialScrollLeft,q=F.initialScrollTop;if(null!=this._outerRef){var $=this._outerRef;"number"==typeof P&&($.scrollLeft=P),"number"==typeof q&&($.scrollTop=q)}this._callPropsCallbacks()},L.componentDidUpdate=function(){var P=this.state,q=P.scrollLeft,$=P.scrollTop;if(P.scrollUpdateWasRequested&&null!=this._outerRef){var Q=this._outerRef;if("rtl"===this.props.direction)switch(Bd()){case"negative":Q.scrollLeft=-q;break;case"positive-ascending":Q.scrollLeft=q;break;default:Q.scrollLeft=Q.scrollWidth-Q.clientWidth-q}else Q.scrollLeft=Math.max(0,q);Q.scrollTop=Math.max(0,$)}this._callPropsCallbacks()},L.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Am(this._resetIsScrollingTimeoutId)},L.render=function(){var F=this.props,P=F.children,q=F.className,$=F.columnCount,Q=F.direction,X=F.height,ae=F.innerRef,le=F.innerElementType,oe=F.innerTagName,K=F.itemData,U=F.itemKey,ne=void 0===U?YE:U,se=F.outerElementType,he=F.outerTagName,B=F.rowCount,G=F.style,Z=F.useIsScrolling,re=F.width,te=this.state.isScrolling,ce=this._getHorizontalRangeToRender(),ye=ce[0],Se=ce[1],Ae=this._getVerticalRangeToRender(),Ne=Ae[1],Ve=[];if($>0&&B)for(var Re=Ae[0];Re<=Ne;Re++)for(var Me=ye;Me<=Se;Me++)Ve.push(z.createElement(P,{columnIndex:Me,data:K,isScrolling:Z?te:void 0,key:ne({columnIndex:Me,data:K,rowIndex:Re}),rowIndex:Re,style:this._getItemStyle(Re,Me)}));var nt=g(this.props,this._instanceProps),Ge=y(this.props,this._instanceProps);return z.createElement(se||he||"div",{className:q,onScroll:this._onScroll,ref:this._outerRefSetter,style:ud({position:"relative",height:X,width:re,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:Q},G)},z.createElement(le||oe||"div",{children:Ve,ref:ae,style:{height:nt,pointerEvents:te?"none":void 0,width:Ge}}))},L._callPropsCallbacks=function(){var F=this.props,$=F.onScroll;if("function"==typeof F.onItemsRendered&&F.columnCount>0&&F.rowCount>0){var X=this._getHorizontalRangeToRender(),ae=X[0],le=X[1],oe=X[2],K=X[3],U=this._getVerticalRangeToRender();this._callOnItemsRendered(ae,le,U[0],U[1],oe,K,U[2],U[3])}if("function"==typeof $){var G=this.state;this._callOnScroll(G.scrollLeft,G.scrollTop,G.horizontalScrollDirection,G.verticalScrollDirection,G.scrollUpdateWasRequested)}},L._getHorizontalRangeToRender=function(){var F=this.props,P=F.columnCount,ae=this.state,le=ae.horizontalScrollDirection,oe=ae.isScrolling,K=ae.scrollLeft,U=F.overscanColumnCount||F.overscanColumnsCount||F.overscanCount||1;if(0===P||0===F.rowCount)return[0,0,0,0];var ne=u(this.props,K,this._instanceProps),se=f(this.props,ne,K,this._instanceProps),he=oe&&"backward"!==le?1:Math.max(1,U),B=oe&&"forward"!==le?1:Math.max(1,U);return[Math.max(0,ne-he),Math.max(0,Math.min(P-1,se+B)),ne,se]},L._getVerticalRangeToRender=function(){var F=this.props,X=F.rowCount,ae=this.state,le=ae.isScrolling,oe=ae.verticalScrollDirection,K=ae.scrollTop,U=F.overscanRowCount||F.overscanRowsCount||F.overscanCount||1;if(0===F.columnCount||0===X)return[0,0,0,0];var ne=D(this.props,K,this._instanceProps),se=I(this.props,ne,K,this._instanceProps),he=le&&"backward"!==oe?1:Math.max(1,U),B=le&&"forward"!==oe?1:Math.max(1,U);return[Math.max(0,ne-he),Math.max(0,Math.min(X-1,se+B)),ne,se]},O}(z.PureComponent)).defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},o}({getColumnOffset:function(i,o){return o*i.columnWidth},getColumnWidth:function(i,o){return i.columnWidth},getRowOffset:function(i,o){return o*i.rowHeight},getRowHeight:function(i,o){return i.rowHeight},getEstimatedTotalHeight:function(i){return i.rowHeight*i.rowCount},getEstimatedTotalWidth:function(i){return i.columnWidth*i.columnCount},getOffsetForColumnAndAlignment:function(i,o,a,u,f,p){var y=i.columnWidth,b=i.width,x=Math.max(0,i.columnCount*y-b),_=Math.min(x,o*y),E=Math.max(0,o*y-b+p+y);switch("smart"===a&&(a=u>=E-b&&u<=_+b?"auto":"center"),a){case"start":return _;case"end":return E;case"center":var D=Math.round(E+(_-E)/2);return D<Math.ceil(b/2)?0:D>x+Math.floor(b/2)?x:D;default:return u>=E&&u<=_?u:E>_||u<E?E:_}},getOffsetForRowAndAlignment:function(i,o,a,u,f,p){var g=i.rowHeight,y=i.height,x=Math.max(0,i.rowCount*g-y),_=Math.min(x,o*g),E=Math.max(0,o*g-y+p+g);switch("smart"===a&&(a=u>=E-y&&u<=_+y?"auto":"center"),a){case"start":return _;case"end":return E;case"center":var D=Math.round(E+(_-E)/2);return D<Math.ceil(y/2)?0:D>x+Math.floor(y/2)?x:D;default:return u>=E&&u<=_?u:E>_||u<E?E:_}},getColumnStartIndexForOffset:function(i,o){return Math.max(0,Math.min(i.columnCount-1,Math.floor(o/i.columnWidth)))},getColumnStopIndexForStartIndex:function(i,o,a){var u=i.columnWidth,f=i.columnCount,y=Math.ceil((i.width+a-o*u)/u);return Math.max(0,Math.min(f-1,o+y-1))},getRowStartIndexForOffset:function(i,o){return Math.max(0,Math.min(i.rowCount-1,Math.floor(o/i.rowHeight)))},getRowStopIndexForStartIndex:function(i,o,a){var u=i.rowHeight,f=i.rowCount,y=Math.ceil((i.height+a-o*u)/u);return Math.max(0,Math.min(f-1,o+y-1))},initInstanceProps:function(i){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(i){}}),rC=function eC(i){var o,a=i.getItemOffset,u=i.getEstimatedTotalSize,f=i.getItemSize,p=i.getOffsetForIndexAndAlignment,g=i.getStartIndexForOffset,y=i.getStopIndexForStartIndex,b=i.initInstanceProps,x=i.shouldResetStyleCacheOnItemSizeChange,_=i.validateProps;return(o=function(E){function D(C){var A;return(A=E.call(this,C)||this)._instanceProps=b(A.props,fh(A)),A._outerRef=void 0,A._resetIsScrollingTimeoutId=null,A.state={instance:fh(A),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof A.props.initialScrollOffset?A.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},A._callOnItemsRendered=void 0,A._callOnItemsRendered=Wc(function(M,T,O,L){return A.props.onItemsRendered({overscanStartIndex:M,overscanStopIndex:T,visibleStartIndex:O,visibleStopIndex:L})}),A._callOnScroll=void 0,A._callOnScroll=Wc(function(M,T,O){return A.props.onScroll({scrollDirection:M,scrollOffset:T,scrollUpdateWasRequested:O})}),A._getItemStyle=void 0,A._getItemStyle=function(M){var T,O=A.props,L=O.direction,P=O.layout,q=A._getItemStyleCache(x&&O.itemSize,x&&P,x&&L);if(q.hasOwnProperty(M))T=q[M];else{var $=a(A.props,M,A._instanceProps),Q=f(A.props,M,A._instanceProps),X="horizontal"===L||"horizontal"===P,ae="rtl"===L,le=X?$:0;q[M]=T={position:"absolute",left:ae?void 0:le,right:ae?le:void 0,top:X?0:$,height:X?"100%":Q,width:X?Q:"100%"}}return T},A._getItemStyleCache=void 0,A._getItemStyleCache=Wc(function(M,T,O){return{}}),A._onScrollHorizontal=function(M){var T=M.currentTarget,O=T.clientWidth,L=T.scrollLeft,F=T.scrollWidth;A.setState(function(P){if(P.scrollOffset===L)return null;var $=L;if("rtl"===A.props.direction)switch(Bd()){case"negative":$=-L;break;case"positive-descending":$=F-O-L}return $=Math.max(0,Math.min($,F-O)),{isScrolling:!0,scrollDirection:P.scrollOffset<$?"forward":"backward",scrollOffset:$,scrollUpdateWasRequested:!1}},A._resetIsScrollingDebounced)},A._onScrollVertical=function(M){var T=M.currentTarget,O=T.clientHeight,L=T.scrollHeight,F=T.scrollTop;A.setState(function(P){if(P.scrollOffset===F)return null;var q=Math.max(0,Math.min(F,L-O));return{isScrolling:!0,scrollDirection:P.scrollOffset<q?"forward":"backward",scrollOffset:q,scrollUpdateWasRequested:!1}},A._resetIsScrollingDebounced)},A._outerRefSetter=function(M){var T=A.props.outerRef;A._outerRef=M,"function"==typeof T?T(M):null!=T&&"object"==typeof T&&T.hasOwnProperty("current")&&(T.current=M)},A._resetIsScrollingDebounced=function(){null!==A._resetIsScrollingTimeoutId&&Am(A._resetIsScrollingTimeoutId),A._resetIsScrollingTimeoutId=QE(A._resetIsScrolling,150)},A._resetIsScrolling=function(){A._resetIsScrollingTimeoutId=null,A.setState({isScrolling:!1},function(){A._getItemStyleCache(-1,null)})},A}uh(D,E),D.getDerivedStateFromProps=function(C,A){return tC(C,A),_(C),null};var I=D.prototype;return I.scrollTo=function(C){C=Math.max(0,C),this.setState(function(A){return A.scrollOffset===C?null:{scrollDirection:A.scrollOffset<C?"forward":"backward",scrollOffset:C,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},I.scrollToItem=function(C,A){void 0===A&&(A="auto");var M=this.props,O=M.layout,L=this.state.scrollOffset;C=Math.max(0,Math.min(C,M.itemCount-1));var F=0;if(this._outerRef){var P=this._outerRef;F="vertical"===O?P.scrollWidth>P.clientWidth?$b():0:P.scrollHeight>P.clientHeight?$b():0}this.scrollTo(p(this.props,C,A,L,this._instanceProps,F))},I.componentDidMount=function(){var C=this.props,M=C.initialScrollOffset;if("number"==typeof M&&null!=this._outerRef){var O=this._outerRef;"horizontal"===C.direction||"horizontal"===C.layout?O.scrollLeft=M:O.scrollTop=M}this._callPropsCallbacks()},I.componentDidUpdate=function(){var C=this.props,A=C.direction,T=this.state,O=T.scrollOffset;if(T.scrollUpdateWasRequested&&null!=this._outerRef){var L=this._outerRef;if("horizontal"===A||"horizontal"===C.layout)if("rtl"===A)switch(Bd()){case"negative":L.scrollLeft=-O;break;case"positive-ascending":L.scrollLeft=O;break;default:L.scrollLeft=L.scrollWidth-L.clientWidth-O}else L.scrollLeft=O;else L.scrollTop=O}this._callPropsCallbacks()},I.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Am(this._resetIsScrollingTimeoutId)},I.render=function(){var C=this.props,A=C.children,M=C.className,T=C.direction,O=C.height,L=C.innerRef,F=C.innerElementType,P=C.innerTagName,q=C.itemCount,$=C.itemData,Q=C.itemKey,X=void 0===Q?JE:Q,le=C.outerElementType,oe=C.outerTagName,K=C.style,U=C.useIsScrolling,ne=C.width,se=this.state.isScrolling,he="horizontal"===T||"horizontal"===C.layout,B=he?this._onScrollHorizontal:this._onScrollVertical,G=this._getRangeToRender(),re=G[1],te=[];if(q>0)for(var ce=G[0];ce<=re;ce++)te.push(z.createElement(A,{data:$,key:X(ce,$),index:ce,isScrolling:U?se:void 0,style:this._getItemStyle(ce)}));var ye=u(this.props,this._instanceProps);return z.createElement(le||oe||"div",{className:M,onScroll:B,ref:this._outerRefSetter,style:ud({position:"relative",height:O,width:ne,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:T},K)},z.createElement(F||P||"div",{children:te,ref:L,style:{height:he?"100%":ye,pointerEvents:se?"none":void 0,width:he?ye:"100%"}}))},I._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var C=this._getRangeToRender();this._callOnItemsRendered(C[0],C[1],C[2],C[3])}if("function"==typeof this.props.onScroll){var L=this.state;this._callOnScroll(L.scrollDirection,L.scrollOffset,L.scrollUpdateWasRequested)}},I._getRangeToRender=function(){var C=this.props,A=C.itemCount,M=C.overscanCount,T=this.state,O=T.isScrolling,L=T.scrollDirection,F=T.scrollOffset;if(0===A)return[0,0,0,0];var P=g(this.props,F,this._instanceProps),q=y(this.props,P,F,this._instanceProps),$=O&&"backward"!==L?1:Math.max(1,M),Q=O&&"forward"!==L?1:Math.max(1,M);return[Math.max(0,P-$),Math.max(0,Math.min(A-1,q+Q)),P,q]},D}(z.PureComponent)).defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},o}({getItemOffset:function(i,o){return o*i.itemSize},getItemSize:function(i,o){return i.itemSize},getEstimatedTotalSize:function(i){return i.itemSize*i.itemCount},getOffsetForIndexAndAlignment:function(i,o,a,u,f,p){var x=i.itemSize,D="horizontal"===i.direction||"horizontal"===i.layout?i.width:i.height,I=Math.max(0,i.itemCount*x-D),C=Math.min(I,o*x),A=Math.max(0,o*x-D+x+p);switch("smart"===a&&(a=u>=A-D&&u<=C+D?"auto":"center"),a){case"start":return C;case"end":return A;case"center":var M=Math.round(A+(C-A)/2);return M<Math.ceil(D/2)?0:M>I+Math.floor(D/2)?I:M;default:return u>=A&&u<=C?u:u<A?A:C}},getStartIndexForOffset:function(i,o){return Math.max(0,Math.min(i.itemCount-1,Math.floor(o/i.itemSize)))},getStopIndexForStartIndex:function(i,o,a){var p=i.itemCount,g=i.itemSize,E=Math.ceil((("horizontal"===i.direction||"horizontal"===i.layout?i.width:i.height)+a-o*g)/g);return Math.max(0,Math.min(p-1,o+E-1))},initInstanceProps:function(i){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(i){}});const iC="#f1f1f1",Hb={styledScrollbars:"".concat("ListBox","-styledScrollbars")};function Gb(i){let{renderProps:o,layoutOptions:a,maxCount:u,columnCount:f,rowCount:p,overflowDisclaimer:g,qCardinal:y,dataOffset:b}=i;const x="column"===(null==a?void 0:a.layoutOrder)&&"singleColumn"!==a.dataLayout,_=((i,o)=>void 0!==(null==i?void 0:i.visibleRowStopIndex)||void 0!==i.visibleColumnStopIndex?o?i.visibleColumnStopIndex:i.visibleRowStopIndex:i.visibleStopIndex)(o,x),E=x?u.column:u.row,D=(x?f:p)>=E,I=((i,o,a,u)=>i===o*a+u+a)(y,_,x?p:f,b),C=!!b&&((i,o)=>void 0!==(null==i?void 0:i.visibleRowStartIndex)||void 0!==i.visibleColumnStartIndex?o?0===i.visibleColumnStartIndex:0===i.visibleRowStartIndex:0===i.visibleStartIndex)(o,x);g.set(D&&!I&&_>=E-1||C||g.state.show)}const{StyledFixedSizeList:jI,StyledFixedSizeGrid:BI}=function(){const i=o=>({scrollbarColor:"".concat("#BBB"," ").concat(iC),overflow:o?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:iC},"&::-webkit-scrollbar-thumb":{backgroundColor:"#BBB",borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:Wf(rC,{shouldForwardProp:o=>"scrollDisabled"!==o})(o=>{let{scrollDisabled:a}=o;return{["&.".concat(Hb.styledScrollbars)]:i(a)}}),StyledFixedSizeGrid:Wf(nC,{shouldForwardProp:o=>"scrollDisabled"!==o})(o=>{let{scrollDisabled:a}=o;return{["&.".concat(Hb.styledScrollbars)]:i(a)}})}}(),Ub=i=>{const o=z.useMemo(()=>"text"in i?i:{},[i]);return z.useMemo(()=>((i,o)=>{const a=(()=>{const f=document.createDocumentFragment(),p=document.createElement("canvas");return f.appendChild(p),p.getContext("2d")})();if(a.font=o,Array.isArray(i))return Math.max(...i.map(f=>a.measureText(f).width));const u=a.measureText(i);return Math.ceil(u.width||0)})(o.text,o.font||"12px Source Sans Pro"),[o.text,o.font])};function Rm(i){return i?Array("number"==typeof i?i:i.qListObject.qDimensionInfo.qApprMaxGlyphCount).fill("M").join(""):""}function Wb(i){let{isGridMode:o,dense:a}=i,u=a?20:o?32:29;return o&&(u+=4),u}const[qI,VI]=bo({});function aC(i){const o="".concat(i.id),[a]=qI();return{setStoreValue:(u,f)=>a.set("".concat(o,"/").concat(u),f),getStoreValue:u=>a.get("".concat(o,"/").concat(u))}}const lC=He(Gn,{shouldForwardProp:i=>!["width","dense"].includes(i)})(i=>{let{width:o,dense:a}=i;return de({minWidth:"".concat(o,"px"),textAlign:"center",fontSize:"".concat(a?"12px":"14px")},a&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:o})});function $I(i){let{width:o,text:a,dense:u,tooltip:f}=i;const{translator:p}=z.useContext(sr);return Y.createElement(zl,{title:f?p.get(a):""},Y.createElement(lC,{width:o,dense:u,component:"div",variant:"body1",py:"12px"},p.get(a)))}var Kb,cC,uC,qd={},ps={exports:{}},gs={},ms=ao(pR);var fC=Ai(function dC(){if(uC)return qd;uC=1;var u,i=(Kb||(Kb=1,(u=ps).exports=function(f){return f&&f.__esModule?f:{default:f}},u.exports.__esModule=!0,u.exports.default=u.exports),ps.exports);Object.defineProperty(qd,"__esModule",{value:!0}),qd.default=void 0;var o=i(function ys(){return cC||(cC=1,function(i){Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return o.createSvgIcon}});var o=ms}(gs)),gs}()),a=Gi();return qd.default=(0,o.default)((0,a.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),qd}());const HI=He(j0)(i=>{let{theme:o,left:a}=i;return{position:"absolute",bottom:"12px",display:"flex",border:"1px solid ".concat(o.palette.divider),width:"calc(100% - 11px)",left:a}}),GI=He("div")(()=>({paddingLeft:"6px",flexGrow:1})),UI=He("div")(i=>{let{dense:o}=i;return{display:"flex",alignItems:"".concat(o?"center":"flex-start")}}),WI=He(fC)(()=>({fontSize:"14px"}));function Qb(i){let{text:o,dismiss:a,dense:u,parentWidth:f=0}=i;const p="function"==typeof a,g=u?370:282,y=Math.max(f/2-g/2,0),b=Math.min(g,f)-42;return Y.createElement(HI,{left:y,style:{maxWidth:g}},Y.createElement(GI,null,Y.createElement($I,{text:o,dense:u,width:b,tooltip:u&&f<g})),Y.createElement(UI,{dense:u},p&&Y.createElement(xo,{"aria-label":"close",onClick:()=>a()},Y.createElement(WI,null))))}function Yb(i){let{itemWidth:o,layout:a,frequencyMode:u}=i;const f=o>80,{frequencyEnabled:p=!1}=(null==a?void 0:a.qListObject)||{},g=!["N",void 0].includes(u);return!(!f||!g&&!p)}const hC=i=>{const o=(a=i)&&(/^[A-Za-z][A-Za-z0-9_]*$/.test(a)?a:"[".concat(a.replace(/\]/g,"]]"),"]"));var a;return"Max(AGGR(Count(".concat(o,"), ").concat(o,"))")},pC=(i,o)=>{const a="fetch"===(null==(y=o)?void 0:y.frequencyMax),[u,f]=z.useState(),[p,g]=z.useState(a);var y;return z.useEffect(()=>{!a||qe(function*(){const y=yield(b=qe(function*(x,_){const E=x.qListObject.qDimensionInfo,I=hC(E.qGroupFieldDefs[E.qGroupPos]);return(yield _.evaluateEx(I)).qNumber}),function(x,_){return b.apply(this,arguments)})(o,i);var b;f(y),g(!1)})()},[a&&o]),{frequencyMax:a?u:null==o?void 0:o.frequencyMax,awaitingFrequencyMax:p}},gC=["isLoadingData"],QI=He("div")(()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}}));function Zb(i){var o,a;let{model:u,app:f,constraints:p,layout:g,selections:y,selectionState:b,direction:x,checkboxes:_,height:E,width:D,frequencyMode:I,update:C,fetchStart:A,postProcessPages:M,calculatePagesHeight:T=!1,keyboard:O={},showGray:L=!0,scrollState:F,keyScroll:P={state:{},reset:()=>{}},currentScrollIndex:q={set:()=>{}},renderedCallback:$,onCtrlF:Q,showSearch:X,isModal:ae,styles:le}=i;const{translator:oe}=z.useContext(sr),[K,U]=z.useState(!1),ne=!(!g||!g.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:se=_,histogram:he}=null!=g?g:{},B=z.useRef(null),G=z.useRef({queue:[],validPages:!1,dataOffset:0}),Z=z.useRef({pages:[]}),{frequencyMax:re,awaitingFrequencyMax:te}=pC(f,g),Se=gl(function(rt){let{local:_t,loaderRef:Gt,model:bt,fetchStart:Ct,scrollTimeout:on,postProcessPages:Un,listData:Tn}=rt;const[jn,zt]=z.useState(!1),[vn,Bn]=z.useState([]);let[cn]=z.useState(0);const On=(Wn,Qn)=>{const vr=_t.current.dataOffset;_t.current.queue.push({start:Wn+vr,stop:Qn+vr});const un=!!Gt.current&&Gt.current._listRef&&Gt.current._listRef.state.isScrolling;return _t.current.queue.length>10&&_t.current.queue.shift(),clearTimeout(_t.current.timeout),zt(!0),new Promise(lt=>{_t.current.timeout=setTimeout(()=>{const St=_t.current.queue.slice(-1)[0],Zi=bt.getListObjectData("/qListObjectDef",[{qTop:St.start>cn?St.start-cn:0,qHeight:cn,qLeft:0,qWidth:1},{qTop:St.start,qHeight:cn,qLeft:0,qWidth:1}]).then(Hr=>{const ai=Un?Un(Hr):Hr;_t.current.validPages=!0,Tn.current.pages=ai,Bn(ai),zt(!1),lt()});Ct&&Ct(Zi)},un?on:0)})};return{loadMoreItems:{with(Wn){let{minimumBatchSize:Qn}=Wn;return Qn&&(cn=Qn),On}},pages:vn,isLoading:jn}}({local:G,loaderRef:B,model:u,fetchStart:A,scrollTimeout:0,postProcessPages:M,listData:Z}),gC),{getStoreValue:Ae,setStoreValue:Le}=aC(u),Ne=z.useCallback(Se.loadMoreItems,[g]),[Ve,Re]=z.useState({show:!1,dismissed:!1}),[Me,nt]=z.useState([]);null!=Se&&Se.pages&&b.update({setPages:nt,pages:Se.pages,isSingleSelect:ne,layout:g});const Ge=null==g?void 0:g.qListObject.qDimensionInfo.qCardinal;(null!=Se&&Se.pages.length&&!te||0===Ge)&&(null==$||$());const yt=z.useCallback(rt=>{if(null==Me||!Me.length||!G.current.validPages)return!1;G.current.checkIdx=rt;const _t=bt=>bt.qArea.qTop<=rt&&rt<bt.qArea.qTop+bt.qArea.qHeight,Gt=Me.filter(bt=>_t(bt))[0];return Gt&&_t(Gt)},[g,Me]),{interactionEvents:Rt,select:Bt}=function CI(i){var o;let{selectionState:a,selections:u,checkboxes:f=!1,doc:p=document,loaderRef:g}=i;const y=z.useRef({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});z.useEffect(()=>{var L;if(null===(L=g.current)||void 0===L||null===(L=L._listRef)||void 0===L||!L._outerRef)return;const F=Q=>Q.preventDefault(),P=Q=>Q.preventDefault(),q=Q=>Q.preventDefault(),$=g.current._listRef._outerRef;return $.addEventListener("gesturestart",F),$.addEventListener("gesturechange",P),$.addEventListener("gestureend",q),()=>{$.removeEventListener("gesturestart",F),$.removeEventListener("gesturechange",P),$.removeEventListener("gestureend",q)}},[null===(o=g.current)||void 0===o||null===(o=o._listRef)||void 0===o?void 0:o._outerRef]);const b=function(){var L=qe(function*(){var F;return(null===(F=a.selectDisabled)||void 0===F||!F.call(a))&&(a.setSelectableValuesUpdating(),Tb({selections:u,elemNumbers:y.current.elemNumbers,isSingleSelect:a.isSingleSelect,toggle:y.current.toggle}))});return function(){return L.apply(this,arguments)}}(),x=(L,F)=>function(P,q){if(!P)return[];if(P.length<=1)return P;const{min:$,max:Q}=function(X,ae){let le=1/0,oe=-1/0;return X.forEach(K=>{const U=ae.indexOf(K);le=U<le?U:le,oe=U>oe?U:oe}),{min:le,max:oe}}(P,q);return q.slice($,Q+1)}([L,F],function(P){if(!P||!P.length)return[];const q=P.map($=>$.qMatrix.map(Q=>{const[{qElemNumber:X}]=Q;return X}));return Mb(q)}(a.enginePages)),_=L=>{const{startElemNumber:F}=y.current;if(F===L)return;const P=x(y.current.startElemNumber,L);a.updateItems(P,!0,y.current.elemNumbers)},E=z.useCallback(L=>{if(a.selectDisabled())return;const F=+L.target.getAttribute("data-n"),P=!a.isSingleSelect&&xm(L.nativeEvent);y.current.elemNumbers=[F],y.current.toggle=P,P||a.clearItemStates(!0),a.updateItem(F),y.current.active=!1,b()},[]),D=z.useCallback(L=>{if(0!==L.button||a.selectDisabled())return;const F=+L.currentTarget.getAttribute("data-n"),P=!a.isSingleSelect&&xm(L);var q;y.current.isRange=!1,y.current.startElemNumber=F,y.current.elemNumbers=[F],y.current.toggle=P,y.current.active=!0,P||a.clearItemStates(!0),a.updateItem(F),a.isSingleSelect&&(y.current.active=!1,b()),((q=L).ctrlKey||q.metaKey)&&(L.currentTarget.focus(),q.preventDefault())},[]),I=z.useCallback(L=>{if(0===L.button&&y.current.active){if(y.current.active=!1,y.current.isRange){const F=+L.currentTarget.getAttribute("data-n");_(F)}b()}},[]),C=z.useCallback(L=>{0===L.button&&y.current.active&&(y.current.active=!1,b())},[]),A=z.useCallback(L=>{if(!y.current.active)return;y.current.isRange||(y.current.isRange=!0,a.isSelected(y.current.startElemNumber)||(a.updateItem(y.current.startElemNumber,!0),y.current.elemNumbers=[]));const F=+L.currentTarget.getAttribute("data-n");_(F)},[]),M=z.useCallback(L=>{var F,P;if(y.current.active||y.current.isRange||a.isSingleSelect||L.touches.length<=1)return;if(L.touches.length>2)return void b();const q=Number(null===(F=L.touches[0].target)||void 0===F||null===(F=F.closest(ME))||void 0===F?void 0:F.getAttribute("data-n")),$=Number(null===(P=L.touches[1].target)||void 0===P||null===(P=P.closest(ME))||void 0===P?void 0:P.getAttribute("data-n"));Number.isNaN(q)||Number.isNaN(q)?b():(y.current.active=!0,x(q,$).length<7&&(y.current.touchRangeSmall=!0),y.current.elemNumbers=[],y.current.touchElemNumbers=[q,$])},[]),T=z.useCallback(()=>{if(2!==y.current.touchElemNumbers.length)return;if(y.current.touchRangeSmall)return y.current.touchRangeSmall=!1,y.current.touchElemNumbers=[],void(y.current.active=!1);const[L,F]=y.current.touchElemNumbers;y.current.startElemNumber=L,_(F),y.current.touchElemNumbers=[],y.current.active=!1,y.current.toggle=!0,b()},[]);z.useEffect(()=>(p.addEventListener("mouseup",C),()=>{p.removeEventListener("mouseup",C)}),[C]),z.useEffect(()=>{const L=()=>{a.clearItemStates(!1)},F=()=>{a.clearItemStates(!0),a.triggerStateChanged()};return u.on("clearItemStates",L),u.on("deactivated",L),u.on("cleared",F),()=>{u.removeListener("clearItemStates",L),u.removeListener("deactivated",L),u.removeListener("cleared",F)}},[u]);const O={};return Object.assign(O,f?{onChange:E}:{onMouseUp:I,onMouseDown:D,onMouseEnter:A,onTouchStart:M,onTouchEnd:T}),{interactionEvents:O,select:(L=qe(function*(){var F;let P=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],q=arguments.length>1&&void 0!==arguments[1]&&arguments[1],$=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(null!==(F=a.selectDisabled)&&void 0!==F&&F.call(a))return!1;const Q=!a.isSingleSelect&&xm(null==$?void 0:$.nativeEvent);Q||a.clearItemStates(!0);const X=[];return a.updateItems(P,q,X),a.setSelectableValuesUpdating(),Tb({selections:u,elemNumbers:q?X:P,isSingleSelect:a.isSingleSelect,toggle:Q})}),function(){return L.apply(this,arguments)})};var L}({selectionState:b,selections:y,checkboxes:se,doc:document,loaderRef:B}),{layoutOptions:ze={}}=g||{};let It=!0;ze.dataLayout&&(It="singleColumn"===ze.dataLayout||"row"===(null==ze?void 0:ze.layoutOrder));const ct="grid"===(null==ze?void 0:ze.dataLayout),Ht=rt=>{const _t=de({},It?{rowIndex:rt}:{columnIndex:rt});B.current._listRef.scrollToItem(ct?_t:rt)},xt=()=>{if(G.current.queue=[],G.current.validPages=!1,B.current){B.current.resetloadMoreItemsCache(!0);const rt="overflowEnd"===P.state.scrollPosition;if(g&&g.qSelectionInfo.qInSelections||rt)return void(rt&&P.reset());G.current.dataOffset=0,Ht(0)}};C&&C.call(null,xt),z.useEffect(()=>{F&&!K&&B.current&&(B.current._listRef.scrollToItem(F.initScrollPos),U(!0))},[B.current]),z.useEffect(()=>{xt()},[g,G.current.dataOffset]);let st=100;const ft="grid"!==ze.dataLayout,ht=null==g||null===(o=g.qListObject.qSize)||void 0===o?void 0:o.qcy,at=function(rt){let{pages:_t,minimumBatchSize:Gt,count:bt,calculatePagesHeight:Ct=!1}=rt;return(null!=_t&&_t.length&&Ct?(i=>{let{pages:o=[],minimumBatchSize:a,count:u}=i;const f=o.some(g=>g.qArea.qHeight<a),p=Math.max(...o.map(g=>g.qArea.qTop+g.qArea.qHeight));return f?p:u})({pages:_t,minimumBatchSize:Gt,count:bt}):bt)||0}({pages:Me,minimumBatchSize:st,count:ht,calculatePagesHeight:T});let gt=Yb({itemWidth:D,layout:g,frequencyMode:I});const $e=Me.some(_t=>{let{qMatrix:Gt}=_t;return Gt.some(bt=>{var Ct;let[on]=bt;return!(null===(Ct=on.qFrequency)||void 0===Ct||!Ct.match("%"))})})?"P":"-",Ke=function zd(i){let{layout:o,width:a,height:u,listCount:f,count:p,freqIsAllowed:g,checkboxes:y,styles:b}=i;const{layoutOptions:x={}}=o||{},{layoutOrder:_,maxVisibleRows:E={},maxVisibleColumns:D,dense:I,dataLayout:C}=x,{fontSize:A="12px",fontFamily:M="Source sans pro"}=(null==b?void 0:b.content)||{},T="".concat(A," ").concat(M),O=Ub({text:Rm(o),font:T}),L=Ub({text:Rm(5),font:T}),F=Ub({text:Rm(8),font:T}),P=g?L:0,q=y?20:0;let $=56+P+q;!y&&$>=80&&($+=20);let Q,X,ae,le,oe=O+18+P+q;!y&&oe>=80&&(oe+=20),oe=Math.min(150,Math.max(oe,$));const K=Wb({isGridMode:"grid"===C,dense:I}),U=null!=u?u:8*K;if(_){let G=a;"row"===_?(Q={overflowX:"hidden"},G+=8,({rowCount:le,columnWidth:ae,columnCount:X}=function(Z){let{maxVisibleColumns:re,listCount:te,containerWidth:ce,columnAutoWidth:ye,itemMinWidth:Se}=Z;const Ae=(null==re?void 0:re.maxColumns)||3,Le=ce-10;let Ne;const Ve=Math.min(te,Math.max(1,Math.round(Le/Math.max(Se,ye))));Ne=!1!==(null==re?void 0:re.auto)?Ve:Math.min(te,Ae,Ve),Ne=Math.max(Ne,1);const Re=Le/Ne;return{rowCount:Math.ceil(te/Ne),columnWidth:Re,columnCount:Ne}}({maxVisibleColumns:D,listCount:f,containerWidth:G,columnAutoWidth:oe,itemMinWidth:$}))):(Q={overflowY:"hidden"},({rowCount:le,columnWidth:ae,columnCount:X}=function(Z){let re,{maxVisibleRows:te,itemHeight:ce,listCount:ye,listHeight:Se,columnAutoWidth:Ae,containerWidth:Le,itemMinWidth:Ne}=Z;const Ve=(null==te?void 0:te.maxRows)||3,Re=Math.floor(Se/ce);re=!1!==te.auto?Re:Math.min(ye,Ve,Re),re=Math.max(re,1);const Me=Math.ceil(ye/re);return{columnWidth:Math.max(Ae,Le/Me,Ne),columnCount:Me,rowCount:re}}({maxVisibleRows:E,itemHeight:K,listCount:f,listHeight:U,columnAutoWidth:oe,containerWidth:G,itemMinWidth:$})))}X=("singleColumn"===C?1:X)||1,le=("singleColumn"===C?p:le)||f;const ne=x.dense?838e3:577e3;le=Math.min(le,ne);const se=Math.floor(3355e4/ae);return X=Math.min(X,se)||1,{columnCount:X,columnWidth:ae,rowCount:le,overflowStyling:Q,itemHeight:K,listHeight:U,listWidth:a,scrollBarWidth:10,count:p,listCount:Math.min(f,le*X),maxCount:{row:ne,column:se},itemPadding:4,textWidth:O,freqMinWidth:L,freqMaxWidth:F}}({layout:g,width:D,height:E,listCount:at,count:ht,freqIsAllowed:gt,checkboxes:se,styles:le});Ke.columnWidth&&(gt=Yb({itemWidth:Ke.columnWidth,layout:g,frequencyMode:I}));const{listCount:hn}=Ke;Le("listCount",hn);const zn=Ae("inputText"),qn=function(rt){let{layout:_t,searchInputText:Gt,listCount:bt}=rt;const{translator:Ct}=z.useContext(sr),on=[];if(null!=Gt&&Gt.length){const jn=function(vn){let Bn;switch(vn){case 0:Bn="Listbox.NoMatchesForYourTerms";break;case 1:Bn="ScreenReader.OneSearchResult";break;default:Bn="ScreenReader.ManySearchResults"}return Bn}(bt),zt=Ct.get(jn,[bt]);on.push(zt)}const Un=function(jn){var zt;let{layout:vn,translatorDynamic:Bn}=jn;const{qStateCounts:cn={}}=(null==vn||null===(zt=vn.qListObject)||void 0===zt?void 0:zt.qDimensionInfo)||{},On=cn.qSelected+cn.qSelectedExcluded+cn.qLocked+cn.qLockedExcluded;let Wn;switch(On){case 0:Wn="ScreenReader.ZeroSelected";break;case 1:Wn="ScreenReader.OneSelected";break;default:Wn="ScreenReader.ManySelected"}return Bn.get(Wn,[On])}({layout:_t,translatorDynamic:Ct});return on.push(Un),on.filter(jn=>!(null==jn||!jn.length)).join(". ")}({layout:g,searchInputText:zn,listCount:hn}),gr=rt=>{const{scrollIndex:_t,offset:Gt,triggerRerender:bt}=function(Ct){let on,{position:Un,isRow:Tn,sizes:jn,layout:zt,offset:vn}=Ct,Bn=!1,cn=null!=vn?vn:0;switch(Un){case"start":on=0;break;case"end":on=Tn?jn.rowCount:jn.columnCount;break;case"overflowStart":cn=0,on=0,Bn=!0;break;case"overflowEnd":cn=((i,o)=>i.qListObject.qDimensionInfo.qCardinal-o)(zt,jn.listCount),on=zt.qListObject.qDimensionInfo.qCardinal,Bn=!0}return{scrollIndex:on,offset:cn,triggerRerender:Bn}}({position:rt,isRow:It,sizes:Ke,layout:g,offset:G.current.dataOffset});G.current.dataOffset=Gt,bt&&b.triggerStateChanged(),Ht(_t)};z.useEffect(()=>{const rt=P.state;rt.up?Ht(q.state.start-rt.up):rt.down?Ht(q.state.stop+rt.down):rt.scrollPosition&&gr(rt.scrollPosition),"overflowEnd"!==rt.scrollPosition&&P.reset()},[P.state.up,P.state.down,P.state.scrollPosition]);const{textAlign:Ir}=(null==g?void 0:g.qListObject.qDimensionInfo)||{},[Mr,pn]=z.useState({first:!1,last:!1}),{List:nn,Grid:Jt}=function(rt){let{layout:_t,width:Gt,checkboxes:bt,local:Ct,isVertical:on,pages:Un,selectionState:Tn,interactionEvents:jn,deducedFrequencyMode:zt,histogram:vn,isSingleSelect:Bn,select:cn,selectAll:On,onCtrlF:Wn,textAlign:Qn,selections:vr,keyboard:un,showGray:lt,scrollState:St,direction:Zi,sizes:Hr,listCount:ai,overflowDisclaimer:Lt,setScrollPosition:Pt,focusListItems:gp,setCurrentScrollIndex:Vn,constraints:Xa,frequencyMax:Sn,freqIsAllowed:uw,translator:au,showSearch:cf,isModal:Fi,styles:ko}=rt;const{layoutOptions:Ul={}}=_t||{},{columnWidth:uf,listHeight:aa,itemHeight:la,rowCount:Go,columnCount:xs}=Hr||{},dw=("grid"===Ul.dataLayout?uf:Gt)>80,df={direction:"rtl"===Zi?"rtl":"ltr",useIsScrolling:!0,className:Hb.styledScrollbars},mp=null==_t?void 0:_t.qListObject.qDimensionInfo.qLocked,yp=aa<=la,Ja=de(de({isLocked:mp,column:!on,pages:Un},mp||Tn.selectDisabled()?{}:jn),{},{checkboxes:bt,layoutOptions:Ul,deducedFrequencyMode:zt,freqIsAllowed:uw,isSingleSelect:Bn,textAlign:Qn,sizes:Hr,actions:{select:cn,confirm:()=>null==vr?void 0:vr.confirm.call(vr),cancel:()=>null==vr?void 0:vr.cancel.call(vr),setScrollPosition:Pt,selectAll:On,onCtrlF:Wn},frequencyMax:Sn,histogram:vn,keyboard:un,showGray:lt,showTick:dw,dataOffset:Ct.current.dataOffset,focusListItems:gp,direction:Zi,translator:au,showSearch:cf,isModal:Fi,styles:ko,fillHeight:yp});return{List:lu=>{let{onItemsRendered:bn,ref:_s}=lu;return Ct.current.listRef=_s,Y.createElement(jI,Er({},df,{dataTestid:"fixed-size-list",scrollDisabled:null==Xa?void 0:Xa.active,height:aa,width:Gt,itemCount:ai,itemData:de(de({},Ja),{},{listCount:ai}),itemSize:la,onItemsRendered:Xi=>{var Uo;Vn({start:Xi.visibleStartIndex,stop:Xi.visibleStopIndex}),St&&St.setScrollPos(Xi.visibleStopIndex),Gb({renderProps:Xi,layoutOptions:Ul,maxCount:Hr.maxCount,columnCount:xs,rowCount:Go,overflowDisclaimer:Lt,qCardinal:null==_t||null===(Uo=_t.qListObject)||void 0===Uo||null===(Uo=Uo.qDimensionInfo)||void 0===Uo?void 0:Uo.qCardinal,dataOffset:Ct.current.dataOffset}),bn(de({},Xi))},ref:_s}),qb)},Grid:lu=>{let{onItemsRendered:bn,ref:_s}=lu;const{overflowStyling:Xi,scrollBarWidth:Uo}=Hr,{layoutOrder:vp}=Ul||{},ff=Math.min(aa,Go*la+Uo);return Ct.current.listRef=_s,Y.createElement(BI,Er({},df,{dataTestid:"fixed-size-grid",scrollDisabled:null==Xa?void 0:Xa.active,height:ff,width:Gt,columnCount:xs,columnWidth:uf,rowCount:Go,rowHeight:la,style:de({},Xi),itemData:de(de({},Ja),{},{column:void 0,columnCount:xs,rowCount:Go}),onItemsRendered:ca=>{var ua;const el="row"===vp;Vn({start:el?ca.visibleRowStartIndex:ca.visibleColumnStartIndex,stop:el?ca.visibleRowStopIndex:ca.visibleColumnStopIndex});const da=function(fa){const{renderProps:ha,scrollState:pa,layoutOrder:cu,rowCount:Ss,columnCount:vy}=fa,{overscanRowStartIndex:uu,overscanRowStopIndex:ga,overscanColumnStartIndex:hf,overscanColumnStopIndex:du,visibleStopIndex:fw}=ha;let bp,Es,tl,ma;return pa&&pa.setScrollPos(fw),"column"===cu?(bp=hf*Ss,Es=uu,tl=du*Ss,ma=ga):(bp=hf,Es=uu*vy,tl=du,ma=ga*vy),{visibleStartIndex:bp+Es,visibleStopIndex:tl+ma}}({renderProps:ca,scrollState:St,layoutOrder:vp,rowCount:Go,columnCount:xs});Gb({renderProps:ca,layoutOptions:Ul,maxCount:Hr.maxCount,columnCount:xs,rowCount:Go,overflowDisclaimer:Lt,qCardinal:null==_t||null===(ua=_t.qListObject)||void 0===ua||null===(ua=ua.qDimensionInfo)||void 0===ua?void 0:ua.qCardinal,dataOffset:Ct.current.dataOffset}),bn(da)},ref:_s}),qb)}}}({direction:x,layout:g,width:D,checkboxes:se,deducedFrequencyMode:$e,histogram:he,keyboard:O,showGray:L,interactionEvents:Rt,select:Bt,selectAll:()=>{b.clearItemStates(!1),u.selectListObjectAll("/qListObjectDef")},onCtrlF:Q,textAlign:Ir,isVertical:ft,pages:Me,selectionState:b,isSingleSelect:ne,selections:y,scrollState:F,local:G,sizes:Ke,listCount:hn,overflowDisclaimer:{state:Ve,set:rt=>Re(_t=>de(de({},_t),{},{show:rt}))},setScrollPosition:gr,focusListItems:{first:Mr.first,setFirst:rt=>pn(_t=>de(de({},_t),{},{first:rt})),last:Mr.last,setLast:rt=>pn(_t=>de(de({},_t),{},{last:rt}))},setCurrentScrollIndex:q.set,constraints:p,frequencyMax:re,freqIsAllowed:gt,translator:oe,showSearch:X,isModal:ae,styles:le}),{columnWidth:mn,listHeight:gn,itemHeight:yn}=Ke||{};return ft||(st=function(rt){let{width:_t,columnWidth:Gt,listHeight:bt,itemHeight:Ct}=rt;return Math.ceil(_t/Gt)*Math.ceil(bt/Ct)*2}({width:D,columnWidth:mn,listHeight:gn,itemHeight:yn})),Y.createElement(QI,null,Y.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},qn),!hn&&Ge>0&&Y.createElement($I,{width:D,text:"Listbox.NoMatchesForYourTerms"}),Y.createElement(AE,{isItemLoaded:yt,itemCount:hn||1,loadMoreItems:Ne.with({minimumBatchSize:st}),threshold:0,minimumBatchSize:st,ref:B,role:"grid"},ft?nn:Jt),Ve.show&&!Ve.dismissed&&Y.createElement(Qb,{text:"Listbox.ItemsOverflow",dismiss:()=>Re(rt=>de(de({},rt),{},{dismissed:!0})),parentWidth:null==B||null===(a=B.current)||void 0===a||null===(a=a._listRef)||void 0===a||null===(a=a.props)||void 0===a?void 0:a.width,dense:null==ze?void 0:ze.dense}))}const YI=i=>de(de({},i),{},{shapes:[{type:"path",attrs:{d:"M15.4,9 C15.8,9 16,9.3 16,9.6 L16,15.4 C16,15.7 15.8,16 15.4,16 L9.6,16 C9.3,16 9,15.8 9,15.4 L9,9.6 C9,9.3 9.3,9 9.6,9 L15.4,9 Z M15,10 L10,10 L10,15 L15,15 L15,10 Z M6.5,0 C6.8,0 7,0.3 7,0.6 L7,6.4 C7,6.8 6.8,7 6.5,7 L0.6,7 C0.3,7 0,6.8 0,6.5 L0,0.6 C0,0.3 0.3,0 0.6,0 L6.5,0 Z M6,2.8 C6.3,2.5 6.3,2.1 6.1,1.8 C5.9,1.5 5.4,1.6 5.1,1.9 L3.1,3.9 L2.4,3.2 C2.1,2.9 1.7,2.9 1.4,3.1 C1.2,3.3 1.2,3.8 1.5,4.1 L2.7,5.3 C3,5.6 3.4,5.6 3.7,5.3 L3.8,5.3 L6,2.8 Z M6.5,9 C6.8,9 7,9.3 7,9.6 L7,15.4 C7,15.8 6.8,16 6.5,16 L0.6,16 C0.3,16 0,15.8 0,15.4 L0,9.6 C0,9.3 0.3,9 0.6,9 L6.5,9 Z M6,11.8 C6.3,11.5 6.3,11.1 6.1,10.8 C5.9,10.6 5.4,10.6 5.1,10.8 L3.1,12.8 L2.3,12 C2,11.7 1.6,11.7 1.3,12 C1.1,12.3 1.1,12.7 1.4,13 L2.6,14.2 C2.9,14.5 3.3,14.5 3.6,14.3 L3.7,14.2 L6,11.8 Z M15.4,0 C15.8,0 16,0.3 16,0.6 L16,6.4 C16,6.8 15.8,7 15.4,7 L9.6,7 C9.3,7 9,6.8 9,6.5 L9,0.6 C9,0.3 9.3,0 9.6,0 L15.4,0 Z M15,2.8 C15.3,2.5 15.3,2.1 15.1,1.8 C14.9,1.5 14.4,1.6 14.1,1.9 L12.1,3.9 L11.3,3.1 C11,2.8 10.6,2.8 10.3,3 C10,3.2 10.1,3.7 10.3,4 L11.5,5.2 C11.8,5.5 12.2,5.5 12.5,5.2 L15,2.8 Z"}}]}),mC=i=>de(de({},i),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),Xb=i=>de(de({},i),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),yC=i=>de(de({},i),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]});var Jb=i=>{let{layout:o,model:a,translator:u,selectionState:f,isDirectQuery:p=!1,selections:g}=i;if(o.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];const y="/qListObjectDef",b=()=>{g.isActive()||g.begin(y)};return[{key:"selectAll",type:"menu-icon-button",label:u.get("Selection.SelectAll"),getSvgIconShape:YI,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some(x=>o.qListObject.qDimensionInfo.qStateCounts[x]>0),action:()=>{b(),f.clearItemStates(!1),a.selectListObjectAll(y)}},{key:"selectPossible",type:"menu-icon-button",label:u.get("Selection.SelectPossible"),getSvgIconShape:Xb,enabled:()=>["qOption"].some(x=>o.qListObject.qDimensionInfo.qStateCounts[x]>0),action:()=>{b(),f.clearItemStates(!1),a.selectListObjectPossible(y)}},!p&&{key:"selectAlternative",type:"menu-icon-button",label:u.get("Selection.SelectAlternative"),getSvgIconShape:mC,enabled:()=>["qAlternative"].some(x=>o.qListObject.qDimensionInfo.qStateCounts[x]>0),action:()=>{b(),f.clearItemStates(!1),a.selectListObjectAlternative(y)}},!p&&{key:"selectExcluded",type:"menu-icon-button",label:u.get("Selection.SelectExcluded"),getSvgIconShape:yC,enabled:()=>["qAlternative","qExcluded"].some(x=>o.qListObject.qDimensionInfo.qStateCounts[x]>0),action:()=>{b(),f.clearItemStates(!1),a.selectListObjectExcluded(y)}}].filter(Boolean)};const vC=i=>de(de({},i),{},{shapes:[{type:"path",attrs:{d:"M2,6.5 L3,6.5 C3.55228475,6.5 4,6.94771525 4,7.5 L4,8.5 C4,9.05228475 3.55228475,9.5 3,9.5 L2,9.5 C1.44771525,9.5 1,9.05228475 1,8.5 L1,7.5 C1,6.94771525 1.44771525,6.5 2,6.5 Z M7.5,6.5 L8.5,6.5 C9.05228475,6.5 9.5,6.94771525 9.5,7.5 L9.5,8.5 C9.5,9.05228475 9.05228475,9.5 8.5,9.5 L7.5,9.5 C6.94771525,9.5 6.5,9.05228475 6.5,8.5 L6.5,7.5 C6.5,6.94771525 6.94771525,6.5 7.5,6.5 Z M13,6.5 L14,6.5 C14.5522847,6.5 15,6.94771525 15,7.5 L15,8.5 C15,9.05228475 14.5522847,9.5 14,9.5 L13,9.5 C12.4477153,9.5 12,9.05228475 12,8.5 L12,7.5 C12,6.94771525 12.4477153,6.5 13,6.5 Z"}}]});function e1(i){const o=ri(),a="function"==typeof i.enabled?!i.enabled():!!i.disabled;return{hidden:!0===i.hidden,disabled:a,style:{backgroundColor:i.active?o.palette.btn.active:void 0},hasSvgIconShape:"function"==typeof i.getSvgIconShape}}const bC={className:"njs-cell-action"},wC=Y.forwardRef((i,o)=>{let{ariaExpanded:a=!1,item:u,addAnchor:f=!1}=i;const p=ri(),{hidden:g,disabled:y,style:b,hasSvgIconShape:x}=e1(u);if(g)return null;const _=Number.parseInt(p.spacing(.5),10),E=u.keyboardAction||u.action,D=E?A=>["Enter"].includes(A.key)&&E():null,I=E?A=>[" ","Spacebar"].includes(A.key)&&E():null,C="actions-toolbar-".concat(u.key);return Y.createElement(xo,{ref:f?null:o,title:u.label,onClick:u.action,onKeyDown:D,onKeyUp:I,disabled:y,style:b,className:[bC.className,C].join(" "),size:"large",disableRipple:!0,"aria-expanded":a,"aria-controls":"moreMenuList","data-testid":C},x&&kr(u.getSvgIconShape()),f&&Y.createElement("div",{ref:o,style:{bottom:-_,right:0,position:"absolute",width:"100%",height:0}}))}),t1=i=>de(de({},i),{},{shapes:[{type:"path",attrs:{d:"M9.34535242,8 L13.3273238,11.9819714 C13.6988326,12.3534802 13.6988326,12.955815 13.3273238,13.3273238 C12.955815,13.6988326 12.3534802,13.6988326 11.9819714,13.3273238 L8,9.34535242 L4.01802863,13.3273238 C3.64651982,13.6988326 3.04418502,13.6988326 2.67267621,13.3273238 C2.3011674,12.955815 2.3011674,12.3534802 2.67267621,11.9819714 L6.65464758,8 L2.67267621,4.01802863 C2.3011674,3.64651982 2.3011674,3.04418502 2.67267621,2.67267621 C3.04418502,2.3011674 3.64651982,2.3011674 4.01802863,2.67267621 L8,6.65464758 L11.9819714,2.67267621 C12.3534802,2.3011674 12.955815,2.3011674 13.3273238,2.67267621 C13.6988326,3.04418502 13.6988326,3.64651982 13.3273238,4.01802863 L9.34535242,8 Z"}}]});var xC=i=>kr(t1(i));const _C=i=>de(de({},i),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M9.1661442,6.1661442 C10.7210031,4.61128527 13.2789969,4.61128527 14.8338558,6.1661442 C16.3887147,7.72100313 16.3887147,10.2789969 14.8338558,11.8338558 C13.2789969,13.3887147 10.7210031,13.3887147 9.1661442,11.8338558 C7.61128527,10.2789969 7.61128527,7.77115987 9.1661442,6.1661442 Z M14.1316614,7.72100313 C14.3322884,7.52037618 14.3824451,7.169279 14.1316614,6.9184953 C13.8808777,6.6677116 13.5297806,6.71786834 13.3291536,6.9184953 L12.0250784,8.22257053 L10.7210031,6.9184953 C10.5203762,6.6677116 10.1191223,6.6677116 9.9184953,6.9184953 C9.6677116,7.11912226 9.6677116,7.52037618 9.9184953,7.72100313 L11.2225705,9.02507837 L9.9184953,10.3291536 C9.6677116,10.5297806 9.6677116,10.8808777 9.9184953,11.1316614 C10.169279,11.3824451 10.5203762,11.3824451 10.7210031,11.1316614 L12.0250784,9.82758621 L13.3291536,11.1316614 C13.5297806,11.3824451 13.8808777,11.3824451 14.1316614,11.1316614 C14.3322884,10.9310345 14.3824451,10.5297806 14.1316614,10.3291536 L12.8275862,9.02507837 L14.1316614,7.72100313 Z"}}]});var ZI=i=>kr(_C(i));const SC={icon:"".concat("More","-icon")},JI=He(Mh)(i=>{let{theme:o}=i;return{pointerEvents:"none",["& .".concat(SC.icon," *")]:{color:o.palette.text.primary}}});function eM(i){let{item:o,autoFocus:a,onActionClick:u=(()=>{})}=i;const{hidden:f,disabled:p,hasSvgIconShape:g}=e1(o);return f?null:Y.createElement(gI,{autoFocus:a,title:o.label,onClick:()=>{o.action(),u()},disabled:p,tabindex:"0"},g&&Y.createElement(Rd,{className:SC.icon},kr(o.getSvgIconShape())),Y.createElement(Gn,{noWrap:!0},o.label))}const tM=Y.forwardRef((i,o)=>{let{actions:a=[],show:u=!0,alignTo:f,popoverProps:p={},popoverPaperStyle:g={},onCloseOrActionClick:y=(()=>{}),disablePortal:b=!0}=i;const x=a.length>0,_=a.findIndex(E=>!E.disabled);return x&&Y.createElement(JI,Er({},p,{onClose:y,ref:o,open:u,anchorEl:f.current,getContentAnchorEl:b?null:void 0,container:b?f.current:void 0,disablePortal:b,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:"njs-action-toolbar-more"},paper:{style:de({pointerEvents:"auto",maxWidth:"250px"},g)}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}),Y.createElement(uI,{id:"moreMenuList"},a.map((E,D)=>Y.createElement(eM,{key:D,item:E,autoFocus:D===_,onActionClick:y}))))}),EC="ActionsToolbar",Mm={item:"".concat(EC,"-item"),itemSpacing:"".concat(EC,"-itemSpacing")},iM=He(Mh)(i=>{let{theme:o}=i;return{["& .".concat(Mm.itemSpacing)]:{padding:o.spacing(0,.25)}}}),oM_className="njs-action-toolbar-popover",Tm=Y.forwardRef((i,o)=>{let{className:a,ariaExpanded:u=!1,actions:f=[],addAnchor:p=!1,isRtl:g=!1}=i;return f.length>0?Y.createElement(tt,{item:!0,container:!0,gap:0,flexDirection:g?"row-reverse":"row",wrap:"nowrap",className:a},f.map((y,b)=>Y.createElement(tt,{item:!0,key:y.key,className:"".concat(Mm.itemSpacing," ").concat(Mm.item)},Y.createElement(wC,{ariaExpanded:u,key:y.key,item:y,ref:0===b?o:null,addAnchor:p})))):null}),sM={pointerEvents:"none"},aM={vertical:"bottom",horizontal:"right"};function n1(i){var o,a;let{show:u=!0,actions:f=[],maxItems:p=3,selections:g={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},extraItems:y,more:b={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{},disablePortal:!0},popover:x={show:!1,anchorEl:null},focusHandler:_=null,actionsRefMock:E=null,isRtl:D,autoConfirm:I=!1,layout:C}=i;const A=function(Z){let{api:re,layout:te,onConfirm:ce=(()=>{}),onCancel:ye=(()=>{}),onKeyDeactivate:Se=(()=>{})}=Z;const{translator:Ae}=z.useContext(sr);return[{key:"clear",type:"icon-button",label:Ae.get("Selection.Clear"),enabled:()=>re.canClear(te),action:()=>re.clear(),getSvgIconShape:_C},{key:"cancel",type:"icon-button",label:Ae.get("Selection.Cancel"),enabled:()=>re.canCancel(te),action:()=>{ye(),re.cancel()},keyboardAction:()=>{Se(),ye(),re.cancel()},getSvgIconShape:t1},{key:"confirm",type:"icon-button",label:Ae.get("Selection.Confirm"),enabled:()=>re.canConfirm(te),action:()=>{ce(),re.confirm()},keyboardAction:()=>{Se(),ce(),re.confirm()},getSvgIconShape:TE}]}(de(de({},g),{},{layout:C})),{translator:M,keyboardNavigation:T}=z.useContext(sr),[O,L]=z.useState(!1),F={vertical:12,horizontal:(null!==(o=null===(a=x.anchorEl)||void 0===a?void 0:a.clientWidth)&&void 0!==o?o:0)-7},P=z.useRef(),q=z.useRef(),$=ri(),Q=z.useMemo(()=>({margin:$.spacing(.5,0)})),X=Z=>{const re=P.current||E;if(!re)return null;const te=re.querySelectorAll("button:not(.Mui-disabled)");return te[Z?te.length-1:0]},ae=z.useMemo(()=>function(Z){let{keyboardNavigation:re,focusHandler:te,getEnabledButton:ce,selections:ye,isRtl:Se}=Z;return Ae=>{const{target:Le,nativeEvent:Ne}=Ae,{keyCode:Ve}=Ne;switch(Ve){case Kt.ARROW_LEFT:case Kt.ARROW_DOWN:case Kt.ARROW_RIGHT:case Kt.ARROW_UP:if(Le.classList.contains("njs-cell-action")){const Re=(i=>{const o=i.closest("#actions-toolbar"),a=null==o?void 0:o.querySelectorAll(".njs-cell-action");return Array.from(a).indexOf(i)})(Le);let Me=[Kt.ARROW_LEFT,Kt.ARROW_DOWN].includes(Ve);Me=Se?!Me:Me,(i=>{const o=document.querySelector("#actions-toolbar"),a=null==o?void 0:o.querySelectorAll(".njs-cell-action");!a.length||a[Math.min(Math.max(0,i),a.length-1)].focus()})(Me?Re-1:Re+1)}Ae.stopPropagation(),Ae.preventDefault();break;case Kt.SPACE:Ae.preventDefault();break;case Kt.TAB:re&&null!=te&&te.refocusContent&&(Ae.shiftKey&&ce(!1)===Ae.target||!Ae.shiftKey&&ce(!0)===Ae.target)&&(Ae.preventDefault(),Ae.stopPropagation(),te.refocusContent());break;case Kt.ESCAPE:ye&&(ye.onCancel(),ye.api.cancel(),Ae.preventDefault(),Ae.stopPropagation())}}}({keyboardNavigation:T,focusHandler:_,getEnabledButton:X,selections:g,isRtl:D}),[T,_,X,g,D]);if(z.useEffect(()=>()=>{L(!1)},[x.show,u,g.show]),z.useEffect(()=>{!_||(_.on("focus_toolbar_first",()=>{const Z=X(!1);null==Z||Z.focus()}),_.on("focus_toolbar_last",()=>{const Z=X(!0);null==Z||Z.focus()}))},[]),I)return;let le=b.enabled,oe=b.actions;const K=b.alignTo||q,U=f.filter(Z=>!Z.hidden);if(U.length>p){const Z=U.splice(-(U.length-p)-1);le=!0,oe=[...Z,...b.actions]}if(!g.show&&0===U.length&&!le)return null;const ne={key:"more",label:M.get("Menu.More"),getSvgIconShape:vC,hidden:!1,active:O,enabled:()=>le,action:()=>L(!O)},se=U.length>0,he=oe.length>0,B=se&&g.show||he&&g.show,G=Y.createElement(tt,{ref:P,onKeyDown:ae,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:D?"row-reverse":"row"}},(null==y?void 0:y.length)&&Y.createElement(Tm,{className:"actions-toolbar-extra-actions",actions:y,isRtl:D}),se&&Y.createElement(Tm,{actions:U}),he&&Y.createElement(Tm,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:q,ariaExpanded:O,actions:[ne],addAnchor:!0}),B&&Y.createElement(tt,{item:!0,className:Mm.itemSpacing,style:Q},Y.createElement(WS,{orientation:"vertical"})),g.show&&Y.createElement(Tm,{className:"actions-toolbar-default-actions",actions:A,isRtl:D}),O&&Y.createElement(tM,{show:O,actions:oe,alignTo:K,popoverProps:b.popoverProps,popoverPaperStyle:b.popoverPaperStyle,onCloseOrActionClick:()=>{L(!1)},disablePortal:b.disablePortal}));return x.show?Y.createElement(iM,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:x.show,anchorEl:x.anchorEl,anchorOrigin:F,transformOrigin:aM,hideBackdrop:!0,style:sM,onMouseDown:Z=>{Z.stopPropagation()},slotProps:{paper:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:oM_className,style:{pointerEvents:"auto",padding:$.spacing(.5,.25)}}}},G):u&&G}var r1=i=>kr((o=>de(de({},o),{},{shapes:[{type:"path",attrs:{d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014l-4.128-4.026ZM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0Zm-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6.034 6.034 0 0 1-1.413 1.415Z"}}]}))(i));const Bh="/qListObjectDef",i1=i=>null==i?void 0:i.substring(0,64e3),CC=He(vI,{shouldForwardProp:i=>!["styles","dense","isRtl"].includes(i)})(i=>{let{styles:o,dense:a,isRtl:u}=i,f={};return a&&(f={fontSize:12,"& input":{paddingTop:"5px",paddingBottom:"5px",color:o.search.color,textAlign:u?"right":"left"}}),de({display:"flex",border:"none",fontSize:14,borderRadius:0,backgroundColor:o.search.backgroundColor,backdropFilter:o.background.backgroundImage?o.search.backdropFilter:void 0,paddingLeft:0,paddingRight:0,flexDirection:u?"row-reverse":"row","& fieldset":{borderColor:"".concat(o.search.borderColor),borderWidth:"1px 0 1px 0",borderRadius:0},"&.Mui-focused fieldset":{borderColor:"".concat(o.search.highlightBorderColor," !important")},"& .MuiInputBase-root":de({},o.search),"& *":{color:o.search.color},"& input":{color:o.search.color,textAlign:u?"right":"left"}},f)}),DC=He(xo)(()=>({border:0,padding:"8px",cursor:"pointer",lineHeight:"12px","&:hover":{backgroundColor:"transparent"},":focus-visible":{borderRadius:"4px",boxShadow:"inset 0 0 0 2px rgb(2, 117, 217)"}}));var o1=z.forwardRef(function(i,o){let{popoverOpen:a,selections:u,selectionState:f,model:p,keyboard:g,dense:y=!1,visible:b=!0,autoFocus:x=!0,beginSelectionOnFocus:_=!0,wildCardSearch:E=!1,searchEnabled:D,direction:I,hide:C,styles:A}=i;const{translator:M}=z.useContext(sr),[T,O]=z.useState(""),[L,F]=z.useState(!1),P=z.useRef(),q=z.useRef(),$=M.get("Listbox.Clear.Search"),{getStoreValue:Q,setStoreValue:X}=aC(p),ae="rtl"===I,le=function(){var ne=qe(function*(){try{yield p.abortListObjectSearch(Bh)}finally{O("")}});return function(){return ne.apply(this,arguments)}}();z.useEffect(()=>b?()=>le():()=>{},[b]),z.useEffect(()=>(u.on("deactivated",le),()=>{u.removeListener&&u.removeListener("deactivated",le)}),[]),z.useEffect(()=>{if(L&&P.current){const ne=T.length-1;P.current.setSelectionRange(ne,ne),F(!1)}},[L,P.current]),z.useEffect(()=>{X("inputText",T)},[T]);const oe=function(){var ne=qe(function*(){let se;const he=i1(T),B=yield p.searchListObjectFor(Bh,he);return f.selectDisabled()?B:(B&&he.length&&Q("listCount")>0&&(se=p.acceptListObjectSearch(Bh,!0),u.selectionsMade=!0,f.clearItemStates(!1),O("")),se)});return function(){return ne.apply(this,arguments)}}(),K=()=>{var ne;null===(ne=P.current)||void 0===ne||ne.focus()},U=()=>{le(),K()};return z.useImperativeHandle(o,()=>({focus(){K()}})),b&&!1!==D?Y.createElement(CC,{styles:A,dense:y,isRtl:ae,startAdornment:Y.createElement(hb,{position:"start",sx:{marginLeft:y?"8px":"".concat(9,"px")}},Y.createElement(r1,{size:y?"small":"normal"})),endAdornment:Y.createElement(hb,{position:"end",sx:{marginLeft:0}},""!==T&&Y.createElement(DC,{tabIndex:0,ref:q,title:$,"aria-label":$,onClick:U,onKeyDown:ne=>{const se=ne.currentTarget.closest(".listbox-container");switch(ne.key){case"Enter":U();break;case"Tab":ne.shiftKey?K():Uc(se);break;default:return}ne.preventDefault(),ne.stopPropagation()}},Y.createElement(xC,{size:y?"small":"normal"}))),className:"search",inputRef:P,size:"small",fullWidth:!0,placeholder:M.get("Listbox.Search"),value:T,onFocus:()=>{E&&(O("**"),F(!0)),_&&!f.selectDisabled()&&!u.isModal()&&u.begin("/qListObjectDef")},onChange:(ne=qe(function*(se){const he=i1(se.target.value);return O(he),he.length?p.searchListObjectFor(Bh,he):le()}),function(he){return ne.apply(this,arguments)}),onKeyDown:function(){var ne=qe(function*(se){const{currentTarget:he}=se,B=he.closest(".listbox-container");switch(se.key){case"Enter":oe();break;case"Escape":if(Uc(B),u.cancel(),a)return;break;case"Tab":se.shiftKey?Fd(B)||g.focusSelection():q.current?q.current.focus():Uc(B);break;case"f":case"F":if(!se.ctrlKey&&!se.metaKey)return;C&&(C(),Uc(B));break;default:return}se.preventDefault(),se.stopPropagation()});return function(he){return ne.apply(this,arguments)}}(),autoFocus:x,inputProps:{tabIndex:g.innerTabStops?0:-1,"data-testid":"search-input-field","aria-label":M.get("Listbox.Search.ScreenReaderInstructions")}}):null;var ne});function Om(i){if(!i.session)return[];const{selectionStore:o}=z.useContext(sr),[a]=o.useAppSelectionsStore(),u=i?i.id:null;let f=a.get(u);return z.useEffect(()=>{i&&!f&&(f=function(p){let{app:g,selectionStore:y}=p;const b="".concat(g.id),{modalObjectStore:x,appModalStore:_}=y,E=function(){var C=qe(function*(){let A=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const{model:M,objectSelections:T}=x.get(b)||{};M&&(yield M.endSelections(A),x.clear(b),T.emit("deactivated"))});return function(){return C.apply(this,arguments)}}(),D={begin:(C=qe(function*(A){var M;let{model:T,paths:O,accept:L=!0,objectSelections:F}=A;if(F===(null===(M=x.get(b))||void 0===M?void 0:M.objectSelections))return;E(L),x.set(b,{model:T,objectSelections:F});const P=Array.isArray(O)?O:[O],q=function(){var $=qe(function*(Q){try{yield T.beginSelections(P),x.set(b,{model:T,objectSelections:F})}catch(X){6003!==X.code||Q?x.clear(b):(yield g.abortModal(L),q(!0))}});return function(X){return $.apply(this,arguments)}}();yield q()}),function(M){return C.apply(this,arguments)}),end:E};var C;return _.set(b,D),{model:g,isInModal:()=>!!x.get(b),isModal(C){var A;return C?(null===(A=x.get(b))||void 0===A?void 0:A.objectSelections)===C:!!x.get(b)},forward:()=>D.end().then(()=>g.forward()),back:()=>D.end().then(()=>g.back()),clear:()=>D.end().then(()=>g.clearAll()),clearField(C){let A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$";return D.end().then(()=>g.getField(C,A).then(M=>M.clear()))}}}({app:i,selectionStore:o}),a.set(u,f),a.dispatch(!0))},[i]),[f]}function Vd(i){return Object.keys(ui.prototype).forEach(o=>{i[o]=ui.prototype[o]}),ui.init(i),i}const kC=i=>{let o,{appSelections:a,appModal:u,model:f}=i,p=!1,g=!1;const y={id:f.id,setLayout(b){o=b},begin(b){const x=(()=>{let _=!1;return{isPrevented:()=>_,preventDefault:()=>{_=!0}}})();return this.emit("activate",x),x.isPrevented()?Promise.resolve():(p=!0,this.emit("activated"),u.begin({model:f,paths:b,accept:!0,objectSelections:y}))},clear(){return g=!1,this.emit("cleared"),o.qListObject?f.clearSelections("/qListObjectDef"):f.resetMadeSelections()},confirm(){return g=!1,p=!1,this.emit("confirmed"),this.emit("deactivated"),u.end(!0)},cancel(){return g=!1,p=!1,this.emit("canceled"),this.emit("deactivated"),u.end(!1)},select(b){var x=this;return qe(function*(){const _=x.begin([b.params[0]]);if(!a.isModal())return!1;yield _;const E=yield f[b.method](...b.params);return g="resetMadeSelections"!==b.method,!!E||(f.resetMadeSelections(),!1)})()},canClear:()=>o&&o.qListObject&&o.qListObject.qDimensionInfo?!o.qListObject.qDimensionInfo.qLocked&&!o.qListObject.qDimensionInfo.qIsOneAndOnlyOne:g,canConfirm:()=>o&&o.qListObject&&o.qListObject.qDimensionInfo?!o.qListObject.qDimensionInfo.qLocked:g,canCancel:()=>!(o&&o.qListObject&&o.qListObject.qDimensionInfo&&o.qListObject.qDimensionInfo.qLocked),isActive:()=>p,isModal:()=>a.isModal(y),goModal:b=>u.begin({model:f,paths:b,accept:!1,objectSelections:y}),noModal:function(){return u.end(arguments.length>0&&void 0!==arguments[0]&&arguments[0])}};return Vd(y),y};function Lm(i,o,a,u){const f=Array.isArray(a)?a:[a],[p]=Om(i),[g]=Vo(o),{appModalStore:y}=z.useContext(sr).selectionStore,b=y.get(i.id),[x,_]=z.useState();return z.useEffect(()=>{p&&o&&!x&&_(kC({appSelections:p,appModal:b,model:o}))},[p,o]),z.useEffect(()=>{if(!x)return()=>{};const{activateClickOut:E,deactivateClickOut:D}=(i=>{let{elements:o,objectSelections:a,options:u={}}=i;const f=function(p){let{elements:g,handleClickOutside:y}=p;return b=>{if(!document.contains(b.target))return;const x=g.map(_=>"string"==typeof _?document.querySelector(_):null==_?void 0:_.current).filter(_=>!!_&&!!document.contains(_));x.length&&!x.some(_=>_.contains(b.target))&&y(b)}}({elements:o,handleClickOutside:()=>a.confirm.call(a)});return{activateClickOut(){var p;document.addEventListener("mousedown",f),null==u||null===(p=u.onSelectionActivated)||void 0===p||p.call(u)},deactivateClickOut(){var p;document.removeEventListener("mousedown",f),null==u||null===(p=u.onSelectionDeactivated)||void 0===p||p.call(u)}}})({elements:f,objectSelections:x,options:u});return x.addListener("activated",E),x.addListener("deactivated",D),()=>{x.isActive()&&x.confirm(),x.removeListener("activated",E),x.removeListener("deactivated",D)}},[x]),z.useEffect(()=>{x&&x.setLayout(g)},[x,g]),[x]}function s1(){const i=de(de({itemStates:{},ignoreSelectionState:!1,selectedInEngine:[],enginePages:[],setPages:void 0,lastRowCount:void 0,lastApprMaxGlyphCount:void 0,selectDisabled:void 0},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),{},{update(o){var a,u;let{setPages:f,pages:p,isSingleSelect:g,selectDisabled:y,layout:b}=o;this.setPages=f,this.lastRowCount===b.qListObject.qSize.qcy&&this.lastApprMaxGlyphCount===b.qListObject.qDimensionInfo.qApprMaxGlyphCount||(this.lastRowCount=b.qListObject.qSize.qcy,this.lastApprMaxGlyphCount=b.qListObject.qDimensionInfo.qApprMaxGlyphCount,this.clearItemStates(!1)),i.enginePages!==p&&void 0!==p&&(i.enginePages=null!=p?p:[],i.selectedInEngine=IE(p),i.selectableValuesUpdating=!1,i.triggerStateChanged()),i.isSingleSelect=g,i.selectDisabled=y||i.selectDisabled,i.isDimCalculated=null!==(a=null==b||null===(u=b.qListObject)||void 0===u||null===(u=u.qDimensionInfo)||void 0===u?void 0:u.qIsCalculated)&&void 0!==a&&a},allowedToSelect:()=>!(i.selectDisabled()||i.isDimCalculated&&i.selectableValuesUpdating),setSelectableValuesUpdating(){i.selectableValuesUpdating=!0},useClientItemState:o=>i.ignoreSelectionState||o in i.itemStates,isSelected:o=>i.useClientItemState(o)?!!i.itemStates[o]:i.selectedInEngine.includes(o),getState(o){const{qElemNumber:a,qState:u}=o;return i.useClientItemState(a)?i.itemStates[a]?"XS"===u?"XS":"S":"S"===u||"XS"===u?"A":u:u},updateItemNoEvents(o,a,u){const f=i.isSelected(o);f&&!a?i.itemStates[o]=!1:f||(null==u||u.push(o),i.itemStates[o]=!0)},triggerStateChanged(){if(this.setPages){const o=i.applySelectionsOnPages(i.enginePages);this.setPages(o)}},applySelectionsOnPages:o=>o.map(a=>{const u=a.qMatrix.map(f=>{const[p]=f,g=i.getState(p);return[de(de({},p),{},{qState:g}),...f.slice(1)]});return de(de({},a),{},{qMatrix:u})}),updateItem(o,a,u){i.updateItemNoEvents(o,a,u),i.triggerStateChanged()},updateItems(o,a,u){o.forEach(f=>{i.updateItemNoEvents(f,a,u)}),i.triggerStateChanged()},clearItemStates(o){i.itemStates={},i.ignoreSelectionState=o}});return i}const ea=function(i,o){var a;return null!==(a=null==i?void 0:i[o])&&void 0!==a?a:arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0};function RC(i){const o=(null==i?void 0:i.qListObject.qDimensionInfo.qStateCounts)||{};return ea(o,"qSelected",0)+ea(o,"qSelectedExcluded",0)+ea(o,"qLocked",0)+ea(o,"qLockedExcluded",0)>0}function zh(i){return"number"==typeof i.r&&"number"==typeof i.g&&"number"==typeof i.b&&"number"==typeof i.a}function Kc(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];if(1===o.length&&zh(o[0]))return(o[0].r<<16)+(o[0].g<<8)+o[0].b;var u=0,f=0,p=0;if(1===o.length&&"string"==typeof o[0]){var g,y=o[0];(g=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(y))?(u=parseInt(g[1],10),f=parseInt(g[2],10),p=parseInt(g[3],10)):(g=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(y))?(u=parseInt(g[1],16),f=parseInt(g[2],16),p=parseInt(g[3],16)):(g=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(y))&&(u=parseInt(g[1]+g[1],16),f=parseInt(g[2]+g[2],16),p=parseInt(g[3]+g[3],16))}return(u<<16)+(f<<8)+p}function TL(i,o,a){return(o="symbol"==typeof(f=function(p,g){if("object"!=typeof p||!p)return p;var y=p[Symbol.toPrimitive];if(void 0!==y){var b=y.call(p,"string");if("object"!=typeof b)return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(p)}(o))?f:f+"")in i?Object.defineProperty(i,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[o]=a,i;var f}function bi(i,o){var a=Object.keys(i);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(i);o&&(u=u.filter(function(f){return Object.getOwnPropertyDescriptor(i,f).enumerable})),a.push.apply(a,u)}return a}function OL(i){for(var o=1;o<arguments.length;o++){var a=null!=arguments[o]?arguments[o]:{};o%2?bi(Object(a),!0).forEach(function(u){TL(i,u,a[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(a)):bi(Object(a)).forEach(function(u){Object.defineProperty(i,u,Object.getOwnPropertyDescriptor(a,u))})}return i}var qh={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}},a1="qcm-color";function Qc(){for(var i,o=arguments.length,a=new Array(o),u=0;u<o;u++)a[u]=arguments[u];var f,p,g,y,b,x,_,E,D,I={type:a1,r:0,g:0,b:0,a:1,l:void 0,invalid:!1,spaces:{}},C=0,A=0,M=0,T=1;if((null===(i=a[0])||void 0===i?void 0:i.type)===a1){var O=a[0];C=O.r,A=O.g,M=O.b,T=O.a,I.invalid=a[0].invalid,I.spaces=OL({},a[0].spaces)}else if(a.length<3)if("string"==typeof a[0]){var L,F=a[0];if(L=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(F))C=parseInt(L[1],10),A=parseInt(L[2],10),M=parseInt(L[3],10);else if(L=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(F))C=parseInt(L[1],10),A=parseInt(L[2],10),M=parseInt(L[3],10),T=parseFloat(L[4]);else if(L=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(F))T=parseInt(L[1],10)/255,C=parseInt(L[2],10),A=parseInt(L[3],10),M=parseInt(L[4],10);else if(L=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(F))C=parseInt(L[1],16),A=parseInt(L[2],16),M=parseInt(L[3],16),T=1;else if(L=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(F))C=parseInt(L[1]+L[1],16),A=parseInt(L[2]+L[2],16),M=parseInt(L[3]+L[3],16),T=1;else if(L=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(F)){f=parseFloat(L[1]),p=parseFloat(L[3]),y=parseFloat(L[5]),p=(p/=100)<0?0:p>1?1:p,_=(f=(f%=360)<0?0:f>360?360:f)/60,E=(x=(y=(y/=100)<0?0:y>1?1:y)<=.5?2*y*p:(2-2*y)*p)*(1-Math.abs(_%2-1));var P=[];switch(_=Math.floor(_)){case 0:P=[x,E,0];break;case 1:P=[E,x,0];break;case 2:P=[0,x,E];break;case 3:P=[0,E,x];break;case 4:P=[E,0,x];break;case 5:P=[x,0,E];break;default:P=[0,0,0]}C=P[0]+(D=y-.5*x),A=P[1]+D,M=P[2]+D,C=Math.round(255*C),A=Math.round(255*A),M=Math.round(255*M),T=1}else if(L=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(F)){f=parseFloat(L[1]),p=parseFloat(L[3]),y=parseFloat(L[5]),T=parseFloat(L[7]),p=(p/=100)<0?0:p>1?1:p,_=(f=(f%=360)<0?0:f>360?360:f)/60,E=(x=(y=(y/=100)<0?0:y>1?1:y)<=.5?2*y*p:(2-2*y)*p)*(1-Math.abs(_%2-1));var q=[];switch(_=Math.floor(_)){case 0:q=[x,E,0];break;case 1:q=[E,x,0];break;case 2:q=[0,x,E];break;case 3:q=[0,E,x];break;case 4:q=[E,0,x];break;case 5:q=[x,0,E];break;default:q=[0,0,0]}C=q[0]+(D=y-.5*x),A=q[1]+D,M=q[2]+D,C=Math.round(255*C),A=Math.round(255*A),M=Math.round(255*M)}else if(L=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(F)){f=parseFloat(L[1]),p=parseFloat(L[3]),b=parseFloat(L[5]),_=(f=(f%=360)<0?0:f>360?360:f)/60,E=(x=(b=(b/=100)<0?0:b>1?1:b)*(p=(p/=100)<0?0:p>1?1:p))*(1-Math.abs(_%2-1));var $=[];switch(_=Math.floor(_)){case 0:$=[x,E,0];break;case 1:$=[E,x,0];break;case 2:$=[0,x,E];break;case 3:$=[0,E,x];break;case 4:$=[E,0,x];break;case 5:$=[x,0,E];break;default:$=[0,0,0]}C=$[0]+(D=b-x),A=$[1]+D,M=$[2]+D,C=Math.round(255*C),A=Math.round(255*A),M=Math.round(255*M),T=1}else if(qh[F.toLowerCase()]){g=F.toLowerCase();var Q=qh[g];C=Q.r,A=Q.g,M=Q.b,T="number"==typeof qh[g].a?qh[g].a:1}else I.invalid=!0}else"number"==typeof a[0]&&a[0]>=0&&"argb"===a[1]?(T=(4278190080&a[0])>>>24,T/=255,C=(16711680&a[0])>>16,A=(65280&a[0])>>8,M=255&a[0]):"number"==typeof a[0]&&a[0]>=0?(C=(16711680&a[0])>>16,A=(65280&a[0])>>8,M=255&a[0]):I.invalid=!0;else a.length>=3&&a.length<=4?(C=a[0],A=a[1],M=a[2],T=arguments.length>=4?a[3]:1):I.invalid=!0;return Number.isNaN(+C+A+M+T)&&(I.invalid=!0),I.r=Math.floor(C),I.g=Math.floor(A),I.b=Math.floor(M),I.a=T,I.l=y,I}function Je(i){var o,a,u;if(zh(i))return o=i.r.toString(16),a=i.g.toString(16),u=i.b.toString(16),1===o.length&&(o="0".concat(o)),1===a.length&&(a="0".concat(a)),1===u.length&&(u="0".concat(u)),"#".concat([o,a,u].join(""));var f="string"==typeof i?Kc(i):i;return o=((16711680&f)>>16).toString(16),a=((65280&f)>>8).toString(16),u=(255&f).toString(16),1===o.length&&(o="0".concat(o)),1===a.length&&(a="0".concat(a)),1===u.length&&(u="0".concat(u)),"#".concat(o).concat(a).concat(u)}function IC(i){var o,a,u=0,f="string"==typeof i?Qc(i):i,p=f.r/255,g=f.g/255,y=f.b/255,b=Math.max(p,g,y),x=Math.min(p,g,y),_=b;if(b===x)o=0,u=0;else{switch(o=0==(a=b-x)?0:a/_,b){case p:u=(g-y)/a+(g<y?6:0);break;case g:u=(y-p)/a+2;break;case y:u=(p-g)/a+4}u/=6}return{h:360*u%360,s:100*o,v:100*_}}function MC(i){if(zh(i))return"rgb(".concat([i.r,i.g,i.b].join(", "),")");var o="string"==typeof i?Kc(i):i,a=(65280&o)>>8,u=255&o;return"rgb(".concat((16711680&o)>>16,", ").concat(a,", ").concat(u,")")}function l1(i,o){return zh(i)?"rgba(".concat([i.r,i.g,i.b,i.a].join(", "),")"):l1(Qc(i))}function Vh(i){return zh(i)?1===i.a?MC(i):l1(i):Vh(Qc(i))}var c1,$h,$d=function(i){var o=i/255;return o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4)};function ar(i){return.2126*$d(i.r)+.7152*$d(i.g)+.0722*$d(i.b)}function Hh(){var i=Qc.apply(void 0,arguments),o={type:i.type,r:i.r,g:i.g,b:i.b,a:i.a,invalid:i.invalid,spaces:i.spaces},a=function(){return o.spaces.hsla||(o.spaces.hsla=function(f){var p,g,y=0,b="string"==typeof f?Qc(f):f,x=b.r/255,_=b.g/255,E=b.b/255,D=b.a,I=Math.max(x,_,E),C=Math.min(x,_,E),A=(I+C)/2;if(I===C)p=0,y=0;else{switch(g=I-C,p=A>.5?g/(2-I-C):g/(I+C),I){case x:y=(_-E)/g+(_<E?6:0);break;case _:y=(E-x)/g+2;break;case E:y=(x-_)/g+4}y/=6}return"hsla(".concat(360*y,", ").concat(100*p,", ").concat(100*A,", ").concat(D,")")}(o)),o.spaces.hsla},u=function(f){var p=a(),g=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(p),y=parseFloat(g[1]),b=parseFloat(g[3]),x=parseFloat(g[7]),_=parseFloat(g[5]),E=Math.max(0,Math.min(_+f,100));return"hsla(".concat(y,", ").concat(b,", ").concat(E,", ").concat(x,")")};return{get type(){return o.type},isInvalid:function(){return o.invalid},get r(){return o.r},get g(){return o.g},get b(){return o.b},get a(){return o.a},getR:function(){return o.r},getG:function(){return o.g},getB:function(){return o.b},getAlpha:function(){return o.a},setAlpha:function(f){o.a=f,o.spaces={}},isEqualTo:function(f){var p=f.type===o.type?f:Qc(f);return p.r===o.r&&p.g===o.g&&p.b===o.b&&p.a===o.a},isDark:function(){return function(){var f=Qc.apply(void 0,arguments);return f.invalid||ar(f)<.4}(o)},getRGB:function(){return o.spaces.rgb||(o.spaces.rgb=MC(o)),o.spaces.rgb},getRGBA:function(){return o.spaces.rgba||(o.spaces.rgba=l1(o)),o.spaces.rgba},getString:function(){return o.spaces.string||(o.spaces.string=Vh(o)),o.spaces.string},getHex:function(){return o.spaces.hex||(o.spaces.hex=Je(o)),o.spaces.hex},getHSL:function(){return o.spaces.hsl||(o.spaces.hsl=function(f){var p,g,y=0,b="string"==typeof f?Qc(f):f,x=b.r/255,_=b.g/255,E=b.b/255,D=Math.max(x,_,E),I=Math.min(x,_,E),C=(D+I)/2;if(D===I)p=0,y=0;else{switch(g=D-I,p=C>.5?g/(2-D-I):g/(D+I),D){case x:y=(_-E)/g+(_<E?6:0);break;case _:y=(E-x)/g+2;break;case E:y=(x-_)/g+4}y/=6}return"hsl(".concat(360*y,", ").concat(100*p,", ").concat(100*C,")")}(o)),o.spaces.hsl},getHSLA:a,getShiftedHSLA:u,getHSV:function(){return o.spaces.hsv||(o.spaces.hsv=(y=(p=IC(o)).s,b=p.v,"hsv(".concat(p.h,", ").concat(y,", ").concat(b,")"))),o.spaces.hsv;var p,y,b},getHSVObject:function(){return o.spaces.hsvObject||(o.spaces.hsvObject=IC(o)),o.spaces.hsvObject},blend:function(f,p){var g=Math.floor(o.r+(f.r-o.r)*p),y=Math.floor(o.g+(f.g-o.g)*p),b=Math.floor(o.b+(f.b-o.b)*p),x=Math.floor(o.a+(f.getAlpha()-o.a)*p);return"rgba(".concat([g,y,b,x].join(", "),")")},getBrightenedColor:function(){return Hh(u(18*(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)))},getDarkenedColor:function(){return Hh(u(18*-(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)))}}}function u1(i,o){if(i&&o){var a=ar(i),u=ar(o);return a>u?(a+.05)/(u+.05):(u+.05)/(a+.05)}}function TC(i,o){var a=Hh("#FFFFFF"),u=Hh(i),f=Hh(o);if(u.isInvalid()||f.isInvalid()||u.getAlpha()<1||f.getAlpha()<1)return o;var p=u1(a,u),g=u1(f,u),y=p>g||p>4.5;return!y&&g>3?o:y?"#FFFFFF":"#000000"}var lM=function(){if($h)return c1;$h=1;var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=Object.defineProperty,u=Object.getOwnPropertyDescriptor,f=function(b){return"function"==typeof Array.isArray?Array.isArray(b):"[object Array]"===o.call(b)},p=function(b){if(!b||"[object Object]"!==o.call(b))return!1;var x,_=i.call(b,"constructor"),E=b.constructor&&b.constructor.prototype&&i.call(b.constructor.prototype,"isPrototypeOf");if(b.constructor&&!_&&!E)return!1;for(x in b);return void 0===x||i.call(b,x)},g=function(b,x){a&&"__proto__"===x.name?a(b,x.name,{enumerable:!0,configurable:!0,value:x.newValue,writable:!0}):b[x.name]=x.newValue},y=function(b,x){if("__proto__"===x){if(!i.call(b,x))return;if(u)return u(b,x).value}return b[x]};return c1=function b(){var x,_,E,D,I,C,A=arguments[0],M=1,T=arguments.length,O=!1;for("boolean"==typeof A&&(O=A,A=arguments[1]||{},M=2),(null==A||"object"!=typeof A&&"function"!=typeof A)&&(A={});M<T;++M)if(null!=(x=arguments[M]))for(_ in x)E=y(A,_),A!==(D=y(x,_))&&(O&&D&&(p(D)||(I=f(D)))?(I?(I=!1,C=E&&f(E)?E:[]):C=E&&p(E)?E:{},g(A,{name:_,newValue:b(O,C,D)})):void 0!==D&&g(A,{name:_,newValue:D}));return A},c1}();function Hd(i,o,a){i.prototype=o.prototype=a,a.constructor=i}function Gh(i,o){var a=Object.create(i.prototype);for(var u in o)a[u]=o[u];return a}function Vl(){}!function(i){i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")}(lM);var Uh=1/.7,Gd="\\s*([+-]?\\d+)\\s*",Wh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ta="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Kh=/^#([0-9a-f]{3,8})$/,cM=new RegExp(`^rgb\\(${Gd},${Gd},${Gd}\\)$`),uM=new RegExp(`^rgb\\(${ta},${ta},${ta}\\)$`),dM=new RegExp(`^rgba\\(${Gd},${Gd},${Gd},${Wh}\\)$`),Pm=new RegExp(`^rgba\\(${ta},${ta},${ta},${Wh}\\)$`),OC=new RegExp(`^hsl\\(${Wh},${ta},${ta}\\)$`),LC=new RegExp(`^hsla\\(${Wh},${ta},${ta},${Wh}\\)$`),d1={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 PC(){return this.rgb().formatHex()}function Ud(){return this.rgb().formatRgb()}function Yc(i){var o,a;return i=(i+"").trim().toLowerCase(),(o=Kh.exec(i))?(a=o[1].length,o=parseInt(o[1],16),6===a?FC(o):3===a?new si(o>>8&15|o>>4&240,o>>4&15|240&o,(15&o)<<4|15&o,1):8===a?Fm(o>>24&255,o>>16&255,o>>8&255,(255&o)/255):4===a?Fm(o>>12&15|o>>8&240,o>>8&15|o>>4&240,o>>4&15|240&o,((15&o)<<4|15&o)/255):null):(o=cM.exec(i))?new si(o[1],o[2],o[3],1):(o=uM.exec(i))?new si(255*o[1]/100,255*o[2]/100,255*o[3]/100,1):(o=dM.exec(i))?Fm(o[1],o[2],o[3],o[4]):(o=Pm.exec(i))?Fm(255*o[1]/100,255*o[2]/100,255*o[3]/100,o[4]):(o=OC.exec(i))?fM(o[1],o[2]/100,o[3]/100,1):(o=LC.exec(i))?fM(o[1],o[2]/100,o[3]/100,o[4]):d1.hasOwnProperty(i)?FC(d1[i]):"transparent"===i?new si(NaN,NaN,NaN,0):null}function FC(i){return new si(i>>16&255,i>>8&255,255&i,1)}function Fm(i,o,a,u){return u<=0&&(i=o=a=NaN),new si(i,o,a,u)}function NC(i){return i instanceof Vl||(i=Yc(i)),i?new si((i=i.rgb()).r,i.g,i.b,i.opacity):new si}function Nm(i,o,a,u){return 1===arguments.length?NC(i):new si(i,o,a,null==u?1:u)}function si(i,o,a,u){this.r=+i,this.g=+o,this.b=+a,this.opacity=+u}function f1(){return`#${Xc(this.r)}${Xc(this.g)}${Xc(this.b)}`}function jC(){const i=Qh(this.opacity);return`${1===i?"rgb(":"rgba("}${Zc(this.r)}, ${Zc(this.g)}, ${Zc(this.b)}${1===i?")":`, ${i})`}`}function Qh(i){return isNaN(i)?1:Math.max(0,Math.min(1,i))}function Zc(i){return Math.max(0,Math.min(255,Math.round(i)||0))}function Xc(i){return((i=Zc(i))<16?"0":"")+i.toString(16)}function fM(i,o,a,u){return u<=0?i=o=a=NaN:a<=0||a>=1?i=o=NaN:o<=0&&(i=NaN),new na(i,o,a,u)}function hM(i){if(i instanceof na)return new na(i.h,i.s,i.l,i.opacity);if(i instanceof Vl||(i=Yc(i)),!i)return new na;if(i instanceof na)return i;var o=(i=i.rgb()).r/255,a=i.g/255,u=i.b/255,f=Math.min(o,a,u),p=Math.max(o,a,u),g=NaN,y=p-f,b=(p+f)/2;return y?(g=o===p?(a-u)/y+6*(a<u):a===p?(u-o)/y+2:(o-a)/y+4,y/=b<.5?p+f:2-p-f,g*=60):y=b>0&&b<1?0:g,new na(g,y,b,i.opacity)}function na(i,o,a,u){this.h=+i,this.s=+o,this.l=+a,this.opacity=+u}function pM(i){return(i=(i||0)%360)<0?i+360:i}function Yh(i){return Math.max(0,Math.min(1,i||0))}function Wd(i,o,a){return 255*(i<60?o+(a-o)*i/60:i<180?a:i<240?o+(a-o)*(240-i)/60:o)}Hd(Vl,Yc,{copy(i){return Object.assign(new this.constructor,this,i)},displayable(){return this.rgb().displayable()},hex:PC,formatHex:PC,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return hM(this).formatHsl()},formatRgb:Ud,toString:Ud}),Hd(si,Nm,Gh(Vl,{brighter(i){return i=null==i?Uh:Math.pow(Uh,i),new si(this.r*i,this.g*i,this.b*i,this.opacity)},darker(i){return i=null==i?.7:Math.pow(.7,i),new si(this.r*i,this.g*i,this.b*i,this.opacity)},rgb(){return this},clamp(){return new si(Zc(this.r),Zc(this.g),Zc(this.b),Qh(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:f1,formatHex:f1,formatHex8:function(){return`#${Xc(this.r)}${Xc(this.g)}${Xc(this.b)}${Xc(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:jC,toString:jC})),Hd(na,function(i,o,a,u){return 1===arguments.length?hM(i):new na(i,o,a,null==u?1:u)},Gh(Vl,{brighter(i){return i=null==i?Uh:Math.pow(Uh,i),new na(this.h,this.s,this.l*i,this.opacity)},darker(i){return i=null==i?.7:Math.pow(.7,i),new na(this.h,this.s,this.l*i,this.opacity)},rgb(){var i=this.h%360+360*(this.h<0),o=isNaN(i)||isNaN(this.s)?0:this.s,a=this.l,u=a+(a<.5?a:1-a)*o,f=2*a-u;return new si(Wd(i>=240?i-240:i+120,f,u),Wd(i,f,u),Wd(i<120?i+240:i-120,f,u),this.opacity)},clamp(){return new na(pM(this.h),Yh(this.s),Yh(this.l),Qh(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 i=Qh(this.opacity);return`${1===i?"hsl(":"hsla("}${pM(this.h)}, ${100*Yh(this.s)}%, ${100*Yh(this.l)}%${1===i?")":`, ${i})`}`}}));const gM=Math.PI/180,mM=180/Math.PI,h1=4/29,Jc=6/29,BC=3*Jc*Jc;function zC(i){if(i instanceof ra)return new ra(i.l,i.a,i.b,i.opacity);if(i instanceof Ya)return eu(i);i instanceof si||(i=NC(i));var o,a,u=m1(i.r),f=m1(i.g),p=m1(i.b),g=p1((.2225045*u+.7168786*f+.0606169*p)/1);return u===f&&f===p?o=a=g:(o=p1((.4360747*u+.3850649*f+.1430804*p)/.96422),a=p1((.0139322*u+.0971045*f+.7141733*p)/.82521)),new ra(116*g-16,500*(o-g),200*(g-a),i.opacity)}function ra(i,o,a,u){this.l=+i,this.a=+o,this.b=+a,this.opacity=+u}function p1(i){return i>.008856451679035631?Math.pow(i,.3333333333333333):i/BC+h1}function g1(i){return i>Jc?i*i*i:BC*(i-h1)}function jm(i){return 255*(i<=.0031308?12.92*i:1.055*Math.pow(i,.4166666666666667)-.055)}function m1(i){return(i/=255)<=.04045?i/12.92:Math.pow((i+.055)/1.055,2.4)}function Ya(i,o,a,u){this.h=+i,this.c=+o,this.l=+a,this.opacity=+u}function eu(i){if(isNaN(i.h))return new ra(i.l,0,0,i.opacity);var o=i.h*gM;return new ra(i.l,Math.cos(o)*i.c,Math.sin(o)*i.c,i.opacity)}Hd(ra,function(i,o,a,u){return 1===arguments.length?zC(i):new ra(i,o,a,null==u?1:u)},Gh(Vl,{brighter(i){return new ra(this.l+18*(null==i?1:i),this.a,this.b,this.opacity)},darker(i){return new ra(this.l-18*(null==i?1:i),this.a,this.b,this.opacity)},rgb(){var i=(this.l+16)/116,o=isNaN(this.a)?i:i+this.a/500,a=isNaN(this.b)?i:i-this.b/200;return new si(jm(3.1338561*(o=.96422*g1(o))-1.6168667*(i=1*g1(i))-.4906146*(a=.82521*g1(a))),jm(-.9787684*o+1.9161415*i+.033454*a),jm(.0719453*o-.2289914*i+1.4052427*a),this.opacity)}})),Hd(Ya,function(i,o,a,u){return 1===arguments.length?function(f){if(f instanceof Ya)return new Ya(f.h,f.c,f.l,f.opacity);if(f instanceof ra||(f=zC(f)),0===f.a&&0===f.b)return new Ya(NaN,0<f.l&&f.l<100?0:NaN,f.l,f.opacity);var p=Math.atan2(f.b,f.a)*mM;return new Ya(p<0?p+360:p,Math.sqrt(f.a*f.a+f.b*f.b),f.l,f.opacity)}(i):new Ya(i,o,a,null==u?1:u)},Gh(Vl,{brighter(i){return new Ya(this.h,this.c,this.l+18*(null==i?1:i),this.opacity)},darker(i){return new Ya(this.h,this.c,this.l-18*(null==i?1:i),this.opacity)},rgb(){return eu(this).rgb()}}));var qC=i=>()=>i;function y1(i,o){var u,f,a=o-i;return a?(u=i,f=a,function(p){return u+p*f}):qC(isNaN(i)?o:i)}!function i(o){var f,a=1==(f=+(f=o))?y1:function(p,g){return g-p?(y=p,b=g,x=f,y=Math.pow(y,x),b=Math.pow(b,x)-y,x=1/x,function(_){return Math.pow(y+_*b,x)}):qC(isNaN(p)?g:p);var y,b,x};function u(f,p){var g=a((f=Nm(f)).r,(p=Nm(p)).r),y=a(f.g,p.g),b=a(f.b,p.b),x=y1(f.opacity,p.opacity);return function(_){return f.r=g(_),f.g=y(_),f.b=b(_),f.opacity=x(_),f+""}}return u.gamma=i,u}(1);var Zh="center",v1="bottom";function $C(i){var o=0,a=i.children,u=a&&a.length;if(u)for(;--u>=0;)o+=a[u].value;else o=1;i.value=o}function HC(i,o){i instanceof Map?(i=[void 0,i],void 0===o&&(o=yM)):void 0===o&&(o=b1);for(var a,u,f,p,g,y=new Bm(i),b=[y];a=b.pop();)if((f=o(a.data))&&(g=(f=Array.from(f)).length))for(a.children=f,p=g-1;p>=0;--p)b.push(u=f[p]=new Bm(f[p])),u.parent=a,u.depth=a.depth+1;return y.eachBefore(UC)}function b1(i){return i.children}function yM(i){return Array.isArray(i)?i[1]:null}function GC(i){void 0!==i.data.value&&(i.value=i.data.value),i.data=i.data.data}function UC(i){var o=0;do{i.height=o}while((i=i.parent)&&i.height<++o)}function Bm(i){this.data=i,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:Zh,condition:function(i){var o=i.layoutService;if(!o)return!1;var a=o.meta.size;return a.x*a.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:Zh,condition:function(i){var o=i.layoutService;return!!o&&o.getHyperCubeValue("qMeasureInfo").every(function(a){return"NaN"===a.qMin&&"NaN"===a.qMax})}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:Zh,condition:function(i){var o=i.layoutService;if(!o||!o.meta.isContinuous)return!1;var a=o.getHyperCubeValue("qDimensionInfo.0");return a&&(a.qMax<a.qMin||"NaN"===a.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:Zh},{key:"DataRangeIncludingZero",alignment:v1},{key:"LimitedData",alignment:v1},{key:"NegativeOrZeroValues",alignment:v1}].reduce(function(i,o){return i[o.key]=o,i},{}),Bm.prototype=HC.prototype={constructor:Bm,count:function(){return this.eachAfter($C)},each:function(i,o){let a=-1;for(const u of this)i.call(o,u,++a,this);return this},eachAfter:function(i,o){for(var a,u,f,p=this,g=[p],y=[],b=-1;p=g.pop();)if(y.push(p),a=p.children)for(u=0,f=a.length;u<f;++u)g.push(a[u]);for(;p=y.pop();)i.call(o,p,++b,this);return this},eachBefore:function(i,o){for(var a,u,f=this,p=[f],g=-1;f=p.pop();)if(i.call(o,f,++g,this),a=f.children)for(u=a.length-1;u>=0;--u)p.push(a[u]);return this},find:function(i,o){let a=-1;for(const u of this)if(i.call(o,u,++a,this))return u},sum:function(i){return this.eachAfter(function(o){for(var a=+i(o.data)||0,u=o.children,f=u&&u.length;--f>=0;)a+=u[f].value;o.value=a})},sort:function(i){return this.eachBefore(function(o){o.children&&o.children.sort(i)})},path:function(i){for(var o=this,a=function(p,g){if(p===g)return p;var y=p.ancestors(),b=g.ancestors(),x=null;for(p=y.pop(),g=b.pop();p===g;)x=p,p=y.pop(),g=b.pop();return x}(o,i),u=[o];o!==a;)u.push(o=o.parent);for(var f=u.length;i!==a;)u.splice(f,0,i),i=i.parent;return u},ancestors:function(){for(var i=this,o=[i];i=i.parent;)o.push(i);return o},descendants:function(){return Array.from(this)},leaves:function(){var i=[];return this.eachBefore(function(o){o.children||i.push(o)}),i},links:function(){var i=this,o=[];return i.each(function(a){a!==i&&o.push({source:a.parent,target:a})}),o},copy:function(){return HC(this).eachBefore(GC)},[Symbol.iterator]:function*(){var i,o,a,u,f=this,p=[f];do{for(i=p.reverse(),p=[];f=i.pop();)if(yield f,o=f.children)for(a=0,u=o.length;a<u;++a)p.push(o[a])}while(p.length)}};const vM=/,(?![^(]*\))/,bM=/\s(?![^(]*\))/,w1=/^[0-9]+[a-zA-Z%]+?$/,x1=["none","inset","initial","inherit"],_1=i=>{if(!i)return;const o=i.split(bM).filter(u=>!x1.includes(u.toLowerCase())).at(-1);return!o||"0"===(u=o)||w1.test(u)||x1.includes(o.toLowerCase())?void 0:o;var u},WC=i=>i?i.split(vM).map(o=>o.trim()):[];function zm(i,o,a,u){return a&&u?a.getStyle("object.".concat(u),i,o):a?a.getStyle("",i,o):void 0}function S1(i,o,a,u,f){return i&&u?"none"!==i.color?u.getColorPickerColor(i,true):void 0:zm(o,a,u,f)}const KC={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},xM={"top-left":"top left","top-center":"top center","top-right":"top right","center-left":"center left","center-center":"center center","center-right":"center right","bottom-left":"bottom left","bottom-center":"bottom center","bottom-right":"bottom right"};function E1(i,o){const a=null==i?void 0:i.bgImage;if(a){let u="";if("media"===a.mode||"media"===i.useImage){const g=null==a?void 0:a.mediaUrl,{qUrl:y}=(null==g?void 0:g.qStaticContentUrl)||{};u=y?decodeURIComponent(y):void 0,u=function _M(i,o){return o?function(a){var u;let f,p,g,y;return null!=a&&null!==(u=a.session)&&void 0!==u&&u.config?(f=a.session.config,p=new URL(f.url),y="wss:"===p.protocol,g=y?"https://":"http://",g+p.host):""}(i)+o:void 0}(o,u)}"expression"===a.mode&&(u=a.expressionUrl?decodeURIComponent(a.expressionUrl):void 0);const f=function(g){var y;let b="center center";return null!=g&&null!==(y=g.bgImage)&&void 0!==y&&y.position&&(b=xM[g.bgImage.position]),b}(i),p=function(g){var y;let b=KC.originalSize;const x=null==g||null===(y=g.bgImage)||void 0===y?void 0:y.sizing;return x&&(b=KC[x]),b}(i);return u?{url:u,pos:f,size:p}:void 0}}function qm(i,o,a){const u=null==i?void 0:i.bgColor;return u&&o&&(u.useExpression||u.useColorExpression)?o.validateColor(u.colorExpression):S1(null==u?void 0:u.color,"","backgroundColor",o,a)}function QC(i,o,a){var u,f;const p=zm("shadow","boxShadow",o,a);return((g,y,b)=>{if(g&&x1.includes(g.toLowerCase()))return g.toLowerCase();const x=WC(g);if(1!==x.length)return g;let _=b;if(!_){const D=WC(y);if(1!==D.length)return g;_=_1(D[0])}if(!_)return g;const E=_1(x[0]);return E?g.replace(E,_):"".concat(g," ").concat(_)})((null==i||null===(u=i.shadow)||void 0===u?void 0:u.boxShadow)||p,p,S1(null==i||null===(f=i.shadow)||void 0===f?void 0:f.boxShadowColor,"shadow","boxShadowColor",o,a))}function C1(i,o,a,u){var f;const p=(null==i||null===(f=i.title)||void 0===f?void 0:f[o])||{},g=(b=o,(y=p.fontStyle)&&Array.isArray(y)?y:"main"===b?["bold"]:[]);var y,b;return{fontFamily:p.fontFamily||a.getStyle("object.".concat(u),"title.".concat(o),"fontFamily"),fontSize:p.fontSize||a.getStyle("object.".concat(u),"title.".concat(o),"fontSize"),color:p.color&&"none"!==p.color.color?a.getColorPickerColor(p.color,!0):a.getStyle("object.".concat(u),o,"color"),fontWeight:g.includes("bold")?"bold":"normal",fontStyle:g.includes("italic")?"italic":"normal",textDecoration:g.includes("underline")?"underline":"initial"}}const SM={selected:"#00873D",alternative:"#E4E4E4",excluded:"#A9A9A9",selectedExcluded:"#A9A9A9",possible:"#FFFFFF"},YC=["theme","selections"];function ZC(i){var o,a,u,f,p,g,y,b;let{app:x,themeApi:_,theme:E,components:D=[],checkboxes:I=!1}=i;const C=function(){const oe={};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach(K=>{const U=null==K?void 0:K.key;YC.includes(U)&&(oe[U]=K)}),oe}(D),A=(oe,K)=>_.getStyle("object.listBox",oe,K),M=oe=>(null==oe?void 0:oe.index)>0||null!=oe&&oe.color?_.getColorPickerColor(oe,!1):void 0,T=function(oe){var K,U,ne,se,he;let{getColorPickerColor:B,theme:G,getListboxStyle:Z,overrides:re,checkboxes:te}=oe;const ce=null===(K=re.theme)||void 0===K||null===(K=K.content)||void 0===K?void 0:K.fontColor,ye=B(ce)||Z("content","color")||(null===(U=G.palette)||void 0===U?void 0:U.text.primary),Se=!te&&(null===(ne=null===(se=re.theme)||void 0===se||null===(se=se.content)||void 0===se?void 0:se.useContrastColor)||void 0===ne||ne),Ae=(null===(he=re.selections)||void 0===he?void 0:he.colors)||{},Le=Ne=>{var Ve,Re;const Me="selected"===Ne?"main":Ne,nt="".concat(Ne,"Contrast"),Ge=B(Ae[Ne])||Z("","dataColors.".concat(Ne))||"possible"===Ne&&Z("","backgroundColor")||(null===(Ve=G.palette)||void 0===Ve||null===(Ve=Ve.selected)||void 0===Ve?void 0:Ve[Me])||SM[Ne];return{[Ne]:Ge,[nt]:Se?TC(Ge,ye):ye||(null===(Re=G.palette)||void 0===Re?void 0:Re.selected["".concat(nt,"Text}")])}};return de(de(de(de(de({},Le("selected")),Le("alternative")),Le("excluded")),Le("selectedExcluded")),Le("possible"))}({getColorPickerColor:M,theme:E,getListboxStyle:A,overrides:C,checkboxes:I}),O=C.theme||{},L=M(null===(o=O.header)||void 0===o?void 0:o.fontColor)||A("title.main","color"),F=function(oe){let K,{themeApi:U,themeOverrides:ne}=oe;const se=null==ne?void 0:ne.background;return se&&(K=null!=se&&se.useExpression?qm({bgColor:se},U,"listBox"):U.getColorPickerColor(null==se?void 0:se.color,!1)),K}({themeApi:_,themeOverrides:O}),P=null!==(a=O.background)&&void 0!==a&&a.image?E1({bgImage:O.background.image},x):void 0,q=F||A("","backgroundColor")||E.palette.background.default,$=function(oe,K){const U=Hh(K("","backgroundColor"));return U.setAlpha(.7),U.isInvalid()?oe:U.getRGBA()}(q,A),Q=TC("#fff",A("content","color")),X=(null===(u=O.header)||void 0===u?void 0:u.fontStyle)||{},ae=(null===(f=O.content)||void 0===f?void 0:f.fontStyle)||{},le=(oe,K,U)=>!0===oe&&K||!1===oe&&U||void 0;return{background:{backgroundColor:q,backgroundImage:null==P||!P.url||null!=P&&P.url.startsWith("url(")?void 0:"url('".concat(P.url,"')"),backgroundRepeat:"no-repeat",backgroundSize:null==P?void 0:P.size,backgroundPosition:null==P?void 0:P.pos},header:{color:L,fontSize:(null===(p=O.header)||void 0===p?void 0:p.fontSize)||A("title.main","fontSize"),fontFamily:(null===(g=O.header)||void 0===g?void 0:g.fontFamily)||A("title.main","fontFamily"),fontWeight:le(X.bold,"bold","normal")||A("title.main","fontWeight")||"bold",textDecoration:X.underline?"underline":"initial",fontStyle:le(X.italic,"italic","normal")||A("title.main","fontStyle")||"initial"},content:{backgroundColor:I?void 0:T.possible,color:T.possibleContrast||A("content","color"),fontSize:(null===(y=O.content)||void 0===y?void 0:y.fontSize)||A("content","fontSize"),fontFamily:(null===(b=O.content)||void 0===b?void 0:b.fontFamily)||A("content","fontFamily"),fontWeight:le(ae.bold,"bold","normal")||A("content","fontWeight")||"normal",textDecoration:ae.underline?"underline":"initial",fontStyle:le(ae.italic,"italic","normal")||A("content","fontStyle")||"initial"},search:{color:Q,borderColor:E.palette.divider,highlightBorderColor:E.palette.custom.focusBorder,backgroundColor:$,backdropFilter:"blur(8px)"},selections:T}}function Xh(i){let{alignTo:o,anchorOrigin:a={vertical:"bottom",horizontal:"center"},transformOrigin:u={vertical:"top",horizontal:"center"},show:f,close:p,app:g,fieldName:y,stateName:b="$",autoFocus:x,components:_,checkboxes:E,selectDisabled:D=(()=>!1),sortCriteria:I=[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],direction:C="ltr"}=i;const A=Boolean(null==y?void 0:y.qLibraryId),M=f&&Boolean(o.current),[T,O]=z.useState(0),L=ri(),F=z.useRef(),[P]=Qa({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:b,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:I,qFieldDefs:A?void 0:[y]},qLibraryId:A?y.qLibraryId:void 0}},g,y,b),q=z.useCallback(()=>{P.lock("/qListObjectDef")},[P]),$=z.useCallback(()=>{P.unlock("/qListObjectDef")},[P]),{translator:Q,themeApi:X,keyboardNavigation:ae}=z.useContext(sr),le=z.useRef(),oe=z.useRef(),[K]=Lm(g,P,oe),[U]=Vo(P),[ne]=z.useState(()=>s1({selectDisabled:D})),se=Dm({containerRef:oe,enabled:ae}),{checkboxes:he=E}=U||{},B=ZC({themeApi:X,theme:L,components:_,checkboxes:he});if(z.useEffect(()=>{K&&M&&(K.isModal(P)||K.goModal("/qListObjectDef"))},[K,M]),!P||!U||!Q)return null;const G=!0===U.qListObject.qDimensionInfo.qLocked,Z=(ce,ye)=>{K.noModal("escapeKeyDown"!==ye),p()},re=Jb({layout:U,model:P,translator:Q,selectionState:ne,selections:K}),te=RC(U);return Y.createElement(Mh,{className:"listbox-container",open:M,onClose:Z,anchorEl:o.current,anchorOrigin:a,transformOrigin:u,slotProps:{paper:{style:{minWidth:"250px"}}},onKeyDown:ce=>"Enter"===ce.key?Z():void 0,direction:C},Y.createElement(tt,{container:!0,direction:"column",gap:0,ref:oe},Y.createElement(tt,{item:!0,container:!0,style:{direction:C,padding:L.spacing(1)}},Y.createElement(tt,{item:!0},G?Y.createElement(xo,{onClick:$,disabled:!G,size:"large"},Y.createElement(Xs,{title:Q.get("Listbox.Unlock")})):Y.createElement(xo,{onClick:q,disabled:!te,size:"large"},Y.createElement(DE,{title:Q.get("Listbox.Lock")}))),Y.createElement(tt,{item:!0,xs:!0}),Y.createElement(tt,{item:!0},Y.createElement(n1,{layout:U,more:{enabled:!G,actions:re,alignTo:le,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:K,onConfirm:Z,onCancel:()=>Z(0,"escapeKeyDown")}}))),Y.createElement(tt,{item:!0,xs:!0},Y.createElement("div",{ref:le}),Y.createElement(tt,{item:!0},Y.createElement(o1,{ref:F,popoverOpen:M,styles:B,visible:!0,model:P,listCount:T,selections:K,selectionState:ne,keyboard:{enabled:!1,innerTabStops:!0,focusSelection:se.focusSelection},autoFocus:null==x||x,direction:C})),Y.createElement(Zb,{model:P,app:g,layout:U,selections:K,selectionState:ne,direction:C,onSetListCount:ce=>O(ce),onCtrlF:()=>{F.current.focus()},styles:B,keyboard:se}))))}function Vm(i){let{field:o,api:a,stateIx:u=0,skipHandleShowListBoxPopover:f=!1,moreAlignTo:p=null,onClose:g=(()=>{})}=i;const{translator:y}=z.useContext(sr),b=p||z.useRef(),x=ri(),[_,E]=z.useState(!1),I=()=>{E(!1),g()},C=o.selections[u];void 0===C.qTotal&&(C.qTotal=0);const A=C.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},M=(A.qSelected+A.qLocked)/C.qTotal,T=A.qAlternative/C.qTotal,O=(A.qExcluded+A.qLockedExcluded+A.qSelectedExcluded)/C.qTotal,L=A.qSelected+A.qSelectedExcluded+A.qLocked+A.qLockedExcluded,F=0===L&&0===C.qTotal;let P="";C.qTotal===L&&C.qTotal>1?P=y.get("CurrentSelections.All"):L>1&&C.qTotal?P=y.get("CurrentSelections.Of",[L,C.qTotal]):C.qSelectedFieldSelectionInfo&&(P=C.qSelectedFieldSelectionInfo.map(le=>le.qName).join(", ")),"$"!==o.states[u]&&(P="".concat(o.states[u],": ").concat(P));const q=[{color:x.palette.selected.main,ratio:M},{color:x.palette.selected.alternative,ratio:T},{color:x.palette.selected.excluded,ratio:O}];q.forEach((le,oe)=>{le.offset=oe?q[oe-1].offset+q[oe-1].ratio:0});let $=null,Q=null,X=null,ae=null;return p||($=Y.createElement(tt,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:C.qLocked?"0.3":""}},Y.createElement(Gn,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},o.label),Y.createElement(Gn,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},P)),C.qLocked?Q=Y.createElement(tt,{item:!0},Y.createElement(xo,{size:"large"},Y.createElement(Xs,null))):C.qOneAndOnlyOne||(Q=Y.createElement(tt,{item:!0},Y.createElement(xo,{title:y.get("Selection.Clear"),onClick:le=>{le.stopPropagation(),a.clearField(C.qField,o.states[u])},size:"large"},Y.createElement(Od,null)))),X=Y.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===F&&q.map(le=>Y.createElement("div",{key:le.color,style:{position:"absolute",background:le.color,height:"100%",top:0,width:"".concat(100*le.ratio,"%"),left:"".concat(100*le.offset,"%")}}))),ae=Y.createElement(tt,{container:!0,gap:1,ref:b,sx:{backgroundColor:x.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:x.palette.action.hover}},onClick:!1===f&&(le=>{le.currentTarget.contains(le.target)&&E(!_)})||null},$,Q,X,_&&Y.createElement(Xh,{alignTo:b,show:_,close:I,app:a.model,fieldName:C.qField,stateName:o.states[u]}))),p?Y.createElement(Xh,{alignTo:b,show:!0,close:I,app:a.model,fieldName:C.qField,stateName:o.states[u]}):ae}var $m=i=>kr((o=>de(de({},o),{},{shapes:[{type:"path",attrs:{d:"M8,9 L12.5,4.5 L14,6 L9.5,10.5 L8,12 L2,6 L3.5,4.5 L8,9 Z"}}]}))(i));const Hm={item:"".concat("MultiState","-item")},XC=He(tt)(i=>{let{theme:o}=i;return{["&.".concat(Hm.item)]:{backgroundColor:o.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:o.palette.action.hover},height:"100%",alignItems:"center"}}});function Jh(i){let{field:o,api:a,moreAlignTo:u=null,onClose:f=(()=>{})}=i;const[p,g]=z.useState(!!u),[y,b]=z.useState(-1),[x,_]=z.useState(u?u.current:null),E=u||z.useRef(),{translator:D}=z.useContext(sr),I=D.get("Selection.ClearAllStates"),C=()=>{b(-1),f()};let A=null;u||(A=Y.createElement(Y.Fragment,null,Y.createElement(tt,{item:!0,xs:!0,zeroMinWidth:!0},Y.createElement(yL,{style:{padding:"0px 8px"},color:"secondary",badgeContent:o.states.length},Y.createElement(Gn,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},o.label))),Y.createElement(tt,{item:!0},Y.createElement("div",{style:{width:"12px"}})),Y.createElement(tt,{item:!0},Y.createElement(xo,{size:"large"},Y.createElement($m,null)))));const M=Y.createElement(pb,{dense:!0},Y.createElement(vb,{title:I,onClick:()=>{o.states.forEach(L=>a.clearField(o.name,L))}},Y.createElement(Jg,{variant:"contained",fullWidth:!0},I)),o.states.map((L,F)=>Y.createElement(vb,{key:F,title:o.label,onClick:P=>{return $=F,P.stopPropagation(),g(!1),void b($);var $}},Y.createElement(qo,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},Y.createElement(Vm,{field:o,api:a,stateIx:F,skipHandleShowListBoxPopover:!0}))))),T=Y.createElement(Mh,{open:p,onClose:()=>{g(!1),f()},anchorEl:x,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},M),O=u?T:Y.createElement(XC,{container:!0,gap:0,className:Hm.item,onClick:L=>{L.currentTarget.contains(L.target)&&(_(L.currentTarget),E.current=L.currentTarget,g(!p))}},A,p&&T,y>-1&&Y.createElement(Xh,{alignTo:E,show:y>-1,close:C,app:a.model,fieldName:o.selections[y].qField,stateName:o.states[y]}));return u&&y>-1?Y.createElement(Xh,{alignTo:E,show:y>-1,close:C,app:a.model,fieldName:o.selections[y].qField,stateName:o.states[y]}):O}const D1={item:"".concat("More","-item"),badge:"".concat("More","-badge")},k1=He(tt)(i=>{let{theme:o}=i;return{["&.".concat(D1.item)]:{backgroundColor:o.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:o.palette.action.hover},height:"100%",alignItems:"center"},["& .".concat(D1.badge)]:{padding:o.spacing(0,1)}}});function EM(i){let{items:o=[],api:a}=i;const u=ri(),[f,p]=z.useState(!1),[g,y]=z.useState(-1),[b,x]=z.useState(null),_=z.useRef(),E=()=>{y(-1)};let D=null;return g>-1&&(D=o[g].states.length>1?Y.createElement(Jh,{field:o[g],api:a,moreAlignTo:_,onClose:E}):Y.createElement(Vm,{field:o[g],api:a,skipHandleShowListBoxPopover:!0,moreAlignTo:_,onClose:E})),Y.createElement(k1,{container:!0,gap:0,className:D1.item,onClick:I=>{I.currentTarget.contains(I.target)&&(x(I.currentTarget),_.current=I.currentTarget,p(!f))}},Y.createElement(tt,{item:!0},Y.createElement(qo,{borderRadius:u.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:u.palette.selected.main,color:u.palette.selected.mainContrastText}},Y.createElement(Gn,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",o.length))),Y.createElement(tt,{item:!0},Y.createElement(xo,{size:"large"},Y.createElement($m,null))),f&&Y.createElement(Mh,{open:f,onClose:()=>{p(!1)},anchorEl:b,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},Y.createElement(pb,{dense:!0},o.map((I,C)=>Y.createElement(vb,{key:C,title:I.name,onClick:A=>{return T=C,A.stopPropagation(),p(!1),void y(T);var T}},Y.createElement(qo,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},Y.createElement(I.states.length>1?Jh:Vm,{field:I,api:a})))))),D)}function nD(i){let{api:o,app:a}=i;const u=ri(),[f]=Do(a),[p]=Vo(f),[g,y]=z.useState({items:[],more:[]}),{modalObjectStore:b}=z.useContext(sr).selectionStore,[x,_]=hs(),[E,D]=z.useState(0);return z.useEffect(()=>{if(!_)return;const{width:I}=_,C=Math.floor(I)-72,A=Math.floor(C/120);D(A)},[_]),z.useEffect(()=>{if(!(a&&f&&p&&E))return;const I=function(C){if(!C)return[];const A={};function M(T,O){T.qSelections.forEach(L=>{const F=L.qField;let P=A[F];var q;void 0===P&&(P={name:F,label:(null===(q=L.qDimensionReferences)||void 0===q||null===(q=q.find($=>$.qLabel))||void 0===q?void 0:q.qLabel)||L.qReadableName||F,states:[],selections:[]},A[F]=P),P.states.push(O),P.selections.push(L)})}return C.qSelectionObject&&M(C.qSelectionObject,"$"),C.alternateStates&&C.alternateStates.forEach(T=>M(T.qSelectionObject,T.stateName)),Object.keys(A).map(T=>A[T]).filter(T=>!T.selections.some(O=>O.qIsHidden))}(p);y(C=>{const A=I;if((()=>{const{model:T}=b.get(a.id)||{};return"njsListbox"===(null==T?void 0:T.genericType)})()&&A.length+1===C.items.length){const T=C.items.filter(F=>!1===A.some(P=>F.name===P.name))[0],{qField:O}=T.selections[0];T.selections=[{qField:O}];const L=C.items.indexOf(T);A.splice(L,0,T)}let M=[];return E<A.length&&(M=A.splice(E-A.length)),{items:A,more:M}})},[a,f,p,o.isInModal(),E]),Y.createElement(tt,{ref:x,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},g.items.map(I=>Y.createElement(tt,{item:!0,key:"".concat(I.states.join("::"),"::").concat(I.name),style:{position:"relative",maxWidth:"240px",minWidth:"".concat(120,"px"),background:u.palette.background.paper,borderRight:"1px solid ".concat(u.palette.divider)}},Y.createElement(I.states.length>1?Jh:Vm,{field:I,api:o}))),g.more.length>0&&Y.createElement(tt,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(72,"px"),background:u.palette.background.paper,borderRight:"1px solid ".concat(u.palette.divider)}},Y.createElement(EM,{items:g.more,api:o})))}var CM=i=>kr((o=>de(de({},o),{},{shapes:[{type:"path",attrs:{d:"M10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 Z M16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,-5.07265313e-17 13.5,0 L15,0 C15.5522847,1.01453063e-16 16,0.44771525 16,1 L16,2.5 Z M10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 C6,0.223857625 6.22385763,-5.07265313e-17 6.5,0 L9.5,0 C9.77614237,5.07265313e-17 10,0.223857625 10,0.5 Z M1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 5.18696197e-13,2.77614237 5.18696197e-13,2.5 L5.18696197e-13,1 C5.18696197e-13,0.44771525 0.44771525,-1.01453063e-16 1,0 L2.5,0 C2.77614237,5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 5.18696197e-13,15.5522847 5.18696197e-13,15 L5.18696197e-13,13.5 C5.18696197e-13,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M4,7 C7.49095643,7 10,10.1337595 10,12.1872632 C10,12.1872632 8.16051135,9.86624054 4,10 L4,12 C4,12 2.66666667,10.8333333 -1.0658141e-14,8.5 C-2.59348099e-13,8.5 1.33333333,7.33333333 4,5 C4,5 4,5.66666667 4,7 Z"}}]}))(i)),rD=i=>kr((o=>de(de({},o),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M12,7 C12,5.66666667 12,5 12,5 C14.6666667,7.33333333 16,8.5 16,8.5 C13.3333333,10.8333333 12,12 12,12 L12,10 C7.83948865,9.86624054 6,12.1872632 6,12.1872632 C6,10.1337595 8.50904357,7 12,7 Z"}}]}))(i));function DM(i){let{api:o,app:a}=i;const{translator:u}=z.useContext(sr),[f]=function(p){const[g]=Do(p),[y]=Vo(g),[b]=$c(p),[x,_]=z.useState(null);return z.useEffect(()=>{b&&g&&y&&((i,o,a)=>{const u=[...a.qStateNames||[]].map(f=>({stateName:f,qSelectionObjectDef:{qStateName:f}}));(o&&o.alternateStates?o.alternateStates.map(f=>f.stateName):[]).join("::")!==(a.qStateNames||[]).map(f=>f).join("::")&&i.applyPatches([{qOp:"replace",qPath:"/alternateStates",qValue:JSON.stringify(u)}],!0)})(g,y,b)},[b,g,y]),z.useEffect(()=>{if(!y)return;let E=!1,D=!1,I=!1;[y,...y.alternateStates||[]].forEach(C=>{E=E||C.qSelectionObject&&C.qSelectionObject.qBackCount>0,D=D||C.qSelectionObject&&C.qSelectionObject.qForwardCount>0,I=I||(C.qSelectionObject&&C.qSelectionObject.qSelections||[]).filter(A=>!0!==A.qLocked).length>0}),_({canGoBack:E,canGoForward:D,canClear:I})},[y]),[x,g,y]}(a);return Y.createElement(tt,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},Y.createElement(tt,{item:!0},Y.createElement(xo,{style:{marginRight:"8px"},disabled:!f||!f.canGoBack,title:u.get("Navigate.Back"),onClick:()=>o.back(),size:"large"},Y.createElement(CM,null))),Y.createElement(tt,{item:!0},Y.createElement(xo,{style:{marginRight:"8px"},disabled:!f||!f.canGoForward,title:u.get("Navigate.Forward"),onClick:()=>o.forward(),size:"large"},Y.createElement(rD,null))),Y.createElement(tt,{item:!0},Y.createElement(xo,{disabled:!f||!f.canClear,title:u.get("Selection.ClearAll"),onClick:()=>o.clear(),size:"large"},Y.createElement(ZI,null))))}const tu=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function kM(i){let[o,a]=i;return(o+(Math.random()*(a-o)|0)).toString(32)}function Oi(){return tu.map(kM).join("")}function xn(i){let{app:o}=i;const a=ri(),[u]=Om(o);return u?Y.createElement(tt,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:a.palette.background.paper,minHeight:"40px"}},Y.createElement(tt,{item:!0,style:{borderRight:"1px solid ".concat(a.palette.divider)}},Y.createElement(DM,{api:u,app:o})),Y.createElement(tt,{item:!0,xs:!0,style:{backgroundColor:a.palette.background.darker,overflow:"hidden"}},Y.createElement(nD,{api:u,app:o}))):null}let ia;ia="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;let iD=null,nu=null;const Kd=ia.clearTimeout,oD=ia.setTimeout,A1=ia.cancelAnimationFrame||ia.mozCancelAnimationFrame||ia.webkitCancelAnimationFrame,sD=ia.requestAnimationFrame||ia.mozRequestAnimationFrame||ia.webkitRequestAnimationFrame;null==A1||null==sD?(iD=Kd,nu=function(i){return oD(i,20)}):(iD=function([i,o]){A1(i),Kd(o)},nu=function(i){const o=sD(function(){Kd(a),i()}),a=oD(function(){A1(o),i()},20);return[o,a]});class AM extends z.Component{constructor(...o){super(...o),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:a,disableWidth:u,onResize:f}=this.props;if(this._parentNode){const p=window.getComputedStyle(this._parentNode)||{},g=parseFloat(p.paddingLeft||"0"),y=parseFloat(p.paddingRight||"0"),b=parseFloat(p.paddingTop||"0"),x=parseFloat(p.paddingBottom||"0"),_=this._parentNode.getBoundingClientRect(),E=_.height-b-x,D=_.width-g-y,I=this._parentNode.offsetHeight-b-x,C=this._parentNode.offsetWidth-g-y;(a||this.state.height===I&&this.state.scaledHeight===E)&&(u||this.state.width===C&&this.state.scaledWidth===D)||(this.setState({height:I,width:C,scaledHeight:E,scaledWidth:D}),"function"==typeof f&&f({height:I,scaledHeight:E,scaledWidth:D,width:C}))}},this._setRef=a=>{this._autoSizer=a}}componentDidMount(){const{nonce:o}=this.props,a=this._autoSizer?this._autoSizer.parentNode:null;if(null!=a&&a.ownerDocument&&a.ownerDocument.defaultView&&a instanceof a.ownerDocument.defaultView.HTMLElement){this._parentNode=a;const u=a.ownerDocument.defaultView.ResizeObserver;null!=u?(this._resizeObserver=new u(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(a)):(this._detectElementResize=function ep(i){let o,a,u,f,p,g,y;const b="undefined"!=typeof document&&document.attachEvent;if(!b){g=function(C){const A=C.__resizeTriggers__,M=A.firstElementChild,T=A.lastElementChild,O=M.firstElementChild;T.scrollLeft=T.scrollWidth,T.scrollTop=T.scrollHeight,O.style.width=M.offsetWidth+1+"px",O.style.height=M.offsetHeight+1+"px",M.scrollLeft=M.scrollWidth,M.scrollTop=M.scrollHeight},p=function(C){return C.offsetWidth!==C.__resizeLast__.width||C.offsetHeight!==C.__resizeLast__.height},y=function(C){if(C.target.className&&"function"==typeof C.target.className.indexOf&&C.target.className.indexOf("contract-trigger")<0&&C.target.className.indexOf("expand-trigger")<0)return;const A=this;g(this),this.__resizeRAF__&&iD(this.__resizeRAF__),this.__resizeRAF__=nu(function(){p(A)&&(A.__resizeLast__.width=A.offsetWidth,A.__resizeLast__.height=A.offsetHeight,A.__resizeListeners__.forEach(function(M){M.call(A,C)}))})};let x=!1,_="";u="animationstart";const E="Webkit Moz O ms".split(" ");let D="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),I="";{const C=document.createElement("fakeelement");if(void 0!==C.style.animationName&&(x=!0),!1===x)for(let A=0;A<E.length;A++)if(void 0!==C.style[E[A]+"AnimationName"]){I=E[A],_="-"+I.toLowerCase()+"-",u=D[A],x=!0;break}}a="resizeanim",o="@"+_+"keyframes "+a+" { from { opacity: 0; } to { opacity: 0; } } ",f=_+"animation: 1ms "+a+"; "}return{addResizeListener:function(x,_){if(b)x.attachEvent("onresize",_);else{if(!x.__resizeTriggers__){const E=x.ownerDocument,D=ia.getComputedStyle(x);D&&"static"===D.position&&(x.style.position="relative"),function(A){if(!A.getElementById("detectElementResize")){const M=(o||"")+".resize-triggers { "+(f||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',T=A.head||A.getElementsByTagName("head")[0],O=A.createElement("style");O.id="detectElementResize",O.type="text/css",null!=i&&O.setAttribute("nonce",i),O.styleSheet?O.styleSheet.cssText=M:O.appendChild(A.createTextNode(M)),T.appendChild(O)}}(E),x.__resizeLast__={},x.__resizeListeners__=[],(x.__resizeTriggers__=E.createElement("div")).className="resize-triggers";const I=E.createElement("div");I.className="expand-trigger",I.appendChild(E.createElement("div"));const C=E.createElement("div");C.className="contract-trigger",x.__resizeTriggers__.appendChild(I),x.__resizeTriggers__.appendChild(C),x.appendChild(x.__resizeTriggers__),g(x),x.addEventListener("scroll",y,!0),u&&(x.__resizeTriggers__.__animationListener__=function(A){A.animationName===a&&g(x)},x.__resizeTriggers__.addEventListener(u,x.__resizeTriggers__.__animationListener__))}x.__resizeListeners__.push(_)}},removeResizeListener:function(x,_){if(b)x.detachEvent("onresize",_);else if(x.__resizeListeners__.splice(x.__resizeListeners__.indexOf(_),1),!x.__resizeListeners__.length){x.removeEventListener("scroll",y,!0),x.__resizeTriggers__.__animationListener__&&(x.__resizeTriggers__.removeEventListener(u,x.__resizeTriggers__.__animationListener__),x.__resizeTriggers__.__animationListener__=null);try{x.__resizeTriggers__=!x.removeChild(x.__resizeTriggers__)}catch(E){}}}}}(o),this._detectElementResize.addResizeListener(a,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const L=this.props,{children:o,disableHeight:f=!1,disableWidth:p=!1,doNotBailOutOnEmptyChildren:g=!1,style:x={},tagName:_="div"}=L,E=U3(L,["children","defaultHeight","defaultWidth","disableHeight","disableWidth","doNotBailOutOnEmptyChildren","nonce","onResize","style","tagName"]),{height:D,scaledHeight:I,scaledWidth:C,width:A}=this.state,M={overflow:"visible"},T={};let O=!1;return f||(0===D&&(O=!0),M.height=0,T.height=D,T.scaledHeight=I),p||(0===A&&(O=!0),M.width=0,T.width=A,T.scaledWidth=C),g&&(O=!1),z.createElement(_,Wk({ref:this._setRef,style:Wk(Wk({},M),x)},E),!O&&o(T))}}const Gm=He("div")(()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"}));function tp(i){let{text:o}=i;const{translator:a}=z.useContext(sr);return Y.createElement(Gm,null,a.get(o))}const np={fontSize:"12px"},aD=He(Va)(i=>{let{theme:o,isLoading:a}=i;return{position:"absolute",top:0,left:0,height:48,zIndex:2,background:o.palette.custom.disabledBackground,opacity:1,color:o.palette.custom.disabledContrastText,width:"100%",display:"flex",justifyContent:a?"center":"flex-start",paddingLeft:16,paddingRight:16,borderRadius:0,"& *, & p":{color:o.palette.custom.disabledContrastText},"& i":{padding:"".concat(7,"px")}}}),lD=He(tt,{shouldForwardProp:i=>!["styles","isRtl"].includes(i)})(i=>{let{styles:o,isRtl:a}=i;return de(de({flexDirection:a?"row-reverse":"row",wrap:"nowrap",minHeight:32,alignContent:"center"},o.header),{},{"& *":{color:o.header.color}})}),RM=He(Gn)(i=>{let{styles:o}=i;return de(de({},o.header),{},{display:"block",alignItems:"center",paddingRight:"1px"})});function IM(i){let{translator:o,toggleLock:a,keyboard:u,isLoading:f}=i;const p=o.get("SelectionToolbar.ClickToUnlock");return Y.createElement(aD,{title:p,tabIndex:u.enabled?0:-1,onClick:a,"data-testid":"listbox-unlock-button",id:"listbox-unlock-button",isLoading:f},f?Y.createElement(fm,{size:16,variant:"indeterminate",color:"primary"}):Y.createElement(Xs,{disableRipple:!0,style:np}),!f&&Y.createElement(Gn,{fontSize:"14px"},p))}var I1=i=>kr((o=>de(de({},o),{},{shapes:[{type:"path",attrs:{d:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"}}]}))(i)),MM=i=>kr((o=>de(de({},o),{},{shapes:[{type:"path",attrs:{d:"M7 4h9v1H7zm2 4h7v1H9zm2 4h5v1h-5zM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4z"}}]}))(i)),PL=i=>kr((o=>de(de({},o),{},{shapes:[{type:"path",attrs:{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-7Z"}}]}))(i));var Qd_createDimensionIconData=i=>{let{dimInfo:o,app:a,selections:u,isPopover:f,active:p,keyboard:g}=i;switch(o.qGrouping){case"H":return{icon:MM,tooltip:"Listbox.DrillDown",onClick:void 0};case"C":{const y=a&&p,b=()=>{f||u.confirm(),a.getDimension(o.qLibraryId).then(x=>{x.stepCycle?x.stepCycle(1):console.log("engine api spec version doesn't have support for function stepCycle")}).catch(()=>null)};return{icon:y?PL:I1,tooltip:"Listbox.Cyclic",onClick:y?b:void 0,onKeyDown:y?x=>{const _=x.currentTarget.closest(".listbox-container");switch(x.keyCode){case Kt.SPACE:case Kt.ENTER:b();break;case Kt.TAB:{if(!g.enabled)return;let E;E=x.shiftKey?g.focusSelection():Pd(_)||Uc(_),E||Nd(x,g)}break;default:return}x.preventDefault(),x.stopPropagation()}:void 0}}default:return}};const LM=He(Jg)(()=>({borderRadius:4,width:24,height:24,minWidth:22,padding:0}));function Yd(i){let{iconData:o,translator:a,iconStyle:u,disabled:f,keyboard:p}=i;if(!o)return;const{icon:g,tooltip:y,onClick:b,onKeyDown:x}=o,_=g,E=a.get(y);return b?Y.createElement(LM,{variant:"outlined",onClick:b,tabIndex:p.innerTabStops?0:-1,title:E,size:"large",disableRipple:!0,disabled:f,onKeyDown:x,className:"listbox-cyclic-button","data-testid":"listbox-cyclic-button"},Y.createElement(_,{style:u})):Y.createElement(_,{title:E,size:"large",style:de(de({},u),{},{padding:"".concat(7,"px")})})}let M1=0;function PM(i){var o,a,u;let{layout:f,translator:p,styles:g,isRtl:y,showLock:b,showSearchIcon:x,constraints:_,onShowSearch:E,classes:D,containerRect:I,isPopover:C,showToolbar:A,showDetachedToolbarOnly:M,containerRef:T,model:O,selectionState:L,isDirectQuery:F,selections:P,keyboard:q,autoConfirm:$,app:Q,disablePortal:X}=i;const[ae,le]=z.useState(M),[oe,K]=z.useState(null==f||null===(o=f.qListObject)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o?void 0:o.qLocked),[U,ne]=z.useState(!1);z.useEffect(()=>{var Me;K(null==f||null===(Me=f.qListObject)||void 0===Me||null===(Me=Me.qDimensionInfo)||void 0===Me?void 0:Me.qLocked)},[null==f||null===(a=f.qListObject)||void 0===a||null===(a=a.qDimensionInfo)||void 0===a?void 0:a.qLocked]);const se=z.useRef(null),he=Qd_createDimensionIconData({dimInfo:null==f||null===(u=f.qListObject)||void 0===u?void 0:u.qDimensionInfo,app:Q,selections:P,isPopover:C,active:!(null!=_&&_.active),keyboard:q}),B=b&&oe,G=!b&&oe,Z=x||G||he,re=9-(Z?7:0),te=y?9-(Z?7:0):4,ce=(x?28:0)+(G?28:0)+(he?28:0),ye=function(Me){let{isLocked:nt,setLocked:Ge,settingLockedState:yt,model:Rt,setSettingLockedState:Bt}=Me;return()=>{const ze=new Date;if(ze-M1<500)return Promise.resolve();if(yt)return()=>{};Bt(!0),M1=ze;const It=nt?Rt.unlock:Rt.lock;return Ge(!nt),It.call(Rt,"/qListObjectDef").catch(()=>{Ge(nt)}).finally(()=>{setTimeout(()=>{Bt(!1)},0)})}}({isLocked:oe,setLocked:K,settingLockedState:U,setSettingLockedState:ne,model:O}),Se=Jb({layout:f,model:O,translator:p,selectionState:L,isDirectQuery:F,selections:P}),Ae=oe||!b?void 0:[{key:"lock",type:void 0,label:p.get("SelectionToolbar.ClickToLock"),getSvgIconShape:Rb,enabled:()=>!U&&!L.selectDisabled()&&RC(f),action:ye}],Le=null!=_&&_.active?Y.createElement(r1,{title:p.get("Listbox.Search"),size:"large",style:de(de({},np),{},{padding:"".concat(7,"px")})}):Y.createElement(xo,{onClick:E,tabIndex:-1,title:p.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},Y.createElement(r1,{style:np}));z.useEffect(()=>{if(!se.current||!I)return;const Me=function(nt){var Ge,yt,Rt,Bt;let{containerRect:ze,titleRef:It,iconsWidth:ct,paddingLeft:Ht,paddingRight:xt}=nt;const ft=ze.width<(null!==(Ge=null==It||null===(yt=It.current)||void 0===yt?void 0:yt.clientWidth)&&void 0!==Ge?Ge:0)+ct+(Ht+xt)+2+128,ht=(null==It||null===(Rt=It.current)||void 0===Rt?void 0:Rt.scrollWidth)>(null==It||null===(Bt=It.current)||void 0===Bt?void 0:Bt.offsetWidth);return!(!ft&&!ht)}({containerRect:I,titleRef:se,iconsWidth:ce,paddingLeft:re,paddingRight:te});le(M||Me)},[ce,re,te,se.current,M,Object.entries(I||{}).sort().join(",")]);const Ne=function(Me){let{isDetached:nt,showToolbar:Ge,containerRef:yt,isLocked:Rt,listboxSelectionToolbarItems:Bt,extraItems:ze,selections:It,keyboard:ct,autoConfirm:Ht,disablePortal:xt}=Me;return{autoConfirm:Ht,isDetached:nt,show:Ge&&!nt,popover:{show:Ge&&nt,anchorEl:yt.current},extraItems:ze,more:{enabled:!Rt,actions:Bt,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"},disablePortal:xt},selections:{show:Ge,api:It,onConfirm:()=>{null==ct||ct.focus()},onCancel:()=>{null==ct||ct.focus()}}}}({isDetached:!C&&ae,showToolbar:A,containerRef:T,isLocked:oe,extraItems:Ae,listboxSelectionToolbarItems:Se,selections:P,keyboard:q,autoConfirm:$,disablePortal:X}),Ve=Y.createElement(n1,Er({isRtl:y,layout:f},Ne));if(M)return Ve;const Re=G?Y.createElement(Xs,{size:"large",style:de(de({},np),{},{padding:"".concat(7,"px")})}):void 0;return Y.createElement(lD,{item:!0,container:!0,styles:g,isRtl:y,marginY:1,paddingLeft:"".concat(re,"px"),paddingRight:"".concat(te,"px"),className:"header-container"},B&&Y.createElement(IM,{isLoading:U,translator:p,toggleLock:ye,keyboard:q}),Z&&Y.createElement(tt,{item:!0,container:!0,alignItems:"center",width:ce,className:"header-action-container"},Re||x&&Le,Y.createElement(Yd,{iconData:he,iconStyle:np,disabled:P.isActive()&&C,translator:p,keyboard:q})),Y.createElement(tt,{item:!0,xs:!0,minWidth:0,justifyContent:y?"flex-end":"flex-start",className:D.listBoxHeader},Y.createElement(RM,{variant:"h6",noWrap:!0,ref:se,title:f.title,styles:g},f.title)),Y.createElement(tt,{item:!0,display:"flex"},Ve))}const cD="ListBoxInline",Zd={listBoxHeader:"".concat(cD,"-listBoxHeader"),screenReaderOnly:"".concat(cD,"-screenReaderOnly"),listboxWrapper:"".concat(cD,"-listboxWrapper")},NL=He(tt,{shouldForwardProp:i=>!["containerPadding","isGridMode","styles"].includes(i)})(i=>{let{theme:o,containerPadding:a,isGridMode:u,styles:f}=i;return de(de({},f.background),{},{["& .".concat(Zd.listBoxHeader)]:{alignSelf:"center",display:"flex"},["& .".concat(Zd.screenReaderOnly)]:{position:"absolute",height:0,width:0,overflow:"hidden"},["& .".concat(Zd.listboxWrapper)]:{padding:a},"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(o.palette.custom.focusBorder," !important")},"&:focus ::-webkit-scrollbar-track":{boxShadow:u?void 0:"inset -2px -2px 0px #3F8AB3"},"&:focus-visible":{outline:"none"}})}),uD=Y.memo(function(i){var o,a,u,f;let{options:p,layout:g}=i;const{app:y,direction:b,frequencyMode:x,checkboxes:_,search:E=!0,focusSearch:D=!1,rangeSelect:I=!0,model:C,selections:A,update:M,fetchStart:T,postProcessPages:O,calculatePagesHeight:L,showGray:F=!0,scrollState:P,renderedCallback:q,toolbar:$=!0,isPopover:Q=!1,showLock:X=!1,components:ae,selectDisabled:le=(()=>!1),disablePortal:oe=!0}=p,K=ri(),{translator:U,keyboardNavigation:ne,themeApi:se,constraints:he}=z.useContext(sr),{checkboxes:B=_}=g||{},G=ZC({app:y,themeApi:se,theme:K,components:ae,checkboxes:B}),Z=function(bt){let{appLayout:Ct}=bt;return!(null==Ct||!Ct.qIsDirectQueryMode)}({appLayout:null==y?void 0:y.layout}),re=z.useRef(),te=z.useRef(),[ce,ye]=hs(),[Se,Ae]=z.useState(!1),[Le,Ne]=z.useState(!1),Ve=z.useRef(!1),[Re,Me]=z.useState({down:0,up:0,scrollPosition:""}),nt=bt=>Me(Ct=>de(de({},Ct),bt)),[Ge,yt]=z.useState({start:0,stop:0}),[Rt]=Om(y),[Bt]=z.useState(()=>s1({selectDisabled:le})),ze=Dm({containerRef:re,enabled:ne}),It=z.useCallback(()=>(bt=>{var Ct,on;let{app:Un,appSelections:Tn}=bt;return null!==(Ct=null===(on=Un.isInModalSelection)||void 0===on?void 0:on.call(Un))&&void 0!==Ct?Ct:Tn.isInModal()})({app:y,appSelections:Rt}),[y,Rt]),ct=null==g?void 0:g.qListObject.qDimensionInfo.qError,Ht=ct&&he.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",{handleKeyDown:xt,handleOnMouseEnter:st,handleOnMouseLeave:ft,globalKeyDown:ht}=z.useMemo(()=>function R1(i){let{keyboard:o,hovering:a,updateKeyScroll:u,currentScrollIndex:f,isModal:p,constraints:g,selections:y}=i;return{handleKeyDown:b=>{const{keyCode:x,shiftKey:_=!1}=b.nativeEvent,E=()=>{b.stopPropagation(),b.preventDefault()};if(!o.enabled)return;const D=b.currentTarget.closest(".listbox-container"),I=p();switch(x){case Kt.TAB:if(document.activeElement===D||!I&&!D.contains(document.activeElement))return;if(_)Uc(D)||Pd(D)||Nd(b,o);else if(!(Fd(D)||Pd(D)||Uc(D)))break;E();break;case Kt.ENTER:case Kt.SPACE:if(!b.target.classList.contains("listbox-container"))break;o.focus(),E();break;case Kt.ESCAPE:Nd(b,o),y.isActive()&&y.cancel()}},handleOnMouseEnter:()=>{a.current=!0},handleOnMouseLeave:()=>{a.current&&(a.current=!1)},globalKeyDown:b=>{if(!a.current||(()=>{const D=(null==g?void 0:g.select)||(null==g?void 0:g.active),I=p();return D||I})())return;const{keyCode:x,ctrlKey:_=!1,shiftKey:E=!1}=b;switch(x){case Kt.ARROW_UP:u({up:1});break;case Kt.ARROW_DOWN:u({down:1});break;case Kt.PAGE_UP:u({up:f.stop-f.start});break;case Kt.PAGE_DOWN:u({down:f.stop-f.start});break;case Kt.HOME:u({scrollPosition:_&&E?"overflowStart":"start"});break;case Kt.END:u({scrollPosition:_&&E?"overflowEnd":"end"});break;default:return}b.preventDefault()}}}({keyboard:ze,hovering:Ve,updateKeyScroll:nt,currentScrollIndex:Ge,constraints:he,isModal:It,selections:A}),[ze,Ve,nt,re,Ge,y,Rt,he,It]);z.useEffect(()=>(document.addEventListener("keydown",ht),()=>{document.removeEventListener("keydown",ht)}),[ht]),z.useEffect(()=>{!0===E&&Ne(!0);const bt=()=>{Ae(!0)},Ct=()=>{Ae(!1),"toggle"===E&&Ne(!1)};return Q&&(A.isActive()||(A.on("activated",bt),A.on("deactivated",Ct)),Ae(Q)),$&&A&&(A.isModal()||(A.on("activated",bt),A.on("deactivated",Ct)),Ae(Q||A.isActive())),()=>{A&&A.removeListener&&(A.removeListener("activated",bt),A.removeListener("deactivated",Ct))}},[$,A,Q]);const{wildCardSearch:at,searchEnabled:gt,autoConfirm:$e=!1,layoutOptions:Ke={}}=null!=g?g:{},hn=null==g||null===(o=g.qListObject)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o?void 0:o.qLocked,zn=!1!==gt&&"toggle"===E&&!hn,qn=(null==g||null===(a=g.title)||void 0===a?void 0:a.length)&&!1!==(null==g?void 0:g.showTitle),gr=$&&!qn&&!Q,Ir=$&&qn||Q,Mr="rtl"===b;if(!C||!g||!U)return null;const pn=!0===E||"toggle"===E&&Le&&!1!==gt,nn=null!==(u=Ke.dense)&&void 0!==u&&u,Jt=()=>{Ne(!Le)},mn=()=>{"toggle"===E?Jt():te.current.focus()},gn=pn&&("toggle"===E||D),yn="grid"===(null==Ke?void 0:Ke.dataLayout),rt=function(bt){let Ct,{isGridMode:on,dense:Un,height:Tn,layoutOrder:jn}=bt;if(on){let zt;zt=Wb({isGridMode:on,dense:Un})>Tn?"0px":"2px",Ct="row"===jn?"".concat(zt," 4px"):"".concat(zt," 6px ").concat(zt," 4px")}else Ct=void 0;return Ct}({isGridMode:yn,dense:nn,height:null===(f=re.current)||void 0===f?void 0:f.clientHeight,layoutOrder:Ke.layoutOrder});ct&&(null==q||q());const _t=Ir?30:0,Gt=Y.createElement(PM,{app:y,showSearchIcon:zn,onShowSearch:Jt,isPopover:Q,showToolbar:Se,isDirectQuery:Z,autoConfirm:$e,showDetachedToolbarOnly:gr,layout:g,translator:U,styles:G,isRtl:Mr,showLock:X,constraints:he,classes:Zd,containerRect:ye,containerRef:re,model:C,selectionState:Bt,selections:A,keyboard:ze,disablePortal:oe});return Y.createElement(Y.Fragment,null,gr&&Gt,Y.createElement(NL,{className:"listbox-container",container:!0,tabIndex:ze.enabled?-1:void 0,direction:"column",gap:0,containerPadding:rt,styles:G,style:{height:"100%",flexFlow:"column nowrap"},onKeyDown:xt,onMouseEnter:st,onMouseLeave:ft,ref:bt=>{re.current=bt,ce(bt)},isGridMode:yn,"aria-label":ze.active?U.get("Listbox.ScreenReaderInstructions"):""},Ir&&Gt,Y.createElement(tt,{item:!0,container:!0,direction:"column",height:"100%",minHeight:_t,role:"region","aria-label":U.get("Listbox.ResultFilterLabel")},Y.createElement(tt,{item:!0},Y.createElement(o1,{ref:te,selections:A,selectionState:Bt,model:C,dense:nn,keyboard:ze,visible:pn,search:E,autoFocus:gn,beginSelectionOnFocus:!Q,wildCardSearch:at,searchEnabled:gt,direction:b,hide:zn&&Jt,styles:G})),Y.createElement(tt,{item:!0,xs:!0,className:Zd.listboxWrapper},ct?Y.createElement(tp,{text:Ht}):Y.createElement(AM,null,bt=>{let{height:Ct,width:on}=bt;return Y.createElement(Zb,{model:C,app:y,constraints:he,layout:g,selections:A,selectionState:Bt,direction:b,frequencyMode:x,rangeSelect:I,checkboxes:B,height:Ct,width:on,update:M,fetchStart:T,postProcessPages:O,calculatePagesHeight:L,keyboard:ze,showGray:F,scrollState:P,keyScroll:{state:Re,reset:()=>Me({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:Ge,set:yt},renderedCallback:q,onCtrlF:mn,isModal:It,styles:G})})))))});function T1(i){let{options:o={}}=i;const{model:a}=o,[u]=Vo(a);return Y.createElement(uD,{options:o,layout:u})}const Um={qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:"",qShowAlternatives:!0,frequencyEnabled:!1,qFrequencyMode:"N",qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},histogram:!1,frequencyMax:void 0,checkboxes:!1,searchEnabled:!0,showTitle:!0,wildCardSearch:!1,autoConfirm:!1,layoutOptions:{dense:!1,dataLayout:"singleColumn",layoutOrder:"row",maxVisibleColumns:{auto:!0,maxColumns:3},maxVisibleRows:{auto:!0,maxRows:3}},title:""};function NM(i){let o;switch(!0){case["none","N","NX_FREQUENCY_NONE"].includes(i):o="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(i):o="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(i):o="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(i):o="R";break;default:o="N"}return o}const jM=["__DO_NOT_USE__"],dD=function(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{__DO_NOT_USE__:o={}}=i,a={update:void 0,fetchStart:void 0,showGray:!0,focusSearch:!1,sessionModel:void 0,selectionsApi:void 0,selectDisabled:void 0,postProcessPages:void 0,calculatePagesHeight:!1};return de(de(de({},gl(i,jM)),a),o)},BM=z.forwardRef((i,o)=>{let{app:a,fieldIdentifier:u,qId:f,stateName:p,element:g,initialOptions:y,renderedCallback:b}=i;const[x,_]=z.useState(y),{isExistingObject:E,hasExternalSelectionsApi:D}=function(L){let{qId:F,options:P}=L;return{isExistingObject:!(!F&&!P.sessionModel),hasExternalSelectionsApi:!!P.selectionsApi}}({qId:f,options:x});E||Object.assign(x,{frequencyMode:NM(x.frequencyMode)});const[I,C]=z.useState(0);z.useEffect(()=>{if(I)throw new Error("Source or selection Api can not change after a listbox has been mounted");C(I+1)},[E,D]);const A=E?function FM(i){let{app:o,qId:a,options:u={}}=i;const[f,p]=z.useState(),[g]=oi(),{sessionModel:y}=u,b=["dense","frequencyMode","checkboxes","histogram","title","stateName","listLayout"],x=Object.keys(u).filter(_=>b.includes(_));if(x.length)throw new Error('Option "'.concat(x.join(", "),'" is not applicable for existing objects.'));return z.useEffect(()=>{var _;Promise.resolve(y||(_=qe(function*(E){return g.get(E)||(yield o.getObject(E))}),function(E){return _.apply(this,arguments)})(a)).then(_=>{var E;g.get((E=_).id)||(g.set(E.id,E),E.once("closed",()=>{g.clear(E.id)})),p(_)})},[]),f}({app:a,qId:f,options:x}):function(L){var F;let{app:P,fieldIdentifier:q,stateName:$,options:Q={}}=L;const[X,ae]=z.useState(""),[le,oe]=z.useState(!0),[K,U]=z.useState(),[ne,se]=z.useState(),he=null!==(F=Q.title)&&void 0!==F?F:ne;let{histogram:B=!1,frequencyMode:G="N"}=Q;X&&X.failedToFetchFieldDef&&(B=!1,G="N"),z.useEffect(()=>{q.qLibraryId&&(B||"N"!==G)?qe(function*(){try{const Re=yield P.getDimension(q.qLibraryId),Me=yield Re.getLayout();se(Me.qDim.title),ae("N"===Me.qDim.qGrouping?Me.qDim.qFieldDefs?Me.qDim.qFieldDefs[0]:"":{multiFieldDim:!0}),oe(!1)}catch(Re){throw oe(!1),ae({failedToFetchFieldDef:!0}),new Error("Disabling frequency count and histogram: ".concat(Re&&Re.message))}})():(oe(!1),se(q))},[]);const{dense:Z,checkboxes:re,listLayout:te,properties:ce={}}=Q,ye={dense:Z};"horizontal"===te&&(ye.dataLayout="grid",ye.layoutOrder="column",ye.maxVisibleColumns={auto:!0},ye.maxVisibleRows={auto:!1,maxRows:1});const Se=z.useRef();Se.current||(Se.current=Oi());const Ae=Wr(!0,{},Um,{qInfo:{qId:Se.current},qListObjectDef:{qStateName:$,qFrequencyMode:B&&"N"===G?"V":G},histogram:B,checkboxes:re,layoutOptions:ye,title:he});let Le;Wr(!0,Ae,ce),q.qLibraryId?(Ae.qListObjectDef.qLibraryId=q.qLibraryId,Le=q.qLibraryId):(Ae.qListObjectDef.qDef.qFieldDefs=[q],Le=q),"P"!==G&&B&&(Ae.frequencyMax=null!=X&&X.multiFieldDim?"fetch":{qValueExpression:hC(q.qLibraryId?X:Le)});const[Ne]=Qa(Ae,le?null:P,Le,$);return z.useEffect(()=>{Ne&&U(Ne)},[Ne]),K}({app:a,fieldIdentifier:u,stateName:p,options:x}),M=z.useRef(g),T=D?x.selectionsApi:Lm(a,A,[M,".njs-action-toolbar-more",".njs-action-toolbar-popover"],x)[0],O=z.useMemo(()=>de(de({},x),{},{selections:T,model:A,app:a,renderedCallback:b}),[x,T,A,a]);return z.useImperativeHandle(o,()=>({setOptions:L=>_(L)}),[]),T&&A?Y.createElement(T1,{options:O}):null}),zM={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function qM(i){let{app:o,fieldIdentifier:a,stateName:u,element:f,options:p={}}=i;const[g,y]=z.useState(!!p.show);return Y.createElement(Xh,{show:g,app:o,alignTo:{current:f},anchorOrigin:p.anchorOrigin,transformOrigin:p.transformOrigin,close:()=>{y(!1),p.onPopoverClose&&p.onPopoverClose()},fieldName:a,stateName:u,autoFocus:p.autoFocus,components:p.components,sortCriteria:p.sortCriteria,direction:p.direction})}function fD(i,o){for(let a=0;a<i.length;++a)i[a]>=0&&i[a]>=o&&++i[a];i.push(o)}function hD(i,o){let a=0;for(let u=0;u<i.length;++u)i[u]>o?--i[u]:i[u]===o&&(a=u);return i.splice(a,1),a}function gD(i){let{dc:o,def:a,properties:u}=i;o.qDimensions=o.qDimensions||[],o.qMeasures=o.qMeasures||[],o.qInterColumnSortOrder=o.qInterColumnSortOrder||[],o.qInitialDataFetch=o.qInitialDataFetch||[],o.qColumnOrder=o.qColumnOrder||[],o.qExpansionState=o.qExpansionState||[];const f=u,p={dimensions:()=>o.qDimensions,measures:()=>o.qMeasures,addDimension(g){const y="string"==typeof g?(i=>({qDef:{qFieldDefs:[i]}}))(g):de(de({},g),{},{qDef:g.qDef||{}});return y.qDef.cId=y.qDef.cId||Oi(),y.qDef.qSortCriterias=y.qDef.qSortCriterias||[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],y.qOtherTotalSpec=y.qOtherTotalSpec||{},y.qAttributeExpressions=y.qAttributeExpressions||[],y.qAttributeDimensions=y.qAttributeDimensions||[],o.qDimensions.length<p.maxDimensions()?(o.qDimensions.push(y),fD(o.qInterColumnSortOrder,o.qDimensions.length-1),a.dimensions.added(y,f)):(o.qLayoutExclude=o.qLayoutExclude||{},o.qLayoutExclude.qHyperCubeDef=o.qLayoutExclude.qHyperCubeDef||{},o.qLayoutExclude.qHyperCubeDef.qDimensions=o.qLayoutExclude.qHyperCubeDef.qDimensions||[],o.qLayoutExclude.qHyperCubeDef.qMeasures=o.qLayoutExclude.qHyperCubeDef.qMeasures||[],o.qLayoutExclude.qHyperCubeDef.qDimensions.push(y)),y},removeDimension(g){const y=o.qDimensions.splice(g,1)[0];return hD(o.qInterColumnSortOrder,g),a.dimensions.removed(y,f,g),y},addMeasure(g){const y="string"==typeof g?(i=>({qDef:{qDef:i}}))(g):de(de({},g),{},{qDef:g.qDef||{}});y.qDef.cId=y.qDef.cId||Oi(),y.qSortBy=y.qSortBy||{qSortByLoadOrder:1,qSortByNumeric:-1},y.qAttributeDimensions=y.qAttributeDimensions||[],y.qAttributeExpressions=y.qAttributeExpressions||[],o.qMeasures.length<p.maxMeasures()?(o.qMeasures.push(y),fD(o.qInterColumnSortOrder,o.qDimensions.length+o.qMeasures.length-1),a.measures.added(y,f)):(o.qLayoutExclude=o.qLayoutExclude||{},o.qLayoutExclude.qHyperCubeDef=o.qLayoutExclude.qHyperCubeDef||{},o.qLayoutExclude.qHyperCubeDef.qDimensions=o.qLayoutExclude.qHyperCubeDef.qDimensions||[],o.qLayoutExclude.qHyperCubeDef.qMeasures=o.qLayoutExclude.qHyperCubeDef.qMeasures||[],o.qLayoutExclude.qHyperCubeDef.qMeasures.push(y))},removeMeasure(g){const y=o.qMeasures.splice(g,1)[0];hD(o.qInterColumnSortOrder,o.qDimensions.length+g),a.measures.removed(y,f,g)},maxDimensions:()=>a.dimensions.max(o.qMeasures.length),maxMeasures:()=>a.measures.max(o.qDimensions.length),canAddDimension:()=>o.qDimensions.length<p.maxDimensions(),canAddMeasure:()=>o.qMeasures.length<p.maxMeasures()};return p}function yD(i){let{dc:o,def:a,properties:u}=i;o.qInitialDataFetch=o.qInitialDataFetch||[];const f=u,p={dimensions:()=>o.qLibraryId||o.qDef&&o.qDef.qFieldDefs&&0!==o.qDef.qFieldDefs.length?[o]:[],measures:()=>[],addDimension(g){const y="string"==typeof g?(i=>({qDef:{qFieldDefs:[i]}}))(g):de(de({},g),{},{qDef:g.qDef||{}});return y.qDef.cId=y.qDef.cId||Oi(),y.qDef.qSortCriterias=o.qDef.qSortCriterias||[{qSortByState:1,qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],Object.keys(y).forEach(b=>{o[b]=y[b]}),a.dimensions.added(y,f),y},removeDimension(g){const y=o;return delete o.qDef,delete o.qLibraryId,a.dimensions.removed(y,f,g),y},addMeasure(){},removeMeasure(){},maxDimensions:()=>1,maxMeasures:()=>0,canAddDimension:()=>0===p.dimensions().length,canAddMeasure:()=>!1};return p}function VM(i){let{children:o,halo:a}=i;return{addDimension:u=>qe(function*(){const f=(i=>{let o;var a;return o=Wr(!0,{},Um,"string"==typeof i?{qListObjectDef:(a=i,{qDef:{qFieldDefs:[a]}})}:i.qListObjectDef?i:{qListObjectDef:i}),o})(u),p=f.qListObjectDef;if(p.qDef.cId=p.qDef.cId||Oi(),!f.title)if(p.qLibraryId){const b=yield a.app.getDimension(p.qLibraryId),x=yield b.getProperties();f.title=x.qDim.qLabelExpression?{qStringExpression:{qExpr:x.qDim.qLabelExpression}}:x.qDim.title}else{var g,y;f.title=p.qDef.title||(null===(g=p.qDef.qFieldLabels)||void 0===g?void 0:g[0])||(null===(y=p.qDef.qFieldDefs)||void 0===y?void 0:y[0])}o.push({qProperty:f,qChildren:[]})})(),addMeasure(){}}}function $M(i){return"string"==typeof i&&"="===i[0]||"object"==typeof i&&i.qDef&&i.qDef.qDef||"object"==typeof i&&i.qLibraryId&&"measure"===i.type?"measure":"dimension"}function bD(i,o){return O1.apply(this,arguments)}function O1(){return O1=qe(function*(i,o){let{sn:a,properties:u,fields:f,children:p}=i;if(!f.length)return;const g=a.qae.data.targets[0];if(!g)return;const{propertyPath:y}=g,b=y.split("/");let x=u;for(let D=0;D<b.length;D++){const I=b[D];x=I?x[I]:x}const E=((D=y).match("/qListObjectDef")?yD:D.match("/qChildListDef")?VM:gD)({dc:x,def:g,properties:u,children:p,halo:o});var D;for(let D=0;D<f.length;++D){const I=f[D];"measure"===$M(I)?yield E.addMeasure(I):yield E.addDimension(I)}}),O1.apply(this,arguments)}var Br_getValue=(i,o,a)=>{if(null==i||null==o)return a;const u=o.split(".");let f=i;for(let p=0;p<u.length;++p){const g=u[p];if(""!==g){if(null==f[g])return a;f=f[g]}}return f},Br_setValue=(i,o,a)=>{if(null==i||null==o)return;const u=o.split("."),f=u[u.length-1];let p=i;for(let g=0;g<u.length-1;++g){const y=u[g];null!=p[y]||(p[y]=Number.isNaN(+u[g+1])?{}:[]),p=p[y]}void 0!==a&&"__proto__"!==f&&"constructor"!==f?p[f]=a:delete p[f]},Br_isEmpty=i=>0===Object.keys(i).length&&i.constructor===Object,L1_isOrderedSubset=function(i,o){if(!(i&&o&&i.length&&o.length))return!1;let a=i.indexOf(o[0]);if(-1!==a){for(let u=0;u<o.length;u++){const f=i.indexOf(o[u]);if(a>f)return!1;a=f}return!0}return!1},L1_indexAdded=function(i,o){let a;for(a=0;a<i.length;++a)i[a]>=0&&i[a]>=o&&++i[a];i.push(o)},L1_indexRemoved=function(i,o){let a,u=0;for(a=0;a<i.length;++a)i[a]>o?--i[a]:i[a]===o&&(u=a);return i.splice(u,1),u};const wD=Zo(2,53)-1;function Xd(i){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(i)}function Jd(i,o){const a=Wr(!0,{},o,i);return Br_getValue(a,"qOtherTotalSpec.qOtherCounted")||Br_setValue(a,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),Br_getValue(a,"qOtherTotalSpec.qOtherLimit")||Br_setValue(a,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),a.hasOwnProperty("othersLabel")||(a.othersLabel="Others"),a}function $l(i,o){return Wr(!0,{},o,i)}function Li(i,o,a){return"function"==typeof i?i(o):Number.isNaN(+i)?a:i}var pr={restoreChangedProperties:function(i){Object.keys(i.qLayoutExclude.changed).forEach(o=>{i.qLayoutExclude.changed[o].to===Br_getValue(i,o)&&Br_setValue(i,o,i.qLayoutExclude.changed[o].from)})},isMasterItemProperty:Xd,importCommonProperties:function(i,o,a){const u="masterobject"===Br_getValue(o,"properties.qInfo.qType")?"masterobject":Br_getValue(a,"qInfo.qType");Br_setValue(i,"qInfo.qType",u),i.visualization=a.visualization},copyPropertyIfExist:function(i,o,a){o.hasOwnProperty(i)&&(a[i]=o[i])},copyPropertyOrSetDefault:function(i,o,a,u){a[i]=o.hasOwnProperty(i)?o[i]:u},createDefaultDimension:Jd,createDefaultMeasure:$l,resolveValue:Li,getHypercubePath:function(i){const o=Br_getValue(i,"data.targets.0.propertyPath","").split("/");return o.length&&"qHyperCubeDef"===o[o.length-1]&&(o.length-=1),o.join(".")},getDefaultDimension: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}}},getDefaultMeasure:function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},setInterColumnSortOrder:function(i){let{exportFormat:o,newHyperCubeDef:a}=i;const u=o.data[0],f=a.qDimensions.length+a.qMeasures.length;a.qInterColumnSortOrder=u.interColumnSortOrder.concat();let p=a.qInterColumnSortOrder.length;if(p!==f)for(a.qLayoutExclude&&(a.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=u.interColumnSortOrder.concat());p!==f;)p<f?(L1_indexAdded(a.qInterColumnSortOrder,p),++p):(--p,L1_indexRemoved(a.qInterColumnSortOrder,p))},createNewProperties:function(i){let{exportFormat:o,initialProperties:a,hypercubePath:u}=i,f={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(o.properties).forEach(p=>{"qLayoutExclude"===p?o.properties[p].quarantine&&(f.qLayoutExclude.quarantine=Wr(!0,{},o.properties[p].quarantine)):"qHyperCubeDef"===p&&u?Br_setValue(f,"".concat(u,".qHyperCubeDef"),o.properties.qHyperCubeDef):a.hasOwnProperty(p)||Xd(p)?f[p]=o.properties[p]:f.qLayoutExclude.disabled[p]=o.properties[p]}),f=Wr(!0,{},a,f),null===f.components&&(f.components=[]),f},getMaxMinDimensionMeasure:function(i){let{exportFormat:o,dataDefinition:a={}}=i;const u=o.data[0],f=a.dimensions||{max:0},p=a.measures||{max:0},g=Li(p.max,u.dimensions.length,wD),y=Li(p.min,u.dimensions.length,0);return{maxDimensions:Li(f.max,g,wD),minDimensions:Li(f.min,y,0),maxMeasures:g,minMeasures:y}},shouldInitLayoutExclude:function(i){let{exportFormat:o,maxDimensions:a,minDimensions:u,maxMeasures:f,minMeasures:p}=i;const g=o.data[0];return g.dimensions.length>a&&a>0||g.measures.length>f&&f>0||g.excludedDimensions.length>0&&g.dimensions.length+g.excludedDimensions.length>u||g.excludedMeasures.length>0&&g.measures.length+g.excludedMeasures.length>p||!f&&g.measures.length>0||!a&&g.dimensions.length>0},initLayoutExclude:function(i){let{exportFormat:o,maxDimensions:a,minDimensions:u,maxMeasures:f,minMeasures:p,newHyperCubeDef:g}=i;const y=o.data[0];g.qLayoutExclude||(g.qLayoutExclude={}),g.qLayoutExclude.qHyperCubeDef||(g.qLayoutExclude.qHyperCubeDef={}),(y.dimensions.length>a&&a>0||y.excludedDimensions&&y.excludedDimensions.length&&y.dimensions.length+y.excludedDimensions.length>u)&&(g.qLayoutExclude.qHyperCubeDef.qDimensions||(g.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(y.measures.length>f&&f>0||y.excludedMeasures&&y.excludedMeasures.length&&y.measures.length+y.excludedMeasures.length>p)&&(g.qLayoutExclude.qHyperCubeDef.qMeasures||(g.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!f&&y.measures.length&&(g.qLayoutExclude.qHyperCubeDef.qMeasures||(g.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!a&&y.dimensions.length&&(g.qLayoutExclude.qHyperCubeDef.qDimensions||(g.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},addDefaultDimensions:function(i){let{exportFormat:o,maxDimensions:a,minDimensions:u,newHyperCubeDef:f,defaultDimension:p}=i;const g=o.data[0];let y;if(a>0)for(y=0;y<g.dimensions.length;++y)f.qDimensions.length<a?f.qDimensions.push(Jd(g.dimensions[y],p)):f.qLayoutExclude.qHyperCubeDef.qDimensions.push(Jd(g.dimensions[y],p));else if(g.dimensions.length)for(y=0;y<g.dimensions.length;++y)f.qLayoutExclude.qHyperCubeDef.qDimensions.push(Jd(g.dimensions[y],p));if(g.excludedDimensions.length)for(y=0;y<g.excludedDimensions.length;++y)f.qDimensions.length<u?f.qDimensions.push(Jd(g.excludedDimensions[y],p)):f.qLayoutExclude.qHyperCubeDef.qDimensions.push(Jd(g.excludedDimensions[y],p))},addDefaultMeasures:function(i){let{exportFormat:o,maxMeasures:a,minMeasures:u,newHyperCubeDef:f,defaultMeasure:p}=i;const g=o.data[0];let y;if(a>0)for(y=0;y<g.measures.length;++y)f.qMeasures.length<a?f.qMeasures.push($l(g.measures[y],p)):f.qLayoutExclude.qHyperCubeDef.qMeasures.push($l(g.measures[y],p));else if(g.measures.length)for(y=0;y<g.measures.length;++y)f.qLayoutExclude.qHyperCubeDef.qMeasures.push($l(g.measures[y],p));if(g.excludedMeasures.length)for(y=0;y<g.excludedMeasures.length;++y)f.qMeasures.length<u?f.qMeasures.push($l(g.excludedMeasures[y],p)):f.qLayoutExclude.qHyperCubeDef.qMeasures.push($l(g.excludedMeasures[y],p))},updateDimensionsOnAdded:function(i){let{newProperties:o,dataDefinition:a,hypercubePath:u}=i;if(a.dimensions&&"function"==typeof a.dimensions.added){const f=Br_getValue(o,u||"").qHyperCubeDef,p=[...f.qDimensions];f.qDimensions=[],p.forEach(g=>{f.qDimensions.push(g),a.dimensions.added(g,o)})}},updateMeasuresOnAdded:function(i){let{newProperties:o,dataDefinition:a,hypercubePath:u}=i;if(a.measures&&"function"==typeof a.measures.added){const f=Br_getValue(o,u||"").qHyperCubeDef,p=[...f.qMeasures];f.qMeasures=[],p.forEach(g=>{f.qMeasures.push(g),a.measures.added(g,o)})}}},ip={exportProperties:i=>function(o){let{propertyTree:a,hypercubePath:u}=o;const f=function(){let x=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;const _={data:[],properties:{}};for(let E=0;E<x;++E)_.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return _}(),p=a.qProperty,g=Br_getValue(p,u||""),y=g.qHyperCubeDef,b=f.data[0];if(y.qInterColumnSortOrder||(y.qInterColumnSortOrder=[]),b.dimensions.push(...y.qDimensions),y.qLayoutExclude&&y.qLayoutExclude.qHyperCubeDef&&y.qLayoutExclude.qHyperCubeDef.qDimensions&&b.excludedDimensions.push(...y.qLayoutExclude.qHyperCubeDef.qDimensions),b.measures.push(...y.qMeasures),y.qLayoutExclude&&y.qLayoutExclude.qHyperCubeDef&&y.qLayoutExclude.qHyperCubeDef.qMeasures&&b.excludedMeasures.push(...y.qLayoutExclude.qHyperCubeDef.qMeasures),b.interColumnSortOrder=y.qInterColumnSortOrder.concat(),y.qLayoutExclude&&y.qLayoutExclude.qHyperCubeDef&&y.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const x=y.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();L1_isOrderedSubset(x,b.interColumnSortOrder)&&(b.interColumnSortOrder=x)}return delete y.qLayoutExclude,Object.keys(p).forEach(x=>{f.properties[x]=p[x]}),u&&(f.properties.qHyperCubeDef=g.qHyperCubeDef,delete g.qHyperCubeDef),p.qLayoutExclude||(p.qLayoutExclude={}),p.qLayoutExclude.disabled&&(Object.keys(p.qLayoutExclude.disabled).forEach(x=>{f.properties.hasOwnProperty(x)||(f.properties[x]=p.qLayoutExclude.disabled[x])}),delete p.qLayoutExclude.disabled),p.qLayoutExclude.changed&&(pr.restoreChangedProperties(p),delete p.qLayoutExclude.changed),p.qLayoutExclude.quarantine&&!Br_isEmpty(p.qLayoutExclude.quarantine)||delete p.qLayoutExclude,f}(i),importProperties:i=>function(o){let{exportFormat:a,initialProperties:u={},dataDefinition:f={},defaultPropertyValues:p={},hypercubePath:g}=o;const y={qChildren:[]},b=pr.createNewProperties({exportFormat:a,initialProperties:u,hypercubePath:g}),x=Br_getValue(u,g||"").qHyperCubeDef,_=Br_getValue(b,g||"").qHyperCubeDef,{maxDimensions:E,minDimensions:D,maxMeasures:I,minMeasures:C}=pr.getMaxMinDimensionMeasure({exportFormat:a,dataDefinition:f}),{defaultDimension:A=pr.getDefaultDimension(),defaultMeasure:M=pr.getDefaultMeasure()}=p;return _.qDimensions.length=0,_.qMeasures.length=0,pr.shouldInitLayoutExclude({exportFormat:a,maxDimensions:E,minDimensions:D,maxMeasures:I,minMeasures:C})&&pr.initLayoutExclude({exportFormat:a,maxDimensions:E,minDimensions:D,maxMeasures:I,minMeasures:C,newHyperCubeDef:_}),pr.addDefaultDimensions({exportFormat:a,maxDimensions:E,minDimensions:D,newHyperCubeDef:_,defaultDimension:A}),pr.addDefaultMeasures({exportFormat:a,maxMeasures:I,minMeasures:C,newHyperCubeDef:_,defaultMeasure:M}),pr.setInterColumnSortOrder({exportFormat:a,newHyperCubeDef:_}),pr.copyPropertyIfExist("qMaxStackedCells",x,_),pr.copyPropertyIfExist("qNoOfLeftDims",x,_),pr.copyPropertyOrSetDefault("qInitialDataFetch",x,_,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),pr.copyPropertyOrSetDefault("qMode",x,_,"S"),pr.copyPropertyOrSetDefault("qReductionMode",x,_,"N"),pr.copyPropertyOrSetDefault("qSortbyYValue",x,_),pr.copyPropertyOrSetDefault("qIndentMode",x,_),pr.copyPropertyOrSetDefault("qShowTotalsAbove",x,_),pr.importCommonProperties(b,a,u),pr.updateDimensionsOnAdded({newProperties:b,dataDefinition:f,hypercubePath:g}),pr.updateMeasuresOnAdded({newProperties:b,dataDefinition:f,hypercubePath:g}),y.qProperty=b,y}(i)};const oa=i=>Br_getValue(i,"data.targets.0.propertyPath"),op=function(){var i=qe(function*(o){let{halo:a,model:u,cellRef:f,newType:p,properties:g,viewDataMode:y=!1}=o;const b=g?{qProperty:g}:yield u.getFullPropertyTree(),x=f.current.getQae(),_=(i=>i.exportProperties?i.exportProperties:(o=>{if(o.split("/").indexOf("qHyperCubeDef")>-1)return ip.exportProperties})(oa(i)))(x);if(!_)throw new Error("Source chart does not support conversion");const E=yield(C=qe(function*(A){let{halo:M,name:T,version:O}=A;const{types:L}=M;return yield L.get({name:T,version:O}).supernova()}),function(A){return C.apply(this,arguments)})({halo:a,name:p}),D=E.qae,I=(i=>i.importProperties?i.importProperties:(o=>{if(o.split("/").indexOf("qHyperCubeDef")>-1)return ip.importProperties})(oa(i)))(D);var C;if(!I)throw new Error("Target chart does not support conversion");return I({exportFormat:_({propertyTree:b,hypercubePath:pr.getHypercubePath(x),viewDataMode:y}),initialProperties:de({qInfo:{qType:p},visualization:p},Br_getValue(D,"properties.initial",{})),dataDefinition:Br_getValue(D,"data.targets.0.",{}),hypercubePath:pr.getHypercubePath(D),viewDataMode:y})});return function(a){return i.apply(this,arguments)}}(),Wm={hypercube:ip};var $o=i=>kr((o=>de(de({},o),{},{shapes:[{type:"path",attrs:{d:"M8.86225926,1.6 L15.7815749,13.5 C16.2829746,14.3 15.8818548,15 14.9793354,15 L1.04042422,15 C0.0853772072,15 -0.232971797,14.3650794 0.172002787,13.6135407 L7.05722041,1.6 C7.55862009,0.8 8.36085958,0.8 8.86225926,1.6 Z M7.962,2.007 C7.95987183,2.02476599 7.95607967,2.03712023 7.94920396,2.05249845 L1.1033193,14 L14.915544,14 L7.99777452,2.10265906 L7.97779697,2.06138411 L7.96394459,2.01964415 L7.962,2.007 Z M7.5,11 L8.5,11 C8.76666667,11 8.95432099,11.1580247 8.99272977,11.4038409 L9,11.5 L9,12.5 C9,12.7666667 8.84197531,12.954321 8.59615912,12.9927298 L8.5,13 L7.5,13 C7.23333333,13 7.04567901,12.8419753 7.00727023,12.5961591 L7,12.5 L7,11.5 C7,11.2333333 7.15802469,11.045679 7.40384088,11.0072702 L7.5,11 L8.5,11 L7.5,11 Z M7.5,5 L8.5,5 C8.76666667,5 8.95432099,5.15802469 8.99272977,5.40384088 L9,5.5 L9,9.5 C9,9.76666667 8.84197531,9.95432099 8.59615912,9.99272977 L8.5,10 L7.5,10 C7.23333333,10 7.04567901,9.84197531 7.00727023,9.59615912 L7,9.5 L7,5.5 C7,5.23333333 7.15802469,5.04567901 7.40384088,5.00727023 L7.5,5 L8.5,5 L7.5,5 Z"}}]}))(i));function UM(i){let{d:o}=i;const a=ri();let u="inherit",f=a.palette.success.main;o.missing?f=a.palette.warning.main:o.error&&(u="error",f=a.palette.error.main);const p={color:f},g=Y.createElement(Gn,{style:{lineHeight:"30px",paddingRight:a.spacing(1)}},Y.createElement(oI,null,Y.createElement(o.missing||o.error?$o:Lb,{style:p})));return Y.createElement(tt,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},Y.createElement(tt,{item:!0},g),Y.createElement(tt,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},Y.createElement(Gn,{noWrap:!0,component:"p"},Y.createElement(Gn,{component:"span",variant:"subtitle2",color:u},o.description),Y.createElement(Gn,{component:"span"}," "),Y.createElement(Gn,{component:"span",variant:"subtitle2",color:o.error?"error":"inherit",style:{fontWeight:400}},o.label))))}function WM(i){let{data:o}=i;const a=ri();return Y.createElement(tt,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},o.map((u,f)=>{const p=u.descriptions.map((g,y)=>Y.createElement(UM,{d:g,key:y}));return p.length>0&&Y.createElement(tt,{container:!0,item:!0,key:f,direction:"column",style:{paddingBottom:a.spacing(2)}},Y.createElement(Gn,{noWrap:!0,key:f,variant:"subtitle1",align:"left",color:"textSecondary"},u.title),p)}))}function xD(i){let{title:o="Error",message:a="",data:u=[]}=i;return Y.createElement(tt,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},Y.createElement(tt,{item:!0},Y.createElement($o,{style:{fontSize:"38px"}})),Y.createElement(tt,{item:!0},Y.createElement(Gn,{variant:"h6",align:"center","data-tid":"error-title"},o)),Y.createElement(tt,{item:!0},Y.createElement(Gn,{variant:"subtitle1",align:"center","data-tid":"error-message"},a)),Y.createElement(WM,{data:u}))}const _D=["size"],sp="Progress",ru={root:"".concat(sp,"-root"),front:"".concat(sp,"-front"),back:"".concat(sp,"-back")},KM=He("div")(i=>{let{theme:o}=i;return{["&.".concat(ru.root)]:{position:"relative",display:"inline-block"},["& .".concat(ru.front)]:{color:o.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(ru.back)]:{color:o.palette.divider}}}),QM={small:16,medium:32,large:64,xlarge:128};function YM(i){let{size:o="medium"}=i,a=gl(i,_D);const u=QM[o];return Y.createElement(KM,{className:ru.root},Y.createElement(fm,Er({variant:"determinate",value:100,className:ru.back,size:u,thickness:3},a)),Y.createElement(fm,Er({variant:"indeterminate",disableShrink:!0,className:ru.front,size:u,thickness:3},a)))}const P1=["cancel","translator"],F1=["retry","translator"],ap={stripes:"".concat("LongRunningQuery","-stripes")},N1=He(tt)(()=>({["& .".concat(ap.stripes)]:{"&::before":{position:"absolute",height:"100%",width:"100%",top:0,left:0,content:'""',backgroundSize:"14.14px 14.14px",backgroundImage:"linear-gradient(135deg, currentColor 10%, rgba(0,0,0,0) 10%, rgba(0,0,0,0) 50%, currentColor 50%, currentColor 59%, rgba(0,0,0,0) 60%, rgba(0,0,0,0) 103%)",opacity:.1}}}));function j1(i){let{cancel:o,translator:a}=i,u=gl(i,P1);return Y.createElement(Y.Fragment,null,Y.createElement(N1,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},Y.createElement(tt,{item:!0},Y.createElement(YM,null)),Y.createElement(tt,{item:!0},Y.createElement(Gn,{variant:"h6",align:"center","data-tid":"update-active"},a.get("Object.Update.Active")))),Y.createElement(tt,Er({item:!0},u),Y.createElement(Jg,{variant:"contained",onClick:o},a.get("Cancel"))))}function ZM(i){let{retry:o,translator:a}=i,u=gl(i,F1);return Y.createElement(Y.Fragment,null,Y.createElement(tt,{item:!0},Y.createElement($o,{style:{fontSize:"38px"}})),Y.createElement(tt,{item:!0},Y.createElement(Gn,{variant:"h6",align:"center","data-tid":"update-cancelled"},a.get("Object.Update.Cancelled"))),Y.createElement(tt,{item:!0},Y.createElement(Jg,Er({variant:"contained",onClick:o},u),a.get("Retry"))))}function XM(i){let{canCancel:o,canRetry:a,api:u}=i;const{translator:f}=z.useContext(sr);return Y.createElement(tt,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:ap.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},o&&Y.createElement(j1,{cancel:u.cancel,translator:f,className:ap.cancel}),a&&Y.createElement(ZM,{retry:u.retry,translator:f,className:ap.retry}))}function JM(){return Y.createElement(tt,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},Y.createElement(YM,{size:"large"}))}const lp={containerStyle:"".concat("Header","-containerStyle"),containerTitleStyle:"".concat("Header","-containerTitleStyle")},B1=He(tt)(i=>{let{theme:o}=i;return{["&.".concat(lp.containerStyle)]:{flexGrow:0},["&.".concat(lp.containerTitleStyle)]:{paddingBottom:o.spacing(1)}}});function e5(i){let{layout:o,sn:a,anchorEl:u,hovering:f,focusHandler:p,titleStyles:g={}}=i;const y=o.showTitles&&!!o.title,b=o.showTitles&&!!o.subtitle,x=o.qSelectionInfo&&o.qSelectionInfo.qInSelections,[_,E]=z.useState([]),[D,I]=hs(),[C,A]=z.useState(!1);z.useEffect(()=>{a&&a.component&&a.component.isHooked&&a.component.observeActions(P=>{E([...P,...a&&a.selectionToolbar&&a.selectionToolbar.items||[]])})},[a]),z.useEffect(()=>{if(!I)return;const{width:P}=I;A(P<221)},[I]);const M=y||b,T=[lp.containerStyle,...M?[lp.containerTitleStyle]:[]],O=(f||x)&&(C||!M),F=Y.createElement(n1,{show:M&&!O&&!C,selections:{show:x,api:a.component.selections,onKeyDeactivate:p.refocusContent},actions:_,popover:{show:O,anchorEl:u},focusHandler:p,layout:o});return Y.createElement(B1,{ref:D,item:!0,container:!0,wrap:"nowrap",className:T.join(" ")},Y.createElement(tt,{item:!0,zeroMinWidth:!0,xs:!0},Y.createElement(tt,{container:!0,wrap:"nowrap",direction:"column"},y&&Y.createElement(zl,{title:o.title},Y.createElement(Gn,{variant:"h6",noWrap:!0,className:"njs-cell-title",style:g.main},o.title)),b&&Y.createElement(zl,{title:o.subtitle},Y.createElement(Gn,{variant:"body2",noWrap:!0,className:"njs-cell-sub-title",style:g.subTitle},o.subtitle)))),Y.createElement(tt,{item:!0},F))}const Km={itemStyle:"".concat("Footer","-itemStyle")},t5=He(tt)(i=>{let{theme:o}=i;return{["& .".concat(Km.itemStyle)]:{minWidth:0,paddingTop:o.spacing(1)}}});function CD(i){let{layout:o,titleStyles:a={}}=i;return o&&o.showTitles&&o.footnote?Y.createElement(t5,{container:!0},Y.createElement(tt,{item:!0,className:Km.itemStyle},Y.createElement(zl,{title:o.footnote},Y.createElement(Gn,{noWrap:!0,variant:"body2",className:"njs-cell-footer",style:a.footer},o.footnote)))):null}class n5{constructor(){this.timer=null,this.next=null,this.running=!1}start(){this.running||(this.running=!0,this.scheduleNext())}scheduleNext(){this.timer=setTimeout(()=>{this.doNext()},10)}doNext(){var o=this;return qe(function*(){const a=o.next;o.next=null,a?(yield a(),o.scheduleNext()):o.stop()})()}schedule(o){this.next=o,this.start()}stop(){this.running&&(clearTimeout(this.timer),this.timer=null,this.running=!1)}}function r5(i){let{sn:o,snOptions:a,snPlugins:u,layout:f,appLayout:p,halo:g}=i;const{component:y}=o,{theme:b,language:x,constraints:_,interactions:E,keyboardNavigation:D}=z.useContext(sr),[I]=z.useState(()=>new n5),[C,A]=z.useState(!1),[M,T]=z.useState(0),[O,L,F]=hs(),[P,q]=z.useState(null),$=z.useCallback(Q=>{Q&&q(Q)},[]);return z.useEffect(()=>{if(P)return y.created({options:a}),y.mounted(P),A(!0),()=>{I.stop(),y.willUnmount()}},[P,y]),z.useEffect(()=>{C&&P&&L&&(!y.isHooked&&f&&f.qSelectionInfo&&f.qSelectionInfo.qInSelections||I.schedule(()=>{const Q=[];return _.passive||Q.push("passive"),_.active||Q.push("interact"),_.select||Q.push("select"),_.edit||Q.push("edit"),g.app&&g.app.session&&Q.push("fetch"),Promise.resolve(y.render({layout:f,options:a,plugins:u,embed:g.public.nebbie,context:de({constraints:_,interactions:E,theme:g.public.theme,appLayout:p,keyboardNavigation:D},y.isHooked?{}:{logicalSize:o.logicalSize({layout:f}),localeInfo:(p||{}).qLocaleInfo,permissions:Q})})).then(X=>{!1!==X&&(0===M&&"function"==typeof a.onInitialRender&&a.onInitialRender.call(null),T(M+1))})}))},[L,a,u,P,F,f,p,b,x,_,E,C,D]),Y.createElement("div",{ref:O,"data-render-count":M,style:{position:"relative",height:"100%"},className:"njs-viz"},Y.createElement("div",{ref:$,style:{position:"absolute",width:"100%",height:"100%"}}))}class iu extends Error{constructor(o,a){super(o),this.originalError=a,this.name="RenderError"}}const s5=(i,o)=>{switch(o.type){case"LOADING":return de(de({},i),{},{loading:!0});case"LOADED":return de(de({},i),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:o.sn,visualization:o.visualization});case"RENDER":return de(de({},i),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null});case"LONG_RUNNING_QUERY":return de(de({},i),{},{longRunningQuery:!0});case"ERROR":return de(de({},i),{},{loading:!1,longRunningQuery:!1,error:o.error});default:throw new Error("Unhandled type: ".concat(o.type))}};function jL(i){let{delay:o=750}=i;const[a,u]=z.useState(!1);return z.useEffect(()=>{const f=setTimeout(()=>u(!0),o);return()=>clearTimeout(f)},[]),a?Y.createElement(JM,null):null}const ef=i=>!i.qError||7005===i.qError.qErrorCode,kD=(i,o,a,u,f)=>[...Array(i).keys()].map(p=>{const g=!(!o||!o[p]),y=g&&o[p].qError&&7005===o[p].qError.qErrorCode,b=g&&!y&&o[p].qError,_="".concat(b?u:y?y&&o[p].qCalcCondMsg||f:g&&o[p].qFallbackTitle||""),E=a(p);return{description:E?"".concat(E).concat(_.length?":":""):null,label:_,missing:o&&!g&&!b&&p>=o.length||y,error:b}}),tf=i=>i&&(Array.isArray(i)?i:[i])||[],a5=(i,o,a,u)=>{const f=u.dimensions.min(),p=u.measures.min(),g=u.resolveLayout(o);return{reqDimErrors:kD(f,tf(g.qDimensionInfo||g.qItems),y=>u.dimensions.description(a,y),i.get("Visualization.Invalid.Dimension"),i.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:kD(p,tf(g.qMeasureInfo),y=>u.measures.description(a,y),i.get("Visualization.Invalid.Measure"),i.get("Visualization.UnfulfilledCalculationCondition"))}},AD=function(){var i=qe(function*(o,a,u,f){let{targets:p}=u;const{hasUnfulfilledErrors:g,aggMinD:y,aggMinM:b,hasLayoutErrors:x,layoutErrors:_}=((F,P,q)=>{let $=!1,Q=0,X=0,ae=!1,le=!1;const oe=[];for(let K=0;K<P.length;++K){const U=P[K],ne=U.dimensions.min(),se=U.measures.min(),he=U.resolveLayout(q),B=tf(he.qDimensionInfo||he.qItems).filter(ef),G=tf(he.qMeasureInfo).filter(ef);if(Q+=ne,X+=se,(B.length<ne||G.length<se)&&($=!0),he.qError){ae=!0,le=7005===he.qError.qErrorCode;const Z=le&&he.qCalcCondMsg?he.qCalcCondMsg:F.get(le?"Visualization.UnfulfilledCalculationCondition":"Visualization.LayoutError");oe.push({title:Z,descriptions:[]})}}return{hasUnfulfilledErrors:$,aggMinD:Q,aggMinM:X,hasLayoutErrors:ae,layoutErrors:oe}})(o,p,a),E=[],D=[];let I=null;for(let F=0;F<p.length;++F){const P=p[F];if(!x&&g){const q=I||(yield f.getProperties());I=q;const $=a5(o,a,q,P);E.push(...$.reqDimErrors),D.push(...$.reqMeasErrors)}}const C=E.filter(F=>!(F.missing||F.error)).length,A=o.get("Visualization.Incomplete.Dimensions",[C,y]),M=D.filter(F=>!(F.missing||F.error)).length,T=o.get("Visualization.Incomplete.Measures",[M,b]),O=[{title:A,descriptions:[...E]},{title:T,descriptions:[...D]}],L=x?_:O;return[x||g,{title:x?_[0].title:o.get("Visualization.Incomplete"),data:L}]});return function(a,u,f,p){return i.apply(this,arguments)}}(),RD=z.forwardRef((i,o)=>{let{halo:a,model:u,initialSnOptions:f,initialSnPlugins:p,initialError:g,onMount:y,currentId:b,emitter:x,navigation:_,onError:E}=i;const{app:D,types:I}=a,{nebbie:C}=a.public,{theme:A,translator:M,language:T,keyboardNavigation:O,disableCellPadding:L=!1}=z.useContext(sr),F=ri(),[P,q,$]=hs(),[Q,X]=z.useReducer(s5,{loading:!1,loaded:!1,longRunningQuery:!1,error:(ae=g)?{title:ae.message}:null,sn:null,visualization:null});var ae;const[le,oe]=z.useState(u),[K,{validating:U,canCancel:ne,canRetry:se},he]=Vo(le),[B]=$c(D),[G,Z,re]=hs(),[te,ce]=z.useState(f),[ye,Se]=z.useState(p),Ae="njs-cell-".concat(b),[Le]=Lm(D,le,["#".concat(Ae),".njs-action-toolbar-popover"]),[Ne,Ve]=z.useState(!1),Re=z.useRef({enter:null,leave:null}),{titleStyles:Me,bgColor:nt,bgImage:Ge,border:yt,borderRadius:Rt,boxShadow:Bt}=((i,o,a,u)=>z.useMemo(()=>{if(i&&o){const p=i.components?i.components.find(E=>"general"===E.key):null,g={main:C1(p,"main",o,i.visualization),footer:C1(p,"footer",o,i.visualization),subTitle:C1(p,"subTitle",o,i.visualization)},y=qm(p,o,i.visualization),b=E1(p,a),x=function(E,D,I){const C=S1(null==E?void 0:E.borderColor,"","borderColor",D,I),A=(null==E?void 0:E.borderWidth)||zm("","borderWidth",D,I);return A&&C?"".concat(A," solid ").concat(C):void 0}(p,o,i.visualization);return{titleStyles:g,bgColor:y,bgImage:b,border:x,borderRadius:(D=o,I=i.visualization,(null==(E=p)?void 0:E.borderRadius)||zm("","borderRadius",D,I)),boxShadow:QC(p,o,i.visualization)}}var E,D,I;return{}},[i,o,a,u]))(K,a.public.theme,a.app,A),ze=z.useRef({focusToolbarButton(ct){this.emit(ct?"focus_toolbar_last":"focus_toolbar_first")}});z.useEffect(()=>{Vd(ze.current)},[]),ze.current.blurCallback=ct=>{a.root.toggleFocusOfCells(),ct&&re&&re.focus()},ze.current.refocusContent=()=>{Q.sn.component&&"function"==typeof Q.sn.component.focus&&Q.sn.component.focus()},z.useEffect(()=>{if(g)return void y();if(!B||!K)return;if(Q.visualization===K.visualization&&Q.sn)return void(Ht=qe(function*(xt){const[st,ft]=yield AD(M,K,xt.generator.qae.data,le);X(st?{type:"ERROR",error:ft}:{type:"RENDER"}),(ht=>{let{sn:at,layout:gt,model:$e}=ht;const Ke=at&&at.component&&at.component.selections;if(Ke&&Ke.id&&$e.id&&Ke.id===$e.id){if(gt&&gt.qSelectionInfo&&gt.qSelectionInfo.qInSelections&&!Ke.isModal()){const{targets:hn}=at.generator.qae.data;Ke.goModal(hn[0].propertyPath)}gt.qSelectionInfo&&gt.qSelectionInfo.qInSelections||Ke.isModal()&&Ke.noModal()}})({sn:Q.sn,layout:K,model:le})}),function(xt){return Ht.apply(this,arguments)})(Q.sn);var Ht;const ct=I.getSupportedVersion(K.visualization,K.version);return function(){var Ht=qe(function*(xt,st){var ft;X({type:"LOADING"}),yield(ft=qe(function*(ht){let{dispatch:at,types:gt,visualization:$e,version:Ke,model:hn,app:zn,selections:qn,nebbie:gr,focusHandler:Ir,emitter:Mr,onMount:pn,navigation:nn}=ht;try{const Jt=yield(gn=qe(function*(yn){let{types:rt,name:_t,version:Gt}=yn;return yield rt.get({name:_t,version:Gt}).supernova()}),function(yn){return gn.apply(this,arguments)})({types:gt,name:$e,version:Ke}),mn=Jt.create({model:hn,app:zn,selections:qn,nebbie:gr,focusHandler:Ir,emitter:Mr,navigation:nn});mn&&(at({type:"LOADED",sn:mn,visualization:$e}),pn())}catch(Jt){at(Ke?{type:"ERROR",error:{title:Jt.message,errorObject:Jt}}:{type:"ERROR",error:{title:"Could not find a version of '".concat($e,"' that supports current object version. Did you forget to register ").concat($e,"?")}}),pn()}var gn}),function(ht){return ft.apply(this,arguments)})({dispatch:X,types:I,visualization:xt,version:st,model:le,app:D,selections:Le,nebbie:C,focusHandler:ze.current,emitter:x,onMount:y,navigation:_})});return function(xt,st){return Ht.apply(this,arguments)}}()(K.visualization,ct),()=>{}},[I,Q.sn,le,Le,K,B,T]),z.useEffect(()=>{if(!U)return;const ct=setTimeout(()=>X({type:"LONG_RUNNING_QUERY"}),2e3);return()=>clearTimeout(ct)},[U]),z.useImperativeHandle(o,()=>({getQae:()=>Q.sn.generator.qae,toggleFocus(ct){"function"==typeof Q.sn.component.focus&&(ct?Q.sn.component.focus():Q.sn.component.blur())},setSnOptions:ce,setSnPlugins:Se,setModel:oe,getImperativeHandle(){var ct;return null!==(ct=Q.sn)&&void 0!==ct&&ct.component&&"function"==typeof Q.sn.component.getImperativeHandle?Q.sn.component.getImperativeHandle():{}},takeSnapshot:()=>qe(function*(){const{width:ct,height:Ht}=q;let xt=JSON.parse(JSON.stringify(K));return"function"==typeof Q.sn.component.setSnapshotData&&(xt=(yield Q.sn.component.setSnapshotData(xt))||xt),{key:String(+Date.now()),meta:{language:M.language(),theme:F.name,appLayout:B,size:{width:Math.round(ct),height:Math.round(Ht)}},layout:xt}})(),exportImage(){var ct=this;return qe(function*(){if("function"!=typeof a.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const Ht=yield ct.takeSnapshot();return a.config.snapshot.capture(Ht)})()}}),[Q.sn,Z,q,K,F.name,B]);let It=null;return Q.loading&&!Q.longRunningQuery?It=Y.createElement(jL,null):Q.error?(E&&E(Q.error.errorObject?Q.error.errorObject:new iu(Q.error.title)),It=Y.createElement(xD,Q.error)):Q.loaded&&(It=Y.createElement(r5,{key:K.visualization,sn:Q.sn,halo:a,snOptions:te,snPlugins:ye,layout:K,appLayout:B})),Y.createElement(j0,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:nt||"unset",backgroundImage:Ge&&Ge.url?"url(".concat(Ge.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:Ge&&Ge.size,backgroundPosition:Ge&&Ge.pos,border:yt,borderRadius:Rt,boxShadow:Bt,boxSizing:"border-box"},elevation:0,square:!0,className:"njs-cell",ref:P,id:Ae,onMouseEnter:()=>{Re.current.leave&&clearTimeout(Re.current.leave),Re.enter||(Re.current.enter=setTimeout(()=>{Ve(!0),Re.current.enter=null},250))},onMouseLeave:()=>{Re.current.enter&&clearTimeout(Re.current.enter),Re.current.leave||(Re.current.leave=setTimeout(()=>{Ve(!1),Re.current.leave=null},750))}},Y.createElement(tt,{container:!0,direction:"column",gap:0,style:de(de({position:"relative",width:"100%",height:"100%"},L?{}:{padding:F.spacing(1)}),Q.longRunningQuery?{opacity:"0.3"}:{})},$&&K&&Q.sn&&Y.createElement(e5,{layout:K,sn:Q.sn,anchorEl:$,hovering:Ne,focusHandler:ze.current,titleStyles:Me},"\xa0"),Y.createElement(tt,{tabIndex:O?0:-1,onKeyDown:O?ct=>{["Enter"," ","Spacebar"].includes(ct.key)&&a.root.toggleFocusOfCells(b)}:null,item:!0,xs:!0,style:{height:"100%"},ref:G},It),$&&K&&Q.sn&&Y.createElement(CD,{layout:K,titleStyles:Me})),Q.longRunningQuery&&Y.createElement(XM,{canCancel:ne,canRetry:se,api:he}))});function ID(i){return null!=i&&!Array.isArray(i)&&"object"==typeof i}function cp(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",o=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0;const u=[];return Object.keys(o).forEach(f=>{const p=o[f];var g,y;"object"!=typeof a[f]||"object"!=typeof p||Array.isArray(p)?(y=a[f],(ID(g=p)&&ID(y)?JSON.stringify(g)===JSON.stringify(y):!Array.isArray(g)&&!Array.isArray(y)&&g===y)||u.push({qPath:i+f,qOp:"add",qValue:JSON.stringify(o[f])})):u.push(...cp("".concat(i).concat(f,"/"),o[f],a[f]))}),u}function V1(i){if(!Array.isArray(i))throw new Error("Invalid plugin format: plugins should be an array!");i.forEach(o=>{if("object"!=typeof o)throw new Error("Invalid plugin format: a plugin should be an object");if("object"!=typeof o.info||"string"!=typeof o.info.name)throw new Error("Invalid plugin format: a plugin should have an info object containing a name");if("function"!=typeof o.fn)throw new Error('Invalid plugin format: The plugin "'.concat(o.info.name,'" has no "fn" function'))})}const MD=i=>{var o;return!(!i||i.qHasSoftPatches||i.qExtendsId||!(((null===(o=i.qMeta)||void 0===o?void 0:o.privileges)||[]).indexOf("update")>-1))},Qm=(i,o)=>i.__snInterceptor?i.__snInterceptor.setProperties.call(i,o):i.setProperties(o),nf=Wr.bind(null,!0),Ho={},{isArray:sa}=Array;function rf(i){return null!=i&&!Array.isArray(i)&&"object"==typeof i}function ou(i){return void 0===i}function sf(i,o){return"function"==typeof i[o]||"$$"===o.substring(0,2)||"_"===o.substring(0,1)}function $1(i,o){const a=o.substring(1).split("/").slice(0,-1);let u;return a.forEach((f,p)=>{if(p===a.length)return;u=+f;const g=isNaN(u)?{}:[];i[u||f]=ou(i[u||f])?g:i[f],i=i[u||f]}),i}function Ym(i,o){let a=!0;if(rf(i)&&rf(o))return Object.keys(i).length===Object.keys(o).length&&(Object.keys(i).forEach(u=>{Ym(i[u],o[u])||(a=!1)}),a);if(sa(i)&&sa(o)){if(i.length!==o.length)return!1;for(let u=0,f=i.length;u<f;u+=1)if(!Ym(i[u],o[u]))return!1;return!0}return i===o}Ho.generate=function(i,o,a){a=a||"";let u=[];return Object.keys(o).forEach(f=>{const p=(b=o[f])&&nf({},{val:b}).val,g=i[f],y="".concat(a,"/").concat(f);var b;Ym(p,g)||sf(o,f)||(ou(g)?u.push({op:"add",path:y,value:p}):rf(p)&&rf(g)?u=u.concat(Ho.generate(g,p,y)):sa(p)&&sa(g)?u=u.concat(function(b,x,_){let E=[];const D=b.slice();let I=-1;function C(A,M,T){if(A[T]&&ou(A[T].qInfo))return null;if(A[T]&&A[T].qInfo.qId===M)return T;for(let O=0,L=A.length;O<L;O+=1)if(A[O]&&A[O].qInfo.qId===M)return O;return-1}if(Ym(x,D))return E;if(!ou(x[0])&&ou(x[0].qInfo))return E.push({op:"replace",path:_,value:x}),E;for(let A=D.length-1;A>=0;A-=1)I=C(x,D[A].qInfo&&D[A].qInfo.qId,A),-1===I?(E.push({op:"remove",path:"".concat(_,"/").concat(A)}),D.splice(A,1)):E=E.concat(Ho.generate(D[A],x[I],"".concat(_,"/").concat(A)));for(let A=0,M=x.length;A<M;A+=1)I=C(D,x[A].qInfo&&x[A].qInfo.qId),-1===I?(E.push({op:"add",path:"".concat(_,"/").concat(A),value:x[A]}),D.splice(A,0,x[A])):I!==A&&(E.push({op:"move",path:"".concat(_,"/").concat(A),from:"".concat(_,"/").concat(I)}),D.splice(A,0,D.splice(I,1)[0]));return E}(g,p,y)):u.push({op:"replace",path:"".concat(a,"/").concat(f),value:p}))}),Object.keys(i).forEach(f=>{ou(o[f])&&!sf(i,f)&&u.push({op:"remove",path:"".concat(a,"/").concat(f)})}),u},Ho.apply=function(i,o){o.forEach(a=>{let u=$1(i,a.path),f=a.path.split("/").splice(-1)[0],p=f&&isNaN(+f)?u[f]:u[+f]||u;const g=a.from?a.from.split("/").splice(-1)[0]:null;if("/"===a.path&&(u=null,p=i),"add"===a.op||"replace"===a.op)if(sa(u))"-"===f&&(f=u.length),u.splice(+f,"add"===a.op?0:1,a.value);else if(sa(p)&&sa(a.value)){const b=a.value.slice();p.length=0,p.push(...b)}else if(rf(p)&&rf(a.value))y=p,Object.keys(y).forEach(b=>{Object.getOwnPropertyDescriptor(y,b).configurable&&!sf(y,b)&&delete y[b]}),nf(p,a.value);else{if(!u)throw new Error("Patchee is not an object we can patch");u[f]=a.value}else if("move"===a.op){const b=$1(i,a.from);sa(u)?u.splice(+f,0,b.splice(+g,1)[0]):(u[f]=b[g],delete b[g])}else"remove"===a.op&&(sa(u)?u.splice(+f,1):delete u[f]);var y})},Ho.clone=function(i){return nf({},i)},Ho.createPatch=function(i,o,a){const u={op:i.toLowerCase(),path:a};return"move"===u.op?u.from=o:void 0!==o&&(u.value=o),u},Ho.updateObject=function(i,o){Object.keys(i).length?Ho.apply(i,Ho.generate(i,o)):nf(i,o)};let ln,vs;function Zm(i,o){if(!i||o.length!==i.length)return!0;for(let a=0;a<o.length;a++)if(i[a]!==o[a])return!0;return!1}function l5(i){let{explicitResize:o=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i.__hooks={obsolete:!1,error:!1,waitForData:!1,chain:{promise:null,resolve:()=>{}},list:[],snaps:[],menus:[],actions:{list:[]},pendingEffects:[],pendingLayoutEffects:[],pendingPromises:[],resizer:{setters:[],explicitResize:o},accessibility:{setter:null},contraintsWarning:!0}}function TD(i){Xm(i.__hooks.list,!0),i.__hooks.obsolete=!0,i.__hooks.list.length=0,i.__hooks.pendingEffects.length=0,i.__hooks.pendingLayoutEffects.length=0,i.__hooks.actions=null,i.__hooks.imperativeHandle=null,i.__hooks.resizer=null,i.__hooks.accessibility=null,i.__actionsDispatch=null,clearTimeout(i.__hooks.micro),cancelAnimationFrame(i.__hooks.macro)}function G1(i){return U1.apply(this,arguments)}function U1(){return U1=qe(function*(i){if(i.__hooks.obsolete)return Promise.resolve();vs=-1,ln=i;try{ln.fn.call(null)}catch(a){console.error(a)}ln.__hooks.initiated=!0;const o=ln.__hooks;return W1(ln),vs=void 0,ln=void 0,o.chain.promise||(o.chain.promise=new Promise(a=>{o.chain.resolve=a})),Xm((a=o).pendingLayoutEffects),function(a){a.macro||(a.macro=requestAnimationFrame(()=>{var u,f;Xm((u=a).pendingEffects),u.macro=null,(f=u).pendingPromises.length||f.micro||f.macro||(f.chain.promise=null,f.chain.resolve(!f.waitForData))}))}(o),o.chain.promise;var a}),U1.apply(this,arguments)}function Xm(i,o){try{i.forEach(a=>{"function"==typeof a.teardown&&a.teardown(),o||(a.teardown=a.value[0]())})}catch(a){console.error(a)}i.length=0}function OD(i,o){try{return Promise.all(i.__hooks.snaps.map(a=>Promise.resolve(a.fn(o)))).then(a=>a[a.length-1])}catch(a){console.error(a)}return Promise.resolve()}function c5(i,o,a,u){try{return Promise.all(i.__hooks.menus.map(f=>Promise.resolve(f.fn(o,a,u)))).then(f=>f[f.length-1])}catch(f){console.error(f)}return Promise.resolve()}function u5(i){return i.__hooks.imperativeHandle}function W1(i){i.__actionsDispatch&&i.__hooks.actions.changed&&(i.__actionsDispatch(i.__hooks.actions.list.slice()),i.__hooks.actions.changed=!1)}function d5(i,o){i.__actionsDispatch=o,i.__hooks&&(i.__hooks.actions.changed=!0,W1(i))}function bs(i){if(void 0===ln)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const o=ln.__hooks;return i>=o.list.length&&o.list.push({}),o.list[i]}function Rr(i){return bs(++vs),ln.context[i]}function LD(i){i.__hooks&&(i.__hooks.resizer.update=!0)}function K1(i){return{__hooked:!0,fn:i,initiate:l5,run:G1,teardown:TD,runSnaps:OD,runMenu:c5,focus:p5,blur:g5,observeActions:d5,getImperativeHandle:u5,updateRectOnNextRun:LD}}function af(i){const o=bs(++vs);if(!o.value){o.component=ln;const a=u=>{if(o.component.__hooks.obsolete)return;const f="function"==typeof u?u(o.value[0]):u;var p;f!==o.value[0]&&(o.value[0]=f,(p=o.component).__hooks.micro||(p.__hooks.micro=setTimeout(()=>{p.__hooks.micro=null,G1(p)},0)))};o.value=["function"==typeof i?i():i,a]}return o.value}function PD(i,o){const a=bs(++vs);Zm(a.value?a.value[1]:void 0,o)&&(a.value=[i,o],-1===ln.__hooks.pendingEffects.indexOf(a)&&ln.__hooks.pendingEffects.push(a))}function f5(i,o){const a=bs(++vs);Zm(a.value?a.value[1]:void 0,o)&&(a.value=[i,o],ln.__hooks.pendingLayoutEffects.push(a))}function Jm(i,o){const a=bs(++vs);return Zm(a.value?a.value[0]:void 0,o)&&(a.value=[o,i()]),a.value[1]}function h5(){return Rr("element")}function p5(i){const o=i.__hooks.accessibility;o.active||(o.active=!0,o&&o.setter&&o.setter({active:!0,enabled:o.enabled,blur:o.exitFunction,focus:o.focusFunction,focusSelection:o.focusSelectionFunction}))}function g5(i){const o=i.__hooks.accessibility;o&&o.active&&(o.active=!1,o&&o.setter&&o.setter({active:!1,enabled:o.enabled,blur:o.exitFunction,focus:o.focusFunction,focusSelection:o.focusSelectionFunction}))}const m5={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:i=>Promise.resolve(i)},BL=Object.keys(m5);function qL(i,o){const a=de({},m5);(i=>{Object.keys(ui.prototype).forEach(o=>{i[o]=ui.prototype[o]}),ui.init(i)})(a);const u={emit(){a.emit(...arguments)}};Object.keys(i.component||{}).forEach(g=>{-1!==BL.indexOf(g)?a[g]=i.component[g].bind(u):u[g]=i.component[g]});const f=function(g){let{sn:y,component:b}=g;const x={},_=[],E=(i=>o=>{const a=(u=de(de({},o),{},{action(){"function"==typeof o.action&&o.action.call(a,i),a.emit("changed")},enabled:()=>"function"!=typeof o.enabled||o.enabled.call(a,i),active:"function"==typeof o.active?function(){return o.active.call(a,i)}:void 0}),Object.keys(ui.prototype).forEach(f=>{u[f]=ui.prototype[f]}),ui.init(u),u);var u;return a})(b);return((y.definition.selectionToolbar||{}).items||[]).forEach(D=>{const I=E(D);x[D.key]=I,_.push(I)}),(y.definition.actions||[]).forEach(D=>{const I=E(D);x[D.key]=I}),{actions:x,selectionToolbarItems:_,destroy(){_.length=0}}}({sn:i,component:u}),p=o.app&&o.app.session?o.app.session.getObjectApi({handle:-1}):null;return Object.assign(u,{model:o.model,app:o.app,global:p,selections:o.selections,actions:f.actions}),Object.assign(a,{actions:f.actions,model:o.model,app:o.app,selections:o.selections}),[a,f]}const Hl=()=>{};function y5(i,o){return void 0===i?()=>o:()=>i}function Q1(i){const o=i||{};return{min:"function"==typeof o.min?o.min:y5(o.min,0),max:"function"==typeof o.max?o.max:y5(o.max,1e3),added:o.added||o.add||Hl,description:o.description||Hl,moved:o.moved||o.move||Hl,removed:o.removed||o.remove||Hl,replaced:o.replaced||o.replace||Hl,isDefined:()=>!!i}}function up(i){const o=i.path||"/qHyperCubeDef",a=o.slice(0,-3);if(!1===/\/(qHyperCube|qListObject|qChildList)$/.test(a)){const u=a.includes("/qHyperCube")?"qHyperCubeDef":"qListObjectDef";throw new Error("Incorrect definition for ".concat(u," at ").concat(o,". Valid paths include /qHyperCubeDef, /qListObjectDef, or /qChildListDef, e.g. data/qHyperCubeDef"))}return{propertyPath:o,layoutPath:a,resolveLayout:u=>((i,o,a)=>{const u=o.split("/");let f=i;if(void 0===f)return a;for(let p=0;p<u.length;++p)if(""!==u[p]){if(void 0===f[u[p]])return a;f=f[u[p]]}return f})(u,a,{}),dimensions:Q1(i.dimensions),measures:Q1(i.measures)}}function FD(){let i,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=o.properties||{};return o.properties&&(o.properties.initial||o.properties.onChange)&&(a=o.properties.initial,i=o.properties.onChange),{properties:{initial:a,onChange:i},data:{targets:((o.data||{}).targets||[]).map(up)},exportProperties:o.exportProperties,importProperties:o.importProperties}}function v5(i,o){let a;a="function"==typeof i?i(o):i;const u={qae:FD(a.qae),component:a.component||{},create:f=>function VL(i,o,a){"function"==typeof i.component&&(i.component=K1(i.component));const[u,f]=i.component&&i.component.__hooked?function(g,y,b){const x=y.app&&y.app.session?y.app.session.getObjectApi({handle:-1}):void 0;let _=!1;const E={},D=["appLayout","constraints","interactions"],I={},C={};y.model&&y.model.session||(I.select=!0,I.edit=!0,C.select=!1,C.edit=!1);const A={context:{model:y.model,app:y.app,global:x,selections:y.selections,nebbie:y.nebbie,element:void 0,emitter:y.emitter,deviceType:b.deviceType,theme:void 0,translator:b.translator,navigation:y.navigation,layout:{},appLayout:{},keyboardNavigation:y.keyboardNavigation,focusHandler:y.focusHandler,constraints:I,interactions:C,options:{},plugins:[]},fn:g.component.fn,created(){},mounted(M){this.context.element=M,g.component.initiate(A,{explicitResize:!!y.explicitResize})},render(M){let T=!_||!1;if(M){if(M.layout&&M.layout!==this.context.layout&&(T=!0,this.context.layout=M.layout),M.context&&M.context.theme&&(this.context.theme=M.context.theme),M.context&&!!M.context.keyboardNavigation!=!!this.context.keyboardNavigation&&(this.context.keyboardNavigation=!!M.context.keyboardNavigation,T=!0),M.context&&M.context.focusHandler&&(this.context.focusHandler=M.context.focusHandler),M.options){const O={};let L=!1;Object.keys(M.options).forEach(F=>{O[F]=M.options[F],this.context.options[F]!==M.options[F]&&(L=!0)}),L&&(this.context.options=O,T=!0)}if(M.plugins){let O=this.context.plugins.length!==M.plugins.length;M.plugins.forEach((L,F)=>{this.context.plugins[F]!==L&&(O=!0)}),O&&(this.context.plugins=[...M.plugins],T=!0)}D.forEach(O=>{const L=M.context;if(L&&Object.prototype.hasOwnProperty.call(L,O)){let F=JSON.stringify(L[O]);"constraints"===O&&(F=JSON.stringify(de(de({},L[O]),I))),"interactions"===O&&(F=JSON.stringify(de(de({},L[O]),C))),F!==E[O]&&(T=!0,E[O]=F,this.context[O]=JSON.parse(F))}})}else T=!0;return this.context.theme&&this.context.theme.name()!==E.themeName&&(T=!0,E.themeName=this.context.theme.name()),this.context.translator.language()!==E.language&&(T=!0,E.language=A.context.translator.language()),T?(_=!0,this.currentResult=g.component.run(this),this.currentResult):this.currentResult||Promise.resolve()},resize(){return g.component.updateRectOnNextRun(this),this.render()},willUnmount(){g.component.teardown(this)},setSnapshotData(M){return g.component.runSnaps(this,M)},onContextMenu(M,T,O){return g.component.runMenu(this,M,T,O)},focus(){g.component.focus(this)},blur(){g.component.blur(this)},getImperativeHandle(){return g.component.getImperativeHandle(this)},destroy(){},observeActions(M){g.component.observeActions(this,M)},isHooked:!0};return D.forEach(M=>{E[M]=JSON.stringify(A.context[M])}),E.themeName=A.context.theme?A.context.theme.name():void 0,E.language=A.context.translator?A.context.translator.language():void 0,Object.assign(A,{selections:y.selections}),[A,null]}(i,o,a):qL(i,o),p=[];return o.model.__snInterceptor&&o.model.__snInterceptor.teardown(),i.qae.properties.onChange&&(o.model.__snInterceptor={setProperties:o.model.setProperties,applyPatches:o.model.applyPatches,teardown:void 0},o.model.setProperties=function(){for(var g=arguments.length,y=new Array(g),b=0;b<g;b++)y[b]=arguments[b];try{i.qae.properties.onChange.call({model:o.model},...y)}catch(x){}return o.model.__snInterceptor.setProperties.call(this,...y)},o.model.applyPatches=function(g,y){return o.model[y?"getEffectiveProperties":"getProperties"]().then(x=>{const _=Ho.clone(x),E=g.map(I=>({op:I.qOp,value:JSON.parse(I.qValue),path:I.qPath}));Ho.apply(x,E);try{i.qae.properties.onChange.call({model:o.model},x)}catch(I){}const D=Ho.generate(_,x).map(I=>({qOp:I.op,qValue:JSON.stringify(I.value),qPath:I.path}));return o.model.__snInterceptor.applyPatches.call(this,D,y)})},o.model.__snInterceptor.teardown=()=>{o.model.__snInterceptor&&(o.model.setProperties=o.model.__snInterceptor.setProperties,delete o.model.__snInterceptor)},p.push(o.model.__snInterceptor.teardown)),{generator:i,component:u,selectionToolbar:{items:f?f.selectionToolbarItems:[]},destroy(){p.forEach(g=>g())},logicalSize:i.definition.logicalSize||(()=>!1)}}(u,f,o),definition:{}};return Object.keys(a).forEach(f=>{u[f]||(u.definition[f]=a[f])}),u}const ey=(i,o,a)=>{if(!i)return Promise.resolve();let u=Ho.generate(o,a);return Wr(!0,o,a),u&&u.length?(u=u.map(f=>({qOp:f.op,qValue:JSON.stringify(f.value),qPath:f.path})),i.__snInterceptor?i.__snInterceptor.applyPatches.call(i,u,!0):i.applyPatches(u,!0)):Promise.resolve()},Z1=()=>{};function ws(){let i,{model:o,halo:a,navigation:u,initialError:f,onDestroy:p=qe(function*(){}),onRender:g=(()=>{}),onError:y=(()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},b=Z1,x=null,_=null,E=null,D=null;const I=new Promise(F=>{E=F}),C=new Promise(F=>{D=F}),A=F=>()=>{null==F||F(),D(),g()};let M={},T=[];const O=new ui;return{id:o.id,model:o,destroy:()=>qe(function*(){yield p(),b(),b=Z1})(),convertTo(F){var P=arguments;return qe(function*(){let q=P.length>2&&void 0!==P[2]&&P[2];if(!(P.length>1&&void 0!==P[1])||P[1]){const $=yield o.getLayout();if(MD($)&&!q){const le=yield op({halo:a,model:o,cellRef:x,newType:F});return yield Qm(o,le.qProperty),le}const Q=yield o.getEffectiveProperties(),X=yield op({halo:a,model:o,cellRef:x,newType:F,properties:Q}),ae=X.qProperty;return yield ey(o,Q,ae),X}return yield op({halo:a,model:o,cellRef:x,newType:F})})()},toggleDataView:F=>qe(function*(){let P;if(i||!1===F)i&&!0!==F&&(P=o,yield a.app.destroySessionObject(i),i=void 0);else{let q=a.config.context.dataViewType;const $=yield o.getEffectiveProperties();if(!a.types.getSupportedVersion(q)){if(!a.types.getSupportedVersion("table"))throw new Error("No data view type registered");q="table"}const Q=yield op({halo:a,model:o,cellRef:x,newType:q,properties:$,viewDataMode:!0});P=yield a.app.createSessionObject(Q.qProperty),i=P.id}P&&x.current.setModel(P)})(),addListener(F,P){O.addListener(F,P)},removeListener(F,P){O.removeListener(F,P)},getImperativeHandle:(F=qe(function*(){return yield C,x.current.getImperativeHandle()}),function(){return F.apply(this,arguments)}),takeSnapshot:function(){var F=qe(function*(){return yield C,x.current.takeSnapshot()});return function(){return F.apply(this,arguments)}}(),__DO_NOT_USE__:{mount(F){if(_)throw new Error("Already mounted");if(!(F instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return _=F,[b,x]=function(P){let{halo:q,element:$,model:Q,initialSnOptions:X,initialSnPlugins:ae,onMount:le,emitter:oe,initialError:K,navigation:U,onError:ne}=P;const{root:se}=q,he=Y.createRef(),B=Oi(),G=Gs.createPortal(Y.createElement(RD,{ref:he,halo:q,model:Q,currentId:B,initialSnOptions:X,initialSnPlugins:ae,initialError:K,onMount:le,emitter:oe,navigation:U,onError:ne}),$,B),Z=()=>{se.remove(G),Q.removeListener("closed",Z)};return Q.on("closed",Z),se.add(G),se.addCell(B,he),[Z,he]}({halo:a,element:F,model:o,initialSnOptions:M,initialSnPlugins:T,initialError:f,onMount:E,emitter:O,navigation:u,onError:y}),I},applyProperties:F=>qe(function*(){const P=cp("/",F,yield o.getEffectiveProperties());if(P.length)return o.applyPatches(P,!0)})(),options(F){var P;(P=qe(function*(q){const $=q.onInitialRender;_?qe(function*(){yield I,x.current.setSnOptions(de(de(de({},M),q),{onInitialRender:A($)}))})():M=de(de(de({},M),q),{onInitialRender:A($)})}),function(q){return P.apply(this,arguments)})(F)},plugins(F){var P;(P=qe(function*(q){V1(q),_?qe(function*(){yield I,x.current.setSnPlugins(q)})():T=q}),function(q){return P.apply(this,arguments)})(F)},exportImage:()=>x.current.exportImage(),takeSnapshot:()=>x.current.takeSnapshot(),getModel:()=>o,convert:{toType:F=>qe(function*(){const P=yield o.getEffectiveProperties(),q=yield op({halo:a,model:o,cellRef:x,newType:F,properties:P}),$=q.qProperty;return yield ey(o,P,$),q})(),revert:()=>qe(function*(){yield o.clearSoftPatches()})()}}};var F}function ty(i,o,a,u,f){return ND.apply(this,arguments)}function ND(){return ND=qe(function*(i,o,a,u,f){let p=arguments.length>5&&void 0!==arguments[5]?arguments[5]:qe(function*(){});const{onRender:g,onError:y}=o,b=ws({model:i,halo:a,navigation:u,initialError:f,onDestroy:p,onRender:g,onError:y});return o.options&&b.__DO_NOT_USE__.options(o.options),o.plugins&&b.__DO_NOT_USE__.plugins(o.plugins),o.element&&(yield b.__DO_NOT_USE__.mount(o.element)),b}),ND.apply(this,arguments)}function b5(i,o,a,u){return X1.apply(this,arguments)}function X1(){return X1=qe(function*(i,o,a,u){let{type:f,version:p,fields:g,properties:y,extendProperties:b}=i,x={};const _=[],{modelStore:E}=u;try{const D=o.types.get({name:f,version:p});x=yield D.initialProperties(y,b);const I=yield D.supernova();g&&(yield bD({sn:I,properties:x,fields:g,children:_},o)),y&&I&&I.qae.properties.onChange&&I.qae.properties.onChange.call({},x)}catch(D){x=a?null:{qInfo:{qType:f},visualization:f}}if(!a){const D=yield o.app.createObject(x);return _.length>0&&(yield D.setFullPropertyTree({qProperty:x,qChildren:_})),E.set(D.id,D),D}return x}),X1.apply(this,arguments)}function jD(i,o,a){return i.bounds?i.bounds:{y:i.row/a*100,x:i.col/o*100,width:i.colspan/o*100,height:i.rowspan/a*100}}const $L=z.forwardRef((i,o)=>{var a;let{model:u,halo:f,initialSnOptions:p,initialSnPlugins:g,initialError:y,onMount:b,unmount:x,navigation:_,onError:E}=i;const{root:D}=f,[I,C]=z.useState(u),[A]=Vo(I),{theme:M,modelStore:T}=z.useContext(sr),[O,L]=z.useState([]),[F,P]=z.useState(void 0),[q,$]=z.useState(void 0),[Q,X]=z.useState(""),ae=z.useRef({cellCount:0,cellsRendered:0,initialRender:!1});null==_||null===(a=_.setCurrentSheetId)||void 0===a||a.call(_,I.id),z.useEffect(()=>{if(A){const U=JSON.stringify(A.cells);if(U===Q)return;X(U),function(){var se=qe(function*(){O.forEach(te=>{D.removeCell(te.currentId)});const he=A.cells;ae.cellCount=he.length,ae.cellsRendered=0;const B=()=>{ae.cellsRendered++,ae.cellsRendered!==ae.cellCount||ae.initialRender||(ae.initialRender=!0,p.onInitialRender())},{columns:G,rows:Z}=A,re=yield Promise.all(he.map(function(){var te=qe(function*(ce){let ye;const Se=new Promise(Ne=>{ye=Ne}),Ae=O.find(Ne=>Ne.id===ce.name);return Ae?(Ae.bounds=jD(ce,G,Z),delete Ae.mountedPromise,Ae):{model:(yield(Ne=qe(function*(Ve,Re,Me){let{id:nt,options:Ge,plugins:yt,element:Rt}=Ve;const{modelStore:Bt,rpcRequestModelStore:ze}=Me,It="".concat(nt);let ct=ze.get(It);ct||(ct=Re.app.getObject(nt),ze.set(It,ct));const Ht=yield ct;return Bt.set(It,Ht),ty(Ht,{options:Ge,plugins:yt,element:Rt},Re)}),function(Ve,Re,Me){return Ne.apply(this,arguments)})({id:ce.name},f,T)).model,id:ce.name,bounds:jD(ce,G,Z),cellRef:Y.createRef(),currentId:Oi(),mounted:ye,mountedPromise:Se,options:de(de({},p),{onInitialRender:B})};var Ne});return function(ce){return te.apply(this,arguments)}}()));re.forEach(te=>D.addCell(te.currentId,te.cellRef)),L(re)});return function(){return se.apply(this,arguments)}}()()}},[A]),z.useEffect(()=>{const U=()=>{I.removeListener("closed",U),x()};return I.on("closed",U),()=>I.removeListener("closed",U)},[I]);const le=z.useMemo(()=>O?O.map(U=>function(ne,se,he,B,G,Z,re,te){const{x:ce,y:ye,width:Se,height:Ae}=ne.bounds;return Y.createElement("div",{style:{left:"".concat(ce,"%"),top:"".concat(ye,"%"),width:"".concat(Se,"%"),height:"".concat(Ae,"%"),position:"absolute"},key:ne.model.id},Y.createElement(RD,{ref:ne.cellRef,halo:se,model:ne.model,currentId:ne.currentId,initialSnOptions:he,initialSnPlugins:B,initialError:G,onMount:Z,navigation:re,onError:te}))}(U,f,U.options,g,y,U.mounted,_,E)):[],[O]);z.useEffect(()=>{const U=null!=A&&A.components?A.components.find(ne=>"general"===ne.key):null;P(qm(U,f.public.theme)),$(E1(U,f.app))},[A,f.public.theme,f.app,M]),z.useImperativeHandle(o,()=>({setModel:C}),[]);const oe=!A||Number.isNaN(A.height)?"100%":"".concat(Number(A.height),"%"),K=O.map(U=>U.mountedPromise);return K.filter(U=>!!U).length&&Promise.all(K).then(()=>{b()}),Y.createElement("div",{className:"njs-sheet",style:{width:"100%",height:oe,position:"relative",backgroundColor:F,backgroundImage:q&&q.url?"url(".concat(q.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:q&&q.size,backgroundPosition:q&&q.pos}},le)}),w5=()=>{};function HL(){let{model:i,halo:o,navigation:a,initialError:u,onDestroy:f=qe(function*(){}),onRender:p=(()=>{}),onError:g=(()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},y=w5,b=null,x=null,_=null,E=null;const D=new Promise(O=>{_=O}),I=new Promise(O=>{E=O}),C=O=>()=>{null==O||O(),E(),p()};let A={},M=[];return{id:i.id,model:i,navigation:a,getImperativeHandle:(O=qe(function*(){return yield I,b.current.getImperativeHandle()}),function(){return O.apply(this,arguments)}),destroy:()=>qe(function*(){yield f(),y(),y=w5})(),__DO_NOT_USE__:{mount(O){if(x)throw new Error("Already mounted");if(!(O instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return x=O,[y,b]=function(L){let{halo:F,element:P,model:q,initialSnOptions:$,initialSnPlugins:Q,onMount:X,initialError:ae,navigation:le,onError:oe}=L;const{root:K}=F,U=Y.createRef();let ne;const se=()=>{K.remove(ne)};return ne=Gs.createPortal(Y.createElement($L,{ref:U,halo:F,model:q,initialSnOptions:$,initialSnPlugins:Q,initialError:ae,onMount:X,unmount:se,navigation:le,onError:oe}),P,q.id),le.setSheetRef(U),K.add(ne),[se,U]}({halo:o,element:O,model:i,initialSnOptions:A,initialSnPlugins:M,initialError:u,onMount:_,navigation:a,onError:g}),D},applyProperties:O=>qe(function*(){const L=cp("/",O,yield i.getEffectiveProperties());if(L.length)return i.applyPatches(L,!0)})(),options(O){var L;(L=qe(function*(F){const P=F.onInitialRender;x?qe(function*(){yield D,b.current.setSnOptions(de(de(de({},A),F),{onInitialRender:C(P)}))})():A=de(de(de({},A),F),{onInitialRender:C(P)})}),function(F){return L.apply(this,arguments)})(O)},plugins(O){var L;(L=qe(function*(F){V1(F),x?qe(function*(){yield D,b.current.setSnPlugins(F)})():M=F}),function(F){return L.apply(this,arguments)})(O)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>i}};var O}function x5(i,o,a){return BD.apply(this,arguments)}function BD(){return BD=qe(function*(i,o,a){let{id:u,options:f,plugins:p,element:g,onRender:y,onError:b,navigation:x}=i;const{modelStore:_,rpcRequestModelStore:E}=a,D="".concat(u);let I=E.get(D);I||(I=o.app.getObject(u),E.set(D,I));const C=yield I;_.set(D,C);const A=x||("sheet"===C.genericType?function(M,T,O){var L;const{galaxy:F}=M.public;var P;if(null!==(L=F.anything)&&void 0!==L&&null!==(L=L.sense)&&void 0!==L&&L.navigation)return null===(P=F.anything)||void 0===P||null===(P=P.sense)||void 0===P?void 0:P.navigation;const q={model:O},$={goToSheet:(Q=qe(function*(X){var ae,le;if(!q.sheetRef)return;const{modelStore:oe,rpcRequestModelStore:K}=T,U="".concat(X);let ne,se=K.get(U);se||(se=M.app.getObject(X),K.set(U,se));try{if(ne=yield se,"sheet"!==ne.genericType)return}catch(he){return}oe.set(U,ne),null===(ae=q.sheetRef)||void 0===ae||null===(ae=ae.current)||void 0===ae||null===(le=ae.setModel)||void 0===le||le.call(ae,ne),q.model=ne,$.emit("sheetChanged")}),function(ae){return Q.apply(this,arguments)}),setSheetRef:Q=>{q.sheetRef=Q},getCurrentSheetId:()=>!!q.model&&q.model.id};var Q;return Vd($),$}(o,a,C):void 0);return"sheet"===C.genericType?(M=qe(function*(T,O,L,F,P){let q=arguments.length>5&&void 0!==arguments[5]?arguments[5]:qe(function*(){});const{onRender:$,onError:Q}=O,X=HL({model:T,halo:L,navigation:F,initialError:P,onDestroy:q,onRender:$,onError:Q});return O.options&&X.__DO_NOT_USE__.options(O.options),O.plugins&&X.__DO_NOT_USE__.plugins(O.plugins),O.element&&(yield X.__DO_NOT_USE__.mount(O.element)),X}),function(T,O,L,F,P){return M.apply(this,arguments)})(C,{options:f,plugins:p,element:g,onRender:y,onError:b},o,A):ty(C,{options:f,plugins:p,element:g,onRender:y,onError:b},o,A);var M}),BD.apply(this,arguments)}function _5(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:o=>!0===i[o]}}var S5,zD,ny,qD;function Kn(){if(qD)return ny;qD=1;const i=Object.freeze({loose:!0}),o=Object.freeze({});return ny=a=>a?"object"!=typeof a?i:a:o}var VD,ry,$D,HD,iy,oy,J1,GD,sy,ew,UD,tw,ay,Za,nw,ly,WD,KD,QD,YD,ZD,cy,XD,rw,E5,dp,iw,ow,JD,uy,fp,hp={exports:{}};function dy(){return ry?VD:(ry=1,VD={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2})}function fy(){return HD?$D:(HD=1,$D="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){for(var o=arguments.length,a=new Array(o),u=0;u<o;u++)a[u]=arguments[u];return console.error("SEMVER",...a)}:()=>{})}function hy(){return iy||(iy=1,function(i,o){const{MAX_SAFE_COMPONENT_LENGTH:a,MAX_SAFE_BUILD_LENGTH:u,MAX_LENGTH:f}=dy(),p=fy(),g=(o=i.exports={}).re=[],y=o.safeRe=[],b=o.src=[],x=o.safeSrc=[],_=o.t={};let E=0;const D="[a-zA-Z0-9-]",I=[["\\s",1],["\\d",f],[D,u]],C=(A,M,T)=>{const O=(F=>{for(const[P,q]of I)F=F.split("".concat(P,"*")).join("".concat(P,"{0,").concat(q,"}")).split("".concat(P,"+")).join("".concat(P,"{1,").concat(q,"}"));return F})(M),L=E++;p(A,L,M),_[A]=L,b[L]=M,x[L]=O,g[L]=new RegExp(M,T?"g":void 0),y[L]=new RegExp(O,T?"g":void 0)};C("NUMERICIDENTIFIER","0|[1-9]\\d*"),C("NUMERICIDENTIFIERLOOSE","\\d+"),C("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-]".concat(D,"*")),C("MAINVERSION","(".concat(b[_.NUMERICIDENTIFIER],")\\.")+"(".concat(b[_.NUMERICIDENTIFIER],")\\.")+"(".concat(b[_.NUMERICIDENTIFIER],")")),C("MAINVERSIONLOOSE","(".concat(b[_.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(b[_.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(b[_.NUMERICIDENTIFIERLOOSE],")")),C("PRERELEASEIDENTIFIER","(?:".concat(b[_.NUMERICIDENTIFIER],"|").concat(b[_.NONNUMERICIDENTIFIER],")")),C("PRERELEASEIDENTIFIERLOOSE","(?:".concat(b[_.NUMERICIDENTIFIERLOOSE],"|").concat(b[_.NONNUMERICIDENTIFIER],")")),C("PRERELEASE","(?:-(".concat(b[_.PRERELEASEIDENTIFIER],"(?:\\.").concat(b[_.PRERELEASEIDENTIFIER],")*))")),C("PRERELEASELOOSE","(?:-?(".concat(b[_.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(b[_.PRERELEASEIDENTIFIERLOOSE],")*))")),C("BUILDIDENTIFIER","".concat(D,"+")),C("BUILD","(?:\\+(".concat(b[_.BUILDIDENTIFIER],"(?:\\.").concat(b[_.BUILDIDENTIFIER],")*))")),C("FULLPLAIN","v?".concat(b[_.MAINVERSION]).concat(b[_.PRERELEASE],"?").concat(b[_.BUILD],"?")),C("FULL","^".concat(b[_.FULLPLAIN],"$")),C("LOOSEPLAIN","[v=\\s]*".concat(b[_.MAINVERSIONLOOSE]).concat(b[_.PRERELEASELOOSE],"?").concat(b[_.BUILD],"?")),C("LOOSE","^".concat(b[_.LOOSEPLAIN],"$")),C("GTLT","((?:<|>)?=?)"),C("XRANGEIDENTIFIERLOOSE","".concat(b[_.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),C("XRANGEIDENTIFIER","".concat(b[_.NUMERICIDENTIFIER],"|x|X|\\*")),C("XRANGEPLAIN","[v=\\s]*(".concat(b[_.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(b[_.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(b[_.XRANGEIDENTIFIER],")")+"(?:".concat(b[_.PRERELEASE],")?").concat(b[_.BUILD],"?")+")?)?"),C("XRANGEPLAINLOOSE","[v=\\s]*(".concat(b[_.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(b[_.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(b[_.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(b[_.PRERELEASELOOSE],")?").concat(b[_.BUILD],"?")+")?)?"),C("XRANGE","^".concat(b[_.GTLT],"\\s*").concat(b[_.XRANGEPLAIN],"$")),C("XRANGELOOSE","^".concat(b[_.GTLT],"\\s*").concat(b[_.XRANGEPLAINLOOSE],"$")),C("COERCEPLAIN","".concat("(^|[^\\d])(\\d{1,").concat(a,"})")+"(?:\\.(\\d{1,".concat(a,"}))?")+"(?:\\.(\\d{1,".concat(a,"}))?")),C("COERCE","".concat(b[_.COERCEPLAIN],"(?:$|[^\\d])")),C("COERCEFULL",b[_.COERCEPLAIN]+"(?:".concat(b[_.PRERELEASE],")?")+"(?:".concat(b[_.BUILD],")?")+"(?:$|[^\\d])"),C("COERCERTL",b[_.COERCE],!0),C("COERCERTLFULL",b[_.COERCEFULL],!0),C("LONETILDE","(?:~>?)"),C("TILDETRIM","(\\s*)".concat(b[_.LONETILDE],"\\s+"),!0),o.tildeTrimReplace="$1~",C("TILDE","^".concat(b[_.LONETILDE]).concat(b[_.XRANGEPLAIN],"$")),C("TILDELOOSE","^".concat(b[_.LONETILDE]).concat(b[_.XRANGEPLAINLOOSE],"$")),C("LONECARET","(?:\\^)"),C("CARETTRIM","(\\s*)".concat(b[_.LONECARET],"\\s+"),!0),o.caretTrimReplace="$1^",C("CARET","^".concat(b[_.LONECARET]).concat(b[_.XRANGEPLAIN],"$")),C("CARETLOOSE","^".concat(b[_.LONECARET]).concat(b[_.XRANGEPLAINLOOSE],"$")),C("COMPARATORLOOSE","^".concat(b[_.GTLT],"\\s*(").concat(b[_.LOOSEPLAIN],")$|^$")),C("COMPARATOR","^".concat(b[_.GTLT],"\\s*(").concat(b[_.FULLPLAIN],")$|^$")),C("COMPARATORTRIM","(\\s*)".concat(b[_.GTLT],"\\s*(").concat(b[_.LOOSEPLAIN],"|").concat(b[_.XRANGEPLAIN],")"),!0),o.comparatorTrimReplace="$1$2$3",C("HYPHENRANGE","^\\s*(".concat(b[_.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(b[_.XRANGEPLAIN],")")+"\\s*$"),C("HYPHENRANGELOOSE","^\\s*(".concat(b[_.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(b[_.XRANGEPLAINLOOSE],")")+"\\s*$"),C("STAR","(<|>)?=?\\s*\\*"),C("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),C("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(hp,hp.exports)),hp.exports}function py(){if(sy)return GD;sy=1;const i=fy(),{MAX_LENGTH:o,MAX_SAFE_INTEGER:a}=dy(),{safeRe:u,safeSrc:f,t:p}=hy(),g=Kn(),{compareIdentifiers:y}=function(){if(J1)return oy;J1=1;const x=/^[0-9]+$/,_=(E,D)=>{const I=x.test(E),C=x.test(D);return I&&C&&(E=+E,D=+D),E===D?0:I&&!C?-1:C&&!I?1:E<D?-1:1};return oy={compareIdentifiers:_,rcompareIdentifiers:(E,D)=>_(D,E)}}();class b{constructor(_,E){if(E=g(E),_ instanceof b){if(_.loose===!!E.loose&&_.includePrerelease===!!E.includePrerelease)return _;_=_.version}else if("string"!=typeof _)throw new TypeError('Invalid version. Must be a string. Got type "'.concat(typeof _,'".'));if(_.length>o)throw new TypeError("version is longer than ".concat(o," characters"));i("SemVer",_,E),this.options=E,this.loose=!!E.loose,this.includePrerelease=!!E.includePrerelease;const D=_.trim().match(E.loose?u[p.LOOSE]:u[p.FULL]);if(!D)throw new TypeError("Invalid Version: ".concat(_));if(this.raw=_,this.major=+D[1],this.minor=+D[2],this.patch=+D[3],this.major>a||this.major<0)throw new TypeError("Invalid major version");if(this.minor>a||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>a||this.patch<0)throw new TypeError("Invalid patch version");this.prerelease=D[4]?D[4].split(".").map(I=>{if(/^[0-9]+$/.test(I)){const C=+I;if(C>=0&&C<a)return C}return I}):[],this.build=D[5]?D[5].split("."):[],this.format()}format(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}toString(){return this.version}compare(_){if(i("SemVer.compare",this.version,this.options,_),!(_ instanceof b)){if("string"==typeof _&&_===this.version)return 0;_=new b(_,this.options)}return _.version===this.version?0:this.compareMain(_)||this.comparePre(_)}compareMain(_){return _ instanceof b||(_=new b(_,this.options)),y(this.major,_.major)||y(this.minor,_.minor)||y(this.patch,_.patch)}comparePre(_){if(_ instanceof b||(_=new b(_,this.options)),this.prerelease.length&&!_.prerelease.length)return-1;if(!this.prerelease.length&&_.prerelease.length)return 1;if(!this.prerelease.length&&!_.prerelease.length)return 0;let E=0;do{const D=this.prerelease[E],I=_.prerelease[E];if(i("prerelease compare",E,D,I),void 0===D&&void 0===I)return 0;if(void 0===I)return 1;if(void 0===D)return-1;if(D!==I)return y(D,I)}while(++E)}compareBuild(_){_ instanceof b||(_=new b(_,this.options));let E=0;do{const D=this.build[E],I=_.build[E];if(i("build compare",E,D,I),void 0===D&&void 0===I)return 0;if(void 0===I)return 1;if(void 0===D)return-1;if(D!==I)return y(D,I)}while(++E)}inc(_,E,D){if(_.startsWith("pre")){if(!E&&!1===D)throw new Error("invalid increment argument: identifier is empty");if(E){const I=new RegExp("^".concat(this.options.loose?f[p.PRERELEASELOOSE]:f[p.PRERELEASE],"$")),C="-".concat(E).match(I);if(!C||C[1]!==E)throw new Error("invalid identifier: ".concat(E))}}switch(_){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",E,D);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",E,D);break;case"prepatch":this.prerelease.length=0,this.inc("patch",E,D),this.inc("pre",E,D);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",E,D),this.inc("pre",E,D);break;case"release":if(0===this.prerelease.length)throw new Error("version ".concat(this.raw," is not a prerelease"));this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const I=Number(D)?1:0;if(0===this.prerelease.length)this.prerelease=[I];else{let C=this.prerelease.length;for(;--C>=0;)"number"==typeof this.prerelease[C]&&(this.prerelease[C]++,C=-2);if(-1===C){if(E===this.prerelease.join(".")&&!1===D)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(I)}}if(E){let C=[E,I];!1===D&&(C=[E]),0===y(this.prerelease[0],E)?isNaN(this.prerelease[1])&&(this.prerelease=C):this.prerelease=C}break}default:throw new Error("invalid increment argument: ".concat(_))}return this.raw=this.format(),this.build.length&&(this.raw+="+".concat(this.build.join("."))),this}}return GD=b}function pp(){if(UD)return ew;UD=1;const i=py();return ew=(o,a,u)=>new i(o,u).compare(new i(a,u)),ew}function D5(){if(JD)return ow;JD=1;const i=/\s+/g;class o{constructor(U,ne){if(ne=u(ne),U instanceof o)return U.loose===!!ne.loose&&U.includePrerelease===!!ne.includePrerelease?U:new o(U.raw,ne);if(U instanceof f)return this.raw=U.value,this.set=[[U]],this.formatted=void 0,this;if(this.options=ne,this.loose=!!ne.loose,this.includePrerelease=!!ne.includePrerelease,this.raw=U.trim().replace(i," "),this.set=this.raw.split("||").map(se=>this.parseRange(se.trim())).filter(se=>se.length),!this.set.length)throw new TypeError("Invalid SemVer Range: ".concat(this.raw));if(this.set.length>1){const se=this.set[0];if(this.set=this.set.filter(he=>!C(he[0])),0===this.set.length)this.set=[se];else if(this.set.length>1)for(const he of this.set)if(1===he.length&&A(he[0])){this.set=[he];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let U=0;U<this.set.length;U++){U>0&&(this.formatted+="||");const ne=this.set[U];for(let se=0;se<ne.length;se++)se>0&&(this.formatted+=" "),this.formatted+=ne[se].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(U){const ne=((this.options.includePrerelease&&D)|(this.options.loose&&I))+":"+U,se=a.get(ne);if(se)return se;const he=this.options.loose;U=U.replace(he?y[b.HYPHENRANGELOOSE]:y[b.HYPHENRANGE],le(this.options.includePrerelease)),p("hyphen replace",U),U=U.replace(y[b.COMPARATORTRIM],x),p("comparator trim",U),U=U.replace(y[b.TILDETRIM],_),p("tilde trim",U),U=U.replace(y[b.CARETTRIM],E),p("caret trim",U);let G=U.split(" ").map(ce=>T(ce,this.options)).join(" ").split(/\s+/).map(ce=>ae(ce,this.options));he&&(G=G.filter(ce=>(p("loose invalid filter",ce,this.options),!!ce.match(y[b.COMPARATORLOOSE])))),p("range list",G);const Z=new Map,re=G.map(ce=>new f(ce,this.options));for(const ce of re){if(C(ce))return[ce];Z.set(ce.value,ce)}Z.size>1&&Z.has("")&&Z.delete("");const te=[...Z.values()];return a.set(ne,te),te}intersects(U,ne){if(!(U instanceof o))throw new TypeError("a Range is required");return this.set.some(se=>M(se,ne)&&U.set.some(he=>M(he,ne)&&se.every(B=>he.every(G=>B.intersects(G,ne)))))}test(U){if(!U)return!1;if("string"==typeof U)try{U=new g(U,this.options)}catch(ne){return!1}for(let ne=0;ne<this.set.length;ne++)if(oe(this.set[ne],U,this.options))return!0;return!1}}ow=o;const a=new(zD?S5:(zD=1,S5=class{constructor(){this.max=1e3,this.map=new Map}get(K){const U=this.map.get(K);return void 0===U?void 0:(this.map.delete(K),this.map.set(K,U),U)}delete(K){return this.map.delete(K)}set(K,U){if(!this.delete(K)&&void 0!==U){if(this.map.size>=this.max){const ne=this.map.keys().next().value;this.delete(ne)}this.map.set(K,U)}return this}})),u=Kn(),f=function(){if(iw)return dp;iw=1;const K=Symbol("SemVer ANY");class U{static get ANY(){return K}constructor(ce,ye){if(ye=ne(ye),ce instanceof U){if(ce.loose===!!ye.loose)return ce;ce=ce.value}ce=ce.trim().split(/\s+/).join(" "),G("comparator",ce,ye),this.options=ye,this.loose=!!ye.loose,this.parse(ce),this.value=this.semver===K?"":this.operator+this.semver.version,G("comp",this)}parse(ce){const Se=ce.match(this.options.loose?se[he.COMPARATORLOOSE]:se[he.COMPARATOR]);if(!Se)throw new TypeError("Invalid comparator: ".concat(ce));this.operator=void 0!==Se[1]?Se[1]:"","="===this.operator&&(this.operator=""),this.semver=Se[2]?new Z(Se[2],this.options.loose):K}toString(){return this.value}test(ce){if(G("Comparator.test",ce,this.options.loose),this.semver===K||ce===K)return!0;if("string"==typeof ce)try{ce=new Z(ce,this.options)}catch(ye){return!1}return B(ce,this.operator,this.semver,this.options)}intersects(ce,ye){if(!(ce instanceof U))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new re(ce.value,ye).test(this.value):""===ce.operator?""===ce.value||new re(this.value,ye).test(ce.semver):!((ye=ne(ye)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===ce.value)||!ye.includePrerelease&&(this.value.startsWith("<0.0.0")||ce.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!ce.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!ce.operator.startsWith("<"))&&(this.semver.version!==ce.semver.version||!this.operator.includes("=")||!ce.operator.includes("="))&&!(B(this.semver,"<",ce.semver,ye)&&this.operator.startsWith(">")&&ce.operator.startsWith("<"))&&!(B(this.semver,">",ce.semver,ye)&&this.operator.startsWith("<")&&ce.operator.startsWith(">")))}}dp=U;const ne=Kn(),{safeRe:se,t:he}=hy(),B=function C5(){if(E5)return rw;E5=1;const i=function(){if(ay)return tw;ay=1;const g=pp();return tw=(y,b,x)=>0===g(y,b,x)}(),o=function(){if(nw)return Za;nw=1;const g=pp();return Za=(y,b,x)=>0!==g(y,b,x)}(),a=function(){if(WD)return ly;WD=1;const g=pp();return ly=(y,b,x)=>g(y,b,x)>0}(),u=function(){if(QD)return KD;QD=1;const g=pp();return KD=(y,b,x)=>g(y,b,x)>=0}(),f=function(){if(ZD)return YD;ZD=1;const g=pp();return YD=(y,b,x)=>g(y,b,x)<0}(),p=function(){if(XD)return cy;XD=1;const g=pp();return cy=(y,b,x)=>g(y,b,x)<=0}();return rw=(g,y,b,x)=>{switch(y){case"===":return"object"==typeof g&&(g=g.version),"object"==typeof b&&(b=b.version),g===b;case"!==":return"object"==typeof g&&(g=g.version),"object"==typeof b&&(b=b.version),g!==b;case"":case"=":case"==":return i(g,b,x);case"!=":return o(g,b,x);case">":return a(g,b,x);case">=":return u(g,b,x);case"<":return f(g,b,x);case"<=":return p(g,b,x);default:throw new TypeError("Invalid operator: ".concat(y))}}}(),G=fy(),Z=py(),re=D5();return dp}(),p=fy(),g=py(),{safeRe:y,t:b,comparatorTrimReplace:x,tildeTrimReplace:_,caretTrimReplace:E}=hy(),{FLAG_INCLUDE_PRERELEASE:D,FLAG_LOOSE:I}=dy(),C=K=>"<0.0.0-0"===K.value,A=K=>""===K.value,M=(K,U)=>{let ne=!0;const se=K.slice();let he=se.pop();for(;ne&&se.length;)ne=se.every(B=>he.intersects(B,U)),he=se.pop();return ne},T=(K,U)=>(p("comp",K,U),K=P(K,U),p("caret",K),K=L(K,U),p("tildes",K),K=$(K,U),p("xrange",K),K=X(K,U),p("stars",K),K),O=K=>!K||"x"===K.toLowerCase()||"*"===K,L=(K,U)=>K.trim().split(/\s+/).map(ne=>F(ne,U)).join(" "),F=(K,U)=>K.replace(U.loose?y[b.TILDELOOSE]:y[b.TILDE],(se,he,B,G,Z)=>{let re;return p("tilde",K,se,he,B,G,Z),O(he)?re="":O(B)?re=">=".concat(he,".0.0 <").concat(+he+1,".0.0-0"):O(G)?re=">=".concat(he,".").concat(B,".0 <").concat(he,".").concat(+B+1,".0-0"):Z?(p("replaceTilde pr",Z),re=">=".concat(he,".").concat(B,".").concat(G,"-").concat(Z," <").concat(he,".").concat(+B+1,".0-0")):re=">=".concat(he,".").concat(B,".").concat(G," <").concat(he,".").concat(+B+1,".0-0"),p("tilde return",re),re}),P=(K,U)=>K.trim().split(/\s+/).map(ne=>q(ne,U)).join(" "),q=(K,U)=>{p("caret",K,U);const se=U.includePrerelease?"-0":"";return K.replace(U.loose?y[b.CARETLOOSE]:y[b.CARET],(he,B,G,Z,re)=>{let te;return p("caret",K,he,B,G,Z,re),O(B)?te="":O(G)?te=">=".concat(B,".0.0").concat(se," <").concat(+B+1,".0.0-0"):O(Z)?te="0"===B?">=".concat(B,".").concat(G,".0").concat(se," <").concat(B,".").concat(+G+1,".0-0"):">=".concat(B,".").concat(G,".0").concat(se," <").concat(+B+1,".0.0-0"):re?(p("replaceCaret pr",re),te="0"===B?"0"===G?">=".concat(B,".").concat(G,".").concat(Z,"-").concat(re," <").concat(B,".").concat(G,".").concat(+Z+1,"-0"):">=".concat(B,".").concat(G,".").concat(Z,"-").concat(re," <").concat(B,".").concat(+G+1,".0-0"):">=".concat(B,".").concat(G,".").concat(Z,"-").concat(re," <").concat(+B+1,".0.0-0")):(p("no pr"),te="0"===B?"0"===G?">=".concat(B,".").concat(G,".").concat(Z).concat(se," <").concat(B,".").concat(G,".").concat(+Z+1,"-0"):">=".concat(B,".").concat(G,".").concat(Z).concat(se," <").concat(B,".").concat(+G+1,".0-0"):">=".concat(B,".").concat(G,".").concat(Z," <").concat(+B+1,".0.0-0")),p("caret return",te),te})},$=(K,U)=>(p("replaceXRanges",K,U),K.split(/\s+/).map(ne=>Q(ne,U)).join(" ")),Q=(K,U)=>(K=K.trim()).replace(U.loose?y[b.XRANGELOOSE]:y[b.XRANGE],(se,he,B,G,Z,re)=>{p("xRange",K,se,he,B,G,Z,re);const te=O(B),ce=te||O(G),ye=ce||O(Z);return"="===he&&ye&&(he=""),re=U.includePrerelease?"-0":"",te?se=">"===he||"<"===he?"<0.0.0-0":"*":he&&ye?(ce&&(G=0),Z=0,">"===he?(he=">=",ce?(B=+B+1,G=0,Z=0):(G=+G+1,Z=0)):"<="===he&&(he="<",ce?B=+B+1:G=+G+1),"<"===he&&(re="-0"),se="".concat(he+B,".").concat(G,".").concat(Z).concat(re)):ce?se=">=".concat(B,".0.0").concat(re," <").concat(+B+1,".0.0-0"):ye&&(se=">=".concat(B,".").concat(G,".0").concat(re," <").concat(B,".").concat(+G+1,".0-0")),p("xRange return",se),se}),X=(K,U)=>(p("replaceStars",K,U),K.trim().replace(y[b.STAR],"")),ae=(K,U)=>(p("replaceGTE0",K,U),K.trim().replace(y[U.includePrerelease?b.GTE0PRE:b.GTE0],"")),le=K=>(U,ne,se,he,B,G,Z,re,te,ce,ye,Se)=>(ne=O(se)?"":O(he)?">=".concat(se,".0.0").concat(K?"-0":""):O(B)?">=".concat(se,".").concat(he,".0").concat(K?"-0":""):G?">=".concat(ne):">=".concat(ne).concat(K?"-0":""),re=O(te)?"":O(ce)?"<".concat(+te+1,".0.0-0"):O(ye)?"<".concat(te,".").concat(+ce+1,".0-0"):Se?"<=".concat(te,".").concat(ce,".").concat(ye,"-").concat(Se):K?"<".concat(te,".").concat(ce,".").concat(+ye+1,"-0"):"<=".concat(re),"".concat(ne," ").concat(re).trim()),oe=(K,U,ne)=>{for(let se=0;se<K.length;se++)if(!K[se].test(U))return!1;if(U.prerelease.length&&!ne.includePrerelease){for(let se=0;se<K.length;se++)if(p(K[se].semver),K[se].semver!==f.ANY&&K[se].semver.prerelease.length>0){const he=K[se].semver;if(he.major===U.major&&he.minor===U.minor&&he.patch===U.patch)return!0}return!1}return!0};return ow}var e2=Ai(function(){if(fp)return uy;fp=1;const i=D5();return uy=(o,a,u)=>{try{a=new i(a,u)}catch(f){return!1}return a.test(o)},uy}());const lf={};function A5(i,o){const a={};let u=null;return{get:f=>a[f],register:(f,p)=>{if(a[f])throw new Error("Supernova '".concat(i,"@").concat(f,"' already registered."));a[f]=function k5(i,o){let a,u,f=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{meta:p}=f,g={name:i.name,version:i.version,supportsPropertiesVersion:y=>!(y&&p&&p.deps&&p.deps.properties)||e2(y,p.deps.properties),supernova:()=>{return(y=qe(function*(b,x,_,E){let{config:D}=_;const I="".concat(b,"__").concat(x);if(!lf[I]){const C="".concat(b).concat(x&&" v".concat(x)||"");if(E&&"function"!=typeof E)throw new Error("load of visualization '".concat(C,"' is not a fuction, wrap load promise in function"));const A=(E||D.load)({name:b,version:x}),M=Promise.resolve(A);lf[I]=M.then(T=>{if(!T)throw new Error("load() of visualization '".concat(C,"' resolved to an invalid object"));return T}).catch(T=>{throw new iu("Failed to load visualization: '".concat(C,"'"),T)})}return lf[I]}),function(b,x,_,E){return y.apply(this,arguments)})(g.name,g.version,o,f.load).then(y=>(a=a||v5(y,o.public.galaxy),u=JSON.stringify(a.qae.properties.initial),a));var y},initialProperties(y){let b=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.supernova().then(()=>{const x=de({qInfo:{qType:g.name},visualization:g.name,version:g.version,showTitles:!0},JSON.parse(u));return b?(Wr(!0,x,y),x):de(de({},x),y)})}};return g}({name:i,version:f},o,p),u=null},getMatchingVersionFromProperties:f=>{var p;u||(p=Object.keys(a),u=[...p.filter(y=>"undefined"===y),...p.filter(y=>"undefined"!==y).map(y=>y.split(".").map(b=>parseInt(b,10))).sort((y,b)=>y[0]-b[0]||y[1]-b[1]||y[2]-b[2]).map(y=>y.join("."))]);for(let p=u.length-1;p>=0;p--)if(a[u[p]].supportsPropertiesVersion(f))return u[p];return null},versions:a}}function UL(i){let{halo:o,parent:a}=i;const u={},f=a||{get:()=>{}};return{register:(p,g)=>{u[p.name]||(u[p.name]=A5(p.name,o)),u[p.name].register(p.version,g)},getSupportedVersion:(p,g)=>{if(u[p])return u[p].getMatchingVersionFromProperties(g)},get(p){const{name:g}=p;let{version:y}=p;return u[g]?u[g].versions[y]||(y=Object.keys(u[g].versions)[0]):this.register({name:g,version:y}),u[g].get(y)||f.get(p)},getList:()=>Object.keys(u).map(p=>({name:p,versions:Object.keys(u[p].versions).map(g=>"undefined"===g?void 0:g)})),clearFromCache:p=>{var g;u[p]&&(u[p]=void 0),g=p,Object.keys(lf).forEach(y=>{y.split("__")[0]===g&&(lf[y]=void 0)})}}}const R5={context:{theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1,dataViewType:"sn-table"},load:()=>{},types:[],themes:[],anything:{},flags:{KPI_REACTCOLORPICKER:!0,IM_1869_HIDE_DIM_MEA_LINE:!0,IM_1579_HIDE_DIM_MEA:!0,CLIENT_IM_3365:!0},snapshot:{get:function(){var i=qe(function*(o){const a=yield fetch("/njs/snapshot/".concat(o));if(!a.ok)throw new Error(a.statusText);return a.json()});return function(a){return i.apply(this,arguments)}}(),capture:i=>fetch("/njs/capture",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)}).then(o=>o.json())}},t2=function(){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return de(de({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),i)},I5=function(){return[...arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],...arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]].filter((i,o,a)=>a.indexOf(i)===o)};var WL=function i(){let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const a=zx(o.context.language);function u(f,p){if(p)return u.createConfiguration(p)(f);let g=de(de({},o.context),{},{translator:a.translator});const[y,b]=rS({app:f,context:g}),x=function(){let{themes:T=[],loadTheme:O,root:L}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const F=qs();return{setTheme:(P=qe(function*(q){let $=T.filter(X=>X.id===q)[0],Q="dark"===q?"dark":"light";if(!$&&O&&($={load:O}),$&&$.load)try{const X=yield Promise.race([$.load(q),NO(5e3,{__timedOut:!0})]);X.__timedOut||(Q="dark"===X.type?"dark":"light",F.internalAPI.setTheme(X,q),L.setMuiThemeName(Q))}catch(X){}else F.internalAPI.setTheme({type:Q},q),L.setMuiThemeName(Q)}),function($){return P.apply(this,arguments)}),externalAPI:F.externalAPI};var P}({themes:o.themes,loadTheme:o.loadTheme,root:y});g.themeApi=x.externalAPI;const _={galaxy:{translator:a.translator,flags:_5(o.flags),deviceType:BO(o.context.deviceType),hostConfig:o.hostConfig,anything:o.anything},theme:x.externalAPI,translator:a.translator,nebbie:null},E={app:f,root:y,config:o,public:_,context:g,types:null},D=UL({halo:E});o.types.forEach(T=>D.register({name:T.name,version:T.version},{meta:T.meta,load:T.load}));let I=x.setTheme(o.context.theme),C=null,A=null;const M={render:(T=qe(function*(O){return yield I,O.id?x5(O,E,b):(L=qe(function*(F,P,q){let{type:$,version:Q,fields:X,properties:ae,options:le,plugins:oe,element:K,extendProperties:U,navigation:ne,onRender:se,onError:he}=F,B={};const G=[],{modelStore:Z,subscribe:re}=q;let te;try{const Se=P.types.get({name:$,version:Q});B=yield Se.initialProperties(ae,U);const Ae=yield Se.supernova();X&&(yield bD({sn:Ae,properties:B,fields:X,children:G},P)),ae&&Ae&&Ae.qae.properties.onChange&&Ae.qae.properties.onChange.call({},B)}catch(Se){te=Se,B={qInfo:{qType:$},visualization:$}}const ce=yield P.app.createSessionObject(B);G.length>0&&(yield ce.setFullPropertyTree({qProperty:B,qChildren:G})),Z.set(ce.id,ce);const ye=re(ce);return ty(ce,{options:le,plugins:oe,element:K,onRender:se,onError:he},P,ne,te,qe(function*(){yield P.app.destroySessionObject(ce.id),ye()}))}),function(F,P,q){return L.apply(this,arguments)})(O,E,b);var L}),function(L){return T.apply(this,arguments)}),create:function(){var T=qe(function*(O){return b5(O,E,!1,b)});return function(L){return T.apply(this,arguments)}}(),generateProperties:function(){var T=qe(function*(O){return b5(O,E,!0,b)});return function(L){return T.apply(this,arguments)}}(),context:function(){var T=qe(function*(O){let L;["theme","language","constraints","interactions","keyboardNavigation"].forEach(F=>{Object.prototype.hasOwnProperty.call(O,F)&&O[F]!==g[F]&&(L||(L={}),L[F]=O[F])}),L&&(g=de(de(de({},g),L),{},{translator:a.translator}),L.theme&&(I=x.setTheme(L.theme),yield I),L.language&&E.public.translator.language(L.language),y.context(g))});return function(L){return T.apply(this,arguments)}}(),selections:function(){var T=qe(function*(){return C||(C={mount(O){A||(A=function(L){let{element:F,app:P}=L;return Gs.createPortal(Y.createElement(xn,{app:P}),F,Oi())}({element:O,app:f}),y.add(A))},unmount(){A&&(y.remove(A),A=null)}}),C});return function(){return T.apply(this,arguments)}}(),field:function(){var T=qe(function*(O){let L;const F="string"==typeof O?O:O.qLibraryId;if(O.qId)L=O.qId;else if(!F)throw new Error("Field identifier or object id must be provided");const P={fieldName:F,mount(q){var $=arguments,Q=this;return qe(function*(){let X=$.length>1&&void 0!==$[1]?$[1]:{};if(!q)throw new Error("Element for ".concat(F||L," not provided"));if(Q._instance)throw new Error("Field or object ".concat(F||L," already mounted"));const ae=()=>P.emit("selectionActivated"),le=()=>P.emit("selectionDeactivated");return new Promise(oe=>{[Q._instance,Q._ref]=function(K){let{element:U,app:ne,fieldIdentifier:se,qId:he,stateName:B="$",options:G={},renderedCallback:Z}=K;const re=Y.createRef();return[Gs.createPortal(Y.createElement(BM,{ref:re,app:ne,element:U,fieldIdentifier:se,qId:he,stateName:B,initialOptions:G,renderedCallback:Z}),U,Oi()),re]}({element:q,app:f,fieldIdentifier:O,qId:L,options:dD(de({onSelectionActivated:ae,onSelectionDeactivated:le},X)),stateName:X.stateName||"$",renderedCallback:oe}),y.add(Q._instance)})})()},unmount(){this._instance&&(y.remove(this._instance),this._instance=null,this._ref=null)},__DO_NOT_USE__:{options(q){var $;const Q=()=>P.emit("selectionActivated"),X=()=>P.emit("selectionDeactivated");if(null!==($=P._ref)&&void 0!==$&&$.current){const ae=dD(de({onSelectionActivated:Q,onSelectionDeactivated:X},q));P._ref.current.setOptions(ae)}}}};return Vd(P),P});return function(L){return T.apply(this,arguments)}}(),getRegisteredTypes:D.getList,__DO_NOT_USE__:{types:D,popover(T,O,L){M._popoverInstance&&(y.remove(M._popoverInstance),M._popoverInstance=null);const F=function(){let P=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const q=de({},zM);return Wr(!0,q,P),q}(de({onPopoverClose:()=>M.emit("fieldPopoverClose")},L));M._popoverInstance=Y.createElement(qM,{element:T,key:Oi(),app:f,fieldIdentifier:O,options:F,stateName:L.stateName||"$"}),y.add(M._popoverInstance)}}};var T;return E.public.nebbie=M,E.types=D,Vd(M),M}return u.createConfiguration=f=>{return i({context:t2((p=o).context,(g=f).context),load:g.load||p.load,loadTheme:g.loadTheme||p.loadTheme,snapshot:de({},g.snapshot||p.snapshot),types:I5(p.types,g.types),themes:I5(p.themes,g.themes),flags:t2(p.flags,g.flags),hostConfig:g.hostConfig||p.hostConfig,anything:t2(p.anything,g.anything)});var p,g},u.config=o,u}(R5);function M5(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}const gy=globalThis.crypto||{getRandomValues:()=>123456};function T5(i){return o=>{const a=Wr({},o);a.qInfo=a.qInfo||{},a.qInfo.qId=a.qInfo.qId||"mock-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,p=>(p^gy.getRandomValues(new Uint8Array(1))[0]&15>>p/4).toString(16)));const u=a._mock;let f=a;return u&&(delete a._mock,f=Wr({},a,u)),Promise.resolve({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(f),getProperties:()=>Promise.resolve(a),getEffectiveProperties:()=>Promise.resolve(a),removeListener:()=>{},id:a.qInfo.qId,properties:a,session:i})}}const sw=function(i){let{args:o=[],defaultValue:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"function"==typeof i?i(...o):void 0!==i?i:a},n2=function(i){let{defaultValue:o,async:a=!0,delay:u=0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(){for(var f=arguments.length,p=new Array(f),g=0;g<f;g++)p[g]=arguments[g];const y=sw(i,{defaultValue:o,args:p});return a?new Promise(b=>{setTimeout(()=>b(y),u)}):y}},su=["id","session"],r2=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function aw(i){return!r2.includes(i)}function my(i){const o=sw(i.getLayout);return o.qInfo&&o.qInfo.qId}function O5(i,o){return i.reduce((a,u)=>de(de({},a),function(f,p){let g=my(f);const{delay:y}=p,{id:b,session:x}=f,_=gl(f,su);if(b&&g&&b!==g)throw new Error("Generic object has multiple IDs, qInfo.qId: ".concat(g,", id: ").concat(b));return g=g||b||"object - ".concat(+Date.now()),{[g]:de(de({id:g,session:sw(x,{defaultValue:!0}),on:()=>{},once:()=>{},removeListener:()=>{}},Object.entries(_).reduce((E,D)=>{let[I,C]=D;return de(de({},E),{},{[I]:n2(C,{async:aw(I),delay:y})})},{})),{},{genericType:f.type})}}(u,o)),{})}function lw(i){if(!i.getLayout)throw new Error('Generic object is missing "getLayout"');if(!my(i))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function cw(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Array.isArray(i)||0===i.length)return()=>{throw new Error('No "genericObjects" specified')};i.forEach(lw);const a=O5(i,o);return function(){var u=qe(function*(f){return Promise.resolve(a[f])});return function(f){return u.apply(this,arguments)}}()}function yy(){return()=>Promise.resolve({id:"app-layout"})}const KL={fromGenericObjects(i){return function(o){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const u=new M5,f=new T5(u),p=new cw(o,a),g=new yy,y={id:"app - ".concat(+Date.now()),session:u,createSessionObject:f,destroySessionObject:(b=qe(function*(){}),function(){return b.apply(this,arguments)}),getObject:p,getAppLayout:g,getListObject:function(){var b=qe(function*(){});return function(){return b.apply(this,arguments)}}()};var b;return Promise.resolve(y)}(i,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}},QL={generator:v5,hook:K1,theme:qs,locale:ml};Xt.EnigmaMocker=KL,Xt.__DO_NOT_USE__=QL,Xt.conversion=Wm,Xt.embed=WL,Xt.onContextMenu=function(i){const o=bs(++vs);o.value||(o.value=1,ln.__hooks.menus.push(o)),o.fn=i},Xt.onTakeSnapshot=function(i){const o=bs(++vs);o.value||(o.value=1,ln.__hooks.snaps.push(o)),o.fn=i},Xt.useAction=function(i,o){const[a]=af({action(){a._config.action.call(null)}});return a.component||(a.component=ln,ln.__hooks.actions.list.push(a)),Jm(()=>{const u=i();a._config=u,a.active=u.active||!1,a.disabled=u.disabled||!1,a.hidden=u.hidden||!1,a.label=u.label||"",a.getSvgIconShape=u.icon?()=>u.icon:void 0,a.key=u.key||a.component.__hooks.actions.list.length,a.component.__hooks.actions.changed=!0},o),a.action},Xt.useApp=function(){const i=Rr("app");return i&&i.session?i:void 0},Xt.useAppLayout=function(){return Rr("appLayout")},Xt.useConstraints=function(){return Rr("constraints")},Xt.useDeviceType=function(){return Rr("deviceType")},Xt.useEffect=PD,Xt.useElement=h5,Xt.useEmbed=function(){return Rr("nebbie")},Xt.useEmitter=function(){return Rr("emitter")},Xt.useGlobal=function(){const i=Rr("global");return i&&i.session?i:void 0},Xt.useImperativeHandle=function(i,o){const a=bs(++vs);if(a.imperative||(a.imperative=!0),Zm(a.value?a.value[0]:void 0,o)){const u=i();a.value=[o,u],ln.__hooks.imperativeHandle=u}},Xt.useInteractionState=function(){return Rr("interactions")},Xt.useKeyboard=function(){const i=Rr("keyboardNavigation"),o=Rr("focusHandler");if(!ln.__hooks.accessibility.exitFunction){const y=function(){let _=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const E=this.__hooks.accessibility;E.enabled&&E.active&&(g5(this),o&&o.blurCallback&&o.blurCallback(_))}.bind(ln);ln.__hooks.accessibility.exitFunction=y;const b=function(){const _=this.__hooks.accessibility;_.enabled&&!_.active&&(o&&o.blurCallback&&o.blurCallback(!1),p5(this))}.bind(ln);ln.__hooks.accessibility.focusFunction=b;const x=function(){this.__hooks.accessibility.enabled&&o&&o.focusToolbarButton&&o.focusToolbarButton(arguments.length>0&&void 0!==arguments[0]&&arguments[0])}.bind(ln);ln.__hooks.accessibility.focusSelectionFunction=x}const a=ln.__hooks.accessibility.focusFunction,u=ln.__hooks.accessibility.exitFunction,f=ln.__hooks.accessibility.focusSelectionFunction,[p,g]=af({active:!1,enabled:i,blur:u,focus:a,focusSelection:f});return ln.__hooks.accessibility.setter=g,ln.__hooks.accessibility.enabled=i,PD(()=>g({active:!1,enabled:i,blur:u,focus:a,focusSelection:f}),[i]),p},Xt.useLayout=function(){return Rr("layout")},Xt.useMemo=Jm,Xt.useModel=function(){const i=Rr("model");return i&&i.session?i:void 0},Xt.useNavigation=function(){return Rr("navigation")},Xt.useOptions=function(){return Rr("options")},Xt.usePlugins=function(){return Rr("plugins")},Xt.usePromise=function(i,o){const[a,u]=af(()=>({resolved:void 0,rejected:void 0,state:"pending"})),f=bs(++vs);return f.component||(f.component=ln),f5(()=>{let p=!1;return f.teardown=()=>{p=!0,f.teardown=null;const g=f.component.__hooks.pendingPromises.indexOf(f);g>-1&&f.component.__hooks.pendingPromises.splice(g,1)},i().then(g=>{p||(f.teardown&&f.teardown(),u({resolved:g,rejected:void 0,state:"resolved"}))}).catch(g=>{p||(f.teardown&&f.teardown(),u({resolved:void 0,rejected:g,state:"resolved"}))}),f.component.__hooks.pendingPromises.push(f),()=>{f.teardown&&f.teardown()}},o),[a.resolved,a.rejected]},Xt.useRect=function(){const i=h5(),o=ln.__hooks.resizer,[a,u]=af(()=>{const{left:f,top:p,width:g,height:y}=i.getBoundingClientRect();return{left:f,top:p,width:g,height:y}});return o.current=a,-1===o.setters.indexOf(u)&&o.setters.push(u),o.update&&o.resize&&(o.update=!1,o.resize()),f5(()=>{if(o.initiated)return;o.initiated=!0;const f=()=>{const{left:p,top:g,width:y,height:b}=i.getBoundingClientRect(),x=o.current;x.width===y&&x.height===b&&x.left===p&&x.top===g||o.setters.forEach(_=>_({left:p,top:g,width:y,height:b}))};if(o.resize=()=>{f()},o.explicitResize)return()=>{o.resize=void 0};if("function"==typeof ResizeObserver){let p=new ResizeObserver(f);return p.observe(i),()=>{p.unobserve(i),p.disconnect(i),p=null,o.resize=void 0}}},[i]),a},Xt.useRef=function(i){return Jm(()=>({current:i}),[])},Xt.useRenderState=function(){bs(++vs);const i=ln.__hooks;return{pending:()=>{i.waitForData=!0},restore:()=>{i.waitForData=!1}}},Xt.useSelections=function(){return Rr("selections")},Xt.useStaleLayout=function(){const i=Rr("layout"),[o]=af({current:i});return i.qSelectionInfo&&i.qSelectionInfo.qInSelections||(o.current=i),o.current},Xt.useState=af,Xt.useTheme=function(){return Rr("theme")},Xt.useTranslator=function(){return Rr("translator")}}(Bs)},5:(ki,Bs,Pr)=>{ki.exports=Pr(879)},926:ki=>{function Bs(qe,Xt,Ra,Ai,ao,zs,Cn){try{var pl=qe[zs](Cn),Er=pl.value}catch(kv){return void Ra(kv)}pl.done?Xt(Er):Promise.resolve(Er).then(Ai,ao)}ki.exports=function Pr(qe){return function(){var Xt=this,Ra=arguments;return new Promise(function(Ai,ao){var zs=qe.apply(Xt,Ra);function Cn(Er){Bs(zs,Ai,ao,Cn,pl,"next",Er)}function pl(Er){Bs(zs,Ai,ao,Cn,pl,"throw",Er)}Cn(void 0)})}},ki.exports.__esModule=!0,ki.exports.default=ki.exports}},zi={};function Di(ki){var Bs=zi[ki];if(void 0!==Bs)return Bs.exports;var Pr=zi[ki]={exports:{}};return Ci[ki].call(Pr.exports,Pr,Pr.exports,Di),Pr.exports}(()=>{"use strict";function ki(n){return"function"==typeof n}let Bs=!1;const Pr={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else Bs&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Bs=n},get useDeprecatedSynchronousErrorHandling(){return Bs}};function qe(n){setTimeout(()=>{throw n},0)}const Xt={closed:!0,next(n){},error(n){if(Pr.useDeprecatedSynchronousErrorHandling)throw n;qe(n)},complete(){}},Ra=Array.isArray||(n=>n&&"number"==typeof n.length);function Ai(n){return null!==n&&"object"==typeof n}const zs=(()=>{function n(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((t,r)=>`${r+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return n.prototype=Object.create(Error.prototype),n})();class Cn{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:t,_ctorUnsubscribe:r,_unsubscribe:s,_subscriptions:c}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof Cn)t.remove(this);else if(null!==t)for(let h=0;h<t.length;++h)t[h].remove(this);if(ki(s)){r&&(this._unsubscribe=void 0);try{s.call(this)}catch(h){e=h instanceof zs?pl(h.errors):[h]}}if(Ra(c)){let h=-1,m=c.length;for(;++h<m;){const w=c[h];if(Ai(w))try{w.unsubscribe()}catch(k){e=e||[],k instanceof zs?e=e.concat(pl(k.errors)):e.push(k)}}}if(e)throw new zs(e)}add(e){let t=e;if(!e)return Cn.EMPTY;switch(typeof e){case"function":t=new Cn(e);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof Cn)){const c=t;t=new Cn,t._subscriptions=[c]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:r}=t;if(null===r)t._parentOrParents=this;else if(r instanceof Cn){if(r===this)return t;t._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return t;r.push(this)}const s=this._subscriptions;return null===s?this._subscriptions=[t]:s.push(t),t}remove(e){const t=this._subscriptions;if(t){const r=t.indexOf(e);-1!==r&&t.splice(r,1)}}}var n;function pl(n){return n.reduce((e,t)=>e.concat(t instanceof zs?t.errors:t),[])}Cn.EMPTY=((n=new Cn).closed=!0,n);const Er="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class de extends Cn{constructor(e,t,r){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Xt;break;case 1:if(!e){this.destination=Xt;break}if("object"==typeof e){e instanceof de?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new gl(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new gl(this,e,t,r)}}[Er](){return this}static create(e,t,r){const s=new de(e,t,r);return s.syncErrorThrowable=!1,s}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class gl extends de{constructor(e,t,r,s){super(),this._parentSubscriber=e;let c,h=this;ki(t)?c=t:t&&(c=t.next,r=t.error,s=t.complete,t!==Xt&&(h=Object.create(t),ki(h.unsubscribe)&&this.add(h.unsubscribe.bind(h)),h.unsubscribe=this.unsubscribe.bind(this))),this._context=h,this._next=c,this._error=r,this._complete=s}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;Pr.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:r}=Pr;if(this._error)r&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)r?(t.syncErrorValue=e,t.syncErrorThrown=!0):qe(e),this.unsubscribe();else{if(this.unsubscribe(),r)throw e;qe(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);Pr.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(r){if(this.unsubscribe(),Pr.useDeprecatedSynchronousErrorHandling)throw r;qe(r)}}__tryOrSetError(e,t,r){if(!Pr.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,r)}catch(s){return Pr.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=s,e.syncErrorThrown=!0,!0):(qe(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const Lu="function"==typeof Symbol&&Symbol.observable||"@@observable";function rn(n){return n}let z=(()=>{class n{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(t){const r=new n;return r.source=this,r.operator=t,r}subscribe(t,r,s){const{operator:c}=this,h=function jx(n,e,t){if(n){if(n instanceof de)return n;if(n[Er])return n[Er]()}return n||e||t?new de(n,e,t):new de(Xt)}(t,r,s);if(h.add(c?c.call(h,this.source):this.source||Pr.useDeprecatedSynchronousErrorHandling&&!h.syncErrorThrowable?this._subscribe(h):this._trySubscribe(h)),Pr.useDeprecatedSynchronousErrorHandling&&h.syncErrorThrowable&&(h.syncErrorThrowable=!1,h.syncErrorThrown))throw h.syncErrorValue;return h}_trySubscribe(t){try{return this._subscribe(t)}catch(r){Pr.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=r),function Nx(n){for(;n;){const{closed:e,destination:t,isStopped:r}=n;if(e||r)return!1;n=t&&t instanceof de?t:null}return!0}(t)?t.error(r):console.warn(r)}}forEach(t,r){return new(r=Y(r))((s,c)=>{let h;h=this.subscribe(m=>{try{t(m)}catch(w){c(w),h&&h.unsubscribe()}},c,s)})}_subscribe(t){const{source:r}=this;return r&&r.subscribe(t)}[Lu](){return this}pipe(...t){return 0===t.length?this:function Bf(n){return 0===n.length?rn:1===n.length?n[0]:function(t){return n.reduce((r,s)=>s(r),t)}}(t)(this)}toPromise(t){return new(t=Y(t))((r,s)=>{let c;this.subscribe(h=>c=h,h=>s(h),()=>r(c))})}}return n.create=e=>new n(e),n})();function Y(n){if(n||(n=Pr.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const ml=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class ig extends Cn{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const r=t.indexOf(this.subscriber);-1!==r&&t.splice(r,1)}}class Av extends de{constructor(e){super(e),this.destination=e}}let Zr=(()=>{class n extends z{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Er](){return new Av(this)}lift(t){const r=new zx(this,this);return r.operator=t,r}next(t){if(this.closed)throw new ml;if(!this.isStopped){const{observers:r}=this,s=r.length,c=r.slice();for(let h=0;h<s;h++)c[h].next(t)}}error(t){if(this.closed)throw new ml;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:r}=this,s=r.length,c=r.slice();for(let h=0;h<s;h++)c[h].error(t);this.observers.length=0}complete(){if(this.closed)throw new ml;this.isStopped=!0;const{observers:t}=this,r=t.length,s=t.slice();for(let c=0;c<r;c++)s[c].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new ml;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new ml;return this.hasError?(t.error(this.thrownError),Cn.EMPTY):this.isStopped?(t.complete(),Cn.EMPTY):(this.observers.push(t),new ig(this,t))}asObservable(){const t=new z;return t.source=this,t}}return n.create=(e,t)=>new zx(e,t),n})();class zx extends Zr{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):Cn.EMPTY}}function og(n){return n&&"function"==typeof n.schedule}function ui(n,e){return function(r){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new Rv(n,e))}}class Rv{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new qx(e,this.project,this.thisArg))}}class qx extends de{constructor(e,t,r){super(e),this.project=t,this.count=0,this.thisArg=r||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(r){return void this.destination.error(r)}this.destination.next(t)}}const Pu=n=>e=>{for(let t=0,r=n.length;t<r&&!e.closed;t++)e.next(n[t]);e.complete()},yl=function Vx(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),Xo=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function $x(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const Hx=n=>{if(n&&"function"==typeof n[Lu])return(n=>e=>{const t=n[Lu]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)})(n);if(Xo(n))return Pu(n);if($x(n))return(n=>e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,qe),e))(n);if(n&&"function"==typeof n[yl])return(n=>e=>{const t=n[yl]();for(;;){let r;try{r=t.next()}catch(s){return e.error(s),e}if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof t.return&&e.add(()=>{t.return&&t.return()}),e})(n);{const t=`You provided ${Ai(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(t)}};function Tv(n,e){return new z(t=>{const r=new Cn;let s=0;return r.add(e.schedule(function(){s!==n.length?(t.next(n[s++]),t.closed||r.add(this.schedule())):t.complete()})),r})}function Ov(n,e){return e?function Ux(n,e){if(null!=n){if(function Zk(n){return n&&"function"==typeof n[Lu]}(n))return function Kk(n,e){return new z(t=>{const r=new Cn;return r.add(e.schedule(()=>{const s=n[Lu]();r.add(s.subscribe({next(c){r.add(e.schedule(()=>t.next(c)))},error(c){r.add(e.schedule(()=>t.error(c)))},complete(){r.add(e.schedule(()=>t.complete()))}}))})),r})}(n,e);if($x(n))return function Qk(n,e){return new z(t=>{const r=new Cn;return r.add(e.schedule(()=>n.then(s=>{r.add(e.schedule(()=>{t.next(s),r.add(e.schedule(()=>t.complete()))}))},s=>{r.add(e.schedule(()=>t.error(s)))}))),r})}(n,e);if(Xo(n))return Tv(n,e);if(function Gx(n){return n&&"function"==typeof n[yl]}(n)||"string"==typeof n)return function Yk(n,e){if(!n)throw new Error("Iterable cannot be null");return new z(t=>{const r=new Cn;let s;return r.add(()=>{s&&"function"==typeof s.return&&s.return()}),r.add(e.schedule(()=>{s=n[yl](),r.add(e.schedule(function(){if(t.closed)return;let c,h;try{const m=s.next();c=m.value,h=m.done}catch(m){return void t.error(m)}h?t.complete():(t.next(c),this.schedule())}))})),r})}(n,e)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}(n,e):n instanceof z?n:new z(Hx(n))}class Oo extends de{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class fc extends de{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function Xr(n,e){if(!e.closed)return n instanceof z?n.subscribe(e):Hx(n)(e)}function Lv(n,e,t=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(Lv((s,c)=>Ov(n(s,c)).pipe(ui((h,m)=>e(s,h,c,m))),t)):("number"==typeof e&&(t=e),r=>r.lift(new Wx(n,t)))}class Wx{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new sg(e,this.project,this.concurrent))}}class sg extends fc{constructor(e,t,r=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=r,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const r=this.index++;try{t=this.project(e,r)}catch(s){return void this.destination.error(s)}this.active++,this._innerSub(t)}_innerSub(e){const t=new Oo(this),r=this.destination;r.add(t);const s=Xr(e,t);s!==t&&r.add(s)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function hc(n=Number.POSITIVE_INFINITY){return Lv(rn,n)}function Pv(n,e){return e?Tv(n,e):new z(Pu(n))}function ju(...n){let e=Number.POSITIVE_INFINITY,t=null,r=n[n.length-1];return og(r)?(t=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(e=n.pop())):"number"==typeof r&&(e=n.pop()),null===t&&1===n.length&&n[0]instanceof z?n[0]:hc(e)(Pv(n,t))}function Lo(){return function(e){return e.lift(new Kx(e))}}class Kx{constructor(e){this.connectable=e}call(e,t){const{connectable:r}=this;r._refCount++;const s=new ag(e,r),c=t.subscribe(s);return s.closed||(s.connection=r.connect()),c}}class ag extends de{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:r}=this,s=e._connection;this.connection=null,s&&(!r||s===r)&&s.unsubscribe()}}class Fv extends z{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new Cn,e.add(this.source.subscribe(new Wr(this.getSubject(),this))),e.closed&&(this._connection=null,e=Cn.EMPTY)),e}refCount(){return Lo()(this)}}const eA=(()=>{const n=Fv.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:n._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}}})();class Wr extends Av{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}class rA{constructor(e,t){this.subjectFactory=e,this.selector=t}call(e,t){const{selector:r}=this,s=this.subjectFactory(),c=r(s).subscribe(e);return c.add(t.subscribe(s)),c}}function pc(){return new Zr}function Hn(n){for(let e in n)if(n[e]===Hn)return e;throw Error("Could not find renamed property on target object.")}function Nv(n,e){for(const t in e)e.hasOwnProperty(t)&&!n.hasOwnProperty(t)&&(n[t]=e[t])}function Ln(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(Ln).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const e=n.toString();if(null==e)return""+e;const t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}function jv(n,e){return null==n||""===n?null===e?"":e:null==e||""===e?n:n+" "+e}const oA=Hn({__forward_ref__:Hn});function Ia(n){return n.__forward_ref__=Ia,n.toString=function(){return Ln(this())},n}function Tt(n){return Pn(n)?n():n}function Pn(n){return"function"==typeof n&&n.hasOwnProperty(oA)&&n.__forward_ref__===Ia}class ot extends Error{constructor(e,t){super(function lg(n,e){return`NG0${Math.abs(n)}${e?": "+e:""}`}(e,t)),this.code=e}}function Jr(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():function $t(n){return"string"==typeof n?n:null==n?"":String(n)}(n)}function Bu(n,e){const t=e?` in ${e}`:"";throw new ot(-201,`No provider for ${Jr(n)} found${t}`)}function di(n,e){null==n&&function Dn(n,e,t,r){throw new Error(`ASSERTION ERROR: ${n}`+(null==r?"":` [Expected=> ${t} ${r} ${e} <=Actual]`))}(e,n,null,"!=")}function Qe(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function Vi(n){return{providers:n.providers||[],imports:n.imports||[]}}function Bv(n){return Jx(n,fe)||Jx(n,cg)}function Jx(n,e){return n.hasOwnProperty(e)?n[e]:null}function gc(n){return n&&(n.hasOwnProperty(Ft)||n.hasOwnProperty(hA))?n[Ft]:null}const fe=Hn({\u0275prov:Hn}),Ft=Hn({\u0275inj:Hn}),cg=Hn({ngInjectableDef:Hn}),hA=Hn({ngInjectorDef:Hn});var Ye=(()=>((Ye=Ye||{})[Ye.Default=0]="Default",Ye[Ye.Host=1]="Host",Ye[Ye.Self=2]="Self",Ye[Ye.SkipSelf=4]="SkipSelf",Ye[Ye.Optional=8]="Optional",Ye))();let qu;function Ma(n){const e=qu;return qu=n,e}function qf(n,e,t){const r=Bv(n);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:t&Ye.Optional?null:void 0!==e?e:void Bu(Ln(n),"Injector")}function Vs(n){return{toString:n}.toString()}var Jo=(()=>((Jo=Jo||{})[Jo.OnPush=0]="OnPush",Jo[Jo.Default=1]="Default",Jo))(),Po=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(Po||(Po={})),Po))();const e_="undefined"!=typeof globalThis&&globalThis,t_="undefined"!=typeof window&&window,mt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,kt=e_||"undefined"!=typeof global&&global||t_||mt,vl={},In=[],Vf=Hn({\u0275cmp:Hn}),Vu=Hn({\u0275dir:Hn}),bl=Hn({\u0275pipe:Hn}),qv=Hn({\u0275mod:Hn}),er=Hn({\u0275fac:Hn}),tr=Hn({__NG_ELEMENT_ID__:Hn});let $u=0;function Hu(n){return Vs(()=>{const t={},r={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===Jo.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||In,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Po.Emulated,id:"c",styles:n.styles||In,_:null,setInput:null,schemas:n.schemas||null,tView:null},s=n.directives,c=n.features,h=n.pipes;return r.id+=$u++,r.inputs=wl(n.inputs,t),r.outputs=wl(n.outputs),c&&c.forEach(m=>m(r)),r.directiveDefs=s?()=>("function"==typeof s?s():s).map(n_):null,r.pipeDefs=h?()=>("function"==typeof h?h():h).map(fi):null,r})}function n_(n){return Cr(n)||function xl(n){return n[Vu]||null}(n)}function fi(n){return function mc(n){return n[bl]||null}(n)}const $i={};function Ri(n){return Vs(()=>{const e={type:n.type,bootstrap:n.bootstrap||In,declarations:n.declarations||In,imports:n.imports||In,exports:n.exports||In,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&($i[n.id]=n.type),e})}function wl(n,e){if(null==n)return vl;const t={};for(const r in n)if(n.hasOwnProperty(r)){let s=n[r],c=s;Array.isArray(s)&&(c=s[1],s=s[0]),t[s]=r,e&&(e[s]=c)}return t}const pt=Hu;function Cr(n){return n[Vf]||null}function Hi(n,e){const t=n[qv]||null;if(!t&&!0===e)throw new Error(`Type ${Ln(n)} does not have '\u0275mod' property.`);return t}function ts(n){return Array.isArray(n)&&"object"==typeof n[1]}function co(n){return Array.isArray(n)&&!0===n[1]}function Uf(n){return 0!=(8&n.flags)}function gg(n){return 2==(2&n.flags)}function ns(n){return null!==n.template}function o_(n){return 0!=(512&n[2])}function _c(n,e){return n.hasOwnProperty(er)?n[er]:null}class d_{constructor(e,t,r){this.previousValue=e,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}function Cl(){return f_}function f_(n){return n.type.prototype.ngOnChanges&&(n.setInput=Wu),vg}function vg(){const n=p_(this),e=null==n?void 0:n.current;if(e){const t=n.previous;if(t===vl)n.previous=e;else for(let r in e)t[r]=e[r];n.current=null,this.ngOnChanges(e)}}function Wu(n,e,t,r){const s=p_(n)||function bA(n,e){return n[h_]=e}(n,{previous:vl,current:null}),c=s.current||(s.current={}),h=s.previous,m=this.declaredInputs[t],w=h[m];c[m]=new d_(w&&w.currentValue,e,h===vl),n[r]=e}Cl.ngInherit=!0;const h_="__ngSimpleChanges__";function p_(n){return n[h_]||null}let Xv;function fr(n){return!!n.listen}const e0={createRenderer:(n,e)=>function Jv(){return void 0!==Xv?Xv:"undefined"!=typeof document?document:void 0}()};function Fr(n){for(;Array.isArray(n);)n=n[0];return n}function Gi(n,e){return Fr(e[n.index])}function Ui(n,e){const t=e[n];return ts(t)?t:t[0]}function wg(n){return 4==(4&n[2])}function xg(n){return 128==(128&n[2])}function dn(n,e){return null==e?null:n[e]}function Hs(n){n[18]=0}function ei(n,e){n[5]+=e;let t=n,r=n[3];for(;null!==r&&(1===e&&1===t[5]||-1===e&&0===t[5]);)r[5]+=e,t=r,r=r[3]}const Dt={lFrame:w_(null),bindingsEnabled:!0};function _g(){return Dt.bindingsEnabled}function Fe(){return Dt.lFrame.lView}function fn(){return Dt.lFrame.tView}function Nr(){let n=n0();for(;null!==n&&64===n.type;)n=n.parent;return n}function n0(){return Dt.lFrame.currentTNode}function Ze(n,e){const t=Dt.lFrame;t.currentTNode=n,t.isParent=e}function r0(){return Dt.lFrame.isParent}function AA(n,e){const t=Dt.lFrame;t.bindingIndex=t.bindingRootIndex=n,nr(e)}function nr(n){Dt.lFrame.currentDirectiveIndex=n}function l0(){return Dt.lFrame.currentQueryIndex}function Qu(n){Dt.lFrame.currentQueryIndex=n}function No(n){const e=n[1];return 2===e.type?e.declTNode:1===e.type?n[6]:null}function ho(n,e,t){if(t&Ye.SkipSelf){let s=e,c=n;for(;!(s=s.parent,null!==s||t&Ye.Host||(s=No(c),null===s||(c=c[15],10&s.type))););if(null===s)return!1;e=s,n=c}const r=Dt.lFrame=b_();return r.currentTNode=e,r.lView=n,!0}function Eg(n){const e=b_(),t=n[1];Dt.lFrame=e,e.currentTNode=t.firstChild,e.lView=n,e.tView=t,e.contextLView=n,e.bindingIndex=t.bindingStartIndex,e.inI18n=!1}function b_(){const n=Dt.lFrame,e=null===n?null:n.child;return null===e?w_(n):e}function w_(n){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=e),e}function x_(){const n=Dt.lFrame;return Dt.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const __=x_;function Cg(){const n=x_();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function Al(n){Dt.lFrame.selectedIndex=n}function yi(n,e){for(let t=e.directiveStart,r=e.directiveEnd;t<r;t++){const c=n.data[t].type.prototype,{ngAfterContentInit:h,ngAfterContentChecked:m,ngAfterViewInit:w,ngAfterViewChecked:k,ngOnDestroy:N}=c;h&&(n.contentHooks||(n.contentHooks=[])).push(-t,h),m&&((n.contentHooks||(n.contentHooks=[])).push(t,m),(n.contentCheckHooks||(n.contentCheckHooks=[])).push(t,m)),w&&(n.viewHooks||(n.viewHooks=[])).push(-t,w),k&&((n.viewHooks||(n.viewHooks=[])).push(t,k),(n.viewCheckHooks||(n.viewCheckHooks=[])).push(t,k)),null!=N&&(n.destroyHooks||(n.destroyHooks=[])).push(t,N)}}function Ig(n,e,t){S_(n,e,3,t)}function Zu(n,e,t,r){(3&n[2])===t&&S_(n,e,t,r)}function c0(n,e){let t=n[2];(3&t)===e&&(t&=2047,t+=1,n[2]=t)}function S_(n,e,t,r){const c=null!=r?r:-1,h=e.length-1;let m=0;for(let w=void 0!==r?65535&n[18]:0;w<h;w++)if("number"==typeof e[w+1]){if(m=e[w],null!=r&&m>=r)break}else e[w]<0&&(n[18]+=65536),(m<c||-1==c)&&(TA(n,t,e,w),n[18]=(4294901760&n[18])+w+2),w++}function TA(n,e,t,r){const s=t[r]<0,c=t[r+1],m=n[s?-t[r]:t[r]];if(s){if(n[2]>>11<n[18]>>16&&(3&n[2])===e){n[2]+=2048;try{c.call(m)}finally{}}}else try{c.call(m)}finally{}}class Pa{constructor(e,t,r){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r}}function Cc(n,e,t){const r=fr(n);let s=0;for(;s<t.length;){const c=t[s];if("number"==typeof c){if(0!==c)break;s++;const h=t[s++],m=t[s++],w=t[s++];r?n.setAttribute(e,m,w,h):e.setAttributeNS(h,m,w)}else{const h=c,m=t[++s];d0(h)?r&&n.setProperty(e,h,m):r?n.setAttribute(e,h,m):e.setAttribute(h,m),s++}}return s}function C_(n){return 3===n||4===n||6===n}function d0(n){return 64===n.charCodeAt(0)}function Mg(n,e){if(null!==e&&0!==e.length)if(null===n||0===n.length)n=e.slice();else{let t=-1;for(let r=0;r<e.length;r++){const s=e[r];"number"==typeof s?t=s:0===t||ed(n,t,s,null,-1===t||2===t?e[++r]:null)}}return n}function ed(n,e,t,r,s){let c=0,h=n.length;if(-1===e)h=-1;else for(;c<n.length;){const m=n[c++];if("number"==typeof m){if(m===e){h=-1;break}if(m>e){h=c-1;break}}}for(;c<n.length;){const m=n[c];if("number"==typeof m)break;if(m===t){if(null===r)return void(null!==s&&(n[c+1]=s));if(r===n[c+1])return void(n[c+2]=s)}c++,null!==r&&c++,null!==s&&c++}-1!==h&&(n.splice(h,0,e),c=h+1),n.splice(c++,0,t),null!==r&&n.splice(c++,0,r),null!==s&&n.splice(c++,0,s)}function D_(n){return-1!==n}function Dc(n){return 32767&n}function kc(n,e){let t=function Tg(n){return n>>16}(n),r=e;for(;t>0;)r=r[15],t--;return r}let At=!0;function Og(n){const e=At;return At=n,e}let k_=0;function td(n,e){const t=Pg(n,e);if(-1!==t)return t;const r=e[1];r.firstCreatePass&&(n.injectorIndex=e.length,Lg(r.data,n),Lg(e,null),Lg(r.blueprint,null));const s=Fg(n,e),c=n.injectorIndex;if(D_(s)){const h=Dc(s),m=kc(s,e),w=m[1].data;for(let k=0;k<8;k++)e[c+k]=m[h+k]|w[h+k]}return e[c+8]=s,c}function Lg(n,e){n.push(0,0,0,0,0,0,0,0,e)}function Pg(n,e){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===e[n.injectorIndex+8]?-1:n.injectorIndex}function Fg(n,e){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let t=0,r=null,s=e;for(;null!==s;){const c=s[1],h=c.type;if(r=2===h?c.declTNode:1===h?s[6]:null,null===r)return-1;if(t++,s=s[15],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return-1}function Ng(n,e,t){!function PA(n,e,t){let r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(tr)&&(r=t[tr]),null==r&&(r=t[tr]=k_++);const s=255&r;e.data[n+(s>>5)]|=1<<s}(n,e,t)}function A_(n,e,t){if(t&Ye.Optional)return n;Bu(e,"NodeInjector")}function jg(n,e,t,r){if(t&Ye.Optional&&void 0===r&&(r=null),0==(t&(Ye.Self|Ye.Host))){const s=n[9],c=Ma(void 0);try{return s?s.get(e,r,t&Ye.Optional):qf(e,r,t&Ye.Optional)}finally{Ma(c)}}return A_(r,e,t)}function R_(n,e,t,r=Ye.Default,s){if(null!==n){const c=function Xf(n){if("string"==typeof n)return n.charCodeAt(0)||0;const e=n.hasOwnProperty(tr)?n[tr]:void 0;return"number"==typeof e?e>=0?255&e:Bg:e}(t);if("function"==typeof c){if(!ho(e,n,r))return r&Ye.Host?A_(s,t,r):jg(e,t,r,s);try{const h=c(r);if(null!=h||r&Ye.Optional)return h;Bu(t)}finally{__()}}else if("number"==typeof c){let h=null,m=Pg(n,e),w=-1,k=r&Ye.Host?e[16][6]:null;for((-1===m||r&Ye.SkipSelf)&&(w=-1===m?Fg(n,e):e[m+8],-1!==w&&po(r,!1)?(h=e[1],m=Dc(w),e=kc(w,e)):m=-1);-1!==m;){const N=e[1];if(M_(c,m,N.data)){const V=NA(m,e,t,h,r,k);if(V!==I_)return V}w=e[m+8],-1!==w&&po(r,e[1].data[m+8]===k)&&M_(c,m,e)?(h=N,m=Dc(w),e=kc(w,e)):m=-1}}}return jg(e,t,r,s)}const I_={};function Bg(){return new nd(Nr(),Fe())}function NA(n,e,t,r,s,c){const h=e[1],m=h.data[n+8],N=Ac(m,h,t,null==r?gg(m)&&At:r!=h&&0!=(3&m.type),s&Ye.Host&&c===m);return null!==N?Zf(e,h,N,m):I_}function Ac(n,e,t,r,s){const c=n.providerIndexes,h=e.data,m=1048575&c,w=n.directiveStart,N=c>>20,W=s?m+N:n.directiveEnd;for(let ee=r?m:m+N;ee<W;ee++){const ue=h[ee];if(ee<w&&t===ue||ee>=w&&ue.type===t)return ee}if(s){const ee=h[w];if(ee&&ns(ee)&&ee.type===t)return w}return null}function Zf(n,e,t,r){let s=n[t];const c=e.data;if(function E_(n){return n instanceof Pa}(s)){const h=s;h.resolving&&function Qx(n,e){const t=e?`. Dependency path: ${e.join(" > ")} > ${n}`:"";throw new ot(-200,`Circular dependency in DI detected for ${n}${t}`)}(Jr(c[t]));const m=Og(h.canSeeViewProviders);h.resolving=!0;const w=h.injectImpl?Ma(h.injectImpl):null;ho(n,r,Ye.Default);try{s=n[t]=h.factory(void 0,c,n,r),e.firstCreatePass&&t>=r.directiveStart&&function Yu(n,e,t){const{ngOnChanges:r,ngOnInit:s,ngDoCheck:c}=e.type.prototype;if(r){const h=f_(e);(t.preOrderHooks||(t.preOrderHooks=[])).push(n,h),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,h)}s&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-n,s),c&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n,c),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,c))}(t,c[t],e)}finally{null!==w&&Ma(w),Og(m),h.resolving=!1,__()}}return s}function M_(n,e,t){return!!(t[e+(n>>5)]&1<<n)}function po(n,e){return!(n&Ye.Self||n&Ye.Host&&e)}class nd{constructor(e,t){this._tNode=e,this._lView=t}get(e,t,r){return R_(this._tNode,this._lView,e,r,t)}}function Yt(n){return Vs(()=>{const e=n.prototype.constructor,t=e[er]||rd(e),r=Object.prototype;let s=Object.getPrototypeOf(n.prototype).constructor;for(;s&&s!==r;){const c=s[er]||rd(s);if(c&&c!==t)return c;s=Object.getPrototypeOf(s)}return c=>new c})}function rd(n){return Pn(n)?()=>{const e=rd(Tt(n));return e&&e()}:_c(n)}class Ot{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=Qe({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}function mo(n,e){void 0===e&&(e=n);for(let t=0;t<n.length;t++){let r=n[t];Array.isArray(r)?(e===n&&(e=n.slice(0,t)),mo(r,e)):e!==n&&e.push(r)}return e}function os(n,e){n.forEach(t=>Array.isArray(t)?os(t,e):e(t))}function Mn(n,e,t){e>=n.length?n.push(t):n.splice(e,0,t)}function Fa(n,e){return e>=n.length-1?n.pop():n.splice(e,1)[0]}const sh={},Hg="ngTempTokenPath",GA=/\n/gm,B_="__source",WA=Hn({provide:String,useValue:Hn});let id;function ir(n){const e=id;return id=n,e}function z_(n,e=Ye.Default){if(void 0===id)throw new ot(203,"");return null===id?qf(n,void 0,e):id.get(n,e&Ye.Optional?null:void 0,e)}function Pe(n,e=Ye.Default){return(function dt(){return qu}()||z_)(Tt(n),e)}const Gg=Pe;function v0(n){const e=[];for(let t=0;t<n.length;t++){const r=Tt(n[t]);if(Array.isArray(r)){if(0===r.length)throw new ot(900,"");let s,c=Ye.Default;for(let h=0;h<r.length;h++){const m=r[h],w=or(m);"number"==typeof w?-1===w?s=m.token:c|=w:s=m}e.push(Pe(s,c))}else e.push(Pe(r))}return e}function or(n){return n.__NG_DI_FLAG__}var yo=(()=>((yo=yo||{})[yo.Important=1]="Important",yo[yo.DashCase=2]="DashCase",yo))();const S0="__ngContext__";function ii(n,e){n[S0]=e}function Wg(n){const e=function cd(n){return n[S0]||null}(n);return e?Array.isArray(e)?e:e.lView:null}function Kg(n,e){return undefined(n,e)}function dd(n){const e=n[3];return co(e)?e[3]:e}function Yg(n){return C0(n[13])}function Gs(n){return C0(n[4])}function C0(n){for(;null!==n&&!co(n);)n=n[4];return n}function Us(n,e,t,r,s){if(null!=r){let c,h=!1;co(r)?c=r:ts(r)&&(h=!0,r=r[0]);const m=Fr(r);0===n&&null!==t?null==s?Q_(e,t,m):Ks(e,t,m,s||null,!0):1===n&&null!==t?Ks(e,t,m,s||null,!0):2===n?function O0(n,e,t){const r=Zg(n,e);r&&function aR(n,e,t,r){fr(n)?n.removeChild(e,t,r):e.removeChild(t)}(n,r,e,t)}(e,m,h):3===n&&e.destroyNode(m),null!=c&&function uR(n,e,t,r,s){const c=t[7];c!==Fr(t)&&Us(e,n,r,c,s);for(let m=10;m<t.length;m++){const w=t[m];pd(w[1],w,n,e,r,c)}}(e,n,c,t,s)}}function dh(n,e,t){if(fr(n))return n.createElement(e,t);{const r=null!==t?function wA(n){const e=n.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(t):null;return null===r?n.createElement(e):n.createElementNS(r,e)}}function U_(n,e){const t=n[9],r=t.indexOf(e),s=e[3];1024&e[2]&&(e[2]&=-1025,ei(s,-1)),t.splice(r,1)}function hh(n,e){if(n.length<=10)return;const t=10+e,r=n[t];if(r){const s=r[17];null!==s&&s!==n&&U_(s,r),e>0&&(n[t-1][4]=r[4]);const c=Fa(n,10+e);!function Ws(n,e){pd(n,e,e[11],2,null,null),e[0]=null,e[6]=null}(r[1],r);const h=c[19];null!==h&&h.detachView(c[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function vo(n,e){if(!(256&e[2])){const t=e[11];fr(t)&&t.destroyNode&&pd(n,e,t,3,null,null),function k0(n){let e=n[13];if(!e)return A0(n[1],n);for(;e;){let t=null;if(ts(e))t=e[13];else{const r=e[10];r&&(t=r)}if(!t){for(;e&&!e[4]&&e!==n;)ts(e)&&A0(e[1],e),e=e[3];null===e&&(e=n),ts(e)&&A0(e[1],e),t=e&&e[4]}e=t}}(e)}}function A0(n,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function K_(n,e){let t;if(null!=n&&null!=(t=n.destroyHooks))for(let r=0;r<t.length;r+=2){const s=e[t[r]];if(!(s instanceof Pa)){const c=t[r+1];if(Array.isArray(c))for(let h=0;h<c.length;h+=2){const m=s[c[h]],w=c[h+1];try{w.call(m)}finally{}}else try{c.call(s)}finally{}}}}(n,e),function W_(n,e){const t=n.cleanup,r=e[7];let s=-1;if(null!==t)for(let c=0;c<t.length-1;c+=2)if("string"==typeof t[c]){const h=t[c+1],m="function"==typeof h?h(e):Fr(e[h]),w=r[s=t[c+2]],k=t[c+3];"boolean"==typeof k?m.removeEventListener(t[c],w,k):k>=0?r[s=k]():r[s=-k].unsubscribe(),c+=2}else{const h=r[s=t[c+1]];t[c].call(h)}if(null!==r){for(let c=s+1;c<r.length;c++)r[c]();e[7]=null}}(n,e),1===e[1].type&&fr(e[11])&&e[11].destroy();const t=e[17];if(null!==t&&co(e[3])){t!==e[3]&&U_(t,e);const r=e[19];null!==r&&r.detachView(n)}}}function R0(n,e,t){return function I0(n,e,t){let r=e;for(;null!==r&&40&r.type;)r=(e=r).parent;if(null===r)return t[0];if(2&r.flags){const s=n.data[r.directiveStart].encapsulation;if(s===Po.None||s===Po.Emulated)return null}return Gi(r,t)}(n,e.parent,t)}function Ks(n,e,t,r,s){fr(n)?n.insertBefore(e,t,r,s):e.insertBefore(t,r,s)}function Q_(n,e,t){fr(n)?n.appendChild(e,t):e.appendChild(t)}function Y_(n,e,t,r,s){null!==r?Ks(n,e,t,r,s):Q_(n,e,t)}function Zg(n,e){return fr(n)?n.parentNode(e):e.parentNode}let J_=function X_(n,e,t){return 40&n.type?Gi(n,t):null};function Va(n,e,t,r){const s=R0(n,r,e),c=e[11],m=function Z_(n,e,t){return J_(n,e,t)}(r.parent||e[6],r,e);if(null!=s)if(Array.isArray(t))for(let w=0;w<t.length;w++)Y_(c,s,t[w],m,!1);else Y_(c,s,t,m,!1)}function Xg(n,e){if(null!==e){const t=e.type;if(3&t)return Gi(e,n);if(4&t)return T0(-1,n[e.index]);if(8&t){const r=e.child;if(null!==r)return Xg(n,r);{const s=n[e.index];return co(s)?T0(-1,s):Fr(s)}}if(32&t)return Kg(e,n)()||Fr(n[e.index]);{const r=$a(n,e);return null!==r?Array.isArray(r)?r[0]:Xg(dd(n[16]),r):Xg(n,e.next)}}return null}function $a(n,e){return null!==e?n[16][6].projection[e.projection]:null}function T0(n,e){const t=10+n+1;if(t<e.length){const r=e[t],s=r[1].firstChild;if(null!==s)return Xg(r,s)}return e[7]}function L0(n,e,t,r,s,c,h){for(;null!=t;){const m=r[t.index],w=t.type;if(h&&0===e&&(m&&ii(Fr(m),r),t.flags|=4),64!=(64&t.flags))if(8&w)L0(n,e,t.child,r,s,c,!1),Us(e,n,s,m,c);else if(32&w){const k=Kg(t,r);let N;for(;N=k();)Us(e,n,s,N,c);Us(e,n,s,m,c)}else 16&w?tS(n,e,r,t,s,c):Us(e,n,s,m,c);t=h?t.projectionNext:t.next}}function pd(n,e,t,r,s,c){L0(t,r,n.firstChild,e,s,c,!1)}function tS(n,e,t,r,s,c){const h=t[16],w=h[6].projection[r.projection];if(Array.isArray(w))for(let k=0;k<w.length;k++)Us(e,n,s,w[k],c);else L0(n,e,w,h[3],s,c,!0)}function gd(n,e,t){fr(n)?n.setAttribute(e,"style",t):e.style.cssText=t}function Nt(n,e,t){fr(n)?""===t?n.removeAttribute(e,"class"):n.setAttribute(e,"class",t):e.className=t}function Fc(n){return n.ngOriginalError}function wh(n,...e){n.error(...e)}class bd{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),r=function V0(n){return n&&n.ngErrorLogger||wh}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t)}_findOriginalError(e){let t=e&&Fc(e);for(;t&&Fc(t);)t=Fc(t);return t||null}}const kR=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(kt))();function Bo(n){return n instanceof Function?n():n}function $0(n,e,t){let r=n.length;for(;;){const s=n.indexOf(e,t);if(-1===s)return s;if(0===s||n.charCodeAt(s-1)<=32){const c=e.length;if(s+c===r||n.charCodeAt(s+c)<=32)return s}t=s+1}}const H0="ng-template";function xh(n,e,t){let r=0;for(;r<n.length;){let s=n[r++];if(t&&"class"===s){if(s=n[r],-1!==$0(s.toLowerCase(),e,0))return!0}else if(1===s){for(;r<n.length&&"string"==typeof(s=n[r++]);)if(s.toLowerCase()===e)return!0;return!1}}return!1}function wS(n){return 4===n.type&&n.value!==H0}function IR(n,e,t){return e===(4!==n.type||t?n.value:H0)}function xS(n,e,t){let r=4;const s=n.attrs||[],c=function OR(n){for(let e=0;e<n.length;e++)if(C_(n[e]))return e;return n.length}(s);let h=!1;for(let m=0;m<e.length;m++){const w=e[m];if("number"!=typeof w){if(!h)if(4&r){if(r=2|1&r,""!==w&&!IR(n,w,t)||""===w&&1===e.length){if(zo(r))return!1;h=!0}}else{const k=8&r?w:e[++m];if(8&r&&null!==n.attrs){if(!xh(n.attrs,k,t)){if(zo(r))return!1;h=!0}continue}const V=MR(8&r?"class":w,s,wS(n),t);if(-1===V){if(zo(r))return!1;h=!0;continue}if(""!==k){let W;W=V>c?"":s[V+1].toLowerCase();const ee=8&r?W:null;if(ee&&-1!==$0(ee,k,0)||2&r&&k!==W){if(zo(r))return!1;h=!0}}}}else{if(!h&&!zo(r)&&!zo(w))return!1;if(h&&zo(w))continue;h=!1,r=w|1&r}}return zo(r)||h}function zo(n){return 0==(1&n)}function MR(n,e,t,r){if(null===e)return-1;let s=0;if(r||!t){let c=!1;for(;s<e.length;){const h=e[s];if(h===n)return s;if(3===h||6===h)c=!0;else{if(1===h||2===h){let m=e[++s];for(;"string"==typeof m;)m=e[++s];continue}if(4===h)break;if(0===h){s+=4;continue}}s+=c?1:2}return-1}return function SS(n,e){let t=n.indexOf(4);if(t>-1)for(t++;t<n.length;){const r=n[t];if("number"==typeof r)return-1;if(r===e)return t;t++}return-1}(e,n)}function _S(n,e,t=!1){for(let r=0;r<e.length;r++)if(xS(n,e[r],t))return!0;return!1}function CS(n,e){return n?":not("+e.trim()+")":e}function LR(n){let e=n[0],t=1,r=2,s="",c=!1;for(;t<n.length;){let h=n[t];if("string"==typeof h)if(2&r){const m=n[++t];s+="["+h+(m.length>0?'="'+m+'"':"")+"]"}else 8&r?s+="."+h:4&r&&(s+=" "+h);else""!==s&&!zo(h)&&(e+=CS(c,s),s=""),r=h,c=c||!zo(r);t++}return""!==s&&(e+=CS(c,s)),e}const Wt={};function BS(n,e){const t=n.contentQueries;if(null!==t)for(let r=0;r<t.length;r+=2){const s=t[r],c=t[r+1];if(-1!==c){const h=n.data[c];Qu(s),h.contentQueries(2,e[c],c)}}}function Sh(n,e,t,r,s,c,h,m,w,k){const N=e.blueprint.slice();return N[0]=s,N[2]=140|r,Hs(N),N[3]=N[15]=n,N[8]=t,N[10]=h||n&&n[10],N[11]=m||n&&n[11],N[12]=w||n&&n[12]||null,N[9]=k||n&&n[9]||null,N[6]=c,N[16]=2==e.type?n[16]:N,N}function Ed(n,e,t,r,s){let c=n.data[e];if(null===c)c=function tb(n,e,t,r,s){const c=n0(),h=r0(),w=n.data[e]=function sb(n,e,t,r,s,c){return{type:t,index:r,insertBeforeIndex:null,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:s,attrs:c,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,h?c:c&&c.parent,t,e,r,s);return null===n.firstChild&&(n.firstChild=w),null!==c&&(h?null==c.child&&null!==w.parent&&(c.child=w):null===c.next&&(c.next=w)),w}(n,e,t,r,s),function a0(){return Dt.lFrame.inI18n}()&&(c.flags|=64);else if(64&c.type){c.type=t,c.value=r,c.attrs=s;const h=function is(){const n=Dt.lFrame,e=n.currentTNode;return n.isParent?e:e.parent}();c.injectorIndex=null===h?-1:h.injectorIndex}return Ze(c,!0),c}function jc(n,e,t,r){if(0===t)return-1;const s=e.length;for(let c=0;c<t;c++)e.push(r),n.blueprint.push(r),n.data.push(null);return s}function Cd(n,e,t){Eg(e);try{const r=n.viewQuery;null!==r&&fb(1,r,t);const s=n.template;null!==s&&Eh(n,e,s,1,t),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&BS(n,e),n.staticViewQueries&&fb(2,n.viewQuery,t);const c=n.components;null!==c&&function GR(n,e){for(let t=0;t<e.length;t++)tt(n,e[t])}(e,c)}catch(r){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),r}finally{e[2]&=-5,Cg()}}function Bc(n,e,t,r){const s=e[2];if(256!=(256&s)){Eg(e);try{Hs(e),function s0(n){return Dt.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==t&&Eh(n,e,t,2,r);const h=3==(3&s);if(h){const k=n.preOrderCheckHooks;null!==k&&Ig(e,k,null)}else{const k=n.preOrderHooks;null!==k&&Zu(e,k,0,null),c0(e,0)}if(function XS(n){for(let e=Yg(n);null!==e;e=Gs(e)){if(!e[2])continue;const t=e[9];for(let r=0;r<t.length;r++){const s=t[r],c=s[3];0==(1024&s[2])&&ei(c,1),s[2]|=1024}}}(e),function Dd(n){for(let e=Yg(n);null!==e;e=Gs(e))for(let t=10;t<e.length;t++){const r=e[t],s=r[1];xg(r)&&Bc(s,r,s.template,r[8])}}(e),null!==n.contentQueries&&BS(n,e),h){const k=n.contentCheckHooks;null!==k&&Ig(e,k)}else{const k=n.contentHooks;null!==k&&Zu(e,k,1),c0(e,1)}!function $R(n,e){const t=n.hostBindingOpCodes;if(null!==t)try{for(let r=0;r<t.length;r++){const s=t[r];if(s<0)Al(~s);else{const c=s,h=t[++r],m=t[++r];AA(h,c),m(2,e[c])}}}finally{Al(-1)}}(n,e);const m=n.components;null!==m&&function HR(n,e){for(let t=0;t<e.length;t++)rI(n,e[t])}(e,m);const w=n.viewQuery;if(null!==w&&fb(2,w,r),h){const k=n.viewCheckHooks;null!==k&&Ig(e,k)}else{const k=n.viewHooks;null!==k&&Zu(e,k,2),c0(e,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),e[2]&=-73,1024&e[2]&&(e[2]&=-1025,ei(e[3],-1))}finally{Cg()}}}function zS(n,e,t,r){const s=e[10],h=wg(e);try{!h&&s.begin&&s.begin(),h&&Cd(n,e,r),Bc(n,e,t,r)}finally{!h&&s.end&&s.end()}}function Eh(n,e,t,r,s){const c=function Mi(){return Dt.lFrame.selectedIndex}(),h=2&r;try{Al(-1),h&&e.length>20&&function om(n,e,t,r){if(!r)if(3==(3&e[2])){const c=n.preOrderCheckHooks;null!==c&&Ig(e,c,t)}else{const c=n.preOrderHooks;null!==c&&Zu(e,c,0,t)}Al(t)}(n,e,20,!1),t(r,s)}finally{Al(c)}}function qS(n){const e=n.tView;return null===e||e.incompleteFirstPass?n.tView=dm(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):e}function dm(n,e,t,r,s,c,h,m,w,k){const N=20+r,V=N+s,W=function UR(n,e){const t=[];for(let r=0;r<e;r++)t.push(r<n?null:Wt);return t}(N,V),ee="function"==typeof k?k():k;return W[1]={type:n,blueprint:W,template:t,queries:null,viewQuery:m,declTNode:e,data:W.slice().fill(null,N),bindingStartIndex:N,expandoStartIndex:V,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof c?c():c,pipeRegistry:"function"==typeof h?h():h,firstChild:null,schemas:w,consts:ee,incompleteFirstPass:!1}}function ob(n,e,t,r){const s=function tE(n){return n[7]||(n[7]=[])}(e);null===t?s.push(r):(s.push(t),n.firstCreatePass&&function nE(n){return n.cleanup||(n.cleanup=[])}(n).push(r,s.length-1))}function VS(n,e,t){for(let r in n)if(n.hasOwnProperty(r)){const s=n[r];(t=null===t?{}:t).hasOwnProperty(r)?t[r].push(e,s):t[r]=[e,s]}return t}function HS(n,e,t,r,s,c){const h=c.hostBindings;if(h){let m=n.hostBindingOpCodes;null===m&&(m=n.hostBindingOpCodes=[]);const w=~e.index;(function GS(n){let e=n.length;for(;e>0;){const t=n[--e];if("number"==typeof t&&t<0)return t}return 0})(m)!=w&&m.push(w),m.push(r,s,h)}}function US(n,e){null!==n.hostBindings&&n.hostBindings(1,e)}function KS(n,e){e.flags|=2,(n.components||(n.components=[])).push(e.index)}function Dh(n,e,t){if(t){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)t[e.exportAs[r]]=n;ns(e)&&(t[""]=n)}}function QS(n,e,t){n.flags|=1,n.directiveStart=e,n.directiveEnd=e+t,n.providerIndexes=e}function YS(n,e,t,r,s){n.data[r]=s;const c=s.factory||(s.factory=_c(s.type)),h=new Pa(c,ns(s),null);n.blueprint[r]=h,t[r]=h,HS(n,e,0,r,jc(n,t,s.hostVars,Wt),s)}function tI(n,e,t){const r=Gi(e,n),s=qS(t),c=n[10],h=kd(n,Sh(n,s,null,t.onPush?64:16,r,e,c,c.createRenderer(r,t),null,null));n[e.index]=h}function nI(n,e,t,r,s,c){const h=c[e];if(null!==h){const m=r.setInput;for(let w=0;w<h.length;){const k=h[w++],N=h[w++],V=h[w++];null!==m?r.setInput(t,V,k,N):t[N]=V}}}function kh(n,e){let t=null,r=0;for(;r<e.length;){const s=e[r];if(0!==s)if(5!==s){if("number"==typeof s)break;n.hasOwnProperty(s)&&(null===t&&(t=[]),t.push(s,n[s],e[r+1])),r+=2}else r+=2;else r+=4}return t}function rI(n,e){const t=Ui(e,n);if(xg(t)){const r=t[1];80&t[2]?Bc(r,t,r.template,t[8]):t[5]>0&&lb(t)}}function lb(n){for(let r=Yg(n);null!==r;r=Gs(r))for(let s=10;s<r.length;s++){const c=r[s];if(1024&c[2]){const h=c[1];Bc(h,c,h.template,c[8])}else c[5]>0&&lb(c)}const t=n[1].components;if(null!==t)for(let r=0;r<t.length;r++){const s=Ui(t[r],n);xg(s)&&s[5]>0&&lb(s)}}function tt(n,e){const t=Ui(e,n),r=t[1];(function iI(n,e){for(let t=e.length;t<n.blueprint.length;t++)e.push(n.blueprint[t])})(r,t),Cd(r,t,t[8])}function kd(n,e){return n[13]?n[14][4]=e:n[13]=e,n[14]=e,e}function db(n,e,t){const r=e[10];r.begin&&r.begin();try{Bc(n,e,n.template,t)}catch(s){throw function Wa(n,e){const t=n[9],r=t?t.get(bd,null):null;r&&r.handleError(e)}(e,s),s}finally{r.end&&r.end()}}function JS(n){!function Ad(n){for(let e=0;e<n.components.length;e++){const t=n.components[e],r=Wg(t),s=r[1];zS(s,r,s.template,t)}}(n[8])}function fb(n,e,t){Qu(0),e(n,t)}const eE=(()=>Promise.resolve(null))();function mm(n,e,t){let r=t?n.styles:null,s=t?n.classes:null,c=0;if(null!==e)for(let h=0;h<e.length;h++){const m=e[h];"number"==typeof m?c=m:1==c?s=jv(s,m):2==c&&(r=jv(r,m+": "+e[++h]+";"))}t?n.styles=r:n.stylesWithoutHost=r,t?n.classes=s:n.classesWithoutHost=s}const gb=new Ot("INJECTOR",-1);class iE{get(e,t=sh){if(t===sh){const r=new Error(`NullInjectorError: No provider for ${Ln(e)}!`);throw r.name="NullInjectorError",r}return t}}const mb=new Ot("Set Injector scope."),Rh={},oE={};let yb;function sE(){return void 0===yb&&(yb=new iE),yb}function aE(n,e=null,t=null,r){const s=lE(n,e,t,r);return s._resolveInjectorDefTypes(),s}function lE(n,e=null,t=null,r){return new vb(n,t,e||sE(),r)}class vb{constructor(e,t,r,s=null){this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const c=[];t&&os(t,m=>this.processProvider(m,e,t)),os([e],m=>this.processInjectorType(m,[],c)),this.records.set(gb,Rd(void 0,this));const h=this.records.get(mb);this.scope=null!=h?h.value:null,this.source=s||("object"==typeof e?null:Ln(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=sh,r=Ye.Default){this.assertNotDestroyed();const s=ir(this),c=Ma(void 0);try{if(!(r&Ye.SkipSelf)){let m=this.records.get(e);if(void 0===m){const w=function dI(n){return"function"==typeof n||"object"==typeof n&&n instanceof Ot}(e)&&Bv(e);m=w&&this.injectableDefInScope(w)?Rd(bb(e),Rh):null,this.records.set(e,m)}if(null!=m)return this.hydrate(e,m)}return(r&Ye.Self?sE():this.parent).get(e,t=r&Ye.Optional&&t===sh?null:t)}catch(h){if("NullInjectorError"===h.name){if((h[Hg]=h[Hg]||[]).unshift(Ln(e)),s)throw h;return function lh(n,e,t,r){const s=n[Hg];throw e[B_]&&s.unshift(e[B_]),n.message=function KA(n,e,t,r=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let s=Ln(e);if(Array.isArray(e))s=e.map(Ln).join(" -> ");else if("object"==typeof e){let c=[];for(let h in e)if(e.hasOwnProperty(h)){let m=e[h];c.push(h+":"+("string"==typeof m?JSON.stringify(m):Ln(m)))}s=`{${c.join(", ")}}`}return`${t}${r?"("+r+")":""}[${s}]: ${n.replace(GA,"\n ")}`}("\n"+n.message,s,t,r),n.ngTokenPath=s,n[Hg]=null,n}(h,e,"R3InjectorError",this.source)}throw h}finally{Ma(c),ir(s)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((r,s)=>e.push(Ln(s))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ot(205,!1)}processInjectorType(e,t,r){if(!(e=Tt(e)))return!1;let s=gc(e);const c=null==s&&e.ngModule||void 0,h=void 0===c?e:c,m=-1!==r.indexOf(h);if(void 0!==c&&(s=gc(c)),null==s)return!1;if(null!=s.imports&&!m){let N;r.push(h);try{os(s.imports,V=>{this.processInjectorType(V,t,r)&&(void 0===N&&(N=[]),N.push(V))})}finally{}if(void 0!==N)for(let V=0;V<N.length;V++){const{ngModule:W,providers:ee}=N[V];os(ee,ue=>this.processProvider(ue,W,ee||In))}}this.injectorDefTypes.add(h);const w=_c(h)||(()=>new h);this.records.set(h,Rd(w,Rh));const k=s.providers;if(null!=k&&!m){const N=e;os(k,V=>this.processProvider(V,N,k))}return void 0!==c&&void 0!==e.providers}processProvider(e,t,r){let s=zc(e=Tt(e))?e:Tt(e&&e.provide);const c=function lI(n,e,t){return wb(n)?Rd(void 0,n.useValue):Rd(function uE(n,e,t){let r;if(zc(n)){const s=Tt(n);return _c(s)||bb(s)}if(wb(n))r=()=>Tt(n.useValue);else if(function xb(n){return!(!n||!n.useFactory)}(n))r=()=>n.useFactory(...v0(n.deps||[]));else if(function cI(n){return!(!n||!n.useExisting)}(n))r=()=>Pe(Tt(n.useExisting));else{const s=Tt(n&&(n.useClass||n.provide));if(!function Ih(n){return!!n.deps}(n))return _c(s)||bb(s);r=()=>new s(...v0(n.deps))}return r}(n),Rh)}(e);if(zc(e)||!0!==e.multi)this.records.get(s);else{let h=this.records.get(s);h||(h=Rd(void 0,Rh,!0),h.factory=()=>v0(h.multi),this.records.set(s,h)),s=e,h.multi.push(e)}this.records.set(s,c)}hydrate(e,t){return t.value===Rh&&(t.value=oE,t.value=t.factory()),"object"==typeof t.value&&t.value&&function uI(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(t.value)&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){if(!e.providedIn)return!1;const t=Tt(e.providedIn);return"string"==typeof t?"any"===t||t===this.scope:this.injectorDefTypes.has(t)}}function bb(n){const e=Bv(n),t=null!==e?e.factory:_c(n);if(null!==t)return t;if(n instanceof Ot)throw new ot(204,!1);if(n instanceof Function)return function cE(n){const e=n.length;if(e>0)throw function Na(n,e){const t=[];for(let r=0;r<n;r++)t.push(e);return t}(e,"?"),new ot(204,!1);const t=function zu(n){const e=n&&(n[fe]||n[cg]);if(e){const t=function fA(n){if(n.hasOwnProperty("name"))return n.name;const e=(""+n).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${t}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${t}" class.`),e}return null}(n);return null!==t?()=>t.factory(n):()=>new n}(n);throw new ot(204,!1)}function Rd(n,e,t=!1){return{factory:n,value:e,multi:t?[]:void 0}}function wb(n){return null!==n&&"object"==typeof n&&WA in n}function zc(n){return"function"==typeof n}let Yi=(()=>{class n{static create(t,r){var s;if(Array.isArray(t))return aE({name:""},r,t,"");{const c=null!==(s=t.name)&&void 0!==s?s:"";return aE({name:c},t.parent,t.providers,c)}}}return n.THROW_IF_NOT_FOUND=sh,n.NULL=new iE,n.\u0275prov=Qe({token:n,providedIn:"any",factory:()=>Pe(gb)}),n.__NG_ELEMENT_ID__=-1,n})();function bI(n,e){yi(Wg(n)[1],Nr())}function jt(n){let e=function wE(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),t=!0;const r=[n];for(;e;){let s;if(ns(n))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new ot(903,"");s=e.\u0275dir}if(s){if(t){r.push(s);const h=n;h.inputs=Ab(n.inputs),h.declaredInputs=Ab(n.declaredInputs),h.outputs=Ab(n.outputs);const m=s.hostBindings;m&&SE(n,m);const w=s.viewQuery,k=s.contentQueries;if(w&&xI(n,w),k&&_E(n,k),Nv(n.inputs,s.inputs),Nv(n.declaredInputs,s.declaredInputs),Nv(n.outputs,s.outputs),ns(s)&&s.data.animation){const N=n.data;N.animation=(N.animation||[]).concat(s.data.animation)}}const c=s.features;if(c)for(let h=0;h<c.length;h++){const m=c[h];m&&m.ngInherit&&m(n),m===jt&&(t=!1)}}e=Object.getPrototypeOf(e)}!function xE(n){let e=0,t=null;for(let r=n.length-1;r>=0;r--){const s=n[r];s.hostVars=e+=s.hostVars,s.hostAttrs=Mg(s.hostAttrs,t=Mg(t,s.hostAttrs))}}(r)}function Ab(n){return n===vl?{}:n===In?[]:n}function xI(n,e){const t=n.viewQuery;n.viewQuery=t?(r,s)=>{e(r,s),t(r,s)}:e}function _E(n,e){const t=n.contentQueries;n.contentQueries=t?(r,s,c)=>{e(r,s,c),t(r,s,c)}:e}function SE(n,e){const t=n.hostBindings;n.hostBindings=t?(r,s)=>{e(r,s),t(r,s)}:e}let vm=null;function Id(){if(!vm){const n=kt.Symbol;if(n&&n.iterator)vm=n.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const r=e[t];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(vm=r)}}}return vm}function be(n,e=Ye.Default){const t=Fe();return null===t?Pe(n,e):R_(Nr(),t,Tt(n),e)}function zb(n,e,t,r,s){const h=s?"class":"style";!function rE(n,e,t,r,s){for(let c=0;c<t.length;){const h=t[c++],m=t[c++],w=e[h],k=n.data[h];null!==k.setInput?k.setInput(w,s,r,m):w[m]=s}}(n,t,e.inputs[h],h,r)}function Em(n,e,t,r){const s=Fe(),c=fn(),h=20+n,m=s[11],w=s[h]=dh(m,e,function Rg(){return Dt.lFrame.currentNamespace}()),k=c.firstCreatePass?function LI(n,e,t,r,s,c,h){const m=e.consts,k=Ed(e,n,2,s,dn(m,c));return function ab(n,e,t,r){let s=!1;if(_g()){const c=function WS(n,e,t){const r=n.directiveRegistry;let s=null;if(r)for(let c=0;c<r.length;c++){const h=r[c];_S(t,h.selectors,!1)&&(s||(s=[]),Ng(td(t,e),n,h.type),ns(h)?(KS(n,t),s.unshift(h)):s.push(h))}return s}(n,e,t),h=null===r?null:{"":-1};if(null!==c){s=!0,QS(t,n.data.length,c.length);for(let N=0;N<c.length;N++){const V=c[N];V.providersResolver&&V.providersResolver(V)}let m=!1,w=!1,k=jc(n,e,c.length,null);for(let N=0;N<c.length;N++){const V=c[N];t.mergedAttrs=Mg(t.mergedAttrs,V.hostAttrs),YS(n,t,e,k,V),Dh(k,V,h),null!==V.contentQueries&&(t.flags|=8),(null!==V.hostBindings||null!==V.hostAttrs||0!==V.hostVars)&&(t.flags|=128);const W=V.type.prototype;!m&&(W.ngOnChanges||W.ngOnInit||W.ngDoCheck)&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t.index),m=!0),!w&&(W.ngOnChanges||W.ngDoCheck)&&((n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t.index),w=!0),k++}!function WR(n,e){const r=e.directiveEnd,s=n.data,c=e.attrs,h=[];let m=null,w=null;for(let k=e.directiveStart;k<r;k++){const N=s[k],V=N.inputs,W=null===c||wS(e)?null:kh(V,c);h.push(W),m=VS(V,k,m),w=VS(N.outputs,k,w)}null!==m&&(m.hasOwnProperty("class")&&(e.flags|=16),m.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=h,e.inputs=m,e.outputs=w}(n,t)}h&&function eI(n,e,t){if(e){const r=n.localNames=[];for(let s=0;s<e.length;s+=2){const c=t[e[s+1]];if(null==c)throw new ot(-301,!1);r.push(e[s],c)}}}(t,r,h)}return t.mergedAttrs=Mg(t.mergedAttrs,t.attrs),s}(e,t,k,dn(m,h)),null!==k.attrs&&mm(k,k.attrs,!1),null!==k.mergedAttrs&&mm(k,k.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,k),k}(h,c,s,0,e,t,r):c.data[h];Ze(k,!0);const N=k.mergedAttrs;null!==N&&Cc(m,w,N);const V=k.classes;null!==V&&Nt(m,w,V);const W=k.styles;return null!==W&&gd(m,w,W),64!=(64&k.flags)&&Va(c,s,w,k),0===function EA(){return Dt.lFrame.elementDepthCount}()&&ii(w,s),function CA(){Dt.lFrame.elementDepthCount++}(),function mg(n){return 1==(1&n.flags)}(k)&&(function nb(n,e,t){!_g()||(function XR(n,e,t,r){const s=t.directiveStart,c=t.directiveEnd;n.firstCreatePass||td(t,e),ii(r,e);const h=t.initialInputs;for(let m=s;m<c;m++){const w=n.data[m],k=ns(w);k&&tI(e,t,w);const N=Zf(e,n,m,t);ii(N,e),null!==h&&nI(0,m-s,N,w,0,h),k&&(Ui(t.index,e)[8]=N)}}(n,e,t,Gi(t,e)),128==(128&t.flags)&&function JR(n,e,t){const r=t.directiveStart,s=t.directiveEnd,h=t.index,m=function v_(){return Dt.lFrame.currentDirectiveIndex}();try{Al(h);for(let w=r;w<s;w++){const k=n.data[w],N=e[w];nr(w),(null!==k.hostBindings||0!==k.hostVars||null!==k.hostAttrs)&&US(k,N)}}finally{Al(-1),nr(m)}}(n,e,t))}(c,s,k),function Ch(n,e,t){if(Uf(e)){const s=e.directiveEnd;for(let c=e.directiveStart;c<s;c++){const h=n.data[c];h.contentQueries&&h.contentQueries(1,t[c],c)}}}(c,k,s)),null!==r&&function rb(n,e,t=Gi){const r=e.localNames;if(null!==r){let s=e.index+1;for(let c=0;c<r.length;c+=2){const h=r[c+1],m=-1===h?t(e,n):n[h];n[s++]=m}}}(s,k),Em}function Cm(){let n=Nr();r0()?function Ku(){Dt.lFrame.isParent=!1}():(n=n.parent,Ze(n,!1));const e=n;!function DA(){Dt.lFrame.elementDepthCount--}();const t=fn();return t.firstCreatePass&&(yi(t,n),Uf(n)&&t.queries.elementEnd(n)),null!=e.classesWithoutHost&&function Yf(n){return 0!=(16&n.flags)}(e)&&zb(t,e,Fe(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function OA(n){return 0!=(32&n.flags)}(e)&&zb(t,e,Fe(),e.stylesWithoutHost,!1),Cm}function Kt(n,e,t,r){return Em(n,e,t,r),Cm(),Kt}function Fd(n){return!!n&&"function"==typeof n.then}const PI=function Nd(n){return!!n&&"function"==typeof n.subscribe},Vh="en-US";let u1=Vh;class nD{}class DM{resolveComponentFactory(e){throw function CM(n){const e=Error(`No component factory found for ${Ln(n)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=n,e}(e)}}let tu=(()=>{class n{}return n.NULL=new DM,n})();function kM(){return Oi(Nr(),Fe())}function Oi(n,e){return new xn(Gi(n,e))}let xn=(()=>{class n{constructor(t){this.nativeElement=t}}return n.__NG_ELEMENT_ID__=kM,n})();function ia(n){return n instanceof xn?n.nativeElement:n}class nu{}let sD=(()=>{class n{}return n.\u0275prov=Qe({token:n,providedIn:"root",factory:()=>null}),n})();class ep{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const AM=new ep("13.4.0"),R1={};function Gm(n,e,t,r,s=!1){for(;null!==t;){const c=e[t.index];if(null!==c&&r.push(Fr(c)),co(c))for(let m=10;m<c.length;m++){const w=c[m],k=w[1].firstChild;null!==k&&Gm(w[1],w,k,r)}const h=t.type;if(8&h)Gm(n,e,t.child,r);else if(32&h){const m=Kg(t,e);let w;for(;w=m();)r.push(w)}else if(16&h){const m=$a(e,t);if(Array.isArray(m))r.push(...m);else{const w=dd(e[16]);Gm(w[1],w,m,r,!0)}}t=s?t.projectionNext:t.next}return r}class tp{constructor(e,t){this._lView=e,this._cdRefInjectingView=t,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const e=this._lView,t=e[1];return Gm(t,e,t.firstChild,[])}get context(){return this._lView[8]}set context(e){this._lView[8]=e}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[3];if(co(e)){const t=e[8],r=t?t.indexOf(this):-1;r>-1&&(hh(e,r),Fa(t,r))}this._attachedToViewContainer=!1}vo(this._lView[1],this._lView)}onDestroy(e){ob(this._lView[1],this._lView,null,e)}markForCheck(){!function cb(n){for(;n;){n[2]|=64;const e=dd(n);if(o_(n)&&!e)return n;n=e}return null}(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){db(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ot(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function fh(n,e){pd(n,e,e[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new ot(902,"");this._appRef=e}}class np extends tp{constructor(e){super(e),this._view=e}detectChanges(){JS(this._view)}checkNoChanges(){}get context(){return null}}class aD extends tu{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=Cr(e);return new I1(t,this.ngModule)}}function lD(n){const e=[];for(let t in n)n.hasOwnProperty(t)&&e.push({propName:n[t],templateName:t});return e}class I1 extends nD{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=function DS(n){return n.map(LR).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return lD(this.componentDef.inputs)}get outputs(){return lD(this.componentDef.outputs)}create(e,t,r,s){const c=(s=s||this.ngModule)?function IM(n,e){return{get:(t,r,s)=>{const c=n.get(t,R1,s);return c!==R1||r===R1?c:e.get(t,r,s)}}}(e,s.injector):e,h=c.get(nu,e0),m=c.get(sD,null),w=h.createRenderer(null,this.componentDef),k=this.componentDef.selectors[0][0]||"div",N=r?function ib(n,e,t){if(fr(n))return n.selectRootElement(e,t===Po.ShadowDom);let r="string"==typeof e?n.querySelector(e):e;return r.textContent="",r}(w,r,this.componentDef.encapsulation):dh(h.createRenderer(null,this.componentDef),k,function RM(n){const e=n.toLowerCase();return"svg"===e?"svg":"math"===e?"math":null}(k)),V=this.componentDef.onPush?576:528,W=function bE(n,e){return{components:[],scheduler:n||kR,clean:eE,playerHandler:e||null,flags:0}}(),ee=dm(0,null,null,1,0,null,null,null,null,null),ue=Sh(null,ee,W,V,null,null,h,w,m,c);let me,Ce;Eg(ue);try{const Oe=function yE(n,e,t,r,s,c){const h=t[1];t[20]=n;const w=Ed(h,20,2,"#host",null),k=w.mergedAttrs=e.hostAttrs;null!==k&&(mm(w,k,!0),null!==n&&(Cc(s,n,k),null!==w.classes&&Nt(s,n,w.classes),null!==w.styles&&gd(s,n,w.styles)));const N=r.createRenderer(n,e),V=Sh(t,qS(e),null,e.onPush?64:16,t[20],w,r,N,c||null,null);return h.firstCreatePass&&(Ng(td(w,t),h,e.type),KS(h,w),QS(w,t.length,1)),kd(t,V),t[20]=V}(N,this.componentDef,ue,h,w);if(N)if(r)Cc(w,N,["ng-version",AM.full]);else{const{attrs:xe,classes:Ue}=function PR(n){const e=[],t=[];let r=1,s=2;for(;r<n.length;){let c=n[r];if("string"==typeof c)2===s?""!==c&&e.push(c,n[++r]):8===s&&t.push(c);else{if(!zo(s))break;s=c}r++}return{attrs:e,classes:t}}(this.componentDef.selectors[0]);xe&&Cc(w,N,xe),Ue&&Ue.length>0&&Nt(w,N,Ue.join(" "))}if(Ce=function Kf(n,e){return n.data[e]}(ee,20),void 0!==t){const xe=Ce.projection=[];for(let Ue=0;Ue<this.ngContentSelectors.length;Ue++){const vt=t[Ue];xe.push(null!=vt?Array.from(vt):null)}}me=function vE(n,e,t,r,s){const c=t[1],h=function ZR(n,e,t){const r=Nr();n.firstCreatePass&&(t.providersResolver&&t.providersResolver(t),YS(n,r,e,jc(n,e,1,null),t));const s=Zf(e,n,r.directiveStart,r);ii(s,e);const c=Gi(r,e);return c&&ii(c,e),s}(c,t,e);if(r.components.push(h),n[8]=h,s&&s.forEach(w=>w(h,e)),e.contentQueries){const w=Nr();e.contentQueries(1,h,w.directiveStart)}const m=Nr();return!c.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(Al(m.index),HS(t[1],m,0,m.directiveStart,m.directiveEnd,e),US(e,h)),h}(Oe,this.componentDef,ue,W,[bI]),Cd(ee,ue,null)}finally{Cg()}return new TM(this.componentType,me,Oi(Ce,ue),ue,Ce)}}class TM extends class tD{}{constructor(e,t,r,s,c){super(),this.location=r,this._rootLView=s,this._tNode=c,this.instance=t,this.hostView=this.changeDetectorRef=new np(s),this.componentType=e}get injector(){return new nd(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}class Qd{}const Yd=new Map;class uD extends Qd{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new aD(this);const r=Hi(e);this._bootstrapComponents=Bo(r.bootstrap),this._r3Injector=lE(e,t,[{provide:Qd,useValue:this},{provide:tu,useValue:this.componentFactoryResolver}],Ln(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=Yi.THROW_IF_NOT_FOUND,r=Ye.Default){return e===Yi||e===Qd||e===gb?this:this._r3Injector.get(e,t,r)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class T1 extends class LM{}{constructor(e){super(),this.moduleType=e,null!==Hi(e)&&function PM(n){const e=new Set;!function t(r){const s=Hi(r,!0),c=s.id;null!==c&&(function M1(n,e,t){if(e&&e!==t)throw new Error(`Duplicate module registered for ${n} - ${Ln(e)} vs ${Ln(e.name)}`)}(c,Yd.get(c),r),Yd.set(c,r));const h=Bo(s.imports);for(const m of h)e.has(m)||(e.add(m),t(m))}(n)}(e)}create(e){return new uD(this.moduleType,e)}}function $l(n){return e=>{setTimeout(n,void 0,e)}}const Li=class Jd extends Zr{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,r){var s,c,h;let m=e,w=t||(()=>null),k=r;if(e&&"object"==typeof e){const V=e;m=null===(s=V.next)||void 0===s?void 0:s.bind(V),w=null===(c=V.error)||void 0===c?void 0:c.bind(V),k=null===(h=V.complete)||void 0===h?void 0:h.bind(V)}this.__isAsync&&(w=$l(w),m&&(m=$l(m)),k&&(k=$l(k)));const N=super.subscribe({next:m,error:w,complete:k});return e instanceof Cn&&e.add(N),N}};function pr(){return this._results[Id()]()}class ip{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=Id(),r=ip.prototype;r[t]||(r[t]=pr)}get changes(){return this._changes||(this._changes=new Li)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){const r=this;r.dirty=!1;const s=mo(e);(this._changesDetected=!function p0(n,e,t){if(n.length!==e.length)return!1;for(let r=0;r<n.length;r++){let s=n[r],c=e[r];if(t&&(s=t(s),c=t(c)),c!==s)return!1}return!0}(r._results,s,t))&&(r._results=s,r.length=s.length,r.last=s[this.length-1],r.first=s[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let oa=(()=>{class n{}return n.__NG_ELEMENT_ID__=op,n})();const HM=oa,GM=class extends HM{constructor(e,t,r){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=r}createEmbeddedView(e){const t=this._declarationTContainer.tViews,r=Sh(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);r[17]=this._declarationLView[this._declarationTContainer.index];const c=this._declarationLView[19];return null!==c&&(r[19]=c.createEmbeddedView(t)),Cd(t,r,e),new tp(r)}};function op(){return Wm(Nr(),Fe())}function Wm(n,e){return 4&n.type?new GM(e,n,Oi(n,e)):null}let $o=(()=>{class n{}return n.__NG_ELEMENT_ID__=UM,n})();function UM(){return ru(Nr(),Fe())}const WM=$o,xD=class extends WM{constructor(e,t,r){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=r}get element(){return Oi(this._hostTNode,this._hostLView)}get injector(){return new nd(this._hostTNode,this._hostLView)}get parentInjector(){const e=Fg(this._hostTNode,this._hostLView);if(D_(e)){const t=kc(e,this._hostLView),r=Dc(e);return new nd(t[1].data[r+8],t)}return new nd(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=_D(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,r){const s=e.createEmbeddedView(t||{});return this.insert(s,r),s}createComponent(e,t,r,s,c){const h=e&&!function ih(n){return"function"==typeof n}(e);let m;if(h)m=t;else{const V=t||{};m=V.index,r=V.injector,s=V.projectableNodes,c=V.ngModuleRef}const w=h?e:new I1(Cr(e)),k=r||this.parentInjector;if(!c&&null==w.ngModule){const W=(h?k:this.parentInjector).get(Qd,null);W&&(c=W)}const N=w.create(k,s,void 0,c);return this.insert(N.hostView,m),N}insert(e,t){const r=e._lView,s=r[1];if(function SA(n){return co(n[3])}(r)){const N=this.indexOf(e);if(-1!==N)this.detach(N);else{const V=r[3],W=new xD(V,V[6],V[3]);W.detach(W.indexOf(e))}}const c=this._adjustIndex(t),h=this._lContainer;!function Oc(n,e,t,r){const s=10+r,c=t.length;r>0&&(t[s-1][4]=e),r<c-10?(e[4]=t[s],Mn(t,10+r,e)):(t.push(e),e[4]=null),e[3]=t;const h=e[17];null!==h&&t!==h&&function sR(n,e){const t=n[9];e[16]!==e[3][3][16]&&(n[2]=!0),null===t?n[9]=[e]:t.push(e)}(h,e);const m=e[19];null!==m&&m.insertView(n),e[2]|=128}(s,r,h,c);const m=T0(c,h),w=r[11],k=Zg(w,h[7]);return null!==k&&function hd(n,e,t,r,s,c){r[0]=s,r[6]=e,pd(n,r,t,1,s,c)}(s,h[6],w,r,k,m),e.attachToViewContainerRef(),Mn(sp(h),c,e),e}move(e,t){return this.insert(e,t)}indexOf(e){const t=_D(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),r=hh(this._lContainer,t);r&&(Fa(sp(this._lContainer),t),vo(r[1],r))}detach(e){const t=this._adjustIndex(e,-1),r=hh(this._lContainer,t);return r&&null!=Fa(sp(this._lContainer),t)?new tp(r):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}};function _D(n){return n[8]}function sp(n){return n[8]||(n[8]=[])}function ru(n,e){let t;const r=e[n.index];if(co(r))t=r;else{let s;if(8&n.type)s=Fr(r);else{const c=e[11];s=c.createComment("");const h=Gi(n,e);Ks(c,Zg(c,h),s,function lR(n,e){return fr(n)?n.nextSibling(e):e.nextSibling}(c,h),!1)}e[n.index]=t=function ZS(n,e,t,r){return new Array(n,!0,!1,e,null,0,r,t,null,null)}(r,e,s,n),kd(e,t)}return new xD(t,n,e)}class P1{constructor(e){this.queryList=e,this.matches=null}clone(){return new P1(this.queryList)}setDirty(){this.queryList.setDirty()}}class F1{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const r=null!==e.contentQueries?e.contentQueries[0]:t.length,s=[];for(let c=0;c<r;c++){const h=t.getByIndex(c);s.push(this.queries[h.indexInDeclarationView].clone())}return new F1(s)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let t=0;t<this.queries.length;t++)null!==DD(e,t).matches&&this.queries[t].setDirty()}}class ap{constructor(e,t,r=null){this.predicate=e,this.flags=t,this.read=r}}class N1{constructor(e=[]){this.queries=e}elementStart(e,t){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(e,t)}elementEnd(e){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}embeddedTView(e){let t=null;for(let r=0;r<this.length;r++){const s=null!==t?t.length:0,c=this.getByIndex(r).embeddedTView(e,s);c&&(c.indexInDeclarationView=r,null!==t?t.push(c):t=[c])}return null!==t?new N1(t):null}template(e,t){for(let r=0;r<this.queries.length;r++)this.queries[r].template(e,t)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class j1{constructor(e,t=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}elementStart(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,t){this.elementStart(e,t)}embeddedTView(e,t){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,t),new j1(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const t=this._declarationNodeIndex;let r=e.parent;for(;null!==r&&8&r.type&&r.index!==t;)r=r.parent;return t===(null!==r?r.index:-1)}return this._appliesToNextNode}matchTNode(e,t){const r=this.metadata.predicate;if(Array.isArray(r))for(let s=0;s<r.length;s++){const c=r[s];this.matchTNodeWithReadOption(e,t,ZM(t,c)),this.matchTNodeWithReadOption(e,t,Ac(t,e,c,!1,!1))}else r===oa?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,Ac(t,e,r,!1,!1))}matchTNodeWithReadOption(e,t,r){if(null!==r){const s=this.metadata.read;if(null!==s)if(s===xn||s===$o||s===oa&&4&t.type)this.addMatch(t.index,-2);else{const c=Ac(t,e,s,!1,!1);null!==c&&this.addMatch(t.index,c)}else this.addMatch(t.index,r)}}addMatch(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}function ZM(n,e){const t=n.localNames;if(null!==t)for(let r=0;r<t.length;r+=2)if(t[r]===e)return t[r+1];return null}function JM(n,e,t,r){return-1===t?function XM(n,e){return 11&n.type?Oi(n,e):4&n.type?Wm(n,e):null}(e,n):-2===t?function SD(n,e,t){return t===xn?Oi(e,n):t===oa?Wm(e,n):t===$o?ru(e,n):void 0}(n,e,r):Zf(n,n[1],t,e)}function lp(n,e,t,r){const s=e[19].queries[r];if(null===s.matches){const c=n.data,h=t.matches,m=[];for(let w=0;w<h.length;w+=2){const k=h[w];m.push(k<0?null:JM(e,c[k],h[w+1],t.metadata.read))}s.matches=m}return s.matches}function B1(n,e,t,r){const s=n.queries.getByIndex(t),c=s.matches;if(null!==c){const h=lp(n,e,s,t);for(let m=0;m<c.length;m+=2){const w=c[m];if(w>0)r.push(h[m/2]);else{const k=c[m+1],N=e[-w];for(let V=10;V<N.length;V++){const W=N[V];W[17]===W[3]&&B1(W[1],W,k,r)}if(null!==N[9]){const V=N[9];for(let W=0;W<V.length;W++){const ee=V[W];B1(ee[1],ee,k,r)}}}}}return r}function z1(n){const e=Fe(),t=fn(),r=l0();Qu(r+1);const s=DD(t,r);if(n.dirty&&wg(e)===(2==(2&s.metadata.flags))){if(null===s.matches)n.reset([]);else{const c=s.crossesNgTemplate?B1(t,e,r,[]):lp(t,e,s,r);n.reset(c,ia),n.notifyOnChanges()}return!0}return!1}function q1(n,e,t){const r=fn();r.firstCreatePass&&(function CD(n,e,t){null===n.queries&&(n.queries=new N1),n.queries.track(new j1(e,t))}(r,new ap(n,e,t),-1),2==(2&e)&&(r.staticViewQueries=!0)),function ED(n,e,t){const r=new ip(4==(4&t));ob(n,e,r,r.destroy),null===e[19]&&(e[19]=new F1),e[19].queries.push(new P1(r))}(r,Fe(),e)}function Km(){return function t5(n,e){return n[19].queries[e].queryList}(Fe(),l0())}function DD(n,e){return n.queries.getByIndex(e)}function Hl(...n){}const Q1=new Ot("Application Initializer");let Y1=(()=>{class n{constructor(t){this.appInits=t,this.resolve=Hl,this.reject=Hl,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,s)=>{this.resolve=r,this.reject=s})}runInitializers(){if(this.initialized)return;const t=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let s=0;s<this.appInits.length;s++){const c=this.appInits[s]();if(Fd(c))t.push(c);else if(PI(c)){const h=new Promise((m,w)=>{c.subscribe({complete:m,error:w})});t.push(h)}}Promise.all(t).then(()=>{r()}).catch(s=>{this.reject(s)}),0===t.length&&r(),this.initialized=!0}}return n.\u0275fac=function(t){return new(t||n)(Pe(Q1,8))},n.\u0275prov=Qe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const up=new Ot("AppId",{providedIn:"root",factory:function FD(){return`${ey()}${ey()}${ey()}`}});function ey(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Z1=new Ot("Platform Initializer"),ws=new Ot("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),ty=new Ot("appBootstrapListener"),Gl=new Ot("LocaleId",{providedIn:"root",factory:()=>Gg(Gl,Ye.Optional|Ye.SkipSelf)||function X1(){return"undefined"!=typeof $localize&&$localize.locale||Vh}()}),zD=(()=>Promise.resolve(0))();function ny(n){"undefined"==typeof Zone?zD.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class Kn{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Li(!1),this.onMicrotaskEmpty=new Li(!1),this.onStable=new Li(!1),this.onError=new Li(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!r&&t,s.shouldCoalesceRunChangeDetection=r,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=function qD(){let n=kt.requestAnimationFrame,e=kt.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&e){const t=n[Zone.__symbol__("OriginalDelegate")];t&&(n=t);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function HD(n){const e=()=>{!function $D(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(kt,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,iy(n),n.isCheckStableRunning=!0,ry(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),iy(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,r,s,c,h,m)=>{try{return oy(n),t.invokeTask(s,c,h,m)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===c.type||n.shouldCoalesceRunChangeDetection)&&e(),J1(n)}},onInvoke:(t,r,s,c,h,m,w)=>{try{return oy(n),t.invoke(s,c,h,m,w)}finally{n.shouldCoalesceRunChangeDetection&&e(),J1(n)}},onHasTask:(t,r,s,c)=>{t.hasTask(s,c),r===s&&("microTask"==c.change?(n._hasPendingMicrotasks=c.microTask,iy(n),ry(n)):"macroTask"==c.change&&(n.hasPendingMacrotasks=c.macroTask))},onHandleError:(t,r,s,c)=>(t.handleError(s,c),n.runOutsideAngular(()=>n.onError.emit(c)),!1)})}(s)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Kn.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Kn.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,r){return this._inner.run(e,t,r)}runTask(e,t,r,s){const c=this._inner,h=c.scheduleEventTask("NgZoneEvent: "+s,e,VD,Hl,Hl);try{return c.runTask(h,t,r)}finally{c.cancelTask(h)}}runGuarded(e,t,r){return this._inner.runGuarded(e,t,r)}runOutsideAngular(e){return this._outer.run(e)}}const VD={};function ry(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function iy(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function oy(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function J1(n){n._nesting--,ry(n)}class GD{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Li,this.onMicrotaskEmpty=new Li,this.onStable=new Li,this.onError=new Li}run(e,t,r){return e.apply(t,r)}runGuarded(e,t,r){return e.apply(t,r)}runOutsideAngular(e){return e()}runTask(e,t,r,s){return e.apply(t,r)}}let sy=(()=>{class n{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Kn.assertNotInAngularZone(),ny(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())ny(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(t)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,r,s){let c=-1;r&&r>0&&(c=setTimeout(()=>{this._callbacks=this._callbacks.filter(h=>h.timeoutId!==c),t(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:t,timeoutId:c,updateCb:s})}whenStable(t,r,s){if(s&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,r,s),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,r,s){return[]}}return n.\u0275fac=function(t){return new(t||n)(Pe(Kn))},n.\u0275prov=Qe({token:n,factory:n.\u0275fac}),n})(),ew=(()=>{class n{constructor(){this._applications=new Map,ay.addToWindow(this)}registerApplication(t,r){this._applications.set(t,r)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,r=!0){return ay.findTestabilityInTree(this,t,r)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=Qe({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();class UD{addToWindow(e){}findTestabilityInTree(e,t,r){return null}}let ay=new UD,Za=null;const nw=new Ot("AllowMultipleToken"),ly=new Ot("PlatformOnDestroy");function cy(n,e,t=[]){const r=`Platform: ${e}`,s=new Ot(r);return(c=[])=>{let h=dp();if(!h||h.injector.get(nw,!1)){const m=[...t,...c,{provide:s,useValue:!0}];n?n(m):function ZD(n){if(Za&&!Za.get(nw,!1))throw new ot(400,"");Za=n;const e=n.get(iw),t=n.get(Z1,null);t&&t.forEach(r=>r())}(function rw(n=[],e){return Yi.create({name:e,providers:[{provide:mb,useValue:"platform"},{provide:ly,useValue:()=>Za=null},...n]})}(m,r))}return function XD(n){const e=dp();if(!e)throw new ot(401,"");return e}()}}function dp(){var n;return null!==(n=null==Za?void 0:Za.get(iw))&&void 0!==n?n:null}let iw=(()=>{class n{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,r){const m=function ow(n,e){let t;return t="noop"===n?new GD:("zone.js"===n?void 0:n)||new Kn({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),t}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),w=[{provide:Kn,useValue:m}];return m.run(()=>{const k=Yi.create({providers:w,parent:this.injector,name:t.moduleType.name}),N=t.create(k),V=N.injector.get(bd,null);if(!V)throw new ot(402,"");return m.runOutsideAngular(()=>{const W=m.onError.subscribe({next:ee=>{V.handleError(ee)}});N.onDestroy(()=>{hp(this._modules,N),W.unsubscribe()})}),function JD(n,e,t){try{const r=t();return Fd(r)?r.catch(s=>{throw e.runOutsideAngular(()=>n.handleError(s)),s}):r}catch(r){throw e.runOutsideAngular(()=>n.handleError(r)),r}}(V,m,()=>{const W=N.injector.get(Y1);return W.runInitializers(),W.donePromise.then(()=>(function TC(n){di(n,"Expected localeId to be defined"),"string"==typeof n&&(u1=n.toLowerCase().replace(/_/g,"-"))}(N.injector.get(Gl,Vh)||Vh),this._moduleDoBootstrap(N),N))})})}bootstrapModule(t,r=[]){const s=uy({},r);return function WD(n,e,t){const r=new T1(t);return Promise.resolve(r)}(0,0,t).then(c=>this.bootstrapModuleFactory(c,s))}_moduleDoBootstrap(t){const r=t.injector.get(fp);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(s=>r.bootstrap(s));else{if(!t.instance.ngDoBootstrap)throw new ot(403,"");t.instance.ngDoBootstrap(r)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ot(404,"");this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const t=this._injector.get(ly,null);null==t||t(),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(t){return new(t||n)(Pe(Yi))},n.\u0275prov=Qe({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function uy(n,e){return Array.isArray(e)?e.reduce(uy,n):Object.assign(Object.assign({},n),e)}let fp=(()=>{class n{constructor(t,r,s,c){this._zone=t,this._injector=r,this._exceptionHandler=s,this._initStatus=c,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const h=new z(w=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{w.next(this._stable),w.complete()})}),m=new z(w=>{let k;this._zone.runOutsideAngular(()=>{k=this._zone.onStable.subscribe(()=>{Kn.assertNotInAngularZone(),ny(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,w.next(!0))})})});const N=this._zone.onUnstable.subscribe(()=>{Kn.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{w.next(!1)}))});return()=>{k.unsubscribe(),N.unsubscribe()}});this.isStable=ju(h,m.pipe(function iA(){return n=>Lo()(function nA(n,e){return function(r){let s;if(s="function"==typeof n?n:function(){return n},"function"==typeof e)return r.lift(new rA(s,e));const c=Object.create(r,eA);return c.source=r,c.subjectFactory=s,c}}(pc)(n))}()))}bootstrap(t,r){if(!this._initStatus.done)throw new ot(405,"");let s;s=t instanceof nD?t:this._injector.get(tu).resolveComponentFactory(t),this.componentTypes.push(s.componentType);const c=function QD(n){return n.isBoundToModule}(s)?void 0:this._injector.get(Qd),m=s.create(Yi.NULL,[],r||s.selector,c),w=m.location.nativeElement,k=m.injector.get(sy,null),N=k&&m.injector.get(ew);return k&&N&&N.registerApplication(w,k),m.onDestroy(()=>{this.detachView(m.hostView),hp(this.components,m),N&&N.unregisterApplication(w)}),this._loadComponent(m),m}tick(){if(this._runningTick)throw new ot(101,"");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){const r=t;hp(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(ty,[]).concat(this._bootstrapListeners).forEach(s=>s(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(t){return new(t||n)(Pe(Kn),Pe(Yi),Pe(bd),Pe(Y1))},n.\u0275prov=Qe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function hp(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}let hy=!0,lf=(()=>{class n{}return n.__NG_ELEMENT_ID__=k5,n})();function k5(n){return function A5(n,e,t){if(gg(n)&&!t){const r=Ui(n.index,e);return new tp(r,r)}return 47&n.type?new tp(e[16],e):null}(Nr(),Fe(),16==(16&n))}const P=cy(null,"core",[]);let q=(()=>{class n{constructor(t){}}return n.\u0275fac=function(t){return new(t||n)(Pe(fp))},n.\u0275mod=Ri({type:n}),n.\u0275inj=Vi({}),n})(),he=null;function B(){return he}const te=new Ot("DocumentToken"),pw="browser";function Wl(n){return n===pw}function nl(n){return"server"===n}let Tw=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ri({type:n}),n.\u0275inj=Vi({}),n})();class mu extends class gu extends class re{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function Z(n){he||(he=n)}(new mu)}onAndCancel(e,t,r){return e.addEventListener(t,r,!1),()=>{e.removeEventListener(t,r,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getBaseHref(e){const t=function zy(){return va=va||document.querySelector("base"),va?va.getAttribute("href"):null}();return null==t?null:function yf(n){mf=mf||document.createElement("a"),mf.setAttribute("href",n);const e=mf.pathname;return"/"===e.charAt(0)?e:`/${e}`}(t)}resetBaseElement(){va=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function bp(n,e){e=encodeURIComponent(e);for(const t of n.split(";")){const r=t.indexOf("="),[s,c]=-1==r?[t,""]:[t.slice(0,r),t.slice(r+1)];if(s.trim()===e)return decodeURIComponent(c)}return null}(document.cookie,e)}}let mf,va=null;const rl=new Ot("TRANSITION_ID"),Yn=[{provide:Q1,useFactory:function lr(n,e,t){return()=>{t.get(Y1).donePromise.then(()=>{const r=B(),s=e.querySelectorAll(`style[ng-transition="${n}"]`);for(let c=0;c<s.length;c++)r.remove(s[c])})}},deps:[rl,te,Yi],multi:!0}];class ba{static init(){!function tw(n){ay=n}(new ba)}addToWindow(e){kt.getAngularTestability=(r,s=!0)=>{const c=e.findTestabilityInTree(r,s);if(null==c)throw new Error("Could not find testability for element.");return c},kt.getAllAngularTestabilities=()=>e.getAllTestabilities(),kt.getAllAngularRootElements=()=>e.getAllRootElements(),kt.frameworkStabilizers||(kt.frameworkStabilizers=[]),kt.frameworkStabilizers.push(r=>{const s=kt.getAllAngularTestabilities();let c=s.length,h=!1;const m=function(w){h=h||w,c--,0==c&&r(h)};s.forEach(function(w){w.whenStable(m)})})}findTestabilityInTree(e,t,r){if(null==t)return null;const s=e.getTestability(t);return null!=s?s:r?B().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}let wi=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=Qe({token:n,factory:n.\u0275fac}),n})();const li=new Ot("EventManagerPlugins");let wa=(()=>{class n{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(s=>s.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,r,s){return this._findPluginFor(r).addEventListener(t,r,s)}addGlobalEventListener(t,r,s){return this._findPluginFor(r).addGlobalEventListener(t,r,s)}getZone(){return this._zone}_findPluginFor(t){const r=this._eventNameToPlugin.get(t);if(r)return r;const s=this._plugins;for(let c=0;c<s.length;c++){const h=s[c];if(h.supports(t))return this._eventNameToPlugin.set(t,h),h}throw new Error(`No event manager plugin found for event ${t}`)}}return n.\u0275fac=function(t){return new(t||n)(Pe(li),Pe(Kn))},n.\u0275prov=Qe({token:n,factory:n.\u0275fac}),n})();class yu{constructor(e){this._doc=e}addGlobalEventListener(e,t,r){const s=B().getGlobalEventTarget(this._doc,e);if(!s)throw new Error(`Unsupported event target ${s} for event ${t}`);return this.addEventListener(s,t,r)}}let Ji=(()=>{class n{constructor(){this._stylesSet=new Set}addStyles(t){const r=new Set;t.forEach(s=>{this._stylesSet.has(s)||(this._stylesSet.add(s),r.add(s))}),this.onStylesAdded(r)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=Qe({token:n,factory:n.\u0275fac}),n})(),vu=(()=>{class n extends Ji{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,r,s){t.forEach(c=>{const h=this._doc.createElement("style");h.textContent=c,s.push(r.appendChild(h))})}addHost(t){const r=[];this._addStylesToHost(this._stylesSet,t,r),this._hostNodes.set(t,r)}removeHost(t){const r=this._hostNodes.get(t);r&&r.forEach(Lw),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((r,s)=>{this._addStylesToHost(t,s,r)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(Lw))}}return n.\u0275fac=function(t){return new(t||n)(Pe(te))},n.\u0275prov=Qe({token:n,factory:n.\u0275fac}),n})();function Lw(n){B().remove(n)}const qy={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},vf=/%COMP%/g;function il(n,e,t){for(let r=0;r<e.length;r++){let s=e[r];Array.isArray(s)?il(n,s,t):(s=s.replace(vf,n),t.push(s))}return t}function bu(n){return e=>{if("__ngUnwrap__"===e)return n;!1===n(e)&&(e.preventDefault(),e.returnValue=!1)}}let wu=(()=>{class n{constructor(t,r,s){this.eventManager=t,this.sharedStylesHost=r,this.appId=s,this.rendererByCompId=new Map,this.defaultRenderer=new eo(t)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;switch(r.encapsulation){case Po.Emulated:{let s=this.rendererByCompId.get(r.id);return s||(s=new _a(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,s)),s.applyToHost(t),s}case 1:case Po.ShadowDom:return new ol(this.eventManager,this.sharedStylesHost,t,r);default:if(!this.rendererByCompId.has(r.id)){const s=il(r.id,r.styles,[]);this.sharedStylesHost.addStyles(s),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(t){return new(t||n)(Pe(wa),Pe(vu),Pe(up))},n.\u0275prov=Qe({token:n,factory:n.\u0275fac}),n})();class eo{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,t){return t?document.createElementNS(qy[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,r){e&&e.insertBefore(t,r)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let r="string"==typeof e?document.querySelector(e):e;if(!r)throw new Error(`The selector "${e}" did not match any elements`);return t||(r.textContent=""),r}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,r,s){if(s){t=s+":"+t;const c=qy[s];c?e.setAttributeNS(c,t,r):e.setAttribute(t,r)}else e.setAttribute(t,r)}removeAttribute(e,t,r){if(r){const s=qy[r];s?e.removeAttributeNS(s,t):e.removeAttribute(`${r}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,r,s){s&(yo.DashCase|yo.Important)?e.style.setProperty(t,r,s&yo.Important?"important":""):e.style[t]=r}removeStyle(e,t,r){r&yo.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,r){e[t]=r}setValue(e,t){e.nodeValue=t}listen(e,t,r){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,bu(r)):this.eventManager.addEventListener(e,t,bu(r))}}class _a extends eo{constructor(e,t,r,s){super(e),this.component=r;const c=il(s+"-"+r.id,r.styles,[]);t.addStyles(c),this.contentAttr=function C2(n){return"_ngcontent-%COMP%".replace(vf,n)}(s+"-"+r.id),this.hostAttr=function Zl(n){return"_nghost-%COMP%".replace(vf,n)}(s+"-"+r.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const r=super.createElement(e,t);return super.setAttribute(r,this.contentAttr,""),r}}class ol extends eo{constructor(e,t,r,s){super(e),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=il(s.id,s.styles,[]);for(let h=0;h<c.length;h++){const m=document.createElement("style");m.textContent=c[h],this.shadowRoot.appendChild(m)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,r){return super.insertBefore(this.nodeOrShadowRoot(e),t,r)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let xu=(()=>{class n extends yu{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,s){return t.addEventListener(r,s,!1),()=>this.removeEventListener(t,r,s)}removeEventListener(t,r,s){return t.removeEventListener(r,s)}}return n.\u0275fac=function(t){return new(t||n)(Pe(te))},n.\u0275prov=Qe({token:n,factory:n.\u0275fac}),n})();const jw=["alt","control","meta","shift"],zw={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},to={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Ao={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let cr=(()=>{class n extends yu{constructor(t){super(t)}supports(t){return null!=n.parseEventName(t)}addEventListener(t,r,s){const c=n.parseEventName(r),h=n.eventCallback(c.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>B().onAndCancel(t,c.domEventName,h))}static parseEventName(t){const r=t.toLowerCase().split("."),s=r.shift();if(0===r.length||"keydown"!==s&&"keyup"!==s)return null;const c=n._normalizeKey(r.pop());let h="";if(jw.forEach(w=>{const k=r.indexOf(w);k>-1&&(r.splice(k,1),h+=w+".")}),h+=c,0!=r.length||0===c.length)return null;const m={};return m.domEventName=s,m.fullKey=h,m}static getEventFullKey(t){let r="",s=function ks(n){let e=n.key;if(null==e){if(e=n.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===n.location&&to.hasOwnProperty(e)&&(e=to[e]))}return zw[e]||e}(t);return s=s.toLowerCase()," "===s?s="space":"."===s&&(s="dot"),jw.forEach(c=>{c!=s&&Ao[c](t)&&(r+=c+".")}),r+=s,r}static eventCallback(t,r,s){return c=>{n.getEventFullKey(c)===t&&s.runGuarded(()=>r(c))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return n.\u0275fac=function(t){return new(t||n)(Pe(te))},n.\u0275prov=Qe({token:n,factory:n.\u0275fac}),n})();const R2=cy(P,"browser",[{provide:ws,useValue:pw},{provide:Z1,useValue:function D2(){mu.makeCurrent(),ba.init()},multi:!0},{provide:te,useFactory:function qw(){return function m_(n){Xv=n}(document),document},deps:[]}]),$y=[{provide:mb,useValue:"root"},{provide:bd,useFactory:function k2(){return new bd},deps:[]},{provide:li,useClass:xu,multi:!0,deps:[te,Kn,ws]},{provide:li,useClass:cr,multi:!0,deps:[te]},{provide:wu,useClass:wu,deps:[wa,vu,up]},{provide:nu,useExisting:wu},{provide:Ji,useExisting:vu},{provide:vu,useClass:vu,deps:[te]},{provide:sy,useClass:sy,deps:[Kn]},{provide:wa,useClass:wa,deps:[li,Kn]},{provide:class Ow{},useClass:wi,deps:[]}];let Vw=(()=>{class n{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:n,providers:[{provide:up,useValue:t.appId},{provide:rl,useExisting:up},Yn]}}}return n.\u0275fac=function(t){return new(t||n)(Pe(n,12))},n.\u0275mod=Ri({type:n}),n.\u0275inj=Vi({providers:$y,imports:[Tw,q]}),n})();"undefined"!=typeof window&&window;class Yr extends Cn{constructor(e,t){super()}schedule(e,t=0){return this}}class Du extends Yr{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const r=this.id,s=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(s,r,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(s,this.id,t),this}requestAsyncId(e,t,r=0){return setInterval(e.flush.bind(e,this),r)}recycleAsyncId(e,t,r=0){if(null!==r&&this.delay===r&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let s,r=!1;try{this.work(e)}catch(c){r=!0,s=!!c&&c||new Error(c)}if(r)return this.unsubscribe(),s}_unsubscribe(){const e=this.id,t=this.scheduler,r=t.actions,s=r.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&r.splice(s,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}let Sf=(()=>{class n{constructor(t,r=n.now){this.SchedulerAction=t,this.now=r}schedule(t,r=0,s){return new this.SchedulerAction(this,t).schedule(s,r)}}return n.now=()=>Date.now(),n})();class Is extends Sf{constructor(e,t=Sf.now){super(e,()=>Is.delegate&&Is.delegate!==this?Is.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,r){return Is.delegate&&Is.delegate!==this?Is.delegate.schedule(e,t,r):super.schedule(e,t,r)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let r;this.active=!0;do{if(r=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,r){for(;e=t.shift();)e.unsubscribe();throw r}}}new class xi extends Is{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let r,s=-1,c=t.length;e=e||t.shift();do{if(r=e.execute(e.state,e.delay))break}while(++s<c&&(e=t.shift()));if(this.active=!1,r){for(;++s<c&&(e=t.shift());)e.unsubscribe();throw r}}}(class Np extends Du{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,r=0){return null!==r&&r>0?super.requestAsyncId(e,t,r):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,t,r=0){if(null!==r&&r>0||null===r&&this.delay>0)return super.recycleAsyncId(e,t,r);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}});let Yw=1;const Ea=Promise.resolve(),Ni={};function Ef(n){return n in Ni&&(delete Ni[n],!0)}const Yy={setImmediate(n){const e=Yw++;return Ni[e]=!0,Ea.then(()=>Ef(e)&&n()),e},clearImmediate(n){Ef(n)}};new class V2 extends Is{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let r,s=-1,c=t.length;e=e||t.shift();do{if(r=e.execute(e.state,e.delay))break}while(++s<c&&(e=t.shift()));if(this.active=!1,r){for(;++s<c&&(e=t.shift());)e.unsubscribe();throw r}}}(class q2 extends Du{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,r=0){return null!==r&&r>0?super.requestAsyncId(e,t,r):(e.actions.push(this),e.scheduled||(e.scheduled=Yy.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,t,r=0){if(null!==r&&r>0||null===r&&this.delay>0)return super.recycleAsyncId(e,t,r);0===e.actions.length&&(Yy.clearImmediate(t),e.scheduled=void 0)}});function Cf(n,e){return function(r){return r.lift(new U2(n,e))}}new Is(Du);class U2{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new W2(e,this.predicate,this.thisArg))}}class W2 extends de{constructor(e,t,r){super(e),this.predicate=t,this.thisArg=r,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(r){return void this.destination.error(r)}t&&this.destination.next(e)}}let Jy;try{Jy="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){Jy=!1}let Df=(()=>{class n{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Wl(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Jy)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(t){return new(t||n)(Pe(ws))},n.\u0275prov=Qe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function tv(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}let ox=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ri({type:n}),n.\u0275inj=Vi({}),n})();Object.create(Error.prototype);const NT=new z(n=>n.complete());let iv=(()=>{class n{constructor(t,r){this._platform=r,this._document=t}ngOnDestroy(){var t;null===(t=this._containerElement)||void 0===t||t.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||tv()){const s=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let c=0;c<s.length;c++)s[c].remove()}const r=this._document.createElement("div");r.classList.add(t),tv()?r.setAttribute("platform","test"):this._platform.isBrowser||r.setAttribute("platform","server"),this._document.body.appendChild(r),this._containerElement=r}}return n.\u0275fac=function(t){return new(t||n)(Pe(te),Pe(Df))},n.\u0275prov=Qe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const oc=new class ic extends Is{}(class bx extends Du{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,r=0){return null!==r&&r>0||null===r&&this.delay>0?super.requestAsyncId(e,t,r):e.flush(this)}});function Up({error:n,subscriber:e}){e.error(n)}class ji{constructor(e,t,r){this.kind=e,this.value=t,this.error=r,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,r){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return r&&r()}}accept(e,t,r){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,r)}toObservable(){switch(this.kind){case"N":return function Ky(...n){let e=n[n.length-1];return og(e)?(n.pop(),Tv(n,e)):Pv(n)}(this.value);case"E":return function av(n,e){return new z(e?t=>e.schedule(Up,0,{error:n,subscriber:t}):t=>t.error(n))}(this.error);case"C":return function it(n){return n?function Af(n){return new z(e=>n.schedule(()=>e.complete()))}(n):NT}()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new ji("N",e):ji.undefinedValueNotification}static createError(e){return new ji("E",void 0,e)}static createComplete(){return ji.completeNotification}}ji.completeNotification=new ji("C"),ji.undefinedValueNotification=new ji("N",void 0);class Ms extends de{constructor(e,t,r=0){super(e),this.scheduler=t,this.delay=r}static dispatch(e){const{notification:t,destination:r}=e;t.observe(r),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(Ms.dispatch,this.delay,new Ts(e,this.destination)))}_next(e){this.scheduleMessage(ji.createNext(e))}_error(e){this.scheduleMessage(ji.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(ji.createComplete()),this.unsubscribe()}}class Ts{constructor(e,t){this.notification=e,this.destination=t}}class oo extends Zr{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,r){super(),this.scheduler=r,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift(),super.next(e)}nextTimeWindow(e){this._events.push(new pk(this._getNow(),e)),this._trimBufferThenGetEvents(),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,r=t?this._events:this._trimBufferThenGetEvents(),s=this.scheduler,c=r.length;let h;if(this.closed)throw new ml;if(this.isStopped||this.hasError?h=Cn.EMPTY:(this.observers.push(e),h=new ig(this,e)),s&&e.add(e=new Ms(e,s)),t)for(let m=0;m<c&&!e.closed;m++)e.next(r[m]);else for(let m=0;m<c&&!e.closed;m++)e.next(r[m].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),h}_getNow(){return(this.scheduler||oc).now()}_trimBufferThenGetEvents(){const e=this._getNow(),t=this._bufferSize,r=this._windowTime,s=this._events,c=s.length;let h=0;for(;h<c&&!(e-s[h].time<r);)h++;return c>t&&(h=Math.max(h,c-t)),h>0&&s.splice(0,h),s}}class pk{constructor(e,t){this.time=e,this.value=t}}function lv(n,e){return"function"==typeof e?t=>t.pipe(lv((r,s)=>Ov(n(r,s)).pipe(ui((c,h)=>e(r,c,s,h))))):t=>t.lift(new _x(n))}class _x{constructor(e){this.project=e}call(e,t){return t.subscribe(new sc(e,this.project))}}class sc extends fc{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const r=this.index++;try{t=this.project(e,r)}catch(s){return void this.destination.error(s)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const r=new Oo(this),s=this.destination;s.add(r),this.innerSubscription=Xr(e,r),this.innerSubscription!==r&&s.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;(!e||e.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const Wp={schedule(n,e){const t=setTimeout(n,e);return()=>clearTimeout(t)},scheduleBeforeRender(n){if("undefined"==typeof window)return Wp.schedule(n,0);if(void 0===window.requestAnimationFrame)return Wp.schedule(n,16);const e=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(e)}};let cv;function mk(n,e,t){let r=t;return function Iu(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&e.some((s,c)=>!("*"===s||!function gk(n,e){if(!cv){const t=Element.prototype;cv=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&cv.call(n,e)}(n,s)||(r=c,0))),r}class Mf{constructor(e,t){this.componentFactory=t.get(tu).resolveComponentFactory(e)}create(e){return new Tf(this.componentFactory,e)}}class Tf{constructor(e,t){this.componentFactory=e,this.injector=t,this.eventEmitters=new oo(1),this.events=this.eventEmitters.pipe(lv(r=>ju(...r))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:r})=>r)),this.ngZone=this.injector.get(Kn),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=Wp.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(e){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,t){this.runInZone(()=>{null!==this.componentRef?function Cx(n,e){return n===e||n!=n&&e!=e}(t,this.getInputValue(e))&&(void 0!==t||!this.unchangedInputs.has(e))||(this.recordInputChange(e,t),this.unchangedInputs.delete(e),this.hasInputChanges=!0,this.componentRef.instance[e]=t,this.scheduleDetectChanges()):this.initialInputValues.set(e,t)})}initializeComponent(e){const t=Yi.create({providers:[],parent:this.injector}),r=function HT(n,e){const t=n.childNodes,r=e.map(()=>[]);let s=-1;e.some((c,h)=>"*"===c&&(s=h,!0));for(let c=0,h=t.length;c<h;++c){const m=t[c],w=mk(m,e,s);-1!==w&&r[w].push(m)}return r}(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,r,e),this.viewChangeDetectorRef=this.componentRef.injector.get(lf),this.implementsOnChanges=function Ex(n){return"function"==typeof n}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(fp).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:e})=>{this.initialInputValues.has(e)&&this.setInputValue(e,this.initialInputValues.get(e))}),this.initialInputValues.clear()}initializeOutputs(e){const t=this.componentFactory.outputs.map(({propName:r,templateName:s})=>e.instance[r].pipe(ui(h=>({name:s,value:h}))));this.eventEmitters.next(t)}callNgOnChanges(e){if(!this.implementsOnChanges||null===this.inputChanges)return;const t=this.inputChanges;this.inputChanges=null,e.instance.ngOnChanges(t)}markViewForCheck(e){this.hasInputChanges&&(this.hasInputChanges=!1,e.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Wp.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(e,t){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const r=this.inputChanges[e];if(r)return void(r.currentValue=t);const s=this.unchangedInputs.has(e),c=s?void 0:this.getInputValue(e);this.inputChanges[e]=new d_(c,t,s)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}}class vk extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}class Dx{}const ll="*";function dv(n,e=null){return{type:2,steps:n,options:e}}function cl(n){return{type:6,styles:n,offset:null}}function Rx(n){Promise.resolve(null).then(n)}class ac{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Rx(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}class Kp{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,r=0,s=0;const c=this.players.length;0==c?Rx(()=>this._onFinish()):this.players.forEach(h=>{h.onDone(()=>{++t==c&&this._onFinish()}),h.onDestroy(()=>{++r==c&&this._onDestroy()}),h.onStart(()=>{++s==c&&this._onStart()})}),this.totalTime=this.players.reduce((h,m)=>Math.max(h,m.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(r=>{const s=r.totalTime?Math.min(1,t/r.totalTime):1;r.setPosition(s)})}getPosition(){const e=this.players.reduce((t,r)=>null===t||r.totalTime>t.totalTime?r:t,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}const sn=!1;function hv(n){return new ot(3e3,sn)}function An(){return"undefined"!=typeof window&&void 0!==window.document}function lc(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function ul(n){switch(n.length){case 0:return new ac;case 1:return n[0];default:return new Kp(n)}}function Sk(n,e,t,r,s={},c={}){const h=[],m=[];let w=-1,k=null;if(r.forEach(N=>{const V=N.offset,W=V==w,ee=W&&k||{};Object.keys(N).forEach(ue=>{let me=ue,Ce=N[ue];if("offset"!==ue)switch(me=e.normalizePropertyName(me,h),Ce){case"!":Ce=s[ue];break;case ll:Ce=c[ue];break;default:Ce=e.normalizeStyleValue(ue,me,Ce,h)}ee[me]=Ce}),W||m.push(ee),k=ee,w=V}),h.length)throw function je(n){return new ot(3502,sn)}();return m}function vv(n,e,t,r){switch(e){case"start":n.onStart(()=>r(t&&Mx(t,"start",n)));break;case"done":n.onDone(()=>r(t&&Mx(t,"done",n)));break;case"destroy":n.onDestroy(()=>r(t&&Mx(t,"destroy",n)))}}function Mx(n,e,t){const r=t.totalTime,c=cc(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,null==r?n.totalTime:r,!!t.disabled),h=n._data;return null!=h&&(c._data=h),c}function cc(n,e,t,r,s="",c=0,h){return{element:n,triggerName:e,fromState:t,toState:r,phaseName:s,totalTime:c,disabled:!!h}}function so(n,e,t){let r;return n instanceof Map?(r=n.get(e),r||n.set(e,r=t)):(r=n[e],r||(r=n[e]=t)),r}function wP(n){const e=n.indexOf(":");return[n.substring(1,e),n.substr(e+1)]}let YT=(n,e)=>!1,xP=(n,e,t)=>[],_P=null;function ZT(n){const e=n.parentNode||n.host;return e===_P?null:e}(lc()||"undefined"!=typeof Element)&&(An()?(_P=(()=>document.documentElement)(),YT=(n,e)=>{for(;e;){if(e===n)return!0;e=ZT(e)}return!1}):YT=(n,e)=>n.contains(e),xP=(n,e,t)=>{if(t)return Array.from(n.querySelectorAll(e));const r=n.querySelector(e);return r?[r]:[]});let Zp=null,SP=!1;function EP(n){Zp||(Zp=function K3(){return"undefined"!=typeof document?document.body:null}()||{},SP=!!Zp.style&&"WebkitAppearance"in Zp.style);let e=!0;return Zp.style&&!function W3(n){return"ebkit"==n.substring(1,6)}(n)&&(e=n in Zp.style,!e&&SP&&(e="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in Zp.style)),e}const CP=YT,DP=xP;let kP=(()=>{class n{validateStyleProperty(t){return EP(t)}matchesElement(t,r){return!1}containsElement(t,r){return CP(t,r)}getParentElement(t){return ZT(t)}query(t,r,s){return DP(t,r,s)}computeStyle(t,r,s){return s||""}animate(t,r,s,c,h,m=[],w){return new ac(s,c)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=Qe({token:n,factory:n.\u0275fac}),n})(),XT=(()=>{class n{}return n.NOOP=new kP,n})();const JT="ng-enter",Ek="ng-leave",Ck="ng-trigger",Dk=".ng-trigger",RP="ng-animating",eO=".ng-animating";function Xp(n){if("number"==typeof n)return n;const e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:tO(parseFloat(e[1]),e[2])}function tO(n,e){return"s"===e?1e3*n:n}function kk(n,e,t){return n.hasOwnProperty("duration")?n:function Z3(n,e,t){let s,c=0,h="";if("string"==typeof n){const m=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===m)return e.push(hv()),{duration:0,delay:0,easing:""};s=tO(parseFloat(m[1]),m[2]);const w=m[3];null!=w&&(c=tO(parseFloat(w),m[4]));const k=m[5];k&&(h=k)}else s=n;if(!t){let m=!1,w=e.length;s<0&&(e.push(function pv(){return new ot(3100,sn)}()),m=!0),c<0&&(e.push(function Ix(){return new ot(3101,sn)}()),m=!0),m&&e.splice(w,0,hv())}return{duration:s,delay:c,easing:h}}(n,e,t)}function bv(n,e={}){return Object.keys(n).forEach(t=>{e[t]=n[t]}),e}function Lf(n,e,t={}){if(e)for(let r in n)t[r]=n[r];else bv(n,t);return t}function MP(n,e,t){return t?e+":"+t+";":""}function TP(n){let e="";for(let t=0;t<n.style.length;t++){const r=n.style.item(t);e+=MP(0,r,n.style.getPropertyValue(r))}for(const t in n.style)n.style.hasOwnProperty(t)&&!t.startsWith("_")&&(e+=MP(0,eF(t),n.style[t]));n.setAttribute("style",e)}function uc(n,e,t){n.style&&(Object.keys(e).forEach(r=>{const s=rO(r);t&&!t.hasOwnProperty(r)&&(t[r]=n.style[s]),n.style[s]=e[r]}),lc()&&TP(n))}function Jp(n,e){n.style&&(Object.keys(e).forEach(t=>{const r=rO(t);n.style[r]=""}),lc()&&TP(n))}function Tx(n){return Array.isArray(n)?1==n.length?n[0]:dv(n):n}const nO=new RegExp("{{\\s*(.+?)\\s*}}","g");function OP(n){let e=[];if("string"==typeof n){let t;for(;t=nO.exec(n);)e.push(t[1]);nO.lastIndex=0}return e}function Ak(n,e,t){const r=n.toString(),s=r.replace(nO,(c,h)=>{let m=e[h];return e.hasOwnProperty(h)||(t.push(function _k(n){return new ot(3003,sn)}()),m=""),m.toString()});return s==r?n:s}function Rk(n){const e=[];let t=n.next();for(;!t.done;)e.push(t.value),t=n.next();return e}const J3=/-+([a-z0-9])/g;function rO(n){return n.replace(J3,(...e)=>e[1].toUpperCase())}function eF(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Ls(n,e,t){switch(e.type){case 7:return n.visitTrigger(e,t);case 0:return n.visitState(e,t);case 1:return n.visitTransition(e,t);case 2:return n.visitSequence(e,t);case 3:return n.visitGroup(e,t);case 4:return n.visitAnimate(e,t);case 5:return n.visitKeyframes(e,t);case 6:return n.visitStyle(e,t);case 8:return n.visitReference(e,t);case 9:return n.visitAnimateChild(e,t);case 10:return n.visitAnimateRef(e,t);case 11:return n.visitQuery(e,t);case 12:return n.visitStagger(e,t);default:throw function mv(n){return new ot(3004,sn)}()}}function LP(n,e){return window.getComputedStyle(n)[e]}function sF(n,e){const t=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(r=>function aF(n,e,t){if(":"==n[0]){const w=function lF(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,r)=>parseFloat(r)>parseFloat(t);case":decrement":return(t,r)=>parseFloat(r)<parseFloat(t);default:return e.push(function ve(n){return new ot(3016,sn)}()),"* => *"}}(n,t);if("function"==typeof w)return void e.push(w);n=w}const r=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return t.push(function ge(n){return new ot(3015,sn)}()),e;const s=r[1],c=r[2],h=r[3];e.push(PP(s,h));"<"==c[0]&&!("*"==s&&"*"==h)&&e.push(PP(h,s))}(r,t,e)):t.push(n),t}const Ok=new Set(["true","1"]),Lk=new Set(["false","0"]);function PP(n,e){const t=Ok.has(n)||Lk.has(n),r=Ok.has(e)||Lk.has(e);return(s,c)=>{let h="*"==n||n==s,m="*"==e||e==c;return!h&&t&&"boolean"==typeof s&&(h=s?Ok.has(n):Lk.has(n)),!m&&r&&"boolean"==typeof c&&(m=c?Ok.has(e):Lk.has(e)),h&&m}}const cF=new RegExp("s*:selfs*,?","g");function iO(n,e,t,r){return new uF(n).build(e,t,r)}class uF{constructor(e){this._driver=e}build(e,t,r){const s=new hF(t);this._resetContextStyleTimingState(s);const c=Ls(this,Tx(e),s);return s.unsupportedCSSPropertiesFound.size&&s.unsupportedCSSPropertiesFound.keys(),c}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,t){let r=t.queryCount=0,s=t.depCount=0;const c=[],h=[];return"@"==e.name.charAt(0)&&t.errors.push(function Yp(){return new ot(3006,sn)}()),e.definitions.forEach(m=>{if(this._resetContextStyleTimingState(t),0==m.type){const w=m,k=w.name;k.toString().split(/\s*,\s*/).forEach(N=>{w.name=N,c.push(this.visitState(w,t))}),w.name=k}else if(1==m.type){const w=this.visitTransition(m,t);r+=w.queryCount,s+=w.depCount,h.push(w)}else t.errors.push(function QT(){return new ot(3007,sn)}())}),{type:7,name:e.name,states:c,transitions:h,queryCount:r,depCount:s,options:null}}visitState(e,t){const r=this.visitStyle(e.styles,t),s=e.options&&e.options.params||null;if(r.containsDynamicStyles){const c=new Set,h=s||{};r.styles.forEach(m=>{if(Pk(m)){const w=m;Object.keys(w).forEach(k=>{OP(w[k]).forEach(N=>{h.hasOwnProperty(N)||c.add(N)})})}}),c.size&&(Rk(c.values()),t.errors.push(function yv(n,e){return new ot(3008,sn)}()))}return{type:0,name:e.name,style:r,options:s?{params:s}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const r=Ls(this,Tx(e.animation),t);return{type:1,matchers:sF(e.expr,t.errors),animation:r,queryCount:t.queryCount,depCount:t.depCount,options:eg(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(r=>Ls(this,r,t)),options:eg(e.options)}}visitGroup(e,t){const r=t.currentTime;let s=0;const c=e.steps.map(h=>{t.currentTime=r;const m=Ls(this,h,t);return s=Math.max(s,t.currentTime),m});return t.currentTime=s,{type:3,steps:c,options:eg(e.options)}}visitAnimate(e,t){const r=function gF(n,e){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return oO(kk(n,e).duration,0,"");const t=n;if(t.split(/\s+/).some(c=>"{"==c.charAt(0)&&"{"==c.charAt(1))){const c=oO(0,0,"");return c.dynamic=!0,c.strValue=t,c}const s=kk(t,e);return oO(s.duration,s.delay,s.easing)}(e.timings,t.errors);t.currentAnimateTimings=r;let s,c=e.styles?e.styles:cl({});if(5==c.type)s=this.visitKeyframes(c,t);else{let h=e.styles,m=!1;if(!h){m=!0;const k={};r.easing&&(k.easing=r.easing),h=cl(k)}t.currentTime+=r.duration+r.delay;const w=this.visitStyle(h,t);w.isEmptyStep=m,s=w}return t.currentAnimateTimings=null,{type:4,timings:r,style:s,options:null}}visitStyle(e,t){const r=this._makeStyleAst(e,t);return this._validateStyleAst(r,t),r}_makeStyleAst(e,t){const r=[];Array.isArray(e.styles)?e.styles.forEach(h=>{"string"==typeof h?h==ll?r.push(h):t.errors.push(function l(n){return new ot(3002,sn)}()):r.push(h)}):r.push(e.styles);let s=!1,c=null;return r.forEach(h=>{if(Pk(h)){const m=h,w=m.easing;if(w&&(c=w,delete m.easing),!s)for(let k in m)if(m[k].toString().indexOf("{{")>=0){s=!0;break}}}),{type:6,styles:r,easing:c,offset:e.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(e,t){const r=t.currentAnimateTimings;let s=t.currentTime,c=t.currentTime;r&&c>0&&(c-=r.duration+r.delay),e.styles.forEach(h=>{"string"!=typeof h&&Object.keys(h).forEach(m=>{if(!this._driver.validateStyleProperty(m))return delete h[m],void t.unsupportedCSSPropertiesFound.add(m);const w=t.collectedStyles[t.currentQuerySelector],k=w[m];let N=!0;k&&(c!=s&&c>=k.startTime&&s<=k.endTime&&(t.errors.push(function v(n,e,t,r,s){return new ot(3010,sn)}()),N=!1),c=k.startTime),N&&(w[m]={startTime:c,endTime:s}),t.options&&function X3(n,e,t){const r=e.params||{},s=OP(n);s.length&&s.forEach(c=>{r.hasOwnProperty(c)||t.push(function gv(n){return new ot(3001,sn)}())})}(h[m],t.options,t.errors)})})}visitKeyframes(e,t){const r={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function S(){return new ot(3011,sn)}()),r;let c=0;const h=[];let m=!1,w=!1,k=0;const N=e.steps.map(Oe=>{const xe=this._makeStyleAst(Oe,t);let Ue=null!=xe.offset?xe.offset:function pF(n){if("string"==typeof n)return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(Pk(t)&&t.hasOwnProperty("offset")){const r=t;e=parseFloat(r.offset),delete r.offset}});else if(Pk(n)&&n.hasOwnProperty("offset")){const t=n;e=parseFloat(t.offset),delete t.offset}return e}(xe.styles),vt=0;return null!=Ue&&(c++,vt=xe.offset=Ue),w=w||vt<0||vt>1,m=m||vt<k,k=vt,h.push(vt),xe});w&&t.errors.push(function R(){return new ot(3012,sn)}()),m&&t.errors.push(function j(){return new ot(3200,sn)}());const V=e.steps.length;let W=0;c>0&&c<V?t.errors.push(function H(){return new ot(3202,sn)}()):0==c&&(W=1/(V-1));const ee=V-1,ue=t.currentTime,me=t.currentAnimateTimings,Ce=me.duration;return N.forEach((Oe,xe)=>{const Ue=W>0?xe==ee?1:W*xe:h[xe],vt=Ue*Ce;t.currentTime=ue+me.delay+vt,me.duration=vt,this._validateStyleAst(Oe,t),Oe.offset=Ue,r.styles.push(Oe)}),r}visitReference(e,t){return{type:8,animation:Ls(this,Tx(e.animation),t),options:eg(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:eg(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:eg(e.options)}}visitQuery(e,t){const r=t.currentQuerySelector,s=e.options||{};t.queryCount++,t.currentQuery=e;const[c,h]=function dF(n){const e=!!n.split(/\s*,\s*/).find(t=>":self"==t);return e&&(n=n.replace(cF,"")),n=n.replace(/@\*/g,Dk).replace(/@\w+/g,t=>Dk+"-"+t.substr(1)).replace(/:animating/g,eO),[n,e]}(e.selector);t.currentQuerySelector=r.length?r+" "+c:c,so(t.collectedStyles,t.currentQuerySelector,{});const m=Ls(this,Tx(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=r,{type:11,selector:c,limit:s.limit||0,optional:!!s.optional,includeSelf:h,animation:m,originalSelector:e.selector,options:eg(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(function J(){return new ot(3013,sn)}());const r="full"===e.timings?{duration:0,delay:0,easing:"full"}:kk(e.timings,t.errors,!0);return{type:12,animation:Ls(this,Tx(e.animation),t),timings:r,options:null}}}class hF{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Pk(n){return!Array.isArray(n)&&"object"==typeof n}function eg(n){return n?(n=bv(n)).params&&(n.params=function fF(n){return n?bv(n):null}(n.params)):n={},n}function oO(n,e,t){return{duration:n,delay:e,easing:t}}function sO(n,e,t,r,s,c,h=null,m=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:r,duration:s,delay:c,totalTime:s+c,easing:h,subTimeline:m}}class Fk{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let r=this._map.get(e);r||this._map.set(e,r=[]),r.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const vF=new RegExp(":enter","g"),wF=new RegExp(":leave","g");function aO(n,e,t,r,s,c={},h={},m,w,k=[]){return(new xF).buildKeyframes(n,e,t,r,s,c,h,m,w,k)}class xF{buildKeyframes(e,t,r,s,c,h,m,w,k,N=[]){k=k||new Fk;const V=new lO(e,t,k,s,c,N,[]);V.options=w,V.currentTimeline.setStyles([h],null,V.errors,w),Ls(this,r,V);const W=V.timelines.filter(ee=>ee.containsAnimation());if(Object.keys(m).length){let ee;for(let ue=W.length-1;ue>=0;ue--){const me=W[ue];if(me.element===t){ee=me;break}}ee&&!ee.allowOnlyTimelineStyles()&&ee.setStyles([m],null,V.errors,w)}return W.length?W.map(ee=>ee.buildKeyframes()):[sO(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const r=t.subInstructions.get(t.element);if(r){const s=t.createSubContext(e.options),c=t.currentTimeline.currentTime,h=this._visitSubInstructions(r,s,s.options);c!=h&&t.transformIntoNewTimeline(h)}t.previousNode=e}visitAnimateRef(e,t){const r=t.createSubContext(e.options);r.transformIntoNewTimeline(),this.visitReference(e.animation,r),t.transformIntoNewTimeline(r.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,r){let c=t.currentTimeline.currentTime;const h=null!=r.duration?Xp(r.duration):null,m=null!=r.delay?Xp(r.delay):null;return 0!==h&&e.forEach(w=>{const k=t.appendInstructionToTimeline(w,h,m);c=Math.max(c,k.duration+k.delay)}),c}visitReference(e,t){t.updateOptions(e.options,!0),Ls(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const r=t.subContextCount;let s=t;const c=e.options;if(c&&(c.params||c.delay)&&(s=t.createSubContext(c),s.transformIntoNewTimeline(),null!=c.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=Nk);const h=Xp(c.delay);s.delayNextStep(h)}e.steps.length&&(e.steps.forEach(h=>Ls(this,h,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>r&&s.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const r=[];let s=t.currentTimeline.currentTime;const c=e.options&&e.options.delay?Xp(e.options.delay):0;e.steps.forEach(h=>{const m=t.createSubContext(e.options);c&&m.delayNextStep(c),Ls(this,h,m),s=Math.max(s,m.currentTimeline.currentTime),r.push(m.currentTimeline)}),r.forEach(h=>t.currentTimeline.mergeTimelineCollectedStyles(h)),t.transformIntoNewTimeline(s),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const r=e.strValue;return kk(t.params?Ak(r,t.params,t.errors):r,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const r=t.currentAnimateTimings=this._visitTiming(e.timings,t),s=t.currentTimeline;r.delay&&(t.incrementTime(r.delay),s.snapshotCurrentStyles());const c=e.style;5==c.type?this.visitKeyframes(c,t):(t.incrementTime(r.duration),this.visitStyle(c,t),s.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const r=t.currentTimeline,s=t.currentAnimateTimings;!s&&r.getCurrentStyleProperties().length&&r.forwardFrame();const c=s&&s.easing||e.easing;e.isEmptyStep?r.applyEmptyStep(c):r.setStyles(e.styles,c,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const r=t.currentAnimateTimings,s=t.currentTimeline.duration,c=r.duration,m=t.createSubContext().currentTimeline;m.easing=r.easing,e.styles.forEach(w=>{m.forwardTime((w.offset||0)*c),m.setStyles(w.styles,w.easing,t.errors,t.options),m.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(m),t.transformIntoNewTimeline(s+c),t.previousNode=e}visitQuery(e,t){const r=t.currentTimeline.currentTime,s=e.options||{},c=s.delay?Xp(s.delay):0;c&&(6===t.previousNode.type||0==r&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Nk);let h=r;const m=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!s.optional,t.errors);t.currentQueryTotal=m.length;let w=null;m.forEach((k,N)=>{t.currentQueryIndex=N;const V=t.createSubContext(e.options,k);c&&V.delayNextStep(c),k===t.element&&(w=V.currentTimeline),Ls(this,e.animation,V),V.currentTimeline.applyStylesToKeyframe(),h=Math.max(h,V.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(h),w&&(t.currentTimeline.mergeTimelineCollectedStyles(w),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const r=t.parentContext,s=t.currentTimeline,c=e.timings,h=Math.abs(c.duration),m=h*(t.currentQueryTotal-1);let w=h*t.currentQueryIndex;switch(c.duration<0?"reverse":c.easing){case"reverse":w=m-w;break;case"full":w=r.currentStaggerTime}const N=t.currentTimeline;w&&N.delayNextStep(w);const V=N.currentTime;Ls(this,e.animation,t),t.previousNode=e,r.currentStaggerTime=s.currentTime-V+(s.startTime-r.currentTimeline.startTime)}}const Nk={};class lO{constructor(e,t,r,s,c,h,m,w){this._driver=e,this.element=t,this.subInstructions=r,this._enterClassName=s,this._leaveClassName=c,this.errors=h,this.timelines=m,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Nk,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=w||new jk(this._driver,t,0),m.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const r=e;let s=this.options;null!=r.duration&&(s.duration=Xp(r.duration)),null!=r.delay&&(s.delay=Xp(r.delay));const c=r.params;if(c){let h=s.params;h||(h=this.options.params={}),Object.keys(c).forEach(m=>{(!t||!h.hasOwnProperty(m))&&(h[m]=Ak(c[m],h,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const r=e.params={};Object.keys(t).forEach(s=>{r[s]=t[s]})}}return e}createSubContext(e=null,t,r){const s=t||this.element,c=new lO(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,r||0));return c.previousNode=this.previousNode,c.currentAnimateTimings=this.currentAnimateTimings,c.options=this._copyOptions(),c.updateOptions(e),c.currentQueryIndex=this.currentQueryIndex,c.currentQueryTotal=this.currentQueryTotal,c.parentContext=this,this.subContextCount++,c}transformIntoNewTimeline(e){return this.previousNode=Nk,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,r){const s={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=r?r:0)+e.delay,easing:""},c=new _F(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,s,e.stretchStartingKeyframe);return this.timelines.push(c),s}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,r,s,c,h){let m=[];if(s&&m.push(this.element),e.length>0){e=(e=e.replace(vF,"."+this._enterClassName)).replace(wF,"."+this._leaveClassName);let k=this._driver.query(this.element,e,1!=r);0!==r&&(k=r<0?k.slice(k.length+r,k.length):k.slice(0,r)),m.push(...k)}return!c&&0==m.length&&h.push(function ie(n){return new ot(3014,sn)}()),m}}class jk{constructor(e,t,r,s){this._driver=e,this.element=t,this.startTime=r,this._elementTimelineStylesLookup=s,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new jk(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||ll,this._currentKeyframe[t]=ll}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,r,s){t&&(this._previousKeyframe.easing=t);const c=s&&s.params||{},h=function SF(n,e){const t={};let r;return n.forEach(s=>{"*"===s?(r=r||Object.keys(e),r.forEach(c=>{t[c]=ll})):Lf(s,!1,t)}),t}(e,this._globalTimelineStyles);Object.keys(h).forEach(m=>{const w=Ak(h[m],c,r);this._pendingStyles[m]=w,this._localTimelineStyles.hasOwnProperty(m)||(this._backFill[m]=this._globalTimelineStyles.hasOwnProperty(m)?this._globalTimelineStyles[m]:ll),this._updateStyle(m,w)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(r=>{this._currentKeyframe[r]=e[r]}),Object.keys(this._localTimelineStyles).forEach(r=>{this._currentKeyframe.hasOwnProperty(r)||(this._currentKeyframe[r]=this._localTimelineStyles[r])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const r=this._styleSummary[t],s=e._styleSummary[t];(!r||s.time>r.time)&&this._updateStyle(t,s.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,r=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((m,w)=>{const k=Lf(m,!0);Object.keys(k).forEach(N=>{const V=k[N];"!"==V?e.add(N):V==ll&&t.add(N)}),r||(k.offset=w/this.duration),s.push(k)});const c=e.size?Rk(e.values()):[],h=t.size?Rk(t.values()):[];if(r){const m=s[0],w=bv(m);m.offset=0,w.offset=1,s=[m,w]}return sO(this.element,s,c,h,this.duration,this.startTime,this.easing,!1)}}class _F extends jk{constructor(e,t,r,s,c,h,m=!1){super(e,t,h.delay),this.keyframes=r,this.preStyleProps=s,this.postStyleProps=c,this._stretchStartingKeyframe=m,this.timings={duration:h.duration,delay:h.delay,easing:h.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:r,easing:s}=this.timings;if(this._stretchStartingKeyframe&&t){const c=[],h=r+t,m=t/h,w=Lf(e[0],!1);w.offset=0,c.push(w);const k=Lf(e[0],!1);k.offset=jP(m),c.push(k);const N=e.length-1;for(let V=1;V<=N;V++){let W=Lf(e[V],!1);W.offset=jP((t+W.offset*r)/h),c.push(W)}r=h,t=0,s="",e=c}return sO(this.element,e,this.preStyleProps,this.postStyleProps,r,t,s,!0)}}function jP(n,e=3){const t=Math.pow(10,e-1);return Math.round(n*t)/t}class cO{}class EF extends cO{normalizePropertyName(e,t){return rO(e)}normalizeStyleValue(e,t,r,s){let c="";const h=r.toString().trim();if(CF[t]&&0!==r&&"0"!==r)if("number"==typeof r)c="px";else{const m=r.match(/^[+-]?[\d\.]+([a-z]*)$/);m&&0==m[1].length&&s.push(function KT(n,e){return new ot(3005,sn)}())}return h+c}}const CF=(()=>function DF(n){const e={};return n.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function BP(n,e,t,r,s,c,h,m,w,k,N,V,W){return{type:0,element:n,triggerName:e,isRemovalTransition:s,fromState:t,fromStyles:c,toState:r,toStyles:h,timelines:m,queriedElements:w,preStyleProps:k,postStyleProps:N,totalTime:V,errors:W}}const uO={};class zP{constructor(e,t,r){this._triggerName=e,this.ast=t,this._stateStyles=r}match(e,t,r,s){return function kF(n,e,t,r,s){return n.some(c=>c(e,t,r,s))}(this.ast.matchers,e,t,r,s)}buildStyles(e,t,r){const s=this._stateStyles["*"],c=this._stateStyles[e],h=s?s.buildStyles(t,r):{};return c?c.buildStyles(t,r):h}build(e,t,r,s,c,h,m,w,k,N){const V=[],W=this.ast.options&&this.ast.options.params||uO,ue=this.buildStyles(r,m&&m.params||uO,V),me=w&&w.params||uO,Ce=this.buildStyles(s,me,V),Oe=new Set,xe=new Map,Ue=new Map,vt="void"===s,an={params:Object.assign(Object.assign({},W),me)},Sr=N?[]:aO(e,t,this.ast.animation,c,h,ue,Ce,an,k,V);let Or=0;if(Sr.forEach(Fs=>{Or=Math.max(Fs.duration+Fs.delay,Or)}),V.length)return BP(t,this._triggerName,r,s,vt,ue,Ce,[],[],xe,Ue,Or,V);Sr.forEach(Fs=>{const Ns=Fs.element,Ev=so(xe,Ns,{});Fs.preStyleProps.forEach(fl=>Ev[fl]=!0);const Ou=so(Ue,Ns,{});Fs.postStyleProps.forEach(fl=>Ou[fl]=!0),Ns!==t&&Oe.add(Ns)});const Ps=Rk(Oe.values());return BP(t,this._triggerName,r,s,vt,ue,Ce,Sr,Ps,xe,Ue,Or)}}class AF{constructor(e,t,r){this.styles=e,this.defaultParams=t,this.normalizer=r}buildStyles(e,t){const r={},s=bv(this.defaultParams);return Object.keys(e).forEach(c=>{const h=e[c];null!=h&&(s[c]=h)}),this.styles.styles.forEach(c=>{if("string"!=typeof c){const h=c;Object.keys(h).forEach(m=>{let w=h[m];w.length>1&&(w=Ak(w,s,t));const k=this.normalizer.normalizePropertyName(m,t);w=this.normalizer.normalizeStyleValue(m,k,w,t),r[k]=w})}}),r}}class IF{constructor(e,t,r){this.name=e,this.ast=t,this._normalizer=r,this.transitionFactories=[],this.states={},t.states.forEach(s=>{this.states[s.name]=new AF(s.style,s.options&&s.options.params||{},r)}),qP(this.states,"true","1"),qP(this.states,"false","0"),t.transitions.forEach(s=>{this.transitionFactories.push(new zP(e,s,this.states))}),this.fallbackTransition=function MF(n,e,t){return new zP(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(h,m)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,r,s){return this.transitionFactories.find(h=>h.match(e,t,r,s))||null}matchStyles(e,t,r){return this.fallbackTransition.buildStyles(e,t,r)}}function qP(n,e,t){n.hasOwnProperty(e)?n.hasOwnProperty(t)||(n[t]=n[e]):n.hasOwnProperty(t)&&(n[e]=n[t])}const TF=new Fk;class OF{constructor(e,t,r){this.bodyNode=e,this._driver=t,this._normalizer=r,this._animations={},this._playersById={},this.players=[]}register(e,t){const r=[],c=iO(this._driver,t,r,[]);if(r.length)throw function Be(n){return new ot(3503,sn)}();this._animations[e]=c}_buildPlayer(e,t,r){const s=e.element,c=Sk(0,this._normalizer,0,e.keyframes,t,r);return this._driver.animate(s,c,e.duration,e.delay,e.easing,[],!0)}create(e,t,r={}){const s=[],c=this._animations[e];let h;const m=new Map;if(c?(h=aO(this._driver,t,c,JT,Ek,{},{},r,TF,s),h.forEach(N=>{const V=so(m,N.element,{});N.postStyleProps.forEach(W=>V[W]=null)})):(s.push(function Ee(){return new ot(3300,sn)}()),h=[]),s.length)throw function pe(n){return new ot(3504,sn)}();m.forEach((N,V)=>{Object.keys(N).forEach(W=>{N[W]=this._driver.computeStyle(V,W,ll)})});const k=ul(h.map(N=>{const V=m.get(N.element);return this._buildPlayer(N,{},V)}));return this._playersById[e]=k,k.onDestroy(()=>this.destroy(e)),this.players.push(k),k}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const r=this.players.indexOf(t);r>=0&&this.players.splice(r,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw function we(n){return new ot(3301,sn)}();return t}listen(e,t,r,s){const c=cc(t,"","","");return vv(this._getPlayer(e),r,c,s),()=>{}}command(e,t,r,s){if("register"==r)return void this.register(e,s[0]);if("create"==r)return void this.create(e,t,s[0]||{});const c=this._getPlayer(e);switch(r){case"play":c.play();break;case"pause":c.pause();break;case"reset":c.reset();break;case"restart":c.restart();break;case"finish":c.finish();break;case"init":c.init();break;case"setPosition":c.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(e)}}}const VP="ng-animate-queued",dO="ng-animate-disabled",jF=[],$P={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},BF={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ka="__ng_removed";class fO{constructor(e,t=""){this.namespaceId=t;const r=e&&e.hasOwnProperty("value");if(this.value=function $F(n){return null!=n?n:null}(r?e.value:e),r){const c=bv(e);delete c.value,this.options=c}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const r=this.options.params;Object.keys(t).forEach(s=>{null==r[s]&&(r[s]=t[s])})}}}const Ox="void",hO=new fO(Ox);class zF{constructor(e,t,r){this.id=e,this.hostElement=t,this._engine=r,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Aa(t,this._hostClassName)}listen(e,t,r,s){if(!this._triggers.hasOwnProperty(t))throw function Te(n,e){return new ot(3302,sn)}();if(null==r||0==r.length)throw function et(n){return new ot(3303,sn)}();if(!function HF(n){return"start"==n||"done"==n}(r))throw function Zt(n,e){return new ot(3400,sn)}();const c=so(this._elementListeners,e,[]),h={name:t,phase:r,callback:s};c.push(h);const m=so(this._engine.statesByElement,e,{});return m.hasOwnProperty(t)||(Aa(e,Ck),Aa(e,Ck+"-"+t),m[t]=hO),()=>{this._engine.afterFlush(()=>{const w=c.indexOf(h);w>=0&&c.splice(w,1),this._triggers[t]||delete m[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw function Xe(n){return new ot(3401,sn)}();return t}trigger(e,t,r,s=!0){const c=this._getTrigger(t),h=new pO(this.id,t,e);let m=this._engine.statesByElement.get(e);m||(Aa(e,Ck),Aa(e,Ck+"-"+t),this._engine.statesByElement.set(e,m={}));let w=m[t];const k=new fO(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&w&&k.absorbOptions(w.options),m[t]=k,w||(w=hO),k.value!==Ox&&w.value===k.value){if(!function WF(n,e){const t=Object.keys(n),r=Object.keys(e);if(t.length!=r.length)return!1;for(let s=0;s<t.length;s++){const c=t[s];if(!e.hasOwnProperty(c)||n[c]!==e[c])return!1}return!0}(w.params,k.params)){const me=[],Ce=c.matchStyles(w.value,w.params,me),Oe=c.matchStyles(k.value,k.params,me);me.length?this._engine.reportError(me):this._engine.afterFlush(()=>{Jp(e,Ce),uc(e,Oe)})}return}const W=so(this._engine.playersByElement,e,[]);W.forEach(me=>{me.namespaceId==this.id&&me.triggerName==t&&me.queued&&me.destroy()});let ee=c.matchTransition(w.value,k.value,e,k.params),ue=!1;if(!ee){if(!s)return;ee=c.fallbackTransition,ue=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:ee,fromState:w,toState:k,player:h,isFallbackTransition:ue}),ue||(Aa(e,VP),h.onStart(()=>{wv(e,VP)})),h.onDone(()=>{let me=this.players.indexOf(h);me>=0&&this.players.splice(me,1);const Ce=this._engine.playersByElement.get(e);if(Ce){let Oe=Ce.indexOf(h);Oe>=0&&Ce.splice(Oe,1)}}),this.players.push(h),W.push(h),h}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,r)=>{delete t[e]}),this._elementListeners.forEach((t,r)=>{this._elementListeners.set(r,t.filter(s=>s.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(r=>r.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const r=this._engine.driver.query(e,Dk,!0);r.forEach(s=>{if(s[ka])return;const c=this._engine.fetchNamespacesByElement(s);c.size?c.forEach(h=>h.triggerLeaveAnimation(s,t,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(e,t,r,s){const c=this._engine.statesByElement.get(e),h=new Map;if(c){const m=[];if(Object.keys(c).forEach(w=>{if(h.set(w,c[w].value),this._triggers[w]){const k=this.trigger(e,w,Ox,s);k&&m.push(k)}}),m.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,h),r&&ul(m).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),r=this._engine.statesByElement.get(e);if(t&&r){const s=new Set;t.forEach(c=>{const h=c.name;if(s.has(h))return;s.add(h);const w=this._triggers[h].fallbackTransition,k=r[h]||hO,N=new fO(Ox),V=new pO(this.id,h,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:h,transition:w,fromState:k,toState:N,player:V,isFallbackTransition:!0})})}}removeNode(e,t){const r=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let s=!1;if(r.totalAnimations){const c=r.players.length?r.playersByQueriedElement.get(e):[];if(c&&c.length)s=!0;else{let h=e;for(;h=h.parentNode;)if(r.statesByElement.get(h)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(e),s)r.markElementAsRemoved(this.id,e,!1,t);else{const c=e[ka];(!c||c===$P)&&(r.afterFlush(()=>this.clearElementCache(e)),r.destroyInnerAnimations(e),r._onRemovalComplete(e,t))}}insertNode(e,t){Aa(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(r=>{const s=r.player;if(s.destroyed)return;const c=r.element,h=this._elementListeners.get(c);h&&h.forEach(m=>{if(m.name==r.triggerName){const w=cc(c,r.triggerName,r.fromState.value,r.toState.value);w._data=e,vv(r.player,m.phase,w,m.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):t.push(r)}),this._queue=[],t.sort((r,s)=>{const c=r.transition.ast.depCount,h=s.transition.ast.depCount;return 0==c||0==h?c-h:this._engine.driver.containsElement(r.element,s.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(r=>r.element===e)||t,t}}class qF{constructor(e,t,r){this.bodyNode=e,this.driver=t,this._normalizer=r,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(s,c)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(r=>{r.queued&&e.push(r)})}),e}createNamespace(e,t){const r=new zF(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(r,t):(this.newHostElements.set(t,r),this.collectEnterElement(t)),this._namespaceLookup[e]=r}_balanceNamespaceList(e,t){const r=this._namespaceList,s=this.namespacesByHostElement,c=r.length-1;if(c>=0){let h=!1;if(void 0!==this.driver.getParentElement){let m=this.driver.getParentElement(t);for(;m;){const w=s.get(m);if(w){const k=r.indexOf(w);r.splice(k+1,0,e),h=!0;break}m=this.driver.getParentElement(m)}}else for(let m=c;m>=0;m--)if(this.driver.containsElement(r[m].hostElement,t)){r.splice(m+1,0,e),h=!0;break}h||r.unshift(e)}else r.push(e);return s.set(t,e),e}register(e,t){let r=this._namespaceLookup[e];return r||(r=this.createNamespace(e,t)),r}registerTrigger(e,t,r){let s=this._namespaceLookup[e];s&&s.register(t,r)&&this.totalAnimations++}destroy(e,t){if(!e)return;const r=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(r.hostElement),delete this._namespaceLookup[e];const s=this._namespaceList.indexOf(r);s>=0&&this._namespaceList.splice(s,1)}),this.afterFlushAnimationsDone(()=>r.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,r=this.statesByElement.get(e);if(r){const s=Object.keys(r);for(let c=0;c<s.length;c++){const h=r[s[c]].namespaceId;if(h){const m=this._fetchNamespace(h);m&&t.add(m)}}}return t}trigger(e,t,r,s){if(Bk(t)){const c=this._fetchNamespace(e);if(c)return c.trigger(t,r,s),!0}return!1}insertNode(e,t,r,s){if(!Bk(t))return;const c=t[ka];if(c&&c.setForRemoval){c.setForRemoval=!1,c.setForMove=!0;const h=this.collectedLeaveElements.indexOf(t);h>=0&&this.collectedLeaveElements.splice(h,1)}if(e){const h=this._fetchNamespace(e);h&&h.insertNode(t,r)}s&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Aa(e,dO)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),wv(e,dO))}removeNode(e,t,r,s){if(Bk(t)){const c=e?this._fetchNamespace(e):null;if(c?c.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s),r){const h=this.namespacesByHostElement.get(t);h&&h.id!==e&&h.removeNode(t,s)}}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,r,s,c){this.collectedLeaveElements.push(t),t[ka]={namespaceId:e,setForRemoval:s,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:c}}listen(e,t,r,s,c){return Bk(t)?this._fetchNamespace(e).listen(t,r,s,c):()=>{}}_buildInstruction(e,t,r,s,c){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,r,s,e.fromState.options,e.toState.options,t,c)}destroyInnerAnimations(e){let t=this.driver.query(e,Dk,!0);t.forEach(r=>this.destroyActiveAnimationsForElement(r)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,eO,!0),t.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return ul(this.players).onDone(()=>e());e()})}processLeaveNode(e){var t;const r=e[ka];if(r&&r.setForRemoval){if(e[ka]=$P,r.namespaceId){this.destroyInnerAnimations(e);const s=this._fetchNamespace(r.namespaceId);s&&s.clearElementCache(e)}this._onRemovalComplete(e,r.setForRemoval)}(null===(t=e.classList)||void 0===t?void 0:t.contains(dO))&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,s)=>this._balanceNamespaceList(r,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;r<this.collectedEnterElements.length;r++)Aa(this.collectedEnterElements[r],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const r=[];try{t=this._flushAnimations(r,e)}finally{for(let s=0;s<r.length;s++)r[s]()}}else for(let r=0;r<this.collectedLeaveElements.length;r++)this.processLeaveNode(this.collectedLeaveElements[r]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(r=>r()),this._flushFns=[],this._whenQuietFns.length){const r=this._whenQuietFns;this._whenQuietFns=[],t.length?ul(t).onDone(()=>{r.forEach(s=>s())}):r.forEach(s=>s())}}reportError(e){throw function en(n){return new ot(3402,sn)}()}_flushAnimations(e,t){const r=new Fk,s=[],c=new Map,h=[],m=new Map,w=new Map,k=new Map,N=new Set;this.disabledNodes.forEach(ut=>{N.add(ut);const Mt=this.driver.query(ut,".ng-animate-queued",!0);for(let Vt=0;Vt<Mt.length;Vt++)N.add(Mt[Vt])});const V=this.bodyNode,W=Array.from(this.statesByElement.keys()),ee=UP(W,this.collectedEnterElements),ue=new Map;let me=0;ee.forEach((ut,Mt)=>{const Vt=JT+me++;ue.set(Mt,Vt),ut.forEach(Rn=>Aa(Rn,Vt))});const Ce=[],Oe=new Set,xe=new Set;for(let ut=0;ut<this.collectedLeaveElements.length;ut++){const Mt=this.collectedLeaveElements[ut],Vt=Mt[ka];Vt&&Vt.setForRemoval&&(Ce.push(Mt),Oe.add(Mt),Vt.hasAnimation?this.driver.query(Mt,".ng-star-inserted",!0).forEach(Rn=>Oe.add(Rn)):xe.add(Mt))}const Ue=new Map,vt=UP(W,Array.from(Oe));vt.forEach((ut,Mt)=>{const Vt=Ek+me++;Ue.set(Mt,Vt),ut.forEach(Rn=>Aa(Rn,Vt))}),e.push(()=>{ee.forEach((ut,Mt)=>{const Vt=ue.get(Mt);ut.forEach(Rn=>wv(Rn,Vt))}),vt.forEach((ut,Mt)=>{const Vt=Ue.get(Mt);ut.forEach(Rn=>wv(Rn,Vt))}),Ce.forEach(ut=>{this.processLeaveNode(ut)})});const an=[],Sr=[];for(let ut=this._namespaceList.length-1;ut>=0;ut--)this._namespaceList[ut].drainQueuedTransitions(t).forEach(Vt=>{const Rn=Vt.player,Ei=Vt.element;if(an.push(Rn),this.collectedEnterElements.length){const To=Ei[ka];if(To&&To.setForMove){if(To.previousTriggersValues&&To.previousTriggersValues.has(Vt.triggerName)){const ng=To.previousTriggersValues.get(Vt.triggerName),jf=this.statesByElement.get(Vt.element);jf&&jf[Vt.triggerName]&&(jf[Vt.triggerName].value=ng)}return void Rn.destroy()}}const dc=!V||!this.driver.containsElement(V,Ei),js=Ue.get(Ei),Nf=ue.get(Ei),Lr=this._buildInstruction(Vt,r,Nf,js,dc);if(Lr.errors&&Lr.errors.length)return void Sr.push(Lr);if(dc)return Rn.onStart(()=>Jp(Ei,Lr.fromStyles)),Rn.onDestroy(()=>uc(Ei,Lr.toStyles)),void s.push(Rn);if(Vt.isFallbackTransition)return Rn.onStart(()=>Jp(Ei,Lr.fromStyles)),Rn.onDestroy(()=>uc(Ei,Lr.toStyles)),void s.push(Rn);const V3=[];Lr.timelines.forEach(To=>{To.stretchStartingKeyframe=!0,this.disabledNodes.has(To.element)||V3.push(To)}),Lr.timelines=V3,r.append(Ei,Lr.timelines),h.push({instruction:Lr,player:Rn,element:Ei}),Lr.queriedElements.forEach(To=>so(m,To,[]).push(Rn)),Lr.preStyleProps.forEach((To,ng)=>{const jf=Object.keys(To);if(jf.length){let rg=w.get(ng);rg||w.set(ng,rg=new Set),jf.forEach(IO=>rg.add(IO))}}),Lr.postStyleProps.forEach((To,ng)=>{const jf=Object.keys(To);let rg=k.get(ng);rg||k.set(ng,rg=new Set),jf.forEach(IO=>rg.add(IO))})});if(Sr.length){const ut=[];Sr.forEach(Mt=>{ut.push(function qt(n,e){return new ot(3505,sn)}())}),an.forEach(Mt=>Mt.destroy()),this.reportError(ut)}const Or=new Map,Ps=new Map;h.forEach(ut=>{const Mt=ut.element;r.has(Mt)&&(Ps.set(Mt,Mt),this._beforeAnimationBuild(ut.player.namespaceId,ut.instruction,Or))}),s.forEach(ut=>{const Mt=ut.element;this._getPreviousPlayers(Mt,!1,ut.namespaceId,ut.triggerName,null).forEach(Rn=>{so(Or,Mt,[]).push(Rn),Rn.destroy()})});const Fs=Ce.filter(ut=>KP(ut,w,k)),Ns=new Map;GP(Ns,this.driver,xe,k,ll).forEach(ut=>{KP(ut,w,k)&&Fs.push(ut)});const Ou=new Map;ee.forEach((ut,Mt)=>{GP(Ou,this.driver,new Set(ut),w,"!")}),Fs.forEach(ut=>{const Mt=Ns.get(ut),Vt=Ou.get(ut);Ns.set(ut,Object.assign(Object.assign({},Mt),Vt))});const fl=[],Cv=[],Dv={};h.forEach(ut=>{const{element:Mt,player:Vt,instruction:Rn}=ut;if(r.has(Mt)){if(N.has(Mt))return Vt.onDestroy(()=>uc(Mt,Rn.toStyles)),Vt.disabled=!0,Vt.overrideTotalTime(Rn.totalTime),void s.push(Vt);let Ei=Dv;if(Ps.size>1){let js=Mt;const Nf=[];for(;js=js.parentNode;){const Lr=Ps.get(js);if(Lr){Ei=Lr;break}Nf.push(js)}Nf.forEach(Lr=>Ps.set(Lr,Ei))}const dc=this._buildAnimation(Vt.namespaceId,Rn,Or,c,Ou,Ns);if(Vt.setRealPlayer(dc),Ei===Dv)fl.push(Vt);else{const js=this.playersByElement.get(Ei);js&&js.length&&(Vt.parentPlayer=ul(js)),s.push(Vt)}}else Jp(Mt,Rn.fromStyles),Vt.onDestroy(()=>uc(Mt,Rn.toStyles)),Cv.push(Vt),N.has(Mt)&&s.push(Vt)}),Cv.forEach(ut=>{const Mt=c.get(ut.element);if(Mt&&Mt.length){const Vt=ul(Mt);ut.setRealPlayer(Vt)}}),s.forEach(ut=>{ut.parentPlayer?ut.syncPlayerEvents(ut.parentPlayer):ut.destroy()});for(let ut=0;ut<Ce.length;ut++){const Mt=Ce[ut],Vt=Mt[ka];if(wv(Mt,Ek),Vt&&Vt.hasAnimation)continue;let Rn=[];if(m.size){let dc=m.get(Mt);dc&&dc.length&&Rn.push(...dc);let js=this.driver.query(Mt,eO,!0);for(let Nf=0;Nf<js.length;Nf++){let Lr=m.get(js[Nf]);Lr&&Lr.length&&Rn.push(...Lr)}}const Ei=Rn.filter(dc=>!dc.destroyed);Ei.length?GF(this,Mt,Ei):this.processLeaveNode(Mt)}return Ce.length=0,fl.forEach(ut=>{this.players.push(ut),ut.onDone(()=>{ut.destroy();const Mt=this.players.indexOf(ut);this.players.splice(Mt,1)}),ut.play()}),fl}elementContainsData(e,t){let r=!1;const s=t[ka];return s&&s.setForRemoval&&(r=!0),this.playersByElement.has(t)&&(r=!0),this.playersByQueriedElement.has(t)&&(r=!0),this.statesByElement.has(t)&&(r=!0),this._fetchNamespace(e).elementContainsData(t)||r}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,r,s,c){let h=[];if(t){const m=this.playersByQueriedElement.get(e);m&&(h=m)}else{const m=this.playersByElement.get(e);if(m){const w=!c||c==Ox;m.forEach(k=>{k.queued||!w&&k.triggerName!=s||h.push(k)})}}return(r||s)&&(h=h.filter(m=>!(r&&r!=m.namespaceId||s&&s!=m.triggerName))),h}_beforeAnimationBuild(e,t,r){const c=t.element,h=t.isRemovalTransition?void 0:e,m=t.isRemovalTransition?void 0:t.triggerName;for(const w of t.timelines){const k=w.element,N=k!==c,V=so(r,k,[]);this._getPreviousPlayers(k,N,h,m,t.toState).forEach(ee=>{const ue=ee.getRealPlayer();ue.beforeDestroy&&ue.beforeDestroy(),ee.destroy(),V.push(ee)})}Jp(c,t.fromStyles)}_buildAnimation(e,t,r,s,c,h){const m=t.triggerName,w=t.element,k=[],N=new Set,V=new Set,W=t.timelines.map(ue=>{const me=ue.element;N.add(me);const Ce=me[ka];if(Ce&&Ce.removedBeforeQueried)return new ac(ue.duration,ue.delay);const Oe=me!==w,xe=function UF(n){const e=[];return WP(n,e),e}((r.get(me)||jF).map(Or=>Or.getRealPlayer())).filter(Or=>!!Or.element&&Or.element===me),Ue=c.get(me),vt=h.get(me),an=Sk(0,this._normalizer,0,ue.keyframes,Ue,vt),Sr=this._buildPlayer(ue,an,xe);if(ue.subTimeline&&s&&V.add(me),Oe){const Or=new pO(e,m,me);Or.setRealPlayer(Sr),k.push(Or)}return Sr});k.forEach(ue=>{so(this.playersByQueriedElement,ue.element,[]).push(ue),ue.onDone(()=>function VF(n,e,t){let r;if(n instanceof Map){if(r=n.get(e),r){if(r.length){const s=r.indexOf(t);r.splice(s,1)}0==r.length&&n.delete(e)}}else if(r=n[e],r){if(r.length){const s=r.indexOf(t);r.splice(s,1)}0==r.length&&delete n[e]}return r}(this.playersByQueriedElement,ue.element,ue))}),N.forEach(ue=>Aa(ue,RP));const ee=ul(W);return ee.onDestroy(()=>{N.forEach(ue=>wv(ue,RP)),uc(w,t.toStyles)}),V.forEach(ue=>{so(s,ue,[]).push(ee)}),ee}_buildPlayer(e,t,r){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,r):new ac(e.duration,e.delay)}}class pO{constructor(e,t,r){this.namespaceId=e,this.triggerName=t,this.element=r,this._player=new ac,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(r=>vv(e,t,void 0,r))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){so(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function Bk(n){return n&&1===n.nodeType}function HP(n,e){const t=n.style.display;return n.style.display=null!=e?e:"none",t}function GP(n,e,t,r,s){const c=[];t.forEach(w=>c.push(HP(w)));const h=[];r.forEach((w,k)=>{const N={};w.forEach(V=>{const W=N[V]=e.computeStyle(k,V,s);(!W||0==W.length)&&(k[ka]=BF,h.push(k))}),n.set(k,N)});let m=0;return t.forEach(w=>HP(w,c[m++])),h}function UP(n,e){const t=new Map;if(n.forEach(m=>t.set(m,[])),0==e.length)return t;const s=new Set(e),c=new Map;function h(m){if(!m)return 1;let w=c.get(m);if(w)return w;const k=m.parentNode;return w=t.has(k)?k:s.has(k)?1:h(k),c.set(m,w),w}return e.forEach(m=>{const w=h(m);1!==w&&t.get(w).push(m)}),t}function Aa(n,e){var t;null===(t=n.classList)||void 0===t||t.add(e)}function wv(n,e){var t;null===(t=n.classList)||void 0===t||t.remove(e)}function GF(n,e,t){ul(t).onDone(()=>n.processLeaveNode(e))}function WP(n,e){for(let t=0;t<n.length;t++){const r=n[t];r instanceof Kp?WP(r.players,e):e.push(r)}}function KP(n,e,t){const r=t.get(n);if(!r)return!1;let s=e.get(n);return s?r.forEach(c=>s.add(c)):e.set(n,r),t.delete(n),!0}class zk{constructor(e,t,r){this.bodyNode=e,this._driver=t,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(s,c)=>{},this._transitionEngine=new qF(e,t,r),this._timelineEngine=new OF(e,t,r),this._transitionEngine.onRemovalComplete=(s,c)=>this.onRemovalComplete(s,c)}registerTrigger(e,t,r,s,c){const h=e+"-"+s;let m=this._triggerCache[h];if(!m){const w=[],N=iO(this._driver,c,w,[]);if(w.length)throw function ke(n,e){return new ot(3404,sn)}();m=function RF(n,e,t){return new IF(n,e,t)}(s,N,this._normalizer),this._triggerCache[h]=m}this._transitionEngine.registerTrigger(t,s,m)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,r,s){this._transitionEngine.insertNode(e,t,r,s)}onRemove(e,t,r,s){this._transitionEngine.removeNode(e,t,s||!1,r)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,r,s){if("@"==r.charAt(0)){const[c,h]=wP(r);this._timelineEngine.command(c,t,h,s)}else this._transitionEngine.trigger(e,t,r,s)}listen(e,t,r,s,c){if("@"==r.charAt(0)){const[h,m]=wP(r);return this._timelineEngine.listen(h,t,m,c)}return this._transitionEngine.listen(e,t,r,s,c)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let QF=(()=>{class n{constructor(t,r,s){this._element=t,this._startStyles=r,this._endStyles=s,this._state=0;let c=n.initialStylesByElement.get(t);c||n.initialStylesByElement.set(t,c={}),this._initialStyles=c}start(){this._state<1&&(this._startStyles&&uc(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(uc(this._element,this._initialStyles),this._endStyles&&(uc(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Jp(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Jp(this._element,this._endStyles),this._endStyles=null),uc(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function gO(n){let e=null;const t=Object.keys(n);for(let r=0;r<t.length;r++){const s=t[r];YF(s)&&(e=e||{},e[s]=n[s])}return e}function YF(n){return"display"===n||"position"===n}class QP{constructor(e,t,r,s){this.element=e,this.keyframes=t,this.options=r,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,r){return e.animate(t,r)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};if(this.hasStarted()){const t=this._finalKeyframe;Object.keys(t).forEach(r=>{"offset"!=r&&(e[r]=this._finished?t[r]:LP(this.element,r))})}this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}class ZF{validateStyleProperty(e){return EP(e)}matchesElement(e,t){return!1}containsElement(e,t){return CP(e,t)}getParentElement(e){return ZT(e)}query(e,t,r){return DP(e,t,r)}computeStyle(e,t,r){return window.getComputedStyle(e)[t]}animate(e,t,r,s,c,h=[]){const w={duration:r,delay:s,fill:0==s?"both":"forwards"};c&&(w.easing=c);const k={},N=h.filter(W=>W instanceof QP);(function tF(n,e){return 0===n||0===e})(r,s)&&N.forEach(W=>{let ee=W.currentSnapshot;Object.keys(ee).forEach(ue=>k[ue]=ee[ue])}),t=function nF(n,e,t){const r=Object.keys(t);if(r.length&&e.length){let c=e[0],h=[];if(r.forEach(m=>{c.hasOwnProperty(m)||h.push(m),c[m]=t[m]}),h.length)for(var s=1;s<e.length;s++){let m=e[s];h.forEach(function(w){m[w]=LP(n,w)})}}return e}(e,t=t.map(W=>Lf(W,!1)),k);const V=function KF(n,e){let t=null,r=null;return Array.isArray(e)&&e.length?(t=gO(e[0]),e.length>1&&(r=gO(e[e.length-1]))):e&&(t=gO(e)),t||r?new QF(n,t,r):null}(e,t);return new QP(e,t,w,V)}}let XF=(()=>{class n extends Dx{constructor(t,r){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(r.body,{id:"0",encapsulation:Po.None,styles:[],data:{animation:[]}})}build(t){const r=this._nextAnimationId.toString();this._nextAnimationId++;const s=Array.isArray(t)?dv(t):t;return YP(this._renderer,null,r,"register",[s]),new JF(r,this._renderer)}}return n.\u0275fac=function(t){return new(t||n)(Pe(nu),Pe(te))},n.\u0275prov=Qe({token:n,factory:n.\u0275fac}),n})();class JF extends class GT{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new eN(this._id,e,t||{},this._renderer)}}class eN{constructor(e,t,r,s){this.id=e,this.element=t,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return YP(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(e){this._command("setPosition",e)}getPosition(){var e,t;return null!==(t=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}}function YP(n,e,t,r,s){return n.setProperty(e,`@@${t}:${r}`,s)}const ZP="@.disabled";let tN=(()=>{class n{constructor(t,r,s){this.delegate=t,this.engine=r,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),r.onRemovalComplete=(c,h)=>{const m=null==h?void 0:h.parentNode(c);m&&h.removeChild(m,c)}}createRenderer(t,r){const c=this.delegate.createRenderer(t,r);if(!(t&&r&&r.data&&r.data.animation)){let N=this._rendererCache.get(c);return N||(N=new XP("",c,this.engine),this._rendererCache.set(c,N)),N}const h=r.id,m=r.id+"-"+this._currentId;this._currentId++,this.engine.register(m,t);const w=N=>{Array.isArray(N)?N.forEach(w):this.engine.registerTrigger(h,m,t,N.name,N)};return r.data.animation.forEach(w),new nN(this,m,c,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,r,s){t>=0&&t<this._microtaskId?this._zone.run(()=>r(s)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(c=>{const[h,m]=c;h(m)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([r,s]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return n.\u0275fac=function(t){return new(t||n)(Pe(nu),Pe(zk),Pe(Kn))},n.\u0275prov=Qe({token:n,factory:n.\u0275fac}),n})();class XP{constructor(e,t,r){this.namespaceId=e,this.delegate=t,this.engine=r,this.destroyNode=this.delegate.destroyNode?s=>t.destroyNode(s):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,r,s=!0){this.delegate.insertBefore(e,t,r),this.engine.onInsert(this.namespaceId,t,e,s)}removeChild(e,t,r){this.engine.onRemove(this.namespaceId,t,this.delegate,r)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,r,s){this.delegate.setAttribute(e,t,r,s)}removeAttribute(e,t,r){this.delegate.removeAttribute(e,t,r)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,r,s){this.delegate.setStyle(e,t,r,s)}removeStyle(e,t,r){this.delegate.removeStyle(e,t,r)}setProperty(e,t,r){"@"==t.charAt(0)&&t==ZP?this.disableAnimations(e,!!r):this.delegate.setProperty(e,t,r)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,r){return this.delegate.listen(e,t,r)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class nN extends XP{constructor(e,t,r,s){super(t,r,s),this.factory=e,this.namespaceId=t}setProperty(e,t,r){"@"==t.charAt(0)?"."==t.charAt(1)&&t==ZP?this.disableAnimations(e,r=void 0===r||!!r):this.engine.process(this.namespaceId,e,t.substr(1),r):this.delegate.setProperty(e,t,r)}listen(e,t,r){if("@"==t.charAt(0)){const s=function rN(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(e);let c=t.substr(1),h="";return"@"!=c.charAt(0)&&([c,h]=function iN(n){const e=n.indexOf(".");return[n.substring(0,e),n.substr(e+1)]}(c)),this.engine.listen(this.namespaceId,s,c,h,m=>{this.factory.scheduleListenerCallback(m._data||-1,r,m)})}return this.delegate.listen(e,t,r)}}let oN=(()=>{class n extends zk{constructor(t,r,s){super(t.body,r,s)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(t){return new(t||n)(Pe(te),Pe(XT),Pe(cO))},n.\u0275prov=Qe({token:n,factory:n.\u0275fac}),n})();const JP=new Ot("AnimationModuleType"),e3=[{provide:Dx,useClass:XF},{provide:cO,useFactory:function sN(){return new EF}},{provide:zk,useClass:oN},{provide:nu,useFactory:function aN(n,e,t){return new tN(n,e,t)},deps:[wu,zk,Kn]}],t3=[{provide:XT,useFactory:()=>new ZF},{provide:JP,useValue:"BrowserAnimations"},...e3],lN=[{provide:XT,useClass:kP},{provide:JP,useValue:"NoopAnimations"},...e3];let cN=(()=>{class n{static withConfig(t){return{ngModule:n,providers:t.disableAnimations?lN:t3}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ri({type:n}),n.\u0275inj=Vi({providers:t3,imports:[Vw]}),n})(),uN=(()=>{class n{constructor(t){this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container",r=this._document.querySelectorAll(`.${t}`);if(null==r?void 0:r.length)this._containerElement=r[0];else{const s=this._document.createElement("div");s.classList.add(t),this._document.body.appendChild(s),this._containerElement=s}}}return n.\u0275fac=function(t){return new(t||n)(Pe(te))},n.\u0275prov=Qe({token:n,factory:n.\u0275fac}),n})();class dN extends Zr{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new ml;return this._value}next(e){super.next(this._value=e)}}function n3(n){for(let e in n){let t=n[e]||"";switch(e){case"display":n.display="flex"===t?["-webkit-flex","flex"]:"inline-flex"===t?["-webkit-inline-flex","inline-flex"]:t;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":n["-webkit-"+e]=t;break;case"flex-direction":t=t||"row",n["-webkit-flex-direction"]=t,n["flex-direction"]=t;break;case"order":n.order=n["-webkit-"+e]=isNaN(+t)?"0":t}}return n}const mO="inline",Vk=["row","column","row-reverse","column-reverse"];function r3(n){let[e,t,r]=function i3(n){var e;n=null!==(e=null==n?void 0:n.toLowerCase())&&void 0!==e?e:"";let[t,r,s]=n.split(" ");return Vk.find(c=>c===t)||(t=Vk[0]),r===mO&&(r=s!==mO?s:"",s=mO),[t,fN(r),!!s]}(n);return function hN(n,e=null,t=!1){return{display:t?"inline-flex":"flex","box-sizing":"border-box","flex-direction":n,"flex-wrap":e||null}}(e,t,r)}function fN(n){if(n)switch(n.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":n="wrap-reverse";break;case"no":case"none":case"nowrap":n="nowrap";break;default:n="wrap"}return n}function Pf(){}class gN{constructor(e,t,r){this.nextOrObserver=e,this.error=t,this.complete=r}call(e,t){return t.subscribe(new mN(e,this.nextOrObserver,this.error,this.complete))}}class mN extends de{constructor(e,t,r,s){super(e),this._tapNext=Pf,this._tapError=Pf,this._tapComplete=Pf,this._tapError=r||Pf,this._tapComplete=s||Pf,ki(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||Pf,this._tapError=t.error||Pf,this._tapComplete=t.complete||Pf)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}const vN={provide:ty,useFactory:function yN(n,e){return()=>{if(Wl(e)){const t=Array.from(n.querySelectorAll(`[class*=${o3}]`)),r=/\bflex-layout-.+?\b/g;t.forEach(s=>{s.classList.contains(`${o3}ssr`)&&s.parentNode?s.parentNode.removeChild(s):s.className.replace(r,"")})}}},deps:[te,ws],multi:!0},o3="flex-layout-";let yO=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ri({type:n}),n.\u0275inj=Vi({providers:[vN]}),n})();class tg{constructor(e=!1,t="all",r="",s="",c=0){this.matches=e,this.mediaQuery=t,this.mqAlias=r,this.suffix=s,this.priority=c,this.property=""}clone(){return new tg(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let bN=(()=>{class n{constructor(){this.stylesheet=new Map}addStyleToElement(t,r,s){const c=this.stylesheet.get(t);c?c.set(r,s):this.stylesheet.set(t,new Map([[r,s]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(t,r){const s=this.stylesheet.get(t);let c="";if(s){const h=s.get(r);("number"==typeof h||"string"==typeof h)&&(c=h+"")}return c}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=Qe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const vO={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},dl=new Ot("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>vO}),xv=new Ot("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),bO=new Ot("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function s3(n,e){return n=n?n.clone():new tg,e&&(n.mqAlias=e.alias,n.mediaQuery=e.mediaQuery,n.suffix=e.suffix,n.priority=e.priority),n}class qr{constructor(){this.shouldCache=!0}sideEffect(e,t,r){}}let yr=(()=>{class n{constructor(t,r,s,c){this._serverStylesheet=t,this._serverModuleLoaded=r,this._platformId=s,this.layoutConfig=c}applyStyleToElement(t,r,s=null){let c={};"string"==typeof r&&(c[r]=s,r=c),c=this.layoutConfig.disableVendorPrefixes?r:n3(r),this._applyMultiValueStyleToElement(c,t)}applyStyleToElements(t,r=[]){const s=this.layoutConfig.disableVendorPrefixes?t:n3(t);r.forEach(c=>{this._applyMultiValueStyleToElement(s,c)})}getFlowDirection(t){const r="flex-direction";let s=this.lookupStyle(t,r);return[s||"row",this.lookupInlineStyle(t,r)||nl(this._platformId)&&this._serverModuleLoaded?s:""]}hasWrap(t){return"wrap"===this.lookupStyle(t,"flex-wrap")}lookupAttributeValue(t,r){var s;return null!==(s=t.getAttribute(r))&&void 0!==s?s:""}lookupInlineStyle(t,r){return Wl(this._platformId)?t.style.getPropertyValue(r):function wN(n,e){var t;return null!==(t=a3(n)[e])&&void 0!==t?t:""}(t,r)}lookupStyle(t,r,s=!1){let c="";return t&&((c=this.lookupInlineStyle(t,r))||(Wl(this._platformId)?s||(c=getComputedStyle(t).getPropertyValue(r)):this._serverModuleLoaded&&(c=this._serverStylesheet.getStyleForElement(t,r)))),c?c.trim():""}_applyMultiValueStyleToElement(t,r){Object.keys(t).sort().forEach(s=>{const c=t[s],h=Array.isArray(c)?c:[c];h.sort();for(let m of h)m=m?m+"":"",Wl(this._platformId)||!this._serverModuleLoaded?Wl(this._platformId)?r.style.setProperty(s,m):xN(r,s,m):this._serverStylesheet.addStyleToElement(r,s,m)})}}return n.\u0275fac=function(t){return new(t||n)(Pe(bN),Pe(xv),Pe(ws),Pe(dl))},n.\u0275prov=Qe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function xN(n,e,t){e=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const r=a3(n);r[e]=null!=t?t:"",function _N(n,e){let t="";for(const r in e)e[r]&&(t+=`${r}:${e[r]};`);n.setAttribute("style",t)}(n,r)}function a3(n){const e={},t=n.getAttribute("style");if(t){const r=t.split(/;+/g);for(let s=0;s<r.length;s++){const c=r[s].trim();if(c.length>0){const h=c.indexOf(":");if(-1===h)throw new Error(`Invalid CSS style: ${c}`);e[c.substr(0,h).trim()]=c.substr(h+1).trim()}}}return e}function Px(n,e){return(e&&e.priority||0)-(n&&n.priority||0)}function SN(n,e){return(n.priority||0)-(e.priority||0)}let wO=(()=>{class n{constructor(t,r,s){this._zone=t,this._platformId=r,this._document=s,this.source=new dN(new tg(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const t=[];return this.registry.forEach((r,s)=>{r.matches&&t.push(s)}),t}isActive(t){var r;const s=this.registry.get(t);return null!==(r=null==s?void 0:s.matches)&&void 0!==r?r:this.registerQuery(t).some(c=>c.matches)}observe(t,r=!1){if(t&&t.length){const s=this._observable$.pipe(Cf(h=>!r||t.indexOf(h.mediaQuery)>-1));return ju(new z(h=>{const m=this.registerQuery(t);if(m.length){const w=m.pop();m.forEach(k=>{h.next(k)}),this.source.next(w)}h.complete()}),s)}return this._observable$}registerQuery(t){const r=Array.isArray(t)?t:[t],s=[];return function EN(n,e){const t=n.filter(r=>!l3[r]);if(t.length>0){const r=t.join(", ");try{const s=e.createElement("style");s.setAttribute("type","text/css"),s.styleSheet||s.appendChild(e.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${r} {.fx-query-test{ }}\n`)),e.head.appendChild(s),t.forEach(c=>l3[c]=s)}catch(s){console.error(s)}}}(r,this._document),r.forEach(c=>{const h=w=>{this._zone.run(()=>this.source.next(new tg(w.matches,c)))};let m=this.registry.get(c);m||(m=this.buildMQL(c),m.addListener(h),this.pendingRemoveListenerFns.push(()=>m.removeListener(h)),this.registry.set(c,m)),m.matches&&s.push(new tg(!0,c))}),s}ngOnDestroy(){let t;for(;t=this.pendingRemoveListenerFns.pop();)t()}buildMQL(t){return function CN(n,e){return e&&window.matchMedia("all").addListener?window.matchMedia(n):{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(t,Wl(this._platformId))}}return n.\u0275fac=function(t){return new(t||n)(Pe(Kn),Pe(ws),Pe(te))},n.\u0275prov=Qe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const l3={},DN=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],c3="(orientation: portrait) and (max-width: 599.98px)",u3="(orientation: landscape) and (max-width: 959.98px)",d3="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",f3="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",h3="(orientation: portrait) and (min-width: 840px)",p3="(orientation: landscape) and (min-width: 1280px)",Tu={HANDSET:`${c3}, ${u3}`,TABLET:`${d3} , ${f3}`,WEB:`${h3}, ${p3} `,HANDSET_PORTRAIT:`${c3}`,TABLET_PORTRAIT:`${d3} `,WEB_PORTRAIT:`${h3}`,HANDSET_LANDSCAPE:`${u3}`,TABLET_LANDSCAPE:`${f3}`,WEB_LANDSCAPE:`${p3}`},kN=[{alias:"handset",priority:2e3,mediaQuery:Tu.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:Tu.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:Tu.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:Tu.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:Tu.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:Tu.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:Tu.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:Tu.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:Tu.WEB_PORTRAIT,overlapping:!0}],AN=/(\.|-|_)/g;function RN(n){let e=n.length>0?n.charAt(0):"",t=n.length>1?n.slice(1):"";return e.toUpperCase()+t}const ON=new Ot("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const n=Gg(bO),e=Gg(dl),t=[].concat.apply([],(n||[]).map(s=>Array.isArray(s)?s:[s]));return function TN(n,e=[]){const t={};return n.forEach(r=>{t[r.alias]=r}),e.forEach(r=>{t[r.alias]?function Mu(n,...e){if(null==n)throw TypeError("Cannot convert undefined or null to object");for(let t of e)if(null!=t)for(let r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return n}(t[r.alias],r):t[r.alias]=r}),function MN(n){return n.forEach(e=>{e.suffix||(e.suffix=function IN(n){return n.replace(AN,"|").split("|").map(RN).join("")}(e.alias),e.overlapping=!!e.overlapping)}),n}(Object.keys(t).map(r=>t[r]))}((e.disableDefaultBps?[]:DN).concat(e.addOrientationBps?kN:[]),t)}});let xO=(()=>{class n{constructor(t){this.findByMap=new Map,this.items=[...t].sort(SN)}findByAlias(t){return t?this.findWithPredicate(t,r=>r.alias===t):null}findByQuery(t){return this.findWithPredicate(t,r=>r.mediaQuery===t)}get overlappings(){return this.items.filter(t=>t.overlapping)}get aliases(){return this.items.map(t=>t.alias)}get suffixes(){return this.items.map(t=>{var r;return null!==(r=null==t?void 0:t.suffix)&&void 0!==r?r:""})}findWithPredicate(t,r){var s;let c=this.findByMap.get(t);return c||(c=null!==(s=this.items.find(r))&&void 0!==s?s:null,this.findByMap.set(t,c)),null!=c?c:null}}return n.\u0275fac=function(t){return new(t||n)(Pe(ON))},n.\u0275prov=Qe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const _v="print",LN={alias:_v,mediaQuery:_v,priority:1e3};let PN=(()=>{class n{constructor(t,r,s){this.breakpoints=t,this.layoutConfig=r,this._document=s,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new FN,this.deactivations=[]}withPrintQuery(t){return[...t,_v]}isPrintEvent(t){return t.mediaQuery.startsWith(_v)}get printAlias(){var t;return[...null!==(t=this.layoutConfig.printWithBreakpoints)&&void 0!==t?t:[]]}get printBreakPoints(){return this.printAlias.map(t=>this.breakpoints.findByAlias(t)).filter(t=>null!==t)}getEventBreakpoints({mediaQuery:t}){const r=this.breakpoints.findByQuery(t);return(r?[...this.printBreakPoints,r]:this.printBreakPoints).sort(Px)}updateEvent(t){var r;let s=this.breakpoints.findByQuery(t.mediaQuery);return this.isPrintEvent(t)&&(s=this.getEventBreakpoints(t)[0],t.mediaQuery=null!==(r=null==s?void 0:s.mediaQuery)&&void 0!==r?r:""),s3(t,s)}registerBeforeAfterPrintHooks(t){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const r=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(t,this.getEventBreakpoints(new tg(!0,_v))),t.updateStyles())},s=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(t),t.updateStyles())};this._document.defaultView.addEventListener("beforeprint",r),this._document.defaultView.addEventListener("afterprint",s),this.beforePrintEventListeners.push(r),this.afterPrintEventListeners.push(s)}interceptEvents(t){return r=>{this.isPrintEvent(r)?r.matches&&!this.isPrinting?(this.startPrinting(t,this.getEventBreakpoints(r)),t.updateStyles()):!r.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(t),t.updateStyles()):this.collectActivations(t,r)}}blockPropagation(){return t=>!(this.isPrinting||this.isPrintEvent(t))}startPrinting(t,r){this.isPrinting=!0,this.formerActivations=t.activatedBreakpoints,t.activatedBreakpoints=this.queue.addPrintBreakpoints(r)}stopPrinting(t){t.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(t,r){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!r.matches){const s=this.breakpoints.findByQuery(r.mediaQuery);if(s){const c=this.formerActivations&&this.formerActivations.includes(s),h=!this.formerActivations&&t.activatedBreakpoints.includes(s);(c||h)&&(this.deactivations.push(s),this.deactivations.sort(Px))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("beforeprint",t)),this.afterPrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("afterprint",t)))}}return n.\u0275fac=function(t){return new(t||n)(Pe(xO),Pe(dl),Pe(te))},n.\u0275prov=Qe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class FN{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(e){return e.push(LN),e.sort(Px),e.forEach(t=>this.addBreakpoint(t)),this.printBreakpoints}addBreakpoint(e){e&&void 0===this.printBreakpoints.find(r=>r.mediaQuery===e.mediaQuery)&&(this.printBreakpoints=function NN(n){var e;return null!==(e=null==n?void 0:n.mediaQuery.startsWith(_v))&&void 0!==e&&e}(e)?[e,...this.printBreakpoints]:[...this.printBreakpoints,e])}clear(){this.printBreakpoints=[]}}let _r=(()=>{class n{constructor(t,r,s){this.matchMedia=t,this.breakpoints=r,this.hook=s,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new Zr,this.observeActivations()}get activatedAlias(){var t,r;return null!==(r=null===(t=this.activatedBreakpoints[0])||void 0===t?void 0:t.alias)&&void 0!==r?r:""}set activatedBreakpoints(t){this._activatedBreakpoints=[...t]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(t){this._useFallbacks=t}onMediaChange(t){const r=this.findByQuery(t.mediaQuery);if(r){t=s3(t,r);const s=this.activatedBreakpoints.indexOf(r);t.matches&&-1===s?(this._activatedBreakpoints.push(r),this._activatedBreakpoints.sort(Px),this.updateStyles()):!t.matches&&-1!==s&&(this._activatedBreakpoints.splice(s,1),this._activatedBreakpoints.sort(Px),this.updateStyles())}}init(t,r,s,c,h=[]){g3(this.updateMap,t,r,s),g3(this.clearMap,t,r,c),this.buildElementKeyMap(t,r),this.watchExtraTriggers(t,r,h)}getValue(t,r,s){const c=this.elementMap.get(t);if(c){const h=void 0!==s?c.get(s):this.getActivatedValues(c,r);if(h)return h.get(r)}}hasValue(t,r){const s=this.elementMap.get(t);if(s){const c=this.getActivatedValues(s,r);if(c)return void 0!==c.get(r)||!1}return!1}setValue(t,r,s,c){var h;let m=this.elementMap.get(t);if(m){const k=(null!==(h=m.get(c))&&void 0!==h?h:new Map).set(r,s);m.set(c,k),this.elementMap.set(t,m)}else m=(new Map).set(c,(new Map).set(r,s)),this.elementMap.set(t,m);const w=this.getValue(t,r);void 0!==w&&this.updateElement(t,r,w)}trackValue(t,r){return this.subject.asObservable().pipe(Cf(s=>s.element===t&&s.key===r))}updateStyles(){this.elementMap.forEach((t,r)=>{const s=new Set(this.elementKeyMap.get(r));let c=this.getActivatedValues(t);c&&c.forEach((h,m)=>{this.updateElement(r,m,h),s.delete(m)}),s.forEach(h=>{if(c=this.getActivatedValues(t,h),c){const m=c.get(h);this.updateElement(r,h,m)}else this.clearElement(r,h)})})}clearElement(t,r){const s=this.clearMap.get(t);if(s){const c=s.get(r);c&&(c(),this.subject.next({element:t,key:r,value:""}))}}updateElement(t,r,s){const c=this.updateMap.get(t);if(c){const h=c.get(r);h&&(h(s),this.subject.next({element:t,key:r,value:s}))}}releaseElement(t){const r=this.watcherMap.get(t);r&&(r.forEach(c=>c.unsubscribe()),this.watcherMap.delete(t));const s=this.elementMap.get(t);s&&(s.forEach((c,h)=>s.delete(h)),this.elementMap.delete(t))}triggerUpdate(t,r){const s=this.elementMap.get(t);if(s){const c=this.getActivatedValues(s,r);c&&(r?this.updateElement(t,r,c.get(r)):c.forEach((h,m)=>this.updateElement(t,m,h)))}}buildElementKeyMap(t,r){let s=this.elementKeyMap.get(t);s||(s=new Set,this.elementKeyMap.set(t,s)),s.add(r)}watchExtraTriggers(t,r,s){if(s&&s.length){let c=this.watcherMap.get(t);if(c||(c=new Map,this.watcherMap.set(t,c)),!c.get(r)){const m=ju(...s).subscribe(()=>{const w=this.getValue(t,r);this.updateElement(t,r,w)});c.set(r,m)}}}findByQuery(t){return this.breakpoints.findByQuery(t)}getActivatedValues(t,r){for(let c=0;c<this.activatedBreakpoints.length;c++){const m=t.get(this.activatedBreakpoints[c].alias);if(m&&(void 0===r||m.has(r)&&null!=m.get(r)))return m}if(!this._useFallbacks)return;const s=t.get("");return void 0===r||s&&s.has(r)?s:void 0}observeActivations(){const t=this.breakpoints.items.map(r=>r.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(t)).pipe(function pN(n,e,t){return function(s){return s.lift(new gN(n,e,t))}}(this.hook.interceptEvents(this)),Cf(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return n.\u0275fac=function(t){return new(t||n)(Pe(wO),Pe(xO),Pe(PN))},n.\u0275prov=Qe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function g3(n,e,t,r){var s;if(void 0!==r){const c=null!==(s=n.get(e))&&void 0!==s?s:new Map;c.set(t,r),n.set(e,c)}}let Tr=(()=>{class n{constructor(t,r,s,c){this.elementRef=t,this.styleBuilder=r,this.styler=s,this.marshal=c,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new Zr,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,this.marshal.activatedAlias)}ngOnChanges(t){Object.keys(t).forEach(r=>{if(-1!==this.inputs.indexOf(r)){const s=r.split(".").slice(1).join(".");this.setValue(t[r].currentValue,s)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(t=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),t)}addStyles(t,r){const s=this.styleBuilder,c=s.shouldCache;let h=this.styleCache.get(t);(!h||!c)&&(h=s.buildStyles(t,r),c&&this.styleCache.set(t,h)),this.mru=Object.assign({},h),this.applyStyleToElement(h),s.sideEffect(t,h,r)}clearStyles(){Object.keys(this.mru).forEach(t=>{this.mru[t]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(t,r=!1){if(t){const[s,c]=this.styler.getFlowDirection(t);if(!c&&r){const h=r3(s);this.styler.applyStyleToElements(h,[t])}return s.trim()}return"row"}hasWrap(t){return this.styler.hasWrap(t)}applyStyleToElement(t,r,s=this.nativeElement){this.styler.applyStyleToElement(s,t,r)}setValue(t,r){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,r)}updateWithValue(t){this.currentValue!==t&&(this.addStyles(t),this.currentValue=t)}}return n.\u0275fac=function(t){return new(t||n)(be(xn),be(qr),be(yr),be(_r))},n.\u0275dir=pt({type:n,features:[Cl]}),n})(),E3=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ri({type:n}),n.\u0275inj=Vi({imports:[[yO]]}),n})(),i6=(()=>{class n extends qr{buildStyles(t,{display:r}){const s=r3(t);return Object.assign(Object.assign({},s),{display:"none"===r?r:s.display})}}return n.\u0275fac=function(){let e;return function(r){return(e||(e=Yt(n)))(r||n)}}(),n.\u0275prov=Qe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const o6=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let s6=(()=>{class n extends Tr{constructor(t,r,s,c,h){super(t,s,r,c),this._config=h,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(t){var r;const c=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=null!==(r=D3.get(c))&&void 0!==r?r:new Map,D3.set(c,this.styleCache),this.currentValue!==t&&(this.addStyles(t,{display:c}),this.currentValue=t)}}return n.\u0275fac=function(t){return new(t||n)(be(xn),be(yr),be(i6),be(_r),be(dl))},n.\u0275dir=pt({type:n,features:[jt]}),n})(),C3=(()=>{class n extends s6{constructor(){super(...arguments),this.inputs=o6}}return n.\u0275fac=function(){let e;return function(r){return(e||(e=Yt(n)))(r||n)}}(),n.\u0275dir=pt({type:n,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[jt]}),n})();const D3=new Map;let R3=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ri({type:n}),n.\u0275inj=Vi({imports:[[yO,ox]]}),n})(),N3=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ri({type:n}),n.\u0275inj=Vi({imports:[[yO]]}),n})(),k7=(()=>{class n{constructor(t,r){nl(r)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(t,r=[]){return{ngModule:n,providers:t.serverLoaded?[{provide:dl,useValue:Object.assign(Object.assign({},vO),t)},{provide:bO,useValue:r,multi:!0},{provide:xv,useValue:!0}]:[{provide:dl,useValue:Object.assign(Object.assign({},vO),t)},{provide:bO,useValue:r,multi:!0}]}}}return n.\u0275fac=function(t){return new(t||n)(Pe(xv),Pe(ws))},n.\u0275mod=Ri({type:n}),n.\u0275inj=Vi({imports:[[R3,E3,N3],R3,E3,N3]}),n})();function $n(n,e,t,r){return new(t||(t=Promise))(function(c,h){function m(N){try{k(r.next(N))}catch(V){h(V)}}function w(N){try{k(r.throw(N))}catch(V){h(V)}}function k(N){N.done?c(N.value):function s(c){return c instanceof t?c:new t(function(h){h(c)})}(N.value).then(m,w)}k((r=r.apply(n,e||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;var kO=Di(5);const Gk=new Map,AO=[].map,Z7=[].some,X7={}.hasOwnProperty,Ff="https://cdn.jsdelivr.net/npm/",J7=/^((?:@[^/@]+\/)?[^/@]+)(?:@([^/]+))?(?:\/(.*))?$/,e8=/^\d+\.\d+\.\d+(-[\w-.+]+)?$/,B3=/\.[^/]*$/,t8=["unpkg","jsdelivr","browser","main"];class Sv extends Error{constructor(e){super(e),this.name="RequireError"}}function z3(n){const e=J7.exec(n);return e&&{name:e[1],version:e[2],path:e[3]}}function q3(n){const e=`${Ff}${n.name}${n.version?`@${n.version}`:""}/package.json`;let t=Gk.get(e);return t||Gk.set(e,t=fetch(e).then(r=>{if(!r.ok)throw new Sv("unable to load package.json");return r.redirected&&!Gk.has(r.url)&&Gk.set(r.url,t),r.json()})),t}function RO(n){const e=new Map;function t(h){if("string"!=typeof h)return h;let m=e.get(h);return m||(m=new Promise((w,k)=>$n(this,void 0,void 0,function*(){try{const N=yield fetch(h);if(!N.ok)throw new Sv(`Unable to fetch module from ${h}`);const V=yield N.text(),W=[],ee=function a8(n){function e(t,r,s){const c=arguments.length;c<2?(s=t,r=[]):c<3&&(s=r,r="string"==typeof t?[]:t),n.push(Z7.call(r,s8)?h=>{const m={},w={exports:m};return Promise.all(AO.call(r,k=>"exports"==(k+="")?m:"module"===k?w:h(k))).then(k=>(s.apply(null,k),w.exports))}:h=>Promise.all(AO.call(r,h)).then(m=>"function"==typeof s?s.apply(null,m):s))}return e.amd={},e}(W);new Function("define",V)(ee);const me=W.shift();if("function"!=typeof me)throw new Sv(`Module did not call define() and cannot be loaded from ${h}`);const Ce=yield me(r(h));w(Ce)}catch(N){console.error(N),k(N instanceof Sv?N:new Sv(`Error loading module from ${h}`))}})),e.set(h,m)),m}function r(h){return m=>Promise.resolve(n(m,h)).then(t)}function c(h){return arguments.length>1?Promise.all(AO.call(arguments,r(null))).then(i8):r(null)(h)}return c.alias=function s(h){return RO((m,w)=>m in h&&(w=null,"string"!=typeof(m=h[m]))?m:n(m,w))},c.resolve=n,c}function i8(n){const e={};for(const t of n)for(const r in t)X7.call(t,r)&&(null==t[r]?Object.defineProperty(e,r,{get:o8(t,r)}):e[r]=t[r]);return e}function o8(n,e){return()=>n[e]}function s8(n){return"exports"==(n+="")||"module"===n}RO(function r8(n,e){return $n(this,void 0,void 0,function*(){if(n.startsWith(Ff)&&(n=n.substring(Ff.length)),/^(\w+:)|\/\//i.test(n))return n;if(/^[.]{0,2}\//i.test(n))return new URL(n,null==e?location:e).href;if(!n.length||/^[\s._]/.test(n)||/\s$/.test(n))throw new Sv("illegal name");const t=z3(n);if(!t)return`${Ff}${n}`;if(!t.version&&null!=e&&e.startsWith(Ff)){const s=yield q3(z3(e.substring(Ff.length)));t.version=s.dependencies&&s.dependencies[t.name]||s.peerDependencies&&s.peerDependencies[t.name]}if(t.path&&!B3.test(t.path)&&(t.path+=".js"),t.path&&t.version&&e8.test(t.version))return`${Ff}${t.name}@${t.version}/${t.path}`;const r=yield q3(t);return`${Ff}${r.name}@${r.version}/${t.path||function n8(n){for(const e of t8){const t=n[e];if("string"==typeof t)return B3.test(t)?t:`${t}.js`}}(r)||"index.js"}`})});const l8=["toolbar"],c8=["viz"];let u8=(()=>{class n{ngAfterViewInit(){return $n(this,void 0,void 0,function*(){yield this.render()})}render(){return $n(this,void 0,void 0,function*(){this.oldQLayout=JSON.parse(JSON.stringify(this.qLayout));const t={getLayout:()=>this.qLayout,selectHyperCubeCells:(...m)=>{},getEffectiveProperties:(...m)=>$n(this,void 0,void 0,function*(){return yield this.onVizMethod({name:"getEffectiveProperties",args:m})}),getHyperCubeReducedData:(...m)=>$n(this,void 0,void 0,function*(){return yield this.onVizMethod({name:"getHyperCubeReducedData",args:m})}),getHyperCubeData:(...m)=>$n(this,void 0,void 0,function*(){return yield this.onVizMethod({name:"getHyperCubeData",args:m})}),getHyperCubeStackData:(...m)=>$n(this,void 0,void 0,function*(){return yield this.onVizMethod({name:"getHyperCubeStackData",args:m})}),getHyperCubeContinuousData:(...m)=>$n(this,void 0,void 0,function*(){return yield this.onVizMethod({name:"getHyperCubeContinuousData",args:m})}),getStackedDataPages:(...m)=>this.qLayout.qHyperCube.qDataPages,getFullPropertyTree:()=>{},getHyperCubeTreeData:(...m)=>$n(this,void 0,void 0,function*(){return yield this.onVizMethod({name:"getHyperCubeTreeData",args:m})}),beginSelections:(...m)=>{},selectHyperCubeContinuousRange:(...m)=>$n(this,void 0,void 0,function*(){var w;yield null===(w=this.onSelections)||void 0===w?void 0:w.call(this,{selections:m,method:"selectHyperCubeContinuousRange"})}),selectHyperCubeValues:(...m)=>$n(this,void 0,void 0,function*(){var w;yield null===(w=this.onSelections)||void 0===w?void 0:w.call(this,{selections:m,method:"selectHyperCubeValues"})}),selectListObjectValues:(...m)=>$n(this,void 0,void 0,function*(){var w;yield null===(w=this.onSelections)||void 0===w?void 0:w.call(this,{selections:m,method:"selectListObjectValues"})}),selectPivotCells:(...m)=>$n(this,void 0,void 0,function*(){var w;yield null===(w=this.onSelections)||void 0===w?void 0:w.call(this,{selections:m,method:"selectPivotCells"})}),rangeSelectHyperCubeValues:(...m)=>$n(this,void 0,void 0,function*(){var w;yield null===(w=this.onSelections)||void 0===w?void 0:w.call(this,{selections:m,method:"rangeSelectHyperCubeValues"})}),resetMadeSelections:(...m)=>{},clearSelections:(...m)=>{},endSelections:(...m)=>{},removeListener:(...m)=>{},useKeyboard:(...m)=>{},on:(...m)=>{},getField:(...m)=>{},selectValues:(...m)=>{}};this.app=yield kO.EnigmaMocker.fromGenericObjects([t]),this.app.getMeasure=m=>$n(this,void 0,void 0,function*(){return{getMeasure:()=>$n(this,void 0,void 0,function*(){return yield this.onGetMeasure({measureId:m})}),getProperties:(...w)=>$n(this,void 0,void 0,function*(){return yield this.onGetMeasureProperties({measureId:m,args:w})})}});const r=this.app.getObject;this.app.getObject=m=>$n(this,void 0,void 0,function*(){return m===this.qLayout.qInfo.qId?yield r(this.qLayout.qInfo.qId):{getLayout:()=>$n(this,void 0,void 0,function*(){return yield this.onGetObject({objectId:m})})}}),this.app.getField=m=>$n(this,void 0,void 0,function*(){return{selectValues:(w,k,N)=>$n(this,void 0,void 0,function*(){return yield this.onSelectFieldValues({fieldId:m,arr:w,toggle:k,softlock:N})}),clear:()=>$n(this,void 0,void 0,function*(){return yield this.onClearField({fieldId:m})}),selectAll:w=>$n(this,void 0,void 0,function*(){return yield this.onFieldSelectAll({fieldId:m,softlock:w})}),selectPossible:w=>$n(this,void 0,void 0,function*(){return yield this.onFieldSelectPossible({fieldId:m,softlock:w})})}}),this.app.getFieldDescription=m=>$n(this,void 0,void 0,function*(){return this.onGetFieldDescription({fieldId:m})}),this.app.evaluate=m=>$n(this,void 0,void 0,function*(){return this.onEvaluate({expression:m})});const s=RO(m=>this.nebulaPackagesUrl?`${this.nebulaPackagesUrl}/${m}`:`https://unpkg.com/@nebula.js/${m}`).alias({"@nebula.js/stardust":kO}),c=[["sn-action-button@1.38.1","action-button"],["sn-bar-chart","barchart"],["sn-bullet-chart","bullet-chart"],["sn-combo-chart","combo-chart"],["sn-funnel-chart","funnel-chart"],["sn-grid-chart","sn-grid-chart"],["sn-kpi","kpi"],["sn-line-chart","line-chart"],["sn-mekko-chart","mekko"],["sn-org-chart","org"],["sn-pie-chart","piechart"],["sn-sankey-chart","sankey"],["sn-table","table"],["sn-video-player","video-player"],["sn-scatter-plot","scatterplot"],["sn-treemap","treemap"],["nebula-date-range-picker","qlik-date-picker"],["nebula-radar-chart","qlik-radar-chart"],["sn-pivot-table","pivot-table"],["sn-map","map"],["sn-text","sn-text"],["sn-distplot","distributionplot"]].map(m=>({name:m[1],load:()=>s(m[0])}));this.n=kO.embed(this.app,{types:c,themes:[{id:"customTheme",load:()=>$n(this,void 0,void 0,function*(){return this.theme})}],context:{theme:"customTheme"},flags:{IM_1869_HIDE_DIM_MEA_LINE:!0,CLIENT_IM_3365:!0}}),this.qLayout&&(this.viz=yield this.n.render({element:this.vizEl.nativeElement,id:this.qLayout.qInfo.qId}))})}destroyApp(){var t;null===(t=document.querySelector(`div[data-app-id='${this.app.id}']`))||void 0===t||t.remove()}ngOnDestroy(){this.destroyApp()}ngOnChanges(t){return $n(this,void 0,void 0,function*(){this.viz&&JSON.stringify(this.qLayout)!==JSON.stringify(this.oldQLayout)&&(this.viz.destroy(),this.destroyApp(),yield this.render())})}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=Hu({type:n,selectors:[["drayman-nebula-internal"]],viewQuery:function(t,r){if(1&t&&(q1(l8,5),q1(c8,5)),2&t){let s;z1(s=Km())&&(r.toolbarEl=s.first),z1(s=Km())&&(r.vizEl=s.first)}},inputs:{qLayout:"qLayout",theme:"theme",onSelections:"onSelections",onVizMethod:"onVizMethod",onGetMeasure:"onGetMeasure",onGetObject:"onGetObject",onSelectFieldValues:"onSelectFieldValues",onFieldSelectPossible:"onFieldSelectPossible",onFieldSelectAll:"onFieldSelectAll",onGetFieldDescription:"onGetFieldDescription",onEvaluate:"onEvaluate",onClearField:"onClearField",onGetMeasureProperties:"onGetMeasureProperties",nebulaPackagesUrl:"nebulaPackagesUrl"},features:[Cl],decls:5,vars:0,consts:[["fxLayout","column",1,"nebula-container"],["toolbar",""],[1,"viz"],["viz",""]],template:function(t,r){1&t&&(Em(0,"div",0),Kt(1,"div",null,1)(3,"div",2,3),Cm())},directives:[C3],styles:[".nebula-container[_ngcontent-%COMP%]{width:100%;margin:0;height:100%;min-width:100%;min-height:100%}.viz[_ngcontent-%COMP%]{flex:1}"]}),n})(),d8=(()=>{class n{constructor(t){this.injector=t}ngDoBootstrap(){const t=function xr(n,e){const t=function $T(n,e){return e.get(tu).resolveComponentFactory(n).inputs}(n,e.injector),r=e.strategyFactory||new Mf(n,e.injector),s=function uv(n){const e={};return n.forEach(({propName:t,templateName:r})=>{e[function Sx(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}(r)]=t}),e}(t);class c extends vk{constructor(m){super(),this.injector=m}get ngElementStrategy(){if(!this._ngElementStrategy){const m=this._ngElementStrategy=r.create(this.injector||e.injector);t.forEach(({propName:w})=>{if(!this.hasOwnProperty(w))return;const k=this[w];delete this[w],m.setInputValue(w,k)})}return this._ngElementStrategy}attributeChangedCallback(m,w,k,N){this.ngElementStrategy.setInputValue(s[m],k)}connectedCallback(){let m=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),m=!0),this.ngElementStrategy.connect(this),m||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(m=>{const w=new CustomEvent(m.name,{detail:m.value});this.dispatchEvent(w)})}}return c.observedAttributes=Object.keys(s),t.forEach(({propName:h})=>{Object.defineProperty(c.prototype,h,{get(){return this.ngElementStrategy.getInputValue(h)},set(m){this.ngElementStrategy.setInputValue(h,m)},configurable:!0,enumerable:!0})}),c}(u8,{injector:this.injector});customElements.define("drayman-nebula",t)}}return n.\u0275fac=function(t){return new(t||n)(Pe(Yi))},n.\u0275mod=Ri({type:n}),n.\u0275inj=Vi({providers:[{provide:iv,useClass:uN}],imports:[[Vw,cN,k7]]}),n})();(function C5(){hy=!1})(),R2().bootstrapModule(d8).catch(n=>console.error(n))})()})();
101
+ `),rb)),fm=z.forwardRef(function(i,o){const a=Fn({props:i,name:"MuiCircularProgress"}),{className:u,color:f="primary",disableShrink:p=!1,size:g=40,style:y,thickness:b=3.6,value:x=0,variant:_="indeterminate"}=a,E=Ft(a,tb),D=fe({},a,{color:f,disableShrink:p,size:g,thickness:b,value:x,variant:_}),I=(T=>{const{classes:O,variant:L,color:F,disableShrink:P}=T;return Mn({root:["root",L,`color${Ze(F)}`],svg:["svg"],circle:["circle",`circle${Ze(L)}`,P&&"circleDisableShrink"]},Ed,O)})(D),C={},A={},M={};if("determinate"===_){const T=2*Math.PI*((44-b)/2);C.strokeDasharray=T.toFixed(3),M["aria-valuenow"]=Math.round(x),C.strokeDashoffset=`${((100-x)/100*T).toFixed(3)}px`,A.transform="rotate(-90deg)"}return Ie.jsx(qS,fe({className:At(I.root,u),style:fe({width:g,height:g},A,y),ownerState:D,ref:o,role:"progressbar"},M,E,{children:Ie.jsx(dm,{className:I.svg,ownerState:D,viewBox:"22 22 44 44",children:Ie.jsx(UR,{className:I.circle,style:C,ownerState:D,cx:44,cy:44,r:(44-b)/2,fill:"none",strokeWidth:b})})}))});function hm(i,o){o?i.setAttribute("aria-hidden","true"):i.removeAttribute("aria-hidden")}function ib(i){return parseInt(go(i).getComputedStyle(i).paddingRight,10)||0}function ob(i,o,a,u,f){const p=[o,a,...u];[].forEach.call(i.children,g=>{const y=-1===p.indexOf(g),b=!function(x){const _=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(x.tagName),E="INPUT"===x.tagName&&"hidden"===x.getAttribute("type");return _||E}(g);y&&b&&hm(g,f)})}function sb(i,o){let a=-1;return i.some((u,f)=>!!o(u)&&(a=f,!0)),a}const WR=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function KR(i){const o=[],a=[];return Array.from(i.querySelectorAll(WR)).forEach((u,f)=>{const p=function(g){const y=parseInt(g.getAttribute("tabindex")||"",10);return Number.isNaN(y)?"true"===g.contentEditable||("AUDIO"===g.nodeName||"VIDEO"===g.nodeName||"DETAILS"===g.nodeName)&&null===g.getAttribute("tabindex")?0:g.tabIndex:y}(u);var g;-1!==p&&!((g=u).disabled||"INPUT"===g.tagName&&"hidden"===g.type||function(y){if("INPUT"!==y.tagName||"radio"!==y.type||!y.name)return!1;const b=_=>y.ownerDocument.querySelector(`input[type="radio"]${_}`);let x=b(`[name="${y.name}"]:checked`);return x||(x=b(`[name="${y.name}"]`)),x!==y}(g))&&(0===p?o.push(u):a.push({documentOrder:f,tabIndex:p,node:u}))}),a.sort((u,f)=>u.tabIndex===f.tabIndex?u.documentOrder-f.documentOrder:u.tabIndex-f.tabIndex).map(u=>u.node).concat(o)}function Eo(){return!0}function QR(i){const{children:o,disableAutoFocus:a=!1,disableEnforceFocus:u=!1,disableRestoreFocus:f=!1,getTabbable:p=KR,isEnabled:g=Eo,open:y}=i,b=z.useRef(!1),x=z.useRef(null),_=z.useRef(null),E=z.useRef(null),D=z.useRef(null),I=z.useRef(!1),C=z.useRef(null),A=ti(ni(o),C),M=z.useRef(null);z.useEffect(()=>{y&&C.current&&(I.current=!a)},[a,y]),z.useEffect(()=>{if(!y||!C.current)return;const O=jr(C.current);return C.current.contains(O.activeElement)||(C.current.hasAttribute("tabIndex")||C.current.setAttribute("tabIndex","-1"),I.current&&C.current.focus()),()=>{f||(E.current&&E.current.focus&&(b.current=!0,E.current.focus()),E.current=null)}},[y]),z.useEffect(()=>{if(!y||!C.current)return;const O=jr(C.current),L=q=>{M.current=q,!u&&g()&&"Tab"===q.key&&O.activeElement===C.current&&q.shiftKey&&(b.current=!0,_.current&&_.current.focus())},F=()=>{const q=C.current;if(null===q)return;if(!O.hasFocus()||!g()||b.current)return void(b.current=!1);if(q.contains(O.activeElement)||u&&O.activeElement!==x.current&&O.activeElement!==_.current)return;if(O.activeElement!==D.current)D.current=null;else if(null!==D.current)return;if(!I.current)return;let $=[];if(O.activeElement!==x.current&&O.activeElement!==_.current||($=p(C.current)),$.length>0){var Q,X;const ae=Boolean((null==(Q=M.current)?void 0:Q.shiftKey)&&"Tab"===(null==(X=M.current)?void 0:X.key)),le=$[0],oe=$[$.length-1];"string"!=typeof le&&"string"!=typeof oe&&(ae?oe.focus():le.focus())}else q.focus()};O.addEventListener("focusin",F),O.addEventListener("keydown",L,!0);const P=setInterval(()=>{O.activeElement&&"BODY"===O.activeElement.tagName&&F()},50);return()=>{clearInterval(P),O.removeEventListener("focusin",F),O.removeEventListener("keydown",L,!0)}},[a,u,f,g,y,p]);const T=O=>{null===E.current&&(E.current=O.relatedTarget),I.current=!0};return Ie.jsxs(z.Fragment,{children:[Ie.jsx("div",{tabIndex:y?0:-1,onFocus:T,ref:x,"data-testid":"sentinelStart"}),z.cloneElement(o,{ref:A,onFocus:O=>{null===E.current&&(E.current=O.relatedTarget),I.current=!0,D.current=O.target;const L=o.props.onFocus;L&&L(O)}}),Ie.jsx("div",{tabIndex:y?0:-1,onFocus:T,ref:_,"data-testid":"sentinelEnd"})]})}const YR=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(i,o){let a=this.modals.indexOf(i);if(-1!==a)return a;a=this.modals.length,this.modals.push(i),i.modalRef&&hm(i.modalRef,!1);const u=function(p){const g=[];return[].forEach.call(p.children,y=>{"true"===y.getAttribute("aria-hidden")&&g.push(y)}),g}(o);ob(o,i.mount,i.modalRef,u,!0);const f=sb(this.containers,p=>p.container===o);return-1!==f?(this.containers[f].modals.push(i),a):(this.containers.push({modals:[i],container:o,restore:null,hiddenSiblings:u}),a)}mount(i,o){const a=sb(this.containers,f=>-1!==f.modals.indexOf(i)),u=this.containers[a];u.restore||(u.restore=function VS(i,o){const a=[],u=i.container;if(!o.disableScrollLock){if(function(p){const g=jr(p);return g.body===p?go(p).innerWidth>g.documentElement.clientWidth:p.scrollHeight>p.clientHeight}(u)){const p=mo(jr(u));a.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${ib(u)+p}px`;const g=jr(u).querySelectorAll(".mui-fixed");[].forEach.call(g,y=>{a.push({value:y.style.paddingRight,property:"padding-right",el:y}),y.style.paddingRight=`${ib(y)+p}px`})}let f;if(u.parentNode instanceof DocumentFragment)f=jr(u).body;else{const p=u.parentElement,g=go(u);f="HTML"===(null==p?void 0:p.nodeName)&&"scroll"===g.getComputedStyle(p).overflowY?p:u}a.push({value:f.style.overflow,property:"overflow",el:f},{value:f.style.overflowX,property:"overflow-x",el:f},{value:f.style.overflowY,property:"overflow-y",el:f}),f.style.overflow="hidden"}return()=>{a.forEach(({value:f,el:p,property:g})=>{f?p.style.setProperty(g,f):p.style.removeProperty(g)})}}(u,o))}remove(i,o=!0){const a=this.modals.indexOf(i);if(-1===a)return a;const u=sb(this.containers,p=>-1!==p.modals.indexOf(i)),f=this.containers[u];if(f.modals.splice(f.modals.indexOf(i),1),this.modals.splice(a,1),0===f.modals.length)f.restore&&f.restore(),i.modalRef&&hm(i.modalRef,o),ob(f.container,i.mount,i.modalRef,f.hiddenSiblings,!1),this.containers.splice(u,1);else{const p=f.modals[f.modals.length-1];p.modalRef&&hm(p.modalRef,!1)}return a}isTopModal(i){return this.modals.length>0&&this.modals[this.modals.length-1]===i}};function xL(i){return kn("MuiModal",i)}wn("MuiModal",["root","hidden","backdrop"]);const $S=["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"],_L=He("div",{name:"MuiModal",slot:"Root",overridesResolver:(i,o)=>{const{ownerState:a}=i;return[o.root,!a.open&&a.exited&&o.hidden]}})(({theme:i,ownerState:o})=>fe({position:"fixed",zIndex:(i.vars||i).zIndex.modal,right:0,bottom:0,top:0,left:0},!o.open&&o.exited&&{visibility:"hidden"})),ZR=He(fL,{name:"MuiModal",slot:"Backdrop",overridesResolver:(i,o)=>o.backdrop})({zIndex:-1}),ab=z.forwardRef(function(i,o){var a,u,f,p,g,y;const b=Fn({name:"MuiModal",props:i}),{BackdropComponent:x=ZR,BackdropProps:_,className:E,closeAfterTransition:D=!1,children:I,container:C,component:A,components:M={},componentsProps:T={},disableAutoFocus:O=!1,disableEnforceFocus:L=!1,disableEscapeKeyDown:F=!1,disablePortal:P=!1,disableRestoreFocus:q=!1,disableScrollLock:$=!1,hideBackdrop:Q=!1,keepMounted:X=!1,onBackdropClick:ae,open:le,slotProps:oe,slots:K}=b,U=Ft(b,$S),ne=fe({},b,{closeAfterTransition:D,disableAutoFocus:O,disableEnforceFocus:L,disableEscapeKeyDown:F,disablePortal:P,disableRestoreFocus:q,disableScrollLock:$,hideBackdrop:Q,keepMounted:X}),{getRootProps:se,getBackdropProps:he,getTransitionProps:B,portalRef:G,isTopModal:Z,exited:re,hasTransition:te}=function wL(i){const{container:o,disableEscapeKeyDown:a=!1,disableScrollLock:u=!1,manager:f=YR,closeAfterTransition:p=!1,onTransitionEnter:g,onTransitionExited:y,children:b,onClose:x,open:_,rootRef:E}=i,D=z.useRef({}),I=z.useRef(null),C=z.useRef(null),A=ti(C,E),[M,T]=z.useState(!_),O=!!(oe=b)&&oe.props.hasOwnProperty("in");var oe;let L=!0;"false"!==i["aria-hidden"]&&!1!==i["aria-hidden"]||(L=!1);const F=()=>(D.current.modalRef=C.current,D.current.mount=I.current,D.current),P=()=>{f.mount(F(),{disableScrollLock:u}),C.current&&(C.current.scrollTop=0)},q=Ot(()=>{const oe=("function"==typeof(K=o)?K():K)||jr(I.current).body;var K;f.add(F(),oe),C.current&&P()}),$=z.useCallback(()=>f.isTopModal(F()),[f]),Q=Ot(oe=>{I.current=oe,oe&&(_&&$()?P():C.current&&hm(C.current,L))}),X=z.useCallback(()=>{f.remove(F(),L)},[L,f]);z.useEffect(()=>()=>{X()},[X]),z.useEffect(()=>{_?q():O&&p||X()},[_,X,O,p,q]);const ae=oe=>K=>{var U;null==(U=oe.onKeyDown)||U.call(oe,K),"Escape"===K.key&&229!==K.which&&$()&&(a||(K.stopPropagation(),x&&x(K,"escapeKeyDown")))},le=oe=>K=>{var U;null==(U=oe.onClick)||U.call(oe,K),K.target===K.currentTarget&&x&&x(K,"backdropClick")};return{getRootProps:(oe={})=>{const K=L_(i);delete K.onTransitionEnter,delete K.onTransitionExited;const U=fe({},K,oe);return fe({role:"presentation"},U,{onKeyDown:ae(U),ref:A})},getBackdropProps:(oe={})=>fe({"aria-hidden":!0},oe,{onClick:le(oe),open:_}),getTransitionProps:()=>({onEnter:rd(()=>{T(!1),g&&g()},null==b?void 0:b.props.onEnter),onExited:rd(()=>{T(!0),y&&y(),p&&X()},null==b?void 0:b.props.onExited)}),rootRef:A,portalRef:Q,isTopModal:$,exited:M,hasTransition:O}}(fe({},ne,{rootRef:o})),ce=fe({},ne,{exited:re}),ye=(nt=>{const{open:Ge,exited:yt,classes:Rt}=nt;return Mn({root:["root",!Ge&&yt&&"hidden"],backdrop:["backdrop"]},xL,Rt)})(ce),Se={};if(void 0===I.props.tabIndex&&(Se.tabIndex="-1"),te){const{onEnter:nt,onExited:Ge}=B();Se.onEnter=nt,Se.onExited=Ge}const Ae=null!=(a=null!=(u=null==K?void 0:K.root)?u:M.Root)?a:_L,Le=null!=(f=null!=(p=null==K?void 0:K.backdrop)?p:M.Backdrop)?f:x,Ne=null!=(g=null==oe?void 0:oe.root)?g:T.root,Ve=null!=(y=null==oe?void 0:oe.backdrop)?y:T.backdrop,Re=Il({elementType:Ae,externalSlotProps:Ne,externalForwardedProps:U,getSlotProps:se,additionalProps:{ref:o,as:A},ownerState:ce,className:At(E,null==Ne?void 0:Ne.className,null==ye?void 0:ye.root,!ce.open&&ce.exited&&(null==ye?void 0:ye.hidden))}),Me=Il({elementType:Le,externalSlotProps:Ve,additionalProps:_,getSlotProps:nt=>he(fe({},nt,{onClick:Ge=>{ae&&ae(Ge),null!=nt&&nt.onClick&&nt.onClick(Ge)}})),className:At(null==Ve?void 0:Ve.className,null==_?void 0:_.className,null==ye?void 0:ye.backdrop),ownerState:ce});return X||le||te&&!re?Ie.jsx(DS,{ref:G,container:C,disablePortal:P,children:Ie.jsxs(Ae,fe({},Re,{children:[!Q&&x?Ie.jsx(Le,fe({},Me)):null,Ie.jsx(QR,{disableEnforceFocus:L,disableAutoFocus:O,disableRestoreFocus:q,isEnabled:Z,open:le,children:z.cloneElement(I,Se)})]}))}):null});function HS(i){return kn("MuiDivider",i)}const GS=wn("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),XR=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],JR=He("div",{name:"MuiDivider",slot:"Root",overridesResolver:(i,o)=>{const{ownerState:a}=i;return[o.root,a.absolute&&o.absolute,o[a.variant],a.light&&o.light,"vertical"===a.orientation&&o.vertical,a.flexItem&&o.flexItem,a.children&&o.withChildren,a.children&&"vertical"===a.orientation&&o.withChildrenVertical,"right"===a.textAlign&&"vertical"!==a.orientation&&o.textAlignRight,"left"===a.textAlign&&"vertical"!==a.orientation&&o.textAlignLeft]}})(({theme:i,ownerState:o})=>fe({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(i.vars||i).palette.divider,borderBottomWidth:"thin"},o.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},o.light&&{borderColor:i.vars?`rgba(${i.vars.palette.dividerChannel} / 0.08)`:or.alpha(i.palette.divider,.08)},"inset"===o.variant&&{marginLeft:72},"middle"===o.variant&&"horizontal"===o.orientation&&{marginLeft:i.spacing(2),marginRight:i.spacing(2)},"middle"===o.variant&&"vertical"===o.orientation&&{marginTop:i.spacing(1),marginBottom:i.spacing(1)},"vertical"===o.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},o.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:i})=>fe({},i.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:i,ownerState:o})=>fe({},o.children&&"vertical"!==o.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(i.vars||i).palette.divider}`,borderTopStyle:"inherit"}}),({theme:i,ownerState:o})=>fe({},o.children&&"vertical"===o.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(i.vars||i).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:i})=>fe({},"right"===i.textAlign&&"vertical"!==i.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===i.textAlign&&"vertical"!==i.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),US=He("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(i,o)=>{const{ownerState:a}=i;return[o.wrapper,"vertical"===a.orientation&&o.wrapperVertical]}})(({theme:i,ownerState:o})=>fe({display:"inline-block",paddingLeft:`calc(${i.spacing(1)} * 1.2)`,paddingRight:`calc(${i.spacing(1)} * 1.2)`},"vertical"===o.orientation&&{paddingTop:`calc(${i.spacing(1)} * 1.2)`,paddingBottom:`calc(${i.spacing(1)} * 1.2)`})),WS=z.forwardRef(function(i,o){const a=Fn({props:i,name:"MuiDivider"}),{absolute:u=!1,children:f,className:p,component:g=(f?"div":"hr"),flexItem:y=!1,light:b=!1,orientation:x="horizontal",role:_=("hr"!==g?"separator":void 0),textAlign:E="center",variant:D="fullWidth"}=a,I=Ft(a,XR),C=fe({},a,{absolute:u,component:g,flexItem:y,light:b,orientation:x,role:_,textAlign:E,variant:D}),A=(M=>{const{absolute:T,children:O,classes:L,flexItem:F,light:P,orientation:q,textAlign:$,variant:Q}=M;return Mn({root:["root",T&&"absolute",Q,P&&"light","vertical"===q&&"vertical",F&&"flexItem",O&&"withChildren",O&&"vertical"===q&&"withChildrenVertical","right"===$&&"vertical"!==q&&"textAlignRight","left"===$&&"vertical"!==q&&"textAlignLeft"],wrapper:["wrapper","vertical"===q&&"wrapperVertical"]},HS,L)})(C);return Ie.jsx(JR,fe({as:g,className:At(A.root,p),role:_,ref:o,ownerState:C},I,{children:f?Ie.jsx(US,{className:A.wrapper,ownerState:C,children:f}):null}))});WS.muiSkipListHighlight=!0;const KS=function(i={}){const{createStyledComponent:o=Hg,useThemeProps:a=HA,componentName:u="MuiStack"}=i,f=o(UA);return z.forwardRef(function(g,y){const b=ed(a(g)),{component:x="div",direction:_="column",spacing:E=0,divider:D,children:I,className:C,useFlexGap:A=!1}=b,M=Hs(b,sh),T={direction:_,spacing:E,useFlexGap:A},O=Mn({root:["root"]},L=>kn(u,L),{});return Ie.jsx(f,dn({as:x,ownerState:T,ref:y,className:At(O.root,C)},M,{children:D?GA(I,D):I}))})}({createStyledComponent:He("div",{name:"MuiStack",slot:"Root",overridesResolver:(i,o)=>o.root}),useThemeProps:i=>Fn({props:i,name:"MuiStack"})});function eI(i){return kn("MuiFormControlLabel",i)}const Dh=wn("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),QS=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],YS=He("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(i,o)=>{const{ownerState:a}=i;return[{[`& .${Dh.label}`]:o.label},o.root,o[`labelPlacement${Ze(a.labelPlacement)}`]]}})(({theme:i,ownerState:o})=>fe({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Dh.disabled}`]:{cursor:"default"}},"start"===o.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===o.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===o.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${Dh.label}`]:{[`&.${Dh.disabled}`]:{color:(i.vars||i).palette.text.disabled}}})),tI=He("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(i,o)=>o.asterisk})(({theme:i})=>({[`&.${Dh.error}`]:{color:(i.vars||i).palette.error.main}})),Zs=z.forwardRef(function(i,o){var a,u;const f=Fn({props:i,name:"MuiFormControlLabel"}),{className:p,componentsProps:g={},control:y,disabled:b,disableTypography:x,label:_,labelPlacement:E="end",required:D,slotProps:I={}}=f,C=Ft(f,QS),A=cm(),M=null!=(a=null!=b?b:y.props.disabled)?a:null==A?void 0:A.disabled,T=null!=D?D:y.props.required,O={disabled:M,required:T};["checked","name","onChange","value","inputRef"].forEach(Q=>{void 0===y.props[Q]&&void 0!==f[Q]&&(O[Q]=f[Q])});const L=IS({props:f,muiFormControl:A,states:["error"]}),F=fe({},f,{disabled:M,labelPlacement:E,required:T,error:L.error}),P=(Q=>{const{classes:X,disabled:ae,labelPlacement:le,error:oe,required:K}=Q;return Mn({root:["root",ae&&"disabled",`labelPlacement${Ze(le)}`,oe&&"error",K&&"required"],label:["label",ae&&"disabled"],asterisk:["asterisk",oe&&"error"]},eI,X)})(F),q=null!=(u=I.typography)?u:g.typography;let $=_;return null==$||$.type===Gn||x||($=Ie.jsx(Gn,fe({component:"span"},q,{className:At(P.label,null==q?void 0:q.className),children:$}))),Ie.jsxs(YS,fe({className:At(P.root,p),ownerState:F,ref:o},C,{children:[z.cloneElement(y,O),T?Ie.jsxs(KS,{display:"block",children:[$,Ie.jsxs(tI,{ownerState:F,"aria-hidden":!0,className:P.asterisk,children:["\u2009","*"]})]}):$]}))}),pm=z.createContext();function nI(i){return kn("MuiGrid",i)}const kh=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],gm=wn("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map(i=>`spacing-xs-${i}`),...["column-reverse","column","row-reverse","row"].map(i=>`direction-xs-${i}`),...["nowrap","wrap-reverse","wrap"].map(i=>`wrap-xs-${i}`),...kh.map(i=>`grid-xs-${i}`),...kh.map(i=>`grid-sm-${i}`),...kh.map(i=>`grid-md-${i}`),...kh.map(i=>`grid-lg-${i}`),...kh.map(i=>`grid-xl-${i}`)]),ZS=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Dd(i){const o=parseFloat(i);return`${o}${String(i).replace(String(o),"")||"px"}`}function XS({breakpoints:i,values:o}){let a="";Object.keys(o).forEach(f=>{""===a&&0!==o[f]&&(a=f)});const u=Object.keys(i).sort((f,p)=>i[f]-i[p]);return u.slice(0,u.indexOf(a))}const rI=He("div",{name:"MuiGrid",slot:"Root",overridesResolver:(i,o)=>{const{ownerState:a}=i,{container:u,direction:f,item:p,spacing:g,wrap:y,zeroMinWidth:b,breakpoints:x}=a;let _=[];u&&(_=function(D,I,C={}){if(!D||D<=0)return[];if("string"==typeof D&&!Number.isNaN(Number(D))||"number"==typeof D)return[C[`spacing-xs-${String(D)}`]];const A=[];return I.forEach(M=>{const T=D[M];Number(T)>0&&A.push(C[`spacing-${M}-${String(T)}`])}),A}(g,x,o));const E=[];return x.forEach(D=>{const I=a[D];I&&E.push(o[`grid-${D}-${String(I)}`])}),[o.root,u&&o.container,p&&o.item,b&&o.zeroMinWidth,..._,"row"!==f&&o[`direction-xs-${String(f)}`],"wrap"!==y&&o[`wrap-xs-${String(y)}`],...E]}})(({ownerState:i})=>fe({boxSizing:"border-box"},i.container&&{display:"flex",flexWrap:"wrap",width:"100%"},i.item&&{margin:0},i.zeroMinWidth&&{minWidth:0},"wrap"!==i.wrap&&{flexWrap:i.wrap}),function({theme:i,ownerState:o}){return Wi({theme:i},is({values:o.direction,breakpoints:i.breakpoints.values}),a=>{const u={flexDirection:a};return 0===a.indexOf("column")&&(u[`& > .${gm.item}`]={maxWidth:"none"}),u})},function({theme:i,ownerState:o}){const{container:a,rowSpacing:u}=o;let f={};if(a&&0!==u){const p=is({values:u,breakpoints:i.breakpoints.values});let g;"object"==typeof p&&(g=XS({breakpoints:i.breakpoints.values,values:p})),f=Wi({theme:i},p,(y,b)=>{var x;const _=i.spacing(y);return"0px"!==_?{marginTop:`-${Dd(_)}`,[`& > .${gm.item}`]:{paddingTop:Dd(_)}}:null!=(x=g)&&x.includes(b)?{}:{marginTop:0,[`& > .${gm.item}`]:{paddingTop:0}}})}return f},function({theme:i,ownerState:o}){const{container:a,columnSpacing:u}=o;let f={};if(a&&0!==u){const p=is({values:u,breakpoints:i.breakpoints.values});let g;"object"==typeof p&&(g=XS({breakpoints:i.breakpoints.values,values:p})),f=Wi({theme:i},p,(y,b)=>{var x;const _=i.spacing(y);return"0px"!==_?{width:`calc(100% + ${Dd(_)})`,marginLeft:`-${Dd(_)}`,[`& > .${gm.item}`]:{paddingLeft:Dd(_)}}:null!=(x=g)&&x.includes(b)?{}:{width:"100%",marginLeft:0,[`& > .${gm.item}`]:{paddingLeft:0}}})}return f},function({theme:i,ownerState:o}){let a;return i.breakpoints.keys.reduce((u,f)=>{let p={};if(o[f]&&(a=o[f]),!a)return u;if(!0===a)p={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===a)p={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const g=is({values:o.columns,breakpoints:i.breakpoints.values}),y="object"==typeof g?g[f]:g;if(null==y)return u;const b=Math.round(a/y*1e8)/1e6+"%";let x={};if(o.container&&o.item&&0!==o.columnSpacing){const _=i.spacing(o.columnSpacing);if("0px"!==_){const E=`calc(${b} + ${Dd(_)})`;x={flexBasis:E,maxWidth:E}}}p=fe({flexBasis:b,flexGrow:0,maxWidth:b},x)}return 0===i.breakpoints.values[f]?Object.assign(u,p):u[i.breakpoints.up(f)]=p,u},{})}),tt=z.forwardRef(function(i,o){const a=Fn({props:i,name:"MuiGrid"}),{breakpoints:u}=ri(),f=ed(a),{className:p,columns:g,columnSpacing:y,component:b="div",container:x=!1,direction:_="row",item:E=!1,rowSpacing:D,spacing:I=0,wrap:C="wrap",zeroMinWidth:A=!1}=f,M=Ft(f,ZS),T=D||I,O=y||I,L=z.useContext(pm),F=x?g||12:L,P={},q=fe({},M);u.keys.forEach(X=>{null!=M[X]&&(P[X]=M[X],delete q[X])});const $=fe({},f,{columns:F,container:x,direction:_,item:E,rowSpacing:T,columnSpacing:O,wrap:C,zeroMinWidth:A,spacing:I},P,{breakpoints:u.keys}),Q=(i=>{const{classes:o,container:a,direction:u,item:f,spacing:p,wrap:g,zeroMinWidth:y,breakpoints:b}=i;let x=[];a&&(x=function(E,D){if(!E||E<=0)return[];if("string"==typeof E&&!Number.isNaN(Number(E))||"number"==typeof E)return[`spacing-xs-${String(E)}`];const I=[];return D.forEach(C=>{const A=E[C];if(Number(A)>0){const M=`spacing-${C}-${String(A)}`;I.push(M)}}),I}(p,b));const _=[];return b.forEach(E=>{const D=i[E];D&&_.push(`grid-${E}-${String(D)}`)}),Mn({root:["root",a&&"container",f&&"item",y&&"zeroMinWidth",...x,"row"!==u&&`direction-xs-${String(u)}`,"wrap"!==g&&`wrap-xs-${String(g)}`,..._]},nI,o)})($);return Ie.jsx(pm.Provider,{value:F,children:Ie.jsx(rI,fe({ownerState:$,className:At(Q.root,p),as:b,ref:o},q))})}),iI=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function kd(i){return`scale(${i}, ${Zo(i,2)})`}const cb={entering:{opacity:1,transform:kd(1)},entered:{opacity:1,transform:"none"}},ub="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ad=z.forwardRef(function(i,o){const{addEndListener:a,appear:u=!0,children:f,easing:p,in:g,onEnter:y,onEntered:b,onEntering:x,onExit:_,onExited:E,onExiting:D,style:I,timeout:C="auto",TransitionComponent:A=Ws}=i,M=Ft(i,iI),T=th(),O=z.useRef(),L=ri(),F=z.useRef(null),P=ti(F,ni(f),o),q=K=>U=>{if(K){const ne=F.current;void 0===U?K(ne):K(ne,U)}},$=q(x),Q=q((K,U)=>{Ki(K);const{duration:ne,delay:se,easing:he}=wo({style:I,timeout:C,easing:p},{mode:"enter"});let B;"auto"===C?(B=L.transitions.getAutoHeightDuration(K.clientHeight),O.current=B):B=ne,K.style.transition=[L.transitions.create("opacity",{duration:B,delay:se}),L.transitions.create("transform",{duration:ub?B:.666*B,delay:se,easing:he})].join(","),y&&y(K,U)}),X=q(b),ae=q(D),le=q(K=>{const{duration:U,delay:ne,easing:se}=wo({style:I,timeout:C,easing:p},{mode:"exit"});let he;"auto"===C?(he=L.transitions.getAutoHeightDuration(K.clientHeight),O.current=he):he=U,K.style.transition=[L.transitions.create("opacity",{duration:he,delay:ne}),L.transitions.create("transform",{duration:ub?he:.666*he,delay:ub?ne:ne||.333*he,easing:se})].join(","),K.style.opacity=0,K.style.transform=kd(.75),_&&_(K)}),oe=q(E);return Ie.jsx(A,fe({appear:u,in:g,nodeRef:F,onEnter:Q,onEntered:X,onEntering:$,onExit:le,onExited:oe,onExiting:ae,addEndListener:K=>{"auto"===C&&T.start(O.current||0,K),a&&a(F.current,K)},timeout:"auto"===C?null:C},M,{children:(K,U)=>z.cloneElement(f,fe({style:fe({opacity:0,transform:kd(.75),visibility:"exited"!==K||g?void 0:"hidden"},cb[K],I,f.props.style),ref:P},U))}))});function db(i){return kn("MuiIcon",i)}Ad.muiSupportAuto=!0,wn("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const JS=["baseClassName","className","color","component","fontSize"],SL=He("span",{name:"MuiIcon",slot:"Root",overridesResolver:(i,o)=>{const{ownerState:a}=i;return[o.root,"inherit"!==a.color&&o[`color${Ze(a.color)}`],o[`fontSize${Ze(a.fontSize)}`]]}})(({theme:i,ownerState:o})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:i.typography.pxToRem(20),medium:i.typography.pxToRem(24),large:i.typography.pxToRem(36)}[o.fontSize],color:{primary:(i.vars||i).palette.primary.main,secondary:(i.vars||i).palette.secondary.main,info:(i.vars||i).palette.info.main,success:(i.vars||i).palette.success.main,warning:(i.vars||i).palette.warning.main,action:(i.vars||i).palette.action.active,error:(i.vars||i).palette.error.main,disabled:(i.vars||i).palette.action.disabled,inherit:void 0}[o.color]})),oI=z.forwardRef(function(i,o){const a=Fn({props:i,name:"MuiIcon"}),{baseClassName:u="material-icons",className:f,color:p="inherit",component:g="span",fontSize:y="medium"}=a,b=Ft(a,JS),x=fe({},a,{baseClassName:u,color:p,component:g,fontSize:y}),_=(E=>{const{color:D,fontSize:I,classes:C}=E;return Mn({root:["root","inherit"!==D&&`color${Ze(D)}`,`fontSize${Ze(I)}`]},db,C)})(x);return Ie.jsx(SL,fe({as:g,className:At(u,"notranslate",_.root,f),ownerState:x,"aria-hidden":!0,ref:o},b))});function fb(i){return kn("MuiInputAdornment",i)}oI.muiName="Icon";const sI=wn("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var eE;const tE=["children","className","component","disablePointerEvents","disableTypography","position","variant"],nE=He("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(i,o)=>{const{ownerState:a}=i;return[o.root,o[`position${Ze(a.position)}`],!0===a.disablePointerEvents&&o.disablePointerEvents,o[a.variant]]}})(({theme:i,ownerState:o})=>fe({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(i.vars||i).palette.action.active},"filled"===o.variant&&{[`&.${sI.positionStart}&:not(.${sI.hiddenLabel})`]:{marginTop:16}},"start"===o.position&&{marginRight:8},"end"===o.position&&{marginLeft:8},!0===o.disablePointerEvents&&{pointerEvents:"none"})),hb=z.forwardRef(function(i,o){const a=Fn({props:i,name:"MuiInputAdornment"}),{children:u,className:f,component:p="div",disablePointerEvents:g=!1,disableTypography:y=!1,position:b,variant:x}=a,_=Ft(a,tE),E=cm()||{};let D=x;E&&!D&&(D=E.variant);const I=fe({},a,{hiddenLabel:E.hiddenLabel,size:E.size,disablePointerEvents:g,position:b,variant:D}),C=(A=>{const{classes:M,disablePointerEvents:T,hiddenLabel:O,position:L,size:F,variant:P}=A;return Mn({root:["root",T&&"disablePointerEvents",L&&`position${Ze(L)}`,P,O&&"hiddenLabel",F&&`size${Ze(F)}`]},fb,M)})(I);return Ie.jsx(lm.Provider,{value:null,children:Ie.jsx(nE,fe({as:p,ownerState:I,className:At(C.root,f),ref:o},_,{children:"string"!=typeof u||y?Ie.jsxs(z.Fragment,{children:["start"===b?eE||(eE=Ie.jsx("span",{className:"notranslate",children:"\u200b"})):null,u]}):Ie.jsx(Gn,{color:"text.secondary",children:u})}))})}),Wa=z.createContext({});function rE(i){return kn("MuiList",i)}wn("MuiList",["root","padding","dense","subheader"]);const Ka=["children","className","component","dense","disablePadding","subheader"],mm=He("ul",{name:"MuiList",slot:"Root",overridesResolver:(i,o)=>{const{ownerState:a}=i;return[o.root,!a.disablePadding&&o.padding,a.dense&&o.dense,a.subheader&&o.subheader]}})(({ownerState:i})=>fe({listStyle:"none",margin:0,padding:0,position:"relative"},!i.disablePadding&&{paddingTop:8,paddingBottom:8},i.subheader&&{paddingTop:0})),pb=z.forwardRef(function(i,o){const a=Fn({props:i,name:"MuiList"}),{children:u,className:f,component:p="ul",dense:g=!1,disablePadding:y=!1,subheader:b}=a,x=Ft(a,Ka),_=z.useMemo(()=>({dense:g}),[g]),E=fe({},a,{component:p,dense:g,disablePadding:y}),D=(I=>{const{classes:C,disablePadding:A,dense:M,subheader:T}=I;return Mn({root:["root",!A&&"padding",M&&"dense",T&&"subheader"]},rE,C)})(E);return Ie.jsx(Wa.Provider,{value:_,children:Ie.jsxs(mm,fe({as:p,className:At(D.root,f),ref:o,ownerState:E},x,{children:[b,u]}))})});function aI(i){return kn("MuiListItem",i)}const Ah=wn("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),gb=wn("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function iE(i){return kn("MuiListItemSecondaryAction",i)}wn("MuiListItemSecondaryAction",["root","disableGutters"]);const mb=["className"],Rh=He("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(i,o)=>{const{ownerState:a}=i;return[o.root,a.disableGutters&&o.disableGutters]}})(({ownerState:i})=>fe({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},i.disableGutters&&{right:0})),oE=z.forwardRef(function(i,o){const a=Fn({props:i,name:"MuiListItemSecondaryAction"}),{className:u}=a,f=Ft(a,mb),p=fe({},a,{disableGutters:z.useContext(Wa).disableGutters}),g=(y=>{const{disableGutters:b,classes:x}=y;return Mn({root:["root",b&&"disableGutters"]},iE,x)})(p);return Ie.jsx(Rh,fe({className:At(g.root,u),ownerState:p,ref:o},f))});oE.muiName="ListItemSecondaryAction";const yb=["className"],sE=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],aE=He("div",{name:"MuiListItem",slot:"Root",overridesResolver:(i,o)=>{const{ownerState:a}=i;return[o.root,a.dense&&o.dense,"flex-start"===a.alignItems&&o.alignItemsFlexStart,a.divider&&o.divider,!a.disableGutters&&o.gutters,!a.disablePadding&&o.padding,a.button&&o.button,a.hasSecondaryAction&&o.secondaryAction]}})(({theme:i,ownerState:o})=>fe({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!o.disablePadding&&fe({paddingTop:8,paddingBottom:8},o.dense&&{paddingTop:4,paddingBottom:4},!o.disableGutters&&{paddingLeft:16,paddingRight:16},!!o.secondaryAction&&{paddingRight:48}),!!o.secondaryAction&&{[`& > .${gb.root}`]:{paddingRight:48}},{[`&.${Ah.focusVisible}`]:{backgroundColor:(i.vars||i).palette.action.focus},[`&.${Ah.selected}`]:{backgroundColor:i.vars?`rgba(${i.vars.palette.primary.mainChannel} / ${i.vars.palette.action.selectedOpacity})`:or.alpha(i.palette.primary.main,i.palette.action.selectedOpacity),[`&.${Ah.focusVisible}`]:{backgroundColor:i.vars?`rgba(${i.vars.palette.primary.mainChannel} / calc(${i.vars.palette.action.selectedOpacity} + ${i.vars.palette.action.focusOpacity}))`:or.alpha(i.palette.primary.main,i.palette.action.selectedOpacity+i.palette.action.focusOpacity)}},[`&.${Ah.disabled}`]:{opacity:(i.vars||i).palette.action.disabledOpacity}},"flex-start"===o.alignItems&&{alignItems:"flex-start"},o.divider&&{borderBottom:`1px solid ${(i.vars||i).palette.divider}`,backgroundClip:"padding-box"},o.button&&{transition:i.transitions.create("background-color",{duration:i.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(i.vars||i).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ah.selected}:hover`]:{backgroundColor:i.vars?`rgba(${i.vars.palette.primary.mainChannel} / calc(${i.vars.palette.action.selectedOpacity} + ${i.vars.palette.action.hoverOpacity}))`:or.alpha(i.palette.primary.main,i.palette.action.selectedOpacity+i.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:i.vars?`rgba(${i.vars.palette.primary.mainChannel} / ${i.vars.palette.action.selectedOpacity})`:or.alpha(i.palette.primary.main,i.palette.action.selectedOpacity)}}},o.hasSecondaryAction&&{paddingRight:48})),lE=He("li",{name:"MuiListItem",slot:"Container",overridesResolver:(i,o)=>o.container})({position:"relative"}),vb=z.forwardRef(function(i,o){const a=Fn({props:i,name:"MuiListItem"}),{alignItems:u="center",autoFocus:f=!1,button:p=!1,children:g,className:y,component:b,components:x={},componentsProps:_={},ContainerComponent:E="li",ContainerProps:{className:D}={},dense:I=!1,disabled:C=!1,disableGutters:A=!1,disablePadding:M=!1,divider:T=!1,focusVisibleClassName:O,secondaryAction:L,selected:F=!1,slotProps:P={},slots:q={}}=a,$=Ft(a.ContainerProps,yb),Q=Ft(a,sE),X=z.useContext(Wa),ae=z.useMemo(()=>({dense:I||X.dense||!1,alignItems:u,disableGutters:A}),[u,X.dense,I,A]),le=z.useRef(null);po(()=>{f&&le.current&&le.current.focus()},[f]);const oe=z.Children.toArray(g),K=oe.length&&Rc(oe[oe.length-1],["ListItemSecondaryAction"]),U=fe({},a,{alignItems:u,autoFocus:f,button:p,dense:ae.dense,disabled:C,disableGutters:A,disablePadding:M,divider:T,hasSecondaryAction:K,selected:F}),ne=(re=>{const{alignItems:te,button:ce,classes:ye,dense:Se,disabled:Ae,disableGutters:Le,disablePadding:Ne,divider:Ve,hasSecondaryAction:Re,selected:Me}=re;return Mn({root:["root",Se&&"dense",!Le&&"gutters",!Ne&&"padding",Ve&&"divider",Ae&&"disabled",ce&&"button","flex-start"===te&&"alignItemsFlexStart",Re&&"secondaryAction",Me&&"selected"],container:["container"]},aI,ye)})(U),se=ti(le,o),he=q.root||x.Root||aE,B=P.root||_.root||{},G=fe({className:At(ne.root,B.className,y),disabled:C},Q);let Z=b||"li";return p&&(G.component=b||"div",G.focusVisibleClassName=At(Ah.focusVisible,O),Z=Va),K?(Z=G.component||b?Z:"div","li"===E&&("li"===Z?Z="div":"li"===G.component&&(G.component="div")),Ie.jsx(Wa.Provider,{value:ae,children:Ie.jsxs(lE,fe({as:E,className:At(ne.container,D),ref:se,ownerState:U},$,{children:[Ie.jsx(he,fe({},B,!Fa(he)&&{as:Z,ownerState:fe({},U,B.ownerState)},G,{children:oe})),oe.pop()]}))})):Ie.jsx(Wa.Provider,{value:ae,children:Ie.jsxs(he,fe({},B,{as:Z,ref:se},!Fa(he)&&{ownerState:fe({},U,B.ownerState)},G,{children:[oe,L&&Ie.jsx(oE,{children:L})]}))})});function bb(i){return kn("MuiListItemIcon",i)}const cE=wn("MuiListItemIcon",["root","alignItemsFlexStart"]),lI=["className"],uE=He("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(i,o)=>{const{ownerState:a}=i;return[o.root,"flex-start"===a.alignItems&&o.alignItemsFlexStart]}})(({theme:i,ownerState:o})=>fe({minWidth:56,color:(i.vars||i).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===o.alignItems&&{marginTop:8})),Rd=z.forwardRef(function(i,o){const a=Fn({props:i,name:"MuiListItemIcon"}),{className:u}=a,f=Ft(a,lI),p=fe({},a,{alignItems:z.useContext(Wa).alignItems}),g=(y=>{const{alignItems:b,classes:x}=y;return Mn({root:["root","flex-start"===b&&"alignItemsFlexStart"]},bb,x)})(p);return Ie.jsx(uE,fe({className:At(g.root,u),ownerState:p,ref:o},f))}),wb=wn("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),cI=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function xb(i,o,a){return i===o?i.firstChild:o&&o.nextElementSibling?o.nextElementSibling:a?null:i.firstChild}function zc(i,o,a){return i===o?a?i.firstChild:i.lastChild:o&&o.previousElementSibling?o.previousElementSibling:a?null:i.lastChild}function dE(i,o){if(void 0===o)return!0;let a=i.innerText;return void 0===a&&(a=i.textContent),a=a.trim().toLowerCase(),0!==a.length&&(o.repeating?a[0]===o.keys[0]:0===a.indexOf(o.keys.join("")))}function Ih(i,o,a,u,f,p){let g=!1,y=f(i,o,!!o&&a);for(;y;){if(y===i.firstChild){if(g)return!1;g=!0}const b=!u&&(y.disabled||"true"===y.getAttribute("aria-disabled"));if(y.hasAttribute("tabindex")&&dE(y,p)&&!b)return y.focus(),!0;y=f(i,y,a)}return!1}const uI=z.forwardRef(function(i,o){const{actions:a,autoFocus:u=!1,autoFocusItem:f=!1,children:p,className:g,disabledItemsFocusable:y=!1,disableListWrap:b=!1,onKeyDown:x,variant:_="selectedMenu"}=i,E=Ft(i,cI),D=z.useRef(null),I=z.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});po(()=>{u&&D.current.focus()},[u]),z.useImperativeHandle(a,()=>({adjustStyleForScrollbar:(T,{direction:O})=>{if(T.clientHeight<D.current.clientHeight&&!D.current.style.width){const F=`${mo(jr(T))}px`;D.current.style["rtl"===O?"paddingLeft":"paddingRight"]=F,D.current.style.width=`calc(100% + ${F})`}return D.current}}),[]);const C=ti(D,o);let A=-1;z.Children.forEach(p,(T,O)=>{z.isValidElement(T)?(T.props.disabled||("selectedMenu"===_&&T.props.selected||-1===A)&&(A=O),A===O&&(T.props.disabled||T.props.muiSkipListHighlight||T.type.muiSkipListHighlight)&&(A+=1,A>=p.length&&(A=-1))):A===O&&(A+=1,A>=p.length&&(A=-1))});const M=z.Children.map(p,(T,O)=>{if(O===A){const L={};return f&&(L.autoFocus=!0),void 0===T.props.tabIndex&&"selectedMenu"===_&&(L.tabIndex=0),z.cloneElement(T,L)}return T});return Ie.jsx(pb,fe({role:"menu",ref:C,className:g,onKeyDown:T=>{const O=D.current,L=T.key,F=jr(O).activeElement;if("ArrowDown"===L)T.preventDefault(),Ih(O,F,b,y,xb);else if("ArrowUp"===L)T.preventDefault(),Ih(O,F,b,y,zc);else if("Home"===L)T.preventDefault(),Ih(O,null,b,y,xb);else if("End"===L)T.preventDefault(),Ih(O,null,b,y,zc);else if(1===L.length){const P=I.current,q=L.toLowerCase(),$=performance.now();P.keys.length>0&&($-P.lastTime>500?(P.keys=[],P.repeating=!0,P.previousKeyMatched=!0):P.repeating&&q!==P.keys[0]&&(P.repeating=!1)),P.lastTime=$,P.keys.push(q);const Q=F&&!P.repeating&&dE(F,P);P.previousKeyMatched&&(Q||Ih(O,F,!1,y,xb,P))?T.preventDefault():P.previousKeyMatched=!1}x&&x(T)},tabIndex:u?0:-1},E,{children:M}))});function dI(i){return kn("MuiPopover",i)}wn("MuiPopover",["root","paper"]);const Yi=["onEntering"],_b=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],fE=["slotProps"];function Sb(i,o){let a=0;return"number"==typeof o?a=o:"center"===o?a=i.height/2:"bottom"===o&&(a=i.height),a}function Eb(i,o){let a=0;return"number"==typeof o?a=o:"center"===o?a=i.width/2:"right"===o&&(a=i.width),a}function Cb(i){return[i.horizontal,i.vertical].map(o=>"number"==typeof o?`${o}px`:o).join(" ")}function Db(i){return"function"==typeof i?i():i}const fI=He(ab,{name:"MuiPopover",slot:"Root",overridesResolver:(i,o)=>o.root})({}),hI=He(j0,{name:"MuiPopover",slot:"Paper",overridesResolver:(i,o)=>o.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Mh=z.forwardRef(function(i,o){var a,u,f;const p=Fn({props:i,name:"MuiPopover"}),{action:g,anchorEl:y,anchorOrigin:b={vertical:"top",horizontal:"left"},anchorPosition:x,anchorReference:_="anchorEl",children:E,className:D,container:I,elevation:C=8,marginThreshold:A=16,open:M,PaperProps:T={},slots:O,slotProps:L,transformOrigin:F={vertical:"top",horizontal:"left"},TransitionComponent:P=Ad,transitionDuration:q="auto",TransitionProps:{onEntering:$}={},disableScrollLock:Q=!1}=p,X=Ft(p.TransitionProps,Yi),ae=Ft(p,_b),le=null!=(a=null==L?void 0:L.paper)?a:T,oe=z.useRef(),K=ti(oe,le.ref),U=fe({},p,{anchorOrigin:b,anchorReference:_,elevation:C,marginThreshold:A,externalPaperSlotProps:le,transformOrigin:F,TransitionComponent:P,transitionDuration:q,TransitionProps:X}),ne=(Re=>{const{classes:Me}=Re;return Mn({root:["root"],paper:["paper"]},dI,Me)})(U),se=z.useCallback(()=>{if("anchorPosition"===_)return x;const Re=Db(y),Me=(Re&&1===Re.nodeType?Re:jr(oe.current).body).getBoundingClientRect();return{top:Me.top+Sb(Me,b.vertical),left:Me.left+Eb(Me,b.horizontal)}},[y,b.horizontal,b.vertical,x,_]),he=z.useCallback(Re=>({vertical:Sb(Re,F.vertical),horizontal:Eb(Re,F.horizontal)}),[F.horizontal,F.vertical]),B=z.useCallback(Re=>{const Me={width:Re.offsetWidth,height:Re.offsetHeight},nt=he(Me);if("none"===_)return{top:null,left:null,transformOrigin:Cb(nt)};const Ge=se();let yt=Ge.top-nt.vertical,Rt=Ge.left-nt.horizontal;const Bt=yt+Me.height,ze=Rt+Me.width,It=go(Db(y)),ct=It.innerHeight-A,Ht=It.innerWidth-A;if(null!==A&&yt<A){const xt=yt-A;yt-=xt,nt.vertical+=xt}else if(null!==A&&Bt>ct){const xt=Bt-ct;yt-=xt,nt.vertical+=xt}if(null!==A&&Rt<A){const xt=Rt-A;Rt-=xt,nt.horizontal+=xt}else if(ze>Ht){const xt=ze-Ht;Rt-=xt,nt.horizontal+=xt}return{top:`${Math.round(yt)}px`,left:`${Math.round(Rt)}px`,transformOrigin:Cb(nt)}},[y,_,se,he,A]),[G,Z]=z.useState(M),re=z.useCallback(()=>{const Re=oe.current;if(!Re)return;const Me=B(Re);null!==Me.top&&(Re.style.top=Me.top),null!==Me.left&&(Re.style.left=Me.left),Re.style.transformOrigin=Me.transformOrigin,Z(!0)},[B]);z.useEffect(()=>(Q&&window.addEventListener("scroll",re),()=>window.removeEventListener("scroll",re)),[y,Q,re]),z.useEffect(()=>{M&&re()}),z.useImperativeHandle(g,()=>M?{updatePosition:()=>{re()}}:null,[M,re]),z.useEffect(()=>{if(!M)return;const Re=Jf(()=>{re()}),Me=go(y);return Me.addEventListener("resize",Re),()=>{Re.clear(),Me.removeEventListener("resize",Re)}},[y,M,re]);let te=q;"auto"!==q||P.muiSupportAuto||(te=void 0);const ce=I||(y?jr(Db(y)).body:void 0),ye=null!=(u=null==O?void 0:O.root)?u:fI,Se=null!=(f=null==O?void 0:O.paper)?f:hI,Ae=Il({elementType:Se,externalSlotProps:fe({},le,{style:G?le.style:fe({},le.style,{opacity:0})}),additionalProps:{elevation:C,ref:K},ownerState:U,className:At(ne.paper,null==le?void 0:le.className)}),Le=Il({elementType:ye,externalSlotProps:(null==L?void 0:L.root)||{},externalForwardedProps:ae,additionalProps:{ref:o,slotProps:{backdrop:{invisible:!0}},container:ce,open:M},ownerState:U,className:At(ne.root,D)}),{slotProps:Ne}=Le,Ve=Ft(Le,fE);return Ie.jsx(ye,fe({},Ve,!Fa(ye)&&{slotProps:Ne,disableScrollLock:Q},{children:Ie.jsx(P,fe({appear:!0,in:M,onEntering:(Re,Me)=>{$&&$(Re,Me),re()},onExited:()=>{Z(!1)},timeout:te},X,{children:Ie.jsx(Se,fe({},Ae,{children:E}))}))}))});function hE(i){return kn("MuiMenuItem",i)}const ym=wn("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),pE=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],pI=He(Va,{shouldForwardProp:i=>ss(i)||"classes"===i,name:"MuiMenuItem",slot:"Root",overridesResolver:(i,o)=>{const{ownerState:a}=i;return[o.root,a.dense&&o.dense,a.divider&&o.divider,!a.disableGutters&&o.gutters]}})(({theme:i,ownerState:o})=>fe({},i.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!o.disableGutters&&{paddingLeft:16,paddingRight:16},o.divider&&{borderBottom:`1px solid ${(i.vars||i).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(i.vars||i).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ym.selected}`]:{backgroundColor:i.vars?`rgba(${i.vars.palette.primary.mainChannel} / ${i.vars.palette.action.selectedOpacity})`:or.alpha(i.palette.primary.main,i.palette.action.selectedOpacity),[`&.${ym.focusVisible}`]:{backgroundColor:i.vars?`rgba(${i.vars.palette.primary.mainChannel} / calc(${i.vars.palette.action.selectedOpacity} + ${i.vars.palette.action.focusOpacity}))`:or.alpha(i.palette.primary.main,i.palette.action.selectedOpacity+i.palette.action.focusOpacity)}},[`&.${ym.selected}:hover`]:{backgroundColor:i.vars?`rgba(${i.vars.palette.primary.mainChannel} / calc(${i.vars.palette.action.selectedOpacity} + ${i.vars.palette.action.hoverOpacity}))`:or.alpha(i.palette.primary.main,i.palette.action.selectedOpacity+i.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:i.vars?`rgba(${i.vars.palette.primary.mainChannel} / ${i.vars.palette.action.selectedOpacity})`:or.alpha(i.palette.primary.main,i.palette.action.selectedOpacity)}},[`&.${ym.focusVisible}`]:{backgroundColor:(i.vars||i).palette.action.focus},[`&.${ym.disabled}`]:{opacity:(i.vars||i).palette.action.disabledOpacity},[`& + .${GS.root}`]:{marginTop:i.spacing(1),marginBottom:i.spacing(1)},[`& + .${GS.inset}`]:{marginLeft:52},[`& .${wb.root}`]:{marginTop:0,marginBottom:0},[`& .${wb.inset}`]:{paddingLeft:36},[`& .${cE.root}`]:{minWidth:36}},!o.dense&&{[i.breakpoints.up("sm")]:{minHeight:"auto"}},o.dense&&fe({minHeight:32,paddingTop:4,paddingBottom:4},i.typography.body2,{[`& .${cE.root} svg`]:{fontSize:"1.25rem"}}))),gI=z.forwardRef(function(i,o){const a=Fn({props:i,name:"MuiMenuItem"}),{autoFocus:u=!1,component:f="li",dense:p=!1,divider:g=!1,disableGutters:y=!1,focusVisibleClassName:b,role:x="menuitem",tabIndex:_,className:E}=a,D=Ft(a,pE),I=z.useContext(Wa),C=z.useMemo(()=>({dense:p||I.dense||!1,disableGutters:y}),[I.dense,p,y]),A=z.useRef(null);po(()=>{u&&A.current&&A.current.focus()},[u]);const M=fe({},a,{dense:C.dense,divider:g,disableGutters:y}),T=(F=>{const{disabled:P,dense:q,divider:$,disableGutters:Q,selected:X,classes:ae}=F;return fe({},ae,Mn({root:["root",q&&"dense",P&&"disabled",!Q&&"gutters",$&&"divider",X&&"selected"]},hE,ae))})(a),O=ti(A,o);let L;return a.disabled||(L=void 0!==_?_:-1),Ie.jsx(Wa.Provider,{value:C,children:Ie.jsx(pI,fe({ref:O,role:x,tabIndex:L,component:f,focusVisibleClassName:At(T.focusVisible,b),className:At(T.root,E)},D,{ownerState:M,classes:T}))})});var mI;const EL=["children","classes","className","label","notched"],kb=He("fieldset",{shouldForwardProp:ss})({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%"}),yI=He("legend",{shouldForwardProp:ss})(({ownerState:i,theme:o})=>fe({float:"unset",width:"auto",overflow:"hidden"},!i.withLabel&&{padding:0,lineHeight:"11px",transition:o.transitions.create("width",{duration:150,easing:o.transitions.easing.easeOut})},i.withLabel&&fe({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:o.transitions.create("max-width",{duration:50,easing:o.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},i.notched&&{maxWidth:"100%",transition:o.transitions.create("max-width",{duration:100,easing:o.transitions.easing.easeOut,delay:50})}))),gE=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],mE=He(TS,{shouldForwardProp:i=>ss(i)||"classes"===i,name:"MuiOutlinedInput",slot:"Root",overridesResolver:jR})(({theme:i,ownerState:o})=>fe({position:"relative",borderRadius:(i.vars||i).shape.borderRadius,[`&:hover .${Nl.notchedOutline}`]:{borderColor:(i.vars||i).palette.text.primary},"@media (hover: none)":{[`&:hover .${Nl.notchedOutline}`]:{borderColor:i.vars?`rgba(${i.vars.palette.common.onBackgroundChannel} / 0.23)`:"light"===i.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}},[`&.${Nl.focused} .${Nl.notchedOutline}`]:{borderColor:(i.vars||i).palette[o.color].main,borderWidth:2},[`&.${Nl.error} .${Nl.notchedOutline}`]:{borderColor:(i.vars||i).palette.error.main},[`&.${Nl.disabled} .${Nl.notchedOutline}`]:{borderColor:(i.vars||i).palette.action.disabled}},o.startAdornment&&{paddingLeft:14},o.endAdornment&&{paddingRight:14},o.multiline&&fe({padding:"16.5px 14px"},"small"===o.size&&{padding:"8.5px 14px"}))),CL=He(function(i){const{className:o,label:a,notched:u}=i,f=Ft(i,EL),p=null!=a&&""!==a,g=fe({},i,{notched:u,withLabel:p});return Ie.jsx(kb,fe({"aria-hidden":!0,className:o,ownerState:g},f,{children:Ie.jsx(yI,{ownerState:g,children:p?Ie.jsx("span",{children:a}):mI||(mI=Ie.jsx("span",{className:"notranslate",children:"\u200b"}))})}))},{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(i,o)=>o.notchedOutline})(({theme:i})=>({borderColor:i.vars?`rgba(${i.vars.palette.common.onBackgroundChannel} / 0.23)`:"light"===i.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"})),fs=He(OS,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:MS})(({theme:i,ownerState:o})=>fe({padding:"16.5px 14px"},!i.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===i.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===i.palette.mode?null:"#fff",caretColor:"light"===i.palette.mode?null:"#fff",borderRadius:"inherit"}},i.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[i.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===o.size&&{padding:"8.5px 14px"},o.multiline&&{padding:0},o.startAdornment&&{paddingLeft:0},o.endAdornment&&{paddingRight:0})),vI=z.forwardRef(function(i,o){var a,u,f,p,g;const y=Fn({props:i,name:"MuiOutlinedInput"}),{components:b={},fullWidth:x=!1,inputComponent:_="input",label:E,multiline:D=!1,notched:I,slots:C={},type:A="text"}=y,M=Ft(y,gE),T=($=>{const{classes:Q}=$;return fe({},Q,Mn({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},cL,Q))})(y),O=cm(),L=IS({props:y,muiFormControl:O,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),F=fe({},y,{color:L.color||"primary",disabled:L.disabled,error:L.error,focused:L.focused,formControl:O,fullWidth:x,hiddenLabel:L.hiddenLabel,multiline:D,size:L.size,type:A}),P=null!=(a=null!=(u=C.root)?u:b.Root)?a:mE,q=null!=(f=null!=(p=C.input)?p:b.Input)?f:fs;return Ie.jsx(LS,fe({slots:{root:P,input:q},renderSuffix:$=>Ie.jsx(CL,{ownerState:F,className:T.notchedOutline,label:null!=E&&""!==E&&L.required?g||(g=Ie.jsxs(z.Fragment,{children:[E,"\u2009","*"]})):E,notched:void 0!==I?I:Boolean($.startAdornment||$.filled||$.focused)}),fullWidth:x,inputComponent:_,multiline:D,ref:o,type:A},M,{classes:fe({},T,{notchedOutline:null})}))});vI.muiName="Input";var DL=md(Ie.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),yE=md(Ie.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked");const vE=He("span",{shouldForwardProp:ss})({position:"relative",display:"flex"}),bE=He(DL)({transform:"scale(1)"}),bI=He(yE)(({theme:i,ownerState:o})=>fe({left:0,position:"absolute",transform:"scale(0)",transition:i.transitions.create("transform",{easing:i.transitions.easing.easeIn,duration:i.transitions.duration.shortest})},o.checked&&{transform:"scale(1)",transition:i.transitions.create("transform",{easing:i.transitions.easing.easeOut,duration:i.transitions.duration.shortest})}));function wI(i){const{checked:o=!1,classes:a={},fontSize:u}=i,f=fe({},i,{checked:o});return Ie.jsxs(vE,{className:a.root,ownerState:f,children:[Ie.jsx(bE,{fontSize:u,className:a.background,ownerState:f}),Ie.jsx(bI,{fontSize:u,className:a.dot,ownerState:f})]})}const wE=z.createContext(void 0);function jt(i){return kn("MuiRadio",i)}const xE=wn("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),Ab=["checked","checkedIcon","color","icon","name","onChange","size","className"],xI=He(Z0,{shouldForwardProp:i=>ss(i)||"classes"===i,name:"MuiRadio",slot:"Root",overridesResolver:(i,o)=>{const{ownerState:a}=i;return[o.root,"medium"!==a.size&&o[`size${Ze(a.size)}`],o[`color${Ze(a.color)}`]]}})(({theme:i,ownerState:o})=>fe({color:(i.vars||i).palette.text.secondary},!o.disableRipple&&{"&:hover":{backgroundColor:i.vars?`rgba(${"default"===o.color?i.vars.palette.action.activeChannel:i.vars.palette[o.color].mainChannel} / ${i.vars.palette.action.hoverOpacity})`:or.alpha("default"===o.color?i.palette.action.active:i.palette[o.color].main,i.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==o.color&&{[`&.${xE.checked}`]:{color:(i.vars||i).palette[o.color].main}},{[`&.${xE.disabled}`]:{color:(i.vars||i).palette.action.disabled}})),_E=Ie.jsx(wI,{checked:!0}),SE=Ie.jsx(wI,{}),_I=z.forwardRef(function(i,o){var a,u;const f=Fn({props:i,name:"MuiRadio"}),{checked:p,checkedIcon:g=_E,color:y="primary",icon:b=SE,name:x,onChange:_,size:E="medium",className:D}=f,I=Ft(f,Ab),C=fe({},f,{color:y,size:E}),A=(F=>{const{classes:P,color:q,size:$}=F;return fe({},P,Mn({root:["root",`color${Ze(q)}`,"medium"!==$&&`size${Ze($)}`]},jt,P))})(C),M=z.useContext(wE);let T=p;const O=rd(_,M&&M.onChange);let L=x;return M&&(void 0===T&&(F=M.value,T="object"==typeof(P=f.value)&&null!==P?F===P:String(F)===String(P)),void 0===L&&(L=M.name)),Ie.jsx(xI,fe({type:"radio",icon:z.cloneElement(b,{fontSize:null!=(a=SE.props.fontSize)?a:E}),checkedIcon:z.cloneElement(g,{fontSize:null!=(u=_E.props.fontSize)?u:E}),ownerState:C,classes:A,name:L,checked:T,onChange:O,ref:o,className:At(A.root,D)},I));var F,P});function SI(i){return kn("MuiTooltip",i)}const Bl=wn("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),vm=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"],Id=He(am,{name:"MuiTooltip",slot:"Popper",overridesResolver:(i,o)=>{const{ownerState:a}=i;return[o.popper,!a.disableInteractive&&o.popperInteractive,a.arrow&&o.popperArrow,!a.open&&o.popperClose]}})(({theme:i,ownerState:o,open:a})=>fe({zIndex:(i.vars||i).zIndex.tooltip,pointerEvents:"none"},!o.disableInteractive&&{pointerEvents:"auto"},!a&&{pointerEvents:"none"},o.arrow&&{[`&[data-popper-placement*="bottom"] .${Bl.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Bl.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Bl.arrow}`]:fe({},o.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Bl.arrow}`]:fe({},o.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),EI=He("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(i,o)=>{const{ownerState:a}=i;return[o.tooltip,a.touch&&o.touch,a.arrow&&o.tooltipArrow,o[`tooltipPlacement${Ze(a.placement.split("-")[0])}`]]}})(({theme:i,ownerState:o})=>fe({backgroundColor:i.vars?i.vars.palette.Tooltip.bg:or.alpha(i.palette.grey[700],.92),borderRadius:(i.vars||i).shape.borderRadius,color:(i.vars||i).palette.common.white,fontFamily:i.typography.fontFamily,padding:"4px 8px",fontSize:i.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:i.typography.fontWeightMedium},o.arrow&&{position:"relative",margin:0},o.touch&&{padding:"8px 16px",fontSize:i.typography.pxToRem(14),lineHeight:(16/14,Math.round(114285.71428571428)/1e5+"em"),fontWeight:i.typography.fontWeightRegular},{[`.${Bl.popper}[data-popper-placement*="left"] &`]:fe({transformOrigin:"right center"},o.isRtl?fe({marginLeft:"14px"},o.touch&&{marginLeft:"24px"}):fe({marginRight:"14px"},o.touch&&{marginRight:"24px"})),[`.${Bl.popper}[data-popper-placement*="right"] &`]:fe({transformOrigin:"left center"},o.isRtl?fe({marginRight:"14px"},o.touch&&{marginRight:"24px"}):fe({marginLeft:"14px"},o.touch&&{marginLeft:"24px"})),[`.${Bl.popper}[data-popper-placement*="top"] &`]:fe({transformOrigin:"center bottom",marginBottom:"14px"},o.touch&&{marginBottom:"24px"}),[`.${Bl.popper}[data-popper-placement*="bottom"] &`]:fe({transformOrigin:"center top",marginTop:"14px"},o.touch&&{marginTop:"24px"})})),Th=He("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(i,o)=>o.arrow})(({theme:i})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:i.vars?i.vars.palette.Tooltip.bg:or.alpha(i.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let bm=!1;const EE=new qg;let qc={x:0,y:0};function Co(i,o){return(a,...u)=>{o&&o(a,...u),i(a,...u)}}const zl=z.forwardRef(function(i,o){var a,u,f,p,g,y,b,x,_,E,D,I,C,A,M,T,O,L,F;const P=Fn({props:i,name:"MuiTooltip"}),{arrow:q=!1,children:$,components:Q={},componentsProps:X={},describeChild:ae=!1,disableFocusListener:le=!1,disableHoverListener:oe=!1,disableInteractive:K=!1,disableTouchListener:U=!1,enterDelay:ne=100,enterNextDelay:se=0,enterTouchDelay:he=700,followCursor:B=!1,id:G,leaveDelay:Z=0,leaveTouchDelay:re=1500,onClose:te,onOpen:ce,open:ye,placement:Se="bottom",PopperComponent:Ae,PopperProps:Le={},slotProps:Ne={},slots:Ve={},title:Re,TransitionComponent:Me=Ad,TransitionProps:nt}=P,Ge=Ft(P,vm),yt=z.isValidElement($)?$:Ie.jsx("span",{children:$}),Rt=ri(),Bt=(()=>{const Lt=z.useContext(F_);return null!=Lt&&Lt})(),[ze,It]=z.useState(),[ct,Ht]=z.useState(null),xt=z.useRef(!1),st=K||B,ft=th(),ht=th(),at=th(),gt=th(),[$e,Ke]=f0({controlled:ye,default:!1,name:"Tooltip",state:"open"});let hn=$e;const zn=jA(G),qn=z.useRef(),gr=Ot(()=>{void 0!==qn.current&&(document.body.style.WebkitUserSelect=qn.current,qn.current=void 0),gt.clear()});z.useEffect(()=>gr,[gr]);const Ir=Lt=>{EE.clear(),bm=!0,Ke(!0),ce&&!hn&&ce(Lt)},Mr=Ot(Lt=>{EE.start(800+Z,()=>{bm=!1}),Ke(!1),te&&hn&&te(Lt),ft.start(Rt.transitions.duration.shortest,()=>{xt.current=!1})}),pn=Lt=>{xt.current&&"touchstart"!==Lt.type||(ze&&ze.removeAttribute("title"),ht.clear(),at.clear(),ne||bm&&se?ht.start(bm?se:ne,()=>{Ir(Lt)}):Ir(Lt))},nn=Lt=>{ht.clear(),at.start(Z,()=>{Mr(Lt)})},{isFocusVisibleRef:Jt,onBlur:mn,onFocus:gn,ref:yn}=p0(),[,rt]=z.useState(!1),_t=Lt=>{mn(Lt),!1===Jt.current&&(rt(!1),nn(Lt))},Gt=Lt=>{ze||It(Lt.currentTarget),gn(Lt),!0===Jt.current&&(rt(!0),pn(Lt))},bt=Lt=>{xt.current=!0;const Pt=yt.props;Pt.onTouchStart&&Pt.onTouchStart(Lt)};z.useEffect(()=>{if(hn)return document.addEventListener("keydown",Lt),()=>{document.removeEventListener("keydown",Lt)};function Lt(Pt){"Escape"!==Pt.key&&"Esc"!==Pt.key||Mr(Pt)}},[Mr,hn]);const Un=ti(ni(yt),yn,It,o);Re||0===Re||(hn=!1);const Tn=z.useRef(),jn={},zt="string"==typeof Re;ae?(jn.title=hn||!zt||oe?null:Re,jn["aria-describedby"]=hn?zn:null):(jn["aria-label"]=zt?Re:null,jn["aria-labelledby"]=hn&&!zt?zn:null);const vn=fe({},jn,Ge,yt.props,{className:At(Ge.className,yt.props.className),onTouchStart:bt,ref:Un},B?{onMouseMove:Lt=>{const Pt=yt.props;Pt.onMouseMove&&Pt.onMouseMove(Lt),qc={x:Lt.clientX,y:Lt.clientY},Tn.current&&Tn.current.update()}}:{}),Bn={};U||(vn.onTouchStart=Lt=>{bt(Lt),at.clear(),ft.clear(),gr(),qn.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",gt.start(he,()=>{document.body.style.WebkitUserSelect=qn.current,pn(Lt)})},vn.onTouchEnd=Lt=>{yt.props.onTouchEnd&&yt.props.onTouchEnd(Lt),gr(),at.start(re,()=>{Mr(Lt)})}),oe||(vn.onMouseOver=Co(pn,vn.onMouseOver),vn.onMouseLeave=Co(nn,vn.onMouseLeave),st||(Bn.onMouseOver=pn,Bn.onMouseLeave=nn)),le||(vn.onFocus=Co(Gt,vn.onFocus),vn.onBlur=Co(_t,vn.onBlur),st||(Bn.onFocus=Gt,Bn.onBlur=_t));const cn=z.useMemo(()=>{var Lt;let Pt=[{name:"arrow",enabled:Boolean(ct),options:{element:ct,padding:4}}];return null!=(Lt=Le.popperOptions)&&Lt.modifiers&&(Pt=Pt.concat(Le.popperOptions.modifiers)),fe({},Le.popperOptions,{modifiers:Pt})},[ct,Le]),On=fe({},P,{isRtl:Bt,arrow:q,disableInteractive:st,placement:Se,PopperComponentProp:Ae,touch:xt.current}),Wn=(Lt=>{const{classes:Pt,disableInteractive:gp,arrow:Vn,touch:Xa,placement:Sn}=Lt;return Mn({popper:["popper",!gp&&"popperInteractive",Vn&&"popperArrow"],tooltip:["tooltip",Vn&&"tooltipArrow",Xa&&"touch",`tooltipPlacement${Ze(Sn.split("-")[0])}`],arrow:["arrow"]},SI,Pt)})(On),Qn=null!=(a=null!=(u=Ve.popper)?u:Q.Popper)?a:Id,vr=null!=(f=null!=(p=null!=(g=Ve.transition)?g:Q.Transition)?p:Me)?f:Ad,un=null!=(y=null!=(b=Ve.tooltip)?b:Q.Tooltip)?y:EI,lt=null!=(x=null!=(_=Ve.arrow)?_:Q.Arrow)?x:Th,St=Na(Qn,fe({},Le,null!=(E=Ne.popper)?E:X.popper,{className:At(Wn.popper,null==Le?void 0:Le.className,null==(D=null!=(I=Ne.popper)?I:X.popper)?void 0:D.className)}),On),Zi=Na(vr,fe({},nt,null!=(C=Ne.transition)?C:X.transition),On),Hr=Na(un,fe({},null!=(A=Ne.tooltip)?A:X.tooltip,{className:At(Wn.tooltip,null==(M=null!=(T=Ne.tooltip)?T:X.tooltip)?void 0:M.className)}),On),ai=Na(lt,fe({},null!=(O=Ne.arrow)?O:X.arrow,{className:At(Wn.arrow,null==(L=null!=(F=Ne.arrow)?F:X.arrow)?void 0:L.className)}),On);return Ie.jsxs(z.Fragment,{children:[z.cloneElement(yt,vn),Ie.jsx(Qn,fe({as:null!=Ae?Ae:am,placement:Se,anchorEl:B?{getBoundingClientRect:()=>({top:qc.y,left:qc.x,right:qc.x,bottom:qc.y,width:0,height:0})}:ze,popperRef:Tn,open:!!ze&&hn,id:zn,transition:!0},Bn,St,{popperOptions:cn,children:({TransitionProps:Lt})=>Ie.jsx(vr,fe({timeout:Rt.transitions.duration.shorter},Lt,Zi,{children:Ie.jsxs(un,fe({},Hr,{children:[Re,q?Ie.jsx(lt,fe({},ai,{ref:Ht})):null]}))}))}))]})});function oi(){const{useModelStore:i}=z.useContext(sr).modelStore;return i()}function Qa(i,o){const a=o?"".concat(o.id,"/").concat(JSON.stringify(i)):null,[u]=oi(),[f]=function(){const{useRpcRequestSessionModelStore:_}=z.useContext(sr).modelStore;return _()}(),[p,g]=z.useState();for(var y=arguments.length,b=new Array(y>2?y-2:0),x=2;x<y;x++)b[x-2]=arguments[x];return z.useEffect(()=>{!o||qe(function*(){let _=f.get(a);_||(_=o.createSessionObject(i),f.set(a,_));const E=yield _;u.set(a,E),g(E)})()},[o,...b]),[p]}const wm={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function Do(i){return Qa(wm,i)}const Md=(i,o)=>{const{rpcResultStore:a,key:u,method:f}=o;let p;switch(o.type){case"INVALID":p=de(de({},i),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":p={result:de({},o.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":p=de(de({},i),{},{invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1});break;default:throw new Error("Undefined action")}let g=a.get(u);return g||(g={}),g[f]=p,a.set(u,g),p};function Vc(i,o){const a=i?"".concat(i.id):null,[u]=function(){const{useRpcResultStore:E}=z.useContext(sr).modelStore;return E()}(),[f,p]=z.useReducer(Md,a?u.get(a):null),[g]=function(){const{useModelChangedStore:E}=z.useContext(sr).modelStore;return E()}(),[y]=function(){const{useRpcRequestStore:E}=z.useContext(sr).modelStore;return E()}();let b;a&&(b=y.get(a),b||(b={},y.set(a,b)));const x=function(){var E=qe(function*(D){let I=b[o];(!I||I&&I.rpcRetry)&&(I={rpc:i[o](),rpcRetry:!1},b[o]=I,p({type:"INVALID",method:o,key:a,model:i,rpcResultStore:u,canCancel:!0}));try{yield(i=>new Promise(o=>{setTimeout(o,i)}))(0);const C=yield I.rpc;p({type:"VALID",result:C,key:a,method:o,model:i,rpcResultStore:u})}catch(C){15!==C.code||D||(I.rpcRetry||(I.rpcRetry=!0),x(!0))}});return function(I){return E.apply(this,arguments)}}(),_={cancel:(E=qe(function*(){yield i.session.getObjectApi({handle:-1}).cancelRequest(b[o].rpc.requestId),p({type:"CANCELLED",key:a,method:o,model:i,rpcResultStore:u})}),function(){return E.apply(this,arguments)}),retry:()=>{b[o].rpcRetry=!0,x()}};var E;return z.useEffect(()=>{i&&x()},[i,g.get(i&&i.id),a,o]),[f&&f.result,{validating:f&&f.validating,canCancel:f&&f.canCancel,canRetry:f&&f.canRetry},_]}function Vo(i){return Vc(i,"getLayout")}function $c(i){return Vc(i,"getAppLayout")}function hs(){const[i,o]=z.useState(),[a,u]=z.useState(),f=z.useCallback(g=>{g&&o(g)},[]),p=()=>{const{left:g,top:y,width:b,height:x}=i.getBoundingClientRect();u({left:g,top:y,width:b,height:x})};return z.useLayoutEffect(()=>{if(i){if("function"==typeof ResizeObserver){let g=new ResizeObserver(p);return g.observe(i),()=>{g.unobserve(i),g.disconnect(i),g=null}}return p(),window.addEventListener("resize",p),()=>{window.removeEventListener("resize",p)}}},[i]),[f,a,i]}function Td(i){return"large"===i?"20px":"small"===i?"12px":"16px"}function kr(i){let{size:o,style:a={},viewBox:u="0 0 16 16",shapes:f=[]}=i;const p=de({fontSize:Td(o),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},a);return Y.createElement("i",{style:p},Y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:u,fill:"currentColor"},f.map((g,y)=>{let{type:b,attrs:x}=g;return Y.createElement(b,Er({key:y},x))})))}var Od=i=>kr((o=>de(de({},o),{},{shapes:[{type:"path",attrs:{d:"M9.41421356,8 L11.8890873,5.52512627 C12.065864,5.34834957 12.0305087,4.95944084 11.8183766,4.74730881 L11.2526912,4.18162338 C11.0405592,3.96949135 10.6516504,3.93413601 10.4748737,4.1109127 L8,6.58578644 L5.52512627,4.1109127 C5.34834957,3.93413601 4.95944084,3.96949135 4.74730881,4.18162338 L4.25233406,4.67659813 C3.96949135,4.95944084 3.93413601,5.34834957 4.1109127,5.52512627 L6.58578644,8 L4.1109127,10.4748737 C3.93413601,10.6516504 3.96949135,11.0405592 4.18162338,11.2526912 L4.67659813,11.7476659 C4.95944084,12.0305087 5.34834957,12.065864 5.52512627,11.8890873 L8,9.41421356 L10.4748737,11.8890873 C10.6516504,12.065864 11.0405592,12.0305087 11.2526912,11.8183766 L11.8183766,11.2526912 C12.0305087,11.0405592 12.065864,10.6516504 11.8890873,10.4748737 L9.41421356,8 Z M8,0 C12.4,0 16,3.6 16,8 C16,12.4 12.4,16 8,16 C3.6,16 0,12.4 0,8 C0,3.6 3.6,0 8,0 Z"}}]}))(i)),Xs=i=>kr((o=>de(de({},o),{},{shapes:[{type:"path",attrs:{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10ZM3.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 0v1.652ZM3 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-1V9Zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0Z"}}]}))(i));const Rb=i=>de(de({},i),{},{viewBox:"0 0 12 16",shapes:[{type:"path",attrs:{d:"M2.5,7 L11,7 C11.5522847,7 12,7.44771525 12,8 L12,15 C12,15.5522847 11.5522847,16 11,16 L1,16 C0.44771525,16 0,15.5522847 0,15 L0,8 C0,7.44771525 0.44771525,7 1,7 L1,4.98151367 C1,2.23029964 3.23857625,0 6,0 C8.4241995,0 10.4454541,1.71883353 10.9029715,4 L9.34209114,4 C8.9671727,2.54028848 7.9088888,1.5 6,1.5 C3.54860291,1.5 2.5,3.21561511 2.5,5.33193359 L2.5,7 Z"}}]});var DE=i=>kr(Rb(i)),kE=function(){function i(o,a){for(var u=0;u<a.length;u++){var f=a[u];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(o,f.key,f)}}return function(o,a,u){return a&&i(o.prototype,a),u&&i(o,u),o}}(),Ib=function(i,o){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!o||"object"!=typeof o&&"function"!=typeof o?i:o},AE=function(i){function o(){var a,u,f;!function(b,x){if(!(b instanceof x))throw new TypeError("Cannot call a class as a function")}(this,o);for(var p=arguments.length,g=Array(p),y=0;y<p;y++)g[y]=arguments[y];return u=f=Ib(this,(a=o.__proto__||Object.getPrototypeOf(o)).call.apply(a,[this].concat(g))),f._lastRenderedStartIndex=-1,f._lastRenderedStopIndex=-1,f._memoizedUnloadedRanges=[],f._onItemsRendered=function(b){var x=b.visibleStartIndex,_=b.visibleStopIndex;f._lastRenderedStartIndex=x,f._lastRenderedStopIndex=_,f._ensureRowsLoaded(x,_)},f._setRef=function(b){f._listRef=b},Ib(f,u)}return function(a,u){if("function"!=typeof u&&null!==u)throw new TypeError("Super expression must either be null or a function, not "+typeof u);a.prototype=Object.create(u&&u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(a,u):a.__proto__=u)}(o,i),kE(o,[{key:"resetloadMoreItemsCache",value:function(){var a=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._memoizedUnloadedRanges=[],a&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){return(0,this.props.children)({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(a,u){var f=this.props,g=f.itemCount,y=f.minimumBatchSize,x=f.threshold,_=void 0===x?15:x,E=function(D){for(var I=D.isItemLoaded,C=D.itemCount,A=D.minimumBatchSize,T=D.stopIndex,O=[],L=null,F=null,P=D.startIndex;P<=T;P++)I(P)?null!==F&&(O.push(L,F),L=F=null):(F=P,null===L&&(L=P));if(null!==F){for(var q=Math.min(Math.max(F,L+A-1),C-1),$=F+1;$<=q&&!I($);$++)F=$;O.push(L,F)}if(O.length)for(;O[1]-O[0]+1<A&&O[0]>0;){var Q=O[0]-1;if(I(Q))break;O[0]=Q}return O}({isItemLoaded:f.isItemLoaded,itemCount:g,minimumBatchSize:void 0===y?10:y,startIndex:Math.max(0,a-_),stopIndex:Math.min(g-1,u+_)});(this._memoizedUnloadedRanges.length!==E.length||this._memoizedUnloadedRanges.some(function(D,I){return E[I]!==D}))&&(this._memoizedUnloadedRanges=E,this._loadUnloadedRanges(E))}},{key:"_loadUnloadedRanges",value:function(a){for(var u=this,f=this.props.loadMoreItems||this.props.loadMoreRows,p=function(y){var b=a[y],x=a[y+1],_=f(b,x);null!=_&&_.then(function(){if(!((E={lastRenderedStartIndex:u._lastRenderedStartIndex,lastRenderedStopIndex:u._lastRenderedStopIndex,startIndex:b,stopIndex:x}).startIndex>E.lastRenderedStopIndex||E.stopIndex<E.lastRenderedStartIndex)){if(null==u._listRef)return;"function"==typeof u._listRef.resetAfterIndex?u._listRef.resetAfterIndex(b,!0):("function"==typeof u._listRef._getItemStyleCache&&u._listRef._getItemStyleCache(-1),u._listRef.forceUpdate())}var E})},g=0;g<a.length;g+=2)p(g)}}]),o}(z.PureComponent);const RE=["S","XS"],Mb=i=>i.reduce((o,a)=>o.concat(a));function IE(i){if(!i||!i.length)return[];const o=i.map(a=>a.qMatrix.map(u=>{const[f]=u;return!!RE.includes(f.qState)&&f.qElemNumber}).filter(u=>!1!==u));return Mb(o)}function Tb(i){return Ob.apply(this,arguments)}function Ob(){return Ob=qe(function*(i){let{selections:o,elemNumbers:a,toggle:u,isSingleSelect:f}=i;if(0===a.length)return!1;let p=!1;if(!a.some(g=>Number.isNaN(g))){const g=a;try{p=!1!==(yield o.select({method:"selectListObjectValues",params:["/qListObjectDef",g,u]}))}catch(y){p=!1}p||(f?o.cancel():o.clear())}return p}),Ob.apply(this,arguments)}const Ar="RowColumn",Et={row:"".concat(Ar,"-row"),rowBorderBottom:"".concat(Ar,"-rowBorderBottom"),column:"".concat(Ar,"-column"),fieldRoot:"".concat(Ar,"-fieldRoot"),cell:"".concat(Ar,"-cell"),labelText:"".concat(Ar,"-labelText"),labelDense:"".concat(Ar,"-labelDense"),highlighted:"".concat(Ar,"-highlighted"),checkboxLabel:"".concat(Ar,"-checkboxLabel"),icon:"".concat(Ar,"-icon"),S:"".concat(Ar,"-S"),XS:"".concat(Ar,"-XS"),A:"".concat(Ar,"-A"),X:"".concat(Ar,"-X"),frequencyCount:"".concat(Ar,"-frequencyCount"),barContainer:"".concat(Ar,"-barContainer"),bar:"".concat(Ar,"-bar"),barSelected:"".concat(Ar,"-barSelected"),barWithCheckbox:"".concat(Ar,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(Ar,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(Ar,"-excludedTextWithCheckbox")},ME=".".concat(Et.fieldRoot),xm=i=>!(null!=i&&i.metaKey||null!=i&&i.ctrlKey);const TE=i=>de(de({},i),{},{shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]});var Lb=i=>kr(TE(i));const OE=i=>i?"X"===i.qState||"XS"===i.qState||"XL"===i.qState:null,Pb=i=>{let{cell:o,checkboxes:a}=i;return(((u=o)?"A"===u.qState:null)||OE(o))&&a;var u},Ph=i=>i.filter(o=>!!o).join(" ").trim(),BE=i=>i||"-",zE=["backgroundColor"],Sm=i=>{let{sizes:o,frequencyMode:a,isGridMode:u,freqHitsValue:f}=i;return"P"===a?"".concat(o.freqMinWidth,"px"):u&&!f?"max-content":"25%"},kI=i=>{let{sizes:o,frequencyMode:a,isGridMode:u}=i;return u?"max-content":"P"===a?o.freqMinWidth:o.freqMaxWidth},Fh=i=>{let{theme:o,checkboxes:a,styles:u,selectionState:f}=i;if(a)return"selected"===f?{["& .".concat(Et.labelText)]:{color:u.selections.selected}}:{};const p=u.selections,g=p[f],y=p["".concat(f,"Contrast")];return{background:g,color:y,"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(o.palette.custom.focusBorder),outline:"none"},"& $cell":{paddingRight:0},["& .".concat(Et.labelText)]:{color:y},["& .".concat(Et.icon)]:{color:y}}},Nb={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},AI=He("div",{shouldForwardProp:i=>!["checkboxes","isGridMode","isGridCol","dense","direction","sizes","frequencyMode","freqHitsValue","layout","styles"].includes(i)})(i=>{let{theme:o,checkboxes:a,isGridMode:u,isGridCol:f,dense:p,direction:g,sizes:y,frequencyMode:b,freqHitsValue:x,styles:_}=i;const I=gl(_.content,zE),C=Fh({theme:o,styles:_,checkboxes:a,selectionState:"selected"}),A=Fh({theme:o,styles:_,checkboxes:a,selectionState:"excluded"}),M={height:"100%",transition:"width 0.2s",border:"".concat(1,"px solid"),borderColor:"#D9D9D9",backgroundColor:"#FAFAFA"},T={opacity:"30%"};return{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(o.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"},"& .value":{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(o.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"}},["& .".concat(Et.row)]:de({flexWrap:"nowrap"},_.content),["& .".concat(Et.rowBorderBottom)]:{borderBottom:f?"none":"1px solid ".concat(o.palette.divider),borderLeft:f?"1px solid ".concat(o.palette.divider):"none"},["& .".concat(Et.column)]:de({flexWrap:"nowrap",borderRight:"1px solid ".concat(o.palette.divider)},_.content),["& .".concat(Et.cell)]:{zIndex:2,display:"flex",alignItems:"center",flexGrow:1,minWidth:a?"52px":"26px",flexBasis:a?"auto":"max-content",paddingLeft:"".concat(9,"px"),paddingRight:0},["& .".concat(Et.labelText)]:de(de({lineHeight:"16px",userSelect:"none",paddingRight:"1px"},Nb),I),["& .".concat(Et.labelDense)]:{fontSize:12},["& .".concat(Et.highlighted)]:{backgroundColor:"#FFC72A"},["& .".concat(Et.checkboxLabel)]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":de(de({},Nb),{},{display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"})},["& .".concat(Et.icon)]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24,color:I.color},["& .".concat(Et.S)]:de(de({},C),{},{border:u?"none":void 0}),["& .".concat(Et.XS)]:de(de({},Fh({theme:o,styles:_,checkboxes:a,selectionState:"selectedExcluded"})),{},{border:u?"none":void 0}),["& .".concat(Et.A)]:de(de({},Fh({theme:o,styles:_,checkboxes:a,selectionState:"alternative"})),{},{border:u?"none":void 0}),["& .".concat(Et.X)]:de(de({},A),{},{border:u?"none":void 0}),["& .".concat(Et.X,", & .").concat(Et.XS)]:{border:u?"none":void 0,["& .".concat(Et.barSelected," .bar-filled")]:de({},M)},["& .".concat(Et.frequencyCount)]:de(de({zIndex:3,justifyContent:"flex-end"},Nb),{},{flex:"0 0 ".concat(Sm({sizes:y,frequencyMode:b,isGridMode:u,freqHitsValue:x})),minWidth:!u&&"P"!==b&&x?y.freqMinWidth:"max-content",maxWidth:kI({sizes:y,frequencyMode:b,isGridMode:u}),textAlign:"rtl"===g?"left":"right",paddingLeft:"rtl"!==g?"8px":0}),["&.".concat(Et.barContainer)]:{height:"100%",display:"flex",alignItems:"center"},["& .".concat(Et.bar)]:{height:p?"16px":"20px",position:"absolute",zIndex:1,alignSelf:"center",left:4,width:"calc(100% - ".concat(8,"px)"),display:"flex",alignItems:"center","& .bar-filled":de({},M)},["& .".concat(Et.barSelected)]:{"& .bar-filled":de({},T)},["& .".concat(Et.barWithCheckbox)]:{left:"rtl"===g?4:29,width:"calc(100% - ".concat(33,"px)")},["& .".concat(Et.barSelectedWithCheckbox)]:{"& .bar-filled":de(de({},T),{},{backgroundColor:_.selections.selected||"#BFE5D0",borderColor:_.selections.selected})},["& .".concat(Et.excludedTextWithCheckbox)]:{color:_.content.color,fontStyle:"italic"}}});var RI=Y.memo(AI);const Ld="ListBoxCheckbox",Js={cbIcon:"".concat(Ld,"-cbIcon"),cbIconChecked:"".concat(Ld,"-cbIconChecked"),cbIconExcluded:"".concat(Ld,"-cbIconExcluded"),cbIconAlternative:"".concat(Ld,"-cbIconAlternative"),checkbox:"".concat(Ld,"-checkbox"),dense:"".concat(Ld,"-dense")},qE=He(Sh,{shouldForwardProp:i=>"styles"!==i})(i=>{let{styles:o}=i;return{["& .".concat(Js.cbIcon)]:{borderRadius:3,width:16,height:16,boxShadow:"inset 0 0 0 1px rgba(16,22,26,.2), inset 0 -1px 0 rgba(16,22,26,.1)",backgroundColor:"#f5f8fa",backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.8),hsla(0,0%,100%,0))",display:"flex",alignItems:"center",justifyContent:"center"},["& .".concat(Js.cbIconChecked)]:{borderRadius:3,backgroundColor:o.selections.selected,backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))","&:before":{display:"block",width:16,height:16,backgroundImage:"url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='%23fff'/%3E%3C/svg%3E\")",content:'""'}},["& .".concat(Js.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:o.selections.excluded},["& .".concat(Js.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:o.selections.alternative},["&.".concat(Js.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(Js.dense)]:{padding:"4px 8px"}}}),II=function(i){let a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Y.createElement("span",{className:i.cbIcon},a&&Y.createElement("span",{className:arguments.length>1&&void 0!==arguments[1]&&!arguments[1]||!a?"":i.cbIconExcluded}))};function VE(i){let{onChange:o,checked:a,label:u,dense:f,excluded:p,styles:g,showGray:y=!0,dataN:b}=i;return Y.createElement(qE,{edge:"start",onChange:o,checked:a,disableRipple:!0,className:[Js.checkbox,f&&Js.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":u,"data-n":b},name:u,icon:II(Js,y,p),checkedIcon:Y.createElement("span",{className:Js.cbIconChecked}),styles:g})}const jb={radioButton:"".concat("ListBoxRadioButton","-radioButton")},Bb=He(_I,{shouldForwardProp:i=>!["dense","styles"].includes(i)})(i=>{let{checked:o,styles:a,dense:u}=i;return{["&.".concat(jb.radioButton)]:{right:"5px",color:o?a.selections.selected:a.content.color,padding:u?"0px 0px 0px 12px":void 0,backgroundColor:"transparent"}}});function ML(i){let{onChange:o,checked:a,label:u,dense:f,dataN:p,styles:g}=i;return Y.createElement(Bb,{checked:a,onChange:o,value:u,name:u,className:jb.radioButton,inputProps:{"data-n":p},disableRipple:!0,size:f?"small":"medium",dense:f,styles:g})}function Nh(i){let{label:o,dense:a,showGray:u=!0,checkboxes:f,cell:p,valueTextAlign:g}=i;return Y.createElement(Gn,{component:"span",variant:"body2",className:Ph([Et.labelText,a&&Et.labelDense,u&&Pb({cell:p,checkboxes:f})&&Et.excludedTextWithCheckbox]),align:g,dir:"auto"},Y.createElement("span",null,o))}function MI(i){let{label:o,color:a,dense:u,showGray:f,checkboxes:p,cell:g,valueTextAlign:y}=i;return"string"==typeof o?Y.createElement(Nh,{label:o,color:a,dense:u,showGray:f,checkboxes:p,cell:g,valueTextAlign:y}):o}function TI(i){let{onChange:o,label:a,qElemNumber:u,isSelected:f,dense:p,cell:g,isGridCol:y,showGray:b,isSingleSelect:x,checkboxes:_,valueTextAlign:E,styles:D}=i;const I=Y.createElement(VE,{onChange:o,label:a,checked:f,dense:p,excluded:OE(g),isGridCol:y,showGray:b,dataN:u,styles:D}),C=Y.createElement(ML,{onChange:o,label:a,checked:f,dense:p,dataN:u,styles:D});return Y.createElement(Zs,{control:x?C:I,className:Et.checkboxLabel,label:Y.createElement(MI,{label:a,dense:p,showGray:b,checkboxes:_,cell:g,valueTextAlign:E}),key:u})}function be(i){let{labels:o,dense:a,showGray:u,checkboxes:f}=i;const p=o.map((g,y)=>{let[b,x]=g;return Y.createElement("span",{id:y,className:x?Et.highlighted:""},b)});return Y.createElement(Nh,{label:p,dense:a,showGray:u,checkboxes:f})}function OI(i){let{onChange:o,labels:a,checkboxes:u,dense:f,showGray:p,qElemNumber:g,isSelected:y,cell:b,isGridCol:x,isSingleSelect:_,valueTextAlign:E,styles:D}=i;const I=Y.createElement(be,{labels:a,dense:f,showGray:p,checkboxes:u});return u?Y.createElement(TI,{onChange:o,label:I,qElemNumber:g,isSelected:y,dense:f,cell:b,isGridCol:x,showGray:p,isSingleSelect:_,checkboxes:u,valueTextAlign:E,styles:D}):I}var $E=Y.memo(function(i){let{onChange:o,label:a,qElemNumber:u,isSelected:f,dense:p,cell:g,isGridCol:y,showGray:b,isSingleSelect:x,checkboxes:_,valueTextAlign:E,styles:D}=i;return _?Y.createElement(TI,{onChange:o,label:a,qElemNumber:u,isSelected:f,dense:p,cell:g,isGridCol:y,showGray:b,isSingleSelect:x,checkboxes:_,valueTextAlign:E,styles:D}):Y.createElement(Nh,{label:a,dense:p,showGray:!0,checkboxes:_,cell:g,valueTextAlign:E})});function zb(i){let{qFrequency:o,histogram:a,checkboxes:u,isSelected:f,frequencyMax:p}=i;if(!o||!a||"-"===BE(o))return;const g=(i=>{let{qFrequency:o,frequencyMax:a}=i;const u=String(o),f="%"===u.substring(u.length-1),p=parseFloat(f?u:o);return"".concat(f?p:p/a*100,"%")})({qFrequency:o,frequencyMax:p});return Y.createElement(qo,{className:Ph([Et.bar,u&&Et.barWithCheckbox,f&&(u?Et.barSelectedWithCheckbox:Et.barSelected)])},Y.createElement(qo,{className:"bar-filled",width:g}))}function LI(i){let{cell:o,checkboxes:a,dense:u,showGray:f}=i;const p=BE(null==o?void 0:o.qFrequency);return Y.createElement(tt,{item:!0,style:{display:"flex",alignItems:"center"},className:Et.frequencyCount,"aria-label":p,title:p},Y.createElement(Gn,{noWrap:!0,color:"inherit",variant:"body2",className:Ph([u&&Et.labelDense,Et.labelText,f&&Pb({cell:o,checkboxes:a})&&Et.excludedTextWithCheckbox])},p))}function Em(i){let{dataLayout:o,layoutOrder:a,itemPadding:u,fillHeight:f}=i;if("singleColumn"===o)return{height:"100%",width:"100%"};switch(a){case"row":case"column":return{height:f?"100%":"calc(100% - ".concat(u,"px)"),width:"calc(100% - ".concat(2*u,"px)"),position:"absolute",left:4};default:return{}}}const Cm=He(tt,{shouldForwardProp:i=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction","fillHeight"].includes(i)})(i=>{let{dataLayout:o,layoutOrder:a,itemPadding:u,cellPaddingRight:f,direction:p,fillHeight:g}=i;const y="padding".concat("rtl"===p?"Left":"Right");return{["&.".concat(Et.fieldRoot)]:de(de({},Em({dataLayout:o,layoutOrder:a,itemPadding:u,fillHeight:g})),{},{[y]:f?"8px":void 0})}}),Kt=Object.freeze({ENTER:13,ESCAPE:27,SPACE:32,TAB:9,BACKSPACE:8,DELETE:46,ALT:18,CTRL:17,SHIFT:16,ARROW_UP:38,ARROW_DOWN:40,ARROW_LEFT:37,ARROW_RIGHT:39,PAGE_DOWN:34,PAGE_UP:33,HOME:36,END:35,F10:121,A:65,F:70,ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,SUBTRACTION:189,DECIMAL:190,NUMPAD_DECIMAL:110,isArrow:i=>i===Kt.ARROW_UP||i===Kt.ARROW_DOWN||i===Kt.ARROW_LEFT||i===Kt.ARROW_RIGHT});function HE(i){null==i||i.querySelectorAll(".last-focused").forEach(o=>{o.classList.remove("last-focused")})}function GE(i){return(null==i?void 0:i.closest(".njs-cell"))||(null==i?void 0:i.closest(".qv-gridcell"))||(null==i?void 0:i.closest(".qv-gs-listbox"))}function Dm(i){let{containerRef:o,enabled:a}=i;const[u,f]=z.useState(!1);return{enabled:a,active:u,innerTabStops:!a||u,blur(p){var g;if(!a)return;f(!1);const y=GE(o.current)||(null===(g=o.current)||void 0===g?void 0:g.parentElement);var b;null==(b=o.current)||b.querySelectorAll('[tabIndex="0"]').forEach(x=>{x.setAttribute("tabIndex",-1)}),HE(o.current),p&&y&&(y.setAttribute("tabIndex",0),o.current.setAttribute("tabIndex",-1),y.focus())},focus(){if(!a)return;f(!0);const p=o.current,g=null==p?void 0:p.querySelector(".search input"),y=null==p?void 0:p.querySelector(".value.last-focused"),b=null==p?void 0:p.querySelector(".value.selector, .value"),x=null==p?void 0:p.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),_=null==p?void 0:p.querySelector("#listbox-unlock-button"),E=(null==p?void 0:p.querySelector(".listbox-cyclic-button"))||g||y||b||_||x;null==E||E.setAttribute("tabIndex",0),null==E||E.focus()},focusSelection(){const p=document.querySelector("#listbox-unlock-button"),g=document.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm:not(:disabled)"),y=p||g;return null==y||y.setAttribute("tabIndex",0),null==y||y.focus(),y}}}const Gc=i=>+i.getAttribute("data-n"),Pd=i=>{const o=null==i?void 0:i.querySelector(".search input");return null==o||o.focus(),o},Uc=i=>{const o=null==i?void 0:i.querySelector(".value.last-focused"),a=null==i?void 0:i.querySelector(".value.selector"),u=null==i?void 0:i.querySelector(".value"),f=o||a||u;return null==f||f.setAttribute("tabIndex",0),null==f||f.focus(),HE(i),f},Fd=i=>{const o=null==i?void 0:i.querySelector(".listbox-cyclic-button:not(:disabled)");return null==o||o.setAttribute("tabIndex",0),null==o||o.focus(),o},Nd=(i,o)=>{if(!o.enabled)return;const{currentTarget:a,target:u}=i,f=u.classList.contains("listbox-container"),p=a.closest(".listbox-container"),g=GE(p),y=1===(null==g?void 0:g.querySelectorAll(".listbox-container").length);if(f||y)o.blur(!0);else{HE(p),a.classList.add("last-focused"),o.blur();const b=a.closest(".listbox-container");b.setAttribute("tabIndex",-1),null==b||b.focus()}},PI=i=>{let{rowIndex:o,columnIndex:a,rowCount:u,columnCount:f,layoutOrder:p,keyCode:g,numCells:y}=i;const b=D=>{let I;return"row"===p?(I=y%f,D<I?u:u-1):(I=y%u,D<f-1?u:I)};let x=o,_=a;if(g===Kt.ARROW_DOWN)if(o>=b(a)-1){if(a===f-1)return-1;x=0,_=a+1}else x=o+1;else if(0===o){if(0===a)return-1;x=b(a-1)-1,_=a-1}else x=o-1;if("row"===p)return x*f+_;const E=y%u;return 0===E||x<E?x*f+_:(x-E)*(f-1)+_+E*f},UE={S:"Object.Listbox.Selected",A:"Object.Listbox.Alternative",O:"Object.Listbox.Optional",XS:"Object.Listbox.SelectedExcluded",L:"Object.Listbox.Locked",X:"Object.Listbox.Excluded",XL:"Object.Listbox.ExcludedLock"};function qb(i){var o,a;let{index:u,rowIndex:f,columnIndex:p,style:g,data:y}=i;const{onChange:b,onClick:x,onMouseDown:_,onMouseUp:E,onMouseEnter:D,onTouchStart:I,onTouchEnd:C,pages:A,isLocked:M,column:T=!1,checkboxes:O=!1,textAlign:L,direction:F,layoutOptions:P={},freqIsAllowed:q,isSingleSelect:$,actions:Q,frequencyMax:X="",histogram:ae=!1,keyboard:le,showGray:oe=!0,showTick:K=!0,columnCount:U=1,rowCount:ne=1,dataOffset:se,deducedFrequencyMode:he,focusListItems:B,listCount:G,sizes:Z,translator:re,showSearch:te,isModal:ce,contentFontStyle:ye,styles:Se,fillHeight:Ae}=y,{dense:Le=!1,dataLayout:Ne="singleColumn",layoutOrder:Ve}=P,{itemPadding:Re}=Z;let Me,nt;const Ge={max:null,currentIndex:null};if("number"==typeof f&&"number"==typeof p){"row"===Ve?(Me=f*U+p,Ge.max=ne,Ge.currentIndex=f):(Me=p*ne+f,Ge.max=U,Ge.currentIndex=p);const pn=0;nt=de(de({},g),{},{height:Ae?"100%":g.height,left:pn+(0===p?g.left:Number(g.left)+p*pn),top:0===f?g.top:Number(g.top)+f*pn})}else Me=u,Ge.max=G,Ge.currentIndex=u,nt=de({},g);Me+=se;const[yt,Rt]=z.useState(null);z.useEffect(()=>{null!==yt&&(0===Ge.currentIndex&&B.first&&(yt.focus(),B.setFirst(!1)),Ge.currentIndex===Ge.max-1&&B.last&&(yt.focus(),B.setLast(!1)))},[yt,B.first,B.last]);const Bt=z.useCallback(function(pn){let{select:nn,selectAll:Jt,onCtrlF:mn,confirm:gn,cancel:yn,setScrollPosition:rt,focusListItems:_t,keyboard:Gt,isModal:bt,rowCount:Ct,columnCount:on,rowIndex:Un,columnIndex:Tn,layoutOrder:jn}=pn;const zt=function(cn,On){if(cn===Kt.ARROW_LEFT||cn===Kt.ARROW_RIGHT||"number"!=typeof Un||"number"!=typeof Tn){const un=null==On?void 0:On.parentElement[arguments.length>2&&void 0!==arguments[2]&&arguments[2]?"nextElementSibling":"previousElementSibling"];return null==un?void 0:un.querySelector("[role]")}const Qn=null==On?void 0:On.parentElement.parentElement,vr=null==Qn?void 0:Qn.childElementCount;if(vr){const un=PI({rowIndex:Un,columnIndex:Tn,rowCount:Ct,columnCount:on,layoutOrder:jn,keyCode:cn,numCells:vr}),lt=null==On?void 0:On.parentElement.parentElement.children[un];return null==lt?void 0:lt.querySelector("[role]")}};let vn=!1;const Bn=cn=>{vn=cn};return cn=>{let On;const{currentTarget:Wn,nativeEvent:Qn}=cn,{keyCode:vr,shiftKey:un=!1,ctrlKey:lt=!1,metaKey:St=!1}=Qn;switch(vr){case Kt.TAB:{const Zi=Wn.closest(".listbox-container"),Hr=void 0!==bt?bt():void 0;if(Wn.classList.add("last-focused"),null==Gt||!Gt.enabled)return Hr?(Gt.focusSelection(),cn.preventDefault(),void cn.stopPropagation()):void 0;if(un){Pd(Zi)||Fd(Zi)||(Hr?Gt.focusSelection():Nd(cn,Gt));break}Gt.focusSelection()||Fd(Zi)||Pd(Zi)||(Wn.blur(),Nd(cn,Gt));break}case Kt.SHIFT:Bn(!0);break;case Kt.SPACE:nn([Gc(Wn)],!1,cn);break;case Kt.ARROW_DOWN:case Kt.ARROW_RIGHT:On=zt(vr,Wn,!0),un&&On&&(vn&&(nn([Gc(Wn)],!0),Bn(!1)),nn([Gc(On)],!0));break;case Kt.ARROW_UP:case Kt.ARROW_LEFT:On=zt(vr,Wn,!1),un&&On&&(vn&&(nn([Gc(Wn)],!0),Bn(!1)),nn([Gc(On)],!0));break;case Kt.ENTER:if(gn(),void 0===bt)return;break;case Kt.ESCAPE:if(void 0===bt)return void yn();if(!bt())return;yn();break;case Kt.HOME:if(_t.setFirst(!0),lt){null==rt||rt("overflowStart");break}null==rt||rt("start");break;case Kt.END:if(_t.setLast(!0),lt){null==rt||rt("overflowEnd");break}null==rt||rt("end");break;case Kt.A:if(lt||St){Jt();break}return;case Kt.F:if(lt||St){mn();break}return;default:return}On&&On.focus(),cn.preventDefault(),cn.stopPropagation()}}(de(de({},Q),{},{focusListItems:B,keyboard:le,isModal:ce,rowCount:ne,columnCount:U,rowIndex:f,columnIndex:p,layoutOrder:Ve})),[Q,null==le?void 0:le.innerTabStops,ne,U,f,p,Ve]),ze=z.useMemo(()=>function(pn){let nn,{pages:Jt,cellIndex:mn}=pn;const gn=Jt.filter(yn=>yn.qArea.qTop<=mn&&mn<yn.qArea.qTop+yn.qArea.qHeight)[0];if(gn){const yn=gn.qArea;mn>=yn.qTop&&mn<yn.qTop+yn.qHeight&&([nn]=gn.qMatrix[mn-yn.qTop])}return nn}({pages:A,cellIndex:Me}),[A,Me]),It="S"===(null==ze?void 0:ze.qState)||"XS"===(null==ze?void 0:ze.qState)||"L"===(null==ze?void 0:ze.qState)||"XL"===(null==ze?void 0:ze.qState),ct=z.useMemo(()=>(i=>{let{column:o,histogram:a,cell:u,showGray:f}=i;if(!u)return[];const p=[o?Et.column:Et.row];a||p.push(Et.rowBorderBottom);const g=function(y){let b,{cell:x,showGray:_}=y;switch(x.qState){case"XS":b=_?Et.XS:Et.S;break;case"S":case"L":b=Et.S;break;case"A":b=!!_&&Et.A;break;case"X":case"XL":b=!!_&&Et.X;break;default:b=!1}return b}({cell:u,showGray:f});return g&&p.push(g),p})({column:T,histogram:ae,cell:ze,showGray:oe}),[null==ze?void 0:ze.qState,ae,Le]),Ht=z.useCallback(pn=>{pn.preventDefault()},[O]),xt=z.useMemo(()=>ze&&function(pn){let{direction:nn,cell:Jt,textAlign:mn}=pn;const gn=!["NaN",void 0].includes(null==Jt?void 0:Jt.qNum);let yn;return yn=!mn||mn.auto?gn?"rtl"===nn?"left":"right":{rtl:"right",ltr:"left"}[nn]:(null==mn?void 0:mn.align)||"left",["left","center","right"].includes(yn)?yn:"left"}({direction:F,cell:ze,textAlign:L}),[F,ze,L]);if(!ze)return null;const st="grid"===Ne&&"column"===Ve,ft=null!==(o=null==ze?void 0:ze.qText)&&void 0!==o?o:"";let ht;if(null!==(a=ze.qHighlightRanges)&&void 0!==a&&null!==(a=a.qRanges)&&void 0!==a&&a.length){const pn=ze.qHighlightRanges.qRanges.sort((nn,Jt)=>nn.qCharPos-Jt.qCharPos)||[];nn=ft,ht=(Jt=pn).length?Jt.reduce((gn,yn,rt)=>{gn.push(...function(Ct,on){let Un=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const{qCharPos:Tn,qCharCount:jn}=on,zt=[];return Tn>Un&&zt.push([Ct.slice(Un,Tn),!1]),zt.push([Ct.slice(Tn,Tn+jn),!0]),zt}(nn,yn,0===rt?0:Jt[rt-1].qCharPos+Jt[rt-1].qCharCount));const bt=Jt[rt].qCharPos+Jt[rt].qCharCount;return rt===Jt.length-1&&bt<nn.length&&gn.push([nn.slice(bt),!1]),gn},[]):[]}var nn,Jt;const at={alignItems:"center",display:"flex",fontSize:"8px"},gt="rtl"===F,$e={display:"flex",alignItems:"center",flexGrow:1,paddingLeft:gt?8:O?0:void 0,paddingRight:O?0:gt?8:0,justifyContent:xt,textAlign:xt},Ke=0===u,hn=It&&M,zn=!O&&It&&!M,qn=!O&&K,gr=O||!K,Ir=function(pn){let{translator:nn,label:Jt,qState:mn,isSelected:gn,currentIndex:yn,maxIndex:rt,showSearch:_t}=pn;const bt=nn.get(UE[mn]),Ct=[];if(gn){const jn=nn.get(_t?"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu":"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu");Ct.push(jn)}const on="".concat(Jt," ").concat(bt),Un=nn.get("CurrentSelections.Of",[yn+1,rt+1]);return Ct.unshift(on,Un),Ct.join(". ").trim()}({translator:re,label:ft,qState:ze.qState,currentIndex:Ge.currentIndex,maxIndex:Ge.max,showSearch:te});return Y.createElement(RI,{className:Et.barContainer,checkboxes:O,style:nt,styles:Se,isGridCol:st,isGridMode:"grid"===Ne,dense:Le,direction:F,sizes:Z,frequencyMode:he,freqHitsValue:!gt&&"right"===xt||gt&&"left"===xt,contentFontStyle:ye,"data-testid":"listbox.item"},Y.createElement(Cm,{role:"row","aria-label":Ir,"aria-selected":It,"aria-setsize":Ge.max,"aria-rowindex":Ge.currentIndex,ref:Rt,container:!0,dataLayout:Ne,cellPaddingRight:gr,layoutOrder:Ve,itemPadding:Re,gap:0,className:Ph(["value",...ct]),classes:{root:Et.fieldRoot},onClick:x,onMouseDown:_,onMouseUp:E,onMouseEnter:D,onKeyDown:Bt,onTouchStart:I,onTouchEnd:C,onContextMenu:Ht,tabIndex:Ke&&le.innerTabStops?0:-1,"data-n":null==ze?void 0:ze.qElemNumber,direction:F,fillHeight:Ae},(null==ze?void 0:ze.qFrequency)&&Y.createElement(zb,{qFrequency:null==ze?void 0:ze.qFrequency,histogram:ae,checkboxes:O,isSelected:It,frequencyMax:X}),Y.createElement(tt,{item:!0,style:$e,className:Ph([Et.cell,Et.selectedCell]),title:"".concat(ft)},ht?Y.createElement(OI,{onChange:b,labels:ht,checkboxes:O,dense:Le,showGray:oe,qElemNumber:ze.qElemNumber,isSelected:It,cell:ze,isGridCol:st,isSingleSelect:$,valueTextAlign:xt,styles:Se}):Y.createElement($E,{onChange:b,label:ft,qElemNumber:ze.qElemNumber,isSelected:It,dense:Le,cell:ze,isGridCol:st,showGray:oe,isSingleSelect:$,checkboxes:O,valueTextAlign:xt,styles:Se})),q&&Y.createElement(LI,{cell:ze,checkboxes:O,dense:Le,showGray:oe}),qn&&Y.createElement(tt,{item:!0,className:Et.icon},hn&&Y.createElement(Xs,{style:at,size:"small"}),zn&&Y.createElement(Lb,{style:at,size:"small"}))))}var WE=Number.isNaN||function(i){return"number"==typeof i&&i!=i};function KE(i,o){if(i.length!==o.length)return!1;for(var a=0;a<i.length;a++)if(!((u=i[a])===(f=o[a])||WE(u)&&WE(f)))return!1;var u,f;return!0}function Wc(i,o){var a;void 0===o&&(o=KE);var u,f=[],p=!1;return function(){for(var g=[],y=0;y<arguments.length;y++)g[y]=arguments[y];return p&&a===this&&o(g,f)||(u=i.apply(this,g),p=!0,a=this,f=g),u}}var km="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function Am(i){cancelAnimationFrame(i.id)}function QE(i,o){var a=km(),u={id:requestAnimationFrame(function f(){km()-a>=o?i.call(null):u.id=requestAnimationFrame(f)})};return u}var Vb=-1;function $b(i){if(void 0===i&&(i=!1),-1===Vb||i){var o=document.createElement("div"),a=o.style;a.width="50px",a.height="50px",a.overflow="scroll",document.body.appendChild(o),Vb=o.offsetWidth-o.clientWidth,document.body.removeChild(o)}return Vb}var jd=null;function Bd(i){if(void 0===i&&(i=!1),null===jd||i){var o=document.createElement("div"),a=o.style;a.width="50px",a.height="50px",a.overflow="scroll",a.direction="rtl";var u=document.createElement("div"),f=u.style;return f.width="100px",f.height="100px",o.appendChild(u),document.body.appendChild(o),o.scrollLeft>0?jd="positive-descending":(o.scrollLeft=1,jd=0===o.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(o),jd}return jd}var YE=function(i){return i.rowIndex+":"+i.columnIndex};var XE=function(i,o){},JE=function(i,o){return i};var tC=function(i,o){},nC=function ZE(i){var o,a=i.getColumnOffset,u=i.getColumnStartIndexForOffset,f=i.getColumnStopIndexForStartIndex,p=i.getColumnWidth,g=i.getEstimatedTotalHeight,y=i.getEstimatedTotalWidth,b=i.getOffsetForColumnAndAlignment,x=i.getOffsetForRowAndAlignment,_=i.getRowHeight,E=i.getRowOffset,D=i.getRowStartIndexForOffset,I=i.getRowStopIndexForStartIndex,C=i.initInstanceProps,A=i.shouldResetStyleCacheOnItemSizeChange,M=i.validateProps;return(o=function(T){function O(F){var P;return(P=T.call(this,F)||this)._instanceProps=C(P.props,fh(P)),P._resetIsScrollingTimeoutId=null,P._outerRef=void 0,P.state={instance:fh(P),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof P.props.initialScrollLeft?P.props.initialScrollLeft:0,scrollTop:"number"==typeof P.props.initialScrollTop?P.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},P._callOnItemsRendered=void 0,P._callOnItemsRendered=Wc(function(q,$,Q,X,ae,le,oe,K){return P.props.onItemsRendered({overscanColumnStartIndex:q,overscanColumnStopIndex:$,overscanRowStartIndex:Q,overscanRowStopIndex:X,visibleColumnStartIndex:ae,visibleColumnStopIndex:le,visibleRowStartIndex:oe,visibleRowStopIndex:K})}),P._callOnScroll=void 0,P._callOnScroll=Wc(function(q,$,Q,X,ae){return P.props.onScroll({horizontalScrollDirection:Q,scrollLeft:q,scrollTop:$,verticalScrollDirection:X,scrollUpdateWasRequested:ae})}),P._getItemStyle=void 0,P._getItemStyle=function(q,$){var Q,X=P.props,le=X.direction,K=P._getItemStyleCache(A&&X.columnWidth,A&&le,A&&X.rowHeight),U=q+":"+$;if(K.hasOwnProperty(U))Q=K[U];else{var ne=a(P.props,$,P._instanceProps),se="rtl"===le;K[U]=Q={position:"absolute",left:se?void 0:ne,right:se?ne:void 0,top:E(P.props,q,P._instanceProps),height:_(P.props,q,P._instanceProps),width:p(P.props,$,P._instanceProps)}}return Q},P._getItemStyleCache=void 0,P._getItemStyleCache=Wc(function(q,$,Q){return{}}),P._onScroll=function(q){var $=q.currentTarget,Q=$.clientHeight,X=$.clientWidth,ae=$.scrollLeft,le=$.scrollTop,oe=$.scrollHeight,K=$.scrollWidth;P.setState(function(U){if(U.scrollLeft===ae&&U.scrollTop===le)return null;var se=ae;if("rtl"===P.props.direction)switch(Bd()){case"negative":se=-ae;break;case"positive-descending":se=K-X-ae}se=Math.max(0,Math.min(se,K-X));var he=Math.max(0,Math.min(le,oe-Q));return{isScrolling:!0,horizontalScrollDirection:U.scrollLeft<ae?"forward":"backward",scrollLeft:se,scrollTop:he,verticalScrollDirection:U.scrollTop<le?"forward":"backward",scrollUpdateWasRequested:!1}},P._resetIsScrollingDebounced)},P._outerRefSetter=function(q){var $=P.props.outerRef;P._outerRef=q,"function"==typeof $?$(q):null!=$&&"object"==typeof $&&$.hasOwnProperty("current")&&($.current=q)},P._resetIsScrollingDebounced=function(){null!==P._resetIsScrollingTimeoutId&&Am(P._resetIsScrollingTimeoutId),P._resetIsScrollingTimeoutId=QE(P._resetIsScrolling,150)},P._resetIsScrolling=function(){P._resetIsScrollingTimeoutId=null,P.setState({isScrolling:!1},function(){P._getItemStyleCache(-1)})},P}uh(O,T),O.getDerivedStateFromProps=function(F,P){return XE(F,P),M(F),null};var L=O.prototype;return L.scrollTo=function(F){var P=F.scrollLeft,q=F.scrollTop;void 0!==P&&(P=Math.max(0,P)),void 0!==q&&(q=Math.max(0,q)),this.setState(function($){return void 0===P&&(P=$.scrollLeft),void 0===q&&(q=$.scrollTop),$.scrollLeft===P&&$.scrollTop===q?null:{horizontalScrollDirection:$.scrollLeft<P?"forward":"backward",scrollLeft:P,scrollTop:q,scrollUpdateWasRequested:!0,verticalScrollDirection:$.scrollTop<q?"forward":"backward"}},this._resetIsScrollingDebounced)},L.scrollToItem=function(F){var P=F.align,q=void 0===P?"auto":P,$=F.columnIndex,Q=F.rowIndex,X=this.props,ae=X.columnCount,le=X.height,oe=X.rowCount,K=X.width,U=this.state,ne=U.scrollLeft,se=U.scrollTop,he=$b();void 0!==$&&($=Math.max(0,Math.min($,ae-1))),void 0!==Q&&(Q=Math.max(0,Math.min(Q,oe-1)));var B=g(this.props,this._instanceProps),G=y(this.props,this._instanceProps)>K?he:0;this.scrollTo({scrollLeft:void 0!==$?b(this.props,$,q,ne,this._instanceProps,B>le?he:0):ne,scrollTop:void 0!==Q?x(this.props,Q,q,se,this._instanceProps,G):se})},L.componentDidMount=function(){var F=this.props,P=F.initialScrollLeft,q=F.initialScrollTop;if(null!=this._outerRef){var $=this._outerRef;"number"==typeof P&&($.scrollLeft=P),"number"==typeof q&&($.scrollTop=q)}this._callPropsCallbacks()},L.componentDidUpdate=function(){var P=this.state,q=P.scrollLeft,$=P.scrollTop;if(P.scrollUpdateWasRequested&&null!=this._outerRef){var Q=this._outerRef;if("rtl"===this.props.direction)switch(Bd()){case"negative":Q.scrollLeft=-q;break;case"positive-ascending":Q.scrollLeft=q;break;default:Q.scrollLeft=Q.scrollWidth-Q.clientWidth-q}else Q.scrollLeft=Math.max(0,q);Q.scrollTop=Math.max(0,$)}this._callPropsCallbacks()},L.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Am(this._resetIsScrollingTimeoutId)},L.render=function(){var F=this.props,P=F.children,q=F.className,$=F.columnCount,Q=F.direction,X=F.height,ae=F.innerRef,le=F.innerElementType,oe=F.innerTagName,K=F.itemData,U=F.itemKey,ne=void 0===U?YE:U,se=F.outerElementType,he=F.outerTagName,B=F.rowCount,G=F.style,Z=F.useIsScrolling,re=F.width,te=this.state.isScrolling,ce=this._getHorizontalRangeToRender(),ye=ce[0],Se=ce[1],Ae=this._getVerticalRangeToRender(),Ne=Ae[1],Ve=[];if($>0&&B)for(var Re=Ae[0];Re<=Ne;Re++)for(var Me=ye;Me<=Se;Me++)Ve.push(z.createElement(P,{columnIndex:Me,data:K,isScrolling:Z?te:void 0,key:ne({columnIndex:Me,data:K,rowIndex:Re}),rowIndex:Re,style:this._getItemStyle(Re,Me)}));var nt=g(this.props,this._instanceProps),Ge=y(this.props,this._instanceProps);return z.createElement(se||he||"div",{className:q,onScroll:this._onScroll,ref:this._outerRefSetter,style:ud({position:"relative",height:X,width:re,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:Q},G)},z.createElement(le||oe||"div",{children:Ve,ref:ae,style:{height:nt,pointerEvents:te?"none":void 0,width:Ge}}))},L._callPropsCallbacks=function(){var F=this.props,$=F.onScroll;if("function"==typeof F.onItemsRendered&&F.columnCount>0&&F.rowCount>0){var X=this._getHorizontalRangeToRender(),ae=X[0],le=X[1],oe=X[2],K=X[3],U=this._getVerticalRangeToRender();this._callOnItemsRendered(ae,le,U[0],U[1],oe,K,U[2],U[3])}if("function"==typeof $){var G=this.state;this._callOnScroll(G.scrollLeft,G.scrollTop,G.horizontalScrollDirection,G.verticalScrollDirection,G.scrollUpdateWasRequested)}},L._getHorizontalRangeToRender=function(){var F=this.props,P=F.columnCount,ae=this.state,le=ae.horizontalScrollDirection,oe=ae.isScrolling,K=ae.scrollLeft,U=F.overscanColumnCount||F.overscanColumnsCount||F.overscanCount||1;if(0===P||0===F.rowCount)return[0,0,0,0];var ne=u(this.props,K,this._instanceProps),se=f(this.props,ne,K,this._instanceProps),he=oe&&"backward"!==le?1:Math.max(1,U),B=oe&&"forward"!==le?1:Math.max(1,U);return[Math.max(0,ne-he),Math.max(0,Math.min(P-1,se+B)),ne,se]},L._getVerticalRangeToRender=function(){var F=this.props,X=F.rowCount,ae=this.state,le=ae.isScrolling,oe=ae.verticalScrollDirection,K=ae.scrollTop,U=F.overscanRowCount||F.overscanRowsCount||F.overscanCount||1;if(0===F.columnCount||0===X)return[0,0,0,0];var ne=D(this.props,K,this._instanceProps),se=I(this.props,ne,K,this._instanceProps),he=le&&"backward"!==oe?1:Math.max(1,U),B=le&&"forward"!==oe?1:Math.max(1,U);return[Math.max(0,ne-he),Math.max(0,Math.min(X-1,se+B)),ne,se]},O}(z.PureComponent)).defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},o}({getColumnOffset:function(i,o){return o*i.columnWidth},getColumnWidth:function(i,o){return i.columnWidth},getRowOffset:function(i,o){return o*i.rowHeight},getRowHeight:function(i,o){return i.rowHeight},getEstimatedTotalHeight:function(i){return i.rowHeight*i.rowCount},getEstimatedTotalWidth:function(i){return i.columnWidth*i.columnCount},getOffsetForColumnAndAlignment:function(i,o,a,u,f,p){var y=i.columnWidth,b=i.width,x=Math.max(0,i.columnCount*y-b),_=Math.min(x,o*y),E=Math.max(0,o*y-b+p+y);switch("smart"===a&&(a=u>=E-b&&u<=_+b?"auto":"center"),a){case"start":return _;case"end":return E;case"center":var D=Math.round(E+(_-E)/2);return D<Math.ceil(b/2)?0:D>x+Math.floor(b/2)?x:D;default:return u>=E&&u<=_?u:E>_||u<E?E:_}},getOffsetForRowAndAlignment:function(i,o,a,u,f,p){var g=i.rowHeight,y=i.height,x=Math.max(0,i.rowCount*g-y),_=Math.min(x,o*g),E=Math.max(0,o*g-y+p+g);switch("smart"===a&&(a=u>=E-y&&u<=_+y?"auto":"center"),a){case"start":return _;case"end":return E;case"center":var D=Math.round(E+(_-E)/2);return D<Math.ceil(y/2)?0:D>x+Math.floor(y/2)?x:D;default:return u>=E&&u<=_?u:E>_||u<E?E:_}},getColumnStartIndexForOffset:function(i,o){return Math.max(0,Math.min(i.columnCount-1,Math.floor(o/i.columnWidth)))},getColumnStopIndexForStartIndex:function(i,o,a){var u=i.columnWidth,f=i.columnCount,y=Math.ceil((i.width+a-o*u)/u);return Math.max(0,Math.min(f-1,o+y-1))},getRowStartIndexForOffset:function(i,o){return Math.max(0,Math.min(i.rowCount-1,Math.floor(o/i.rowHeight)))},getRowStopIndexForStartIndex:function(i,o,a){var u=i.rowHeight,f=i.rowCount,y=Math.ceil((i.height+a-o*u)/u);return Math.max(0,Math.min(f-1,o+y-1))},initInstanceProps:function(i){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(i){}}),rC=function eC(i){var o,a=i.getItemOffset,u=i.getEstimatedTotalSize,f=i.getItemSize,p=i.getOffsetForIndexAndAlignment,g=i.getStartIndexForOffset,y=i.getStopIndexForStartIndex,b=i.initInstanceProps,x=i.shouldResetStyleCacheOnItemSizeChange,_=i.validateProps;return(o=function(E){function D(C){var A;return(A=E.call(this,C)||this)._instanceProps=b(A.props,fh(A)),A._outerRef=void 0,A._resetIsScrollingTimeoutId=null,A.state={instance:fh(A),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof A.props.initialScrollOffset?A.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},A._callOnItemsRendered=void 0,A._callOnItemsRendered=Wc(function(M,T,O,L){return A.props.onItemsRendered({overscanStartIndex:M,overscanStopIndex:T,visibleStartIndex:O,visibleStopIndex:L})}),A._callOnScroll=void 0,A._callOnScroll=Wc(function(M,T,O){return A.props.onScroll({scrollDirection:M,scrollOffset:T,scrollUpdateWasRequested:O})}),A._getItemStyle=void 0,A._getItemStyle=function(M){var T,O=A.props,L=O.direction,P=O.layout,q=A._getItemStyleCache(x&&O.itemSize,x&&P,x&&L);if(q.hasOwnProperty(M))T=q[M];else{var $=a(A.props,M,A._instanceProps),Q=f(A.props,M,A._instanceProps),X="horizontal"===L||"horizontal"===P,ae="rtl"===L,le=X?$:0;q[M]=T={position:"absolute",left:ae?void 0:le,right:ae?le:void 0,top:X?0:$,height:X?"100%":Q,width:X?Q:"100%"}}return T},A._getItemStyleCache=void 0,A._getItemStyleCache=Wc(function(M,T,O){return{}}),A._onScrollHorizontal=function(M){var T=M.currentTarget,O=T.clientWidth,L=T.scrollLeft,F=T.scrollWidth;A.setState(function(P){if(P.scrollOffset===L)return null;var $=L;if("rtl"===A.props.direction)switch(Bd()){case"negative":$=-L;break;case"positive-descending":$=F-O-L}return $=Math.max(0,Math.min($,F-O)),{isScrolling:!0,scrollDirection:P.scrollOffset<$?"forward":"backward",scrollOffset:$,scrollUpdateWasRequested:!1}},A._resetIsScrollingDebounced)},A._onScrollVertical=function(M){var T=M.currentTarget,O=T.clientHeight,L=T.scrollHeight,F=T.scrollTop;A.setState(function(P){if(P.scrollOffset===F)return null;var q=Math.max(0,Math.min(F,L-O));return{isScrolling:!0,scrollDirection:P.scrollOffset<q?"forward":"backward",scrollOffset:q,scrollUpdateWasRequested:!1}},A._resetIsScrollingDebounced)},A._outerRefSetter=function(M){var T=A.props.outerRef;A._outerRef=M,"function"==typeof T?T(M):null!=T&&"object"==typeof T&&T.hasOwnProperty("current")&&(T.current=M)},A._resetIsScrollingDebounced=function(){null!==A._resetIsScrollingTimeoutId&&Am(A._resetIsScrollingTimeoutId),A._resetIsScrollingTimeoutId=QE(A._resetIsScrolling,150)},A._resetIsScrolling=function(){A._resetIsScrollingTimeoutId=null,A.setState({isScrolling:!1},function(){A._getItemStyleCache(-1,null)})},A}uh(D,E),D.getDerivedStateFromProps=function(C,A){return tC(C,A),_(C),null};var I=D.prototype;return I.scrollTo=function(C){C=Math.max(0,C),this.setState(function(A){return A.scrollOffset===C?null:{scrollDirection:A.scrollOffset<C?"forward":"backward",scrollOffset:C,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},I.scrollToItem=function(C,A){void 0===A&&(A="auto");var M=this.props,O=M.layout,L=this.state.scrollOffset;C=Math.max(0,Math.min(C,M.itemCount-1));var F=0;if(this._outerRef){var P=this._outerRef;F="vertical"===O?P.scrollWidth>P.clientWidth?$b():0:P.scrollHeight>P.clientHeight?$b():0}this.scrollTo(p(this.props,C,A,L,this._instanceProps,F))},I.componentDidMount=function(){var C=this.props,M=C.initialScrollOffset;if("number"==typeof M&&null!=this._outerRef){var O=this._outerRef;"horizontal"===C.direction||"horizontal"===C.layout?O.scrollLeft=M:O.scrollTop=M}this._callPropsCallbacks()},I.componentDidUpdate=function(){var C=this.props,A=C.direction,T=this.state,O=T.scrollOffset;if(T.scrollUpdateWasRequested&&null!=this._outerRef){var L=this._outerRef;if("horizontal"===A||"horizontal"===C.layout)if("rtl"===A)switch(Bd()){case"negative":L.scrollLeft=-O;break;case"positive-ascending":L.scrollLeft=O;break;default:L.scrollLeft=L.scrollWidth-L.clientWidth-O}else L.scrollLeft=O;else L.scrollTop=O}this._callPropsCallbacks()},I.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Am(this._resetIsScrollingTimeoutId)},I.render=function(){var C=this.props,A=C.children,M=C.className,T=C.direction,O=C.height,L=C.innerRef,F=C.innerElementType,P=C.innerTagName,q=C.itemCount,$=C.itemData,Q=C.itemKey,X=void 0===Q?JE:Q,le=C.outerElementType,oe=C.outerTagName,K=C.style,U=C.useIsScrolling,ne=C.width,se=this.state.isScrolling,he="horizontal"===T||"horizontal"===C.layout,B=he?this._onScrollHorizontal:this._onScrollVertical,G=this._getRangeToRender(),re=G[1],te=[];if(q>0)for(var ce=G[0];ce<=re;ce++)te.push(z.createElement(A,{data:$,key:X(ce,$),index:ce,isScrolling:U?se:void 0,style:this._getItemStyle(ce)}));var ye=u(this.props,this._instanceProps);return z.createElement(le||oe||"div",{className:M,onScroll:B,ref:this._outerRefSetter,style:ud({position:"relative",height:O,width:ne,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:T},K)},z.createElement(F||P||"div",{children:te,ref:L,style:{height:he?"100%":ye,pointerEvents:se?"none":void 0,width:he?ye:"100%"}}))},I._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var C=this._getRangeToRender();this._callOnItemsRendered(C[0],C[1],C[2],C[3])}if("function"==typeof this.props.onScroll){var L=this.state;this._callOnScroll(L.scrollDirection,L.scrollOffset,L.scrollUpdateWasRequested)}},I._getRangeToRender=function(){var C=this.props,A=C.itemCount,M=C.overscanCount,T=this.state,O=T.isScrolling,L=T.scrollDirection,F=T.scrollOffset;if(0===A)return[0,0,0,0];var P=g(this.props,F,this._instanceProps),q=y(this.props,P,F,this._instanceProps),$=O&&"backward"!==L?1:Math.max(1,M),Q=O&&"forward"!==L?1:Math.max(1,M);return[Math.max(0,P-$),Math.max(0,Math.min(A-1,q+Q)),P,q]},D}(z.PureComponent)).defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},o}({getItemOffset:function(i,o){return o*i.itemSize},getItemSize:function(i,o){return i.itemSize},getEstimatedTotalSize:function(i){return i.itemSize*i.itemCount},getOffsetForIndexAndAlignment:function(i,o,a,u,f,p){var x=i.itemSize,D="horizontal"===i.direction||"horizontal"===i.layout?i.width:i.height,I=Math.max(0,i.itemCount*x-D),C=Math.min(I,o*x),A=Math.max(0,o*x-D+x+p);switch("smart"===a&&(a=u>=A-D&&u<=C+D?"auto":"center"),a){case"start":return C;case"end":return A;case"center":var M=Math.round(A+(C-A)/2);return M<Math.ceil(D/2)?0:M>I+Math.floor(D/2)?I:M;default:return u>=A&&u<=C?u:u<A?A:C}},getStartIndexForOffset:function(i,o){return Math.max(0,Math.min(i.itemCount-1,Math.floor(o/i.itemSize)))},getStopIndexForStartIndex:function(i,o,a){var p=i.itemCount,g=i.itemSize,E=Math.ceil((("horizontal"===i.direction||"horizontal"===i.layout?i.width:i.height)+a-o*g)/g);return Math.max(0,Math.min(p-1,o+E-1))},initInstanceProps:function(i){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(i){}});const iC="#f1f1f1",Hb={styledScrollbars:"".concat("ListBox","-styledScrollbars")};function Gb(i){let{renderProps:o,layoutOptions:a,maxCount:u,columnCount:f,rowCount:p,overflowDisclaimer:g,qCardinal:y,dataOffset:b}=i;const x="column"===(null==a?void 0:a.layoutOrder)&&"singleColumn"!==a.dataLayout,_=((i,o)=>void 0!==(null==i?void 0:i.visibleRowStopIndex)||void 0!==i.visibleColumnStopIndex?o?i.visibleColumnStopIndex:i.visibleRowStopIndex:i.visibleStopIndex)(o,x),E=x?u.column:u.row,D=(x?f:p)>=E,I=((i,o,a,u)=>i===o*a+u+a)(y,_,x?p:f,b),C=!!b&&((i,o)=>void 0!==(null==i?void 0:i.visibleRowStartIndex)||void 0!==i.visibleColumnStartIndex?o?0===i.visibleColumnStartIndex:0===i.visibleRowStartIndex:0===i.visibleStartIndex)(o,x);g.set(D&&!I&&_>=E-1||C||g.state.show)}const{StyledFixedSizeList:jI,StyledFixedSizeGrid:BI}=function(){const i=o=>({scrollbarColor:"".concat("#BBB"," ").concat(iC),overflow:o?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:iC},"&::-webkit-scrollbar-thumb":{backgroundColor:"#BBB",borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:Wf(rC,{shouldForwardProp:o=>"scrollDisabled"!==o})(o=>{let{scrollDisabled:a}=o;return{["&.".concat(Hb.styledScrollbars)]:i(a)}}),StyledFixedSizeGrid:Wf(nC,{shouldForwardProp:o=>"scrollDisabled"!==o})(o=>{let{scrollDisabled:a}=o;return{["&.".concat(Hb.styledScrollbars)]:i(a)}})}}(),Ub=i=>{const o=z.useMemo(()=>"text"in i?i:{},[i]);return z.useMemo(()=>((i,o)=>{const a=(()=>{const f=document.createDocumentFragment(),p=document.createElement("canvas");return f.appendChild(p),p.getContext("2d")})();if(a.font=o,Array.isArray(i))return Math.max(...i.map(f=>a.measureText(f).width));const u=a.measureText(i);return Math.ceil(u.width||0)})(o.text,o.font||"12px Source Sans Pro"),[o.text,o.font])};function Rm(i){return i?Array("number"==typeof i?i:i.qListObject.qDimensionInfo.qApprMaxGlyphCount).fill("M").join(""):""}function Wb(i){let{isGridMode:o,dense:a}=i,u=a?20:o?32:29;return o&&(u+=4),u}const[qI,VI]=bo({});function aC(i){const o="".concat(i.id),[a]=qI();return{setStoreValue:(u,f)=>a.set("".concat(o,"/").concat(u),f),getStoreValue:u=>a.get("".concat(o,"/").concat(u))}}const lC=He(Gn,{shouldForwardProp:i=>!["width","dense"].includes(i)})(i=>{let{width:o,dense:a}=i;return de({minWidth:"".concat(o,"px"),textAlign:"center",fontSize:"".concat(a?"12px":"14px")},a&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:o})});function $I(i){let{width:o,text:a,dense:u,tooltip:f}=i;const{translator:p}=z.useContext(sr);return Y.createElement(zl,{title:f?p.get(a):""},Y.createElement(lC,{width:o,dense:u,component:"div",variant:"body1",py:"12px"},p.get(a)))}var Kb,cC,uC,qd={},ps={exports:{}},gs={},ms=ao(pR);var fC=Ai(function dC(){if(uC)return qd;uC=1;var u,i=(Kb||(Kb=1,(u=ps).exports=function(f){return f&&f.__esModule?f:{default:f}},u.exports.__esModule=!0,u.exports.default=u.exports),ps.exports);Object.defineProperty(qd,"__esModule",{value:!0}),qd.default=void 0;var o=i(function ys(){return cC||(cC=1,function(i){Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return o.createSvgIcon}});var o=ms}(gs)),gs}()),a=Gi();return qd.default=(0,o.default)((0,a.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),qd}());const HI=He(j0)(i=>{let{theme:o,left:a}=i;return{position:"absolute",bottom:"12px",display:"flex",border:"1px solid ".concat(o.palette.divider),width:"calc(100% - 11px)",left:a}}),GI=He("div")(()=>({paddingLeft:"6px",flexGrow:1})),UI=He("div")(i=>{let{dense:o}=i;return{display:"flex",alignItems:"".concat(o?"center":"flex-start")}}),WI=He(fC)(()=>({fontSize:"14px"}));function Qb(i){let{text:o,dismiss:a,dense:u,parentWidth:f=0}=i;const p="function"==typeof a,g=u?370:282,y=Math.max(f/2-g/2,0),b=Math.min(g,f)-42;return Y.createElement(HI,{left:y,style:{maxWidth:g}},Y.createElement(GI,null,Y.createElement($I,{text:o,dense:u,width:b,tooltip:u&&f<g})),Y.createElement(UI,{dense:u},p&&Y.createElement(xo,{"aria-label":"close",onClick:()=>a()},Y.createElement(WI,null))))}function Yb(i){let{itemWidth:o,layout:a,frequencyMode:u}=i;const f=o>80,{frequencyEnabled:p=!1}=(null==a?void 0:a.qListObject)||{},g=!["N",void 0].includes(u);return!(!f||!g&&!p)}const hC=i=>{const o=(a=i)&&(/^[A-Za-z][A-Za-z0-9_]*$/.test(a)?a:"[".concat(a.replace(/\]/g,"]]"),"]"));var a;return"Max(AGGR(Count(".concat(o,"), ").concat(o,"))")},pC=(i,o)=>{const a="fetch"===(null==(y=o)?void 0:y.frequencyMax),[u,f]=z.useState(),[p,g]=z.useState(a);var y;return z.useEffect(()=>{!a||qe(function*(){const y=yield(b=qe(function*(x,_){const E=x.qListObject.qDimensionInfo,I=hC(E.qGroupFieldDefs[E.qGroupPos]);return(yield _.evaluateEx(I)).qNumber}),function(x,_){return b.apply(this,arguments)})(o,i);var b;f(y),g(!1)})()},[a&&o]),{frequencyMax:a?u:null==o?void 0:o.frequencyMax,awaitingFrequencyMax:p}},gC=["isLoadingData"],QI=He("div")(()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}}));function Zb(i){var o,a;let{model:u,app:f,constraints:p,layout:g,selections:y,selectionState:b,direction:x,checkboxes:_,height:E,width:D,frequencyMode:I,update:C,fetchStart:A,postProcessPages:M,calculatePagesHeight:T=!1,keyboard:O={},showGray:L=!0,scrollState:F,keyScroll:P={state:{},reset:()=>{}},currentScrollIndex:q={set:()=>{}},renderedCallback:$,onCtrlF:Q,showSearch:X,isModal:ae,styles:le}=i;const{translator:oe}=z.useContext(sr),[K,U]=z.useState(!1),ne=!(!g||!g.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:se=_,histogram:he}=null!=g?g:{},B=z.useRef(null),G=z.useRef({queue:[],validPages:!1,dataOffset:0}),Z=z.useRef({pages:[]}),{frequencyMax:re,awaitingFrequencyMax:te}=pC(f,g),Se=gl(function(rt){let{local:_t,loaderRef:Gt,model:bt,fetchStart:Ct,scrollTimeout:on,postProcessPages:Un,listData:Tn}=rt;const[jn,zt]=z.useState(!1),[vn,Bn]=z.useState([]);let[cn]=z.useState(0);const On=(Wn,Qn)=>{const vr=_t.current.dataOffset;_t.current.queue.push({start:Wn+vr,stop:Qn+vr});const un=!!Gt.current&&Gt.current._listRef&&Gt.current._listRef.state.isScrolling;return _t.current.queue.length>10&&_t.current.queue.shift(),clearTimeout(_t.current.timeout),zt(!0),new Promise(lt=>{_t.current.timeout=setTimeout(()=>{const St=_t.current.queue.slice(-1)[0],Zi=bt.getListObjectData("/qListObjectDef",[{qTop:St.start>cn?St.start-cn:0,qHeight:cn,qLeft:0,qWidth:1},{qTop:St.start,qHeight:cn,qLeft:0,qWidth:1}]).then(Hr=>{const ai=Un?Un(Hr):Hr;_t.current.validPages=!0,Tn.current.pages=ai,Bn(ai),zt(!1),lt()});Ct&&Ct(Zi)},un?on:0)})};return{loadMoreItems:{with(Wn){let{minimumBatchSize:Qn}=Wn;return Qn&&(cn=Qn),On}},pages:vn,isLoading:jn}}({local:G,loaderRef:B,model:u,fetchStart:A,scrollTimeout:0,postProcessPages:M,listData:Z}),gC),{getStoreValue:Ae,setStoreValue:Le}=aC(u),Ne=z.useCallback(Se.loadMoreItems,[g]),[Ve,Re]=z.useState({show:!1,dismissed:!1}),[Me,nt]=z.useState([]);null!=Se&&Se.pages&&b.update({setPages:nt,pages:Se.pages,isSingleSelect:ne,layout:g});const Ge=null==g?void 0:g.qListObject.qDimensionInfo.qCardinal;(null!=Se&&Se.pages.length&&!te||0===Ge)&&(null==$||$());const yt=z.useCallback(rt=>{if(null==Me||!Me.length||!G.current.validPages)return!1;G.current.checkIdx=rt;const _t=bt=>bt.qArea.qTop<=rt&&rt<bt.qArea.qTop+bt.qArea.qHeight,Gt=Me.filter(bt=>_t(bt))[0];return Gt&&_t(Gt)},[g,Me]),{interactionEvents:Rt,select:Bt}=function CI(i){var o;let{selectionState:a,selections:u,checkboxes:f=!1,doc:p=document,loaderRef:g}=i;const y=z.useRef({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});z.useEffect(()=>{var L;if(null===(L=g.current)||void 0===L||null===(L=L._listRef)||void 0===L||!L._outerRef)return;const F=Q=>Q.preventDefault(),P=Q=>Q.preventDefault(),q=Q=>Q.preventDefault(),$=g.current._listRef._outerRef;return $.addEventListener("gesturestart",F),$.addEventListener("gesturechange",P),$.addEventListener("gestureend",q),()=>{$.removeEventListener("gesturestart",F),$.removeEventListener("gesturechange",P),$.removeEventListener("gestureend",q)}},[null===(o=g.current)||void 0===o||null===(o=o._listRef)||void 0===o?void 0:o._outerRef]);const b=function(){var L=qe(function*(){var F;return(null===(F=a.selectDisabled)||void 0===F||!F.call(a))&&(a.setSelectableValuesUpdating(),Tb({selections:u,elemNumbers:y.current.elemNumbers,isSingleSelect:a.isSingleSelect,toggle:y.current.toggle}))});return function(){return L.apply(this,arguments)}}(),x=(L,F)=>function(P,q){if(!P)return[];if(P.length<=1)return P;const{min:$,max:Q}=function(X,ae){let le=1/0,oe=-1/0;return X.forEach(K=>{const U=ae.indexOf(K);le=U<le?U:le,oe=U>oe?U:oe}),{min:le,max:oe}}(P,q);return q.slice($,Q+1)}([L,F],function(P){if(!P||!P.length)return[];const q=P.map($=>$.qMatrix.map(Q=>{const[{qElemNumber:X}]=Q;return X}));return Mb(q)}(a.enginePages)),_=L=>{const{startElemNumber:F}=y.current;if(F===L)return;const P=x(y.current.startElemNumber,L);a.updateItems(P,!0,y.current.elemNumbers)},E=z.useCallback(L=>{if(a.selectDisabled())return;const F=+L.target.getAttribute("data-n"),P=!a.isSingleSelect&&xm(L.nativeEvent);y.current.elemNumbers=[F],y.current.toggle=P,P||a.clearItemStates(!0),a.updateItem(F),y.current.active=!1,b()},[]),D=z.useCallback(L=>{if(0!==L.button||a.selectDisabled())return;const F=+L.currentTarget.getAttribute("data-n"),P=!a.isSingleSelect&&xm(L);var q;y.current.isRange=!1,y.current.startElemNumber=F,y.current.elemNumbers=[F],y.current.toggle=P,y.current.active=!0,P||a.clearItemStates(!0),a.updateItem(F),a.isSingleSelect&&(y.current.active=!1,b()),((q=L).ctrlKey||q.metaKey)&&(L.currentTarget.focus(),q.preventDefault())},[]),I=z.useCallback(L=>{if(0===L.button&&y.current.active){if(y.current.active=!1,y.current.isRange){const F=+L.currentTarget.getAttribute("data-n");_(F)}b()}},[]),C=z.useCallback(L=>{0===L.button&&y.current.active&&(y.current.active=!1,b())},[]),A=z.useCallback(L=>{if(!y.current.active)return;y.current.isRange||(y.current.isRange=!0,a.isSelected(y.current.startElemNumber)||(a.updateItem(y.current.startElemNumber,!0),y.current.elemNumbers=[]));const F=+L.currentTarget.getAttribute("data-n");_(F)},[]),M=z.useCallback(L=>{var F,P;if(y.current.active||y.current.isRange||a.isSingleSelect||L.touches.length<=1)return;if(L.touches.length>2)return void b();const q=Number(null===(F=L.touches[0].target)||void 0===F||null===(F=F.closest(ME))||void 0===F?void 0:F.getAttribute("data-n")),$=Number(null===(P=L.touches[1].target)||void 0===P||null===(P=P.closest(ME))||void 0===P?void 0:P.getAttribute("data-n"));Number.isNaN(q)||Number.isNaN(q)?b():(y.current.active=!0,x(q,$).length<7&&(y.current.touchRangeSmall=!0),y.current.elemNumbers=[],y.current.touchElemNumbers=[q,$])},[]),T=z.useCallback(()=>{if(2!==y.current.touchElemNumbers.length)return;if(y.current.touchRangeSmall)return y.current.touchRangeSmall=!1,y.current.touchElemNumbers=[],void(y.current.active=!1);const[L,F]=y.current.touchElemNumbers;y.current.startElemNumber=L,_(F),y.current.touchElemNumbers=[],y.current.active=!1,y.current.toggle=!0,b()},[]);z.useEffect(()=>(p.addEventListener("mouseup",C),()=>{p.removeEventListener("mouseup",C)}),[C]),z.useEffect(()=>{const L=()=>{a.clearItemStates(!1)},F=()=>{a.clearItemStates(!0),a.triggerStateChanged()};return u.on("clearItemStates",L),u.on("deactivated",L),u.on("cleared",F),()=>{u.removeListener("clearItemStates",L),u.removeListener("deactivated",L),u.removeListener("cleared",F)}},[u]);const O={};return Object.assign(O,f?{onChange:E}:{onMouseUp:I,onMouseDown:D,onMouseEnter:A,onTouchStart:M,onTouchEnd:T}),{interactionEvents:O,select:(L=qe(function*(){var F;let P=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],q=arguments.length>1&&void 0!==arguments[1]&&arguments[1],$=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(null!==(F=a.selectDisabled)&&void 0!==F&&F.call(a))return!1;const Q=!a.isSingleSelect&&xm(null==$?void 0:$.nativeEvent);Q||a.clearItemStates(!0);const X=[];return a.updateItems(P,q,X),a.setSelectableValuesUpdating(),Tb({selections:u,elemNumbers:q?X:P,isSingleSelect:a.isSingleSelect,toggle:Q})}),function(){return L.apply(this,arguments)})};var L}({selectionState:b,selections:y,checkboxes:se,doc:document,loaderRef:B}),{layoutOptions:ze={}}=g||{};let It=!0;ze.dataLayout&&(It="singleColumn"===ze.dataLayout||"row"===(null==ze?void 0:ze.layoutOrder));const ct="grid"===(null==ze?void 0:ze.dataLayout),Ht=rt=>{const _t=de({},It?{rowIndex:rt}:{columnIndex:rt});B.current._listRef.scrollToItem(ct?_t:rt)},xt=()=>{if(G.current.queue=[],G.current.validPages=!1,B.current){B.current.resetloadMoreItemsCache(!0);const rt="overflowEnd"===P.state.scrollPosition;if(g&&g.qSelectionInfo.qInSelections||rt)return void(rt&&P.reset());G.current.dataOffset=0,Ht(0)}};C&&C.call(null,xt),z.useEffect(()=>{F&&!K&&B.current&&(B.current._listRef.scrollToItem(F.initScrollPos),U(!0))},[B.current]),z.useEffect(()=>{xt()},[g,G.current.dataOffset]);let st=100;const ft="grid"!==ze.dataLayout,ht=null==g||null===(o=g.qListObject.qSize)||void 0===o?void 0:o.qcy,at=function(rt){let{pages:_t,minimumBatchSize:Gt,count:bt,calculatePagesHeight:Ct=!1}=rt;return(null!=_t&&_t.length&&Ct?(i=>{let{pages:o=[],minimumBatchSize:a,count:u}=i;const f=o.some(g=>g.qArea.qHeight<a),p=Math.max(...o.map(g=>g.qArea.qTop+g.qArea.qHeight));return f?p:u})({pages:_t,minimumBatchSize:Gt,count:bt}):bt)||0}({pages:Me,minimumBatchSize:st,count:ht,calculatePagesHeight:T});let gt=Yb({itemWidth:D,layout:g,frequencyMode:I});const $e=Me.some(_t=>{let{qMatrix:Gt}=_t;return Gt.some(bt=>{var Ct;let[on]=bt;return!(null===(Ct=on.qFrequency)||void 0===Ct||!Ct.match("%"))})})?"P":"-",Ke=function zd(i){let{layout:o,width:a,height:u,listCount:f,count:p,freqIsAllowed:g,checkboxes:y,styles:b}=i;const{layoutOptions:x={}}=o||{},{layoutOrder:_,maxVisibleRows:E={},maxVisibleColumns:D,dense:I,dataLayout:C}=x,{fontSize:A="12px",fontFamily:M="Source sans pro"}=(null==b?void 0:b.content)||{},T="".concat(A," ").concat(M),O=Ub({text:Rm(o),font:T}),L=Ub({text:Rm(5),font:T}),F=Ub({text:Rm(8),font:T}),P=g?L:0,q=y?20:0;let $=56+P+q;!y&&$>=80&&($+=20);let Q,X,ae,le,oe=O+18+P+q;!y&&oe>=80&&(oe+=20),oe=Math.min(150,Math.max(oe,$));const K=Wb({isGridMode:"grid"===C,dense:I}),U=null!=u?u:8*K;if(_){let G=a;"row"===_?(Q={overflowX:"hidden"},G+=8,({rowCount:le,columnWidth:ae,columnCount:X}=function(Z){let{maxVisibleColumns:re,listCount:te,containerWidth:ce,columnAutoWidth:ye,itemMinWidth:Se}=Z;const Ae=(null==re?void 0:re.maxColumns)||3,Le=ce-10;let Ne;const Ve=Math.min(te,Math.max(1,Math.round(Le/Math.max(Se,ye))));Ne=!1!==(null==re?void 0:re.auto)?Ve:Math.min(te,Ae,Ve),Ne=Math.max(Ne,1);const Re=Le/Ne;return{rowCount:Math.ceil(te/Ne),columnWidth:Re,columnCount:Ne}}({maxVisibleColumns:D,listCount:f,containerWidth:G,columnAutoWidth:oe,itemMinWidth:$}))):(Q={overflowY:"hidden"},({rowCount:le,columnWidth:ae,columnCount:X}=function(Z){let re,{maxVisibleRows:te,itemHeight:ce,listCount:ye,listHeight:Se,columnAutoWidth:Ae,containerWidth:Le,itemMinWidth:Ne}=Z;const Ve=(null==te?void 0:te.maxRows)||3,Re=Math.floor(Se/ce);re=!1!==te.auto?Re:Math.min(ye,Ve,Re),re=Math.max(re,1);const Me=Math.ceil(ye/re);return{columnWidth:Math.max(Ae,Le/Me,Ne),columnCount:Me,rowCount:re}}({maxVisibleRows:E,itemHeight:K,listCount:f,listHeight:U,columnAutoWidth:oe,containerWidth:G,itemMinWidth:$})))}X=("singleColumn"===C?1:X)||1,le=("singleColumn"===C?p:le)||f;const ne=x.dense?838e3:577e3;le=Math.min(le,ne);const se=Math.floor(3355e4/ae);return X=Math.min(X,se)||1,{columnCount:X,columnWidth:ae,rowCount:le,overflowStyling:Q,itemHeight:K,listHeight:U,listWidth:a,scrollBarWidth:10,count:p,listCount:Math.min(f,le*X),maxCount:{row:ne,column:se},itemPadding:4,textWidth:O,freqMinWidth:L,freqMaxWidth:F}}({layout:g,width:D,height:E,listCount:at,count:ht,freqIsAllowed:gt,checkboxes:se,styles:le});Ke.columnWidth&&(gt=Yb({itemWidth:Ke.columnWidth,layout:g,frequencyMode:I}));const{listCount:hn}=Ke;Le("listCount",hn);const zn=Ae("inputText"),qn=function(rt){let{layout:_t,searchInputText:Gt,listCount:bt}=rt;const{translator:Ct}=z.useContext(sr),on=[];if(null!=Gt&&Gt.length){const jn=function(vn){let Bn;switch(vn){case 0:Bn="Listbox.NoMatchesForYourTerms";break;case 1:Bn="ScreenReader.OneSearchResult";break;default:Bn="ScreenReader.ManySearchResults"}return Bn}(bt),zt=Ct.get(jn,[bt]);on.push(zt)}const Un=function(jn){var zt;let{layout:vn,translatorDynamic:Bn}=jn;const{qStateCounts:cn={}}=(null==vn||null===(zt=vn.qListObject)||void 0===zt?void 0:zt.qDimensionInfo)||{},On=cn.qSelected+cn.qSelectedExcluded+cn.qLocked+cn.qLockedExcluded;let Wn;switch(On){case 0:Wn="ScreenReader.ZeroSelected";break;case 1:Wn="ScreenReader.OneSelected";break;default:Wn="ScreenReader.ManySelected"}return Bn.get(Wn,[On])}({layout:_t,translatorDynamic:Ct});return on.push(Un),on.filter(jn=>!(null==jn||!jn.length)).join(". ")}({layout:g,searchInputText:zn,listCount:hn}),gr=rt=>{const{scrollIndex:_t,offset:Gt,triggerRerender:bt}=function(Ct){let on,{position:Un,isRow:Tn,sizes:jn,layout:zt,offset:vn}=Ct,Bn=!1,cn=null!=vn?vn:0;switch(Un){case"start":on=0;break;case"end":on=Tn?jn.rowCount:jn.columnCount;break;case"overflowStart":cn=0,on=0,Bn=!0;break;case"overflowEnd":cn=((i,o)=>i.qListObject.qDimensionInfo.qCardinal-o)(zt,jn.listCount),on=zt.qListObject.qDimensionInfo.qCardinal,Bn=!0}return{scrollIndex:on,offset:cn,triggerRerender:Bn}}({position:rt,isRow:It,sizes:Ke,layout:g,offset:G.current.dataOffset});G.current.dataOffset=Gt,bt&&b.triggerStateChanged(),Ht(_t)};z.useEffect(()=>{const rt=P.state;rt.up?Ht(q.state.start-rt.up):rt.down?Ht(q.state.stop+rt.down):rt.scrollPosition&&gr(rt.scrollPosition),"overflowEnd"!==rt.scrollPosition&&P.reset()},[P.state.up,P.state.down,P.state.scrollPosition]);const{textAlign:Ir}=(null==g?void 0:g.qListObject.qDimensionInfo)||{},[Mr,pn]=z.useState({first:!1,last:!1}),{List:nn,Grid:Jt}=function(rt){let{layout:_t,width:Gt,checkboxes:bt,local:Ct,isVertical:on,pages:Un,selectionState:Tn,interactionEvents:jn,deducedFrequencyMode:zt,histogram:vn,isSingleSelect:Bn,select:cn,selectAll:On,onCtrlF:Wn,textAlign:Qn,selections:vr,keyboard:un,showGray:lt,scrollState:St,direction:Zi,sizes:Hr,listCount:ai,overflowDisclaimer:Lt,setScrollPosition:Pt,focusListItems:gp,setCurrentScrollIndex:Vn,constraints:Xa,frequencyMax:Sn,freqIsAllowed:uw,translator:au,showSearch:cf,isModal:Fi,styles:ko}=rt;const{layoutOptions:Ul={}}=_t||{},{columnWidth:uf,listHeight:aa,itemHeight:la,rowCount:Go,columnCount:xs}=Hr||{},dw=("grid"===Ul.dataLayout?uf:Gt)>80,df={direction:"rtl"===Zi?"rtl":"ltr",useIsScrolling:!0,className:Hb.styledScrollbars},mp=null==_t?void 0:_t.qListObject.qDimensionInfo.qLocked,yp=aa<=la,Ja=de(de({isLocked:mp,column:!on,pages:Un},mp||Tn.selectDisabled()?{}:jn),{},{checkboxes:bt,layoutOptions:Ul,deducedFrequencyMode:zt,freqIsAllowed:uw,isSingleSelect:Bn,textAlign:Qn,sizes:Hr,actions:{select:cn,confirm:()=>null==vr?void 0:vr.confirm.call(vr),cancel:()=>null==vr?void 0:vr.cancel.call(vr),setScrollPosition:Pt,selectAll:On,onCtrlF:Wn},frequencyMax:Sn,histogram:vn,keyboard:un,showGray:lt,showTick:dw,dataOffset:Ct.current.dataOffset,focusListItems:gp,direction:Zi,translator:au,showSearch:cf,isModal:Fi,styles:ko,fillHeight:yp});return{List:lu=>{let{onItemsRendered:bn,ref:_s}=lu;return Ct.current.listRef=_s,Y.createElement(jI,Er({},df,{dataTestid:"fixed-size-list",scrollDisabled:null==Xa?void 0:Xa.active,height:aa,width:Gt,itemCount:ai,itemData:de(de({},Ja),{},{listCount:ai}),itemSize:la,onItemsRendered:Xi=>{var Uo;Vn({start:Xi.visibleStartIndex,stop:Xi.visibleStopIndex}),St&&St.setScrollPos(Xi.visibleStopIndex),Gb({renderProps:Xi,layoutOptions:Ul,maxCount:Hr.maxCount,columnCount:xs,rowCount:Go,overflowDisclaimer:Lt,qCardinal:null==_t||null===(Uo=_t.qListObject)||void 0===Uo||null===(Uo=Uo.qDimensionInfo)||void 0===Uo?void 0:Uo.qCardinal,dataOffset:Ct.current.dataOffset}),bn(de({},Xi))},ref:_s}),qb)},Grid:lu=>{let{onItemsRendered:bn,ref:_s}=lu;const{overflowStyling:Xi,scrollBarWidth:Uo}=Hr,{layoutOrder:vp}=Ul||{},ff=Math.min(aa,Go*la+Uo);return Ct.current.listRef=_s,Y.createElement(BI,Er({},df,{dataTestid:"fixed-size-grid",scrollDisabled:null==Xa?void 0:Xa.active,height:ff,width:Gt,columnCount:xs,columnWidth:uf,rowCount:Go,rowHeight:la,style:de({},Xi),itemData:de(de({},Ja),{},{column:void 0,columnCount:xs,rowCount:Go}),onItemsRendered:ca=>{var ua;const el="row"===vp;Vn({start:el?ca.visibleRowStartIndex:ca.visibleColumnStartIndex,stop:el?ca.visibleRowStopIndex:ca.visibleColumnStopIndex});const da=function(fa){const{renderProps:ha,scrollState:pa,layoutOrder:cu,rowCount:Ss,columnCount:vy}=fa,{overscanRowStartIndex:uu,overscanRowStopIndex:ga,overscanColumnStartIndex:hf,overscanColumnStopIndex:du,visibleStopIndex:fw}=ha;let bp,Es,tl,ma;return pa&&pa.setScrollPos(fw),"column"===cu?(bp=hf*Ss,Es=uu,tl=du*Ss,ma=ga):(bp=hf,Es=uu*vy,tl=du,ma=ga*vy),{visibleStartIndex:bp+Es,visibleStopIndex:tl+ma}}({renderProps:ca,scrollState:St,layoutOrder:vp,rowCount:Go,columnCount:xs});Gb({renderProps:ca,layoutOptions:Ul,maxCount:Hr.maxCount,columnCount:xs,rowCount:Go,overflowDisclaimer:Lt,qCardinal:null==_t||null===(ua=_t.qListObject)||void 0===ua||null===(ua=ua.qDimensionInfo)||void 0===ua?void 0:ua.qCardinal,dataOffset:Ct.current.dataOffset}),bn(da)},ref:_s}),qb)}}}({direction:x,layout:g,width:D,checkboxes:se,deducedFrequencyMode:$e,histogram:he,keyboard:O,showGray:L,interactionEvents:Rt,select:Bt,selectAll:()=>{b.clearItemStates(!1),u.selectListObjectAll("/qListObjectDef")},onCtrlF:Q,textAlign:Ir,isVertical:ft,pages:Me,selectionState:b,isSingleSelect:ne,selections:y,scrollState:F,local:G,sizes:Ke,listCount:hn,overflowDisclaimer:{state:Ve,set:rt=>Re(_t=>de(de({},_t),{},{show:rt}))},setScrollPosition:gr,focusListItems:{first:Mr.first,setFirst:rt=>pn(_t=>de(de({},_t),{},{first:rt})),last:Mr.last,setLast:rt=>pn(_t=>de(de({},_t),{},{last:rt}))},setCurrentScrollIndex:q.set,constraints:p,frequencyMax:re,freqIsAllowed:gt,translator:oe,showSearch:X,isModal:ae,styles:le}),{columnWidth:mn,listHeight:gn,itemHeight:yn}=Ke||{};return ft||(st=function(rt){let{width:_t,columnWidth:Gt,listHeight:bt,itemHeight:Ct}=rt;return Math.ceil(_t/Gt)*Math.ceil(bt/Ct)*2}({width:D,columnWidth:mn,listHeight:gn,itemHeight:yn})),Y.createElement(QI,null,Y.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},qn),!hn&&Ge>0&&Y.createElement($I,{width:D,text:"Listbox.NoMatchesForYourTerms"}),Y.createElement(AE,{isItemLoaded:yt,itemCount:hn||1,loadMoreItems:Ne.with({minimumBatchSize:st}),threshold:0,minimumBatchSize:st,ref:B,role:"grid"},ft?nn:Jt),Ve.show&&!Ve.dismissed&&Y.createElement(Qb,{text:"Listbox.ItemsOverflow",dismiss:()=>Re(rt=>de(de({},rt),{},{dismissed:!0})),parentWidth:null==B||null===(a=B.current)||void 0===a||null===(a=a._listRef)||void 0===a||null===(a=a.props)||void 0===a?void 0:a.width,dense:null==ze?void 0:ze.dense}))}const YI=i=>de(de({},i),{},{shapes:[{type:"path",attrs:{d:"M15.4,9 C15.8,9 16,9.3 16,9.6 L16,15.4 C16,15.7 15.8,16 15.4,16 L9.6,16 C9.3,16 9,15.8 9,15.4 L9,9.6 C9,9.3 9.3,9 9.6,9 L15.4,9 Z M15,10 L10,10 L10,15 L15,15 L15,10 Z M6.5,0 C6.8,0 7,0.3 7,0.6 L7,6.4 C7,6.8 6.8,7 6.5,7 L0.6,7 C0.3,7 0,6.8 0,6.5 L0,0.6 C0,0.3 0.3,0 0.6,0 L6.5,0 Z M6,2.8 C6.3,2.5 6.3,2.1 6.1,1.8 C5.9,1.5 5.4,1.6 5.1,1.9 L3.1,3.9 L2.4,3.2 C2.1,2.9 1.7,2.9 1.4,3.1 C1.2,3.3 1.2,3.8 1.5,4.1 L2.7,5.3 C3,5.6 3.4,5.6 3.7,5.3 L3.8,5.3 L6,2.8 Z M6.5,9 C6.8,9 7,9.3 7,9.6 L7,15.4 C7,15.8 6.8,16 6.5,16 L0.6,16 C0.3,16 0,15.8 0,15.4 L0,9.6 C0,9.3 0.3,9 0.6,9 L6.5,9 Z M6,11.8 C6.3,11.5 6.3,11.1 6.1,10.8 C5.9,10.6 5.4,10.6 5.1,10.8 L3.1,12.8 L2.3,12 C2,11.7 1.6,11.7 1.3,12 C1.1,12.3 1.1,12.7 1.4,13 L2.6,14.2 C2.9,14.5 3.3,14.5 3.6,14.3 L3.7,14.2 L6,11.8 Z M15.4,0 C15.8,0 16,0.3 16,0.6 L16,6.4 C16,6.8 15.8,7 15.4,7 L9.6,7 C9.3,7 9,6.8 9,6.5 L9,0.6 C9,0.3 9.3,0 9.6,0 L15.4,0 Z M15,2.8 C15.3,2.5 15.3,2.1 15.1,1.8 C14.9,1.5 14.4,1.6 14.1,1.9 L12.1,3.9 L11.3,3.1 C11,2.8 10.6,2.8 10.3,3 C10,3.2 10.1,3.7 10.3,4 L11.5,5.2 C11.8,5.5 12.2,5.5 12.5,5.2 L15,2.8 Z"}}]}),mC=i=>de(de({},i),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),Xb=i=>de(de({},i),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),yC=i=>de(de({},i),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]});var Jb=i=>{let{layout:o,model:a,translator:u,selectionState:f,isDirectQuery:p=!1,selections:g}=i;if(o.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];const y="/qListObjectDef",b=()=>{g.isActive()||g.begin(y)};return[{key:"selectAll",type:"menu-icon-button",label:u.get("Selection.SelectAll"),getSvgIconShape:YI,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some(x=>o.qListObject.qDimensionInfo.qStateCounts[x]>0),action:()=>{b(),f.clearItemStates(!1),a.selectListObjectAll(y)}},{key:"selectPossible",type:"menu-icon-button",label:u.get("Selection.SelectPossible"),getSvgIconShape:Xb,enabled:()=>["qOption"].some(x=>o.qListObject.qDimensionInfo.qStateCounts[x]>0),action:()=>{b(),f.clearItemStates(!1),a.selectListObjectPossible(y)}},!p&&{key:"selectAlternative",type:"menu-icon-button",label:u.get("Selection.SelectAlternative"),getSvgIconShape:mC,enabled:()=>["qAlternative"].some(x=>o.qListObject.qDimensionInfo.qStateCounts[x]>0),action:()=>{b(),f.clearItemStates(!1),a.selectListObjectAlternative(y)}},!p&&{key:"selectExcluded",type:"menu-icon-button",label:u.get("Selection.SelectExcluded"),getSvgIconShape:yC,enabled:()=>["qAlternative","qExcluded"].some(x=>o.qListObject.qDimensionInfo.qStateCounts[x]>0),action:()=>{b(),f.clearItemStates(!1),a.selectListObjectExcluded(y)}}].filter(Boolean)};const vC=i=>de(de({},i),{},{shapes:[{type:"path",attrs:{d:"M2,6.5 L3,6.5 C3.55228475,6.5 4,6.94771525 4,7.5 L4,8.5 C4,9.05228475 3.55228475,9.5 3,9.5 L2,9.5 C1.44771525,9.5 1,9.05228475 1,8.5 L1,7.5 C1,6.94771525 1.44771525,6.5 2,6.5 Z M7.5,6.5 L8.5,6.5 C9.05228475,6.5 9.5,6.94771525 9.5,7.5 L9.5,8.5 C9.5,9.05228475 9.05228475,9.5 8.5,9.5 L7.5,9.5 C6.94771525,9.5 6.5,9.05228475 6.5,8.5 L6.5,7.5 C6.5,6.94771525 6.94771525,6.5 7.5,6.5 Z M13,6.5 L14,6.5 C14.5522847,6.5 15,6.94771525 15,7.5 L15,8.5 C15,9.05228475 14.5522847,9.5 14,9.5 L13,9.5 C12.4477153,9.5 12,9.05228475 12,8.5 L12,7.5 C12,6.94771525 12.4477153,6.5 13,6.5 Z"}}]});function e1(i){const o=ri(),a="function"==typeof i.enabled?!i.enabled():!!i.disabled;return{hidden:!0===i.hidden,disabled:a,style:{backgroundColor:i.active?o.palette.btn.active:void 0},hasSvgIconShape:"function"==typeof i.getSvgIconShape}}const bC={className:"njs-cell-action"},wC=Y.forwardRef((i,o)=>{let{ariaExpanded:a=!1,item:u,addAnchor:f=!1}=i;const p=ri(),{hidden:g,disabled:y,style:b,hasSvgIconShape:x}=e1(u);if(g)return null;const _=Number.parseInt(p.spacing(.5),10),E=u.keyboardAction||u.action,D=E?A=>["Enter"].includes(A.key)&&E():null,I=E?A=>[" ","Spacebar"].includes(A.key)&&E():null,C="actions-toolbar-".concat(u.key);return Y.createElement(xo,{ref:f?null:o,title:u.label,onClick:u.action,onKeyDown:D,onKeyUp:I,disabled:y,style:b,className:[bC.className,C].join(" "),size:"large",disableRipple:!0,"aria-expanded":a,"aria-controls":"moreMenuList","data-testid":C},x&&kr(u.getSvgIconShape()),f&&Y.createElement("div",{ref:o,style:{bottom:-_,right:0,position:"absolute",width:"100%",height:0}}))}),t1=i=>de(de({},i),{},{shapes:[{type:"path",attrs:{d:"M9.34535242,8 L13.3273238,11.9819714 C13.6988326,12.3534802 13.6988326,12.955815 13.3273238,13.3273238 C12.955815,13.6988326 12.3534802,13.6988326 11.9819714,13.3273238 L8,9.34535242 L4.01802863,13.3273238 C3.64651982,13.6988326 3.04418502,13.6988326 2.67267621,13.3273238 C2.3011674,12.955815 2.3011674,12.3534802 2.67267621,11.9819714 L6.65464758,8 L2.67267621,4.01802863 C2.3011674,3.64651982 2.3011674,3.04418502 2.67267621,2.67267621 C3.04418502,2.3011674 3.64651982,2.3011674 4.01802863,2.67267621 L8,6.65464758 L11.9819714,2.67267621 C12.3534802,2.3011674 12.955815,2.3011674 13.3273238,2.67267621 C13.6988326,3.04418502 13.6988326,3.64651982 13.3273238,4.01802863 L9.34535242,8 Z"}}]});var xC=i=>kr(t1(i));const _C=i=>de(de({},i),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M9.1661442,6.1661442 C10.7210031,4.61128527 13.2789969,4.61128527 14.8338558,6.1661442 C16.3887147,7.72100313 16.3887147,10.2789969 14.8338558,11.8338558 C13.2789969,13.3887147 10.7210031,13.3887147 9.1661442,11.8338558 C7.61128527,10.2789969 7.61128527,7.77115987 9.1661442,6.1661442 Z M14.1316614,7.72100313 C14.3322884,7.52037618 14.3824451,7.169279 14.1316614,6.9184953 C13.8808777,6.6677116 13.5297806,6.71786834 13.3291536,6.9184953 L12.0250784,8.22257053 L10.7210031,6.9184953 C10.5203762,6.6677116 10.1191223,6.6677116 9.9184953,6.9184953 C9.6677116,7.11912226 9.6677116,7.52037618 9.9184953,7.72100313 L11.2225705,9.02507837 L9.9184953,10.3291536 C9.6677116,10.5297806 9.6677116,10.8808777 9.9184953,11.1316614 C10.169279,11.3824451 10.5203762,11.3824451 10.7210031,11.1316614 L12.0250784,9.82758621 L13.3291536,11.1316614 C13.5297806,11.3824451 13.8808777,11.3824451 14.1316614,11.1316614 C14.3322884,10.9310345 14.3824451,10.5297806 14.1316614,10.3291536 L12.8275862,9.02507837 L14.1316614,7.72100313 Z"}}]});var ZI=i=>kr(_C(i));const SC={icon:"".concat("More","-icon")},JI=He(Mh)(i=>{let{theme:o}=i;return{pointerEvents:"none",["& .".concat(SC.icon," *")]:{color:o.palette.text.primary}}});function eM(i){let{item:o,autoFocus:a,onActionClick:u=(()=>{})}=i;const{hidden:f,disabled:p,hasSvgIconShape:g}=e1(o);return f?null:Y.createElement(gI,{autoFocus:a,title:o.label,onClick:()=>{o.action(),u()},disabled:p,tabindex:"0"},g&&Y.createElement(Rd,{className:SC.icon},kr(o.getSvgIconShape())),Y.createElement(Gn,{noWrap:!0},o.label))}const tM=Y.forwardRef((i,o)=>{let{actions:a=[],show:u=!0,alignTo:f,popoverProps:p={},popoverPaperStyle:g={},onCloseOrActionClick:y=(()=>{}),disablePortal:b=!0}=i;const x=a.length>0,_=a.findIndex(E=>!E.disabled);return x&&Y.createElement(JI,Er({},p,{onClose:y,ref:o,open:u,anchorEl:f.current,getContentAnchorEl:b?null:void 0,container:b?f.current:void 0,disablePortal:b,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:"njs-action-toolbar-more"},paper:{style:de({pointerEvents:"auto",maxWidth:"250px"},g)}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}),Y.createElement(uI,{id:"moreMenuList"},a.map((E,D)=>Y.createElement(eM,{key:D,item:E,autoFocus:D===_,onActionClick:y}))))}),EC="ActionsToolbar",Mm={item:"".concat(EC,"-item"),itemSpacing:"".concat(EC,"-itemSpacing")},iM=He(Mh)(i=>{let{theme:o}=i;return{["& .".concat(Mm.itemSpacing)]:{padding:o.spacing(0,.25)}}}),oM_className="njs-action-toolbar-popover",Tm=Y.forwardRef((i,o)=>{let{className:a,ariaExpanded:u=!1,actions:f=[],addAnchor:p=!1,isRtl:g=!1}=i;return f.length>0?Y.createElement(tt,{item:!0,container:!0,gap:0,flexDirection:g?"row-reverse":"row",wrap:"nowrap",className:a},f.map((y,b)=>Y.createElement(tt,{item:!0,key:y.key,className:"".concat(Mm.itemSpacing," ").concat(Mm.item)},Y.createElement(wC,{ariaExpanded:u,key:y.key,item:y,ref:0===b?o:null,addAnchor:p})))):null}),sM={pointerEvents:"none"},aM={vertical:"bottom",horizontal:"right"};function n1(i){var o,a;let{show:u=!0,actions:f=[],maxItems:p=3,selections:g={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},extraItems:y,more:b={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{},disablePortal:!0},popover:x={show:!1,anchorEl:null},focusHandler:_=null,actionsRefMock:E=null,isRtl:D,autoConfirm:I=!1,layout:C}=i;const A=function(Z){let{api:re,layout:te,onConfirm:ce=(()=>{}),onCancel:ye=(()=>{}),onKeyDeactivate:Se=(()=>{})}=Z;const{translator:Ae}=z.useContext(sr);return[{key:"clear",type:"icon-button",label:Ae.get("Selection.Clear"),enabled:()=>re.canClear(te),action:()=>re.clear(),getSvgIconShape:_C},{key:"cancel",type:"icon-button",label:Ae.get("Selection.Cancel"),enabled:()=>re.canCancel(te),action:()=>{ye(),re.cancel()},keyboardAction:()=>{Se(),ye(),re.cancel()},getSvgIconShape:t1},{key:"confirm",type:"icon-button",label:Ae.get("Selection.Confirm"),enabled:()=>re.canConfirm(te),action:()=>{ce(),re.confirm()},keyboardAction:()=>{Se(),ce(),re.confirm()},getSvgIconShape:TE}]}(de(de({},g),{},{layout:C})),{translator:M,keyboardNavigation:T}=z.useContext(sr),[O,L]=z.useState(!1),F={vertical:12,horizontal:(null!==(o=null===(a=x.anchorEl)||void 0===a?void 0:a.clientWidth)&&void 0!==o?o:0)-7},P=z.useRef(),q=z.useRef(),$=ri(),Q=z.useMemo(()=>({margin:$.spacing(.5,0)})),X=Z=>{const re=P.current||E;if(!re)return null;const te=re.querySelectorAll("button:not(.Mui-disabled)");return te[Z?te.length-1:0]},ae=z.useMemo(()=>function(Z){let{keyboardNavigation:re,focusHandler:te,getEnabledButton:ce,selections:ye,isRtl:Se}=Z;return Ae=>{const{target:Le,nativeEvent:Ne}=Ae,{keyCode:Ve}=Ne;switch(Ve){case Kt.ARROW_LEFT:case Kt.ARROW_DOWN:case Kt.ARROW_RIGHT:case Kt.ARROW_UP:if(Le.classList.contains("njs-cell-action")){const Re=(i=>{const o=i.closest("#actions-toolbar"),a=null==o?void 0:o.querySelectorAll(".njs-cell-action");return Array.from(a).indexOf(i)})(Le);let Me=[Kt.ARROW_LEFT,Kt.ARROW_DOWN].includes(Ve);Me=Se?!Me:Me,(i=>{const o=document.querySelector("#actions-toolbar"),a=null==o?void 0:o.querySelectorAll(".njs-cell-action");!a.length||a[Math.min(Math.max(0,i),a.length-1)].focus()})(Me?Re-1:Re+1)}Ae.stopPropagation(),Ae.preventDefault();break;case Kt.SPACE:Ae.preventDefault();break;case Kt.TAB:re&&null!=te&&te.refocusContent&&(Ae.shiftKey&&ce(!1)===Ae.target||!Ae.shiftKey&&ce(!0)===Ae.target)&&(Ae.preventDefault(),Ae.stopPropagation(),te.refocusContent());break;case Kt.ESCAPE:ye&&(ye.onCancel(),ye.api.cancel(),Ae.preventDefault(),Ae.stopPropagation())}}}({keyboardNavigation:T,focusHandler:_,getEnabledButton:X,selections:g,isRtl:D}),[T,_,X,g,D]);if(z.useEffect(()=>()=>{L(!1)},[x.show,u,g.show]),z.useEffect(()=>{!_||(_.on("focus_toolbar_first",()=>{const Z=X(!1);null==Z||Z.focus()}),_.on("focus_toolbar_last",()=>{const Z=X(!0);null==Z||Z.focus()}))},[]),I)return;let le=b.enabled,oe=b.actions;const K=b.alignTo||q,U=f.filter(Z=>!Z.hidden);if(U.length>p){const Z=U.splice(-(U.length-p)-1);le=!0,oe=[...Z,...b.actions]}if(!g.show&&0===U.length&&!le)return null;const ne={key:"more",label:M.get("Menu.More"),getSvgIconShape:vC,hidden:!1,active:O,enabled:()=>le,action:()=>L(!O)},se=U.length>0,he=oe.length>0,B=se&&g.show||he&&g.show,G=Y.createElement(tt,{ref:P,onKeyDown:ae,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:D?"row-reverse":"row"}},(null==y?void 0:y.length)&&Y.createElement(Tm,{className:"actions-toolbar-extra-actions",actions:y,isRtl:D}),se&&Y.createElement(Tm,{actions:U}),he&&Y.createElement(Tm,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:q,ariaExpanded:O,actions:[ne],addAnchor:!0}),B&&Y.createElement(tt,{item:!0,className:Mm.itemSpacing,style:Q},Y.createElement(WS,{orientation:"vertical"})),g.show&&Y.createElement(Tm,{className:"actions-toolbar-default-actions",actions:A,isRtl:D}),O&&Y.createElement(tM,{show:O,actions:oe,alignTo:K,popoverProps:b.popoverProps,popoverPaperStyle:b.popoverPaperStyle,onCloseOrActionClick:()=>{L(!1)},disablePortal:b.disablePortal}));return x.show?Y.createElement(iM,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:x.show,anchorEl:x.anchorEl,anchorOrigin:F,transformOrigin:aM,hideBackdrop:!0,style:sM,onMouseDown:Z=>{Z.stopPropagation()},slotProps:{paper:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:oM_className,style:{pointerEvents:"auto",padding:$.spacing(.5,.25)}}}},G):u&&G}var r1=i=>kr((o=>de(de({},o),{},{shapes:[{type:"path",attrs:{d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014l-4.128-4.026ZM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0Zm-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6.034 6.034 0 0 1-1.413 1.415Z"}}]}))(i));const Bh="/qListObjectDef",i1=i=>null==i?void 0:i.substring(0,64e3),CC=He(vI,{shouldForwardProp:i=>!["styles","dense","isRtl"].includes(i)})(i=>{let{styles:o,dense:a,isRtl:u}=i,f={};return a&&(f={fontSize:12,"& input":{paddingTop:"5px",paddingBottom:"5px",color:o.search.color,textAlign:u?"right":"left"}}),de({display:"flex",border:"none",fontSize:14,borderRadius:0,backgroundColor:o.search.backgroundColor,backdropFilter:o.background.backgroundImage?o.search.backdropFilter:void 0,paddingLeft:0,paddingRight:0,flexDirection:u?"row-reverse":"row","& fieldset":{borderColor:"".concat(o.search.borderColor),borderWidth:"1px 0 1px 0",borderRadius:0},"&.Mui-focused fieldset":{borderColor:"".concat(o.search.highlightBorderColor," !important")},"& .MuiInputBase-root":de({},o.search),"& *":{color:o.search.color},"& input":{color:o.search.color,textAlign:u?"right":"left"}},f)}),DC=He(xo)(()=>({border:0,padding:"8px",cursor:"pointer",lineHeight:"12px","&:hover":{backgroundColor:"transparent"},":focus-visible":{borderRadius:"4px",boxShadow:"inset 0 0 0 2px rgb(2, 117, 217)"}}));var o1=z.forwardRef(function(i,o){let{popoverOpen:a,selections:u,selectionState:f,model:p,keyboard:g,dense:y=!1,visible:b=!0,autoFocus:x=!0,beginSelectionOnFocus:_=!0,wildCardSearch:E=!1,searchEnabled:D,direction:I,hide:C,styles:A}=i;const{translator:M}=z.useContext(sr),[T,O]=z.useState(""),[L,F]=z.useState(!1),P=z.useRef(),q=z.useRef(),$=M.get("Listbox.Clear.Search"),{getStoreValue:Q,setStoreValue:X}=aC(p),ae="rtl"===I,le=function(){var ne=qe(function*(){try{yield p.abortListObjectSearch(Bh)}finally{O("")}});return function(){return ne.apply(this,arguments)}}();z.useEffect(()=>b?()=>le():()=>{},[b]),z.useEffect(()=>(u.on("deactivated",le),()=>{u.removeListener&&u.removeListener("deactivated",le)}),[]),z.useEffect(()=>{if(L&&P.current){const ne=T.length-1;P.current.setSelectionRange(ne,ne),F(!1)}},[L,P.current]),z.useEffect(()=>{X("inputText",T)},[T]);const oe=function(){var ne=qe(function*(){let se;const he=i1(T),B=yield p.searchListObjectFor(Bh,he);return f.selectDisabled()?B:(B&&he.length&&Q("listCount")>0&&(se=p.acceptListObjectSearch(Bh,!0),u.selectionsMade=!0,f.clearItemStates(!1),O("")),se)});return function(){return ne.apply(this,arguments)}}(),K=()=>{var ne;null===(ne=P.current)||void 0===ne||ne.focus()},U=()=>{le(),K()};return z.useImperativeHandle(o,()=>({focus(){K()}})),b&&!1!==D?Y.createElement(CC,{styles:A,dense:y,isRtl:ae,startAdornment:Y.createElement(hb,{position:"start",sx:{marginLeft:y?"8px":"".concat(9,"px")}},Y.createElement(r1,{size:y?"small":"normal"})),endAdornment:Y.createElement(hb,{position:"end",sx:{marginLeft:0}},""!==T&&Y.createElement(DC,{tabIndex:0,ref:q,title:$,"aria-label":$,onClick:U,onKeyDown:ne=>{const se=ne.currentTarget.closest(".listbox-container");switch(ne.key){case"Enter":U();break;case"Tab":ne.shiftKey?K():Uc(se);break;default:return}ne.preventDefault(),ne.stopPropagation()}},Y.createElement(xC,{size:y?"small":"normal"}))),className:"search",inputRef:P,size:"small",fullWidth:!0,placeholder:M.get("Listbox.Search"),value:T,onFocus:()=>{E&&(O("**"),F(!0)),_&&!f.selectDisabled()&&!u.isModal()&&u.begin("/qListObjectDef")},onChange:(ne=qe(function*(se){const he=i1(se.target.value);return O(he),he.length?p.searchListObjectFor(Bh,he):le()}),function(he){return ne.apply(this,arguments)}),onKeyDown:function(){var ne=qe(function*(se){const{currentTarget:he}=se,B=he.closest(".listbox-container");switch(se.key){case"Enter":oe();break;case"Escape":if(Uc(B),u.cancel(),a)return;break;case"Tab":se.shiftKey?Fd(B)||g.focusSelection():q.current?q.current.focus():Uc(B);break;case"f":case"F":if(!se.ctrlKey&&!se.metaKey)return;C&&(C(),Uc(B));break;default:return}se.preventDefault(),se.stopPropagation()});return function(he){return ne.apply(this,arguments)}}(),autoFocus:x,inputProps:{tabIndex:g.innerTabStops?0:-1,"data-testid":"search-input-field","aria-label":M.get("Listbox.Search.ScreenReaderInstructions")}}):null;var ne});function Om(i){if(!i.session)return[];const{selectionStore:o}=z.useContext(sr),[a]=o.useAppSelectionsStore(),u=i?i.id:null;let f=a.get(u);return z.useEffect(()=>{i&&!f&&(f=function(p){let{app:g,selectionStore:y}=p;const b="".concat(g.id),{modalObjectStore:x,appModalStore:_}=y,E=function(){var C=qe(function*(){let A=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const{model:M,objectSelections:T}=x.get(b)||{};M&&(yield M.endSelections(A),x.clear(b),T.emit("deactivated"))});return function(){return C.apply(this,arguments)}}(),D={begin:(C=qe(function*(A){var M;let{model:T,paths:O,accept:L=!0,objectSelections:F}=A;if(F===(null===(M=x.get(b))||void 0===M?void 0:M.objectSelections))return;E(L),x.set(b,{model:T,objectSelections:F});const P=Array.isArray(O)?O:[O],q=function(){var $=qe(function*(Q){try{yield T.beginSelections(P),x.set(b,{model:T,objectSelections:F})}catch(X){6003!==X.code||Q?x.clear(b):(yield g.abortModal(L),q(!0))}});return function(X){return $.apply(this,arguments)}}();yield q()}),function(M){return C.apply(this,arguments)}),end:E};var C;return _.set(b,D),{model:g,isInModal:()=>!!x.get(b),isModal(C){var A;return C?(null===(A=x.get(b))||void 0===A?void 0:A.objectSelections)===C:!!x.get(b)},forward:()=>D.end().then(()=>g.forward()),back:()=>D.end().then(()=>g.back()),clear:()=>D.end().then(()=>g.clearAll()),clearField(C){let A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$";return D.end().then(()=>g.getField(C,A).then(M=>M.clear()))}}}({app:i,selectionStore:o}),a.set(u,f),a.dispatch(!0))},[i]),[f]}function Vd(i){return Object.keys(ui.prototype).forEach(o=>{i[o]=ui.prototype[o]}),ui.init(i),i}const kC=i=>{let o,{appSelections:a,appModal:u,model:f}=i,p=!1,g=!1;const y={id:f.id,setLayout(b){o=b},begin(b){const x=(()=>{let _=!1;return{isPrevented:()=>_,preventDefault:()=>{_=!0}}})();return this.emit("activate",x),x.isPrevented()?Promise.resolve():(p=!0,this.emit("activated"),u.begin({model:f,paths:b,accept:!0,objectSelections:y}))},clear(){return g=!1,this.emit("cleared"),o.qListObject?f.clearSelections("/qListObjectDef"):f.resetMadeSelections()},confirm(){return g=!1,p=!1,this.emit("confirmed"),this.emit("deactivated"),u.end(!0)},cancel(){return g=!1,p=!1,this.emit("canceled"),this.emit("deactivated"),u.end(!1)},select(b){var x=this;return qe(function*(){const _=x.begin([b.params[0]]);if(!a.isModal())return!1;yield _;const E=yield f[b.method](...b.params);return g="resetMadeSelections"!==b.method,!!E||(f.resetMadeSelections(),!1)})()},canClear:()=>o&&o.qListObject&&o.qListObject.qDimensionInfo?!o.qListObject.qDimensionInfo.qLocked&&!o.qListObject.qDimensionInfo.qIsOneAndOnlyOne:g,canConfirm:()=>o&&o.qListObject&&o.qListObject.qDimensionInfo?!o.qListObject.qDimensionInfo.qLocked:g,canCancel:()=>!(o&&o.qListObject&&o.qListObject.qDimensionInfo&&o.qListObject.qDimensionInfo.qLocked),isActive:()=>p,isModal:()=>a.isModal(y),goModal:b=>u.begin({model:f,paths:b,accept:!1,objectSelections:y}),noModal:function(){return u.end(arguments.length>0&&void 0!==arguments[0]&&arguments[0])}};return Vd(y),y};function Lm(i,o,a,u){const f=Array.isArray(a)?a:[a],[p]=Om(i),[g]=Vo(o),{appModalStore:y}=z.useContext(sr).selectionStore,b=y.get(i.id),[x,_]=z.useState();return z.useEffect(()=>{p&&o&&!x&&_(kC({appSelections:p,appModal:b,model:o}))},[p,o]),z.useEffect(()=>{if(!x)return()=>{};const{activateClickOut:E,deactivateClickOut:D}=(i=>{let{elements:o,objectSelections:a,options:u={}}=i;const f=function(p){let{elements:g,handleClickOutside:y}=p;return b=>{if(!document.contains(b.target))return;const x=g.map(_=>"string"==typeof _?document.querySelector(_):null==_?void 0:_.current).filter(_=>!!_&&!!document.contains(_));x.length&&!x.some(_=>_.contains(b.target))&&y(b)}}({elements:o,handleClickOutside:()=>a.confirm.call(a)});return{activateClickOut(){var p;document.addEventListener("mousedown",f),null==u||null===(p=u.onSelectionActivated)||void 0===p||p.call(u)},deactivateClickOut(){var p;document.removeEventListener("mousedown",f),null==u||null===(p=u.onSelectionDeactivated)||void 0===p||p.call(u)}}})({elements:f,objectSelections:x,options:u});return x.addListener("activated",E),x.addListener("deactivated",D),()=>{x.isActive()&&x.confirm(),x.removeListener("activated",E),x.removeListener("deactivated",D)}},[x]),z.useEffect(()=>{x&&x.setLayout(g)},[x,g]),[x]}function s1(){const i=de(de({itemStates:{},ignoreSelectionState:!1,selectedInEngine:[],enginePages:[],setPages:void 0,lastRowCount:void 0,lastApprMaxGlyphCount:void 0,selectDisabled:void 0},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),{},{update(o){var a,u;let{setPages:f,pages:p,isSingleSelect:g,selectDisabled:y,layout:b}=o;this.setPages=f,this.lastRowCount===b.qListObject.qSize.qcy&&this.lastApprMaxGlyphCount===b.qListObject.qDimensionInfo.qApprMaxGlyphCount||(this.lastRowCount=b.qListObject.qSize.qcy,this.lastApprMaxGlyphCount=b.qListObject.qDimensionInfo.qApprMaxGlyphCount,this.clearItemStates(!1)),i.enginePages!==p&&void 0!==p&&(i.enginePages=null!=p?p:[],i.selectedInEngine=IE(p),i.selectableValuesUpdating=!1,i.triggerStateChanged()),i.isSingleSelect=g,i.selectDisabled=y||i.selectDisabled,i.isDimCalculated=null!==(a=null==b||null===(u=b.qListObject)||void 0===u||null===(u=u.qDimensionInfo)||void 0===u?void 0:u.qIsCalculated)&&void 0!==a&&a},allowedToSelect:()=>!(i.selectDisabled()||i.isDimCalculated&&i.selectableValuesUpdating),setSelectableValuesUpdating(){i.selectableValuesUpdating=!0},useClientItemState:o=>i.ignoreSelectionState||o in i.itemStates,isSelected:o=>i.useClientItemState(o)?!!i.itemStates[o]:i.selectedInEngine.includes(o),getState(o){const{qElemNumber:a,qState:u}=o;return i.useClientItemState(a)?i.itemStates[a]?"XS"===u?"XS":"S":"S"===u||"XS"===u?"A":u:u},updateItemNoEvents(o,a,u){const f=i.isSelected(o);f&&!a?i.itemStates[o]=!1:f||(null==u||u.push(o),i.itemStates[o]=!0)},triggerStateChanged(){if(this.setPages){const o=i.applySelectionsOnPages(i.enginePages);this.setPages(o)}},applySelectionsOnPages:o=>o.map(a=>{const u=a.qMatrix.map(f=>{const[p]=f,g=i.getState(p);return[de(de({},p),{},{qState:g}),...f.slice(1)]});return de(de({},a),{},{qMatrix:u})}),updateItem(o,a,u){i.updateItemNoEvents(o,a,u),i.triggerStateChanged()},updateItems(o,a,u){o.forEach(f=>{i.updateItemNoEvents(f,a,u)}),i.triggerStateChanged()},clearItemStates(o){i.itemStates={},i.ignoreSelectionState=o}});return i}const ea=function(i,o){var a;return null!==(a=null==i?void 0:i[o])&&void 0!==a?a:arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0};function RC(i){const o=(null==i?void 0:i.qListObject.qDimensionInfo.qStateCounts)||{};return ea(o,"qSelected",0)+ea(o,"qSelectedExcluded",0)+ea(o,"qLocked",0)+ea(o,"qLockedExcluded",0)>0}function zh(i){return"number"==typeof i.r&&"number"==typeof i.g&&"number"==typeof i.b&&"number"==typeof i.a}function Kc(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];if(1===o.length&&zh(o[0]))return(o[0].r<<16)+(o[0].g<<8)+o[0].b;var u=0,f=0,p=0;if(1===o.length&&"string"==typeof o[0]){var g,y=o[0];(g=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(y))?(u=parseInt(g[1],10),f=parseInt(g[2],10),p=parseInt(g[3],10)):(g=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(y))?(u=parseInt(g[1],16),f=parseInt(g[2],16),p=parseInt(g[3],16)):(g=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(y))&&(u=parseInt(g[1]+g[1],16),f=parseInt(g[2]+g[2],16),p=parseInt(g[3]+g[3],16))}return(u<<16)+(f<<8)+p}function TL(i,o,a){return(o="symbol"==typeof(f=function(p,g){if("object"!=typeof p||!p)return p;var y=p[Symbol.toPrimitive];if(void 0!==y){var b=y.call(p,"string");if("object"!=typeof b)return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(p)}(o))?f:f+"")in i?Object.defineProperty(i,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[o]=a,i;var f}function bi(i,o){var a=Object.keys(i);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(i);o&&(u=u.filter(function(f){return Object.getOwnPropertyDescriptor(i,f).enumerable})),a.push.apply(a,u)}return a}function OL(i){for(var o=1;o<arguments.length;o++){var a=null!=arguments[o]?arguments[o]:{};o%2?bi(Object(a),!0).forEach(function(u){TL(i,u,a[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(a)):bi(Object(a)).forEach(function(u){Object.defineProperty(i,u,Object.getOwnPropertyDescriptor(a,u))})}return i}var qh={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}},a1="qcm-color";function Qc(){for(var i,o=arguments.length,a=new Array(o),u=0;u<o;u++)a[u]=arguments[u];var f,p,g,y,b,x,_,E,D,I={type:a1,r:0,g:0,b:0,a:1,l:void 0,invalid:!1,spaces:{}},C=0,A=0,M=0,T=1;if((null===(i=a[0])||void 0===i?void 0:i.type)===a1){var O=a[0];C=O.r,A=O.g,M=O.b,T=O.a,I.invalid=a[0].invalid,I.spaces=OL({},a[0].spaces)}else if(a.length<3)if("string"==typeof a[0]){var L,F=a[0];if(L=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(F))C=parseInt(L[1],10),A=parseInt(L[2],10),M=parseInt(L[3],10);else if(L=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(F))C=parseInt(L[1],10),A=parseInt(L[2],10),M=parseInt(L[3],10),T=parseFloat(L[4]);else if(L=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(F))T=parseInt(L[1],10)/255,C=parseInt(L[2],10),A=parseInt(L[3],10),M=parseInt(L[4],10);else if(L=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(F))C=parseInt(L[1],16),A=parseInt(L[2],16),M=parseInt(L[3],16),T=1;else if(L=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(F))C=parseInt(L[1]+L[1],16),A=parseInt(L[2]+L[2],16),M=parseInt(L[3]+L[3],16),T=1;else if(L=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(F)){f=parseFloat(L[1]),p=parseFloat(L[3]),y=parseFloat(L[5]),p=(p/=100)<0?0:p>1?1:p,_=(f=(f%=360)<0?0:f>360?360:f)/60,E=(x=(y=(y/=100)<0?0:y>1?1:y)<=.5?2*y*p:(2-2*y)*p)*(1-Math.abs(_%2-1));var P=[];switch(_=Math.floor(_)){case 0:P=[x,E,0];break;case 1:P=[E,x,0];break;case 2:P=[0,x,E];break;case 3:P=[0,E,x];break;case 4:P=[E,0,x];break;case 5:P=[x,0,E];break;default:P=[0,0,0]}C=P[0]+(D=y-.5*x),A=P[1]+D,M=P[2]+D,C=Math.round(255*C),A=Math.round(255*A),M=Math.round(255*M),T=1}else if(L=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(F)){f=parseFloat(L[1]),p=parseFloat(L[3]),y=parseFloat(L[5]),T=parseFloat(L[7]),p=(p/=100)<0?0:p>1?1:p,_=(f=(f%=360)<0?0:f>360?360:f)/60,E=(x=(y=(y/=100)<0?0:y>1?1:y)<=.5?2*y*p:(2-2*y)*p)*(1-Math.abs(_%2-1));var q=[];switch(_=Math.floor(_)){case 0:q=[x,E,0];break;case 1:q=[E,x,0];break;case 2:q=[0,x,E];break;case 3:q=[0,E,x];break;case 4:q=[E,0,x];break;case 5:q=[x,0,E];break;default:q=[0,0,0]}C=q[0]+(D=y-.5*x),A=q[1]+D,M=q[2]+D,C=Math.round(255*C),A=Math.round(255*A),M=Math.round(255*M)}else if(L=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(F)){f=parseFloat(L[1]),p=parseFloat(L[3]),b=parseFloat(L[5]),_=(f=(f%=360)<0?0:f>360?360:f)/60,E=(x=(b=(b/=100)<0?0:b>1?1:b)*(p=(p/=100)<0?0:p>1?1:p))*(1-Math.abs(_%2-1));var $=[];switch(_=Math.floor(_)){case 0:$=[x,E,0];break;case 1:$=[E,x,0];break;case 2:$=[0,x,E];break;case 3:$=[0,E,x];break;case 4:$=[E,0,x];break;case 5:$=[x,0,E];break;default:$=[0,0,0]}C=$[0]+(D=b-x),A=$[1]+D,M=$[2]+D,C=Math.round(255*C),A=Math.round(255*A),M=Math.round(255*M),T=1}else if(qh[F.toLowerCase()]){g=F.toLowerCase();var Q=qh[g];C=Q.r,A=Q.g,M=Q.b,T="number"==typeof qh[g].a?qh[g].a:1}else I.invalid=!0}else"number"==typeof a[0]&&a[0]>=0&&"argb"===a[1]?(T=(4278190080&a[0])>>>24,T/=255,C=(16711680&a[0])>>16,A=(65280&a[0])>>8,M=255&a[0]):"number"==typeof a[0]&&a[0]>=0?(C=(16711680&a[0])>>16,A=(65280&a[0])>>8,M=255&a[0]):I.invalid=!0;else a.length>=3&&a.length<=4?(C=a[0],A=a[1],M=a[2],T=arguments.length>=4?a[3]:1):I.invalid=!0;return Number.isNaN(+C+A+M+T)&&(I.invalid=!0),I.r=Math.floor(C),I.g=Math.floor(A),I.b=Math.floor(M),I.a=T,I.l=y,I}function Je(i){var o,a,u;if(zh(i))return o=i.r.toString(16),a=i.g.toString(16),u=i.b.toString(16),1===o.length&&(o="0".concat(o)),1===a.length&&(a="0".concat(a)),1===u.length&&(u="0".concat(u)),"#".concat([o,a,u].join(""));var f="string"==typeof i?Kc(i):i;return o=((16711680&f)>>16).toString(16),a=((65280&f)>>8).toString(16),u=(255&f).toString(16),1===o.length&&(o="0".concat(o)),1===a.length&&(a="0".concat(a)),1===u.length&&(u="0".concat(u)),"#".concat(o).concat(a).concat(u)}function IC(i){var o,a,u=0,f="string"==typeof i?Qc(i):i,p=f.r/255,g=f.g/255,y=f.b/255,b=Math.max(p,g,y),x=Math.min(p,g,y),_=b;if(b===x)o=0,u=0;else{switch(o=0==(a=b-x)?0:a/_,b){case p:u=(g-y)/a+(g<y?6:0);break;case g:u=(y-p)/a+2;break;case y:u=(p-g)/a+4}u/=6}return{h:360*u%360,s:100*o,v:100*_}}function MC(i){if(zh(i))return"rgb(".concat([i.r,i.g,i.b].join(", "),")");var o="string"==typeof i?Kc(i):i,a=(65280&o)>>8,u=255&o;return"rgb(".concat((16711680&o)>>16,", ").concat(a,", ").concat(u,")")}function l1(i,o){return zh(i)?"rgba(".concat([i.r,i.g,i.b,i.a].join(", "),")"):l1(Qc(i))}function Vh(i){return zh(i)?1===i.a?MC(i):l1(i):Vh(Qc(i))}var c1,$h,$d=function(i){var o=i/255;return o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4)};function ar(i){return.2126*$d(i.r)+.7152*$d(i.g)+.0722*$d(i.b)}function Hh(){var i=Qc.apply(void 0,arguments),o={type:i.type,r:i.r,g:i.g,b:i.b,a:i.a,invalid:i.invalid,spaces:i.spaces},a=function(){return o.spaces.hsla||(o.spaces.hsla=function(f){var p,g,y=0,b="string"==typeof f?Qc(f):f,x=b.r/255,_=b.g/255,E=b.b/255,D=b.a,I=Math.max(x,_,E),C=Math.min(x,_,E),A=(I+C)/2;if(I===C)p=0,y=0;else{switch(g=I-C,p=A>.5?g/(2-I-C):g/(I+C),I){case x:y=(_-E)/g+(_<E?6:0);break;case _:y=(E-x)/g+2;break;case E:y=(x-_)/g+4}y/=6}return"hsla(".concat(360*y,", ").concat(100*p,", ").concat(100*A,", ").concat(D,")")}(o)),o.spaces.hsla},u=function(f){var p=a(),g=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(p),y=parseFloat(g[1]),b=parseFloat(g[3]),x=parseFloat(g[7]),_=parseFloat(g[5]),E=Math.max(0,Math.min(_+f,100));return"hsla(".concat(y,", ").concat(b,", ").concat(E,", ").concat(x,")")};return{get type(){return o.type},isInvalid:function(){return o.invalid},get r(){return o.r},get g(){return o.g},get b(){return o.b},get a(){return o.a},getR:function(){return o.r},getG:function(){return o.g},getB:function(){return o.b},getAlpha:function(){return o.a},setAlpha:function(f){o.a=f,o.spaces={}},isEqualTo:function(f){var p=f.type===o.type?f:Qc(f);return p.r===o.r&&p.g===o.g&&p.b===o.b&&p.a===o.a},isDark:function(){return function(){var f=Qc.apply(void 0,arguments);return f.invalid||ar(f)<.4}(o)},getRGB:function(){return o.spaces.rgb||(o.spaces.rgb=MC(o)),o.spaces.rgb},getRGBA:function(){return o.spaces.rgba||(o.spaces.rgba=l1(o)),o.spaces.rgba},getString:function(){return o.spaces.string||(o.spaces.string=Vh(o)),o.spaces.string},getHex:function(){return o.spaces.hex||(o.spaces.hex=Je(o)),o.spaces.hex},getHSL:function(){return o.spaces.hsl||(o.spaces.hsl=function(f){var p,g,y=0,b="string"==typeof f?Qc(f):f,x=b.r/255,_=b.g/255,E=b.b/255,D=Math.max(x,_,E),I=Math.min(x,_,E),C=(D+I)/2;if(D===I)p=0,y=0;else{switch(g=D-I,p=C>.5?g/(2-D-I):g/(D+I),D){case x:y=(_-E)/g+(_<E?6:0);break;case _:y=(E-x)/g+2;break;case E:y=(x-_)/g+4}y/=6}return"hsl(".concat(360*y,", ").concat(100*p,", ").concat(100*C,")")}(o)),o.spaces.hsl},getHSLA:a,getShiftedHSLA:u,getHSV:function(){return o.spaces.hsv||(o.spaces.hsv=(y=(p=IC(o)).s,b=p.v,"hsv(".concat(p.h,", ").concat(y,", ").concat(b,")"))),o.spaces.hsv;var p,y,b},getHSVObject:function(){return o.spaces.hsvObject||(o.spaces.hsvObject=IC(o)),o.spaces.hsvObject},blend:function(f,p){var g=Math.floor(o.r+(f.r-o.r)*p),y=Math.floor(o.g+(f.g-o.g)*p),b=Math.floor(o.b+(f.b-o.b)*p),x=Math.floor(o.a+(f.getAlpha()-o.a)*p);return"rgba(".concat([g,y,b,x].join(", "),")")},getBrightenedColor:function(){return Hh(u(18*(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)))},getDarkenedColor:function(){return Hh(u(18*-(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)))}}}function u1(i,o){if(i&&o){var a=ar(i),u=ar(o);return a>u?(a+.05)/(u+.05):(u+.05)/(a+.05)}}function TC(i,o){var a=Hh("#FFFFFF"),u=Hh(i),f=Hh(o);if(u.isInvalid()||f.isInvalid()||u.getAlpha()<1||f.getAlpha()<1)return o;var p=u1(a,u),g=u1(f,u),y=p>g||p>4.5;return!y&&g>3?o:y?"#FFFFFF":"#000000"}var lM=function(){if($h)return c1;$h=1;var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=Object.defineProperty,u=Object.getOwnPropertyDescriptor,f=function(b){return"function"==typeof Array.isArray?Array.isArray(b):"[object Array]"===o.call(b)},p=function(b){if(!b||"[object Object]"!==o.call(b))return!1;var x,_=i.call(b,"constructor"),E=b.constructor&&b.constructor.prototype&&i.call(b.constructor.prototype,"isPrototypeOf");if(b.constructor&&!_&&!E)return!1;for(x in b);return void 0===x||i.call(b,x)},g=function(b,x){a&&"__proto__"===x.name?a(b,x.name,{enumerable:!0,configurable:!0,value:x.newValue,writable:!0}):b[x.name]=x.newValue},y=function(b,x){if("__proto__"===x){if(!i.call(b,x))return;if(u)return u(b,x).value}return b[x]};return c1=function b(){var x,_,E,D,I,C,A=arguments[0],M=1,T=arguments.length,O=!1;for("boolean"==typeof A&&(O=A,A=arguments[1]||{},M=2),(null==A||"object"!=typeof A&&"function"!=typeof A)&&(A={});M<T;++M)if(null!=(x=arguments[M]))for(_ in x)E=y(A,_),A!==(D=y(x,_))&&(O&&D&&(p(D)||(I=f(D)))?(I?(I=!1,C=E&&f(E)?E:[]):C=E&&p(E)?E:{},g(A,{name:_,newValue:b(O,C,D)})):void 0!==D&&g(A,{name:_,newValue:D}));return A},c1}();function Hd(i,o,a){i.prototype=o.prototype=a,a.constructor=i}function Gh(i,o){var a=Object.create(i.prototype);for(var u in o)a[u]=o[u];return a}function Vl(){}!function(i){i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")}(lM);var Uh=1/.7,Gd="\\s*([+-]?\\d+)\\s*",Wh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ta="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Kh=/^#([0-9a-f]{3,8})$/,cM=new RegExp(`^rgb\\(${Gd},${Gd},${Gd}\\)$`),uM=new RegExp(`^rgb\\(${ta},${ta},${ta}\\)$`),dM=new RegExp(`^rgba\\(${Gd},${Gd},${Gd},${Wh}\\)$`),Pm=new RegExp(`^rgba\\(${ta},${ta},${ta},${Wh}\\)$`),OC=new RegExp(`^hsl\\(${Wh},${ta},${ta}\\)$`),LC=new RegExp(`^hsla\\(${Wh},${ta},${ta},${Wh}\\)$`),d1={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 PC(){return this.rgb().formatHex()}function Ud(){return this.rgb().formatRgb()}function Yc(i){var o,a;return i=(i+"").trim().toLowerCase(),(o=Kh.exec(i))?(a=o[1].length,o=parseInt(o[1],16),6===a?FC(o):3===a?new si(o>>8&15|o>>4&240,o>>4&15|240&o,(15&o)<<4|15&o,1):8===a?Fm(o>>24&255,o>>16&255,o>>8&255,(255&o)/255):4===a?Fm(o>>12&15|o>>8&240,o>>8&15|o>>4&240,o>>4&15|240&o,((15&o)<<4|15&o)/255):null):(o=cM.exec(i))?new si(o[1],o[2],o[3],1):(o=uM.exec(i))?new si(255*o[1]/100,255*o[2]/100,255*o[3]/100,1):(o=dM.exec(i))?Fm(o[1],o[2],o[3],o[4]):(o=Pm.exec(i))?Fm(255*o[1]/100,255*o[2]/100,255*o[3]/100,o[4]):(o=OC.exec(i))?fM(o[1],o[2]/100,o[3]/100,1):(o=LC.exec(i))?fM(o[1],o[2]/100,o[3]/100,o[4]):d1.hasOwnProperty(i)?FC(d1[i]):"transparent"===i?new si(NaN,NaN,NaN,0):null}function FC(i){return new si(i>>16&255,i>>8&255,255&i,1)}function Fm(i,o,a,u){return u<=0&&(i=o=a=NaN),new si(i,o,a,u)}function NC(i){return i instanceof Vl||(i=Yc(i)),i?new si((i=i.rgb()).r,i.g,i.b,i.opacity):new si}function Nm(i,o,a,u){return 1===arguments.length?NC(i):new si(i,o,a,null==u?1:u)}function si(i,o,a,u){this.r=+i,this.g=+o,this.b=+a,this.opacity=+u}function f1(){return`#${Xc(this.r)}${Xc(this.g)}${Xc(this.b)}`}function jC(){const i=Qh(this.opacity);return`${1===i?"rgb(":"rgba("}${Zc(this.r)}, ${Zc(this.g)}, ${Zc(this.b)}${1===i?")":`, ${i})`}`}function Qh(i){return isNaN(i)?1:Math.max(0,Math.min(1,i))}function Zc(i){return Math.max(0,Math.min(255,Math.round(i)||0))}function Xc(i){return((i=Zc(i))<16?"0":"")+i.toString(16)}function fM(i,o,a,u){return u<=0?i=o=a=NaN:a<=0||a>=1?i=o=NaN:o<=0&&(i=NaN),new na(i,o,a,u)}function hM(i){if(i instanceof na)return new na(i.h,i.s,i.l,i.opacity);if(i instanceof Vl||(i=Yc(i)),!i)return new na;if(i instanceof na)return i;var o=(i=i.rgb()).r/255,a=i.g/255,u=i.b/255,f=Math.min(o,a,u),p=Math.max(o,a,u),g=NaN,y=p-f,b=(p+f)/2;return y?(g=o===p?(a-u)/y+6*(a<u):a===p?(u-o)/y+2:(o-a)/y+4,y/=b<.5?p+f:2-p-f,g*=60):y=b>0&&b<1?0:g,new na(g,y,b,i.opacity)}function na(i,o,a,u){this.h=+i,this.s=+o,this.l=+a,this.opacity=+u}function pM(i){return(i=(i||0)%360)<0?i+360:i}function Yh(i){return Math.max(0,Math.min(1,i||0))}function Wd(i,o,a){return 255*(i<60?o+(a-o)*i/60:i<180?a:i<240?o+(a-o)*(240-i)/60:o)}Hd(Vl,Yc,{copy(i){return Object.assign(new this.constructor,this,i)},displayable(){return this.rgb().displayable()},hex:PC,formatHex:PC,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return hM(this).formatHsl()},formatRgb:Ud,toString:Ud}),Hd(si,Nm,Gh(Vl,{brighter(i){return i=null==i?Uh:Math.pow(Uh,i),new si(this.r*i,this.g*i,this.b*i,this.opacity)},darker(i){return i=null==i?.7:Math.pow(.7,i),new si(this.r*i,this.g*i,this.b*i,this.opacity)},rgb(){return this},clamp(){return new si(Zc(this.r),Zc(this.g),Zc(this.b),Qh(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:f1,formatHex:f1,formatHex8:function(){return`#${Xc(this.r)}${Xc(this.g)}${Xc(this.b)}${Xc(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:jC,toString:jC})),Hd(na,function(i,o,a,u){return 1===arguments.length?hM(i):new na(i,o,a,null==u?1:u)},Gh(Vl,{brighter(i){return i=null==i?Uh:Math.pow(Uh,i),new na(this.h,this.s,this.l*i,this.opacity)},darker(i){return i=null==i?.7:Math.pow(.7,i),new na(this.h,this.s,this.l*i,this.opacity)},rgb(){var i=this.h%360+360*(this.h<0),o=isNaN(i)||isNaN(this.s)?0:this.s,a=this.l,u=a+(a<.5?a:1-a)*o,f=2*a-u;return new si(Wd(i>=240?i-240:i+120,f,u),Wd(i,f,u),Wd(i<120?i+240:i-120,f,u),this.opacity)},clamp(){return new na(pM(this.h),Yh(this.s),Yh(this.l),Qh(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 i=Qh(this.opacity);return`${1===i?"hsl(":"hsla("}${pM(this.h)}, ${100*Yh(this.s)}%, ${100*Yh(this.l)}%${1===i?")":`, ${i})`}`}}));const gM=Math.PI/180,mM=180/Math.PI,h1=4/29,Jc=6/29,BC=3*Jc*Jc;function zC(i){if(i instanceof ra)return new ra(i.l,i.a,i.b,i.opacity);if(i instanceof Ya)return eu(i);i instanceof si||(i=NC(i));var o,a,u=m1(i.r),f=m1(i.g),p=m1(i.b),g=p1((.2225045*u+.7168786*f+.0606169*p)/1);return u===f&&f===p?o=a=g:(o=p1((.4360747*u+.3850649*f+.1430804*p)/.96422),a=p1((.0139322*u+.0971045*f+.7141733*p)/.82521)),new ra(116*g-16,500*(o-g),200*(g-a),i.opacity)}function ra(i,o,a,u){this.l=+i,this.a=+o,this.b=+a,this.opacity=+u}function p1(i){return i>.008856451679035631?Math.pow(i,.3333333333333333):i/BC+h1}function g1(i){return i>Jc?i*i*i:BC*(i-h1)}function jm(i){return 255*(i<=.0031308?12.92*i:1.055*Math.pow(i,.4166666666666667)-.055)}function m1(i){return(i/=255)<=.04045?i/12.92:Math.pow((i+.055)/1.055,2.4)}function Ya(i,o,a,u){this.h=+i,this.c=+o,this.l=+a,this.opacity=+u}function eu(i){if(isNaN(i.h))return new ra(i.l,0,0,i.opacity);var o=i.h*gM;return new ra(i.l,Math.cos(o)*i.c,Math.sin(o)*i.c,i.opacity)}Hd(ra,function(i,o,a,u){return 1===arguments.length?zC(i):new ra(i,o,a,null==u?1:u)},Gh(Vl,{brighter(i){return new ra(this.l+18*(null==i?1:i),this.a,this.b,this.opacity)},darker(i){return new ra(this.l-18*(null==i?1:i),this.a,this.b,this.opacity)},rgb(){var i=(this.l+16)/116,o=isNaN(this.a)?i:i+this.a/500,a=isNaN(this.b)?i:i-this.b/200;return new si(jm(3.1338561*(o=.96422*g1(o))-1.6168667*(i=1*g1(i))-.4906146*(a=.82521*g1(a))),jm(-.9787684*o+1.9161415*i+.033454*a),jm(.0719453*o-.2289914*i+1.4052427*a),this.opacity)}})),Hd(Ya,function(i,o,a,u){return 1===arguments.length?function(f){if(f instanceof Ya)return new Ya(f.h,f.c,f.l,f.opacity);if(f instanceof ra||(f=zC(f)),0===f.a&&0===f.b)return new Ya(NaN,0<f.l&&f.l<100?0:NaN,f.l,f.opacity);var p=Math.atan2(f.b,f.a)*mM;return new Ya(p<0?p+360:p,Math.sqrt(f.a*f.a+f.b*f.b),f.l,f.opacity)}(i):new Ya(i,o,a,null==u?1:u)},Gh(Vl,{brighter(i){return new Ya(this.h,this.c,this.l+18*(null==i?1:i),this.opacity)},darker(i){return new Ya(this.h,this.c,this.l-18*(null==i?1:i),this.opacity)},rgb(){return eu(this).rgb()}}));var qC=i=>()=>i;function y1(i,o){var u,f,a=o-i;return a?(u=i,f=a,function(p){return u+p*f}):qC(isNaN(i)?o:i)}!function i(o){var f,a=1==(f=+(f=o))?y1:function(p,g){return g-p?(y=p,b=g,x=f,y=Math.pow(y,x),b=Math.pow(b,x)-y,x=1/x,function(_){return Math.pow(y+_*b,x)}):qC(isNaN(p)?g:p);var y,b,x};function u(f,p){var g=a((f=Nm(f)).r,(p=Nm(p)).r),y=a(f.g,p.g),b=a(f.b,p.b),x=y1(f.opacity,p.opacity);return function(_){return f.r=g(_),f.g=y(_),f.b=b(_),f.opacity=x(_),f+""}}return u.gamma=i,u}(1);var Zh="center",v1="bottom";function $C(i){var o=0,a=i.children,u=a&&a.length;if(u)for(;--u>=0;)o+=a[u].value;else o=1;i.value=o}function HC(i,o){i instanceof Map?(i=[void 0,i],void 0===o&&(o=yM)):void 0===o&&(o=b1);for(var a,u,f,p,g,y=new Bm(i),b=[y];a=b.pop();)if((f=o(a.data))&&(g=(f=Array.from(f)).length))for(a.children=f,p=g-1;p>=0;--p)b.push(u=f[p]=new Bm(f[p])),u.parent=a,u.depth=a.depth+1;return y.eachBefore(UC)}function b1(i){return i.children}function yM(i){return Array.isArray(i)?i[1]:null}function GC(i){void 0!==i.data.value&&(i.value=i.data.value),i.data=i.data.data}function UC(i){var o=0;do{i.height=o}while((i=i.parent)&&i.height<++o)}function Bm(i){this.data=i,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:Zh,condition:function(i){var o=i.layoutService;if(!o)return!1;var a=o.meta.size;return a.x*a.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:Zh,condition:function(i){var o=i.layoutService;return!!o&&o.getHyperCubeValue("qMeasureInfo").every(function(a){return"NaN"===a.qMin&&"NaN"===a.qMax})}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:Zh,condition:function(i){var o=i.layoutService;if(!o||!o.meta.isContinuous)return!1;var a=o.getHyperCubeValue("qDimensionInfo.0");return a&&(a.qMax<a.qMin||"NaN"===a.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:Zh},{key:"DataRangeIncludingZero",alignment:v1},{key:"LimitedData",alignment:v1},{key:"NegativeOrZeroValues",alignment:v1}].reduce(function(i,o){return i[o.key]=o,i},{}),Bm.prototype=HC.prototype={constructor:Bm,count:function(){return this.eachAfter($C)},each:function(i,o){let a=-1;for(const u of this)i.call(o,u,++a,this);return this},eachAfter:function(i,o){for(var a,u,f,p=this,g=[p],y=[],b=-1;p=g.pop();)if(y.push(p),a=p.children)for(u=0,f=a.length;u<f;++u)g.push(a[u]);for(;p=y.pop();)i.call(o,p,++b,this);return this},eachBefore:function(i,o){for(var a,u,f=this,p=[f],g=-1;f=p.pop();)if(i.call(o,f,++g,this),a=f.children)for(u=a.length-1;u>=0;--u)p.push(a[u]);return this},find:function(i,o){let a=-1;for(const u of this)if(i.call(o,u,++a,this))return u},sum:function(i){return this.eachAfter(function(o){for(var a=+i(o.data)||0,u=o.children,f=u&&u.length;--f>=0;)a+=u[f].value;o.value=a})},sort:function(i){return this.eachBefore(function(o){o.children&&o.children.sort(i)})},path:function(i){for(var o=this,a=function(p,g){if(p===g)return p;var y=p.ancestors(),b=g.ancestors(),x=null;for(p=y.pop(),g=b.pop();p===g;)x=p,p=y.pop(),g=b.pop();return x}(o,i),u=[o];o!==a;)u.push(o=o.parent);for(var f=u.length;i!==a;)u.splice(f,0,i),i=i.parent;return u},ancestors:function(){for(var i=this,o=[i];i=i.parent;)o.push(i);return o},descendants:function(){return Array.from(this)},leaves:function(){var i=[];return this.eachBefore(function(o){o.children||i.push(o)}),i},links:function(){var i=this,o=[];return i.each(function(a){a!==i&&o.push({source:a.parent,target:a})}),o},copy:function(){return HC(this).eachBefore(GC)},[Symbol.iterator]:function*(){var i,o,a,u,f=this,p=[f];do{for(i=p.reverse(),p=[];f=i.pop();)if(yield f,o=f.children)for(a=0,u=o.length;a<u;++a)p.push(o[a])}while(p.length)}};const vM=/,(?![^(]*\))/,bM=/\s(?![^(]*\))/,w1=/^[0-9]+[a-zA-Z%]+?$/,x1=["none","inset","initial","inherit"],_1=i=>{if(!i)return;const o=i.split(bM).filter(u=>!x1.includes(u.toLowerCase())).at(-1);return!o||"0"===(u=o)||w1.test(u)||x1.includes(o.toLowerCase())?void 0:o;var u},WC=i=>i?i.split(vM).map(o=>o.trim()):[];function zm(i,o,a,u){return a&&u?a.getStyle("object.".concat(u),i,o):a?a.getStyle("",i,o):void 0}function S1(i,o,a,u,f){return i&&u?"none"!==i.color?u.getColorPickerColor(i,true):void 0:zm(o,a,u,f)}const KC={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},xM={"top-left":"top left","top-center":"top center","top-right":"top right","center-left":"center left","center-center":"center center","center-right":"center right","bottom-left":"bottom left","bottom-center":"bottom center","bottom-right":"bottom right"};function E1(i,o){const a=null==i?void 0:i.bgImage;if(a){let u="";if("media"===a.mode||"media"===i.useImage){const g=null==a?void 0:a.mediaUrl,{qUrl:y}=(null==g?void 0:g.qStaticContentUrl)||{};u=y?decodeURIComponent(y):void 0,u=function _M(i,o){return o?function(a){var u;let f,p,g,y;return null!=a&&null!==(u=a.session)&&void 0!==u&&u.config?(f=a.session.config,p=new URL(f.url),y="wss:"===p.protocol,g=y?"https://":"http://",g+p.host):""}(i)+o:void 0}(o,u)}"expression"===a.mode&&(u=a.expressionUrl?decodeURIComponent(a.expressionUrl):void 0);const f=function(g){var y;let b="center center";return null!=g&&null!==(y=g.bgImage)&&void 0!==y&&y.position&&(b=xM[g.bgImage.position]),b}(i),p=function(g){var y;let b=KC.originalSize;const x=null==g||null===(y=g.bgImage)||void 0===y?void 0:y.sizing;return x&&(b=KC[x]),b}(i);return u?{url:u,pos:f,size:p}:void 0}}function qm(i,o,a){const u=null==i?void 0:i.bgColor;return u&&o&&(u.useExpression||u.useColorExpression)?o.validateColor(u.colorExpression):S1(null==u?void 0:u.color,"","backgroundColor",o,a)}function QC(i,o,a){var u,f;const p=zm("shadow","boxShadow",o,a);return((g,y,b)=>{if(g&&x1.includes(g.toLowerCase()))return g.toLowerCase();const x=WC(g);if(1!==x.length)return g;let _=b;if(!_){const D=WC(y);if(1!==D.length)return g;_=_1(D[0])}if(!_)return g;const E=_1(x[0]);return E?g.replace(E,_):"".concat(g," ").concat(_)})((null==i||null===(u=i.shadow)||void 0===u?void 0:u.boxShadow)||p,p,S1(null==i||null===(f=i.shadow)||void 0===f?void 0:f.boxShadowColor,"shadow","boxShadowColor",o,a))}function C1(i,o,a,u){var f;const p=(null==i||null===(f=i.title)||void 0===f?void 0:f[o])||{},g=(b=o,(y=p.fontStyle)&&Array.isArray(y)?y:"main"===b?["bold"]:[]);var y,b;return{fontFamily:p.fontFamily||a.getStyle("object.".concat(u),"title.".concat(o),"fontFamily"),fontSize:p.fontSize||a.getStyle("object.".concat(u),"title.".concat(o),"fontSize"),color:p.color&&"none"!==p.color.color?a.getColorPickerColor(p.color,!0):a.getStyle("object.".concat(u),o,"color"),fontWeight:g.includes("bold")?"bold":"normal",fontStyle:g.includes("italic")?"italic":"normal",textDecoration:g.includes("underline")?"underline":"initial"}}const SM={selected:"#00873D",alternative:"#E4E4E4",excluded:"#A9A9A9",selectedExcluded:"#A9A9A9",possible:"#FFFFFF"},YC=["theme","selections"];function ZC(i){var o,a,u,f,p,g,y,b;let{app:x,themeApi:_,theme:E,components:D=[],checkboxes:I=!1}=i;const C=function(){const oe={};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach(K=>{const U=null==K?void 0:K.key;YC.includes(U)&&(oe[U]=K)}),oe}(D),A=(oe,K)=>_.getStyle("object.listBox",oe,K),M=oe=>(null==oe?void 0:oe.index)>0||null!=oe&&oe.color?_.getColorPickerColor(oe,!1):void 0,T=function(oe){var K,U,ne,se,he;let{getColorPickerColor:B,theme:G,getListboxStyle:Z,overrides:re,checkboxes:te}=oe;const ce=null===(K=re.theme)||void 0===K||null===(K=K.content)||void 0===K?void 0:K.fontColor,ye=B(ce)||Z("content","color")||(null===(U=G.palette)||void 0===U?void 0:U.text.primary),Se=!te&&(null===(ne=null===(se=re.theme)||void 0===se||null===(se=se.content)||void 0===se?void 0:se.useContrastColor)||void 0===ne||ne),Ae=(null===(he=re.selections)||void 0===he?void 0:he.colors)||{},Le=Ne=>{var Ve,Re;const Me="selected"===Ne?"main":Ne,nt="".concat(Ne,"Contrast"),Ge=B(Ae[Ne])||Z("","dataColors.".concat(Ne))||"possible"===Ne&&Z("","backgroundColor")||(null===(Ve=G.palette)||void 0===Ve||null===(Ve=Ve.selected)||void 0===Ve?void 0:Ve[Me])||SM[Ne];return{[Ne]:Ge,[nt]:Se?TC(Ge,ye):ye||(null===(Re=G.palette)||void 0===Re?void 0:Re.selected["".concat(nt,"Text}")])}};return de(de(de(de(de({},Le("selected")),Le("alternative")),Le("excluded")),Le("selectedExcluded")),Le("possible"))}({getColorPickerColor:M,theme:E,getListboxStyle:A,overrides:C,checkboxes:I}),O=C.theme||{},L=M(null===(o=O.header)||void 0===o?void 0:o.fontColor)||A("title.main","color"),F=function(oe){let K,{themeApi:U,themeOverrides:ne}=oe;const se=null==ne?void 0:ne.background;return se&&(K=null!=se&&se.useExpression?qm({bgColor:se},U,"listBox"):U.getColorPickerColor(null==se?void 0:se.color,!1)),K}({themeApi:_,themeOverrides:O}),P=null!==(a=O.background)&&void 0!==a&&a.image?E1({bgImage:O.background.image},x):void 0,q=F||A("","backgroundColor")||E.palette.background.default,$=function(oe,K){const U=Hh(K("","backgroundColor"));return U.setAlpha(.7),U.isInvalid()?oe:U.getRGBA()}(q,A),Q=TC("#fff",A("content","color")),X=(null===(u=O.header)||void 0===u?void 0:u.fontStyle)||{},ae=(null===(f=O.content)||void 0===f?void 0:f.fontStyle)||{},le=(oe,K,U)=>!0===oe&&K||!1===oe&&U||void 0;return{background:{backgroundColor:q,backgroundImage:null==P||!P.url||null!=P&&P.url.startsWith("url(")?void 0:"url('".concat(P.url,"')"),backgroundRepeat:"no-repeat",backgroundSize:null==P?void 0:P.size,backgroundPosition:null==P?void 0:P.pos},header:{color:L,fontSize:(null===(p=O.header)||void 0===p?void 0:p.fontSize)||A("title.main","fontSize"),fontFamily:(null===(g=O.header)||void 0===g?void 0:g.fontFamily)||A("title.main","fontFamily"),fontWeight:le(X.bold,"bold","normal")||A("title.main","fontWeight")||"bold",textDecoration:X.underline?"underline":"initial",fontStyle:le(X.italic,"italic","normal")||A("title.main","fontStyle")||"initial"},content:{backgroundColor:I?void 0:T.possible,color:T.possibleContrast||A("content","color"),fontSize:(null===(y=O.content)||void 0===y?void 0:y.fontSize)||A("content","fontSize"),fontFamily:(null===(b=O.content)||void 0===b?void 0:b.fontFamily)||A("content","fontFamily"),fontWeight:le(ae.bold,"bold","normal")||A("content","fontWeight")||"normal",textDecoration:ae.underline?"underline":"initial",fontStyle:le(ae.italic,"italic","normal")||A("content","fontStyle")||"initial"},search:{color:Q,borderColor:E.palette.divider,highlightBorderColor:E.palette.custom.focusBorder,backgroundColor:$,backdropFilter:"blur(8px)"},selections:T}}function Xh(i){let{alignTo:o,anchorOrigin:a={vertical:"bottom",horizontal:"center"},transformOrigin:u={vertical:"top",horizontal:"center"},show:f,close:p,app:g,fieldName:y,stateName:b="$",autoFocus:x,components:_,checkboxes:E,selectDisabled:D=(()=>!1),sortCriteria:I=[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],direction:C="ltr"}=i;const A=Boolean(null==y?void 0:y.qLibraryId),M=f&&Boolean(o.current),[T,O]=z.useState(0),L=ri(),F=z.useRef(),[P]=Qa({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:b,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:I,qFieldDefs:A?void 0:[y]},qLibraryId:A?y.qLibraryId:void 0}},g,y,b),q=z.useCallback(()=>{P.lock("/qListObjectDef")},[P]),$=z.useCallback(()=>{P.unlock("/qListObjectDef")},[P]),{translator:Q,themeApi:X,keyboardNavigation:ae}=z.useContext(sr),le=z.useRef(),oe=z.useRef(),[K]=Lm(g,P,oe),[U]=Vo(P),[ne]=z.useState(()=>s1({selectDisabled:D})),se=Dm({containerRef:oe,enabled:ae}),{checkboxes:he=E}=U||{},B=ZC({themeApi:X,theme:L,components:_,checkboxes:he});if(z.useEffect(()=>{K&&M&&(K.isModal(P)||K.goModal("/qListObjectDef"))},[K,M]),!P||!U||!Q)return null;const G=!0===U.qListObject.qDimensionInfo.qLocked,Z=(ce,ye)=>{K.noModal("escapeKeyDown"!==ye),p()},re=Jb({layout:U,model:P,translator:Q,selectionState:ne,selections:K}),te=RC(U);return Y.createElement(Mh,{className:"listbox-container",open:M,onClose:Z,anchorEl:o.current,anchorOrigin:a,transformOrigin:u,slotProps:{paper:{style:{minWidth:"250px"}}},onKeyDown:ce=>"Enter"===ce.key?Z():void 0,direction:C},Y.createElement(tt,{container:!0,direction:"column",gap:0,ref:oe},Y.createElement(tt,{item:!0,container:!0,style:{direction:C,padding:L.spacing(1)}},Y.createElement(tt,{item:!0},G?Y.createElement(xo,{onClick:$,disabled:!G,size:"large"},Y.createElement(Xs,{title:Q.get("Listbox.Unlock")})):Y.createElement(xo,{onClick:q,disabled:!te,size:"large"},Y.createElement(DE,{title:Q.get("Listbox.Lock")}))),Y.createElement(tt,{item:!0,xs:!0}),Y.createElement(tt,{item:!0},Y.createElement(n1,{layout:U,more:{enabled:!G,actions:re,alignTo:le,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:K,onConfirm:Z,onCancel:()=>Z(0,"escapeKeyDown")}}))),Y.createElement(tt,{item:!0,xs:!0},Y.createElement("div",{ref:le}),Y.createElement(tt,{item:!0},Y.createElement(o1,{ref:F,popoverOpen:M,styles:B,visible:!0,model:P,listCount:T,selections:K,selectionState:ne,keyboard:{enabled:!1,innerTabStops:!0,focusSelection:se.focusSelection},autoFocus:null==x||x,direction:C})),Y.createElement(Zb,{model:P,app:g,layout:U,selections:K,selectionState:ne,direction:C,onSetListCount:ce=>O(ce),onCtrlF:()=>{F.current.focus()},styles:B,keyboard:se}))))}function Vm(i){let{field:o,api:a,stateIx:u=0,skipHandleShowListBoxPopover:f=!1,moreAlignTo:p=null,onClose:g=(()=>{})}=i;const{translator:y}=z.useContext(sr),b=p||z.useRef(),x=ri(),[_,E]=z.useState(!1),I=()=>{E(!1),g()},C=o.selections[u];void 0===C.qTotal&&(C.qTotal=0);const A=C.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},M=(A.qSelected+A.qLocked)/C.qTotal,T=A.qAlternative/C.qTotal,O=(A.qExcluded+A.qLockedExcluded+A.qSelectedExcluded)/C.qTotal,L=A.qSelected+A.qSelectedExcluded+A.qLocked+A.qLockedExcluded,F=0===L&&0===C.qTotal;let P="";C.qTotal===L&&C.qTotal>1?P=y.get("CurrentSelections.All"):L>1&&C.qTotal?P=y.get("CurrentSelections.Of",[L,C.qTotal]):C.qSelectedFieldSelectionInfo&&(P=C.qSelectedFieldSelectionInfo.map(le=>le.qName).join(", ")),"$"!==o.states[u]&&(P="".concat(o.states[u],": ").concat(P));const q=[{color:x.palette.selected.main,ratio:M},{color:x.palette.selected.alternative,ratio:T},{color:x.palette.selected.excluded,ratio:O}];q.forEach((le,oe)=>{le.offset=oe?q[oe-1].offset+q[oe-1].ratio:0});let $=null,Q=null,X=null,ae=null;return p||($=Y.createElement(tt,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:C.qLocked?"0.3":""}},Y.createElement(Gn,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},o.label),Y.createElement(Gn,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},P)),C.qLocked?Q=Y.createElement(tt,{item:!0},Y.createElement(xo,{size:"large"},Y.createElement(Xs,null))):C.qOneAndOnlyOne||(Q=Y.createElement(tt,{item:!0},Y.createElement(xo,{title:y.get("Selection.Clear"),onClick:le=>{le.stopPropagation(),a.clearField(C.qField,o.states[u])},size:"large"},Y.createElement(Od,null)))),X=Y.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===F&&q.map(le=>Y.createElement("div",{key:le.color,style:{position:"absolute",background:le.color,height:"100%",top:0,width:"".concat(100*le.ratio,"%"),left:"".concat(100*le.offset,"%")}}))),ae=Y.createElement(tt,{container:!0,gap:1,ref:b,sx:{backgroundColor:x.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:x.palette.action.hover}},onClick:!1===f&&(le=>{le.currentTarget.contains(le.target)&&E(!_)})||null},$,Q,X,_&&Y.createElement(Xh,{alignTo:b,show:_,close:I,app:a.model,fieldName:C.qField,stateName:o.states[u]}))),p?Y.createElement(Xh,{alignTo:b,show:!0,close:I,app:a.model,fieldName:C.qField,stateName:o.states[u]}):ae}var $m=i=>kr((o=>de(de({},o),{},{shapes:[{type:"path",attrs:{d:"M8,9 L12.5,4.5 L14,6 L9.5,10.5 L8,12 L2,6 L3.5,4.5 L8,9 Z"}}]}))(i));const Hm={item:"".concat("MultiState","-item")},XC=He(tt)(i=>{let{theme:o}=i;return{["&.".concat(Hm.item)]:{backgroundColor:o.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:o.palette.action.hover},height:"100%",alignItems:"center"}}});function Jh(i){let{field:o,api:a,moreAlignTo:u=null,onClose:f=(()=>{})}=i;const[p,g]=z.useState(!!u),[y,b]=z.useState(-1),[x,_]=z.useState(u?u.current:null),E=u||z.useRef(),{translator:D}=z.useContext(sr),I=D.get("Selection.ClearAllStates"),C=()=>{b(-1),f()};let A=null;u||(A=Y.createElement(Y.Fragment,null,Y.createElement(tt,{item:!0,xs:!0,zeroMinWidth:!0},Y.createElement(yL,{style:{padding:"0px 8px"},color:"secondary",badgeContent:o.states.length},Y.createElement(Gn,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},o.label))),Y.createElement(tt,{item:!0},Y.createElement("div",{style:{width:"12px"}})),Y.createElement(tt,{item:!0},Y.createElement(xo,{size:"large"},Y.createElement($m,null)))));const M=Y.createElement(pb,{dense:!0},Y.createElement(vb,{title:I,onClick:()=>{o.states.forEach(L=>a.clearField(o.name,L))}},Y.createElement(Jg,{variant:"contained",fullWidth:!0},I)),o.states.map((L,F)=>Y.createElement(vb,{key:F,title:o.label,onClick:P=>{return $=F,P.stopPropagation(),g(!1),void b($);var $}},Y.createElement(qo,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},Y.createElement(Vm,{field:o,api:a,stateIx:F,skipHandleShowListBoxPopover:!0}))))),T=Y.createElement(Mh,{open:p,onClose:()=>{g(!1),f()},anchorEl:x,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},M),O=u?T:Y.createElement(XC,{container:!0,gap:0,className:Hm.item,onClick:L=>{L.currentTarget.contains(L.target)&&(_(L.currentTarget),E.current=L.currentTarget,g(!p))}},A,p&&T,y>-1&&Y.createElement(Xh,{alignTo:E,show:y>-1,close:C,app:a.model,fieldName:o.selections[y].qField,stateName:o.states[y]}));return u&&y>-1?Y.createElement(Xh,{alignTo:E,show:y>-1,close:C,app:a.model,fieldName:o.selections[y].qField,stateName:o.states[y]}):O}const D1={item:"".concat("More","-item"),badge:"".concat("More","-badge")},k1=He(tt)(i=>{let{theme:o}=i;return{["&.".concat(D1.item)]:{backgroundColor:o.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:o.palette.action.hover},height:"100%",alignItems:"center"},["& .".concat(D1.badge)]:{padding:o.spacing(0,1)}}});function EM(i){let{items:o=[],api:a}=i;const u=ri(),[f,p]=z.useState(!1),[g,y]=z.useState(-1),[b,x]=z.useState(null),_=z.useRef(),E=()=>{y(-1)};let D=null;return g>-1&&(D=o[g].states.length>1?Y.createElement(Jh,{field:o[g],api:a,moreAlignTo:_,onClose:E}):Y.createElement(Vm,{field:o[g],api:a,skipHandleShowListBoxPopover:!0,moreAlignTo:_,onClose:E})),Y.createElement(k1,{container:!0,gap:0,className:D1.item,onClick:I=>{I.currentTarget.contains(I.target)&&(x(I.currentTarget),_.current=I.currentTarget,p(!f))}},Y.createElement(tt,{item:!0},Y.createElement(qo,{borderRadius:u.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:u.palette.selected.main,color:u.palette.selected.mainContrastText}},Y.createElement(Gn,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",o.length))),Y.createElement(tt,{item:!0},Y.createElement(xo,{size:"large"},Y.createElement($m,null))),f&&Y.createElement(Mh,{open:f,onClose:()=>{p(!1)},anchorEl:b,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},Y.createElement(pb,{dense:!0},o.map((I,C)=>Y.createElement(vb,{key:C,title:I.name,onClick:A=>{return T=C,A.stopPropagation(),p(!1),void y(T);var T}},Y.createElement(qo,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},Y.createElement(I.states.length>1?Jh:Vm,{field:I,api:a})))))),D)}function nD(i){let{api:o,app:a}=i;const u=ri(),[f]=Do(a),[p]=Vo(f),[g,y]=z.useState({items:[],more:[]}),{modalObjectStore:b}=z.useContext(sr).selectionStore,[x,_]=hs(),[E,D]=z.useState(0);return z.useEffect(()=>{if(!_)return;const{width:I}=_,C=Math.floor(I)-72,A=Math.floor(C/120);D(A)},[_]),z.useEffect(()=>{if(!(a&&f&&p&&E))return;const I=function(C){if(!C)return[];const A={};function M(T,O){T.qSelections.forEach(L=>{const F=L.qField;let P=A[F];var q;void 0===P&&(P={name:F,label:(null===(q=L.qDimensionReferences)||void 0===q||null===(q=q.find($=>$.qLabel))||void 0===q?void 0:q.qLabel)||L.qReadableName||F,states:[],selections:[]},A[F]=P),P.states.push(O),P.selections.push(L)})}return C.qSelectionObject&&M(C.qSelectionObject,"$"),C.alternateStates&&C.alternateStates.forEach(T=>M(T.qSelectionObject,T.stateName)),Object.keys(A).map(T=>A[T]).filter(T=>!T.selections.some(O=>O.qIsHidden))}(p);y(C=>{const A=I;if((()=>{const{model:T}=b.get(a.id)||{};return"njsListbox"===(null==T?void 0:T.genericType)})()&&A.length+1===C.items.length){const T=C.items.filter(F=>!1===A.some(P=>F.name===P.name))[0],{qField:O}=T.selections[0];T.selections=[{qField:O}];const L=C.items.indexOf(T);A.splice(L,0,T)}let M=[];return E<A.length&&(M=A.splice(E-A.length)),{items:A,more:M}})},[a,f,p,o.isInModal(),E]),Y.createElement(tt,{ref:x,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},g.items.map(I=>Y.createElement(tt,{item:!0,key:"".concat(I.states.join("::"),"::").concat(I.name),style:{position:"relative",maxWidth:"240px",minWidth:"".concat(120,"px"),background:u.palette.background.paper,borderRight:"1px solid ".concat(u.palette.divider)}},Y.createElement(I.states.length>1?Jh:Vm,{field:I,api:o}))),g.more.length>0&&Y.createElement(tt,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(72,"px"),background:u.palette.background.paper,borderRight:"1px solid ".concat(u.palette.divider)}},Y.createElement(EM,{items:g.more,api:o})))}var CM=i=>kr((o=>de(de({},o),{},{shapes:[{type:"path",attrs:{d:"M10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 Z M16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,-5.07265313e-17 13.5,0 L15,0 C15.5522847,1.01453063e-16 16,0.44771525 16,1 L16,2.5 Z M10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 C6,0.223857625 6.22385763,-5.07265313e-17 6.5,0 L9.5,0 C9.77614237,5.07265313e-17 10,0.223857625 10,0.5 Z M1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 5.18696197e-13,2.77614237 5.18696197e-13,2.5 L5.18696197e-13,1 C5.18696197e-13,0.44771525 0.44771525,-1.01453063e-16 1,0 L2.5,0 C2.77614237,5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 5.18696197e-13,15.5522847 5.18696197e-13,15 L5.18696197e-13,13.5 C5.18696197e-13,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M4,7 C7.49095643,7 10,10.1337595 10,12.1872632 C10,12.1872632 8.16051135,9.86624054 4,10 L4,12 C4,12 2.66666667,10.8333333 -1.0658141e-14,8.5 C-2.59348099e-13,8.5 1.33333333,7.33333333 4,5 C4,5 4,5.66666667 4,7 Z"}}]}))(i)),rD=i=>kr((o=>de(de({},o),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M12,7 C12,5.66666667 12,5 12,5 C14.6666667,7.33333333 16,8.5 16,8.5 C13.3333333,10.8333333 12,12 12,12 L12,10 C7.83948865,9.86624054 6,12.1872632 6,12.1872632 C6,10.1337595 8.50904357,7 12,7 Z"}}]}))(i));function DM(i){let{api:o,app:a}=i;const{translator:u}=z.useContext(sr),[f]=function(p){const[g]=Do(p),[y]=Vo(g),[b]=$c(p),[x,_]=z.useState(null);return z.useEffect(()=>{b&&g&&y&&((i,o,a)=>{const u=[...a.qStateNames||[]].map(f=>({stateName:f,qSelectionObjectDef:{qStateName:f}}));(o&&o.alternateStates?o.alternateStates.map(f=>f.stateName):[]).join("::")!==(a.qStateNames||[]).map(f=>f).join("::")&&i.applyPatches([{qOp:"replace",qPath:"/alternateStates",qValue:JSON.stringify(u)}],!0)})(g,y,b)},[b,g,y]),z.useEffect(()=>{if(!y)return;let E=!1,D=!1,I=!1;[y,...y.alternateStates||[]].forEach(C=>{E=E||C.qSelectionObject&&C.qSelectionObject.qBackCount>0,D=D||C.qSelectionObject&&C.qSelectionObject.qForwardCount>0,I=I||(C.qSelectionObject&&C.qSelectionObject.qSelections||[]).filter(A=>!0!==A.qLocked).length>0}),_({canGoBack:E,canGoForward:D,canClear:I})},[y]),[x,g,y]}(a);return Y.createElement(tt,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},Y.createElement(tt,{item:!0},Y.createElement(xo,{style:{marginRight:"8px"},disabled:!f||!f.canGoBack,title:u.get("Navigate.Back"),onClick:()=>o.back(),size:"large"},Y.createElement(CM,null))),Y.createElement(tt,{item:!0},Y.createElement(xo,{style:{marginRight:"8px"},disabled:!f||!f.canGoForward,title:u.get("Navigate.Forward"),onClick:()=>o.forward(),size:"large"},Y.createElement(rD,null))),Y.createElement(tt,{item:!0},Y.createElement(xo,{disabled:!f||!f.canClear,title:u.get("Selection.ClearAll"),onClick:()=>o.clear(),size:"large"},Y.createElement(ZI,null))))}const tu=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function kM(i){let[o,a]=i;return(o+(Math.random()*(a-o)|0)).toString(32)}function Oi(){return tu.map(kM).join("")}function xn(i){let{app:o}=i;const a=ri(),[u]=Om(o);return u?Y.createElement(tt,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:a.palette.background.paper,minHeight:"40px"}},Y.createElement(tt,{item:!0,style:{borderRight:"1px solid ".concat(a.palette.divider)}},Y.createElement(DM,{api:u,app:o})),Y.createElement(tt,{item:!0,xs:!0,style:{backgroundColor:a.palette.background.darker,overflow:"hidden"}},Y.createElement(nD,{api:u,app:o}))):null}let ia;ia="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;let iD=null,nu=null;const Kd=ia.clearTimeout,oD=ia.setTimeout,A1=ia.cancelAnimationFrame||ia.mozCancelAnimationFrame||ia.webkitCancelAnimationFrame,sD=ia.requestAnimationFrame||ia.mozRequestAnimationFrame||ia.webkitRequestAnimationFrame;null==A1||null==sD?(iD=Kd,nu=function(i){return oD(i,20)}):(iD=function([i,o]){A1(i),Kd(o)},nu=function(i){const o=sD(function(){Kd(a),i()}),a=oD(function(){A1(o),i()},20);return[o,a]});class AM extends z.Component{constructor(...o){super(...o),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:a,disableWidth:u,onResize:f}=this.props;if(this._parentNode){const p=window.getComputedStyle(this._parentNode)||{},g=parseFloat(p.paddingLeft||"0"),y=parseFloat(p.paddingRight||"0"),b=parseFloat(p.paddingTop||"0"),x=parseFloat(p.paddingBottom||"0"),_=this._parentNode.getBoundingClientRect(),E=_.height-b-x,D=_.width-g-y,I=this._parentNode.offsetHeight-b-x,C=this._parentNode.offsetWidth-g-y;(a||this.state.height===I&&this.state.scaledHeight===E)&&(u||this.state.width===C&&this.state.scaledWidth===D)||(this.setState({height:I,width:C,scaledHeight:E,scaledWidth:D}),"function"==typeof f&&f({height:I,scaledHeight:E,scaledWidth:D,width:C}))}},this._setRef=a=>{this._autoSizer=a}}componentDidMount(){const{nonce:o}=this.props,a=this._autoSizer?this._autoSizer.parentNode:null;if(null!=a&&a.ownerDocument&&a.ownerDocument.defaultView&&a instanceof a.ownerDocument.defaultView.HTMLElement){this._parentNode=a;const u=a.ownerDocument.defaultView.ResizeObserver;null!=u?(this._resizeObserver=new u(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(a)):(this._detectElementResize=function ep(i){let o,a,u,f,p,g,y;const b="undefined"!=typeof document&&document.attachEvent;if(!b){g=function(C){const A=C.__resizeTriggers__,M=A.firstElementChild,T=A.lastElementChild,O=M.firstElementChild;T.scrollLeft=T.scrollWidth,T.scrollTop=T.scrollHeight,O.style.width=M.offsetWidth+1+"px",O.style.height=M.offsetHeight+1+"px",M.scrollLeft=M.scrollWidth,M.scrollTop=M.scrollHeight},p=function(C){return C.offsetWidth!==C.__resizeLast__.width||C.offsetHeight!==C.__resizeLast__.height},y=function(C){if(C.target.className&&"function"==typeof C.target.className.indexOf&&C.target.className.indexOf("contract-trigger")<0&&C.target.className.indexOf("expand-trigger")<0)return;const A=this;g(this),this.__resizeRAF__&&iD(this.__resizeRAF__),this.__resizeRAF__=nu(function(){p(A)&&(A.__resizeLast__.width=A.offsetWidth,A.__resizeLast__.height=A.offsetHeight,A.__resizeListeners__.forEach(function(M){M.call(A,C)}))})};let x=!1,_="";u="animationstart";const E="Webkit Moz O ms".split(" ");let D="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),I="";{const C=document.createElement("fakeelement");if(void 0!==C.style.animationName&&(x=!0),!1===x)for(let A=0;A<E.length;A++)if(void 0!==C.style[E[A]+"AnimationName"]){I=E[A],_="-"+I.toLowerCase()+"-",u=D[A],x=!0;break}}a="resizeanim",o="@"+_+"keyframes "+a+" { from { opacity: 0; } to { opacity: 0; } } ",f=_+"animation: 1ms "+a+"; "}return{addResizeListener:function(x,_){if(b)x.attachEvent("onresize",_);else{if(!x.__resizeTriggers__){const E=x.ownerDocument,D=ia.getComputedStyle(x);D&&"static"===D.position&&(x.style.position="relative"),function(A){if(!A.getElementById("detectElementResize")){const M=(o||"")+".resize-triggers { "+(f||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',T=A.head||A.getElementsByTagName("head")[0],O=A.createElement("style");O.id="detectElementResize",O.type="text/css",null!=i&&O.setAttribute("nonce",i),O.styleSheet?O.styleSheet.cssText=M:O.appendChild(A.createTextNode(M)),T.appendChild(O)}}(E),x.__resizeLast__={},x.__resizeListeners__=[],(x.__resizeTriggers__=E.createElement("div")).className="resize-triggers";const I=E.createElement("div");I.className="expand-trigger",I.appendChild(E.createElement("div"));const C=E.createElement("div");C.className="contract-trigger",x.__resizeTriggers__.appendChild(I),x.__resizeTriggers__.appendChild(C),x.appendChild(x.__resizeTriggers__),g(x),x.addEventListener("scroll",y,!0),u&&(x.__resizeTriggers__.__animationListener__=function(A){A.animationName===a&&g(x)},x.__resizeTriggers__.addEventListener(u,x.__resizeTriggers__.__animationListener__))}x.__resizeListeners__.push(_)}},removeResizeListener:function(x,_){if(b)x.detachEvent("onresize",_);else if(x.__resizeListeners__.splice(x.__resizeListeners__.indexOf(_),1),!x.__resizeListeners__.length){x.removeEventListener("scroll",y,!0),x.__resizeTriggers__.__animationListener__&&(x.__resizeTriggers__.removeEventListener(u,x.__resizeTriggers__.__animationListener__),x.__resizeTriggers__.__animationListener__=null);try{x.__resizeTriggers__=!x.removeChild(x.__resizeTriggers__)}catch(E){}}}}}(o),this._detectElementResize.addResizeListener(a,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const L=this.props,{children:o,disableHeight:f=!1,disableWidth:p=!1,doNotBailOutOnEmptyChildren:g=!1,style:x={},tagName:_="div"}=L,E=U3(L,["children","defaultHeight","defaultWidth","disableHeight","disableWidth","doNotBailOutOnEmptyChildren","nonce","onResize","style","tagName"]),{height:D,scaledHeight:I,scaledWidth:C,width:A}=this.state,M={overflow:"visible"},T={};let O=!1;return f||(0===D&&(O=!0),M.height=0,T.height=D,T.scaledHeight=I),p||(0===A&&(O=!0),M.width=0,T.width=A,T.scaledWidth=C),g&&(O=!1),z.createElement(_,Wk({ref:this._setRef,style:Wk(Wk({},M),x)},E),!O&&o(T))}}const Gm=He("div")(()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"}));function tp(i){let{text:o}=i;const{translator:a}=z.useContext(sr);return Y.createElement(Gm,null,a.get(o))}const np={fontSize:"12px"},aD=He(Va)(i=>{let{theme:o,isLoading:a}=i;return{position:"absolute",top:0,left:0,height:48,zIndex:2,background:o.palette.custom.disabledBackground,opacity:1,color:o.palette.custom.disabledContrastText,width:"100%",display:"flex",justifyContent:a?"center":"flex-start",paddingLeft:16,paddingRight:16,borderRadius:0,"& *, & p":{color:o.palette.custom.disabledContrastText},"& i":{padding:"".concat(7,"px")}}}),lD=He(tt,{shouldForwardProp:i=>!["styles","isRtl"].includes(i)})(i=>{let{styles:o,isRtl:a}=i;return de(de({flexDirection:a?"row-reverse":"row",wrap:"nowrap",minHeight:32,alignContent:"center"},o.header),{},{"& *":{color:o.header.color}})}),RM=He(Gn)(i=>{let{styles:o}=i;return de(de({},o.header),{},{display:"block",alignItems:"center",paddingRight:"1px"})});function IM(i){let{translator:o,toggleLock:a,keyboard:u,isLoading:f}=i;const p=o.get("SelectionToolbar.ClickToUnlock");return Y.createElement(aD,{title:p,tabIndex:u.enabled?0:-1,onClick:a,"data-testid":"listbox-unlock-button",id:"listbox-unlock-button",isLoading:f},f?Y.createElement(fm,{size:16,variant:"indeterminate",color:"primary"}):Y.createElement(Xs,{disableRipple:!0,style:np}),!f&&Y.createElement(Gn,{fontSize:"14px"},p))}var I1=i=>kr((o=>de(de({},o),{},{shapes:[{type:"path",attrs:{d:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"}}]}))(i)),MM=i=>kr((o=>de(de({},o),{},{shapes:[{type:"path",attrs:{d:"M7 4h9v1H7zm2 4h7v1H9zm2 4h5v1h-5zM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4z"}}]}))(i)),PL=i=>kr((o=>de(de({},o),{},{shapes:[{type:"path",attrs:{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-7Z"}}]}))(i));var Qd_createDimensionIconData=i=>{let{dimInfo:o,app:a,selections:u,isPopover:f,active:p,keyboard:g}=i;switch(o.qGrouping){case"H":return{icon:MM,tooltip:"Listbox.DrillDown",onClick:void 0};case"C":{const y=a&&p,b=()=>{f||u.confirm(),a.getDimension(o.qLibraryId).then(x=>{x.stepCycle?x.stepCycle(1):console.log("engine api spec version doesn't have support for function stepCycle")}).catch(()=>null)};return{icon:y?PL:I1,tooltip:"Listbox.Cyclic",onClick:y?b:void 0,onKeyDown:y?x=>{const _=x.currentTarget.closest(".listbox-container");switch(x.keyCode){case Kt.SPACE:case Kt.ENTER:b();break;case Kt.TAB:{if(!g.enabled)return;let E;E=x.shiftKey?g.focusSelection():Pd(_)||Uc(_),E||Nd(x,g)}break;default:return}x.preventDefault(),x.stopPropagation()}:void 0}}default:return}};const LM=He(Jg)(()=>({borderRadius:4,width:24,height:24,minWidth:22,padding:0}));function Yd(i){let{iconData:o,translator:a,iconStyle:u,disabled:f,keyboard:p}=i;if(!o)return;const{icon:g,tooltip:y,onClick:b,onKeyDown:x}=o,_=g,E=a.get(y);return b?Y.createElement(LM,{variant:"outlined",onClick:b,tabIndex:p.innerTabStops?0:-1,title:E,size:"large",disableRipple:!0,disabled:f,onKeyDown:x,className:"listbox-cyclic-button","data-testid":"listbox-cyclic-button"},Y.createElement(_,{style:u})):Y.createElement(_,{title:E,size:"large",style:de(de({},u),{},{padding:"".concat(7,"px")})})}let M1=0;function PM(i){var o,a,u;let{layout:f,translator:p,styles:g,isRtl:y,showLock:b,showSearchIcon:x,constraints:_,onShowSearch:E,classes:D,containerRect:I,isPopover:C,showToolbar:A,showDetachedToolbarOnly:M,containerRef:T,model:O,selectionState:L,isDirectQuery:F,selections:P,keyboard:q,autoConfirm:$,app:Q,disablePortal:X}=i;const[ae,le]=z.useState(M),[oe,K]=z.useState(null==f||null===(o=f.qListObject)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o?void 0:o.qLocked),[U,ne]=z.useState(!1);z.useEffect(()=>{var Me;K(null==f||null===(Me=f.qListObject)||void 0===Me||null===(Me=Me.qDimensionInfo)||void 0===Me?void 0:Me.qLocked)},[null==f||null===(a=f.qListObject)||void 0===a||null===(a=a.qDimensionInfo)||void 0===a?void 0:a.qLocked]);const se=z.useRef(null),he=Qd_createDimensionIconData({dimInfo:null==f||null===(u=f.qListObject)||void 0===u?void 0:u.qDimensionInfo,app:Q,selections:P,isPopover:C,active:!(null!=_&&_.active),keyboard:q}),B=b&&oe,G=!b&&oe,Z=x||G||he,re=9-(Z?7:0),te=y?9-(Z?7:0):4,ce=(x?28:0)+(G?28:0)+(he?28:0),ye=function(Me){let{isLocked:nt,setLocked:Ge,settingLockedState:yt,model:Rt,setSettingLockedState:Bt}=Me;return()=>{const ze=new Date;if(ze-M1<500)return Promise.resolve();if(yt)return()=>{};Bt(!0),M1=ze;const It=nt?Rt.unlock:Rt.lock;return Ge(!nt),It.call(Rt,"/qListObjectDef").catch(()=>{Ge(nt)}).finally(()=>{setTimeout(()=>{Bt(!1)},0)})}}({isLocked:oe,setLocked:K,settingLockedState:U,setSettingLockedState:ne,model:O}),Se=Jb({layout:f,model:O,translator:p,selectionState:L,isDirectQuery:F,selections:P}),Ae=oe||!b?void 0:[{key:"lock",type:void 0,label:p.get("SelectionToolbar.ClickToLock"),getSvgIconShape:Rb,enabled:()=>!U&&!L.selectDisabled()&&RC(f),action:ye}],Le=null!=_&&_.active?Y.createElement(r1,{title:p.get("Listbox.Search"),size:"large",style:de(de({},np),{},{padding:"".concat(7,"px")})}):Y.createElement(xo,{onClick:E,tabIndex:-1,title:p.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},Y.createElement(r1,{style:np}));z.useEffect(()=>{if(!se.current||!I)return;const Me=function(nt){var Ge,yt,Rt,Bt;let{containerRect:ze,titleRef:It,iconsWidth:ct,paddingLeft:Ht,paddingRight:xt}=nt;const ft=ze.width<(null!==(Ge=null==It||null===(yt=It.current)||void 0===yt?void 0:yt.clientWidth)&&void 0!==Ge?Ge:0)+ct+(Ht+xt)+2+128,ht=(null==It||null===(Rt=It.current)||void 0===Rt?void 0:Rt.scrollWidth)>(null==It||null===(Bt=It.current)||void 0===Bt?void 0:Bt.offsetWidth);return!(!ft&&!ht)}({containerRect:I,titleRef:se,iconsWidth:ce,paddingLeft:re,paddingRight:te});le(M||Me)},[ce,re,te,se.current,M,Object.entries(I||{}).sort().join(",")]);const Ne=function(Me){let{isDetached:nt,showToolbar:Ge,containerRef:yt,isLocked:Rt,listboxSelectionToolbarItems:Bt,extraItems:ze,selections:It,keyboard:ct,autoConfirm:Ht,disablePortal:xt}=Me;return{autoConfirm:Ht,isDetached:nt,show:Ge&&!nt,popover:{show:Ge&&nt,anchorEl:yt.current},extraItems:ze,more:{enabled:!Rt,actions:Bt,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"},disablePortal:xt},selections:{show:Ge,api:It,onConfirm:()=>{null==ct||ct.focus()},onCancel:()=>{null==ct||ct.focus()}}}}({isDetached:!C&&ae,showToolbar:A,containerRef:T,isLocked:oe,extraItems:Ae,listboxSelectionToolbarItems:Se,selections:P,keyboard:q,autoConfirm:$,disablePortal:X}),Ve=Y.createElement(n1,Er({isRtl:y,layout:f},Ne));if(M)return Ve;const Re=G?Y.createElement(Xs,{size:"large",style:de(de({},np),{},{padding:"".concat(7,"px")})}):void 0;return Y.createElement(lD,{item:!0,container:!0,styles:g,isRtl:y,marginY:1,paddingLeft:"".concat(re,"px"),paddingRight:"".concat(te,"px"),className:"header-container"},B&&Y.createElement(IM,{isLoading:U,translator:p,toggleLock:ye,keyboard:q}),Z&&Y.createElement(tt,{item:!0,container:!0,alignItems:"center",width:ce,className:"header-action-container"},Re||x&&Le,Y.createElement(Yd,{iconData:he,iconStyle:np,disabled:P.isActive()&&C,translator:p,keyboard:q})),Y.createElement(tt,{item:!0,xs:!0,minWidth:0,justifyContent:y?"flex-end":"flex-start",className:D.listBoxHeader},Y.createElement(RM,{variant:"h6",noWrap:!0,ref:se,title:f.title,styles:g},f.title)),Y.createElement(tt,{item:!0,display:"flex"},Ve))}const cD="ListBoxInline",Zd={listBoxHeader:"".concat(cD,"-listBoxHeader"),screenReaderOnly:"".concat(cD,"-screenReaderOnly"),listboxWrapper:"".concat(cD,"-listboxWrapper")},NL=He(tt,{shouldForwardProp:i=>!["containerPadding","isGridMode","styles"].includes(i)})(i=>{let{theme:o,containerPadding:a,isGridMode:u,styles:f}=i;return de(de({},f.background),{},{["& .".concat(Zd.listBoxHeader)]:{alignSelf:"center",display:"flex"},["& .".concat(Zd.screenReaderOnly)]:{position:"absolute",height:0,width:0,overflow:"hidden"},["& .".concat(Zd.listboxWrapper)]:{padding:a},"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(o.palette.custom.focusBorder," !important")},"&:focus ::-webkit-scrollbar-track":{boxShadow:u?void 0:"inset -2px -2px 0px #3F8AB3"},"&:focus-visible":{outline:"none"}})}),uD=Y.memo(function(i){var o,a,u,f;let{options:p,layout:g}=i;const{app:y,direction:b,frequencyMode:x,checkboxes:_,search:E=!0,focusSearch:D=!1,rangeSelect:I=!0,model:C,selections:A,update:M,fetchStart:T,postProcessPages:O,calculatePagesHeight:L,showGray:F=!0,scrollState:P,renderedCallback:q,toolbar:$=!0,isPopover:Q=!1,showLock:X=!1,components:ae,selectDisabled:le=(()=>!1),disablePortal:oe=!0}=p,K=ri(),{translator:U,keyboardNavigation:ne,themeApi:se,constraints:he}=z.useContext(sr),{checkboxes:B=_}=g||{},G=ZC({app:y,themeApi:se,theme:K,components:ae,checkboxes:B}),Z=function(bt){let{appLayout:Ct}=bt;return!(null==Ct||!Ct.qIsDirectQueryMode)}({appLayout:null==y?void 0:y.layout}),re=z.useRef(),te=z.useRef(),[ce,ye]=hs(),[Se,Ae]=z.useState(!1),[Le,Ne]=z.useState(!1),Ve=z.useRef(!1),[Re,Me]=z.useState({down:0,up:0,scrollPosition:""}),nt=bt=>Me(Ct=>de(de({},Ct),bt)),[Ge,yt]=z.useState({start:0,stop:0}),[Rt]=Om(y),[Bt]=z.useState(()=>s1({selectDisabled:le})),ze=Dm({containerRef:re,enabled:ne}),It=z.useCallback(()=>(bt=>{var Ct,on;let{app:Un,appSelections:Tn}=bt;return null!==(Ct=null===(on=Un.isInModalSelection)||void 0===on?void 0:on.call(Un))&&void 0!==Ct?Ct:Tn.isInModal()})({app:y,appSelections:Rt}),[y,Rt]),ct=null==g?void 0:g.qListObject.qDimensionInfo.qError,Ht=ct&&he.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",{handleKeyDown:xt,handleOnMouseEnter:st,handleOnMouseLeave:ft,globalKeyDown:ht}=z.useMemo(()=>function R1(i){let{keyboard:o,hovering:a,updateKeyScroll:u,currentScrollIndex:f,isModal:p,constraints:g,selections:y}=i;return{handleKeyDown:b=>{const{keyCode:x,shiftKey:_=!1}=b.nativeEvent,E=()=>{b.stopPropagation(),b.preventDefault()};if(!o.enabled)return;const D=b.currentTarget.closest(".listbox-container"),I=p();switch(x){case Kt.TAB:if(document.activeElement===D||!I&&!D.contains(document.activeElement))return;if(_)Uc(D)||Pd(D)||Nd(b,o);else if(!(Fd(D)||Pd(D)||Uc(D)))break;E();break;case Kt.ENTER:case Kt.SPACE:if(!b.target.classList.contains("listbox-container"))break;o.focus(),E();break;case Kt.ESCAPE:Nd(b,o),y.isActive()&&y.cancel()}},handleOnMouseEnter:()=>{a.current=!0},handleOnMouseLeave:()=>{a.current&&(a.current=!1)},globalKeyDown:b=>{if(!a.current||(()=>{const D=(null==g?void 0:g.select)||(null==g?void 0:g.active),I=p();return D||I})())return;const{keyCode:x,ctrlKey:_=!1,shiftKey:E=!1}=b;switch(x){case Kt.ARROW_UP:u({up:1});break;case Kt.ARROW_DOWN:u({down:1});break;case Kt.PAGE_UP:u({up:f.stop-f.start});break;case Kt.PAGE_DOWN:u({down:f.stop-f.start});break;case Kt.HOME:u({scrollPosition:_&&E?"overflowStart":"start"});break;case Kt.END:u({scrollPosition:_&&E?"overflowEnd":"end"});break;default:return}b.preventDefault()}}}({keyboard:ze,hovering:Ve,updateKeyScroll:nt,currentScrollIndex:Ge,constraints:he,isModal:It,selections:A}),[ze,Ve,nt,re,Ge,y,Rt,he,It]);z.useEffect(()=>(document.addEventListener("keydown",ht),()=>{document.removeEventListener("keydown",ht)}),[ht]),z.useEffect(()=>{!0===E&&Ne(!0);const bt=()=>{Ae(!0)},Ct=()=>{Ae(!1),"toggle"===E&&Ne(!1)};return Q&&(A.isActive()||(A.on("activated",bt),A.on("deactivated",Ct)),Ae(Q)),$&&A&&(A.isModal()||(A.on("activated",bt),A.on("deactivated",Ct)),Ae(Q||A.isActive())),()=>{A&&A.removeListener&&(A.removeListener("activated",bt),A.removeListener("deactivated",Ct))}},[$,A,Q]);const{wildCardSearch:at,searchEnabled:gt,autoConfirm:$e=!1,layoutOptions:Ke={}}=null!=g?g:{},hn=null==g||null===(o=g.qListObject)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o?void 0:o.qLocked,zn=!1!==gt&&"toggle"===E&&!hn,qn=(null==g||null===(a=g.title)||void 0===a?void 0:a.length)&&!1!==(null==g?void 0:g.showTitle),gr=$&&!qn&&!Q,Ir=$&&qn||Q,Mr="rtl"===b;if(!C||!g||!U)return null;const pn=!0===E||"toggle"===E&&Le&&!1!==gt,nn=null!==(u=Ke.dense)&&void 0!==u&&u,Jt=()=>{Ne(!Le)},mn=()=>{"toggle"===E?Jt():te.current.focus()},gn=pn&&("toggle"===E||D),yn="grid"===(null==Ke?void 0:Ke.dataLayout),rt=function(bt){let Ct,{isGridMode:on,dense:Un,height:Tn,layoutOrder:jn}=bt;if(on){let zt;zt=Wb({isGridMode:on,dense:Un})>Tn?"0px":"2px",Ct="row"===jn?"".concat(zt," 4px"):"".concat(zt," 6px ").concat(zt," 4px")}else Ct=void 0;return Ct}({isGridMode:yn,dense:nn,height:null===(f=re.current)||void 0===f?void 0:f.clientHeight,layoutOrder:Ke.layoutOrder});ct&&(null==q||q());const _t=Ir?30:0,Gt=Y.createElement(PM,{app:y,showSearchIcon:zn,onShowSearch:Jt,isPopover:Q,showToolbar:Se,isDirectQuery:Z,autoConfirm:$e,showDetachedToolbarOnly:gr,layout:g,translator:U,styles:G,isRtl:Mr,showLock:X,constraints:he,classes:Zd,containerRect:ye,containerRef:re,model:C,selectionState:Bt,selections:A,keyboard:ze,disablePortal:oe});return Y.createElement(Y.Fragment,null,gr&&Gt,Y.createElement(NL,{className:"listbox-container",container:!0,tabIndex:ze.enabled?-1:void 0,direction:"column",gap:0,containerPadding:rt,styles:G,style:{height:"100%",flexFlow:"column nowrap"},onKeyDown:xt,onMouseEnter:st,onMouseLeave:ft,ref:bt=>{re.current=bt,ce(bt)},isGridMode:yn,"aria-label":ze.active?U.get("Listbox.ScreenReaderInstructions"):""},Ir&&Gt,Y.createElement(tt,{item:!0,container:!0,direction:"column",height:"100%",minHeight:_t,role:"region","aria-label":U.get("Listbox.ResultFilterLabel")},Y.createElement(tt,{item:!0},Y.createElement(o1,{ref:te,selections:A,selectionState:Bt,model:C,dense:nn,keyboard:ze,visible:pn,search:E,autoFocus:gn,beginSelectionOnFocus:!Q,wildCardSearch:at,searchEnabled:gt,direction:b,hide:zn&&Jt,styles:G})),Y.createElement(tt,{item:!0,xs:!0,className:Zd.listboxWrapper},ct?Y.createElement(tp,{text:Ht}):Y.createElement(AM,null,bt=>{let{height:Ct,width:on}=bt;return Y.createElement(Zb,{model:C,app:y,constraints:he,layout:g,selections:A,selectionState:Bt,direction:b,frequencyMode:x,rangeSelect:I,checkboxes:B,height:Ct,width:on,update:M,fetchStart:T,postProcessPages:O,calculatePagesHeight:L,keyboard:ze,showGray:F,scrollState:P,keyScroll:{state:Re,reset:()=>Me({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:Ge,set:yt},renderedCallback:q,onCtrlF:mn,isModal:It,styles:G})})))))});function T1(i){let{options:o={}}=i;const{model:a}=o,[u]=Vo(a);return Y.createElement(uD,{options:o,layout:u})}const Um={qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:"",qShowAlternatives:!0,frequencyEnabled:!1,qFrequencyMode:"N",qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},histogram:!1,frequencyMax:void 0,checkboxes:!1,searchEnabled:!0,showTitle:!0,wildCardSearch:!1,autoConfirm:!1,layoutOptions:{dense:!1,dataLayout:"singleColumn",layoutOrder:"row",maxVisibleColumns:{auto:!0,maxColumns:3},maxVisibleRows:{auto:!0,maxRows:3}},title:""};function NM(i){let o;switch(!0){case["none","N","NX_FREQUENCY_NONE"].includes(i):o="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(i):o="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(i):o="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(i):o="R";break;default:o="N"}return o}const jM=["__DO_NOT_USE__"],dD=function(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{__DO_NOT_USE__:o={}}=i,a={update:void 0,fetchStart:void 0,showGray:!0,focusSearch:!1,sessionModel:void 0,selectionsApi:void 0,selectDisabled:void 0,postProcessPages:void 0,calculatePagesHeight:!1};return de(de(de({},gl(i,jM)),a),o)},BM=z.forwardRef((i,o)=>{let{app:a,fieldIdentifier:u,qId:f,stateName:p,element:g,initialOptions:y,renderedCallback:b}=i;const[x,_]=z.useState(y),{isExistingObject:E,hasExternalSelectionsApi:D}=function(L){let{qId:F,options:P}=L;return{isExistingObject:!(!F&&!P.sessionModel),hasExternalSelectionsApi:!!P.selectionsApi}}({qId:f,options:x});E||Object.assign(x,{frequencyMode:NM(x.frequencyMode)});const[I,C]=z.useState(0);z.useEffect(()=>{if(I)throw new Error("Source or selection Api can not change after a listbox has been mounted");C(I+1)},[E,D]);const A=E?function FM(i){let{app:o,qId:a,options:u={}}=i;const[f,p]=z.useState(),[g]=oi(),{sessionModel:y}=u,b=["dense","frequencyMode","checkboxes","histogram","title","stateName","listLayout"],x=Object.keys(u).filter(_=>b.includes(_));if(x.length)throw new Error('Option "'.concat(x.join(", "),'" is not applicable for existing objects.'));return z.useEffect(()=>{var _;Promise.resolve(y||(_=qe(function*(E){return g.get(E)||(yield o.getObject(E))}),function(E){return _.apply(this,arguments)})(a)).then(_=>{var E;g.get((E=_).id)||(g.set(E.id,E),E.once("closed",()=>{g.clear(E.id)})),p(_)})},[]),f}({app:a,qId:f,options:x}):function(L){var F;let{app:P,fieldIdentifier:q,stateName:$,options:Q={}}=L;const[X,ae]=z.useState(""),[le,oe]=z.useState(!0),[K,U]=z.useState(),[ne,se]=z.useState(),he=null!==(F=Q.title)&&void 0!==F?F:ne;let{histogram:B=!1,frequencyMode:G="N"}=Q;X&&X.failedToFetchFieldDef&&(B=!1,G="N"),z.useEffect(()=>{q.qLibraryId&&(B||"N"!==G)?qe(function*(){try{const Re=yield P.getDimension(q.qLibraryId),Me=yield Re.getLayout();se(Me.qDim.title),ae("N"===Me.qDim.qGrouping?Me.qDim.qFieldDefs?Me.qDim.qFieldDefs[0]:"":{multiFieldDim:!0}),oe(!1)}catch(Re){throw oe(!1),ae({failedToFetchFieldDef:!0}),new Error("Disabling frequency count and histogram: ".concat(Re&&Re.message))}})():(oe(!1),se(q))},[]);const{dense:Z,checkboxes:re,listLayout:te,properties:ce={}}=Q,ye={dense:Z};"horizontal"===te&&(ye.dataLayout="grid",ye.layoutOrder="column",ye.maxVisibleColumns={auto:!0},ye.maxVisibleRows={auto:!1,maxRows:1});const Se=z.useRef();Se.current||(Se.current=Oi());const Ae=Wr(!0,{},Um,{qInfo:{qId:Se.current},qListObjectDef:{qStateName:$,qFrequencyMode:B&&"N"===G?"V":G},histogram:B,checkboxes:re,layoutOptions:ye,title:he});let Le;Wr(!0,Ae,ce),q.qLibraryId?(Ae.qListObjectDef.qLibraryId=q.qLibraryId,Le=q.qLibraryId):(Ae.qListObjectDef.qDef.qFieldDefs=[q],Le=q),"P"!==G&&B&&(Ae.frequencyMax=null!=X&&X.multiFieldDim?"fetch":{qValueExpression:hC(q.qLibraryId?X:Le)});const[Ne]=Qa(Ae,le?null:P,Le,$);return z.useEffect(()=>{Ne&&U(Ne)},[Ne]),K}({app:a,fieldIdentifier:u,stateName:p,options:x}),M=z.useRef(g),T=D?x.selectionsApi:Lm(a,A,[M,".njs-action-toolbar-more",".njs-action-toolbar-popover"],x)[0],O=z.useMemo(()=>de(de({},x),{},{selections:T,model:A,app:a,renderedCallback:b}),[x,T,A,a]);return z.useImperativeHandle(o,()=>({setOptions:L=>_(L)}),[]),T&&A?Y.createElement(T1,{options:O}):null}),zM={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function qM(i){let{app:o,fieldIdentifier:a,stateName:u,element:f,options:p={}}=i;const[g,y]=z.useState(!!p.show);return Y.createElement(Xh,{show:g,app:o,alignTo:{current:f},anchorOrigin:p.anchorOrigin,transformOrigin:p.transformOrigin,close:()=>{y(!1),p.onPopoverClose&&p.onPopoverClose()},fieldName:a,stateName:u,autoFocus:p.autoFocus,components:p.components,sortCriteria:p.sortCriteria,direction:p.direction})}function fD(i,o){for(let a=0;a<i.length;++a)i[a]>=0&&i[a]>=o&&++i[a];i.push(o)}function hD(i,o){let a=0;for(let u=0;u<i.length;++u)i[u]>o?--i[u]:i[u]===o&&(a=u);return i.splice(a,1),a}function gD(i){let{dc:o,def:a,properties:u}=i;o.qDimensions=o.qDimensions||[],o.qMeasures=o.qMeasures||[],o.qInterColumnSortOrder=o.qInterColumnSortOrder||[],o.qInitialDataFetch=o.qInitialDataFetch||[],o.qColumnOrder=o.qColumnOrder||[],o.qExpansionState=o.qExpansionState||[];const f=u,p={dimensions:()=>o.qDimensions,measures:()=>o.qMeasures,addDimension(g){const y="string"==typeof g?(i=>({qDef:{qFieldDefs:[i]}}))(g):de(de({},g),{},{qDef:g.qDef||{}});return y.qDef.cId=y.qDef.cId||Oi(),y.qDef.qSortCriterias=y.qDef.qSortCriterias||[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],y.qOtherTotalSpec=y.qOtherTotalSpec||{},y.qAttributeExpressions=y.qAttributeExpressions||[],y.qAttributeDimensions=y.qAttributeDimensions||[],o.qDimensions.length<p.maxDimensions()?(o.qDimensions.push(y),fD(o.qInterColumnSortOrder,o.qDimensions.length-1),a.dimensions.added(y,f)):(o.qLayoutExclude=o.qLayoutExclude||{},o.qLayoutExclude.qHyperCubeDef=o.qLayoutExclude.qHyperCubeDef||{},o.qLayoutExclude.qHyperCubeDef.qDimensions=o.qLayoutExclude.qHyperCubeDef.qDimensions||[],o.qLayoutExclude.qHyperCubeDef.qMeasures=o.qLayoutExclude.qHyperCubeDef.qMeasures||[],o.qLayoutExclude.qHyperCubeDef.qDimensions.push(y)),y},removeDimension(g){const y=o.qDimensions.splice(g,1)[0];return hD(o.qInterColumnSortOrder,g),a.dimensions.removed(y,f,g),y},addMeasure(g){const y="string"==typeof g?(i=>({qDef:{qDef:i}}))(g):de(de({},g),{},{qDef:g.qDef||{}});y.qDef.cId=y.qDef.cId||Oi(),y.qSortBy=y.qSortBy||{qSortByLoadOrder:1,qSortByNumeric:-1},y.qAttributeDimensions=y.qAttributeDimensions||[],y.qAttributeExpressions=y.qAttributeExpressions||[],o.qMeasures.length<p.maxMeasures()?(o.qMeasures.push(y),fD(o.qInterColumnSortOrder,o.qDimensions.length+o.qMeasures.length-1),a.measures.added(y,f)):(o.qLayoutExclude=o.qLayoutExclude||{},o.qLayoutExclude.qHyperCubeDef=o.qLayoutExclude.qHyperCubeDef||{},o.qLayoutExclude.qHyperCubeDef.qDimensions=o.qLayoutExclude.qHyperCubeDef.qDimensions||[],o.qLayoutExclude.qHyperCubeDef.qMeasures=o.qLayoutExclude.qHyperCubeDef.qMeasures||[],o.qLayoutExclude.qHyperCubeDef.qMeasures.push(y))},removeMeasure(g){const y=o.qMeasures.splice(g,1)[0];hD(o.qInterColumnSortOrder,o.qDimensions.length+g),a.measures.removed(y,f,g)},maxDimensions:()=>a.dimensions.max(o.qMeasures.length),maxMeasures:()=>a.measures.max(o.qDimensions.length),canAddDimension:()=>o.qDimensions.length<p.maxDimensions(),canAddMeasure:()=>o.qMeasures.length<p.maxMeasures()};return p}function yD(i){let{dc:o,def:a,properties:u}=i;o.qInitialDataFetch=o.qInitialDataFetch||[];const f=u,p={dimensions:()=>o.qLibraryId||o.qDef&&o.qDef.qFieldDefs&&0!==o.qDef.qFieldDefs.length?[o]:[],measures:()=>[],addDimension(g){const y="string"==typeof g?(i=>({qDef:{qFieldDefs:[i]}}))(g):de(de({},g),{},{qDef:g.qDef||{}});return y.qDef.cId=y.qDef.cId||Oi(),y.qDef.qSortCriterias=o.qDef.qSortCriterias||[{qSortByState:1,qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],Object.keys(y).forEach(b=>{o[b]=y[b]}),a.dimensions.added(y,f),y},removeDimension(g){const y=o;return delete o.qDef,delete o.qLibraryId,a.dimensions.removed(y,f,g),y},addMeasure(){},removeMeasure(){},maxDimensions:()=>1,maxMeasures:()=>0,canAddDimension:()=>0===p.dimensions().length,canAddMeasure:()=>!1};return p}function VM(i){let{children:o,halo:a}=i;return{addDimension:u=>qe(function*(){const f=(i=>{let o;var a;return o=Wr(!0,{},Um,"string"==typeof i?{qListObjectDef:(a=i,{qDef:{qFieldDefs:[a]}})}:i.qListObjectDef?i:{qListObjectDef:i}),o})(u),p=f.qListObjectDef;if(p.qDef.cId=p.qDef.cId||Oi(),!f.title)if(p.qLibraryId){const b=yield a.app.getDimension(p.qLibraryId),x=yield b.getProperties();f.title=x.qDim.qLabelExpression?{qStringExpression:{qExpr:x.qDim.qLabelExpression}}:x.qDim.title}else{var g,y;f.title=p.qDef.title||(null===(g=p.qDef.qFieldLabels)||void 0===g?void 0:g[0])||(null===(y=p.qDef.qFieldDefs)||void 0===y?void 0:y[0])}o.push({qProperty:f,qChildren:[]})})(),addMeasure(){}}}function $M(i){return"string"==typeof i&&"="===i[0]||"object"==typeof i&&i.qDef&&i.qDef.qDef||"object"==typeof i&&i.qLibraryId&&"measure"===i.type?"measure":"dimension"}function bD(i,o){return O1.apply(this,arguments)}function O1(){return O1=qe(function*(i,o){let{sn:a,properties:u,fields:f,children:p}=i;if(!f.length)return;const g=a.qae.data.targets[0];if(!g)return;const{propertyPath:y}=g,b=y.split("/");let x=u;for(let D=0;D<b.length;D++){const I=b[D];x=I?x[I]:x}const E=((D=y).match("/qListObjectDef")?yD:D.match("/qChildListDef")?VM:gD)({dc:x,def:g,properties:u,children:p,halo:o});var D;for(let D=0;D<f.length;++D){const I=f[D];"measure"===$M(I)?yield E.addMeasure(I):yield E.addDimension(I)}}),O1.apply(this,arguments)}var Br_getValue=(i,o,a)=>{if(null==i||null==o)return a;const u=o.split(".");let f=i;for(let p=0;p<u.length;++p){const g=u[p];if(""!==g){if(null==f[g])return a;f=f[g]}}return f},Br_setValue=(i,o,a)=>{if(null==i||null==o)return;const u=o.split("."),f=u[u.length-1];let p=i;for(let g=0;g<u.length-1;++g){const y=u[g];null!=p[y]||(p[y]=Number.isNaN(+u[g+1])?{}:[]),p=p[y]}void 0!==a&&"__proto__"!==f&&"constructor"!==f?p[f]=a:delete p[f]},Br_isEmpty=i=>0===Object.keys(i).length&&i.constructor===Object,L1_isOrderedSubset=function(i,o){if(!(i&&o&&i.length&&o.length))return!1;let a=i.indexOf(o[0]);if(-1!==a){for(let u=0;u<o.length;u++){const f=i.indexOf(o[u]);if(a>f)return!1;a=f}return!0}return!1},L1_indexAdded=function(i,o){let a;for(a=0;a<i.length;++a)i[a]>=0&&i[a]>=o&&++i[a];i.push(o)},L1_indexRemoved=function(i,o){let a,u=0;for(a=0;a<i.length;++a)i[a]>o?--i[a]:i[a]===o&&(u=a);return i.splice(u,1),u};const wD=Zo(2,53)-1;function Xd(i){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(i)}function Jd(i,o){const a=Wr(!0,{},o,i);return Br_getValue(a,"qOtherTotalSpec.qOtherCounted")||Br_setValue(a,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),Br_getValue(a,"qOtherTotalSpec.qOtherLimit")||Br_setValue(a,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),a.hasOwnProperty("othersLabel")||(a.othersLabel="Others"),a}function $l(i,o){return Wr(!0,{},o,i)}function Li(i,o,a){return"function"==typeof i?i(o):Number.isNaN(+i)?a:i}var pr={restoreChangedProperties:function(i){Object.keys(i.qLayoutExclude.changed).forEach(o=>{i.qLayoutExclude.changed[o].to===Br_getValue(i,o)&&Br_setValue(i,o,i.qLayoutExclude.changed[o].from)})},isMasterItemProperty:Xd,importCommonProperties:function(i,o,a){const u="masterobject"===Br_getValue(o,"properties.qInfo.qType")?"masterobject":Br_getValue(a,"qInfo.qType");Br_setValue(i,"qInfo.qType",u),i.visualization=a.visualization},copyPropertyIfExist:function(i,o,a){o.hasOwnProperty(i)&&(a[i]=o[i])},copyPropertyOrSetDefault:function(i,o,a,u){a[i]=o.hasOwnProperty(i)?o[i]:u},createDefaultDimension:Jd,createDefaultMeasure:$l,resolveValue:Li,getHypercubePath:function(i){const o=Br_getValue(i,"data.targets.0.propertyPath","").split("/");return o.length&&"qHyperCubeDef"===o[o.length-1]&&(o.length-=1),o.join(".")},getDefaultDimension: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}}},getDefaultMeasure:function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},setInterColumnSortOrder:function(i){let{exportFormat:o,newHyperCubeDef:a}=i;const u=o.data[0],f=a.qDimensions.length+a.qMeasures.length;a.qInterColumnSortOrder=u.interColumnSortOrder.concat();let p=a.qInterColumnSortOrder.length;if(p!==f)for(a.qLayoutExclude&&(a.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=u.interColumnSortOrder.concat());p!==f;)p<f?(L1_indexAdded(a.qInterColumnSortOrder,p),++p):(--p,L1_indexRemoved(a.qInterColumnSortOrder,p))},createNewProperties:function(i){let{exportFormat:o,initialProperties:a,hypercubePath:u}=i,f={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(o.properties).forEach(p=>{"qLayoutExclude"===p?o.properties[p].quarantine&&(f.qLayoutExclude.quarantine=Wr(!0,{},o.properties[p].quarantine)):"qHyperCubeDef"===p&&u?Br_setValue(f,"".concat(u,".qHyperCubeDef"),o.properties.qHyperCubeDef):a.hasOwnProperty(p)||Xd(p)?f[p]=o.properties[p]:f.qLayoutExclude.disabled[p]=o.properties[p]}),f=Wr(!0,{},a,f),null===f.components&&(f.components=[]),f},getMaxMinDimensionMeasure:function(i){let{exportFormat:o,dataDefinition:a={}}=i;const u=o.data[0],f=a.dimensions||{max:0},p=a.measures||{max:0},g=Li(p.max,u.dimensions.length,wD),y=Li(p.min,u.dimensions.length,0);return{maxDimensions:Li(f.max,g,wD),minDimensions:Li(f.min,y,0),maxMeasures:g,minMeasures:y}},shouldInitLayoutExclude:function(i){let{exportFormat:o,maxDimensions:a,minDimensions:u,maxMeasures:f,minMeasures:p}=i;const g=o.data[0];return g.dimensions.length>a&&a>0||g.measures.length>f&&f>0||g.excludedDimensions.length>0&&g.dimensions.length+g.excludedDimensions.length>u||g.excludedMeasures.length>0&&g.measures.length+g.excludedMeasures.length>p||!f&&g.measures.length>0||!a&&g.dimensions.length>0},initLayoutExclude:function(i){let{exportFormat:o,maxDimensions:a,minDimensions:u,maxMeasures:f,minMeasures:p,newHyperCubeDef:g}=i;const y=o.data[0];g.qLayoutExclude||(g.qLayoutExclude={}),g.qLayoutExclude.qHyperCubeDef||(g.qLayoutExclude.qHyperCubeDef={}),(y.dimensions.length>a&&a>0||y.excludedDimensions&&y.excludedDimensions.length&&y.dimensions.length+y.excludedDimensions.length>u)&&(g.qLayoutExclude.qHyperCubeDef.qDimensions||(g.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(y.measures.length>f&&f>0||y.excludedMeasures&&y.excludedMeasures.length&&y.measures.length+y.excludedMeasures.length>p)&&(g.qLayoutExclude.qHyperCubeDef.qMeasures||(g.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!f&&y.measures.length&&(g.qLayoutExclude.qHyperCubeDef.qMeasures||(g.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!a&&y.dimensions.length&&(g.qLayoutExclude.qHyperCubeDef.qDimensions||(g.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},addDefaultDimensions:function(i){let{exportFormat:o,maxDimensions:a,minDimensions:u,newHyperCubeDef:f,defaultDimension:p}=i;const g=o.data[0];let y;if(a>0)for(y=0;y<g.dimensions.length;++y)f.qDimensions.length<a?f.qDimensions.push(Jd(g.dimensions[y],p)):f.qLayoutExclude.qHyperCubeDef.qDimensions.push(Jd(g.dimensions[y],p));else if(g.dimensions.length)for(y=0;y<g.dimensions.length;++y)f.qLayoutExclude.qHyperCubeDef.qDimensions.push(Jd(g.dimensions[y],p));if(g.excludedDimensions.length)for(y=0;y<g.excludedDimensions.length;++y)f.qDimensions.length<u?f.qDimensions.push(Jd(g.excludedDimensions[y],p)):f.qLayoutExclude.qHyperCubeDef.qDimensions.push(Jd(g.excludedDimensions[y],p))},addDefaultMeasures:function(i){let{exportFormat:o,maxMeasures:a,minMeasures:u,newHyperCubeDef:f,defaultMeasure:p}=i;const g=o.data[0];let y;if(a>0)for(y=0;y<g.measures.length;++y)f.qMeasures.length<a?f.qMeasures.push($l(g.measures[y],p)):f.qLayoutExclude.qHyperCubeDef.qMeasures.push($l(g.measures[y],p));else if(g.measures.length)for(y=0;y<g.measures.length;++y)f.qLayoutExclude.qHyperCubeDef.qMeasures.push($l(g.measures[y],p));if(g.excludedMeasures.length)for(y=0;y<g.excludedMeasures.length;++y)f.qMeasures.length<u?f.qMeasures.push($l(g.excludedMeasures[y],p)):f.qLayoutExclude.qHyperCubeDef.qMeasures.push($l(g.excludedMeasures[y],p))},updateDimensionsOnAdded:function(i){let{newProperties:o,dataDefinition:a,hypercubePath:u}=i;if(a.dimensions&&"function"==typeof a.dimensions.added){const f=Br_getValue(o,u||"").qHyperCubeDef,p=[...f.qDimensions];f.qDimensions=[],p.forEach(g=>{f.qDimensions.push(g),a.dimensions.added(g,o)})}},updateMeasuresOnAdded:function(i){let{newProperties:o,dataDefinition:a,hypercubePath:u}=i;if(a.measures&&"function"==typeof a.measures.added){const f=Br_getValue(o,u||"").qHyperCubeDef,p=[...f.qMeasures];f.qMeasures=[],p.forEach(g=>{f.qMeasures.push(g),a.measures.added(g,o)})}}},ip={exportProperties:i=>function(o){let{propertyTree:a,hypercubePath:u}=o;const f=function(){let x=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;const _={data:[],properties:{}};for(let E=0;E<x;++E)_.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return _}(),p=a.qProperty,g=Br_getValue(p,u||""),y=g.qHyperCubeDef,b=f.data[0];if(y.qInterColumnSortOrder||(y.qInterColumnSortOrder=[]),b.dimensions.push(...y.qDimensions),y.qLayoutExclude&&y.qLayoutExclude.qHyperCubeDef&&y.qLayoutExclude.qHyperCubeDef.qDimensions&&b.excludedDimensions.push(...y.qLayoutExclude.qHyperCubeDef.qDimensions),b.measures.push(...y.qMeasures),y.qLayoutExclude&&y.qLayoutExclude.qHyperCubeDef&&y.qLayoutExclude.qHyperCubeDef.qMeasures&&b.excludedMeasures.push(...y.qLayoutExclude.qHyperCubeDef.qMeasures),b.interColumnSortOrder=y.qInterColumnSortOrder.concat(),y.qLayoutExclude&&y.qLayoutExclude.qHyperCubeDef&&y.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const x=y.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();L1_isOrderedSubset(x,b.interColumnSortOrder)&&(b.interColumnSortOrder=x)}return delete y.qLayoutExclude,Object.keys(p).forEach(x=>{f.properties[x]=p[x]}),u&&(f.properties.qHyperCubeDef=g.qHyperCubeDef,delete g.qHyperCubeDef),p.qLayoutExclude||(p.qLayoutExclude={}),p.qLayoutExclude.disabled&&(Object.keys(p.qLayoutExclude.disabled).forEach(x=>{f.properties.hasOwnProperty(x)||(f.properties[x]=p.qLayoutExclude.disabled[x])}),delete p.qLayoutExclude.disabled),p.qLayoutExclude.changed&&(pr.restoreChangedProperties(p),delete p.qLayoutExclude.changed),p.qLayoutExclude.quarantine&&!Br_isEmpty(p.qLayoutExclude.quarantine)||delete p.qLayoutExclude,f}(i),importProperties:i=>function(o){let{exportFormat:a,initialProperties:u={},dataDefinition:f={},defaultPropertyValues:p={},hypercubePath:g}=o;const y={qChildren:[]},b=pr.createNewProperties({exportFormat:a,initialProperties:u,hypercubePath:g}),x=Br_getValue(u,g||"").qHyperCubeDef,_=Br_getValue(b,g||"").qHyperCubeDef,{maxDimensions:E,minDimensions:D,maxMeasures:I,minMeasures:C}=pr.getMaxMinDimensionMeasure({exportFormat:a,dataDefinition:f}),{defaultDimension:A=pr.getDefaultDimension(),defaultMeasure:M=pr.getDefaultMeasure()}=p;return _.qDimensions.length=0,_.qMeasures.length=0,pr.shouldInitLayoutExclude({exportFormat:a,maxDimensions:E,minDimensions:D,maxMeasures:I,minMeasures:C})&&pr.initLayoutExclude({exportFormat:a,maxDimensions:E,minDimensions:D,maxMeasures:I,minMeasures:C,newHyperCubeDef:_}),pr.addDefaultDimensions({exportFormat:a,maxDimensions:E,minDimensions:D,newHyperCubeDef:_,defaultDimension:A}),pr.addDefaultMeasures({exportFormat:a,maxMeasures:I,minMeasures:C,newHyperCubeDef:_,defaultMeasure:M}),pr.setInterColumnSortOrder({exportFormat:a,newHyperCubeDef:_}),pr.copyPropertyIfExist("qMaxStackedCells",x,_),pr.copyPropertyIfExist("qNoOfLeftDims",x,_),pr.copyPropertyOrSetDefault("qInitialDataFetch",x,_,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),pr.copyPropertyOrSetDefault("qMode",x,_,"S"),pr.copyPropertyOrSetDefault("qReductionMode",x,_,"N"),pr.copyPropertyOrSetDefault("qSortbyYValue",x,_),pr.copyPropertyOrSetDefault("qIndentMode",x,_),pr.copyPropertyOrSetDefault("qShowTotalsAbove",x,_),pr.importCommonProperties(b,a,u),pr.updateDimensionsOnAdded({newProperties:b,dataDefinition:f,hypercubePath:g}),pr.updateMeasuresOnAdded({newProperties:b,dataDefinition:f,hypercubePath:g}),y.qProperty=b,y}(i)};const oa=i=>Br_getValue(i,"data.targets.0.propertyPath"),op=function(){var i=qe(function*(o){let{halo:a,model:u,cellRef:f,newType:p,properties:g,viewDataMode:y=!1}=o;const b=g?{qProperty:g}:yield u.getFullPropertyTree(),x=f.current.getQae(),_=(i=>i.exportProperties?i.exportProperties:(o=>{if(o.split("/").indexOf("qHyperCubeDef")>-1)return ip.exportProperties})(oa(i)))(x);if(!_)throw new Error("Source chart does not support conversion");const E=yield(C=qe(function*(A){let{halo:M,name:T,version:O}=A;const{types:L}=M;return yield L.get({name:T,version:O}).supernova()}),function(A){return C.apply(this,arguments)})({halo:a,name:p}),D=E.qae,I=(i=>i.importProperties?i.importProperties:(o=>{if(o.split("/").indexOf("qHyperCubeDef")>-1)return ip.importProperties})(oa(i)))(D);var C;if(!I)throw new Error("Target chart does not support conversion");return I({exportFormat:_({propertyTree:b,hypercubePath:pr.getHypercubePath(x),viewDataMode:y}),initialProperties:de({qInfo:{qType:p},visualization:p},Br_getValue(D,"properties.initial",{})),dataDefinition:Br_getValue(D,"data.targets.0.",{}),hypercubePath:pr.getHypercubePath(D),viewDataMode:y})});return function(a){return i.apply(this,arguments)}}(),Wm={hypercube:ip};var $o=i=>kr((o=>de(de({},o),{},{shapes:[{type:"path",attrs:{d:"M8.86225926,1.6 L15.7815749,13.5 C16.2829746,14.3 15.8818548,15 14.9793354,15 L1.04042422,15 C0.0853772072,15 -0.232971797,14.3650794 0.172002787,13.6135407 L7.05722041,1.6 C7.55862009,0.8 8.36085958,0.8 8.86225926,1.6 Z M7.962,2.007 C7.95987183,2.02476599 7.95607967,2.03712023 7.94920396,2.05249845 L1.1033193,14 L14.915544,14 L7.99777452,2.10265906 L7.97779697,2.06138411 L7.96394459,2.01964415 L7.962,2.007 Z M7.5,11 L8.5,11 C8.76666667,11 8.95432099,11.1580247 8.99272977,11.4038409 L9,11.5 L9,12.5 C9,12.7666667 8.84197531,12.954321 8.59615912,12.9927298 L8.5,13 L7.5,13 C7.23333333,13 7.04567901,12.8419753 7.00727023,12.5961591 L7,12.5 L7,11.5 C7,11.2333333 7.15802469,11.045679 7.40384088,11.0072702 L7.5,11 L8.5,11 L7.5,11 Z M7.5,5 L8.5,5 C8.76666667,5 8.95432099,5.15802469 8.99272977,5.40384088 L9,5.5 L9,9.5 C9,9.76666667 8.84197531,9.95432099 8.59615912,9.99272977 L8.5,10 L7.5,10 C7.23333333,10 7.04567901,9.84197531 7.00727023,9.59615912 L7,9.5 L7,5.5 C7,5.23333333 7.15802469,5.04567901 7.40384088,5.00727023 L7.5,5 L8.5,5 L7.5,5 Z"}}]}))(i));function UM(i){let{d:o}=i;const a=ri();let u="inherit",f=a.palette.success.main;o.missing?f=a.palette.warning.main:o.error&&(u="error",f=a.palette.error.main);const p={color:f},g=Y.createElement(Gn,{style:{lineHeight:"30px",paddingRight:a.spacing(1)}},Y.createElement(oI,null,Y.createElement(o.missing||o.error?$o:Lb,{style:p})));return Y.createElement(tt,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},Y.createElement(tt,{item:!0},g),Y.createElement(tt,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},Y.createElement(Gn,{noWrap:!0,component:"p"},Y.createElement(Gn,{component:"span",variant:"subtitle2",color:u},o.description),Y.createElement(Gn,{component:"span"}," "),Y.createElement(Gn,{component:"span",variant:"subtitle2",color:o.error?"error":"inherit",style:{fontWeight:400}},o.label))))}function WM(i){let{data:o}=i;const a=ri();return Y.createElement(tt,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},o.map((u,f)=>{const p=u.descriptions.map((g,y)=>Y.createElement(UM,{d:g,key:y}));return p.length>0&&Y.createElement(tt,{container:!0,item:!0,key:f,direction:"column",style:{paddingBottom:a.spacing(2)}},Y.createElement(Gn,{noWrap:!0,key:f,variant:"subtitle1",align:"left",color:"textSecondary"},u.title),p)}))}function xD(i){let{title:o="Error",message:a="",data:u=[]}=i;return Y.createElement(tt,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},Y.createElement(tt,{item:!0},Y.createElement($o,{style:{fontSize:"38px"}})),Y.createElement(tt,{item:!0},Y.createElement(Gn,{variant:"h6",align:"center","data-tid":"error-title"},o)),Y.createElement(tt,{item:!0},Y.createElement(Gn,{variant:"subtitle1",align:"center","data-tid":"error-message"},a)),Y.createElement(WM,{data:u}))}const _D=["size"],sp="Progress",ru={root:"".concat(sp,"-root"),front:"".concat(sp,"-front"),back:"".concat(sp,"-back")},KM=He("div")(i=>{let{theme:o}=i;return{["&.".concat(ru.root)]:{position:"relative",display:"inline-block"},["& .".concat(ru.front)]:{color:o.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(ru.back)]:{color:o.palette.divider}}}),QM={small:16,medium:32,large:64,xlarge:128};function YM(i){let{size:o="medium"}=i,a=gl(i,_D);const u=QM[o];return Y.createElement(KM,{className:ru.root},Y.createElement(fm,Er({variant:"determinate",value:100,className:ru.back,size:u,thickness:3},a)),Y.createElement(fm,Er({variant:"indeterminate",disableShrink:!0,className:ru.front,size:u,thickness:3},a)))}const P1=["cancel","translator"],F1=["retry","translator"],ap={stripes:"".concat("LongRunningQuery","-stripes")},N1=He(tt)(()=>({["& .".concat(ap.stripes)]:{"&::before":{position:"absolute",height:"100%",width:"100%",top:0,left:0,content:'""',backgroundSize:"14.14px 14.14px",backgroundImage:"linear-gradient(135deg, currentColor 10%, rgba(0,0,0,0) 10%, rgba(0,0,0,0) 50%, currentColor 50%, currentColor 59%, rgba(0,0,0,0) 60%, rgba(0,0,0,0) 103%)",opacity:.1}}}));function j1(i){let{cancel:o,translator:a}=i,u=gl(i,P1);return Y.createElement(Y.Fragment,null,Y.createElement(N1,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},Y.createElement(tt,{item:!0},Y.createElement(YM,null)),Y.createElement(tt,{item:!0},Y.createElement(Gn,{variant:"h6",align:"center","data-tid":"update-active"},a.get("Object.Update.Active")))),Y.createElement(tt,Er({item:!0},u),Y.createElement(Jg,{variant:"contained",onClick:o},a.get("Cancel"))))}function ZM(i){let{retry:o,translator:a}=i,u=gl(i,F1);return Y.createElement(Y.Fragment,null,Y.createElement(tt,{item:!0},Y.createElement($o,{style:{fontSize:"38px"}})),Y.createElement(tt,{item:!0},Y.createElement(Gn,{variant:"h6",align:"center","data-tid":"update-cancelled"},a.get("Object.Update.Cancelled"))),Y.createElement(tt,{item:!0},Y.createElement(Jg,Er({variant:"contained",onClick:o},u),a.get("Retry"))))}function XM(i){let{canCancel:o,canRetry:a,api:u}=i;const{translator:f}=z.useContext(sr);return Y.createElement(tt,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:ap.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},o&&Y.createElement(j1,{cancel:u.cancel,translator:f,className:ap.cancel}),a&&Y.createElement(ZM,{retry:u.retry,translator:f,className:ap.retry}))}function JM(){return Y.createElement(tt,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},Y.createElement(YM,{size:"large"}))}const lp={containerStyle:"".concat("Header","-containerStyle"),containerTitleStyle:"".concat("Header","-containerTitleStyle")},B1=He(tt)(i=>{let{theme:o}=i;return{["&.".concat(lp.containerStyle)]:{flexGrow:0},["&.".concat(lp.containerTitleStyle)]:{paddingBottom:o.spacing(1)}}});function e5(i){let{layout:o,sn:a,anchorEl:u,hovering:f,focusHandler:p,titleStyles:g={}}=i;const y=o.showTitles&&!!o.title,b=o.showTitles&&!!o.subtitle,x=o.qSelectionInfo&&o.qSelectionInfo.qInSelections,[_,E]=z.useState([]),[D,I]=hs(),[C,A]=z.useState(!1);z.useEffect(()=>{a&&a.component&&a.component.isHooked&&a.component.observeActions(P=>{E([...P,...a&&a.selectionToolbar&&a.selectionToolbar.items||[]])})},[a]),z.useEffect(()=>{if(!I)return;const{width:P}=I;A(P<221)},[I]);const M=y||b,T=[lp.containerStyle,...M?[lp.containerTitleStyle]:[]],O=(f||x)&&(C||!M),F=Y.createElement(n1,{show:M&&!O&&!C,selections:{show:x,api:a.component.selections,onKeyDeactivate:p.refocusContent},actions:_,popover:{show:O,anchorEl:u},focusHandler:p,layout:o});return Y.createElement(B1,{ref:D,item:!0,container:!0,wrap:"nowrap",className:T.join(" ")},Y.createElement(tt,{item:!0,zeroMinWidth:!0,xs:!0},Y.createElement(tt,{container:!0,wrap:"nowrap",direction:"column"},y&&Y.createElement(zl,{title:o.title},Y.createElement(Gn,{variant:"h6",noWrap:!0,className:"njs-cell-title",style:g.main},o.title)),b&&Y.createElement(zl,{title:o.subtitle},Y.createElement(Gn,{variant:"body2",noWrap:!0,className:"njs-cell-sub-title",style:g.subTitle},o.subtitle)))),Y.createElement(tt,{item:!0},F))}const Km={itemStyle:"".concat("Footer","-itemStyle")},t5=He(tt)(i=>{let{theme:o}=i;return{["& .".concat(Km.itemStyle)]:{minWidth:0,paddingTop:o.spacing(1)}}});function CD(i){let{layout:o,titleStyles:a={}}=i;return o&&o.showTitles&&o.footnote?Y.createElement(t5,{container:!0},Y.createElement(tt,{item:!0,className:Km.itemStyle},Y.createElement(zl,{title:o.footnote},Y.createElement(Gn,{noWrap:!0,variant:"body2",className:"njs-cell-footer",style:a.footer},o.footnote)))):null}class n5{constructor(){this.timer=null,this.next=null,this.running=!1}start(){this.running||(this.running=!0,this.scheduleNext())}scheduleNext(){this.timer=setTimeout(()=>{this.doNext()},10)}doNext(){var o=this;return qe(function*(){const a=o.next;o.next=null,a?(yield a(),o.scheduleNext()):o.stop()})()}schedule(o){this.next=o,this.start()}stop(){this.running&&(clearTimeout(this.timer),this.timer=null,this.running=!1)}}function r5(i){let{sn:o,snOptions:a,snPlugins:u,layout:f,appLayout:p,halo:g}=i;const{component:y}=o,{theme:b,language:x,constraints:_,interactions:E,keyboardNavigation:D}=z.useContext(sr),[I]=z.useState(()=>new n5),[C,A]=z.useState(!1),[M,T]=z.useState(0),[O,L,F]=hs(),[P,q]=z.useState(null),$=z.useCallback(Q=>{Q&&q(Q)},[]);return z.useEffect(()=>{if(P)return y.created({options:a}),y.mounted(P),A(!0),()=>{I.stop(),y.willUnmount()}},[P,y]),z.useEffect(()=>{C&&P&&L&&(!y.isHooked&&f&&f.qSelectionInfo&&f.qSelectionInfo.qInSelections||I.schedule(()=>{const Q=[];return _.passive||Q.push("passive"),_.active||Q.push("interact"),_.select||Q.push("select"),_.edit||Q.push("edit"),g.app&&g.app.session&&Q.push("fetch"),Promise.resolve(y.render({layout:f,options:a,plugins:u,embed:g.public.nebbie,context:de({constraints:_,interactions:E,theme:g.public.theme,appLayout:p,keyboardNavigation:D},y.isHooked?{}:{logicalSize:o.logicalSize({layout:f}),localeInfo:(p||{}).qLocaleInfo,permissions:Q})})).then(X=>{!1!==X&&(0===M&&"function"==typeof a.onInitialRender&&a.onInitialRender.call(null),T(M+1))})}))},[L,a,u,P,F,f,p,b,x,_,E,C,D]),Y.createElement("div",{ref:O,"data-render-count":M,style:{position:"relative",height:"100%"},className:"njs-viz"},Y.createElement("div",{ref:$,style:{position:"absolute",width:"100%",height:"100%"}}))}class iu extends Error{constructor(o,a){super(o),this.originalError=a,this.name="RenderError"}}const s5=(i,o)=>{switch(o.type){case"LOADING":return de(de({},i),{},{loading:!0});case"LOADED":return de(de({},i),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:o.sn,visualization:o.visualization});case"RENDER":return de(de({},i),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null});case"LONG_RUNNING_QUERY":return de(de({},i),{},{longRunningQuery:!0});case"ERROR":return de(de({},i),{},{loading:!1,longRunningQuery:!1,error:o.error});default:throw new Error("Unhandled type: ".concat(o.type))}};function jL(i){let{delay:o=750}=i;const[a,u]=z.useState(!1);return z.useEffect(()=>{const f=setTimeout(()=>u(!0),o);return()=>clearTimeout(f)},[]),a?Y.createElement(JM,null):null}const ef=i=>!i.qError||7005===i.qError.qErrorCode,kD=(i,o,a,u,f)=>[...Array(i).keys()].map(p=>{const g=!(!o||!o[p]),y=g&&o[p].qError&&7005===o[p].qError.qErrorCode,b=g&&!y&&o[p].qError,_="".concat(b?u:y?y&&o[p].qCalcCondMsg||f:g&&o[p].qFallbackTitle||""),E=a(p);return{description:E?"".concat(E).concat(_.length?":":""):null,label:_,missing:o&&!g&&!b&&p>=o.length||y,error:b}}),tf=i=>i&&(Array.isArray(i)?i:[i])||[],a5=(i,o,a,u)=>{const f=u.dimensions.min(),p=u.measures.min(),g=u.resolveLayout(o);return{reqDimErrors:kD(f,tf(g.qDimensionInfo||g.qItems),y=>u.dimensions.description(a,y),i.get("Visualization.Invalid.Dimension"),i.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:kD(p,tf(g.qMeasureInfo),y=>u.measures.description(a,y),i.get("Visualization.Invalid.Measure"),i.get("Visualization.UnfulfilledCalculationCondition"))}},AD=function(){var i=qe(function*(o,a,u,f){let{targets:p}=u;const{hasUnfulfilledErrors:g,aggMinD:y,aggMinM:b,hasLayoutErrors:x,layoutErrors:_}=((F,P,q)=>{let $=!1,Q=0,X=0,ae=!1,le=!1;const oe=[];for(let K=0;K<P.length;++K){const U=P[K],ne=U.dimensions.min(),se=U.measures.min(),he=U.resolveLayout(q),B=tf(he.qDimensionInfo||he.qItems).filter(ef),G=tf(he.qMeasureInfo).filter(ef);if(Q+=ne,X+=se,(B.length<ne||G.length<se)&&($=!0),he.qError){ae=!0,le=7005===he.qError.qErrorCode;const Z=le&&he.qCalcCondMsg?he.qCalcCondMsg:F.get(le?"Visualization.UnfulfilledCalculationCondition":"Visualization.LayoutError");oe.push({title:Z,descriptions:[]})}}return{hasUnfulfilledErrors:$,aggMinD:Q,aggMinM:X,hasLayoutErrors:ae,layoutErrors:oe}})(o,p,a),E=[],D=[];let I=null;for(let F=0;F<p.length;++F){const P=p[F];if(!x&&g){const q=I||(yield f.getProperties());I=q;const $=a5(o,a,q,P);E.push(...$.reqDimErrors),D.push(...$.reqMeasErrors)}}const C=E.filter(F=>!(F.missing||F.error)).length,A=o.get("Visualization.Incomplete.Dimensions",[C,y]),M=D.filter(F=>!(F.missing||F.error)).length,T=o.get("Visualization.Incomplete.Measures",[M,b]),O=[{title:A,descriptions:[...E]},{title:T,descriptions:[...D]}],L=x?_:O;return[x||g,{title:x?_[0].title:o.get("Visualization.Incomplete"),data:L}]});return function(a,u,f,p){return i.apply(this,arguments)}}(),RD=z.forwardRef((i,o)=>{let{halo:a,model:u,initialSnOptions:f,initialSnPlugins:p,initialError:g,onMount:y,currentId:b,emitter:x,navigation:_,onError:E}=i;const{app:D,types:I}=a,{nebbie:C}=a.public,{theme:A,translator:M,language:T,keyboardNavigation:O,disableCellPadding:L=!1}=z.useContext(sr),F=ri(),[P,q,$]=hs(),[Q,X]=z.useReducer(s5,{loading:!1,loaded:!1,longRunningQuery:!1,error:(ae=g)?{title:ae.message}:null,sn:null,visualization:null});var ae;const[le,oe]=z.useState(u),[K,{validating:U,canCancel:ne,canRetry:se},he]=Vo(le),[B]=$c(D),[G,Z,re]=hs(),[te,ce]=z.useState(f),[ye,Se]=z.useState(p),Ae="njs-cell-".concat(b),[Le]=Lm(D,le,["#".concat(Ae),".njs-action-toolbar-popover"]),[Ne,Ve]=z.useState(!1),Re=z.useRef({enter:null,leave:null}),{titleStyles:Me,bgColor:nt,bgImage:Ge,border:yt,borderRadius:Rt,boxShadow:Bt}=((i,o,a,u)=>z.useMemo(()=>{if(i&&o){const p=i.components?i.components.find(E=>"general"===E.key):null,g={main:C1(p,"main",o,i.visualization),footer:C1(p,"footer",o,i.visualization),subTitle:C1(p,"subTitle",o,i.visualization)},y=qm(p,o,i.visualization),b=E1(p,a),x=function(E,D,I){const C=S1(null==E?void 0:E.borderColor,"","borderColor",D,I),A=(null==E?void 0:E.borderWidth)||zm("","borderWidth",D,I);return A&&C?"".concat(A," solid ").concat(C):void 0}(p,o,i.visualization);return{titleStyles:g,bgColor:y,bgImage:b,border:x,borderRadius:(D=o,I=i.visualization,(null==(E=p)?void 0:E.borderRadius)||zm("","borderRadius",D,I)),boxShadow:QC(p,o,i.visualization)}}var E,D,I;return{}},[i,o,a,u]))(K,a.public.theme,a.app,A),ze=z.useRef({focusToolbarButton(ct){this.emit(ct?"focus_toolbar_last":"focus_toolbar_first")}});z.useEffect(()=>{Vd(ze.current)},[]),ze.current.blurCallback=ct=>{a.root.toggleFocusOfCells(),ct&&re&&re.focus()},ze.current.refocusContent=()=>{Q.sn.component&&"function"==typeof Q.sn.component.focus&&Q.sn.component.focus()},z.useEffect(()=>{if(g)return void y();if(!B||!K)return;if(Q.visualization===K.visualization&&Q.sn)return void(Ht=qe(function*(xt){const[st,ft]=yield AD(M,K,xt.generator.qae.data,le);X(st?{type:"ERROR",error:ft}:{type:"RENDER"}),(ht=>{let{sn:at,layout:gt,model:$e}=ht;const Ke=at&&at.component&&at.component.selections;if(Ke&&Ke.id&&$e.id&&Ke.id===$e.id){if(gt&&gt.qSelectionInfo&&gt.qSelectionInfo.qInSelections&&!Ke.isModal()){const{targets:hn}=at.generator.qae.data;Ke.goModal(hn[0].propertyPath)}gt.qSelectionInfo&&gt.qSelectionInfo.qInSelections||Ke.isModal()&&Ke.noModal()}})({sn:Q.sn,layout:K,model:le})}),function(xt){return Ht.apply(this,arguments)})(Q.sn);var Ht;const ct=I.getSupportedVersion(K.visualization,K.version);return function(){var Ht=qe(function*(xt,st){var ft;X({type:"LOADING"}),yield(ft=qe(function*(ht){let{dispatch:at,types:gt,visualization:$e,version:Ke,model:hn,app:zn,selections:qn,nebbie:gr,focusHandler:Ir,emitter:Mr,onMount:pn,navigation:nn}=ht;try{const Jt=yield(gn=qe(function*(yn){let{types:rt,name:_t,version:Gt}=yn;return yield rt.get({name:_t,version:Gt}).supernova()}),function(yn){return gn.apply(this,arguments)})({types:gt,name:$e,version:Ke}),mn=Jt.create({model:hn,app:zn,selections:qn,nebbie:gr,focusHandler:Ir,emitter:Mr,navigation:nn});mn&&(at({type:"LOADED",sn:mn,visualization:$e}),pn())}catch(Jt){at(Ke?{type:"ERROR",error:{title:Jt.message,errorObject:Jt}}:{type:"ERROR",error:{title:"Could not find a version of '".concat($e,"' that supports current object version. Did you forget to register ").concat($e,"?")}}),pn()}var gn}),function(ht){return ft.apply(this,arguments)})({dispatch:X,types:I,visualization:xt,version:st,model:le,app:D,selections:Le,nebbie:C,focusHandler:ze.current,emitter:x,onMount:y,navigation:_})});return function(xt,st){return Ht.apply(this,arguments)}}()(K.visualization,ct),()=>{}},[I,Q.sn,le,Le,K,B,T]),z.useEffect(()=>{if(!U)return;const ct=setTimeout(()=>X({type:"LONG_RUNNING_QUERY"}),2e3);return()=>clearTimeout(ct)},[U]),z.useImperativeHandle(o,()=>({getQae:()=>Q.sn.generator.qae,toggleFocus(ct){"function"==typeof Q.sn.component.focus&&(ct?Q.sn.component.focus():Q.sn.component.blur())},setSnOptions:ce,setSnPlugins:Se,setModel:oe,getImperativeHandle(){var ct;return null!==(ct=Q.sn)&&void 0!==ct&&ct.component&&"function"==typeof Q.sn.component.getImperativeHandle?Q.sn.component.getImperativeHandle():{}},takeSnapshot:()=>qe(function*(){const{width:ct,height:Ht}=q;let xt=JSON.parse(JSON.stringify(K));return"function"==typeof Q.sn.component.setSnapshotData&&(xt=(yield Q.sn.component.setSnapshotData(xt))||xt),{key:String(+Date.now()),meta:{language:M.language(),theme:F.name,appLayout:B,size:{width:Math.round(ct),height:Math.round(Ht)}},layout:xt}})(),exportImage(){var ct=this;return qe(function*(){if("function"!=typeof a.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const Ht=yield ct.takeSnapshot();return a.config.snapshot.capture(Ht)})()}}),[Q.sn,Z,q,K,F.name,B]);let It=null;return Q.loading&&!Q.longRunningQuery?It=Y.createElement(jL,null):Q.error?(E&&E(Q.error.errorObject?Q.error.errorObject:new iu(Q.error.title)),It=Y.createElement(xD,Q.error)):Q.loaded&&(It=Y.createElement(r5,{key:K.visualization,sn:Q.sn,halo:a,snOptions:te,snPlugins:ye,layout:K,appLayout:B})),Y.createElement(j0,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:nt||"unset",backgroundImage:Ge&&Ge.url?"url(".concat(Ge.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:Ge&&Ge.size,backgroundPosition:Ge&&Ge.pos,border:yt,borderRadius:Rt,boxShadow:Bt,boxSizing:"border-box"},elevation:0,square:!0,className:"njs-cell",ref:P,id:Ae,onMouseEnter:()=>{Re.current.leave&&clearTimeout(Re.current.leave),Re.enter||(Re.current.enter=setTimeout(()=>{Ve(!0),Re.current.enter=null},250))},onMouseLeave:()=>{Re.current.enter&&clearTimeout(Re.current.enter),Re.current.leave||(Re.current.leave=setTimeout(()=>{Ve(!1),Re.current.leave=null},750))}},Y.createElement(tt,{container:!0,direction:"column",gap:0,style:de(de({position:"relative",width:"100%",height:"100%"},L?{}:{padding:F.spacing(1)}),Q.longRunningQuery?{opacity:"0.3"}:{})},$&&K&&Q.sn&&Y.createElement(e5,{layout:K,sn:Q.sn,anchorEl:$,hovering:Ne,focusHandler:ze.current,titleStyles:Me},"\xa0"),Y.createElement(tt,{tabIndex:O?0:-1,onKeyDown:O?ct=>{["Enter"," ","Spacebar"].includes(ct.key)&&a.root.toggleFocusOfCells(b)}:null,item:!0,xs:!0,style:{height:"100%"},ref:G},It),$&&K&&Q.sn&&Y.createElement(CD,{layout:K,titleStyles:Me})),Q.longRunningQuery&&Y.createElement(XM,{canCancel:ne,canRetry:se,api:he}))});function ID(i){return null!=i&&!Array.isArray(i)&&"object"==typeof i}function cp(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",o=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0;const u=[];return Object.keys(o).forEach(f=>{const p=o[f];var g,y;"object"!=typeof a[f]||"object"!=typeof p||Array.isArray(p)?(y=a[f],(ID(g=p)&&ID(y)?JSON.stringify(g)===JSON.stringify(y):!Array.isArray(g)&&!Array.isArray(y)&&g===y)||u.push({qPath:i+f,qOp:"add",qValue:JSON.stringify(o[f])})):u.push(...cp("".concat(i).concat(f,"/"),o[f],a[f]))}),u}function V1(i){if(!Array.isArray(i))throw new Error("Invalid plugin format: plugins should be an array!");i.forEach(o=>{if("object"!=typeof o)throw new Error("Invalid plugin format: a plugin should be an object");if("object"!=typeof o.info||"string"!=typeof o.info.name)throw new Error("Invalid plugin format: a plugin should have an info object containing a name");if("function"!=typeof o.fn)throw new Error('Invalid plugin format: The plugin "'.concat(o.info.name,'" has no "fn" function'))})}const MD=i=>{var o;return!(!i||i.qHasSoftPatches||i.qExtendsId||!(((null===(o=i.qMeta)||void 0===o?void 0:o.privileges)||[]).indexOf("update")>-1))},Qm=(i,o)=>i.__snInterceptor?i.__snInterceptor.setProperties.call(i,o):i.setProperties(o),nf=Wr.bind(null,!0),Ho={},{isArray:sa}=Array;function rf(i){return null!=i&&!Array.isArray(i)&&"object"==typeof i}function ou(i){return void 0===i}function sf(i,o){return"function"==typeof i[o]||"$$"===o.substring(0,2)||"_"===o.substring(0,1)}function $1(i,o){const a=o.substring(1).split("/").slice(0,-1);let u;return a.forEach((f,p)=>{if(p===a.length)return;u=+f;const g=isNaN(u)?{}:[];i[u||f]=ou(i[u||f])?g:i[f],i=i[u||f]}),i}function Ym(i,o){let a=!0;if(rf(i)&&rf(o))return Object.keys(i).length===Object.keys(o).length&&(Object.keys(i).forEach(u=>{Ym(i[u],o[u])||(a=!1)}),a);if(sa(i)&&sa(o)){if(i.length!==o.length)return!1;for(let u=0,f=i.length;u<f;u+=1)if(!Ym(i[u],o[u]))return!1;return!0}return i===o}Ho.generate=function(i,o,a){a=a||"";let u=[];return Object.keys(o).forEach(f=>{const p=(b=o[f])&&nf({},{val:b}).val,g=i[f],y="".concat(a,"/").concat(f);var b;Ym(p,g)||sf(o,f)||(ou(g)?u.push({op:"add",path:y,value:p}):rf(p)&&rf(g)?u=u.concat(Ho.generate(g,p,y)):sa(p)&&sa(g)?u=u.concat(function(b,x,_){let E=[];const D=b.slice();let I=-1;function C(A,M,T){if(A[T]&&ou(A[T].qInfo))return null;if(A[T]&&A[T].qInfo.qId===M)return T;for(let O=0,L=A.length;O<L;O+=1)if(A[O]&&A[O].qInfo.qId===M)return O;return-1}if(Ym(x,D))return E;if(!ou(x[0])&&ou(x[0].qInfo))return E.push({op:"replace",path:_,value:x}),E;for(let A=D.length-1;A>=0;A-=1)I=C(x,D[A].qInfo&&D[A].qInfo.qId,A),-1===I?(E.push({op:"remove",path:"".concat(_,"/").concat(A)}),D.splice(A,1)):E=E.concat(Ho.generate(D[A],x[I],"".concat(_,"/").concat(A)));for(let A=0,M=x.length;A<M;A+=1)I=C(D,x[A].qInfo&&x[A].qInfo.qId),-1===I?(E.push({op:"add",path:"".concat(_,"/").concat(A),value:x[A]}),D.splice(A,0,x[A])):I!==A&&(E.push({op:"move",path:"".concat(_,"/").concat(A),from:"".concat(_,"/").concat(I)}),D.splice(A,0,D.splice(I,1)[0]));return E}(g,p,y)):u.push({op:"replace",path:"".concat(a,"/").concat(f),value:p}))}),Object.keys(i).forEach(f=>{ou(o[f])&&!sf(i,f)&&u.push({op:"remove",path:"".concat(a,"/").concat(f)})}),u},Ho.apply=function(i,o){o.forEach(a=>{let u=$1(i,a.path),f=a.path.split("/").splice(-1)[0],p=f&&isNaN(+f)?u[f]:u[+f]||u;const g=a.from?a.from.split("/").splice(-1)[0]:null;if("/"===a.path&&(u=null,p=i),"add"===a.op||"replace"===a.op)if(sa(u))"-"===f&&(f=u.length),u.splice(+f,"add"===a.op?0:1,a.value);else if(sa(p)&&sa(a.value)){const b=a.value.slice();p.length=0,p.push(...b)}else if(rf(p)&&rf(a.value))y=p,Object.keys(y).forEach(b=>{Object.getOwnPropertyDescriptor(y,b).configurable&&!sf(y,b)&&delete y[b]}),nf(p,a.value);else{if(!u)throw new Error("Patchee is not an object we can patch");u[f]=a.value}else if("move"===a.op){const b=$1(i,a.from);sa(u)?u.splice(+f,0,b.splice(+g,1)[0]):(u[f]=b[g],delete b[g])}else"remove"===a.op&&(sa(u)?u.splice(+f,1):delete u[f]);var y})},Ho.clone=function(i){return nf({},i)},Ho.createPatch=function(i,o,a){const u={op:i.toLowerCase(),path:a};return"move"===u.op?u.from=o:void 0!==o&&(u.value=o),u},Ho.updateObject=function(i,o){Object.keys(i).length?Ho.apply(i,Ho.generate(i,o)):nf(i,o)};let ln,vs;function Zm(i,o){if(!i||o.length!==i.length)return!0;for(let a=0;a<o.length;a++)if(i[a]!==o[a])return!0;return!1}function l5(i){let{explicitResize:o=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i.__hooks={obsolete:!1,error:!1,waitForData:!1,chain:{promise:null,resolve:()=>{}},list:[],snaps:[],menus:[],actions:{list:[]},pendingEffects:[],pendingLayoutEffects:[],pendingPromises:[],resizer:{setters:[],explicitResize:o},accessibility:{setter:null},contraintsWarning:!0}}function TD(i){Xm(i.__hooks.list,!0),i.__hooks.obsolete=!0,i.__hooks.list.length=0,i.__hooks.pendingEffects.length=0,i.__hooks.pendingLayoutEffects.length=0,i.__hooks.actions=null,i.__hooks.imperativeHandle=null,i.__hooks.resizer=null,i.__hooks.accessibility=null,i.__actionsDispatch=null,clearTimeout(i.__hooks.micro),cancelAnimationFrame(i.__hooks.macro)}function G1(i){return U1.apply(this,arguments)}function U1(){return U1=qe(function*(i){if(i.__hooks.obsolete)return Promise.resolve();vs=-1,ln=i;try{ln.fn.call(null)}catch(a){console.error(a)}ln.__hooks.initiated=!0;const o=ln.__hooks;return W1(ln),vs=void 0,ln=void 0,o.chain.promise||(o.chain.promise=new Promise(a=>{o.chain.resolve=a})),Xm((a=o).pendingLayoutEffects),function(a){a.macro||(a.macro=requestAnimationFrame(()=>{var u,f;Xm((u=a).pendingEffects),u.macro=null,(f=u).pendingPromises.length||f.micro||f.macro||(f.chain.promise=null,f.chain.resolve(!f.waitForData))}))}(o),o.chain.promise;var a}),U1.apply(this,arguments)}function Xm(i,o){try{i.forEach(a=>{"function"==typeof a.teardown&&a.teardown(),o||(a.teardown=a.value[0]())})}catch(a){console.error(a)}i.length=0}function OD(i,o){try{return Promise.all(i.__hooks.snaps.map(a=>Promise.resolve(a.fn(o)))).then(a=>a[a.length-1])}catch(a){console.error(a)}return Promise.resolve()}function c5(i,o,a,u){try{return Promise.all(i.__hooks.menus.map(f=>Promise.resolve(f.fn(o,a,u)))).then(f=>f[f.length-1])}catch(f){console.error(f)}return Promise.resolve()}function u5(i){return i.__hooks.imperativeHandle}function W1(i){i.__actionsDispatch&&i.__hooks.actions.changed&&(i.__actionsDispatch(i.__hooks.actions.list.slice()),i.__hooks.actions.changed=!1)}function d5(i,o){i.__actionsDispatch=o,i.__hooks&&(i.__hooks.actions.changed=!0,W1(i))}function bs(i){if(void 0===ln)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const o=ln.__hooks;return i>=o.list.length&&o.list.push({}),o.list[i]}function Rr(i){return bs(++vs),ln.context[i]}function LD(i){i.__hooks&&(i.__hooks.resizer.update=!0)}function K1(i){return{__hooked:!0,fn:i,initiate:l5,run:G1,teardown:TD,runSnaps:OD,runMenu:c5,focus:p5,blur:g5,observeActions:d5,getImperativeHandle:u5,updateRectOnNextRun:LD}}function af(i){const o=bs(++vs);if(!o.value){o.component=ln;const a=u=>{if(o.component.__hooks.obsolete)return;const f="function"==typeof u?u(o.value[0]):u;var p;f!==o.value[0]&&(o.value[0]=f,(p=o.component).__hooks.micro||(p.__hooks.micro=setTimeout(()=>{p.__hooks.micro=null,G1(p)},0)))};o.value=["function"==typeof i?i():i,a]}return o.value}function PD(i,o){const a=bs(++vs);Zm(a.value?a.value[1]:void 0,o)&&(a.value=[i,o],-1===ln.__hooks.pendingEffects.indexOf(a)&&ln.__hooks.pendingEffects.push(a))}function f5(i,o){const a=bs(++vs);Zm(a.value?a.value[1]:void 0,o)&&(a.value=[i,o],ln.__hooks.pendingLayoutEffects.push(a))}function Jm(i,o){const a=bs(++vs);return Zm(a.value?a.value[0]:void 0,o)&&(a.value=[o,i()]),a.value[1]}function h5(){return Rr("element")}function p5(i){const o=i.__hooks.accessibility;o.active||(o.active=!0,o&&o.setter&&o.setter({active:!0,enabled:o.enabled,blur:o.exitFunction,focus:o.focusFunction,focusSelection:o.focusSelectionFunction}))}function g5(i){const o=i.__hooks.accessibility;o&&o.active&&(o.active=!1,o&&o.setter&&o.setter({active:!1,enabled:o.enabled,blur:o.exitFunction,focus:o.focusFunction,focusSelection:o.focusSelectionFunction}))}const m5={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:i=>Promise.resolve(i)},BL=Object.keys(m5);function qL(i,o){const a=de({},m5);(i=>{Object.keys(ui.prototype).forEach(o=>{i[o]=ui.prototype[o]}),ui.init(i)})(a);const u={emit(){a.emit(...arguments)}};Object.keys(i.component||{}).forEach(g=>{-1!==BL.indexOf(g)?a[g]=i.component[g].bind(u):u[g]=i.component[g]});const f=function(g){let{sn:y,component:b}=g;const x={},_=[],E=(i=>o=>{const a=(u=de(de({},o),{},{action(){"function"==typeof o.action&&o.action.call(a,i),a.emit("changed")},enabled:()=>"function"!=typeof o.enabled||o.enabled.call(a,i),active:"function"==typeof o.active?function(){return o.active.call(a,i)}:void 0}),Object.keys(ui.prototype).forEach(f=>{u[f]=ui.prototype[f]}),ui.init(u),u);var u;return a})(b);return((y.definition.selectionToolbar||{}).items||[]).forEach(D=>{const I=E(D);x[D.key]=I,_.push(I)}),(y.definition.actions||[]).forEach(D=>{const I=E(D);x[D.key]=I}),{actions:x,selectionToolbarItems:_,destroy(){_.length=0}}}({sn:i,component:u}),p=o.app&&o.app.session?o.app.session.getObjectApi({handle:-1}):null;return Object.assign(u,{model:o.model,app:o.app,global:p,selections:o.selections,actions:f.actions}),Object.assign(a,{actions:f.actions,model:o.model,app:o.app,selections:o.selections}),[a,f]}const Hl=()=>{};function y5(i,o){return void 0===i?()=>o:()=>i}function Q1(i){const o=i||{};return{min:"function"==typeof o.min?o.min:y5(o.min,0),max:"function"==typeof o.max?o.max:y5(o.max,1e3),added:o.added||o.add||Hl,description:o.description||Hl,moved:o.moved||o.move||Hl,removed:o.removed||o.remove||Hl,replaced:o.replaced||o.replace||Hl,isDefined:()=>!!i}}function up(i){const o=i.path||"/qHyperCubeDef",a=o.slice(0,-3);if(!1===/\/(qHyperCube|qListObject|qChildList)$/.test(a)){const u=a.includes("/qHyperCube")?"qHyperCubeDef":"qListObjectDef";throw new Error("Incorrect definition for ".concat(u," at ").concat(o,". Valid paths include /qHyperCubeDef, /qListObjectDef, or /qChildListDef, e.g. data/qHyperCubeDef"))}return{propertyPath:o,layoutPath:a,resolveLayout:u=>((i,o,a)=>{const u=o.split("/");let f=i;if(void 0===f)return a;for(let p=0;p<u.length;++p)if(""!==u[p]){if(void 0===f[u[p]])return a;f=f[u[p]]}return f})(u,a,{}),dimensions:Q1(i.dimensions),measures:Q1(i.measures)}}function FD(){let i,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=o.properties||{};return o.properties&&(o.properties.initial||o.properties.onChange)&&(a=o.properties.initial,i=o.properties.onChange),{properties:{initial:a,onChange:i},data:{targets:((o.data||{}).targets||[]).map(up)},exportProperties:o.exportProperties,importProperties:o.importProperties}}function v5(i,o){let a;a="function"==typeof i?i(o):i;const u={qae:FD(a.qae),component:a.component||{},create:f=>function VL(i,o,a){"function"==typeof i.component&&(i.component=K1(i.component));const[u,f]=i.component&&i.component.__hooked?function(g,y,b){const x=y.app&&y.app.session?y.app.session.getObjectApi({handle:-1}):void 0;let _=!1;const E={},D=["appLayout","constraints","interactions"],I={},C={};y.model&&y.model.session||(I.select=!0,I.edit=!0,C.select=!1,C.edit=!1);const A={context:{model:y.model,app:y.app,global:x,selections:y.selections,nebbie:y.nebbie,element:void 0,emitter:y.emitter,deviceType:b.deviceType,theme:void 0,translator:b.translator,navigation:y.navigation,layout:{},appLayout:{},keyboardNavigation:y.keyboardNavigation,focusHandler:y.focusHandler,constraints:I,interactions:C,options:{},plugins:[]},fn:g.component.fn,created(){},mounted(M){this.context.element=M,g.component.initiate(A,{explicitResize:!!y.explicitResize})},render(M){let T=!_||!1;if(M){if(M.layout&&M.layout!==this.context.layout&&(T=!0,this.context.layout=M.layout),M.context&&M.context.theme&&(this.context.theme=M.context.theme),M.context&&!!M.context.keyboardNavigation!=!!this.context.keyboardNavigation&&(this.context.keyboardNavigation=!!M.context.keyboardNavigation,T=!0),M.context&&M.context.focusHandler&&(this.context.focusHandler=M.context.focusHandler),M.options){const O={};let L=!1;Object.keys(M.options).forEach(F=>{O[F]=M.options[F],this.context.options[F]!==M.options[F]&&(L=!0)}),L&&(this.context.options=O,T=!0)}if(M.plugins){let O=this.context.plugins.length!==M.plugins.length;M.plugins.forEach((L,F)=>{this.context.plugins[F]!==L&&(O=!0)}),O&&(this.context.plugins=[...M.plugins],T=!0)}D.forEach(O=>{const L=M.context;if(L&&Object.prototype.hasOwnProperty.call(L,O)){let F=JSON.stringify(L[O]);"constraints"===O&&(F=JSON.stringify(de(de({},L[O]),I))),"interactions"===O&&(F=JSON.stringify(de(de({},L[O]),C))),F!==E[O]&&(T=!0,E[O]=F,this.context[O]=JSON.parse(F))}})}else T=!0;return this.context.theme&&this.context.theme.name()!==E.themeName&&(T=!0,E.themeName=this.context.theme.name()),this.context.translator.language()!==E.language&&(T=!0,E.language=A.context.translator.language()),T?(_=!0,this.currentResult=g.component.run(this),this.currentResult):this.currentResult||Promise.resolve()},resize(){return g.component.updateRectOnNextRun(this),this.render()},willUnmount(){g.component.teardown(this)},setSnapshotData(M){return g.component.runSnaps(this,M)},onContextMenu(M,T,O){return g.component.runMenu(this,M,T,O)},focus(){g.component.focus(this)},blur(){g.component.blur(this)},getImperativeHandle(){return g.component.getImperativeHandle(this)},destroy(){},observeActions(M){g.component.observeActions(this,M)},isHooked:!0};return D.forEach(M=>{E[M]=JSON.stringify(A.context[M])}),E.themeName=A.context.theme?A.context.theme.name():void 0,E.language=A.context.translator?A.context.translator.language():void 0,Object.assign(A,{selections:y.selections}),[A,null]}(i,o,a):qL(i,o),p=[];return o.model.__snInterceptor&&o.model.__snInterceptor.teardown(),i.qae.properties.onChange&&(o.model.__snInterceptor={setProperties:o.model.setProperties,applyPatches:o.model.applyPatches,teardown:void 0},o.model.setProperties=function(){for(var g=arguments.length,y=new Array(g),b=0;b<g;b++)y[b]=arguments[b];try{i.qae.properties.onChange.call({model:o.model},...y)}catch(x){}return o.model.__snInterceptor.setProperties.call(this,...y)},o.model.applyPatches=function(g,y){return o.model[y?"getEffectiveProperties":"getProperties"]().then(x=>{const _=Ho.clone(x),E=g.map(I=>({op:I.qOp,value:JSON.parse(I.qValue),path:I.qPath}));Ho.apply(x,E);try{i.qae.properties.onChange.call({model:o.model},x)}catch(I){}const D=Ho.generate(_,x).map(I=>({qOp:I.op,qValue:JSON.stringify(I.value),qPath:I.path}));return o.model.__snInterceptor.applyPatches.call(this,D,y)})},o.model.__snInterceptor.teardown=()=>{o.model.__snInterceptor&&(o.model.setProperties=o.model.__snInterceptor.setProperties,delete o.model.__snInterceptor)},p.push(o.model.__snInterceptor.teardown)),{generator:i,component:u,selectionToolbar:{items:f?f.selectionToolbarItems:[]},destroy(){p.forEach(g=>g())},logicalSize:i.definition.logicalSize||(()=>!1)}}(u,f,o),definition:{}};return Object.keys(a).forEach(f=>{u[f]||(u.definition[f]=a[f])}),u}const ey=(i,o,a)=>{if(!i)return Promise.resolve();let u=Ho.generate(o,a);return Wr(!0,o,a),u&&u.length?(u=u.map(f=>({qOp:f.op,qValue:JSON.stringify(f.value),qPath:f.path})),i.__snInterceptor?i.__snInterceptor.applyPatches.call(i,u,!0):i.applyPatches(u,!0)):Promise.resolve()},Z1=()=>{};function ws(){let i,{model:o,halo:a,navigation:u,initialError:f,onDestroy:p=qe(function*(){}),onRender:g=(()=>{}),onError:y=(()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},b=Z1,x=null,_=null,E=null,D=null;const I=new Promise(F=>{E=F}),C=new Promise(F=>{D=F}),A=F=>()=>{null==F||F(),D(),g()};let M={},T=[];const O=new ui;return{id:o.id,model:o,destroy:()=>qe(function*(){yield p(),b(),b=Z1})(),convertTo(F){var P=arguments;return qe(function*(){let q=P.length>2&&void 0!==P[2]&&P[2];if(!(P.length>1&&void 0!==P[1])||P[1]){const $=yield o.getLayout();if(MD($)&&!q){const le=yield op({halo:a,model:o,cellRef:x,newType:F});return yield Qm(o,le.qProperty),le}const Q=yield o.getEffectiveProperties(),X=yield op({halo:a,model:o,cellRef:x,newType:F,properties:Q}),ae=X.qProperty;return yield ey(o,Q,ae),X}return yield op({halo:a,model:o,cellRef:x,newType:F})})()},toggleDataView:F=>qe(function*(){let P;if(i||!1===F)i&&!0!==F&&(P=o,yield a.app.destroySessionObject(i),i=void 0);else{let q=a.config.context.dataViewType;const $=yield o.getEffectiveProperties();if(!a.types.getSupportedVersion(q)){if(!a.types.getSupportedVersion("table"))throw new Error("No data view type registered");q="table"}const Q=yield op({halo:a,model:o,cellRef:x,newType:q,properties:$,viewDataMode:!0});P=yield a.app.createSessionObject(Q.qProperty),i=P.id}P&&x.current.setModel(P)})(),addListener(F,P){O.addListener(F,P)},removeListener(F,P){O.removeListener(F,P)},getImperativeHandle:(F=qe(function*(){return yield C,x.current.getImperativeHandle()}),function(){return F.apply(this,arguments)}),takeSnapshot:function(){var F=qe(function*(){return yield C,x.current.takeSnapshot()});return function(){return F.apply(this,arguments)}}(),__DO_NOT_USE__:{mount(F){if(_)throw new Error("Already mounted");if(!(F instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return _=F,[b,x]=function(P){let{halo:q,element:$,model:Q,initialSnOptions:X,initialSnPlugins:ae,onMount:le,emitter:oe,initialError:K,navigation:U,onError:ne}=P;const{root:se}=q,he=Y.createRef(),B=Oi(),G=Gs.createPortal(Y.createElement(RD,{ref:he,halo:q,model:Q,currentId:B,initialSnOptions:X,initialSnPlugins:ae,initialError:K,onMount:le,emitter:oe,navigation:U,onError:ne}),$,B),Z=()=>{se.remove(G),Q.removeListener("closed",Z)};return Q.on("closed",Z),se.add(G),se.addCell(B,he),[Z,he]}({halo:a,element:F,model:o,initialSnOptions:M,initialSnPlugins:T,initialError:f,onMount:E,emitter:O,navigation:u,onError:y}),I},applyProperties:F=>qe(function*(){const P=cp("/",F,yield o.getEffectiveProperties());if(P.length)return o.applyPatches(P,!0)})(),options(F){var P;(P=qe(function*(q){const $=q.onInitialRender;_?qe(function*(){yield I,x.current.setSnOptions(de(de(de({},M),q),{onInitialRender:A($)}))})():M=de(de(de({},M),q),{onInitialRender:A($)})}),function(q){return P.apply(this,arguments)})(F)},plugins(F){var P;(P=qe(function*(q){V1(q),_?qe(function*(){yield I,x.current.setSnPlugins(q)})():T=q}),function(q){return P.apply(this,arguments)})(F)},exportImage:()=>x.current.exportImage(),takeSnapshot:()=>x.current.takeSnapshot(),getModel:()=>o,convert:{toType:F=>qe(function*(){const P=yield o.getEffectiveProperties(),q=yield op({halo:a,model:o,cellRef:x,newType:F,properties:P}),$=q.qProperty;return yield ey(o,P,$),q})(),revert:()=>qe(function*(){yield o.clearSoftPatches()})()}}};var F}function ty(i,o,a,u,f){return ND.apply(this,arguments)}function ND(){return ND=qe(function*(i,o,a,u,f){let p=arguments.length>5&&void 0!==arguments[5]?arguments[5]:qe(function*(){});const{onRender:g,onError:y}=o,b=ws({model:i,halo:a,navigation:u,initialError:f,onDestroy:p,onRender:g,onError:y});return o.options&&b.__DO_NOT_USE__.options(o.options),o.plugins&&b.__DO_NOT_USE__.plugins(o.plugins),o.element&&(yield b.__DO_NOT_USE__.mount(o.element)),b}),ND.apply(this,arguments)}function b5(i,o,a,u){return X1.apply(this,arguments)}function X1(){return X1=qe(function*(i,o,a,u){let{type:f,version:p,fields:g,properties:y,extendProperties:b}=i,x={};const _=[],{modelStore:E}=u;try{const D=o.types.get({name:f,version:p});x=yield D.initialProperties(y,b);const I=yield D.supernova();g&&(yield bD({sn:I,properties:x,fields:g,children:_},o)),y&&I&&I.qae.properties.onChange&&I.qae.properties.onChange.call({},x)}catch(D){x=a?null:{qInfo:{qType:f},visualization:f}}if(!a){const D=yield o.app.createObject(x);return _.length>0&&(yield D.setFullPropertyTree({qProperty:x,qChildren:_})),E.set(D.id,D),D}return x}),X1.apply(this,arguments)}function jD(i,o,a){return i.bounds?i.bounds:{y:i.row/a*100,x:i.col/o*100,width:i.colspan/o*100,height:i.rowspan/a*100}}const $L=z.forwardRef((i,o)=>{var a;let{model:u,halo:f,initialSnOptions:p,initialSnPlugins:g,initialError:y,onMount:b,unmount:x,navigation:_,onError:E}=i;const{root:D}=f,[I,C]=z.useState(u),[A]=Vo(I),{theme:M,modelStore:T}=z.useContext(sr),[O,L]=z.useState([]),[F,P]=z.useState(void 0),[q,$]=z.useState(void 0),[Q,X]=z.useState(""),ae=z.useRef({cellCount:0,cellsRendered:0,initialRender:!1});null==_||null===(a=_.setCurrentSheetId)||void 0===a||a.call(_,I.id),z.useEffect(()=>{if(A){const U=JSON.stringify(A.cells);if(U===Q)return;X(U),function(){var se=qe(function*(){O.forEach(te=>{D.removeCell(te.currentId)});const he=A.cells;ae.cellCount=he.length,ae.cellsRendered=0;const B=()=>{ae.cellsRendered++,ae.cellsRendered!==ae.cellCount||ae.initialRender||(ae.initialRender=!0,p.onInitialRender())},{columns:G,rows:Z}=A,re=yield Promise.all(he.map(function(){var te=qe(function*(ce){let ye;const Se=new Promise(Ne=>{ye=Ne}),Ae=O.find(Ne=>Ne.id===ce.name);return Ae?(Ae.bounds=jD(ce,G,Z),delete Ae.mountedPromise,Ae):{model:(yield(Ne=qe(function*(Ve,Re,Me){let{id:nt,options:Ge,plugins:yt,element:Rt}=Ve;const{modelStore:Bt,rpcRequestModelStore:ze}=Me,It="".concat(nt);let ct=ze.get(It);ct||(ct=Re.app.getObject(nt),ze.set(It,ct));const Ht=yield ct;return Bt.set(It,Ht),ty(Ht,{options:Ge,plugins:yt,element:Rt},Re)}),function(Ve,Re,Me){return Ne.apply(this,arguments)})({id:ce.name},f,T)).model,id:ce.name,bounds:jD(ce,G,Z),cellRef:Y.createRef(),currentId:Oi(),mounted:ye,mountedPromise:Se,options:de(de({},p),{onInitialRender:B})};var Ne});return function(ce){return te.apply(this,arguments)}}()));re.forEach(te=>D.addCell(te.currentId,te.cellRef)),L(re)});return function(){return se.apply(this,arguments)}}()()}},[A]),z.useEffect(()=>{const U=()=>{I.removeListener("closed",U),x()};return I.on("closed",U),()=>I.removeListener("closed",U)},[I]);const le=z.useMemo(()=>O?O.map(U=>function(ne,se,he,B,G,Z,re,te){const{x:ce,y:ye,width:Se,height:Ae}=ne.bounds;return Y.createElement("div",{style:{left:"".concat(ce,"%"),top:"".concat(ye,"%"),width:"".concat(Se,"%"),height:"".concat(Ae,"%"),position:"absolute"},key:ne.model.id},Y.createElement(RD,{ref:ne.cellRef,halo:se,model:ne.model,currentId:ne.currentId,initialSnOptions:he,initialSnPlugins:B,initialError:G,onMount:Z,navigation:re,onError:te}))}(U,f,U.options,g,y,U.mounted,_,E)):[],[O]);z.useEffect(()=>{const U=null!=A&&A.components?A.components.find(ne=>"general"===ne.key):null;P(qm(U,f.public.theme)),$(E1(U,f.app))},[A,f.public.theme,f.app,M]),z.useImperativeHandle(o,()=>({setModel:C}),[]);const oe=!A||Number.isNaN(A.height)?"100%":"".concat(Number(A.height),"%"),K=O.map(U=>U.mountedPromise);return K.filter(U=>!!U).length&&Promise.all(K).then(()=>{b()}),Y.createElement("div",{className:"njs-sheet",style:{width:"100%",height:oe,position:"relative",backgroundColor:F,backgroundImage:q&&q.url?"url(".concat(q.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:q&&q.size,backgroundPosition:q&&q.pos}},le)}),w5=()=>{};function HL(){let{model:i,halo:o,navigation:a,initialError:u,onDestroy:f=qe(function*(){}),onRender:p=(()=>{}),onError:g=(()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},y=w5,b=null,x=null,_=null,E=null;const D=new Promise(O=>{_=O}),I=new Promise(O=>{E=O}),C=O=>()=>{null==O||O(),E(),p()};let A={},M=[];return{id:i.id,model:i,navigation:a,getImperativeHandle:(O=qe(function*(){return yield I,b.current.getImperativeHandle()}),function(){return O.apply(this,arguments)}),destroy:()=>qe(function*(){yield f(),y(),y=w5})(),__DO_NOT_USE__:{mount(O){if(x)throw new Error("Already mounted");if(!(O instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return x=O,[y,b]=function(L){let{halo:F,element:P,model:q,initialSnOptions:$,initialSnPlugins:Q,onMount:X,initialError:ae,navigation:le,onError:oe}=L;const{root:K}=F,U=Y.createRef();let ne;const se=()=>{K.remove(ne)};return ne=Gs.createPortal(Y.createElement($L,{ref:U,halo:F,model:q,initialSnOptions:$,initialSnPlugins:Q,initialError:ae,onMount:X,unmount:se,navigation:le,onError:oe}),P,q.id),le.setSheetRef(U),K.add(ne),[se,U]}({halo:o,element:O,model:i,initialSnOptions:A,initialSnPlugins:M,initialError:u,onMount:_,navigation:a,onError:g}),D},applyProperties:O=>qe(function*(){const L=cp("/",O,yield i.getEffectiveProperties());if(L.length)return i.applyPatches(L,!0)})(),options(O){var L;(L=qe(function*(F){const P=F.onInitialRender;x?qe(function*(){yield D,b.current.setSnOptions(de(de(de({},A),F),{onInitialRender:C(P)}))})():A=de(de(de({},A),F),{onInitialRender:C(P)})}),function(F){return L.apply(this,arguments)})(O)},plugins(O){var L;(L=qe(function*(F){V1(F),x?qe(function*(){yield D,b.current.setSnPlugins(F)})():M=F}),function(F){return L.apply(this,arguments)})(O)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>i}};var O}function x5(i,o,a){return BD.apply(this,arguments)}function BD(){return BD=qe(function*(i,o,a){let{id:u,options:f,plugins:p,element:g,onRender:y,onError:b,navigation:x}=i;const{modelStore:_,rpcRequestModelStore:E}=a,D="".concat(u);let I=E.get(D);I||(I=o.app.getObject(u),E.set(D,I));const C=yield I;_.set(D,C);const A=x||("sheet"===C.genericType?function(M,T,O){var L;const{galaxy:F}=M.public;var P;if(null!==(L=F.anything)&&void 0!==L&&null!==(L=L.sense)&&void 0!==L&&L.navigation)return null===(P=F.anything)||void 0===P||null===(P=P.sense)||void 0===P?void 0:P.navigation;const q={model:O},$={goToSheet:(Q=qe(function*(X){var ae,le;if(!q.sheetRef)return;const{modelStore:oe,rpcRequestModelStore:K}=T,U="".concat(X);let ne,se=K.get(U);se||(se=M.app.getObject(X),K.set(U,se));try{if(ne=yield se,"sheet"!==ne.genericType)return}catch(he){return}oe.set(U,ne),null===(ae=q.sheetRef)||void 0===ae||null===(ae=ae.current)||void 0===ae||null===(le=ae.setModel)||void 0===le||le.call(ae,ne),q.model=ne,$.emit("sheetChanged")}),function(ae){return Q.apply(this,arguments)}),setSheetRef:Q=>{q.sheetRef=Q},getCurrentSheetId:()=>!!q.model&&q.model.id};var Q;return Vd($),$}(o,a,C):void 0);return"sheet"===C.genericType?(M=qe(function*(T,O,L,F,P){let q=arguments.length>5&&void 0!==arguments[5]?arguments[5]:qe(function*(){});const{onRender:$,onError:Q}=O,X=HL({model:T,halo:L,navigation:F,initialError:P,onDestroy:q,onRender:$,onError:Q});return O.options&&X.__DO_NOT_USE__.options(O.options),O.plugins&&X.__DO_NOT_USE__.plugins(O.plugins),O.element&&(yield X.__DO_NOT_USE__.mount(O.element)),X}),function(T,O,L,F,P){return M.apply(this,arguments)})(C,{options:f,plugins:p,element:g,onRender:y,onError:b},o,A):ty(C,{options:f,plugins:p,element:g,onRender:y,onError:b},o,A);var M}),BD.apply(this,arguments)}function _5(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:o=>!0===i[o]}}var S5,zD,ny,qD;function Kn(){if(qD)return ny;qD=1;const i=Object.freeze({loose:!0}),o=Object.freeze({});return ny=a=>a?"object"!=typeof a?i:a:o}var VD,ry,$D,HD,iy,oy,J1,GD,sy,ew,UD,tw,ay,Za,nw,ly,WD,KD,QD,YD,ZD,cy,XD,rw,E5,dp,iw,ow,JD,uy,fp,hp={exports:{}};function dy(){return ry?VD:(ry=1,VD={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2})}function fy(){return HD?$D:(HD=1,$D="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){for(var o=arguments.length,a=new Array(o),u=0;u<o;u++)a[u]=arguments[u];return console.error("SEMVER",...a)}:()=>{})}function hy(){return iy||(iy=1,function(i,o){const{MAX_SAFE_COMPONENT_LENGTH:a,MAX_SAFE_BUILD_LENGTH:u,MAX_LENGTH:f}=dy(),p=fy(),g=(o=i.exports={}).re=[],y=o.safeRe=[],b=o.src=[],x=o.safeSrc=[],_=o.t={};let E=0;const D="[a-zA-Z0-9-]",I=[["\\s",1],["\\d",f],[D,u]],C=(A,M,T)=>{const O=(F=>{for(const[P,q]of I)F=F.split("".concat(P,"*")).join("".concat(P,"{0,").concat(q,"}")).split("".concat(P,"+")).join("".concat(P,"{1,").concat(q,"}"));return F})(M),L=E++;p(A,L,M),_[A]=L,b[L]=M,x[L]=O,g[L]=new RegExp(M,T?"g":void 0),y[L]=new RegExp(O,T?"g":void 0)};C("NUMERICIDENTIFIER","0|[1-9]\\d*"),C("NUMERICIDENTIFIERLOOSE","\\d+"),C("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-]".concat(D,"*")),C("MAINVERSION","(".concat(b[_.NUMERICIDENTIFIER],")\\.")+"(".concat(b[_.NUMERICIDENTIFIER],")\\.")+"(".concat(b[_.NUMERICIDENTIFIER],")")),C("MAINVERSIONLOOSE","(".concat(b[_.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(b[_.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(b[_.NUMERICIDENTIFIERLOOSE],")")),C("PRERELEASEIDENTIFIER","(?:".concat(b[_.NUMERICIDENTIFIER],"|").concat(b[_.NONNUMERICIDENTIFIER],")")),C("PRERELEASEIDENTIFIERLOOSE","(?:".concat(b[_.NUMERICIDENTIFIERLOOSE],"|").concat(b[_.NONNUMERICIDENTIFIER],")")),C("PRERELEASE","(?:-(".concat(b[_.PRERELEASEIDENTIFIER],"(?:\\.").concat(b[_.PRERELEASEIDENTIFIER],")*))")),C("PRERELEASELOOSE","(?:-?(".concat(b[_.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(b[_.PRERELEASEIDENTIFIERLOOSE],")*))")),C("BUILDIDENTIFIER","".concat(D,"+")),C("BUILD","(?:\\+(".concat(b[_.BUILDIDENTIFIER],"(?:\\.").concat(b[_.BUILDIDENTIFIER],")*))")),C("FULLPLAIN","v?".concat(b[_.MAINVERSION]).concat(b[_.PRERELEASE],"?").concat(b[_.BUILD],"?")),C("FULL","^".concat(b[_.FULLPLAIN],"$")),C("LOOSEPLAIN","[v=\\s]*".concat(b[_.MAINVERSIONLOOSE]).concat(b[_.PRERELEASELOOSE],"?").concat(b[_.BUILD],"?")),C("LOOSE","^".concat(b[_.LOOSEPLAIN],"$")),C("GTLT","((?:<|>)?=?)"),C("XRANGEIDENTIFIERLOOSE","".concat(b[_.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),C("XRANGEIDENTIFIER","".concat(b[_.NUMERICIDENTIFIER],"|x|X|\\*")),C("XRANGEPLAIN","[v=\\s]*(".concat(b[_.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(b[_.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(b[_.XRANGEIDENTIFIER],")")+"(?:".concat(b[_.PRERELEASE],")?").concat(b[_.BUILD],"?")+")?)?"),C("XRANGEPLAINLOOSE","[v=\\s]*(".concat(b[_.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(b[_.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(b[_.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(b[_.PRERELEASELOOSE],")?").concat(b[_.BUILD],"?")+")?)?"),C("XRANGE","^".concat(b[_.GTLT],"\\s*").concat(b[_.XRANGEPLAIN],"$")),C("XRANGELOOSE","^".concat(b[_.GTLT],"\\s*").concat(b[_.XRANGEPLAINLOOSE],"$")),C("COERCEPLAIN","".concat("(^|[^\\d])(\\d{1,").concat(a,"})")+"(?:\\.(\\d{1,".concat(a,"}))?")+"(?:\\.(\\d{1,".concat(a,"}))?")),C("COERCE","".concat(b[_.COERCEPLAIN],"(?:$|[^\\d])")),C("COERCEFULL",b[_.COERCEPLAIN]+"(?:".concat(b[_.PRERELEASE],")?")+"(?:".concat(b[_.BUILD],")?")+"(?:$|[^\\d])"),C("COERCERTL",b[_.COERCE],!0),C("COERCERTLFULL",b[_.COERCEFULL],!0),C("LONETILDE","(?:~>?)"),C("TILDETRIM","(\\s*)".concat(b[_.LONETILDE],"\\s+"),!0),o.tildeTrimReplace="$1~",C("TILDE","^".concat(b[_.LONETILDE]).concat(b[_.XRANGEPLAIN],"$")),C("TILDELOOSE","^".concat(b[_.LONETILDE]).concat(b[_.XRANGEPLAINLOOSE],"$")),C("LONECARET","(?:\\^)"),C("CARETTRIM","(\\s*)".concat(b[_.LONECARET],"\\s+"),!0),o.caretTrimReplace="$1^",C("CARET","^".concat(b[_.LONECARET]).concat(b[_.XRANGEPLAIN],"$")),C("CARETLOOSE","^".concat(b[_.LONECARET]).concat(b[_.XRANGEPLAINLOOSE],"$")),C("COMPARATORLOOSE","^".concat(b[_.GTLT],"\\s*(").concat(b[_.LOOSEPLAIN],")$|^$")),C("COMPARATOR","^".concat(b[_.GTLT],"\\s*(").concat(b[_.FULLPLAIN],")$|^$")),C("COMPARATORTRIM","(\\s*)".concat(b[_.GTLT],"\\s*(").concat(b[_.LOOSEPLAIN],"|").concat(b[_.XRANGEPLAIN],")"),!0),o.comparatorTrimReplace="$1$2$3",C("HYPHENRANGE","^\\s*(".concat(b[_.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(b[_.XRANGEPLAIN],")")+"\\s*$"),C("HYPHENRANGELOOSE","^\\s*(".concat(b[_.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(b[_.XRANGEPLAINLOOSE],")")+"\\s*$"),C("STAR","(<|>)?=?\\s*\\*"),C("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),C("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(hp,hp.exports)),hp.exports}function py(){if(sy)return GD;sy=1;const i=fy(),{MAX_LENGTH:o,MAX_SAFE_INTEGER:a}=dy(),{safeRe:u,safeSrc:f,t:p}=hy(),g=Kn(),{compareIdentifiers:y}=function(){if(J1)return oy;J1=1;const x=/^[0-9]+$/,_=(E,D)=>{const I=x.test(E),C=x.test(D);return I&&C&&(E=+E,D=+D),E===D?0:I&&!C?-1:C&&!I?1:E<D?-1:1};return oy={compareIdentifiers:_,rcompareIdentifiers:(E,D)=>_(D,E)}}();class b{constructor(_,E){if(E=g(E),_ instanceof b){if(_.loose===!!E.loose&&_.includePrerelease===!!E.includePrerelease)return _;_=_.version}else if("string"!=typeof _)throw new TypeError('Invalid version. Must be a string. Got type "'.concat(typeof _,'".'));if(_.length>o)throw new TypeError("version is longer than ".concat(o," characters"));i("SemVer",_,E),this.options=E,this.loose=!!E.loose,this.includePrerelease=!!E.includePrerelease;const D=_.trim().match(E.loose?u[p.LOOSE]:u[p.FULL]);if(!D)throw new TypeError("Invalid Version: ".concat(_));if(this.raw=_,this.major=+D[1],this.minor=+D[2],this.patch=+D[3],this.major>a||this.major<0)throw new TypeError("Invalid major version");if(this.minor>a||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>a||this.patch<0)throw new TypeError("Invalid patch version");this.prerelease=D[4]?D[4].split(".").map(I=>{if(/^[0-9]+$/.test(I)){const C=+I;if(C>=0&&C<a)return C}return I}):[],this.build=D[5]?D[5].split("."):[],this.format()}format(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}toString(){return this.version}compare(_){if(i("SemVer.compare",this.version,this.options,_),!(_ instanceof b)){if("string"==typeof _&&_===this.version)return 0;_=new b(_,this.options)}return _.version===this.version?0:this.compareMain(_)||this.comparePre(_)}compareMain(_){return _ instanceof b||(_=new b(_,this.options)),y(this.major,_.major)||y(this.minor,_.minor)||y(this.patch,_.patch)}comparePre(_){if(_ instanceof b||(_=new b(_,this.options)),this.prerelease.length&&!_.prerelease.length)return-1;if(!this.prerelease.length&&_.prerelease.length)return 1;if(!this.prerelease.length&&!_.prerelease.length)return 0;let E=0;do{const D=this.prerelease[E],I=_.prerelease[E];if(i("prerelease compare",E,D,I),void 0===D&&void 0===I)return 0;if(void 0===I)return 1;if(void 0===D)return-1;if(D!==I)return y(D,I)}while(++E)}compareBuild(_){_ instanceof b||(_=new b(_,this.options));let E=0;do{const D=this.build[E],I=_.build[E];if(i("build compare",E,D,I),void 0===D&&void 0===I)return 0;if(void 0===I)return 1;if(void 0===D)return-1;if(D!==I)return y(D,I)}while(++E)}inc(_,E,D){if(_.startsWith("pre")){if(!E&&!1===D)throw new Error("invalid increment argument: identifier is empty");if(E){const I=new RegExp("^".concat(this.options.loose?f[p.PRERELEASELOOSE]:f[p.PRERELEASE],"$")),C="-".concat(E).match(I);if(!C||C[1]!==E)throw new Error("invalid identifier: ".concat(E))}}switch(_){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",E,D);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",E,D);break;case"prepatch":this.prerelease.length=0,this.inc("patch",E,D),this.inc("pre",E,D);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",E,D),this.inc("pre",E,D);break;case"release":if(0===this.prerelease.length)throw new Error("version ".concat(this.raw," is not a prerelease"));this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const I=Number(D)?1:0;if(0===this.prerelease.length)this.prerelease=[I];else{let C=this.prerelease.length;for(;--C>=0;)"number"==typeof this.prerelease[C]&&(this.prerelease[C]++,C=-2);if(-1===C){if(E===this.prerelease.join(".")&&!1===D)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(I)}}if(E){let C=[E,I];!1===D&&(C=[E]),0===y(this.prerelease[0],E)?isNaN(this.prerelease[1])&&(this.prerelease=C):this.prerelease=C}break}default:throw new Error("invalid increment argument: ".concat(_))}return this.raw=this.format(),this.build.length&&(this.raw+="+".concat(this.build.join("."))),this}}return GD=b}function pp(){if(UD)return ew;UD=1;const i=py();return ew=(o,a,u)=>new i(o,u).compare(new i(a,u)),ew}function D5(){if(JD)return ow;JD=1;const i=/\s+/g;class o{constructor(U,ne){if(ne=u(ne),U instanceof o)return U.loose===!!ne.loose&&U.includePrerelease===!!ne.includePrerelease?U:new o(U.raw,ne);if(U instanceof f)return this.raw=U.value,this.set=[[U]],this.formatted=void 0,this;if(this.options=ne,this.loose=!!ne.loose,this.includePrerelease=!!ne.includePrerelease,this.raw=U.trim().replace(i," "),this.set=this.raw.split("||").map(se=>this.parseRange(se.trim())).filter(se=>se.length),!this.set.length)throw new TypeError("Invalid SemVer Range: ".concat(this.raw));if(this.set.length>1){const se=this.set[0];if(this.set=this.set.filter(he=>!C(he[0])),0===this.set.length)this.set=[se];else if(this.set.length>1)for(const he of this.set)if(1===he.length&&A(he[0])){this.set=[he];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let U=0;U<this.set.length;U++){U>0&&(this.formatted+="||");const ne=this.set[U];for(let se=0;se<ne.length;se++)se>0&&(this.formatted+=" "),this.formatted+=ne[se].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(U){const ne=((this.options.includePrerelease&&D)|(this.options.loose&&I))+":"+U,se=a.get(ne);if(se)return se;const he=this.options.loose;U=U.replace(he?y[b.HYPHENRANGELOOSE]:y[b.HYPHENRANGE],le(this.options.includePrerelease)),p("hyphen replace",U),U=U.replace(y[b.COMPARATORTRIM],x),p("comparator trim",U),U=U.replace(y[b.TILDETRIM],_),p("tilde trim",U),U=U.replace(y[b.CARETTRIM],E),p("caret trim",U);let G=U.split(" ").map(ce=>T(ce,this.options)).join(" ").split(/\s+/).map(ce=>ae(ce,this.options));he&&(G=G.filter(ce=>(p("loose invalid filter",ce,this.options),!!ce.match(y[b.COMPARATORLOOSE])))),p("range list",G);const Z=new Map,re=G.map(ce=>new f(ce,this.options));for(const ce of re){if(C(ce))return[ce];Z.set(ce.value,ce)}Z.size>1&&Z.has("")&&Z.delete("");const te=[...Z.values()];return a.set(ne,te),te}intersects(U,ne){if(!(U instanceof o))throw new TypeError("a Range is required");return this.set.some(se=>M(se,ne)&&U.set.some(he=>M(he,ne)&&se.every(B=>he.every(G=>B.intersects(G,ne)))))}test(U){if(!U)return!1;if("string"==typeof U)try{U=new g(U,this.options)}catch(ne){return!1}for(let ne=0;ne<this.set.length;ne++)if(oe(this.set[ne],U,this.options))return!0;return!1}}ow=o;const a=new(zD?S5:(zD=1,S5=class{constructor(){this.max=1e3,this.map=new Map}get(K){const U=this.map.get(K);return void 0===U?void 0:(this.map.delete(K),this.map.set(K,U),U)}delete(K){return this.map.delete(K)}set(K,U){if(!this.delete(K)&&void 0!==U){if(this.map.size>=this.max){const ne=this.map.keys().next().value;this.delete(ne)}this.map.set(K,U)}return this}})),u=Kn(),f=function(){if(iw)return dp;iw=1;const K=Symbol("SemVer ANY");class U{static get ANY(){return K}constructor(ce,ye){if(ye=ne(ye),ce instanceof U){if(ce.loose===!!ye.loose)return ce;ce=ce.value}ce=ce.trim().split(/\s+/).join(" "),G("comparator",ce,ye),this.options=ye,this.loose=!!ye.loose,this.parse(ce),this.value=this.semver===K?"":this.operator+this.semver.version,G("comp",this)}parse(ce){const Se=ce.match(this.options.loose?se[he.COMPARATORLOOSE]:se[he.COMPARATOR]);if(!Se)throw new TypeError("Invalid comparator: ".concat(ce));this.operator=void 0!==Se[1]?Se[1]:"","="===this.operator&&(this.operator=""),this.semver=Se[2]?new Z(Se[2],this.options.loose):K}toString(){return this.value}test(ce){if(G("Comparator.test",ce,this.options.loose),this.semver===K||ce===K)return!0;if("string"==typeof ce)try{ce=new Z(ce,this.options)}catch(ye){return!1}return B(ce,this.operator,this.semver,this.options)}intersects(ce,ye){if(!(ce instanceof U))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new re(ce.value,ye).test(this.value):""===ce.operator?""===ce.value||new re(this.value,ye).test(ce.semver):!((ye=ne(ye)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===ce.value)||!ye.includePrerelease&&(this.value.startsWith("<0.0.0")||ce.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!ce.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!ce.operator.startsWith("<"))&&(this.semver.version!==ce.semver.version||!this.operator.includes("=")||!ce.operator.includes("="))&&!(B(this.semver,"<",ce.semver,ye)&&this.operator.startsWith(">")&&ce.operator.startsWith("<"))&&!(B(this.semver,">",ce.semver,ye)&&this.operator.startsWith("<")&&ce.operator.startsWith(">")))}}dp=U;const ne=Kn(),{safeRe:se,t:he}=hy(),B=function C5(){if(E5)return rw;E5=1;const i=function(){if(ay)return tw;ay=1;const g=pp();return tw=(y,b,x)=>0===g(y,b,x)}(),o=function(){if(nw)return Za;nw=1;const g=pp();return Za=(y,b,x)=>0!==g(y,b,x)}(),a=function(){if(WD)return ly;WD=1;const g=pp();return ly=(y,b,x)=>g(y,b,x)>0}(),u=function(){if(QD)return KD;QD=1;const g=pp();return KD=(y,b,x)=>g(y,b,x)>=0}(),f=function(){if(ZD)return YD;ZD=1;const g=pp();return YD=(y,b,x)=>g(y,b,x)<0}(),p=function(){if(XD)return cy;XD=1;const g=pp();return cy=(y,b,x)=>g(y,b,x)<=0}();return rw=(g,y,b,x)=>{switch(y){case"===":return"object"==typeof g&&(g=g.version),"object"==typeof b&&(b=b.version),g===b;case"!==":return"object"==typeof g&&(g=g.version),"object"==typeof b&&(b=b.version),g!==b;case"":case"=":case"==":return i(g,b,x);case"!=":return o(g,b,x);case">":return a(g,b,x);case">=":return u(g,b,x);case"<":return f(g,b,x);case"<=":return p(g,b,x);default:throw new TypeError("Invalid operator: ".concat(y))}}}(),G=fy(),Z=py(),re=D5();return dp}(),p=fy(),g=py(),{safeRe:y,t:b,comparatorTrimReplace:x,tildeTrimReplace:_,caretTrimReplace:E}=hy(),{FLAG_INCLUDE_PRERELEASE:D,FLAG_LOOSE:I}=dy(),C=K=>"<0.0.0-0"===K.value,A=K=>""===K.value,M=(K,U)=>{let ne=!0;const se=K.slice();let he=se.pop();for(;ne&&se.length;)ne=se.every(B=>he.intersects(B,U)),he=se.pop();return ne},T=(K,U)=>(p("comp",K,U),K=P(K,U),p("caret",K),K=L(K,U),p("tildes",K),K=$(K,U),p("xrange",K),K=X(K,U),p("stars",K),K),O=K=>!K||"x"===K.toLowerCase()||"*"===K,L=(K,U)=>K.trim().split(/\s+/).map(ne=>F(ne,U)).join(" "),F=(K,U)=>K.replace(U.loose?y[b.TILDELOOSE]:y[b.TILDE],(se,he,B,G,Z)=>{let re;return p("tilde",K,se,he,B,G,Z),O(he)?re="":O(B)?re=">=".concat(he,".0.0 <").concat(+he+1,".0.0-0"):O(G)?re=">=".concat(he,".").concat(B,".0 <").concat(he,".").concat(+B+1,".0-0"):Z?(p("replaceTilde pr",Z),re=">=".concat(he,".").concat(B,".").concat(G,"-").concat(Z," <").concat(he,".").concat(+B+1,".0-0")):re=">=".concat(he,".").concat(B,".").concat(G," <").concat(he,".").concat(+B+1,".0-0"),p("tilde return",re),re}),P=(K,U)=>K.trim().split(/\s+/).map(ne=>q(ne,U)).join(" "),q=(K,U)=>{p("caret",K,U);const se=U.includePrerelease?"-0":"";return K.replace(U.loose?y[b.CARETLOOSE]:y[b.CARET],(he,B,G,Z,re)=>{let te;return p("caret",K,he,B,G,Z,re),O(B)?te="":O(G)?te=">=".concat(B,".0.0").concat(se," <").concat(+B+1,".0.0-0"):O(Z)?te="0"===B?">=".concat(B,".").concat(G,".0").concat(se," <").concat(B,".").concat(+G+1,".0-0"):">=".concat(B,".").concat(G,".0").concat(se," <").concat(+B+1,".0.0-0"):re?(p("replaceCaret pr",re),te="0"===B?"0"===G?">=".concat(B,".").concat(G,".").concat(Z,"-").concat(re," <").concat(B,".").concat(G,".").concat(+Z+1,"-0"):">=".concat(B,".").concat(G,".").concat(Z,"-").concat(re," <").concat(B,".").concat(+G+1,".0-0"):">=".concat(B,".").concat(G,".").concat(Z,"-").concat(re," <").concat(+B+1,".0.0-0")):(p("no pr"),te="0"===B?"0"===G?">=".concat(B,".").concat(G,".").concat(Z).concat(se," <").concat(B,".").concat(G,".").concat(+Z+1,"-0"):">=".concat(B,".").concat(G,".").concat(Z).concat(se," <").concat(B,".").concat(+G+1,".0-0"):">=".concat(B,".").concat(G,".").concat(Z," <").concat(+B+1,".0.0-0")),p("caret return",te),te})},$=(K,U)=>(p("replaceXRanges",K,U),K.split(/\s+/).map(ne=>Q(ne,U)).join(" ")),Q=(K,U)=>(K=K.trim()).replace(U.loose?y[b.XRANGELOOSE]:y[b.XRANGE],(se,he,B,G,Z,re)=>{p("xRange",K,se,he,B,G,Z,re);const te=O(B),ce=te||O(G),ye=ce||O(Z);return"="===he&&ye&&(he=""),re=U.includePrerelease?"-0":"",te?se=">"===he||"<"===he?"<0.0.0-0":"*":he&&ye?(ce&&(G=0),Z=0,">"===he?(he=">=",ce?(B=+B+1,G=0,Z=0):(G=+G+1,Z=0)):"<="===he&&(he="<",ce?B=+B+1:G=+G+1),"<"===he&&(re="-0"),se="".concat(he+B,".").concat(G,".").concat(Z).concat(re)):ce?se=">=".concat(B,".0.0").concat(re," <").concat(+B+1,".0.0-0"):ye&&(se=">=".concat(B,".").concat(G,".0").concat(re," <").concat(B,".").concat(+G+1,".0-0")),p("xRange return",se),se}),X=(K,U)=>(p("replaceStars",K,U),K.trim().replace(y[b.STAR],"")),ae=(K,U)=>(p("replaceGTE0",K,U),K.trim().replace(y[U.includePrerelease?b.GTE0PRE:b.GTE0],"")),le=K=>(U,ne,se,he,B,G,Z,re,te,ce,ye,Se)=>(ne=O(se)?"":O(he)?">=".concat(se,".0.0").concat(K?"-0":""):O(B)?">=".concat(se,".").concat(he,".0").concat(K?"-0":""):G?">=".concat(ne):">=".concat(ne).concat(K?"-0":""),re=O(te)?"":O(ce)?"<".concat(+te+1,".0.0-0"):O(ye)?"<".concat(te,".").concat(+ce+1,".0-0"):Se?"<=".concat(te,".").concat(ce,".").concat(ye,"-").concat(Se):K?"<".concat(te,".").concat(ce,".").concat(+ye+1,"-0"):"<=".concat(re),"".concat(ne," ").concat(re).trim()),oe=(K,U,ne)=>{for(let se=0;se<K.length;se++)if(!K[se].test(U))return!1;if(U.prerelease.length&&!ne.includePrerelease){for(let se=0;se<K.length;se++)if(p(K[se].semver),K[se].semver!==f.ANY&&K[se].semver.prerelease.length>0){const he=K[se].semver;if(he.major===U.major&&he.minor===U.minor&&he.patch===U.patch)return!0}return!1}return!0};return ow}var e2=Ai(function(){if(fp)return uy;fp=1;const i=D5();return uy=(o,a,u)=>{try{a=new i(a,u)}catch(f){return!1}return a.test(o)},uy}());const lf={};function A5(i,o){const a={};let u=null;return{get:f=>a[f],register:(f,p)=>{if(a[f])throw new Error("Supernova '".concat(i,"@").concat(f,"' already registered."));a[f]=function k5(i,o){let a,u,f=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{meta:p}=f,g={name:i.name,version:i.version,supportsPropertiesVersion:y=>!(y&&p&&p.deps&&p.deps.properties)||e2(y,p.deps.properties),supernova:()=>{return(y=qe(function*(b,x,_,E){let{config:D}=_;const I="".concat(b,"__").concat(x);if(!lf[I]){const C="".concat(b).concat(x&&" v".concat(x)||"");if(E&&"function"!=typeof E)throw new Error("load of visualization '".concat(C,"' is not a fuction, wrap load promise in function"));const A=(E||D.load)({name:b,version:x}),M=Promise.resolve(A);lf[I]=M.then(T=>{if(!T)throw new Error("load() of visualization '".concat(C,"' resolved to an invalid object"));return T}).catch(T=>{throw new iu("Failed to load visualization: '".concat(C,"'"),T)})}return lf[I]}),function(b,x,_,E){return y.apply(this,arguments)})(g.name,g.version,o,f.load).then(y=>(a=a||v5(y,o.public.galaxy),u=JSON.stringify(a.qae.properties.initial),a));var y},initialProperties(y){let b=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.supernova().then(()=>{const x=de({qInfo:{qType:g.name},visualization:g.name,version:g.version,showTitles:!0},JSON.parse(u));return b?(Wr(!0,x,y),x):de(de({},x),y)})}};return g}({name:i,version:f},o,p),u=null},getMatchingVersionFromProperties:f=>{var p;u||(p=Object.keys(a),u=[...p.filter(y=>"undefined"===y),...p.filter(y=>"undefined"!==y).map(y=>y.split(".").map(b=>parseInt(b,10))).sort((y,b)=>y[0]-b[0]||y[1]-b[1]||y[2]-b[2]).map(y=>y.join("."))]);for(let p=u.length-1;p>=0;p--)if(a[u[p]].supportsPropertiesVersion(f))return u[p];return null},versions:a}}function UL(i){let{halo:o,parent:a}=i;const u={},f=a||{get:()=>{}};return{register:(p,g)=>{u[p.name]||(u[p.name]=A5(p.name,o)),u[p.name].register(p.version,g)},getSupportedVersion:(p,g)=>{if(u[p])return u[p].getMatchingVersionFromProperties(g)},get(p){const{name:g}=p;let{version:y}=p;return u[g]?u[g].versions[y]||(y=Object.keys(u[g].versions)[0]):this.register({name:g,version:y}),u[g].get(y)||f.get(p)},getList:()=>Object.keys(u).map(p=>({name:p,versions:Object.keys(u[p].versions).map(g=>"undefined"===g?void 0:g)})),clearFromCache:p=>{var g;u[p]&&(u[p]=void 0),g=p,Object.keys(lf).forEach(y=>{y.split("__")[0]===g&&(lf[y]=void 0)})}}}const R5={context:{theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1,dataViewType:"sn-table"},load:()=>{},types:[],themes:[],anything:{},flags:{KPI_REACTCOLORPICKER:!0,IM_1869_HIDE_DIM_MEA_LINE:!0,IM_1579_HIDE_DIM_MEA:!0,CLIENT_IM_3365:!0},snapshot:{get:function(){var i=qe(function*(o){const a=yield fetch("/njs/snapshot/".concat(o));if(!a.ok)throw new Error(a.statusText);return a.json()});return function(a){return i.apply(this,arguments)}}(),capture:i=>fetch("/njs/capture",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)}).then(o=>o.json())}},t2=function(){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return de(de({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),i)},I5=function(){return[...arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],...arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]].filter((i,o,a)=>a.indexOf(i)===o)};var WL=function i(){let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const a=zx(o.context.language);function u(f,p){if(p)return u.createConfiguration(p)(f);let g=de(de({},o.context),{},{translator:a.translator});const[y,b]=rS({app:f,context:g}),x=function(){let{themes:T=[],loadTheme:O,root:L}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const F=qs();return{setTheme:(P=qe(function*(q){let $=T.filter(X=>X.id===q)[0],Q="dark"===q?"dark":"light";if(!$&&O&&($={load:O}),$&&$.load)try{const X=yield Promise.race([$.load(q),NO(5e3,{__timedOut:!0})]);X.__timedOut||(Q="dark"===X.type?"dark":"light",F.internalAPI.setTheme(X,q),L.setMuiThemeName(Q))}catch(X){}else F.internalAPI.setTheme({type:Q},q),L.setMuiThemeName(Q)}),function($){return P.apply(this,arguments)}),externalAPI:F.externalAPI};var P}({themes:o.themes,loadTheme:o.loadTheme,root:y});g.themeApi=x.externalAPI;const _={galaxy:{translator:a.translator,flags:_5(o.flags),deviceType:BO(o.context.deviceType),hostConfig:o.hostConfig,anything:o.anything},theme:x.externalAPI,translator:a.translator,nebbie:null},E={app:f,root:y,config:o,public:_,context:g,types:null},D=UL({halo:E});o.types.forEach(T=>D.register({name:T.name,version:T.version},{meta:T.meta,load:T.load}));let I=x.setTheme(o.context.theme),C=null,A=null;const M={render:(T=qe(function*(O){return yield I,O.id?x5(O,E,b):(L=qe(function*(F,P,q){let{type:$,version:Q,fields:X,properties:ae,options:le,plugins:oe,element:K,extendProperties:U,navigation:ne,onRender:se,onError:he}=F,B={};const G=[],{modelStore:Z,subscribe:re}=q;let te;try{const Se=P.types.get({name:$,version:Q});B=yield Se.initialProperties(ae,U);const Ae=yield Se.supernova();X&&(yield bD({sn:Ae,properties:B,fields:X,children:G},P)),ae&&Ae&&Ae.qae.properties.onChange&&Ae.qae.properties.onChange.call({},B)}catch(Se){te=Se,B={qInfo:{qType:$},visualization:$}}const ce=yield P.app.createSessionObject(B);G.length>0&&(yield ce.setFullPropertyTree({qProperty:B,qChildren:G})),Z.set(ce.id,ce);const ye=re(ce);return ty(ce,{options:le,plugins:oe,element:K,onRender:se,onError:he},P,ne,te,qe(function*(){yield P.app.destroySessionObject(ce.id),ye()}))}),function(F,P,q){return L.apply(this,arguments)})(O,E,b);var L}),function(L){return T.apply(this,arguments)}),create:function(){var T=qe(function*(O){return b5(O,E,!1,b)});return function(L){return T.apply(this,arguments)}}(),generateProperties:function(){var T=qe(function*(O){return b5(O,E,!0,b)});return function(L){return T.apply(this,arguments)}}(),context:function(){var T=qe(function*(O){let L;["theme","language","constraints","interactions","keyboardNavigation"].forEach(F=>{Object.prototype.hasOwnProperty.call(O,F)&&O[F]!==g[F]&&(L||(L={}),L[F]=O[F])}),L&&(g=de(de(de({},g),L),{},{translator:a.translator}),L.theme&&(I=x.setTheme(L.theme),yield I),L.language&&E.public.translator.language(L.language),y.context(g))});return function(L){return T.apply(this,arguments)}}(),selections:function(){var T=qe(function*(){return C||(C={mount(O){A||(A=function(L){let{element:F,app:P}=L;return Gs.createPortal(Y.createElement(xn,{app:P}),F,Oi())}({element:O,app:f}),y.add(A))},unmount(){A&&(y.remove(A),A=null)}}),C});return function(){return T.apply(this,arguments)}}(),field:function(){var T=qe(function*(O){let L;const F="string"==typeof O?O:O.qLibraryId;if(O.qId)L=O.qId;else if(!F)throw new Error("Field identifier or object id must be provided");const P={fieldName:F,mount(q){var $=arguments,Q=this;return qe(function*(){let X=$.length>1&&void 0!==$[1]?$[1]:{};if(!q)throw new Error("Element for ".concat(F||L," not provided"));if(Q._instance)throw new Error("Field or object ".concat(F||L," already mounted"));const ae=()=>P.emit("selectionActivated"),le=()=>P.emit("selectionDeactivated");return new Promise(oe=>{[Q._instance,Q._ref]=function(K){let{element:U,app:ne,fieldIdentifier:se,qId:he,stateName:B="$",options:G={},renderedCallback:Z}=K;const re=Y.createRef();return[Gs.createPortal(Y.createElement(BM,{ref:re,app:ne,element:U,fieldIdentifier:se,qId:he,stateName:B,initialOptions:G,renderedCallback:Z}),U,Oi()),re]}({element:q,app:f,fieldIdentifier:O,qId:L,options:dD(de({onSelectionActivated:ae,onSelectionDeactivated:le},X)),stateName:X.stateName||"$",renderedCallback:oe}),y.add(Q._instance)})})()},unmount(){this._instance&&(y.remove(this._instance),this._instance=null,this._ref=null)},__DO_NOT_USE__:{options(q){var $;const Q=()=>P.emit("selectionActivated"),X=()=>P.emit("selectionDeactivated");if(null!==($=P._ref)&&void 0!==$&&$.current){const ae=dD(de({onSelectionActivated:Q,onSelectionDeactivated:X},q));P._ref.current.setOptions(ae)}}}};return Vd(P),P});return function(L){return T.apply(this,arguments)}}(),getRegisteredTypes:D.getList,__DO_NOT_USE__:{types:D,popover(T,O,L){M._popoverInstance&&(y.remove(M._popoverInstance),M._popoverInstance=null);const F=function(){let P=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const q=de({},zM);return Wr(!0,q,P),q}(de({onPopoverClose:()=>M.emit("fieldPopoverClose")},L));M._popoverInstance=Y.createElement(qM,{element:T,key:Oi(),app:f,fieldIdentifier:O,options:F,stateName:L.stateName||"$"}),y.add(M._popoverInstance)}}};var T;return E.public.nebbie=M,E.types=D,Vd(M),M}return u.createConfiguration=f=>{return i({context:t2((p=o).context,(g=f).context),load:g.load||p.load,loadTheme:g.loadTheme||p.loadTheme,snapshot:de({},g.snapshot||p.snapshot),types:I5(p.types,g.types),themes:I5(p.themes,g.themes),flags:t2(p.flags,g.flags),hostConfig:g.hostConfig||p.hostConfig,anything:t2(p.anything,g.anything)});var p,g},u.config=o,u}(R5);function M5(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}const gy=globalThis.crypto||{getRandomValues:()=>123456};function T5(i){return o=>{const a=Wr({},o);a.qInfo=a.qInfo||{},a.qInfo.qId=a.qInfo.qId||"mock-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,p=>(p^gy.getRandomValues(new Uint8Array(1))[0]&15>>p/4).toString(16)));const u=a._mock;let f=a;return u&&(delete a._mock,f=Wr({},a,u)),Promise.resolve({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(f),getProperties:()=>Promise.resolve(a),getEffectiveProperties:()=>Promise.resolve(a),removeListener:()=>{},id:a.qInfo.qId,properties:a,session:i})}}const sw=function(i){let{args:o=[],defaultValue:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"function"==typeof i?i(...o):void 0!==i?i:a},n2=function(i){let{defaultValue:o,async:a=!0,delay:u=0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(){for(var f=arguments.length,p=new Array(f),g=0;g<f;g++)p[g]=arguments[g];const y=sw(i,{defaultValue:o,args:p});return a?new Promise(b=>{setTimeout(()=>b(y),u)}):y}},su=["id","session"],r2=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function aw(i){return!r2.includes(i)}function my(i){const o=sw(i.getLayout);return o.qInfo&&o.qInfo.qId}function O5(i,o){return i.reduce((a,u)=>de(de({},a),function(f,p){let g=my(f);const{delay:y}=p,{id:b,session:x}=f,_=gl(f,su);if(b&&g&&b!==g)throw new Error("Generic object has multiple IDs, qInfo.qId: ".concat(g,", id: ").concat(b));return g=g||b||"object - ".concat(+Date.now()),{[g]:de(de({id:g,session:sw(x,{defaultValue:!0}),on:()=>{},once:()=>{},removeListener:()=>{}},Object.entries(_).reduce((E,D)=>{let[I,C]=D;return de(de({},E),{},{[I]:n2(C,{async:aw(I),delay:y})})},{})),{},{genericType:f.type})}}(u,o)),{})}function lw(i){if(!i.getLayout)throw new Error('Generic object is missing "getLayout"');if(!my(i))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function cw(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Array.isArray(i)||0===i.length)return()=>{throw new Error('No "genericObjects" specified')};i.forEach(lw);const a=O5(i,o);return function(){var u=qe(function*(f){return Promise.resolve(a[f])});return function(f){return u.apply(this,arguments)}}()}function yy(){return()=>Promise.resolve({id:"app-layout"})}const KL={fromGenericObjects(i){return function(o){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const u=new M5,f=new T5(u),p=new cw(o,a),g=new yy,y={id:"app - ".concat(+Date.now()),session:u,createSessionObject:f,destroySessionObject:(b=qe(function*(){}),function(){return b.apply(this,arguments)}),getObject:p,getAppLayout:g,getListObject:function(){var b=qe(function*(){});return function(){return b.apply(this,arguments)}}()};var b;return Promise.resolve(y)}(i,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}},QL={generator:v5,hook:K1,theme:qs,locale:ml};Xt.EnigmaMocker=KL,Xt.__DO_NOT_USE__=QL,Xt.conversion=Wm,Xt.embed=WL,Xt.onContextMenu=function(i){const o=bs(++vs);o.value||(o.value=1,ln.__hooks.menus.push(o)),o.fn=i},Xt.onTakeSnapshot=function(i){const o=bs(++vs);o.value||(o.value=1,ln.__hooks.snaps.push(o)),o.fn=i},Xt.useAction=function(i,o){const[a]=af({action(){a._config.action.call(null)}});return a.component||(a.component=ln,ln.__hooks.actions.list.push(a)),Jm(()=>{const u=i();a._config=u,a.active=u.active||!1,a.disabled=u.disabled||!1,a.hidden=u.hidden||!1,a.label=u.label||"",a.getSvgIconShape=u.icon?()=>u.icon:void 0,a.key=u.key||a.component.__hooks.actions.list.length,a.component.__hooks.actions.changed=!0},o),a.action},Xt.useApp=function(){const i=Rr("app");return i&&i.session?i:void 0},Xt.useAppLayout=function(){return Rr("appLayout")},Xt.useConstraints=function(){return Rr("constraints")},Xt.useDeviceType=function(){return Rr("deviceType")},Xt.useEffect=PD,Xt.useElement=h5,Xt.useEmbed=function(){return Rr("nebbie")},Xt.useEmitter=function(){return Rr("emitter")},Xt.useGlobal=function(){const i=Rr("global");return i&&i.session?i:void 0},Xt.useImperativeHandle=function(i,o){const a=bs(++vs);if(a.imperative||(a.imperative=!0),Zm(a.value?a.value[0]:void 0,o)){const u=i();a.value=[o,u],ln.__hooks.imperativeHandle=u}},Xt.useInteractionState=function(){return Rr("interactions")},Xt.useKeyboard=function(){const i=Rr("keyboardNavigation"),o=Rr("focusHandler");if(!ln.__hooks.accessibility.exitFunction){const y=function(){let _=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const E=this.__hooks.accessibility;E.enabled&&E.active&&(g5(this),o&&o.blurCallback&&o.blurCallback(_))}.bind(ln);ln.__hooks.accessibility.exitFunction=y;const b=function(){const _=this.__hooks.accessibility;_.enabled&&!_.active&&(o&&o.blurCallback&&o.blurCallback(!1),p5(this))}.bind(ln);ln.__hooks.accessibility.focusFunction=b;const x=function(){this.__hooks.accessibility.enabled&&o&&o.focusToolbarButton&&o.focusToolbarButton(arguments.length>0&&void 0!==arguments[0]&&arguments[0])}.bind(ln);ln.__hooks.accessibility.focusSelectionFunction=x}const a=ln.__hooks.accessibility.focusFunction,u=ln.__hooks.accessibility.exitFunction,f=ln.__hooks.accessibility.focusSelectionFunction,[p,g]=af({active:!1,enabled:i,blur:u,focus:a,focusSelection:f});return ln.__hooks.accessibility.setter=g,ln.__hooks.accessibility.enabled=i,PD(()=>g({active:!1,enabled:i,blur:u,focus:a,focusSelection:f}),[i]),p},Xt.useLayout=function(){return Rr("layout")},Xt.useMemo=Jm,Xt.useModel=function(){const i=Rr("model");return i&&i.session?i:void 0},Xt.useNavigation=function(){return Rr("navigation")},Xt.useOptions=function(){return Rr("options")},Xt.usePlugins=function(){return Rr("plugins")},Xt.usePromise=function(i,o){const[a,u]=af(()=>({resolved:void 0,rejected:void 0,state:"pending"})),f=bs(++vs);return f.component||(f.component=ln),f5(()=>{let p=!1;return f.teardown=()=>{p=!0,f.teardown=null;const g=f.component.__hooks.pendingPromises.indexOf(f);g>-1&&f.component.__hooks.pendingPromises.splice(g,1)},i().then(g=>{p||(f.teardown&&f.teardown(),u({resolved:g,rejected:void 0,state:"resolved"}))}).catch(g=>{p||(f.teardown&&f.teardown(),u({resolved:void 0,rejected:g,state:"resolved"}))}),f.component.__hooks.pendingPromises.push(f),()=>{f.teardown&&f.teardown()}},o),[a.resolved,a.rejected]},Xt.useRect=function(){const i=h5(),o=ln.__hooks.resizer,[a,u]=af(()=>{const{left:f,top:p,width:g,height:y}=i.getBoundingClientRect();return{left:f,top:p,width:g,height:y}});return o.current=a,-1===o.setters.indexOf(u)&&o.setters.push(u),o.update&&o.resize&&(o.update=!1,o.resize()),f5(()=>{if(o.initiated)return;o.initiated=!0;const f=()=>{const{left:p,top:g,width:y,height:b}=i.getBoundingClientRect(),x=o.current;x.width===y&&x.height===b&&x.left===p&&x.top===g||o.setters.forEach(_=>_({left:p,top:g,width:y,height:b}))};if(o.resize=()=>{f()},o.explicitResize)return()=>{o.resize=void 0};if("function"==typeof ResizeObserver){let p=new ResizeObserver(f);return p.observe(i),()=>{p.unobserve(i),p.disconnect(i),p=null,o.resize=void 0}}},[i]),a},Xt.useRef=function(i){return Jm(()=>({current:i}),[])},Xt.useRenderState=function(){bs(++vs);const i=ln.__hooks;return{pending:()=>{i.waitForData=!0},restore:()=>{i.waitForData=!1}}},Xt.useSelections=function(){return Rr("selections")},Xt.useStaleLayout=function(){const i=Rr("layout"),[o]=af({current:i});return i.qSelectionInfo&&i.qSelectionInfo.qInSelections||(o.current=i),o.current},Xt.useState=af,Xt.useTheme=function(){return Rr("theme")},Xt.useTranslator=function(){return Rr("translator")}}(Bs)},5:(ki,Bs,Pr)=>{ki.exports=Pr(879)},926:ki=>{function Bs(qe,Xt,Ra,Ai,ao,zs,Cn){try{var pl=qe[zs](Cn),Er=pl.value}catch(kv){return void Ra(kv)}pl.done?Xt(Er):Promise.resolve(Er).then(Ai,ao)}ki.exports=function Pr(qe){return function(){var Xt=this,Ra=arguments;return new Promise(function(Ai,ao){var zs=qe.apply(Xt,Ra);function Cn(Er){Bs(zs,Ai,ao,Cn,pl,"next",Er)}function pl(Er){Bs(zs,Ai,ao,Cn,pl,"throw",Er)}Cn(void 0)})}},ki.exports.__esModule=!0,ki.exports.default=ki.exports}},zi={};function Di(ki){var Bs=zi[ki];if(void 0!==Bs)return Bs.exports;var Pr=zi[ki]={exports:{}};return Ci[ki].call(Pr.exports,Pr,Pr.exports,Di),Pr.exports}(()=>{"use strict";function ki(n){return"function"==typeof n}let Bs=!1;const Pr={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else Bs&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Bs=n},get useDeprecatedSynchronousErrorHandling(){return Bs}};function qe(n){setTimeout(()=>{throw n},0)}const Xt={closed:!0,next(n){},error(n){if(Pr.useDeprecatedSynchronousErrorHandling)throw n;qe(n)},complete(){}},Ra=Array.isArray||(n=>n&&"number"==typeof n.length);function Ai(n){return null!==n&&"object"==typeof n}const zs=(()=>{function n(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((t,r)=>`${r+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return n.prototype=Object.create(Error.prototype),n})();class Cn{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:t,_ctorUnsubscribe:r,_unsubscribe:s,_subscriptions:c}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof Cn)t.remove(this);else if(null!==t)for(let h=0;h<t.length;++h)t[h].remove(this);if(ki(s)){r&&(this._unsubscribe=void 0);try{s.call(this)}catch(h){e=h instanceof zs?pl(h.errors):[h]}}if(Ra(c)){let h=-1,m=c.length;for(;++h<m;){const w=c[h];if(Ai(w))try{w.unsubscribe()}catch(k){e=e||[],k instanceof zs?e=e.concat(pl(k.errors)):e.push(k)}}}if(e)throw new zs(e)}add(e){let t=e;if(!e)return Cn.EMPTY;switch(typeof e){case"function":t=new Cn(e);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof Cn)){const c=t;t=new Cn,t._subscriptions=[c]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:r}=t;if(null===r)t._parentOrParents=this;else if(r instanceof Cn){if(r===this)return t;t._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return t;r.push(this)}const s=this._subscriptions;return null===s?this._subscriptions=[t]:s.push(t),t}remove(e){const t=this._subscriptions;if(t){const r=t.indexOf(e);-1!==r&&t.splice(r,1)}}}var n;function pl(n){return n.reduce((e,t)=>e.concat(t instanceof zs?t.errors:t),[])}Cn.EMPTY=((n=new Cn).closed=!0,n);const Er="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class de extends Cn{constructor(e,t,r){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Xt;break;case 1:if(!e){this.destination=Xt;break}if("object"==typeof e){e instanceof de?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new gl(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new gl(this,e,t,r)}}[Er](){return this}static create(e,t,r){const s=new de(e,t,r);return s.syncErrorThrowable=!1,s}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class gl extends de{constructor(e,t,r,s){super(),this._parentSubscriber=e;let c,h=this;ki(t)?c=t:t&&(c=t.next,r=t.error,s=t.complete,t!==Xt&&(h=Object.create(t),ki(h.unsubscribe)&&this.add(h.unsubscribe.bind(h)),h.unsubscribe=this.unsubscribe.bind(this))),this._context=h,this._next=c,this._error=r,this._complete=s}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;Pr.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:r}=Pr;if(this._error)r&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)r?(t.syncErrorValue=e,t.syncErrorThrown=!0):qe(e),this.unsubscribe();else{if(this.unsubscribe(),r)throw e;qe(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);Pr.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(r){if(this.unsubscribe(),Pr.useDeprecatedSynchronousErrorHandling)throw r;qe(r)}}__tryOrSetError(e,t,r){if(!Pr.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,r)}catch(s){return Pr.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=s,e.syncErrorThrown=!0,!0):(qe(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const Lu="function"==typeof Symbol&&Symbol.observable||"@@observable";function rn(n){return n}let z=(()=>{class n{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(t){const r=new n;return r.source=this,r.operator=t,r}subscribe(t,r,s){const{operator:c}=this,h=function jx(n,e,t){if(n){if(n instanceof de)return n;if(n[Er])return n[Er]()}return n||e||t?new de(n,e,t):new de(Xt)}(t,r,s);if(h.add(c?c.call(h,this.source):this.source||Pr.useDeprecatedSynchronousErrorHandling&&!h.syncErrorThrowable?this._subscribe(h):this._trySubscribe(h)),Pr.useDeprecatedSynchronousErrorHandling&&h.syncErrorThrowable&&(h.syncErrorThrowable=!1,h.syncErrorThrown))throw h.syncErrorValue;return h}_trySubscribe(t){try{return this._subscribe(t)}catch(r){Pr.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=r),function Nx(n){for(;n;){const{closed:e,destination:t,isStopped:r}=n;if(e||r)return!1;n=t&&t instanceof de?t:null}return!0}(t)?t.error(r):console.warn(r)}}forEach(t,r){return new(r=Y(r))((s,c)=>{let h;h=this.subscribe(m=>{try{t(m)}catch(w){c(w),h&&h.unsubscribe()}},c,s)})}_subscribe(t){const{source:r}=this;return r&&r.subscribe(t)}[Lu](){return this}pipe(...t){return 0===t.length?this:function Bf(n){return 0===n.length?rn:1===n.length?n[0]:function(t){return n.reduce((r,s)=>s(r),t)}}(t)(this)}toPromise(t){return new(t=Y(t))((r,s)=>{let c;this.subscribe(h=>c=h,h=>s(h),()=>r(c))})}}return n.create=e=>new n(e),n})();function Y(n){if(n||(n=Pr.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const ml=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class ig extends Cn{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const r=t.indexOf(this.subscriber);-1!==r&&t.splice(r,1)}}class Av extends de{constructor(e){super(e),this.destination=e}}let Zr=(()=>{class n extends z{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Er](){return new Av(this)}lift(t){const r=new zx(this,this);return r.operator=t,r}next(t){if(this.closed)throw new ml;if(!this.isStopped){const{observers:r}=this,s=r.length,c=r.slice();for(let h=0;h<s;h++)c[h].next(t)}}error(t){if(this.closed)throw new ml;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:r}=this,s=r.length,c=r.slice();for(let h=0;h<s;h++)c[h].error(t);this.observers.length=0}complete(){if(this.closed)throw new ml;this.isStopped=!0;const{observers:t}=this,r=t.length,s=t.slice();for(let c=0;c<r;c++)s[c].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new ml;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new ml;return this.hasError?(t.error(this.thrownError),Cn.EMPTY):this.isStopped?(t.complete(),Cn.EMPTY):(this.observers.push(t),new ig(this,t))}asObservable(){const t=new z;return t.source=this,t}}return n.create=(e,t)=>new zx(e,t),n})();class zx extends Zr{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):Cn.EMPTY}}function og(n){return n&&"function"==typeof n.schedule}function ui(n,e){return function(r){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new Rv(n,e))}}class Rv{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new qx(e,this.project,this.thisArg))}}class qx extends de{constructor(e,t,r){super(e),this.project=t,this.count=0,this.thisArg=r||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(r){return void this.destination.error(r)}this.destination.next(t)}}const Pu=n=>e=>{for(let t=0,r=n.length;t<r&&!e.closed;t++)e.next(n[t]);e.complete()},yl=function Vx(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),Xo=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function $x(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const Hx=n=>{if(n&&"function"==typeof n[Lu])return(n=>e=>{const t=n[Lu]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)})(n);if(Xo(n))return Pu(n);if($x(n))return(n=>e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,qe),e))(n);if(n&&"function"==typeof n[yl])return(n=>e=>{const t=n[yl]();for(;;){let r;try{r=t.next()}catch(s){return e.error(s),e}if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof t.return&&e.add(()=>{t.return&&t.return()}),e})(n);{const t=`You provided ${Ai(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(t)}};function Tv(n,e){return new z(t=>{const r=new Cn;let s=0;return r.add(e.schedule(function(){s!==n.length?(t.next(n[s++]),t.closed||r.add(this.schedule())):t.complete()})),r})}function Ov(n,e){return e?function Ux(n,e){if(null!=n){if(function Zk(n){return n&&"function"==typeof n[Lu]}(n))return function Kk(n,e){return new z(t=>{const r=new Cn;return r.add(e.schedule(()=>{const s=n[Lu]();r.add(s.subscribe({next(c){r.add(e.schedule(()=>t.next(c)))},error(c){r.add(e.schedule(()=>t.error(c)))},complete(){r.add(e.schedule(()=>t.complete()))}}))})),r})}(n,e);if($x(n))return function Qk(n,e){return new z(t=>{const r=new Cn;return r.add(e.schedule(()=>n.then(s=>{r.add(e.schedule(()=>{t.next(s),r.add(e.schedule(()=>t.complete()))}))},s=>{r.add(e.schedule(()=>t.error(s)))}))),r})}(n,e);if(Xo(n))return Tv(n,e);if(function Gx(n){return n&&"function"==typeof n[yl]}(n)||"string"==typeof n)return function Yk(n,e){if(!n)throw new Error("Iterable cannot be null");return new z(t=>{const r=new Cn;let s;return r.add(()=>{s&&"function"==typeof s.return&&s.return()}),r.add(e.schedule(()=>{s=n[yl](),r.add(e.schedule(function(){if(t.closed)return;let c,h;try{const m=s.next();c=m.value,h=m.done}catch(m){return void t.error(m)}h?t.complete():(t.next(c),this.schedule())}))})),r})}(n,e)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}(n,e):n instanceof z?n:new z(Hx(n))}class Oo extends de{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class fc extends de{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function Xr(n,e){if(!e.closed)return n instanceof z?n.subscribe(e):Hx(n)(e)}function Lv(n,e,t=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(Lv((s,c)=>Ov(n(s,c)).pipe(ui((h,m)=>e(s,h,c,m))),t)):("number"==typeof e&&(t=e),r=>r.lift(new Wx(n,t)))}class Wx{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new sg(e,this.project,this.concurrent))}}class sg extends fc{constructor(e,t,r=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=r,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const r=this.index++;try{t=this.project(e,r)}catch(s){return void this.destination.error(s)}this.active++,this._innerSub(t)}_innerSub(e){const t=new Oo(this),r=this.destination;r.add(t);const s=Xr(e,t);s!==t&&r.add(s)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function hc(n=Number.POSITIVE_INFINITY){return Lv(rn,n)}function Pv(n,e){return e?Tv(n,e):new z(Pu(n))}function ju(...n){let e=Number.POSITIVE_INFINITY,t=null,r=n[n.length-1];return og(r)?(t=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(e=n.pop())):"number"==typeof r&&(e=n.pop()),null===t&&1===n.length&&n[0]instanceof z?n[0]:hc(e)(Pv(n,t))}function Lo(){return function(e){return e.lift(new Kx(e))}}class Kx{constructor(e){this.connectable=e}call(e,t){const{connectable:r}=this;r._refCount++;const s=new ag(e,r),c=t.subscribe(s);return s.closed||(s.connection=r.connect()),c}}class ag extends de{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:r}=this,s=e._connection;this.connection=null,s&&(!r||s===r)&&s.unsubscribe()}}class Fv extends z{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new Cn,e.add(this.source.subscribe(new Wr(this.getSubject(),this))),e.closed&&(this._connection=null,e=Cn.EMPTY)),e}refCount(){return Lo()(this)}}const eA=(()=>{const n=Fv.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:n._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}}})();class Wr extends Av{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}class rA{constructor(e,t){this.subjectFactory=e,this.selector=t}call(e,t){const{selector:r}=this,s=this.subjectFactory(),c=r(s).subscribe(e);return c.add(t.subscribe(s)),c}}function pc(){return new Zr}function Hn(n){for(let e in n)if(n[e]===Hn)return e;throw Error("Could not find renamed property on target object.")}function Nv(n,e){for(const t in e)e.hasOwnProperty(t)&&!n.hasOwnProperty(t)&&(n[t]=e[t])}function Ln(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(Ln).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const e=n.toString();if(null==e)return""+e;const t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}function jv(n,e){return null==n||""===n?null===e?"":e:null==e||""===e?n:n+" "+e}const oA=Hn({__forward_ref__:Hn});function Ia(n){return n.__forward_ref__=Ia,n.toString=function(){return Ln(this())},n}function Tt(n){return Pn(n)?n():n}function Pn(n){return"function"==typeof n&&n.hasOwnProperty(oA)&&n.__forward_ref__===Ia}class ot extends Error{constructor(e,t){super(function lg(n,e){return`NG0${Math.abs(n)}${e?": "+e:""}`}(e,t)),this.code=e}}function Jr(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():function $t(n){return"string"==typeof n?n:null==n?"":String(n)}(n)}function Bu(n,e){const t=e?` in ${e}`:"";throw new ot(-201,`No provider for ${Jr(n)} found${t}`)}function di(n,e){null==n&&function Dn(n,e,t,r){throw new Error(`ASSERTION ERROR: ${n}`+(null==r?"":` [Expected=> ${t} ${r} ${e} <=Actual]`))}(e,n,null,"!=")}function Qe(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function Vi(n){return{providers:n.providers||[],imports:n.imports||[]}}function Bv(n){return Jx(n,fe)||Jx(n,cg)}function Jx(n,e){return n.hasOwnProperty(e)?n[e]:null}function gc(n){return n&&(n.hasOwnProperty(Ft)||n.hasOwnProperty(hA))?n[Ft]:null}const fe=Hn({\u0275prov:Hn}),Ft=Hn({\u0275inj:Hn}),cg=Hn({ngInjectableDef:Hn}),hA=Hn({ngInjectorDef:Hn});var Ye=(()=>((Ye=Ye||{})[Ye.Default=0]="Default",Ye[Ye.Host=1]="Host",Ye[Ye.Self=2]="Self",Ye[Ye.SkipSelf=4]="SkipSelf",Ye[Ye.Optional=8]="Optional",Ye))();let qu;function Ma(n){const e=qu;return qu=n,e}function qf(n,e,t){const r=Bv(n);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:t&Ye.Optional?null:void 0!==e?e:void Bu(Ln(n),"Injector")}function Vs(n){return{toString:n}.toString()}var Jo=(()=>((Jo=Jo||{})[Jo.OnPush=0]="OnPush",Jo[Jo.Default=1]="Default",Jo))(),Po=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(Po||(Po={})),Po))();const e_="undefined"!=typeof globalThis&&globalThis,t_="undefined"!=typeof window&&window,mt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,kt=e_||"undefined"!=typeof global&&global||t_||mt,vl={},In=[],Vf=Hn({\u0275cmp:Hn}),Vu=Hn({\u0275dir:Hn}),bl=Hn({\u0275pipe:Hn}),qv=Hn({\u0275mod:Hn}),er=Hn({\u0275fac:Hn}),tr=Hn({__NG_ELEMENT_ID__:Hn});let $u=0;function Hu(n){return Vs(()=>{const t={},r={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===Jo.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||In,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Po.Emulated,id:"c",styles:n.styles||In,_:null,setInput:null,schemas:n.schemas||null,tView:null},s=n.directives,c=n.features,h=n.pipes;return r.id+=$u++,r.inputs=wl(n.inputs,t),r.outputs=wl(n.outputs),c&&c.forEach(m=>m(r)),r.directiveDefs=s?()=>("function"==typeof s?s():s).map(n_):null,r.pipeDefs=h?()=>("function"==typeof h?h():h).map(fi):null,r})}function n_(n){return Cr(n)||function xl(n){return n[Vu]||null}(n)}function fi(n){return function mc(n){return n[bl]||null}(n)}const $i={};function Ri(n){return Vs(()=>{const e={type:n.type,bootstrap:n.bootstrap||In,declarations:n.declarations||In,imports:n.imports||In,exports:n.exports||In,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&($i[n.id]=n.type),e})}function wl(n,e){if(null==n)return vl;const t={};for(const r in n)if(n.hasOwnProperty(r)){let s=n[r],c=s;Array.isArray(s)&&(c=s[1],s=s[0]),t[s]=r,e&&(e[s]=c)}return t}const pt=Hu;function Cr(n){return n[Vf]||null}function Hi(n,e){const t=n[qv]||null;if(!t&&!0===e)throw new Error(`Type ${Ln(n)} does not have '\u0275mod' property.`);return t}function ts(n){return Array.isArray(n)&&"object"==typeof n[1]}function co(n){return Array.isArray(n)&&!0===n[1]}function Uf(n){return 0!=(8&n.flags)}function gg(n){return 2==(2&n.flags)}function ns(n){return null!==n.template}function o_(n){return 0!=(512&n[2])}function _c(n,e){return n.hasOwnProperty(er)?n[er]:null}class d_{constructor(e,t,r){this.previousValue=e,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}function Cl(){return f_}function f_(n){return n.type.prototype.ngOnChanges&&(n.setInput=Wu),vg}function vg(){const n=p_(this),e=null==n?void 0:n.current;if(e){const t=n.previous;if(t===vl)n.previous=e;else for(let r in e)t[r]=e[r];n.current=null,this.ngOnChanges(e)}}function Wu(n,e,t,r){const s=p_(n)||function bA(n,e){return n[h_]=e}(n,{previous:vl,current:null}),c=s.current||(s.current={}),h=s.previous,m=this.declaredInputs[t],w=h[m];c[m]=new d_(w&&w.currentValue,e,h===vl),n[r]=e}Cl.ngInherit=!0;const h_="__ngSimpleChanges__";function p_(n){return n[h_]||null}let Xv;function fr(n){return!!n.listen}const e0={createRenderer:(n,e)=>function Jv(){return void 0!==Xv?Xv:"undefined"!=typeof document?document:void 0}()};function Fr(n){for(;Array.isArray(n);)n=n[0];return n}function Gi(n,e){return Fr(e[n.index])}function Ui(n,e){const t=e[n];return ts(t)?t:t[0]}function wg(n){return 4==(4&n[2])}function xg(n){return 128==(128&n[2])}function dn(n,e){return null==e?null:n[e]}function Hs(n){n[18]=0}function ei(n,e){n[5]+=e;let t=n,r=n[3];for(;null!==r&&(1===e&&1===t[5]||-1===e&&0===t[5]);)r[5]+=e,t=r,r=r[3]}const Dt={lFrame:w_(null),bindingsEnabled:!0};function _g(){return Dt.bindingsEnabled}function Fe(){return Dt.lFrame.lView}function fn(){return Dt.lFrame.tView}function Nr(){let n=n0();for(;null!==n&&64===n.type;)n=n.parent;return n}function n0(){return Dt.lFrame.currentTNode}function Ze(n,e){const t=Dt.lFrame;t.currentTNode=n,t.isParent=e}function r0(){return Dt.lFrame.isParent}function AA(n,e){const t=Dt.lFrame;t.bindingIndex=t.bindingRootIndex=n,nr(e)}function nr(n){Dt.lFrame.currentDirectiveIndex=n}function l0(){return Dt.lFrame.currentQueryIndex}function Qu(n){Dt.lFrame.currentQueryIndex=n}function No(n){const e=n[1];return 2===e.type?e.declTNode:1===e.type?n[6]:null}function ho(n,e,t){if(t&Ye.SkipSelf){let s=e,c=n;for(;!(s=s.parent,null!==s||t&Ye.Host||(s=No(c),null===s||(c=c[15],10&s.type))););if(null===s)return!1;e=s,n=c}const r=Dt.lFrame=b_();return r.currentTNode=e,r.lView=n,!0}function Eg(n){const e=b_(),t=n[1];Dt.lFrame=e,e.currentTNode=t.firstChild,e.lView=n,e.tView=t,e.contextLView=n,e.bindingIndex=t.bindingStartIndex,e.inI18n=!1}function b_(){const n=Dt.lFrame,e=null===n?null:n.child;return null===e?w_(n):e}function w_(n){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=e),e}function x_(){const n=Dt.lFrame;return Dt.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const __=x_;function Cg(){const n=x_();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function Al(n){Dt.lFrame.selectedIndex=n}function yi(n,e){for(let t=e.directiveStart,r=e.directiveEnd;t<r;t++){const c=n.data[t].type.prototype,{ngAfterContentInit:h,ngAfterContentChecked:m,ngAfterViewInit:w,ngAfterViewChecked:k,ngOnDestroy:N}=c;h&&(n.contentHooks||(n.contentHooks=[])).push(-t,h),m&&((n.contentHooks||(n.contentHooks=[])).push(t,m),(n.contentCheckHooks||(n.contentCheckHooks=[])).push(t,m)),w&&(n.viewHooks||(n.viewHooks=[])).push(-t,w),k&&((n.viewHooks||(n.viewHooks=[])).push(t,k),(n.viewCheckHooks||(n.viewCheckHooks=[])).push(t,k)),null!=N&&(n.destroyHooks||(n.destroyHooks=[])).push(t,N)}}function Ig(n,e,t){S_(n,e,3,t)}function Zu(n,e,t,r){(3&n[2])===t&&S_(n,e,t,r)}function c0(n,e){let t=n[2];(3&t)===e&&(t&=2047,t+=1,n[2]=t)}function S_(n,e,t,r){const c=null!=r?r:-1,h=e.length-1;let m=0;for(let w=void 0!==r?65535&n[18]:0;w<h;w++)if("number"==typeof e[w+1]){if(m=e[w],null!=r&&m>=r)break}else e[w]<0&&(n[18]+=65536),(m<c||-1==c)&&(TA(n,t,e,w),n[18]=(4294901760&n[18])+w+2),w++}function TA(n,e,t,r){const s=t[r]<0,c=t[r+1],m=n[s?-t[r]:t[r]];if(s){if(n[2]>>11<n[18]>>16&&(3&n[2])===e){n[2]+=2048;try{c.call(m)}finally{}}}else try{c.call(m)}finally{}}class Pa{constructor(e,t,r){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r}}function Cc(n,e,t){const r=fr(n);let s=0;for(;s<t.length;){const c=t[s];if("number"==typeof c){if(0!==c)break;s++;const h=t[s++],m=t[s++],w=t[s++];r?n.setAttribute(e,m,w,h):e.setAttributeNS(h,m,w)}else{const h=c,m=t[++s];d0(h)?r&&n.setProperty(e,h,m):r?n.setAttribute(e,h,m):e.setAttribute(h,m),s++}}return s}function C_(n){return 3===n||4===n||6===n}function d0(n){return 64===n.charCodeAt(0)}function Mg(n,e){if(null!==e&&0!==e.length)if(null===n||0===n.length)n=e.slice();else{let t=-1;for(let r=0;r<e.length;r++){const s=e[r];"number"==typeof s?t=s:0===t||ed(n,t,s,null,-1===t||2===t?e[++r]:null)}}return n}function ed(n,e,t,r,s){let c=0,h=n.length;if(-1===e)h=-1;else for(;c<n.length;){const m=n[c++];if("number"==typeof m){if(m===e){h=-1;break}if(m>e){h=c-1;break}}}for(;c<n.length;){const m=n[c];if("number"==typeof m)break;if(m===t){if(null===r)return void(null!==s&&(n[c+1]=s));if(r===n[c+1])return void(n[c+2]=s)}c++,null!==r&&c++,null!==s&&c++}-1!==h&&(n.splice(h,0,e),c=h+1),n.splice(c++,0,t),null!==r&&n.splice(c++,0,r),null!==s&&n.splice(c++,0,s)}function D_(n){return-1!==n}function Dc(n){return 32767&n}function kc(n,e){let t=function Tg(n){return n>>16}(n),r=e;for(;t>0;)r=r[15],t--;return r}let At=!0;function Og(n){const e=At;return At=n,e}let k_=0;function td(n,e){const t=Pg(n,e);if(-1!==t)return t;const r=e[1];r.firstCreatePass&&(n.injectorIndex=e.length,Lg(r.data,n),Lg(e,null),Lg(r.blueprint,null));const s=Fg(n,e),c=n.injectorIndex;if(D_(s)){const h=Dc(s),m=kc(s,e),w=m[1].data;for(let k=0;k<8;k++)e[c+k]=m[h+k]|w[h+k]}return e[c+8]=s,c}function Lg(n,e){n.push(0,0,0,0,0,0,0,0,e)}function Pg(n,e){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===e[n.injectorIndex+8]?-1:n.injectorIndex}function Fg(n,e){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let t=0,r=null,s=e;for(;null!==s;){const c=s[1],h=c.type;if(r=2===h?c.declTNode:1===h?s[6]:null,null===r)return-1;if(t++,s=s[15],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return-1}function Ng(n,e,t){!function PA(n,e,t){let r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(tr)&&(r=t[tr]),null==r&&(r=t[tr]=k_++);const s=255&r;e.data[n+(s>>5)]|=1<<s}(n,e,t)}function A_(n,e,t){if(t&Ye.Optional)return n;Bu(e,"NodeInjector")}function jg(n,e,t,r){if(t&Ye.Optional&&void 0===r&&(r=null),0==(t&(Ye.Self|Ye.Host))){const s=n[9],c=Ma(void 0);try{return s?s.get(e,r,t&Ye.Optional):qf(e,r,t&Ye.Optional)}finally{Ma(c)}}return A_(r,e,t)}function R_(n,e,t,r=Ye.Default,s){if(null!==n){const c=function Xf(n){if("string"==typeof n)return n.charCodeAt(0)||0;const e=n.hasOwnProperty(tr)?n[tr]:void 0;return"number"==typeof e?e>=0?255&e:Bg:e}(t);if("function"==typeof c){if(!ho(e,n,r))return r&Ye.Host?A_(s,t,r):jg(e,t,r,s);try{const h=c(r);if(null!=h||r&Ye.Optional)return h;Bu(t)}finally{__()}}else if("number"==typeof c){let h=null,m=Pg(n,e),w=-1,k=r&Ye.Host?e[16][6]:null;for((-1===m||r&Ye.SkipSelf)&&(w=-1===m?Fg(n,e):e[m+8],-1!==w&&po(r,!1)?(h=e[1],m=Dc(w),e=kc(w,e)):m=-1);-1!==m;){const N=e[1];if(M_(c,m,N.data)){const V=NA(m,e,t,h,r,k);if(V!==I_)return V}w=e[m+8],-1!==w&&po(r,e[1].data[m+8]===k)&&M_(c,m,e)?(h=N,m=Dc(w),e=kc(w,e)):m=-1}}}return jg(e,t,r,s)}const I_={};function Bg(){return new nd(Nr(),Fe())}function NA(n,e,t,r,s,c){const h=e[1],m=h.data[n+8],N=Ac(m,h,t,null==r?gg(m)&&At:r!=h&&0!=(3&m.type),s&Ye.Host&&c===m);return null!==N?Zf(e,h,N,m):I_}function Ac(n,e,t,r,s){const c=n.providerIndexes,h=e.data,m=1048575&c,w=n.directiveStart,N=c>>20,W=s?m+N:n.directiveEnd;for(let ee=r?m:m+N;ee<W;ee++){const ue=h[ee];if(ee<w&&t===ue||ee>=w&&ue.type===t)return ee}if(s){const ee=h[w];if(ee&&ns(ee)&&ee.type===t)return w}return null}function Zf(n,e,t,r){let s=n[t];const c=e.data;if(function E_(n){return n instanceof Pa}(s)){const h=s;h.resolving&&function Qx(n,e){const t=e?`. Dependency path: ${e.join(" > ")} > ${n}`:"";throw new ot(-200,`Circular dependency in DI detected for ${n}${t}`)}(Jr(c[t]));const m=Og(h.canSeeViewProviders);h.resolving=!0;const w=h.injectImpl?Ma(h.injectImpl):null;ho(n,r,Ye.Default);try{s=n[t]=h.factory(void 0,c,n,r),e.firstCreatePass&&t>=r.directiveStart&&function Yu(n,e,t){const{ngOnChanges:r,ngOnInit:s,ngDoCheck:c}=e.type.prototype;if(r){const h=f_(e);(t.preOrderHooks||(t.preOrderHooks=[])).push(n,h),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,h)}s&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-n,s),c&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n,c),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,c))}(t,c[t],e)}finally{null!==w&&Ma(w),Og(m),h.resolving=!1,__()}}return s}function M_(n,e,t){return!!(t[e+(n>>5)]&1<<n)}function po(n,e){return!(n&Ye.Self||n&Ye.Host&&e)}class nd{constructor(e,t){this._tNode=e,this._lView=t}get(e,t,r){return R_(this._tNode,this._lView,e,r,t)}}function Yt(n){return Vs(()=>{const e=n.prototype.constructor,t=e[er]||rd(e),r=Object.prototype;let s=Object.getPrototypeOf(n.prototype).constructor;for(;s&&s!==r;){const c=s[er]||rd(s);if(c&&c!==t)return c;s=Object.getPrototypeOf(s)}return c=>new c})}function rd(n){return Pn(n)?()=>{const e=rd(Tt(n));return e&&e()}:_c(n)}class Ot{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=Qe({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}function mo(n,e){void 0===e&&(e=n);for(let t=0;t<n.length;t++){let r=n[t];Array.isArray(r)?(e===n&&(e=n.slice(0,t)),mo(r,e)):e!==n&&e.push(r)}return e}function os(n,e){n.forEach(t=>Array.isArray(t)?os(t,e):e(t))}function Mn(n,e,t){e>=n.length?n.push(t):n.splice(e,0,t)}function Fa(n,e){return e>=n.length-1?n.pop():n.splice(e,1)[0]}const sh={},Hg="ngTempTokenPath",GA=/\n/gm,B_="__source",WA=Hn({provide:String,useValue:Hn});let id;function ir(n){const e=id;return id=n,e}function z_(n,e=Ye.Default){if(void 0===id)throw new ot(203,"");return null===id?qf(n,void 0,e):id.get(n,e&Ye.Optional?null:void 0,e)}function Pe(n,e=Ye.Default){return(function dt(){return qu}()||z_)(Tt(n),e)}const Gg=Pe;function v0(n){const e=[];for(let t=0;t<n.length;t++){const r=Tt(n[t]);if(Array.isArray(r)){if(0===r.length)throw new ot(900,"");let s,c=Ye.Default;for(let h=0;h<r.length;h++){const m=r[h],w=or(m);"number"==typeof w?-1===w?s=m.token:c|=w:s=m}e.push(Pe(s,c))}else e.push(Pe(r))}return e}function or(n){return n.__NG_DI_FLAG__}var yo=(()=>((yo=yo||{})[yo.Important=1]="Important",yo[yo.DashCase=2]="DashCase",yo))();const S0="__ngContext__";function ii(n,e){n[S0]=e}function Wg(n){const e=function cd(n){return n[S0]||null}(n);return e?Array.isArray(e)?e:e.lView:null}function Kg(n,e){return undefined(n,e)}function dd(n){const e=n[3];return co(e)?e[3]:e}function Yg(n){return C0(n[13])}function Gs(n){return C0(n[4])}function C0(n){for(;null!==n&&!co(n);)n=n[4];return n}function Us(n,e,t,r,s){if(null!=r){let c,h=!1;co(r)?c=r:ts(r)&&(h=!0,r=r[0]);const m=Fr(r);0===n&&null!==t?null==s?Q_(e,t,m):Ks(e,t,m,s||null,!0):1===n&&null!==t?Ks(e,t,m,s||null,!0):2===n?function O0(n,e,t){const r=Zg(n,e);r&&function aR(n,e,t,r){fr(n)?n.removeChild(e,t,r):e.removeChild(t)}(n,r,e,t)}(e,m,h):3===n&&e.destroyNode(m),null!=c&&function uR(n,e,t,r,s){const c=t[7];c!==Fr(t)&&Us(e,n,r,c,s);for(let m=10;m<t.length;m++){const w=t[m];pd(w[1],w,n,e,r,c)}}(e,n,c,t,s)}}function dh(n,e,t){if(fr(n))return n.createElement(e,t);{const r=null!==t?function wA(n){const e=n.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(t):null;return null===r?n.createElement(e):n.createElementNS(r,e)}}function U_(n,e){const t=n[9],r=t.indexOf(e),s=e[3];1024&e[2]&&(e[2]&=-1025,ei(s,-1)),t.splice(r,1)}function hh(n,e){if(n.length<=10)return;const t=10+e,r=n[t];if(r){const s=r[17];null!==s&&s!==n&&U_(s,r),e>0&&(n[t-1][4]=r[4]);const c=Fa(n,10+e);!function Ws(n,e){pd(n,e,e[11],2,null,null),e[0]=null,e[6]=null}(r[1],r);const h=c[19];null!==h&&h.detachView(c[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function vo(n,e){if(!(256&e[2])){const t=e[11];fr(t)&&t.destroyNode&&pd(n,e,t,3,null,null),function k0(n){let e=n[13];if(!e)return A0(n[1],n);for(;e;){let t=null;if(ts(e))t=e[13];else{const r=e[10];r&&(t=r)}if(!t){for(;e&&!e[4]&&e!==n;)ts(e)&&A0(e[1],e),e=e[3];null===e&&(e=n),ts(e)&&A0(e[1],e),t=e&&e[4]}e=t}}(e)}}function A0(n,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function K_(n,e){let t;if(null!=n&&null!=(t=n.destroyHooks))for(let r=0;r<t.length;r+=2){const s=e[t[r]];if(!(s instanceof Pa)){const c=t[r+1];if(Array.isArray(c))for(let h=0;h<c.length;h+=2){const m=s[c[h]],w=c[h+1];try{w.call(m)}finally{}}else try{c.call(s)}finally{}}}}(n,e),function W_(n,e){const t=n.cleanup,r=e[7];let s=-1;if(null!==t)for(let c=0;c<t.length-1;c+=2)if("string"==typeof t[c]){const h=t[c+1],m="function"==typeof h?h(e):Fr(e[h]),w=r[s=t[c+2]],k=t[c+3];"boolean"==typeof k?m.removeEventListener(t[c],w,k):k>=0?r[s=k]():r[s=-k].unsubscribe(),c+=2}else{const h=r[s=t[c+1]];t[c].call(h)}if(null!==r){for(let c=s+1;c<r.length;c++)r[c]();e[7]=null}}(n,e),1===e[1].type&&fr(e[11])&&e[11].destroy();const t=e[17];if(null!==t&&co(e[3])){t!==e[3]&&U_(t,e);const r=e[19];null!==r&&r.detachView(n)}}}function R0(n,e,t){return function I0(n,e,t){let r=e;for(;null!==r&&40&r.type;)r=(e=r).parent;if(null===r)return t[0];if(2&r.flags){const s=n.data[r.directiveStart].encapsulation;if(s===Po.None||s===Po.Emulated)return null}return Gi(r,t)}(n,e.parent,t)}function Ks(n,e,t,r,s){fr(n)?n.insertBefore(e,t,r,s):e.insertBefore(t,r,s)}function Q_(n,e,t){fr(n)?n.appendChild(e,t):e.appendChild(t)}function Y_(n,e,t,r,s){null!==r?Ks(n,e,t,r,s):Q_(n,e,t)}function Zg(n,e){return fr(n)?n.parentNode(e):e.parentNode}let J_=function X_(n,e,t){return 40&n.type?Gi(n,t):null};function Va(n,e,t,r){const s=R0(n,r,e),c=e[11],m=function Z_(n,e,t){return J_(n,e,t)}(r.parent||e[6],r,e);if(null!=s)if(Array.isArray(t))for(let w=0;w<t.length;w++)Y_(c,s,t[w],m,!1);else Y_(c,s,t,m,!1)}function Xg(n,e){if(null!==e){const t=e.type;if(3&t)return Gi(e,n);if(4&t)return T0(-1,n[e.index]);if(8&t){const r=e.child;if(null!==r)return Xg(n,r);{const s=n[e.index];return co(s)?T0(-1,s):Fr(s)}}if(32&t)return Kg(e,n)()||Fr(n[e.index]);{const r=$a(n,e);return null!==r?Array.isArray(r)?r[0]:Xg(dd(n[16]),r):Xg(n,e.next)}}return null}function $a(n,e){return null!==e?n[16][6].projection[e.projection]:null}function T0(n,e){const t=10+n+1;if(t<e.length){const r=e[t],s=r[1].firstChild;if(null!==s)return Xg(r,s)}return e[7]}function L0(n,e,t,r,s,c,h){for(;null!=t;){const m=r[t.index],w=t.type;if(h&&0===e&&(m&&ii(Fr(m),r),t.flags|=4),64!=(64&t.flags))if(8&w)L0(n,e,t.child,r,s,c,!1),Us(e,n,s,m,c);else if(32&w){const k=Kg(t,r);let N;for(;N=k();)Us(e,n,s,N,c);Us(e,n,s,m,c)}else 16&w?tS(n,e,r,t,s,c):Us(e,n,s,m,c);t=h?t.projectionNext:t.next}}function pd(n,e,t,r,s,c){L0(t,r,n.firstChild,e,s,c,!1)}function tS(n,e,t,r,s,c){const h=t[16],w=h[6].projection[r.projection];if(Array.isArray(w))for(let k=0;k<w.length;k++)Us(e,n,s,w[k],c);else L0(n,e,w,h[3],s,c,!0)}function gd(n,e,t){fr(n)?n.setAttribute(e,"style",t):e.style.cssText=t}function Nt(n,e,t){fr(n)?""===t?n.removeAttribute(e,"class"):n.setAttribute(e,"class",t):e.className=t}function Fc(n){return n.ngOriginalError}function wh(n,...e){n.error(...e)}class bd{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),r=function V0(n){return n&&n.ngErrorLogger||wh}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t)}_findOriginalError(e){let t=e&&Fc(e);for(;t&&Fc(t);)t=Fc(t);return t||null}}const kR=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(kt))();function Bo(n){return n instanceof Function?n():n}function $0(n,e,t){let r=n.length;for(;;){const s=n.indexOf(e,t);if(-1===s)return s;if(0===s||n.charCodeAt(s-1)<=32){const c=e.length;if(s+c===r||n.charCodeAt(s+c)<=32)return s}t=s+1}}const H0="ng-template";function xh(n,e,t){let r=0;for(;r<n.length;){let s=n[r++];if(t&&"class"===s){if(s=n[r],-1!==$0(s.toLowerCase(),e,0))return!0}else if(1===s){for(;r<n.length&&"string"==typeof(s=n[r++]);)if(s.toLowerCase()===e)return!0;return!1}}return!1}function wS(n){return 4===n.type&&n.value!==H0}function IR(n,e,t){return e===(4!==n.type||t?n.value:H0)}function xS(n,e,t){let r=4;const s=n.attrs||[],c=function OR(n){for(let e=0;e<n.length;e++)if(C_(n[e]))return e;return n.length}(s);let h=!1;for(let m=0;m<e.length;m++){const w=e[m];if("number"!=typeof w){if(!h)if(4&r){if(r=2|1&r,""!==w&&!IR(n,w,t)||""===w&&1===e.length){if(zo(r))return!1;h=!0}}else{const k=8&r?w:e[++m];if(8&r&&null!==n.attrs){if(!xh(n.attrs,k,t)){if(zo(r))return!1;h=!0}continue}const V=MR(8&r?"class":w,s,wS(n),t);if(-1===V){if(zo(r))return!1;h=!0;continue}if(""!==k){let W;W=V>c?"":s[V+1].toLowerCase();const ee=8&r?W:null;if(ee&&-1!==$0(ee,k,0)||2&r&&k!==W){if(zo(r))return!1;h=!0}}}}else{if(!h&&!zo(r)&&!zo(w))return!1;if(h&&zo(w))continue;h=!1,r=w|1&r}}return zo(r)||h}function zo(n){return 0==(1&n)}function MR(n,e,t,r){if(null===e)return-1;let s=0;if(r||!t){let c=!1;for(;s<e.length;){const h=e[s];if(h===n)return s;if(3===h||6===h)c=!0;else{if(1===h||2===h){let m=e[++s];for(;"string"==typeof m;)m=e[++s];continue}if(4===h)break;if(0===h){s+=4;continue}}s+=c?1:2}return-1}return function SS(n,e){let t=n.indexOf(4);if(t>-1)for(t++;t<n.length;){const r=n[t];if("number"==typeof r)return-1;if(r===e)return t;t++}return-1}(e,n)}function _S(n,e,t=!1){for(let r=0;r<e.length;r++)if(xS(n,e[r],t))return!0;return!1}function CS(n,e){return n?":not("+e.trim()+")":e}function LR(n){let e=n[0],t=1,r=2,s="",c=!1;for(;t<n.length;){let h=n[t];if("string"==typeof h)if(2&r){const m=n[++t];s+="["+h+(m.length>0?'="'+m+'"':"")+"]"}else 8&r?s+="."+h:4&r&&(s+=" "+h);else""!==s&&!zo(h)&&(e+=CS(c,s),s=""),r=h,c=c||!zo(r);t++}return""!==s&&(e+=CS(c,s)),e}const Wt={};function BS(n,e){const t=n.contentQueries;if(null!==t)for(let r=0;r<t.length;r+=2){const s=t[r],c=t[r+1];if(-1!==c){const h=n.data[c];Qu(s),h.contentQueries(2,e[c],c)}}}function Sh(n,e,t,r,s,c,h,m,w,k){const N=e.blueprint.slice();return N[0]=s,N[2]=140|r,Hs(N),N[3]=N[15]=n,N[8]=t,N[10]=h||n&&n[10],N[11]=m||n&&n[11],N[12]=w||n&&n[12]||null,N[9]=k||n&&n[9]||null,N[6]=c,N[16]=2==e.type?n[16]:N,N}function Ed(n,e,t,r,s){let c=n.data[e];if(null===c)c=function tb(n,e,t,r,s){const c=n0(),h=r0(),w=n.data[e]=function sb(n,e,t,r,s,c){return{type:t,index:r,insertBeforeIndex:null,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:s,attrs:c,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,h?c:c&&c.parent,t,e,r,s);return null===n.firstChild&&(n.firstChild=w),null!==c&&(h?null==c.child&&null!==w.parent&&(c.child=w):null===c.next&&(c.next=w)),w}(n,e,t,r,s),function a0(){return Dt.lFrame.inI18n}()&&(c.flags|=64);else if(64&c.type){c.type=t,c.value=r,c.attrs=s;const h=function is(){const n=Dt.lFrame,e=n.currentTNode;return n.isParent?e:e.parent}();c.injectorIndex=null===h?-1:h.injectorIndex}return Ze(c,!0),c}function jc(n,e,t,r){if(0===t)return-1;const s=e.length;for(let c=0;c<t;c++)e.push(r),n.blueprint.push(r),n.data.push(null);return s}function Cd(n,e,t){Eg(e);try{const r=n.viewQuery;null!==r&&fb(1,r,t);const s=n.template;null!==s&&Eh(n,e,s,1,t),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&BS(n,e),n.staticViewQueries&&fb(2,n.viewQuery,t);const c=n.components;null!==c&&function GR(n,e){for(let t=0;t<e.length;t++)tt(n,e[t])}(e,c)}catch(r){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),r}finally{e[2]&=-5,Cg()}}function Bc(n,e,t,r){const s=e[2];if(256!=(256&s)){Eg(e);try{Hs(e),function s0(n){return Dt.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==t&&Eh(n,e,t,2,r);const h=3==(3&s);if(h){const k=n.preOrderCheckHooks;null!==k&&Ig(e,k,null)}else{const k=n.preOrderHooks;null!==k&&Zu(e,k,0,null),c0(e,0)}if(function XS(n){for(let e=Yg(n);null!==e;e=Gs(e)){if(!e[2])continue;const t=e[9];for(let r=0;r<t.length;r++){const s=t[r],c=s[3];0==(1024&s[2])&&ei(c,1),s[2]|=1024}}}(e),function Dd(n){for(let e=Yg(n);null!==e;e=Gs(e))for(let t=10;t<e.length;t++){const r=e[t],s=r[1];xg(r)&&Bc(s,r,s.template,r[8])}}(e),null!==n.contentQueries&&BS(n,e),h){const k=n.contentCheckHooks;null!==k&&Ig(e,k)}else{const k=n.contentHooks;null!==k&&Zu(e,k,1),c0(e,1)}!function $R(n,e){const t=n.hostBindingOpCodes;if(null!==t)try{for(let r=0;r<t.length;r++){const s=t[r];if(s<0)Al(~s);else{const c=s,h=t[++r],m=t[++r];AA(h,c),m(2,e[c])}}}finally{Al(-1)}}(n,e);const m=n.components;null!==m&&function HR(n,e){for(let t=0;t<e.length;t++)rI(n,e[t])}(e,m);const w=n.viewQuery;if(null!==w&&fb(2,w,r),h){const k=n.viewCheckHooks;null!==k&&Ig(e,k)}else{const k=n.viewHooks;null!==k&&Zu(e,k,2),c0(e,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),e[2]&=-73,1024&e[2]&&(e[2]&=-1025,ei(e[3],-1))}finally{Cg()}}}function zS(n,e,t,r){const s=e[10],h=wg(e);try{!h&&s.begin&&s.begin(),h&&Cd(n,e,r),Bc(n,e,t,r)}finally{!h&&s.end&&s.end()}}function Eh(n,e,t,r,s){const c=function Mi(){return Dt.lFrame.selectedIndex}(),h=2&r;try{Al(-1),h&&e.length>20&&function om(n,e,t,r){if(!r)if(3==(3&e[2])){const c=n.preOrderCheckHooks;null!==c&&Ig(e,c,t)}else{const c=n.preOrderHooks;null!==c&&Zu(e,c,0,t)}Al(t)}(n,e,20,!1),t(r,s)}finally{Al(c)}}function qS(n){const e=n.tView;return null===e||e.incompleteFirstPass?n.tView=dm(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):e}function dm(n,e,t,r,s,c,h,m,w,k){const N=20+r,V=N+s,W=function UR(n,e){const t=[];for(let r=0;r<e;r++)t.push(r<n?null:Wt);return t}(N,V),ee="function"==typeof k?k():k;return W[1]={type:n,blueprint:W,template:t,queries:null,viewQuery:m,declTNode:e,data:W.slice().fill(null,N),bindingStartIndex:N,expandoStartIndex:V,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof c?c():c,pipeRegistry:"function"==typeof h?h():h,firstChild:null,schemas:w,consts:ee,incompleteFirstPass:!1}}function ob(n,e,t,r){const s=function tE(n){return n[7]||(n[7]=[])}(e);null===t?s.push(r):(s.push(t),n.firstCreatePass&&function nE(n){return n.cleanup||(n.cleanup=[])}(n).push(r,s.length-1))}function VS(n,e,t){for(let r in n)if(n.hasOwnProperty(r)){const s=n[r];(t=null===t?{}:t).hasOwnProperty(r)?t[r].push(e,s):t[r]=[e,s]}return t}function HS(n,e,t,r,s,c){const h=c.hostBindings;if(h){let m=n.hostBindingOpCodes;null===m&&(m=n.hostBindingOpCodes=[]);const w=~e.index;(function GS(n){let e=n.length;for(;e>0;){const t=n[--e];if("number"==typeof t&&t<0)return t}return 0})(m)!=w&&m.push(w),m.push(r,s,h)}}function US(n,e){null!==n.hostBindings&&n.hostBindings(1,e)}function KS(n,e){e.flags|=2,(n.components||(n.components=[])).push(e.index)}function Dh(n,e,t){if(t){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)t[e.exportAs[r]]=n;ns(e)&&(t[""]=n)}}function QS(n,e,t){n.flags|=1,n.directiveStart=e,n.directiveEnd=e+t,n.providerIndexes=e}function YS(n,e,t,r,s){n.data[r]=s;const c=s.factory||(s.factory=_c(s.type)),h=new Pa(c,ns(s),null);n.blueprint[r]=h,t[r]=h,HS(n,e,0,r,jc(n,t,s.hostVars,Wt),s)}function tI(n,e,t){const r=Gi(e,n),s=qS(t),c=n[10],h=kd(n,Sh(n,s,null,t.onPush?64:16,r,e,c,c.createRenderer(r,t),null,null));n[e.index]=h}function nI(n,e,t,r,s,c){const h=c[e];if(null!==h){const m=r.setInput;for(let w=0;w<h.length;){const k=h[w++],N=h[w++],V=h[w++];null!==m?r.setInput(t,V,k,N):t[N]=V}}}function kh(n,e){let t=null,r=0;for(;r<e.length;){const s=e[r];if(0!==s)if(5!==s){if("number"==typeof s)break;n.hasOwnProperty(s)&&(null===t&&(t=[]),t.push(s,n[s],e[r+1])),r+=2}else r+=2;else r+=4}return t}function rI(n,e){const t=Ui(e,n);if(xg(t)){const r=t[1];80&t[2]?Bc(r,t,r.template,t[8]):t[5]>0&&lb(t)}}function lb(n){for(let r=Yg(n);null!==r;r=Gs(r))for(let s=10;s<r.length;s++){const c=r[s];if(1024&c[2]){const h=c[1];Bc(h,c,h.template,c[8])}else c[5]>0&&lb(c)}const t=n[1].components;if(null!==t)for(let r=0;r<t.length;r++){const s=Ui(t[r],n);xg(s)&&s[5]>0&&lb(s)}}function tt(n,e){const t=Ui(e,n),r=t[1];(function iI(n,e){for(let t=e.length;t<n.blueprint.length;t++)e.push(n.blueprint[t])})(r,t),Cd(r,t,t[8])}function kd(n,e){return n[13]?n[14][4]=e:n[13]=e,n[14]=e,e}function db(n,e,t){const r=e[10];r.begin&&r.begin();try{Bc(n,e,n.template,t)}catch(s){throw function Wa(n,e){const t=n[9],r=t?t.get(bd,null):null;r&&r.handleError(e)}(e,s),s}finally{r.end&&r.end()}}function JS(n){!function Ad(n){for(let e=0;e<n.components.length;e++){const t=n.components[e],r=Wg(t),s=r[1];zS(s,r,s.template,t)}}(n[8])}function fb(n,e,t){Qu(0),e(n,t)}const eE=(()=>Promise.resolve(null))();function mm(n,e,t){let r=t?n.styles:null,s=t?n.classes:null,c=0;if(null!==e)for(let h=0;h<e.length;h++){const m=e[h];"number"==typeof m?c=m:1==c?s=jv(s,m):2==c&&(r=jv(r,m+": "+e[++h]+";"))}t?n.styles=r:n.stylesWithoutHost=r,t?n.classes=s:n.classesWithoutHost=s}const gb=new Ot("INJECTOR",-1);class iE{get(e,t=sh){if(t===sh){const r=new Error(`NullInjectorError: No provider for ${Ln(e)}!`);throw r.name="NullInjectorError",r}return t}}const mb=new Ot("Set Injector scope."),Rh={},oE={};let yb;function sE(){return void 0===yb&&(yb=new iE),yb}function aE(n,e=null,t=null,r){const s=lE(n,e,t,r);return s._resolveInjectorDefTypes(),s}function lE(n,e=null,t=null,r){return new vb(n,t,e||sE(),r)}class vb{constructor(e,t,r,s=null){this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const c=[];t&&os(t,m=>this.processProvider(m,e,t)),os([e],m=>this.processInjectorType(m,[],c)),this.records.set(gb,Rd(void 0,this));const h=this.records.get(mb);this.scope=null!=h?h.value:null,this.source=s||("object"==typeof e?null:Ln(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=sh,r=Ye.Default){this.assertNotDestroyed();const s=ir(this),c=Ma(void 0);try{if(!(r&Ye.SkipSelf)){let m=this.records.get(e);if(void 0===m){const w=function dI(n){return"function"==typeof n||"object"==typeof n&&n instanceof Ot}(e)&&Bv(e);m=w&&this.injectableDefInScope(w)?Rd(bb(e),Rh):null,this.records.set(e,m)}if(null!=m)return this.hydrate(e,m)}return(r&Ye.Self?sE():this.parent).get(e,t=r&Ye.Optional&&t===sh?null:t)}catch(h){if("NullInjectorError"===h.name){if((h[Hg]=h[Hg]||[]).unshift(Ln(e)),s)throw h;return function lh(n,e,t,r){const s=n[Hg];throw e[B_]&&s.unshift(e[B_]),n.message=function KA(n,e,t,r=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let s=Ln(e);if(Array.isArray(e))s=e.map(Ln).join(" -> ");else if("object"==typeof e){let c=[];for(let h in e)if(e.hasOwnProperty(h)){let m=e[h];c.push(h+":"+("string"==typeof m?JSON.stringify(m):Ln(m)))}s=`{${c.join(", ")}}`}return`${t}${r?"("+r+")":""}[${s}]: ${n.replace(GA,"\n ")}`}("\n"+n.message,s,t,r),n.ngTokenPath=s,n[Hg]=null,n}(h,e,"R3InjectorError",this.source)}throw h}finally{Ma(c),ir(s)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((r,s)=>e.push(Ln(s))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ot(205,!1)}processInjectorType(e,t,r){if(!(e=Tt(e)))return!1;let s=gc(e);const c=null==s&&e.ngModule||void 0,h=void 0===c?e:c,m=-1!==r.indexOf(h);if(void 0!==c&&(s=gc(c)),null==s)return!1;if(null!=s.imports&&!m){let N;r.push(h);try{os(s.imports,V=>{this.processInjectorType(V,t,r)&&(void 0===N&&(N=[]),N.push(V))})}finally{}if(void 0!==N)for(let V=0;V<N.length;V++){const{ngModule:W,providers:ee}=N[V];os(ee,ue=>this.processProvider(ue,W,ee||In))}}this.injectorDefTypes.add(h);const w=_c(h)||(()=>new h);this.records.set(h,Rd(w,Rh));const k=s.providers;if(null!=k&&!m){const N=e;os(k,V=>this.processProvider(V,N,k))}return void 0!==c&&void 0!==e.providers}processProvider(e,t,r){let s=zc(e=Tt(e))?e:Tt(e&&e.provide);const c=function lI(n,e,t){return wb(n)?Rd(void 0,n.useValue):Rd(function uE(n,e,t){let r;if(zc(n)){const s=Tt(n);return _c(s)||bb(s)}if(wb(n))r=()=>Tt(n.useValue);else if(function xb(n){return!(!n||!n.useFactory)}(n))r=()=>n.useFactory(...v0(n.deps||[]));else if(function cI(n){return!(!n||!n.useExisting)}(n))r=()=>Pe(Tt(n.useExisting));else{const s=Tt(n&&(n.useClass||n.provide));if(!function Ih(n){return!!n.deps}(n))return _c(s)||bb(s);r=()=>new s(...v0(n.deps))}return r}(n),Rh)}(e);if(zc(e)||!0!==e.multi)this.records.get(s);else{let h=this.records.get(s);h||(h=Rd(void 0,Rh,!0),h.factory=()=>v0(h.multi),this.records.set(s,h)),s=e,h.multi.push(e)}this.records.set(s,c)}hydrate(e,t){return t.value===Rh&&(t.value=oE,t.value=t.factory()),"object"==typeof t.value&&t.value&&function uI(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(t.value)&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){if(!e.providedIn)return!1;const t=Tt(e.providedIn);return"string"==typeof t?"any"===t||t===this.scope:this.injectorDefTypes.has(t)}}function bb(n){const e=Bv(n),t=null!==e?e.factory:_c(n);if(null!==t)return t;if(n instanceof Ot)throw new ot(204,!1);if(n instanceof Function)return function cE(n){const e=n.length;if(e>0)throw function Na(n,e){const t=[];for(let r=0;r<n;r++)t.push(e);return t}(e,"?"),new ot(204,!1);const t=function zu(n){const e=n&&(n[fe]||n[cg]);if(e){const t=function fA(n){if(n.hasOwnProperty("name"))return n.name;const e=(""+n).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${t}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${t}" class.`),e}return null}(n);return null!==t?()=>t.factory(n):()=>new n}(n);throw new ot(204,!1)}function Rd(n,e,t=!1){return{factory:n,value:e,multi:t?[]:void 0}}function wb(n){return null!==n&&"object"==typeof n&&WA in n}function zc(n){return"function"==typeof n}let Yi=(()=>{class n{static create(t,r){var s;if(Array.isArray(t))return aE({name:""},r,t,"");{const c=null!==(s=t.name)&&void 0!==s?s:"";return aE({name:c},t.parent,t.providers,c)}}}return n.THROW_IF_NOT_FOUND=sh,n.NULL=new iE,n.\u0275prov=Qe({token:n,providedIn:"any",factory:()=>Pe(gb)}),n.__NG_ELEMENT_ID__=-1,n})();function bI(n,e){yi(Wg(n)[1],Nr())}function jt(n){let e=function wE(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),t=!0;const r=[n];for(;e;){let s;if(ns(n))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new ot(903,"");s=e.\u0275dir}if(s){if(t){r.push(s);const h=n;h.inputs=Ab(n.inputs),h.declaredInputs=Ab(n.declaredInputs),h.outputs=Ab(n.outputs);const m=s.hostBindings;m&&SE(n,m);const w=s.viewQuery,k=s.contentQueries;if(w&&xI(n,w),k&&_E(n,k),Nv(n.inputs,s.inputs),Nv(n.declaredInputs,s.declaredInputs),Nv(n.outputs,s.outputs),ns(s)&&s.data.animation){const N=n.data;N.animation=(N.animation||[]).concat(s.data.animation)}}const c=s.features;if(c)for(let h=0;h<c.length;h++){const m=c[h];m&&m.ngInherit&&m(n),m===jt&&(t=!1)}}e=Object.getPrototypeOf(e)}!function xE(n){let e=0,t=null;for(let r=n.length-1;r>=0;r--){const s=n[r];s.hostVars=e+=s.hostVars,s.hostAttrs=Mg(s.hostAttrs,t=Mg(t,s.hostAttrs))}}(r)}function Ab(n){return n===vl?{}:n===In?[]:n}function xI(n,e){const t=n.viewQuery;n.viewQuery=t?(r,s)=>{e(r,s),t(r,s)}:e}function _E(n,e){const t=n.contentQueries;n.contentQueries=t?(r,s,c)=>{e(r,s,c),t(r,s,c)}:e}function SE(n,e){const t=n.hostBindings;n.hostBindings=t?(r,s)=>{e(r,s),t(r,s)}:e}let vm=null;function Id(){if(!vm){const n=kt.Symbol;if(n&&n.iterator)vm=n.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const r=e[t];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(vm=r)}}}return vm}function be(n,e=Ye.Default){const t=Fe();return null===t?Pe(n,e):R_(Nr(),t,Tt(n),e)}function zb(n,e,t,r,s){const h=s?"class":"style";!function rE(n,e,t,r,s){for(let c=0;c<t.length;){const h=t[c++],m=t[c++],w=e[h],k=n.data[h];null!==k.setInput?k.setInput(w,s,r,m):w[m]=s}}(n,t,e.inputs[h],h,r)}function Em(n,e,t,r){const s=Fe(),c=fn(),h=20+n,m=s[11],w=s[h]=dh(m,e,function Rg(){return Dt.lFrame.currentNamespace}()),k=c.firstCreatePass?function LI(n,e,t,r,s,c,h){const m=e.consts,k=Ed(e,n,2,s,dn(m,c));return function ab(n,e,t,r){let s=!1;if(_g()){const c=function WS(n,e,t){const r=n.directiveRegistry;let s=null;if(r)for(let c=0;c<r.length;c++){const h=r[c];_S(t,h.selectors,!1)&&(s||(s=[]),Ng(td(t,e),n,h.type),ns(h)?(KS(n,t),s.unshift(h)):s.push(h))}return s}(n,e,t),h=null===r?null:{"":-1};if(null!==c){s=!0,QS(t,n.data.length,c.length);for(let N=0;N<c.length;N++){const V=c[N];V.providersResolver&&V.providersResolver(V)}let m=!1,w=!1,k=jc(n,e,c.length,null);for(let N=0;N<c.length;N++){const V=c[N];t.mergedAttrs=Mg(t.mergedAttrs,V.hostAttrs),YS(n,t,e,k,V),Dh(k,V,h),null!==V.contentQueries&&(t.flags|=8),(null!==V.hostBindings||null!==V.hostAttrs||0!==V.hostVars)&&(t.flags|=128);const W=V.type.prototype;!m&&(W.ngOnChanges||W.ngOnInit||W.ngDoCheck)&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t.index),m=!0),!w&&(W.ngOnChanges||W.ngDoCheck)&&((n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t.index),w=!0),k++}!function WR(n,e){const r=e.directiveEnd,s=n.data,c=e.attrs,h=[];let m=null,w=null;for(let k=e.directiveStart;k<r;k++){const N=s[k],V=N.inputs,W=null===c||wS(e)?null:kh(V,c);h.push(W),m=VS(V,k,m),w=VS(N.outputs,k,w)}null!==m&&(m.hasOwnProperty("class")&&(e.flags|=16),m.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=h,e.inputs=m,e.outputs=w}(n,t)}h&&function eI(n,e,t){if(e){const r=n.localNames=[];for(let s=0;s<e.length;s+=2){const c=t[e[s+1]];if(null==c)throw new ot(-301,!1);r.push(e[s],c)}}}(t,r,h)}return t.mergedAttrs=Mg(t.mergedAttrs,t.attrs),s}(e,t,k,dn(m,h)),null!==k.attrs&&mm(k,k.attrs,!1),null!==k.mergedAttrs&&mm(k,k.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,k),k}(h,c,s,0,e,t,r):c.data[h];Ze(k,!0);const N=k.mergedAttrs;null!==N&&Cc(m,w,N);const V=k.classes;null!==V&&Nt(m,w,V);const W=k.styles;return null!==W&&gd(m,w,W),64!=(64&k.flags)&&Va(c,s,w,k),0===function EA(){return Dt.lFrame.elementDepthCount}()&&ii(w,s),function CA(){Dt.lFrame.elementDepthCount++}(),function mg(n){return 1==(1&n.flags)}(k)&&(function nb(n,e,t){!_g()||(function XR(n,e,t,r){const s=t.directiveStart,c=t.directiveEnd;n.firstCreatePass||td(t,e),ii(r,e);const h=t.initialInputs;for(let m=s;m<c;m++){const w=n.data[m],k=ns(w);k&&tI(e,t,w);const N=Zf(e,n,m,t);ii(N,e),null!==h&&nI(0,m-s,N,w,0,h),k&&(Ui(t.index,e)[8]=N)}}(n,e,t,Gi(t,e)),128==(128&t.flags)&&function JR(n,e,t){const r=t.directiveStart,s=t.directiveEnd,h=t.index,m=function v_(){return Dt.lFrame.currentDirectiveIndex}();try{Al(h);for(let w=r;w<s;w++){const k=n.data[w],N=e[w];nr(w),(null!==k.hostBindings||0!==k.hostVars||null!==k.hostAttrs)&&US(k,N)}}finally{Al(-1),nr(m)}}(n,e,t))}(c,s,k),function Ch(n,e,t){if(Uf(e)){const s=e.directiveEnd;for(let c=e.directiveStart;c<s;c++){const h=n.data[c];h.contentQueries&&h.contentQueries(1,t[c],c)}}}(c,k,s)),null!==r&&function rb(n,e,t=Gi){const r=e.localNames;if(null!==r){let s=e.index+1;for(let c=0;c<r.length;c+=2){const h=r[c+1],m=-1===h?t(e,n):n[h];n[s++]=m}}}(s,k),Em}function Cm(){let n=Nr();r0()?function Ku(){Dt.lFrame.isParent=!1}():(n=n.parent,Ze(n,!1));const e=n;!function DA(){Dt.lFrame.elementDepthCount--}();const t=fn();return t.firstCreatePass&&(yi(t,n),Uf(n)&&t.queries.elementEnd(n)),null!=e.classesWithoutHost&&function Yf(n){return 0!=(16&n.flags)}(e)&&zb(t,e,Fe(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function OA(n){return 0!=(32&n.flags)}(e)&&zb(t,e,Fe(),e.stylesWithoutHost,!1),Cm}function Kt(n,e,t,r){return Em(n,e,t,r),Cm(),Kt}function Fd(n){return!!n&&"function"==typeof n.then}const PI=function Nd(n){return!!n&&"function"==typeof n.subscribe},Vh="en-US";let u1=Vh;class nD{}class DM{resolveComponentFactory(e){throw function CM(n){const e=Error(`No component factory found for ${Ln(n)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=n,e}(e)}}let tu=(()=>{class n{}return n.NULL=new DM,n})();function kM(){return Oi(Nr(),Fe())}function Oi(n,e){return new xn(Gi(n,e))}let xn=(()=>{class n{constructor(t){this.nativeElement=t}}return n.__NG_ELEMENT_ID__=kM,n})();function ia(n){return n instanceof xn?n.nativeElement:n}class nu{}let sD=(()=>{class n{}return n.\u0275prov=Qe({token:n,providedIn:"root",factory:()=>null}),n})();class ep{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const AM=new ep("13.4.0"),R1={};function Gm(n,e,t,r,s=!1){for(;null!==t;){const c=e[t.index];if(null!==c&&r.push(Fr(c)),co(c))for(let m=10;m<c.length;m++){const w=c[m],k=w[1].firstChild;null!==k&&Gm(w[1],w,k,r)}const h=t.type;if(8&h)Gm(n,e,t.child,r);else if(32&h){const m=Kg(t,e);let w;for(;w=m();)r.push(w)}else if(16&h){const m=$a(e,t);if(Array.isArray(m))r.push(...m);else{const w=dd(e[16]);Gm(w[1],w,m,r,!0)}}t=s?t.projectionNext:t.next}return r}class tp{constructor(e,t){this._lView=e,this._cdRefInjectingView=t,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const e=this._lView,t=e[1];return Gm(t,e,t.firstChild,[])}get context(){return this._lView[8]}set context(e){this._lView[8]=e}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[3];if(co(e)){const t=e[8],r=t?t.indexOf(this):-1;r>-1&&(hh(e,r),Fa(t,r))}this._attachedToViewContainer=!1}vo(this._lView[1],this._lView)}onDestroy(e){ob(this._lView[1],this._lView,null,e)}markForCheck(){!function cb(n){for(;n;){n[2]|=64;const e=dd(n);if(o_(n)&&!e)return n;n=e}return null}(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){db(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ot(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function fh(n,e){pd(n,e,e[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new ot(902,"");this._appRef=e}}class np extends tp{constructor(e){super(e),this._view=e}detectChanges(){JS(this._view)}checkNoChanges(){}get context(){return null}}class aD extends tu{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=Cr(e);return new I1(t,this.ngModule)}}function lD(n){const e=[];for(let t in n)n.hasOwnProperty(t)&&e.push({propName:n[t],templateName:t});return e}class I1 extends nD{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=function DS(n){return n.map(LR).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return lD(this.componentDef.inputs)}get outputs(){return lD(this.componentDef.outputs)}create(e,t,r,s){const c=(s=s||this.ngModule)?function IM(n,e){return{get:(t,r,s)=>{const c=n.get(t,R1,s);return c!==R1||r===R1?c:e.get(t,r,s)}}}(e,s.injector):e,h=c.get(nu,e0),m=c.get(sD,null),w=h.createRenderer(null,this.componentDef),k=this.componentDef.selectors[0][0]||"div",N=r?function ib(n,e,t){if(fr(n))return n.selectRootElement(e,t===Po.ShadowDom);let r="string"==typeof e?n.querySelector(e):e;return r.textContent="",r}(w,r,this.componentDef.encapsulation):dh(h.createRenderer(null,this.componentDef),k,function RM(n){const e=n.toLowerCase();return"svg"===e?"svg":"math"===e?"math":null}(k)),V=this.componentDef.onPush?576:528,W=function bE(n,e){return{components:[],scheduler:n||kR,clean:eE,playerHandler:e||null,flags:0}}(),ee=dm(0,null,null,1,0,null,null,null,null,null),ue=Sh(null,ee,W,V,null,null,h,w,m,c);let me,Ce;Eg(ue);try{const Oe=function yE(n,e,t,r,s,c){const h=t[1];t[20]=n;const w=Ed(h,20,2,"#host",null),k=w.mergedAttrs=e.hostAttrs;null!==k&&(mm(w,k,!0),null!==n&&(Cc(s,n,k),null!==w.classes&&Nt(s,n,w.classes),null!==w.styles&&gd(s,n,w.styles)));const N=r.createRenderer(n,e),V=Sh(t,qS(e),null,e.onPush?64:16,t[20],w,r,N,c||null,null);return h.firstCreatePass&&(Ng(td(w,t),h,e.type),KS(h,w),QS(w,t.length,1)),kd(t,V),t[20]=V}(N,this.componentDef,ue,h,w);if(N)if(r)Cc(w,N,["ng-version",AM.full]);else{const{attrs:xe,classes:Ue}=function PR(n){const e=[],t=[];let r=1,s=2;for(;r<n.length;){let c=n[r];if("string"==typeof c)2===s?""!==c&&e.push(c,n[++r]):8===s&&t.push(c);else{if(!zo(s))break;s=c}r++}return{attrs:e,classes:t}}(this.componentDef.selectors[0]);xe&&Cc(w,N,xe),Ue&&Ue.length>0&&Nt(w,N,Ue.join(" "))}if(Ce=function Kf(n,e){return n.data[e]}(ee,20),void 0!==t){const xe=Ce.projection=[];for(let Ue=0;Ue<this.ngContentSelectors.length;Ue++){const vt=t[Ue];xe.push(null!=vt?Array.from(vt):null)}}me=function vE(n,e,t,r,s){const c=t[1],h=function ZR(n,e,t){const r=Nr();n.firstCreatePass&&(t.providersResolver&&t.providersResolver(t),YS(n,r,e,jc(n,e,1,null),t));const s=Zf(e,n,r.directiveStart,r);ii(s,e);const c=Gi(r,e);return c&&ii(c,e),s}(c,t,e);if(r.components.push(h),n[8]=h,s&&s.forEach(w=>w(h,e)),e.contentQueries){const w=Nr();e.contentQueries(1,h,w.directiveStart)}const m=Nr();return!c.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(Al(m.index),HS(t[1],m,0,m.directiveStart,m.directiveEnd,e),US(e,h)),h}(Oe,this.componentDef,ue,W,[bI]),Cd(ee,ue,null)}finally{Cg()}return new TM(this.componentType,me,Oi(Ce,ue),ue,Ce)}}class TM extends class tD{}{constructor(e,t,r,s,c){super(),this.location=r,this._rootLView=s,this._tNode=c,this.instance=t,this.hostView=this.changeDetectorRef=new np(s),this.componentType=e}get injector(){return new nd(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}class Qd{}const Yd=new Map;class uD extends Qd{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new aD(this);const r=Hi(e);this._bootstrapComponents=Bo(r.bootstrap),this._r3Injector=lE(e,t,[{provide:Qd,useValue:this},{provide:tu,useValue:this.componentFactoryResolver}],Ln(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=Yi.THROW_IF_NOT_FOUND,r=Ye.Default){return e===Yi||e===Qd||e===gb?this:this._r3Injector.get(e,t,r)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class T1 extends class LM{}{constructor(e){super(),this.moduleType=e,null!==Hi(e)&&function PM(n){const e=new Set;!function t(r){const s=Hi(r,!0),c=s.id;null!==c&&(function M1(n,e,t){if(e&&e!==t)throw new Error(`Duplicate module registered for ${n} - ${Ln(e)} vs ${Ln(e.name)}`)}(c,Yd.get(c),r),Yd.set(c,r));const h=Bo(s.imports);for(const m of h)e.has(m)||(e.add(m),t(m))}(n)}(e)}create(e){return new uD(this.moduleType,e)}}function $l(n){return e=>{setTimeout(n,void 0,e)}}const Li=class Jd extends Zr{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,r){var s,c,h;let m=e,w=t||(()=>null),k=r;if(e&&"object"==typeof e){const V=e;m=null===(s=V.next)||void 0===s?void 0:s.bind(V),w=null===(c=V.error)||void 0===c?void 0:c.bind(V),k=null===(h=V.complete)||void 0===h?void 0:h.bind(V)}this.__isAsync&&(w=$l(w),m&&(m=$l(m)),k&&(k=$l(k)));const N=super.subscribe({next:m,error:w,complete:k});return e instanceof Cn&&e.add(N),N}};function pr(){return this._results[Id()]()}class ip{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=Id(),r=ip.prototype;r[t]||(r[t]=pr)}get changes(){return this._changes||(this._changes=new Li)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){const r=this;r.dirty=!1;const s=mo(e);(this._changesDetected=!function p0(n,e,t){if(n.length!==e.length)return!1;for(let r=0;r<n.length;r++){let s=n[r],c=e[r];if(t&&(s=t(s),c=t(c)),c!==s)return!1}return!0}(r._results,s,t))&&(r._results=s,r.length=s.length,r.last=s[this.length-1],r.first=s[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let oa=(()=>{class n{}return n.__NG_ELEMENT_ID__=op,n})();const HM=oa,GM=class extends HM{constructor(e,t,r){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=r}createEmbeddedView(e){const t=this._declarationTContainer.tViews,r=Sh(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);r[17]=this._declarationLView[this._declarationTContainer.index];const c=this._declarationLView[19];return null!==c&&(r[19]=c.createEmbeddedView(t)),Cd(t,r,e),new tp(r)}};function op(){return Wm(Nr(),Fe())}function Wm(n,e){return 4&n.type?new GM(e,n,Oi(n,e)):null}let $o=(()=>{class n{}return n.__NG_ELEMENT_ID__=UM,n})();function UM(){return ru(Nr(),Fe())}const WM=$o,xD=class extends WM{constructor(e,t,r){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=r}get element(){return Oi(this._hostTNode,this._hostLView)}get injector(){return new nd(this._hostTNode,this._hostLView)}get parentInjector(){const e=Fg(this._hostTNode,this._hostLView);if(D_(e)){const t=kc(e,this._hostLView),r=Dc(e);return new nd(t[1].data[r+8],t)}return new nd(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=_D(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,r){const s=e.createEmbeddedView(t||{});return this.insert(s,r),s}createComponent(e,t,r,s,c){const h=e&&!function ih(n){return"function"==typeof n}(e);let m;if(h)m=t;else{const V=t||{};m=V.index,r=V.injector,s=V.projectableNodes,c=V.ngModuleRef}const w=h?e:new I1(Cr(e)),k=r||this.parentInjector;if(!c&&null==w.ngModule){const W=(h?k:this.parentInjector).get(Qd,null);W&&(c=W)}const N=w.create(k,s,void 0,c);return this.insert(N.hostView,m),N}insert(e,t){const r=e._lView,s=r[1];if(function SA(n){return co(n[3])}(r)){const N=this.indexOf(e);if(-1!==N)this.detach(N);else{const V=r[3],W=new xD(V,V[6],V[3]);W.detach(W.indexOf(e))}}const c=this._adjustIndex(t),h=this._lContainer;!function Oc(n,e,t,r){const s=10+r,c=t.length;r>0&&(t[s-1][4]=e),r<c-10?(e[4]=t[s],Mn(t,10+r,e)):(t.push(e),e[4]=null),e[3]=t;const h=e[17];null!==h&&t!==h&&function sR(n,e){const t=n[9];e[16]!==e[3][3][16]&&(n[2]=!0),null===t?n[9]=[e]:t.push(e)}(h,e);const m=e[19];null!==m&&m.insertView(n),e[2]|=128}(s,r,h,c);const m=T0(c,h),w=r[11],k=Zg(w,h[7]);return null!==k&&function hd(n,e,t,r,s,c){r[0]=s,r[6]=e,pd(n,r,t,1,s,c)}(s,h[6],w,r,k,m),e.attachToViewContainerRef(),Mn(sp(h),c,e),e}move(e,t){return this.insert(e,t)}indexOf(e){const t=_D(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),r=hh(this._lContainer,t);r&&(Fa(sp(this._lContainer),t),vo(r[1],r))}detach(e){const t=this._adjustIndex(e,-1),r=hh(this._lContainer,t);return r&&null!=Fa(sp(this._lContainer),t)?new tp(r):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}};function _D(n){return n[8]}function sp(n){return n[8]||(n[8]=[])}function ru(n,e){let t;const r=e[n.index];if(co(r))t=r;else{let s;if(8&n.type)s=Fr(r);else{const c=e[11];s=c.createComment("");const h=Gi(n,e);Ks(c,Zg(c,h),s,function lR(n,e){return fr(n)?n.nextSibling(e):e.nextSibling}(c,h),!1)}e[n.index]=t=function ZS(n,e,t,r){return new Array(n,!0,!1,e,null,0,r,t,null,null)}(r,e,s,n),kd(e,t)}return new xD(t,n,e)}class P1{constructor(e){this.queryList=e,this.matches=null}clone(){return new P1(this.queryList)}setDirty(){this.queryList.setDirty()}}class F1{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const r=null!==e.contentQueries?e.contentQueries[0]:t.length,s=[];for(let c=0;c<r;c++){const h=t.getByIndex(c);s.push(this.queries[h.indexInDeclarationView].clone())}return new F1(s)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let t=0;t<this.queries.length;t++)null!==DD(e,t).matches&&this.queries[t].setDirty()}}class ap{constructor(e,t,r=null){this.predicate=e,this.flags=t,this.read=r}}class N1{constructor(e=[]){this.queries=e}elementStart(e,t){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(e,t)}elementEnd(e){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}embeddedTView(e){let t=null;for(let r=0;r<this.length;r++){const s=null!==t?t.length:0,c=this.getByIndex(r).embeddedTView(e,s);c&&(c.indexInDeclarationView=r,null!==t?t.push(c):t=[c])}return null!==t?new N1(t):null}template(e,t){for(let r=0;r<this.queries.length;r++)this.queries[r].template(e,t)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class j1{constructor(e,t=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}elementStart(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,t){this.elementStart(e,t)}embeddedTView(e,t){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,t),new j1(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const t=this._declarationNodeIndex;let r=e.parent;for(;null!==r&&8&r.type&&r.index!==t;)r=r.parent;return t===(null!==r?r.index:-1)}return this._appliesToNextNode}matchTNode(e,t){const r=this.metadata.predicate;if(Array.isArray(r))for(let s=0;s<r.length;s++){const c=r[s];this.matchTNodeWithReadOption(e,t,ZM(t,c)),this.matchTNodeWithReadOption(e,t,Ac(t,e,c,!1,!1))}else r===oa?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,Ac(t,e,r,!1,!1))}matchTNodeWithReadOption(e,t,r){if(null!==r){const s=this.metadata.read;if(null!==s)if(s===xn||s===$o||s===oa&&4&t.type)this.addMatch(t.index,-2);else{const c=Ac(t,e,s,!1,!1);null!==c&&this.addMatch(t.index,c)}else this.addMatch(t.index,r)}}addMatch(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}function ZM(n,e){const t=n.localNames;if(null!==t)for(let r=0;r<t.length;r+=2)if(t[r]===e)return t[r+1];return null}function JM(n,e,t,r){return-1===t?function XM(n,e){return 11&n.type?Oi(n,e):4&n.type?Wm(n,e):null}(e,n):-2===t?function SD(n,e,t){return t===xn?Oi(e,n):t===oa?Wm(e,n):t===$o?ru(e,n):void 0}(n,e,r):Zf(n,n[1],t,e)}function lp(n,e,t,r){const s=e[19].queries[r];if(null===s.matches){const c=n.data,h=t.matches,m=[];for(let w=0;w<h.length;w+=2){const k=h[w];m.push(k<0?null:JM(e,c[k],h[w+1],t.metadata.read))}s.matches=m}return s.matches}function B1(n,e,t,r){const s=n.queries.getByIndex(t),c=s.matches;if(null!==c){const h=lp(n,e,s,t);for(let m=0;m<c.length;m+=2){const w=c[m];if(w>0)r.push(h[m/2]);else{const k=c[m+1],N=e[-w];for(let V=10;V<N.length;V++){const W=N[V];W[17]===W[3]&&B1(W[1],W,k,r)}if(null!==N[9]){const V=N[9];for(let W=0;W<V.length;W++){const ee=V[W];B1(ee[1],ee,k,r)}}}}}return r}function z1(n){const e=Fe(),t=fn(),r=l0();Qu(r+1);const s=DD(t,r);if(n.dirty&&wg(e)===(2==(2&s.metadata.flags))){if(null===s.matches)n.reset([]);else{const c=s.crossesNgTemplate?B1(t,e,r,[]):lp(t,e,s,r);n.reset(c,ia),n.notifyOnChanges()}return!0}return!1}function q1(n,e,t){const r=fn();r.firstCreatePass&&(function CD(n,e,t){null===n.queries&&(n.queries=new N1),n.queries.track(new j1(e,t))}(r,new ap(n,e,t),-1),2==(2&e)&&(r.staticViewQueries=!0)),function ED(n,e,t){const r=new ip(4==(4&t));ob(n,e,r,r.destroy),null===e[19]&&(e[19]=new F1),e[19].queries.push(new P1(r))}(r,Fe(),e)}function Km(){return function t5(n,e){return n[19].queries[e].queryList}(Fe(),l0())}function DD(n,e){return n.queries.getByIndex(e)}function Hl(...n){}const Q1=new Ot("Application Initializer");let Y1=(()=>{class n{constructor(t){this.appInits=t,this.resolve=Hl,this.reject=Hl,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,s)=>{this.resolve=r,this.reject=s})}runInitializers(){if(this.initialized)return;const t=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let s=0;s<this.appInits.length;s++){const c=this.appInits[s]();if(Fd(c))t.push(c);else if(PI(c)){const h=new Promise((m,w)=>{c.subscribe({complete:m,error:w})});t.push(h)}}Promise.all(t).then(()=>{r()}).catch(s=>{this.reject(s)}),0===t.length&&r(),this.initialized=!0}}return n.\u0275fac=function(t){return new(t||n)(Pe(Q1,8))},n.\u0275prov=Qe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const up=new Ot("AppId",{providedIn:"root",factory:function FD(){return`${ey()}${ey()}${ey()}`}});function ey(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Z1=new Ot("Platform Initializer"),ws=new Ot("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),ty=new Ot("appBootstrapListener"),Gl=new Ot("LocaleId",{providedIn:"root",factory:()=>Gg(Gl,Ye.Optional|Ye.SkipSelf)||function X1(){return"undefined"!=typeof $localize&&$localize.locale||Vh}()}),zD=(()=>Promise.resolve(0))();function ny(n){"undefined"==typeof Zone?zD.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class Kn{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Li(!1),this.onMicrotaskEmpty=new Li(!1),this.onStable=new Li(!1),this.onError=new Li(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!r&&t,s.shouldCoalesceRunChangeDetection=r,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=function qD(){let n=kt.requestAnimationFrame,e=kt.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&e){const t=n[Zone.__symbol__("OriginalDelegate")];t&&(n=t);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function HD(n){const e=()=>{!function $D(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(kt,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,iy(n),n.isCheckStableRunning=!0,ry(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),iy(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,r,s,c,h,m)=>{try{return oy(n),t.invokeTask(s,c,h,m)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===c.type||n.shouldCoalesceRunChangeDetection)&&e(),J1(n)}},onInvoke:(t,r,s,c,h,m,w)=>{try{return oy(n),t.invoke(s,c,h,m,w)}finally{n.shouldCoalesceRunChangeDetection&&e(),J1(n)}},onHasTask:(t,r,s,c)=>{t.hasTask(s,c),r===s&&("microTask"==c.change?(n._hasPendingMicrotasks=c.microTask,iy(n),ry(n)):"macroTask"==c.change&&(n.hasPendingMacrotasks=c.macroTask))},onHandleError:(t,r,s,c)=>(t.handleError(s,c),n.runOutsideAngular(()=>n.onError.emit(c)),!1)})}(s)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Kn.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Kn.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,r){return this._inner.run(e,t,r)}runTask(e,t,r,s){const c=this._inner,h=c.scheduleEventTask("NgZoneEvent: "+s,e,VD,Hl,Hl);try{return c.runTask(h,t,r)}finally{c.cancelTask(h)}}runGuarded(e,t,r){return this._inner.runGuarded(e,t,r)}runOutsideAngular(e){return this._outer.run(e)}}const VD={};function ry(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function iy(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function oy(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function J1(n){n._nesting--,ry(n)}class GD{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Li,this.onMicrotaskEmpty=new Li,this.onStable=new Li,this.onError=new Li}run(e,t,r){return e.apply(t,r)}runGuarded(e,t,r){return e.apply(t,r)}runOutsideAngular(e){return e()}runTask(e,t,r,s){return e.apply(t,r)}}let sy=(()=>{class n{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Kn.assertNotInAngularZone(),ny(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())ny(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(t)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,r,s){let c=-1;r&&r>0&&(c=setTimeout(()=>{this._callbacks=this._callbacks.filter(h=>h.timeoutId!==c),t(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:t,timeoutId:c,updateCb:s})}whenStable(t,r,s){if(s&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,r,s),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,r,s){return[]}}return n.\u0275fac=function(t){return new(t||n)(Pe(Kn))},n.\u0275prov=Qe({token:n,factory:n.\u0275fac}),n})(),ew=(()=>{class n{constructor(){this._applications=new Map,ay.addToWindow(this)}registerApplication(t,r){this._applications.set(t,r)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,r=!0){return ay.findTestabilityInTree(this,t,r)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=Qe({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();class UD{addToWindow(e){}findTestabilityInTree(e,t,r){return null}}let ay=new UD,Za=null;const nw=new Ot("AllowMultipleToken"),ly=new Ot("PlatformOnDestroy");function cy(n,e,t=[]){const r=`Platform: ${e}`,s=new Ot(r);return(c=[])=>{let h=dp();if(!h||h.injector.get(nw,!1)){const m=[...t,...c,{provide:s,useValue:!0}];n?n(m):function ZD(n){if(Za&&!Za.get(nw,!1))throw new ot(400,"");Za=n;const e=n.get(iw),t=n.get(Z1,null);t&&t.forEach(r=>r())}(function rw(n=[],e){return Yi.create({name:e,providers:[{provide:mb,useValue:"platform"},{provide:ly,useValue:()=>Za=null},...n]})}(m,r))}return function XD(n){const e=dp();if(!e)throw new ot(401,"");return e}()}}function dp(){var n;return null!==(n=null==Za?void 0:Za.get(iw))&&void 0!==n?n:null}let iw=(()=>{class n{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,r){const m=function ow(n,e){let t;return t="noop"===n?new GD:("zone.js"===n?void 0:n)||new Kn({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),t}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),w=[{provide:Kn,useValue:m}];return m.run(()=>{const k=Yi.create({providers:w,parent:this.injector,name:t.moduleType.name}),N=t.create(k),V=N.injector.get(bd,null);if(!V)throw new ot(402,"");return m.runOutsideAngular(()=>{const W=m.onError.subscribe({next:ee=>{V.handleError(ee)}});N.onDestroy(()=>{hp(this._modules,N),W.unsubscribe()})}),function JD(n,e,t){try{const r=t();return Fd(r)?r.catch(s=>{throw e.runOutsideAngular(()=>n.handleError(s)),s}):r}catch(r){throw e.runOutsideAngular(()=>n.handleError(r)),r}}(V,m,()=>{const W=N.injector.get(Y1);return W.runInitializers(),W.donePromise.then(()=>(function TC(n){di(n,"Expected localeId to be defined"),"string"==typeof n&&(u1=n.toLowerCase().replace(/_/g,"-"))}(N.injector.get(Gl,Vh)||Vh),this._moduleDoBootstrap(N),N))})})}bootstrapModule(t,r=[]){const s=uy({},r);return function WD(n,e,t){const r=new T1(t);return Promise.resolve(r)}(0,0,t).then(c=>this.bootstrapModuleFactory(c,s))}_moduleDoBootstrap(t){const r=t.injector.get(fp);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(s=>r.bootstrap(s));else{if(!t.instance.ngDoBootstrap)throw new ot(403,"");t.instance.ngDoBootstrap(r)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ot(404,"");this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const t=this._injector.get(ly,null);null==t||t(),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(t){return new(t||n)(Pe(Yi))},n.\u0275prov=Qe({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function uy(n,e){return Array.isArray(e)?e.reduce(uy,n):Object.assign(Object.assign({},n),e)}let fp=(()=>{class n{constructor(t,r,s,c){this._zone=t,this._injector=r,this._exceptionHandler=s,this._initStatus=c,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const h=new z(w=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{w.next(this._stable),w.complete()})}),m=new z(w=>{let k;this._zone.runOutsideAngular(()=>{k=this._zone.onStable.subscribe(()=>{Kn.assertNotInAngularZone(),ny(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,w.next(!0))})})});const N=this._zone.onUnstable.subscribe(()=>{Kn.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{w.next(!1)}))});return()=>{k.unsubscribe(),N.unsubscribe()}});this.isStable=ju(h,m.pipe(function iA(){return n=>Lo()(function nA(n,e){return function(r){let s;if(s="function"==typeof n?n:function(){return n},"function"==typeof e)return r.lift(new rA(s,e));const c=Object.create(r,eA);return c.source=r,c.subjectFactory=s,c}}(pc)(n))}()))}bootstrap(t,r){if(!this._initStatus.done)throw new ot(405,"");let s;s=t instanceof nD?t:this._injector.get(tu).resolveComponentFactory(t),this.componentTypes.push(s.componentType);const c=function QD(n){return n.isBoundToModule}(s)?void 0:this._injector.get(Qd),m=s.create(Yi.NULL,[],r||s.selector,c),w=m.location.nativeElement,k=m.injector.get(sy,null),N=k&&m.injector.get(ew);return k&&N&&N.registerApplication(w,k),m.onDestroy(()=>{this.detachView(m.hostView),hp(this.components,m),N&&N.unregisterApplication(w)}),this._loadComponent(m),m}tick(){if(this._runningTick)throw new ot(101,"");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){const r=t;hp(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(ty,[]).concat(this._bootstrapListeners).forEach(s=>s(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(t){return new(t||n)(Pe(Kn),Pe(Yi),Pe(bd),Pe(Y1))},n.\u0275prov=Qe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function hp(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}let hy=!0,lf=(()=>{class n{}return n.__NG_ELEMENT_ID__=k5,n})();function k5(n){return function A5(n,e,t){if(gg(n)&&!t){const r=Ui(n.index,e);return new tp(r,r)}return 47&n.type?new tp(e[16],e):null}(Nr(),Fe(),16==(16&n))}const P=cy(null,"core",[]);let q=(()=>{class n{constructor(t){}}return n.\u0275fac=function(t){return new(t||n)(Pe(fp))},n.\u0275mod=Ri({type:n}),n.\u0275inj=Vi({}),n})(),he=null;function B(){return he}const te=new Ot("DocumentToken"),pw="browser";function Wl(n){return n===pw}function nl(n){return"server"===n}let Tw=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ri({type:n}),n.\u0275inj=Vi({}),n})();class mu extends class gu extends class re{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function Z(n){he||(he=n)}(new mu)}onAndCancel(e,t,r){return e.addEventListener(t,r,!1),()=>{e.removeEventListener(t,r,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getBaseHref(e){const t=function zy(){return va=va||document.querySelector("base"),va?va.getAttribute("href"):null}();return null==t?null:function yf(n){mf=mf||document.createElement("a"),mf.setAttribute("href",n);const e=mf.pathname;return"/"===e.charAt(0)?e:`/${e}`}(t)}resetBaseElement(){va=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function bp(n,e){e=encodeURIComponent(e);for(const t of n.split(";")){const r=t.indexOf("="),[s,c]=-1==r?[t,""]:[t.slice(0,r),t.slice(r+1)];if(s.trim()===e)return decodeURIComponent(c)}return null}(document.cookie,e)}}let mf,va=null;const rl=new Ot("TRANSITION_ID"),Yn=[{provide:Q1,useFactory:function lr(n,e,t){return()=>{t.get(Y1).donePromise.then(()=>{const r=B(),s=e.querySelectorAll(`style[ng-transition="${n}"]`);for(let c=0;c<s.length;c++)r.remove(s[c])})}},deps:[rl,te,Yi],multi:!0}];class ba{static init(){!function tw(n){ay=n}(new ba)}addToWindow(e){kt.getAngularTestability=(r,s=!0)=>{const c=e.findTestabilityInTree(r,s);if(null==c)throw new Error("Could not find testability for element.");return c},kt.getAllAngularTestabilities=()=>e.getAllTestabilities(),kt.getAllAngularRootElements=()=>e.getAllRootElements(),kt.frameworkStabilizers||(kt.frameworkStabilizers=[]),kt.frameworkStabilizers.push(r=>{const s=kt.getAllAngularTestabilities();let c=s.length,h=!1;const m=function(w){h=h||w,c--,0==c&&r(h)};s.forEach(function(w){w.whenStable(m)})})}findTestabilityInTree(e,t,r){if(null==t)return null;const s=e.getTestability(t);return null!=s?s:r?B().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}let wi=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=Qe({token:n,factory:n.\u0275fac}),n})();const li=new Ot("EventManagerPlugins");let wa=(()=>{class n{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(s=>s.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,r,s){return this._findPluginFor(r).addEventListener(t,r,s)}addGlobalEventListener(t,r,s){return this._findPluginFor(r).addGlobalEventListener(t,r,s)}getZone(){return this._zone}_findPluginFor(t){const r=this._eventNameToPlugin.get(t);if(r)return r;const s=this._plugins;for(let c=0;c<s.length;c++){const h=s[c];if(h.supports(t))return this._eventNameToPlugin.set(t,h),h}throw new Error(`No event manager plugin found for event ${t}`)}}return n.\u0275fac=function(t){return new(t||n)(Pe(li),Pe(Kn))},n.\u0275prov=Qe({token:n,factory:n.\u0275fac}),n})();class yu{constructor(e){this._doc=e}addGlobalEventListener(e,t,r){const s=B().getGlobalEventTarget(this._doc,e);if(!s)throw new Error(`Unsupported event target ${s} for event ${t}`);return this.addEventListener(s,t,r)}}let Ji=(()=>{class n{constructor(){this._stylesSet=new Set}addStyles(t){const r=new Set;t.forEach(s=>{this._stylesSet.has(s)||(this._stylesSet.add(s),r.add(s))}),this.onStylesAdded(r)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=Qe({token:n,factory:n.\u0275fac}),n})(),vu=(()=>{class n extends Ji{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,r,s){t.forEach(c=>{const h=this._doc.createElement("style");h.textContent=c,s.push(r.appendChild(h))})}addHost(t){const r=[];this._addStylesToHost(this._stylesSet,t,r),this._hostNodes.set(t,r)}removeHost(t){const r=this._hostNodes.get(t);r&&r.forEach(Lw),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((r,s)=>{this._addStylesToHost(t,s,r)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(Lw))}}return n.\u0275fac=function(t){return new(t||n)(Pe(te))},n.\u0275prov=Qe({token:n,factory:n.\u0275fac}),n})();function Lw(n){B().remove(n)}const qy={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},vf=/%COMP%/g;function il(n,e,t){for(let r=0;r<e.length;r++){let s=e[r];Array.isArray(s)?il(n,s,t):(s=s.replace(vf,n),t.push(s))}return t}function bu(n){return e=>{if("__ngUnwrap__"===e)return n;!1===n(e)&&(e.preventDefault(),e.returnValue=!1)}}let wu=(()=>{class n{constructor(t,r,s){this.eventManager=t,this.sharedStylesHost=r,this.appId=s,this.rendererByCompId=new Map,this.defaultRenderer=new eo(t)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;switch(r.encapsulation){case Po.Emulated:{let s=this.rendererByCompId.get(r.id);return s||(s=new _a(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,s)),s.applyToHost(t),s}case 1:case Po.ShadowDom:return new ol(this.eventManager,this.sharedStylesHost,t,r);default:if(!this.rendererByCompId.has(r.id)){const s=il(r.id,r.styles,[]);this.sharedStylesHost.addStyles(s),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(t){return new(t||n)(Pe(wa),Pe(vu),Pe(up))},n.\u0275prov=Qe({token:n,factory:n.\u0275fac}),n})();class eo{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,t){return t?document.createElementNS(qy[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,r){e&&e.insertBefore(t,r)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let r="string"==typeof e?document.querySelector(e):e;if(!r)throw new Error(`The selector "${e}" did not match any elements`);return t||(r.textContent=""),r}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,r,s){if(s){t=s+":"+t;const c=qy[s];c?e.setAttributeNS(c,t,r):e.setAttribute(t,r)}else e.setAttribute(t,r)}removeAttribute(e,t,r){if(r){const s=qy[r];s?e.removeAttributeNS(s,t):e.removeAttribute(`${r}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,r,s){s&(yo.DashCase|yo.Important)?e.style.setProperty(t,r,s&yo.Important?"important":""):e.style[t]=r}removeStyle(e,t,r){r&yo.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,r){e[t]=r}setValue(e,t){e.nodeValue=t}listen(e,t,r){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,bu(r)):this.eventManager.addEventListener(e,t,bu(r))}}class _a extends eo{constructor(e,t,r,s){super(e),this.component=r;const c=il(s+"-"+r.id,r.styles,[]);t.addStyles(c),this.contentAttr=function C2(n){return"_ngcontent-%COMP%".replace(vf,n)}(s+"-"+r.id),this.hostAttr=function Zl(n){return"_nghost-%COMP%".replace(vf,n)}(s+"-"+r.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const r=super.createElement(e,t);return super.setAttribute(r,this.contentAttr,""),r}}class ol extends eo{constructor(e,t,r,s){super(e),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=il(s.id,s.styles,[]);for(let h=0;h<c.length;h++){const m=document.createElement("style");m.textContent=c[h],this.shadowRoot.appendChild(m)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,r){return super.insertBefore(this.nodeOrShadowRoot(e),t,r)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let xu=(()=>{class n extends yu{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,s){return t.addEventListener(r,s,!1),()=>this.removeEventListener(t,r,s)}removeEventListener(t,r,s){return t.removeEventListener(r,s)}}return n.\u0275fac=function(t){return new(t||n)(Pe(te))},n.\u0275prov=Qe({token:n,factory:n.\u0275fac}),n})();const jw=["alt","control","meta","shift"],zw={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},to={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Ao={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let cr=(()=>{class n extends yu{constructor(t){super(t)}supports(t){return null!=n.parseEventName(t)}addEventListener(t,r,s){const c=n.parseEventName(r),h=n.eventCallback(c.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>B().onAndCancel(t,c.domEventName,h))}static parseEventName(t){const r=t.toLowerCase().split("."),s=r.shift();if(0===r.length||"keydown"!==s&&"keyup"!==s)return null;const c=n._normalizeKey(r.pop());let h="";if(jw.forEach(w=>{const k=r.indexOf(w);k>-1&&(r.splice(k,1),h+=w+".")}),h+=c,0!=r.length||0===c.length)return null;const m={};return m.domEventName=s,m.fullKey=h,m}static getEventFullKey(t){let r="",s=function ks(n){let e=n.key;if(null==e){if(e=n.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===n.location&&to.hasOwnProperty(e)&&(e=to[e]))}return zw[e]||e}(t);return s=s.toLowerCase()," "===s?s="space":"."===s&&(s="dot"),jw.forEach(c=>{c!=s&&Ao[c](t)&&(r+=c+".")}),r+=s,r}static eventCallback(t,r,s){return c=>{n.getEventFullKey(c)===t&&s.runGuarded(()=>r(c))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return n.\u0275fac=function(t){return new(t||n)(Pe(te))},n.\u0275prov=Qe({token:n,factory:n.\u0275fac}),n})();const R2=cy(P,"browser",[{provide:ws,useValue:pw},{provide:Z1,useValue:function D2(){mu.makeCurrent(),ba.init()},multi:!0},{provide:te,useFactory:function qw(){return function m_(n){Xv=n}(document),document},deps:[]}]),$y=[{provide:mb,useValue:"root"},{provide:bd,useFactory:function k2(){return new bd},deps:[]},{provide:li,useClass:xu,multi:!0,deps:[te,Kn,ws]},{provide:li,useClass:cr,multi:!0,deps:[te]},{provide:wu,useClass:wu,deps:[wa,vu,up]},{provide:nu,useExisting:wu},{provide:Ji,useExisting:vu},{provide:vu,useClass:vu,deps:[te]},{provide:sy,useClass:sy,deps:[Kn]},{provide:wa,useClass:wa,deps:[li,Kn]},{provide:class Ow{},useClass:wi,deps:[]}];let Vw=(()=>{class n{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:n,providers:[{provide:up,useValue:t.appId},{provide:rl,useExisting:up},Yn]}}}return n.\u0275fac=function(t){return new(t||n)(Pe(n,12))},n.\u0275mod=Ri({type:n}),n.\u0275inj=Vi({providers:$y,imports:[Tw,q]}),n})();"undefined"!=typeof window&&window;class Yr extends Cn{constructor(e,t){super()}schedule(e,t=0){return this}}class Du extends Yr{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const r=this.id,s=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(s,r,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(s,this.id,t),this}requestAsyncId(e,t,r=0){return setInterval(e.flush.bind(e,this),r)}recycleAsyncId(e,t,r=0){if(null!==r&&this.delay===r&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let s,r=!1;try{this.work(e)}catch(c){r=!0,s=!!c&&c||new Error(c)}if(r)return this.unsubscribe(),s}_unsubscribe(){const e=this.id,t=this.scheduler,r=t.actions,s=r.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&r.splice(s,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}let Sf=(()=>{class n{constructor(t,r=n.now){this.SchedulerAction=t,this.now=r}schedule(t,r=0,s){return new this.SchedulerAction(this,t).schedule(s,r)}}return n.now=()=>Date.now(),n})();class Is extends Sf{constructor(e,t=Sf.now){super(e,()=>Is.delegate&&Is.delegate!==this?Is.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,r){return Is.delegate&&Is.delegate!==this?Is.delegate.schedule(e,t,r):super.schedule(e,t,r)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let r;this.active=!0;do{if(r=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,r){for(;e=t.shift();)e.unsubscribe();throw r}}}new class xi extends Is{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let r,s=-1,c=t.length;e=e||t.shift();do{if(r=e.execute(e.state,e.delay))break}while(++s<c&&(e=t.shift()));if(this.active=!1,r){for(;++s<c&&(e=t.shift());)e.unsubscribe();throw r}}}(class Np extends Du{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,r=0){return null!==r&&r>0?super.requestAsyncId(e,t,r):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,t,r=0){if(null!==r&&r>0||null===r&&this.delay>0)return super.recycleAsyncId(e,t,r);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}});let Yw=1;const Ea=Promise.resolve(),Ni={};function Ef(n){return n in Ni&&(delete Ni[n],!0)}const Yy={setImmediate(n){const e=Yw++;return Ni[e]=!0,Ea.then(()=>Ef(e)&&n()),e},clearImmediate(n){Ef(n)}};new class V2 extends Is{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let r,s=-1,c=t.length;e=e||t.shift();do{if(r=e.execute(e.state,e.delay))break}while(++s<c&&(e=t.shift()));if(this.active=!1,r){for(;++s<c&&(e=t.shift());)e.unsubscribe();throw r}}}(class q2 extends Du{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,r=0){return null!==r&&r>0?super.requestAsyncId(e,t,r):(e.actions.push(this),e.scheduled||(e.scheduled=Yy.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,t,r=0){if(null!==r&&r>0||null===r&&this.delay>0)return super.recycleAsyncId(e,t,r);0===e.actions.length&&(Yy.clearImmediate(t),e.scheduled=void 0)}});function Cf(n,e){return function(r){return r.lift(new U2(n,e))}}new Is(Du);class U2{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new W2(e,this.predicate,this.thisArg))}}class W2 extends de{constructor(e,t,r){super(e),this.predicate=t,this.thisArg=r,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(r){return void this.destination.error(r)}t&&this.destination.next(e)}}let Jy;try{Jy="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){Jy=!1}let Df=(()=>{class n{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Wl(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Jy)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(t){return new(t||n)(Pe(ws))},n.\u0275prov=Qe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function tv(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}let ox=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ri({type:n}),n.\u0275inj=Vi({}),n})();Object.create(Error.prototype);const NT=new z(n=>n.complete());let iv=(()=>{class n{constructor(t,r){this._platform=r,this._document=t}ngOnDestroy(){var t;null===(t=this._containerElement)||void 0===t||t.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||tv()){const s=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let c=0;c<s.length;c++)s[c].remove()}const r=this._document.createElement("div");r.classList.add(t),tv()?r.setAttribute("platform","test"):this._platform.isBrowser||r.setAttribute("platform","server"),this._document.body.appendChild(r),this._containerElement=r}}return n.\u0275fac=function(t){return new(t||n)(Pe(te),Pe(Df))},n.\u0275prov=Qe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const oc=new class ic extends Is{}(class bx extends Du{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,r=0){return null!==r&&r>0||null===r&&this.delay>0?super.requestAsyncId(e,t,r):e.flush(this)}});function Up({error:n,subscriber:e}){e.error(n)}class ji{constructor(e,t,r){this.kind=e,this.value=t,this.error=r,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,r){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return r&&r()}}accept(e,t,r){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,r)}toObservable(){switch(this.kind){case"N":return function Ky(...n){let e=n[n.length-1];return og(e)?(n.pop(),Tv(n,e)):Pv(n)}(this.value);case"E":return function av(n,e){return new z(e?t=>e.schedule(Up,0,{error:n,subscriber:t}):t=>t.error(n))}(this.error);case"C":return function it(n){return n?function Af(n){return new z(e=>n.schedule(()=>e.complete()))}(n):NT}()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new ji("N",e):ji.undefinedValueNotification}static createError(e){return new ji("E",void 0,e)}static createComplete(){return ji.completeNotification}}ji.completeNotification=new ji("C"),ji.undefinedValueNotification=new ji("N",void 0);class Ms extends de{constructor(e,t,r=0){super(e),this.scheduler=t,this.delay=r}static dispatch(e){const{notification:t,destination:r}=e;t.observe(r),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(Ms.dispatch,this.delay,new Ts(e,this.destination)))}_next(e){this.scheduleMessage(ji.createNext(e))}_error(e){this.scheduleMessage(ji.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(ji.createComplete()),this.unsubscribe()}}class Ts{constructor(e,t){this.notification=e,this.destination=t}}class oo extends Zr{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,r){super(),this.scheduler=r,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift(),super.next(e)}nextTimeWindow(e){this._events.push(new pk(this._getNow(),e)),this._trimBufferThenGetEvents(),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,r=t?this._events:this._trimBufferThenGetEvents(),s=this.scheduler,c=r.length;let h;if(this.closed)throw new ml;if(this.isStopped||this.hasError?h=Cn.EMPTY:(this.observers.push(e),h=new ig(this,e)),s&&e.add(e=new Ms(e,s)),t)for(let m=0;m<c&&!e.closed;m++)e.next(r[m]);else for(let m=0;m<c&&!e.closed;m++)e.next(r[m].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),h}_getNow(){return(this.scheduler||oc).now()}_trimBufferThenGetEvents(){const e=this._getNow(),t=this._bufferSize,r=this._windowTime,s=this._events,c=s.length;let h=0;for(;h<c&&!(e-s[h].time<r);)h++;return c>t&&(h=Math.max(h,c-t)),h>0&&s.splice(0,h),s}}class pk{constructor(e,t){this.time=e,this.value=t}}function lv(n,e){return"function"==typeof e?t=>t.pipe(lv((r,s)=>Ov(n(r,s)).pipe(ui((c,h)=>e(r,c,s,h))))):t=>t.lift(new _x(n))}class _x{constructor(e){this.project=e}call(e,t){return t.subscribe(new sc(e,this.project))}}class sc extends fc{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const r=this.index++;try{t=this.project(e,r)}catch(s){return void this.destination.error(s)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const r=new Oo(this),s=this.destination;s.add(r),this.innerSubscription=Xr(e,r),this.innerSubscription!==r&&s.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;(!e||e.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const Wp={schedule(n,e){const t=setTimeout(n,e);return()=>clearTimeout(t)},scheduleBeforeRender(n){if("undefined"==typeof window)return Wp.schedule(n,0);if(void 0===window.requestAnimationFrame)return Wp.schedule(n,16);const e=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(e)}};let cv;function mk(n,e,t){let r=t;return function Iu(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&e.some((s,c)=>!("*"===s||!function gk(n,e){if(!cv){const t=Element.prototype;cv=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&cv.call(n,e)}(n,s)||(r=c,0))),r}class Mf{constructor(e,t){this.componentFactory=t.get(tu).resolveComponentFactory(e)}create(e){return new Tf(this.componentFactory,e)}}class Tf{constructor(e,t){this.componentFactory=e,this.injector=t,this.eventEmitters=new oo(1),this.events=this.eventEmitters.pipe(lv(r=>ju(...r))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:r})=>r)),this.ngZone=this.injector.get(Kn),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=Wp.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(e){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,t){this.runInZone(()=>{null!==this.componentRef?function Cx(n,e){return n===e||n!=n&&e!=e}(t,this.getInputValue(e))&&(void 0!==t||!this.unchangedInputs.has(e))||(this.recordInputChange(e,t),this.unchangedInputs.delete(e),this.hasInputChanges=!0,this.componentRef.instance[e]=t,this.scheduleDetectChanges()):this.initialInputValues.set(e,t)})}initializeComponent(e){const t=Yi.create({providers:[],parent:this.injector}),r=function HT(n,e){const t=n.childNodes,r=e.map(()=>[]);let s=-1;e.some((c,h)=>"*"===c&&(s=h,!0));for(let c=0,h=t.length;c<h;++c){const m=t[c],w=mk(m,e,s);-1!==w&&r[w].push(m)}return r}(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,r,e),this.viewChangeDetectorRef=this.componentRef.injector.get(lf),this.implementsOnChanges=function Ex(n){return"function"==typeof n}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(fp).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:e})=>{this.initialInputValues.has(e)&&this.setInputValue(e,this.initialInputValues.get(e))}),this.initialInputValues.clear()}initializeOutputs(e){const t=this.componentFactory.outputs.map(({propName:r,templateName:s})=>e.instance[r].pipe(ui(h=>({name:s,value:h}))));this.eventEmitters.next(t)}callNgOnChanges(e){if(!this.implementsOnChanges||null===this.inputChanges)return;const t=this.inputChanges;this.inputChanges=null,e.instance.ngOnChanges(t)}markViewForCheck(e){this.hasInputChanges&&(this.hasInputChanges=!1,e.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Wp.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(e,t){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const r=this.inputChanges[e];if(r)return void(r.currentValue=t);const s=this.unchangedInputs.has(e),c=s?void 0:this.getInputValue(e);this.inputChanges[e]=new d_(c,t,s)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}}class vk extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}class Dx{}const ll="*";function dv(n,e=null){return{type:2,steps:n,options:e}}function cl(n){return{type:6,styles:n,offset:null}}function Rx(n){Promise.resolve(null).then(n)}class ac{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Rx(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}class Kp{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,r=0,s=0;const c=this.players.length;0==c?Rx(()=>this._onFinish()):this.players.forEach(h=>{h.onDone(()=>{++t==c&&this._onFinish()}),h.onDestroy(()=>{++r==c&&this._onDestroy()}),h.onStart(()=>{++s==c&&this._onStart()})}),this.totalTime=this.players.reduce((h,m)=>Math.max(h,m.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(r=>{const s=r.totalTime?Math.min(1,t/r.totalTime):1;r.setPosition(s)})}getPosition(){const e=this.players.reduce((t,r)=>null===t||r.totalTime>t.totalTime?r:t,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}const sn=!1;function hv(n){return new ot(3e3,sn)}function An(){return"undefined"!=typeof window&&void 0!==window.document}function lc(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function ul(n){switch(n.length){case 0:return new ac;case 1:return n[0];default:return new Kp(n)}}function Sk(n,e,t,r,s={},c={}){const h=[],m=[];let w=-1,k=null;if(r.forEach(N=>{const V=N.offset,W=V==w,ee=W&&k||{};Object.keys(N).forEach(ue=>{let me=ue,Ce=N[ue];if("offset"!==ue)switch(me=e.normalizePropertyName(me,h),Ce){case"!":Ce=s[ue];break;case ll:Ce=c[ue];break;default:Ce=e.normalizeStyleValue(ue,me,Ce,h)}ee[me]=Ce}),W||m.push(ee),k=ee,w=V}),h.length)throw function je(n){return new ot(3502,sn)}();return m}function vv(n,e,t,r){switch(e){case"start":n.onStart(()=>r(t&&Mx(t,"start",n)));break;case"done":n.onDone(()=>r(t&&Mx(t,"done",n)));break;case"destroy":n.onDestroy(()=>r(t&&Mx(t,"destroy",n)))}}function Mx(n,e,t){const r=t.totalTime,c=cc(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,null==r?n.totalTime:r,!!t.disabled),h=n._data;return null!=h&&(c._data=h),c}function cc(n,e,t,r,s="",c=0,h){return{element:n,triggerName:e,fromState:t,toState:r,phaseName:s,totalTime:c,disabled:!!h}}function so(n,e,t){let r;return n instanceof Map?(r=n.get(e),r||n.set(e,r=t)):(r=n[e],r||(r=n[e]=t)),r}function wP(n){const e=n.indexOf(":");return[n.substring(1,e),n.substr(e+1)]}let YT=(n,e)=>!1,xP=(n,e,t)=>[],_P=null;function ZT(n){const e=n.parentNode||n.host;return e===_P?null:e}(lc()||"undefined"!=typeof Element)&&(An()?(_P=(()=>document.documentElement)(),YT=(n,e)=>{for(;e;){if(e===n)return!0;e=ZT(e)}return!1}):YT=(n,e)=>n.contains(e),xP=(n,e,t)=>{if(t)return Array.from(n.querySelectorAll(e));const r=n.querySelector(e);return r?[r]:[]});let Zp=null,SP=!1;function EP(n){Zp||(Zp=function K3(){return"undefined"!=typeof document?document.body:null}()||{},SP=!!Zp.style&&"WebkitAppearance"in Zp.style);let e=!0;return Zp.style&&!function W3(n){return"ebkit"==n.substring(1,6)}(n)&&(e=n in Zp.style,!e&&SP&&(e="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in Zp.style)),e}const CP=YT,DP=xP;let kP=(()=>{class n{validateStyleProperty(t){return EP(t)}matchesElement(t,r){return!1}containsElement(t,r){return CP(t,r)}getParentElement(t){return ZT(t)}query(t,r,s){return DP(t,r,s)}computeStyle(t,r,s){return s||""}animate(t,r,s,c,h,m=[],w){return new ac(s,c)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=Qe({token:n,factory:n.\u0275fac}),n})(),XT=(()=>{class n{}return n.NOOP=new kP,n})();const JT="ng-enter",Ek="ng-leave",Ck="ng-trigger",Dk=".ng-trigger",RP="ng-animating",eO=".ng-animating";function Xp(n){if("number"==typeof n)return n;const e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:tO(parseFloat(e[1]),e[2])}function tO(n,e){return"s"===e?1e3*n:n}function kk(n,e,t){return n.hasOwnProperty("duration")?n:function Z3(n,e,t){let s,c=0,h="";if("string"==typeof n){const m=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===m)return e.push(hv()),{duration:0,delay:0,easing:""};s=tO(parseFloat(m[1]),m[2]);const w=m[3];null!=w&&(c=tO(parseFloat(w),m[4]));const k=m[5];k&&(h=k)}else s=n;if(!t){let m=!1,w=e.length;s<0&&(e.push(function pv(){return new ot(3100,sn)}()),m=!0),c<0&&(e.push(function Ix(){return new ot(3101,sn)}()),m=!0),m&&e.splice(w,0,hv())}return{duration:s,delay:c,easing:h}}(n,e,t)}function bv(n,e={}){return Object.keys(n).forEach(t=>{e[t]=n[t]}),e}function Lf(n,e,t={}){if(e)for(let r in n)t[r]=n[r];else bv(n,t);return t}function MP(n,e,t){return t?e+":"+t+";":""}function TP(n){let e="";for(let t=0;t<n.style.length;t++){const r=n.style.item(t);e+=MP(0,r,n.style.getPropertyValue(r))}for(const t in n.style)n.style.hasOwnProperty(t)&&!t.startsWith("_")&&(e+=MP(0,eF(t),n.style[t]));n.setAttribute("style",e)}function uc(n,e,t){n.style&&(Object.keys(e).forEach(r=>{const s=rO(r);t&&!t.hasOwnProperty(r)&&(t[r]=n.style[s]),n.style[s]=e[r]}),lc()&&TP(n))}function Jp(n,e){n.style&&(Object.keys(e).forEach(t=>{const r=rO(t);n.style[r]=""}),lc()&&TP(n))}function Tx(n){return Array.isArray(n)?1==n.length?n[0]:dv(n):n}const nO=new RegExp("{{\\s*(.+?)\\s*}}","g");function OP(n){let e=[];if("string"==typeof n){let t;for(;t=nO.exec(n);)e.push(t[1]);nO.lastIndex=0}return e}function Ak(n,e,t){const r=n.toString(),s=r.replace(nO,(c,h)=>{let m=e[h];return e.hasOwnProperty(h)||(t.push(function _k(n){return new ot(3003,sn)}()),m=""),m.toString()});return s==r?n:s}function Rk(n){const e=[];let t=n.next();for(;!t.done;)e.push(t.value),t=n.next();return e}const J3=/-+([a-z0-9])/g;function rO(n){return n.replace(J3,(...e)=>e[1].toUpperCase())}function eF(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Ls(n,e,t){switch(e.type){case 7:return n.visitTrigger(e,t);case 0:return n.visitState(e,t);case 1:return n.visitTransition(e,t);case 2:return n.visitSequence(e,t);case 3:return n.visitGroup(e,t);case 4:return n.visitAnimate(e,t);case 5:return n.visitKeyframes(e,t);case 6:return n.visitStyle(e,t);case 8:return n.visitReference(e,t);case 9:return n.visitAnimateChild(e,t);case 10:return n.visitAnimateRef(e,t);case 11:return n.visitQuery(e,t);case 12:return n.visitStagger(e,t);default:throw function mv(n){return new ot(3004,sn)}()}}function LP(n,e){return window.getComputedStyle(n)[e]}function sF(n,e){const t=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(r=>function aF(n,e,t){if(":"==n[0]){const w=function lF(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,r)=>parseFloat(r)>parseFloat(t);case":decrement":return(t,r)=>parseFloat(r)<parseFloat(t);default:return e.push(function ve(n){return new ot(3016,sn)}()),"* => *"}}(n,t);if("function"==typeof w)return void e.push(w);n=w}const r=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return t.push(function ge(n){return new ot(3015,sn)}()),e;const s=r[1],c=r[2],h=r[3];e.push(PP(s,h));"<"==c[0]&&!("*"==s&&"*"==h)&&e.push(PP(h,s))}(r,t,e)):t.push(n),t}const Ok=new Set(["true","1"]),Lk=new Set(["false","0"]);function PP(n,e){const t=Ok.has(n)||Lk.has(n),r=Ok.has(e)||Lk.has(e);return(s,c)=>{let h="*"==n||n==s,m="*"==e||e==c;return!h&&t&&"boolean"==typeof s&&(h=s?Ok.has(n):Lk.has(n)),!m&&r&&"boolean"==typeof c&&(m=c?Ok.has(e):Lk.has(e)),h&&m}}const cF=new RegExp("s*:selfs*,?","g");function iO(n,e,t,r){return new uF(n).build(e,t,r)}class uF{constructor(e){this._driver=e}build(e,t,r){const s=new hF(t);this._resetContextStyleTimingState(s);const c=Ls(this,Tx(e),s);return s.unsupportedCSSPropertiesFound.size&&s.unsupportedCSSPropertiesFound.keys(),c}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,t){let r=t.queryCount=0,s=t.depCount=0;const c=[],h=[];return"@"==e.name.charAt(0)&&t.errors.push(function Yp(){return new ot(3006,sn)}()),e.definitions.forEach(m=>{if(this._resetContextStyleTimingState(t),0==m.type){const w=m,k=w.name;k.toString().split(/\s*,\s*/).forEach(N=>{w.name=N,c.push(this.visitState(w,t))}),w.name=k}else if(1==m.type){const w=this.visitTransition(m,t);r+=w.queryCount,s+=w.depCount,h.push(w)}else t.errors.push(function QT(){return new ot(3007,sn)}())}),{type:7,name:e.name,states:c,transitions:h,queryCount:r,depCount:s,options:null}}visitState(e,t){const r=this.visitStyle(e.styles,t),s=e.options&&e.options.params||null;if(r.containsDynamicStyles){const c=new Set,h=s||{};r.styles.forEach(m=>{if(Pk(m)){const w=m;Object.keys(w).forEach(k=>{OP(w[k]).forEach(N=>{h.hasOwnProperty(N)||c.add(N)})})}}),c.size&&(Rk(c.values()),t.errors.push(function yv(n,e){return new ot(3008,sn)}()))}return{type:0,name:e.name,style:r,options:s?{params:s}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const r=Ls(this,Tx(e.animation),t);return{type:1,matchers:sF(e.expr,t.errors),animation:r,queryCount:t.queryCount,depCount:t.depCount,options:eg(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(r=>Ls(this,r,t)),options:eg(e.options)}}visitGroup(e,t){const r=t.currentTime;let s=0;const c=e.steps.map(h=>{t.currentTime=r;const m=Ls(this,h,t);return s=Math.max(s,t.currentTime),m});return t.currentTime=s,{type:3,steps:c,options:eg(e.options)}}visitAnimate(e,t){const r=function gF(n,e){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return oO(kk(n,e).duration,0,"");const t=n;if(t.split(/\s+/).some(c=>"{"==c.charAt(0)&&"{"==c.charAt(1))){const c=oO(0,0,"");return c.dynamic=!0,c.strValue=t,c}const s=kk(t,e);return oO(s.duration,s.delay,s.easing)}(e.timings,t.errors);t.currentAnimateTimings=r;let s,c=e.styles?e.styles:cl({});if(5==c.type)s=this.visitKeyframes(c,t);else{let h=e.styles,m=!1;if(!h){m=!0;const k={};r.easing&&(k.easing=r.easing),h=cl(k)}t.currentTime+=r.duration+r.delay;const w=this.visitStyle(h,t);w.isEmptyStep=m,s=w}return t.currentAnimateTimings=null,{type:4,timings:r,style:s,options:null}}visitStyle(e,t){const r=this._makeStyleAst(e,t);return this._validateStyleAst(r,t),r}_makeStyleAst(e,t){const r=[];Array.isArray(e.styles)?e.styles.forEach(h=>{"string"==typeof h?h==ll?r.push(h):t.errors.push(function l(n){return new ot(3002,sn)}()):r.push(h)}):r.push(e.styles);let s=!1,c=null;return r.forEach(h=>{if(Pk(h)){const m=h,w=m.easing;if(w&&(c=w,delete m.easing),!s)for(let k in m)if(m[k].toString().indexOf("{{")>=0){s=!0;break}}}),{type:6,styles:r,easing:c,offset:e.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(e,t){const r=t.currentAnimateTimings;let s=t.currentTime,c=t.currentTime;r&&c>0&&(c-=r.duration+r.delay),e.styles.forEach(h=>{"string"!=typeof h&&Object.keys(h).forEach(m=>{if(!this._driver.validateStyleProperty(m))return delete h[m],void t.unsupportedCSSPropertiesFound.add(m);const w=t.collectedStyles[t.currentQuerySelector],k=w[m];let N=!0;k&&(c!=s&&c>=k.startTime&&s<=k.endTime&&(t.errors.push(function v(n,e,t,r,s){return new ot(3010,sn)}()),N=!1),c=k.startTime),N&&(w[m]={startTime:c,endTime:s}),t.options&&function X3(n,e,t){const r=e.params||{},s=OP(n);s.length&&s.forEach(c=>{r.hasOwnProperty(c)||t.push(function gv(n){return new ot(3001,sn)}())})}(h[m],t.options,t.errors)})})}visitKeyframes(e,t){const r={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function S(){return new ot(3011,sn)}()),r;let c=0;const h=[];let m=!1,w=!1,k=0;const N=e.steps.map(Oe=>{const xe=this._makeStyleAst(Oe,t);let Ue=null!=xe.offset?xe.offset:function pF(n){if("string"==typeof n)return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(Pk(t)&&t.hasOwnProperty("offset")){const r=t;e=parseFloat(r.offset),delete r.offset}});else if(Pk(n)&&n.hasOwnProperty("offset")){const t=n;e=parseFloat(t.offset),delete t.offset}return e}(xe.styles),vt=0;return null!=Ue&&(c++,vt=xe.offset=Ue),w=w||vt<0||vt>1,m=m||vt<k,k=vt,h.push(vt),xe});w&&t.errors.push(function R(){return new ot(3012,sn)}()),m&&t.errors.push(function j(){return new ot(3200,sn)}());const V=e.steps.length;let W=0;c>0&&c<V?t.errors.push(function H(){return new ot(3202,sn)}()):0==c&&(W=1/(V-1));const ee=V-1,ue=t.currentTime,me=t.currentAnimateTimings,Ce=me.duration;return N.forEach((Oe,xe)=>{const Ue=W>0?xe==ee?1:W*xe:h[xe],vt=Ue*Ce;t.currentTime=ue+me.delay+vt,me.duration=vt,this._validateStyleAst(Oe,t),Oe.offset=Ue,r.styles.push(Oe)}),r}visitReference(e,t){return{type:8,animation:Ls(this,Tx(e.animation),t),options:eg(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:eg(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:eg(e.options)}}visitQuery(e,t){const r=t.currentQuerySelector,s=e.options||{};t.queryCount++,t.currentQuery=e;const[c,h]=function dF(n){const e=!!n.split(/\s*,\s*/).find(t=>":self"==t);return e&&(n=n.replace(cF,"")),n=n.replace(/@\*/g,Dk).replace(/@\w+/g,t=>Dk+"-"+t.substr(1)).replace(/:animating/g,eO),[n,e]}(e.selector);t.currentQuerySelector=r.length?r+" "+c:c,so(t.collectedStyles,t.currentQuerySelector,{});const m=Ls(this,Tx(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=r,{type:11,selector:c,limit:s.limit||0,optional:!!s.optional,includeSelf:h,animation:m,originalSelector:e.selector,options:eg(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(function J(){return new ot(3013,sn)}());const r="full"===e.timings?{duration:0,delay:0,easing:"full"}:kk(e.timings,t.errors,!0);return{type:12,animation:Ls(this,Tx(e.animation),t),timings:r,options:null}}}class hF{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Pk(n){return!Array.isArray(n)&&"object"==typeof n}function eg(n){return n?(n=bv(n)).params&&(n.params=function fF(n){return n?bv(n):null}(n.params)):n={},n}function oO(n,e,t){return{duration:n,delay:e,easing:t}}function sO(n,e,t,r,s,c,h=null,m=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:r,duration:s,delay:c,totalTime:s+c,easing:h,subTimeline:m}}class Fk{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let r=this._map.get(e);r||this._map.set(e,r=[]),r.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const vF=new RegExp(":enter","g"),wF=new RegExp(":leave","g");function aO(n,e,t,r,s,c={},h={},m,w,k=[]){return(new xF).buildKeyframes(n,e,t,r,s,c,h,m,w,k)}class xF{buildKeyframes(e,t,r,s,c,h,m,w,k,N=[]){k=k||new Fk;const V=new lO(e,t,k,s,c,N,[]);V.options=w,V.currentTimeline.setStyles([h],null,V.errors,w),Ls(this,r,V);const W=V.timelines.filter(ee=>ee.containsAnimation());if(Object.keys(m).length){let ee;for(let ue=W.length-1;ue>=0;ue--){const me=W[ue];if(me.element===t){ee=me;break}}ee&&!ee.allowOnlyTimelineStyles()&&ee.setStyles([m],null,V.errors,w)}return W.length?W.map(ee=>ee.buildKeyframes()):[sO(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const r=t.subInstructions.get(t.element);if(r){const s=t.createSubContext(e.options),c=t.currentTimeline.currentTime,h=this._visitSubInstructions(r,s,s.options);c!=h&&t.transformIntoNewTimeline(h)}t.previousNode=e}visitAnimateRef(e,t){const r=t.createSubContext(e.options);r.transformIntoNewTimeline(),this.visitReference(e.animation,r),t.transformIntoNewTimeline(r.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,r){let c=t.currentTimeline.currentTime;const h=null!=r.duration?Xp(r.duration):null,m=null!=r.delay?Xp(r.delay):null;return 0!==h&&e.forEach(w=>{const k=t.appendInstructionToTimeline(w,h,m);c=Math.max(c,k.duration+k.delay)}),c}visitReference(e,t){t.updateOptions(e.options,!0),Ls(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const r=t.subContextCount;let s=t;const c=e.options;if(c&&(c.params||c.delay)&&(s=t.createSubContext(c),s.transformIntoNewTimeline(),null!=c.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=Nk);const h=Xp(c.delay);s.delayNextStep(h)}e.steps.length&&(e.steps.forEach(h=>Ls(this,h,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>r&&s.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const r=[];let s=t.currentTimeline.currentTime;const c=e.options&&e.options.delay?Xp(e.options.delay):0;e.steps.forEach(h=>{const m=t.createSubContext(e.options);c&&m.delayNextStep(c),Ls(this,h,m),s=Math.max(s,m.currentTimeline.currentTime),r.push(m.currentTimeline)}),r.forEach(h=>t.currentTimeline.mergeTimelineCollectedStyles(h)),t.transformIntoNewTimeline(s),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const r=e.strValue;return kk(t.params?Ak(r,t.params,t.errors):r,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const r=t.currentAnimateTimings=this._visitTiming(e.timings,t),s=t.currentTimeline;r.delay&&(t.incrementTime(r.delay),s.snapshotCurrentStyles());const c=e.style;5==c.type?this.visitKeyframes(c,t):(t.incrementTime(r.duration),this.visitStyle(c,t),s.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const r=t.currentTimeline,s=t.currentAnimateTimings;!s&&r.getCurrentStyleProperties().length&&r.forwardFrame();const c=s&&s.easing||e.easing;e.isEmptyStep?r.applyEmptyStep(c):r.setStyles(e.styles,c,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const r=t.currentAnimateTimings,s=t.currentTimeline.duration,c=r.duration,m=t.createSubContext().currentTimeline;m.easing=r.easing,e.styles.forEach(w=>{m.forwardTime((w.offset||0)*c),m.setStyles(w.styles,w.easing,t.errors,t.options),m.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(m),t.transformIntoNewTimeline(s+c),t.previousNode=e}visitQuery(e,t){const r=t.currentTimeline.currentTime,s=e.options||{},c=s.delay?Xp(s.delay):0;c&&(6===t.previousNode.type||0==r&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Nk);let h=r;const m=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!s.optional,t.errors);t.currentQueryTotal=m.length;let w=null;m.forEach((k,N)=>{t.currentQueryIndex=N;const V=t.createSubContext(e.options,k);c&&V.delayNextStep(c),k===t.element&&(w=V.currentTimeline),Ls(this,e.animation,V),V.currentTimeline.applyStylesToKeyframe(),h=Math.max(h,V.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(h),w&&(t.currentTimeline.mergeTimelineCollectedStyles(w),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const r=t.parentContext,s=t.currentTimeline,c=e.timings,h=Math.abs(c.duration),m=h*(t.currentQueryTotal-1);let w=h*t.currentQueryIndex;switch(c.duration<0?"reverse":c.easing){case"reverse":w=m-w;break;case"full":w=r.currentStaggerTime}const N=t.currentTimeline;w&&N.delayNextStep(w);const V=N.currentTime;Ls(this,e.animation,t),t.previousNode=e,r.currentStaggerTime=s.currentTime-V+(s.startTime-r.currentTimeline.startTime)}}const Nk={};class lO{constructor(e,t,r,s,c,h,m,w){this._driver=e,this.element=t,this.subInstructions=r,this._enterClassName=s,this._leaveClassName=c,this.errors=h,this.timelines=m,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Nk,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=w||new jk(this._driver,t,0),m.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const r=e;let s=this.options;null!=r.duration&&(s.duration=Xp(r.duration)),null!=r.delay&&(s.delay=Xp(r.delay));const c=r.params;if(c){let h=s.params;h||(h=this.options.params={}),Object.keys(c).forEach(m=>{(!t||!h.hasOwnProperty(m))&&(h[m]=Ak(c[m],h,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const r=e.params={};Object.keys(t).forEach(s=>{r[s]=t[s]})}}return e}createSubContext(e=null,t,r){const s=t||this.element,c=new lO(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,r||0));return c.previousNode=this.previousNode,c.currentAnimateTimings=this.currentAnimateTimings,c.options=this._copyOptions(),c.updateOptions(e),c.currentQueryIndex=this.currentQueryIndex,c.currentQueryTotal=this.currentQueryTotal,c.parentContext=this,this.subContextCount++,c}transformIntoNewTimeline(e){return this.previousNode=Nk,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,r){const s={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=r?r:0)+e.delay,easing:""},c=new _F(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,s,e.stretchStartingKeyframe);return this.timelines.push(c),s}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,r,s,c,h){let m=[];if(s&&m.push(this.element),e.length>0){e=(e=e.replace(vF,"."+this._enterClassName)).replace(wF,"."+this._leaveClassName);let k=this._driver.query(this.element,e,1!=r);0!==r&&(k=r<0?k.slice(k.length+r,k.length):k.slice(0,r)),m.push(...k)}return!c&&0==m.length&&h.push(function ie(n){return new ot(3014,sn)}()),m}}class jk{constructor(e,t,r,s){this._driver=e,this.element=t,this.startTime=r,this._elementTimelineStylesLookup=s,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new jk(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||ll,this._currentKeyframe[t]=ll}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,r,s){t&&(this._previousKeyframe.easing=t);const c=s&&s.params||{},h=function SF(n,e){const t={};let r;return n.forEach(s=>{"*"===s?(r=r||Object.keys(e),r.forEach(c=>{t[c]=ll})):Lf(s,!1,t)}),t}(e,this._globalTimelineStyles);Object.keys(h).forEach(m=>{const w=Ak(h[m],c,r);this._pendingStyles[m]=w,this._localTimelineStyles.hasOwnProperty(m)||(this._backFill[m]=this._globalTimelineStyles.hasOwnProperty(m)?this._globalTimelineStyles[m]:ll),this._updateStyle(m,w)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(r=>{this._currentKeyframe[r]=e[r]}),Object.keys(this._localTimelineStyles).forEach(r=>{this._currentKeyframe.hasOwnProperty(r)||(this._currentKeyframe[r]=this._localTimelineStyles[r])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const r=this._styleSummary[t],s=e._styleSummary[t];(!r||s.time>r.time)&&this._updateStyle(t,s.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,r=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((m,w)=>{const k=Lf(m,!0);Object.keys(k).forEach(N=>{const V=k[N];"!"==V?e.add(N):V==ll&&t.add(N)}),r||(k.offset=w/this.duration),s.push(k)});const c=e.size?Rk(e.values()):[],h=t.size?Rk(t.values()):[];if(r){const m=s[0],w=bv(m);m.offset=0,w.offset=1,s=[m,w]}return sO(this.element,s,c,h,this.duration,this.startTime,this.easing,!1)}}class _F extends jk{constructor(e,t,r,s,c,h,m=!1){super(e,t,h.delay),this.keyframes=r,this.preStyleProps=s,this.postStyleProps=c,this._stretchStartingKeyframe=m,this.timings={duration:h.duration,delay:h.delay,easing:h.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:r,easing:s}=this.timings;if(this._stretchStartingKeyframe&&t){const c=[],h=r+t,m=t/h,w=Lf(e[0],!1);w.offset=0,c.push(w);const k=Lf(e[0],!1);k.offset=jP(m),c.push(k);const N=e.length-1;for(let V=1;V<=N;V++){let W=Lf(e[V],!1);W.offset=jP((t+W.offset*r)/h),c.push(W)}r=h,t=0,s="",e=c}return sO(this.element,e,this.preStyleProps,this.postStyleProps,r,t,s,!0)}}function jP(n,e=3){const t=Math.pow(10,e-1);return Math.round(n*t)/t}class cO{}class EF extends cO{normalizePropertyName(e,t){return rO(e)}normalizeStyleValue(e,t,r,s){let c="";const h=r.toString().trim();if(CF[t]&&0!==r&&"0"!==r)if("number"==typeof r)c="px";else{const m=r.match(/^[+-]?[\d\.]+([a-z]*)$/);m&&0==m[1].length&&s.push(function KT(n,e){return new ot(3005,sn)}())}return h+c}}const CF=(()=>function DF(n){const e={};return n.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function BP(n,e,t,r,s,c,h,m,w,k,N,V,W){return{type:0,element:n,triggerName:e,isRemovalTransition:s,fromState:t,fromStyles:c,toState:r,toStyles:h,timelines:m,queriedElements:w,preStyleProps:k,postStyleProps:N,totalTime:V,errors:W}}const uO={};class zP{constructor(e,t,r){this._triggerName=e,this.ast=t,this._stateStyles=r}match(e,t,r,s){return function kF(n,e,t,r,s){return n.some(c=>c(e,t,r,s))}(this.ast.matchers,e,t,r,s)}buildStyles(e,t,r){const s=this._stateStyles["*"],c=this._stateStyles[e],h=s?s.buildStyles(t,r):{};return c?c.buildStyles(t,r):h}build(e,t,r,s,c,h,m,w,k,N){const V=[],W=this.ast.options&&this.ast.options.params||uO,ue=this.buildStyles(r,m&&m.params||uO,V),me=w&&w.params||uO,Ce=this.buildStyles(s,me,V),Oe=new Set,xe=new Map,Ue=new Map,vt="void"===s,an={params:Object.assign(Object.assign({},W),me)},Sr=N?[]:aO(e,t,this.ast.animation,c,h,ue,Ce,an,k,V);let Or=0;if(Sr.forEach(Fs=>{Or=Math.max(Fs.duration+Fs.delay,Or)}),V.length)return BP(t,this._triggerName,r,s,vt,ue,Ce,[],[],xe,Ue,Or,V);Sr.forEach(Fs=>{const Ns=Fs.element,Ev=so(xe,Ns,{});Fs.preStyleProps.forEach(fl=>Ev[fl]=!0);const Ou=so(Ue,Ns,{});Fs.postStyleProps.forEach(fl=>Ou[fl]=!0),Ns!==t&&Oe.add(Ns)});const Ps=Rk(Oe.values());return BP(t,this._triggerName,r,s,vt,ue,Ce,Sr,Ps,xe,Ue,Or)}}class AF{constructor(e,t,r){this.styles=e,this.defaultParams=t,this.normalizer=r}buildStyles(e,t){const r={},s=bv(this.defaultParams);return Object.keys(e).forEach(c=>{const h=e[c];null!=h&&(s[c]=h)}),this.styles.styles.forEach(c=>{if("string"!=typeof c){const h=c;Object.keys(h).forEach(m=>{let w=h[m];w.length>1&&(w=Ak(w,s,t));const k=this.normalizer.normalizePropertyName(m,t);w=this.normalizer.normalizeStyleValue(m,k,w,t),r[k]=w})}}),r}}class IF{constructor(e,t,r){this.name=e,this.ast=t,this._normalizer=r,this.transitionFactories=[],this.states={},t.states.forEach(s=>{this.states[s.name]=new AF(s.style,s.options&&s.options.params||{},r)}),qP(this.states,"true","1"),qP(this.states,"false","0"),t.transitions.forEach(s=>{this.transitionFactories.push(new zP(e,s,this.states))}),this.fallbackTransition=function MF(n,e,t){return new zP(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(h,m)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,r,s){return this.transitionFactories.find(h=>h.match(e,t,r,s))||null}matchStyles(e,t,r){return this.fallbackTransition.buildStyles(e,t,r)}}function qP(n,e,t){n.hasOwnProperty(e)?n.hasOwnProperty(t)||(n[t]=n[e]):n.hasOwnProperty(t)&&(n[e]=n[t])}const TF=new Fk;class OF{constructor(e,t,r){this.bodyNode=e,this._driver=t,this._normalizer=r,this._animations={},this._playersById={},this.players=[]}register(e,t){const r=[],c=iO(this._driver,t,r,[]);if(r.length)throw function Be(n){return new ot(3503,sn)}();this._animations[e]=c}_buildPlayer(e,t,r){const s=e.element,c=Sk(0,this._normalizer,0,e.keyframes,t,r);return this._driver.animate(s,c,e.duration,e.delay,e.easing,[],!0)}create(e,t,r={}){const s=[],c=this._animations[e];let h;const m=new Map;if(c?(h=aO(this._driver,t,c,JT,Ek,{},{},r,TF,s),h.forEach(N=>{const V=so(m,N.element,{});N.postStyleProps.forEach(W=>V[W]=null)})):(s.push(function Ee(){return new ot(3300,sn)}()),h=[]),s.length)throw function pe(n){return new ot(3504,sn)}();m.forEach((N,V)=>{Object.keys(N).forEach(W=>{N[W]=this._driver.computeStyle(V,W,ll)})});const k=ul(h.map(N=>{const V=m.get(N.element);return this._buildPlayer(N,{},V)}));return this._playersById[e]=k,k.onDestroy(()=>this.destroy(e)),this.players.push(k),k}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const r=this.players.indexOf(t);r>=0&&this.players.splice(r,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw function we(n){return new ot(3301,sn)}();return t}listen(e,t,r,s){const c=cc(t,"","","");return vv(this._getPlayer(e),r,c,s),()=>{}}command(e,t,r,s){if("register"==r)return void this.register(e,s[0]);if("create"==r)return void this.create(e,t,s[0]||{});const c=this._getPlayer(e);switch(r){case"play":c.play();break;case"pause":c.pause();break;case"reset":c.reset();break;case"restart":c.restart();break;case"finish":c.finish();break;case"init":c.init();break;case"setPosition":c.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(e)}}}const VP="ng-animate-queued",dO="ng-animate-disabled",jF=[],$P={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},BF={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ka="__ng_removed";class fO{constructor(e,t=""){this.namespaceId=t;const r=e&&e.hasOwnProperty("value");if(this.value=function $F(n){return null!=n?n:null}(r?e.value:e),r){const c=bv(e);delete c.value,this.options=c}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const r=this.options.params;Object.keys(t).forEach(s=>{null==r[s]&&(r[s]=t[s])})}}}const Ox="void",hO=new fO(Ox);class zF{constructor(e,t,r){this.id=e,this.hostElement=t,this._engine=r,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Aa(t,this._hostClassName)}listen(e,t,r,s){if(!this._triggers.hasOwnProperty(t))throw function Te(n,e){return new ot(3302,sn)}();if(null==r||0==r.length)throw function et(n){return new ot(3303,sn)}();if(!function HF(n){return"start"==n||"done"==n}(r))throw function Zt(n,e){return new ot(3400,sn)}();const c=so(this._elementListeners,e,[]),h={name:t,phase:r,callback:s};c.push(h);const m=so(this._engine.statesByElement,e,{});return m.hasOwnProperty(t)||(Aa(e,Ck),Aa(e,Ck+"-"+t),m[t]=hO),()=>{this._engine.afterFlush(()=>{const w=c.indexOf(h);w>=0&&c.splice(w,1),this._triggers[t]||delete m[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw function Xe(n){return new ot(3401,sn)}();return t}trigger(e,t,r,s=!0){const c=this._getTrigger(t),h=new pO(this.id,t,e);let m=this._engine.statesByElement.get(e);m||(Aa(e,Ck),Aa(e,Ck+"-"+t),this._engine.statesByElement.set(e,m={}));let w=m[t];const k=new fO(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&w&&k.absorbOptions(w.options),m[t]=k,w||(w=hO),k.value!==Ox&&w.value===k.value){if(!function WF(n,e){const t=Object.keys(n),r=Object.keys(e);if(t.length!=r.length)return!1;for(let s=0;s<t.length;s++){const c=t[s];if(!e.hasOwnProperty(c)||n[c]!==e[c])return!1}return!0}(w.params,k.params)){const me=[],Ce=c.matchStyles(w.value,w.params,me),Oe=c.matchStyles(k.value,k.params,me);me.length?this._engine.reportError(me):this._engine.afterFlush(()=>{Jp(e,Ce),uc(e,Oe)})}return}const W=so(this._engine.playersByElement,e,[]);W.forEach(me=>{me.namespaceId==this.id&&me.triggerName==t&&me.queued&&me.destroy()});let ee=c.matchTransition(w.value,k.value,e,k.params),ue=!1;if(!ee){if(!s)return;ee=c.fallbackTransition,ue=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:ee,fromState:w,toState:k,player:h,isFallbackTransition:ue}),ue||(Aa(e,VP),h.onStart(()=>{wv(e,VP)})),h.onDone(()=>{let me=this.players.indexOf(h);me>=0&&this.players.splice(me,1);const Ce=this._engine.playersByElement.get(e);if(Ce){let Oe=Ce.indexOf(h);Oe>=0&&Ce.splice(Oe,1)}}),this.players.push(h),W.push(h),h}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,r)=>{delete t[e]}),this._elementListeners.forEach((t,r)=>{this._elementListeners.set(r,t.filter(s=>s.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(r=>r.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const r=this._engine.driver.query(e,Dk,!0);r.forEach(s=>{if(s[ka])return;const c=this._engine.fetchNamespacesByElement(s);c.size?c.forEach(h=>h.triggerLeaveAnimation(s,t,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(e,t,r,s){const c=this._engine.statesByElement.get(e),h=new Map;if(c){const m=[];if(Object.keys(c).forEach(w=>{if(h.set(w,c[w].value),this._triggers[w]){const k=this.trigger(e,w,Ox,s);k&&m.push(k)}}),m.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,h),r&&ul(m).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),r=this._engine.statesByElement.get(e);if(t&&r){const s=new Set;t.forEach(c=>{const h=c.name;if(s.has(h))return;s.add(h);const w=this._triggers[h].fallbackTransition,k=r[h]||hO,N=new fO(Ox),V=new pO(this.id,h,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:h,transition:w,fromState:k,toState:N,player:V,isFallbackTransition:!0})})}}removeNode(e,t){const r=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let s=!1;if(r.totalAnimations){const c=r.players.length?r.playersByQueriedElement.get(e):[];if(c&&c.length)s=!0;else{let h=e;for(;h=h.parentNode;)if(r.statesByElement.get(h)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(e),s)r.markElementAsRemoved(this.id,e,!1,t);else{const c=e[ka];(!c||c===$P)&&(r.afterFlush(()=>this.clearElementCache(e)),r.destroyInnerAnimations(e),r._onRemovalComplete(e,t))}}insertNode(e,t){Aa(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(r=>{const s=r.player;if(s.destroyed)return;const c=r.element,h=this._elementListeners.get(c);h&&h.forEach(m=>{if(m.name==r.triggerName){const w=cc(c,r.triggerName,r.fromState.value,r.toState.value);w._data=e,vv(r.player,m.phase,w,m.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):t.push(r)}),this._queue=[],t.sort((r,s)=>{const c=r.transition.ast.depCount,h=s.transition.ast.depCount;return 0==c||0==h?c-h:this._engine.driver.containsElement(r.element,s.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(r=>r.element===e)||t,t}}class qF{constructor(e,t,r){this.bodyNode=e,this.driver=t,this._normalizer=r,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(s,c)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(r=>{r.queued&&e.push(r)})}),e}createNamespace(e,t){const r=new zF(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(r,t):(this.newHostElements.set(t,r),this.collectEnterElement(t)),this._namespaceLookup[e]=r}_balanceNamespaceList(e,t){const r=this._namespaceList,s=this.namespacesByHostElement,c=r.length-1;if(c>=0){let h=!1;if(void 0!==this.driver.getParentElement){let m=this.driver.getParentElement(t);for(;m;){const w=s.get(m);if(w){const k=r.indexOf(w);r.splice(k+1,0,e),h=!0;break}m=this.driver.getParentElement(m)}}else for(let m=c;m>=0;m--)if(this.driver.containsElement(r[m].hostElement,t)){r.splice(m+1,0,e),h=!0;break}h||r.unshift(e)}else r.push(e);return s.set(t,e),e}register(e,t){let r=this._namespaceLookup[e];return r||(r=this.createNamespace(e,t)),r}registerTrigger(e,t,r){let s=this._namespaceLookup[e];s&&s.register(t,r)&&this.totalAnimations++}destroy(e,t){if(!e)return;const r=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(r.hostElement),delete this._namespaceLookup[e];const s=this._namespaceList.indexOf(r);s>=0&&this._namespaceList.splice(s,1)}),this.afterFlushAnimationsDone(()=>r.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,r=this.statesByElement.get(e);if(r){const s=Object.keys(r);for(let c=0;c<s.length;c++){const h=r[s[c]].namespaceId;if(h){const m=this._fetchNamespace(h);m&&t.add(m)}}}return t}trigger(e,t,r,s){if(Bk(t)){const c=this._fetchNamespace(e);if(c)return c.trigger(t,r,s),!0}return!1}insertNode(e,t,r,s){if(!Bk(t))return;const c=t[ka];if(c&&c.setForRemoval){c.setForRemoval=!1,c.setForMove=!0;const h=this.collectedLeaveElements.indexOf(t);h>=0&&this.collectedLeaveElements.splice(h,1)}if(e){const h=this._fetchNamespace(e);h&&h.insertNode(t,r)}s&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Aa(e,dO)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),wv(e,dO))}removeNode(e,t,r,s){if(Bk(t)){const c=e?this._fetchNamespace(e):null;if(c?c.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s),r){const h=this.namespacesByHostElement.get(t);h&&h.id!==e&&h.removeNode(t,s)}}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,r,s,c){this.collectedLeaveElements.push(t),t[ka]={namespaceId:e,setForRemoval:s,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:c}}listen(e,t,r,s,c){return Bk(t)?this._fetchNamespace(e).listen(t,r,s,c):()=>{}}_buildInstruction(e,t,r,s,c){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,r,s,e.fromState.options,e.toState.options,t,c)}destroyInnerAnimations(e){let t=this.driver.query(e,Dk,!0);t.forEach(r=>this.destroyActiveAnimationsForElement(r)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,eO,!0),t.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return ul(this.players).onDone(()=>e());e()})}processLeaveNode(e){var t;const r=e[ka];if(r&&r.setForRemoval){if(e[ka]=$P,r.namespaceId){this.destroyInnerAnimations(e);const s=this._fetchNamespace(r.namespaceId);s&&s.clearElementCache(e)}this._onRemovalComplete(e,r.setForRemoval)}(null===(t=e.classList)||void 0===t?void 0:t.contains(dO))&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,s)=>this._balanceNamespaceList(r,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;r<this.collectedEnterElements.length;r++)Aa(this.collectedEnterElements[r],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const r=[];try{t=this._flushAnimations(r,e)}finally{for(let s=0;s<r.length;s++)r[s]()}}else for(let r=0;r<this.collectedLeaveElements.length;r++)this.processLeaveNode(this.collectedLeaveElements[r]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(r=>r()),this._flushFns=[],this._whenQuietFns.length){const r=this._whenQuietFns;this._whenQuietFns=[],t.length?ul(t).onDone(()=>{r.forEach(s=>s())}):r.forEach(s=>s())}}reportError(e){throw function en(n){return new ot(3402,sn)}()}_flushAnimations(e,t){const r=new Fk,s=[],c=new Map,h=[],m=new Map,w=new Map,k=new Map,N=new Set;this.disabledNodes.forEach(ut=>{N.add(ut);const Mt=this.driver.query(ut,".ng-animate-queued",!0);for(let Vt=0;Vt<Mt.length;Vt++)N.add(Mt[Vt])});const V=this.bodyNode,W=Array.from(this.statesByElement.keys()),ee=UP(W,this.collectedEnterElements),ue=new Map;let me=0;ee.forEach((ut,Mt)=>{const Vt=JT+me++;ue.set(Mt,Vt),ut.forEach(Rn=>Aa(Rn,Vt))});const Ce=[],Oe=new Set,xe=new Set;for(let ut=0;ut<this.collectedLeaveElements.length;ut++){const Mt=this.collectedLeaveElements[ut],Vt=Mt[ka];Vt&&Vt.setForRemoval&&(Ce.push(Mt),Oe.add(Mt),Vt.hasAnimation?this.driver.query(Mt,".ng-star-inserted",!0).forEach(Rn=>Oe.add(Rn)):xe.add(Mt))}const Ue=new Map,vt=UP(W,Array.from(Oe));vt.forEach((ut,Mt)=>{const Vt=Ek+me++;Ue.set(Mt,Vt),ut.forEach(Rn=>Aa(Rn,Vt))}),e.push(()=>{ee.forEach((ut,Mt)=>{const Vt=ue.get(Mt);ut.forEach(Rn=>wv(Rn,Vt))}),vt.forEach((ut,Mt)=>{const Vt=Ue.get(Mt);ut.forEach(Rn=>wv(Rn,Vt))}),Ce.forEach(ut=>{this.processLeaveNode(ut)})});const an=[],Sr=[];for(let ut=this._namespaceList.length-1;ut>=0;ut--)this._namespaceList[ut].drainQueuedTransitions(t).forEach(Vt=>{const Rn=Vt.player,Ei=Vt.element;if(an.push(Rn),this.collectedEnterElements.length){const To=Ei[ka];if(To&&To.setForMove){if(To.previousTriggersValues&&To.previousTriggersValues.has(Vt.triggerName)){const ng=To.previousTriggersValues.get(Vt.triggerName),jf=this.statesByElement.get(Vt.element);jf&&jf[Vt.triggerName]&&(jf[Vt.triggerName].value=ng)}return void Rn.destroy()}}const dc=!V||!this.driver.containsElement(V,Ei),js=Ue.get(Ei),Nf=ue.get(Ei),Lr=this._buildInstruction(Vt,r,Nf,js,dc);if(Lr.errors&&Lr.errors.length)return void Sr.push(Lr);if(dc)return Rn.onStart(()=>Jp(Ei,Lr.fromStyles)),Rn.onDestroy(()=>uc(Ei,Lr.toStyles)),void s.push(Rn);if(Vt.isFallbackTransition)return Rn.onStart(()=>Jp(Ei,Lr.fromStyles)),Rn.onDestroy(()=>uc(Ei,Lr.toStyles)),void s.push(Rn);const V3=[];Lr.timelines.forEach(To=>{To.stretchStartingKeyframe=!0,this.disabledNodes.has(To.element)||V3.push(To)}),Lr.timelines=V3,r.append(Ei,Lr.timelines),h.push({instruction:Lr,player:Rn,element:Ei}),Lr.queriedElements.forEach(To=>so(m,To,[]).push(Rn)),Lr.preStyleProps.forEach((To,ng)=>{const jf=Object.keys(To);if(jf.length){let rg=w.get(ng);rg||w.set(ng,rg=new Set),jf.forEach(IO=>rg.add(IO))}}),Lr.postStyleProps.forEach((To,ng)=>{const jf=Object.keys(To);let rg=k.get(ng);rg||k.set(ng,rg=new Set),jf.forEach(IO=>rg.add(IO))})});if(Sr.length){const ut=[];Sr.forEach(Mt=>{ut.push(function qt(n,e){return new ot(3505,sn)}())}),an.forEach(Mt=>Mt.destroy()),this.reportError(ut)}const Or=new Map,Ps=new Map;h.forEach(ut=>{const Mt=ut.element;r.has(Mt)&&(Ps.set(Mt,Mt),this._beforeAnimationBuild(ut.player.namespaceId,ut.instruction,Or))}),s.forEach(ut=>{const Mt=ut.element;this._getPreviousPlayers(Mt,!1,ut.namespaceId,ut.triggerName,null).forEach(Rn=>{so(Or,Mt,[]).push(Rn),Rn.destroy()})});const Fs=Ce.filter(ut=>KP(ut,w,k)),Ns=new Map;GP(Ns,this.driver,xe,k,ll).forEach(ut=>{KP(ut,w,k)&&Fs.push(ut)});const Ou=new Map;ee.forEach((ut,Mt)=>{GP(Ou,this.driver,new Set(ut),w,"!")}),Fs.forEach(ut=>{const Mt=Ns.get(ut),Vt=Ou.get(ut);Ns.set(ut,Object.assign(Object.assign({},Mt),Vt))});const fl=[],Cv=[],Dv={};h.forEach(ut=>{const{element:Mt,player:Vt,instruction:Rn}=ut;if(r.has(Mt)){if(N.has(Mt))return Vt.onDestroy(()=>uc(Mt,Rn.toStyles)),Vt.disabled=!0,Vt.overrideTotalTime(Rn.totalTime),void s.push(Vt);let Ei=Dv;if(Ps.size>1){let js=Mt;const Nf=[];for(;js=js.parentNode;){const Lr=Ps.get(js);if(Lr){Ei=Lr;break}Nf.push(js)}Nf.forEach(Lr=>Ps.set(Lr,Ei))}const dc=this._buildAnimation(Vt.namespaceId,Rn,Or,c,Ou,Ns);if(Vt.setRealPlayer(dc),Ei===Dv)fl.push(Vt);else{const js=this.playersByElement.get(Ei);js&&js.length&&(Vt.parentPlayer=ul(js)),s.push(Vt)}}else Jp(Mt,Rn.fromStyles),Vt.onDestroy(()=>uc(Mt,Rn.toStyles)),Cv.push(Vt),N.has(Mt)&&s.push(Vt)}),Cv.forEach(ut=>{const Mt=c.get(ut.element);if(Mt&&Mt.length){const Vt=ul(Mt);ut.setRealPlayer(Vt)}}),s.forEach(ut=>{ut.parentPlayer?ut.syncPlayerEvents(ut.parentPlayer):ut.destroy()});for(let ut=0;ut<Ce.length;ut++){const Mt=Ce[ut],Vt=Mt[ka];if(wv(Mt,Ek),Vt&&Vt.hasAnimation)continue;let Rn=[];if(m.size){let dc=m.get(Mt);dc&&dc.length&&Rn.push(...dc);let js=this.driver.query(Mt,eO,!0);for(let Nf=0;Nf<js.length;Nf++){let Lr=m.get(js[Nf]);Lr&&Lr.length&&Rn.push(...Lr)}}const Ei=Rn.filter(dc=>!dc.destroyed);Ei.length?GF(this,Mt,Ei):this.processLeaveNode(Mt)}return Ce.length=0,fl.forEach(ut=>{this.players.push(ut),ut.onDone(()=>{ut.destroy();const Mt=this.players.indexOf(ut);this.players.splice(Mt,1)}),ut.play()}),fl}elementContainsData(e,t){let r=!1;const s=t[ka];return s&&s.setForRemoval&&(r=!0),this.playersByElement.has(t)&&(r=!0),this.playersByQueriedElement.has(t)&&(r=!0),this.statesByElement.has(t)&&(r=!0),this._fetchNamespace(e).elementContainsData(t)||r}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,r,s,c){let h=[];if(t){const m=this.playersByQueriedElement.get(e);m&&(h=m)}else{const m=this.playersByElement.get(e);if(m){const w=!c||c==Ox;m.forEach(k=>{k.queued||!w&&k.triggerName!=s||h.push(k)})}}return(r||s)&&(h=h.filter(m=>!(r&&r!=m.namespaceId||s&&s!=m.triggerName))),h}_beforeAnimationBuild(e,t,r){const c=t.element,h=t.isRemovalTransition?void 0:e,m=t.isRemovalTransition?void 0:t.triggerName;for(const w of t.timelines){const k=w.element,N=k!==c,V=so(r,k,[]);this._getPreviousPlayers(k,N,h,m,t.toState).forEach(ee=>{const ue=ee.getRealPlayer();ue.beforeDestroy&&ue.beforeDestroy(),ee.destroy(),V.push(ee)})}Jp(c,t.fromStyles)}_buildAnimation(e,t,r,s,c,h){const m=t.triggerName,w=t.element,k=[],N=new Set,V=new Set,W=t.timelines.map(ue=>{const me=ue.element;N.add(me);const Ce=me[ka];if(Ce&&Ce.removedBeforeQueried)return new ac(ue.duration,ue.delay);const Oe=me!==w,xe=function UF(n){const e=[];return WP(n,e),e}((r.get(me)||jF).map(Or=>Or.getRealPlayer())).filter(Or=>!!Or.element&&Or.element===me),Ue=c.get(me),vt=h.get(me),an=Sk(0,this._normalizer,0,ue.keyframes,Ue,vt),Sr=this._buildPlayer(ue,an,xe);if(ue.subTimeline&&s&&V.add(me),Oe){const Or=new pO(e,m,me);Or.setRealPlayer(Sr),k.push(Or)}return Sr});k.forEach(ue=>{so(this.playersByQueriedElement,ue.element,[]).push(ue),ue.onDone(()=>function VF(n,e,t){let r;if(n instanceof Map){if(r=n.get(e),r){if(r.length){const s=r.indexOf(t);r.splice(s,1)}0==r.length&&n.delete(e)}}else if(r=n[e],r){if(r.length){const s=r.indexOf(t);r.splice(s,1)}0==r.length&&delete n[e]}return r}(this.playersByQueriedElement,ue.element,ue))}),N.forEach(ue=>Aa(ue,RP));const ee=ul(W);return ee.onDestroy(()=>{N.forEach(ue=>wv(ue,RP)),uc(w,t.toStyles)}),V.forEach(ue=>{so(s,ue,[]).push(ee)}),ee}_buildPlayer(e,t,r){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,r):new ac(e.duration,e.delay)}}class pO{constructor(e,t,r){this.namespaceId=e,this.triggerName=t,this.element=r,this._player=new ac,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(r=>vv(e,t,void 0,r))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){so(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function Bk(n){return n&&1===n.nodeType}function HP(n,e){const t=n.style.display;return n.style.display=null!=e?e:"none",t}function GP(n,e,t,r,s){const c=[];t.forEach(w=>c.push(HP(w)));const h=[];r.forEach((w,k)=>{const N={};w.forEach(V=>{const W=N[V]=e.computeStyle(k,V,s);(!W||0==W.length)&&(k[ka]=BF,h.push(k))}),n.set(k,N)});let m=0;return t.forEach(w=>HP(w,c[m++])),h}function UP(n,e){const t=new Map;if(n.forEach(m=>t.set(m,[])),0==e.length)return t;const s=new Set(e),c=new Map;function h(m){if(!m)return 1;let w=c.get(m);if(w)return w;const k=m.parentNode;return w=t.has(k)?k:s.has(k)?1:h(k),c.set(m,w),w}return e.forEach(m=>{const w=h(m);1!==w&&t.get(w).push(m)}),t}function Aa(n,e){var t;null===(t=n.classList)||void 0===t||t.add(e)}function wv(n,e){var t;null===(t=n.classList)||void 0===t||t.remove(e)}function GF(n,e,t){ul(t).onDone(()=>n.processLeaveNode(e))}function WP(n,e){for(let t=0;t<n.length;t++){const r=n[t];r instanceof Kp?WP(r.players,e):e.push(r)}}function KP(n,e,t){const r=t.get(n);if(!r)return!1;let s=e.get(n);return s?r.forEach(c=>s.add(c)):e.set(n,r),t.delete(n),!0}class zk{constructor(e,t,r){this.bodyNode=e,this._driver=t,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(s,c)=>{},this._transitionEngine=new qF(e,t,r),this._timelineEngine=new OF(e,t,r),this._transitionEngine.onRemovalComplete=(s,c)=>this.onRemovalComplete(s,c)}registerTrigger(e,t,r,s,c){const h=e+"-"+s;let m=this._triggerCache[h];if(!m){const w=[],N=iO(this._driver,c,w,[]);if(w.length)throw function ke(n,e){return new ot(3404,sn)}();m=function RF(n,e,t){return new IF(n,e,t)}(s,N,this._normalizer),this._triggerCache[h]=m}this._transitionEngine.registerTrigger(t,s,m)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,r,s){this._transitionEngine.insertNode(e,t,r,s)}onRemove(e,t,r,s){this._transitionEngine.removeNode(e,t,s||!1,r)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,r,s){if("@"==r.charAt(0)){const[c,h]=wP(r);this._timelineEngine.command(c,t,h,s)}else this._transitionEngine.trigger(e,t,r,s)}listen(e,t,r,s,c){if("@"==r.charAt(0)){const[h,m]=wP(r);return this._timelineEngine.listen(h,t,m,c)}return this._transitionEngine.listen(e,t,r,s,c)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let QF=(()=>{class n{constructor(t,r,s){this._element=t,this._startStyles=r,this._endStyles=s,this._state=0;let c=n.initialStylesByElement.get(t);c||n.initialStylesByElement.set(t,c={}),this._initialStyles=c}start(){this._state<1&&(this._startStyles&&uc(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(uc(this._element,this._initialStyles),this._endStyles&&(uc(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Jp(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Jp(this._element,this._endStyles),this._endStyles=null),uc(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function gO(n){let e=null;const t=Object.keys(n);for(let r=0;r<t.length;r++){const s=t[r];YF(s)&&(e=e||{},e[s]=n[s])}return e}function YF(n){return"display"===n||"position"===n}class QP{constructor(e,t,r,s){this.element=e,this.keyframes=t,this.options=r,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,r){return e.animate(t,r)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};if(this.hasStarted()){const t=this._finalKeyframe;Object.keys(t).forEach(r=>{"offset"!=r&&(e[r]=this._finished?t[r]:LP(this.element,r))})}this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}class ZF{validateStyleProperty(e){return EP(e)}matchesElement(e,t){return!1}containsElement(e,t){return CP(e,t)}getParentElement(e){return ZT(e)}query(e,t,r){return DP(e,t,r)}computeStyle(e,t,r){return window.getComputedStyle(e)[t]}animate(e,t,r,s,c,h=[]){const w={duration:r,delay:s,fill:0==s?"both":"forwards"};c&&(w.easing=c);const k={},N=h.filter(W=>W instanceof QP);(function tF(n,e){return 0===n||0===e})(r,s)&&N.forEach(W=>{let ee=W.currentSnapshot;Object.keys(ee).forEach(ue=>k[ue]=ee[ue])}),t=function nF(n,e,t){const r=Object.keys(t);if(r.length&&e.length){let c=e[0],h=[];if(r.forEach(m=>{c.hasOwnProperty(m)||h.push(m),c[m]=t[m]}),h.length)for(var s=1;s<e.length;s++){let m=e[s];h.forEach(function(w){m[w]=LP(n,w)})}}return e}(e,t=t.map(W=>Lf(W,!1)),k);const V=function KF(n,e){let t=null,r=null;return Array.isArray(e)&&e.length?(t=gO(e[0]),e.length>1&&(r=gO(e[e.length-1]))):e&&(t=gO(e)),t||r?new QF(n,t,r):null}(e,t);return new QP(e,t,w,V)}}let XF=(()=>{class n extends Dx{constructor(t,r){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(r.body,{id:"0",encapsulation:Po.None,styles:[],data:{animation:[]}})}build(t){const r=this._nextAnimationId.toString();this._nextAnimationId++;const s=Array.isArray(t)?dv(t):t;return YP(this._renderer,null,r,"register",[s]),new JF(r,this._renderer)}}return n.\u0275fac=function(t){return new(t||n)(Pe(nu),Pe(te))},n.\u0275prov=Qe({token:n,factory:n.\u0275fac}),n})();class JF extends class GT{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new eN(this._id,e,t||{},this._renderer)}}class eN{constructor(e,t,r,s){this.id=e,this.element=t,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return YP(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(e){this._command("setPosition",e)}getPosition(){var e,t;return null!==(t=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}}function YP(n,e,t,r,s){return n.setProperty(e,`@@${t}:${r}`,s)}const ZP="@.disabled";let tN=(()=>{class n{constructor(t,r,s){this.delegate=t,this.engine=r,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),r.onRemovalComplete=(c,h)=>{const m=null==h?void 0:h.parentNode(c);m&&h.removeChild(m,c)}}createRenderer(t,r){const c=this.delegate.createRenderer(t,r);if(!(t&&r&&r.data&&r.data.animation)){let N=this._rendererCache.get(c);return N||(N=new XP("",c,this.engine),this._rendererCache.set(c,N)),N}const h=r.id,m=r.id+"-"+this._currentId;this._currentId++,this.engine.register(m,t);const w=N=>{Array.isArray(N)?N.forEach(w):this.engine.registerTrigger(h,m,t,N.name,N)};return r.data.animation.forEach(w),new nN(this,m,c,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,r,s){t>=0&&t<this._microtaskId?this._zone.run(()=>r(s)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(c=>{const[h,m]=c;h(m)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([r,s]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return n.\u0275fac=function(t){return new(t||n)(Pe(nu),Pe(zk),Pe(Kn))},n.\u0275prov=Qe({token:n,factory:n.\u0275fac}),n})();class XP{constructor(e,t,r){this.namespaceId=e,this.delegate=t,this.engine=r,this.destroyNode=this.delegate.destroyNode?s=>t.destroyNode(s):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,r,s=!0){this.delegate.insertBefore(e,t,r),this.engine.onInsert(this.namespaceId,t,e,s)}removeChild(e,t,r){this.engine.onRemove(this.namespaceId,t,this.delegate,r)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,r,s){this.delegate.setAttribute(e,t,r,s)}removeAttribute(e,t,r){this.delegate.removeAttribute(e,t,r)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,r,s){this.delegate.setStyle(e,t,r,s)}removeStyle(e,t,r){this.delegate.removeStyle(e,t,r)}setProperty(e,t,r){"@"==t.charAt(0)&&t==ZP?this.disableAnimations(e,!!r):this.delegate.setProperty(e,t,r)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,r){return this.delegate.listen(e,t,r)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class nN extends XP{constructor(e,t,r,s){super(t,r,s),this.factory=e,this.namespaceId=t}setProperty(e,t,r){"@"==t.charAt(0)?"."==t.charAt(1)&&t==ZP?this.disableAnimations(e,r=void 0===r||!!r):this.engine.process(this.namespaceId,e,t.substr(1),r):this.delegate.setProperty(e,t,r)}listen(e,t,r){if("@"==t.charAt(0)){const s=function rN(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(e);let c=t.substr(1),h="";return"@"!=c.charAt(0)&&([c,h]=function iN(n){const e=n.indexOf(".");return[n.substring(0,e),n.substr(e+1)]}(c)),this.engine.listen(this.namespaceId,s,c,h,m=>{this.factory.scheduleListenerCallback(m._data||-1,r,m)})}return this.delegate.listen(e,t,r)}}let oN=(()=>{class n extends zk{constructor(t,r,s){super(t.body,r,s)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(t){return new(t||n)(Pe(te),Pe(XT),Pe(cO))},n.\u0275prov=Qe({token:n,factory:n.\u0275fac}),n})();const JP=new Ot("AnimationModuleType"),e3=[{provide:Dx,useClass:XF},{provide:cO,useFactory:function sN(){return new EF}},{provide:zk,useClass:oN},{provide:nu,useFactory:function aN(n,e,t){return new tN(n,e,t)},deps:[wu,zk,Kn]}],t3=[{provide:XT,useFactory:()=>new ZF},{provide:JP,useValue:"BrowserAnimations"},...e3],lN=[{provide:XT,useClass:kP},{provide:JP,useValue:"NoopAnimations"},...e3];let cN=(()=>{class n{static withConfig(t){return{ngModule:n,providers:t.disableAnimations?lN:t3}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ri({type:n}),n.\u0275inj=Vi({providers:t3,imports:[Vw]}),n})(),uN=(()=>{class n{constructor(t){this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container",r=this._document.querySelectorAll(`.${t}`);if(null==r?void 0:r.length)this._containerElement=r[0];else{const s=this._document.createElement("div");s.classList.add(t),this._document.body.appendChild(s),this._containerElement=s}}}return n.\u0275fac=function(t){return new(t||n)(Pe(te))},n.\u0275prov=Qe({token:n,factory:n.\u0275fac}),n})();class dN extends Zr{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new ml;return this._value}next(e){super.next(this._value=e)}}function n3(n){for(let e in n){let t=n[e]||"";switch(e){case"display":n.display="flex"===t?["-webkit-flex","flex"]:"inline-flex"===t?["-webkit-inline-flex","inline-flex"]:t;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":n["-webkit-"+e]=t;break;case"flex-direction":t=t||"row",n["-webkit-flex-direction"]=t,n["flex-direction"]=t;break;case"order":n.order=n["-webkit-"+e]=isNaN(+t)?"0":t}}return n}const mO="inline",Vk=["row","column","row-reverse","column-reverse"];function r3(n){let[e,t,r]=function i3(n){var e;n=null!==(e=null==n?void 0:n.toLowerCase())&&void 0!==e?e:"";let[t,r,s]=n.split(" ");return Vk.find(c=>c===t)||(t=Vk[0]),r===mO&&(r=s!==mO?s:"",s=mO),[t,fN(r),!!s]}(n);return function hN(n,e=null,t=!1){return{display:t?"inline-flex":"flex","box-sizing":"border-box","flex-direction":n,"flex-wrap":e||null}}(e,t,r)}function fN(n){if(n)switch(n.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":n="wrap-reverse";break;case"no":case"none":case"nowrap":n="nowrap";break;default:n="wrap"}return n}function Pf(){}class gN{constructor(e,t,r){this.nextOrObserver=e,this.error=t,this.complete=r}call(e,t){return t.subscribe(new mN(e,this.nextOrObserver,this.error,this.complete))}}class mN extends de{constructor(e,t,r,s){super(e),this._tapNext=Pf,this._tapError=Pf,this._tapComplete=Pf,this._tapError=r||Pf,this._tapComplete=s||Pf,ki(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||Pf,this._tapError=t.error||Pf,this._tapComplete=t.complete||Pf)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}const vN={provide:ty,useFactory:function yN(n,e){return()=>{if(Wl(e)){const t=Array.from(n.querySelectorAll(`[class*=${o3}]`)),r=/\bflex-layout-.+?\b/g;t.forEach(s=>{s.classList.contains(`${o3}ssr`)&&s.parentNode?s.parentNode.removeChild(s):s.className.replace(r,"")})}}},deps:[te,ws],multi:!0},o3="flex-layout-";let yO=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ri({type:n}),n.\u0275inj=Vi({providers:[vN]}),n})();class tg{constructor(e=!1,t="all",r="",s="",c=0){this.matches=e,this.mediaQuery=t,this.mqAlias=r,this.suffix=s,this.priority=c,this.property=""}clone(){return new tg(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let bN=(()=>{class n{constructor(){this.stylesheet=new Map}addStyleToElement(t,r,s){const c=this.stylesheet.get(t);c?c.set(r,s):this.stylesheet.set(t,new Map([[r,s]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(t,r){const s=this.stylesheet.get(t);let c="";if(s){const h=s.get(r);("number"==typeof h||"string"==typeof h)&&(c=h+"")}return c}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=Qe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const vO={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},dl=new Ot("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>vO}),xv=new Ot("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),bO=new Ot("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function s3(n,e){return n=n?n.clone():new tg,e&&(n.mqAlias=e.alias,n.mediaQuery=e.mediaQuery,n.suffix=e.suffix,n.priority=e.priority),n}class qr{constructor(){this.shouldCache=!0}sideEffect(e,t,r){}}let yr=(()=>{class n{constructor(t,r,s,c){this._serverStylesheet=t,this._serverModuleLoaded=r,this._platformId=s,this.layoutConfig=c}applyStyleToElement(t,r,s=null){let c={};"string"==typeof r&&(c[r]=s,r=c),c=this.layoutConfig.disableVendorPrefixes?r:n3(r),this._applyMultiValueStyleToElement(c,t)}applyStyleToElements(t,r=[]){const s=this.layoutConfig.disableVendorPrefixes?t:n3(t);r.forEach(c=>{this._applyMultiValueStyleToElement(s,c)})}getFlowDirection(t){const r="flex-direction";let s=this.lookupStyle(t,r);return[s||"row",this.lookupInlineStyle(t,r)||nl(this._platformId)&&this._serverModuleLoaded?s:""]}hasWrap(t){return"wrap"===this.lookupStyle(t,"flex-wrap")}lookupAttributeValue(t,r){var s;return null!==(s=t.getAttribute(r))&&void 0!==s?s:""}lookupInlineStyle(t,r){return Wl(this._platformId)?t.style.getPropertyValue(r):function wN(n,e){var t;return null!==(t=a3(n)[e])&&void 0!==t?t:""}(t,r)}lookupStyle(t,r,s=!1){let c="";return t&&((c=this.lookupInlineStyle(t,r))||(Wl(this._platformId)?s||(c=getComputedStyle(t).getPropertyValue(r)):this._serverModuleLoaded&&(c=this._serverStylesheet.getStyleForElement(t,r)))),c?c.trim():""}_applyMultiValueStyleToElement(t,r){Object.keys(t).sort().forEach(s=>{const c=t[s],h=Array.isArray(c)?c:[c];h.sort();for(let m of h)m=m?m+"":"",Wl(this._platformId)||!this._serverModuleLoaded?Wl(this._platformId)?r.style.setProperty(s,m):xN(r,s,m):this._serverStylesheet.addStyleToElement(r,s,m)})}}return n.\u0275fac=function(t){return new(t||n)(Pe(bN),Pe(xv),Pe(ws),Pe(dl))},n.\u0275prov=Qe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function xN(n,e,t){e=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const r=a3(n);r[e]=null!=t?t:"",function _N(n,e){let t="";for(const r in e)e[r]&&(t+=`${r}:${e[r]};`);n.setAttribute("style",t)}(n,r)}function a3(n){const e={},t=n.getAttribute("style");if(t){const r=t.split(/;+/g);for(let s=0;s<r.length;s++){const c=r[s].trim();if(c.length>0){const h=c.indexOf(":");if(-1===h)throw new Error(`Invalid CSS style: ${c}`);e[c.substr(0,h).trim()]=c.substr(h+1).trim()}}}return e}function Px(n,e){return(e&&e.priority||0)-(n&&n.priority||0)}function SN(n,e){return(n.priority||0)-(e.priority||0)}let wO=(()=>{class n{constructor(t,r,s){this._zone=t,this._platformId=r,this._document=s,this.source=new dN(new tg(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const t=[];return this.registry.forEach((r,s)=>{r.matches&&t.push(s)}),t}isActive(t){var r;const s=this.registry.get(t);return null!==(r=null==s?void 0:s.matches)&&void 0!==r?r:this.registerQuery(t).some(c=>c.matches)}observe(t,r=!1){if(t&&t.length){const s=this._observable$.pipe(Cf(h=>!r||t.indexOf(h.mediaQuery)>-1));return ju(new z(h=>{const m=this.registerQuery(t);if(m.length){const w=m.pop();m.forEach(k=>{h.next(k)}),this.source.next(w)}h.complete()}),s)}return this._observable$}registerQuery(t){const r=Array.isArray(t)?t:[t],s=[];return function EN(n,e){const t=n.filter(r=>!l3[r]);if(t.length>0){const r=t.join(", ");try{const s=e.createElement("style");s.setAttribute("type","text/css"),s.styleSheet||s.appendChild(e.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${r} {.fx-query-test{ }}\n`)),e.head.appendChild(s),t.forEach(c=>l3[c]=s)}catch(s){console.error(s)}}}(r,this._document),r.forEach(c=>{const h=w=>{this._zone.run(()=>this.source.next(new tg(w.matches,c)))};let m=this.registry.get(c);m||(m=this.buildMQL(c),m.addListener(h),this.pendingRemoveListenerFns.push(()=>m.removeListener(h)),this.registry.set(c,m)),m.matches&&s.push(new tg(!0,c))}),s}ngOnDestroy(){let t;for(;t=this.pendingRemoveListenerFns.pop();)t()}buildMQL(t){return function CN(n,e){return e&&window.matchMedia("all").addListener?window.matchMedia(n):{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(t,Wl(this._platformId))}}return n.\u0275fac=function(t){return new(t||n)(Pe(Kn),Pe(ws),Pe(te))},n.\u0275prov=Qe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const l3={},DN=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],c3="(orientation: portrait) and (max-width: 599.98px)",u3="(orientation: landscape) and (max-width: 959.98px)",d3="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",f3="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",h3="(orientation: portrait) and (min-width: 840px)",p3="(orientation: landscape) and (min-width: 1280px)",Tu={HANDSET:`${c3}, ${u3}`,TABLET:`${d3} , ${f3}`,WEB:`${h3}, ${p3} `,HANDSET_PORTRAIT:`${c3}`,TABLET_PORTRAIT:`${d3} `,WEB_PORTRAIT:`${h3}`,HANDSET_LANDSCAPE:`${u3}`,TABLET_LANDSCAPE:`${f3}`,WEB_LANDSCAPE:`${p3}`},kN=[{alias:"handset",priority:2e3,mediaQuery:Tu.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:Tu.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:Tu.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:Tu.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:Tu.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:Tu.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:Tu.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:Tu.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:Tu.WEB_PORTRAIT,overlapping:!0}],AN=/(\.|-|_)/g;function RN(n){let e=n.length>0?n.charAt(0):"",t=n.length>1?n.slice(1):"";return e.toUpperCase()+t}const ON=new Ot("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const n=Gg(bO),e=Gg(dl),t=[].concat.apply([],(n||[]).map(s=>Array.isArray(s)?s:[s]));return function TN(n,e=[]){const t={};return n.forEach(r=>{t[r.alias]=r}),e.forEach(r=>{t[r.alias]?function Mu(n,...e){if(null==n)throw TypeError("Cannot convert undefined or null to object");for(let t of e)if(null!=t)for(let r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return n}(t[r.alias],r):t[r.alias]=r}),function MN(n){return n.forEach(e=>{e.suffix||(e.suffix=function IN(n){return n.replace(AN,"|").split("|").map(RN).join("")}(e.alias),e.overlapping=!!e.overlapping)}),n}(Object.keys(t).map(r=>t[r]))}((e.disableDefaultBps?[]:DN).concat(e.addOrientationBps?kN:[]),t)}});let xO=(()=>{class n{constructor(t){this.findByMap=new Map,this.items=[...t].sort(SN)}findByAlias(t){return t?this.findWithPredicate(t,r=>r.alias===t):null}findByQuery(t){return this.findWithPredicate(t,r=>r.mediaQuery===t)}get overlappings(){return this.items.filter(t=>t.overlapping)}get aliases(){return this.items.map(t=>t.alias)}get suffixes(){return this.items.map(t=>{var r;return null!==(r=null==t?void 0:t.suffix)&&void 0!==r?r:""})}findWithPredicate(t,r){var s;let c=this.findByMap.get(t);return c||(c=null!==(s=this.items.find(r))&&void 0!==s?s:null,this.findByMap.set(t,c)),null!=c?c:null}}return n.\u0275fac=function(t){return new(t||n)(Pe(ON))},n.\u0275prov=Qe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const _v="print",LN={alias:_v,mediaQuery:_v,priority:1e3};let PN=(()=>{class n{constructor(t,r,s){this.breakpoints=t,this.layoutConfig=r,this._document=s,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new FN,this.deactivations=[]}withPrintQuery(t){return[...t,_v]}isPrintEvent(t){return t.mediaQuery.startsWith(_v)}get printAlias(){var t;return[...null!==(t=this.layoutConfig.printWithBreakpoints)&&void 0!==t?t:[]]}get printBreakPoints(){return this.printAlias.map(t=>this.breakpoints.findByAlias(t)).filter(t=>null!==t)}getEventBreakpoints({mediaQuery:t}){const r=this.breakpoints.findByQuery(t);return(r?[...this.printBreakPoints,r]:this.printBreakPoints).sort(Px)}updateEvent(t){var r;let s=this.breakpoints.findByQuery(t.mediaQuery);return this.isPrintEvent(t)&&(s=this.getEventBreakpoints(t)[0],t.mediaQuery=null!==(r=null==s?void 0:s.mediaQuery)&&void 0!==r?r:""),s3(t,s)}registerBeforeAfterPrintHooks(t){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const r=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(t,this.getEventBreakpoints(new tg(!0,_v))),t.updateStyles())},s=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(t),t.updateStyles())};this._document.defaultView.addEventListener("beforeprint",r),this._document.defaultView.addEventListener("afterprint",s),this.beforePrintEventListeners.push(r),this.afterPrintEventListeners.push(s)}interceptEvents(t){return r=>{this.isPrintEvent(r)?r.matches&&!this.isPrinting?(this.startPrinting(t,this.getEventBreakpoints(r)),t.updateStyles()):!r.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(t),t.updateStyles()):this.collectActivations(t,r)}}blockPropagation(){return t=>!(this.isPrinting||this.isPrintEvent(t))}startPrinting(t,r){this.isPrinting=!0,this.formerActivations=t.activatedBreakpoints,t.activatedBreakpoints=this.queue.addPrintBreakpoints(r)}stopPrinting(t){t.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(t,r){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!r.matches){const s=this.breakpoints.findByQuery(r.mediaQuery);if(s){const c=this.formerActivations&&this.formerActivations.includes(s),h=!this.formerActivations&&t.activatedBreakpoints.includes(s);(c||h)&&(this.deactivations.push(s),this.deactivations.sort(Px))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("beforeprint",t)),this.afterPrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("afterprint",t)))}}return n.\u0275fac=function(t){return new(t||n)(Pe(xO),Pe(dl),Pe(te))},n.\u0275prov=Qe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class FN{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(e){return e.push(LN),e.sort(Px),e.forEach(t=>this.addBreakpoint(t)),this.printBreakpoints}addBreakpoint(e){e&&void 0===this.printBreakpoints.find(r=>r.mediaQuery===e.mediaQuery)&&(this.printBreakpoints=function NN(n){var e;return null!==(e=null==n?void 0:n.mediaQuery.startsWith(_v))&&void 0!==e&&e}(e)?[e,...this.printBreakpoints]:[...this.printBreakpoints,e])}clear(){this.printBreakpoints=[]}}let _r=(()=>{class n{constructor(t,r,s){this.matchMedia=t,this.breakpoints=r,this.hook=s,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new Zr,this.observeActivations()}get activatedAlias(){var t,r;return null!==(r=null===(t=this.activatedBreakpoints[0])||void 0===t?void 0:t.alias)&&void 0!==r?r:""}set activatedBreakpoints(t){this._activatedBreakpoints=[...t]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(t){this._useFallbacks=t}onMediaChange(t){const r=this.findByQuery(t.mediaQuery);if(r){t=s3(t,r);const s=this.activatedBreakpoints.indexOf(r);t.matches&&-1===s?(this._activatedBreakpoints.push(r),this._activatedBreakpoints.sort(Px),this.updateStyles()):!t.matches&&-1!==s&&(this._activatedBreakpoints.splice(s,1),this._activatedBreakpoints.sort(Px),this.updateStyles())}}init(t,r,s,c,h=[]){g3(this.updateMap,t,r,s),g3(this.clearMap,t,r,c),this.buildElementKeyMap(t,r),this.watchExtraTriggers(t,r,h)}getValue(t,r,s){const c=this.elementMap.get(t);if(c){const h=void 0!==s?c.get(s):this.getActivatedValues(c,r);if(h)return h.get(r)}}hasValue(t,r){const s=this.elementMap.get(t);if(s){const c=this.getActivatedValues(s,r);if(c)return void 0!==c.get(r)||!1}return!1}setValue(t,r,s,c){var h;let m=this.elementMap.get(t);if(m){const k=(null!==(h=m.get(c))&&void 0!==h?h:new Map).set(r,s);m.set(c,k),this.elementMap.set(t,m)}else m=(new Map).set(c,(new Map).set(r,s)),this.elementMap.set(t,m);const w=this.getValue(t,r);void 0!==w&&this.updateElement(t,r,w)}trackValue(t,r){return this.subject.asObservable().pipe(Cf(s=>s.element===t&&s.key===r))}updateStyles(){this.elementMap.forEach((t,r)=>{const s=new Set(this.elementKeyMap.get(r));let c=this.getActivatedValues(t);c&&c.forEach((h,m)=>{this.updateElement(r,m,h),s.delete(m)}),s.forEach(h=>{if(c=this.getActivatedValues(t,h),c){const m=c.get(h);this.updateElement(r,h,m)}else this.clearElement(r,h)})})}clearElement(t,r){const s=this.clearMap.get(t);if(s){const c=s.get(r);c&&(c(),this.subject.next({element:t,key:r,value:""}))}}updateElement(t,r,s){const c=this.updateMap.get(t);if(c){const h=c.get(r);h&&(h(s),this.subject.next({element:t,key:r,value:s}))}}releaseElement(t){const r=this.watcherMap.get(t);r&&(r.forEach(c=>c.unsubscribe()),this.watcherMap.delete(t));const s=this.elementMap.get(t);s&&(s.forEach((c,h)=>s.delete(h)),this.elementMap.delete(t))}triggerUpdate(t,r){const s=this.elementMap.get(t);if(s){const c=this.getActivatedValues(s,r);c&&(r?this.updateElement(t,r,c.get(r)):c.forEach((h,m)=>this.updateElement(t,m,h)))}}buildElementKeyMap(t,r){let s=this.elementKeyMap.get(t);s||(s=new Set,this.elementKeyMap.set(t,s)),s.add(r)}watchExtraTriggers(t,r,s){if(s&&s.length){let c=this.watcherMap.get(t);if(c||(c=new Map,this.watcherMap.set(t,c)),!c.get(r)){const m=ju(...s).subscribe(()=>{const w=this.getValue(t,r);this.updateElement(t,r,w)});c.set(r,m)}}}findByQuery(t){return this.breakpoints.findByQuery(t)}getActivatedValues(t,r){for(let c=0;c<this.activatedBreakpoints.length;c++){const m=t.get(this.activatedBreakpoints[c].alias);if(m&&(void 0===r||m.has(r)&&null!=m.get(r)))return m}if(!this._useFallbacks)return;const s=t.get("");return void 0===r||s&&s.has(r)?s:void 0}observeActivations(){const t=this.breakpoints.items.map(r=>r.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(t)).pipe(function pN(n,e,t){return function(s){return s.lift(new gN(n,e,t))}}(this.hook.interceptEvents(this)),Cf(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return n.\u0275fac=function(t){return new(t||n)(Pe(wO),Pe(xO),Pe(PN))},n.\u0275prov=Qe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function g3(n,e,t,r){var s;if(void 0!==r){const c=null!==(s=n.get(e))&&void 0!==s?s:new Map;c.set(t,r),n.set(e,c)}}let Tr=(()=>{class n{constructor(t,r,s,c){this.elementRef=t,this.styleBuilder=r,this.styler=s,this.marshal=c,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new Zr,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,this.marshal.activatedAlias)}ngOnChanges(t){Object.keys(t).forEach(r=>{if(-1!==this.inputs.indexOf(r)){const s=r.split(".").slice(1).join(".");this.setValue(t[r].currentValue,s)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(t=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),t)}addStyles(t,r){const s=this.styleBuilder,c=s.shouldCache;let h=this.styleCache.get(t);(!h||!c)&&(h=s.buildStyles(t,r),c&&this.styleCache.set(t,h)),this.mru=Object.assign({},h),this.applyStyleToElement(h),s.sideEffect(t,h,r)}clearStyles(){Object.keys(this.mru).forEach(t=>{this.mru[t]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(t,r=!1){if(t){const[s,c]=this.styler.getFlowDirection(t);if(!c&&r){const h=r3(s);this.styler.applyStyleToElements(h,[t])}return s.trim()}return"row"}hasWrap(t){return this.styler.hasWrap(t)}applyStyleToElement(t,r,s=this.nativeElement){this.styler.applyStyleToElement(s,t,r)}setValue(t,r){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,r)}updateWithValue(t){this.currentValue!==t&&(this.addStyles(t),this.currentValue=t)}}return n.\u0275fac=function(t){return new(t||n)(be(xn),be(qr),be(yr),be(_r))},n.\u0275dir=pt({type:n,features:[Cl]}),n})(),E3=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ri({type:n}),n.\u0275inj=Vi({imports:[[yO]]}),n})(),i6=(()=>{class n extends qr{buildStyles(t,{display:r}){const s=r3(t);return Object.assign(Object.assign({},s),{display:"none"===r?r:s.display})}}return n.\u0275fac=function(){let e;return function(r){return(e||(e=Yt(n)))(r||n)}}(),n.\u0275prov=Qe({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const o6=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let s6=(()=>{class n extends Tr{constructor(t,r,s,c,h){super(t,s,r,c),this._config=h,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(t){var r;const c=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=null!==(r=D3.get(c))&&void 0!==r?r:new Map,D3.set(c,this.styleCache),this.currentValue!==t&&(this.addStyles(t,{display:c}),this.currentValue=t)}}return n.\u0275fac=function(t){return new(t||n)(be(xn),be(yr),be(i6),be(_r),be(dl))},n.\u0275dir=pt({type:n,features:[jt]}),n})(),C3=(()=>{class n extends s6{constructor(){super(...arguments),this.inputs=o6}}return n.\u0275fac=function(){let e;return function(r){return(e||(e=Yt(n)))(r||n)}}(),n.\u0275dir=pt({type:n,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[jt]}),n})();const D3=new Map;let R3=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ri({type:n}),n.\u0275inj=Vi({imports:[[yO,ox]]}),n})(),N3=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Ri({type:n}),n.\u0275inj=Vi({imports:[[yO]]}),n})(),k7=(()=>{class n{constructor(t,r){nl(r)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(t,r=[]){return{ngModule:n,providers:t.serverLoaded?[{provide:dl,useValue:Object.assign(Object.assign({},vO),t)},{provide:bO,useValue:r,multi:!0},{provide:xv,useValue:!0}]:[{provide:dl,useValue:Object.assign(Object.assign({},vO),t)},{provide:bO,useValue:r,multi:!0}]}}}return n.\u0275fac=function(t){return new(t||n)(Pe(xv),Pe(ws))},n.\u0275mod=Ri({type:n}),n.\u0275inj=Vi({imports:[[R3,E3,N3],R3,E3,N3]}),n})();function $n(n,e,t,r){return new(t||(t=Promise))(function(c,h){function m(N){try{k(r.next(N))}catch(V){h(V)}}function w(N){try{k(r.throw(N))}catch(V){h(V)}}function k(N){N.done?c(N.value):function s(c){return c instanceof t?c:new t(function(h){h(c)})}(N.value).then(m,w)}k((r=r.apply(n,e||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;var kO=Di(5);const Gk=new Map,AO=[].map,Z7=[].some,X7={}.hasOwnProperty,Ff="https://cdn.jsdelivr.net/npm/",J7=/^((?:@[^/@]+\/)?[^/@]+)(?:@([^/]+))?(?:\/(.*))?$/,e8=/^\d+\.\d+\.\d+(-[\w-.+]+)?$/,B3=/\.[^/]*$/,t8=["unpkg","jsdelivr","browser","main"];class Sv extends Error{constructor(e){super(e),this.name="RequireError"}}function z3(n){const e=J7.exec(n);return e&&{name:e[1],version:e[2],path:e[3]}}function q3(n){const e=`${Ff}${n.name}${n.version?`@${n.version}`:""}/package.json`;let t=Gk.get(e);return t||Gk.set(e,t=fetch(e).then(r=>{if(!r.ok)throw new Sv("unable to load package.json");return r.redirected&&!Gk.has(r.url)&&Gk.set(r.url,t),r.json()})),t}function RO(n){const e=new Map;function t(h){if("string"!=typeof h)return h;let m=e.get(h);return m||(m=new Promise((w,k)=>$n(this,void 0,void 0,function*(){try{const N=yield fetch(h);if(!N.ok)throw new Sv(`Unable to fetch module from ${h}`);const V=yield N.text(),W=[],ee=function a8(n){function e(t,r,s){const c=arguments.length;c<2?(s=t,r=[]):c<3&&(s=r,r="string"==typeof t?[]:t),n.push(Z7.call(r,s8)?h=>{const m={},w={exports:m};return Promise.all(AO.call(r,k=>"exports"==(k+="")?m:"module"===k?w:h(k))).then(k=>(s.apply(null,k),w.exports))}:h=>Promise.all(AO.call(r,h)).then(m=>"function"==typeof s?s.apply(null,m):s))}return e.amd={},e}(W);new Function("define",V)(ee);const me=W.shift();if("function"!=typeof me)throw new Sv(`Module did not call define() and cannot be loaded from ${h}`);const Ce=yield me(r(h));w(Ce)}catch(N){console.error(N),k(N instanceof Sv?N:new Sv(`Error loading module from ${h}`))}})),e.set(h,m)),m}function r(h){return m=>Promise.resolve(n(m,h)).then(t)}function c(h){return arguments.length>1?Promise.all(AO.call(arguments,r(null))).then(i8):r(null)(h)}return c.alias=function s(h){return RO((m,w)=>m in h&&(w=null,"string"!=typeof(m=h[m]))?m:n(m,w))},c.resolve=n,c}function i8(n){const e={};for(const t of n)for(const r in t)X7.call(t,r)&&(null==t[r]?Object.defineProperty(e,r,{get:o8(t,r)}):e[r]=t[r]);return e}function o8(n,e){return()=>n[e]}function s8(n){return"exports"==(n+="")||"module"===n}RO(function r8(n,e){return $n(this,void 0,void 0,function*(){if(n.startsWith(Ff)&&(n=n.substring(Ff.length)),/^(\w+:)|\/\//i.test(n))return n;if(/^[.]{0,2}\//i.test(n))return new URL(n,null==e?location:e).href;if(!n.length||/^[\s._]/.test(n)||/\s$/.test(n))throw new Sv("illegal name");const t=z3(n);if(!t)return`${Ff}${n}`;if(!t.version&&null!=e&&e.startsWith(Ff)){const s=yield q3(z3(e.substring(Ff.length)));t.version=s.dependencies&&s.dependencies[t.name]||s.peerDependencies&&s.peerDependencies[t.name]}if(t.path&&!B3.test(t.path)&&(t.path+=".js"),t.path&&t.version&&e8.test(t.version))return`${Ff}${t.name}@${t.version}/${t.path}`;const r=yield q3(t);return`${Ff}${r.name}@${r.version}/${t.path||function n8(n){for(const e of t8){const t=n[e];if("string"==typeof t)return B3.test(t)?t:`${t}.js`}}(r)||"index.js"}`})});const l8=["toolbar"],c8=["viz"];let u8=(()=>{class n{ngAfterViewInit(){return $n(this,void 0,void 0,function*(){yield this.render()})}render(){return $n(this,void 0,void 0,function*(){this.oldQLayout=JSON.parse(JSON.stringify(this.qLayout));const t={getLayout:()=>this.qLayout,selectHyperCubeCells:(...m)=>{},getEffectiveProperties:(...m)=>$n(this,void 0,void 0,function*(){return yield this.onVizMethod({name:"getEffectiveProperties",args:m})}),getHyperCubeReducedData:(...m)=>$n(this,void 0,void 0,function*(){return yield this.onVizMethod({name:"getHyperCubeReducedData",args:m})}),getHyperCubeData:(...m)=>$n(this,void 0,void 0,function*(){return yield this.onVizMethod({name:"getHyperCubeData",args:m})}),getHyperCubeStackData:(...m)=>$n(this,void 0,void 0,function*(){return yield this.onVizMethod({name:"getHyperCubeStackData",args:m})}),getHyperCubeContinuousData:(...m)=>$n(this,void 0,void 0,function*(){return yield this.onVizMethod({name:"getHyperCubeContinuousData",args:m})}),getStackedDataPages:(...m)=>this.qLayout.qHyperCube.qDataPages,getFullPropertyTree:()=>{},getHyperCubeTreeData:(...m)=>$n(this,void 0,void 0,function*(){return yield this.onVizMethod({name:"getHyperCubeTreeData",args:m})}),beginSelections:(...m)=>{},selectHyperCubeContinuousRange:(...m)=>$n(this,void 0,void 0,function*(){var w;yield null===(w=this.onSelections)||void 0===w?void 0:w.call(this,{selections:m,method:"selectHyperCubeContinuousRange"})}),selectHyperCubeValues:(...m)=>$n(this,void 0,void 0,function*(){var w;yield null===(w=this.onSelections)||void 0===w?void 0:w.call(this,{selections:m,method:"selectHyperCubeValues"})}),selectListObjectValues:(...m)=>$n(this,void 0,void 0,function*(){var w;yield null===(w=this.onSelections)||void 0===w?void 0:w.call(this,{selections:m,method:"selectListObjectValues"})}),selectPivotCells:(...m)=>$n(this,void 0,void 0,function*(){var w;yield null===(w=this.onSelections)||void 0===w?void 0:w.call(this,{selections:m,method:"selectPivotCells"})}),rangeSelectHyperCubeValues:(...m)=>$n(this,void 0,void 0,function*(){var w;yield null===(w=this.onSelections)||void 0===w?void 0:w.call(this,{selections:m,method:"rangeSelectHyperCubeValues"})}),resetMadeSelections:(...m)=>{},clearSelections:(...m)=>{},endSelections:(...m)=>{},removeListener:(...m)=>{},useKeyboard:(...m)=>{},on:(...m)=>{},getField:(...m)=>{},selectValues:(...m)=>{}};this.app=yield kO.EnigmaMocker.fromGenericObjects([t]),this.app.getMeasure=m=>$n(this,void 0,void 0,function*(){return{getMeasure:()=>$n(this,void 0,void 0,function*(){return yield this.onGetMeasure({measureId:m})}),getProperties:(...w)=>$n(this,void 0,void 0,function*(){return yield this.onGetMeasureProperties({measureId:m,args:w})})}});const r=this.app.getObject;this.app.getObject=m=>$n(this,void 0,void 0,function*(){return m===this.qLayout.qInfo.qId?yield r(this.qLayout.qInfo.qId):{getLayout:()=>$n(this,void 0,void 0,function*(){return yield this.onGetObject({objectId:m})})}}),this.app.getField=m=>$n(this,void 0,void 0,function*(){return{selectValues:(w,k,N)=>$n(this,void 0,void 0,function*(){return yield this.onSelectFieldValues({fieldId:m,arr:w,toggle:k,softlock:N})}),clear:()=>$n(this,void 0,void 0,function*(){return yield this.onClearField({fieldId:m})}),selectAll:w=>$n(this,void 0,void 0,function*(){return yield this.onFieldSelectAll({fieldId:m,softlock:w})}),selectPossible:w=>$n(this,void 0,void 0,function*(){return yield this.onFieldSelectPossible({fieldId:m,softlock:w})})}}),this.app.getFieldDescription=m=>$n(this,void 0,void 0,function*(){return this.onGetFieldDescription({fieldId:m})}),this.app.evaluate=m=>$n(this,void 0,void 0,function*(){return yield this.onEvaluate({expression:m})});const s=RO(m=>this.nebulaPackagesUrl?`${this.nebulaPackagesUrl}/${m}`:`https://unpkg.com/@nebula.js/${m}`).alias({"@nebula.js/stardust":kO}),c=[["sn-action-button@1.38.1","action-button"],["sn-bar-chart","barchart"],["sn-bullet-chart","bullet-chart"],["sn-combo-chart","combo-chart"],["sn-funnel-chart","funnel-chart"],["sn-grid-chart","sn-grid-chart"],["sn-kpi","kpi"],["sn-line-chart","line-chart"],["sn-mekko-chart","mekko"],["sn-org-chart","org"],["sn-pie-chart","piechart"],["sn-sankey-chart","sankey"],["sn-table","table"],["sn-video-player","video-player"],["sn-scatter-plot","scatterplot"],["sn-treemap","treemap"],["nebula-date-range-picker","qlik-date-picker"],["nebula-radar-chart","qlik-radar-chart"],["sn-pivot-table","pivot-table"],["sn-map","map"],["sn-text","sn-text"],["sn-distplot","distributionplot"]].map(m=>({name:m[1],load:()=>s(m[0])}));this.n=kO.embed(this.app,{types:c,themes:[{id:"customTheme",load:()=>$n(this,void 0,void 0,function*(){return this.theme})}],context:{theme:"customTheme"},flags:{IM_1869_HIDE_DIM_MEA_LINE:!0,CLIENT_IM_3365:!0}}),this.qLayout&&(this.viz=yield this.n.render({element:this.vizEl.nativeElement,id:this.qLayout.qInfo.qId}))})}destroyApp(){var t;null===(t=document.querySelector(`div[data-app-id='${this.app.id}']`))||void 0===t||t.remove()}ngOnDestroy(){this.destroyApp()}ngOnChanges(t){return $n(this,void 0,void 0,function*(){this.viz&&JSON.stringify(this.qLayout)!==JSON.stringify(this.oldQLayout)&&(this.viz.destroy(),this.destroyApp(),yield this.render())})}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=Hu({type:n,selectors:[["drayman-nebula-internal"]],viewQuery:function(t,r){if(1&t&&(q1(l8,5),q1(c8,5)),2&t){let s;z1(s=Km())&&(r.toolbarEl=s.first),z1(s=Km())&&(r.vizEl=s.first)}},inputs:{qLayout:"qLayout",theme:"theme",onSelections:"onSelections",onVizMethod:"onVizMethod",onGetMeasure:"onGetMeasure",onGetObject:"onGetObject",onSelectFieldValues:"onSelectFieldValues",onFieldSelectPossible:"onFieldSelectPossible",onFieldSelectAll:"onFieldSelectAll",onGetFieldDescription:"onGetFieldDescription",onEvaluate:"onEvaluate",onClearField:"onClearField",onGetMeasureProperties:"onGetMeasureProperties",nebulaPackagesUrl:"nebulaPackagesUrl"},features:[Cl],decls:5,vars:0,consts:[["fxLayout","column",1,"nebula-container"],["toolbar",""],[1,"viz"],["viz",""]],template:function(t,r){1&t&&(Em(0,"div",0),Kt(1,"div",null,1)(3,"div",2,3),Cm())},directives:[C3],styles:[".nebula-container[_ngcontent-%COMP%]{width:100%;margin:0;height:100%;min-width:100%;min-height:100%}.viz[_ngcontent-%COMP%]{flex:1}"]}),n})(),d8=(()=>{class n{constructor(t){this.injector=t}ngDoBootstrap(){const t=function xr(n,e){const t=function $T(n,e){return e.get(tu).resolveComponentFactory(n).inputs}(n,e.injector),r=e.strategyFactory||new Mf(n,e.injector),s=function uv(n){const e={};return n.forEach(({propName:t,templateName:r})=>{e[function Sx(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}(r)]=t}),e}(t);class c extends vk{constructor(m){super(),this.injector=m}get ngElementStrategy(){if(!this._ngElementStrategy){const m=this._ngElementStrategy=r.create(this.injector||e.injector);t.forEach(({propName:w})=>{if(!this.hasOwnProperty(w))return;const k=this[w];delete this[w],m.setInputValue(w,k)})}return this._ngElementStrategy}attributeChangedCallback(m,w,k,N){this.ngElementStrategy.setInputValue(s[m],k)}connectedCallback(){let m=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),m=!0),this.ngElementStrategy.connect(this),m||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(m=>{const w=new CustomEvent(m.name,{detail:m.value});this.dispatchEvent(w)})}}return c.observedAttributes=Object.keys(s),t.forEach(({propName:h})=>{Object.defineProperty(c.prototype,h,{get(){return this.ngElementStrategy.getInputValue(h)},set(m){this.ngElementStrategy.setInputValue(h,m)},configurable:!0,enumerable:!0})}),c}(u8,{injector:this.injector});customElements.define("drayman-nebula",t)}}return n.\u0275fac=function(t){return new(t||n)(Pe(Yi))},n.\u0275mod=Ri({type:n}),n.\u0275inj=Vi({providers:[{provide:iv,useClass:uN}],imports:[[Vw,cN,k7]]}),n})();(function C5(){hy=!1})(),R2().bootstrapModule(d8).catch(n=>console.error(n))})()})();