@epam/ai-dial-ui-kit 0.12.0-dev.11 → 0.12.0-dev.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{JsonEditor-DpR0gtnl.js → JsonEditor-Cv8OUCIZ.js} +1 -1
- package/dist/{JsonEditor-alDEh5Qd.cjs → JsonEditor-DBCK_XD3.cjs} +1 -1
- package/dist/{MarkdownEditor-DJWJY0MK.cjs → MarkdownEditor-ChMzGmsp.cjs} +1 -1
- package/dist/{MarkdownEditor-DJFU-cf8.js → MarkdownEditor-DZ9YTjxL.js} +1 -1
- package/dist/components-manifest.json +72 -2
- package/dist/dial-ui-kit.cjs.js +1 -1
- package/dist/dial-ui-kit.es.js +64 -63
- package/dist/{index-5QcL-eoG.cjs → index-BSxVvuFN.cjs} +3 -3
- package/dist/{index-DoazFPog.js → index-CwlGx6Lw.js} +640 -560
- package/dist/index.css +1 -1
- package/dist/src/components/SegmentedControl/SegmentedControl.d.ts +39 -0
- package/dist/src/components/SegmentedControl/constants.d.ts +5 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/models/segmented-control.d.ts +7 -0
- package/package.json +1 -1
|
@@ -65,7 +65,7 @@ See ${vC(e,t)}`;return Array.isArray(i)?i.concat(o):[i,o]}var Wk={1:"Charting Ag
|
|
|
65
65
|
`,aM=class extends rM{constructor(e){super(e),this.config=e,this.isFirstLine=!0,this.result="";const{suppressQuotes:t,columnSeparator:s}=e;this.suppressQuotes=t,this.columnSeparator=s}addCustomContent(e){e&&(typeof e=="string"?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,pm),this.result+=e):e.forEach(t=>{this.beginNewLine(),t.forEach((s,i)=>{i!==0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(s.data.value||""),s.mergeAcross&&this.appendEmptyCells(s.mergeAcross)})}))}onNewHeaderGroupingRow(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}}onNewHeaderGroupingRowColumn(e,t,s,i){s!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(t),this.appendEmptyCells(i)}appendEmptyCells(e){for(let t=1;t<=e;t++)this.result+=this.columnSeparator+this.putInQuotes("")}onNewHeaderRow(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}}onNewHeaderRowColumn(e,t){t!=0&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))}onNewBodyRow(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}}onNewBodyRowColumn(e,t,s){t!=0&&(this.result+=this.columnSeparator);const i=this.extractRowCellValue({column:e,node:s,currentColumnIndex:t,accumulatedRowIndex:t,type:"csv",useRawFormula:!1});this.result+=this.putInQuotes(i.valueFormatted??i.value)}putInQuotes(e){if(this.suppressQuotes)return e;if(e==null)return'""';let t;return typeof e=="string"?t=e:typeof e.toString=="function"?t=e.toString():(q(53),t=""),'"'+t.replace(/"/g,'""')+'"'}parse(){return this.result}beginNewLine(){this.isFirstLine||(this.result+=pm),this.isFirstLine=!1}},lM=class extends nM{constructor(){super(...arguments),this.beanName="csvCreator"}getMergedParams(e){const t=this.gos.get("defaultCsvExportParams");return Object.assign({},t,e)}export(e){if(this.isExportSuppressed()){q(51);return}const t=()=>{const i=this.getMergedParams(e),n=this.getData(i),o=new Blob(["\uFEFF",n],{type:"text/plain"}),r=i.fileName,a=typeof r=="function"?r(Se(this.gos,{})):r;oM(this.getFileName(a),o)},{overlays:s}=this.beans;s?s.showExportOverlay(t):t()}exportDataAsCsv(e){this.export(e)}getDataAsCsv(e,t=!1){const s=t?Object.assign({},e):this.getMergedParams(e);return this.getData(s)}getDefaultFileExtension(){return"csv"}createSerializingSession(e){const{colModel:t,colNames:s,rowGroupColsSvc:i,valueSvc:n,gos:o}=this.beans,{processCellCallback:r,processHeaderCallback:a,processGroupHeaderCallback:l,processRowGroupCallback:c,suppressQuotes:d,columnSeparator:u,valueFrom:h}=e;return new aM({colModel:t,colNames:s,valueSvc:n,gos:o,processCellCallback:r||void 0,processHeaderCallback:a||void 0,processGroupHeaderCallback:l||void 0,processRowGroupCallback:c||void 0,suppressQuotes:d||!1,columnSeparator:u||",",rowGroupColsSvc:i,valueFrom:h})}isExportSuppressed(){return this.gos.get("suppressCsvExport")}};function cM(e,t){return e.csvCreator?.getDataAsCsv(t)}function dM(e,t){e.csvCreator?.exportDataAsCsv(t)}var uM={moduleName:"CsvExport",version:J,beans:[lM],apiFunctions:{getDataAsCsv:cM,exportDataAsCsv:dM},dependsOn:[iM]},x1=class extends zt{constructor(e,t){super(),this.ctrl=e,t&&(this.beans=t)}postConstruct(){this.refreshTooltip()}setBrowserTooltip(e,t){const s="title",i=this.ctrl.getGui();i&&(e!=null&&(e!=""||t)?i.setAttribute(s,e):i.removeAttribute(s))}updateTooltipText(){const{getTooltipValue:e}=this.ctrl;e&&(this.tooltip=e())}createTooltipFeatureIfNeeded(){if(this.tooltipManager==null){const e=this.beans.registry.createDynamicBean("tooltipStateManager",!0,this.ctrl,()=>this.tooltip);e&&(this.tooltipManager=this.createBean(e,this.beans.context))}}attemptToShowTooltip(){this.tooltipManager?.prepareToShowTooltip()}attemptToHideTooltip(){this.tooltipManager?.hideTooltip()}setTooltipAndRefresh(e){this.tooltip=e,this.refreshTooltip()}refreshTooltip(e){this.browserTooltips=this.beans.gos.get("enableBrowserTooltips"),this.updateTooltipText(),this.browserTooltips?(this.setBrowserTooltip(this.tooltip),this.tooltipManager=this.destroyBean(this.tooltipManager,this.beans.context)):(this.setBrowserTooltip(e?"":null,e),this.createTooltipFeatureIfNeeded())}destroy(){this.tooltipManager=this.destroyBean(this.tooltipManager,this.beans.context),super.destroy()}},hM=1e3,pM=1e3,gm=100,fm,ll=!1,gM=class extends zt{constructor(e,t){super(),this.tooltipCtrl=e,this.getTooltipValue=t,this.interactionEnabled=!1,this.isInteractingWithTooltip=!1,this.state=0,this.tooltipInstanceCount=0,this.tooltipMouseTrack=!1}wireBeans(e){this.popupSvc=e.popupSvc}postConstruct(){this.gos.get("tooltipInteraction")&&(this.interactionEnabled=!0),this.tooltipTrigger=this.getTooltipTrigger(),this.tooltipMouseTrack=this.gos.get("tooltipMouseTrack");const e=this.tooltipCtrl.getGui();this.tooltipTrigger===0&&this.addManagedListeners(e,{mouseenter:this.onMouseEnter.bind(this),mouseleave:this.onMouseLeave.bind(this)}),this.tooltipTrigger===1&&this.addManagedListeners(e,{focusin:this.onFocusIn.bind(this),focusout:this.onFocusOut.bind(this)}),this.addManagedListeners(e,{mousemove:this.onMouseMove.bind(this)}),this.interactionEnabled||this.addManagedListeners(e,{mousedown:this.onMouseDown.bind(this),keydown:this.onKeyDown.bind(this)})}getGridOptionsTooltipDelay(e){const t=this.gos.get(e);return Math.max(200,t)}getTooltipDelay(e){return this.tooltipCtrl[`getTooltip${e}DelayOverride`]?.()??this.getGridOptionsTooltipDelay(`tooltip${e}Delay`)}destroy(){this.setToDoNothing(),super.destroy()}getTooltipTrigger(){const e=this.gos.get("tooltipTrigger");return!e||e==="hover"?0:1}onMouseEnter(e){this.interactionEnabled&&this.interactiveTooltipTimeoutId&&(this.unlockService(),this.startHideTimeout()),!gn()&&(ll?this.showTooltipTimeoutId=window.setTimeout(()=>{this.prepareToShowTooltip(e)},gm):this.prepareToShowTooltip(e))}onMouseMove(e){this.lastMouseEvent&&(this.lastMouseEvent=e),this.tooltipMouseTrack&&this.state===2&&this.tooltipComp&&this.positionTooltip()}onMouseDown(){this.setToDoNothing()}onMouseLeave(){this.interactionEnabled?this.lockService():this.setToDoNothing()}onFocusIn(){this.prepareToShowTooltip()}onFocusOut(e){const t=e.relatedTarget,s=this.tooltipCtrl.getGui(),i=this.tooltipComp?.getGui();this.isInteractingWithTooltip||s.contains(t)||this.interactionEnabled&&i?.contains(t)||this.setToDoNothing()}onKeyDown(){this.isInteractingWithTooltip&&(this.isInteractingWithTooltip=!1),this.setToDoNothing()}prepareToShowTooltip(e){if(this.state!=0||ll)return;let t=0;e&&(t=this.isLastTooltipHiddenRecently()?this.getTooltipDelay("SwitchShow"):this.getTooltipDelay("Show")),this.lastMouseEvent=e||null,this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),t),this.state=1}isLastTooltipHiddenRecently(){return Date.now()-fm<hM}setToDoNothing(e){!e&&this.state===2&&this.hideTooltip(),this.onBodyScrollEventCallback&&(this.onBodyScrollEventCallback(),this.onBodyScrollEventCallback=void 0),this.clearEventHandlers(),this.onDocumentKeyDownCallback&&(this.onDocumentKeyDownCallback(),this.onDocumentKeyDownCallback=void 0),this.clearTimeouts(),this.state=0,this.lastMouseEvent=null}showTooltip(){const e=this.getTooltipValue(),t=this.tooltipCtrl;if(!se(e)||t.shouldDisplayTooltip&&!t.shouldDisplayTooltip()){this.setToDoNothing();return}const s=this.gos.addCommon({location:t.getLocation?.()??"UNKNOWN",value:e,hideTooltipCallback:()=>this.hideTooltip(!0),...t.getAdditionalParams?.()});this.state=2,this.tooltipInstanceCount++;const i=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount);this.createTooltipComp(s,i)}hideTooltip(e){!e&&this.isInteractingWithTooltip||(this.tooltipComp&&(this.destroyTooltipComp(),fm=Date.now()),this.eventSvc.dispatchEvent({type:"tooltipHide",parentGui:this.tooltipCtrl.getGui()}),e&&(this.isInteractingWithTooltip=!1),this.setToDoNothing(!0))}newTooltipComponentCallback(e,t){if(this.state!==2||this.tooltipInstanceCount!==e){this.destroyBean(t);return}const i=t.getGui();this.tooltipComp=t,i.classList.contains("ag-tooltip")||i.classList.add("ag-tooltip-custom"),this.tooltipTrigger===0&&i.classList.add("ag-tooltip-animate"),this.interactionEnabled&&i.classList.add("ag-tooltip-interactive");const n=this.getLocaleTextFunc(),o=this.popupSvc?.addPopup({eChild:i,ariaLabel:n("ariaLabelTooltip","Tooltip")});if(o&&(this.tooltipPopupDestroyFunc=o.hideFunc),this.positionTooltip(),this.tooltipTrigger===1){const r=()=>this.setToDoNothing();[this.onBodyScrollEventCallback]=this.addManagedEventListeners({bodyScroll:r}),this.setEventHandlers(r)}this.interactionEnabled&&([this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener]=this.addManagedElementListeners(i,{mouseenter:this.onTooltipMouseEnter.bind(this),mouseleave:this.onTooltipMouseLeave.bind(this)}),[this.onDocumentKeyDownCallback]=this.addManagedElementListeners(xt(this.beans),{keydown:r=>{i.contains(r?.target)||this.onKeyDown()}}),this.tooltipTrigger===1&&([this.tooltipFocusInListener,this.tooltipFocusOutListener]=this.addManagedElementListeners(i,{focusin:this.onTooltipFocusIn.bind(this),focusout:this.onTooltipFocusOut.bind(this)}))),this.eventSvc.dispatchEvent({type:"tooltipShow",tooltipGui:i,parentGui:this.tooltipCtrl.getGui()}),this.startHideTimeout()}onTooltipMouseEnter(){this.isInteractingWithTooltip=!0,this.unlockService()}onTooltipMouseLeave(){this.isTooltipFocused()||(this.isInteractingWithTooltip=!1,this.lockService())}onTooltipFocusIn(){this.isInteractingWithTooltip=!0}isTooltipFocused(){const e=this.tooltipComp?.getGui(),t=ot(this.beans);return!!e&&e.contains(t)}onTooltipFocusOut(e){const t=this.tooltipCtrl.getGui();this.isTooltipFocused()||(this.isInteractingWithTooltip=!1,t.contains(e.relatedTarget)?this.startHideTimeout():this.hideTooltip())}positionTooltip(){const e={type:"tooltip",ePopup:this.tooltipComp.getGui(),nudgeY:18,skipObserver:this.tooltipMouseTrack};this.lastMouseEvent?this.popupSvc?.positionPopupUnderMouseEvent({...e,mouseEvent:this.lastMouseEvent}):this.popupSvc?.positionPopupByComponent({...e,eventSource:this.tooltipCtrl.getGui(),position:"under",keepWithinBounds:!0,nudgeY:5})}destroyTooltipComp(){this.tooltipComp.getGui().classList.add("ag-tooltip-hiding");const e=this.tooltipPopupDestroyFunc,t=this.tooltipComp,s=this.tooltipTrigger===0?pM:0;window.setTimeout(()=>{e(),this.destroyBean(t)},s),this.clearTooltipListeners(),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0}clearTooltipListeners(){for(const e of[this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener,this.tooltipFocusInListener,this.tooltipFocusOutListener])e&&e();this.tooltipMouseEnterListener=this.tooltipMouseLeaveListener=this.tooltipFocusInListener=this.tooltipFocusOutListener=null}lockService(){ll=!0,this.interactiveTooltipTimeoutId=window.setTimeout(()=>{this.unlockService(),this.setToDoNothing()},gm)}unlockService(){ll=!1,this.clearInteractiveTimeout()}startHideTimeout(){this.clearHideTimeout(),this.hideTooltipTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.getTooltipDelay("Hide"))}clearShowTimeout(){this.showTooltipTimeoutId&&(window.clearTimeout(this.showTooltipTimeoutId),this.showTooltipTimeoutId=void 0)}clearHideTimeout(){this.hideTooltipTimeoutId&&(window.clearTimeout(this.hideTooltipTimeoutId),this.hideTooltipTimeoutId=void 0)}clearInteractiveTimeout(){this.interactiveTooltipTimeoutId&&(window.clearTimeout(this.interactiveTooltipTimeoutId),this.interactiveTooltipTimeoutId=void 0)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout(),this.clearInteractiveTimeout()}},fM=class extends x1{constructor(e,t,s){super(e,s),this.highlightTracker=t,this.onHighlight=this.onHighlight.bind(this)}postConstruct(){super.postConstruct(),this.wireHighlightListeners()}wireHighlightListeners(){this.addManagedPropertyListener("tooltipTrigger",({currentValue:e})=>{this.setTooltipMode(e)}),this.setTooltipMode(this.gos.get("tooltipTrigger")),this.highlightTracker.addEventListener("itemHighlighted",this.onHighlight)}onHighlight(e){this.tooltipMode===1&&(e.highlighted?this.attemptToShowTooltip():this.attemptToHideTooltip())}setTooltipMode(e="focus"){this.tooltipMode=e==="focus"?1:0}destroy(){this.highlightTracker.removeEventListener("itemHighlighted",this.onHighlight),super.destroy()}},mM=class extends cp{constructor(){super({tag:"div",cls:"ag-tooltip"})}init(e){const{value:t}=e,s=this.getGui();s.textContent=zo(t);const i=e.location.replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase();s.classList.add(`ag-${i}-tooltip`)}},vM=".ag-tooltip{background-color:var(--ag-tooltip-background-color);border:var(--ag-tooltip-border);border-radius:var(--ag-border-radius);color:var(--ag-tooltip-text-color);padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);position:absolute;white-space:normal;z-index:99999;&:where(.ag-cell-editor-tooltip),&:where(.ag-cell-formula-tooltip){background-color:var(--ag-tooltip-error-background-color);border:var(--ag-tooltip-error-border);color:var(--ag-tooltip-error-text-color);font-weight:500}}.ag-tooltip-custom{position:absolute;z-index:99999}.ag-tooltip-custom:where(:not(.ag-tooltip-interactive)),.ag-tooltip:where(:not(.ag-tooltip-interactive)){pointer-events:none}.ag-tooltip-animate{transition:opacity 1s;&:where(.ag-tooltip-hiding){opacity:0}}",cl=0,CM=200,wM=class extends zt{constructor(){super(...arguments),this.beanName="popupSvc",this.popupList=[]}postConstruct(){this.addManagedEventListeners({stylesChanged:this.handleThemeChange.bind(this)})}getPopupParent(){const e=this.gos.get("popupParent");return e||this.getDefaultPopupParent()}positionPopupUnderMouseEvent(e){const{ePopup:t,nudgeX:s,nudgeY:i,skipObserver:n}=e;this.positionPopup({ePopup:t,nudgeX:s,nudgeY:i,keepWithinBounds:!0,skipObserver:n,updatePosition:()=>this.calculatePointerAlign(e.mouseEvent),postProcessCallback:()=>this.callPostProcessPopup(e.additionalParams,e.type,e.ePopup,null,e.mouseEvent)})}calculatePointerAlign(e){const t=this.getParentRect();return{x:e.clientX-t.left,y:e.clientY-t.top}}positionPopupByComponent(e){const{ePopup:t,nudgeX:s,nudgeY:i,keepWithinBounds:n,eventSource:o,alignSide:r="left",position:a="over",type:l}=e,c=o.getBoundingClientRect(),d=this.getParentRect();this.setAlignedTo(o,t);const u=()=>{let h=c.left-d.left;r==="right"&&(h-=t.offsetWidth-c.width);let f;return a==="over"?(f=c.top-d.top,this.setAlignedStyles(t,"over")):(this.setAlignedStyles(t,"under"),this.shouldRenderUnderOrAbove(t,c,d,e.nudgeY||0)==="under"?f=c.top-d.top+c.height:f=c.top-t.offsetHeight-(i||0)*2-d.top),{x:h,y:f}};this.positionPopup({ePopup:t,nudgeX:s,nudgeY:i,keepWithinBounds:n,updatePosition:u,postProcessCallback:()=>this.callPostProcessPopup(e.additionalParams,l,t,o,null)})}positionPopupForMenu(e){const{eventSource:t,ePopup:s,event:i}=e,n=t.getBoundingClientRect(),o=this.getParentRect();this.setAlignedTo(t,s);let r=!1;const a=()=>{const l=this.keepXYWithinBounds(s,n.top-o.top,0),c=s.clientWidth>0?s.clientWidth:200;r||(s.style.minWidth=`${c}px`,r=!0);const u=o.right-o.left-c;let h;return this.gos.get("enableRtl")?(h=m(),h<0&&(h=f(),this.setAlignedStyles(s,"left")),h>u&&(h=0,this.setAlignedStyles(s,"right"))):(h=f(),h>u&&(h=m(),this.setAlignedStyles(s,"right")),h<0&&(h=0,this.setAlignedStyles(s,"left"))),{x:h,y:l};function f(){return n.right-o.left-2}function m(){return n.left-o.left-c}};this.positionPopup({ePopup:s,keepWithinBounds:!0,updatePosition:a,postProcessCallback:()=>this.callPostProcessPopup(e.additionalParams,"subMenu",s,t,i instanceof MouseEvent?i:void 0)})}shouldRenderUnderOrAbove(e,t,s,i){const n=s.bottom-t.bottom,o=t.top-s.top,r=e.offsetHeight+i;return n>r?"under":o>r||o>n?"above":"under"}setAlignedStyles(e,t){const s=this.getPopupIndex(e);if(s===-1)return;const i=this.popupList[s],{alignedToElement:n}=i;if(!n)return;const o=["right","left","over","above","under"];for(const r of o)n.classList.remove(`ag-has-popup-positioned-${r}`),e.classList.remove(`ag-popup-positioned-${r}`);t&&(n.classList.add(`ag-has-popup-positioned-${t}`),e.classList.add(`ag-popup-positioned-${t}`))}setAlignedTo(e,t){const s=this.getPopupIndex(t);if(s!==-1){const i=this.popupList[s];i.alignedToElement=e}}positionPopup(e){const{ePopup:t,keepWithinBounds:s,nudgeX:i,nudgeY:n,skipObserver:o,updatePosition:r}=e,a={width:0,height:0},l=(c=!1)=>{let{x:d,y:u}=r();c&&t.clientWidth===a.width&&t.clientHeight===a.height||(a.width=t.clientWidth,a.height=t.clientHeight,i&&(d+=i),n&&(u+=n),s&&(d=this.keepXYWithinBounds(t,d,1),u=this.keepXYWithinBounds(t,u,0)),t.style.left=`${d}px`,t.style.top=`${u}px`,e.postProcessCallback&&e.postProcessCallback())};if(l(),!o){const c=li(this.beans,t,()=>l(!0));setTimeout(()=>c(),CM)}}getParentRect(){const e=xt(this.beans);let t=this.getPopupParent();return t===e.body?t=e.documentElement:getComputedStyle(t).position==="static"&&(t=t.offsetParent),Xv(t)}keepXYWithinBounds(e,t,s){const i=s===0,n=i?"clientHeight":"clientWidth",o=i?"top":"left",r=i?"height":"width",a=i?"scrollTop":"scrollLeft",l=xt(this.beans),c=l.documentElement,d=this.getPopupParent(),u=e.getBoundingClientRect(),h=d.getBoundingClientRect(),f=l.documentElement.getBoundingClientRect(),m=d===l.body,v=Math.ceil(u[r]);let w=m?(i?Zv:Ol)(c)+c[a]:d[n];m&&(w-=Math.abs(f[o]-h[o]));const b=w-v;return Math.min(Math.max(t,0),Math.max(b,0))}addPopup(e){const{eChild:t,ariaLabel:s,ariaOwns:i,alwaysOnTop:n,positionCallback:o,anchorToElement:r}=e,a=this.getPopupIndex(t);if(a!==-1)return{hideFunc:this.popupList[a].hideFunc};this.initialisePopupPosition(t);const l=this.createPopupWrapper(t,!!n,s,i),c=this.addEventListenersToPopup({...e,wrapperEl:l});return o&&o(),this.addPopupToPopupList(t,l,c,r),{hideFunc:c}}initialisePopupPosition(e){const s=this.getPopupParent().getBoundingClientRect();se(e.style.top)||(e.style.top=`${s.top*-1}px`),se(e.style.left)||(e.style.left=`${s.left*-1}px`)}createPopupWrapper(e,t,s,i){const n=this.getPopupParent(),{environment:o,gos:r}=this.beans,a=yn({tag:"div"});return o.applyThemeClasses(a),a.classList.add("ag-popup"),e.classList.add(r.get("enableRtl")?"ag-rtl":"ag-ltr","ag-popup-child"),e.hasAttribute("role")||xn(e,"dialog"),s?To(e,s):i&&(e.id||(e.id=`popup-component-${cl}`),Jg(i,e.id)),a.appendChild(e),n.appendChild(a),t?this.setAlwaysOnTop(e,!0):this.bringPopupToFront(e),a}addEventListenersToPopup(e){const t=this.beans,s=xt(t),{wrapperEl:i,eChild:n,closedCallback:o,afterGuiAttached:r,closeOnEsc:a,modal:l,ariaOwns:c}=e;let d=!1;const u=v=>{if(!i.contains(ot(t)))return;v.key===N.ESCAPE&&!this.isStopPropagation(v)&&m({keyboardEvent:v})},h=v=>m({mouseEvent:v}),f=v=>m({touchEvent:v}),m=(v={})=>{const{mouseEvent:C,touchEvent:w,keyboardEvent:b,forceHide:x}=v;!x&&(this.isEventFromCurrentPopup({mouseEvent:C,touchEvent:w},n)||d)||(d=!0,i.remove(),s.removeEventListener("keydown",u),s.removeEventListener("mousedown",h),s.removeEventListener("touchstart",f),s.removeEventListener("contextmenu",h),this.eventSvc.removeListener("dragStarted",h),o&&o(C||w||b),this.removePopupFromPopupList(n,c))};return r&&r({hidePopup:m}),window.setTimeout(()=>{a&&s.addEventListener("keydown",u),l&&(s.addEventListener("mousedown",h),this.eventSvc.addListener("dragStarted",h),s.addEventListener("touchstart",f),s.addEventListener("contextmenu",h))},0),m}addPopupToPopupList(e,t,s,i){this.popupList.push({element:e,wrapper:t,hideFunc:s,instanceId:cl,isAnchored:!!i}),i&&this.setPopupPositionRelatedToElement(e,i),cl=cl+1}getPopupIndex(e){return this.popupList.findIndex(t=>t.element===e)}setPopupPositionRelatedToElement(e,t){const s=this.getPopupIndex(e);if(s===-1)return;const i=this.popupList[s];if(i.stopAnchoringPromise&&i.stopAnchoringPromise.then(o=>o&&o()),i.stopAnchoringPromise=void 0,i.isAnchored=!1,!t)return;const n=this.keepPopupPositionedRelativeTo({element:t,ePopup:e,hidePopup:i.hideFunc});return i.stopAnchoringPromise=n,i.isAnchored=!0,n}removePopupFromPopupList(e,t){this.setAlignedStyles(e,null),this.setPopupPositionRelatedToElement(e,null),t&&Jg(t,null),this.popupList=this.popupList.filter(s=>s.element!==e)}keepPopupPositionedRelativeTo(e){const t=this.getPopupParent(),s=t.getBoundingClientRect(),{element:i,ePopup:n}=e,o=i.getBoundingClientRect(),r=u=>Number.parseInt(u.substring(0,u.length-1),10),a=(u,h)=>{const f=s[u]-o[u],m=r(n.style[u]);return{initialDiff:f,lastDiff:f,initial:m,last:m,direction:h}},l=a("top",0),c=a("left",1),d=this.beans.frameworkOverrides;return new Le(u=>{d.wrapIncoming(()=>{L3(()=>{const h=t.getBoundingClientRect(),f=i.getBoundingClientRect();if(f.top==0&&f.left==0&&f.height==0&&f.width==0){e.hidePopup();return}const v=(C,w)=>{const b=r(n.style[w]);C.last!==b&&(C.initial=b,C.last=b);const x=h[w]-f[w];if(x!=C.lastDiff){const y=this.keepXYWithinBounds(n,C.initial+C.initialDiff-x,C.direction);n.style[w]=`${y}px`,C.last=y}C.lastDiff=x};v(l,"top"),v(c,"left")},200).then(h=>{u(()=>{h!=null&&window.clearInterval(h)})})},"popupPositioning")})}isEventFromCurrentPopup(e,t){const{mouseEvent:s,touchEvent:i}=e,n=s||i;if(!n)return!1;const o=this.getPopupIndex(t);if(o===-1)return!1;for(let r=o;r<this.popupList.length;r++){const a=this.popupList[r];if(uR(a.element,n))return!0}return this.isElementWithinCustomPopup(n.target)}isElementWithinCustomPopup(e){const t=xt(this.beans);for(;e&&e!==t.body;){if(e.classList.contains("ag-custom-component-popup")||e.parentElement===null)return!0;e=e.parentElement}return!1}getWrapper(e){for(;!e.classList.contains("ag-popup")&&e.parentElement;)e=e.parentElement;return e.classList.contains("ag-popup")?e:null}setAlwaysOnTop(e,t){const s=this.getWrapper(e);s&&(s.classList.toggle("ag-always-on-top",!!t),t&&this.bringPopupToFront(s))}bringPopupToFront(e){const t=this.getPopupParent(),s=Array.prototype.slice.call(t.querySelectorAll(".ag-popup")),i=s.length,n=this.getWrapper(e);if(!n||i<=1||!t.contains(e))return;const o=[],r=[];for(const h of s)h!==n&&(h.classList.contains("ag-always-on-top")?r.push(h):o.push(h));const a=[],l=r.length,u=n.classList.contains("ag-always-on-top")||!l?[...o,...r,n]:[...o,n,...r];for(let h=0;h<=i;h++){const f=u[h];if(s[h]===u[h]||f===n)continue;const m=f.querySelectorAll("div");for(const v of m)v.scrollTop!==0&&a.push([v,v.scrollTop]);h===0?t.prepend(f):u[h-1].after(f)}for(;a.length;){const h=a.pop();h[0].scrollTop=h[1]}}handleThemeChange(e){if(e.themeChanged){const t=this.beans.environment;for(const s of this.popupList)t.applyThemeClasses(s.wrapper)}}},bM=class extends wM{getDefaultPopupParent(){return this.beans.ctrlsSvc.get("gridCtrl").getGui()}callPostProcessPopup(e,t,s,i,n){const o=this.gos.getCallback("postProcessPopup");if(o){const{column:r,rowNode:a}=e??{};o({column:r,rowNode:a,ePopup:s,type:t,eventSource:i,mouseEvent:n})}}getActivePopups(){return this.popupList.map(e=>e.element)}hasAnchoredPopup(){return this.popupList.some(e=>e.isAnchored)}isStopPropagation(e){return ti(e)}},Ac={moduleName:"Popup",version:J,beans:[bM]};function lh(e){return e.get("tooltipShowMode")==="whenTruncated"}var xM=(e,t)=>{const s=e;return typeof s.getTranslatedMessage=="function"?s.getTranslatedMessage(t):e.message},ch=(e,t,s)=>{const{editModelSvc:i}=e,n=i?.getCellValidationModel()?.getCellValidation(t)?.errorMessages,o=i?.getRowValidationModel().getRowValidation(t)?.errorMessages,r=n||o;return r?.length?r.join(s("tooltipValidationErrorSeparator",". ")):void 0},yM=(e,t)=>{if(lh(e.gos)){if(t.isCellRenderer()){const i=t.column.getColDef();return!!i.showRowGroup||i.cellRenderer==="agGroupCellRenderer"?qr(()=>{const o=t.eGui;return o.querySelector(".ag-group-value")||o.querySelector(".ag-cell-value")||o}):void 0}return qr(()=>{const i=t.eGui;return i.children.length===0?i:i.querySelector(".ag-cell-value")})}},SM=(e,t,s)=>{const{editSvc:i}=e,{column:n}=t,o=yM(e,t),r=()=>i?.isEditing(t)?!1:o?n.isTooltipEnabled()?o():!1:!0;return{shouldDisplayDefault:r,shouldDisplayColumnTooltip:r,shouldDisplayCustomTooltip:s??r}},RM=({beans:e,ctrl:t,value:s,displayFunctions:i,translate:n})=>{const{editSvc:o,formula:r,gos:a}=e,{column:l,rowNode:c}=t;if(r?.active&&l.isAllowFormula()){const C=r.getFormulaError(l,c);if(C)return{value:xM(C,n),location:"cellFormula",shouldDisplay:()=>!!r?.getFormulaError(l,c)}}if(!!!o?.isEditing(t)){const C=ch(e,t,n);if(C)return{value:C,location:"cellEditor",shouldDisplay:()=>!o?.isEditing(t)&&!!ch(e,t,n)}}const{shouldDisplayCustomTooltip:u,shouldDisplayColumnTooltip:h}=i;if(s!=null)return{value:s,location:"cell",shouldDisplay:u};const f=l.getColDef(),m=c.data;if(f.tooltipField&&se(m))return{value:Ar(m,f.tooltipField,l.isTooltipFieldContainsDots()),location:"cell",shouldDisplay:h};const v=f.tooltipValueGetter;return v?{value:v(Se(a,{location:"cell",colDef:l.getColDef(),column:l,rowIndex:t.cellPosition.rowIndex,node:c,data:c.data,value:t.value,valueFormatted:t.valueFormatted})),location:"cell",shouldDisplay:h}:null},FM=class extends j{constructor(){super(...arguments),this.beanName="tooltipSvc"}setupHeaderTooltip(e,t,s,i){e&&t.destroyBean(e);const n=this.gos,o=lh(n),{column:r,eGui:a}=t,l=r.getColDef();!i&&o&&!l.headerComponent&&(i=qr(()=>a.querySelector(".ag-header-cell-text")));const c="header",u=this.beans.colNames.getDisplayNameForColumn(r,"header",!0),h=s??u,f={getGui:()=>a,getLocation:()=>c,getTooltipValue:()=>s??l?.headerTooltipValueGetter?.(Se(n,{location:c,colDef:l,column:r,value:h,valueFormatted:u}))??l?.headerTooltip,shouldDisplayTooltip:i,getAdditionalParams:()=>({column:r,colDef:r.getColDef()})};let m=this.createTooltipFeature(f);return m&&(m=t.createBean(m),t.setRefreshFunction("tooltip",()=>m.refreshTooltip())),m}setupHeaderGroupTooltip(e,t,s,i){e&&t.destroyBean(e);const n=this.gos,o=lh(n),{column:r,eGui:a}=t,l=r.getColGroupDef();!i&&o&&!l?.headerGroupComponent&&(i=qr(()=>a.querySelector(".ag-header-group-text")));const c="headerGroup",u=this.beans.colNames.getDisplayNameForColumnGroup(r,"header"),h=s??u,f={getGui:()=>a,getLocation:()=>c,getTooltipValue:()=>s??l?.headerTooltipValueGetter?.(Se(n,{location:c,colDef:l,column:r,value:h,valueFormatted:u}))??l?.headerTooltip,shouldDisplayTooltip:i,getAdditionalParams:()=>{const v={column:r};return l&&(v.colDef=l),v}},m=this.createTooltipFeature(f);return m&&t.createBean(m)}enableCellTooltipFeature(e,t,s){const{beans:i}=this,{column:n,rowNode:o}=e,r=SM(i,e,s),a=this.getLocaleTextFunc();let l=null;const c=()=>(l=RM({beans:i,ctrl:e,value:t,displayFunctions:r,translate:a}),l),u={getGui:()=>e.eGui,getLocation:()=>l?.location??"cell",getTooltipValue:()=>c()?.value,shouldDisplayTooltip:()=>{const h=l??c();return h?h.shouldDisplay?h.shouldDisplay():!0:!1},getAdditionalParams:()=>({column:n,colDef:n.getColDef(),rowIndex:e.cellPosition.rowIndex,node:o,data:o.data,valueFormatted:e.valueFormatted})};return this.createTooltipFeature(u,i)}setupFullWidthRowTooltip(e,t,s,i){const n={getGui:()=>t.getFullWidthElement(),getTooltipValue:()=>s,getLocation:()=>"fullWidthRow",shouldDisplayTooltip:i},o=this.beans,r=o.context;e&&t.destroyBean(e,r);const a=this.createTooltipFeature(n,o);if(a)return t.createBean(a,r)}setupCellEditorTooltip(e,t){const{beans:s}=this,{context:i}=s,n=t.getValidationElement?.(!0)||!t.isPopup?.()&&e.eGui;if(!n)return;const o={getGui:()=>n,getTooltipValue:()=>ch(s,e,this.getLocaleTextFunc()),getLocation:()=>"cellEditor",shouldDisplayTooltip:()=>{const{editModelSvc:a}=s,l=a?.getRowValidationModel()?.getRowValidationMap(),c=a?.getCellValidationModel()?.getCellValidationMap(),d=!!l&&l.size>0,u=!!c&&c.size>0;return d||u}},r=this.createTooltipFeature(o,s);if(r)return e.createBean(r,i)}initCol(e){const{colDef:t}=e;e.tooltipEnabled=se(t.tooltipField)||se(t.tooltipValueGetter)||se(t.tooltipComponent)}createTooltipFeature(e,t){return this.beans.registry.createDynamicBean("tooltipFeature",!1,e,t)}},EM=class extends gM{createTooltipComp(e,t){dF(this.beans.userCompFactory,e)?.newAgStackInstance().then(t)}setEventHandlers(e){[this.onColumnMovedEventCallback]=this.addManagedEventListeners({columnMoved:e})}clearEventHandlers(){this.onColumnMovedEventCallback?.(),this.onColumnMovedEventCallback=void 0}},y1={moduleName:"Tooltip",version:J,beans:[FM],dynamicBeans:{tooltipFeature:x1,highlightTooltipFeature:fM,tooltipStateManager:EM},userComponents:{agTooltipComponent:mM},dependsOn:[Ac],css:[vM]},ao=class{constructor(e){this.cellValueChanges=e}},du=class extends ao{constructor(e,t,s,i){super(e),this.initialRange=t,this.finalRange=s,this.ranges=i}},DM=10,mm=class{constructor(e){this.actionStack=[],this.maxStackSize=e||DM,this.actionStack=new Array(this.maxStackSize)}pop(){return this.actionStack.pop()}push(e){e.cellValueChanges&&e.cellValueChanges.length>0&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(e))}clear(){this.actionStack=[]}getCurrentStackSize(){return this.actionStack.length}},PM=class extends j{constructor(){super(...arguments),this.beanName="undoRedo",this.cellValueChanges=[],this.activeCellEdit=null,this.activeRowEdit=null,this.isPasting=!1,this.isRangeInAction=!1,this.batchEditing=!1,this.bulkEditing=!1,this.onCellValueChanged=e=>{const t={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned},s=this.activeCellEdit!==null&&hp(this.activeCellEdit,t),i=this.activeRowEdit!==null&&qF(this.activeRowEdit,t);if(!(s||i||this.isPasting||this.isRangeInAction))return;const{rowPinned:o,rowIndex:r,column:a,oldValue:l,value:c}=e,d={rowPinned:o,rowIndex:r,columnId:a.getColId(),newValue:c,oldValue:l};this.cellValueChanges.push(d)},this.clearStacks=()=>{this.undoStack.clear(),this.redoStack.clear()}}postConstruct(){const{gos:e,ctrlsSvc:t}=this.beans;if(!e.get("undoRedoCellEditing"))return;const s=e.get("undoRedoCellEditingLimit");if(s<=0)return;this.undoStack=new mm(s),this.redoStack=new mm(s),this.addListeners();const i=this.clearStacks.bind(this);this.addManagedEventListeners({cellValueChanged:this.onCellValueChanged.bind(this),modelUpdated:n=>{n.keepUndoRedoStack||this.clearStacks()},columnPivotModeChanged:i,newColumnsLoaded:i,columnGroupOpened:i,columnRowGroupChanged:i,columnMoved:i,columnPinned:i,columnVisible:i,rowDragEnd:i}),t.whenReady(this,n=>{this.gridBodyCtrl=n.gridBodyCtrl})}getCurrentUndoStackSize(){return this.undoStack?.getCurrentStackSize()??0}getCurrentRedoStackSize(){return this.redoStack?.getCurrentStackSize()??0}undo(e){const{eventSvc:t,undoStack:s,redoStack:i}=this;t.dispatchEvent({type:"undoStarted",source:e});const n=this.undoRedo(s,i,"initialRange","oldValue","undo");t.dispatchEvent({type:"undoEnded",source:e,operationPerformed:n})}redo(e){const{eventSvc:t,undoStack:s,redoStack:i}=this;t.dispatchEvent({type:"redoStarted",source:e});const n=this.undoRedo(i,s,"finalRange","newValue","redo");t.dispatchEvent({type:"redoEnded",source:e,operationPerformed:n})}undoRedo(e,t,s,i,n){if(!e)return!1;const o=e.pop();return o?.cellValueChanges?(this.processAction(o,r=>r[i],n),o instanceof du?this.processRange(o.ranges||[o[s]]):this.processCell(o.cellValueChanges),t.push(o),!0):!1}processAction(e,t,s){const{changeDetectionSvc:i}=this.beans;i?.beginDeferred();try{for(const n of e.cellValueChanges){const{rowIndex:o,rowPinned:r,columnId:a}=n,l={rowIndex:o,rowPinned:r},c=Vs(this.beans,l);c?.displayed&&c.setDataValue(a,t(n),s)}}finally{i?.endDeferred()}}processRange(e){let t;const s=this.beans.rangeSvc;s.removeAllCellRanges(!0),e.forEach((i,n)=>{if(!i)return;const o=i.startRow,r=i.endRow;n===e.length-1&&(t={rowPinned:o.rowPinned,rowIndex:o.rowIndex,columnId:i.startColumn.getColId()},this.setLastFocusedCell(t));const a={rowStartIndex:o.rowIndex,rowStartPinned:o.rowPinned,rowEndIndex:r.rowIndex,rowEndPinned:r.rowPinned,columnStart:i.startColumn,columns:i.columns};s.addCellRange(a)})}processCell(e){const t=e[0],{rowIndex:s,rowPinned:i}=t,n={rowIndex:s,rowPinned:i},o=Vs(this.beans,n),r={rowPinned:t.rowPinned,rowIndex:o.rowIndex,columnId:t.columnId};this.setLastFocusedCell(r)}setLastFocusedCell(e){const{rowIndex:t,columnId:s,rowPinned:i}=e,{colModel:n,focusSvc:o,rangeSvc:r}=this.beans,a=n.getCol(s);if(!a)return;const{scrollFeature:l}=this.gridBodyCtrl;l.ensureIndexVisible(t),l.ensureColumnVisible(a);const c={rowIndex:t,column:a,rowPinned:i};o.setFocusedCell({...c,forceBrowserFocus:!0}),r?.setRangeToCell(c)}addListeners(){this.addManagedEventListeners({rowEditingStarted:e=>{this.activeRowEdit={rowIndex:e.rowIndex,rowPinned:e.rowPinned}},rowEditingStopped:()=>{const e=new ao(this.cellValueChanges);this.pushActionsToUndoStack(e),this.activeRowEdit=null},cellEditingStarted:e=>{this.activeCellEdit={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned}},cellEditingStopped:e=>{if(this.activeCellEdit=null,e.valueChanged&&!this.activeRowEdit&&!this.isPasting&&!this.isRangeInAction){const s=new ao(this.cellValueChanges);this.pushActionsToUndoStack(s)}},pasteStart:()=>{this.isPasting=!0},pasteEnd:()=>{const e=new ao(this.cellValueChanges);this.pushActionsToUndoStack(e),this.isPasting=!1},fillStart:()=>{this.isRangeInAction=!0},fillEnd:e=>{const t=new du(this.cellValueChanges,e.initialRange,e.finalRange);this.pushActionsToUndoStack(t),this.isRangeInAction=!1},keyShortcutChangedCellStart:()=>{this.isRangeInAction=!0},keyShortcutChangedCellEnd:()=>{let e;const{rangeSvc:t,gos:s}=this.beans;t&&Mi(s)?e=new du(this.cellValueChanges,void 0,void 0,[...t.getCellRanges()]):e=new ao(this.cellValueChanges),this.pushActionsToUndoStack(e),this.isRangeInAction=!1},batchEditingStarted:()=>this.startBigChange("batchEditing"),batchEditingStopped:({changes:e})=>this.stopBigChange("batchEditing",e),bulkEditingStarted:()=>this.startBigChange("bulkEditing"),bulkEditingStopped:({changes:e})=>this.stopBigChange("bulkEditing",e)})}startBigChange(e){this.updateBigChange(e,!0)}updateBigChange(e,t){e==="bulkEditing"?this.bulkEditing=t:this.batchEditing=t}stopBigChange(e,t){if(e==="bulkEditing"&&!this.bulkEditing||e==="batchEditing"&&!this.batchEditing||(this.updateBigChange(e,!1),t?.length===0))return;const s=new ao(t??[]);this.pushActionsToUndoStack(s),this.cellValueChanges=[]}pushActionsToUndoStack(e){this.undoStack.push(e),this.cellValueChanges=[],this.redoStack.clear()}},TM=".ag-cell-inline-editing{border:var(--ag-cell-editing-border)!important;border-radius:var(--ag-border-radius);box-shadow:var(--ag-cell-editing-shadow);padding:0;z-index:1;.ag-cell-edit-wrapper,.ag-cell-editor,.ag-cell-wrapper,:where(.ag-cell-editor) .ag-input-field-input,:where(.ag-cell-editor) .ag-wrapper{height:100%;line-height:normal;min-height:100%;width:100%}&.ag-cell-editing-error{border-color:var(--ag-invalid-color)!important}}:where(.ag-popup-editor) .ag-large-text{background-color:var(--ag-background-color);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);padding:0}.ag-large-text-input{display:block;height:auto;padding:var(--ag-cell-horizontal-padding)}:where(.ag-rtl .ag-large-text-input) .ag-text-area-input{resize:none}:where(.ag-ltr) .ag-checkbox-edit{padding-left:var(--ag-cell-horizontal-padding)}:where(.ag-rtl) .ag-checkbox-edit{padding-right:var(--ag-cell-horizontal-padding)}:where(.ag-row.ag-row-editing-invalid .ag-cell-inline-editing){opacity:.8}.ag-popup-editor{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}",kM={tag:"div",cls:"ag-cell-wrapper ag-cell-edit-wrapper ag-checkbox-edit",children:[{tag:"ag-checkbox",ref:"eEditor",role:"presentation"}]},IM=class extends Pc{constructor(){super(kM,[xp]),this.eEditor=ue}initialiseEditor(e){this.agSetEditValue(e.value),this.eEditor.getInputElement().setAttribute("tabindex","-1"),this.addManagedListeners(this.eEditor,{fieldValueChanged:s=>this.setAriaLabel(s.selected)})}agSetEditValue(e){this.params.value=e;const t=e??void 0;this.eEditor.setValue(t,!0),this.setAriaLabel(t)}getValue(){return this.eEditor.getValue()}focusIn(){this.eEditor.getFocusableElement().focus()}afterGuiAttached(){this.params.cellStartedEdit&&this.focusIn()}isPopup(){return!1}setAriaLabel(e){const t=this.getLocaleTextFunc(),s=Rc(t,e),i=t("ariaToggleCellValue","Press SPACE to toggle cell value");this.eEditor.setInputAriaLabel(`${i} (${s})`)}getValidationElement(e){return e?this.params.eGridCell:this.eEditor.getInputElement()}getValidationErrors(){const{params:e}=this,{getValidationErrors:t}=e,s=this.getValue();return t?t({value:s,internalErrors:null,cellEditorParams:e}):null}},ri=class extends rn{constructor(e,t="ag-text-field",s="text"){super(e,t,s)}postConstruct(){super.postConstruct(),this.config.allowedCharPattern&&this.preventDisallowedCharacters()}setValue(e,t){const s=this.eInput;return s.value!==e&&(s.value=se(e)?e:""),super.setValue(e,t)}setStartValue(e){this.setValue(e,!0)}setCustomValidity(e){const t=this.eInput,s=e.length>0;t.setCustomValidity(e),s&&t.reportValidity(),_h(t,s)}preventDisallowedCharacters(){const e=new RegExp(`[${this.config.allowedCharPattern}]`),t=s=>{ow(s)&&s.key&&!e.test(s.key)&&s.preventDefault()};this.addManagedListeners(this.eInput,{keydown:t,paste:s=>{s.clipboardData?.getData("text")?.split("").some(n=>!e.test(n))&&s.preventDefault()}})}},Lc={selector:"AG-INPUT-TEXT-FIELD",component:ri},MM=class extends ri{constructor(e){super(e,"ag-date-field","date")}postConstruct(){super.postConstruct();const e=zi();this.addManagedListeners(this.eInput,{wheel:this.onWheel.bind(this),mousedown:()=>{this.isDisabled()||e||this.eInput.focus()}}),this.eInput.step="any"}onWheel(e){ot(this.beans)===this.eInput&&e.preventDefault()}setMin(e){const t=e instanceof Date?Gt(e??null,!!this.includeTime)??void 0:e;return this.min===t?this:(this.min=t,Wt(this.eInput,"min",t),this)}setMax(e){const t=e instanceof Date?Gt(e??null,!!this.includeTime)??void 0:e;return this.max===t?this:(this.max=t,Wt(this.eInput,"max",t),this)}setStep(e){return this.step===e?this:(this.step=e,Wt(this.eInput,"step",e),this)}setIncludeTime(e){return this.includeTime===e?this:(this.includeTime=e,super.setInputType(e?"datetime-local":"date"),e&&this.setStep(1),this)}getDate(){if(this.eInput.validity.valid)return Vt(this.getValue())??void 0}setDate(e,t){this.setValue(Gt(e??null,this.includeTime),t)}},S1={selector:"AG-INPUT-DATE-FIELD",component:MM},Oc=class extends Pc{constructor(e){super(),this.cellEditorInput=e,this.eEditor=ue}initialiseEditor(e){const{cellEditorInput:t}=this;this.setTemplate({tag:"div",cls:"ag-cell-edit-wrapper",children:[t.getTemplate()]},t.getAgComponents());const{eEditor:s}=this,{cellStartedEdit:i,eventKey:n,suppressPreventDefault:o}=e;s.getInputElement().setAttribute("title",""),t.init(s,e);let r,a=!0;i?(this.focusAfterAttached=!0,n===N.BACKSPACE||n===N.DELETE?r="":n&&n.length===1?o?a=!1:r=n:(r=t.getStartValue(),n!==N.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,r=t.getStartValue()),a&&r!=null&&s.setStartValue(r),this.addGuiEventListener("keydown",l=>{const{key:c}=l;(c===N.PAGE_UP||c===N.PAGE_DOWN)&&l.preventDefault()})}afterGuiAttached(){const e=this.getLocaleTextFunc(),t=this.eEditor;if(t.setInputAriaLabel(e("ariaInputEditor","Input Editor")),!this.focusAfterAttached)return;zi()||t.getFocusableElement().focus();const s=t.getInputElement();this.highlightAllOnFocus?s.select():this.cellEditorInput.setCaret?.()}focusIn(){const{eEditor:e}=this,t=e.getFocusableElement(),s=e.getInputElement();t.focus(),s.select()}getValue(){return this.cellEditorInput.getValue()}agSetEditValue(e){this.params.value=e;const t=this.cellEditorInput.getStartValue();this.eEditor.setStartValue(t??null)}isPopup(){return!1}getValidationElement(){return this.eEditor.getInputElement()}getValidationErrors(){return this.cellEditorInput.getValidationErrors()}},AM={tag:"ag-input-date-field",ref:"eEditor",cls:"ag-cell-editor"},LM=class{constructor(e,t){this.getDataTypeService=e,this.getLocaleTextFunc=t}getTemplate(){return AM}getAgComponents(){return[S1]}init(e,t){this.eEditor=e,this.params=t;const{min:s,max:i,step:n,colDef:o}=t;s!=null&&e.setMin(s),i!=null&&e.setMax(i),n!=null&&e.setStep(n),this.includeTime=t.includeTime??this.getDataTypeService()?.getDateIncludesTimeFlag?.(o.cellDataType),this.includeTime!=null&&e.setIncludeTime(this.includeTime)}getValidationErrors(){const t=this.eEditor.getInputElement().valueAsDate,{params:s}=this,{min:i,max:n,getValidationErrors:o}=s;let r=[];const a=this.getLocaleTextFunc();if(t instanceof Date&&!isNaN(t.getTime())){if(i){const l=i instanceof Date?i:new Date(i);if(t<l){const c=l.toLocaleDateString();r.push(a("minDateValidation",`Date must be after ${c}`,[c]))}}if(n){const l=n instanceof Date?n:new Date(n);if(t>l){const c=l.toLocaleDateString();r.push(a("maxDateValidation",`Date must be before ${c}`,[c]))}}}return r.length||(r=null),o?o({value:t,cellEditorParams:s,internalErrors:r}):r}getValue(){const{eEditor:e,params:t}=this,s=e.getDate();return!se(s)&&!se(t.value)?t.value:s??null}getStartValue(){const{value:e}=this.params;if(e instanceof Date)return Gt(e,this.includeTime??!1)}},OM=class extends Oc{constructor(){super(new LM(()=>this.beans.dataTypeSvc,()=>this.getLocaleTextFunc()))}},NM={tag:"ag-input-date-field",ref:"eEditor",cls:"ag-cell-editor"},HM=class{constructor(e,t){this.getDataTypeService=e,this.getLocaleTextFunc=t}getTemplate(){return NM}getAgComponents(){return[S1]}init(e,t){this.eEditor=e,this.params=t;const{min:s,max:i,step:n,colDef:o}=t;s!=null&&e.setMin(s),i!=null&&e.setMax(i),n!=null&&e.setStep(n),this.includeTime=t.includeTime??this.getDataTypeService()?.getDateIncludesTimeFlag?.(o.cellDataType),this.includeTime!=null&&e.setIncludeTime(this.includeTime)}getValidationErrors(){const{eEditor:e,params:t}=this,s=e.getInputElement().value,i=this.formatDate(this.parseDate(s??void 0)),{min:n,max:o,getValidationErrors:r}=t;let a=[];if(i){const l=new Date(i),c=this.getLocaleTextFunc();if(n){const d=new Date(n);if(l<d){const u=d.toLocaleDateString();a.push(c("minDateValidation",`Date must be after ${u}`,[u]))}}if(o){const d=new Date(o);if(l>d){const u=d.toLocaleDateString();a.push(c("maxDateValidation",`Date must be before ${u}`,[u]))}}}return a.length||(a=null),r?r({value:this.getValue(),cellEditorParams:t,internalErrors:a}):a}getValue(){const{params:e,eEditor:t}=this,s=this.formatDate(t.getDate());return!se(s)&&!se(e.value)?e.value:e.parseValue(s??"")}getStartValue(){return Gt(this.parseDate(this.params.value??void 0)??null,this.includeTime??!1)}parseDate(e){const t=this.getDataTypeService();return t?t.getDateParserFunction(this.params.column)(e):Vt(e)??void 0}formatDate(e){const t=this.getDataTypeService();return t?t.getDateFormatterFunction(this.params.column)(e):Gt(e??null,this.includeTime??!1)??void 0}},BM=class extends Oc{constructor(){super(new HM(()=>this.beans.dataTypeSvc,()=>this.getLocaleTextFunc()))}},GM=class extends rn{constructor(e){super(e,"ag-text-area",null,"textarea")}setValue(e,t){const s=super.setValue(e,t);return this.eInput.value=e,s}setCols(e){return this.eInput.cols=e,this}setRows(e){return this.eInput.rows=e,this}},VM={selector:"AG-INPUT-TEXT-AREA",component:GM},zM={tag:"div",cls:"ag-large-text",children:[{tag:"ag-input-text-area",ref:"eEditor",cls:"ag-large-text-input"}]},jM=class extends Pc{constructor(){super(zM,[VM]),this.eEditor=ue}initialiseEditor(e){const{eEditor:t}=this,{cellStartedEdit:s,eventKey:i,maxLength:n,cols:o,rows:r}=e;this.focusAfterAttached=s,t.getInputElement().setAttribute("title",""),t.setMaxLength(n||200).setCols(o||60).setRows(r||10);let a;s?(this.focusAfterAttached=!0,i===N.BACKSPACE||i===N.DELETE?a="":i&&i.length===1?a=i:(a=this.getStartValue(e),i!==N.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,a=this.getStartValue(e)),a!=null&&t.setValue(a,!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this)),this.activateTabIndex()}getStartValue(e){const{value:t}=e;return t?.toString()??t}agSetEditValue(e){this.params.value=e;const t=this.getStartValue(this.params);this.eEditor.setValue(t??"",!0)}onKeyDown(e){const t=e.key;(t===N.LEFT||t===N.UP||t===N.RIGHT||t===N.DOWN||e.shiftKey&&t===N.ENTER)&&e.stopPropagation()}afterGuiAttached(){const{eEditor:e,focusAfterAttached:t,highlightAllOnFocus:s}=this,i=this.getLocaleTextFunc();e.setInputAriaLabel(i("ariaInputEditor","Input Editor")),t&&(e.getFocusableElement().focus(),s&&e.getInputElement().select())}getValue(){const{eEditor:e,params:t}=this,{value:s}=t,i=e.getValue();return!se(i)&&!se(s)?s:t.parseValue(i)}getValidationElement(){return this.eEditor.getInputElement()}getValidationErrors(){const{params:e}=this,{maxLength:t,getValidationErrors:s}=e,i=this.getLocaleTextFunc(),n=this.getValue();let o=[];return typeof n=="string"&&t!=null&&n.length>t&&o.push(i("maxLengthValidation",`Must be ${t} characters or fewer.`,[String(t)])),o.length||(o=null),s?s({value:n,internalErrors:o,cellEditorParams:e}):o}},Mp=class extends ri{constructor(e){super(e,"ag-number-field","number")}postConstruct(){super.postConstruct();const e=this.eInput;this.addManagedListeners(e,{blur:()=>{const o=Number.parseFloat(e.value),r=isNaN(o)?"":this.normalizeValue(o.toString());this.value!==r&&this.setValue(r)},wheel:this.onWheel.bind(this)}),e.step="any";const{precision:t,min:s,max:i,step:n}=this.config;typeof t=="number"&&this.setPrecision(t),typeof s=="number"&&this.setMin(s),typeof i=="number"&&this.setMax(i),typeof n=="number"&&this.setStep(n)}onWheel(e){ot(this.beans)===this.eInput&&e.preventDefault()}normalizeValue(e){return e===""?"":(this.precision!=null&&(e=this.adjustPrecision(e)),e)}adjustPrecision(e,t){const s=this.precision;if(s==null)return e;if(t){const n=Number.parseFloat(e).toFixed(s);return Number.parseFloat(n).toString()}const i=String(e).split(".");if(i.length>1){if(i[1].length<=s)return e;if(s>0)return`${i[0]}.${i[1].slice(0,s)}`}return i[0]}setMin(e){return this.min===e?this:(this.min=e,Wt(this.eInput,"min",e),this)}setMax(e){return this.max===e?this:(this.max=e,Wt(this.eInput,"max",e),this)}setPrecision(e){return this.precision=e,this}setStep(e){return this.step===e?this:(this.step=e,Wt(this.eInput,"step",e),this)}setValue(e,t){return this.setValueOrInputValue(s=>super.setValue(s,t),()=>this,e)}setStartValue(e){return this.setValueOrInputValue(t=>super.setValue(t,!0),t=>{this.eInput.value=t},e)}setValueOrInputValue(e,t,s){if(se(s)){let i=this.isScientificNotation(s);if(i&&this.eInput.validity.valid)return e(s);if(!i){s=this.adjustPrecision(s);const n=this.normalizeValue(s);i=s!=n}if(i)return t(s)}return e(s)}getValue(e=!1){const t=this.eInput;if(!t.validity.valid&&!e)return;const s=t.value;return this.isScientificNotation(s)?this.adjustPrecision(s,!0):super.getValue()}isScientificNotation(e){return typeof e=="string"&&e.includes("e")}},WM={selector:"AG-INPUT-NUMBER-FIELD",component:Mp},_M={tag:"ag-input-number-field",ref:"eEditor",cls:"ag-cell-editor"},UM=class{constructor(e){this.getLocaleTextFunc=e}getTemplate(){return _M}getAgComponents(){return[WM]}init(e,t){this.eEditor=e,this.params=t;const{max:s,min:i,precision:n,step:o}=t;s!=null&&e.setMax(s),i!=null&&e.setMin(i),n!=null&&e.setPrecision(n),o!=null&&e.setStep(o);const r=e.getInputElement();t.preventStepping?e.addManagedElementListeners(r,{keydown:this.preventStepping}):t.showStepperButtons&&r.classList.add("ag-number-field-input-stepper")}getValidationErrors(){const{params:e}=this,{min:t,max:s,getValidationErrors:i}=e,o=this.eEditor.getInputElement().valueAsNumber,r=this.getLocaleTextFunc();let a=[];return typeof o=="number"&&(t!=null&&o<t&&a.push(r("minValueValidation",`Must be greater than or equal to ${t}.`,[String(t)])),s!=null&&o>s&&a.push(r("maxValueValidation",`Must be less than or equal to ${s}.`,[String(s)]))),a.length||(a=null),i?i({value:o,cellEditorParams:e,internalErrors:a}):a}preventStepping(e){(e.key===N.UP||e.key===N.DOWN)&&e.preventDefault()}getValue(){const{eEditor:e,params:t}=this,s=e.getValue();if(!se(s)&&!se(t.value))return t.value;let i=t.parseValue(s);if(i==null)return i;if(typeof i=="string"){if(i==="")return null;i=Number(i)}return isNaN(i)?null:i}getStartValue(){return this.params.value}setCaret(){zi()&&this.eEditor.getInputElement().focus({preventScroll:!0})}},$M=class extends Oc{constructor(){super(new UM(()=>this.getLocaleTextFunc()))}},qM=".ag-list-item{align-items:center;display:flex;height:var(--ag-list-item-height);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;&.ag-active-item{background-color:var(--ag-row-hover-color)}}",KM="ag-active-item",YM=(e,t)=>({tag:"div",cls:`ag-list-item ag-${e}-list-item`,attrs:{role:"option"},children:[{tag:"span",cls:`ag-list-item-text ag-${e}-list-item-text`,ref:"eText",children:t}]}),ZM=class extends Wo{constructor(e,t,s){super(YM(e,t)),this.label=t,this.value=s,this.eText=ue}postConstruct(){this.createTooltip(),this.addEventListeners()}setHighlighted(e){const t=this.getGui();t.classList.toggle(KM,e),Kv(t,e),this.dispatchLocalEvent({type:"itemHighlighted",highlighted:e})}getHeight(){return this.getGui().clientHeight}setIndex(e,t){const s=this.getGui();Z2(s,e),Y2(s,t)}createTooltip(){const e={getTooltipValue:()=>this.label,getGui:()=>this.getGui(),getLocation:()=>"UNKNOWN",shouldDisplayTooltip:()=>Jv(this.eText)},t=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("highlightTooltipFeature",!1,e,this));t&&(this.tooltipFeature=t)}addEventListeners(){const e=this.getParentComponent();e&&(this.addGuiEventListener("mouseover",()=>{e.highlightItem(this)}),this.addGuiEventListener("mousedown",t=>{t.preventDefault(),t.stopPropagation(),e.setValue(this.value)}))}},XM=class extends Wo{constructor(e="default"){super({tag:"div",cls:`ag-list ag-${e}-list`}),this.cssIdentifier=e,this.options=[],this.listItems=[],this.highlightedItem=null,this.registerCSS(qM)}postConstruct(){const e=this.getGui();this.addManagedElementListeners(e,{mouseleave:()=>this.clearHighlighted()})}handleKeyDown(e){const t=e.key;switch(t){case N.ENTER:if(!this.highlightedItem)this.setValue(this.getValue());else{const s=this.listItems.indexOf(this.highlightedItem);this.setValueByIndex(s)}break;case N.DOWN:case N.UP:e.preventDefault(),this.navigate(t);break;case N.PAGE_DOWN:case N.PAGE_UP:case N.PAGE_HOME:case N.PAGE_END:e.preventDefault(),this.navigateToPage(t);break}}addOptions(e){for(const t of e)this.addOption(t);return this}addOption(e){const{value:t,text:s}=e,i=s??t;return this.options.push({value:t,text:i}),this.renderOption(t,i),this.updateIndices(),this}clearOptions(){this.options=[],this.reset(!0);for(const e of this.listItems)e.destroy();$t(this.getGui()),this.listItems=[],this.refreshAriaRole()}updateOptions(e){const t=this.options!==e;return t&&(this.clearOptions(),this.addOptions(e)),t}setValue(e,t){if(this.value===e)return this.fireItemSelected(),this;if(e==null)return this.reset(t),this;const s=this.options.findIndex(i=>i.value===e);if(s!==-1){const i=this.options[s];this.value=i.value,this.displayValue=i.text,this.highlightItem(this.listItems[s]),t||this.fireChangeEvent()}return this}setValueByIndex(e){return this.setValue(this.options[e].value)}getValue(){return this.value}getDisplayValue(){return this.displayValue}refreshHighlighted(){this.clearHighlighted();const e=this.options.findIndex(t=>t.value===this.value);e!==-1&&this.highlightItem(this.listItems[e])}highlightItem(e){const t=e.getGui();if(!Rs(t))return;this.clearHighlighted(),e.setHighlighted(!0),this.highlightedItem=e;const s=this.getGui(),{scrollTop:i,clientHeight:n}=s,{offsetTop:o,offsetHeight:r}=t;(o+r>i+n||o<i)&&t.scrollIntoView({block:"nearest"})}hideItemTooltip(){this.highlightedItem?.tooltipFeature?.attemptToHideTooltip()}destroy(){this.hideItemTooltip(),super.destroy()}reset(e){this.value=null,this.displayValue=null,this.clearHighlighted(),e||this.fireChangeEvent()}clearHighlighted(){this.highlightedItem?.setHighlighted(!1),this.highlightedItem=null}renderOption(e,t){const s=new ZM(this.cssIdentifier,t,e);s.setParentComponent(this);const i=this.createManagedBean(s);this.listItems.push(i),this.getGui().appendChild(i.getGui())}navigate(e){const t=e===N.DOWN;let s;const{listItems:i,highlightedItem:n}=this;if(!n)s=t?i[0]:$e(i);else{let r=i.indexOf(n)+(t?1:-1);r=Math.min(Math.max(r,0),i.length-1),s=i[r]}this.highlightItem(s)}navigateToPage(e){const{listItems:t,highlightedItem:s}=this;if(!s||t.length===0)return;const i=t.indexOf(s),n=this.options.length-1,o=t[0].getHeight(),r=Math.floor(this.getGui().clientHeight/o);let a=-1;e===N.PAGE_HOME?a=0:e===N.PAGE_END?a=n:e===N.PAGE_DOWN?a=Math.min(i+r,n):e===N.PAGE_UP&&(a=Math.max(i-r,0)),a!==-1&&this.highlightItem(t[a])}refreshAriaRole(){xn(this.getGui(),this.options.length===0?"presentation":"listbox")}updateIndices(){this.refreshAriaRole();const e=this.listItems,t=e.length;e.forEach((s,i)=>{s.setIndex(i+1,t)})}fireChangeEvent(){this.dispatchLocalEvent({type:"fieldValueChanged"}),this.fireItemSelected()}fireItemSelected(){this.dispatchLocalEvent({type:"selectedItem"})}},QM=".ag-picker-field-display{flex:1 1 auto}.ag-picker-field{align-items:center;display:flex}.ag-picker-field-icon{border:0;cursor:pointer;display:flex;margin:0;padding:0}.ag-picker-field-wrapper{background-color:var(--ag-picker-button-background-color);border:var(--ag-picker-button-border);border-radius:5px;min-height:max(var(--ag-list-item-height),calc(var(--ag-spacing)*4));overflow:hidden;&:where(.invalid){background-color:var(--ag-input-invalid-background-color);border:var(--ag-input-invalid-border);color:var(--ag-input-invalid-text-color)}}.ag-picker-field-wrapper:where(.ag-picker-has-focus),.ag-picker-field-wrapper:where(:focus-within){background-color:var(--ag-picker-button-focus-background-color);border:var(--ag-picker-button-focus-border);box-shadow:var(--ag-focus-shadow);&:where(.invalid){box-shadow:var(--ag-focus-error-shadow)}}.ag-picker-field-wrapper:disabled{opacity:.5}",JM={tag:"div",cls:"ag-picker-field",role:"presentation",children:[{tag:"div",ref:"eLabel"},{tag:"div",ref:"eWrapper",cls:"ag-wrapper ag-picker-field-wrapper ag-picker-collapsed",children:[{tag:"div",ref:"eDisplayField",cls:"ag-picker-field-display"},{tag:"div",ref:"eIcon",cls:"ag-picker-field-icon",attrs:{"aria-hidden":"true"}}]}]},e8=class extends kw{constructor(e){if(super(e,e?.template||JM,e?.agComponents||[],e?.className),this.isPickerDisplayed=!1,this.skipClick=!1,this.pickerGap=4,this.hideCurrentPicker=null,this.eLabel=ue,this.eWrapper=ue,this.eDisplayField=ue,this.eIcon=ue,this.registerCSS(QM),this.ariaRole=e?.ariaRole,this.onPickerFocusIn=this.onPickerFocusIn.bind(this),this.onPickerFocusOut=this.onPickerFocusOut.bind(this),!e)return;const{pickerGap:t,maxPickerHeight:s,variableWidth:i,minPickerWidth:n,maxPickerWidth:o}=e;t!=null&&(this.pickerGap=t),this.variableWidth=!!i,s!=null&&this.setPickerMaxHeight(s),n!=null&&this.setPickerMinWidth(n),o!=null&&this.setPickerMaxWidth(o)}postConstruct(){super.postConstruct(),this.setupAria();const e=`ag-${this.getCompId()}-display`;this.eDisplayField.setAttribute("id",e);const t=this.getAriaElement();this.addManagedElementListeners(t,{keydown:this.onKeyDown.bind(this)}),this.addManagedElementListeners(this.eLabel,{mousedown:this.onLabelOrWrapperMouseDown.bind(this)}),this.addManagedElementListeners(this.eWrapper,{mousedown:this.onLabelOrWrapperMouseDown.bind(this)});const{pickerIcon:s,inputWidth:i}=this.config;if(s){const n=this.beans.iconSvc.createIconNoSpan(s);n&&this.eIcon.appendChild(n)}i!=null&&this.setInputWidth(i)}setupAria(){const e=this.getAriaElement();e.setAttribute("tabindex",this.gos.get("tabIndex").toString()),Ou(e,!1),this.ariaRole&&xn(e,this.ariaRole)}onLabelOrWrapperMouseDown(e){if(e){const t=this.getFocusableElement();if(t!==this.eWrapper&&e?.target===t)return;e.preventDefault(),this.getFocusableElement().focus()}if(this.skipClick){this.skipClick=!1;return}this.isDisabled()||(this.isPickerDisplayed?this.hidePicker():this.showPicker())}onKeyDown(e){switch(e.key){case N.UP:case N.DOWN:case N.ENTER:case N.SPACE:e.preventDefault(),this.onLabelOrWrapperMouseDown();break;case N.ESCAPE:this.isPickerDisplayed&&(e.preventDefault(),e.stopPropagation(),this.hideCurrentPicker&&this.hideCurrentPicker());break}}showPicker(){this.isPickerDisplayed=!0,this.pickerComponent||(this.pickerComponent=this.createPickerComponent());const e=this.pickerComponent.getGui();e.addEventListener("focusin",this.onPickerFocusIn),e.addEventListener("focusout",this.onPickerFocusOut),this.hideCurrentPicker=this.renderAndPositionPicker(),this.toggleExpandedStyles(!0)}renderAndPositionPicker(){const e=this.pickerComponent.getGui();this.gos.get("suppressScrollWhenPopupsAreOpen")||([this.destroyMouseWheelFunc]=this.addManagedEventListeners({bodyScroll:()=>{this.hidePicker()}}));const t=this.getLocaleTextFunc(),{config:{pickerAriaLabelKey:s,pickerAriaLabelValue:i,modalPicker:n=!0},maxPickerHeight:o,minPickerWidth:r,maxPickerWidth:a,variableWidth:l,beans:c,eWrapper:d}=this,u={modal:n,eChild:e,closeOnEsc:!0,closedCallback:()=>{const v=zh(c);this.beforeHidePicker(),v&&this.isAlive()&&this.getFocusableElement().focus()},ariaLabel:t(s,i),anchorToElement:d};e.style.position="absolute";const h=c.popupSvc,f=h.addPopup(u);l?(r&&(e.style.minWidth=r),e.style.width=Kh(Ol(d)),a&&(e.style.maxWidth=a)):Bl(e,a??Ol(d));const m=o??`${$h(h.getPopupParent())}px`;return e.style.setProperty("max-height",m),this.alignPickerToComponent(),f.hideFunc}alignPickerToComponent(){if(!this.pickerComponent)return;const{pickerGap:e,config:{pickerType:t},beans:{popupSvc:s,gos:i},eWrapper:n,pickerComponent:o}=this,r=i.get("enableRtl")?"right":"left";s.positionPopupByComponent({type:t,eventSource:n,ePopup:o.getGui(),position:"under",alignSide:r,keepWithinBounds:!0,nudgeY:e})}beforeHidePicker(){this.destroyMouseWheelFunc&&(this.destroyMouseWheelFunc(),this.destroyMouseWheelFunc=void 0),this.toggleExpandedStyles(!1);const e=this.pickerComponent.getGui();e.removeEventListener("focusin",this.onPickerFocusIn),e.removeEventListener("focusout",this.onPickerFocusOut),this.isPickerDisplayed=!1,this.pickerComponent=void 0,this.hideCurrentPicker=null}toggleExpandedStyles(e){if(!this.isAlive())return;const t=this.getAriaElement();Ou(t,e);const s=this.eWrapper.classList;s.toggle("ag-picker-expanded",e),s.toggle("ag-picker-collapsed",!e)}onPickerFocusIn(){this.togglePickerHasFocus(!0)}onPickerFocusOut(e){this.pickerComponent?.getGui().contains(e.relatedTarget)||this.togglePickerHasFocus(!1)}togglePickerHasFocus(e){this.pickerComponent&&this.eWrapper.classList.toggle("ag-picker-has-focus",e)}hidePicker(){this.hideCurrentPicker&&(this.hideCurrentPicker(),this.dispatchLocalEvent({type:"pickerHidden"}))}setInputWidth(e){return Bl(this.eWrapper,e),this}getFocusableElement(){return this.eWrapper}setPickerGap(e){return this.pickerGap=e,this}setPickerMinWidth(e){return typeof e=="number"&&(e=`${e}px`),this.minPickerWidth=e??void 0,this}setPickerMaxWidth(e){return typeof e=="number"&&(e=`${e}px`),this.maxPickerWidth=e??void 0,this}setPickerMaxHeight(e){return typeof e=="number"&&(e=`${e}px`),this.maxPickerHeight=e??void 0,this}destroy(){this.hidePicker(),super.destroy()}},t8=".ag-select{align-items:center;display:flex;&.ag-disabled{opacity:.5}}.ag-select:where(:not(.ag-cell-editor,.ag-label-align-top)){min-height:var(--ag-list-item-height)}:where(.ag-select){.ag-picker-field-wrapper{cursor:default;padding-left:var(--ag-spacing);padding-right:var(--ag-spacing)}&.ag-disabled .ag-picker-field-wrapper:focus{box-shadow:none}.ag-picker-field-display{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-picker-field-icon{align-items:center;display:flex}}.ag-select-list{background-color:var(--ag-picker-list-background-color);border:var(--ag-picker-list-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-dropdown-shadow);overflow:hidden auto}.ag-select-list-item{cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none}:where(.ag-ltr) .ag-select-list-item{padding-left:var(--ag-spacing)}:where(.ag-rtl) .ag-select-list-item{padding-right:var(--ag-spacing)}.ag-select-list-item-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}",Ap=class extends e8{constructor(e){super({pickerAriaLabelKey:"ariaLabelSelectField",pickerAriaLabelValue:"Select Field",pickerType:"ag-list",className:"ag-select",pickerIcon:"selectOpen",ariaRole:"combobox",...e}),this.registerCSS(t8)}postConstruct(){this.tooltipFeature=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{shouldDisplayTooltip:qr(()=>this.eDisplayField),getGui:()=>this.getGui()})),super.postConstruct(),this.createListComponent(),this.eWrapper.tabIndex=this.gos.get("tabIndex");const{options:e,value:t,placeholder:s}=this.config;e!=null&&this.addOptions(e),t!=null&&this.setValue(t,!0),s&&t==null&&(this.eDisplayField.textContent=s),this.addManagedElementListeners(this.eWrapper,{focusout:this.onWrapperFocusOut.bind(this)})}onWrapperFocusOut(e){this.eWrapper.contains(e.relatedTarget)||this.hidePicker()}createListComponent(){const e=this.createBean(new XM("select"));this.listComponent=e,e.setParentComponent(this);const t=e.getAriaElement(),s=`ag-select-list-${e.getCompId()}`;t.setAttribute("id",s),nR(this.getAriaElement(),t),e.addManagedElementListeners(e.getGui(),{mousedown:i=>{i?.preventDefault()}}),e.addManagedListeners(e,{selectedItem:()=>{this.hidePicker(),this.dispatchLocalEvent({type:"selectedItem"})},fieldValueChanged:()=>{this.listComponent&&(this.setValue(this.listComponent.getValue(),!1,!0),this.hidePicker())}})}createPickerComponent(){return this.listComponent}beforeHidePicker(){this.listComponent?.hideItemTooltip(),super.beforeHidePicker()}onKeyDown(e){const{key:t}=e;switch(t===N.TAB&&this.hidePicker(),t){case N.ENTER:case N.UP:case N.DOWN:case N.PAGE_UP:case N.PAGE_DOWN:case N.PAGE_HOME:case N.PAGE_END:e.preventDefault(),this.isPickerDisplayed?this.listComponent?.handleKeyDown(e):super.onKeyDown(e);break;case N.ESCAPE:super.onKeyDown(e);break;case N.SPACE:this.isPickerDisplayed?e.preventDefault():super.onKeyDown(e);break}}showPicker(){const e=this.listComponent;e&&(super.showPicker(),e.refreshHighlighted())}addOptions(e){for(const t of e)this.addOption(t);return this}addOption(e){return this.listComponent.addOption(e),this}clearOptions(){return this.listComponent?.clearOptions(),this.setValue(void 0,!0),this}updateOptions(e){return this.listComponent?.updateOptions(e)&&this.setValue(void 0,!0),this}setValue(e,t,s){const{listComponent:i,config:{placeholder:n},eDisplayField:o,tooltipFeature:r}=this;if(this.value===e||!i)return this;if(s||i.setValue(e,!0),i.getValue()===this.getValue())return this;let l=i.getDisplayValue();return l==null&&n&&(l=n),o.textContent=l,r?.setTooltipAndRefresh(l??null),super.setValue(e,t)}destroy(){this.listComponent=this.destroyBean(this.listComponent),super.destroy()}},s8={selector:"AG-SELECT",component:Ap},i8={tag:"div",cls:"ag-cell-edit-wrapper",children:[{tag:"ag-select",ref:"eEditor",cls:"ag-cell-editor"}]},n8=class extends Pc{constructor(){super(i8,[s8]),this.eEditor=ue,this.startedByEnter=!1}wireBeans(e){this.valueSvc=e.valueSvc}initialiseEditor(e){this.focusAfterAttached=e.cellStartedEdit;const{eEditor:t,valueSvc:s,gos:i}=this,{values:n,value:o,eventKey:r}=e;if(rt(n)){q(58);return}this.startedByEnter=r!=null?r===N.ENTER:!1;let a=!1;n.forEach(u=>{const h={value:u},f=s.formatValue(e.column,null,u),m=f!=null;h.text=m?f:u,t.addOption(h),a=a||o===u}),a?t.setValue(e.value??void 0,!0):e.values.length&&t.setValue(e.values[0],!0);const{valueListGap:l,valueListMaxWidth:c,valueListMaxHeight:d}=e;l!=null&&t.setPickerGap(l),d!=null&&t.setPickerMaxHeight(d),c!=null&&t.setPickerMaxWidth(c),i.get("editType")!=="fullRow"&&this.addManagedListeners(this.eEditor,{selectedItem:()=>e.stopEditing()})}afterGuiAttached(){this.focusAfterAttached&&this.eEditor.getFocusableElement().focus(),this.startedByEnter&&setTimeout(()=>{this.isAlive()&&this.eEditor.showPicker()})}focusIn(){this.eEditor.getFocusableElement().focus()}agSetEditValue(e){this.params.value=e,this.eEditor.setValue(e??void 0,!0)}getValue(){return this.eEditor.getValue()}isPopup(){return!1}getValidationElement(){return this.eEditor.getAriaElement()}getValidationErrors(){const{params:e}=this,{values:t,getValidationErrors:s}=e,i=this.getValue();let n=[];if(t&&i!=null&&!t.includes(i)){const o=this.getLocaleTextFunc();n.push(o("invalidSelectionValidation","Invalid selection."))}else n=null;return s?s({value:i,internalErrors:n,cellEditorParams:e}):n}},o8={tag:"ag-input-text-field",ref:"eEditor",cls:"ag-cell-editor"},r8=class{constructor(e){this.getLocaleTextFunc=e}getTemplate(){return o8}getAgComponents(){return[Lc]}init(e,t){this.eEditor=e,this.params=t;const s=t.maxLength;s!=null&&e.setMaxLength(s)}getValidationErrors(){const{params:e}=this,{maxLength:t,getValidationErrors:s}=e,i=this.getValue(),n=this.getLocaleTextFunc();let o=[];return t!=null&&typeof i=="string"&&i.length>t&&o.push(n("maxLengthValidation",`Must be ${t} characters or fewer.`,[String(t)])),o.length||(o=null),s?s({value:i,cellEditorParams:e,internalErrors:o}):o}getValue(){const{eEditor:e,params:t}=this,s=e.getValue();return!se(s)&&!se(t.value)?t.value:t.parseValue(s)}getStartValue(){const e=this.params;return e.useFormatter||e.column.getColDef().refData?e.formatValue(e.value):e.value}setCaret(){zi()&&this.eEditor.getInputElement().focus({preventScroll:!0});const e=this.eEditor,t=e.getValue(),s=se(t)&&t.length||0;s&&e.getInputElement().setSelectionRange(s,s)}},vm=class extends Oc{constructor(){super(new r8(()=>this.getLocaleTextFunc()))}};function a8(e){e.undoRedo?.undo("api")}function l8(e){e.undoRedo?.redo("api")}function c8(e,t){return e.editModelSvc?.getEditRowDataValue(t,{checkSiblings:!0})}function d8(e){const t=e.editModelSvc?.getEditMap(),s=[];return t?.forEach((i,n)=>{const{rowIndex:o,rowPinned:r}=n;i.forEach((a,l)=>{const{editorValue:c,pendingValue:d,sourceValue:u,state:h}=a,f=ys(a);let m=c??d;m===Rt&&(m=void 0);const v={newValue:m,oldValue:u,state:h,column:l,colId:l.getColId(),colKey:l.getColId(),rowIndex:o,rowPinned:r},C=h==="editing";(C||!C&&f)&&s.push(v)})}),s}function u8(e,t=!1){const{editSvc:s}=e;if(s?.isBatchEditing()){if(t)for(const i of e.editModelSvc?.getEditPositions()??[])i.state==="editing"&&s.revertSingleCellEdit(i);else Di(e,{persist:!0});Si(e,void 0,{cancel:t})}else s?.stopEditing(void 0,{cancel:t,source:"edit",forceStop:!t,forceCancel:t})}function h8(e,t){const s=Ge(e,t);return!!e.editSvc?.isEditing(s)}function p8(e,t){const{key:s,colKey:i,rowIndex:n,rowPinned:o}=t,{editSvc:r,colModel:a}=e,l=a.getCol(i);if(!l){q(12,{colKey:i});return}const d=Vs(e,{rowIndex:n,rowPinned:o||null});if(!d){q(290,{rowIndex:n,rowPinned:o});return}if(!r?.isCellEditable({rowNode:d,column:l},"api"))return;o==null&&g1(e,n),p1(e,i),r?.startEditing({rowNode:d,column:l},{event:s?new KeyboardEvent("keydown",{key:s}):void 0,source:"api",editable:!0})}function g8(e){return e.editSvc?.validateEdit()||null}function f8(e){return e.undoRedo?.getCurrentUndoStackSize()??0}function m8(e){return e.undoRedo?.getCurrentRedoStackSize()??0}var v8={tag:"div",cls:"ag-popup-editor",attrs:{tabindex:"-1"}},C8=class extends cp{constructor(e){super(v8),this.params=e}postConstruct(){Rn(this.gos,this.getGui(),"popupEditorWrapper",!0),this.addKeyDownListener()}addKeyDownListener(){const e=this.getGui(),t=this.params,s=i=>{Zu(this.gos,i,t.node,t.column,!0)||t.onKeyDown(i)};this.addManagedElementListeners(e,{keydown:s})}};function w8(e,{column:t},s,i,n="ui"){if(s instanceof KeyboardEvent&&(s.key===N.TAB||s.key===N.ENTER||s.key===N.F2||s.key===N.BACKSPACE&&i))return!0;if(s?.shiftKey&&e.rangeSvc?.getCellRanges().length!=0)return!1;const r=t?.getColDef(),a=b8(e.gos,r),l=s?.type;return l==="click"&&s?.detail===1&&a===1||l==="dblclick"&&s?.detail===2&&a===2?!0:n==="api"?!!i:!1}function b8(e,t){return e.get("suppressClickEdit")===!0?0:e.get("singleClickEdit")===!0||t?.singleClickEdit?1:2}function uu(e,t){return e.editModelSvc?.hasEdits(t,{withOpenEditor:!0})??!1}function dh(e,t){const s=t.column,i=t.rowNode,n=s.getColDef();if(!i)return uu(e,t);const o=n.editable;return i.group&&n.groupRowEditable!=null?e.rowGroupingEditValueSvc?.isGroupCellEditable(i,s)?!0:uu(e,t):s.isColumnFunc(i,o)?!0:uu(e,t)}function x8(e,t,s="ui"){const i=dh(e,t);if(i||s==="ui")return i;const{rowNode:n,column:o}=t;for(const r of e.colModel.getCols())if(r!==o&&dh(e,{rowNode:n,column:r}))return!0;return!1}var oc=(e,t=!1)=>{if(e!==void 0)return ys(e)||t&&e.state==="editing"};function R1(e,t,s=!1){return oc(e.editModelSvc?.getEdit(t),s)}var F1=(e,t,s)=>{if(e)for(let i=0,n=e.length;i<n;++i){const o=e[i];if(o.data&&(oc(t?.getEdit({rowNode:o,column:s}))||oc(t?.getEdit({rowNode:o.pinnedSibling,column:s})))||F1(o.childrenAfterGroup,t,s))return!0}};function E1(e,t){const{column:s,rowNode:i}=t;return e.gos.get("groupTotalRow")&&!i?.footer?!1:F1(i?.childrenAfterGroup,e.editModelSvc,s)}function D1(e,{rowNode:t,column:s}){if(t=t.pinnedSibling,!!t)return oc(e.editModelSvc?.getEdit({rowNode:t,column:s}))}var y8=class extends j{constructor(e,t){super(),this.cellCtrl=e,this.beans=t,this.editSvc=t.editSvc,this.editModelSvc=t.editModelSvc}setComp(e){this.cellComp=e,this.applyCellStyles()}applyCellStyles(){const{cellCtrl:e,editSvc:t,beans:s}=this;if(t?.isBatchEditing()&&t.isEditing()){const n=R1(s,e)||E1(s,e)||D1(s,e);this.applyBatchingStyle(n)}else this.applyBatchingStyle(!1);const i=!!this.editModelSvc?.getCellValidationModel().hasCellValidation(this.cellCtrl);this.cellComp.toggleCss("ag-cell-editing-error",i)}applyBatchingStyle(e){this.cellComp.toggleCss("ag-cell-editing",e??!1),this.cellComp.toggleCss("ag-cell-batch-edit",(e&&this.editSvc?.isBatchEditing())??!1)}},S8=class extends j{constructor(e,t){super(),this.rowCtrl=e,this.beans=t,this.gos=t.gos,this.editSvc=t.editSvc,this.editModelSvc=t.editModelSvc}applyRowStyles(){const{rowCtrl:e,editModelSvc:t,beans:s}=this;let i=e.rowNode,n=t?.getEditRow(i);const o=this.editModelSvc?.getRowValidationModel().hasRowValidation({rowNode:i});if(!n&&i.pinnedSibling&&(i=i.pinnedSibling,n=t?.getEditRow(i)),n){const r=Array.from(n.keys()).some(a=>{const l={rowNode:i,column:a};return R1(s,l,!0)||E1(s,l)||D1(s,l)});this.applyStyle(o,r);return}this.applyStyle(o)}applyStyle(e=!1,t=!1){const s=!!this.editSvc?.isBatchEditing(),i=this.gos.get("editType")==="fullRow";this.rowCtrl?.forEachGui(void 0,({rowComp:n})=>{n.toggleCss("ag-row-editing",i&&t),n.toggleCss("ag-row-batch-edit",i&&t&&s),n.toggleCss("ag-row-inline-editing",t),n.toggleCss("ag-row-not-inline-editing",!t),n.toggleCss("ag-row-editing-invalid",i&&t&&e)})}},R8=({rowModel:e,pinnedRowModel:t,editModelSvc:s},i)=>{const n=new Set;e.forEachNode(o=>i.has(o)&&n.add(o)),t?.forEachPinnedRow("top",o=>i.has(o)&&n.add(o)),t?.forEachPinnedRow("bottom",o=>i.has(o)&&n.add(o));for(const o of i)n.has(o)||s.removeEdits({rowNode:o});return n},F8=({editModelSvc:e},t,s)=>{for(const i of t)e?.getEditRow(i)?.forEach((n,o)=>!s.has(o)&&e.removeEdits({rowNode:i,column:o}))},E8=e=>()=>{const t=new Set(e.colModel.getCols()),s=e.editModelSvc.getEditMap(!0),i=new Set(s.keys());F8(e,R8(e,i),t)},D8=new Set(["undo","redo","paste","bulk","rangeSvc"]),P8=new Set(["ui","api"]),P1={paste:"api",rangeSvc:"api",fillHandle:"api",cellClear:"api",bulk:"api"},T8=new Set(Object.keys(P1)),k8=new Set(["paste","rangeSvc","cellClear","redo","undo"]),hu={cancel:!0,source:"api"},I8={cancel:!1,source:"api"},Qi={checkSiblings:!0},bi={force:!0,suppressFlash:!0},M8={force:!0},A8=class extends j{constructor(){super(...arguments),this.beanName="editSvc",this.committing=!1,this.batch=!1,this.batchStartDispatched=!1,this.stopping=!1,this.rangeSelectionWhileEditing=0}postConstruct(){const{beans:e}=this;this.model=e.editModelSvc,this.valueSvc=e.valueSvc,this.rangeSvc=e.rangeSvc,this.addManagedPropertyListener("editType",({currentValue:i})=>{this.stopEditing(void 0,hu),this.createStrategy(i)});const t=E8(e),s=()=>{const i=this.model.getCellValidationModel().getCellValidationMap().size>0,n=this.model.getRowValidationModel().getRowValidationMap().size>0;return i||n?this.stopEditing(void 0,hu):this.isEditing()&&(this.batch?Si(e,this.model.getEditPositions()):this.stopEditing(void 0,I8)),!1};this.addManagedEventListeners({columnPinned:t,columnVisible:t,columnRowGroupChanged:t,rowExpansionStateChanged:t,pinnedRowsChanged:t,displayedRowsChanged:t,sortChanged:s,filterChanged:s,cellFocused:this.onCellFocused.bind(this)})}isBatchEditing(){return this.batch}startBatchEditing(){this.batch||(this.batch=!0,this.batchStartDispatched=!1,this.stopEditing(void 0,hu))}stopBatchEditing(e){this.batch&&(e&&this.stopEditing(void 0,e),this.batchStartDispatched&&this.dispatchBatchStopped(new Map,!1),this.batch=!1,this.batchStartDispatched=!1)}ensureBatchStarted(){!this.batch||this.batchStartDispatched||(this.batchStartDispatched=!0,this.dispatchBatchEvent("batchEditingStarted",new Map))}createStrategy(e){const{beans:t,gos:s,strategy:i}=this,n=Cm(s,e);if(i){if(i.beanName===n)return i;this.destroyStrategy()}return this.strategy=this.createOptionalManagedBean(t.registry.createDynamicBean(n,!0))}destroyStrategy(){this.strategy&&(this.strategy.destroy(),this.strategy=this.destroyBean(this.strategy))}shouldStartEditing(e,t,s,i="ui"){const n=w8(this.beans,e,t,s,i);return n&&(this.strategy??(this.strategy=this.createStrategy())),n}shouldStopEditing(e,t,s="ui"){return this.strategy?.shouldStop(e,t,s)??null}shouldCancelEditing(e,t,s="ui"){return this.strategy?.shouldCancel(e,t,s)??null}validateEdit(){return fT(this.beans)}isEditing(e,t){return this.model.hasEdits(e??void 0,t??Qi)}isRowEditing(e,t){return!!e&&this.model.hasRowEdits(e,t)}enableRangeSelectionWhileEditing(){this.beans.rangeSvc&&this.gos.get("cellSelection")&&this.rangeSelectionWhileEditing++}disableRangeSelectionWhileEditing(){this.rangeSelectionWhileEditing=Math.max(0,this.rangeSelectionWhileEditing-1)}isRangeSelectionEnabledWhileEditing(){return this.rangeSelectionWhileEditing>0}startEditing(e,t){const{startedEdit:s=!0,event:i=null,source:n="ui",ignoreEventKey:o=!1,silent:r}=t;if(this.strategy??(this.strategy=this.createStrategy()),!(t.editable??this.isCellEditable(e,"api")))return;const l=Ge(this.beans,e);if(l&&!l.comp){t.editable=void 0,l.onCompAttachedFuncs.push(()=>this.startEditing(e,t));return}const c=this.shouldStartEditing(e,i,s,n);if(c===!1&&n!=="api"){this.isEditing(e)&&this.stopEditing();return}!this.batch&&this.shouldStopEditing(e,void 0,n)&&!t.continueEditing&&this.stopEditing(void 0,{source:n}),c&&this.ensureBatchStarted(),this.strategy.start({position:e,event:i,source:n,ignoreEventKey:o,startedEdit:s,silent:r})}stopEditing(e,t){const s=this.prepareStopContext(e,t);if(!s)return!1;this.stopping=!0;let i=!1,{edits:n}=s;try{const o=this.processStopRequest(s);return i||(i=o.res),n=o.edits,this.finishStopEditing({...s,edits:n,params:t,position:e,res:i}),i}finally{this.rangeSelectionWhileEditing=0,this.stopping=!1}}prepareStopContext(e,t){const{event:s=null,cancel:i=!1,source:n="ui",forceCancel:o=!1,forceStop:r=!1,commit:a=!1}=t||{};if(T8.has(n)&&this.batch)return e?.rowNode&&e?.column&&this.bulkRefreshCell(e),null;const l=this.committing?P1[n]:n;if(!(this.committing||this.isEditing(e)||this.batch&&this.model.hasEdits(e,Qi))||!this.strategy||this.stopping)return null;const d=Ge(this.beans,e);d&&(d.onEditorAttachedFuncs=[]);const u=!i&&(!!this.shouldStopEditing(e,s,l)||(this.committing||n==="paste")&&!this.batch)||r,h=i&&!!this.shouldCancelEditing(e,s,l)||o;return{cancel:i,cellCtrl:d,edits:this.model.getEditMap(!0),event:s??null,forceCancel:o,forceStop:r,commit:a,position:e,source:n,treatAsSource:l,willCancel:h,willStop:u}}processStopRequest(e){const{event:t,position:s,willCancel:i,willStop:n}=e;return n||i?this.handleStopOrCancel(e):this.shouldHandleMidBatchKey(t,s)?{res:!1,edits:this.handleMidBatchKey(t,s,e)}:(Di(this.beans,{persist:!0}),this.batch&&this.strategy?.cleanupEditors(s),{res:!1,edits:this.model.getEditMap()})}handleStopOrCancel(e){const{beans:t,model:s}=this,{cancel:i,commit:n,edits:o,event:r,source:a,willCancel:l,willStop:c}=e,d=!this.batch||!l;Di(t,{persist:d,isCancelling:l||i,isStopping:c});const u=s.getEditMap(),f=!l&&(!this.batch||n)?this.processEdits(u,a):[];i?this.strategy?.stopCancelled(e.forceCancel):this.strategy?.stopCommitted(r,n),this.clearValidationIfNoOpenEditors();for(const m of f)s.clearEditValue(m);this.bulkRefreshMap(o);for(const m of s.getEditPositions(u)){const v=Ge(t,m),C=ys(m);v?.refreshCell({force:!0,suppressFlash:!C})}return{res:c,edits:u}}shouldHandleMidBatchKey(e,t){return e instanceof KeyboardEvent&&this.batch&&!!this.strategy?.midBatchInputsAllowed(t)&&this.isEditing(t,{withOpenEditor:!0})}handleMidBatchKey(e,t,s){const{beans:i,model:n}=this,{cellCtrl:o,edits:r}=s,{key:a}=e,l=a===N.ENTER,c=a===N.ESCAPE,d=a===N.TAB;if(l||d||c){if(l||d)Di(i,{persist:!0});else if(c&&o){const{rowNode:u,column:h}=o;if(this.batch&&u&&h){const f={rowNode:u,column:h};Si(i,[f],{silent:!0}),this.model.stop(f,!0,!0),Ge(i,f)?.refreshCell(bi)}else this.revertSingleCellEdit(o)}return this.batch?this.strategy?.cleanupEditors():Si(i,n.getEditPositions(),{event:e,cancel:c}),e.preventDefault(),this.bulkRefreshMap(r,{suppressFlash:!0}),n.getEditMap()}return r}finishStopEditing({cellCtrl:e,edits:t,params:s,position:i,res:n,commit:o,forceCancel:r,willCancel:a,willStop:l}){const c=this.beans;n&&i&&(!this.batch||o)&&this.model.removeEdits(i),this.navigateAfterEdit(s,e?.cellPosition),Sr(c),this.clearValidationIfNoOpenEditors();const{rowRenderer:d,formula:u}=c;if(a&&d.refreshRows({rowNodes:Array.from(t.keys())}),this.batch){u?u.refreshFormulas(!0):d.refreshRows({suppressFlash:!0,force:!0});const h=l&&o;(h||a&&r)&&this.dispatchBatchStopped(t,h)}}dispatchBatchStopped(e,t){let s;t&&(s=aT(e),s.size>0&&this.ensureBatchStarted()),this.batchStartDispatched&&(this.batchStartDispatched=!1,this.dispatchBatchEvent("batchEditingStopped",s??new Map))}clearValidationIfNoOpenEditors(){this.model.hasEdits(void 0,{withOpenEditor:!0})||(this.model.getCellValidationModel().clearCellValidationMap(),this.model.getRowValidationModel().clearRowValidationMap())}navigateAfterEdit(e,t){if(!e||!t)return;const{event:s,suppressNavigateAfterEdit:i}=e;if(!(s instanceof KeyboardEvent)||i)return;const{key:o,shiftKey:r}=s,a=this.gos.get("enterNavigatesVerticallyAfterEdit");if(o!==N.ENTER||!a)return;const l=r?N.UP:N.DOWN;this.beans.navigation?.navigateToNextCell(null,l,t,!1)}processEdits(e,t){const s=Array.from(e.keys()),i=this.model.getCellValidationModel().getCellValidationMap().size>0||this.model.getRowValidationModel().getRowValidationMap().size>0,n=[],{changeDetectionSvc:o}=this.beans;o?.beginDeferred();try{for(const r of s){const a=e.get(r);for(const l of a.keys()){const c=a.get(l),d={rowNode:r,column:l};if(ys(c)&&!i){const u=Ge(this.beans,d);this.setNodeDataValue(r,l,c.pendingValue,u,t)||n.push(d)}}}}finally{o?.endDeferred()}return n}setNodeDataValue(e,t,s,i,n="edit"){const o=P8.has(n)?"edit":n;i&&(i.suppressRefreshCell=!0),this.committing=!0;try{return e.setDataValue(t,s,o)}finally{this.committing=!1,i&&(i.suppressRefreshCell=!1)}}syncEditAfterCommit(e,t){const s=this.model.getEdit(e);s&&s.state!=="editing"&&(t?this.beans.editModelSvc?.setEdit(e,{sourceValue:s.pendingValue}):this.model.clearEditValue(e))}setEditMap(e,t){this.strategy??(this.strategy=this.createStrategy()),this.strategy?.setEditMap(e,t),this.bulkRefreshMap(e);let s=bi;t?.forceRefreshOfEditCellsOnly&&(s={...L8(e),...bi}),this.beans.rowRenderer.refreshCells(s)}dispatchEditValuesChanged({rowNode:e,column:t},s={}){if(!e||!t||!s)return;const{pendingValue:i,sourceValue:n}=s,{rowIndex:o,rowPinned:r,data:a}=e;this.beans.eventSvc.dispatchEvent({type:"cellEditValuesChanged",node:e,rowIndex:o,rowPinned:r,column:t,source:"api",data:a,newValue:i,oldValue:n,value:i,colDef:t.getColDef()})}bulkRefreshCell(e,t){at(this.gos,this.beans.rowModel)&&this.refCell(e,this.model.getEdit(e),t)}bulkRefreshMap(e,t){at(this.gos,this.beans.rowModel)&&e.forEach((s,i)=>{for(const n of s.keys())this.refCell({rowNode:i,column:n},s.get(n),t)})}refCell({rowNode:e,column:t},s,i={}){const{beans:n,gos:o}=this,r=new Set([e]),a=new Set,l=e.pinnedSibling;l&&r.add(l);const c=e.sibling;c&&a.add(c);let d=e.parent;for(;d;)d.sibling?.footer&&o.get("groupTotalRow")||!d.parent&&d.sibling&&o.get("grandTotalRow")?a.add(d.sibling):a.add(d),d=d.parent;for(const u of r)this.dispatchEditValuesChanged({rowNode:u,column:t},s);for(const u of r)Ge(n,{rowNode:u,column:t})?.refreshCell(i);for(const u of a){const h=Ge(n,{rowNode:u,column:t});h&&(h.refreshCell(i),!i.force&&this.batch&&h.editStyleFeature?.applyCellStyles?.())}}stopAllEditing(e=!1,t="ui"){this.isEditing()&&this.stopEditing(void 0,{cancel:e,source:t})}isCellEditable(e,t="ui"){const{gos:s,beans:i}=this,n=e.rowNode;if(n.group&&e.column.getColDef().groupRowEditable==null){if(s.get("treeData")){if(!n.data&&!s.get("enableGroupEdit"))return!1}else if(!s.get("enableGroupEdit"))return!1}const o=Cm(s)==="fullRow"?x8(i,e,t):dh(i,e);return o&&(this.strategy??(this.strategy=this.createStrategy())),o}cellEditingInvalidCommitBlocks(){return this.gos.get("invalidEditValueMode")==="block"}checkNavWithValidation(e,t,s=!0){if(this.hasValidationErrors(e)){const i=Ge(this.beans,e);return this.cellEditingInvalidCommitBlocks()?(t?.preventDefault?.(),s&&(i&&!i.hasBrowserFocus()&&i.focusCell(),i?.comp?.getCellEditor()?.focusIn?.()),"block-stop"):(i&&this.revertSingleCellEdit(i),"revert-continue")}return"continue"}revertSingleCellEdit(e,t=!1){const s=Ge(this.beans,e);s?.comp?.getCellEditor()&&(Si(this.beans,[e],{silent:!0}),this.model.clearEditValue(e),Tn(this.beans,e,{silent:!0}),ki(this.beans),s?.refreshCell(bi),t&&(s?.focusCell(),s?.comp?.getCellEditor()?.focusIn?.()))}hasValidationErrors(e){ki(this.beans);const t=Ge(this.beans,e);t&&(t.refreshCell(bi),t.rowCtrl.rowEditStyleFeature?.applyRowStyles());let s=!1;return e?.rowNode?(s||(s=this.model.getRowValidationModel().hasRowValidation({rowNode:e.rowNode})),e.column&&(s||(s=this.model.getCellValidationModel().hasCellValidation({rowNode:e.rowNode,column:e.column})))):(s||(s=this.model.getCellValidationModel().getCellValidationMap().size>0),s||(s=this.model.getRowValidationModel().getRowValidationMap().size>0)),s}moveToNextCell(e,t,s,i="ui"){let n;const o=this.isEditing(),r=o&&this.checkNavWithValidation(void 0,s)==="block-stop";return e instanceof Fo&&o&&(n=this.strategy?.moveToNextEditingCell(e,t,s,i,r)),n===null||(n=n||!!this.beans.focusSvc.focusedHeader,n===!1&&!r&&this.stopEditing()),n}getPendingEditValue(e,t,s){if(s==="data"||s==="batch"&&!this.batch)return;const i=this.model.getEdit({rowNode:e,column:t},Qi);if(!i||this.stopping&&!this.batch&&!i.editorState?.cellStartedEditing)return;if(s==="edit"){const o=i.editorValue;if(o!=null&&o!==Rt)return o}const n=i.pendingValue;if(n!==Rt)return n}getCellDataValue(e){const t=this.model.getEdit(e,Qi);if(t){const s=t.pendingValue;if(s!==Rt)return s;const i=t.sourceValue;if(i!=null)return i}return this.valueSvc.getValue(e.column,e.rowNode,"data")}addStopEditingWhenGridLosesFocus(e){nT(this,this.beans,e)}createPopupEditorWrapper(e){return new C8(e)}batchResetToSourceValue(e){if(!this.batch)return!1;const t=this.model.getEdit(e);if(!t)return!1;const{pendingValue:s,sourceValue:i,state:n}=t;return s===i||n==="editing"?!1:(this.dispatchEditValuesChanged(e,{...t,pendingValue:i}),this.beans.editModelSvc?.removeEdits(e),Ge(this.beans,e)?.refreshCell(bi),!0)}setDataValue(e,t,s){try{const i=this.batch,n=this.isEditing(i?void 0:e);if((!n||this.committing)&&!i&&!k8.has(s)||!n&&!i&&s==="paste"||s==="batch"&&!i)return;if(s==="edit"){if(n&&this.applyEditorValue(e,t))return!0;if(!i)return}if(this.strategy??(this.strategy=this.createStrategy()),s==="batch"||s==="edit")return this.applyDirectValue(e,t,s);const o=this.beans;let r;if(i?r="ui":this.committing?r=s??"api":r="api",!s||D8.has(s))return this.applyDirectValue(e,t,s);const a=this.applyExistingEdit(e,t,s,r);return a!==void 0?a:(ro(o,e,t,s,void 0,{persist:!0}),this.ensureBatchStarted(),this.stopEditing(e,{source:r,suppressNavigateAfterEdit:!0}),!0)}finally{this.committing=!1}}applyExistingEdit(e,t,s,i){const n=this.model.getEdit(e);if(n)return n.pendingValue===t?!1:n.sourceValue!==t?(ro(this.beans,e,t,s,void 0,{persist:!0}),this.ensureBatchStarted(),this.stopEditing(e,{source:i,suppressNavigateAfterEdit:!0}),!0):(this.beans.editModelSvc?.removeEdits(e),this.ensureBatchStarted(),this.dispatchEditValuesChanged(e,{...n,pendingValue:t}),!0)}applyEditorValue(e,t){const s=this.beans,i=Ge(s,e),n=i?.comp?.getCellEditor();return!i||!n?!1:(ro(s,e,t,"edit",void 0,{persist:!0}),i.editStyleFeature?.applyCellStyles?.(),"agSetEditValue"in n?(n.agSetEditValue(t),!0):n.refresh&&i.editCompDetails?(n.refresh({...i.editCompDetails.params,value:t}),!0):(i.hasBrowserFocus()&&i.onEditorAttachedFuncs.push(()=>{const r=Ge(this.beans,e);r?.focusCell(!0),r?.comp?.getCellEditor()?.focusIn?.()}),Si(s,[e],{silent:!0,cancel:!0}),Tn(s,e,{silent:!0}),ki(s),Ge(s,e)?.refreshCell(bi),!0))}applyDirectValue(e,t,s){const i=this.beans;if(this.batch){if(s==="batch"&&Ge(i,e)?.comp?.getCellEditor()){const{editModelSvc:r,valueSvc:a}=i,{rowNode:l,column:c}=e;r?.getEdit(e)?.sourceValue===void 0&&r?.setEdit(e,{sourceValue:a.getValue(c,l,"data")}),r?.setEdit(e,{pendingValue:t})}else ro(i,e,t,s,void 0,{persist:!0}),s!=="batch"&&this.cleanupEditors();return Sr(i),this.ensureBatchStarted(),this.bulkRefreshCell(e),!0}ro(i,e,t,s,void 0,{persist:!0});const n=Ge(i,e),o=this.setNodeDataValue(e.rowNode,e.column,t,n,s);return this.syncEditAfterCommit(e,o),Sr(i),Ge(i,e)?.refreshCell(o?M8:bi),o}handleColDefChanged(e){cT(this.beans,e)}destroy(){this.model.clear(),this.destroyStrategy(),super.destroy()}prepDetailsDuringBatch(e,t){const{model:s}=this;if(!this.batch||!s.hasRowEdits(e.rowNode,Qi))return;const{rowNode:n}=e,{compDetails:o,valueToDisplay:r}=t;if(o){const{params:a}=o;return a.data=s.getEditRowDataValue(n,Qi),{compDetails:o}}return{valueToDisplay:r}}cleanupEditors(){this.strategy?.cleanupEditors()}dispatchCellEvent(e,t,s,i){this.strategy?.dispatchCellEvent(e,t,s,i)}dispatchBatchEvent(e,t){this.eventSvc.dispatchEvent(this.createBatchEditEvent(e,t))}createBatchEditEvent(e,t){return Se(this.gos,{type:e,...e==="batchEditingStopped"?{changes:this.toEventChangeList(t)}:{}})}toEventChangeList(e){return this.model.getEditPositions(e).map(t=>({rowIndex:t.rowNode.rowIndex,rowPinned:t.rowNode.rowPinned,columnId:t.column.getColId(),newValue:t.pendingValue,oldValue:t.sourceValue}))}applyBulkEdit({rowNode:e,column:t},s){if(!s||s.length===0)return;const{beans:i,rangeSvc:n,valueSvc:o}=this,{formula:r}=i;Di(i,{persist:!0});const a=this.model.getEditMap(!0);let l=a.get(e)?.get(t)?.pendingValue,c=!1;this.batch||(this.eventSvc.dispatchEvent({type:"bulkEditingStarted"}),c=!0);const d=r?.isFormula(l)??!1;s.forEach(h=>{const f=h.columns.some(m=>m?.isAllowFormula());if(n?.forEachRowInRange(h,m=>{const v=Vs(i,m);if(v===void 0)return;const C=a.get(v)??new Map;let w=l;for(const b of h.columns){if(!b)continue;const x=!!d&&b.isAllowFormula();if(this.isCellEditable({rowNode:v,column:b},"api")){const y=o.getValue(b,v,"data",!0);let S=o.parseValue(b,v??null,w,y);Number.isNaN(S)&&(S=null),C.set(b,{editorValue:void 0,pendingValue:S,sourceValue:y,state:"changed",editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0}})}x&&(w=r?.updateFormulaByOffset({value:w,columnDelta:1}))}C.size>0&&a.set(v,C),d&&f&&(l=r?.updateFormulaByOffset({value:l,rowDelta:1}))}),this.setEditMap(a),this.batch){this.cleanupEditors(),Sr(i),this.ensureBatchStarted();return}this.committing=!0;try{this.stopEditing(void 0,{source:"bulk"})}finally{this.committing=!1,c&&this.eventSvc.dispatchEvent({type:"bulkEditingStopped",changes:this.toEventChangeList(a)})}});const u=Ge(i,{rowNode:e,column:t});u&&u.focusCell(!0)}createCellStyleFeature(e){return new y8(e,this.beans)}createRowStyleFeature(e){return new S8(e,this.beans)}setEditingCells(e,t){const{beans:s}=this,{colModel:i,valueSvc:n}=s,o=new Map;for(let{colId:r,column:a,colKey:l,rowIndex:c,rowPinned:d,newValue:u,state:h}of e){const f=r?i.getCol(r):l?i.getCol(l):a;if(!f)continue;const m=Vs(s,{rowIndex:c,rowPinned:d});if(!m)continue;const v=n.getValue(f,m,"data",!0);if(!t?.forceRefreshOfEditCellsOnly&&!ys({pendingValue:u,sourceValue:v})&&h!=="editing")continue;let C=o.get(m);C||(C=new Map,o.set(m,C)),u===void 0&&(u=Rt),C.set(f,{editorValue:void 0,pendingValue:u,sourceValue:v,state:h??"changed",editorState:{isCancelAfterEnd:void 0,isCancelBeforeStart:void 0}})}this.setEditMap(o,t)}onCellFocused(e){const t=Ge(this.beans,e);if(!t||!this.isEditing(t,Qi))return;const s=this.model.getEdit(t);if(!s||!ys(s))return;const n=this.getLocaleTextFunc()("ariaPendingChange","Pending Change");this.beans.ariaAnnounce?.announceValue(n,"pendingChange")}allowedFocusTargetOnValidation(e){return Ge(this.beans,e)}};function L8(e){return{rowNodes:e?Array.from(e.keys()):void 0,columns:e?[...new Set(Array.from(e.values()).flatMap(t=>Array.from(t.keys())))]:void 0}}function Cm(e,t){return t??e.get("editType")??"singleCell"}var T1=class extends j{postConstruct(){this.model=this.beans.editModelSvc,this.editSvc=this.beans.editSvc,this.addManagedEventListeners({cellFocused:this.onCellFocusChanged?.bind(this),cellFocusCleared:this.onCellFocusChanged?.bind(this)})}clearEdits(e){this.model.clearEditValue(e)}onCellFocusChanged(e){let t;const s=e.previousParams,{editSvc:i,beans:n}=this,o=e.type==="cellFocused"?e.sourceEvent:null;s&&(t=Ge(n,s));const{gos:r,editModelSvc:a}=n,l=e.type==="cellFocusCleared";if(i.isEditing(void 0,{withOpenEditor:!0})){const{column:c,rowIndex:d,rowPinned:u}=e,h={column:c,rowNode:Vs(n,{rowIndex:d,rowPinned:u})},f=r.get("invalidEditValueMode")==="block";if(f)return;const m=!f,v=!!a?.getCellValidationModel().hasCellValidation(h),C=m&&v;!(s||l)||i.stopEditing(void 0,{cancel:C,source:l&&m?"api":void 0,event:o})||(i.isBatchEditing()?i.cleanupEditors():i.stopEditing(void 0,{source:"api"}))}t?.refreshCell({suppressFlash:!0,force:!0})}stopCancelled(e){const t=this.editSvc.isBatchEditing()&&!e;for(const s of this.model.getEditPositions())Jr(this.beans,s,{cancel:!0},Ge(this.beans,s)),this.model.stop(s,t,!0);return!0}stopCommitted(e,t){const s=this.model.getEditPositions(),i={all:[],pass:[],fail:[]};for(const r of s)i.all.push(r),(this.model.getCellValidationModel().getCellValidation(r)?.errorMessages?.length??0)>0?i.fail.push(r):i.pass.push(r);const n=this.processValidationResults(i),o=this.editSvc.isBatchEditing()&&!t;for(const r of n.destroy)Jr(this.beans,r,{event:e},Ge(this.beans,r)),this.model.stop(r,o,!1);for(const r of n.keep){const a=Ge(this.beans,r);!this.editSvc.cellEditingInvalidCommitBlocks()&&a&&this.editSvc.revertSingleCellEdit(a)}return!0}cleanupEditors({rowNode:e}={},t){Di(this.beans,{persist:!1});const s=this.model.getEditPositions(),i=[];if(e)for(const n of s)n.rowNode!==e&&i.push(n);else for(const n of s)i.push(n);Si(this.beans,i),Sr(this.beans,t)}setFocusOutOnEditor(e){e.comp?.getCellEditor()?.focusOut?.()}setFocusInOnEditor(e){const t=e.comp,s=t?.getCellEditor();if(s?.focusIn)s.focusIn();else{const i=this.beans.gos.get("editType")==="fullRow";e.focusCell(i),e.onEditorAttachedFuncs.push(()=>t?.getCellEditor()?.focusIn?.())}}setupEditors(e){const{event:t,ignoreEventKey:s=!1,startedEdit:i,position:n,cells:o=this.model.getEditPositions()}=e,r=t instanceof KeyboardEvent&&!s&&t.key||void 0;rT(this.beans,o,n,r,t,i)}dispatchCellEvent(e,t,s,i){const n=Ge(this.beans,e);n&&this.eventSvc.dispatchEvent({...n.createEvent(t??null,s),...i})}dispatchRowEvent(e,t,s){if(s)return;const i=sc(this.beans,e);i&&this.eventSvc.dispatchEvent(i.createRowEvent(t))}shouldStop(e,t,s="ui"){const i=this.editSvc.isBatchEditing();return i&&s==="api"?!0:i&&(s==="ui"||s==="edit")?!1:s==="api"?!0:t instanceof KeyboardEvent&&!i?t.key===N.ENTER:null}shouldCancel(e,t,s="ui"){const i=this.editSvc.isBatchEditing();return!!(t instanceof KeyboardEvent&&!i&&t.key===N.ESCAPE||i&&s==="api"||s==="api")}setEditMap(e,t){t?.update||this.editSvc.stopEditing(void 0,{cancel:!0,source:"api"});const s=[];if(e.forEach((i,n)=>{i.forEach((o,r)=>{o.state==="editing"&&s.push({...o,rowNode:n,column:r})})}),t?.update&&(e=new Map([...this.model.getEditMap(),...e])),this.model?.setEditMap(e),s.length>0){const i=s.at(-1),n=i.pendingValue===Rt?void 0:i.pendingValue;this.start({position:i,event:new KeyboardEvent("keydown",{key:n}),source:"api"});const o=Ge(this.beans,i);o&&this.setFocusInOnEditor(o)}}destroy(){this.cleanupEditors(),super.destroy()}},O8=class extends T1{constructor(){super(...arguments),this.beanName="fullRow",this.startedRows=new Set}shouldStop(e,t,s="ui"){const{rowNode:i,beans:n}=this,{rowNode:o}=e||{};if(!sc(n,{rowNode:i}))return!0;const a=super.shouldStop({rowNode:i},t,s);return a!==null?a:i?o!==i:!1}midBatchInputsAllowed({rowNode:e}){return e?this.model.hasEdits({rowNode:e}):!1}clearEdits(e){this.model.clearEditValue(e)}start(e){const{position:t,silent:s,startedEdit:i,event:n,ignoreEventKey:o}=e,{rowNode:r}=t,{beans:a,model:l,startedRows:c}=this;this.rowNode!==r&&super.cleanupEditors(t);const d=a.visibleCols.allCols,u=[],h=[];for(const f of d)f.isCellEditable(r)&&h.push(f);if(h.length!=0){c.has(r)||(this.dispatchRowEvent({rowNode:r},"rowEditingStarted",s),c.add(r));for(const f of h){const m={rowNode:r,column:f};u.push(m),l.start(m)}this.rowNode=r,this.setupEditors({cells:u,position:t,startedEdit:i,event:n,ignoreEventKey:o})}}processValidationResults(e){return e.fail.length>0&&this.editSvc.cellEditingInvalidCommitBlocks()?{destroy:[],keep:e.all}:{destroy:e.all,keep:[]}}stopCancelled(e){const{rowNode:t,model:s}=this;return t&&!s.hasRowEdits(t)?!1:(super.stopCancelled(e),this.cleanupEditors({rowNode:t},!0),this.rowNode=void 0,!0)}stopCommitted(e,t){const{rowNode:s,beans:i,model:n,editSvc:o}=this;if(s&&!n.hasRowEdits(s))return!1;const r=[];if(n.getEditMap().forEach((a,l)=>{if(!(!a||a.size===0)){for(const c of a.values())if(ys(c)){r.push(l);break}}}),ki(i),o.checkNavWithValidation({rowNode:s})==="block-stop")return!1;if(super.stopCommitted(e,t),t||!o.isBatchEditing())for(const a of r)this.dispatchRowEvent({rowNode:a},"rowValueChanged");return this.cleanupEditors({rowNode:s},!0),this.rowNode=void 0,!0}onCellFocusChanged(e){const{rowIndex:t}=e,s=e.previousParams;if(s?.rowIndex===t||e.sourceEvent instanceof KeyboardEvent)return;const{beans:i,gos:n,model:o}=this;if(i.editSvc?.isRangeSelectionEnabledWhileEditing())return;const r=Ge(i,s);n.get("invalidEditValueMode")==="block"&&r&&(o.getCellValidationModel().getCellValidation(r)||o.getRowValidationModel().getRowValidation(r))||super.onCellFocusChanged(e)}cleanupEditors(e={},t){super.cleanupEditors(e,t);const{startedRows:s}=this;for(const i of s)this.dispatchRowEvent({rowNode:i},"rowEditingStopped"),this.destroyEditorsForRow(i);s.clear()}destroyEditorsForRow(e){const t=sc(this.beans,{rowNode:e});if(!t)return;const s={};for(const i of t.getAllCellCtrls())i.comp?.getCellEditor()&&Jr(this.beans,i,s,i)}moveToNextEditingCell(e,t,s,i="ui",n=!1){const{beans:o,model:r,gos:a,editSvc:l}=this,c=e.cellPosition;let d;r.suspend(!0);try{d=o.navigation?.findNextCellToFocusOn(c,{backwards:t,startEditing:!0,skipToNextEditableCell:!1})}finally{r.suspend(!1)}if(d===!1)return null;if(d==null)return!1;const u=d.cellPosition,h=e.isCellEditable(),f=d.isCellEditable(),m=u&&c.rowIndex===u.rowIndex&&c.rowPinned===u.rowPinned;h&&this.setFocusOutOnEditor(e),this.restoreEditors();const v=a.get("suppressStartEditOnTab");return f&&!n?v?d.focusCell(!0,s):(d.comp?.getCellEditor()||Tn(o,d,{event:s,cellStartedEdit:!0}),this.setFocusInOnEditor(d),d.focusCell(!1,s)):(f&&n&&this.setFocusInOnEditor(d),d.focusCell(!0,s)),!m&&!n&&(l?.stopEditing({rowNode:e.rowNode},{event:s,forceStop:!0}),l?.isRowEditing(e.rowNode,{withOpenEditor:!0})&&this.cleanupEditors(d,!0),v?d.focusCell(!0,s):l.startEditing(d,{startedEdit:!0,event:s,source:i,ignoreEventKey:!0,editable:f||void 0})),e.rowCtrl?.refreshRow({suppressFlash:!0,force:!0}),!0}restoreEditors(){const{beans:e,model:t}=this;t.getEditMap().forEach((s,i)=>s.forEach(({state:n},o)=>{if(n!=="editing")return;const r=Ge(e,{rowNode:i,column:o});r&&!r.comp?.getCellEditor()&&Tn(e,r,{silent:!0})}))}destroy(){super.destroy(),this.rowNode=void 0,this.startedRows.clear()}},N8=class extends T1{constructor(){super(...arguments),this.beanName="singleCell"}shouldStop(e,t,s="ui"){const i=super.shouldStop(e,t,s);if(i!==null)return i;const n=e?.rowNode,o=e?.column,r=this.rowNode,a=this.column;return(!r||!a)&&n&&o?null:r!==n||a!==o?!0:!r&&!a?this.model.hasEdits(void 0,{withOpenEditor:!0}):!1}midBatchInputsAllowed(e){return this.model.hasEdits(e)}start(e){const{position:t,startedEdit:s,event:i,ignoreEventKey:n}=e;(this.rowNode!==t.rowNode||this.column!==t.column)&&super.cleanupEditors(),this.rowNode=t.rowNode,this.column=t.column,this.model.start(t),this.setupEditors({cells:[t],position:t,startedEdit:s,event:i,ignoreEventKey:n})}dispatchRowEvent(e,t,s){}processValidationResults(e){return e.fail.length>0&&this.editSvc.cellEditingInvalidCommitBlocks()?{destroy:[],keep:e.all}:{destroy:e.all,keep:[]}}stopCancelled(e){return super.stopCancelled(e),this.clearPosition()}stopCommitted(e,t){return super.stopCommitted(e,t),this.clearPosition()}clearPosition(){return this.rowNode=void 0,this.column=void 0,!0}onCellFocusChanged(e){const{colModel:t,editSvc:s}=this.beans,{rowIndex:i,column:n,rowPinned:o}=e,r=Vs(this.beans,{rowIndex:i,rowPinned:o}),a=ih(n),l=t.getCol(a),c=e.previousParams;if(c){const d=ih(c.column);if(c?.rowIndex===i&&d===a&&c?.rowPinned===o)return}e.type=="cellFocused"&&(s?.isRangeSelectionEnabledWhileEditing()||s?.isEditing({rowNode:r,column:l},{withOpenEditor:!0}))||super.onCellFocusChanged(e)}moveToNextEditingCell(e,t,s,i="ui",n=!1){const o=this.beans.focusSvc.getFocusedCell();o&&(e=co(this.beans,o)??e);const r=e.cellPosition;let a;const l=this.beans.gos.get("editType")==="fullRow";l&&this.model.suspend(!0),n||(e.eGui.focus(),this.editSvc?.stopEditing(e,{source:this.editSvc?.isBatchEditing()?"ui":"api",event:s}));try{a=this.beans.navigation?.findNextCellToFocusOn(r,{backwards:t,startEditing:!0})}finally{l&&this.model.suspend(!1)}if(a===!1)return null;if(a==null)return!1;const c=a.cellPosition,d=e.isCellEditable(),u=a.isCellEditable(),h=c&&r.rowIndex===c.rowIndex&&r.rowPinned===c.rowPinned;d&&!n&&this.setFocusOutOnEditor(e);const f=this.gos.get("suppressStartEditOnTab");let m=!1;if(!h&&!n&&(super.cleanupEditors(a,!0),f?a.focusCell(!0,s):(m=!0,this.editSvc.startEditing(a,{startedEdit:!0,event:s,source:i,ignoreEventKey:!0,editable:u}))),u&&!n){if(a.focusCell(!1,s),f)a.focusCell(!0,s);else if(!a.comp?.getCellEditor()){if(!m){const v=this.editSvc?.isEditing(a,{withOpenEditor:!0});Tn(this.beans,a,{event:s,cellStartedEdit:!0,silent:v})}this.setFocusInOnEditor(a),this.cleanupEditors(a)}}else u&&n&&this.setFocusInOnEditor(a),a.focusCell(!0,s);return e.rowCtrl?.refreshRow({suppressFlash:!0,force:!0}),!0}destroy(){super.destroy(),this.rowNode=void 0,this.column=void 0}},Wi={moduleName:"EditCore",version:J,beans:[iT,A8],apiFunctions:{getEditingCells:d8,getEditRowValues:c8,getCellEditorInstances:oT,startEditingCell:p8,stopEditing:u8,isEditing:h8,validateEdit:g8},dynamicBeans:{singleCell:N8,fullRow:O8},dependsOn:[Ac,y1],css:[TM]},H8={moduleName:"UndoRedoEdit",version:J,beans:[PM],apiFunctions:{undoCellEditing:a8,redoCellEditing:l8,getCurrentUndoSize:f8,getCurrentRedoSize:m8},dependsOn:[Wi]},B8={moduleName:"TextEditor",version:J,userComponents:{agCellEditor:vm,agTextCellEditor:vm},dependsOn:[Wi]},G8={moduleName:"NumberEditor",version:J,userComponents:{agNumberCellEditor:{classImp:$M}},dependsOn:[Wi]},V8={moduleName:"DateEditor",version:J,userComponents:{agDateCellEditor:OM,agDateStringCellEditor:BM},dependsOn:[Wi]},z8={moduleName:"CheckboxEditor",version:J,userComponents:{agCheckboxCellEditor:IM},dependsOn:[Wi]},j8={moduleName:"SelectEditor",version:J,userComponents:{agSelectCellEditor:n8},dependsOn:[Wi]},W8={moduleName:"LargeTextEditor",version:J,userComponents:{agLargeTextCellEditor:jM},dependsOn:[Wi]},_8={moduleName:"CustomEditor",version:J,dependsOn:[Wi]},k1={agSetColumnFilter:"agSetColumnFilterHandler",agMultiColumnFilter:"agMultiColumnFilterHandler",agGroupColumnFilter:"agGroupColumnFilterHandler",agNumberColumnFilter:"agNumberColumnFilterHandler",agBigIntColumnFilter:"agBigIntColumnFilterHandler",agDateColumnFilter:"agDateColumnFilterHandler",agTextColumnFilter:"agTextColumnFilterHandler"},U8=new Set(Object.values(k1));function xi(e,t){const s=e.filterUi;if(!s)return null;if(s.created)return s.promise;if(t)return null;const i=s.create(s.refreshed),n=s;return n.created=!0,n.promise=i,i}function $8(e,t,s,i,n,o,r){return t.refresh?.({...s,model:i,source:o,additionalEventAttributes:r}),e().then(a=>{if(a){const{filter:l,filterParams:c}=a;I1(l,c,i,n,o,r)}})}function I1(e,t,s,i,n,o){e?.refresh?.({...t,model:s,state:i,source:n,additionalEventAttributes:o})}function M1(e,t,s,i){const n=e();n?.created&&n.promise.then(o=>{const r=t();I1(o,n.filterParams,r,s()??{model:r},"ui",i)})}function wm(e){let t,s=!1,i;const{action:n,filterParams:o,getFilterUi:r,getModel:a,getState:l,updateState:c,updateModel:d,processModelToApply:u}=e;switch(n){case"apply":{const h=l();i=h?.model??null,u&&(i=u(i)),t={state:h?.state,model:i},s=!0;break}case"clear":{t={model:null},o?.buttons?.includes("apply")||(s=!0,i=null);break}case"reset":{t={model:null},s=!0,i=null;break}case"cancel":{t={model:a()};break}}c(t),s?d(i):M1(r,a,l,{fromAction:n})}function St(e,t){return e[t]??null}var q8=class extends vp{constructor(){super(...arguments),this.iconCreated=!1}wireComp(e,t,s,i,n){this.comp=e;const o=da(this,this.beans.context,n);this.eButtonShowMainFilter=s,this.eFloatingFilterBody=i,this.setGui(t,o),this.setupActive(),this.refreshHeaderStyles(),this.setupWidth(o),this.setupLeft(o),this.setupHover(o),this.setupFocus(o),this.setupAria(),this.setupFilterButton(),this.setupUserComp(),this.setupSyncWithFilter(o),this.setupUi(),o.addManagedElementListeners(this.eButtonShowMainFilter,{click:this.showParentFilter.bind(this)}),this.setupFilterChangedListener(o);const r=()=>this.onColDefChanged(o);o.addManagedListeners(this.column,{colDefChanged:r}),o.addManagedEventListeners({filterSwitched:({column:a})=>{a===this.column&&r()}}),o.addDestroyFunc(()=>{this.eButtonShowMainFilter=null,this.eFloatingFilterBody=null,this.userCompDetails=null,this.clearComponent()})}resizeHeader(){}moveHeader(){}getHeaderClassParams(){const{column:e,beans:t}=this,s=e.colDef;return Se(t.gos,{colDef:s,column:e,floatingFilter:!0})}setupActive(){const e=this.column.getColDef(),t=!!e.filter,s=!!e.floatingFilter;this.active=t&&s}setupUi(){if(this.comp.setButtonWrapperDisplayed(!this.suppressFilterButton&&this.active),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-full-body",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-body",!this.suppressFilterButton),!this.active||this.iconCreated)return;const e=Ut("filter",this.beans,this.column);e&&(this.iconCreated=!0,this.eButtonShowMainFilter.appendChild(e))}setupFocus(e){e.createManagedBean(new la(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))}setupAria(){const e=this.getLocaleTextFunc();To(this.eButtonShowMainFilter,e("ariaFilterMenuOpen","Open Filter Menu"))}onTabKeyDown(e){const{beans:t}=this;if(ot(t)===this.eGui)return;const n=Nn(t,this.eGui,null,e.shiftKey);if(n){t.headerNavigation?.scrollToColumn(this.column),e.preventDefault(),n.focus();return}const o=this.findNextColumnWithFloatingFilter(e.shiftKey);o&&t.focusSvc.focusHeaderPosition({headerPosition:{headerRowIndex:this.rowCtrl.rowIndex,column:o},event:e})&&e.preventDefault()}findNextColumnWithFloatingFilter(e){const t=this.beans.visibleCols;let s=this.column;do if(s=e?t.getColBefore(s):t.getColAfter(s),!s)break;while(!s.getColDef().filter||!s.getColDef().floatingFilter);return s}handleKeyDown(e){super.handleKeyDown(e);const t=this.getWrapperHasFocus();switch(e.key){case N.UP:case N.DOWN:case N.LEFT:case N.RIGHT:if(t)return;En(e);case N.ENTER:t&&Fn(this.eGui)&&e.preventDefault();break;case N.ESCAPE:t||this.eGui.focus()}}onFocusIn(e){if(this.eGui.contains(e.relatedTarget))return;const s=!!e.relatedTarget&&!e.relatedTarget.classList.contains("ag-floating-filter"),i=!!e.relatedTarget&&dn(e.relatedTarget,"ag-floating-filter");if(s&&i&&e.target===this.eGui){const n=this.lastFocusEvent,o=!!(n&&n.key===N.TAB);if(n&&o){const r=n.shiftKey;Fn(this.eGui,r)}}this.focusThis()}setupHover(e){this.beans.colHover?.addHeaderFilterColumnHoverListener(e,this.comp,this.column,this.eGui)}setupLeft(e){const t=new mp(this.column,this.eGui,this.beans);e.createManagedBean(t)}setupFilterButton(){this.suppressFilterButton=!this.beans.menuSvc?.isFloatingFilterButtonEnabled(this.column),this.highlightFilterButtonWhenActive=!_t(this.gos)}setupUserComp(){if(!this.active)return;const e=this.beans.colFilter?.getFloatingFilterCompDetails(this.column,()=>this.showParentFilter());e&&this.setCompDetails(e)}setCompDetails(e){this.userCompDetails=e,this.comp.setCompDetails(e)}showParentFilter(){const e=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.beans.menuSvc?.showFilterMenu({column:this.column,buttonElement:e,containerType:"floatingFilter",positionBy:"button"})}setupSyncWithFilter(e){if(!this.active)return;const{beans:{colFilter:t},column:s,gos:i}=this,n=o=>{if(o?.source==="filterDestroyed"&&(!this.isAlive()||!t?.isAlive()))return;const r=this.comp.getFloatingFilterComp();r&&r.then(a=>{if(a){if(i.get("enableFilterHandlers")){const d=o;let u="filter";d?.afterFloatingFilter?u="ui":d?.afterDataChange?u="dataChanged":o?.source==="api"&&(u="api"),this.updateFloatingFilterParams(this.userCompDetails,u);return}const l=t?.getCurrentFloatingFilterParentModel(s),c=o?{...o,columns:o.columns??[],source:o.source==="api"?"api":"columnFilter"}:null;a.onParentModelChanged(l,c)}})};[this.destroySyncListener]=e.addManagedListeners(s,{filterChanged:n}),t?.isFilterActive(s)&&n(null)}setupWidth(e){const t=()=>{const s=`${this.column.getActualWidth()}px`;this.comp.setWidth(s)};e.addManagedListeners(this.column,{widthChanged:t}),t()}setupFilterChangedListener(e){this.active&&([this.destroyFilterChangedListener]=e.addManagedListeners(this.column,{filterChanged:this.updateFilterButton.bind(this)}),this.updateFilterButton())}updateFilterButton(){if(!this.suppressFilterButton&&this.comp){const e=!!this.beans.filterManager?.isFilterAllowed(this.column);this.comp.setButtonWrapperDisplayed(e),this.highlightFilterButtonWhenActive&&e&&this.eButtonShowMainFilter.classList.toggle("ag-filter-active",this.column.isFilterActive())}}onColDefChanged(e){const t=this.active;this.setupActive();const s=!t&&this.active;t&&!this.active&&(this.destroySyncListener(),this.destroyFilterChangedListener());const i=this.beans.colFilter,n=this.active?i?.getFloatingFilterCompDetails(this.column,()=>this.showParentFilter()):null,o=this.comp.getFloatingFilterComp();!o||!n?this.updateCompDetails(e,n,s):o.then(r=>{!r||i?.areFilterCompsDifferent(this.userCompDetails??null,n)?this.updateCompDetails(e,n,s):this.updateFloatingFilterParams(n,"colDef")})}updateCompDetails(e,t,s){this.isAlive()&&(this.setCompDetails(t),this.setupFilterButton(),this.setupUi(),s&&(this.setupSyncWithFilter(e),this.setupFilterChangedListener(e)))}updateFloatingFilterParams(e,t){if(!e)return;let s=e.params;this.comp.getFloatingFilterComp()?.then(i=>{typeof i?.refresh=="function"&&(this.gos.get("enableFilterHandlers")&&(s={...s,model:St(this.beans.colFilter?.model??{},this.column.getColId()),source:t}),i.refresh(s))})}addResizeAndMoveKeyboardListeners(){}destroy(){super.destroy(),this.destroySyncListener=null,this.destroyFilterChangedListener=null}};function K8(e,t){const s=e.colModel.getCol(t);if(!s){Ue(12,{colKey:t});return}e.menuSvc?.showColumnMenu({column:s,positionBy:"auto"})}function Y8(e){e.menuSvc?.hidePopupMenu()}var Z8=class extends j{constructor(){super(...arguments),this.beanName="menuSvc"}postConstruct(){const{enterpriseMenuFactory:e,filterMenuFactory:t}=this.beans;this.activeMenuFactory=e??t}showColumnMenu(e){this.showColumnMenuCommon(this.activeMenuFactory,e,"columnMenu")}showFilterMenu(e){this.showColumnMenuCommon(xm(this.beans),e,e.containerType,!0)}showHeaderContextMenu(e,t,s){this.activeMenuFactory?.showMenuAfterContextMenuEvent(e,t,s)}hidePopupMenu(){this.beans.contextMenuSvc?.hideActiveMenu(),this.activeMenuFactory?.hideActiveMenu()}hideFilterMenu(){xm(this.beans)?.hideActiveMenu()}isColumnMenuInHeaderEnabled(e){const{suppressHeaderMenuButton:t}=e.getColDef();return!t&&!!this.activeMenuFactory?.isMenuEnabled(e)&&(_t(this.gos)||!!this.beans.enterpriseMenuFactory)}isFilterMenuInHeaderEnabled(e){return!e.getColDef().suppressHeaderFilterButton&&!!this.beans.filterManager?.isFilterAllowed(e)}isHeaderContextMenuEnabled(e){return!(e&&Ai(e)?e.getColDef():e?.getColGroupDef())?.suppressHeaderContextMenu&&this.gos.get("columnMenu")==="new"}isHeaderMenuButtonAlwaysShowEnabled(){return this.isSuppressMenuHide()}isHeaderMenuButtonEnabled(){const e=!this.isSuppressMenuHide();return!(gn()&&e)}isHeaderFilterButtonEnabled(e){return this.isFilterMenuInHeaderEnabled(e)&&!_t(this.gos)&&!this.isFloatingFilterButtonDisplayed(e)}isFilterMenuItemEnabled(e){return!!this.beans.filterManager?.isFilterAllowed(e)&&!_t(this.gos)&&!this.isFilterMenuInHeaderEnabled(e)&&!this.isFloatingFilterButtonDisplayed(e)}isFloatingFilterButtonEnabled(e){return!e.getColDef().suppressFloatingFilterButton}isFloatingFilterButtonDisplayed(e){return!!e.getColDef().floatingFilter&&this.isFloatingFilterButtonEnabled(e)}isSuppressMenuHide(){const e=this.gos,t=e.get("suppressMenuHide");return _t(e)?e.exists("suppressMenuHide")?t:!1:t}showColumnMenuCommon(e,t,s,i){const{positionBy:n,onClosedCallback:o}=t,r=t.column;if(n==="button"){const{buttonElement:a}=t;e?.showMenuAfterButtonClick(r,a,s,o,i)}else if(n==="mouse"){const{mouseEvent:a}=t;e?.showMenuAfterMouseEvent(r,a,s,o,i)}else if(r){const a=this.beans,l=a.ctrlsSvc;l.getScrollFeature().ensureColumnVisible(r,"auto"),ci(a,()=>{const c=l.getHeaderRowContainerCtrl(r.getPinned())?.getHeaderCtrlForColumn(r);c&&e?.showMenuAfterButtonClick(r,c.getAnchorElementForMenu(i),s,o,i)})}}};function bm(e,t,s){e.menuVisible!==t&&(e.menuVisible=t,e.dispatchColEvent("menuVisibleChanged",s))}function xm(e){const{enterpriseMenuFactory:t,filterMenuFactory:s,gos:i}=e;return t&&_t(i)?t:s}var X8={moduleName:"SharedMenu",version:J,beans:[Z8],apiFunctions:{showColumnMenu:K8,hidePopupMenu:Y8}},Q8=".ag-set-filter{--ag-indentation-level:0}.ag-set-filter-item{align-items:center;display:flex;height:100%}:where(.ag-ltr) .ag-set-filter-item{padding-left:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level)*var(--ag-set-filter-indent-size))}:where(.ag-rtl) .ag-set-filter-item{padding-right:calc(var(--ag-widget-container-horizontal-padding) + var(--ag-indentation-level)*var(--ag-set-filter-indent-size))}.ag-set-filter-item-checkbox{display:flex;height:100%;width:100%}.ag-set-filter-group-icons{display:block;:where(.ag-set-filter-group-closed-icon),:where(.ag-set-filter-group-indeterminate-icon),:where(.ag-set-filter-group-opened-icon){cursor:pointer}}:where(.ag-ltr) .ag-set-filter-group-icons{margin-right:var(--ag-widget-container-horizontal-padding)}:where(.ag-rtl) .ag-set-filter-group-icons{margin-left:var(--ag-widget-container-horizontal-padding)}.ag-filter-body-wrapper{display:flex;flex-direction:column}:where(.ag-menu:not(.ag-tabs) .ag-filter) .ag-filter-body-wrapper{min-width:180px}.ag-filter-filter{flex:1 1 0px}.ag-filter-condition{display:flex;justify-content:center}.ag-floating-filter-body{display:flex;flex:1 1 auto;height:100%;position:relative}.ag-floating-filter-full-body{align-items:center;display:flex;flex:1 1 auto;height:100%;overflow:hidden;width:100%}.ag-floating-filter-input{align-items:center;display:flex;width:100%;>:where(.ag-date-floating-filter-wrapper),>:where(.ag-floating-filter-input),>:where(.ag-input-field){flex:1 1 auto}:where(.ag-input-field-input[type=date]),:where(.ag-input-field-input[type=datetime-local]){width:1px}}.ag-floating-filter-button{display:flex;flex:none}.ag-date-floating-filter-wrapper{display:flex}.ag-set-floating-filter-input :where(.ag-input-field-input)[disabled]{pointer-events:none}.ag-floating-filter-button-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;height:var(--ag-icon-size);width:var(--ag-icon-size)}.ag-filter-loading{align-items:unset;background-color:var(--ag-chrome-background-color);height:100%;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);position:absolute;width:100%;z-index:1;:where(.ag-menu) &{background-color:var(--ag-menu-background-color)}}.ag-filter-separator{border-top:solid var(--ag-border-width) var(--menu-separator-color)}:where(.ag-filter-select) .ag-picker-field-wrapper{width:0}.ag-filter-condition-operator{height:17px}:where(.ag-ltr) .ag-filter-condition-operator-or{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-filter-condition-operator-or{margin-right:calc(var(--ag-spacing)*2)}.ag-set-filter-select-all{padding-top:var(--ag-widget-container-vertical-padding)}.ag-filter-no-matches,.ag-set-filter-list{height:calc(var(--ag-list-item-height)*6)}.ag-filter-no-matches{padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}.ag-set-filter-tree-list{height:calc(var(--ag-list-item-height)*10)}.ag-set-filter-filter{margin-left:var(--ag-widget-container-horizontal-padding);margin-right:var(--ag-widget-container-horizontal-padding);margin-top:var(--ag-widget-container-vertical-padding)}.ag-filter-to{margin-top:var(--ag-widget-vertical-spacing)}.ag-mini-filter{margin:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}:where(.ag-ltr) .ag-set-filter-add-group-indent{margin-left:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}:where(.ag-rtl) .ag-set-filter-add-group-indent{margin-right:calc(var(--ag-icon-size) + var(--ag-widget-container-horizontal-padding))}:where(.ag-filter-menu) .ag-set-filter-list{min-width:200px}.ag-filter-virtual-list-item:focus-visible{box-shadow:inset var(--ag-focus-shadow)}.ag-filter-apply-panel{display:flex;justify-content:flex-end;overflow:hidden;padding:var(--ag-widget-vertical-spacing) var(--ag-widget-container-horizontal-padding) var(--ag-widget-container-vertical-padding)}.ag-filter-apply-panel-button{line-height:1.5}:where(.ag-ltr) .ag-filter-apply-panel-button{margin-left:calc(var(--ag-spacing)*2)}:where(.ag-rtl) .ag-filter-apply-panel-button{margin-right:calc(var(--ag-spacing)*2)}.ag-simple-filter-body-wrapper{display:flex;flex-direction:column;gap:var(--ag-widget-vertical-spacing);min-height:calc(var(--ag-list-item-height) + var(--ag-widget-container-vertical-padding) + var(--ag-widget-vertical-spacing));overflow-y:auto;padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding);padding-bottom:var(--ag-widget-container-vertical-padding);:where(.ag-resizer-wrapper){margin:0}}.ag-multi-filter-menu-item{margin:var(--ag-spacing) 0}.ag-multi-filter-group-title-bar{background-color:transparent;color:var(--ag-header-text-color);font-weight:500;padding:calc(var(--ag-spacing)*1.5) var(--ag-spacing)}.ag-group-filter-field-select-wrapper{display:flex;flex-direction:column;gap:var(--ag-widget-vertical-spacing);padding:var(--ag-widget-container-vertical-padding) var(--ag-widget-container-horizontal-padding)}";function J8(e){const t=e.filterManager;return!!t?.isColumnFilterPresent()||!!t?.isAggregateFilterPresent()}function eA(e,t){return e.filterManager?.getColumnFilterInstance(t)??Promise.resolve(void 0)}function tA(e,t){const s=e.colModel.getColDefCol(t);if(s)return e.colFilter?.destroyFilter(s,"api")}function sA(e,t){e.frameworkOverrides.wrapIncoming(()=>e.filterManager?.setFilterModel(t))}function iA(e){return e.filterManager?.getFilterModel()??{}}function nA(e,t,s){const{gos:i,colModel:n,colFilter:o}=e;s&&!i.get("enableFilterHandlers")&&(q(288),s=!1);const r=n.getColDefCol(t);return r?o?.getModelForColumn(r,s)??null:null}function oA(e,t,s){return e.filterManager?.setColumnFilterModel(t,s)??Promise.resolve()}function rA(e,t){const s=e.colModel.getCol(t);if(!s){Ue(12,{colKey:t});return}e.menuSvc?.showFilterMenu({column:s,containerType:"columnFilter",positionBy:"auto"})}function aA(e){e.menuSvc?.hideFilterMenu()}function lA(e,t){const s=e.colModel.getCol(t);if(!s){Ue(12,{colKey:t});return}return e.colFilter?.getHandler(s,!0)}function cA(e,t){const{colModel:s,colFilter:i,gos:n}=e;if(!n.get("enableFilterHandlers")){q(287);return}const{colId:o,action:r}=t;if(o){const a=s.getColById(o);a&&i?.updateModel(a,r)}else i?.updateAllModels(r)}var ym={january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December"},Sm=["january","february","march","april","may","june","july","august","september","october","november","december"];function dA(e,t){return e==null?-1:t==null?1:Number.parseFloat(e)-Number.parseFloat(t)}function uA(e,t){if(e==null)return-1;if(t==null)return 1;const s=qt(e),i=qt(t);return s!=null&&i!=null?s===i?0:s>i?1:-1:String(e).localeCompare(String(t))}function Rm(e){return e instanceof Date&&!isNaN(e.getTime())}var uh={number:()=>{},bigint:()=>{},boolean:()=>({maxNumConditions:1,debounceMs:0,filterOptions:["empty",{displayKey:"true",displayName:"True",predicate:(e,t)=>t,numberOfInputs:0},{displayKey:"false",displayName:"False",predicate:(e,t)=>t===!1,numberOfInputs:0}]}),date:()=>({isValidDate:Rm}),dateString:({dataTypeDefinition:e})=>({comparator:(t,s)=>{const i=e.dateParser(s);return s==null||i<t?-1:i>t?1:0},isValidDate:t=>typeof t=="string"&&Rm(e.dateParser(t))}),dateTime:e=>uh.date(e),dateTimeString:e=>uh.dateString(e),object:()=>{},text:()=>{}},hh={number:()=>({comparator:dA}),bigint:()=>({comparator:uA}),boolean:({t:e})=>({valueFormatter:t=>se(t.value)?e(String(t.value),t.value?"True":"False"):e("blanks","(Blanks)")}),date:({formatValue:e,t})=>({valueFormatter:s=>{const i=e(s);return se(i)?i:t("blanks","(Blanks)")},treeList:!0,treeListFormatter:(s,i)=>{if(s==="NaN")return t("invalidDate","Invalid Date");if(i===1&&s!=null){const n=Sm[Number(s)-1];return t(n,ym[n])}return s??t("blanks","(Blanks)")},treeListPathGetter:s=>al(s,!1)}),dateString:({formatValue:e,dataTypeDefinition:t,t:s})=>({valueFormatter:i=>{const n=e(i);return se(n)?n:s("blanks","(Blanks)")},treeList:!0,treeListPathGetter:i=>al(t.dateParser(i??void 0),!1),treeListFormatter:(i,n)=>{if(n===1&&i!=null){const o=Sm[Number(i)-1];return s(o,ym[o])}return i??s("blanks","(Blanks)")}}),dateTime:e=>{const t=hh.date(e);return t.treeListPathGetter=al,t},dateTimeString(e){const t=e.dataTypeDefinition.dateParser,s=hh.dateString(e);return s.treeListPathGetter=i=>al(t(i??void 0)),s},object:({formatValue:e,t})=>({valueFormatter:s=>{const i=e(s);return se(i)?i:t("blanks","(Blanks)")}}),text:()=>{}};function hA(e,t,s,i,n,o,r){let a=t,l=s;const c=e==="agSetColumnFilter";!l&&i.baseDataType==="object"&&!c&&(l=({column:f,node:m})=>n({column:f,node:m,value:o.valueSvc.getValue(f,m,"data")}));const u=(c?hh:uh)[i.baseDataType],h=u({dataTypeDefinition:i,formatValue:n,t:r});return a=typeof t=="object"?{...h,...t}:h,{filterParams:a,filterValueGetter:l}}var pA={boolean:"agTextColumnFilter",date:"agDateColumnFilter",dateString:"agDateColumnFilter",dateTime:"agDateColumnFilter",dateTimeString:"agDateColumnFilter",bigint:"agBigIntColumnFilter",number:"agNumberColumnFilter",object:"agTextColumnFilter",text:"agTextColumnFilter"},gA={boolean:"agTextColumnFloatingFilter",date:"agDateColumnFloatingFilter",dateString:"agDateColumnFloatingFilter",dateTime:"agDateColumnFloatingFilter",dateTimeString:"agDateColumnFloatingFilter",bigint:"agBigIntColumnFloatingFilter",number:"agNumberColumnFloatingFilter",object:"agTextColumnFloatingFilter",text:"agTextColumnFloatingFilter"};function fA(e,t=!1){return(t?gA:pA)[e??"text"]}function mA(e,t,s){if(t==null)return null;let i=null;const{compName:n,jsComp:o,fwComp:r}=HC(e,t);return n?i={agSetColumnFilter:"agSetColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",agGroupColumnFilter:"agGroupColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",agBigIntColumnFilter:"agBigIntColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"}[n]:o==null&&r==null&&t.filter===!0&&(i=s()),i}var vA={filterHandler:()=>({doesFilterPass:()=>!0})};function Fm(e,t,s,i){if(!e.isPrimary())return!0;const o=!s;return!e.isValueActive()||!o?!1:t?!0:i}var CA=class extends j{constructor(){super(...arguments),this.beanName="colFilter",this.allColumnFilters=new Map,this.allColumnListeners=new Map,this.activeAggregateFilters=[],this.activeColumnFilters=[],this.processingFilterChange=!1,this.modelUpdates=[],this.columnModelUpdates=[],this.state=new Map,this.handlerMap={...k1},this.isGlobalButtons=!1,this.activeFilterComps=new Set}postConstruct(){this.addManagedEventListeners({gridColumnsChanged:this.onColumnsChanged.bind(this),dataTypesInferred:this.processFilterModelUpdateQueue.bind(this)}),this.addManagedPropertyListener("pivotMode",this.onPivotModeChanged.bind(this));const e=this.gos,t={...e.get("initialState")?.filter?.filterModel??{}};this.initialModel=t,this.model={...t},e.get("enableFilterHandlers")||delete this.handlerMap.agMultiColumnFilter}refreshModel(){this.onNewRowsLoaded("rowDataUpdated")}setModel(e,t="api",s){const{colModel:i,dataTypeSvc:n,filterManager:o}=this.beans;if(n?.isPendingInference){this.modelUpdates.push({model:e,source:t});return}const r=[],a=this.getModel(!0);if(e){const l=new Set(Object.keys(e));this.allColumnFilters.forEach((c,d)=>{const u=e[d];r.push(this.setModelOnFilterWrapper(c,u)),l.delete(d)}),l.forEach(c=>{const d=i.getColDefCol(c)||i.getCol(c);if(!d){q(62,{colId:c});return}if(!d.isFilterAllowed()){q(63,{colId:c});return}const u=this.getOrCreateFilterWrapper(d,!0);if(!u){q(64,{colId:c});return}r.push(this.setModelOnFilterWrapper(u,e[c],!0))})}else this.model={},this.allColumnFilters.forEach(l=>{r.push(this.setModelOnFilterWrapper(l,null))});Le.all(r).then(()=>{const l=this.getModel(!0),c=[];this.allColumnFilters.forEach((d,u)=>{const h=a?a[u]:null,f=l?l[u]:null;Wr(h,f)||c.push(d.column)}),c.length>0?o?.onFilterChanged({columns:c,source:t}):s&&this.updateActive("filterChanged")})}getModel(e){const t={},{allColumnFilters:s,initialModel:i,beans:{colModel:n}}=this;if(s.forEach((o,r)=>{const a=this.getModelFromFilterWrapper(o);se(a)&&(t[r]=a)}),!e)for(const o of Object.keys(i)){const r=i[o];se(r)&&!s.has(o)&&n.getCol(o)?.isFilterAllowed()&&(t[o]=r)}return t}setState(e,t,s="api"){if(this.state.clear(),t)for(const i of Object.keys(t)){const n=t[i];this.state.set(i,{model:St(this.model,i),state:n})}this.setModel(e,s,!0)}getState(){const e=this.state;if(!e.size)return;const t={};let s=!1;return e.forEach((i,n)=>{const o=i.state;o!=null&&(s=!0,t[n]=o)}),s?t:void 0}getModelFromFilterWrapper(e){const s=e.column.getColId();if(e.isHandler)return St(this.model,s);const i=e.filter;return i?typeof i.getModel!="function"?(q(66),null):i.getModel():St(this.initialModel,s)}isFilterPresent(){return this.activeColumnFilters.length>0}isAggFilterPresent(){return!!this.activeAggregateFilters.length}disableFilters(){this.initialModel={};const{allColumnFilters:e}=this;return e.size?(e.forEach(t=>this.disposeFilterWrapper(t,"advancedFilterEnabled")),!0):!1}updateActiveFilters(){const e=l=>l?l.isFilterActive?l.isFilterActive():(q(67),!1):!1,{colModel:t,gos:s}=this.beans,i=!!zl(s),n=[],o=[],r=(l,c,d)=>{c&&(Fm(l,t.isPivotMode(),t.isPivotActive(),i)?n.push(d):o.push(d))},a=[];return this.allColumnFilters.forEach(l=>{const c=l.column,d=c.getColId();if(l.isHandler)a.push(Le.resolve().then(()=>{r(c,this.isHandlerActive(c),{colId:d,isHandler:!0,handler:l.handler,handlerParams:l.handlerParams})}));else{const u=xi(l);u&&a.push(u.then(h=>{r(c,e(h),{colId:d,isHandler:!1,comp:h})}))}}),Le.all(a).then(()=>{this.activeAggregateFilters=n,this.activeColumnFilters=o})}updateFilterFlagInColumns(e,t){const s=[];return this.allColumnFilters.forEach(i=>{const n=i.column;if(i.isHandler)s.push(Le.resolve().then(()=>{this.setColFilterActive(n,this.isHandlerActive(n),e,t)}));else{const o=xi(i);o&&s.push(o.then(r=>{this.setColFilterActive(n,r.isFilterActive(),e,t)}))}}),this.beans.groupFilter?.updateFilterFlags(e,t),Le.all(s)}doFiltersPass(e,t,s){const{data:i,aggData:n}=e,o=s?this.activeAggregateFilters:this.activeColumnFilters,r=s?n:i,a=this.model;for(let l=0;l<o.length;l++){const c=o[l],{colId:d,isHandler:u}=c;if(d!==t)if(u){const{handler:h,handlerParams:f}=c;if(!h.doesFilterPass({node:e,data:r,model:St(a,d),handlerParams:f}))return!1}else{const h=c.comp;if(typeof h.doesFilterPass!="function"){Ue(91);continue}if(!h.doesFilterPass({node:e,data:r}))return!1}}return!0}getHandlerParams(e){const t=this.allColumnFilters.get(e.getColId());return t?.isHandler?t.handlerParams:void 0}callOnFilterChangedOutsideRenderCycle(e){const{rowRenderer:t,filterManager:s}=this.beans,i=()=>{this.isAlive()&&s?.onFilterChanged(e)};t.isRefreshInProgress()?setTimeout(i,0):i()}updateBeforeFilterChanged(e={}){const{column:t,additionalEventAttributes:s}=e,i=t?.getColId();return this.updateActiveFilters().then(()=>this.updateFilterFlagInColumns("filterChanged",s).then(()=>{this.allColumnFilters.forEach(n=>{const{column:o,isHandler:r}=n;i!==o.getColId()&&(r&&n.handler.onAnyFilterChanged?.(),xi(n,r)?.then(a=>{typeof a?.onAnyFilterChanged=="function"&&a.onAnyFilterChanged()}))}),this.processingFilterChange=!0}))}updateAfterFilterChanged(){this.processingFilterChange=!1}isSuppressFlashingCellsBecauseFiltering(){return!(this.gos.get("allowShowChangeAfterFilter")??!1)&&this.processingFilterChange}onNewRowsLoaded(e){const t=[];this.allColumnFilters.forEach(s=>{const i=s.isHandler;i&&s.handler.onNewRowsLoaded?.();const n=xi(s,i);n&&t.push(n.then(o=>{o.onNewRowsLoaded?.()}))}),Le.all(t).then(()=>this.updateActive(e,{afterDataChange:!0}))}updateActive(e,t){this.updateFilterFlagInColumns(e,t).then(()=>this.updateActiveFilters())}createGetValue(e,t){const{filterValueSvc:s,colModel:i}=this.beans;return(n,o)=>{const r=o?i.getCol(o):e;return r?s.getValue(r,n,t):void 0}}isFilterActive(e){const t=this.cachedFilter(e);if(t?.isHandler)return this.isHandlerActive(e);const s=t?.filter;return s?s.isFilterActive():St(this.initialModel,e.getColId())!=null}isHandlerActive(e){const t=se(St(this.model,e.getColId()));if(t)return t;const s=this.beans.groupFilter;return s?.isGroupFilter(e)?s.isFilterActive(e):!1}getOrCreateFilterUi(e){const t=this.getOrCreateFilterWrapper(e,!0);return t?xi(t):null}getFilterUiForDisplay(e){const t=this.getOrCreateFilterWrapper(e,!0);if(!t)return null;const s=xi(t);return s?s.then(i=>({comp:i,params:t.filterUi.filterParams,isHandler:t.isHandler})):null}getHandler(e,t){const s=this.getOrCreateFilterWrapper(e,t);return s?.isHandler?s.handler:void 0}getOrCreateFilterWrapper(e,t){if(!e.isFilterAllowed())return;let s=this.cachedFilter(e);return!s&&t&&(s=this.createFilterWrapper(e),this.setColumnFilterWrapper(e,s)),s}cachedFilter(e){return this.allColumnFilters.get(e.getColId())}getDefaultFilter(e,t=!1){return this.getDefaultFilterFromDataType(()=>this.beans.dataTypeSvc?.getBaseDataType(e),t)}getDefaultFilterFromDataType(e,t=!1){return t3(this.gos)?t?"agSetColumnFloatingFilter":"agSetColumnFilter":fA(e(),t)}getDefaultFloatingFilter(e){return this.getDefaultFilter(e,!0)}createFilterComp(e,t,s,i,n,o){const r=()=>{const c=this.createFilterCompParams(e,n,o),d=i(c,n);return lF(this.beans.userCompFactory,t,d,s)},a=r();return a?{compDetails:a,createFilterUi:c=>(c?r():a).newAgStackInstance()}:null}createFilterInstance(e,t,s,i){const n=this.beans.selectableFilter;n?.isSelectable(t)&&(t=n.getFilterDef(e,t));const{handler:o,handlerParams:r,handlerGenerator:a}=this.createHandler(e,t,s)??{},l=this.createFilterComp(e,t,s,i,!!o,"init");if(!l)return{compDetails:null,createFilterUi:null,handler:o,handlerGenerator:a,handlerParams:r};const{compDetails:c,createFilterUi:d}=l;return this.isGlobalButtons&&(c.params?.buttons?.length||q(281,{colId:e.getColId()})),{compDetails:c,handler:o,handlerGenerator:a,handlerParams:r,createFilterUi:d}}createBaseFilterParams(e,t){const{filterManager:s,rowModel:i}=this.beans;return Se(this.gos,{column:e,colDef:e.getColDef(),getValue:this.createGetValue(e),doesRowPassOtherFilter:t?()=>!0:n=>s?.doesRowPassOtherFilters(e.getColId(),n)??!0,rowModel:i})}createFilterCompParams(e,t,s,i){const n=this.filterChangedCallbackFactory(e),o=this.createBaseFilterParams(e,i);if(o.filterChangedCallback=n,o.filterModifiedCallback=i?()=>{}:r=>this.filterModified(e,r),t){const r=o,a=e.getColId(),l=St(this.model,a);r.model=l,r.state=this.state.get(a)??{model:l},r.onModelChange=(c,d)=>{this.updateStoredModel(a,c),this.refreshHandlerAndUi(e,c,"ui",!1,d).then(()=>{n({...d,source:"columnFilter"})})},r.onStateChange=c=>{this.updateState(e,c),this.updateOrRefreshFilterUi(e)},r.onAction=(c,d,u)=>{this.updateModel(e,c,d),this.dispatchLocalEvent({type:"filterAction",column:e,action:c,event:u})},r.getHandler=()=>this.getHandler(e,!0),r.onUiChange=c=>this.filterUiChanged(e,c),r.source=s}return o}createFilterUiForHandler(e,t){return t?{created:!1,create:t,filterParams:e.params,compDetails:e}:null}createFilterUiLegacy(e,t,s){const i=t(),n={created:!0,create:t,filterParams:e.params,compDetails:e,promise:i};return i.then(s),n}createFilterWrapper(e){const{compDetails:t,handler:s,handlerGenerator:i,handlerParams:n,createFilterUi:o}=this.createFilterInstance(e,e.getColDef(),this.getDefaultFilter(e),a=>a),r=e.getColId();if(s)return delete this.initialModel[r],s.init?.({...n,source:"init",model:St(this.model,r)}),{column:e,isHandler:!0,handler:s,handlerGenerator:i,handlerParams:n,filterUi:this.createFilterUiForHandler(t,o)};if(o){const a={column:e,filterUi:null,isHandler:!1};return a.filterUi=this.createFilterUiLegacy(t,o,l=>{a.filter=l??void 0}),a}return{column:e,filterUi:null,isHandler:!1}}createHandlerFunc(e,t,s){const{gos:i,frameworkOverrides:n,registry:o}=this.beans;let r;const a=f=>{const m=f.filter;if(LC(m)){const v=m.handler;return v||(r=m.doesFilterPass,r?()=>({doesFilterPass:r}):void 0)}return typeof m=="string"?m:void 0},l=i.get("enableFilterHandlers"),c=l?a(t):void 0,d=f=>()=>this.createBean(o.createDynamicBean(f,!0));let u,h;if(typeof c=="string"){const f=i.get("filterHandlers")?.[c];f!=null?u=f:U8.has(c)&&(u=d(c),h=c)}else u=c;if(!u){let f;const{compName:m,jsComp:v,fwComp:C}=HC(n,t);m?f=m:v==null&&C==null&&t.filter===!0&&(f=s),h=this.handlerMap[f],h&&(u=d(h))}return u?{filterHandler:u,handlerNameOrCallback:r??h}:l?(at(i)&&q(277,{colId:e.getColId()}),vA):void 0}createHandler(e,t,s){const i=this.createHandlerFunc(e,t,s);if(!i)return;const n=Nd(this.beans.userCompFactory,t,this.createFilterCompParams(e,!0,"init")),{handlerNameOrCallback:o,filterHandler:r}=i,{handler:a,handlerParams:l}=this.createHandlerFromFunc(e,r,n);return{handler:a,handlerParams:l,handlerGenerator:o??r}}createHandlerFromFunc(e,t,s){const i=e.getColDef(),n=t(Se(this.gos,{column:e,colDef:i})),o=this.createHandlerParams(e,s);return{handler:n,handlerParams:o}}createHandlerParams(e,t){const s=e.getColDef(),i=e.getColId(),n=this.filterChangedCallbackFactory(e);return Se(this.gos,{colDef:s,column:e,getValue:this.createGetValue(e),doesRowPassOtherFilter:o=>this.beans.filterManager?.doesRowPassOtherFilters(i,o)??!0,onModelChange:(o,r)=>{this.updateStoredModel(i,o),this.refreshHandlerAndUi(e,o,"handler",!1,r).then(()=>{n({...r,source:"columnFilter"})})},onModelAsStringChange:()=>{e.dispatchColEvent("filterChanged","filterChanged"),this.dispatchLocalEvent({type:"filterModelAsStringChanged",column:e})},filterParams:t})}onColumnsChanged(){const e=[],{colModel:t,filterManager:s,groupFilter:i}=this.beans;this.allColumnFilters.forEach((o,r)=>{let a;o.column.isPrimary()?a=t.getColDefCol(r):a=t.getCol(r),!(a&&a===o.column)&&(e.push(o.column),this.disposeFilterWrapper(o,"columnChanged"),this.disposeColumnListener(r))});const n=i&&e.every(o=>i.isGroupFilter(o));e.length>0&&!n&&s?.onFilterChanged({columns:e,source:"api"})}isFilterAllowed(e){if(!e.isFilterAllowed())return!1;const s=this.beans.groupFilter;return s?.isGroupFilter(e)?s.isFilterAllowed(e):!0}getFloatingFilterCompDetails(e,t){const{userCompFactory:s,frameworkOverrides:i,selectableFilter:n,gos:o}=this.beans,r=f=>{this.getOrCreateFilterUi(e)?.then(v=>{f(Pn(v))})},a=e.getColDef(),l=n?.isSelectable(a)?n.getFilterDef(e,a):a,c=mA(i,l,()=>this.getDefaultFloatingFilter(e))??"agReadOnlyFloatingFilter",d=o.get("enableFilterHandlers"),u=Nd(s,l,this.createFilterCompParams(e,d,"init",!0)),h=Se(o,{column:e,filterParams:u,currentParentModel:()=>this.getCurrentFloatingFilterParentModel(e),parentFilterInstance:r,showParentFilter:t});if(d){const f=h,m=e.getColId(),v=this.filterChangedCallbackFactory(e);f.onUiChange=C=>this.floatingFilterUiChanged(e,C),f.model=St(this.model,m),f.onModelChange=(C,w)=>{this.updateStoredModel(m,C),this.refreshHandlerAndUi(e,C,"floating",!0,w).then(()=>{v({...w,source:"columnFilter"})})},f.getHandler=()=>this.getHandler(e,!0),f.source="init"}return uF(s,a,h,c)}getCurrentFloatingFilterParentModel(e){return this.getModelFromFilterWrapper(this.cachedFilter(e)??{column:e})}destroyFilterUi(e,t,s,i){const n="paramsUpdated";if(e.isHandler){const o=t.getColId();delete this.initialModel[o],this.state.delete(o);const r=e.filterUi,a=this.createFilterUiForHandler(s,i);e.filterUi=a;const l=this.eventSvc;r?.created?r.promise.then(c=>{this.destroyBean(c),l.dispatchEvent({type:"filterDestroyed",source:n,column:t})}):l.dispatchEvent({type:"filterHandlerDestroyed",source:n,column:t})}else this.destroyFilter(t,n)}destroyFilter(e,t="api"){const s=e.getColId(),i=this.allColumnFilters.get(s);this.disposeColumnListener(s),delete this.initialModel[s],i&&this.disposeFilterWrapper(i,t).then(n=>{n&&this.isAlive()&&this.beans.filterManager?.onFilterChanged({columns:[e],source:"api"})})}disposeColumnListener(e){const t=this.allColumnListeners.get(e);t&&(this.allColumnListeners.delete(e),t())}disposeFilterWrapper(e,t){let s=!1;const{column:i,isHandler:n,filterUi:o}=e,r=i.getColId();n&&(s=this.isHandlerActive(i),this.destroyBean(e.handler),delete this.model[r],this.state.delete(r));const a=()=>{this.setColFilterActive(i,!1,"filterDestroyed"),this.allColumnFilters.delete(r),this.eventSvc.dispatchEvent({type:"filterDestroyed",source:t,column:i})};if(o){if(o.created)return o.promise.then(l=>(s=n?s:!!l?.isFilterActive(),this.destroyBean(l),a(),s));a()}return Le.resolve(s)}filterChangedCallbackFactory(e){return t=>{this.callOnFilterChangedOutsideRenderCycle({additionalEventAttributes:t,columns:[e],column:e,source:t?.source??"columnFilter"})}}filterParamsChanged(e,t="api"){const s=this.allColumnFilters.get(e);if(!s)return;const i=this.beans,n=s.column,o=n.getColDef(),r=n.isFilterAllowed(),a=this.getDefaultFilter(n),l=i.selectableFilter,c=l?.isSelectable(o)?l.getFilterDef(n,o):o,d=r?this.createHandlerFunc(n,c,this.getDefaultFilter(n)):void 0,u=!!d,h=s.isHandler;if(h!=u){this.destroyFilter(n,"paramsUpdated");return}const{compDetails:f,createFilterUi:m}=(r?this.createFilterComp(n,c,a,C=>C,u,"colDef"):null)??{compDetails:null,createFilterUi:null},v=f?.params??Nd(i.userCompFactory,c,this.createFilterCompParams(n,u,"colDef"));if(h){const C=d?.handlerNameOrCallback??d?.filterHandler,w=St(this.model,e);if(s.handlerGenerator!=C){const b=s.handler,{handler:x,handlerParams:y}=this.createHandlerFromFunc(n,d.filterHandler,v);s.handler=x,s.handlerParams=y,s.handlerGenerator=C,delete this.model[e],x.init?.({...y,source:"init",model:null}),this.destroyBean(b),w!=null&&this.beans.filterManager?.onFilterChanged({columns:[n],source:t})}else{const b=this.createHandlerParams(n,f?.params);s.handlerParams=b,s.handler.refresh?.({...b,source:"colDef",model:w})}}if(this.areFilterCompsDifferent(s.filterUi?.compDetails??null,f)||!s.filterUi||!f){this.destroyFilterUi(s,n,f,m);return}s.filterUi.filterParams=v,xi(s,h)?.then(C=>{(C?.refresh?C.refresh(v):!0)===!1?this.destroyFilterUi(s,n,f,m):this.dispatchLocalEvent({type:"filterParamsChanged",column:n,params:v})})}refreshHandlerAndUi(e,t,s,i,n){const o=this.cachedFilter(e);if(!o)return i&&this.getOrCreateFilterWrapper(e,!0),Le.resolve();if(!o.isHandler)return Le.resolve();const{filterUi:r,handler:a,handlerParams:l}=o;return $8(()=>{if(r){const{created:c,filterParams:d}=r;if(c)return r.promise.then(u=>u?{filter:u,filterParams:d}:void 0);r.refreshed=!0}return Le.resolve(void 0)},a,l,t,this.state.get(e.getColId())??{model:t},s,n)}setColumnFilterWrapper(e,t){const s=e.getColId();this.allColumnFilters.set(s,t),this.allColumnListeners.set(s,this.addManagedListeners(e,{colDefChanged:()=>this.filterParamsChanged(s)})[0])}areFilterCompsDifferent(e,t){if(!t||!e)return!0;const{componentClass:s}=e,{componentClass:i}=t;return!(s===i||s?.render&&i?.render&&s.render===i.render)}hasFloatingFilters(){return this.beans.colModel.getCols().some(t=>t.getColDef().floatingFilter)}getFilterInstance(e){const t=this.beans.colModel.getColDefCol(e);if(!t)return Promise.resolve(void 0);const s=this.getOrCreateFilterUi(t);return s?new Promise(i=>{s.then(n=>{i(Pn(n))})}):Promise.resolve(null)}processFilterModelUpdateQueue(){this.modelUpdates.forEach(({model:e,source:t})=>this.setModel(e,t)),this.modelUpdates=[],this.columnModelUpdates.forEach(({key:e,model:t,resolve:s})=>{this.setModelForColumn(e,t).then(()=>s())}),this.columnModelUpdates=[]}getModelForColumn(e,t){if(t){const{state:i,model:n}=this,o=e.getColId(),r=i.get(o);return r?r.model??null:St(n,o)}const s=this.cachedFilter(e);return s?this.getModelFromFilterWrapper(s):null}setModelForColumn(e,t){if(this.beans.dataTypeSvc?.isPendingInference){let s=()=>{};const i=new Promise(n=>{s=n});return this.columnModelUpdates.push({key:e,model:t,resolve:s}),i}return new Promise(s=>{this.setModelForColumnLegacy(e,t).then(i=>s(i))})}getStateForColumn(e){return this.state.get(e)??{model:St(this.model,e)}}setModelForColumnLegacy(e,t){const s=this.beans.colModel.getColDefCol(e),i=s?this.getOrCreateFilterWrapper(s,!0):null;return i?this.setModelOnFilterWrapper(i,t):Le.resolve()}setColDefPropsForDataType(e,t,s){const i=e.filter,n=i===!0?this.getDefaultFilterFromDataType(()=>t.baseDataType):i;if(typeof n!="string")return;let o,r;const a=this.beans,{filterParams:l,filterValueGetter:c}=e;n==="agMultiColumnFilter"?{filterParams:o,filterValueGetter:r}=a.multiFilter?.getParamsForDataType(l,c,t,s)??{}:{filterParams:o,filterValueGetter:r}=hA(n,l,c,t,s,a,this.getLocaleTextFunc()),e.filterParams=o,r&&(e.filterValueGetter=r)}setColFilterActive(e,t,s,i){e.filterActive!==t&&(e.filterActive=t,e.dispatchColEvent("filterActiveChanged",s)),e.dispatchColEvent("filterChanged",s,i)}setModelOnFilterWrapper(e,t,s){return new Le(i=>{if(e.isHandler){const o=e.column,r=o.getColId(),a=this.model[r];if(this.updateStoredModel(r,t),s&&t===a){i();return}this.refreshHandlerAndUi(o,t,"api").then(()=>i());return}const n=xi(e);if(n){n.then(o=>{if(typeof o?.setModel!="function"){q(65),i();return}(o.setModel(t)||Le.resolve()).then(()=>i())});return}i()})}updateStoredModel(e,t){se(t)?this.model[e]=t:delete this.model[e];const s=this.state.get(e),i={model:t,state:s?.state};this.state.set(e,i)}filterModified(e,t){this.getOrCreateFilterUi(e)?.then(s=>{this.eventSvc.dispatchEvent({type:"filterModified",column:e,filterInstance:s,...t})})}filterUiChanged(e,t){this.gos.get("enableFilterHandlers")&&this.eventSvc.dispatchEvent({type:"filterUiChanged",column:e,...t})}floatingFilterUiChanged(e,t){this.gos.get("enableFilterHandlers")&&this.eventSvc.dispatchEvent({type:"floatingFilterUiChanged",column:e,...t})}updateModel(e,t,s){const i=e.getColId(),n=this.cachedFilter(e),o=()=>n?.filterUi;wm({action:t,filterParams:n?.filterUi?.filterParams,getFilterUi:o,getModel:()=>St(this.model,i),getState:()=>this.state.get(i),updateState:r=>this.updateState(e,r),updateModel:r=>o()?.filterParams?.onModelChange(r,{...s,fromAction:t}),processModelToApply:n?.isHandler?n.handler.processModelToApply?.bind(n.handler):void 0})}updateAllModels(e,t){const s=[];this.allColumnFilters.forEach((i,n)=>{const o=this.beans.colModel.getColDefCol(n);o&&wm({action:e,filterParams:i.filterUi?.filterParams,getFilterUi:()=>i.filterUi,getModel:()=>St(this.model,n),getState:()=>this.state.get(n),updateState:r=>this.updateState(o,r),updateModel:r=>{this.updateStoredModel(n,r),this.dispatchLocalEvent({type:"filterAction",column:o,action:e}),s.push(this.refreshHandlerAndUi(o,r,"ui"))},processModelToApply:i?.isHandler?i.handler.processModelToApply?.bind(i.handler):void 0})}),s.length&&Le.all(s).then(()=>{this.callOnFilterChangedOutsideRenderCycle({source:"columnFilter",additionalEventAttributes:t,columns:[]})})}updateOrRefreshFilterUi(e){const t=e.getColId();M1(()=>this.cachedFilter(e)?.filterUi,()=>St(this.model,t),()=>this.state.get(t))}updateState(e,t){this.state.set(e.getColId(),t),this.dispatchLocalEvent({type:"filterStateChanged",column:e,state:t})}canApplyAll(){const{state:e,model:t,activeFilterComps:s}=this;for(const n of s)if(n.source==="COLUMN_MENU")return!1;let i=!1;for(const n of e.keys()){const o=e.get(n);if(o.valid===!1)return!1;(o.model??null)!==St(t,n)&&(i=!0)}return i}hasUnappliedModel(e){const{model:t,state:s}=this;return(s.get(e)?.model??null)!==St(t,e)}setGlobalButtons(e){this.isGlobalButtons=e,this.dispatchLocalEvent({type:"filterGlobalButtons",isGlobal:e})}shouldKeepStateOnDetach(e,t){if(t==="newFiltersToolPanel")return!0;const s=this.beans.filterPanelSvc;return s?.isActive?!!s.getState(e.getColId()):!1}onPivotModeChanged(e){const{colModel:t,pivotColsSvc:s}=this.beans,i=!!zl(this.gos),n=e.currentValue,o=n?this.activeColumnFilters:this.activeAggregateFilters,r=n?this.activeAggregateFilters:this.activeColumnFilters,a=[];for(const l of o){const c=t.getColById(l.colId),d=n&&!!s?.columns.length;c&&n===Fm(c,n,d,i)&&(r.push(l),a.push(l))}H2(o,a)}destroy(){super.destroy(),this.allColumnFilters.forEach(e=>this.disposeFilterWrapper(e,"gridDestroyed")),this.allColumnListeners.clear(),this.state.clear(),this.activeFilterComps.clear()}};function wA(e){return!!e.filterManager?.isAnyFilterPresent()}function bA(e,t="api"){e.filterManager?.onFilterChanged({source:t})}var xA=class extends j{constructor(){super(...arguments),this.beanName="filterManager",this.advFilterModelUpdateQueue=[]}wireBeans(e){this.quickFilter=e.quickFilter,this.advancedFilter=e.advancedFilter,this.colFilter=e.colFilter}postConstruct(){const e=this.refreshFiltersForAggregations.bind(this),t=this.updateAdvFilterColumns.bind(this);this.addManagedEventListeners({columnValueChanged:e,columnPivotChanged:e,columnPivotModeChanged:e,newColumnsLoaded:t,columnVisible:t,advancedFilterEnabledChanged:({enabled:i})=>this.onAdvFilterEnabledChanged(i),dataTypesInferred:this.processFilterModelUpdateQueue.bind(this)}),this.externalFilterPresent=this.isExternalFilterPresentCallback(),this.addManagedPropertyListeners(["isExternalFilterPresent","doesExternalFilterPass"],()=>{this.onFilterChanged({source:"api"})}),this.updateAggFiltering(),this.addManagedPropertyListener("groupAggFiltering",()=>{this.updateAggFiltering(),this.onFilterChanged()}),this.quickFilter&&this.addManagedListeners(this.quickFilter,{quickFilterChanged:()=>this.onFilterChanged({source:"quickFilter"})});const{gos:s}=this;this.alwaysPassFilter=s.get("alwaysPassFilter"),this.addManagedPropertyListener("alwaysPassFilter",()=>{this.alwaysPassFilter=s.get("alwaysPassFilter"),this.onFilterChanged({source:"api"})})}isExternalFilterPresentCallback(){const e=this.gos.getCallback("isExternalFilterPresent");return typeof e=="function"&&e({})}doesExternalFilterPass(e){const t=this.gos.get("doesExternalFilterPass");return typeof t=="function"&&t(e)}setFilterState(e,t,s="api"){this.isAdvFilterEnabled()||this.colFilter?.setState(e,t,s)}setFilterModel(e,t="api",s){if(this.isAdvFilterEnabled()){s||this.warnAdvFilters();return}this.colFilter?.setModel(e,t)}getFilterModel(){return this.colFilter?.getModel()??{}}getFilterState(){return this.colFilter?.getState()}isColumnFilterPresent(){return!!this.colFilter?.isFilterPresent()}isAggregateFilterPresent(){return!!this.colFilter?.isAggFilterPresent()}isChildFilterPresent(){return this.isColumnFilterPresent()||this.isQuickFilterPresent()||this.externalFilterPresent||this.isAdvFilterPresent()}isAnyFilterPresent(){return this.isChildFilterPresent()||this.isAggregateFilterPresent()}isAdvFilterPresent(){return this.isAdvFilterEnabled()&&this.advancedFilter.isFilterPresent()}onAdvFilterEnabledChanged(e){e?this.colFilter?.disableFilters()&&this.onFilterChanged({source:"advancedFilter"}):this.advancedFilter?.isFilterPresent()&&(this.advancedFilter.setModel(null),this.onFilterChanged({source:"advancedFilter"}))}isAdvFilterEnabled(){return!!this.advancedFilter?.isEnabled()}isAdvFilterHeaderActive(){return this.isAdvFilterEnabled()&&this.advancedFilter.isHeaderActive()}refreshFiltersForAggregations(){zl(this.gos)&&this.isAnyFilterPresent()&&this.onFilterChanged()}onFilterChanged(e={}){const{source:t,additionalEventAttributes:s,columns:i=[]}=e;this.externalFilterPresent=this.isExternalFilterPresentCallback(),(this.colFilter?this.colFilter.updateBeforeFilterChanged(e):Le.resolve()).then(()=>{const n={source:t,type:"filterChanged",columns:i};s&&Ht(n,s),this.eventSvc.dispatchEvent(n),this.colFilter?.updateAfterFilterChanged()})}isSuppressFlashingCellsBecauseFiltering(){return!!this.colFilter?.isSuppressFlashingCellsBecauseFiltering()}isQuickFilterPresent(){return!!this.quickFilter?.isFilterPresent()}updateAggFiltering(){this.aggFiltering=!!zl(this.gos)}isAggregateQuickFilterPresent(){return this.isQuickFilterPresent()&&this.shouldApplyQuickFilterAfterAgg()}isNonAggregateQuickFilterPresent(){return this.isQuickFilterPresent()&&!this.shouldApplyQuickFilterAfterAgg()}shouldApplyQuickFilterAfterAgg(){return(this.aggFiltering||this.beans.colModel.isPivotMode())&&!this.gos.get("applyQuickFilterBeforePivotOrAgg")}doesRowPassOtherFilters(e,t){return this.doesRowPassFilter({rowNode:t,colIdToSkip:e})}doesRowPassAggregateFilters(e){const{rowNode:t}=e;return this.alwaysPassFilter?.(t)?!0:!(this.isAggregateQuickFilterPresent()&&!this.quickFilter.doesRowPass(t)||this.isAggregateFilterPresent()&&!this.colFilter.doFiltersPass(t,e.colIdToSkip,!0))}doesRowPassFilter(e){const{rowNode:t}=e;return this.alwaysPassFilter?.(t)?!0:!(this.isNonAggregateQuickFilterPresent()&&!this.quickFilter.doesRowPass(t)||this.externalFilterPresent&&!this.doesExternalFilterPass(t)||this.isColumnFilterPresent()&&!this.colFilter.doFiltersPass(t,e.colIdToSkip)||this.isAdvFilterPresent()&&!this.advancedFilter.doesFilterPass(t))}isFilterAllowed(e){return this.isAdvFilterEnabled()?!1:!!this.colFilter?.isFilterAllowed(e)}getAdvFilterModel(){return this.isAdvFilterEnabled()?this.advancedFilter.getModel():null}setAdvFilterModel(e,t="api"){if(this.isAdvFilterEnabled()){if(this.beans.dataTypeSvc?.isPendingInference){this.advFilterModelUpdateQueue.push(e);return}this.advancedFilter.setModel(e??null),this.onFilterChanged({source:t})}}toggleAdvFilterBuilder(e,t){this.isAdvFilterEnabled()&&this.advancedFilter.getCtrl().toggleFilterBuilder({source:t,force:e})}updateAdvFilterColumns(){this.isAdvFilterEnabled()&&this.advancedFilter.updateValidity()&&this.onFilterChanged({source:"advancedFilter"})}hasFloatingFilters(){return this.isAdvFilterEnabled()?!1:!!this.colFilter?.hasFloatingFilters()}getColumnFilterInstance(e){return this.isAdvFilterEnabled()?(this.warnAdvFilters(),Promise.resolve(void 0)):this.colFilter?.getFilterInstance(e)??Promise.resolve(void 0)}warnAdvFilters(){q(68)}setupAdvFilterHeaderComp(e){this.advancedFilter?.getCtrl().setupHeaderComp(e)}getHeaderRowCount(){return this.isAdvFilterHeaderActive()?1:0}getHeaderHeight(){return this.isAdvFilterHeaderActive()?this.advancedFilter.getCtrl().getHeaderHeight():0}processFilterModelUpdateQueue(){for(const e of this.advFilterModelUpdateQueue)this.setAdvFilterModel(e);this.advFilterModelUpdateQueue=[]}setColumnFilterModel(e,t){return this.isAdvFilterEnabled()?(this.warnAdvFilters(),Promise.resolve()):this.colFilter?.setModelForColumn(e,t)??Promise.resolve()}};function yA(e){return{tag:"div",cls:e}}var SA=class extends lt{constructor(e){const{className:t="ag-filter-apply-panel"}=e??{};super(yA(t)),this.listeners=[],this.validationMessage=null,this.className=t}updateButtons(e,t){const s=this.buttons;if(this.buttons=e,s===e)return;const i=this.getGui();$t(i);let n;this.destroyListeners();const o=document.createDocumentFragment(),r=this.className,a=({type:c,label:d})=>{const u=w=>{this.dispatchLocalEvent({type:c,event:w})};["apply","clear","reset","cancel"].includes(c)||q(75);const h=c==="apply",m=ss({tag:"button",attrs:{type:h&&t?"submit":"button"},ref:`${c}FilterButton`,cls:`ag-button ag-standard-button ${r}-button${h?" "+r+"-apply-button":""}`,children:d});this.activateTabIndex([m]),h&&(n=m);const v=w=>{w.key===N.ENTER&&(w.preventDefault(),u(w))},C=this.listeners;m.addEventListener("click",u),C.push(()=>m.removeEventListener("click",u)),m.addEventListener("keydown",v),C.push(()=>m.removeEventListener("keydown",v)),o.append(m)};for(const c of e)a(c);this.eApply=n;const l=this.validationTooltipFeature;n&&!l?this.validationTooltipFeature=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{getGui:()=>this.eApply,getLocation:()=>"advancedFilter",getTooltipShowDelayOverride:()=>1e3})):!n&&l&&(this.validationTooltipFeature=this.destroyBean(l)),i.append(o)}getApplyButton(){return this.eApply}updateValidity(e,t=null){const s=this.eApply;s&&(Ur(s,!e),this.validationMessage=t,this.validationTooltipFeature?.setTooltipAndRefresh(this.validationMessage))}destroyListeners(){for(const e of this.listeners)e();this.listeners=[]}destroy(){this.destroyListeners(),super.destroy()}},RA=class extends lt{constructor(e,t,s,i,n,o){super(),this.column=e,this.wrapper=t,this.eventParent=s,this.updateModel=i,this.isGlobalButtons=n,this.enableGlobalButtonCheck=o,this.hidePopup=null,this.applyActive=!1}postConstruct(){const{comp:e,params:t}=this.wrapper,s=t,i=s.useForm,n=i?"form":"div";this.setTemplate({tag:n,cls:"ag-filter-wrapper"}),i&&this.addManagedElementListeners(this.getGui(),{submit:o=>{o?.preventDefault()},keydown:this.handleKeyDown.bind(this)}),this.appendChild(e.getGui()),this.params=s,this.resetButtonsPanel(s),this.addManagedListeners(this.eventParent,{filterParamsChanged:({column:o,params:r})=>{o===this.column&&this.resetButtonsPanel(r,this.params)},filterStateChanged:({column:o,state:r})=>{o===this.column&&this.eButtons?.updateValidity(r.valid!==!1)},filterAction:({column:o,action:r,event:a})=>{o===this.column&&this.afterAction(r,a)},...this.enableGlobalButtonCheck?{filterGlobalButtons:({isGlobal:o})=>{if(o!==this.isGlobalButtons){this.isGlobalButtons=o;const r=this.params;this.resetButtonsPanel(r,r,!0)}}}:void 0})}afterGuiAttached(e){e&&(this.hidePopup=e.hidePopup)}resetButtonsPanel(e,t,s){const{buttons:i,readOnly:n}=t??{},{buttons:o,readOnly:r,useForm:a}=e;if(!s&&n===r&&Wr(i,o))return;const l=o&&o.length>0&&!e.readOnly&&!this.isGlobalButtons;let c=this.eButtons;if(l){const d=o.map(u=>{const h=`${u}Filter`;return{type:u,label:xs(this,h)}});if(this.applyActive=Dc(this.params),!c){c=this.createBean(new SA),this.appendChild(c.getGui());const u=this.column,h=f=>({event:m})=>{this.updateModel(u,f,{fromButtons:!0}),this.afterAction(f,m)};c?.addManagedListeners(c,{apply:h("apply"),clear:h("clear"),reset:h("reset"),cancel:h("cancel")}),this.eButtons=c}c.updateButtons(d,a)}else this.applyActive=!1,c&&(ni(c.getGui()),this.eButtons=this.destroyBean(c))}close(e){const t=this.hidePopup;if(!t)return;const s=e,i=s?.key;let n;(i===N.ENTER||i===N.SPACE)&&(n={keyboardEvent:s}),t(n),this.hidePopup=null}afterAction(e,t){const{params:s,applyActive:i}=this,n=s?.closeOnApply;switch(e){case"apply":{t?.preventDefault(),n&&i&&this.close(t);break}case"reset":{n&&i&&this.close();break}case"cancel":{n&&this.close(t);break}}}handleKeyDown(e){!e.defaultPrevented&&e.key===N.ENTER&&this.applyActive&&(this.updateModel(this.column,"apply",{fromButtons:!0}),this.afterAction("apply",e))}destroy(){this.hidePopup=null,this.eButtons=this.destroyBean(this.eButtons)}},FA=":where(.ag-menu:not(.ag-tabs) .ag-filter)>:not(.ag-filter-wrapper){min-width:180px}",EA={tag:"div",cls:"ag-filter"},DA=class extends lt{constructor(e,t,s){super(EA),this.column=e,this.source=t,this.enableGlobalButtonCheck=s,this.wrapper=null}postConstruct(){this.beans.colFilter?.activeFilterComps.add(this),this.createFilter(!0),this.addManagedEventListeners({filterDestroyed:this.onFilterDestroyed.bind(this)})}hasFilter(){return this.wrapper!=null}getFilter(){return this.wrapper?.then(e=>e.comp)??null}afterInit(){return this.wrapper?.then(()=>{})??Le.resolve()}afterGuiAttached(e){this.afterGuiAttachedParams=e,this.wrapper?.then(t=>{this.comp?.afterGuiAttached(e),t?.comp?.afterGuiAttached?.(e)})}afterGuiDetached(){this.wrapper?.then(e=>{e?.comp?.afterGuiDetached?.()})}createFilter(e){const{column:t,source:s,beans:{colFilter:i}}=this,n=i.getFilterUiForDisplay(t)??null;this.wrapper=n,n?.then(o=>{if(!o)return;const{isHandler:r,comp:a}=o;let l;if(r){const c=!!this.enableGlobalButtonCheck,d=this.createBean(new RA(t,o,i,i.updateModel.bind(i),c&&i.isGlobalButtons,c));this.comp=d,l=d.getGui()}else this.registerCSS(FA),l=a.getGui(),se(l)||q(69,{guiFromFilter:l});this.appendChild(l),e?this.eventSvc.dispatchEvent({type:"filterOpened",column:t,source:s,eGui:this.getGui()}):a.afterGuiAttached?.(this.afterGuiAttachedParams)})}onFilterDestroyed(e){const{source:t,column:s}=e;(t==="api"||t==="paramsUpdated")&&s.getId()===this.column.getId()&&this.beans.colModel.getColDefCol(this.column)&&($t(this.getGui()),this.comp=this.destroyBean(this.comp),this.createFilter())}destroy(){this.beans.colFilter?.activeFilterComps.delete(this),this.eventSvc.dispatchEvent({type:"filterClosed",column:this.column}),this.wrapper=null,this.comp=this.destroyBean(this.comp),this.afterGuiAttachedParams=void 0,super.destroy()}},PA=class extends j{constructor(){super(...arguments),this.beanName="filterMenuFactory"}wireBeans(e){this.popupSvc=e.popupSvc}hideActiveMenu(){this.hidePopup?.()}showMenuAfterMouseEvent(e,t,s,i){e&&!e.isColumn||this.showPopup(e,n=>{this.popupSvc?.positionPopupUnderMouseEvent({additionalParams:{column:e},type:s,mouseEvent:t,ePopup:n})},s,t.target,_t(this.gos),i)}showMenuAfterButtonClick(e,t,s,i){if(e&&!e.isColumn)return;let n=-1,o="left";const r=_t(this.gos);!r&&this.gos.get("enableRtl")&&(n=1,o="right");const a=r?void 0:4*n,l=r?void 0:4;this.showPopup(e,c=>{this.popupSvc?.positionPopupByComponent({type:s,eventSource:t,ePopup:c,nudgeX:a,nudgeY:l,alignSide:o,keepWithinBounds:!0,position:"under",additionalParams:{column:e}})},s,t,r,i)}showPopup(e,t,s,i,n,o){const r=e?this.createBean(new DA(e,"COLUMN_MENU")):void 0;if(this.activeMenu=r,!r?.hasFilter()||!e){Ue(57);return}const a=ss({tag:"div",cls:`ag-menu${n?"":" ag-filter-menu"}`,role:"presentation"});[this.tabListener]=this.addManagedElementListeners(a,{keydown:v=>this.trapFocusWithin(v,a)}),a.appendChild(r?.getGui());let l;const c=()=>r?.afterGuiDetached(),d=s3(this.gos)?i??this.beans.ctrlsSvc.getGridBodyCtrl().eGridBody:void 0,u=v=>{bm(e,!1,"contextMenu");const C=v instanceof KeyboardEvent;this.tabListener&&(this.tabListener=this.tabListener()),C&&i&&Rs(i)&&_C(i)?.focus({preventScroll:!0}),c(),this.destroyBean(this.activeMenu),this.dispatchVisibleChangedEvent(!1,s,e),o?.()},h=this.getLocaleTextFunc(),f=n&&s!=="columnFilter"?h("ariaLabelColumnMenu","Column Menu"):h("ariaLabelColumnFilter","Column Filter"),m=this.popupSvc?.addPopup({modal:!0,eChild:a,closeOnEsc:!0,closedCallback:u,positionCallback:()=>t(a),anchorToElement:d,ariaLabel:f});m&&(this.hidePopup=l=m.hideFunc),r.afterInit().then(()=>{t(a),r.afterGuiAttached({container:s,hidePopup:l})}),bm(e,!0,"contextMenu"),this.dispatchVisibleChangedEvent(!0,s,e)}trapFocusWithin(e,t){e.key!==N.TAB||e.defaultPrevented||Nn(this.beans,t,!1,e.shiftKey)||(e.preventDefault(),Fn(t,e.shiftKey))}dispatchVisibleChangedEvent(e,t,s){this.eventSvc.dispatchEvent({type:"columnMenuVisibleChanged",visible:e,switchingTab:!1,key:t,column:s??null,columnGroup:null})}isMenuEnabled(e){return e.isFilterAllowed()&&(e.getColDef().menuTabs??["filterMenuTab"]).includes("filterMenuTab")}showMenuAfterContextMenuEvent(){}destroy(){this.destroyBean(this.activeMenu),super.destroy()}},TA=class extends j{constructor(){super(...arguments),this.beanName="filterValueSvc"}getValue(e,t,s){if(!t)return;const i=e.getColDef(),{selectableFilter:n,valueSvc:o,formula:r}=this.beans,a=s??n?.getFilterValueGetter(e.getColId())??i.filterValueGetter;if(a)return this.executeFilterValueGetter(a,t.data,e,t,i);const l=o.getValue(e,t,"data");return e.isAllowFormula()&&r?.isFormula(l)?r.resolveValue(e,t):l}executeFilterValueGetter(e,t,s,i,n){const{expressionSvc:o,valueSvc:r}=this.beans,a=Se(this.gos,{data:t,node:i,column:s,colDef:n,getValue:r.getValueCallback.bind(r,i)});return typeof e=="function"?e(a):o?.evaluate(e,a)}},kA={tag:"div",cls:"ag-floating-filter-input",role:"presentation",children:[{tag:"ag-input-text-field",ref:"eFloatingFilterText"}]},IA=class extends lt{constructor(){super(kA,[Lc]),this.eFloatingFilterText=ue}init(e){this.params=e;const t=this.beans.colNames.getDisplayNameForColumn(e.column,"header",!0);if(this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(`${t} ${this.getLocaleTextFunc()("ariaFilterInput","Filter Input")}`),this.gos.get("enableFilterHandlers")){const s=e,i=s.getHandler();if(i.getModelAsString){const n=i.getModelAsString(s.model);this.eFloatingFilterText.setValue(n)}}}onParentModelChanged(e){if(e==null){this.eFloatingFilterText.setValue("");return}this.params.parentFilterInstance(t=>{if(t.getModelAsString){const s=t.getModelAsString(e);this.eFloatingFilterText.setValue(s)}})}refresh(e){this.init(e)}},MA=class extends bp{constructor(e){super(e,"ag-radio-button","radio")}isSelected(){return this.eInput.checked}toggle(){this.eInput.disabled||this.isSelected()||this.setValue(!0)}addInputListeners(){super.addInputListeners(),this.addManagedEventListeners({checkboxChanged:this.onChange.bind(this)})}onChange(e){const t=this.eInput;e.selected&&e.name&&t.name&&t.name===e.name&&e.id&&t.id!==e.id&&this.setValue(!1,!0)}},Lp=class{constructor(){this.customFilterOptions={}}init(e,t){this.filterOptions=e.filterOptions??t,this.mapCustomOptions(),this.defaultOption=this.getDefaultItem(e.defaultOption)}refresh(e,t){const s=e.filterOptions??t;this.filterOptions!==s&&(this.filterOptions=s,this.customFilterOptions={},this.mapCustomOptions()),this.defaultOption=this.getDefaultItem(e.defaultOption)}mapCustomOptions(){const{filterOptions:e}=this;if(e)for(const t of e){if(typeof t=="string")continue;const s=[["displayKey"],["displayName"],["predicate","test"]],i=n=>n.some(o=>t[o]!=null)?!0:(q(72,{keys:n}),!1);if(!s.every(i)){this.filterOptions=e.filter(n=>n===t)||[];continue}this.customFilterOptions[t.displayKey]=t}}getDefaultItem(e){const{filterOptions:t}=this;if(e)return e;if(t.length>=1){const s=t[0];if(typeof s=="string")return s;if(s.displayKey)return s.displayKey;q(73)}else q(74)}getCustomOption(e){return this.customFilterOptions[e]}};function Or(e,t,s){return s==null?e.splice(t):e.splice(t,s)}function rc(e){return e==null||typeof e=="string"&&e.trim().length===0}function AA(e){return e==="AND"||e==="OR"?e:"AND"}function LA(e,t,s){if(e==null)return;const{predicate:i}=e;if(i!=null&&!t.some(n=>n==null))return i(t,s)}function OA(e,t){let s=e.length;return s>t&&(e.splice(t),q(78),s=t),s}var NA=new Set(["empty","notBlank","blank","today","yesterday","tomorrow","thisWeek","lastWeek","nextWeek","thisMonth","lastMonth","nextMonth","thisQuarter","lastQuarter","nextQuarter","thisYear","lastYear","nextYear","yearToDate","last7Days","last30Days","last90Days","last6Months","last12Months","last24Months"]);function Oi(e,t){const s=t.getCustomOption(e);if(s){const{numberOfInputs:i}=s;return i??1}return e&&NA.has(e)?0:e==="inRange"?2:1}var Nc=class extends SF{constructor(e,t,s){super(e,"simple-filter"),this.mapValuesFromModel=t,this.defaultOptions=s,this.eTypes=[],this.eJoinPanels=[],this.eJoinAnds=[],this.eJoinOrs=[],this.eConditionBodies=[],this.listener=()=>this.onUiChanged(),this.lastUiCompletePosition=null,this.joinOperatorId=0}setParams(e){super.setParams(e);const t=new Lp;this.optionsFactory=t,t.init(e,this.defaultOptions),this.commonUpdateSimpleParams(e),this.createOption(),this.createMissingConditionsAndOperators()}updateParams(e,t){this.optionsFactory.refresh(e,this.defaultOptions),super.updateParams(e,t),this.commonUpdateSimpleParams(e)}commonUpdateSimpleParams(e){this.setNumConditions(e),this.defaultJoinOperator=AA(e.defaultJoinOperator),this.filterPlaceholder=e.filterPlaceholder,this.createFilterListOptions(),Wt(this.getGui(),"tabindex",this.isReadOnly()?"-1":null)}onFloatingFilterChanged(e,t){this.setTypeFromFloatingFilter(e),this.setValueFromFloatingFilter(t),this.onUiChanged("immediately",!0)}setTypeFromFloatingFilter(e){this.eTypes.forEach((t,s)=>{const i=s===0?e:this.optionsFactory.defaultOption;t.setValue(i,!0)})}getModelFromUi(){const e=this.getUiCompleteConditions();return e.length===0?null:this.maxNumConditions>1&&e.length>1?{filterType:this.filterType,operator:this.getJoinOperator(),conditions:e}:e[0]}getConditionTypes(){return this.eTypes.map(e=>e.getValue())}getConditionType(e){return this.eTypes[e].getValue()}getJoinOperator(){const{eJoinOrs:e,defaultJoinOperator:t}=this;return e.length===0?t:e[0].getValue()===!0?"OR":"AND"}areNonNullModelsEqual(e,t){const s=!e.operator,i=!t.operator;if(!s&&i||s&&!i)return!1;let o;if(s){const r=e,a=t;o=this.areSimpleModelsEqual(r,a)}else{const r=e,a=t;o=r.operator===a.operator&&Gi(r.conditions,a.conditions,(l,c)=>this.areSimpleModelsEqual(l,c))}return o}setModelIntoUi(e,t){if(e==null)return this.resetUiToDefaults(t),Le.resolve();if(e.operator){const i=e;let n=i.conditions;n==null&&(n=[],q(77));const o=OA(n,this.maxNumConditions),r=this.getNumConditions();if(o<r)this.removeConditionsAndOperators(o);else if(o>r)for(let l=r;l<o;l++)this.createJoinOperatorPanel(),this.createOption();const a=i.operator==="OR";this.eJoinAnds.forEach(l=>l.setValue(!a,!0)),this.eJoinOrs.forEach(l=>l.setValue(a,!0)),n.forEach((l,c)=>{this.eTypes[c].setValue(l.type,!0),this.setConditionIntoUi(l,c)})}else{const i=e;this.getNumConditions()>1&&this.removeConditionsAndOperators(1),this.eTypes[0].setValue(i.type,!0),this.setConditionIntoUi(i,0)}return this.lastUiCompletePosition=this.getNumConditions()-1,this.createMissingConditionsAndOperators(),this.updateUiVisibility(),t||this.params.onUiChange(this.getUiChangeEventParams()),Le.resolve()}setNumConditions(e){let t=e.maxNumConditions??2;t<1&&(q(79),t=1),this.maxNumConditions=t;let s=e.numAlwaysVisibleConditions??1;s<1&&(q(80),s=1),s>t&&(q(81),s=t),this.numAlwaysVisibleConditions=s}createOption(){const e=this.getGui(),t=this.createManagedBean(new Ap);this.eTypes.push(t),t.addCss("ag-filter-select"),e.appendChild(t.getGui());const s=this.createEValue();this.eConditionBodies.push(s),e.appendChild(s),this.putOptionsIntoDropdown(t),this.resetType(t);const i=this.getNumConditions()-1;this.forEachPositionInput(i,n=>this.resetInput(n)),this.addChangedListeners(t,i)}createJoinOperatorPanel(){const e=ss({tag:"div",cls:"ag-filter-condition"});this.eJoinPanels.push(e);const t=this.createJoinOperator(this.eJoinAnds,e,"and"),s=this.createJoinOperator(this.eJoinOrs,e,"or");this.getGui().appendChild(e);const i=this.eJoinPanels.length-1,n=this.joinOperatorId++;this.resetJoinOperatorAnd(t,i,n),this.resetJoinOperatorOr(s,i,n),this.isReadOnly()||(t.onValueChange(this.listener),s.onValueChange(this.listener))}createJoinOperator(e,t,s){const i=this.createManagedBean(new MA);e.push(i);const n="ag-filter-condition-operator";return i.addCss(n),i.addCss(`${n}-${s}`),t.appendChild(i.getGui()),i}createFilterListOptions(){this.filterListOptions=this.optionsFactory.filterOptions.map(e=>typeof e=="string"?this.createBoilerplateListOption(e):this.createCustomListOption(e))}putOptionsIntoDropdown(e){const{filterListOptions:t}=this;for(const s of t)e.addOption(s);e.setDisabled(t.length<=1)}createBoilerplateListOption(e){return{value:e,text:this.translate(e)}}createCustomListOption(e){const{displayKey:t}=e,s=this.optionsFactory.getCustomOption(e.displayKey);return{value:t,text:s?this.getLocaleTextFunc()(s.displayKey,s.displayName):this.translate(t)}}createBodyTemplate(){return null}getAgComponents(){return[]}updateUiVisibility(){const e=this.getJoinOperator();this.updateNumConditions(),this.updateConditionStatusesAndValues(this.lastUiCompletePosition,e)}updateNumConditions(){let e=-1,t=!0;for(let s=0;s<this.getNumConditions();s++)this.isConditionUiComplete(s)?e=s:t=!1;if(this.shouldAddNewConditionAtEnd(t))this.createJoinOperatorPanel(),this.createOption();else{const s=this.lastUiCompletePosition??this.getNumConditions()-2;if(e<s){this.removeConditionsAndOperators(s+1);const i=e+1,n=s-i;n>0&&this.removeConditionsAndOperators(i,n),this.createMissingConditionsAndOperators()}}this.lastUiCompletePosition=e}updateConditionStatusesAndValues(e,t){this.eTypes.forEach((i,n)=>{const o=this.isConditionDisabled(n,e);i.setDisabled(o||this.filterListOptions.length<=1),n===1&&(Ur(this.eJoinPanels[0],o),this.eJoinAnds[0].setDisabled(o),this.eJoinOrs[0].setDisabled(o))}),this.eConditionBodies.forEach((i,n)=>{Ke(i,this.isConditionBodyVisible(n))});const s=(t??this.getJoinOperator())==="OR";for(const i of this.eJoinAnds)i.setValue(!s,!0);for(const i of this.eJoinOrs)i.setValue(s,!0);this.forEachInput((i,n,o,r)=>{this.setElementDisplayed(i,n<r),this.setElementDisabled(i,this.isConditionDisabled(o,e))}),this.resetPlaceholder()}shouldAddNewConditionAtEnd(e){return e&&this.getNumConditions()<this.maxNumConditions&&!this.isReadOnly()}removeConditionsAndOperators(e,t){if(e>=this.getNumConditions())return;const{eTypes:s,eConditionBodies:i,eJoinPanels:n,eJoinAnds:o,eJoinOrs:r}=this;this.removeComponents(s,e,t),this.removeElements(i,e,t),this.removeEValues(e,t);const a=Math.max(e-1,0);this.removeElements(n,a,t),this.removeComponents(o,a,t),this.removeComponents(r,a,t)}removeElements(e,t,s){const i=Or(e,t,s);for(const n of i)ni(n)}removeComponents(e,t,s){const i=Or(e,t,s);for(const n of i)ni(n.getGui()),this.destroyBean(n)}afterGuiAttached(e){if(super.afterGuiAttached(e),this.resetPlaceholder(),!e?.suppressFocus){let t;if(!this.isReadOnly()){const s=this.getInputs(0)[0];s instanceof rn&&this.isConditionBodyVisible(0)?t=s.getInputElement():t=this.eTypes[0]?.getFocusableElement()}(t??this.getGui()).focus({preventScroll:!0})}}shouldKeepInvalidInputState(){return!1}afterGuiDetached(){super.afterGuiDetached();const e=this.params;if(this.beans.colFilter?.shouldKeepStateOnDetach(e.column)||this.shouldKeepInvalidInputState())return;e.onStateChange({model:e.model});let t=-1,s=-1,i=!1;const n=this.getJoinOperator();for(let r=this.getNumConditions()-1;r>=0;r--)if(this.isConditionUiComplete(r))t===-1&&(t=r,s=r);else{const a=r>=this.numAlwaysVisibleConditions&&!this.isConditionUiComplete(r-1),l=r<t;(a||l)&&(this.removeConditionsAndOperators(r,1),i=!0,l&&s--)}let o=!1;this.getNumConditions()<this.numAlwaysVisibleConditions&&(this.createMissingConditionsAndOperators(),o=!0),this.shouldAddNewConditionAtEnd(s===this.getNumConditions()-1)&&(this.createJoinOperatorPanel(),this.createOption(),o=!0),o&&this.updateConditionStatusesAndValues(s,n),i&&this.updateJoinOperatorsDisabled(),this.lastUiCompletePosition=s}getModelAsString(e){return this.params.getHandler()?.getModelAsString?.(e)??""}resetPlaceholder(){const e=this.getLocaleTextFunc(),{filterPlaceholder:t,eTypes:s}=this;this.forEachInput((i,n,o,r)=>{if(!(i instanceof rn))return;const a=n===0&&r>1?"inRangeStart":n===0?"filterOoo":"inRangeEnd",l=n===0&&r>1?e("ariaFilterFromValue","Filter from value"):n===0?e("ariaFilterValue","Filter Value"):e("ariaFilterToValue","Filter to Value"),c=s[o].getValue(),d=qC(this,t,a,c);i.setInputPlaceholder(d),i.setInputAriaLabel(l)})}setElementValue(e,t,s){e instanceof rn&&e.setValue(t!=null?String(t):null,!0)}setElementDisplayed(e,t){df(e)&&Ke(e.getGui(),t)}setElementDisabled(e,t){df(e)&&Ur(e.getGui(),t)}attachElementOnChange(e,t){e instanceof rn&&e.onValueChange(t)}forEachInput(e){this.getConditionTypes().forEach((t,s)=>{this.forEachPositionTypeInput(s,t,e)})}forEachPositionInput(e,t){const s=this.getConditionType(e);this.forEachPositionTypeInput(e,s,t)}forEachPositionTypeInput(e,t,s){const i=Oi(t,this.optionsFactory),n=this.getInputs(e);for(let o=0;o<n.length;o++){const r=n[o];r!=null&&s(r,o,e,i)}}isConditionDisabled(e,t){return this.isReadOnly()?!0:e===0?!1:e>t+1}isConditionBodyVisible(e){const t=this.getConditionType(e);return Oi(t,this.optionsFactory)>0}isConditionUiComplete(e){return!(e>=this.getNumConditions()||this.getConditionType(e)==="empty"||this.getValues(e).some(s=>s==null)||this.positionHasInvalidInputs(e))}getNumConditions(){return this.eTypes.length}getUiCompleteConditions(){const e=[];for(let t=0;t<this.getNumConditions();t++)this.isConditionUiComplete(t)&&e.push(this.createCondition(t));return e}createMissingConditionsAndOperators(){if(!this.isReadOnly())for(let e=this.getNumConditions();e<this.numAlwaysVisibleConditions;e++)this.createJoinOperatorPanel(),this.createOption()}resetUiToDefaults(e){this.removeConditionsAndOperators(this.isReadOnly()?1:this.numAlwaysVisibleConditions),this.eTypes.forEach(t=>this.resetType(t)),this.eJoinAnds.forEach((t,s)=>this.resetJoinOperatorAnd(t,s,this.joinOperatorId+s)),this.eJoinOrs.forEach((t,s)=>this.resetJoinOperatorOr(t,s,this.joinOperatorId+s)),this.joinOperatorId++,this.forEachInput(t=>this.resetInput(t)),this.resetPlaceholder(),this.createMissingConditionsAndOperators(),this.lastUiCompletePosition=null,this.updateUiVisibility(),e||this.params.onUiChange(this.getUiChangeEventParams())}resetType(e){const s=this.getLocaleTextFunc()("ariaFilteringOperator","Filtering operator");e.setValue(this.optionsFactory.defaultOption,!0).setAriaLabel(s).setDisabled(this.isReadOnly()||this.filterListOptions.length<=1)}resetJoinOperatorAnd(e,t,s){this.resetJoinOperator(e,t,this.defaultJoinOperator==="AND",this.translate("andCondition"),s)}resetJoinOperatorOr(e,t,s){this.resetJoinOperator(e,t,this.defaultJoinOperator==="OR",this.translate("orCondition"),s)}resetJoinOperator(e,t,s,i,n){this.updateJoinOperatorDisabled(e.setValue(s,!0).setName(`ag-simple-filter-and-or-${this.getCompId()}-${n}`).setLabel(i),t)}updateJoinOperatorsDisabled(){const e=(t,s)=>this.updateJoinOperatorDisabled(t,s);this.eJoinAnds.forEach(e),this.eJoinOrs.forEach(e)}updateJoinOperatorDisabled(e,t){e.setDisabled(this.isReadOnly()||t>0)}resetInput(e){this.setElementValue(e,null),this.setElementDisabled(e,this.isReadOnly())}setConditionIntoUi(e,t){const s=this.mapValuesFromModel(e,this.optionsFactory);this.forEachInput((i,n,o)=>{o===t&&this.setElementValue(i,s[n]!=null?s[n]:null)})}setValueFromFloatingFilter(e){this.forEachInput((t,s,i)=>{this.setElementValue(t,s===0&&i===0?e:null,!0)})}addChangedListeners(e,t){this.isReadOnly()||(e.onValueChange(this.listener),this.forEachPositionInput(t,s=>{this.attachElementOnChange(s,this.listener)}))}hasInvalidInputs(){return!1}positionHasInvalidInputs(e){return!1}isReadOnly(){return!!this.params.readOnly}},Op=["equals","notEqual","greaterThan","greaterThanOrEqual","lessThan","lessThanOrEqual","inRange","blank","notBlank"];function ph(e){return e?.allowedCharPattern??null}function A1(e,t){const{filter:s,filterTo:i,type:n}=e||{};return[qt(s),qt(i)].slice(0,Oi(n,t))}var HA=class extends Nc{constructor(){super("bigintFilter",A1,Op),this.eValuesFrom=[],this.eValuesTo=[],this.filterType="bigint",this.defaultDebounceMs=500}afterGuiAttached(e){super.afterGuiAttached(e),this.refreshInputValidation()}shouldKeepInvalidInputState(){return!Io()&&this.hasInvalidInputs()&&this.getConditionTypes().includes("inRange")}refreshInputValidation(){for(let e=0;e<this.eValuesFrom.length;e++){const t=this.eValuesFrom[e],s=this.eValuesTo[e];this.refreshInputPairValidation(t,s)}}refreshInputPairValidation(e,t,s=!1){const{bigintParser:i}=this.params,n=this.getParsedValue(e,i),o=this.getParsedValue(t,i),r=this.isInvalidValue(e,n),a=this.isInvalidValue(t,o),l=s?e:t,c=s?t:e,d=s?r:a,u=s?a:r;let h="";if(d)h=this.getLocaleTextFunc()("invalidBigInt","Invalid BigInt");else if(!r&&!a){const f=BA(n,o,s);f&&(h=this.translate(f,[String(s?t.getValue():e.getValue())]))}l.setCustomValidity(h),u||c.setCustomValidity(""),h.length>0&&this.beans.ariaAnnounce.announceValue(h,"dateFilter")}getState(){return{isInvalid:this.hasInvalidInputs()}}areStatesEqual(e,t){return(e?.isInvalid??!1)===(t?.isInvalid??!1)}refresh(e){const t=super.refresh(e),{state:s,additionalEventAttributes:i}=e,n=this.state,o=i?.fromAction;return(o&&o!="apply"||s.model!==n.model||!this.areStatesEqual(s.state,n.state))&&this.refreshInputValidation(),t}setElementValue(e,t,s){super.setElementValue(e,t,s),t===null&&e.setCustomValidity("")}createEValue(){const{params:e,eValuesFrom:t,eValuesTo:s}=this,i=ph(e),n=ss({tag:"div",cls:"ag-filter-body",role:"presentation"}),o=this.createFromToElement(n,t,"from",i),r=this.createFromToElement(n,s,"to",i),a=(d,u,h)=>()=>this.refreshInputPairValidation(d,u,h),l=a(o,r,!0);o.onValueChange(l),o.addGuiEventListener("focusin",l);const c=a(o,r,!1);return r.onValueChange(c),r.addGuiEventListener("focusin",c),n}createFromToElement(e,t,s,i){const n=this.createManagedBean(i?new ri({allowedCharPattern:i}):new ri);return n.addCss(`ag-filter-${s}`),n.addCss("ag-filter-filter"),t.push(n),e.appendChild(n.getGui()),n}removeEValues(e,t){const s=i=>this.removeComponents(i,e,t);s(this.eValuesFrom),s(this.eValuesTo)}getValues(e){const t=[];return this.forEachPositionInput(e,(s,i,n,o)=>{i<o&&t.push(qt(s.getValue()??null))}),t}areSimpleModelsEqual(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type}createCondition(e){const t=this.getConditionType(e),s={filterType:this.filterType,type:t},i=this.getValues(e);return i.length>0&&(s.filter=String(i[0])),i.length>1&&(s.filterTo=String(i[1])),s}removeConditionsAndOperators(e,t){if(!this.hasInvalidInputs())return super.removeConditionsAndOperators(e,t)}getInputs(e){const{eValuesFrom:t,eValuesTo:s}=this;return e>=t.length?[null,null]:[t[e],s[e]]}hasInvalidInputs(){let e=!1;return this.forEachInput(t=>e||(e=!t.getInputElement().validity.valid)),e}positionHasInvalidInputs(e){let t=!1;return this.forEachPositionInput(e,s=>t||(t=!s.getInputElement().validity.valid)),t}canApply(e){return!this.hasInvalidInputs()}getParsedValue(e,t){const s=e.getValue();return s==null||typeof s=="string"&&s.trim()===""?null:t?t(s):qt(s)}isInvalidValue(e,t){const s=e.getValue();return s!=null&&String(s).trim()!==""&&t===null}};function BA(e,t,s){return e!=null&&t!=null&&e>=t?`strict${s?"Max":"Min"}ValueValidation`:null}var L1=class extends j{constructor(e,t){super(),this.mapValuesFromModel=e,this.defaultOptions=t}init(e){const t=e.filterParams,s=new Lp;this.optionsFactory=s,s.init(t,this.defaultOptions),this.filterModelFormatter=this.createManagedBean(new this.FilterModelFormatterClass(s,t)),this.updateParams(e),this.validateModel(e)}refresh(e){if(e.source==="colDef"){const t=e.filterParams,s=this.optionsFactory;s.refresh(t,this.defaultOptions),this.filterModelFormatter.updateParams({optionsFactory:s,filterParams:t}),this.updateParams(e)}this.validateModel(e)}updateParams(e){this.params=e}doesFilterPass(e){const t=e.model;if(t==null)return!0;const{operator:s}=t,i=[];if(s){const r=t;i.push(...r.conditions??[])}else i.push(t);const n=s&&s==="OR"?"some":"every",o=this.params.getValue(e.node);return i[n](r=>this.individualConditionPasses(e,r,o))}getModelAsString(e,t){return this.filterModelFormatter.getModelAsString(e,t)??""}validateModel(e){const{model:t,filterParams:{filterOptions:s,maxNumConditions:i}}=e;if(t==null)return;let o=BC(t)?t.conditions:[t];const r=s?.map(d=>typeof d=="string"?d:d.displayKey)??this.defaultOptions;if(!(!o||o.every(d=>r.find(u=>u===d.type)!==void 0))){this.params={...e,model:null},e.onModelChange(null);return}let l=!1;const c=this.filterType;if((o&&!o.every(d=>d.filterType===c)||t.filterType!==c)&&(o=o.map(d=>({...d,filterType:c})),l=!0),typeof i=="number"&&o&&o.length>i&&(o=o.slice(0,i),l=!0),l){const d=o.length>1?{...t,filterType:c,conditions:o}:{...o[0],filterType:c};this.params={...e,model:d},e.onModelChange(d)}}individualConditionPasses(e,t,s){const i=this.optionsFactory,n=this.mapValuesFromModel(t,i),o=i.getCustomOption(t.type),r=LA(o,n,s);return r??(s==null?this.evaluateNullValue(t.type):this.evaluateNonNullValue(n,s,t,e))}},Np=class extends L1{evaluateNullValue(e){const{includeBlanksInEquals:t,includeBlanksInNotEqual:s,includeBlanksInGreaterThan:i,includeBlanksInLessThan:n,includeBlanksInRange:o}=this.params.filterParams;switch(e){case"equals":if(t)return!0;break;case"notEqual":if(s)return!0;break;case"greaterThan":case"greaterThanOrEqual":if(i)return!0;break;case"lessThan":case"lessThanOrEqual":if(n)return!0;break;case"inRange":if(o)return!0;break;case"blank":return!0;case"notBlank":return!1}return!1}evaluateNonNullValue(e,t,s){const i=s.type;if(!this.isValid(t))return i==="notEqual"||i==="notBlank";const n=this.comparator(),o=e[0]!=null?n(e[0],t):0;switch(i){case"equals":return o===0;case"notEqual":return o!==0;case"greaterThan":return o>0;case"greaterThanOrEqual":return o>=0;case"lessThan":return o<0;case"lessThanOrEqual":return o<=0;case"inRange":{const r=n(e[1],t);return this.params.filterParams.inRangeInclusive?o>=0&&r<=0:o>0&&r<0}case"blank":return rc(t);case"notBlank":return!rc(t);default:return q(76,{filterModelType:i}),!0}}},Hp={equals:"Equals",notEqual:"NotEqual",greaterThan:"GreaterThan",greaterThanOrEqual:"GreaterThanOrEqual",lessThan:"LessThan",lessThanOrEqual:"LessThanOrEqual",inRange:"InRange"},GA={contains:"Contains",notContains:"NotContains",equals:"TextEquals",notEqual:"TextNotEqual",startsWith:"StartsWith",endsWith:"EndsWith",inRange:"InRange"},Hc=class extends j{constructor(e,t,s){super(),this.optionsFactory=e,this.filterParams=t,this.valueFormatter=s}getModelAsString(e,t){const s=this.getLocaleTextFunc(),i=t==="filterToolPanel";if(!e)return i?xs(this,"filterSummaryInactive"):null;if(e.operator!=null){const o=e,a=(o.conditions??[]).map(c=>this.getModelAsString(c,t)),l=o.operator==="AND"?"andCondition":"orCondition";return a.join(` ${xs(this,l)} `)}else{if(e.type==="blank"||e.type==="notBlank")return i?xs(this,e.type==="blank"?"filterSummaryBlank":"filterSummaryNotBlank"):s(e.type,e.type);{const o=e,r=this.optionsFactory.getCustomOption(o.type),{displayKey:a,displayName:l,numberOfInputs:c}=r||{};return a&&l&&c===0?s(a,l):this.conditionToString(o,i,o.type==="inRange"||c===2,a,l)}}}updateParams(e){const{optionsFactory:t,filterParams:s}=e;this.optionsFactory=t,this.filterParams=s}conditionForToolPanel(e,t,s,i,n,o){let r;const a=this.getTypeKey(e);return a&&(r=xs(this,a)),n&&o&&(r=this.getLocaleTextFunc()(n,o)),r!=null?t?`${r} ${xs(this,"filterSummaryInRangeValues",[s(),i()])}`:`${r} ${s()}`:null}getTypeKey(e){const t=this.filterTypeKeys[e];return t?`filterSummary${t}`:null}formatValue(e){const t=this.valueFormatter;return t?t(e??null)??"":String(e)}},O1=class extends Hc{constructor(e,t){super(e,t,t.bigintFormatter),this.filterTypeKeys=Hp}conditionToString(e,t,s,i,n){const{filter:o,filterTo:r,type:a}=e,l=this.formatValue.bind(this),c=qt(o),d=qt(r);if(t){const u=this.conditionForToolPanel(a,s,()=>l(c),()=>l(d),i,n);if(u!=null)return u}return s?`${l(c)}-${l(d)}`:o!=null?l(c):`${a}`}},VA=class extends Np{constructor(){super(A1,Op),this.filterType="bigint",this.FilterModelFormatterClass=O1}comparator(){return(e,t)=>e===t?0:e<t?1:-1}isValid(e){return qt(e)!==null}},Bp=class extends j{constructor(e){super(),this.params=e,this.eInput=ue,this.onValueChanged=()=>{}}setupGui(e){this.eInput=this.createManagedBean(new ri(this.params?.config));const t=this.eInput.getGui();e.appendChild(t);const s=i=>this.onValueChanged(i);this.addManagedListeners(t,{input:s,keydown:s})}setEditable(e){this.eInput.setDisabled(!e)}getValue(){return this.eInput.getValue()}setValue(e,t){this.eInput.setValue(e,t)}setValueChangedListener(e){this.onValueChanged=e}setParams({ariaLabel:e,autoComplete:t,placeholder:s}){const{eInput:i}=this;i.setInputAriaLabel(e),t!==void 0&&i.setAutoComplete(t),i.toggleCss("ag-floating-filter-search-icon",!!s),i.setInputPlaceholder(s)}};function gh(e){const t=e?.trim();return t===""?e:t}function N1(e,t){const{filter:s,filterTo:i,type:n}=e||{};return[s||null,i||null].slice(0,Oi(n,t))}var H1=class extends lt{constructor(){super(...arguments),this.defaultDebounceMs=0}setLastTypeFromModel(e){if(!e){this.lastType=this.optionsFactory.defaultOption;return}const t=e.operator;let s;t?s=e.conditions[0]:s=e,this.lastType=s.type}canWeEditAfterModelFromParentFilter(e){if(!e)return this.isTypeEditable(this.lastType);if(e.operator)return!1;const s=e;return this.isTypeEditable(s.type)}init(e){this.params=e;const t=this.gos.get("enableFilterHandlers");if(this.reactive=t,this.setParams(e),t){const s=e;this.onModelUpdated(s.model)}}setParams(e){const t=new Lp;this.optionsFactory=t,t.init(e.filterParams,this.defaultOptions),this.filterModelFormatter=this.createManagedBean(new this.FilterModelFormatterClass(t,e.filterParams)),this.setSimpleParams(e,!1)}setSimpleParams(e,t=!0){const s=this.optionsFactory.defaultOption;t||(this.lastType=s),this.readOnly=!!e.filterParams.readOnly;const i=this.isTypeEditable(s);this.setEditable(i)}refresh(e){this.params=e;const t=e,s=this.reactive;if((!s||t.source==="colDef")&&this.updateParams(e),s){const{source:i,model:n}=t;if(i==="dataChanged"||i==="ui")return;this.onModelUpdated(n)}}updateParams(e){const t=this.optionsFactory;t.refresh(e.filterParams,this.defaultOptions),this.setSimpleParams(e),this.filterModelFormatter.updateParams({optionsFactory:t,filterParams:e.filterParams})}onParentModelChanged(e,t){t?.afterFloatingFilter||t?.afterDataChange||this.onModelUpdated(e)}isTypeEditable(e){return!!e&&!this.readOnly&&Oi(e,this.optionsFactory)===1}getAriaLabel(e){return`${this.beans.colNames.getDisplayNameForColumn(e,"header",!0)} ${this.getLocaleTextFunc()("ariaFilterInput","Filter Input")}`}},zA={tag:"div",ref:"eFloatingFilterInputContainer",cls:"ag-floating-filter-input",role:"presentation"},Gp=class extends H1{constructor(){super(...arguments),this.eFloatingFilterInputContainer=ue,this.defaultDebounceMs=500}postConstruct(){this.setTemplate(zA)}onModelUpdated(e){this.setLastTypeFromModel(e),this.setEditable(this.canWeEditAfterModelFromParentFilter(e)),this.inputSvc.setValue(this.filterModelFormatter.getModelAsString(e))}setParams(e){this.setupFloatingFilterInputService(e),super.setParams(e),this.setTextInputParams(e)}setupFloatingFilterInputService(e){this.inputSvc=this.createFloatingFilterInputService(e),this.inputSvc.setupGui(this.eFloatingFilterInputContainer)}setTextInputParams(e){const{inputSvc:t,defaultDebounceMs:s,readOnly:i}=this,{filterPlaceholder:n,column:o,browserAutoComplete:r,filterParams:a}=e,l=this.lastType??this.optionsFactory.defaultOption,c=e.filterParams.filterPlaceholder,d=n===!0?qC(this,c,"filterOoo",l):n||void 0;if(t.setParams({ariaLabel:this.getAriaLabel(o),autoComplete:r??!1,placeholder:d}),this.applyActive=Dc(a),!i){const u=lp(a,s);t.setValueChangedListener(gt(this,this.syncUpWithParentFilter.bind(this),u))}}updateParams(e){super.updateParams(e),this.setTextInputParams(e)}recreateFloatingFilterInputService(e){const{inputSvc:t}=this,s=t.getValue();$t(this.eFloatingFilterInputContainer),this.destroyBean(t),this.setupFloatingFilterInputService(e),t.setValue(s,!0)}syncUpWithParentFilter(e){const t=e.key===N.ENTER,s=this.reactive;if(s&&this.params.onUiChange(),this.applyActive&&!t)return;const{inputSvc:i,params:n,lastType:o}=this;let r=i.getValue();if(n.filterParams.trimInput&&(r=gh(r),i.setValue(r,!0)),s){const a=n,l=a.model,c=this.convertValue(r),d=c==null?null:{...l??{filterType:this.filterType,type:o??this.optionsFactory.defaultOption},filter:c};a.onModelChange(d,{afterFloatingFilter:!0})}else n.parentFilterInstance(a=>{a?.onFloatingFilterChanged(o||null,r||null)})}convertValue(e){return e||null}setEditable(e){this.inputSvc.setEditable(e)}},jA=class extends Gp{constructor(){super(...arguments),this.FilterModelFormatterClass=O1,this.filterType="bigint",this.defaultOptions=Op}updateParams(e){const t=e.filterParams;ph(t)!==this.allowedCharPattern&&this.recreateFloatingFilterInputService(e),this.bigintParser=t?.bigintParser,super.updateParams(e)}createFloatingFilterInputService(e){const t=e.filterParams;this.allowedCharPattern=ph(t),this.bigintParser=t?.bigintParser;const s=this.allowedCharPattern?{allowedCharPattern:this.allowedCharPattern}:void 0;return this.createManagedBean(new Bp({config:s}))}convertValue(e){return e==null||e===""?null:this.bigintParser?this.bigintParser(e):qt(e)}},Em=".ag-input-field-input",B1=class{constructor(e,t,s,i,n,o){this.context=e,this.eParent=n,this.alive=!0,this.debouncedReport=gt({isAlive:()=>this.alive},Dm,500),this.timeoutHandle=null,cF(t,s,i)?.newAgStackInstance().then(a=>{if(!this.alive){e.destroyBean(a);return}if(this.dateComp=a,!a)return;n.appendChild(a.getGui()),a?.afterGuiAttached?.();const{tempValue:l,disabled:c}=this;l&&a.setDate(l),c!=null&&a.setDisabled?.(c),o?.(this)})}destroy(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)}getDate(){return this.dateComp?this.dateComp.getDate():this.tempValue}setDate(e){const t=this.dateComp;t?t.setDate(e):this.tempValue=e}setDisabled(e){const t=this.dateComp;t?t.setDisabled?.(e):this.disabled=e}setDisplayed(e){Ke(this.eParent,e)}setInputPlaceholder(e){this.dateComp?.setInputPlaceholder?.(e)}setInputAriaLabel(e){this.dateComp?.setInputAriaLabel?.(e)}afterGuiAttached(e){this.dateComp?.afterGuiAttached?.(e)}updateParams(e){this.dateComp?.refresh?.(e)}setCustomValidity(e,t=!1){const s=this.dateComp?.getGui().querySelector(Em);if(s&&"setCustomValidity"in s){const i=e.length>0;s.setCustomValidity(e),i?t?this.timeoutHandle=this.debouncedReport(s):Dm(s):this.timeoutHandle&&window.clearTimeout(this.timeoutHandle),_h(s,i)}}getValidity(){return this.dateComp?.getGui().querySelector(Em)?.validity}};function Dm(e){e.reportValidity()}var Vp=["equals","notEqual","lessThan","greaterThan","inRange","blank","notBlank"];function G1(e,t){const{dateFrom:s,dateTo:i,type:n}=e||{};return[s&&Vt(s,void 0,!0)||null,i&&Vt(i,void 0,!0)||null].slice(0,Oi(n,t))}var Pm=1e3,Tm=1/0,WA=class extends Nc{constructor(){super("dateFilter",G1,Vp),this.eConditionPanelsFrom=[],this.eConditionPanelsTo=[],this.dateConditionFromComps=[],this.dateConditionToComps=[],this.minValidYear=Pm,this.maxValidYear=Tm,this.minValidDate=null,this.maxValidDate=null,this.filterType="date"}afterGuiAttached(e){super.afterGuiAttached(e),this.dateConditionFromComps[0].afterGuiAttached(e),this.refreshInputValidation()}shouldKeepInvalidInputState(){return!Io()&&this.hasInvalidInputs()&&this.getConditionTypes().includes("inRange")}commonUpdateSimpleParams(e){super.commonUpdateSimpleParams(e);const t=(l,c)=>{const d=e[l];if(d!=null)if(isNaN(d))q(82,{param:l});else return d==null?c:Number(d);return c},s=t("minValidYear",Pm),i=t("maxValidYear",Tm);this.minValidYear=s,this.maxValidYear=i,s>i&&q(83);const{minValidDate:n,maxValidDate:o}=e,r=n instanceof Date?n:Vt(n);this.minValidDate=r;const a=o instanceof Date?o:Vt(o);this.maxValidDate=a,r&&a&&r>a&&q(84)}refreshInputValidation(){for(let e=0;e<this.dateConditionFromComps.length;e++)this.refreshInputPairValidation(e,!1,!0)}refreshInputPairValidation(e,t=!1,s=!1){const{dateConditionFromComps:i,dateConditionToComps:n,beans:o}=this,r=i[e],a=n[e],l=Oi(this.getConditionType(e),this.optionsFactory),c=r.getDate(),d=a.getDate(),u=l>=2?_A(c,d,t):null,h=u?this.translate(u,[String(t?d:c)]):"",f=!Io()&&!s;(t?r:a).setCustomValidity(h,f),(t?a:r).setCustomValidity("",f),h.length>0&&o.ariaAnnounce.announceValue(h,"dateFilter")}createDateCompWrapper(e,t,s){const{beans:{userCompFactory:i,context:n,gos:o},params:r}=this,a=s==="from",l=new B1(n,i,r.colDef,Se(o,{onDateChanged:()=>{this.refreshInputPairValidation(t,a),this.onUiChanged()},onFocusIn:()=>this.refreshInputPairValidation(t,a),filterParams:r,location:"filter"}),e);return this.addDestroyFunc(()=>l.destroy()),l}getState(){return{isInvalid:this.hasInvalidInputs()}}areStatesEqual(e,t){return(e?.isInvalid??!1)===(t?.isInvalid??!1)}setElementValue(e,t){e.setDate(t),t||e.setCustomValidity("")}setElementDisplayed(e,t){e.setDisplayed(t)}setElementDisabled(e,t){e.setDisabled(t)}createEValue(){const e=ss({tag:"div",cls:"ag-filter-body"});return this.createFromToElement(e,this.eConditionPanelsFrom,this.dateConditionFromComps,"from"),this.createFromToElement(e,this.eConditionPanelsTo,this.dateConditionToComps,"to"),e}createFromToElement(e,t,s,i){const n=ss({tag:"div",cls:`ag-filter-${i} ag-filter-date-${i}`});t.push(n),e.appendChild(n),s.push(this.createDateCompWrapper(n,t.length-1,i))}removeEValues(e,t){this.removeDateComps(this.dateConditionFromComps,e,t),this.removeDateComps(this.dateConditionToComps,e,t),Or(this.eConditionPanelsFrom,e,t),Or(this.eConditionPanelsTo,e,t)}removeDateComps(e,t,s){const i=Or(e,t,s);for(const n of i)n.destroy()}isValidDateValue(e){if(e===null)return!1;const{minValidDate:t,maxValidDate:s,minValidYear:i,maxValidYear:n}=this;if(t){if(e<t)return!1}else if(e.getUTCFullYear()<i)return!1;if(s){if(e>s)return!1}else if(e.getUTCFullYear()>n)return!1;return!0}hasInvalidInputs(){let e=!1;return this.forEachInput(t=>e||(e=t.getDate()!=null&&!(t.getValidity()?.valid??!0))),e}positionHasInvalidInputs(e){let t=!1;return this.forEachPositionInput(e,s=>t||(t=!(s.getValidity()?.valid??!0))),t}canApply(e){return!this.hasInvalidInputs()}isConditionUiComplete(e){if(!super.isConditionUiComplete(e))return!1;let t=!0;return this.forEachPositionInput(e,(s,i,n,o)=>{!t||i>=o||t&&(t=this.isValidDateValue(s.getDate()))}),t}areSimpleModelsEqual(e,t){return e.dateFrom===t.dateFrom&&e.dateTo===t.dateTo&&e.type===t.type}createCondition(e){const t=this.getConditionType(e),s={},{params:i,filterType:n}=this,o=this.getValues(e),r=i.useIsoSeparator?"T":" ";return o.length>0&&(s.dateFrom=Gt(o[0],!0,r)),o.length>1&&(s.dateTo=Gt(o[1],!0,r)),{dateFrom:null,dateTo:null,filterType:n,type:t,...s}}removeConditionsAndOperators(e,t){if(!this.hasInvalidInputs())return super.removeConditionsAndOperators(e,t)}resetPlaceholder(){const e=this.getLocaleTextFunc(),t=this.translate("dateFormatOoo"),s=e("ariaFilterValue","Filter Value");this.forEachInput(i=>{i.setInputPlaceholder(t),i.setInputAriaLabel(s)})}getInputs(e){const{dateConditionFromComps:t,dateConditionToComps:s}=this;return e>=t.length?[null,null]:[t[e],s[e]]}getValues(e){const t=[];return this.forEachPositionInput(e,(s,i,n,o)=>{i<o&&t.push(s.getDate())}),t}translate(e,t){let s=e;return e==="lessThan"?s="before":e==="greaterThan"&&(s="after"),super.translate(s,t)}};function _A(e,t,s){return e!=null&&t!=null&&e>=t?`${s?"max":"min"}DateValidation`:null}var V1=class extends Hc{constructor(e,t){super(e,t,s=>{const{dataTypeSvc:i,valueSvc:n}=this.beans,o=t.column,r=i?.getDateFormatterFunction(o),a=r?r(s??void 0):s;return n.formatValue(o,null,a)}),this.filterTypeKeys=Hp}conditionToString(e,t,s,i,n){const{type:o}=e,r=Vt(e.dateFrom),a=Vt(e.dateTo),l=this.filterParams.inRangeFloatingFilterDateFormat,c=t?this.formatValue.bind(this):h=>fP(h,l),d=()=>r!==null?c(r):"null",u=()=>a!==null?c(a):"null";if(r==null&&a==null)return xs(this,o);if(t){const h=this.conditionForToolPanel(o,s,d,u,i,n);if(h!=null)return h}return s?`${d()}-${u()}`:r!=null?c(r):`${o}`}};function UA(e,t){const s=t;return s<e?-1:s>e?1:0}var $A=class extends Np{constructor(){super(G1,Vp),this.filterType="date",this.FilterModelFormatterClass=V1,this.filterTypeToRangeCache=new Map}getOrRefreshRangeCacheItem(e,t){const{filterTypeToRangeCache:s}=this,i=Date.now();let n=s.get(e);if(n&&n.expires<i&&(n=void 0),!n){const[o,r]=t(new Date(i),new Date(i));n={from:o,to:r,expires:fs(new Date(i)).getTime()-i},s.set(e,n)}return n}comparator(){return this.params.filterParams.comparator??UA}isValid(e){const t=this.params.filterParams.isValidDate;return!t||t(e)}evaluateNonNullValue(e,t,s){const i=s.type,n=this.comparator();if(!this.isValid(t))return i==="notEqual"||i==="notBlank";const o=i,r=h7[o];if(r){const{from:a,to:l}=this.getOrRefreshRangeCacheItem(o,r);return n(a,t)>=0&&n(l,t)<0}return super.evaluateNonNullValue(e,t,s)}},qA=1,dl=null,KA=()=>{if(dl!=null)return dl;let e;const t=typeof navigator>"u"?void 0:navigator.languages?.[0]??navigator.language;if(t&&typeof Intl<"u"&&typeof Intl.Locale=="function")try{e=new Intl.Locale(t).getWeekInfo?.()?.firstDay}catch{e=void 0}return dl=e==null?qA:e%7,dl},is=e=>(e.setHours(0,0,0,0),e),Bc=e=>{const t=e.getDay(),s=KA(),i=(t-s+7)%7;return e.setDate(e.getDate()-i),is(e)},Gc=(e,t=1)=>(e.setDate(e.getDate()-t),e),fs=e=>(e.setDate(e.getDate()+1),is(e)),z1=e=>(Bc(e),e.setDate(e.getDate()+6),fs(e)),Vc=e=>(e.setDate(1),is(e)),zp=e=>(e.setDate(1),e.setMonth(e.getMonth()+1),is(e)),jp=e=>{const t=Math.floor(e.getMonth()/3);return e.setMonth(t*3),Vc(e)},j1=e=>{const t=Math.floor(e.getMonth()/3);return e.setMonth(t*3+2),zp(e)},Wp=e=>(e.setMonth(0,1),is(e)),W1=e=>(e.setMonth(12,0),fs(e)),Oo=e=>Gc(e),fh=e=>Oo(Bc(e)),mh=e=>Oo(Vc(e)),vh=e=>Oo(jp(e)),_p=(e,t)=>[is(e),fs(t)],YA=(e,t)=>_p(Oo(e),Oo(t)),Up=(e,t)=>[Bc(e),z1(t)],ZA=(e,t)=>Up(fh(e),fh(t)),$p=(e,t)=>[Vc(e),zp(t)],XA=(e,t)=>$p(mh(e),mh(t)),qp=(e,t)=>[jp(e),j1(t)],QA=(e,t)=>qp(vh(e),vh(t)),Kp=(e,t)=>[Wp(e),W1(t)],JA=(e,t)=>[Wp(e),fs(t)],e7=(e,t)=>[is(Gc(e,7)),fs(t)],t7=(e,t)=>[is(Gc(e,30)),fs(t)],s7=(e,t)=>[is(Gc(e,90)),fs(t)],i7=(e,t)=>(e.setFullYear(e.getFullYear()-1),e.setMonth(e.getMonth()+6),[is(e),fs(t)]),n7=(e,t)=>(e.setFullYear(e.getFullYear()-1),[is(e),fs(t)]),o7=(e,t)=>(e.setFullYear(e.getFullYear()-2),[is(e),fs(t)]),r7=(e,t)=>(e.setFullYear(e.getFullYear()-1),t.setFullYear(t.getFullYear()-1),Kp(e,t)),a7=(e,t)=>(e.setFullYear(e.getFullYear()+1),t.setFullYear(t.getFullYear()+1),Kp(e,t)),l7=(e,t)=>(e.setMonth(e.getMonth()+3),t.setMonth(t.getMonth()+3),qp(e,t)),c7=(e,t)=>(e.setMonth(e.getMonth()+1),t.setMonth(t.getMonth()+1),$p(e,t)),d7=(e,t)=>(e.setDate(e.getDate()+7),t.setDate(t.getDate()+7),Up(e,t)),u7=(e,t)=>(e.setDate(e.getDate()+1),t.setDate(t.getDate()+1),_p(e,t)),h7={today:_p,yesterday:YA,tomorrow:u7,thisWeek:Up,lastWeek:ZA,nextWeek:d7,thisMonth:$p,lastMonth:XA,nextMonth:c7,thisQuarter:qp,lastQuarter:QA,nextQuarter:l7,thisYear:Kp,lastYear:r7,nextYear:a7,yearToDate:JA,last7Days:e7,last30Days:t7,last90Days:s7,last6Months:i7,last12Months:n7,last24Months:o7,setStartOfDay:is,setStartOfWeek:Bc,setStartOfNextDay:fs,setStartOfNextWeek:z1,setStartOfMonth:Vc,setStartOfNextMonth:zp,setStartOfQuarter:jp,setStartOfNextQuarter:j1,setStartOfYear:Wp,setStartOfNextYear:W1,setPreviousDay:Oo,setPreviousWeek:fh,setPreviousMonth:mh,setPreviousQuarter:vh},p7={tag:"div",cls:"ag-floating-filter-input",role:"presentation",children:[{tag:"ag-input-text-field",ref:"eReadOnlyText"},{tag:"div",ref:"eDateWrapper",cls:"ag-date-floating-filter-wrapper"}]},g7=class extends H1{constructor(){super(p7,[Lc]),this.eReadOnlyText=ue,this.eDateWrapper=ue,this.FilterModelFormatterClass=V1,this.filterType="date",this.defaultOptions=Vp}setParams(e){super.setParams(e),this.createDateComponent();const t=this.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(t("ariaDateFilterInput","Date Filter Input"))}updateParams(e){super.updateParams(e),this.dateComp.updateParams(this.getDateComponentParams()),this.updateCompOnModelChange(e.currentParentModel())}updateCompOnModelChange(e){const t=!this.readOnly&&this.canWeEditAfterModelFromParentFilter(e);if(this.setEditable(t),t){const s=e?Vt(e.dateFrom):null;this.dateComp.setDate(s),this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.filterModelFormatter.getModelAsString(e)),this.dateComp.setDate(null)}setEditable(e){Ke(this.eDateWrapper,e),Ke(this.eReadOnlyText.getGui(),!e)}onModelUpdated(e){super.setLastTypeFromModel(e),this.updateCompOnModelChange(e)}onDateChanged(){const e=this.dateComp.getDate();if(this.reactive){const t=this.params;t.onUiChange();const s=t.model,i=Gt(e),n=i==null?null:{...s??{filterType:this.filterType,type:this.lastType??this.optionsFactory.defaultOption},dateFrom:i};t.onModelChange(n,{afterFloatingFilter:!0})}else this.params.parentFilterInstance(t=>{t?.onFloatingFilterChanged(this.lastType||null,e)})}getDateComponentParams(){const{filterParams:e}=this.params,t=lp(e,this.defaultDebounceMs);return Se(this.gos,{onDateChanged:gt(this,this.onDateChanged.bind(this),t),filterParams:e,location:"floatingFilter"})}createDateComponent(){const{beans:{context:e,userCompFactory:t},eDateWrapper:s,params:{column:i}}=this;this.dateComp=new B1(e,t,i.getColDef(),this.getDateComponentParams(),s,n=>{n.setInputAriaLabel(this.getAriaLabel(i))}),this.addDestroyFunc(()=>this.dateComp.destroy())}},f7={tag:"div",cls:"ag-filter-filter",children:[{tag:"ag-input-text-field",ref:"eDateInput",cls:"ag-date-filter"}]},m7=class extends lt{constructor(){super(f7,[Lc]),this.eDateInput=ue,this.isApply=!1,this.applyOnFocusOut=!1}init(e){this.params=e,this.setParams(e);const t=this.eDateInput.getInputElement();this.addManagedListeners(t,{mouseDown:()=>{this.eDateInput.isDisabled()||this.usingSafariDatePicker||t.focus({preventScroll:!0})},input:this.handleInput.bind(this,!1),change:this.handleInput.bind(this,!0),focusout:this.handleFocusOut.bind(this),focusin:this.handleFocusIn.bind(this)})}handleInput(e){if(!this.eDateInput.isDisabled()){if(this.isApply){this.applyOnFocusOut=!e,e&&this.params.onDateChanged();return}e||this.params.onDateChanged()}}handleFocusOut(){this.applyOnFocusOut&&(this.applyOnFocusOut=!1,this.params.onDateChanged())}handleFocusIn(){this.params.onFocusIn?.()}setParams(e){const t=this.eDateInput.getInputElement(),s=this.shouldUseBrowserDatePicker(e);this.usingSafariDatePicker=s&&zi();const{minValidYear:i,maxValidYear:n,minValidDate:o,maxValidDate:r,buttons:a,includeTime:l,colDef:c}=e.filterParams||{},d=this.beans.dataTypeSvc,u=l??d?.getDateIncludesTimeFlag?.(c.cellDataType)??!1;s?u?(t.type="datetime-local",t.step="1"):t.type="date":t.type="text";const h=km(o,i,!0),f=km(r,n,!1);h&&f&&h.getTime()>f.getTime()&&q(87),h&&(t.min=Gt(h,u)),f&&(t.max=Gt(f,u)),this.isApply=e.location==="floatingFilter"&&!!a?.includes("apply")}refresh(e){this.params=e,this.setParams(e)}getDate(){return Vt(this.eDateInput.getValue())}setDate(e){const t=this.params.filterParams.colDef.cellDataType,s=this.beans.dataTypeSvc?.getDateIncludesTimeFlag(t)??!1;this.eDateInput.setValue(Gt(e,s))}setInputPlaceholder(e){this.eDateInput.setInputPlaceholder(e)}setInputAriaLabel(e){this.eDateInput.setAriaLabel(e)}setDisabled(e){this.eDateInput.setDisabled(e)}afterGuiAttached(e){e?.suppressFocus||this.eDateInput.getInputElement().focus({preventScroll:!0})}shouldUseBrowserDatePicker(e){return e?.filterParams?.browserDatePicker??!0}};function km(e,t,s){return e&&t&&q(s?85:86),e instanceof Date?e:e?Vt(e):t?Vt(`${t}-${s?"01-01":"12-31"}`):null}var Yp=["equals","notEqual","greaterThan","greaterThanOrEqual","lessThan","lessThanOrEqual","inRange","blank","notBlank"];function Ch(e){return e?.allowedCharPattern??null}function ac(e){return e==null||isNaN(e)?null:e}function _1(e,t){const{filter:s,filterTo:i,type:n}=e||{};return[ac(s),ac(i)].slice(0,Oi(n,t))}var v7=class extends Nc{constructor(){super("numberFilter",_1,Yp),this.eValuesFrom=[],this.eValuesTo=[],this.filterType="number",this.defaultDebounceMs=500}afterGuiAttached(e){super.afterGuiAttached(e),this.refreshInputValidation()}shouldKeepInvalidInputState(){return!Io()&&this.hasInvalidInputs()&&this.getConditionTypes().includes("inRange")}refreshInputValidation(){for(let e=0;e<this.eValuesFrom.length;e++){const t=this.eValuesFrom[e],s=this.eValuesTo[e];this.refreshInputPairValidation(t,s)}}refreshInputPairValidation(e,t,s=!1){const i=this.params.numberParser,n=Im(i,e),o=Im(i,t),r=C7(n,o,s),a=r?this.translate(r,[String(s?o:n)]):"";(s?e:t).setCustomValidity(a),(s?t:e).setCustomValidity(""),a.length>0&&this.beans.ariaAnnounce.announceValue(a,"dateFilter")}getState(){return{isInvalid:this.hasInvalidInputs()}}areStatesEqual(e,t){return(e?.isInvalid??!1)===(t?.isInvalid??!1)}refresh(e){const t=super.refresh(e),{state:s,additionalEventAttributes:i}=e,n=this.state,o=i?.fromAction;return(o&&o!="apply"||s.model!==n.model||!this.areStatesEqual(s.state,n.state))&&this.refreshInputValidation(),t}setElementValue(e,t,s){const{numberFormatter:i}=this.params,n=!s&&i?i(t??null):t;super.setElementValue(e,n),n===null&&e.setCustomValidity("")}createEValue(){const{params:e,eValuesFrom:t,eValuesTo:s}=this,i=Ch(e),n=ss({tag:"div",cls:"ag-filter-body",role:"presentation"}),o=this.createFromToElement(n,t,"from",i),r=this.createFromToElement(n,s,"to",i),a=(d,u,h)=>()=>this.refreshInputPairValidation(d,u,h),l=a(o,r,!0);o.onValueChange(l),o.addGuiEventListener("focusin",l);const c=a(o,r,!1);return r.onValueChange(c),r.addGuiEventListener("focusin",c),n}createFromToElement(e,t,s,i){const n=this.createManagedBean(i?new ri({allowedCharPattern:i}):new Mp);return n.addCss(`ag-filter-${s}`),n.addCss("ag-filter-filter"),t.push(n),e.appendChild(n.getGui()),n}removeEValues(e,t){const s=i=>this.removeComponents(i,e,t);s(this.eValuesFrom),s(this.eValuesTo)}getValues(e){const t=[];return this.forEachPositionInput(e,(s,i,n,o)=>{i<o&&t.push(ac(U1(this.params.numberParser,s.getValue())))}),t}areSimpleModelsEqual(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type}createCondition(e){const t=this.getConditionType(e),s={filterType:this.filterType,type:t},i=this.getValues(e);return i.length>0&&(s.filter=i[0]),i.length>1&&(s.filterTo=i[1]),s}removeConditionsAndOperators(e,t){if(!this.hasInvalidInputs())return super.removeConditionsAndOperators(e,t)}getInputs(e){const{eValuesFrom:t,eValuesTo:s}=this;return e>=t.length?[null,null]:[t[e],s[e]]}hasInvalidInputs(){let e=!1;return this.forEachInput(t=>e||(e=!t.getInputElement().validity.valid)),e}positionHasInvalidInputs(e){let t=!1;return this.forEachPositionInput(e,s=>t||(t=!s.getInputElement().validity.valid)),t}canApply(e){return!this.hasInvalidInputs()}};function U1(e,t){if(typeof t=="number")return t;let s=Js(t);return s!=null&&s.trim()===""&&(s=null),e?e(s):s==null||s.trim()==="-"?null:Number.parseFloat(s)}function Im(e,t){return ac(U1(e,t.getValue(!0)))}function C7(e,t,s){return e!=null&&t!=null&&e>=t?`strict${s?"Max":"Min"}ValueValidation`:null}var $1=class extends Hc{constructor(e,t){super(e,t,t.numberFormatter),this.filterTypeKeys=Hp}conditionToString(e,t,s,i,n){const{filter:o,filterTo:r,type:a}=e,l=this.formatValue.bind(this);if(t){const c=this.conditionForToolPanel(a,s,()=>l(o),()=>l(r),i,n);if(c!=null)return c}return s?`${l(o)}-${l(r)}`:o!=null?l(o):`${a}`}},w7=class extends Np{constructor(){super(_1,Yp),this.filterType="number",this.FilterModelFormatterClass=$1}comparator(){return(e,t)=>e===t?0:e<t?1:-1}isValid(e){return!isNaN(e)}},b7=class extends j{constructor(){super(...arguments),this.onValueChanged=()=>{},this.numberInputActive=!0}setupGui(e){this.eNumberInput=this.createManagedBean(new Mp),this.eTextInput=this.createManagedBean(new ri),this.eTextInput.setDisabled(!0);const t=this.eNumberInput.getGui(),s=this.eTextInput.getGui();e.appendChild(t),e.appendChild(s),this.setupListeners(t,i=>this.onValueChanged(i)),this.setupListeners(s,i=>this.onValueChanged(i))}setEditable(e){this.numberInputActive=e,this.eNumberInput.setDisplayed(this.numberInputActive),this.eTextInput.setDisplayed(!this.numberInputActive)}setAutoComplete(e){this.eNumberInput.setAutoComplete(e),this.eTextInput.setAutoComplete(e)}getValue(){return this.getActiveInputElement().getValue()}setValue(e,t){this.getActiveInputElement().setValue(e,t)}getActiveInputElement(){return this.numberInputActive?this.eNumberInput:this.eTextInput}setValueChangedListener(e){this.onValueChanged=e}setupListeners(e,t){this.addManagedListeners(e,{input:t,keydown:t})}setParams({ariaLabel:e,autoComplete:t,placeholder:s}){this.setAriaLabel(e),t!==void 0&&this.setAutoComplete(t),this.setPlaceholder(this.eNumberInput,s),this.setPlaceholder(this.eTextInput,s)}setPlaceholder(e,t){e.toggleCss("ag-floating-filter-search-icon",!!t),e.setInputPlaceholder(t)}setAriaLabel(e){this.eNumberInput.setInputAriaLabel(e),this.eTextInput.setInputAriaLabel(e)}},x7=class extends Gp{constructor(){super(...arguments),this.FilterModelFormatterClass=$1,this.filterType="number",this.defaultOptions=Yp}updateParams(e){Ch(e.filterParams)!==this.allowedCharPattern&&this.recreateFloatingFilterInputService(e),super.updateParams(e)}createFloatingFilterInputService(e){return this.allowedCharPattern=Ch(e.filterParams),this.allowedCharPattern?this.createManagedBean(new Bp({config:{allowedCharPattern:this.allowedCharPattern}})):this.createManagedBean(new b7)}convertValue(e){return e?Number(e):null}},Zp=["contains","notContains","equals","notEqual","startsWith","endsWith","blank","notBlank"],y7=class extends Nc{constructor(){super("textFilter",N1,Zp),this.filterType="text",this.eValuesFrom=[],this.eValuesTo=[],this.defaultDebounceMs=500}createCondition(e){const t=this.getConditionType(e),s={filterType:this.filterType,type:t},i=this.getValues(e);return i.length>0&&(s.filter=i[0]),i.length>1&&(s.filterTo=i[1]),s}areSimpleModelsEqual(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type}getInputs(e){const{eValuesFrom:t,eValuesTo:s}=this;return e>=t.length?[null,null]:[t[e],s[e]]}getValues(e){const t=[];return this.forEachPositionInput(e,(s,i,n,o)=>{i<o&&t.push(Js(s.getValue()))}),t}createEValue(){const e=ss({tag:"div",cls:"ag-filter-body",role:"presentation"}),{eValuesFrom:t,eValuesTo:s}=this;return this.createFromToElement(e,t,"from"),this.createFromToElement(e,s,"to"),e}createFromToElement(e,t,s){const i=this.createManagedBean(new ri);i.addCss(`ag-filter-${s}`),i.addCss("ag-filter-filter"),t.push(i),e.appendChild(i.getGui())}removeEValues(e,t){const s=o=>this.removeComponents(o,e,t),{eValuesFrom:i,eValuesTo:n}=this;s(i),s(n)}},q1=class extends Hc{constructor(){super(...arguments),this.filterTypeKeys=GA}conditionToString(e,t,s,i,n){const{filter:o,filterTo:r,type:a}=e;if(t){const l=d=>()=>xs(this,"filterSummaryTextQuote",[d]),c=this.conditionForToolPanel(a,s,l(o),l(r),i,n);if(c!=null)return c}return s?`${o}-${r}`:o!=null?`${o}`:`${a}`}},S7=({filterOption:e,value:t,filterText:s})=>{if(s==null)return!1;switch(e){case"contains":return t.includes(s);case"notContains":return!t.includes(s);case"equals":return t===s;case"notEqual":return t!=s;case"startsWith":return t.indexOf(s)===0;case"endsWith":{const i=t.lastIndexOf(s);return i>=0&&i===t.length-s.length}default:return!1}},R7=e=>e,F7=e=>e==null?null:e.toString().toLowerCase(),E7=class extends L1{constructor(){super(N1,Zp),this.filterType="text",this.FilterModelFormatterClass=q1}updateParams(e){super.updateParams(e);const t=e.filterParams;this.matcher=t.textMatcher??S7,this.formatter=t.textFormatter??(t.caseSensitive?R7:F7)}evaluateNullValue(e){return e?["notEqual","notContains","blank"].indexOf(e)>=0:!1}evaluateNonNullValue(e,t,s,i){const n=e.map(h=>this.formatter(h))||[],o=this.formatter(t),{api:r,colDef:a,column:l,context:c,filterParams:{textFormatter:d}}=this.params;if(s.type==="blank")return rc(t);if(s.type==="notBlank")return!rc(t);const u={api:r,colDef:a,column:l,context:c,node:i.node,data:i.data,filterOption:s.type,value:o,textFormatter:d};return n.some(h=>this.matcher({...u,filterText:h}))}processModelToApply(e){if(e&&this.params.filterParams.trimInput){const t=s=>{const i={...s},{filter:n,filterTo:o}=s;return n&&(i.filter=gh(n)??null),o&&(i.filterTo=gh(o)??null),i};return BC(e)?{...e,conditions:e.conditions.map(t)}:t(e)}return e}},D7=class extends Gp{constructor(){super(...arguments),this.FilterModelFormatterClass=q1,this.filterType="text",this.defaultOptions=Zp}createFloatingFilterInputService(){return this.createManagedBean(new Bp)}};function P7(e){return!!e.quickFilter?.isFilterPresent()}function T7(e){return e.quickFilter?.getText()}function k7(e){e.quickFilter?.resetCache()}var I7=class extends j{constructor(){super(...arguments),this.beanName="quickFilter",this.quickFilter=null,this.quickFilterParts=null}postConstruct(){const e=this.resetCache.bind(this),t=this.gos;this.addManagedEventListeners({columnPivotModeChanged:e,newColumnsLoaded:e,columnRowGroupChanged:e,columnVisible:()=>{t.get("includeHiddenColumnsInQuickFilter")||this.resetCache()}}),this.addManagedPropertyListener("quickFilterText",s=>this.setFilter(s.currentValue)),this.addManagedPropertyListeners(["includeHiddenColumnsInQuickFilter","applyQuickFilterBeforePivotOrAgg"],()=>this.onColumnConfigChanged()),this.quickFilter=this.parseFilter(t.get("quickFilterText")),this.parser=t.get("quickFilterParser"),this.matcher=t.get("quickFilterMatcher"),this.setFilterParts(),this.addManagedPropertyListeners(["quickFilterMatcher","quickFilterParser"],()=>this.setParserAndMatcher())}refreshCols(){const{autoColSvc:e,colModel:t,gos:s,pivotResultCols:i}=this.beans,n=t.isPivotMode(),o=e?.getColumns(),r=t.getColDefCols();let a=(n&&!s.get("applyQuickFilterBeforePivotOrAgg")?i?.getPivotResultCols()?.list:r)??[];o&&(a=a.concat(o)),this.colsToUse=s.get("includeHiddenColumnsInQuickFilter")?a:a.filter(l=>l.isVisible()||l.isRowGroupActive())}isFilterPresent(){return this.quickFilter!==null}doesRowPass(e){const t=this.gos.get("cacheQuickFilter");return this.matcher?this.doesRowPassMatcher(t,e):this.quickFilterParts.every(s=>t?this.doesRowPassCache(e,s):this.doesRowPassNoCache(e,s))}resetCache(){this.beans.rowModel.forEachNode(e=>e.quickFilterAggregateText=null)}getText(){return this.gos.get("quickFilterText")}setFilterParts(){const{quickFilter:e,parser:t}=this;e?this.quickFilterParts=t?t(e):e.split(" "):this.quickFilterParts=null}parseFilter(e){return se(e)?e.toUpperCase():null}setFilter(e){if(e!=null&&typeof e!="string"){q(70,{newFilter:e});return}const t=this.parseFilter(e);this.quickFilter!==t&&(this.quickFilter=t,this.setFilterParts(),this.dispatchLocalEvent({type:"quickFilterChanged"}))}setParserAndMatcher(){const e=this.gos.get("quickFilterParser"),t=this.gos.get("quickFilterMatcher"),s=e!==this.parser||t!==this.matcher;this.parser=e,this.matcher=t,s&&(this.setFilterParts(),this.dispatchLocalEvent({type:"quickFilterChanged"}))}onColumnConfigChanged(){this.refreshCols(),this.resetCache(),this.isFilterPresent()&&this.dispatchLocalEvent({type:"quickFilterChanged"})}doesRowPassNoCache(e,t){return this.colsToUse.some(s=>{const i=this.getTextForColumn(s,e);return se(i)&&i.includes(t)})}doesRowPassCache(e,t){return this.checkGenerateAggText(e),e.quickFilterAggregateText.includes(t)}doesRowPassMatcher(e,t){let s;e?(this.checkGenerateAggText(t),s=t.quickFilterAggregateText):s=this.getAggText(t);const{quickFilterParts:i,matcher:n}=this;return n(i,s)}checkGenerateAggText(e){e.quickFilterAggregateText||(e.quickFilterAggregateText=this.getAggText(e))}getTextForColumn(e,t){let s=this.beans.filterValueSvc.getValue(e,t);const i=e.getColDef();if(i.getQuickFilterText){const n=Se(this.gos,{value:s,node:t,data:t.data,column:e,colDef:i});s=i.getQuickFilterText(n)}return se(s)?s.toString().toUpperCase():null}getAggText(e){const t=[];for(const s of this.colsToUse){const i=this.getTextForColumn(s,e);se(i)&&t.push(i)}return t.join(`
|
|
66
66
|
`)}},M7={moduleName:"ClientSideRowModelFilter",version:J,rowModels:["clientSide"],beans:[FI]},Xp={moduleName:"FilterCore",version:J,beans:[xA],apiFunctions:{isAnyFilterPresent:wA,onFilterChanged:bA},css:[Q8],dependsOn:[M7]},K1={moduleName:"FilterValue",version:J,beans:[TA]},pa={moduleName:"ColumnFilter",version:J,beans:[CA,PA],dynamicBeans:{headerFilterCellCtrl:q8},icons:{filter:"filter",filterActive:"filter"},apiFunctions:{isColumnFilterPresent:J8,getColumnFilterInstance:eA,destroyFilter:tA,setFilterModel:sA,getFilterModel:iA,getColumnFilterModel:nA,setColumnFilterModel:oA,showColumnFilter:rA,hideColumnFilter:aA,getColumnFilterHandler:lA,doFilterAction:cA},dependsOn:[Xp,Ac,K1,X8]},A7={moduleName:"CustomFilter",version:J,userComponents:{agReadOnlyFloatingFilter:IA},dependsOn:[pa]},L7={moduleName:"TextFilter",version:J,dependsOn:[pa],userComponents:{agTextColumnFilter:{classImp:y7,params:{useForm:!0}},agTextColumnFloatingFilter:D7},dynamicBeans:{agTextColumnFilterHandler:E7}},O7={moduleName:"NumberFilter",version:J,dependsOn:[pa],userComponents:{agNumberColumnFilter:{classImp:v7,params:{useForm:!0}},agNumberColumnFloatingFilter:x7},dynamicBeans:{agNumberColumnFilterHandler:w7}},N7={moduleName:"BigIntFilter",version:J,dependsOn:[pa],userComponents:{agBigIntColumnFilter:{classImp:HA,params:{useForm:!0}},agBigIntColumnFloatingFilter:jA},dynamicBeans:{agBigIntColumnFilterHandler:VA}},H7={moduleName:"DateFilter",version:J,dependsOn:[pa],userComponents:{agDateColumnFilter:{classImp:WA,params:{useForm:!0}},agDateInput:m7,agDateColumnFloatingFilter:g7},dynamicBeans:{agDateColumnFilterHandler:$A}},B7={moduleName:"QuickFilterCore",version:J,rowModels:["clientSide"],beans:[I7],dependsOn:[Xp,K1]},G7={moduleName:"QuickFilter",version:J,apiFunctions:{isQuickFilterPresent:P7,getQuickFilter:T7,resetQuickFilter:k7},dependsOn:[B7]},V7={moduleName:"ExternalFilter",version:J,dependsOn:[Xp]},z7=class extends j{constructor(e,t,s){super(),this.id=e,this.parentCache=t,this.params=s,this.state="needsLoading",this.version=0,this.startRow=e*s.blockSize,this.endRow=this.startRow+s.blockSize}load(){this.state="loading",this.loadFromDatasource()}setStateWaitingToLoad(){this.version++,this.state="needsLoading"}pageLoadFailed(e){this.isRequestMostRecentAndLive(e)&&(this.state="failed"),this.dispatchLocalEvent({type:"loadComplete"})}pageLoaded(e,t,s){this.successCommon(e,{rowData:t,rowCount:s})}isRequestMostRecentAndLive(e){const t=e===this.version,s=this.isAlive();return t&&s}successCommon(e,t){this.dispatchLocalEvent({type:"loadComplete"}),this.isRequestMostRecentAndLive(e)&&(this.state="loaded",this.processServerResult(t))}postConstruct(){this.rowNodes=[];const{params:{blockSize:e,rowHeight:t},startRow:s,beans:i,rowNodes:n}=this;for(let o=0;o<e;o++){const r=s+o,a=new Li(i);a.setRowHeight(t),a.uiLevel=0,a.setRowIndex(r),a.setRowTop(t*r),n.push(a)}}getBlockStateJson(){const{id:e,startRow:t,endRow:s,state:i}=this;return{id:""+e,state:{blockNumber:e,startRow:t,endRow:s,pageStatus:i}}}setDataAndId(e,t,s){se(t)?e.setDataAndId(t,s.toString()):e.setDataAndId(void 0,void 0)}loadFromDatasource(){const e=this.createLoadParams();if(rt(this.params.datasource.getRows)){q(90);return}window.setTimeout(()=>{this.params.datasource.getRows(e)},0)}createLoadParams(){const{startRow:e,endRow:t,version:s,params:{sortModel:i,filterModel:n},gos:o}=this;return Se(o,{startRow:e,endRow:t,successCallback:this.pageLoaded.bind(this,s),failCallback:this.pageLoadFailed.bind(this,s),sortModel:i,filterModel:n})}forEachNode(e,t,s){this.rowNodes.forEach((i,n)=>{this.startRow+n<s&&e(i,t.value++)})}getRow(e,t=!1){t||(this.lastAccessed=this.params.lastAccessedSequence.value++);const s=e-this.startRow;return this.rowNodes[s]}processServerResult(e){const{rowNodes:t,beans:s}=this;t.forEach((n,o)=>{const r=e.rowData?e.rowData[o]:void 0;!n.id&&n.alreadyRendered&&r&&(t[o]=new Li(s),t[o].setRowIndex(n.rowIndex),t[o].setRowTop(n.rowTop),t[o].setRowHeight(n.rowHeight),n._destroy(!0)),this.setDataAndId(t[o],r,this.startRow+o)});const i=e.rowCount!=null&&e.rowCount>=0?e.rowCount:void 0;this.parentCache.pageLoaded(this,i)}destroy(){const e=this.rowNodes;for(let t=0,s=e.length;t<s;t++)e[t]._destroy(!1);e.length=0,super.destroy()}},j7=2,W7=class extends j{constructor(e){super(),this.params=e,this.lastRowIndexKnown=!1,this.blocks={},this.blockCount=0,this.rowCount=e.initialRowCount}getRow(e,t=!1){const s=Math.floor(e/this.params.blockSize);let i=this.blocks[s];if(!i){if(t)return;i=this.createBlock(s)}return i.getRow(e)}createBlock(e){const t=this.params,s=this.createBean(new z7(e,this,t));return this.blocks[s.id]=s,this.blockCount++,this.purgeBlocksIfNeeded(s),t.rowNodeBlockLoader.addBlock(s),s}refreshCache(){if(this.blockCount==0){this.purgeCache();return}for(const t of this.getBlocksInOrder())t.setStateWaitingToLoad();this.params.rowNodeBlockLoader.checkBlockToLoad()}destroy(){for(const e of this.getBlocksInOrder())this.destroyBlock(e);super.destroy()}getRowCount(){return this.rowCount}isLastRowIndexKnown(){return this.lastRowIndexKnown}pageLoaded(e,t){this.isAlive()&&(Sn(this.gos,`InfiniteCache - onPageLoaded: page = ${e.id}, lastRow = ${t}`),this.checkRowCount(e,t),this.onCacheUpdated())}purgeBlocksIfNeeded(e){const t=this.getBlocksInOrder().filter(r=>r!=e),s=(r,a)=>a.lastAccessed-r.lastAccessed;t.sort(s);const i=this.params.maxBlocksInCache>0,n=i?this.params.maxBlocksInCache-1:null,o=j7-1;t.forEach((r,a)=>{const l=r.state==="needsLoading"&&a>=o,c=i?a>=n:!1;if(l||c){if(this.isBlockCurrentlyDisplayed(r)||this.isBlockFocused(r))return;this.removeBlockFromCache(r)}})}isBlockFocused(e){const t=this.beans.focusSvc.getFocusCellToUseAfterRefresh();if(!t||t.rowPinned!=null)return!1;const{startRow:s,endRow:i}=e;return t.rowIndex>=s&&t.rowIndex<i}isBlockCurrentlyDisplayed(e){const{startRow:t,endRow:s}=e;return this.beans.rowRenderer.isRangeInRenderedViewport(t,s-1)}removeBlockFromCache(e){e&&this.destroyBlock(e)}checkRowCount(e,t){if(typeof t=="number"&&t>=0)this.rowCount=t,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){const{blockSize:s,overflowSize:i}=this.params,o=(e.id+1)*s+i;this.rowCount<o&&(this.rowCount=o)}}setRowCount(e,t){this.rowCount=e,se(t)&&(this.lastRowIndexKnown=t),this.lastRowIndexKnown||this.rowCount%this.params.blockSize===0&&this.rowCount++,this.onCacheUpdated()}forEachNodeDeep(e){const t={value:0};for(const s of this.getBlocksInOrder())s.forEachNode(e,t,this.rowCount)}getBlocksInOrder(){const e=(s,i)=>s.id-i.id;return Object.values(this.blocks).sort(e)}destroyBlock(e){delete this.blocks[e.id],this.destroyBean(e),this.blockCount--,this.params.rowNodeBlockLoader.removeBlock(e)}onCacheUpdated(){this.isAlive()&&(this.destroyAllBlocksPastVirtualRowCount(),this.eventSvc.dispatchEvent({type:"storeUpdated"}))}destroyAllBlocksPastVirtualRowCount(){const e=[];for(const t of this.getBlocksInOrder())t.id*this.params.blockSize>=this.rowCount&&e.push(t);if(e.length>0)for(const t of e)this.destroyBlock(t)}purgeCache(){for(const e of this.getBlocksInOrder())this.removeBlockFromCache(e);this.lastRowIndexKnown=!1,this.rowCount===0&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()}getRowNodesInRange(e,t){const s=[];let i=-1,n=!1;const o={value:0};let r=!1;for(const l of this.getBlocksInOrder())if(!r){if(n&&i+1!==l.id){r=!0;continue}i=l.id,l.forEachNode(c=>{const d=c===e||c===t;(n||d)&&s.push(c),d&&(n=!n)},o,this.rowCount)}return r||n?[]:s}},_7=class extends j{constructor(){super(...arguments),this.beanName="rowModel",this.rootNode=null,this.hierarchical=!1}getRowBounds(e){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*e}}ensureRowHeightsValid(){return!1}postConstruct(){if(this.gos.get("rowModelType")!=="infinite")return;const e=this.beans,t=new Li(e);this.rootNode=t,t.level=-1,this.rowHeight=pn(e),this.addEventListeners(),this.addDestroyFunc(()=>this.destroyCache())}start(){this.setDatasource(this.gos.get("datasource"))}destroy(){this.destroyDatasource(),super.destroy(),this.rootNode=null}destroyDatasource(){this.datasource&&(this.destroyBean(this.datasource),this.beans.rowRenderer.datasourceChanged(),this.datasource=null)}addEventListeners(){this.addManagedEventListeners({filterChanged:this.reset.bind(this),sortChanged:this.reset.bind(this),newColumnsLoaded:this.onColumnEverything.bind(this),storeUpdated:this.dispatchModelUpdatedEvent.bind(this)}),this.addManagedPropertyListener("datasource",()=>this.setDatasource(this.gos.get("datasource"))),this.addManagedPropertyListener("cacheBlockSize",()=>this.resetCache()),this.addManagedPropertyListener("rowHeight",()=>{this.rowHeight=pn(this.beans),this.cacheParams.rowHeight=this.rowHeight,this.updateRowHeights()})}onColumnEverything(){let e;this.cacheParams?e=!Wr(this.cacheParams.sortModel,this.beans.sortSvc?.getSortModel()??[]):e=!0,e&&this.reset()}getType(){return"infinite"}setDatasource(e){this.destroyDatasource(),this.datasource=e,e&&this.reset()}isEmpty(){return!this.infiniteCache}isRowsToRender(){return!!this.infiniteCache}getOverlayType(){return this.infiniteCache?.getRowCount()===0?this.beans.filterManager?.isAnyFilterPresent()?"noMatchingRows":"noRows":null}getNodesInRangeForSelection(e,t){return this.infiniteCache?.getRowNodesInRange(e,t)??[]}reset(){if(!this.datasource)return;ko(this.gos)!=null||this.beans.selectionSvc?.reset("rowDataChanged"),this.resetCache()}dispatchModelUpdatedEvent(){this.eventSvc.dispatchEvent({type:"modelUpdated",newPage:!1,newPageSize:!1,newData:!1,keepRenderedRows:!0,animate:!1})}resetCache(){this.destroyCache();const e=this.beans,{filterManager:t,sortSvc:s,rowNodeBlockLoader:i,eventSvc:n,gos:o}=e;this.cacheParams={datasource:this.datasource,filterModel:t?.getFilterModel()??{},sortModel:s?.getSortModel()??[],rowNodeBlockLoader:i,initialRowCount:o.get("infiniteInitialRowCount"),maxBlocksInCache:o.get("maxBlocksInCache"),rowHeight:pn(e),overflowSize:o.get("cacheOverflowSize"),blockSize:o.get("cacheBlockSize"),lastAccessedSequence:{value:0}},this.infiniteCache=this.createBean(new W7(this.cacheParams)),n.dispatchEventOnce({type:"rowCountReady"}),this.dispatchModelUpdatedEvent()}updateRowHeights(){this.forEachNode(e=>{e.setRowHeight(this.rowHeight),e.setRowTop(this.rowHeight*e.rowIndex)}),this.dispatchModelUpdatedEvent()}destroyCache(){this.infiniteCache=this.destroyBean(this.infiniteCache)}getRow(e){const t=this.infiniteCache;if(t&&!(e>=t.getRowCount()))return t.getRow(e)}getRowNode(e){let t;return this.forEachNode(s=>{s.id===e&&(t=s)}),t}forEachNode(e){this.infiniteCache?.forEachNodeDeep(e)}getTopLevelRowCount(){return this.getRowCount()}getTopLevelRowDisplayedIndex(e){return e}getRowIndexAtPixel(e){if(this.rowHeight!==0){const t=Math.floor(e/this.rowHeight),s=this.getRowCount()-1;return t>s?s:t}return 0}getRowCount(){return this.infiniteCache?this.infiniteCache.getRowCount():0}isRowPresent(e){return!!this.getRowNode(e.id)}refreshCache(){this.infiniteCache?.refreshCache()}purgeCache(){this.infiniteCache?.purgeCache()}isLastRowIndexKnown(){return this.infiniteCache?.isLastRowIndexKnown()??!1}setRowCount(e,t){this.infiniteCache?.setRowCount(e,t)}resetRowHeights(){}onRowHeightChanged(){}};function U7(e){Tc(e)?.refreshCache()}function $7(e){Tc(e)?.purgeCache()}function q7(e){return Tc(e)?.getRowCount()}var K7=class extends j{constructor(){super(...arguments),this.beanName="rowNodeBlockLoader",this.activeBlockLoadsCount=0,this.blocks=[],this.active=!0}postConstruct(){this.maxConcurrentRequests=YR(this.gos);const e=this.gos.get("blockLoadDebounceMillis");e&&e>0&&(this.checkBlockToLoadDebounce=gt(this,this.performCheckBlocksToLoad.bind(this),e))}addBlock(e){this.blocks.push(e),e.addEventListener("loadComplete",this.loadComplete.bind(this)),this.checkBlockToLoad()}removeBlock(e){Gs(this.blocks,e)}destroy(){super.destroy(),this.active=!1}loadComplete(){this.activeBlockLoadsCount--,this.checkBlockToLoad()}checkBlockToLoad(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()}performCheckBlocksToLoad(){if(!this.active)return;if(this.printCacheStatus(),this.maxConcurrentRequests!=null&&this.activeBlockLoadsCount>=this.maxConcurrentRequests){Sn(this.gos,"RowNodeBlockLoader - checkBlockToLoad: max loads exceeded");return}const e=this.maxConcurrentRequests!=null?this.maxConcurrentRequests-this.activeBlockLoadsCount:1,t=this.blocks.filter(s=>s.state==="needsLoading").slice(0,e);this.activeBlockLoadsCount+=t.length;for(const s of t)s.load();this.printCacheStatus()}getBlockState(){const e={};return this.blocks.forEach(t=>{const{id:s,state:i}=t.getBlockStateJson();e[s]=i}),e}printCacheStatus(){Sn(this.gos,`RowNodeBlockLoader - printCacheStatus: activePageLoadsCount = ${this.activeBlockLoadsCount}, blocks = ${JSON.stringify(this.getBlockState())}`)}},Y7={moduleName:"InfiniteRowModelCore",version:J,rowModels:["infinite"],beans:[_7,K7]},Z7={moduleName:"InfiniteRowModel",version:J,apiFunctions:{refreshInfiniteCache:U7,purgeInfiniteCache:$7,getInfiniteRowCount:q7},dependsOn:[Y7,CI]},X7=class extends j{constructor(){super(...arguments),this.beanName="apiEventSvc",this.syncListeners=new Map,this.asyncListeners=new Map,this.syncGlobalListeners=new Set,this.globalListenerPairs=new Map}postConstruct(){this.wrapSvc=this.beans.frameworkOverrides.createGlobalEventListenerWrapper?.()}addListener(e,t){const s=this.wrapSvc?.wrap(e,t)??t,i=!Dl.has(e),n=i?this.asyncListeners:this.syncListeners;n.has(e)||n.set(e,new Set),n.get(e).add(s),this.eventSvc.addListener(e,s,i)}removeListener(e,t){const s=this.wrapSvc?.unwrap(e,t)??t,n=!!this.asyncListeners.get(e)?.delete(s);n||this.syncListeners.get(e)?.delete(s),this.eventSvc.removeListener(e,s,n)}addGlobalListener(e){const t=this.wrapSvc?.wrapGlobal(e)??e,s=(o,r)=>{Dl.has(o)&&t(o,r)},i=(o,r)=>{Dl.has(o)||t(o,r)};this.globalListenerPairs.set(e,{syncListener:s,asyncListener:i});const n=this.eventSvc;n.addGlobalListener(s,!1),n.addGlobalListener(i,!0)}removeGlobalListener(e){const{eventSvc:t,wrapSvc:s,globalListenerPairs:i}=this,n=s?.unwrapGlobal(e)??e;if(i.has(n)){const{syncListener:r,asyncListener:a}=i.get(n);t.removeGlobalListener(r,!1),t.removeGlobalListener(a,!0),i.delete(e)}else this.syncGlobalListeners.delete(n),t.removeGlobalListener(n,!1)}destroyEventListeners(e,t){e.forEach((s,i)=>{s.forEach(n=>this.eventSvc.removeListener(i,n,t)),s.clear()}),e.clear()}destroyGlobalListeners(e,t){for(const s of e)this.eventSvc.removeGlobalListener(s,t);e.clear()}destroy(){super.destroy(),this.destroyEventListeners(this.syncListeners,!1),this.destroyEventListeners(this.asyncListeners,!0),this.destroyGlobalListeners(this.syncGlobalListeners,!1);const{globalListenerPairs:e,eventSvc:t}=this;e.forEach(({syncListener:s,asyncListener:i})=>{t.removeGlobalListener(s,!1),t.removeGlobalListener(i,!0)}),e.clear()}};function Q7(e,t,s){e.apiEventSvc?.addListener(t,s)}function J7(e,t,s){e.apiEventSvc?.removeListener(t,s)}function e9(e,t){e.apiEventSvc?.addGlobalListener(t)}function t9(e,t){e.apiEventSvc?.removeGlobalListener(t)}var s9={moduleName:"EventApi",version:J,apiFunctions:{addEventListener:Q7,addGlobalListener:e9,removeEventListener:J7,removeGlobalListener:t9},beans:[X7]},i9=class extends j{constructor(){super(...arguments),this.beanName="localeSvc"}getLocaleTextFunc(){const e=this.gos,t=e.getCallback("getLocaleText");return t?wR(t):bR(e.get("localeText"))}},n9={moduleName:"Locale",version:J,beans:[i9]};function o9(e){return e.stateSvc?.getState()??{}}function r9(e,t,s){return e.stateSvc?.setState(t,s)}function Mm(e){return e={...e},e.version||(e.version="32.1.0"),e.version==="32.1.0"&&(e=a9(e)),e.version=J,e}function a9(e){return e.cellSelection=l9(e,"rangeSelection"),e}function l9(e,t){if(e&&typeof e=="object")return e[t]}var c9=class extends j{constructor(){super(...arguments),this.beanName="stateSvc",this.updateRowGroupExpansionStateTimer=0,this.suppressEvents=!0,this.queuedUpdateSources=new Set,this.dispatchStateUpdateEventDebounced=gt(this,()=>this.dispatchQueuedStateUpdateEvents(),0),this.onRowGroupOpenedDebounced=gt(this,()=>this.updateGroupExpansionState(),0),this.onRowSelectedDebounced=gt(this,()=>{this.staleStateKeys.delete("rowSelection"),this.updateCachedState("rowSelection",this.getRowSelectionState())},0),this.staleStateKeys=new Set}postConstruct(){const{gos:e,ctrlsSvc:t,colDelayRenderSvc:s}=this.beans;this.isClientSideRowModel=at(e);const i=Mm(e.get("initialState")??{}),n=i.partialColumnState;delete i.partialColumnState,this.cachedState=i;const o=this.suppressEventsAndDispatchInitEvent.bind(this);t.whenReady(this,()=>o(()=>this.setupStateOnGridReady(i))),(i.columnOrder||i.columnVisibility||i.columnSizing||i.columnPinning||i.columnGroup)&&s?.hideColumns("columnState");const[r,a,l]=this.addManagedEventListeners({newColumnsLoaded:({source:c})=>{c==="gridInitializing"&&(r(),o(()=>{this.setupStateOnColumnsInitialised(i,!!n),s?.revealColumns("columnState")}))},rowCountReady:()=>{a?.(),o(()=>this.setupStateOnRowCountReady(i))},firstDataRendered:()=>{l?.(),o(()=>this.setupStateOnFirstDataRendered(i))}})}destroy(){super.destroy(),clearTimeout(this.updateRowGroupExpansionStateTimer),this.queuedUpdateSources.clear()}getState(){return this.staleStateKeys.size&&this.refreshStaleState(),this.cachedState}setState(e,t){const s=Mm(e);delete s.partialColumnState,this.cachedState=s,this.startSuppressEvents();const i="api",n=t?new Set(t):void 0;this.setGridReadyState(s,i,n),this.setColumnsInitialisedState(s,i,!!n,n),this.setRowCountState(s,i,n),setTimeout(()=>{this.isAlive()&&this.setFirstDataRenderedState(s,i,n),this.stopSuppressEvents(i)})}setGridReadyState(e,t,s){t==="api"&&!s?.has("sideBar")&&this.beans.sideBar?.comp?.setState(e.sideBar),this.updateCachedState("sideBar",this.getSideBarState())}setupStateOnGridReady(e){this.setGridReadyState(e,"gridInitializing");const t=()=>this.updateCachedState("sideBar",this.getSideBarState());this.addManagedEventListeners({toolPanelVisibleChanged:t,sideBarUpdated:t})}updateColumnAndGroupState(){this.updateColumnState(["aggregation","columnOrder","columnPinning","columnSizing","columnVisibility","pivot","rowGroup","sort"]),this.updateCachedState("columnGroup",this.getColumnGroupState())}setColumnsInitialisedState(e,t,s,i){this.setColumnState(e,t,s,i),this.setColumnGroupState(e,t,i),this.updateColumnAndGroupState()}setupStateOnColumnsInitialised(e,t){this.setColumnsInitialisedState(e,"gridInitializing",t);const s=i=>()=>this.updateColumnState([i]);this.addManagedEventListeners({columnValueChanged:s("aggregation"),columnMoved:s("columnOrder"),columnPinned:s("columnPinning"),columnResized:s("columnSizing"),columnVisible:s("columnVisibility"),columnPivotChanged:s("pivot"),columnPivotModeChanged:s("pivot"),columnRowGroupChanged:s("rowGroup"),sortChanged:s("sort"),newColumnsLoaded:({source:i})=>{this.updateColumnAndGroupState(),i!=="gridInitializing"&&this.isClientSideRowModel&&this.onRowGroupOpenedDebounced()},columnGroupOpened:()=>this.updateCachedState("columnGroup",this.getColumnGroupState())})}setRowCountState(e,t,s){const{filter:i,rowGroupExpansion:n,ssrmRowGroupExpansion:o,rowSelection:r,pagination:a,rowPinning:l}=e,c=(u,h)=>!s?.has(u)&&(h||t==="api");c("filter",i)&&this.setFilterState(i),(c("rowGroupExpansion",n)||c("ssrmRowGroupExpansion",o))&&this.setRowGroupExpansionState(o,n,t),c("rowSelection",r)&&this.setRowSelectionState(r,t),c("pagination",a)&&this.setPaginationState(a,t),c("rowPinning",l)&&this.setRowPinningState(l);const d=this.updateCachedState.bind(this);d("filter",this.getFilterState()),this.updateGroupExpansionState(),d("rowSelection",this.getRowSelectionState()),d("pagination",this.getPaginationState())}setupStateOnRowCountReady(e){this.setRowCountState(e,"gridInitializing");const t=this.updateCachedState.bind(this),s=()=>{this.updateRowGroupExpansionStateTimer=0,this.updateGroupExpansionState()},i=()=>t("filter",this.getFilterState()),{gos:n,colFilter:o,selectableFilter:r}=this.beans;this.addManagedEventListeners({filterChanged:i,rowExpansionStateChanged:this.onRowGroupOpenedDebounced,expandOrCollapseAll:s,columnRowGroupChanged:s,rowDataUpdated:()=>{(n.get("groupDefaultExpanded")!==0||n.get("isGroupOpenByDefault"))&&(this.updateRowGroupExpansionStateTimer||(this.updateRowGroupExpansionStateTimer=setTimeout(s)))},selectionChanged:()=>{this.staleStateKeys.add("rowSelection"),this.onRowSelectedDebounced()},paginationChanged:a=>{(a.newPage||a.newPageSize)&&t("pagination",this.getPaginationState())},pinnedRowsChanged:()=>t("rowPinning",this.getRowPinningState())}),o&&this.addManagedListeners(o,{filterStateChanged:i}),r&&this.addManagedListeners(r,{selectedFilterChanged:i})}setFirstDataRenderedState(e,t,s){const{scroll:i,cellSelection:n,focusedCell:o,columnOrder:r}=e,a=(d,u)=>!s?.has(d)&&(u||t==="api");a("focusedCell",o)&&this.setFocusedCellState(o),a("cellSelection",n)&&this.setCellSelectionState(n),a("scroll",i)&&this.setScrollState(i),this.setColumnPivotState(!!r?.orderedColIds,t);const l=this.updateCachedState.bind(this);l("sideBar",this.getSideBarState()),l("focusedCell",this.getFocusedCellState());const c=this.getRangeSelectionState();l("rangeSelection",c),l("cellSelection",c),l("scroll",this.getScrollState())}setupStateOnFirstDataRendered(e){this.setFirstDataRenderedState(e,"gridInitializing");const t=this.updateCachedState.bind(this),s=()=>t("focusedCell",this.getFocusedCellState());this.addManagedEventListeners({cellFocused:s,cellFocusCleared:s,cellSelectionChanged:i=>{if(i.finished){const n=this.getRangeSelectionState();t("rangeSelection",n),t("cellSelection",n)}},bodyScrollEnd:()=>t("scroll",this.getScrollState())})}getColumnState(){const e=this.beans;return $k(ec(e),e.colModel.isPivotMode())}setColumnState(e,t,s,i){const{sort:n,rowGroup:o,aggregation:r,pivot:a,columnPinning:l,columnVisibility:c,columnSizing:d,columnOrder:u}=e;let h=!1;const f=(P,k)=>{const I=!i?.has(P)&&!!(k||t==="api");return h||(h=I),I},m={},v=P=>{let k=m[P];return k||(k={colId:P},m[P]=k,k)},C={},w=f("sort",n);w&&n?.sortModel.forEach(({colId:P,sort:k,type:I},H)=>{const M=v(P);M.sort=k,M.sortIndex=H,M.sortType=I}),(w||!s)&&(C.sort=null,C.sortIndex=null);const b=f("rowGroup",o);b&&o?.groupColIds.forEach((P,k)=>{const I=v(P);I.rowGroup=!0,I.rowGroupIndex=k}),(b||!s)&&(C.rowGroup=null,C.rowGroupIndex=null);const x=f("aggregation",r);x&&r?.aggregationModel.forEach(({colId:P,aggFunc:k})=>{v(P).aggFunc=k}),(x||!s)&&(C.aggFunc=null);const y=f("pivot",a);y&&(a?.pivotColIds.forEach((P,k)=>{const I=v(P);I.pivot=!0,I.pivotIndex=k}),this.gos.updateGridOptions({options:{pivotMode:!!a?.pivotMode},source:t})),(y||!s)&&(C.pivot=null,C.pivotIndex=null);const S=f("columnPinning",l);if(S){for(const P of l?.leftColIds??[])v(P).pinned="left";for(const P of l?.rightColIds??[])v(P).pinned="right"}(S||!s)&&(C.pinned=null);const F=f("columnVisibility",c);if(F)for(const P of c?.hiddenColIds??[])v(P).hide=!0;(F||!s)&&(C.hide=null);const R=f("columnSizing",d);if(R)for(const{colId:P,flex:k,width:I}of d?.columnSizingModel??[]){const H=v(P);H.flex=k??null,H.width=I}(R||!s)&&(C.flex=null);const E=u?.orderedColIds,D=!!E?.length&&!i?.has("columnOrder"),T=D?E.map(P=>v(P)):Object.values(m);(T.length||h)&&(this.columnStates=T,Ss(this.beans,{state:T,applyOrder:D,defaultState:C},t))}setColumnPivotState(e,t){const s=this.columnStates;this.columnStates=void 0;const i=this.columnGroupStates;this.columnGroupStates=void 0;const n=this.beans,{pivotResultCols:o,colGroupSvc:r}=n;if(o?.isPivotResultColsPresent()){if(s){const a=[];for(const l of s)o.getPivotResultCol(l.colId)&&a.push(l);Ss(n,{state:a,applyOrder:e},t)}i&&r?.setColumnGroupState(i,t)}}getColumnGroupState(){const e=this.beans.colGroupSvc;if(!e)return;const t=e.getColumnGroupState();return qk(t)}setColumnGroupState(e,t,s){const i=this.beans.colGroupSvc;if(!i||s?.has("columnGroup")||t!=="api"&&!Object.prototype.hasOwnProperty.call(e,"columnGroup"))return;const n=new Set(e.columnGroup?.openColumnGroupIds),r=i.getColumnGroupState().map(({groupId:a})=>{const l=n.has(a);return l&&n.delete(a),{groupId:a,open:l}});for(const a of n)r.push({groupId:a,open:!0});r.length&&(this.columnGroupStates=r),i.setColumnGroupState(r,t)}getFilterState(){const{filterManager:e,selectableFilter:t}=this.beans;let s=e?.getFilterModel();s&&Object.keys(s).length===0&&(s=void 0);const i=e?.getFilterState(),n=e?.getAdvFilterModel()??void 0,o=t?.getState();return s||n||i||o?{filterModel:s,columnFilterState:i,advancedFilterModel:n,selectableFilters:o}:void 0}setFilterState(e){const{filterManager:t,selectableFilter:s}=this.beans,{filterModel:i,columnFilterState:n,advancedFilterModel:o,selectableFilters:r}=e??{filterModel:null,columnFilterState:null,advancedFilterModel:null};r!==void 0&&s?.setState(r??{}),(i!==void 0||n!==void 0)&&t?.setFilterState(i??null,n??null,"columnFilter"),o!==void 0&&t?.setAdvFilterModel(o??null,"advancedFilter")}getRangeSelectionState(){const e=this.beans.rangeSvc?.getCellRanges().map(t=>{const{id:s,type:i,startRow:n,endRow:o,columns:r,startColumn:a}=t;return{id:s,type:i,startRow:n,endRow:o,colIds:r.map(l=>l.getColId()),startColId:a.getColId()}});return e?.length?{cellRanges:e}:void 0}setCellSelectionState(e){const{gos:t,rangeSvc:s,colModel:i,visibleCols:n}=this.beans;if(!Mi(t)||!s)return;const o=[];for(const r of e?.cellRanges??[]){const a=[];for(const c of r.colIds){const d=i.getCol(c);d&&a.push(d)}if(!a.length)continue;let l=i.getCol(r.startColId);if(!l){const c=n.allCols,d=new Set(a);l=c.find(u=>d.has(u))}o.push({...r,columns:a,startColumn:l})}s.setCellRanges(o)}getScrollState(){if(!this.isClientSideRowModel)return;const e=this.beans.ctrlsSvc.getScrollFeature(),{left:t}=e?.getHScrollPosition()??{left:0},{top:s}=e?.getVScrollPosition()??{top:0};return s||t?{top:s,left:t}:void 0}setScrollState(e){if(!this.isClientSideRowModel)return;const{top:t,left:s}=e??{top:0,left:0},{frameworkOverrides:i,rowRenderer:n,animationFrameSvc:o,ctrlsSvc:r}=this.beans;i.wrapIncoming(()=>{r.get("center").setCenterViewportScrollLeft(s),r.getScrollFeature()?.setVerticalScrollPosition(t),n.redraw({afterScroll:!0}),o?.flushAllFrames()})}getSideBarState(){return this.beans.sideBar?.comp?.getState()}getFocusedCellState(){if(!this.isClientSideRowModel)return;const e=this.beans.focusSvc.getFocusedCell();if(e){const{column:t,rowIndex:s,rowPinned:i}=e;return{colId:t.getColId(),rowIndex:s,rowPinned:i}}}setFocusedCellState(e){if(!this.isClientSideRowModel)return;const{focusSvc:t,colModel:s}=this.beans;if(!e){t.clearFocusedCell();return}const{colId:i,rowIndex:n,rowPinned:o}=e;t.setFocusedCell({column:s.getCol(i),rowIndex:n,rowPinned:o,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}getPaginationState(){const{pagination:e,gos:t}=this.beans;if(!e)return;const s=e.getCurrentPage(),i=t.get("paginationAutoPageSize")?void 0:e.getPageSize();if(!(!s&&!i))return{page:s,pageSize:i}}setPaginationState(e,t){const{pagination:s,gos:i}=this.beans;if(!s)return;const{pageSize:n,page:o}=e??{page:0,pageSize:i.get("paginationPageSize")},r=t==="gridInitializing";n&&!i.get("paginationAutoPageSize")&&s.setPageSize(n,r?"initialState":"pageSizeSelector"),typeof o=="number"&&(r?s.setPage(o):s.goToPage(o))}getRowSelectionState(){const e=this.beans.selectionSvc;if(!e)return;const t=e.getSelectionState();return!t||!Array.isArray(t)&&(t.selectAll===!1||t.selectAllChildren===!1)&&!t?.toggledNodes?.length?void 0:t}setRowSelectionState(e,t){this.beans.selectionSvc?.setSelectionState(e,t,t==="api")}updateGroupExpansionState(){const{expansionSvc:e,gos:t}=this.beans,s=e?.getExpansionState(),i=t.get("ssrmExpandAllAffectsAllRows");this.updateCachedState("ssrmRowGroupExpansion",i?s:void 0),this.updateCachedState("rowGroupExpansion",i?void 0:s)}getRowPinningState(){return this.beans.pinnedRowModel?.getPinnedState()}setRowPinningState(e){const t=this.beans.pinnedRowModel;e?t?.setPinnedState(e):t?.reset()}setRowGroupExpansionState(e,t,s){const i=e??t??{expandedRowGroupIds:[],collapsedRowGroupIds:[]};this.beans.expansionSvc?.setExpansionState(i,s)}updateColumnState(e){const t=this.getColumnState();let s=!1;const i=this.cachedState;for(const n of Object.keys(t)){const o=t[n];Wr(o,i[n])||(s=!0)}this.cachedState={...i,...t},s&&this.dispatchStateUpdateEvent(e)}updateCachedState(e,t){const s=this.cachedState[e];this.setCachedStateValue(e,t),Wr(t,s)||this.dispatchStateUpdateEvent([e])}setCachedStateValue(e,t){this.cachedState={...this.cachedState,[e]:t}}refreshStaleState(){const e=this.staleStateKeys;for(const t of e)t==="rowSelection"&&this.setCachedStateValue(t,this.getRowSelectionState());e.clear()}dispatchStateUpdateEvent(e){if(!this.suppressEvents){for(const t of e)this.queuedUpdateSources.add(t);this.dispatchStateUpdateEventDebounced()}}dispatchQueuedStateUpdateEvents(){const e=this.queuedUpdateSources,t=Array.from(e);e.clear(),this.eventSvc.dispatchEvent({type:"stateUpdated",sources:t,state:this.cachedState})}startSuppressEvents(){this.suppressEvents=!0,this.beans.colAnimation?.setSuppressAnimation(!0)}stopSuppressEvents(e){setTimeout(()=>{this.suppressEvents=!1,this.queuedUpdateSources.clear(),this.isAlive()&&(this.beans.colAnimation?.setSuppressAnimation(!1),this.dispatchStateUpdateEvent([e]))})}suppressEventsAndDispatchInitEvent(e){this.startSuppressEvents(),e(),this.stopSuppressEvents("gridInitializing")}},d9={moduleName:"GridState",version:J,beans:[c9],apiFunctions:{getState:o9,setState:r9}};function u9(e){return e.rowModel.isLastRowIndexKnown()}function h9(e){return e.pagination?.getPageSize()??100}function p9(e){return e.pagination?.getCurrentPage()??0}function g9(e){return e.pagination?.getTotalPages()??1}function f9(e){return e.pagination?e.pagination.getMasterRowCount():e.rowModel.getRowCount()}function m9(e){e.pagination?.goToNextPage()}function v9(e){e.pagination?.goToPreviousPage()}function C9(e){e.pagination?.goToFirstPage()}function w9(e){e.pagination?.goToLastPage()}function b9(e,t){e.pagination?.goToPage(t)}var x9=class extends j{constructor(){super(...arguments),this.beanName="paginationAutoPageSizeSvc"}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.centerRowsCtrl=e.center;const t=this.checkPageSize.bind(this);this.addManagedEventListeners({bodyHeightChanged:t,scrollVisibilityChanged:t}),this.addManagedPropertyListener("paginationAutoPageSize",this.onPaginationAutoSizeChanged.bind(this)),this.checkPageSize()})}notActive(){return!this.gos.get("paginationAutoPageSize")||this.centerRowsCtrl==null}onPaginationAutoSizeChanged(){this.notActive()?this.beans.pagination.unsetAutoCalculatedPageSize():this.checkPageSize()}checkPageSize(){if(this.notActive())return;const e=this.centerRowsCtrl.viewportSizeFeature.getBodyHeight();if(e>0){const t=this.beans,s=()=>{const i=Math.max(pn(t),1),n=Math.floor(e/i);t.pagination.setPageSize(n,"autoCalculated")};this.isBodyRendered?gt(this,s,50)():(s(),this.isBodyRendered=!0)}else this.isBodyRendered=!1}};function y9(e,t){if(typeof e!="number")return"";const s=t(),i=s("thousandSeparator",","),n=s("decimalSeparator",".");return e.toString().replace(".",n).replace(/(\d)(?=(\d{3})+(?!\d))/g,`$1${i}`)}var fr="paginationPageSizeSelector",S9={tag:"span",cls:"ag-paging-page-size"},R9=class extends lt{constructor(){super(S9),this.hasEmptyOption=!1,this.handlePageSizeItemSelected=()=>{if(!this.selectPageSizeComp)return;const e=this.selectPageSizeComp.getValue();if(!e)return;const t=Number(e);isNaN(t)||t<1||t===this.pagination.getPageSize()||(this.pagination.setPageSize(t,"pageSizeSelector"),this.hasEmptyOption&&this.toggleSelectDisplay(!0),this.selectPageSizeComp.getFocusableElement().focus())}}wireBeans(e){this.pagination=e.pagination}postConstruct(){this.addManagedPropertyListener(fr,()=>{this.onPageSizeSelectorValuesChange()}),this.addManagedEventListeners({paginationChanged:e=>this.handlePaginationChanged(e)})}handlePaginationChanged(e){if(!this.selectPageSizeComp||!e?.newPageSize)return;const t=this.pagination.getPageSize();this.getPageSizeSelectorValues().includes(t)?this.selectPageSizeComp.setValue(t.toString()):this.hasEmptyOption?this.selectPageSizeComp.setValue(""):this.toggleSelectDisplay(!0)}toggleSelectDisplay(e){this.selectPageSizeComp&&!e&&this.reset(),e&&(this.reloadPageSizesSelector(),this.selectPageSizeComp)}reset(){$t(this.getGui()),this.selectPageSizeComp&&(this.selectPageSizeComp=this.destroyBean(this.selectPageSizeComp))}onPageSizeSelectorValuesChange(){this.selectPageSizeComp&&this.shouldShowPageSizeSelector()&&this.reloadPageSizesSelector()}shouldShowPageSizeSelector(){return this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel")&&!this.gos.get("paginationAutoPageSize")&&this.gos.get(fr)!==!1}reloadPageSizesSelector(){const e=this.getPageSizeSelectorValues(),t=this.pagination.getPageSize(),s=!t||!e.includes(t);if(s){const n=this.gos.exists("paginationPageSize"),o=this.gos.get(fr)!==!0;q(94,{pageSizeSet:n,pageSizesSet:o,pageSizeOptions:e,paginationPageSizeOption:t}),o||q(95,{paginationPageSizeOption:t,paginationPageSizeSelector:fr}),e.unshift("")}const i=String(s?"":t);this.selectPageSizeComp?(Gi(this.pageSizeOptions,e)||(this.selectPageSizeComp.clearOptions().addOptions(this.createPageSizeSelectOptions(e)),this.pageSizeOptions=e),this.selectPageSizeComp.setValue(i,!0)):this.createPageSizeSelectorComp(e,i),this.hasEmptyOption=s}createPageSizeSelectOptions(e){return e.map(t=>({value:String(t)}))}createPageSizeSelectorComp(e,t){const s=this.getLocaleTextFunc(),i=s("pageSizeSelectorLabel","Page Size:"),n=s("ariaPageSizeSelectorLabel","Page Size");this.selectPageSizeComp=this.createManagedBean(new Ap).addOptions(this.createPageSizeSelectOptions(e)).setValue(t).setAriaLabel(n).setLabel(i).onValueChange(()=>this.handlePageSizeItemSelected()),this.appendChild(this.selectPageSizeComp)}getPageSizeSelectorValues(){const e=[20,50,100],t=this.gos.get(fr);return!Array.isArray(t)||!t?.length?e:[...t].sort((s,i)=>s-i)}destroy(){this.toggleSelectDisplay(!1),super.destroy()}},F9={selector:"AG-PAGE-SIZE-SELECTOR",component:R9},E9=".ag-paging-panel{align-items:center;border-top:var(--ag-footer-row-border);display:flex;flex-wrap:wrap-reverse;gap:calc(var(--ag-spacing)*4);justify-content:flex-end;min-height:var(--ag-pagination-panel-height);padding:calc(var(--ag-spacing)*.5) var(--ag-cell-horizontal-padding);row-gap:calc(var(--ag-spacing)*.5);@container (width < 600px){justify-content:center}}:where(.ag-paging-page-size) .ag-wrapper{min-width:50px}.ag-paging-page-summary-panel,.ag-paging-row-summary-panel{margin:calc(var(--ag-spacing)*.5)}.ag-paging-page-summary-panel{align-items:center;display:flex;gap:var(--ag-cell-widget-spacing);.ag-disabled &{pointer-events:none}}.ag-paging-button{cursor:pointer;position:relative;&.ag-disabled{cursor:default;opacity:.5}}.ag-paging-number,.ag-paging-row-summary-panel-number{font-weight:500}.ag-paging-description{line-height:0}",D9=class extends qE{constructor(){super(),this.btFirst=ue,this.btPrevious=ue,this.btNext=ue,this.btLast=ue,this.lbRecordCount=ue,this.lbFirstRowOnPage=ue,this.lbLastRowOnPage=ue,this.lbCurrent=ue,this.lbTotal=ue,this.pageSizeComp=ue,this.previousAndFirstButtonsDisabled=!1,this.nextButtonDisabled=!1,this.lastButtonDisabled=!1,this.areListenersSetup=!1,this.allowFocusInnerElement=!1,this.registerCSS(E9)}wireBeans(e){this.rowModel=e.rowModel,this.pagination=e.pagination,this.ariaAnnounce=e.ariaAnnounce}postConstruct(){const e=this.gos.get("enableRtl");this.setTemplate(this.getTemplate(),[F9]);const{btFirst:t,btPrevious:s,btNext:i,btLast:n}=this;this.activateTabIndex([t,s,i,n]),t.insertAdjacentElement("afterbegin",Ut(e?"last":"first",this.beans)),s.insertAdjacentElement("afterbegin",Ut(e?"next":"previous",this.beans)),i.insertAdjacentElement("afterbegin",Ut(e?"previous":"next",this.beans)),n.insertAdjacentElement("afterbegin",Ut(e?"first":"last",this.beans)),this.addManagedPropertyListener("pagination",this.onPaginationChanged.bind(this)),this.addManagedPropertyListener("suppressPaginationPanel",this.onPaginationChanged.bind(this)),this.addManagedPropertyListeners(["paginationPageSizeSelector","paginationAutoPageSize","suppressPaginationPanel"],()=>this.onPageSizeRelatedOptionsChange()),this.pageSizeComp.toggleSelectDisplay(this.pageSizeComp.shouldShowPageSizeSelector()),this.initialiseTabGuard({onTabKeyDown:()=>{},focusInnerElement:o=>this.allowFocusInnerElement?this.tabGuardFeature.getTabGuardCtrl().focusInnerElement(o):XF(this.beans,o),forceFocusOutWhenTabGuardsAreEmpty:!0}),this.onPaginationChanged()}setAllowFocus(e){this.allowFocusInnerElement=e}getFocusableContainerName(){return"pagination"}onPaginationChanged(){const t=this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel");this.setDisplayed(t),t&&(this.setupListeners(),this.enableOrDisableButtons(),this.updateLabels(),this.onPageSizeRelatedOptionsChange())}onPageSizeRelatedOptionsChange(){this.pageSizeComp.toggleSelectDisplay(this.pageSizeComp.shouldShowPageSizeSelector())}setupListeners(){if(!this.areListenersSetup){this.addManagedEventListeners({paginationChanged:this.onPaginationChanged.bind(this)});for(const e of[{el:this.btFirst,fn:this.onBtFirst.bind(this)},{el:this.btPrevious,fn:this.onBtPrevious.bind(this)},{el:this.btNext,fn:this.onBtNext.bind(this)},{el:this.btLast,fn:this.onBtLast.bind(this)}]){const{el:t,fn:s}=e;this.addManagedListeners(t,{click:s,keydown:i=>{(i.key===N.ENTER||i.key===N.SPACE)&&(i.preventDefault(),s())}})}ZF(this.beans,this,this.getGui()),this.areListenersSetup=!0}}onBtFirst(){this.previousAndFirstButtonsDisabled||this.pagination.goToFirstPage()}formatNumber(e){const t=this.gos.getCallback("paginationNumberFormatter");return t?t({value:e}):y9(e,this.getLocaleTextFunc.bind(this))}getTemplate(){const e=this.getLocaleTextFunc(),t=`ag-${this.getCompId()}`;return{tag:"div",cls:"ag-paging-panel ag-unselectable",attrs:{id:`${t}`},children:[{tag:"ag-page-size-selector",ref:"pageSizeComp"},{tag:"span",cls:"ag-paging-row-summary-panel",children:[{tag:"span",ref:"lbFirstRowOnPage",cls:"ag-paging-row-summary-panel-number",attrs:{id:`${t}-first-row`}},{tag:"span",attrs:{id:`${t}-to`},children:e("to","to")},{tag:"span",ref:"lbLastRowOnPage",cls:"ag-paging-row-summary-panel-number",attrs:{id:`${t}-last-row`}},{tag:"span",attrs:{id:`${t}-of`},children:e("of","of")},{tag:"span",ref:"lbRecordCount",cls:"ag-paging-row-summary-panel-number",attrs:{id:`${t}-row-count`}}]},{tag:"span",cls:"ag-paging-page-summary-panel",role:"presentation",children:[{tag:"div",ref:"btFirst",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":e("firstPage","First Page")}},{tag:"div",ref:"btPrevious",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":e("previousPage","Previous Page")}},{tag:"span",cls:"ag-paging-description",children:[{tag:"span",attrs:{id:`${t}-start-page`},children:e("page","Page")},{tag:"span",ref:"lbCurrent",cls:"ag-paging-number",attrs:{id:`${t}-start-page-number`}},{tag:"span",attrs:{id:`${t}-of-page`},children:e("of","of")},{tag:"span",ref:"lbTotal",cls:"ag-paging-number",attrs:{id:`${t}-of-page-number`}}]},{tag:"div",ref:"btNext",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":e("nextPage","Next Page")}},{tag:"div",ref:"btLast",cls:"ag-button ag-paging-button",role:"button",attrs:{"aria-label":e("lastPage","Last Page")}}]}]}}onBtNext(){this.nextButtonDisabled||this.pagination.goToNextPage()}onBtPrevious(){this.previousAndFirstButtonsDisabled||this.pagination.goToPreviousPage()}onBtLast(){this.lastButtonDisabled||this.pagination.goToLastPage()}enableOrDisableButtons(){const e=this.pagination.getCurrentPage(),t=this.rowModel.isLastRowIndexKnown(),s=this.pagination.getTotalPages();this.previousAndFirstButtonsDisabled=e===0,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);const i=this.isZeroPagesToDisplay(),n=e===s-1;this.nextButtonDisabled=n||i,this.lastButtonDisabled=!t||i||e===s-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)}toggleButtonDisabled(e,t){K2(e,t),e.classList.toggle("ag-disabled",t)}isZeroPagesToDisplay(){const e=this.rowModel.isLastRowIndexKnown(),t=this.pagination.getTotalPages();return e&&t===0}updateLabels(){const e=this.rowModel.isLastRowIndexKnown(),t=this.pagination.getTotalPages(),s=this.pagination.getMasterRowCount(),i=e?s:null,n=this.pagination.getCurrentPage(),o=this.pagination.getPageSize();let r,a;this.isZeroPagesToDisplay()?r=a=0:(r=o*n+1,a=r+o-1,e&&a>i&&(a=i));const l=r+o-1,c=!e&&s<l,d=this.formatNumber(r);this.lbFirstRowOnPage.textContent=d;let u;const h=this.getLocaleTextFunc();c?u=h("pageLastRowUnknown","?"):u=this.formatNumber(a),this.lbLastRowOnPage.textContent=u;const m=t>0?n+1:0,v=this.formatNumber(m);this.lbCurrent.textContent=v;let C,w;if(e)C=this.formatNumber(t),w=this.formatNumber(i);else{const b=h("more","more");C=b,w=b}this.lbTotal.textContent=C,this.lbRecordCount.textContent=w,this.announceAriaStatus(d,u,w,v,C)}announceAriaStatus(e,t,s,i,n){const o=this.getLocaleTextFunc(),r=o("page","Page"),a=o("to","to"),l=o("of","of"),c=`${e} ${a} ${t} ${l} ${s}`,d=`${r} ${i} ${l} ${n}`;c!==this.ariaRowStatus&&(this.ariaRowStatus=c,this.ariaAnnounce?.announceValue(c,"paginationRow")),d!==this.ariaPageStatus&&(this.ariaPageStatus=d,this.ariaAnnounce?.announceValue(d,"paginationPage"))}},P9={selector:"AG-PAGINATION",component:D9},T9=100,k9=class extends j{constructor(){super(...arguments),this.beanName="pagination",this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=0,this.masterRowCount=0}postConstruct(){const e=this.gos;this.active=e.get("pagination"),this.pageSizeFromGridOptions=e.get("paginationPageSize"),this.paginateChildRows=this.isPaginateChildRows(),this.addManagedPropertyListener("pagination",this.onPaginationGridOptionChanged.bind(this)),this.addManagedPropertyListener("paginationPageSize",this.onPageSizeGridOptionChanged.bind(this))}getPaginationSelector(){return P9}isPaginateChildRows(){const e=this.gos;return e.get("groupHideParentOfSingleChild")||e.get("groupRemoveSingleChildren")||e.get("groupRemoveLowestSingleChildren")?!0:e.get("paginateChildRows")}onPaginationGridOptionChanged(){this.active=this.gos.get("pagination"),this.calculatePages(),this.dispatchPaginationChangedEvent({keepRenderedRows:!0})}onPageSizeGridOptionChanged(){this.setPageSize(this.gos.get("paginationPageSize"),"gridOptions")}goToPage(e){const t=this.currentPage;if(!this.active||t===e||typeof t!="number")return;const{editSvc:s}=this.beans;s?.isEditing()&&(s.isBatchEditing()?s.cleanupEditors():s.stopEditing(void 0,{source:"api"})),this.currentPage=e,this.calculatePages(),this.dispatchPaginationChangedEvent({newPage:!0})}goToPageWithIndex(e){if(!this.active)return;let t=e;this.paginateChildRows||(t=this.beans.rowModel.getTopLevelIndexFromDisplayedIndex?.(e)??e),this.goToPage(Math.floor(t/this.pageSize))}isRowInPage(e){return this.active?e>=this.topDisplayedRowIndex&&e<=this.bottomDisplayedRowIndex:!0}getCurrentPage(){return this.currentPage}goToNextPage(){this.goToPage(this.currentPage+1)}goToPreviousPage(){this.goToPage(this.currentPage-1)}goToFirstPage(){this.goToPage(0)}goToLastPage(){const e=this.beans.rowModel.getRowCount(),t=Math.floor(e/this.pageSize);this.goToPage(t)}getPageSize(){return this.pageSize}getTotalPages(){return this.totalPages}setPage(e){this.currentPage=e}get pageSize(){return se(this.pageSizeAutoCalculated)&&this.gos.get("paginationAutoPageSize")?this.pageSizeAutoCalculated:se(this.pageSizeFromPageSizeSelector)?this.pageSizeFromPageSizeSelector:se(this.pageSizeFromInitialState)?this.pageSizeFromInitialState:se(this.pageSizeFromGridOptions)?this.pageSizeFromGridOptions:T9}calculatePages(){this.active?this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly():this.calculatedPagesNotActive(),this.beans.pageBounds.calculateBounds(this.topDisplayedRowIndex,this.bottomDisplayedRowIndex)}unsetAutoCalculatedPageSize(){if(this.pageSizeAutoCalculated===void 0)return;const e=this.pageSizeAutoCalculated;this.pageSizeAutoCalculated=void 0,this.pageSize!==e&&(this.calculatePages(),this.dispatchPaginationChangedEvent({newPageSize:!0}))}setPageSize(e,t){const s=this.pageSize;switch(t){case"autoCalculated":this.pageSizeAutoCalculated=e;break;case"pageSizeSelector":this.pageSizeFromPageSizeSelector=e,this.currentPage!==0&&this.goToFirstPage();break;case"initialState":this.pageSizeFromInitialState=e;break;case"gridOptions":this.pageSizeFromGridOptions=e,this.pageSizeFromInitialState=void 0,this.pageSizeFromPageSizeSelector=void 0,this.currentPage!==0&&this.goToFirstPage();break}s!==this.pageSize&&(this.calculatePages(),this.dispatchPaginationChangedEvent({newPageSize:!0,keepRenderedRows:!0}))}setZeroRows(){this.masterRowCount=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0}adjustCurrentPageIfInvalid(){const e=this.totalPages;this.currentPage>=e&&(this.currentPage=e-1);const t=this.currentPage;(!isFinite(t)||isNaN(t)||t<0)&&(this.currentPage=0)}calculatePagesMasterRowsOnly(){const e=this.beans.rowModel,t=e.getTopLevelRowCount();if(this.masterRowCount=t,t<=0){this.setZeroRows();return}const s=this.pageSize,i=t-1;this.totalPages=Math.floor(i/s)+1,this.adjustCurrentPageIfInvalid();const n=this.currentPage,o=s*n;let r=s*(n+1)-1;if(r>i&&(r=i),this.topDisplayedRowIndex=e.getTopLevelRowDisplayedIndex(o),r===i)this.bottomDisplayedRowIndex=e.getRowCount()-1;else{const a=e.getTopLevelRowDisplayedIndex(r+1);this.bottomDisplayedRowIndex=a-1}}getMasterRowCount(){return this.masterRowCount}calculatePagesAllRows(){const e=this.beans.rowModel.getRowCount();if(this.masterRowCount=e,e===0){this.setZeroRows();return}const{pageSize:t,currentPage:s}=this,i=e-1;this.totalPages=Math.floor(i/t)+1,this.adjustCurrentPageIfInvalid(),this.topDisplayedRowIndex=t*s,this.bottomDisplayedRowIndex=t*(s+1)-1,this.bottomDisplayedRowIndex>i&&(this.bottomDisplayedRowIndex=i)}calculatedPagesNotActive(){this.setPageSize(void 0,"autoCalculated"),this.totalPages=1,this.currentPage=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=this.beans.rowModel.getRowCount()-1}dispatchPaginationChangedEvent(e){const{keepRenderedRows:t=!1,newPage:s=!1,newPageSize:i=!1}=e;this.eventSvc.dispatchEvent({type:"paginationChanged",animate:!1,newData:!1,newPage:s,newPageSize:i,keepRenderedRows:t})}},I9={moduleName:"Pagination",version:J,beans:[k9,x9],icons:{first:"first",previous:"previous",next:"next",last:"last"},apiFunctions:{paginationIsLastPageFound:u9,paginationGetPageSize:h9,paginationGetCurrentPage:p9,paginationGetTotalPages:g9,paginationGetRowCount:f9,paginationGoToNextPage:m9,paginationGoToPreviousPage:v9,paginationGoToFirstPage:C9,paginationGoToLastPage:w9,paginationGoToPage:b9},dependsOn:[Ac]},M9=".ag-row-pinned-source{background-color:var(--ag-pinned-source-row-background-color);color:var(--ag-pinned-source-row-text-color);font-weight:var(--ag-pinned-source-row-font-weight)}.ag-row-pinned-manual{background-color:var(--ag-pinned-row-background-color);color:var(--ag-pinned-row-text-color);font-weight:var(--ag-pinned-row-font-weight)}";function A9(e){return e.pinnedRowModel?.getPinnedTopRowCount()??0}function L9(e){return e.pinnedRowModel?.getPinnedBottomRowCount()??0}function O9(e,t){return e.pinnedRowModel?.getPinnedTopRow(t)}function N9(e,t){return e.pinnedRowModel?.getPinnedBottomRow(t)}function H9(e,t,s){return e.pinnedRowModel?.forEachPinnedRow(t,s)}var B9={moduleName:"PinnedRow",version:J,beans:[OF],css:[M9],apiFunctions:{getPinnedTopRowCount:A9,getPinnedBottomRowCount:L9,getPinnedTopRow:O9,getPinnedBottomRow:N9,forEachPinnedRow:H9},icons:{rowPin:"pin",rowPinTop:"pinned-top",rowPinBottom:"pinned-bottom",rowUnpin:"un-pin"}},G9="↑",V9="↓",z9={tag:"span",children:[{tag:"span",ref:"eDelta",cls:"ag-value-change-delta"},{tag:"span",ref:"eValue",cls:"ag-value-change-value"}]},j9=class extends lt{constructor(){super(z9),this.eValue=ue,this.eDelta=ue,this.refreshCount=0}init(e){this.refresh(e,!0)}showDelta(e,t){const s=Math.abs(t),i=e.formatValue(s),n=se(i)?i:s,o=t>=0,r=this.eDelta;o?r.textContent=G9+n:r.textContent=V9+n,r.classList.toggle("ag-value-change-delta-up",o),r.classList.toggle("ag-value-change-delta-down",!o)}setTimerToRemoveDelta(){this.refreshCount++;const e=this.refreshCount;this.beans.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{e===this.refreshCount&&this.hideDeltaValue()},2e3)})}hideDeltaValue(){this.eValue.classList.remove("ag-value-change-value-highlight"),$t(this.eDelta)}refresh(e,t=!1){const{value:s,valueFormatted:i}=e,{eValue:n,lastValue:o,beans:r}=this;if(s===o||(se(i)?n.textContent=i:se(s)?n.textContent=s:$t(n),r.filterManager?.isSuppressFlashingCellsBecauseFiltering()))return!1;const a=s&&typeof s=="object"&&"toNumber"in s?s.toNumber():s,l=o&&typeof o=="object"&&"toNumber"in o?o.toNumber():o;if(a===l)return!1;if(typeof a=="number"&&typeof l=="number"){const c=a-l;this.showDelta(e,c)}return o&&n.classList.add("ag-value-change-value-highlight"),t||this.setTimerToRemoveDelta(),this.lastValue=s,!0}},W9=".ag-value-slide-out{opacity:1}:where(.ag-ltr) .ag-value-slide-out{margin-right:5px;transition:opacity 3s,margin-right 3s}:where(.ag-rtl) .ag-value-slide-out{margin-left:5px;transition:opacity 3s,margin-left 3s}:where(.ag-ltr,.ag-rtl) .ag-value-slide-out{transition-timing-function:linear}.ag-value-slide-out-end{opacity:0}:where(.ag-ltr) .ag-value-slide-out-end{margin-right:10px}:where(.ag-rtl) .ag-value-slide-out-end{margin-left:10px}",_9={tag:"span",children:[{tag:"span",ref:"eCurrent",cls:"ag-value-slide-current"}]},U9=class extends lt{constructor(){super(_9),this.eCurrent=ue,this.refreshCount=0,this.registerCSS(W9)}init(e){this.refresh(e,!0)}addSlideAnimation(){this.refreshCount++;const e=this.refreshCount;this.ePrevious?.remove();const{beans:t,eCurrent:s}=this,i=ss({tag:"span",cls:"ag-value-slide-previous ag-value-slide-out"});this.ePrevious=i,i.textContent=s.textContent,this.getGui().insertBefore(i,s),t.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(()=>{e===this.refreshCount&&this.ePrevious.classList.add("ag-value-slide-out-end")},50),window.setTimeout(()=>{e===this.refreshCount&&(this.ePrevious?.remove(),this.ePrevious=null)},3e3)})}refresh(e,t=!1){let s=e.value;if(rt(s)&&(s=""),s===this.lastValue||this.beans.filterManager?.isSuppressFlashingCellsBecauseFiltering())return!1;t||this.addSlideAnimation(),this.lastValue=s;const i=this.eCurrent;return se(e.valueFormatted)?i.textContent=e.valueFormatted:se(e.value)?i.textContent=s:$t(i),!0}},$9=class extends j{constructor(){super(...arguments),this.beanName="cellFlashSvc",this.nextAnimationTime=null,this.nextAnimationCycle=null,this.animations={highlight:new Map,"data-changed":new Map}}animateCell(e,t,s=this.beans.gos.get("cellFlashDuration"),i=this.beans.gos.get("cellFadeDuration")){const n=this.animations[t];n.delete(e);const o=Date.now(),r=o+s,a=o+s+i,l={phase:"flash",flashEndTime:r,fadeEndTime:a};n.set(e,l);const c=`ag-cell-${t}`,d=`${c}-animation`,{comp:u,eGui:{style:h}}=e;u.toggleCss(c,!0),u.toggleCss(d,!1),h.removeProperty("transition"),h.removeProperty("transition-delay"),this.nextAnimationTime&&r+15<this.nextAnimationTime&&(clearTimeout(this.nextAnimationCycle),this.nextAnimationCycle=null,this.nextAnimationTime=null),this.nextAnimationCycle||(this.beans.frameworkOverrides.wrapIncoming(()=>{this.nextAnimationCycle=setTimeout(this.advanceAnimations.bind(this),s)}),this.nextAnimationTime=r)}advanceAnimations(){const e=Date.now();let t=null;for(const s of Object.keys(this.animations)){const i=this.animations[s],n=`ag-cell-${s}`,o=`${n}-animation`;for(const[r,a]of i){if(!r.isAlive()||!r.comp){i.delete(r);continue}const{phase:l,flashEndTime:c,fadeEndTime:d}=a,u=l==="flash"?c:d;if(!(e+15>=u)){t=Math.min(u,t??1/0);continue}const{comp:f,eGui:{style:m}}=r;switch(l){case"flash":f.toggleCss(n,!1),f.toggleCss(o,!0),m.transition=`background-color ${d-c}ms`,m.transitionDelay=`${c-e}ms`,t=Math.min(d,t??1/0),a.phase="fade";break;case"fade":f.toggleCss(n,!1),f.toggleCss(o,!1),m.removeProperty("transition"),m.removeProperty("transition-delay"),i.delete(r);break}}}t==null?(this.nextAnimationTime=null,this.nextAnimationCycle=null):t&&(this.nextAnimationCycle=setTimeout(this.advanceAnimations.bind(this),t-e),this.nextAnimationTime=t)}onFlashCells(e,t){if(!e.comp)return;const s=UF(e.cellPosition);t.cells[s]&&this.animateCell(e,"highlight")}flashCell(e,t){this.animateCell(e,"data-changed",t?.flashDuration,t?.fadeDuration)}destroy(){for(const e of Object.keys(this.animations))this.animations[e].clear()}};function q9(e,t={}){const{cellFlashSvc:s}=e;s&&e.frameworkOverrides.wrapIncoming(()=>{for(const i of e.rowRenderer.getCellCtrls(t.rowNodes,t.columns))s.flashCell(i,t)})}var K9={moduleName:"HighlightChanges",version:J,beans:[$9],userComponents:{agAnimateShowChangeCellRenderer:j9,agAnimateSlideCellRenderer:U9},apiFunctions:{flashCells:q9}};function Y9(e,t,s){if(!t)return;const i=e.ctrlsSvc.getGridBodyCtrl().eGridBody,n=`aria-${t}`;s===null?i.removeAttribute(n):i.setAttribute(n,s)}function Z9(e,t={}){e.frameworkOverrides.wrapIncoming(()=>e.rowRenderer.refreshCells(t))}function X9(e){e.frameworkOverrides.wrapIncoming(()=>{for(const t of e.ctrlsSvc.getHeaderRowContainerCtrls())t.refresh()})}function Q9(e){return e.animationFrameSvc?.isQueueEmpty()??!0}function J9(e){e.animationFrameSvc?.flushAllFrames()}function eL(e){return{rowHeight:pn(e),headerHeight:ca(e)}}function tL(e,t={}){const s=[];for(const o of e.rowRenderer.getCellCtrls(t.rowNodes,t.columns)){const r=o.getCellRenderer();r!=null&&s.push(Pn(r))}if(t.columns?.length)return s;const i=[],n=nh(t.rowNodes);for(const o of e.rowRenderer.getAllRowCtrls()){if(n&&!oh(o.rowNode,n)||!o.isFullWidth())continue;const r=o.getFullWidthCellRenderers();for(let a=0;a<r.length;a++){const l=r[a];l!=null&&i.push(Pn(l))}}return[...i,...s]}var sL={moduleName:"RenderApi",version:J,apiFunctions:{setGridAriaProperty:Y9,refreshCells:Z9,refreshHeader:X9,isAnimationFrameQueueEmpty:Q9,flushAllAnimationFrames:J9,getSizesForCurrentTheme:eL,getCellRendererInstances:tL}},iL=class extends j{constructor(){super(...arguments),this.beanName="rowAutoHeight",this.wasEverActive=!1,this._debouncedCalculateRowHeights=gt(this,this.calculateRowHeights.bind(this),1)}requestCheckAutoHeight(){this.wasEverActive&&this._debouncedCalculateRowHeights()}calculateRowHeights(){const{visibleCols:e,rowModel:t,rowSpanSvc:s,pinnedRowModel:i}=this.beans,n=e.autoHeightCols;let o=!1;const r=a=>{const l=a.__autoHeights;let c=Ii(this.beans,a).height;for(const d of n){let u=l?.[d.getColId()];const h=s?.getCellSpan(d,a);if(h){if(h.getLastNode()!==a)continue;if(u=s?.getCellSpan(d,a)?.getLastNodeAutoHeight(),!u)return}if(u==null){if(this.colSpanSkipCell(d,a))continue;return}c=Math.max(u,c)}c!==a.rowHeight&&(a.setRowHeight(c),o=!0)};i?.forEachPinnedRow?.("top",r),i?.forEachPinnedRow?.("bottom",r),t.forEachDisplayedNode?.(r),o&&t.onRowHeightChanged?.()}setRowAutoHeight(e,t,s){if(e.__autoHeights??(e.__autoHeights={}),t==null){delete e.__autoHeights[s.getId()];return}const i=e.__autoHeights[s.getId()];e.__autoHeights[s.getId()]=t,i!==t&&this.requestCheckAutoHeight()}colSpanSkipCell(e,t){const{colModel:s,colViewport:i,visibleCols:n}=this.beans;if(!s.colSpanActive)return!1;let o=[];switch(e.getPinned()){case"left":o=n.getLeftColsForRow(t);break;case"right":o=n.getRightColsForRow(t);break;case null:o=i.getColsWithinViewport(t);break}return!o.includes(e)}setupCellAutoHeight(e,t,s){if(!e.column.isAutoHeight()||!t)return!1;this.wasEverActive=!0;const i=t.parentElement,{rowNode:n,column:o}=e,r=this.beans,a=d=>{if(this.beans.editSvc?.isEditing(e)||!e.isAlive()||!s.isAlive())return;const{paddingTop:u,paddingBottom:h,borderBottomWidth:f,borderTopWidth:m}=Ln(i),v=u+h+f+m,w=t.offsetHeight+v;if(d<5){const x=!xt(r)?.contains(t),y=w==0;if(x||y){window.setTimeout(()=>a(d+1),0);return}}this.setRowAutoHeight(n,w,o)},l=()=>a(0);l();const c=li(r,t,l);return s.addDestroyFunc(()=>{c(),this.setRowAutoHeight(n,void 0,o)}),!0}setAutoHeightActive(e){this.active=e.list.some(t=>t.isVisible()&&t.isAutoHeight())}areRowsMeasured(){if(!this.active)return!0;const e=this.beans.rowRenderer.getAllRowCtrls();let t=null;for(const{rowNode:s}of e)if((!t||this.beans.colModel.colSpanActive)&&(t=this.beans.colViewport.getColsWithinViewport(s).filter(n=>n.isAutoHeight())),t.length!==0){if(!s.__autoHeights)return!1;for(const i of t){const n=s.__autoHeights[i.getColId()];if(!n||s.rowHeight<n)return!1}}return!0}},nL={moduleName:"RowAutoHeight",version:J,beans:[iL]},oL=class{constructor(e,t){this.col=e,this.firstNode=t,this.cellSpan=!0,this.spannedNodes=new Set,this.addSpannedNode(t)}reset(){this.spannedNodes.clear(),this.addSpannedNode(this.firstNode)}addSpannedNode(e){this.spannedNodes.add(e),this.lastNode=e}getLastNode(){return this.lastNode}getCellHeight(){return this.lastNode.rowTop+this.lastNode.rowHeight-this.firstNode.rowTop-1}doesSpanContain(e){return e.column!==this.col||e.rowPinned!=this.firstNode.rowPinned?!1:this.firstNode.rowIndex<=e.rowIndex&&e.rowIndex<=this.lastNode.rowIndex}getLastNodeAutoHeight(){const e=this.firstNode.__autoHeights?.[this.col.getColId()];if(e==null)return;let t=0;for(const s of this.spannedNodes)s!==this.lastNode&&(t+=s.rowHeight);return e-t}},rL=class extends j{constructor(e){super(),this.column=e}buildCache(e){const{column:t,beans:{gos:s,pinnedRowModel:i,rowModel:n,valueSvc:o,pagination:r}}=this,{colDef:a}=t,l=this.getNodeMap(e),c=new Map,d=s.getCallback("isFullWidthRow"),u=a.equals,h=a.spanRows,f=typeof h=="function";let m=null,v=null,C;const w=(x,y)=>{m=x,v=null,C=y},b=x=>{const y=!x.isExpandable()&&!x.group&&!x.detail&&(d?!d({rowNode:x}):!0);if(x.rowIndex==null||!y){w(null,null);return}if(m==null||x.level!==m.level||x.footer||v&&x.rowIndex-1!==v?.getLastNode().rowIndex){w(x,o.getValue(t,x,"data"));return}const S=o.getValue(t,x,"data");if(f){const F=Se(s,{valueA:C,nodeA:m,valueB:S,nodeB:x,column:t,colDef:a});if(!h(F)){w(x,S);return}}else if(u?!u(C,S):C!==S){w(x,S);return}if(!v){const F=l?.get(m);F?.firstNode===m?(F.reset(),v=F):v=new oL(t,m),c.set(m,v)}v.addSpannedNode(x),c.set(x,v)};switch(e){case"center":n.forEachDisplayedNode?.(x=>{(!r||r.isRowInPage(x.rowIndex))&&b(x)}),this.centerValueNodeMap=c;break;case"top":i?.forEachPinnedRow("top",b),this.topValueNodeMap=c;break;case"bottom":i?.forEachPinnedRow("bottom",b),this.bottomValueNodeMap=c;break}}isCellSpanning(e){return!!this.getCellSpan(e)}getCellSpan(e){return this.getNodeMap(e.rowPinned).get(e)}getNodeMap(e){switch(e){case"top":return this.topValueNodeMap;case"bottom":return this.bottomValueNodeMap;default:return this.centerValueNodeMap}}},aL=class extends j{constructor(){super(...arguments),this.beanName="rowSpanSvc",this.spanningColumns=new Map,this.debouncePinnedEvent=gt(this,this.dispatchCellsUpdatedEvent.bind(this,!0),0),this.debounceModelEvent=gt(this,this.dispatchCellsUpdatedEvent.bind(this,!1),0),this.pinnedTimeout=null,this.modelTimeout=null}postConstruct(){const e=this.onRowDataUpdated.bind(this),t=this.buildPinnedCaches.bind(this);this.addManagedEventListeners({paginationChanged:this.buildModelCaches.bind(this),pinnedRowDataChanged:t,pinnedRowsChanged:t,rowNodeDataChanged:e,cellValueChanged:e})}register(e){const{gos:t}=this.beans;if(!t.get("enableCellSpan")||this.spanningColumns.has(e))return;const s=this.createManagedBean(new rL(e));this.spanningColumns.set(e,s),s.buildCache("top"),s.buildCache("bottom"),s.buildCache("center"),this.debouncePinnedEvent(),this.debounceModelEvent()}dispatchCellsUpdatedEvent(e){this.dispatchLocalEvent({type:"spannedCellsUpdated",pinned:e})}deregister(e){this.spanningColumns.delete(e)}onRowDataUpdated({node:e}){const{spannedRowRenderer:t}=this.beans;if(e.rowPinned){if(this.pinnedTimeout!=null)return;this.pinnedTimeout=window.setTimeout(()=>{this.pinnedTimeout=null,this.buildPinnedCaches(),t?.createCtrls("top"),t?.createCtrls("bottom")},0);return}this.modelTimeout==null&&(this.modelTimeout=window.setTimeout(()=>{this.modelTimeout=null,this.buildModelCaches(),t?.createCtrls("center")},0))}buildModelCaches(){this.modelTimeout!=null&&clearTimeout(this.modelTimeout),this.spanningColumns.forEach(e=>e.buildCache("center")),this.debounceModelEvent()}buildPinnedCaches(){this.pinnedTimeout!=null&&clearTimeout(this.pinnedTimeout),this.spanningColumns.forEach(e=>{e.buildCache("top"),e.buildCache("bottom")}),this.debouncePinnedEvent()}isCellSpanning(e,t){const s=this.spanningColumns.get(e);return s?s.isCellSpanning(t):!1}getCellSpanByPosition(e){const{pinnedRowModel:t,rowModel:s}=this.beans,i=e.column,n=e.rowIndex,o=this.spanningColumns.get(i);if(!o)return;let r;switch(e.rowPinned){case"top":r=t?.getPinnedTopRow(n);break;case"bottom":r=t?.getPinnedBottomRow(n);break;default:r=s.getRow(n)}if(r)return o.getCellSpan(r)}getCellStart(e){const t=this.getCellSpanByPosition(e);return t?{...e,rowIndex:t.firstNode.rowIndex}:e}getCellEnd(e){const t=this.getCellSpanByPosition(e);return t?{...e,rowIndex:t.getLastNode().rowIndex}:e}getCellSpan(e,t){const s=this.spanningColumns.get(e);if(s)return s.getCellSpan(t)}forEachSpannedColumn(e,t){for(const[s,i]of this.spanningColumns)if(i.isCellSpanning(e)){const n=i.getCellSpan(e);t(s,n)}}destroy(){super.destroy(),this.spanningColumns.clear()}},lL=class extends Fo{constructor(e,t,s){super(e.col,e.firstNode,s,t),this.cellSpan=e,this.SPANNED_CELL_CSS_CLASS="ag-spanned-cell"}setComp(e,t,s,i,n,o,r){this.eWrapper=s,super.setComp(e,t,s,i,n,o,r),this.setAriaRowSpan()}isCellSpanning(){return!0}getCellSpan(){return this.cellSpan}refreshAriaRowIndex(){const{eGui:e,rowNode:t}=this;!e||t.rowIndex==null||Uh(e,t.rowIndex)}setAriaRowSpan(){Q2(this.eGui,this.cellSpan.spannedNodes.size)}setFocusedCellPosition(e){this.focusedCellPosition=e}getFocusedCellPosition(){return this.focusedCellPosition??this.cellPosition}checkCellFocused(){const e=this.beans.focusSvc.getFocusedCell();return!!e&&this.cellSpan.doesSpanContain(e)}applyStaticCssClasses(){super.applyStaticCssClasses(),this.comp.toggleCss(this.SPANNED_CELL_CSS_CLASS,!0)}onCellFocused(e){const{beans:t}=this;if(Qr(t)){this.focusedCellPosition=void 0;return}const s=this.isCellFocused();s||(this.focusedCellPosition=void 0),e&&s&&(this.focusedCellPosition={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column}),super.onCellFocused(e)}getRootElement(){return this.eWrapper}},cL=class extends ic{getInitialRowClasses(e){return["ag-spanned-row"]}getNewCellCtrl(e){const t=this.beans.rowSpanSvc?.getCellSpan(e,this.rowNode);if(!(!t||t.firstNode!==this.rowNode))return new lL(t,this,this.beans)}isCorrectCtrlForSpan(e){const t=this.beans.rowSpanSvc?.getCellSpan(e.column,this.rowNode);return!t||t.firstNode!==this.rowNode?!1:e.getCellSpan()===t}onRowHeightChanged(){}refreshFirstAndLastRowStyles(){}addHoverFunctionality(){}resetHoveredStatus(){}},dL=class extends j{constructor(){super(...arguments),this.beanName="spannedRowRenderer",this.topCtrls=new Map,this.bottomCtrls=new Map,this.centerCtrls=new Map}postConstruct(){this.addManagedEventListeners({displayedRowsChanged:this.createAllCtrls.bind(this)})}createAllCtrls(){this.createCtrls("top"),this.createCtrls("bottom"),this.createCtrls("center")}createCtrls(e){const{rowSpanSvc:t}=this.beans,s=this.getCtrlsMap(e),i=s.size,n=this.getAllRelevantRowControls(e),o=new Map;let r=!1;for(const l of n)l.isAlive()&&t?.forEachSpannedColumn(l.rowNode,(c,d)=>{if(o.has(d.firstNode))return;const u=s.get(d.firstNode);if(u){o.set(d.firstNode,u),s.delete(d.firstNode);return}r=!0;const h=new cL(d.firstNode,this.beans,!1,!1,!1);o.set(d.firstNode,h)});this.setCtrlsMap(e,o);const a=o.size===i;if(!(!r&&a)){for(const l of s.values())l.destroyFirstPass(!0),l.destroySecondPass();this.dispatchLocalEvent({type:"spannedRowsUpdated",ctrlsKey:e})}}getAllRelevantRowControls(e){const{rowRenderer:t}=this.beans;switch(e){case"top":return t.topRowCtrls;case"bottom":return t.bottomRowCtrls;case"center":return t.allRowCtrls}}getCellByPosition(e){const{rowSpanSvc:t}=this.beans,s=t?.getCellSpanByPosition(e);if(!s)return;const i=this.getCtrlsMap(e.rowPinned).get(s.firstNode);if(i)return i.getAllCellCtrls().find(n=>n.column===e.column)}getCtrls(e){return[...this.getCtrlsMap(e).values()]}destroyRowCtrls(e){for(const t of this.getCtrlsMap(e).values())t.destroyFirstPass(!0),t.destroySecondPass();this.setCtrlsMap(e,new Map)}getCtrlsMap(e){switch(e){case"top":return this.topCtrls;case"bottom":return this.bottomCtrls;default:return this.centerCtrls}}setCtrlsMap(e,t){switch(e){case"top":this.topCtrls=t;break;case"bottom":this.bottomCtrls=t;break;default:this.centerCtrls=t;break}}destroy(){super.destroy(),this.destroyRowCtrls("top"),this.destroyRowCtrls("bottom"),this.destroyRowCtrls("center")}},uL={moduleName:"CellSpan",version:J,beans:[aL,dL]},hL=class extends j{constructor(){super(...arguments),this.beanName="selectionColSvc"}postConstruct(){this.addManagedPropertyListener("rowSelection",e=>{this.onSelectionOptionsChanged(e.currentValue,e.previousValue,yo(e.source))}),this.addManagedPropertyListener("selectionColumnDef",this.updateColumns.bind(this))}addColumns(e){const t=this.columns;t!=null&&(e.list=t.list.concat(e.list),e.tree=t.tree.concat(e.tree),F3(e))}createColumns(e,t){const s=()=>{$l(this.beans,this.columns?.tree),this.columns=null},i=e.treeDepth,o=(this.columns?.treeDepth??-1)==i,r=this.generateSelectionCols();if(R3(r,this.columns?.list??[])&&o)return;s();const{colGroupSvc:l}=this.beans,c=l?.findDepth(e.tree)??0,d=l?.balanceTreeForAutoCols(r,c)??[];this.columns={list:r,tree:d,treeDepth:c,map:{}},t(h=>{if(!h)return null;const f=h.filter(m=>!Vi(m));return[...r,...f]})}updateColumns(e){const t=yo(e.source),{beans:s}=this;for(const i of this.columns?.list??[]){const n=this.createSelectionColDef(e.currentValue);i.setColDef(n,null,t),Ss(s,{state:[D3(n,i.colId)]},t)}}getColumn(e){return this.columns?.list.find(t=>Ir(t,e))??null}getColumns(){return this.columns?.list??null}isSelectionColumnEnabled(){const{gos:e,beans:t}=this,s=e.get("rowSelection");if(typeof s!="object"||!hn(e))return!1;const i=(t.autoColSvc?.getColumns()?.length??0)>0;if(s.checkboxLocation==="autoGroupColumn"&&i)return!1;const n=!!wo(s),o=wl(s);return n||o}createSelectionColDef(e){const{gos:t}=this,s=e??t.get("selectionColumnDef"),i=t.get("enableRtl"),{rowSpan:n,spanRows:o,...r}=s??{};return{width:50,resizable:!1,suppressHeaderMenuButton:!0,sortable:!1,suppressMovable:!0,lockPosition:i?"right":"left",comparator(a,l,c,d){const u=c.isSelected(),h=d.isSelected();return u===h?0:u?1:-1},editable:!1,suppressFillHandle:!0,suppressAutoSize:!0,pinned:null,...r,colId:sp,chartDataType:"excluded"}}generateSelectionCols(){if(!this.isSelectionColumnEnabled())return[];const e=this.createSelectionColDef(),t=e.colId;this.gos.validateColDef(e,t,!0);const s=new On(e,null,t,!1);return this.createBean(s),[s]}onSelectionOptionsChanged(e,t,s){const i=t&&typeof t!="string"?wo(t):void 0,n=e&&typeof e!="string"?wo(e):void 0,o=i!==n,r=t&&typeof t!="string"?wl(t):void 0,a=e&&typeof e!="string"?wl(e):void 0,l=r!==a,c=jl(e),d=jl(t);(o||l||c!==d)&&this.beans.colModel.refreshAll(s)}destroy(){$l(this.beans,this.columns?.tree),super.destroy()}refreshVisibility(e,t,s){if(!this.columns?.list.length)return;const i=e.length+t.length+s.length;if(i===0)return;const n=this.columns.list[0];if(!n.isVisible())return;const o=()=>{let l;switch(n.pinned){case"left":case!0:l=e;break;case"right":l=s;break;default:l=t}l&&Gs(l,n)};(this.beans.rowNumbersSvc?.getColumn(ip)?2:1)===i&&o()}},pL=':where(.ag-selection-checkbox) .ag-checkbox-input-wrapper:before{content:"";cursor:pointer;inset:-8px;position:absolute}';function gL(e,t){if(!t.nodes.every(r=>r.rowPinned&&!Ic(r)?(q(59),!1):r.id===void 0?(q(60),!1):!0))return;const{nodes:i,source:n,newValue:o}=t;e.selectionSvc?.setNodesSelected({nodes:i,source:n??"api",newValue:o})}function fL(e,t,s="apiSelectAll"){e.selectionSvc?.selectAllRowNodes({source:s,selectAll:t})}function mL(e,t,s="apiSelectAll"){e.selectionSvc?.deselectAllRowNodes({source:s,selectAll:t})}function vL(e,t="apiSelectAllFiltered"){e.selectionSvc?.selectAllRowNodes({source:t,selectAll:"filtered"})}function CL(e,t="apiSelectAllFiltered"){e.selectionSvc?.deselectAllRowNodes({source:t,selectAll:"filtered"})}function wL(e,t="apiSelectAllCurrentPage"){e.selectionSvc?.selectAllRowNodes({source:t,selectAll:"currentPage"})}function bL(e,t="apiSelectAllCurrentPage"){e.selectionSvc?.deselectAllRowNodes({source:t,selectAll:"currentPage"})}function xL(e){return e.selectionSvc?.getSelectedNodes()??[]}function yL(e){return e.selectionSvc?.getSelectedRows()??[]}var SL={tag:"div",cls:"ag-selection-checkbox",role:"presentation",children:[{tag:"ag-checkbox",ref:"eCheckbox",role:"presentation"}]},RL=class extends lt{constructor(){super(SL,[xp]),this.eCheckbox=ue}postConstruct(){this.eCheckbox.setPassive(!0)}onDataChanged(){this.onSelectionChanged()}onSelectableChanged(){this.showOrHideSelect()}onSelectionChanged(){const e=this.getLocaleTextFunc(),{rowNode:t,eCheckbox:s}=this,i=t.isSelected(),n=Rc(e,i),[o,r]=t.selectable?["ariaRowToggleSelection","Press Space to toggle row selection"]:["ariaRowSelectionDisabled","Row Selection is disabled for this row"],a=e(o,r);s.setValue(i,!0),s.setInputAriaLabel(`${a} (${n})`)}init(e){if(this.rowNode=e.rowNode,this.column=e.column,this.overrides=e.overrides,this.onSelectionChanged(),this.addManagedListeners(this.eCheckbox.getWrapperElement(),{dblclick:En,click:i=>{En(i),!this.eCheckbox.isDisabled()&&this.beans.selectionSvc?.handleSelectionEvent(i,this.rowNode,"checkboxSelected")}}),this.addManagedListeners(this.rowNode,{rowSelected:this.onSelectionChanged.bind(this),dataChanged:this.onDataChanged.bind(this),selectableChanged:this.onSelectableChanged.bind(this)}),this.addManagedPropertyListener("rowSelection",({currentValue:i,previousValue:n})=>{const o=typeof i=="object"?Od(i):void 0,r=typeof n=="object"?Od(n):void 0;o!==r&&this.onSelectableChanged()}),zu(this.gos)||typeof this.getIsVisible()=="function"){const i=this.showOrHideSelect.bind(this);this.addManagedEventListeners({displayedColumnsChanged:i}),this.addManagedListeners(this.rowNode,{dataChanged:i,cellChanged:i}),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")}showOrHideSelect(){const{column:e,rowNode:t,overrides:s,gos:i}=this,n=t.selectable,o=this.getIsVisible();let r;if(typeof o=="function"){const u=s?.callbackParams;if(!e)r=o({...u,node:t,data:t.data});else{const h=e.createColumnFunctionCallbackParams(t);r=o({...u,...h})}}else r=o??!1;const a=n&&!r||!n&&r,l=n||r,c=i.get("rowSelection"),d=c&&typeof c!="string"?!Od(c):!!e?.getColDef().showDisabledCheckboxes;this.setVisible(l&&(a?d:!0)),this.setDisplayed(l&&(a?d:!0)),l&&this.eCheckbox.setDisabled(a),s?.removeHidden&&this.setDisplayed(l)}getIsVisible(){const e=this.overrides;if(e)return e.isVisible;const t=this.gos.get("rowSelection");return t&&typeof t!="string"?wo(t):this.column?.getColDef()?.checkboxSelection}},FL=class{constructor(e,t){this.rowModel=e,this.pinnedRowModel=t,this.selectAll=!1,this.rootId=null,this.endId=null,this.cachedRange=[]}reset(){this.rootId=null,this.endId=null,this.cachedRange.length=0}setRoot(e){this.rootId=e.id,this.endId=null,this.cachedRange.length=0}setEndRange(e){this.endId=e.id,this.cachedRange.length=0}getRange(){if(this.cachedRange.length===0){const e=this.getRoot(),t=this.getEnd();if(e==null||t==null)return this.cachedRange;this.cachedRange=this.getNodesInRange(e,t)??[]}return this.cachedRange}isInRange(e){return this.rootId===null?!1:this.getRange().some(t=>t.id===e.id)}getRoot(e){if(this.rootId)return this.getRowNode(this.rootId);if(e)return this.setRoot(e),e}getEnd(){if(this.endId)return this.getRowNode(this.endId)}getRowNode(e){let t;const{rowModel:s,pinnedRowModel:i}=this;return t??(t=s.getRowNode(e)),i?.isManual()&&(t??(t=i.getPinnedRowById(e,"top")),t??(t=i.getPinnedRowById(e,"bottom"))),t}truncate(e){const t=this.getRange();if(t.length===0)return{keep:[],discard:[]};const s=t[0].id===this.rootId,i=t.findIndex(n=>n.id===e.id);if(i>-1){const n=t.slice(0,i),o=t.slice(i+1);return this.setEndRange(e),s?{keep:n,discard:o}:{keep:o,discard:n}}else return{keep:t,discard:[]}}extend(e,t=!1){const s=this.getRoot();if(s==null){const n=this.getRange().slice();return t&&e.depthFirstSearch(o=>!o.group&&n.push(o)),n.push(e),this.setRoot(e),{keep:n,discard:[]}}const i=this.getNodesInRange(s,e);if(!i)return this.setRoot(e),{keep:[e],discard:[]};if(i.find(n=>n.id===this.endId))return this.setEndRange(e),{keep:this.getRange(),discard:[]};{const n=this.getRange().slice();return this.setEndRange(e),{keep:this.getRange(),discard:n}}}getNodesInRange(e,t){const{pinnedRowModel:s,rowModel:i}=this;if(!s?.isManual())return i.getNodesInRangeForSelection(e,t);if(e.rowPinned==="top"&&!t.rowPinned)return as(s,"top",e,void 0).concat(i.getNodesInRangeForSelection(i.getRow(0),t)??[]);if(e.rowPinned==="bottom"&&!t.rowPinned){const n=as(s,"bottom",void 0,e),o=i.getRowCount(),r=i.getRow(o-1);return(i.getNodesInRangeForSelection(t,r)??[]).concat(n)}if(!e.rowPinned&&!t.rowPinned)return i.getNodesInRangeForSelection(e,t);if(e.rowPinned==="top"&&t.rowPinned==="top")return as(s,"top",e,t);if(e.rowPinned==="bottom"&&t.rowPinned==="top"){const n=as(s,"top",t,void 0),o=as(s,"bottom",void 0,e),r=i.getRow(0),a=i.getRow(i.getRowCount()-1);return n.concat(i.getNodesInRangeForSelection(r,a)??[]).concat(o)}if(!e.rowPinned&&t.rowPinned==="top")return as(s,"top",t,void 0).concat(i.getNodesInRangeForSelection(i.getRow(0),e)??[]);if(e.rowPinned==="top"&&t.rowPinned==="bottom"){const n=as(s,"top",e,void 0),o=as(s,"bottom",void 0,t),r=i.getRow(0),a=i.getRow(i.getRowCount()-1);return n.concat(i.getNodesInRangeForSelection(r,a)??[]).concat(o)}if(e.rowPinned==="bottom"&&t.rowPinned==="bottom")return as(s,"bottom",e,t);if(!e.rowPinned&&t.rowPinned==="bottom"){const n=as(s,"bottom",void 0,t),o=i.getRow(i.getRowCount());return(i.getNodesInRangeForSelection(e,o)??[]).concat(n)}return null}},EL=class extends j{constructor(e){super(),this.column=e,this.cbSelectAllVisible=!1,this.processingEventFromCheckbox=!1}onSpaceKeyDown(e){const t=this.cbSelectAll;t.isDisplayed()&&!t.getGui().contains(ot(this.beans))&&(e.preventDefault(),t.setValue(!t.getValue()))}getCheckboxGui(){return this.cbSelectAll.getGui()}setComp(e){this.headerCellCtrl=e;const t=this.createManagedBean(new bp);this.cbSelectAll=t,t.addCss("ag-header-select-all"),xn(t.getGui(),"presentation"),this.showOrHideSelectAll();const s=this.updateStateOfCheckbox.bind(this);this.addManagedEventListeners({newColumnsLoaded:()=>this.showOrHideSelectAll(),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),selectionChanged:s,paginationChanged:s,modelUpdated:s}),this.addManagedPropertyListener("rowSelection",({currentValue:i,previousValue:n})=>{const o=r=>typeof r=="string"||!r||r.mode==="singleRow"?void 0:r.selectAll;o(i)!==o(n)&&this.showOrHideSelectAll(),this.updateStateOfCheckbox()}),this.addManagedListeners(t,{fieldValueChanged:this.onCbSelectAll.bind(this)}),t.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()}onDisplayedColumnsChanged(e){this.isAlive()&&this.showOrHideSelectAll(e.source==="uiColumnMoved")}showOrHideSelectAll(e=!1){const t=this.isCheckboxSelection();this.cbSelectAllVisible=t,this.cbSelectAll.setDisplayed(t),t&&(this.checkRightRowModelType("selectAllCheckbox"),this.checkSelectionType("selectAllCheckbox"),this.updateStateOfCheckbox()),this.refreshSelectAllLabel(e)}updateStateOfCheckbox(){if(!this.cbSelectAllVisible||this.processingEventFromCheckbox)return;this.processingEventFromCheckbox=!0;const e=this.getSelectAllMode(),t=this.beans.selectionSvc,s=this.cbSelectAll,i=t.getSelectAllState(e);s.setValue(i);const n=t.hasNodesToSelect(e);s.setDisabled(!n),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}refreshSelectAllLabel(e=!1){const t=this.getLocaleTextFunc(),{headerCellCtrl:s,cbSelectAll:i,cbSelectAllVisible:n}=this,o=i.getValue(),r=Rc(t,o),a=t("ariaRowSelectAll","Press Space to toggle all rows selection");s.setAriaDescriptionProperty("selectAll",n?`${a} (${r})`:null),i.setInputAriaLabel(t("ariaHeaderSelection","Column with Header Selection")),e||s.announceAriaDescription()}checkSelectionType(e){return _l(this.gos)?!0:(q(128,{feature:e}),!1)}checkRightRowModelType(e){const{gos:t,rowModel:s}=this.beans;return at(t)||jo(t)?!0:(q(129,{feature:e,rowModel:s.getType()}),!1)}onCbSelectAll(){if(this.processingEventFromCheckbox||!this.cbSelectAllVisible)return;const e=this.cbSelectAll.getValue(),t=this.getSelectAllMode();let s="uiSelectAll";t==="currentPage"?s="uiSelectAllCurrentPage":t==="filtered"&&(s="uiSelectAllFiltered");const i={source:s,selectAll:t},n=this.beans.selectionSvc;e?n.selectAllRowNodes(i):n.deselectAllRowNodes(i)}isCheckboxSelection(){const{column:e,gos:t,beans:s}=this,o=typeof t.get("rowSelection")=="object"?"headerCheckbox":"headerCheckboxSelection";return Y1(s,e)&&this.checkRightRowModelType(o)&&this.checkSelectionType(o)}getSelectAllMode(){const e=EC(this.gos,!1);if(e)return e;const{headerCheckboxSelectionCurrentPageOnly:t,headerCheckboxSelectionFilteredOnly:s}=this.column.getColDef();return t?"currentPage":s?"filtered":"all"}destroy(){super.destroy(),this.cbSelectAll=void 0,this.headerCellCtrl=void 0}};function Y1({gos:e,selectionColSvc:t},s){const i=e.get("rowSelection"),n=s.getColDef(),{headerCheckboxSelection:o}=n;let r=!1;if(typeof i=="object"){const l=Vi(s),c=np(s);(jl(i)==="autoGroupColumn"&&c||l&&t?.isSelectionColumnEnabled())&&(r=wl(i))}else typeof o=="function"?r=o(Se(e,{column:s,colDef:n})):r=!!o;return r}var DL=class extends j{postConstruct(){const{gos:e,beans:t}=this;this.selectionCtx=new FL(t.rowModel,t.pinnedRowModel),this.addManagedPropertyListeners(["isRowSelectable","rowSelection"],()=>{const s=zu(e);s!==this.isRowSelectable&&(this.isRowSelectable=s,this.updateSelectable())}),this.isRowSelectable=zu(e),this.addManagedEventListeners({cellValueChanged:s=>this.updateRowSelectable(s.node),rowNodeDataChanged:s=>this.updateRowSelectable(s.node)})}destroy(){super.destroy(),this.selectionCtx.reset()}createCheckboxSelectionComponent(){return new RL}createSelectAllFeature(e){if(Y1(this.beans,e))return new EL(e)}isMultiSelect(){return _l(this.gos)}onRowCtrlSelected(e,t,s){const i=!!e.rowNode.isSelected();e.forEachGui(s,n=>{n.rowComp.toggleCss("ag-row-selected",i);const o=n.element;Kv(o,i),o.contains(ot(this.beans))&&t(n)})}announceAriaRowSelection(e){if(this.isRowSelectionBlocked(e))return;const t=e.isSelected(),s=this.beans.editSvc?.isEditing({rowNode:e});if(!e.selectable||s)return;const n=this.getLocaleTextFunc()(t?"ariaRowDeselect":"ariaRowSelect",`Press SPACE to ${t?"deselect":"select"} this row`);this.beans.ariaAnnounce?.announceValue(n,"rowSelection")}isRowSelectionBlocked(e){return!e.selectable||e.rowPinned&&!Ic(e)||!hn(this.gos)}updateRowSelectable(e,t){const s=e.rowPinned&&e.pinnedSibling?e.pinnedSibling.selectable:this.isRowSelectable?.(e)??!0;return this.setRowSelectable(e,s,t),s}setRowSelectable(e,t,s){if(e.selectable!==t){if(e.selectable=t,e.dispatchRowEvent("selectableChanged"),s)return;if(Zr(this.gos)){const n=this.calculateSelectedFromChildren(e);this.setNodesSelected({nodes:[e],newValue:n??!1,source:"selectableChanged"});return}e.isSelected()&&!e.selectable&&this.setNodesSelected({nodes:[e],newValue:!1,source:"selectableChanged"})}}calculateSelectedFromChildren(e){let t=!1,s=!1;if(!e.childrenAfterGroup?.length)return e.selectable?e.__selected:null;for(let i=0;i<e.childrenAfterGroup.length;i++){const n=e.childrenAfterGroup[i];let o=n.isSelected();if(!n.selectable){const r=this.calculateSelectedFromChildren(n);if(r===null)continue;o=r}switch(o){case!0:t=!0;break;case!1:s=!0;break;default:return}}if(!(t&&s))return t?!0:s?!1:e.selectable?e.__selected:null}selectRowNode(e,t,s,i="api"){if(t&&e.destroyed)return!1;const n=!e.selectable&&t,o=e.__selected===t;if(n||o)return!1;e.__selected=t,e.dispatchRowEvent("rowSelected");const r=e.sibling;r&&r.footer&&r.__localEventService&&r.dispatchRowEvent("rowSelected");const a=e.pinnedSibling;return a?.rowPinned&&a.__localEventService&&a.dispatchRowEvent("rowSelected"),this.eventSvc.dispatchEvent({...EF(e,this.gos,"rowSelected"),event:s||null,source:i}),!0}isCellCheckboxSelection(e,t){const s=this.gos.get("rowSelection");if(s&&typeof s!="string"){const i=Vi(e)&&wo(s);return e.isColumnFunc(t,i)}else return e.isColumnFunc(t,e.colDef.checkboxSelection)}inferNodeSelections(e,t,s,i){const{gos:n,selectionCtx:o}=this,r=e.isSelected(),a=Zr(n),l=XR(n),c=QR(n),d=this.isMultiSelect(),u=i==="rowClicked";if(u&&!(l||c))return null;if(t&&s&&d){const h=o.getRoot();if(h)if(h.isSelected()){const f=o.isInRange(e)?o.truncate(e):o.extend(e,a);return{deselect:f.discard,select:f.keep,reset:!1}}else{const f=o.extend(e,a);return{select:[],deselect:f.keep,reset:!1}}else return null}else if(t&&d){const h=o.selectAll?this.beans.rowModel.getRow(0):void 0,f=o.getRoot(h),m=o.isInRange(e)?o.truncate(e):o.extend(e,a);return{select:m.keep,deselect:m.discard,reset:o.selectAll||!!(f&&!f.isSelected())}}else if(s){if(u){const h=!r;return h&&!l||!h&&!c?null:(o.setRoot(e),{node:e,newValue:h,clearSelection:!1})}return o.setRoot(e),{node:e,newValue:!r,clearSelection:!d}}else{o.setRoot(e);const h=JR(n),f=Ul(n)==="filteredDescendants",m=u&&(!h||!l);if(f&&r===void 0&&at(n))return{node:e,newValue:!1,checkFilteredNodes:!0,clearSelection:!d||m};if(u){const v=r?!h:l;return v===r&&!m||v&&!l||!v&&!c?null:{node:e,newValue:v,clearSelection:!d||m,keepDescendants:e.group&&a}}return{node:e,newValue:!r,clearSelection:!d||m}}}},PL=class extends DL{constructor(){super(...arguments),this.beanName="selectionSvc",this.selectedNodes=new Map,this.detailSelection=new Map,this.masterSelectsDetail=!1}postConstruct(){super.postConstruct();const{gos:e}=this;this.mode=Wl(e),this.groupSelectsDescendants=Zr(e),this.groupSelectsFiltered=Ul(e)==="filteredDescendants",this.masterSelectsDetail=rf(e)==="detail",this.addManagedPropertyListeners(["groupSelectsChildren","groupSelectsFiltered","rowSelection"],()=>{const t=Zr(e),s=Wl(e),i=Ul(e)==="filteredDescendants";this.masterSelectsDetail=rf(e)==="detail",(t!==this.groupSelectsDescendants||i!==this.groupSelectsFiltered||s!==this.mode)&&(this.deselectAllRowNodes({source:"api"}),this.groupSelectsDescendants=t,this.groupSelectsFiltered=i,this.mode=s)}),this.addManagedEventListeners({rowSelected:this.onRowSelected.bind(this)})}destroy(){super.destroy(),this.resetNodes()}handleSelectionEvent(e,t,s){if(this.isRowSelectionBlocked(t))return 0;const i=this.inferNodeSelections(t,e.shiftKey,e.metaKey||e.ctrlKey,s);if(i==null)return 0;if(this.selectionCtx.selectAll=!1,"select"in i)return i.reset?this.resetNodes():this.selectRange(i.deselect,!1,s),this.selectRange(i.select,!0,s);{const n=i.checkFilteredNodes?X1(i.node):i.newValue;return this.setNodesSelected({nodes:[i.node],newValue:n,clearSelection:i.clearSelection,keepDescendants:i.keepDescendants,event:e,source:s})}}setNodesSelected({newValue:e,clearSelection:t,suppressFinishActions:s,nodes:i,event:n,source:o,keepDescendants:r=!1}){if(i.length===0)return 0;const{gos:a}=this;if(!hn(a)&&e)return q(132),0;if(i.length>1&&!this.isMultiSelect())return q(130),0;let l=0;for(let c=0;c<i.length;c++){const d=i[c],u=d.primaryRow;if(u.rowPinned&&!Ic(u)){q(59);continue}if(u.id===void 0){q(60);continue}if(e&&d.destroyed)continue;this.groupSelectsFiltered&&u.group&&!a.get("treeData")||this.selectRowNode(u,e,n,o)&&(this.detailSelection.delete(u.id),l++),this.groupSelectsDescendants&&u.childrenAfterGroup?.length&&(l+=this.selectChildren(u,e,o))}return s||(i.length===1&&o==="api"&&this.selectionCtx.setRoot(i[0].primaryRow),e&&(t||!this.isMultiSelect())&&(l+=this.clearOtherNodes(i[0].primaryRow,r,o)),l>0&&(this.updateGroupsFromChildrenSelections(o),this.dispatchSelectionChanged(o))),l}selectRange(e,t,s){let i=0;return e.forEach(n=>{const o=n.primaryRow;if(o.group&&this.groupSelectsDescendants)return;this.selectRowNode(o,t,void 0,s)&&i++}),i>0&&(this.updateGroupsFromChildrenSelections(s),this.dispatchSelectionChanged(s)),i}selectChildren(e,t,s){const i=this.groupSelectsFiltered?e.childrenAfterAggFilter:e.childrenAfterGroup;return i?this.setNodesSelected({newValue:t,clearSelection:!1,suppressFinishActions:!0,source:s,nodes:i}):0}getSelectedNodes(){return Array.from(this.selectedNodes.values())}getSelectedRows(){const e=[];return this.selectedNodes.forEach(t=>t.data&&e.push(t.data)),e}getSelectionCount(){return this.selectedNodes.size}filterFromSelection(e){const t=new Map;this.selectedNodes.forEach((s,i)=>{e(s)&&t.set(i,s)}),this.selectedNodes=t}updateGroupsFromChildrenSelections(e,t){if(!this.groupSelectsDescendants)return!1;const{gos:s,rowModel:i}=this.beans;if(!at(s))return!1;const n=i.rootNode;if(!n)return!1;let o=!1;const r=a=>{if(a!==n){const l=this.calculateSelectedFromChildren(a);o=this.selectRowNode(a,l===null?!1:l,void 0,e)||o}};return kn(n,this.beans.rowModel.hierarchical,t,r),o}clearOtherNodes(e,t,s){const i=new Map;let n=0;return this.selectedNodes.forEach(o=>{const r=o.id==e.id;if((t?!kL(e,o):!0)&&!r){const l=this.selectedNodes.get(o.id);n+=this.setNodesSelected({nodes:[l],newValue:!1,clearSelection:!1,suppressFinishActions:!0,source:s}),this.groupSelectsDescendants&&o.parent&&i.set(o.parent.id,o.parent)}}),i.forEach(o=>{const r=this.calculateSelectedFromChildren(o);this.selectRowNode(o,r===null?!1:r,void 0,s)}),n}onRowSelected(e){const t=e.node;this.groupSelectsDescendants&&t.group||(t.isSelected()?this.selectedNodes.set(t.id,t):this.selectedNodes.delete(t.id))}syncInRowNode(e,t){this.syncInOldRowNode(e,t),this.syncInNewRowNode(e)}createDaemonNode(e){if(!e.id)return;const t=new Li(this.beans);return t.id=e.id,t.data=e.data,t.__selected=e.__selected,t.level=e.level,t}syncInOldRowNode(e,t){t&&e.id!==t.id&&this.selectedNodes.get(t.id)==e&&this.selectedNodes.set(t.id,t)}syncInNewRowNode(e){this.selectedNodes.has(e.id)?(e.__selected=!0,this.selectedNodes.set(e.id,e)):e.__selected=!1}reset(e){const t=this.getSelectionCount();this.resetNodes(),t&&this.dispatchSelectionChanged(e)}resetNodes(){this.selectedNodes.forEach(e=>{this.selectRowNode(e,!1)}),this.selectedNodes.clear()}getBestCostNodeSelection(){const{gos:e,rowModel:t}=this.beans;if(!at(e))return;const s=t.getTopLevelNodes();if(s===null)return;const i=[];function n(o){for(let r=0,a=o.length;r<a;r++){const l=o[r];l.isSelected()?i.push(l):l.group&&l.childrenAfterGroup&&n(l.childrenAfterGroup)}}return n(s),i}isEmpty(){return this.getSelectionCount()===0}deselectAllRowNodes({source:e,selectAll:t}){const s=at(this.gos);let i=!1;const n=o=>{const r=this.selectRowNode(o.primaryRow,!1,void 0,e);i||(i=r)};if(t==="currentPage"||t==="filtered"){if(!s){Ue(102);return}this.getNodesToSelect(t).forEach(n)}else this.selectedNodes.forEach(n),this.reset(e);if(this.selectionCtx.selectAll=!1,s&&this.groupSelectsDescendants){const o=this.updateGroupsFromChildrenSelections(e);i||(i=o)}i&&this.dispatchSelectionChanged(e)}getSelectedCounts(e){let t=0,s=0;return this.getNodesToSelect(e).forEach(i=>{this.groupSelectsDescendants&&i.group||(i.isSelected()?t++:i.selectable&&s++)}),{selectedCount:t,notSelectedCount:s}}getSelectAllState(e){const{selectedCount:t,notSelectedCount:s}=this.getSelectedCounts(e);return Z1(t,s)??null}hasNodesToSelect(e){return this.getNodesToSelect(e).filter(t=>t.selectable).length>0}getNodesToSelect(e){if(!this.canSelectAll())return[];const t=[],s=n=>t.push(n);if(e==="currentPage")return this.forEachNodeOnPage(n=>{if(!n.group){s(n);return}if(!n.footer&&!n.expanded){const o=r=>{s(r);const a=r.childrenAfterFilter;if(a)for(let l=0,c=a.length;l<c;++l)o(a[l])};o(n);return}this.groupSelectsDescendants||s(n)}),t;const i=this.beans.rowModel;return e==="filtered"?(i.forEachNodeAfterFilter(s),t):(i.forEachNode(s),t)}forEachNodeOnPage(e){const{pageBounds:t,rowModel:s}=this.beans,i=t.getFirstRow(),n=t.getLastRow();for(let o=i;o<=n;o++){const r=s.getRow(o);r&&e(r)}}selectAllRowNodes(e){const{gos:t,selectionCtx:s}=this;if(!hn(t)){q(132);return}if(ZR(t)&&!_l(t)){q(130);return}if(!this.canSelectAll())return;const{source:i,selectAll:n}=e;let o=!1;if(this.getNodesToSelect(n).forEach(r=>{const a=this.selectRowNode(r.primaryRow,!0,void 0,i);o||(o=a)}),s.selectAll=!0,at(t)&&this.groupSelectsDescendants){const r=this.updateGroupsFromChildrenSelections(i);o||(o=r)}o&&this.dispatchSelectionChanged(i)}getSelectionState(){return this.isEmpty()?null:Array.from(this.selectedNodes.keys())}setSelectionState(e,t,s){if(e||(e=[]),!Array.isArray(e)){Ue(103);return}const i=new Set(e),n=[];this.beans.rowModel.forEachNode(o=>{i.has(o.id)&&n.push(o)}),s&&this.resetNodes(),this.setNodesSelected({newValue:!0,nodes:n,source:t})}canSelectAll(){return at(this.beans.gos)}updateSelectable(e){const{gos:t,rowModel:s}=this.beans;if(!hn(t))return;const i="selectableChanged",n=at(t)&&this.groupSelectsDescendants,o=[];if(n){const r=s.rootNode;r&&kn(r,s.hierarchical,e,a=>{let l=!1;for(const c of a.childrenAfterGroup)l||(l=c.selectable),!c.group&&!this.updateRowSelectable(c,!0)&&c.isSelected()&&o.push(c);this.setRowSelectable(a,l,!0)})}else s.forEachNode(r=>{!this.updateRowSelectable(r,!0)&&r.isSelected()&&o.push(r)});o.length&&this.setNodesSelected({nodes:o,newValue:!1,source:i}),!e&&n&&this.updateGroupsFromChildrenSelections?.(i)}updateSelectableAfterGrouping(e){this.updateSelectable(e),this.groupSelectsDescendants&&this.updateGroupsFromChildrenSelections?.("rowGroupChanged",e)&&this.dispatchSelectionChanged("rowGroupChanged")}refreshMasterNodeState(e,t){if(!this.masterSelectsDetail)return;const s=e.detailNode?.detailGridInfo?.api;if(!s)return;const i=TL(s);e.isSelected()!==i&&this.selectRowNode(e,i,t,"masterDetail")&&this.dispatchSelectionChanged("masterDetail"),i||this.detailSelection.set(e.id,new Set(s.getSelectedNodes().map(o=>o.id)))}setDetailSelectionState(e,t,s){if(this.masterSelectsDetail){if(!_l(t)){q(269);return}switch(e.isSelected()){case!0:{s.selectAll();break}case!1:{s.deselectAll();break}case void 0:{const i=this.detailSelection.get(e.id);if(i){const n=[];for(const o of i){const r=s.getRowNode(o);r&&n.push(r)}s.setNodesSelected({nodes:n,newValue:!0,source:"masterDetail"})}break}}}}dispatchSelectionChanged(e){this.eventSvc.dispatchEvent({type:"selectionChanged",source:e,selectedNodes:this.getSelectedNodes(),serverSideState:null})}};function TL(e){let t=0,s=0;return e.forEachNode(i=>{i.isSelected()?t++:i.selectable&&s++}),Z1(t,s)}function Z1(e,t){if(e===0&&t===0)return!1;if(!(e>0&&t>0))return e>0}function kL(e,t){let s=t.parent;for(;s;){if(s===e)return!0;s=s.parent}return!1}function X1(e){const t=e.isSelected()===!1,s=e.childrenAfterFilter?.some(X1)??!1;return t||s}var IL={moduleName:"SharedRowSelection",version:J,beans:[hL],css:[pL],apiFunctions:{setNodesSelected:gL,selectAll:fL,deselectAll:mL,selectAllFiltered:vL,deselectAllFiltered:CL,selectAllOnCurrentPage:wL,deselectAllOnCurrentPage:bL,getSelectedNodes:xL,getSelectedRows:yL}},ML={moduleName:"RowSelection",version:J,rowModels:["clientSide","infinite","viewport"],beans:[PL],dependsOn:[IL]},AL=class extends j{constructor(e,t){super(),this.cellCtrl=e,this.staticClasses=[],this.beans=t,this.column=e.column}setComp(e){this.cellComp=e,this.applyUserStyles(),this.applyCellClassRules(),this.applyClassesFromColDef()}applyCellClassRules(){const{column:e,cellComp:t}=this,s=e.colDef,i=s.cellClassRules,n=this.getCellClassParams(e,s);Tp(this.beans.expressionSvc,i===this.cellClassRules?void 0:this.cellClassRules,i,n,o=>t.toggleCss(o,!0),o=>t.toggleCss(o,!1)),this.cellClassRules=i}applyUserStyles(){const e=this.column,t=e.colDef,s=t.cellStyle;if(!s)return;let i;if(typeof s=="function"){const n=this.getCellClassParams(e,t);i=s(n)}else i=s;i&&this.cellComp.setUserStyles(i)}applyClassesFromColDef(){const{column:e,cellComp:t}=this,s=e.colDef,i=this.getCellClassParams(e,s);for(const o of this.staticClasses)t.toggleCss(o,!1);const n=this.beans.cellStyles.getStaticCellClasses(s,i);this.staticClasses=n;for(const o of n)t.toggleCss(o,!0)}getCellClassParams(e,t){const{value:s,rowNode:i}=this.cellCtrl;return Se(this.beans.gos,{value:s,data:i.data,node:i,colDef:t,column:e,rowIndex:i.rowIndex})}},LL=class extends j{constructor(){super(...arguments),this.beanName="cellStyles"}processAllCellClasses(e,t,s,i){Tp(this.beans.expressionSvc,void 0,e.cellClassRules,t,s,i),this.processStaticCellClasses(e,t,s)}getStaticCellClasses(e,t){const{cellClass:s}=e;if(!s)return[];let i;return typeof s=="function"?i=s(t):i=s,typeof i=="string"&&(i=[i]),i||[]}createCellCustomStyleFeature(e){return new AL(e,this.beans)}processStaticCellClasses(e,t,s){this.getStaticCellClasses(e,t).forEach(n=>{s(n)})}},OL={moduleName:"CellStyle",version:J,beans:[LL]},NL={moduleName:"RowStyle",version:J,beans:[kT]},HL={enableBrowserTooltips:!0,tooltipTrigger:!0,tooltipMouseTrack:!0,tooltipShowMode:!0,tooltipInteraction:!0,defaultColGroupDef:!0,suppressAutoSize:!0,skipHeaderOnAutoSize:!0,autoSizeStrategy:!0,components:!0,stopEditingWhenCellsLoseFocus:!0,undoRedoCellEditing:!0,undoRedoCellEditingLimit:!0,excelStyles:!0,cacheQuickFilter:!0,customChartThemes:!0,chartThemeOverrides:!0,chartToolPanelsDef:!0,loadingCellRendererSelector:!0,localeText:!0,keepDetailRows:!0,keepDetailRowsCount:!0,detailRowHeight:!0,detailRowAutoHeight:!0,tabIndex:!0,valueCache:!0,valueCacheNeverExpires:!0,enableCellExpressions:!0,suppressTouch:!0,suppressBrowserResizeObserver:!0,suppressPropertyNamesCheck:!0,debug:!0,dragAndDropImageComponent:!0,overlayComponent:!0,suppressOverlays:!0,loadingOverlayComponent:!0,suppressLoadingOverlay:!0,noRowsOverlayComponent:!0,paginationPageSizeSelector:!0,paginateChildRows:!0,pivotPanelShow:!0,pivotSuppressAutoColumn:!0,suppressExpandablePivotGroups:!0,aggFuncs:!0,allowShowChangeAfterFilter:!0,ensureDomOrder:!0,enableRtl:!0,suppressColumnVirtualisation:!0,suppressMaxRenderedRowRestriction:!0,suppressRowVirtualisation:!0,rowDragText:!0,groupLockGroupColumns:!0,suppressGroupRowsSticky:!0,rowModelType:!0,cacheOverflowSize:!0,infiniteInitialRowCount:!0,serverSideInitialRowCount:!0,maxBlocksInCache:!0,maxConcurrentDatasourceRequests:!0,blockLoadDebounceMillis:!0,serverSideOnlyRefreshFilteredGroups:!0,serverSidePivotResultFieldSeparator:!0,viewportRowModelPageSize:!0,viewportRowModelBufferSize:!0,debounceVerticalScrollbar:!0,suppressAnimationFrame:!0,suppressPreventDefaultOnMouseWheel:!0,scrollbarWidth:!0,icons:!0,suppressRowTransform:!0,gridId:!0,enableGroupEdit:!0,initialState:!0,processUnpinnedColumns:!0,createChartContainer:!0,getLocaleText:!0,getRowId:!0,reactiveCustomComponents:!0,renderingMode:!0,columnMenu:!0,suppressSetFilterByDefault:!0,getDataPath:!0,enableCellSpan:!0,enableFilterHandlers:!0,filterHandlers:!0},jt="clientSide",Pt="serverSide",no="infinite",BL={onGroupExpandedOrCollapsed:[jt],refreshClientSideRowModel:[jt],isRowDataEmpty:[jt],forEachLeafNode:[jt],forEachNodeAfterFilter:[jt],forEachNodeAfterFilterAndSort:[jt],resetRowHeights:[jt,Pt],applyTransaction:[jt],applyTransactionAsync:[jt],flushAsyncTransactions:[jt],getBestCostNodeSelection:[jt],getServerSideSelectionState:[Pt],setServerSideSelectionState:[Pt],applyServerSideTransaction:[Pt],applyServerSideTransactionAsync:[Pt],applyServerSideRowData:[Pt],retryServerSideLoads:[Pt],flushServerSideAsyncTransactions:[Pt],refreshServerSide:[Pt],getServerSideGroupLevelState:[Pt],refreshInfiniteCache:[no],purgeInfiniteCache:[no],getInfiniteRowCount:[no],isLastRowIndexKnown:[no,Pt],expandAll:[jt,Pt],collapseAll:[jt,Pt],onRowHeightChanged:[jt,Pt],setRowCount:[no,Pt],getCacheBlockState:[no,Pt]},GL={showLoadingOverlay:{version:"v32",message:'`showLoadingOverlay` is deprecated. Use the grid option "loading"=true instead or setGridOption("loading", true).'},clearRangeSelection:{version:"v32.2",message:"Use `clearCellSelection` instead."},getInfiniteRowCount:{version:"v32.2",old:"getInfiniteRowCount()",new:"getDisplayedRowCount()"},selectAllFiltered:{version:"v33",old:"selectAllFiltered()",new:'selectAll("filtered")'},deselectAllFiltered:{version:"v33",old:"deselectAllFiltered()",new:'deselectAll("filtered")'},selectAllOnCurrentPage:{version:"v33",old:"selectAllOnCurrentPage()",new:'selectAll("currentPage")'},deselectAllOnCurrentPage:{version:"v33",old:"deselectAllOnCurrentPage()",new:'deselectAll("currentPage")'}};function VL(e,t,s){const i=GL[e];if(i){const{version:o,new:r,old:a,message:l}=i,c=a??e;return(...d)=>{const u=r?`Please use ${r} instead. `:"";return kr(`Since ${o} api.${c} is deprecated. ${u}${l??""}`),t.apply(t,d)}}const n=BL[e];return n?(...o)=>{const r=s.rowModel.getType();if(!n.includes(r)){mo(`api.${e} can only be called when gridOptions.rowModelType is ${n.join(" or ")}`);return}return t.apply(t,o)}:t}var zL={detailCellRendererCtrl:"SharedMasterDetail",dndSourceComp:"DragAndDrop",fillHandle:"CellSelection",groupCellRendererCtrl:"GroupCellRenderer",headerFilterCellCtrl:"ColumnFilter",headerGroupCellCtrl:"ColumnGroup",rangeHandle:"CellSelection",tooltipFeature:"Tooltip",highlightTooltipFeature:"Tooltip",tooltipStateManager:"Tooltip",groupStrategy:"RowGrouping",treeGroupStrategy:"TreeData",rowNumberRowResizer:"RowNumbers",singleCell:"EditCore",fullRow:"EditCore",agSetColumnFilterHandler:"SetFilter",agMultiColumnFilterHandler:"MultiFilter",agGroupColumnFilterHandler:"GroupFilter",agNumberColumnFilterHandler:"NumberFilter",agBigIntColumnFilterHandler:"BigIntFilter",agDateColumnFilterHandler:"DateFilter",agTextColumnFilterHandler:"TextFilter"},jL={expanded:1,contracted:1,"tree-closed":1,"tree-open":1,"tree-indeterminate":1,pin:1,"eye-slash":1,arrows:1,left:1,right:1,group:1,aggregation:1,pivot:1,"not-allowed":1,chart:1,cross:1,cancel:1,tick:1,first:1,previous:1,next:1,last:1,linked:1,unlinked:1,"color-picker":1,loading:1,menu:1,"menu-alt":1,filter:1,"filter-add":1,columns:1,maximize:1,minimize:1,copy:1,cut:1,paste:1,grip:1,save:1,csv:1,excel:1,"small-down":1,"small-left":1,"small-right":1,"small-up":1,asc:1,desc:1,aasc:1,adesc:1,none:1,up:1,down:1,plus:1,minus:1,settings:1,"checkbox-checked":1,"checkbox-indeterminate":1,"checkbox-unchecked":1,"radio-button-on":1,"radio-button-off":1,eye:1,"column-arrow":1,"un-pin":1,"pinned-top":1,"pinned-bottom":1,"chevron-up":1,"chevron-down":1,"chevron-left":1,"chevron-right":1,edit:1},WL={chart:"MenuCore",cancel:"EnterpriseCore",first:"Pagination",previous:"Pagination",next:"Pagination",last:"Pagination",linked:"IntegratedCharts",loadingMenuItems:"MenuCore",unlinked:"IntegratedCharts",menu:"ColumnHeaderComp",legacyMenu:"ColumnMenu",filter:"ColumnFilter",filterActive:"ColumnFilter",filterAdd:"NewFiltersToolPanel",filterCardCollapse:"NewFiltersToolPanel",filterCardExpand:"NewFiltersToolPanel",filterCardEditing:"NewFiltersToolPanel",filterTab:"ColumnMenu",filtersToolPanel:"FiltersToolPanel",columns:["MenuCore"],columnsToolPanel:["ColumnsToolPanel"],maximize:"EnterpriseCore",minimize:"EnterpriseCore",save:"MenuCore",columnGroupOpened:"ColumnGroupHeaderComp",columnGroupClosed:"ColumnGroupHeaderComp",accordionOpen:"EnterpriseCore",accordionClosed:"EnterpriseCore",accordionIndeterminate:"EnterpriseCore",columnSelectClosed:["ColumnsToolPanel","ColumnMenu"],columnSelectOpen:["ColumnsToolPanel","ColumnMenu"],columnSelectIndeterminate:["ColumnsToolPanel","ColumnMenu"],columnMovePin:"SharedDragAndDrop",columnMoveHide:"SharedDragAndDrop",columnMoveMove:"SharedDragAndDrop",columnMoveLeft:"SharedDragAndDrop",columnMoveRight:"SharedDragAndDrop",columnMoveGroup:"SharedDragAndDrop",columnMoveValue:"SharedDragAndDrop",columnMovePivot:"SharedDragAndDrop",dropNotAllowed:"SharedDragAndDrop",ensureColumnVisible:["ColumnsToolPanel","ColumnMenu"],groupContracted:"GroupCellRenderer",groupExpanded:"GroupCellRenderer",setFilterGroupClosed:"SetFilter",setFilterGroupOpen:"SetFilter",setFilterGroupIndeterminate:"SetFilter",setFilterLoading:"SetFilter",close:"EnterpriseCore",check:"MenuItem",colorPicker:"CommunityCore",groupLoading:"LoadingCellRenderer",overlayLoading:"Overlay",overlayExporting:"Overlay",menuAlt:"ColumnHeaderComp",menuPin:"MenuCore",menuValue:"MenuCore",menuAddRowGroup:["MenuCore","ColumnsToolPanel"],menuRemoveRowGroup:["MenuCore","ColumnsToolPanel"],clipboardCopy:"MenuCore",clipboardCut:"MenuCore",clipboardPaste:"MenuCore",pivotPanel:["ColumnsToolPanel","RowGroupingPanel"],rowGroupPanel:["ColumnsToolPanel","RowGroupingPanel"],valuePanel:"ColumnsToolPanel",columnDrag:"EnterpriseCore",rowDrag:["RowDrag","DragAndDrop"],csvExport:"MenuCore",excelExport:"MenuCore",smallDown:"CommunityCore",selectOpen:"CommunityCore",richSelectOpen:"RichSelect",richSelectRemove:"RichSelect",richSelectLoading:"RichSelect",smallLeft:"CommunityCore",smallRight:"CommunityCore",subMenuOpen:"MenuItem",subMenuOpenRtl:"MenuItem",panelDelimiter:"RowGroupingPanel",panelDelimiterRtl:"RowGroupingPanel",smallUp:"CommunityCore",sortAscending:["MenuCore","Sort"],sortDescending:["MenuCore","Sort"],sortAbsoluteAscending:["MenuCore","Sort"],sortAbsoluteDescending:["MenuCore","Sort"],sortUnSort:["MenuCore","Sort"],advancedFilterBuilder:"AdvancedFilter",advancedFilterBuilderDrag:"AdvancedFilter",advancedFilterBuilderInvalid:"AdvancedFilter",advancedFilterBuilderMoveUp:"AdvancedFilter",advancedFilterBuilderMoveDown:"AdvancedFilter",advancedFilterBuilderAdd:"AdvancedFilter",advancedFilterBuilderRemove:"AdvancedFilter",advancedFilterBuilderSelectOpen:"AdvancedFilter",chartsMenu:"IntegratedCharts",chartsMenuEdit:"IntegratedCharts",chartsMenuAdvancedSettings:"IntegratedCharts",chartsMenuAdd:"IntegratedCharts",chartsColorPicker:"IntegratedCharts",chartsThemePrevious:"IntegratedCharts",chartsThemeNext:"IntegratedCharts",chartsDownload:"IntegratedCharts",checkboxChecked:"CommunityCore",checkboxIndeterminate:"CommunityCore",checkboxUnchecked:"CommunityCore",radioButtonOn:"CommunityCore",radioButtonOff:"CommunityCore",rowPin:"PinnedRow",rowUnpin:"PinnedRow",rowPinBottom:"PinnedRow",rowPinTop:"PinnedRow"},_L=new Set(["colorPicker","smallUp","checkboxChecked","checkboxIndeterminate","checkboxUnchecked","radioButtonOn","radioButtonOff","smallDown","smallLeft","smallRight"]),UL=class extends j{constructor(){super(...arguments),this.beanName="validation"}wireBeans(e){this.gridOptions=e.gridOptions,NR(jk)}warnOnInitialPropertyUpdate(e,t){e==="api"&&HL[t]&&q(22,{key:t})}processGridOptions(e){this.processOptions(e,I6())}validateApiFunction(e,t){return VL(e,t,this.beans)}missingUserComponent(e,t,s,i){const n=Ro[t];n?this.gos.assertModuleRegistered(n,`AG Grid '${e}' component: ${t}`):q(101,{propertyName:e,componentName:t,agGridDefaults:s,jsComps:i})}missingDynamicBean(e){const t=zL[e];return t?Hs(200,{...this.gos.getModuleErrorParams(),moduleName:t,reasonOrId:e}):void 0}checkRowEvents(e){qL.has(e)&&q(10,{eventType:e})}validateIcon(e){if(_L.has(e)&&q(43,{iconName:e}),jL[e])return;const t=WL[e];if(t){Ue(200,{reasonOrId:`icon '${e}'`,moduleName:t,gridScoped:Jh(),gridId:this.beans.context.getId(),rowModelType:this.gos.get("rowModelType"),additionalText:"Alternatively, use the CSS icon name directly."});return}q(134,{iconName:e})}isProvidedUserComp(e){return!!Ro[e]}validateColDef(e){this.processOptions(e,b6())}processOptions(e,t){const{validations:s,deprecations:i,allProperties:n,propertyExceptions:o,objectName:r,docsUrl:a}=t;n&&this.gridOptions.suppressPropertyNamesCheck!==!0&&this.checkProperties(e,[...o??[],...Object.keys(i)],n,r,a);const l=new Set;if(Object.keys(e).forEach(d=>{const u=i[d];if(u){const{message:b,version:x}=u;l.add(`As of v${x}, ${String(d)} is deprecated. ${b??""}`)}const h=e[d];if(h==null||h===!1)return;const f=s[d];if(!f)return;const{dependencies:m,validate:v,supportedRowModels:C,expectedType:w}=f;if(w){const b=typeof h;if(b!==w){l.add(`${String(d)} should be of type '${w}' but received '${b}' (${h}).`);return}}if(C){const b=this.gridOptions.rowModelType??"clientSide";if(!C.includes(b)){l.add(`${String(d)} is not supported with the '${b}' row model. It is only valid with: ${C.join(", ")}.`);return}}if(m){const b=this.checkForRequiredDependencies(d,m,e);if(b){l.add(b);return}}if(v){const b=v(e,this.gridOptions,this.beans);if(b){l.add(b);return}}}),l.size>0)for(const d of l)kr(d)}checkForRequiredDependencies(e,t,s){const n=Object.entries(t).filter(([o,r])=>{const a=s[o];return!r.required.includes(a)});return n.length===0?null:n.map(([o,r])=>`'${String(e)}' requires '${o}' to be one of [${r.required.map(a=>a===null?"null":a===void 0?"undefined":a).join(", ")}]. ${r.reason??""}`).join(`
|
|
67
67
|
`)}checkProperties(e,t,s,i,n){const o=["__ob__","__v_skip","__metadata__"],r=$L(Object.getOwnPropertyNames(e),[...o,...t,...s],s),a=Object.keys(r);for(const l of a){const c=r[l];let d=`invalid ${i} property '${l}' did you mean any of these: ${c.slice(0,8).join(", ")}.`;s.includes("context")&&(d+=`
|
|
68
|
-
If you are trying to annotate ${i} with application data, use the '${i}.context' property instead.`),kr(d)}if(a.length>0&&n){const l=this.beans.frameworkOverrides.getDocLink(n);kr(`to see all the valid ${i} properties please check: ${l}`)}}};function $L(e,t,s){const i={},n=e.filter(o=>!t.some(r=>r===o));if(n.length>0)for(const o of n)i[o]=rh({inputValue:o,allSuggestions:s}).values;return i}var qL=new Set(["firstChildChanged","lastChildChanged","childIndexChanged"]),KL={moduleName:"Validation",version:J,beans:[UL]},YL={moduleName:"AllCommunity",version:J,dependsOn:[WI,uM,Z7,KL,B8,G8,V8,z8,j8,W8,_8,H8,L7,O7,N7,H7,A7,G7,V7,d9,Yk,I9,Iw,lI,cI,sL,ZI,AD,B9,ML,Pk,OL,tM,NL,s9,Ik,K9,y1,n9,nL,MD,_I,uL]};function de(e,t={}){const s=Object.keys(t).map(i=>{const n=t[i];return n!=null?`${i}=${n}`:null}).filter(Boolean).join(";");return[e,s].filter(i=>i.length>0).join(":")}var ae={grid(e){return de("ag-grid-root",{gridId:e})},headerGroupCell(e){return de("ag-header-group-cell",{colId:e})},headerCell(e){return de("ag-header-cell",{colId:e})},headerCheckbox(e){return de("ag-header-selection-checkbox",{colId:e})},headerFilterButton(e){return de("ag-header-cell-filter-button",{colId:e})},floatingFilter(e){return de("ag-floating-filter",{colId:e})},floatingFilterButton(e){return de("ag-floating-filter-button",{colId:e})},headerCellMenuButton(e){return de("ag-header-cell-menu-button",{colId:e})},headerResizeHandle(e){return de("ag-header-cell-resize",{colId:e})},filterInstancePickerDisplay(e){return de(`ag-${e.source}-picker-display`,ul(e))},numberFilterInstanceInput(e){return de(`ag-${e.source}-number-input`,ul(e))},textFilterInstanceInput(e){return de(`ag-${e.source}-text-input`,ul(e))},dateFilterInstanceInput(e){return de(`ag-${e.source}-date-input`,ul(e))},setFilterInstanceMiniFilterInput(e){return de(`ag-${e.source}-set-filter-mini-filter-input`,e.source==="filter-toolpanel"?{label:e.colLabel}:{colId:e.colId})},setFilterInstanceItem(e,t){return de(`ag-${e.source}-set-filter-item`,e.source==="filter-toolpanel"?{colLabel:e.colLabel,itemLabel:t}:{colId:e.colId,itemLabel:t})},setFilterApplyPanelButton(e,t){return de(`ag-${e.source}-set-filter-apply-panel-button`,e.source==="filter-toolpanel"?{colLabel:e.colLabel,buttonLabel:t}:{colId:e.colId,buttonLabel:t})},filterConditionRadioButton(e,t){return de(`ag-${e.source}-filter-condition-radio-button`,e.source==="filter-toolpanel"?{colLabel:e.colLabel,buttonLabel:t}:{colId:e.colId,buttonLabel:t})},advancedFilterInput(){return de("ag-advanced-filter-input")},advancedFilterButton(e){return de("ag-advanced-filter-button",{label:e})},advancedFilterBuilderButton(){return de("ag-advanced-filter-builder-button")},advancedFilterPanelMaximiseButton(){return de("ag-advanced-filter-builder-panel-maximise")},advancedFilterPanelCloseButton(){return de("ag-advanced-filter-builder-panel-close")},advancedFilterPill(e){return de("ag-advanced-filter-builder-pill",{label:e})},advancedFilterBuilderAddItemButton(){return de("ag-advanced-filter-builder-add-item-button")},rowNode(e){return de("ag-row",{"row-id":e})},cell(e,t){return de("ag-cell",{"row-id":e,colId:t})},autoGroupCell(e){return ae.cell(e,Ei)},checkbox(e,t){return de("ag-selection-checkbox",{"row-id":e,colId:t})},selectionColumnCheckbox(e){return ae.checkbox(e,sp)},autoGroupColumnCheckbox(e){return ae.checkbox(e,Ei)},dragHandle(e,t){return de("ag-drag-handle",{"row-id":e,colId:t})},groupContracted(e,t){return de("ag-group-contracted",{"row-id":e,colId:t})},groupExpanded(e,t){return de("ag-group-expanded",{"row-id":e,colId:t})},autoGroupContracted(e){return ae.groupContracted(e,Ei)},autoGroupExpanded(e){return ae.groupExpanded(e,Ei)},rowNumber(e){return ae.cell(e,ip)},menu(){return de("ag-menu")},menuOption(e){return de("ag-menu-option",{option:e})},sideBar(){return de("ag-side-bar")},sideBarButton(e){return de("ag-side-button",{label:e})},columnToolPanel(){return de("ag-column-panel")},pivotModeSelect(){return de("ag-pivot-mode-select")},columnPanelSelectHeaderCheckbox(){return de("ag-column-panel-select-header-checkbox")},columnPanelSelectHeaderFilter(){return de("ag-column-panel-select-header-filter")},columnSelectListItemGroupClosedIcon(e){return de("ag-column-select-list-item-group-closed-icon",{label:e})},columnSelectListItemCheckbox(e){return de("ag-column-select-list-item-checkbox",{label:e})},columnSelectListItemDragHandle(e){return de("ag-column-select-list-item-drag-handle",{label:e})},columnDropCellDragHandle(e,t,s){return de("ag-column-drop-cell-drag-handle",{source:e,area:t,label:s})},columnDropCellCancelButton(e,t,s){return de("ag-column-drop-cell-cancel",{source:e,area:t,label:s})},columnDropArea(e,t){return de("ag-column-drop-area",{source:e,name:t})},filterToolPanel(){return de("ag-filter-panel")},filterToolPanelAddFilterButton(){return de("ag-filter-panel-add-filter-button")},filterToolPanelFilterTypeSelector(e){return de("ag-filter-panel-filter-type-selector",{colLabel:e})},filterToolPanelSearchInput(){return de("ag-filter-toolpanel-search-input")},filterToolPanelGroup(e){return de("ag-filter-toolpanel-group",{title:e})},filterToolPanelGroupCollapsedIcon(e){return de("ag-filter-toolpanel-group-collapsed-icon",{title:e})},statusBarTotalAndFilteredRowCount(){return de("ag-status-bar-total-and-filtered-row-count")},statusBarTotalRowCount(){return de("ag-status-bar-total-row-count")},statusBarFilteredRowCount(){return de("ag-status-bar-filtered-row-count")},statusBarSelectedRowCount(){return de("ag-status-bar-selected-row-count")},statusBarAggregations(){return de("ag-status-bar-aggregations")},paginationPanelSizePickerDisplay(e){return de("ag-pagination-page-size-picker-field-display",{value:e})},paginationPanelFirstRowOnPage(e){return de("ag-paging-row-summary-panel-first-row-on-page",{value:e})},paginationPanelLastRowOnPage(e){return de("ag-paging-row-summary-panel-last-row-on-page",{value:e})},paginationPanelRecordCount(e){return de("ag-paging-row-summary-panel-record-count",{value:e})},paginationSummaryPanelButton(e){return de("ag-paging-page-summary-panel-btn",{label:e})},paginationSummaryPanelCurrentPage(e){return de("ag-paging-page-summary-panel-current-page",{value:e})},paginationSummaryPanelTotalPage(e){return de("ag-paging-page-summary-panel-total-page",{value:e})},fillHandle(){return de("ag-fill-handle")},columnChooserCloseButton(){return de("ag-column-chooser-close-button")},columnChooserSearchBarCheckbox(){return de("ag-column-chooser-header-checkbox")},columnChooserSearchBarFilter(){return de("ag-column-chooser-searchbar-filter")},columnChooserListItemGroupClosedIcon(e){return de("ag-column-chooser-list-item-group-closed-icon",{label:e})},columnChooserListItemCheckbox(e){return de("ag-column-chooser-list-item-checkbox",{label:e})},columnChooserListItemDragHandle(e){return de("ag-column-chooser-list-item-drag-handle",{label:e})},overlay(){return de("ag-overlay")}};function ZL(e,t){const s={};for(const i of Object.keys(e))t[i]!==null&&(s[t[i]??i]=e[i]);return s}function XL(e){return e.source!=="floating-filter"?{index:0,...e}:e}function ul(e){return ZL(XL(e),{colLabel:"label"})}var Q1="data-testid";function pe(e,t){e?.setAttribute(Q1,t)}function QL(e){Q1=e}var JL=class extends j{constructor(){super(...arguments),this.beanName="testIdSvc"}postConstruct(){const e=gt(this,()=>this.setupAllTestIds(),500),t=gt(this,()=>{this.setupAllTestIds(),e()},0);this.addManagedEventListeners({firstDataRendered:t,displayedRowsChanged:t,displayedColumnsChanged:t,displayedColumnsWidthChanged:t,virtualColumnsChanged:t,columnMenuVisibleChanged:t,contextMenuVisibleChanged:t,advancedFilterBuilderVisibleChanged:t,fieldPickerValueSelected:t,modelUpdated:t,sideBarUpdated:t,pinnedHeightChanged:t,gridReady:t,overlayExclusiveChanged:t,rowGroupOpened:t,scrollVisibilityChanged:t,gridSizeChanged:t,filterOpened:t,filterChanged:t,cellSelectionChanged:t})}setupAllTestIds(){const e=ws(this.beans),t=gw(this.beans),s=e.querySelector(`[grid-id="${t}"]`);pe(s,ae.grid(t)),e.querySelectorAll(".ag-header-group-cell").forEach(o=>{pe(o,ae.headerGroupCell(o.getAttribute("col-id")))}),e.querySelectorAll(".ag-header-cell").forEach(o=>{const r=o.getAttribute("col-id"),l=o.classList.contains("ag-floating-filter")?ae.floatingFilter(r):ae.headerCell(r);pe(o,l),pe(o.querySelector(".ag-header-cell-filter-button"),ae.headerFilterButton(r)),pe(o.querySelector(".ag-header-cell-menu-button"),ae.headerCellMenuButton(r)),pe(o.querySelector(".ag-header-cell-resize"),ae.headerResizeHandle(r)),pe(o.querySelector(".ag-checkbox input[type=checkbox]"),ae.headerCheckbox(r)),pe(o.querySelector(".ag-floating-filter-button button"),ae.floatingFilterButton(r)),this.setupFilterInstance(o.querySelector(".ag-floating-filter-body"),{source:"floating-filter",colId:r})});const i=e.querySelector(".ag-filter-menu");this.setupFilterInstance(i,{source:"column-filter"}),pe(e.querySelector(".ag-advanced-filter input[type=text]"),ae.advancedFilterInput()),e.querySelectorAll(".ag-advanced-filter-buttons button").forEach(o=>{pe(o,ae.advancedFilterButton(o.textContent))}),pe(e.querySelector("button.ag-advanced-filter-builder-button"),ae.advancedFilterBuilderButton()),e.querySelectorAll('.ag-panel[aria-label="Advanced Filter"] .ag-panel-title-bar-button').forEach((o,r)=>{pe(o,r===0?ae.advancedFilterPanelMaximiseButton():ae.advancedFilterPanelCloseButton())}),e.querySelectorAll('.ag-panel[aria-lable="Advanced Filter"] .ag-advanced-filter-builder-pill').forEach(o=>{pe(o,ae.advancedFilterPill(o.querySelector(".ag-picker-field-display")?.textContent))}),pe(e.querySelector('.ag-panel[aria-label="Advanced Filter"] .ag-advanced-filter-builder-item-button'),ae.advancedFilterBuilderAddItemButton()),e.querySelectorAll(".ag-row").forEach(o=>{const r=o.getAttribute("row-id");pe(o,ae.rowNode(r)),o.querySelectorAll(".ag-cell").forEach(a=>{const l=a.getAttribute("col-id");pe(a,ae.cell(r,l)),pe(a.querySelector(".ag-selection-checkbox input[type=checkbox]"),ae.checkbox(r,l)),pe(a.querySelector(".ag-drag-handle"),ae.dragHandle(r,l)),pe(a.querySelector(".ag-group-contracted"),ae.groupContracted(r,l)),pe(a.querySelector(".ag-group-expanded"),ae.groupExpanded(r,l))})}),e.querySelectorAll(".ag-menu-list").forEach(o=>{pe(o,ae.menu()),o.querySelectorAll(".ag-menu-option").forEach(r=>{pe(r,ae.menuOption(r.querySelector(".ag-menu-option-text")?.textContent))})}),e.querySelectorAll(".ag-side-bar").forEach(o=>{pe(o,ae.sideBar()),o.querySelectorAll(".ag-side-button button").forEach(r=>{pe(r,ae.sideBarButton(r.querySelector(".ag-side-button-label")?.textContent))}),o.querySelectorAll(".ag-column-panel").forEach(r=>{pe(r,ae.columnToolPanel()),pe(r.querySelector(".ag-pivot-mode-select input[type=checkbox]"),ae.pivotModeSelect()),pe(r.querySelector(".ag-column-select-header-checkbox input[type=checkbox]"),ae.columnPanelSelectHeaderCheckbox()),pe(r.querySelector(".ag-column-select-header-filter-wrapper input[type=text]"),ae.columnPanelSelectHeaderFilter()),r.querySelectorAll(".ag-column-select-list").forEach(a=>{a.querySelectorAll(".ag-column-select-virtual-list-item").forEach(l=>{const c=l.getAttribute("aria-label");pe(l.querySelector(".ag-column-group-closed-icon"),ae.columnSelectListItemGroupClosedIcon(c)),pe(l.querySelector(".ag-column-select-checkbox input[type=checkbox]"),ae.columnSelectListItemCheckbox(c)),pe(l.querySelector(".ag-drag-handle"),ae.columnSelectListItemDragHandle(c))})}),this.setupColumnDropArea(r,"toolbar")}),o.querySelectorAll(".ag-filter-panel").forEach(r=>{pe(r,ae.filterToolPanel()),pe(r.querySelector("button.ag-filter-add-button"),ae.filterToolPanelAddFilterButton()),r.querySelectorAll(".ag-filter-card").forEach(a=>{const l=a.querySelector(".ag-filter-card-title")?.textContent,c=a.querySelector(".ag-filter-type-select");pe(c,ae.filterToolPanelFilterTypeSelector(l)),a.querySelectorAll(".ag-filter").forEach(d=>this.setupFilterInstance(d,{source:"filter-toolpanel",colLabel:l}))})}),o.querySelectorAll(".ag-filter-toolpanel").forEach(r=>{pe(r.querySelector(".ag-filter-toolpanel-search-input input[type=text]"),ae.filterToolPanelSearchInput()),r.querySelectorAll(".ag-filter-toolpanel-group").forEach(a=>{const l=a.querySelector(".ag-filter-toolpanel-group-title")?.textContent;pe(a,ae.filterToolPanelGroup(l)),pe(a.querySelector(".ag-filter-toolpanel-group-title-bar-icon .ag-icon-tree-closed"),ae.filterToolPanelGroupCollapsedIcon(l));const c=a.querySelector(".ag-filter-toolpanel-instance-filter");c&&this.setupFilterInstance(c,{source:"filter-toolpanel",colLabel:l})})})}),pe(e.querySelector(".ag-status-bar .ag-status-panel-total-and-filtered-row-count"),ae.statusBarTotalAndFilteredRowCount()),pe(e.querySelector(".ag-status-bar .ag-status-panel-total-row-count"),ae.statusBarTotalRowCount()),pe(e.querySelector(".ag-status-bar .ag-status-panel-filtered-row-count"),ae.statusBarFilteredRowCount()),pe(e.querySelector(".ag-status-bar .ag-status-panel-selected-row-count"),ae.statusBarSelectedRowCount()),pe(e.querySelector(".ag-status-bar .ag-status-panel-filtered-row-count"),ae.statusBarAggregations()),e.querySelectorAll(".ag-paging-panel").forEach(o=>{pe(o.querySelector(".ag-paging-page-size .ag-picker-field-display"),ae.paginationPanelSizePickerDisplay(o.querySelector(".ag-paging-page-size .ag-picker-field-display")?.textContent)),o.querySelectorAll(".ag-paging-row-summary-panel-number").forEach(r=>{switch(r.getAttribute("data-ref")){case"lbFirstRowOnPage":pe(r,ae.paginationPanelFirstRowOnPage(r.textContent));break;case"lbLastRowOnPage":pe(r,ae.paginationPanelLastRowOnPage(r.textContent));break;case"lbRecordCount":pe(r,ae.paginationPanelRecordCount(r.textContent));break}}),o.querySelectorAll(".ag-paging-page-summary-panel .ag-button").forEach(r=>{pe(r,ae.paginationSummaryPanelButton(r.getAttribute("aria-label")?.toLowerCase()))}),o.querySelectorAll(".ag-paging-page-summary-panel .ag-paging-number").forEach(r=>{switch(r.getAttribute("data-ref")){case"lbCurrent":pe(r,ae.paginationSummaryPanelCurrentPage(r.textContent));break;case"lbTotal":pe(r,ae.paginationSummaryPanelTotalPage(r.textContent));break}})}),pe(e.querySelector(".ag-fill-handle"),ae.fillHandle()),e.querySelectorAll('.ag-panel[aria-label="Choose Columns"]').forEach(o=>{pe(o.querySelector(".ag-panel-title-bar-button-icon"),ae.columnChooserCloseButton()),pe(o.querySelector('.ag-column-select-header-checkbox input[type="checkbox"]'),ae.columnChooserSearchBarCheckbox()),pe(o.querySelector('.ag-column-select-header-filter-wrapper input[type="text"]'),ae.columnChooserSearchBarFilter()),o.querySelectorAll(".ag-column-select-list").forEach(r=>{r.querySelectorAll(".ag-column-select-virtual-list-item").forEach(a=>{const l=a.getAttribute("aria-label");pe(a.querySelector(".ag-column-group-closed-icon"),ae.columnChooserListItemGroupClosedIcon(l)),pe(a.querySelector(".ag-column-select-checkbox input[type=checkbox]"),ae.columnChooserListItemCheckbox(l)),pe(a.querySelector(".ag-drag-handle"),ae.columnChooserListItemDragHandle(l))})})}),pe(e.querySelector(".ag-overlay-wrapper"),ae.overlay());const n=e.querySelector(".ag-column-drop-wrapper");n&&this.setupColumnDropArea(n,"panel")}setupFilterInstance(e,t){if(!e)return;e.querySelectorAll(".ag-filter-select .ag-picker-field-display").forEach(n=>{pe(n,ae.filterInstancePickerDisplay(t))});const s=t.source==="floating-filter"?".ag-floating-filter-body":".ag-filter-body";e.querySelectorAll(`${s} .ag-input-field:not(.ag-hidden) input[type="number"]`).forEach((n,o,r)=>{const l=r.length>1?{...t,index:o}:t;pe(n,ae.numberFilterInstanceInput(l))}),e.querySelectorAll(`${s} .ag-input-field:not(.ag-hidden) input[type="text"]`).forEach((n,o,r)=>{const l=r.length>1?{...t,index:o}:t;pe(n,ae.textFilterInstanceInput(l))}),e.querySelectorAll(`${s} .ag-input-field:not(.ag-hidden) input[type="date"]`).forEach((n,o,r)=>{const l=r.length>1?{...t,index:o}:t;pe(n,ae.dateFilterInstanceInput(l))});const i=e.querySelector('.ag-mini-filter input[type="text"]');pe(i,ae.setFilterInstanceMiniFilterInput(t)),e.querySelectorAll(".ag-set-filter-list .ag-set-filter-item").forEach(n=>{const o=n.querySelector(".ag-checkbox-label")?.textContent,r=n.querySelector('input[type="checkbox"]');pe(r,ae.setFilterInstanceItem(t,o))}),e.querySelectorAll(".ag-filter-apply-panel button").forEach(n=>{pe(n,ae.setFilterApplyPanelButton(t,n.textContent))}),e.querySelectorAll(".ag-filter-condition .ag-radio-button").forEach(n=>{const o=n.querySelector(".ag-radio-button-label")?.textContent;pe(n.querySelector("input[type=radio]"),ae.filterConditionRadioButton(t,o))})}setupColumnDropArea(e,t){e.querySelectorAll(".ag-column-drop").forEach(s=>{const i=s.querySelector(".ag-column-drop-list")?.getAttribute("aria-label");pe(s,ae.columnDropArea(t,i)),s.querySelectorAll(".ag-column-drop-cell").forEach(n=>{const o=n.querySelector(".ag-column-drop-cell-text")?.textContent;pe(n.querySelector(".ag-drag-handle"),ae.columnDropCellDragHandle(t,i,o)),pe(n.querySelector(".ag-column-drop-cell-button .ag-icon-cancel"),ae.columnDropCellCancelButton(t,i,o))})})}},eO={moduleName:"Testing",version:J,beans:[JL]};function tO({testIdAttribute:e}={}){e&&QL(e),hC.registerModules([eO])}var sO=class{wrap(e,t,s,i){const n=this.createWrapper(e,i);for(const o of t??[])this.createMethod(n,o,!0);for(const o of s??[])this.createMethod(n,o,!1);return n}createMethod(e,t,s){e.addMethod(t,this.createMethodProxy(e,t,s))}createMethodProxy(e,t,s){return function(){return e.hasMethod(t)?e.callMethod(t,arguments):(s&&q(49,{methodName:t}),null)}}},iO=class extends hw{constructor(e){super(e,ap)}},At=p.createContext({}),J1=p.createContext("default"),ga=(e,t,s,i)=>{if(!e||e.componentFromFramework||t.isDestroyed())return;const o=e.newAgStackInstance();let r,a,l=!1;return o.then(c=>{if(l){t.destroyBean(c);return}r=c,a=r.getGui(),s.appendChild(a),Am(i,r)}),()=>{l=!0,r&&(a?.remove(),t.destroyBean(r),i&&Am(i,void 0))}},Am=(e,t)=>{if(e)if(e instanceof Function)e(t);else{const s=e;s.current=t}},ls=(...e)=>e.filter(s=>s!=null&&s!=="").join(" "),gs=class eb{constructor(...t){this.classesMap={};for(const s of t)this.classesMap[s]=!0}setClass(t,s){if(!!this.classesMap[t]==s)return this;const n=new eb;return n.classesMap={...this.classesMap},n.classesMap[t]=s,n}toString(){return Object.keys(this.classesMap).filter(s=>this.classesMap[s]).join(" ")}},Uo=e=>{const t=()=>typeof Symbol=="function"&&Symbol.for,s=()=>t()?Symbol.for("react.memo"):60115;return typeof e=="function"&&!(e.prototype&&e.prototype.isReactComponent)||typeof e=="object"&&e.$$typeof===s()},wh=p.version?.split(".")[0],tb=wh==="16"||wh==="17";function nO(){return wh==="19"}var Tl=!1;function oO(e){return Tl||setTimeout(()=>Tl=!1,0),Tl=!0,e()}var ea=(e,t)=>{!tb&&e&&!Tl?Bo.flushSync(t):t()},rO=e=>{tb?e():p.startTransition(e)};function aO(e,t,s){return p.useSyncExternalStore?p.useSyncExternalStore(e,t):s}function lc(e,t,s){if(t==null||e==null)return t;if(e===t||t.length===0&&e.length===0)return e;if(s||e.length===0&&t.length>0||e.length>0&&t.length===0)return t;const i=[],n=[],o=new Map,r=new Map;for(let a=0;a<t.length;a++){const l=t[a];r.set(l.instanceId,l)}for(let a=0;a<e.length;a++){const l=e[a];o.set(l.instanceId,l),r.has(l.instanceId)&&i.push(l)}for(let a=0;a<t.length;a++){const l=t[a],c=l.instanceId;o.has(c)||n.push(l)}return i.length===e.length&&n.length===0?e:i.length===0&&n.length===t.length?t:i.length===0?n:n.length===0?i:[...i,...n]}var sb=p.forwardRef((e,t)=>{const{registry:s,context:i}=p.useContext(At),n=p.useRef(null),o=p.useRef(null),r=p.useRef(null),a=p.useRef(null),l=p.useRef(null),c=p.useRef(),[d,u]=p.useState(),[h,f]=p.useState(),[m,v]=p.useState(),[C,w]=p.useState(()=>new gs),[b,x]=p.useState(()=>new gs("ag-hidden")),[y,S]=p.useState(()=>new gs("ag-hidden")),[F,R]=p.useState(()=>new gs("ag-invisible"));p.useImperativeHandle(t,()=>({refresh(){return!1}})),p.useLayoutEffect(()=>ga(d,i,o.current),[d]);const E=p.useCallback(V=>{if(n.current=V,!V||i.isDestroyed()){c.current=i.destroyBean(c.current);return}const B={setInnerRenderer:(O,A)=>{u(O),v(A)},setChildCount:O=>f(O),toggleCss:(O,A)=>w(W=>W.setClass(O,A)),setContractedDisplayed:O=>S(A=>A.setClass("ag-hidden",!O)),setExpandedDisplayed:O=>x(A=>A.setClass("ag-hidden",!O)),setCheckboxVisible:O=>R(A=>A.setClass("ag-invisible",!O)),setCheckboxSpacing:O=>R(A=>A.setClass("ag-group-checkbox-spacing",O))},K=s.createDynamicBean("groupCellRendererCtrl",!0);K&&(c.current=i.createBean(K),c.current.init(B,V,r.current,a.current,l.current,sb,e))},[]),D=p.useMemo(()=>`ag-cell-wrapper ${C.toString()}`,[C]),T=p.useMemo(()=>`ag-group-expanded ${b.toString()}`,[b]),P=p.useMemo(()=>`ag-group-contracted ${y.toString()}`,[y]),k=p.useMemo(()=>`ag-group-checkbox ${F.toString()}`,[F]),I=d?.componentFromFramework,H=I?d.componentClass:void 0,M=d==null&&m!=null,G=zo(m);return p.createElement("span",{className:D,ref:E,...e.colDef?{}:{role:c.current?.getCellAriaRole()}},p.createElement("span",{className:T,ref:a}),p.createElement("span",{className:P,ref:l}),p.createElement("span",{className:k,ref:r}),p.createElement("span",{className:"ag-group-value",ref:o},M?G:I?p.createElement(H,{...d.params}):null),p.createElement("span",{className:"ag-group-child-count"},h))}),Lm=sb,Qp=p.createContext({setMethods:()=>{}}),lO=e=>{const{initialProps:t,addUpdateCallback:s,CustomComponentClass:i,setMethods:n}=e,[{key:o,...r},a]=p.useState(t);return p.useEffect(()=>{s(l=>a(l))},[]),p.createElement(Qp.Provider,{value:{setMethods:n}},p.createElement(i,{key:o,...r}))},cO=p.memo(lO),dO=0;function Om(){return`agPortalKey_${++dO}`}var ib=class{constructor(e,t,s,i){this.portal=null,this.oldPortal=null,this.reactComponent=e,this.portalManager=t,this.componentType=s,this.suppressFallbackMethods=!!i,this.statelessComponent=this.isStateless(this.reactComponent),this.key=Om(),this.portalKey=Om(),this.instanceCreated=this.isStatelessComponent()?Le.resolve(!1):new Le(n=>{this.resolveInstanceCreated=n})}getGui(){return this.eParentElement}getRootElement(){return this.eParentElement.firstChild}destroy(){this.componentInstance&&typeof this.componentInstance.destroy=="function"&&this.componentInstance.destroy();const e=this.portal;e&&this.portalManager.destroyPortal(e)}createParentElement(e){const t=this.portalManager.getComponentWrappingElement(),s=document.createElement(t||"div");return s.classList.add("ag-react-container"),e.reactContainer=s,s}statelessComponentRendered(){return this.eParentElement.childElementCount>0||this.eParentElement.childNodes.length>0}getFrameworkComponentInstance(){return this.componentInstance}isStatelessComponent(){return this.statelessComponent}getReactComponentName(){return this.reactComponent.name}getMemoType(){return this.hasSymbol()?Symbol.for("react.memo"):60115}hasSymbol(){return typeof Symbol=="function"&&Symbol.for}isStateless(e){return typeof e=="function"&&!(e.prototype&&e.prototype.isReactComponent)||typeof e=="object"&&e.$$typeof===this.getMemoType()}hasMethod(e){const t=this.getFrameworkComponentInstance();return!!t&&t[e]!=null||this.fallbackMethodAvailable(e)}callMethod(e,t){const s=this.getFrameworkComponentInstance();if(this.isStatelessComponent())return this.fallbackMethod(e,t&&t[0]?t[0]:{});if(!s){setTimeout(()=>this.callMethod(e,t));return}const i=s[e];if(i)return i.apply(s,t);if(this.fallbackMethodAvailable(e))return this.fallbackMethod(e,t&&t[0]?t[0]:{})}addMethod(e,t){this[e]=t}init(e){return this.eParentElement=this.createParentElement(e),this.createOrUpdatePortal(e),new Le(t=>this.createReactComponent(t))}createOrUpdatePortal(e){this.isStatelessComponent()||(this.ref=t=>{this.componentInstance=t,this.resolveInstanceCreated?.(!0),this.resolveInstanceCreated=void 0},e.ref=this.ref),this.reactElement=this.createElement(this.reactComponent,{...e,key:this.key}),this.portal=Bo.createPortal(this.reactElement,this.eParentElement,this.portalKey)}createElement(e,t){return p.createElement(e,t)}createReactComponent(e){this.portalManager.mountReactPortal(this.portal,this,e)}rendered(){return this.isStatelessComponent()&&this.statelessComponentRendered()||!!(!this.isStatelessComponent()&&this.getFrameworkComponentInstance())}refreshComponent(e){this.oldPortal=this.portal,this.createOrUpdatePortal(e),this.portalManager.updateReactPortal(this.oldPortal,this.portal)}fallbackMethod(e,t){const s=this[`${e}Component`];if(!this.suppressFallbackMethods&&s)return s.bind(this)(t)}fallbackMethodAvailable(e){return this.suppressFallbackMethods?!1:!!this[`${e}Component`]}};function zc(e,t,s){for(const i of e){const n=t[i];n&&(s[i]=n)}}var ms=class extends ib{constructor(){super(...arguments),this.awaitUpdateCallback=new Le(e=>{this.resolveUpdateCallback=e}),this.wrapperComponent=cO}init(e){return this.sourceParams=e,super.init(this.getProps())}addMethod(){}getInstance(){return this.instanceCreated.then(()=>this.componentInstance)}getFrameworkComponentInstance(){return this}createElement(e,t){return super.createElement(this.wrapperComponent,{initialProps:t,CustomComponentClass:e,setMethods:s=>this.setMethods(s),addUpdateCallback:s=>{this.updateCallback=()=>(s(this.getProps()),new Le(i=>{setTimeout(()=>{i()})})),this.resolveUpdateCallback()}})}setMethods(e){this.providedMethods=e,zc(this.getOptionalMethods(),this.providedMethods,this)}getOptionalMethods(){return[]}getProps(){return{...this.sourceParams,key:this.key,ref:this.ref}}refreshProps(){return this.updateCallback?this.updateCallback():new Le(e=>this.awaitUpdateCallback.then(()=>{this.updateCallback().then(()=>e())}))}},uO=class extends ms{refresh(e){return this.sourceParams=e,this.refreshProps(),!0}},hO=class extends ms{refresh(e){this.sourceParams=e,this.refreshProps()}},pO=class extends ms{constructor(){super(...arguments),this.date=null,this.onDateChange=e=>this.updateDate(e)}getDate(){return this.date}setDate(e){this.date=e,this.refreshProps()}refresh(e){this.sourceParams=e,this.refreshProps()}getOptionalMethods(){return["afterGuiAttached","setInputPlaceholder","setInputAriaLabel","setDisabled"]}updateDate(e){this.setDate(e),this.sourceParams.onDateChanged()}getProps(){const e=super.getProps();return e.date=this.date,e.onDateChange=this.onDateChange,delete e.onDateChanged,e}},gO=class extends ms{constructor(){super(...arguments),this.label="",this.icon=null,this.shake=!1}setIcon(e,t){this.icon=e,this.shake=t,this.refreshProps()}setLabel(e){this.label=e,this.refreshProps()}getProps(){const e=super.getProps(),{label:t,icon:s,shake:i}=this;return e.label=t,e.icon=s,e.shake=i,e}},fO=class extends ms{constructor(){super(...arguments),this.model=null,this.onModelChange=e=>this.updateModel(e),this.onUiChange=()=>this.sourceParams.filterModifiedCallback(),this.expectingNewMethods=!0,this.hasBeenActive=!1,this.awaitSetMethodsCallback=new Le(e=>{this.resolveSetMethodsCallback=e})}isFilterActive(){return this.model!=null}doesFilterPass(e){return this.providedMethods.doesFilterPass(e)}getModel(){return this.model}setModel(e){return this.expectingNewMethods=!0,this.model=e,this.hasBeenActive||(this.hasBeenActive=this.isFilterActive()),this.refreshProps()}refresh(e){return this.sourceParams=e,this.refreshProps(),!0}afterGuiAttached(e){const t=this.providedMethods;t?t.afterGuiAttached?.(e):this.awaitSetMethodsCallback.then(()=>this.providedMethods?.afterGuiAttached?.(e))}getOptionalMethods(){return["afterGuiDetached","onNewRowsLoaded","getModelAsString","onAnyFilterChanged"]}setMethods(e){this.expectingNewMethods===!1&&this.hasBeenActive&&this.providedMethods?.doesFilterPass!==e?.doesFilterPass&&setTimeout(()=>{this.sourceParams.filterChangedCallback()}),this.expectingNewMethods=!1,super.setMethods(e),this.resolveSetMethodsCallback(),this.resolveFilterPassCallback?.(),this.resolveFilterPassCallback=void 0}updateModel(e){this.resolveFilterPassCallback?.();const t=new Le(s=>{this.resolveFilterPassCallback=s});this.setModel(e).then(()=>{t.then(()=>{this.sourceParams.filterChangedCallback()})})}getProps(){const e=super.getProps();return e.model=this.model,e.onModelChange=this.onModelChange,e.onUiChange=this.onUiChange,delete e.filterChangedCallback,e}},mO=class extends ms{constructor(){super(...arguments),this.awaitSetMethodsCallback=new Le(e=>{this.resolveSetMethodsCallback=e})}refresh(e){return this.sourceParams=e,this.refreshProps(),!0}afterGuiAttached(e){const t=this.providedMethods;t?t.afterGuiAttached?.(e):this.awaitSetMethodsCallback.then(()=>this.providedMethods?.afterGuiAttached?.(e))}getOptionalMethods(){return["afterGuiDetached","onNewRowsLoaded","onAnyFilterChanged"]}setMethods(e){super.setMethods(e),this.resolveSetMethodsCallback()}};function nb(e,t){e.parentFilterInstance(s=>{(s.setModel(t)||Le.resolve()).then(()=>{e.filterParams.filterChangedCallback()})})}var vO=class{constructor(e,t){this.floatingFilterParams=e,this.refreshProps=t,this.model=null,this.onModelChange=s=>this.updateModel(s)}getProps(){return{...this.floatingFilterParams,model:this.model,onModelChange:this.onModelChange}}onParentModelChanged(e){this.model=e,this.refreshProps()}refresh(e){this.floatingFilterParams=e,this.refreshProps()}setMethods(e){zc(this.getOptionalMethods(),e,this)}getOptionalMethods(){return["afterGuiAttached"]}updateModel(e){this.model=e,this.refreshProps(),nb(this.floatingFilterParams,e)}},CO=class extends ms{constructor(){super(...arguments),this.model=null,this.onModelChange=e=>this.updateModel(e)}onParentModelChanged(e){this.model=e,this.refreshProps()}refresh(e){this.sourceParams=e,this.refreshProps()}getOptionalMethods(){return["afterGuiAttached"]}updateModel(e){this.model=e,this.refreshProps(),nb(this.sourceParams,e)}getProps(){const e=super.getProps();return e.model=this.model,e.onModelChange=this.onModelChange,e}},wO=class extends ms{refresh(e){this.sourceParams=e,this.refreshProps()}getOptionalMethods(){return["afterGuiAttached"]}},bO=class extends ms{refresh(e){return this.sourceParams=e,this.refreshProps(),!0}},xO=class extends ms{constructor(){super(...arguments),this.active=!1,this.expanded=!1,this.onActiveChange=e=>this.updateActive(e)}setActive(e){this.awaitSetActive(e)}setExpanded(e){this.expanded=e,this.refreshProps()}getOptionalMethods(){return["select","configureDefaults"]}awaitSetActive(e){return this.active=e,this.refreshProps()}updateActive(e){const t=this.awaitSetActive(e);e&&t.then(()=>this.sourceParams.onItemActivated())}getProps(){const e=super.getProps();return e.active=this.active,e.expanded=this.expanded,e.onActiveChange=this.onActiveChange,delete e.onItemActivated,e}},yO=class extends ms{refresh(e){return this.sourceParams=e,this.refreshProps(),!0}},SO=class extends ms{constructor(){super(...arguments),this.onStateChange=e=>this.updateState(e)}refresh(e){return this.sourceParams=e,this.refreshProps(),!0}getState(){return this.state}updateState(e){this.state=e,this.refreshProps(),this.sourceParams.onStateUpdated()}getProps(){const e=super.getProps();return e.state=this.state,e.onStateChange=this.onStateChange,e}};function Jp(){q(231)}var RO=1e3,FO=class{constructor(e,t,s){this.destroyed=!1,this.portals=[],this.hasPendingPortalUpdate=!1,this.wrappingElement=t||"div",this.refresher=e,this.maxComponentCreationTimeMs=s||RO}getPortals(){return this.portals}destroy(){this.destroyed=!0}destroyPortal(e){this.portals=this.portals.filter(t=>t!==e),this.batchUpdate()}getComponentWrappingElement(){return this.wrappingElement}mountReactPortal(e,t,s){this.portals=[...this.portals,e],this.waitForInstance(t,s),this.batchUpdate()}updateReactPortal(e,t){this.portals[this.portals.indexOf(e)]=t,this.batchUpdate()}batchUpdate(){this.hasPendingPortalUpdate||(setTimeout(()=>{this.destroyed||(this.refresher(),this.hasPendingPortalUpdate=!1)}),this.hasPendingPortalUpdate=!0)}waitForInstance(e,t,s=Date.now()){if(this.destroyed){t(null);return}if(e.rendered())t(e);else{if(Date.now()-s>=this.maxComponentCreationTimeMs&&!this.hasPendingPortalUpdate){ea(!0,()=>this.refresher()),e.rendered()&&t(e);return}window.setTimeout(()=>{this.waitForInstance(e,t,s)})}}},EO=p.createContext([]),DO=p.createContext(void 0),PO=({ctrl:e})=>{const t=e.isAlive(),{context:s}=p.useContext(At),[i,n]=p.useState(),[o,r]=p.useState(),a=p.useRef(),l=p.useRef(null),c=p.useRef(null),d=p.useRef(null),u=p.useRef(),h=p.useRef();t&&!h.current&&(h.current=new aa(()=>l.current));const f=p.useCallback(w=>{if(l.current=w,!w||!e.isAlive()||s.isDestroyed()){a.current=s.destroyBean(a.current);return}a.current=s.createBean(new _o);const b=()=>{const y=e.getSelectAllGui();y&&(c.current?.insertAdjacentElement("afterend",y),a.current.addDestroyFunc(()=>y.remove()))},x={setWidth:y=>{l.current&&(l.current.style.width=y)},toggleCss:(y,S)=>h.current.toggleCss(y,S),setUserStyles:y=>r(y),setAriaSort:y=>{l.current&&(y?tR(l.current,y):sR(l.current))},setUserCompDetails:y=>n(y),getUserCompInstance:()=>u.current||void 0,refreshSelectAllGui:b,removeSelectAllGui:()=>e.getSelectAllGui()?.remove()};e.setComp(x,w,c.current,d.current,a.current),b()},[]);p.useLayoutEffect(()=>ga(i,s,d.current,u),[i]),p.useEffect(()=>{e.setDragSource(l.current)},[i]);const m=p.useMemo(()=>!!(i?.componentFromFramework&&Uo(i.componentClass)),[i]),v=i?.componentFromFramework,C=i?.componentClass;return p.createElement("div",{ref:f,style:o,className:"ag-header-cell",role:"columnheader"},p.createElement("div",{ref:c,className:"ag-header-cell-resize",role:"presentation"}),p.createElement("div",{ref:d,className:"ag-header-cell-comp-wrapper",role:"presentation"},v?m?p.createElement(C,{...i.params}):p.createElement(C,{...i.params,ref:u}):null))},TO=p.memo(PO),kO=class{constructor(e,t){this.floatingFilterParams=e,this.refreshProps=t}getProps(){return this.floatingFilterParams}refresh(e){this.floatingFilterParams=e,this.refreshProps()}setMethods(e){zc(this.getOptionalMethods(),e,this)}getOptionalMethods(){return["afterGuiAttached"]}},IO=({ctrl:e})=>{const{context:t,gos:s}=p.useContext(At),[i,n]=p.useState(),[o,r]=p.useState(()=>new gs("ag-header-cell","ag-floating-filter")),[a,l]=p.useState(()=>new gs),[c,d]=p.useState(()=>new gs("ag-floating-filter-button","ag-hidden")),[u,h]=p.useState("false"),[f,m]=p.useState(),[,v]=p.useState(1),C=p.useRef(),w=p.useRef(null),b=p.useRef(null),x=p.useRef(null),y=p.useRef(null),S=p.useRef(),F=p.useRef(),R=O=>{O!=null&&S.current?.(O)},E=p.useCallback(O=>{if(w.current=O,!O||!e.isAlive()||t.isDestroyed()){C.current=t.destroyBean(C.current);return}C.current=t.createBean(new _o),F.current=new Le(W=>{S.current=W});const A={toggleCss:(W,Y)=>r(ie=>ie.setClass(W,Y)),setUserStyles:W=>n(W),addOrRemoveBodyCssClass:(W,Y)=>l(ie=>ie.setClass(W,Y)),setButtonWrapperDisplayed:W=>{d(Y=>Y.setClass("ag-hidden",!W)),h(W?"false":"true")},setWidth:W=>{w.current&&(w.current.style.width=W)},setCompDetails:W=>m(W),getFloatingFilterComp:()=>F.current?F.current:null,setMenuIcon:W=>y.current?.appendChild(W)};e.setComp(A,O,y.current,b.current,C.current)},[]);p.useLayoutEffect(()=>ga(f,t,b.current,R),[f]);const D=p.useMemo(()=>o.toString(),[o]),T=p.useMemo(()=>a.toString(),[a]),P=p.useMemo(()=>c.toString(),[c]),k=p.useMemo(()=>!!(f&&f.componentFromFramework&&Uo(f.componentClass)),[f]),I=p.useMemo(()=>s.get("reactiveCustomComponents"),[]),H=p.useMemo(()=>s.get("enableFilterHandlers"),[]),[M,G]=p.useState();p.useEffect(()=>{if(f?.componentFromFramework)if(I){const O=H?kO:vO,A=new O(f.params,()=>v(W=>W+1));R(A),G(A)}else Jp()},[f]);const V=M?.getProps(),B=f?.componentFromFramework,K=f?.componentClass;return p.createElement("div",{ref:E,style:i,className:D,role:"gridcell"},p.createElement("div",{ref:b,className:T,role:"presentation"},B?I?V&&p.createElement(Qp.Provider,{value:{setMethods:O=>M.setMethods(O)}},p.createElement(K,{...V})):p.createElement(K,{...f.params,ref:k?()=>{}:R}):null),p.createElement("div",{ref:x,"aria-hidden":u,className:P,role:"presentation"},p.createElement("button",{ref:y,type:"button",className:"ag-button ag-floating-filter-button-button",tabIndex:-1})))},MO=p.memo(IO),AO=({ctrl:e})=>{const{context:t}=p.useContext(At),[s,i]=p.useState(),[n,o]=p.useState(()=>new gs),[r,a]=p.useState(()=>new gs),[l,c]=p.useState("false"),[d,u]=p.useState(),[h,f]=p.useState(),m=p.useRef(),v=p.useRef(null),C=p.useRef(null),w=p.useRef(null),b=p.useRef(),x=p.useCallback(D=>{if(v.current=D,!D||!e.isAlive()||t.isDestroyed()){m.current=t.destroyBean(m.current);return}m.current=t.createBean(new _o);const T={setWidth:P=>{v.current&&(v.current.style.width=P)},toggleCss:(P,k)=>o(I=>I.setClass(P,k)),setUserStyles:P=>i(P),setHeaderWrapperHidden:P=>{const k=w.current;k&&(P?k.style.setProperty("display","none"):k.style.removeProperty("display"))},setHeaderWrapperMaxHeight:P=>{const k=w.current;k&&(P!=null?k.style.setProperty("max-height",`${P}px`):k.style.removeProperty("max-height"),k.classList.toggle("ag-header-cell-comp-wrapper-limited-height",P!=null))},setUserCompDetails:P=>f(P),setResizableDisplayed:P=>{a(k=>k.setClass("ag-hidden",!P)),c(P?"false":"true")},setAriaExpanded:P=>u(P),getUserCompInstance:()=>b.current||void 0};e.setComp(T,D,C.current,w.current,m.current)},[]);p.useLayoutEffect(()=>ga(h,t,w.current),[h]),p.useEffect(()=>{v.current&&e.setDragSource(v.current)},[h]);const y=p.useMemo(()=>!!(h?.componentFromFramework&&Uo(h.componentClass)),[h]),S=p.useMemo(()=>"ag-header-group-cell "+n.toString(),[n]),F=p.useMemo(()=>"ag-header-cell-resize "+r.toString(),[r]),R=h?.componentFromFramework,E=h?.componentClass;return p.createElement("div",{ref:x,style:s,className:S,role:"columnheader","aria-expanded":d},p.createElement("div",{ref:w,className:"ag-header-cell-comp-wrapper",role:"presentation"},R?y?p.createElement(E,{...h.params}):p.createElement(E,{...h.params,ref:b}):null),p.createElement("div",{ref:C,"aria-hidden":l,className:F}))},LO=p.memo(AO),OO=({ctrl:e})=>{const{gos:t,context:s}=p.useContext(At),{topOffset:i,rowHeight:n}=p.useMemo(()=>e.getTopAndHeight(),[]),o=p.useMemo(()=>t.get("tabIndex"),[]),[r,a]=p.useState(()=>e.getAriaRowIndex()),l=e.headerRowClass,[c,d]=p.useState(()=>n+"px"),[u,h]=p.useState(()=>i+"px"),f=p.useRef(null),[m,v]=p.useState(()=>e.getUpdatedHeaderCtrls()),C=p.useRef(),w=p.useRef(null),b=p.useCallback(S=>{if(w.current=S,!S||!e.isAlive()||s.isDestroyed()){C.current=s.destroyBean(C.current);return}C.current=s.createBean(new _o);const F={setHeight:R=>d(R),setTop:R=>h(R),setHeaderCtrls:(R,E,D)=>{const T=f.current,P=lc(T,R,E);P!==T&&(f.current=P,ea(D,()=>v(P)))},setWidth:R=>{w.current&&(w.current.style.width=R)},setRowIndex:R=>{a(R)}};e.setComp(F,C.current,!1)},[]),x=p.useMemo(()=>({height:c,top:u}),[c,u]),y=p.useCallback(S=>{switch(e.type){case"group":return p.createElement(LO,{ctrl:S,key:S.instanceId});case"filter":return p.createElement(MO,{ctrl:S,key:S.instanceId});default:return p.createElement(TO,{ctrl:S,key:S.instanceId})}},[]);return p.createElement("div",{ref:b,className:l,role:"row",style:x,tabIndex:o,"aria-rowindex":r},m.map(y))},NO=p.memo(OO),HO=({pinned:e})=>{const[t,s]=p.useState(!0),[i,n]=p.useState([]),{context:o}=p.useContext(At),r=p.useRef(null),a=p.useRef(null),l=p.useRef(),c=e==="left",d=e==="right",u=!c&&!d,h=p.useCallback(v=>{if(r.current=v,!v||o.isDestroyed()){l.current=o.destroyBean(l.current);return}l.current=o.createBean(new fE(e));const C={setDisplayed:s,setCtrls:w=>n(w),setCenterWidth:w=>{a.current&&(a.current.style.width=w)},setViewportScrollLeft:w=>{r.current&&(r.current.scrollLeft=w)},setPinnedContainerWidth:w=>{r.current&&(r.current.style.width=w,r.current.style.minWidth=w,r.current.style.maxWidth=w)}};l.current.setComp(C,r.current)},[]),f=t?"":"ag-hidden",m=()=>i.map(v=>p.createElement(NO,{ctrl:v,key:v.instanceId}));return c?p.createElement("div",{ref:h,className:"ag-pinned-left-header "+f,"aria-hidden":!t,role:"rowgroup"},m()):d?p.createElement("div",{ref:h,className:"ag-pinned-right-header "+f,"aria-hidden":!t,role:"rowgroup"},m()):u?p.createElement("div",{ref:h,className:"ag-header-viewport "+f,role:"rowgroup",tabIndex:-1},p.createElement("div",{ref:a,className:"ag-header-container",role:"presentation"},m())):null},pu=p.memo(HO),BO=()=>{const[e,t]=p.useState(()=>new gs),[s,i]=p.useState(),{context:n}=p.useContext(At),o=p.useRef(null),r=p.useRef(),a=p.useCallback(d=>{if(o.current=d,!d||n.isDestroyed()){r.current=n.destroyBean(r.current);return}r.current=n.createBean(new aE);const u={toggleCss:(h,f)=>t(m=>m.setClass(h,f)),setHeightAndMinHeight:h=>i(h)};r.current.setComp(u,d,d)},[]),l=p.useMemo(()=>"ag-header "+e.toString(),[e]),c=p.useMemo(()=>({height:s,minHeight:s}),[s]);return p.createElement("div",{ref:a,className:l,style:c,role:"presentation"},p.createElement(pu,{pinned:"left"}),p.createElement(pu,{pinned:null}),p.createElement(pu,{pinned:"right"}))},GO=p.memo(BO),VO=(e,t)=>{p.useEffect(()=>{const s=t.current;if(s){const i=s.parentElement;if(i){const n=document.createComment(e);return i.insertBefore(n,s),()=>{n.remove()}}}},[e])},sn=VO,zO=class{constructor(e,t){this.cellEditorParams=e,this.refreshProps=t,this.instanceCreated=new Le(s=>{this.resolveInstanceCreated=s}),this.onValueChange=s=>this.updateValue(s),this.value=e.value}getProps(){return{...this.cellEditorParams,initialValue:this.cellEditorParams.value,value:this.value,onValueChange:this.onValueChange}}getValue(){return this.value}refresh(e){this.cellEditorParams=e,this.refreshProps()}setMethods(e){zc(this.getOptionalMethods(),e,this)}getInstance(){return this.instanceCreated.then(()=>this.componentInstance)}setRef(e){this.componentInstance=e,this.resolveInstanceCreated?.(),this.resolveInstanceCreated=void 0}getOptionalMethods(){return["isCancelBeforeStart","isCancelAfterEnd","focusIn","focusOut","afterGuiAttached","getValidationErrors","getValidationElement"]}updateValue(e){this.value=e,this.refreshProps()}},jO=e=>{const t=p.useRef(e),s=p.useRef(),i=p.useRef(!1),n=p.useRef(!1),[,o]=p.useState(0);i.current&&(n.current=!0),p.useEffect(()=>(i.current||(s.current=t.current(),i.current=!0),o(r=>r+1),()=>{n.current&&s.current?.()}),[])},WO=e=>{const[t,s]=p.useState(),i=p.useContext(At),{context:n,popupSvc:o,gos:r,editSvc:a}=i,{editDetails:l,cellCtrl:c,eParentCell:d}=e;return jO(()=>{const{compDetails:u}=l,h=r.get("stopEditingWhenCellsLoseFocus");let f,m;if(!n.isDestroyed()){m=n.createBean(a.createPopupEditorWrapper(u.params));const v=m.getGui();if(e.jsChildComp){const S=e.jsChildComp.getGui();S&&v.appendChild(S)}const{column:C,rowNode:w}=c,b={column:C,rowNode:w,type:"popupCellEditor",eventSource:d,ePopup:v,position:l.popupPosition,keepWithinBounds:!0},x=o?.positionPopupByComponent.bind(o,b),y=o?.addPopup({modal:h,eChild:v,closeOnEsc:!0,closedCallback:S=>{c.onPopupEditorClosed(S)},anchorToElement:d,positionCallback:x,ariaOwns:d});f=y?y.hideFunc:void 0,s(m),e.jsChildComp?.afterGuiAttached?.()}return()=>{f?.(),n.destroyBean(m)}}),p.useLayoutEffect(()=>()=>{c.isCellFocused()&&t?.getGui().contains(ot(i))&&d.focus({preventScroll:!0})},[t]),t&&e.wrappedContent?Bo.createPortal(e.wrappedContent,t.getGui()):null},Nm=p.memo(WO),_O=(e,t,s)=>{const{compProxy:i}=e;s(i);const n=i.getProps(),o=Uo(t);return p.createElement(Qp.Provider,{value:{setMethods:r=>i.setMethods(r)}},o?p.createElement(t,{...n}):p.createElement(t,{...n,ref:r=>i.setRef(r)}))},Hm=(e,t,s)=>e.compProxy?_O(e,t,s):p.createElement(t,{...e.compDetails.params,ref:s}),UO=(e,t,s,i,n)=>{const o=e.compDetails,r=o.componentClass,a=o.componentFromFramework&&!e.popup,l=o.componentFromFramework&&e.popup,c=!o.componentFromFramework&&e.popup;return a?Hm(e,r,t):l?p.createElement(Nm,{editDetails:e,cellCtrl:i,eParentCell:s,wrappedContent:Hm(e,r,t)}):c&&n?p.createElement(Nm,{editDetails:e,cellCtrl:i,eParentCell:s,jsChildComp:n}):null},$O=(e,t,s,i,n,o,r=!1)=>{const{context:a}=p.useContext(At),l=p.useCallback(()=>{const c=n.current;if(!c)return;const d=c.getGui();d&&d.parentElement&&d.remove(),a.destroyBean(c),n.current=void 0},[]);p.useEffect(()=>{const c=e!=null&&!r,d=e?.compDetails&&!e.compDetails.componentFromFramework,u=t&&s==null;if(!(c&&d&&!u)){l();return}const f=e.compDetails;if(n.current){const v=n.current,w=v.refresh!=null&&e.force==!1?v.refresh(f.params):!1;if(w===!0||w===void 0)return;l()}f.newAgStackInstance().then(v=>{if(!v)return;const C=v.getGui();if(!C)return;(t?s:o.current).appendChild(C),n.current=v})},[e,t,i,r]),p.useEffect(()=>l,[])},ob=$O,qO=({cellCtrl:e,parent:t})=>{const s=p.useRef(),i=p.useMemo(()=>{const{loadingComp:n}=e.getDeferLoadingCellRenderer();return n?{value:void 0,compDetails:n,force:!1}:void 0},[e]);if(ob(i,!1,void 0,1,s,t),i?.compDetails?.componentFromFramework){const n=i.compDetails.componentClass;return p.createElement(n,{...i.compDetails.params})}return p.createElement(p.Fragment,null)},KO=({cellCtrl:e,printLayout:t,editingCell:s})=>{const i=p.useContext(At),{context:n}=i,{column:{colIdSanitised:o},instanceId:r}=e,a=p.useRef(),[l,c]=p.useState(()=>e.isCellRenderer()?void 0:{compDetails:void 0,value:e.getValueToDisplay(),force:!1}),[d,u]=p.useState(),[h,f]=p.useState(1),[m,v]=p.useState(),[C,w]=p.useState(!1),[b,x]=p.useState(!1),[y,S]=p.useState(!1),F=p.useRef(null),[R,E]=p.useState(),D=p.useMemo(()=>e.isForceWrapper(),[e]),T=p.useMemo(()=>e.getCellAriaRole(),[e]),P=p.useRef(null),k=p.useRef(null),I=p.useRef(null),H=p.useRef(),M=p.useRef(),G=p.useRef(),V=p.useRef([]),B=p.useRef(),K=p.useRef(),[O,A]=p.useState(0),W=p.useCallback(oe=>{K.current=oe,A(xe=>xe+1)},[]),Y=l!=null&&(C||y||b)&&(d==null||!!d.popup),ie=D||Y,be=p.useMemo(()=>e.getCellValueClass(),[e]),Z=p.useCallback(oe=>{if(M.current=oe,oe){const xe=oe.isCancelBeforeStart&&oe.isCancelBeforeStart();setTimeout(()=>{xe?(e.stopEditing(!0),e.focusCell(!0)):(e.cellEditorAttached(),e.enableEditorTooltipFeature(oe))})}},[e]),me=p.useRef();me.current||(me.current=new aa(()=>P.current));const Ie=!!d&&!d.popup;ob(l,ie,K.current,O,H,P,Ie);const ne=p.useRef();p.useLayoutEffect(()=>{const oe=ne.current,xe=l;if(ne.current=l,oe==null||oe.compDetails==null||xe==null||xe.compDetails==null)return;B.current?.refreshVisibility();const Ae=oe.compDetails,Pe=xe.compDetails;if(Ae.componentClass!=Pe.componentClass||I.current?.refresh==null)return;I.current.refresh(Pe.params)!=!0&&f(Ve=>Ve+1)},[l]),p.useLayoutEffect(()=>{if(!(d&&!d.compDetails.componentFromFramework)||n.isDestroyed())return;const xe=d.compDetails,Ae=d.popup===!0,Pe=xe.newAgStackInstance();return Pe.then(Ce=>{if(!Ce)return;const Ve=Ce.getGui();Z(Ce),Ae||((D?G:P).current?.appendChild(Ve),Ce.afterGuiAttached?.()),E(Ce)}),()=>{Pe.then(Ce=>{const Ve=Ce.getGui();e.disableEditorTooltipFeature(),n.destroyBean(Ce),Z(void 0),E(void 0),Ve?.remove()})}},[d]);const ce=p.useCallback(oe=>{if(G.current=oe,!oe||n.isDestroyed()||!e.isAlive()){const Pe=V.current;V.current=[];for(const Ce of Pe)Ce();return}let xe;const Ae=Pe=>{Pe&&(oe.insertAdjacentElement("afterbegin",Pe.getGui()),V.current.push(()=>{ni(Pe.getGui()),n.destroyBean(Pe),B.current===xe&&(B.current=void 0)}))};C&&Ae(e.createSelectionCheckbox()),y&&Ae(e.createDndSource()),b&&(xe=e.createRowDragComp(),B.current=xe,xe&&(Ae(xe),xe.refreshVisibility()))},[e,n,y,b,C]),L=p.useCallback(()=>{const oe=!e.isCellSpanning()||k.current,xe=P.current;if(!xe||!oe||!e||!e.isAlive()||n.isDestroyed()){a.current=n.destroyBean(a.current);return}a.current=n.createBean(new _o);const Ae={toggleCss:(Ce,Ve)=>me.current.toggleCss(Ce,Ve),setUserStyles:Ce=>v(Ce),getFocusableElement:()=>P.current,setIncludeSelection:Ce=>w(Ce),setIncludeRowDrag:Ce=>x(Ce),setIncludeDndSource:Ce=>S(Ce),setRowResizerElement:Ce=>{F.current&&ni(F.current),F.current=Ce,Ce&&P.current&&P.current.appendChild(Ce)},getCellEditor:()=>M.current??null,getCellRenderer:()=>I.current??H.current,getParentOfValue:()=>K.current??G.current??P.current,setRenderDetails:(Ce,Ve,je)=>{const Qe=()=>{c(Ze=>Ze?.compDetails!==Ce||Ze?.value!==Ve||Ze?.force!==je?{value:Ve,compDetails:Ce,force:je}:Ze)};if(Ce?.params?.deferRender&&!e.rowNode.group){const{loadingComp:Ze,onReady:yt}=e.getDeferLoadingCellRenderer();if(Ze){c({value:void 0,compDetails:Ze,force:!1}),yt.then(()=>rO(Qe));return}}Qe()},setEditDetails:(Ce,Ve,je,Qe)=>{if(Ce){let Ze;Ce.componentFromFramework&&(Qe?Ze=new zO(Ce.params,()=>f(yt=>yt+1)):Jp()),u({compDetails:Ce,popup:Ve,popupPosition:je,compProxy:Ze}),Ve||c(void 0)}else e.hasBrowserFocus()&&Ae.getFocusableElement().focus({preventScroll:!0}),M.current=void 0,u(void 0)},refreshEditStyles:(Ce,Ve)=>{if(!P.current)return;const{current:je}=me;je.toggleCss("ag-cell-value",!ie),je.toggleCss("ag-cell-inline-editing",!!Ce&&!Ve),je.toggleCss("ag-cell-popup-editing",!!Ce&&!!Ve),je.toggleCss("ag-cell-not-inline-editing",!Ce||!!Ve)}},Pe=G.current||void 0;e.setComp(Ae,xe,k.current??void 0,Pe,t,s,a.current)},[]),ee=p.useCallback(oe=>{P.current=oe,L()},[]),ye=p.useCallback(oe=>{k.current=oe,L()},[]),z=p.useMemo(()=>!!(l?.compDetails?.componentFromFramework&&Uo(l.compDetails.componentClass)),[l]);p.useLayoutEffect(()=>{if(!P.current)return;const{current:oe}=me;oe.toggleCss("ag-cell-value",!ie),oe.toggleCss("ag-cell-inline-editing",!!d&&!d.popup),oe.toggleCss("ag-cell-popup-editing",!!d&&!!d.popup),oe.toggleCss("ag-cell-not-inline-editing",!d||!!d.popup)});const le=()=>{const{compDetails:oe,value:xe}=l;if(!oe)return xe?.toString?.()??xe;if(oe.componentFromFramework){const Ae=oe.componentClass;return p.createElement(p.Suspense,{fallback:p.createElement(qO,{cellCtrl:e,parent:P})},z?p.createElement(Ae,{...oe.params,key:h}):p.createElement(Ae,{...oe.params,key:h,ref:I}))}},ve=()=>{const oe=()=>l==null?null:ie?p.createElement("span",{role:"presentation",id:`cell-${r}`,className:be,ref:W},le()):le(),xe=Ae=>UO(Ae,Z,P.current,e,R);return d!=null?d.popup?p.createElement(p.Fragment,null,oe(),xe(d)):xe(d):oe()},Ee=()=>p.createElement("div",{ref:ee,style:m,role:T,"col-id":o},ie?p.createElement("div",{className:"ag-cell-wrapper",role:"presentation",ref:ce},ve()):ve());return e.isCellSpanning()?p.createElement("div",{ref:ye,className:"ag-spanned-cell-wrapper",role:"presentation"},Ee()):Ee()},YO=p.memo(KO),ZO=({rowCtrl:e,containerType:t})=>{const{context:s,gos:i,editSvc:n}=p.useContext(At),o=p.useContext(J1)==="default",r=p.useRef(),a=p.useRef(e.getDomOrder()),l=e.isFullWidth(),c=e.rowNode.displayed,[d,u]=p.useState(()=>c?e.rowNode.getRowIndexString():null),[h,f]=p.useState(()=>e.rowId),[m,v]=p.useState(()=>e.businessKey),[C,w]=p.useState(()=>e.rowStyles),b=p.useRef(null),[x,y]=p.useState(()=>null),[S,F]=p.useState(),[R,E]=p.useState(()=>c?e.getInitialRowTop(t):void 0),[D,T]=p.useState(()=>c?e.getInitialTransform(t):void 0),P=p.useRef(null),k=p.useRef(),I=p.useRef(),H=p.useRef(!1),[M,G]=p.useState(0);p.useEffect(()=>{if(H.current||!S||M>10)return;const ce=P.current?.firstChild;ce?(e.setupDetailRowAutoHeight(ce),H.current=!0):G(L=>L+1)},[S,M]);const V=p.useRef();V.current||(V.current=new aa(()=>P.current));const B=p.useRef(()=>{}),K=p.useCallback(ce=>(B.current=ce,()=>{B.current=()=>{}}),[]),O=aO(K,()=>b.current,[]),A=o?O:x,W=p.useCallback(ce=>{if(P.current=ce,r.current=ce?s.createBean(new _o):s.destroyBean(r.current),!ce){e.unsetComp(t);return}if(!e.isAlive()||s.isDestroyed())return;const L={setTop:E,setTransform:T,toggleCss:(ee,ye)=>V.current.toggleCss(ee,ye),setDomOrder:ee=>a.current=ee,setRowIndex:u,setRowId:f,setRowBusinessKey:v,setUserStyles:w,setCellCtrls:(ee,ye)=>{const z=b.current,le=lc(z,ee,a.current);le!==z&&(b.current=le,o?B.current():ea(ye,()=>y(le)))},showFullWidth:ee=>{I.current=ee.params,F(ee)},getFullWidthCellRenderer:()=>k.current,getFullWidthCellRendererParams:()=>I.current,refreshFullWidth:ee=>{const ye=ee();return I.current=ye,me.current?(F(z=>({...z,params:ye})),!0):!k.current||!k.current.refresh?!1:k.current.refresh(ye)}};e.setComp(L,ce,t,r.current)},[]);p.useLayoutEffect(()=>ga(S,s,P.current,k),[S]);const Y=p.useMemo(()=>{const ce={top:R,transform:D};return Object.assign(ce,C),ce},[R,D,C]),ie=l&&S?.componentFromFramework,be=!l&&A!=null,Z=p.useMemo(()=>!!(S?.componentFromFramework&&Uo(S.componentClass)),[S]),me=p.useRef(!1);p.useEffect(()=>{me.current=Z&&!!S&&!!i.get("reactiveCustomComponents")},[Z,S]);const Ie=()=>A?.map(ce=>p.createElement(YO,{cellCtrl:ce,editingCell:n?.isEditing(ce,{withOpenEditor:!0})??!1,printLayout:e.printLayout,key:ce.instanceId})),ne=()=>{const ce=S.componentClass;return Z?p.createElement(ce,{...S.params}):p.createElement(ce,{...S.params,ref:k})};return p.createElement("div",{ref:W,role:"row",style:Y,"row-index":d,"row-id":h,"row-business-key":m},be?Ie():ie?ne():null)},Bm=p.memo(ZO),XO=({name:e})=>{const{context:t,gos:s}=p.useContext(At),i=p.useMemo(()=>ua(e),[e]),n=p.useRef(null),o=p.useRef(null),r=p.useRef(null),a=p.useRef([]),l=p.useRef([]),[c,d]=p.useState(()=>[]),u=!!s.get("enableCellSpan")&&!!i.getSpannedRowCtrls,h=p.useRef([]),f=p.useRef([]),[m,v]=p.useState(()=>[]),C=p.useRef(!1),w=p.useRef(),b=p.useMemo(()=>ls("ag-viewport",lw(e)),[e]),x=p.useMemo(()=>ls(cw(e)),[e]),y=p.useMemo(()=>ls("ag-spanning-container",kE(e)),[e]),S=i.type==="center"||u,F=S?n:o;sn(" AG Row Container "+e+" ",F);const R=p.useCallback(()=>{const M=!S||n.current!=null,G=o.current!=null,V=!u||r.current!=null;return M&&G&&V},[]),E=p.useCallback(()=>n.current==null&&o.current==null&&r.current==null,[]),D=p.useCallback(()=>{if(E()&&(w.current=t.destroyBean(w.current)),!t.isDestroyed()&&R()){const M=B=>{const K=lc(l.current,a.current,C.current);K!==l.current&&(l.current=K,ea(B,()=>d(K)))},G=B=>{const K=lc(f.current,h.current,C.current);K!==f.current&&(f.current=K,ea(B,()=>v(K)))},V={setHorizontalScroll:B=>{n.current&&(n.current.scrollLeft=B)},setViewportHeight:B=>{n.current&&(n.current.style.height=B)},setRowCtrls:({rowCtrls:B,useFlushSync:K})=>{const O=!!K&&a.current.length>0&&B.length>0;a.current=B,M(O)},setSpannedRowCtrls:(B,K)=>{const O=!!K&&h.current.length>0&&B.length>0;h.current=B,G(O)},setDomOrder:B=>{C.current!=B&&(C.current=B,M(!1))},setContainerWidth:B=>{o.current&&(o.current.style.width=B)},setOffsetTop:B=>{o.current&&(o.current.style.transform=`translateY(${B})`)}};w.current=t.createBean(new VE(e)),w.current.setComp(V,o.current,r.current??void 0,n.current)}},[R,E]),T=p.useCallback(M=>{o.current=M,D()},[D]),P=p.useCallback(M=>{r.current=M,D()},[D]),k=p.useCallback(M=>{n.current=M,D()},[D]),I=()=>p.createElement("div",{className:x,ref:T,role:S?"presentation":"rowgroup"},c.map(M=>p.createElement(Bm,{rowCtrl:M,containerType:i.type,key:M.instanceId})));if(!S)return I();const H=()=>p.createElement("div",{className:y,ref:P,role:"presentation"},m.map(M=>p.createElement(Bm,{rowCtrl:M,containerType:i.type,key:M.instanceId})));return p.createElement("div",{className:b,ref:k,role:"rowgroup"},I(),u?H():null)},QO=p.memo(XO),JO=()=>{const e=p.useContext(At),{context:t,overlays:s}=e,[i,n]=p.useState(""),[o,r]=p.useState(0),[a,l]=p.useState(0),[c,d]=p.useState("0px"),[u,h]=p.useState("0px"),[f,m]=p.useState("100%"),[v,C]=p.useState("0px"),[w,b]=p.useState("0px"),[x,y]=p.useState("100%"),[S,F]=p.useState(!0),[R,E]=p.useState(!0),[D,T]=p.useState(null),[P,k]=p.useState(""),[I,H]=p.useState(null),[M,G]=p.useState("ag-layout-normal"),V=p.useRef();V.current||(V.current=new aa(()=>B.current));const B=p.useRef(null),K=p.useRef(null),O=p.useRef(null),A=p.useRef(null),W=p.useRef(null),Y=p.useRef(null),ie=p.useRef(null),be=p.useRef([]),Z=p.useRef([]);sn(" AG Grid Body ",B),sn(" AG Pinned Top ",K),sn(" AG Sticky Top ",O),sn(" AG Middle ",Y),sn(" AG Pinned Bottom ",ie);const me=p.useCallback(Pe=>{if(B.current=Pe,!Pe||t.isDestroyed()){be.current=t.destroyBeans(be.current);for(const We of Z.current)We();Z.current=[];return}const Ce=(We,U)=>{We.appendChild(U),Z.current.push(()=>U.remove())},Ve=We=>{const U=t.createBean(new We);return be.current.push(U),U},je=(We,U,Ne)=>{Ce(We,document.createComment(Ne)),Ce(We,Ve(U).getGui())};je(Pe,vE," AG Fake Horizontal Scroll ");const Qe=s?.getOverlayWrapperCompClass();Qe&&je(Pe,Qe," AG Overlay Wrapper "),W.current&&je(W.current,wE," AG Fake Vertical Scroll ");const Ze={setRowAnimationCssOnBodyViewport:n,setColumnCount:We=>{B.current&&J2(B.current,We)},setRowCount:We=>{B.current&&X2(B.current,We)},setTopHeight:r,setBottomHeight:l,setStickyTopHeight:d,setStickyTopTop:h,setStickyTopWidth:m,setTopInvisible:F,setBottomInvisible:E,setColumnMovingCss:(We,U)=>V.current.toggleCss(We,U),updateLayoutClasses:G,setAlwaysVerticalScrollClass:T,setPinnedTopBottomOverflowY:k,setCellSelectableCss:(We,U)=>H(U?We:null),setBodyViewportWidth:We=>{Y.current&&(Y.current.style.width=We)},registerBodyViewportResizeListener:We=>{if(Y.current){const U=li(e,Y.current,We);Z.current.push(()=>U())}},setStickyBottomHeight:C,setStickyBottomBottom:b,setStickyBottomWidth:y,setGridRootRole:We=>Pe.setAttribute("role",We)},yt=t.createBean(new _E);be.current.push(yt),yt.setComp(Ze,Pe,Y.current,K.current,ie.current,O.current,A.current)},[]),Ie=p.useMemo(()=>ls("ag-root","ag-unselectable",M),[M]),ne=p.useMemo(()=>ls("ag-body-viewport",i,M,D,I),[i,M,D,I]),ce=p.useMemo(()=>ls("ag-body",M),[M]),L=p.useMemo(()=>ls("ag-floating-top",S?"ag-invisible":null,I),[I,S]),ee=p.useMemo(()=>ls("ag-sticky-top",I),[I]),ye=p.useMemo(()=>ls("ag-sticky-bottom",v==="0px"?"ag-invisible":null,I),[I,v]),z=p.useMemo(()=>ls("ag-floating-bottom",R?"ag-invisible":null,I),[I,R]),le=p.useMemo(()=>({height:o,minHeight:o,overflowY:P}),[o,P]),ve=p.useMemo(()=>({height:c,top:u,width:f}),[c,u,f]),Ee=p.useMemo(()=>({height:v,bottom:w,width:x}),[v,w,x]),oe=p.useMemo(()=>({height:a,minHeight:a,overflowY:P}),[a,P]),xe=Pe=>p.createElement(QO,{name:Pe,key:`${Pe}-container`}),Ae=({section:Pe,children:Ce,className:Ve,style:je})=>p.createElement("div",{ref:Pe,className:Ve,role:"presentation",style:je},Ce.map(xe));return p.createElement("div",{ref:me,className:Ie},p.createElement(GO,null),Ae({section:K,className:L,style:le,children:["topLeft","topCenter","topRight","topFullWidth"]}),p.createElement("div",{className:ce,ref:W,role:"presentation"},Ae({section:Y,className:ne,children:["left","center","right","fullWidth"]})),Ae({section:O,className:ee,style:ve,children:["stickyTopLeft","stickyTopCenter","stickyTopRight","stickyTopFullWidth"]}),Ae({section:A,className:ye,style:Ee,children:["stickyBottomLeft","stickyBottomCenter","stickyBottomRight","stickyBottomFullWidth"]}),Ae({section:ie,className:z,style:oe,children:["bottomLeft","bottomCenter","bottomRight","bottomFullWidth"]}))},eN=p.memo(JO),tN=(e,t)=>{const{children:s,eFocusableElement:i,onTabKeyDown:n,gridCtrl:o,forceFocusOutWhenTabGuardsAreEmpty:r,isEmpty:a}=e,{context:l}=p.useContext(At),c=p.useRef(null),d=p.useRef(null),u=p.useRef(),h=w=>{const b=w==null?void 0:parseInt(w,10).toString();for(const x of[c,d])b===void 0?x.current?.removeAttribute("tabindex"):x.current?.setAttribute("tabindex",b)};p.useImperativeHandle(t,()=>({forceFocusOutOfContainer(w){u.current?.forceFocusOutOfContainer(w)}}));const f=p.useCallback(()=>{const w=c.current,b=d.current;if(!w&&!b||l.isDestroyed()){u.current=l.destroyBean(u.current);return}if(w&&b){const x={setTabIndex:h};u.current=l.createBean(new iO({comp:x,eTopGuard:w,eBottomGuard:b,eFocusableElement:i,onTabKeyDown:n,forceFocusOutWhenTabGuardsAreEmpty:r,focusInnerElement:y=>o.focusInnerElement(y),isEmpty:a}))}},[]),m=p.useCallback(w=>{c.current=w,f()},[f]),v=p.useCallback(w=>{d.current=w,f()},[f]),C=w=>{const b=w==="top"?So.TAB_GUARD_TOP:So.TAB_GUARD_BOTTOM;return p.createElement("div",{className:`${So.TAB_GUARD} ${b}`,role:"presentation",ref:w==="top"?m:v})};return p.createElement(p.Fragment,null,C("top"),s,C("bottom"))},sN=p.forwardRef(tN),iN=p.memo(sN),nN=({context:e})=>{const[t,s]=p.useState(""),[i,n]=p.useState(""),[o,r]=p.useState(null),[a,l]=p.useState(null),[c,d]=p.useState(!1),[u,h]=p.useState(),f=p.useRef(),m=p.useRef(null),v=p.useRef(),[C,w]=p.useState(null),b=p.useRef(()=>{}),x=p.useRef(),y=p.useRef([]),S=p.useCallback(()=>{},[]);sn(" AG Grid ",m);const F=p.useCallback(k=>{if(m.current=k,f.current=k?e.createBean(new YE):e.destroyBean(f.current),!k||e.isDestroyed())return;const I=f.current;b.current=I.focusInnerElement.bind(I);const H={destroyGridUi:()=>{},setRtlClass:s,forceFocusOutOfContainer:M=>{if(!M&&x.current?.isDisplayed()){x.current.forceFocusOutOfContainer(M);return}v.current?.forceFocusOutOfContainer(M)},updateLayoutClasses:n,getFocusableContainers:()=>{const M=[],G=[],V=m.current?.querySelector(".ag-root");for(const K of y.current){if(!K.isDisplayed())continue;const O=K.getFocusableContainerName();if(O==="rowGroupToolbar"||O==="pivotToolbar"){M.push(K);continue}G.push(K)}const B=[...M];return V&&B.push({getGui:()=>V,getFocusableContainerName:()=>"gridBody"}),B.push(...G),B},setCursor:r,setUserSelect:l};I.setComp(H,k,k),d(!0)},[]);p.useEffect(()=>{const k=f.current,I=m.current;if(!u||!k||!C||!I||e.isDestroyed())return;const H=[];y.current=[],x.current=void 0;const{watermarkSelector:M,paginationSelector:G,sideBarSelector:V,statusBarSelector:B,gridHeaderDropZonesSelector:K}=k.getOptionalSelectors(),O=[];if(K){const W=e.createBean(new K.component),Y=W.getGui();I.insertAdjacentElement("afterbegin",Y),O.push(Y),H.push(W),y.current.push(...W.getFocusableContainers?.()??[])}if(V){const W=e.createBean(new V.component),Y=W.getGui(),ie=C.querySelector(".ag-tab-guard-bottom");ie&&(ie.insertAdjacentElement("beforebegin",Y),O.push(Y)),H.push(W),y.current.push(W)}const A=W=>{const Y=e.createBean(new W),ie=Y.getGui();return I.insertAdjacentElement("beforeend",ie),O.push(ie),H.push(Y),Y};if(B){const W=A(B.component);y.current.push(W)}if(G){const W=A(G.component);x.current=W,y.current.push(W)}return M&&A(M.component),()=>{e.destroyBeans(H),y.current=[],x.current=void 0;for(const W of O)W.remove()}},[u,C,e]);const R=p.useMemo(()=>ls("ag-root-wrapper",t,i),[t,i]),E=p.useMemo(()=>ls("ag-root-wrapper-body","ag-focus-managed",i),[i]),D=p.useMemo(()=>({userSelect:a??"",WebkitUserSelect:a??"",cursor:o??""}),[a,o]),T=p.useCallback(k=>{v.current=k,h(k!==null)},[]),P=p.useCallback(()=>!f.current?.isFocusable(),[]);return p.createElement("div",{ref:F,className:R,style:D,role:"presentation"},p.createElement("div",{className:E,ref:w,role:"presentation"},c&&C&&!e.isDestroyed()&&p.createElement(At.Provider,{value:e.getBeans()},p.createElement(iN,{ref:T,eFocusableElement:C,onTabKeyDown:S,gridCtrl:f.current,forceFocusOutWhenTabGuardsAreEmpty:!0,isEmpty:P},p.createElement(eN,null)))))},oN=p.memo(nN),rN=class extends j{postConstruct(){if(this.beans.colAutosize){const e=this.queueResizeOperationsForTick.bind(this);this.addManagedEventListeners({rowExpansionStateChanged:e,expandOrCollapseAll:e,cellValueChanged:e,rowNodeDataChanged:e,rowDataUpdated:e})}}queueResizeOperationsForTick(){const e=this.beans.colAutosize;e.shouldQueueResizeOperations=!0,setTimeout(()=>{e.processResizeOperations()},0)}areHeaderCellsRendered(){return this.beans.ctrlsSvc.getHeaderRowContainerCtrls().every(e=>e.getAllCtrls().every(t=>t.areCellsRendered()))}areCellsRendered(){return this.beans.rowRenderer.getAllRowCtrls().every(e=>e.isRowRendered()&&e.getAllCellCtrls().every(t=>!!t.eGui))}},aN=typeof window>"u"?p.useEffect:p.useLayoutEffect,rb={setGridApi:void 0,maxComponentCreationTimeMs:void 0,children:void 0},lN={gridOptions:void 0,modules:void 0,containerStyle:void 0,className:void 0,passGridApi:void 0,componentWrappingElement:void 0,...rb},ab=new Set(Object.keys(lN)),cN=new Set(Object.keys(rb)),lb=e=>{const t=p.useContext(EO),s=p.useContext(DO),i=p.useRef(),n=p.useRef(null),o=p.useRef(null),r=p.useRef([]),a=p.useRef([]),l=p.useRef(e),c=p.useRef(),d=p.useRef(),u=p.useRef(!1),[h,f]=p.useState(void 0),[,m]=p.useState(0),v=p.useRef(),C=S=>{const F=n.current?.classList,R=(E="")=>E.trim().split(/\s+/g).filter(Boolean);if(v.current!==S){for(const E of R(v.current))F?.contains(E)&&F.remove(E);for(const E of R(S))F?.contains(E)||F?.add(E);v.current=S}};aN(()=>{C(e.className)},[e.className]);const w=p.useCallback(S=>{if(n.current=S,C(e.className),!S){for(const M of r.current)M();r.current.length=0;return}const F=[...e.modules??[],...t??[]];s&&pC(F)?.setLicenseKey(s),o.current||(o.current=new FO(()=>m(M=>M+1),e.componentWrappingElement,e.maxComponentCreationTimeMs),r.current.push(()=>{o.current?.destroy(),o.current=null}));const R=n3(e.gridOptions,e,Object.keys(e).filter(M=>!ab.has(M))),E=()=>{if(u.current){const M=()=>c.current?.shouldQueueUpdates()?void 0:a.current.shift();let G=M();for(;G;)G(),G=M()}},D=new pN(E);c.current=D;const T=new rN,P={providedBeanInstances:{frameworkCompWrapper:new uN(o.current,R),renderStatus:T},modules:F,frameworkOverrides:D,setThemeOnGridDiv:!0},k=M=>{f(M),M.createBean(T),r.current.push(()=>{M.destroy()}),M.getBean("ctrlsSvc").whenReady({addDestroyFunc:G=>{r.current.push(G)}},()=>{if(M.isDestroyed())return;const G=i.current;G&&e.passGridApi?.(G)})},I=M=>{M.getBean("ctrlsSvc").whenReady({addDestroyFunc:G=>{r.current.push(G)}},()=>{for(const G of a.current)G();a.current.length=0,u.current=!0})},H=new Uk;R.gridId??(R.gridId=d.current),i.current=H.create(S,R,k,I,P),r.current.push(()=>{i.current=void 0}),i.current&&(d.current=i.current.getGridId())},[]),b=p.useMemo(()=>({height:"100%",...e.containerStyle||{}}),[e.containerStyle]),x=p.useCallback(S=>{u.current&&!c.current?.shouldQueueUpdates()?S():a.current.push(S)},[]);p.useEffect(()=>{const S=dN(l.current,e);l.current=e,x(()=>{i.current&&o3(S,i.current)})},[e]);const y=!p.useSyncExternalStore||bl(e,"renderingMode")==="legacy"?"legacy":"default";return p.createElement("div",{style:b,ref:w},p.createElement(J1.Provider,{value:y},h&&!h.isDestroyed()?p.createElement(oN,{key:h.instanceId,context:h}):null,o.current?.getPortals()??null))};function dN(e,t){const s={};for(const i of Object.keys(t)){if(ab.has(i)){cN.has(i)&&q(274,{prop:i});continue}const n=t[i];e[i]!==n&&(s[i]=n)}return s}var uN=class extends sO{constructor(e,t){super(),this.parent=e,this.gridOptions=t}createWrapper(e,t){const s=this.gridOptions;if(bl(s,"reactiveCustomComponents")){const r=(a=>{switch(a){case"filter":return bl(s,"enableFilterHandlers")?mO:fO;case"floatingFilterComponent":return bl(s,"enableFilterHandlers")?wO:CO;case"dateComponent":return pO;case"dragAndDropImageComponent":return gO;case"loadingOverlayComponent":case"noRowsOverlayComponent":case"activeOverlay":return hO;case"statusPanel":return yO;case"toolPanel":return SO;case"menuItem":return xO;case"cellRenderer":return uO;case"innerHeaderComponent":return bO}})(t.name);if(r)return new r(e,this.parent,t)}else switch(t.name){case"filter":case"floatingFilterComponent":case"dateComponent":case"dragAndDropImageComponent":case"loadingOverlayComponent":case"noRowsOverlayComponent":case"activeOverlay":case"statusPanel":case"toolPanel":case"menuItem":case"cellRenderer":Jp();break}const n=!t.cellRenderer&&t.name!=="toolPanel";return new ib(e,this.parent,t,n)}},hN=p.forwardRef((e,t)=>{const s=p.useContext(At),{registry:i,context:n,gos:o,rowModel:r}=s,[a,l]=p.useState(()=>new gs),[c,d]=p.useState(()=>new gs),[u,h]=p.useState(),[f,m]=p.useState(),v=p.useRef(),C=p.useRef(null),w=p.useRef(),b=p.useMemo(()=>LR(e.api.getGridId(),u?.rowModelType??"clientSide"),[e]),x=p.useMemo(()=>a.toString()+" ag-details-row",[a]),y=p.useMemo(()=>c.toString()+" ag-details-grid",[c]);t&&p.useImperativeHandle(t,()=>({refresh(){return v.current?.refresh()??!1}})),e.template&&q(230);const S=p.useCallback(R=>{if(C.current=R,!R||n.isDestroyed()){v.current=n.destroyBean(v.current),w.current?.();return}const E={toggleCss:(T,P)=>l(k=>k.setClass(T,P)),toggleDetailGridCss:(T,P)=>d(k=>k.setClass(T,P)),setDetailGrid:T=>h(T),setRowData:T=>m(T),getGui:()=>C.current},D=i.createDynamicBean("detailCellRendererCtrl",!0);if(D&&(n.createBean(D),D.init(E,e),v.current=D,o.get("detailRowAutoHeight"))){const T=()=>{if(C.current==null)return;const P=C.current.clientHeight;P!=null&&P>0&&setTimeout(()=>{e.node.setRowHeight(P),(at(o)||jo(o))&&r.onRowHeightChanged()},0)};w.current=li(s,R,T),T()}},[]),F=p.useCallback(R=>{v.current?.registerDetailWithMaster(R)},[]);return p.createElement("div",{className:x,ref:S},u&&p.createElement(lb,{className:y,...u,modules:b,rowData:f,passGridApi:F}))}),pN=class extends u1{constructor(e){super("react"),this.processQueuedUpdates=e,this.queueUpdates=!1,this.renderingEngine="react",this.frameworkComponents={agGroupCellRenderer:Lm,agGroupRowRenderer:Lm,agDetailCellRenderer:hN},this.wrapIncoming=(t,s)=>s==="ensureVisible"?oO(t):t()}frameworkComponent(e){return this.frameworkComponents[e]}isFrameworkComponent(e){if(!e)return!1;const t=e.prototype;return!(t&&"getGui"in t)}getLockOnRefresh(){this.queueUpdates=!0}releaseLockOnRefresh(){this.queueUpdates=!1,this.processQueuedUpdates()}shouldQueueUpdates(){return this.queueUpdates}runWhenReadyAsync(){return nO()}},gN=class extends p.Component{constructor(){super(...arguments),this.apiListeners=[],this.setGridApi=e=>{this.api=e;for(const t of this.apiListeners)t(e)}}registerApiListener(e){this.apiListeners.push(e)}componentWillUnmount(){this.apiListeners.length=0}render(){return p.createElement(lb,{...this.props,passGridApi:this.setGridApi})}},cb=(e=>(e.Dropdown="dropdown",e.Menu="menu",e))(cb||{}),Qt=(e=>(e.Click="click",e.Hover="hover",e.ContextMenu="contextMenu",e))(Qt||{}),No=(e=>(e.Item="item",e.Divider="divider",e.PlainText="plainText",e))(No||{});const fN=re("flex items-center gap-2 align-middle","h-auto px-0 bg-transparent border-0"),mN=re("z-[53] overflow-auto rounded bg-layer-0 text-primary shadow focus-visible:outline-none"),bh=re("flex w-full cursor-pointer items-center gap-3","focus-visible:border-none focus-visible:outline-none","hover:bg-accent-primary-alpha px-3","dial-small-text h-[34px] rounded text-primary"),xh="opacity-75 !cursor-not-allowed",db="text-error",vN="my-1 border-t border-hover border-secondary",lo=4,CN=g.jsx(_.IconChevronRight,{size:14}),eg=({ariaLabel:e,className:t,size:s=24,onClose:i,...n})=>g.jsx(fc,{"aria-label":e,className:$(t,"w-auto h-auto"),onClick:i,icon:g.jsx(_.IconX,{size:s}),...n});function ub(e,t="menu",s=!1){const[i,n]=p.useState(!1),{refs:o,floatingStyles:r,context:a}=De.useFloating({placement:"right-start",open:i,onOpenChange:n,whileElementsMounted:De.autoUpdate,middleware:[De.offset({mainAxis:0,crossAxis:-4}),De.flip({padding:e}),De.shift({padding:e})]}),l=De.useHover(a,{enabled:!s,move:!1,delay:{open:80,close:80}}),c=De.useDismiss(a,{bubbles:!0}),d=De.useRole(a,{role:t}),{getReferenceProps:u,getFloatingProps:h}=De.useInteractions([l,c,d]);return{isOpen:i,refs:o,floatingStyles:r,context:a,getReferenceProps:u,getFloatingProps:h}}const hb=({refs:e,floatingStyles:t,context:s,getFloatingProps:i,role:n,className:o,children:r})=>g.jsx(De.FloatingPortal,{children:g.jsx(De.FloatingFocusManager,{context:s,modal:!1,initialFocus:-1,returnFocus:!1,children:g.jsx("div",{ref:e.setFloating,style:t,role:n,className:re("z-[53] overflow-auto rounded bg-layer-0 text-primary shadow focus-visible:outline-none",o),...i(),children:r})})}),wN=({item:e,onRootClose:t})=>{const{isOpen:s,refs:i,floatingStyles:n,context:o,getReferenceProps:r,getFloatingProps:a}=ub(lo,"menu",!!e.disabled),l=p.useCallback(c=>d=>{c.disabled||(c.onClick?.({key:c.key,domEvent:d}),t())},[t]);return g.jsxs(g.Fragment,{children:[g.jsxs("button",{ref:i.setReference,type:"button",role:"menuitem","aria-haspopup":"menu","aria-expanded":s,"aria-disabled":!!e.disabled,disabled:e.disabled,className:re(bh,e.disabled&&xh,e.className),...r(),children:[e.icon&&g.jsx("span",{className:re(e.disabled&&"text-secondary"),children:g.jsx(Oe,{icon:e.icon})}),g.jsx("span",{className:re("flex-1 truncate text-start",e.disabled&&"text-secondary"),children:e.label}),g.jsx("span",{className:re("ml-auto shrink-0",e.disabled&&"text-secondary"),children:CN})]}),s&&g.jsx(hb,{refs:i,floatingStyles:n,context:o,getFloatingProps:a,role:"menu",className:"w-max",children:g.jsx("div",{role:"none",className:"py-1",children:e.children.map(c=>g.jsxs("button",{role:"menuitem",type:"button","aria-disabled":!!c.disabled,disabled:c.disabled,className:re(bh,c.disabled&&xh,c.danger&&db,c.className),onClick:l(c),children:[c.icon&&g.jsx("span",{className:re(c.danger&&"text-error",c.disabled&&"text-secondary"),children:g.jsx(Oe,{icon:c.icon})}),g.jsx("span",{className:re("flex-1 truncate text-start",c.danger&&"text-error",c.disabled&&"text-secondary"),children:c.label})]},c.key))})})]})},bN=e=>"clientWidth"in e?e.clientWidth:e.getBoundingClientRect?.()?.width??0,Mt=({children:e,items:t,onItemClick:s,menuHeader:i,menuFooter:n,renderOverlay:o,trigger:r=[Qt.Click],placement:a,disabled:l=!1,open:c,defaultOpen:d=!1,onOpenChange:u,closable:h=!1,onClose:f,className:m,overlayContentClassName:v,separatorClassName:C,listClassName:w,outsidePressIgnoreRef:b,outsideClosable:x=!0,allowedPlacements:y,anchorToMouse:S=!1,matchReferenceWidth:F=!0,maxDropdownHeight:R})=>{const[E,D]=p.useState(d),T=c!==void 0,P=T?!!c:E,k=p.useRef(null),I=p.useCallback(L=>{T||D(L),u?.(L)},[T,u]),H=p.useId(),M=a===void 0,{refs:G,floatingStyles:V,context:B}=De.useFloating({placement:a,open:P,onOpenChange:I,whileElementsMounted:De.autoUpdate,middleware:[De.offset({mainAxis:lo,crossAxis:0}),M?De.autoPlacement({alignment:"start",crossAxis:!0,padding:lo,allowedPlacements:y}):De.flip({padding:lo}),De.shift({padding:lo}),De.size({padding:lo,apply({availableWidth:L,availableHeight:ee,elements:ye}){const z=ye.floating,le=bN(ye.reference);z.style.setProperty("--fui-available-height",`${Math.floor(ee)}px`),z.style.setProperty("--reference-width",F?`${Math.round(le)}px`:"0px"),F?z.style.minWidth=`${Math.round(le)}px`:z.style.removeProperty("min-width"),z.style.maxWidth=`${Math.floor(L)}px`;const ve=Math.floor(ee);z.style.maxHeight=`${R?Math.min(ve,R):ve}px`}})]}),K=De.useClick(B,{enabled:r.includes(Qt.Click)&&!l}),O=De.useHover(B,{enabled:r.includes(Qt.Hover)&&!l,move:!1,restMs:40,delay:{open:80,close:80}}),A=De.useDismiss(B,{bubbles:!0,referencePress:!1,outsidePress:L=>{if(!x)return!1;const ee=L.target;return!(b?.current&&ee instanceof Node&&b.current.contains(ee))}}),W=De.useRole(B,{role:"menu"}),{getReferenceProps:Y,getFloatingProps:ie}=De.useInteractions([K,O,A,W]),be=p.useCallback((L,ee)=>{G.setPositionReference({getBoundingClientRect:()=>({width:0,height:0,x:L,y:ee,top:ee,left:L,right:L,bottom:ee})})},[G]),Z=p.useCallback(L=>{!r.includes(Qt.ContextMenu)||l||(L.preventDefault(),S&&(be(L.clientX,L.clientY),k.current=document.elementFromPoint(L.clientX,L.clientY)),I(!0))},[S,l,I,be,r]),me=p.useCallback(L=>{!S||l||(r.includes(Qt.ContextMenu)&&P&&I(!1),be(L.clientX,L.clientY),k.current=document.elementFromPoint(L.clientX,L.clientY))},[S,l,be,P,r,I]);p.useEffect(()=>{l&&P&&I(!1)},[l,P,I]);const Ie=p.useCallback(L=>ee=>{L.disabled||(L.onClick?.({key:L.key,domEvent:ee}),s?.({key:L.key,domEvent:ee}),I(!1))},[s,I]),ne=p.useMemo(()=>o?o():t?g.jsxs(g.Fragment,{children:[i&&g.jsx(g.Fragment,{children:typeof i=="function"?i():i}),g.jsx("div",{role:"none",className:$("py-1",v),"aria-label":"dropdown",children:t.map(L=>L.type===No.Divider?g.jsx("div",{role:"separator",className:$(vN,C)},L.key):L.type===No.PlainText?g.jsx("div",{className:$("px-3 py-2 text-secondary dial-caption",L.className),children:L.label},L.key):L.children?.length?g.jsx(wN,{item:L,onRootClose:()=>I(!1)},L.key):g.jsxs("button",{role:"menuitem",type:"button","aria-disabled":!!L.disabled,className:re(bh,L.disabled&&xh,L.danger&&db,L.className),disabled:L.disabled,onClick:Ie(L),children:[L.icon&&g.jsx("span",{className:re(L.danger&&"text-error",L.disabled&&"text-secondary"),children:g.jsx(Oe,{icon:L.icon})}),g.jsx("span",{className:re("flex-1 truncate text-start",L.danger&&"text-error",L.disabled&&"text-secondary"),"aria-labelledby":"item-text",children:L.label})]},L.key))}),n&&g.jsx(g.Fragment,{children:typeof n=="function"?n():n})]}):null,[Ie,t,n,i,o,I,v,C]),ce=Y({onContextMenu:Z,onMouseDown:me});return p.useEffect(()=>{if(!P)return;const L=G.reference.current;let ee=null;if(L instanceof Element?ee=L:k.current instanceof Element&&(ee=k.current),!ee)return;const ye=new IntersectionObserver(([z])=>{z.isIntersecting||I(!1)},{root:null,threshold:0});return ye.observe(ee),()=>ye.disconnect()},[P,G.reference,I]),g.jsxs(g.Fragment,{children:[g.jsx("span",{ref:G.setReference,className:re(fN,l&&"!cursor-not-allowed opacity-75",m),"aria-haspopup":"menu","aria-expanded":P,"aria-controls":H,...ce,children:e}),P&&g.jsx(De.FloatingPortal,{children:g.jsx(De.FloatingFocusManager,{context:B,modal:!1,initialFocus:-1,returnFocus:!0,children:g.jsxs("div",{id:H,ref:G.setFloating,style:V,className:re(mN,!F&&"w-max",w),...ie(),children:[h&&g.jsx("div",{className:"flex items-center justify-between px-2 pt-2",children:g.jsx(eg,{ariaLabel:"Close dropdown",onClose:L=>{f?.(L),I(!1)}})}),ne]})})})]})},xN="h-full w-full",Gm=".ag-checkbox-input",gu={accentColor:"var(--controls-bg-accent, #5C8DEA)",backgroundColor:"var(--bg-layer-3, #1D2439)",oddRowBackgroundColor:"var(--bg-layer-2, #161B2D)",selectedRowBackgroundColor:"var(--bg-accent-primary-alpha, #7DA4FF26)",borderColor:"var(--bg-layer-4, #242C42)",rowBorder:"1px solid var(--stroke-tertiary, #0C101D)",rowHoverColor:"var(--bg-accent-primary-alpha, #7DA4FF26)",borderRadius:3,browserColorScheme:"dark",chromeBackgroundColor:"var(--bg-layer-1, #0C101D)",foregroundColor:"var(--text-primary, #EEF1F7)",headerFontSize:14,headerFontWeight:600,headerTextColor:"var(--text-secondary, #7F8792)",spacing:4,wrapperBorderRadius:3,fontSize:14,fontFamily:"var(--theme-font, var(--font-inter))"},Vm=40;var en=(e=>(e.API="api",e.ROW_DATA_CHANGED="rowDataChanged",e.CHECKBOX_SELECTED="checkboxSelected",e))(en||{});const yN=(e,t,s,i,n)=>{const o=typeof e=="string"?e.toLowerCase():e,r=typeof t=="string"?t.toLowerCase():t;return o===r?0:o?r?o>r?1:-1:n?1:-1:n?-1:1};var Nr=(e=>(e.MULTIPLE="MULTIPLE",e.SINGLE="SINGLE",e))(Nr||{});const pb="en-US",gb={year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},SN="text-primary",fu=40,fb={minWidth:fu,width:fu,maxWidth:fu},RN={cellClass:"ag-grid-no-checkbox",...fb},FN={...fb};function EN(e,t){let s=null;return(...i)=>{s&&clearTimeout(s),s=setTimeout(()=>e(...i),t)}}const DN=()=>{const[e,t]=p.useState(Ig());return p.useEffect(()=>{const s=()=>t(Ig());return window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[]),e};tO({testIdAttribute:"dataQA"});hC.registerModules([YL]);const tg=({columnDefs:e,rowData:t,additionalGridOptions:s,getContextMenuItems:i,className:n,ariaLabel:o="Data grid",wrapCustomCellRenderers:r=!0,disabledRowIds:a,selectedRowIds:l,onSelectionChange:c,onGridApiChange:d,getRowId:u=F=>String(F.id??JSON.stringify(F)),alternateOddRowColors:h=!1,filterPlaceholder:f="Enter value",emptyStateIcon:m,emptyStateTitle:v="No results found",emptyStateDescription:C="Sorry, we couldn't find any results for your search.",loading:w=!1,wrapperBorder:b=!0,withoutHeaderBorders:x=!1,allowDisabledContextMenu:y=!1,selectionMode:S})=>{const[F,R]=p.useState(),E=p.useId(),D=na(),T=DN(),P=p.useRef(new Set),k=p.useRef(void 0),I=p.useMemo(()=>({...gu,oddRowBackgroundColor:h?gu.oddRowBackgroundColor:gu.backgroundColor,wrapperBorder:b}),[h,b]),H=p.useCallback(L=>{L.api.sizeColumnsToFit()},[]),M=p.useCallback(L=>{if(L.data){const ee=u(L.data),ye=a?.has(ee)??!1,z=ye&&!y,le=L.value==null?"":String(L.value),ve=i?.(L.data)??[];return g.jsx(Mt,{trigger:[Qt.ContextMenu],items:ve,anchorToMouse:!0,matchReferenceWidth:!0,className:"w-full",disabled:z,children:g.jsx("span",{className:"block min-w-0 h-full max-w-full",children:g.jsx(bt,{text:le,className:"max-w-full h-full",hideTooltip:ye})})})}},[i,a,u,y]),G=p.useCallback(L=>L===en.API||L===en.ROW_DATA_CHANGED,[]),V=p.useCallback(L=>{if(!F)return;const ye=(L.selectedNodes||[]).map(le=>le.data),z=new Set(ye.map(u));P.current=z,k.current=L.source,G(L.source)||c?.(z,ye)},[F,u,G,c]),B=p.useMemo(()=>EN(L=>V?.(L),100),[V]),K=p.useCallback(L=>{if(!L.data)return null;const ee=u(L.data),ye=L.node.isSelected(),z=a?.has(ee),le=`row-select-${ee}`;return g.jsx("div",{className:"size-6 flex items-center justify-center",children:g.jsx(cn,{className:"size-[18px]",inputId:le,checked:ye,disabled:z,name:"gridradiobutton",value:"selected",onChange:()=>{z||(L.node.setSelected(!0,!0,en.CHECKBOX_SELECTED),L.api.refreshCells({columns:[L.column?.getColId()]}))}})})},[u,a]),O=p.useCallback(()=>{const L="dial-row-select",ee="dial-row-select-visible";return D||T||l&&l.size>0?`${L} ${ee}`:!l||l.size===0?L:`${L} ${ee}`},[D,T,l]),A=p.useCallback(()=>D||T?O():!l||l.size===0?"dial-row-not-select-header":O(),[O,D,T,l]),W=p.useMemo(()=>{if(S===Nr.SINGLE)return{...RN,cellRenderer:K};if(S===Nr.MULTIPLE)return{...FN,headerClass:()=>A(),cellClass:L=>{const ee=L.data?u(L.data):null;let ye=O();return ee&&a?.has(ee)&&(ye+=" opacity-50 pointer-events-none"),ye}}},[S,K,A,u,O,a]),Y=p.useCallback(L=>{const ee=typeof r=="function"?r(L):!!r;if(!L.cellRenderer)return{...L,cellRenderer:M};if(!ee)return L;const ye=L.cellRenderer;return{...L,cellRenderer:le=>{const ve=le.data?i?.(le.data)??[]:[];let Ee=null;if(typeof ye=="function"){const Ae=ye;Ee=g.jsx(Ae,{...le})}else Ee=M(le);const oe=le.data?u(le.data):null,xe=oe?a?.has(oe):!1;return g.jsx(Mt,{trigger:[Qt.ContextMenu],items:ve,anchorToMouse:!0,matchReferenceWidth:!0,className:re("w-full h-full",xe&&"!cursor-not-allowed opacity-75"),disabled:xe&&!y,children:g.jsx("span",{className:"block min-w-0 max-w-full flex-1",children:Ee})})}}},[a,i,u,M,r,y]),ie=p.useMemo(()=>r?(e??[]).map(Y):e??[],[e,r,r?Y:null]),be=p.useMemo(()=>({minWidth:150,resizable:!0,sortable:!0,floatingFilter:!0,filter:"agTextColumnFilter",filterParams:{filterPlaceholder:f,buttons:["reset"]},comparator:yN.bind(void 0)}),[f]),Z=L=>{const ee=document.querySelector(Gm);ee&&ee.setAttribute("aria-description",Pu);const ye=ie.map(z=>({...z,sort:void 0}));L.api.updateGridOptions({columnDefs:ye,rowData:t}),L.api.sizeColumnsToFit(),R(L.api),s?.onGridReady?.(L),d?.(L.api)};p.useEffect(()=>{F&&t&&F.setGridOption("rowData",t)},[F,t]);const me=p.useCallback(()=>g.jsx(ra,{title:v,description:C,containerClassName:"gap-3",titleClassName:"mt-2 !text-lg",icon:m||g.jsx(_.IconZoomCancel,{size:100,stroke:.5,className:"text-secondary"})}),[v,C,m]),Ie=p.useMemo(()=>{if(S)return{mode:S===Nr.SINGLE?"singleRow":"multiRow",isRowSelectable:L=>{const ee=L.data?u(L.data):null;return ee?!a?.has(ee):!0}}},[a,u,S]);p.useEffect(()=>{F&&t&&P.current.size&&P.current.forEach(L=>{const ee=F.getRowNode(L);ee&&!ee.isSelected()&&ee.setSelected(!0,!1,en.API)})},[F,t]),p.useEffect(()=>{F&&l&&(F.deselectAll("all",en.API),l.forEach(L=>{const ee=F.getRowNode(L);ee&&!ee.isSelected()&&ee.setSelected(!0,!1,en.API)}))},[F,l]);const ne=p.useCallback(L=>L.data?u(L.data):"",[u]),ce=p.useCallback(()=>{document.querySelectorAll(`.ag-row ${Gm}`).forEach(L=>{L.setAttribute("aria-description",Pu)})},[]);return p.useEffect(()=>{const L=G(k.current);if(F&&l?.size&&L){const ee=Array.from(l)[0];if(ee){const ye=F.getRowNode(ee);ye&&F.ensureNodeVisible(ye)}}},[F,G,l]),g.jsx("div",{className:re(xN,n,S&&"with-selection-column",x&&"dial-without-header-borders"),"aria-label":o,role:"region","aria-busy":w,children:g.jsx("div",{className:"ag-theme-balham-dark h-full overflow-x-auto",role:"table","aria-describedby":E,children:g.jsx(gN,{rowModelType:"clientSide",headerHeight:Vm,rowHeight:Vm,cellSelection:!1,theme:J4.withPart(k4).withParams({...I}),autoSizeStrategy:{type:"fitGridWidth"},columnDefs:ie,defaultColDef:be,selectionColumnDef:W,onGridSizeChanged:H,onGridReady:Z,loading:w,suppressCellFocus:!0,suppressDragLeaveHidesColumns:!0,noRowsOverlayComponent:me,rowData:t,rowSelection:Ie,onSelectionChanged:B,getRowId:ne,onRowDataUpdated:ce,onBodyScroll:ce,onFirstDataRendered:ce,...s})})})};var cc=(e=>(e.Horizontal="horizontal",e.Vertical="vertical",e))(cc||{}),vn=(e=>(e.Default="default",e.Inline="inline",e))(vn||{}),dc=(e=>(e.Mobile="mobile",e.Tablet="tablet",e))(dc||{});const mr=({tab:e,active:t,invalid:s,className:i,horizontal:n,view:o=vn.Default,onClick:r})=>{const a=o===vn.Inline,l=$("rounded h-[38px] items-center flex flex-row border-transparent cursor-pointer dial-small-text hover:text-accent-primary",{"border-b-2 px-4":n,"border-l-2 px-3":!n},{"bg-layer-4":n,"bg-layer-1 text-secondary pointer-events-none":e.disabled,"bg-accent-primary-alpha text-primary":t&&!e.disabled,"text-primary":!t&&!e.disabled,"border-b-accent-primary":t&&n&&!e.disabled,"border-l-accent-primary":t&&!n&&!e.disabled}),c=$("flex flex-row gap-1 h-6 items-center py-1 px-2 rounded cursor-pointer hover:bg-accent-primary-alpha",t?"dial-small-semi":"dial-small",{"text-secondary pointer-events-none":e.disabled,"bg-accent-primary-alpha text-primary":t&&!e.disabled,"text-secondary":!t&&!e.disabled}),d=$(a?c:l,i);return g.jsxs("button",{role:"tab",className:d,onClick:()=>r(e.id),disabled:e.disabled,children:[a&&t&&!e.disabled&&g.jsx(_.IconCheck,{size:nt.SM}),g.jsx(bt,{text:e.label,contentClassName:"max-w-[200px]",className:"max-w-[200px]"}),(s||e.invalid)&&g.jsx("div",{className:"text-error pl-1",children:g.jsx(_.IconExclamationCircle,{...te})}),e.warning&&g.jsx("div",{className:"text-warning pl-1",children:g.jsx(_.IconAlertTriangle,{...te})})]})},PN=()=>{const[e,t]=p.useState(()=>typeof window>"u"?Ri.Desktop:Rd());return p.useEffect(()=>{t(Rd());const s=()=>t(Rd());return window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[]),e},TN=12,mb=({tabs:e,activeTab:t,onClick:s,className:i,orientation:n=cc.Horizontal,view:o=vn.Default,screenThreshold:r=dc.Tablet,smallScreenContainerClassName:a,smallScreenDropdownItemClassName:l,desktopDropdownClassName:c,desktopTabClassName:d,inlineContainerClassName:u,inlineTabClassName:h})=>{const[f,m]=p.useState(!1),[v,C]=p.useState(!1),[w,b]=p.useState(!1),x=PN(),y=x===Ri.Mobile||r===dc.Tablet&&x===Ri.Tablet,S=n===cc.Horizontal,F=p.useRef(null),R=p.useRef(null),E=p.useRef(null),D=e.find(H=>H.id===t),T=p.useMemo(()=>$("flex gap-2",S?"flex-row flex-nowrap overflow-x-auto":"flex-col flex-wrap w-full"),[S]),P=p.useCallback(()=>{const H=R.current;H&&b(H.scrollWidth>H.clientWidth)},[]),k=p.useCallback(()=>{const H=E.current,M=R.current;if(!H||!M)return;const G=H.getBoundingClientRect(),V=M.getBoundingClientRect();if(G.width===0||V.width===0)return;const B=TN;let K=M.scrollLeft;if(G.left<V.left+B)K-=V.left+B-G.left;else if(G.right>V.right-B)K+=G.right-(V.right-B);else return;const O=Math.max(0,M.scrollWidth-M.clientWidth);K=Math.max(0,Math.min(K,O)),K!==M.scrollLeft&&M.scrollTo({left:K,behavior:"smooth"})},[]),I=p.useCallback(H=>{s(H),H===t&&k()},[s,t,k]);return p.useEffect(()=>{P();const H=new ResizeObserver(()=>P()),M=R.current;return M&&H.observe(M),()=>H.disconnect()},[e,P]),p.useEffect(()=>{k()},[t,k]),o===vn.Inline?g.jsx("div",{role:"tablist",className:$("flex flex-row items-center gap-0.5 bg-layer-4 rounded w-fit p-0.5",u),children:e.map(H=>g.jsx(mr,{tab:H,active:t===H.id,view:vn.Inline,onClick:I,className:h},H.id))}):y?g.jsx("div",{role:"tablist",className:$("h-11 flex items-center bg-layer-3 px-4",a),children:g.jsx(Mt,{trigger:[Qt.Click],open:f,onOpenChange:m,placement:"bottom-start",allowedPlacements:["bottom-start","top-start"],renderOverlay:()=>e.map(H=>g.jsx(mr,{tab:H,active:H.id===t,onClick:M=>{I(M),m(!1)},className:$("w-full rounded-none h-11 items-center px-6",l)},H.id)),children:g.jsxs("div",{className:"flex gap-2 items-center h-11 cursor-pointer",children:[g.jsx(mr,{tab:D,active:!0,onClick:I,className:"rounded-none bg-transparent border-l-0 border-b-0 h-full items-center px-0"},t),g.jsx(Oe,{icon:g.jsx(_.IconChevronDown,{size:nt.SM}),className:$("text-primary transition-transform",f&&"rotate-180")})]})})}):g.jsxs("div",{ref:F,className:$("flex items-center",i),children:[g.jsx("div",{ref:R,role:"tablist",className:T,children:e.map(H=>g.jsx("div",{ref:t===H.id?E:void 0,className:"w-full",children:g.jsx(mr,{tab:H,active:t===H.id,onClick:I,horizontal:S,className:$("w-full",d)})},H.id))}),w&&g.jsx("div",{className:"flex items-center ml-2",children:g.jsx(Mt,{trigger:[Qt.Click],open:v,onOpenChange:C,placement:"bottom-end",renderOverlay:()=>e.map(H=>g.jsx(mr,{tab:H,active:H.id===t,onClick:M=>{I(M),C(!1)},className:"w-full rounded-none h-8 items-center px-3 py-2"},H.id)),children:g.jsx(Fs,{iconBefore:g.jsx(_.IconDotsVertical,{size:Zt}),className:$("w-8 h-8 flex items-center justify-center rounded border",v?"bg-layer-4 border-transparent":"border-primary",c)})})})]})},kN="w-full overflow-hidden",IN="flex flex-nowrap items-center gap-2 min-w-0 px-0 py-0 whitespace-nowrap",vb="flex items-center gap-2 min-w-0 dial-small-text",MN="shrink-0 max-w-[30%]",AN="flex-1 min-w-0",zm="flex flex-1 items-center gap-1 min-w-0 transition-colors",LN="text-secondary hover:text-accent-primary",ON="text-primary cursor-default",Cb="flex-none inline-flex items-center leading-none text-secondary",NN="items-center gap-1 min-w-0 transition-colors text-secondary hover:text-accent-primary",wb=g.jsx(_.IconChevronRight,{size:nt.SM,"aria-hidden":"true"}),Rr=({label:e,href:t,onClick:s,disabled:i,isLast:n,separator:o=wb,className:r,iconBefore:a,labelClassName:l,onBeforeNavigate:c,...d})=>{const u=async C=>{if(c&&!n&&!await c()){C.preventDefault();return}s&&s(C)},h=$(vb,n?AN:MN,r),f=(!!t||!!s)&&!n&&!i,m=f?$(zm,LN):$(zm,ON,i?"pointer-events-none opacity-75":""),v=typeof e=="string"?g.jsx(bt,{className:$("cursor-pointer",l),text:e,id:"breadcrumb-item-content"}):g.jsx("span",{className:$("flex-1 min-w-0 truncate cursor-pointer max-w-[300px]",l),"aria-label":"breadcrumb-item-content",children:e});return g.jsxs("li",{...d,className:h,"aria-label":d["aria-label"]||"breadcrumb-item",children:[f?g.jsxs("a",{href:t,onClick:u,className:m,children:[a,v]}):g.jsxs("span",{className:m,"aria-current":n?"page":void 0,"aria-disabled":i?"true":void 0,children:[a,v]}),!n&&g.jsx("span",{className:Cb,"aria-label":"separator",children:o})]})},bb=({pathItems:e,separator:t=wb,ariaLabel:s="Breadcrumb",className:i,children:n,labelClassName:o,onBeforeNavigate:r})=>{const a=p.useMemo(()=>e?.length?e:p.Children.toArray(n).filter(p.isValidElement).map(d=>{const u=d.props,{labelClassName:h,isLast:f,separator:m,...v}=u;return v}),[e,n]),l=p.useCallback(async d=>{const u=parseInt(d.key,10),h=a[u];if(r&&!await r()){d.domEvent.preventDefault();return}h.onClick?h.onClick(d.domEvent):h.href&&(window.location.href=h.href)},[a,r]),c=p.useMemo(()=>{if(a.length===0)return null;if(a.length<=3)return a.map((v,C)=>p.createElement(Rr,{...v,key:`item-${C}`,isLast:C===a.length-1,separator:t,labelClassName:o,onBeforeNavigate:r}));const d=a.at(0),u=a.slice(1,-2),h=a.at(-2),f=a.at(-1);if(!d||!h||!f)return null;const m=u.map((v,C)=>({key:String(C+1),label:typeof v.label=="string"?v.label:`Item ${C+1}`,disabled:v.disabled}));return g.jsxs(g.Fragment,{children:[p.createElement(Rr,{...d,key:"item-0",separator:t,labelClassName:o,onBeforeNavigate:r}),g.jsxs("li",{className:$(vb),children:[g.jsx(Mt,{items:m,onItemClick:l,placement:"bottom-start",matchReferenceWidth:!1,children:g.jsx("button",{type:"button","aria-label":"More breadcrumbs",className:NN,children:g.jsx(_.IconDots,{size:nt.SM})})}),g.jsx("span",{className:Cb,children:t})]}),p.createElement(Rr,{...h,key:`item-${a.length-2}`,separator:t,labelClassName:o,onBeforeNavigate:r}),p.createElement(Rr,{...f,key:`item-${a.length-1}`,isLast:!0,separator:t,labelClassName:o,onBeforeNavigate:r})]})},[a,t,o,l,r]);return g.jsx("nav",{"aria-label":s,className:$(kN,i),children:g.jsx("ol",{className:IN,children:c})})},sg=(e,t)=>({appearance:i,...n})=>g.jsx(Fs,{...n,variant:e,appearance:i||t}),xb=(e,t)=>({variant:i,...n})=>g.jsx(Fs,{...n,variant:i||t,appearance:e}),Bs=sg(Ye.Primary,ke.Solid),js=sg(Ye.Neutral,ke.Outlined),yb=sg(Ye.Danger,ke.Outlined),HN=xb(ke.Link,Ye.Primary),ig=xb(ke.Ghost,Ye.Primary),BN=({selected:e,className:t,...s})=>g.jsx(Fs,{...s,className:$("dial-neutral-rounded-button",e&&"selected",t)}),jc=({iconClassName:e,label:t,...s})=>t?g.jsx(yb,{...s,label:t,appearance:ke.Ghost,iconBefore:g.jsx(_.IconTrashX,{...te,className:e||""})}):g.jsx(Fv,{...s,appearance:ke.Ghost,icon:g.jsx(_.IconTrashX,{...te,className:e||""})}),GN=({className:e,icon:t,tooltipProps:s,type:i="button",...n})=>{const o=$("dial-fab-button disabled:cursor-not-allowed focus-visible:outline outline-offset-0 disabled:text-controls-secondary-disable",e),r=g.jsx("button",{...n,type:i,className:o,"aria-label":n["aria-label"],children:t||g.jsx(_.IconArrowNarrowDown,{size:24,stroke:1.5})});return s?g.jsx(kt,{...s,children:r}):r},VN=({className:e="",value:t,onChange:s,error:i,containerClassName:n,resize:o=!1,labelProps:r,caption:a,id:l,...c})=>{const d=$("dial-textarea dial-input px-3 py-2",c.invalid&&"dial-input-error",c.disabled&&"dial-input-disable",o?"resize":"resize-none",e);return g.jsxs("div",{className:$("flex flex-col gap-y-1",n),children:[r&&g.jsx(Bi,{...r,htmlFor:l}),g.jsx("textarea",{id:l,value:t||"",className:d,onChange:u=>s?.(u.currentTarget.value),...c}),g.jsx(Nt,{text:i}),!i&&g.jsx(ia,{text:a})]})},Wc=({label:e,switchId:t,isOn:s=!1,disabled:i,onChange:n,caption:o})=>{const r=re("flex w-[36px] h-[18px] cursor-pointer items-center gap-1 rounded-full p-0.5 transition-all duration-200",s?"flex-row-reverse":"flex-row",i?"pointer-events-none":"",i?s?"bg-controls-disable":"bg-layer-4":s?"bg-accent-primary":"bg-layer-4"),a=p.useCallback(l=>{l.stopPropagation(),n?.(!s)},[n,s]);return g.jsxs("div",{className:"flex flex-row items-start",role:"switch",children:[g.jsx("input",{type:"checkbox",onChange:a,id:t,disabled:i,className:"invisible size-0",checked:s}),g.jsx("label",{htmlFor:t,className:r,"aria-describedby":o&&"caption",children:g.jsx("span",{className:re("size-3 rounded-full",i?"bg-controls-disable-accent":"bg-controls-enable-primary")})}),(e||o)&&g.jsxs("div",{className:"flex flex-col gap-1 ml-2",children:[e&&g.jsx("span",{className:re("dial-small-text py-[1px]",i?"text-secondary":"text-primary"),"aria-label":"switch-title",children:e}),o&&g.jsx("span",{id:"caption",className:"dial-tiny-text text-secondary",children:o})]})]})};var es=(e=>(e.Sm="sm",e.Md="md",e.Lg="lg",e))(es||{});const zN="z-[52] flex items-center justify-center bg-blackout md:p-4",jm="divide-tertiary divide-y",jN="flex flex-row justify-between py-4 px-6 items-center",WN={[es.Sm]:"dial-sm-popup",[es.Md]:"dial-md-popup",[es.Lg]:"dial-lg-popup"},Hn=({open:e=!1,header:t,portalId:s,className:i,overlayClassName:n,titleClassName:o,headerClassName:r,dividers:a=!0,dividerFooter:l=!0,children:c,footer:d,onClose:u,size:h=es.Md,hideClose:f=!1,closeOnOutsideClick:m=!0,preventKeyboardOnOpen:v=!1})=>{const C=p.useRef(null),{refs:w,context:b}=De.useFloating({open:e,onOpenChange:E=>{E||u?.(null)}}),x=De.useRole(b,{role:"dialog"}),y=De.useDismiss(b,{outsidePress:m}),{getFloatingProps:S}=De.useInteractions([x,y]);if(!e)return null;const F=typeof t=="string"?"dial-popup-heading":void 0,R=E=>E?typeof E=="string"?g.jsx("h3",{id:F,className:re("flex-1 min-w-0 mr-3 truncate dial-h3-text text-primary",o),children:g.jsx(kt,{tooltip:E,children:E})}):E:g.jsx("span",{});return g.jsx(De.FloatingPortal,{id:s,children:g.jsx(De.FloatingOverlay,{className:re(zN,n,"mx-4"),children:g.jsx(De.FloatingFocusManager,{context:b,initialFocus:v?C:void 0,children:g.jsxs("div",{ref:w.setFloating,...S(),role:"dialog","aria-modal":"true","aria-labelledby":F,className:re("dial-popup",WN[h],a&&jm,i),children:[v&&g.jsx("div",{ref:C,tabIndex:-1,"aria-hidden":!0,className:"absolute size-px -m-px overflow-hidden opacity-0 pointer-events-none"}),g.jsxs("div",{className:$(jN,r),children:[R(t),!f&&g.jsx(eg,{size:nt.SM,ariaLabel:"Close dialog",onClose:E=>u?.(E)})]}),g.jsx("div",{className:"grow overflow-auto","aria-label":"popup-description",children:c}),l&&!d&&g.jsx("div",{className:jm}),d]})})})})};var Ho=(e=>(e.Info="info",e.Danger="danger",e))(Ho||{});const _N="flex justify-end gap-2 px-6 py-4 border-t border-tertiary",UN="text-secondary dial-small-150 px-6 py-4",$N="Cancel",qN="Ok",mu={[Ho.Info]:{confirm:{variant:Ye.Primary,appearance:ke.Solid},cancel:{variant:Ye.Neutral,appearance:ke.Outlined}},[Ho.Danger]:{container:"dial-danger-popup",confirm:{variant:Ye.Danger,appearance:ke.Solid},cancel:{variant:Ye.Neutral,appearance:ke.Outlined}}},Sb=({header:e,description:t,descriptionClassName:s,open:i=!1,confirmLabel:n=qN,cancelLabel:o=$N,isLoading:r=!1,disableConfirmButton:a=!1,className:l,confirmClassName:c,onClose:d,onConfirm:u,onCancel:h,children:f,dividers:m=!1,variant:v=Ho.Info,size:C=es.Sm,footer:w,hideClose:b})=>{const x=r?null:g.jsxs("div",{className:_N,children:[g.jsx(js,{label:o,onClick:()=>h?h():d?.()}),g.jsx(Fs,{variant:mu[v].confirm?.variant,appearance:mu[v].confirm?.appearance,className:c,label:n,disabled:a,onClick:()=>u()})]}),y=p.useCallback(()=>r?g.jsx("div",{className:"px-6 py-4 h-[120px]",children:g.jsx(oa,{size:40})}):f??(t?g.jsx("div",{className:re(UN,s),children:t}):null),[f,t,r,s]);return g.jsx(Hn,{open:i,header:e,className:re(mu[v].container,l),dividers:m,onClose:()=>d?.(),footer:w??x,size:C,hideClose:b??(!r&&w===void 0),children:y()})},vu=8,KN=24,Rb=({initialTags:e=[],label:t,required:s,elementId:i,placeholder:n,captionDescription:o,errorText:r,invalid:a,disabled:l,collapseTagOverflow:c=!1,readOnly:d=!1,containerClassName:u,tagClassName:h,onChange:f})=>{const m=p.useRef(null),v=p.useRef([]),C=p.useRef(null),[w,b]=p.useState(e),[x,y]=p.useState(""),[S,F]=p.useState(!1),[R,E]=p.useState(e.length),D=p.useCallback(V=>B=>{v.current[V]=B},[]),T=p.useCallback(()=>{if(!c)return;const V=m.current;if(!V)return;const B=V.offsetWidth;if(B===0)return;const K=C.current?.offsetWidth??0,A=B-(d?0:KN)-vu;let W=0,Y=0;for(let ie=0;ie<w.length;ie++){const be=v.current[ie];if(!be)continue;const Z=be.offsetWidth+vu;if(W+Z>A)break;W+=Z,Y++}if(Y<w.length&&Y>0)for(;W+K>A&&Y>0;){Y--;const ie=v.current[Y]?.offsetWidth??0;W-=ie+vu}E(Y)},[c,d,w.length]),P=V=>{const B=V.trim().replace(/,$/,"");if(B&&!w.includes(B)){const K=[B,...w];b(K),f?.(K)}},k=V=>{(V.key===","||V.key==="Enter")&&(V.preventDefault(),P(x),y(""))},I=()=>{x.trim()&&(P(x),y(""))},H=V=>{const B=w.filter((K,O)=>O!==V);b(B),f?.(B)},M=()=>r?g.jsx(Nt,{text:r}):o?g.jsx(ia,{text:o}):null;p.useEffect(()=>{if(c)return;const V=new ResizeObserver(()=>{if(m.current){const B=m.current.scrollHeight>m.current.clientHeight+10;F(B)}});return m.current&&V.observe(m.current),()=>V.disconnect()},[w,c]),p.useEffect(()=>{if(!c){E(w.length);return}E(w.length);const V=new ResizeObserver(()=>{T()}),B=m.current;return B&&V.observe(B),T(),()=>V.disconnect()},[c,T,w]),p.useEffect(()=>{b(e)},[JSON.stringify(e)]);const G=g.jsxs("div",{ref:m,className:re("flex gap-2 items-center relative",c?"flex-nowrap overflow-hidden w-full min-w-0":re("flex-wrap",S?"flex-col-reverse":"flex-row"),u),children:[(c?w.slice(0,R):w).map((V,B)=>g.jsx(on,{label:V,className:h,closable:!l&&!d,onRemove:!l&&!d?()=>H(B):void 0},V+B)),c&&R<w.length&&g.jsx(kt,{tooltip:w.slice(R).join(", "),triggerClassName:"inline-flex shrink-0 cursor-pointer",children:g.jsx(on,{label:`+${w.length-R}`})}),!d&&g.jsx("input",{id:i,type:"text",value:x,onChange:V=>y(V.target.value),onKeyDown:k,onBlur:I,className:re("dial-input outline-none !border-none w-full flex-1 !p-1 !h-auto",c?"min-w-0":"min-w-[100px]"),placeholder:n??"",disabled:l}),c&&g.jsxs("div",{className:"absolute left-0 top-0 invisible pointer-events-none h-0 overflow-hidden whitespace-nowrap","aria-hidden":!0,children:[w.map((V,B)=>g.jsx("div",{ref:D(B),className:"inline-flex shrink-0",children:g.jsx(on,{label:V,className:h,closable:!l&&!d,onRemove:!l&&!d?()=>H(B):void 0})},`measure-${V}-${B}`)),g.jsx("div",{ref:C,className:"inline-flex shrink-0",children:g.jsx(on,{label:`+${w.length}`})})]})]});return d?G:g.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[g.jsx(Bi,{label:t,required:s,htmlFor:i}),g.jsx("div",{className:re("dial-input min-h-[38px] p-[6px]",a&&"dial-input-error",l&&"dial-input-disable"),children:G}),M()]})},Fb=({selectedItems:e,placeholder:t,collapseTagOverflow:s=!1,listClassName:i,listElementClassName:n})=>e?.length?g.jsx(Rb,{readOnly:!0,initialTags:e,collapseTagOverflow:s,containerClassName:i,tagClassName:n}):t?g.jsx("span",{className:"text-secondary",children:t}):null,Cu=e=>Re.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("path",{d:"M2.25 13.5V12C2.25 11.5858 2.58579 11.25 3 11.25C3.41421 11.25 3.75 11.5858 3.75 12V13.5C3.75 13.6989 3.82907 13.8896 3.96973 14.0303C4.11038 14.1709 4.30109 14.25 4.5 14.25H6C6.41421 14.25 6.75 14.5858 6.75 15C6.75 15.4142 6.41421 15.75 6 15.75H4.5C3.90326 15.75 3.33114 15.5128 2.90918 15.0908C2.48722 14.6689 2.25 14.0967 2.25 13.5ZM14.25 6V4.5C14.25 4.30109 14.1709 4.11038 14.0303 3.96973C13.8896 3.82907 13.6989 3.75 13.5 3.75H12C11.5858 3.75 11.25 3.41421 11.25 3C11.25 2.58579 11.5858 2.25 12 2.25H13.5C14.0967 2.25 14.6689 2.48722 15.0908 2.90918C15.5128 3.33114 15.75 3.90326 15.75 4.5V6C15.75 6.41421 15.4142 6.75 15 6.75C14.5858 6.75 14.25 6.41421 14.25 6Z",fill:"currentColor"})),Eb=({children:e,open:t,disabled:s=!1,selectedValue:i,valueClassName:n,inputClassName:o,onOpen:r,elementId:a,errorText:l,invalid:c,emptyValueText:d,placeholder:u,editable:h=!1,onValueChange:f,collapseTagOverflow:m=!1,iconBefore:v})=>{const C=Array.isArray(i)&&i.length>0,w=typeof i=="string"&&!!i.trim(),b=C||w?i:u?void 0:d,x=s?void 0:r,y=p.useCallback(E=>{f?.(E.target.value)},[f]),S=()=>g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:re("dial-input px-3 py-2 dial-input-field flex flex-row items-center gap-x-2 w-full justify-between",o,s&&"dial-input-disable",(l||c)&&"dial-input-error"),children:[g.jsxs("div",{className:"flex flex-row items-center gap-x-2 flex-1 min-w-0",children:[v&&g.jsx(Oe,{icon:v}),g.jsx("input",{type:"text",className:re("flex-1 min-w-0 bg-transparent outline-none border-none p-0 dial-small-text text-primary placeholder:text-secondary",n),value:typeof i=="string"?i:"",placeholder:u||d,onChange:y,disabled:s,id:a,"aria-label":"input-popup-field"})]}),!s&&g.jsx("button",{type:"button",className:"shrink-0 cursor-pointer bg-transparent border-none p-0 ml-1",onClick:r,"aria-label":"open-popup",children:g.jsx(Oe,{icon:g.jsx(Cu,{role:"img",width:Zt,height:Zt})})})]}),g.jsx(Nt,{text:l})]}),F=()=>g.jsxs(g.Fragment,{children:[g.jsx("button",{type:"button",className:"w-full",onClick:x,"aria-label":"open-popup",id:a,children:g.jsxs("div",{className:re("dial-input px-3 py-2 dial-input-field flex flex-row items-center gap-x-2 w-full justify-between cursor-pointer",o,s&&"dial-input-disable",(l||c)&&"dial-input-error"),children:[g.jsxs("div",{className:"flex flex-row items-center gap-x-2 flex-1 min-w-0",children:[v&&g.jsx(Oe,{icon:v}),g.jsx(kt,{tooltip:b==null?void 0:String(b),children:b||!u?g.jsx("span",{className:n,children:b}):g.jsx("span",{className:"text-secondary",children:u})})]}),!s&&g.jsx("div",{className:"shrink-0",children:g.jsx(Oe,{icon:g.jsx(Cu,{role:"img",width:Zt,height:Zt})})})]})}),g.jsx(Nt,{text:l})]}),R=()=>g.jsx("div",{className:"w-full",onClick:x,children:g.jsxs("div",{className:re("dial-input px-3 py-2 flex flex-row items-center gap-x-2 w-full justify-between cursor-pointer",s&&"dial-input-disable"),children:[g.jsxs("div",{className:"flex flex-row items-center gap-x-2 flex-1 min-w-0",children:[v&&g.jsx(Oe,{icon:v}),g.jsx(Fb,{placeholder:u,selectedItems:b,collapseTagOverflow:m})]}),!s&&g.jsx("div",{className:"ml-1",children:g.jsx(Oe,{icon:g.jsx(Cu,{role:"img",width:Zt,height:Zt})})})]})});return g.jsxs(g.Fragment,{children:[C?R():h?S():F(),t&&Bo.createPortal(e,document.body)]})},YN=({label:e,htmlFor:t,disabled:s,selectedValue:i,radioButtons:n,customInputValue:o,valueClassName:r,inputClassName:a,emptyValueText:l,placeholder:c,onClose:d,header:u,portalId:h,onApply:f,onCancel:m,cancelButtonTitle:v="Cancel",applyButtonTitle:C="Apply",isValid:w,selectedRadioValue:b,onChangeRadioField:x,id:y,size:S=es.Md})=>{const[F,R]=p.useState(!1),E=p.useCallback(()=>{s||R(!0)},[s]),D=p.useCallback(()=>{R(!1),d?.()},[d]),T=p.useCallback(()=>{m?.(),D()},[m,D]),P=p.useCallback(()=>{f(),D()},[f,D]);return g.jsxs("div",{className:"flex flex-col gap-1",children:[g.jsx(Bi,{label:e,htmlFor:t}),g.jsx(Eb,{disabled:s,open:F,selectedValue:o??n.find(k=>k.id===i)?.name,valueClassName:r,inputClassName:re(a,"py-2","px-3"),emptyValueText:l,placeholder:c,onOpen:E,children:g.jsx(Hn,{open:F,onClose:T,header:u,portalId:h,size:S,footer:g.jsxs("div",{className:"flex flex-row items-center justify-end gap-2 px-6 py-4",children:[g.jsx(js,{label:v,onClick:T}),g.jsx(Bs,{label:C,onClick:P,disabled:!w})]}),children:g.jsx("div",{className:"px-6 py-4",children:g.jsx(Al,{radioButtons:n,labelClassName:"dial-small-text",activeRadioButton:b,onChange:x,elementId:y,orientation:Cn.Column})})})})]})},ZN="Create",XN="Cancel",QN="flex items-center justify-end gap-2 px-6 py-3",JN=({header:e,open:t=!1,submitLabel:s=ZN,cancelLabel:i=XN,isLoading:n=!1,disableSubmitButton:o=!1,className:r,submitClassName:a,onClose:l,onSubmit:c,onCancel:d,children:u,dividers:h=!0,size:f=es.Md,footer:m})=>{const v=n?null:g.jsxs("div",{className:QN,children:[g.jsx(js,{label:i,onClick:()=>d?d():l?.()}),g.jsx(Bs,{className:a,label:s,disabled:o,onClick:()=>c()})]}),C=p.useCallback(()=>n?g.jsx("div",{className:"px-6 py-4 h-[120px]",children:g.jsx(oa,{size:50})}):u??null,[u,n]);return g.jsx(Hn,{open:t,header:e,className:r,dividers:h,onClose:()=>l?.(),footer:m??v,size:f,children:C()})},eH="bg-layer-4 flex items-center justify-center enabled:text-secondary enabled:hover:text-accent-primary enabled:active:bg-controls-accent-primary-alpha-active enabled:hover:bg-accent-primary-alpha enabled:active:text-accent-primary",tH=({icon:e,onClick:t,disabled:s,size:i=et.Standard,className:n})=>g.jsx("div",{className:re("border-l border-tertiary",i===et.Standard?"h-[40px] w-[44px]":"h-[24px] w-[32px]"),children:g.jsx(ii,{className:re(eH,i===et.Small&&"p-1",n),icon:e,onClick:t,disabled:s,size:i})}),sH=["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Backspace","Delete","Tab","Enter","Escape","Home","End","Insert"],Db=(e,t,s,i)=>{if((t==="number"||s!==void 0||i!==void 0)&&!sH.includes(e.key)&&!(e.ctrlKey||e.metaKey)&&!(e.key==="-"&&(e.currentTarget.selectionStart??0)===0&&!e.currentTarget.value.includes("-"))&&!(e.key==="."&&t==="number"&&!e.currentTarget.value.includes("."))){if(!/^[0-9]$/.test(e.key)){e.preventDefault();return}if(s!==void 0||i!==void 0){const o=e.currentTarget.value,r=e.currentTarget.selectionStart||0,a=o.slice(0,r)+e.key+o.slice(r),l=parseFloat(a);if(!isNaN(l)){if(s!==void 0&&l<+s){e.preventDefault();return}if(i!==void 0&&l>+i){e.preventDefault();return}}}}},ai=({labelProps:e,error:t,caption:s,id:i,containerClassName:n,...o})=>g.jsxs("div",{className:$("flex flex-col gap-y-3",n),children:[e&&g.jsx(Bi,{...e,htmlFor:i}),g.jsx(Pb,{id:i,...o}),g.jsx(Nt,{text:t}),!t&&g.jsx(ia,{text:s})]}),Pb=({invalid:e,disabled:t,prefix:s,className:i,postfix:n,iconBefore:o,iconAfter:r,wrapperClassName:a,type:l,inputRef:c,value:d,tooltipText:u,min:h,onChange:f,max:m,inputButtonProps:v,...C})=>{const w=p.useRef(null),b=De.useMergeRefs([c,w]),x=l==="number"||h!==void 0||m!==void 0;p.useEffect(()=>{const R=w.current;if(!R||!x||t)return;const E=D=>{D.preventDefault()};return R.addEventListener("wheel",E,{passive:!1}),()=>{R.removeEventListener("wheel",E)}},[t,x,l]);const y=R=>{Db(R,l,h,m)},S=R=>{const E=R.currentTarget.value;if(x&&E!==""){const D=parseFloat(E);if(isNaN(D)&&E!=="-"&&E!=="."||!isNaN(D)&&(h!==void 0&&D<+h||m!==void 0&&D>+m))return}f?.(E||void 0)},F=()=>g.jsxs("div",{className:$("dial-input flex flex-row items-center gap-x-2 justify-between py-2",e&&"dial-input-error",t&&"dial-input-disable",!s&&"pl-3",!v&&"pr-3",a),"aria-label":"input-container",children:[s&&g.jsx("div",{className:"border-r border-tertiary",children:g.jsx(Pb,{wrapperClassName:"!rounded-r-none",className:"truncate",value:s,disabled:!0,id:`${s}_textBefore`})}),g.jsx(Oe,{icon:o}),g.jsx("input",{ref:b,type:l,autoComplete:l==="password"?"new-password":"off",value:d??"",className:$("border-0 bg-transparent w-full truncate",t&&"cursor-not-allowed",i),onChange:S,onKeyDown:y,min:h,disabled:t,max:m,...C}),n&&g.jsxs("p",{className:"text-secondary dial-small-text",children:[" ",n]}),g.jsx(Oe,{icon:r}),v&&g.jsx(tH,{...v,disabled:t})]});return t&&l!=="password"?g.jsx(kt,{tooltip:u||d,children:F()}):F()},iH=/^0+\.(\d+)?$/,nH=/^0+/,yh=({integer:e,onChange:t,min:s,max:i,onKeyDown:n,onPaste:o,...r})=>{const a=d=>!d||d==="-"?d:String(d)?.match(iH)?String(d)?.replace(nH,"0"):Number(d),l=d=>{if([".","-","+","e","E"].includes(d.key)){d.preventDefault();return}Db(d,"number",s,i)},c=d=>{const u=d.clipboardData.getData("text"),h=u.replace(/\D/g,"");if(h!==u&&(d.preventDefault(),h)){const f=d.currentTarget,m=f.selectionStart??0,v=f.selectionEnd??0,C=f.value.slice(0,m)+h+f.value.slice(v);t?.(a(C))}};return g.jsx(ai,{type:"number",min:s,max:i,onChange:d=>t?.(a(d)),onKeyDown:e?l:n,onPaste:e?c:o,...r})},oH=({onClick:e})=>g.jsx(_.IconEyeOff,{...te,className:"text-primary",onClick:e,role:"button","aria-label":"hide"}),rH=({onClick:e})=>g.jsx(_.IconEye,{...te,className:"text-primary",onClick:e,role:"button","aria-label":"show"}),Tb=({...e})=>{const[t,s]=p.useState(!1),i=p.useCallback(n=>{s(n)},[]);return g.jsx(ai,{type:t?"text":"password",...e,iconAfter:e.disabled?null:t?g.jsx(oH,{onClick:()=>i(!1)}):g.jsx(rH,{onClick:()=>i(!0)})})},aH={[et.Small]:{className:"dial-tiny-text",wrapperClassName:"pl-2 py-0",containerClassName:"h-[24px]",iconSize:16,iconStroke:1},[et.Standard]:{className:"dial-small-text",wrapperClassName:"",containerClassName:"",iconSize:20,iconStroke:1.5}},ng=({size:e=et.Standard,placeholder:t="Search...",value:s,onChange:i,withoutBorder:n,...o})=>{const[r,a]=p.useState(s||"");p.useEffect(()=>{a(s||"")},[s]);const l=p.useCallback(h=>{a(h||""),i?.(h||"")},[i]),c=aH[e],d=p.useCallback(()=>{l("")},[l]),u=p.useMemo(()=>{if(r)return{icon:g.jsx(_.IconX,{size:c.iconSize,"aria-label":"Clear search",role:"button"}),className:n?"bg-transparent":"",onClick:d,size:e}},[d,r,e,c.iconSize,n]);return g.jsx(ai,{placeholder:t,iconBefore:g.jsx(_.IconSearch,{size:c.iconSize,stroke:c.iconStroke}),value:r,onChange:l,inputButtonProps:u,containerClassName:c.containerClassName,className:c.className,wrapperClassName:$(c.wrapperClassName,n?"!border-0 ps-5 [&>div]:!border-0":""),...o})},kb=({options:e,selectedValues:t,handleRemoveTag:s})=>g.jsx("div",{className:"flex flex-wrap w-full items-center gap-1",children:t.map(i=>{const n=e.find(r=>r.value===i)?.label??i,o=e.find(r=>r.value===i)?.icon;return g.jsx(on,{label:n,onRemove:r=>s?.(r,i),icon:o?g.jsx(Oe,{icon:o}):null,className:"max-w-full"},i)})});var uc=(e=>(e.Sm="sm",e.Md="md",e))(uc||{}),hc=(e=>(e.Primary="Primary",e.Secondary="Secondary",e))(hc||{});const lH="dial-input flex w-full items-center justify-between gap-2 dial-small-text cursor-pointer",cH="w-full rounded flex flex-col",Hr="flex w-full items-center justify-between gap-2 px-3 h-[34px] dial-small-text text-primary truncate hover:bg-accent-primary-alpha focus:bg-accent-primary-alpha focus:outline-none",dH="bg-accent-primary-alpha",Sh="bg-accent-primary-alpha border-l border-accent-primary border-1",pc="opacity-75",uH=352,hH=4,pH=g.jsx(_.IconChevronDown,{size:nt.SM}),gH=({opt:e,selectedValues:t,onSelect:s})=>{const{isOpen:i,refs:n,floatingStyles:o,context:r,getReferenceProps:a,getFloatingProps:l}=ub(hH,"listbox",!!e.disabled),c=e.children?.some(d=>t.includes(d.value));return g.jsxs(g.Fragment,{children:[g.jsxs("button",{ref:n.setReference,type:"button",role:"option","aria-haspopup":"listbox","aria-expanded":i,"aria-selected":!!c,"aria-disabled":!!e.disabled,disabled:e.disabled,className:re(Hr,c&&Sh,e.disabled&&pc),...a(),children:[g.jsxs("div",{className:"flex items-center gap-2 w-full min-w-0",children:[e.icon&&g.jsx(Oe,{icon:e.icon}),g.jsx(bt,{text:e.label})]}),g.jsx(_.IconChevronRight,{size:14,className:"shrink-0"})]}),i&&g.jsx(hb,{refs:n,floatingStyles:o,context:r,getFloatingProps:l,role:"listbox",className:"w-max py-1",children:e.children.map(d=>{const u=t.includes(d.value);return g.jsx("button",{type:"button",role:"option","aria-selected":u,"aria-disabled":!!d.disabled,disabled:d.disabled,className:re(Hr,u&&Sh,d.disabled&&pc),onClick:()=>!d.disabled&&s(d.value),children:g.jsxs("div",{className:"flex items-center gap-2 w-full",children:[d.icon&&g.jsx(Oe,{icon:d.icon}),g.jsx(bt,{text:d.label})]})},d.value)})})]})},In=({options:e,multiple:t=!1,elementId:s,value:i,defaultValue:n,variant:o=hc.Primary,size:r=uc.Md,prefix:a,customSelectedValue:l,placeholder:c="Select...",searchable:d=!1,searchPlaceholder:u,selectAll:h=!1,invalid:f,selectAllLabel:m="Select all",emptyStateTitle:v="No options available",emptyStateDescription:C,emptyStateIcon:w,disabled:b=!1,className:x,listClassName:y,closable:S=!1,header:F,footer:R,onClose:E,onChange:D,inlineSearch:T=!1,dismissRef:P,onFooterClick:k,open:I,onOpenChange:H,onInlineQueryChange:M,customMultiSelectTagsRenderer:G})=>{const V=p.useId(),[B,K]=p.useState(!1),O=I!==void 0,A=O?!!I:B,W=p.useCallback(U=>{O||K(U),H?.(U)},[O,H]),[Y,ie]=p.useState(T&&l||""),be=p.useRef(null),Z=p.useCallback(U=>{U!==Y&&(ie(U||""),M?.(U||""))},[M,Y]),me=i!==void 0,[Ie,ne]=p.useState(n),ce=me?i:Ie,L=p.useMemo(()=>t?Array.isArray(ce)?ce:[]:typeof ce=="string"?[ce]:[],[ce,t]),ee=p.useMemo(()=>{const U=Y.trim().toLowerCase();return U?e.filter(Ne=>Ne.label.toLowerCase().includes(U)):e},[e,Y]);p.useEffect(()=>{!A&&!T&&Z("")},[T,A,Z]);const ye=p.useRef(l);p.useEffect(()=>{T&&l!==ye.current&&(A||(ye.current=l,Z(l||"")))},[l,T,A,Z]);const z=p.useCallback(U=>{me||ne(U),D?.(U)},[me,D]),le=p.useCallback(U=>{if(t){const Ne=new Set(L);Ne.has(U)?Ne.delete(U):Ne.add(U),z(Array.from(Ne));return}if(z(U),T){const Ne=e.find(vs=>vs.value===U)??e.flatMap(vs=>vs.children??[]).find(vs=>vs.value===U);Ne&&Z(Ne.label)}W(!1)},[t,z,T,W,L,e,Z]),ve=p.useCallback((U,Ne)=>{if(U.stopPropagation(),!t){z("");return}const vs=L.filter(qo=>qo!==Ne);z(vs)},[t,L,z]),Ee=p.useMemo(()=>ee.filter(U=>!U.disabled),[ee]),oe=p.useMemo(()=>Ee.filter(U=>L.includes(U.value)).length,[Ee,L]),xe=p.useCallback(U=>{T&&!t&&!U&&le(Y),W(U)},[le,T,t,Y,W]),{allSelectedInFiltered:Ae,someSelectedInFiltered:Pe}=p.useMemo(()=>{const U=Ee.length>0&&oe===Ee.length;return{allSelectedInFiltered:U,someSelectedInFiltered:oe>0&&!U}},[Ee,oe]),Ce=p.useCallback(()=>{if(!(!t||Ee.length===0))if(Ae){const U=new Set(Ee.map(Ne=>Ne.value));z(L.filter(Ne=>!U.has(Ne)))}else{const U=new Set(L);Ee.forEach(Ne=>U.add(Ne.value)),z(Array.from(U))}},[Ae,t,Ee,L,z]),Ve=L.length>0;p.useEffect(()=>{A&&T&&!t&&!b&&requestAnimationFrame(()=>{const U=be.current;if(!U)return;U.focus();const Ne=U.value?.length??0;U.setSelectionRange?.(Ne,Ne)})},[A,T,t,b]);const je=!t&&Ve?L[0]:void 0,Qe=p.useMemo(()=>je?e.find(U=>U.value===je)??e.flatMap(U=>U.children??[]).find(U=>U.value===je):void 0,[e,je]),Ze=p.useCallback(()=>t?Ve?G?.(e,L,ve)||g.jsx(kb,{options:e,selectedValues:L,handleRemoveTag:ve}):g.jsx("span",{className:"text-secondary truncate",children:c}):Qe?g.jsxs(g.Fragment,{children:[Qe.icon&&g.jsx(Oe,{icon:Qe.icon}),g.jsx(bt,{text:a?`${a} ${Qe.label}`:Qe.label}),Qe?.description&&g.jsx("div",{className:"text-secondary dial-small-text",children:Qe.description})]}):l&&i?l:g.jsx("span",{className:"text-secondary truncate",children:c}),[Ve,t,l,a,i,c,Qe,e,L,ve,G]);p.useImperativeHandle(P,()=>({dismiss:()=>{W(!1)}}));const yt=p.useCallback(()=>{Z(L.length===1?Qe?.label??Y:"")},[Y,L.length,Z,Qe?.label]),We=p.useCallback(()=>{b||(W(!A),T&&!t&&(yt(),be.current?.focus()))},[b,T,A,t,yt,W]);return g.jsx(Mt,{open:A,onOpenChange:xe,disabled:b,closable:S,onClose:E,placement:"bottom-start",allowedPlacements:["bottom-start","top-start"],maxDropdownHeight:d?null:uH,listClassName:y,renderOverlay:()=>g.jsxs("div",{id:`list-${s||V}`,role:"listbox","aria-multiselectable":t||void 0,className:cH,children:[F&&g.jsx(g.Fragment,{children:typeof F=="function"?F():F}),(d||S)&&e.length>8&&g.jsxs("div",{className:"flex items-center gap-2 px-2 pt-2",children:[d&&g.jsx(ng,{placeholder:u,onChange:Z,value:Y,id:`search-${s||V}`,containerClassName:"w-full"}),S&&g.jsx(Fs,{"aria-label":"Close select",className:"shrink-0",iconBefore:g.jsx(_.IconX,{size:nt.SM}),onClick:U=>{E?.(U),W(!1)}})]}),t&&h&&Ee.length>0&&g.jsx("div",{className:re(Hr,"mt-2"),children:g.jsx(Tu,{id:`${s||V}-selectAll`,label:m,checked:Ae,indeterminate:Pe,onChange:Ce,ariaLabel:m})}),g.jsx("div",{className:re("overflow-y-auto max-h-[352px]",T&&ee.length===0?"":"py-1"),children:ee.length===0?!T&&g.jsx("div",{className:"px-2 py-3",children:g.jsx(ra,{icon:w??g.jsx(_.IconClipboardX,{size:nt.LG,stroke:.5}),title:v,description:C})}):ee.map(U=>{const Ne=L.includes(U.value);return t?g.jsxs("div",{role:"option","aria-selected":Ne,"aria-disabled":!!U.disabled,className:re(Hr,Ne&&dH,U.disabled&&pc,"w-full"),children:[g.jsx(Tu,{id:`${s||V}-${U.value}`,label:g.jsxs("span",{className:"flex w-full flex-1 pl-2 min-w-0 items-center gap-2 text-primary",children:[U.icon&&g.jsx(Oe,{icon:U.icon}),g.jsx("span",{className:"truncate",children:U.label})]}),checked:Ne,disabled:U.disabled,onChange:()=>!U.disabled&&le(U.value),ariaLabel:U.label}),U.description&&g.jsx("div",{className:"text-secondary dial-small-text",children:U.description})]},U.value):U.children?.length?g.jsx(gH,{opt:U,selectedValues:L,onSelect:le},U.value):g.jsx("button",{role:"option",type:"button","aria-selected":Ne,"aria-disabled":!!U.disabled,disabled:U.disabled,className:re(Hr,Ne&&Sh,U.disabled&&pc),onClick:()=>!U.disabled&&le(U.value),children:g.jsxs("div",{className:"flex items-center gap-2 w-full",children:[U.icon&&g.jsx(Oe,{icon:U.icon}),g.jsx(bt,{text:U.label}),U.description&&g.jsx("div",{className:"text-secondary dial-small-text",children:U.description})]})},U.value)})}),R&&g.jsx("div",{onClick:U=>{k?.(U),k&&W(!1)},children:typeof R=="function"?R():R})]}),children:g.jsxs("div",{role:"button",tabIndex:0,"aria-roledescription":"button to open select list","aria-haspopup":"listbox","aria-expanded":A,"aria-controls":`list-${s||V}`,className:$(lH,b&&"opacity-75 !cursor-not-allowed !border-primary",r===uc.Sm?"min-h-[25px] px-1.5 py-1":"min-h-[38px] px-3 py-2",f&&"dial-input-error",o===hc.Secondary?"!bg-layer-4 !h-auto":"",x),onMouseDown:U=>{b||T&&!t&&(yt(),U.preventDefault())},onClick:()=>{We()},onKeyDown:U=>{(U.key===" "||U.code==="Space")&&(U.preventDefault(),We())},children:[T&&!t?g.jsx("div",{className:"flex min-w-0 items-center gap-2 text-primary flex-1",children:g.jsx("input",{id:`inline-${s||V}`,type:"text",placeholder:u??c,value:Y||"",onChange:U=>Z(U.currentTarget.value.trimStart()),onFocus:()=>!b&&W(!0),onMouseDown:U=>{yt(),U.stopPropagation()},onClick:U=>{U.stopPropagation()},onKeyDown:U=>{U.stopPropagation()},className:"bg-transparent outline-none w-full dial-small-text",ref:be,disabled:b,"aria-disabled":b,autoComplete:"off"})}):g.jsx("div",{className:"flex w-full min-w-0 items-center gap-2 text-primary",children:Ze()}),!T&&g.jsx(Oe,{icon:pH,className:re("text-primary",A&&"rotate-180")})]})})},fH=({label:e,required:t,captionDescription:s,containerClassName:i,selectClassName:n,error:o,id:r,caption:a,readonly:l,value:c,defaultEmptyText:d,...u})=>{const h=p.useCallback(()=>{if(!c||Array.isArray(c)&&c.length===0)return d??"None";if(Array.isArray(c))return g.jsx(kb,{options:u.options,selectedValues:c});{const f=u.options?.find(m=>m.value===c);return g.jsx("span",{"aria-readonly":!0,className:"text-primary",children:f?.label||c})}},[c,u.options,d]);return g.jsx(mc,{id:r,label:e,required:t,description:a,error:o,captionDescription:s,className:i,readonly:l,value:h(),defaultEmptyText:d,children:g.jsx(In,{className:n,value:c,elementId:r,invalid:!!o,...u})})};function Ib(e){let t=null;return()=>(t==null&&(t=e()),t)}function mH(e,t){return e.filter(s=>s!==t)}function vH(e,t){const s=new Set,i=o=>s.add(o);e.forEach(i),t.forEach(i);const n=[];return s.forEach(o=>n.push(o)),n}class CH{enter(t){const s=this.entered.length,i=n=>this.isNodeInDocument(n)&&(!n.contains||n.contains(t));return this.entered=vH(this.entered.filter(i),[t]),s===0&&this.entered.length>0}leave(t){const s=this.entered.length;return this.entered=mH(this.entered.filter(this.isNodeInDocument),t),s>0&&this.entered.length===0}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class wH{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(t=>{Object.defineProperty(this.item,t,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${t}" until the drop event.`),null}})})}loadDataTransfer(t){if(t){const s={};Object.keys(this.config.exposeProperties).forEach(i=>{const n=this.config.exposeProperties[i];n!=null&&(s[i]={value:n(t,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,s)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(t,s){return s===t.getSourceId()}endDrag(){}constructor(t){this.config=t,this.item={},this.initializeExposedProperties()}}const _c="__NATIVE_FILE__",Mb="__NATIVE_URL__",Ab="__NATIVE_TEXT__",Lb="__NATIVE_HTML__",Wm=Object.freeze(Object.defineProperty({__proto__:null,FILE:_c,HTML:Lb,TEXT:Ab,URL:Mb},Symbol.toStringTag,{value:"Module"}));function wu(e,t,s){const i=t.reduce((n,o)=>n||e.getData(o),"");return i??s}const Rh={[_c]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[Lb]:{exposeProperties:{html:(e,t)=>wu(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[Mb]:{exposeProperties:{urls:(e,t)=>wu(e,t,"").split(`
|
|
69
|
-
`),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[Ab]:{exposeProperties:{text:(e,t)=>wu(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function bH(e,t){const s=Rh[e];if(!s)throw new Error(`native type ${e} has no configuration`);const i=new wH(s);return i.loadDataTransfer(t),i}function bu(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(Rh).filter(s=>{const i=Rh[s];return i?.matchesTypes?i.matchesTypes.some(n=>t.indexOf(n)>-1):!1})[0]||null}const xH=Ib(()=>/firefox/i.test(navigator.userAgent)),Ob=Ib(()=>!!window.safari);class _m{interpolate(t){const{xs:s,ys:i,c1s:n,c2s:o,c3s:r}=this;let a=s.length-1;if(t===s[a])return i[a];let l=0,c=r.length-1,d;for(;l<=c;){d=Math.floor(.5*(l+c));const f=s[d];if(f<t)l=d+1;else if(f>t)c=d-1;else return i[d]}a=Math.max(0,c);const u=t-s[a],h=u*u;return i[a]+n[a]*u+o[a]*h+r[a]*u*h}constructor(t,s){const{length:i}=t,n=[];for(let f=0;f<i;f++)n.push(f);n.sort((f,m)=>t[f]<t[m]?-1:1);const o=[],r=[];let a,l;for(let f=0;f<i-1;f++)a=t[f+1]-t[f],l=s[f+1]-s[f],o.push(a),r.push(l/a);const c=[r[0]];for(let f=0;f<o.length-1;f++){const m=r[f],v=r[f+1];if(m*v<=0)c.push(0);else{a=o[f];const C=o[f+1],w=a+C;c.push(3*w/((w+C)/m+(w+a)/v))}}c.push(r[r.length-1]);const d=[],u=[];let h;for(let f=0;f<c.length-1;f++){h=r[f];const m=c[f],v=1/o[f],C=m+c[f+1]-h-h;d.push((h-m-C)*v),u.push(C*v*v)}this.xs=t,this.ys=s,this.c1s=c,this.c2s=d,this.c3s=u}}const yH=1;function Nb(e){const t=e.nodeType===yH?e:e.parentElement;if(!t)return null;const{top:s,left:i}=t.getBoundingClientRect();return{x:i,y:s}}function hl(e){return{x:e.clientX,y:e.clientY}}function SH(e){var t;return e.nodeName==="IMG"&&(xH()||!(!((t=document.documentElement)===null||t===void 0)&&t.contains(e)))}function RH(e,t,s,i){let n=e?t.width:s,o=e?t.height:i;return Ob()&&e&&(o/=window.devicePixelRatio,n/=window.devicePixelRatio),{dragPreviewWidth:n,dragPreviewHeight:o}}function FH(e,t,s,i,n){const o=SH(t),a=Nb(o?e:t),l={x:s.x-a.x,y:s.y-a.y},{offsetWidth:c,offsetHeight:d}=e,{anchorX:u,anchorY:h}=i,{dragPreviewWidth:f,dragPreviewHeight:m}=RH(o,t,c,d),v=()=>{let F=new _m([0,.5,1],[l.y,l.y/d*m,l.y+m-d]).interpolate(h);return Ob()&&o&&(F+=(window.devicePixelRatio-1)*m),F},C=()=>new _m([0,.5,1],[l.x,l.x/c*f,l.x+f-c]).interpolate(u),{offsetX:w,offsetY:b}=n,x=w===0||w,y=b===0||b;return{x:x?w:C(),y:y?b:v()}}class EH{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var t;return!((t=this.globalContext)===null||t===void 0)&&t.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var t;return((t=this.optionsArgs)===null||t===void 0?void 0:t.rootElement)||this.window}constructor(t,s){this.ownerDocument=null,this.globalContext=t,this.optionsArgs=s}}function DH(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function Um(e){for(var t=1;t<arguments.length;t++){var s=arguments[t]!=null?arguments[t]:{},i=Object.keys(s);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(s).filter(function(n){return Object.getOwnPropertyDescriptor(s,n).enumerable}))),i.forEach(function(n){DH(e,n,s[n])})}return e}class PH{profile(){var t,s;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((t=this.dragStartSourceIds)===null||t===void 0?void 0:t.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((s=this.dragOverTargetIds)===null||s===void 0?void 0:s.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const t=this.rootElement;if(t!==void 0){if(t.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");t.__isReactDndBackendSetUp=!0,this.addEventListeners(t)}}teardown(){const t=this.rootElement;if(t!==void 0&&(t.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var s;(s=this.window)===null||s===void 0||s.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(t,s,i){return this.sourcePreviewNodeOptions.set(t,i),this.sourcePreviewNodes.set(t,s),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDragSource(t,s,i){this.sourceNodes.set(t,s),this.sourceNodeOptions.set(t,i);const n=r=>this.handleDragStart(r,t),o=r=>this.handleSelectStart(r);return s.setAttribute("draggable","true"),s.addEventListener("dragstart",n),s.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(t),this.sourceNodeOptions.delete(t),s.removeEventListener("dragstart",n),s.removeEventListener("selectstart",o),s.setAttribute("draggable","false")}}connectDropTarget(t,s){const i=r=>this.handleDragEnter(r,t),n=r=>this.handleDragOver(r,t),o=r=>this.handleDrop(r,t);return s.addEventListener("dragenter",i),s.addEventListener("dragover",n),s.addEventListener("drop",o),()=>{s.removeEventListener("dragenter",i),s.removeEventListener("dragover",n),s.removeEventListener("drop",o)}}addEventListeners(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const t=this.monitor.getSourceId(),s=this.sourceNodeOptions.get(t);return Um({dropEffect:this.altKeyPressed?"copy":"move"},s||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const t=this.monitor.getSourceId(),s=this.sourcePreviewNodeOptions.get(t);return Um({anchorX:.5,anchorY:.5,captureDraggingState:!1},s||{})}isDraggingNativeItem(){const t=this.monitor.getItemType();return Object.keys(Wm).some(s=>Wm[s]===t)}beginDragNativeItem(t,s){this.clearCurrentDragSourceNode(),this.currentNativeSource=bH(t,s),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(t){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t;const s=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var i;return(i=this.rootElement)===null||i===void 0?void 0:i.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},s)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var t;(t=this.window)===null||t===void 0||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(t,s){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(s))}handleDragEnter(t,s){this.dragEnterTargetIds.unshift(s)}handleDragOver(t,s){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(s)}handleDrop(t,s){this.dropTargetIds.unshift(s)}constructor(t,s,i){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=n=>{const o=this.sourceNodes.get(n);return o&&Nb(o)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=n=>!!(n&&this.document&&this.document.body&&this.document.body.contains(n)),this.endDragIfSourceWasRemovedFromDOM=()=>{const n=this.currentDragSourceNode;n==null||this.isNodeInDocument(n)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=n=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(n||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=n=>{if(n.defaultPrevented)return;const{dragStartSourceIds:o}=this;this.dragStartSourceIds=null;const r=hl(n);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(o||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:r});const{dataTransfer:a}=n,l=bu(a);if(this.monitor.isDragging()){if(a&&typeof a.setDragImage=="function"){const d=this.monitor.getSourceId(),u=this.sourceNodes.get(d),h=this.sourcePreviewNodes.get(d)||u;if(h){const{anchorX:f,anchorY:m,offsetX:v,offsetY:C}=this.getCurrentSourcePreviewNodeOptions(),x=FH(u,h,r,{anchorX:f,anchorY:m},{offsetX:v,offsetY:C});a.setDragImage(h,x.x,x.y)}}try{a?.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(n.target);const{captureDraggingState:c}=this.getCurrentSourcePreviewNodeOptions();c?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(l)this.beginDragNativeItem(l);else{if(a&&!a.types&&(n.target&&!n.target.hasAttribute||!n.target.hasAttribute("draggable")))return;n.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=n=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var o;(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(n.dataTransfer)}if(!this.enterLeaveCounter.enter(n.target)||this.monitor.isDragging())return;const{dataTransfer:a}=n,l=bu(a);l&&this.beginDragNativeItem(l,a)},this.handleTopDragEnter=n=>{const{dragEnterTargetIds:o}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=n.altKey,o.length>0&&this.actions.hover(o,{clientOffset:hl(n)}),o.some(a=>this.monitor.canDropOnTarget(a))&&(n.preventDefault(),n.dataTransfer&&(n.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=n=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var o;(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(n.dataTransfer)}},this.handleTopDragOver=n=>{const{dragOverTargetIds:o}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){n.preventDefault(),n.dataTransfer&&(n.dataTransfer.dropEffect="none");return}this.altKeyPressed=n.altKey,this.lastClientOffset=hl(n),this.scheduleHover(o),(o||[]).some(a=>this.monitor.canDropOnTarget(a))?(n.preventDefault(),n.dataTransfer&&(n.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?n.preventDefault():(n.preventDefault(),n.dataTransfer&&(n.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=n=>{this.isDraggingNativeItem()&&n.preventDefault(),this.enterLeaveCounter.leave(n.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=n=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var o;n.preventDefault(),(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(n.dataTransfer)}else bu(n.dataTransfer)&&n.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=n=>{const{dropTargetIds:o}=this;this.dropTargetIds=[],this.actions.hover(o,{clientOffset:hl(n)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=n=>{const o=n.target;typeof o.dragDrop=="function"&&(o.tagName==="INPUT"||o.tagName==="SELECT"||o.tagName==="TEXTAREA"||o.isContentEditable||(n.preventDefault(),o.dragDrop()))},this.options=new EH(s,i),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new CH(this.isNodeInDocument)}}const TH=function(t,s,i){return new PH(t,s,i)},kH=({onChange:e,emptyTextFirstLine:t,emptyTextSecondLine:s,emptyButtonLabel:i,acceptTypes:n,maxFilesCount:o,multiple:r,fileFormatError:a,fileCountError:l,fileSizeError:c,getIsFileFormatError:d,getIsFileSizeError:u})=>{const h=p.useRef(null),f=p.useRef(null),[m,v]=p.useState([]),[C,w]=p.useState(!1),[b,x]=p.useState(!1),y=p.useCallback(G=>{const V=G.target.files;if(V&&V.length>0){const B=Array.from(V),K=d?.(B),O=u?.(B);K?w(!0):O?x(!0):e(B)}},[d,u,e]),S=p.useCallback(G=>o&&G?.length>o,[o]),F=p.useMemo(()=>C||b||S(m),[C,b,S,m]),R=()=>{v([]),w(!1),x(!1)},E=p.useMemo(()=>C?g.jsx(Nt,{text:a}):b?g.jsx(Nt,{text:c}):S(m)?g.jsx(Nt,{text:l}):null,[l,a,c,m,S,C,b]);p.useEffect(()=>{R()},[n]);const[{isOver:D,canDrop:T},P]=Gh(()=>({accept:[_c],drop(G){const V=G.files,B=d?.(V)??!1,K=u?.(V)??!1,O=S?.(V)??!1;if(w(B),x(K),B||K||O){v(V);return}e(V),R()},collect:G=>({isOver:G.isOver(),canDrop:G.canDrop()})}),[e,d,u,S]),k=G=>{(G.key==="Enter"||G.key==="Space")&&(G.preventDefault(),f.current?.click())},I=G=>{G?.preventDefault();const V=Array.from(G.dataTransfer?.items??[]);w(!!d?.(V)),x(!!u?.(V)),v(V)},H=G=>{G.target===G.currentTarget&&R()},M=re("border border-dashed rounded w-full cursor-pointer relative h-full hover:border-hover",!T&&!F&&"border-primary",T&&(D?"border-accent-primary":"border-hover"),F&&"border-error");return P(h),g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:M,ref:h,onDragOver:I,onDragLeave:H,children:[g.jsxs("label",{htmlFor:"file",tabIndex:0,onKeyDown:k,className:"flex flex-col items-center cursor-pointer size-full text-secondary dial-tiny-text justify-center",children:[t&&g.jsx("p",{className:"mb-1",children:t}),s&&g.jsx("p",{className:"mb-0.5",children:s}),i&&g.jsx(Bs,{appearance:ke.Ghost,label:i,onClick:()=>f.current?.click()})]}),g.jsx("input",{multiple:r,id:"file",type:"file",ref:f,hidden:!0,accept:n,onChange:y})]}),g.jsx(g.Fragment,{children:E})]})},IH=({iconBefore:e,className:t,...s})=>{const i=s.invalid,n=()=>g.jsx("div",{className:"mr-2",children:i?g.jsx(_.IconExclamationCircle,{...te,className:"text-error"}):e});return g.jsx(ai,{...s,iconBefore:n(),containerClassName:re("h-[40px] p-0",i&&"h-[60px]"),className:re("rounded-r-none border-r-0",i&&"text-error",t)})},MH=({children:e,existingFiles:t,onDrop:s,getIsFileFormatError:i,getIsFileSizeError:n,maxFilesCount:o,fileFormatError:r,fileSizeError:a,fileCountError:l})=>{const c=p.useRef(null),[d,u]=p.useState(!1),[h,f]=p.useState(!1),[m,v]=p.useState(0),C=p.useCallback(()=>{u(!1),f(!1),v(0)},[]),w=p.useCallback(D=>!!(o&&t.length+D.length>o),[o,t.length]),b=d||h,[{isOver:x,canDrop:y},S]=Gh(()=>({accept:[_c],drop(D){const T=D.files,P=[...t,...T],k=i?.(T)??!1,I=n?.(T)??!1,H=w?.(T)??!1;if(u(k),f(I),k||I||H){v(T.length);return}s(P),C()},collect:D=>({isOver:D.isOver(),canDrop:D.canDrop()})}),[t,s,i,n,w,C]),F=D=>{D.preventDefault();const T=Array.from(D.dataTransfer?.items??[]);u(!!i?.(T)),f(!1),v(T.length)},R=D=>{D.target===D.currentTarget&&C()};S(c);const E=w(Array.from({length:m}));return g.jsxs("div",{className:"h-full flex flex-col",children:[g.jsx("div",{ref:c,onDragOver:F,onDragLeave:R,className:re("flex-1 min-h-0 border border-solid rounded p-2 overflow-y-auto",!b&&!E&&(y&&x?"border-accent-primary":"border-primary"),(b||E)&&"border-error"),children:e}),d&&g.jsx(Nt,{text:r}),h&&g.jsx(Nt,{text:a}),!d&&!h&&E&&g.jsx(Nt,{text:l})]})},Hb=e=>{const{files:t,iconBeforeInput:s,dynamicIcon:i,onChange:n,isInvalid:o,errorText:r,removeButtonAriaLabel:a,getIsMultiFilesSizeError:l,multiFilesSizeError:c,getIsFileFormatError:d,getIsFileSizeError:u,maxFilesCount:h}=e,f=p.useCallback((C,w)=>{C.stopPropagation(),n(t?.filter(b=>b.name!==w)||[])},[n,t]),m=p.useCallback(C=>g.jsx(jc,{"aria-label":a,onClick:w=>f(w,C)}),[a,f]),v=p.useMemo(()=>g.jsx("div",{className:"flex flex-col gap-y-1",children:t?.map((C,w)=>g.jsx(IH,{id:C.name,value:C.name,iconAfter:m(C.name),iconBefore:s||i?.(C.name),invalid:o?.(C),error:o?.(C)?r:""},C.name+w))}),[t,s,i,o,r,m]);return g.jsx(NS,{backend:TH,children:!t||t.length===0?g.jsx(kH,{...e,onChange:n}):g.jsxs(g.Fragment,{children:[g.jsx(MH,{existingFiles:t,onDrop:n,getIsFileFormatError:d,getIsFileSizeError:u,maxFilesCount:h,fileFormatError:e.fileFormatError,fileSizeError:e.fileSizeError,fileCountError:e.fileCountError,children:v}),l?.(t)&&g.jsx(Nt,{text:c})]})})},AH=({onChange:e,fieldTitle:t,elementId:s,files:i,maxFilesCount:n,maxFileSize:o,maxMultiFilesSize:r,fileFormatError:a,fileCountError:l,fileSizeError:c,multiFilesSizeError:d,multiple:u=!0,acceptTypes:h,deleteAllButtonLabel:f,addButtonLabel:m,additionalActionButtons:v,...C})=>{const w=p.useRef(null),b=()=>w.current?.click(),x=()=>{e([])},y=p.useCallback(E=>E?.some(D=>!(h==="/"||h?.toLowerCase()?.includes(D?.type?.toLowerCase()))),[h]),S=p.useCallback(E=>{if(!o)return!1;const D=o*(1024*1024);return E?.some(T=>{const P=T.size;return!!P&&P>D})},[o]),F=p.useCallback(E=>{if(!r||!u)return!1;const D=r*1024*1024;return E.reduce((P,k)=>P+k.size,0)>D},[r,u]),R=p.useCallback(E=>{const D=E.target.files;if(D&&D.length>0){const T=Array.from(D),P=y(T),k=S(T);!P&&!k&&e([...i||[],...T])}},[y,S,e,i]);return g.jsxs("div",{className:"h-full flex flex-col",children:[g.jsxs("div",{className:"flex justify-between items-center pb-1 min-h-[42px]",children:[g.jsx(Bi,{label:`${t}: ${u?i?.length||0:""}`,htmlFor:s}),u&&!!i?.length&&g.jsxs("div",{className:"flex flex-row items-center gap-x-2",children:[g.jsx(js,{label:f,iconBefore:g.jsx(_.IconTrashX,{...te}),onClick:x}),(n?n>i?.length:!0)&&g.jsx(Bs,{appearance:ke.Ghost,iconBefore:g.jsx(_.IconPlus,{...te}),label:m,onClick:b}),v]})]}),i&&i.length>0&&g.jsx("input",{id:"file",type:"file",multiple:u,ref:w,hidden:!0,accept:h,onChange:R}),g.jsx(Hb,{files:i,onChange:e,acceptTypes:h,maxFilesCount:n,multiple:u,fileFormatError:a,fileCountError:l,fileSizeError:c,multiFilesSizeError:d,getIsFileFormatError:y,getIsFileSizeError:S,getIsMultiFilesSizeError:F,...C})]})},LH=g.jsx(_.IconChevronDown,{size:nt.SM}),OH=g.jsx(_.IconChevronUp,{size:nt.SM}),Fh=({variant:e,appearance:t,items:s,...i})=>{const[n,o]=p.useState(!1),r=p.useMemo(()=>n?OH:LH,[n]);return g.jsx("div",{children:g.jsx(Mt,{items:s,onOpenChange:a=>o(a),children:g.jsx(Fs,{...i,iconAfter:r,variant:e||Ye.Primary,appearance:t||ke.Solid})})})},NH=({icon:e,ariaLabel:t,size:s=et.Standard,disabled:i=!1,className:n,buttonClassName:o,iconClassName:r,caretIcon:a=g.jsx(_.IconChevronDown,{size:nt.SM}),showCaret:l=!0,placement:c="bottom-start",matchReferenceWidth:d=!1,open:u,onOpenChange:h,defaultOpen:f=!1,...m})=>{const v=s===et.Small,[C,w]=p.useState(f),b=u??C,x=v?"w-8 px-0":"w-10 px-0",y={[et.Small]:"size-5",[et.Standard]:"size-6",[et.Large]:"size-7"},S=F=>{w(F),h?.(F)};return g.jsx(Mt,{...m,disabled:i,placement:c,matchReferenceWidth:d,className:n,open:b,onOpenChange:S,defaultOpen:f,children:g.jsxs("button",{type:"button","aria-label":t,disabled:i,className:$("group flex items-center justify-center rounded border border-transparent bg-layer-4 text-primary","enabled:hover:bg-accent-primary-alpha enabled:active:bg-controls-accent-primary-alpha-active","focus-visible:border-focus focus-visible:outline-none disabled:cursor-not-allowed disabled:text-controls-secondary-disable disabled:opacity-75",v?"h-8 px-2":"h-10 px-2",l?void 0:x,o),children:[g.jsx(Oe,{icon:e,className:$("flex items-center justify-center text-inherit",y[s],l&&"-mr-2",r)}),l&&g.jsxs("div",{className:"relative z-10 inline-grid size-5 shrink-0 place-items-center",children:[g.jsx("div",{className:"absolute inset-0 rounded-full bg-layer-2"}),g.jsx(Oe,{icon:a,className:$("relative flex items-center justify-center text-secondary transition-transform group-hover:text-primary group-disabled:text-controls-secondary-disable",b&&"rotate-180")})]})]})})},Bb=e=>Re.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.1812 1.2002H2.80615C2.43319 1.2002 2.07551 1.34835 1.81178 1.61208C1.54806 1.8758 1.3999 2.23348 1.3999 2.60645V5.48145C1.3999 5.85441 1.54806 6.21209 1.81178 6.47581C2.07551 6.73954 2.43319 6.8877 2.80615 6.8877H15.1812C15.5541 6.8877 15.9118 6.73954 16.1755 6.47581C16.4392 6.21209 16.5874 5.85441 16.5874 5.48145V2.60645C16.5874 2.23348 16.4392 1.8758 16.1755 1.61208C15.9118 1.34835 15.5541 1.2002 15.1812 1.2002ZM14.8999 5.2002H3.0874V2.8877H14.8999V5.2002ZM12 7.80017C12.3107 7.80017 12.5625 8.05201 12.5625 8.36267V11.7377H15.9375C16.2482 11.7377 16.5 11.9895 16.5 12.3002C16.5 12.6108 16.2482 12.8627 15.9375 12.8627H12.5625V16.2377C12.5625 16.5483 12.3107 16.8002 12 16.8002C11.6893 16.8002 11.4375 16.5483 11.4375 16.2377V12.8627H8.0625C7.75184 12.8627 7.5 12.6108 7.5 12.3002C7.5 11.9895 7.75184 11.7377 8.0625 11.7377H11.4375V8.36267C11.4375 8.05201 11.6893 7.80017 12 7.80017ZM2.41188 12.5883C2.14816 12.3246 2 11.9669 2 11.5939V9.00018H3.6875V11.3127H6.1001V13.0002H3.40625C3.03329 13.0002 2.6756 12.852 2.41188 12.5883Z",fill:"currentColor"})),Gb=e=>Re.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("path",{d:"M9.00049 7.7998C9.3108 7.80007 9.56279 8.05198 9.56299 8.3623V11.7373H12.938C13.2483 11.7376 13.5003 11.9895 13.5005 12.2998C13.5005 12.6103 13.2484 12.862 12.938 12.8623H9.56299V16.2373C9.56299 16.5478 9.31092 16.7995 9.00049 16.7998C8.68983 16.7998 8.43799 16.548 8.43799 16.2373V12.8623H5.06299C4.75233 12.8623 4.50049 12.6105 4.50049 12.2998C4.50069 11.9893 4.75245 11.7373 5.06299 11.7373H8.43799V8.3623C8.43819 8.05181 8.68995 7.7998 9.00049 7.7998ZM15.1812 1.2002C15.5541 1.2002 15.9116 1.34858 16.1753 1.6123C16.439 1.87603 16.5874 2.23348 16.5874 2.60645V5.48145C16.5874 5.85441 16.439 6.21186 16.1753 6.47559C15.9116 6.73931 15.5541 6.8877 15.1812 6.8877H2.80615C2.43319 6.8877 2.07573 6.73931 1.81201 6.47559C1.54829 6.21186 1.3999 5.85441 1.3999 5.48145V2.60645C1.3999 2.23348 1.54829 1.87603 1.81201 1.6123C2.07573 1.34858 2.43319 1.2002 2.80615 1.2002H15.1812ZM3.0874 2.8877V5.2002H14.8999V2.8877H3.0874Z",fill:"currentColor"})),og=e=>Re.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("path",{d:"M3.009 12.5527C2.77901 12.4216 2.5877 12.2321 2.45443 12.0034C2.32116 11.7746 2.25064 11.5147 2.25 11.25V3.75C2.25 2.925 2.925 2.25 3.75 2.25H11.25C11.8125 2.25 12.1185 2.53875 12.375 3M10.5 15.75H7.25025C6.98757 15.75 6.72747 15.6983 6.48479 15.5977C6.24211 15.4972 6.0216 15.3499 5.83586 15.1641C5.65012 14.9784 5.50278 14.7579 5.40226 14.5152C5.30174 14.2725 5.25 14.0124 5.25 13.7498V7.25025C5.25 6.71975 5.46074 6.21098 5.83586 5.83586C6.21098 5.46074 6.71975 5.25 7.25025 5.25H13.7498C14.0124 5.25 14.2725 5.30174 14.5152 5.40226C14.7579 5.50278 14.9784 5.65012 15.1641 5.83586C15.3499 6.0216 15.4972 6.24211 15.5977 6.48479C15.6983 6.72747 15.75 6.98757 15.75 7.25025V10.5M12.75 16.5L16.5 12.75M16.5 12.75V16.125M16.5 12.75H13.125",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),rg=e=>Re.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("path",{d:"M9.75 14.25H3.75C3.35218 14.25 2.97064 14.092 2.68934 13.8107C2.40804 13.5294 2.25 13.1478 2.25 12.75V4.5C2.25 4.10218 2.40804 3.72064 2.68934 3.43934C2.97064 3.15804 3.35218 3 3.75 3H6.75L9 5.25H14.25C14.6478 5.25 15.0294 5.40804 15.3107 5.68934C15.592 5.97064 15.75 6.35218 15.75 6.75V9.75M12 16.5L15.75 12.75M15.75 12.75V16.125M15.75 12.75H12.375",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),ag=e=>Re.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("path",{d:"M4.5 15.75V14.25C4.5 13.4544 4.81607 12.6913 5.37868 12.1287C5.94129 11.5661 6.70435 11.25 7.5 11.25H9.75M15.75 12.75L12 16.5M12 16.5V13.125M12 16.5H15.375M6 5.25C6 6.04565 6.31607 6.80871 6.87868 7.37132C7.44129 7.93393 8.20435 8.25 9 8.25C9.79565 8.25 10.5587 7.93393 11.1213 7.37132C11.6839 6.80871 12 6.04565 12 5.25C12 4.45435 11.6839 3.69129 11.1213 3.12868C10.5587 2.56607 9.79565 2.25 9 2.25C8.20435 2.25 7.44129 2.56607 6.87868 3.12868C6.31607 3.69129 6 4.45435 6 5.25Z",stroke:"#7F8792",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}));var go=(e=>(e.MyFiles="my_files",e.Shared="shared",e.Organization="organization",e.Review="review",e))(go||{}),X=(e=>(e.AddSibling="addSibling",e.AddChild="addChild",e.Duplicate="duplicate",e.Copy="copy",e.Move="move",e.Download="download",e.Delete="delete",e.Rename="rename",e.Info="info",e.Unshare="unshare",e.RemoveAccess="removeAccess",e.ManagePermissions="managePermissions",e.Preview="preview",e.OpenInNewTab="openInNewTab",e))(X||{}),vt=(e=>(e.Replace="replace",e.Duplicate="duplicate",e.Cancel="cancel",e))(vt||{}),Yt=(e=>(e.ReplaceAll="replaceAll",e.DuplicateAll="duplicateAll",e.DecideForEach="decideForEach",e))(Yt||{}),Ct=(e=>(e.Copy="copy",e.Move="move",e))(Ct||{}),Eo=(e=>(e.Tree="tree",e.Grid="grid",e))(Eo||{}),nn=(e=>(e.Tree="tree",e.Grid="grid",e))(nn||{}),Cs=(e=>(e.Folder="folder",e.Child="child",e.Sibling="sibling",e))(Cs||{}),wt=(e=>(e.Name="name",e.UpdatedAt="updatedAt",e.Size="size",e.Author="author",e.Owner="owner",e.Path="path",e.Actions="__actions",e.Version="version",e))(wt||{});const HH="w-full h-full grid grid-rows-[auto_1fr] gap-5 p-6 overflow-hidden min-w-0 bg-layer-1",$m="w-full text-secondary flex items-center gap-2",BH="flex min-h-0 min-w-0 h-full gap-4 overflow-hidden",GH="flex flex-col flex-1 min-h-0 min-w-0 h-full gap-4",VH="h-full rounded bg-layer-3 text-secondary min-w-0",zH="flex-1 w-full rounded text-secondary overflow-auto min-h-0 min-w-0",jH="opacity-0 pointer-events-none group-hover/grid-row:opacity-100 group-hover/grid-row:pointer-events-auto",WH=280,_H="Files",Pi=20,UH="Files",xu=".dial_folder",qm="New folder",$H=280,qH=460,Km=44,KH=800,YH=[wt.Name,wt.UpdatedAt,wt.Size,wt.Author,wt.Actions];var we=(e=>(e.ITEM="item",e.FOLDER="folder",e))(we||{}),lg=(e=>(e.FILE="FILE",e.PROMPT="PROMPT",e.CONVERSATION="CONVERSATION",e.APPLICATION="APPLICATION",e.TOOLSET="TOOL_SET",e))(lg||{}),Bn=(e=>(e.READ="READ",e.WRITE="WRITE",e.SHARE="SHARE",e))(Bn||{});const Ym=({open:e,onClose:t,onReplace:s,onDuplicate:i,onDecideForEach:n,conflictingFiles:o,singleFileTitle:r="Replace Or Duplicate Item",multipleFilesTitle:a="Replace Or Duplicate Items",message:l,actionLabels:c,strategyLabels:d,confirmLabel:u="Confirm",cancelLabel:h="Cancel",nameColumnLabel:f="Name",actionColumnLabel:m="Action"})=>{const v=o.length===1,C=v?o[0]?.name:"",w=c?.[vt.Replace]??"Replace",b=c?.[vt.Duplicate]??"Duplicate",x=c?.[vt.Cancel]??"Cancel",y=d?.[Yt.ReplaceAll]??"Replace all",S=d?.[Yt.DuplicateAll]??"Duplicate all",F=d?.[Yt.DecideForEach]??"Decide for each",[R,E]=p.useState(vt.Replace),[D,T]=p.useState(Yt.ReplaceAll),[P,k]=p.useState(new Map(o.map(Z=>[Z.path,vt.Replace]))),[I,H]=p.useState(void 0),M=v?r:a,G=g.jsxs(g.Fragment,{children:["Item with the name ",g.jsxs("span",{className:"text-primary",children:['"',C,'"']})," ","already exists in this destination."]}),V=`${o.length} items with the same names already exist in this destination.`,B=l??(v?G:V),K=p.useMemo(()=>[{id:vt.Replace,name:w},{id:vt.Duplicate,name:b}],[w,b]),O=p.useMemo(()=>o.map(Z=>({id:Z.path,name:Z.name,path:Z.path,nodeType:Z.nodeType??we.ITEM,action:P.get(Z.path)||vt.Replace})),[o,P]),A=p.useMemo(()=>[{field:"name",headerName:f,flex:1,minWidth:200,floatingFilter:!1,filter:!1,resizable:!1,cellRenderer:Z=>Z.data?.nodeType===we.FOLDER?g.jsx(Sc,{name:Z.data.name,iconSize:Pi}):g.jsx(yc,{name:Z.data.name,iconSize:Pi})},{field:"action",headerName:m,width:140,suppressSizeToFit:!0,sortable:!1,filter:!1,floatingFilter:!1,resizable:!1,cellRenderer:Z=>{if(!Z.data)return null;const me=[{key:vt.Replace,label:w,icon:g.jsx(_.IconCircleFilled,{size:10,className:"text-accent-tertiary"})},{key:vt.Duplicate,label:b,icon:g.jsx(_.IconCircleFilled,{size:10,className:"text-accent-secondary"})},{key:vt.Cancel,label:x,icon:g.jsx(_.IconCircleFilled,{size:10,className:"text-error"})}],Ie=me.find(ce=>ce.key===Z.data.action),ne=I===Z.data.path;return g.jsx("div",{className:"flex items-center h-full",children:g.jsx(Mt,{trigger:[Qt.Click],open:ne,items:me,onItemClick:({key:ce})=>{k(L=>{const ee=new Map(L);return ee.set(Z.data.path,ce),ee}),H(void 0)},placement:"bottom-start",matchReferenceWidth:!1,allowedPlacements:["bottom-start","top-start"],onOpenChange:ce=>{H(ce?Z.data.path:void 0)},children:g.jsxs("button",{type:"button",className:"flex items-center gap-2",children:[g.jsxs("span",{className:"flex items-center gap-2",children:[Ie?.icon,Ie?.label??w]}),g.jsx(_.IconChevronDown,{size:nt.SM,className:re("text-secondary transition-transform",ne&&"rotate-180")})]})})})}}],[f,m,w,b,x,I]),W=p.useMemo(()=>[{id:Yt.ReplaceAll,name:y},{id:Yt.DuplicateAll,name:S},{id:Yt.DecideForEach,name:F,content:D===Yt.DecideForEach?g.jsx("div",{className:"mt-4",children:g.jsx(tg,{columnDefs:A,rowData:O,getRowId:Z=>Z.id,wrapCustomCellRenderers:!1,alternateOddRowColors:!1,additionalGridOptions:{domLayout:"autoHeight"}})}):void 0}],[y,S,F,D,A,O]),Y=p.useCallback(()=>{E(vt.Replace),T(Yt.ReplaceAll),k(new Map(o.map(Z=>[Z.path,vt.Replace])))},[o]),ie=p.useCallback(()=>{Y(),t()},[Y,t]),be=p.useCallback(()=>{if(Y(),v)R===vt.Replace?s():i();else if(D===Yt.ReplaceAll)s();else if(D===Yt.DuplicateAll)i();else if(D===Yt.DecideForEach&&n){const Z=o.map(me=>({file:me,action:P.get(me.path)||vt.Replace}));n(Z)}},[Y,v,R,s,i,D,n,o,P]);return g.jsx(Hn,{open:e,onClose:ie,size:v?es.Sm:es.Md,className:re([!v&&"w-[600px]"]),header:M,dividers:!1,preventKeyboardOnOpen:!0,footer:g.jsxs("div",{className:"flex justify-end gap-3 py-4 px-6 border-t border-tertiary",children:[g.jsx(js,{onClick:ie,label:h}),g.jsx(Bs,{onClick:be,label:u})]}),children:g.jsxs("div",{className:"px-6 py-4",children:[g.jsx("p",{className:"text-secondary mb-4 break-words",children:B}),v?g.jsx(Al,{elementId:"single-file-conflict",radioButtons:K,activeRadioButton:R,orientation:Cn.Column,onChange:Z=>E(Z)}):g.jsx(Al,{elementId:"multiple-files-conflict",radioButtons:W,activeRadioButton:D,orientation:Cn.Column,onChange:Z=>T(Z),formItemChildrenClassName:"gap-3"})]})})},ZH=({getContextMenuItems:e,isRowDisabled:t,allowedFileTypes:s,maxSelectableFileSize:i,buttonClassName:n})=>{const o=p.useRef(e);p.useEffect(()=>{o.current=e},[e]);const r=p.useCallback(l=>{if(!l.data||t(l.data,s,i))return null;const d=l.data?o.current?.(l.data)??[]:[];return d.length?g.jsx(Mt,{placement:"bottom-start",allowedPlacements:["top-start","top-end","bottom-start"],items:d,className:$("sticky right-0",n),children:g.jsx(Oe,{className:"text-secondary mx-2 flex flex-row gap-2 hover:text-accent-primary cursor-default",icon:g.jsx(_.IconDotsVertical,{...te})})}):null},[s,i,n,t]);return{actionsColumnDef:p.useMemo(()=>({colId:"__actions",headerName:"",width:44,minWidth:44,maxWidth:44,suppressSizeToFit:!0,sortable:!1,resizable:!1,filter:!1,floatingFilter:!1,cellRenderer:r}),[r])}},XH=({onRename:e})=>{const[t,s]=p.useState(Eo.Grid),i=p.useCallback(o=>{e(o),s(Eo.Grid)},[e]),n=p.useCallback(o=>{e(o),s(Eo.Tree)},[e]);return{renameTriggerView:t,onGridRename:i,onTreeRename:n}};function QH(e,t){const s=p.useRef(null),[i,n]=p.useState(!1);return p.useEffect(()=>{if(!s.current)return;const o=new ResizeObserver(([r])=>{const a=r.contentRect.width;n(a<e)});return o.observe(t?.current||s?.current),()=>o.disconnect()},[e,t]),{containerRef:s,isBelowBreakpoint:i}}var yu={};const JH={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/ace+json":{source:"iana",compressible:!0},"application/ace-groupcomm+cbor":{source:"iana"},"application/ace-trl+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/aif+cbor":{source:"iana"},"application/aif+json":{source:"iana",compressible:!0},"application/alto-cdni+json":{source:"iana",compressible:!0},"application/alto-cdnifilter+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-propmap+json":{source:"iana",compressible:!0},"application/alto-propmapparams+json":{source:"iana",compressible:!0},"application/alto-tips+json":{source:"iana",compressible:!0},"application/alto-tipsparams+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/appinstaller":{compressible:!1,extensions:["appinstaller"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/appx":{compressible:!1,extensions:["appx"]},"application/appxbundle":{compressible:!1,extensions:["appxbundle"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/automationml-aml+xml":{source:"iana",compressible:!0,extensions:["aml"]},"application/automationml-amlx+zip":{source:"iana",compressible:!1,extensions:["amlx"]},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/bufr":{source:"iana"},"application/c2pa":{source:"iana"},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/ce+cbor":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/cid-edhoc+cbor-seq":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/city+json-seq":{source:"iana"},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-eap":{source:"iana"},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/concise-problem-details+cbor":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cose-x509":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwl":{source:"iana",extensions:["cwl"]},"application/cwl+json":{source:"iana",compressible:!0},"application/cwl+yaml":{source:"iana"},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana",extensions:["dcm"]},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dpop+jwt":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/eat+cwt":{source:"iana"},"application/eat+jwt":{source:"iana"},"application/eat-bun+cbor":{source:"iana"},"application/eat-bun+json":{source:"iana",compressible:!0},"application/eat-ucs+cbor":{source:"iana"},"application/eat-ucs+json":{source:"iana",compressible:!0},"application/ecmascript":{source:"apache",compressible:!0,extensions:["ecma"]},"application/edhoc+cbor-seq":{source:"iana"},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.legacyesn+json":{source:"iana",compressible:!0},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/entity-statement+jwt":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdf":{source:"iana",extensions:["fdf"]},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geopose+json":{source:"iana",compressible:!0},"application/geoxacml+json":{source:"iana",compressible:!0},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gnap-binding-jws":{source:"iana"},"application/gnap-binding-jwsd":{source:"iana"},"application/gnap-binding-rotation-jws":{source:"iana"},"application/gnap-binding-rotation-jwsd":{source:"iana"},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/grib":{source:"iana"},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"iana",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"apache",charset:"UTF-8",compressible:!0,extensions:["js"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/jscontact+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jsonpath":{source:"iana"},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwk-set+jwt":{source:"iana"},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/linkset":{source:"iana"},"application/linkset+json":{source:"iana",compressible:!0},"application/load-control+xml":{source:"iana",compressible:!0},"application/logout+jwt":{source:"iana"},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4","mpg4","mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msix":{compressible:!1,extensions:["msix"]},"application/msixbundle":{compressible:!1,extensions:["msixbundle"]},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!0,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/ohttp-keys":{source:"iana"},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg","one","onea"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["sig","asc"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/private-token-issuer-directory":{source:"iana"},"application/private-token-request":{source:"iana"},"application/private-token-response":{source:"iana"},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/provided-claims+jwt":{source:"iana"},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.implied-document+xml":{source:"iana",compressible:!0},"application/prs.implied-executable":{source:"iana"},"application/prs.implied-object+json":{source:"iana",compressible:!0},"application/prs.implied-object+json-seq":{source:"iana"},"application/prs.implied-object+yaml":{source:"iana"},"application/prs.implied-structure":{source:"iana"},"application/prs.mayfile":{source:"iana"},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.vcfbzip2":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0,extensions:["xsf"]},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"apache"},"application/reputon+json":{source:"iana",compressible:!0},"application/resolve-response+jwt":{source:"iana"},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-checklist":{source:"iana"},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-signed-tal":{source:"iana"},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"apache"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana",extensions:["sql"]},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/sslkeylogfile":{source:"iana"},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/st2110-41":{source:"iana"},"application/stix+json":{source:"iana",compressible:!0},"application/stratum":{source:"iana"},"application/swid+cbor":{source:"iana"},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tm+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/toc+cbor":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{source:"iana",compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/trust-chain+json":{source:"iana",compressible:!0},"application/trust-mark+jwt":{source:"iana"},"application/trust-mark-delegation+jwt":{source:"iana"},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/uccs+cbor":{source:"iana"},"application/ujcs+json":{source:"iana",compressible:!0},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vc":{source:"iana"},"application/vc+cose":{source:"iana"},"application/vc+jwt":{source:"iana"},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.1ob":{source:"iana"},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3a+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ach+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc8+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.5gsa2x":{source:"iana"},"application/vnd.3gpp.5gsa2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gsv2x":{source:"iana"},"application/vnd.3gpp.5gsv2x-local-service-information":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.crs+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.current-location-discovery+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-msgstore-ctrl-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-regroup+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-regroup+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-regroup+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.pinapp-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.seal-group-doc+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.seal-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.seal-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.seal-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.seal-network-qos-management-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.seal-ue-config-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.seal-unicast-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.seal-user-profile-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.v2x":{source:"iana"},"application/vnd.3gpp.vae-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acm.addressxfer+json":{source:"iana",compressible:!0},"application/vnd.acm.chatbot+json":{source:"iana",compressible:!0},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"apache",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"apache"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.parquet":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.apexlang":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"apache"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autodesk.fbx":{extensions:["fbx"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.belightsoft.lhzd+zip":{source:"iana",compressible:!1},"application/vnd.belightsoft.lhzl+zip":{source:"iana",compressible:!1},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.bzip3":{source:"iana"},"application/vnd.c3voc.schedule+xml":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.cncf.helm.chart.content.v1.tar+gzip":{source:"iana"},"application/vnd.cncf.helm.chart.provenance.v1.prov":{source:"iana"},"application/vnd.cncf.helm.config.v1+json":{source:"iana",compressible:!0},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datalog":{source:"iana"},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.dcmp+xml":{source:"iana",compressible:!0,extensions:["dcmp"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.eln+zip":{source:"iana",compressible:!1},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.erofs":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"apache",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.fdsn.stationxml+xml":{source:"iana",charset:"XML-BASED",compressible:!0},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.freelog.comic":{source:"iana"},"application/vnd.frogans.fnc":{source:"apache",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"apache",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.ga4gh.passport+jwt":{source:"iana"},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.genozip":{source:"iana"},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.gentoo.catmetadata+xml":{source:"iana",compressible:!0},"application/vnd.gentoo.ebuild":{source:"iana"},"application/vnd.gentoo.eclass":{source:"iana"},"application/vnd.gentoo.gpkg":{source:"iana"},"application/vnd.gentoo.manifest":{source:"iana"},"application/vnd.gentoo.pkgmetadata+xml":{source:"iana",compressible:!0},"application/vnd.gentoo.xpak":{source:"iana"},"application/vnd.geo+json":{source:"apache",compressible:!0},"application/vnd.geocube+xml":{source:"apache",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.pinboard":{source:"iana"},"application/vnd.geogebra.slides":{source:"iana",extensions:["ggs"]},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.gnu.taler.exchange+json":{source:"iana",compressible:!0},"application/vnd.gnu.taler.merchant+json":{source:"iana",compressible:!0},"application/vnd.google-apps.audio":{},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.drawing":{compressible:!1,extensions:["gdraw"]},"application/vnd.google-apps.drive-sdk":{compressible:!1},"application/vnd.google-apps.file":{},"application/vnd.google-apps.folder":{compressible:!1},"application/vnd.google-apps.form":{compressible:!1,extensions:["gform"]},"application/vnd.google-apps.fusiontable":{},"application/vnd.google-apps.jam":{compressible:!1,extensions:["gjam"]},"application/vnd.google-apps.mail-layout":{},"application/vnd.google-apps.map":{compressible:!1,extensions:["gmap"]},"application/vnd.google-apps.photo":{},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.script":{compressible:!1,extensions:["gscript"]},"application/vnd.google-apps.shortcut":{},"application/vnd.google-apps.site":{compressible:!1,extensions:["gsite"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-apps.unknown":{},"application/vnd.google-apps.video":{},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"apache",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0,extensions:["xdcf"]},"application/vnd.gpxsee.map+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.hsl":{source:"iana"},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"apache"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"apache",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"apache"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.ipfs.ipns-record":{source:"iana"},"application/vnd.ipld.car":{source:"iana"},"application/vnd.ipld.dag-cbor":{source:"iana"},"application/vnd.ipld.dag-json":{source:"iana"},"application/vnd.ipld.raw":{source:"iana"},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kdl":{source:"iana"},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.keyman.kmp+zip":{source:"iana",compressible:!1},"application/vnd.keyman.kmx":{source:"iana"},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.ldev.productlicensing":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.mdl":{source:"iana"},"application/vnd.mdl-mbsdf":{source:"iana"},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.medicalholodeck.recordxr":{source:"iana"},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mermaid":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.modl":{source:"iana"},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-visio.viewer":{extensions:["vdx"]},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msgpack":{source:"iana"},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.nato.bindingdataobject+cbor":{source:"iana"},"application/vnd.nato.bindingdataobject+json":{source:"iana",compressible:!0},"application/vnd.nato.bindingdataobject+xml":{source:"iana",compressible:!0,extensions:["bdo"]},"application/vnd.nato.openxmlformats-package.iepd+zip":{source:"iana",compressible:!1},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"apache",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oai.workflows":{source:"iana"},"application/vnd.oai.workflows+json":{source:"iana",compressible:!0},"application/vnd.oai.workflows+yaml":{source:"iana"},"application/vnd.oasis.opendocument.base":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"apache",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-master-template":{source:"iana"},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"apache",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"apache",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.onvif.metadata":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openvpi.dspx+json":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.procrate.brushset":{extensions:["brushset"]},"application/vnd.procreate.brush":{extensions:["brush"]},"application/vnd.procreate.dream":{extensions:["drm"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.pt.mundusmundi":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0,extensions:["xhtm"]},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.relpipe":{source:"iana"},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.sketchometry":{source:"iana"},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.smintio.portals.archive":{source:"iana"},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sybyl.mol2":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uic.osdm+json":{source:"iana",compressible:!0},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml","uo"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.veraison.tsm-report+cbor":{source:"iana"},"application/vnd.veraison.tsm-report+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw","vsdx","vtx"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vocalshaper.vsp4":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.wasmflow.wafl":{source:"iana"},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordlift":{source:"iana"},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xarin.cpj":{source:"iana"},"application/vnd.xecrets-encrypted":{source:"iana"},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/voucher-jws+json":{source:"iana",compressible:!0},"application/vp":{source:"iana"},"application/vp+cose":{source:"iana"},"application/vp+jwt":{source:"iana"},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blender":{extensions:["blend"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-compressed":{extensions:["rar"]},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-ipynb+json":{compressible:!0,extensions:["ipynb"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zip-compressed":{extensions:["zip"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xfdf":{source:"iana",extensions:["xfdf"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yaml":{source:"iana"},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+cbor":{source:"iana"},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yang-sid+json":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zip+dotlottie":{extensions:["lottie"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana",extensions:["adts","aac"]},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flac":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/matroska":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/midi-clip":{source:"iana"},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a","m4b"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"apache"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{source:"iana",compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp","dib"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/dpx":{source:"iana",extensions:["dpx"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/j2c":{source:"iana"},"image/jaii":{source:"iana",extensions:["jaii"]},"image/jais":{source:"iana",extensions:["jais"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpg","jpeg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm","jpgm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxl":{source:"iana",extensions:["jxl"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1,extensions:["jfif"]},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif","btf"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.clip":{source:"iana"},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"iana",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-adobe-dng":{extensions:["dng"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-emf":{source:"iana"},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-wmf":{source:"iana"},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/bhttp":{source:"iana"},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/mls":{source:"iana"},"message/news":{source:"apache"},"message/ohttp-req":{source:"iana"},"message/ohttp-res":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime","mht","mhtml"]},"message/s-http":{source:"apache"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"apache"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/jt":{source:"iana",extensions:["jt"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/prc":{source:"iana",extensions:["prc"]},"model/step":{source:"iana",extensions:["step","stp","stpnc","p21","210"]},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/u3d":{source:"iana",extensions:["u3d"]},"model/vnd.bary":{source:"iana",extensions:["bary"]},"model/vnd.cld":{source:"iana",extensions:["cld"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana",extensions:["pyo","pyox"]},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usda":{source:"iana",extensions:["usda"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"apache"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/hl7v2":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["md","markdown"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/prs.texi":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.exchangeable":{source:"iana"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"apache"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.vcf":{source:"iana"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vnd.zoo.kcl":{source:"iana"},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/wgsl":{source:"iana",extensions:["wgsl"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/evc":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/h266":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/lottie+json":{source:"iana",compressible:!0},"video/matroska":{source:"iana"},"video/matroska-3d":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts","m2t","m2ts","mts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.planar":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"apache"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}};var Su,Zm;function eB(){return Zm||(Zm=1,Su=JH),Su}const tB={},sB=Object.freeze(Object.defineProperty({__proto__:null,default:tB},Symbol.toStringTag,{value:"Module"})),iB=M0(sB);var Ru,Xm;function nB(){if(Xm)return Ru;Xm=1;var e={"prs.":100,"x-":200,"x.":300,"vnd.":400,default:900},t={nginx:10,apache:20,iana:40,default:30},s={application:1,font:2,audio:2,video:3,default:0};return Ru=function(n,o="default"){if(n==="application/octet-stream")return 0;const[r,a]=n.split("/"),l=a.replace(/(\.|x-).*/,"$1"),c=e[l]||e.default,d=t[o]||t.default,u=s[r]||s.default,h=1-n.length/100;return c+d+u+h},Ru}var Qm;function oB(){return Qm||(Qm=1,(function(e){var t=eB(),s=iB.extname,i=nB(),n=/^\s*([^;\s]*)(?:;|\s|$)/,o=/^text\//i;e.charset=r,e.charsets={lookup:r},e.contentType=a,e.extension=l,e.extensions=Object.create(null),e.lookup=c,e.types=Object.create(null),e._extensionConflicts=[],d(e.extensions,e.types);function r(f){if(!f||typeof f!="string")return!1;var m=n.exec(f),v=m&&t[m[1].toLowerCase()];return v&&v.charset?v.charset:m&&o.test(m[1])?"UTF-8":!1}function a(f){if(!f||typeof f!="string")return!1;var m=f.indexOf("/")===-1?e.lookup(f):f;if(!m)return!1;if(m.indexOf("charset")===-1){var v=e.charset(m);v&&(m+="; charset="+v.toLowerCase())}return m}function l(f){if(!f||typeof f!="string")return!1;var m=n.exec(f),v=m&&e.extensions[m[1].toLowerCase()];return!v||!v.length?!1:v[0]}function c(f){if(!f||typeof f!="string")return!1;var m=s("x."+f).toLowerCase().slice(1);return m&&e.types[m]||!1}function d(f,m){Object.keys(t).forEach(function(C){var w=t[C],b=w.extensions;if(!(!b||!b.length)){f[C]=b;for(var x=0;x<b.length;x++){var y=b[x];m[y]=u(y,m[y],C);const S=h(y,m[y],C);S!==m[y]&&e._extensionConflicts.push([y,S,m[y]])}}})}function u(f,m,v){var C=m?i(m,t[m].source):0,w=v?i(v,t[v].source):0;return C>w?m:v}function h(f,m,v){var C=["nginx","apache",void 0,"iana"],w=m?C.indexOf(t[m].source):0,b=v?C.indexOf(t[v].source):0;return e.types[l]!=="application/octet-stream"&&(w>b||w===b&&e.types[l]?.slice(0,12)==="application/")||w>b?m:v}})(yu)),yu}var Jm=oB();const si=(e,t)=>{if(!(!e||!e.length||!t))for(const s of e){if(s.path===t)return s;const i=si(s.items,t);if(i)return i}},Do=(e,t)=>{if(!e?.length)return;if(!t)return e[0];const s=si(e,t);if(s&&s.nodeType===we.FOLDER)return s;const i=t.split("/").filter(Boolean);if(i.length<=1)return e[0];const n="/"+i.slice(0,i.length-1).join("/");return si(e,n)??e[0]},Po=e=>(e??"").toLowerCase(),rB=e=>Po(e).replace(/^\./,""),aB=e=>{if(!e)return[];const t=[],s=i=>{const n=i.items??[];for(const o of n)t.push(o),o.nodeType===we.FOLDER&&s(o)};return s(e),t},Vb=e=>(e.name??e.path.split("/").pop()??"").startsWith("."),ta=e=>{if(!e)return"0 bytes";const t=1024,s=t*1024;return e>=s?`${(e/s).toFixed(1)} MB`:e>=t?`${(e/t).toFixed(0)} KB`:`${e} bytes`},lB=(e,t="en-US",s={year:"numeric",month:"short",day:"2-digit"})=>{if(!e)return"";try{return new Intl.DateTimeFormat(t,s).format(new Date(e))}catch{return e}};function cg(e,t,s){if(!e||e.includes("*/*"))return!0;const i=t.toLowerCase(),n=s&&s.includes(".")?`.${s.split(".").at(-1).toLowerCase()}`:void 0;return e.some(o=>{const r=o.toLowerCase();if(r.startsWith("."))return n===r;if(r.endsWith("/*")){const a=r.slice(0,-1);return i.startsWith(a)}return i===r})}const cB=e=>e?.map(t=>t.endsWith("/*")?t.replace("/*","s"):dB(t).flat().map(s=>`.${s}`)).flat().join(", ")||"",dB=e=>{const[t,s]=e.split("/");return t==="*"?["all"]:s==="*"?Object.entries(Jm.extensions).reduce((i,[n,o])=>{const[r]=n.split("/");return r===t&&i.push(...o),i},[]):Jm.extensions[e]||[]},Uc=e=>{if(!e)return;const t=e.flags.replace(/[gy]/g,"");return new RegExp(e.source,t)};function dg(e,t,s){if(t&&Uc(t)?.test(e.name))return s??`This ${e.isFolder?"folder":"file"} contains forbidden characters in its name. Please rename it.`}const uB=e=>{const t=e.lastIndexOf("/");return t>=0?{parent:e.slice(0,t),name:e.slice(t+1)}:{parent:"",name:e}},hB=(e,t,s)=>{const i=!e.contentLength||s==null||e.contentLength<=s,n=!e.contentType||cg(t,e.contentType,e.name);return i&&n},pB=(e,t,s,i,n)=>{if(e.nodeType===we.FOLDER)return;const o=!e.contentLength||s==null||e.contentLength<=s;if(!(!e.contentType||cg(t,e.contentType,e.name)))return i??(t?.length?`Unsupported file type. Supported types: ${cB(t)}.`:"Unsupported file type.");if(!o)return n??`File is too large. Maximum size: ${ta(s)}.`},gB=e=>e.replace(/\/+$/,"").split("/").filter(Boolean).length,vr=e=>{const t=`${qm} `,s=new RegExp(`^${qm} (\\d+)$`),i=new Set(e.map(a=>a.name.toLowerCase())),n=e.map(a=>{const l=a.name.match(s);return l?parseInt(l[1],10):0}).reduce((a,l)=>Math.max(a,l),0);let o=`${t}${n+1}`,r=n+1;for(;i.has(o.toLowerCase());)r++,o=`${t}${r}`;return o},fB=e=>{const[t,s]=p.useState(e?.showHiddenFiles??!1),i=!!e?.onShowHiddenFilesChange,n=i?e.showHiddenFiles??!1:t,o=p.useCallback(a=>{i?e?.onShowHiddenFilesChange?.(a):s(a)},[i,e]),r=p.useCallback(()=>{const a=!n;i?e?.onShowHiddenFilesChange?.(a):s(a)},[n,i,e]);return{areHiddenFilesVisible:n,toggleHiddenFilesVisibility:r,setAreHiddenFilesVisible:o}},mB=e=>{const[t,s]=p.useState(e?.collapsed??!1),i=!!e?.onCollapseChange,n=i?e.collapsed??!1:t,o=p.useCallback(a=>{i?e?.onCollapseChange?.(a):s(a)},[i,e]),r=p.useCallback(()=>{const a=!n;i?e?.onCollapseChange?.(a):s(a)},[n,i,e]);return{isTreeCollapsed:n,toggleTreeCollapse:r,setIsTreeCollapsed:o}},ev=(e,t,s)=>{if(!t.has(e))return e;const i=s===we.FOLDER?(n,o)=>`${n} (${o})`:(n,o)=>{const r=n.lastIndexOf("."),a=r>0,l=a?n.slice(0,r):n,c=a?n.slice(r):"";return`${l} (${o})${c}`};for(let n=1;;n++){const o=i(e,n);if(!t.has(o))return o}},Fu=e=>e.name,zb=({getDestinationFiles:e,onResolve:t})=>{const[s,i]=p.useState([]),[n,o]=p.useState(!1),[r,a]=p.useState(null),l=p.useRef(!1),c=p.useCallback(x=>{l.current=!0,i(x),o(!0)},[]),d=p.useCallback(()=>{l.current=!1,o(!1),i([]),a(null)},[]),u=p.useCallback((x,y)=>{const S=e(x),F=new Set(S.map(Fu)),R=y.filter(E=>F.has(E.name));return{hasConflicts:R.length>0,conflicts:R}},[e]),h=p.useCallback((x,y,S,F)=>{const R=e(x),E=new Set(R.map(Fu));return y.map(D=>{const T=D.name,P=E.has(T),k=S&&P?T:ev(T,E,D.nodeType);return(!S||!P)&&E.add(k),{sourceUrl:D.path,destinationUrl:`${x}/${k}`,overwrite:S&&P,nodeType:D.nodeType??we.ITEM,...F??{}}})},[e]),f=p.useCallback((x,y,S,F)=>{const R=e(x),E=new Set(R.map(Fu));return y.filter(T=>S.get(T.path)!==vt.Cancel).map(T=>{const P=S.get(T.path),k=E.has(T.name),I=P===vt.Replace&&k,H=I?T.name:ev(T.name,E,T.nodeType);return I||E.add(H),{sourceUrl:T.path,destinationUrl:`${x}/${H}`,overwrite:I,nodeType:T.nodeType??we.ITEM,...F??{}}})},[e]),m=p.useCallback((x,y,S)=>{const F=u(x,y);return F.hasConflicts&&(a({files:y,destinationFolder:x,metadata:S}),c(F.conflicts)),F},[u,c]),v=p.useCallback(()=>{if(!r)return;const{files:x,destinationFolder:y,metadata:S}=r,F=h(y,x,!0,S);t?.(F,y),d()},[r,h,t,d]),C=p.useCallback(()=>{if(!r)return;const{files:x,destinationFolder:y,metadata:S}=r,F=h(y,x,!1,S);t?.(F,y),d()},[r,h,t,d]),w=p.useCallback(()=>{if(!r)return;const{files:x,destinationFolder:y,metadata:S}=r,F=f(y,x,new Map(s.map(R=>[R.path,vt.Cancel])),S);t?.(F,y),d()},[d,s,t,r,f]),b=p.useCallback(x=>{if(!r)return;const{files:y,destinationFolder:S,metadata:F}=r,R=new Map(x.map(D=>[D.file.path,D.action])),E=f(S,y,R,F);t?.(E,S),d()},[r,f,t,d]);return{conflictingFiles:s,conflictResolutionOpen:n,hasActiveConflictRef:l,checkForConflicts:u,startConflictResolution:m,resolveConflictsWithStrategy:h,resolveConflictsWithDecisions:f,openConflictResolution:c,closeConflictResolution:d,handleReplaceAll:v,handleDuplicateAll:C,handleCancelAll:w,handleDecideForEach:b}},vB=({getDestinationFiles:e,onCopyFiles:t,onMoveToFiles:s,onCopySuccess:i,onMoveSuccess:n,onDuplicateSuccess:o,getCopyHeader:r,getMoveHeader:a})=>{const[l,c]=p.useState(!1),[d,u]=p.useState([]),[h,f]=p.useState([]),[m,v]=p.useState(Ct.Copy),[C,w]=p.useState(),[b,x]=p.useState(null),{conflictingFiles:y,conflictResolutionOpen:S,hasActiveConflictRef:F,startConflictResolution:R,resolveConflictsWithStrategy:E,closeConflictResolution:D,openConflictResolution:T,handleReplaceAll:P,handleDuplicateAll:k,handleCancelAll:I,handleDecideForEach:H}=zb({getDestinationFiles:e,onResolve:(ne,ce)=>{ne?.length&&(b?.type===Ct.Copy?(t?.(ne,ce),i?.()):b?.type===Ct.Move&&b.sourceFolder&&(s?.(ne,b.sourceFolder,ce),n?.()))}}),M=p.useCallback(()=>{u([]),f([]),x(null),w(void 0)},[]),G=p.useCallback(ne=>{const ce=R(ne,d,{type:Ct.Copy});if(x({type:Ct.Copy}),!ce.hasConflicts){const L=E(ne,d,!1);t?.(L,ne),i?.(),M()}},[d,R,E,t,i,M]),V=p.useCallback((ne,ce)=>{const L=ce||(b?.sourceFolder??"/");if(!R(ne,h,{type:Ct.Move,sourceFolderPath:L}).hasConflicts){const ye=E(ne,h,!0);s?.(ye,L,ne),n?.(),M()}},[h,R,E,s,n,M,b]),B=p.useCallback(()=>{P(),M()},[P,M]),K=p.useCallback(()=>{k(),M()},[k,M]),O=p.useCallback(()=>{I(),M()},[I,M]),A=p.useCallback(ne=>{H(ne),M()},[H,M]),W=p.useCallback(ne=>{const ce=ne.at(0)?.parentPath??"/",L=E(ce,ne,!1);t?.(L,ce),o?.()},[t,o,E]),Y=p.useCallback(ne=>{v(ne),c(!0)},[]),ie=p.useCallback(()=>{c(!1),F.current||M()},[M,F]),[be,Z]=p.useState(),me=p.useCallback(ne=>{u(ne);const ce=ne[0]?.parentPath??ne[0]?.folderId;w(ce),r&&ne.length>0?Z(r(ne.length,ne[0]?.name)):Z(void 0)},[r]),Ie=p.useCallback(ne=>{f(ne);const ce=ne[0]?.parentPath??ne[0]?.folderId;w(ce),x({type:Ct.Move,sourceFolder:ce}),a&&ne.length>0?Z(a(ne.length,ne[0]?.name)):Z(void 0)},[a]);return{handleDuplicate:W,handleCloseDestinationFolderPopup:ie,handleOpenDestinationFolderPopup:Y,handleCopyTo:G,handleMoveTo:V,openDestinationFolderPopup:l,destinationFolderMode:m,destinationFolderTitle:be,handleSetCopiedFiles:me,handleSetMovedFiles:Ie,clearState:M,conflictingFiles:y,conflictResolutionOpen:S,openConflictResolution:T,closeConflictResolution:D,handleConflictReplace:B,handleConflictCancel:O,handleConflictDuplicate:K,handleConflictDecideForEach:A,sourceFolder:C}},CB=({path:e,defaultPath:t,onPathChange:s,onSelectionClear:i})=>{const n=e!==void 0,[o,r]=p.useState(t),a=n?e:o,l=p.useCallback(d=>{n||r(d),s?.(d)},[n,s]),c=p.useCallback(d=>{l(d),i?.()},[l,i]);return{currentPath:a,setCurrentPath:l,handlePathChange:c}},wB=({onDeleteFiles:e,onDeleteSuccess:t})=>{const[s,i]=p.useState(!1),[n,o]=p.useState([]),[r,a]=p.useState(""),l=p.useCallback((u,h)=>{o(u),a(h),i(!0)},[]),c=p.useCallback(()=>{i(!1),o([])},[]),d=p.useCallback(()=>{if(e&&n.length>0){const u=n.map(h=>({sourceUrl:h.path,nodeType:h.nodeType}));e(u,r),t?.()}c()},[n,e,t,c,r]);return{deleteConfirmationOpen:s,itemsToDelete:n,openDeleteConfirmation:l,closeDeleteConfirmation:c,confirmDelete:d}},bB=({onDownloadFiles:e,customDownloadItemsAction:t,onDownloadSuccess:s})=>({handleDownloadFiles:p.useCallback(n=>{t&&n.length>0?t(n):e&&n.length>0&&(e(n),s?.())},[e,s,t])}),xB=e=>"dataTransfer"in e&&e.dataTransfer!==null,yB=({onUploadFiles:e,onValidateUpload:t,maxFileSize:s,allowedFileTypes:i,validationMessages:n={},onUploadArchive:o,uploadEnabled:r=!0,currentFolder:a}={})=>{const[l,c]=p.useState(!1),[d,u]=p.useState(!1),[h,f]=p.useState(),m=p.useRef(null),v=p.useRef(""),C=p.useRef([]),w=p.useMemo(()=>!!a?.permissions?.includes(Bn.WRITE),[a]),[b,x]=p.useState(new Map),[y,S]=p.useState(null),F=p.useCallback(z=>!i||i.includes("*/*")?z:z.filter(({fileContent:le,name:ve})=>cg(i,le.type,ve)),[i]),R=p.useCallback(()=>{x(new Map),S(null)},[]),{conflictingFiles:E,conflictResolutionOpen:D,hasActiveConflictRef:T,startConflictResolution:P,closeConflictResolution:k,openConflictResolution:I,handleReplaceAll:H,handleDuplicateAll:M,handleCancelAll:G,handleDecideForEach:V}=zb({getDestinationFiles:()=>C.current,onResolve:(z,le)=>{if(!r||!w){R();return}if(!y)return;const ve=z.map(Ee=>{const oe=b.get(Ee.sourceUrl);if(!oe)return;const xe=Ee.destinationUrl.split("/").pop();return{fileContent:oe.fileContent,name:xe}}).filter(Boolean);if(ve[0]?.fileContent?.type==="application/zip"){const{fileContent:Ee,name:oe}=ve[0];o?.(Ee,oe,le)}else ve.length>0&&e?.(ve,le);R()}});p.useEffect(()=>{r&&w||(c(!1),u(!1),f(void 0),k(),R())},[r,k,R,w]),p.useEffect(()=>{if(!r||!w)return;let z=0;const le=xe=>{xB(xe)&&xe.dataTransfer.types.includes(UH)&&(z++,u(!0))},ve=()=>{z--,z===0&&u(!1)},Ee=()=>{z=0,u(!1)},oe=xe=>{xe.preventDefault()};return window.addEventListener("dragenter",le),window.addEventListener("dragleave",ve),window.addEventListener("drop",Ee),window.addEventListener("dragover",oe),()=>{window.removeEventListener("dragenter",le),window.removeEventListener("dragleave",ve),window.removeEventListener("drop",Ee),window.removeEventListener("dragover",oe)}},[r,w]);const B=p.useCallback(z=>s?z.filter(le=>le.fileContent.size>s).map(le=>le.name):[],[s]),K=p.useCallback((z,le)=>z.map(ve=>({id:ve.name,name:ve.name,folderId:le,path:ve.name,nodeType:we.ITEM,parentPath:le,contentLength:ve.fileContent.size})),[]),O=p.useCallback(async(z,le,ve)=>{if(!r||!w)return!1;f(void 0),C.current=ve;const Ee=B(z);if(Ee.length>0){const Pe=s?(s/1048576).toFixed(2):0,Ce=n.oversizedFiles||`Files exceed maximum size (${Pe}MB): ${Ee.join(", ")}`;return f(Ce),!1}if(t)try{const Pe=await t(z,ve,le);if(!Pe.valid)return f(Pe.message||n.validationFailed||"Validation failed"),!1}catch{return f(n.validationError||"Validation error occurred"),!1}const oe=new Map(z.map(Pe=>[Pe.name,Pe]));x(oe);const xe=K(z,le);return S({destinationFolder:le}),P(le,xe,{destinationFolder:le}).hasConflicts?!1:(e?.(z,le),R(),!0)},[r,e,t,B,s,n,K,P,R,w]),A=p.useCallback(()=>{H(),R()},[H,R]),W=p.useCallback(()=>{M(),R()},[M,R]),Y=p.useCallback(()=>{G(),R()},[G,R]),ie=p.useCallback(z=>{V(z),R()},[V,R]),be=p.useCallback(()=>{k(),T.current||R()},[k,T,R]),Z=p.useCallback(z=>{!r||!w||(z.preventDefault(),z.stopPropagation(),z.dataTransfer.types.includes("Files")&&c(!0))},[r,w]),me=p.useCallback(z=>{if(!r||!w)return;z.preventDefault(),z.stopPropagation();const le=z.currentTarget.getBoundingClientRect(),ve=z.clientX,Ee=z.clientY;(ve<=le.left||ve>=le.right||Ee<=le.top||Ee>=le.bottom)&&c(!1)},[r,w]),Ie=p.useCallback(z=>{!r||!w||(z.preventDefault(),z.stopPropagation(),z.dataTransfer.types.includes("Files")&&(z.dataTransfer.dropEffect="copy"))},[r,w]),ne=p.useCallback(async(z,le,ve)=>{if(!r||!w||(z.preventDefault(),z.stopPropagation(),c(!1),!z.dataTransfer.types.includes("Files")))return;const Ee=Array.from(z.dataTransfer.items||[]),oe=[];let xe=!1;if(Ee.length>0&&Ee.forEach(Ce=>{if(Ce.kind==="file"){if(Ce.webkitGetAsEntry?.()?.isDirectory){xe=!0;return}const je=Ce.getAsFile?.();je&&oe.push(je)}}),oe.length===0&&z.dataTransfer.files?.length&&oe.push(...Array.from(z.dataTransfer.files)),oe.length===0){xe&&f(n.foldersNotSupported||"Folder upload is not supported");return}const Ae=oe.map(Ce=>({fileContent:Ce,name:Ce.name})),Pe=F(Ae);if(Pe.length===0){f(n.unsupportedFiles||"Selected files are not supported");return}await O(Pe,le,ve)},[r,F,O,n,w]),ce=p.useRef(()=>{});p.useEffect(()=>{ce.current=async()=>{const z=m.current;if(!z)return;if(!r||!w){z.value="";return}if(!z.files?.length)return;const ve=Array.from(z.files).map(oe=>({fileContent:oe,name:oe.name})),Ee=F(ve);if(Ee.length===0){f(n.unsupportedFiles||"Selected files are not supported"),z.value="";return}try{await O(Ee,v.current,C.current)}catch{f(n.validationError||"Upload failed")}finally{z.value=""}}},[r,w,F,O,n]),p.useEffect(()=>{const z=document.createElement("input");z.type="file",z.multiple=!0,z.style.display="none",document.body.appendChild(z),m.current=z;const le=()=>ce.current?.();return z.addEventListener("change",le),()=>{z.removeEventListener("change",le),m.current===z&&(document.body.removeChild(z),m.current=null)}},[]),p.useEffect(()=>{const z=m.current;z&&(i&&i.length>0?z.accept=i.join(","):z.removeAttribute("accept"))},[i]);const L=p.useCallback((z,le)=>{!r||!w||(v.current=z,C.current=le,m.current&&m.current.click())},[r,w]),ee=p.useCallback((z,le)=>{if(!o||!r||!w)return;const ve=document.createElement("input");ve.type="file",ve.accept=".zip,application/zip",ve.multiple=!1,ve.style.display="none";const Ee=()=>{const oe=ve.files?.[0];if(!oe){document.body.removeChild(ve);return}const xe=oe.name.replace(/\.zip$/i,""),Ae={id:xe,name:xe,folderId:z,path:`${z}/${xe}`,nodeType:we.FOLDER,parentPath:z,contentLength:oe.size,contentType:oe.type};if(C.current=le,S({destinationFolder:z}),x(new Map([[Ae.path,{fileContent:oe,name:xe}]])),P(z,[Ae],{destinationFolder:z}).hasConflicts){document.body.removeChild(ve);return}try{o(oe,xe,z)}finally{document.body.removeChild(ve)}};ve.addEventListener("change",Ee),document.body.appendChild(ve),ve.click()},[o,r,w,P]),ye=p.useCallback(()=>{f(void 0)},[]);return{isDragging:l,isDraggingOverWindow:d,uploadError:h,handleDragEnter:Z,handleDragLeave:me,handleDragOver:Ie,handleDrop:ne,clearError:ye,handleUpload:O,openFileDialog:L,openArchiveDialog:ee,fileInputRef:m,uploadConflictingFiles:E,uploadConflictResolutionOpen:D,hasActiveUploadConflictRef:T,openUploadConflictResolution:I,closeUploadConflictResolution:be,handleUploadConflictReplace:A,handleUploadConflictDuplicate:W,handleUploadConflictCancel:Y,handleUploadConflictDecideForEach:ie}},jb=p.createContext(void 0),Wb={hiddenItemWarning:`${us.Warning}__A dot at the start of the name will make the item hidden`},SB={emptyName:"Name cannot be empty",duplicateName:"An item with this name already exists",hiddenItemWarning:Wb.hiddenItemWarning};function RB(e){let t=e.length;for(;t>0&&e[t-1]==="/";)t--;return e.slice(0,t)}function FB(e,t){const s=RB(e),i=s.lastIndexOf("/");return i===-1?t:s.slice(0,i+1)+t}function EB(e){const t=e.lastIndexOf(".");return t===-1||t===0?e:e.substring(0,t)}function tv(e){const t=e.lastIndexOf(".");return t===-1||t===0?"":e.substring(t)}const DB=({items:e,onRenameValidate:t,validationMessages:s,onMoveToFiles:i})=>{const[n,o]=p.useState(),r=p.useMemo(()=>({...SB,...s}),[s]),a=p.useMemo(()=>n?.path,[n]),l=p.useCallback(f=>{const m=si(e,f);m&&o(m)},[e]),c=p.useCallback(()=>{o(void 0)},[]),d=p.useCallback(f=>{if(!n||!i){o(void 0);return}const m=n.nodeType===we.ITEM;let v=f.trim();if(m){const x=tv(n.name);x&&!v.endsWith(x)&&(v=v+x)}if(v===n.name){o(void 0);return}const C=FB(n.path,v),w=n.parentPath;if(!w){o(void 0);return}const b={sourceUrl:n.path,destinationUrl:C,nodeType:n.nodeType};i([b],w,w),o(void 0)},[n,i]),u=p.useCallback((f,m)=>{const v=f.trim();if(!v)return r.emptyName;if(v.startsWith("."))return r.hiddenItemWarning;const C=m.nodeType===we.ITEM;let w=v;if(C){const x=tv(m.name);x&&!w.endsWith(x)&&(w=w+x)}const b=m.parentPath;if(b){const x=si(e,b);if(x&&new Set((x.items??[]).filter(S=>S.path!==m.path).map(S=>S.name.toLowerCase())).has(w.toLowerCase()))return r.duplicateName}if(t){const x=t(w,m);if(x)return x}return null},[t,r,e]),h=p.useCallback(f=>f.nodeType===we.ITEM?EB(f.name):f.name,[]);return{renamedPath:a,renamedItem:n,renameHandler:l,renameSaveHandler:d,renameCancelHandler:c,renameValidateHandler:u,getDisplayName:h}},_b=e=>{const[t,s]=p.useState(e?.expandedPaths??new Set),i=p.useMemo(()=>!!e?.onExpandedPathsChange,[e?.onExpandedPathsChange]),n=p.useMemo(()=>i?e?.expandedPaths??new Set:t,[i,e?.expandedPaths,t]);p.useEffect(()=>{i&&e?.expandedPaths&&s(new Set(e.expandedPaths))},[i,e?.expandedPaths]);const o=p.useCallback(d=>{i?e?.onExpandedPathsChange?.(d):s(d)},[i,e]),r=p.useCallback(d=>{const u=new Set(n);u.has(d)?u.delete(d):u.add(d),o(u)},[n,o]),a=p.useCallback(()=>{o(new Set)},[o]),l=p.useCallback(d=>{const u=new Set(n);u.add(d),o(u)},[n,o]),c=p.useCallback(d=>{const u=new Set(n);u.delete(d),o(u)},[n,o]);return{expandedPaths:n,setExpandedPaths:o,togglePath:r,collapseAll:a,expandPath:l,collapsePath:c,isControlled:i}},PB=({newActions:e,currentFolder:t,onUploadFiles:s,onCreateFolder:i,onUploadArchive:n,onCreateNewItem:o,isNewButtonDisabled:r})=>{const a=p.useMemo(()=>{const d=[];return e&&(e.newFolder&&d.push({key:"new-folder",label:e.newFolder.label,icon:e?.newFolder?.icon!==void 0?e?.newFolder?.icon:g.jsx(_.IconFolder,{...te,className:"text-secondary"}),onClick:()=>{i&&i()}}),e.newItem&&d.push({key:"new-item",label:e.newItem.label,icon:e?.newItem?.icon!==void 0?e?.newItem?.icon:g.jsx(_.IconPlus,{...te,className:"text-secondary"}),onClick:()=>{o&&o()}}),e.uploadFiles&&d.push({key:"upload-file",label:e.uploadFiles.label,icon:e?.uploadFiles?.icon!==void 0?e?.uploadFiles?.icon:g.jsx(_.IconFile,{...te,className:"text-secondary"}),onClick:()=>{s&&s()}}),e.uploadArchive&&d.push({key:"upload-archive",label:e.uploadArchive.label,icon:e?.uploadArchive?.icon!==void 0?e?.uploadArchive?.icon:g.jsx(_.IconFileZip,{...te,className:"text-secondary"}),onClick:()=>{n&&n()}})),d},[e,i,s,n,o]),l=p.useMemo(()=>a?.length>0,[a]),c=p.useMemo(()=>!t?.permissions?.includes(Bn.WRITE)||!!r,[t,r]);return{newActions:a,isNewButtonVisible:l,isNewButtonDisabled:c}},TB={emptyName:"Folder name cannot be empty",duplicateName:"A folder with this name already exists",hiddenItemWarning:Wb.hiddenItemWarning},kB=({currentFolder:e,onCreateFolder:t,onValidateFolderName:s,validationMessages:i,items:n=[]})=>{const[o,r]=p.useState(!1),[a,l]=p.useState(null),[c,d]=p.useState(Cs.Folder),[u,h]=p.useState(null),[f,m]=p.useState(null),[v,C]=p.useState(""),w=p.useRef(e?.path),b=p.useMemo(()=>({...TB,...i}),[i]),x=p.useMemo(()=>{if(c===Cs.Folder)return e;if(c===Cs.Sibling&&u){const k=Do(n,u.parentPath||"");return{path:u.parentPath,items:k?.items||[],nodeType:we.FOLDER,name:u?.parentPath?.split("/")?.pop()||"",folderId:""}}return c===Cs.Child?u:e},[c,u,e,n]);p.useEffect(()=>{const k=x?.path;w.current!==k&&o&&(r(!1),l(null),C("")),w.current=k},[x?.path,o]);const y=p.useCallback(()=>{if(o)return;w.current=e?.path||"/";const k=`__new_folder_${Date.now()}`,I=(e?.items??[]).filter(M=>M.nodeType===we.FOLDER),H=vr(I);l(k),C(H),r(!0),d(Cs.Folder),h(e||null)},[o,e]),S=p.useCallback(k=>{if(o)return;w.current=k?.parentPath||"/";const I=`__new_folder_${Date.now()}`,M=(Do(n,k?.parentPath||"/")?.items??[]).filter(V=>V.nodeType===we.FOLDER),G=vr(M);C(G),l(I),r(!0),d(Cs.Sibling),h(k),m(k?.parentPath||"/")},[o,n]),F=p.useCallback(k=>{if(o)return;w.current=k.path;const I=`__new_folder_${Date.now()}`,H=(k?.items??[]).filter(G=>G.nodeType===we.FOLDER),M=vr(H);C(M),l(I),r(!0),d(Cs.Child),h(k),m(k?.path||"/")},[o]),R=p.useCallback(k=>{if(o)return;w.current=k?.parentPath||"/";const H=(Do(n,k?.parentPath||"/")?.items??[]).filter(G=>G.nodeType===we.FOLDER),M=vr(H);C(M),d(Cs.Sibling),h(k),m(k?.parentPath||"/"),r(!0)},[o,n]),E=p.useCallback(k=>{if(o)return;w.current=k.path;const I=(k?.items??[]).filter(M=>M.nodeType===we.FOLDER),H=vr(I);C(H),d(Cs.Child),h(k),m(k?.path||"/"),r(!0)},[o]),D=p.useCallback(()=>{r(!1),l(null),d(Cs.Folder),h(null),m(null),w.current=void 0,C("")},[]),T=p.useCallback(k=>{const I=k.trim();if(!I)return b.emptyName;if(I.startsWith(".")&&I.length>1)return b.hiddenItemWarning;if(x&&x.items&&new Set((x.items??[]).filter(M=>M.nodeType===we.FOLDER).map(M=>M.name.toLowerCase())).has(I.toLowerCase()))return b.duplicateName;if(s&&x){const H=s(I,x);if(H)return H}return null},[x,s,b]),P=p.useCallback(async k=>{const I=k.trim();if(!I)return;D();const M=`${x?.path??"/"}/${I}`,G=`${M}/${xu}`,B={fileContent:new File([],xu,{type:"text/plain"}),name:xu};t&&await t(B,M,G)},[x,t,D]);return{isCreatingFolder:o,createdFolderPath:f,newFolderTempId:a,newFolderDefaultName:v,startFolderCreation:y,startGridSiblingFolderCreation:S,startTreeSiblingFolderCreation:R,startGridChildFolderCreation:F,startTreeChildFolderCreation:E,cancelFolderCreation:D,saveFolderCreation:P,validateFolderName:T}},IB=({additionalButtons:e,expandedPathsLength:t,collapseAll:s})=>{const i=t===0;return{additionalButtons:p.useMemo(()=>{const o=$(["hover:text-accent-primary",i&&"controls-secondary-disable hover:controls-secondary-disable disabled:hover:cursor-default"]);return g.jsxs(g.Fragment,{children:[e,g.jsx(ii,{disabled:i,className:o,size:et.Small,onClick:s,icon:g.jsx(_.IconCopyMinus,{size:nt.LG,stroke:1.5}),"aria-label":"collapse-all"})]})},[e,i,s])}},MB=({onGetInfo:e})=>{const[t,s]=p.useState(!1),[i,n]=p.useState(void 0),o=p.useCallback(async a=>{n(a),s(!0),e&&await e(a)},[e]),r=p.useCallback(()=>{s(!1),n(void 0)},[]);return{isMetadataPopupOpen:t,selectedFileForMetadata:i,openMetadataPopup:o,closeMetadataPopup:r}};function AB(e){const t=[];function s(i){for(const n of i)t.push(n),n.items&&s(n.items)}return s(e),t}function sv(e,t){const s=Po(t);return e.filter(i=>Po(i.name).includes(s))}function LB({onSearchFiles:e,clearSearchResults:t,currentPath:s,searchResults:i=[],searchInProgress:n=!1,navigationPanelValue:o,onNavigationPanelSearchChange:r,allItems:a=[],activeTab:l}){const[c,d]=p.useState(""),u=p.useRef(!1),h=p.useRef(!1),f=p.useRef([]),m=p.useRef(s),v=p.useRef(l);p.useEffect(()=>{o!=null&&d(String(o))},[o]);const C=String(o??c??"").trim(),w=h.current&&(n||i.length>0||C!==""),b=p.useCallback(F=>{const R=F.trim();if(!R){h.current=!1,u.current=!1;return}h.current=!0,e&&s&&!u.current&&(u.current=!0,e(s,R))},[e,s]),x=p.useCallback(()=>{u.current=!1,h.current=!1,f.current=[],d(""),r?.(""),t?.()},[t,r]),y=p.useCallback(F=>{const R=String(F??"");d(R),r?.(R),R.trim()?b(R):x()},[r,b,x]);p.useEffect(()=>{(m.current!==s||v.current!==l)&&(m.current=s,v.current=l,u.current=!1,h.current=!1,f.current=[],d(""),r?.(""),t?.())},[s,l,r,t]),p.useEffect(()=>{n||(f.current=i)},[i,n]);const S=p.useMemo(()=>{if(e){const R=n?f.current:i;return!C||R.length===0?R:sv(R,C)}if(!C||!a.length)return[];const F=AB(a);return sv(F,C)},[e,i,n,C,a]);return{isSearchMode:w,searchValue:c,effectiveSearchValue:C,setSearchValue:d,handleSearchChange:y,handleSearchActivate:b,handleSearchClear:x,searchResultsRows:S}}function OB({selectedPaths:e,defaultSelectedPaths:t,onSelectedPathsChange:s}){const i=e!==void 0,[n,o]=p.useState(()=>t??new Set),r=p.useMemo(()=>i?e:n,[i,e,n]),a=p.useCallback(c=>{const d=new Set(c);s?.(d),i||o(d)},[i,s]),l=p.useCallback(()=>{a(new Set)},[a]);return{selectedPaths:r,setSelectedPaths:a,clearSelection:l,isControlled:i}}const Ub=':;,=/{}%&\\"',ug=`(\r
|
|
68
|
+
If you are trying to annotate ${i} with application data, use the '${i}.context' property instead.`),kr(d)}if(a.length>0&&n){const l=this.beans.frameworkOverrides.getDocLink(n);kr(`to see all the valid ${i} properties please check: ${l}`)}}};function $L(e,t,s){const i={},n=e.filter(o=>!t.some(r=>r===o));if(n.length>0)for(const o of n)i[o]=rh({inputValue:o,allSuggestions:s}).values;return i}var qL=new Set(["firstChildChanged","lastChildChanged","childIndexChanged"]),KL={moduleName:"Validation",version:J,beans:[UL]},YL={moduleName:"AllCommunity",version:J,dependsOn:[WI,uM,Z7,KL,B8,G8,V8,z8,j8,W8,_8,H8,L7,O7,N7,H7,A7,G7,V7,d9,Yk,I9,Iw,lI,cI,sL,ZI,AD,B9,ML,Pk,OL,tM,NL,s9,Ik,K9,y1,n9,nL,MD,_I,uL]};function de(e,t={}){const s=Object.keys(t).map(i=>{const n=t[i];return n!=null?`${i}=${n}`:null}).filter(Boolean).join(";");return[e,s].filter(i=>i.length>0).join(":")}var ae={grid(e){return de("ag-grid-root",{gridId:e})},headerGroupCell(e){return de("ag-header-group-cell",{colId:e})},headerCell(e){return de("ag-header-cell",{colId:e})},headerCheckbox(e){return de("ag-header-selection-checkbox",{colId:e})},headerFilterButton(e){return de("ag-header-cell-filter-button",{colId:e})},floatingFilter(e){return de("ag-floating-filter",{colId:e})},floatingFilterButton(e){return de("ag-floating-filter-button",{colId:e})},headerCellMenuButton(e){return de("ag-header-cell-menu-button",{colId:e})},headerResizeHandle(e){return de("ag-header-cell-resize",{colId:e})},filterInstancePickerDisplay(e){return de(`ag-${e.source}-picker-display`,ul(e))},numberFilterInstanceInput(e){return de(`ag-${e.source}-number-input`,ul(e))},textFilterInstanceInput(e){return de(`ag-${e.source}-text-input`,ul(e))},dateFilterInstanceInput(e){return de(`ag-${e.source}-date-input`,ul(e))},setFilterInstanceMiniFilterInput(e){return de(`ag-${e.source}-set-filter-mini-filter-input`,e.source==="filter-toolpanel"?{label:e.colLabel}:{colId:e.colId})},setFilterInstanceItem(e,t){return de(`ag-${e.source}-set-filter-item`,e.source==="filter-toolpanel"?{colLabel:e.colLabel,itemLabel:t}:{colId:e.colId,itemLabel:t})},setFilterApplyPanelButton(e,t){return de(`ag-${e.source}-set-filter-apply-panel-button`,e.source==="filter-toolpanel"?{colLabel:e.colLabel,buttonLabel:t}:{colId:e.colId,buttonLabel:t})},filterConditionRadioButton(e,t){return de(`ag-${e.source}-filter-condition-radio-button`,e.source==="filter-toolpanel"?{colLabel:e.colLabel,buttonLabel:t}:{colId:e.colId,buttonLabel:t})},advancedFilterInput(){return de("ag-advanced-filter-input")},advancedFilterButton(e){return de("ag-advanced-filter-button",{label:e})},advancedFilterBuilderButton(){return de("ag-advanced-filter-builder-button")},advancedFilterPanelMaximiseButton(){return de("ag-advanced-filter-builder-panel-maximise")},advancedFilterPanelCloseButton(){return de("ag-advanced-filter-builder-panel-close")},advancedFilterPill(e){return de("ag-advanced-filter-builder-pill",{label:e})},advancedFilterBuilderAddItemButton(){return de("ag-advanced-filter-builder-add-item-button")},rowNode(e){return de("ag-row",{"row-id":e})},cell(e,t){return de("ag-cell",{"row-id":e,colId:t})},autoGroupCell(e){return ae.cell(e,Ei)},checkbox(e,t){return de("ag-selection-checkbox",{"row-id":e,colId:t})},selectionColumnCheckbox(e){return ae.checkbox(e,sp)},autoGroupColumnCheckbox(e){return ae.checkbox(e,Ei)},dragHandle(e,t){return de("ag-drag-handle",{"row-id":e,colId:t})},groupContracted(e,t){return de("ag-group-contracted",{"row-id":e,colId:t})},groupExpanded(e,t){return de("ag-group-expanded",{"row-id":e,colId:t})},autoGroupContracted(e){return ae.groupContracted(e,Ei)},autoGroupExpanded(e){return ae.groupExpanded(e,Ei)},rowNumber(e){return ae.cell(e,ip)},menu(){return de("ag-menu")},menuOption(e){return de("ag-menu-option",{option:e})},sideBar(){return de("ag-side-bar")},sideBarButton(e){return de("ag-side-button",{label:e})},columnToolPanel(){return de("ag-column-panel")},pivotModeSelect(){return de("ag-pivot-mode-select")},columnPanelSelectHeaderCheckbox(){return de("ag-column-panel-select-header-checkbox")},columnPanelSelectHeaderFilter(){return de("ag-column-panel-select-header-filter")},columnSelectListItemGroupClosedIcon(e){return de("ag-column-select-list-item-group-closed-icon",{label:e})},columnSelectListItemCheckbox(e){return de("ag-column-select-list-item-checkbox",{label:e})},columnSelectListItemDragHandle(e){return de("ag-column-select-list-item-drag-handle",{label:e})},columnDropCellDragHandle(e,t,s){return de("ag-column-drop-cell-drag-handle",{source:e,area:t,label:s})},columnDropCellCancelButton(e,t,s){return de("ag-column-drop-cell-cancel",{source:e,area:t,label:s})},columnDropArea(e,t){return de("ag-column-drop-area",{source:e,name:t})},filterToolPanel(){return de("ag-filter-panel")},filterToolPanelAddFilterButton(){return de("ag-filter-panel-add-filter-button")},filterToolPanelFilterTypeSelector(e){return de("ag-filter-panel-filter-type-selector",{colLabel:e})},filterToolPanelSearchInput(){return de("ag-filter-toolpanel-search-input")},filterToolPanelGroup(e){return de("ag-filter-toolpanel-group",{title:e})},filterToolPanelGroupCollapsedIcon(e){return de("ag-filter-toolpanel-group-collapsed-icon",{title:e})},statusBarTotalAndFilteredRowCount(){return de("ag-status-bar-total-and-filtered-row-count")},statusBarTotalRowCount(){return de("ag-status-bar-total-row-count")},statusBarFilteredRowCount(){return de("ag-status-bar-filtered-row-count")},statusBarSelectedRowCount(){return de("ag-status-bar-selected-row-count")},statusBarAggregations(){return de("ag-status-bar-aggregations")},paginationPanelSizePickerDisplay(e){return de("ag-pagination-page-size-picker-field-display",{value:e})},paginationPanelFirstRowOnPage(e){return de("ag-paging-row-summary-panel-first-row-on-page",{value:e})},paginationPanelLastRowOnPage(e){return de("ag-paging-row-summary-panel-last-row-on-page",{value:e})},paginationPanelRecordCount(e){return de("ag-paging-row-summary-panel-record-count",{value:e})},paginationSummaryPanelButton(e){return de("ag-paging-page-summary-panel-btn",{label:e})},paginationSummaryPanelCurrentPage(e){return de("ag-paging-page-summary-panel-current-page",{value:e})},paginationSummaryPanelTotalPage(e){return de("ag-paging-page-summary-panel-total-page",{value:e})},fillHandle(){return de("ag-fill-handle")},columnChooserCloseButton(){return de("ag-column-chooser-close-button")},columnChooserSearchBarCheckbox(){return de("ag-column-chooser-header-checkbox")},columnChooserSearchBarFilter(){return de("ag-column-chooser-searchbar-filter")},columnChooserListItemGroupClosedIcon(e){return de("ag-column-chooser-list-item-group-closed-icon",{label:e})},columnChooserListItemCheckbox(e){return de("ag-column-chooser-list-item-checkbox",{label:e})},columnChooserListItemDragHandle(e){return de("ag-column-chooser-list-item-drag-handle",{label:e})},overlay(){return de("ag-overlay")}};function ZL(e,t){const s={};for(const i of Object.keys(e))t[i]!==null&&(s[t[i]??i]=e[i]);return s}function XL(e){return e.source!=="floating-filter"?{index:0,...e}:e}function ul(e){return ZL(XL(e),{colLabel:"label"})}var Q1="data-testid";function pe(e,t){e?.setAttribute(Q1,t)}function QL(e){Q1=e}var JL=class extends j{constructor(){super(...arguments),this.beanName="testIdSvc"}postConstruct(){const e=gt(this,()=>this.setupAllTestIds(),500),t=gt(this,()=>{this.setupAllTestIds(),e()},0);this.addManagedEventListeners({firstDataRendered:t,displayedRowsChanged:t,displayedColumnsChanged:t,displayedColumnsWidthChanged:t,virtualColumnsChanged:t,columnMenuVisibleChanged:t,contextMenuVisibleChanged:t,advancedFilterBuilderVisibleChanged:t,fieldPickerValueSelected:t,modelUpdated:t,sideBarUpdated:t,pinnedHeightChanged:t,gridReady:t,overlayExclusiveChanged:t,rowGroupOpened:t,scrollVisibilityChanged:t,gridSizeChanged:t,filterOpened:t,filterChanged:t,cellSelectionChanged:t})}setupAllTestIds(){const e=ws(this.beans),t=gw(this.beans),s=e.querySelector(`[grid-id="${t}"]`);pe(s,ae.grid(t)),e.querySelectorAll(".ag-header-group-cell").forEach(o=>{pe(o,ae.headerGroupCell(o.getAttribute("col-id")))}),e.querySelectorAll(".ag-header-cell").forEach(o=>{const r=o.getAttribute("col-id"),l=o.classList.contains("ag-floating-filter")?ae.floatingFilter(r):ae.headerCell(r);pe(o,l),pe(o.querySelector(".ag-header-cell-filter-button"),ae.headerFilterButton(r)),pe(o.querySelector(".ag-header-cell-menu-button"),ae.headerCellMenuButton(r)),pe(o.querySelector(".ag-header-cell-resize"),ae.headerResizeHandle(r)),pe(o.querySelector(".ag-checkbox input[type=checkbox]"),ae.headerCheckbox(r)),pe(o.querySelector(".ag-floating-filter-button button"),ae.floatingFilterButton(r)),this.setupFilterInstance(o.querySelector(".ag-floating-filter-body"),{source:"floating-filter",colId:r})});const i=e.querySelector(".ag-filter-menu");this.setupFilterInstance(i,{source:"column-filter"}),pe(e.querySelector(".ag-advanced-filter input[type=text]"),ae.advancedFilterInput()),e.querySelectorAll(".ag-advanced-filter-buttons button").forEach(o=>{pe(o,ae.advancedFilterButton(o.textContent))}),pe(e.querySelector("button.ag-advanced-filter-builder-button"),ae.advancedFilterBuilderButton()),e.querySelectorAll('.ag-panel[aria-label="Advanced Filter"] .ag-panel-title-bar-button').forEach((o,r)=>{pe(o,r===0?ae.advancedFilterPanelMaximiseButton():ae.advancedFilterPanelCloseButton())}),e.querySelectorAll('.ag-panel[aria-lable="Advanced Filter"] .ag-advanced-filter-builder-pill').forEach(o=>{pe(o,ae.advancedFilterPill(o.querySelector(".ag-picker-field-display")?.textContent))}),pe(e.querySelector('.ag-panel[aria-label="Advanced Filter"] .ag-advanced-filter-builder-item-button'),ae.advancedFilterBuilderAddItemButton()),e.querySelectorAll(".ag-row").forEach(o=>{const r=o.getAttribute("row-id");pe(o,ae.rowNode(r)),o.querySelectorAll(".ag-cell").forEach(a=>{const l=a.getAttribute("col-id");pe(a,ae.cell(r,l)),pe(a.querySelector(".ag-selection-checkbox input[type=checkbox]"),ae.checkbox(r,l)),pe(a.querySelector(".ag-drag-handle"),ae.dragHandle(r,l)),pe(a.querySelector(".ag-group-contracted"),ae.groupContracted(r,l)),pe(a.querySelector(".ag-group-expanded"),ae.groupExpanded(r,l))})}),e.querySelectorAll(".ag-menu-list").forEach(o=>{pe(o,ae.menu()),o.querySelectorAll(".ag-menu-option").forEach(r=>{pe(r,ae.menuOption(r.querySelector(".ag-menu-option-text")?.textContent))})}),e.querySelectorAll(".ag-side-bar").forEach(o=>{pe(o,ae.sideBar()),o.querySelectorAll(".ag-side-button button").forEach(r=>{pe(r,ae.sideBarButton(r.querySelector(".ag-side-button-label")?.textContent))}),o.querySelectorAll(".ag-column-panel").forEach(r=>{pe(r,ae.columnToolPanel()),pe(r.querySelector(".ag-pivot-mode-select input[type=checkbox]"),ae.pivotModeSelect()),pe(r.querySelector(".ag-column-select-header-checkbox input[type=checkbox]"),ae.columnPanelSelectHeaderCheckbox()),pe(r.querySelector(".ag-column-select-header-filter-wrapper input[type=text]"),ae.columnPanelSelectHeaderFilter()),r.querySelectorAll(".ag-column-select-list").forEach(a=>{a.querySelectorAll(".ag-column-select-virtual-list-item").forEach(l=>{const c=l.getAttribute("aria-label");pe(l.querySelector(".ag-column-group-closed-icon"),ae.columnSelectListItemGroupClosedIcon(c)),pe(l.querySelector(".ag-column-select-checkbox input[type=checkbox]"),ae.columnSelectListItemCheckbox(c)),pe(l.querySelector(".ag-drag-handle"),ae.columnSelectListItemDragHandle(c))})}),this.setupColumnDropArea(r,"toolbar")}),o.querySelectorAll(".ag-filter-panel").forEach(r=>{pe(r,ae.filterToolPanel()),pe(r.querySelector("button.ag-filter-add-button"),ae.filterToolPanelAddFilterButton()),r.querySelectorAll(".ag-filter-card").forEach(a=>{const l=a.querySelector(".ag-filter-card-title")?.textContent,c=a.querySelector(".ag-filter-type-select");pe(c,ae.filterToolPanelFilterTypeSelector(l)),a.querySelectorAll(".ag-filter").forEach(d=>this.setupFilterInstance(d,{source:"filter-toolpanel",colLabel:l}))})}),o.querySelectorAll(".ag-filter-toolpanel").forEach(r=>{pe(r.querySelector(".ag-filter-toolpanel-search-input input[type=text]"),ae.filterToolPanelSearchInput()),r.querySelectorAll(".ag-filter-toolpanel-group").forEach(a=>{const l=a.querySelector(".ag-filter-toolpanel-group-title")?.textContent;pe(a,ae.filterToolPanelGroup(l)),pe(a.querySelector(".ag-filter-toolpanel-group-title-bar-icon .ag-icon-tree-closed"),ae.filterToolPanelGroupCollapsedIcon(l));const c=a.querySelector(".ag-filter-toolpanel-instance-filter");c&&this.setupFilterInstance(c,{source:"filter-toolpanel",colLabel:l})})})}),pe(e.querySelector(".ag-status-bar .ag-status-panel-total-and-filtered-row-count"),ae.statusBarTotalAndFilteredRowCount()),pe(e.querySelector(".ag-status-bar .ag-status-panel-total-row-count"),ae.statusBarTotalRowCount()),pe(e.querySelector(".ag-status-bar .ag-status-panel-filtered-row-count"),ae.statusBarFilteredRowCount()),pe(e.querySelector(".ag-status-bar .ag-status-panel-selected-row-count"),ae.statusBarSelectedRowCount()),pe(e.querySelector(".ag-status-bar .ag-status-panel-filtered-row-count"),ae.statusBarAggregations()),e.querySelectorAll(".ag-paging-panel").forEach(o=>{pe(o.querySelector(".ag-paging-page-size .ag-picker-field-display"),ae.paginationPanelSizePickerDisplay(o.querySelector(".ag-paging-page-size .ag-picker-field-display")?.textContent)),o.querySelectorAll(".ag-paging-row-summary-panel-number").forEach(r=>{switch(r.getAttribute("data-ref")){case"lbFirstRowOnPage":pe(r,ae.paginationPanelFirstRowOnPage(r.textContent));break;case"lbLastRowOnPage":pe(r,ae.paginationPanelLastRowOnPage(r.textContent));break;case"lbRecordCount":pe(r,ae.paginationPanelRecordCount(r.textContent));break}}),o.querySelectorAll(".ag-paging-page-summary-panel .ag-button").forEach(r=>{pe(r,ae.paginationSummaryPanelButton(r.getAttribute("aria-label")?.toLowerCase()))}),o.querySelectorAll(".ag-paging-page-summary-panel .ag-paging-number").forEach(r=>{switch(r.getAttribute("data-ref")){case"lbCurrent":pe(r,ae.paginationSummaryPanelCurrentPage(r.textContent));break;case"lbTotal":pe(r,ae.paginationSummaryPanelTotalPage(r.textContent));break}})}),pe(e.querySelector(".ag-fill-handle"),ae.fillHandle()),e.querySelectorAll('.ag-panel[aria-label="Choose Columns"]').forEach(o=>{pe(o.querySelector(".ag-panel-title-bar-button-icon"),ae.columnChooserCloseButton()),pe(o.querySelector('.ag-column-select-header-checkbox input[type="checkbox"]'),ae.columnChooserSearchBarCheckbox()),pe(o.querySelector('.ag-column-select-header-filter-wrapper input[type="text"]'),ae.columnChooserSearchBarFilter()),o.querySelectorAll(".ag-column-select-list").forEach(r=>{r.querySelectorAll(".ag-column-select-virtual-list-item").forEach(a=>{const l=a.getAttribute("aria-label");pe(a.querySelector(".ag-column-group-closed-icon"),ae.columnChooserListItemGroupClosedIcon(l)),pe(a.querySelector(".ag-column-select-checkbox input[type=checkbox]"),ae.columnChooserListItemCheckbox(l)),pe(a.querySelector(".ag-drag-handle"),ae.columnChooserListItemDragHandle(l))})})}),pe(e.querySelector(".ag-overlay-wrapper"),ae.overlay());const n=e.querySelector(".ag-column-drop-wrapper");n&&this.setupColumnDropArea(n,"panel")}setupFilterInstance(e,t){if(!e)return;e.querySelectorAll(".ag-filter-select .ag-picker-field-display").forEach(n=>{pe(n,ae.filterInstancePickerDisplay(t))});const s=t.source==="floating-filter"?".ag-floating-filter-body":".ag-filter-body";e.querySelectorAll(`${s} .ag-input-field:not(.ag-hidden) input[type="number"]`).forEach((n,o,r)=>{const l=r.length>1?{...t,index:o}:t;pe(n,ae.numberFilterInstanceInput(l))}),e.querySelectorAll(`${s} .ag-input-field:not(.ag-hidden) input[type="text"]`).forEach((n,o,r)=>{const l=r.length>1?{...t,index:o}:t;pe(n,ae.textFilterInstanceInput(l))}),e.querySelectorAll(`${s} .ag-input-field:not(.ag-hidden) input[type="date"]`).forEach((n,o,r)=>{const l=r.length>1?{...t,index:o}:t;pe(n,ae.dateFilterInstanceInput(l))});const i=e.querySelector('.ag-mini-filter input[type="text"]');pe(i,ae.setFilterInstanceMiniFilterInput(t)),e.querySelectorAll(".ag-set-filter-list .ag-set-filter-item").forEach(n=>{const o=n.querySelector(".ag-checkbox-label")?.textContent,r=n.querySelector('input[type="checkbox"]');pe(r,ae.setFilterInstanceItem(t,o))}),e.querySelectorAll(".ag-filter-apply-panel button").forEach(n=>{pe(n,ae.setFilterApplyPanelButton(t,n.textContent))}),e.querySelectorAll(".ag-filter-condition .ag-radio-button").forEach(n=>{const o=n.querySelector(".ag-radio-button-label")?.textContent;pe(n.querySelector("input[type=radio]"),ae.filterConditionRadioButton(t,o))})}setupColumnDropArea(e,t){e.querySelectorAll(".ag-column-drop").forEach(s=>{const i=s.querySelector(".ag-column-drop-list")?.getAttribute("aria-label");pe(s,ae.columnDropArea(t,i)),s.querySelectorAll(".ag-column-drop-cell").forEach(n=>{const o=n.querySelector(".ag-column-drop-cell-text")?.textContent;pe(n.querySelector(".ag-drag-handle"),ae.columnDropCellDragHandle(t,i,o)),pe(n.querySelector(".ag-column-drop-cell-button .ag-icon-cancel"),ae.columnDropCellCancelButton(t,i,o))})})}},eO={moduleName:"Testing",version:J,beans:[JL]};function tO({testIdAttribute:e}={}){e&&QL(e),hC.registerModules([eO])}var sO=class{wrap(e,t,s,i){const n=this.createWrapper(e,i);for(const o of t??[])this.createMethod(n,o,!0);for(const o of s??[])this.createMethod(n,o,!1);return n}createMethod(e,t,s){e.addMethod(t,this.createMethodProxy(e,t,s))}createMethodProxy(e,t,s){return function(){return e.hasMethod(t)?e.callMethod(t,arguments):(s&&q(49,{methodName:t}),null)}}},iO=class extends hw{constructor(e){super(e,ap)}},At=p.createContext({}),J1=p.createContext("default"),ga=(e,t,s,i)=>{if(!e||e.componentFromFramework||t.isDestroyed())return;const o=e.newAgStackInstance();let r,a,l=!1;return o.then(c=>{if(l){t.destroyBean(c);return}r=c,a=r.getGui(),s.appendChild(a),Am(i,r)}),()=>{l=!0,r&&(a?.remove(),t.destroyBean(r),i&&Am(i,void 0))}},Am=(e,t)=>{if(e)if(e instanceof Function)e(t);else{const s=e;s.current=t}},ls=(...e)=>e.filter(s=>s!=null&&s!=="").join(" "),gs=class eb{constructor(...t){this.classesMap={};for(const s of t)this.classesMap[s]=!0}setClass(t,s){if(!!this.classesMap[t]==s)return this;const n=new eb;return n.classesMap={...this.classesMap},n.classesMap[t]=s,n}toString(){return Object.keys(this.classesMap).filter(s=>this.classesMap[s]).join(" ")}},Uo=e=>{const t=()=>typeof Symbol=="function"&&Symbol.for,s=()=>t()?Symbol.for("react.memo"):60115;return typeof e=="function"&&!(e.prototype&&e.prototype.isReactComponent)||typeof e=="object"&&e.$$typeof===s()},wh=p.version?.split(".")[0],tb=wh==="16"||wh==="17";function nO(){return wh==="19"}var Tl=!1;function oO(e){return Tl||setTimeout(()=>Tl=!1,0),Tl=!0,e()}var ea=(e,t)=>{!tb&&e&&!Tl?Bo.flushSync(t):t()},rO=e=>{tb?e():p.startTransition(e)};function aO(e,t,s){return p.useSyncExternalStore?p.useSyncExternalStore(e,t):s}function lc(e,t,s){if(t==null||e==null)return t;if(e===t||t.length===0&&e.length===0)return e;if(s||e.length===0&&t.length>0||e.length>0&&t.length===0)return t;const i=[],n=[],o=new Map,r=new Map;for(let a=0;a<t.length;a++){const l=t[a];r.set(l.instanceId,l)}for(let a=0;a<e.length;a++){const l=e[a];o.set(l.instanceId,l),r.has(l.instanceId)&&i.push(l)}for(let a=0;a<t.length;a++){const l=t[a],c=l.instanceId;o.has(c)||n.push(l)}return i.length===e.length&&n.length===0?e:i.length===0&&n.length===t.length?t:i.length===0?n:n.length===0?i:[...i,...n]}var sb=p.forwardRef((e,t)=>{const{registry:s,context:i}=p.useContext(At),n=p.useRef(null),o=p.useRef(null),r=p.useRef(null),a=p.useRef(null),l=p.useRef(null),c=p.useRef(),[d,u]=p.useState(),[h,f]=p.useState(),[m,v]=p.useState(),[C,w]=p.useState(()=>new gs),[b,x]=p.useState(()=>new gs("ag-hidden")),[y,S]=p.useState(()=>new gs("ag-hidden")),[F,R]=p.useState(()=>new gs("ag-invisible"));p.useImperativeHandle(t,()=>({refresh(){return!1}})),p.useLayoutEffect(()=>ga(d,i,o.current),[d]);const E=p.useCallback(V=>{if(n.current=V,!V||i.isDestroyed()){c.current=i.destroyBean(c.current);return}const B={setInnerRenderer:(O,A)=>{u(O),v(A)},setChildCount:O=>f(O),toggleCss:(O,A)=>w(W=>W.setClass(O,A)),setContractedDisplayed:O=>S(A=>A.setClass("ag-hidden",!O)),setExpandedDisplayed:O=>x(A=>A.setClass("ag-hidden",!O)),setCheckboxVisible:O=>R(A=>A.setClass("ag-invisible",!O)),setCheckboxSpacing:O=>R(A=>A.setClass("ag-group-checkbox-spacing",O))},K=s.createDynamicBean("groupCellRendererCtrl",!0);K&&(c.current=i.createBean(K),c.current.init(B,V,r.current,a.current,l.current,sb,e))},[]),D=p.useMemo(()=>`ag-cell-wrapper ${C.toString()}`,[C]),T=p.useMemo(()=>`ag-group-expanded ${b.toString()}`,[b]),P=p.useMemo(()=>`ag-group-contracted ${y.toString()}`,[y]),k=p.useMemo(()=>`ag-group-checkbox ${F.toString()}`,[F]),I=d?.componentFromFramework,H=I?d.componentClass:void 0,M=d==null&&m!=null,G=zo(m);return p.createElement("span",{className:D,ref:E,...e.colDef?{}:{role:c.current?.getCellAriaRole()}},p.createElement("span",{className:T,ref:a}),p.createElement("span",{className:P,ref:l}),p.createElement("span",{className:k,ref:r}),p.createElement("span",{className:"ag-group-value",ref:o},M?G:I?p.createElement(H,{...d.params}):null),p.createElement("span",{className:"ag-group-child-count"},h))}),Lm=sb,Qp=p.createContext({setMethods:()=>{}}),lO=e=>{const{initialProps:t,addUpdateCallback:s,CustomComponentClass:i,setMethods:n}=e,[{key:o,...r},a]=p.useState(t);return p.useEffect(()=>{s(l=>a(l))},[]),p.createElement(Qp.Provider,{value:{setMethods:n}},p.createElement(i,{key:o,...r}))},cO=p.memo(lO),dO=0;function Om(){return`agPortalKey_${++dO}`}var ib=class{constructor(e,t,s,i){this.portal=null,this.oldPortal=null,this.reactComponent=e,this.portalManager=t,this.componentType=s,this.suppressFallbackMethods=!!i,this.statelessComponent=this.isStateless(this.reactComponent),this.key=Om(),this.portalKey=Om(),this.instanceCreated=this.isStatelessComponent()?Le.resolve(!1):new Le(n=>{this.resolveInstanceCreated=n})}getGui(){return this.eParentElement}getRootElement(){return this.eParentElement.firstChild}destroy(){this.componentInstance&&typeof this.componentInstance.destroy=="function"&&this.componentInstance.destroy();const e=this.portal;e&&this.portalManager.destroyPortal(e)}createParentElement(e){const t=this.portalManager.getComponentWrappingElement(),s=document.createElement(t||"div");return s.classList.add("ag-react-container"),e.reactContainer=s,s}statelessComponentRendered(){return this.eParentElement.childElementCount>0||this.eParentElement.childNodes.length>0}getFrameworkComponentInstance(){return this.componentInstance}isStatelessComponent(){return this.statelessComponent}getReactComponentName(){return this.reactComponent.name}getMemoType(){return this.hasSymbol()?Symbol.for("react.memo"):60115}hasSymbol(){return typeof Symbol=="function"&&Symbol.for}isStateless(e){return typeof e=="function"&&!(e.prototype&&e.prototype.isReactComponent)||typeof e=="object"&&e.$$typeof===this.getMemoType()}hasMethod(e){const t=this.getFrameworkComponentInstance();return!!t&&t[e]!=null||this.fallbackMethodAvailable(e)}callMethod(e,t){const s=this.getFrameworkComponentInstance();if(this.isStatelessComponent())return this.fallbackMethod(e,t&&t[0]?t[0]:{});if(!s){setTimeout(()=>this.callMethod(e,t));return}const i=s[e];if(i)return i.apply(s,t);if(this.fallbackMethodAvailable(e))return this.fallbackMethod(e,t&&t[0]?t[0]:{})}addMethod(e,t){this[e]=t}init(e){return this.eParentElement=this.createParentElement(e),this.createOrUpdatePortal(e),new Le(t=>this.createReactComponent(t))}createOrUpdatePortal(e){this.isStatelessComponent()||(this.ref=t=>{this.componentInstance=t,this.resolveInstanceCreated?.(!0),this.resolveInstanceCreated=void 0},e.ref=this.ref),this.reactElement=this.createElement(this.reactComponent,{...e,key:this.key}),this.portal=Bo.createPortal(this.reactElement,this.eParentElement,this.portalKey)}createElement(e,t){return p.createElement(e,t)}createReactComponent(e){this.portalManager.mountReactPortal(this.portal,this,e)}rendered(){return this.isStatelessComponent()&&this.statelessComponentRendered()||!!(!this.isStatelessComponent()&&this.getFrameworkComponentInstance())}refreshComponent(e){this.oldPortal=this.portal,this.createOrUpdatePortal(e),this.portalManager.updateReactPortal(this.oldPortal,this.portal)}fallbackMethod(e,t){const s=this[`${e}Component`];if(!this.suppressFallbackMethods&&s)return s.bind(this)(t)}fallbackMethodAvailable(e){return this.suppressFallbackMethods?!1:!!this[`${e}Component`]}};function zc(e,t,s){for(const i of e){const n=t[i];n&&(s[i]=n)}}var ms=class extends ib{constructor(){super(...arguments),this.awaitUpdateCallback=new Le(e=>{this.resolveUpdateCallback=e}),this.wrapperComponent=cO}init(e){return this.sourceParams=e,super.init(this.getProps())}addMethod(){}getInstance(){return this.instanceCreated.then(()=>this.componentInstance)}getFrameworkComponentInstance(){return this}createElement(e,t){return super.createElement(this.wrapperComponent,{initialProps:t,CustomComponentClass:e,setMethods:s=>this.setMethods(s),addUpdateCallback:s=>{this.updateCallback=()=>(s(this.getProps()),new Le(i=>{setTimeout(()=>{i()})})),this.resolveUpdateCallback()}})}setMethods(e){this.providedMethods=e,zc(this.getOptionalMethods(),this.providedMethods,this)}getOptionalMethods(){return[]}getProps(){return{...this.sourceParams,key:this.key,ref:this.ref}}refreshProps(){return this.updateCallback?this.updateCallback():new Le(e=>this.awaitUpdateCallback.then(()=>{this.updateCallback().then(()=>e())}))}},uO=class extends ms{refresh(e){return this.sourceParams=e,this.refreshProps(),!0}},hO=class extends ms{refresh(e){this.sourceParams=e,this.refreshProps()}},pO=class extends ms{constructor(){super(...arguments),this.date=null,this.onDateChange=e=>this.updateDate(e)}getDate(){return this.date}setDate(e){this.date=e,this.refreshProps()}refresh(e){this.sourceParams=e,this.refreshProps()}getOptionalMethods(){return["afterGuiAttached","setInputPlaceholder","setInputAriaLabel","setDisabled"]}updateDate(e){this.setDate(e),this.sourceParams.onDateChanged()}getProps(){const e=super.getProps();return e.date=this.date,e.onDateChange=this.onDateChange,delete e.onDateChanged,e}},gO=class extends ms{constructor(){super(...arguments),this.label="",this.icon=null,this.shake=!1}setIcon(e,t){this.icon=e,this.shake=t,this.refreshProps()}setLabel(e){this.label=e,this.refreshProps()}getProps(){const e=super.getProps(),{label:t,icon:s,shake:i}=this;return e.label=t,e.icon=s,e.shake=i,e}},fO=class extends ms{constructor(){super(...arguments),this.model=null,this.onModelChange=e=>this.updateModel(e),this.onUiChange=()=>this.sourceParams.filterModifiedCallback(),this.expectingNewMethods=!0,this.hasBeenActive=!1,this.awaitSetMethodsCallback=new Le(e=>{this.resolveSetMethodsCallback=e})}isFilterActive(){return this.model!=null}doesFilterPass(e){return this.providedMethods.doesFilterPass(e)}getModel(){return this.model}setModel(e){return this.expectingNewMethods=!0,this.model=e,this.hasBeenActive||(this.hasBeenActive=this.isFilterActive()),this.refreshProps()}refresh(e){return this.sourceParams=e,this.refreshProps(),!0}afterGuiAttached(e){const t=this.providedMethods;t?t.afterGuiAttached?.(e):this.awaitSetMethodsCallback.then(()=>this.providedMethods?.afterGuiAttached?.(e))}getOptionalMethods(){return["afterGuiDetached","onNewRowsLoaded","getModelAsString","onAnyFilterChanged"]}setMethods(e){this.expectingNewMethods===!1&&this.hasBeenActive&&this.providedMethods?.doesFilterPass!==e?.doesFilterPass&&setTimeout(()=>{this.sourceParams.filterChangedCallback()}),this.expectingNewMethods=!1,super.setMethods(e),this.resolveSetMethodsCallback(),this.resolveFilterPassCallback?.(),this.resolveFilterPassCallback=void 0}updateModel(e){this.resolveFilterPassCallback?.();const t=new Le(s=>{this.resolveFilterPassCallback=s});this.setModel(e).then(()=>{t.then(()=>{this.sourceParams.filterChangedCallback()})})}getProps(){const e=super.getProps();return e.model=this.model,e.onModelChange=this.onModelChange,e.onUiChange=this.onUiChange,delete e.filterChangedCallback,e}},mO=class extends ms{constructor(){super(...arguments),this.awaitSetMethodsCallback=new Le(e=>{this.resolveSetMethodsCallback=e})}refresh(e){return this.sourceParams=e,this.refreshProps(),!0}afterGuiAttached(e){const t=this.providedMethods;t?t.afterGuiAttached?.(e):this.awaitSetMethodsCallback.then(()=>this.providedMethods?.afterGuiAttached?.(e))}getOptionalMethods(){return["afterGuiDetached","onNewRowsLoaded","onAnyFilterChanged"]}setMethods(e){super.setMethods(e),this.resolveSetMethodsCallback()}};function nb(e,t){e.parentFilterInstance(s=>{(s.setModel(t)||Le.resolve()).then(()=>{e.filterParams.filterChangedCallback()})})}var vO=class{constructor(e,t){this.floatingFilterParams=e,this.refreshProps=t,this.model=null,this.onModelChange=s=>this.updateModel(s)}getProps(){return{...this.floatingFilterParams,model:this.model,onModelChange:this.onModelChange}}onParentModelChanged(e){this.model=e,this.refreshProps()}refresh(e){this.floatingFilterParams=e,this.refreshProps()}setMethods(e){zc(this.getOptionalMethods(),e,this)}getOptionalMethods(){return["afterGuiAttached"]}updateModel(e){this.model=e,this.refreshProps(),nb(this.floatingFilterParams,e)}},CO=class extends ms{constructor(){super(...arguments),this.model=null,this.onModelChange=e=>this.updateModel(e)}onParentModelChanged(e){this.model=e,this.refreshProps()}refresh(e){this.sourceParams=e,this.refreshProps()}getOptionalMethods(){return["afterGuiAttached"]}updateModel(e){this.model=e,this.refreshProps(),nb(this.sourceParams,e)}getProps(){const e=super.getProps();return e.model=this.model,e.onModelChange=this.onModelChange,e}},wO=class extends ms{refresh(e){this.sourceParams=e,this.refreshProps()}getOptionalMethods(){return["afterGuiAttached"]}},bO=class extends ms{refresh(e){return this.sourceParams=e,this.refreshProps(),!0}},xO=class extends ms{constructor(){super(...arguments),this.active=!1,this.expanded=!1,this.onActiveChange=e=>this.updateActive(e)}setActive(e){this.awaitSetActive(e)}setExpanded(e){this.expanded=e,this.refreshProps()}getOptionalMethods(){return["select","configureDefaults"]}awaitSetActive(e){return this.active=e,this.refreshProps()}updateActive(e){const t=this.awaitSetActive(e);e&&t.then(()=>this.sourceParams.onItemActivated())}getProps(){const e=super.getProps();return e.active=this.active,e.expanded=this.expanded,e.onActiveChange=this.onActiveChange,delete e.onItemActivated,e}},yO=class extends ms{refresh(e){return this.sourceParams=e,this.refreshProps(),!0}},SO=class extends ms{constructor(){super(...arguments),this.onStateChange=e=>this.updateState(e)}refresh(e){return this.sourceParams=e,this.refreshProps(),!0}getState(){return this.state}updateState(e){this.state=e,this.refreshProps(),this.sourceParams.onStateUpdated()}getProps(){const e=super.getProps();return e.state=this.state,e.onStateChange=this.onStateChange,e}};function Jp(){q(231)}var RO=1e3,FO=class{constructor(e,t,s){this.destroyed=!1,this.portals=[],this.hasPendingPortalUpdate=!1,this.wrappingElement=t||"div",this.refresher=e,this.maxComponentCreationTimeMs=s||RO}getPortals(){return this.portals}destroy(){this.destroyed=!0}destroyPortal(e){this.portals=this.portals.filter(t=>t!==e),this.batchUpdate()}getComponentWrappingElement(){return this.wrappingElement}mountReactPortal(e,t,s){this.portals=[...this.portals,e],this.waitForInstance(t,s),this.batchUpdate()}updateReactPortal(e,t){this.portals[this.portals.indexOf(e)]=t,this.batchUpdate()}batchUpdate(){this.hasPendingPortalUpdate||(setTimeout(()=>{this.destroyed||(this.refresher(),this.hasPendingPortalUpdate=!1)}),this.hasPendingPortalUpdate=!0)}waitForInstance(e,t,s=Date.now()){if(this.destroyed){t(null);return}if(e.rendered())t(e);else{if(Date.now()-s>=this.maxComponentCreationTimeMs&&!this.hasPendingPortalUpdate){ea(!0,()=>this.refresher()),e.rendered()&&t(e);return}window.setTimeout(()=>{this.waitForInstance(e,t,s)})}}},EO=p.createContext([]),DO=p.createContext(void 0),PO=({ctrl:e})=>{const t=e.isAlive(),{context:s}=p.useContext(At),[i,n]=p.useState(),[o,r]=p.useState(),a=p.useRef(),l=p.useRef(null),c=p.useRef(null),d=p.useRef(null),u=p.useRef(),h=p.useRef();t&&!h.current&&(h.current=new aa(()=>l.current));const f=p.useCallback(w=>{if(l.current=w,!w||!e.isAlive()||s.isDestroyed()){a.current=s.destroyBean(a.current);return}a.current=s.createBean(new _o);const b=()=>{const y=e.getSelectAllGui();y&&(c.current?.insertAdjacentElement("afterend",y),a.current.addDestroyFunc(()=>y.remove()))},x={setWidth:y=>{l.current&&(l.current.style.width=y)},toggleCss:(y,S)=>h.current.toggleCss(y,S),setUserStyles:y=>r(y),setAriaSort:y=>{l.current&&(y?tR(l.current,y):sR(l.current))},setUserCompDetails:y=>n(y),getUserCompInstance:()=>u.current||void 0,refreshSelectAllGui:b,removeSelectAllGui:()=>e.getSelectAllGui()?.remove()};e.setComp(x,w,c.current,d.current,a.current),b()},[]);p.useLayoutEffect(()=>ga(i,s,d.current,u),[i]),p.useEffect(()=>{e.setDragSource(l.current)},[i]);const m=p.useMemo(()=>!!(i?.componentFromFramework&&Uo(i.componentClass)),[i]),v=i?.componentFromFramework,C=i?.componentClass;return p.createElement("div",{ref:f,style:o,className:"ag-header-cell",role:"columnheader"},p.createElement("div",{ref:c,className:"ag-header-cell-resize",role:"presentation"}),p.createElement("div",{ref:d,className:"ag-header-cell-comp-wrapper",role:"presentation"},v?m?p.createElement(C,{...i.params}):p.createElement(C,{...i.params,ref:u}):null))},TO=p.memo(PO),kO=class{constructor(e,t){this.floatingFilterParams=e,this.refreshProps=t}getProps(){return this.floatingFilterParams}refresh(e){this.floatingFilterParams=e,this.refreshProps()}setMethods(e){zc(this.getOptionalMethods(),e,this)}getOptionalMethods(){return["afterGuiAttached"]}},IO=({ctrl:e})=>{const{context:t,gos:s}=p.useContext(At),[i,n]=p.useState(),[o,r]=p.useState(()=>new gs("ag-header-cell","ag-floating-filter")),[a,l]=p.useState(()=>new gs),[c,d]=p.useState(()=>new gs("ag-floating-filter-button","ag-hidden")),[u,h]=p.useState("false"),[f,m]=p.useState(),[,v]=p.useState(1),C=p.useRef(),w=p.useRef(null),b=p.useRef(null),x=p.useRef(null),y=p.useRef(null),S=p.useRef(),F=p.useRef(),R=O=>{O!=null&&S.current?.(O)},E=p.useCallback(O=>{if(w.current=O,!O||!e.isAlive()||t.isDestroyed()){C.current=t.destroyBean(C.current);return}C.current=t.createBean(new _o),F.current=new Le(W=>{S.current=W});const A={toggleCss:(W,Y)=>r(ie=>ie.setClass(W,Y)),setUserStyles:W=>n(W),addOrRemoveBodyCssClass:(W,Y)=>l(ie=>ie.setClass(W,Y)),setButtonWrapperDisplayed:W=>{d(Y=>Y.setClass("ag-hidden",!W)),h(W?"false":"true")},setWidth:W=>{w.current&&(w.current.style.width=W)},setCompDetails:W=>m(W),getFloatingFilterComp:()=>F.current?F.current:null,setMenuIcon:W=>y.current?.appendChild(W)};e.setComp(A,O,y.current,b.current,C.current)},[]);p.useLayoutEffect(()=>ga(f,t,b.current,R),[f]);const D=p.useMemo(()=>o.toString(),[o]),T=p.useMemo(()=>a.toString(),[a]),P=p.useMemo(()=>c.toString(),[c]),k=p.useMemo(()=>!!(f&&f.componentFromFramework&&Uo(f.componentClass)),[f]),I=p.useMemo(()=>s.get("reactiveCustomComponents"),[]),H=p.useMemo(()=>s.get("enableFilterHandlers"),[]),[M,G]=p.useState();p.useEffect(()=>{if(f?.componentFromFramework)if(I){const O=H?kO:vO,A=new O(f.params,()=>v(W=>W+1));R(A),G(A)}else Jp()},[f]);const V=M?.getProps(),B=f?.componentFromFramework,K=f?.componentClass;return p.createElement("div",{ref:E,style:i,className:D,role:"gridcell"},p.createElement("div",{ref:b,className:T,role:"presentation"},B?I?V&&p.createElement(Qp.Provider,{value:{setMethods:O=>M.setMethods(O)}},p.createElement(K,{...V})):p.createElement(K,{...f.params,ref:k?()=>{}:R}):null),p.createElement("div",{ref:x,"aria-hidden":u,className:P,role:"presentation"},p.createElement("button",{ref:y,type:"button",className:"ag-button ag-floating-filter-button-button",tabIndex:-1})))},MO=p.memo(IO),AO=({ctrl:e})=>{const{context:t}=p.useContext(At),[s,i]=p.useState(),[n,o]=p.useState(()=>new gs),[r,a]=p.useState(()=>new gs),[l,c]=p.useState("false"),[d,u]=p.useState(),[h,f]=p.useState(),m=p.useRef(),v=p.useRef(null),C=p.useRef(null),w=p.useRef(null),b=p.useRef(),x=p.useCallback(D=>{if(v.current=D,!D||!e.isAlive()||t.isDestroyed()){m.current=t.destroyBean(m.current);return}m.current=t.createBean(new _o);const T={setWidth:P=>{v.current&&(v.current.style.width=P)},toggleCss:(P,k)=>o(I=>I.setClass(P,k)),setUserStyles:P=>i(P),setHeaderWrapperHidden:P=>{const k=w.current;k&&(P?k.style.setProperty("display","none"):k.style.removeProperty("display"))},setHeaderWrapperMaxHeight:P=>{const k=w.current;k&&(P!=null?k.style.setProperty("max-height",`${P}px`):k.style.removeProperty("max-height"),k.classList.toggle("ag-header-cell-comp-wrapper-limited-height",P!=null))},setUserCompDetails:P=>f(P),setResizableDisplayed:P=>{a(k=>k.setClass("ag-hidden",!P)),c(P?"false":"true")},setAriaExpanded:P=>u(P),getUserCompInstance:()=>b.current||void 0};e.setComp(T,D,C.current,w.current,m.current)},[]);p.useLayoutEffect(()=>ga(h,t,w.current),[h]),p.useEffect(()=>{v.current&&e.setDragSource(v.current)},[h]);const y=p.useMemo(()=>!!(h?.componentFromFramework&&Uo(h.componentClass)),[h]),S=p.useMemo(()=>"ag-header-group-cell "+n.toString(),[n]),F=p.useMemo(()=>"ag-header-cell-resize "+r.toString(),[r]),R=h?.componentFromFramework,E=h?.componentClass;return p.createElement("div",{ref:x,style:s,className:S,role:"columnheader","aria-expanded":d},p.createElement("div",{ref:w,className:"ag-header-cell-comp-wrapper",role:"presentation"},R?y?p.createElement(E,{...h.params}):p.createElement(E,{...h.params,ref:b}):null),p.createElement("div",{ref:C,"aria-hidden":l,className:F}))},LO=p.memo(AO),OO=({ctrl:e})=>{const{gos:t,context:s}=p.useContext(At),{topOffset:i,rowHeight:n}=p.useMemo(()=>e.getTopAndHeight(),[]),o=p.useMemo(()=>t.get("tabIndex"),[]),[r,a]=p.useState(()=>e.getAriaRowIndex()),l=e.headerRowClass,[c,d]=p.useState(()=>n+"px"),[u,h]=p.useState(()=>i+"px"),f=p.useRef(null),[m,v]=p.useState(()=>e.getUpdatedHeaderCtrls()),C=p.useRef(),w=p.useRef(null),b=p.useCallback(S=>{if(w.current=S,!S||!e.isAlive()||s.isDestroyed()){C.current=s.destroyBean(C.current);return}C.current=s.createBean(new _o);const F={setHeight:R=>d(R),setTop:R=>h(R),setHeaderCtrls:(R,E,D)=>{const T=f.current,P=lc(T,R,E);P!==T&&(f.current=P,ea(D,()=>v(P)))},setWidth:R=>{w.current&&(w.current.style.width=R)},setRowIndex:R=>{a(R)}};e.setComp(F,C.current,!1)},[]),x=p.useMemo(()=>({height:c,top:u}),[c,u]),y=p.useCallback(S=>{switch(e.type){case"group":return p.createElement(LO,{ctrl:S,key:S.instanceId});case"filter":return p.createElement(MO,{ctrl:S,key:S.instanceId});default:return p.createElement(TO,{ctrl:S,key:S.instanceId})}},[]);return p.createElement("div",{ref:b,className:l,role:"row",style:x,tabIndex:o,"aria-rowindex":r},m.map(y))},NO=p.memo(OO),HO=({pinned:e})=>{const[t,s]=p.useState(!0),[i,n]=p.useState([]),{context:o}=p.useContext(At),r=p.useRef(null),a=p.useRef(null),l=p.useRef(),c=e==="left",d=e==="right",u=!c&&!d,h=p.useCallback(v=>{if(r.current=v,!v||o.isDestroyed()){l.current=o.destroyBean(l.current);return}l.current=o.createBean(new fE(e));const C={setDisplayed:s,setCtrls:w=>n(w),setCenterWidth:w=>{a.current&&(a.current.style.width=w)},setViewportScrollLeft:w=>{r.current&&(r.current.scrollLeft=w)},setPinnedContainerWidth:w=>{r.current&&(r.current.style.width=w,r.current.style.minWidth=w,r.current.style.maxWidth=w)}};l.current.setComp(C,r.current)},[]),f=t?"":"ag-hidden",m=()=>i.map(v=>p.createElement(NO,{ctrl:v,key:v.instanceId}));return c?p.createElement("div",{ref:h,className:"ag-pinned-left-header "+f,"aria-hidden":!t,role:"rowgroup"},m()):d?p.createElement("div",{ref:h,className:"ag-pinned-right-header "+f,"aria-hidden":!t,role:"rowgroup"},m()):u?p.createElement("div",{ref:h,className:"ag-header-viewport "+f,role:"rowgroup",tabIndex:-1},p.createElement("div",{ref:a,className:"ag-header-container",role:"presentation"},m())):null},pu=p.memo(HO),BO=()=>{const[e,t]=p.useState(()=>new gs),[s,i]=p.useState(),{context:n}=p.useContext(At),o=p.useRef(null),r=p.useRef(),a=p.useCallback(d=>{if(o.current=d,!d||n.isDestroyed()){r.current=n.destroyBean(r.current);return}r.current=n.createBean(new aE);const u={toggleCss:(h,f)=>t(m=>m.setClass(h,f)),setHeightAndMinHeight:h=>i(h)};r.current.setComp(u,d,d)},[]),l=p.useMemo(()=>"ag-header "+e.toString(),[e]),c=p.useMemo(()=>({height:s,minHeight:s}),[s]);return p.createElement("div",{ref:a,className:l,style:c,role:"presentation"},p.createElement(pu,{pinned:"left"}),p.createElement(pu,{pinned:null}),p.createElement(pu,{pinned:"right"}))},GO=p.memo(BO),VO=(e,t)=>{p.useEffect(()=>{const s=t.current;if(s){const i=s.parentElement;if(i){const n=document.createComment(e);return i.insertBefore(n,s),()=>{n.remove()}}}},[e])},sn=VO,zO=class{constructor(e,t){this.cellEditorParams=e,this.refreshProps=t,this.instanceCreated=new Le(s=>{this.resolveInstanceCreated=s}),this.onValueChange=s=>this.updateValue(s),this.value=e.value}getProps(){return{...this.cellEditorParams,initialValue:this.cellEditorParams.value,value:this.value,onValueChange:this.onValueChange}}getValue(){return this.value}refresh(e){this.cellEditorParams=e,this.refreshProps()}setMethods(e){zc(this.getOptionalMethods(),e,this)}getInstance(){return this.instanceCreated.then(()=>this.componentInstance)}setRef(e){this.componentInstance=e,this.resolveInstanceCreated?.(),this.resolveInstanceCreated=void 0}getOptionalMethods(){return["isCancelBeforeStart","isCancelAfterEnd","focusIn","focusOut","afterGuiAttached","getValidationErrors","getValidationElement"]}updateValue(e){this.value=e,this.refreshProps()}},jO=e=>{const t=p.useRef(e),s=p.useRef(),i=p.useRef(!1),n=p.useRef(!1),[,o]=p.useState(0);i.current&&(n.current=!0),p.useEffect(()=>(i.current||(s.current=t.current(),i.current=!0),o(r=>r+1),()=>{n.current&&s.current?.()}),[])},WO=e=>{const[t,s]=p.useState(),i=p.useContext(At),{context:n,popupSvc:o,gos:r,editSvc:a}=i,{editDetails:l,cellCtrl:c,eParentCell:d}=e;return jO(()=>{const{compDetails:u}=l,h=r.get("stopEditingWhenCellsLoseFocus");let f,m;if(!n.isDestroyed()){m=n.createBean(a.createPopupEditorWrapper(u.params));const v=m.getGui();if(e.jsChildComp){const S=e.jsChildComp.getGui();S&&v.appendChild(S)}const{column:C,rowNode:w}=c,b={column:C,rowNode:w,type:"popupCellEditor",eventSource:d,ePopup:v,position:l.popupPosition,keepWithinBounds:!0},x=o?.positionPopupByComponent.bind(o,b),y=o?.addPopup({modal:h,eChild:v,closeOnEsc:!0,closedCallback:S=>{c.onPopupEditorClosed(S)},anchorToElement:d,positionCallback:x,ariaOwns:d});f=y?y.hideFunc:void 0,s(m),e.jsChildComp?.afterGuiAttached?.()}return()=>{f?.(),n.destroyBean(m)}}),p.useLayoutEffect(()=>()=>{c.isCellFocused()&&t?.getGui().contains(ot(i))&&d.focus({preventScroll:!0})},[t]),t&&e.wrappedContent?Bo.createPortal(e.wrappedContent,t.getGui()):null},Nm=p.memo(WO),_O=(e,t,s)=>{const{compProxy:i}=e;s(i);const n=i.getProps(),o=Uo(t);return p.createElement(Qp.Provider,{value:{setMethods:r=>i.setMethods(r)}},o?p.createElement(t,{...n}):p.createElement(t,{...n,ref:r=>i.setRef(r)}))},Hm=(e,t,s)=>e.compProxy?_O(e,t,s):p.createElement(t,{...e.compDetails.params,ref:s}),UO=(e,t,s,i,n)=>{const o=e.compDetails,r=o.componentClass,a=o.componentFromFramework&&!e.popup,l=o.componentFromFramework&&e.popup,c=!o.componentFromFramework&&e.popup;return a?Hm(e,r,t):l?p.createElement(Nm,{editDetails:e,cellCtrl:i,eParentCell:s,wrappedContent:Hm(e,r,t)}):c&&n?p.createElement(Nm,{editDetails:e,cellCtrl:i,eParentCell:s,jsChildComp:n}):null},$O=(e,t,s,i,n,o,r=!1)=>{const{context:a}=p.useContext(At),l=p.useCallback(()=>{const c=n.current;if(!c)return;const d=c.getGui();d&&d.parentElement&&d.remove(),a.destroyBean(c),n.current=void 0},[]);p.useEffect(()=>{const c=e!=null&&!r,d=e?.compDetails&&!e.compDetails.componentFromFramework,u=t&&s==null;if(!(c&&d&&!u)){l();return}const f=e.compDetails;if(n.current){const v=n.current,w=v.refresh!=null&&e.force==!1?v.refresh(f.params):!1;if(w===!0||w===void 0)return;l()}f.newAgStackInstance().then(v=>{if(!v)return;const C=v.getGui();if(!C)return;(t?s:o.current).appendChild(C),n.current=v})},[e,t,i,r]),p.useEffect(()=>l,[])},ob=$O,qO=({cellCtrl:e,parent:t})=>{const s=p.useRef(),i=p.useMemo(()=>{const{loadingComp:n}=e.getDeferLoadingCellRenderer();return n?{value:void 0,compDetails:n,force:!1}:void 0},[e]);if(ob(i,!1,void 0,1,s,t),i?.compDetails?.componentFromFramework){const n=i.compDetails.componentClass;return p.createElement(n,{...i.compDetails.params})}return p.createElement(p.Fragment,null)},KO=({cellCtrl:e,printLayout:t,editingCell:s})=>{const i=p.useContext(At),{context:n}=i,{column:{colIdSanitised:o},instanceId:r}=e,a=p.useRef(),[l,c]=p.useState(()=>e.isCellRenderer()?void 0:{compDetails:void 0,value:e.getValueToDisplay(),force:!1}),[d,u]=p.useState(),[h,f]=p.useState(1),[m,v]=p.useState(),[C,w]=p.useState(!1),[b,x]=p.useState(!1),[y,S]=p.useState(!1),F=p.useRef(null),[R,E]=p.useState(),D=p.useMemo(()=>e.isForceWrapper(),[e]),T=p.useMemo(()=>e.getCellAriaRole(),[e]),P=p.useRef(null),k=p.useRef(null),I=p.useRef(null),H=p.useRef(),M=p.useRef(),G=p.useRef(),V=p.useRef([]),B=p.useRef(),K=p.useRef(),[O,A]=p.useState(0),W=p.useCallback(oe=>{K.current=oe,A(xe=>xe+1)},[]),Y=l!=null&&(C||y||b)&&(d==null||!!d.popup),ie=D||Y,be=p.useMemo(()=>e.getCellValueClass(),[e]),Z=p.useCallback(oe=>{if(M.current=oe,oe){const xe=oe.isCancelBeforeStart&&oe.isCancelBeforeStart();setTimeout(()=>{xe?(e.stopEditing(!0),e.focusCell(!0)):(e.cellEditorAttached(),e.enableEditorTooltipFeature(oe))})}},[e]),me=p.useRef();me.current||(me.current=new aa(()=>P.current));const Ie=!!d&&!d.popup;ob(l,ie,K.current,O,H,P,Ie);const ne=p.useRef();p.useLayoutEffect(()=>{const oe=ne.current,xe=l;if(ne.current=l,oe==null||oe.compDetails==null||xe==null||xe.compDetails==null)return;B.current?.refreshVisibility();const Ae=oe.compDetails,Pe=xe.compDetails;if(Ae.componentClass!=Pe.componentClass||I.current?.refresh==null)return;I.current.refresh(Pe.params)!=!0&&f(Ve=>Ve+1)},[l]),p.useLayoutEffect(()=>{if(!(d&&!d.compDetails.componentFromFramework)||n.isDestroyed())return;const xe=d.compDetails,Ae=d.popup===!0,Pe=xe.newAgStackInstance();return Pe.then(Ce=>{if(!Ce)return;const Ve=Ce.getGui();Z(Ce),Ae||((D?G:P).current?.appendChild(Ve),Ce.afterGuiAttached?.()),E(Ce)}),()=>{Pe.then(Ce=>{const Ve=Ce.getGui();e.disableEditorTooltipFeature(),n.destroyBean(Ce),Z(void 0),E(void 0),Ve?.remove()})}},[d]);const ce=p.useCallback(oe=>{if(G.current=oe,!oe||n.isDestroyed()||!e.isAlive()){const Pe=V.current;V.current=[];for(const Ce of Pe)Ce();return}let xe;const Ae=Pe=>{Pe&&(oe.insertAdjacentElement("afterbegin",Pe.getGui()),V.current.push(()=>{ni(Pe.getGui()),n.destroyBean(Pe),B.current===xe&&(B.current=void 0)}))};C&&Ae(e.createSelectionCheckbox()),y&&Ae(e.createDndSource()),b&&(xe=e.createRowDragComp(),B.current=xe,xe&&(Ae(xe),xe.refreshVisibility()))},[e,n,y,b,C]),L=p.useCallback(()=>{const oe=!e.isCellSpanning()||k.current,xe=P.current;if(!xe||!oe||!e||!e.isAlive()||n.isDestroyed()){a.current=n.destroyBean(a.current);return}a.current=n.createBean(new _o);const Ae={toggleCss:(Ce,Ve)=>me.current.toggleCss(Ce,Ve),setUserStyles:Ce=>v(Ce),getFocusableElement:()=>P.current,setIncludeSelection:Ce=>w(Ce),setIncludeRowDrag:Ce=>x(Ce),setIncludeDndSource:Ce=>S(Ce),setRowResizerElement:Ce=>{F.current&&ni(F.current),F.current=Ce,Ce&&P.current&&P.current.appendChild(Ce)},getCellEditor:()=>M.current??null,getCellRenderer:()=>I.current??H.current,getParentOfValue:()=>K.current??G.current??P.current,setRenderDetails:(Ce,Ve,je)=>{const Qe=()=>{c(Ze=>Ze?.compDetails!==Ce||Ze?.value!==Ve||Ze?.force!==je?{value:Ve,compDetails:Ce,force:je}:Ze)};if(Ce?.params?.deferRender&&!e.rowNode.group){const{loadingComp:Ze,onReady:yt}=e.getDeferLoadingCellRenderer();if(Ze){c({value:void 0,compDetails:Ze,force:!1}),yt.then(()=>rO(Qe));return}}Qe()},setEditDetails:(Ce,Ve,je,Qe)=>{if(Ce){let Ze;Ce.componentFromFramework&&(Qe?Ze=new zO(Ce.params,()=>f(yt=>yt+1)):Jp()),u({compDetails:Ce,popup:Ve,popupPosition:je,compProxy:Ze}),Ve||c(void 0)}else e.hasBrowserFocus()&&Ae.getFocusableElement().focus({preventScroll:!0}),M.current=void 0,u(void 0)},refreshEditStyles:(Ce,Ve)=>{if(!P.current)return;const{current:je}=me;je.toggleCss("ag-cell-value",!ie),je.toggleCss("ag-cell-inline-editing",!!Ce&&!Ve),je.toggleCss("ag-cell-popup-editing",!!Ce&&!!Ve),je.toggleCss("ag-cell-not-inline-editing",!Ce||!!Ve)}},Pe=G.current||void 0;e.setComp(Ae,xe,k.current??void 0,Pe,t,s,a.current)},[]),ee=p.useCallback(oe=>{P.current=oe,L()},[]),ye=p.useCallback(oe=>{k.current=oe,L()},[]),z=p.useMemo(()=>!!(l?.compDetails?.componentFromFramework&&Uo(l.compDetails.componentClass)),[l]);p.useLayoutEffect(()=>{if(!P.current)return;const{current:oe}=me;oe.toggleCss("ag-cell-value",!ie),oe.toggleCss("ag-cell-inline-editing",!!d&&!d.popup),oe.toggleCss("ag-cell-popup-editing",!!d&&!!d.popup),oe.toggleCss("ag-cell-not-inline-editing",!d||!!d.popup)});const le=()=>{const{compDetails:oe,value:xe}=l;if(!oe)return xe?.toString?.()??xe;if(oe.componentFromFramework){const Ae=oe.componentClass;return p.createElement(p.Suspense,{fallback:p.createElement(qO,{cellCtrl:e,parent:P})},z?p.createElement(Ae,{...oe.params,key:h}):p.createElement(Ae,{...oe.params,key:h,ref:I}))}},ve=()=>{const oe=()=>l==null?null:ie?p.createElement("span",{role:"presentation",id:`cell-${r}`,className:be,ref:W},le()):le(),xe=Ae=>UO(Ae,Z,P.current,e,R);return d!=null?d.popup?p.createElement(p.Fragment,null,oe(),xe(d)):xe(d):oe()},Ee=()=>p.createElement("div",{ref:ee,style:m,role:T,"col-id":o},ie?p.createElement("div",{className:"ag-cell-wrapper",role:"presentation",ref:ce},ve()):ve());return e.isCellSpanning()?p.createElement("div",{ref:ye,className:"ag-spanned-cell-wrapper",role:"presentation"},Ee()):Ee()},YO=p.memo(KO),ZO=({rowCtrl:e,containerType:t})=>{const{context:s,gos:i,editSvc:n}=p.useContext(At),o=p.useContext(J1)==="default",r=p.useRef(),a=p.useRef(e.getDomOrder()),l=e.isFullWidth(),c=e.rowNode.displayed,[d,u]=p.useState(()=>c?e.rowNode.getRowIndexString():null),[h,f]=p.useState(()=>e.rowId),[m,v]=p.useState(()=>e.businessKey),[C,w]=p.useState(()=>e.rowStyles),b=p.useRef(null),[x,y]=p.useState(()=>null),[S,F]=p.useState(),[R,E]=p.useState(()=>c?e.getInitialRowTop(t):void 0),[D,T]=p.useState(()=>c?e.getInitialTransform(t):void 0),P=p.useRef(null),k=p.useRef(),I=p.useRef(),H=p.useRef(!1),[M,G]=p.useState(0);p.useEffect(()=>{if(H.current||!S||M>10)return;const ce=P.current?.firstChild;ce?(e.setupDetailRowAutoHeight(ce),H.current=!0):G(L=>L+1)},[S,M]);const V=p.useRef();V.current||(V.current=new aa(()=>P.current));const B=p.useRef(()=>{}),K=p.useCallback(ce=>(B.current=ce,()=>{B.current=()=>{}}),[]),O=aO(K,()=>b.current,[]),A=o?O:x,W=p.useCallback(ce=>{if(P.current=ce,r.current=ce?s.createBean(new _o):s.destroyBean(r.current),!ce){e.unsetComp(t);return}if(!e.isAlive()||s.isDestroyed())return;const L={setTop:E,setTransform:T,toggleCss:(ee,ye)=>V.current.toggleCss(ee,ye),setDomOrder:ee=>a.current=ee,setRowIndex:u,setRowId:f,setRowBusinessKey:v,setUserStyles:w,setCellCtrls:(ee,ye)=>{const z=b.current,le=lc(z,ee,a.current);le!==z&&(b.current=le,o?B.current():ea(ye,()=>y(le)))},showFullWidth:ee=>{I.current=ee.params,F(ee)},getFullWidthCellRenderer:()=>k.current,getFullWidthCellRendererParams:()=>I.current,refreshFullWidth:ee=>{const ye=ee();return I.current=ye,me.current?(F(z=>({...z,params:ye})),!0):!k.current||!k.current.refresh?!1:k.current.refresh(ye)}};e.setComp(L,ce,t,r.current)},[]);p.useLayoutEffect(()=>ga(S,s,P.current,k),[S]);const Y=p.useMemo(()=>{const ce={top:R,transform:D};return Object.assign(ce,C),ce},[R,D,C]),ie=l&&S?.componentFromFramework,be=!l&&A!=null,Z=p.useMemo(()=>!!(S?.componentFromFramework&&Uo(S.componentClass)),[S]),me=p.useRef(!1);p.useEffect(()=>{me.current=Z&&!!S&&!!i.get("reactiveCustomComponents")},[Z,S]);const Ie=()=>A?.map(ce=>p.createElement(YO,{cellCtrl:ce,editingCell:n?.isEditing(ce,{withOpenEditor:!0})??!1,printLayout:e.printLayout,key:ce.instanceId})),ne=()=>{const ce=S.componentClass;return Z?p.createElement(ce,{...S.params}):p.createElement(ce,{...S.params,ref:k})};return p.createElement("div",{ref:W,role:"row",style:Y,"row-index":d,"row-id":h,"row-business-key":m},be?Ie():ie?ne():null)},Bm=p.memo(ZO),XO=({name:e})=>{const{context:t,gos:s}=p.useContext(At),i=p.useMemo(()=>ua(e),[e]),n=p.useRef(null),o=p.useRef(null),r=p.useRef(null),a=p.useRef([]),l=p.useRef([]),[c,d]=p.useState(()=>[]),u=!!s.get("enableCellSpan")&&!!i.getSpannedRowCtrls,h=p.useRef([]),f=p.useRef([]),[m,v]=p.useState(()=>[]),C=p.useRef(!1),w=p.useRef(),b=p.useMemo(()=>ls("ag-viewport",lw(e)),[e]),x=p.useMemo(()=>ls(cw(e)),[e]),y=p.useMemo(()=>ls("ag-spanning-container",kE(e)),[e]),S=i.type==="center"||u,F=S?n:o;sn(" AG Row Container "+e+" ",F);const R=p.useCallback(()=>{const M=!S||n.current!=null,G=o.current!=null,V=!u||r.current!=null;return M&&G&&V},[]),E=p.useCallback(()=>n.current==null&&o.current==null&&r.current==null,[]),D=p.useCallback(()=>{if(E()&&(w.current=t.destroyBean(w.current)),!t.isDestroyed()&&R()){const M=B=>{const K=lc(l.current,a.current,C.current);K!==l.current&&(l.current=K,ea(B,()=>d(K)))},G=B=>{const K=lc(f.current,h.current,C.current);K!==f.current&&(f.current=K,ea(B,()=>v(K)))},V={setHorizontalScroll:B=>{n.current&&(n.current.scrollLeft=B)},setViewportHeight:B=>{n.current&&(n.current.style.height=B)},setRowCtrls:({rowCtrls:B,useFlushSync:K})=>{const O=!!K&&a.current.length>0&&B.length>0;a.current=B,M(O)},setSpannedRowCtrls:(B,K)=>{const O=!!K&&h.current.length>0&&B.length>0;h.current=B,G(O)},setDomOrder:B=>{C.current!=B&&(C.current=B,M(!1))},setContainerWidth:B=>{o.current&&(o.current.style.width=B)},setOffsetTop:B=>{o.current&&(o.current.style.transform=`translateY(${B})`)}};w.current=t.createBean(new VE(e)),w.current.setComp(V,o.current,r.current??void 0,n.current)}},[R,E]),T=p.useCallback(M=>{o.current=M,D()},[D]),P=p.useCallback(M=>{r.current=M,D()},[D]),k=p.useCallback(M=>{n.current=M,D()},[D]),I=()=>p.createElement("div",{className:x,ref:T,role:S?"presentation":"rowgroup"},c.map(M=>p.createElement(Bm,{rowCtrl:M,containerType:i.type,key:M.instanceId})));if(!S)return I();const H=()=>p.createElement("div",{className:y,ref:P,role:"presentation"},m.map(M=>p.createElement(Bm,{rowCtrl:M,containerType:i.type,key:M.instanceId})));return p.createElement("div",{className:b,ref:k,role:"rowgroup"},I(),u?H():null)},QO=p.memo(XO),JO=()=>{const e=p.useContext(At),{context:t,overlays:s}=e,[i,n]=p.useState(""),[o,r]=p.useState(0),[a,l]=p.useState(0),[c,d]=p.useState("0px"),[u,h]=p.useState("0px"),[f,m]=p.useState("100%"),[v,C]=p.useState("0px"),[w,b]=p.useState("0px"),[x,y]=p.useState("100%"),[S,F]=p.useState(!0),[R,E]=p.useState(!0),[D,T]=p.useState(null),[P,k]=p.useState(""),[I,H]=p.useState(null),[M,G]=p.useState("ag-layout-normal"),V=p.useRef();V.current||(V.current=new aa(()=>B.current));const B=p.useRef(null),K=p.useRef(null),O=p.useRef(null),A=p.useRef(null),W=p.useRef(null),Y=p.useRef(null),ie=p.useRef(null),be=p.useRef([]),Z=p.useRef([]);sn(" AG Grid Body ",B),sn(" AG Pinned Top ",K),sn(" AG Sticky Top ",O),sn(" AG Middle ",Y),sn(" AG Pinned Bottom ",ie);const me=p.useCallback(Pe=>{if(B.current=Pe,!Pe||t.isDestroyed()){be.current=t.destroyBeans(be.current);for(const We of Z.current)We();Z.current=[];return}const Ce=(We,U)=>{We.appendChild(U),Z.current.push(()=>U.remove())},Ve=We=>{const U=t.createBean(new We);return be.current.push(U),U},je=(We,U,Ne)=>{Ce(We,document.createComment(Ne)),Ce(We,Ve(U).getGui())};je(Pe,vE," AG Fake Horizontal Scroll ");const Qe=s?.getOverlayWrapperCompClass();Qe&&je(Pe,Qe," AG Overlay Wrapper "),W.current&&je(W.current,wE," AG Fake Vertical Scroll ");const Ze={setRowAnimationCssOnBodyViewport:n,setColumnCount:We=>{B.current&&J2(B.current,We)},setRowCount:We=>{B.current&&X2(B.current,We)},setTopHeight:r,setBottomHeight:l,setStickyTopHeight:d,setStickyTopTop:h,setStickyTopWidth:m,setTopInvisible:F,setBottomInvisible:E,setColumnMovingCss:(We,U)=>V.current.toggleCss(We,U),updateLayoutClasses:G,setAlwaysVerticalScrollClass:T,setPinnedTopBottomOverflowY:k,setCellSelectableCss:(We,U)=>H(U?We:null),setBodyViewportWidth:We=>{Y.current&&(Y.current.style.width=We)},registerBodyViewportResizeListener:We=>{if(Y.current){const U=li(e,Y.current,We);Z.current.push(()=>U())}},setStickyBottomHeight:C,setStickyBottomBottom:b,setStickyBottomWidth:y,setGridRootRole:We=>Pe.setAttribute("role",We)},yt=t.createBean(new _E);be.current.push(yt),yt.setComp(Ze,Pe,Y.current,K.current,ie.current,O.current,A.current)},[]),Ie=p.useMemo(()=>ls("ag-root","ag-unselectable",M),[M]),ne=p.useMemo(()=>ls("ag-body-viewport",i,M,D,I),[i,M,D,I]),ce=p.useMemo(()=>ls("ag-body",M),[M]),L=p.useMemo(()=>ls("ag-floating-top",S?"ag-invisible":null,I),[I,S]),ee=p.useMemo(()=>ls("ag-sticky-top",I),[I]),ye=p.useMemo(()=>ls("ag-sticky-bottom",v==="0px"?"ag-invisible":null,I),[I,v]),z=p.useMemo(()=>ls("ag-floating-bottom",R?"ag-invisible":null,I),[I,R]),le=p.useMemo(()=>({height:o,minHeight:o,overflowY:P}),[o,P]),ve=p.useMemo(()=>({height:c,top:u,width:f}),[c,u,f]),Ee=p.useMemo(()=>({height:v,bottom:w,width:x}),[v,w,x]),oe=p.useMemo(()=>({height:a,minHeight:a,overflowY:P}),[a,P]),xe=Pe=>p.createElement(QO,{name:Pe,key:`${Pe}-container`}),Ae=({section:Pe,children:Ce,className:Ve,style:je})=>p.createElement("div",{ref:Pe,className:Ve,role:"presentation",style:je},Ce.map(xe));return p.createElement("div",{ref:me,className:Ie},p.createElement(GO,null),Ae({section:K,className:L,style:le,children:["topLeft","topCenter","topRight","topFullWidth"]}),p.createElement("div",{className:ce,ref:W,role:"presentation"},Ae({section:Y,className:ne,children:["left","center","right","fullWidth"]})),Ae({section:O,className:ee,style:ve,children:["stickyTopLeft","stickyTopCenter","stickyTopRight","stickyTopFullWidth"]}),Ae({section:A,className:ye,style:Ee,children:["stickyBottomLeft","stickyBottomCenter","stickyBottomRight","stickyBottomFullWidth"]}),Ae({section:ie,className:z,style:oe,children:["bottomLeft","bottomCenter","bottomRight","bottomFullWidth"]}))},eN=p.memo(JO),tN=(e,t)=>{const{children:s,eFocusableElement:i,onTabKeyDown:n,gridCtrl:o,forceFocusOutWhenTabGuardsAreEmpty:r,isEmpty:a}=e,{context:l}=p.useContext(At),c=p.useRef(null),d=p.useRef(null),u=p.useRef(),h=w=>{const b=w==null?void 0:parseInt(w,10).toString();for(const x of[c,d])b===void 0?x.current?.removeAttribute("tabindex"):x.current?.setAttribute("tabindex",b)};p.useImperativeHandle(t,()=>({forceFocusOutOfContainer(w){u.current?.forceFocusOutOfContainer(w)}}));const f=p.useCallback(()=>{const w=c.current,b=d.current;if(!w&&!b||l.isDestroyed()){u.current=l.destroyBean(u.current);return}if(w&&b){const x={setTabIndex:h};u.current=l.createBean(new iO({comp:x,eTopGuard:w,eBottomGuard:b,eFocusableElement:i,onTabKeyDown:n,forceFocusOutWhenTabGuardsAreEmpty:r,focusInnerElement:y=>o.focusInnerElement(y),isEmpty:a}))}},[]),m=p.useCallback(w=>{c.current=w,f()},[f]),v=p.useCallback(w=>{d.current=w,f()},[f]),C=w=>{const b=w==="top"?So.TAB_GUARD_TOP:So.TAB_GUARD_BOTTOM;return p.createElement("div",{className:`${So.TAB_GUARD} ${b}`,role:"presentation",ref:w==="top"?m:v})};return p.createElement(p.Fragment,null,C("top"),s,C("bottom"))},sN=p.forwardRef(tN),iN=p.memo(sN),nN=({context:e})=>{const[t,s]=p.useState(""),[i,n]=p.useState(""),[o,r]=p.useState(null),[a,l]=p.useState(null),[c,d]=p.useState(!1),[u,h]=p.useState(),f=p.useRef(),m=p.useRef(null),v=p.useRef(),[C,w]=p.useState(null),b=p.useRef(()=>{}),x=p.useRef(),y=p.useRef([]),S=p.useCallback(()=>{},[]);sn(" AG Grid ",m);const F=p.useCallback(k=>{if(m.current=k,f.current=k?e.createBean(new YE):e.destroyBean(f.current),!k||e.isDestroyed())return;const I=f.current;b.current=I.focusInnerElement.bind(I);const H={destroyGridUi:()=>{},setRtlClass:s,forceFocusOutOfContainer:M=>{if(!M&&x.current?.isDisplayed()){x.current.forceFocusOutOfContainer(M);return}v.current?.forceFocusOutOfContainer(M)},updateLayoutClasses:n,getFocusableContainers:()=>{const M=[],G=[],V=m.current?.querySelector(".ag-root");for(const K of y.current){if(!K.isDisplayed())continue;const O=K.getFocusableContainerName();if(O==="rowGroupToolbar"||O==="pivotToolbar"){M.push(K);continue}G.push(K)}const B=[...M];return V&&B.push({getGui:()=>V,getFocusableContainerName:()=>"gridBody"}),B.push(...G),B},setCursor:r,setUserSelect:l};I.setComp(H,k,k),d(!0)},[]);p.useEffect(()=>{const k=f.current,I=m.current;if(!u||!k||!C||!I||e.isDestroyed())return;const H=[];y.current=[],x.current=void 0;const{watermarkSelector:M,paginationSelector:G,sideBarSelector:V,statusBarSelector:B,gridHeaderDropZonesSelector:K}=k.getOptionalSelectors(),O=[];if(K){const W=e.createBean(new K.component),Y=W.getGui();I.insertAdjacentElement("afterbegin",Y),O.push(Y),H.push(W),y.current.push(...W.getFocusableContainers?.()??[])}if(V){const W=e.createBean(new V.component),Y=W.getGui(),ie=C.querySelector(".ag-tab-guard-bottom");ie&&(ie.insertAdjacentElement("beforebegin",Y),O.push(Y)),H.push(W),y.current.push(W)}const A=W=>{const Y=e.createBean(new W),ie=Y.getGui();return I.insertAdjacentElement("beforeend",ie),O.push(ie),H.push(Y),Y};if(B){const W=A(B.component);y.current.push(W)}if(G){const W=A(G.component);x.current=W,y.current.push(W)}return M&&A(M.component),()=>{e.destroyBeans(H),y.current=[],x.current=void 0;for(const W of O)W.remove()}},[u,C,e]);const R=p.useMemo(()=>ls("ag-root-wrapper",t,i),[t,i]),E=p.useMemo(()=>ls("ag-root-wrapper-body","ag-focus-managed",i),[i]),D=p.useMemo(()=>({userSelect:a??"",WebkitUserSelect:a??"",cursor:o??""}),[a,o]),T=p.useCallback(k=>{v.current=k,h(k!==null)},[]),P=p.useCallback(()=>!f.current?.isFocusable(),[]);return p.createElement("div",{ref:F,className:R,style:D,role:"presentation"},p.createElement("div",{className:E,ref:w,role:"presentation"},c&&C&&!e.isDestroyed()&&p.createElement(At.Provider,{value:e.getBeans()},p.createElement(iN,{ref:T,eFocusableElement:C,onTabKeyDown:S,gridCtrl:f.current,forceFocusOutWhenTabGuardsAreEmpty:!0,isEmpty:P},p.createElement(eN,null)))))},oN=p.memo(nN),rN=class extends j{postConstruct(){if(this.beans.colAutosize){const e=this.queueResizeOperationsForTick.bind(this);this.addManagedEventListeners({rowExpansionStateChanged:e,expandOrCollapseAll:e,cellValueChanged:e,rowNodeDataChanged:e,rowDataUpdated:e})}}queueResizeOperationsForTick(){const e=this.beans.colAutosize;e.shouldQueueResizeOperations=!0,setTimeout(()=>{e.processResizeOperations()},0)}areHeaderCellsRendered(){return this.beans.ctrlsSvc.getHeaderRowContainerCtrls().every(e=>e.getAllCtrls().every(t=>t.areCellsRendered()))}areCellsRendered(){return this.beans.rowRenderer.getAllRowCtrls().every(e=>e.isRowRendered()&&e.getAllCellCtrls().every(t=>!!t.eGui))}},aN=typeof window>"u"?p.useEffect:p.useLayoutEffect,rb={setGridApi:void 0,maxComponentCreationTimeMs:void 0,children:void 0},lN={gridOptions:void 0,modules:void 0,containerStyle:void 0,className:void 0,passGridApi:void 0,componentWrappingElement:void 0,...rb},ab=new Set(Object.keys(lN)),cN=new Set(Object.keys(rb)),lb=e=>{const t=p.useContext(EO),s=p.useContext(DO),i=p.useRef(),n=p.useRef(null),o=p.useRef(null),r=p.useRef([]),a=p.useRef([]),l=p.useRef(e),c=p.useRef(),d=p.useRef(),u=p.useRef(!1),[h,f]=p.useState(void 0),[,m]=p.useState(0),v=p.useRef(),C=S=>{const F=n.current?.classList,R=(E="")=>E.trim().split(/\s+/g).filter(Boolean);if(v.current!==S){for(const E of R(v.current))F?.contains(E)&&F.remove(E);for(const E of R(S))F?.contains(E)||F?.add(E);v.current=S}};aN(()=>{C(e.className)},[e.className]);const w=p.useCallback(S=>{if(n.current=S,C(e.className),!S){for(const M of r.current)M();r.current.length=0;return}const F=[...e.modules??[],...t??[]];s&&pC(F)?.setLicenseKey(s),o.current||(o.current=new FO(()=>m(M=>M+1),e.componentWrappingElement,e.maxComponentCreationTimeMs),r.current.push(()=>{o.current?.destroy(),o.current=null}));const R=n3(e.gridOptions,e,Object.keys(e).filter(M=>!ab.has(M))),E=()=>{if(u.current){const M=()=>c.current?.shouldQueueUpdates()?void 0:a.current.shift();let G=M();for(;G;)G(),G=M()}},D=new pN(E);c.current=D;const T=new rN,P={providedBeanInstances:{frameworkCompWrapper:new uN(o.current,R),renderStatus:T},modules:F,frameworkOverrides:D,setThemeOnGridDiv:!0},k=M=>{f(M),M.createBean(T),r.current.push(()=>{M.destroy()}),M.getBean("ctrlsSvc").whenReady({addDestroyFunc:G=>{r.current.push(G)}},()=>{if(M.isDestroyed())return;const G=i.current;G&&e.passGridApi?.(G)})},I=M=>{M.getBean("ctrlsSvc").whenReady({addDestroyFunc:G=>{r.current.push(G)}},()=>{for(const G of a.current)G();a.current.length=0,u.current=!0})},H=new Uk;R.gridId??(R.gridId=d.current),i.current=H.create(S,R,k,I,P),r.current.push(()=>{i.current=void 0}),i.current&&(d.current=i.current.getGridId())},[]),b=p.useMemo(()=>({height:"100%",...e.containerStyle||{}}),[e.containerStyle]),x=p.useCallback(S=>{u.current&&!c.current?.shouldQueueUpdates()?S():a.current.push(S)},[]);p.useEffect(()=>{const S=dN(l.current,e);l.current=e,x(()=>{i.current&&o3(S,i.current)})},[e]);const y=!p.useSyncExternalStore||bl(e,"renderingMode")==="legacy"?"legacy":"default";return p.createElement("div",{style:b,ref:w},p.createElement(J1.Provider,{value:y},h&&!h.isDestroyed()?p.createElement(oN,{key:h.instanceId,context:h}):null,o.current?.getPortals()??null))};function dN(e,t){const s={};for(const i of Object.keys(t)){if(ab.has(i)){cN.has(i)&&q(274,{prop:i});continue}const n=t[i];e[i]!==n&&(s[i]=n)}return s}var uN=class extends sO{constructor(e,t){super(),this.parent=e,this.gridOptions=t}createWrapper(e,t){const s=this.gridOptions;if(bl(s,"reactiveCustomComponents")){const r=(a=>{switch(a){case"filter":return bl(s,"enableFilterHandlers")?mO:fO;case"floatingFilterComponent":return bl(s,"enableFilterHandlers")?wO:CO;case"dateComponent":return pO;case"dragAndDropImageComponent":return gO;case"loadingOverlayComponent":case"noRowsOverlayComponent":case"activeOverlay":return hO;case"statusPanel":return yO;case"toolPanel":return SO;case"menuItem":return xO;case"cellRenderer":return uO;case"innerHeaderComponent":return bO}})(t.name);if(r)return new r(e,this.parent,t)}else switch(t.name){case"filter":case"floatingFilterComponent":case"dateComponent":case"dragAndDropImageComponent":case"loadingOverlayComponent":case"noRowsOverlayComponent":case"activeOverlay":case"statusPanel":case"toolPanel":case"menuItem":case"cellRenderer":Jp();break}const n=!t.cellRenderer&&t.name!=="toolPanel";return new ib(e,this.parent,t,n)}},hN=p.forwardRef((e,t)=>{const s=p.useContext(At),{registry:i,context:n,gos:o,rowModel:r}=s,[a,l]=p.useState(()=>new gs),[c,d]=p.useState(()=>new gs),[u,h]=p.useState(),[f,m]=p.useState(),v=p.useRef(),C=p.useRef(null),w=p.useRef(),b=p.useMemo(()=>LR(e.api.getGridId(),u?.rowModelType??"clientSide"),[e]),x=p.useMemo(()=>a.toString()+" ag-details-row",[a]),y=p.useMemo(()=>c.toString()+" ag-details-grid",[c]);t&&p.useImperativeHandle(t,()=>({refresh(){return v.current?.refresh()??!1}})),e.template&&q(230);const S=p.useCallback(R=>{if(C.current=R,!R||n.isDestroyed()){v.current=n.destroyBean(v.current),w.current?.();return}const E={toggleCss:(T,P)=>l(k=>k.setClass(T,P)),toggleDetailGridCss:(T,P)=>d(k=>k.setClass(T,P)),setDetailGrid:T=>h(T),setRowData:T=>m(T),getGui:()=>C.current},D=i.createDynamicBean("detailCellRendererCtrl",!0);if(D&&(n.createBean(D),D.init(E,e),v.current=D,o.get("detailRowAutoHeight"))){const T=()=>{if(C.current==null)return;const P=C.current.clientHeight;P!=null&&P>0&&setTimeout(()=>{e.node.setRowHeight(P),(at(o)||jo(o))&&r.onRowHeightChanged()},0)};w.current=li(s,R,T),T()}},[]),F=p.useCallback(R=>{v.current?.registerDetailWithMaster(R)},[]);return p.createElement("div",{className:x,ref:S},u&&p.createElement(lb,{className:y,...u,modules:b,rowData:f,passGridApi:F}))}),pN=class extends u1{constructor(e){super("react"),this.processQueuedUpdates=e,this.queueUpdates=!1,this.renderingEngine="react",this.frameworkComponents={agGroupCellRenderer:Lm,agGroupRowRenderer:Lm,agDetailCellRenderer:hN},this.wrapIncoming=(t,s)=>s==="ensureVisible"?oO(t):t()}frameworkComponent(e){return this.frameworkComponents[e]}isFrameworkComponent(e){if(!e)return!1;const t=e.prototype;return!(t&&"getGui"in t)}getLockOnRefresh(){this.queueUpdates=!0}releaseLockOnRefresh(){this.queueUpdates=!1,this.processQueuedUpdates()}shouldQueueUpdates(){return this.queueUpdates}runWhenReadyAsync(){return nO()}},gN=class extends p.Component{constructor(){super(...arguments),this.apiListeners=[],this.setGridApi=e=>{this.api=e;for(const t of this.apiListeners)t(e)}}registerApiListener(e){this.apiListeners.push(e)}componentWillUnmount(){this.apiListeners.length=0}render(){return p.createElement(lb,{...this.props,passGridApi:this.setGridApi})}},cb=(e=>(e.Dropdown="dropdown",e.Menu="menu",e))(cb||{}),Qt=(e=>(e.Click="click",e.Hover="hover",e.ContextMenu="contextMenu",e))(Qt||{}),No=(e=>(e.Item="item",e.Divider="divider",e.PlainText="plainText",e))(No||{});const fN=re("flex items-center gap-2 align-middle","h-auto px-0 bg-transparent border-0"),mN=re("z-[53] overflow-auto rounded bg-layer-0 text-primary shadow focus-visible:outline-none"),bh=re("flex w-full cursor-pointer items-center gap-3","focus-visible:border-none focus-visible:outline-none","hover:bg-accent-primary-alpha px-3","dial-small-text h-[34px] rounded text-primary"),xh="opacity-75 !cursor-not-allowed",db="text-error",vN="my-1 border-t border-hover border-secondary",lo=4,CN=g.jsx(_.IconChevronRight,{size:14}),eg=({ariaLabel:e,className:t,size:s=24,onClose:i,...n})=>g.jsx(fc,{"aria-label":e,className:$(t,"w-auto h-auto"),onClick:i,icon:g.jsx(_.IconX,{size:s}),...n});function ub(e,t="menu",s=!1){const[i,n]=p.useState(!1),{refs:o,floatingStyles:r,context:a}=De.useFloating({placement:"right-start",open:i,onOpenChange:n,whileElementsMounted:De.autoUpdate,middleware:[De.offset({mainAxis:0,crossAxis:-4}),De.flip({padding:e}),De.shift({padding:e})]}),l=De.useHover(a,{enabled:!s,move:!1,delay:{open:80,close:80}}),c=De.useDismiss(a,{bubbles:!0}),d=De.useRole(a,{role:t}),{getReferenceProps:u,getFloatingProps:h}=De.useInteractions([l,c,d]);return{isOpen:i,refs:o,floatingStyles:r,context:a,getReferenceProps:u,getFloatingProps:h}}const hb=({refs:e,floatingStyles:t,context:s,getFloatingProps:i,role:n,className:o,children:r})=>g.jsx(De.FloatingPortal,{children:g.jsx(De.FloatingFocusManager,{context:s,modal:!1,initialFocus:-1,returnFocus:!1,children:g.jsx("div",{ref:e.setFloating,style:t,role:n,className:re("z-[53] overflow-auto rounded bg-layer-0 text-primary shadow focus-visible:outline-none",o),...i(),children:r})})}),wN=({item:e,onRootClose:t})=>{const{isOpen:s,refs:i,floatingStyles:n,context:o,getReferenceProps:r,getFloatingProps:a}=ub(lo,"menu",!!e.disabled),l=p.useCallback(c=>d=>{c.disabled||(c.onClick?.({key:c.key,domEvent:d}),t())},[t]);return g.jsxs(g.Fragment,{children:[g.jsxs("button",{ref:i.setReference,type:"button",role:"menuitem","aria-haspopup":"menu","aria-expanded":s,"aria-disabled":!!e.disabled,disabled:e.disabled,className:re(bh,e.disabled&&xh,e.className),...r(),children:[e.icon&&g.jsx("span",{className:re(e.disabled&&"text-secondary"),children:g.jsx(Oe,{icon:e.icon})}),g.jsx("span",{className:re("flex-1 truncate text-start",e.disabled&&"text-secondary"),children:e.label}),g.jsx("span",{className:re("ml-auto shrink-0",e.disabled&&"text-secondary"),children:CN})]}),s&&g.jsx(hb,{refs:i,floatingStyles:n,context:o,getFloatingProps:a,role:"menu",className:"w-max",children:g.jsx("div",{role:"none",className:"py-1",children:e.children.map(c=>g.jsxs("button",{role:"menuitem",type:"button","aria-disabled":!!c.disabled,disabled:c.disabled,className:re(bh,c.disabled&&xh,c.danger&&db,c.className),onClick:l(c),children:[c.icon&&g.jsx("span",{className:re(c.danger&&"text-error",c.disabled&&"text-secondary"),children:g.jsx(Oe,{icon:c.icon})}),g.jsx("span",{className:re("flex-1 truncate text-start",c.danger&&"text-error",c.disabled&&"text-secondary"),children:c.label})]},c.key))})})]})},bN=e=>"clientWidth"in e?e.clientWidth:e.getBoundingClientRect?.()?.width??0,Mt=({children:e,items:t,onItemClick:s,menuHeader:i,menuFooter:n,renderOverlay:o,trigger:r=[Qt.Click],placement:a,disabled:l=!1,open:c,defaultOpen:d=!1,onOpenChange:u,closable:h=!1,onClose:f,className:m,overlayContentClassName:v,separatorClassName:C,listClassName:w,outsidePressIgnoreRef:b,outsideClosable:x=!0,allowedPlacements:y,anchorToMouse:S=!1,matchReferenceWidth:F=!0,maxDropdownHeight:R})=>{const[E,D]=p.useState(d),T=c!==void 0,P=T?!!c:E,k=p.useRef(null),I=p.useCallback(L=>{T||D(L),u?.(L)},[T,u]),H=p.useId(),M=a===void 0,{refs:G,floatingStyles:V,context:B}=De.useFloating({placement:a,open:P,onOpenChange:I,whileElementsMounted:De.autoUpdate,middleware:[De.offset({mainAxis:lo,crossAxis:0}),M?De.autoPlacement({alignment:"start",crossAxis:!0,padding:lo,allowedPlacements:y}):De.flip({padding:lo}),De.shift({padding:lo}),De.size({padding:lo,apply({availableWidth:L,availableHeight:ee,elements:ye}){const z=ye.floating,le=bN(ye.reference);z.style.setProperty("--fui-available-height",`${Math.floor(ee)}px`),z.style.setProperty("--reference-width",F?`${Math.round(le)}px`:"0px"),F?z.style.minWidth=`${Math.round(le)}px`:z.style.removeProperty("min-width"),z.style.maxWidth=`${Math.floor(L)}px`;const ve=Math.floor(ee);z.style.maxHeight=`${R?Math.min(ve,R):ve}px`}})]}),K=De.useClick(B,{enabled:r.includes(Qt.Click)&&!l}),O=De.useHover(B,{enabled:r.includes(Qt.Hover)&&!l,move:!1,restMs:40,delay:{open:80,close:80}}),A=De.useDismiss(B,{bubbles:!0,referencePress:!1,outsidePress:L=>{if(!x)return!1;const ee=L.target;return!(b?.current&&ee instanceof Node&&b.current.contains(ee))}}),W=De.useRole(B,{role:"menu"}),{getReferenceProps:Y,getFloatingProps:ie}=De.useInteractions([K,O,A,W]),be=p.useCallback((L,ee)=>{G.setPositionReference({getBoundingClientRect:()=>({width:0,height:0,x:L,y:ee,top:ee,left:L,right:L,bottom:ee})})},[G]),Z=p.useCallback(L=>{!r.includes(Qt.ContextMenu)||l||(L.preventDefault(),S&&(be(L.clientX,L.clientY),k.current=document.elementFromPoint(L.clientX,L.clientY)),I(!0))},[S,l,I,be,r]),me=p.useCallback(L=>{!S||l||(r.includes(Qt.ContextMenu)&&P&&I(!1),be(L.clientX,L.clientY),k.current=document.elementFromPoint(L.clientX,L.clientY))},[S,l,be,P,r,I]);p.useEffect(()=>{l&&P&&I(!1)},[l,P,I]);const Ie=p.useCallback(L=>ee=>{L.disabled||(L.onClick?.({key:L.key,domEvent:ee}),s?.({key:L.key,domEvent:ee}),I(!1))},[s,I]),ne=p.useMemo(()=>o?o():t?g.jsxs(g.Fragment,{children:[i&&g.jsx(g.Fragment,{children:typeof i=="function"?i():i}),g.jsx("div",{role:"none",className:$("py-1",v),"aria-label":"dropdown",children:t.map(L=>L.type===No.Divider?g.jsx("div",{role:"separator",className:$(vN,C)},L.key):L.type===No.PlainText?g.jsx("div",{className:$("px-3 py-2 text-secondary dial-caption",L.className),children:L.label},L.key):L.children?.length?g.jsx(wN,{item:L,onRootClose:()=>I(!1)},L.key):g.jsxs("button",{role:"menuitem",type:"button","aria-disabled":!!L.disabled,className:re(bh,L.disabled&&xh,L.danger&&db,L.className),disabled:L.disabled,onClick:Ie(L),children:[L.icon&&g.jsx("span",{className:re(L.danger&&"text-error",L.disabled&&"text-secondary"),children:g.jsx(Oe,{icon:L.icon})}),g.jsx("span",{className:re("flex-1 truncate text-start",L.danger&&"text-error",L.disabled&&"text-secondary"),"aria-labelledby":"item-text",children:L.label})]},L.key))}),n&&g.jsx(g.Fragment,{children:typeof n=="function"?n():n})]}):null,[Ie,t,n,i,o,I,v,C]),ce=Y({onContextMenu:Z,onMouseDown:me});return p.useEffect(()=>{if(!P)return;const L=G.reference.current;let ee=null;if(L instanceof Element?ee=L:k.current instanceof Element&&(ee=k.current),!ee)return;const ye=new IntersectionObserver(([z])=>{z.isIntersecting||I(!1)},{root:null,threshold:0});return ye.observe(ee),()=>ye.disconnect()},[P,G.reference,I]),g.jsxs(g.Fragment,{children:[g.jsx("span",{ref:G.setReference,className:re(fN,l&&"!cursor-not-allowed opacity-75",m),"aria-haspopup":"menu","aria-expanded":P,"aria-controls":H,...ce,children:e}),P&&g.jsx(De.FloatingPortal,{children:g.jsx(De.FloatingFocusManager,{context:B,modal:!1,initialFocus:-1,returnFocus:!0,children:g.jsxs("div",{id:H,ref:G.setFloating,style:V,className:re(mN,!F&&"w-max",w),...ie(),children:[h&&g.jsx("div",{className:"flex items-center justify-between px-2 pt-2",children:g.jsx(eg,{ariaLabel:"Close dropdown",onClose:L=>{f?.(L),I(!1)}})}),ne]})})})]})},xN="h-full w-full",Gm=".ag-checkbox-input",gu={accentColor:"var(--controls-bg-accent, #5C8DEA)",backgroundColor:"var(--bg-layer-3, #1D2439)",oddRowBackgroundColor:"var(--bg-layer-2, #161B2D)",selectedRowBackgroundColor:"var(--bg-accent-primary-alpha, #7DA4FF26)",borderColor:"var(--bg-layer-4, #242C42)",rowBorder:"1px solid var(--stroke-tertiary, #0C101D)",rowHoverColor:"var(--bg-accent-primary-alpha, #7DA4FF26)",borderRadius:3,browserColorScheme:"dark",chromeBackgroundColor:"var(--bg-layer-1, #0C101D)",foregroundColor:"var(--text-primary, #EEF1F7)",headerFontSize:14,headerFontWeight:600,headerTextColor:"var(--text-secondary, #7F8792)",spacing:4,wrapperBorderRadius:3,fontSize:14,fontFamily:"var(--theme-font, var(--font-inter))"},Vm=40;var en=(e=>(e.API="api",e.ROW_DATA_CHANGED="rowDataChanged",e.CHECKBOX_SELECTED="checkboxSelected",e))(en||{});const yN=(e,t,s,i,n)=>{const o=typeof e=="string"?e.toLowerCase():e,r=typeof t=="string"?t.toLowerCase():t;return o===r?0:o?r?o>r?1:-1:n?1:-1:n?-1:1};var Nr=(e=>(e.MULTIPLE="MULTIPLE",e.SINGLE="SINGLE",e))(Nr||{});const pb="en-US",gb={year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},SN="text-primary",fu=40,fb={minWidth:fu,width:fu,maxWidth:fu},RN={cellClass:"ag-grid-no-checkbox",...fb},FN={...fb};function EN(e,t){let s=null;return(...i)=>{s&&clearTimeout(s),s=setTimeout(()=>e(...i),t)}}const DN=()=>{const[e,t]=p.useState(Ig());return p.useEffect(()=>{const s=()=>t(Ig());return window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[]),e};tO({testIdAttribute:"dataQA"});hC.registerModules([YL]);const tg=({columnDefs:e,rowData:t,additionalGridOptions:s,getContextMenuItems:i,className:n,ariaLabel:o="Data grid",wrapCustomCellRenderers:r=!0,disabledRowIds:a,selectedRowIds:l,onSelectionChange:c,onGridApiChange:d,getRowId:u=F=>String(F.id??JSON.stringify(F)),alternateOddRowColors:h=!1,filterPlaceholder:f="Enter value",emptyStateIcon:m,emptyStateTitle:v="No results found",emptyStateDescription:C="Sorry, we couldn't find any results for your search.",loading:w=!1,wrapperBorder:b=!0,withoutHeaderBorders:x=!1,allowDisabledContextMenu:y=!1,selectionMode:S})=>{const[F,R]=p.useState(),E=p.useId(),D=na(),T=DN(),P=p.useRef(new Set),k=p.useRef(void 0),I=p.useMemo(()=>({...gu,oddRowBackgroundColor:h?gu.oddRowBackgroundColor:gu.backgroundColor,wrapperBorder:b}),[h,b]),H=p.useCallback(L=>{L.api.sizeColumnsToFit()},[]),M=p.useCallback(L=>{if(L.data){const ee=u(L.data),ye=a?.has(ee)??!1,z=ye&&!y,le=L.value==null?"":String(L.value),ve=i?.(L.data)??[];return g.jsx(Mt,{trigger:[Qt.ContextMenu],items:ve,anchorToMouse:!0,matchReferenceWidth:!0,className:"w-full",disabled:z,children:g.jsx("span",{className:"block min-w-0 h-full max-w-full",children:g.jsx(bt,{text:le,className:"max-w-full h-full",hideTooltip:ye})})})}},[i,a,u,y]),G=p.useCallback(L=>L===en.API||L===en.ROW_DATA_CHANGED,[]),V=p.useCallback(L=>{if(!F)return;const ye=(L.selectedNodes||[]).map(le=>le.data),z=new Set(ye.map(u));P.current=z,k.current=L.source,G(L.source)||c?.(z,ye)},[F,u,G,c]),B=p.useMemo(()=>EN(L=>V?.(L),100),[V]),K=p.useCallback(L=>{if(!L.data)return null;const ee=u(L.data),ye=L.node.isSelected(),z=a?.has(ee),le=`row-select-${ee}`;return g.jsx("div",{className:"size-6 flex items-center justify-center",children:g.jsx(cn,{className:"size-[18px]",inputId:le,checked:ye,disabled:z,name:"gridradiobutton",value:"selected",onChange:()=>{z||(L.node.setSelected(!0,!0,en.CHECKBOX_SELECTED),L.api.refreshCells({columns:[L.column?.getColId()]}))}})})},[u,a]),O=p.useCallback(()=>{const L="dial-row-select",ee="dial-row-select-visible";return D||T||l&&l.size>0?`${L} ${ee}`:!l||l.size===0?L:`${L} ${ee}`},[D,T,l]),A=p.useCallback(()=>D||T?O():!l||l.size===0?"dial-row-not-select-header":O(),[O,D,T,l]),W=p.useMemo(()=>{if(S===Nr.SINGLE)return{...RN,cellRenderer:K};if(S===Nr.MULTIPLE)return{...FN,headerClass:()=>A(),cellClass:L=>{const ee=L.data?u(L.data):null;let ye=O();return ee&&a?.has(ee)&&(ye+=" opacity-50 pointer-events-none"),ye}}},[S,K,A,u,O,a]),Y=p.useCallback(L=>{const ee=typeof r=="function"?r(L):!!r;if(!L.cellRenderer)return{...L,cellRenderer:M};if(!ee)return L;const ye=L.cellRenderer;return{...L,cellRenderer:le=>{const ve=le.data?i?.(le.data)??[]:[];let Ee=null;if(typeof ye=="function"){const Ae=ye;Ee=g.jsx(Ae,{...le})}else Ee=M(le);const oe=le.data?u(le.data):null,xe=oe?a?.has(oe):!1;return g.jsx(Mt,{trigger:[Qt.ContextMenu],items:ve,anchorToMouse:!0,matchReferenceWidth:!0,className:re("w-full h-full",xe&&"!cursor-not-allowed opacity-75"),disabled:xe&&!y,children:g.jsx("span",{className:"block min-w-0 max-w-full flex-1",children:Ee})})}}},[a,i,u,M,r,y]),ie=p.useMemo(()=>r?(e??[]).map(Y):e??[],[e,r,r?Y:null]),be=p.useMemo(()=>({minWidth:150,resizable:!0,sortable:!0,floatingFilter:!0,filter:"agTextColumnFilter",filterParams:{filterPlaceholder:f,buttons:["reset"]},comparator:yN.bind(void 0)}),[f]),Z=L=>{const ee=document.querySelector(Gm);ee&&ee.setAttribute("aria-description",Pu);const ye=ie.map(z=>({...z,sort:void 0}));L.api.updateGridOptions({columnDefs:ye,rowData:t}),L.api.sizeColumnsToFit(),R(L.api),s?.onGridReady?.(L),d?.(L.api)};p.useEffect(()=>{F&&t&&F.setGridOption("rowData",t)},[F,t]);const me=p.useCallback(()=>g.jsx(ra,{title:v,description:C,containerClassName:"gap-3",titleClassName:"mt-2 !text-lg",icon:m||g.jsx(_.IconZoomCancel,{size:100,stroke:.5,className:"text-secondary"})}),[v,C,m]),Ie=p.useMemo(()=>{if(S)return{mode:S===Nr.SINGLE?"singleRow":"multiRow",isRowSelectable:L=>{const ee=L.data?u(L.data):null;return ee?!a?.has(ee):!0}}},[a,u,S]);p.useEffect(()=>{F&&t&&P.current.size&&P.current.forEach(L=>{const ee=F.getRowNode(L);ee&&!ee.isSelected()&&ee.setSelected(!0,!1,en.API)})},[F,t]),p.useEffect(()=>{F&&l&&(F.deselectAll("all",en.API),l.forEach(L=>{const ee=F.getRowNode(L);ee&&!ee.isSelected()&&ee.setSelected(!0,!1,en.API)}))},[F,l]);const ne=p.useCallback(L=>L.data?u(L.data):"",[u]),ce=p.useCallback(()=>{document.querySelectorAll(`.ag-row ${Gm}`).forEach(L=>{L.setAttribute("aria-description",Pu)})},[]);return p.useEffect(()=>{const L=G(k.current);if(F&&l?.size&&L){const ee=Array.from(l)[0];if(ee){const ye=F.getRowNode(ee);ye&&F.ensureNodeVisible(ye)}}},[F,G,l]),g.jsx("div",{className:re(xN,n,S&&"with-selection-column",x&&"dial-without-header-borders"),"aria-label":o,role:"region","aria-busy":w,children:g.jsx("div",{className:"ag-theme-balham-dark h-full overflow-x-auto",role:"table","aria-describedby":E,children:g.jsx(gN,{rowModelType:"clientSide",headerHeight:Vm,rowHeight:Vm,cellSelection:!1,theme:J4.withPart(k4).withParams({...I}),autoSizeStrategy:{type:"fitGridWidth"},columnDefs:ie,defaultColDef:be,selectionColumnDef:W,onGridSizeChanged:H,onGridReady:Z,loading:w,suppressCellFocus:!0,suppressDragLeaveHidesColumns:!0,noRowsOverlayComponent:me,rowData:t,rowSelection:Ie,onSelectionChanged:B,getRowId:ne,onRowDataUpdated:ce,onBodyScroll:ce,onFirstDataRendered:ce,...s})})})};var cc=(e=>(e.Horizontal="horizontal",e.Vertical="vertical",e))(cc||{}),vn=(e=>(e.Default="default",e.Inline="inline",e))(vn||{}),dc=(e=>(e.Mobile="mobile",e.Tablet="tablet",e))(dc||{});const mr=({tab:e,active:t,invalid:s,className:i,horizontal:n,view:o=vn.Default,onClick:r})=>{const a=o===vn.Inline,l=$("rounded h-[38px] items-center flex flex-row border-transparent cursor-pointer dial-small-text hover:text-accent-primary",{"border-b-2 px-4":n,"border-l-2 px-3":!n},{"bg-layer-4":n,"bg-layer-1 text-secondary pointer-events-none":e.disabled,"bg-accent-primary-alpha text-primary":t&&!e.disabled,"text-primary":!t&&!e.disabled,"border-b-accent-primary":t&&n&&!e.disabled,"border-l-accent-primary":t&&!n&&!e.disabled}),c=$("flex flex-row gap-1 h-6 items-center py-1 px-2 rounded cursor-pointer hover:bg-accent-primary-alpha",t?"dial-small-semi":"dial-small",{"text-secondary pointer-events-none":e.disabled,"bg-accent-primary-alpha text-primary":t&&!e.disabled,"text-secondary":!t&&!e.disabled}),d=$(a?c:l,i);return g.jsxs("button",{role:"tab",className:d,onClick:()=>r(e.id),disabled:e.disabled,children:[a&&t&&!e.disabled&&g.jsx(_.IconCheck,{size:nt.SM}),g.jsx(bt,{text:e.label,contentClassName:"max-w-[200px]",className:"max-w-[200px]"}),(s||e.invalid)&&g.jsx("div",{className:"text-error pl-1",children:g.jsx(_.IconExclamationCircle,{...te})}),e.warning&&g.jsx("div",{className:"text-warning pl-1",children:g.jsx(_.IconAlertTriangle,{...te})})]})},PN=()=>{const[e,t]=p.useState(()=>typeof window>"u"?Ri.Desktop:Rd());return p.useEffect(()=>{t(Rd());const s=()=>t(Rd());return window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[]),e},TN=12,mb=({tabs:e,activeTab:t,onClick:s,className:i,orientation:n=cc.Horizontal,view:o=vn.Default,screenThreshold:r=dc.Tablet,smallScreenContainerClassName:a,smallScreenDropdownItemClassName:l,desktopDropdownClassName:c,desktopTabClassName:d,inlineContainerClassName:u,inlineTabClassName:h})=>{const[f,m]=p.useState(!1),[v,C]=p.useState(!1),[w,b]=p.useState(!1),x=PN(),y=x===Ri.Mobile||r===dc.Tablet&&x===Ri.Tablet,S=n===cc.Horizontal,F=p.useRef(null),R=p.useRef(null),E=p.useRef(null),D=e.find(H=>H.id===t),T=p.useMemo(()=>$("flex gap-2",S?"flex-row flex-nowrap overflow-x-auto":"flex-col flex-wrap w-full"),[S]),P=p.useCallback(()=>{const H=R.current;H&&b(H.scrollWidth>H.clientWidth)},[]),k=p.useCallback(()=>{const H=E.current,M=R.current;if(!H||!M)return;const G=H.getBoundingClientRect(),V=M.getBoundingClientRect();if(G.width===0||V.width===0)return;const B=TN;let K=M.scrollLeft;if(G.left<V.left+B)K-=V.left+B-G.left;else if(G.right>V.right-B)K+=G.right-(V.right-B);else return;const O=Math.max(0,M.scrollWidth-M.clientWidth);K=Math.max(0,Math.min(K,O)),K!==M.scrollLeft&&M.scrollTo({left:K,behavior:"smooth"})},[]),I=p.useCallback(H=>{s(H),H===t&&k()},[s,t,k]);return p.useEffect(()=>{P();const H=new ResizeObserver(()=>P()),M=R.current;return M&&H.observe(M),()=>H.disconnect()},[e,P]),p.useEffect(()=>{k()},[t,k]),o===vn.Inline?g.jsx("div",{role:"tablist",className:$("flex flex-row items-center gap-0.5 bg-layer-4 rounded w-fit p-0.5",u),children:e.map(H=>g.jsx(mr,{tab:H,active:t===H.id,view:vn.Inline,onClick:I,className:h},H.id))}):y?g.jsx("div",{role:"tablist",className:$("h-11 flex items-center bg-layer-3 px-4",a),children:g.jsx(Mt,{trigger:[Qt.Click],open:f,onOpenChange:m,placement:"bottom-start",allowedPlacements:["bottom-start","top-start"],renderOverlay:()=>e.map(H=>g.jsx(mr,{tab:H,active:H.id===t,onClick:M=>{I(M),m(!1)},className:$("w-full rounded-none h-11 items-center px-6",l)},H.id)),children:g.jsxs("div",{className:"flex gap-2 items-center h-11 cursor-pointer",children:[g.jsx(mr,{tab:D,active:!0,onClick:I,className:"rounded-none bg-transparent border-l-0 border-b-0 h-full items-center px-0"},t),g.jsx(Oe,{icon:g.jsx(_.IconChevronDown,{size:nt.SM}),className:$("text-primary transition-transform",f&&"rotate-180")})]})})}):g.jsxs("div",{ref:F,className:$("flex items-center",i),children:[g.jsx("div",{ref:R,role:"tablist",className:T,children:e.map(H=>g.jsx("div",{ref:t===H.id?E:void 0,className:"w-full",children:g.jsx(mr,{tab:H,active:t===H.id,onClick:I,horizontal:S,className:$("w-full",d)})},H.id))}),w&&g.jsx("div",{className:"flex items-center ml-2",children:g.jsx(Mt,{trigger:[Qt.Click],open:v,onOpenChange:C,placement:"bottom-end",renderOverlay:()=>e.map(H=>g.jsx(mr,{tab:H,active:H.id===t,onClick:M=>{I(M),C(!1)},className:"w-full rounded-none h-8 items-center px-3 py-2"},H.id)),children:g.jsx(Fs,{iconBefore:g.jsx(_.IconDotsVertical,{size:Zt}),className:$("w-8 h-8 flex items-center justify-center rounded border",v?"bg-layer-4 border-transparent":"border-primary",c)})})})]})},kN="w-full overflow-hidden",IN="flex flex-nowrap items-center gap-2 min-w-0 px-0 py-0 whitespace-nowrap",vb="flex items-center gap-2 min-w-0 dial-small-text",MN="shrink-0 max-w-[30%]",AN="flex-1 min-w-0",zm="flex flex-1 items-center gap-1 min-w-0 transition-colors",LN="text-secondary hover:text-accent-primary",ON="text-primary cursor-default",Cb="flex-none inline-flex items-center leading-none text-secondary",NN="items-center gap-1 min-w-0 transition-colors text-secondary hover:text-accent-primary",wb=g.jsx(_.IconChevronRight,{size:nt.SM,"aria-hidden":"true"}),Rr=({label:e,href:t,onClick:s,disabled:i,isLast:n,separator:o=wb,className:r,iconBefore:a,labelClassName:l,onBeforeNavigate:c,...d})=>{const u=async C=>{if(c&&!n&&!await c()){C.preventDefault();return}s&&s(C)},h=$(vb,n?AN:MN,r),f=(!!t||!!s)&&!n&&!i,m=f?$(zm,LN):$(zm,ON,i?"pointer-events-none opacity-75":""),v=typeof e=="string"?g.jsx(bt,{className:$("cursor-pointer",l),text:e,id:"breadcrumb-item-content"}):g.jsx("span",{className:$("flex-1 min-w-0 truncate cursor-pointer max-w-[300px]",l),"aria-label":"breadcrumb-item-content",children:e});return g.jsxs("li",{...d,className:h,"aria-label":d["aria-label"]||"breadcrumb-item",children:[f?g.jsxs("a",{href:t,onClick:u,className:m,children:[a,v]}):g.jsxs("span",{className:m,"aria-current":n?"page":void 0,"aria-disabled":i?"true":void 0,children:[a,v]}),!n&&g.jsx("span",{className:Cb,"aria-label":"separator",children:o})]})},bb=({pathItems:e,separator:t=wb,ariaLabel:s="Breadcrumb",className:i,children:n,labelClassName:o,onBeforeNavigate:r})=>{const a=p.useMemo(()=>e?.length?e:p.Children.toArray(n).filter(p.isValidElement).map(d=>{const u=d.props,{labelClassName:h,isLast:f,separator:m,...v}=u;return v}),[e,n]),l=p.useCallback(async d=>{const u=parseInt(d.key,10),h=a[u];if(r&&!await r()){d.domEvent.preventDefault();return}h.onClick?h.onClick(d.domEvent):h.href&&(window.location.href=h.href)},[a,r]),c=p.useMemo(()=>{if(a.length===0)return null;if(a.length<=3)return a.map((v,C)=>p.createElement(Rr,{...v,key:`item-${C}`,isLast:C===a.length-1,separator:t,labelClassName:o,onBeforeNavigate:r}));const d=a.at(0),u=a.slice(1,-2),h=a.at(-2),f=a.at(-1);if(!d||!h||!f)return null;const m=u.map((v,C)=>({key:String(C+1),label:typeof v.label=="string"?v.label:`Item ${C+1}`,disabled:v.disabled}));return g.jsxs(g.Fragment,{children:[p.createElement(Rr,{...d,key:"item-0",separator:t,labelClassName:o,onBeforeNavigate:r}),g.jsxs("li",{className:$(vb),children:[g.jsx(Mt,{items:m,onItemClick:l,placement:"bottom-start",matchReferenceWidth:!1,children:g.jsx("button",{type:"button","aria-label":"More breadcrumbs",className:NN,children:g.jsx(_.IconDots,{size:nt.SM})})}),g.jsx("span",{className:Cb,children:t})]}),p.createElement(Rr,{...h,key:`item-${a.length-2}`,separator:t,labelClassName:o,onBeforeNavigate:r}),p.createElement(Rr,{...f,key:`item-${a.length-1}`,isLast:!0,separator:t,labelClassName:o,onBeforeNavigate:r})]})},[a,t,o,l,r]);return g.jsx("nav",{"aria-label":s,className:$(kN,i),children:g.jsx("ol",{className:IN,children:c})})},sg=(e,t)=>({appearance:i,...n})=>g.jsx(Fs,{...n,variant:e,appearance:i||t}),xb=(e,t)=>({variant:i,...n})=>g.jsx(Fs,{...n,variant:i||t,appearance:e}),Bs=sg(Ye.Primary,ke.Solid),js=sg(Ye.Neutral,ke.Outlined),yb=sg(Ye.Danger,ke.Outlined),HN=xb(ke.Link,Ye.Primary),ig=xb(ke.Ghost,Ye.Primary),BN=({selected:e,className:t,...s})=>g.jsx(Fs,{...s,className:$("dial-neutral-rounded-button",e&&"selected",t)}),jc=({iconClassName:e,label:t,...s})=>t?g.jsx(yb,{...s,label:t,appearance:ke.Ghost,iconBefore:g.jsx(_.IconTrashX,{...te,className:e||""})}):g.jsx(Fv,{...s,appearance:ke.Ghost,icon:g.jsx(_.IconTrashX,{...te,className:e||""})}),GN=({className:e,icon:t,tooltipProps:s,type:i="button",...n})=>{const o=$("dial-fab-button disabled:cursor-not-allowed focus-visible:outline outline-offset-0 disabled:text-controls-secondary-disable",e),r=g.jsx("button",{...n,type:i,className:o,"aria-label":n["aria-label"],children:t||g.jsx(_.IconArrowNarrowDown,{size:24,stroke:1.5})});return s?g.jsx(kt,{...s,children:r}):r},VN=({className:e="",value:t,onChange:s,error:i,containerClassName:n,resize:o=!1,labelProps:r,caption:a,id:l,...c})=>{const d=$("dial-textarea dial-input px-3 py-2",c.invalid&&"dial-input-error",c.disabled&&"dial-input-disable",o?"resize":"resize-none",e);return g.jsxs("div",{className:$("flex flex-col gap-y-1",n),children:[r&&g.jsx(Bi,{...r,htmlFor:l}),g.jsx("textarea",{id:l,value:t||"",className:d,onChange:u=>s?.(u.currentTarget.value),...c}),g.jsx(Nt,{text:i}),!i&&g.jsx(ia,{text:a})]})},Wc=({label:e,switchId:t,isOn:s=!1,disabled:i,onChange:n,caption:o})=>{const r=re("flex w-[36px] h-[18px] cursor-pointer items-center gap-1 rounded-full p-0.5 transition-all duration-200",s?"flex-row-reverse":"flex-row",i?"pointer-events-none":"",i?s?"bg-controls-disable":"bg-layer-4":s?"bg-accent-primary":"bg-layer-4"),a=p.useCallback(l=>{l.stopPropagation(),n?.(!s)},[n,s]);return g.jsxs("div",{className:"flex flex-row items-start",role:"switch",children:[g.jsx("input",{type:"checkbox",onChange:a,id:t,disabled:i,className:"invisible size-0",checked:s}),g.jsx("label",{htmlFor:t,className:r,"aria-describedby":o&&"caption",children:g.jsx("span",{className:re("size-3 rounded-full",i?"bg-controls-disable-accent":"bg-controls-enable-primary")})}),(e||o)&&g.jsxs("div",{className:"flex flex-col gap-1 ml-2",children:[e&&g.jsx("span",{className:re("dial-small-text py-[1px]",i?"text-secondary":"text-primary"),"aria-label":"switch-title",children:e}),o&&g.jsx("span",{id:"caption",className:"dial-tiny-text text-secondary",children:o})]})]})},zN="inline-flex items-center rounded bg-layer-3",jN="flex flex-1 items-center justify-center gap-2 h-7 px-3 py-1 border border-primary dial-small-text whitespace-nowrap focus-visible:outline outline-offset-0 focus-visible:relative focus-visible:z-10",WN="relative z-10 bg-controls-accent-primary-alpha-active text-primary",_N="text-secondary hover:text-primary",UN="text-controls-disable-accent cursor-not-allowed hover:text-controls-disable-accent",$N=({options:e,value:t,onChange:s,disabled:i,className:n,ariaLabel:o})=>{const r=p.useCallback(a=>{if(i)return;const l=e.filter(h=>!h.disabled);if(l.length===0)return;const c=l.findIndex(h=>h.value===t);let d=null;switch(a.key){case"ArrowRight":case"ArrowDown":d=(c+1)%l.length;break;case"ArrowLeft":case"ArrowUp":d=(c-1+l.length)%l.length;break;case"Home":d=0;break;case"End":d=l.length-1;break;default:return}a.preventDefault();const u=l[d];u&&u.value!==t&&s(u.value)},[i,e,t,s]);return g.jsx("div",{role:"tablist","aria-label":o,className:$(zN,n),children:e.map((a,l)=>{const c=a.value===t,d=l===0,u=l===e.length-1,h=i||a.disabled;return g.jsxs("button",{type:"button",role:"tab","aria-selected":c,tabIndex:c?0:-1,disabled:h,onClick:()=>s(a.value),onKeyDown:r,className:$(jN,!u&&"-mr-px",d&&"rounded-l",u&&"rounded-r",c?WN:_N,h&&UN),children:[a.icon,a.label]},a.value)})})};var es=(e=>(e.Sm="sm",e.Md="md",e.Lg="lg",e))(es||{});const qN="z-[52] flex items-center justify-center bg-blackout md:p-4",jm="divide-tertiary divide-y",KN="flex flex-row justify-between py-4 px-6 items-center",YN={[es.Sm]:"dial-sm-popup",[es.Md]:"dial-md-popup",[es.Lg]:"dial-lg-popup"},Hn=({open:e=!1,header:t,portalId:s,className:i,overlayClassName:n,titleClassName:o,headerClassName:r,dividers:a=!0,dividerFooter:l=!0,children:c,footer:d,onClose:u,size:h=es.Md,hideClose:f=!1,closeOnOutsideClick:m=!0,preventKeyboardOnOpen:v=!1})=>{const C=p.useRef(null),{refs:w,context:b}=De.useFloating({open:e,onOpenChange:E=>{E||u?.(null)}}),x=De.useRole(b,{role:"dialog"}),y=De.useDismiss(b,{outsidePress:m}),{getFloatingProps:S}=De.useInteractions([x,y]);if(!e)return null;const F=typeof t=="string"?"dial-popup-heading":void 0,R=E=>E?typeof E=="string"?g.jsx("h3",{id:F,className:re("flex-1 min-w-0 mr-3 truncate dial-h3-text text-primary",o),children:g.jsx(kt,{tooltip:E,children:E})}):E:g.jsx("span",{});return g.jsx(De.FloatingPortal,{id:s,children:g.jsx(De.FloatingOverlay,{className:re(qN,n,"mx-4"),children:g.jsx(De.FloatingFocusManager,{context:b,initialFocus:v?C:void 0,children:g.jsxs("div",{ref:w.setFloating,...S(),role:"dialog","aria-modal":"true","aria-labelledby":F,className:re("dial-popup",YN[h],a&&jm,i),children:[v&&g.jsx("div",{ref:C,tabIndex:-1,"aria-hidden":!0,className:"absolute size-px -m-px overflow-hidden opacity-0 pointer-events-none"}),g.jsxs("div",{className:$(KN,r),children:[R(t),!f&&g.jsx(eg,{size:nt.SM,ariaLabel:"Close dialog",onClose:E=>u?.(E)})]}),g.jsx("div",{className:"grow overflow-auto","aria-label":"popup-description",children:c}),l&&!d&&g.jsx("div",{className:jm}),d]})})})})};var Ho=(e=>(e.Info="info",e.Danger="danger",e))(Ho||{});const ZN="flex justify-end gap-2 px-6 py-4 border-t border-tertiary",XN="text-secondary dial-small-150 px-6 py-4",QN="Cancel",JN="Ok",mu={[Ho.Info]:{confirm:{variant:Ye.Primary,appearance:ke.Solid},cancel:{variant:Ye.Neutral,appearance:ke.Outlined}},[Ho.Danger]:{container:"dial-danger-popup",confirm:{variant:Ye.Danger,appearance:ke.Solid},cancel:{variant:Ye.Neutral,appearance:ke.Outlined}}},Sb=({header:e,description:t,descriptionClassName:s,open:i=!1,confirmLabel:n=JN,cancelLabel:o=QN,isLoading:r=!1,disableConfirmButton:a=!1,className:l,confirmClassName:c,onClose:d,onConfirm:u,onCancel:h,children:f,dividers:m=!1,variant:v=Ho.Info,size:C=es.Sm,footer:w,hideClose:b})=>{const x=r?null:g.jsxs("div",{className:ZN,children:[g.jsx(js,{label:o,onClick:()=>h?h():d?.()}),g.jsx(Fs,{variant:mu[v].confirm?.variant,appearance:mu[v].confirm?.appearance,className:c,label:n,disabled:a,onClick:()=>u()})]}),y=p.useCallback(()=>r?g.jsx("div",{className:"px-6 py-4 h-[120px]",children:g.jsx(oa,{size:40})}):f??(t?g.jsx("div",{className:re(XN,s),children:t}):null),[f,t,r,s]);return g.jsx(Hn,{open:i,header:e,className:re(mu[v].container,l),dividers:m,onClose:()=>d?.(),footer:w??x,size:C,hideClose:b??(!r&&w===void 0),children:y()})},vu=8,eH=24,Rb=({initialTags:e=[],label:t,required:s,elementId:i,placeholder:n,captionDescription:o,errorText:r,invalid:a,disabled:l,collapseTagOverflow:c=!1,readOnly:d=!1,containerClassName:u,tagClassName:h,onChange:f})=>{const m=p.useRef(null),v=p.useRef([]),C=p.useRef(null),[w,b]=p.useState(e),[x,y]=p.useState(""),[S,F]=p.useState(!1),[R,E]=p.useState(e.length),D=p.useCallback(V=>B=>{v.current[V]=B},[]),T=p.useCallback(()=>{if(!c)return;const V=m.current;if(!V)return;const B=V.offsetWidth;if(B===0)return;const K=C.current?.offsetWidth??0,A=B-(d?0:eH)-vu;let W=0,Y=0;for(let ie=0;ie<w.length;ie++){const be=v.current[ie];if(!be)continue;const Z=be.offsetWidth+vu;if(W+Z>A)break;W+=Z,Y++}if(Y<w.length&&Y>0)for(;W+K>A&&Y>0;){Y--;const ie=v.current[Y]?.offsetWidth??0;W-=ie+vu}E(Y)},[c,d,w.length]),P=V=>{const B=V.trim().replace(/,$/,"");if(B&&!w.includes(B)){const K=[B,...w];b(K),f?.(K)}},k=V=>{(V.key===","||V.key==="Enter")&&(V.preventDefault(),P(x),y(""))},I=()=>{x.trim()&&(P(x),y(""))},H=V=>{const B=w.filter((K,O)=>O!==V);b(B),f?.(B)},M=()=>r?g.jsx(Nt,{text:r}):o?g.jsx(ia,{text:o}):null;p.useEffect(()=>{if(c)return;const V=new ResizeObserver(()=>{if(m.current){const B=m.current.scrollHeight>m.current.clientHeight+10;F(B)}});return m.current&&V.observe(m.current),()=>V.disconnect()},[w,c]),p.useEffect(()=>{if(!c){E(w.length);return}E(w.length);const V=new ResizeObserver(()=>{T()}),B=m.current;return B&&V.observe(B),T(),()=>V.disconnect()},[c,T,w]),p.useEffect(()=>{b(e)},[JSON.stringify(e)]);const G=g.jsxs("div",{ref:m,className:re("flex gap-2 items-center relative",c?"flex-nowrap overflow-hidden w-full min-w-0":re("flex-wrap",S?"flex-col-reverse":"flex-row"),u),children:[(c?w.slice(0,R):w).map((V,B)=>g.jsx(on,{label:V,className:h,closable:!l&&!d,onRemove:!l&&!d?()=>H(B):void 0},V+B)),c&&R<w.length&&g.jsx(kt,{tooltip:w.slice(R).join(", "),triggerClassName:"inline-flex shrink-0 cursor-pointer",children:g.jsx(on,{label:`+${w.length-R}`})}),!d&&g.jsx("input",{id:i,type:"text",value:x,onChange:V=>y(V.target.value),onKeyDown:k,onBlur:I,className:re("dial-input outline-none !border-none w-full flex-1 !p-1 !h-auto",c?"min-w-0":"min-w-[100px]"),placeholder:n??"",disabled:l}),c&&g.jsxs("div",{className:"absolute left-0 top-0 invisible pointer-events-none h-0 overflow-hidden whitespace-nowrap","aria-hidden":!0,children:[w.map((V,B)=>g.jsx("div",{ref:D(B),className:"inline-flex shrink-0",children:g.jsx(on,{label:V,className:h,closable:!l&&!d,onRemove:!l&&!d?()=>H(B):void 0})},`measure-${V}-${B}`)),g.jsx("div",{ref:C,className:"inline-flex shrink-0",children:g.jsx(on,{label:`+${w.length}`})})]})]});return d?G:g.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[g.jsx(Bi,{label:t,required:s,htmlFor:i}),g.jsx("div",{className:re("dial-input min-h-[38px] p-[6px]",a&&"dial-input-error",l&&"dial-input-disable"),children:G}),M()]})},Fb=({selectedItems:e,placeholder:t,collapseTagOverflow:s=!1,listClassName:i,listElementClassName:n})=>e?.length?g.jsx(Rb,{readOnly:!0,initialTags:e,collapseTagOverflow:s,containerClassName:i,tagClassName:n}):t?g.jsx("span",{className:"text-secondary",children:t}):null,Cu=e=>Re.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("path",{d:"M2.25 13.5V12C2.25 11.5858 2.58579 11.25 3 11.25C3.41421 11.25 3.75 11.5858 3.75 12V13.5C3.75 13.6989 3.82907 13.8896 3.96973 14.0303C4.11038 14.1709 4.30109 14.25 4.5 14.25H6C6.41421 14.25 6.75 14.5858 6.75 15C6.75 15.4142 6.41421 15.75 6 15.75H4.5C3.90326 15.75 3.33114 15.5128 2.90918 15.0908C2.48722 14.6689 2.25 14.0967 2.25 13.5ZM14.25 6V4.5C14.25 4.30109 14.1709 4.11038 14.0303 3.96973C13.8896 3.82907 13.6989 3.75 13.5 3.75H12C11.5858 3.75 11.25 3.41421 11.25 3C11.25 2.58579 11.5858 2.25 12 2.25H13.5C14.0967 2.25 14.6689 2.48722 15.0908 2.90918C15.5128 3.33114 15.75 3.90326 15.75 4.5V6C15.75 6.41421 15.4142 6.75 15 6.75C14.5858 6.75 14.25 6.41421 14.25 6Z",fill:"currentColor"})),Eb=({children:e,open:t,disabled:s=!1,selectedValue:i,valueClassName:n,inputClassName:o,onOpen:r,elementId:a,errorText:l,invalid:c,emptyValueText:d,placeholder:u,editable:h=!1,onValueChange:f,collapseTagOverflow:m=!1,iconBefore:v})=>{const C=Array.isArray(i)&&i.length>0,w=typeof i=="string"&&!!i.trim(),b=C||w?i:u?void 0:d,x=s?void 0:r,y=p.useCallback(E=>{f?.(E.target.value)},[f]),S=()=>g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:re("dial-input px-3 py-2 dial-input-field flex flex-row items-center gap-x-2 w-full justify-between",o,s&&"dial-input-disable",(l||c)&&"dial-input-error"),children:[g.jsxs("div",{className:"flex flex-row items-center gap-x-2 flex-1 min-w-0",children:[v&&g.jsx(Oe,{icon:v}),g.jsx("input",{type:"text",className:re("flex-1 min-w-0 bg-transparent outline-none border-none p-0 dial-small-text text-primary placeholder:text-secondary",n),value:typeof i=="string"?i:"",placeholder:u||d,onChange:y,disabled:s,id:a,"aria-label":"input-popup-field"})]}),!s&&g.jsx("button",{type:"button",className:"shrink-0 cursor-pointer bg-transparent border-none p-0 ml-1",onClick:r,"aria-label":"open-popup",children:g.jsx(Oe,{icon:g.jsx(Cu,{role:"img",width:Zt,height:Zt})})})]}),g.jsx(Nt,{text:l})]}),F=()=>g.jsxs(g.Fragment,{children:[g.jsx("button",{type:"button",className:"w-full",onClick:x,"aria-label":"open-popup",id:a,children:g.jsxs("div",{className:re("dial-input px-3 py-2 dial-input-field flex flex-row items-center gap-x-2 w-full justify-between cursor-pointer",o,s&&"dial-input-disable",(l||c)&&"dial-input-error"),children:[g.jsxs("div",{className:"flex flex-row items-center gap-x-2 flex-1 min-w-0",children:[v&&g.jsx(Oe,{icon:v}),g.jsx(kt,{tooltip:b==null?void 0:String(b),children:b||!u?g.jsx("span",{className:n,children:b}):g.jsx("span",{className:"text-secondary",children:u})})]}),!s&&g.jsx("div",{className:"shrink-0",children:g.jsx(Oe,{icon:g.jsx(Cu,{role:"img",width:Zt,height:Zt})})})]})}),g.jsx(Nt,{text:l})]}),R=()=>g.jsx("div",{className:"w-full",onClick:x,children:g.jsxs("div",{className:re("dial-input px-3 py-2 flex flex-row items-center gap-x-2 w-full justify-between cursor-pointer",s&&"dial-input-disable"),children:[g.jsxs("div",{className:"flex flex-row items-center gap-x-2 flex-1 min-w-0",children:[v&&g.jsx(Oe,{icon:v}),g.jsx(Fb,{placeholder:u,selectedItems:b,collapseTagOverflow:m})]}),!s&&g.jsx("div",{className:"ml-1",children:g.jsx(Oe,{icon:g.jsx(Cu,{role:"img",width:Zt,height:Zt})})})]})});return g.jsxs(g.Fragment,{children:[C?R():h?S():F(),t&&Bo.createPortal(e,document.body)]})},tH=({label:e,htmlFor:t,disabled:s,selectedValue:i,radioButtons:n,customInputValue:o,valueClassName:r,inputClassName:a,emptyValueText:l,placeholder:c,onClose:d,header:u,portalId:h,onApply:f,onCancel:m,cancelButtonTitle:v="Cancel",applyButtonTitle:C="Apply",isValid:w,selectedRadioValue:b,onChangeRadioField:x,id:y,size:S=es.Md})=>{const[F,R]=p.useState(!1),E=p.useCallback(()=>{s||R(!0)},[s]),D=p.useCallback(()=>{R(!1),d?.()},[d]),T=p.useCallback(()=>{m?.(),D()},[m,D]),P=p.useCallback(()=>{f(),D()},[f,D]);return g.jsxs("div",{className:"flex flex-col gap-1",children:[g.jsx(Bi,{label:e,htmlFor:t}),g.jsx(Eb,{disabled:s,open:F,selectedValue:o??n.find(k=>k.id===i)?.name,valueClassName:r,inputClassName:re(a,"py-2","px-3"),emptyValueText:l,placeholder:c,onOpen:E,children:g.jsx(Hn,{open:F,onClose:T,header:u,portalId:h,size:S,footer:g.jsxs("div",{className:"flex flex-row items-center justify-end gap-2 px-6 py-4",children:[g.jsx(js,{label:v,onClick:T}),g.jsx(Bs,{label:C,onClick:P,disabled:!w})]}),children:g.jsx("div",{className:"px-6 py-4",children:g.jsx(Al,{radioButtons:n,labelClassName:"dial-small-text",activeRadioButton:b,onChange:x,elementId:y,orientation:Cn.Column})})})})]})},sH="Create",iH="Cancel",nH="flex items-center justify-end gap-2 px-6 py-3",oH=({header:e,open:t=!1,submitLabel:s=sH,cancelLabel:i=iH,isLoading:n=!1,disableSubmitButton:o=!1,className:r,submitClassName:a,onClose:l,onSubmit:c,onCancel:d,children:u,dividers:h=!0,size:f=es.Md,footer:m})=>{const v=n?null:g.jsxs("div",{className:nH,children:[g.jsx(js,{label:i,onClick:()=>d?d():l?.()}),g.jsx(Bs,{className:a,label:s,disabled:o,onClick:()=>c()})]}),C=p.useCallback(()=>n?g.jsx("div",{className:"px-6 py-4 h-[120px]",children:g.jsx(oa,{size:50})}):u??null,[u,n]);return g.jsx(Hn,{open:t,header:e,className:r,dividers:h,onClose:()=>l?.(),footer:m??v,size:f,children:C()})},rH="bg-layer-4 flex items-center justify-center enabled:text-secondary enabled:hover:text-accent-primary enabled:active:bg-controls-accent-primary-alpha-active enabled:hover:bg-accent-primary-alpha enabled:active:text-accent-primary",aH=({icon:e,onClick:t,disabled:s,size:i=et.Standard,className:n})=>g.jsx("div",{className:re("border-l border-tertiary",i===et.Standard?"h-[40px] w-[44px]":"h-[24px] w-[32px]"),children:g.jsx(ii,{className:re(rH,i===et.Small&&"p-1",n),icon:e,onClick:t,disabled:s,size:i})}),lH=["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Backspace","Delete","Tab","Enter","Escape","Home","End","Insert"],Db=(e,t,s,i)=>{if((t==="number"||s!==void 0||i!==void 0)&&!lH.includes(e.key)&&!(e.ctrlKey||e.metaKey)&&!(e.key==="-"&&(e.currentTarget.selectionStart??0)===0&&!e.currentTarget.value.includes("-"))&&!(e.key==="."&&t==="number"&&!e.currentTarget.value.includes("."))){if(!/^[0-9]$/.test(e.key)){e.preventDefault();return}if(s!==void 0||i!==void 0){const o=e.currentTarget.value,r=e.currentTarget.selectionStart||0,a=o.slice(0,r)+e.key+o.slice(r),l=parseFloat(a);if(!isNaN(l)){if(s!==void 0&&l<+s){e.preventDefault();return}if(i!==void 0&&l>+i){e.preventDefault();return}}}}},ai=({labelProps:e,error:t,caption:s,id:i,containerClassName:n,...o})=>g.jsxs("div",{className:$("flex flex-col gap-y-3",n),children:[e&&g.jsx(Bi,{...e,htmlFor:i}),g.jsx(Pb,{id:i,...o}),g.jsx(Nt,{text:t}),!t&&g.jsx(ia,{text:s})]}),Pb=({invalid:e,disabled:t,prefix:s,className:i,postfix:n,iconBefore:o,iconAfter:r,wrapperClassName:a,type:l,inputRef:c,value:d,tooltipText:u,min:h,onChange:f,max:m,inputButtonProps:v,...C})=>{const w=p.useRef(null),b=De.useMergeRefs([c,w]),x=l==="number"||h!==void 0||m!==void 0;p.useEffect(()=>{const R=w.current;if(!R||!x||t)return;const E=D=>{D.preventDefault()};return R.addEventListener("wheel",E,{passive:!1}),()=>{R.removeEventListener("wheel",E)}},[t,x,l]);const y=R=>{Db(R,l,h,m)},S=R=>{const E=R.currentTarget.value;if(x&&E!==""){const D=parseFloat(E);if(isNaN(D)&&E!=="-"&&E!=="."||!isNaN(D)&&(h!==void 0&&D<+h||m!==void 0&&D>+m))return}f?.(E||void 0)},F=()=>g.jsxs("div",{className:$("dial-input flex flex-row items-center gap-x-2 justify-between py-2",e&&"dial-input-error",t&&"dial-input-disable",!s&&"pl-3",!v&&"pr-3",a),"aria-label":"input-container",children:[s&&g.jsx("div",{className:"border-r border-tertiary",children:g.jsx(Pb,{wrapperClassName:"!rounded-r-none",className:"truncate",value:s,disabled:!0,id:`${s}_textBefore`})}),g.jsx(Oe,{icon:o}),g.jsx("input",{ref:b,type:l,autoComplete:l==="password"?"new-password":"off",value:d??"",className:$("border-0 bg-transparent w-full truncate",t&&"cursor-not-allowed",i),onChange:S,onKeyDown:y,min:h,disabled:t,max:m,...C}),n&&g.jsxs("p",{className:"text-secondary dial-small-text",children:[" ",n]}),g.jsx(Oe,{icon:r}),v&&g.jsx(aH,{...v,disabled:t})]});return t&&l!=="password"?g.jsx(kt,{tooltip:u||d,children:F()}):F()},cH=/^0+\.(\d+)?$/,dH=/^0+/,yh=({integer:e,onChange:t,min:s,max:i,onKeyDown:n,onPaste:o,...r})=>{const a=d=>!d||d==="-"?d:String(d)?.match(cH)?String(d)?.replace(dH,"0"):Number(d),l=d=>{if([".","-","+","e","E"].includes(d.key)){d.preventDefault();return}Db(d,"number",s,i)},c=d=>{const u=d.clipboardData.getData("text"),h=u.replace(/\D/g,"");if(h!==u&&(d.preventDefault(),h)){const f=d.currentTarget,m=f.selectionStart??0,v=f.selectionEnd??0,C=f.value.slice(0,m)+h+f.value.slice(v);t?.(a(C))}};return g.jsx(ai,{type:"number",min:s,max:i,onChange:d=>t?.(a(d)),onKeyDown:e?l:n,onPaste:e?c:o,...r})},uH=({onClick:e})=>g.jsx(_.IconEyeOff,{...te,className:"text-primary",onClick:e,role:"button","aria-label":"hide"}),hH=({onClick:e})=>g.jsx(_.IconEye,{...te,className:"text-primary",onClick:e,role:"button","aria-label":"show"}),Tb=({...e})=>{const[t,s]=p.useState(!1),i=p.useCallback(n=>{s(n)},[]);return g.jsx(ai,{type:t?"text":"password",...e,iconAfter:e.disabled?null:t?g.jsx(uH,{onClick:()=>i(!1)}):g.jsx(hH,{onClick:()=>i(!0)})})},pH={[et.Small]:{className:"dial-tiny-text",wrapperClassName:"pl-2 py-0",containerClassName:"h-[24px]",iconSize:16,iconStroke:1},[et.Standard]:{className:"dial-small-text",wrapperClassName:"",containerClassName:"",iconSize:20,iconStroke:1.5}},ng=({size:e=et.Standard,placeholder:t="Search...",value:s,onChange:i,withoutBorder:n,...o})=>{const[r,a]=p.useState(s||"");p.useEffect(()=>{a(s||"")},[s]);const l=p.useCallback(h=>{a(h||""),i?.(h||"")},[i]),c=pH[e],d=p.useCallback(()=>{l("")},[l]),u=p.useMemo(()=>{if(r)return{icon:g.jsx(_.IconX,{size:c.iconSize,"aria-label":"Clear search",role:"button"}),className:n?"bg-transparent":"",onClick:d,size:e}},[d,r,e,c.iconSize,n]);return g.jsx(ai,{placeholder:t,iconBefore:g.jsx(_.IconSearch,{size:c.iconSize,stroke:c.iconStroke}),value:r,onChange:l,inputButtonProps:u,containerClassName:c.containerClassName,className:c.className,wrapperClassName:$(c.wrapperClassName,n?"!border-0 ps-5 [&>div]:!border-0":""),...o})},kb=({options:e,selectedValues:t,handleRemoveTag:s})=>g.jsx("div",{className:"flex flex-wrap w-full items-center gap-1",children:t.map(i=>{const n=e.find(r=>r.value===i)?.label??i,o=e.find(r=>r.value===i)?.icon;return g.jsx(on,{label:n,onRemove:r=>s?.(r,i),icon:o?g.jsx(Oe,{icon:o}):null,className:"max-w-full"},i)})});var uc=(e=>(e.Sm="sm",e.Md="md",e))(uc||{}),hc=(e=>(e.Primary="Primary",e.Secondary="Secondary",e))(hc||{});const gH="dial-input flex w-full items-center justify-between gap-2 dial-small-text cursor-pointer",fH="w-full rounded flex flex-col",Hr="flex w-full items-center justify-between gap-2 px-3 h-[34px] dial-small-text text-primary truncate hover:bg-accent-primary-alpha focus:bg-accent-primary-alpha focus:outline-none",mH="bg-accent-primary-alpha",Sh="bg-accent-primary-alpha border-l border-accent-primary border-1",pc="opacity-75",vH=352,CH=4,wH=g.jsx(_.IconChevronDown,{size:nt.SM}),bH=({opt:e,selectedValues:t,onSelect:s})=>{const{isOpen:i,refs:n,floatingStyles:o,context:r,getReferenceProps:a,getFloatingProps:l}=ub(CH,"listbox",!!e.disabled),c=e.children?.some(d=>t.includes(d.value));return g.jsxs(g.Fragment,{children:[g.jsxs("button",{ref:n.setReference,type:"button",role:"option","aria-haspopup":"listbox","aria-expanded":i,"aria-selected":!!c,"aria-disabled":!!e.disabled,disabled:e.disabled,className:re(Hr,c&&Sh,e.disabled&&pc),...a(),children:[g.jsxs("div",{className:"flex items-center gap-2 w-full min-w-0",children:[e.icon&&g.jsx(Oe,{icon:e.icon}),g.jsx(bt,{text:e.label})]}),g.jsx(_.IconChevronRight,{size:14,className:"shrink-0"})]}),i&&g.jsx(hb,{refs:n,floatingStyles:o,context:r,getFloatingProps:l,role:"listbox",className:"w-max py-1",children:e.children.map(d=>{const u=t.includes(d.value);return g.jsx("button",{type:"button",role:"option","aria-selected":u,"aria-disabled":!!d.disabled,disabled:d.disabled,className:re(Hr,u&&Sh,d.disabled&&pc),onClick:()=>!d.disabled&&s(d.value),children:g.jsxs("div",{className:"flex items-center gap-2 w-full",children:[d.icon&&g.jsx(Oe,{icon:d.icon}),g.jsx(bt,{text:d.label})]})},d.value)})})]})},In=({options:e,multiple:t=!1,elementId:s,value:i,defaultValue:n,variant:o=hc.Primary,size:r=uc.Md,prefix:a,customSelectedValue:l,placeholder:c="Select...",searchable:d=!1,searchPlaceholder:u,selectAll:h=!1,invalid:f,selectAllLabel:m="Select all",emptyStateTitle:v="No options available",emptyStateDescription:C,emptyStateIcon:w,disabled:b=!1,className:x,listClassName:y,closable:S=!1,header:F,footer:R,onClose:E,onChange:D,inlineSearch:T=!1,dismissRef:P,onFooterClick:k,open:I,onOpenChange:H,onInlineQueryChange:M,customMultiSelectTagsRenderer:G})=>{const V=p.useId(),[B,K]=p.useState(!1),O=I!==void 0,A=O?!!I:B,W=p.useCallback(U=>{O||K(U),H?.(U)},[O,H]),[Y,ie]=p.useState(T&&l||""),be=p.useRef(null),Z=p.useCallback(U=>{U!==Y&&(ie(U||""),M?.(U||""))},[M,Y]),me=i!==void 0,[Ie,ne]=p.useState(n),ce=me?i:Ie,L=p.useMemo(()=>t?Array.isArray(ce)?ce:[]:typeof ce=="string"?[ce]:[],[ce,t]),ee=p.useMemo(()=>{const U=Y.trim().toLowerCase();return U?e.filter(Ne=>Ne.label.toLowerCase().includes(U)):e},[e,Y]);p.useEffect(()=>{!A&&!T&&Z("")},[T,A,Z]);const ye=p.useRef(l);p.useEffect(()=>{T&&l!==ye.current&&(A||(ye.current=l,Z(l||"")))},[l,T,A,Z]);const z=p.useCallback(U=>{me||ne(U),D?.(U)},[me,D]),le=p.useCallback(U=>{if(t){const Ne=new Set(L);Ne.has(U)?Ne.delete(U):Ne.add(U),z(Array.from(Ne));return}if(z(U),T){const Ne=e.find(vs=>vs.value===U)??e.flatMap(vs=>vs.children??[]).find(vs=>vs.value===U);Ne&&Z(Ne.label)}W(!1)},[t,z,T,W,L,e,Z]),ve=p.useCallback((U,Ne)=>{if(U.stopPropagation(),!t){z("");return}const vs=L.filter(qo=>qo!==Ne);z(vs)},[t,L,z]),Ee=p.useMemo(()=>ee.filter(U=>!U.disabled),[ee]),oe=p.useMemo(()=>Ee.filter(U=>L.includes(U.value)).length,[Ee,L]),xe=p.useCallback(U=>{T&&!t&&!U&&le(Y),W(U)},[le,T,t,Y,W]),{allSelectedInFiltered:Ae,someSelectedInFiltered:Pe}=p.useMemo(()=>{const U=Ee.length>0&&oe===Ee.length;return{allSelectedInFiltered:U,someSelectedInFiltered:oe>0&&!U}},[Ee,oe]),Ce=p.useCallback(()=>{if(!(!t||Ee.length===0))if(Ae){const U=new Set(Ee.map(Ne=>Ne.value));z(L.filter(Ne=>!U.has(Ne)))}else{const U=new Set(L);Ee.forEach(Ne=>U.add(Ne.value)),z(Array.from(U))}},[Ae,t,Ee,L,z]),Ve=L.length>0;p.useEffect(()=>{A&&T&&!t&&!b&&requestAnimationFrame(()=>{const U=be.current;if(!U)return;U.focus();const Ne=U.value?.length??0;U.setSelectionRange?.(Ne,Ne)})},[A,T,t,b]);const je=!t&&Ve?L[0]:void 0,Qe=p.useMemo(()=>je?e.find(U=>U.value===je)??e.flatMap(U=>U.children??[]).find(U=>U.value===je):void 0,[e,je]),Ze=p.useCallback(()=>t?Ve?G?.(e,L,ve)||g.jsx(kb,{options:e,selectedValues:L,handleRemoveTag:ve}):g.jsx("span",{className:"text-secondary truncate",children:c}):Qe?g.jsxs(g.Fragment,{children:[Qe.icon&&g.jsx(Oe,{icon:Qe.icon}),g.jsx(bt,{text:a?`${a} ${Qe.label}`:Qe.label}),Qe?.description&&g.jsx("div",{className:"text-secondary dial-small-text",children:Qe.description})]}):l&&i?l:g.jsx("span",{className:"text-secondary truncate",children:c}),[Ve,t,l,a,i,c,Qe,e,L,ve,G]);p.useImperativeHandle(P,()=>({dismiss:()=>{W(!1)}}));const yt=p.useCallback(()=>{Z(L.length===1?Qe?.label??Y:"")},[Y,L.length,Z,Qe?.label]),We=p.useCallback(()=>{b||(W(!A),T&&!t&&(yt(),be.current?.focus()))},[b,T,A,t,yt,W]);return g.jsx(Mt,{open:A,onOpenChange:xe,disabled:b,closable:S,onClose:E,placement:"bottom-start",allowedPlacements:["bottom-start","top-start"],maxDropdownHeight:d?null:vH,listClassName:y,renderOverlay:()=>g.jsxs("div",{id:`list-${s||V}`,role:"listbox","aria-multiselectable":t||void 0,className:fH,children:[F&&g.jsx(g.Fragment,{children:typeof F=="function"?F():F}),(d||S)&&e.length>8&&g.jsxs("div",{className:"flex items-center gap-2 px-2 pt-2",children:[d&&g.jsx(ng,{placeholder:u,onChange:Z,value:Y,id:`search-${s||V}`,containerClassName:"w-full"}),S&&g.jsx(Fs,{"aria-label":"Close select",className:"shrink-0",iconBefore:g.jsx(_.IconX,{size:nt.SM}),onClick:U=>{E?.(U),W(!1)}})]}),t&&h&&Ee.length>0&&g.jsx("div",{className:re(Hr,"mt-2"),children:g.jsx(Tu,{id:`${s||V}-selectAll`,label:m,checked:Ae,indeterminate:Pe,onChange:Ce,ariaLabel:m})}),g.jsx("div",{className:re("overflow-y-auto max-h-[352px]",T&&ee.length===0?"":"py-1"),children:ee.length===0?!T&&g.jsx("div",{className:"px-2 py-3",children:g.jsx(ra,{icon:w??g.jsx(_.IconClipboardX,{size:nt.LG,stroke:.5}),title:v,description:C})}):ee.map(U=>{const Ne=L.includes(U.value);return t?g.jsxs("div",{role:"option","aria-selected":Ne,"aria-disabled":!!U.disabled,className:re(Hr,Ne&&mH,U.disabled&&pc,"w-full"),children:[g.jsx(Tu,{id:`${s||V}-${U.value}`,label:g.jsxs("span",{className:"flex w-full flex-1 pl-2 min-w-0 items-center gap-2 text-primary",children:[U.icon&&g.jsx(Oe,{icon:U.icon}),g.jsx("span",{className:"truncate",children:U.label})]}),checked:Ne,disabled:U.disabled,onChange:()=>!U.disabled&&le(U.value),ariaLabel:U.label}),U.description&&g.jsx("div",{className:"text-secondary dial-small-text",children:U.description})]},U.value):U.children?.length?g.jsx(bH,{opt:U,selectedValues:L,onSelect:le},U.value):g.jsx("button",{role:"option",type:"button","aria-selected":Ne,"aria-disabled":!!U.disabled,disabled:U.disabled,className:re(Hr,Ne&&Sh,U.disabled&&pc),onClick:()=>!U.disabled&&le(U.value),children:g.jsxs("div",{className:"flex items-center gap-2 w-full",children:[U.icon&&g.jsx(Oe,{icon:U.icon}),g.jsx(bt,{text:U.label}),U.description&&g.jsx("div",{className:"text-secondary dial-small-text",children:U.description})]})},U.value)})}),R&&g.jsx("div",{onClick:U=>{k?.(U),k&&W(!1)},children:typeof R=="function"?R():R})]}),children:g.jsxs("div",{role:"button",tabIndex:0,"aria-roledescription":"button to open select list","aria-haspopup":"listbox","aria-expanded":A,"aria-controls":`list-${s||V}`,className:$(gH,b&&"opacity-75 !cursor-not-allowed !border-primary",r===uc.Sm?"min-h-[25px] px-1.5 py-1":"min-h-[38px] px-3 py-2",f&&"dial-input-error",o===hc.Secondary?"!bg-layer-4 !h-auto":"",x),onMouseDown:U=>{b||T&&!t&&(yt(),U.preventDefault())},onClick:()=>{We()},onKeyDown:U=>{(U.key===" "||U.code==="Space")&&(U.preventDefault(),We())},children:[T&&!t?g.jsx("div",{className:"flex min-w-0 items-center gap-2 text-primary flex-1",children:g.jsx("input",{id:`inline-${s||V}`,type:"text",placeholder:u??c,value:Y||"",onChange:U=>Z(U.currentTarget.value.trimStart()),onFocus:()=>!b&&W(!0),onMouseDown:U=>{yt(),U.stopPropagation()},onClick:U=>{U.stopPropagation()},onKeyDown:U=>{U.stopPropagation()},className:"bg-transparent outline-none w-full dial-small-text",ref:be,disabled:b,"aria-disabled":b,autoComplete:"off"})}):g.jsx("div",{className:"flex w-full min-w-0 items-center gap-2 text-primary",children:Ze()}),!T&&g.jsx(Oe,{icon:wH,className:re("text-primary",A&&"rotate-180")})]})})},xH=({label:e,required:t,captionDescription:s,containerClassName:i,selectClassName:n,error:o,id:r,caption:a,readonly:l,value:c,defaultEmptyText:d,...u})=>{const h=p.useCallback(()=>{if(!c||Array.isArray(c)&&c.length===0)return d??"None";if(Array.isArray(c))return g.jsx(kb,{options:u.options,selectedValues:c});{const f=u.options?.find(m=>m.value===c);return g.jsx("span",{"aria-readonly":!0,className:"text-primary",children:f?.label||c})}},[c,u.options,d]);return g.jsx(mc,{id:r,label:e,required:t,description:a,error:o,captionDescription:s,className:i,readonly:l,value:h(),defaultEmptyText:d,children:g.jsx(In,{className:n,value:c,elementId:r,invalid:!!o,...u})})};function Ib(e){let t=null;return()=>(t==null&&(t=e()),t)}function yH(e,t){return e.filter(s=>s!==t)}function SH(e,t){const s=new Set,i=o=>s.add(o);e.forEach(i),t.forEach(i);const n=[];return s.forEach(o=>n.push(o)),n}class RH{enter(t){const s=this.entered.length,i=n=>this.isNodeInDocument(n)&&(!n.contains||n.contains(t));return this.entered=SH(this.entered.filter(i),[t]),s===0&&this.entered.length>0}leave(t){const s=this.entered.length;return this.entered=yH(this.entered.filter(this.isNodeInDocument),t),s>0&&this.entered.length===0}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class FH{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(t=>{Object.defineProperty(this.item,t,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${t}" until the drop event.`),null}})})}loadDataTransfer(t){if(t){const s={};Object.keys(this.config.exposeProperties).forEach(i=>{const n=this.config.exposeProperties[i];n!=null&&(s[i]={value:n(t,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,s)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(t,s){return s===t.getSourceId()}endDrag(){}constructor(t){this.config=t,this.item={},this.initializeExposedProperties()}}const _c="__NATIVE_FILE__",Mb="__NATIVE_URL__",Ab="__NATIVE_TEXT__",Lb="__NATIVE_HTML__",Wm=Object.freeze(Object.defineProperty({__proto__:null,FILE:_c,HTML:Lb,TEXT:Ab,URL:Mb},Symbol.toStringTag,{value:"Module"}));function wu(e,t,s){const i=t.reduce((n,o)=>n||e.getData(o),"");return i??s}const Rh={[_c]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[Lb]:{exposeProperties:{html:(e,t)=>wu(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[Mb]:{exposeProperties:{urls:(e,t)=>wu(e,t,"").split(`
|
|
69
|
+
`),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[Ab]:{exposeProperties:{text:(e,t)=>wu(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function EH(e,t){const s=Rh[e];if(!s)throw new Error(`native type ${e} has no configuration`);const i=new FH(s);return i.loadDataTransfer(t),i}function bu(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(Rh).filter(s=>{const i=Rh[s];return i?.matchesTypes?i.matchesTypes.some(n=>t.indexOf(n)>-1):!1})[0]||null}const DH=Ib(()=>/firefox/i.test(navigator.userAgent)),Ob=Ib(()=>!!window.safari);class _m{interpolate(t){const{xs:s,ys:i,c1s:n,c2s:o,c3s:r}=this;let a=s.length-1;if(t===s[a])return i[a];let l=0,c=r.length-1,d;for(;l<=c;){d=Math.floor(.5*(l+c));const f=s[d];if(f<t)l=d+1;else if(f>t)c=d-1;else return i[d]}a=Math.max(0,c);const u=t-s[a],h=u*u;return i[a]+n[a]*u+o[a]*h+r[a]*u*h}constructor(t,s){const{length:i}=t,n=[];for(let f=0;f<i;f++)n.push(f);n.sort((f,m)=>t[f]<t[m]?-1:1);const o=[],r=[];let a,l;for(let f=0;f<i-1;f++)a=t[f+1]-t[f],l=s[f+1]-s[f],o.push(a),r.push(l/a);const c=[r[0]];for(let f=0;f<o.length-1;f++){const m=r[f],v=r[f+1];if(m*v<=0)c.push(0);else{a=o[f];const C=o[f+1],w=a+C;c.push(3*w/((w+C)/m+(w+a)/v))}}c.push(r[r.length-1]);const d=[],u=[];let h;for(let f=0;f<c.length-1;f++){h=r[f];const m=c[f],v=1/o[f],C=m+c[f+1]-h-h;d.push((h-m-C)*v),u.push(C*v*v)}this.xs=t,this.ys=s,this.c1s=c,this.c2s=d,this.c3s=u}}const PH=1;function Nb(e){const t=e.nodeType===PH?e:e.parentElement;if(!t)return null;const{top:s,left:i}=t.getBoundingClientRect();return{x:i,y:s}}function hl(e){return{x:e.clientX,y:e.clientY}}function TH(e){var t;return e.nodeName==="IMG"&&(DH()||!(!((t=document.documentElement)===null||t===void 0)&&t.contains(e)))}function kH(e,t,s,i){let n=e?t.width:s,o=e?t.height:i;return Ob()&&e&&(o/=window.devicePixelRatio,n/=window.devicePixelRatio),{dragPreviewWidth:n,dragPreviewHeight:o}}function IH(e,t,s,i,n){const o=TH(t),a=Nb(o?e:t),l={x:s.x-a.x,y:s.y-a.y},{offsetWidth:c,offsetHeight:d}=e,{anchorX:u,anchorY:h}=i,{dragPreviewWidth:f,dragPreviewHeight:m}=kH(o,t,c,d),v=()=>{let F=new _m([0,.5,1],[l.y,l.y/d*m,l.y+m-d]).interpolate(h);return Ob()&&o&&(F+=(window.devicePixelRatio-1)*m),F},C=()=>new _m([0,.5,1],[l.x,l.x/c*f,l.x+f-c]).interpolate(u),{offsetX:w,offsetY:b}=n,x=w===0||w,y=b===0||b;return{x:x?w:C(),y:y?b:v()}}class MH{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var t;return!((t=this.globalContext)===null||t===void 0)&&t.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var t;return((t=this.optionsArgs)===null||t===void 0?void 0:t.rootElement)||this.window}constructor(t,s){this.ownerDocument=null,this.globalContext=t,this.optionsArgs=s}}function AH(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function Um(e){for(var t=1;t<arguments.length;t++){var s=arguments[t]!=null?arguments[t]:{},i=Object.keys(s);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(s).filter(function(n){return Object.getOwnPropertyDescriptor(s,n).enumerable}))),i.forEach(function(n){AH(e,n,s[n])})}return e}class LH{profile(){var t,s;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((t=this.dragStartSourceIds)===null||t===void 0?void 0:t.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((s=this.dragOverTargetIds)===null||s===void 0?void 0:s.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const t=this.rootElement;if(t!==void 0){if(t.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");t.__isReactDndBackendSetUp=!0,this.addEventListeners(t)}}teardown(){const t=this.rootElement;if(t!==void 0&&(t.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var s;(s=this.window)===null||s===void 0||s.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(t,s,i){return this.sourcePreviewNodeOptions.set(t,i),this.sourcePreviewNodes.set(t,s),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDragSource(t,s,i){this.sourceNodes.set(t,s),this.sourceNodeOptions.set(t,i);const n=r=>this.handleDragStart(r,t),o=r=>this.handleSelectStart(r);return s.setAttribute("draggable","true"),s.addEventListener("dragstart",n),s.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(t),this.sourceNodeOptions.delete(t),s.removeEventListener("dragstart",n),s.removeEventListener("selectstart",o),s.setAttribute("draggable","false")}}connectDropTarget(t,s){const i=r=>this.handleDragEnter(r,t),n=r=>this.handleDragOver(r,t),o=r=>this.handleDrop(r,t);return s.addEventListener("dragenter",i),s.addEventListener("dragover",n),s.addEventListener("drop",o),()=>{s.removeEventListener("dragenter",i),s.removeEventListener("dragover",n),s.removeEventListener("drop",o)}}addEventListeners(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const t=this.monitor.getSourceId(),s=this.sourceNodeOptions.get(t);return Um({dropEffect:this.altKeyPressed?"copy":"move"},s||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const t=this.monitor.getSourceId(),s=this.sourcePreviewNodeOptions.get(t);return Um({anchorX:.5,anchorY:.5,captureDraggingState:!1},s||{})}isDraggingNativeItem(){const t=this.monitor.getItemType();return Object.keys(Wm).some(s=>Wm[s]===t)}beginDragNativeItem(t,s){this.clearCurrentDragSourceNode(),this.currentNativeSource=EH(t,s),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(t){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t;const s=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var i;return(i=this.rootElement)===null||i===void 0?void 0:i.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},s)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var t;(t=this.window)===null||t===void 0||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(t,s){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(s))}handleDragEnter(t,s){this.dragEnterTargetIds.unshift(s)}handleDragOver(t,s){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(s)}handleDrop(t,s){this.dropTargetIds.unshift(s)}constructor(t,s,i){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=n=>{const o=this.sourceNodes.get(n);return o&&Nb(o)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=n=>!!(n&&this.document&&this.document.body&&this.document.body.contains(n)),this.endDragIfSourceWasRemovedFromDOM=()=>{const n=this.currentDragSourceNode;n==null||this.isNodeInDocument(n)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=n=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(n||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=n=>{if(n.defaultPrevented)return;const{dragStartSourceIds:o}=this;this.dragStartSourceIds=null;const r=hl(n);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(o||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:r});const{dataTransfer:a}=n,l=bu(a);if(this.monitor.isDragging()){if(a&&typeof a.setDragImage=="function"){const d=this.monitor.getSourceId(),u=this.sourceNodes.get(d),h=this.sourcePreviewNodes.get(d)||u;if(h){const{anchorX:f,anchorY:m,offsetX:v,offsetY:C}=this.getCurrentSourcePreviewNodeOptions(),x=IH(u,h,r,{anchorX:f,anchorY:m},{offsetX:v,offsetY:C});a.setDragImage(h,x.x,x.y)}}try{a?.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(n.target);const{captureDraggingState:c}=this.getCurrentSourcePreviewNodeOptions();c?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(l)this.beginDragNativeItem(l);else{if(a&&!a.types&&(n.target&&!n.target.hasAttribute||!n.target.hasAttribute("draggable")))return;n.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=n=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var o;(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(n.dataTransfer)}if(!this.enterLeaveCounter.enter(n.target)||this.monitor.isDragging())return;const{dataTransfer:a}=n,l=bu(a);l&&this.beginDragNativeItem(l,a)},this.handleTopDragEnter=n=>{const{dragEnterTargetIds:o}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=n.altKey,o.length>0&&this.actions.hover(o,{clientOffset:hl(n)}),o.some(a=>this.monitor.canDropOnTarget(a))&&(n.preventDefault(),n.dataTransfer&&(n.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=n=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var o;(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(n.dataTransfer)}},this.handleTopDragOver=n=>{const{dragOverTargetIds:o}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){n.preventDefault(),n.dataTransfer&&(n.dataTransfer.dropEffect="none");return}this.altKeyPressed=n.altKey,this.lastClientOffset=hl(n),this.scheduleHover(o),(o||[]).some(a=>this.monitor.canDropOnTarget(a))?(n.preventDefault(),n.dataTransfer&&(n.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?n.preventDefault():(n.preventDefault(),n.dataTransfer&&(n.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=n=>{this.isDraggingNativeItem()&&n.preventDefault(),this.enterLeaveCounter.leave(n.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=n=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var o;n.preventDefault(),(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(n.dataTransfer)}else bu(n.dataTransfer)&&n.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=n=>{const{dropTargetIds:o}=this;this.dropTargetIds=[],this.actions.hover(o,{clientOffset:hl(n)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=n=>{const o=n.target;typeof o.dragDrop=="function"&&(o.tagName==="INPUT"||o.tagName==="SELECT"||o.tagName==="TEXTAREA"||o.isContentEditable||(n.preventDefault(),o.dragDrop()))},this.options=new MH(s,i),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new RH(this.isNodeInDocument)}}const OH=function(t,s,i){return new LH(t,s,i)},NH=({onChange:e,emptyTextFirstLine:t,emptyTextSecondLine:s,emptyButtonLabel:i,acceptTypes:n,maxFilesCount:o,multiple:r,fileFormatError:a,fileCountError:l,fileSizeError:c,getIsFileFormatError:d,getIsFileSizeError:u})=>{const h=p.useRef(null),f=p.useRef(null),[m,v]=p.useState([]),[C,w]=p.useState(!1),[b,x]=p.useState(!1),y=p.useCallback(G=>{const V=G.target.files;if(V&&V.length>0){const B=Array.from(V),K=d?.(B),O=u?.(B);K?w(!0):O?x(!0):e(B)}},[d,u,e]),S=p.useCallback(G=>o&&G?.length>o,[o]),F=p.useMemo(()=>C||b||S(m),[C,b,S,m]),R=()=>{v([]),w(!1),x(!1)},E=p.useMemo(()=>C?g.jsx(Nt,{text:a}):b?g.jsx(Nt,{text:c}):S(m)?g.jsx(Nt,{text:l}):null,[l,a,c,m,S,C,b]);p.useEffect(()=>{R()},[n]);const[{isOver:D,canDrop:T},P]=Gh(()=>({accept:[_c],drop(G){const V=G.files,B=d?.(V)??!1,K=u?.(V)??!1,O=S?.(V)??!1;if(w(B),x(K),B||K||O){v(V);return}e(V),R()},collect:G=>({isOver:G.isOver(),canDrop:G.canDrop()})}),[e,d,u,S]),k=G=>{(G.key==="Enter"||G.key==="Space")&&(G.preventDefault(),f.current?.click())},I=G=>{G?.preventDefault();const V=Array.from(G.dataTransfer?.items??[]);w(!!d?.(V)),x(!!u?.(V)),v(V)},H=G=>{G.target===G.currentTarget&&R()},M=re("border border-dashed rounded w-full cursor-pointer relative h-full hover:border-hover",!T&&!F&&"border-primary",T&&(D?"border-accent-primary":"border-hover"),F&&"border-error");return P(h),g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:M,ref:h,onDragOver:I,onDragLeave:H,children:[g.jsxs("label",{htmlFor:"file",tabIndex:0,onKeyDown:k,className:"flex flex-col items-center cursor-pointer size-full text-secondary dial-tiny-text justify-center",children:[t&&g.jsx("p",{className:"mb-1",children:t}),s&&g.jsx("p",{className:"mb-0.5",children:s}),i&&g.jsx(Bs,{appearance:ke.Ghost,label:i,onClick:()=>f.current?.click()})]}),g.jsx("input",{multiple:r,id:"file",type:"file",ref:f,hidden:!0,accept:n,onChange:y})]}),g.jsx(g.Fragment,{children:E})]})},HH=({iconBefore:e,className:t,...s})=>{const i=s.invalid,n=()=>g.jsx("div",{className:"mr-2",children:i?g.jsx(_.IconExclamationCircle,{...te,className:"text-error"}):e});return g.jsx(ai,{...s,iconBefore:n(),containerClassName:re("h-[40px] p-0",i&&"h-[60px]"),className:re("rounded-r-none border-r-0",i&&"text-error",t)})},BH=({children:e,existingFiles:t,onDrop:s,getIsFileFormatError:i,getIsFileSizeError:n,maxFilesCount:o,fileFormatError:r,fileSizeError:a,fileCountError:l})=>{const c=p.useRef(null),[d,u]=p.useState(!1),[h,f]=p.useState(!1),[m,v]=p.useState(0),C=p.useCallback(()=>{u(!1),f(!1),v(0)},[]),w=p.useCallback(D=>!!(o&&t.length+D.length>o),[o,t.length]),b=d||h,[{isOver:x,canDrop:y},S]=Gh(()=>({accept:[_c],drop(D){const T=D.files,P=[...t,...T],k=i?.(T)??!1,I=n?.(T)??!1,H=w?.(T)??!1;if(u(k),f(I),k||I||H){v(T.length);return}s(P),C()},collect:D=>({isOver:D.isOver(),canDrop:D.canDrop()})}),[t,s,i,n,w,C]),F=D=>{D.preventDefault();const T=Array.from(D.dataTransfer?.items??[]);u(!!i?.(T)),f(!1),v(T.length)},R=D=>{D.target===D.currentTarget&&C()};S(c);const E=w(Array.from({length:m}));return g.jsxs("div",{className:"h-full flex flex-col",children:[g.jsx("div",{ref:c,onDragOver:F,onDragLeave:R,className:re("flex-1 min-h-0 border border-solid rounded p-2 overflow-y-auto",!b&&!E&&(y&&x?"border-accent-primary":"border-primary"),(b||E)&&"border-error"),children:e}),d&&g.jsx(Nt,{text:r}),h&&g.jsx(Nt,{text:a}),!d&&!h&&E&&g.jsx(Nt,{text:l})]})},Hb=e=>{const{files:t,iconBeforeInput:s,dynamicIcon:i,onChange:n,isInvalid:o,errorText:r,removeButtonAriaLabel:a,getIsMultiFilesSizeError:l,multiFilesSizeError:c,getIsFileFormatError:d,getIsFileSizeError:u,maxFilesCount:h}=e,f=p.useCallback((C,w)=>{C.stopPropagation(),n(t?.filter(b=>b.name!==w)||[])},[n,t]),m=p.useCallback(C=>g.jsx(jc,{"aria-label":a,onClick:w=>f(w,C)}),[a,f]),v=p.useMemo(()=>g.jsx("div",{className:"flex flex-col gap-y-1",children:t?.map((C,w)=>g.jsx(HH,{id:C.name,value:C.name,iconAfter:m(C.name),iconBefore:s||i?.(C.name),invalid:o?.(C),error:o?.(C)?r:""},C.name+w))}),[t,s,i,o,r,m]);return g.jsx(NS,{backend:OH,children:!t||t.length===0?g.jsx(NH,{...e,onChange:n}):g.jsxs(g.Fragment,{children:[g.jsx(BH,{existingFiles:t,onDrop:n,getIsFileFormatError:d,getIsFileSizeError:u,maxFilesCount:h,fileFormatError:e.fileFormatError,fileSizeError:e.fileSizeError,fileCountError:e.fileCountError,children:v}),l?.(t)&&g.jsx(Nt,{text:c})]})})},GH=({onChange:e,fieldTitle:t,elementId:s,files:i,maxFilesCount:n,maxFileSize:o,maxMultiFilesSize:r,fileFormatError:a,fileCountError:l,fileSizeError:c,multiFilesSizeError:d,multiple:u=!0,acceptTypes:h,deleteAllButtonLabel:f,addButtonLabel:m,additionalActionButtons:v,...C})=>{const w=p.useRef(null),b=()=>w.current?.click(),x=()=>{e([])},y=p.useCallback(E=>E?.some(D=>!(h==="/"||h?.toLowerCase()?.includes(D?.type?.toLowerCase()))),[h]),S=p.useCallback(E=>{if(!o)return!1;const D=o*(1024*1024);return E?.some(T=>{const P=T.size;return!!P&&P>D})},[o]),F=p.useCallback(E=>{if(!r||!u)return!1;const D=r*1024*1024;return E.reduce((P,k)=>P+k.size,0)>D},[r,u]),R=p.useCallback(E=>{const D=E.target.files;if(D&&D.length>0){const T=Array.from(D),P=y(T),k=S(T);!P&&!k&&e([...i||[],...T])}},[y,S,e,i]);return g.jsxs("div",{className:"h-full flex flex-col",children:[g.jsxs("div",{className:"flex justify-between items-center pb-1 min-h-[42px]",children:[g.jsx(Bi,{label:`${t}: ${u?i?.length||0:""}`,htmlFor:s}),u&&!!i?.length&&g.jsxs("div",{className:"flex flex-row items-center gap-x-2",children:[g.jsx(js,{label:f,iconBefore:g.jsx(_.IconTrashX,{...te}),onClick:x}),(n?n>i?.length:!0)&&g.jsx(Bs,{appearance:ke.Ghost,iconBefore:g.jsx(_.IconPlus,{...te}),label:m,onClick:b}),v]})]}),i&&i.length>0&&g.jsx("input",{id:"file",type:"file",multiple:u,ref:w,hidden:!0,accept:h,onChange:R}),g.jsx(Hb,{files:i,onChange:e,acceptTypes:h,maxFilesCount:n,multiple:u,fileFormatError:a,fileCountError:l,fileSizeError:c,multiFilesSizeError:d,getIsFileFormatError:y,getIsFileSizeError:S,getIsMultiFilesSizeError:F,...C})]})},VH=g.jsx(_.IconChevronDown,{size:nt.SM}),zH=g.jsx(_.IconChevronUp,{size:nt.SM}),Fh=({variant:e,appearance:t,items:s,...i})=>{const[n,o]=p.useState(!1),r=p.useMemo(()=>n?zH:VH,[n]);return g.jsx("div",{children:g.jsx(Mt,{items:s,onOpenChange:a=>o(a),children:g.jsx(Fs,{...i,iconAfter:r,variant:e||Ye.Primary,appearance:t||ke.Solid})})})},jH=({icon:e,ariaLabel:t,size:s=et.Standard,disabled:i=!1,className:n,buttonClassName:o,iconClassName:r,caretIcon:a=g.jsx(_.IconChevronDown,{size:nt.SM}),showCaret:l=!0,placement:c="bottom-start",matchReferenceWidth:d=!1,open:u,onOpenChange:h,defaultOpen:f=!1,...m})=>{const v=s===et.Small,[C,w]=p.useState(f),b=u??C,x=v?"w-8 px-0":"w-10 px-0",y={[et.Small]:"size-5",[et.Standard]:"size-6",[et.Large]:"size-7"},S=F=>{w(F),h?.(F)};return g.jsx(Mt,{...m,disabled:i,placement:c,matchReferenceWidth:d,className:n,open:b,onOpenChange:S,defaultOpen:f,children:g.jsxs("button",{type:"button","aria-label":t,disabled:i,className:$("group flex items-center justify-center rounded border border-transparent bg-layer-4 text-primary","enabled:hover:bg-accent-primary-alpha enabled:active:bg-controls-accent-primary-alpha-active","focus-visible:border-focus focus-visible:outline-none disabled:cursor-not-allowed disabled:text-controls-secondary-disable disabled:opacity-75",v?"h-8 px-2":"h-10 px-2",l?void 0:x,o),children:[g.jsx(Oe,{icon:e,className:$("flex items-center justify-center text-inherit",y[s],l&&"-mr-2",r)}),l&&g.jsxs("div",{className:"relative z-10 inline-grid size-5 shrink-0 place-items-center",children:[g.jsx("div",{className:"absolute inset-0 rounded-full bg-layer-2"}),g.jsx(Oe,{icon:a,className:$("relative flex items-center justify-center text-secondary transition-transform group-hover:text-primary group-disabled:text-controls-secondary-disable",b&&"rotate-180")})]})]})})},Bb=e=>Re.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.1812 1.2002H2.80615C2.43319 1.2002 2.07551 1.34835 1.81178 1.61208C1.54806 1.8758 1.3999 2.23348 1.3999 2.60645V5.48145C1.3999 5.85441 1.54806 6.21209 1.81178 6.47581C2.07551 6.73954 2.43319 6.8877 2.80615 6.8877H15.1812C15.5541 6.8877 15.9118 6.73954 16.1755 6.47581C16.4392 6.21209 16.5874 5.85441 16.5874 5.48145V2.60645C16.5874 2.23348 16.4392 1.8758 16.1755 1.61208C15.9118 1.34835 15.5541 1.2002 15.1812 1.2002ZM14.8999 5.2002H3.0874V2.8877H14.8999V5.2002ZM12 7.80017C12.3107 7.80017 12.5625 8.05201 12.5625 8.36267V11.7377H15.9375C16.2482 11.7377 16.5 11.9895 16.5 12.3002C16.5 12.6108 16.2482 12.8627 15.9375 12.8627H12.5625V16.2377C12.5625 16.5483 12.3107 16.8002 12 16.8002C11.6893 16.8002 11.4375 16.5483 11.4375 16.2377V12.8627H8.0625C7.75184 12.8627 7.5 12.6108 7.5 12.3002C7.5 11.9895 7.75184 11.7377 8.0625 11.7377H11.4375V8.36267C11.4375 8.05201 11.6893 7.80017 12 7.80017ZM2.41188 12.5883C2.14816 12.3246 2 11.9669 2 11.5939V9.00018H3.6875V11.3127H6.1001V13.0002H3.40625C3.03329 13.0002 2.6756 12.852 2.41188 12.5883Z",fill:"currentColor"})),Gb=e=>Re.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("path",{d:"M9.00049 7.7998C9.3108 7.80007 9.56279 8.05198 9.56299 8.3623V11.7373H12.938C13.2483 11.7376 13.5003 11.9895 13.5005 12.2998C13.5005 12.6103 13.2484 12.862 12.938 12.8623H9.56299V16.2373C9.56299 16.5478 9.31092 16.7995 9.00049 16.7998C8.68983 16.7998 8.43799 16.548 8.43799 16.2373V12.8623H5.06299C4.75233 12.8623 4.50049 12.6105 4.50049 12.2998C4.50069 11.9893 4.75245 11.7373 5.06299 11.7373H8.43799V8.3623C8.43819 8.05181 8.68995 7.7998 9.00049 7.7998ZM15.1812 1.2002C15.5541 1.2002 15.9116 1.34858 16.1753 1.6123C16.439 1.87603 16.5874 2.23348 16.5874 2.60645V5.48145C16.5874 5.85441 16.439 6.21186 16.1753 6.47559C15.9116 6.73931 15.5541 6.8877 15.1812 6.8877H2.80615C2.43319 6.8877 2.07573 6.73931 1.81201 6.47559C1.54829 6.21186 1.3999 5.85441 1.3999 5.48145V2.60645C1.3999 2.23348 1.54829 1.87603 1.81201 1.6123C2.07573 1.34858 2.43319 1.2002 2.80615 1.2002H15.1812ZM3.0874 2.8877V5.2002H14.8999V2.8877H3.0874Z",fill:"currentColor"})),og=e=>Re.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("path",{d:"M3.009 12.5527C2.77901 12.4216 2.5877 12.2321 2.45443 12.0034C2.32116 11.7746 2.25064 11.5147 2.25 11.25V3.75C2.25 2.925 2.925 2.25 3.75 2.25H11.25C11.8125 2.25 12.1185 2.53875 12.375 3M10.5 15.75H7.25025C6.98757 15.75 6.72747 15.6983 6.48479 15.5977C6.24211 15.4972 6.0216 15.3499 5.83586 15.1641C5.65012 14.9784 5.50278 14.7579 5.40226 14.5152C5.30174 14.2725 5.25 14.0124 5.25 13.7498V7.25025C5.25 6.71975 5.46074 6.21098 5.83586 5.83586C6.21098 5.46074 6.71975 5.25 7.25025 5.25H13.7498C14.0124 5.25 14.2725 5.30174 14.5152 5.40226C14.7579 5.50278 14.9784 5.65012 15.1641 5.83586C15.3499 6.0216 15.4972 6.24211 15.5977 6.48479C15.6983 6.72747 15.75 6.98757 15.75 7.25025V10.5M12.75 16.5L16.5 12.75M16.5 12.75V16.125M16.5 12.75H13.125",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),rg=e=>Re.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("path",{d:"M9.75 14.25H3.75C3.35218 14.25 2.97064 14.092 2.68934 13.8107C2.40804 13.5294 2.25 13.1478 2.25 12.75V4.5C2.25 4.10218 2.40804 3.72064 2.68934 3.43934C2.97064 3.15804 3.35218 3 3.75 3H6.75L9 5.25H14.25C14.6478 5.25 15.0294 5.40804 15.3107 5.68934C15.592 5.97064 15.75 6.35218 15.75 6.75V9.75M12 16.5L15.75 12.75M15.75 12.75V16.125M15.75 12.75H12.375",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),ag=e=>Re.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},Re.createElement("path",{d:"M4.5 15.75V14.25C4.5 13.4544 4.81607 12.6913 5.37868 12.1287C5.94129 11.5661 6.70435 11.25 7.5 11.25H9.75M15.75 12.75L12 16.5M12 16.5V13.125M12 16.5H15.375M6 5.25C6 6.04565 6.31607 6.80871 6.87868 7.37132C7.44129 7.93393 8.20435 8.25 9 8.25C9.79565 8.25 10.5587 7.93393 11.1213 7.37132C11.6839 6.80871 12 6.04565 12 5.25C12 4.45435 11.6839 3.69129 11.1213 3.12868C10.5587 2.56607 9.79565 2.25 9 2.25C8.20435 2.25 7.44129 2.56607 6.87868 3.12868C6.31607 3.69129 6 4.45435 6 5.25Z",stroke:"#7F8792",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}));var go=(e=>(e.MyFiles="my_files",e.Shared="shared",e.Organization="organization",e.Review="review",e))(go||{}),X=(e=>(e.AddSibling="addSibling",e.AddChild="addChild",e.Duplicate="duplicate",e.Copy="copy",e.Move="move",e.Download="download",e.Delete="delete",e.Rename="rename",e.Info="info",e.Unshare="unshare",e.RemoveAccess="removeAccess",e.ManagePermissions="managePermissions",e.Preview="preview",e.OpenInNewTab="openInNewTab",e))(X||{}),vt=(e=>(e.Replace="replace",e.Duplicate="duplicate",e.Cancel="cancel",e))(vt||{}),Yt=(e=>(e.ReplaceAll="replaceAll",e.DuplicateAll="duplicateAll",e.DecideForEach="decideForEach",e))(Yt||{}),Ct=(e=>(e.Copy="copy",e.Move="move",e))(Ct||{}),Eo=(e=>(e.Tree="tree",e.Grid="grid",e))(Eo||{}),nn=(e=>(e.Tree="tree",e.Grid="grid",e))(nn||{}),Cs=(e=>(e.Folder="folder",e.Child="child",e.Sibling="sibling",e))(Cs||{}),wt=(e=>(e.Name="name",e.UpdatedAt="updatedAt",e.Size="size",e.Author="author",e.Owner="owner",e.Path="path",e.Actions="__actions",e.Version="version",e))(wt||{});const WH="w-full h-full grid grid-rows-[auto_1fr] gap-5 p-6 overflow-hidden min-w-0 bg-layer-1",$m="w-full text-secondary flex items-center gap-2",_H="flex min-h-0 min-w-0 h-full gap-4 overflow-hidden",UH="flex flex-col flex-1 min-h-0 min-w-0 h-full gap-4",$H="h-full rounded bg-layer-3 text-secondary min-w-0",qH="flex-1 w-full rounded text-secondary overflow-auto min-h-0 min-w-0",KH="opacity-0 pointer-events-none group-hover/grid-row:opacity-100 group-hover/grid-row:pointer-events-auto",YH=280,ZH="Files",Pi=20,XH="Files",xu=".dial_folder",qm="New folder",QH=280,JH=460,Km=44,eB=800,tB=[wt.Name,wt.UpdatedAt,wt.Size,wt.Author,wt.Actions];var we=(e=>(e.ITEM="item",e.FOLDER="folder",e))(we||{}),lg=(e=>(e.FILE="FILE",e.PROMPT="PROMPT",e.CONVERSATION="CONVERSATION",e.APPLICATION="APPLICATION",e.TOOLSET="TOOL_SET",e))(lg||{}),Bn=(e=>(e.READ="READ",e.WRITE="WRITE",e.SHARE="SHARE",e))(Bn||{});const Ym=({open:e,onClose:t,onReplace:s,onDuplicate:i,onDecideForEach:n,conflictingFiles:o,singleFileTitle:r="Replace Or Duplicate Item",multipleFilesTitle:a="Replace Or Duplicate Items",message:l,actionLabels:c,strategyLabels:d,confirmLabel:u="Confirm",cancelLabel:h="Cancel",nameColumnLabel:f="Name",actionColumnLabel:m="Action"})=>{const v=o.length===1,C=v?o[0]?.name:"",w=c?.[vt.Replace]??"Replace",b=c?.[vt.Duplicate]??"Duplicate",x=c?.[vt.Cancel]??"Cancel",y=d?.[Yt.ReplaceAll]??"Replace all",S=d?.[Yt.DuplicateAll]??"Duplicate all",F=d?.[Yt.DecideForEach]??"Decide for each",[R,E]=p.useState(vt.Replace),[D,T]=p.useState(Yt.ReplaceAll),[P,k]=p.useState(new Map(o.map(Z=>[Z.path,vt.Replace]))),[I,H]=p.useState(void 0),M=v?r:a,G=g.jsxs(g.Fragment,{children:["Item with the name ",g.jsxs("span",{className:"text-primary",children:['"',C,'"']})," ","already exists in this destination."]}),V=`${o.length} items with the same names already exist in this destination.`,B=l??(v?G:V),K=p.useMemo(()=>[{id:vt.Replace,name:w},{id:vt.Duplicate,name:b}],[w,b]),O=p.useMemo(()=>o.map(Z=>({id:Z.path,name:Z.name,path:Z.path,nodeType:Z.nodeType??we.ITEM,action:P.get(Z.path)||vt.Replace})),[o,P]),A=p.useMemo(()=>[{field:"name",headerName:f,flex:1,minWidth:200,floatingFilter:!1,filter:!1,resizable:!1,cellRenderer:Z=>Z.data?.nodeType===we.FOLDER?g.jsx(Sc,{name:Z.data.name,iconSize:Pi}):g.jsx(yc,{name:Z.data.name,iconSize:Pi})},{field:"action",headerName:m,width:140,suppressSizeToFit:!0,sortable:!1,filter:!1,floatingFilter:!1,resizable:!1,cellRenderer:Z=>{if(!Z.data)return null;const me=[{key:vt.Replace,label:w,icon:g.jsx(_.IconCircleFilled,{size:10,className:"text-accent-tertiary"})},{key:vt.Duplicate,label:b,icon:g.jsx(_.IconCircleFilled,{size:10,className:"text-accent-secondary"})},{key:vt.Cancel,label:x,icon:g.jsx(_.IconCircleFilled,{size:10,className:"text-error"})}],Ie=me.find(ce=>ce.key===Z.data.action),ne=I===Z.data.path;return g.jsx("div",{className:"flex items-center h-full",children:g.jsx(Mt,{trigger:[Qt.Click],open:ne,items:me,onItemClick:({key:ce})=>{k(L=>{const ee=new Map(L);return ee.set(Z.data.path,ce),ee}),H(void 0)},placement:"bottom-start",matchReferenceWidth:!1,allowedPlacements:["bottom-start","top-start"],onOpenChange:ce=>{H(ce?Z.data.path:void 0)},children:g.jsxs("button",{type:"button",className:"flex items-center gap-2",children:[g.jsxs("span",{className:"flex items-center gap-2",children:[Ie?.icon,Ie?.label??w]}),g.jsx(_.IconChevronDown,{size:nt.SM,className:re("text-secondary transition-transform",ne&&"rotate-180")})]})})})}}],[f,m,w,b,x,I]),W=p.useMemo(()=>[{id:Yt.ReplaceAll,name:y},{id:Yt.DuplicateAll,name:S},{id:Yt.DecideForEach,name:F,content:D===Yt.DecideForEach?g.jsx("div",{className:"mt-4",children:g.jsx(tg,{columnDefs:A,rowData:O,getRowId:Z=>Z.id,wrapCustomCellRenderers:!1,alternateOddRowColors:!1,additionalGridOptions:{domLayout:"autoHeight"}})}):void 0}],[y,S,F,D,A,O]),Y=p.useCallback(()=>{E(vt.Replace),T(Yt.ReplaceAll),k(new Map(o.map(Z=>[Z.path,vt.Replace])))},[o]),ie=p.useCallback(()=>{Y(),t()},[Y,t]),be=p.useCallback(()=>{if(Y(),v)R===vt.Replace?s():i();else if(D===Yt.ReplaceAll)s();else if(D===Yt.DuplicateAll)i();else if(D===Yt.DecideForEach&&n){const Z=o.map(me=>({file:me,action:P.get(me.path)||vt.Replace}));n(Z)}},[Y,v,R,s,i,D,n,o,P]);return g.jsx(Hn,{open:e,onClose:ie,size:v?es.Sm:es.Md,className:re([!v&&"w-[600px]"]),header:M,dividers:!1,preventKeyboardOnOpen:!0,footer:g.jsxs("div",{className:"flex justify-end gap-3 py-4 px-6 border-t border-tertiary",children:[g.jsx(js,{onClick:ie,label:h}),g.jsx(Bs,{onClick:be,label:u})]}),children:g.jsxs("div",{className:"px-6 py-4",children:[g.jsx("p",{className:"text-secondary mb-4 break-words",children:B}),v?g.jsx(Al,{elementId:"single-file-conflict",radioButtons:K,activeRadioButton:R,orientation:Cn.Column,onChange:Z=>E(Z)}):g.jsx(Al,{elementId:"multiple-files-conflict",radioButtons:W,activeRadioButton:D,orientation:Cn.Column,onChange:Z=>T(Z),formItemChildrenClassName:"gap-3"})]})})},sB=({getContextMenuItems:e,isRowDisabled:t,allowedFileTypes:s,maxSelectableFileSize:i,buttonClassName:n})=>{const o=p.useRef(e);p.useEffect(()=>{o.current=e},[e]);const r=p.useCallback(l=>{if(!l.data||t(l.data,s,i))return null;const d=l.data?o.current?.(l.data)??[]:[];return d.length?g.jsx(Mt,{placement:"bottom-start",allowedPlacements:["top-start","top-end","bottom-start"],items:d,className:$("sticky right-0",n),children:g.jsx(Oe,{className:"text-secondary mx-2 flex flex-row gap-2 hover:text-accent-primary cursor-default",icon:g.jsx(_.IconDotsVertical,{...te})})}):null},[s,i,n,t]);return{actionsColumnDef:p.useMemo(()=>({colId:"__actions",headerName:"",width:44,minWidth:44,maxWidth:44,suppressSizeToFit:!0,sortable:!1,resizable:!1,filter:!1,floatingFilter:!1,cellRenderer:r}),[r])}},iB=({onRename:e})=>{const[t,s]=p.useState(Eo.Grid),i=p.useCallback(o=>{e(o),s(Eo.Grid)},[e]),n=p.useCallback(o=>{e(o),s(Eo.Tree)},[e]);return{renameTriggerView:t,onGridRename:i,onTreeRename:n}};function nB(e,t){const s=p.useRef(null),[i,n]=p.useState(!1);return p.useEffect(()=>{if(!s.current)return;const o=new ResizeObserver(([r])=>{const a=r.contentRect.width;n(a<e)});return o.observe(t?.current||s?.current),()=>o.disconnect()},[e,t]),{containerRef:s,isBelowBreakpoint:i}}var yu={};const oB={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/ace+json":{source:"iana",compressible:!0},"application/ace-groupcomm+cbor":{source:"iana"},"application/ace-trl+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/aif+cbor":{source:"iana"},"application/aif+json":{source:"iana",compressible:!0},"application/alto-cdni+json":{source:"iana",compressible:!0},"application/alto-cdnifilter+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-propmap+json":{source:"iana",compressible:!0},"application/alto-propmapparams+json":{source:"iana",compressible:!0},"application/alto-tips+json":{source:"iana",compressible:!0},"application/alto-tipsparams+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/appinstaller":{compressible:!1,extensions:["appinstaller"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/appx":{compressible:!1,extensions:["appx"]},"application/appxbundle":{compressible:!1,extensions:["appxbundle"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/automationml-aml+xml":{source:"iana",compressible:!0,extensions:["aml"]},"application/automationml-amlx+zip":{source:"iana",compressible:!1,extensions:["amlx"]},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/bufr":{source:"iana"},"application/c2pa":{source:"iana"},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/ce+cbor":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/cid-edhoc+cbor-seq":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/city+json-seq":{source:"iana"},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-eap":{source:"iana"},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/concise-problem-details+cbor":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cose-x509":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwl":{source:"iana",extensions:["cwl"]},"application/cwl+json":{source:"iana",compressible:!0},"application/cwl+yaml":{source:"iana"},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana",extensions:["dcm"]},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dpop+jwt":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/eat+cwt":{source:"iana"},"application/eat+jwt":{source:"iana"},"application/eat-bun+cbor":{source:"iana"},"application/eat-bun+json":{source:"iana",compressible:!0},"application/eat-ucs+cbor":{source:"iana"},"application/eat-ucs+json":{source:"iana",compressible:!0},"application/ecmascript":{source:"apache",compressible:!0,extensions:["ecma"]},"application/edhoc+cbor-seq":{source:"iana"},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.legacyesn+json":{source:"iana",compressible:!0},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/entity-statement+jwt":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdf":{source:"iana",extensions:["fdf"]},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geopose+json":{source:"iana",compressible:!0},"application/geoxacml+json":{source:"iana",compressible:!0},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gnap-binding-jws":{source:"iana"},"application/gnap-binding-jwsd":{source:"iana"},"application/gnap-binding-rotation-jws":{source:"iana"},"application/gnap-binding-rotation-jwsd":{source:"iana"},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/grib":{source:"iana"},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"iana",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"apache",charset:"UTF-8",compressible:!0,extensions:["js"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/jscontact+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jsonpath":{source:"iana"},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwk-set+jwt":{source:"iana"},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/linkset":{source:"iana"},"application/linkset+json":{source:"iana",compressible:!0},"application/load-control+xml":{source:"iana",compressible:!0},"application/logout+jwt":{source:"iana"},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4","mpg4","mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msix":{compressible:!1,extensions:["msix"]},"application/msixbundle":{compressible:!1,extensions:["msixbundle"]},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!0,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/ohttp-keys":{source:"iana"},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg","one","onea"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["sig","asc"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/private-token-issuer-directory":{source:"iana"},"application/private-token-request":{source:"iana"},"application/private-token-response":{source:"iana"},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/provided-claims+jwt":{source:"iana"},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.implied-document+xml":{source:"iana",compressible:!0},"application/prs.implied-executable":{source:"iana"},"application/prs.implied-object+json":{source:"iana",compressible:!0},"application/prs.implied-object+json-seq":{source:"iana"},"application/prs.implied-object+yaml":{source:"iana"},"application/prs.implied-structure":{source:"iana"},"application/prs.mayfile":{source:"iana"},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.vcfbzip2":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0,extensions:["xsf"]},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"apache"},"application/reputon+json":{source:"iana",compressible:!0},"application/resolve-response+jwt":{source:"iana"},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-checklist":{source:"iana"},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-signed-tal":{source:"iana"},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"apache"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana",extensions:["sql"]},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/sslkeylogfile":{source:"iana"},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/st2110-41":{source:"iana"},"application/stix+json":{source:"iana",compressible:!0},"application/stratum":{source:"iana"},"application/swid+cbor":{source:"iana"},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tm+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/toc+cbor":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{source:"iana",compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/trust-chain+json":{source:"iana",compressible:!0},"application/trust-mark+jwt":{source:"iana"},"application/trust-mark-delegation+jwt":{source:"iana"},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/uccs+cbor":{source:"iana"},"application/ujcs+json":{source:"iana",compressible:!0},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vc":{source:"iana"},"application/vc+cose":{source:"iana"},"application/vc+jwt":{source:"iana"},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.1ob":{source:"iana"},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3a+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ach+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc8+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.5gsa2x":{source:"iana"},"application/vnd.3gpp.5gsa2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gsv2x":{source:"iana"},"application/vnd.3gpp.5gsv2x-local-service-information":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.crs+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.current-location-discovery+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-msgstore-ctrl-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-regroup+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-regroup+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-regroup+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.pinapp-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.seal-group-doc+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.seal-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.seal-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.seal-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.seal-network-qos-management-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.seal-ue-config-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.seal-unicast-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.seal-user-profile-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.v2x":{source:"iana"},"application/vnd.3gpp.vae-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acm.addressxfer+json":{source:"iana",compressible:!0},"application/vnd.acm.chatbot+json":{source:"iana",compressible:!0},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"apache",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"apache"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.parquet":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.apexlang":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"apache"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autodesk.fbx":{extensions:["fbx"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.belightsoft.lhzd+zip":{source:"iana",compressible:!1},"application/vnd.belightsoft.lhzl+zip":{source:"iana",compressible:!1},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.bzip3":{source:"iana"},"application/vnd.c3voc.schedule+xml":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.cncf.helm.chart.content.v1.tar+gzip":{source:"iana"},"application/vnd.cncf.helm.chart.provenance.v1.prov":{source:"iana"},"application/vnd.cncf.helm.config.v1+json":{source:"iana",compressible:!0},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datalog":{source:"iana"},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.dcmp+xml":{source:"iana",compressible:!0,extensions:["dcmp"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.eln+zip":{source:"iana",compressible:!1},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.erofs":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"apache",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.fdsn.stationxml+xml":{source:"iana",charset:"XML-BASED",compressible:!0},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.freelog.comic":{source:"iana"},"application/vnd.frogans.fnc":{source:"apache",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"apache",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.ga4gh.passport+jwt":{source:"iana"},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.genozip":{source:"iana"},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.gentoo.catmetadata+xml":{source:"iana",compressible:!0},"application/vnd.gentoo.ebuild":{source:"iana"},"application/vnd.gentoo.eclass":{source:"iana"},"application/vnd.gentoo.gpkg":{source:"iana"},"application/vnd.gentoo.manifest":{source:"iana"},"application/vnd.gentoo.pkgmetadata+xml":{source:"iana",compressible:!0},"application/vnd.gentoo.xpak":{source:"iana"},"application/vnd.geo+json":{source:"apache",compressible:!0},"application/vnd.geocube+xml":{source:"apache",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.pinboard":{source:"iana"},"application/vnd.geogebra.slides":{source:"iana",extensions:["ggs"]},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.gnu.taler.exchange+json":{source:"iana",compressible:!0},"application/vnd.gnu.taler.merchant+json":{source:"iana",compressible:!0},"application/vnd.google-apps.audio":{},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.drawing":{compressible:!1,extensions:["gdraw"]},"application/vnd.google-apps.drive-sdk":{compressible:!1},"application/vnd.google-apps.file":{},"application/vnd.google-apps.folder":{compressible:!1},"application/vnd.google-apps.form":{compressible:!1,extensions:["gform"]},"application/vnd.google-apps.fusiontable":{},"application/vnd.google-apps.jam":{compressible:!1,extensions:["gjam"]},"application/vnd.google-apps.mail-layout":{},"application/vnd.google-apps.map":{compressible:!1,extensions:["gmap"]},"application/vnd.google-apps.photo":{},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.script":{compressible:!1,extensions:["gscript"]},"application/vnd.google-apps.shortcut":{},"application/vnd.google-apps.site":{compressible:!1,extensions:["gsite"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-apps.unknown":{},"application/vnd.google-apps.video":{},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"apache",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0,extensions:["xdcf"]},"application/vnd.gpxsee.map+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.hsl":{source:"iana"},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"apache"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"apache",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"apache"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.ipfs.ipns-record":{source:"iana"},"application/vnd.ipld.car":{source:"iana"},"application/vnd.ipld.dag-cbor":{source:"iana"},"application/vnd.ipld.dag-json":{source:"iana"},"application/vnd.ipld.raw":{source:"iana"},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kdl":{source:"iana"},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.keyman.kmp+zip":{source:"iana",compressible:!1},"application/vnd.keyman.kmx":{source:"iana"},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.ldev.productlicensing":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.mdl":{source:"iana"},"application/vnd.mdl-mbsdf":{source:"iana"},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.medicalholodeck.recordxr":{source:"iana"},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mermaid":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.modl":{source:"iana"},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-visio.viewer":{extensions:["vdx"]},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msgpack":{source:"iana"},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.nato.bindingdataobject+cbor":{source:"iana"},"application/vnd.nato.bindingdataobject+json":{source:"iana",compressible:!0},"application/vnd.nato.bindingdataobject+xml":{source:"iana",compressible:!0,extensions:["bdo"]},"application/vnd.nato.openxmlformats-package.iepd+zip":{source:"iana",compressible:!1},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"apache",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oai.workflows":{source:"iana"},"application/vnd.oai.workflows+json":{source:"iana",compressible:!0},"application/vnd.oai.workflows+yaml":{source:"iana"},"application/vnd.oasis.opendocument.base":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"apache",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-master-template":{source:"iana"},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"apache",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"apache",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.onvif.metadata":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openvpi.dspx+json":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.procrate.brushset":{extensions:["brushset"]},"application/vnd.procreate.brush":{extensions:["brush"]},"application/vnd.procreate.dream":{extensions:["drm"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.pt.mundusmundi":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0,extensions:["xhtm"]},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.relpipe":{source:"iana"},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.sketchometry":{source:"iana"},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.smintio.portals.archive":{source:"iana"},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sybyl.mol2":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uic.osdm+json":{source:"iana",compressible:!0},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml","uo"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.veraison.tsm-report+cbor":{source:"iana"},"application/vnd.veraison.tsm-report+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw","vsdx","vtx"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vocalshaper.vsp4":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.wasmflow.wafl":{source:"iana"},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordlift":{source:"iana"},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xarin.cpj":{source:"iana"},"application/vnd.xecrets-encrypted":{source:"iana"},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/voucher-jws+json":{source:"iana",compressible:!0},"application/vp":{source:"iana"},"application/vp+cose":{source:"iana"},"application/vp+jwt":{source:"iana"},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blender":{extensions:["blend"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-compressed":{extensions:["rar"]},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-ipynb+json":{compressible:!0,extensions:["ipynb"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zip-compressed":{extensions:["zip"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xfdf":{source:"iana",extensions:["xfdf"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yaml":{source:"iana"},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+cbor":{source:"iana"},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yang-sid+json":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zip+dotlottie":{extensions:["lottie"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana",extensions:["adts","aac"]},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flac":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/matroska":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/midi-clip":{source:"iana"},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a","m4b"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"apache"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{source:"iana",compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp","dib"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/dpx":{source:"iana",extensions:["dpx"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/j2c":{source:"iana"},"image/jaii":{source:"iana",extensions:["jaii"]},"image/jais":{source:"iana",extensions:["jais"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpg","jpeg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm","jpgm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxl":{source:"iana",extensions:["jxl"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1,extensions:["jfif"]},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif","btf"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.clip":{source:"iana"},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"iana",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-adobe-dng":{extensions:["dng"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-emf":{source:"iana"},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-wmf":{source:"iana"},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/bhttp":{source:"iana"},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/mls":{source:"iana"},"message/news":{source:"apache"},"message/ohttp-req":{source:"iana"},"message/ohttp-res":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime","mht","mhtml"]},"message/s-http":{source:"apache"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"apache"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/jt":{source:"iana",extensions:["jt"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/prc":{source:"iana",extensions:["prc"]},"model/step":{source:"iana",extensions:["step","stp","stpnc","p21","210"]},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/u3d":{source:"iana",extensions:["u3d"]},"model/vnd.bary":{source:"iana",extensions:["bary"]},"model/vnd.cld":{source:"iana",extensions:["cld"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana",extensions:["pyo","pyox"]},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usda":{source:"iana",extensions:["usda"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"apache"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/hl7v2":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["md","markdown"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/prs.texi":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.exchangeable":{source:"iana"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"apache"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.vcf":{source:"iana"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vnd.zoo.kcl":{source:"iana"},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/wgsl":{source:"iana",extensions:["wgsl"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/evc":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/h266":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/lottie+json":{source:"iana",compressible:!0},"video/matroska":{source:"iana"},"video/matroska-3d":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts","m2t","m2ts","mts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.planar":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"apache"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}};var Su,Zm;function rB(){return Zm||(Zm=1,Su=oB),Su}const aB={},lB=Object.freeze(Object.defineProperty({__proto__:null,default:aB},Symbol.toStringTag,{value:"Module"})),cB=M0(lB);var Ru,Xm;function dB(){if(Xm)return Ru;Xm=1;var e={"prs.":100,"x-":200,"x.":300,"vnd.":400,default:900},t={nginx:10,apache:20,iana:40,default:30},s={application:1,font:2,audio:2,video:3,default:0};return Ru=function(n,o="default"){if(n==="application/octet-stream")return 0;const[r,a]=n.split("/"),l=a.replace(/(\.|x-).*/,"$1"),c=e[l]||e.default,d=t[o]||t.default,u=s[r]||s.default,h=1-n.length/100;return c+d+u+h},Ru}var Qm;function uB(){return Qm||(Qm=1,(function(e){var t=rB(),s=cB.extname,i=dB(),n=/^\s*([^;\s]*)(?:;|\s|$)/,o=/^text\//i;e.charset=r,e.charsets={lookup:r},e.contentType=a,e.extension=l,e.extensions=Object.create(null),e.lookup=c,e.types=Object.create(null),e._extensionConflicts=[],d(e.extensions,e.types);function r(f){if(!f||typeof f!="string")return!1;var m=n.exec(f),v=m&&t[m[1].toLowerCase()];return v&&v.charset?v.charset:m&&o.test(m[1])?"UTF-8":!1}function a(f){if(!f||typeof f!="string")return!1;var m=f.indexOf("/")===-1?e.lookup(f):f;if(!m)return!1;if(m.indexOf("charset")===-1){var v=e.charset(m);v&&(m+="; charset="+v.toLowerCase())}return m}function l(f){if(!f||typeof f!="string")return!1;var m=n.exec(f),v=m&&e.extensions[m[1].toLowerCase()];return!v||!v.length?!1:v[0]}function c(f){if(!f||typeof f!="string")return!1;var m=s("x."+f).toLowerCase().slice(1);return m&&e.types[m]||!1}function d(f,m){Object.keys(t).forEach(function(C){var w=t[C],b=w.extensions;if(!(!b||!b.length)){f[C]=b;for(var x=0;x<b.length;x++){var y=b[x];m[y]=u(y,m[y],C);const S=h(y,m[y],C);S!==m[y]&&e._extensionConflicts.push([y,S,m[y]])}}})}function u(f,m,v){var C=m?i(m,t[m].source):0,w=v?i(v,t[v].source):0;return C>w?m:v}function h(f,m,v){var C=["nginx","apache",void 0,"iana"],w=m?C.indexOf(t[m].source):0,b=v?C.indexOf(t[v].source):0;return e.types[l]!=="application/octet-stream"&&(w>b||w===b&&e.types[l]?.slice(0,12)==="application/")||w>b?m:v}})(yu)),yu}var Jm=uB();const si=(e,t)=>{if(!(!e||!e.length||!t))for(const s of e){if(s.path===t)return s;const i=si(s.items,t);if(i)return i}},Do=(e,t)=>{if(!e?.length)return;if(!t)return e[0];const s=si(e,t);if(s&&s.nodeType===we.FOLDER)return s;const i=t.split("/").filter(Boolean);if(i.length<=1)return e[0];const n="/"+i.slice(0,i.length-1).join("/");return si(e,n)??e[0]},Po=e=>(e??"").toLowerCase(),hB=e=>Po(e).replace(/^\./,""),pB=e=>{if(!e)return[];const t=[],s=i=>{const n=i.items??[];for(const o of n)t.push(o),o.nodeType===we.FOLDER&&s(o)};return s(e),t},Vb=e=>(e.name??e.path.split("/").pop()??"").startsWith("."),ta=e=>{if(!e)return"0 bytes";const t=1024,s=t*1024;return e>=s?`${(e/s).toFixed(1)} MB`:e>=t?`${(e/t).toFixed(0)} KB`:`${e} bytes`},gB=(e,t="en-US",s={year:"numeric",month:"short",day:"2-digit"})=>{if(!e)return"";try{return new Intl.DateTimeFormat(t,s).format(new Date(e))}catch{return e}};function cg(e,t,s){if(!e||e.includes("*/*"))return!0;const i=t.toLowerCase(),n=s&&s.includes(".")?`.${s.split(".").at(-1).toLowerCase()}`:void 0;return e.some(o=>{const r=o.toLowerCase();if(r.startsWith("."))return n===r;if(r.endsWith("/*")){const a=r.slice(0,-1);return i.startsWith(a)}return i===r})}const fB=e=>e?.map(t=>t.endsWith("/*")?t.replace("/*","s"):mB(t).flat().map(s=>`.${s}`)).flat().join(", ")||"",mB=e=>{const[t,s]=e.split("/");return t==="*"?["all"]:s==="*"?Object.entries(Jm.extensions).reduce((i,[n,o])=>{const[r]=n.split("/");return r===t&&i.push(...o),i},[]):Jm.extensions[e]||[]},Uc=e=>{if(!e)return;const t=e.flags.replace(/[gy]/g,"");return new RegExp(e.source,t)};function dg(e,t,s){if(t&&Uc(t)?.test(e.name))return s??`This ${e.isFolder?"folder":"file"} contains forbidden characters in its name. Please rename it.`}const vB=e=>{const t=e.lastIndexOf("/");return t>=0?{parent:e.slice(0,t),name:e.slice(t+1)}:{parent:"",name:e}},CB=(e,t,s)=>{const i=!e.contentLength||s==null||e.contentLength<=s,n=!e.contentType||cg(t,e.contentType,e.name);return i&&n},wB=(e,t,s,i,n)=>{if(e.nodeType===we.FOLDER)return;const o=!e.contentLength||s==null||e.contentLength<=s;if(!(!e.contentType||cg(t,e.contentType,e.name)))return i??(t?.length?`Unsupported file type. Supported types: ${fB(t)}.`:"Unsupported file type.");if(!o)return n??`File is too large. Maximum size: ${ta(s)}.`},bB=e=>e.replace(/\/+$/,"").split("/").filter(Boolean).length,vr=e=>{const t=`${qm} `,s=new RegExp(`^${qm} (\\d+)$`),i=new Set(e.map(a=>a.name.toLowerCase())),n=e.map(a=>{const l=a.name.match(s);return l?parseInt(l[1],10):0}).reduce((a,l)=>Math.max(a,l),0);let o=`${t}${n+1}`,r=n+1;for(;i.has(o.toLowerCase());)r++,o=`${t}${r}`;return o},xB=e=>{const[t,s]=p.useState(e?.showHiddenFiles??!1),i=!!e?.onShowHiddenFilesChange,n=i?e.showHiddenFiles??!1:t,o=p.useCallback(a=>{i?e?.onShowHiddenFilesChange?.(a):s(a)},[i,e]),r=p.useCallback(()=>{const a=!n;i?e?.onShowHiddenFilesChange?.(a):s(a)},[n,i,e]);return{areHiddenFilesVisible:n,toggleHiddenFilesVisibility:r,setAreHiddenFilesVisible:o}},yB=e=>{const[t,s]=p.useState(e?.collapsed??!1),i=!!e?.onCollapseChange,n=i?e.collapsed??!1:t,o=p.useCallback(a=>{i?e?.onCollapseChange?.(a):s(a)},[i,e]),r=p.useCallback(()=>{const a=!n;i?e?.onCollapseChange?.(a):s(a)},[n,i,e]);return{isTreeCollapsed:n,toggleTreeCollapse:r,setIsTreeCollapsed:o}},ev=(e,t,s)=>{if(!t.has(e))return e;const i=s===we.FOLDER?(n,o)=>`${n} (${o})`:(n,o)=>{const r=n.lastIndexOf("."),a=r>0,l=a?n.slice(0,r):n,c=a?n.slice(r):"";return`${l} (${o})${c}`};for(let n=1;;n++){const o=i(e,n);if(!t.has(o))return o}},Fu=e=>e.name,zb=({getDestinationFiles:e,onResolve:t})=>{const[s,i]=p.useState([]),[n,o]=p.useState(!1),[r,a]=p.useState(null),l=p.useRef(!1),c=p.useCallback(x=>{l.current=!0,i(x),o(!0)},[]),d=p.useCallback(()=>{l.current=!1,o(!1),i([]),a(null)},[]),u=p.useCallback((x,y)=>{const S=e(x),F=new Set(S.map(Fu)),R=y.filter(E=>F.has(E.name));return{hasConflicts:R.length>0,conflicts:R}},[e]),h=p.useCallback((x,y,S,F)=>{const R=e(x),E=new Set(R.map(Fu));return y.map(D=>{const T=D.name,P=E.has(T),k=S&&P?T:ev(T,E,D.nodeType);return(!S||!P)&&E.add(k),{sourceUrl:D.path,destinationUrl:`${x}/${k}`,overwrite:S&&P,nodeType:D.nodeType??we.ITEM,...F??{}}})},[e]),f=p.useCallback((x,y,S,F)=>{const R=e(x),E=new Set(R.map(Fu));return y.filter(T=>S.get(T.path)!==vt.Cancel).map(T=>{const P=S.get(T.path),k=E.has(T.name),I=P===vt.Replace&&k,H=I?T.name:ev(T.name,E,T.nodeType);return I||E.add(H),{sourceUrl:T.path,destinationUrl:`${x}/${H}`,overwrite:I,nodeType:T.nodeType??we.ITEM,...F??{}}})},[e]),m=p.useCallback((x,y,S)=>{const F=u(x,y);return F.hasConflicts&&(a({files:y,destinationFolder:x,metadata:S}),c(F.conflicts)),F},[u,c]),v=p.useCallback(()=>{if(!r)return;const{files:x,destinationFolder:y,metadata:S}=r,F=h(y,x,!0,S);t?.(F,y),d()},[r,h,t,d]),C=p.useCallback(()=>{if(!r)return;const{files:x,destinationFolder:y,metadata:S}=r,F=h(y,x,!1,S);t?.(F,y),d()},[r,h,t,d]),w=p.useCallback(()=>{if(!r)return;const{files:x,destinationFolder:y,metadata:S}=r,F=f(y,x,new Map(s.map(R=>[R.path,vt.Cancel])),S);t?.(F,y),d()},[d,s,t,r,f]),b=p.useCallback(x=>{if(!r)return;const{files:y,destinationFolder:S,metadata:F}=r,R=new Map(x.map(D=>[D.file.path,D.action])),E=f(S,y,R,F);t?.(E,S),d()},[r,f,t,d]);return{conflictingFiles:s,conflictResolutionOpen:n,hasActiveConflictRef:l,checkForConflicts:u,startConflictResolution:m,resolveConflictsWithStrategy:h,resolveConflictsWithDecisions:f,openConflictResolution:c,closeConflictResolution:d,handleReplaceAll:v,handleDuplicateAll:C,handleCancelAll:w,handleDecideForEach:b}},SB=({getDestinationFiles:e,onCopyFiles:t,onMoveToFiles:s,onCopySuccess:i,onMoveSuccess:n,onDuplicateSuccess:o,getCopyHeader:r,getMoveHeader:a})=>{const[l,c]=p.useState(!1),[d,u]=p.useState([]),[h,f]=p.useState([]),[m,v]=p.useState(Ct.Copy),[C,w]=p.useState(),[b,x]=p.useState(null),{conflictingFiles:y,conflictResolutionOpen:S,hasActiveConflictRef:F,startConflictResolution:R,resolveConflictsWithStrategy:E,closeConflictResolution:D,openConflictResolution:T,handleReplaceAll:P,handleDuplicateAll:k,handleCancelAll:I,handleDecideForEach:H}=zb({getDestinationFiles:e,onResolve:(ne,ce)=>{ne?.length&&(b?.type===Ct.Copy?(t?.(ne,ce),i?.()):b?.type===Ct.Move&&b.sourceFolder&&(s?.(ne,b.sourceFolder,ce),n?.()))}}),M=p.useCallback(()=>{u([]),f([]),x(null),w(void 0)},[]),G=p.useCallback(ne=>{const ce=R(ne,d,{type:Ct.Copy});if(x({type:Ct.Copy}),!ce.hasConflicts){const L=E(ne,d,!1);t?.(L,ne),i?.(),M()}},[d,R,E,t,i,M]),V=p.useCallback((ne,ce)=>{const L=ce||(b?.sourceFolder??"/");if(!R(ne,h,{type:Ct.Move,sourceFolderPath:L}).hasConflicts){const ye=E(ne,h,!0);s?.(ye,L,ne),n?.(),M()}},[h,R,E,s,n,M,b]),B=p.useCallback(()=>{P(),M()},[P,M]),K=p.useCallback(()=>{k(),M()},[k,M]),O=p.useCallback(()=>{I(),M()},[I,M]),A=p.useCallback(ne=>{H(ne),M()},[H,M]),W=p.useCallback(ne=>{const ce=ne.at(0)?.parentPath??"/",L=E(ce,ne,!1);t?.(L,ce),o?.()},[t,o,E]),Y=p.useCallback(ne=>{v(ne),c(!0)},[]),ie=p.useCallback(()=>{c(!1),F.current||M()},[M,F]),[be,Z]=p.useState(),me=p.useCallback(ne=>{u(ne);const ce=ne[0]?.parentPath??ne[0]?.folderId;w(ce),r&&ne.length>0?Z(r(ne.length,ne[0]?.name)):Z(void 0)},[r]),Ie=p.useCallback(ne=>{f(ne);const ce=ne[0]?.parentPath??ne[0]?.folderId;w(ce),x({type:Ct.Move,sourceFolder:ce}),a&&ne.length>0?Z(a(ne.length,ne[0]?.name)):Z(void 0)},[a]);return{handleDuplicate:W,handleCloseDestinationFolderPopup:ie,handleOpenDestinationFolderPopup:Y,handleCopyTo:G,handleMoveTo:V,openDestinationFolderPopup:l,destinationFolderMode:m,destinationFolderTitle:be,handleSetCopiedFiles:me,handleSetMovedFiles:Ie,clearState:M,conflictingFiles:y,conflictResolutionOpen:S,openConflictResolution:T,closeConflictResolution:D,handleConflictReplace:B,handleConflictCancel:O,handleConflictDuplicate:K,handleConflictDecideForEach:A,sourceFolder:C}},RB=({path:e,defaultPath:t,onPathChange:s,onSelectionClear:i})=>{const n=e!==void 0,[o,r]=p.useState(t),a=n?e:o,l=p.useCallback(d=>{n||r(d),s?.(d)},[n,s]),c=p.useCallback(d=>{l(d),i?.()},[l,i]);return{currentPath:a,setCurrentPath:l,handlePathChange:c}},FB=({onDeleteFiles:e,onDeleteSuccess:t})=>{const[s,i]=p.useState(!1),[n,o]=p.useState([]),[r,a]=p.useState(""),l=p.useCallback((u,h)=>{o(u),a(h),i(!0)},[]),c=p.useCallback(()=>{i(!1),o([])},[]),d=p.useCallback(()=>{if(e&&n.length>0){const u=n.map(h=>({sourceUrl:h.path,nodeType:h.nodeType}));e(u,r),t?.()}c()},[n,e,t,c,r]);return{deleteConfirmationOpen:s,itemsToDelete:n,openDeleteConfirmation:l,closeDeleteConfirmation:c,confirmDelete:d}},EB=({onDownloadFiles:e,customDownloadItemsAction:t,onDownloadSuccess:s})=>({handleDownloadFiles:p.useCallback(n=>{t&&n.length>0?t(n):e&&n.length>0&&(e(n),s?.())},[e,s,t])}),DB=e=>"dataTransfer"in e&&e.dataTransfer!==null,PB=({onUploadFiles:e,onValidateUpload:t,maxFileSize:s,allowedFileTypes:i,validationMessages:n={},onUploadArchive:o,uploadEnabled:r=!0,currentFolder:a}={})=>{const[l,c]=p.useState(!1),[d,u]=p.useState(!1),[h,f]=p.useState(),m=p.useRef(null),v=p.useRef(""),C=p.useRef([]),w=p.useMemo(()=>!!a?.permissions?.includes(Bn.WRITE),[a]),[b,x]=p.useState(new Map),[y,S]=p.useState(null),F=p.useCallback(z=>!i||i.includes("*/*")?z:z.filter(({fileContent:le,name:ve})=>cg(i,le.type,ve)),[i]),R=p.useCallback(()=>{x(new Map),S(null)},[]),{conflictingFiles:E,conflictResolutionOpen:D,hasActiveConflictRef:T,startConflictResolution:P,closeConflictResolution:k,openConflictResolution:I,handleReplaceAll:H,handleDuplicateAll:M,handleCancelAll:G,handleDecideForEach:V}=zb({getDestinationFiles:()=>C.current,onResolve:(z,le)=>{if(!r||!w){R();return}if(!y)return;const ve=z.map(Ee=>{const oe=b.get(Ee.sourceUrl);if(!oe)return;const xe=Ee.destinationUrl.split("/").pop();return{fileContent:oe.fileContent,name:xe}}).filter(Boolean);if(ve[0]?.fileContent?.type==="application/zip"){const{fileContent:Ee,name:oe}=ve[0];o?.(Ee,oe,le)}else ve.length>0&&e?.(ve,le);R()}});p.useEffect(()=>{r&&w||(c(!1),u(!1),f(void 0),k(),R())},[r,k,R,w]),p.useEffect(()=>{if(!r||!w)return;let z=0;const le=xe=>{DB(xe)&&xe.dataTransfer.types.includes(XH)&&(z++,u(!0))},ve=()=>{z--,z===0&&u(!1)},Ee=()=>{z=0,u(!1)},oe=xe=>{xe.preventDefault()};return window.addEventListener("dragenter",le),window.addEventListener("dragleave",ve),window.addEventListener("drop",Ee),window.addEventListener("dragover",oe),()=>{window.removeEventListener("dragenter",le),window.removeEventListener("dragleave",ve),window.removeEventListener("drop",Ee),window.removeEventListener("dragover",oe)}},[r,w]);const B=p.useCallback(z=>s?z.filter(le=>le.fileContent.size>s).map(le=>le.name):[],[s]),K=p.useCallback((z,le)=>z.map(ve=>({id:ve.name,name:ve.name,folderId:le,path:ve.name,nodeType:we.ITEM,parentPath:le,contentLength:ve.fileContent.size})),[]),O=p.useCallback(async(z,le,ve)=>{if(!r||!w)return!1;f(void 0),C.current=ve;const Ee=B(z);if(Ee.length>0){const Pe=s?(s/1048576).toFixed(2):0,Ce=n.oversizedFiles||`Files exceed maximum size (${Pe}MB): ${Ee.join(", ")}`;return f(Ce),!1}if(t)try{const Pe=await t(z,ve,le);if(!Pe.valid)return f(Pe.message||n.validationFailed||"Validation failed"),!1}catch{return f(n.validationError||"Validation error occurred"),!1}const oe=new Map(z.map(Pe=>[Pe.name,Pe]));x(oe);const xe=K(z,le);return S({destinationFolder:le}),P(le,xe,{destinationFolder:le}).hasConflicts?!1:(e?.(z,le),R(),!0)},[r,e,t,B,s,n,K,P,R,w]),A=p.useCallback(()=>{H(),R()},[H,R]),W=p.useCallback(()=>{M(),R()},[M,R]),Y=p.useCallback(()=>{G(),R()},[G,R]),ie=p.useCallback(z=>{V(z),R()},[V,R]),be=p.useCallback(()=>{k(),T.current||R()},[k,T,R]),Z=p.useCallback(z=>{!r||!w||(z.preventDefault(),z.stopPropagation(),z.dataTransfer.types.includes("Files")&&c(!0))},[r,w]),me=p.useCallback(z=>{if(!r||!w)return;z.preventDefault(),z.stopPropagation();const le=z.currentTarget.getBoundingClientRect(),ve=z.clientX,Ee=z.clientY;(ve<=le.left||ve>=le.right||Ee<=le.top||Ee>=le.bottom)&&c(!1)},[r,w]),Ie=p.useCallback(z=>{!r||!w||(z.preventDefault(),z.stopPropagation(),z.dataTransfer.types.includes("Files")&&(z.dataTransfer.dropEffect="copy"))},[r,w]),ne=p.useCallback(async(z,le,ve)=>{if(!r||!w||(z.preventDefault(),z.stopPropagation(),c(!1),!z.dataTransfer.types.includes("Files")))return;const Ee=Array.from(z.dataTransfer.items||[]),oe=[];let xe=!1;if(Ee.length>0&&Ee.forEach(Ce=>{if(Ce.kind==="file"){if(Ce.webkitGetAsEntry?.()?.isDirectory){xe=!0;return}const je=Ce.getAsFile?.();je&&oe.push(je)}}),oe.length===0&&z.dataTransfer.files?.length&&oe.push(...Array.from(z.dataTransfer.files)),oe.length===0){xe&&f(n.foldersNotSupported||"Folder upload is not supported");return}const Ae=oe.map(Ce=>({fileContent:Ce,name:Ce.name})),Pe=F(Ae);if(Pe.length===0){f(n.unsupportedFiles||"Selected files are not supported");return}await O(Pe,le,ve)},[r,F,O,n,w]),ce=p.useRef(()=>{});p.useEffect(()=>{ce.current=async()=>{const z=m.current;if(!z)return;if(!r||!w){z.value="";return}if(!z.files?.length)return;const ve=Array.from(z.files).map(oe=>({fileContent:oe,name:oe.name})),Ee=F(ve);if(Ee.length===0){f(n.unsupportedFiles||"Selected files are not supported"),z.value="";return}try{await O(Ee,v.current,C.current)}catch{f(n.validationError||"Upload failed")}finally{z.value=""}}},[r,w,F,O,n]),p.useEffect(()=>{const z=document.createElement("input");z.type="file",z.multiple=!0,z.style.display="none",document.body.appendChild(z),m.current=z;const le=()=>ce.current?.();return z.addEventListener("change",le),()=>{z.removeEventListener("change",le),m.current===z&&(document.body.removeChild(z),m.current=null)}},[]),p.useEffect(()=>{const z=m.current;z&&(i&&i.length>0?z.accept=i.join(","):z.removeAttribute("accept"))},[i]);const L=p.useCallback((z,le)=>{!r||!w||(v.current=z,C.current=le,m.current&&m.current.click())},[r,w]),ee=p.useCallback((z,le)=>{if(!o||!r||!w)return;const ve=document.createElement("input");ve.type="file",ve.accept=".zip,application/zip",ve.multiple=!1,ve.style.display="none";const Ee=()=>{const oe=ve.files?.[0];if(!oe){document.body.removeChild(ve);return}const xe=oe.name.replace(/\.zip$/i,""),Ae={id:xe,name:xe,folderId:z,path:`${z}/${xe}`,nodeType:we.FOLDER,parentPath:z,contentLength:oe.size,contentType:oe.type};if(C.current=le,S({destinationFolder:z}),x(new Map([[Ae.path,{fileContent:oe,name:xe}]])),P(z,[Ae],{destinationFolder:z}).hasConflicts){document.body.removeChild(ve);return}try{o(oe,xe,z)}finally{document.body.removeChild(ve)}};ve.addEventListener("change",Ee),document.body.appendChild(ve),ve.click()},[o,r,w,P]),ye=p.useCallback(()=>{f(void 0)},[]);return{isDragging:l,isDraggingOverWindow:d,uploadError:h,handleDragEnter:Z,handleDragLeave:me,handleDragOver:Ie,handleDrop:ne,clearError:ye,handleUpload:O,openFileDialog:L,openArchiveDialog:ee,fileInputRef:m,uploadConflictingFiles:E,uploadConflictResolutionOpen:D,hasActiveUploadConflictRef:T,openUploadConflictResolution:I,closeUploadConflictResolution:be,handleUploadConflictReplace:A,handleUploadConflictDuplicate:W,handleUploadConflictCancel:Y,handleUploadConflictDecideForEach:ie}},jb=p.createContext(void 0),Wb={hiddenItemWarning:`${us.Warning}__A dot at the start of the name will make the item hidden`},TB={emptyName:"Name cannot be empty",duplicateName:"An item with this name already exists",hiddenItemWarning:Wb.hiddenItemWarning};function kB(e){let t=e.length;for(;t>0&&e[t-1]==="/";)t--;return e.slice(0,t)}function IB(e,t){const s=kB(e),i=s.lastIndexOf("/");return i===-1?t:s.slice(0,i+1)+t}function MB(e){const t=e.lastIndexOf(".");return t===-1||t===0?e:e.substring(0,t)}function tv(e){const t=e.lastIndexOf(".");return t===-1||t===0?"":e.substring(t)}const AB=({items:e,onRenameValidate:t,validationMessages:s,onMoveToFiles:i})=>{const[n,o]=p.useState(),r=p.useMemo(()=>({...TB,...s}),[s]),a=p.useMemo(()=>n?.path,[n]),l=p.useCallback(f=>{const m=si(e,f);m&&o(m)},[e]),c=p.useCallback(()=>{o(void 0)},[]),d=p.useCallback(f=>{if(!n||!i){o(void 0);return}const m=n.nodeType===we.ITEM;let v=f.trim();if(m){const x=tv(n.name);x&&!v.endsWith(x)&&(v=v+x)}if(v===n.name){o(void 0);return}const C=IB(n.path,v),w=n.parentPath;if(!w){o(void 0);return}const b={sourceUrl:n.path,destinationUrl:C,nodeType:n.nodeType};i([b],w,w),o(void 0)},[n,i]),u=p.useCallback((f,m)=>{const v=f.trim();if(!v)return r.emptyName;if(v.startsWith("."))return r.hiddenItemWarning;const C=m.nodeType===we.ITEM;let w=v;if(C){const x=tv(m.name);x&&!w.endsWith(x)&&(w=w+x)}const b=m.parentPath;if(b){const x=si(e,b);if(x&&new Set((x.items??[]).filter(S=>S.path!==m.path).map(S=>S.name.toLowerCase())).has(w.toLowerCase()))return r.duplicateName}if(t){const x=t(w,m);if(x)return x}return null},[t,r,e]),h=p.useCallback(f=>f.nodeType===we.ITEM?MB(f.name):f.name,[]);return{renamedPath:a,renamedItem:n,renameHandler:l,renameSaveHandler:d,renameCancelHandler:c,renameValidateHandler:u,getDisplayName:h}},_b=e=>{const[t,s]=p.useState(e?.expandedPaths??new Set),i=p.useMemo(()=>!!e?.onExpandedPathsChange,[e?.onExpandedPathsChange]),n=p.useMemo(()=>i?e?.expandedPaths??new Set:t,[i,e?.expandedPaths,t]);p.useEffect(()=>{i&&e?.expandedPaths&&s(new Set(e.expandedPaths))},[i,e?.expandedPaths]);const o=p.useCallback(d=>{i?e?.onExpandedPathsChange?.(d):s(d)},[i,e]),r=p.useCallback(d=>{const u=new Set(n);u.has(d)?u.delete(d):u.add(d),o(u)},[n,o]),a=p.useCallback(()=>{o(new Set)},[o]),l=p.useCallback(d=>{const u=new Set(n);u.add(d),o(u)},[n,o]),c=p.useCallback(d=>{const u=new Set(n);u.delete(d),o(u)},[n,o]);return{expandedPaths:n,setExpandedPaths:o,togglePath:r,collapseAll:a,expandPath:l,collapsePath:c,isControlled:i}},LB=({newActions:e,currentFolder:t,onUploadFiles:s,onCreateFolder:i,onUploadArchive:n,onCreateNewItem:o,isNewButtonDisabled:r})=>{const a=p.useMemo(()=>{const d=[];return e&&(e.newFolder&&d.push({key:"new-folder",label:e.newFolder.label,icon:e?.newFolder?.icon!==void 0?e?.newFolder?.icon:g.jsx(_.IconFolder,{...te,className:"text-secondary"}),onClick:()=>{i&&i()}}),e.newItem&&d.push({key:"new-item",label:e.newItem.label,icon:e?.newItem?.icon!==void 0?e?.newItem?.icon:g.jsx(_.IconPlus,{...te,className:"text-secondary"}),onClick:()=>{o&&o()}}),e.uploadFiles&&d.push({key:"upload-file",label:e.uploadFiles.label,icon:e?.uploadFiles?.icon!==void 0?e?.uploadFiles?.icon:g.jsx(_.IconFile,{...te,className:"text-secondary"}),onClick:()=>{s&&s()}}),e.uploadArchive&&d.push({key:"upload-archive",label:e.uploadArchive.label,icon:e?.uploadArchive?.icon!==void 0?e?.uploadArchive?.icon:g.jsx(_.IconFileZip,{...te,className:"text-secondary"}),onClick:()=>{n&&n()}})),d},[e,i,s,n,o]),l=p.useMemo(()=>a?.length>0,[a]),c=p.useMemo(()=>!t?.permissions?.includes(Bn.WRITE)||!!r,[t,r]);return{newActions:a,isNewButtonVisible:l,isNewButtonDisabled:c}},OB={emptyName:"Folder name cannot be empty",duplicateName:"A folder with this name already exists",hiddenItemWarning:Wb.hiddenItemWarning},NB=({currentFolder:e,onCreateFolder:t,onValidateFolderName:s,validationMessages:i,items:n=[]})=>{const[o,r]=p.useState(!1),[a,l]=p.useState(null),[c,d]=p.useState(Cs.Folder),[u,h]=p.useState(null),[f,m]=p.useState(null),[v,C]=p.useState(""),w=p.useRef(e?.path),b=p.useMemo(()=>({...OB,...i}),[i]),x=p.useMemo(()=>{if(c===Cs.Folder)return e;if(c===Cs.Sibling&&u){const k=Do(n,u.parentPath||"");return{path:u.parentPath,items:k?.items||[],nodeType:we.FOLDER,name:u?.parentPath?.split("/")?.pop()||"",folderId:""}}return c===Cs.Child?u:e},[c,u,e,n]);p.useEffect(()=>{const k=x?.path;w.current!==k&&o&&(r(!1),l(null),C("")),w.current=k},[x?.path,o]);const y=p.useCallback(()=>{if(o)return;w.current=e?.path||"/";const k=`__new_folder_${Date.now()}`,I=(e?.items??[]).filter(M=>M.nodeType===we.FOLDER),H=vr(I);l(k),C(H),r(!0),d(Cs.Folder),h(e||null)},[o,e]),S=p.useCallback(k=>{if(o)return;w.current=k?.parentPath||"/";const I=`__new_folder_${Date.now()}`,M=(Do(n,k?.parentPath||"/")?.items??[]).filter(V=>V.nodeType===we.FOLDER),G=vr(M);C(G),l(I),r(!0),d(Cs.Sibling),h(k),m(k?.parentPath||"/")},[o,n]),F=p.useCallback(k=>{if(o)return;w.current=k.path;const I=`__new_folder_${Date.now()}`,H=(k?.items??[]).filter(G=>G.nodeType===we.FOLDER),M=vr(H);C(M),l(I),r(!0),d(Cs.Child),h(k),m(k?.path||"/")},[o]),R=p.useCallback(k=>{if(o)return;w.current=k?.parentPath||"/";const H=(Do(n,k?.parentPath||"/")?.items??[]).filter(G=>G.nodeType===we.FOLDER),M=vr(H);C(M),d(Cs.Sibling),h(k),m(k?.parentPath||"/"),r(!0)},[o,n]),E=p.useCallback(k=>{if(o)return;w.current=k.path;const I=(k?.items??[]).filter(M=>M.nodeType===we.FOLDER),H=vr(I);C(H),d(Cs.Child),h(k),m(k?.path||"/"),r(!0)},[o]),D=p.useCallback(()=>{r(!1),l(null),d(Cs.Folder),h(null),m(null),w.current=void 0,C("")},[]),T=p.useCallback(k=>{const I=k.trim();if(!I)return b.emptyName;if(I.startsWith(".")&&I.length>1)return b.hiddenItemWarning;if(x&&x.items&&new Set((x.items??[]).filter(M=>M.nodeType===we.FOLDER).map(M=>M.name.toLowerCase())).has(I.toLowerCase()))return b.duplicateName;if(s&&x){const H=s(I,x);if(H)return H}return null},[x,s,b]),P=p.useCallback(async k=>{const I=k.trim();if(!I)return;D();const M=`${x?.path??"/"}/${I}`,G=`${M}/${xu}`,B={fileContent:new File([],xu,{type:"text/plain"}),name:xu};t&&await t(B,M,G)},[x,t,D]);return{isCreatingFolder:o,createdFolderPath:f,newFolderTempId:a,newFolderDefaultName:v,startFolderCreation:y,startGridSiblingFolderCreation:S,startTreeSiblingFolderCreation:R,startGridChildFolderCreation:F,startTreeChildFolderCreation:E,cancelFolderCreation:D,saveFolderCreation:P,validateFolderName:T}},HB=({additionalButtons:e,expandedPathsLength:t,collapseAll:s})=>{const i=t===0;return{additionalButtons:p.useMemo(()=>{const o=$(["hover:text-accent-primary",i&&"controls-secondary-disable hover:controls-secondary-disable disabled:hover:cursor-default"]);return g.jsxs(g.Fragment,{children:[e,g.jsx(ii,{disabled:i,className:o,size:et.Small,onClick:s,icon:g.jsx(_.IconCopyMinus,{size:nt.LG,stroke:1.5}),"aria-label":"collapse-all"})]})},[e,i,s])}},BB=({onGetInfo:e})=>{const[t,s]=p.useState(!1),[i,n]=p.useState(void 0),o=p.useCallback(async a=>{n(a),s(!0),e&&await e(a)},[e]),r=p.useCallback(()=>{s(!1),n(void 0)},[]);return{isMetadataPopupOpen:t,selectedFileForMetadata:i,openMetadataPopup:o,closeMetadataPopup:r}};function GB(e){const t=[];function s(i){for(const n of i)t.push(n),n.items&&s(n.items)}return s(e),t}function sv(e,t){const s=Po(t);return e.filter(i=>Po(i.name).includes(s))}function VB({onSearchFiles:e,clearSearchResults:t,currentPath:s,searchResults:i=[],searchInProgress:n=!1,navigationPanelValue:o,onNavigationPanelSearchChange:r,allItems:a=[],activeTab:l}){const[c,d]=p.useState(""),u=p.useRef(!1),h=p.useRef(!1),f=p.useRef([]),m=p.useRef(s),v=p.useRef(l);p.useEffect(()=>{o!=null&&d(String(o))},[o]);const C=String(o??c??"").trim(),w=h.current&&(n||i.length>0||C!==""),b=p.useCallback(F=>{const R=F.trim();if(!R){h.current=!1,u.current=!1;return}h.current=!0,e&&s&&!u.current&&(u.current=!0,e(s,R))},[e,s]),x=p.useCallback(()=>{u.current=!1,h.current=!1,f.current=[],d(""),r?.(""),t?.()},[t,r]),y=p.useCallback(F=>{const R=String(F??"");d(R),r?.(R),R.trim()?b(R):x()},[r,b,x]);p.useEffect(()=>{(m.current!==s||v.current!==l)&&(m.current=s,v.current=l,u.current=!1,h.current=!1,f.current=[],d(""),r?.(""),t?.())},[s,l,r,t]),p.useEffect(()=>{n||(f.current=i)},[i,n]);const S=p.useMemo(()=>{if(e){const R=n?f.current:i;return!C||R.length===0?R:sv(R,C)}if(!C||!a.length)return[];const F=GB(a);return sv(F,C)},[e,i,n,C,a]);return{isSearchMode:w,searchValue:c,effectiveSearchValue:C,setSearchValue:d,handleSearchChange:y,handleSearchActivate:b,handleSearchClear:x,searchResultsRows:S}}function zB({selectedPaths:e,defaultSelectedPaths:t,onSelectedPathsChange:s}){const i=e!==void 0,[n,o]=p.useState(()=>t??new Set),r=p.useMemo(()=>i?e:n,[i,e,n]),a=p.useCallback(c=>{const d=new Set(c);s?.(d),i||o(d)},[i,s]),l=p.useCallback(()=>{a(new Set)},[a]);return{selectedPaths:r,setSelectedPaths:a,clearSelection:l,isControlled:i}}const Ub=':;,=/{}%&\\"',ug=`(\r
|
|
70
70
|
|
|
|
71
|
-
|\r| )|[\0-]`,NB=`[${Ub.replace(/\\/g,"\\\\")}]`,$b=new RegExp(`${NB}|${ug}`),HB=new RegExp(ug),qb=({managerLabel:e,children:t,className:s,items:i=[],rootItem:n,path:o,defaultPath:r,filesLoading:a,selectedPaths:l,defaultSelectedPaths:c,onSelectedPathsChange:d,showHiddenFiles:u,onShowHiddenFilesChange:h,treeOptions:f,showNavigationPanel:m=!0,navigationPanelOptions:v,deleteConfirmationOptions:C,gridOptions:w,toolbarOptions:b,bulkActionsToolbarOptions:x,destinationFolderPopupOptions:y,conflictResolutionPopupOptions:S,onPathChange:F,onTableFileClick:R,handleSelectionClick:E,onGridApiChange:D,onCopyFiles:T,onMoveToFiles:P,onDeleteFiles:k,onDownloadFiles:I,onRenameValidate:H,renameValidationMessages:M,forbiddenSymbolsRegExp:G=$b,forbiddenSymbolsTooltip:V,onUploadFiles:B,onValidateUpload:K,uploadEnabled:O,uploadValidationMessages:A,maxFileSize:W,onUploadArchive:Y,onCreateFolder:ie,onCreateFolderValidate:be,folderCreationValidationMessages:Z,fileMetadataPopupOptions:me,onGetInfo:Ie,onUnshareFiles:ne,onRemoveFilesAccess:ce,actionsRef:L,sharedByMePaths:ee,onSearchFiles:ye,searchResults:z,searchInProgress:le,clearSearchResults:ve,allowedFileTypes:Ee,maxSelectableFileSize:oe,getDisabledTooltip:xe,fileTooLargeTooltip:Ae,unsupportedFileTypeTooltip:Pe,emptyStateIcon:Ce,emptyStateTitle:Ve,emptyStateDescription:je,sharedWithMeIds:Qe,onFolderPopupPathChange:Ze,onManagePermissions:yt,onPreview:We,onOpenInNewTab:U,previewExtensions:Ne,isRenameFileAvailable:vs,isDuplicateFolderAvailable:qo,customUploadFileAction:Gn,customCreateNewItemAction:fa,customDuplicateAction:Ko,customDeleteItemsAction:Kc,customDownloadItemsAction:Yc,customBreakpointRef:ma,gridClassName:va,nonClickableTableColumns:Ca,hideSearchPathItemName:wa,showHiddenFileSwitcherInDestinationPopup:di,showCreateFolderButtonInDestinationPopup:Vn,autoSelectUploadedItems:_s=!1,maxNewFolderDepth:ft,onNewFolderDepthExceeded:Yo,initialUploadFilesOpen:ba})=>{const{selectedPaths:Us,clearSelection:$s,setSelectedPaths:Ui}=OB({selectedPaths:l,defaultSelectedPaths:c,onSelectedPathsChange:d}),xa=p.useRef(!1),ui=p.useRef(null),Zc=p.useCallback((he,ze,qe)=>{if(_s){const{parent:Ks,name:yd}=uB(ze);ui.current={fileNames:new Set([yd]),destinationFolder:Ks}}ie?.(he,ze,qe)},[ie,_s]),Xc=p.useCallback((he,ze)=>{_s&&(ui.current={fileNames:new Set(he.map(qe=>qe.name)),destinationFolder:ze}),B?.(he,ze)},[B,_s]),Qc=p.useCallback((he,ze,qe)=>{_s&&(ui.current={fileNames:new Set([ze]),destinationFolder:qe}),Y?.(he,ze,qe)},[Y,_s]),Jc=p.useMemo(()=>{const he=new Map;return Us.forEach(ze=>{const qe=si(i,ze);qe&&he.set(ze,qe)}),he},[Us,i]);p.useEffect(()=>{if(Us.size===0)return;let he=!1;for(const ze of Us)if(!si(i,ze)){he=!0;break}if(he){const ze=new Set;for(const qe of Us)si(i,qe)&&ze.add(qe);Ui(ze)}},[i,Us,Ui]);const{currentPath:ct,setCurrentPath:$i,handlePathChange:Dt}=CB({path:o,defaultPath:r,onPathChange:F,onSelectionClear:$s}),Zo=p.useMemo(()=>{const{showFiles:he=!0,showFolders:ze=!0,...qe}=w||{};return{showFiles:he,showFolders:ze,...qe}},[w]),Xo=Zo.showFiles,Qo=Zo.showFolders,[zn,jn]=p.useState(),ed=y?.destinationFolderPath??zn,Wn=p.useCallback(he=>{y?.setDestinationFolderPath?y.setDestinationFolderPath(he):jn(he)},[y]),{areHiddenFilesVisible:qs,toggleHiddenFilesVisibility:ya}=fB({showHiddenFiles:u,onShowHiddenFilesChange:h}),{isTreeCollapsed:Sa,toggleTreeCollapse:Ra,setIsTreeCollapsed:_n}=mB({collapsed:f?.collapsed,onCollapseChange:f?.onCollapseChange}),{renamedPath:td,renamedItem:Un,renameHandler:sd,renameSaveHandler:id,renameCancelHandler:nd,renameValidateHandler:od,getDisplayName:rd}=DB({items:i,onRenameValidate:H,validationMessages:M,onMoveToFiles:P}),{isSearchMode:qi,searchValue:Fa,effectiveSearchValue:$n,setSearchValue:ad,handleSearchChange:Jo,handleSearchClear:tt,searchResultsRows:Ea}=LB({onSearchFiles:ye,clearSearchResults:ve,currentPath:ct,searchResults:z,searchInProgress:le,navigationPanelValue:v?.value,onNavigationPanelSearchChange:v?.onSearchChange,allItems:i,activeTab:b?.activeTab}),dt=p.useMemo(()=>Do(i,ct)??i[0],[i,ct]),Lt=p.useCallback((he,ze)=>!ze||!he?!1:gB(he.path)>ze,[]),ns=p.useCallback(()=>{Yo?.()},[Yo]),{handleCopyTo:Da,handleMoveTo:Pa,handleDuplicate:Ta,handleOpenDestinationFolderPopup:ka,handleCloseDestinationFolderPopup:qn,openDestinationFolderPopup:Kn,handleSetCopiedFiles:Yn,handleSetMovedFiles:ld,destinationFolderMode:Ia,destinationFolderTitle:Ma,conflictingFiles:cd,conflictResolutionOpen:Aa,closeConflictResolution:dd,handleConflictReplace:La,handleConflictDuplicate:er,handleConflictCancel:ud,handleConflictDecideForEach:hd,sourceFolder:pd}=vB({getDestinationFiles:he=>Do(i,he)?.items??[],onCopyFiles:T,onMoveToFiles:P,onCopySuccess:$s,onMoveSuccess:$s,onDuplicateSuccess:$s,getCopyHeader:y?.getCopyHeader,getMoveHeader:y?.getMoveHeader});p.useEffect(()=>{Kn||Wn(void 0)},[Kn,Wn]);const{deleteConfirmationOpen:gd,itemsToDelete:fd,openDeleteConfirmation:Oa,closeDeleteConfirmation:Na,confirmDelete:Ha}=wB({onDeleteFiles:k,onDeleteSuccess:$s}),{handleDownloadFiles:Zn}=bB({onDownloadFiles:I,customDownloadItemsAction:Yc,onDownloadSuccess:$s}),{isDragging:hi,isDraggingOverWindow:md,uploadError:os,handleDragEnter:vd,handleDragLeave:tr,handleDragOver:Xn,handleDrop:pi,clearError:Ba,openFileDialog:sr,fileInputRef:Ga,openArchiveDialog:ir,uploadConflictingFiles:Va,uploadConflictResolutionOpen:Cd,closeUploadConflictResolution:wd,handleUploadConflictReplace:za,handleUploadConflictDuplicate:nr,handleUploadConflictCancel:bd,handleUploadConflictDecideForEach:xd}=yB({onUploadFiles:Xc,onValidateUpload:K,maxFileSize:W,onUploadArchive:Qc,allowedFileTypes:Ee,validationMessages:A,uploadEnabled:O,currentFolder:dt}),or=p.useCallback(he=>{tt();const ze=ct??"",qe=dt?.items??[];pi(he,ze,qe)},[ct,dt,pi,tt]),Ki=p.useCallback(()=>{tt();const he=ct??"",ze=dt?.items??[];sr(he,ze)},[ct,dt,sr,tt]),ja=p.useCallback(()=>{tt();const he=ct??"",ze=dt?.items??[];ir(he,ze)},[ct,dt,ir,tt]),Wa=p.useCallback(()=>{tt(),Gn?.(ct,dt)},[Gn,ct,dt,tt]),_a=p.useCallback(()=>{tt(),fa?.(ct,dt)},[fa,ct,dt,tt]),Ua=p.useCallback(he=>{Ko?.(he)},[Ko]),{isCreatingFolder:Qn,newFolderTempId:Q,createdFolderPath:Je,newFolderDefaultName:Xe,startFolderCreation:Kt,startGridSiblingFolderCreation:gi,startTreeSiblingFolderCreation:fg,startGridChildFolderCreation:mg,startTreeChildFolderCreation:vg,cancelFolderCreation:l0,saveFolderCreation:c0,validateFolderName:d0}=kB({currentFolder:dt,onCreateFolder:Zc,onValidateFolderName:be,validationMessages:Z,items:i}),Cg=p.useCallback(()=>{if(ft&&Lt(dt,ft-1)){ns();return}tt(),Kt()},[tt,Kt,dt,ft,Lt,ns]),{newActions:u0,isNewButtonVisible:h0,isNewButtonDisabled:p0}=PB({newActions:b?.newActions,currentFolder:dt,onUploadFiles:Gn?Wa:Ki,onUploadArchive:ja,onCreateFolder:Cg,onCreateNewItem:_a,isNewButtonDisabled:b?.isNewButtonDisabled}),g0=p.useMemo(()=>{if(qi){let He=Ea;Xo||(He=He.filter(st=>st.nodeType!==we.ITEM)),Qo||(He=He.filter(st=>st.nodeType!==we.FOLDER)),qs||(He=He.filter(st=>!st.path.split("/").filter(Boolean).some(lr=>lr.startsWith("."))));const ar=He.map(st=>({...st,id:st.id??st.path,name:st.name??st.path.split("/").pop()??"",updatedAt:st.updatedAt,size:st.contentLength,contentLength:st.contentLength,author:st.author,path:st.path,nodeType:st.nodeType,extension:st.extension,isTemporary:!1,owner:st.owner,folderId:st.folderId}));return Qn&&Q&&ar.unshift({id:Q,name:Xe,updatedAt:void 0,author:void 0,path:ct??"/",nodeType:we.FOLDER,extension:void 0,isTemporary:!0,owner:void 0}),ar}const he=Po($n).trim(),ze=dt?.items??[];let qe=he?aB(dt):ze;Xo||(qe=qe.filter(He=>He.nodeType!==we.ITEM)),Qo||(qe=qe.filter(He=>He.nodeType!==we.FOLDER)),qs||(qe=qe.filter(He=>he?!He.path.split("/").filter(Boolean).some(st=>st.startsWith(".")):!Vb(He)));const Ks=qe.map(He=>({...He,id:He.id??He.path,name:He.name??He.path.split("/").pop()??"",updatedAt:He.updatedAt,size:He.contentLength,author:He.author,path:He.path,nodeType:He.nodeType,extension:He.extension,isTemporary:!1,owner:He.owner,contentType:He.contentType,contentLength:He.contentLength,folderId:He.folderId}));if(Qn&&Q&&!he&&Ks.unshift({id:Q,name:Xe,updatedAt:void 0,author:void 0,path:ct??"/",nodeType:we.FOLDER,extension:void 0,isTemporary:!0,owner:void 0}),!he)return Ks;const yd=he.split(/\s+/).filter(Boolean);return Ks.filter(He=>{if(He.isTemporary)return!0;const ar=Po(He.name),st=Po(He.author),bg=rB(He.extension);return yd.every(lr=>ar.includes(lr)||st.includes(lr)||bg.includes(lr))})},[qi,Ea,dt,$n,qs,Qn,Q,Xe,Xo,Qo,ct]);p.useEffect(()=>{const he=ui.current;if(!he)return;if((ct??"")!==he.destinationFolder){ui.current=null;return}const ze=Do(i,he.destinationFolder);if(!ze?.items)return;const qe=new Set;for(const Ks of ze.items)he.fileNames.has(Ks.name)&&hB(Ks,Ee,oe)&&qe.add(Ks.path);qe.size>0&&(Ui(qe),ui.current=null)},[i,ct,Ui,Ee,oe]),p.useEffect(()=>{!xa.current&&ba&&(Ki(),xa.current=!0)},[ba,Ki]);const f0=p.useCallback(he=>{Dt(he.path)},[Dt]),m0=p.useCallback(he=>{Dt(he)},[Dt]),v0=p.useCallback(he=>{he.nodeType===we.FOLDER?Dt(he.path):R?.(he)},[Dt,R]),{expandedPaths:Jn,setExpandedPaths:rr,collapseAll:C0}=_b({expandedPaths:f?.expandedPaths,onExpandedPathsChange:f?.onExpandedPathsChange}),{additionalButtons:w0}=IB({collapseAll:C0,expandedPathsLength:Jn.size,additionalButtons:f?.additionalButtons}),b0=p.useCallback(he=>{if(he.length>0){if(ft&&Lt(he[0],ft)){ns();return}tt(),gi(he[0])}},[tt,gi,ft,Lt,ns]),x0=p.useCallback(he=>{if(he.length>0){if(ft&&Lt(he[0],ft-1)){ns();return}tt(),$i(he[0].path),rr(new Set(Jn).add(he[0].path||"/")),mg(he[0])}},[tt,mg,Jn,rr,$i,ns,ft,Lt]),y0=p.useCallback(he=>{if(he.length>0){if(ft&&Lt(he[0],ft)){ns();return}tt(),fg(he[0])}},[tt,fg,ft,Lt,ns]),S0=p.useCallback(he=>{if(he.length>0){if(ft&&Lt(he[0],ft-1)){ns();return}tt(),$i(he[0].path),rr(new Set(Jn).add(he[0].path||"/")),vg(he[0])}},[tt,vg,$i,Jn,rr,ft,Lt,ns]),{isMetadataPopupOpen:R0,selectedFileForMetadata:F0,openMetadataPopup:E0,closeMetadataPopup:wg}=MB({onGetInfo:Ie}),D0=p.useCallback(()=>{wg(),me?.clearMetadata?.()},[wg,me]),P0=p.useMemo(()=>{if(G)return Uc(G)},[G]),T0={managerLabel:e,className:s,items:i,allowedFileTypes:Ee,maxSelectableFileSize:oe,rootItem:n,filesLoading:a,treeOptions:{...f,expandedPaths:Jn,onExpandedPathsChange:rr,additionalButtons:w0},showNavigationPanel:m,navigationPanelOptions:v,gridOptions:Zo,toolbarOptions:b,bulkActionsToolbarOptions:x,deleteConfirmationOptions:C,destinationFolderPopupOptions:{...y,destinationFolderPath:ed,setDestinationFolderPath:Wn,header:Ma,onCreateFolder:ie,onCreateFolderValidate:be,folderCreationValidationMessages:Z,sourceFolder:pd},currentPath:ct,setCurrentPath:$i,searchValue:Fa,effectiveSearchValue:$n,setSearchValue:ad,areHiddenFilesVisible:qs,toggleHiddenFilesVisibility:ya,isTreeCollapsed:Sa,toggleTreeCollapse:Ra,setIsTreeCollapsed:_n,selectedPaths:Us,selectedFiles:Jc,setSelectedPaths:Ui,clearSelection:$s,currentFolder:dt,gridRows:g0,handleCopyTo:Da,handleMoveTo:Pa,handleDuplicate:Ko?Ua:Ta,handleSetCopiedFiles:Yn,handleSetMovedFiles:ld,openDestinationFolderPopup:Kn,handleCloseDestinationFolderPopup:qn,handleOpenDestinationFolderPopup:ka,destinationFolderMode:Ia,handleGridAddSibling:b0,handleGridAddChild:x0,handleTreeAddSibling:y0,handleTreeAddChild:S0,handleDownloadFiles:Zn,renamedPath:td,renamedItem:Un,forbiddenSymbolsRegExp:P0,forbiddenSymbolsTooltip:V,onRename:sd,onRenameSave:id,onRenameCancel:nd,onRenameValidate:od,getDisplayName:rd,openDeleteConfirmation:Kc||Oa,closeDeleteConfirmation:Na,confirmDelete:Ha,deleteConfirmationOpen:gd,itemsToDelete:fd,handlePathChange:Dt,handleTreeItemClick:f0,handleBreadcrumbItemClick:m0,handleSearchChange:Jo,handleTableRowClick:v0,onTableFileClick:R,handleSelectionClick:E,onGridApiChange:D,isDragging:hi,uploadError:os,handleDragEnter:vd,handleDragLeave:tr,handleDragOver:Xn,handleDrop:or,clearUploadError:Ba,onUploadFiles:B,onValidateUpload:K,maxFileSize:W,isDraggingOverWindow:md,openFileDialog:Ki,fileInputRef:Ga,newActions:u0,isNewButtonVisible:h0,isNewButtonDisabled:p0,isCreatingFolder:Qn,newFolderTempId:Q,createdFolderPath:Je,newFolderDefaultName:Xe,startFolderCreation:Cg,cancelFolderCreation:l0,saveFolderCreation:c0,validateFolderName:d0,conflictResolutionPopupOptions:S,conflictingFiles:cd,conflictResolutionOpen:Aa,closeConflictResolution:dd,handleConflictReplace:La,handleConflictDuplicate:er,handleConflictCancel:ud,handleConflictDecideForEach:hd,uploadConflictingFiles:Va,uploadConflictResolutionOpen:Cd,closeUploadConflictResolution:wd,handleUploadConflictReplace:za,handleUploadConflictDuplicate:nr,handleUploadConflictCancel:bd,handleUploadConflictDecideForEach:xd,fileMetadataPopupOptions:me,isMetadataPopupOpen:R0,selectedFileForMetadata:F0,openMetadataPopup:E0,closeMetadataPopup:D0,onGetInfo:Ie,onUnshareFiles:ne,onRemoveFilesAccess:ce,actionsRef:L,sharedByMePaths:ee,onSearchFiles:ye,searchInProgress:le,searchResults:z,clearSearchResults:ve,isSearchMode:qi,emptyStateIcon:Ce,emptyStateTitle:Ve,emptyStateDescription:je,gridClassName:va,sharedWithMeIds:Qe,onFolderPopupPathChange:Ze,onManagePermissions:yt,onPreview:We,onOpenInNewTab:U,previewExtensions:Ne,isRenameFileAvailable:vs,isDuplicateFolderAvailable:qo,customUploadFileAction:Gn,customBreakpointRef:ma,nonClickableTableColumns:Ca,hideSearchPathItemName:wa,getDisabledTooltip:xe,fileTooLargeTooltip:Ae,unsupportedFileTypeTooltip:Pe,showHiddenFileSwitcherInDestinationPopup:di,showCreateFolderButtonInDestinationPopup:Vn,maxNewFolderDepth:ft,onNewFolderDepthExceeded:Yo};return g.jsx(jb.Provider,{value:T0,children:t})},BB=({disabledGridRowIds:e,gridRows:t,getDisabledTooltip:s,getRowDisabledTooltip:i,allowedFileTypes:n,maxSelectableFileSize:o})=>{const[r,a]=p.useState(null),[l,c]=p.useState(null);p.useEffect(()=>{const h=()=>{a(null),c(null)};return window.addEventListener("scroll",h,!0),()=>window.removeEventListener("scroll",h,!0)},[]),p.useEffect(()=>{const h=v=>{const w=v.target.closest(".ag-row");if(!w){a(x=>x&&null);return}const b=new DOMParser().parseFromString(w.getAttribute("row-id")||"","text/html").documentElement.textContent;b&&e.has(b)?a(x=>x!==b?(c(w.getBoundingClientRect()),b):x):a(x=>x&&null)},f=()=>{a(null),c(null)},m=document.querySelector('[aria-label="File Manager Grid View"]');if(m)return m.addEventListener("mousemove",h),m.addEventListener("mouseleave",f),()=>{m.removeEventListener("mousemove",h),m.removeEventListener("mouseleave",f)}},[e]);const d=p.useMemo(()=>{if(r)return t.find(h=>h.path===r)},[r,t]),u=p.useMemo(()=>{if(d){if(s){const h=s(d);if(h)return h}return i(d,n,o)}},[d,s,i,n,o]);return g.jsx(g.Fragment,{children:u&&l&&Bo.createPortal(g.jsxs(Ph,{open:!0,placement:"top",children:[g.jsx(kh,{asChild:!0,children:g.jsx("div",{className:re("fixed z-[-1]",u&&"pointer-events-none"),style:{top:l.top,left:l.left,width:l.width,height:l.height}})}),g.jsx(Th,{className:"max-w-[300px] rounded border border-ui-outline-primary bg-ui-popover px-3 py-1.5 text-center text-primary shadow-md fill-ui-popover",children:u})]}),document.body)})},Kb=({onClose:e,onConfirm:t,onFolderPopupPathChange:s,setDestinationFolderPath:i,open:n,copyLabel:o="Copy",moveLabel:r="Move",addFolderLabel:a="Add folder",mode:l=Ct.Copy,hiddenFilesSwitcherLabel:c="Show hidden files",showHiddenFileSwitcher:d=!0,showCreateFolderButton:u=!0,onUploadFiles:h,onValidateUpload:f,maxFileSize:m,header:v,sourceFolder:C,disabledPathTooltip:w="Unavailable for the original path. Please select another folder",path:b,collapsedFileTree:x=!1,alertProps:y,processDestinationFolderPath:S,...F})=>{const[R,E]=p.useState(!1),[D,T]=p.useState(!1),P=p.useRef(null),k=na(),I=p.useCallback(B=>{E(B)},[]),H=p.useMemo(()=>{const B=[];return u&&B.push({key:"add-folder",label:a,icon:g.jsx(_.IconFolderPlus,{...te,className:"text-secondary"}),onClick:()=>{P.current?.createFolder(),T(!1)}}),d&&B.push({key:"show-hidden-files",label:c,icon:g.jsx(_.IconEye,{...te,className:"text-secondary"}),onClick:()=>{E(K=>!K),T(!1)}}),B},[a,c,d,u]),M=p.useCallback(B=>{if(B){let K=S?S(B):B;s?.(K),i?.(K)}},[s,i,S]),G=l===Ct.Copy?"Copy to":"Move to",V=p.useMemo(()=>!b||!C?!1:C===b,[b,C]);return g.jsx(Hn,{open:n,onClose:()=>{e()},size:es.Lg,dividerFooter:!0,dividers:!1,className:"md:!h-[800px] !bg-layer-2",footer:g.jsxs("div",{className:"flex justify-between items-center gap-2 p-4 md:px-6",children:[g.jsx("div",{className:"flex items-center gap-4 min-w-0",children:k?g.jsx(Mt,{items:H,open:D,onOpenChange:T,children:g.jsx(Fs,{className:"size-9 shrink-0","aria-label":"More options",iconBefore:g.jsx(_.IconDotsVertical,{...te,className:"text-secondary"})})}):g.jsxs(g.Fragment,{children:[u&&g.jsx(Bs,{label:a,appearance:ke.Ghost,iconBefore:g.jsx(_.IconFolderPlus,{...te}),onClick:()=>{P.current?.createFolder()}}),u&&d&&g.jsx("div",{className:"w-px h-[26px] bg-controls-disable-accent my-2"}),d&&g.jsx(g.Fragment,{children:g.jsx("div",{className:"inline-flex items-center cursor-pointer",children:g.jsx(Wc,{label:c,isOn:R,onChange:I,switchId:"hidden-files-switch-modal"})})})]})}),g.jsxs("div",{className:"flex space-x-4 items-center",children:[g.jsx(js,{onClick:e,label:"Cancel"}),V?g.jsx(kt,{tooltip:w,children:g.jsx(Bs,{onClick:t,label:l==="copy"?o:r,disabled:V,"aria-disabled":V})}):g.jsx(Bs,{onClick:t,label:l==="copy"?o:r})]})]}),header:v??G,children:g.jsxs("div",{className:"bg-layer-2 h-full flex flex-col",children:[y&&g.jsx("div",{className:"px-6 mb-4 pt-4",children:g.jsx(Dv,{...y})}),g.jsx("div",{className:"flex-1 min-h-0",children:g.jsx(s0,{...F,gridClassName:"size-full",className:$(F.className,"bg-layer-2 h-full flex pt-0"),actionsRef:P,path:b,showHiddenFiles:R,onShowHiddenFilesChange:I,treeOptions:{...F.treeOptions,collapsed:x,expandedPaths:new Set([F.rootItem?.path||"/"]),header:F.treeOptions?.header},gridOptions:{...F.gridOptions,selectionMode:void 0},navigationPanelOptions:{elementId:"file-manager-destination-search",...F.navigationPanelOptions},onUploadFiles:h,onValidateUpload:f,onPathChange:M,maxFileSize:m})})]})})},GB=12,VB=8;var an=(e=>(e.Normal="normal",e.Reverse="reverse",e))(an||{});function zB({actions:e,direction:t=an.Normal,moreButtonWidth:s=Zt,actionsGap:i=8,containerPadding:n=8,dependencies:o=[]}){const r=p.useRef(null),a=p.useRef(null),l=p.useRef(null),c=p.useRef(null),d=p.useRef([]),[u,h]=p.useState(0),f=p.useCallback((C,w)=>{const b=l.current?.offsetWidth??0,x=c.current?.offsetWidth??0,y=b+x,F=w.getBoundingClientRect().width-y-s-i*2-n*2;let R=0,E=0;if(t===an.Reverse)for(let D=C.length-1;D>=0&&(R+=C[D]+i,!(R>F));D--)E++;else for(const D of C){if(R+=D+i,R>F)break;E++}h(E)},[i,n,t,s]);p.useLayoutEffect(()=>{if(!a.current||!r.current)return;const w=Array.from(a.current.children).map(b=>Math.ceil(b.getBoundingClientRect().width));d.current=w,w.length!==0&&f(w,r.current)},[e,f,...o]),p.useEffect(()=>{if(!r.current)return;let C=null;const w=()=>{C&&cancelAnimationFrame(C),C=requestAnimationFrame(()=>{if(!r.current)return;const x=r.current,y=d.current;y.length!==0&&f(y,x)})},b=new ResizeObserver(w);return b.observe(r.current),w(),()=>{C&&cancelAnimationFrame(C),b.disconnect()}},[e.length,f,...o]);const m=t===an.Reverse?e.slice(0,e.length-u):e.slice(u);return{visibleActions:t===an.Reverse?e.slice(e.length-u):e.slice(0,u),hiddenActions:m,refs:{containerRef:r,measureRef:a,leftSectionRef:l,rightSectionRef:c}}}const jB=({getSelectionLabel:e,onClearSelection:t,actions:s,selectedCount:i})=>{const n=na(),{refs:{containerRef:o,leftSectionRef:r,measureRef:a},visibleActions:l,hiddenActions:c}=zB({actions:s,direction:an.Reverse,dependencies:[n],actionsGap:GB,containerPadding:VB}),d=e(i);return g.jsxs(g.Fragment,{children:[g.jsx("div",{ref:a,className:"absolute top-0 left-0 invisible pointer-events-none overflow-hidden whitespace-nowrap flex gap-3",children:s.map(({key:u,icon:h,title:f})=>g.jsx(js,{iconBefore:h,label:f,hideTitleOnMobile:!0},u))}),g.jsxs("div",{ref:o,className:"rounded bg-layer-0 p-2 flex justify-between items-center w-full",role:"toolbar","aria-label":"File bulk actions",children:[g.jsx("div",{ref:r,children:g.jsx(Bs,{label:d,onClick:t,textClassName:"text-accent-primary whitespace-nowrap",appearance:ke.Ghost,iconBefore:g.jsx(_.IconX,{...te,className:"text-accent-primary"})})}),g.jsxs("div",{className:"flex flex-1 w-full gap-3 items-center justify-end",children:[c.length>0&&g.jsx(Mt,{items:c,allowedPlacements:["bottom","bottom-start"],children:g.jsx(Fs,{className:"h-[38px]",iconBefore:g.jsx(_.IconDotsVertical,{...te,className:"text-secondary hover:text-accent-primary"})})}),l.map(({key:u,icon:h,tooltip:f,title:m,onClick:v,disabled:C})=>g.jsx(js,{className:"!p-[9px]",iconBefore:h,label:m,hideTitleOnMobile:!0,disabled:C,tooltipProps:{tooltip:f},onClick:w=>v?.({key:u,domEvent:w})},u))]})]})]})},WB=({open:e,itemsToDelete:t,onClose:s,onConfirm:i,cancelLabel:n="Cancel",confirmLabel:o="Delete",titleRenderer:r,contentRenderer:a})=>{const l=t.map(f=>f.name),d=r?.(l)||"Confirm Deleting Items",u=g.jsxs("div",{className:"px-6 py-3 dial-small-text",children:[g.jsx("p",{className:"text-secondary mb-3",children:t.length===1?g.jsxs(g.Fragment,{children:["Do you want to delete file or folder"," ",g.jsxs("span",{className:"text-primary break-all",children:['"',t[0].name,'"']}),"?"]}):g.jsxs(g.Fragment,{children:["Do you want to delete the following"," ",g.jsx("span",{className:"text-primary",children:t.length})," items?"]})}),t.length>1&&g.jsx(g.Fragment,{children:t.length<=10?g.jsx("ul",{className:"space-y-1 text-primary list-none",children:t.map(f=>g.jsx("li",{className:"truncate",children:f.name},f.path))}):g.jsxs(g.Fragment,{children:[g.jsx("ul",{className:"space-y-1 text-primary list-none mb-2",children:t.slice(0,10).map(f=>g.jsx("li",{className:"truncate",children:f.name},f.path))}),g.jsxs("p",{className:"text-secondary italic",children:["... and ",t.length-10," more"]})]})})]}),h=a?.(l)||u;return g.jsx(Sb,{open:e,header:d,confirmLabel:o,cancelLabel:n,variant:Ho.Danger,onClose:s,onConfirm:i,children:h})},iv=e=>e.split("/").map(t=>t.trim()).filter(Boolean),_B="w-full flex items-center justify-between gap-4",UB="min-w-0 h-[38px] flex-1 overflow-hidden bg-layer-3 px-3 flex items-center rounded",$B="w-[260px]",qB=({ariaLabel:e="Breadcrumb",labelClassName:t,onItemClick:s,path:i,makeHref:n,rootItemPath:o,rootItemLabel:r,breadcrumbsHiddenPathPart:a,className:l,breadcrumbClassName:c,searchable:d=!0,value:u,elementId:h="file-manager-search",disabled:f,invalid:m,onSearchChange:v,searchClassName:C,searchContainerClassName:w,isCompactView:b=!1})=>{const x=p.useMemo(()=>{if(!i)return;let D=iv(i);const T=[...D];let P=0;if(a){const I=iv(a);if(I.length){const H=D.findIndex((M,G)=>I.every((V,B)=>D[G+B]===V));H!==-1&&(P=I.length,D=[...D.slice(0,H),...D.slice(H+I.length)])}}if(!D.length)return[{label:"/"}];const k=D.map((I,H)=>{const M=H<D.length-P?H:H+P,G=T.slice(0,M+1),V=typeof n=="function"?n(G,M):void 0;return{label:I,href:V,onClick:s?B=>{B.preventDefault(),s(V)}:void 0}});if(o&&r){const I=o.split("/").filter(Boolean),H=i.split("/").filter(Boolean);if(I.every((G,V)=>H[V]===G)&&k.length>0){const G=k.slice(I.length);return[{label:r,href:o,onClick:s?V=>{V.preventDefault(),s(o)}:void 0},...G]}}return k},[i,a,o,r,n,s]),[y,S]=p.useState(!1),F=p.useCallback(()=>{if(b&&!y){S(!0);const D=document.getElementById(h);D&&D.focus()}},[h,y,b]),R=p.useCallback(()=>{(!u||String(u).trim()==="")&&v?.("")},[u,v]),E=p.useCallback(()=>b&&y?g.jsx(js,{className:"!p-[9px]",iconBefore:g.jsx(_.IconArrowLeft,{...te}),onClick:()=>{S(!1),v?.("")}}):g.jsx("div",{className:UB,children:g.jsx(bb,{pathItems:x,ariaLabel:e,labelClassName:t,className:c})}),[e,c,x,y,b,t,v]);return g.jsxs("div",{className:$(_B,{"gap-3":b},l),"aria-label":"navigation-panel",children:[E(),d&&g.jsx("div",{className:$($B,{"w-[40px]":b&&!y,"w-full":b&&y}),role:"search","aria-label":"Search",onClick:F,children:g.jsx(ng,{id:h,value:u??"",onChange:v,disabled:f,onBlur:R,invalid:m,className:C,wrapperClassName:b&&!y?"pl-2.5":"",containerClassName:w})})]})},KB=({tabs:e,activeTab:t,onTabChange:s,areHiddenFilesVisible:i,onToggleHiddenFiles:n,isNewButtonVisible:o,isNewButtonDisabled:r,newButtonVariant:a=Ye.Primary,newButtonDropdownItems:l=[],newButtonLabel:c="New",hiddenFilesSwitcherLabel:d="Hidden files",showHiddenFilesLabel:u="Show hidden files",hideHiddenFilesLabel:h="Hide hidden files",showHiddenFilesToggle:f=!0,disabledNewButtonTooltip:m})=>{const v=na(),C=p.useMemo(()=>[{key:"hidden-files-switch",label:i?h:u,icon:i?g.jsx(_.IconEyeOff,{...te,className:"text-secondary"}):g.jsx(_.IconEye,{...te,className:"text-secondary"}),onClick:()=>n?.(!i)}],[i,h,u,n]),w=()=>e&&t&&s?g.jsx(mb,{tabs:e,activeTab:t,onClick:y=>s(y),screenThreshold:dc.Tablet,smallScreenContainerClassName:"w-fit bg-transparent h-[38px] overflow-hidden",smallScreenDropdownItemClassName:"px-3 h-[38px]"}):null,b=()=>g.jsxs(g.Fragment,{children:[f&&g.jsxs(g.Fragment,{children:[g.jsx(Wc,{switchId:"hidden-files-switch",label:d,isOn:i,onChange:n}),g.jsx("div",{className:"h-6 border-l border-primary"})]}),o&&g.jsx(kt,{tooltip:r&&m?m:void 0,children:g.jsx(Fh,{label:c,variant:a,items:l,disabled:r})})]}),x=()=>g.jsxs(g.Fragment,{children:[g.jsx(Mt,{items:C,allowedPlacements:["bottom","bottom-start"],children:g.jsx(fc,{size:et.Small,icon:g.jsx(_.IconDotsVertical,{stroke:2,size:nt.SM})})}),o?g.jsx(kt,{tooltip:r&&m?m:void 0,children:g.jsx(Fh,{label:c,variant:a,items:l,disabled:r})}):null]});return g.jsxs("div",{className:"flex w-full justify-between gap-4 items-center overflow-x-auto",children:[g.jsx("div",{className:"flex-1 min-w-0",children:w()}),g.jsx("div",{className:"flex gap-2 shrink-0 items-center",children:v?x():b()})]})},YB=100,Cr=16,ks="text-secondary",pl="text-primary min-w-0",ZB="text-primary break-words min-w-0",wr="bg-layer-2",XB=({open:e,onClose:t,fileMetadata:s,loading:i=!1,header:n="Information",nameLabel:o="Name:",pathLabel:r="Path:",modifiedDateLabel:a="Modified Date:",sizeLabel:l="Size:",authorLabel:c="Author:",dateLocale:d="en-US",dateOptions:u})=>g.jsx(Hn,{open:e,onClose:t,size:es.Sm,header:n,dividers:!1,children:g.jsx("div",{className:"px-6 py-4",children:g.jsx("div",{className:"grid gap-4 items-center dial-small-text",style:{gridTemplateColumns:`${YB}px 1fr`},children:i?g.jsxs(g.Fragment,{children:[g.jsx("div",{className:ks,children:o}),g.jsx(oo,{variant:hs.Text,width:"100%",height:Cr,className:wr}),g.jsx("div",{className:ks,children:a}),g.jsx(oo,{variant:hs.Text,width:"90%",height:Cr,className:wr}),g.jsx("div",{className:ks,children:l}),g.jsx(oo,{variant:hs.Text,width:"60%",height:Cr,className:wr}),g.jsx("div",{className:ks,children:c}),g.jsx(oo,{variant:hs.Text,width:"80%",height:Cr,className:wr}),g.jsx("div",{className:ks,children:r}),g.jsx(oo,{variant:hs.Text,width:"70%",height:Cr,className:wr})]}):s?g.jsxs(g.Fragment,{children:[g.jsx("div",{className:ks,children:o}),g.jsx("div",{className:pl,children:g.jsx(bt,{text:s.name})}),g.jsx("div",{className:ks,children:a}),g.jsx("div",{className:pl,children:g.jsx(bt,{text:lB(s.updatedAt,d,u)})}),g.jsx("div",{className:ks,children:l}),g.jsx("div",{className:pl,children:g.jsx(bt,{text:ta(s.contentLength)})}),g.jsx("div",{className:ks,children:c}),g.jsx("div",{className:pl,children:g.jsx(bt,{text:s.author||"—"})}),g.jsx("div",{className:ks,children:r}),g.jsx("div",{className:ZB,children:decodeURIComponent(s.path)})]}):null})})}),QB={size:10,stroke:2},JB=26,br="__new_folder";var ts=(e=>(e.File="file",e.Folder="folder",e))(ts||{});const eG=({name:e,type:t,shared:s=!1,loading:i=!1,sharedIndicatorClassName:n,sharedIndicatorTooltip:o,fileExtension:r,...a})=>{const l=c=>g.jsxs("span",{className:"inline-flex relative text-secondary",role:"img",children:[c,s&&g.jsx("span",{className:"absolute -bottom-0.5 -left-0.5",children:g.jsx(zr,{className:n,sharedIndicatorTooltip:o})})]});if(i)return l(g.jsx(oa,{}));if(t===ts.File){const c=r||(e.includes(".")?e.split(".").pop():void 0);return g.jsx(Vh,{...a,extension:c??"",className:"text-secondary",indicator:s?g.jsx(zr,{className:n,sharedIndicatorTooltip:o}):null,label:"File type icon"})}return t===ts.Folder?l(g.jsx(Oe,{icon:g.jsx(_.IconFolder,{className:a.className,size:a.size??te.size,stroke:a.stroke??te.stroke}),className:"inline-block align-middle"})):null},Yb="data-editable-container",tG={[Yb]:""};function Zb({value:e,isEditing:t,isCreating:s,isLoading:i=!1,restoreOnCancel:n=!0,onValidate:o,onSave:r,onCancel:a,onCreateFolderSave:l,onCreateFolderCancel:c}){const[d,u]=p.useState(e),[h,f]=p.useState(!1),[m,v]=p.useState(""),C=p.useRef(null),w=p.useRef(!1),b=p.useRef(!1),x=p.useCallback((D=!1,T="")=>{f(D),v(T)},[]),y=p.useCallback(D=>{if(!o)return x(),!0;const T=o(D);return T?T.startsWith(`${us.Warning}__`)?(x(!1,T),!0):(x(!0,T),!1):(x(),!0)},[o,x]),S=p.useCallback(D=>{const T=D??"";u(T),y(T)},[y]),F=p.useCallback(D=>{s&&!w.current&&!i?l?.(D):!s&&t&&r?.(D),w.current=!1},[r,l,s,t,i]),R=p.useCallback(()=>{n&&u(e),s?c?.():a?.(),w.current=!0,x()},[e,a,n,x,c,s]),E=p.useCallback(()=>{if(!b.current){if(b.current=!0,y(d)){F(d);return}y(e)?(u(e),x(),F(e)):R()}},[y,d,e,F,R,x]);return p.useEffect(()=>{!t&&!s||(w.current=!1,b.current=!1,u(e),x(),requestAnimationFrame(()=>{C.current?.focus(),C.current?.select()}))},[t,s,e,x]),p.useEffect(()=>{const D=C.current;if(!t&&!s||!D)return;const T=P=>{P.key==="Enter"?(P.preventDefault(),C.current?.blur()):P.key==="Escape"&&(P.preventDefault(),R())};return D.addEventListener("keydown",T),()=>D.removeEventListener("keydown",T)},[t,s,R]),p.useEffect(()=>{if(!t&&!s||i)return;const D=C.current;if(!D)return;const T=I=>I?(D.closest(`[${Yb}]`)??D).contains(I):!1,P=I=>{T(I.target)||E()},k=I=>{T(I.relatedTarget)||E()};return document.addEventListener("pointerdown",P,!0),D.addEventListener("blur",k),()=>{document.removeEventListener("pointerdown",P,!0),D.removeEventListener("blur",k)}},[t,s,i,E]),{inputRef:C,value:d,onChange:S,invalid:h,invalidMessage:m}}const sG=({name:e,type:t,elementId:s,loading:i=!1,shared:n=!1,iconClassName:o,iconIndicator:r,iconLabel:a,iconSize:l,iconStroke:c,inputInvalid:d,inputInvalidMessage:u,inputContainerClassName:h,inputIconAfter:f,inputRef:m,onChange:v,sharedIndicatorClassName:C,sharedIndicatorTooltip:w,fileExtension:b})=>{const x=()=>{const y=u?.startsWith(`${us.Warning}__`);if(!d&&!y)return null;const S=u?.replace(`${us.Warning}__`,"");return g.jsx(kt,{tooltip:S,children:f||(y?g.jsx(_.IconAlertTriangleFilled,{...te,className:"text-warning-icon","aria-label":"warning"}):g.jsx(_.IconAlertCircleFilled,{...te,className:"text-error","aria-label":"alert"}))})};return g.jsxs("div",{className:"flex gap-2 items-center",...tG,children:[g.jsx(eG,{name:e,type:t,label:a,className:o,indicator:r,size:l,stroke:c,loading:i,shared:n,fileExtension:b,sharedIndicatorClassName:C,sharedIndicatorTooltip:w}),g.jsx(ai,{containerClassName:$("!h-6 py-[1px] pl-[7px] pr-[7px]",h),id:s,value:e,onChange:v,invalid:d,iconAfter:x(),inputRef:m})]})},gc=({name:e,type:t,elementId:s,editing:i=!1,loading:n=!1,creating:o=!1,shared:r=!1,iconSize:a=Zt,validate:l,onSave:c,fileExtension:d,onCancel:u,onCreateFolderCancel:h,onCreateFolderSave:f,inputContainerClassName:m,sharedIndicatorClassName:v,sharedIndicatorTooltip:C,hideTooltip:w=!1,forbiddenSymbolsRegExp:b,forbiddenSymbolsTooltip:x,...y})=>{const{value:S,invalid:F,invalidMessage:R,onChange:E,inputRef:D}=Zb({value:e,isEditing:i,isCreating:o,isLoading:n,onValidate:l,onCancel:u,onSave:c,onCreateFolderCancel:h,onCreateFolderSave:f});if(!i&&!o){const T=dg({name:e,isFolder:t===ts.Folder},b,x),P=!!T;return t===ts.Folder?g.jsx(Sc,{name:e,loading:n,shared:r,iconSize:a,className:"max-w-[428px] truncate",sharedIndicatorClassName:v,hideTooltip:w,isInvalidName:P,tooltipContent:T}):g.jsx(yc,{className:"max-w-[428px]",...y,name:e,shared:r,iconSize:a,sharedIndicatorClassName:v,hideTooltip:w,isInvalidName:P,tooltipContent:T})}return g.jsx(sG,{type:t,name:S,elementId:s,inputInvalid:F,inputInvalidMessage:R,inputRef:D,onChange:E,iconSize:a,fileExtension:d,inputContainerClassName:m,sharedIndicatorTooltip:C,sharedIndicatorClassName:v})},iG=({items:e,showFiles:t=!1,expandedPaths:s,loadingPaths:i=new Set,loadedPaths:n=new Set,sharedByMePaths:o=new Set,selectedPath:r,emptyStateTitle:a="No Folders",emptyStateDescription:l,emptyStateIcon:c,areHiddenFilesVisible:d=!1,renamedPath:u,createdFolderPath:h,rootItemLabel:f,rootItemPath:m,onItemClick:v,getContextMenuItems:C,onRenameSave:w,onRenameCancel:b,onRenameValidate:x,onExpandedPathsChange:y,onCreateFolderSave:S,onCreateFolderCancel:F,forbiddenSymbolsRegExp:R,forbiddenSymbolsTooltip:E,newFolderDefaultName:D})=>{const{expandedPaths:T,togglePath:P}=_b({expandedPaths:s??new Set,onExpandedPathsChange:y}),k=H=>{v?.(H),P(H.path)},I=(H,M,G)=>{let V=H;return G&&G.path===h&&(V=[{folderId:br,id:br,items:[],name:D||"",nodeType:we.FOLDER,parentPath:h,path:`${h}/${br}`},...H]),V.map(B=>{const{path:K,nodeType:O,name:A,items:W}=B,Y=O===we.FOLDER;if(!d&&Vb(B))return null;if(!Y&&!t)return;const ie=Array.isArray(W)&&W.length>0&&W.some(ve=>ve.nodeType===we.FOLDER||t),be=T.has(K),Z=r===K,me=i.has(K),Ie=u===K||K===`${h}/${br}`,ne=n.has(K),ce=o.has(K),L=m&&f&&K===m&&Y,ee=x&&(ve=>x(ve,B)),ye=Z?"bg-accent-primary-alpha border-l-2 border-l-accent-primary rounded":"border-l-2 border-l-transparent",z=L?[]:C?.(B)??[],le=R?dg({name:B.name,isFolder:Y},R,E):void 0;return g.jsx("div",{className:"cursor-pointer text-secondary",children:g.jsxs("div",{className:"flex flex-col w-full","aria-label":"folder",children:[g.jsx(Mt,{trigger:[Qt.ContextMenu],className:"w-full",anchorToMouse:!0,items:z,children:g.jsxs("div",{style:{paddingLeft:`${M*JB}px`},className:$("py-1 gap-[2px] dial-small-text flex justify-between hover:bg-accent-primary-alpha rounded group/item w-full mb-[2px] relative",ye),"aria-selected":Z,children:[!Ie&&g.jsx("div",{className:"absolute size-full left-0 top-0 z-0",onClick:()=>k(B)}),g.jsx("div",{className:"relative flex flex-row truncate items-center w-fit h-6 gap-x-1 pl-1",onClick:()=>!Ie&&k(B),children:g.jsxs(g.Fragment,{children:[Y&&g.jsx(_.IconCaretRightFilled,{...QB,className:re("flex-shrink-0",be&&"rotate-90 transition-all",ne&&!ie&&"text-transparent")}),g.jsx(gc,{elementId:`${K}-tree-item`,name:L?f:A,type:Y?ts.Folder:ts.File,loading:me,shared:ce,sharedIndicatorClassName:$("group-hover/item:bg-accent-primary-alpha",Z&&"bg-accent-primary-alpha"),iconSize:Pi,forbiddenSymbolsRegExp:R,forbiddenSymbolsTooltip:le,...!L&&{editing:Ie,creating:K===`${h}/${br}`,onSave:w,onCancel:b,validate:ee,onCreateFolderSave:S,onCreateFolderCancel:F}})]})}),z.length>0&&!Ie&&!L&&g.jsx("div",{className:"flex-1 flex justify-end",children:g.jsx(Mt,{placement:"bottom-start",allowedPlacements:["top-start","top-end"],items:z,className:"sticky right-0",children:g.jsx(Oe,{className:"invisible group-hover/item:visible text-secondary mx-2 flex flex-row gap-2 hover:text-accent-primary",icon:g.jsx(_.IconDotsVertical,{...te})})})})]})}),be&&(W||B?.path===h)&&I(W||[],M+1,B)]})},`${K}-children`)})};return g.jsx("div",{className:"flex-1 size-full overflow-y-auto","aria-label":"folders-tree",children:e.length>0?I(e,0):g.jsx(ra,{title:a,description:l,icon:c})})},nG=({selectedFiles:e,actionLabels:t,onDuplicate:s,onCopy:i,onMove:n,onDownload:o,onUnshare:r,onRemoveAccess:a,onDelete:l,getCurrentFolderPath:c,sharedWithMeIds:d,sharedByMePaths:u,onClearSelection:h,forbiddenSymbolsRegExp:f})=>p.useMemo(()=>{const m=[],v=Array.from(e.values());if(!v.length||!t)return m;const C=Uc(f),w=C?v.some(b=>C.test(b.name)):!1;if(t[X.RemoveAccess]&&a){const b=v.some(x=>!u?.has(x.path));m.push({key:X.RemoveAccess,label:t[X.RemoveAccess],title:t[X.RemoveAccess],disabled:b,icon:g.jsx(_.IconUserX,{size:te.size,className:"text-secondary"}),onClick:()=>{a(v),h()}})}if(t[X.Move]&&!w&&m.push({key:X.Move,label:t[X.Move],title:t[X.Move],icon:g.jsx(rg,{width:te.size,height:te.size,className:"text-secondary"}),onClick:()=>n(v)}),t[X.Copy]&&!w&&m.push({key:X.Copy,label:t[X.Copy],title:t[X.Copy],icon:g.jsx(og,{width:te.size,height:te.size,className:"text-secondary"}),onClick:()=>i(v)}),t[X.Duplicate]&&!w&&m.push({key:X.Duplicate,label:t[X.Duplicate],title:t[X.Duplicate],icon:g.jsx(_.IconCopy,{...te,className:"text-secondary"}),onClick:()=>s(v)}),t[X.Delete]){const b=v.some(x=>x.permissions&&!x.permissions.includes(Bn.WRITE));m.push({key:X.Delete,label:t[X.Delete],title:t[X.Delete],icon:g.jsx(_.IconTrashX,{...te,className:"text-secondary"}),disabled:b,tooltip:b?"Selected items contain item which can not be deleted":void 0,onClick:()=>{const x=c();l(v,x)}})}if(t[X.Download]&&!w&&m.push({key:X.Download,label:t[X.Download],title:t[X.Download],icon:g.jsx(_.IconDownload,{...te,className:"text-secondary"}),onClick:()=>o(v)}),t[X.Unshare]&&r){const b=v.some(x=>!d?.includes(x.path));m.push({key:X.Unshare,label:t[X.Unshare],title:t[X.Unshare],disabled:b,tooltip:b?"Selected items contain item which can not be unshared":void 0,icon:g.jsx(ag,{width:te.size,height:te.size,className:"text-secondary"}),onClick:()=>{r(v),h()}})}return m},[e,t,r,a,n,i,s,c,l,o,d,h,u,f]);function hg(e){if(!e)return null;if(e instanceof Date)return isFinite(e.getTime())?e:null;if(typeof e=="number"){const t=new Date(e);return isFinite(t.getTime())?t:null}if(typeof e=="string"){const t=e.trim();if(/^-?\d+$/.test(t)){const i=Number(t);return hg(i)}const s=new Date(t);return isFinite(s.getTime())?s:null}return null}const Xb=({value:e,locale:t=pb,options:s=gb,emptyPlaceholder:i,className:n,hideTooltip:o=!1})=>{const r=hg(e),a=p.useMemo(()=>r?new Intl.DateTimeFormat(t,s).format(r):i,[r,i,t,s]),l=r?r.toISOString():void 0;return g.jsx(bt,{text:l?g.jsx("time",{dateTime:l,children:a}):g.jsx("span",{children:a}),className:re(SN,n),hideTooltip:o})},oG=({id:e,name:t,nodeType:s,size:i,updatedAt:n,dateLocale:o,dateOptions:r,shared:a,sharedIndicatorClassName:l,hideTooltip:c=!1,forbiddenSymbolsRegExp:d,forbiddenSymbolsTooltip:u})=>g.jsx("div",{className:"flex",children:g.jsx("div",{className:"flex flex-1 min-w-0",children:g.jsx(gc,{type:s===we.FOLDER?ts.Folder:ts.File,name:t,elementId:e,shared:a,iconSize:Pi,sharedIndicatorClassName:l,hideTooltip:c,forbiddenSymbolsRegExp:d,forbiddenSymbolsTooltip:u,details:g.jsxs("div",{className:"flex items-center gap-1 dial-tiny-text text-secondary",children:[g.jsx("span",{children:s===we.ITEM?ta(i):""}),n&&i&&g.jsx(_.IconCircleFilled,{size:2,className:"text-secondary"}),n?g.jsx("span",{children:g.jsx(Xb,{value:n,locale:o?.toString(),options:r,className:"dial-tiny-text text-secondary",hideTooltip:c})}):null]})})})}),Qb=e=>(t,s,i)=>({colId:wt.Name,field:"name",headerName:e,flex:1,minWidth:200,cellRenderer:n=>{const o=n.data.nodeType,{saveFolderCreation:r,validateFolderName:a,cancelFolderCreation:l,newFolderTempId:c,sharedByMePaths:d,selectedPaths:u,disabledRowIds:h,filesLoading:f}=n.context,m=d?.has(n.data.path),v=u?.has(n.data.path),C=h?.has(n.data.path)??!1,w=$(["group-hover/grid-row:bg-accent-primary-alpha",v&&"bg-accent-primary-alpha"]);if(n.data?.isTemporary&&n.data.id===c)return g.jsx(gc,{name:n.data.name,type:ts.Folder,elementId:`new-folder-${n.data.id}`,editing:!0,creating:!0,loading:f,shared:m,sharedIndicatorClassName:w,iconSize:Pi,validate:a,onSave:r,onCancel:l,onCreateFolderSave:r,onCreateFolderCancel:l,inputContainerClassName:$(["!h-9",i&&o===we.ITEM&&"!h-10"])});const{renameTriggerView:b,renamedPath:x,renamedItem:y,getDisplayName:S,onRenameValidate:F,onRenameSave:R,onRenameCancel:E}=n.context;if(b===Eo.Grid&&x===n.data?.path&&y&&n.data){const P=S(y);return g.jsx(gc,{name:P,type:o===we.FOLDER?ts.Folder:ts.File,fileExtension:y.name.split(".").pop(),elementId:`rename-${n.data.id}`,editing:!0,shared:m,sharedIndicatorClassName:w,iconSize:Pi,validate:k=>F(k,y),onSave:R,onCancel:E,inputContainerClassName:$(["!h-9",i&&o===we.ITEM&&"!h-10"]),forbiddenSymbolsRegExp:n.context.forbiddenSymbolsRegExp})}if(i)return g.jsx(oG,{id:n.data.id,name:n.data.name,nodeType:o,size:n.data.size,shared:m,sharedIndicatorClassName:w,updatedAt:n.data.updatedAt,dateLocale:t,dateOptions:s,hideTooltip:C,forbiddenSymbolsRegExp:n.context.forbiddenSymbolsRegExp,forbiddenSymbolsTooltip:n.context.forbiddenSymbolsTooltip});const T=dg({name:n.data.name,isFolder:o===we.FOLDER},n.context.forbiddenSymbolsRegExp,n.context.forbiddenSymbolsTooltip);return o===we.FOLDER?g.jsx(Sc,{name:n.data.name,shared:m,sharedIndicatorClassName:w,iconSize:Pi,hideTooltip:C,isInvalidName:!!T,tooltipContent:T}):g.jsx(yc,{name:n.data.name,shared:m,sharedIndicatorClassName:w,iconSize:Pi,hideTooltip:C,isInvalidName:!!T,tooltipContent:T})}}),Jb=e=>(t,s)=>({colId:wt.UpdatedAt,field:"updatedAt",headerName:e,width:168,suppressSizeToFit:!0,cellRenderer:i=>{const n=i.context?.disabledRowIds?.has(i.data?.path)??!1;return g.jsx(Xb,{...i,hideTooltip:n})},cellRendererParams:{locale:t,options:s},filterValueGetter:i=>{const n=i.data[i.colDef.field||""],o=hg(n);return o?new Intl.DateTimeFormat(t||pb,s||gb).format(o):""}}),e0=e=>({colId:wt.Size,field:"size",headerName:e,width:120,suppressSizeToFit:!0,cellRenderer:t=>t.data.nodeType===we.ITEM?ta(t.data.contentLength):"",filterValueGetter:t=>t.data.nodeType===we.ITEM?ta(t.data.contentLength):""}),rG=e=>{const t=e.event;if(!(t?.target??null)?.closest("input")||!t)return!1;switch(t.key){case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"ArrowDown":case"Home":case"End":return!0;default:return!1}};function aG({userColumnDefs:e,filterable:t,dateLocale:s,dateOptions:i,effectiveVisibleColumns:n,isCompactView:o,hasActions:r,actionsColumnDef:a,rootItemLabel:l,rootItemPath:c}){const d=p.useMemo(()=>[Qb("Name")(s,i,o),{colId:wt.Path,field:"path",headerName:"Path",flex:1,minWidth:200,cellRenderer:h=>{const f=h.context?.disabledRowIds?.has(h.data.path)??!1;let m=h.data.path;if(h.context?.hideSearchPathItemName&&(h.data.parentPath?m=h.data.parentPath:m=m.replace(/\/[^/]+\/?$/,"")||"/"),!c||!l)return g.jsx(bt,{text:m,hideTooltip:f});const v=m.replace(c,l);return g.jsx(bt,{text:v,hideTooltip:f})}},Jb("Modified Date")(s,i),e0("Size"),{colId:wt.Author,field:"author",headerName:"Author",width:200,suppressSizeToFit:!0,cellRenderer:h=>h.data.author},{colId:wt.Owner,field:"owner",headerName:"Owner",width:200,suppressSizeToFit:!0,cellRenderer:h=>h.data.owner}],[s,i,o,l,c]);return{columnDefs:p.useMemo(()=>{const h=e?.map(v=>typeof v=="function"?v(s,i,o):v);let f=h??d;h||(f=f.filter(v=>v.colId&&n.includes(v.colId))),r&&(o&&(f=f.slice(0,1)),f.push(a));const m=v=>v.colId===wt.Name;return f.map(v=>{const C={...v,filter:t?v.filter:!1,floatingFilter:t?v.floatingFilter:!1};return m(v)&&!v.suppressKeyboardEvent&&(C.suppressKeyboardEvent=rG),C})},[a,s,i,d,n,t,r,o,e])}}const t0=()=>{const e=p.useContext(jb);if(!e)throw new Error("useFileManagerContext must be used within <FileManagerProvider>");return e},lG=({actionLabels:e,onDuplicate:t,onCopy:s,onMove:i,onDownload:n,onRename:o,onDelete:r,onInfo:a,onUnshare:l,onRemoveAccess:c,sharedWithMeIds:d,sharedByMePaths:u,onManagePermissions:h,onPreview:f,onOpenInNewTab:m,previewExtensions:v,isRenameFileAvailable:C=!0,isDuplicateFolderAvailable:w=!0,forbiddenSymbolsRegExp:b,onGridCreateSiblingFolder:x,onGridCreateChildFolder:y})=>p.useMemo(()=>S=>{const F=[];if(!e)return F;const R=Uc(b)?.test(S.name);e[X.AddSibling]&&S.nodeType===we.FOLDER&&F.push({key:"addSibling",label:e[X.AddSibling],icon:g.jsx(Gb,{width:te.size,height:te.size,className:"text-secondary"}),onClick:()=>x([S])}),e[X.AddChild]&&S.nodeType===we.FOLDER&&!R&&F.push({key:"addChild",label:e[X.AddChild],icon:g.jsx(Bb,{width:te.size,height:te.size,className:"text-secondary"}),onClick:()=>y([S])},{key:"divider",type:No.Divider}),e[X.OpenInNewTab]&&typeof m=="function"&&S.nodeType===we.ITEM&&!R&&F.push({key:X.OpenInNewTab,label:e[X.OpenInNewTab],icon:g.jsx(_.IconExternalLink,{...te,className:"text-secondary"}),onClick:()=>m?.(S)});const E=S.nodeType===we.ITEM||S.nodeType===we.FOLDER&&w;e[X.Duplicate]&&E&&!R&&F.push({key:X.Duplicate,label:e[X.Duplicate],icon:g.jsx(_.IconCopy,{...te,className:"text-secondary"}),onClick:()=>t(S)}),e[X.Copy]&&!R&&F.push({key:X.Copy,label:e[X.Copy],icon:g.jsx(og,{width:te.size,height:te.size,className:"text-secondary"}),onClick:()=>s(S)}),e[X.Move]&&!R&&F.push({key:X.Move,label:e[X.Move],icon:g.jsx(rg,{width:te.size,height:te.size,className:"text-secondary"}),onClick:()=>i(S)}),e[X.Download]&&!R&&F.push({key:X.Download,label:e[X.Download],icon:g.jsx(_.IconDownload,{...te,className:"text-secondary"}),onClick:()=>n(S)}),e[X.ManagePermissions]&&typeof h=="function"&&S.nodeType===we.FOLDER&&!R&&F.push({key:X.ManagePermissions,label:e[X.ManagePermissions],icon:g.jsx(_.IconExternalLink,{...te,className:"text-secondary"}),onClick:()=>h?.(S.path)});const D=S.name.split("."),T=D.length>1?D[D.length-1]:"",P=T&&v?.includes(`.${T}`);e[X.Preview]&&typeof f=="function"&&S.nodeType===we.ITEM&&P&&!R&&F.push({key:X.Preview,label:e[X.Preview],icon:g.jsx(_.IconEye,{...te,className:"text-secondary"}),onClick:()=>f?.(S.path)});const k=!S.permissions||S.permissions.includes(Bn.WRITE);e[X.Delete]&&k&&F.push({key:X.Delete,label:e[X.Delete],icon:g.jsx(_.IconTrashX,{...te,className:"text-secondary"}),onClick:()=>r(S,S.parentPath??"")});const I=S.nodeType===we.FOLDER||S.nodeType===we.ITEM&&C;return e[X.Rename]&&I&&k&&F.push({key:X.Rename,label:e[X.Rename],icon:g.jsx(_.IconPencilMinus,{...te,className:"text-secondary"}),onClick:()=>o(S.path)}),e[X.Info]&&S.nodeType===we.ITEM&&!R&&F.push({key:X.Info,label:e[X.Info],icon:g.jsx(_.IconInfoCircle,{...te,className:"text-secondary"}),onClick:()=>a(S)}),e[X.Unshare]&&d?.includes(S.path)&&F.push({key:X.Unshare,label:e[X.Unshare],icon:g.jsx(ag,{width:te.size,height:te.size,className:"text-secondary"}),onClick:()=>l(S)}),e[X.RemoveAccess]&&u?.has(S.path)&&c&&F.push({key:X.RemoveAccess,label:e[X.RemoveAccess],icon:g.jsx(_.IconUserX,{size:te.size,className:"text-secondary"}),onClick:()=>c(S)}),F},[e,t,s,i,n,r,o,a,l,c,d,u,h,f,m,v,C,w,b,y,x]),cG=({onGridAddSibling:e,onGridAddChild:t,onTreeAddSibling:s,onTreeAddChild:i})=>{const[n,o]=p.useState(nn.Grid),r=p.useCallback(d=>{e?.(d),o(nn.Grid)},[e]),a=p.useCallback(d=>{s?.(d),o(nn.Tree)},[s]),l=p.useCallback(d=>{t?.(d),o(nn.Grid)},[t]),c=p.useCallback(d=>{i?.(d),o(nn.Tree)},[i]);return{createFolderTriggerView:n,onGridCreateSiblingFolder:r,onTreeCreateSiblingFolder:a,onGridCreateChildFolder:l,onTreeCreateChildFolder:c}},s0=e=>g.jsx(qb,{...e,children:g.jsx(dG,{})}),dG=()=>{const{managerLabel:e,className:t,items:s,rootItem:i,filesLoading:n,treeOptions:o,showNavigationPanel:r,navigationPanelOptions:a,gridOptions:l,toolbarOptions:c,bulkActionsToolbarOptions:d,deleteConfirmationOptions:u,destinationFolderPopupOptions:h,conflictResolutionPopupOptions:f,compactViewWidthBreakpoint:m=KH,customBreakpointRef:v,sharedByMePaths:C,allowedFileTypes:w,maxSelectableFileSize:b,areHiddenFilesVisible:x,toggleHiddenFilesVisibility:y,isTreeCollapsed:S,toggleTreeCollapse:F,currentPath:R,gridRows:E,selectedPaths:D,selectedFiles:T,clearSelection:P,setSelectedPaths:k,effectiveSearchValue:I,handleBreadcrumbItemClick:H,handleSearchChange:M,handleTreeItemClick:G,handleTableRowClick:V,handleSelectionClick:B,onGridApiChange:K,handleOpenDestinationFolderPopup:O,handleCloseDestinationFolderPopup:A,openDestinationFolderPopup:W,destinationFolderMode:Y,handleSetCopiedFiles:ie,handleSetMovedFiles:be,handleDuplicate:Z,handleCopyTo:me,handleMoveTo:Ie,handleGridAddSibling:ne,handleGridAddChild:ce,handleTreeAddSibling:L,handleTreeAddChild:ee,handleDownloadFiles:ye,openDeleteConfirmation:z,closeDeleteConfirmation:le,confirmDelete:ve,deleteConfirmationOpen:Ee,itemsToDelete:oe,renamedPath:xe,renamedItem:Ae,onRename:Pe,onRenameSave:Ce,onRenameCancel:Ve,onRenameValidate:je,createdFolderPath:Qe,forbiddenSymbolsRegExp:Ze,forbiddenSymbolsTooltip:yt,getDisplayName:We,isDragging:U,isDraggingOverWindow:Ne,handleDragEnter:vs,handleDragLeave:qo,handleDragOver:Gn,handleDrop:fa,onUploadFiles:Ko,onValidateUpload:Kc,maxFileSize:Yc,newActions:ma,isNewButtonVisible:va,isNewButtonDisabled:Ca,newFolderTempId:wa,cancelFolderCreation:di,saveFolderCreation:Vn,validateFolderName:_s,startFolderCreation:ft,conflictingFiles:Yo,conflictResolutionOpen:ba,handleConflictReplace:Us,handleConflictDuplicate:$s,handleConflictCancel:Ui,handleConflictDecideForEach:xa,uploadConflictingFiles:ui,uploadConflictResolutionOpen:Zc,handleUploadConflictReplace:Xc,handleUploadConflictDuplicate:Qc,handleUploadConflictCancel:Jc,handleUploadConflictDecideForEach:ct,openMetadataPopup:$i,fileMetadataPopupOptions:Dt,isMetadataPopupOpen:Zo,selectedFileForMetadata:Xo,closeMetadataPopup:Qo,onUnshareFiles:zn,onRemoveFilesAccess:jn,actionsRef:ed,searchInProgress:Wn,isSearchMode:qs,emptyStateIcon:ya,emptyStateTitle:Sa="You don't have any files",emptyStateDescription:Ra="Upload or drag and drop files",sharedWithMeIds:_n,onFolderPopupPathChange:td,onManagePermissions:Un,onPreview:sd,onOpenInNewTab:id,previewExtensions:nd,isRenameFileAvailable:od,isDuplicateFolderAvailable:rd,getDisabledTooltip:qi,fileTooLargeTooltip:Fa,unsupportedFileTypeTooltip:$n,gridClassName:ad,nonClickableTableColumns:Jo,hideSearchPathItemName:tt,showHiddenFileSwitcherInDestinationPopup:Ea,showCreateFolderButtonInDestinationPopup:dt,newFolderDefaultName:Lt}=t0(),{width:ns=WH,header:Da=_H,containerClassName:Pa=VH,additionalButtons:Ta,...ka}=o??{},[qn,Kn]=p.useState(ns),{renameTriggerView:Yn,onGridRename:ld,onTreeRename:Ia}=XH({onRename:Pe}),{createFolderTriggerView:Ma,onGridCreateSiblingFolder:cd,onTreeCreateSiblingFolder:Aa,onGridCreateChildFolder:dd,onTreeCreateChildFolder:La}=cG({onGridAddSibling:ne,onGridAddChild:ce,onTreeAddSibling:L,onTreeAddChild:ee}),er=p.useRef(null),ud=Q=>{er.current===null&&(er.current=requestAnimationFrame(()=>{Kn(Q),er.current=null}))},{columnDefs:hd,filterable:pd=!0,dateLocale:gd,dateOptions:fd,selectionMode:Oa,wrapCustomCellRenderers:Na,visibleColumns:Ha=YH,allowDisabledContextMenu:Zn=!1,...hi}=l??{},{containerRef:md,isBelowBreakpoint:os}=QH(m,v),vd=p.useMemo(()=>qs?[wt.Name,wt.Path,wt.Actions]:Ha,[qs,Ha]),tr=p.useCallback((Q,Je,Xe)=>pB(Q,Je,Xe,$n,Fa),[Fa,$n]),Xn=p.useCallback((Q,Je,Xe)=>!!qi?.(Q)||!!tr(Q,Je,Xe),[tr,qi]),pi=p.useMemo(()=>{const Q=new Set;for(const Je of E)Xn(Je,w,b)&&Q.add(Je.path);return Q},[w,b,E,Xn]),Ba=p.useCallback(Q=>{const Je=[],Xe=[],Kt=!Q.parentPath,gi=Ze?.test(Q.name);return o?.actionLabels&&(o.actionLabels[X.AddSibling]&&Q.nodeType===we.FOLDER&&!Kt&&Je.push({key:"addSibling",label:o.actionLabels[X.AddSibling],icon:g.jsx(Gb,{width:te.size,height:te.size,className:"text-secondary"}),onClick:()=>Aa([Q])}),o.actionLabels[X.AddChild]&&Q.nodeType===we.FOLDER&&!gi&&Je.push({key:"addChild",label:o.actionLabels[X.AddChild],icon:g.jsx(Bb,{width:te.size,height:te.size,className:"text-secondary"}),onClick:()=>La([Q])}),o.actionLabels[X.Duplicate]&&!Kt&&!gi&&Xe.push({key:"duplicate",label:o.actionLabels[X.Duplicate],icon:g.jsx(_.IconCopy,{...te,className:"text-secondary"}),onClick:()=>Z([Q])}),o.actionLabels[X.Copy]&&!Kt&&!gi&&Xe.push({key:Ct.Copy,label:o.actionLabels[X.Copy],icon:g.jsx(og,{width:te.size,height:te.size,className:"text-secondary"}),onClick:()=>{ie([Q]),O(Ct.Copy)}}),o.actionLabels[X.Move]&&!Kt&&!gi&&Xe.push({key:Ct.Move,label:o.actionLabels[X.Move],icon:g.jsx(rg,{width:te.size,height:te.size,className:"text-secondary"}),onClick:()=>{be([Q]),O(Ct.Move)}}),o.actionLabels[X.Download]&&!Kt&&!gi&&Xe.push({key:"download",label:o.actionLabels[X.Download],icon:g.jsx(_.IconDownload,{...te,className:"text-secondary"}),onClick:()=>ye([Q])}),o.actionLabels[X.ManagePermissions]&&typeof Un=="function"&&Q.nodeType===we.FOLDER&&!Kt&&Xe.push({key:X.ManagePermissions,label:o.actionLabels[X.ManagePermissions],icon:g.jsx(_.IconExternalLink,{...te,className:"text-secondary"}),onClick:()=>Un?.(Q.path)}),o.actionLabels[X.Delete]&&Q.permissions?.includes(Bn.WRITE)&&!Kt&&Xe.push({key:"delete",label:o.actionLabels[X.Delete],icon:g.jsx(_.IconTrashX,{...te,className:"text-secondary"}),onClick:()=>z([Q],Q.parentPath??"")}),o.actionLabels[X.Rename]&&!Kt&&Xe.push({key:"rename",label:o.actionLabels[X.Rename],icon:g.jsx(_.IconPencilMinus,{...te,className:"text-secondary"}),onClick:()=>Ia(Q.path)}),o.actionLabels[X.Unshare]&&_n?.includes(Q.path)&&!Kt&&Xe.push({key:"unshare",label:o.actionLabels[X.Unshare],icon:g.jsx(ag,{width:te.size,height:te.size,className:"text-secondary"}),onClick:()=>zn?.([Q])}),o.actionLabels[X.RemoveAccess]&&C?.has(Q.path)&&!Kt&&Xe.push({key:X.RemoveAccess,label:o.actionLabels[X.RemoveAccess],icon:g.jsx(_.IconUserX,{size:te.size,className:"text-secondary"}),onClick:()=>jn?.([Q])})),Je.length?Xe.length===0?Je:Je.length===0?Xe:[...Je,{key:"divider",type:No.Divider},...Xe]:Xe},[o?.actionLabels,Ze,Un,Z,ie,O,be,ye,Ia,zn,jn,_n,C,z,La,Aa]),sr=p.useMemo(()=>{const Q=new Set;return T.forEach((Je,Xe)=>Q.add(Xe)),Q},[T]),Ga=p.useCallback((Q,Je)=>{k(Q),B?.(Je)},[B,k]),ir=nG({selectedFiles:T,actionLabels:d?.actionLabels,onDuplicate:Z,onCopy:Q=>{ie(Q),O(Ct.Copy)},onMove:Q=>{be(Q),O(Ct.Move)},onDownload:ye,onDelete:z,onUnshare:zn,onRemoveAccess:jn,getCurrentFolderPath:()=>R??"/",sharedWithMeIds:_n,sharedByMePaths:C,onClearSelection:P,forbiddenSymbolsRegExp:Ze}),Va=p.useCallback(Q=>{c?.onTabChange?.(Q),di()},[c,di]),Cd=p.useCallback(()=>c&&D.size===0?g.jsxs("div",{className:$m,role:"toolbar","aria-label":"File Manager Toolbar",children:[e,g.jsx(KB,{...c,onTabChange:Va,areHiddenFilesVisible:x,onToggleHiddenFiles:y,isNewButtonVisible:va,isNewButtonDisabled:Ca,newButtonDropdownItems:ma})]}):D.size>0&&d?g.jsx("div",{className:$m,role:"toolbar","aria-label":"File Manager Toolbar",children:g.jsx(jB,{...d,selectedCount:D.size,onClearSelection:P,actions:ir})}):null,[Va,d,D,P,ir,x,y,c,va,Ca,ma,e]);p.useImperativeHandle(ed,()=>({createFolder:ft}),[ft]);const wd=p.useCallback(()=>os?null:g.jsx("aside",{role:"region","aria-label":"File Manager Tree Navigation",className:"min-h-0 min-w-0 h-full flex-none",children:g.jsx(jv,{defaultWidth:qn,width:qn,onResizeStop:Kn,onResize:ud,minWidth:$H,maxWidth:qH,enabled:!S,children:g.jsx(Tv,{width:qn,title:Da,containerClassName:Pa,titleClassName:"dial-body-text text-primary",additionalButtons:Ta,isOpened:!S,onToggle:F,children:g.jsx(iG,{...ka,items:s,rootItemPath:i?.path,rootItemLabel:i?.label,selectedPath:R,sharedByMePaths:C,forbiddenSymbolsRegExp:Ze,forbiddenSymbolsTooltip:yt,onItemClick:G,areHiddenFilesVisible:x,getContextMenuItems:Ba,renamedPath:Yn===Eo.Tree?xe:void 0,onRenameSave:Ce,onRenameCancel:Ve,onRenameValidate:je,createdFolderPath:Ma===nn.Tree?Qe:null,onCreateFolderCancel:di,onCreateFolderSave:Vn,newFolderDefaultName:Lt})})})}),[os,qn,S,Da,Pa,Ta,F,ka,s,i?.path,i?.label,R,C,Ze,yt,G,x,Ba,Yn,Ma,xe,Ce,Ve,je,Qe,di,Vn,Lt]),za=lG({actionLabels:l?.actionLabels,onDuplicate:Q=>Z([Q]),onCopy:Q=>{ie([Q]),O(Ct.Copy)},onMove:Q=>{be([Q]),O(Ct.Move)},onDownload:Q=>ye([Q]),onRename:ld,onDelete:(Q,Je)=>z([Q],Je),onInfo:Q=>$i(Q),onUnshare:Q=>zn?.([Q]),onRemoveAccess:Q=>jn?.([Q]),sharedWithMeIds:_n,sharedByMePaths:C,onManagePermissions:Q=>Un?.(Q),onPreview:Q=>sd?.(Q),onOpenInNewTab:Q=>id?.(Q),previewExtensions:nd,isRenameFileAvailable:od,isDuplicateFolderAvailable:rd,forbiddenSymbolsRegExp:Ze,onGridCreateSiblingFolder:cd,onGridCreateChildFolder:dd}),nr=p.useCallback(Q=>{const Je=si(s,Q.path);return Je?za(Je):[]},[s,za]),bd=p.useCallback((Q,Je,Xe)=>Zn?!1:Xn(Q,Je,Xe),[Zn,Xn]),{actionsColumnDef:xd}=ZH({getContextMenuItems:nr,isRowDisabled:bd,allowedFileTypes:w,buttonClassName:os?"":jH}),{columnDefs:or}=aG({userColumnDefs:hd,filterable:pd,dateLocale:gd,dateOptions:fd,effectiveVisibleColumns:vd,isCompactView:os,hasActions:!!l?.actionLabels,actionsColumnDef:xd,rootItemLabel:i?.label,rootItemPath:i?.path}),Ki=p.useCallback(Q=>{Q.colDef.colId==="ag-Grid-SelectionColumn"||Q.colDef.colId===wt.Actions||xe&&Q.data?.path===xe||Q.data?.isTemporary||Jo&&Jo.includes(Q.colDef.colId)||Q.data&&V(Q.data)},[xe,V,Jo]),ja=p.useCallback(()=>g.jsx(ra,{title:Sa,description:Ra,descriptionClassName:"text-sm",containerClassName:"gap-3 size-full bg-layer-2 border rounded-[4px] border-primary",titleClassName:"mt-2 !text-lg",icon:ya||g.jsx(_.IconFileDescription,{size:100,stroke:.5,className:"text-secondary"})}),[Ra,ya,Sa]),Wa=p.useMemo(()=>Q=>Q.path,[]),_a=p.useMemo(()=>re("min-h-[248px] overflow-auto md:min-h-[266px]",U?"border border-dashed border-accent-primary":"",Ne&&!U?"border border-dashed border-primary":""),[U,Ne]),Ua=p.useMemo(()=>({...hi.additionalGridOptions,onCellClicked:Ki,headerHeight:Km,rowHeight:Km,rowClass:"group/grid-row",defaultColDef:{...hi.additionalGridOptions?.defaultColDef,floatingFilter:a?.searchable?!1:hi.additionalGridOptions?.defaultColDef?.floatingFilter},context:{cancelFolderCreation:di,saveFolderCreation:Vn,getDisplayName:We,onRenameCancel:Ve,onRenameSave:Ce,onRenameValidate:je,renameTriggerView:Yn,validateFolderName:_s,renamedItem:Ae,renamedPath:xe,createdFolderPath:Qe,newFolderTempId:wa,sharedByMePaths:C,selectedPaths:D,disabledRowIds:pi,forbiddenSymbolsRegExp:Ze,forbiddenSymbolsTooltip:yt,hideSearchPathItemName:tt,newFolderDefaultName:Lt,filesLoading:n}}),[hi.additionalGridOptions,Ki,a?.searchable,di,Vn,We,Ve,Ce,je,Yn,_s,Ae,xe,Qe,wa,C,D,pi,Ze,yt,tt,Lt,n]),Qn=p.useMemo(()=>E.length===0&&!qs&&!n?ja():g.jsx(tg,{columnDefs:or,rowData:E,getRowId:Wa,loading:n||Wn,getContextMenuItems:nr,withoutHeaderBorders:os,onGridApiChange:K,className:_a,...hi,selectionMode:Oa,wrapCustomCellRenderers:Na,additionalGridOptions:Ua,selectedRowIds:sr,onSelectionChange:Ga,wrapperBorder:!U&&!Ne,disabledRowIds:pi,allowDisabledContextMenu:Zn}),[E,qs,n,ja,or,Wa,Wn,nr,os,K,_a,hi,Oa,Na,Ua,sr,Ga,U,Ne,pi,Zn]);return g.jsx("section",{ref:md,className:"size-full",children:g.jsxs("div",{className:$(HH,{"gap-3 pt-4":d&&D.size>0,"gap-4 p-3 pt-4":os,"gap-2 pt-2":os&&d&&D.size>0},t),children:[Cd(),g.jsxs("div",{className:$(BH,ad),children:[wd(),g.jsxs("div",{className:$(GH,{"gap-3":os}),children:[r&&g.jsx(qB,{...a??{},makeHref:Q=>Q.join("/"),path:R,onItemClick:H,rootItemPath:i?.path,rootItemLabel:i?.label,value:I,onSearchChange:M,isCompactView:os,labelClassName:"dial-tiny-text"}),g.jsxs("section",{role:"region","aria-label":"File Manager Grid View",className:$(zH,"relative"),onDragEnter:vs,onDragLeave:qo,onDragOver:Gn,onDrop:fa,children:[Qn,g.jsx(BB,{disabledGridRowIds:pi,gridRows:E,getDisabledTooltip:qi,getRowDisabledTooltip:tr,allowedFileTypes:w,maxSelectableFileSize:b})]})]})]}),g.jsx(WB,{...u,open:Ee,itemsToDelete:oe,onClose:le,onConfirm:ve}),g.jsx(Kb,{...h,open:W,onClose:A,onConfirm:()=>{const Q=h?.destinationFolderPath??"/";Y===Ct.Copy?me(Q):Ie(Q),A()},mode:Y,items:s,rootItem:i,gridOptions:{columnDefs:or.filter(Q=>Q.colId!==wt.Actions),loading:n},onUploadFiles:Ko,onValidateUpload:Kc,maxFileSize:Yc,path:h?.destinationFolderPath??h?.sourceFolder??R,onPathChange:Q=>{h?.setDestinationFolderPath?.(Q)},sourceFolder:h?.sourceFolder??R,treeOptions:{header:o?.header},onFolderPopupPathChange:td,showHiddenFileSwitcher:Ea,showCreateFolderButton:dt,hideSearchPathItemName:tt}),g.jsx(Ym,{...f,open:ba,onClose:Ui,onReplace:Us,onDuplicate:$s,onDecideForEach:xa,conflictingFiles:Yo}),g.jsx(Ym,{...f,open:Zc,onClose:Jc,onReplace:Xc,onDuplicate:Qc,onDecideForEach:ct,conflictingFiles:ui}),g.jsx(XB,{open:Zo,onClose:Qo,fileMetadata:Dt?.fileMetadata??Xo,loading:Dt?.loading,header:Dt?.header,nameLabel:Dt?.nameLabel,pathLabel:Dt?.pathLabel,modifiedDateLabel:Dt?.modifiedDateLabel,sizeLabel:Dt?.sizeLabel,authorLabel:Dt?.authorLabel,dateLocale:l?.dateLocale,dateOptions:l?.dateOptions})]})})},uG=(e,t=go.MyFiles)=>{const s=Object.values(go).includes(t)?t:go.MyFiles,[i,n]=p.useState(s),o=a=>{n(a)},r=p.useMemo(()=>{if(e)return Object.values(go).map(a=>({id:a,label:e?.[a]||a.replace("_"," ")}))},[e]);return{activeTab:i,handleTabChange:o,tabs:r}},hG="application/octet-stream";function pG(e,t){if(!e||e.length===0)return[];const s=e.find(l=>l.parentPath===""&&l.nodeType==="FOLDER");if(!s)return[];const i=s.path||s.url||"",n=Eu(i,!0),o=e.filter(l=>l!==s).map(l=>{const c=l.path||l.url||"",d=gG(l.nodeType),u=d===we.FOLDER,h=Eu(c,u);let f;return l.parentPath===null||l.parentPath===void 0?f=n:l.parentPath===""?f="":f=Eu(l.parentPath,!0),{...l,originalPath:c,path:h,parentPath:f,nodeType:d}}),r=new Map;o.forEach(l=>{const c={...l,id:l.originalPath,name:l.name,path:l.path,parentPath:l.parentPath,nodeType:l.nodeType,resourceType:fG(l.resourceType),folderId:t,updatedAt:l.updatedAt?new Date(l.updatedAt).toISOString():new Date().toISOString(),items:l.nodeType===we.FOLDER?[]:void 0};l.nodeType===we.ITEM&&(c.extension=mG(l.name),c.contentType=l.contentType||hG,c.contentLength=l.contentLength||0),r.set(l.path,c)});const a=[];return r.forEach(l=>{if(l.parentPath===n)a.push(l);else{const c=l.path.lastIndexOf(l.name||""),d=l.path.slice(0,c),u=r.get(d);u&&u.nodeType===we.FOLDER?(u.items=u.items||[],u.items.push(l)):a.push(l)}}),a}function Eu(e,t){try{let s=decodeURIComponent(e);return t?s.endsWith("/")||(s+="/"):s.endsWith("/")&&(s=s.slice(0,-1)),s}catch{return t&&!e.endsWith("/")?e+"/":!t&&e.endsWith("/")?e.slice(0,-1):e}}function gG(e){return e.toUpperCase()==="FOLDER"?we.FOLDER:we.ITEM}function fG(e){if(!e)return;const t=e.toUpperCase();return Object.values(lg).find(i=>i.toUpperCase()===t)}function mG(e){const t=e.split(".");return t.length>1?t[t.length-1]:""}function vG(e,t="Prompts",s="prompts/public/",i="root"){const n=pG(e,i);return[{id:i,name:t,path:s,parentPath:"",nodeType:we.FOLDER,folderId:i,items:n}]}var Br=(e=>(e.Sections="sections",e.Flat="flat",e.FlatSections="flat-sections",e))(Br||{}),sa=(e=>(e.Select="select",e.Radio="radio",e))(sa||{}),$c=(e=>(e.Row="row",e.Column="column",e))($c||{}),_e=(e=>(e.String="string",e.Number="number",e.Integer="integer",e.Boolean="boolean",e.Object="object",e.Array="array",e.Null="null",e))(_e||{});const CG={noItemSchema:"No item schema defined.",noItemsYet:"No items yet. Add one below.",addItem:"Add Item",selectTypeToAdd:"Select type to add…",noConfigurableProperties:"No configurable properties.",noFieldsYet:"No fields yet. Add one below.",keyColumnHeader:"Key",valueColumnHeader:"Value",addField:"Add Field",keyInputPlaceholder:"Enter key",stringInputPlaceholder:"Enter a value",integerInputPlaceholder:"Enter a whole number",numberInputPlaceholder:"Enter a number",enumSelectPlaceholder:"Select an option",selectTypePlaceholder:"Select type",removeItemAriaLabel:"Remove item",removeFieldAriaLabel:"Remove field"},i0=p.createContext(null);function _i(){const e=p.useContext(i0);if(!e)throw new Error("useSchemaContext must be used inside DialSchemaRenderer");return e}function Be(e,t,s=0){if(!e.$ref||s>10)return e;const i=e.$ref.replace(/^#\//,"").split("/");let n=t;for(const c of i)n=n?.[c];if(!n||typeof n!="object")return e;const{$ref:o,...r}=e,a=n;return{...a.$ref?Be(a,t,s+1):a,...r}}function qc(e){return e==null||e===""}function $o(e){return e.type===_e.Object||e.properties!=null&&e.oneOf==null&&e.anyOf==null&&e.type==null}function pg(e){return e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/\b\w/g,t=>t.toUpperCase())}function n0(e,t){return e.type===_e.Null?"null":e.$ref?Be(e,t).title??e.$ref.split("/").pop()??"Option":e.title?e.title:e.type?Array.isArray(e.type)?e.type.join(" | "):e.type:e.discriminator?Object.keys(e.discriminator.mapping).join(" | "):e.const!=null?String(e.const):e.oneOf?"One of options":"Option"}function Mn(e,t,s=0){if(s>15)return;const i=Be(e,t);if("default"in i)return i.default;if($o(i)){if(i.properties){const n={};let o=!1;for(const[r,a]of Object.entries(i.properties)){const l=Mn(a,t,s+1);l!==void 0&&(n[r]=l,o=!0)}return o?n:void 0}if(i.additionalProperties!=null&&i.additionalProperties!==!1)return{}}}function ln(e,t,s,i="",n=0){if(n>15)return[];const o=[],r=Be(t,s);if(r.anyOf){const c=r.anyOf.filter(d=>d.type!==_e.Null);return e!=null&&c.length===1?ln(e,c[0],s,i,n+1):o}if(r.oneOf&&r.discriminator){const c=r.discriminator.propertyName,d=e?.[c];if(d&&r.discriminator.mapping[d]){const u={$ref:r.discriminator.mapping[d]},h=Be(u,s);return ln(e,h,s,i,n+1)}return o}if(r.type===_e.Array||!r.type&&Array.isArray(e)){if(Array.isArray(e)&&r.items)for(let c=0;c<e.length;c++){const d=ln(e[c],r.items,s,`${i}[${c}]`,n+1);o.push(...d)}return o}if(!$o(r))return o;const a=r.required??[],l=e;for(const c of a){const d=r.properties?.[c];if(d&&Be(d,s).isHidden)continue;const u=i?`${i}.${c}`:c,h=l?.[c];if(qc(h)){const f=d?.title??pg(c);o.push({path:u,message:`${f} is required`})}}if(l&&r.properties)for(const[c,d]of Object.entries(r.properties)){if(Be(d,s).isHidden)continue;const u=i?`${i}.${c}`:c,h=l[c];if(h!=null){const f=ln(h,d,s,u,n+1);o.push(...f)}}return o}function o0(e,t,s){const i=Be(t,s);if(Array.isArray(e))return`${e.length} item${e.length!==1?"s":""}`;if($o(i)&&i.properties){const n=Object.entries(i.properties).filter(([,l])=>!Be(l,s).isHidden),o=n.length,r=e;return`${n.filter(([l])=>{const c=r?.[l];return c!=null&&c!==""}).length}/${o} fields`}return""}function wG(e,t,s){if(e==null){const i=t.findIndex(n=>n.type===_e.Null);return i>=0?i:0}if(Array.isArray(e)){const i=t.findIndex(n=>Be(n,s).type===_e.Array);return i>=0?i:0}if(typeof e=="boolean"){const i=t.findIndex(n=>Be(n,s).type===_e.Boolean);return i>=0?i:0}if(typeof e=="number"){const i=t.findIndex(n=>{const o=Be(n,s);return o.type===_e.Number||o.type===_e.Integer});return i>=0?i:0}if(typeof e=="string"){const i=t.findIndex(n=>Be(n,s).type===_e.String);return i>=0?i:0}if(typeof e=="object"){const i=e;for(let n=0;n<t.length;n++){const o=Be(t[n],s);if(o.discriminator&&o.discriminator.propertyName in i)return n}for(let n=0;n<t.length;n++){const o=Be(t[n],s);if($o(o)||o.oneOf)return n}return 0}return 0}function bG(e,t,s){if(t&&typeof e=="object"&&e!==null){const i=e[t];if(i)return`Item ${s+1}: ${i}`}if(typeof e=="object"&&e!==null){const i=e,n=i.name??i.title??i.id;if(n)return`Item ${s+1}: ${n}`}return`Item ${s+1}`}function xG(e){switch(Array.isArray(e.type)?e.type[0]:e.type){case _e.String:return"";case _e.Boolean:return!1;case _e.Array:return[];case _e.Integer:case _e.Number:return;default:return{}}}const gg=({title:e,description:t,summary:s,errorCount:i=0,level:n=0,children:o,onRemove:r,defaultExpanded:a=!0,removeItemAriaLabel:l="Remove item"})=>{const[c,d]=p.useState(a),u=n===0,h="rounded border border-secondary",f=$("flex items-center gap-2 cursor-pointer select-none transition-colors",u?"px-4 py-3 bg-layer-3 hover:bg-layer-4":"px-3 py-2 bg-layer-4 hover:bg-layer-3",c?"rounded-t":"rounded"),m=$("border-t border-secondary",u?"p-4":"p-3");return g.jsxs("div",{className:h,children:[g.jsxs("div",{className:f,onClick:()=>d(v=>!v),role:"button","aria-expanded":c,children:[g.jsx("span",{className:"shrink-0 text-secondary",children:c?g.jsx(_.IconChevronDown,{size:16,stroke:2}):g.jsx(_.IconChevronRight,{size:16,stroke:2})}),g.jsx("span",{className:$("flex-1 truncate",u?"dial-small-semi-text text-primary":"dial-small-text text-primary"),children:e}),t&&g.jsx(Rv,{caption:t}),s&&g.jsx("span",{className:"dial-tiny-text text-secondary whitespace-nowrap ml-2",children:s}),i>0?g.jsxs("span",{className:"flex items-center gap-1 dial-tiny-text text-error whitespace-nowrap",children:[g.jsx(Oe,{icon:g.jsx(_.IconAlertTriangle,{size:13,stroke:2})}),i," error",i>1?"s":""]}):g.jsx(Oe,{icon:g.jsx(_.IconCheck,{size:13,stroke:2}),className:"text-success shrink-0"}),r&&g.jsx(jc,{size:et.Small,onClick:v=>{v.stopPropagation(),r()},"aria-label":l,className:"ml-1 shrink-0 p-0.5"})]}),c&&g.jsx("div",{className:m,children:o})]})},r0=({schema:e,value:t,onChange:s,path:i,level:n=0,required:o,label:r})=>{const{rootSchema:a,defaultExpanded:l=!0,touchedPaths:c=new Set,skipUntouched:d=!1}=_i(),u=Be(e,a),h=$o(u),f=u.type===_e.Array;if(h||f){const C=o0(t,u,a),w=ln(t,u,a,i.join(".")),b=i.join("."),x=b+".",y=!d||c.has(b)||[...c].some(S=>S.startsWith(x));return g.jsx(gg,{title:r??u.title??i[i.length-1]??"Section",description:u.description,level:n,summary:C,errorCount:y?w.length:0,defaultExpanded:l,children:g.jsx(Ni,{schema:u,value:t,onChange:s,path:i,level:n+1,required:o})})}const v=(!d||c.has(i.join(".")))&&o&&qc(t)?`${r??"Field"} is required`:void 0;return g.jsx(mc,{label:r,required:o,description:u.description,error:v,children:g.jsx(Ni,{schema:u,value:t,onChange:s,path:i,level:n,required:o,suppressInlineError:!0})})},kl=({schema:e,value:t,onChange:s,path:i,level:n})=>{const{rootSchema:o,texts:r}=_i(),a=Be(e,o),l=Object.entries(a.properties??{}).filter(([,u])=>!Be(u,o).isHidden),c=a.required??[],d=t??{};return l.length===0?g.jsx("p",{className:"dial-tiny-text text-secondary italic",children:r.noConfigurableProperties}):g.jsx("div",{className:"flex flex-col gap-4",children:l.map(([u,h])=>{const m=Be(h,o).title??h.title??pg(u),v=c.includes(u);return g.jsx(r0,{schema:h,value:d[u],onChange:C=>s({...d,[u]:C}),path:[...i,u],level:n,required:v,label:m},u)})})},yG=({schema:e,value:t,onChange:s,path:i,level:n})=>{const{rootSchema:o,texts:r,readonly:a=!1,defaultExpanded:l=!0}=_i(),c=Array.isArray(t)?t:[],d=e.items,[u,h]=p.useState(void 0);if(!d)return g.jsx("p",{className:"dial-tiny-text text-secondary italic",children:r.noItemSchema});const f=p.useMemo(()=>Be(d,o),[d,o]),m=p.useMemo(()=>f.discriminator,[f]),v=p.useMemo(()=>m?.propertyName,[m]),C=p.useMemo(()=>m?Object.keys(m.mapping).map(y=>({value:y,label:y})):[],[m]),w=()=>{const y=u??C[0]?.value;let S;if(m&&y){const F=Be({$ref:m.mapping[y]},o);S={...Mn(F,o)??{},[m.propertyName]:y}}else S=Mn(f,o)??xG(f);s([...c,S])},b=y=>{s(c.filter((S,F)=>F!==y))},x=(y,S)=>{s(c.map((F,R)=>R===y?S:F))};return g.jsxs("div",{className:"flex flex-col gap-3",children:[c.length===0&&g.jsx("p",{className:"dial-tiny-text text-secondary italic",children:r.noItemsYet}),c.map((y,S)=>{const F=bG(y,v,S),R=o0(y,f,o),E=ln(y,f,o,`${i.join(".")}[${S}]`);return g.jsx(gg,{title:F,level:n,summary:R,errorCount:E.length,onRemove:a?void 0:()=>b(S),defaultExpanded:l,removeItemAriaLabel:r.removeItemAriaLabel,children:g.jsx(Ni,{schema:d,value:y,onChange:D=>x(S,D),path:[...i,String(S)],level:n+1})},S)}),!a&&g.jsxs("div",{className:"flex items-center gap-2 pt-1",children:[C.length>0&&g.jsx("div",{className:"flex-1 max-w-[280px]",children:g.jsx(In,{options:C,value:u??C[0]?.value,placeholder:r.selectTypeToAdd,onChange:y=>{const S=typeof y=="string"?y:y[0];h(S)}})}),g.jsx(ig,{label:r.addItem,iconBefore:g.jsx(_.IconPlus,{size:16,stroke:2}),onClick:w})]})]})},SG=({schema:e,value:t,onChange:s,path:i,level:n})=>{const{rootSchema:o,texts:r,readonly:a=!1}=_i(),l=p.useId(),c=e.discriminator;if(c){const C=c.propertyName,w=c.mapping,b=Object.keys(w).map(F=>({value:F,label:F})),x=typeof t=="object"&&t!==null?t[C]:void 0,y=x?Be({$ref:w[x]},o):void 0,S=F=>{const R=Be({$ref:w[F]},o),E=Mn(R,o)??{};s({...E,[C]:F})};if(e.discriminatorDisplay===sa.Radio){const F=e.discriminatorOrientation===$c.Row,R=x?(()=>{const E=Be({$ref:w[x]},o),{[C]:D,...T}=E.properties??{};return{...E,properties:T}})():void 0;return F?g.jsxs("div",{className:"flex flex-col gap-3",children:[g.jsx("div",{role:"radiogroup",className:"flex flex-row flex-wrap gap-4",children:Object.keys(w).map(E=>{const D=Be({$ref:w[E]},o);return g.jsx(cn,{name:l,value:E,inputId:`${l}-${E}`,label:D.title??E,checked:x===E,disabled:a,onChange:()=>S(E)},E)})}),R&&g.jsx(kl,{schema:R,value:t,onChange:s,path:i,level:n})]}):g.jsx("div",{role:"radiogroup",className:"flex flex-col gap-2",children:Object.keys(w).map(E=>{const D=Be({$ref:w[E]},o),T=x===E,{[C]:P,...k}=D.properties??{},I={...D,properties:k};return g.jsxs("div",{className:"flex flex-col",children:[g.jsx(cn,{name:l,value:E,inputId:`${l}-${E}`,label:D.title??E,checked:T,disabled:a,onChange:()=>S(E)}),T&&g.jsx("div",{className:"ml-6 mt-2",children:g.jsx(kl,{schema:I,value:t,onChange:s,path:i,level:n})})]},E)})})}return g.jsxs("div",{className:"flex flex-col gap-3",children:[g.jsx("div",{className:"flex-1 max-w-[280px]",children:g.jsx(In,{options:b,value:x,placeholder:r.selectTypePlaceholder,disabled:a,onChange:F=>{const R=typeof F=="string"?F:F[0];R&&S(R)}})}),y&&g.jsx("div",{className:"pl-3",children:g.jsx(kl,{schema:y,value:t,onChange:s,path:i,level:n})})]})}const d=e.oneOf??[],h=(()=>{if(t==null)return 0;if(typeof t=="object"&&!Array.isArray(t)){for(let C=0;C<d.length;C++)if(Be(d[C],o).required?.every(b=>b in t))return C}return 0})(),f=C=>{const w=Be(d[C],o),b=Mn(w,o);s(b??null)},m=d[h];if(e.discriminatorDisplay===sa.Radio)return g.jsx("div",{role:"radiogroup",className:"flex flex-col gap-2",children:d.map((C,w)=>{const b=Be(C,o),x=n0(C,o)??`Option ${w+1}`,y=h===w;return g.jsxs("div",{className:"flex flex-col",children:[g.jsx(cn,{name:l,value:String(w),inputId:`${l}-${w}`,label:x,checked:y,disabled:a,onChange:()=>f(w)}),y&&b&&g.jsx("div",{className:"ml-6 mt-2",children:g.jsx(Ni,{schema:b,value:t,onChange:s,path:i,level:n})})]},w)})});const v=d.map((C,w)=>{const b=Be(C,o);return{value:String(w),label:b.title??`Option ${w+1}`}});return g.jsxs("div",{className:"flex flex-col gap-3",children:[g.jsx("div",{className:"flex-1 max-w-[280px]",children:g.jsx(In,{options:v,value:String(h),disabled:a,onChange:C=>{const w=typeof C=="string"?C:C[0];f(Number(w))}})}),m&&g.jsx("div",{className:"pl-3 border-l-2 border-secondary",children:g.jsx(Ni,{schema:m,value:t,onChange:s,path:i,level:n})})]})},RG=({schema:e,value:t,onChange:s,path:i,level:n})=>{const{rootSchema:o,readonly:r=!1}=_i(),a=e.anyOf??[],l=a.map((m,v)=>({value:String(v),label:n0(m,o)})),c=wG(t,a,o),d=a[c],h=Be(d,o).type===_e.Null,f=m=>{const v=Be(a[m],o);if(v.type===_e.Null){s(null);return}const C=Mn(v,o);if(C!==void 0){s(C);return}switch(v.type){case _e.Array:s([]);break;case _e.String:s("");break;case _e.Boolean:s(!1);break;case _e.Integer:case _e.Number:s(0);break;default:s({});break}};return g.jsxs("div",{className:"flex flex-col gap-3",children:[g.jsx("div",{className:"flex-1 max-w-[280px]",children:g.jsx(In,{options:l,value:String(c),disabled:r,onChange:m=>{const v=typeof m=="string"?m:m[0];f(Number(v))}})}),!h&&d&&g.jsx("div",{className:"pl-3 border-l-2 border-secondary",children:g.jsx(Ni,{schema:d,value:t,onChange:s,path:i,level:n})})]})},a0=({schema:e,value:t,onChange:s,invalid:i})=>{const n=p.useId(),{texts:o,readonly:r=!1,inputClassName:a}=_i(),l=e.const!==void 0,c=Array.isArray(e.enum)&&e.enum.length>0;if(l)return g.jsx(ai,{value:String(e.const??""),disabled:!0,onChange:void 0,className:"opacity-60"});if(c&&e.enumDisplay===sa.Radio){const d=e.enumOrientation===$c.Row;return g.jsx("div",{role:"radiogroup",className:d?"flex flex-row flex-wrap gap-x-4 gap-y-2":"flex flex-col gap-2",children:e.enum.map(u=>{const h=String(u);return g.jsx(cn,{name:n,value:h,inputId:`${n}-${h}`,label:h,checked:t!=null?String(t)===h:!1,disabled:r,onChange:f=>s(f)},h)})})}if(c){const d=e.enum.map(u=>({value:String(u),label:String(u)}));return g.jsx(In,{options:d,value:t!=null?String(t):void 0,invalid:i,disabled:r,onChange:u=>s(typeof u=="string"?u:u[0]),placeholder:o.enumSelectPlaceholder})}switch(e.type){case _e.Boolean:return g.jsx(Wc,{switchId:n,isOn:!!t,disabled:r,onChange:d=>s(d)});case _e.Integer:return g.jsx(yh,{integer:!0,value:t!=null?String(t):"",invalid:i,disabled:r,onChange:d=>s(d!==void 0?Number(d):void 0),placeholder:o.integerInputPlaceholder,containerClassName:a});case _e.Number:return g.jsx(yh,{value:t!=null?String(t):"",invalid:i,disabled:r,onChange:d=>s(d!==void 0?Number(d):void 0),placeholder:o.numberInputPlaceholder,containerClassName:a});default:return e.isProtected?g.jsx(Tb,{value:t!=null?String(t):"",invalid:i,disabled:r,onChange:d=>s(d??void 0),placeholder:o.stringInputPlaceholder,containerClassName:a}):g.jsx(ai,{value:t!=null?String(t):"",invalid:i,disabled:r,onChange:d=>s(d??void 0),placeholder:o.stringInputPlaceholder,containerClassName:a})}},nv=(e,t)=>({id:Math.random().toString(36).slice(2),key:e,value:t}),FG=({pairKey:e,pairValue:t,valueSchema:s,onKeyChange:i,onValueChange:n,onRemove:o,keyInputPlaceholder:r,removeFieldAriaLabel:a,readonly:l=!1,inputClassName:c})=>{const[d,u]=p.useState(e);return g.jsxs("div",{className:"flex gap-2 items-center",children:[g.jsx("div",{className:"w-2/5 min-w-0",children:g.jsx(ai,{value:d,disabled:l,onChange:h=>u(h??""),onBlur:()=>{d!==e&&i(d)},placeholder:r,containerClassName:c})}),g.jsx("div",{className:"flex-1 min-w-0",children:g.jsx(a0,{schema:s,value:t,onChange:n})}),!l&&g.jsx(jc,{size:et.Small,onClick:o,"aria-label":a,className:"shrink-0 p-1"})]})},EG=({schema:e,value:t,onChange:s})=>{const{texts:i,readonly:n=!1,inputClassName:o}=_i(),r=e.additionalProperties===!0||e.additionalProperties==null?{type:"string"}:typeof e.additionalProperties=="object"?e.additionalProperties:{type:"string"},[a,l]=p.useState(()=>Object.entries(t??{}).map(([m,v])=>nv(m,v))),c=m=>Object.fromEntries(m.filter(v=>v.key!=="").map(v=>[v.key,v.value])),d=(m,v)=>{const C=a.map((w,b)=>b===m?{...w,key:v}:w);l(C),s(c(C))},u=(m,v)=>{const C=a.map((w,b)=>b===m?{...w,value:v}:w);l(C),s(c(C))},h=()=>{l(m=>[...m,nv("","")])},f=m=>{const v=a.filter((C,w)=>w!==m);l(v),s(c(v))};return g.jsxs("div",{className:"flex flex-col gap-2",children:[a.length===0&&g.jsx("p",{className:"dial-tiny-text text-secondary italic",children:i.noFieldsYet}),a.length>0&&g.jsxs("div",{className:"flex gap-2 mb-1 pr-7",children:[g.jsx("span",{className:"w-2/5 dial-tiny-text text-secondary font-medium",children:i.keyColumnHeader}),g.jsx("span",{className:"flex-1 dial-tiny-text text-secondary font-medium",children:i.valueColumnHeader})]}),a.map((m,v)=>g.jsx(FG,{pairKey:m.key,pairValue:m.value,valueSchema:r,onKeyChange:C=>d(v,C),onValueChange:C=>u(v,C),onRemove:()=>f(v),keyInputPlaceholder:i.keyInputPlaceholder,removeFieldAriaLabel:i.removeFieldAriaLabel,readonly:n,inputClassName:o},m.id)),!n&&g.jsx("div",{className:"pt-1",children:g.jsx(ig,{label:i.addField,iconBefore:g.jsx(_.IconPlus,{size:16,stroke:2}),onClick:h})})]})},Ni=({schema:e,value:t,onChange:s,path:i,level:n,required:o,suppressInlineError:r=!1})=>{const{rootSchema:a,renderField:l,markTouched:c=()=>{},touchedPaths:d=new Set,skipUntouched:u=!1}=_i(),h=Be(e,a),f=C=>{c(i.join(".")),s(C)},m=!u||d.has(i.join("."));let v;if(h.oneOf)v=g.jsx(SG,{schema:h,value:t,onChange:f,path:i,level:n});else if(h.anyOf&&h.type!==_e.Object)v=g.jsx(RG,{schema:h,value:t,onChange:f,path:i,level:n});else if($o(h)){const C=h.additionalProperties!=null&&h.additionalProperties!==!1,w=!h.properties||Object.keys(h.properties).length===0;C&&w?v=g.jsx(EG,{schema:h,value:t,onChange:f}):v=g.jsx(kl,{schema:h,value:t,onChange:f,path:i,level:n})}else if(h.type===_e.Array)v=g.jsx(yG,{schema:h,value:t,onChange:f,path:i,level:n});else{const C=m&&o&&qc(t),w=!r&&C?`${h.title??"Field"} is required`:void 0;v=g.jsxs(g.Fragment,{children:[g.jsx(a0,{schema:h,value:t,onChange:f,invalid:C}),g.jsx(Nt,{text:w})]})}return l?l(i,h,v):v},DG=({schema:e,defaultValue:t,texts:s,className:i,readonly:n=!1,defaultExpanded:o=!0,inputClassName:r,variant:a=Br.Sections,onChange:l,onPropertyChange:c,onDefaultValues:d,renderField:u,skipUntouched:h=!1})=>{const f=p.useMemo(()=>({...CG,...s}),[s]),m=p.useMemo(()=>t||(Mn(e,e)??{}),[]),[v,C]=p.useState(m),[w,b]=p.useState(new Set),x=p.useCallback(R=>{b(E=>E.has(R)?E:new Set([...E,R]))},[]);p.useEffect(()=>{d?.(m)},[]);const y=(R,E)=>{const D={...v,[R]:E};C(D),l?.(D),c?.(R,E)},S=Object.entries(e.properties??{}).filter(([,R])=>!Be(R,e).isHidden),F=e.required??[];return g.jsx(i0.Provider,{value:{rootSchema:e,texts:f,readonly:n,defaultExpanded:o,inputClassName:r,renderField:u,touchedPaths:w,markTouched:x,skipUntouched:h},children:g.jsx("div",{className:$("flex flex-col gap-4",i),children:S.map(([R,E])=>{const D=Be(E,e),T=D.title??E.title??pg(R),P=F.includes(R),k=v[R];if(a===Br.Flat)return g.jsx(r0,{schema:E,value:k,onChange:G=>y(R,G),path:[R],level:0,required:P,label:T},R);if(a===Br.FlatSections)return g.jsxs("div",{className:"flex flex-col gap-3",children:[g.jsx("h2",{className:"dial-small-semi-text text-primary",children:T}),g.jsx(Ni,{schema:E,value:k,onChange:G=>y(R,G),path:[R],level:0,required:P})]},R);const I=ln(k,D,e,R),H=R+".",M=!h||w.has(R)||[...w].some(G=>G.startsWith(H));return g.jsx(gg,{title:T,description:D.description,level:0,defaultExpanded:o,errorCount:M?P&&qc(k)?Math.max(I.length,1):I.length:0,children:g.jsx(Ni,{schema:E,value:k,onChange:G=>y(R,G),path:[R],level:1,required:P})},R)})})})},PG=()=>Promise.resolve().then(()=>require("./JsonEditor-alDEh5Qd.cjs")),TG=()=>Promise.resolve().then(()=>require("./MarkdownEditor-DJWJY0MK.cjs"));exports.AnalyticsCardVariant=Gr;exports.BASE_ICON_PROPS=te;exports.BASE_ICON_SIZE=Zt;exports.ButtonAppearance=ke;exports.ButtonVariant=Ye;exports.ConfirmationPopupVariant=Ho;exports.DEFAULT_ANALYTICS_BAR_COLOR_MAP=Mh;exports.DIAL_ICON_SIZE=nt;exports.DialAccordion=Sv;exports.DialAnalyticsBar=yv;exports.DialAnalyticsBarGroup=Ax;exports.DialAnalyticsCard=kx;exports.DialAnalyticsErrorTag=Ih;exports.DialAnalyticsHistogram=Bx;exports.DialAutocompleteInputValue=Fb;exports.DialBreadcrumb=bb;exports.DialBreadcrumbItem=Rr;exports.DialButton=Fs;exports.DialButtonDropdown=Fh;exports.DialCaptionText=ia;exports.DialCheckbox=Tu;exports.DialCloseButton=eg;exports.DialCollapsibleSidebar=Tv;exports.DialConditionalResizableContainer=jv;exports.DialConfirmationPopup=Sb;exports.DialDangerButton=yb;exports.DialDangerIconButton=Fv;exports.DialDestinationFolderPopup=Kb;exports.DialDraggableItem=v2;exports.DialDropdown=Mt;exports.DialDropdownIcon=NH;exports.DialEllipsisTooltip=bt;exports.DialErrorText=Nt;exports.DialFabButton=GN;exports.DialFileIcon=Vh;exports.DialFileManager=s0;exports.DialFileManagerActions=X;exports.DialFileManagerTabs=go;exports.DialFileName=yc;exports.DialFileNodeType=we;exports.DialFilePermission=Bn;exports.DialFileResourceType=lg;exports.DialFolderName=Sc;exports.DialFormItem=mc;exports.DialFormPopup=JN;exports.DialGhostButton=ig;exports.DialGhostIconButton=fc;exports.DialGrid=tg;exports.DialIcon=Oe;exports.DialIconButton=ii;exports.DialInput=ai;exports.DialInputPopup=Eb;exports.DialItemType=ts;exports.DialLabel=Bi;exports.DialLabelledText=fy;exports.DialLinkButton=HN;exports.DialLoadFileArea=Hb;exports.DialLoadFileAreaField=AH;exports.DialLoader=oa;exports.DialNeutralButton=js;exports.DialNeutralIconButton=jx;exports.DialNoDataContent=ra;exports.DialNotification=Dv;exports.DialNumberInput=yh;exports.DialPagination=ny;exports.DialPasswordInput=Tb;exports.DialPopup=Hn;exports.DialPrimaryButton=Bs;exports.DialPrimaryIconButton=zx;exports.DialProgressBar=Jx;exports.DialProgressBarSize=Pv;exports.DialRadioButton=cn;exports.DialRadioGroup=Al;exports.DialRadioGroupPopupField=YN;exports.DialRemoveButton=jc;exports.DialResizableContainer=zv;exports.DialRoundedButton=BN;exports.DialSchemaRenderer=DG;exports.DialSearch=ng;exports.DialSecondaryIconButton=Wx;exports.DialSelect=In;exports.DialSelectField=fH;exports.DialSharedEntityIndicator=zr;exports.DialSkeleton=oo;exports.DialSkeletonAvatarShape=Ll;exports.DialSkeletonAvatarSize=Er;exports.DialSkeletonVariant=hs;exports.DialSlider=gy;exports.DialSpinner=Ev;exports.DialSteps=ly;exports.DialSuccessIconButton=Ux;exports.DialSwitch=Wc;exports.DialTabs=mb;exports.DialTag=on;exports.DialTagInput=Rb;exports.DialTertiaryIconButton=_x;exports.DialTextarea=VN;exports.DialTooltip=kt;exports.DropdownItemType=No;exports.DropdownTrigger=Qt;exports.DropdownType=cb;exports.ElementSize=et;exports.FileManagerColumnKey=wt;exports.FileManagerProvider=qb;exports.FlexibleActionsDirection=an;exports.FormItemOrientation=Vr;exports.GridSelectionMode=Nr;exports.JsonSchemaType=_e;exports.LazyDialJsonEditor=PG;exports.LazyDialMarkdownEditor=TG;exports.NAME_COLUMN=Qb;exports.NOT_ALLOWED_SPACES=ug;exports.NOT_ALLOWED_SPACES_REGEXP=HB;exports.NOT_ALLOWED_SYMBOLS=Ub;exports.NOT_ALLOWED_SYMBOLS_REGEXP=$b;exports.NotificationVariant=us;exports.PopupSize=es;exports.RadioGroupOrientation=Cn;exports.ResizableContainerSide=jr;exports.SIZE_COLUMN=e0;exports.SchemaDisplayMode=sa;exports.SchemaOrientation=$c;exports.SchemaRendererVariant=Br;exports.SelectSize=uc;exports.SelectVariant=hc;exports.StepStatus=Jt;exports.TabOrientation=cc;exports.TabView=vn;exports.UPDATED_AT_COLUMN=Jb;exports.jsxRuntimeExports=g;exports.mergeClasses=$;exports.useDialFileManagerTabs=uG;exports.useEditableItem=Zb;exports.useFileManagerContext=t0;exports.wrapInRootFolder=vG;
|
|
71
|
+
|\r| )|[\0-]`,jB=`[${Ub.replace(/\\/g,"\\\\")}]`,$b=new RegExp(`${jB}|${ug}`),WB=new RegExp(ug),qb=({managerLabel:e,children:t,className:s,items:i=[],rootItem:n,path:o,defaultPath:r,filesLoading:a,selectedPaths:l,defaultSelectedPaths:c,onSelectedPathsChange:d,showHiddenFiles:u,onShowHiddenFilesChange:h,treeOptions:f,showNavigationPanel:m=!0,navigationPanelOptions:v,deleteConfirmationOptions:C,gridOptions:w,toolbarOptions:b,bulkActionsToolbarOptions:x,destinationFolderPopupOptions:y,conflictResolutionPopupOptions:S,onPathChange:F,onTableFileClick:R,handleSelectionClick:E,onGridApiChange:D,onCopyFiles:T,onMoveToFiles:P,onDeleteFiles:k,onDownloadFiles:I,onRenameValidate:H,renameValidationMessages:M,forbiddenSymbolsRegExp:G=$b,forbiddenSymbolsTooltip:V,onUploadFiles:B,onValidateUpload:K,uploadEnabled:O,uploadValidationMessages:A,maxFileSize:W,onUploadArchive:Y,onCreateFolder:ie,onCreateFolderValidate:be,folderCreationValidationMessages:Z,fileMetadataPopupOptions:me,onGetInfo:Ie,onUnshareFiles:ne,onRemoveFilesAccess:ce,actionsRef:L,sharedByMePaths:ee,onSearchFiles:ye,searchResults:z,searchInProgress:le,clearSearchResults:ve,allowedFileTypes:Ee,maxSelectableFileSize:oe,getDisabledTooltip:xe,fileTooLargeTooltip:Ae,unsupportedFileTypeTooltip:Pe,emptyStateIcon:Ce,emptyStateTitle:Ve,emptyStateDescription:je,sharedWithMeIds:Qe,onFolderPopupPathChange:Ze,onManagePermissions:yt,onPreview:We,onOpenInNewTab:U,previewExtensions:Ne,isRenameFileAvailable:vs,isDuplicateFolderAvailable:qo,customUploadFileAction:Gn,customCreateNewItemAction:fa,customDuplicateAction:Ko,customDeleteItemsAction:Kc,customDownloadItemsAction:Yc,customBreakpointRef:ma,gridClassName:va,nonClickableTableColumns:Ca,hideSearchPathItemName:wa,showHiddenFileSwitcherInDestinationPopup:di,showCreateFolderButtonInDestinationPopup:Vn,autoSelectUploadedItems:_s=!1,maxNewFolderDepth:ft,onNewFolderDepthExceeded:Yo,initialUploadFilesOpen:ba})=>{const{selectedPaths:Us,clearSelection:$s,setSelectedPaths:Ui}=zB({selectedPaths:l,defaultSelectedPaths:c,onSelectedPathsChange:d}),xa=p.useRef(!1),ui=p.useRef(null),Zc=p.useCallback((he,ze,qe)=>{if(_s){const{parent:Ks,name:yd}=vB(ze);ui.current={fileNames:new Set([yd]),destinationFolder:Ks}}ie?.(he,ze,qe)},[ie,_s]),Xc=p.useCallback((he,ze)=>{_s&&(ui.current={fileNames:new Set(he.map(qe=>qe.name)),destinationFolder:ze}),B?.(he,ze)},[B,_s]),Qc=p.useCallback((he,ze,qe)=>{_s&&(ui.current={fileNames:new Set([ze]),destinationFolder:qe}),Y?.(he,ze,qe)},[Y,_s]),Jc=p.useMemo(()=>{const he=new Map;return Us.forEach(ze=>{const qe=si(i,ze);qe&&he.set(ze,qe)}),he},[Us,i]);p.useEffect(()=>{if(Us.size===0)return;let he=!1;for(const ze of Us)if(!si(i,ze)){he=!0;break}if(he){const ze=new Set;for(const qe of Us)si(i,qe)&&ze.add(qe);Ui(ze)}},[i,Us,Ui]);const{currentPath:ct,setCurrentPath:$i,handlePathChange:Dt}=RB({path:o,defaultPath:r,onPathChange:F,onSelectionClear:$s}),Zo=p.useMemo(()=>{const{showFiles:he=!0,showFolders:ze=!0,...qe}=w||{};return{showFiles:he,showFolders:ze,...qe}},[w]),Xo=Zo.showFiles,Qo=Zo.showFolders,[zn,jn]=p.useState(),ed=y?.destinationFolderPath??zn,Wn=p.useCallback(he=>{y?.setDestinationFolderPath?y.setDestinationFolderPath(he):jn(he)},[y]),{areHiddenFilesVisible:qs,toggleHiddenFilesVisibility:ya}=xB({showHiddenFiles:u,onShowHiddenFilesChange:h}),{isTreeCollapsed:Sa,toggleTreeCollapse:Ra,setIsTreeCollapsed:_n}=yB({collapsed:f?.collapsed,onCollapseChange:f?.onCollapseChange}),{renamedPath:td,renamedItem:Un,renameHandler:sd,renameSaveHandler:id,renameCancelHandler:nd,renameValidateHandler:od,getDisplayName:rd}=AB({items:i,onRenameValidate:H,validationMessages:M,onMoveToFiles:P}),{isSearchMode:qi,searchValue:Fa,effectiveSearchValue:$n,setSearchValue:ad,handleSearchChange:Jo,handleSearchClear:tt,searchResultsRows:Ea}=VB({onSearchFiles:ye,clearSearchResults:ve,currentPath:ct,searchResults:z,searchInProgress:le,navigationPanelValue:v?.value,onNavigationPanelSearchChange:v?.onSearchChange,allItems:i,activeTab:b?.activeTab}),dt=p.useMemo(()=>Do(i,ct)??i[0],[i,ct]),Lt=p.useCallback((he,ze)=>!ze||!he?!1:bB(he.path)>ze,[]),ns=p.useCallback(()=>{Yo?.()},[Yo]),{handleCopyTo:Da,handleMoveTo:Pa,handleDuplicate:Ta,handleOpenDestinationFolderPopup:ka,handleCloseDestinationFolderPopup:qn,openDestinationFolderPopup:Kn,handleSetCopiedFiles:Yn,handleSetMovedFiles:ld,destinationFolderMode:Ia,destinationFolderTitle:Ma,conflictingFiles:cd,conflictResolutionOpen:Aa,closeConflictResolution:dd,handleConflictReplace:La,handleConflictDuplicate:er,handleConflictCancel:ud,handleConflictDecideForEach:hd,sourceFolder:pd}=SB({getDestinationFiles:he=>Do(i,he)?.items??[],onCopyFiles:T,onMoveToFiles:P,onCopySuccess:$s,onMoveSuccess:$s,onDuplicateSuccess:$s,getCopyHeader:y?.getCopyHeader,getMoveHeader:y?.getMoveHeader});p.useEffect(()=>{Kn||Wn(void 0)},[Kn,Wn]);const{deleteConfirmationOpen:gd,itemsToDelete:fd,openDeleteConfirmation:Oa,closeDeleteConfirmation:Na,confirmDelete:Ha}=FB({onDeleteFiles:k,onDeleteSuccess:$s}),{handleDownloadFiles:Zn}=EB({onDownloadFiles:I,customDownloadItemsAction:Yc,onDownloadSuccess:$s}),{isDragging:hi,isDraggingOverWindow:md,uploadError:os,handleDragEnter:vd,handleDragLeave:tr,handleDragOver:Xn,handleDrop:pi,clearError:Ba,openFileDialog:sr,fileInputRef:Ga,openArchiveDialog:ir,uploadConflictingFiles:Va,uploadConflictResolutionOpen:Cd,closeUploadConflictResolution:wd,handleUploadConflictReplace:za,handleUploadConflictDuplicate:nr,handleUploadConflictCancel:bd,handleUploadConflictDecideForEach:xd}=PB({onUploadFiles:Xc,onValidateUpload:K,maxFileSize:W,onUploadArchive:Qc,allowedFileTypes:Ee,validationMessages:A,uploadEnabled:O,currentFolder:dt}),or=p.useCallback(he=>{tt();const ze=ct??"",qe=dt?.items??[];pi(he,ze,qe)},[ct,dt,pi,tt]),Ki=p.useCallback(()=>{tt();const he=ct??"",ze=dt?.items??[];sr(he,ze)},[ct,dt,sr,tt]),ja=p.useCallback(()=>{tt();const he=ct??"",ze=dt?.items??[];ir(he,ze)},[ct,dt,ir,tt]),Wa=p.useCallback(()=>{tt(),Gn?.(ct,dt)},[Gn,ct,dt,tt]),_a=p.useCallback(()=>{tt(),fa?.(ct,dt)},[fa,ct,dt,tt]),Ua=p.useCallback(he=>{Ko?.(he)},[Ko]),{isCreatingFolder:Qn,newFolderTempId:Q,createdFolderPath:Je,newFolderDefaultName:Xe,startFolderCreation:Kt,startGridSiblingFolderCreation:gi,startTreeSiblingFolderCreation:fg,startGridChildFolderCreation:mg,startTreeChildFolderCreation:vg,cancelFolderCreation:l0,saveFolderCreation:c0,validateFolderName:d0}=NB({currentFolder:dt,onCreateFolder:Zc,onValidateFolderName:be,validationMessages:Z,items:i}),Cg=p.useCallback(()=>{if(ft&&Lt(dt,ft-1)){ns();return}tt(),Kt()},[tt,Kt,dt,ft,Lt,ns]),{newActions:u0,isNewButtonVisible:h0,isNewButtonDisabled:p0}=LB({newActions:b?.newActions,currentFolder:dt,onUploadFiles:Gn?Wa:Ki,onUploadArchive:ja,onCreateFolder:Cg,onCreateNewItem:_a,isNewButtonDisabled:b?.isNewButtonDisabled}),g0=p.useMemo(()=>{if(qi){let He=Ea;Xo||(He=He.filter(st=>st.nodeType!==we.ITEM)),Qo||(He=He.filter(st=>st.nodeType!==we.FOLDER)),qs||(He=He.filter(st=>!st.path.split("/").filter(Boolean).some(lr=>lr.startsWith("."))));const ar=He.map(st=>({...st,id:st.id??st.path,name:st.name??st.path.split("/").pop()??"",updatedAt:st.updatedAt,size:st.contentLength,contentLength:st.contentLength,author:st.author,path:st.path,nodeType:st.nodeType,extension:st.extension,isTemporary:!1,owner:st.owner,folderId:st.folderId}));return Qn&&Q&&ar.unshift({id:Q,name:Xe,updatedAt:void 0,author:void 0,path:ct??"/",nodeType:we.FOLDER,extension:void 0,isTemporary:!0,owner:void 0}),ar}const he=Po($n).trim(),ze=dt?.items??[];let qe=he?pB(dt):ze;Xo||(qe=qe.filter(He=>He.nodeType!==we.ITEM)),Qo||(qe=qe.filter(He=>He.nodeType!==we.FOLDER)),qs||(qe=qe.filter(He=>he?!He.path.split("/").filter(Boolean).some(st=>st.startsWith(".")):!Vb(He)));const Ks=qe.map(He=>({...He,id:He.id??He.path,name:He.name??He.path.split("/").pop()??"",updatedAt:He.updatedAt,size:He.contentLength,author:He.author,path:He.path,nodeType:He.nodeType,extension:He.extension,isTemporary:!1,owner:He.owner,contentType:He.contentType,contentLength:He.contentLength,folderId:He.folderId}));if(Qn&&Q&&!he&&Ks.unshift({id:Q,name:Xe,updatedAt:void 0,author:void 0,path:ct??"/",nodeType:we.FOLDER,extension:void 0,isTemporary:!0,owner:void 0}),!he)return Ks;const yd=he.split(/\s+/).filter(Boolean);return Ks.filter(He=>{if(He.isTemporary)return!0;const ar=Po(He.name),st=Po(He.author),bg=hB(He.extension);return yd.every(lr=>ar.includes(lr)||st.includes(lr)||bg.includes(lr))})},[qi,Ea,dt,$n,qs,Qn,Q,Xe,Xo,Qo,ct]);p.useEffect(()=>{const he=ui.current;if(!he)return;if((ct??"")!==he.destinationFolder){ui.current=null;return}const ze=Do(i,he.destinationFolder);if(!ze?.items)return;const qe=new Set;for(const Ks of ze.items)he.fileNames.has(Ks.name)&&CB(Ks,Ee,oe)&&qe.add(Ks.path);qe.size>0&&(Ui(qe),ui.current=null)},[i,ct,Ui,Ee,oe]),p.useEffect(()=>{!xa.current&&ba&&(Ki(),xa.current=!0)},[ba,Ki]);const f0=p.useCallback(he=>{Dt(he.path)},[Dt]),m0=p.useCallback(he=>{Dt(he)},[Dt]),v0=p.useCallback(he=>{he.nodeType===we.FOLDER?Dt(he.path):R?.(he)},[Dt,R]),{expandedPaths:Jn,setExpandedPaths:rr,collapseAll:C0}=_b({expandedPaths:f?.expandedPaths,onExpandedPathsChange:f?.onExpandedPathsChange}),{additionalButtons:w0}=HB({collapseAll:C0,expandedPathsLength:Jn.size,additionalButtons:f?.additionalButtons}),b0=p.useCallback(he=>{if(he.length>0){if(ft&&Lt(he[0],ft)){ns();return}tt(),gi(he[0])}},[tt,gi,ft,Lt,ns]),x0=p.useCallback(he=>{if(he.length>0){if(ft&&Lt(he[0],ft-1)){ns();return}tt(),$i(he[0].path),rr(new Set(Jn).add(he[0].path||"/")),mg(he[0])}},[tt,mg,Jn,rr,$i,ns,ft,Lt]),y0=p.useCallback(he=>{if(he.length>0){if(ft&&Lt(he[0],ft)){ns();return}tt(),fg(he[0])}},[tt,fg,ft,Lt,ns]),S0=p.useCallback(he=>{if(he.length>0){if(ft&&Lt(he[0],ft-1)){ns();return}tt(),$i(he[0].path),rr(new Set(Jn).add(he[0].path||"/")),vg(he[0])}},[tt,vg,$i,Jn,rr,ft,Lt,ns]),{isMetadataPopupOpen:R0,selectedFileForMetadata:F0,openMetadataPopup:E0,closeMetadataPopup:wg}=BB({onGetInfo:Ie}),D0=p.useCallback(()=>{wg(),me?.clearMetadata?.()},[wg,me]),P0=p.useMemo(()=>{if(G)return Uc(G)},[G]),T0={managerLabel:e,className:s,items:i,allowedFileTypes:Ee,maxSelectableFileSize:oe,rootItem:n,filesLoading:a,treeOptions:{...f,expandedPaths:Jn,onExpandedPathsChange:rr,additionalButtons:w0},showNavigationPanel:m,navigationPanelOptions:v,gridOptions:Zo,toolbarOptions:b,bulkActionsToolbarOptions:x,deleteConfirmationOptions:C,destinationFolderPopupOptions:{...y,destinationFolderPath:ed,setDestinationFolderPath:Wn,header:Ma,onCreateFolder:ie,onCreateFolderValidate:be,folderCreationValidationMessages:Z,sourceFolder:pd},currentPath:ct,setCurrentPath:$i,searchValue:Fa,effectiveSearchValue:$n,setSearchValue:ad,areHiddenFilesVisible:qs,toggleHiddenFilesVisibility:ya,isTreeCollapsed:Sa,toggleTreeCollapse:Ra,setIsTreeCollapsed:_n,selectedPaths:Us,selectedFiles:Jc,setSelectedPaths:Ui,clearSelection:$s,currentFolder:dt,gridRows:g0,handleCopyTo:Da,handleMoveTo:Pa,handleDuplicate:Ko?Ua:Ta,handleSetCopiedFiles:Yn,handleSetMovedFiles:ld,openDestinationFolderPopup:Kn,handleCloseDestinationFolderPopup:qn,handleOpenDestinationFolderPopup:ka,destinationFolderMode:Ia,handleGridAddSibling:b0,handleGridAddChild:x0,handleTreeAddSibling:y0,handleTreeAddChild:S0,handleDownloadFiles:Zn,renamedPath:td,renamedItem:Un,forbiddenSymbolsRegExp:P0,forbiddenSymbolsTooltip:V,onRename:sd,onRenameSave:id,onRenameCancel:nd,onRenameValidate:od,getDisplayName:rd,openDeleteConfirmation:Kc||Oa,closeDeleteConfirmation:Na,confirmDelete:Ha,deleteConfirmationOpen:gd,itemsToDelete:fd,handlePathChange:Dt,handleTreeItemClick:f0,handleBreadcrumbItemClick:m0,handleSearchChange:Jo,handleTableRowClick:v0,onTableFileClick:R,handleSelectionClick:E,onGridApiChange:D,isDragging:hi,uploadError:os,handleDragEnter:vd,handleDragLeave:tr,handleDragOver:Xn,handleDrop:or,clearUploadError:Ba,onUploadFiles:B,onValidateUpload:K,maxFileSize:W,isDraggingOverWindow:md,openFileDialog:Ki,fileInputRef:Ga,newActions:u0,isNewButtonVisible:h0,isNewButtonDisabled:p0,isCreatingFolder:Qn,newFolderTempId:Q,createdFolderPath:Je,newFolderDefaultName:Xe,startFolderCreation:Cg,cancelFolderCreation:l0,saveFolderCreation:c0,validateFolderName:d0,conflictResolutionPopupOptions:S,conflictingFiles:cd,conflictResolutionOpen:Aa,closeConflictResolution:dd,handleConflictReplace:La,handleConflictDuplicate:er,handleConflictCancel:ud,handleConflictDecideForEach:hd,uploadConflictingFiles:Va,uploadConflictResolutionOpen:Cd,closeUploadConflictResolution:wd,handleUploadConflictReplace:za,handleUploadConflictDuplicate:nr,handleUploadConflictCancel:bd,handleUploadConflictDecideForEach:xd,fileMetadataPopupOptions:me,isMetadataPopupOpen:R0,selectedFileForMetadata:F0,openMetadataPopup:E0,closeMetadataPopup:D0,onGetInfo:Ie,onUnshareFiles:ne,onRemoveFilesAccess:ce,actionsRef:L,sharedByMePaths:ee,onSearchFiles:ye,searchInProgress:le,searchResults:z,clearSearchResults:ve,isSearchMode:qi,emptyStateIcon:Ce,emptyStateTitle:Ve,emptyStateDescription:je,gridClassName:va,sharedWithMeIds:Qe,onFolderPopupPathChange:Ze,onManagePermissions:yt,onPreview:We,onOpenInNewTab:U,previewExtensions:Ne,isRenameFileAvailable:vs,isDuplicateFolderAvailable:qo,customUploadFileAction:Gn,customBreakpointRef:ma,nonClickableTableColumns:Ca,hideSearchPathItemName:wa,getDisabledTooltip:xe,fileTooLargeTooltip:Ae,unsupportedFileTypeTooltip:Pe,showHiddenFileSwitcherInDestinationPopup:di,showCreateFolderButtonInDestinationPopup:Vn,maxNewFolderDepth:ft,onNewFolderDepthExceeded:Yo};return g.jsx(jb.Provider,{value:T0,children:t})},_B=({disabledGridRowIds:e,gridRows:t,getDisabledTooltip:s,getRowDisabledTooltip:i,allowedFileTypes:n,maxSelectableFileSize:o})=>{const[r,a]=p.useState(null),[l,c]=p.useState(null);p.useEffect(()=>{const h=()=>{a(null),c(null)};return window.addEventListener("scroll",h,!0),()=>window.removeEventListener("scroll",h,!0)},[]),p.useEffect(()=>{const h=v=>{const w=v.target.closest(".ag-row");if(!w){a(x=>x&&null);return}const b=new DOMParser().parseFromString(w.getAttribute("row-id")||"","text/html").documentElement.textContent;b&&e.has(b)?a(x=>x!==b?(c(w.getBoundingClientRect()),b):x):a(x=>x&&null)},f=()=>{a(null),c(null)},m=document.querySelector('[aria-label="File Manager Grid View"]');if(m)return m.addEventListener("mousemove",h),m.addEventListener("mouseleave",f),()=>{m.removeEventListener("mousemove",h),m.removeEventListener("mouseleave",f)}},[e]);const d=p.useMemo(()=>{if(r)return t.find(h=>h.path===r)},[r,t]),u=p.useMemo(()=>{if(d){if(s){const h=s(d);if(h)return h}return i(d,n,o)}},[d,s,i,n,o]);return g.jsx(g.Fragment,{children:u&&l&&Bo.createPortal(g.jsxs(Ph,{open:!0,placement:"top",children:[g.jsx(kh,{asChild:!0,children:g.jsx("div",{className:re("fixed z-[-1]",u&&"pointer-events-none"),style:{top:l.top,left:l.left,width:l.width,height:l.height}})}),g.jsx(Th,{className:"max-w-[300px] rounded border border-ui-outline-primary bg-ui-popover px-3 py-1.5 text-center text-primary shadow-md fill-ui-popover",children:u})]}),document.body)})},Kb=({onClose:e,onConfirm:t,onFolderPopupPathChange:s,setDestinationFolderPath:i,open:n,copyLabel:o="Copy",moveLabel:r="Move",addFolderLabel:a="Add folder",mode:l=Ct.Copy,hiddenFilesSwitcherLabel:c="Show hidden files",showHiddenFileSwitcher:d=!0,showCreateFolderButton:u=!0,onUploadFiles:h,onValidateUpload:f,maxFileSize:m,header:v,sourceFolder:C,disabledPathTooltip:w="Unavailable for the original path. Please select another folder",path:b,collapsedFileTree:x=!1,alertProps:y,processDestinationFolderPath:S,...F})=>{const[R,E]=p.useState(!1),[D,T]=p.useState(!1),P=p.useRef(null),k=na(),I=p.useCallback(B=>{E(B)},[]),H=p.useMemo(()=>{const B=[];return u&&B.push({key:"add-folder",label:a,icon:g.jsx(_.IconFolderPlus,{...te,className:"text-secondary"}),onClick:()=>{P.current?.createFolder(),T(!1)}}),d&&B.push({key:"show-hidden-files",label:c,icon:g.jsx(_.IconEye,{...te,className:"text-secondary"}),onClick:()=>{E(K=>!K),T(!1)}}),B},[a,c,d,u]),M=p.useCallback(B=>{if(B){let K=S?S(B):B;s?.(K),i?.(K)}},[s,i,S]),G=l===Ct.Copy?"Copy to":"Move to",V=p.useMemo(()=>!b||!C?!1:C===b,[b,C]);return g.jsx(Hn,{open:n,onClose:()=>{e()},size:es.Lg,dividerFooter:!0,dividers:!1,className:"md:!h-[800px] !bg-layer-2",footer:g.jsxs("div",{className:"flex justify-between items-center gap-2 p-4 md:px-6",children:[g.jsx("div",{className:"flex items-center gap-4 min-w-0",children:k?g.jsx(Mt,{items:H,open:D,onOpenChange:T,children:g.jsx(Fs,{className:"size-9 shrink-0","aria-label":"More options",iconBefore:g.jsx(_.IconDotsVertical,{...te,className:"text-secondary"})})}):g.jsxs(g.Fragment,{children:[u&&g.jsx(Bs,{label:a,appearance:ke.Ghost,iconBefore:g.jsx(_.IconFolderPlus,{...te}),onClick:()=>{P.current?.createFolder()}}),u&&d&&g.jsx("div",{className:"w-px h-[26px] bg-controls-disable-accent my-2"}),d&&g.jsx(g.Fragment,{children:g.jsx("div",{className:"inline-flex items-center cursor-pointer",children:g.jsx(Wc,{label:c,isOn:R,onChange:I,switchId:"hidden-files-switch-modal"})})})]})}),g.jsxs("div",{className:"flex space-x-4 items-center",children:[g.jsx(js,{onClick:e,label:"Cancel"}),V?g.jsx(kt,{tooltip:w,children:g.jsx(Bs,{onClick:t,label:l==="copy"?o:r,disabled:V,"aria-disabled":V})}):g.jsx(Bs,{onClick:t,label:l==="copy"?o:r})]})]}),header:v??G,children:g.jsxs("div",{className:"bg-layer-2 h-full flex flex-col",children:[y&&g.jsx("div",{className:"px-6 mb-4 pt-4",children:g.jsx(Dv,{...y})}),g.jsx("div",{className:"flex-1 min-h-0",children:g.jsx(s0,{...F,gridClassName:"size-full",className:$(F.className,"bg-layer-2 h-full flex pt-0"),actionsRef:P,path:b,showHiddenFiles:R,onShowHiddenFilesChange:I,treeOptions:{...F.treeOptions,collapsed:x,expandedPaths:new Set([F.rootItem?.path||"/"]),header:F.treeOptions?.header},gridOptions:{...F.gridOptions,selectionMode:void 0},navigationPanelOptions:{elementId:"file-manager-destination-search",...F.navigationPanelOptions},onUploadFiles:h,onValidateUpload:f,onPathChange:M,maxFileSize:m})})]})})},UB=12,$B=8;var an=(e=>(e.Normal="normal",e.Reverse="reverse",e))(an||{});function qB({actions:e,direction:t=an.Normal,moreButtonWidth:s=Zt,actionsGap:i=8,containerPadding:n=8,dependencies:o=[]}){const r=p.useRef(null),a=p.useRef(null),l=p.useRef(null),c=p.useRef(null),d=p.useRef([]),[u,h]=p.useState(0),f=p.useCallback((C,w)=>{const b=l.current?.offsetWidth??0,x=c.current?.offsetWidth??0,y=b+x,F=w.getBoundingClientRect().width-y-s-i*2-n*2;let R=0,E=0;if(t===an.Reverse)for(let D=C.length-1;D>=0&&(R+=C[D]+i,!(R>F));D--)E++;else for(const D of C){if(R+=D+i,R>F)break;E++}h(E)},[i,n,t,s]);p.useLayoutEffect(()=>{if(!a.current||!r.current)return;const w=Array.from(a.current.children).map(b=>Math.ceil(b.getBoundingClientRect().width));d.current=w,w.length!==0&&f(w,r.current)},[e,f,...o]),p.useEffect(()=>{if(!r.current)return;let C=null;const w=()=>{C&&cancelAnimationFrame(C),C=requestAnimationFrame(()=>{if(!r.current)return;const x=r.current,y=d.current;y.length!==0&&f(y,x)})},b=new ResizeObserver(w);return b.observe(r.current),w(),()=>{C&&cancelAnimationFrame(C),b.disconnect()}},[e.length,f,...o]);const m=t===an.Reverse?e.slice(0,e.length-u):e.slice(u);return{visibleActions:t===an.Reverse?e.slice(e.length-u):e.slice(0,u),hiddenActions:m,refs:{containerRef:r,measureRef:a,leftSectionRef:l,rightSectionRef:c}}}const KB=({getSelectionLabel:e,onClearSelection:t,actions:s,selectedCount:i})=>{const n=na(),{refs:{containerRef:o,leftSectionRef:r,measureRef:a},visibleActions:l,hiddenActions:c}=qB({actions:s,direction:an.Reverse,dependencies:[n],actionsGap:UB,containerPadding:$B}),d=e(i);return g.jsxs(g.Fragment,{children:[g.jsx("div",{ref:a,className:"absolute top-0 left-0 invisible pointer-events-none overflow-hidden whitespace-nowrap flex gap-3",children:s.map(({key:u,icon:h,title:f})=>g.jsx(js,{iconBefore:h,label:f,hideTitleOnMobile:!0},u))}),g.jsxs("div",{ref:o,className:"rounded bg-layer-0 p-2 flex justify-between items-center w-full",role:"toolbar","aria-label":"File bulk actions",children:[g.jsx("div",{ref:r,children:g.jsx(Bs,{label:d,onClick:t,textClassName:"text-accent-primary whitespace-nowrap",appearance:ke.Ghost,iconBefore:g.jsx(_.IconX,{...te,className:"text-accent-primary"})})}),g.jsxs("div",{className:"flex flex-1 w-full gap-3 items-center justify-end",children:[c.length>0&&g.jsx(Mt,{items:c,allowedPlacements:["bottom","bottom-start"],children:g.jsx(Fs,{className:"h-[38px]",iconBefore:g.jsx(_.IconDotsVertical,{...te,className:"text-secondary hover:text-accent-primary"})})}),l.map(({key:u,icon:h,tooltip:f,title:m,onClick:v,disabled:C})=>g.jsx(js,{className:"!p-[9px]",iconBefore:h,label:m,hideTitleOnMobile:!0,disabled:C,tooltipProps:{tooltip:f},onClick:w=>v?.({key:u,domEvent:w})},u))]})]})]})},YB=({open:e,itemsToDelete:t,onClose:s,onConfirm:i,cancelLabel:n="Cancel",confirmLabel:o="Delete",titleRenderer:r,contentRenderer:a})=>{const l=t.map(f=>f.name),d=r?.(l)||"Confirm Deleting Items",u=g.jsxs("div",{className:"px-6 py-3 dial-small-text",children:[g.jsx("p",{className:"text-secondary mb-3",children:t.length===1?g.jsxs(g.Fragment,{children:["Do you want to delete file or folder"," ",g.jsxs("span",{className:"text-primary break-all",children:['"',t[0].name,'"']}),"?"]}):g.jsxs(g.Fragment,{children:["Do you want to delete the following"," ",g.jsx("span",{className:"text-primary",children:t.length})," items?"]})}),t.length>1&&g.jsx(g.Fragment,{children:t.length<=10?g.jsx("ul",{className:"space-y-1 text-primary list-none",children:t.map(f=>g.jsx("li",{className:"truncate",children:f.name},f.path))}):g.jsxs(g.Fragment,{children:[g.jsx("ul",{className:"space-y-1 text-primary list-none mb-2",children:t.slice(0,10).map(f=>g.jsx("li",{className:"truncate",children:f.name},f.path))}),g.jsxs("p",{className:"text-secondary italic",children:["... and ",t.length-10," more"]})]})})]}),h=a?.(l)||u;return g.jsx(Sb,{open:e,header:d,confirmLabel:o,cancelLabel:n,variant:Ho.Danger,onClose:s,onConfirm:i,children:h})},iv=e=>e.split("/").map(t=>t.trim()).filter(Boolean),ZB="w-full flex items-center justify-between gap-4",XB="min-w-0 h-[38px] flex-1 overflow-hidden bg-layer-3 px-3 flex items-center rounded",QB="w-[260px]",JB=({ariaLabel:e="Breadcrumb",labelClassName:t,onItemClick:s,path:i,makeHref:n,rootItemPath:o,rootItemLabel:r,breadcrumbsHiddenPathPart:a,className:l,breadcrumbClassName:c,searchable:d=!0,value:u,elementId:h="file-manager-search",disabled:f,invalid:m,onSearchChange:v,searchClassName:C,searchContainerClassName:w,isCompactView:b=!1})=>{const x=p.useMemo(()=>{if(!i)return;let D=iv(i);const T=[...D];let P=0;if(a){const I=iv(a);if(I.length){const H=D.findIndex((M,G)=>I.every((V,B)=>D[G+B]===V));H!==-1&&(P=I.length,D=[...D.slice(0,H),...D.slice(H+I.length)])}}if(!D.length)return[{label:"/"}];const k=D.map((I,H)=>{const M=H<D.length-P?H:H+P,G=T.slice(0,M+1),V=typeof n=="function"?n(G,M):void 0;return{label:I,href:V,onClick:s?B=>{B.preventDefault(),s(V)}:void 0}});if(o&&r){const I=o.split("/").filter(Boolean),H=i.split("/").filter(Boolean);if(I.every((G,V)=>H[V]===G)&&k.length>0){const G=k.slice(I.length);return[{label:r,href:o,onClick:s?V=>{V.preventDefault(),s(o)}:void 0},...G]}}return k},[i,a,o,r,n,s]),[y,S]=p.useState(!1),F=p.useCallback(()=>{if(b&&!y){S(!0);const D=document.getElementById(h);D&&D.focus()}},[h,y,b]),R=p.useCallback(()=>{(!u||String(u).trim()==="")&&v?.("")},[u,v]),E=p.useCallback(()=>b&&y?g.jsx(js,{className:"!p-[9px]",iconBefore:g.jsx(_.IconArrowLeft,{...te}),onClick:()=>{S(!1),v?.("")}}):g.jsx("div",{className:XB,children:g.jsx(bb,{pathItems:x,ariaLabel:e,labelClassName:t,className:c})}),[e,c,x,y,b,t,v]);return g.jsxs("div",{className:$(ZB,{"gap-3":b},l),"aria-label":"navigation-panel",children:[E(),d&&g.jsx("div",{className:$(QB,{"w-[40px]":b&&!y,"w-full":b&&y}),role:"search","aria-label":"Search",onClick:F,children:g.jsx(ng,{id:h,value:u??"",onChange:v,disabled:f,onBlur:R,invalid:m,className:C,wrapperClassName:b&&!y?"pl-2.5":"",containerClassName:w})})]})},eG=({tabs:e,activeTab:t,onTabChange:s,areHiddenFilesVisible:i,onToggleHiddenFiles:n,isNewButtonVisible:o,isNewButtonDisabled:r,newButtonVariant:a=Ye.Primary,newButtonDropdownItems:l=[],newButtonLabel:c="New",hiddenFilesSwitcherLabel:d="Hidden files",showHiddenFilesLabel:u="Show hidden files",hideHiddenFilesLabel:h="Hide hidden files",showHiddenFilesToggle:f=!0,disabledNewButtonTooltip:m})=>{const v=na(),C=p.useMemo(()=>[{key:"hidden-files-switch",label:i?h:u,icon:i?g.jsx(_.IconEyeOff,{...te,className:"text-secondary"}):g.jsx(_.IconEye,{...te,className:"text-secondary"}),onClick:()=>n?.(!i)}],[i,h,u,n]),w=()=>e&&t&&s?g.jsx(mb,{tabs:e,activeTab:t,onClick:y=>s(y),screenThreshold:dc.Tablet,smallScreenContainerClassName:"w-fit bg-transparent h-[38px] overflow-hidden",smallScreenDropdownItemClassName:"px-3 h-[38px]"}):null,b=()=>g.jsxs(g.Fragment,{children:[f&&g.jsxs(g.Fragment,{children:[g.jsx(Wc,{switchId:"hidden-files-switch",label:d,isOn:i,onChange:n}),g.jsx("div",{className:"h-6 border-l border-primary"})]}),o&&g.jsx(kt,{tooltip:r&&m?m:void 0,children:g.jsx(Fh,{label:c,variant:a,items:l,disabled:r})})]}),x=()=>g.jsxs(g.Fragment,{children:[g.jsx(Mt,{items:C,allowedPlacements:["bottom","bottom-start"],children:g.jsx(fc,{size:et.Small,icon:g.jsx(_.IconDotsVertical,{stroke:2,size:nt.SM})})}),o?g.jsx(kt,{tooltip:r&&m?m:void 0,children:g.jsx(Fh,{label:c,variant:a,items:l,disabled:r})}):null]});return g.jsxs("div",{className:"flex w-full justify-between gap-4 items-center overflow-x-auto",children:[g.jsx("div",{className:"flex-1 min-w-0",children:w()}),g.jsx("div",{className:"flex gap-2 shrink-0 items-center",children:v?x():b()})]})},tG=100,Cr=16,ks="text-secondary",pl="text-primary min-w-0",sG="text-primary break-words min-w-0",wr="bg-layer-2",iG=({open:e,onClose:t,fileMetadata:s,loading:i=!1,header:n="Information",nameLabel:o="Name:",pathLabel:r="Path:",modifiedDateLabel:a="Modified Date:",sizeLabel:l="Size:",authorLabel:c="Author:",dateLocale:d="en-US",dateOptions:u})=>g.jsx(Hn,{open:e,onClose:t,size:es.Sm,header:n,dividers:!1,children:g.jsx("div",{className:"px-6 py-4",children:g.jsx("div",{className:"grid gap-4 items-center dial-small-text",style:{gridTemplateColumns:`${tG}px 1fr`},children:i?g.jsxs(g.Fragment,{children:[g.jsx("div",{className:ks,children:o}),g.jsx(oo,{variant:hs.Text,width:"100%",height:Cr,className:wr}),g.jsx("div",{className:ks,children:a}),g.jsx(oo,{variant:hs.Text,width:"90%",height:Cr,className:wr}),g.jsx("div",{className:ks,children:l}),g.jsx(oo,{variant:hs.Text,width:"60%",height:Cr,className:wr}),g.jsx("div",{className:ks,children:c}),g.jsx(oo,{variant:hs.Text,width:"80%",height:Cr,className:wr}),g.jsx("div",{className:ks,children:r}),g.jsx(oo,{variant:hs.Text,width:"70%",height:Cr,className:wr})]}):s?g.jsxs(g.Fragment,{children:[g.jsx("div",{className:ks,children:o}),g.jsx("div",{className:pl,children:g.jsx(bt,{text:s.name})}),g.jsx("div",{className:ks,children:a}),g.jsx("div",{className:pl,children:g.jsx(bt,{text:gB(s.updatedAt,d,u)})}),g.jsx("div",{className:ks,children:l}),g.jsx("div",{className:pl,children:g.jsx(bt,{text:ta(s.contentLength)})}),g.jsx("div",{className:ks,children:c}),g.jsx("div",{className:pl,children:g.jsx(bt,{text:s.author||"—"})}),g.jsx("div",{className:ks,children:r}),g.jsx("div",{className:sG,children:decodeURIComponent(s.path)})]}):null})})}),nG={size:10,stroke:2},oG=26,br="__new_folder";var ts=(e=>(e.File="file",e.Folder="folder",e))(ts||{});const rG=({name:e,type:t,shared:s=!1,loading:i=!1,sharedIndicatorClassName:n,sharedIndicatorTooltip:o,fileExtension:r,...a})=>{const l=c=>g.jsxs("span",{className:"inline-flex relative text-secondary",role:"img",children:[c,s&&g.jsx("span",{className:"absolute -bottom-0.5 -left-0.5",children:g.jsx(zr,{className:n,sharedIndicatorTooltip:o})})]});if(i)return l(g.jsx(oa,{}));if(t===ts.File){const c=r||(e.includes(".")?e.split(".").pop():void 0);return g.jsx(Vh,{...a,extension:c??"",className:"text-secondary",indicator:s?g.jsx(zr,{className:n,sharedIndicatorTooltip:o}):null,label:"File type icon"})}return t===ts.Folder?l(g.jsx(Oe,{icon:g.jsx(_.IconFolder,{className:a.className,size:a.size??te.size,stroke:a.stroke??te.stroke}),className:"inline-block align-middle"})):null},Yb="data-editable-container",aG={[Yb]:""};function Zb({value:e,isEditing:t,isCreating:s,isLoading:i=!1,restoreOnCancel:n=!0,onValidate:o,onSave:r,onCancel:a,onCreateFolderSave:l,onCreateFolderCancel:c}){const[d,u]=p.useState(e),[h,f]=p.useState(!1),[m,v]=p.useState(""),C=p.useRef(null),w=p.useRef(!1),b=p.useRef(!1),x=p.useCallback((D=!1,T="")=>{f(D),v(T)},[]),y=p.useCallback(D=>{if(!o)return x(),!0;const T=o(D);return T?T.startsWith(`${us.Warning}__`)?(x(!1,T),!0):(x(!0,T),!1):(x(),!0)},[o,x]),S=p.useCallback(D=>{const T=D??"";u(T),y(T)},[y]),F=p.useCallback(D=>{s&&!w.current&&!i?l?.(D):!s&&t&&r?.(D),w.current=!1},[r,l,s,t,i]),R=p.useCallback(()=>{n&&u(e),s?c?.():a?.(),w.current=!0,x()},[e,a,n,x,c,s]),E=p.useCallback(()=>{if(!b.current){if(b.current=!0,y(d)){F(d);return}y(e)?(u(e),x(),F(e)):R()}},[y,d,e,F,R,x]);return p.useEffect(()=>{!t&&!s||(w.current=!1,b.current=!1,u(e),x(),requestAnimationFrame(()=>{C.current?.focus(),C.current?.select()}))},[t,s,e,x]),p.useEffect(()=>{const D=C.current;if(!t&&!s||!D)return;const T=P=>{P.key==="Enter"?(P.preventDefault(),C.current?.blur()):P.key==="Escape"&&(P.preventDefault(),R())};return D.addEventListener("keydown",T),()=>D.removeEventListener("keydown",T)},[t,s,R]),p.useEffect(()=>{if(!t&&!s||i)return;const D=C.current;if(!D)return;const T=I=>I?(D.closest(`[${Yb}]`)??D).contains(I):!1,P=I=>{T(I.target)||E()},k=I=>{T(I.relatedTarget)||E()};return document.addEventListener("pointerdown",P,!0),D.addEventListener("blur",k),()=>{document.removeEventListener("pointerdown",P,!0),D.removeEventListener("blur",k)}},[t,s,i,E]),{inputRef:C,value:d,onChange:S,invalid:h,invalidMessage:m}}const lG=({name:e,type:t,elementId:s,loading:i=!1,shared:n=!1,iconClassName:o,iconIndicator:r,iconLabel:a,iconSize:l,iconStroke:c,inputInvalid:d,inputInvalidMessage:u,inputContainerClassName:h,inputIconAfter:f,inputRef:m,onChange:v,sharedIndicatorClassName:C,sharedIndicatorTooltip:w,fileExtension:b})=>{const x=()=>{const y=u?.startsWith(`${us.Warning}__`);if(!d&&!y)return null;const S=u?.replace(`${us.Warning}__`,"");return g.jsx(kt,{tooltip:S,children:f||(y?g.jsx(_.IconAlertTriangleFilled,{...te,className:"text-warning-icon","aria-label":"warning"}):g.jsx(_.IconAlertCircleFilled,{...te,className:"text-error","aria-label":"alert"}))})};return g.jsxs("div",{className:"flex gap-2 items-center",...aG,children:[g.jsx(rG,{name:e,type:t,label:a,className:o,indicator:r,size:l,stroke:c,loading:i,shared:n,fileExtension:b,sharedIndicatorClassName:C,sharedIndicatorTooltip:w}),g.jsx(ai,{containerClassName:$("!h-6 py-[1px] pl-[7px] pr-[7px]",h),id:s,value:e,onChange:v,invalid:d,iconAfter:x(),inputRef:m})]})},gc=({name:e,type:t,elementId:s,editing:i=!1,loading:n=!1,creating:o=!1,shared:r=!1,iconSize:a=Zt,validate:l,onSave:c,fileExtension:d,onCancel:u,onCreateFolderCancel:h,onCreateFolderSave:f,inputContainerClassName:m,sharedIndicatorClassName:v,sharedIndicatorTooltip:C,hideTooltip:w=!1,forbiddenSymbolsRegExp:b,forbiddenSymbolsTooltip:x,...y})=>{const{value:S,invalid:F,invalidMessage:R,onChange:E,inputRef:D}=Zb({value:e,isEditing:i,isCreating:o,isLoading:n,onValidate:l,onCancel:u,onSave:c,onCreateFolderCancel:h,onCreateFolderSave:f});if(!i&&!o){const T=dg({name:e,isFolder:t===ts.Folder},b,x),P=!!T;return t===ts.Folder?g.jsx(Sc,{name:e,loading:n,shared:r,iconSize:a,className:"max-w-[428px] truncate",sharedIndicatorClassName:v,hideTooltip:w,isInvalidName:P,tooltipContent:T}):g.jsx(yc,{className:"max-w-[428px]",...y,name:e,shared:r,iconSize:a,sharedIndicatorClassName:v,hideTooltip:w,isInvalidName:P,tooltipContent:T})}return g.jsx(lG,{type:t,name:S,elementId:s,inputInvalid:F,inputInvalidMessage:R,inputRef:D,onChange:E,iconSize:a,fileExtension:d,inputContainerClassName:m,sharedIndicatorTooltip:C,sharedIndicatorClassName:v})},cG=({items:e,showFiles:t=!1,expandedPaths:s,loadingPaths:i=new Set,loadedPaths:n=new Set,sharedByMePaths:o=new Set,selectedPath:r,emptyStateTitle:a="No Folders",emptyStateDescription:l,emptyStateIcon:c,areHiddenFilesVisible:d=!1,renamedPath:u,createdFolderPath:h,rootItemLabel:f,rootItemPath:m,onItemClick:v,getContextMenuItems:C,onRenameSave:w,onRenameCancel:b,onRenameValidate:x,onExpandedPathsChange:y,onCreateFolderSave:S,onCreateFolderCancel:F,forbiddenSymbolsRegExp:R,forbiddenSymbolsTooltip:E,newFolderDefaultName:D})=>{const{expandedPaths:T,togglePath:P}=_b({expandedPaths:s??new Set,onExpandedPathsChange:y}),k=H=>{v?.(H),P(H.path)},I=(H,M,G)=>{let V=H;return G&&G.path===h&&(V=[{folderId:br,id:br,items:[],name:D||"",nodeType:we.FOLDER,parentPath:h,path:`${h}/${br}`},...H]),V.map(B=>{const{path:K,nodeType:O,name:A,items:W}=B,Y=O===we.FOLDER;if(!d&&Vb(B))return null;if(!Y&&!t)return;const ie=Array.isArray(W)&&W.length>0&&W.some(ve=>ve.nodeType===we.FOLDER||t),be=T.has(K),Z=r===K,me=i.has(K),Ie=u===K||K===`${h}/${br}`,ne=n.has(K),ce=o.has(K),L=m&&f&&K===m&&Y,ee=x&&(ve=>x(ve,B)),ye=Z?"bg-accent-primary-alpha border-l-2 border-l-accent-primary rounded":"border-l-2 border-l-transparent",z=L?[]:C?.(B)??[],le=R?dg({name:B.name,isFolder:Y},R,E):void 0;return g.jsx("div",{className:"cursor-pointer text-secondary",children:g.jsxs("div",{className:"flex flex-col w-full","aria-label":"folder",children:[g.jsx(Mt,{trigger:[Qt.ContextMenu],className:"w-full",anchorToMouse:!0,items:z,children:g.jsxs("div",{style:{paddingLeft:`${M*oG}px`},className:$("py-1 gap-[2px] dial-small-text flex justify-between hover:bg-accent-primary-alpha rounded group/item w-full mb-[2px] relative",ye),"aria-selected":Z,children:[!Ie&&g.jsx("div",{className:"absolute size-full left-0 top-0 z-0",onClick:()=>k(B)}),g.jsx("div",{className:"relative flex flex-row truncate items-center w-fit h-6 gap-x-1 pl-1",onClick:()=>!Ie&&k(B),children:g.jsxs(g.Fragment,{children:[Y&&g.jsx(_.IconCaretRightFilled,{...nG,className:re("flex-shrink-0",be&&"rotate-90 transition-all",ne&&!ie&&"text-transparent")}),g.jsx(gc,{elementId:`${K}-tree-item`,name:L?f:A,type:Y?ts.Folder:ts.File,loading:me,shared:ce,sharedIndicatorClassName:$("group-hover/item:bg-accent-primary-alpha",Z&&"bg-accent-primary-alpha"),iconSize:Pi,forbiddenSymbolsRegExp:R,forbiddenSymbolsTooltip:le,...!L&&{editing:Ie,creating:K===`${h}/${br}`,onSave:w,onCancel:b,validate:ee,onCreateFolderSave:S,onCreateFolderCancel:F}})]})}),z.length>0&&!Ie&&!L&&g.jsx("div",{className:"flex-1 flex justify-end",children:g.jsx(Mt,{placement:"bottom-start",allowedPlacements:["top-start","top-end"],items:z,className:"sticky right-0",children:g.jsx(Oe,{className:"invisible group-hover/item:visible text-secondary mx-2 flex flex-row gap-2 hover:text-accent-primary",icon:g.jsx(_.IconDotsVertical,{...te})})})})]})}),be&&(W||B?.path===h)&&I(W||[],M+1,B)]})},`${K}-children`)})};return g.jsx("div",{className:"flex-1 size-full overflow-y-auto","aria-label":"folders-tree",children:e.length>0?I(e,0):g.jsx(ra,{title:a,description:l,icon:c})})},dG=({selectedFiles:e,actionLabels:t,onDuplicate:s,onCopy:i,onMove:n,onDownload:o,onUnshare:r,onRemoveAccess:a,onDelete:l,getCurrentFolderPath:c,sharedWithMeIds:d,sharedByMePaths:u,onClearSelection:h,forbiddenSymbolsRegExp:f})=>p.useMemo(()=>{const m=[],v=Array.from(e.values());if(!v.length||!t)return m;const C=Uc(f),w=C?v.some(b=>C.test(b.name)):!1;if(t[X.RemoveAccess]&&a){const b=v.some(x=>!u?.has(x.path));m.push({key:X.RemoveAccess,label:t[X.RemoveAccess],title:t[X.RemoveAccess],disabled:b,icon:g.jsx(_.IconUserX,{size:te.size,className:"text-secondary"}),onClick:()=>{a(v),h()}})}if(t[X.Move]&&!w&&m.push({key:X.Move,label:t[X.Move],title:t[X.Move],icon:g.jsx(rg,{width:te.size,height:te.size,className:"text-secondary"}),onClick:()=>n(v)}),t[X.Copy]&&!w&&m.push({key:X.Copy,label:t[X.Copy],title:t[X.Copy],icon:g.jsx(og,{width:te.size,height:te.size,className:"text-secondary"}),onClick:()=>i(v)}),t[X.Duplicate]&&!w&&m.push({key:X.Duplicate,label:t[X.Duplicate],title:t[X.Duplicate],icon:g.jsx(_.IconCopy,{...te,className:"text-secondary"}),onClick:()=>s(v)}),t[X.Delete]){const b=v.some(x=>x.permissions&&!x.permissions.includes(Bn.WRITE));m.push({key:X.Delete,label:t[X.Delete],title:t[X.Delete],icon:g.jsx(_.IconTrashX,{...te,className:"text-secondary"}),disabled:b,tooltip:b?"Selected items contain item which can not be deleted":void 0,onClick:()=>{const x=c();l(v,x)}})}if(t[X.Download]&&!w&&m.push({key:X.Download,label:t[X.Download],title:t[X.Download],icon:g.jsx(_.IconDownload,{...te,className:"text-secondary"}),onClick:()=>o(v)}),t[X.Unshare]&&r){const b=v.some(x=>!d?.includes(x.path));m.push({key:X.Unshare,label:t[X.Unshare],title:t[X.Unshare],disabled:b,tooltip:b?"Selected items contain item which can not be unshared":void 0,icon:g.jsx(ag,{width:te.size,height:te.size,className:"text-secondary"}),onClick:()=>{r(v),h()}})}return m},[e,t,r,a,n,i,s,c,l,o,d,h,u,f]);function hg(e){if(!e)return null;if(e instanceof Date)return isFinite(e.getTime())?e:null;if(typeof e=="number"){const t=new Date(e);return isFinite(t.getTime())?t:null}if(typeof e=="string"){const t=e.trim();if(/^-?\d+$/.test(t)){const i=Number(t);return hg(i)}const s=new Date(t);return isFinite(s.getTime())?s:null}return null}const Xb=({value:e,locale:t=pb,options:s=gb,emptyPlaceholder:i,className:n,hideTooltip:o=!1})=>{const r=hg(e),a=p.useMemo(()=>r?new Intl.DateTimeFormat(t,s).format(r):i,[r,i,t,s]),l=r?r.toISOString():void 0;return g.jsx(bt,{text:l?g.jsx("time",{dateTime:l,children:a}):g.jsx("span",{children:a}),className:re(SN,n),hideTooltip:o})},uG=({id:e,name:t,nodeType:s,size:i,updatedAt:n,dateLocale:o,dateOptions:r,shared:a,sharedIndicatorClassName:l,hideTooltip:c=!1,forbiddenSymbolsRegExp:d,forbiddenSymbolsTooltip:u})=>g.jsx("div",{className:"flex",children:g.jsx("div",{className:"flex flex-1 min-w-0",children:g.jsx(gc,{type:s===we.FOLDER?ts.Folder:ts.File,name:t,elementId:e,shared:a,iconSize:Pi,sharedIndicatorClassName:l,hideTooltip:c,forbiddenSymbolsRegExp:d,forbiddenSymbolsTooltip:u,details:g.jsxs("div",{className:"flex items-center gap-1 dial-tiny-text text-secondary",children:[g.jsx("span",{children:s===we.ITEM?ta(i):""}),n&&i&&g.jsx(_.IconCircleFilled,{size:2,className:"text-secondary"}),n?g.jsx("span",{children:g.jsx(Xb,{value:n,locale:o?.toString(),options:r,className:"dial-tiny-text text-secondary",hideTooltip:c})}):null]})})})}),Qb=e=>(t,s,i)=>({colId:wt.Name,field:"name",headerName:e,flex:1,minWidth:200,cellRenderer:n=>{const o=n.data.nodeType,{saveFolderCreation:r,validateFolderName:a,cancelFolderCreation:l,newFolderTempId:c,sharedByMePaths:d,selectedPaths:u,disabledRowIds:h,filesLoading:f}=n.context,m=d?.has(n.data.path),v=u?.has(n.data.path),C=h?.has(n.data.path)??!1,w=$(["group-hover/grid-row:bg-accent-primary-alpha",v&&"bg-accent-primary-alpha"]);if(n.data?.isTemporary&&n.data.id===c)return g.jsx(gc,{name:n.data.name,type:ts.Folder,elementId:`new-folder-${n.data.id}`,editing:!0,creating:!0,loading:f,shared:m,sharedIndicatorClassName:w,iconSize:Pi,validate:a,onSave:r,onCancel:l,onCreateFolderSave:r,onCreateFolderCancel:l,inputContainerClassName:$(["!h-9",i&&o===we.ITEM&&"!h-10"])});const{renameTriggerView:b,renamedPath:x,renamedItem:y,getDisplayName:S,onRenameValidate:F,onRenameSave:R,onRenameCancel:E}=n.context;if(b===Eo.Grid&&x===n.data?.path&&y&&n.data){const P=S(y);return g.jsx(gc,{name:P,type:o===we.FOLDER?ts.Folder:ts.File,fileExtension:y.name.split(".").pop(),elementId:`rename-${n.data.id}`,editing:!0,shared:m,sharedIndicatorClassName:w,iconSize:Pi,validate:k=>F(k,y),onSave:R,onCancel:E,inputContainerClassName:$(["!h-9",i&&o===we.ITEM&&"!h-10"]),forbiddenSymbolsRegExp:n.context.forbiddenSymbolsRegExp})}if(i)return g.jsx(uG,{id:n.data.id,name:n.data.name,nodeType:o,size:n.data.size,shared:m,sharedIndicatorClassName:w,updatedAt:n.data.updatedAt,dateLocale:t,dateOptions:s,hideTooltip:C,forbiddenSymbolsRegExp:n.context.forbiddenSymbolsRegExp,forbiddenSymbolsTooltip:n.context.forbiddenSymbolsTooltip});const T=dg({name:n.data.name,isFolder:o===we.FOLDER},n.context.forbiddenSymbolsRegExp,n.context.forbiddenSymbolsTooltip);return o===we.FOLDER?g.jsx(Sc,{name:n.data.name,shared:m,sharedIndicatorClassName:w,iconSize:Pi,hideTooltip:C,isInvalidName:!!T,tooltipContent:T}):g.jsx(yc,{name:n.data.name,shared:m,sharedIndicatorClassName:w,iconSize:Pi,hideTooltip:C,isInvalidName:!!T,tooltipContent:T})}}),Jb=e=>(t,s)=>({colId:wt.UpdatedAt,field:"updatedAt",headerName:e,width:168,suppressSizeToFit:!0,cellRenderer:i=>{const n=i.context?.disabledRowIds?.has(i.data?.path)??!1;return g.jsx(Xb,{...i,hideTooltip:n})},cellRendererParams:{locale:t,options:s},filterValueGetter:i=>{const n=i.data[i.colDef.field||""],o=hg(n);return o?new Intl.DateTimeFormat(t||pb,s||gb).format(o):""}}),e0=e=>({colId:wt.Size,field:"size",headerName:e,width:120,suppressSizeToFit:!0,cellRenderer:t=>t.data.nodeType===we.ITEM?ta(t.data.contentLength):"",filterValueGetter:t=>t.data.nodeType===we.ITEM?ta(t.data.contentLength):""}),hG=e=>{const t=e.event;if(!(t?.target??null)?.closest("input")||!t)return!1;switch(t.key){case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"ArrowDown":case"Home":case"End":return!0;default:return!1}};function pG({userColumnDefs:e,filterable:t,dateLocale:s,dateOptions:i,effectiveVisibleColumns:n,isCompactView:o,hasActions:r,actionsColumnDef:a,rootItemLabel:l,rootItemPath:c}){const d=p.useMemo(()=>[Qb("Name")(s,i,o),{colId:wt.Path,field:"path",headerName:"Path",flex:1,minWidth:200,cellRenderer:h=>{const f=h.context?.disabledRowIds?.has(h.data.path)??!1;let m=h.data.path;if(h.context?.hideSearchPathItemName&&(h.data.parentPath?m=h.data.parentPath:m=m.replace(/\/[^/]+\/?$/,"")||"/"),!c||!l)return g.jsx(bt,{text:m,hideTooltip:f});const v=m.replace(c,l);return g.jsx(bt,{text:v,hideTooltip:f})}},Jb("Modified Date")(s,i),e0("Size"),{colId:wt.Author,field:"author",headerName:"Author",width:200,suppressSizeToFit:!0,cellRenderer:h=>h.data.author},{colId:wt.Owner,field:"owner",headerName:"Owner",width:200,suppressSizeToFit:!0,cellRenderer:h=>h.data.owner}],[s,i,o,l,c]);return{columnDefs:p.useMemo(()=>{const h=e?.map(v=>typeof v=="function"?v(s,i,o):v);let f=h??d;h||(f=f.filter(v=>v.colId&&n.includes(v.colId))),r&&(o&&(f=f.slice(0,1)),f.push(a));const m=v=>v.colId===wt.Name;return f.map(v=>{const C={...v,filter:t?v.filter:!1,floatingFilter:t?v.floatingFilter:!1};return m(v)&&!v.suppressKeyboardEvent&&(C.suppressKeyboardEvent=hG),C})},[a,s,i,d,n,t,r,o,e])}}const t0=()=>{const e=p.useContext(jb);if(!e)throw new Error("useFileManagerContext must be used within <FileManagerProvider>");return e},gG=({actionLabels:e,onDuplicate:t,onCopy:s,onMove:i,onDownload:n,onRename:o,onDelete:r,onInfo:a,onUnshare:l,onRemoveAccess:c,sharedWithMeIds:d,sharedByMePaths:u,onManagePermissions:h,onPreview:f,onOpenInNewTab:m,previewExtensions:v,isRenameFileAvailable:C=!0,isDuplicateFolderAvailable:w=!0,forbiddenSymbolsRegExp:b,onGridCreateSiblingFolder:x,onGridCreateChildFolder:y})=>p.useMemo(()=>S=>{const F=[];if(!e)return F;const R=Uc(b)?.test(S.name);e[X.AddSibling]&&S.nodeType===we.FOLDER&&F.push({key:"addSibling",label:e[X.AddSibling],icon:g.jsx(Gb,{width:te.size,height:te.size,className:"text-secondary"}),onClick:()=>x([S])}),e[X.AddChild]&&S.nodeType===we.FOLDER&&!R&&F.push({key:"addChild",label:e[X.AddChild],icon:g.jsx(Bb,{width:te.size,height:te.size,className:"text-secondary"}),onClick:()=>y([S])},{key:"divider",type:No.Divider}),e[X.OpenInNewTab]&&typeof m=="function"&&S.nodeType===we.ITEM&&!R&&F.push({key:X.OpenInNewTab,label:e[X.OpenInNewTab],icon:g.jsx(_.IconExternalLink,{...te,className:"text-secondary"}),onClick:()=>m?.(S)});const E=S.nodeType===we.ITEM||S.nodeType===we.FOLDER&&w;e[X.Duplicate]&&E&&!R&&F.push({key:X.Duplicate,label:e[X.Duplicate],icon:g.jsx(_.IconCopy,{...te,className:"text-secondary"}),onClick:()=>t(S)}),e[X.Copy]&&!R&&F.push({key:X.Copy,label:e[X.Copy],icon:g.jsx(og,{width:te.size,height:te.size,className:"text-secondary"}),onClick:()=>s(S)}),e[X.Move]&&!R&&F.push({key:X.Move,label:e[X.Move],icon:g.jsx(rg,{width:te.size,height:te.size,className:"text-secondary"}),onClick:()=>i(S)}),e[X.Download]&&!R&&F.push({key:X.Download,label:e[X.Download],icon:g.jsx(_.IconDownload,{...te,className:"text-secondary"}),onClick:()=>n(S)}),e[X.ManagePermissions]&&typeof h=="function"&&S.nodeType===we.FOLDER&&!R&&F.push({key:X.ManagePermissions,label:e[X.ManagePermissions],icon:g.jsx(_.IconExternalLink,{...te,className:"text-secondary"}),onClick:()=>h?.(S.path)});const D=S.name.split("."),T=D.length>1?D[D.length-1]:"",P=T&&v?.includes(`.${T}`);e[X.Preview]&&typeof f=="function"&&S.nodeType===we.ITEM&&P&&!R&&F.push({key:X.Preview,label:e[X.Preview],icon:g.jsx(_.IconEye,{...te,className:"text-secondary"}),onClick:()=>f?.(S.path)});const k=!S.permissions||S.permissions.includes(Bn.WRITE);e[X.Delete]&&k&&F.push({key:X.Delete,label:e[X.Delete],icon:g.jsx(_.IconTrashX,{...te,className:"text-secondary"}),onClick:()=>r(S,S.parentPath??"")});const I=S.nodeType===we.FOLDER||S.nodeType===we.ITEM&&C;return e[X.Rename]&&I&&k&&F.push({key:X.Rename,label:e[X.Rename],icon:g.jsx(_.IconPencilMinus,{...te,className:"text-secondary"}),onClick:()=>o(S.path)}),e[X.Info]&&S.nodeType===we.ITEM&&!R&&F.push({key:X.Info,label:e[X.Info],icon:g.jsx(_.IconInfoCircle,{...te,className:"text-secondary"}),onClick:()=>a(S)}),e[X.Unshare]&&d?.includes(S.path)&&F.push({key:X.Unshare,label:e[X.Unshare],icon:g.jsx(ag,{width:te.size,height:te.size,className:"text-secondary"}),onClick:()=>l(S)}),e[X.RemoveAccess]&&u?.has(S.path)&&c&&F.push({key:X.RemoveAccess,label:e[X.RemoveAccess],icon:g.jsx(_.IconUserX,{size:te.size,className:"text-secondary"}),onClick:()=>c(S)}),F},[e,t,s,i,n,r,o,a,l,c,d,u,h,f,m,v,C,w,b,y,x]),fG=({onGridAddSibling:e,onGridAddChild:t,onTreeAddSibling:s,onTreeAddChild:i})=>{const[n,o]=p.useState(nn.Grid),r=p.useCallback(d=>{e?.(d),o(nn.Grid)},[e]),a=p.useCallback(d=>{s?.(d),o(nn.Tree)},[s]),l=p.useCallback(d=>{t?.(d),o(nn.Grid)},[t]),c=p.useCallback(d=>{i?.(d),o(nn.Tree)},[i]);return{createFolderTriggerView:n,onGridCreateSiblingFolder:r,onTreeCreateSiblingFolder:a,onGridCreateChildFolder:l,onTreeCreateChildFolder:c}},s0=e=>g.jsx(qb,{...e,children:g.jsx(mG,{})}),mG=()=>{const{managerLabel:e,className:t,items:s,rootItem:i,filesLoading:n,treeOptions:o,showNavigationPanel:r,navigationPanelOptions:a,gridOptions:l,toolbarOptions:c,bulkActionsToolbarOptions:d,deleteConfirmationOptions:u,destinationFolderPopupOptions:h,conflictResolutionPopupOptions:f,compactViewWidthBreakpoint:m=eB,customBreakpointRef:v,sharedByMePaths:C,allowedFileTypes:w,maxSelectableFileSize:b,areHiddenFilesVisible:x,toggleHiddenFilesVisibility:y,isTreeCollapsed:S,toggleTreeCollapse:F,currentPath:R,gridRows:E,selectedPaths:D,selectedFiles:T,clearSelection:P,setSelectedPaths:k,effectiveSearchValue:I,handleBreadcrumbItemClick:H,handleSearchChange:M,handleTreeItemClick:G,handleTableRowClick:V,handleSelectionClick:B,onGridApiChange:K,handleOpenDestinationFolderPopup:O,handleCloseDestinationFolderPopup:A,openDestinationFolderPopup:W,destinationFolderMode:Y,handleSetCopiedFiles:ie,handleSetMovedFiles:be,handleDuplicate:Z,handleCopyTo:me,handleMoveTo:Ie,handleGridAddSibling:ne,handleGridAddChild:ce,handleTreeAddSibling:L,handleTreeAddChild:ee,handleDownloadFiles:ye,openDeleteConfirmation:z,closeDeleteConfirmation:le,confirmDelete:ve,deleteConfirmationOpen:Ee,itemsToDelete:oe,renamedPath:xe,renamedItem:Ae,onRename:Pe,onRenameSave:Ce,onRenameCancel:Ve,onRenameValidate:je,createdFolderPath:Qe,forbiddenSymbolsRegExp:Ze,forbiddenSymbolsTooltip:yt,getDisplayName:We,isDragging:U,isDraggingOverWindow:Ne,handleDragEnter:vs,handleDragLeave:qo,handleDragOver:Gn,handleDrop:fa,onUploadFiles:Ko,onValidateUpload:Kc,maxFileSize:Yc,newActions:ma,isNewButtonVisible:va,isNewButtonDisabled:Ca,newFolderTempId:wa,cancelFolderCreation:di,saveFolderCreation:Vn,validateFolderName:_s,startFolderCreation:ft,conflictingFiles:Yo,conflictResolutionOpen:ba,handleConflictReplace:Us,handleConflictDuplicate:$s,handleConflictCancel:Ui,handleConflictDecideForEach:xa,uploadConflictingFiles:ui,uploadConflictResolutionOpen:Zc,handleUploadConflictReplace:Xc,handleUploadConflictDuplicate:Qc,handleUploadConflictCancel:Jc,handleUploadConflictDecideForEach:ct,openMetadataPopup:$i,fileMetadataPopupOptions:Dt,isMetadataPopupOpen:Zo,selectedFileForMetadata:Xo,closeMetadataPopup:Qo,onUnshareFiles:zn,onRemoveFilesAccess:jn,actionsRef:ed,searchInProgress:Wn,isSearchMode:qs,emptyStateIcon:ya,emptyStateTitle:Sa="You don't have any files",emptyStateDescription:Ra="Upload or drag and drop files",sharedWithMeIds:_n,onFolderPopupPathChange:td,onManagePermissions:Un,onPreview:sd,onOpenInNewTab:id,previewExtensions:nd,isRenameFileAvailable:od,isDuplicateFolderAvailable:rd,getDisabledTooltip:qi,fileTooLargeTooltip:Fa,unsupportedFileTypeTooltip:$n,gridClassName:ad,nonClickableTableColumns:Jo,hideSearchPathItemName:tt,showHiddenFileSwitcherInDestinationPopup:Ea,showCreateFolderButtonInDestinationPopup:dt,newFolderDefaultName:Lt}=t0(),{width:ns=YH,header:Da=ZH,containerClassName:Pa=$H,additionalButtons:Ta,...ka}=o??{},[qn,Kn]=p.useState(ns),{renameTriggerView:Yn,onGridRename:ld,onTreeRename:Ia}=iB({onRename:Pe}),{createFolderTriggerView:Ma,onGridCreateSiblingFolder:cd,onTreeCreateSiblingFolder:Aa,onGridCreateChildFolder:dd,onTreeCreateChildFolder:La}=fG({onGridAddSibling:ne,onGridAddChild:ce,onTreeAddSibling:L,onTreeAddChild:ee}),er=p.useRef(null),ud=Q=>{er.current===null&&(er.current=requestAnimationFrame(()=>{Kn(Q),er.current=null}))},{columnDefs:hd,filterable:pd=!0,dateLocale:gd,dateOptions:fd,selectionMode:Oa,wrapCustomCellRenderers:Na,visibleColumns:Ha=tB,allowDisabledContextMenu:Zn=!1,...hi}=l??{},{containerRef:md,isBelowBreakpoint:os}=nB(m,v),vd=p.useMemo(()=>qs?[wt.Name,wt.Path,wt.Actions]:Ha,[qs,Ha]),tr=p.useCallback((Q,Je,Xe)=>wB(Q,Je,Xe,$n,Fa),[Fa,$n]),Xn=p.useCallback((Q,Je,Xe)=>!!qi?.(Q)||!!tr(Q,Je,Xe),[tr,qi]),pi=p.useMemo(()=>{const Q=new Set;for(const Je of E)Xn(Je,w,b)&&Q.add(Je.path);return Q},[w,b,E,Xn]),Ba=p.useCallback(Q=>{const Je=[],Xe=[],Kt=!Q.parentPath,gi=Ze?.test(Q.name);return o?.actionLabels&&(o.actionLabels[X.AddSibling]&&Q.nodeType===we.FOLDER&&!Kt&&Je.push({key:"addSibling",label:o.actionLabels[X.AddSibling],icon:g.jsx(Gb,{width:te.size,height:te.size,className:"text-secondary"}),onClick:()=>Aa([Q])}),o.actionLabels[X.AddChild]&&Q.nodeType===we.FOLDER&&!gi&&Je.push({key:"addChild",label:o.actionLabels[X.AddChild],icon:g.jsx(Bb,{width:te.size,height:te.size,className:"text-secondary"}),onClick:()=>La([Q])}),o.actionLabels[X.Duplicate]&&!Kt&&!gi&&Xe.push({key:"duplicate",label:o.actionLabels[X.Duplicate],icon:g.jsx(_.IconCopy,{...te,className:"text-secondary"}),onClick:()=>Z([Q])}),o.actionLabels[X.Copy]&&!Kt&&!gi&&Xe.push({key:Ct.Copy,label:o.actionLabels[X.Copy],icon:g.jsx(og,{width:te.size,height:te.size,className:"text-secondary"}),onClick:()=>{ie([Q]),O(Ct.Copy)}}),o.actionLabels[X.Move]&&!Kt&&!gi&&Xe.push({key:Ct.Move,label:o.actionLabels[X.Move],icon:g.jsx(rg,{width:te.size,height:te.size,className:"text-secondary"}),onClick:()=>{be([Q]),O(Ct.Move)}}),o.actionLabels[X.Download]&&!Kt&&!gi&&Xe.push({key:"download",label:o.actionLabels[X.Download],icon:g.jsx(_.IconDownload,{...te,className:"text-secondary"}),onClick:()=>ye([Q])}),o.actionLabels[X.ManagePermissions]&&typeof Un=="function"&&Q.nodeType===we.FOLDER&&!Kt&&Xe.push({key:X.ManagePermissions,label:o.actionLabels[X.ManagePermissions],icon:g.jsx(_.IconExternalLink,{...te,className:"text-secondary"}),onClick:()=>Un?.(Q.path)}),o.actionLabels[X.Delete]&&Q.permissions?.includes(Bn.WRITE)&&!Kt&&Xe.push({key:"delete",label:o.actionLabels[X.Delete],icon:g.jsx(_.IconTrashX,{...te,className:"text-secondary"}),onClick:()=>z([Q],Q.parentPath??"")}),o.actionLabels[X.Rename]&&!Kt&&Xe.push({key:"rename",label:o.actionLabels[X.Rename],icon:g.jsx(_.IconPencilMinus,{...te,className:"text-secondary"}),onClick:()=>Ia(Q.path)}),o.actionLabels[X.Unshare]&&_n?.includes(Q.path)&&!Kt&&Xe.push({key:"unshare",label:o.actionLabels[X.Unshare],icon:g.jsx(ag,{width:te.size,height:te.size,className:"text-secondary"}),onClick:()=>zn?.([Q])}),o.actionLabels[X.RemoveAccess]&&C?.has(Q.path)&&!Kt&&Xe.push({key:X.RemoveAccess,label:o.actionLabels[X.RemoveAccess],icon:g.jsx(_.IconUserX,{size:te.size,className:"text-secondary"}),onClick:()=>jn?.([Q])})),Je.length?Xe.length===0?Je:Je.length===0?Xe:[...Je,{key:"divider",type:No.Divider},...Xe]:Xe},[o?.actionLabels,Ze,Un,Z,ie,O,be,ye,Ia,zn,jn,_n,C,z,La,Aa]),sr=p.useMemo(()=>{const Q=new Set;return T.forEach((Je,Xe)=>Q.add(Xe)),Q},[T]),Ga=p.useCallback((Q,Je)=>{k(Q),B?.(Je)},[B,k]),ir=dG({selectedFiles:T,actionLabels:d?.actionLabels,onDuplicate:Z,onCopy:Q=>{ie(Q),O(Ct.Copy)},onMove:Q=>{be(Q),O(Ct.Move)},onDownload:ye,onDelete:z,onUnshare:zn,onRemoveAccess:jn,getCurrentFolderPath:()=>R??"/",sharedWithMeIds:_n,sharedByMePaths:C,onClearSelection:P,forbiddenSymbolsRegExp:Ze}),Va=p.useCallback(Q=>{c?.onTabChange?.(Q),di()},[c,di]),Cd=p.useCallback(()=>c&&D.size===0?g.jsxs("div",{className:$m,role:"toolbar","aria-label":"File Manager Toolbar",children:[e,g.jsx(eG,{...c,onTabChange:Va,areHiddenFilesVisible:x,onToggleHiddenFiles:y,isNewButtonVisible:va,isNewButtonDisabled:Ca,newButtonDropdownItems:ma})]}):D.size>0&&d?g.jsx("div",{className:$m,role:"toolbar","aria-label":"File Manager Toolbar",children:g.jsx(KB,{...d,selectedCount:D.size,onClearSelection:P,actions:ir})}):null,[Va,d,D,P,ir,x,y,c,va,Ca,ma,e]);p.useImperativeHandle(ed,()=>({createFolder:ft}),[ft]);const wd=p.useCallback(()=>os?null:g.jsx("aside",{role:"region","aria-label":"File Manager Tree Navigation",className:"min-h-0 min-w-0 h-full flex-none",children:g.jsx(jv,{defaultWidth:qn,width:qn,onResizeStop:Kn,onResize:ud,minWidth:QH,maxWidth:JH,enabled:!S,children:g.jsx(Tv,{width:qn,title:Da,containerClassName:Pa,titleClassName:"dial-body-text text-primary",additionalButtons:Ta,isOpened:!S,onToggle:F,children:g.jsx(cG,{...ka,items:s,rootItemPath:i?.path,rootItemLabel:i?.label,selectedPath:R,sharedByMePaths:C,forbiddenSymbolsRegExp:Ze,forbiddenSymbolsTooltip:yt,onItemClick:G,areHiddenFilesVisible:x,getContextMenuItems:Ba,renamedPath:Yn===Eo.Tree?xe:void 0,onRenameSave:Ce,onRenameCancel:Ve,onRenameValidate:je,createdFolderPath:Ma===nn.Tree?Qe:null,onCreateFolderCancel:di,onCreateFolderSave:Vn,newFolderDefaultName:Lt})})})}),[os,qn,S,Da,Pa,Ta,F,ka,s,i?.path,i?.label,R,C,Ze,yt,G,x,Ba,Yn,Ma,xe,Ce,Ve,je,Qe,di,Vn,Lt]),za=gG({actionLabels:l?.actionLabels,onDuplicate:Q=>Z([Q]),onCopy:Q=>{ie([Q]),O(Ct.Copy)},onMove:Q=>{be([Q]),O(Ct.Move)},onDownload:Q=>ye([Q]),onRename:ld,onDelete:(Q,Je)=>z([Q],Je),onInfo:Q=>$i(Q),onUnshare:Q=>zn?.([Q]),onRemoveAccess:Q=>jn?.([Q]),sharedWithMeIds:_n,sharedByMePaths:C,onManagePermissions:Q=>Un?.(Q),onPreview:Q=>sd?.(Q),onOpenInNewTab:Q=>id?.(Q),previewExtensions:nd,isRenameFileAvailable:od,isDuplicateFolderAvailable:rd,forbiddenSymbolsRegExp:Ze,onGridCreateSiblingFolder:cd,onGridCreateChildFolder:dd}),nr=p.useCallback(Q=>{const Je=si(s,Q.path);return Je?za(Je):[]},[s,za]),bd=p.useCallback((Q,Je,Xe)=>Zn?!1:Xn(Q,Je,Xe),[Zn,Xn]),{actionsColumnDef:xd}=sB({getContextMenuItems:nr,isRowDisabled:bd,allowedFileTypes:w,buttonClassName:os?"":KH}),{columnDefs:or}=pG({userColumnDefs:hd,filterable:pd,dateLocale:gd,dateOptions:fd,effectiveVisibleColumns:vd,isCompactView:os,hasActions:!!l?.actionLabels,actionsColumnDef:xd,rootItemLabel:i?.label,rootItemPath:i?.path}),Ki=p.useCallback(Q=>{Q.colDef.colId==="ag-Grid-SelectionColumn"||Q.colDef.colId===wt.Actions||xe&&Q.data?.path===xe||Q.data?.isTemporary||Jo&&Jo.includes(Q.colDef.colId)||Q.data&&V(Q.data)},[xe,V,Jo]),ja=p.useCallback(()=>g.jsx(ra,{title:Sa,description:Ra,descriptionClassName:"text-sm",containerClassName:"gap-3 size-full bg-layer-2 border rounded-[4px] border-primary",titleClassName:"mt-2 !text-lg",icon:ya||g.jsx(_.IconFileDescription,{size:100,stroke:.5,className:"text-secondary"})}),[Ra,ya,Sa]),Wa=p.useMemo(()=>Q=>Q.path,[]),_a=p.useMemo(()=>re("min-h-[248px] overflow-auto md:min-h-[266px]",U?"border border-dashed border-accent-primary":"",Ne&&!U?"border border-dashed border-primary":""),[U,Ne]),Ua=p.useMemo(()=>({...hi.additionalGridOptions,onCellClicked:Ki,headerHeight:Km,rowHeight:Km,rowClass:"group/grid-row",defaultColDef:{...hi.additionalGridOptions?.defaultColDef,floatingFilter:a?.searchable?!1:hi.additionalGridOptions?.defaultColDef?.floatingFilter},context:{cancelFolderCreation:di,saveFolderCreation:Vn,getDisplayName:We,onRenameCancel:Ve,onRenameSave:Ce,onRenameValidate:je,renameTriggerView:Yn,validateFolderName:_s,renamedItem:Ae,renamedPath:xe,createdFolderPath:Qe,newFolderTempId:wa,sharedByMePaths:C,selectedPaths:D,disabledRowIds:pi,forbiddenSymbolsRegExp:Ze,forbiddenSymbolsTooltip:yt,hideSearchPathItemName:tt,newFolderDefaultName:Lt,filesLoading:n}}),[hi.additionalGridOptions,Ki,a?.searchable,di,Vn,We,Ve,Ce,je,Yn,_s,Ae,xe,Qe,wa,C,D,pi,Ze,yt,tt,Lt,n]),Qn=p.useMemo(()=>E.length===0&&!qs&&!n?ja():g.jsx(tg,{columnDefs:or,rowData:E,getRowId:Wa,loading:n||Wn,getContextMenuItems:nr,withoutHeaderBorders:os,onGridApiChange:K,className:_a,...hi,selectionMode:Oa,wrapCustomCellRenderers:Na,additionalGridOptions:Ua,selectedRowIds:sr,onSelectionChange:Ga,wrapperBorder:!U&&!Ne,disabledRowIds:pi,allowDisabledContextMenu:Zn}),[E,qs,n,ja,or,Wa,Wn,nr,os,K,_a,hi,Oa,Na,Ua,sr,Ga,U,Ne,pi,Zn]);return g.jsx("section",{ref:md,className:"size-full",children:g.jsxs("div",{className:$(WH,{"gap-3 pt-4":d&&D.size>0,"gap-4 p-3 pt-4":os,"gap-2 pt-2":os&&d&&D.size>0},t),children:[Cd(),g.jsxs("div",{className:$(_H,ad),children:[wd(),g.jsxs("div",{className:$(UH,{"gap-3":os}),children:[r&&g.jsx(JB,{...a??{},makeHref:Q=>Q.join("/"),path:R,onItemClick:H,rootItemPath:i?.path,rootItemLabel:i?.label,value:I,onSearchChange:M,isCompactView:os,labelClassName:"dial-tiny-text"}),g.jsxs("section",{role:"region","aria-label":"File Manager Grid View",className:$(qH,"relative"),onDragEnter:vs,onDragLeave:qo,onDragOver:Gn,onDrop:fa,children:[Qn,g.jsx(_B,{disabledGridRowIds:pi,gridRows:E,getDisabledTooltip:qi,getRowDisabledTooltip:tr,allowedFileTypes:w,maxSelectableFileSize:b})]})]})]}),g.jsx(YB,{...u,open:Ee,itemsToDelete:oe,onClose:le,onConfirm:ve}),g.jsx(Kb,{...h,open:W,onClose:A,onConfirm:()=>{const Q=h?.destinationFolderPath??"/";Y===Ct.Copy?me(Q):Ie(Q),A()},mode:Y,items:s,rootItem:i,gridOptions:{columnDefs:or.filter(Q=>Q.colId!==wt.Actions),loading:n},onUploadFiles:Ko,onValidateUpload:Kc,maxFileSize:Yc,path:h?.destinationFolderPath??h?.sourceFolder??R,onPathChange:Q=>{h?.setDestinationFolderPath?.(Q)},sourceFolder:h?.sourceFolder??R,treeOptions:{header:o?.header},onFolderPopupPathChange:td,showHiddenFileSwitcher:Ea,showCreateFolderButton:dt,hideSearchPathItemName:tt}),g.jsx(Ym,{...f,open:ba,onClose:Ui,onReplace:Us,onDuplicate:$s,onDecideForEach:xa,conflictingFiles:Yo}),g.jsx(Ym,{...f,open:Zc,onClose:Jc,onReplace:Xc,onDuplicate:Qc,onDecideForEach:ct,conflictingFiles:ui}),g.jsx(iG,{open:Zo,onClose:Qo,fileMetadata:Dt?.fileMetadata??Xo,loading:Dt?.loading,header:Dt?.header,nameLabel:Dt?.nameLabel,pathLabel:Dt?.pathLabel,modifiedDateLabel:Dt?.modifiedDateLabel,sizeLabel:Dt?.sizeLabel,authorLabel:Dt?.authorLabel,dateLocale:l?.dateLocale,dateOptions:l?.dateOptions})]})})},vG=(e,t=go.MyFiles)=>{const s=Object.values(go).includes(t)?t:go.MyFiles,[i,n]=p.useState(s),o=a=>{n(a)},r=p.useMemo(()=>{if(e)return Object.values(go).map(a=>({id:a,label:e?.[a]||a.replace("_"," ")}))},[e]);return{activeTab:i,handleTabChange:o,tabs:r}},CG="application/octet-stream";function wG(e,t){if(!e||e.length===0)return[];const s=e.find(l=>l.parentPath===""&&l.nodeType==="FOLDER");if(!s)return[];const i=s.path||s.url||"",n=Eu(i,!0),o=e.filter(l=>l!==s).map(l=>{const c=l.path||l.url||"",d=bG(l.nodeType),u=d===we.FOLDER,h=Eu(c,u);let f;return l.parentPath===null||l.parentPath===void 0?f=n:l.parentPath===""?f="":f=Eu(l.parentPath,!0),{...l,originalPath:c,path:h,parentPath:f,nodeType:d}}),r=new Map;o.forEach(l=>{const c={...l,id:l.originalPath,name:l.name,path:l.path,parentPath:l.parentPath,nodeType:l.nodeType,resourceType:xG(l.resourceType),folderId:t,updatedAt:l.updatedAt?new Date(l.updatedAt).toISOString():new Date().toISOString(),items:l.nodeType===we.FOLDER?[]:void 0};l.nodeType===we.ITEM&&(c.extension=yG(l.name),c.contentType=l.contentType||CG,c.contentLength=l.contentLength||0),r.set(l.path,c)});const a=[];return r.forEach(l=>{if(l.parentPath===n)a.push(l);else{const c=l.path.lastIndexOf(l.name||""),d=l.path.slice(0,c),u=r.get(d);u&&u.nodeType===we.FOLDER?(u.items=u.items||[],u.items.push(l)):a.push(l)}}),a}function Eu(e,t){try{let s=decodeURIComponent(e);return t?s.endsWith("/")||(s+="/"):s.endsWith("/")&&(s=s.slice(0,-1)),s}catch{return t&&!e.endsWith("/")?e+"/":!t&&e.endsWith("/")?e.slice(0,-1):e}}function bG(e){return e.toUpperCase()==="FOLDER"?we.FOLDER:we.ITEM}function xG(e){if(!e)return;const t=e.toUpperCase();return Object.values(lg).find(i=>i.toUpperCase()===t)}function yG(e){const t=e.split(".");return t.length>1?t[t.length-1]:""}function SG(e,t="Prompts",s="prompts/public/",i="root"){const n=wG(e,i);return[{id:i,name:t,path:s,parentPath:"",nodeType:we.FOLDER,folderId:i,items:n}]}var Br=(e=>(e.Sections="sections",e.Flat="flat",e.FlatSections="flat-sections",e))(Br||{}),sa=(e=>(e.Select="select",e.Radio="radio",e))(sa||{}),$c=(e=>(e.Row="row",e.Column="column",e))($c||{}),_e=(e=>(e.String="string",e.Number="number",e.Integer="integer",e.Boolean="boolean",e.Object="object",e.Array="array",e.Null="null",e))(_e||{});const RG={noItemSchema:"No item schema defined.",noItemsYet:"No items yet. Add one below.",addItem:"Add Item",selectTypeToAdd:"Select type to add…",noConfigurableProperties:"No configurable properties.",noFieldsYet:"No fields yet. Add one below.",keyColumnHeader:"Key",valueColumnHeader:"Value",addField:"Add Field",keyInputPlaceholder:"Enter key",stringInputPlaceholder:"Enter a value",integerInputPlaceholder:"Enter a whole number",numberInputPlaceholder:"Enter a number",enumSelectPlaceholder:"Select an option",selectTypePlaceholder:"Select type",removeItemAriaLabel:"Remove item",removeFieldAriaLabel:"Remove field"},i0=p.createContext(null);function _i(){const e=p.useContext(i0);if(!e)throw new Error("useSchemaContext must be used inside DialSchemaRenderer");return e}function Be(e,t,s=0){if(!e.$ref||s>10)return e;const i=e.$ref.replace(/^#\//,"").split("/");let n=t;for(const c of i)n=n?.[c];if(!n||typeof n!="object")return e;const{$ref:o,...r}=e,a=n;return{...a.$ref?Be(a,t,s+1):a,...r}}function qc(e){return e==null||e===""}function $o(e){return e.type===_e.Object||e.properties!=null&&e.oneOf==null&&e.anyOf==null&&e.type==null}function pg(e){return e.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/\b\w/g,t=>t.toUpperCase())}function n0(e,t){return e.type===_e.Null?"null":e.$ref?Be(e,t).title??e.$ref.split("/").pop()??"Option":e.title?e.title:e.type?Array.isArray(e.type)?e.type.join(" | "):e.type:e.discriminator?Object.keys(e.discriminator.mapping).join(" | "):e.const!=null?String(e.const):e.oneOf?"One of options":"Option"}function Mn(e,t,s=0){if(s>15)return;const i=Be(e,t);if("default"in i)return i.default;if($o(i)){if(i.properties){const n={};let o=!1;for(const[r,a]of Object.entries(i.properties)){const l=Mn(a,t,s+1);l!==void 0&&(n[r]=l,o=!0)}return o?n:void 0}if(i.additionalProperties!=null&&i.additionalProperties!==!1)return{}}}function ln(e,t,s,i="",n=0){if(n>15)return[];const o=[],r=Be(t,s);if(r.anyOf){const c=r.anyOf.filter(d=>d.type!==_e.Null);return e!=null&&c.length===1?ln(e,c[0],s,i,n+1):o}if(r.oneOf&&r.discriminator){const c=r.discriminator.propertyName,d=e?.[c];if(d&&r.discriminator.mapping[d]){const u={$ref:r.discriminator.mapping[d]},h=Be(u,s);return ln(e,h,s,i,n+1)}return o}if(r.type===_e.Array||!r.type&&Array.isArray(e)){if(Array.isArray(e)&&r.items)for(let c=0;c<e.length;c++){const d=ln(e[c],r.items,s,`${i}[${c}]`,n+1);o.push(...d)}return o}if(!$o(r))return o;const a=r.required??[],l=e;for(const c of a){const d=r.properties?.[c];if(d&&Be(d,s).isHidden)continue;const u=i?`${i}.${c}`:c,h=l?.[c];if(qc(h)){const f=d?.title??pg(c);o.push({path:u,message:`${f} is required`})}}if(l&&r.properties)for(const[c,d]of Object.entries(r.properties)){if(Be(d,s).isHidden)continue;const u=i?`${i}.${c}`:c,h=l[c];if(h!=null){const f=ln(h,d,s,u,n+1);o.push(...f)}}return o}function o0(e,t,s){const i=Be(t,s);if(Array.isArray(e))return`${e.length} item${e.length!==1?"s":""}`;if($o(i)&&i.properties){const n=Object.entries(i.properties).filter(([,l])=>!Be(l,s).isHidden),o=n.length,r=e;return`${n.filter(([l])=>{const c=r?.[l];return c!=null&&c!==""}).length}/${o} fields`}return""}function FG(e,t,s){if(e==null){const i=t.findIndex(n=>n.type===_e.Null);return i>=0?i:0}if(Array.isArray(e)){const i=t.findIndex(n=>Be(n,s).type===_e.Array);return i>=0?i:0}if(typeof e=="boolean"){const i=t.findIndex(n=>Be(n,s).type===_e.Boolean);return i>=0?i:0}if(typeof e=="number"){const i=t.findIndex(n=>{const o=Be(n,s);return o.type===_e.Number||o.type===_e.Integer});return i>=0?i:0}if(typeof e=="string"){const i=t.findIndex(n=>Be(n,s).type===_e.String);return i>=0?i:0}if(typeof e=="object"){const i=e;for(let n=0;n<t.length;n++){const o=Be(t[n],s);if(o.discriminator&&o.discriminator.propertyName in i)return n}for(let n=0;n<t.length;n++){const o=Be(t[n],s);if($o(o)||o.oneOf)return n}return 0}return 0}function EG(e,t,s){if(t&&typeof e=="object"&&e!==null){const i=e[t];if(i)return`Item ${s+1}: ${i}`}if(typeof e=="object"&&e!==null){const i=e,n=i.name??i.title??i.id;if(n)return`Item ${s+1}: ${n}`}return`Item ${s+1}`}function DG(e){switch(Array.isArray(e.type)?e.type[0]:e.type){case _e.String:return"";case _e.Boolean:return!1;case _e.Array:return[];case _e.Integer:case _e.Number:return;default:return{}}}const gg=({title:e,description:t,summary:s,errorCount:i=0,level:n=0,children:o,onRemove:r,defaultExpanded:a=!0,removeItemAriaLabel:l="Remove item"})=>{const[c,d]=p.useState(a),u=n===0,h="rounded border border-secondary",f=$("flex items-center gap-2 cursor-pointer select-none transition-colors",u?"px-4 py-3 bg-layer-3 hover:bg-layer-4":"px-3 py-2 bg-layer-4 hover:bg-layer-3",c?"rounded-t":"rounded"),m=$("border-t border-secondary",u?"p-4":"p-3");return g.jsxs("div",{className:h,children:[g.jsxs("div",{className:f,onClick:()=>d(v=>!v),role:"button","aria-expanded":c,children:[g.jsx("span",{className:"shrink-0 text-secondary",children:c?g.jsx(_.IconChevronDown,{size:16,stroke:2}):g.jsx(_.IconChevronRight,{size:16,stroke:2})}),g.jsx("span",{className:$("flex-1 truncate",u?"dial-small-semi-text text-primary":"dial-small-text text-primary"),children:e}),t&&g.jsx(Rv,{caption:t}),s&&g.jsx("span",{className:"dial-tiny-text text-secondary whitespace-nowrap ml-2",children:s}),i>0?g.jsxs("span",{className:"flex items-center gap-1 dial-tiny-text text-error whitespace-nowrap",children:[g.jsx(Oe,{icon:g.jsx(_.IconAlertTriangle,{size:13,stroke:2})}),i," error",i>1?"s":""]}):g.jsx(Oe,{icon:g.jsx(_.IconCheck,{size:13,stroke:2}),className:"text-success shrink-0"}),r&&g.jsx(jc,{size:et.Small,onClick:v=>{v.stopPropagation(),r()},"aria-label":l,className:"ml-1 shrink-0 p-0.5"})]}),c&&g.jsx("div",{className:m,children:o})]})},r0=({schema:e,value:t,onChange:s,path:i,level:n=0,required:o,label:r})=>{const{rootSchema:a,defaultExpanded:l=!0,touchedPaths:c=new Set,skipUntouched:d=!1}=_i(),u=Be(e,a),h=$o(u),f=u.type===_e.Array;if(h||f){const C=o0(t,u,a),w=ln(t,u,a,i.join(".")),b=i.join("."),x=b+".",y=!d||c.has(b)||[...c].some(S=>S.startsWith(x));return g.jsx(gg,{title:r??u.title??i[i.length-1]??"Section",description:u.description,level:n,summary:C,errorCount:y?w.length:0,defaultExpanded:l,children:g.jsx(Ni,{schema:u,value:t,onChange:s,path:i,level:n+1,required:o})})}const v=(!d||c.has(i.join(".")))&&o&&qc(t)?`${r??"Field"} is required`:void 0;return g.jsx(mc,{label:r,required:o,description:u.description,error:v,children:g.jsx(Ni,{schema:u,value:t,onChange:s,path:i,level:n,required:o,suppressInlineError:!0})})},kl=({schema:e,value:t,onChange:s,path:i,level:n})=>{const{rootSchema:o,texts:r}=_i(),a=Be(e,o),l=Object.entries(a.properties??{}).filter(([,u])=>!Be(u,o).isHidden),c=a.required??[],d=t??{};return l.length===0?g.jsx("p",{className:"dial-tiny-text text-secondary italic",children:r.noConfigurableProperties}):g.jsx("div",{className:"flex flex-col gap-4",children:l.map(([u,h])=>{const m=Be(h,o).title??h.title??pg(u),v=c.includes(u);return g.jsx(r0,{schema:h,value:d[u],onChange:C=>s({...d,[u]:C}),path:[...i,u],level:n,required:v,label:m},u)})})},PG=({schema:e,value:t,onChange:s,path:i,level:n})=>{const{rootSchema:o,texts:r,readonly:a=!1,defaultExpanded:l=!0}=_i(),c=Array.isArray(t)?t:[],d=e.items,[u,h]=p.useState(void 0);if(!d)return g.jsx("p",{className:"dial-tiny-text text-secondary italic",children:r.noItemSchema});const f=p.useMemo(()=>Be(d,o),[d,o]),m=p.useMemo(()=>f.discriminator,[f]),v=p.useMemo(()=>m?.propertyName,[m]),C=p.useMemo(()=>m?Object.keys(m.mapping).map(y=>({value:y,label:y})):[],[m]),w=()=>{const y=u??C[0]?.value;let S;if(m&&y){const F=Be({$ref:m.mapping[y]},o);S={...Mn(F,o)??{},[m.propertyName]:y}}else S=Mn(f,o)??DG(f);s([...c,S])},b=y=>{s(c.filter((S,F)=>F!==y))},x=(y,S)=>{s(c.map((F,R)=>R===y?S:F))};return g.jsxs("div",{className:"flex flex-col gap-3",children:[c.length===0&&g.jsx("p",{className:"dial-tiny-text text-secondary italic",children:r.noItemsYet}),c.map((y,S)=>{const F=EG(y,v,S),R=o0(y,f,o),E=ln(y,f,o,`${i.join(".")}[${S}]`);return g.jsx(gg,{title:F,level:n,summary:R,errorCount:E.length,onRemove:a?void 0:()=>b(S),defaultExpanded:l,removeItemAriaLabel:r.removeItemAriaLabel,children:g.jsx(Ni,{schema:d,value:y,onChange:D=>x(S,D),path:[...i,String(S)],level:n+1})},S)}),!a&&g.jsxs("div",{className:"flex items-center gap-2 pt-1",children:[C.length>0&&g.jsx("div",{className:"flex-1 max-w-[280px]",children:g.jsx(In,{options:C,value:u??C[0]?.value,placeholder:r.selectTypeToAdd,onChange:y=>{const S=typeof y=="string"?y:y[0];h(S)}})}),g.jsx(ig,{label:r.addItem,iconBefore:g.jsx(_.IconPlus,{size:16,stroke:2}),onClick:w})]})]})},TG=({schema:e,value:t,onChange:s,path:i,level:n})=>{const{rootSchema:o,texts:r,readonly:a=!1}=_i(),l=p.useId(),c=e.discriminator;if(c){const C=c.propertyName,w=c.mapping,b=Object.keys(w).map(F=>({value:F,label:F})),x=typeof t=="object"&&t!==null?t[C]:void 0,y=x?Be({$ref:w[x]},o):void 0,S=F=>{const R=Be({$ref:w[F]},o),E=Mn(R,o)??{};s({...E,[C]:F})};if(e.discriminatorDisplay===sa.Radio){const F=e.discriminatorOrientation===$c.Row,R=x?(()=>{const E=Be({$ref:w[x]},o),{[C]:D,...T}=E.properties??{};return{...E,properties:T}})():void 0;return F?g.jsxs("div",{className:"flex flex-col gap-3",children:[g.jsx("div",{role:"radiogroup",className:"flex flex-row flex-wrap gap-4",children:Object.keys(w).map(E=>{const D=Be({$ref:w[E]},o);return g.jsx(cn,{name:l,value:E,inputId:`${l}-${E}`,label:D.title??E,checked:x===E,disabled:a,onChange:()=>S(E)},E)})}),R&&g.jsx(kl,{schema:R,value:t,onChange:s,path:i,level:n})]}):g.jsx("div",{role:"radiogroup",className:"flex flex-col gap-2",children:Object.keys(w).map(E=>{const D=Be({$ref:w[E]},o),T=x===E,{[C]:P,...k}=D.properties??{},I={...D,properties:k};return g.jsxs("div",{className:"flex flex-col",children:[g.jsx(cn,{name:l,value:E,inputId:`${l}-${E}`,label:D.title??E,checked:T,disabled:a,onChange:()=>S(E)}),T&&g.jsx("div",{className:"ml-6 mt-2",children:g.jsx(kl,{schema:I,value:t,onChange:s,path:i,level:n})})]},E)})})}return g.jsxs("div",{className:"flex flex-col gap-3",children:[g.jsx("div",{className:"flex-1 max-w-[280px]",children:g.jsx(In,{options:b,value:x,placeholder:r.selectTypePlaceholder,disabled:a,onChange:F=>{const R=typeof F=="string"?F:F[0];R&&S(R)}})}),y&&g.jsx("div",{className:"pl-3",children:g.jsx(kl,{schema:y,value:t,onChange:s,path:i,level:n})})]})}const d=e.oneOf??[],h=(()=>{if(t==null)return 0;if(typeof t=="object"&&!Array.isArray(t)){for(let C=0;C<d.length;C++)if(Be(d[C],o).required?.every(b=>b in t))return C}return 0})(),f=C=>{const w=Be(d[C],o),b=Mn(w,o);s(b??null)},m=d[h];if(e.discriminatorDisplay===sa.Radio)return g.jsx("div",{role:"radiogroup",className:"flex flex-col gap-2",children:d.map((C,w)=>{const b=Be(C,o),x=n0(C,o)??`Option ${w+1}`,y=h===w;return g.jsxs("div",{className:"flex flex-col",children:[g.jsx(cn,{name:l,value:String(w),inputId:`${l}-${w}`,label:x,checked:y,disabled:a,onChange:()=>f(w)}),y&&b&&g.jsx("div",{className:"ml-6 mt-2",children:g.jsx(Ni,{schema:b,value:t,onChange:s,path:i,level:n})})]},w)})});const v=d.map((C,w)=>{const b=Be(C,o);return{value:String(w),label:b.title??`Option ${w+1}`}});return g.jsxs("div",{className:"flex flex-col gap-3",children:[g.jsx("div",{className:"flex-1 max-w-[280px]",children:g.jsx(In,{options:v,value:String(h),disabled:a,onChange:C=>{const w=typeof C=="string"?C:C[0];f(Number(w))}})}),m&&g.jsx("div",{className:"pl-3 border-l-2 border-secondary",children:g.jsx(Ni,{schema:m,value:t,onChange:s,path:i,level:n})})]})},kG=({schema:e,value:t,onChange:s,path:i,level:n})=>{const{rootSchema:o,readonly:r=!1}=_i(),a=e.anyOf??[],l=a.map((m,v)=>({value:String(v),label:n0(m,o)})),c=FG(t,a,o),d=a[c],h=Be(d,o).type===_e.Null,f=m=>{const v=Be(a[m],o);if(v.type===_e.Null){s(null);return}const C=Mn(v,o);if(C!==void 0){s(C);return}switch(v.type){case _e.Array:s([]);break;case _e.String:s("");break;case _e.Boolean:s(!1);break;case _e.Integer:case _e.Number:s(0);break;default:s({});break}};return g.jsxs("div",{className:"flex flex-col gap-3",children:[g.jsx("div",{className:"flex-1 max-w-[280px]",children:g.jsx(In,{options:l,value:String(c),disabled:r,onChange:m=>{const v=typeof m=="string"?m:m[0];f(Number(v))}})}),!h&&d&&g.jsx("div",{className:"pl-3 border-l-2 border-secondary",children:g.jsx(Ni,{schema:d,value:t,onChange:s,path:i,level:n})})]})},a0=({schema:e,value:t,onChange:s,invalid:i})=>{const n=p.useId(),{texts:o,readonly:r=!1,inputClassName:a}=_i(),l=e.const!==void 0,c=Array.isArray(e.enum)&&e.enum.length>0;if(l)return g.jsx(ai,{value:String(e.const??""),disabled:!0,onChange:void 0,className:"opacity-60"});if(c&&e.enumDisplay===sa.Radio){const d=e.enumOrientation===$c.Row;return g.jsx("div",{role:"radiogroup",className:d?"flex flex-row flex-wrap gap-x-4 gap-y-2":"flex flex-col gap-2",children:e.enum.map(u=>{const h=String(u);return g.jsx(cn,{name:n,value:h,inputId:`${n}-${h}`,label:h,checked:t!=null?String(t)===h:!1,disabled:r,onChange:f=>s(f)},h)})})}if(c){const d=e.enum.map(u=>({value:String(u),label:String(u)}));return g.jsx(In,{options:d,value:t!=null?String(t):void 0,invalid:i,disabled:r,onChange:u=>s(typeof u=="string"?u:u[0]),placeholder:o.enumSelectPlaceholder})}switch(e.type){case _e.Boolean:return g.jsx(Wc,{switchId:n,isOn:!!t,disabled:r,onChange:d=>s(d)});case _e.Integer:return g.jsx(yh,{integer:!0,value:t!=null?String(t):"",invalid:i,disabled:r,onChange:d=>s(d!==void 0?Number(d):void 0),placeholder:o.integerInputPlaceholder,containerClassName:a});case _e.Number:return g.jsx(yh,{value:t!=null?String(t):"",invalid:i,disabled:r,onChange:d=>s(d!==void 0?Number(d):void 0),placeholder:o.numberInputPlaceholder,containerClassName:a});default:return e.isProtected?g.jsx(Tb,{value:t!=null?String(t):"",invalid:i,disabled:r,onChange:d=>s(d??void 0),placeholder:o.stringInputPlaceholder,containerClassName:a}):g.jsx(ai,{value:t!=null?String(t):"",invalid:i,disabled:r,onChange:d=>s(d??void 0),placeholder:o.stringInputPlaceholder,containerClassName:a})}},nv=(e,t)=>({id:Math.random().toString(36).slice(2),key:e,value:t}),IG=({pairKey:e,pairValue:t,valueSchema:s,onKeyChange:i,onValueChange:n,onRemove:o,keyInputPlaceholder:r,removeFieldAriaLabel:a,readonly:l=!1,inputClassName:c})=>{const[d,u]=p.useState(e);return g.jsxs("div",{className:"flex gap-2 items-center",children:[g.jsx("div",{className:"w-2/5 min-w-0",children:g.jsx(ai,{value:d,disabled:l,onChange:h=>u(h??""),onBlur:()=>{d!==e&&i(d)},placeholder:r,containerClassName:c})}),g.jsx("div",{className:"flex-1 min-w-0",children:g.jsx(a0,{schema:s,value:t,onChange:n})}),!l&&g.jsx(jc,{size:et.Small,onClick:o,"aria-label":a,className:"shrink-0 p-1"})]})},MG=({schema:e,value:t,onChange:s})=>{const{texts:i,readonly:n=!1,inputClassName:o}=_i(),r=e.additionalProperties===!0||e.additionalProperties==null?{type:"string"}:typeof e.additionalProperties=="object"?e.additionalProperties:{type:"string"},[a,l]=p.useState(()=>Object.entries(t??{}).map(([m,v])=>nv(m,v))),c=m=>Object.fromEntries(m.filter(v=>v.key!=="").map(v=>[v.key,v.value])),d=(m,v)=>{const C=a.map((w,b)=>b===m?{...w,key:v}:w);l(C),s(c(C))},u=(m,v)=>{const C=a.map((w,b)=>b===m?{...w,value:v}:w);l(C),s(c(C))},h=()=>{l(m=>[...m,nv("","")])},f=m=>{const v=a.filter((C,w)=>w!==m);l(v),s(c(v))};return g.jsxs("div",{className:"flex flex-col gap-2",children:[a.length===0&&g.jsx("p",{className:"dial-tiny-text text-secondary italic",children:i.noFieldsYet}),a.length>0&&g.jsxs("div",{className:"flex gap-2 mb-1 pr-7",children:[g.jsx("span",{className:"w-2/5 dial-tiny-text text-secondary font-medium",children:i.keyColumnHeader}),g.jsx("span",{className:"flex-1 dial-tiny-text text-secondary font-medium",children:i.valueColumnHeader})]}),a.map((m,v)=>g.jsx(IG,{pairKey:m.key,pairValue:m.value,valueSchema:r,onKeyChange:C=>d(v,C),onValueChange:C=>u(v,C),onRemove:()=>f(v),keyInputPlaceholder:i.keyInputPlaceholder,removeFieldAriaLabel:i.removeFieldAriaLabel,readonly:n,inputClassName:o},m.id)),!n&&g.jsx("div",{className:"pt-1",children:g.jsx(ig,{label:i.addField,iconBefore:g.jsx(_.IconPlus,{size:16,stroke:2}),onClick:h})})]})},Ni=({schema:e,value:t,onChange:s,path:i,level:n,required:o,suppressInlineError:r=!1})=>{const{rootSchema:a,renderField:l,markTouched:c=()=>{},touchedPaths:d=new Set,skipUntouched:u=!1}=_i(),h=Be(e,a),f=C=>{c(i.join(".")),s(C)},m=!u||d.has(i.join("."));let v;if(h.oneOf)v=g.jsx(TG,{schema:h,value:t,onChange:f,path:i,level:n});else if(h.anyOf&&h.type!==_e.Object)v=g.jsx(kG,{schema:h,value:t,onChange:f,path:i,level:n});else if($o(h)){const C=h.additionalProperties!=null&&h.additionalProperties!==!1,w=!h.properties||Object.keys(h.properties).length===0;C&&w?v=g.jsx(MG,{schema:h,value:t,onChange:f}):v=g.jsx(kl,{schema:h,value:t,onChange:f,path:i,level:n})}else if(h.type===_e.Array)v=g.jsx(PG,{schema:h,value:t,onChange:f,path:i,level:n});else{const C=m&&o&&qc(t),w=!r&&C?`${h.title??"Field"} is required`:void 0;v=g.jsxs(g.Fragment,{children:[g.jsx(a0,{schema:h,value:t,onChange:f,invalid:C}),g.jsx(Nt,{text:w})]})}return l?l(i,h,v):v},AG=({schema:e,defaultValue:t,texts:s,className:i,readonly:n=!1,defaultExpanded:o=!0,inputClassName:r,variant:a=Br.Sections,onChange:l,onPropertyChange:c,onDefaultValues:d,renderField:u,skipUntouched:h=!1})=>{const f=p.useMemo(()=>({...RG,...s}),[s]),m=p.useMemo(()=>t||(Mn(e,e)??{}),[]),[v,C]=p.useState(m),[w,b]=p.useState(new Set),x=p.useCallback(R=>{b(E=>E.has(R)?E:new Set([...E,R]))},[]);p.useEffect(()=>{d?.(m)},[]);const y=(R,E)=>{const D={...v,[R]:E};C(D),l?.(D),c?.(R,E)},S=Object.entries(e.properties??{}).filter(([,R])=>!Be(R,e).isHidden),F=e.required??[];return g.jsx(i0.Provider,{value:{rootSchema:e,texts:f,readonly:n,defaultExpanded:o,inputClassName:r,renderField:u,touchedPaths:w,markTouched:x,skipUntouched:h},children:g.jsx("div",{className:$("flex flex-col gap-4",i),children:S.map(([R,E])=>{const D=Be(E,e),T=D.title??E.title??pg(R),P=F.includes(R),k=v[R];if(a===Br.Flat)return g.jsx(r0,{schema:E,value:k,onChange:G=>y(R,G),path:[R],level:0,required:P,label:T},R);if(a===Br.FlatSections)return g.jsxs("div",{className:"flex flex-col gap-3",children:[g.jsx("h2",{className:"dial-small-semi-text text-primary",children:T}),g.jsx(Ni,{schema:E,value:k,onChange:G=>y(R,G),path:[R],level:0,required:P})]},R);const I=ln(k,D,e,R),H=R+".",M=!h||w.has(R)||[...w].some(G=>G.startsWith(H));return g.jsx(gg,{title:T,description:D.description,level:0,defaultExpanded:o,errorCount:M?P&&qc(k)?Math.max(I.length,1):I.length:0,children:g.jsx(Ni,{schema:E,value:k,onChange:G=>y(R,G),path:[R],level:1,required:P})},R)})})})},LG=()=>Promise.resolve().then(()=>require("./JsonEditor-DBCK_XD3.cjs")),OG=()=>Promise.resolve().then(()=>require("./MarkdownEditor-ChMzGmsp.cjs"));exports.AnalyticsCardVariant=Gr;exports.BASE_ICON_PROPS=te;exports.BASE_ICON_SIZE=Zt;exports.ButtonAppearance=ke;exports.ButtonVariant=Ye;exports.ConfirmationPopupVariant=Ho;exports.DEFAULT_ANALYTICS_BAR_COLOR_MAP=Mh;exports.DIAL_ICON_SIZE=nt;exports.DialAccordion=Sv;exports.DialAnalyticsBar=yv;exports.DialAnalyticsBarGroup=Ax;exports.DialAnalyticsCard=kx;exports.DialAnalyticsErrorTag=Ih;exports.DialAnalyticsHistogram=Bx;exports.DialAutocompleteInputValue=Fb;exports.DialBreadcrumb=bb;exports.DialBreadcrumbItem=Rr;exports.DialButton=Fs;exports.DialButtonDropdown=Fh;exports.DialCaptionText=ia;exports.DialCheckbox=Tu;exports.DialCloseButton=eg;exports.DialCollapsibleSidebar=Tv;exports.DialConditionalResizableContainer=jv;exports.DialConfirmationPopup=Sb;exports.DialDangerButton=yb;exports.DialDangerIconButton=Fv;exports.DialDestinationFolderPopup=Kb;exports.DialDraggableItem=v2;exports.DialDropdown=Mt;exports.DialDropdownIcon=jH;exports.DialEllipsisTooltip=bt;exports.DialErrorText=Nt;exports.DialFabButton=GN;exports.DialFileIcon=Vh;exports.DialFileManager=s0;exports.DialFileManagerActions=X;exports.DialFileManagerTabs=go;exports.DialFileName=yc;exports.DialFileNodeType=we;exports.DialFilePermission=Bn;exports.DialFileResourceType=lg;exports.DialFolderName=Sc;exports.DialFormItem=mc;exports.DialFormPopup=oH;exports.DialGhostButton=ig;exports.DialGhostIconButton=fc;exports.DialGrid=tg;exports.DialIcon=Oe;exports.DialIconButton=ii;exports.DialInput=ai;exports.DialInputPopup=Eb;exports.DialItemType=ts;exports.DialLabel=Bi;exports.DialLabelledText=fy;exports.DialLinkButton=HN;exports.DialLoadFileArea=Hb;exports.DialLoadFileAreaField=GH;exports.DialLoader=oa;exports.DialNeutralButton=js;exports.DialNeutralIconButton=jx;exports.DialNoDataContent=ra;exports.DialNotification=Dv;exports.DialNumberInput=yh;exports.DialPagination=ny;exports.DialPasswordInput=Tb;exports.DialPopup=Hn;exports.DialPrimaryButton=Bs;exports.DialPrimaryIconButton=zx;exports.DialProgressBar=Jx;exports.DialProgressBarSize=Pv;exports.DialRadioButton=cn;exports.DialRadioGroup=Al;exports.DialRadioGroupPopupField=tH;exports.DialRemoveButton=jc;exports.DialResizableContainer=zv;exports.DialRoundedButton=BN;exports.DialSchemaRenderer=AG;exports.DialSearch=ng;exports.DialSecondaryIconButton=Wx;exports.DialSegmentedControl=$N;exports.DialSelect=In;exports.DialSelectField=xH;exports.DialSharedEntityIndicator=zr;exports.DialSkeleton=oo;exports.DialSkeletonAvatarShape=Ll;exports.DialSkeletonAvatarSize=Er;exports.DialSkeletonVariant=hs;exports.DialSlider=gy;exports.DialSpinner=Ev;exports.DialSteps=ly;exports.DialSuccessIconButton=Ux;exports.DialSwitch=Wc;exports.DialTabs=mb;exports.DialTag=on;exports.DialTagInput=Rb;exports.DialTertiaryIconButton=_x;exports.DialTextarea=VN;exports.DialTooltip=kt;exports.DropdownItemType=No;exports.DropdownTrigger=Qt;exports.DropdownType=cb;exports.ElementSize=et;exports.FileManagerColumnKey=wt;exports.FileManagerProvider=qb;exports.FlexibleActionsDirection=an;exports.FormItemOrientation=Vr;exports.GridSelectionMode=Nr;exports.JsonSchemaType=_e;exports.LazyDialJsonEditor=LG;exports.LazyDialMarkdownEditor=OG;exports.NAME_COLUMN=Qb;exports.NOT_ALLOWED_SPACES=ug;exports.NOT_ALLOWED_SPACES_REGEXP=WB;exports.NOT_ALLOWED_SYMBOLS=Ub;exports.NOT_ALLOWED_SYMBOLS_REGEXP=$b;exports.NotificationVariant=us;exports.PopupSize=es;exports.RadioGroupOrientation=Cn;exports.ResizableContainerSide=jr;exports.SIZE_COLUMN=e0;exports.SchemaDisplayMode=sa;exports.SchemaOrientation=$c;exports.SchemaRendererVariant=Br;exports.SelectSize=uc;exports.SelectVariant=hc;exports.StepStatus=Jt;exports.TabOrientation=cc;exports.TabView=vn;exports.UPDATED_AT_COLUMN=Jb;exports.jsxRuntimeExports=g;exports.mergeClasses=$;exports.useDialFileManagerTabs=vG;exports.useEditableItem=Zb;exports.useFileManagerContext=t0;exports.wrapInRootFolder=SG;
|